{"version":3,"file":"client-4846f87d47148427590854389ef0d7b7.js","names":["_exports","default","_dec","computed","_dec2","_dec3","alias","_dec4","_dec5","_dec6","_dec7","_dec8","_dec9","_dec10","_dec11","_dec12","_dec13","_dec14","or","_dec15","_dec16","_dec17","_class","Ability","constructor","args","super","_initializerDefineProperty","this","_descriptor","_descriptor2","_defineProperty","_descriptor3","_descriptor4","_descriptor5","init","projectPremiumFeatureAttribute","defineProperty","project","get","rendering","lianaSession","currentTeam","currentProject","featureName","capitalize","featuresEnvironmentsAll","billing","featuresEnvironmentsDevelopment","hasRequiredPlan","maxRoles","roles","length","maxTeams","teams","includes","isInTrialEnvironment","environment","isProduction","canTryInDevelopment","hasPrivilege","premiumFeaturesPrivileges","canDisplayTrialNote","hasNoActivationDate","enableException","undefined","premiumFeatureActivationDate","canAccess","canEnable","hasPreviewScreen","Boolean","canPreview","canView","featuresDeactivated","_applyDecoratedDescriptor","prototype","service","configurable","enumerable","writable","initializer","Object","getOwnPropertyDescriptor","ActivityLogsAbility","AbstractAbility","AdminHistoryAbility","ApprovalAbility","AutoLogoutAbility","CollaborationAbility","ExplorerAbility","InboxAbility","IpWhitelistAbility","LiveQueryAbility","MCPServerAbility","empty","not","RecordDashboardAbility","ScopeAbility","SmartChartAbility","SmartViewAbility","SummaryViewAbility","TeamFeaturesDeactivationAbility","TeamPerformanceAbility","TeamAbility","TwoFactorAuthenticationAbility","UserProvisioning","WhiteLabelAbility","Workflow","WorkspaceOnRecordAbility","App","Application","config","modulePrefix","podModulePrefix","ForestResolver","loadInitializers","GoogleJwtSignup","JWTSecuredAuthenticator","serverTokenEndpoint","serverGoogleSignUpEndpoint","handleAuthResponse","response","userCreated","extend","_super","serverGoogleTokenEndpoint","serverLiveDemoTokenEndpoint","serverTokenRefreshEndpoint","JWTSamlAuthenticator","serverSamlTokenEndpoint","JWTAuthenticator","_descriptor6","_descriptor7","_descriptor8","_descriptor9","owner","getOwner","resolveRegistration","tokenIssuedName","async","url","data","headers","result","fetchService","fetch","method","mode","credentials","Accept","body","JSON","stringify","statusText","status","text","json","parse","doFetchError","error","message","NetworkErrorJwtAuthenticatorRequestError","UnknownJwtAuthenticatorRequestError","errorHandler","handleSilentError","getResponseText","e","JwtGetResponseBodyMonitoringError","sessionRefresh","cleanRefreshTokenSessionData","restore","redirectUrl","invalidateCookies","invalidate","logoutRedirectionService","saveLogoutUrl","refreshToken","session","serverFetch","console","warn","tracker","captureException","scheduleAccessTokenRefresh","expiresAt","getCurrentTime","refreshLeeway","now","Date","timeZoneOffsetHours","getTimezoneOffset","WrongClockError","toFixed","toUTCString","createTimeConfigError","setNextSessionRefresh","refreshAccessToken","bind","token","tokenPropertyName","isEmpty","tokenData","getTokenData","issuedAt","getTime","datadog","captureAction","tokenUserId","id","deltaWithIssuedAt","businessNotification","createToastr","ToastrTypeEnum","Warning","duration","attempts","tokenExpireName","then","window","location","reload","promise","setSessionRefreshPromise","scriptCache","add","remoteContainerCache","clear","isDevelopment","value","__COLOCATED_TEMPLATE__","_templateFactory","createTemplateFactory","block","moduleName","isStrictMode","Map","Set","CACHE_EXPIRY_MS","loadRemoteContainer","remoteUrl","scope","cacheKey","cached","lastAccessed","delete","container","getCachedContainer","has","Promise","resolve","reject","script","document","createElement","src","type","onload","onerror","Error","head","appendChild","pollingInterval","race","cont","setInterval","containerCheck","clearInterval","_","setTimeout","shareScope","__webpack_share_scopes__","set","setCachedContainer","loadRemoteModule","module","factory","serializeProps","props","serialized","key","entries","serializeValue","depth","Array","isArray","map","item","serialize","isEmberDataModel","toArray","objectAt","isEmberArray","toJSON","hasToJSON","plain","k","hasOwnProperty","call","serializeObject","MicroFrontendReactHost","Component","mfeName","mfe","resolvedConfig","manifest","APP","mfeManifest","mfeConfig","keys","join","devUrl","prodUrl","version","registerDestructor","disposeHmrBridge","unmountReactComponent","from","forEach","cleanupExpiredCaches","element","containerElement","mountReactComponent","onPropsChange","reactRoot","remoteMountModule","updateReactComponent","retryMount","isUnavailable","signal","AbortSignal","timeout","isConnectionError","err","TypeError","isLoading","isAvailable","checkMFEAvailability","isDestroying","isDestroyed","RemoteModule","mount","serializedProps","mfeVersion","contextKey","datadogRum","setGlobalContextProperty","name","propsWithMfeContext","initializeHmrBridge","String","addError","source","logInfo","stack","containerAvailable","update","HmrModule","remoteHmrModule","initHmrBridge","getWebpackHot","registerWebpackHot","webpackHot","debug","wsUrl","getHmrWebSocketUrl","hmrEventUnsubscribe","onHmrEvent","event","remountMfe","URL","protocol","host","removeGlobalContextProperty","unmount","endsWith","baseUrl","split","startsWith","querySelectorAll","remove","mountReactComponentWithCacheBust","cacheBustedUrl","initializeHmrBridgeWithCacheBust","tracked","action","_component","setComponentTemplate","ERROR_UNEXPECTED_DATA","ERROR_UNEXPECTED_LAYOUT","ERROR_UNREACHABLE_DATA","ERROR_ACCESS_RECORD_FORBIDDEN","ERROR_ACCESS_RESOURCE_FORBIDDEN","ERROR_ACCESS_COLLECTION_FORBIDDEN","ERROR_CREATE_RECORD_FORBIDDEN","ERROR_NOT_FOUND","ERROR_ENVIRONMENT_DISABLED","ERROR_NO_ENVIRONMENT_AVAILABLE","ERROR_REDIRECTION_LOOP","ERROR_RETURNED_DATA","ERROR_SENT_DATA","ERROR_PAGE_TOO_FAR","ERROR_NO_PRIMARY_KEY","ERROR_UNAUTHORIZED","ERROR_UNKNOWN","DEFAULT_CHART_COMPONENT","DEFAULT_CHART_TEMPLATE","DEFAULT_CHART_STYLE","TYPES","DEFAULT_TEMPLATE_SNIPPET","DEFAULT_COMPONENT_SNIPPET","DEFAULT_REACT_COMPONENT_SNIPPET","imagePath","defaultWidth","defaultHeight","minWidth","minHeight","chart","collection","label","maxHeight","dropdown","field","input","inbox","link","metabase","search","section","isContainer","smart","variant","resizeHandles","maxWidth","tabs","toggle","workflow","WORKSPACE_GRID_CELL_WIDTH","WORKSPACE_GRID_CELL_HEIGHT","WORKSPACE_GRID_MAX_WIDTH","WORKSPACE_GRID_MAX_HEIGHT","WORKSPACE_AUTOGENERATED_SIMPLE_TEMPLATE","requirements","isRequiringBelongsTo","isRequiringHasMany","template","workspaceName","components","displaySettings","x","y","width","height","linkedTo","WORKSPACE_AUTOGENERATED_SIMPLE_TABS_TEMPLATE","displayedLabel","widgetDisplay","WidgetDisplayTypeEnum","BelongsTo","WORKSPACE_AUTOGENERATED_SIMPLE_RELATIONSHIPS_TEMPLATE","fontSize","visibility","WorkspaceComponentVisibilityTypeEnum","WhenItsContextIsSet","WORKSPACE_AUTOGENERATED_TEMPLATES","_toIgnore","ApplicationMirageSerializer","JSONAPISerializer","keyForAttribute","attr","substring","typeKeyForModel","model","originalModelName","modelName","ATTRIBUTES_FOR_PATCH","ActionApprovalAdapter","ApplicationAdapter","getActionApprovalPath","actionApprovalId","namespace","getHttpType","static","record","changedAttributes","properties","signed_approval_request","signedApprovalRequest","attribute","underscore","attributes","updateRecord","store","snapshot","getPatchBody","ajax","ActionApprovalsCommentModelAdapter","urlForCreateRecord","approval","ActivityLogAdapter","activityLog","encodeURIComponent","isEmberError","getFirstErrorDetail","getFirstErrorName","getFirstErrorMeta","emberErrorUtil","HasManyQueryAdapter","apiServerHost","_descriptor10","_descriptor11","_descriptor12","_descriptor13","shouldReloadAll","shouldBackgroundReloadRecord","options","parentFunction","augmentedOptions","recordSpecificHeaders","generateContextHeaders","resetRecordSpecificHeaders","waitSessionRefreshIfNecessary","UnauthorizedIpAddressError","ForbiddenLoginResourceAccessError","FailedToFetchError","UnknownForestAdapterError","currentProjectId","apiVersion","projectId","renderingId","currentRenderingId","team","browserExtensionFeatureState","isUsedFromBrowserExtension","generateSessionHeaders","authenticated","isPresent","Authorization","initRecordSpecificHeaders","parentCollection","patchPattern","path","patchURLToNotCorrectREGEX","RegExp","test","ajaxOptions","correctType","newOptions","hash","createRecord","deleteRecord","findHasMany","relationship","findBelongsTo","findRecord","handleResponse","requestData","ip","match","environmentId","captureMessage","originalError","toastr","perform","Cookies","organizationName","resourceRequiresSso","errorDetail","logoutMessage","saveLogoutMessage","_fetchRequest","AssigneeAdapter","query","searchCriteria","filter","emails","CHART_GLOBAL_ATTRIBUTES","ChartAdapter","LayoutPatchAdapter","dataToSerialize","some","patch","push","createPatchOperation","apiRoute","isNew","aggregator","getRelationshipPatchNameAndValue","op","testPatches","isDeleted","addMissingPatches","pushObject","createTestPatch","sourceCollection","isRecordChangingFromQueryOrApiToSimple","getPathForAttribute","dashboard","CollectionAdapter","patchPath","ColumnAdapter","CustomActionAdapter","patches","usersAndRolesKey","any","userIds","hasDirtyAttributes","roleIds","_areMigrationPatches","_shouldNotBeGlobalUpdate","patchToRemove","find","removeObject","changedKeys","rootPath","restrictedTo","_addPatchesForUsersAndRoles","Dashboard","AdapterError","description","meta","ERROR_MESSAGE","detail","FieldAdapter","Filter","_fakeReply","serializer","serializerFor","guidFor","serializeIntoHash","includeId","relationships","conditions","condition","conditionsRelation","included","FolderAdapter","getLayoutPath","patchBody","createPatchesForArray","children","child","subChildren","GuestAdapter","mixpanel","get_distinct_id","queryParamPropertyName","queryIdPropertyName","lastWasErrorPropertyName","abortControllerPropertyName","stickyPropertyName","evaluateFunctions","object","isNone","apply","JSONAPIAdapter","performanceWarner","handle","urlForHasManyQuery","urlPrefix","replace","buildURL","buildRelationshipQuery","abortController","AbortController","queryParams","copy","relationshipParams","parameters","assign","InboxAssignmentAdapter","teamId","urlForUpdateRecord","reason","updateLastActionDate","adapterOptions","params","InboxAdapter","InvitationAdapter","serializedRecords","IPAdapter","PatchAdapter","patchRecord","layoutBatchUpdate","records","fieldsToUpdate","fieldName","flat","McpServerConfigAdapter","mcpOAuthHeader","NestedDocumentAdapter","Adapter","NotificationAdapter","getPatchPath","containerOfArray","arrayAttributeName","changedArrayAttributes","oldItems","items","itemPaths","oldItemPaths","newItems","existingItems","createRemovePatchesForArray","patchValue","handlePatchValue","propertiesToCheck","Fragment","AbstractNestedDocumentModel","uuidv4","changedRelationships","eachAttribute","attributeName","attributeValue","Rendering","queryRecord","_store","_type","projectName","environmentName","teamName","RoleAdapter","getRolePermissionsPath","roleId","getRolePath","permissions","environments","environmentPermissions","pushObjects","defaultPermissions","collectionPermissions","actionPermissions","collections","smartActions","smartActionPermissions","getBodyForNameUpdate","getPatchBodyForRolePermissions","RowCreateAdapter","RowEditAdapter","row","isExplorerConfigurationAlreadyInitialized","explorerConfiguration","isExplorerUpdate","remainingArgs","SegmentAdapter","columns","commitRecord","ViewEditAdapter","summaryView","ViewListAdapter","WorkflowAdapter","WorkspaceComponentAdapter","workspaceContainer","componentIdsPatchPath","componentId","sort","patchA","patchB","sectionComponent","getPatchBodyForComponents","tabsComponent","tab","tabsPatchPath","tabId","collectionComponent","collectionId","dataType","sourceWorkspaceComponentId","relatedDataFieldName","optionsPatches","columnPatch","visibleColumnsPatchPath","visibleColumn","sourceCollectionKeyToTest","getPatchBodyForComponentSorted","optionsPatch","firstObject","shift","WorkspaceComponentTypeEnum","Tabs","getPatchBodyForTabsComponent","Section","getPatchBodyForSectionComponent","Collection","getPatchBodyForCollectionComponent","polymorphic","Workspace","createdRecord","component","markPropertiesAsNotDirty","getTrigger","self","triggerEnabled","approvalRequired","triggerAction","triggerRequiresApproval","selfApprovalEnabled","selfApprovalAction","userApprovalAction","userApprovalEnabled","AbstractLayoutModel","HasManyQueryModel","NotImplementedError","_getFieldName","_getRelationshipId","_getHasManyRelationshipIds","AbstractModel","Model","relationshipNames","nestedAttributeNames","hasMany","belongsTo","nestedAttributes","relationshipsByName","isNestedDocumentRelationship","transformedAttributes","propertyName","changedNestedAttributes","reduce","relationshipDefinition","kind","oldIds","newIds","oldValue","peekRecord","toJSONPreviousState","newValue","oldId","newId","ArrayAttributeType","rollbackAttributes","callback","binding","propertyDefinition","nestedAttributeName","definition","actualState","previousValue","ActionApprovalStatusEnum","equal","_dec18","_dec19","_dec20","_descriptor14","_descriptor15","_descriptor16","_descriptor17","_descriptor18","_descriptor19","_descriptor20","_descriptor21","_descriptor22","_descriptor23","isRequestedByCurrentUser","requester","currentUser","customActions","customAction","actionName","peekAll","collectionName","actionDisplayName","displayName","collectionDisplayName","isOrphaned","defaultValue","inverse","messageContent","comment","ids","parentCollectionName","parentCollectionId","parentAssociationName","allRecords","allRecordsSubsetQuery","allRecordsIdsExcluded","smartActionId","actionIntentParams","isApproval","email","fullName","firstName","lastName","teamsString","fullNameAndEmail","initials","toUpperCase","_dec21","_dec22","_dec23","PlanTypesEnum","Community","_dec24","Starter","_dec25","Plus","_dec26","Enterprise","_dec27","Grandfather","_dec28","_dec29","_dec30","SubscriptionCommitmentsEnum","Yearly","_dec31","_dec32","_dec33","_dec34","_dec35","_dec36","and","_dec37","_dec38","_dec39","modelValidator","_class2","_descriptor24","_descriptor25","_descriptor26","_descriptor27","_descriptor28","_descriptor29","_descriptor30","_descriptor31","_descriptor32","_descriptor33","presence","format","with","EMAIL_REGEX","addressStreet1","addressZipcode","addressCity","addressCountry","isPaying","isCommunity","isTrial","currentPlan","isYearlyCommittedProject","subscription","commitment","isAllowedToChooseCommitment","isGrandfather","isWithoutPlan","cardLast4Digits","hasCardNumber","cardNumber","substr","cardBrandImage","dasherize","cardBrand","toLowerCase","renewalDate","moment","renewalPlannedAt","BILLING_DATEONLY_FORMAT","fieldNames","RequesterIdentifierEnum","arrayOfNestedDocument","hasOnlyOneSearchSetting","searchSettings","isValidForSave","autoSelect","identifier","Custom","customIdentifierValue","setting","enableAi","configuredFromSaas","getFieldNames","searchSettingsItem","i","r","l","n","a","slice","reverse","BaseChart","nestedDocument","viewEdit","registryNameBase","extraFieldsForJSON","hasCollectionBeenDeleted","ChartModel","modelChart","isEmbedded","filterableFields","fields","canFilter","fragmentOwner","fragmentArray","collectionEnvironments","findBy","browseEnabled","readEnabled","editEnabled","addEnabled","deleteEnabled","exportEnabled","smartAction","SortingOrderEnum","that","singularize","charAt","fragment","mapBy","filterBy","_dec40","_dec41","_dec42","_dec43","_dec44","_dec45","_dec46","_dec47","bool","_dec48","_dec49","_dec50","_dec51","_dec52","_dec53","_dec54","_dec55","_dec56","_dec57","_dec58","_dec59","_dec60","_dec61","_dec62","_dec63","_dec64","_dec65","_dec66","_dec67","_dec68","_dec69","_dec70","_dec71","_dec72","_dec73","_dec74","_dec75","_dec76","_dec77","_dec78","_dec79","_descriptor34","_descriptor35","_descriptor36","_descriptor37","_descriptor38","_descriptor39","_descriptor40","_descriptor41","_descriptor42","_descriptor43","_descriptor44","_descriptor45","_descriptor46","_descriptor47","_descriptor48","if","_key","_value","_this","displayNamePlural","iconOrDefault","getEmojiFromIcon","icon","displayNameWithEmoji","pluralizedDisplayName","getCollectionPermissions","isVisible","canEditLayout","canBrowseCollection","searchEnabled","position","mainFolder","FolderTypeEnum","shareableId","displayFieldNameOrPrimaryKey","displayField","primaryKey","displayFieldOrPrimaryField","primaryField","hasSmartViews","viewLists","views","PromiseObject","create","singularizedDisplayName","pluralize","displayNameLowerCase","displayNamePluralLowerCase","sortBy","filterActivated","filterableFieldsWithoutRelationships","SchemaUtils","isRelationship","relationshipsHasManyNative","fieldsSorted","isVirtual","isHasManyRelationship","hasManyFields","isHasMany","isEmbeddedHasMany","tableView","mainView","mainViewWithColumnsRetrieved","view","emberModelName","segmentsVisibleSorted","sortedSegments","segment","segments","isOutsideOfCurrentRendering","segmentsPersistedSorted","displayFieldWithNamespace","sortingFields","integrations","uniq","columnsOrdered","collectionService","getColumnsOrdered","columnsVisibleOrdered","getColumnsVisibleOrdered","defaultSortingFieldName","getDefaultSortingFieldNameWithOrderPrefix","defaultSortingField","defaultSortingOrder","segmentPositionsMax","segmentPositions","Math","max","viewEditFields","rowEdits","hasRelationship","restrictedToSegments","onlyForRelationships","isSearchable","isSmart","paginationType","displayFieldName","ConditionalFormattingModeEnum","rules","rule","defaultRule","shouldAutoFillMissingValues","OPERATORS_FOR_CONDITIONAL_RULE_PER_TYPE","Enum","OPERATOR_IS","OPERATOR_IS_NOT","Number","OPERATOR_IS_GREATER_THAN","OPERATOR_IS_LESS_THAN","OPERATOR_IS_BEFORE","OPERATOR_IS_AFTER","OPERATOR_IS_TODAY","OPERATOR_WAS_YESTERDAY","OPERATOR_WAS_IN_PREVIOUS_X_DAYS","OPERATOR_WAS_IN_PREVIOUS_WEEK","OPERATOR_WAS_IN_PREVIOUS_MONTH","OPERATOR_WAS_IN_PREVIOUS_QUARTER","OPERATOR_WAS_IN_PREVIOUS_YEAR","OPERATOR_IS_THESE_X_DAYS_TO_DATE","OPERATOR_IS_THIS_WEEK_TO_DATE","OPERATOR_IS_THIS_MONTH_TO_DATE","OPERATOR_IS_THIS_QUARTER_TO_DATE","OPERATOR_IS_THIS_YEAR_TO_DATE","OPERATOR_IS_IN_THE_PAST","OPERATOR_IS_IN_THE_FUTURE","OPERATOR_WAS_BEFORE_X_HOURS_AGO","OPERATOR_IS_AFTER_X_HOURS_FROM_NOW","Dateonly","OPERATOR_STARTS_WITH","OPERATOR_ENDS_WITH","OPERATOR_CONTAINS","OPERATOR_NOT_CONTAINS","ConditionalRuleDisplayTypeEnum","Badge","ColorUtils","randomColor","operatorNeedsValue","operator","doesNotNeedValue","valueComponent","displayType","color","ConditionalRuleSchema","shape","optional","compute","Function","oneOfType","array","ActionRequestModel","HAS_MANY_RELATIONSHIPS_PATCHABLE","ActionTypeEnum","getFormElementType","getButtonTypeOrDefault","buttonType","ButtonTypeEnum","Neutral","Primary","arrayOfFormElements","displayedFields","fieldsOrdered","getBaseLayout","formElementInputs","fieldId","getSmartActionPermissions","isUserAllowed","canTriggerSmartAction","isApprovalRequired","canTriggerSmartActionWithApproval","isHidden","buttonTypeOrDefault","hasDisplayedFieldsOrFormElements","formElements","confirmation","relationshipIds","relationshipId","parseInt","changedFieldsRelationships","startFieldIds","fieldsToRemove","fieldsToKeep","waitForNextRunLoop","rollbackRelationships","isAllowedForSelectedRecordsCount","count","isGlobal","isSingle","isBulk","isAllowedForRecordThroughBasicSegments","isBasicAndIncludeRecord","isAllowedForEveryRecordThroughBasicSegments","every","charts","typeOrUnknown","AbstractActionPermissionsFragment","endsX","endsY","gridStackItemOptions","w","h","isEqualProps","isEqual","DEFAULT_PERMISSIONS","enabled","REGEX_DOMAIN","EnvironmentStageEnum","AgentTypeEnum","STAGE_PRIORITIES","production","staging","acceptance","sandbox","unknown","development","apiEndpointDomain","apiEndpoint","stagePriority","stage","badgeColor","computedStyle","getComputedStyle","getPropertyValue","isFullHostedAgent","hostedAgentType","displayFieldNames","recordsPerPage","isIdentifier","isPrimaryKey","foreignAndPrimaryKey","isBelongsTo","isBoolean","isDate","isDateonly","isEnumSimple","isFile","isJson","isNumber","isPoint","isPolymorphic","polymorphicReferencedModels","isString","isTime","isUuid","isArrayOfFiles","typeStringified","isArrayOfEnumByType","isArrayOfEnum","isEnum","hasReference","reference","typeForWidgets","relationshipType","enums","isArrayType","isArrayOfIntegers","isArrayOfIntegerType","isArrayOfStrings","isEmbeddedHasManyString","isEmbeddedDocument","isEmbeddedBelongsTo","isEmbeddedDocumentDeep","isEmbeddedBelongsToDeep","isEmbeddedHasManyDeep","isInlineBelongsToField","nestedOrReferencedCollection","nestedCollection","referenceModel","_nestedCollection","nestedCollectionDefinition","CollectionEnvironmentNested","parentField","FieldEnvironmentNested","features","filterArrayIncludeAll","lianaFeatures","isFeatureCompatible","FeaturesEnum","FilterArrayIncludeAll","widgetsManager","shouldDisplayAsRow","integration","isRelatedData","supportedOperators","fieldType","attributeNameWithRelationships","models","nonIdentifierIdFieldAlias","isFilterAvailableForTypeExcludingNested","SimpleTypes","isPlainArray","isFilterAvailableForType","isAggregatable","isInvalidWidgetDisplay","isWidgetInvalid","isInvalidWidgetEdit","widgetEdit","embeddedCollectionName","ensureWidgetDefaults","assignDefaultWidgets","areWidgetsInitialized","filteredCollection","BaseField","customActionValues","customActionValue","displayNameTitlize","getAttributeName","referenceModelName","referenceEmberModelNameWithoutNamespace","referenceModelNameWithoutNamespace","referenceFieldName","referenceModels","isUsingAlteredValues","mappingValues","values","possibleValue","isReadOnly","isFilterDisplayed","isDissociateDisplayed","mappingValue","conditionalFormatting","DecoratedBaseField","modelField","NestedField","_class3","referenceDisplayField","isVirtualFieldOnSimpleCollection","isFilterOnSmartFieldAvailable","FilterSmartField","capabilities","operators","referenceSortingField","isValidable","isGroupable","getDisplayedValue","getDisplayedLinkValue","displayedValue","displayedValues","getQueryFilter","filters","queryCondition","nestedFilter","queryFilter","isValidData","parent","assignedParent","createCondition","context","ConditionContextEnum","createFragment","clone","cloneFragment","forApi","forAgentApi","folder","parentFolderChild","isMain","isWorkspaceMain","isDashboardMain","isInboxMain","FormElementNestedDocument","content","nextButtonLabel","previousButtonLabel","elements","FormElementComponentEnum","AbstractBaseConditionFragment","fieldString","findOperatorFromDisplayName","uuidv1","readOnly","isBelongingToScope","ScopeFragment","isContextSet","templatingKeys","templatingHelper","getFieldByName","getFieldById","setField","subField","subFieldName","subFieldId","embeddedField","embeddedFieldName","toServerFormat","operatorsOptions","subFieldOrField","defaultOperator","OPERATOR_INCLUDES_ALL","OPERATORS_THAT_NEEDS_VALUE","valueComponentType","operatorObject","valueType","widget","shouldDisplayInsideFilter","editLayoutComponent","valueString","currentOperator","typeIsDate","valueComponentTypeIsDate","isValid","toISOString","isGenericFiltersAvailable","ret","isIdField","fieldNameWithNamespace","getFieldWithNameSpace","subFieldNameWithNamespace","embeddedFieldNameWithNamespace","valueCasted","AbstractTemplatingHelper","getTemplatingKeys","templatingKeysWithExpectedType","templatingKey","expectedType","isValidTemplating","isValidPath","isValidUuidData","isBlank","getValueCastedForCondition","valueCastedAndReplaced","isOperatorIsInAndTypeIsNumber","OPERATOR_IS_IN","injectedValue","injectVariablesIntoStringWithoutValidation","Settings","GenericFilters","isFulfilledByRecord","checkCondition","AbstractBaseFilterFragment","conditionModels","validConditions","parentFragmentOwner","SECTIONS_DECORATION","draggable","shouldDisplayIfProcessDrivenNavigation","Data","currentWhen","Workspaces","Collaboration","Reports","teamDeactivatableFeatures","TeamDeactivatableFeatureEnum","ActivityLogs","TeamPerformance","isReorderable","isDeactivatedForTeam","feature","abilities","cannot","shouldDisplay","ScopeTypeEnum","Simple","CurrentUserTemplatingHelper","isDirty","dirtyConditions","isFlushed","hasValidChanges","canDiscardChanges","_id","discardChanges","FamiliarityWithCodingEnum","UsecaseEnum","queryId","getAbortControllerPropertyName","lastAbortController","abort","getQueryParamPropertyName","getQueryIdPropertyName","currentQueryId","reloadRelationship","AbortError","getRelationship","next","load","catch","getLastWasErrorPropertyName","InboxAssignmentStateEnum","InboxAutoUnassignUnitEnum","Day","unit","order","InboxDispatchRuleEnum","InboxTypeEnum","InboxDispatchRuleLabel","basedOnSortingFields","random","Segment","BasedOnSortingFields","nameWithIcon","nameWithCollection","modelToFetch","isWorkflow","segmentId","dispatchRule","Random","sortingField","unassignAfter","tasksLimit","canUsersReassign","PermissionLevelEnum","InvoiceStatusEnum","statusColor","Pending","Canceled","Rejected","Paid","formattedAmount","formatNumber","price","locale","getLocale","currencyDisplay","currency","User","AbstractModelCustomizationConfigurationActionTypeFragment","referenceField","isDeprecated","isRequired","payloadForEvent","staticFieldsCount","requiresAgentReload","REGEX_HTTP_URL","ModelCustomizationConfigurationActionTypeEnum","Single","UpdateRecord","typeKey","AbstractModelCustomizationConfigurationFragment","configuration","dirtyFields","ModelCustomizationTypeEnum","localeOrDefault","isOwner","permissionLevel","canAccessOrganizationSettings","longNameOrDefault","longName","PlanUnitsEnum","EnvironmentsFeaturesEnum","OrganizationsFeaturesEnum","PolymorphicClientModel","ProjectArchitectureEnum","areRolesDisabled","_dec80","_dec81","_dec82","_dec83","_dec84","_dec85","_dec86","_dec87","_dec88","_dec89","_dec90","_dec91","_dec92","_dec93","_dec94","_dec95","_dec96","_dec97","_dec98","_dec99","_descriptor49","_descriptor50","_descriptor51","_descriptor52","_descriptor53","_descriptor54","_descriptor55","_descriptor56","_descriptor57","_descriptor58","_descriptor59","_descriptor60","_descriptor61","_descriptor62","_descriptor63","_descriptor64","_descriptor65","_descriptor66","_descriptor67","_descriptor68","_descriptor69","_descriptor70","_descriptor71","_descriptor72","_descriptor73","_descriptor74","primaryColorOrDefault","colorOrDefault","primaryColor","isMockedAgent","mockedAgent","productionEnvironment","isSetup","isActive","hasPremiumActivityLogsPrivilege","hasPremiumAdminHistoryPrivilege","hasPremiumMultipleDashboardsPrivilege","hasPremiumCollaborationPrivilege","hasPremiumExplorerPrivilege","hasPremiumRecordDashboardPrivilege","hasPremiumSmartChartsPrivilege","hasPremiumSmartViewsPrivilege","hasPremiumSummaryViewPrivilege","hasPremiumLiveQueryPrivilege","hasPremiumUnlimitedTeamsPrivilege","hasPremiumUnlimitedRolesPrivilege","hasProductionOrRemote","activeEnvironments","isRemote","availableEnvironments","activeDevelopmentEnvironments","ownEnvironments","accessibleDevelopmentEnvironments","accessibleRemoteEnvironments","remoteEnvironmentsWithRolesDisabled","role","accessibleEnvironments","e1","e2","compareIsProduction","compareIsDevelopment","updatedAt","nonBlockedAccessibleEnvironments","isBlocked","accessibleTestEnvironments","accessibleNonTestEnvironments","isFullHostedProject","defaultEnvironment","isSelfHostedProject","pathToRenderingBuilder","gt","nonDeletedFolders","foldersWithMain","isLoaded","folders","sectionsDecoratedVisible","sections","sectionsDeactivatedForTeam","hasSecureEndpoint","indexOf","hasCollections","hasNoCollections","hasDashboards","dashboards","isComputing","_environment","_team","EvaluationEnum","isArrayOfDocuments","explorerRow","_explorerRow","ExplorerRelationshipRow","isomorphic","style","SegmentTypeEnum","Manual","_templatingHelper","SegmentTemplatingHelper","isBasic","isManual","hasDirtyRelationships","positionFromFolder","folderChild","FolderModel","parentPosition","FolderChildNestedDocument","defaultSortingFieldOrder","hasColumnsConfiguration","column","connectionName","UNIQUE_OPERATORS","INTERVAL_OPERATORS","OPERATORS_WITHOUT_VALUE","OTHER_OPERATORS","SMART_ACTION_FILTER_OPERATORS","SMART_ACTION_FILTER_LEAF_SOURCES","triggerCondition","approvalRequiredCondition","userApprovalCondition","smartActionName","SummaryViewItemTypeEnum","componentName","summaryViewItem","HorizontalList","posX","posY","title","Inbox","renderingsByEnvironmentStage","renderings","words","replaceAll","TrialStatusEnum","hasName","teamsList","teamList","tagsList","tags","tag","isUser","isInvitation","roleIdString","username","nameOrEmail","firstNameOrUserName","teamsOrderByName","attributesEditable","rowCreates","rowCreatesRelatedData","plainRows","rowCreate","displayAsRow","rowEditsRelatedData","rowEdit","plainFields","REACT_FRAMEWORK","currentFramework","componentCode","EMBER_FRAMEWORK","s3Versions","allowJavascript","_parseTemplateIfNecessary","isReact","templateCode","ignoreChangeTemplateCode","decrementProperty","parseTemplateCode","templateCSS","cssCode","updateTemplateCode","templateHandlebars","handlebarsCode","sanitized","htmlSanitizer","sanitizeTemplate","regexStyleStart","regexStyleEnd","css","handlebars","endIndex","startIndex","regexIndexOf","trim","WidgetConfigurationParametersFragment","placeholder","WidgetConfigurationBelongstoTypeahead","WidgetConfigurationLimitedValue","WidgetConfigurationCheckboxesFragment","enableOpacity","quickPalette","WidgetConfigurationDate","minDate","maxDate","WidgetConfigurationParameters","createWidgetConfigurationDropdown","superClass","searchType","WidgetConfigurationDropdownFragment","WidgetConfigurationLimitedValueFragment","isConfigured","filesExtensions","prefix","filesCountLimit","filesSizeLimit","WidgetFileSizeEnum","FileViewerSizes","POSSIBLE_SIZES","Small","Medium","Large","size","allowRotation","allowZoom","enableReorder","allowDuplicate","allowEmptyValue","min","step","withCopyButton","Field","actOnCollection","actOnField","actOnCollectionId","actOnFieldName","actOnFieldId","KEY","REGEX_PATH_URL","realPath","WorkspaceComponentOptionsNestedDocument","isWorkspaceComponent","parentRecord","simple","isValueLabel","getLabel","isUsingOptions","option","castToBoolean","optionValues","createWidgetConfigurationLimitedValue","dynamic","targetSelf","reverseCoordinates","WidgetConfigurationNoSettingsFragment","allowNull","decimalPlaces","WidgetConfigurationPrice","PriceBaseEnum","base","WidgetConfigurationRadioButtonFragment","rows","round","getWidget","hasSettings","WorkspaceComponentOptionsFieldNestedDocument","WidgetTemplatingHelper","collectionState","loweredDasherizedName","widgetSettingsComponent","fallbackLayoutComponent","displayColumnLayoutComponent","displayRowLayoutComponent","paths","hasRegistration","isCopiable","Text","MultiLineText","Time","Percentage","Price","Address","Link","userId","workflowId","bpmnVersion","selectedRecordId","workflowHistory","historyStep","runState","engine","bpmnAwsS3Identifier","segmentIds","WorkspaceActionTypeEnum","computeBasicActionId","BASIC_ACTIONS","computeName","computeId","Create","Delete","Duplicate","Edit","Export","getBasicActionsForCollection","AbstractWorkspaceComponentOptionsButtonNestedDocument","createCache","basicActions","getValue","_basicActionsCache","componentToSelectRecordFrom","templatedBelongsToCollection","hasConfigurationError","actionId","inheritedButtonType","isBasicAction","isMultiSelectSupported","CustomActionModel","Smart","editMode","sourceCollectionId","componentToSelectRecordFromId","onActionChange","templatedBelongsToPath","validatedTemplatedBelongsToPath","resetReadMode","isRecordEdition","templatedBelongsToPathWithoutBrackets","templatedBelongsToComponent","getSourceWorkspaceComponentByName","workspaceComponent","belongsToPath","collectionFromComponent","FieldTemplatingHelper","getFieldFromPath","displayedText","isImpactingContext","componentsAndVariableKeysUsedByConfiguration","contextVariableKeys","getSourceWorkspaceComponentOrCurrentRecord","BaseWorkspaceComponentOptionsChartNestedDocument","numeratorChart","numeratorChartId","denominatorChart","denominatorChartId","labelField","labelFieldName","relationshipField","relationshipFieldName","groupByField","groupByFieldName","aggregateField","aggregateFieldName","WorkspaceComponentOptionsChartNestedDocument","templatingKeysStringInName","templatingKeysStringImpactingContext","timeRange","templatingKeysWithExpectedTypeFromFilter","keyWithExpectingType","canFetchData","workspace","WorkspaceOnRowClickEnum","SelectARecord","RedirectToRecord","WorkspaceComponentOptionsCollectionNestedDocument","collectionListId","betaCollectionListCommunicator","generateInteractionId","resizableColumnsState","resizedColumns","ResizableColumnsState","localStorage","workspaceId","workspaceComponentId","resetParameters","defaultValueAttribute","prefilledContextVariables","buildWorkspaceContextVariable","hasVariables","relatedDataField","onRowClick","isRestrictedToSegments","templatingKeyRelatedDataField","recordToDisplay","selectedRecord","templatedPaths","pop","getVariableValue","sortingFieldName","resetContext","shouldFullyReset","recordsContext","resetRecords","visibleColumns","b","viewId","queryParameters","currentPage","isSearchExtended","sortingParameters","firstSortingParameter","sortingOrder","Descending","areAllRecordsSelected","selectedRecords","excludedRecordIds","shouldDisplayEmptyState","showSearchbar","showCreate","showActions","showWorkflows","showFilters","enableSegments","AbstractWorkspaceComponentOptionsContainerNestedDocument","WorkspaceDatePickerTypeEnum","isDateOnly","formatOrDefault","DEFAULT_DATEONLY_FORMAT","DEFAULT_DATE_FORMAT","defaultPlaceholder","shouldDisplayLabel","templatableAttributes","minimumDate","maximumDate","WorkspaceDividerStyleEnum","Solid","cssProperties","borderWidth","Double","direction","borderTopWidth","borderRightWidth","borderColor","borderStyle","defaultColor","getColorFromTheme","canUseContext","workspaceFeature","getFilteredCollectionForComponent","templatedFieldPath","templatedField","fullTemplatedFieldPath","selectedRecordPath","isInEditMode","existingInboxes","inboxes","inboxIds","inboxFeature","getInboxById","can","collectionFeature","getCollectionFromId","WorkspaceComponentOptionsInputTypeEnum","inputType","WorkspaceComponentOptionsLinkTypeEnum","WorkspaceFontWeightEnum","Normal","WorkspaceFontStyleEnum","WorkspaceTextAlignEnum","Left","COLORS_NAME_TO_HEXA","info","isCustomURL","isRedirectToRecordURL","linkColorType","LINK_TYPES","fontWeight","fontStyle","textAlign","href","isSourceContextSet","isComponentContextVariableSet","isDisabled","NestedCollection","canReadCollection","switchType","urlType","commonProperties","shouldOpenInNewTab","REGEX_HTTPS_URL","folderFeature","getDefaultSegmentForCollection","getComponentsFromIds","componentIds","workspaceManager","getGridWrapperMinHeight","getGridWrapperMinWidth","getContainer","templateUrl","registryName","componentUrl","styleUrl","WORKSPACE_TOTAL_ROW_TABS","selectedTab","tabIndex","tooltip","WORKSPACE_TOGGLE_VALUE_TYPES","toggleValue","_selectedValue","isEnabledByDefault","enabledValue","selectedValue","isToggleDisabled","isToggled","isWorkspaceComponentTemplatingKey","contextVariableKey","templatingKeyWithExpectedType","contextVariables","Always","WhenAnotherComponentIsVisible","isNameValid","variableName","buildAutocompleteItem","isWorkspaceComponentType","editedName","_editedName","hasDirtyName","_selectedRecords","WorkspaceTemplatingHelper","currentWorkspaceComponent","shouldDisplayTemplatingOrConfigurationError","shouldDisplayTemplatingError","hasTemplatingOrConfigurationError","hasTemplatingError","index","uiConfiguration","componentType","Divider","workspaceComponentConfiguration","configurationMinWidth","configurationMinHeight","templatingComponentNames","appliedOnTemplatingKeys","appliedOn","belongsToFieldsTreeToFetch","getBelongsToFieldsTreeToFetch","getBelongsToFieldsToFetch","componentsAndVariableKeysUsedByTemplating","templatingKeySplitted","existingComponentInList","componentsAndVariableKeysDependencies","componentAndVariableKeysUsedByConfiguration","existingComponentInResult","existingComponentAndVariables","areAllContextVariablesSet","componentAndVariableKeysDependency","dependsOn","getWorkspaceComponentFromName","contextDependsOn","appliedOnContext","getComponentsRequiredForItsVisibility","encounteredComponents","hasVisibilityCircularDependency","componentsWithSelectedRecordContext","contextVariable","isWorkspaceOnRecord","currentRecordSource","componentsWithSelectedRecordContextNotEmbedded","initializeSelectedRecords","initializeSelectedValue","renameDependency","oldName","newName","renameComponentName","shouldResetCurrentContext","eventBus","trigger","tabsOptions","isFirst","tabsSorted","isLast","lastObject","requiredWidth","getRequiredWidth","requiredHeight","getRequiredHeight","containerComponents","rootComponents","componentIncludedInsideContainer","_currentRecordSource","buildCurrentRecordSource","ApplicationTokenSerializer","Serializer","tokenHash","lastUsed","ApplicationSerializer","keyForRelationship","normalizeResponse","primaryModelClass","payload","requestType","getNestedIncluded","newIncluded","flatMap","modelFor","normalize","typeClass","relationshipPayload","snakeCase","nestedIncluded","getNestedDefaultValuePayload","getNestedIncludedDependingOnType","getNestedIncludedForRelationship","serializeBelongsTo","serializeHasMany","serializeAttribute","_canSerialize","serializeNestedDocument","transformFor","schema","payloadKey","_getMappedKey","AssigneeSerializer","foundInDB","extractAttributes","modelClass","resourceHash","BillingSerializer","cardExpirationMonth","cardExpirationYear","cardCVV","cardHolderName","BrowserExtensionConfigurationCollectionSearchSettingModelSerializer","ChartSerializer","display_settings","_transformProperty","s3_versions","CollectionSerializer","position_deprecated","browse_enabled","is_hidden","_transformAttribute","ColumnSerializer","is_visible","ConditionalFormattingSerializer","JSONSerializer","isSwitchedOn","CustomActionSerializer","restricted_to","users","approved_by","FieldSerializer","field_name","can_filter","is_filter_displayed","is_filterable","conditional_formatting","findOperatorFromName","widget_display","FragmentConditionSmartActionPermissionSerializer","fieldPath","fixedOperator","FragmentFilterSmartActionPermissionSerializer","rest","fixedHash","GuestSerializer","InboxAssignmentSerializer","lastActionDate","InboxSerializer","MessageSerializer","message_content","OrganizationSerializer","isPersonal","isSsoAvailable","environmentsIncompatibleWithSaml","PasswordSerializer","passwordConfirmation","_default","canStartTrial","trial","UserRecoveryCodeSerializer","recoveryCode","ENTITIES_WITH_FILTER","RenderingSerializer","sectionsFormatted","normalizedResponse","conditionId","conditionSerialized","_findObject","embedded_field","sub_field","filterId","filterSerialized","_getConditionFromPayload","scopeId","scopeSerialized","entity","_getFilterFromPayload","_getScopeFromPayload","insertAt","links","environment_id","related","at","team_id","_fixFilterIntoEntities","_injectFilterIntoEntities","_injectScopeIntoCollection","pushPayload","normalizedPayload","_normalizeDocumentHelper","RowCreateSerializer","RowEditSerializer","features_deactivated","UserSerializer","createdAt","utm_campaign","utm_content","utm_medium","utm_source","utm_term","ViewEditSerializer","_transformIdToInternalId","summary_view","ViewListSerializer","is_smart","is_virtual","records_per_page","record_per_page","Transform","deserialize","deserialized","_getValueOrNull","_castAsNumberIfPossible","parseFloat","integerValue","isSafeInteger","FileTypeUtils","isDataURLScheme","applyMethodOnNestedAttributes","nestedRecord","all","parentPayload","cloneDeep","isNested","handleError","originalClassName","disableArgumentValidation","validatePropTypes","validation","propertyValue","validator","ArgumentValidation","validateRequirement","getError","MissingRequiredPropertyError","validateType","WrongPropertyTypeError","validateValue","WrongPropertyValueError","argument","fn","target","desc","argumentParams","GlimmerComponent","_argumentsToValidate","oldInit","HTMLSafeElement","toHTML","Any","isNativeType","setPropertyName","_error","isOfType","ArrayOf","_validate","methodToCall","OneOfType","types","validTypes","validType","OneOf","validValues","Optional","isObject","obj","Shape","propertyPath","_throwErrorAndReturnFalse","nestedOptions","isLegacyCache","cache","peekCache","getAttr","setAttr","setDirtyAttribute","optionsOrDefault","isAttribute","recordIdentifierFor","recordDataFor","cachedValue","Proxy","prop","receiver","stringifiedValue","proxyToNativeFunction","Reflect","errors","currentState","cleanErrorRequests","_array","formToInstantiate","CreationForm","BelongsToCreationForm","recordToDuplicate","DuplicationForm","EditionForm","formToDisplay","instantiateForm","currentRecord","polymorphicReferenceModel","formsQueue","instantiateRecord","cancelLastRecordCreation","destroyRecord","closeRecordCreation","_createNestedRecord","_createSimpleRecord","recordSaved","clientRecordFeature","upsertRecord","isBelongsToCreation","addRecordToAssociation","argsIsDateOnly","argsField","dateFormat","argsWidgetConfiguration","Target","activate","hubspotLiveChat","addLiveChat","deactivate","removeLiveChat","secure","fallbackToInsecure","beforeModel","transition","redirection","enforceProtocol","tokens","whiteLabel","getPrimaryColor","colorUtils","setColorPrimaryVariantsOnElement","controller","setupController","setupFavicon","setupProjectNameFromCustomDomain","Class","on","addListener","one","sendEvent","off","removeListener","redirectionIfFeatureActivated","redirectionIfFeatureNotActivated","teamFeatureService","ensureCollaborationFeaturesAccess","router","transitionTo","hasWidgetDisplayPrice","hasWidgetEditPrice","WidgetEditTypeEnum","PriceEditor","hasWidgetPrice","route","needsRequest","isPercentage","isApi","isFilterValid","isQuery","validators","clearOnTypeChange","objective","limit","stat","errored","statErrors","styleCode","toJSONTypeSpecific","dataSourceCollectionKey","sourceCollectionKey","forestApiFields","dataWithType","baseValidator","isAggregateValid","Leaderboard","Line","Objective","Pie","Value","ChartTypeEnum","NestedFieldClass","RealNestedFieldClass","isRelatedDataOrHasManyDeep","canFilterArrays","setDisplayedValue","OPERATORS_PER_TYPE","ModelValidator","ObjectValidator","preventAsyncConcurrency","propertyKey","descriptor","originalMethod","pendingPromiseMap","pendingPromise","mustPreventLeaving","controllerEntityToWatch","shouldIgnorePreventLeavingForTransition","onWillTransition","shouldResetEditModeOnAbort","sameRoute","to","getRouteParams","isSameRoute","sure","_lastWindowConfirmCall","time","confirm","onAbortLeavingWithoutSaving","onLeavingWithoutSaving","Route","unloadRecord","_onWillTransition","_onUnloadEvent","addEventListener","_onUnloadEventBinded","_onWillTransitionBinded","injectServiceWithoutDecorator","willDestroy","removeEventListener","preventDefault","returnValue","createComponentDecorator","destroyListeners","_onRouteWillChange","afterModel","navigateBackToRecordPage","navigateFromViewEditChild","navigateToViewEdit","PATHS_RECORD_PAGE","navigateWithSameCollectionAndRecordContext","navigateWithSameRecordContext","controllerFor","routeName","recordKey","sideMenuType","lastSideMenuWidth","getLastSideMenuWidthInStorage","handleSetSideMenuWidthInStorage","setLastSideMenuWidthInStorage","ClassWithValidation","_validateArguments","_defineDefaultValue","defaultProps","defaultPropertyKey","objectToValidate","argumentName","propTypes","PropTypes","checkPropTypes","validateGlimmer","didReceiveAttrs","attrs","_debugContainerKey","validateEmber","recordsToApplyOn","actionFeatureState","selectedRecordsOptions","onExecute","actionFeatureService","addCurrentApprovalComment","callSmartAction","setFormLoadingState","formFieldName","loadingState","formInputsLoading","isInitialLoading","validateArguments","isShowingErrorResponseAfterActionWithForm","shouldDisplaySmartActionResponse","shouldDisplaySmartActionForm","onClose","htmlResponse","isErrorResponse","closeButtonText","currentPageNumber","currentPageIndex","pageNumber","isPreviousButtonDisabled","disableButtons","isExecuteButtonDisabled","disableExecute","isNextButtonDisplayed","executeButtonType","func","searchField","searchValue","handleSearchHook","handleChangeHooks","formElement","innerField","arrayOf","instanceOf","FieldModel","handleSearchQuery","handleFormValueChange","initialize","isSingleRecord","firstRecord","except","idsExcluded","isError","string","ActionIntentError","specificName","ActionNotFoundActionIntentError","IncorrectIdsStructureActionIntentError","IncorrectParamsStructureActionIntentError","MissingIdForSingleBulkActionIntentError","ParamsNotParsableActionIntentError","RecordsFetchActionIntentError","RecordsNotFoundActionIntentError","nonExistingIds","toString","TooManyIdsForSingleActionIntentError","UnknownFilterForVisibilityError","UnknownError","cause","CustomActionAgentError","AgentError","customActionName","getFirstErrorStatus","UnexpectedDataCustomActionAgentError","innerError","UnreachableServerCustomActionAgentError","NoNetworkCustomActionAgentError","CORSOrServerUnreachableCustomActionAgentError","RequestTimeoutCustomActionAgentError","ServerFailCustomActionAgentError","UnauthorizedCustomActionAgentError","ForbiddenCustomActionAgentError","RecordNotFoundCustomActionAgentError","UnknownCustomActionAgentError","Service","isSaveButtonDisabled","actions","customActionService","getEnabledCustomActions","roleIdsAllowedToApprove","mustSkipConfirmation","resolveApprovalModal","resolveAction","resolvePromise","state","shouldDisplayRequestApprovalModal","hideRequestApprovalModal","closeRequestApprovalModal","success","showSmartActionHTMLResponse","responseState","hideSmartActionHTMLResponse","initActionRequest","showSmartActionForm","defaultSelectedRecordsOptions","approvalCommentContent","resetSmartActionFormValues","layout","smartActionHooksHandler","canUseHooks","handleLoadHooks","cacheFormValues","isMultiPages","setButtonsLabel","executeButtonText","currentEnvironment","buttonTitle","submitButtonLabel","ConditionalCustomAction","findIndex","page","goToNextPage","hasAllRequiredFieldsSet","displayToasterIfRequiredFieldIsEmpty","form","notifyRequiredValueMissing","notificationFeature","toasterDisplayed","f","subElement","goToPreviousPage","shouldAskUser","hideAllSmartActionComponents","cancelAction","isActionInState","askUserIfOkToCloseCurrentActionForm","resetFields","chatFeatureService","getCleanText","changedField","hooks","change","waitUntilLoadingFinished","isChangeHookLoading","hasFieldBeenUpdated","wasCancelled","cachedFormValues","cachedSearchValues","searchedField","handleSearchHooks","p","checkForApprovalAndAskConfirmation","triggerCustomAction","refreshAll","promises","isReloadable","refreshInfo","handleSmartActionFormResponse","actionApproval","triggerRequestApproval","EventBusEventsEnum","SmartActionApprovalCreated","actionIntentService","openActionIntentFromTransition","layoutBusinessService","toggleVisibility","handleRequestFailure","reorderEntities","isAnyActionAvailable","selectedRecordsCount","customActionsOrderedWithHidden","canExportCollection","customActionsOrderedForUser","canDeleteCollection","canAddCollection","isActionEnabled","enabledCustomActions","disabled","getSkipActionConfirmationCacheName","isCustomActionError","shouldDisplaySmartActionPanel","checkCanExit","canCloseCurrentActionPanel","showRequestApprovalModalOrRequestApproval","valuesToSend","valuesMap","SmartActionExecuted","recordIds","callActionOnLiana","beforeCustomActionExecution","afterCustomActionExecution","errorMessage","html","actionRequest","timezone","getCurrentTimezone","skipConfirmation","getItem","tryParseJson","showRequestApprovalModal","requestApproval","setItem","inputs","save","actionApprovalService","createApprovalMessage","trackEvent","currentInboxAssignment","inboxState","isRecordInCurrentInboxAssignment","recordId","activityTracker","trackWrite","Success","isRunByApprover","toastCaption","escapeText","defaultSuccessMessage","toastId","waitRefreshIfNecessary","preventInteractions","capture","actionLianaCaller","download","handleCustomActionData","updateToastr","isHTML","removeToastr","handleCustomActionError","handleCustomActionUserCustomizedError","webhook","webhookHandler","redirectTo","replaceOldRouteNamesByNewRouteNames","redirect_to","urlUtils","isUrlInternalOrRelative","open","refresh","fieldFound","monitorCustomActionError","managedError","HttpError","NoNetworkFailedToFetchError","RequestTimeoutFailedToFetchError","CORSOrServerUnreachableFailedToFetchError","actionsForSelectionLength","enabledActions","actionsToEnable","partition","isNotRestrictedToSegments","unions","liveQuerySegments","smartSegments","uniqWith","recordsToQuery","recordsInUnions","union","_queryRecordsInUnion","concat","differenceBy","filterType","segmentQuery","actionDecorator","getRecordData","customActionValuesRequest","getAttributesSerialized","updateFieldWidgetEditByName","updateFieldWidgetEdit","Dropdown","BelongsToSelect","handleLayout","layoutRaw","getLayoutElementsFromRaw","newElements","layoutElement","existingElement","updateLayoutElementProperties","shouldSetDefaultValue","shouldUpdateFieldValue","customActionField","wasDeleted","hook","notifyPropertyChange","msg","lianaServerFetch","res","endpoint","handleData","GlobalBulkSmartActionHook","notificationService","defaultValues","getValues","Hooks","getLoad","_asyncArrowRuntime","buildTask","generator","changedFieldName","serializeData","request","abortableFetch","waitForPromise","ready","smartActionFormValuesGetter","handleFields","restartable","searchedFieldName","isLianaHooksCompatible","SingleSmartActionValues","isLianaGlobalBulkHooksCompatible","callSearchHook","didCancel","isFieldDirtyAndHasChangeHook","callChangeHook","buildShouldUpdateFieldValue","hasFieldChangeSinceLastHookCall","hasHooksForThisField","extraAttributes","valuesAtCallTime","getCurrentFormValues","valueAtCallTime","valueWhenReceivingResponse","acc","actionIntent","parseAndAssertActionIntentFromTransition","actionModel","parseAndAssertActionIntentParamsFromTransition","parseRecordsIfNecessaryFromTransition","segmentTracker","trackActionIntentExecution","collectionBusinessService","Global","idsFromIntent","enforceArrayOfIds","parseAndAssertIdsFromTransition","Bulk","getRecords","actionIntentIds","collectionModel","getRecordsInCollectionOrSegment","assertAllPresent","existingIds","nonExistingRecords","t","Symbol","toPrimitive","_toPrimitive","_toPropertyKey","getData","httpMethod","customActionRequest","Loading","htmlSafe","separator","getUrlForAction","supportsHeader","RequestHeaderContext","supportsOpenIdConnect","ApplicationWideScopes","omitTimezone","downloadCustomAction","authenticatedServerFetch","typeArray","fileName","extractFileNameFromContentDisposition","getFileName","blob","saveAs","autoFocusApprovalComment","_shouldDisplayRequestApprovalModal","isDisplayed","resetActionState","_shouldDisplaySmartActionForm","displayInSidePanel","showActionModal","hideActionModal","_shouldDisplaySmartActionResponse","resetState","modalFeatureService","modalType","closeRightPanel","ActivityLogTemplatingHelper","activity","user","isStartingWithTargetUser","targetUser","isCustomAction","isDeleteAction","isApprovalAction","isWorkflowActivity","activityCollectionName","textBeforeLink","textAfterLink","fullStop","labelAfter","labelBefore","ActivityLogModel","collectionNameLowerCase","fetchRecords","activityLogs","lastSearchValue","canAccessToActivityLogs","activityLogsPage","activityLogsContent","activityLogFeature","formatActivityLogs","hasActivities","numberOfPages","ceil","isPageNumber","transitionToPage","isNaN","param","refetch","later","activitiesPage","queriedPage","results","fetchActivityLogs","retries","redirectToPage","cancel","queryValues","queryRecords","activityLogsFormated","itemPrevious","isSame","date","queryManager","watchNotificationFromAgent","apollo","handleNotificationEvent","refreshCollection","displayNotification","collectionFeatureService","getCollectionFromName","isEnabled","AiUserFeature","handleCreate","AiUserFeatureService","AiError","ManagedError","NoToolCallAiError","ToolInputValidationAiError","GetRelatedDataAiError","UnknownAIError","PermissionDeniedAiError","RecordUpdateAiError","ToolNotFoundAiError","ChooseGatewayOptionAiError","RecordSelectionAiError","langChainDependencies","ensureInitialized","getExtraHeaders","initAI","coreMessages","coreTools","getModel","aiName","toolInstance","collectionsRetrieverTool","tool","bindTools","tool_choice","invoke","buildMessagesCollectionRetriever","callToolOnce","conditionRetrieverTool","buildMessagesConditionRetriever","clearRemoteTools","toolsService","fetchRemoteToolsDefinitions","getOAuthTokenForMcpServer","mcpServerId","workflowEnginePromise","userRequest","additionalContext","allowedTools","agentService","askAiToSelectATool","availableOptions","askAiToChooseGatewayOption","setToolsContextHeaders","setContextHeaders","clearToolsContextHeaders","clearContextHeaders","doesToolNeedsUserConfirmation","toolName","getTool","aiMessageChunk","toolToExecute","tool_calls","workflowEngine","tools","getAllowedTools","getAllTools","aiService","askAiForStepParameters","toStandaloneRecord","SAFE_TOOLS","getAdditionalContextMessages","prompt","aiAgentContext","SystemMessage","toolExecution","messages","agentUtils","getChooseGatewayOptionMessages","chooseGatewayOptionTool","createTool","toolCall","toolExecutionAgent","invokeTool","AiToolExecutionAgentInternalBusinessService","buildOutput","toolResult","toolCallId","inputArtifacts","output","outputArtifacts","artifact","humanFriendlyParsingError","_zod","parsingError","z","safeParse","issues","AiPrompt","FINAL_RESPONSE_TOOL_NAME","GatewayOptionSelectionPrompt","FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH","getCurrentDateMessage","getBaseMessages","HumanMessage","collectionEntryPoint","summary","maxSizeInWord","number","relations","TextToCollectionsOutputsSchema","relevantFields","relevantActions","contextDescription","customerRequest","toolFunc","TextToConditionTreeInputsSchema","OperatorSchema","TextToConditionTreeOutputsSchema","ConditionSchema","waitingInitialization","loadDependencies","createModelWithAiName","openAI","ChatOpenAI","apiKey","bodyString","whiteListedParams","oauthHeaders","buildOAuthHeadersForAllServers","aiProxy","parallel_tool_calls","ok","errorText","temperature","maxRetries","withConfig","LangchainOpenAI","LangchainCoreTools","LangchainCoreMessages","emberAutoImportDynamic","headersByServerId","mcpOAuthService","getAllValidAuthorizationHeadersByServerId","mcpServers","mcpServerStore","getMCPServers","oauthTokens","mcpServer","authHeader","serverName","aiLlm","aiLlms","shouldUseLiana","customerAiName","fetchViaLiana","fetchViaForestServer","buildQueryParams","queryString","URLSearchParams","KNOWN_TOOLS","EXECUTE_ACTION_ON_SELECTED_RECORD_TOOL_NAME","READ_SELECTED_RECORD_FIELD_TOOL_NAME","UPDATE_SELECTED_RECORD_FIELD_TOOL_NAME","GET_RELATED_DATA_TOOL_NAME","CHOOSE_GATEWAY_OPTION_TOOL_NAME","_contextHeaders","clientRecord","localTools","finalResponseTool","remoteTools","getRemoteTools","actionOnCurrentRecordTool","readSelectedRecordFieldTool","updateSelectedRecordFieldTool","getRelatedDataTool","allRemoteTools","remoteTool","nonempty","describe","buildServerMappings","getValidAuthorizationHeader","getAuthorizationHeader","remoteToolDefinitions","toolDefinition","invokeRemoteTool","responseFormat","serverNameToIdMap","serverIdToAuthTypeMap","serverIdToOAuthConfigMap","authenticationType","oauthConfig","sourceId","requiresOAuth","sourceType","hasValidOrRefreshableToken","authenticateWithConfig","buildOAuthHeaders","throwHttpErrorIfResponseNotOk","reasoning","question","enum","chosenOption","verboseParsingErrors","actionService","actionNames","triggerCustomActionAndRefreshRecords","relatedField","displayNames","getFieldValue","fieldDisplayName","getFieldFromDisplayNameOrName","canEditCollection","updatedRecord","toRecordValue","getAllErrorDetails","buildSchema","inputTypes","getZodTypeFromFieldType","literal","null","enumValues","subType","zodTypeJson","getZodTypeFromBaseType","refine","val","typeString","preprocess","boolean","iso","datetime","coerce","AiFeatureState","ToolConfirmationInterruption","getToolCall","onClick","iconName","googleActionText","actionType","ssoActionText","invitationSecret","invitation","loginService","signInWithGoogle","signupService","signUpWithGoogle","sso","linkToOtherType","organization","currentOrganization","onSubmit","actionText","subtitle","hideLogo","noContent","invalidInvitation","authenticationInvitationService","isInvitationValid","saveCurrentAsLogoutUrl","saveCurrentUrlForLogin","InvitationModel","recoveryLinkSentTo","authenticationState","authenticationUtilsService","getInvitationPhrase","_email","defaultEmail","displayTwoFactor","requireTwoFactorAuth","password","isInvalid","isEmailValid","login","secret","organizationParams","getSsoOrganizationParams","selectedOrganizationName","organizationSsoName","localOrganizationName","buttonText","loginWithSso","cancelSsoLogin","isRecovery","requireRecoveryCode","variantParams","fieldLabel","codeLength","codePropertyName","linkLabel","linkAction","contactSupport","useRecoveryCode","normalizeTwoFactorCode","code","sentOneTimePassword","onError","onInput","debounce","launchLogin","openTwoFactorContactSupportModal","selectedTeam","updateSelectedRendering","authorizeData","selectedProject","selectedEnvironment","canGenerateAuthorizationCode","selectedRendering","pageTitle","oauthService","loadRendering","authorize","oauthParams","redirect_uri","client_id","code_challenge","code_challenge_method","response_type","resource","authenticationResetPasswordService","resetPassword","userModel","hideOptOutMarketingFromApp","customDomain","isCustomDomain","isPasswordValid","validateEmail","isInvalidEmail","onPhoneNumberChange","newNumber","phoneNumber","signUp","UserModel","countryCode","signUpWithSso","newPassword","confirmPassword","updatePassword","LianaUnauthorizedError","UnauthorizedError","IpWhitelistNotRetrievedError","WrappedError","UnknownJwtAuthenticatorResponseKoError","getResponse","unknownErrorMessage","MissingOauthParametersError","missingParams","OauthAuthorizationError","error_description","errorCode","errorDescription","FetchInvitationError","define","notificationBusinessService","MissingInvitationError","displayLastLogoutMessage","disableLogin","invalidateAll","isAuthenticated","redirectIfWrongUserConnected","redirectAccordingToInvitation","redirectIfWrongToken","isConnectedWithSso","MissingAuthenticationSamlCodeError","authenticate","validateParams","rendering_id","responseData","searchParams","append","is409Error","redirectTarget","authenticationRedirectionService","useRedirectTarget","transitionToProjectsIndex","redirectToPreviousTarget","displayErrorToaster","onToasterClose","onCloseCallback","onAutoClosed","flow","accountAlreadyExists","isSsoAccountOnly","routeIsSSO","afterAuthService","timeBasedOneTimePassword","handlePostLogin","TwoFactorAuthenticationRequiredError","logError","googleAuthenticationService","signIn","samlFlow","initiateLogin","destinationUrl","modalService","organizationPictureUrl","getMessageFromError","validateParamsAndRedirectIfMissing","oauthBusinessService","loadAuthorizeData","callbackUrl","WrongTokenResetPasswordError","ResetPasswordFailedError","is404Error","userEmailCleaned","enable","identify","trackSignupFormCompleted","trackOnboardingPhoneNumber","handlePostSignup","handleSignupError","newUser","AuthenticationUtilsInternalService","PASSWORD_REGEX","billingFeatureService","generateBannerState","canUserUpgrade","Trial","Project","mustDisplayBanner","trialService","hasTrialEnded","trialExpiresIn","generateTrialExpiresIn","upgradeParameters","upgradeQuery","plan","trialPlan","canEditProject","currentRouteName","triedPlan","warnsAt","endsAt","momentNow","days","diff","isAuthenticating","featureService","enableAssist","requiresUserAction","authenticationWindow","openNewTab","urlFor","waitUntilAuthenticated","crawlingService","focusSidePanel","close","hasProjectSettings","isAdmin","messageWithIconIcon","crawlingErrorMessage","displaySearch","manualSearch","crawledIdentifierAvailable","crawlingState","crawledData","genericCollectionName","searchInternalService","isSearchDisabled","routerViewState","searchState","messageWithIconText","showSearch","isLocalConfigurationDirty","localConfiguration","removeEmptySearchSettings","extensionConfiguration","canSave","isSaveFailed","sortedCollections","currentRendering","fieldsService","getFilterableFieldsInAssist","alreadyPickedCollections","identifiersWithSaas","getAvailableIdentifiers","selectedIdentifierWithSass","savedIdentifier","projectSettings","searchSetting","emptySearchSetting","saas","canRemoveCollections","onChangeCollection","newSearchSetting","removeAt","onChangeFields","onChangeIdentifier","isFirstConfiguration","configurationService","saveConfiguration","addSearchSetting","selectedCollection","selectedFields","availableSortedfields","searchSettingIndex","removeSearchSetting","BrowserExtensionPagesSettingsCardComponent","displayCloseButton","isReadyToUseAssist","isAdvancedSettingsDisplayed","settingsState","isProjectSettingsSaved","isAgentNotReachable","isAgentReachable","agentNotReachableMessageSubtitle","organizations","projectSettingsService","loadOrganizations","loadProjectsAndTeams","organizationId","projects","browserSessionService","loadProjects","loadAccessibleTeams","selectedOrganization","o","loadCurrentUserForCurrentProject","projectSettingsToTest","enableNewBrowserExtensionSearchOrThrow","saveProjectSettings","isTeamDisabled","isProjectDisabled","settings","browserExtensionFeatureService","disconnectFromExtension","userFullName","userEmail","onHeaderClick","headerIcon","hideBody","onExpand","isOpen","onRetract","onIsOpenUpdate","BrowserExtensionSharedClickableComponent","project_name","environment_name","team_name","collection_id","getCollection","rootURL","goToDetails","actionBeforeBack","transitionBackToPreviousView","routerView","previousView","showBackButton","paddingClass","sidePanel","BrowserExtensionSharedMessageWithIconComponent","iconSize","selectRecord","ClientRecordModel","fieldsToDisplay","actionsToDisplay","getColumnsToDisplay","relatedRecordsManager","getSpecificColumnsToDisplay","getFirstFourColumnsToDisplay","initialized","fetchNextPage","reset","getPage","countRecords","BrowserExtensionSharedRelatedCollectionCardRelatedDataRecordsComponent","hasMoreRecords","dropdownId","availableActions","dropdownButtonText","dropdownButtonIcon","displayDropdown","displayActionList","allActions","internalActionService","getActions","isActionDisabled","selectedAction","addView","handleDisplay","toggleDropdown","getElementById","buttonPosition","getBoundingClientRect","header","getElementsByClassName","clientHeight","footer","dropdownItemsHeight","hasInboxAction","requiredMargin","noRoomOnTop","shouldOpenOnTop","innerHeight","MouseEvent","changeContentVisibility","hideContent","isSearchingData","isDebouncing","searchStateByCollection","s","loading","someRecordsFound","searchHasStarted","singleCollection","singleCollectionSearchState","singleCollectionName","searchHasStartedAndIsFinishedLoading","searchUsingSearchBar","searchNewPage","searchService","searchNextPage","scrollIntoViewIfNeeded","viewMoreId","scrollingContainer","bottomOfScrollingContainer","offsetTop","top","scrollIntoView","behavior","hasSomeRecords","isGetMoreVisible","isGetMoreDisabled","singularizedCollectionName","listElement","querySelector","displayNoFormState","isActionExecuted","loadActionForm","executeAction","hasHtmlResponse","displayAiError","aiState","isSummaryLoading","getField","triggerIntelligentAssistant","handleMouseDown","isMouseDownInside","classList","contains","handleMouseUp","routePathToRecord","clientRecordService","getRecordPath","edit_collection_id","record_id","hasOnlyOneSelectedRecord","isIntelligentAssistantDisabled","setCurrentHoveredCardIndex","currentHoveredCardIndex","noActionsAndRelatedData","relatedData","noResultAfterFiltering","filteredActions","filteredRelatedData","flashEmoji","detailsEmoji","mark","filterValue","c","selectedRelatedData","HOME","trackRead","isDetailsViewLoading","resetStateToStartDataReconciliation","loadConfigurationInGlobalState","cleanSearchSettings","initWidgets","lianaSessionOidcService","initializeCrawling","loadProject","loadEnvironment","setIsUsingAnEnvironmentWithoutRoles","collectionsManager","registerNewCollections","setCurrentUserRolePermissions","capabilitiesService","fetchCapabilities","sessionHandler","handleResourceAccessError","clientRecordModel","actionState","BrowserExtensionAiContextBusinessService","entryPoint","aiContext","addCollectionToAiContext","pathsFromEntryPoint","addRelatedCollectionsToAiContext","rawCollectionData","collectionData","newContext","relatedCollections","maxDepth","currentPath","currentCollection","relation","newPath","existingPaths","addPathToListAndEnsureAllPathsAreShort","newPaths","tolerance","minPathLength","isFilterable","customerConversation","requestedCollections","triggerCrawl","buildAIContext","responseCollections","askAiCollections","concatenatedMessages","aiLocalState","AiLocalState","retrieveRecords","conversation","buildTextToCollectionsInputs","invokeCollectionsRetriever","resultRelevantRecords","resultRelevantCollections","possiblePaths","getPathsToCollections","explorationTree","nextSteps","pathFromEntryPoint","addRecordToResultsIfRelevant","exploreNextTreeStep","indexOfNextStep","foundRecords","remainingPaths","possibleNextSteps","steps","possibleNextStep","nextStep","getOrFindRelatedRecords","tempResultsPerCollection","savedResult","getTreeStepFromSavedRelatedRecords","treeStep","previousStep","findRelatedRecords","tempResults","queryCount","findRelatedRecordsWithDisabledCount","askAiToFilterCollection","conditionTree","askAiConditionTree","processesConditionTree","processConditionTree","filteredRecords","OPERATOR_ICONTAINS","simulateSearchWithContainsOperator","newRecord","pathToRecord","requestedCollection","buildTextToConditionTreeInputs","invokeConditionRetriever","isConfigurationValid","browserExtensionConfiguration","supportedFields","deduplicate","seen","newConfiguration","trackBrowserExtensionAssistUserMappingConfigUpdated","getChangedProps","oldConfiguration","numberOfCollections","SupportedSaasEnum","zendeskSelector","excludeIrrelevantIntercom","crawlingConfig","Zendesk","crawls","regexToMatchOnCurrentUrl","selector","Name","possibleLocations","Email","shouldMatchRegex","Organization","nearestNeighborText","Phone","Intercom","IntercomId","Crisp","onMessageFromExtension","removeListenerOnMessages","ExtensionMessageService","attachListenerOnMessages","listener","ticketChanged","getAvailableIdentifiersFromUrl","requestUrlFromExtension","getAllAvailableIdentifiers","configs","messageEvent","isSupportedSaas","respondToMessage","getCrawlingConfigForProject","getSupportedSaas","getConfigForUrl","getCrawlFromUrl","configForUrl","crawl","entry","toPlainJSON","waitInMs","requestId","randomRequestId","timer","extensionMessage","postMessage","BrowserExtensionFieldsInternalBusinessService","getFieldsSupportingIsOrContainsOperator","getFieldsSupportingIsOperator","isSupportedOperator","getFieldsSupportingContainsOperator","fieldModel","supportedOperator","findAll","is_blocked","include","recordContext","buildRelatedRecordContext","handleCountDeactivated","filterRelatedRecordsWithDisabledCount","isCountEnabled","relatedCollection","RelatedRecordsContext","col","firstFourColumnsToDisplay","referenceFieldColumn","searchAllCollections","updateCollectionSearchSates","resultsState","isUserTyping","autoSelectContext","totalCount","autoSelectIfRequired","buildRecordContextToSimulateSearch","buildRecordContextToSearch","recordsManager","availableFields","fieldsSupportingContains","fieldsSupportingIs","buildRecordContextForFilter","createRecordState","getFieldColumns","currentValue","EXTENSION_SETTINGS_KEY","extensionSettingsKey","currentOrganizationId","localContext","_projectSettings","tName","dispatchEvent","viewCopy","syncSaasTicketToAssist","displaySsoLoginSuggestion","saveLogoutErrorMessage","recordsPerPageOrDefault","countDeactivated","recordsCount","str","settingsStorage","sessionStorage","getId","BrowserExtensionSearchState","BrowserExtensionRouterViewState","BrowserExtensionSettingsState","SearchBrowserExtensionCrawlingState","BrowserExtensionAIState","UserPreferenceManagerThemeChanged","handleThemeSwitched","destroy","themeBackgroundColor","gridColor","datasetsForLineChart","datasets","backgroundColor","computeGradient","pointBackgroundColor","pointBorderColor","pointBorderWidth","axisConfiguration","gridLines","ticks","fontColor","xAxisConfiguration","timeUnit","tooltipFormat","maxTicksLimit","autoSkip","maxRotation","yAxesConfiguration","merge","offset","chartOptions","scales","yAxes","xAxes","handleDataRefresh","labels","handleDidInsert","getContext","willReadFrequently","Chart","responsive","maintainAspectRatio","onResize","canvas","legend","display","gradient","createLinearGradient","offsetHeight","rgbPrimaryColor","tinycolor","toRgb","rgbBackgroundColor","addColorStop","g","oneOf","isPositive","isNegative","variationIcon","argTypes","required","table","category","dimension","control","VariationIndicator","VariationIndicatorWithDimension","VariationIndicatorWithDimensionAndTooltip","textareaId","toolbarId","sectionId","chatState","chat","sanitizeAndSubmit","iconButtonSize","inputSize","initQuill","initializeQuill","shouldFocus","quill","destroyQuill","onKeydown","mentionsDisplayed","isKey","ENTER","shiftKey","stopImmediatePropagation","stopPropagation","twenty","scroll","domNode","scrollHeight","getParsedComputedStyle","inputSection","submitAction","setText","textarea","focusTextarea","focus","mentionables","MentionBlot","Embed","node","hoverHandler","innerText","setAttribute","getAttribute","Quill","register","_class4","mentionModalId","mentionsModal","initListeners","onKeyup","suggestions","selectedItem","selectSuggestion","currentSelectionIndex","getSelection","mentionMatch","getLastMentionMatch","mentionDetected","mentionUsername","mention","memorizedCursorPosition","setMentionPosition","rectangle","inputLeft","left","scrollLeft","inputTop","scrollTop","cursorPosition","getBounds","absoluteCaretLeft","absoluteCaretTop","modalHeight","modalWidth","clientWidth","deleteText","sources","SILENT","insertAtPosition","insertEmbed","insertText","setSelection","scrollSelectionIntoView","starIndex","textBeforeCursorPos","getText","lastAtIndex","lastIndexOf","textWithPotentialMention","exec","author","cleanText","calendarAnchorDisplay","unitOfTime","currentLocale","relativeTimeFormatter","Intl","RelativeTimeFormat","numeric","calendar","sameDay","lastDay","lastWeek","sameElse","groupBy","subThreads","currentMessage","d1","d2","calendarAnchor","startOf","toDate","getSemanticHTML","sanitizeRichText","allowedAttributes","span","modules","toolbar","toolbarElement","autolink","clipboard","resize","theme","ImageFormat","keyboard","addBinding","UP_ARROW","upHandler","DOWN_ARROW","downHandler","bindings","handleShiftEnter","onSelectionLinkChange","editLink","range","lineFormats","formats","delta","Delta","retain","insert","updateContents","USER","startLinkEdition","linkPreview","onLinkEdition","ESCAPE","preventScroll","root","linkRange","formatText","Emitter","cancelLinkEdition","oldRange","descendant","LinkBlot","Range","preview","referenceFieldValue","cannotFindRecord","referenceFieldService","getValueToDisplay","found","ensureRecordLoaded","CollectionModel","isLinkDisabled","shouldDisplayNumberOfRecords","linkClassName","ClientRecordAgentError","fingerprint","ParsingFiltersClientRecordAgentError","RecordAccessForbiddenClientRecordAgentError","RecordNotFoundClientRecordAgentError","PathNotFoundClientRecordAgentError","ServerFailClientRecordAgentError","UnauthorizedClientRecordAgentError","ForbiddenClientRecordAgentError","UnknownClientRecordAgentError","UnexpectedDataClientRecordAgentError","ServerValidationClientRecordAgentError","UnexpectedResponseClientRecordAgentError","NoPrimaryKeyClientRecordAgentError","AbortClientRecordAgentError","NoNetworkClientRecordAgentError","CORSOrServerUnreachableClientRecordAgentError","RequestTimeoutClientRecordAgentError","MissingNativeQueryConnectionClientRecordAgentError","UnknownParentRecordClientRecordAgentError","recordModelName","recordConstructorName","isInstanceOfModel","isInstanceOfFragment","UnreachableServerClientRecordAgentError","ValidationClientRecordAgentError","getCollectionFromRecord","validateRecord","crudHandler","isNewRecord","EventBusClientRecordEventsEnum","RecordCreated","RecordEdited","handleDetailsError","RecordDeleted","recordsState","withSelect","mustDeleteOnlyAssociations","numberOfRecordsToDelete","recordsText","bulkDeleteRecords","getSelectedRecordsIds","sourceError","handleCommonError","clearRecordsInCache","collectionsToClear","layoutState","RecordRelationshipEdited","updateEmbeddedRelationship","embeddedRecords","shouldHandleFailure","fetchRecord","shouldFetchCurrentRecord","fetchRecordAndRequiredBelongsTo","handleListingError","isCountLoading","fetchRecordsCount","CountDeactivatedError","isCountDeactivated","buildStateFromQueryParams","collectionOrField","param2","param3","stateHandler","UnreachableAgentError","UnknownClientAdapterError","InvalidError","handleCapabilitiesError","getRecordLink","hasSummaryView","isWorkspaceFeatureEnabled","workspaces","ws","hasWorkspace","destination","premiumSummaryView","clientRecordStore","viewCreate","validate","only","deleteHasManyRecords","deleteRecords","getSelectedQuery","selectedRecordsContext","TableViewSelectAllRecords","deleteRecordsFromSelection","removeObjects","deleteRecordsFromEmbeddedAssociation","deleteRecordsFromHasManyAssociation","clientRecordRelationshipStore","addRecordsToHasMany","rawData","fetchRecordThroughListing","recordToReturn","belongsToAttributeName","belongsToRecord","belongsToOptions","belongsTos","getPostPayloadForFetchRecords","columnNames","filtersStringified","genericFilter","sortParameters","sortQuery","searchParameters","searchExtended","contextParameters","starting_after","startingAfter","ending_before","endingBefore","segmentParameters","getGetPayloadForFetchRecords","getQuery","PostHTTPMethodList","hasManyLink","dataNormalized","getURL","relationshipName","relationshipNameWithoutNamespace","denamespace","getDataBelongsTo","polyFields","canUseNewPolymorphicUpdateRelationshipFormat","getPolymorphicDataType","getDataHasMany","modelNameNamespaced","selectedRecordsRequest","markRelationshipAsNotDirty","_getForestRecordData","didCommitHasMany","recordIdsToAdd","newRecordIds","createNewRecords","deletedRecordIds","optionsFetch","actualValue","newRecords","relationshipRecord","didCommitBelongsTo","relationshipIndex","targetCollection","segmentToFind","Ascending","unloadAll","shouldUpdateBelongsToFieldOnly","relationshipNamesToUpdate","eachRelationship","isAgentV1","ExpressMongoose","ExpressSequelize","Rails","lianaName","newPk","updateBelongsTo","shouldUpdateRelationshipsAfterCreation","updateAllDirtyRelationships","removeRecordFromStore","adapter","adapterFor","idsIncluded","selectedRecordsRequestData","fetchAbortSignal","deleteRecordsFromHasMany","findRecordWithTracking","RecordsContext","isKeepingSelectedRecordsOnRefresh","parentRecordId","cloudFeatureService","generateHelpState","segmentTrackerService","trackCloudCustomizationMenuAccessed","openHelpModal","displayNewDatasourceModal","datasourcesService","datasourceModalStep","isPendingRestart","cloudService","datasourcesPendingUpdate","getColorFromDatabase","DatabaseTypeEnum","MariaDB","MicrosoftSQLServer","MongoDB","MySQL","Postgresql","datasource","openNewDatasourceModal","datasources","DatasourceModel","defaultDatabaseCredentials","getDefaultDatabaseCredentials","nextState","loadingDatasourceCreation","unsubscribeToUpdateCredentialsEvents","newDatabaseCredentials","createNewDatasource","showValidationErrors","setDatabaseCredentials","fetchSshKeysForFullHostedAgent","goBack","skipStrictProtocolCheck","datasourceDialect","continue","isDatasourceNameValid","isNameTaken","isAgentRestarting","cloudState","openUpdateCredentialsModal","updateCredentials","defaultType","databaseCredentialsCloud","removeDatasource","EnvironmentModel","singleDatasource","syncCloudButtonSubscriberId","classAndIcon","buttonState","class","subscribeToRestartEvents","restartStarted","restartEnded","onRestartEnded","restartFailed","onRestartFailed","unsubscribeToRestartEvents","resetButton","restartFullHostedAgent","DatabaseCredentialsCloud","onCloseModal","subscribeToUpdateCredentialsEvents","onUpdateCredentialsFailed","onUpdateCredentialsSucceeded","resetError","forceToUpdate","loadingUpdateCredentials","onChangeConfirmationInput","disableUpdateCredentials","missingCollections","missingCollectionsError","discardCredentialChanges","missingCollectionsMessage","first3MissingCollections","isOnCloudRendering","canCustomizeEnvironment","Admin","Developer","alreadyCustomized","firstCustomizedAt","hasDevelopmentEnvironment","developmentEnvironment","clearNotification","fullHostedAgentToastr","CloudHelpFeatureState","bootstrapCommand","helpService","generateDefaultBootstrapCommand","installDependenciesCommand","generateInstallDependenciesCommand","createActionCode","defaultCreateActionCode","generateSpecificBootstrapCommand","command","changeHelpTab","serializedCredentials","removePublicKeyFromCredentials","isOk","waitingForAgentRestart","updateDatabaseCredentialsAndRestart","simpleAgentRestart","datasourceId","ssh","publicKey","cloudEventsService","subscribeToEvent","formattedError","formatDeployError","unsubscribeToDeployFailedEvent","unsubscribeToEvent","subscribeToEvents","onRestartStarted","stopDisplayingToastersOnRestartEvents","unsubscribeEntityToEvent","entityId","handlers","graphQLQuery","getQraphQLQuery","singleUse","unsubscribeEntityToEvents","onUpdateCredentialsStarted","CLOUD_EVENT_QUERIES","deployFailed","queryFullHostedDeployFailed","resultKey","queryFullHostedRestartEnded","queryFullHostedRestartFailed","queryFullHostedRestartStarted","updateCredentialsFailed","queryFullHostedUpdateCredentialsFailed","updateCredentialsStarted","queryFullHostedUpdateCredentialsStarted","AbstractEventsService","currentEnvId","eventName","variables","indent","withoutFirstLineReturn","indentationSize","sanitizeName","DEFAULT_DIRECTORY_NAME","exampleCollection","actionSuccess","generateBootstrapCommand","environmentSecret","environmentService","fetchSecretKey","isDatasourceNameEmpty","dialect","mariaDbDefaultCredentials","microsoftSqlDefaultCredentials","mySqlDefaultCredentials","postgresSqlDefaultCredentials","setDatasourceDialectAndContinue","onDatasourceCreationFailed","onDatasourceCreationSucceeded","datasourceName","datasourceSuffix","suffix","goToEnvironmentSettingsIndex","queryParametersStore","getCurrent","isCollectionActive","hasVisibleActiveSegment","isCollectionSelected","getDefaultSegmentIdForCollection","isCollectionFolded","currentCollectionId","handleFoldCollection","isFolded","foldCollection","unfoldCollection","currentSegmentId","getFolderChild","currentRoute","isEditable","UnknownFetchViewListError","collectionStore","navigationHandler","isItemFolded","getCollectionKey","setItemFoldedState","createFilter","addFilterCondition","createdCondition","openModal","entityName","onConfirm","closeModal","modalTitle","warningMessage","cancelText","onCancel","canConfirm","inputValue","expectedValue","onKeyUp","handleConfirm","handleCancel","CompleteExample","confirmationService","normalizeConfirmationString","CriticalActionConfirmationConfirmationInternalBusinessService","namePlaceholder","iconDefaultValue","onCreate","isCollectionItem","withIcon","selectedCard","getCardFromFeatureName","configurations","isRestricted","isInBeta","abilityName","shouldDisplayUpgradeButton","featureCallback","CustomizationCenterConfigurationFeaturesEnum","inboxFeatureService","handleOpenCreationModal","bannerMessage","displayedFeature","hoveredCard","canAccessFeature","handleSelectedCardChange","selectedCardFeatureName","handleCardHover","hoveredCardFeatureName","customizationCenter","openCreationModal","image","discoverLink","ability","CustomizationCenterModalPreviewComponent","imageUrl","altText","FeatureEnableTypeEnum","loadRequiredPlan","Access","TrialDevelopment","Enable","lowestPlanHavingFeature","Unknown","ContactUs","TrialUpgrade","UpgradeRequired","premiumFeatureName","capitalizeText","upgradeText","planService","findFirstPlanWithFeature","premiumFeatureUpgrader","upgradeToPremiumFeatureForFree","featureCallbackRoute","subscriptionService","startPlusTrial","upgradeToPremiumFeatureWithPaidPlan","featureParams","contactService","getContactFormUrl","openCustomizationCenterModal","trackCustomizationCenterOpened","getConfiguration","customizationCenterConfigurationInternalBusinessService","Action","architecture","Cloud","trackStartingCreation","modalArgs","customizationCenterFeatureCreationInternalBusinessService","getModalArguments","handleCreationModalSubmit","Folder","folderFeatureService","createFolder","workspaceFeatureService","createWorkspace","dashboardFeatureService","createDashboard","segmentFeatureService","createLocalSegment","modelCustomizationService","createLocalModelCustomization","workflowFeatureService","createWorkflow","methodName","imageDark","MultipleDashboards","CustomizationCenterConfigurationInternalBusinessService","CustomizationCenterFeatureCreationInternalBusinessService","getFolderConfiguration","getWorkspaceConfiguration","getDashboardConfiguration","getSegmentConfiguration","getActionConfiguration","getWorkflowConfiguration","DashboardModel","currentDashboardId","onItemClick","dashboardStoreService","addEntityToFolder","routerService","lianaSessionService","storeService","testEnvironments","isCurrentEnvironmentTest","triggerLabel","handleSelect","onSelect","isFolderFolded","hasFolderActiveChild","isFolderActive","handleFold","foldFolder","handleClickFoldIcon","handleClick","navigateToFolder","unfoldFolder","reorderItems","activeItemId","currentWorkspaceId","currentInboxId","isProgressiveSideMenuRenderingEnabled","handleDidUpdate","handleEditModeActivated","handleEditModeDeactivated","featureFlagsService","isFeatureOn","FeatureFlagsEnum","SideMenuSpeedUp","shouldReplace","getChildren","getComponentNameToRender","getChildItem","getChildTargetItem","isSubChildrenAllowed","getBatches","shouldIgnoreVisibility","batches","lastBatch","lastBatchEstimatedSize","BATCH_SIZE","getEstimatedSize","itemSize","processBatchesInAnimationFrame","processNextBatch","shouldContinue","requestAnimationFrame","loadingSetIteration","pauseFor","DELAY_BEFORE_DISPLAYING_LOADER","currentChildren","deletedChildren","childrenToDraw","newChildren","childrenIdToRenderInEditMode","newChild","lastChildrenToDrawLength","childrenLength","lastChildrenLength","abs","handleRedrawAFterReorder","setIsLoading","childrenComputationIteration","shouldRenderInvisibleItems","inSingleBlock","firstBatch","restBatches","batch","shouldForceCompute","batchesWithHiddenElements","shouldDisplayFolder","textButton","isLayoutEditorEnabled","folderService","closeCreateFolderModal","isDarkMode","userPreferenceState","isDarkTheme","isSaveDisabled","saveFolder","handleChangeName","deleteFolder","handleDiscard","discardFolderChanges","resizableSideMenu","SideMenuItemsEnum","addOrphanEntitiesToMainFolder","handleRouteDidChange","handleLeaveEditMode","getMainFolder","getRouteInfo","workspace_id","dashboard_id","currentFolderId","folder_id","uiControl","isSideMenuHidden","handleAddNewItem","customizationCenterFeature","activeItem","inline","click","handleHideSideMenu","UnknownFolderError","NotFoundFolderError","NotFoundFolderChildError","notificationName","folderManager","openCreateFolderModal","folderFetcherInternalBusiness","fetchFolders","folderId","folderStore","getFolder","folderReorderHandlerService","getSortedChildren","getChildrenMatchingSearch","getSortedChildrenMatchingSearch","getFolderKey","entityType","childId","removeChildFromFolder","shouldAllowInvisibleSection","addSegmentToCollectionSubChildren","removeSegmentFromCollectionSubChildren","isSegmentInCollectionSubChildren","layoutService","fetchEntitiesAndPutInStore","getFolderChildById","hideAllChildren","folderChildTargetingParent","getFolderChildTargetingParent","entityToUpdate","shouldUpdateParentVisibility","folderToUpdate","updateManyFolders","getFolderPosition","refreshFolderChildrenPositionsAfterDelete","positionOfFolderToDelete","moveOrphanedChildrenToMainFolder","updateItemsPositionsAfterDeletedItem","deletedFolderPosition","positionUpdate","removeFolderFromMainFolder","includesSearchValue","createIncludesCaseInsensitive","allChildren","sortedChildren","createChildInFolder","foldersToUpdate","sectionMatchingPath","mainAttributeForEntity","existingEntityFolder","getAllFolders","newEntityFolder","existingChildren","getAllFolderChild","getAllEntitiesOfType","WorkspaceModel","rootFolder","SegmentModel","extraParams","createChildInFolderOrSubChild","createFolderSubChild","collectionFolderChild","segmentFolderChildsInsideCollection","defaultFolderChild","containerEntity","oldIndex","newIndex","setItemsPosition","debounceTime","toIds","fromItem","toItem","movedItemId","containerFrom","containerTo","removeItemFromFolder","addItemToFolder","folderFrom","folderTo","reorderInSameFolder","fromIds","reorderBetweenFoldersRestartableTask","getCollectionIdToShareableIdsMap","collectionIdToShareableIdsMap","folderChildToRemove","addChildToFolder","reorderItemsRestartableTask","getCollectionByShareableId","shouldSave","unloadChild","openAssignForm","collectionInboxes","loadAvailableInboxes","hasAssigneeChanged","currentAssignment","selectedUser","handleChangeTeam","handleInboxChange","inboxesAvailable","availableTeams","selectedTeamId","availableInboxesForTeam","getAvailableInboxesForTeam","selectedInbox","getAssignmentForRecord","defaultUser","assignRecordToUser","assignment","onAssignRecord","isSearchOpened","INBOX_ASSIGNMENT_STATE_TO_LABEL","Todo","Doing","Done","AutoCanceled","cloneFilters","assignees","states","loadQueryParameters","onSort","handleColumnSort","getNumberOfPagesForBacklog","countAssignments","isNumberOfPagesDeactivated","isNumberOfPagesLoading","isNextButtonDisabled","inboxAssignments","NUMBER_OF_RECORDS_PER_PAGE_BACKLOG","hasNoFilters","isFilterDirty","appliedFilters","shouldDisplayAssignButton","taskWithRecord","shouldDisplayForSegment","shouldDisplayForWorkflow","getSortFromQueryParams","getFiltersFromQueryParams","getPageFromQueryParams","filtersWithAssigneeIds","loadTasksAndCount","setQueryParamsFromSort","resetBacklogCache","setQueryParamsFromFilters","setQueryParamsFromPage","numberOfFilters","fetchTasks","loadCountAssignments","assigneeIds","assignee","getAssignmentsForBacklog","getNumberOfTasksForBacklog","getRecordIdsFromTask","task","getStateLabelFromAssignment","redirectToRecord","unassignRecord","handleAssignRecord","colorBadge","resetBacklog","handleFilterChange","property","startedProcessingAt","unassigned","removeEmptyValuesFromObject","handleSortChange","InboxModel","statesForFilters","handleDateRangeChange","onFilterChange","after","before","applyFilters","discardFilters","filtersCount","isDiscardFiltersDisabled","isApplyFiltersDisabled","handleSubmit","setCurrentInboxAssignmentAndCloseModal","selectedAssignment","assignmentsLinkedToCurrentRecord","InboxAssignmentModel","AbstractMultiStepComponent","handleCollectionChange","handleDispatchRuleChange","createInboxSortingField","firstStepTitle","firstStepSubtitle","shouldDisableCollectionInput","shouldDisableTypeInput","handleSortingFieldChange","handleSortingOrderChange","handleAddSortingField","handleRemoveSortingField","createInbox","onInboxCreated","handleCloseCreationModal","AbstractStepComponent","onCollectionChange","onSegmentChange","onTypeChange","onNameChange","isCollectionInputDisabled","isTypeInputDisabled","formattedInboxTypes","isCollectionFilterable","isValidSegmentInbox","commonValidator","isStepComplete","handleTypeChange","handleSegmentChange","onSortingFieldChange","onSortingOrderChange","onDispatchRuleChange","onAddSortingField","onRemoveSortingField","InboxSortingFieldFragment","areSortingFieldsValid","typeText","inboxName","dispatchRuleLabel","randomRuleDescription","INBOX_MAX_SORTING_FIELDS","sortingFieldNamesAlreadySelected","filteredSortingFields","collectionSortingField","canAddSortingFields","shouldDisplaySortingFieldSelector","orderChoices","isMultipleSortingFieldsSupported","loadTasks","todoTasksCount","descriptionWithNoRecords","canUserReassign","getDisplayNameFromRecord","inboxAssignment","getDoingTasks","getToDoTasksCount","handleOpenTask","entryPointInboxId","setEntryPoint","InboxEntryPointEnum","startProcessingTask","getAssignmentsWithRecord","getNumberOfToDoTasks","loadState","currentInbox","shouldDisplayInboxNotificationBarForWorkspace","redirectionData","getRedirectionRouteAndParameters","recordDisplayName","fetchSingleAssignmentRecord","handleExit","exitInbox","startProcessingInbox","handleEditMode","handleUpdateInbox","isAutoUnassignEnabled","isRandomDispatchRule","autoUnassignAfterOptions","unassignAfterUnit","unassignAfterDuration","isTasksLimitEnabled","inboxType","handleCanUsersReassignChange","handleIsAutoUnassignEnabledChange","handleTasksLimitEnabledChange","isMaxTasksEnabled","updateInbox","deleteInbox","handleEditDispatchRule","handleOpenEditDispatchRuleModal","hasChanges","isSaving","resetInboxCache","modalFeature","InboxAssignmentUpdated","handleInboxAssignmentUpdate","isFoldedByDefault","canAccessInbox","numberOfToDoTasks","promiseNumberOfToDoTasks","numberOfDoingTasks","promiseNumberOfDoingTasks","getNumberOfDoingTasks","canAccessBacklog","handleFoldInbox","allSettled","inbox_id","getNumberOfTasks","computeNumberOfTasks","onStartProcessingFailed","InboxNoRecordsToTreatError","InboxAccessForbiddenError","AccessForbiddenError","InboxNotFoundError","NotFoundError","ConflictInboxAssignmentCreationError","UnknownInboxAssignmentCreationError","InboxAssignmentLimitTasksReachedError","InboxAssignmentClosedNotInSegmentError","TaskWithRecord","registerListeners","handleWriteActions","SmartActionApprovalApproved","handleSmartActionApproval","CloseWorkflowInboxAssignment","inboxWorkflowFeature","handleClosingWorkflowInboxAssignment","sessionInvalidationHandler","handleRouteWillChange","isMultipleSortingFieldsAvailable","inboxManager","isManualExit","fetchAssignments","inboxTasksFetcher","isExitingTargetRoute","fetchRecordsForAssignments","isViewEditRoute","getViewEditParamsFromRoute","getInboxesByCollectionId","segmentInboxes","doingAssignments","fetchAssignmentsAndEnsureState","transitionedAssignments","todoAssignments","transitionTodoAssignmentsToDoing","validAssignments","mustDisableClose","transitioned","transitionSegmentTodoToDoing","setCurrentInboxAssignment","isCurrentTeam","getInboxesForTeamAndCollection","asyncFilter","segmentFeature","isSegmentMatchingRecord","fetchAssignmentForRecord","updateLastActionDateOnAssignment","handleClosePreviewModal","inboxId","userToAssign","assignWorkflowTaskToUser","getInboxByIdAndEnsureAccess","fetchOpenAssignmentsForInboxAndEnsureState","inboxAssignmentId","removeItem","getEntryPointFromStorage","entryPointType","entryPointPath","clearInboxesFromOtherTeams","loadRequiredModelsForInbox","fetchDoingTasksWithRecord","redirectToWorkspace","isOnWorkspace","routeParameters","routeHistory","flushFrom","redirectToRecordOrWorkspace","setEntryPointToStorage","workflowRun","WorkflowRunNotFoundError","getWorkflow","currentRun","getWorkflowForInboxAssignment","startWorkflow","startNewSegmentTask","startNewWorkflowTask","Info","doingTasks","sortedDoingTasks","indexToFetch","isNotFoundError","fetchNumberOfToDoTasks","toDoTasks","fetchAllRecordsToDo","NUMBER_OF_TO_DO_TASKS_TO_FETCH","fetchNumberOfDoingTasks","inboxParameters","getIsOnWorkspaceRoute","createSortingFieldFragment","getCurrentInboxAssignmentForInbox","getCollectionsWithInboxes","createInboxWorkflowAssignment","getCurrentWorkflowRun","getRootRecord","backlogTasksFetcher","countAllForInbox","fetchAssignmentsForPage","invalidateCacheForInbox","sortOrder","isValidSortParams","by","descending","INBOX_ASSIGNMENT_SORT_BY","startedProcessingAtAfter","startedProcessingAtBefore","statesPossibleValues","verifiedStates","dateFilters","usersIds","userFeatureService","getUserById","hasValidUnassignedFilter","parsedPage","getInboxKey","isExcludingClientRecords","mustFetchClientRecords","mustFetchForestAssignments","mustFetchToDoRecordsOnForest","mustToDoRecordsBeDisplayedFirst","unchangedFilters","filtersWithState","getFiltersWithStates","assignments","tasksFetcher","fetchRecordsForAssignmentsAndEnsureState","numberOfRecords","getRecordsContextForToDoTasks","shouldIgnoreRandomSortRule","shouldFetchDisplayField","isCurrentUserTasksOnly","shouldIgnoreAllToDoTasks","existingFilter","fetchRecordsList","FetchAgentError","openAssignments","countToDo","countAllToDoTasks","cachePagination","isFirstFetch","SelectPageUnavailableError","actualCountToDo","todoOffset","numberOfToDoDisplayed","getCacheCountToDo","countToDoCache","cacheCounts","todo","firstPageRecords","fetchToDoAssignmentsForPage","firstToDoRecordIds","fetchAssignmentsWithRecords","getFirstTodoPageRecords","todoPage","shouldFetchToDoAssignmentsForPage","fetchAssignmentsForPageForestAssignmentsFirst","updateCacheCount","lastFetchedAt","doingAndDone","filtersWithStates","isCacheValid","isSuccess","countDoingAndDone","UnassignReasonEnum","currentTeamId","trackInboxCreated","trackInboxUpdated","trackInboxDeleted","assignmentToStart","fetchToDoRecordForWorkflow","trackInboxRecordAssigned","invalidateCacheCountTodoForInbox","isRetryingFailure","fetchTasksToDo","potentialRecordIds","recreateAssignment","Auto","targetTeamId","getEntryPointStorageKey","CLIENT_RECORD_CACHE_TTL","cacheTTL","cacheInboxOpenAssignments","cacheInboxOpenAssignmentsWithRecords","fetchOpenAssignmentsForInbox","assignmentsWithTasks","shouldFetchOnCollection","assignmentsWithRecord","isBefore","subtract","mustBeAutomaticallyClosed","Cancel","lastActionTime","requestedRecordIds","fetchedRecordIds","assignmentId","markInboxAssignmentAsDone","getCurrentUserAssignmentFromCache","currentUserAssignments","cacheCurrentUserAssignments","tasks","getCurrentUserAssignments","allAssignmentsWithRecord","assignmentsToReturn","buildFilterForRecordState","recordIdsToExclude","recordIdsToInclude","collectionBusiness","getDefaultSortingFieldName","inboxAssignmentsToExclude","buildRecordsStateForInbox","sortingFieldIndex","floor","fetchCurrentUserAssignmentAndEnsureState","cacheCountToDo","cacheTasksToDo","tasksToDo","fetchExistingToDoTasks","newToDoTasks","currentUserId","uniqBy","EndAssignmentReasonEnum","inboxWorkflowFetcherInternalBusinessService","workflowRunId","matchingAssignment","escalatedInboxId","workflowFeature","getLastEscalationInboxId","skipLastStep","Escalate","includeRevisedOrCanceled","Revise","getInboxAssignmentFromWorkflowRunId","Abort","_currentInboxAssignment","isWorkflowInbox","mcpServerState","integrationName","integrationsData","mcpServerFeature","setIntegrationName","serverUrl","createMcpServer","isForestConnector","loadTools","getToolsForMcpServer","refreshRemoteTools","resetHasLoadingError","updateMcpServer","deleteMcpServer","handleClose","onAddNew","preventLeavingWithoutSaving","McpServerFormComponent","isFromIntegration","isOAuth","autoDetectWellKnown","cancelWellKnownCheck","authenticationTypeOptions","supported","authenticationMethodsSupported","allAuthenticationTypeOptions","extractBearerToken","extractHeadersJson","headersWithoutAuth","parseHeaders","headersJson","isHeadersJsonValid","isBearer","extractOAuthField","shouldShowOAuthConfig","isLoadingWellKnown","isServerUrlValid","isOAuthValid","wellKnownDiscovered","supportsClientRegistration","oauthClientId","isReservedServerName","nameToCheck","toLocaleLowerCase","forestConnectorsReservedNames","baseIsDirty","originalHeadersJson","headersAreDirty","forestConnectorConfig","originalBearerToken","bearerToken","originalOAuth","clientId","oauthClientSecret","clientSecret","forestConnectorConfigFields","configFields","hasForestConnectorRequiredFields","buildBearerConfig","buildOAuthConfig","buildConfig","customHeaders","handleAuthenticationTypeChange","handleServerUrlChange","wellKnownError","wellKnownDebounceTimer","handleUpdateForestConnectorConfig","fetchWellKnownConfig","registration_endpoint","onSave","iconURL","validateIcon","getIconURL","fallbackIcon","img","Image","isPlaceholder","imageLoadFailed","naturalWidth","naturalHeight","loadRequests","mcpServerFeatureService","getAllIntegrationRequests","currentIntegration","getIntegrationByName","requestCount","getIntegrationRequestCount","isRequested","hasUserAlreadyRequested","statusLabel","ctaText","isForestContactUs","isInstalled","ctaDisabled","ctaAction","requestNewConnector","handleInstallIntegration","handleRequestIntegration","checkClamped","isClamped","toggleExpanded","isExpanded","requestIntegration","logoUrl","onRequest","openIntegrationConfiguration","documentationUrl","loadInstalledIntegrations","filteredIntegrations","activeFilter","installedIntegrations","requests","searchQuery","requestedNames","aRequested","localeCompare","installedCount","requestedCount","isIntegrationInstalled","getCachedIntegrationRequests","getInstalledIntegrations","openIntegrationsModal","UnknownMCPServerError","McpOAuthError","McpOAuthPopupBlockedError","McpOAuthTimeoutError","McpOAuthPopupClosedError","McpOAuthRequiredError","mcpServerUrl","defaultConfig","canAccessMcpServers","canCreateMcpServer","replaceWith","ensureOAuthAuthentication","toolsForMcpServer","aiFeature","hasLoadingError","getMCPServerById","mcpServerParameters","oauthToken","tempId","authResult","authenticateOAuthBeforeCreate","transferCredentials","mcpServerUpdated","hostname","parts","hasValidOAuthToken","hasValidToken","clearOAuthToken","clearToken","getAllAuthorizationHeadersByServerId","baseOAuthConfig","mcpOAuthDiscoveryService","notificationId","authenticateOAuthWithConfig","completeOAuthFlow","handleOAuthError","crypto","randomUUID","fullOAuthConfig","getIntegration","getCachedMCPServers","queryInstalledIntegrations","fetchDiscoveryResponse","authorizationServerMetadata","proxyUrl","getStoredClientCredentials","getStorageKey","stored","client_secret_expires_at","storeClientCredentials","defaultDomain","redirectUri","useSSL","clientName","discoveryResponse","wellKnownConfig","resourceMetadata","authorizationUrl","authorization_endpoint","tokenUrl","token_endpoint","scopes","scopes_supported","storedCredentials","client_secret","newCredentials","registerOAuthClient","STORAGE_KEY_PREFIX","McpServerOauthTokenStorageInternalBusinessService","getToken","hasValidRefreshToken","setToken","refreshTokenExpiresAt","getAllTokens","transferToken","fromMcpServerId","toMcpServerId","MCP_OAUTH_PURPOSE","MCP_OAUTH_BROADCAST_CHANNEL","onMessage","broadcastChannel","BroadcastChannel","onmessage","purpose","handleOAuthResult","pendingOAuthRequests","timerId","inMemoryCredentials","inMemoryPkceVerifiers","tokenStorage","formatAuthorizationHeader","refreshTokenIfNeeded","accessToken","performTokenRefresh","getDynamicCredentials","grantType","oldToken","newToken","access_token","tokenType","token_type","expires_in","refresh_token","refresh_token_expires_in","storeDynamicCredentials","inMemory","clearDynamicCredentials","verifier","getPkceVerifier","storePkceVerifier","clearPkceVerifier","generateCodeVerifier","Uint8Array","getRandomValues","base64UrlEncode","TextEncoder","encode","digest","subtle","buffer","btoa","fromCharCode","codeVerifier","codeChallenge","generateCodeChallenge","authUrl","buildAuthorizationUrl","popup","closed","focusTimerId","cleanup","onFocus","clearTimeout","getRedirectUri","openerOrigin","origin","expectedOrigin","pending","exchangeCodeWithDynamicCredentials","parsedState","errorMsg","broadcastToOpener","postMessageToOpener","channel","opener","setProperties","mcpLogoUrl","normalized","registerFakeAgent","isMockedAgentEnabled","mirageConfig","getModels","routes","getRoutes","serializers","application","factories","getFactories","seeds","getSeeds","server","createServer","logAgentCalls","mirageModels","createHandledRequest","logging","passthrough","pretender","handledRequest","getFakerForField","camelize","Factory","faker","helpers","multiple","datatype","int","lorem","word","arrayElement","past","uuid","dataUri","createList","superHandledRequest","verb","mirageLogs","logs","log","hasCloseButton","hideCloseButton","portal","modalState","modalName","rightPanel","nodeEnv","modal","modelCustomizationStore","loadNewsletterToDisplay","newsletterToDisplay","newsletterFeatureService","getNewsletterToDisplay","markNewsletterAsRead","newsletterName","handleLearnMoreClick","NewsletterNameEnum","NewsletterNameToComponent","ProcessDrivenNavigation","WorkflowLaunch","newsletterManager","newsletterNameToDisplay","meetsSpecificRequirements","notificationManager","notificationState","addToastr","toastToUpdate","findToastr","toastrDefaultDuration","getSafeMessage","getToasterParams","safeMessage","defaultDuration","isInteger","componentOptions","toasterParams","ToastrItem","setContent","toastrItemsVisible","toastrItems","existing","toastrItem","groupingKey","groupCount","getPrototypeOf","databaseType","getDatabaseOptionsFormatted","selectIntegrationFlow","followRedirects","frameworkOptions","userPreference","framework","handleFrameworkChange","handleBack","hostingSolutions","enableCloudOnboarding","cloudAlreadySelected","onPremise","allHostingSolutions","solution","hostingName","agent","AgentsEnum","NodeJS","subRoutes","trackHostingChosen","phase","screen","pretitle","helpBubbleContent","trackBubbleEvent","croppedBackground","isDeployment","onNext","onRequestPermission","onBack","canBack","backState","onSkip","canSkip","ormOptions","inAppFlows","logoUrlDark","orm","handleOrmChange","newOrm","OnboardingPhaseEnum","DeploymentPhaseEnum","phases","highlighted","highlightedPhase","familiarity","NotFamiliar","Basics","ConfirmedDeveloper","onboardingFeatureService","updateFamiliarityWithCoding","familiarityWithCoding","usecases","CustomerSupport","CustomerOnboarding","FraudManagement","FleetManagement","ApplicationAndEnrollment","IDontKnowYet","Other","usecase","usecaseFreeText","updateUsecase","scrollElement","LOADING_STEPS","level","currentStep","currentStepNumber","animationEndStep","currentStepWaitingTime","currentStepIsTitle","triggerNextAnimationStep","onEnvironmentUpdateEnded","triggerEndOfAnimation","waitingTime","onFinished","setCurrentStepAsLoading","setCurrentStepAsDone","setStepState","incrementStep","Loader","storyCreator","collectionsCount","commentPlaceholder","evaluation","Good","canNext","saveReview","flowName","goNext","reviewOptions","emoji","Bad","Average","OrganizationTypeEnum","domain","projectTypes","Personal","currentDomain","isProjectNameEmpty","isOrganizationNameEmpty","isProjectTypeOrganization","projectType","isProjectNameInvalid","projectAlreadyExists","isOrganizationNameInvalid","organizationAlreadyExists","isButtonDisabled","isInputLoading","onLoadingChange","setProjectType","projectExistenceChecker","checkProjectExistence","organizationService","checkIfNameIsAvailable","onboardingService","createProjectAndOrganization","isOther","submitSuggestion","datasourceSuggestion","suggestionSubmitted","onDatasourceSelected","stackOptions","RubyOnRails","handleStackChange","railsFlow","installation","introduction","setup","OnboardingWrapperComponent","textStep","NotEnoughContextForDatasourceSuggestionError","getDatabaseOptions","cloudFlows","microserviceFlows","inAppFlow","launchService","guest","setupService","introductionService","suggestion","updateGuestProperty","collectionsCountUrl","urlForFindAll","review","trackNewIntegrationSuggested","created","getOrCreateOrganization","createProject","createEntity","newEntity","canDisplayTeamPerformance","teamPerformanceFeature","canUserAccessTeamPerformance","loadRequiredModelsForEnvironmentPermissionsSmartActions","smartActionsPermissions","permissionsHandlerInternalBusinessService","getSmartActionsPermissions","getCollectionsPermissions","permission","sortByTwoKeys","firstKey","secondKey","roleConditionService","getFieldsFilterable","getPermissions","segment_name","isInsideCollection","isDraggable","onClickVisibility","getSegmentsMatchingRecord","segmentManager","shouldRedirectToOtherVisibleSegment","segmentName","segmentStore","matchingSegmentsPromises","fetchRecordInSegment","currentRouteSegmentId","BuildSmartViewError","fileType","smartView","shouldAlwaysRegister","isCreation","viewListsManager","saveAndRegisterSmartView","smartCodeRegister","registerTemplateOrStyle","registerComponent","awsCodeUploader","registerSmartView","loadData","loadFilters","loadTeamsOptions","loadInboxesOptions","loadAssigneesOptions","selectedTeams","teamPerformanceState","teamIds","selectedInboxes","selectedAssignees","timePeriod","teamsOptions","teamPerformanceService","getTeamsList","inboxesOptions","getInboxOptions","assigneesOptions","getAssigneesOptionsWithSelected","assigneesSearchValue","didTimePeriodChange","isApplyFilterDisabled","inboxesFilterTooltipValue","handleTimePeriodChange","defaultTimePeriod","handleInboxesChange","filterAssigneesBySelectedTeams","filterInboxesBySelectedTeams","filteredAssignees","getAssigneesOptions","newAssignee","existingAssignee","updateState","onFilter","getFindAssigneeById","assigneeId","LeaderboardSortByEnum","Assignee","onLeaderboardSortChange","HandlingTimeQ3","leaderboardData","hasVariationValue","variationValue","tooltipValue","previousTimePeriod","loadStateAndData","canPerformanceBeDisplayed","performanceData","performanceIntervalOptions","getPerformanceIntervalOptions","loadOverviewCount","loadPerformanceData","loadLeaderboardData","performanceActiveSection","leaderboardSort","leaderboardPage","interval","performanceInterval","newPageNumber","getOverviewData","overviewDoing","overviewDone","loadOverviewCountDoing","loadOverviewCountDone","variation","percentageVariation","overviewPreviousTimePeriod","getPerformanceData","doneTasksCountsByUser","countLeaderboardUsers","getLeaderBoardData","maxLeaderboardNumberOfPage","LEADERBOARD_RECORD_PER_PAGE","timeUnitForChart","TeamPerformanceIntervalEnum","Daily","activeSection","formatDuration","tooltips","callbacks","stateFilter","onStateFilterChange","TeamPerformanceStatisticTypeEnum","setupQueryParameters","TeamPerformanceStateUpdated","getQueryParametersFromLastState","TeamPerformanceLeaderboardOutOfRangeError","TeamPerformanceRequestAborted","DateConfigurationEnum","freeze","statsProcessor","dateRangeInterval","isFeatureEnabled","isLeaderBoardDataLoading","countFetcher","fetchLeaderBoardData","handleRequestError","loadingPropertyName","fetchOverviewData","isPerformanceDataLoading","fetchPerformanceData","statisticType","performanceStatisticType","performanceStateFilter","fetchInboxesByTeamIds","searchUsers","selectedAssigneeIds","searchResults","missingSelectedIds","selectedUsers","getUsersByIds","stateStoreService","getStoredValues","initializeState","userID","errorPrefix","loadingProperty","makeBasicSearchParams","numberOfDone","handlingTimeQ3","leaderboardFetchingTask","overviewDoneAbortController","overviewDoingAbortController","responseJSON","previousCount","getPercentageVariation","DOMException","performanceFetchingTask","getKey","getInitialInterval","storedValues","localStorageService","getQueryParameters","leaderboardSortBy","leaderboardSortOrder","buildFilterFromTimePeriod","currentPerformanceInterval","toSave","fullState","buildTimeRangeQueryParamsFromState","queryParamsStoreService","isThisMonth","ThisMonth","isToday","Today","LastNDays","isYesterday","Yesterday","isLastMonth","LastMonth","period","endOf","parameter","TEAM_PERFORMANCE_QUERY_PARAMETERS","TeamPerformanceStatsProcessorInternalBusinessService","currentCount","dateInterval","shouldAddLowerValue","Quarterly","Monthly","Weekly","DEFAULT_SORT","AssignmentCount","FirstQuartile","Median","ThirdQuartile","handleSave","updateTeam","handleDelete","deleteTeam","handleMemberClick","member","onMemberClick","handleBreadcrumbClose","onBreadcrumbClose","handleCopyLayout","layoutCopyTarget","copyLayout","hasBeenEdited","shouldDisplayTeamsList","teamsListWithoutCurrent","getTeamsListWithoutCurrent","isUniqueTeam","handleToggleFeature","TeamModel","deactivatableFeatures","canDisplayFeature","teamFeature","canAccessTeamPerformance","isFeatureActiveOnTeam","onToggleFeature","TeamManagerError","targetId","targetName","requesterEmail","teamManager","getBreadcrumb","isClickable","teamFeatureName","redirectToAccessibleCollaborationFeature","featuresInCollaborationTab","featureToRedirectTo","list","getErrorMessage","copyLayoutRequester","UserProfileComponent","textToDisplay","onLoadData","handleLoadUsers","isArrayOfSelectedUsers","hasMultipleValues","_selectedUsers","usersToAdd","onSelectUser","userManager","userPayload","valueDisplayed","jsonFieldToString","FragmentArray","isJsonField","jsonAsString","setProperty","widgetConfiguration","WidgetConfigurationFragment","shouldDisplayBanner","handleCloseBanner","WorkflowEditorBpmnTypeIconComponent","iconPath","BpmnTaskTypeEnum","ServiceTask","getBpmnItemByTypeOrAlternative","alternative","getBpmnItemByAlternativeOrType","collapseElementId","workflowEditorFeature","getCollapseIdForConnection","isCollapsed","workflowEditorState","isStepCollapsed","stepCount","connection","getStepCount","hasError","errorCollapseIds","isGrabMode","closest","blur","skipNextLayoutReCenter","scrollToCollapseId","isCollapseTransitioning","lastCollapseClick","collapseId","clientX","clientY","toggleStepCollapse","isV1Enabled","getIsV1Enabled","handleKeyDown","selectElement","setLinkToSelectMode","bpmnContainer","buildBPMNInstance","importXML","bpmn","setCurrentCollection","isCommandShiftPlusKeyPressed","KEY_Z","redo","isCommandPlusKeyPressed","isEditableElementFocused","undo","DELETE","BACKSPACE","deleteSelectedItems","tagName","isContentEditable","selectedItems","SubProcess","getIsDeleteButtonDisabled","workflowEditorSelection","deleteSteps","getIsBpmnDirty","WorkflowModel","onDelete","confirmText","handleClickGoToGateway","scrollToItemId","breadcrumbs","handleOpenUploadModalClick","openUploadModal","handleUploadedFile","saveWorkflow","downloadWorkflow","buttonId","modalId","hideModal","workflowEditorService","setIsErrorsModalVisible","isErrorsModalVisible","hideModalWithoutErrors","numberOfItemsInError","elementWithListeners","handleMouseEnter","handleMouseLeave","iconType","WorkflowEditorErrorTypeEnum","MissingEndEvent","BpmnEventTypeEnum","EndEvent","MissingLinkToTarget","BpmnTaskLinkTypeEnum","LinkTo","MissingEscalationInbox","EscalationTask","MissingSubWorkflow","CallActivity","MissingMcpServer","MissingGatewayName","MissingGatewayOptionName","BpmnGatewayTypeEnum","ExclusiveGateway","shouldDisplayMagicWand","getInboxesForEscalation","shouldDisplaySelectElement","openErrorElement","itemsInErrorState","onHideModal","handleClickMagicWand","autoFixErrorsOnElements","firstErrorElement","setShouldDisplayPlaceholderOnError","highlightCollapseIdsWithErrors","restoreErrorHighlightState","groupedElementsByErrorType","itemsInError","group","grp","errorButtonElement","popupPositioner","positionPopupBelowElement","visibilityVariable","topVariable","leftVariable","withGap","handleButtonTextChange","updateWorkflowItemProperties","workflowItem","handleButtonColorChange","buttonColor","workflows","getWorkflowsForCallActivity","selectedWorkflowId","businessObject","calledElement","shouldDisplayDifferentCollectionWarning","selectedWorkflow","shouldDisplayError","errorHandlingService","isSubBpmnElementInError","handleWorkflowUpdate","updateCurrentWorkflowItemProperties","workflowItemConfigureComponent","WorkflowBpmnParser","getNormalizedTypeForElement","currentWorkflowItem","NormalizedBpmnTypeEnum","ScriptTask","UserTask","UnknownTask","SequenceFlow","EscalationEvent","Gateway","StartEvent","canCreateSubProcessFromSelectedItems","getBPMNToDisplay","areSelectedElementsOnSamePath","deleteButtonText","handleOpenSubProcess","workflowEditorSubProcessService","setCurrentSubProcess","handleCreateSubProcess","createSubProcessWithSelectedElements","handleClickJumpTo","computeIsDisabled","WorkflowEditorOutgoingUpdated","hasMultipleSubProcesses","workflowItems","isSubProcess","computePlaceholderAndDescription","isAIPowered","handleDescriptionUpdate","updateElementDescription","currentItemId","getDescriptionPlaceholderForElement","getDescriptionForTask","hasUnduplicableItems","hasItemsAcrossMultipleGateways","getClosestGatewayOutgoing","numberOfSelectedItems","handleClickDuplicate","setSelectedItems","duplicateItems","isEscalationElementInError","handleInboxUpdate","handleCreateInbox","handleInboxCreated","isInSubProcess","computeOutgoings","handleGatewayOutgoingUpdated","addOptionToGateway","focusLastOptionInput","outgoing","confirmRemoveOptionFromGateway","handleGoToOption","uncollapsePathsToElements","isLinkTo","centerGatewayInView","outgoings","handleReorderOptions","_event","reorderGatewayOptions","gatewayConnectionIdToFocus","setGatewayConnectionToFocus","handleChangeAiDecision","aiDecision","outgoingFlow","isUserTask","completionType","isUserInputCompletion","handleCompletionTypeChange","handleInputTypeChange","shouldDisplayMcpServerError","isMcpServerElementInError","shouldDisplayExecutionDropdown","BpmnServiceTaskAlternativeEnum","McpServer","TriggerAction","handleAutomaticExecutionChange","automaticExecution","shouldShowAutomaticDropdown","handleAutomaticCompletionChange","automaticCompletion","loadMcpServer","mcpServerName","isMcpServer","computeTarget","handlePressEscape","selectButtonText","isLinkToSelectModeOn","handleNameUpdate","loadMCPServers","paletteGroups","BPMN_TASKS","GetData","UpdateData","LoadRelatedRecord","hidden","isSubProcessOpen","canCreate","mcpServerItems","handleDragStart","shouldHaveAutoCompletion","shouldHaveAutoCompletionTruthy","startDrag","handleClickAddMcpServer","displayIntegrationModalOrRedirect","cursorImg","isPreview","draggedElements","getMultiCardsSelectedName","getSelectedCardsLength","onDragStart","currentTarget","draggedGhostElement","cloneNode","isDragged","replaceChild","textContent","dataTransfer","setDragImage","offsetWidth","handleDragEnd","cancelDrag","handleOutgoingUpdate","startEvent","subProcessBreadcrumb","svgIcon","subProcessId","handleRootDidInsert","handleSpaceBarDown","handleSpaceBarUp","handleEscapeKey","handleRootWillDestroy","handleCloseSubProcess","shouldDisableSpaceToGrab","SPACE","repeat","previousClickMode","clickMode","setClickMode","modeToRestore","HTMLInputElement","HTMLTextAreaElement","HTMLSelectElement","WorkflowEditorRendererFlatCardComponent","multiSelectIcon","bpmnElement","bpmnFlow","itemToRender","itemType","defaultName","isConnection","cardUiService","currentName","DRAGGABLE_TYPES","cardState","getCardState","cardClasses","modifiers","isSelected","isLinkToTarget","isInBackground","selectItem","handleDoubleClick","isShape","navigateToSubProcess","selectedCardsCount","multiSelectLabel","removeAttribute","iconElement","cursorIcon","getMultiSelectIcon","nameElement","rect","scale","zoomScale","rawOffsetX","rawOffsetY","offsetX","offsetY","cleanupGhostElement","handleWillDestroy","resizeObserver","disconnect","removeChild","isHovered","setHovered","updateMeasuredHeight","ResizeObserver","HTMLElement","observe","loadMcpServerUrl","heightCalculator","setMeasuredHeight","ManualTask","WorkflowEditorRendererFlatComponent","queueMicrotask","draggedElement","flatRenderer","hoveredDropZoneConnection","rendererClasses","isGrabbing","isSimplifiedView","LAYOUT","SIMPLIFIED_VIEW_THRESHOLD","linkToLineData","renderVersion","hoveredOrSelected","hoveredOrSelectedItem","linkToFlow","isLinkToElement","incoming","sourceItem","itemMap","targetItem","collapsedStepsVersion","heightVersion","startElement","calculateLayout","totalWidth","totalHeight","visibleItems","dragVersion","autoFitVersion","currentLayout","scheduleOnce","reactToLayoutChange","reactToScrollToItem","reactToAutoFit","getVisibleItems","viewportWidth","viewportHeight","contentOffsetX","contentOffset","contentOffsetY","handleLayoutChange","schedulePendingScrollToItem","lastAutoFitVersion","centerWorkflow","visibleConnections","allConnections","filterConnectionsByViewport","calculateConnections","dropZoneConnections","flowConnection","centerOffset","contentPadding","minPaddingX","minPaddingY","padding","contentSize","canvasStyle","contentStyle","svgWidth","svgHeight","useConnectionTransform","hoveredDropShiftedItemIds","connectionTransform","toId","shiftedIds","currentId","childItemIdsByParentId","parentId","getAdjustedConnectionPath","getItemStyle","getMiniCardStyle","getBranchLabelStyle","getCollapseButtonStyle","getBranchesCollapseButtonStyle","fromId","handleBranchLabelClick","canvasElement","selectionBoxElement","updateViewportSize","handleGlobalDragEnd","lastStartElementId","centerWhenReady","attemptCenter","previousRootVisualX","rootItem","getRootItem","centerOffsetX","scrollRAF","cancelAnimationFrame","renderVersionRAF","collapseRAFs","handleScroll","pendingScrollTop","pendingScrollLeft","clampScrollToContent","handleWheel","gap","timeStamp","lastWheelTimestamp","metaKey","ctrlKey","inertiaGuardActive","INERTIA_GAP_THRESHOLD_MS","mouseX","mouseY","scrollLeftBefore","scrollTopBefore","scaleBefore","offsetXBefore","offsetYBefore","contentXBefore","contentYBefore","zoomByWheelDelta","deltaY","scaleAfter","offsetXAfter","offsetYAfter","paddingAfter","minX","maxX","minY","maxY","newScrollLeft","newScrollTop","scheduleRenderVersionBump","handleMiniCardClick","centerOffsetY","centerX","centerY","targetScrollLeft","targetScrollTop","maxScrollLeft","maxScrollTop","elementToSelect","handleCanvasClick","shouldIgnoreNextClick","isDraggableCard","isDrawing","button","coords","startSelection","startX","startY","currentX","currentY","disableRightClick","handleMouseMove","updateSelection","wasValidSelection","finishSelection","dropPreviewElement","getDropPreviewStyle","handleCanvasDragOver","getDragPosition","findDropZoneAt","isDropDisabledOnConnection","handleCanvasDrop","handleConnectionDrop","getDropZoneStyle","createPreviewItem","handleConnectionDragEnter","handleConnectionDragOver","handleConnectionDragLeave","handleConnectionDragEnd","contentWidth","contentHeight","nextScrollLeft","nextScrollTop","scaledWidth","targetX","paddingTop","centerOnItem","currentStartElementId","previousStartElementId","subProcessItem","currentVersion","currentRootVisualX","lastCollapsedStepsVersion","clearSkipNextLayoutReCenter","clearScrollToCollapseId","clearLastCollapseClick","applyCollapseScrollStrategy","centerOnVisibleContentAfterLayoutChange","scheduleDoubleRAF","outer","inner","scheduleClickAnchoredScroll","scheduleRootAnchoredScroll","scrollToCollapseButton","setCollapseTransitioning","layoutItems","scrollTarget","computeScrollTargetForCollapseAnchor","scrollWidth","scrollAdjustment","clickX","clickY","isFinite","branchesCollapseId","getCollapseButtonPosition","collapseX","collapseY","parentItem","branchesCollapseY","startId","byElementId","byItemId","centerOnVisibleContent","handlePendingScrollToItem","clearScrollToItemId","clampedLeft","clampedTop","scrollTo","scaledHeight","targetTop","CARD_HEIGHT","CARD_WIDTH","CARD_MARGIN","WorkflowEditorRendererFlatLinkToLineComponent","markerId","markerUrl","linePath","sourceHeight","getVisualHeight","targetHeight","sourceX","sourceY","sourceCenterY","targetCenterY","dy","targetRightEdge","turnX","endX","endY","CORNER_RADIUS","createPath","goingDown","BASE_CLASS","TYPE_TO_MODIFIER","hasAttemptedSave","itemToCheck","miniCardClasses","modifier","classes","isDropDisabled","flatRendererUi","isPlaceholderDropDisabled","isCurrentItemLinkToWithTarget","shouldDisplayErrorState","shouldDisplayPlaceholderOnError","placeholderClasses","isDraggingHover","handleDragEnter","handleDragOver","handleDragLeave","handleDrop","handlePlaceholderDrop","rendererElement","parentElement","stopGrabListeners","handleSimpleMode","handleGrabMode","setGrabbing","mouseGrabStart","pageX","pageY","startGrabListeners","dx","handleZoomIn","handleCenteredZoom","handleZoomOut","handleZoomAuto","zoomService","autoFitZoom","workflowSize","getWorkflowSize","anchorX","anchorY","offsetBefore","getContentOffset","zoomIn","zoomOut","offsetAfter","getContentPadding","boundedContentX","boundedContentY","contentSizeAfter","fileString","fileContent","file","createFileFromDataUri","onFileUploaded","DROPPABLE_BPMN_TYPES","CONNECTION_DROPPABLE_BPMN_TYPES","Task","BpmnCustomConfigurationEnum","forestExtension","uri","extends","IsPlaceholder","isAttr","Description","InboxId","ButtonColor","IsLinkTo","Alternative","McpServerId","AutomaticExecution","AutomaticCompletion","AiDecision","CompletionType","InputType","WorkflowEditorNotFoundError","workflowName","WorkflowEditorImportBPMNError","resetZoom","isV1","BpmnModelerClass","bpmnModeler","additionalModules","getModuleOverrides","getModuleOverridesV2","moddleExtensions","forest","getBPMN","registerCustomCommandHandlers","registerEventListeners","commandStack","registerHandler","REORDER_GATEWAY_OPTIONS_COMMAND","ReorderGatewayOptionsHandler","getRootElement","subProcess","xml","isFirstImport","bpmnService","initialStackIdx","getEditorCurrentStackIdx","wasFileUploaded","expandCollapsedSubProcesses","zoom","clearCache","ensureMissingPlaceholders","computeLinkTo","queueErrorValidation","canAccessRoute","shouldExitAfterward","saveXML","datedFileName","File","updateWorkflow","downloadContentAsFile","getDefaultBpmnFile","getShortestPathToStart","shouldInvalidateHeight","updatedItem","incrementBpmnVersion","getDescription","currentItem","updateLinkToTarget","WorkflowEditorItemPropertiesUpdated","invalidateCaches","isCommandPressed","createSubProcessWithAllChildren","createPlaceholder","setHoveredElement","hoveredItem","gatewayChildren","getAllChildren","completeDrop","clearDragState","replacePlaceholderByDroppedElement","placeholderElement","changedElement","replacePlaceholderByElement","moveElementOnConnection","workflowEditorManager","gateway","addGatewayOption","deleteWorkflowItem","deleteGatewayOption","confirmRemoveSubProcess","newOrder","addMissingEndEvents","fixMissingInboxesId","itemToSelect","getMCPServersForValidation","connectionId","elementsInError","errorType","elementInError","redirectOrExitSubProcessIfNecessary","canSelectElement","scrollTargetId","elementId","batchUncollapsePathsToElements","isTransitioning","collapseService","collectCollapseIdsInPaths","errorValidationTimer","executeErrorValidation","getElementsWithError","collapseIds","errorElement","getCollapseIdForElement","hasMissingEndEvent","clearErrorHighlights","modeling","expandRecursive","collapsed","toggleCollapse","nested","performance","invalidatePathCache","measure","modeler","isEnsuringMissingPlaceholders","didChange","elementRegistry","hasValidBounds","isFlowNode","bo","$instanceOf","toCandidateShapes","el","candidateShapes","allElements","getAll","allOutgoingSequenceFlows","danglingOutgoing","removeConnection","orphan","removeElements","connections","computeStepCount","itemsToDuplicate","workflowEditorDuplication","__init__","paletteProvider","WorkflowEditorCustomPaletteInternalBusinessService","customContextPadProvider","WorkflowEditorCustomContextPadInternalBusinessService","customPopupMenuProvider","WorkflowEditorCustomPopupMenuProviderInternalBusinessService","WorkflowEditorCustomContextPadV2InternalBusinessService","WorkflowEditorCustomCommandStackInternalBusinessService","handleElementChanged","areEventsRegistered","DEFAULT_BPMN","ELEMENT_ID_PREFIX_BY_TYPE","inTransaction","wasTransactionStarted","startTransaction","endTransaction","WeakMap","textAnnotations","getElementTextAnnotations","handleChanges","changes","oldElementIdToNewElementId","oldProperties","oldSource","newSource","newShape","oldShape","newElement","getStartEvent","pathCache","shortestPath","pathForIncoming","bpmnRoot","computeLinkToForElements","referencedIncoming","linkTo","_stackIdx","generateElementId","createBusinessObject","moddle","elementIdPrefix","extractBusinessObjectProperties","preservedProperties","createNewBpmnElement","elementFactory","createShape","endEvent","connect","getSingleFlow","shouldExcludeLinkTo","connectionsFiltered","reconnectIncomingAndOutgoing","outgoingBusinessObject","createPlaceholderElementWithoutConnection","reconnectEnd","flowProperties","flowBusinessObject","updateParent","referenceElement","movedElement","firstMovedElement","moveConnection","moveElements","moveExistingGatewayOnConnection","placeholderToDelete","innerPlaceholder","gatewayOutgoing","isConnectionElement","moveExistingLinkToOnConnection","linkToElement","reconnectStart","targetConnectionBusinessObject","newElementToConnectTo","deletedOutgoingBusinessObject","originalTarget","getNextGatewayOptionName","switchElementWithPlaceholder","incomingPlaceholder","incomingNewElement","moveLinkToOnPlaceholder","placeholderIncoming","newLinkToBusinessObject","newPlaceholderIncomingBusinessObject","oldLinkToSource","isExistingElement","sortItemsFromStart","selectedItemA","selectedItemB","pathA","pathB","selectedItemsSorted","firstConnection","subProcessElement","linkToElementsSourceAndTarget","linkToElementsOldToNew","shouldIgnoreElement","newLinkTo","escalationTasks","oldTarget","workflowItemToReturn","bpmnReplace","replaceElement","updateProperties","getAllChildrenGenerator","visited","getAllChildrenGeneratorInternal","incomingFlow","resetLinkToTarget","sourceElement","newOptionsId","execute","$parent","flowElements","orderMap","indices","fe","sorted","Infinity","idx","getElementError","allIncomingLinkTo","itemNextElement","newLinkToTarget","isItemLinkToTarget","deleteConnectionAndChildren","visitedConnectionIds","targetElement","shapePath","current","collapsedConnection","out","branchesId","connectionCollapseId","getConnectionCollapseIdBetween","gatewayBranchesId","getGatewayBranchesIdIfApplicable","connectionsArray","uniqueSteps","mergePoints","collectStepsRecursively","isRootConnection","nonLinkToIncoming","inc","resolved","mergePoint","CommandStack","transaction","lastChanges","isUndoing","undoChanges","nextUndo","_getUndoAction","lastUndone","nextRedo","_getRedoAction","canRedo","canUndo","storeChanges","shouldStartTransaction","contextPad","registerProvider","getContextPadEntries","_element","_entries","injector","autoPlace","className","additionalEntries","appendEntry","dragstart","entryStart","start","WorkflowEditorCustomPaletteV2InternalBusinessServiceV2","palette","lassoTool","handTool","_init","_eventBus","_container","_layoutChanged","fire","_update","getPaletteEntries","createAction","createListener","activateHand","activateSelection","popupMenu","getPopupMenuEntries","entriesToKeep","removeUnwantedEntries","getPopupMenuHeaderEntries","_target","sortedItems","isTargetConnectionLinkTo","getFirstFlow","lastItem","copiedItem","newItem","createDuplicateItem","reconnectItems","connectNewItemToTarget","shouldSetIsLinkTo","createGatewayOutgoingsIfNecessary","duplicateSubProcessChildrenIfNecessary","notifyConnectionChanges","extractBOPropertiesWithoutId","previouslyVisitedItems","visitedItems","outgoingIndex","newGroup","oldChildren","newStartEvent","newEndEvent","allowedItems","childrenToDuplicate","originalAndClone","clonedSource","sourceToLookup","previousItem","cloneAndConnectItem","originalItem","previousItemToConnect","linkToTarget","clonedItem","WorkflowEditorManagerInternalBusinessService","allWorkflows","getRandomValueInArray","formatPlaceholder","oldOrder","applyOrder","revert","outgoingsMap","reorderedOutgoings","boOutgoing","boOutgoingsMap","reorderedBoOutgoings","isLinkToError","incomingConnection","isGatewayNameMissing","isGatewayElementInError","subWorkflowId","getItemToRender","isItemSelected","isItemDragged","hasItemError","isItemInBackground","isItemDisabled","errorItem","isCurrentLinkToWithTarget","isTargetOfLinkTo","subProcessService","filterVisibleConnections","visibleIds","isGateway","getItemBottomY","getBranchesCollapseY","fromBottomY","VERTICAL_SEGMENT","allChildrenByParent","branchesCollapseAssigned","allSiblings","attachBranchesCollapse","trunkPath","createTrunkPath","siblings","isBranchesCollapsed","branchConnections","cx","d","bounds","cornerX","cornerY","hasCollapseError","fromCX","toCX","toTopY","hasBranchLabel","branchLabel","LABEL_CORNER_GAP","BRANCH_LABEL_HEIGHT","goingRight","bendY","cornerEndY","dir","effectiveToY","marginX","DROP_ZONE_WIDTH","branchLabelColor","branchLabelHasError","WorkflowEditorFlatRendererConnectionVirtualizerService","bx","ensureIndex","indexedConnectionsRef","indexedConnectionsLength","bucketToIndices","bs","BUCKET_SIZE_PX","bucketKey","getVisibleConnections","viewport","right","bottom","computeViewportBounds","VIRTUALIZATION_BUFFER","candidateIndices","visible","_heightCalculator","lookup","getDisplayNameForHeight","flatten","rootElement","reachable","collapsedTargets","computeVisibilitySets","walkTree","branchIndex","isInMultiBranch","isLinkToFlow","alreadyVisited","itemId","isReachable","isCollapsedTarget","elementIsPlaceholder","getCollapseId","rawBranchLabel","itemIsHidden","calculatedHeight","calculateHeightWithMargin","sequenceFlows","conn","isMultiBranch","childrenHidden","childBranchIndex","isDomAvailable","scheduleVersionBump","pendingVersionBump","ctx","font","calculateHeight","heightCache","MIN_HEIGHT","lines","measureText","CARD_INNER_WIDTH","VERTICAL_PADDING","LINE_HEIGHT","nextHeight","WorkflowEditorFlatRendererPositionCalculatorService","calculatePositions","flatItems","visibleChildrenMap","subtreeWidths","calculateSubtreeWidths","assignPositionsInPlace","CANVAS_PADDING","widths","total","gaps","BRANCH_GAP","xCenters","yPositions","rootWidth","xCenter","BRANCH_VERTICAL_GAP","VERTICAL_GAP","childY","childWidth","flattener","positionCalculator","viewportState","virtualizer","connectionCalculator","connectionVirtualizer","selectionService","isConnectionDropDisabled","visualHeight","MINI_CARD_HEIGHT","CARD_HEIGHT_WITH_MARGIN","WorkflowEditorFlatRendererUiInternalService","ensureDropZoneIndex","dropZoneIndexedConnectionsRef","dropZoneIndexedItemMapRef","dropZoneBucketToIndices","bucketSize","getDropZoneLayoutRect","maxDownShift","DROP_ZONE_HIT_PADDING","startBx","endBx","startBy","endBy","sourceHoverOffset","getItemHoverOffset","targetHoverOffset","connectionHoverOffset","endHoverOffset","isLastSegment","qEndOffset","yOffset","hoverOffset","getConnectionHoverOffset","previewBaseY","minPreviewYUnderSource","NEGATIVE_INFINITY","minPreviewYUnderBranchLabel","minPreviewY","targetTopY","maxPreviewYAboveTarget","POSITIVE_INFINITY","hasItems","isPointInDropZoneRect","best","score","topY","availableHeight","sourceOffset","targetOffset","bufferPx","adjustedBuffer","adjustedScrollLeft","adjustedScrollTop","WorkflowEditorFlatRendererVirtualizerService","allItems","indexedItemsRef","indexedItemsLength","startBucket","endBucket","bucketTop","bucketBottom","WorkflowEditorSelectionInternalService","selectionBox","initialSelectedItems","bpmnChildren","workflowEditorFeatureService","cacheSelectableItems","getCurrentCoords","initializeSelectionBox","selectionRect","calculateSelectionRect","updateSelectionBoxDisplay","updateSelectedItems","cachedSelectableItems","selectableBucketToIndices","isValidSelection","bpmnById","containerRect","elementRect","isCommandMode","nextSelected","selectedSet","selectionThreshold","firstItem","secondItem","lastIndex","expectedParentSubProcessId","currentQueryParams","applyZoom","zoomStep","currentDelta","accumulatedDelta","sign","previousScale","zoomFactorDelta","wheelDeltaSensitivity","potentialNewScale","zoomDelta","scaleWidth","scaleHeight","scaleDelta","newScale","minZoomScale","maxZoomScale","_bpmnVersionCounter","incrementAutoFitVersion","_autoFitVersionCounter","collapsedSteps","_collapsedStepsVersion","_collapsedSteps","isSelectMode","isZoomAtMin","isZoomAtMax","normalizedScale","workflowWidth","dataset","stepHistory","isStepOpen","stepIndex","isCancelled","cancelled","revised","areStepAndConditionsCompleted","workflowSubSteps","utils","getSubSteps","isStepCompleted","done","toggleStep","displaySidePanel","isStarting","isSidePanelCollapsed","getCurrentCollection","closePanel","isFinished","isAborted","abortWorkflow","saveAndClose","handleCollapse","onCollapse","shouldDisplayEscalationText","reviseStep","isReviseConfirmationDisplayed","reviseConfirmationStepIndex","isCurrentStep","areTransitionsDisplayed","forceDisplayTransitions","isStepCompletedWithOption","answer","selectedOption","buildDataToSendOnSubmit","dataToSendOnSubmit","areTransitionsDisabled","isStepRevisedOrCancelled","isInteractive","isRevisedButtonDisplayed","isReviseDisabled","openReviseConfirmation","closeReviseModal","closeReviseConfirmation","WorkflowVisualizerStepCommonHandleManuallyInstructionComponent","safePrompt","areStepButtonsDisabled","isManuallyCompleted","isHandlingManually","manuallyCompleted","shouldOpenConfirmationModal","taskType","TaskTypeEnum","handleManually","handleManuallyStep","selectedRecordCollection","selectedRecordRef","selectedRecordIds","formattedRecordId","collectionPrefix","isYesButton","isNoButton","submitPendingData","continueWorkflow","WorkflowVisualizerStepComponent","isGetDataTask","isUpdateDataTask","isTriggerActionTask","isLoadRelatedRecordTask","isMcpServerTask","isConditionStep","isEscalationStep","isEndStep","isRevisedOrCancelled","isAiDecisionStep","isAutomated","shouldDisplaySpinner","aiDecisionError","isManualFallback","executorStep","executionParams","shouldShowConfetti","shouldShowEndConfetti","closeWorkflow","canDisplaySuccessEscalationMessage","escalationState","WorkflowEscalationStateEnum","Escalated","canDisplayErrorEscalationMessage","hasClickedEscalate","workflowVisualizerFeature","escalate","ExecutorStepExecutionTypeEnum","ReadRecord","rawFields","executionResult","orderIndex","positionOf","MAX_SAFE_INTEGER","rawField","INLINE_FIELD_WIDGETS","AssigneeArray","BooleanCheckbox","Color","Point","isInline","widgetName","expand","retract","userText","userInput","_userText","isInputDisabled","requiresUserInput","_transition","handleChange","isInitiallyLoading","possibleRelatedFields","pendingData","possibleRecords","availableRecordIds","candidate","selectedField","confirmedField","skipped","suggestedField","userSelectedField","confirmedRecord","suggestedRecord","userSelectedRecord","isReloadingRecords","workflowVisualizer","onRecordsRefreshed","userConfirmed","isConfirmButtonDisabled","areButtonsDisabled","isSubmittingPendingData","isRecordConfirmed","loadServerName","Mcp","toolParameters","arguments","isExecuted","isExecuteActive","submittedConfirmation","isExecuteLoading","isInFlight","safeResult","formattedResponse","serverDisplayLabel","resolvedServerName","getMCPServerByIdSilently","canTrigger","isActionButtonDisabled","isTriggerActive","isCompleted","isSkipped","userConfirmation","triggerActionStep","suggestedValue","recordRef","currentStepIndex","bestMatch","executorSteps","getSelectedRecordRefForStep","isInlineField","updatedValues","isUpdateActive","isUpdateDisabled","isHandleManuallyDisabled","openEditDialog","isEditDialogOpen","closeEditDialog","stagedValue","_stagedValue","preventSubmit","onValueChanged","isSubmitting","rawValue","submitFieldUpdate","onStateUpdate","WorkflowVisualizerSubWorkflowComponent","isStartSubWorkflow","StepTypeEnum","StartSubWorkflow","isCloseSubWorkflow","CloseSubWorkflow","staticLabel","shouldShowCancelledStyle","ariaLabel","isStartSubWorkflowStep","isCloseSubWorkflowStep","cardSteps","setupScrollArea","scrollArea","scrollListener","isUserAtBottom","distanceFromBottom","scrollToBottom","setupStepsContainer","renderedCardCount","scrollObserver","MutationObserver","childList","subtree","characterData","handleCardStepsUpdate","currentCardCount","hasNewCard","teardownScrollArea","WorkflowVisualizerError","OrchestratorError","statusCode","ExecutorError","SubscriptionError","runId","WorkflowStepNotFoundError","stepId","getInboxName","openStepIndices","unsubscribe","workflowRecords","pathFromRoot","orchestrator","serverHistory","alreadyFinishedWorkflow","subscribe","handleSubscriptionUpdate","openLastTwoCards","WorkflowRunStateEnum","wakeExecutor","resume","Finished","Aborted","refreshExecutorData","openStep","recomputeInboxCountIfNecessary","isRevising","revise","actionResult","actionRunner","runAction","runIdToAbort","isAborting","executor","lastEntry","history","toExecutorValue","updateRecordInStore","recordStore","applyFieldUpdate","getRunContextData","openPendingExecutorStep","pendingExecutorStep","visibleCards","card","executorDataChanged","previousRunState","applySubscriptionDeltas","carryForwardExecutorDataForCopiedSteps","handleUIUpdates","updatedHistory","updatedEntries","mergedContext","added","addedEntries","isValidRunState","copies","originalStepIndex","original","structuredClone","newCardIndices","isCardStep","openStepAndCloseOthers","handleWorkflowComplete","endSteps","stepDefinition","End","endStep","newStepIndices","excluded","previousCardIndex","findPreviousCardStepIndex","preserved","excludedStepIndices","afterNewEscalation","lastEscalationStep","Escalation","actionFeature","openActionFormForRecord","BASE_PATH","toExecutorError","parseError","fallback","hydrateHistory","historyWithStepDefinitions","raw","hydrateStepHistory","hydrateWithExecutorData","executorByIndex","stepExpectsExecutorData","buildSafePrompt","onUpdate","queryWorkflowRunUpdated","boundHandler","handleUpdate","activeSubscription","apolloUnsubscribe","transformPayload","stepUpdates","addedSteps","stepUpdate","rawContext","otherAttributes","parseContext","addedStep","runAttributes","parsed","workflowStepHistory","Started","hasActiveWorkflow","hasPendingData","stepHydrator","isTaskStep","Condition","executionType","StepExecutionTypeEnum","FullyAutomated","Guideline","AutomatedWithConfirmation","isInvalidDate","FULL_ISO_DATETIME","SHORT_ISO_DATE","toISODatetime","toISODate","toNumber","toJSONString","executionService","getSelectedRecord","toolConfirmationInterruption","isToolExecuteAction","isToolReadRecordField","isToolReadMultipleRecordFields","isToolUpdateRecord","isToolGetRelatedData","handleAutomaticExecution","getIsButtonActive","isToolExecutionConfirmed","confirmHandleManuallyDescription","workflowExecutionService","confirmToolExecution","isAutomaticStepExecutionAllowed","WorkflowAiInteractionToolsChooseGatewayOptionComponent","DIRECT_TOOL_CALL_ID","isGatewayDisabled","isSelectedRecordKnown","onFieldChange","preselectedField","fieldNameOrDisplayName","toolCallInput","isStepDone","selectedRelatedField","selectedRelatedRecord","relatedDataRecordsContext","onRecordChange","toolData","relatedRecordId","WorkflowAiInteractionToolsReadMultipleRecordFieldsComponent","numberOfFieldsNotFound","fieldResult","toolExecutionOutput","valueFromToolExecution","displayedValueFromToolExecution","toggleOpen","WorkflowAiInteractionToolsReadRecordFieldComponent","isFieldExisting","displayedValueOrNotFoundMessage","WorkflowAiInteractionToolsUnknownComponent","toolArgs","toolsParameters","isToolExecutionAllowed","_newValue","isFieldReadOnly","isComponentDisplayed","readFieldToolExecution","rawArgs","executeToolAndFormatResponse","toggleEditModal","isEditModalVisible","toolInterruption","_file","newFile","parserResult","warnings","warning","criticality","parseWorkflow","onFileChange","bpmnParser","parseBpmnXml","onParserResult","getWorkflowSubSteps","toggleUserStep","isTransitionButtonDisplayed","isAiStep","isAiExecutedTask","workflowState","isFinishedWorkflow","isWorkflowEnded","lastStepHistory","isAiDecisionAllowed","yesOutGoing","noOutGoing","outGoing","isYesAndNoStep","shouldDisplayIcon","isSubmitDisabled","goToNextStep","WorkflowCreateUpdateStatusComponent","successMessage","isCreate","loadEnabledWorkflows","hideWorkflowRunsList","handleHideEditDropdown","showDropdown","shouldShowWorklows","hasAccessToFeature","isWorkflowRunsListDisplayed","enabledWorkflows","getEnabledWorkflowForRecord","fetchWorkflowRuns","isWorkflowAllowedHere","isWorkflowDisabled","toggleWorkflowRunsList","workflowRuns","getAllWorkflowRunsForRecord","workflowsByStatus","notStarted","started","finished","aborted","run","sortByRunDate","workflowsWithRun","workflowToContinue","workflowWithRun","openClosedRun","toggleEditDropdown","shouldDisplayEditDropdown","sortedWorkflows","redirectToSettings","workflowService","toggleWorkflowVisibility","reorderWorkflows","workflowOrWorkflowWithRun","haveClickedEscalate","workflowExecutionInternalFeatureService","saveWorkflowRun","clearRunId","shouldCancelInboxAssignment","WorkflowSharedNameInputComponent","WorkflowSharedSegmentsSelectorComponent","segmentsOptions","saveStatus","currentWorkflow","WorkflowSubWorkflowComponent","SubWorkflowStepTypeEnum","Start","Close","filename","versionLoading","getBpmnFilenameAndDate","localeDate","toLocaleDateString","hour","minute","currentURL","replaceState","updateVersion","handleFileChange","clearFile","isUploadButtonEnabled","handleParserResult","showStatus","deleteWorkflow","nameTaken","isWorkflowValid","handleOpenEditor","workflowSteps","workflowStepCards","setupScrollObserver","stepsContainer","previousStepCount","currentStepCount","hasNewStep","teardownScrollObserver","handleCollapseSidePanel","FailedToBeSavedWorkflowError","ProcessFileFailedToBeSavedWorkflowError","InvalidForSaveWorkflowError","details","UnknownWorkflowError","FailedToGetRelatedRecordWorkflowError","WorkflowRecordConversionError","SaveStatusEnum","isWorkflowActive","workflowManager","lastEscalatedInboxId","fetchWorkflows","upsertError","trackWorkflowCreated","newBPMNFile","updatedWorkflow","workflowStore","uriParams","workflowModel","shouldUseVisualizerForRun","shouldUseVisualizerForNewRun","resumeWorkflowVisualizer","startWorkflowVisualizer","workflowExecutionFeature","startFinishedWorkflow","WorkflowEngineEnum","Orchestrator","resumeWorkflow","getStartedWorkflowRunsForRecord","getWorkflowRunsForRecord","getBpmnFile","getBpmnFileFromWorkflow","getWorkflowRun","userOpenStepIndices","trackActivity","WorkflowActivityActionEnum","TriggerWorkflow","AbortWorkflow","SelectWorkflowOption","CompleteWorkflowStep","ReviseWorkflowStep","ResumeWorkflow","CompleteWorkflow","stepName","stepTitle","optionName","selectedWorkflowRecordEntry","relatedRecordsService","getSelectedWorkflowRecordEntry","workflowRecordsWithIdentifiers","workflowRecord","recordIdentifier","standaloneRecords","wr","selectedStandalone","askAiToSelectARecord","AiAgentContext","selectedRecordStepIndex","selectAndExecuteAiTool","getAdditionalContext","ensureOAuthForMcpServerStep","resolvedTools","getWorkflowHeaders","formatToolExecutionResponse","aiOption","buildGuidanceUserInputContext","addRelatedRecordToWorkflowRecordEntrys","workflowRunManager","warningHandler","getToolsForMcpServerId","childrenWorkflowId","newStepIndex","isAiConditionStep","hasStepBeenRevised","newStepHistory","WorkflowStepHistory","persistStepsInHistory","shouldDisplayACardForStep","childrenWorkflowsSteps","buildWorkflowEngine","getBpmnSteps","workflowObjectFromworkflowModel","resumeWorkflowRun","workflowActivityTracker","trackTriggerWorkflow","activityContext","triggerWorkflowLabel","startWorkflowStep","getWorkflowLlmInterfaceArgs","llmInterface","WorkflowLlmInterface","WorkflowEngine","stateInterface","workflowStateInterface","runListenerInterface","workflowRunListenerInterface","getStepById","pushStepInHistory","closeStep","parentWorkflowId","workflowAiService","askAi","shouldAutomaticallyCompleteTask","outgoingOptions","executeChooseGatewayOptionTool","isNextConditionDisplayed","handleStartSubWorkflow","childWorkflow","childWorkflowSteps","subWorkflowVersion","replaceEndStepsWithCloseSubWorkflow","currentStepHistory","trackCompleteStep","completeStepLabel","trackCompleteWorkflow","completeWorkflowLabel","Complete","addGatewayChoiceToAiContext","trackSelectOption","selectOptionLabel","lastCardStep","cardStepsBefore","previousCardStep","clearOpenSteps","cloneCardInHistoryUntilStep","trackReviseStep","reviseStepLabel","cardStep","endStepIndex","subSteps","nextIndex","clonedSteps","buildWorkflowRunFromRecord","pushStepsInHistory","revisedStep","isEscalationTask","newValues","existingError","userAnswer","LegacyWorkflowStepContext","ensureWorkflowIsValid","updateWorkflowBPMN","propertiesMissing","innerWorkflow","fetcherUrl","urlResponse","s3Url","signedUrl","uploadBPMNAndGetNewVersion","signingUrl","s3uploaderService","uploadToPresignedPostAndReturnVersionId","selectedWorkflowRecord","relatedRecord","getRecordFromRelationshipField","parentWorkflowRecord","debounceSaveTimer","NotSaved","getExistingRunOrCreateNew","savePromise","saveWorkflowDebounceDelay","Saved","workflowWithSteps","getWorkflowData","refetchAllWorkflowRecords","trackResumeWorkflow","resumeWorkflowLabel","isAiStepExecuted","runRecord","checkStepValidity","previousStepIsCloseSubWorkflow","isSubTask","isEntryStep","isAfterEscalation","historyIndex","WorkflowRunListenerInterface","onRunUpdate","updates","workflowStepsCache","getCacheKey","setBpmnSteps","runInStore","ensureStepValidity","hasToolExecution","automaticallyCompleteTaskIfAllowed","trackAbortWorkflow","abortWorkflowLabel","runStates","promptService","PromptsService","toolExecutionService","ToolExecutionService","toolSelectRecordService","ToolSelectRecordService","askAiForParametersWithCustomPrompt","availableRecords","getRecordSelectionMessages","selectRecordTool","selectedIdentifier","executeTool","availableRecordsDetails","AIMessage","ToolMessage","tool_call_id","finalResponseToolCall","SELECT_RECORD_TOOL_NAME","recordIdentifiers","REGEX_URL","remoteToolsGetter","forestDescription","associations","globalQuery","annotations","association","associationTarget","MultipleAnnotationsParserWarning","containsV2Elements","parser","DOMParser","doc","Document","rootElementId","isV2","parseFromString","InvalidBpmnFileParserWarning","parseBpmnFlow","entryPointTask","getEntryPoint","parseElementRecursively","EmptyProcessParserWarning","MultipleStartEventsParserWarning","rawText","allOutgoings","findOutgoingElements","MultipleStartEventOutgoingsParserWarning","buildFlowWithTarget","findTaskForFlow","scopedResults","crossBoundary","DuplicateTaskParserWarning","globalResults","TaskNotFoundParserWarning","flowId","parseElement","parseCondition","getGatewayOutgoings","getPrompt","nextFlow","buildEscalationStep","parseSubProcess","buildStartSubWorkflowStep","buildTaskStep","outgoingId","resolveNextTransition","elementType","MissingEndEventParserWarning","WorkflowTransition","MultipleTaskOutgoingsParserWarning","getButtonTextFromOutgoing","taskAlternative","promptWithoutLink","regexUrl","promptWithLink","indexIncrease","currentIndexMatching","remainingUnscannedText","newStep","parseAndOrderOutgoings","GatewayAsEndEventParserWarning","UselessGatewayParserWarning","replaceFlowsTarget","GatewayTitleMissingWarning","aPos","getLabelPosition","bPos","labelBounds","newTarget","findOutgoing","subprocessId","subprocessName","subProcessParserContext","subprocessParser","redirectStep","subProcessSteps","firstTask","SubprocessNotStartingWithTaskParserWarning","getSubProcessOutgoing","saveSubprocessIntoWorkflow","firstTaskId","subProcessOutgoing","parseCrossBoundaryTargets","allSteps","executeOnOutgoings","crossBoundaryStepIds","ParserWarning","CorruptedFileBpmnParserWarning","taskId","taskName","actualVersion","cachedSteps","stepHistories","splice","operation","RunUpdateEnum","AddStep","stepHistoryContext","UpdateStepContext","UpdateStep","createWorkflowRun","rawHistory","getChildrenWorkflowSteps","buildHistoryFromWorkflowRun","parentStep","currentChildrenWorkflowId","stateData","subWorkflowHistorySteps","subWorkflowWithSteps","getWorkflowWithSteps","WorkflowResumeError","baseStateData","rawHistoryStep","getStepId","WorkflowStateData","AiService","stateService","StateService","WorkflowNotFound","workflowStateData","initWorkflowStateData","WorkflowStepError","executeCurrentStep","ensureLastStepIsGood","nextStepId","executeStep","WorkflowStep","WorkflowConditionStepContext","WorkflowStepContext","ConditionStepService","AbstractStepExecutionService","createStepContext","decideWithAi","executeUserDecision","updateHistoryWithDecision","decision","WorkflowConditionStep","buildExecutionService","WorkflowEngineError","WorkflowAiError","WorkflowStepTypeEnum","needsRecordSelection","isInsideSubWorkflow","overrides","oldOrNewStep","fromAttributes","isDisplayingTemplating","initializeComponentOptions","colors","availableColors","workspaceService","colorOptions","actionToDisplay","sortedActions","sourceCollectionSmartActions","availableComponentsToSelectRecordFrom","getAvailableComponentsToSelectRecordFrom","isEditBasicAction","editableFieldComponents","getFieldComponentsWithSameSource","editModeOptions","resetAttributes","workspaceAction","handleClickTemplate","WorkspaceComponentModel","maxRecordsPerPage","areColumnsCustomized","invisibleColumns","fieldTemplatingHelper","handleDataTypeChange","handleCustomizeColumnsToggle","handleReorderColumns","hideColumn","columnToHide","sortedVisibleColumns","showColumn","addObject","handleBreakingChange","handleCreateFilter","handleDeleteFilter","triggerRefresh","onConfirmBreakingChange","isDiscardVisible","allComponentsVisibilityCanDependOn","visibilityOptions","basicVisibilityOptions","isAction","isField","handleChangeVisibility","renameComponent","saveComponent","initializeShouldDisplayTemplatingError","onConfirmDelete","isMinimumDateDisplayingTemplating","isMaximumDateDisplayingTemplating","onChangeType","handleClickMinimumDateTemplate","handleClickMaximumDateTemplate","supportedDisplayWidgets","getDisplayWidgetsFor","supportedEditWidgets","getEditWidgetsFor","handleWidgetChange","widgetType","createWidgetConfiguration","collectionsWithInboxes","filteredInboxes","existingInboxIds","handleNewInbox","featureEnabledCallback","notification","handleChangeCollection","handleChangeInbox","simpleFields","COLORS_FROM_FOREST","handleChangeFontWeight","Bold","Italic","handleChangeColor","WORKSPACE_COMPONENT_MAX_TABS","isDeleteButtonDisabled","isAddButtonDisabled","deleteContainerWithoutSaving","handleReorderTabs","handleCreateTab","tabLength","handleRenameTab","handleFocus","handleBlur","_setHasTemplatingError","onChange","resizable","isTextarea","isExpectingSingleVariable","handleValueTypeChange","workflowsToDisplay","onWorkflowChange","workspaceWorkflow","buildRecordsContextForGlobalAction","relationshipParameters","shouldApplyScopes","pickBy","identity","csvExporter","exportData","isFieldsEditMode","allBasicActions","buildBasicActions","fieldComponentsWithSameSource","isDisabledDueToNoRelatedFields","isBuilder","buildRecordsContextForTemplatedAction","verifySelectedRecordsAreInRecordsContext","WorkspaceRecordsOutOfCollectionOrSegment","checkRightsToTrigger","allowedActionsForUser","allowedActionsForUserAndRecord","handleCloseCreateEditModal","isDisplayingRecordEditionOrCreationModal","dirtyRecords","getDirtyRecordsWithSameSource","promiseResults","refreshedCollections","recordCollection","leaveRecordEdition","handleEditDiscard","fieldComponent","toggleRelatedFieldsEditMode","triggerExport","resetSelectedRecords","RefreshWorkspaceQueryParameters","ContextTypeEnum","RECORDS_REQUIRED","TIME_RANGE_REQUIRED","WorkspaceRefresh","handleWorkspaceRefresh","WorkspaceContextChanged","handleWorkspaceContextChanged","workspaceComponentOptions","unsetContextType","addListenerOnSmartActionTriggered","handleSmartActionTriggered","setupRecordsContext","removeListenerOnSmartActionTriggered","openDuplicateRecord","isDisplayingRecordCreation","closeCreateEditModal","onRecordCreated","shouldPreventChangeSelectedRecord","workspaceManagerBusinessService","shouldPreventChangingRecordWhileEditing","preventChangingRecordWhileEditing","cancelAll","shouldUpdateIfSegmentOrSortHaveChanged","collectionMainViewRecordsPerPage","collectionMainViewId","getDefaultSortingOrder","nonEditableFilter","areVisibleColumnsInRecordContextUpToDate","viewList","buildRecordsContextForWorkspaceComponentCollection","handleSelectedRecordsChange","sortAndCreateVisibleColumns","visibleColumnsInRecordContext","currentVisibleColumns","isGridStackItemLoaded","onSelectComponent","onQueryParametersChange","FeatureWorkspaceComponentRendererDividerComponent","AbstractWorkspaceComponentRenderer","creationFormHandler","oldFieldRecordValue","fieldRecordValue","widgetEditWorkspace","setFragmentOwner","rollbackAttributesIfNecessary","setSelectedInboxId","handleRefreshSelectedRecord","loadInboxCounts","handleRecordOutOfSegment","selectedInboxId","availableInboxes","doesHaveRecordToProcess","doingInboxAssignments","omitCurrentTask","emptyDropdownText","processingDropdownText","isDropdownLoading","currentRecordDisplayName","displayFieldValue","savedInboxId","getInboxComponentSelectedInboxId","saveInboxComponentSelectedInboxId","hasClickedExit","sourceComponent","handleChangeCurrentInboxAssignment","buildRecordsContextForWorkspaceComponentInbox","labelToDisplay","debounceValue","applyValue","recordRouteName","recordRouteParameters","themeQuery","borderQuery","titleTheme","templatedQuery","restartableTask","selectedRecordValue","disabledReason","shouldRedirectToRecord","taskFor","fetchSelectedRecord","handleUpdateSearchValue","shouldPreventSearch","buildRecordsContext","handleComponentOptionsUpdate","forceUpdateContext","buildRecordsContextForWorkspaceComponentSearch","gridWidth","getGridWidth","gridHeight","getGridHeight","loadSmartComponent","skipRefresh","businessCollectionService","triggerSmartAction","shouldForceReload","smartComponentName","smartCodeLoader","loadCode","tabsWidth","tabsHeight","handleUpdateSelectedTab","handleClickTab","FeatureWorkspaceComponentRendererTextComponent","currentWorkflowRun","WorkspaceHideConfirmationRightPanel","handleHideConfirmationRightPanel","isDisplayingConfirmationRightPanel","workspaceState","isDisplayingDeletePanel","isDisplayingBreakingChangePanel","isNameInvalid","extraActions","isFirefoxAndClipboardAccessDisabled","navigator","userAgent","readText","tooltipMessage","tooltipSide","duplicateWorkspaceComponent","confirmDeleteWorkspaceComponent","isDanger","redirectRoute","duplicateComponent","handleEnterTitleEditMode","isNameEditMode","handleQuitTitleEditMode","handleConfirmBreakingChange","setIsDisplayingBreakingChangePanel","resolveConfirmChangeComponent","handleShowConfirmDeleteRightPanel","containerToDelete","setIsDisplayingDeletePanel","resolveConfirmDeleteComponent","deleteComponent","componentsInsideContainer","deleteWorkspaceComponent","handleQueryParametersChange","getWorkspaceForCollection","updateQueryParameters","canCreateWorkspaceFromSummary","handleCreateWorkspace","currentUserService","handleCreateWorkspaceFromSummary","createWorkspaceFromSummary","groupName","WorkspaceBuildContextError","UnknownWorkspaceError","startResizingOrDragging","isResizingOrDragging","draggedComponent","stopResizingOrDragging","workspaceStore","WorkspaceOnRecordCreated","trackWorkspaceCreated","getCurrentWorkspaceInboxComponent","setCurrentWorkspaceId","CommonOperatorDisplayNameEnum","Is","inboxComponent","legacyWorkspaceManager","buildAllContextFromQueryParameters","destinationComponent","getQueryParametersForWorkspace","Danger","hasDirectFilteredCollection","Search","createdWorkspace","summaryConverter","getIsWorkspaceOnRecordFeatureActivated","saveZoomScale","getZoomKey","getZoomScale","WorkspaceManagerInternalBusinessService","getWorkspaceById","checkComponentType","createFilterForInbox","fullQueryParameters","getNewWorkspacePosition","getInboxComponentKey","existingWorkspace","deleteWorkspaceComponentsFromSummary","convertSummaryToComponent","convertSummaryPositionToComponentPosition","innerDisplaySettings","WORKSPACE_TOTAL_COLUMN_OF_PADDING_AND_MARGIN","WORKSPACE_TOTAL_ROW_OF_PADDING_AND_MARGIN","cumulativeY","innerComponents","rowHeight","getItemNaturalHeight","rowDisplaySettings","grandchild","gIndex","convertSummaryItemToComponent","parentChildLength","itemIndex","titleComponent","generateNameForComponent","SmartActionButton","WorkflowButton","HasMany","HasManyEmbedded","itemName","existingNames","baseName","minPosY","parentDisplaySettings","itemMeta","convertSummaryFieldToComponent","convertSummaryActionToComponent","convertSummaryWorkflowToComponent","convertSummaryHasManyToComponent","definitions","variableDefinitions","variable","directives","selectionSet","selections","loc","end","fetchPolicy","forceRefetch","getEnvironmentsWithoutEnabledRoles","branchId","queryNewNotification","EnvironmentPermissionsCopied","queryEnvironmentUpdateEnded","queryLayoutChangesUpdated","queryLumberSynchronizedProject","queryNotificationFromAgent","appVersion","versionOnly","hideSha","shaOnly","hideVersion","showExtended","versionExtendedRegExp","versionRegExp","shaRegExp","helper","AssetMapHelper","ace","setModuleUrl","initializerFactory","Initializer","BigInt","createError","messageFormatted","until","for","createDeprecationHandlers","deprecationWorkflowConfiguration","registerDeprecationHandler","matchingWorkflow","matchId","detectWorkflow","handler","defaultBehavior","onUnhandled","enableDeprecationsCollector","deprecationWorkflow","alreadyRegisteredDeprecations","unregisteredDeprecations","matchKey","flushDeprecations","deprecationsConfig","deprecationNamesToConfig","deprecationNames","deprecationName","setupContainer","Inflector","inflector","irregular","quillRegister","reopen","_instanceCache","recordData","onSetDirtyBelongsTo","notifyHasDirtyRelationshipsChanged","onSetDirtyHasMany","onDidCommit","onRollbackAttributes","belongsToIdByName","rollbackRelationship","_originalBelongsTo","_originalHasMany","belongsToKeys","hasManyKeys","currentRelationshipId","oldRelationshipId","isPolymorphicRelationship","currentRelationshipIds","oldRelationshipIds","firstArray","secondArray","routeProps","titleToken","collectTitleTokens","currentModel","unshift","resolvedTokens","finalTitle","setTitle","EmberRouter","send","forceHide","renderer","domForAppWithGlimmer2","_dom","initializeLibrary","unregister","ForestSessionService","didInsertElement","autofocus","getFocusableElement","handleInput","handleKeyUp","onEnter","computeNumberValue","isNumberUnsafeInteger","lottieContainerClassSelector","_skipAnimationIntroListener","animation","endFrame","introEndFrame","currentAnimation","lottie","bindAnimation","playSegments","once","emberIsArray","searchValueOrValue","inputSelectorClass","defaultItem","placeholderOrDefaultOption","defaultOption","multipleValues","singleValue","optionsMap","namePath","titlePath","valuePath","disabledPath","disabledOptions","optionsMapWithHighlightSearch","highlightRegex","copiedOption","EmberObject","highlightPrefix","highlightSuffix","splittedValue","subMatch","valueFormatted","valuesSelected","selectDefault","notifyChange","removeDropdown","markValueAsSelected","valueBefore","selectInputValue","onOpen","_isLoading","hideDropdown","selectValue","deselectValue","none","containerElementId","applyOptions","propertyKebabCase","kebabCase","cssVarPrefix","Controller","currentStepKey","as","stepsKeys","defaultStep","helpCenterTopics","helpCentersContent","topic","lastStep","maxStepNumber","_computeBreadcrumbState","integrationComponent","componentArguments","computeIntegrationComponentArguments","functionOrValue","isLocalhostUrl","canGoNext","checkIsAgentRunning","localNetworkPermissionState","hasRequestedLocalhostPermission","showLocalNetworkPermissionNotification","showLocalNetworkPermissionDeniedError","currentOrigin","isSkippable","canGoBack","onGoNext","trackBubbleEventLinkClicked","bubbleName","onboardingTrackingInformation","trackBubbleEventOpened","temporaryDatabaseCredentials","databaseCredentials","showCredentialValidationErrors","checkAgentEndpoint","permissionStatus","onchange","checkLocalNetworkPermission","checkAgentEndpointRunner","resetCheckAgentEndpointRunner","agentError","applicationChecker","checkAgent","isAgentResponding","isCorsError","automateCheckAgentTransition","CorsAgentError","trackAgentCorsError","realBeforeNext","defaultErrorMessage","applicationUrl","collectionsPermissions","RolePermissionsController","partialBreadcrumb","roleName","goOnEditMode","displayHubspotLiveChat","setSelectedPanel","queryPanel","component_id","noComponentRedirectionRoute","isTabs","routeTransitionHandler","handleWillTransition","ChartRoute","currentChart","unregisterComponent","_getMaxY","_getDefaultWidthAndHeight","sureLabel","willTransition","resetController","chart_id","previousRoute","getPreviousRoute","awsCodeDownloader","smartChart","AutoCompleteViewHelper","prefillParentRecord","polymorphicCollection","prefilledRows","rowEditReferenceFieldName","prefillRow","inverseOf","currentReferenceFieldName","Mixin","getCollectionId","displayWarningBrowserWhenNotInExtension","continueAnywayOnMobile","displayWarningMobile","shouldShowDevMarker","forestEnvironmentSharedState","toggleDevMarker","faviconManager","hideForestEnvironmentIndicator","forestEnvironmentIndicatorOpened","continueAnywayOnMobileAction","continueAnywayOnBrowser","displayWarningBrowser","removeToast","checkBrowser","isChrome","isFirefox","isOpera","isSafari","handleWindowResize","innerWidth","ApplicationRoute","ensureCurrentUserIsPopulated","userPreferenceManager","setupTheme","setCurrentRoute","lastVisitedOrganizationService","checkSsoAuthenticationSwitch","projectRouteParams","isProjectRoute","isLiveDemoRoute","isProjectLiveDemo","isSignUpRoute","defineById","isLiveDemo","handleInvalidation","redirectToHomeIfOutsideContext","useRedirectAccess","_transitionToUrl","ssl","deleteRedirectTarget","invalidateAndSaveTransition","transitionToUrl","requireAuthentication","generate","hideDeleteLabel","isWidgetEditDropDownStatic","onEnumValueChange","addRule","removeRule","resetWidget","clearRules","switch","tooltipContent","isFullVariant","hasText","assigneeFetcher","fetchAssignee","initialOptions","optionsToDisplay","handleSearchValueChange","previousSearchValue","overrideSearch","searchAssignees","handleValueChange","handleInitialOptionsChange","AssigneeModel","classNames","googleAuthenticationRoute","iframeClass","dataObj","googleLoginAction","googleSignUpAction","isLoggedIn","getRouteStateParams","whitelistParameterKey","targetRoute","targetParameters","routeNames","lianaSessionOidc","redirectToHref","AuthenticationLianaLoginLegacyComponent","canSwitchEnvironment","isUsingGoogleAuth","authenticator","resetPasswordAction","forestToken","lianaSessionLegacy","getSessionToken","lianaPost","twoFactorToken","twoFactorRegistration","_onLoginResponse","handleLoginErrors","twoFactorAuthenticationEnabled","userSecret","setLianaAuthToken","initLiana","afterLogin","withCredentials","tryGetJsonFromResponse","isAdminAPIRunning","_extractMessageFrom401","_isUnexpectedError","_handleStatus0Error","ErrorType","ipRejected","responseText","_getLoginErrorMessage","invalidateForIp","authenticationFeatureService","logout","switchEnvironment","hasOtherEnvironments","isTwoFactorAuthenticationRequiredError","isForbiddenError","errorTitle","canLoginAgain","canAccessOtherEnvironments","canLogOut","isUnreachableError","UserForbiddenError","AuthenticationError","handleAuthenticationError","goToEnvironmentSettings","goToMyAccountSettings","isCloud","imageSrc","assetMap","Blocked","handleTrialError","handleLegacyErrors","handleNoActiveSubscriptionError","shouldUpgrade","isInValidFormat","deviceFlow","isUserCodeValidFormat","userCode","inputState","onSubmitCode","initialUserCode","currentElementId","copyToClipboard","selectXMLConfigurationCard","isXMLConfigurationSelected","isManualInputConfigurationSelected","selectManualInputConfigurationCard","configure","informations","generateEntityId","srcQrcode","uriOTP","create2FARegistrationUri","qrcode","toDataURL","margin","issuer","isNotProduction","forestAdminEnvironment","encodeURI","isNumerical","character","select","onPaste","pasteData","clipboardData","currentInput","nextInput","setInputValue","inputIndex","inputValues","tooltipTargetId","emptyStateImage","imageIdentifier","savedConditions","countConditions","hasSearchValueApplied","filterButtonId","disableSwitchOperator","_handleQuickFilter","onQuickFilter","filterLocation","showFilterMenuAction","showFilterMenu","withSearch","saveOnApply","applyFilter","showDiscardButton","showDiscard","discard","leave","hideFilterMenu","discardOnHide","hide","fieldsFilterable","isCompact","appliedSearchValue","searchPlaceholder","mappedOperators","hasUnknownField","unknownFieldName","shouldDisplayTemplating","isUsingTemplate","isFieldTypeAnArray","embeddedFields","relationshipFilterableFields","isPlainField","subFields","showOperator","templatingButtontooltipMessage","templatingNotSupportedMessage","toggleScope","resetOperator","onSubFieldChange","onOperatorChange","removeCondition","handleFocusInput","showClear","noPadding","classNameBindings","canDiscard","isSearchOrFilterDirty","canClearAll","canClearNew","applyTextOrDefault","applyText","clearConditions","showApply","addCondition","hasSubFieldCondition","canUseOrFilterOnSubField","initFilterAndCondition","insidePopup","handleConditionChange","toggleOperator","onAddCondition","onAddFilter","resetFilter","onClearAll","initAfterClearAll","applyFilterAndSearch","withVariables","parentElementId","popupHeight","popupWidth","initPopupPosition","parentElementPosition","windowWidth","show","containerId","safari","updatePosition","initialPosition","windowHeight","FieldEnvironmentModel","fieldValue","getOptionValueToDisplay","onSearchValueChange","addQuerySearch","addQueryScope","addQueryContext","searchResult","onSelectValue","onShowSideMenu","entities","isClean","oneWay","displayActions","modifiedValue","checkValue","onValueChange","isChecking","checkValueAndUpdateStatus","checkDebounce","disableSave","displayBorder","showDelimiter","Environment","hasProject","OrganizationModel","toggleDarkMode","setTheme","isLightTheme","LayoutThemeEnum","Dark","Light","countries","previousCountry","initDefaultTaxIdType","countryTaxIdTypes","getCountryById","taxTypes","taxType","vatNumberType","vatNumber","selectedTaxType","BillingModel","Billing","countryName","realCountry","country","billingUIService","updatePaymentDetails","stripeContext","stripejs","contactUrl","handleContactUsClick","Plan","upgradeToPlan","selectedCommitment","isTermsAgreed","seatsCount","activitiesCount","estimatedOrderPrice","priceMonthly","PlanPricingUtils","calculatePriceByPlanAndCommitmentForProject","editDetailsRouteName","onClickEditDetails","isYearlyCommitmentSelected","canDowngrade","onContactUsClick","fallbackPlan","getNonTrialPlanForType","plans","getTrialPlanForType","starterPlan","starterPlanFeatures","fetchDescription","starterTrialPlan","communityPlan","communityPlanFeatures","plusPlan","plusPlanFeatures","plusTrialPlan","upgradeToPlus","isPlus","upgradeToStarter","isStarter","tryStarterText","trialDurationInDays","tryPlusText","canUpgradeStarter","canUpgradePlus","currentOrTriedPlan","showCommunityPlan","showStarterPlan","showPlusPlan","isEnterprise","isYearly","descriptionsFullHosted","descriptions","TrialModel","startTrial","unitPrice","basePrice","planPricingUtils","unitCount","perUnit","Activity","hasTranches","Flat","getAppearanceFromComputedBodyStyle","marginTop","fontFamily","lineHeight","spacingGridColumn","colorPrimary","colorBackground","colorText","colorTextPlaceholder","spacingUnit","borderRadius","fontSizeBase","styleStripeElements","appearance","paymentElements","business","billingDetails","address","terms","wallets","applePay","googlePay","currentPlanLabel","showAdd","fullWidthOrDefault","fullWidth","withMarginBottomOrDefault","withMarginBottom","discardAction","shortcutForPlatform","isMac","openGlobalSearchModal","nonBubblingAction","goToFieldSettings","setupChart","animateChart","maximumFractionDigits","animationTransition","animate","timeRatio","easeOutQuad","toLocaleString","CHART_TYPES","resetSelectedModeAfterDiscard","mustDisableSmartChart","isObjectiveChartSupported","ChartObjective","isLeaderboardChartSupported","ChartLeaderboard","isLiveQuerySupported","LiveQuery","agentCapabilities","canUseNativeQuery","isConnectionNameEmpty","isValidConnectionName","nativeQueryConnections","canHaveFilter","selectedMode","defaultMode","valueCharts","isValue","allCollections","realCollections","chartType","needsGroups","needsDateOperations","caps","supportGroups","supportedDateOperations","isDataSourceConfigured","sourceTypes","mustDisableSimple","TemplatingInChart","minimalVersionRequired","featureMinimalVersion","deleteFilter","selectChartType","switchMode","allowJavascriptForSmartChart","setMode","isLeaderboard","labelFields","groupableFields","hasUnknownGroupByField","groupableDateFields","timeRangeOptions","QuarterlyTimeRange","onSourceCollectionChange","selectAggregate","aggregate","cellHeight","disableOneColumnMode","handles","float","handleSwitchDashboard","grid","gridstack","removeAll","handleChartsUpdate","widgets","isEditMode","updateChartsPosition","onAdded","updateChart","serializeWidget","editChartAction","dashboardId","hasLeaderboardValue","leaderboardValue","firstColumnElements","lastColumnElements","maximumFirstColumnWidth","getMaximumElementsWidth","maximumLastColumnWidth","setElementsMinWidth","CONFIG_LINE","pointHitDetectionRadius","scaleLabel","bezierCurve","pointRadius","scaleShowVerticalLines","easing","colorName","gradientHeight","lineColor","getGradientLastColor","stacked","opts","formatLabel","yLabel","updateChartGridColor","chartConfig","priceFormatter","NumberFormat","ChartChartObjectiveComponent","projectPrimaryColor","chartObjective","statObjective","formattedValue","_formatPriceValue","_formatPriceText","formatNumberToLocale","getCurrency","getAmountFormatted","getAmount","CONFIG_PIE","cutoutPercentage","chartData","hoverBackgroundColor","totalOther","sum","newData","setObjects","predefinedRandomColors","highlight","notEmpty","chartIcon","priceFormated","valueValue","hasNoValue","isSmartChart","isContextUnsetTimerange","displayError","countCurrent","valueVariation","hasValueVariation","hasCurrentValue","countPrevious","valueVariationComputable","pieValue","isPieChart","isLineValuesAndLabels","lineValue","isLineChart","fill","pointHitRadius","lighten","toHex","momentFormat","curr","colorCode","colorBase","colorPale","findData","isLeaderboardChart","hasDescription","hasLineChartError","defineDynamicProperties","fetchStat","refreshChart","onChartSaved","schedule","notifyElementSizeChanged","notifyElementSizeChangedContext","willDestroyElement","withRetries","statTriggerer","keyIsObject","valueNumerator","valueDenominator","handleChartSaved","requiredPlan","checkExistenceFunction","inputClass","displayCaption","isNotLoading","isDifferentInitValue","initValue","valueAlreadyExists","caption","onInputChange","checkInputValueExistence","newIsLoading","oldIsLoading","valueExists","openDetails","approvals","ActionApprovalModel","displayLatestCommentButton","isScrollBarLoaded","comments","isPending","isLatestCommentAlreadySeen","setIsLatestCommentAlreadySeen","currentScrollBarHeight","scrollBar","onScroll","didCommentsInsert","ActionApprovalsCommentModel","sendMessageAction","approve","failed","ignore","openRejectModal","displayRejectModal","exportApprovalLogs","displayingExportModal","activeFilterCount","elem","openFilters","filterModalIsOpen","closeFilters","filtersValue","ActionApproval","isFileList","containsUrl","urlRegex","urlComponents","isUrl","fileUrl","downloadService","openBlobUrlInAnotherTab","statusIcon","additionalClass","actionRemoved","authorName","openFailedModal","displayFailedModal","openIgnoreModal","displayIgnoreModal","openApproveModal","displayApproveModal","buttonClass","approveOrReject","isApprove","approveOrRejectImageUrl","isModalOpen","approvalComment","ignoreOrFailed","isIgnore","onSkipConfirmationChange","CollaborationCollaborationApprovalEmptyStateComponent","setDate","isUserAllRead","formatedUpdatedAt","authorEmail","authorInitials","messagesCount","noteId","isUpdate","setNoteRead","titleInput","chatInputId","titleInputId","showMessages","didInsert","archiveNoteAction","updateTitle","setNoteTitleAction","focusOn","selectorId","onClickOutside","discardScopeChanges","scopeBusinessService","saveScope","initializeTheme","classPosition","reorderColumns","reorderedColumns","Column","toggleVisibilityAction","previous","addDefaultRule","removeDefaultRule","initializeOperator","operatorDisplay","valueDisplay","onDisplayChange","shouldCheckForTracking","onRecordsFetched","onSelectedRecordsChange","triggerOnSelectedRecordsChange","onPageChange","oldModelToFetch","removeListenerOnRefreshAll","onRefreshAll","newModelToFetch","addListenerOnRefreshAll","listComponentName","lastMainViewId","loadSmartView","fetchRecordsIfNecessary","hasActionsBeenSetup","setupActions","handleSetupCollectionList","addObserver","updateRecordsContext","argumentsToWatch","onArgumentChange","argumentToWatch","betaCollectionListId","addListenerOnRefresh","onRefresh","addListenerOnTriggerSmartAction","addListenerOnDeleteRecords","addListenerOnExport","exportRecords","removeListenerOnRefresh","removeListenerOnTriggerSmartAction","removeListenerOnDeleteRecords","removeListenerOnExport","getSegment","isHasManyCollection","cannotAccessSmartView","cannotAccessLiveQuery","cannotAccessScope","isDisplayingSearchExtendedButton","isLiveQuerySegment","isScopeConfigured","isApplicationWideScopesAvailable","filterDefaultOperator","isSwitchFilterOperatorDisabled","shouldDisplayActionsDropdown","isDissociateHasManyAvailable","isDeleteHasManyAvailable","hasHeader","recordPath","shouldSelectOnRowClick","selectAllRecords","unselectAllRecords","sortByColumn","onSortingFieldNameChange","handleFetchRecords","switchToDefaultListView","columnIsVisible","updateColumn","onSearchExtendedChange","onToggleRow","computeIsRecordSelect","isRecordExcluded","isRecordSelected","viewListConditions","handleFilter","handleSearch","getDefaultSorting","handleRefresh","setupCollectionList","canEditRecordsPerPage","deactivateCurrentSegment","isSummaryViewSection","hasCreateButton","hasActions","hasHeaderEditLayoutButton","hasFiltersButton","hasSearchbar","hasSegmentsListDisabled","hasSideMenu","openCreateRecord","showMore","shouldDisablePerformanceTracking","ViewList","segmentsList","handleApplyFilter","isFilterOnRelatedDataAvailable","FilterModel","FilterFragment","filterDisableSwitchOperator","hasEditLayoutButton","hasRoundedTop","onExport","onSearch","shouldPreventActionTrigger","onRecordSaved","_createRecord","handleFormValidityChange","hasErrors","_hasFormErrors","TrackedSet","hasAnyFieldError","_invalidFields","handleFieldValidityChange","resetFieldErrors","notifyFormValidity","onFormValidityChange","scrollToTop","findById","isEditableGrid","isStaticGrid","summaryData","cannotAccessSummaryView","isSummaryViewConfigured","sectionsOrdered","sectionsSorting","shouldDisplayWorkspaceBanner","summaryViewState","dragStartFieldAction","onDragStartField","dragEndFieldAction","onDragEndField","dragStartCustomAction","onDragStartCustomAction","dragEndCustomAction","onDragEndCustomAction","addNewSection","sectionsData","currentSection","getNamedItem","saveSummaryView","sectionItems","rejectBy","granParent","grandParentItems","parentItemId","newItemIndex","newHorizontalList","horizontalList","removeSectionItem","newSummaryViewItem","onStartDraggingSectionItem","isDraggingField","isHoveringTrash","onDragSectionStart","isDraggingSection","newSections","newTitle","trashHover","isHover","isDraggingNewField","isDraggingNewCustomAction","previousWidget","newWidget","removeWidget","saveSummaryViewTask","isReadMode","onCustomActionClicked","DataDisplayRecordSummaryFieldComponent","sortable","handleDidInsertSortable","Sortable","put","ghostClass","onAdd","onRemove","onStart","onEnd","onStop","forceFallback","handleDidUpdateEditMode","onSectionItemDelete","onDropSectionItem","onStopDraggingSectionItem","titleInputValue","summaryViewComponentId","hideSomeSectionHeaderActionsIfNeeded","toggleTitleEdit","isTitleEdit","updateSectionTitle","handleOpenCreateRecord","redirectToRelatedData","redirectToViewHasMany","redirectToViewHasManyEmbedded","filterText","searchBar","handleDomMouseMove","mouseEnterIcon","onHoverAction","mouseLeaveIcon","dragEnterIcon","dragLeaveIcon","trashId","boudingClientRect","displayNameSingular","columnsVisible","sortedField","sortedFieldOrder","fethRecords","canEdit","enableSearchExtended","displaySearchExtendedButton","isSection","disableSorting","disableFiltering","withNoBorderTop","displayList","hasNoRecords","COLUMN_MIN_WIDTH","COLUMN_RESIZER_WIDTH","initializeOrder","sortingDisabled","isSortable","filteringDisabled","filterPopupAnchorId","isNotEmbeddedField","openSettings","hasWidgetNumber","sortAction","toggleOrder","columnOrder","hasSegmentSortingField","resizableColumnName","onMouseDownHandler","columnElement","tableWidth","initialCursorPosition","initialColumnWidth","isResizing","onMouseMoveHandler","onMouseUpHandler","columnOffset","newColWidth","writeToLocalStorage","onDoubleClickOnResizerHandler","localStorageKey","parentNode","columnStateValue","isPrice","isSearch","disablePagination","displayNameSingularOrDefault","displayNamePluralOrDefault","canPrevious","canSelect","paginationCursor","firstRecordId","lastRecordId","onLeaveEditMode","updateRecordPerPage","fetchPage","_fetchPage","previousPage","nextPage","selectPage","columnsShape","DataDisplayTableTableFrameComponent","initDefaultWidgets","hideColumnSettingsMenu","didUpdateAttrs","selectRelatedActions","relatedActions","isCollectionVirtual","isSelectAllRecordsFeatureCompatible","isCurrentPageSelectedOrDefault","isCurrentPageSelected","setSelectCurrentPage","displayLoading","columnsInfo","toggleShowColumnSettingsMenu","toggleProperty","handleSelectRelatedAction","setSelectAllRecords","scrollToLeft","computeColumnsInfo","getIsSelected","recordsToToggle","updateTableWidth","precedentTableWidth","tableContainer","tableContainerWidth","tableElement","sumWithoutLastCol","tableColumns","removeProperty","isTableFixed","_handleResize","calculateTableWidth","resizableColumnKey","handleTableUpdate","CColumnInfo","columnInfo","isEditing","searchMatch","recordDetailsLink","loadColumns","isTypeEditableInline","editInlineValueOnLeftClick","searchMatches","META_FIELD","columnsLoaded","toggleRecordSelection","onSelectChange","onCloseEditInline","leftClickHandler","contextMenuHandler","isTypeCompatible","isNotEditable","newCondition","contextMenuService","addSection","sectionLabel","onMouseDown","mouseDownAt","onNewTab","onRowClickDefault","DataDisplayTableTableSortArrowComponent","isDesc","orderOrDefault","shouldDisplayActionDropdown","shouldDisplayWorkflowDropdown","isListView","selectedRecordsArray","isDuplicable","isDeletable","disableActionRestrictedToSegment","buttonSize","shouldPreventOpen","singleRecordSelected","selectedActionsCount","isActionButtonDisplayed","smartActionsDocumentationLink","documentationLinkGetter","getDocumentationLink","recordDuplicator","duplicate","deleteSelectedRecords","isActionDisplayed","isDeleteActionAvailable","onAfterDelete","isDissociateActionAvailable","onAfterDissociate","transitionToSettings","reorderActions","itemsWithEmptyOption","hasEmptyOption","emptyOptionLabel","filteredItems","hideEmptyOptionFromList","currentSelectedName","selectedItemId","handleHide","editSmartView","currentSmartViewName","smartViews","viewListsSorted","newOrderViews","firstSmartView","layoutBatchReorder","dragStarted","dragStopped","dropdownActions","triggerDropdownAction","shouldPreventClick","isFunction","dropdownAction","onShow","onHide","styleModifier","contentClass","hideAction","DropdownDropdownMenuDropdownMenuTriggerComponent","datasourcesType","isWaitingList","updateInternalDataSources","clickedItem","isSynchronous","onSelectDatasource","selectedPanel","onSelectPanel","backButtonText","onGoBack","isHovering","assetSrc","imgFolder","imgName","setHover","onClickAction","contentTitle","contentDescription","imgAfterContent","getIconPath","ContentTypes","defaultValidator","customValidator","sendUserInput","defaultApplicationUrl","setApplicationUrl","onFormSubmit","uriRegexp","defaultTab","connectionMethod","supportsSSHConnection","isCloudOnboarding","isMongoSrvDatabase","tlsEncryptionMode","isMongoDatabase","useSRV","requiresSchema","sslOptions","displayedErrors","isEmptyDatabaseError","deploymentError","connectionURI","IP_ADDRESS_REGEX","DNS_HOST_REGEX","regex","port","isUrlValid","protocols","ALLOWED_PROTOCOLS_BY_TYPE","ALL_SUPPORTED_PROTOCOLS","databaseName","sshFormErrors","displayText","defaultDisplayURI","rawCredentials","defaultCredentials","DatabaseCredentials","toRawCredentials","onChangeSshCredentials","sshCredentials","formErrors","onChangeConnectionUriDisplay","EMPTY_ERRORS","isFetchingKeys","fetchKeys","fetchSshKeys","privateKey","private","public","isNameAvailable","setEnvironmentName","_datasourceName","onSuggest","unregisterListener","registerListener","tableCellElement","escapeHandler","closeAction","clickOutside","recordToSave","forceInsideField","targetCell","_computePositionAndSize","didRender","_keepInViewport","documentElement","containerBounds","rightOverflow","allowedWidgets","TextInput","NumberInput","DatePicker","BooleanEditor","AssigneeEditor","onChangeAction","saveAction","_hasErrors","_hasWidgetError","isSubmitted","isFieldId","clearInput","handleWidgetError","computeHasErrors","getMessageFromErrors","firstError","recordError","isSectionDeleteCanBeDisplayed","isSectionProductionCanBeDisplayed","canSetTheEnvironmentAsProduction","isSectionSetOriginCanBeDisplayed","canSetBranchOrigin","goToEnvironmentList","ownerFullName","isDefaultEnvironment","canDeleteEnvironment","dangerZoneDescription","deleteEnvironment","isNameInputDisabled","isNotConfigured","environmentSecretKey","renderingCopierAvailableEnvironments","projectEnvironments","additionalCommand","isNoApplicationUrlCompatible","NoApplicationUrl","updateEnvironment","hasNameChanged","hasEndpointChanged","updateBreadcrumbAndRoute","giveUserInstructionOnApiEndpointChangesSaved","warnUserOnApiEndpointChanged","onValidateNewEnvironmentUrl","newEnvironmentUrl","clearState","continueDeploy","hasNoRolesEnabled","newProductionEnvironmentId","refreshData","tryGetBody","environmentDevelomentCantSetOrigin","originName","originOptions","_isCyclicOriginTree","currentBranch","ancestors","originEnvironment","originId","originEnvironmentName","ErrorScreenComponent","onContinueAction","ExplorerRecordsColumn","explorerColumn","editor","isCurrentPageTooFar","fetchPreviousPage","onFilteringOutSelectedColumn","updateRecordsPerPage","updateExplorerConfiguration","scrollToThisColumn","displayNamePluralize","displayFieldNamesOrDefault","nestedPlainFieldsSorted","nestedPlainFields","fieldA","fieldB","ExplorerDisplayField","isCreatingRecord","onRecordAdded","toggleShowDisplayFieldNamesSettingsMenu","showDisplayFieldNamesSettingsMenu","hideShowDisplayFieldNamesSettingsMenu","toggleDisplayField","explorerDisplayField","_saveDisplayFieldNames","reorderDisplayFieldNames","reorderedFields","draggedField","openAddExistingRecordModal","isAddingRecord","closeAddExistingRecordModal","recordToAdd","explorerField","primaryDisplayFieldValue","displayFieldNameWithNamespace","displayFieldNamesWithNamespace","extraDisplayFields","extraDisplayFieldNames","computeLabel","ExplorerRelationshipsColumn","hasManyRows","rowsReordered","targetModelName","createExplorerConfigurationIfNecessary","canCreateAnIPRuleRequest","_requestAccess","requestAccess","bodyUsed","imageAlt","getDefaultRequiredArgs","BetaBubbleButton","onQuestionClick","firstDisplay","displayedAnswerIndex","topics","closeAnswer","showHelper","displayingHelper","closeHelper","goToBillingUpgradePage","titleText","bodyText","isUserAdmin","administrators","displayEnvironmentPicker","displayTeamPicker","Team","switchTeam","accessibleTeams","reads","liveDemoGetStartedUrl","isEnvironmentBannerDisplayed","isEnvironmentProduction","isDeployLayoutChangesDisplayed","layoutChangesCount","isNotificationBarEnabled","isLiveDemoRendering","isLimitationStatusDisplayed","hasReachedEndOfLife","endOfLifeMessage","getEndOfLifeMessage","linkDocumentationAgentUpgrade","getLinkDocumentationAgentUpgrade","isDeprecatedForChrome92","hideDWO","isEnvironmentDevelopment","openDeployChangesToProductionModal","showDeployChangesModal","closeDeployChangesToProductionModal","onLinkClick","iconEnd","punctuationEnd","waiter","buildWaiter","loadingBarWidth","remainingDuration","isGroup","typeClassName","awaitAndClose","cleanAutoClosingTask","_handleAnimationEnd","autoClosingTask","_waiterToken","beginAsync","updateRemainingDuration","lastFrameDate","timeSinceLastFrame","isTimerPaused","endAsync","animationendListener","pauseTimer","unpauseTimer","blobUrl","labelFormatted","isBase64Prefixed","getNameFromBase64","isBase64","isBase64String","isLargeBase64","isFileTooBigForPreview","getSizeFromBase64","isBase64NotPrefixed","isPdfOrInvalidPicture","isPdf","canLoadImage","isValidUrl","isValidBase64","isImage","isImageOrUrlForImage","isPdfOrUrlForPdf","isSafe","isUrlAbsolute","isSafeBase64","isSafeByExtension","isUrlForImage","isUrlForPdf","isUndetermined","hasKnownImageMimeType","isCorrectMimeType","shouldTryAsImage","base64Type","mimeType","getMimeTypeFromBase64","getMimeTypeFromExtension","getPreviewMimeType","isTextPreviewable","base64","decodeURIComponent","escape","atob","FormAceEditorComponent","themeName","modeName","fullMode","_getMode","fullTheme","_getTheme","aceEditorId","_withUpdatesSilenced","_silenceUpdates","_buildCompleters","suggestCompletions","getCompletions","completers","_initEditorSetValue","originalSetValue","setValue","getSession","_initSessionOnChange","initAceEditor","edit","showInvisibles","getOrDefault","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets","$blockScrolling","updateEditorAccordingToArguments","useWorker","setUseWorker","onReady","createSession","_updateEditorRenderer","updateFull","optionHasChanged","setLinesOption","lineArgumentName","setOption","_oldTheme","_oldAnnotations","setAnnotations","minLines","maxLines","createEditSession","setTabSize","tabSize","setUseSoftTabs","useSoftTabs","getClosingBracketIndex","suffixInput","closingBracketIndex","firstOpeningBracketInSuffixIndex","inputId","autoCompleteItems","autoCompleteItem","isCustomInput","handleSelectorChange","shouldIncludeStartingBrackets","shouldIncludeEndingBrackets","updatedValue","selectionStart","selectionEnd","selectionProperty","lastSelectionStart","computeAutoCompleteItems","LEFT_ARROW","RIGHT_ARROW","isCtrlPlusKeyPressed","handleSelectValue","prefixInput","autoCompleteStartIndex","autoCompleteEndIndex","indexOfClosingAutoComplete","shouldIncludeClosingTag","newInputSuffix","customInputPlaceholder","newInputValue","computeNewInputValue","changeEvent","Event","canBeUsedWithoutVariables","handleHideDropdown","openingBracketIndex","autoCompletePrefix","autoComplete","CheckboxTypes","primary","danger","isOff","hasNullState","stateClassName","isOn","readMode","small","BetaCheckbox","inputElement","inputSearchId","dropdownWidth","selectNextItem","selectPreviousItem","onHideDropdown","onSelectDefault","isOptionsNotMapped","scrollToElement","initDropdownPositionObserversAndEventListeners","dropdownElement","widthVariable","shouldMatchTargetWidth","handleUpdateOptions","hasSearchInput","selectSearch","handleDebounceSearchValueChanged","activeElement","mustHideCurrentValue","shouldCapitalizeOptionName","isRightAligned","emptyText","hasTitle","CopyStyleEnum","CopyColorEnum","formCopyTimout","copyTextOrDefault","copyText","hasAlreadyBeenCopied","isCopied","styleOrDefault","Default","styleClassName","afterCopy","insideInput","isLeftAligned","disableAbsolutePosition","detachHandlers","attachHandlers","onEscape","openOnTop","contentFullWidth","contentClassOverride","computedLabel","realName","emptyOptionsText","addressFinder","findAddresses","addValue","valueToPush","removeValue","reorderValue","expectedTypeNotCasted","isExpectingArray","dropdownParent","cannotSearchInBelongsTo","disableNested","attributeBindings","classNameWithModificator","modificatorName","checked","disableNull","dateFormatting","colorEnumValue","colorsCount","enumValue","labelValue","isValuePresent","updateRadioValue","radioInput","radioValue","FormFormUuidComponent","defineDefaultValue","valueAttributeName","_isAttributeNameWithRelationshipsRequired","isUsedInSmartAction","fieldToRedirectTo","RadioButton","BelongsToTypeahead","PolymorphicBelongsToTypeahead","isDuplicated","notifyValidityChange","onFieldValidityChange","labelClass","formClass","shouldHideSettingsButton","shouldHideDescription","isPrefilledValue","isSmartAction","contextConfiguration","initElement","_grid","addWidget","_getOptions","updateElement","valueOrDefault","marginBottom","marginLeft","marginRight","acceptWidgets","dragInOptions","dragInElementsSelector","appendTo","stop","GridStack","_generateOptions","setupDragIn","childrenInserted","_onGridEvent","onDisable","onDrag","onDragStop","onDropped","onEnable","onRemoved","onResizeStart","onResizeStop","minRow","getRow","maxRow","getColumn","enableResize","enableMove","setStatic","isStatic","disableResize","disableDrag","staticGrid","auto","numOfTimes","times","SmartViewMixin","showDetails","InterfaceCustomDomainPanelComponent","domainPlaceholder","dnsEntry","corsValue","indentation","modes","enableTransform","mainMenuBar","showMenu","_change","JSONEditor","expandAll","_updating","updateText","newDesign","hasClose","showSideMenu","viewType","routeDetail","showHasManyRows","sortedHasManyRowsVisible","reorderRowsAction","AnimationComponent","ERRORS_TO_ANIMATIONS","animationDetail","ERRORS_WITH_CONTACT_US","currentError","displayContactUs","LOADERS_TO_ANIMATIONS","quotes","sentence","quote","adminPanelGeneration","currentLoader","forceDisableLink","updateRecordPath","linkClassNameDisabled","onSingleRecord","onSeveralRecords","linkImpossible","disableButton","exports","ModalGlobalSearchComponent","_onKeyDown","getAllLinkItems","extraSelector","itemToUpdate","selectFirstItem","openCurrentItem","getNextItem","scrollElementIntoView","currentIndex","isOriginEnvironmentReference","responseEnvSecret","secretKey","getSecretKey","defaultOrDescription","hideModalCancel","hideCancel","requiredPlanDisplayName","displayWarningMessage","overlayId","isScrollableOrDefault","isScrollable","closeOnClickOutsideModal","closeOnEscape","isUpdateRecordCustomActionsAvailable","modelCustomization","Webhook","isWebhookCustomActionsAvailable","configurationComponent","checkType","selectType","getConfigurationFromType","initConfiguration","ModelCustomizationModel","fieldsAvailableForAction","fieldsAvailableForActionUpdateRecord","canAddFields","addField","firstNotIncluded","fieldElement","getUpdateRecordActionField","removeField","ModelCustomizationConfigurationActionUpdateRecordFragment","deprecatedFieldName","ModelCustomizationConfigurationActionUpdateRecordFieldFragment","collectionField","updateToLabel","hasFieldSelected","changed","newFieldName","urlPlaceholder","ModelCustomizationConfigurationActionWebhookFragment","routeInfos","routeInfo","pathNames","controllers","defaultPaths","defineStep","currentSteps","controllerBreadcrumb","breadcrumb","previewTabs","isInsideHeader","BetaBreadcrumb","getStoryTemplate","compileTemplate","injectRoutedController","_registerContextMenuListener","_unregisterContextMenuListener","_unregisterEscapeListener","insideContextMenuHandler","outsideContextMenuHandler","_unBlockHighlight","flushSections","_blockHighlight","_registerEscapeListener","_contextMenuListener","_escapeListener","_targetPointer","xDiff","yDiff","ABSOLUTE_URL_DETECTOR","ITEM_SHAPE","securedCloseUrl","closeUrl","openConfirmationPopup","isShowingConfirmationPopup","isShowingOrganizationList","closeConfirmationPopup","dataTestLink","augmentedItems","setWidth","calculateWidth","mousePositionX","sideMenuLeftPosition","sideMenuElement","sideMenuWidth","resizeHandleElement","onSetSideMenuWidth","resizeSideMenu","initSideMenuResizing","isItemInEditMode","activeClass","itemClasses","CssClassHelper","addModifier","generateClasses","hasVisibilitySettings","iconToDisplay","shouldDisplaySubitems","isDraggingInsideThisElement","onIsFoldedByDefaultChange","handleClickFold","onFoldItem","shouldShowHelp","lastRendering","isProjectSettings","getLastRenderingPage","shouldShowProjectSettings","gravatarUrl","md5","userAvatarSrc","AVATAR_SIZE","userAvatarSrcset","resolution","isActiveSection","openDropdown","openDropdowns","closeDropdown","NavigationDataViewBreadcrumbComponent","defaultBreadcrumbs","rootDisplayText","firstHistoryItem","dataViewHistory","isViewHasManyRoute","isNewDesign","getSegmentIfAny","collectionListLink","checkExistingBreadcrumb","historyBreadcrumbs","getCollectionParams","isDataViewRoute","isRelatedDataRoute","isCreateEditShowRoute","getRecordDisplayName","collectionDetailsLink","getModelParams","historyItem","modelDisplayName","historyStartIndex","getStartIndexFromHistory","prepareAndCleanHistory","removeLoops","_cleanHistoryDependingOnNextRoute","handleShowCreateEditRoute","isNextRouteCreate","isCreateRouteToDelete","isCreateWithoutHasManyRoute","isCreateNewBelongsToRoute","isNotDisplayedHistory","haveSameRouteName","isDataRouteToDelete","haveSameParams","haveSameModel","shouldKeep","isNextRouteCollectionSettings","isCollectionSettings","isCollectionSettingsRoute","shouldDelete","isAlreadyPresent","currentHistoryItem","nextHistoryItem","isStartingItem","isCollectionOrCollectionSettingsRoute","isDashboardRoute","handleCreationRoute","handleShowRoute","isChartRoute","isCollaborationRoute","chartId","getBaseRoutePurpose","stopHistoryAt","_getParams","debouncedOverflowCheck","initOverflowListener","checkOverflow","textNode","displayTooltip","_onClickHandler","linkElement","linkId","handleToggleDarkMode","closePopup","isValidName","previousName","STATES","headingAlign","heading","closeHeader","showSignUp","hideSignLink","customDomainPictureUrl","displayNavigationBar","signQueryParams","positionClass","EnvironmentIncompatibleModel","filteredUsers","normalizeString","currentOwners","owners","srcset","emailHash","onImageError","imageError","pictureUrl","getPictureUrl","pictureClass","numberGrantedEntity","limitValue","entityPlural","limitedEntity","isSelfHostedAgent","titlePrefixWithSpace","titlePrefix","spacedTitleSuffix","titleSuffix","tryInDevelopment","displayTrialNote","imageName","planDisplayName","titleHighlight","illustrationComponentName","cancelDisplay","cancelRedirect","isInsideSettings","PreviewPreviewMultipleDashboardsComponent","urlProjectRendering","urlProjectSettings","Branch","devWorkflowDocumentationLink","origins","remoteEnvironments","isCreateBranchDisabled","displayCreationModal","isCreationModalDisplayed","closeCreationModal","isCreationDisabled","selectedOrigin","createBranch","hideMenu","invoiceId","fetchResponse","quadernoPdfLink","invoices","activePage","totalPages","rowsPerPage","currentInvoices","month","accessPage","InvoiceModel","isScimFeatureUnavailable","scimService","isFeatureAvailableOnCurrentProject","isShowingDisablePopup","hasScimToken","deleteScimToken","scimTokenValue","generateScimToken","filteredProjects","normalizedSearch","submitSearch","sortedHasManyRowsDisplayed","sortedHasManyRows","stopInterfaceTracking","titleAlert","buttonDeleteTitle","titleSecond","buttonCancelTitle","actionButtonType","handleClickOutside","sidepageClass","Role","isCopyButtonEnabled","fromEnvironment","toEnvironment","destinationEnvironments","handleChangeFromEnvironment","subscriptionCallback","watchCopyPermissionsFinished","AbstractRolesPermissionsTableComponent","onChangeRequireApproval","saveChanges","onChangeTrigger","onChangeUserApproval","onChangeSelfApproval","COLLECTIONS_PERMISSIONS_DISPLAY_LIMIT","COLLECTIONS_DEFAULT_PERMISSIONS_COLUMNS","COLLECTIONS_PERMISSIONS_COLUMNS","COLLECTIONS_PERMISSIONS_DETAILS_ROUTE_POSTFIX","formattedPermissionValidator","collectionPermissionsKeys","AbstractPermissionsTable","collectionsPermissionsColumns","collectionDefaultPermissionsColumns","permissionsDisplayLimit","detailsRouteNamePostfix","permissionsEditColumns","getActionName","permissionName","isPermissionAllowedForEveryPermissionName","ColumnHeader","collectionPermissionsColumnHeader","togglePermissionValue","toggleAllPermissions","collectionPermissionKey","shouldActionBeDisabled","toggleParentClass","parentClass","defaultPermissionsEditColumns","displayAll","actionsColumnHeader","AbstractRolesPermissionsActionsComponent","SMART_ACTIONS_PERMISSIONS_DISPLAY_LIMIT","SMART_ACTIONS_PERMISSIONS_DETAILS_ROUTE_POSTFIX","SMART_ACTIONS_PERMISSIONS_COLUMNS","SMART_ACTIONS_PERMISSIONS_COLUMNS_WITH_APPROVAL","CollectionEnvironmentModel","smartActionsPermissionsColumns","permissionList","shouldGlobalSelfApproveBeDisabled","canAccessToApproval","createUserApprovalCondition","createApprovalRequiredCondition","createTriggerCondition","filterToText","truncatedText","truncateText","textId","clearFilter","showMoreOptions","setValueToPermission","SamlConfigurationModel","reader","FileReader","readAsDataURL","importData","files","certificate","getCertificateFromFile","certificates","deleteCertificate","base64StringFile","toBase64","loginUrl","samlConfiguration","logoutUrl","disableSaveButton","cancelEdit","disableCancel","changeOption","allowIdpInitiatedLogin","samlConfigurationData","metadataEndpoint","metadataFile","isTest","isAddMetadataButtonDisabled","deleteFile","SegmentLiveQuery","isValidSegment","editorTheme","handleModeChange","onSelectedModeChange","onNameEditModeChange","nameHasChanged","replaceURL","notesUIService","loadCounts","queryParamsForCreated","approvalsFilters","queryParamsForToReview","queryParamsForWarning","queryParamsForHistory","RenderingModel","displayBranding","selectedItemToScrollTo","hasDetail","fieldsIntegration","fieldsIntegrationHasMany","itemEditClasses","isDragging","linkDisabled","currentWhenCondition","onClickIconAction","onClickIcon","onClickSettingsAction","onClickSettings","itemDragStarted","itemDragStopped","hasNotificationCount","notificationCount","linkCurrentWhen","linkTarget","clickAction","SidePanelComponent","hideOverlay","SmartEditorComponent","AutoCompleteHelperClass","_autoCompleteHelper","temporaryRegistryIndex","currentTab","_sessions","shouldNotRunCodeOnStart","runCode","exitSmartEditor","mouseMoveListener","mouseUpListener","currentCode","isTemplate","isComponent","currentMode","currentSession","initializeEditor","_createSession","addCommand","commands","bindKey","win","mac","sender","runAndSave","copyOrCutLineOrSelection","setSession","resizeEditor","onMouseUp","updateCode","selectTab","isDisplayingSettings","toggleSettingsView","elementRightPosition","widthWindow","percent","oldTempComponentName","tempComponentName","unregisterTemplate","registerTemplate","unregisterStyle","registerStyle","nextTemporaryRegistryName","currentTemporaryRegistryName","isCurrentTemporaryRegistryNameRunning","runningRecordComponentCodeHash","hashFromObject","_buildTemplate","_buildStyle","_buildComponent","getRecordComponentCodeHash","isCurrentRecordRunning","isCompileSuccessful","loadCurrentTemporaryComponent","afterRunCode","switchFramework","editorAction","getSelectedText","selection","selectLine","execCommand","saveAndSetRegistryName","lastRouteVisited","smart_view_name","AutoCompleteSmartViewEditorHelper","SmartViewEditorWithPreviewSettingsComponent","onClickSuggestion","resetSuggestions","shouldHideSuggestions","suggest","searchDebounced","sendSearchAction","minLength","onSuggestionsChange","onEmptySearch","isCrossIconHidden","isCurrentUser","userDetails","year","day","sortedRoles","availableProjectRoles","availableProjectTeamsForUser","existingUserTeams","inEditState","availableProjectTeams","projectTeam","isDiscardButtonVisible","isUserInEveryTeam","isUserInOnlyOneTeam","resetInEditState","goToUsersList","rollbackChanges","addToTeam","firstTeamAvailable","removeUserTeam","userTeamToRemove","editUserTeam","userTeamToEdit","newTeam","addATag","removeATag","tagToBeRemovedIndex","editATag","tagToBeEdited","ApplicationToken","hasApplicationTokens","applicationTokens","generateToken","applicationToken","isInvalidName","autoGenerate","transitionToGenerate","transitionToDetails","UserRecoveryCode","numberUserRecoveryCodes","userRecoveryCodes","setupTwoFactorAuthentication","displayRecoveryCodes","recoveryCodesService","generateNewRecoveryCodes","goToRecoveryPage","showConfirmDisable","displayConfirmDisable","hideConfirmDisable","instruction1Src","instruction2Src","instruction3Src","formattedCodes","canContinue","generatedQrCode","recoveryCodes","showNextStep","isRecoveryCodesStep","UserInvitationProject","addTag","onAddTag","userInvitations","RoleModel","oneRole","selectedRoleId","actionTitle","inputPlaceHolder","filteredRoles","searched","searchedValue","updateRole","onUpdateRole","WORDS_SELECTOR_REGEXP","isInviteButtonDisabled","inviteEmailsText","selectedRole","areTagsValid","selectedTags","validEmails","allEmails","incorrectEmails","possibleEmails","emailCandidate","extractEmailListFromText","hasInvalidEmails","inviteUsers","selectedPermissionLevel","toggleTagsTable","shouldDisplayTagsTable","Item","tagList","allTags","accumulator","uniqueTags","removeTags","onRemoveTags","Row","unloadFields","cancelInvitations","selectedInvitations","selectedRows","allInvitations","checkboxValue","pageCount","searchItems","debounceSearch","isLoadingSearch","smartViewWithSameName","redirect","smartFeaturesService","saveSmartView","handleAllowJavascriptChange","redirectToDetails","smartViewName","fillPanel","isHasManyFieldOrIntegration","pull","dragStartAction","dragEndAction","toggleSection","AbstractWidgetColumnLayout","colorMap","_isAMomentObject","_f","predefinedColorForIndex","randomColorBasedOnString","mappedFormattedValue","mapped","conditionAlreadyApplied","valueLimited","valueHighlighter","computeValueLimited","valueWithHighlight","computeValueWithHighlight","firstValues","labelArrayFormated","valueArrayFormated","additionalAssignees","getLinkValueToDisplay","canRead","canReadReferenceModel","WidgetsDisplayBooleanCheckboxWidgetColumnLayoutComponent","WidgetsDisplayBooleanCheckboxWidgetLayoutComponent","REGEX_COLOR_WITHOUT_HASHTAG","REGEX_COLOR_WITH_HASHTAG","setColor","AbstractConditionalFormattingColumnLayout","selectedData","fileWidth","fileHeight","isMultiple","hasValue","dataArray","createObjectUrl","FileDataObject","selectedIndex","onImageLoaded","zoomInImage","zoomOutImage","downloadData","downloadBlobUrlAsFile","currentData","currentIndexDisplay","imageId","imageContainerId","isRotated","rotation","openIndex","_onKeyUp","_resizeListener","_close","isImageLoaded","imageElement","updateOriginalProperties","isUrlForSvg","handleSvgWidth","rotateLeft","updateRotation","rotateRight","_previous","_next","imageContainerElement","ratio","_originalWidth","_originalHeight","updateSize","newHeight1","_originalMaxHeight","newWidth1","newWidth2","_originalMaxWidth","newHeight2","newHeight","newWidth","amount","withRotation","withZoom","FileViewer","WidgetConfiguration","sizeOrDefault","displayErrors","onSizeChange","isCustom","lensId","zoomContainerId","zoomImageId","initZoomProperties","_zoomMin","_zoomContainerWidth","_imageElementWidthWithRotation","_zoomContainerHeight","_imageElementHeightWithRotation","_zoom","initImageElementProperties","zoomContainerElement","imageBoundingRect","_imageElementLeft","_imageElementTop","_imageElementWidth","_imageElementHeight","_imageElementScreenPositionLeft","_imageElementScreenPositionTop","updateMargin","_createLensHandler","createOrDestroyLens","_updateRotation","oldCenterLeft","_lensLeft","_lensWidth","oldCenterTop","_lensTop","_lensHeight","percentLeft","percentTop","displayZoom","centerLeft","centerTop","lens","oldRotation","moveLensAtNewPosition","updateZoomImage","zoomImageElement","oldWidth","ratioResize","_margin","mouseEvent","destroyLens","createLens","_dragElement","zoomInOut","_handleLensDragOver","_handleLensDrag","_handleLensDragStart","_handleLensDragEnd","cursor","onZoomAppear","setData","moveLens","lensClientX","lensClientY","onRotationChange","imageRotation","_imageElementListeners","_lensListeners","onZoomDisappear","_zoomMax","oldLensWidth","oldLensHeight","parentLeftOnScreen","parentTopOnScreen","eventHandler","isTypeJson","jsonToDisplay","latitude","getCoordinate","longitude","initDisplayTimeout","reverseIndex","basicIndex","isReverse","coordinateNotParsed","coordinate","WidgetsDisplayMultiLineTextWidgetColumnLayoutComponent","WidgetsDisplayMultiLineTextWidgetLayoutComponent","AbstractNumberDisplayWidget","formattedNumber","isLabelPresent","valueWithHighlightInPercentage","formatNumberToPercentage","WidgetsDisplayPointWidgetColumnLayoutComponent","coordinateX","coordinateY","valueIsNumber","AbstractPriceViewer","WidgetsDisplayPriceViewerWidgetSettingsComponent","currencies","CURRENCIES","WidgetsDisplayRichTextViewerWidgetColumnLayoutComponent","WidgetsDisplayRichTextViewerWidgetLayoutComponent","safeValue","_appendScriptElement","scriptElement","_scriptElements","customerScript","integrity","crossOrigin","createTextNode","_insertCodeScripts","sourceScripts","sourceScript","elementCreated","_createScriptElement","_loadSourceScript","scriptCreated","_removeScriptElements","scriptElements","getElementsByTagName","scripts","codeScripts","updateScripts","_injectScriptElements","handleAlowJavascriptChange","displayConfirmationModal","WidgetsDisplayTextWidgetColumnLayoutComponent","WidgetsDisplayTextWidgetLayoutComponent","getOptions","addQueryPagination","PromiseArray","isCustomActionFormField","LimitedValueWidgetLayout","disableCreation","fetchReferencedRecord","referencedRecord","fetchValues","toggleNewRecordPanel","initializeRecordsContext","createField","createNewBelongsTo","displayVertically","isWorkspace","isExpectingContext","isDynamicSearch","oldSet","onDrop","addOneOrMoreFiles","dropZoneText","filesExtensionsToString","filesSizeLimitInBytes","dragOver","preventDefaultAndStopPropagation","updateDragOver","dragEnter","dragLeave","resetDragOver","dragEnd","drop","validFiles","invalidFiles","isValidType","fileExtension","skipConfirm","argsInputId","setInputFileLoading","base64Values","dataWithPrefix","getDataFromUrl","updateDataToUrl","opaqueResp","originalValue","finally","filesMapped","dataToFileName","fieldFile","md5FieldFile","filesExtensionsForInput","filesExtensionsForButton","openUploadModalChange","openUploadModalAction","handleClickFilePickerButton","filesLength","_editedFileData","closeUploadModal","setFields","updateDataToFileName","datas","fileData","removeFile","valueToRemove","md5Hash","dataToUrlPath","editFile","readWebApiFile","dataToUrl","getName","getTypeOrDefault","getSize","FileList","onUseButtonClicked","isUpload","currentNumberOfFiles","isNotSupportedType","fileObjects","isTooBig","limitSize","tooMuchFiles","totalNumberOfFiles","useNamedUploads","UploadedFile","dataPromise","OCTET_STREAM_EXTENSION_MAP","md","markdown","PREVIEW_MIME_MAP","SAFE_TEXT_EXTENSIONS","ROTATION_90","PI","CROPPER_DEFAULT_CONFIG","previewClass","cropperContainer","crop","viewMode","dragMode","center","checkCrossOrigin","background","guides","autoCrop","autoCropArea","dragDrop","movable","zoomable","zoomOnWheel","zoomOnTouch","cropBoxMovable","cropBoxResizable","toggleDragModeOnDblclick","rotateable","minContainerWidth","minContainerHeight","minCropBoxWidth","minCropBoxHeight","build","built","dragStart","dragMove","zoomin","zoomout","aspectRatio","NaN","fullType","ext","previewUrl","_buildPreviewUrl","_currentBlobUrl","revokeObjectURL","isImageAvailable","isFileTooBig","croppingModeActive","numberToHumanSize","cropper","toggleCropper","copperConfiguration","Cropper","getCroppedImage","getCroppedCanvas","rotateLeftAction","rotateRightAction","toggleCropperAction","cropAction","_setImage","_rotate","clockwise","translation","translate","rotate","drawImage","hasLimitedFilesExtensions","_hasLimitedFilesExtensions","addExtension","extension","extensionWithDot","removeExtension","jsonToEdit","normalizeDataForEmbedded","retrieveValuesFromPath","serializeQueryParameters","pathAndQueryString","pathname","enableLocalFilterAndHighlighter","searchToEdit","referenceFieldAttributeName","isDropdownDisabled","information","possibleValues","dynamicValues","currentlyAvailableMappingValues","currentValues","currentValuesDisabled","savedLabels","valueDisabled","getDateFormattedOptionLabel","referenceOptions","referenceValues","referenceValue","referenceValueLabel","referenceDefaultOption","saveSelectedLabels","searchIfReference","updateSearchQuery","isLoadingOptions","CurrentRecordTemplatingHelper","isUsingTemplatingKey","hasLoadedBelongsTo","loadBelongsToForConditions","jsonResponse","isBadData","WorkspaceComponentOptionsDropdownNestedDocument","collectionOptions","fieldOptions","fieldsFiltered","dynamicSelectedMode","isDynamicSimpleValid","apiResponseString","apiResponse","apiResponseRows","nbRows","isCorrectlyFormated","isPathValid","isStatusOk","apiEndpointInputState","verify","selectMode","newMode","initValues","selectDynamicMode","clearNonExistingValues","valuesToRemove","_getCoordinate","xValue","yValue","onReferenceModelChange","priceEditorId","prefixId","suffixId","hasPrefix","hasSuffix","handlePrefixSuffixChange","suffixElement","prefixElement","newPrice","isCents","computeEditablePrice","hasFocus","setLocale","WidgetsEditPriceEditorWidgetSettingsComponent","setValueToEditor","setContents","convert","YouTubeFormat","requestVideoUrl","youTubeUrlCallback","showYouTubeModal","delay","maxStack","quillHistoryStackUndo","quillHistoryStackRedo","handleYouTubeConfirm","handleYouTubeCancel","createValue","WidgetsEditRichTextWidgetLayoutComponent","stringValue","part","WidgetsValueCopier","hasCopiableValue","copiableValue","WidgetLayoutEnum","currentDisplayWidget","currentEditWidget","_isBeingInitialized","DisplayRow","workspaceAutogeneratorService","getBestDemoCollection","templateWorkspaces","meetsTemplateRequirement","createWorkspaceFromTemplate","handleSelectTemplate","handleDidInsertPreview","templateWorkspace","getEntryPointComponentFromWorkspace","selectedTemplateWorkspace","componentToPrefill","normalWidth","normalHeight","handleSkip","isDisplayingSurvey","trackAutogeneratedWorkspacesSkipped","surveyResponse","trackAutogeneratedWorkspacesSurveyAnswered","createWorkspaceOrClose","handleBackSurvey","trackAutogeneratedWorkspacesSurveySkipped","createAutogeneratedWorkspace","isFirstWorkspace","createEmptyWorkspace","onCloseAutogeneration","surveyChoices","isValidSurvey","selectedSurveyChoice","describedPain","handleSelectSurveyChoice","surveyChoice","handleSubmitSurvey","onSubmitSurvey","initPositionAndSize","cssVarNamePrefix","containerHeight","containerWidth","Source","Analytics","Advanced","isEditDisabled","isDisplayingConfigurationPanel","getSelectedComponent","workspaceWidth","workspaceHeight","numberOfColumns","scaleStep","computeScale","updateScaleCssProperty","handleZoomReset","ensureScaleLimits","minScale","maxScale","lastChild","setSelectedComponent","handleDragStop","isFirstTimeInTheRightDraggingZone","shouldScroll","handleMouseEnterScrollZone","side","wrapper","isNewComponent","factor","handleMouseLeaveScrollZone","stepX","stepY","paintTimer","scrollBy","waitForScrollEnd","startingTime","scaleBeforeEditMode","editModeScale","currentWorkspace","workspaceGridId","numberOfRows","gridstackOptions","dragInStart","dragInStop","hasAttribute","alwaysShowResizeHandle","dragIn","autoHide","selectedComponent","isDragDisabled","isImpacted","fixCollision","shouldResetWrapperPosition","setWorkspaceSize","resetWrapperScrollPosition","workspaceGridElement","moveWorkspaceComponentFromContainer","newComponentNumber","getNumberOfComponentsFromType","newComponent","componentsToSave","trackWorkspaceComponentAdded","changedComponents","componentsToUpdate","isCollisionFixed","fixComponentsCollision","srcImage","containerName","WorkspaceTabFragment","setIsImpacted","impactedComponent","isHoveredInConfirmationPanel","isDelete","onLeaveAction","boundOnKeyUp","attachClickHandler","attachEscapeHandler","RedirectionLoop","unknownLayoutError","makeUnknownLayoutError","googleAuthorization","sendGoogleTokenToIframeOrReturnIt","loginWithGoogle","transitionPostLoginToLastVisitedOrganizationProjects","renderingUrl","detectLiveDemoUrl","livedemo_name","oidcDeviceFlow","enforceWhiteLabel","allOrganizations","searchedOrganization","organization_name","navigationItems","navItems","replaceOrganizationNameInPath","OrganizationSettingsOverviewRoute","sortedOwners","selected","selectable","selectedCount","line","hasSelection","confirmRemoval","displayRemoveModal","hideRemoveModal","lineCount","openAddModal","displayAddModal","closeAddModal","OrganizationSettingsOwnershipRoute","refreshModel","OrganizationSettingsSecurityChooseConfigurationRoute","deleteConfiguration","showHideConfiguration","hideEditConfiguration","editConfigurationText","samlConfigurationError","isSsoCorrectlyConfigured","samlConfigurationType","hasEnvironmentsIncompatible","environmentsIncompatible","OrganizationSettingsSecurityManualInputConfigurationRoute","OrganizationSettingsSecurityXmlConfigurationRoute","disableNotificationBar","noEnvsAvailable","setupCollaborationNotification","watchCollaborationNotification","hasCollaborationNotification","environmentProduction","isRenderingLiveDemo","paramsFor","getTeamNameToRedirectTo","ProjectIndexRoute","isProjectSetup","_getEnvironmentNameToRedirectTo","redirectToEnvironmentsSettings","canAccessSettings","integrationController","deploymentController","AbstractOnboardingStepsController","unsubscribeEvent","subscriptionWatchEnvironmentUpdateEnded","environmentType","redirectToData","beforeNext","_handleDeploymentEnded","tryBeforeNext","trackDeploymentApplicationURLSubmitted","validateUrl","moreHttpsInformation","checkEnvironmentName","isCheckingEnvironmentName","isEnvironmentNameAvailable","names","trackDeploymentEnvironmentNameSubmitted","beforeNextDatabaseCredentials","onboardingInformation","trackDeploymentDatabaseCredentialsSubmitted","formatForSegment","trackDeploymentDatabaseCredentialsSkipped","watchEnvironmentUpdateEnded","userFeedBackToastrId","databaseConnectionString","connectionURIEncoded","allEnvironmentsSupportsNoApplicationUrl","allEnvironmentsAreFeatureCompatible","lianaVersion","environnementId","generateDeploymentFlow","_fetchEnvironnementSecretKey","projectDatabaseDialect","getProjectDatabaseDialect","isMultipleDatabasesProject","MULTIPLE_DATABASES","trackDeploymentFlowStarted","isExiting","buildINeedHelpBubble","buildIDonTKnowWhereToFindThatURL","APPLICATION_URL_STEP_NAME","buildIDonTHaveALocalApp","buildIWantToInstallForestAdminLocally","buildIGotAnErrorRunningThisCommand","buildIDontKnowHowToSetupMyDatabase","buildIWantToIpWhitelist","CREDENTIALS_STEP_NAME","START_YOUR_SERVER_STEP_NAME","INSTALL_FOREST_PACKAGE_STEP_NAME","INITIALIZE_FOREST_ADMIN_STEP_NAME","ENVIRONMENT_VARIABLES_STEP_NAME","buildStepsFromArray","arrayOfOrderedSteps","createStepApplicationUrl","beforeNextApplicationUrl","shouldUseSpecialHost","platform","createStepDatasourceCredentials","createStepDatasourceCredentialsCloud","isNotForestProductionServer","mongoDbDefaultCredentials","defaultCloudDatabaseCredentials","objectMap","mariaDbMinimalFlow","mariaDbDefaultFlow","microsoftSqlMinimalFlow","microsoftSqlDefaultFlow","isSuggestNewOne","mongoAtlasDefaultCredentials","authSource","mongoAtlasMinimalFlow","ATLAS_CONNECTION_URI_EXAMPLE","mongoAtlasDefaultFlow","mongoAtlasCredentialsValidator","errorsDisplayed","mongoDbMinimalFlow","mongoDbDefaultFlow","mySqlMinimalFlow","mySqlDefaultFlow","postgresSqlMinimalFlow","postgresSqlDefaultFlow","supabaseDefaultCredentials","DATABASE_DEFAULT_VALUES","postgres","supabaseMinimalFlow","supabaseDefaultFlow","ENVIRONMENT_NAME_STEP_NAME","beforeNextEnvironmentName","generationParams","generateAuthSecret","generateApplicationUrl","generateDevVariables","generateNodeVariables","createDeploymentStepApplicationUrl","deploymentType","createDeploymentStepSetEnvironmentVariablesAndRestartYourServer","makeGenerateEnvironmentVariables","banner","createDeploymentStepEnvironmentName","generateEnvironmentVariables","generateHelpCentersContent","createInAppSteps","createMicroserviceSteps","generateMicroServiceEnvironmentVariables","environmentVariables","WAITING_STEP_NAME","createWaitingStep","creds","createCloudSteps","flowCredentials","genericCloudHelpCentersContent","mariaDbCloudFlow","microsoftSqlCloudFlow","mySqlCloudFlow","createStepStartYourServerSimple","generateInstructions","bubbleText","language","isCommandLine","createStepStartYourServerMultiple","generateSnippets","generateTitle","snippets","additionalVariables","createStepForestAdminPackage","installPackageInstruction","onInstallationModeSelected","beforeNextInstallation","createStepInitializeForestAdmin","generatedInitializeCodes","programmingLanguage","onProgrammingLanguageSelected","createStepConfigureEnvironmentVariables","createNodeJSIntegrationSteps","initializeCode","initializeForestAdminHelpBubbleContent","createNodeJSFlowBase","frameworkName","InApp","upperCaseFrameworkName","sequelize","javascript","getJsSequelizeCode","typescript","getTsSequelizeCode","mongoose","getJsMongooseCode","getTsMongooseCode","sql","getJsSQLCode","getTsSQLCode","prisma","typeORM","koaSequelizeFlow","koaMongooseFlow","koaSqlFlow","koaPrismaFlow","koaTypeORMFlow","createNodeJSFlow","expressSequelizeFlow","expressMongooseFlow","expressSqlFlow","expressPrismaFlow","expressTypeORMFlow","fastifySequelizeFlow","fastifyMongooseFlow","fastifySqlFlow","fastifyPrismaFlow","fastifyTypeORMFlow","nestJsSequelizeFlow","nestJsMongooseFlow","nestJsSqlFlow","nestPrismaFlow","nestTypeORMFlow","stepApplicationUrl","stepAddGem","stepSetupEnvVariables","stepStartYourServer","generateStartYourServerInstructions","currentHost","flows","mariaDbFlow","createForestCLIIntegrationSteps","microsoftSqlFlow","mongoDbFlow","mySqlFlow","postgresSqlFlow","supabaseFlow","mongoAtlasFlow","extraCommandLumberjacks","dockerCliForestCommand","extraCommandEnvVar","generateInstallToolbeltInstructions","createStepInstallCLI","highlightMultiple","generateCreateProjectToolbeltCode","isRelational","booleanOptionsGenerate","stringifiedOptions","stringifiedBooleanOptions","terminalTechnology","generateCreateProjectToolbeltOsSelector","onTerminalTechnologySelected","generateCreateProjectToolbeltLanguageSelector","createStepGenerateYourApp","tabsSelector","credentialsCustomValidator","unsubscribeEvents","subscriptionWatchLumberError","subscriptionWatchLumberSucceed","isCloudFlow","showStepCounter","trackInitializationNextStepTriggered","resetCredentialsForm","trackApplicationURLSubmitted","REGEX_HTTPS_OR_LOCALHOST_URL","trackDatabaseCredentialsSubmitted","trackDatabaseCredentialsSkipped","createFullHostedAgent","trackInitializationCodeLanguageChanged","watchLumberSucceed","onLumberSucceed","watchLumberEncounteredError","onLumberEncounteredError","onEnded","onFullHostedEventFail","subscribeToDeployFailedEvent","displayToastersOnRestartEvents","mainPanel","onboardingFlow","preventLeaving","isHardReload","isAllowedHardReloadTarget","HOSTING_ROUTE","DEPLOYMENT_ROUTE","REVIEW_ROUTE","fetchEnvironmentSecretKey","isIntegrationWaitingTarget","toName","INTEGRATION_ROUTE","ProjectProjectSettingsBillingEditCompanyController","ProjectProjectSettingsBillingEditPaymentController","beginningOfTheMonth","monthlyFeeValue","estimatedMonthlyPrice","totalUsersValue","usersCount","activitiesValues","activitiesThisMonth","detailsOptions","monthlyFee","paymentFrequency","totalUsers","activities","premiumFeatures","premiumFeatureText","goToManageYourPlan","realPlan","goToBillingPage","chosenPlan","chosenCommitment","editPaymentDetails","showCardForm","postUpgradeUrl","requestedFeature","requestedFeatureParams","requestedFeatureCallbackRoute","redirectToPricing","stripeService","generateStripeContext","selectedPlan","menuItems","isSecurityEnabled","closeProjectSettings","lastRenderingPage","editing_datasource_name","environmentsWithoutRolesEnabled","environmentsWithoutEnabledRoles","newEnvironmentName","editing_environment_name","hasProduction","hasRemoteEnvironment","devEnvironment","remoteEnvironmentLimit","maxRemoteEnvironments","hasReachedMaxRemoteEnvironments","testEnvironmentDocLink","agentType","environmentRemote","chooseNewName","currentNames","branch","searchBranch","branchesSearched","branches","setFromCookie","shouldDisplayRolesIssue","secretResponse","branchName","getDevEnvSecretKey","reloadEnvAndBranches","ProjectProjectSettingsEnvironmentsIndexRoute","isDevelopmentVisible","compareStagePriority","timezonesList","localesList","personalOrganization","teamOrganizations","canTransferOwnership","setProjectTimezone","newOrganization","definePersonalOrganization","checkProjectExistenceAction","hasACustomDomain","_destroyCustomDomain","openCustomDomainPanel","newDomain","closeCustomDomainPanel","featureAccessAndPreviewRedirection","existingRolesNames","existingRoles","copyPermissionsFromOptions","EVERYTHING_ALLOWED","NOTHING_ALLOWED","numberOfSelectedUsers","isSelectedForThisNewRole","onChangeCopyPermissionsFrom","initializePermissionsFrom","roleToCopyFrom","everythingAllowed","goToRolesList","toggleUserSelection","removeRole","isAssignedToInvitations","invitations","warningDescription","secondLastURLParamsIndex","handleDeleteRoleError","closeRoleCannotBeDeletedModal","RolePermissionsDetailsController","trackDefaultCollectionPermissionsEdited","ProjectProjectSettingsRolesDetailsEnvironmentPermissionsCollectionsRoute","RolePermissionsDetailsRoute","environmentsSorting","ProjectProjectSettingsRolesDetailsEnvironmentPermissionsIndexRoute","parentModel","role_environment_name","trackDefaultActionPermissionsEdited","roleFeature","targetEnvironment","isFirstKeyInDescendingOrder","roleFound","role_name","isRolesFeatureAvailable","hasMoreThanOneRemoteEnvironment","isCopyRolesPermissionsAllowed","roleLimit","hasReachedMaxRoles","transitionToRoleDetails","searchRole","rolesSearched","comeFrom","hasOnlyDevelopmentEnvironment","isIpWhitelistAvailable","isTwoFactorAvailable","isUserProvisioningAvailable","isAutoLogoutEnabled","isIpWhitelistEnabled","isTwoFactorEnabled","didTransition","allowedSettingPages","firstAvailableSettingPage","ipWhitelistRules","useAutoLogout","inactiveDurationBeforeLogout","hasNotRuleFieldsFilled","ruleName","ruleValue","hasEnvironmentsWithOidc","OpenIdConnect","environmentsSelected","ipUtils","checkRule","deleteRule","ruleToDelete","toggleTwoFactorAuthentication","_environments","currentEnvironnement","onAutoLogoutEnabledChange","useIpWhitelist","_isCurrentInWhitelist","myIp","_saveIpWhitelistChanges","_saveTwoFactorChanges","reloadProject","contain","environmentsSaving","isIpWhitelistAccessible","myIpRecord","createTeam","currentUserTeam","teamLimit","hasReachedMaxTeams","onTeamClick","user_id","extractUserIds","userInvitation","extractInvitationIds","invitationId","onModelReceived","availableRoles","userLimit","maxUsers","hasReachedMaxUsers","totalProjectUsers","statistics","numberUsers","numberInvitations","allItemsCount","isUserProvisioningDisablingEdition","createBulkInvitations","bulkCreate","trackInvitationFormCompleted","closeInvitationModal","invitationIds","batchDeleteInvitations","currentPageItems","openInvitationModal","displayInvitationModal","closeEditRoleModal","displayEditRoleModal","closeAddTagModal","displayAddTagModal","closeRemoveTagsModal","displayRemoveTagsModal","showEditRole","selectedUserInvitations","showAddTag","showRemoveTags","trackInvitationLinkCopied","openExportModal","closeExportModal","getTimezone","A","showScimBanner","RestrictedSectionAccessRoute","ApprovalFilter","isHistoryList","subTitle","approvalsCount","subtitleText","beyondLastHistoryPage","emptyStateSubtitle","approvalUIService","APPROVALS_PER_PAGE","approvalsPerPage","isBeingPerformed","back","Requester","creationDate","closingDate","requesters","availableRequesters","internalId","creationDateStart","creationDateEnd","closingDateStart","closingDateEnd","savingFilters","resetFilters","newFilters","actionsFilter","teamsFilter","requestersFilter","creationDateFilter","closingDateFilter","withSearchInput","availableActionNames","triggerEventChatSendMessage","resolveApprovalWarning","APPROVAL_STATUS_TO_STATES","Approved","Failed","InProgress","approval_id","approvalId","Approval","boxShadow","apiBaseUrl","goToRendering","restrictedFeature","handleOpenGlobalSearchModal","isModalSearchDisplayed","isSettingsRoute","settingsDisplayName","settingsRoute","getSettingsRoute","marginTopClass","displayUpgradePopup","isProjectLimitationReached","isProjectSettingsRoute","upgradePopupTitle","upgradePopupBody","blockedElement","collectionsSorted","isDataRoute","hideCollectionsNavigation","authenticatedToLiana","otherProjects","editModeClass","hideContentWhileLoading","isComputingRendering","hadNoCollections","incrementProperty","showLoginPopup","hideLoginPopup","loginDisabled","hideProjectSettingsMenu","toggleProjectSettingsMenu","hideUserSettingsMenu","toggleUserSettingsMenu","hideNavigationMenu","toggleNavigationMenu","initEventListeners","destroyEventListeners","KEY_K","onDarkModeEnabledChange","defaults","global","defaultFontColor","handleCreateFirstDashboard","ProjectRenderingDashboardPreviewController","ProjectRenderingDashboardRoute","ProjectRenderingDashboardViewChartCreateController","ChartController","ProjectRenderingDashboardViewChartEditController","SmartChartEditorRoute","onCloseNavigationBar","isFirstDashboard","firstDashboard","chartsSorted","goToFirstDashboard","addChart","editChart","dashboardsSorted","premiumMultipleDashboards","trackDashboard","errorContext","ProjectRenderingDataCollectionController","collectionListInteractionId","fetchRecordsAfterUpdateIfNecessary","sortField","defaultSort","hasFilterableFields","isBrowsingListIndex","currentSegment","hasBatchDelete","buttonExportTitle","cannotActivateNewExport","ImportCsv","buttonCreateTitle","canCreateSegment","shouldDisplayActionsButton","canExport","premiumLiveQuery","isRestrictedToSegment","isFilterButtonDisplayed","visibleSegments","fakeTransition","paramNames","downloadCurrentRecords","export","triggerSearch","outdatedLianaToastr","toggleCustomActionsMenu","showCustomActionsMenu","hideCustomActionsMenu","handleSelectSegment","isAny","removeListeners","refreshAllRecords","initializeListeners","hasEventListeners","AccessCollectionForbidden","subscribeToRouteWillChange","attemptActionIntent","isForbidden","transitionToFirstSegment","unsubscribeToRouteWillChange","cancelExistingQueries","hasSubscribedToRouteWillChange","fromRouteInfo","toRouteInfo","fromCollectionId","toCollectionId","ProjectRenderingDataCollectionListRoute","isDetailsSelected","relatedDataRowCreates","relatedDataRowCreatesToDisplay","firstRelatedData","linkModel","menuItem","tabName","panelTitle","hideRowCreateSettingsMenuEditMode","showRowCreate","hideRowCreate","toggleShowRowCreateSettingsMenu","hideRowCreateSettingsMenu","RenderingRoute","panelSubtitle","ViewEditRelationshipCreateRoute","field_id","polymorphicModelName","create_collection_id","CreateRecordForbidden","reorderRows","newOrderRowCreates","newNestedRecord","transitionToAfterAction","handleDeleteEmbeddedDocuments","rowId","row_create_id","transitionToCreationForm","addToRecords","ProjectRenderingDataCollectionListViewCreateViewHasManyAddRoute","shouldRecordBeDeleted","actionsEnabled","showCreateActionInActionMenu","removeAssociations","associatedRecord","ProjectRenderingDataCollectionListViewEditAnalyticsViewChartCreateController","analyticsModel","ProjectRenderingDataCollectionListViewEditAnalyticsViewChartEditController","fetchStats","goToRouteDetails","noteTitle","note","handleCloseNote","modelParent","notes","newNote","setNoteTitle","createMessageAction","isNewNote","currentController","isSummaryView","isIntegrationDetails","detailsRoutes","detailsLink","listenToRecordDeletedEvent","viewEditModel","integrationCollection","objectId","freshRecord","getActivityLogQuery","updateQueryForPagination","activityLogQuery","currentActivityLogPage","enableDelete","isActivityLogSelected","isIntegrationSelected","enableDuplicate","showViewEdit","showRowEdit","hideRowEdit","toggleShowRowEditSettingsMenu","hideRowEditSettingsMenu","refreshRecord","applyChanges","RSVP","resetRecordReadMode","hideField","showField","displayedEditorColumns","displayedColumns","recordLinkOfFormToDisplay","titleOfFormToDisplay","getRecordIdentifier","relationshipsDocumentationLink","initializeExplorer","setupFirstDisplayedColumns","setupEditorColumnsFromReadColumns","_addReadRelatedDataColumn","setupFirstDisplayedEditorColumns","isTransitioningColumnType","_addEditorRelatedDataColumn","hasRelatedDataVisible","hasSingleRelatedData","relatedDataRowsVisible","relatedDataRows","addEditorRecordsColumn","isGenericFilter","hasAlreadyThisColumnOpened","editorColumn","hasRelatedData","hasSingleRelatedDataVisible","_flushColumnsAfterIndex","_flushEditorColumnsAfterIndex","_flushReadColumnsAfterIndex","_addRelatedDataColumn","columnsPropertyName","extraParameters","addReadRecordsColumn","_addRecordsColumn","recordsColumnParameters","canAddColumn","parentColumnIndex","addReadRelatedDataColumn","onNameClick","displayRecordDetails","hideRecordDetails","columnIndex","_handleRowHiding","_openNewColumnsIfNecessary","goToRecordDetails","switchToEditMode","recordEdited","lastEditorColumn","shouldDisplayNextColumn","lastReadColumn","lastValidEditorColumnIndex","mustDeleteNextColumns","firstInvalidReadColumnIndex","mustBeDeleted","lastValidReadColumn","recordLink","fieldsIntegrationSimple","ProjectRenderingDataCollectionListViewEditIntegrationRoute","recordChild","_transitionToPreviousPage","_transitionToUpdatedParent","fromController","listController","_retrieveParentRecord","relName","_authenticationSucceeded","paramsRouteCollection","collectionForList","AccessRecordForbidden","modelHash","canBrowse","afterSave","redirectToUpdatedRecord","hasDisplayedFieldChanged","updateLastHistoryItemDisplayName","breadCrumbItems","displayHeaderButtons","customActionsOrdered","contextForRecords","nestedRecords","recordIndex","record_index","innerRecord","cancelTransition","handleRowClick","columnsState","row_edit_id","transitionToEditForm","ProjectRenderingDataCollectionListViewEditViewHasManyAddRoute","handleRecordRelationshipEdited","isMixpanelIntegration","customActionsAvailable","canEditRelationshipField","updateEnabled","downloadRecords","sentError","enableActionCreateOrUpdate","canCreateOrUpdateModelCustomizations","isNoCodeAction","modelCustomizations","isNoCodeActionDisabled","noCodeActions","nocode","isAnyActionDefined","showCardCreateNewNoCodeAction","showNoActionDefinedYet","modelCustomizationUIService","saveModelCustomization","customization","showSegmentSelection","currentAction","isDisplayNameEditMode","smartActionPermissionRouteParams","segmentsHaveDifferentConnectionNames","segmentsWithConnection","firstConnectionName","segmentConnectionNameWarningMessage","connectionMap","connName","segmentNames","buttonTypeOptions","predefinedButtonTypeValues","action_name","showHeaderActions","collectionBreadcrumb","settingsBreadcrumb","isScopesFeatureCompatible","sortedFields","fieldsSections","Fields","normalFields","Relationships","relationshipFields","hasWidgetSettings","displayEditWidgetSettings","hasEditSettings","displayDisplayWidgetSettings","hasDisplaySettings","widgetsForBetaSelect","openEditWidgetSettings","hideWidgetSettings","showWidgetsSection","hasWidgetsAvailable","openDisplayWidgetSettingsOnlyIfWidgetHasSettings","isAlterValuesAvailable","isConditionalFormattingAvailable","isAvailableForWidget","isAvailableForType","mappingValuesDuplicated","valuesEncountered","isMappingValueValid","isFilterActivated","isFilterSwitchDisabled","showToaster","resetEditMode","saveField","setDisplayNameEditMode","setDescriptionEditMode","openDisplayWidgetSettings","firstField","fieldsAttribute","errorMessages","paramCollectionId","closeCollectionSettings","removeEditModeDeactivatedListener","lastRenderingRouteBeforeSettings","getLastRenderingRouteBeforeCollectionSettings","segmentFound","firstSegment","savedSmartViews","removeSmartView","viewFound","view_name","customWorkflow","workflow_name","orderedWorkflows","hasVisibleItems","numberOfCollectionsHidden","shouldDisplayTemplate","ProjectRenderingDataRoute","ProjectRenderingRoute","getApplicationInstance","userTeams","userTeam","UserNotBelongingToTeamError","teamNameToRedirectTo","loadTeam","lastVisitedTeamStorageKey","setCurrentUserPermissionLevelAndTeam","setCurrentUserTags","RsvpPromise","thirdParty","setupUserAndRendering","setCurrentUserIsLayoutEditorEnabled","fetchLayoutChangesCounts","isSecureEndpoint","okToExitIfActionPanelOpen","ev","okToExit","cleanRenderingContext","stopDisplayingToastersOnEnvironmentEvents","isExitingRendering","handledPreventLeaving","setFavicon","displayToastersOnEnvironmentEvents","agentNotificationsFeature","eventListener","EventListener","premiumCollaboration","disableLoading","namedRouteParams","getNamedRouteParams","is403Error","saveDirtyUsers","saveDirtyTeams","saveDirtyEnvironments","autoLogout","setupAutoLogout","renderingInfo","setupSession","transitionIfNotAuthorized","cleanExistingCollections","setLayoutChangesCount","getLayoutChangesCount","watchLayoutChangesCount","getAndSetLayoutChanges","workspacesSorted","hasWorkspaces","inBuilderMode","isAutogenerationDisplayed","trackAutogeneratedWorkspaceButtonClicked","handleDisplayAutogeneration","handleCloseAutogeneration","firstWorkspace","ProjectRenderingWorkspacesViewErrorRoute","RecordNotFoundError","ProjectRenderingWorkspacesViewBuilderConfigureComponentRoute","AbstractWorkspaceConfigureComponentRoute","exitBuilder","KEY_C","copiedComponent","KEY_V","copyingComponentState","lastCopiedText","readTextFromClipboard","workspaceComponentName","regularTextPaste","removeEventListeners","foundWorkspace","isCollection","trackWorkspace","endRouteName","transitionToBuilder","duplicateWorkspace","viewRoute","redirectToViewRoute","requireAuthenticationAndRedirectToCurrentUrl","defaultRendering","defaultTeam","toggleSegmentTrackingIfNeeded","clearRenderingContext","otherParams","sectionsDecoratedOrderableVisible","sectionsNonDraggable","thirdPartyServicesTrackingDisabled","disable","canCreateProject","postLogin","errorName","errorDestinationUrl","authenticateViaSaml","UnknownSamlAuthenticationError","relayState","RelayState","UnknownSamlCallbackParseQueryParamsError","decodeURI","tokenId","token_id","connectedWithSso","UserSettingsController","lastRouteBeforeAccountSettings","getLastRouteBeforeAccountSettings","transitsToHistoryRoute","UserSettingsTwoFactorAuthenticationInstructionsController","hasPassword","twoFactorAuthenticationActive","transitionToSetup","registration","registerRecoveryCodes","createQRCode","twoFactorAuthenticationSecret","actionApprovalRefreshed","canApprove","statusAlreadyUpdated","updateToReviewCount","newMessage","resolveApproval","markAsFailed","trackResolveAction","updateWarningCount","getFirstErrorData","updateToReviewCountOnError","getNextId","timingInterface","timingRequest","trySaveActivityLog","trackFirstActivity","track","firstActivityAt","deploymentInformation","deployedAt","trackEnvironmentProductionDeployed","initializedAt","trackOnboardingStepsCompleted","retryAmount","retryTimeout","wrappedError","NoMoreRetryFailedToSaveActivityLogError","activityId","unknownError","UnknownFailedToSaveActivityLogError","activityType","activityLabel","activityAction","AnimationTransitionService","easeInQuad","changeInValue","easeInOutQuad","setNextValue","startTime","dateNow","ApolloService","subscriptionURL","httpLink","wsLink","WebSocketLink","reconnect","webSocketImpl","WebSocket","httpLinkWithAuth","setContext","mainDefinition","getMainDefinition","noHeaders","agentHealthcheck","checkError","loader","Dataloader","queryAssignees","maxBatchSize","queryResults","storedAssignee","fullUrl","fullUrlWithTimezone","addTimeZone","optionsWithHeaders","authToken","parsedUrl","AuthenticationRedirectionService","setCurrentUrlRedirectTarget","setRedirectTarget","applicationStorageKey","SESSION_REDIRECT_TARGET_KEY","getRedirectTarget","deleteRedirectAccess","SESSION_REDIRECT_ACCESS_KEY","getRedirectAccess","setRedirectAccess","redirectAccess","LAST_ACTIVITY_TIMESTAMP_KEY","resetTimer","resetTimerImplementation","setupTimeoutDuration","setupTimerReset","setupCheckForTimeout","stopAutoLogout","pollId","checkForTimeoutAndLogoutIfNeeded","durationSinceLastActivity","getDurationSinceLastActivity","getLastActivityTimestamp","lastActivityTimestamp","lastActivityTime","currentTime","AwsCodeDownloaderService","_cache","downloadWithoutCache","trackSmartViewChartDownloaded","fetchFile","hashSettled","isAWSError","markCodeAsNotDirty","migrate","ViewListModel","trackSmartViewDownloaded","smartViewId","trackSmartChartDownloaded","smartChartId","smartChartName","smartViewCodeMigrator","removeAllDeprecations","AwsCodeUploaderService","WorkspaceComponentOptionsSmartNestedDocument","viewEditId","viewListName","codeOrEmpty","uploader","s3UploaderFactory","responseHeaders","uploadedURL","endPoint","upload","_getUploaderParameters","_uploadTemplate","_upload","_uploadComponent","_uploadStyle","isChartModel","shouldUpdate","templateVersion","componentVersion","updateVersionIfNecessary","styleVersion","getTriggerSmartActionEventName","interactionId","getDeleteRecordsEventName","getRefreshEventName","getExportEventName","getSmartActionTriggeredEventName","getInteractionIdForCollection","getRefreshAllInteractionIds","interactionIds","addOrRemoveListener","eventBusCallback","getEventNameFromInteractionId","triggerEvent","smartActionTriggered","modelToListen","modelToRefresh","updateOptions","defaultPaymentMethodId","confirmPaymentIntent","returnUrl","saveBilling","upgradeOptions","BillingValidationError","isUpgradingFromFreePlan","newPaymentMethodId","updatePaymentMethod","createSubscription","trackPlanUpgradeEvents","reloadAfterUpgrade","trackUpgradePlan","trackCreditCardFormCompleted","planName","planId","trackError","transformApiError","UnableToSaveBillingError","confirmPaymentSetupIntent","UnableToConfirmPaymentIntentError","newSubscription","UnableToCreateSubscriptionError","defaultMessage","ErrorConstructor","initializationPromise","initializeAPI","loadExternalJavascript","googlePlaces","apiToken","googleService","google","maps","places","AutocompleteService","getPlacePredictions","predictions","PlacesServiceStatus","ZERO_RESULTS","OK","prediction","INVALID_REQUEST","OVER_QUERY_LIMIT","REQUEST_DENIED","UNKNOWN_ERROR","setParameters","getRelationshipParameters","HasManySortingOnReferences","recordsContextParameters","fieldsToFetch","additionalFilters","recordsPerPageLimit","fetchPromises","chunk","fetchChunkOfRecords","chunkIds","additionalFilter","recordsContextToFetch","isVisibleNow","columnSaved","excludeRecord","getRegistryName","registry","_componentToRegistryNameCache","iteration","updateRegistry","hasBeenUpdated","asyncFetchCodeFromAgent","createComponentFromCode","loadCodeFromAgent","SmartViewCodeMigratorBusinessService","migrateComputedImports","migrateRunImports","migrateComponentImport","migrateServiceImports","migrateJqueryImports","removeImportIfNotUsed","serviceName","isUsingService","isInjectingService","oldImport","newImport","handleSendAction","handleDeprecationError","deprecationLink","fullErrorMessage","shouldShowDeprecationToastr","modelId","trackDeprecationUsage","handleStringPrototypeExtensions","handleNativeComponentImports","nativeComponent","handleDeprecationsWithPlugins","astPlugins","createThisPropertyFallbackASTPlugin","createArgumentLessHelperParenLessInvocationASTPlugin","createLinkToPositionalArgumentsASTPlugin","createEmberComponentSendActionASTPlugin","createWithHelperASTPlugin","ast","plugin","transform","env","handleFunctionPrototypeExtensions","migrateOldEmberImports","migrateImplicitInjection","migrateReactViews","migrateComponents","migrator","migrateAngleBracketComponent","migrateMustacheComponent","migrateComponent","oldNameMustache","newNameMustache","getCodeMigrated","migrateRouteNames","isUsableHasMany","hasMeetRequiringBelongsTo","hasMeetRequiringHasMany","fieldIndex","getTemplateScoreForCollection","getFieldsCategoryWithScore","fieldScore","getScoreForCollection","actualScore","collectionScores","maxScore","fieldsConditions","metsCondition","fieldNameNormalized","normalizedFieldName","conditionIndex","fieldCondition","getBestDemoFields","fieldScores","bestDemoFields","candidateFieldScores","candidateFieldScore","getBestBelongsToField","scores","getBestHasManyField","getCollectionFromLinkedTo","generateChart","generatedComponentsName","baseChart","getComponentName","enumField","dateField","generateSearchOrCollectionComponent","collectionComponentId","revertField","sameNameComponents","generateComponents","subComponents","subComponent","belongsToField","generateJSONFromTemplate","templateConfiguration","belongsToFieldReferenceFields","hasManyField","WorkspaceAutogeneratedTemplatingHelper","workspaceAttributes","baseWorkspaceInfo","WorkspaceManagerBusinessService","isColliding","possibleCollidingComponent","collidingX","collidingEndsX","collidingY","collidingEndsY","getCollidingComponent","componentColliding","workspaceIsCreated","existingComponents","builderRoute","sameTypeComponents","extraSize","componentsToDelete","componentToDelete","componentsUsingDirectlyItsVisibility","filteredComponent","componentUsingDirectlyItsVisibility","trackWorkspaceComponentDeleted","getDeletedComponents","WorkspaceComponentOptionsTabsNestedDocument","originalState","existingTab","clearCollectionColumnsStateIfNeeded","deletedComponents","isChart","trackWorkspaceComponentEdited","innerComponent","_cloneComponentExcludingChildren","shouldResetDisplaySettings","componentToJSON","_duplicateContainerChildComponents","containerComponentWithoutChildren","containerComponentToDuplicate","newChildComponents","newInnerComponent","componentToDuplicate","containerDestination","getContainerFromComponent","containerSource","trackWorkspaceComponentDuplicated","newComponentName","trackAutogeneratedWorkspacesAdded","findComponentIdByNameInList","oldComponents","newComponents","getContainerComponentIdsFromDuplicatedComponents","containerComponentIds","handleDuplicateContainerComponent","containerComponent","duplicateAllComponents","oldWorkspace","newWorkspace","oldComponentIds","oldComponentIdToNewComponentMap","duplicatedComponents","newComponentRecord","componentToReplace","oldComponentId","extraArguments","buildSelectedValueContextFromQueryParameters","workspaceCollectionComponent","argsToRecordsContext","collectionPrimaryContextPropertiesInQueryParameters","recordsFromSegment","buildSelectedRecordsContextFromQueryParameters","buildDatePickerContextFromQueryParameters","formattedSelectedValue","buildCollectionContextFromQueryParameters","buildSearchContextFromQueryParameters","workspaceComponentTabs","Toggle","queryParamsPerComponent","componentsContextBuildPromise","buildSourceContextPromise","buildContextPromise","buildContextFromQueryParametersWithPrerequisites","buildContextFromQueryParameters","buildContextFromQueryParametersWithPrerequisitesIntern","queryParamName","jsonParseError","getNonEmbeddedSource","sourceComponentId","getLinkedEditActionComponent","checkRecordsInRecordsContext","areAllSelectedRecordsInRecordsContext","writeText","collectionEmberNamesToIds","registerModel","registerAdapter","registerSerializer","createModel","collectionCreator","createAdapter","createSerializer","findCollectionFromEmberName","CollectionRemoverService","removeModel","removeAdapter","removeSerializer","applicationOwner","currentRecordFromRoute","_currentRecord","relationshipsBinder","collectionsRemover","collectionsCreator","mockedAgentFeatureService","newRendering","collectionRemover","ContextMenuService","newSection","deploymentRequest","deploymentRequestRecord","useSecure","ExportSecure","UrlUtils","serializeContextGeneral","sessionToken","_model","is_personal","long_name","defineLastVisitedOrganization","lastOrgId","getLastVisitedOrganizationWithoutSso","lastOrganization","USER_PROPERTIES","userProperty","deprecationFunction","deprecate","since","available","_editMode","_tags","populate","currentUserData","currentUserModel","isUsingAnEnvironmentWithoutRoles","currentEnvironmentPermissions","currentEnvironmentRolePermissions","_canExecutePermissionOnCollection","rolePermission","isNotCustomDomain","whiteLabelPromise","whiteLabelModel","CIO_CDN_HOST","isInitialized","handleRouteChange","customerIoWriteKey","customerIoSiteId","loadSnippet","writeKey","siteId","windowRecord","existingAnalytics","analytics","invoked","methods","firstScript","insertBefore","_writeKey","_loadOptions","SNIPPET_VERSION","_cdn","anonymousInApp","cioanalytics","setupUser","first_name","last_name","created_at","project_id","applicationId","clientToken","allowedTracingUrls","site","sessionReplaySampleRate","trackViewsManually","defaultPrivacyLevel","useSecureSessionCookie","enableExperimentalFeatures","beforeSend","monitored","shouldIgnoreError","globalThis","DD_RUM","onRouteWillChange","flushStackedEvents","stackedErrors","stackedMessages","stackedActions","addAction","setUser","setupGlobalContext","addFeatureFlagEvaluation","featureKey","viewName","recognize","startView","handling_stack","DocumentService","commandId","showUI","documentationVersionFromAgentType","documentationLinks","home","v1","v2","cloud","documentationVersion","NodejsV2","contentType","Blob","createObjectURL","bubbles","cancelable","fileURL","windowMocked","getEnvironmentsWithoutEnabledRolesQuery","NetworkErrorTypeEnum","prefixErrorMessage","shouldNotDiplayErrorMessage","customResponse","errorDetails","suffixMessage","withErrorContext","flagAsMonitored","isFailedToFetchError","makeFailedToFetchError","getFailedToFetchType","NoConnection","RequestTimeout","matches","UnknownEmberDataFetchError","UnknownFailedToFetchLayoutError","UnknownInvalidJSONError","UnknownLayoutError","onLine","requestTimeout","ServerMisconfiguration","EventBusService","evented","STAGES","favicon","faviconSizePx","beginPath","moveTo","lineTo","closePath","fillStyle","faviconHref","getFaviconHref","FileSaverService","Session","routeOrCallback","intent","handleAuthentication","routeAfterAuthentication","ressourceTarget","routeAfterInvalidation","redirectToLogoutUrlIfNecessary","targetUrl","authorizationCode","triggerSignUpOnIframe","withoutTorii","hasUserBeenCreated","handleErrorNotification","triggerLoginOnIframe","AuthAlreadyInProgressError","UnknownGoogleSignupError","googleConfiguration","SIGN_IN_EVENT_NAME","SIGN_UP_EVENT_NAME","access_type","accessType","authorization","actionToSend","listenedAction","contentWindow","registerToNextMessageForAction","OurselfMessageGoogleAuthError","registrations","authenticateAndSendResponse","getGoogleCredentialsFromIframe","urlParams","MissingUrlParamsEventNameGoogleAuthError","MissingUrlParamsTokenGoogleAuthError","mergeAllowedByTag","sourceAccumulator","allowed","TEXT_OPTIONS","allowedTags","sanitizeText","sanitize","unsafe","HtmlSanitizerService","RICH_TEXT_OPTIONS","disallowedTagsMode","allowedSchemes","iframe","allowedSchemesByTag","transformTags","_tagName","attribs","isValidYouTubeEmbedUrl","frameborder","allowfullscreen","allow","referrerpolicy","sanitizeOptions","allowedClasses","HubspotLiveChatService","hubspotLiveChatUrl","HubSpotConversations","widgetOpen","liveChatScript","defer","jimoProjectId","jimo","JIMO_PROJECT_ID","setLastVisitedOrganizationId","LOCAL_LAST_ORGANIZATION_WITHOUT_SSO_ID_KEY","deleteLastVisitedOrganizationId","stringObject","parsedData","agentVersionsAlive","agentVersionsSupported","featureTables","minimalVersion","TimezoneRegion","SignWithGoogle","RelatedHasManyEditable","HasManyDeletion","IpWhitelist","DedicatedCountRequest","TwoFactorAuthentication","FilterTypeOrWithReferences","Scopes","Healthcheck","FilterRelatedData","UploadsWithFilename","InverseOfSupport","MultipleSortingFields","Capabilities","getLianaFeatureVersion","semver","gte","isLianaFeatureCompatible","lianaFeatureVersion","isFeatureAvailable","someEnvironmentsAreFeatureCompatible","isCapabilitiesAvailable","isOlderThanAgentVersions","agentVersions","lt","satisfies","RubyV2","PythonV2","PhpV2","convertPathToUrl","getSessionTokenFromApollo","tokenFromCookie","cookieName","authenticatedMap","_getCurrentSessionCookiePath","bindSessionInvalidatedEvent","cookiePath","expires","addCookiePathInLocalStorage","removeCookiePathInLocalStorage","sendSessionInvalidatedEventAndUnbind","localStorageName","getRenderingSessionsSavedInCookie","unbindSessionInvalidatedEvent","sendSessionInvalidatedEvent","retrieveRenderingsIfLocalStorageEmpty","cookieRenderingIds","renderingIds","valueOf","sessionInvalidatedEventListener","onSessionInvalidatedEvent","cookieRenderingIdentifiers","linksVersion","internalVersion","hasLink","authenticatedLianaLinks","getLink","setLink","linkData","incrementVersion","deleteLink","allLinks","is2FARequiredError","removeAuthentication","lianaSessionOidcLinks","addAuthentication","expiration","nextRefreshTimestampMs","refreshLeewayInSeconds","nextRefreshPlannedAt","expirationHandler","setTime","refreshAuthentication","lianaResponse","_requestLianaAuthentication","_requestServerAuthentication","authenticationResponse","checkedAgentError","UnknownCheckAgentError","FailedToFetchLianaSessionOidcError","UnauthorizedLianaSessionOidcError","responseBody","twoFactorError","TwoFactorLianaSessionOidcError","UnknownNot200ResponseLianaSessionOidcError","UnknownLianaSessionOidcError","oidcResponse","jsonOidcResponse","_callLianaCallback","FailedToFetchServerSessionOidcError","UnauthorizedServerSessionOidcError","UnknownServerSessionOidcError","callbackResponse","ForbiddenLianaSessionOidcError","authenticateAndGetTokenFromLiana","lianaLink","refreshPromise","authentication","_requestAuthentication","exp","headerName","_allowControlHeaders","_currentRenderingId","_loginDisabled","LocalStorageService","_currentLocale","setMomentLocale","newLocale","lang","IGNORED_REASONS","componentPath","lastError","LOGOUT_URL_KEY","animationData","loadAnimation","loop","autoplay","setSubframe","UpdateRecordActions","WebhookCustomActions","actionTypeFragment","codeSubmitResponse","codeSubmitResponseBody","numberOfChars","EventsEnum","PerformanceWarnerService","isAgentRequest","isGetRequest","isChartRequest","shouldCurrentRouteBeMonitored","blackListedRoute","requestPromise","shouldHandleRequest","shouldBlockFeature","newRequestId","startTimer","callbackFunctionOnCallEnded","callbackFunctionAfterDelay","AFFORDABLE_DELAY","configureToast","defaultToastConfig","onToastClosedByCustomer","onDocumentationRead","hasAlreadyReportedSlowness","onDelayReported","currentToastId","toastContent","toast","sendPerformanceEvent","PerformanceWarnerDisplayed","SLOWNESS_ALREADY_REPORTED","PerformanceWarnerReported","TOAST_ALREADY_CLOSED","PerformanceWarnerClosed","bodyInformation","trackPerformanceEvent","userPermissionLevel","PerformanceWarnerDocRead","TYPES_ORDER","plan1","plan2","getSortedPossibleUpgrades","userCount","possibleUpgrades","contentId","onPopupPositionSet","positionTop","positionRight","positionBottom","positionLeft","scrollableParent","scrollInitial","scrollEventListener","popupContainer","isPlanFreeAndUserIsNotAdmin","setProjectFeature","getProject","upgradePlan","trackUpgradeButtonClicked","getBaseFeatureParams","isPlanFree","hasPermissionLevelAdmin","QRCodeService","FIELDS_NOT_TO_PREFILL","filesContent","getFilesContent","attributeInfo","isFragment","attributeEmbedded","prefixKeyWithForest","removeIdFromEmbedded","embedded","embeddedElement","embeddedPrefixed","fileFields","FilePicker","fieldValues","fromEntries","INTERVAL_BETWEEN_LIST_AND_COUNT","intervalBetweenListAndCount","startTimeInterface","requestDuration","clientRecordFeatureService","registerPerformanceTracking","recordsListRetrieval","EndOfInterfaceLoading","trackListingActionAndPerformance","withFilters","trackActivityRead","trackAgentLatency","captureAgentLatency","layoutDuration","httpCode","DDSegmentIndex","hasUserRecoveryCodes","fetchNewUserRecoveryCodes","recovery_code","LAST_INSECURE_REDIRECTION","needsOrSupportsSecure","RedirectionService","needsSecure","shouldRedirect","lastRedirectionISO","lastRedirection","redirectToProtocol","wantSecure","isDisplayFieldId","RecordsManagerService","queryHasMany","collectionReferenced","useDedicatedCountRequest","RelationshipsBinderService","setRelationshipsFor","ref","isIntegrationSmartRelationship","applicationInstance","getModelClass","refModelName","clearTriggerCondition","clearApprovalRequiredCondition","clearUserApprovalCondition","loadHistory","addRouteToHistory","maxHistoryLength","shiftObject","newDisplayName","getModelNameIfNeededForViewEdit","getModelNameIfNeededForViewCreate","getModelNameIfNeeded","historyLength","isDuplicate","isGoingBack","saveHistory","sameAs","newHistoryItem","parsedHistory","sessionStorageKey","stringifiedHistory","historyRoute","GoogleAnalyticsEventsEnum","DeploymentEventsEnum","AutogeneratedWorkspaceEventsEnum","BillingEventsEnum","DefaultPermissionsEnum","CustomizationCenterEventsEnum","identifyUser","trackOnboardingEvent","additionalProperties","SignupFormCompleted","PhoneNumberProvided","OnboardingStepsCompleted","EnvironmentProductionAccessed","HelpBubbleOpened","UpgradePlan","UpgradeButtonClicked","CreditCardFormCompleted","HelpBubbleLinkClicked","InvitationFormCompleted","trackArchitectureChosen","architectureName","ArchitectureChosen","HostingChosen","trackSuggestIntegrationFlowStarted","SuggestIntegrationFlowStarted","trackWaitingListDatasourceSubscribed","WaitingListDatasourceSubscribed","NewIntegrationSuggested","stepNumber","InitializationNextStepTriggered","formattedCredentialsInfo","DatabaseCredentialsSubmitted","trackFreeTrialButtonClicked","FreeTrialButtonClicked","StartNoCredentialsInBrowserFlow","ApplicationURLSubmitted","DatabaseCredentialsSkipped","EnvironmentNameSubmitted","DeploymentFlowStarted","requestInformation","place","AuthenticationErrorEncountered","WorkspaceCreated","getContextVariable","newComponentType","WorkspaceComponentAdded","WorkspaceComponentDuplicated","WorkspaceComponentDeleted","WorkspaceComponentEdited","InitializationCodeLanguageChanged","Added","Skipped","SurveyAnswered","SurveySkipped","ButtonClicked","trackSmartViewSelectAllWithFalseArgument","SmartViewSelectAllWithFalseArgument","InvitationLinkCopied","trackNocodeActionCreated","NocodeActionCreated","CloudCustomizationMenuAccessed","DefaultActionPermissionsEdited","DefaultCollectionPermissionsEdited","DeprecationUsage","SmartViewDownloaded","SmartChartDownloaded","InboxCreated","InboxUpdated","InboxDeleted","InboxRecordAssigned","changedProps","AssistUserMappingConfigUpdated","ActionIntentExecuted","WorkflowCreated","Opened","trackCustomizationCenterFolderCreation","FolderCreation","trackCustomizationCenterSegmentCreation","SegmentCreation","trackCustomizationCenterActionCreation","ActionCreation","trackCustomizationCenterInboxCreation","InboxCreation","trackCustomizationCenterWorkspaceCreation","WorkspaceCreation","trackCustomizationCenterDashboardCreation","DashboardCreation","trackCustomizationCenterWorkflowCreation","WorkflowCreation","normalizeHeaders","currentHeaders","pathOrUrl","optionsWithQueryParams","shouldThrowIfResponseIsNotOk","normalizedOptions","_fetch","fileSaver","handleInvalidTokenForOrganizationError","SessionRefreshService","isSessionRefreshInProgress","sessionRefreshPromise","timestampMs","refreshSessionCallback","nextSessionRefresh","SetTimeService","SmartCodeRegisterService","styleComputed","styleTag","getStyleIdFromName","Ember","Handlebars","compile","Babel","availablePresets","registerPreset","presets","es2017","plugins","availablePlugins","legacy","loose","componentModuleName","componentLogic","moduleIds","moduleId","eval","require","singleton","computedValue","aggregate_field","label_field","relationship_field","group_by_date_field","group_by_field","time_range","getResolvedRoute","asyncRetry","functionToRetried","_fetchLianaChart","getDelay","remainingRetries","shouldRetryOnError","finalRoute","createdInMemory","fetchFilters","toReviewInMemory","warningInMemory","historyInMemory","saveFilters","approvalState","ForestRecordData","FragmentRecordData","fragmentPushData","calculateChange","changedFragmentKeys","dataToUse","subFragmentsToProcess","_fragmentBehavior","canonical","changedAttributeKeys","pushData","newCanonicalFragments","_fragmentsOrInFlight","_fragmentData","_getFragmentDefault","_changedFragmentKeys","_fragmentArrayCache","notify","storeWrapper","_internalModelForResource","internalModelFor","notifyAttributes","_updateChangedFragments","setDirtyBelongsTo","getBelongsTo","pushToOriginalHasManyIfNeeded","getHasMany","setDirtyHasMany","addToHasMany","recordDatas","removeFromHasMany","didCommit","getFragmentDataWithDefault","fragmentData","Store","cancelQueries","cancellable","encodedRecordId","filtersForQuery","queryUrl","maxUrlLengthForQueryParamsGETMethod","createRecordDataFor","identifierCache","getOrCreateRecordIdentifier","lid","attributesWithDefaultId","_getType","_fieldsToUpdate","saveRecord","saveNestedAttributes","deleteNestedAttributes","unloadRecordNestedAttributes","itemsReordered","_push","shouldIgnoreDefaultValues","_getNestedIncluded","payloadType","_getPropertyOrDefaultValue","_getNestedIncludedDependingOnType","relationshipsData","nestedRelationships","_getNestedIncludedForRelationship","relationshipPayloadIncluded","StripeImportService","billingId","loadStripe","stripeImportService","importStripe","stripePublishableKey","setupStripePaymentElements","setupIntent","confirmSetup","confirmParams","return_url","payment_method_data","billing_details","payment_method","oldSubscription","billingDetailed","getPlusPlans","SummaryViewStateService","newTimezone","tz","setDefault","guess","onChangeRoute","routeFrom","routeTo","MAP_STATE_TO_TRACKED_COUNT","setAndGetCurrentCountForState","filterOptions","showWarningTab","totalCountWarning","filteredCountToReview","totalCountToReview","filteredCountCreated","totalCountCreated","filteredCountWarning","to_review","toReview","fetchCounts","trackedCountName","counts","handleAgentReload","handleModelCustomizationCreation","mentioned","fetchCount","notesCreatedCount","notesMentionedCount","projectSettingsBillingModel","isFree","billingService","BillingError","HIGHLIGHT_START","isLimited","labelAsString","escapedSearchMatch","escapedValue","searchEscaped","searchHighlight","getFromCustomDomain","getDecoration","getWidgets","shouldRenderNullValues","getWidgetsFor","WidgetTypeEnum","Display","hasWidgets","defaultParameters","widgetConfigurationWithDefaultValues","getDefaultWidgetConfigurationFor","defaultWidgetName","getDefaultWidgetName","assignDefaultWidget","TestLocation","_args","implementation","_window","_states","pushState","onUpdateURL","updateCallback","_currentURL","formatURL","setURL","newURL","handleURL","Resolver","moduleNameLookupPatterns","dataLookupPattern","sharedLookupPattern","featuresLookupPattern","routesLookupPattern","legacyLookupPatterns","getTypeFolder","getFullNameWithoutType","parsedModuleName","fullNameWithoutType","typeFolder","otherModuleParts","featurePrefix","fullPath","Router","locationType","browserExtensionService","redirectIfAlreadyAuthentified","fetchInvitation","optOutMarketingFromApp","getCountryCodeFromIp","country_code","redirectIfWrongResetPasswordToken","OauthAuthorizeController","_params","CreateNewProjectRoute","ProjectProjectSettingsConnectorsCreateMcpServerController","connector","ensureAccessToMcpServersPage","ProjectProjectSettingsConnectorsMcpServerEditRoute","mcp_server_id","handleWorkspaceOnRecordCreated","WorkflowEditorController","parentParams","loadRequireModelForFolder","redirectToRenderingData","ProjectRenderingFoldersViewRoute","ProjectRenderingInboxViewErrorRoute","BacklogController","ensureBacklogAccess","canExportActivityLogs","ProjectRenderingReportsActivityRoute","ProjectRenderingReportsRoute","TeamPerformanceController","isFirstPersonalProject","initialPhase","currentPhase","triggerCrawling","settingsRoutingService","handleTransition","enableBrowserExtension","prohibitTransitionOutsideContext","ZendeskOauthRedirectRoute","rawState","AssetMapService","ApplicationSessionStore","Base","localStorageOptions","localStorageStore","_localStorageStore","cookieOptions","cookieDomain","cookieExpirationTime","_secureCookies","sameSite","cookieStorage","_cookieStore","persist","cookieRestoreData","localStorageRestoreData","ActivatableButton","AllTypes","ErrorState","didSwitch","onAllowJavascriptChange","Modal","AllowJsToggle","removeEmojiPicker","componentRef","portalTarget","initializeEmojiPicker","clickEvent","unicode","emojiPicker","Picker","align","popoverAlign","popoverFullWidth","withClearButton","regexColor","isOpacityDisabled","REGEX_COLOR","REGEX_COLOR_WITH_ALPHA","colorPickerId","isColorValid","actualDefaultValue","showColorPicker","clearValue","second","hideCalendar","deleteDate","updateHour","updateMinute","updateSecond","hideCalendarAction","MIN_YEAR","MAX_YEAR","transformDateIntoBrowsersTimezone","momentValue","transformDateIntoUsersTimezone","hours","minutes","seconds","milliseconds","getFullYear","getMonth","getDate","parseOptionalDate","inputContainerId","parsedMinDate","parsedMaxDate","parsedRangeStart","rangeStart","parsedRangeEnd","rangeEnd","parsedValue","parsedHour","parsedMinute","parsedSecond","minHour","minDateMoment","minMinute","minSecond","maxHour","maxDateMoment","maxMinute","maxSecond","canSetToNow","isDateWithinValidRange","effectiveFormat","_displayedText","handleInputFocus","_isEditing","_errorMessage","handleInputChange","_validateLive","_clearError","onErrorChange","_parseInput","_getValidationError","handleInputBlur","changeValue","syncPikaday","dateValue","castValue","normalizedText","localeSep","localeData","longDateFormat","isAfter","picker","draw","setToNow","destroyCalendar","toggleCalendar","isDisplayingCalendar","displayCalendar","cleanTime","updateValueWithNewTime","initTime","getCalendarField","metric","valueInteger","padStart","momentDate","insertCalendar","calendarField","calendarContainer","defaultDateTranslatedInTimezone","Pikaday","bound","defaultDate","yearRange","endRange","startRange","_d","updateConstraints","handleCalendarInserted","popoverComponent","popoverAnchor","pickerContainer","getContainerOfPositionAbsoluteElement","caret","popoverAnchorBounding","scrollViewport","ownerDocument","defaultView","anchorPosition","scrollY","scrollX","opacity","didUpdateComponent","setMaxDate","setMinDate","setStartRange","setEndRange","initAtCurrentTime","atCurrentTime","parsedDate","correctedHours","correctedMinutes","correctedSeconds","onAddValue","onRemoveValue","onReorderValue","reorderable","valuesMapped","isAddValueDisabled","doNotAllowDuplicate","editionValue","onValidate","PASSWORD_STRENGTHS","strength","tip","strengthLevel","strengthStatus","passwordType","iconVisibility","iti","intlTelInput","initialCountry","strictMode","loadUtils","_closeDropdown","getNumber","AbstractBetaInput","allClasses","leftIconName","copyable","noNumberHelper","withoutFocus","sizeClass","pattern","lastInputValue","handleValueUpdate","shouldEnforcePatternDuringInput","getInputValueForNumber","onEmpty","testMe","successful","onWheel","canBeCleared","autocomplete","maxLength","iconClass","onKeyPress","Kinds","States","Disabled","WithIcon","WithButton","WithCopy","positionOrDefault","displayLink","onClickLink","textClass","descriptionClass","dataTestInputFor","important","alwaysDisplayError","afterIcon","afterIconTooltipId","multiline","BetaLabel","SIZES","footerClass","footerStyle","showFooterBorder","onClickNextStep","onClickPreviousStep","isNextStepDisabled","numberOfSteps","descriptionText","textOfItemsInCurrentPage","itemsType","numberOfItemsInCurrentPage","textOfNumberOfItems","numberOfItems","numbersToDisplay","numbers","currentPageInput","showInput","shouldDisplayInput","hideInput","shouldDiscard","shouldDisplayNumberOfPages","isUnlimited","canNotNext","isNextButtonDisabledEvenIfUnlimited","setInputWidth","DisplayEnum","CardVariantEnum","initDefaultValue","classBinding","descriptionPath","linkPath","isGrid","isVertical","forceDefaultValue","itemClass","columnCount","cardVariant","checkInputSize","onHover","handeChange","BetaRadioButton","toggleSectionFolding","isSectionFoldable","docs","isCustomPositioning","headerClass","localSearchValue","focusInput","shouldAutoFocus","currentSearchValue","searchFunction","searchOnInput","transparent","parametersToWatchRetriggeringFocus","defaultOptionColor","BetaSelectColor","AbstractDropdownSelectComponent","onClearSearch","isDropdownOpen","isFulfilled","inputIdOrDefault","onCancelSearch","canDisplayDropdown","displayedOnce","onFirstDropdownDisplay","_handleFocusIn","selectedOptions","currentOptionName","getNameToDisplayForOption","isInlineMultipleValues","capitalizeValues","handleSearchChange","handleSelectDefault","hideCurrentValue","BetaSelect","Template","MultiSelect","MultiSelectInline","WarningState","SuccessState","Placeholder","WithSearch","isDeleteDisabled","DeleteSection","onDiscard","SaveButton","dangerClass","isDangerZone","isFooter","hasWideGap","displayDraftTag","colorDraftTag","SectionWithSaveButton","SectionWithCustomButton","cancelBubbling","BetaTableComponent","rowClick","handleSort","isFirstColumnLeftAligned","alignColumnLeft","sticky","currentElement","updateHeight","setAutoGrow","autoGrow","CSS","supports","isDropdownOpened","onOpenDropdown","onClickButton","dropdownOptions","LoadingExample","TEXT_ALIGNMENTS","isLink","iconOnly","isSubmittable","isImportant","withInput","isIconAfterText","isInLoadingState","isImportantLink","isBold","isUnderlined","underline","isAsync","iconClasses","isCustomIcon","customIconSource","shouldEnablePropagation","withoutCallback","isSquare","iframeHeight","Types","Secondary","Ghost","Editor","EditorLight","SuccessOutline","InfoOutline","WarningOutline","DangerOutline","WithInput","ButtonSizeEnum","SharedButtonComponent","buttonElement","isIconOnly","mustStopPropagation","ellipseText","Button","IsActiveButtons","CloseButton","handleToggleSection","isCollapsedByDefault","CollapsibleSection","isCollapsible","collapsible","_isCollapsed","exceptSelector","baseExceptSelector","isClickOutsideDisabled","collapse","disableClickOutside","collapsibleElement","boundingClientRect","draggedImg","effectAllowed","dropEffect","handleDrag","notificationBar","CollapsibleSidePanelHeader","destroyAndRemove","colorPickerElement","colorPicked","isValidColor","latestColorPicked","updateColorOnElement","Pickr","useAsButton","lockOpacity","appClass","hue","interaction","hex","rgba","hsla","hsva","cmyk","swatches","updateColorPicked","toHEXA","applyColor","NullColor","DisabledNull","getPrimaryColorVariations","rgb","parseColor","adjustBrightness","trimmedColor","hexResult","setupConfetti","confettiContainer","cardElement","containerSelector","originX","originY","confetti","angle","velocity","deltaX","cos","sin","confettisTimeout","teardownConfetti","contactFormLink","subject","openLink","ContactUsLink","withSideMargin","DataBlock","DataBlockWithActions","BetaBadgeStyle","DEFAULT","DASHED","rgbColor","setColors","isNotUppercase","isNotHorizontallyCentered","Colors","PredefinedColors","BADGE_COLORS","oneLineCommand","BetaCode","emptyState","onItemClickAction","onButtonClick","hasCondition","onFilterClick","isPopupVisible","onApplyFilterClick","titles","BetaDisplayList","BetaHighlightMultiple","copyValue","innerHTML","Prism","manual","autoloader","languages_path","NormalizeWhitespace","setDefaults","highlightElement","preventOverflow","BetaHighlight","MOON_ICONS","matIconsSet","matIconList","isEmoji","isMoonIcon","materialStyle","moonSizeClass","BetaIcon","onReorder","onEdit","placeholderPath","entryClass","BetaList","variablesToNameValueString","toNameValueString","variableToNameValueString","formattedDate","conditionChecking","relativeFormatWhen","formatterWhen","formatterElse","fromNow","DateOperatorDisplayNameEnum","fetchItems","currentPageItemsCount","querySpecifications","projectToSearchTeams","teamToRestrictUsersSearch","prevPage","searchDebounceTime","isLoadingItems","StoreService","computeNumberToDisplay","numberToDisplay","shouldBeNotifying","shouldNotify","limitCount","loadingValue","NumberBadge","hasCheckbox","columnsCount","rowsCount","nameProperty","visibilityProperty","onToggleVisibility","onRedirectToSettings","argsType","EditableList","AllUseCases","EmptyState","FeedbackBetaTooltipComponent","hideTooltip","tooltipElement","arrowElement","initializeTooltip","initializeDisplay","mutationObserver","isAlwaysShown","handleMouseEnterTarget","handleMouseLeaveTarget","isDraggingTarget","computeTooltipPosition","isHoverTarget","isHoverTooltip","showDelay","hideDelay","placement","middlewareData","computePosition","strategy","middleware","spacing","flip","arrow","arrowX","arrowY","staticSide","NotificationStyle","MINIMAL","NotificationState","Basic","contentStyleClass","iconStyleClass","messageTitle","canHide","handleReceiveAttrs","invertPercentage","endColor","WithCustomButtonText","isChecked","CheckInput","NotChecked","isValidField","isConfirmDisabled","availableCollections","collectionsAccessibleGlobally","iconLabel","nameLabel","CreateCollectionItem","iconPlaceholder","argsTypes","CreateNameAndIconModal","valueToDisplay","shouldDisplayPicker","Easepick","easepick","STATIC_DATE_PICKER_CONFIG","autoApply","AmpPlugin","RangePlugin","PresetPlugin","months","years","zIndex","createDatePicker","startDate","endDate","datePicker","setDateRange","gotoDate","ui","triggererId","DateTime","customPreset","thisMonth","lastMonth","setMonth","isCancelButton","DateRangePicker","BetaRadioButtonComponent","handleOnHover","DEFAULT_ARGS","getArgs","mapOptions","newProps","SelectCards","fullArgs","withEmojis","withMaterialIcons","withImageAssets","noDecorations","twoColumns","threeColumns","checkInput","cardVariantTall","cardVariantTallWithDesc","inactive","handleUrlChange","trimmedUrl","isValidYouTubeUrl","preTitle","noSeparator","closeButton","shouldDisplayFullTitle","ColorsEnum","isShowingColorPicker","handlePickColor","onColorChange","onTextChange","InputWithColorPresets","LayoutCardOnEmptyPage","LayoutFullPageTitleDescription","showCancelButton","confirmType","confirmIconName","isCancelDisabled","ModalSizeEnum","updateModal","isCurrentStepComplete","handleStep","handleLastStep","handlePreviousStep","stepPagination","Step","MultiStepModal","underlineOrDefault","defaultTo","defaultUnderline","displayAsButton","iconAfterTextOrDefault","defaultIconAfterText","defaultSize","isLightText","NavigationLinkComponent","NAV_EXTERNAL_LINK_STYLES","NAV_ITEM_STYLES","indicator","startAutoClose","countdown","countdownTimer","portalId","destinationElement","isOptional","isPortalOpen","portalElement","handleMutation","defaultPortalId","shouldDisplayBlock","SvgButtonComponent","svgSrc","SvgButton","SvgButtonDemo","SvgComponentFallbackSvg","previousSrc","svgLoadPromise","loadSvg","mustForceReload","svg","svgElement","replaceChildren","TextWithStateComponent","isInfo","TextWithState","InfoState","ToggableIcon","ToggleCollapseButtonComponent","ToggleCollapseButton","verticalPosition","Helper","arrayContains","buildHelper","arrayOfObjectsContains","AttuneNameWithCount","ChainFnHelper","functions","functionToCall","decrement","singular","plural","doNothingFunction","firstLetter","durationInSeconds","notation","num","minimumFractionDigits","getClassesWithModifiers","baseClassName","staticModifiers","cssClassHelper","getLinkToModels","linkModels","htmlSafeHelper","increment","leftSide","rightSide","isTextTruncated","elementSelector","IsTextTruncatedHelper","recompute","jsonStringify","replacer","space","lowercaseText","numberOfLines","roundAmount","thresh","units","unitIndex","bytes","formatPrice","invocationArgs","_getRouteWithAction","routeAction","currentRouteNames","currentRouteInfo","_router","getCurrentRouteNames","noCurrentRoute","initEventListener","onKeyDown","saveFunction","KEY_S","sentenceCase","startCase","setFallbackImageSource","defaultImageSource","upTo","templatingInjector","isPlainText","injectedText","escapeHTML","buildGetVariableValue","templatingValue","wrapTemplatingValueInHTML","plainText","CurrentDateTemplatingHelper","templatingKeyPrefix","refreshDate","uppercaseText","nestedSelector","elementToFocus","Modifier","modify","_removeEventListeners","ClickOutsideModifier","positional","named","didInstallTimestamp","handleEventIfNecessary","ForestSortableItemModifier","SortableItemModifier","createSortable","groupElement","allowedTypes","isElementAllowed","optionsWithDefaults","SORTABLEJS_ITEM_CLASS","dataIdAttr","SORTABLEJS_ITEM_ID_ATTRIBUTE","sortableFrom","sortableTo","forestAttachedItem","emptyInsertThreshold","isItemAllowedToBePut","targetSortable","currentSortable","SORTABLEJS_ITEM_TYPE_ATTRIBUTE","revertClone","getGroupElement","rootSelector","extraOptions","idAttribute","typeAttribute","getItemIdAndType","observer","attributeFilter","DEFAULT_SUBSCRIBER_ID","EmberEventsWrapper","EmberEvents","eventHandlers","subscriptions","executeHandlers","subscriberId","allEventsName","graphQLQueries","eventNames","UNSUPPORTED_OPERATOR_ERROR_REGEX","canUseProjectionOnGetOne","specificCollections","collectionNames","handleCollections","handleNativeQueryConnections","collectionCapabilities","aggregationCapabilities","fieldCapabilities","validOperatorsPerType","OPERATORS_CAPABILITIES_PER_TYPE","company","ENVIRONMENT_EVENT_QUERIES","updateStarted","queryEnvironmentUpdateStarted","updateEnded","updateFinished","queryEnvironmentUpdateFinished","updateFailed","queryEnvironmentUpdateFailed","environmentReady","queryEnvironmentReady","onEnvironmentUpdateStarted","onEnvironmentUpdateFinished","onEnvironmentUpdateFailed","environmentToastrId","gb","growthBookClientKey","GrowthBook","apiHost","clientKey","enableDevMode","onFeatureUsage","setAttributes","timeBefore","timeAfter","getRelationShips","SyntaxError","UnknownResponseEntityError","newWorkflowPosition","defaultToFolded","localStorageValue","navigationState","PopupPositionerSharedBusinessService","caller","popupElement","latestTargetDomProperties","targetRect","targetDomProperties","getLatestDomPropertiesForPopupElement","isInitialization","setPopupWidth","setPopupPosition","RouteTransitionHandlerSharedBusinessService","willTransitionHandlers","S3Uploader","signingMethod","signingFetchSettings","versionId","deferredThirdPartyInit","idleWindow","requestIdleCallback","runWhenIdle","customerIoInApp","cancelIdleCallback","setupRendering","featureFlags","isNotForestProduction","getIsItemFolded","itemsIdToFoldedState","loadBrowserAndSessionData","_theme","ArrayTransform","FragmentArrayTransform","FragmentTransform","arr","predicate","_v","MIXIN_ACTIONS","MIXIN_FUNCTIONS","ACTIONS_PASSED","PROPERTIES_PASSED","AutoCompleteSmartViewHelper","recordVariableName","listVariableName","indexOfWhiteSpace","indexToSubstr","collectionReferences","createSuggestion","autoCompleteTemplate","getFieldSnippetsFromCollection","autoCompleteRecords","autoCompleteMethod","autoCompleteActions","newFormat","actionKey","variablePrefix","referenceName","collectionReference","EMBER_PROPERTIES","snippet","loadSnippets","startComponentBody","componentBody","componentInside","isClassComponentStyle","actionKeys","matchWithoutAction","indexOfActions","actionsBlock","endOfActionsBlock","cssRule","primaryColorRegex","cssVariables","indexStyle","cssColorVariables","styleSheets","indexStyleSheet","styleSheet","indexCssRules","cssRules","_getColorVariableFromCssRule","primaryColors","cssColorVariable","backgroundColors","borderColors","fontColors","imports","autoCompleteStyle","isStyle","autoCompleteBackgroundColors","autoCompleteBorderColors","autoCompleteFontColors","autoCompleteComponent","fullLine","endOfLine","autoCompleteImports","autoCompleteThis","autoCompleteArguments","autoCompleteComponents","$lines","exisintImportEndOfLine","snippetImport","getSnippetForColors","invitationIdsToDelete","chrome","InstallTrigger","opr","addons","opera","pathForType","generateHeaders","newUrl","sortedQuery","sortQueryParams","buildQuery","logActivityWrite","forestActivityTracking","normalizeErrorResponse","ipWhitelistNotRetrieved","keyFound","findKey","decorators","decorator","__meta__","resourceId","ModelCreator","ID_FIELD_FOR_FRAGMENT_API","ID_FIELD_FOR_FRAGMENT_INTERFACE","ID_FIELD_FOR_MODEL","normalizedValue","newFieldValue","deeplySetValue","popObject","existingItem","createEmptyModelDefinition","validations","parseEmbedded","isPlainType","parseEmbeddedBelongsToField","parseEmbeddedHasManyField","hasMongoIdField","getPlainFieldDefinition","getValidationsForField","generated","DSModelClass","ModelClass","_internalModel","DSSerializerClass","ClientSerializer","denamespaceAttribute","rel","relationshipKeys","polymorphicFields","polymorphicField","modelNameFromPayloadKey","payloadKeyFromModelName","theCollection","mapLinks","isGeneratedAttribute","getFieldValidation","Laravel","custom","getIsPresentValidation","numericality","allowBlank","minimum","maximum","modelValidation","defaultsDeep","REGEX_UUID","PREDEFINED_COLORS","secondary","tertiary","textDark","textMedium","textLight","textDisabled","isServiceFactory","getRandomHex","lowerCaseText","aCharCode","charCodeAt","percentsByPosition","subText","currentPercent","colorIndex","darkenColor","shadeColor","R","G","B","subtractLight","colorModified","colorWihtoutHash","getColorPrimaryVariants","light","toHsl","primaryColorVariants","lightFactor","getColorPrimaryVariantsDark","primaryColorHex","red","green","blue","startColor","spin","toHexString","darkMode","valueRecord","valueComparison","castRecordValue","castComparisonValue","_isValid","findOperatorFromKey","keyName","keyValue","OPERATORS","operatorName","hasValueDate","hasValueBoolean","_index","_exportNames","SUPPORTED_TYPES_FOR_CONDITION","Json","digits","CURRENT_USER_VARIABLES_MAP","mysql","mssql","mongodb","mariadb","isSameDay","addDurationSuffix","firstDayOfMonth","lastDayOfMonth","dateFrom","dateTo","today","dateToCompare","yesterday","toValidDate","is422Error","firstErrorIs","ObjectProxy","PromiseProxyMixin","ArrayProxy","timeToWait","delayTime","ApplicationInstance","faIconToEmoji","money","archive","sitemap","bell","globe","ticket","bank","cubes","building","dollar","mobile","cogs","truck","diamond","check","eye","cog","briefcase","plane","institution","road","database","book","gift","car","industry","eur","dropbox","star","cube","euro","wpforms","gears","envelope","gavel","connectdevelop","exchange","bolt","cny","calculator","bullhorn","phone","heart","angellist","bookmark","ship","commenting","flash","wrench","desktop","bullseye","lock","legal","university","gear","suitcase","flask","photo","pencil","medkit","automobile","trophy","flag","gamepad","stethoscope","cutlery","spinner","eyedropper","apple","wechat","film","paw","hashtag","braille","adn","sliders","usd","foursquare","ambulance","bed","male","genderless","android","chain","bicycle","tachometer","bitcoin","rocket","asterisk","anchor","feed","btc","hotel","bitbucket","motorcycle","bomb","envira","tree","laptop","codepen","heartbeat","exclamation","camera","paste","paperclip","coffee","copyright","binoculars","share","github","plug","buysellads","music","leanpub","train","gittip","rss","crosshairs","fa","grav","microphone","ban","opencart","shirtsinbulk","play","amazon","trademark","joomla","unlink","magic","tv","instagram","blind","signing","adjust","leaf","bug","unlock","spoon","shield","glass","cab","mixcloud","ravelry","forward","microchip","gratipay","compass","ra","expeditedssl","bandcamp","circle","superpowers","facebook","television","battery","plus","print","beer","eercast","odnoklassniki","tint","headphones","wordpress","yoast","backward","contao","vcard","support","sellsy","square","eraser","female","bus","bath","linode","linux","cut","registered","retweet","stumbleupon","codiepie","subway","wifi","bluetooth","firefox","wpexplorer","pagelines","telegram","quora","usb","html5","umbrella","twitter","podcast","fax","trello","medium","yen","rupee","simplybuilt","shekel","resistance","soundcloud","paypal","steam","subscript","modx","meetup","thermometer","edge","empire","tumblr","vimeo","rebel","ge","scribd","hourglass","behance","taxi","pause","bathtub","maxcdn","neuter","windows","youtube","slack","wheelchair","deaf","yelp","dribbble","recycle","trash","scissors","gitlab","openid","magnet","imdb","qq","tripadvisor","stripe","intercom","closeio","layer","EmberError","lineNumber","causeMonitored","captureStackTrace","propertyNameFormated","messagePrefix","UnknownLoadFailedError","UnknownNot200ResponseServerSessionOidcError","UnknownAdapterError","userDevEnvironment","doesUserOwnEnvironment","remoteEnvironment","hasProjectRemoteEnvironment","hasProjectProductionEnvironment","listenForInitCommand","listenForBranchCommand","listenForPushCommand","listenForDeployCommand","EnvironmentDevelopmentV2Initialized","redirectToEnvironment","BranchChangedOnEnvironment","BranchPushedToRemote","EnvironmentDeployed","_isVisible","explorerConfigurationOrRow","_setAttributeIfPossible","hasExplorerConfigured","_setAttributeFromLocalAttribute","privateAttribute","ExplorerConfiguration","initExplorer","afterExplorerInit","AbstractExplorerRowVisibility","_recordsPerPage","_displayFieldNames","hasNoDefaultSortingField","isBelongsToSortInHasMany","ExplorerRecordsContext","_position","headerValue","DATA_URI","getMimeType","EXTENSION_MIME_MAP","PREVIEW_MIME_TYPE_MAP","SAFE_MIME_TYPES","isCustomDataObject","fixOctetStreamType","dataUrl","inferred","mimeTypeMustInclude","isUrlAbsoluteWithoutProtocol","isUrlRelative","_getTypeFromBase64","_getTypeFromURL","injectFilename","headerChunks","extractFileNameFromUrl","rawType","base64Content","byteCharacters","byteArrays","byteNumbers","byteArray","dataURI","mime","u8arr","leafToText","operatorInfo","generateDisplayText","formatValue","formatOperation","conditionToText","isFirstLevel","childConditions","combined","aggregatorToText","creationForm","languages","removeDashesAndUnderscores","activeElementTagName","currentUserTeams","lastVisitedTeamName","hashFromString","stringToHash","imul","objectToHash","safeStringify","targetRouteName","lastParam","expectedKey","TAB","SHIFT","CTRL","ALT","PAUSE","CAPS_LOCK","PAGE_UP","PAGE_DOWN","END","INSERT","KEY_0","KEY_1","KEY_2","KEY_3","KEY_4","KEY_5","KEY_6","KEY_7","KEY_8","KEY_9","KEY_A","KEY_B","KEY_D","KEY_E","KEY_F","KEY_G","KEY_H","KEY_I","KEY_J","KEY_L","KEY_M","KEY_N","KEY_O","KEY_P","KEY_Q","KEY_R","KEY_T","KEY_U","KEY_W","KEY_X","KEY_Y","LEFT_META","RIGHT_META","SELECT","NUMPAD_0","NUMPAD_1","NUMPAD_2","NUMPAD_3","NUMPAD_4","NUMPAD_5","NUMPAD_6","NUMPAD_7","NUMPAD_8","NUMPAD_9","MULTIPLY","ADD","SUBTRACT","DECIMAL","DIVIDE","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","NUM_LOCK","SCROLL_LOCK","SEMICOLON","EQUALS","COMMA","DASH","PERIOD","FORWARD_SLASH","GRAVE_ACCENT","OPEN_BRACKET","BACK_SLASH","CLOSE_BRACKET","SINGLE_QUOTE","getLastSideMenuWidthKey","sideMenuItem","menuItemName","lastWidth","columnsToFetch","getSortQueryForField","getSortFieldByFieldName","segmentConditions","scopeConditions","segmentFilters","manualFilters","nonEditableFilters","scopeFilters","viewListFilters","oldFilter","existingCondition","filterParameters","parameterName","getQueryFields","getQueryPagination","getLiveDemoUrls","renderingUrls","getRenderingUrlFromProjectName","getDefaultRenderingUrl","liveDemoRenderingUrls","decodedUrl","demoUrl","liveDemoUrls","serializeProperty","propertiesToMarkAsNotDirty","createSnapshot","willCommit","_rows","_attributesEditable","visibleRowCreates","visiblePlainRows","visibleRowEdits","isFeatureActiveFilterArrayIncludeAll","serverFormatJson","BaseNestedField","BaseNestedFieldDecorated","initCredentials","sslMode","_ssh","databaseUri","URIPatternRegex","_decodePasswordInURI","_connectionURI","_encodePasswordInURI","_onUriChange","_host","_port","_username","_databaseName","_password","_authSource","_useSSL","_schema","_useSRV","_extraQueryParams","extraQueryParams","initialType","isLocal","hasAuthSource","hasSchema","hostAndRest","decodedPassword","fixedEncodeURIComponent","translateAndCheckDatabaseType","isMongoSrv","_buildSearchParams","augmentWithDisplayTextForArrayOperator","ArrayOperatorDisplayNameEnum","IncludesAll","formatArrayValue","formatStringValue","arrayValue","augmentWithDisplayTextForBinaryOperator","augmentWithDisplayTextForUnaryOperator","IsNot","OPERATOR_IS_PRESENT","IsPresent","OPERATOR_IS_BLANK","IsBlank","IsIn","augmentWithGenerateDisplayTextForBinaryOperator","IsAfter","IsBefore","IsToday","hint","WasInPreviousXDays","constructWasInPrevious","constructIsThisToDate","WasYesterday","WasInPreviousWeek","WasInPreviousMonth","WasInPreviousQuarter","WasInPreviousYear","IsTheseXDaysToDate","IsInThePast","IsInTheFuture","WasBeforeXHoursAgo","IsAfterXHoursFromNow","_arrayOperators","_commonOperators","_dateOperators","_numberOperators","_stringOperators","Uuid","NumberOperatorDisplayNameEnum","IsGreaterThan","IsLessThan","StringOperatorDisplayNameEnum","StartsWith","EndsWith","Contains","IContains","NotContains","defaultSuffix","subTitles","textToPaste","indexToPlaceCaret","setSelectionRange","discount","tranches","computeBasePrice","COMPUTED_IMPORTS","importName","fullImport","createCustomPropType","customPropType","propName","createRequiredCustomPropType","typeChecker","propFullName","propValue","EmberComponent","addQueryFilter","getQuerySearch","withRelationships","shortKey","_range","Strike","Block","ForestChatTheme","ForestRichTextTheme","AutoLink","QuillResizeImage","ImageFormatAttributesList","BaseImageFormat","BlockEmbed","import","YOUTUBE_ATTRIBUTES","DANGEROUS_STYLE_PATTERNS","embedUrl","normalizeToEmbedUrl","border","isValidDimension","lowerValue","isValidStyle","urlRegularExpression","mailRegularExpression","Module","urlNormalizer","mailNormalizer","mail","registerTypeListener","registerPasteListener","registerBlurListener","addMatcher","ops","getFormat","pastedDelta","lastOp","checkTextForUrl","triggeredByInlineWhitespace","sel","getLeaf","leafIndex","getIndex","leafValue","relevantLength","localName","nextLetter","bailOutEndingRegex","urlMatches","mailMatches","handleMatches","normalizer","matchIndex","ResizePlugin","resizeTarget","onResizeEnd","originSize","initResizer","positionResizerToTarget","resizing","endResize","startResize","bindEvents","resizer","pointerEvents","offsetLeft","which","startResizePosition","resizePlugin","overlayEntries","deselect","handleKeydown","deleteSelectedElement","blot","selectForResize","handleContainerClick","handleDocumentMousedown","isResizer","isOverlay","syncOverlays","overlay","removeScrollListener","createOverlay","BaseTheme","extendToolbar","addKeyBindings","DEFAULTS","forestIcons","justify","blockquote","bold","clean","rtl","formula","italic","bullet","ordered","sub","strike","video","mapper","icons","FOREST_ICONS","SnowTheme","buildButtons","buildPickers","addHandler","Klass","klassMap","ensureMapHasOwner","mapForOwner","KlassWithOwner","setOwner","isPlainObject","ctor","prot","mixinProps","wrapReactComponent","ComponentMixin","EmberMixin","getReactProps","isMutableCell","mountElement","childrenOrYield","childNodes","React","YieldWrapper","nodes","KlassToRender","isFunctionalComponent","grantOwnerAccess","createRoot","render","arg","propKey","ReactComponent","componentDidMount","createDocumentFragment","webApiFile","withName","settingsName","computeValueToDisplay","cleanedObject","getLocalStorageEndKey","routeInfoObject","routesInfo","paramsToRetrieveInOrder","currentParams","isSettings","isComingFromTarget","isGoingToTarget","stringToReplace","stringReplaced","oldRoutes","oldRouteName","oldRoutesToNewRoutes","googleAuthentication","loginSso","CONSTRUCTOR_PROPERTIES","EmptyClass","isIsLegacyResponse","signResponse","extra","signData","getUrlFromSignData","isUploading","createFormData","didUpload","didError","isSigning","didSign","didErrorOnSign","formData","FormData","toNamespacedParam","paramKey","paramName","paramNamespace","region","bucket","_controller","fetchSettings","_safeStringifyRec","parentKey","parentValue","colonSeparator","jsonNode","compare","aobj","bobj","_getCompareFunction","stringifyItemFunction","itemStringified","_safeStringifyArray","_safeStringifyObject","isDeep","replaceIfNeeded","renameField","replaceKeysInObject","replaced","replaceKeysInObjectIfNeeded","hashAttributes","replaceAllKeysInObject","Uint32Array","charset","buildParams","traditional","rbracket","v","toType","valueOrFunction","_getArgs","_handleValues","valuesCopied","remainingKeys","recordsArray","jsScript","cssLink","PathExpression","walker","PARENT_LESS_HELPERS","handleStatement","startPosition","SubExpression","MustacheStatement","BlockStatement","stackOfLocalVariables","updateBlockParamsStack","blockParams","Program","enter","exit","ElementNode","pairs","COMPONENT_ARGUMENTS","isSecondKeyInDescendingOrder","firstKeyNumerator","secondKeyNumerator","itemA","itemB","memoLowerCasedString","stringToSearch","lowerCasedStringToSearch","shouldFormat","spaces","startpos","_getStartPosition","globalRegex","regexScope","ignoreCase","_getRegexWithGlobal","stringToWorkWith","nextStop","isMoment","prefixLowerCase","listSorted","listFiltered","givenType","supportedTypes","isValidating","castToType","fullPathWithoutLastSuffix","templatingString","templatingRegex","templatingStringWithVariablesInjected","valueSanitized","ComposableTemplatingHelper","templatingHelpers","staticTemplatingHelpers","nonStaticTemplatingHelpers","globalTemplatingHelper","getTemplatingHelperHandler","globalAutocompleteItems","autoCompleteFromList","staticTemplatingHelper","templatingKeysFound","firstPart","autoCompleteDateMethods","autoCompletePrefixValue","isRequiringCustomNumber","nestedAutoCompletePrefixValue","lastPath","TEMPLATING_KEY_PREFIX","variableValue","lastCollection","autoCompleteFields","getVariableValueFromRecord","parentObject","currentUserKeys","currentUserKey","autoCompleteCurrentUserFields","_filterCurrentUserKeysByExpectedType","autoCompleteCurrentUser","nestedCurrentUserObject","nestedCurrentUserKeys","columnsOnly","validField","collectionToAutocomplete","validCurrentPath","nestedPaths","currentNestedPath","_isNestedCollection","getFieldAndValidPathFromPath","_autoCompleteCollectionFields","newBelongsToFieldsToFetch","currentBelongsToFieldsTreeToFetch","getValueFromCollection","parentPath","WorkspaceComponentTemplatingHelper","workspaceComponentContextVariables","_autoCompleteWorkspaceComponents","autocompleteItemsForComponents","getWorkspaceComponentContextVariables","_getWorkspaceComponent","contextVariableToFind","_autoCompleteSelectedRecordFields","replaceCurrentRecordPaths","currentWorkspaceComponentOptions","_getSelectedRecordFields","_autoCompleteWorkspaceComponentsVariables","variableKey","nameValueList","maxSize","trimmed","encodedValue","encodeURIComponentIfNotUndefined","shouldRemoveEmptyOne","v4","webhookOptions","XMLHttpRequest","bodyToSend","setRequestHeader","fieldsType","limitedValuesDefaultParameters","JsonEditor","JsonTree","EmbeddedDocument","RichText","AddressEditor","Checkboxes","ColorPicker","MultipleInput","MultipleSelect","PointEditor","RichTextEditor","TextArea","TimeInput","polymorphicBelongsTo","embeddedBelongsTo","embeddedHasMany","embeddedBelongsToDeep","embeddedHasManyDeep","getSourceWorkspaceComponent","cachedRecordsContext","getRecordsContext","sourceName","extractYouTubeVideoId","extractYouTubeVideoInfo","videoId","YOUTUBE_VIDEO_ID_REGEX","YOUTUBE_URL_PATTERNS","DANGEROUS_PROTOCOLS","decoded","iterations","safeDecodeUrl","lowerUrl","urlObj","timeParam","extractStartTime","metaName","rawConfig","runningTests","urlContactSales","urlDocumentation","supportedStacks"],"sources":["vendor/ember-cli/app-prefix.js","client/abilities/abstract-ability.js","client/abilities/activity-log.js","client/abilities/admin-history.js","client/abilities/approval.js","client/abilities/auto-logout.js","client/abilities/collaboration.js","client/abilities/explorer.js","client/abilities/inbox.ts","client/abilities/ip-whitelist.js","client/abilities/live-query.js","client/abilities/mcp-server.ts","client/abilities/multiple-dashboard.js","client/abilities/multiple-role.js","client/abilities/record-dashboard.js","client/abilities/scope.js","client/abilities/smart-chart.js","client/abilities/smart-view.js","client/abilities/summary-view.js","client/abilities/team-features-deactivation.ts","client/abilities/team-performance.ts","client/abilities/team.js","client/abilities/two-factor-authentication.js","client/abilities/user-provisioning.js","client/abilities/white-label.js","client/abilities/workflow.js","client/abilities/workspace-on-record.ts","client/app.ts","client/authenticators/google-jwt-signup.js","client/authenticators/google-jwt.js","client/authenticators/jwt-livedemo.js","client/authenticators/jwt-saml.js","client/authenticators/jwt-secured.ts","client/components/micro-frontend/react-host.ts","client/config/errors.ts","client/config/smart-chart.js","client/config/smart-view.js","client/config/workspace-component-configuration.ts","client/config/workspace-configuration.ts","client/configuration/workspace-autogenerated-template.ts","client/custom-mirage/config.js","client/custom-mirage/serializers/application.js","client/data/adapters/action-approval.ts","client/data/adapters/action-approvals-comment.ts","client/data/adapters/activity-logs-request.ts","client/data/adapters/application.js","client/data/adapters/assignee.ts","client/data/adapters/chart.js","client/data/adapters/collection.js","client/data/adapters/column.js","client/data/adapters/custom-action.js","client/data/adapters/dashboard.js","client/data/adapters/errors/forbidden-login-resource-access-error.js","client/data/adapters/errors/unauthorized-ip-address-error.ts","client/data/adapters/field.js","client/data/adapters/filter.js","client/data/adapters/folder.ts","client/data/adapters/guest.js","client/data/adapters/has-many-query-adapter.js","client/data/adapters/inbox-assignment.ts","client/data/adapters/inbox.ts","client/data/adapters/invitation.js","client/data/adapters/ip.js","client/data/adapters/layout-patch-adapter.js","client/data/adapters/mcp-server-config.ts","client/data/adapters/nested-document.ts","client/data/adapters/notification.js","client/data/adapters/patch-adapter.js","client/data/adapters/rendering.js","client/data/adapters/role.js","client/data/adapters/row-create.js","client/data/adapters/row-edit.js","client/data/adapters/segment.js","client/data/adapters/view-edit.js","client/data/adapters/view-list.js","client/data/adapters/workflow.ts","client/data/adapters/workspace-component.js","client/data/adapters/workspace.ts","client/data/models/abstract-action-permissions.ts","client/data/models/abstract-layout-model.ts","client/data/models/abstract-model.js","client/data/models/abstract-nested-document-model.ts","client/data/models/action-approval.ts","client/data/models/action-approvals-comment.ts","client/data/models/action-request.ts","client/data/models/activity-log.ts","client/data/models/activity-logs-request.ts","client/data/models/ai-user.ts","client/data/models/application-token.ts","client/data/models/assignee.ts","client/data/models/billing.ts","client/data/models/branch.ts","client/data/models/browser-extension-configuration-collection-search-setting.ts","client/data/models/browser-extension-configuration.ts","client/data/models/chart.ts","client/data/models/collection-capabilities.ts","client/data/models/collection-environment.ts","client/data/models/collection-permissions.ts","client/data/models/collection.ts","client/data/models/column.ts","client/data/models/comment.ts","client/data/models/conditional-formatting.ts","client/data/models/conditional-rule.ts","client/data/models/coupon.ts","client/data/models/custom-action-hook-request.ts","client/data/models/custom-action-request.ts","client/data/models/custom-action-values-request.ts","client/data/models/custom-action.ts","client/data/models/custom-domain.ts","client/data/models/dashboard.ts","client/data/models/datasource.ts","client/data/models/default-permissions-action-permissions.ts","client/data/models/default-permissions-collection-permissions.ts","client/data/models/default-permissions.ts","client/data/models/deployment-request.ts","client/data/models/display-settings.ts","client/data/models/environment-incompatible.ts","client/data/models/environment-permissions.ts","client/data/models/environment.ts","client/data/models/explorer-configuration.ts","client/data/models/field-capabilities.ts","client/data/models/field-environment.ts","client/data/models/field.ts","client/data/models/filter.ts","client/data/models/folder-child.ts","client/data/models/folder.ts","client/data/models/form-element-html-block.ts","client/data/models/form-element-input.ts","client/data/models/form-element-page.ts","client/data/models/form-element-row.ts","client/data/models/form-element-separator.ts","client/data/models/form-element.ts","client/data/models/fragment-condition-smart-action-permission.ts","client/data/models/fragment-condition.ts","client/data/models/fragment-filter-smart-action-permission.ts","client/data/models/fragment-filter.ts","client/data/models/fragment-rendering-section.ts","client/data/models/fragment-scope.ts","client/data/models/guest.ts","client/data/models/has-many-query-model.ts","client/data/models/inbox-assignment.ts","client/data/models/inbox-auto-unassignment-configurations.ts","client/data/models/inbox-sorting-field.ts","client/data/models/inbox.ts","client/data/models/integration-request.ts","client/data/models/invitation.ts","client/data/models/invoice.ts","client/data/models/ip-whitelist-rule.ts","client/data/models/ip.ts","client/data/models/mcp-server-config.ts","client/data/models/mention.ts","client/data/models/mentionable.ts","client/data/models/message.ts","client/data/models/model-customization-configuration-action-type.ts","client/data/models/model-customization-configuration-action-update-record-field.ts","client/data/models/model-customization-configuration-action-update-record.ts","client/data/models/model-customization-configuration-action-webhook.ts","client/data/models/model-customization-configuration-action.ts","client/data/models/model-customization-configuration.ts","client/data/models/model-customization.ts","client/data/models/native-query-connection.ts","client/data/models/note.ts","client/data/models/notification.ts","client/data/models/organization.ts","client/data/models/password-request.ts","client/data/models/password.ts","client/data/models/plan.ts","client/data/models/polymorphic-client-model.ts","client/data/models/project-statistic.ts","client/data/models/project.ts","client/data/models/rendering.ts","client/data/models/review.ts","client/data/models/role-permissions.ts","client/data/models/role.ts","client/data/models/row-create.ts","client/data/models/row-edit.ts","client/data/models/s3-versions.ts","client/data/models/saml-configuration.ts","client/data/models/scope.ts","client/data/models/segment.ts","client/data/models/smart-action-permissions.ts","client/data/models/stat.ts","client/data/models/subscription.ts","client/data/models/summary-view-item-data.ts","client/data/models/summary-view-item.ts","client/data/models/summary-view-section-parameters.ts","client/data/models/summary-view-section.ts","client/data/models/summary-view.ts","client/data/models/team.ts","client/data/models/trial.ts","client/data/models/user-invitation-project.ts","client/data/models/user-recovery-code.ts","client/data/models/user-tag.ts","client/data/models/user.ts","client/data/models/validation.ts","client/data/models/value-label.ts","client/data/models/view-create.ts","client/data/models/view-edit.ts","client/data/models/view-list.ts","client/data/models/white-label.ts","client/data/models/widget-configuration-address-editor.ts","client/data/models/widget-configuration-assignee-editor.ts","client/data/models/widget-configuration-belongsto-typeahead.ts","client/data/models/widget-configuration-checkboxes.ts","client/data/models/widget-configuration-color-editor.ts","client/data/models/widget-configuration-date-editor.ts","client/data/models/widget-configuration-date.ts","client/data/models/widget-configuration-dropdown.ts","client/data/models/widget-configuration-file-picker.ts","client/data/models/widget-configuration-file-viewer.ts","client/data/models/widget-configuration-input-array.ts","client/data/models/widget-configuration-json-tree.ts","client/data/models/widget-configuration-limited-value-dynamic-simple.ts","client/data/models/widget-configuration-limited-value-dynamic-smart.ts","client/data/models/widget-configuration-limited-value-dynamic.ts","client/data/models/widget-configuration-limited-value-static.ts","client/data/models/widget-configuration-limited-value.ts","client/data/models/widget-configuration-link.ts","client/data/models/widget-configuration-map.ts","client/data/models/widget-configuration-no-settings.ts","client/data/models/widget-configuration-number-input.ts","client/data/models/widget-configuration-number.ts","client/data/models/widget-configuration-parameters.ts","client/data/models/widget-configuration-price-editor.ts","client/data/models/widget-configuration-price-viewer.ts","client/data/models/widget-configuration-radio-button.ts","client/data/models/widget-configuration-rich-text-viewer.ts","client/data/models/widget-configuration-rich-text.ts","client/data/models/widget-configuration-text-area-editor.ts","client/data/models/widget-configuration-text-editor.ts","client/data/models/widget-configuration.ts","client/data/models/widget.ts","client/data/models/workflow-run.ts","client/data/models/workflow.ts","client/data/models/workspace-collection-column.ts","client/data/models/workspace-component-options-action.ts","client/data/models/workspace-component-options-button-abstract.ts","client/data/models/workspace-component-options-chart.ts","client/data/models/workspace-component-options-collection.ts","client/data/models/workspace-component-options-container.ts","client/data/models/workspace-component-options-date-picker.ts","client/data/models/workspace-component-options-divider.ts","client/data/models/workspace-component-options-dropdown.ts","client/data/models/workspace-component-options-field.ts","client/data/models/workspace-component-options-inbox.ts","client/data/models/workspace-component-options-input.ts","client/data/models/workspace-component-options-link.ts","client/data/models/workspace-component-options-metabase.ts","client/data/models/workspace-component-options-search.ts","client/data/models/workspace-component-options-section.ts","client/data/models/workspace-component-options-smart.ts","client/data/models/workspace-component-options-tabs.ts","client/data/models/workspace-component-options-text.ts","client/data/models/workspace-component-options-toggle.ts","client/data/models/workspace-component-options-workflow.ts","client/data/models/workspace-component-options.ts","client/data/models/workspace-component-visibility.ts","client/data/models/workspace-component.ts","client/data/models/workspace-tab.ts","client/data/models/workspace.ts","client/data/serializers/application-token.js","client/data/serializers/application.js","client/data/serializers/assignee.ts","client/data/serializers/billing.ts","client/data/serializers/browser-extension-configuration-collection-search-setting.ts","client/data/serializers/chart.js","client/data/serializers/collection.js","client/data/serializers/column.js","client/data/serializers/conditional-formatting.js","client/data/serializers/custom-action.js","client/data/serializers/field.js","client/data/serializers/fragment-condition-smart-action-permission.ts","client/data/serializers/fragment-filter-smart-action-permission.ts","client/data/serializers/guest.js","client/data/serializers/inbox-assignment.ts","client/data/serializers/inbox.ts","client/data/serializers/message.js","client/data/serializers/organization.js","client/data/serializers/password.js","client/data/serializers/project.js","client/data/serializers/recovery-code.js","client/data/serializers/rendering.js","client/data/serializers/row-create.js","client/data/serializers/row-edit.js","client/data/serializers/team.ts","client/data/serializers/user.js","client/data/serializers/view-edit.js","client/data/serializers/view-list.js","client/data/transforms/base.js","client/data/transforms/custom-number.js","client/data/transforms/file.js","client/data/transforms/forest-array.ts","client/data/transforms/object.js","client/data/utils/nested-document-utils.ts","client/decorators/argument.js","client/decorators/argument/any.js","client/decorators/argument/argument-validation.js","client/decorators/argument/array-of.js","client/decorators/argument/one-of-type.js","client/decorators/argument/one-of.js","client/decorators/argument/optional.js","client/decorators/argument/shape.js","client/decorators/array-of-nested-document.ts","client/decorators/array.ts","client/decorators/creation-form-handler.js","client/decorators/date-formatting.js","client/decorators/display-hubspot-live-chat.js","client/decorators/enforce-protocol.js","client/decorators/enforce-white-label.js","client/decorators/evented.ts","client/decorators/feature-access-and-preview-redirection.js","client/decorators/model-chart.ts","client/decorators/model-field.ts","client/decorators/model-validator.js","client/decorators/nested-document.ts","client/decorators/object-validator.js","client/decorators/prevent-async-concurrency.ts","client/decorators/prevent-leaving-without-saving.ts","client/decorators/reset-record-read-mode.js","client/decorators/resizable-side-menu.ts","client/decorators/validate.js","client/features/action/components/approval-confirmation-modal/component.ts","client/features/action/components/approval-confirmation-modal/template.js","client/features/action/components/collapsible-side-panel/component.ts","client/features/action/components/collapsible-side-panel/template.js","client/features/action/components/panel/component.ts","client/features/action/components/panel/footer/component.ts","client/features/action/components/panel/footer/template.js","client/features/action/components/panel/form/component.ts","client/features/action/components/panel/form/form-element/component.ts","client/features/action/components/panel/form/form-element/page/component.ts","client/features/action/components/panel/form/form-element/page/template.js","client/features/action/components/panel/form/form-element/row/component.ts","client/features/action/components/panel/form/form-element/row/template.js","client/features/action/components/panel/form/form-element/template.js","client/features/action/components/panel/form/template.js","client/features/action/components/panel/header/component.ts","client/features/action/components/panel/header/template.js","client/features/action/components/panel/response/component.ts","client/features/action/components/panel/response/template.js","client/features/action/components/panel/template.js","client/features/action/errors/action-intent/action-intent-error.ts","client/features/action/errors/action-intent/action-not-found-action-intent-error.ts","client/features/action/errors/action-intent/incorrect-ids-structure-action-intent-error.ts","client/features/action/errors/action-intent/incorrect-params-structure-action-intent-error.ts","client/features/action/errors/action-intent/missing-ids-for-single-bulk-action-intent-error.ts","client/features/action/errors/action-intent/params-not-parsable-action-intent-error.ts","client/features/action/errors/action-intent/records-fetch-action-intent-error.ts","client/features/action/errors/action-intent/records-not-found-action-intent-error.ts","client/features/action/errors/action-intent/too-many-ids-for-single-action-intent-error.ts","client/features/action/errors/action-visibility/unknown-filter-for-visibility-error.ts","client/features/action/errors/index.ts","client/features/action/services/feature.ts","client/features/action/services/internal-business/availability.ts","client/features/action/services/internal-business/custom-action.ts","client/features/action/services/internal-business/form-values-getter.ts","client/features/action/services/internal-business/hooks-handler.ts","client/features/action/services/internal-business/intent.ts","client/features/action/services/internal-business/liana-caller.ts","client/features/action/state.ts","client/features/activity-log/components/activity-item/component.ts","client/features/activity-log/components/activity-item/template.js","client/features/activity-log/components/activity-log-browser/component.ts","client/features/activity-log/components/activity-log-browser/template.js","client/features/activity-log/components/activity-page/template.js","client/features/activity-log/services/internal-business/activity-log-fetcher.ts","client/features/agent-notifications/services/feature.ts","client/features/ai-user/components/empty-state/template.js","client/features/ai-user/components/page/component.ts","client/features/ai-user/components/page/template.js","client/features/ai-user/services/feature.ts","client/features/ai/errors.ts","client/features/ai/services/feature.ts","client/features/ai/services/internal-business/agents/agent.ts","client/features/ai/services/internal-business/agents/tool-execution-agent.ts","client/features/ai/services/internal-business/agents/utils.ts","client/features/ai/services/internal-business/collections-retriever.ts","client/features/ai/services/internal-business/condition-retriever.ts","client/features/ai/services/internal-business/langchain-dependencies.ts","client/features/ai/services/internal-business/proxy-router.ts","client/features/ai/services/internal-business/tools.ts","client/features/ai/services/internal-business/tools/tool-choose-gateway-option.ts","client/features/ai/services/internal-business/tools/tool-execute-action-on-selected-record.ts","client/features/ai/services/internal-business/tools/tool-get-related-data.ts","client/features/ai/services/internal-business/tools/tool-read-selected-record-field.ts","client/features/ai/services/internal-business/tools/tool-update-selected-record-field.ts","client/features/ai/services/internal-business/tools/utils.ts","client/features/ai/state.ts","client/features/ai/types/ai-steps.ts","client/features/ai/types/schemas.ts","client/features/approval/components/reference-field/template.js","client/features/authentication/components/duplicate-session-modal/template.js","client/features/authentication/components/internal/back-button/component.ts","client/features/authentication/components/internal/back-button/template.js","client/features/authentication/components/internal/button/component.ts","client/features/authentication/components/internal/button/google-logo/template.js","client/features/authentication/components/internal/button/template.js","client/features/authentication/components/internal/footer/component.ts","client/features/authentication/components/internal/footer/template.js","client/features/authentication/components/internal/form/component.ts","client/features/authentication/components/internal/form/template.js","client/features/authentication/components/invitation/component.ts","client/features/authentication/components/invitation/template.js","client/features/authentication/components/login/form/component.ts","client/features/authentication/components/login/form/template.js","client/features/authentication/components/login/sso/component.ts","client/features/authentication/components/login/sso/template.js","client/features/authentication/components/login/two-factor/component.ts","client/features/authentication/components/login/two-factor/modal/component.ts","client/features/authentication/components/login/two-factor/modal/template.js","client/features/authentication/components/login/two-factor/template.js","client/features/authentication/components/oauth/authorize/component.ts","client/features/authentication/components/oauth/authorize/template.js","client/features/authentication/components/reset-password/component.ts","client/features/authentication/components/reset-password/template.js","client/features/authentication/components/sign-up/form/component.ts","client/features/authentication/components/sign-up/form/template.js","client/features/authentication/components/sign-up/sso/component.ts","client/features/authentication/components/sign-up/sso/template.js","client/features/authentication/components/update-password/component.ts","client/features/authentication/components/update-password/template.js","client/features/authentication/errors.ts","client/features/authentication/services/feature.ts","client/features/authentication/services/internal-business/oauth.ts","client/features/authentication/services/internal-feature/after-auth.ts","client/features/authentication/services/internal-feature/invitation.ts","client/features/authentication/services/internal-feature/login.ts","client/features/authentication/services/internal-feature/oauth.ts","client/features/authentication/services/internal-feature/reset-password.ts","client/features/authentication/services/internal-feature/sign-up.ts","client/features/authentication/services/internal-feature/utils.ts","client/features/authentication/state.ts","client/features/billing/components/trial-notification-bar/component.ts","client/features/billing/components/trial-notification-bar/template.js","client/features/billing/services/feature.ts","client/features/billing/services/internal-business/trial.ts","client/features/browser-extension/components/pages/onboarding/component.ts","client/features/browser-extension/components/pages/onboarding/template.js","client/features/browser-extension/components/pages/search/component.ts","client/features/browser-extension/components/pages/search/template.js","client/features/browser-extension/components/pages/settings/advanced-settings/component.ts","client/features/browser-extension/components/pages/settings/advanced-settings/search-setting/component.ts","client/features/browser-extension/components/pages/settings/advanced-settings/search-setting/template.js","client/features/browser-extension/components/pages/settings/advanced-settings/template.js","client/features/browser-extension/components/pages/settings/card/component.ts","client/features/browser-extension/components/pages/settings/card/template.js","client/features/browser-extension/components/pages/settings/component.ts","client/features/browser-extension/components/pages/settings/project-settings/component.ts","client/features/browser-extension/components/pages/settings/project-settings/template.js","client/features/browser-extension/components/pages/settings/template.js","client/features/browser-extension/components/pages/settings/user-details/component.ts","client/features/browser-extension/components/pages/settings/user-details/template.js","client/features/browser-extension/components/shared/card/component.ts","client/features/browser-extension/components/shared/card/deployable/component.ts","client/features/browser-extension/components/shared/card/deployable/template.js","client/features/browser-extension/components/shared/card/template.js","client/features/browser-extension/components/shared/clickable/component.ts","client/features/browser-extension/components/shared/clickable/template.js","client/features/browser-extension/components/shared/footer/component.ts","client/features/browser-extension/components/shared/footer/template.js","client/features/browser-extension/components/shared/go-to-details-button/component.ts","client/features/browser-extension/components/shared/go-to-details-button/template.js","client/features/browser-extension/components/shared/header/component.ts","client/features/browser-extension/components/shared/header/template.js","client/features/browser-extension/components/shared/icons/action/template.js","client/features/browser-extension/components/shared/icons/click/template.js","client/features/browser-extension/components/shared/icons/lock-person/template.js","client/features/browser-extension/components/shared/icons/no-data-box/template.js","client/features/browser-extension/components/shared/layout-view/component.ts","client/features/browser-extension/components/shared/layout-view/template.js","client/features/browser-extension/components/shared/message-with-icon/component.ts","client/features/browser-extension/components/shared/message-with-icon/template.js","client/features/browser-extension/components/shared/record-card/component.ts","client/features/browser-extension/components/shared/record-card/details/component.ts","client/features/browser-extension/components/shared/record-card/details/template.js","client/features/browser-extension/components/shared/record-card/skeleton/template.js","client/features/browser-extension/components/shared/record-card/template.js","client/features/browser-extension/components/shared/related-collection-card/component.ts","client/features/browser-extension/components/shared/related-collection-card/related-data-records/component.ts","client/features/browser-extension/components/shared/related-collection-card/related-data-records/template.js","client/features/browser-extension/components/shared/related-collection-card/template.js","client/features/browser-extension/components/shared/related-record-actions/component.ts","client/features/browser-extension/components/shared/related-record-actions/template.js","client/features/browser-extension/components/shared/search/component.ts","client/features/browser-extension/components/shared/search/records-list/component.ts","client/features/browser-extension/components/shared/search/records-list/template.js","client/features/browser-extension/components/shared/search/template.js","client/features/browser-extension/components/shared/side-panel/template.js","client/features/browser-extension/components/shared/typography/subtitle/template.js","client/features/browser-extension/components/shared/typography/title1/template.js","client/features/browser-extension/components/shared/typography/title2/template.js","client/features/browser-extension/components/shared/view-more-button/template.js","client/features/browser-extension/components/views/action/component.ts","client/features/browser-extension/components/views/action/template.js","client/features/browser-extension/components/views/ai-suggestions/component.ts","client/features/browser-extension/components/views/ai-suggestions/content/component.ts","client/features/browser-extension/components/views/ai-suggestions/content/template.js","client/features/browser-extension/components/views/ai-suggestions/error/component.ts","client/features/browser-extension/components/views/ai-suggestions/error/template.js","client/features/browser-extension/components/views/ai-suggestions/template.js","client/features/browser-extension/components/views/component.ts","client/features/browser-extension/components/views/details/component.ts","client/features/browser-extension/components/views/details/template.js","client/features/browser-extension/components/views/selected-record/component.ts","client/features/browser-extension/components/views/selected-record/template.js","client/features/browser-extension/components/views/template.js","client/features/browser-extension/services/feature.ts","client/features/browser-extension/services/internal-business/action.ts","client/features/browser-extension/services/internal-business/ai/ai-context.ts","client/features/browser-extension/services/internal-business/ai/ai-local-state.ts","client/features/browser-extension/services/internal-business/ai/ai.ts","client/features/browser-extension/services/internal-business/configuration.ts","client/features/browser-extension/services/internal-business/crawling-config.ts","client/features/browser-extension/services/internal-business/crawling.ts","client/features/browser-extension/services/internal-business/extension-message.ts","client/features/browser-extension/services/internal-business/fields.ts","client/features/browser-extension/services/internal-business/project-settings.ts","client/features/browser-extension/services/internal-business/related-records-manager.ts","client/features/browser-extension/services/internal-business/search.ts","client/features/browser-extension/services/internal-business/settings-storage.ts","client/features/browser-extension/services/internal-feature/authentication-routing.ts","client/features/browser-extension/services/internal-feature/router-view.ts","client/features/browser-extension/services/internal-feature/search.ts","client/features/browser-extension/services/internal-feature/session-handler.ts","client/features/browser-extension/services/utils/filter.ts","client/features/browser-extension/services/utils/handle-count-deactivated.ts","client/features/browser-extension/services/utils/to-plain-json.ts","client/features/browser-extension/state.ts","client/features/browser-extension/states/ai-state.ts","client/features/browser-extension/states/crawling-state.ts","client/features/browser-extension/states/router-view-state.ts","client/features/browser-extension/states/search-state.ts","client/features/browser-extension/states/settings-state.ts","client/features/chart/components/line-chart/component.ts","client/features/chart/components/line-chart/template.js","client/features/chart/components/variation-indicator/component.ts","client/features/chart/components/variation-indicator/story.js","client/features/chart/components/variation-indicator/template.js","client/features/chat/components/input/component.ts","client/features/chat/components/input/mentions/component.ts","client/features/chat/components/input/mentions/template.js","client/features/chat/components/input/template.js","client/features/chat/components/main/template.js","client/features/chat/components/message/component.ts","client/features/chat/components/message/content/component.ts","client/features/chat/components/message/content/template.js","client/features/chat/components/message/template.js","client/features/chat/components/thread/component.ts","client/features/chat/components/thread/template.js","client/features/chat/services/feature.ts","client/features/chat/state.ts","client/features/client-record/components/reference-field/component.ts","client/features/client-record/components/reference-field/template.js","client/features/client-record/errors.ts","client/features/client-record/services/feature.ts","client/features/client-record/services/internal-business/crud-handler.ts","client/features/client-record/services/internal-business/relationship-store.ts","client/features/client-record/services/internal-business/state-handler.ts","client/features/client-record/services/internal-business/store.ts","client/features/cloud/components/customization-help/modal/component.ts","client/features/cloud/components/customization-help/modal/template.js","client/features/cloud/components/customization-help/navigation-button/component.ts","client/features/cloud/components/customization-help/navigation-button/template.js","client/features/cloud/components/datasources/component.ts","client/features/cloud/components/datasources/new-datasource/credentials/component.ts","client/features/cloud/components/datasources/new-datasource/credentials/template.js","client/features/cloud/components/datasources/new-datasource/dialect/component.ts","client/features/cloud/components/datasources/new-datasource/dialect/template.js","client/features/cloud/components/datasources/new-datasource/name/component.ts","client/features/cloud/components/datasources/new-datasource/name/template.js","client/features/cloud/components/datasources/template.js","client/features/cloud/components/project-cloud-settings/component.ts","client/features/cloud/components/project-cloud-settings/template.js","client/features/cloud/components/synchronize-button/component.ts","client/features/cloud/components/synchronize-button/template.js","client/features/cloud/components/update-credentials-modal/component.ts","client/features/cloud/components/update-credentials-modal/template.js","client/features/cloud/components/wait-for-synchronization-modal/component.ts","client/features/cloud/components/wait-for-synchronization-modal/template.js","client/features/cloud/help-state.ts","client/features/cloud/services/feature.ts","client/features/cloud/services/internal-business/events.ts","client/features/cloud/services/internal-business/help.ts","client/features/cloud/services/internal-feature/datasources.ts","client/features/cloud/state.ts","client/features/collection/components/side-menu/item/component.ts","client/features/collection/components/side-menu/item/template.js","client/features/collection/errors.ts","client/features/collection/services/feature.ts","client/features/collection/services/internal-business/store.ts","client/features/critical-action-confirmation/components/button/component.ts","client/features/critical-action-confirmation/components/button/story.js","client/features/critical-action-confirmation/components/button/template.js","client/features/critical-action-confirmation/components/modal/component.ts","client/features/critical-action-confirmation/components/modal/story.js","client/features/critical-action-confirmation/components/modal/template.js","client/features/critical-action-confirmation/services/feature.ts","client/features/critical-action-confirmation/services/internal-business/confirmation.ts","client/features/customization-center/components/creation-modal/component.ts","client/features/customization-center/components/creation-modal/template.js","client/features/customization-center/components/modal/component.ts","client/features/customization-center/components/modal/preview/component.ts","client/features/customization-center/components/modal/preview/template.js","client/features/customization-center/components/modal/template.js","client/features/customization-center/components/upgrade-button/component.ts","client/features/customization-center/components/upgrade-button/template.js","client/features/customization-center/services/feature.ts","client/features/customization-center/services/internal-business/configuration.ts","client/features/customization-center/services/internal-business/feature-creation.ts","client/features/dashboard/components/side-menu/item/component.ts","client/features/dashboard/components/side-menu/item/template.js","client/features/dashboard/services/feature.ts","client/features/dashboard/services/internal-business/store.ts","client/features/environment/components/test-environment-selector/component.ts","client/features/environment/components/test-environment-selector/template.js","client/features/folder/components/block/component.ts","client/features/folder/components/block/template.js","client/features/folder/components/children/component.ts","client/features/folder/components/children/template.js","client/features/folder/components/component.ts","client/features/folder/components/empty-state/component.ts","client/features/folder/components/empty-state/template.js","client/features/folder/components/folder-modal/component.ts","client/features/folder/components/folder-modal/template.js","client/features/folder/components/page/template.js","client/features/folder/components/page/view/component.ts","client/features/folder/components/page/view/template.js","client/features/folder/components/settings/component.ts","client/features/folder/components/settings/template.js","client/features/folder/components/side-menu/component.ts","client/features/folder/components/side-menu/template.js","client/features/folder/components/template.js","client/features/folder/errors.ts","client/features/folder/services/feature.ts","client/features/folder/services/internal-business/folder-fetcher.ts","client/features/folder/services/internal-business/manager.ts","client/features/folder/services/internal-business/reorder-handler.ts","client/features/folder/services/internal-business/store.ts","client/features/inbox/components/assign-action/component.ts","client/features/inbox/components/assign-action/form/component.ts","client/features/inbox/components/assign-action/form/template.js","client/features/inbox/components/assign-action/template.js","client/features/inbox/components/assign-to-user-button/component.ts","client/features/inbox/components/assign-to-user-button/template.js","client/features/inbox/components/backlog/component.ts","client/features/inbox/components/backlog/filter/component.ts","client/features/inbox/components/backlog/filter/template.js","client/features/inbox/components/backlog/template.js","client/features/inbox/components/choose-assignment-modal/component.ts","client/features/inbox/components/choose-assignment-modal/template.js","client/features/inbox/components/creation-modal/component.ts","client/features/inbox/components/creation-modal/first-step/component.ts","client/features/inbox/components/creation-modal/first-step/template.js","client/features/inbox/components/creation-modal/second-step/component.ts","client/features/inbox/components/creation-modal/second-step/template.js","client/features/inbox/components/creation-modal/template.js","client/features/inbox/components/creation-modal/third-step/component.ts","client/features/inbox/components/creation-modal/third-step/template.js","client/features/inbox/components/dispatch-rule-form/component.ts","client/features/inbox/components/dispatch-rule-form/template.js","client/features/inbox/components/display-sorted-field/template.js","client/features/inbox/components/doing-page/component.ts","client/features/inbox/components/doing-page/template.js","client/features/inbox/components/notification-bar/component.ts","client/features/inbox/components/notification-bar/template.js","client/features/inbox/components/preview/template.js","client/features/inbox/components/settings/auto-unassign/template.js","client/features/inbox/components/settings/component.ts","client/features/inbox/components/settings/edit-dispatch-rule-modal/component.ts","client/features/inbox/components/settings/edit-dispatch-rule-modal/template.js","client/features/inbox/components/settings/reassignment-from-users/template.js","client/features/inbox/components/settings/tasks-limit/template.js","client/features/inbox/components/settings/template.js","client/features/inbox/components/side-menu/item/component.ts","client/features/inbox/components/side-menu/item/template.js","client/features/inbox/components/start-processing-button/component.ts","client/features/inbox/components/start-processing-button/template.js","client/features/inbox/components/to-do-page/component.ts","client/features/inbox/components/to-do-page/template.js","client/features/inbox/errors.ts","client/features/inbox/services/feature.ts","client/features/inbox/services/internal-business/backlog-tasks-fetcher.ts","client/features/inbox/services/internal-business/inbox-manager.ts","client/features/inbox/services/internal-business/tasks-fetcher.ts","client/features/inbox/services/internal-business/workflow-fetcher.ts","client/features/inbox/services/internal-feature/workflow.ts","client/features/inbox/state.ts","client/features/mcp-server/components/create/component.ts","client/features/mcp-server/components/create/template.js","client/features/mcp-server/components/details/component.ts","client/features/mcp-server/components/details/template.js","client/features/mcp-server/components/edit/component.ts","client/features/mcp-server/components/edit/template.js","client/features/mcp-server/components/empty-state/component.ts","client/features/mcp-server/components/empty-state/template.js","client/features/mcp-server/components/form/component.ts","client/features/mcp-server/components/form/template.js","client/features/mcp-server/components/icon/component.ts","client/features/mcp-server/components/icon/template.js","client/features/mcp-server/components/integrations-modal/component.ts","client/features/mcp-server/components/integrations-modal/integration-card/component.ts","client/features/mcp-server/components/integrations-modal/integration-card/template.js","client/features/mcp-server/components/integrations-modal/integration-info/component.ts","client/features/mcp-server/components/integrations-modal/integration-info/template.js","client/features/mcp-server/components/integrations-modal/list-view/component.ts","client/features/mcp-server/components/integrations-modal/list-view/template.js","client/features/mcp-server/components/integrations-modal/template.js","client/features/mcp-server/components/page/component.ts","client/features/mcp-server/components/page/template.js","client/features/mcp-server/error.ts","client/features/mcp-server/integration-data.ts","client/features/mcp-server/services/feature.ts","client/features/mcp-server/services/internal-business/oauth-discovery.ts","client/features/mcp-server/services/internal-business/oauth-token-storage.ts","client/features/mcp-server/services/internal-business/oauth.ts","client/features/mcp-server/services/internal-business/store.ts","client/features/mcp-server/state.ts","client/features/mocked-agent/services/feature.ts","client/features/modal/components/internal/modal-window/component.ts","client/features/modal/components/internal/modal-window/template.js","client/features/modal/components/modal-container/component.ts","client/features/modal/components/modal-container/template.js","client/features/modal/components/right-panel-container/component.ts","client/features/modal/components/right-panel-container/template.js","client/features/modal/services/feature.ts","client/features/modal/state.ts","client/features/model-customization/services/feature.ts","client/features/model-customization/services/internal-business/store.ts","client/features/newsletter/components/component.ts","client/features/newsletter/components/process-driven-navigation/component.ts","client/features/newsletter/components/process-driven-navigation/template.js","client/features/newsletter/components/template.js","client/features/newsletter/components/workflow-launch/component.ts","client/features/newsletter/components/workflow-launch/template.js","client/features/newsletter/services/feature.ts","client/features/newsletter/services/internal-business/manager.ts","client/features/notification/services/feature.ts","client/features/notification/services/internal-business/manager.ts","client/features/notification/state.ts","client/features/notification/toastr-item.ts","client/features/onboarding/components/database/component.ts","client/features/onboarding/components/database/template.js","client/features/onboarding/components/framework/component.ts","client/features/onboarding/components/framework/template.js","client/features/onboarding/components/hosting/component.ts","client/features/onboarding/components/hosting/template.js","client/features/onboarding/components/layout/component.ts","client/features/onboarding/components/layout/footer/component.ts","client/features/onboarding/components/layout/footer/template.js","client/features/onboarding/components/layout/template.js","client/features/onboarding/components/need-help-link/template.js","client/features/onboarding/components/orm/component.ts","client/features/onboarding/components/orm/template.js","client/features/onboarding/components/phase-header/component.ts","client/features/onboarding/components/phase-header/template.js","client/features/onboarding/components/phase/introduction/familiarity-with-coding/component.ts","client/features/onboarding/components/phase/introduction/familiarity-with-coding/template.js","client/features/onboarding/components/phase/introduction/usecase/component.ts","client/features/onboarding/components/phase/introduction/usecase/template.js","client/features/onboarding/components/phase/launch/project-deploying/component.ts","client/features/onboarding/components/phase/launch/project-deploying/story.js","client/features/onboarding/components/phase/launch/project-deploying/template.js","client/features/onboarding/components/phase/launch/review/component.ts","client/features/onboarding/components/phase/launch/review/template.js","client/features/onboarding/components/phase/setup/create-project/component.ts","client/features/onboarding/components/phase/setup/create-project/template.js","client/features/onboarding/components/phase/setup/pick-datasource/component.ts","client/features/onboarding/components/phase/setup/pick-datasource/template.js","client/features/onboarding/components/stack/component.ts","client/features/onboarding/components/stack/template.js","client/features/onboarding/components/wrapper/component.ts","client/features/onboarding/components/wrapper/template.js","client/features/onboarding/errors.ts","client/features/onboarding/services/feature.ts","client/features/onboarding/services/internal-business/introduction.ts","client/features/onboarding/services/internal-business/launch.ts","client/features/onboarding/services/internal-business/setup.ts","client/features/report/components/page/component.ts","client/features/report/components/page/template.js","client/features/role/services/feature.ts","client/features/role/services/internal-business/permissions-handler.ts","client/features/segment/components/side-menu/item/component.ts","client/features/segment/components/side-menu/item/template.js","client/features/segment/services/feature.ts","client/features/segment/services/internal-business/segment-manager.ts","client/features/segment/services/internal-business/store.ts","client/features/smart-features/error.ts","client/features/smart-features/services/feature.ts","client/features/smart-features/services/internal-business/view-lists-manager.ts","client/features/team-performance/components/filters/component.ts","client/features/team-performance/components/filters/template.js","client/features/team-performance/components/leaderboard/component.ts","client/features/team-performance/components/leaderboard/template.js","client/features/team-performance/components/overview/item/component.ts","client/features/team-performance/components/overview/item/template.js","client/features/team-performance/components/overview/list/template.js","client/features/team-performance/components/page/component.ts","client/features/team-performance/components/page/template.js","client/features/team-performance/components/performance/component.ts","client/features/team-performance/components/performance/template.js","client/features/team-performance/components/preview/template.js","client/features/team-performance/components/side-menu-item/component.ts","client/features/team-performance/components/side-menu-item/template.js","client/features/team-performance/errors.ts","client/features/team-performance/services/feature.ts","client/features/team-performance/services/internal-business/count-fetcher.ts","client/features/team-performance/services/internal-business/state-store.ts","client/features/team-performance/services/internal-business/stats-processor.ts","client/features/team-performance/state.ts","client/features/team/components/details/component.ts","client/features/team/components/details/template.js","client/features/team/components/features-management/component.ts","client/features/team/components/features-management/template.js","client/features/team/errors.ts","client/features/team/services/feature.ts","client/features/team/services/internal-business/team-manager.ts","client/features/user/components/profile/component.ts","client/features/user/components/profile/picture/component.ts","client/features/user/components/profile/picture/empty/template.js","client/features/user/components/profile/picture/loader/template.js","client/features/user/components/profile/picture/not-found/template.js","client/features/user/components/profile/picture/template.js","client/features/user/components/profile/template.js","client/features/user/components/search-inline/component.ts","client/features/user/components/search-inline/template.js","client/features/user/components/search/component.ts","client/features/user/components/search/template.js","client/features/user/services/feature.ts","client/features/user/services/internal-business/user-manager.ts","client/features/widgets/components/display/json-tree/widget-column-layout/component.ts","client/features/widgets/components/display/json-tree/widget-column-layout/template.js","client/features/widgets/components/display/json-tree/widget-layout/component.ts","client/features/widgets/components/display/json-tree/widget-layout/template.js","client/features/widgets/components/display/json-tree/widget-settings/component.ts","client/features/widgets/components/display/json-tree/widget-settings/template.js","client/features/workflow-editor/components/banner/component.ts","client/features/workflow-editor/components/banner/template.js","client/features/workflow-editor/components/bpmn-type-icon/component.ts","client/features/workflow-editor/components/bpmn-type-icon/template.js","client/features/workflow-editor/components/collapse-button/component.ts","client/features/workflow-editor/components/collapse-button/template.js","client/features/workflow-editor/components/component.ts","client/features/workflow-editor/components/deletion-confirmation-modal/component.ts","client/features/workflow-editor/components/deletion-confirmation-modal/template.js","client/features/workflow-editor/components/go-to-gateway-button/component.ts","client/features/workflow-editor/components/go-to-gateway-button/template.js","client/features/workflow-editor/components/header/component.ts","client/features/workflow-editor/components/header/error-button/component.ts","client/features/workflow-editor/components/header/error-button/error-line/component.ts","client/features/workflow-editor/components/header/error-button/error-line/template.js","client/features/workflow-editor/components/header/error-button/modal/component.ts","client/features/workflow-editor/components/header/error-button/modal/template.js","client/features/workflow-editor/components/header/error-button/template.js","client/features/workflow-editor/components/header/template.js","client/features/workflow-editor/components/item-configuration-panel/button/component.ts","client/features/workflow-editor/components/item-configuration-panel/button/template.js","client/features/workflow-editor/components/item-configuration-panel/call-activity/component.ts","client/features/workflow-editor/components/item-configuration-panel/call-activity/template.js","client/features/workflow-editor/components/item-configuration-panel/component.ts","client/features/workflow-editor/components/item-configuration-panel/delete-button/component.ts","client/features/workflow-editor/components/item-configuration-panel/delete-button/template.js","client/features/workflow-editor/components/item-configuration-panel/description/component.ts","client/features/workflow-editor/components/item-configuration-panel/description/template.js","client/features/workflow-editor/components/item-configuration-panel/duplicate-button/component.ts","client/features/workflow-editor/components/item-configuration-panel/duplicate-button/template.js","client/features/workflow-editor/components/item-configuration-panel/empty-state/component.ts","client/features/workflow-editor/components/item-configuration-panel/empty-state/template.js","client/features/workflow-editor/components/item-configuration-panel/escalate/component.ts","client/features/workflow-editor/components/item-configuration-panel/escalate/template.js","client/features/workflow-editor/components/item-configuration-panel/event/component.ts","client/features/workflow-editor/components/item-configuration-panel/event/template.js","client/features/workflow-editor/components/item-configuration-panel/gateway/component.ts","client/features/workflow-editor/components/item-configuration-panel/gateway/template.js","client/features/workflow-editor/components/item-configuration-panel/guidance/component.ts","client/features/workflow-editor/components/item-configuration-panel/guidance/template.js","client/features/workflow-editor/components/item-configuration-panel/header/component.ts","client/features/workflow-editor/components/item-configuration-panel/header/template.js","client/features/workflow-editor/components/item-configuration-panel/link-to-task/component.ts","client/features/workflow-editor/components/item-configuration-panel/link-to-task/template.js","client/features/workflow-editor/components/item-configuration-panel/name/component.ts","client/features/workflow-editor/components/item-configuration-panel/name/template.js","client/features/workflow-editor/components/item-configuration-panel/sub-process/template.js","client/features/workflow-editor/components/item-configuration-panel/template.js","client/features/workflow-editor/components/palette/component.ts","client/features/workflow-editor/components/palette/template.js","client/features/workflow-editor/components/renderer/card/component.ts","client/features/workflow-editor/components/renderer/card/template.js","client/features/workflow-editor/components/renderer/component.ts","client/features/workflow-editor/components/renderer/flat/card/component.ts","client/features/workflow-editor/components/renderer/flat/card/template.js","client/features/workflow-editor/components/renderer/flat/component.ts","client/features/workflow-editor/components/renderer/flat/link-to-line/component.ts","client/features/workflow-editor/components/renderer/flat/link-to-line/template.js","client/features/workflow-editor/components/renderer/flat/mini-card/component.ts","client/features/workflow-editor/components/renderer/flat/mini-card/template.js","client/features/workflow-editor/components/renderer/flat/placeholder/component.ts","client/features/workflow-editor/components/renderer/flat/placeholder/template.js","client/features/workflow-editor/components/renderer/flat/template.js","client/features/workflow-editor/components/renderer/template.js","client/features/workflow-editor/components/renderer/tool-bar/component.ts","client/features/workflow-editor/components/renderer/tool-bar/template.js","client/features/workflow-editor/components/saving-error-modal/component.ts","client/features/workflow-editor/components/saving-error-modal/template.js","client/features/workflow-editor/components/template.js","client/features/workflow-editor/components/upload-modal/component.ts","client/features/workflow-editor/components/upload-modal/template.js","client/features/workflow-editor/configuration.ts","client/features/workflow-editor/errors.ts","client/features/workflow-editor/services/feature.ts","client/features/workflow-editor/services/internal-business/bpmn.ts","client/features/workflow-editor/services/internal-business/collapse.ts","client/features/workflow-editor/services/internal-business/custom-command-stack.ts","client/features/workflow-editor/services/internal-business/custom-context-pad-v2.ts","client/features/workflow-editor/services/internal-business/custom-context-pad.ts","client/features/workflow-editor/services/internal-business/custom-palette-v2.ts","client/features/workflow-editor/services/internal-business/custom-palette.ts","client/features/workflow-editor/services/internal-business/custom-popup-menu-provider.ts","client/features/workflow-editor/services/internal-business/duplication.ts","client/features/workflow-editor/services/internal-business/manager.ts","client/features/workflow-editor/services/internal-business/reorder-gateway-options-handler.ts","client/features/workflow-editor/services/internal-feature/drop-rules.ts","client/features/workflow-editor/services/internal-feature/error-handling.ts","client/features/workflow-editor/services/internal-feature/flat-renderer/card-ui.ts","client/features/workflow-editor/services/internal-feature/flat-renderer/connection-calculator.ts","client/features/workflow-editor/services/internal-feature/flat-renderer/connection-virtualizer.ts","client/features/workflow-editor/services/internal-feature/flat-renderer/flattener.ts","client/features/workflow-editor/services/internal-feature/flat-renderer/height-calculator.ts","client/features/workflow-editor/services/internal-feature/flat-renderer/position-calculator.ts","client/features/workflow-editor/services/internal-feature/flat-renderer/renderer.ts","client/features/workflow-editor/services/internal-feature/flat-renderer/types.ts","client/features/workflow-editor/services/internal-feature/flat-renderer/ui.ts","client/features/workflow-editor/services/internal-feature/flat-renderer/viewport-bounds.ts","client/features/workflow-editor/services/internal-feature/flat-renderer/virtualizer.ts","client/features/workflow-editor/services/internal-feature/selection.ts","client/features/workflow-editor/services/internal-feature/sub-process.ts","client/features/workflow-editor/services/internal-feature/zoom.ts","client/features/workflow-editor/state.ts","client/features/workflow-editor/utils/zoom-geometry.ts","client/features/workflow-visualizer/components/ai-panel/template.js","client/features/workflow-visualizer/components/card/component.ts","client/features/workflow-visualizer/components/card/template.js","client/features/workflow-visualizer/components/close-confirmation/template.js","client/features/workflow-visualizer/components/container/component.ts","client/features/workflow-visualizer/components/container/template.js","client/features/workflow-visualizer/components/panel/component.ts","client/features/workflow-visualizer/components/panel/template.js","client/features/workflow-visualizer/components/revise-confirmation/component.ts","client/features/workflow-visualizer/components/revise-confirmation/template.js","client/features/workflow-visualizer/components/step/common/buttons/component.ts","client/features/workflow-visualizer/components/step/common/buttons/template.js","client/features/workflow-visualizer/components/step/common/handle-manually-instruction/component.ts","client/features/workflow-visualizer/components/step/common/handle-manually-instruction/template.js","client/features/workflow-visualizer/components/step/common/handle-manually-modal/template.js","client/features/workflow-visualizer/components/step/common/handle-manually/component.ts","client/features/workflow-visualizer/components/step/common/handle-manually/template.js","client/features/workflow-visualizer/components/step/common/record-context-title/template.js","client/features/workflow-visualizer/components/step/common/selected-record/component.ts","client/features/workflow-visualizer/components/step/common/selected-record/template.js","client/features/workflow-visualizer/components/step/common/transition-button/component.ts","client/features/workflow-visualizer/components/step/common/transition-button/template.js","client/features/workflow-visualizer/components/step/component.ts","client/features/workflow-visualizer/components/step/condition/component.ts","client/features/workflow-visualizer/components/step/condition/template.js","client/features/workflow-visualizer/components/step/end/component.ts","client/features/workflow-visualizer/components/step/end/template.js","client/features/workflow-visualizer/components/step/escalation/component.ts","client/features/workflow-visualizer/components/step/escalation/template.js","client/features/workflow-visualizer/components/step/get-data/component.ts","client/features/workflow-visualizer/components/step/get-data/field/component.ts","client/features/workflow-visualizer/components/step/get-data/field/template.js","client/features/workflow-visualizer/components/step/get-data/template.js","client/features/workflow-visualizer/components/step/guideline/component.ts","client/features/workflow-visualizer/components/step/guideline/template.js","client/features/workflow-visualizer/components/step/load-related-record/component.ts","client/features/workflow-visualizer/components/step/load-related-record/loaded/component.ts","client/features/workflow-visualizer/components/step/load-related-record/loaded/template.js","client/features/workflow-visualizer/components/step/load-related-record/template.js","client/features/workflow-visualizer/components/step/mcp-server/component.ts","client/features/workflow-visualizer/components/step/mcp-server/template.js","client/features/workflow-visualizer/components/step/template.js","client/features/workflow-visualizer/components/step/trigger-action/component.ts","client/features/workflow-visualizer/components/step/trigger-action/template.js","client/features/workflow-visualizer/components/step/update-data/component.ts","client/features/workflow-visualizer/components/step/update-data/modal/component.ts","client/features/workflow-visualizer/components/step/update-data/modal/template.js","client/features/workflow-visualizer/components/step/update-data/template.js","client/features/workflow-visualizer/components/sub-workflow/component.ts","client/features/workflow-visualizer/components/sub-workflow/template.js","client/features/workflow-visualizer/components/visualization/component.ts","client/features/workflow-visualizer/components/visualization/template.js","client/features/workflow-visualizer/errors.ts","client/features/workflow-visualizer/services/feature.ts","client/features/workflow-visualizer/services/internal-business/action-runner.ts","client/features/workflow-visualizer/services/internal-business/executor.ts","client/features/workflow-visualizer/services/internal-business/orchestrator.ts","client/features/workflow-visualizer/services/internal-business/record-store.ts","client/features/workflow-visualizer/services/internal-business/step-hydrator.ts","client/features/workflow-visualizer/services/internal-business/subscription.ts","client/features/workflow-visualizer/services/internal-feature/utils.ts","client/features/workflow-visualizer/state.ts","client/features/workflow-visualizer/types/executor.ts","client/features/workflow-visualizer/types/type-guards.ts","client/features/workflow-visualizer/types/workflow-run.ts","client/features/workflow-visualizer/types/workflow-step.ts","client/features/workflow-visualizer/utils/serialize-pending-data.ts","client/features/workflow/components/ai-interaction/ai-panel/template.js","client/features/workflow/components/ai-interaction/component.ts","client/features/workflow/components/ai-interaction/confirmation/buttons/component.ts","client/features/workflow/components/ai-interaction/confirmation/buttons/template.js","client/features/workflow/components/ai-interaction/confirmation/template.js","client/features/workflow/components/ai-interaction/handle-manually-modal/template.js","client/features/workflow/components/ai-interaction/instruction/template.js","client/features/workflow/components/ai-interaction/template.js","client/features/workflow/components/ai-interaction/tools/choose-gateway-option/component.ts","client/features/workflow/components/ai-interaction/tools/choose-gateway-option/template.js","client/features/workflow/components/ai-interaction/tools/error/template.js","client/features/workflow/components/ai-interaction/tools/execute-action/component.ts","client/features/workflow/components/ai-interaction/tools/execute-action/template.js","client/features/workflow/components/ai-interaction/tools/final-answer/template.js","client/features/workflow/components/ai-interaction/tools/get-related-data/component.ts","client/features/workflow/components/ai-interaction/tools/get-related-data/template.js","client/features/workflow/components/ai-interaction/tools/read-multiple-record-fields/component.ts","client/features/workflow/components/ai-interaction/tools/read-multiple-record-fields/field-value/component.ts","client/features/workflow/components/ai-interaction/tools/read-multiple-record-fields/field-value/template.js","client/features/workflow/components/ai-interaction/tools/read-multiple-record-fields/template.js","client/features/workflow/components/ai-interaction/tools/read-record-field/component.ts","client/features/workflow/components/ai-interaction/tools/read-record-field/template.js","client/features/workflow/components/ai-interaction/tools/unknown/component.ts","client/features/workflow/components/ai-interaction/tools/unknown/template.js","client/features/workflow/components/ai-interaction/tools/update-record/component.ts","client/features/workflow/components/ai-interaction/tools/update-record/template.js","client/features/workflow/components/bpmn-uploader/component.ts","client/features/workflow/components/bpmn-uploader/template.js","client/features/workflow/components/button/ai-confirm/template.js","client/features/workflow/components/button/done/template.js","client/features/workflow/components/button/escalate/template.js","client/features/workflow/components/button/no/template.js","client/features/workflow/components/button/revise/template.js","client/features/workflow/components/button/yes/template.js","client/features/workflow/components/card/component.ts","client/features/workflow/components/card/step/component.ts","client/features/workflow/components/card/step/condition/component.ts","client/features/workflow/components/card/step/condition/template.js","client/features/workflow/components/card/step/template.js","client/features/workflow/components/card/step/user-input/component.ts","client/features/workflow/components/card/step/user-input/template.js","client/features/workflow/components/card/template.js","client/features/workflow/components/close-confirmation/template.js","client/features/workflow/components/create-update-status/component.ts","client/features/workflow/components/create-update-status/template.js","client/features/workflow/components/dropdown/component.ts","client/features/workflow/components/dropdown/edit/component.ts","client/features/workflow/components/dropdown/edit/template.js","client/features/workflow/components/dropdown/run-list/component.ts","client/features/workflow/components/dropdown/run-list/template.js","client/features/workflow/components/dropdown/template.js","client/features/workflow/components/escalation/component.ts","client/features/workflow/components/escalation/template.js","client/features/workflow/components/revise-confirmation/component.ts","client/features/workflow/components/revise-confirmation/template.js","client/features/workflow/components/shared/name-input/component.ts","client/features/workflow/components/shared/name-input/template.js","client/features/workflow/components/shared/segments-selector/component.ts","client/features/workflow/components/shared/segments-selector/template.js","client/features/workflow/components/status/component.ts","client/features/workflow/components/status/template.js","client/features/workflow/components/sub-workflow/component.ts","client/features/workflow/components/sub-workflow/template.js","client/features/workflow/components/transition-button/component.ts","client/features/workflow/components/transition-button/template.js","client/features/workflow/components/update/component.ts","client/features/workflow/components/update/template.js","client/features/workflow/components/visualization/component.ts","client/features/workflow/components/visualization/template.js","client/features/workflow/components/workflow-container/component.ts","client/features/workflow/components/workflow-container/template.js","client/features/workflow/errors.ts","client/features/workflow/services/feature.ts","client/features/workflow/services/internal-business/activity-tracker.ts","client/features/workflow/services/internal-business/ai-interactions.ts","client/features/workflow/services/internal-business/bpmn-parser.ts","client/features/workflow/services/internal-business/execution.ts","client/features/workflow/services/internal-business/manager.ts","client/features/workflow/services/internal-business/related-records.ts","client/features/workflow/services/internal-business/run-manager.ts","client/features/workflow/services/internal-business/store.ts","client/features/workflow/services/internal-business/utils.ts","client/features/workflow/services/internal-business/workflow-llm-interface.ts","client/features/workflow/services/internal-business/workflow-run-listener-interface.ts","client/features/workflow/services/internal-business/workflow-state-interface.ts","client/features/workflow/services/internal-feature/execution.ts","client/features/workflow/services/standalone-package/index.ts","client/features/workflow/services/standalone-package/services/ai-module/ai-service.ts","client/features/workflow/services/standalone-package/services/ai-module/prompts-service.ts","client/features/workflow/services/standalone-package/services/ai-module/tool-execution-service.ts","client/features/workflow/services/standalone-package/services/ai-module/tool-select-record.ts","client/features/workflow/services/standalone-package/services/parser-module/bpmn-parser.ts","client/features/workflow/services/standalone-package/services/parser-module/parser-warnings.ts","client/features/workflow/services/standalone-package/services/state-service.ts","client/features/workflow/services/standalone-package/services/workflow-engine.ts","client/features/workflow/services/standalone-package/step-modules/condition-step/context.ts","client/features/workflow/services/standalone-package/step-modules/condition-step/execution-service.ts","client/features/workflow/services/standalone-package/step-modules/condition-step/step-type.ts","client/features/workflow/services/standalone-package/step-modules/generic-class.ts","client/features/workflow/services/standalone-package/types/activity.ts","client/features/workflow/services/standalone-package/types/errors.ts","client/features/workflow/services/standalone-package/types/run-update.ts","client/features/workflow/services/standalone-package/types/steps.ts","client/features/workflow/services/standalone-package/types/transition.ts","client/features/workflow/services/standalone-package/types/workflow-run.ts","client/features/workflow/services/standalone-package/types/workflow-step-context.ts","client/features/workflow/services/standalone-package/types/workflow-step-history.ts","client/features/workflow/services/standalone-package/utils.ts","client/features/workflow/state.ts","client/features/workflow/types/type-guards.ts","client/features/workflow/types/workflow-ai-agent-context.ts","client/features/workflow/types/workflow-step-context.ts","client/features/workflow/types/workflow-step.ts","client/features/workflow/types/workflow.ts","client/features/workflow/utils/to-standalone-record.ts","client/features/workspace/components/component-configuration/action/component.ts","client/features/workspace/components/component-configuration/action/template.js","client/features/workspace/components/component-configuration/chart/template.js","client/features/workspace/components/component-configuration/collection/component.ts","client/features/workspace/components/component-configuration/collection/template.js","client/features/workspace/components/component-configuration/component.js","client/features/workspace/components/component-configuration/date-picker/component.ts","client/features/workspace/components/component-configuration/date-picker/template.js","client/features/workspace/components/component-configuration/divider/template.js","client/features/workspace/components/component-configuration/dropdown/template.js","client/features/workspace/components/component-configuration/field/component.ts","client/features/workspace/components/component-configuration/field/template.js","client/features/workspace/components/component-configuration/inbox/component.ts","client/features/workspace/components/component-configuration/inbox/template.js","client/features/workspace/components/component-configuration/input/template.js","client/features/workspace/components/component-configuration/link/template.js","client/features/workspace/components/component-configuration/metabase/template.js","client/features/workspace/components/component-configuration/on-row-click-selector/template.js","client/features/workspace/components/component-configuration/search/component.ts","client/features/workspace/components/component-configuration/search/template.js","client/features/workspace/components/component-configuration/section/template.js","client/features/workspace/components/component-configuration/smart/template.js","client/features/workspace/components/component-configuration/style-section/component.ts","client/features/workspace/components/component-configuration/style-section/template.js","client/features/workspace/components/component-configuration/tabs/component.ts","client/features/workspace/components/component-configuration/tabs/template.js","client/features/workspace/components/component-configuration/template.js","client/features/workspace/components/component-configuration/templating-info-tooltip/template.js","client/features/workspace/components/component-configuration/templating-input/component.js","client/features/workspace/components/component-configuration/templating-input/template.js","client/features/workspace/components/component-configuration/text/template.js","client/features/workspace/components/component-configuration/toggle/component.ts","client/features/workspace/components/component-configuration/toggle/template.js","client/features/workspace/components/component-configuration/workflow/component.ts","client/features/workspace/components/component-configuration/workflow/template.js","client/features/workspace/components/component-renderer/action/component.ts","client/features/workspace/components/component-renderer/action/template.js","client/features/workspace/components/component-renderer/chart/component.ts","client/features/workspace/components/component-renderer/chart/template.js","client/features/workspace/components/component-renderer/collection/component.ts","client/features/workspace/components/component-renderer/collection/template.js","client/features/workspace/components/component-renderer/component.js","client/features/workspace/components/component-renderer/date-picker/component.ts","client/features/workspace/components/component-renderer/date-picker/template.js","client/features/workspace/components/component-renderer/divider/component.js","client/features/workspace/components/component-renderer/divider/template.js","client/features/workspace/components/component-renderer/dropdown/template.js","client/features/workspace/components/component-renderer/field/component.ts","client/features/workspace/components/component-renderer/field/template.js","client/features/workspace/components/component-renderer/inbox/component.ts","client/features/workspace/components/component-renderer/inbox/doing-item/component.ts","client/features/workspace/components/component-renderer/inbox/doing-item/template.js","client/features/workspace/components/component-renderer/inbox/template.js","client/features/workspace/components/component-renderer/input/component.ts","client/features/workspace/components/component-renderer/input/template.js","client/features/workspace/components/component-renderer/link/component.ts","client/features/workspace/components/component-renderer/link/template.js","client/features/workspace/components/component-renderer/metabase/component.ts","client/features/workspace/components/component-renderer/metabase/template.js","client/features/workspace/components/component-renderer/search/component.ts","client/features/workspace/components/component-renderer/search/template.js","client/features/workspace/components/component-renderer/section/component.ts","client/features/workspace/components/component-renderer/section/template.js","client/features/workspace/components/component-renderer/smart/component.ts","client/features/workspace/components/component-renderer/smart/template.js","client/features/workspace/components/component-renderer/tabs/component.ts","client/features/workspace/components/component-renderer/tabs/template.js","client/features/workspace/components/component-renderer/template.js","client/features/workspace/components/component-renderer/text/component.ts","client/features/workspace/components/component-renderer/text/template.js","client/features/workspace/components/component-renderer/toggle/template.js","client/features/workspace/components/component-renderer/workflow/component.ts","client/features/workspace/components/component-renderer/workflow/template.js","client/features/workspace/components/configure-component/component.ts","client/features/workspace/components/configure-component/template.js","client/features/workspace/components/per-record/component.ts","client/features/workspace/components/per-record/empty-state/component.ts","client/features/workspace/components/per-record/empty-state/template.js","client/features/workspace/components/per-record/template.js","client/features/workspace/components/side-menu/item/component.ts","client/features/workspace/components/side-menu/item/template.js","client/features/workspace/errors.ts","client/features/workspace/services/feature.ts","client/features/workspace/services/internal-business/manager.ts","client/features/workspace/services/internal-business/store.ts","client/features/workspace/services/internal-business/summary-converter.ts","client/features/workspace/state.ts","client/gql/queries/check-project-existence.graphql.js","client/gql/queries/get-environments-without-enabled-roles.graphql.js","client/gql/queries/get-layout-change-count.graphql.js","client/gql/queries/get-project-database-dialect.graphql.js","client/gql/queries/get-session-token.graphql.js","client/gql/subscriptions/branch-changed-on-environment.graphql.js","client/gql/subscriptions/branch-pushed-to-remote.graphql.js","client/gql/subscriptions/environment-deployed.graphql.js","client/gql/subscriptions/environment-development-v2-initialized.graphql.js","client/gql/subscriptions/environment-permissions-copied.graphql.js","client/gql/subscriptions/environment-ready.graphql.js","client/gql/subscriptions/environment-update-ended.graphql.js","client/gql/subscriptions/environment-update-failed.graphql.js","client/gql/subscriptions/environment-update-finished.graphql.js","client/gql/subscriptions/environment-update-started.graphql.js","client/gql/subscriptions/full-hosted-deploy-failed.graphql.js","client/gql/subscriptions/full-hosted-restart-ended.graphql.js","client/gql/subscriptions/full-hosted-restart-failed.graphql.js","client/gql/subscriptions/full-hosted-restart-started.graphql.js","client/gql/subscriptions/full-hosted-update-credentials-failed.graphql.js","client/gql/subscriptions/full-hosted-update-credentials-started.graphql.js","client/gql/subscriptions/layout-changes-updated.graphql.js","client/gql/subscriptions/lumber-encountered-error.graphql.js","client/gql/subscriptions/lumber-succeed.graphql.js","client/gql/subscriptions/lumber-synchronized-project.graphql.js","client/gql/subscriptions/new-notification.graphql.js","client/gql/subscriptions/notification-from-agent.graphql.js","client/gql/subscriptions/workflow-run-updated.graphql.js","client/gql/utils/check-project-existence.js","client/gql/utils/get-environments-without-enabled-roles.js","client/gql/utils/get-layout-change-count.js","client/gql/utils/get-project-database-dialect.js","client/gql/utils/get-session-token.js","client/gql/utils/watch-collaboration-notification.js","client/gql/utils/watch-copy-permissions-finished.js","client/gql/utils/watch-environment-update-ended.js","client/gql/utils/watch-layout-changes-count.js","client/gql/utils/watch-lumber-encountered-error.js","client/gql/utils/watch-lumber-succeed.js","client/gql/utils/watch-lumber-synchronized-project.js","client/gql/utils/watch-notification-from-agent.ts","client/helpers/app-version.js","client/helpers/asset-map.js","client/helpers/pluralize.js","client/helpers/singularize.js","client/initializers/ace.js","client/initializers/app-version.js","client/initializers/asset-map.js","client/initializers/bigint-to-json.js","client/initializers/deprecation-workflow.ts","client/initializers/ember-cli-mirage.js","client/initializers/ember-data.js","client/initializers/emoji-picker.js","client/initializers/inflector.ts","client/initializers/model-fragments.js","client/initializers/quill.ts","client/initializers/reopen-model.js","client/initializers/title-token.js","client/instance-initializers/datadog.ts","client/instance-initializers/ember-data.js","client/instance-initializers/forest-session.js","client/legacy/abstract-components/abstract-beta-input.js","client/legacy/abstract-components/animation-component.js","client/legacy/abstract-components/dropdown-select-component.ts","client/legacy/abstract-components/workspace-component-renderer.ts","client/legacy/abstract-controllers/abstract-onboarding-steps-controller.ts","client/legacy/abstract-controllers/chart-controller.js","client/legacy/abstract-controllers/role-permissions-controller.ts","client/legacy/abstract-controllers/role-permissions-details-controller.js","client/legacy/abstract-routes/abstract-onboarding-selection-route.js","client/legacy/abstract-routes/abstract-workspace-configure-component-route.ts","client/legacy/abstract-routes/chart-route.js","client/legacy/abstract-routes/rendering-route.ts","client/legacy/abstract-routes/restricted-section-access-route.ts","client/legacy/abstract-routes/role-permissions-details-route.js","client/legacy/abstract-routes/smart-chart-editor-route.js","client/legacy/abstract-routes/view-edit-relationship-create-route.js","client/legacy/mixins/smart-view-mixin.js","client/legacy/pods/application/controller.js","client/legacy/pods/application/route.js","client/legacy/pods/application/template.js","client/legacy/pods/authentication-token/route.js","client/legacy/pods/components/alter-values/component.js","client/legacy/pods/components/alter-values/template.js","client/legacy/pods/components/assignee/assignee-tooltip/component.ts","client/legacy/pods/components/assignee/assignee-tooltip/template.js","client/legacy/pods/components/assignee/component.ts","client/legacy/pods/components/assignee/search/component.ts","client/legacy/pods/components/assignee/search/template.js","client/legacy/pods/components/assignee/template.js","client/legacy/pods/components/authentication/iframe-google-login/component.js","client/legacy/pods/components/authentication/iframe-google-login/template.js","client/legacy/pods/components/authentication/iframe-message-receiver/component.ts","client/legacy/pods/components/authentication/liana-login/component.js","client/legacy/pods/components/authentication/liana-login/legacy/component.js","client/legacy/pods/components/authentication/liana-login/legacy/template.js","client/legacy/pods/components/authentication/liana-login/oidc/component.js","client/legacy/pods/components/authentication/liana-login/oidc/template.js","client/legacy/pods/components/authentication/liana-login/template.js","client/legacy/pods/components/authentication/oidc/device-confirm-form/component.js","client/legacy/pods/components/authentication/oidc/device-confirm-form/template.js","client/legacy/pods/components/authentication/single-sign-on/configuration-card/component.js","client/legacy/pods/components/authentication/single-sign-on/configuration-card/template.js","client/legacy/pods/components/authentication/single-sign-on/configuration-method/component.js","client/legacy/pods/components/authentication/single-sign-on/configuration-method/template.js","client/legacy/pods/components/authentication/single-sign-on/disable-sso-modal/component.js","client/legacy/pods/components/authentication/single-sign-on/disable-sso-modal/template.js","client/legacy/pods/components/authentication/single-sign-on/manual-input-configuration/template.js","client/legacy/pods/components/authentication/two-factor/two-factor-qrcode/component.js","client/legacy/pods/components/authentication/two-factor/two-factor-qrcode/template.js","client/legacy/pods/components/authentication/two-factor/two-factor-token-input/component.js","client/legacy/pods/components/authentication/two-factor/two-factor-token-input/template.js","client/legacy/pods/components/beta-card/component.js","client/legacy/pods/components/beta-card/template.js","client/legacy/pods/components/beta-empty-state/component.js","client/legacy/pods/components/beta-empty-state/template.js","client/legacy/pods/components/beta-filter/button/component.js","client/legacy/pods/components/beta-filter/button/template.js","client/legacy/pods/components/beta-filter/entry/component.js","client/legacy/pods/components/beta-filter/entry/template.js","client/legacy/pods/components/beta-filter/footer/component.js","client/legacy/pods/components/beta-filter/footer/template.js","client/legacy/pods/components/beta-filter/form/component.js","client/legacy/pods/components/beta-filter/form/template.js","client/legacy/pods/components/beta-filter/operator/component.js","client/legacy/pods/components/beta-filter/operator/template.js","client/legacy/pods/components/beta-filter/popup/component.js","client/legacy/pods/components/beta-filter/popup/template.js","client/legacy/pods/components/beta-filter/search/template.js","client/legacy/pods/components/beta-form/add-existing-record/component.js","client/legacy/pods/components/beta-form/add-existing-record/template.js","client/legacy/pods/components/beta-header/breadcrumb/template.js","client/legacy/pods/components/beta-header/component.js","client/legacy/pods/components/beta-header/template.js","client/legacy/pods/components/beta-settings-card/component.js","client/legacy/pods/components/beta-settings-card/section/component.js","client/legacy/pods/components/beta-settings-card/section/template.js","client/legacy/pods/components/beta-settings-card/template.js","client/legacy/pods/components/beta-settings/input/component.js","client/legacy/pods/components/beta-settings/input/template.js","client/legacy/pods/components/beta-settings/main-section/component.js","client/legacy/pods/components/beta-settings/main-section/template.js","client/legacy/pods/components/beta-settings/section/component.js","client/legacy/pods/components/beta-settings/section/template.js","client/legacy/pods/components/beta-user-dropdown/button/component.js","client/legacy/pods/components/beta-user-dropdown/button/template.js","client/legacy/pods/components/beta-user-dropdown/component.js","client/legacy/pods/components/beta-user-dropdown/settings/component.js","client/legacy/pods/components/beta-user-dropdown/settings/template.js","client/legacy/pods/components/beta-user-dropdown/teams/component.js","client/legacy/pods/components/beta-user-dropdown/teams/template.js","client/legacy/pods/components/beta-user-dropdown/template.js","client/legacy/pods/components/beta-user-dropdown/user-actions/component.js","client/legacy/pods/components/beta-user-dropdown/user-actions/template.js","client/legacy/pods/components/beta-user-dropdown/user-settings/component.ts","client/legacy/pods/components/beta-user-dropdown/user-settings/template.js","client/legacy/pods/components/billing/billing-company-details-form/component.ts","client/legacy/pods/components/billing/billing-company-details-form/template.js","client/legacy/pods/components/billing/billing-company-details-summary/component.js","client/legacy/pods/components/billing/billing-company-details-summary/template.js","client/legacy/pods/components/billing/billing-edit-company-page/component.ts","client/legacy/pods/components/billing/billing-edit-company-page/template.js","client/legacy/pods/components/billing/billing-edit-payment-page/component.ts","client/legacy/pods/components/billing/billing-edit-payment-page/template.js","client/legacy/pods/components/billing/billing-footer/component.js","client/legacy/pods/components/billing/billing-footer/template.js","client/legacy/pods/components/billing/billing-order-summary/component.js","client/legacy/pods/components/billing/billing-order-summary/template.js","client/legacy/pods/components/billing/billing-payment-details-summary/component.js","client/legacy/pods/components/billing/billing-payment-details-summary/template.js","client/legacy/pods/components/billing/billing-plans/commitment-switch/component.ts","client/legacy/pods/components/billing/billing-plans/commitment-switch/template.js","client/legacy/pods/components/billing/billing-plans/component.ts","client/legacy/pods/components/billing/billing-plans/plan/template.js","client/legacy/pods/components/billing/billing-plans/price/component.js","client/legacy/pods/components/billing/billing-plans/price/template.js","client/legacy/pods/components/billing/billing-plans/template.js","client/legacy/pods/components/billing/billing-stripe-payment/component.ts","client/legacy/pods/components/billing/billing-stripe-payment/template.js","client/legacy/pods/components/billing/current-plan-tag/component.js","client/legacy/pods/components/billing/current-plan-tag/template.js","client/legacy/pods/components/button/beta-create-has-many-button/component.js","client/legacy/pods/components/button/beta-create-has-many-button/template.js","client/legacy/pods/components/button/beta-delete-button/template.js","client/legacy/pods/components/button/beta-save-discard-buttons/component.js","client/legacy/pods/components/button/beta-save-discard-buttons/template.js","client/legacy/pods/components/button/global-search/component.js","client/legacy/pods/components/button/global-search/template.js","client/legacy/pods/components/button/layout-editor-button/template.js","client/legacy/pods/components/button/settings-button/component.js","client/legacy/pods/components/button/settings-button/field-settings-button/component.js","client/legacy/pods/components/button/settings-button/field-settings-button/template.js","client/legacy/pods/components/button/settings-button/template.js","client/legacy/pods/components/card/template.js","client/legacy/pods/components/chart/chart-animate-number/component.ts","client/legacy/pods/components/chart/chart-animate-number/template.js","client/legacy/pods/components/chart/chart-empty/template.js","client/legacy/pods/components/chart/chart-error/template.js","client/legacy/pods/components/chart/chart-form/api/template.js","client/legacy/pods/components/chart/chart-form/component.js","client/legacy/pods/components/chart/chart-form/errors/template.js","client/legacy/pods/components/chart/chart-form/query/template.js","client/legacy/pods/components/chart/chart-form/simple/component.js","client/legacy/pods/components/chart/chart-form/simple/template.js","client/legacy/pods/components/chart/chart-form/smart/template.js","client/legacy/pods/components/chart/chart-form/template.js","client/legacy/pods/components/chart/chart-grid/component.ts","client/legacy/pods/components/chart/chart-grid/template.js","client/legacy/pods/components/chart/chart-leaderboard/component.ts","client/legacy/pods/components/chart/chart-leaderboard/template.js","client/legacy/pods/components/chart/chart-line/component.ts","client/legacy/pods/components/chart/chart-line/template.js","client/legacy/pods/components/chart/chart-objective/component.js","client/legacy/pods/components/chart/chart-objective/template.js","client/legacy/pods/components/chart/chart-pie/component.ts","client/legacy/pods/components/chart/chart-pie/template.js","client/legacy/pods/components/chart/chart-render/component.ts","client/legacy/pods/components/chart/chart-render/template.js","client/legacy/pods/components/chart/chart-smart/component.js","client/legacy/pods/components/chart/chart-smart/template.js","client/legacy/pods/components/chart/chart-upgrade-to-pro/component.js","client/legacy/pods/components/chart/chart-upgrade-to-pro/template.js","client/legacy/pods/components/check-existence-input/component.js","client/legacy/pods/components/check-existence-input/template.js","client/legacy/pods/components/collaboration/approval-confirmation-modal/component.ts","client/legacy/pods/components/collaboration/approval-confirmation-modal/template.js","client/legacy/pods/components/collaboration/approval/action-approvals/created/component.ts","client/legacy/pods/components/collaboration/approval/action-approvals/created/template.js","client/legacy/pods/components/collaboration/approval/action-approvals/history/component.ts","client/legacy/pods/components/collaboration/approval/action-approvals/history/template.js","client/legacy/pods/components/collaboration/approval/action-approvals/to-review/component.ts","client/legacy/pods/components/collaboration/approval/action-approvals/to-review/template.js","client/legacy/pods/components/collaboration/approval/action-approvals/warning/component.ts","client/legacy/pods/components/collaboration/approval/action-approvals/warning/template.js","client/legacy/pods/components/collaboration/approval/action-name/template.js","client/legacy/pods/components/collaboration/approval/comments/component.ts","client/legacy/pods/components/collaboration/approval/comments/template.js","client/legacy/pods/components/collaboration/approval/details/component.ts","client/legacy/pods/components/collaboration/approval/details/orphaned-actions/component.ts","client/legacy/pods/components/collaboration/approval/details/orphaned-actions/template.js","client/legacy/pods/components/collaboration/approval/details/template.js","client/legacy/pods/components/collaboration/approval/export/component.ts","client/legacy/pods/components/collaboration/approval/export/template.js","client/legacy/pods/components/collaboration/approval/filters/component.ts","client/legacy/pods/components/collaboration/approval/filters/template.js","client/legacy/pods/components/collaboration/approval/infos/component.ts","client/legacy/pods/components/collaboration/approval/infos/input-value/component.ts","client/legacy/pods/components/collaboration/approval/infos/input-value/template.js","client/legacy/pods/components/collaboration/approval/infos/template.js","client/legacy/pods/components/collaboration/approval/open-button/component.ts","client/legacy/pods/components/collaboration/approval/open-button/template.js","client/legacy/pods/components/collaboration/approval/status/component.ts","client/legacy/pods/components/collaboration/approval/status/template.js","client/legacy/pods/components/collaboration/approval/timeline/component.ts","client/legacy/pods/components/collaboration/approval/timeline/item/component.ts","client/legacy/pods/components/collaboration/approval/timeline/item/template.js","client/legacy/pods/components/collaboration/approval/timeline/template.js","client/legacy/pods/components/collaboration/collaboration-actions-warning/component.ts","client/legacy/pods/components/collaboration/collaboration-actions-warning/template.js","client/legacy/pods/components/collaboration/collaboration-actions/component.js","client/legacy/pods/components/collaboration/collaboration-actions/template.js","client/legacy/pods/components/collaboration/collaboration-approval-confirmation-modal/component.ts","client/legacy/pods/components/collaboration/collaboration-approval-confirmation-modal/template.js","client/legacy/pods/components/collaboration/collaboration-approval-confirmation-warning-modal/component.ts","client/legacy/pods/components/collaboration/collaboration-approval-confirmation-warning-modal/template.js","client/legacy/pods/components/collaboration/collaboration-approval-create-modal/component.js","client/legacy/pods/components/collaboration/collaboration-approval-create-modal/template.js","client/legacy/pods/components/collaboration/collaboration-approval-empty-state/component.js","client/legacy/pods/components/collaboration/collaboration-approval-empty-state/template.js","client/legacy/pods/components/collaboration/collaboration-header/component.ts","client/legacy/pods/components/collaboration/collaboration-header/template.js","client/legacy/pods/components/collaboration/collaboration-layout/component.js","client/legacy/pods/components/collaboration/collaboration-layout/template.js","client/legacy/pods/components/collaboration/note/note-card/component.js","client/legacy/pods/components/collaboration/note/note-card/template.js","client/legacy/pods/components/collaboration/note/note-empty/template.js","client/legacy/pods/components/collaboration/note/note-panel/component.ts","client/legacy/pods/components/collaboration/note/note-panel/template.js","client/legacy/pods/components/collection-settings/scope/component.js","client/legacy/pods/components/collection-settings/scope/template.js","client/legacy/pods/components/color-theme/component.ts","client/legacy/pods/components/column-settings-menu/component.js","client/legacy/pods/components/column-settings-menu/item/component.js","client/legacy/pods/components/column-settings-menu/item/template.js","client/legacy/pods/components/column-settings-menu/template.js","client/legacy/pods/components/conditional-formatting/component.js","client/legacy/pods/components/conditional-formatting/rule/component.js","client/legacy/pods/components/conditional-formatting/rule/template.js","client/legacy/pods/components/conditional-formatting/template.js","client/legacy/pods/components/configuration-card/component.js","client/legacy/pods/components/configuration-card/template.js","client/legacy/pods/components/data-display/beta-collection-list/component.js","client/legacy/pods/components/data-display/beta-collection-list/header/component.ts","client/legacy/pods/components/data-display/beta-collection-list/header/template.js","client/legacy/pods/components/data-display/beta-collection-list/template.js","client/legacy/pods/components/data-display/branch-origin/template.js","client/legacy/pods/components/data-display/record/create-edit-modal/component.js","client/legacy/pods/components/data-display/record/create-edit-modal/template.js","client/legacy/pods/components/data-display/record/details/component.js","client/legacy/pods/components/data-display/record/details/template.js","client/legacy/pods/components/data-display/record/summary/button/template.js","client/legacy/pods/components/data-display/record/summary/component.ts","client/legacy/pods/components/data-display/record/summary/custom-action-button/component.ts","client/legacy/pods/components/data-display/record/summary/custom-action-button/template.js","client/legacy/pods/components/data-display/record/summary/field/component.ts","client/legacy/pods/components/data-display/record/summary/field/template.js","client/legacy/pods/components/data-display/record/summary/has-many-empty/template.js","client/legacy/pods/components/data-display/record/summary/horizontal-list/component.ts","client/legacy/pods/components/data-display/record/summary/horizontal-list/template.js","client/legacy/pods/components/data-display/record/summary/section/component.ts","client/legacy/pods/components/data-display/record/summary/section/template.js","client/legacy/pods/components/data-display/record/summary/template.js","client/legacy/pods/components/data-display/record/summary/trash-zone/component.ts","client/legacy/pods/components/data-display/record/summary/trash-zone/template.js","client/legacy/pods/components/data-display/record/summary/workflow-button/component.ts","client/legacy/pods/components/data-display/record/summary/workflow-button/template.js","client/legacy/pods/components/data-display/table-view/component.js","client/legacy/pods/components/data-display/table-view/template.js","client/legacy/pods/components/data-display/table/table-column-header/component.js","client/legacy/pods/components/data-display/table/table-column-header/template.js","client/legacy/pods/components/data-display/table/table-column/component.js","client/legacy/pods/components/data-display/table/table-column/template.js","client/legacy/pods/components/data-display/table/table-footer/component.js","client/legacy/pods/components/data-display/table/table-footer/template.js","client/legacy/pods/components/data-display/table/table-frame/component.js","client/legacy/pods/components/data-display/table/table-frame/template.js","client/legacy/pods/components/data-display/table/table-line/component.ts","client/legacy/pods/components/data-display/table/table-line/template.js","client/legacy/pods/components/data-display/table/table-sort-arrow/component.js","client/legacy/pods/components/data-display/table/table-sort-arrow/template.js","client/legacy/pods/components/data-display/with-tooltip/template.js","client/legacy/pods/components/dropdown/beta-dropdown-actions/component.js","client/legacy/pods/components/dropdown/beta-dropdown-actions/delete-action/component.js","client/legacy/pods/components/dropdown/beta-dropdown-actions/delete-action/template.js","client/legacy/pods/components/dropdown/beta-dropdown-actions/dissociate-action/component.js","client/legacy/pods/components/dropdown/beta-dropdown-actions/dissociate-action/template.js","client/legacy/pods/components/dropdown/beta-dropdown-actions/editable-actions/component.ts","client/legacy/pods/components/dropdown/beta-dropdown-actions/editable-actions/template.js","client/legacy/pods/components/dropdown/beta-dropdown-actions/template.js","client/legacy/pods/components/dropdown/beta-dropdown-search/component.ts","client/legacy/pods/components/dropdown/beta-dropdown-search/template.js","client/legacy/pods/components/dropdown/beta-dropdown-smart-views/component.js","client/legacy/pods/components/dropdown/beta-dropdown-smart-views/template.js","client/legacy/pods/components/dropdown/dropdown-actions/component.js","client/legacy/pods/components/dropdown/dropdown-actions/template.js","client/legacy/pods/components/dropdown/dropdown-checkbox/component.js","client/legacy/pods/components/dropdown/dropdown-checkbox/template.js","client/legacy/pods/components/dropdown/dropdown-menu/component.js","client/legacy/pods/components/dropdown/dropdown-menu/dropdown-menu-content/component.js","client/legacy/pods/components/dropdown/dropdown-menu/dropdown-menu-content/template.js","client/legacy/pods/components/dropdown/dropdown-menu/dropdown-menu-trigger/component.js","client/legacy/pods/components/dropdown/dropdown-menu/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/database-credentials-wont-leave-browser/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/deploy-on-google-cloud-platform/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/deploy-on-heroku/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/deploy-on-ubuntu/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/heroku-environment-variables/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/how-it-works-agent-node-js/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-am-using-mongo-atlas/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-dont-have-a-local-app/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-dont-know-how-to-setup-my-database/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-dont-know-odm-orm/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-dont-use-environment-variables/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-dont-want-caching-rails/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-got-an-error-running-this-command/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-need-database/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-need-help/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-want-to-install-forest-admin-locally/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-want-to-ip-whitelist/template.js","client/legacy/pods/components/dynamic-onboarding/bubbles-content/nothing-happens/template.js","client/legacy/pods/components/dynamic-onboarding/datasource-picker/component.js","client/legacy/pods/components/dynamic-onboarding/datasource-picker/template.js","client/legacy/pods/components/dynamic-onboarding/dual-picker/component.js","client/legacy/pods/components/dynamic-onboarding/dual-picker/panel/component.js","client/legacy/pods/components/dynamic-onboarding/dual-picker/panel/template.js","client/legacy/pods/components/dynamic-onboarding/dual-picker/template.js","client/legacy/pods/components/dynamic-onboarding/framework-instructions-panel/component.js","client/legacy/pods/components/dynamic-onboarding/framework-instructions-panel/template.js","client/legacy/pods/components/dynamic-onboarding/framework-panel/component.js","client/legacy/pods/components/dynamic-onboarding/framework-panel/template.js","client/legacy/pods/components/dynamic-onboarding/instructions-panel/component.js","client/legacy/pods/components/dynamic-onboarding/instructions-panel/template.js","client/legacy/pods/components/dynamic-onboarding/integration/forms/application-url/component.js","client/legacy/pods/components/dynamic-onboarding/integration/forms/application-url/template.js","client/legacy/pods/components/dynamic-onboarding/integration/forms/database-credentials/component.ts","client/legacy/pods/components/dynamic-onboarding/integration/forms/database-credentials/deployment-error/template.js","client/legacy/pods/components/dynamic-onboarding/integration/forms/database-credentials/encryption-mode/template.js","client/legacy/pods/components/dynamic-onboarding/integration/forms/database-credentials/ssh-mode/component.ts","client/legacy/pods/components/dynamic-onboarding/integration/forms/database-credentials/ssh-mode/template.js","client/legacy/pods/components/dynamic-onboarding/integration/forms/database-credentials/template.js","client/legacy/pods/components/dynamic-onboarding/integration/forms/environment-name/component.js","client/legacy/pods/components/dynamic-onboarding/integration/forms/environment-name/template.js","client/legacy/pods/components/dynamic-onboarding/integration/forms/selector/component.js","client/legacy/pods/components/dynamic-onboarding/integration/forms/selector/template.js","client/legacy/pods/components/dynamic-onboarding/integration/wrapper/admin-panel-generation/template.js","client/legacy/pods/components/dynamic-onboarding/integration/wrapper/application-url/template.js","client/legacy/pods/components/dynamic-onboarding/integration/wrapper/database-credentials/template.js","client/legacy/pods/components/dynamic-onboarding/integration/wrapper/display-variables/template.js","client/legacy/pods/components/dynamic-onboarding/integration/wrapper/environment-name/template.js","client/legacy/pods/components/dynamic-onboarding/integration/wrapper/highlight-multiple/template.js","client/legacy/pods/components/dynamic-onboarding/integration/wrapper/highlight-tabs/template.js","client/legacy/pods/components/dynamic-onboarding/integration/wrapper/highlight/template.js","client/legacy/pods/components/dynamic-onboarding/integration/wrapper/selector-with-highlight-tabs/template.js","client/legacy/pods/components/dynamic-onboarding/integration/wrapper/selector-with-highlights/template.js","client/legacy/pods/components/dynamic-onboarding/integration/wrapper/selector/template.js","client/legacy/pods/components/dynamic-onboarding/modals/suggest-datasource/component.js","client/legacy/pods/components/dynamic-onboarding/modals/suggest-datasource/template.js","client/legacy/pods/components/dynamic-onboarding/modals/waiting-list/template.js","client/legacy/pods/components/edit-inline/component.ts","client/legacy/pods/components/edit-inline/container/component.js","client/legacy/pods/components/edit-inline/container/template.js","client/legacy/pods/components/edit-inline/form/component.js","client/legacy/pods/components/edit-inline/form/template.js","client/legacy/pods/components/edit-inline/template.js","client/legacy/pods/components/environment-settings-details/component.js","client/legacy/pods/components/environment-settings-details/sections/delete/component.js","client/legacy/pods/components/environment-settings-details/sections/delete/template.js","client/legacy/pods/components/environment-settings-details/sections/general/component.js","client/legacy/pods/components/environment-settings-details/sections/general/template.js","client/legacy/pods/components/environment-settings-details/sections/set-as-production/component.js","client/legacy/pods/components/environment-settings-details/sections/set-as-production/template.js","client/legacy/pods/components/environment-settings-details/sections/set-origin/component.js","client/legacy/pods/components/environment-settings-details/sections/set-origin/template.js","client/legacy/pods/components/environment-settings-details/template.js","client/legacy/pods/components/error-screen/component.js","client/legacy/pods/components/error-screen/template.js","client/legacy/pods/components/explorer/record-details-header-buttons/template.js","client/legacy/pods/components/explorer/records-list/component.js","client/legacy/pods/components/explorer/records-list/header/component.js","client/legacy/pods/components/explorer/records-list/header/template.js","client/legacy/pods/components/explorer/records-list/item/component.js","client/legacy/pods/components/explorer/records-list/item/hover-actions/template.js","client/legacy/pods/components/explorer/records-list/item/template.js","client/legacy/pods/components/explorer/records-list/template.js","client/legacy/pods/components/explorer/related-data-section/component.js","client/legacy/pods/components/explorer/related-data-section/template.js","client/legacy/pods/components/feedback/access-denied/component.js","client/legacy/pods/components/feedback/access-denied/template.js","client/legacy/pods/components/feedback/beta-bubble-button/component.js","client/legacy/pods/components/feedback/beta-bubble-button/story.js","client/legacy/pods/components/feedback/beta-bubble-button/template.js","client/legacy/pods/components/feedback/beta-help-bubble/component.js","client/legacy/pods/components/feedback/beta-help-bubble/template.js","client/legacy/pods/components/feedback/beta-help-center/component.js","client/legacy/pods/components/feedback/beta-help-center/template.js","client/legacy/pods/components/feedback/beta-status-label/component.js","client/legacy/pods/components/feedback/beta-status-label/template.js","client/legacy/pods/components/feedback/helper-container/component.js","client/legacy/pods/components/feedback/helper-container/template.js","client/legacy/pods/components/feedback/limitations/popup-upgrade/component.js","client/legacy/pods/components/feedback/limitations/popup-upgrade/template.js","client/legacy/pods/components/feedback/notification/notification-bar/component.js","client/legacy/pods/components/feedback/notification/notification-bar/template.js","client/legacy/pods/components/feedback/toastr/component.ts","client/legacy/pods/components/feedback/toastr/template.js","client/legacy/pods/components/feedback/toastr/toastr-container/component.js","client/legacy/pods/components/feedback/toastr/toastr-item-performance-warner/component.js","client/legacy/pods/components/feedback/toastr/toastr-item-performance-warner/template.js","client/legacy/pods/components/feedback/toastr/toastr-item/component.js","client/legacy/pods/components/feedback/toastr/toastr-item/template.js","client/legacy/pods/components/file-data-object.ts","client/legacy/pods/components/form/ace-editor/component.js","client/legacy/pods/components/form/ace-editor/template.js","client/legacy/pods/components/form/autocomplete-input/component.ts","client/legacy/pods/components/form/autocomplete-input/template.js","client/legacy/pods/components/form/beta-checkbox/component.js","client/legacy/pods/components/form/beta-checkbox/story.js","client/legacy/pods/components/form/beta-checkbox/template.js","client/legacy/pods/components/form/beta-select/dropdown-content/component.ts","client/legacy/pods/components/form/beta-select/dropdown-content/template.js","client/legacy/pods/components/form/copy/component.ts","client/legacy/pods/components/form/copy/template.js","client/legacy/pods/components/form/dropdown/action/template.js","client/legacy/pods/components/form/dropdown/component.ts","client/legacy/pods/components/form/dropdown/content/template.js","client/legacy/pods/components/form/dropdown/template.js","client/legacy/pods/components/form/edit-inline/component.js","client/legacy/pods/components/form/edit-inline/template.js","client/legacy/pods/components/form/form-address-suggestion/component.ts","client/legacy/pods/components/form/form-address-suggestion/template.js","client/legacy/pods/components/form/form-array/component.js","client/legacy/pods/components/form/form-array/template.js","client/legacy/pods/components/form/form-base/component.js","client/legacy/pods/components/form/form-base/template.js","client/legacy/pods/components/form/form-belongs-to-inline/component.js","client/legacy/pods/components/form/form-belongs-to-inline/template.js","client/legacy/pods/components/form/form-boolean/component.js","client/legacy/pods/components/form/form-date/component.js","client/legacy/pods/components/form/form-date/template.js","client/legacy/pods/components/form/form-enum/component.js","client/legacy/pods/components/form/form-enum/template.js","client/legacy/pods/components/form/form-number/component.js","client/legacy/pods/components/form/form-number/template.js","client/legacy/pods/components/form/form-radio/component.js","client/legacy/pods/components/form/form-radio/row/component.js","client/legacy/pods/components/form/form-radio/row/template.js","client/legacy/pods/components/form/form-radio/template.js","client/legacy/pods/components/form/form-select-bool/template.js","client/legacy/pods/components/form/form-string/component.js","client/legacy/pods/components/form/form-string/template.js","client/legacy/pods/components/form/form-uuid/component.js","client/legacy/pods/components/form/form-uuid/template.js","client/legacy/pods/components/form/form-value/component.js","client/legacy/pods/components/form/form-value/template.js","client/legacy/pods/components/grid-stack/item/component.js","client/legacy/pods/components/grid-stack/item/template.js","client/legacy/pods/components/grid-stack/layout/component.js","client/legacy/pods/components/grid-stack/layout/template.js","client/legacy/pods/components/increment-for/component.js","client/legacy/pods/components/increment-for/template.js","client/legacy/pods/components/integration/integration-mixpanel-list/component.js","client/legacy/pods/components/integration/integration-mixpanel-list/template.js","client/legacy/pods/components/interface/custom-domain-panel/component.js","client/legacy/pods/components/interface/custom-domain-panel/template.js","client/legacy/pods/components/json-editor/component.js","client/legacy/pods/components/layout-detail/layout-detail-body-settings/component.js","client/legacy/pods/components/layout-detail/layout-detail-body-settings/template.js","client/legacy/pods/components/layout-detail/layout-detail-body/component.js","client/legacy/pods/components/layout-detail/layout-detail-body/template.js","client/legacy/pods/components/layout-detail/layout-detail-overlay/component.js","client/legacy/pods/components/layout-detail/layout-detail-overlay/template.js","client/legacy/pods/components/layout/layout-animation/component.js","client/legacy/pods/components/layout/layout-animation/template.js","client/legacy/pods/components/layout/layout-collection-empty/component.js","client/legacy/pods/components/layout/layout-collection-empty/template.js","client/legacy/pods/components/layout/layout-error/component.js","client/legacy/pods/components/layout/layout-error/template.js","client/legacy/pods/components/layout/layout-footer/component.js","client/legacy/pods/components/layout/layout-list-empty/template.js","client/legacy/pods/components/layout/layout-list-sections/component.js","client/legacy/pods/components/layout/layout-list-sections/item/component.js","client/legacy/pods/components/layout/layout-list-sections/item/template.js","client/legacy/pods/components/layout/layout-list-sections/template.js","client/legacy/pods/components/layout/layout-loader/component.js","client/legacy/pods/components/layout/layout-loader/template.js","client/legacy/pods/components/layout/layout-project-empty/component.js","client/legacy/pods/components/layout/layout-project-empty/template.js","client/legacy/pods/components/link-to-projects/component.js","client/legacy/pods/components/link-to-projects/template.js","client/legacy/pods/components/link-to-records/component.js","client/legacy/pods/components/link-to-records/template.js","client/legacy/pods/components/migration/forms/intro/template.js","client/legacy/pods/components/migration/helpers/intro/template.js","client/legacy/pods/components/migration/helpers/paragraph/template.js","client/legacy/pods/components/migration/helpers/section/template.js","client/legacy/pods/components/migration/helpers/title/template.js","client/legacy/pods/components/modal-exports-from-to/component.js","client/legacy/pods/components/modal-exports-from-to/template.js","client/legacy/pods/components/modal-global-search/component.ts","client/legacy/pods/components/modal-global-search/template.js","client/legacy/pods/components/modal/modal-deploy-layout-changes/component.js","client/legacy/pods/components/modal/modal-deploy-layout-changes/template.js","client/legacy/pods/components/modal/modal-upgrade-to-paid-plan/component.js","client/legacy/pods/components/modal/modal-upgrade-to-paid-plan/template.js","client/legacy/pods/components/modal/modal-window/component.js","client/legacy/pods/components/modal/modal-window/template.js","client/legacy/pods/components/model-customization/action/component.ts","client/legacy/pods/components/model-customization/action/template.js","client/legacy/pods/components/model-customization/action/update-record/component.ts","client/legacy/pods/components/model-customization/action/update-record/deprecated-field/component.ts","client/legacy/pods/components/model-customization/action/update-record/deprecated-field/template.js","client/legacy/pods/components/model-customization/action/update-record/field/component.ts","client/legacy/pods/components/model-customization/action/update-record/field/template.js","client/legacy/pods/components/model-customization/action/update-record/template.js","client/legacy/pods/components/model-customization/action/webhook/component.ts","client/legacy/pods/components/model-customization/action/webhook/template.js","client/legacy/pods/components/navigation/avatar/template.js","client/legacy/pods/components/navigation/beta-breadcrumb/component.js","client/legacy/pods/components/navigation/beta-breadcrumb/story.js","client/legacy/pods/components/navigation/beta-breadcrumb/template.js","client/legacy/pods/components/navigation/beta-context-menu/component.js","client/legacy/pods/components/navigation/beta-context-menu/item/component.js","client/legacy/pods/components/navigation/beta-context-menu/item/template.js","client/legacy/pods/components/navigation/beta-context-menu/list/component.js","client/legacy/pods/components/navigation/beta-context-menu/list/template.js","client/legacy/pods/components/navigation/beta-context-menu/popup/component.js","client/legacy/pods/components/navigation/beta-context-menu/popup/template.js","client/legacy/pods/components/navigation/beta-context-menu/template.js","client/legacy/pods/components/navigation/beta-global-navigation-bar/component.js","client/legacy/pods/components/navigation/beta-global-navigation-bar/current-organization/template.js","client/legacy/pods/components/navigation/beta-global-navigation-bar/navigation-menu/component.js","client/legacy/pods/components/navigation/beta-global-navigation-bar/navigation-menu/template.js","client/legacy/pods/components/navigation/beta-global-navigation-bar/organization-list/component.js","client/legacy/pods/components/navigation/beta-global-navigation-bar/organization-list/template.js","client/legacy/pods/components/navigation/beta-global-navigation-bar/template.js","client/legacy/pods/components/navigation/beta-side-menu/component.js","client/legacy/pods/components/navigation/beta-side-menu/header/template.js","client/legacy/pods/components/navigation/beta-side-menu/item/component.ts","client/legacy/pods/components/navigation/beta-side-menu/item/content-container/template.js","client/legacy/pods/components/navigation/beta-side-menu/item/content/template.js","client/legacy/pods/components/navigation/beta-side-menu/item/story.js","client/legacy/pods/components/navigation/beta-side-menu/item/template.js","client/legacy/pods/components/navigation/beta-side-menu/section/story.js","client/legacy/pods/components/navigation/beta-side-menu/section/template.js","client/legacy/pods/components/navigation/beta-side-menu/template.js","client/legacy/pods/components/navigation/component.js","client/legacy/pods/components/navigation/data-view-breadcrumb/component.js","client/legacy/pods/components/navigation/data-view-breadcrumb/item/component.js","client/legacy/pods/components/navigation/data-view-breadcrumb/item/template.js","client/legacy/pods/components/navigation/data-view-breadcrumb/template.js","client/legacy/pods/components/navigation/dropdown-container/template.js","client/legacy/pods/components/navigation/dropdown/item/template.js","client/legacy/pods/components/navigation/dropdown/section/template.js","client/legacy/pods/components/navigation/dropdown/template.js","client/legacy/pods/components/navigation/help-dropdown/template.js","client/legacy/pods/components/navigation/icon-button/component.js","client/legacy/pods/components/navigation/icon-button/template.js","client/legacy/pods/components/navigation/link-to-with-click/component.ts","client/legacy/pods/components/navigation/link-to-with-click/template.js","client/legacy/pods/components/navigation/navigation-menu/component.js","client/legacy/pods/components/navigation/navigation-menu/template.js","client/legacy/pods/components/navigation/project/button/template.js","client/legacy/pods/components/navigation/project/dropdown/template.js","client/legacy/pods/components/navigation/template.js","client/legacy/pods/components/navigation/user/button/template.js","client/legacy/pods/components/navigation/user/dropdown/component.ts","client/legacy/pods/components/navigation/user/dropdown/template.js","client/legacy/pods/components/new-organization-modal/component.js","client/legacy/pods/components/new-organization-modal/template.js","client/legacy/pods/components/onboarding-sensor/component.js","client/legacy/pods/components/onboarding-sensor/template.js","client/legacy/pods/components/onboarding/header/component.js","client/legacy/pods/components/onboarding/header/template.js","client/legacy/pods/components/onboarding/helper-container/template.js","client/legacy/pods/components/onboarding/onboarding-container/component.js","client/legacy/pods/components/onboarding/onboarding-container/template.js","client/legacy/pods/components/onboarding/onboarding-splitter/component.js","client/legacy/pods/components/onboarding/onboarding-splitter/panel/component.js","client/legacy/pods/components/onboarding/onboarding-splitter/panel/template.js","client/legacy/pods/components/onboarding/teammate-invited/template.js","client/legacy/pods/components/organization/card/template.js","client/legacy/pods/components/organization/incompatible-environments/component.js","client/legacy/pods/components/organization/incompatible-environments/template.js","client/legacy/pods/components/organization/modal-add-owner/component.js","client/legacy/pods/components/organization/modal-add-owner/template.js","client/legacy/pods/components/organization/modal-remove-owner/component.js","client/legacy/pods/components/organization/modal-remove-owner/template.js","client/legacy/pods/components/picture/avatar-with-name/component.ts","client/legacy/pods/components/picture/avatar-with-name/template.js","client/legacy/pods/components/picture/picture-avatar/component.js","client/legacy/pods/components/picture/picture-avatar/template.js","client/legacy/pods/components/picture/picture-organization/component.ts","client/legacy/pods/components/picture/picture-organization/template.js","client/legacy/pods/components/picture/picture-project/component.js","client/legacy/pods/components/picture/picture-project/template.js","client/legacy/pods/components/plan-limit-banner/component.ts","client/legacy/pods/components/plan-limit-banner/template.js","client/legacy/pods/components/preview/layout-preview/component.ts","client/legacy/pods/components/preview/layout-preview/template.js","client/legacy/pods/components/preview/permissions-preview/component.js","client/legacy/pods/components/preview/permissions-preview/template.js","client/legacy/pods/components/preview/preview-activity-log/component.js","client/legacy/pods/components/preview/preview-activity-log/template.js","client/legacy/pods/components/preview/preview-analytics/component.js","client/legacy/pods/components/preview/preview-analytics/template.js","client/legacy/pods/components/preview/preview-explorer/component.js","client/legacy/pods/components/preview/preview-explorer/template.js","client/legacy/pods/components/preview/preview-live-query-chart/component.js","client/legacy/pods/components/preview/preview-live-query-chart/template.js","client/legacy/pods/components/preview/preview-multiple-dashboards/component.js","client/legacy/pods/components/preview/preview-multiple-dashboards/template.js","client/legacy/pods/components/preview/preview-multiple-roles/component.js","client/legacy/pods/components/preview/preview-multiple-roles/template.js","client/legacy/pods/components/preview/preview-notes/component.js","client/legacy/pods/components/preview/preview-notes/template.js","client/legacy/pods/components/preview/preview-scope/component.js","client/legacy/pods/components/preview/preview-scope/template.js","client/legacy/pods/components/preview/preview-segment-live-query/component.js","client/legacy/pods/components/preview/preview-segment-live-query/template.js","client/legacy/pods/components/preview/preview-smart-chart/component.js","client/legacy/pods/components/preview/preview-smart-chart/template.js","client/legacy/pods/components/preview/preview-smart-view/component.js","client/legacy/pods/components/preview/preview-smart-view/template.js","client/legacy/pods/components/preview/preview-summary-view/component.js","client/legacy/pods/components/preview/preview-summary-view/template.js","client/legacy/pods/components/preview/preview-teams/component.js","client/legacy/pods/components/preview/preview-teams/template.js","client/legacy/pods/components/project-card/component.js","client/legacy/pods/components/project-card/template.js","client/legacy/pods/components/project-environments-branches/component.ts","client/legacy/pods/components/project-environments-branches/modals/create-branch/component.ts","client/legacy/pods/components/project-environments-branches/modals/create-branch/template.js","client/legacy/pods/components/project-environments-branches/template.js","client/legacy/pods/components/project-settings-menu/component.js","client/legacy/pods/components/project-settings-menu/template.js","client/legacy/pods/components/project-settings/invoices-section/component.ts","client/legacy/pods/components/project-settings/invoices-section/template.js","client/legacy/pods/components/project-settings/provisioning-section/component.ts","client/legacy/pods/components/project-settings/provisioning-section/disable-scim-modal/template.js","client/legacy/pods/components/project-settings/provisioning-section/template.js","client/legacy/pods/components/projects-list/component.js","client/legacy/pods/components/projects-list/template.js","client/legacy/pods/components/related-data-menu/component.js","client/legacy/pods/components/related-data-menu/template.js","client/legacy/pods/components/rendering-tracker/component.js","client/legacy/pods/components/rendering-tracker/template.js","client/legacy/pods/components/right-panel-body/component.js","client/legacy/pods/components/right-panel-body/template.js","client/legacy/pods/components/right-panel-footer/component.js","client/legacy/pods/components/right-panel-footer/template.js","client/legacy/pods/components/right-panel-header/component.js","client/legacy/pods/components/right-panel-header/template.js","client/legacy/pods/components/right-panel/component.js","client/legacy/pods/components/right-panel/template.js","client/legacy/pods/components/roles/form/component.js","client/legacy/pods/components/roles/form/template.js","client/legacy/pods/components/roles/modal-copy-permissions/component.js","client/legacy/pods/components/roles/modal-copy-permissions/template.js","client/legacy/pods/components/roles/permissions/actions/component.ts","client/legacy/pods/components/roles/permissions/collections/component.js","client/legacy/pods/components/roles/permissions/collections/name/template.js","client/legacy/pods/components/roles/permissions/collections/row/template.js","client/legacy/pods/components/roles/permissions/collections/template.js","client/legacy/pods/components/roles/permissions/column-header/component.ts","client/legacy/pods/components/roles/permissions/column-header/template.js","client/legacy/pods/components/roles/permissions/default-collection-permissions/component.ts","client/legacy/pods/components/roles/permissions/default-collection-permissions/template.js","client/legacy/pods/components/roles/permissions/default-smart-action-permissions/component.ts","client/legacy/pods/components/roles/permissions/default-smart-action-permissions/template.js","client/legacy/pods/components/roles/permissions/permissions-details/template.js","client/legacy/pods/components/roles/permissions/section/template.js","client/legacy/pods/components/roles/permissions/smart-actions/component.js","client/legacy/pods/components/roles/permissions/smart-actions/row/component.ts","client/legacy/pods/components/roles/permissions/smart-actions/row/template.js","client/legacy/pods/components/roles/permissions/smart-actions/template.js","client/legacy/pods/components/roles/permissions/smart-actions/value/component.ts","client/legacy/pods/components/roles/permissions/smart-actions/value/template.js","client/legacy/pods/components/roles/permissions/table/component.ts","client/legacy/pods/components/roles/permissions/value/template.js","client/legacy/pods/components/saml-configuration/manual/component.js","client/legacy/pods/components/saml-configuration/manual/template.js","client/legacy/pods/components/saml-configuration/options/component.js","client/legacy/pods/components/saml-configuration/options/template.js","client/legacy/pods/components/saml-configuration/test-cancel-buttons/component.js","client/legacy/pods/components/saml-configuration/test-cancel-buttons/template.js","client/legacy/pods/components/saml-configuration/xml-endpoint/component.js","client/legacy/pods/components/saml-configuration/xml-endpoint/template.js","client/legacy/pods/components/segment-settings-details/component.js","client/legacy/pods/components/segment-settings-details/template.js","client/legacy/pods/components/side-menu/collaboration/component.ts","client/legacy/pods/components/side-menu/collaboration/template.js","client/legacy/pods/components/side-menu/component.js","client/legacy/pods/components/side-menu/integration-list/component.js","client/legacy/pods/components/side-menu/integration-list/template.js","client/legacy/pods/components/side-menu/item-edit/component.js","client/legacy/pods/components/side-menu/item-edit/content/template.js","client/legacy/pods/components/side-menu/item-edit/template.js","client/legacy/pods/components/side-menu/item/component.js","client/legacy/pods/components/side-menu/item/content/template.js","client/legacy/pods/components/side-menu/item/template.js","client/legacy/pods/components/side-menu/section/action-button/template.js","client/legacy/pods/components/side-menu/section/template.js","client/legacy/pods/components/side-menu/side-menu-branding/template.js","client/legacy/pods/components/side-menu/template.js","client/legacy/pods/components/side-panel/component.js","client/legacy/pods/components/side-panel/template.js","client/legacy/pods/components/smart-editor/component.js","client/legacy/pods/components/smart-editor/template.js","client/legacy/pods/components/smart-view-editor-with-preview/component.js","client/legacy/pods/components/smart-view-editor-with-preview/settings/component.js","client/legacy/pods/components/smart-view-editor-with-preview/settings/template.js","client/legacy/pods/components/smart-view-editor-with-preview/template.js","client/legacy/pods/components/typeahead-field/component.js","client/legacy/pods/components/typeahead-field/template.js","client/legacy/pods/components/user-settings-details/component.js","client/legacy/pods/components/user-settings-details/template.js","client/legacy/pods/components/user-settings-view/application-tokens/component.js","client/legacy/pods/components/user-settings-view/application-tokens/details/component.js","client/legacy/pods/components/user-settings-view/application-tokens/details/template.js","client/legacy/pods/components/user-settings-view/application-tokens/generate/component.js","client/legacy/pods/components/user-settings-view/application-tokens/generate/template.js","client/legacy/pods/components/user-settings-view/application-tokens/list/component.js","client/legacy/pods/components/user-settings-view/application-tokens/list/header/template.js","client/legacy/pods/components/user-settings-view/application-tokens/list/template.js","client/legacy/pods/components/user-settings-view/application-tokens/template.js","client/legacy/pods/components/user-settings-view/component.js","client/legacy/pods/components/user-settings-view/template.js","client/legacy/pods/components/user-settings-view/two-factor-authentication/component.js","client/legacy/pods/components/user-settings-view/two-factor-authentication/confirm-disable/component.js","client/legacy/pods/components/user-settings-view/two-factor-authentication/confirm-disable/template.js","client/legacy/pods/components/user-settings-view/two-factor-authentication/instructions/component.js","client/legacy/pods/components/user-settings-view/two-factor-authentication/instructions/template.js","client/legacy/pods/components/user-settings-view/two-factor-authentication/recovery-codes/component.js","client/legacy/pods/components/user-settings-view/two-factor-authentication/recovery-codes/template.js","client/legacy/pods/components/user-settings-view/two-factor-authentication/setup/component.js","client/legacy/pods/components/user-settings-view/two-factor-authentication/setup/recovery-codes/component.js","client/legacy/pods/components/user-settings-view/two-factor-authentication/setup/recovery-codes/template.js","client/legacy/pods/components/user-settings-view/two-factor-authentication/setup/template.js","client/legacy/pods/components/user-settings-view/two-factor-authentication/template.js","client/legacy/pods/components/user-tags/template.js","client/legacy/pods/components/users-settings/add-tag-modal/component.js","client/legacy/pods/components/users-settings/add-tag-modal/template.js","client/legacy/pods/components/users-settings/edit-role-modal/component.js","client/legacy/pods/components/users-settings/edit-role-modal/template.js","client/legacy/pods/components/users-settings/invitation-modal/component.js","client/legacy/pods/components/users-settings/invitation-modal/template.js","client/legacy/pods/components/users-settings/remove-tags-modal/component.js","client/legacy/pods/components/users-settings/remove-tags-modal/template.js","client/legacy/pods/components/users-settings/table/component.js","client/legacy/pods/components/users-settings/table/template.js","client/legacy/pods/components/users-table-with-pagination/component.js","client/legacy/pods/components/users-table-with-pagination/template.js","client/legacy/pods/components/view-settings-details/component.js","client/legacy/pods/components/view-settings-details/template.js","client/legacy/pods/components/visual-builder/component.ts","client/legacy/pods/components/visual-builder/draggable-item/component.js","client/legacy/pods/components/visual-builder/draggable-item/template.js","client/legacy/pods/components/visual-builder/template.js","client/legacy/pods/components/visual-builder/visual-builder-item/component.js","client/legacy/pods/components/visual-builder/visual-builder-item/template.js","client/legacy/pods/components/widgets/abstract-conditional-formatting-column-layout.js","client/legacy/pods/components/widgets/abstract-widget-column-layout.js","client/legacy/pods/components/widgets/display/address-viewer/widget-layout/component.js","client/legacy/pods/components/widgets/display/address-viewer/widget-layout/template.js","client/legacy/pods/components/widgets/display/array/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/array/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/array/widget-layout/component.js","client/legacy/pods/components/widgets/display/array/widget-layout/template.js","client/legacy/pods/components/widgets/display/assignee-array/widget-column-layout/component.ts","client/legacy/pods/components/widgets/display/assignee-array/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/assignee-array/widget-layout/component.ts","client/legacy/pods/components/widgets/display/assignee-array/widget-layout/template.js","client/legacy/pods/components/widgets/display/assignee/widget-column-layout/component.ts","client/legacy/pods/components/widgets/display/assignee/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/assignee/widget-layout/component.ts","client/legacy/pods/components/widgets/display/assignee/widget-layout/template.js","client/legacy/pods/components/widgets/display/belongs-to/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/belongs-to/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/belongs-to/widget-layout/component.js","client/legacy/pods/components/widgets/display/belongs-to/widget-layout/template.js","client/legacy/pods/components/widgets/display/boolean-checkbox/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/boolean-checkbox/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/boolean-checkbox/widget-layout/component.js","client/legacy/pods/components/widgets/display/boolean-checkbox/widget-layout/template.js","client/legacy/pods/components/widgets/display/color-viewer/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/color-viewer/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/color-viewer/widget-layout/component.js","client/legacy/pods/components/widgets/display/color-viewer/widget-layout/template.js","client/legacy/pods/components/widgets/display/date/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/date/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/date/widget-layout/component.js","client/legacy/pods/components/widgets/display/date/widget-layout/template.js","client/legacy/pods/components/widgets/display/date/widget-settings/template.js","client/legacy/pods/components/widgets/display/embedded-document/widget-layout/component.ts","client/legacy/pods/components/widgets/display/embedded-document/widget-layout/template.js","client/legacy/pods/components/widgets/display/file-viewer/component.ts","client/legacy/pods/components/widgets/display/file-viewer/image-popup/component.ts","client/legacy/pods/components/widgets/display/file-viewer/image-popup/template.js","client/legacy/pods/components/widgets/display/file-viewer/widget-column-layout/component.ts","client/legacy/pods/components/widgets/display/file-viewer/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/file-viewer/widget-layout/component.ts","client/legacy/pods/components/widgets/display/file-viewer/widget-layout/template.js","client/legacy/pods/components/widgets/display/file-viewer/widget-settings/component.js","client/legacy/pods/components/widgets/display/file-viewer/widget-settings/template.js","client/legacy/pods/components/widgets/display/file-viewer/zoom-popup/component.ts","client/legacy/pods/components/widgets/display/file-viewer/zoom-popup/template.js","client/legacy/pods/components/widgets/display/json/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/json/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/json/widget-layout/component.js","client/legacy/pods/components/widgets/display/json/widget-layout/template.js","client/legacy/pods/components/widgets/display/link/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/link/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/link/widget-layout/component.js","client/legacy/pods/components/widgets/display/link/widget-layout/template.js","client/legacy/pods/components/widgets/display/link/widget-settings/template.js","client/legacy/pods/components/widgets/display/map/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/map/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/map/widget-layout/component.js","client/legacy/pods/components/widgets/display/map/widget-layout/template.js","client/legacy/pods/components/widgets/display/map/widget-settings/template.js","client/legacy/pods/components/widgets/display/multi-line-text/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/multi-line-text/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/multi-line-text/widget-layout/component.js","client/legacy/pods/components/widgets/display/multi-line-text/widget-layout/template.js","client/legacy/pods/components/widgets/display/number/abstract-number-display-widget.ts","client/legacy/pods/components/widgets/display/number/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/number/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/number/widget-layout/component.js","client/legacy/pods/components/widgets/display/number/widget-layout/template.js","client/legacy/pods/components/widgets/display/number/widget-settings/template.js","client/legacy/pods/components/widgets/display/percentage/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/percentage/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/percentage/widget-layout/component.js","client/legacy/pods/components/widgets/display/percentage/widget-layout/template.js","client/legacy/pods/components/widgets/display/point/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/point/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/point/widget-layout/component.js","client/legacy/pods/components/widgets/display/point/widget-layout/template.js","client/legacy/pods/components/widgets/display/price-viewer/abstract-price-viewer-component.js","client/legacy/pods/components/widgets/display/price-viewer/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/price-viewer/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/price-viewer/widget-layout/component.js","client/legacy/pods/components/widgets/display/price-viewer/widget-layout/template.js","client/legacy/pods/components/widgets/display/price-viewer/widget-settings/component.ts","client/legacy/pods/components/widgets/display/price-viewer/widget-settings/template.js","client/legacy/pods/components/widgets/display/rich-text-viewer/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/rich-text-viewer/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/rich-text-viewer/widget-layout/component.js","client/legacy/pods/components/widgets/display/rich-text-viewer/widget-layout/template.js","client/legacy/pods/components/widgets/display/rich-text-viewer/widget-settings/component.ts","client/legacy/pods/components/widgets/display/rich-text-viewer/widget-settings/template.js","client/legacy/pods/components/widgets/display/text/widget-column-layout/component.js","client/legacy/pods/components/widgets/display/text/widget-column-layout/template.js","client/legacy/pods/components/widgets/display/text/widget-layout/component.js","client/legacy/pods/components/widgets/display/text/widget-layout/template.js","client/legacy/pods/components/widgets/display/time/widget-layout/component.js","client/legacy/pods/components/widgets/display/time/widget-layout/template.js","client/legacy/pods/components/widgets/edit/address-editor/widget-layout/component.js","client/legacy/pods/components/widgets/edit/address-editor/widget-layout/template.js","client/legacy/pods/components/widgets/edit/address-editor/widget-settings/template.js","client/legacy/pods/components/widgets/edit/assignee-editor/widget-layout/component.ts","client/legacy/pods/components/widgets/edit/assignee-editor/widget-layout/template.js","client/legacy/pods/components/widgets/edit/assignee-editor/widget-settings/template.js","client/legacy/pods/components/widgets/edit/belongsto-dropdown/widget-layout/component.js","client/legacy/pods/components/widgets/edit/belongsto-dropdown/widget-layout/template.js","client/legacy/pods/components/widgets/edit/belongsto-typeahead/widget-layout/component.js","client/legacy/pods/components/widgets/edit/belongsto-typeahead/widget-layout/story.js","client/legacy/pods/components/widgets/edit/belongsto-typeahead/widget-layout/template.js","client/legacy/pods/components/widgets/edit/belongsto-typeahead/widget-settings/template.js","client/legacy/pods/components/widgets/edit/boolean-editor/widget-layout/component.ts","client/legacy/pods/components/widgets/edit/boolean-editor/widget-layout/template.js","client/legacy/pods/components/widgets/edit/checkboxes/widget-layout/component.js","client/legacy/pods/components/widgets/edit/checkboxes/widget-layout/template.js","client/legacy/pods/components/widgets/edit/checkboxes/widget-settings/template.js","client/legacy/pods/components/widgets/edit/color-editor/widget-layout/component.js","client/legacy/pods/components/widgets/edit/color-editor/widget-layout/template.js","client/legacy/pods/components/widgets/edit/color-editor/widget-settings/template.js","client/legacy/pods/components/widgets/edit/date-editor/widget-layout/component.js","client/legacy/pods/components/widgets/edit/date-editor/widget-layout/template.js","client/legacy/pods/components/widgets/edit/date-editor/widget-settings/component.js","client/legacy/pods/components/widgets/edit/date-editor/widget-settings/template.js","client/legacy/pods/components/widgets/edit/dropdown/widget-layout/component.ts","client/legacy/pods/components/widgets/edit/dropdown/widget-layout/template.js","client/legacy/pods/components/widgets/edit/dropdown/widget-settings/template.js","client/legacy/pods/components/widgets/edit/embedded-document-editor/widget-layout/component.js","client/legacy/pods/components/widgets/edit/embedded-document-editor/widget-layout/template.js","client/legacy/pods/components/widgets/edit/file-picker/add-button/component.js","client/legacy/pods/components/widgets/edit/file-picker/add-button/template.js","client/legacy/pods/components/widgets/edit/file-picker/component.js","client/legacy/pods/components/widgets/edit/file-picker/file-list/component.js","client/legacy/pods/components/widgets/edit/file-picker/file-list/item/component.js","client/legacy/pods/components/widgets/edit/file-picker/file-list/item/template.js","client/legacy/pods/components/widgets/edit/file-picker/file-list/template.js","client/legacy/pods/components/widgets/edit/file-picker/modal-error/template.js","client/legacy/pods/components/widgets/edit/file-picker/multiple-upload-modal/component.js","client/legacy/pods/components/widgets/edit/file-picker/multiple-upload-modal/template.js","client/legacy/pods/components/widgets/edit/file-picker/template.js","client/legacy/pods/components/widgets/edit/file-picker/upload-modal/component.js","client/legacy/pods/components/widgets/edit/file-picker/upload-modal/template.js","client/legacy/pods/components/widgets/edit/file-picker/widget-layout/component.js","client/legacy/pods/components/widgets/edit/file-picker/widget-layout/template.js","client/legacy/pods/components/widgets/edit/file-picker/widget-settings/component.js","client/legacy/pods/components/widgets/edit/file-picker/widget-settings/template.js","client/legacy/pods/components/widgets/edit/input-array/widget-layout/component.js","client/legacy/pods/components/widgets/edit/input-array/widget-layout/template.js","client/legacy/pods/components/widgets/edit/input-array/widget-settings/template.js","client/legacy/pods/components/widgets/edit/json-code-editor/widget-layout/component.js","client/legacy/pods/components/widgets/edit/json-code-editor/widget-layout/template.js","client/legacy/pods/components/widgets/edit/limited-value/widget-layout/component.ts","client/legacy/pods/components/widgets/edit/limited-value/widget-settings/component.js","client/legacy/pods/components/widgets/edit/limited-value/widget-settings/dynamic/simple/template.js","client/legacy/pods/components/widgets/edit/limited-value/widget-settings/dynamic/smart/template.js","client/legacy/pods/components/widgets/edit/limited-value/widget-settings/static/template.js","client/legacy/pods/components/widgets/edit/limited-value/widget-settings/template.js","client/legacy/pods/components/widgets/edit/multiple-select/widget-layout/component.js","client/legacy/pods/components/widgets/edit/multiple-select/widget-layout/template.js","client/legacy/pods/components/widgets/edit/number-input/widget-layout/component.js","client/legacy/pods/components/widgets/edit/number-input/widget-layout/template.js","client/legacy/pods/components/widgets/edit/number-input/widget-settings/template.js","client/legacy/pods/components/widgets/edit/point-editor/widget-layout/component.js","client/legacy/pods/components/widgets/edit/point-editor/widget-layout/template.js","client/legacy/pods/components/widgets/edit/polymorphic-belongsto-typeahead/widget-layout/component.ts","client/legacy/pods/components/widgets/edit/polymorphic-belongsto-typeahead/widget-layout/template.js","client/legacy/pods/components/widgets/edit/price-editor/widget-layout/component.ts","client/legacy/pods/components/widgets/edit/price-editor/widget-layout/story.js","client/legacy/pods/components/widgets/edit/price-editor/widget-layout/template.js","client/legacy/pods/components/widgets/edit/price-editor/widget-settings/component.ts","client/legacy/pods/components/widgets/edit/price-editor/widget-settings/template.js","client/legacy/pods/components/widgets/edit/radio-button/widget-layout/component.js","client/legacy/pods/components/widgets/edit/radio-button/widget-layout/template.js","client/legacy/pods/components/widgets/edit/radio-button/widget-settings/template.js","client/legacy/pods/components/widgets/edit/rich-text/widget-layout/component.ts","client/legacy/pods/components/widgets/edit/rich-text/widget-layout/story.js","client/legacy/pods/components/widgets/edit/rich-text/widget-layout/template.js","client/legacy/pods/components/widgets/edit/rich-text/widget-layout/toolbar/component.ts","client/legacy/pods/components/widgets/edit/rich-text/widget-layout/toolbar/template.js","client/legacy/pods/components/widgets/edit/rich-text/widget-settings/template.js","client/legacy/pods/components/widgets/edit/text-area-editor/widget-layout/component.js","client/legacy/pods/components/widgets/edit/text-area-editor/widget-layout/template.js","client/legacy/pods/components/widgets/edit/text-area-editor/widget-settings/template.js","client/legacy/pods/components/widgets/edit/text-editor/widget-layout/component.js","client/legacy/pods/components/widgets/edit/text-editor/widget-layout/template.js","client/legacy/pods/components/widgets/edit/text-editor/widget-settings/template.js","client/legacy/pods/components/widgets/edit/time-input/widget-layout/component.js","client/legacy/pods/components/widgets/edit/time-input/widget-layout/template.js","client/legacy/pods/components/widgets/value-copier/component.ts","client/legacy/pods/components/widgets/value-copier/template.js","client/legacy/pods/components/widgets/widget/component.ts","client/legacy/pods/components/widgets/widget/template.js","client/legacy/pods/components/workspace/autogeneration/component.ts","client/legacy/pods/components/workspace/autogeneration/survey/component.ts","client/legacy/pods/components/workspace/autogeneration/survey/template.js","client/legacy/pods/components/workspace/autogeneration/template-picker/item/component.ts","client/legacy/pods/components/workspace/autogeneration/template-picker/item/template.js","client/legacy/pods/components/workspace/autogeneration/template-picker/items/template.js","client/legacy/pods/components/workspace/autogeneration/template-picker/template.js","client/legacy/pods/components/workspace/autogeneration/template.js","client/legacy/pods/components/workspace/component-empty-state/template.js","client/legacy/pods/components/workspace/component.ts","client/legacy/pods/components/workspace/grid/component.ts","client/legacy/pods/components/workspace/grid/template.js","client/legacy/pods/components/workspace/panel/component-to-drag/component.js","client/legacy/pods/components/workspace/panel/component-to-drag/template.js","client/legacy/pods/components/workspace/panel/impacted-components-confirmation/component.ts","client/legacy/pods/components/workspace/panel/impacted-components-confirmation/template.js","client/legacy/pods/components/workspace/panel/template.js","client/legacy/pods/components/workspace/template.js","client/legacy/pods/components/x-dropdown/component.js","client/legacy/pods/error/route.js","client/legacy/pods/error/template.js","client/legacy/pods/google-auth-redirect/route.js","client/legacy/pods/google-auth-redirect/template.js","client/legacy/pods/google-authentication/route.js","client/legacy/pods/google-authentication/template.js","client/legacy/pods/index/route.js","client/legacy/pods/index/template.js","client/legacy/pods/invitation/route.ts","client/legacy/pods/livedemo/route.js","client/legacy/pods/loading/template.js","client/legacy/pods/login-sso/route.ts","client/legacy/pods/login/route.ts","client/legacy/pods/new-project/route.ts","client/legacy/pods/oidc/confirm-success/route.js","client/legacy/pods/oidc/confirm-success/template.js","client/legacy/pods/oidc/confirm/controller.js","client/legacy/pods/oidc/confirm/route.js","client/legacy/pods/oidc/confirm/template.js","client/legacy/pods/organization/projects/index/route.ts","client/legacy/pods/organization/route.js","client/legacy/pods/organization/settings/controller.js","client/legacy/pods/organization/settings/index/route.js","client/legacy/pods/organization/settings/overview/controller.js","client/legacy/pods/organization/settings/overview/route.js","client/legacy/pods/organization/settings/overview/template.js","client/legacy/pods/organization/settings/ownership/controller.js","client/legacy/pods/organization/settings/ownership/route.js","client/legacy/pods/organization/settings/ownership/template.js","client/legacy/pods/organization/settings/route.js","client/legacy/pods/organization/settings/security/choose-configuration/controller.ts","client/legacy/pods/organization/settings/security/choose-configuration/route.js","client/legacy/pods/organization/settings/security/choose-configuration/template.js","client/legacy/pods/organization/settings/security/index/controller.js","client/legacy/pods/organization/settings/security/index/route.js","client/legacy/pods/organization/settings/security/index/template.js","client/legacy/pods/organization/settings/security/manual-input-configuration/route.js","client/legacy/pods/organization/settings/security/manual-input-configuration/template.js","client/legacy/pods/organization/settings/security/route.js","client/legacy/pods/organization/settings/security/template.js","client/legacy/pods/organization/settings/security/xml-configuration/route.js","client/legacy/pods/organization/settings/security/xml-configuration/template.js","client/legacy/pods/organization/settings/template.js","client/legacy/pods/project/controller.js","client/legacy/pods/project/environment/route.js","client/legacy/pods/project/index/route.js","client/legacy/pods/project/loading/template.js","client/legacy/pods/project/no-environments-available/controller.js","client/legacy/pods/project/no-environments-available/route.js","client/legacy/pods/project/no-environments-available/template.js","client/legacy/pods/project/not-found/route.js","client/legacy/pods/project/onboarding/controller.js","client/legacy/pods/project/onboarding/default/template.js","client/legacy/pods/project/onboarding/deployment/controller.ts","client/legacy/pods/project/onboarding/deployment/route.js","client/legacy/pods/project/onboarding/deployment/template.js","client/legacy/pods/project/onboarding/flows/common-bubbles.ts","client/legacy/pods/project/onboarding/flows/common.ts","client/legacy/pods/project/onboarding/flows/databases/default-database-credentials.ts","client/legacy/pods/project/onboarding/flows/databases/maria-db.ts","client/legacy/pods/project/onboarding/flows/databases/microsoft-sql.ts","client/legacy/pods/project/onboarding/flows/databases/missing.ts","client/legacy/pods/project/onboarding/flows/databases/mongo-atlas.ts","client/legacy/pods/project/onboarding/flows/databases/mongo-db.ts","client/legacy/pods/project/onboarding/flows/databases/my-sql.ts","client/legacy/pods/project/onboarding/flows/databases/postgres-sql.ts","client/legacy/pods/project/onboarding/flows/databases/supabase.ts","client/legacy/pods/project/onboarding/flows/deployment/common-deployment.ts","client/legacy/pods/project/onboarding/flows/deployment/in-app-deployment.ts","client/legacy/pods/project/onboarding/flows/deployment/index.ts","client/legacy/pods/project/onboarding/flows/deployment/microservice-deployment.ts","client/legacy/pods/project/onboarding/flows/installation/cloud/common.ts","client/legacy/pods/project/onboarding/flows/installation/cloud/index.ts","client/legacy/pods/project/onboarding/flows/installation/common-installation.ts","client/legacy/pods/project/onboarding/flows/installation/in-app/agent-nodejs/common-agent-nodejs.ts","client/legacy/pods/project/onboarding/flows/installation/in-app/agent-nodejs/get-mongoose-code.ts","client/legacy/pods/project/onboarding/flows/installation/in-app/agent-nodejs/get-sequelize-code.ts","client/legacy/pods/project/onboarding/flows/installation/in-app/agent-nodejs/get-sql-code.ts","client/legacy/pods/project/onboarding/flows/installation/in-app/index.ts","client/legacy/pods/project/onboarding/flows/installation/in-app/rails.ts","client/legacy/pods/project/onboarding/flows/installation/index.ts","client/legacy/pods/project/onboarding/flows/installation/microservice/index.ts","client/legacy/pods/project/onboarding/flows/installation/microservice/microservice-common.ts","client/legacy/pods/project/onboarding/framework/template.js","client/legacy/pods/project/onboarding/hosting/template.js","client/legacy/pods/project/onboarding/integration/controller.ts","client/legacy/pods/project/onboarding/integration/route.ts","client/legacy/pods/project/onboarding/integration/template.js","client/legacy/pods/project/onboarding/orm/template.js","client/legacy/pods/project/onboarding/review/controller.ts","client/legacy/pods/project/onboarding/review/route.ts","client/legacy/pods/project/onboarding/review/template.js","client/legacy/pods/project/onboarding/route.ts","client/legacy/pods/project/onboarding/stack/template.js","client/legacy/pods/project/onboarding/template.js","client/legacy/pods/project/project-settings/billing/edit/company/controller.ts","client/legacy/pods/project/project-settings/billing/edit/company/route.ts","client/legacy/pods/project/project-settings/billing/edit/company/template.js","client/legacy/pods/project/project-settings/billing/edit/payment-loading/template.js","client/legacy/pods/project/project-settings/billing/edit/payment/controller.ts","client/legacy/pods/project/project-settings/billing/edit/payment/route.ts","client/legacy/pods/project/project-settings/billing/edit/payment/template.js","client/legacy/pods/project/project-settings/billing/edit/route.ts","client/legacy/pods/project/project-settings/billing/index/controller.js","client/legacy/pods/project/project-settings/billing/index/template.js","client/legacy/pods/project/project-settings/billing/manage-your-plan/controller.js","client/legacy/pods/project/project-settings/billing/manage-your-plan/route.js","client/legacy/pods/project/project-settings/billing/manage-your-plan/template.js","client/legacy/pods/project/project-settings/billing/route.js","client/legacy/pods/project/project-settings/billing/template.js","client/legacy/pods/project/project-settings/billing/upgrade-loading/template.js","client/legacy/pods/project/project-settings/billing/upgrade/controller.js","client/legacy/pods/project/project-settings/billing/upgrade/route.js","client/legacy/pods/project/project-settings/billing/upgrade/template.js","client/legacy/pods/project/project-settings/controller.js","client/legacy/pods/project/project-settings/environments/details/databases/controller.ts","client/legacy/pods/project/project-settings/environments/details/databases/route.ts","client/legacy/pods/project/project-settings/environments/details/databases/template.js","client/legacy/pods/project/project-settings/environments/details/index/controller.js","client/legacy/pods/project/project-settings/environments/details/index/template.js","client/legacy/pods/project/project-settings/environments/details/route.js","client/legacy/pods/project/project-settings/environments/index/controller.ts","client/legacy/pods/project/project-settings/environments/index/route.ts","client/legacy/pods/project/project-settings/environments/index/template.js","client/legacy/pods/project/project-settings/environments/route.js","client/legacy/pods/project/project-settings/environments/template.js","client/legacy/pods/project/project-settings/general/controller.js","client/legacy/pods/project/project-settings/general/route.js","client/legacy/pods/project/project-settings/general/template.js","client/legacy/pods/project/project-settings/interface/controller.js","client/legacy/pods/project/project-settings/interface/route.js","client/legacy/pods/project/project-settings/interface/template.js","client/legacy/pods/project/project-settings/roles/create/controller.js","client/legacy/pods/project/project-settings/roles/create/route.js","client/legacy/pods/project/project-settings/roles/create/template.js","client/legacy/pods/project/project-settings/roles/details-loading/template.js","client/legacy/pods/project/project-settings/roles/details/edit/controller.js","client/legacy/pods/project/project-settings/roles/details/edit/route.js","client/legacy/pods/project/project-settings/roles/details/edit/template.js","client/legacy/pods/project/project-settings/roles/details/environment-permissions/collections/controller.js","client/legacy/pods/project/project-settings/roles/details/environment-permissions/collections/route.js","client/legacy/pods/project/project-settings/roles/details/environment-permissions/collections/template.js","client/legacy/pods/project/project-settings/roles/details/environment-permissions/controller.js","client/legacy/pods/project/project-settings/roles/details/environment-permissions/index/controller.js","client/legacy/pods/project/project-settings/roles/details/environment-permissions/index/route.js","client/legacy/pods/project/project-settings/roles/details/environment-permissions/index/template.js","client/legacy/pods/project/project-settings/roles/details/environment-permissions/route.js","client/legacy/pods/project/project-settings/roles/details/environment-permissions/smart-actions/controller.js","client/legacy/pods/project/project-settings/roles/details/environment-permissions/smart-actions/route.ts","client/legacy/pods/project/project-settings/roles/details/environment-permissions/smart-actions/template.js","client/legacy/pods/project/project-settings/roles/details/environment-permissions/template.js","client/legacy/pods/project/project-settings/roles/details/index/route.js","client/legacy/pods/project/project-settings/roles/details/index/template.js","client/legacy/pods/project/project-settings/roles/details/route.js","client/legacy/pods/project/project-settings/roles/details/template.js","client/legacy/pods/project/project-settings/roles/index/controller.js","client/legacy/pods/project/project-settings/roles/index/route.js","client/legacy/pods/project/project-settings/roles/index/template.js","client/legacy/pods/project/project-settings/roles/preview/route.js","client/legacy/pods/project/project-settings/roles/preview/template.js","client/legacy/pods/project/project-settings/route.js","client/legacy/pods/project/project-settings/security/controller.js","client/legacy/pods/project/project-settings/security/route.js","client/legacy/pods/project/project-settings/security/template.js","client/legacy/pods/project/project-settings/teams/create/controller.js","client/legacy/pods/project/project-settings/teams/create/route.js","client/legacy/pods/project/project-settings/teams/create/template.js","client/legacy/pods/project/project-settings/teams/details/route.js","client/legacy/pods/project/project-settings/teams/details/template.js","client/legacy/pods/project/project-settings/teams/index/controller.js","client/legacy/pods/project/project-settings/teams/index/route.js","client/legacy/pods/project/project-settings/teams/index/template.js","client/legacy/pods/project/project-settings/teams/preview/route.js","client/legacy/pods/project/project-settings/teams/preview/template.js","client/legacy/pods/project/project-settings/template.js","client/legacy/pods/project/project-settings/users/details/controller.js","client/legacy/pods/project/project-settings/users/details/route.js","client/legacy/pods/project/project-settings/users/details/template.js","client/legacy/pods/project/project-settings/users/index/controller.js","client/legacy/pods/project/project-settings/users/index/route.js","client/legacy/pods/project/project-settings/users/index/template.js","client/legacy/pods/project/rendering/activity/route.js","client/legacy/pods/project/rendering/collaboration/approvals/controller.ts","client/legacy/pods/project/rendering/collaboration/approvals/details/controller.ts","client/legacy/pods/project/rendering/collaboration/approvals/details/route.ts","client/legacy/pods/project/rendering/collaboration/approvals/details/template.js","client/legacy/pods/project/rendering/collaboration/approvals/route.ts","client/legacy/pods/project/rendering/collaboration/approvals/template.js","client/legacy/pods/project/rendering/collaboration/controller.ts","client/legacy/pods/project/rendering/collaboration/index/side-panel-title/component.js","client/legacy/pods/project/rendering/collaboration/index/template.js","client/legacy/pods/project/rendering/collaboration/messages/controller.ts","client/legacy/pods/project/rendering/collaboration/messages/created/route.js","client/legacy/pods/project/rendering/collaboration/messages/created/template.js","client/legacy/pods/project/rendering/collaboration/messages/index/route.js","client/legacy/pods/project/rendering/collaboration/messages/mentions/route.js","client/legacy/pods/project/rendering/collaboration/messages/mentions/template.js","client/legacy/pods/project/rendering/collaboration/messages/preview/route.js","client/legacy/pods/project/rendering/collaboration/messages/preview/template.js","client/legacy/pods/project/rendering/collaboration/messages/template.js","client/legacy/pods/project/rendering/collaboration/route.js","client/legacy/pods/project/rendering/collaboration/template.js","client/legacy/pods/project/rendering/controller.js","client/legacy/pods/project/rendering/dashboard/controller.ts","client/legacy/pods/project/rendering/dashboard/index/controller.js","client/legacy/pods/project/rendering/dashboard/index/route.js","client/legacy/pods/project/rendering/dashboard/index/template.js","client/legacy/pods/project/rendering/dashboard/new/controller.ts","client/legacy/pods/project/rendering/dashboard/new/route.js","client/legacy/pods/project/rendering/dashboard/new/template.js","client/legacy/pods/project/rendering/dashboard/preview/controller.js","client/legacy/pods/project/rendering/dashboard/preview/route.js","client/legacy/pods/project/rendering/dashboard/preview/template.js","client/legacy/pods/project/rendering/dashboard/route.js","client/legacy/pods/project/rendering/dashboard/template.js","client/legacy/pods/project/rendering/dashboard/view/chart/create/controller.js","client/legacy/pods/project/rendering/dashboard/view/chart/create/route.ts","client/legacy/pods/project/rendering/dashboard/view/chart/create/template.js","client/legacy/pods/project/rendering/dashboard/view/chart/edit/controller.js","client/legacy/pods/project/rendering/dashboard/view/chart/edit/route.ts","client/legacy/pods/project/rendering/dashboard/view/chart/edit/template.js","client/legacy/pods/project/rendering/dashboard/view/chart/smart-edit/route.js","client/legacy/pods/project/rendering/dashboard/view/chart/smart-edit/template.js","client/legacy/pods/project/rendering/dashboard/view/controller.js","client/legacy/pods/project/rendering/dashboard/view/route.js","client/legacy/pods/project/rendering/dashboard/view/settings/route.ts","client/legacy/pods/project/rendering/dashboard/view/settings/template.js","client/legacy/pods/project/rendering/dashboard/view/template.js","client/legacy/pods/project/rendering/data/collection-error/route.js","client/legacy/pods/project/rendering/data/collection-error/template.js","client/legacy/pods/project/rendering/data/collection/controller.js","client/legacy/pods/project/rendering/data/collection/list/index/controller.ts","client/legacy/pods/project/rendering/data/collection/list/index/route.ts","client/legacy/pods/project/rendering/data/collection/list/index/template.js","client/legacy/pods/project/rendering/data/collection/list/route.js","client/legacy/pods/project/rendering/data/collection/list/smart-view-editor/actions/template.js","client/legacy/pods/project/rendering/data/collection/list/smart-view-editor/controller.js","client/legacy/pods/project/rendering/data/collection/list/smart-view-editor/route.js","client/legacy/pods/project/rendering/data/collection/list/smart-view-editor/template.js","client/legacy/pods/project/rendering/data/collection/list/view-create/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-create/details/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-create/details/route.js","client/legacy/pods/project/rendering/data/collection/list/view-create/details/template.js","client/legacy/pods/project/rendering/data/collection/list/view-create/new-belongs-to/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-create/new-belongs-to/route.js","client/legacy/pods/project/rendering/data/collection/list/view-create/new-belongs-to/template.js","client/legacy/pods/project/rendering/data/collection/list/view-create/route.js","client/legacy/pods/project/rendering/data/collection/list/view-create/template.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many-embedded/create/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many-embedded/create/route.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many-embedded/create/template.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many-embedded/index/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many-embedded/index/template.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many-embedded/route.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many/add/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many/add/route.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many/add/template.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many/create/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many/create/route.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many/create/template.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many/index/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many/index/route.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many/index/template.js","client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit-loading/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/activity/index/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/activity/index/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/activity/index/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/activity/preview/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/activity/preview/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/preview/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/preview/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/chart/create/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/chart/create/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/chart/create/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/chart/edit/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/chart/edit/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/chart/edit/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/chart/smart-edit/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/chart/smart-edit/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/index-loading/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/index/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/index/create/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/index/create/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/index/create/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/index/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/index/show/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/index/show/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/index/show/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/index/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/preview/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/preview/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/details-integration/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/details-integration/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/details-integration/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/details/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/details/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/details/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/explorer/index/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/explorer/index/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/explorer/index/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/explorer/preview/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/explorer/preview/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/index/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/integration/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/integration/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/integration/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/new-belongs-to/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/new-belongs-to/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/new-belongs-to/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/summary/index/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/summary/index/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/summary/index/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/summary/preview/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/summary/preview/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-embedded/create/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-embedded/create/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-embedded/create/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-embedded/edit/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-embedded/edit/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-embedded/edit/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-embedded/index/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-embedded/index/route.ts","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-embedded/index/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-embedded/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-loading/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many/add/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many/add/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many/add/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many/create/controller.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many/create/route.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many/create/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many/index/controller.ts","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many/index/route.ts","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many/index/template.js","client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many/route.js","client/legacy/pods/project/rendering/data/collection/route.ts","client/legacy/pods/project/rendering/data/collection/settings/actions/controller.js","client/legacy/pods/project/rendering/data/collection/settings/actions/create/controller.ts","client/legacy/pods/project/rendering/data/collection/settings/actions/create/route.ts","client/legacy/pods/project/rendering/data/collection/settings/actions/create/template.js","client/legacy/pods/project/rendering/data/collection/settings/actions/details/controller.ts","client/legacy/pods/project/rendering/data/collection/settings/actions/details/route.ts","client/legacy/pods/project/rendering/data/collection/settings/actions/details/template.js","client/legacy/pods/project/rendering/data/collection/settings/actions/route.js","client/legacy/pods/project/rendering/data/collection/settings/actions/template.js","client/legacy/pods/project/rendering/data/collection/settings/controller.js","client/legacy/pods/project/rendering/data/collection/settings/fields/controller.js","client/legacy/pods/project/rendering/data/collection/settings/fields/details/controller.js","client/legacy/pods/project/rendering/data/collection/settings/fields/details/route.js","client/legacy/pods/project/rendering/data/collection/settings/fields/details/template.js","client/legacy/pods/project/rendering/data/collection/settings/fields/route.js","client/legacy/pods/project/rendering/data/collection/settings/fields/template.js","client/legacy/pods/project/rendering/data/collection/settings/general/controller.js","client/legacy/pods/project/rendering/data/collection/settings/general/route.js","client/legacy/pods/project/rendering/data/collection/settings/general/template.js","client/legacy/pods/project/rendering/data/collection/settings/route.js","client/legacy/pods/project/rendering/data/collection/settings/scope/index/route.js","client/legacy/pods/project/rendering/data/collection/settings/scope/index/template.js","client/legacy/pods/project/rendering/data/collection/settings/scope/preview/controller.js","client/legacy/pods/project/rendering/data/collection/settings/scope/preview/route.js","client/legacy/pods/project/rendering/data/collection/settings/scope/preview/template.js","client/legacy/pods/project/rendering/data/collection/settings/segments/controller.js","client/legacy/pods/project/rendering/data/collection/settings/segments/create/controller.js","client/legacy/pods/project/rendering/data/collection/settings/segments/create/route.js","client/legacy/pods/project/rendering/data/collection/settings/segments/create/template.js","client/legacy/pods/project/rendering/data/collection/settings/segments/details/controller.js","client/legacy/pods/project/rendering/data/collection/settings/segments/details/route.js","client/legacy/pods/project/rendering/data/collection/settings/segments/details/template.js","client/legacy/pods/project/rendering/data/collection/settings/segments/route.js","client/legacy/pods/project/rendering/data/collection/settings/segments/template.js","client/legacy/pods/project/rendering/data/collection/settings/template.js","client/legacy/pods/project/rendering/data/collection/settings/views/controller.js","client/legacy/pods/project/rendering/data/collection/settings/views/create/controller.js","client/legacy/pods/project/rendering/data/collection/settings/views/create/route.js","client/legacy/pods/project/rendering/data/collection/settings/views/create/template.js","client/legacy/pods/project/rendering/data/collection/settings/views/details/controller.js","client/legacy/pods/project/rendering/data/collection/settings/views/details/route.js","client/legacy/pods/project/rendering/data/collection/settings/views/details/template.js","client/legacy/pods/project/rendering/data/collection/settings/views/preview/controller.js","client/legacy/pods/project/rendering/data/collection/settings/views/preview/route.js","client/legacy/pods/project/rendering/data/collection/settings/views/preview/template.js","client/legacy/pods/project/rendering/data/collection/settings/views/route.js","client/legacy/pods/project/rendering/data/collection/settings/views/template.js","client/legacy/pods/project/rendering/data/collection/settings/workflows/details/route.ts","client/legacy/pods/project/rendering/data/collection/settings/workflows/details/template.js","client/legacy/pods/project/rendering/data/collection/settings/workflows/route.ts","client/legacy/pods/project/rendering/data/collection/settings/workflows/template.js","client/legacy/pods/project/rendering/data/controller.js","client/legacy/pods/project/rendering/data/index/controller.ts","client/legacy/pods/project/rendering/data/index/template.js","client/legacy/pods/project/rendering/data/route.js","client/legacy/pods/project/rendering/data/template.js","client/legacy/pods/project/rendering/index/route.js","client/legacy/pods/project/rendering/not-found/route.js","client/legacy/pods/project/rendering/not-found/template.js","client/legacy/pods/project/rendering/route.ts","client/legacy/pods/project/rendering/template.js","client/legacy/pods/project/rendering/workspaces/controller.ts","client/legacy/pods/project/rendering/workspaces/index/route.js","client/legacy/pods/project/rendering/workspaces/route.js","client/legacy/pods/project/rendering/workspaces/template.js","client/legacy/pods/project/rendering/workspaces/view-error/route.js","client/legacy/pods/project/rendering/workspaces/view-error/template.js","client/legacy/pods/project/rendering/workspaces/view/builder/configure-component/route.ts","client/legacy/pods/project/rendering/workspaces/view/builder/configure-component/template.js","client/legacy/pods/project/rendering/workspaces/view/builder/route.js","client/legacy/pods/project/rendering/workspaces/view/builder/template.js","client/legacy/pods/project/rendering/workspaces/view/controller.ts","client/legacy/pods/project/rendering/workspaces/view/index/controller.ts","client/legacy/pods/project/rendering/workspaces/view/index/route.ts","client/legacy/pods/project/rendering/workspaces/view/index/template.js","client/legacy/pods/project/rendering/workspaces/view/route.ts","client/legacy/pods/project/rendering/workspaces/view/settings/controller.ts","client/legacy/pods/project/rendering/workspaces/view/settings/route.ts","client/legacy/pods/project/rendering/workspaces/view/settings/template.js","client/legacy/pods/project/rendering/workspaces/view/template.js","client/legacy/pods/project/route.ts","client/legacy/pods/project/template.js","client/legacy/pods/projects/index/controller.ts","client/legacy/pods/projects/index/route.ts","client/legacy/pods/projects/index/template.js","client/legacy/pods/reset-password/route.ts","client/legacy/pods/saml-callback/route.js","client/legacy/pods/signup/route.ts","client/legacy/pods/update-password/route.ts","client/legacy/pods/user-settings/application-tokens/details/controller.js","client/legacy/pods/user-settings/application-tokens/details/route.js","client/legacy/pods/user-settings/application-tokens/details/template.js","client/legacy/pods/user-settings/application-tokens/generate/controller.js","client/legacy/pods/user-settings/application-tokens/generate/route.js","client/legacy/pods/user-settings/application-tokens/generate/template.js","client/legacy/pods/user-settings/application-tokens/new/template.js","client/legacy/pods/user-settings/application-tokens/route.js","client/legacy/pods/user-settings/application-tokens/template.js","client/legacy/pods/user-settings/controller.js","client/legacy/pods/user-settings/index/template.js","client/legacy/pods/user-settings/route.js","client/legacy/pods/user-settings/template.js","client/legacy/pods/user-settings/two-factor-authentication/instructions/controller.js","client/legacy/pods/user-settings/two-factor-authentication/instructions/route.js","client/legacy/pods/user-settings/two-factor-authentication/instructions/template.js","client/legacy/pods/user-settings/two-factor-authentication/recovery-codes/controller.js","client/legacy/pods/user-settings/two-factor-authentication/recovery-codes/route.js","client/legacy/pods/user-settings/two-factor-authentication/recovery-codes/template.js","client/legacy/pods/user-settings/two-factor-authentication/route.js","client/legacy/pods/user-settings/two-factor-authentication/setup/controller.js","client/legacy/pods/user-settings/two-factor-authentication/setup/route.js","client/legacy/pods/user-settings/two-factor-authentication/setup/template.js","client/legacy/pods/user-settings/two-factor-authentication/template.js","client/legacy/services/action-approval-service.ts","client/legacy/services/activity-tracker.ts","client/legacy/services/ajax-caller.ts","client/legacy/services/animation-transition.ts","client/legacy/services/apollo.ts","client/legacy/services/application-checker.ts","client/legacy/services/assignee-fetcher.ts","client/legacy/services/authenticated-server-fetch.ts","client/legacy/services/authentication-redirection-service.ts","client/legacy/services/auto-logout.ts","client/legacy/services/aws-code-downloader.ts","client/legacy/services/aws-code-uploader.ts","client/legacy/services/beta-collection-list-communicator.ts","client/legacy/services/billing-service.ts","client/legacy/services/business/address-finder.ts","client/legacy/services/business/collection.ts","client/legacy/services/business/scope.ts","client/legacy/services/business/smart-code-loader.ts","client/legacy/services/business/smart-view-code-migrator.ts","client/legacy/services/business/workspace-autogenerator.ts","client/legacy/services/business/workspace-manager.ts","client/legacy/services/clipboard.ts","client/legacy/services/collection-creator.ts","client/legacy/services/collection-remover.ts","client/legacy/services/collection-state.ts","client/legacy/services/collections-creator.ts","client/legacy/services/collections-manager.ts","client/legacy/services/collections-remover.ts","client/legacy/services/context-menu.ts","client/legacy/services/copy-layout-requester.ts","client/legacy/services/csv-exporter.ts","client/legacy/services/current-organization.ts","client/legacy/services/current-user.ts","client/legacy/services/custom-domain.ts","client/legacy/services/customer-io-in-app.ts","client/legacy/services/datadog.ts","client/legacy/services/document.ts","client/legacy/services/documentation-link-getter.ts","client/legacy/services/download.ts","client/legacy/services/environments-without-enabled-roles.ts","client/legacy/services/error-handler.ts","client/legacy/services/event-bus.ts","client/legacy/services/favicon-manager.ts","client/legacy/services/file-saver.ts","client/legacy/services/forest-session.ts","client/legacy/services/google-authentication-service.ts","client/legacy/services/google-authorization.ts","client/legacy/services/html-sanitizer.ts","client/legacy/services/hubspot-live-chat.ts","client/legacy/services/jimo.ts","client/legacy/services/last-visited-organization-service.ts","client/legacy/services/liana-features.ts","client/legacy/services/liana-server-fetch.ts","client/legacy/services/liana-session-legacy.ts","client/legacy/services/liana-session-oidc-links.ts","client/legacy/services/liana-session-oidc.ts","client/legacy/services/liana-session.ts","client/legacy/services/local-storage.ts","client/legacy/services/locale.ts","client/legacy/services/logout-message.ts","client/legacy/services/logout-redirection-service.ts","client/legacy/services/lottie.ts","client/legacy/services/model-customization-service.ts","client/legacy/services/oidc/device-flow.ts","client/legacy/services/organization-service.ts","client/legacy/services/performance-warner.ts","client/legacy/services/plan-service.ts","client/legacy/services/popup.ts","client/legacy/services/premium-feature-upgrader.ts","client/legacy/services/project-existence-checker.ts","client/legacy/services/qrcode.ts","client/legacy/services/record-duplicator.ts","client/legacy/services/records-manager.ts","client/legacy/services/recovery-codes-service.ts","client/legacy/services/redirection.ts","client/legacy/services/reference-field-service.ts","client/legacy/services/related-records-manager.ts","client/legacy/services/relationships-binder.ts","client/legacy/services/role-condition-service.ts","client/legacy/services/route-history.ts","client/legacy/services/saml-flow.ts","client/legacy/services/scim-service.ts","client/legacy/services/segment-tracker.ts","client/legacy/services/server-fetch.ts","client/legacy/services/session-refresh.ts","client/legacy/services/set-time.ts","client/legacy/services/smart-code-register.ts","client/legacy/services/stat-triggerer.ts","client/legacy/services/state/approvals/filters.ts","client/legacy/services/store.js","client/legacy/services/stripe-import-service.ts","client/legacy/services/stripe-service.ts","client/legacy/services/subscription-service.ts","client/legacy/services/summary-view-state.ts","client/legacy/services/timezone.ts","client/legacy/services/toastr.ts","client/legacy/services/tracker.ts","client/legacy/services/ui-control.ts","client/legacy/services/ui/approvals/approval-ui-service.ts","client/legacy/services/ui/collection-settings/model-customization-ui-service.ts","client/legacy/services/ui/notes/notes-ui-service.ts","client/legacy/services/ui/project-settings/billing-ui-service.ts","client/legacy/services/value-highlighter.ts","client/legacy/services/white-label.ts","client/legacy/services/widgets-manager.ts","client/locations/test-location.js","client/resolver.ts","client/router.ts","client/routes/authentication/invitation/route.ts","client/routes/authentication/invitation/template.js","client/routes/authentication/login/index/template.js","client/routes/authentication/login/route.ts","client/routes/authentication/login/sso/template.js","client/routes/authentication/reset-password/template.js","client/routes/authentication/route.ts","client/routes/authentication/signup/index/route.ts","client/routes/authentication/signup/index/template.js","client/routes/authentication/signup/sso/template.js","client/routes/authentication/template.js","client/routes/authentication/update-password/route.ts","client/routes/authentication/update-password/template.js","client/routes/mcp-oauth-redirect/route.ts","client/routes/mcp-oauth-redirect/template.js","client/routes/oauth/authorize/controller.ts","client/routes/oauth/authorize/route.ts","client/routes/oauth/authorize/template.js","client/routes/organization/projects/create/route.ts","client/routes/organization/projects/create/template.js","client/routes/project/project-settings/connectors/create-mcp-server/controller.ts","client/routes/project/project-settings/connectors/create-mcp-server/route.ts","client/routes/project/project-settings/connectors/create-mcp-server/template.js","client/routes/project/project-settings/connectors/index/route.ts","client/routes/project/project-settings/connectors/index/template.js","client/routes/project/project-settings/connectors/mcp-server/edit/route.ts","client/routes/project/project-settings/connectors/mcp-server/edit/template.js","client/routes/project/project-settings/connectors/mcp-server/index/template.js","client/routes/project/project-settings/connectors/mcp-server/route.ts","client/routes/project/project-settings/connectors/route.ts","client/routes/project/rendering/data/collection/list/view-edit/workspace/configure-component/route.ts","client/routes/project/rendering/data/collection/list/view-edit/workspace/configure-component/template.js","client/routes/project/rendering/data/collection/list/view-edit/workspace/route.ts","client/routes/project/rendering/data/collection/list/view-edit/workspace/template.js","client/routes/project/rendering/data/collection/workflow-editor/controller.ts","client/routes/project/rendering/data/collection/workflow-editor/route.ts","client/routes/project/rendering/data/collection/workflow-editor/template.js","client/routes/project/rendering/folders/index/route.ts","client/routes/project/rendering/folders/route.ts","client/routes/project/rendering/folders/template.js","client/routes/project/rendering/folders/view/index/route.ts","client/routes/project/rendering/folders/view/index/template.js","client/routes/project/rendering/folders/view/route.ts","client/routes/project/rendering/folders/view/settings/route.ts","client/routes/project/rendering/folders/view/settings/template.js","client/routes/project/rendering/folders/view/template.js","client/routes/project/rendering/inbox/preview/route.ts","client/routes/project/rendering/inbox/preview/template.js","client/routes/project/rendering/inbox/template.js","client/routes/project/rendering/inbox/view-error/route.ts","client/routes/project/rendering/inbox/view-error/template.js","client/routes/project/rendering/inbox/view/backlog/controller.ts","client/routes/project/rendering/inbox/view/backlog/route.ts","client/routes/project/rendering/inbox/view/backlog/template.js","client/routes/project/rendering/inbox/view/doing/template.js","client/routes/project/rendering/inbox/view/index/route.ts","client/routes/project/rendering/inbox/view/route.ts","client/routes/project/rendering/inbox/view/settings/template.js","client/routes/project/rendering/inbox/view/template.js","client/routes/project/rendering/inbox/view/todo/template.js","client/routes/project/rendering/reports/activity/index/controller.ts","client/routes/project/rendering/reports/activity/index/route.ts","client/routes/project/rendering/reports/activity/index/template.js","client/routes/project/rendering/reports/activity/preview/route.js","client/routes/project/rendering/reports/activity/preview/template.js","client/routes/project/rendering/reports/activity/route.js","client/routes/project/rendering/reports/index/route.ts","client/routes/project/rendering/reports/route.ts","client/routes/project/rendering/reports/team-performance/index/controller.ts","client/routes/project/rendering/reports/team-performance/index/route.ts","client/routes/project/rendering/reports/team-performance/index/template.js","client/routes/project/rendering/reports/team-performance/preview/route.ts","client/routes/project/rendering/reports/team-performance/preview/template.js","client/routes/project/rendering/reports/template.js","client/routes/projects/create/route.ts","client/routes/projects/create/template.js","client/routes/responsive/browser-extension/main/index/template.js","client/routes/responsive/browser-extension/main/route.ts","client/routes/responsive/browser-extension/onboarding/route.ts","client/routes/responsive/browser-extension/onboarding/template.js","client/routes/responsive/browser-extension/route.ts","client/routes/responsive/browser-extension/settings-loading/template.js","client/routes/responsive/browser-extension/settings/route.ts","client/routes/responsive/browser-extension/settings/template.js","client/routes/responsive/browser-extension/template.js","client/routes/zendesk-oauth-redirect/route.ts","client/routes/zendesk-oauth-redirect/template.js","client/services/asset-map.js","client/session-stores/application.js","client/shared/components/activatable-button/component.ts","client/shared/components/activatable-button/story.js","client/shared/components/activatable-button/template.js","client/shared/components/allow-js-toggle/component.ts","client/shared/components/allow-js-toggle/modal/story.js","client/shared/components/allow-js-toggle/modal/template.js","client/shared/components/allow-js-toggle/story.js","client/shared/components/allow-js-toggle/template.js","client/shared/components/beta-emoji-picker/component.ts","client/shared/components/beta-emoji-picker/template.js","client/shared/components/beta-icon-button/template.js","client/shared/components/beta-input-color/component.ts","client/shared/components/beta-input-color/template.js","client/shared/components/beta-input-date/calendar/component.js","client/shared/components/beta-input-date/calendar/template.js","client/shared/components/beta-input-date/component.js","client/shared/components/beta-input-date/template.js","client/shared/components/beta-input-list/component.js","client/shared/components/beta-input-list/template.js","client/shared/components/beta-input-locked/component.js","client/shared/components/beta-input-locked/template.js","client/shared/components/beta-input-password-strength/component.js","client/shared/components/beta-input-password-strength/template.js","client/shared/components/beta-input-phone/component.ts","client/shared/components/beta-input-phone/template.js","client/shared/components/beta-input/component.js","client/shared/components/beta-input/story.js","client/shared/components/beta-input/template.js","client/shared/components/beta-label/component.js","client/shared/components/beta-label/story.js","client/shared/components/beta-label/template.js","client/shared/components/beta-label/text/template.js","client/shared/components/beta-modal/component.js","client/shared/components/beta-modal/footer-with-steps/component.ts","client/shared/components/beta-modal/footer-with-steps/template.js","client/shared/components/beta-modal/template.js","client/shared/components/beta-new-paginator/component.js","client/shared/components/beta-new-paginator/template.js","client/shared/components/beta-paginator/component.js","client/shared/components/beta-paginator/template.js","client/shared/components/beta-radio-button/component.ts","client/shared/components/beta-radio-button/story.js","client/shared/components/beta-radio-button/template.js","client/shared/components/beta-right-panel/section/component.ts","client/shared/components/beta-right-panel/section/story.js","client/shared/components/beta-right-panel/section/template.js","client/shared/components/beta-right-panel/story.js","client/shared/components/beta-right-panel/template.js","client/shared/components/beta-search-bar/component.ts","client/shared/components/beta-search-bar/template.js","client/shared/components/beta-select-color/component.ts","client/shared/components/beta-select-color/story.js","client/shared/components/beta-select-color/template.js","client/shared/components/beta-select-search/component.ts","client/shared/components/beta-select-search/template.js","client/shared/components/beta-select/component.ts","client/shared/components/beta-select/story.js","client/shared/components/beta-select/template.js","client/shared/components/beta-settings-layout/delete-section/component.ts","client/shared/components/beta-settings-layout/delete-section/story.js","client/shared/components/beta-settings-layout/delete-section/template.js","client/shared/components/beta-settings-layout/header/template.js","client/shared/components/beta-settings-layout/save-button/component.ts","client/shared/components/beta-settings-layout/save-button/story.js","client/shared/components/beta-settings-layout/save-button/template.js","client/shared/components/beta-settings-layout/section-for-table/template.js","client/shared/components/beta-settings-layout/section/component.js","client/shared/components/beta-settings-layout/section/story.js","client/shared/components/beta-settings-layout/section/template.js","client/shared/components/beta-settings-layout/template.js","client/shared/components/beta-settings-menu/component.js","client/shared/components/beta-settings-menu/template.js","client/shared/components/beta-table/component.ts","client/shared/components/beta-table/header-column/component.ts","client/shared/components/beta-table/header-column/template.js","client/shared/components/beta-table/row-column/template.js","client/shared/components/beta-table/template.js","client/shared/components/beta-textarea/component.js","client/shared/components/beta-textarea/story.js","client/shared/components/beta-textarea/template.js","client/shared/components/button-split-dropdown/component.ts","client/shared/components/button-split-dropdown/story.js","client/shared/components/button-split-dropdown/template.js","client/shared/components/button/beta-button/component.js","client/shared/components/button/beta-button/story.js","client/shared/components/button/beta-button/template.js","client/shared/components/button/component.ts","client/shared/components/button/story.js","client/shared/components/button/template.js","client/shared/components/clickable/template.js","client/shared/components/close-button/story.js","client/shared/components/close-button/template.js","client/shared/components/collapsible-section/component.ts","client/shared/components/collapsible-section/story.js","client/shared/components/collapsible-section/template.js","client/shared/components/collapsible-side-panel/component.ts","client/shared/components/collapsible-side-panel/header/component.ts","client/shared/components/collapsible-side-panel/header/template.js","client/shared/components/collapsible-side-panel/story.js","client/shared/components/collapsible-side-panel/template.js","client/shared/components/color-picker/component.ts","client/shared/components/color-picker/story.js","client/shared/components/color-picker/template.js","client/shared/components/confetti/component.ts","client/shared/components/confetti/template.js","client/shared/components/contact-us-link/component.ts","client/shared/components/contact-us-link/story.js","client/shared/components/contact-us-link/template.js","client/shared/components/content-separator/component.ts","client/shared/components/content-separator/story.js","client/shared/components/content-separator/template.js","client/shared/components/data-block/component.ts","client/shared/components/data-block/story.js","client/shared/components/data-block/template.js","client/shared/components/data-display/beta-badge/component.js","client/shared/components/data-display/beta-badge/story.js","client/shared/components/data-display/beta-badge/template.js","client/shared/components/data-display/beta-code/component.ts","client/shared/components/data-display/beta-code/story.js","client/shared/components/data-display/beta-code/template.js","client/shared/components/data-display/beta-display-list/component.js","client/shared/components/data-display/beta-display-list/footer/component.js","client/shared/components/data-display/beta-display-list/footer/template.js","client/shared/components/data-display/beta-display-list/header-with-pagination/filter/button/component.js","client/shared/components/data-display/beta-display-list/header-with-pagination/filter/button/template.js","client/shared/components/data-display/beta-display-list/header-with-pagination/filter/popup/component.js","client/shared/components/data-display/beta-display-list/header-with-pagination/filter/popup/template.js","client/shared/components/data-display/beta-display-list/header-with-pagination/template.js","client/shared/components/data-display/beta-display-list/header/component.js","client/shared/components/data-display/beta-display-list/header/template.js","client/shared/components/data-display/beta-display-list/loader/template.js","client/shared/components/data-display/beta-display-list/search-bar/component.js","client/shared/components/data-display/beta-display-list/search-bar/template.js","client/shared/components/data-display/beta-display-list/story.js","client/shared/components/data-display/beta-display-list/template.js","client/shared/components/data-display/beta-highlight-multiple/component.js","client/shared/components/data-display/beta-highlight-multiple/story.js","client/shared/components/data-display/beta-highlight-multiple/template.js","client/shared/components/data-display/beta-highlight/component.js","client/shared/components/data-display/beta-highlight/story.js","client/shared/components/data-display/beta-highlight/template.js","client/shared/components/data-display/beta-icon/component.js","client/shared/components/data-display/beta-icon/mat-icon-list.js","client/shared/components/data-display/beta-icon/story.js","client/shared/components/data-display/beta-icon/template.js","client/shared/components/data-display/beta-list/component.js","client/shared/components/data-display/beta-list/story.js","client/shared/components/data-display/beta-list/template.js","client/shared/components/data-display/beta-variables/component.js","client/shared/components/data-display/beta-variables/template.js","client/shared/components/data-display/date/component.ts","client/shared/components/data-display/date/template.js","client/shared/components/data-display/font-display/component.js","client/shared/components/data-display/font-display/template.js","client/shared/components/data-display/icon-with-border/template.js","client/shared/components/data-display/items-paginated-table/component.js","client/shared/components/data-display/items-paginated-table/template.js","client/shared/components/data-display/number-badge/component.ts","client/shared/components/data-display/number-badge/story.js","client/shared/components/data-display/number-badge/template.js","client/shared/components/data-display/table/loader/component.ts","client/shared/components/data-display/table/loader/template.js","client/shared/components/editable-list/component.ts","client/shared/components/editable-list/story.js","client/shared/components/editable-list/template.js","client/shared/components/empty-state/story.js","client/shared/components/empty-state/template.js","client/shared/components/feedback/beta-feedback/template.js","client/shared/components/feedback/beta-info-tooltip/template.js","client/shared/components/feedback/beta-loader/component.ts","client/shared/components/feedback/beta-loader/template.js","client/shared/components/feedback/beta-tooltip/component.ts","client/shared/components/feedback/beta-tooltip/template.js","client/shared/components/feedback/notification/notification-in-app/component.js","client/shared/components/feedback/notification/notification-in-app/template.js","client/shared/components/feedback/progress-bar/component.ts","client/shared/components/feedback/progress-bar/story.js","client/shared/components/feedback/progress-bar/template.js","client/shared/components/feedback/tag-info/component.js","client/shared/components/feedback/tag-info/template.js","client/shared/components/filter/dropdown/component.ts","client/shared/components/filter/dropdown/story.js","client/shared/components/filter/dropdown/template.js","client/shared/components/form/check-input/component.ts","client/shared/components/form/check-input/story.js","client/shared/components/form/check-input/template.js","client/shared/components/form/create-collection-item-modal/component.ts","client/shared/components/form/create-collection-item-modal/story.js","client/shared/components/form/create-collection-item-modal/template.js","client/shared/components/form/create-name-and-icon-modal/component.ts","client/shared/components/form/create-name-and-icon-modal/story.js","client/shared/components/form/create-name-and-icon-modal/template.js","client/shared/components/form/date-range-input/component.ts","client/shared/components/form/date-range-input/story.js","client/shared/components/form/date-range-input/template.js","client/shared/components/form/date-range-picker/component.ts","client/shared/components/form/date-range-picker/story.js","client/shared/components/form/date-range-picker/template.js","client/shared/components/form/radio-input/template.js","client/shared/components/form/select-cards/component.ts","client/shared/components/form/select-cards/story.js","client/shared/components/form/select-cards/template.js","client/shared/components/form/tabs/template.js","client/shared/components/form/toggle/component.ts","client/shared/components/form/toggle/story.js","client/shared/components/form/toggle/template.js","client/shared/components/form/youtube-url-modal/component.ts","client/shared/components/form/youtube-url-modal/template.js","client/shared/components/header/component.ts","client/shared/components/header/story.js","client/shared/components/header/template.js","client/shared/components/input-with-color-presets/component.ts","client/shared/components/input-with-color-presets/story.js","client/shared/components/input-with-color-presets/template.js","client/shared/components/layout/card-on-empty-page/story.js","client/shared/components/layout/card-on-empty-page/template.js","client/shared/components/layout/full-page-title-description/story.js","client/shared/components/layout/full-page-title-description/template.js","client/shared/components/layout/loading-data/template.js","client/shared/components/modal-simple/template.js","client/shared/components/modal/action-footer/component.ts","client/shared/components/modal/action-footer/story.js","client/shared/components/modal/action-footer/template.js","client/shared/components/modal/body/template.js","client/shared/components/modal/component.ts","client/shared/components/modal/footer/story.js","client/shared/components/modal/footer/template.js","client/shared/components/modal/header/component.ts","client/shared/components/modal/header/story.js","client/shared/components/modal/header/template.js","client/shared/components/modal/split-layout-body/story.js","client/shared/components/modal/split-layout-body/template.js","client/shared/components/modal/story.js","client/shared/components/modal/template.js","client/shared/components/multi-step-modal/abstract-multi-step-modal.ts","client/shared/components/multi-step-modal/component.ts","client/shared/components/multi-step-modal/step/abstract-step-component.ts","client/shared/components/multi-step-modal/step/story.js","client/shared/components/multi-step-modal/step/template.js","client/shared/components/multi-step-modal/story.js","client/shared/components/multi-step-modal/template.js","client/shared/components/navigation/beta-link-to/component.js","client/shared/components/navigation/beta-link-to/template.js","client/shared/components/navigation/link/component.ts","client/shared/components/navigation/link/content/template.js","client/shared/components/navigation/link/story.js","client/shared/components/navigation/link/template.js","client/shared/components/navigation/sidenav/external-link/component.ts","client/shared/components/navigation/sidenav/external-link/story.js","client/shared/components/navigation/sidenav/external-link/template.js","client/shared/components/navigation/sidenav/item/component.ts","client/shared/components/navigation/sidenav/item/story.js","client/shared/components/navigation/sidenav/item/template.js","client/shared/components/navigation/sidenav/separator/story.js","client/shared/components/navigation/sidenav/separator/template.js","client/shared/components/navigation/sidenav/story.js","client/shared/components/navigation/sidenav/template.js","client/shared/components/navigation/sidenav/title/component.ts","client/shared/components/navigation/sidenav/title/story.js","client/shared/components/navigation/sidenav/title/template.js","client/shared/components/oauth-redirect-card/component.ts","client/shared/components/oauth-redirect-card/template.js","client/shared/components/portal-content/component.js","client/shared/components/portal-content/template.js","client/shared/components/portal-for/component.ts","client/shared/components/portal-for/template.js","client/shared/components/save-button/story.js","client/shared/components/save-button/template.js","client/shared/components/separator/template.js","client/shared/components/spinner/story.js","client/shared/components/spinner/template.js","client/shared/components/svg-button/component.ts","client/shared/components/svg-button/story.js","client/shared/components/svg-button/template.js","client/shared/components/svg/component.ts","client/shared/components/svg/template.js","client/shared/components/text-with-state/component.ts","client/shared/components/text-with-state/story.js","client/shared/components/text-with-state/template.js","client/shared/components/toggable-icon/story.js","client/shared/components/toggable-icon/template.js","client/shared/components/toggle-collapse-button/component.ts","client/shared/components/toggle-collapse-button/story.js","client/shared/components/toggle-collapse-button/template.js","client/shared/components/tooltip-like-modal/component.ts","client/shared/components/tooltip-like-modal/story.js","client/shared/components/tooltip-like-modal/template.js","client/shared/components/typography/code/story.js","client/shared/components/typography/code/template.js","client/shared/components/typography/link/story.js","client/shared/components/typography/link/template.js","client/shared/components/typography/paragraph/story.js","client/shared/components/typography/paragraph/template.js","client/shared/components/typography/subtitle2/story.js","client/shared/components/typography/subtitle2/template.js","client/shared/helpers/action-link-to.js","client/shared/helpers/add.ts","client/shared/helpers/array-contains.js","client/shared/helpers/array-of-objects-contains.js","client/shared/helpers/attune-name-with-count.ts","client/shared/helpers/bool.js","client/shared/helpers/capitalize-text.js","client/shared/helpers/chain-fn.ts","client/shared/helpers/compute.js","client/shared/helpers/current-user.js","client/shared/helpers/dasherize.ts","client/shared/helpers/decrement.js","client/shared/helpers/default-to.js","client/shared/helpers/display-field.js","client/shared/helpers/display-name-pluralize.js","client/shared/helpers/do-nothing-function.js","client/shared/helpers/first-letter.js","client/shared/helpers/format-duration.ts","client/shared/helpers/format-number-to-compact-locale.js","client/shared/helpers/format-number-to-locale.js","client/shared/helpers/format-number-to-percentage.js","client/shared/helpers/generate-guid.js","client/shared/helpers/get-classes-with-modifiers.js","client/shared/helpers/get-displayed-link-value.js","client/shared/helpers/get-link-to-models.js","client/shared/helpers/get-record-identifier.js","client/shared/helpers/html-safe.js","client/shared/helpers/icon-sanitizer.js","client/shared/helpers/increment.js","client/shared/helpers/is-equal.js","client/shared/helpers/is-layout-editor.js","client/shared/helpers/is-text-truncated.ts","client/shared/helpers/json-stringify.js","client/shared/helpers/lowercase-text.js","client/shared/helpers/number-of-lines.js","client/shared/helpers/number-to-human-size.js","client/shared/helpers/one-way.js","client/shared/helpers/optional.js","client/shared/helpers/prevent-default.js","client/shared/helpers/price.js","client/shared/helpers/replace-param.js","client/shared/helpers/route-action.js","client/shared/helpers/save-shortcut.ts","client/shared/helpers/sentence-case.js","client/shared/helpers/set-fallback-image-source.js","client/shared/helpers/slice.js","client/shared/helpers/stop-propagation.js","client/shared/helpers/stringify.js","client/shared/helpers/substring.js","client/shared/helpers/templating-injector.ts","client/shared/helpers/uppercase-text.js","client/shared/helpers/word-pluralize.js","client/shared/helpers/word-singularize.js","client/shared/modifiers/autofocus.js","client/shared/modifiers/event-on-click.js","client/shared/modifiers/forest-on-click-outside.js","client/shared/modifiers/sortable-item.ts","client/shared/modifiers/sortablejs-group.ts","client/shared/modifiers/sortablejs-item.ts","client/shared/services/abstract/events.ts","client/shared/services/capabilities.ts","client/shared/services/contact.ts","client/shared/services/environment.ts","client/shared/services/feature-flags.ts","client/shared/services/fetch.ts","client/shared/services/layout.ts","client/shared/services/navigation-handler.ts","client/shared/services/popup-positioner.ts","client/shared/services/query-parameters-store.ts","client/shared/services/route-transition-handler.ts","client/shared/services/s3-uploader.ts","client/shared/services/third-party.ts","client/shared/services/user-preference-manager.ts","client/shared/states/forest-environment.ts","client/shared/states/layout.ts","client/shared/states/navigation.ts","client/shared/states/user-preference.ts","client/transforms/array.js","client/transforms/fragment-array.js","client/transforms/fragment.js","client/utils/action-utils.js","client/utils/agent.ts","client/utils/application-storage-key.js","client/utils/array-utils.ts","client/utils/async-filter.ts","client/utils/auto-complete-smart-view-helper.js","client/utils/auto-complete-view-helper.js","client/utils/batch-delete-invitations.js","client/utils/browser-utils.ts","client/utils/collection-creator/adapter/basic-adapter.js","client/utils/collection-creator/model.js","client/utils/collection-creator/serializer/basic-serializer.js","client/utils/collection-creator/validations.js","client/utils/color-utils.ts","client/utils/condition-checking.js","client/utils/condition-utils.ts","client/utils/copy-role-permissions-from.js","client/utils/countries.ts","client/utils/css-class-helper.js","client/utils/currencies.ts","client/utils/current-user-dynamic-variables.ts","client/utils/database.ts","client/utils/date-helper.ts","client/utils/dates-default-format-variables.js","client/utils/dom-utils.ts","client/utils/ember-data-value-coercion.ts","client/utils/ember-error-util.ts","client/utils/ember-promise.js","client/utils/ember/get-instance-utils.ts","client/utils/emoji-utils.ts","client/utils/error-type.js","client/utils/errors.ts","client/utils/errors/authentication-error.js","client/utils/errors/billing-errors.ts","client/utils/errors/collection-errors/access-collection-forbidden.js","client/utils/errors/collection-errors/access-record-forbidden.js","client/utils/errors/collection-errors/count-deactivated-error.ts","client/utils/errors/collection-errors/create-record-forbidden.js","client/utils/errors/inbox/index.ts","client/utils/errors/inbox/select-page-unavailable.ts","client/utils/errors/redirection-error.js","client/utils/errors/two-factor-authentication-required-error.js","client/utils/errors/user-forbidden-error.js","client/utils/event-listener.js","client/utils/explorer/abstract-explorer-row-visibility-class.js","client/utils/explorer/explorer-display-field-class.js","client/utils/explorer/explorer-records-column-class.js","client/utils/explorer/explorer-records-context.js","client/utils/explorer/explorer-relationship-row-class.js","client/utils/explorer/explorer-relationships-column-class.js","client/utils/extract-file-name-from-content-disposition.js","client/utils/file-type.ts","client/utils/filter-to-text.ts","client/utils/form/belongs-to-creation-form.js","client/utils/form/creation-form.ts","client/utils/form/duplication-form.js","client/utils/form/edition-form.ts","client/utils/format-number.js","client/utils/get-locale.js","client/utils/get-polymorphic-data-type.ts","client/utils/get-selected-text.ts","client/utils/get-team-name-to-redirect-to.js","client/utils/hash-utils.js","client/utils/href-to.js","client/utils/keyboard.js","client/utils/last-side-menu-width.ts","client/utils/last-visited-team-storage-key.js","client/utils/liana-records/records-context.ts","client/utils/liana-records/related-records-context.ts","client/utils/livedemo.js","client/utils/locales-list.js","client/utils/model-utils.ts","client/utils/nested/collection-environment-nested.ts","client/utils/nested/collection.ts","client/utils/nested/field-environment-nested.ts","client/utils/nested/field.ts","client/utils/noop.js","client/utils/normalize-string.js","client/utils/number-utils.js","client/utils/object-map.ts","client/utils/onboarding/choose-new-name.js","client/utils/onboarding/database-credentials-cloud.ts","client/utils/onboarding/database-credentials.ts","client/utils/operators/array-operators.ts","client/utils/operators/common-operators.ts","client/utils/operators/date-operators.ts","client/utils/operators/index.ts","client/utils/operators/number-operators.ts","client/utils/operators/string-operators.ts","client/utils/operators/types.ts","client/utils/page-title.js","client/utils/paste-text-util.ts","client/utils/plan-pricing-utils.js","client/utils/price-formatter.js","client/utils/private-smart-view-utils.js","client/utils/prop-types-utils.js","client/utils/query-utils.js","client/utils/quill/quill-common.ts","client/utils/quill/quill-format-youtube.ts","client/utils/quill/quill-module-autolink.ts","client/utils/quill/quill-module-resize-image.ts","client/utils/quill/quill-theme-forest-chat.ts","client/utils/quill/quill-theme-forest-rich-text.ts","client/utils/react/grant-owner-access.js","client/utils/react/index.js","client/utils/react/is-functional-component.js","client/utils/react/is-mutable-cell.js","client/utils/react/yield-wrapper.js","client/utils/read-web-api-file.js","client/utils/redirect-to-project-settings.js","client/utils/reference-field-utils.js","client/utils/regex.ts","client/utils/remote-empty-values-from-object.ts","client/utils/resizable-columns-state.ts","client/utils/route-info-getter.js","client/utils/route-params.js","client/utils/route-state-params-getter.js","client/utils/route-utils.ts","client/utils/s3-uploader.ts","client/utils/safe-stringify.js","client/utils/schema-utils.ts","client/utils/secret-key-generator.js","client/utils/serialize-query-parameters.js","client/utils/service.ts","client/utils/smart-view-editor-utils.js","client/utils/smart-view-utils.js","client/utils/smart-view/ast/argument-less-helper-paren-less-invocation-plugin.ts","client/utils/smart-view/ast/ember-component-send-action-plugin.ts","client/utils/smart-view/ast/link-to-positional-arguments-plugin.ts","client/utils/smart-view/ast/this-property-fallback-plugin.ts","client/utils/smart-view/ast/with-helper-plugin.ts","client/utils/sort-by-two-keys.js","client/utils/string-utils.ts","client/utils/templating-helper/abstract-templating-helper.ts","client/utils/templating-helper/activity-log-templating-helper.ts","client/utils/templating-helper/composable-templating-helper.ts","client/utils/templating-helper/current-date-templating-helper.ts","client/utils/templating-helper/current-record-templating-helper.ts","client/utils/templating-helper/current-user-templating-helper.ts","client/utils/templating-helper/field-templating-helper.ts","client/utils/templating-helper/segment-templating-helper.ts","client/utils/templating-helper/widget-templating-helper.ts","client/utils/templating-helper/workspace-autogenerated-templating-helper.ts","client/utils/templating-helper/workspace-component-templating-helper.ts","client/utils/templating-helper/workspace-templating-helper.ts","client/utils/timezones-list.js","client/utils/to-name-value-string.js","client/utils/transition-to-url.js","client/utils/truncate-text.ts","client/utils/try-get-body.ts","client/utils/try-parse-json.ts","client/utils/uploaded-file.js","client/utils/url-utils.ts","client/utils/uuid-utils.ts","client/utils/webhook-utils.js","client/utils/widgets.ts","client/utils/workspace/helper.ts","client/utils/youtube-url-validator.ts","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"sourcesContent":["'use strict';\n\n\n","import { computed, defineProperty } from '@ember/object';\nimport { alias, or } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { capitalize } from '@ember/string';\nimport { Ability } from 'ember-can';\n\nexport default class AbstractAbility extends Ability {\n  /** @type {import('client/legacy/services/liana-session').default} */\n  @service lianaSession;\n  /** @type {import('@ember-data/store').default} */\n  @service store;\n\n  featureName = 'default';\n\n  hasPreviewScreen = false;\n\n  init(...args) {\n    super.init(...args);\n\n    const { projectPremiumFeatureAttribute } = this;\n\n    defineProperty(\n      this,\n      'premiumFeatureActivationDate',\n      computed(`project.${projectPremiumFeatureAttribute}`, 'project', function () {\n        return this.project?.get(projectPremiumFeatureAttribute);\n      }),\n    );\n  }\n\n  @computed('lianaSession.rendering')\n  get rendering() {\n    return this.lianaSession.rendering;\n  }\n\n  @computed('lianaSession.currentTeam')\n  get currentTeam() {\n    return this.lianaSession.currentTeam;\n  }\n\n  @alias('rendering.environment') environment;\n\n  @computed('lianaSession.currentProject')\n  get project() {\n    return this.lianaSession.currentProject || null;\n  }\n\n  @alias('project.billing') billing;\n\n  @computed('featureName')\n  get projectPremiumFeatureAttribute() {\n    if (this.featureName === 'teams') return `premiumUnlimitedTeams`;\n    return `premium${capitalize(this.featureName)}`;\n  }\n\n  @computed('billing.currentPlan.featuresEnvironmentsAll')\n  get featuresEnvironmentsAll() {\n    return this.billing?.get('currentPlan')?.featuresEnvironmentsAll || [];\n  }\n\n  @computed('billing.currentPlan.featuresEnvironmentsDevelopment')\n  get featuresEnvironmentsDevelopment() {\n    return this.billing?.get('currentPlan')?.featuresEnvironmentsDevelopment || [];\n  }\n\n  @computed(\n    'billing',\n    'featureName',\n    'featuresEnvironmentsAll',\n    'project.roles.length',\n    'project.teams.length',\n    'rendering.dashboards.length',\n  )\n  get hasRequiredPlan() {\n    if (this.featureName === 'multipleRoles') {\n      const maxRoles = this.billing?.get('currentPlan')?.maxRoles;\n      return maxRoles ? this.project.roles.length < maxRoles : true;\n    }\n    if (this.featureName === 'teams') {\n      const maxTeams = this.billing?.get('currentPlan')?.maxTeams;\n      return maxTeams ? this.project.teams.length < maxTeams : true;\n    }\n    return this.featuresEnvironmentsAll.includes(this.featureName);\n  }\n\n  @computed('canTryInDevelopment', 'environment.isProduction')\n  get isInTrialEnvironment() {\n    return this.environment?.isProduction ? false : this.canTryInDevelopment;\n  }\n\n  @computed('project.premiumFeaturesPrivileges.[]', 'featureName')\n  get hasPrivilege() {\n    if (this.featureName === 'multipleRoles')\n      return (\n        this.project?.premiumFeaturesPrivileges\n        && this.project?.premiumFeaturesPrivileges.includes('unlimitedRoles')\n      );\n    if (this.featureName === 'teams')\n      return (\n        this.project?.premiumFeaturesPrivileges\n        && this.project?.premiumFeaturesPrivileges.includes('unlimitedTeams')\n      );\n    return (\n      this.project?.premiumFeaturesPrivileges\n      && this.project?.premiumFeaturesPrivileges.includes(this.featureName)\n    );\n  }\n\n  @computed('featuresEnvironmentsDevelopment', 'featureName')\n  get canTryInDevelopment() {\n    return this.featuresEnvironmentsDevelopment.includes(this.featureName);\n  }\n\n  @computed('hasPrivilege', 'hasRequiredPlan', 'isInTrialEnvironment')\n  get canDisplayTrialNote() {\n    return this.isInTrialEnvironment && !this.hasRequiredPlan && !this.hasPrivilege;\n  }\n\n  @or('isInTrialEnvironment', 'hasRequiredPlan', 'hasPrivilege', 'enableException') canEnable;\n\n  /**\n   * The default value is null when the property is defined\n   * This function tests if the column/property does not exist at all\n   * In this case, the value is undefined and not null\n   */\n  @computed('premiumFeatureActivationDate', 'project', 'enableException')\n  get hasNoActivationDate() {\n    return (\n      this.enableException || (this.project && this.premiumFeatureActivationDate === undefined)\n    );\n  }\n\n  // NOTICE: Say if a feature can be accessed.\n  @computed(\n    'canEnable',\n    'enableException',\n    'hasNoActivationDate',\n    'hasPreviewScreen',\n    'premiumFeatureActivationDate',\n  )\n  get canAccess() {\n    if (this.canEnable) {\n      return (\n        !this.hasPreviewScreen\n        || this.hasNoActivationDate\n        || Boolean(this.premiumFeatureActivationDate)\n      );\n    }\n\n    return false;\n  }\n\n  // NOTICE: Say if a feature must be previewed.\n  @computed(\n    'canTryInDevelopment',\n    'enableException',\n    'hasNoActivationDate',\n    'hasPreviewScreen',\n    'hasPrivilege',\n    'hasRequiredPlan',\n    'premiumFeatureActivationDate',\n  )\n  get canPreview() {\n    return (\n      this.hasPreviewScreen\n      && ((!this.hasNoActivationDate && !this.premiumFeatureActivationDate)\n        || (!this.canTryInDevelopment\n          && !this.hasRequiredPlan\n          && !this.hasPrivilege\n          && !this.enableException))\n    );\n  }\n\n  get canView() {\n    return !this.currentTeam?.featuresDeactivated?.includes(this.featureName);\n  }\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class ActivityLogsAbility extends AbstractAbility {\n  featureName = 'activityLogs';\n  hasPreviewScreen = true;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class AdminHistoryAbility extends AbstractAbility {\n  featureName = 'adminHistory';\n\n  hasNoActivationDate = true;\n  hasPreviewScreen = false;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class ApprovalAbility extends AbstractAbility {\n  featureName = 'approval';\n  hasPreviewScreen = false;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class AutoLogoutAbility extends AbstractAbility {\n  featureName = 'autoLogout';\n  hasPreviewScreen = false;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class CollaborationAbility extends AbstractAbility {\n  featureName = 'collaboration';\n  hasPreviewScreen = true;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class ExplorerAbility extends AbstractAbility {\n  featureName = 'explorer';\n  hasPreviewScreen = true;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class InboxAbility extends AbstractAbility {\n  featureName = 'inbox';\n  hasPreviewScreen = true;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class IpWhitelistAbility extends AbstractAbility {\n  featureName = 'ipWhitelist';\n  hasPreviewScreen = false;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class LiveQueryAbility extends AbstractAbility {\n  featureName = 'liveQuery';\n  hasPreviewScreen = true;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class MCPServerAbility extends AbstractAbility {\n  featureName = 'mcpServer';\n  hasPreviewScreen = false;\n}\n","import { empty } from '@ember/object/computed';\n\nimport AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class MultipleDashboardAbility extends AbstractAbility {\n  featureName = 'multipleDashboards';\n  hasPreviewScreen = true;\n\n  @empty('rendering.dashboards') enableException;\n}\n","import { not } from '@ember/object/computed';\n\nimport AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class MultipleRoleFeatureAbility extends AbstractAbility {\n  featureName = 'multipleRoles';\n  hasPreviewScreen = false;\n\n  @not('project.roles.length') enableException;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class RecordDashboardAbility extends AbstractAbility {\n  featureName = 'recordDashboard';\n  hasPreviewScreen = true;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class ScopeAbility extends AbstractAbility {\n  featureName = 'scopes';\n  hasPreviewScreen = true;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class SmartChartAbility extends AbstractAbility {\n  featureName = 'smartCharts';\n  hasPreviewScreen = true;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class SmartViewAbility extends AbstractAbility {\n  featureName = 'smartViews';\n  hasPreviewScreen = true;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class SummaryViewAbility extends AbstractAbility {\n  featureName = 'summaryView';\n  hasPreviewScreen = true;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class TeamFeaturesDeactivationAbility extends AbstractAbility {\n  featureName = 'teamFeaturesDeactivation';\n  hasPreviewScreen = false;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class TeamPerformanceAbility extends AbstractAbility {\n  featureName = 'teamPerformance';\n  hasPreviewScreen = true;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class TeamAbility extends AbstractAbility {\n  featureName = 'teams';\n  hasPreviewScreen = false;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class TwoFactorAuthenticationAbility extends AbstractAbility {\n  featureName = 'twoFactorAuthentication';\n  hasPreviewScreen = false;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class UserProvisioning extends AbstractAbility {\n  featureName = 'userProvisioning';\n  hasPreviewScreen = false;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class WhiteLabelAbility extends AbstractAbility {\n  featureName = 'whiteLabel';\n  hasPreviewScreen = false;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class Workflow extends AbstractAbility {\n  featureName = 'workflow';\n  hasPreviewScreen = false;\n  hasNoActivationDate = true;\n}\n","import AbstractAbility from 'client/abilities/abstract-ability';\n\nexport default class WorkspaceOnRecordAbility extends AbstractAbility {\n  featureName = 'workspaceOnRecord';\n  hasPreviewScreen = false;\n}\n","import Application from '@ember/application';\nimport loadInitializers from 'ember-load-initializers';\n\nimport config from 'client/config/environment';\nimport ForestResolver from 'client/resolver';\n\nexport default class App extends Application {\n  modulePrefix = config.modulePrefix;\n  podModulePrefix = config.podModulePrefix;\n  Resolver = ForestResolver;\n}\n\nloadInitializers(App, config.modulePrefix);\n","import JWTSecuredAuthenticator from 'client/authenticators/jwt-secured';\nimport config from 'client/config/environment';\n\nexport default class GoogleJwtSignup extends JWTSecuredAuthenticator {\n  /** @public */\n  userCreated = false;\n\n  // eslint-disable-next-line ember/classic-decorator-hooks\n  init(...args) {\n    super.init(...args);\n    this.serverTokenEndpoint = config['ember-simple-auth-token'].serverGoogleSignUpEndpoint;\n  }\n\n  handleAuthResponse(response) {\n    this.userCreated = Boolean(response.userCreated);\n    return super.handleAuthResponse(response);\n  }\n}\n","import JWTSecuredAuthenticator from 'client/authenticators/jwt-secured';\nimport config from 'client/config/environment';\n\nexport default JWTSecuredAuthenticator.extend({\n  init(...args) {\n    this._super(...args);\n    this.serverTokenEndpoint = config['ember-simple-auth-token'].serverGoogleTokenEndpoint;\n  },\n});\n","import JWTSecuredAuthenticator from 'client/authenticators/jwt-secured';\nimport config from 'client/config/environment';\n\nexport default JWTSecuredAuthenticator.extend({\n  init(...args) {\n    this._super(...args);\n    this.serverTokenEndpoint = config['ember-simple-auth-token'].serverLiveDemoTokenEndpoint;\n    this.serverTokenRefreshEndpoint = config['ember-simple-auth-token'].serverLiveDemoTokenEndpoint;\n  },\n});\n","import JWTSecuredAuthenticator from 'client/authenticators/jwt-secured';\nimport config from 'client/config/environment';\n\nexport default class JWTSamlAuthenticator extends JWTSecuredAuthenticator {\n  init(...args) {\n    super.init(...args);\n    this.serverTokenEndpoint = config['ember-simple-auth-token'].serverSamlTokenEndpoint;\n  }\n}\n","import type ApplicationInstance from '@ember/application/instance';\nimport type config from 'client/config/environment';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type DatadogService from 'client/legacy/services/datadog';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LogoutRedirectionService from 'client/legacy/services/logout-redirection-service';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type SessionRefreshService from 'client/legacy/services/session-refresh';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type FetchSharedBusinessService from 'client/shared/services/fetch';\n\nimport { getOwner } from '@ember/application';\nimport { get } from '@ember/object';\nimport { service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport JWTAuthenticator from 'ember-simple-auth-token/authenticators/jwt';\nimport window from 'ember-window-mock';\n\nimport {\n  JwtGetResponseBodyMonitoringError,\n  NetworkErrorJwtAuthenticatorRequestError,\n  UnknownJwtAuthenticatorRequestError,\n} from 'client/features/authentication/errors';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { WrongClockError } from 'client/utils/errors';\n\nexport type EnvironmentConfig = typeof config;\n\nfunction createTimeConfigError() {\n  const now = new Date();\n  const timeZoneOffsetHours: number = -now.getTimezoneOffset() / 60;\n\n  return new WrongClockError(`Your computer's clock seems to be misconfigured.\n  Please make sure that both the current time and timezone are correct.\n  Current timezone offset according to your computer: ${\n    timeZoneOffsetHours >= 0 ? '+' : ''\n  }${timeZoneOffsetHours.toFixed(1)}h.\n  Current UTC time according to your computer: ${now.toUTCString()}`);\n}\n\nexport default class JWTSecuredAuthenticator extends JWTAuthenticator {\n  @service private session: ForestSessionService;\n  @service('shared/fetch') private fetchService: FetchSharedBusinessService;\n  @service private serverFetch: ServerFetchService;\n  @service private tracker: TrackerService;\n  @service private datadog: DatadogService;\n  @service private sessionRefresh: SessionRefreshService;\n  @service('feature/notification') private businessNotification: NotificationFeatureService;\n  @service private logoutRedirectionService: LogoutRedirectionService;\n  @service private errorHandler: ErrorHandlerService;\n\n  // eslint-disable-next-line ember/classic-decorator-hooks\n  init(...args: unknown[]) {\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    super.init(...args);\n    const owner = getOwner(this) as ApplicationInstance;\n    const environment = (\n      owner ? owner.resolveRegistration('config:environment') || {} : {}\n    ) as EnvironmentConfig;\n    const config =\n      environment['ember-simple-auth-token']\n      || ({} as EnvironmentConfig['ember-simple-auth-token']);\n    this.tokenIssuedName = config.tokenIssuedName || 'iat';\n  }\n\n  // NOTICE: Exact same function as in ember-simple-auth-token dependency, except for the\n  //         credentials configuration line.\n  async makeRequest(url: string, data: object, headers: object) {\n    let response: Response = null;\n    let result: {\n      statusText: string;\n      status: number;\n      headers: Headers;\n      text?: string;\n      json?: object;\n    } = null;\n    try {\n      response = await this.fetchService.fetch(url, {\n        method: 'POST',\n        mode: 'cors',\n        credentials: 'include',\n        headers: {\n          Accept: 'application/json',\n          'Content-Type': 'application/json',\n          ...headers,\n        },\n        body: JSON.stringify(data),\n      });\n      result = {\n        statusText: response.statusText,\n        status: response.status,\n        headers: response.headers,\n      };\n\n      result.text = await response.text();\n      result.json = JSON.parse(result.text) as object;\n\n      return result;\n    } catch (doFetchError) {\n      let error: Error = null;\n      const message = (doFetchError as Error)?.message;\n      if (message.includes('NetworkError') || message.includes('No network'))\n        error = new NetworkErrorJwtAuthenticatorRequestError(doFetchError as Error);\n      else error = new UnknownJwtAuthenticatorRequestError(doFetchError as Error);\n\n      this.errorHandler.handleSilentError(error, {\n        error: doFetchError,\n        url,\n        headers,\n        body: await this.getResponseText(response),\n        result,\n      });\n      throw doFetchError;\n    }\n  }\n\n  async getResponseText(response: Response) {\n    try {\n      return await response?.text();\n    } catch (e) {\n      this.errorHandler.handleSilentError(new JwtGetResponseBodyMonitoringError(e as Error));\n      return 'error during response?.text()';\n    }\n  }\n\n  /**\n   * Restores the session from a set of session properties.\n   * This function is called either with the store restore mechanism\n   * or with the data from the sessionDataUpdated event (multi tab support)\n   *\n   * @method restore\n   * @param {Object} data Data to restore the session from\n   * @return {Promise} Promise that when it resolves results in the session being authenticated\n   */\n  async restore(data: object): Promise<object> {\n    // NOTICE: Clean previously configured RefreshSession to prevent refresh with an outdated token\n    this.sessionRefresh.cleanRefreshTokenSessionData();\n\n    // NOTICE: Restore session and initiate an automatic token refresh by calling `scheduleAccessTokenRefresh`\n    return super.restore(data);\n  }\n\n  async invalidate() {\n    this.sessionRefresh.cleanRefreshTokenSessionData();\n    const redirectUrl = await this.invalidateCookies();\n\n    await super.invalidate();\n\n    if (redirectUrl) this.logoutRedirectionService.saveLogoutUrl(redirectUrl);\n\n    return undefined;\n  }\n\n  async invalidateCookies() {\n    const { refreshToken } = this.session;\n    try {\n      const response = await this.serverFetch.fetch('/api/sessions/logout', {\n        method: 'POST',\n        credentials: 'include',\n        body: JSON.stringify({ refreshToken }),\n      });\n\n      if (response.status === 200) {\n        const body = (await response.json()) as { url?: string };\n        if (body.url) {\n          return body.url;\n        }\n      }\n    } catch (e) {\n      const error = e as Error;\n      console.warn('Unable to logout', error);\n      this.tracker.captureException(error);\n    }\n\n    return undefined;\n  }\n\n  scheduleAccessTokenRefresh(expiresAt: number, refreshToken: string) {\n    const now = this.getCurrentTime();\n    const wait = (expiresAt - now - this.refreshLeeway) * 1000;\n\n    if (wait <= 0) {\n      throw createTimeConfigError();\n    }\n\n    this.sessionRefresh.setNextSessionRefresh(\n      1000 * (expiresAt - this.refreshLeeway),\n      this.refreshAccessToken.bind(this, refreshToken),\n    );\n    super.scheduleAccessTokenRefresh(expiresAt, refreshToken);\n  }\n\n  handleAuthResponse(response: { refreshToken: string }) {\n    const token = get(response, this.tokenPropertyName) as string;\n\n    if (!isEmpty(token)) {\n      const tokenData = this.getTokenData(token);\n      const issuedAt = get(tokenData, this.tokenIssuedName);\n      const now = new Date();\n\n      // This kind of misconfiguration can lead to errors\n      // with refresh tokens\n      if (now.getTime() + this.refreshLeeway * 1000 < issuedAt * 1000) {\n        this.datadog.captureAction('auth-misconfigured-clock', {\n          tokenUserId: (tokenData.data.data as { id: number }).id,\n          now,\n          issuedAt,\n          refreshLeeway: this.refreshLeeway,\n          deltaWithIssuedAt: issuedAt * 1000 - (now.getTime() + this.refreshLeeway * 1000),\n        });\n\n        this.businessNotification.createToastr(\n          ToastrTypeEnum.Warning,\n          \"Your computer's clock seems to be misconfigured. You'll encounter authentication issues, please make sure to fix the time and timezone configured on your computer.\",\n          {\n            duration: 0,\n          },\n        );\n      }\n    }\n\n    return super.handleAuthResponse(response);\n  }\n\n  /**\n   * When the computer goes into sleep mode, both\n   * callbacks refreshAccessToken and handleAccessTokenExpiration\n   * are triggered at the same time\n   * As the refresh is asynchronous and is requiring a request to the\n   * server, the response is received after the session invalidation\n   * To avoid this, we keep the reference to the refresh promise\n   * and before invalidating the session, check that a refresh is not\n   * ongoing\n   */\n  async refreshAccessToken(token: string, attempts = 0) {\n    const tokenData = this.getTokenData(token);\n    const expiresAt = get(tokenData, this.tokenExpireName);\n\n    if (expiresAt < this.getCurrentTime()) {\n      // We want to invalidate the session when the refresh token is outdated\n      // This should only occurred when restoring a session with an outdated token (auto-logged out or re-connect after the 7 days refresh token life time).\n      return this.invalidate().then(window.location.reload);\n    }\n\n    // If attempts is provided, we are already inside a promise that is saved\n    // as the current refresh promise. Just retry the refresh.\n    if (attempts) {\n      return super.refreshAccessToken(token, attempts);\n    }\n\n    const promise = super.refreshAccessToken(token, 0);\n\n    this.sessionRefresh.setSessionRefreshPromise(\n      promise,\n      this.refreshAccessToken.bind(this, token),\n    );\n\n    return promise;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nconst __COLOCATED_TEMPLATE__ = hbs(\"{{! Container for React micro-frontend }}\\n{{#if this.isUnavailable}}\\n  <div class=\\\"micro-frontend-unavailable\\\" data-test-mfe-unavailable>\\n    <div class=\\\"unavailable-content\\\">\\n      <svg\\n        class=\\\"warning-icon\\\"\\n        viewBox=\\\"0 0 24 24\\\"\\n        fill=\\\"none\\\"\\n        stroke=\\\"currentColor\\\"\\n        stroke-width=\\\"2\\\"\\n      >\\n        <path\\n          d=\\\"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z\\\"\\n        />\\n      </svg>\\n      <h3>Micro-Frontend Unavailable</h3>\\n      <p>The development server is not running.</p>\\n      <code>nx start {{this.mfeName}}</code>\\n      <button type=\\\"button\\\" class=\\\"retry-button\\\" data-test-mfe-retry {{on 'click' this.retryMount}}>\\n        Retry\\n      </button>\\n    </div>\\n  </div>\\n{{else if this.error}}\\n  <div class=\\\"micro-frontend-error\\\" data-test-mfe-error>\\n    <h3>Failed to load micro-frontend</h3>\\n    <p class=\\\"error-message\\\">{{this.error.message}}</p>\\n    <button type=\\\"button\\\" class=\\\"retry-button\\\" data-test-mfe-retry {{on 'click' this.retryMount}}>\\n      Retry\\n    </button>\\n  </div>\\n{{else}}\\n  <div\\n    class=\\\"micro-frontend-container\\\"\\n    data-test-mfe-container\\n    {{did-insert this.didInsert}}\\n    {{will-destroy this.willDestroy}}\\n    {{did-update this.onPropsChange @props}}\\n  ></div>\\n{{/if}}\\n\", {\"contents\":\"{{! Container for React micro-frontend }}\\n{{#if this.isUnavailable}}\\n  <div class=\\\"micro-frontend-unavailable\\\" data-test-mfe-unavailable>\\n    <div class=\\\"unavailable-content\\\">\\n      <svg\\n        class=\\\"warning-icon\\\"\\n        viewBox=\\\"0 0 24 24\\\"\\n        fill=\\\"none\\\"\\n        stroke=\\\"currentColor\\\"\\n        stroke-width=\\\"2\\\"\\n      >\\n        <path\\n          d=\\\"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z\\\"\\n        />\\n      </svg>\\n      <h3>Micro-Frontend Unavailable</h3>\\n      <p>The development server is not running.</p>\\n      <code>nx start {{this.mfeName}}</code>\\n      <button type=\\\"button\\\" class=\\\"retry-button\\\" data-test-mfe-retry {{on 'click' this.retryMount}}>\\n        Retry\\n      </button>\\n    </div>\\n  </div>\\n{{else if this.error}}\\n  <div class=\\\"micro-frontend-error\\\" data-test-mfe-error>\\n    <h3>Failed to load micro-frontend</h3>\\n    <p class=\\\"error-message\\\">{{this.error.message}}</p>\\n    <button type=\\\"button\\\" class=\\\"retry-button\\\" data-test-mfe-retry {{on 'click' this.retryMount}}>\\n      Retry\\n    </button>\\n  </div>\\n{{else}}\\n  <div\\n    class=\\\"micro-frontend-container\\\"\\n    data-test-mfe-container\\n    {{did-insert this.didInsert}}\\n    {{will-destroy this.willDestroy}}\\n    {{did-update this.onPropsChange @props}}\\n  ></div>\\n{{/if}}\\n\",\"moduleName\":\"client/components/micro-frontend/react-host.hbs\",\"parseOptions\":{\"srcName\":\"client/components/micro-frontend/react-host.hbs\"}});\n/// <reference types=\"ember-source/types/stable/@ember/destroyable\" />\nimport { datadogRum } from '@datadog/browser-rum';\nimport { registerDestructor } from '@ember/destroyable';\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\n\ndeclare const __webpack_share_scopes__: { default: Record<string, unknown> } | undefined;\n\ninterface MfeManifestEntry {\n  scope: string;\n  module: string;\n  version: string;\n  devUrl: string;\n  prodUrl: string;\n}\n\ninterface MfeManifest {\n  [key: string]: MfeManifestEntry;\n}\n\ninterface ResolvedMfeConfig {\n  remoteUrl: string;\n  scope: string;\n  module: string;\n  version: string;\n}\n\ninterface ReactHostArgs {\n  /** MFE name from manifest (e.g., \"user-settings-mfe\") */\n  mfe: string;\n  /** Props to pass to the React component */\n  props?: Record<string, unknown>;\n}\n\ninterface ReactHostSignature {\n  Args: ReactHostArgs;\n}\n\ninterface RemoteMountModule {\n  mount: (options: { container: HTMLElement; props: Record<string, unknown> }) => unknown;\n  unmount: (root: unknown) => void;\n  update: (root: unknown, props: Record<string, unknown>) => void;\n  getWebpackHot?: () => unknown;\n}\n\ninterface RemoteHmrModule {\n  initHmrBridge: (wsUrl?: string) => void;\n  disposeHmrBridge: () => void;\n  getHmrStatus: () => string;\n  onHmrEvent: (callback: (event: { type: string; timestamp: number }) => void) => () => void;\n  isHmrAvailable: () => boolean;\n  registerWebpackHot: (webpackHot: unknown) => void;\n}\n\ninterface CachedContainer {\n  container: unknown;\n  lastAccessed: number;\n}\n\ninterface ModuleFederationContainer {\n  init: (shareScope: Record<string, unknown>) => Promise<void>;\n  get: (module: string) => Promise<(() => unknown) | unknown>;\n}\n\ninterface EmberDataModel {\n  serialize: () => Record<string, unknown>;\n  store: unknown;\n}\n\ninterface EmberArray {\n  toArray: () => unknown[];\n  objectAt: (index: number) => unknown;\n}\n\ninterface ObjectWithToJSON {\n  toJSON: () => unknown;\n}\n\nconst remoteContainerCache = new Map<string, CachedContainer>();\nconst scriptCache = new Set<string>();\n\nexport function clearCachesForTesting(): void {\n  remoteContainerCache.clear();\n  scriptCache.clear();\n}\n\nexport function addToScriptCacheForTesting(url: string): void {\n  scriptCache.add(url);\n}\n\nlet isDevelopment = (config as { environment: string }).environment === 'development';\n\nexport function setIsDevelopmentForTesting(value: boolean): void {\n  isDevelopment = value;\n}\n\nexport function resetIsDevelopmentForTesting(): void {\n  isDevelopment = (config as { environment: string }).environment === 'development';\n}\nconst CACHE_EXPIRY_MS = isDevelopment ? 0 : 30 * 60 * 1000;\nconst MAX_SERIALIZATION_DEPTH = 10;\n\nfunction getCachedContainer(cacheKey: string): unknown | null {\n  const cached = remoteContainerCache.get(cacheKey);\n  if (!cached) return null;\n\n  if (Date.now() - cached.lastAccessed > CACHE_EXPIRY_MS) {\n    remoteContainerCache.delete(cacheKey);\n    return null;\n  }\n\n  cached.lastAccessed = Date.now();\n  return cached.container;\n}\n\nfunction setCachedContainer(cacheKey: string, container: unknown): void {\n  remoteContainerCache.set(cacheKey, { container, lastAccessed: Date.now() });\n}\n\nfunction cleanupExpiredCaches(): void {\n  if (CACHE_EXPIRY_MS === 0) return;\n\n  const now = Date.now();\n  Array.from(remoteContainerCache.entries()).forEach(([key, cached]) => {\n    if (now - cached.lastAccessed > CACHE_EXPIRY_MS) {\n      remoteContainerCache.delete(key);\n    }\n  });\n}\n\nasync function loadRemoteContainer(remoteUrl: string, scope: string): Promise<unknown> {\n  const cacheKey = `${remoteUrl}#${scope}`;\n\n  const cached = getCachedContainer(cacheKey);\n  if (cached) return cached;\n\n  if (!scriptCache.has(remoteUrl)) {\n    await new Promise<void>((resolve, reject) => {\n      const script = document.createElement('script');\n      script.src = remoteUrl;\n      script.type = 'text/javascript';\n      script.async = true;\n\n      script.onload = () => {\n        scriptCache.add(remoteUrl);\n        resolve();\n      };\n\n      script.onerror = () => {\n        reject(new Error(`Failed to load remote entry: ${remoteUrl}`));\n      };\n\n      document.head.appendChild(script);\n    });\n  }\n\n  const maxTimeout = 10000;\n  let pollingInterval: ReturnType<typeof setInterval> | null = null;\n\n  const container = await Promise.race([\n    (async () => {\n      const cont = window[scope] as ModuleFederationContainer | undefined;\n      if (cont && typeof cont.init === 'function' && typeof cont.get === 'function') {\n        return cont;\n      }\n\n      return await new Promise<ModuleFederationContainer>((resolve, reject) => {\n        let attempts = 0;\n        pollingInterval = setInterval(() => {\n          const containerCheck = window[scope] as ModuleFederationContainer | undefined;\n          if (\n            containerCheck\n            && typeof containerCheck.init === 'function'\n            && typeof containerCheck.get === 'function'\n          ) {\n            if (pollingInterval) clearInterval(pollingInterval);\n            pollingInterval = null;\n            resolve(containerCheck);\n          } else if (++attempts > 100) {\n            if (pollingInterval) clearInterval(pollingInterval);\n            pollingInterval = null;\n            reject(new Error(`Container \"${scope}\" not found after 1s polling`));\n          }\n        }, 10);\n      });\n    })(),\n\n    new Promise<never>((_, reject) => {\n      // eslint-disable-next-line no-restricted-globals\n      setTimeout(() => {\n        if (pollingInterval) {\n          clearInterval(pollingInterval);\n          pollingInterval = null;\n        }\n        reject(new Error(`Container \"${scope}\" loading timed out after ${maxTimeout}ms`));\n      }, maxTimeout);\n    }),\n  ]);\n\n  if (!container) {\n    throw new Error(`Remote container \"${scope}\" not found on window`);\n  }\n\n  const shareScope =\n    typeof __webpack_share_scopes__ !== 'undefined' ? __webpack_share_scopes__.default : {};\n\n  await container.init(shareScope);\n\n  setCachedContainer(cacheKey, container);\n  return container;\n}\n\nasync function loadRemoteModule(\n  remoteUrl: string,\n  scope: string,\n  module: string,\n): Promise<unknown> {\n  const container = (await loadRemoteContainer(remoteUrl, scope)) as ModuleFederationContainer;\n\n  if (typeof container.get !== 'function') {\n    throw new Error(`Container \"${scope}\" does not have a get() method`);\n  }\n\n  const factory = await container.get(module);\n\n  if (!factory) {\n    throw new Error(`Module \"${module}\" not found in container \"${scope}\"`);\n  }\n\n  if (typeof factory === 'function') {\n    return factory();\n  }\n\n  return factory;\n}\n\nfunction serializeProps(props: Record<string, unknown>): Record<string, unknown> {\n  const serialized: Record<string, unknown> = {};\n\n  for (const [key, value] of Object.entries(props)) {\n    serialized[key] = serializeValue(value, 0);\n  }\n\n  return serialized;\n}\n\nfunction isEmberDataModel(value: unknown): value is EmberDataModel {\n  return (\n    typeof value === 'object'\n    && value !== null\n    && 'serialize' in value\n    && typeof (value as EmberDataModel).serialize === 'function'\n    && 'store' in value\n  );\n}\n\nfunction isEmberArray(value: unknown): value is EmberArray {\n  return (\n    typeof value === 'object'\n    && value !== null\n    && 'toArray' in value\n    && typeof (value as EmberArray).toArray === 'function'\n    && 'objectAt' in value\n    && typeof (value as EmberArray).objectAt === 'function'\n  );\n}\n\nfunction hasToJSON(value: unknown): value is ObjectWithToJSON {\n  return (\n    typeof value === 'object'\n    && value !== null\n    && 'toJSON' in value\n    && typeof (value as ObjectWithToJSON).toJSON === 'function'\n  );\n}\n\nfunction serializeObject(value: Record<string, unknown>, depth: number): Record<string, unknown> {\n  const plain: Record<string, unknown> = {};\n  for (const k in value) {\n    if (Object.prototype.hasOwnProperty.call(value, k)) {\n      plain[k] = serializeValue(value[k], depth + 1);\n    }\n  }\n  return plain;\n}\n\nfunction serializeValue(value: unknown, depth: number): unknown {\n  if (depth > MAX_SERIALIZATION_DEPTH) {\n    return undefined;\n  }\n\n  if (value === null || value === undefined) {\n    return value;\n  }\n\n  if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {\n    return value;\n  }\n\n  if (Array.isArray(value)) {\n    return value.map((item) => serializeValue(item, depth + 1));\n  }\n\n  if (typeof value === 'object') {\n    if (isEmberDataModel(value)) {\n      return serializeValue(value.serialize(), depth + 1);\n    }\n\n    if (isEmberArray(value)) {\n      return value.toArray().map((item: unknown) => serializeValue(item, depth + 1));\n    }\n\n    if (hasToJSON(value)) {\n      return serializeValue(value.toJSON(), depth + 1);\n    }\n\n    return serializeObject(value as Record<string, unknown>, depth);\n  }\n\n  return value;\n}\n\nexport default class MicroFrontendReactHost extends Component<ReactHostSignature> {\n  @tracked reactRoot: unknown = null;\n  @tracked error: Error | null = null;\n  @tracked containerElement: HTMLElement | null = null;\n  @tracked remoteMountModule: RemoteMountModule | null = null;\n  @tracked remoteHmrModule: RemoteHmrModule | null = null;\n  @tracked isLoading = false;\n  @tracked isUnavailable = false;\n  private hmrEventUnsubscribe: (() => void) | null = null;\n\n  /**\n   * Get the MFE name for display in error messages.\n   */\n  get mfeName(): string {\n    return this.args.mfe;\n  }\n\n  /**\n   * Resolve MFE configuration from manifest.\n   */\n  get resolvedConfig(): ResolvedMfeConfig {\n    const manifest = (config as unknown as { APP: { mfeManifest: MfeManifest } }).APP.mfeManifest;\n    const mfeConfig = manifest?.[this.args.mfe];\n\n    if (!mfeConfig) {\n      throw new Error(\n        `MFE \"${this.args.mfe}\" not found in manifest. `\n          + `Available MFEs: ${manifest ? Object.keys(manifest).join(', ') : 'none'}`,\n      );\n    }\n\n    return {\n      remoteUrl: isDevelopment ? mfeConfig.devUrl : mfeConfig.prodUrl,\n      scope: mfeConfig.scope,\n      module: mfeConfig.module,\n      version: mfeConfig.version,\n    };\n  }\n\n  constructor(owner: unknown, args: ReactHostArgs) {\n    super(owner, args);\n\n    registerDestructor(this, () => {\n      this.disposeHmrBridge();\n      this.unmountReactComponent();\n      cleanupExpiredCaches();\n    });\n  }\n\n  @action\n  async didInsert(element: HTMLElement) {\n    this.containerElement = element;\n    await this.mountReactComponent();\n  }\n\n  @action\n  onPropsChange() {\n    if (this.reactRoot && this.remoteMountModule) {\n      this.updateReactComponent();\n    }\n  }\n\n  @action\n  retryMount() {\n    this.error = null;\n    this.isUnavailable = false;\n    this.mountReactComponent();\n  }\n\n  private async checkMFEAvailability(remoteUrl: string): Promise<boolean> {\n    if (!isDevelopment) return true;\n\n    try {\n      await fetch(remoteUrl, {\n        method: 'HEAD',\n        mode: 'no-cors',\n        signal: AbortSignal.timeout(3000),\n      });\n      return true;\n    } catch {\n      return false;\n    }\n  }\n\n  private isConnectionError(err: unknown): boolean {\n    return (\n      (err instanceof TypeError && err.message.includes('Failed to fetch'))\n      || (err instanceof Error && err.message.includes('Failed to load remote entry'))\n    );\n  }\n\n  private async mountReactComponent() {\n    if (!this.containerElement) return;\n\n    this.isLoading = true;\n    this.error = null;\n    this.isUnavailable = false;\n\n    try {\n      const { remoteUrl, scope, module } = this.resolvedConfig;\n      const { props = {} } = this.args;\n\n      if (isDevelopment) {\n        const isAvailable = await this.checkMFEAvailability(remoteUrl);\n        if (this.isDestroying || this.isDestroyed) return;\n\n        if (!isAvailable) {\n          this.isUnavailable = true;\n          this.isLoading = false;\n          return;\n        }\n      }\n\n      const RemoteModule = await loadRemoteModule(remoteUrl, scope, module);\n      if (this.isDestroying || this.isDestroyed) return;\n\n      this.remoteMountModule = RemoteModule as RemoteMountModule;\n\n      if (!this.remoteMountModule.mount) {\n        throw new Error(`Remote module \"${module}\" does not export a mount function`);\n      }\n\n      const serializedProps = serializeProps(props);\n      const mfeName = this.args.mfe;\n      const mfeVersion = this.resolvedConfig.version;\n\n      const contextKey = `mfe_active_${mfeName}`;\n      datadogRum.setGlobalContextProperty(contextKey, {\n        name: mfeName,\n        version: mfeVersion,\n      });\n\n      const propsWithMfeContext = {\n        ...serializedProps,\n        mfeName,\n        mfeVersion,\n      };\n\n      this.reactRoot = this.remoteMountModule.mount({\n        container: this.containerElement,\n        props: propsWithMfeContext,\n      });\n\n      await this.initializeHmrBridge();\n    } catch (err) {\n      const error = err instanceof Error ? err : new Error(String(err));\n\n      if (this.isDestroying || this.isDestroyed) return;\n\n      if (isDevelopment && this.isConnectionError(err)) {\n        this.isUnavailable = true;\n      } else {\n        this.error = error;\n        // Capture mount failure to Datadog with MFE context\n        datadogRum.addError(error, {\n          'mfe.name': this.args.mfe,\n          source: 'mfe_mount_failure',\n        });\n\n        // Try to get config for logging, but don't fail if resolvedConfig itself threw\n        let logInfo: Record<string, unknown> = {\n          error: error.message,\n          stack: error.stack,\n          mfe: this.args.mfe,\n        };\n        try {\n          const { remoteUrl, scope, module } = this.resolvedConfig;\n          logInfo = {\n            ...logInfo,\n            remoteUrl,\n            scope,\n            module,\n            containerAvailable: typeof window[scope] !== 'undefined',\n          };\n        } catch {\n          // resolvedConfig threw - mfe name is already in logInfo\n        }\n        console.error('[MFE] Failed to mount React micro-frontend:', logInfo);\n      }\n    } finally {\n      this.isLoading = false;\n    }\n  }\n\n  private updateReactComponent() {\n    if (!this.reactRoot || !this.remoteMountModule) return;\n    if (this.isDestroying || this.isDestroyed) return;\n\n    try {\n      const { props = {} } = this.args;\n      const serializedProps = serializeProps(props);\n      const mfeName = this.args.mfe;\n      const mfeVersion = this.resolvedConfig.version;\n\n      const propsWithMfeContext = {\n        ...serializedProps,\n        mfeName,\n        mfeVersion,\n      };\n\n      this.remoteMountModule.update(this.reactRoot, propsWithMfeContext);\n    } catch (err) {\n      this.error = err instanceof Error ? err : new Error(String(err));\n      console.error('[MFE] Failed to update React micro-frontend:', this.error);\n    }\n  }\n\n  private async initializeHmrBridge() {\n    if (!isDevelopment) return;\n\n    try {\n      const { remoteUrl, scope } = this.resolvedConfig;\n\n      const HmrModule = await loadRemoteModule(remoteUrl, scope, './hmr');\n      if (this.isDestroying || this.isDestroyed) return;\n\n      this.remoteHmrModule = HmrModule as RemoteHmrModule;\n\n      if (!this.remoteHmrModule.initHmrBridge) {\n        console.warn('[MFE HMR] Remote module does not export HMR bridge functions');\n        return;\n      }\n\n      // Register webpackHot from mount.tsx context (the correct HMR context)\n      // This is critical: the webpackHot from ./hmr module has a different context\n      // and won't be able to apply updates to the actual MFE components\n      if (this.remoteMountModule?.getWebpackHot && this.remoteHmrModule.registerWebpackHot) {\n        const webpackHot = this.remoteMountModule.getWebpackHot();\n        if (webpackHot) {\n          this.remoteHmrModule.registerWebpackHot(webpackHot);\n          console.debug('[MFE HMR] Registered webpackHot from mount.tsx context');\n        } else {\n          console.warn('[MFE HMR] mount.tsx webpackHot not available');\n        }\n      }\n\n      const wsUrl = this.getHmrWebSocketUrl(remoteUrl);\n      this.remoteHmrModule.initHmrBridge(wsUrl);\n\n      this.hmrEventUnsubscribe = this.remoteHmrModule.onHmrEvent((event) => {\n        if (event.type === 'update-complete') {\n          console.debug('[MFE HMR] Update applied successfully');\n        } else if (event.type === 'update-failed') {\n          console.warn('[MFE HMR] Update failed, may require full reload');\n        } else if (event.type === 'reload-required') {\n          console.warn('[MFE HMR] HMR chain broken, reloading MFE...', event);\n          // Remount the MFE to apply the latest code\n          this.remountMfe();\n        }\n      });\n\n      console.debug('[MFE HMR] Bridge initialized for', scope);\n    } catch (err) {\n      console.warn('[MFE HMR] Failed to initialize HMR bridge:', err);\n    }\n  }\n\n  private getHmrWebSocketUrl(remoteUrl: string): string {\n    try {\n      const url = new URL(remoteUrl);\n      const protocol = url.protocol === 'https:' ? 'wss:' : 'ws:';\n      return `${protocol}//${url.host}/ws`;\n    } catch {\n      return 'ws://localhost:4001/ws';\n    }\n  }\n\n  private disposeHmrBridge() {\n    if (this.hmrEventUnsubscribe) {\n      this.hmrEventUnsubscribe();\n      this.hmrEventUnsubscribe = null;\n    }\n\n    if (this.remoteHmrModule?.disposeHmrBridge) {\n      try {\n        this.remoteHmrModule.disposeHmrBridge();\n        console.debug('[MFE HMR] Bridge disposed');\n      } catch (err) {\n        console.warn('[MFE HMR] Error disposing bridge:', err);\n      }\n    }\n\n    this.remoteHmrModule = null;\n  }\n\n  private unmountReactComponent() {\n    // Remove scoped Datadog context\n    const mfeName = this.args.mfe;\n    const contextKey = `mfe_active_${mfeName}`;\n    datadogRum.removeGlobalContextProperty(contextKey);\n\n    if (this.reactRoot && this.remoteMountModule) {\n      this.remoteMountModule.unmount(this.reactRoot);\n      this.reactRoot = null;\n    }\n    this.remoteMountModule = null;\n    this.containerElement = null;\n  }\n\n  /**\n   * Remount the MFE to apply updated code.\n   * This is called when the HMR chain is broken and a soft reload is needed.\n   */\n  private async remountMfe() {\n    const container = this.containerElement;\n    if (!container || this.isDestroying || this.isDestroyed) return;\n\n    console.debug('[MFE HMR] Performing soft reload...');\n\n    // Dispose HMR bridge first\n    this.disposeHmrBridge();\n\n    // Unmount current React component (but keep container reference)\n    if (this.reactRoot && this.remoteMountModule) {\n      this.remoteMountModule.unmount(this.reactRoot);\n      this.reactRoot = null;\n    }\n    this.remoteMountModule = null;\n\n    // Clear ALL caches for this scope to force fresh module load\n    // We need to clear all cache entries that match this scope, regardless of timestamp/cache-buster\n    const { remoteUrl, scope } = this.resolvedConfig;\n\n    // Clear all container cache entries for this scope (handles cache-busted URLs too)\n    for (const key of remoteContainerCache.keys()) {\n      if (key.endsWith(`#${scope}`)) {\n        remoteContainerCache.delete(key);\n      }\n    }\n\n    // Clear all script cache entries for this remote (handles cache-busted URLs too)\n    const baseUrl = remoteUrl.split('?')[0]; // Remove any existing query params\n    for (const url of scriptCache) {\n      if (url.startsWith(baseUrl)) {\n        scriptCache.delete(url);\n      }\n    }\n\n    // Remove all script tags for this MFE (including any with cache-busters)\n    const existingScripts = document.querySelectorAll(`script[src^=\"${baseUrl}\"]`);\n    existingScripts.forEach((script) => script.remove());\n\n    // Also clear the container from window\n    // Use try/catch because window might be a proxy (ember-window-mock) that doesn't allow delete\n    try {\n      if (scope in window) {\n        (window as unknown as Record<string, unknown>)[scope] = undefined;\n      }\n    } catch {\n      // Ignore - proxy may not allow property modification\n    }\n\n    // Restore container reference for remount\n    this.containerElement = container;\n\n    // Remount with fresh code using cache-busted URL\n    // Small delay to ensure cleanup is complete\n    // eslint-disable-next-line no-restricted-globals\n    await new Promise((resolve) => setTimeout(resolve, 50));\n\n    if (!this.isDestroying && !this.isDestroyed) {\n      await this.mountReactComponentWithCacheBust();\n      console.debug('[MFE HMR] Soft reload complete');\n    }\n  }\n\n  /**\n   * Mount React component with cache-busted URL to ensure fresh code is loaded.\n   * Used during soft reload to bypass browser cache.\n   */\n  private async mountReactComponentWithCacheBust() {\n    if (!this.containerElement) return;\n\n    this.isLoading = true;\n    this.error = null;\n    this.isUnavailable = false;\n\n    try {\n      const { remoteUrl, scope, module } = this.resolvedConfig;\n      const { props = {} } = this.args;\n\n      // Add cache-buster to force fresh load\n      const cacheBustedUrl = `${remoteUrl}?t=${Date.now()}`;\n\n      if (isDevelopment) {\n        const isAvailable = await this.checkMFEAvailability(cacheBustedUrl);\n        if (this.isDestroying || this.isDestroyed) return;\n\n        if (!isAvailable) {\n          this.isUnavailable = true;\n          this.isLoading = false;\n          return;\n        }\n      }\n\n      const RemoteModule = await loadRemoteModule(cacheBustedUrl, scope, module);\n      if (this.isDestroying || this.isDestroyed) return;\n\n      this.remoteMountModule = RemoteModule as RemoteMountModule;\n\n      if (!this.remoteMountModule.mount) {\n        throw new Error(`Remote module \"${module}\" does not export a mount function`);\n      }\n\n      const serializedProps = serializeProps(props);\n      const mfeName = this.args.mfe;\n      const mfeVersion = this.resolvedConfig.version;\n\n      // Set scoped Datadog context BEFORE mount\n      const contextKey = `mfe_active_${mfeName}`;\n      datadogRum.setGlobalContextProperty(contextKey, {\n        name: mfeName,\n        version: mfeVersion,\n      });\n\n      const propsWithMfeContext = {\n        ...serializedProps,\n        mfeName,\n        mfeVersion,\n      };\n\n      this.reactRoot = this.remoteMountModule.mount({\n        container: this.containerElement,\n        props: propsWithMfeContext,\n      });\n\n      // Re-initialize HMR bridge with the fresh module\n      await this.initializeHmrBridgeWithCacheBust(cacheBustedUrl);\n    } catch (err) {\n      const error = err instanceof Error ? err : new Error(String(err));\n\n      if (this.isDestroying || this.isDestroyed) return;\n\n      if (isDevelopment && this.isConnectionError(err)) {\n        this.isUnavailable = true;\n      } else {\n        this.error = error;\n        // Capture mount failure to Datadog with MFE context\n        datadogRum.addError(error, {\n          'mfe.name': this.args.mfe,\n          source: 'mfe_mount_failure_cache_bust',\n        });\n\n        const { remoteUrl, scope, module } = this.resolvedConfig;\n        console.error('[MFE] Failed to mount React micro-frontend:', {\n          error: error.message,\n          stack: error.stack,\n          mfe: this.args.mfe,\n          remoteUrl,\n          scope,\n          module,\n        });\n      }\n    } finally {\n      this.isLoading = false;\n    }\n  }\n\n  /**\n   * Initialize HMR bridge with cache-busted URL\n   */\n  private async initializeHmrBridgeWithCacheBust(cacheBustedUrl: string) {\n    if (!isDevelopment) return;\n\n    try {\n      const { scope } = this.resolvedConfig;\n\n      const HmrModule = await loadRemoteModule(cacheBustedUrl, scope, './hmr');\n      if (this.isDestroying || this.isDestroyed) return;\n\n      this.remoteHmrModule = HmrModule as RemoteHmrModule;\n\n      if (!this.remoteHmrModule.initHmrBridge) {\n        console.warn('[MFE HMR] Remote module does not export HMR bridge functions');\n        return;\n      }\n\n      // Register webpackHot from mount.tsx context\n      if (this.remoteMountModule?.getWebpackHot && this.remoteHmrModule.registerWebpackHot) {\n        const webpackHot = this.remoteMountModule.getWebpackHot();\n        if (webpackHot) {\n          this.remoteHmrModule.registerWebpackHot(webpackHot);\n          console.debug('[MFE HMR] Registered webpackHot from mount.tsx context');\n        }\n      }\n\n      const wsUrl = this.getHmrWebSocketUrl(this.resolvedConfig.remoteUrl);\n      this.remoteHmrModule.initHmrBridge(wsUrl);\n\n      this.hmrEventUnsubscribe = this.remoteHmrModule.onHmrEvent((event) => {\n        if (event.type === 'update-complete') {\n          console.debug('[MFE HMR] Update applied successfully');\n        } else if (event.type === 'update-failed') {\n          console.warn('[MFE HMR] Update failed, may require full reload');\n        } else if (event.type === 'reload-required') {\n          console.warn('[MFE HMR] HMR chain broken, reloading MFE...', event);\n          this.remountMfe();\n        }\n      });\n\n      console.debug('[MFE HMR] Bridge re-initialized for', scope);\n    } catch (err) {\n      console.warn('[MFE HMR] Failed to initialize HMR bridge:', err);\n    }\n  }\n}\n","export const ERROR_UNEXPECTED_DATA = 'ERROR_UNEXPECTED_DATA';\nexport const ERROR_UNEXPECTED_LAYOUT = 'ERROR_UNEXPECTED_LAYOUT';\nexport const ERROR_UNREACHABLE_DATA = 'ERROR_UNREACHABLE_DATA';\nexport const ERROR_ACCESS_RECORD_FORBIDDEN = 'ERROR_ACCESS_RECORD_FORBIDDEN';\nexport const ERROR_ACCESS_RESOURCE_FORBIDDEN = 'ERROR_ACCESS_RESOURCE_FORBIDDEN';\nexport const ERROR_ACCESS_COLLECTION_FORBIDDEN = 'ERROR_ACCESS_COLLECTION_FORBIDDEN';\nexport const ERROR_CREATE_RECORD_FORBIDDEN = 'ERROR_CREATE_RECORD_FORBIDDEN';\nexport const ERROR_NOT_FOUND = 'ERROR_NOT_FOUND';\nexport const ERROR_ENVIRONMENT_DISABLED = 'ERROR_ENVIRONMENT_DISABLED';\nexport const ERROR_NO_ENVIRONMENT_AVAILABLE = 'ERROR_NO_ENVIRONMENT_AVAILABLE';\nexport const ERROR_REDIRECTION_LOOP = 'ERROR_REDIRECTION_LOOP';\nexport const ERROR_RETURNED_DATA = 'ERROR_RETURNED_DATA';\nexport const ERROR_SENT_DATA = 'ERROR_SENT_DATA';\nexport const ERROR_PAGE_TOO_FAR = 'ERROR_PAGE_TOO_FAR';\nexport const ERROR_NO_PRIMARY_KEY = 'ERROR_NO_PRIMARY_KEY';\nexport const ERROR_UNAUTHORIZED = 'ERROR_UNAUTHORIZED';\nexport const ERROR_UNKNOWN = 'ERROR_UNKNOWN';\n\nexport type ErrorType =\n  | typeof ERROR_UNEXPECTED_DATA\n  | typeof ERROR_UNEXPECTED_LAYOUT\n  | typeof ERROR_UNREACHABLE_DATA\n  | typeof ERROR_ACCESS_RECORD_FORBIDDEN\n  | typeof ERROR_ACCESS_RESOURCE_FORBIDDEN\n  | typeof ERROR_ACCESS_COLLECTION_FORBIDDEN\n  | typeof ERROR_CREATE_RECORD_FORBIDDEN\n  | typeof ERROR_NOT_FOUND\n  | typeof ERROR_ENVIRONMENT_DISABLED\n  | typeof ERROR_REDIRECTION_LOOP\n  | typeof ERROR_RETURNED_DATA\n  | typeof ERROR_SENT_DATA\n  | typeof ERROR_PAGE_TOO_FAR\n  | typeof ERROR_NO_PRIMARY_KEY\n  | typeof ERROR_UNAUTHORIZED\n  | typeof ERROR_UNKNOWN;\n","export const DEFAULT_CHART_COMPONENT = `import Component from '@glimmer/component';\nimport { loadExternalStyle, loadExternalJavascript } from 'client/utils/smart-view-utils';\n\nexport default class extends Component {}\n`;\n\nexport const DEFAULT_CHART_TEMPLATE = `<div class=\"c-smart-chart\">\n  <div class=\"c-smart-chart__content\">\n    <span class=\"c-smart-chart__icon material-icons\">show_chart</span>\n    <h1>\n      Smart Chart\n    </h1>\n    <p>\n      You can now implement your Smart Chart.\n    </p>\n  </div>\n</div>\n`;\n\nexport const DEFAULT_CHART_STYLE = `.c-smart-chart {\n  display: flex;\n  white-space: normal;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  top: 0;\n  background-color: var(--color-beta-surface);\n}\n\n.c-smart-chart__content {\n  margin: auto;\n  text-align: center;\n  color: var(--color-beta-on-surface_medium);\n}\n\n.c-smart-chart__icon {\n  margin-bottom: 32px;\n  font-size: 64px;\n}\n`;\n","export const TYPES = [\n  { name: 'Ember', value: 'Ember' },\n  { name: 'React (beta version)', value: 'React' },\n];\n\nexport const DEFAULT_TEMPLATE_SNIPPET = `<div class=\"c-smart-view\">\n  <div class=\"c-smart-view__content\">\n    <span class=\"c-smart-view_icon\">{{@collection.iconOrDefault}}</span>\n    <h1>\n      {{@collection.pluralizedDisplayName}}\n      ({{@recordsCount}})\n    </h1>\n    <p>\n      You can now implement your Smart View.\n    </p>\n  </div>\n</div>\n<style>\n.c-smart-view {\n  display: flex;\n  white-space: normal;\n  position: absolute;\n  bottom: 0;\n  left: 0;\n  right: 0;\n  top: 0;\n  background-color: var(--color-beta-surface);\n}\n\n.c-smart-view__content {\n  margin: auto;\n  text-align: center;\n  color: var(--color-beta-on-surface_medium);\n}\n\n.c-smart-view_icon {\n  margin-bottom: 32px;\n  font-size: 32px;\n}\n</style>\n`;\n\nexport const DEFAULT_COMPONENT_SNIPPET = `import Component from '@glimmer/component';\nimport { action } from '@ember/object';\nimport { triggerSmartAction, deleteRecords, getCollectionId, loadExternalStyle, loadExternalJavascript } from 'client/utils/smart-view-utils';\n\nexport default class extends Component {\n  @action\n  triggerSmartAction(...args) {\n    return triggerSmartAction(this, ...args);\n  }\n\n  @action\n  deleteRecords(...args) {\n    return deleteRecords(this, ...args);\n  }\n}\n`;\n\nexport const DEFAULT_REACT_COMPONENT_SNIPPET = `import React from 'react';\nimport WithEmberSupport from 'client/utils/react';\n\n@WithEmberSupport\nexport default class extends React.Component {\n  render() {\n    const {\n      records,\n      collection,\n      numberOfPages,\n      recordsCount,\n      currentPage,\n      searchValue,\n      isLoading,\n    } = this.props;\n    const iconClass = \"c-empty__illustration l-dmb\";\n    return (\n      <div className=\"c-empty\">\n      <div>\n        <span className={iconClass}>{collection.iconOrDefault}</span>\n        <h1 className=\"l-hmb\">\n          {collection.displayName} ({recordsCount})\n        </h1>\n        <p>\n          You can now implement your Smart View.\n        </p>\n      </div>\n    </div>\n    );\n  }\n}\n`;\n","import type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\n\nexport type WorkspaceComponentConfigurationType =\n  | Exclude<`${WorkspaceComponentTypeEnum}`, 'divider'>\n  | 'vertical-divider'\n  | 'horizontal-divider';\nexport type WorkspaceComponentConfiguration = {\n  type: `${WorkspaceComponentTypeEnum}`;\n  imagePath: string;\n  defaultWidth: number;\n  defaultHeight: number;\n  minWidth: number;\n  minHeight: number;\n  maxWidth?: number;\n  maxHeight?: number;\n  variant?: string;\n  label?: string;\n  resizeHandles?: 'e,w' | 'n,s';\n  isContainer?: boolean;\n};\n\nconst workspaceComponentConfiguration: Record<\n  WorkspaceComponentConfigurationType,\n  WorkspaceComponentConfiguration\n> = {\n  action: {\n    type: 'action',\n    imagePath: 'action',\n    defaultWidth: 8,\n    defaultHeight: 2,\n    minWidth: 2,\n    minHeight: 1,\n  },\n  chart: {\n    type: 'chart',\n    imagePath: 'chart',\n    defaultWidth: 17,\n    defaultHeight: 11,\n    minWidth: 8,\n    minHeight: 6,\n  },\n  collection: {\n    type: 'collection',\n    imagePath: 'collection',\n    defaultWidth: 34,\n    defaultHeight: 16,\n    minWidth: 27,\n    minHeight: 8,\n  },\n  'date-picker': {\n    type: 'date-picker',\n    imagePath: 'date-picker',\n    label: 'Date Picker',\n    defaultWidth: 12,\n    defaultHeight: 3,\n    minWidth: 4,\n    minHeight: 2,\n    maxHeight: 3,\n  },\n  dropdown: {\n    type: 'dropdown',\n    imagePath: 'dropdown',\n    defaultWidth: 21,\n    defaultHeight: 2,\n    minWidth: 4,\n    minHeight: 2,\n  },\n  field: {\n    type: 'field',\n    imagePath: 'field',\n    defaultWidth: 10,\n    defaultHeight: 4,\n    minWidth: 1,\n    minHeight: 2,\n  },\n  input: {\n    type: 'input',\n    imagePath: 'input',\n    defaultWidth: 10,\n    defaultHeight: 4,\n    minWidth: 1,\n    minHeight: 2,\n  },\n  inbox: {\n    type: 'inbox',\n    imagePath: 'inbox',\n    defaultWidth: 20,\n    defaultHeight: 8,\n    minWidth: 20,\n    minHeight: 8,\n  },\n  link: {\n    type: 'link',\n    imagePath: 'link',\n    defaultWidth: 8,\n    defaultHeight: 2,\n    minWidth: 1,\n    minHeight: 1,\n  },\n  metabase: {\n    type: 'metabase',\n    imagePath: 'metabase',\n    label: 'Metabase',\n    defaultWidth: 34,\n    defaultHeight: 16,\n    minWidth: 8,\n    minHeight: 6,\n  },\n  search: {\n    type: 'search',\n    imagePath: 'search',\n    defaultWidth: 21,\n    defaultHeight: 2,\n    minWidth: 10,\n    minHeight: 2,\n  },\n  section: {\n    type: 'section',\n    imagePath: 'section',\n    defaultWidth: 34,\n    defaultHeight: 16,\n    minWidth: 2,\n    minHeight: 2,\n    isContainer: true,\n  },\n  smart: {\n    type: 'smart',\n    imagePath: 'smart',\n    label: 'Custom',\n    defaultWidth: 34,\n    defaultHeight: 16,\n    minWidth: 1,\n    minHeight: 1,\n  },\n  text: {\n    type: 'text',\n    imagePath: 'text',\n    defaultWidth: 7,\n    defaultHeight: 2,\n    minWidth: 1,\n    minHeight: 1,\n  },\n  'horizontal-divider': {\n    type: 'divider',\n    variant: 'horizontal',\n    label: 'H. Divider',\n    imagePath: 'horizontal-divider',\n    defaultWidth: 20,\n    defaultHeight: 2,\n    minHeight: 2,\n    maxHeight: 2,\n    minWidth: 1,\n    resizeHandles: 'e,w',\n  },\n  'vertical-divider': {\n    type: 'divider',\n    variant: 'vertical',\n    label: 'V. Divider',\n    imagePath: 'vertical-divider',\n    defaultWidth: 2,\n    defaultHeight: 20,\n    minHeight: 1,\n    minWidth: 2,\n    maxWidth: 2,\n    resizeHandles: 'n,s',\n  },\n  tabs: {\n    type: 'tabs',\n    imagePath: 'tabs',\n    defaultWidth: 34,\n    defaultHeight: 16,\n    minWidth: 27,\n    minHeight: 8,\n    isContainer: true,\n  },\n  toggle: {\n    type: 'toggle',\n    imagePath: 'toggle',\n    defaultWidth: 10,\n    defaultHeight: 3,\n    minWidth: 3,\n    minHeight: 2,\n  },\n  workflow: {\n    type: 'workflow',\n    imagePath: 'workflow',\n    defaultWidth: 8,\n    defaultHeight: 2,\n    minWidth: 2,\n    minHeight: 1,\n  },\n};\n\nexport default workspaceComponentConfiguration;\n","export const WORKSPACE_GRID_CELL_WIDTH = 20;\nexport const WORKSPACE_GRID_CELL_HEIGHT = 20;\nexport const WORKSPACE_GRID_MAX_WIDTH = 4000;\nexport const WORKSPACE_GRID_MAX_HEIGHT = 8000;\n","import type { DisplaySettingsAttributes } from 'client/data/models/display-settings';\nimport type { WidgetConfigurationAttributes } from 'client/data/models/widget-configuration';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type { WorkspaceTextAlignEnum } from 'client/data/models/workspace-component-options-text';\n\nimport { WorkspaceComponentVisibilityTypeEnum } from 'client/data/models/workspace-component-visibility';\nimport { WidgetDisplayTypeEnum } from 'client/utils/widgets';\n\ntype WorkspaceComponentBaseAutogenerated = {\n  type: `${WorkspaceComponentTypeEnum}`;\n  displaySettings: DisplaySettingsAttributes;\n  visibility?: { type: WorkspaceComponentVisibilityTypeEnum };\n};\ntype LinkedTo = {\n  linkedTo:\n    | 'collection'\n    | `collection.fields.${number}`\n    | 'collection.hasManyField'\n    | `collection.belongsToField`\n    | `collection.belongsToField.referenceModel`\n    | `collection.belongsToField.referenceModel.fields.${number}`;\n};\nexport type WorkspaceLinkedToComponentAutogenerated = WorkspaceComponentBaseAutogenerated &\n  LinkedTo & {\n    type: Omit<\n      `${WorkspaceComponentTypeEnum}`,\n      `${\n        | WorkspaceComponentTypeEnum.Section\n        | WorkspaceComponentTypeEnum.Tabs\n        | WorkspaceComponentTypeEnum.Text\n        | WorkspaceComponentTypeEnum.Field\n        | WorkspaceComponentTypeEnum.Link\n        | WorkspaceComponentTypeEnum.Divider}`\n    >;\n  };\n\nexport type WorkspaceDividerComponentAutogenerated = WorkspaceComponentBaseAutogenerated & {\n  type: `${WorkspaceComponentTypeEnum.Divider}`;\n};\ntype WorkspaceTextOptionsAutogenerated = { fontSize?: number; textAlign?: WorkspaceTextAlignEnum };\nexport type WorkspaceTextComponentAutogenerated = WorkspaceComponentBaseAutogenerated &\n  WorkspaceTextOptionsAutogenerated & {\n    type: `${WorkspaceComponentTypeEnum.Text}`;\n    value: string;\n  };\nexport type WorkspaceLinkComponentAutogenerated = WorkspaceComponentBaseAutogenerated &\n  WorkspaceTextOptionsAutogenerated &\n  LinkedTo & {\n    type: `${WorkspaceComponentTypeEnum.Link}`;\n    value?: string;\n  };\n\nexport type WorkspaceFieldComponentAutogenerated = WorkspaceComponentBaseAutogenerated &\n  LinkedTo & {\n    widgetDisplay?: WidgetConfigurationAttributes;\n    displayedLabel?: string;\n  };\n\nexport type WorkspaceNonContainerComponentAutogenerated =\n  | WorkspaceLinkedToComponentAutogenerated\n  | WorkspaceDividerComponentAutogenerated\n  | WorkspaceTextComponentAutogenerated\n  | WorkspaceLinkComponentAutogenerated\n  | WorkspaceFieldComponentAutogenerated;\n\nexport type WorkspaceSectionComponentAutogenerated = WorkspaceComponentBaseAutogenerated & {\n  type: `${WorkspaceComponentTypeEnum.Section}`;\n  components: WorkspaceNonContainerComponentAutogenerated[];\n};\nexport type WorkspaceTabsComponentAutogenerated = WorkspaceComponentBaseAutogenerated & {\n  type: `${WorkspaceComponentTypeEnum.Tabs}`;\n  tabs: {\n    name: string;\n    components: WorkspaceNonContainerComponentAutogenerated[];\n  }[];\n};\n\nexport type WorkspaceCompomentAutogeneratedTemplate =\n  | WorkspaceNonContainerComponentAutogenerated\n  | WorkspaceSectionComponentAutogenerated\n  | WorkspaceTabsComponentAutogenerated;\nexport interface WorkspaceAutogeneratedTemplate {\n  name: string;\n  requirements?: { isRequiringBelongsTo?: boolean; isRequiringHasMany?: boolean };\n  template: {\n    workspaceName: string;\n    components: WorkspaceCompomentAutogeneratedTemplate[];\n  };\n}\n\nexport const WORKSPACE_AUTOGENERATED_SIMPLE_TEMPLATE: WorkspaceAutogeneratedTemplate = {\n  name: 'Simple',\n  requirements: { isRequiringBelongsTo: false, isRequiringHasMany: false },\n  template: {\n    workspaceName: '{{collection.pluralizedDisplayName}} simple workspace',\n    components: [\n      {\n        type: 'collection',\n        displaySettings: {\n          x: 0,\n          y: 0,\n          width: 32,\n          height: 32,\n        },\n        linkedTo: 'collection',\n      },\n      {\n        type: 'section',\n        displaySettings: { x: 32, y: 0, width: 32, height: 16 },\n        components: [\n          {\n            type: 'field',\n            linkedTo: 'collection.fields.0',\n            displaySettings: {\n              x: 0,\n              y: 0,\n              width: 15,\n              height: 4,\n            },\n          },\n          {\n            type: 'field',\n            linkedTo: 'collection.fields.1',\n            displaySettings: {\n              x: 15,\n              y: 0,\n              width: 15,\n              height: 4,\n            },\n          },\n          {\n            type: 'field',\n            linkedTo: 'collection.fields.2',\n            displaySettings: {\n              x: 0,\n              y: 4,\n              width: 15,\n              height: 4,\n            },\n          },\n          {\n            type: 'field',\n            linkedTo: 'collection.fields.3',\n            displaySettings: {\n              x: 15,\n              y: 4,\n              width: 15,\n              height: 4,\n            },\n          },\n          {\n            type: 'field',\n            linkedTo: 'collection.fields.4',\n            displaySettings: {\n              x: 0,\n              y: 8,\n              width: 15,\n              height: 4,\n            },\n          },\n          {\n            type: 'field',\n            linkedTo: 'collection.fields.5',\n            displaySettings: {\n              x: 15,\n              y: 8,\n              width: 15,\n              height: 4,\n            },\n          },\n          {\n            type: 'link',\n            linkedTo: 'collection',\n            value: '🔎 Show more information',\n            displaySettings: {\n              x: 0,\n              y: 12,\n              width: 30,\n              height: 2,\n            },\n          },\n        ],\n      },\n      {\n        type: 'chart',\n        linkedTo: 'collection',\n        displaySettings: {\n          x: 32,\n          y: 16,\n          width: 32,\n          height: 16,\n        },\n      },\n    ],\n  },\n};\n\nexport const WORKSPACE_AUTOGENERATED_SIMPLE_TABS_TEMPLATE: WorkspaceAutogeneratedTemplate = {\n  name: 'Simple Tabs',\n  requirements: { isRequiringBelongsTo: true, isRequiringHasMany: false },\n  template: {\n    workspaceName: '{{collection.pluralizedDisplayName}} simple workspace',\n    components: [\n      {\n        type: 'collection',\n        linkedTo: 'collection',\n        displaySettings: {\n          x: 0,\n          y: 0,\n          width: 32,\n          height: 32,\n        },\n      },\n      {\n        type: 'tabs',\n        displaySettings: { x: 32, y: 0, width: 32, height: 16 },\n        tabs: [\n          {\n            name: '{{collection.singularizedDisplayName}} Details',\n            components: [\n              {\n                type: 'field',\n                linkedTo: 'collection.fields.0',\n                displaySettings: {\n                  x: 0,\n                  y: 0,\n                  width: 15,\n                  height: 4,\n                },\n              },\n              {\n                type: 'field',\n                linkedTo: 'collection.fields.1',\n                displaySettings: {\n                  x: 15,\n                  y: 0,\n                  width: 15,\n                  height: 4,\n                },\n              },\n              {\n                type: 'field',\n\n                linkedTo: 'collection.fields.2',\n                displaySettings: {\n                  x: 0,\n                  y: 4,\n                  width: 15,\n                  height: 4,\n                },\n              },\n              {\n                type: 'field',\n                linkedTo: 'collection.fields.3',\n                displaySettings: {\n                  x: 15,\n                  y: 4,\n                  width: 15,\n                  height: 4,\n                },\n              },\n              {\n                type: 'link',\n                linkedTo: 'collection',\n                value: '🔎 Show more information',\n                displaySettings: {\n                  x: 0,\n                  y: 8,\n                  width: 30,\n                  height: 3,\n                },\n              },\n            ],\n          },\n          {\n            name: '{{collection.belongsToField.displayNameTitlize}} Details',\n            components: [\n              {\n                type: 'field',\n                linkedTo: 'collection.belongsToField.referenceModel.fields.0',\n                displaySettings: {\n                  x: 0,\n                  y: 0,\n                  width: 15,\n                  height: 4,\n                },\n              },\n              {\n                type: 'field',\n                linkedTo: 'collection.belongsToField.referenceModel.fields.1',\n                displaySettings: {\n                  x: 15,\n                  y: 0,\n                  width: 15,\n                  height: 4,\n                },\n              },\n              {\n                type: 'field',\n                linkedTo: 'collection.belongsToField.referenceModel.fields.2',\n                displaySettings: {\n                  x: 0,\n                  y: 4,\n                  width: 15,\n                  height: 4,\n                },\n              },\n              {\n                type: 'field',\n                linkedTo: 'collection.belongsToField.referenceModel.fields.3',\n                displaySettings: {\n                  x: 15,\n                  y: 4,\n                  width: 15,\n                  height: 4,\n                },\n              },\n              {\n                type: 'field',\n                linkedTo: 'collection.belongsToField',\n                displayedLabel: '🔎 Show more information',\n                widgetDisplay: {\n                  name: WidgetDisplayTypeEnum.BelongsTo,\n                },\n                displaySettings: {\n                  x: 0,\n                  y: 8,\n                  width: 30,\n                  height: 3,\n                },\n              },\n            ],\n          },\n        ],\n      },\n      {\n        type: 'chart',\n        linkedTo: 'collection',\n        displaySettings: {\n          x: 32,\n          y: 16,\n          width: 32,\n          height: 16,\n        },\n      },\n    ],\n  },\n};\n\nexport const WORKSPACE_AUTOGENERATED_SIMPLE_RELATIONSHIPS_TEMPLATE: WorkspaceAutogeneratedTemplate =\n  {\n    name: 'Simple Relationships',\n    requirements: { isRequiringBelongsTo: true, isRequiringHasMany: true },\n    template: {\n      workspaceName: '{{collection.pluralizedDisplayName}} relationships workspace',\n      components: [\n        {\n          type: 'search',\n          linkedTo: 'collection',\n          displaySettings: { x: 0, y: 0, width: 32, height: 2 },\n        },\n        {\n          type: 'section',\n          displaySettings: { x: 0, y: 2, width: 32, height: 15 },\n          components: [\n            {\n              type: 'text',\n              value: `{{collection.singularizedDisplayName}} details`,\n              fontSize: 24,\n              displaySettings: { x: 0, y: 0, width: 30, height: 3 },\n            },\n            {\n              type: 'field',\n              linkedTo: 'collection.fields.0',\n              displaySettings: { x: 0, y: 3, width: 15, height: 5 },\n            },\n            {\n              type: 'field',\n              linkedTo: 'collection.fields.1',\n              displaySettings: { x: 15, y: 3, width: 15, height: 5 },\n            },\n            {\n              type: 'field',\n              linkedTo: 'collection.fields.2',\n              displaySettings: { x: 0, y: 8, width: 15, height: 5 },\n            },\n            {\n              type: 'field',\n              linkedTo: 'collection.fields.3',\n              displaySettings: { x: 15, y: 8, width: 15, height: 5 },\n            },\n          ],\n        },\n        {\n          type: 'section',\n          displaySettings: { x: 0, y: 17, width: 32, height: 15 },\n          components: [\n            {\n              type: 'text',\n              value: '{{collection.belongsToField.displayNameTitlize}} details',\n              fontSize: 24,\n              displaySettings: { x: 0, y: 0, width: 30, height: 3 },\n            },\n            {\n              type: 'field',\n              linkedTo: 'collection.belongsToField.referenceModel.fields.0',\n              displaySettings: { x: 0, y: 3, width: 15, height: 5 },\n            },\n            {\n              type: 'field',\n              linkedTo: 'collection.belongsToField.referenceModel.fields.1',\n              displaySettings: { x: 15, y: 3, width: 15, height: 5 },\n            },\n            {\n              type: 'field',\n              linkedTo: 'collection.belongsToField.referenceModel.fields.2',\n              displaySettings: { x: 0, y: 8, width: 15, height: 5 },\n            },\n            {\n              type: 'field',\n              linkedTo: 'collection.belongsToField.referenceModel.fields.3',\n              displaySettings: { x: 15, y: 8, width: 15, height: 5 },\n            },\n          ],\n        },\n        {\n          type: 'chart',\n          linkedTo: 'collection',\n          displaySettings: { x: 32, y: 0, width: 32, height: 12 },\n        },\n        {\n          type: 'collection',\n          linkedTo: 'collection.hasManyField',\n          displaySettings: { x: 32, y: 12, width: 32, height: 20 },\n          visibility: { type: WorkspaceComponentVisibilityTypeEnum.WhenItsContextIsSet },\n        },\n      ],\n    },\n  };\n\nexport const WORKSPACE_AUTOGENERATED_TEMPLATES: WorkspaceAutogeneratedTemplate[] = [\n  WORKSPACE_AUTOGENERATED_SIMPLE_TEMPLATE,\n  WORKSPACE_AUTOGENERATED_SIMPLE_TABS_TEMPLATE,\n  WORKSPACE_AUTOGENERATED_SIMPLE_RELATIONSHIPS_TEMPLATE,\n];\n","// eslint-disable-next-line no-unused-vars\nexport default function (_toIgnore) {}\n","import { JSONAPISerializer } from 'miragejs';\n\nexport default class ApplicationMirageSerializer extends JSONAPISerializer {\n  keyForAttribute(attr) {\n    return attr.startsWith('forest-') ? attr.substring('forest-'.length) : attr;\n  }\n\n  typeKeyForModel(model) {\n    const modelName = model.originalModelName || model.modelName;\n    return modelName.substring('forest-'.length);\n  }\n}\n","import type Store from '@ember-data/store';\nimport type ActionApprovalModel from 'client/data/models/action-approval';\n\nimport { underscore } from '@ember/string';\n\nimport ApplicationAdapter from 'client/data/adapters/application';\n\nconst ATTRIBUTES_FOR_PATCH = ['status', 'roleIdsAllowedToApprove', 'errorMessage'];\n\nexport default class ActionApprovalAdapter extends ApplicationAdapter {\n  getActionApprovalPath(actionApprovalId: string) {\n    return `${this.host}/${this.namespace}/action-approvals/${actionApprovalId}`;\n  }\n\n  getHttpType(url: string, type: string) {\n    return type;\n  }\n\n  static getPatchBody(record: ActionApprovalModel) {\n    const changedAttributes = Object.keys(record.changedAttributes());\n    let properties = { signed_approval_request: record.signedApprovalRequest };\n\n    ATTRIBUTES_FOR_PATCH.forEach((attribute) => {\n      if (changedAttributes.includes(attribute)) {\n        properties = {\n          ...properties,\n          // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n          [underscore(attribute)]: record[attribute],\n        };\n      }\n    });\n\n    return {\n      data: {\n        id: record.id,\n        type: 'action-approvals',\n        attributes: properties,\n      },\n    };\n  }\n\n  updateRecord(store: Store, type: string, snapshot: { record: ActionApprovalModel }) {\n    const { record } = snapshot;\n\n    if (!record.signedApprovalRequest) {\n      console.warn(`Signed token for approval ${record.id} not found.`);\n      return null;\n    }\n\n    const data = ActionApprovalAdapter.getPatchBody(record);\n\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n    return this.ajax(this.getActionApprovalPath(snapshot.record.id), 'PATCH', {\n      data,\n    });\n  }\n}\n","// eslint-disable-next-line ember/use-ember-data-rfc-395-imports\nimport type DS from 'ember-data';\n\nimport ApplicationAdapter from 'client/data/adapters/application';\n\nexport default class ActionApprovalsCommentModelAdapter extends ApplicationAdapter {\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-ignore Issue with typescript\n  override urlForCreateRecord(\n    modelName: string,\n    snapshot: DS.Snapshot<'action-approvals-comment'>,\n  ) {\n    return `${this.host}/${this.namespace}/action-approvals/${snapshot.record.approval.id}/comments`;\n  }\n}\n","import type { Snapshot } from '@ember-data/store';\nimport type ModelRegistry from '@ember-data/types/registries/model';\nimport type ActivityLogsRequestModel from 'client/data/models/activity-logs-request';\n\nimport ApplicationAdapter from 'client/data/adapters/application';\n\nexport default class ActivityLogAdapter extends ApplicationAdapter {\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-expect-error\n  urlForCreateRecord<K extends keyof ModelRegistry>(\n    modelName: K,\n    snapshot: Snapshot<ActivityLogsRequestModel>,\n  ) {\n    const activityLog = snapshot.record as ActivityLogsRequestModel;\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    const url = `${super.urlForCreateRecord(modelName, snapshot)}?type=${encodeURIComponent(\n      activityLog.type,\n    )}&action=${activityLog.action}`;\n    return url;\n  }\n}\n","import { isArray } from '@ember/array';\nimport { computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { isPresent } from '@ember/utils';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\nimport ForbiddenLoginResourceAccessError from 'client/data/adapters/errors/forbidden-login-resource-access-error';\nimport UnauthorizedIpAddressError from 'client/data/adapters/errors/unauthorized-ip-address-error';\nimport HasManyQueryAdapter from 'client/data/adapters/has-many-query-adapter';\nimport emberErrorUtil from 'client/utils/ember-error-util';\nimport { FailedToFetchError, UnknownForestAdapterError } from 'client/utils/errors';\n\nconst { isEmberError, getFirstErrorDetail, getFirstErrorName, getFirstErrorMeta } = emberErrorUtil;\n\nexport default class ApplicationAdapter extends HasManyQueryAdapter {\n  @service('shared/fetch') fetchService;\n\n  namespace = 'api';\n  host = config.APP.apiServerHost;\n\n  shouldReloadAll() {\n    return true;\n  }\n\n  shouldBackgroundReloadRecord() {\n    return false;\n  }\n\n  @service session;\n  @service lianaSession;\n  @service errorHandler;\n  @service store;\n  @service toastr;\n  @service segment;\n  @service sessionRefresh;\n  @service tracker;\n  @service logoutMessage;\n  @service router;\n  @service samlFlow;\n  @service('feature/browser-extension/state') browserExtensionFeatureState;\n\n  /**\n   * @param {string} url\n   * @param {'PATCH' | 'POST' | 'PUT' | 'GET'} type\n   * @param {any} [options]\n   * @returns {Promise<T>}\n   */\n  async ajax(url, type, options) {\n    const parentFunction = super.ajax.bind(this);\n\n    const augmentedOptions = { ...(options || {}) };\n    augmentedOptions.headers = augmentedOptions.headers || {};\n    // It is important that these headers are collected before\n    // calling asynchronous code to avoid race conditions\n    augmentedOptions.headers = {\n      ...(this.recordSpecificHeaders || {}),\n      ...this.generateContextHeaders(),\n      ...augmentedOptions.headers,\n    };\n\n    this.resetRecordSpecificHeaders();\n\n    try {\n      return await this.sessionRefresh\n        .waitSessionRefreshIfNecessary()\n        .then(() => parentFunction(url, type, augmentedOptions));\n    } catch (error) {\n      if (\n        error instanceof UnauthorizedIpAddressError\n        || error instanceof ForbiddenLoginResourceAccessError\n        || error instanceof FailedToFetchError\n      ) {\n        throw error;\n      }\n      throw new UnknownForestAdapterError(error, { url, type, options });\n    }\n  }\n\n  @computed('lianaSession.currentProject')\n  get currentProjectId() {\n    const { currentProject } = this.lianaSession;\n    return currentProject?.id || null;\n  }\n\n  /**\n   * ⚠ DO NOT inject dynamic headers here\n   * because they can be subject to race conditions.\n   * All dynamic headers must be added by ajax or ajaxOptions\n   */\n  get headers() {\n    return {\n      Accept: `vnd.forestadmin-api+json; version=${config.APP.apiVersion}`,\n    };\n  }\n\n  generateContextHeaders() {\n    const headers = {};\n    const projectId = this.currentProjectId;\n\n    if (projectId) {\n      headers['Forest-Project-Id'] = projectId;\n    }\n\n    const renderingId = this.lianaSession.currentRenderingId;\n    if (renderingId) {\n      headers['Forest-Rendering-Id'] = renderingId;\n      headers['Forest-Environment-Id'] = this.lianaSession.rendering?.environment?.id;\n      headers['Forest-Team-Id'] = this.lianaSession.rendering?.team?.id;\n    }\n\n    if (this.browserExtensionFeatureState.isUsedFromBrowserExtension) {\n      // New header to know the application source (when used from Forest Admin Assist)\n      headers['Forest-Application-Source'] = 'Assist';\n    }\n\n    return headers;\n  }\n\n  generateSessionHeaders() {\n    const headers = {};\n\n    const { token } = this.session.data.authenticated;\n    if (isPresent(token)) {\n      headers.Authorization = `Bearer ${token}`;\n    }\n\n    return headers;\n  }\n\n  /**\n   * ⚠ This headers are directly written on the service\n   * this is not a good practice but it works as long as their usage\n   * is done synchronously\n   * @param {any} snapshot\n   */\n  initRecordSpecificHeaders(snapshot) {\n    if (snapshot.record?.collection || snapshot.record?.parentCollection) {\n      const collection = snapshot.record.collection || snapshot.record.parentCollection;\n\n      this.set('recordSpecificHeaders', {\n        'Forest-Collection-Id': collection.get('id'),\n      });\n\n      return;\n    }\n\n    if (snapshot.record && snapshot.modelName === 'collection') {\n      this.set('recordSpecificHeaders', {\n        'Forest-Collection-Id': snapshot.record.get('id'),\n      });\n    }\n  }\n\n  resetRecordSpecificHeaders() {\n    this.set('recordSpecificHeaders', undefined);\n  }\n\n  getHttpType(url, type) {\n    const possiblePatchPaths = ['layout', 'folders', 'workflows'];\n    const apiPrefix = 'api/';\n    const patchPattern = possiblePatchPaths.map((path) => `${apiPrefix}${path}`).join('|');\n    const patchURLToNotCorrectREGEX = new RegExp(\n      `(${patchPattern}|${apiPrefix}roles/.*/permissions)`,\n    );\n\n    return type === 'PATCH' && !patchURLToNotCorrectREGEX.test(url) ? 'PUT' : type;\n  }\n\n  ajaxOptions(url, type, options = {}) {\n    const correctType = this.getHttpType(url, type);\n\n    const newOptions = { ...(options || {}) };\n    newOptions.headers = {\n      ...(newOptions.headers || {}),\n      ...this.generateSessionHeaders(),\n    };\n\n    const hash = super.ajaxOptions(url, correctType, newOptions);\n    if (isArray(hash.body)) {\n      hash.body = JSON.stringify(hash.body);\n    }\n    if (!hash.headers['Content-Type'] && !hash.headers['content-type']) {\n      hash.headers['Content-Type'] = 'application/json; charset=utf-8';\n    }\n    // NOTICE: Ensure secure authentication (using cookies) works.\n    newOptions.credentials = 'include';\n\n    return hash;\n  }\n\n  /**\n   * @template K\n   * @param {import('@ember-data/store').default} store\n   * @param {import('ember-data/types/registries/model').ModelRegistry[K]} type\n   * @param {*} snapshot\n   * @returns {Promise<any>}\n   */\n  // eslint-disable-next-line sonarjs/no-identical-functions\n  createRecord(store, type, snapshot) {\n    this.initRecordSpecificHeaders(snapshot);\n\n    return super.createRecord(store, type, snapshot);\n  }\n\n  /**\n   * @param {import('@ember-data/store').default} store\n   * @param {import('ember-data/types/registries/model').ModelRegistry[K]} type\n   * @param {*} snapshot\n   * @returns {Promise<any>}\n   */\n  // eslint-disable-next-line sonarjs/no-identical-functions\n  updateRecord(store, type, snapshot) {\n    this.initRecordSpecificHeaders(snapshot);\n\n    return super.updateRecord(store, type, snapshot);\n  }\n\n  // eslint-disable-next-line sonarjs/no-identical-functions\n  deleteRecord(store, type, snapshot) {\n    this.initRecordSpecificHeaders(snapshot);\n\n    return super.deleteRecord(store, type, snapshot);\n  }\n\n  // eslint-disable-next-line sonarjs/no-identical-functions\n  findHasMany(store, snapshot, url, relationship) {\n    this.initRecordSpecificHeaders(snapshot);\n\n    return super.findHasMany(store, snapshot, url, relationship);\n  }\n\n  // eslint-disable-next-line sonarjs/no-identical-functions\n  findBelongsTo(store, snapshot, url, relationship) {\n    this.initRecordSpecificHeaders(snapshot);\n\n    return super.findBelongsTo(store, snapshot, url, relationship);\n  }\n\n  // eslint-disable-next-line sonarjs/no-identical-functions\n  findRecord(store, type, id, snapshot) {\n    this.initRecordSpecificHeaders(snapshot);\n\n    return super.findRecord(store, type, id, snapshot);\n  }\n\n  handleResponse(status, headers, error, requestData) {\n    if (status === 403 && isEmberError(error)) {\n      if (getFirstErrorDetail(error).startsWith('IP address rejected')) {\n        const errorDetail = getFirstErrorDetail(error);\n        const ip = errorDetail.match(/\\((.*)\\)/)[1];\n\n        const environmentId = this.lianaSession.rendering?.environment?.id;\n        const projectId = this.currentProjectId;\n\n        this.session.set('ipRejected', ip);\n        // Promise but function is synchronous\n        this.lianaSession.invalidate();\n        this.tracker.captureMessage('Agent logout: 403 (application-adapter)', 'warning', {\n          originalError: error,\n          data: requestData,\n        });\n        this.toastr.perform('error', getFirstErrorDetail(error));\n\n        return new UnauthorizedIpAddressError({ projectId, environmentId });\n      }\n\n      if (getFirstErrorName(error) === 'InvalidTokenForOrganizationError') {\n        window.Cookies.remove('sso');\n        const { organizationName, resourceRequiresSso } = getFirstErrorMeta(error);\n        const errorDetail = getFirstErrorDetail(error);\n\n        return new ForbiddenLoginResourceAccessError({\n          organizationName,\n          resourceRequiresSso,\n          message: errorDetail,\n        });\n      }\n    }\n\n    if (status === 401) {\n      this.logoutMessage.saveLogoutMessage(error);\n      this.session.invalidate();\n    }\n\n    return super.handleResponse(status, headers, error, requestData);\n  }\n\n  _fetchRequest(options) {\n    return this.fetchService.fetch(options.url, options, false);\n  }\n}\n","import type RSVP from 'rsvp';\n\nimport ApplicationAdapter from 'client/data/adapters/application';\n\ninterface NormalizedResponse {\n  data: {\n    id: string;\n    attributes: { email: string; foundInDB: boolean };\n  }[];\n}\n\nexport default class AssigneeAdapter extends ApplicationAdapter {\n  query(\n    store,\n    modelName,\n    searchCriteria: { emails?: string[]; projectId: number; search: string },\n  ): RSVP.Promise<NormalizedResponse> {\n    const url = `${this.host}/${this.namespace}/projects/${searchCriteria.projectId}/assignees/search`;\n\n    const data = {\n      search: searchCriteria.search,\n      filter: searchCriteria.emails\n        ? {\n            emails: searchCriteria.emails,\n          }\n        : undefined,\n    };\n    return this.ajax(url, 'POST', { data }) as RSVP.Promise<NormalizedResponse>;\n  }\n}\n","import LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\n\nconst CHART_GLOBAL_ATTRIBUTES = ['id', 'name', 'description', 'displaySettings'];\n\nexport default class ChartAdapter extends LayoutPatchAdapter {\n  static addMissingPatches(record, data) {\n    const dataToSerialize = record.toJSON();\n    Object.keys(dataToSerialize).forEach((attribute) => {\n      if (\n        CHART_GLOBAL_ATTRIBUTES.includes(attribute)\n        || data.some((patch) => patch.path.endsWith(attribute))\n      )\n        return;\n\n      data.push(this.createPatchOperation(record, attribute, dataToSerialize[attribute]));\n    });\n  }\n\n  static isRecordChangingFromQueryOrApiToSimple(record) {\n    return [record.changedAttributes().query, record.changedAttributes().apiRoute].some(\n      (changedAttributes) =>\n        changedAttributes?.length\n        && ((!changedAttributes[0] && changedAttributes[1])\n          || (changedAttributes[0] && !changedAttributes[1])),\n    );\n  }\n\n  static getPatchBody(snapshot) {\n    const data = super.getPatchBody(snapshot);\n    const { record } = snapshot;\n\n    // NOTICE: When switching from query to simple chart the aggregateFieldName can be null\n    //         in that case it is not generated automatically in the patch. SO we need to add it.\n    if (\n      !record.isNew\n      && record.changedAttributes().aggregator\n      && !data.some((patch) => patch.path.endsWith('aggregateFieldName'))\n    ) {\n      const { name, value } = record.getRelationshipPatchNameAndValue('aggregateField');\n      data.push(this.createPatchOperation(record, name, value));\n    }\n    if (data.some((patch) => patch.path.endsWith('apiRoute') && patch.op === 'remove')) {\n      data.push(this.createPatchOperation(record, 'smartRoute'));\n    }\n\n    const testPatches = [];\n    if (!record.isNew && !record.isDeleted) {\n      if (!data.some((patch) => patch.path.endsWith('/type'))) {\n        testPatches.pushObject(this.createTestPatch(record, 'type', record.type));\n        if (\n          !data.some((patch) => patch.path.endsWith('/sourceCollectionId'))\n          && record.sourceCollection\n        ) {\n          testPatches.push(\n            this.createTestPatch(record, 'sourceCollectionId', record.sourceCollection?.id),\n          );\n        }\n      } else {\n        this.addMissingPatches(record, data);\n      }\n\n      if (this.isRecordChangingFromQueryOrApiToSimple(record)) {\n        this.addMissingPatches(record, data);\n      }\n    }\n\n    return [...testPatches, ...data];\n  }\n\n  static createPatchOperation(record, attribute, value) {\n    const frontAttributeOnly = [\n      'templateUrl',\n      'styleUrl',\n      'templateCode',\n      'styleCode',\n      'componentUrl',\n      'componentCode',\n    ];\n\n    const isFrontAttributeOnly = (attributeName) => frontAttributeOnly.includes(attributeName);\n\n    if (isFrontAttributeOnly(attribute)) return null;\n    if (!record.get(attribute)) {\n      if (!(attribute in record.toJSON())) {\n        return {\n          path: this.getPathForAttribute(record, attribute),\n          op: 'remove',\n        };\n      }\n    }\n\n    return super.createPatchOperation(record, attribute, value);\n  }\n\n  initRecordSpecificHeaders(snapshot) {\n    super.initRecordSpecificHeaders(snapshot);\n\n    if (snapshot?.record?.dashboard?.id) {\n      this.set('recordSpecificHeaders', {\n        'Forest-Dashboard-Id': snapshot.record.dashboard.get('id'),\n      });\n    }\n  }\n}\n","import LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\n\nexport default class CollectionAdapter extends LayoutPatchAdapter {\n  static getPathForAttribute(record, attribute) {\n    if (attribute === 'scope') {\n      return `${record.patchPath}/layout/${attribute}`;\n    }\n\n    return super.getPathForAttribute(record, attribute);\n  }\n}\n","import LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\n\nexport default class ColumnAdapter extends LayoutPatchAdapter {}\n","import LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\n\nexport default class CustomActionAdapter extends LayoutPatchAdapter {\n  static _areMigrationPatches(patches, usersAndRolesKey) {\n    return (\n      patches.any((patch) => patch.path.endsWith(usersAndRolesKey))\n      && patches.any((patch) => patch.op === 'remove' && patch.path.endsWith('/users'))\n    );\n  }\n\n  static _shouldNotBeGlobalUpdate(snapshot, patches, usersAndRolesKey) {\n    return (\n      patches.any((patch) => patch.path.endsWith(usersAndRolesKey))\n      && (!snapshot.record[usersAndRolesKey].userIds.hasDirtyAttributes\n        || !snapshot.record[usersAndRolesKey].roleIds.hasDirtyAttributes)\n    );\n  }\n\n  static _addPatchesForUsersAndRoles(snapshot, patches, usersAndRolesKey) {\n    if (CustomActionAdapter._areMigrationPatches(patches, usersAndRolesKey)) {\n      return;\n    }\n\n    if (CustomActionAdapter._shouldNotBeGlobalUpdate(snapshot, patches, usersAndRolesKey)) {\n      const patchToRemove = patches.find((patch) => patch.path.endsWith(usersAndRolesKey));\n      patches.removeObject(patchToRemove);\n    }\n\n    if (\n      !patches.any(\n        (patch) =>\n          patch.path.endsWith(usersAndRolesKey)\n          || patch.path.endsWith(`${usersAndRolesKey}/users`)\n          || patch.path.endsWith(`${usersAndRolesKey}/roles`),\n      )\n    ) {\n      if (snapshot.record[usersAndRolesKey]) {\n        const changedKeys = [];\n        if (snapshot.record[usersAndRolesKey].changedAttributes().userIds) {\n          changedKeys.push('users');\n        }\n        if (snapshot.record[usersAndRolesKey].changedAttributes().roleIds) {\n          changedKeys.push('roles');\n        }\n        const rootPath = this.getPathForAttribute(snapshot.record, usersAndRolesKey);\n\n        changedKeys.forEach((key) => {\n          const value = snapshot.record[usersAndRolesKey].toJSON()[key];\n          patches.pushObject({\n            path: `${rootPath}/${key}`,\n            op: 'replace',\n            value,\n          });\n        });\n      }\n    }\n  }\n\n  static getPatchBody(snapshot) {\n    const patches = super.getPatchBody(snapshot);\n\n    // NOTICE: When migrating to the new smart action format we need to remove users and approvers\n    if (\n      snapshot.record.changedAttributes().restrictedTo\n      && (!snapshot.record.changedAttributes().restrictedTo[0]\n        || !snapshot.record.changedAttributes().restrictedTo[1])\n    ) {\n      patches.push(this.createPatchOperation(snapshot.record, 'users', null));\n      patches.push(this.createPatchOperation(snapshot.record, 'approvers', null));\n    }\n\n    this._addPatchesForUsersAndRoles(snapshot, patches, 'restrictedTo');\n    this._addPatchesForUsersAndRoles(snapshot, patches, 'approvedBy');\n\n    return patches;\n  }\n\n  static createPatchOperation(record, attribute, value) {\n    if (!value) {\n      if (attribute === 'users' || attribute === 'approvers') {\n        return {\n          path: this.getPathForAttribute(record, attribute),\n          op: 'remove',\n        };\n      }\n    }\n\n    return super.createPatchOperation(record, attribute, value);\n  }\n}\n","import LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\n\nexport default class Dashboard extends LayoutPatchAdapter {}\n","import AdapterError from '@ember-data/adapter/error';\n\nimport { ERROR_ACCESS_RESOURCE_FORBIDDEN } from 'client/config/errors';\n\nexport default class ForbiddenLoginResourceAccessError extends AdapterError {\n  /**\n   * @param {{\n   *   organizationName: string;\n   *   resourceRequiresSso: boolean;\n   *   message: string;\n   * }} params\n   */\n  constructor({ organizationName, resourceRequiresSso, message }) {\n    super();\n    this.name = 'ForbiddenLoginResourceAccessError';\n    this.message = message;\n    this.options = { description: message };\n    this.meta = {\n      organizationName,\n      resourceRequiresSso,\n    };\n    this.type = ERROR_ACCESS_RESOURCE_FORBIDDEN;\n  }\n}\n","import { AdapterError } from 'client/utils/errors';\n\nconst ERROR_MESSAGE = 'Unauthorized ip address';\n\nexport default class UnauthorizedIpAddressError extends AdapterError {\n  public readonly projectId: number | string;\n  public readonly environmentId: number | string;\n\n  constructor({\n    environmentId,\n    projectId,\n  }: {\n    environmentId: number | string;\n    projectId: number | string;\n  }) {\n    const errors = [{ detail: ERROR_MESSAGE, status: 403 }];\n\n    // The constructor of AdapterError expects an array of errors and a message but is badly defined in the types\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    super(errors, ERROR_MESSAGE);\n\n    this.name = 'UnauthorizedIpAddressError';\n    this.projectId = projectId;\n    this.environmentId = environmentId;\n  }\n}\n","import LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\n\nexport default class FieldAdapter extends LayoutPatchAdapter {}\n","import { guidFor } from '@ember/object/internals';\n\nimport ApplicationAdapter from 'client/data/adapters/application';\n\nexport default class Filter extends ApplicationAdapter {\n  createRecord(store, type, snapshot) {\n    return Filter._fakeReply(store, type, snapshot);\n  }\n\n  updateRecord(store, type, snapshot) {\n    return Filter._fakeReply(store, type, snapshot);\n  }\n\n  static _fakeReply(store, type, snapshot) {\n    const data = {};\n    const serializer = store.serializerFor(type.modelName);\n    snapshot.id = snapshot.id || guidFor(snapshot);\n    serializer.serializeIntoHash(data, type, snapshot, { includeId: true });\n    if (data.data.relationships?.conditions?.data) {\n      data.data.relationships.conditions.data.forEach((condition) => {\n        condition.id = condition.id || guidFor(condition);\n      });\n      const conditionsRelation = data.data.relationships.conditions;\n      data.included = conditionsRelation.data;\n      conditionsRelation.data = conditionsRelation.data.map((condition) => ({\n        id: condition.id,\n        type: 'conditions',\n      }));\n    }\n    return data;\n  }\n}\n","import type FolderModel from 'client/data/models/folder';\nimport type FolderChildFragment from 'client/data/models/folder-child';\n\nimport LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\n\nexport default class FolderAdapter extends LayoutPatchAdapter {\n  getLayoutPath() {\n    return `${this.host}/${this.namespace}/folders`;\n  }\n\n  static getPatchBody(snapshot: { record: FolderModel }) {\n    const { record } = snapshot;\n\n    // we don't want to keep these since we only update the rootFolder children properties\n    let patchBody = super\n      .getPatchBody(snapshot)\n      .filter(({ op, path }) => !(op === 'replace' && path.endsWith('/children')));\n\n    if ('children' in record.changedAttributes() && !record.isNew) {\n      patchBody.push(\n        ...this.createPatchesForArray(\n          (item: FolderChildFragment) => `${record.patchPath}/children/${item.id}`,\n          record,\n          'children',\n        ),\n      );\n\n      patchBody = patchBody.filter(\n        ({ op, path }) => !(op === 'replace' && path.endsWith('/subChildren')),\n      );\n\n      record.children.forEach((child) => {\n        if (child.subChildren) {\n          patchBody.push(\n            ...this.createPatchesForArray(\n              (item: FolderChildFragment) =>\n                `${record.patchPath}/children/${child.id}/subChildren/${item.id}`,\n              child,\n              'subChildren',\n            ),\n          );\n        }\n      });\n    }\n\n    return patchBody;\n  }\n}\n","import window from 'ember-window-mock';\n\nimport ApplicationAdapter from 'client/data/adapters/application';\n\nexport default class GuestAdapter extends ApplicationAdapter {\n  get headers() {\n    const headers = {};\n\n    if (window.mixpanel?.get_distinct_id) {\n      headers['forest-anonymous-id'] = window.mixpanel.get_distinct_id();\n    }\n\n    return headers;\n  }\n}\n","import { isArray } from '@ember/array';\nimport { service } from '@ember/service';\nimport { isEmpty, isNone } from '@ember/utils';\nimport JSONAPIAdapter from '@ember-data/adapter/json-api';\nimport { copy } from 'ember-copy';\n\nexport const queryParamPropertyName = (key) => {\n  return `__${key}QueryParams`;\n};\n\nexport const queryIdPropertyName = (key) => {\n  return `__${key}QueryId`;\n};\n\nexport const lastWasErrorPropertyName = (key) => {\n  return `__${key}LastWasError`;\n};\n\nexport const abortControllerPropertyName = (key) => {\n  return `__${key}AbortController`;\n};\n\nexport const stickyPropertyName = (key) => {\n  return `__${key}BelongsToSticky`;\n};\n\nconst evaluateFunctions = function (object, record) {\n  if (isArray(object)) {\n    object.forEach((element) => {\n      if (typeof element === 'object') {\n        evaluateFunctions(element, record);\n      }\n    });\n  } else if (!isNone(object)) {\n    Object.keys(object).forEach((key) => {\n      if (!Object.prototype.hasOwnProperty.call(object, key)) {\n        return;\n      }\n      const value = object[key];\n      if (typeof value === 'function') {\n        object[key] = value.apply(record);\n      } else if (typeof value === 'object') {\n        evaluateFunctions(value, record);\n      }\n    });\n  }\n};\n\nexport default class HasManyQueryAdapter extends JSONAPIAdapter {\n  /** @type {import('../../legacy/services/performance-warner').default} */\n  @service performanceWarner;\n\n  ajax(url, method, options) {\n    return this.performanceWarner.handle(super.ajax(url, method, options), url, {\n      ...options,\n      method,\n    });\n  }\n\n  findHasMany(store, snapshot, url, relationship) {\n    const { id, modelName: type } = snapshot;\n    const urlForHasManyQuery = this.urlPrefix(\n      url.replace(`/${id}/`, `/${encodeURIComponent(id)}/`),\n      this.buildURL(type, encodeURIComponent(id), null, 'findHasMany'),\n    );\n    const query = HasManyQueryAdapter.buildRelationshipQuery(snapshot, relationship);\n\n    const abortController = new AbortController();\n    const options = { data: query, signal: abortController.signal };\n    snapshot.record.set(abortControllerPropertyName(relationship.key), abortController);\n    return this.ajax(urlForHasManyQuery, 'GET', options);\n  }\n\n  findBelongsTo(store, snapshot, url, relationship) {\n    const { id, modelName: type } = snapshot;\n    const urlForHasManyQuery = this.urlPrefix(\n      url.replace(`/${id}/`, `/${encodeURIComponent(id)}/`),\n      this.buildURL(type, encodeURIComponent(id), null, 'findBelongsTo'),\n    );\n    const query = HasManyQueryAdapter.buildRelationshipQuery(snapshot, relationship);\n\n    const abortController = new AbortController();\n    const options = { data: query, signal: abortController.signal };\n    snapshot.record.set(abortControllerPropertyName(relationship.key), options);\n    return this.ajax(urlForHasManyQuery, 'GET', options);\n  }\n\n  static buildRelationshipQuery(snapshot, relationship) {\n    let data = {};\n\n    // add query parameters from the model mixin's query function\n    const queryParams = snapshot.record.get(queryParamPropertyName(relationship.key));\n    if (!isEmpty(queryParams)) {\n      data = copy(queryParams, true);\n    }\n\n    // add query parameters defined in the model itself by the 'parameters' option\n    const relationshipParams = relationship.options.parameters;\n    if (!isEmpty(relationshipParams)) {\n      Object.assign(data, relationshipParams);\n    }\n\n    // replace any functions in the data with their return value\n    evaluateFunctions(data, snapshot.record);\n    return data;\n  }\n}\n","import type InboxAssignmentModel from 'client/data/models/inbox-assignment';\nimport type { UnassignReasonEnum } from 'client/features/inbox/services/internal-business/inbox-manager';\n\nimport ApplicationAdapter from 'client/data/adapters/application';\n\ntype InboxAssignmentSnapshot = {\n  record: InboxAssignmentModel;\n  adapterOptions?: { reason?: UnassignReasonEnum; updateLastActionDate?: boolean };\n};\n\nexport default class InboxAssignmentAdapter extends ApplicationAdapter {\n  initRecordSpecificHeaders(snapshot: InboxAssignmentSnapshot) {\n    if (snapshot.record.inbox.teamId) {\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-ignore\n      // eslint-disable-next-line ember/classic-decorator-no-classic-methods\n      this.set('recordSpecificHeaders', {\n        'Forest-Inbox-Team-Id': snapshot.record.inbox.teamId,\n      });\n    }\n  }\n\n  // @ts-expect-error Issue with typescript\n  override urlForUpdateRecord(\n    id: string,\n    modelName: string,\n    snapshot: InboxAssignmentSnapshot,\n  ): string {\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    const baseUrl = super.urlForUpdateRecord(id, modelName, snapshot);\n    const { reason, updateLastActionDate } = snapshot.adapterOptions ?? {};\n\n    const params: string[] = [];\n    if (reason) params.push(`reason=${reason}`);\n    if (updateLastActionDate) params.push('updateLastActionDate=true');\n\n    return params.length ? `${baseUrl}?${params.join('&')}` : baseUrl;\n  }\n}\n","import type InboxModel from 'client/data/models/inbox';\n\nimport LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\n\nexport default class InboxAdapter extends LayoutPatchAdapter {\n  initRecordSpecificHeaders(snapshot: { record: InboxModel }) {\n    if (snapshot.record.teamId) {\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-ignore\n      this.set('recordSpecificHeaders', {\n        'Forest-Inbox-Team-Id': snapshot.record.teamId,\n      });\n    }\n  }\n}\n","import ApplicationAdapter from 'client/data/adapters/application';\n\nexport default class InvitationAdapter extends ApplicationAdapter {\n  async bulkCreate(store, modelName, serializedRecords) {\n    const url = `${this.host}/${this.namespace}/invitations`;\n\n    const response = await this.ajax(url, 'POST', {\n      data: { data: serializedRecords },\n    });\n\n    return response.data;\n  }\n}\n","import ApplicationAdapter from 'client/data/adapters/application';\n\nexport default class IPAdapter extends ApplicationAdapter {\n  namespace = 'api/me';\n}\n","import PatchAdapter from 'client/data/adapters/patch-adapter';\n\nexport default class LayoutPatchAdapter extends PatchAdapter {\n  getLayoutPath() {\n    return `${this.host}/${this.namespace}/layout`;\n  }\n\n  patchRecord(snapshot) {\n    const data = this.constructor.getPatchBody(snapshot);\n    if (!data || !data.length) {\n      return null;\n    }\n\n    return this.ajax(this.getLayoutPath(), 'PATCH', { data });\n  }\n\n  createRecord(store, type, snapshot) {\n    return this.patchRecord(snapshot);\n  }\n\n  updateRecord(store, type, snapshot) {\n    return this.patchRecord(snapshot);\n  }\n\n  deleteRecord(store, type, snapshot) {\n    return this.patchRecord(snapshot);\n  }\n\n  layoutBatchUpdate(store, type, records, fieldsToUpdate) {\n    // We need to allow edition of specific fields but also enable the creation or deletion of a complete record\n    const data = records\n      .map((record) =>\n        this.constructor\n          .getPatchBody({ record })\n          .filter(\n            ({ path }) =>\n              path === record.patchPath\n              || fieldsToUpdate.some((fieldName) =>\n                path.startsWith(`${record.patchPath}/${fieldName}`),\n              ),\n          ),\n      )\n      .flat();\n    if (!data || !data.length) {\n      return null;\n    }\n\n    return this.ajax(this.getLayoutPath(), 'PATCH', { data });\n  }\n}\n","import ApplicationAdapter from 'client/data/adapters/application';\n\nexport default class McpServerConfigAdapter extends ApplicationAdapter {\n  createRecord(\n    store: Parameters<typeof ApplicationAdapter.prototype.createRecord>[0],\n    type: Parameters<typeof ApplicationAdapter.prototype.createRecord>[1],\n    snapshot: Parameters<typeof ApplicationAdapter.prototype.createRecord>[2] & {\n      adapterOptions?: { mcpOAuthHeader?: Record<string, string> };\n    },\n  ) {\n    // Add MCP OAuth header if provided via adapterOptions\n    const mcpOAuthHeader = snapshot.adapterOptions?.mcpOAuthHeader;\n\n    if (mcpOAuthHeader) {\n      // eslint-disable-next-line @typescript-eslint/no-explicit-any\n      (this as any).set('recordSpecificHeaders', {\n        // eslint-disable-next-line @typescript-eslint/no-explicit-any\n        ...((this as any).recordSpecificHeaders || {}),\n        ...mcpOAuthHeader,\n      });\n    }\n\n    return super.createRecord(store, type, snapshot);\n  }\n}\n","import Adapter from '@ember-data/adapter';\n\nexport default class NestedDocumentAdapter extends Adapter {\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-ignore\n  async createRecord() {\n    return null;\n  }\n\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-ignore\n  async updateRecord() {\n    return null;\n  }\n\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-ignore\n  async deleteRecord() {\n    return null;\n  }\n}\n","import ApplicationAdapter from 'client/data/adapters/application';\n\nexport default class NotificationAdapter extends ApplicationAdapter {\n  namespace = 'api/me';\n}\n","import { isArray } from '@ember/array';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport ApplicationAdapter from 'client/data/adapters/application';\nimport AbstractNestedDocumentModel from 'client/data/models/abstract-nested-document-model';\nimport { uuidv4 } from 'client/utils/uuid-utils';\n\n/**\n * @typedef {{\n *   op: 'add' | 'replace' | 'test' | 'remove',\n *   path: string\n *   value?: unknown\n * }} PatchOperation\n */\n\nexport default class PatchAdapter extends ApplicationAdapter {\n  static getPathForAttribute(record, attribute) {\n    return `${record.patchPath}/${attribute}`;\n  }\n\n  static createTestPatch(record, attribute, value) {\n    return {\n      path: this.getPathForAttribute(record, attribute),\n      op: 'test',\n      value,\n    };\n  }\n\n  static createRemovePatchesForArray(getPatchPath, containerOfArray, arrayAttributeName) {\n    const changedArrayAttributes = containerOfArray.changedAttributes()[arrayAttributeName];\n    if (!changedArrayAttributes) return [];\n\n    const [oldItems, items] = changedArrayAttributes;\n\n    const itemPaths = items.map((item) => getPatchPath(item));\n    const deletedItems = oldItems.filter((item) => !itemPaths.includes(getPatchPath(item)));\n\n    return [\n      ...deletedItems.map((element) => ({\n        op: 'remove',\n        path: getPatchPath(element),\n      })),\n    ];\n  }\n\n  /**\n   *\n   * @param {*} getPatchPath\n   * @param {*} containerOfArray\n   * @param {*} arrayAttributeName\n   * @returns { PatchOperation[] }\n   */\n  static createPatchesForArray(getPatchPath, containerOfArray, arrayAttributeName) {\n    const changedArrayAttributes = containerOfArray.changedAttributes()[arrayAttributeName];\n    if (!changedArrayAttributes) return [];\n\n    const [oldItems] = containerOfArray.changedAttributes()[arrayAttributeName];\n    const items = containerOfArray[arrayAttributeName];\n    const oldItemPaths = oldItems.map((item) => getPatchPath(item));\n    const newItems = items.filter((item) => !oldItemPaths.includes(getPatchPath(item)));\n    const existingItems = items.filter(\n      (item) => !newItems.includes(item) && typeof item !== 'string',\n    );\n\n    return [\n      ...newItems.map((element) => ({\n        op: 'add',\n        path: `${this.getPathForAttribute(containerOfArray, arrayAttributeName)}/-`,\n        value: element?.toJSON ? element.toJSON() : element,\n      })),\n      ...this.createRemovePatchesForArray(getPatchPath, containerOfArray, arrayAttributeName),\n      ...existingItems.map((item) => this.getPatchBody({ record: item })).flat(),\n    ];\n  }\n\n  static createPatchOperation(record, attribute, value) {\n    if (!(attribute in record.toJSON())) {\n      return null;\n    }\n\n    const patchValue = PatchAdapter.handlePatchValue(record, attribute, value);\n\n    return {\n      path: this.getPathForAttribute(record, attribute),\n      op: 'replace',\n      value: patchValue,\n    };\n  }\n\n  /**\n   *\n   * @param {*} snapshot\n   * @param {*} propertiesToCheck\n   * @returns { PatchOperation[] }\n   */\n  static getPatchBody(snapshot, propertiesToCheck = null) {\n    const { record } = snapshot;\n    if (record.isDeleted) {\n      return [{ op: 'remove', path: snapshot.record.patchPath }];\n    }\n    if (record.isNew) {\n      if (!(record instanceof Fragment) && !(record instanceof AbstractNestedDocumentModel)) {\n        snapshot.record.id = snapshot.record.id || uuidv4();\n      }\n      const data = snapshot.record.toJSON();\n      return [\n        {\n          op: 'add',\n          path: snapshot.record.patchPath,\n          value: data,\n        },\n      ];\n    }\n\n    const changedAttributes = Object.keys(record.changedAttributes());\n    const changedRelationships = Object.keys(record.changedRelationships());\n\n    // NOTICE: Include nested dirty relationships\n    record.eachAttribute((attributeName) => {\n      if (record.get(attributeName)?.hasDirtyAttributes) {\n        if (!changedAttributes.includes(attributeName)) {\n          changedAttributes.pushObject(attributeName);\n        }\n      }\n    });\n\n    const patches = changedAttributes\n      .filter((attribute) => !propertiesToCheck || propertiesToCheck.includes(attribute))\n      .map((attribute) => this.createPatchOperation(record, attribute))\n      .filter(Boolean);\n    changedRelationships.forEach((relationship) => {\n      const { name, value } = record.getRelationshipPatchNameAndValue(relationship);\n      const patch = this.createPatchOperation(record, name, value);\n      if (patch) {\n        patches.push(patch);\n      }\n    });\n\n    return patches;\n  }\n\n  // NOTICE: Either use the provided value or retrieve the attribute one and try to serialize it.\n  static handlePatchValue(record, attribute, value) {\n    if (value === undefined) {\n      const attributeValue = record.get(attribute);\n      if (isArray(attributeValue)) {\n        return attributeValue.map((item) =>\n          item instanceof AbstractNestedDocumentModel ? item.toJSON() : item,\n        );\n      }\n      if (attributeValue?.toJSON) {\n        return attributeValue.toJSON();\n      }\n      if (attributeValue?.serialize) {\n        return attributeValue.serialize();\n      }\n      return attributeValue;\n    }\n    return value;\n  }\n}\n","import config from 'client/config/environment';\nimport LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\n\nexport default class Rendering extends LayoutPatchAdapter {\n  findRecord(store, type, id, snapshot) {\n    if (snapshot?.record?.get('isLoading')) {\n      return super.findRecord(store, type, id, snapshot);\n    }\n\n    // NOTICE: if reload is set to true, set a \"refreshCache=false\" to tell the server not to\n    //         regenerate a rendering cache (one is currently being computed).\n    return this.ajax(`${this.buildURL(type.modelName, id)}?refreshCache=false`, 'GET');\n  }\n\n  queryRecord(_store, _type, { projectName, environmentName, teamName }) {\n    return this.ajax(\n      `${config.APP.apiServerHost}/api/renderings/${encodeURIComponent(\n        projectName,\n      )}/${encodeURIComponent(environmentName)}/${encodeURIComponent(teamName)}`,\n      'GET',\n    );\n  }\n}\n","import { service } from '@ember/service';\n\nimport PatchAdapter from 'client/data/adapters/patch-adapter';\n\nexport default class RoleAdapter extends PatchAdapter {\n  @service lianaSession;\n\n  getRolePermissionsPath(roleId) {\n    return `${this.host}/${this.namespace}/roles/${roleId}/permissions`;\n  }\n\n  getRolePath(roleId) {\n    return `${this.host}/${this.namespace}/roles/${roleId}`;\n  }\n\n  static getPatchBodyForRolePermissions(snapshot) {\n    const { record } = snapshot;\n\n    const patches = [];\n\n    record.permissions.environments.forEach((environmentPermissions) => {\n      patches.pushObjects(this.getPatchBody({ record: environmentPermissions }, ['enabled']));\n      patches.pushObjects(\n        this.getPatchBody({\n          record: environmentPermissions.defaultPermissions.collectionPermissions,\n        }),\n      );\n      patches.pushObjects(\n        this.getPatchBody({\n          record: environmentPermissions.defaultPermissions.actionPermissions,\n        }),\n      );\n\n      environmentPermissions.collections.forEach((collectionPermissions) => {\n        patches.pushObjects(\n          this.getPatchBody({ record: collectionPermissions }, [\n            'browseEnabled',\n            'readEnabled',\n            'editEnabled',\n            'addEnabled',\n            'deleteEnabled',\n            'exportEnabled',\n          ]),\n        );\n\n        collectionPermissions.smartActions.forEach((smartActionPermissions) => {\n          patches.pushObjects(this.getPatchBody({ record: smartActionPermissions }));\n        });\n      });\n    });\n\n    return patches;\n  }\n\n  static getBodyForNameUpdate(record) {\n    return {\n      data: {\n        id: record.id,\n        type: 'roles',\n        attributes: {\n          name: record.name,\n        },\n        relationships: {\n          project: {\n            data: {\n              id: record.project.id,\n              type: 'projects',\n            },\n          },\n        },\n      },\n    };\n  }\n\n  updateRecord(store, type, snapshot) {\n    const { record } = snapshot;\n\n    // When editing the role we only wish to send the name\n    // this avoids sending the permissions for no reason\n    if (record.changedAttributes().name) {\n      const data = RoleAdapter.getBodyForNameUpdate(record);\n\n      return this.ajax(this.getRolePath(record.id), 'PUT', { data });\n    }\n\n    const data = this.constructor.getPatchBodyForRolePermissions(snapshot);\n    if (!data || !data.length) {\n      return null;\n    }\n\n    return this.ajax(this.getRolePermissionsPath(record.id), 'PATCH', { data });\n  }\n}\n","import LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\n\nexport default class RowCreateAdapter extends LayoutPatchAdapter {}\n","import LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\n\nexport default class RowEditAdapter extends LayoutPatchAdapter {\n  static isExplorerUpdate(row) {\n    const recordChangedAttributes = row.changedAttributes();\n    const isExplorerConfigurationAlreadyInitialized =\n      !!recordChangedAttributes.explorerConfiguration?.[0];\n\n    return (\n      row.explorerConfiguration?.hasDirtyAttributes && isExplorerConfigurationAlreadyInitialized\n    );\n  }\n\n  updateRecord(store, type, snapshot) {\n    const { record } = snapshot;\n\n    // We want to use the regular updateRecord if no change were made on explorerConfiguration.\n    // Morever, when the explorerConfiguration is being initialized it has to be done\n    // with the regular updateRecord function.\n    if (!RowEditAdapter.isExplorerUpdate(record)) {\n      return super.updateRecord(store, type, snapshot);\n    }\n\n    return super.updateRecord(store, type, { record: record.explorerConfiguration });\n  }\n\n  layoutBatchUpdate(store, type, records, ...remainingArgs) {\n    return super.layoutBatchUpdate(\n      store,\n      type,\n      records.map((record) =>\n        RowEditAdapter.isExplorerUpdate(record) ? record.explorerConfiguration : record,\n      ),\n      ...remainingArgs,\n    );\n  }\n}\n","import LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\nimport { commitRecord } from 'client/utils/model-utils';\n\nexport default class SegmentAdapter extends LayoutPatchAdapter {\n  async createRecord(store, type, snapshot) {\n    // NOTICE: We need to do this to mark the columns as saved when the segment is created\n    const { columns } = snapshot.record;\n    const result = await super.createRecord(store, type, snapshot);\n    columns.forEach((record) => commitRecord(record));\n\n    return result;\n  }\n\n  async updateRecord(store, type, snapshot) {\n    // NOTICE: We need to do this to mark the columns as saved when the segment is updated\n    const { columns } = snapshot.record;\n    const result = await super.updateRecord(store, type, snapshot);\n    columns.forEach((record) => commitRecord(record));\n\n    return result;\n  }\n}\n","import LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\n\nexport default class ViewEditAdapter extends LayoutPatchAdapter {\n  static getPatchBody(snapshot) {\n    const patches = super.getPatchBody(snapshot);\n    const { record } = snapshot;\n\n    // NOTICE: There is an issue in ember-data-model-fragments. The changedAttributes and\n    //         the hasDirtyAttributes on nested fragment that are not the fragment containing\n    //         the attribute that has been changed are wrongly set.\n    if (!patches.length && snapshot.record.hasDirtyAttributes && snapshot.record.summaryView) {\n      patches.push(this.createPatchOperation(record, 'summaryView'));\n    }\n\n    return patches;\n  }\n}\n","import LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\n\nexport default class ViewListAdapter extends LayoutPatchAdapter {\n  static createPatchOperation(record, attribute, value) {\n    const frontAttributeOnly = ['templateUrl', 'componentUrl', 'templateCode', 'componentCode'];\n    const isFrontAttributeOnly = (attributeName) => frontAttributeOnly.includes(attributeName);\n\n    if (isFrontAttributeOnly(attribute)) return null;\n    return super.createPatchOperation(record, attribute, value);\n  }\n}\n","import LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\n\nexport default class WorkflowAdapter extends LayoutPatchAdapter {\n  getLayoutPath() {\n    return `${this.host}/${this.namespace}/workflows`;\n  }\n}\n","import LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\nimport { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\n\nexport default class WorkspaceComponentAdapter extends LayoutPatchAdapter {\n  static getPatchBodyForComponents(workspaceContainer) {\n    const data = [];\n\n    if ('componentIds' in workspaceContainer.changedAttributes() && !workspaceContainer.isNew) {\n      const componentIdsPatchPath = this.getPathForAttribute(workspaceContainer, 'componentIds');\n      data.push(\n        ...this.createPatchesForArray(\n          (componentId) => `${componentIdsPatchPath}/${componentId}`,\n          workspaceContainer,\n          'componentIds',\n        ),\n      );\n    }\n\n    return data;\n  }\n\n  static getPatchBodyForComponentSorted(snapshot) {\n    return super.getPatchBody(snapshot).sort((patchA, patchB) => {\n      if (patchA.path.endsWith('/options')) {\n        return -1;\n      }\n      if (patchB.path.endsWith('/options')) {\n        return 1;\n      }\n      return 0;\n    });\n  }\n\n  static getPatchBodyForSectionComponent(sectionComponent) {\n    return this.getPatchBodyForComponents(sectionComponent.options);\n  }\n\n  static getPatchBodyForTabsComponent(tabsComponent) {\n    const data = [];\n\n    tabsComponent.options.tabs.forEach((tab) => {\n      const patchBody = super\n        .getPatchBody({ record: tab })\n        .filter(({ op, path }) => !(op === 'replace' && path === `${tab.patchPath}/componentIds`));\n\n      data.pushObjects(patchBody);\n      data.pushObjects(this.getPatchBodyForComponents(tab));\n    });\n\n    const tabsPatchPath = this.getPathForAttribute(tabsComponent.options, 'tabs');\n    data.push(\n      ...this.createRemovePatchesForArray(\n        (tab) => `${tabsPatchPath}/${tab.tabId}`,\n        tabsComponent.options,\n        'tabs',\n      ),\n    );\n\n    return data;\n  }\n\n  static getPatchBodyForCollectionComponent(collectionComponent) {\n    if (\n      collectionComponent.options.changedAttributes().collectionId\n      || collectionComponent.options.changedAttributes().dataType\n      || collectionComponent.options.changedAttributes().sourceWorkspaceComponentId\n      || collectionComponent.options.changedAttributes().relatedDataFieldName\n    ) {\n      return [this.createPatchOperation(collectionComponent, 'options')];\n    }\n\n    const optionsPatches = super.getPatchBody({ record: collectionComponent.options });\n    const columnPatch = optionsPatches.find((patch) => patch.path.endsWith('/visibleColumns'));\n    if (columnPatch) {\n      optionsPatches.removeObject(columnPatch);\n      const visibleColumnsPatchPath = this.getPathForAttribute(\n        collectionComponent.options,\n        'visibleColumns',\n      );\n      optionsPatches.push(\n        ...this.createPatchesForArray(\n          (visibleColumn) => `${visibleColumnsPatchPath}/${encodeURIComponent(visibleColumn.name)}`,\n          collectionComponent.options,\n          'visibleColumns',\n        ),\n      );\n    }\n\n    const sourceCollectionKeyToTest =\n      collectionComponent.options.dataType === 'collection'\n        ? 'collectionId'\n        : 'relatedDataFieldName';\n\n    return [\n      this.createTestPatch(\n        collectionComponent.options,\n        sourceCollectionKeyToTest,\n        collectionComponent.options[sourceCollectionKeyToTest],\n      ),\n      ...optionsPatches,\n    ];\n  }\n\n  static getPatchBody(snapshot) {\n    const { record } = snapshot;\n    const data = this.getPatchBodyForComponentSorted(snapshot);\n\n    if (!record.isNew && !record.isDeleted && record.options.hasDirtyAttributes) {\n      const optionsPatch = data.firstObject?.path.endsWith('/options') ? data.shift() : undefined;\n\n      switch (record.type) {\n        case WorkspaceComponentTypeEnum.Tabs:\n          data.pushObjects(this.getPatchBodyForTabsComponent(record));\n          break;\n        case WorkspaceComponentTypeEnum.Section:\n          data.pushObjects(this.getPatchBodyForSectionComponent(record));\n          break;\n        case WorkspaceComponentTypeEnum.Collection:\n          data.pushObjects(this.getPatchBodyForCollectionComponent(record));\n          break;\n        default:\n          if (optionsPatch) {\n            data.push(optionsPatch);\n          }\n          break;\n      }\n    }\n\n    data.forEach((patch) => {\n      if (patch.path.includes('/options')) {\n        patch.polymorphic = record.type;\n      }\n    });\n\n    return data;\n  }\n}\n","import type StoreService from 'client/legacy/services/store';\n// eslint-disable-next-line ember/use-ember-data-rfc-395-imports\nimport type DS from 'ember-data';\n\nimport LayoutPatchAdapter from 'client/data/adapters/layout-patch-adapter';\nimport markPropertiesAsNotDirty from 'client/utils/model-utils';\n\nexport default class Workspace extends LayoutPatchAdapter {\n  async createRecord(store: StoreService, type: 'workspace', snapshot: DS.Snapshot<'workspace'>) {\n    const createdRecord = (await super.createRecord(store, type, snapshot)) as unknown;\n    snapshot.record.components.forEach((component) => {\n      markPropertiesAsNotDirty(component);\n    });\n\n    return createdRecord;\n  }\n}\n","import { attr } from '@ember-data/model';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport type ActionPermissionsAttributes = {\n  triggerEnabled: boolean;\n  approvalRequired: boolean;\n  selfApprovalEnabled: boolean;\n  userApprovalEnabled: boolean;\n};\n\nexport function getTrigger(self: Required<ActionPermissionsAttributes>) {\n  return self.triggerEnabled;\n}\n\nexport function getTriggerRequiresApproval(self: Required<ActionPermissionsAttributes>) {\n  return self.triggerEnabled && self.approvalRequired;\n}\n\nexport default class AbstractActionPermissionsFragment\n  extends Fragment\n  implements ActionPermissionsAttributes\n{\n  @attr('boolean') declare triggerEnabled: boolean;\n  @attr('boolean') declare approvalRequired: boolean;\n  @attr('boolean') declare selfApprovalEnabled: boolean;\n  @attr('boolean') declare userApprovalEnabled: boolean;\n\n  // Those \"triggerWithoutApproval\" and \"triggerRequiresApproval\" are needed as they are the 2 first\n  // columns displayed in the UI (calculated from the raw \"triggerEnabled\" and \"approvalRequired\").\n  get triggerAction(): boolean {\n    return getTrigger(this);\n  }\n\n  set triggerAction(value) {\n    this.triggerEnabled = value;\n\n    if (!value) {\n      this.triggerRequiresApproval = false;\n      this.selfApprovalEnabled = false;\n    }\n  }\n\n  get triggerRequiresApproval(): boolean {\n    return this.triggerEnabled && this.approvalRequired;\n  }\n\n  set triggerRequiresApproval(value) {\n    this.approvalRequired = value;\n\n    if (value) {\n      this.triggerEnabled = true;\n    } else {\n      this.selfApprovalAction = false;\n    }\n  }\n\n  get userApprovalAction(): boolean {\n    return this.userApprovalEnabled;\n  }\n\n  set userApprovalAction(value) {\n    this.userApprovalEnabled = value;\n\n    if (!value) {\n      this.selfApprovalAction = false;\n    }\n  }\n\n  get selfApprovalAction(): boolean {\n    return this.selfApprovalEnabled;\n  }\n\n  set selfApprovalAction(value) {\n    this.selfApprovalEnabled = value;\n  }\n}\n","import type Model from '@ember-data/model';\nimport type Field from 'client/data/models/field';\n\nimport HasManyQueryModel from 'client/data/models/has-many-query-model';\nimport { NotImplementedError } from 'client/utils/errors';\n\nexport default abstract class AbstractLayoutModel extends HasManyQueryModel {\n  // eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-unused-vars\n  toJSON(options?: { includeId?: boolean }): object {\n    throw new NotImplementedError('toJSON');\n  }\n\n  getRelationshipPatchNameAndValue<K extends keyof this & string>(\n    relationship: K,\n  ): { name: string; value: string | number | string[] | number[] } {\n    if (relationship.endsWith('Field') || relationship === 'field') {\n      return {\n        name: `${relationship}Name`,\n        value: this._getFieldName(relationship),\n      };\n    }\n    return {\n      name: `${relationship}Id`,\n      value: this._getRelationshipId(relationship),\n    };\n  }\n\n  _getRelationshipId<K extends keyof this & string>(attribute: K) {\n    return (this.get(attribute) as Model)?.id ?? null;\n  }\n\n  _getHasManyRelationshipIds<K extends keyof this>(attribute: K) {\n    const attributeValue = this.get(attribute) as Model[];\n    return attributeValue?.map((item) => item.id) ?? null;\n  }\n\n  _getFieldName<K extends keyof this & string>(attribute: K) {\n    return (this.get(attribute) as Field)?.fieldName ?? null;\n  }\n}\n","import Model from '@ember-data/model';\n\nimport { isNestedDocumentRelationship } from 'client/data/utils/nested-document-utils';\nimport { ArrayAttributeType } from 'client/decorators/array';\n\nexport default class AbstractModel extends Model {\n  static get relationshipNames() {\n    const relationshipNames = super.relationshipNames;\n    const { nestedAttributeNames } = this;\n    return {\n      hasMany: relationshipNames.hasMany.filter((name) => !nestedAttributeNames.includes(name)),\n      belongsTo: relationshipNames.belongsTo.filter((name) => !nestedAttributeNames.includes(name)),\n    };\n  }\n\n  static get nestedAttributes() {\n    const relationshipByNamesEntries = super.relationshipsByName?.entries() || [];\n    return (\n      [...relationshipByNamesEntries].filter(([, relationship]) =>\n        isNestedDocumentRelationship(relationship),\n      ) || []\n    );\n  }\n\n  static get transformedAttributes() {\n    const map = super.transformedAttributes;\n    this.nestedAttributes.forEach(([propertyName]) => {\n      map.delete(propertyName);\n    });\n    return map;\n  }\n\n  get nestedAttributes() {\n    return this.constructor.nestedAttributes;\n  }\n\n  static get nestedAttributeNames() {\n    return Array.from(this.nestedAttributes.map(([propertyName]) => propertyName));\n  }\n\n  changedRelationships() {\n    const changedRelationships = super.changedRelationships();\n\n    this.nestedAttributes.forEach(([propertyName]) => {\n      delete changedRelationships[propertyName];\n    });\n\n    return changedRelationships;\n  }\n\n  changedNestedAttributes() {\n    const changedRelationships = super.changedRelationships?.() || {};\n\n    return this.nestedAttributes.reduce(\n      (changedNestedAttributes, [propertyName, relationshipDefinition]) => {\n        if (relationshipDefinition.kind === 'hasMany') {\n          if (propertyName in changedRelationships) {\n            const [oldIds, newIds] = changedRelationships[propertyName];\n            const oldValue =\n              oldIds\n              && oldIds.map((id) =>\n                this.store.peekRecord(relationshipDefinition.type, id)?.toJSONPreviousState(),\n              );\n            const newValue =\n              newIds\n              && newIds.map((id) =>\n                this.store.peekRecord(relationshipDefinition.type, id)?.toJSON(),\n              );\n            changedNestedAttributes[propertyName] = [oldValue, newValue];\n          } else if (this[propertyName]?.any((item) => item.hasDirtyAttributes)) {\n            const oldValue = this[propertyName].map((item) => item.toJSONPreviousState());\n            const newValue = this[propertyName].map((item) => item.toJSON());\n            changedNestedAttributes[propertyName] = [oldValue, newValue];\n          }\n        } else if (propertyName in changedRelationships) {\n          const [oldId, newId] = changedRelationships[propertyName];\n          const oldValue =\n            oldId\n            && this.store.peekRecord(relationshipDefinition.type, oldId)?.toJSONPreviousState();\n          const newValue =\n            newId && this.store.peekRecord(relationshipDefinition.type, newId)?.toJSON();\n          changedNestedAttributes[propertyName] = [oldValue, newValue];\n        } else if (this[propertyName]?.hasDirtyAttributes) {\n          const oldValue = this[propertyName].toJSONPreviousState();\n          const newValue = this[propertyName].toJSON();\n          changedNestedAttributes[propertyName] = [oldValue, newValue];\n        }\n\n        return changedNestedAttributes;\n      },\n      {},\n    );\n  }\n\n  changedAttributes() {\n    const changedAttributes = super.changedAttributes();\n    super.constructor.eachAttribute((attributeName, meta) => {\n      if (attributeName in changedAttributes && meta.type === ArrayAttributeType) {\n        const [oldValue, newValue] = changedAttributes[attributeName];\n        changedAttributes[attributeName] = [\n          oldValue && JSON.parse(oldValue),\n          newValue && JSON.parse(newValue),\n        ];\n      }\n    });\n    return {\n      ...changedAttributes,\n      ...this.changedNestedAttributes(),\n    };\n  }\n\n  get hasDirtyAttributes() {\n    return super.hasDirtyAttributes || Object.keys(this.changedNestedAttributes()).length > 0;\n  }\n\n  rollbackAttributes() {\n    Object.keys(this.changedNestedAttributes()).forEach((propertyName) => {\n      if (typeof this[propertyName].forEach === 'function') {\n        this[propertyName].forEach((item) => item.rollbackAttributes());\n      } else {\n        this[propertyName].rollbackAttributes();\n      }\n    });\n    super.rollbackAttributes();\n  }\n\n  static eachAttribute(callback, binding) {\n    super.eachAttribute(callback, binding);\n    this.nestedAttributes.forEach(([propertyName, propertyDefinition]) => {\n      callback.call(binding, propertyName, propertyDefinition);\n    });\n  }\n\n  static get attributes() {\n    const attributes = super.attributes;\n    this.nestedAttributes.forEach(([nestedAttributeName, definition]) =>\n      attributes.set(nestedAttributeName, definition),\n    );\n    return attributes;\n  }\n}\n","import Model from 'client/data/models/abstract-model';\n\nexport default abstract class AbstractNestedDocumentModel extends Model {\n  public abstract toJSON(): Record<string, unknown>;\n\n  public toJSONPreviousState(): Record<string, unknown> {\n    const actualState = this.toJSON();\n\n    const changedAttributes = this.changedAttributes();\n    Object.entries(changedAttributes).forEach(([propertyName, [previousValue]]) => {\n      actualState[propertyName] = previousValue;\n    });\n\n    return actualState;\n  }\n}\n","import type ActionApprovalsCommentModel from 'client/data/models/action-approvals-comment';\nimport type Collection from 'client/data/models/collection';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type TeamModel from 'client/data/models/team';\nimport type UserModel from 'client/data/models/user';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type StoreService from 'client/legacy/services/store';\nimport type { CustomAsyncBelongsTo, CustomAsyncHasMany } from 'custom/utils';\n\nimport { equal } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { capitalize } from '@ember/string';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport interface ActionApprovalInputType {\n  name: string;\n  type: string;\n  value: unknown;\n}\n\nexport enum ActionApprovalStatusEnum {\n  Pending = 'pending',\n  Approved = 'approved',\n  Rejected = 'rejected',\n  Warning = 'warning',\n  InProgress = 'in-progress',\n  Failed = 'failed',\n}\n\nexport default class ActionApprovalModel extends AbstractModel {\n  @service currentUser: CurrentUserService;\n  @service declare store: StoreService;\n\n  @attr('string') declare status: `${ActionApprovalStatusEnum}`;\n  @attr('date') declare createdAt: Date;\n  @attr('date') declare updatedAt: Date;\n  @attr('date') declare closedAt: Date;\n  @attr('base') declare recordIds: string[];\n  @attr('string') declare actionName: string;\n  @attr('string') declare collectionName: string;\n  @attr('base') declare inputs: ActionApprovalInputType[];\n  @attr('boolean') declare canApprove: boolean;\n  @attr('string') declare signedApprovalRequest: string;\n  @attr('base') declare roleIdsAllowedToApprove: number[];\n  @attr('string') declare errorMessage: string;\n\n  @belongsTo('team', { async: true }) declare team: CustomAsyncBelongsTo<TeamModel>;\n  @belongsTo('user', { async: false }) declare approver: UserModel;\n  @belongsTo('user', { async: false }) declare requester: UserModel;\n\n  @hasMany('action-approvals-comment', { async: true })\n  declare comments: CustomAsyncHasMany<ActionApprovalsCommentModel>;\n\n  @equal('status', 'pending') declare isPending: boolean;\n  @equal('status', 'warning') declare isWarning: boolean;\n  @equal('status', 'approved') declare isApproved: boolean;\n  @equal('status', 'rejected') declare isRejected: boolean;\n\n  @tracked isBeingPerformed = false;\n\n  get isRequestedByCurrentUser() {\n    return this.requester?.id === this.currentUser.model?.id;\n  }\n\n  /**\n   * IMPORTANT\n   * We prefer to do this by hand to avoid mismatches of actionId and collectionId\n   * and also a lot of unneeded computation in the backend (loading rendering to remap those ids)\n   * Plus, those information are already loaded in the frontend so we make them synchronous\n   */\n\n  get action(): CustomActionModel {\n    return this.collection?.customActions.find(\n      (customAction) => customAction.name === this.actionName,\n    );\n  }\n\n  get collection(): Collection {\n    return this.store\n      .peekAll('collection')\n      .find((collection) => collection.name === this.collectionName);\n  }\n\n  get actionDisplayName() {\n    return this.action?.displayName ? this.action.displayName : capitalize(this.actionName || '');\n  }\n\n  get collectionDisplayName() {\n    return this.collection ? this.collection.displayName : capitalize(this.collectionName || '');\n  }\n\n  get isOrphaned() {\n    return !this.action;\n  }\n}\n","import type ActionApprovalModel from 'client/data/models/action-approval';\nimport type UserModel from 'client/data/models/user';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class ActionApprovalsCommentModel extends AbstractModel {\n  @attr('string') declare comment: string;\n  @attr('date', { defaultValue: () => new Date() }) declare createdAt: Date;\n\n  @belongsTo('user', { async: false, inverse: null }) declare author: UserModel;\n  @belongsTo('action-approval', { async: false })\n  declare approval: ActionApprovalModel;\n\n  get messageContent(): string {\n    return this.comment;\n  }\n}\n","import { computed } from '@ember/object';\nimport { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class ActionRequestModel extends AbstractModel {\n  @attr('base') declare ids: string[] | number[];\n  @attr('string') declare collectionName: string;\n  @attr('string') declare parentCollectionName: string;\n  @attr('string') declare parentCollectionId: string;\n  @attr('string') declare parentAssociationName: string;\n  @attr('boolean') declare allRecords: boolean;\n  @attr('base') declare allRecordsSubsetQuery: object;\n  @attr('base') declare allRecordsIdsExcluded: Array<string | number>;\n  @attr('string') declare smartActionId: string;\n  @attr('string') declare signedApprovalRequest: string;\n  @attr('base') declare actionIntentParams: object;\n\n  public selectedRecordsCount: number;\n\n  toJSON() {\n    return {\n      ids: this.ids,\n      collectionName: this.collectionName,\n      parentCollectionName: this.parentCollectionName,\n      parentCollectionId: this.parentCollectionId,\n      parentAssociationName: this.parentAssociationName,\n      allRecords: this.allRecords,\n      allRecordsSubsetQuery: this.allRecordsSubsetQuery,\n      allRecordsIdsExcluded: this.allRecordsIdsExcluded,\n      smartActionId: this.smartActionId,\n      signedApprovalRequest: this.signedApprovalRequest,\n      actionIntentParams: this.actionIntentParams,\n    };\n  }\n\n  @computed('signedApprovalRequest')\n  get isApproval() {\n    return Boolean(this.signedApprovalRequest);\n  }\n}\n","import type Collection from 'client/data/models/collection';\nimport type UserModel from 'client/data/models/user';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class ActivityLogModel extends AbstractModel {\n  @attr('string') declare label: string;\n  @attr('string') declare action: string;\n  @attr('date') declare createdAt: Date;\n  @attr('base') declare records: string[] | number[] | null;\n\n  @belongsTo('collection', { async: false }) declare collection: Collection;\n  @belongsTo('user', { async: false }) declare user: UserModel;\n  @belongsTo('user', { async: false, inverse: null }) declare targetUser: UserModel;\n}\n","import type Collection from 'client/data/models/collection';\nimport type Dashboard from 'client/data/models/dashboard';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type InboxModel from 'client/data/models/inbox';\nimport type ProjectModel from 'client/data/models/project';\nimport type Rendering from 'client/data/models/rendering';\nimport type WorkspaceModel from 'client/data/models/workspace';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport interface WorkflowLogs {\n  runId: number | string;\n  name: string;\n  stepName?: string;\n  optionName?: string;\n}\n\nexport default class ActivityLogsRequestModel extends AbstractModel {\n  @attr('string') declare type: string;\n  @attr('string') declare action: string;\n  @attr('string') declare label: string;\n  @attr('base') declare records: string[] | number[] | null;\n  @attr('number') declare timingInterface?: number | null;\n  @attr('number') declare timingRequest?: number | null;\n  @attr('base') declare workflow?: WorkflowLogs;\n\n  @belongsTo('rendering') declare rendering: Rendering;\n  @belongsTo('collection') declare collection: Collection;\n  @belongsTo('dashboard') declare dashboard: Dashboard;\n  @belongsTo('workspace') declare workspace: WorkspaceModel;\n  @belongsTo('inbox') declare inbox: InboxModel;\n  @belongsTo('project') declare project: ProjectModel;\n  @belongsTo('environment') declare environment: EnvironmentModel;\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class AiUserModel extends AbstractModel {\n  @attr('string') declare name: string;\n}\n","import { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class ApplicationTokenModel extends AbstractModel {\n  @attr('string') tokenHash;\n  @attr('string') token;\n  @attr('string') name;\n  @attr('date') createdAt;\n  @attr('date') lastUsed;\n  @attr('date') expiresAt;\n  @belongsTo('user') user;\n  @belongsTo('organization') organization;\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class AssigneeModel extends AbstractModel {\n  @attr('boolean') declare foundInDB: boolean;\n  @attr('string') declare firstName?: string;\n  @attr('string') declare lastName?: string;\n  @attr('base') declare role?: { id: number; name: string };\n  @attr('base') declare teams?: { id: number; name: string }[];\n  @attr('number') declare internalId?: number;\n\n  get email() {\n    return this.id;\n  }\n\n  get fullName() {\n    if (this.firstName || this.lastName) {\n      return [this.firstName, this.lastName].filter(Boolean).join(' ');\n    }\n    return this.email;\n  }\n\n  get teamsString() {\n    return this.teams.map((team) => team.name).join(', ');\n  }\n\n  get fullNameAndEmail() {\n    if (this.fullName === this.email) return `<${this.email}>`;\n    return `${this.fullName} <${this.email}>`;\n  }\n\n  get initials() {\n    const initials = [this.firstName, this.lastName]\n      .filter(Boolean)\n      .map((name) => name.substring(0, 1).toUpperCase())\n      .join('');\n    if (initials === '') {\n      return this.email[0].toUpperCase();\n    }\n    return initials;\n  }\n}\n","import type PlanModel from 'client/data/models/plan';\nimport type ProjectModel from 'client/data/models/project';\nimport type SubscriptionModel from 'client/data/models/subscription';\n\nimport { computed } from '@ember/object';\nimport { alias, and, equal, not } from '@ember/object/computed';\nimport { dasherize } from '@ember/string';\nimport { attr, belongsTo } from '@ember-data/model';\nimport { modelValidator } from 'ember-model-validator';\nimport moment from 'moment';\n\nimport AbstractModel from 'client/data/models/abstract-model';\nimport { PlanTypesEnum } from 'client/data/models/plan';\nimport { SubscriptionCommitmentsEnum } from 'client/data/models/subscription';\nimport { BILLING_DATEONLY_FORMAT } from 'client/utils/dates-default-format-variables';\nimport { EMAIL_REGEX } from 'client/utils/regex';\n\n@modelValidator\nexport default class BillingModel extends AbstractModel {\n  @attr('string') declare companyName: string;\n  @attr('string') declare email: string;\n  @attr('string') declare plan: string;\n  @attr('string') declare planInterval: string;\n  @attr('string') declare addressStreet1: string;\n  @attr('string') declare addressStreet2: string;\n  @attr('string') declare addressCity: string;\n  @attr('string') declare addressZipcode: string;\n  @attr('string') declare addressCountry: string;\n  @attr('string') declare vatNumber: string;\n  @attr('string') declare vatNumberType: string;\n  @attr('string') declare cardBrand: string;\n  @attr('string') declare cardHolderName: string;\n  @attr('string') declare cardNumber: string;\n  @attr('string') declare cardExpirationMonth: string;\n  @attr('string') declare cardExpirationYear: string;\n  @attr('string') declare cardCVV: string;\n  @attr('number') declare activitiesThisMonth: number;\n  @attr('number') declare estimatedMonthlyPrice: number;\n  @attr('string') declare defaultPaymentMethodId: string;\n\n  @belongsTo('project', { async: false }) declare project: ProjectModel;\n  @belongsTo('subscription', { async: false }) declare subscription: SubscriptionModel;\n\n  @equal('currentPlan.type', PlanTypesEnum.Community) declare isCommunity: boolean;\n  @equal('currentPlan.type', PlanTypesEnum.Starter) declare isStarter: boolean;\n  @equal('currentPlan.type', PlanTypesEnum.Plus) declare isPlus: boolean;\n  @equal('currentPlan.type', PlanTypesEnum.Enterprise) declare isEnterprise: boolean;\n  @equal('currentPlan.type', PlanTypesEnum.Grandfather) declare isGrandfather: boolean;\n  @equal('currentPlan', undefined) declare isWithoutPlan: boolean;\n  @alias('currentPlan.isTrial') declare isTrial: boolean;\n  @equal('subscription.commitment', SubscriptionCommitmentsEnum.Yearly) declare isYearly: boolean;\n\n  declare validate: () => boolean;\n\n  @computed('currentPlan', 'isCommunity', 'isTrial')\n  get isPaying() {\n    return !this.isCommunity && !this.isTrial && this.currentPlan;\n  }\n\n  @computed('subscription')\n  get isYearlyCommittedProject() {\n    const { subscription } = this;\n    return subscription?.commitment === 'yearly';\n  }\n\n  @not('isPaying') declare isFree: boolean;\n\n  @computed('isCommunity', 'isGrandfather', 'isTrial', 'isWithoutPlan')\n  get isAllowedToChooseCommitment() {\n    return this.isCommunity || this.isGrandfather || this.isTrial || this.isWithoutPlan;\n  }\n\n  @alias('subscription.plan') declare currentPlan: PlanModel;\n\n  @and('cardBrand', 'cardNumber', 'cardCVV', 'cardExpirationMonth', 'cardExpirationYear')\n  declare hasCardNumber: boolean;\n\n  @computed('cardNumber.length', 'hasCardNumber')\n  get cardLast4Digits() {\n    if (this.hasCardNumber) {\n      return this.cardNumber.substr(this.cardNumber.length - 4);\n    }\n    return null;\n  }\n\n  @computed('cardBrand')\n  get cardBrandImage() {\n    return dasherize(this.cardBrand?.toLowerCase());\n  }\n\n  @computed('subscription.renewalPlannedAt')\n  get renewalDate() {\n    return moment(this.subscription?.renewalPlannedAt).format(BILLING_DATEONLY_FORMAT as string);\n  }\n\n  validations = {\n    email: {\n      presence: true,\n      format: {\n        with: EMAIL_REGEX,\n      },\n    },\n    addressStreet1: {\n      presence: true,\n    },\n    addressZipcode: {\n      presence: true,\n    },\n    addressCity: {\n      presence: true,\n    },\n    addressCountry: {\n      presence: true,\n    },\n  };\n}\n","import type Environment from 'client/data/models/environment';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class BranchModel extends AbstractModel {\n  @attr('string') declare name: string;\n  @attr('date') declare closedAt?: Date | null;\n\n  @belongsTo('environment', { async: false }) declare environment: Environment;\n  // FIXME: remove the 2 comments below once Environment has been migrated to TS\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-ignore\n  @belongsTo('environment', { async: true, inverse: null }) declare originEnvironment: Environment;\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractNestedDocumentModel from 'client/data/models/abstract-nested-document-model';\n\nexport default class BrowserExtensionConfigurationCollectionSearchSettingModel extends AbstractNestedDocumentModel {\n  @attr('string') declare collectionName: string;\n  @attr('base') declare fieldNames: string[];\n\n  toJSON() {\n    return { collectionName: this.collectionName, fieldNames: this.fieldNames };\n  }\n}\n","import type BrowserExtensionConfigurationCollectionSearchSettingModel from 'client/data/models/browser-extension-configuration-collection-search-setting';\nimport type ProjectModel from 'client/data/models/project';\nimport type { SupportedSaasEnum } from 'client/features/browser-extension/services/internal-business/crawling-config';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\nimport arrayOfNestedDocument from 'client/decorators/array-of-nested-document';\n\nexport enum RequesterIdentifierEnum {\n  Name = 'Name',\n  Email = 'Email',\n  Phone = 'Phone',\n  Organization = 'Organization',\n  IntercomId = 'IntercomId',\n  Custom = 'Custom',\n}\n\nexport default class BrowserExtensionConfigurationModel extends AbstractModel {\n  @attr('string')\n  declare identifier: RequesterIdentifierEnum;\n\n  @attr('string') declare customIdentifierValue: string;\n\n  @attr('string')\n  declare configuredFromSaas: SupportedSaasEnum;\n\n  @attr('boolean', { defaultValue: true }) declare autoSelect: boolean;\n  @attr('boolean', { defaultValue: true }) declare enableAi: boolean;\n\n  @arrayOfNestedDocument('browser-extension-configuration-collection-search-setting')\n  declare searchSettings: BrowserExtensionConfigurationCollectionSearchSettingModel[];\n\n  @belongsTo('project', { async: false, inverse: null }) declare project: ProjectModel;\n\n  get hasOnlyOneSearchSetting() {\n    return this.searchSettings?.length === 1;\n  }\n\n  get isValidForSave(): boolean {\n    if (!this.project) return false;\n    if (this.autoSelect === undefined) return false;\n    if (this.searchSettings?.length < 1) return false;\n    if (this.searchSettings.any((collection) => !collection.collectionName)) return false;\n    // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n    if (this.identifier === RequesterIdentifierEnum.Custom && !this.customIdentifierValue)\n      return false;\n    return true;\n  }\n\n  toJSON() {\n    return {\n      searchSettings: this.searchSettings.map((setting) => setting.toJSON()),\n      autoSelect: this.autoSelect,\n      enableAi: this.enableAi,\n      identifier: this.identifier,\n      configuredFromSaas: this.configuredFromSaas,\n      customIdentifierValue: this.customIdentifierValue,\n    };\n  }\n\n  getFieldNames(collectionName: string) {\n    return (\n      this.searchSettings?.find(\n        (searchSettingsItem) => searchSettingsItem.collectionName === collectionName,\n      )?.fieldNames || []\n    );\n  }\n}\n","/* eslint-disable max-classes-per-file */\nimport type CollectionModel from 'client/data/models/collection';\nimport type DashboardModel from 'client/data/models/dashboard';\nimport type DisplaySettingsNestedDocument from 'client/data/models/display-settings';\nimport type FieldModel from 'client/data/models/field';\nimport type ViewEditModel from 'client/data/models/view-edit';\nimport type { ChartInterface, Stat } from 'client/decorators/model-chart';\n\nimport { alias } from '@ember/object/computed';\nimport { belongsTo } from '@ember-data/model';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\nimport modelChart from 'client/decorators/model-chart';\nimport nestedDocument from 'client/decorators/nested-document';\n\nclass BaseChart extends AbstractLayoutModel implements ChartInterface {\n  @nestedDocument('display-settings', {\n    defaultValue: {\n      x: 0,\n      y: 0,\n      width: 1,\n      height: 2,\n    },\n  })\n  declare displaySettings: DisplaySettingsNestedDocument;\n\n  @belongsTo('collection', { async: false, inverse: 'charts' })\n  declare sourceCollection: CollectionModel;\n\n  @belongsTo('field', { async: false, inverse: null }) declare labelField: FieldModel;\n  @belongsTo('field', { async: false, inverse: null }) declare relationshipField: FieldModel;\n  @belongsTo('field', { async: false, inverse: null }) declare aggregateField: FieldModel;\n  @belongsTo('field', { async: false, inverse: null }) declare groupByField: FieldModel;\n  @belongsTo('dashboard', { async: false, inverse: 'charts' }) declare dashboard: DashboardModel;\n  @belongsTo('view-edit', { async: false }) declare viewEdit: ViewEditModel;\n  @belongsTo('chart', { async: false, inverse: null })\n  declare numeratorChart: ChartInterface & { stat: Stat };\n\n  @belongsTo('chart', { async: false, inverse: null })\n  declare denominatorChart: ChartInterface & { stat: Stat };\n\n  @alias('viewEdit.collection') declare parentCollection: CollectionModel;\n\n  get patchPath() {\n    const id = this.isNew ? '-' : this.id;\n    const sourcePath = this.dashboard\n      ? `/dashboards/${this.dashboard?.id}`\n      : `/collections/${this.viewEdit?.collection?.id}/layout/viewEdit`;\n    return `${sourcePath}/charts/${id}`;\n  }\n\n  get registryNameBase() {\n    if (!this.id) {\n      return null;\n    }\n    return `${this.id.toLowerCase()}-smart-chart`;\n  }\n\n  get extraFieldsForJSON() {\n    return {\n      id: this.id,\n      displaySettings: this.displaySettings?.toJSON() || null,\n    };\n  }\n\n  get hasCollectionBeenDeleted() {\n    const changedRelationships = this.changedRelationships();\n    const changedAttributes = this.changedAttributes();\n    return (\n      !this.sourceCollection\n      && !changedRelationships.sourceCollection\n      && !this.isNew &&\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-ignore\n      this.aggregator\n      && (!changedAttributes.aggregator || changedAttributes.aggregator[0])\n    );\n  }\n}\n\nexport default class ChartModel extends modelChart()(BaseChart) {}\n","import type CollectionModel from 'client/data/models/collection';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class CollectionCapabilitiesModel extends AbstractModel {\n  @attr('boolean') declare supportGroups: boolean;\n  @attr('base') declare supportedDateOperations: string[];\n\n  @belongsTo('collection', { async: false, inverse: 'capabilities' })\n  declare collection: CollectionModel;\n}\n","import type Environment from 'client/data/models/environment';\nimport type FieldEnvironmentModel from 'client/data/models/field-environment';\nimport type { FilterableCollection } from 'client/utils/widgets';\n\nimport Model, { attr, belongsTo, hasMany } from '@ember-data/model';\n\n// These are models in the backend, but as Model is the base class\n// for all models, we named it CollectionModel\nexport default class CollectionEnvironmentModel extends Model implements FilterableCollection {\n  @belongsTo('environment', { async: false }) declare environment: Environment;\n\n  @hasMany('field-environment', { inverse: 'collection', async: false })\n  declare fields: FieldEnvironmentModel[];\n\n  @attr('string') declare name: string;\n  @attr('string') declare integration: string;\n  @attr('boolean') declare onlyForRelationships: boolean;\n  @attr('string') declare paginationType: 'page' | 'cursor';\n  @attr('boolean') declare isSmart: boolean;\n  @attr('boolean') declare isSearchable: boolean;\n\n  get displayName() {\n    return this.name;\n  }\n\n  // eslint-disable-next-line class-methods-use-this\n  get isEmbedded(): boolean {\n    return false;\n  }\n\n  get filterableFields(): FieldEnvironmentModel[] {\n    return this.fields.filter((field) => field.canFilter);\n  }\n}\n","import type CollectionEnvironmentModel from 'client/data/models/collection-environment';\nimport type EnvironmentPermissions from 'client/data/models/environment-permissions';\nimport type SmartActionPermissions from 'client/data/models/smart-action-permissions';\n\nimport { attr } from '@ember-data/model';\nimport { fragmentArray, fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport interface CollectionPermissions {\n  browseEnabled: boolean;\n  readEnabled: boolean;\n  editEnabled: boolean;\n  addEnabled: boolean;\n  deleteEnabled: boolean;\n  exportEnabled: boolean;\n}\n\nexport interface CollectionPermissionsAttributes extends CollectionPermissions {\n  collectionName: string;\n  smartActions: SmartActionPermissions[];\n}\n\nexport default class CollectionPermissionsFragment\n  extends Fragment\n  implements CollectionPermissionsAttributes\n{\n  @attr('string') declare collectionName: string;\n  @attr('boolean') declare browseEnabled: boolean;\n  @attr('boolean') declare readEnabled: boolean;\n  @attr('boolean') declare editEnabled: boolean;\n  @attr('boolean') declare addEnabled: boolean;\n  @attr('boolean') declare deleteEnabled: boolean;\n  @attr('boolean') declare exportEnabled: boolean;\n\n  @fragmentOwner() declare environmentPermissions: EnvironmentPermissions;\n\n  @fragmentArray('smart-action-permissions')\n  declare smartActions: SmartActionPermissions[];\n\n  get patchPath() {\n    return `/environments/${\n      this.environmentPermissions.environmentId\n    }/collections/${encodeURIComponent(this.collectionName)}`;\n  }\n\n  get collection(): CollectionEnvironmentModel {\n    return this.environmentPermissions.collectionEnvironments.findBy('name', this.collectionName);\n  }\n\n  toJSON() {\n    return {\n      collectionName: this.collectionName,\n      browseEnabled: this.browseEnabled,\n      readEnabled: this.readEnabled,\n      editEnabled: this.editEnabled,\n      addEnabled: this.addEnabled,\n      deleteEnabled: this.deleteEnabled,\n      exportEnabled: this.exportEnabled,\n      smartActions: this.smartActions.map((smartAction) => smartAction.toJSON()),\n    };\n  }\n}\n","import type Model from '@ember-data/model';\nimport type ActivityLog from 'client/data/models/activity-log';\nimport type Chart from 'client/data/models/chart';\nimport type CollectionCapabilitiesModel from 'client/data/models/collection-capabilities';\nimport type ColumnModel from 'client/data/models/column';\nimport type Comment from 'client/data/models/comment';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type Environment from 'client/data/models/environment';\nimport type Field from 'client/data/models/field';\nimport type Scope from 'client/data/models/fragment-scope';\nimport type InboxModel from 'client/data/models/inbox';\nimport type Mentionable from 'client/data/models/mentionable';\nimport type ModelCustomizationModel from 'client/data/models/model-customization';\nimport type Note from 'client/data/models/note';\nimport type Rendering from 'client/data/models/rendering';\nimport type Segment from 'client/data/models/segment';\nimport type ViewCreate from 'client/data/models/view-create';\nimport type ViewEdit from 'client/data/models/view-edit';\nimport type ViewList from 'client/data/models/view-list';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type { CollectionBaseInterface } from 'client/decorators/model-field';\nimport type CollectionBusinessService from 'client/legacy/services/business/collection';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type { CustomAsyncHasMany } from 'custom/utils';\n\nimport { computed } from '@ember/object';\nimport { alias, bool, filterBy, mapBy, sort } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { dasherize } from '@ember/string';\nimport { isPresent } from '@ember/utils';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\nimport { fragment } from 'ember-data-model-fragments/attributes';\nimport { pluralize, singularize } from 'ember-inflector';\nimport { modelValidator } from 'ember-model-validator';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\nimport { FolderTypeEnum } from 'client/data/models/folder-child';\nimport { PromiseObject } from 'client/utils/ember-promise';\nimport { getEmojiFromIcon } from 'client/utils/emoji-utils';\nimport SchemaUtils from 'client/utils/schema-utils';\nimport { namespace } from 'client/utils/string-utils';\n\nexport enum SortingOrderEnum {\n  Descending = 'descending',\n  Ascending = 'ascending',\n}\n\n@modelValidator\nexport default class CollectionModel\n  extends AbstractLayoutModel\n  implements CollectionBaseInterface\n{\n  @service declare currentUser: CurrentUserService;\n  @service('business/collection') declare collectionService: CollectionBusinessService;\n\n  @attr('string', {\n    defaultValue(that: CollectionModel) {\n      if (that.get('name')) {\n        const name = singularize(that.get('name'));\n        return name.charAt(0).toUpperCase() + name.slice(1);\n      }\n      return null;\n    },\n  })\n  declare displayName: string;\n\n  @attr('string') declare displayNamePlural: string;\n  @attr('string') declare name: string;\n  @attr('string') declare icon: string;\n  @attr('boolean') declare browseEnabled: boolean;\n  @attr('string') declare defaultSortingOrder: SortingOrderEnum;\n  @attr('boolean') declare restrictedToSegments: boolean;\n\n  // NOTICE: Static properties (Come from the model)\n  @attr('boolean') declare onlyForRelationships: boolean;\n  @attr('boolean') declare isSearchable: boolean;\n  @attr('boolean') declare isSmart: boolean;\n  @attr('string') declare paginationType: string;\n\n  @belongsTo('field', { async: false }) declare displayField: Field;\n  @belongsTo('field', { async: false }) declare defaultSortingField: Field;\n  @belongsTo('rendering', { async: false }) declare rendering: Rendering;\n  @belongsTo('view-edit', { async: false }) declare viewEdit: ViewEdit;\n  @belongsTo('view-create', { async: false }) declare viewCreate: ViewCreate;\n  // TODO: To remove once Field has been migrated to TS\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-ignore\n  @hasMany('field', { async: false, inverse: 'collection' }) declare fields: Field[];\n  @hasMany('column', { async: true }) declare columns: CustomAsyncHasMany<ColumnModel>;\n  @hasMany('custom-action', { async: false, inverse: 'collection' })\n  declare customActions: CustomActionModel[];\n\n  @hasMany('model-customization', { async: true })\n  declare modelCustomizations: CustomAsyncHasMany<ModelCustomizationModel>;\n\n  @hasMany('workflow', { async: false })\n  declare workflows: WorkflowModel[];\n\n  @hasMany('view-list', { async: true }) declare viewLists: CustomAsyncHasMany<ViewList>;\n  @hasMany('activity-log', { async: true }) declare activityLogs: CustomAsyncHasMany<ActivityLog>;\n  @hasMany('chart', { async: false }) declare charts: (Chart & Model)[];\n  @hasMany('segment', { async: false }) declare segments: Segment[];\n  @hasMany('inbox', { async: false }) declare inboxes: InboxModel[];\n  @hasMany('comment', { async: true }) declare comments: CustomAsyncHasMany<Comment>;\n  @hasMany('note', { async: true }) declare notes: CustomAsyncHasMany<Note>;\n  @hasMany('mentionable', { async: true }) declare mentionables: CustomAsyncHasMany<Mentionable>;\n  @fragment('fragment-scope') declare scope: Scope;\n\n  @belongsTo('collection-capabilities', { async: false })\n  declare capabilities: CollectionCapabilitiesModel;\n\n  @sort('viewLists', 'sortingByPosition') declare viewListsSorted: ViewList[];\n  @sort('customActions', 'sortingByPosition')\n  declare customActionsOrderedWithHidden: CustomActionModel[];\n\n  @sort('fields', 'sortingByDisplayName') declare fieldsSorted: Field[];\n\n  @mapBy('segments', 'position') declare segmentPositions: number[];\n\n  @filterBy('customActions', 'hasDirtyAttributes', true)\n  declare dirtyCustomActions: CustomActionModel[];\n\n  @filterBy('viewLists', 'hasDirtyAttributes', true) declare dirtyViewLists: ViewList[];\n  @filterBy('fields', 'isVirtual', true) declare virtualFields: Field[];\n  @filterBy('fields', 'isVirtual', false) declare realFields: Field[];\n  @filterBy('fieldsSorted', 'isAggregatable', true) declare aggregableFields: Field[];\n  @filterBy('fieldsSorted', 'shouldDisplayAsRow', true) declare plainFields: Field[];\n  @filterBy('segments', 'type', 'manual') declare segmentsManual: Segment[];\n  @filterBy('customActionsOrderedWithHidden', 'isVisible')\n  declare customActionsOrdered: CustomActionModel[];\n\n  @filterBy('customActionsOrdered', 'isUserAllowed')\n  declare customActionsOrderedForUser: CustomActionModel[];\n\n  @alias('restrictedToSegments') declare isRestrictedToSegments: boolean;\n  @bool('filterableFields.length') declare isFilterable: boolean;\n\n  isEmbedded = false;\n\n  @computed('icon')\n  get iconOrDefault() {\n    return getEmojiFromIcon(this.icon || 'database');\n  }\n\n  @computed('iconOrDefault', 'pluralizedDisplayName')\n  get displayNameWithEmoji() {\n    return `${this.iconOrDefault} ${this.pluralizedDisplayName}`;\n  }\n\n  @computed('name', 'currentUser.currentEnvironmentRolePermissions.collections')\n  get collectionPermissions() {\n    return this.currentUser.getCollectionPermissions(this.name);\n  }\n\n  @computed('browseEnabled', 'collectionPermissions.browseEnabled', 'currentUser.canEditLayout')\n  get isVisible() {\n    if (this.currentUser.canEditLayout) {\n      return this.browseEnabled;\n    }\n    return this.browseEnabled && this.currentUser.canBrowseCollection(this);\n  }\n\n  set isVisible(value: boolean) {\n    this.browseEnabled = value;\n  }\n\n  @computed('collectionPermissions.browseEnabled', 'currentUser')\n  get searchEnabled() {\n    return this.currentUser.canBrowseCollection(this);\n  }\n\n  @computed('id', 'rendering.mainFolder.children.position', 'shareableId')\n  get position() {\n    const mainFolderChildren = this.rendering?.mainFolder?.children || [];\n\n    return (\n      mainFolderChildren.find(\n        (item) =>\n          item.type === FolderTypeEnum.Collection\n          && (item.id === this.shareableId || item.id === this.id),\n      )?.position || 0\n    );\n  }\n\n  @computed('displayField.fieldName', 'primaryKey')\n  get displayFieldNameOrPrimaryKey() {\n    return this.displayField?.fieldName || this.primaryKey;\n  }\n\n  @computed('displayField', 'primaryField')\n  get displayFieldOrPrimaryField() {\n    return this.displayField || this.primaryField;\n  }\n\n  @computed('primaryField.fieldName')\n  get primaryKey() {\n    return this.primaryField?.fieldName || 'id';\n  }\n\n  @computed('fields')\n  get primaryField(): Field | undefined {\n    return (\n      this.fields.findBy('isPrimaryKey')\n      || this.fields.find(({ fieldName }) => ['id', '_id'].includes(fieldName.toLowerCase()))\n      || this.fields.find(({ fieldName }) => fieldName.toLowerCase() === 'uuid')\n    );\n  }\n\n  @computed('viewLists', 'viewLists[]')\n  get hasSmartViews() {\n    const promise = this.viewLists.then((views) => views.length > 1);\n    return PromiseObject.create({ promise });\n  }\n\n  @computed('displayName', 'displayNamePlural')\n  get singularizedDisplayName() {\n    if (!this.displayName && this.displayNamePlural) {\n      return singularize(this.displayNamePlural);\n    }\n    return this.displayNamePlural ? this.displayName : singularize(this.displayName);\n  }\n\n  @computed('displayName', 'displayNamePlural')\n  get pluralizedDisplayName() {\n    return this.displayNamePlural ? this.displayNamePlural : pluralize(this.displayName);\n  }\n\n  @computed('displayName', 'singularizedDisplayName')\n  get displayNameLowerCase() {\n    return this.singularizedDisplayName.toLowerCase();\n  }\n\n  @computed('pluralizedDisplayName')\n  get displayNamePluralLowerCase() {\n    return this.pluralizedDisplayName.toLowerCase();\n  }\n\n  @computed('fields.@each.filterActivated')\n  get filterableFields() {\n    return this.fields.sortBy('fieldName').filter((field) => field && field.filterActivated);\n  }\n\n  @computed('fields.@each.{filterActivated,relationship}')\n  get filterableFieldsWithoutRelationships(): Field[] {\n    return this.fields\n      .sortBy('fieldName')\n      .filter((field) => field && field.filterActivated && !SchemaUtils.isRelationship(field));\n  }\n\n  @computed('fields.@each.{isVirtual,relationship,type}', 'fieldsSorted')\n  get relationshipsHasManyNative() {\n    return this.fieldsSorted.filter(\n      (field) => field && !field.isVirtual && SchemaUtils.isHasManyRelationship(field),\n    );\n  }\n\n  get hasManyFields() {\n    return this.fieldsSorted.filter((field) => field.isHasMany || field.isEmbeddedHasMany);\n  }\n\n  @computed('viewLists.[]')\n  get tableView() {\n    const promise = this.viewLists.then((viewLists) => viewLists.findBy('name', 'table'));\n\n    return PromiseObject.create({ promise });\n  }\n\n  @computed('viewLists.@each.position')\n  get mainView() {\n    const promise = this.viewLists.then((viewLists) =>\n      viewLists.sortBy('position').get('firstObject'),\n    );\n\n    return PromiseObject.create({ promise });\n  }\n\n  @computed('mainView', 'columns')\n  get mainViewWithColumnsRetrieved() {\n    const promise = this.mainView.then((view: ViewList) => this.columns.then(() => view));\n\n    return PromiseObject.create({ promise });\n  }\n\n  @computed('name')\n  get emberModelName(): string | null {\n    return this.name ? namespace(singularize(dasherize(this.name)), '-') : null;\n  }\n\n  get segmentsVisibleSorted() {\n    return this.sortedSegments.filter(\n      (segment) =>\n        this.store.peekRecord('folder-child', segment.id)?.isVisible ?? segment.isVisible,\n    );\n  }\n\n  get sortedSegments() {\n    return this.segments\n      .filter((segment) => !segment.isOutsideOfCurrentRendering)\n      .sortBy('positionFromFolder');\n  }\n\n  @computed('sortedSegments', 'segments.@each.isNew')\n  get segmentsPersistedSorted() {\n    return this.sortedSegments.filter((segment) => !segment.get('isNew'));\n  }\n\n  @computed('displayFieldNameOrPrimaryKey')\n  get displayFieldWithNamespace() {\n    return namespace(this.displayFieldNameOrPrimaryKey, '-');\n  }\n\n  @computed('fields.[]')\n  get sortingFields() {\n    return this.fields\n      .filter((field) => !SchemaUtils.isHasManyRelationship(field) && field.get('isSortable'))\n      .sortBy('fieldName');\n  }\n\n  @computed('fields.@each.integration')\n  get integrations() {\n    return this.fields\n      .filter((field) => isPresent(field.get('integration')))\n      .mapBy('integration')\n      .uniq();\n  }\n\n  @computed('columns.@each.position')\n  get columnsOrdered() {\n    return this.collectionService.getColumnsOrdered(this.columns) as ColumnModel[];\n  }\n\n  @computed('columns.@each.{position,isVisible}')\n  get columnsVisibleOrdered() {\n    return this.collectionService.getColumnsVisibleOrdered(this.columns) as ColumnModel[];\n  }\n\n  @computed('defaultSortingField', 'defaultSortingOrder')\n  get defaultSortingFieldName() {\n    return this.collectionService.getDefaultSortingFieldNameWithOrderPrefix(\n      this.defaultSortingField,\n      this.defaultSortingOrder,\n    );\n  }\n\n  get patchPath() {\n    return `/collections/${this.id}`;\n  }\n\n  @computed('segmentPositions.length')\n  get segmentPositionsMax() {\n    if (!this.segmentPositions || !this.segmentPositions.length) return -1;\n    return Math.max(...this.segmentPositions);\n  }\n\n  @computed('viewEdit.rowEdits')\n  get viewEditFields() {\n    return this.viewEdit.rowEdits.map((row) => row.get('field')).sortBy('fieldName') as Field[];\n  }\n\n  @computed('name')\n  get shareableId(): string | null {\n    return this.name?.replace(/[/\\\\ :]/g, '@@@');\n  }\n\n  get environment(): Environment {\n    return this.rendering.environment;\n  }\n\n  get hasRelationship() {\n    return this.fields.toArray().some((field) => field.isRelationship);\n  }\n\n  toJSON(): {\n    id: string;\n    name: string;\n    displayName: string;\n    displayNamePlural: string;\n    icon: string;\n    browseEnabled: boolean;\n    defaultSortingOrder: SortingOrderEnum;\n    restrictedToSegments: boolean;\n    onlyForRelationships: boolean;\n    isSearchable: boolean;\n    isSmart: boolean;\n    paginationType: string;\n    displayFieldName: string;\n    defaultSortingFieldName: string;\n    scope: Record<string, unknown> | null;\n  } {\n    return {\n      id: this.id,\n      name: this.name,\n      displayName: this.displayName,\n      displayNamePlural: this.displayNamePlural,\n      icon: this.icon,\n      browseEnabled: this.browseEnabled,\n      defaultSortingOrder: this.defaultSortingOrder,\n      restrictedToSegments: this.restrictedToSegments,\n      onlyForRelationships: this.onlyForRelationships,\n      isSearchable: this.isSearchable,\n      isSmart: this.isSmart,\n      paginationType: this.paginationType,\n      displayFieldName: this._getFieldName('displayField'),\n      defaultSortingFieldName: this._getFieldName('defaultSortingField'),\n      scope: this.scope && this.scope.toJSON(),\n    };\n  }\n\n  sortingByPosition = ['position'];\n  sortingByDisplayName = ['displayName'];\n\n  validations = {\n    displayName: {\n      presence: {\n        if: (_key, _value, _this: CollectionModel) => _this.get('displayNamePlural') === '',\n      },\n    },\n    displayNamePlural: {\n      presence: {\n        if: (_key, _value, _this: CollectionModel) => _this.get('displayName') === '',\n      },\n    },\n  };\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type SegmentModel from 'client/data/models/segment';\n\nimport { alias } from '@ember/object/computed';\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\n\nexport default class ColumnModel extends AbstractLayoutModel {\n  @attr('number') declare position: number;\n  @attr('boolean') declare isVisible: boolean;\n\n  @belongsTo('field', { async: false }) declare field: FieldModel;\n  @belongsTo('collection', { async: false }) declare collection: CollectionModel;\n  @belongsTo('segment', { async: false }) declare segment: SegmentModel;\n\n  @alias('segment.collection') declare parentCollection: CollectionModel;\n\n  get patchPath() {\n    return this.segment\n      ? `/collections/${this.parentCollection.id}/layout/segments/${this.segment.id}/columns/${this.id}`\n      : `/collections/${this.collection.id}/layout/columns/${this.id}`;\n  }\n\n  toJSON() {\n    return {\n      id: this.id,\n      position: this.position,\n      isVisible: this.isVisible,\n      fieldName: this.field?.fieldName,\n    };\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type UserModel from 'client/data/models/user';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type { CustomAsyncBelongsTo, CustomAsyncHasMany } from 'custom/utils';\n\nimport { service } from '@ember/service';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class CommentModel extends AbstractModel {\n  @service declare currentUser: CurrentUserService;\n\n  @attr('string') declare content: string;\n  @attr('string') declare recordId: string;\n  @attr('date') declare createdAt: Date;\n  @attr('date') declare updatedAt: Date;\n\n  @belongsTo('collection') declare collection: CustomAsyncBelongsTo<CollectionModel>;\n  @belongsTo('user') declare author: CustomAsyncBelongsTo<UserModel>;\n  @hasMany('user') declare mentions: CustomAsyncHasMany<UserModel>;\n}\n","import type ConditionalRule from 'client/data/models/conditional-rule';\n\nimport { attr } from '@ember-data/model';\nimport { fragment, fragmentArray } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport enum ConditionalFormattingModeEnum {\n  Auto = 'auto',\n  Custom = 'custom',\n}\n\nexport interface ConditionalFormattingAttributes {\n  mode: ConditionalFormattingFragment;\n  isSwitchedOn: boolean;\n  rules: ConditionalRule[];\n  defaultRule: ConditionalRule;\n}\n\nexport default class ConditionalFormattingFragment\n  extends Fragment\n  implements ConditionalFormattingAttributes\n{\n  @attr('string', { defaultValue: 'auto' }) declare mode: ConditionalFormattingFragment;\n  @attr('boolean', { defaultValue: true }) declare isSwitchedOn: boolean;\n  @attr('boolean', { defaultValue: false }) declare shouldAutoFillMissingValues: boolean;\n  @fragmentArray('conditional-rule') declare rules: ConditionalRule[];\n  @fragment('conditional-rule') declare defaultRule: ConditionalRule;\n\n  // NOTICE: `toJSON` is used instead of `serialize` hook because `serialize` is not\n  //         available on fragment with layout-patch-adapter for now\n  toJSON() {\n    return {\n      mode: this.mode,\n      ...(this.rules.length ? { rules: this.rules.map((rule) => rule.toJSON()) } : {}),\n      ...(this.defaultRule ? { defaultRule: this.defaultRule.toJSON() } : {}),\n      shouldAutoFillMissingValues: this.shouldAutoFillMissingValues,\n    };\n  }\n}\n","import type { Operator } from 'client/utils/condition-utils';\n\nimport { attr } from '@ember-data/model';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport { oneOfType, optional, shape } from 'client/decorators/argument';\nimport ColorUtils from 'client/utils/color-utils';\nimport {\n  OPERATOR_CONTAINS,\n  OPERATOR_ENDS_WITH,\n  OPERATOR_IS,\n  OPERATOR_IS_AFTER,\n  OPERATOR_IS_AFTER_X_HOURS_FROM_NOW,\n  OPERATOR_IS_BEFORE,\n  OPERATOR_IS_GREATER_THAN,\n  OPERATOR_IS_IN_THE_FUTURE,\n  OPERATOR_IS_IN_THE_PAST,\n  OPERATOR_IS_LESS_THAN,\n  OPERATOR_IS_NOT,\n  OPERATOR_IS_THESE_X_DAYS_TO_DATE,\n  OPERATOR_IS_THIS_MONTH_TO_DATE,\n  OPERATOR_IS_THIS_QUARTER_TO_DATE,\n  OPERATOR_IS_THIS_WEEK_TO_DATE,\n  OPERATOR_IS_THIS_YEAR_TO_DATE,\n  OPERATOR_IS_TODAY,\n  OPERATOR_NOT_CONTAINS,\n  OPERATOR_STARTS_WITH,\n  OPERATOR_WAS_BEFORE_X_HOURS_AGO,\n  OPERATOR_WAS_IN_PREVIOUS_MONTH,\n  OPERATOR_WAS_IN_PREVIOUS_QUARTER,\n  OPERATOR_WAS_IN_PREVIOUS_WEEK,\n  OPERATOR_WAS_IN_PREVIOUS_X_DAYS,\n  OPERATOR_WAS_IN_PREVIOUS_YEAR,\n  OPERATOR_WAS_YESTERDAY,\n} from 'client/utils/condition-utils';\n\nexport const OPERATORS_FOR_CONDITIONAL_RULE_PER_TYPE = {\n  Enum: [OPERATOR_IS, OPERATOR_IS_NOT],\n  Number: [OPERATOR_IS, OPERATOR_IS_NOT, OPERATOR_IS_GREATER_THAN, OPERATOR_IS_LESS_THAN],\n  Date: [\n    OPERATOR_IS,\n    OPERATOR_IS_NOT,\n    OPERATOR_IS_BEFORE,\n    OPERATOR_IS_AFTER,\n    OPERATOR_IS_TODAY,\n    OPERATOR_WAS_YESTERDAY,\n    OPERATOR_WAS_IN_PREVIOUS_X_DAYS,\n    OPERATOR_WAS_IN_PREVIOUS_WEEK,\n    OPERATOR_WAS_IN_PREVIOUS_MONTH,\n    OPERATOR_WAS_IN_PREVIOUS_QUARTER,\n    OPERATOR_WAS_IN_PREVIOUS_YEAR,\n    OPERATOR_IS_THESE_X_DAYS_TO_DATE,\n    OPERATOR_IS_THIS_WEEK_TO_DATE,\n    OPERATOR_IS_THIS_MONTH_TO_DATE,\n    OPERATOR_IS_THIS_QUARTER_TO_DATE,\n    OPERATOR_IS_THIS_YEAR_TO_DATE,\n    OPERATOR_IS_IN_THE_PAST,\n    OPERATOR_IS_IN_THE_FUTURE,\n    OPERATOR_WAS_BEFORE_X_HOURS_AGO,\n    OPERATOR_IS_AFTER_X_HOURS_FROM_NOW,\n  ],\n  Dateonly: [\n    OPERATOR_IS,\n    OPERATOR_IS_NOT,\n    OPERATOR_IS_BEFORE,\n    OPERATOR_IS_AFTER,\n    OPERATOR_IS_TODAY,\n    OPERATOR_WAS_YESTERDAY,\n    OPERATOR_WAS_IN_PREVIOUS_X_DAYS,\n    OPERATOR_WAS_IN_PREVIOUS_WEEK,\n    OPERATOR_WAS_IN_PREVIOUS_MONTH,\n    OPERATOR_WAS_IN_PREVIOUS_QUARTER,\n    OPERATOR_WAS_IN_PREVIOUS_YEAR,\n    OPERATOR_IS_THESE_X_DAYS_TO_DATE,\n    OPERATOR_IS_THIS_WEEK_TO_DATE,\n    OPERATOR_IS_THIS_MONTH_TO_DATE,\n    OPERATOR_IS_THIS_QUARTER_TO_DATE,\n    OPERATOR_IS_THIS_YEAR_TO_DATE,\n    OPERATOR_IS_IN_THE_PAST,\n    OPERATOR_IS_IN_THE_FUTURE,\n    OPERATOR_WAS_BEFORE_X_HOURS_AGO,\n    OPERATOR_IS_AFTER_X_HOURS_FROM_NOW,\n  ],\n  String: [\n    OPERATOR_IS,\n    OPERATOR_IS_NOT,\n    OPERATOR_STARTS_WITH,\n    OPERATOR_ENDS_WITH,\n    OPERATOR_CONTAINS,\n    OPERATOR_NOT_CONTAINS,\n  ],\n};\n\nexport enum ConditionalRuleDisplayTypeEnum {\n  Badge = 'badge',\n  Font = 'font',\n}\n\nexport interface ConditionalRuleAttributes {\n  operator: Operator;\n  value: string | null;\n  displayType: ConditionalRuleDisplayTypeEnum;\n  color: string;\n}\n\nexport default class ConditionalRuleFragment extends Fragment implements ConditionalRuleAttributes {\n  @attr('base') declare operator: Operator;\n\n  @attr('string', { defaultValue: '' }) declare value: string | null;\n  @attr('string', { defaultValue: ConditionalRuleDisplayTypeEnum.Badge })\n  declare displayType: ConditionalRuleDisplayTypeEnum;\n\n  @attr('string', {\n    defaultValue() {\n      return ColorUtils.randomColor();\n    },\n  })\n  declare color: string;\n\n  get operatorNeedsValue() {\n    return !!this.operator && !this.operator.doesNotNeedValue;\n  }\n\n  get valueComponent() {\n    return this.operator?.valueComponent || 'form/form-base';\n  }\n\n  toJSON() {\n    const data = {\n      displayType: this.displayType,\n      color: this.color,\n    };\n\n    if (this.operator) {\n      return {\n        ...data,\n        operator: this.operator.name,\n        ...(this.operatorNeedsValue ? { value: this.value } : {}),\n      };\n    }\n\n    return data;\n  }\n}\n\nexport const ConditionalRuleSchema = shape({\n  operator: optional(\n    shape({\n      displayName: String,\n      name: String,\n      compute: Function,\n    }),\n  ),\n  value: optional(oneOfType([String, Number, shape()])),\n  displayType: String,\n  color: String,\n});\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class CouponModel extends AbstractModel {\n  @attr('string') declare code: string;\n  @attr('number') declare trialExtension: number;\n}\n","import type WidgetConfigurationFragment from 'client/data/models/widget-configuration';\nimport type { NestedFieldAttributes } from 'client/decorators/model-field';\n\nimport { attr } from '@ember-data/model';\n\nimport ActionRequestModel from 'client/data/models/action-request';\nimport { array } from 'client/decorators/array';\n\nexport interface AgentActionField {\n  field: string;\n  type: NestedFieldAttributes['type'] | null;\n  reference: string | null;\n  enums: string[] | null;\n  description: string | null;\n  isRequired: boolean | null;\n  value: unknown;\n  previousValue: unknown;\n  searchValue: string;\n  widgetEdit: WidgetConfigurationFragment;\n  isReadOnly: boolean | null;\n  hook: string;\n}\n\nexport default class CustomActionHookRequestModel extends ActionRequestModel {\n  @array('base') declare fields: AgentActionField[];\n  @attr('string') declare changedField: string;\n  @attr('string') declare searchField: string;\n}\n","import { attr } from '@ember-data/model';\n\nimport ActionRequestModel from 'client/data/models/action-request';\n\nexport default class CustomActionRequestModel extends ActionRequestModel {\n  @attr('base') declare values: Record<string, unknown>;\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class CustomActionValuesRequestModel extends AbstractModel {\n  @attr('base') declare values: Record<string, unknown>;\n}\n","import type Model from '@ember-data/model';\nimport type ActionRequest from 'client/data/models/action-request';\nimport type Collection from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type {\n  FormElementComponentEnum,\n  UnionFormElementNestedDocument,\n} from 'client/data/models/form-element';\nimport type Segment from 'client/data/models/segment';\nimport type SmartActionPermissions from 'client/data/models/smart-action-permissions';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type { HttpMethod } from 'client/shared/types/http';\nimport type { CustomAsyncBelongsTo, CustomAsyncHasMany } from 'custom/utils';\n\nimport { deprecate } from '@ember/debug';\nimport { computed } from '@ember/object';\nimport { equal, filterBy } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { dasherize } from '@ember/string';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\nimport arrayOfNestedDocument from 'client/decorators/array-of-nested-document';\nimport { ButtonTypeEnum } from 'client/utils/color-utils';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\nconst HAS_MANY_RELATIONSHIPS_PATCHABLE = ['segments'];\n\nexport interface Hooks {\n  load: boolean;\n  change: string[];\n}\n\nexport enum ActionTypeEnum {\n  Bulk = 'bulk',\n  Global = 'global',\n  Single = 'single',\n}\n\ntype FormLayoutElement = {\n  component: string;\n};\n\ninterface FormLayoutElementSeparator extends FormLayoutElement {\n  component: FormElementComponentEnum.Separator;\n}\n\ninterface FormLayoutElementHtmlBlock extends FormLayoutElement {\n  component: FormElementComponentEnum.HtmlBlock;\n  content: string;\n}\n\nexport interface FormLayoutElementRow extends FormLayoutElement {\n  component: FormElementComponentEnum.Row;\n  fields: FieldReference[];\n}\n\nexport interface FormLayoutElementPage extends FormLayoutElement {\n  component: FormElementComponentEnum.Page;\n  nextButtonLabel?: string;\n  previousButtonLabel?: string;\n  elements: FormElement[];\n}\n\nexport interface FieldReference extends FormLayoutElement {\n  component: FormElementComponentEnum.Input;\n  fieldId: string;\n}\n\nexport type FormElement =\n  | FieldReference\n  | FormLayoutElementSeparator\n  | FormLayoutElementHtmlBlock\n  | FormLayoutElementRow\n  | FormLayoutElementPage;\n\nexport function getFormElementType(\n  data: FormElement,\n):\n  | 'form-element-input'\n  | 'form-element-row'\n  | 'form-element-html-block'\n  | 'form-element-page'\n  | 'form-element-separator' {\n  return `form-element-${'component' in data ? dasherize(data.component as string) : ''}` as\n    | 'form-element-input'\n    | 'form-element-row'\n    | 'form-element-html-block'\n    | 'form-element-page'\n    | 'form-element-separator';\n}\n\nexport function getButtonTypeOrDefault(buttonType: ButtonTypeEnum | null) {\n  return buttonType === ButtonTypeEnum.Neutral ? 'ghost' : buttonType || ButtonTypeEnum.Primary;\n}\n\nexport function arrayOfFormElements() {\n  return arrayOfNestedDocument<FormElement>('form-element', {\n    polymorphic: true,\n    type: (data: object) => getFormElementType(data as FormElement),\n  });\n}\n\nexport default class CustomActionModel extends AbstractLayoutModel {\n  @service declare currentUser: CurrentUserService;\n\n  @attr('string') declare name: string;\n  @attr('string') declare displayName: string;\n  @attr('string') declare baseUrl: string;\n  @attr('string') declare endpoint: string | null;\n  @attr('string') declare description: string | null;\n  @attr('string') declare submitButtonLabel: string | null;\n  @attr('string') declare httpMethod: HttpMethod;\n  @attr('string') declare type: ActionTypeEnum;\n  @attr('boolean') declare redirect: boolean;\n  @attr('boolean') declare confirmation: boolean;\n  @attr('boolean') declare download: boolean;\n  @attr('boolean') declare isVisible: boolean;\n  @attr('number') declare position: number;\n  @attr('base') declare hooks: Hooks;\n  @arrayOfFormElements()\n  declare formElements: UnionFormElementNestedDocument[];\n\n  @arrayOfFormElements()\n  declare layout: UnionFormElementNestedDocument[]; // used when receiving non dynamic action forms layout\n\n  @attr('string', { defaultValue: ButtonTypeEnum.Primary })\n  declare buttonType: ButtonTypeEnum;\n\n  @belongsTo('collection', { async: true }) declare collection: CustomAsyncBelongsTo<Collection>;\n  @belongsTo('action-request', { async: false }) declare actionRequest?: ActionRequest | null;\n  @hasMany('segment', { async: true }) declare segments: CustomAsyncHasMany<Segment>;\n  @hasMany('field', { async: false }) declare fields: FieldModel[];\n\n  @equal('type', 'bulk') declare isBulk: boolean;\n  @equal('type', 'global') declare isGlobal: boolean;\n  @equal('type', 'single') declare isSingle: boolean;\n  @equal('segments.length', 0) declare isNotRestrictedToSegments: boolean;\n  @filterBy('segments', 'query') declare liveQuerySegments: CustomAsyncHasMany<Segment>;\n  @filterBy('segments', 'isSmart') declare smartSegments: CustomAsyncHasMany<Segment>;\n\n  fieldsSorting = ['position'];\n\n  get displayedFields() {\n    return this.fields.filter((field) => !field.isDeleted);\n  }\n\n  get fieldsOrdered() {\n    return this.displayedFields.sortBy('position');\n  }\n\n  getBaseLayout(\n    fields: { fieldName: string }[] = this.fieldsOrdered,\n  ): UnionFormElementNestedDocument[] {\n    const formElementInputs = this.store.peekAll('form-element-input');\n    return fields.map(\n      ({ fieldName }) =>\n        formElementInputs.find(\n          (element) => element.component === 'input' && element.fieldId === fieldName,\n        )\n        || this.store.createRecord('form-element-input', {\n          component: 'input',\n          fieldId: fieldName,\n        }),\n    );\n  }\n\n  @computed(\n    'name',\n    'collection.name',\n    'currentUser.currentEnvironmentRolePermissions.collections.@each.smartActions',\n  )\n  get smartActionPermissions(): SmartActionPermissions | null | undefined {\n    return this.currentUser.getSmartActionPermissions(this.collection.get('name') || '', this.name);\n  }\n\n  @computed(\n    'currentUser',\n    'restrictedTo.roleIds.[]',\n    'restrictedTo.userIds.[]',\n    'smartActionPermissions.triggerEnabled',\n  )\n  get isUserAllowed() {\n    return this.currentUser.canTriggerSmartAction(this.smartActionPermissions);\n  }\n\n  @computed('currentUser', 'smartActionPermissions.{approvalRequired,triggerEnabled}')\n  get isApprovalRequired() {\n    return this.currentUser.canTriggerSmartActionWithApproval(this.smartActionPermissions);\n  }\n\n  @computed('isVisible')\n  get isHidden() {\n    return !this.isVisible;\n  }\n\n  set isHidden(value) {\n    // NOTICE: deprecation is set here as `isHidden` is a computed property\n    deprecate('Do not set isHidden', false, {\n      id: 'customAction.isHidden',\n      until: '2.0.0',\n      since: { available: '1.0.0' },\n      for: 'forestadmin',\n    });\n    this.set('isVisible', !value);\n  }\n\n  get buttonTypeOrDefault() {\n    return getButtonTypeOrDefault(this.buttonType);\n  }\n\n  get patchPath() {\n    return `/collections/${this.collection.get('id') || ''}/layout/actions/${this.id}`;\n  }\n\n  get hasDisplayedFieldsOrFormElements() {\n    return this.displayedFields.length > 0 || this.formElements?.length > 0;\n  }\n\n  toJSON() {\n    return {\n      id: this.id,\n      position: this.position,\n      displayName: this.displayName,\n      isVisible: this.isVisible,\n      confirmation: this.confirmation,\n      segments: this._getHasManyRelationshipIds('segments'),\n      buttonType: this.buttonType,\n    };\n  }\n\n  getRelationshipPatchNameAndValue<K extends keyof this & string>(relationship: K) {\n    if (HAS_MANY_RELATIONSHIPS_PATCHABLE.includes(relationship)) {\n      const hasManyRelationshipIds: string[] | number[] =\n        this._getHasManyRelationshipIds(relationship);\n      return {\n        name: relationship,\n        value: hasManyRelationshipIds,\n      };\n    }\n    return super.getRelationshipPatchNameAndValue(relationship);\n  }\n\n  static relationshipIdsToNumbers(relationshipIds: string[]) {\n    return relationshipIds.map((relationshipId) => Number.parseInt(relationshipId, 10));\n  }\n\n  // reset smart action form with the original fields\n  async resetFields() {\n    const changedRelationships = this.changedRelationships<'HasMany'>();\n    const changedFieldsRelationships = changedRelationships.fields;\n\n    if (changedFieldsRelationships) {\n      const [startFieldIds] = changedFieldsRelationships;\n      const fieldsToRemove = this.fields.filter((field) => !startFieldIds.includes(field.id));\n      const fieldsToKeep = this.fields.filter((field) => startFieldIds.includes(field.id));\n      this.formElements = this.getBaseLayout(fieldsToKeep);\n      await waitForNextRunLoop();\n      fieldsToRemove.forEach((field) => field.deleteRecord());\n    }\n\n    this.fields.forEach((fields) => fields.rollbackAttributes());\n\n    this.rollbackRelationships();\n  }\n\n  isAllowedForSelectedRecordsCount(count: number) {\n    return (\n      (this.isGlobal && count === 0) || (this.isSingle && count === 1) || (this.isBulk && count > 0)\n    );\n  }\n\n  isAllowedForRecordThroughBasicSegments(record: Model) {\n    return this.segments.any((segment) => segment?.isBasicAndIncludeRecord(record));\n  }\n\n  isAllowedForEveryRecordThroughBasicSegments(records: Model[]) {\n    return records.every((record) => this.isAllowedForRecordThroughBasicSegments(record));\n  }\n}\n","import type Project from 'client/data/models/project';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class CustomDomainModel extends AbstractModel {\n  @attr('string') declare domain: string;\n  @attr('string') declare dnsRecord: string;\n\n  @belongsTo('project') declare project: Project;\n}\n","import type ChartModel from 'client/data/models/chart';\nimport type RenderingModel from 'client/data/models/rendering';\n\nimport { computed } from '@ember/object';\nimport { sort } from '@ember/object/computed';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\nimport { getEmojiFromIcon } from 'client/utils/emoji-utils';\n\nexport default class DashboardModel extends AbstractLayoutModel {\n  chartsSorting = ['x', 'y'];\n\n  @attr('string') declare name: string;\n  @attr('string') declare icon: string;\n  @attr('number') declare position: number;\n\n  @belongsTo('rendering', { async: false }) declare rendering: RenderingModel;\n  @hasMany('chart', { async: false }) declare charts: ChartModel[];\n\n  @sort('charts', 'chartsSorting') declare chartsSorted: ChartModel[];\n\n  @computed('icon')\n  get iconOrDefault() {\n    return getEmojiFromIcon(this.icon || 'dashboard');\n  }\n\n  @computed('iconOrDefault', 'name')\n  get displayNameWithEmoji() {\n    return `${this.iconOrDefault} ${this.name}`;\n  }\n\n  get patchPath() {\n    const id = this.isNew ? '-' : this.id;\n    return `/dashboards/${id}`;\n  }\n\n  toJSON() {\n    return {\n      id: this.id,\n      name: this.name,\n      icon: this.iconOrDefault,\n      position: this.position,\n      // NOTICE: As it's only used for creation the charts array can be empty\n      charts: [],\n    };\n  }\n}\n","import type EnvironmentModel from 'client/data/models/environment';\nimport type { DatabaseTypeEnum } from 'client/utils/database';\nimport type DatabaseCredentialsCloud from 'client/utils/onboarding/database-credentials-cloud';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class DatasourceModel extends AbstractModel {\n  @attr('string') declare name: string;\n  @attr('string') declare suffix?: string;\n  @attr('string') declare type?: DatabaseTypeEnum;\n  @attr('object') declare credentials?: DatabaseCredentialsCloud;\n  @belongsTo('environment', { async: false }) declare environment: EnvironmentModel;\n\n  get typeOrUnknown() {\n    return this.type || 'unknown';\n  }\n}\n","import type DefaultPermissionsFragment from 'client/data/models/default-permissions';\nimport type { SmartActionPermissionsAttributes } from 'client/data/models/smart-action-permissions';\n\nimport { fragmentOwner } from 'ember-data-model-fragments/attributes';\n\nimport AbstractActionPermissionsFragment from 'client/data/models/abstract-action-permissions';\n\nexport type DefaultPermissionsActionPermissionsAttributes = Pick<\n  SmartActionPermissionsAttributes,\n  'triggerEnabled' | 'approvalRequired' | 'selfApprovalEnabled' | 'userApprovalEnabled'\n>;\n\nexport default class DefaultPermissionsActionPermissionsFragment\n  extends AbstractActionPermissionsFragment\n  implements DefaultPermissionsActionPermissionsAttributes\n{\n  @fragmentOwner() declare owner: DefaultPermissionsFragment;\n\n  get patchPath() {\n    return `${this.owner.patchPath}/actionPermissions`;\n  }\n\n  toJSON() {\n    return {\n      triggerEnabled: this.triggerEnabled,\n      approvalRequired: this.approvalRequired,\n      selfApprovalEnabled: this.selfApprovalEnabled,\n      userApprovalEnabled: this.userApprovalEnabled,\n    };\n  }\n}\n","import type { CollectionPermissions } from 'client/data/models/collection-permissions';\nimport type DefaultPermissionsFragment from 'client/data/models/default-permissions';\n\nimport { attr } from '@ember-data/model';\nimport { fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport default class DefaultPermissionsCollectionPermissionsFragment\n  extends Fragment\n  implements CollectionPermissions\n{\n  @attr('boolean') declare browseEnabled: boolean;\n  @attr('boolean') declare readEnabled: boolean;\n  @attr('boolean') declare editEnabled: boolean;\n  @attr('boolean') declare addEnabled: boolean;\n  @attr('boolean') declare deleteEnabled: boolean;\n  @attr('boolean') declare exportEnabled: boolean;\n\n  @fragmentOwner() declare owner: DefaultPermissionsFragment;\n\n  get patchPath() {\n    return `${this.owner.patchPath}/collectionPermissions`;\n  }\n\n  toJSON() {\n    return {\n      browseEnabled: this.browseEnabled,\n      readEnabled: this.readEnabled,\n      editEnabled: this.editEnabled,\n      addEnabled: this.addEnabled,\n      deleteEnabled: this.deleteEnabled,\n      exportEnabled: this.exportEnabled,\n    };\n  }\n}\n","import type { CollectionPermissions as CollectionPermissionsAttributes } from 'client/data/models/collection-permissions';\nimport type { DefaultPermissionsActionPermissionsAttributes } from 'client/data/models/default-permissions-action-permissions';\nimport type DefaultPermissionsActionPermissionsFragment from 'client/data/models/default-permissions-action-permissions';\nimport type DefaultPermissionsCollectionPermissionsFragment from 'client/data/models/default-permissions-collection-permissions';\nimport type EnvironmentPermissionsFragment from 'client/data/models/environment-permissions';\n\nimport { fragment, fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport interface DefaultPermissionsAttributes {\n  collectionPermissions: CollectionPermissionsAttributes;\n  actionPermissions: DefaultPermissionsActionPermissionsAttributes;\n}\n\nexport default class DefaultPermissionsFragment\n  extends Fragment\n  implements DefaultPermissionsAttributes\n{\n  @fragmentOwner() declare owner: EnvironmentPermissionsFragment;\n\n  @fragment('default-permissions-collection-permissions')\n  declare collectionPermissions: DefaultPermissionsCollectionPermissionsFragment;\n\n  get patchPath() {\n    return `${this.owner.patchPath}/defaultPermissions`;\n  }\n\n  @fragment('default-permissions-action-permissions')\n  declare actionPermissions: DefaultPermissionsActionPermissionsFragment;\n\n  toJSON() {\n    return {\n      collectionPermissions: this.collectionPermissions?.toJSON(),\n      actionPermissions: this.actionPermissions?.toJSON(),\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class DeploymentRequestModel extends AbstractModel {\n  @attr('string') declare type: string;\n  @attr('string') declare from: string;\n  @attr('string') declare to: string;\n}\n","import { attr } from '@ember-data/model';\nimport { isEqual } from 'lodash';\n\nimport AbstractNestedDocumentModel from 'client/data/models/abstract-nested-document-model';\n\nexport interface DisplaySettingsAttributes {\n  x: number;\n  y: number;\n  width: number;\n  height: number;\n}\n\nexport default class DisplaySettingsNestedDocument extends AbstractNestedDocumentModel {\n  @attr('number') declare x: number;\n  @attr('number') declare y: number;\n  @attr('number') declare width: number;\n  @attr('number') declare height: number;\n\n  get endsX() {\n    return this.x + this.width;\n  }\n\n  get endsY() {\n    return this.y + this.height;\n  }\n\n  get gridStackItemOptions() {\n    return {\n      x: this.x,\n      y: this.y,\n      w: this.width,\n      h: this.height,\n    };\n  }\n\n  isEqualProps(props: DisplaySettingsAttributes): boolean {\n    return isEqual(this.toJSON(), props);\n  }\n\n  toJSON() {\n    return {\n      x: this.x,\n      y: this.y,\n      width: this.width,\n      height: this.height,\n    };\n  }\n}\n","import type ProjectModel from 'client/data/models/project';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class EnvironmentIncompatibleModel extends AbstractModel {\n  @attr('string') declare name: string;\n  @attr('string') declare lianaName: string;\n  @attr('string') declare lianaVersion: string;\n\n  @belongsTo('project', { async: false }) declare project: ProjectModel;\n}\n","import type CollectionEnvironmentModel from 'client/data/models/collection-environment';\nimport type CollectionPermissions from 'client/data/models/collection-permissions';\nimport type DefaultPermissionsFragment from 'client/data/models/default-permissions';\nimport type { DefaultPermissionsAttributes } from 'client/data/models/default-permissions';\nimport type Environment from 'client/data/models/environment';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { attr } from '@ember-data/model';\nimport { fragment, fragmentArray } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport const DEFAULT_PERMISSIONS: DefaultPermissionsAttributes = {\n  collectionPermissions: {\n    browseEnabled: true,\n    readEnabled: true,\n    editEnabled: true,\n    addEnabled: true,\n    deleteEnabled: true,\n    exportEnabled: true,\n  },\n  actionPermissions: {\n    triggerEnabled: true,\n    approvalRequired: false,\n    selfApprovalEnabled: false,\n    userApprovalEnabled: false,\n  },\n};\n\nexport interface EnvironmentPermissionsAttributes {\n  environmentId: number;\n  enabled: boolean;\n  collections: CollectionPermissions[];\n  defaultPermissions: DefaultPermissionsFragment;\n}\n\nexport default class EnvironmentPermissionsFragment\n  extends Fragment\n  implements EnvironmentPermissionsAttributes\n{\n  @service declare store: StoreService;\n\n  @attr('number') declare environmentId: number;\n  @attr('boolean') declare enabled: boolean;\n  @fragment('default-permissions', {\n    defaultValue: DEFAULT_PERMISSIONS,\n  })\n  defaultPermissions: DefaultPermissionsFragment;\n\n  @fragmentArray('collection-permissions') declare collections: CollectionPermissions[];\n\n  @computed('environmentId', 'store')\n  get environment(): Environment | null {\n    return this.store.peekRecord('environment', this.environmentId);\n  }\n\n  set environment(value: Environment | null) {\n    if (!value) {\n      throw new Error('Cannot set environment to null in environment permission');\n    }\n\n    this.environmentId = Number.parseInt(value.id, 10);\n  }\n\n  get patchPath() {\n    return `/environments/${this.environmentId}`;\n  }\n\n  get collectionEnvironments(): CollectionEnvironmentModel[] {\n    return this.store.peekAll('collection-environment').filterBy('environment', this.environment);\n  }\n\n  toJSON() {\n    return {\n      environmentId: this.environmentId,\n      enabled: this.enabled,\n      collections: this.collections.map((collection) => collection.toJSON()),\n      defaultPermissions: this.defaultPermissions?.toJSON(),\n    };\n  }\n}\n","import type Branch from 'client/data/models/branch';\nimport type CollectionEnvironmentModel from 'client/data/models/collection-environment';\nimport type DatasourceModel from 'client/data/models/datasource';\nimport type Project from 'client/data/models/project';\nimport type Rendering from 'client/data/models/rendering';\nimport type UserModel from 'client/data/models/user';\nimport type { WorkflowEngineEnum } from 'client/features/workflow/services/standalone-package/types/workflow-run';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\nimport type { CustomAsyncBelongsTo, CustomAsyncHasMany } from 'custom/utils';\n\nimport { computed } from '@ember/object';\nimport { equal, filterBy, not } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\nimport window from 'ember-window-mock';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nconst REGEX_DOMAIN = /.*:\\/\\/?([^/:]+)/;\n\nexport type EnvironmentLianaFeatures = {\n  'webhook-custom-actions': string;\n};\nexport enum EnvironmentStageEnum {\n  Production = 'production',\n  PreProduction = 'pre-production',\n  Staging = 'staging',\n  Acceptance = 'acceptance',\n  Sandbox = 'sandbox',\n  Test = 'test',\n  Unknown = 'unknown',\n  Development = 'development',\n}\n\nexport enum AgentTypeEnum {\n  ExpressSequelize = 'forest-express-sequelize',\n  ExpressMongoose = 'forest-express-mongoose',\n  NodejsV2 = 'forest-nodejs-agent',\n  Rails = 'forest-rails',\n  Laravel = 'forest-laravel',\n  Integrations = 'forest-integrations',\n  Django = 'django-forestadmin',\n  LaravelV2 = 'laravel-forestadmin',\n  PhpV2 = 'agent-php',\n  PythonV2 = 'agent-python',\n  RubyV2 = 'agent-ruby',\n}\nconst STAGE_PRIORITIES = {\n  production: 1,\n  'pre-production': 2,\n  staging: 3,\n  acceptance: 4,\n  sandbox: 5,\n  test: 6,\n  unknown: 7,\n  development: 8,\n};\n\nexport default class EnvironmentModel extends AbstractModel {\n  @service('shared/state/user-preference') protected userPreferenceState: UserPreferenceState;\n\n  @attr('string') declare name: string;\n  @attr('string') declare apiEndpoint?: string | null;\n  @attr('string') declare lianaName?: AgentTypeEnum | null;\n  @attr('string') declare lianaVersion?: string | null;\n  @attr('base') declare lianaFeatures?: EnvironmentLianaFeatures;\n  @attr('boolean') declare isActive: boolean;\n  @attr('string') declare type: string;\n  @attr('string') declare stage: EnvironmentStageEnum;\n  @attr('boolean') declare twoFactorAuthenticationEnabled: boolean;\n  @attr('number') declare pushedBranchesCount: number;\n  @attr('number') declare layoutChangesCount: number;\n  @attr('date') declare updatedAt: Date;\n  @attr('boolean') declare isBlocked: boolean;\n  @attr('date') declare firstActivityAt: Date;\n  @attr('date') declare firstCustomizedAt: Date;\n  @attr('string') declare hostedAgentType: string;\n  @attr('boolean') declare areRolesDisabled: boolean;\n  // aiLlms is an array to prepare for multiple LLMs support in the future\n  @attr('base') declare aiLlms?: Array<{ provider: string; name: string }> | null;\n  @attr('string') declare workflowEngine: WorkflowEngineEnum;\n\n  @belongsTo('project', { async: true, inverse: 'environments' })\n  declare project: CustomAsyncBelongsTo<Project>;\n\n  @hasMany('rendering', { async: true, inverse: '_environment' })\n  declare renderings: CustomAsyncHasMany<Rendering>;\n\n  @belongsTo('branch', { async: false, inverse: null }) declare currentBranch: Branch;\n  @hasMany('branch', { async: true }) declare branches: CustomAsyncHasMany<Branch>;\n  @hasMany('datasource', { async: true }) declare datasources: CustomAsyncHasMany<DatasourceModel>;\n  @belongsTo('user', { async: true, inverse: 'developmentEnvironment' })\n  declare owner: CustomAsyncBelongsTo<UserModel>;\n\n  @not('isActive') declare isInactive: boolean;\n  @filterBy('renderings', 'hasDirtyAttributes', true) declare dirtyRenderings: Rendering[];\n  @equal('type', 'production') declare isProduction: boolean;\n  @equal('type', 'remote') declare isRemote: boolean;\n\n  @hasMany('collection-environment', { async: true })\n  collections: CustomAsyncHasMany<CollectionEnvironmentModel>;\n\n  get isDevelopment(): boolean {\n    return this.type === 'development';\n  }\n\n  @computed('apiEndpoint')\n  get apiEndpointDomain() {\n    try {\n      return this.apiEndpoint?.match(REGEX_DOMAIN)?.[1];\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      return null;\n    }\n  }\n\n  @computed('stage')\n  get stagePriority() {\n    return STAGE_PRIORITIES[this.stage || 'unknown'];\n  }\n\n  @computed('stage')\n  get icon() {\n    return this.stage === 'production' ? 'public' : 'code';\n  }\n\n  @computed('userPreferenceState.isDarkTheme', 'isProduction', 'stage')\n  get badgeColor() {\n    const computedStyle = window.getComputedStyle(document.body);\n    return this.isProduction\n      ? computedStyle.getPropertyValue('--color-beta-primary')\n      : computedStyle.getPropertyValue(`--color-beta-on-surface-environment-${this.stage}`);\n  }\n\n  get isFullHostedAgent() {\n    return this.hostedAgentType === 'full-hosted';\n  }\n}\n","import type FieldModel from 'client/data/models/field';\nimport type RowCreateModel from 'client/data/models/row-create';\nimport type RowEditModel from 'client/data/models/row-edit';\n\nimport { alias } from '@ember/object/computed';\nimport { attr } from '@ember-data/model';\nimport { array, fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport default class ExplorerConfigurationFragment extends Fragment {\n  @attr('boolean', { defaultValue: true }) declare isVisible: boolean;\n  @attr('number') declare position: number;\n  @array('string', { defaultValue: [] }) declare displayFieldNames: string[];\n  @attr('number', { defaultValue: 10 }) declare recordsPerPage: number;\n\n  @fragmentOwner() declare row: RowEditModel | RowCreateModel;\n\n  @alias('row.field') declare field: FieldModel;\n\n  get patchPath() {\n    return `${this.row.patchPath}/explorerConfiguration`;\n  }\n\n  toJSON() {\n    return {\n      isVisible: this.isVisible || false,\n      position: this.position || 0,\n      displayFieldNames: this.displayFieldNames.toArray(),\n      recordsPerPage: this.recordsPerPage || 10,\n    };\n  }\n\n  static initExplorer(row: RowEditModel) {\n    row.set('explorerConfiguration', {\n      isVisible: row.isVisible,\n      position: row.position,\n    });\n    return row.explorerConfiguration;\n  }\n}\n","import type FieldModel from 'client/data/models/field';\nimport type { Operator } from 'client/utils/condition-utils';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class FieldCapabilitiesModel extends AbstractModel {\n  @attr('base') declare operators: Operator[];\n  @attr('boolean') declare isGroupable: boolean;\n\n  @belongsTo('field', { async: false, inverse: 'capabilities' })\n  declare field: FieldModel;\n}\n","import type Store from '@ember-data/store';\nimport type CollectionEnvironmentModel from 'client/data/models/collection-environment';\nimport type WidgetConfiguration from 'client/data/models/widget-configuration';\nimport type { EmbeddedType, NestedFieldAttributes } from 'client/decorators/model-field';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type StoreService from 'client/legacy/services/store';\nimport type WidgetsManagerService from 'client/legacy/services/widgets-manager';\nimport type { Operator } from 'client/utils/operators/common-operators';\nimport type { FilterableField } from 'client/utils/widgets';\n\nimport { isArray } from '@ember/array';\nimport { service } from '@ember/service';\nimport { dasherize } from '@ember/string';\nimport Model, { attr, belongsTo } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { singularize } from 'ember-inflector';\n\nimport config from 'client/config/environment';\nimport { SimpleTypes } from 'client/decorators/model-field';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport markPropertiesAsNotDirty from 'client/utils/model-utils';\nimport CollectionEnvironmentNested from 'client/utils/nested/collection-environment-nested';\nimport FieldEnvironmentNested from 'client/utils/nested/field-environment-nested';\nimport SchemaUtils from 'client/utils/schema-utils';\nimport { namespace } from 'client/utils/string-utils';\nimport { isWidgetInvalid } from 'client/utils/widgets';\n\nexport default class FieldEnvironmentModel extends Model implements FilterableField {\n  @service lianaFeatures: LianaFeaturesService;\n  @service declare store: StoreService & Store;\n  @service declare widgetsManager: WidgetsManagerService;\n\n  @belongsTo('collection-environment', { async: false, inverse: 'fields' })\n  declare collection: CollectionEnvironmentModel;\n\n  @belongsTo('collection-environment', { async: false, inverse: null })\n  declare referenceModel: CollectionEnvironmentModel;\n\n  @attr('string') declare name: string;\n  @attr('base') declare type: NestedFieldAttributes['type'];\n  @attr('base') declare enums: string[] | null;\n  @attr('string') declare inverseOf: string;\n  @attr('string') declare integration: string | null;\n  @attr('string') declare reference: string | null;\n  @attr('string') declare relationship: 'BelongsTo' | 'HasOne' | 'HasMany' | 'BelongsToMany' | null;\n  @attr('base') declare defaultValue: unknown;\n\n  @attr('boolean') declare column: boolean;\n  @attr('boolean') declare canFilter: boolean;\n  @attr('boolean') declare isVirtual: boolean;\n  @attr('boolean') declare isReadOnly: boolean;\n  @attr('boolean') declare isRequired: boolean;\n  @attr('boolean') declare isSortable: boolean;\n  @attr('boolean') declare isPrimaryKey: boolean;\n  @attr('boolean') declare foreignAndPrimaryKey: boolean;\n  @attr('base') declare polymorphicReferencedModels?: string[];\n\n  @tracked areWidgetsInitialized = false;\n\n  widgetDisplay: WidgetConfiguration = null;\n  widgetEdit: WidgetConfiguration = null;\n\n  source: 'data' | 'input' = 'data';\n\n  get displayName() {\n    return this.name;\n  }\n\n  get fieldName(): string {\n    return this.name;\n  }\n\n  get isIdentifier(): boolean {\n    return this.isPrimaryKey || this.foreignAndPrimaryKey;\n  }\n\n  get isBelongsTo() {\n    return SchemaUtils.isBelongsTo(this);\n  }\n\n  // Copied from model-field because of circular dependencies issues\n  private _nestedCollection: CollectionEnvironmentNested;\n\n  get isBoolean() {\n    return this.type === 'Boolean';\n  }\n\n  get isDate() {\n    return this.type === 'Date';\n  }\n\n  get isDateonly() {\n    return this.type === 'Dateonly';\n  }\n\n  get isEnumSimple() {\n    return this.type === 'Enum';\n  }\n\n  get isFile() {\n    return this.type === 'File';\n  }\n\n  get isJson() {\n    return this.type === 'Json';\n  }\n\n  get isNumber() {\n    return this.type === 'Number';\n  }\n\n  get isPoint() {\n    return this.type === 'Point';\n  }\n\n  get isPolymorphic() {\n    return this.polymorphicReferencedModels?.length > 0;\n  }\n\n  get isString() {\n    return this.type === 'String';\n  }\n\n  get isTime() {\n    return this.type === 'Time';\n  }\n\n  get isUuid() {\n    return this.type === 'Uuid';\n  }\n\n  get isArrayOfFiles() {\n    return this.typeStringified === '[\"File\"]';\n  }\n\n  get isArrayOfEnumByType() {\n    return this.typeStringified === '[\"Enum\"]';\n  }\n\n  get isArrayOfEnum() {\n    return this.isArrayOfEnumByType && this.isEnum;\n  }\n\n  get hasReference() {\n    return !!this.reference;\n  }\n\n  get typeForWidgets(): string {\n    return this.isRelationship ? this.relationshipType : this.typeStringified;\n  }\n\n  get isEnum() {\n    return !!this.enums?.length;\n  }\n\n  get isArray() {\n    return SchemaUtils.isArrayType(this);\n  }\n\n  get isArrayOfIntegers() {\n    return SchemaUtils.isArrayOfIntegerType(this);\n  }\n\n  get isArrayOfStrings() {\n    return SchemaUtils.isEmbeddedHasManyString(this);\n  }\n\n  get isEmbeddedDocument() {\n    return SchemaUtils.isEmbeddedBelongsTo(this);\n  }\n\n  get isEmbeddedDocumentDeep() {\n    return SchemaUtils.isEmbeddedBelongsToDeep(this);\n  }\n\n  get isHasMany() {\n    return SchemaUtils.isHasManyRelationship(this);\n  }\n\n  get isEmbeddedHasMany() {\n    return SchemaUtils.isEmbeddedHasMany(this);\n  }\n\n  get isEmbeddedHasManyDeep() {\n    return SchemaUtils.isEmbeddedHasManyDeep(this);\n  }\n\n  get isInlineBelongsToField() {\n    return SchemaUtils.isInlineBelongsToField(this);\n  }\n\n  get isEmbeddedBelongsTo() {\n    return SchemaUtils.isEmbeddedBelongsTo(this);\n  }\n\n  get isEmbeddedBelongsToDeep() {\n    return SchemaUtils.isEmbeddedBelongsToDeep(this);\n  }\n\n  get isEmbedded() {\n    return (\n      this.isEmbeddedHasMany\n      || this.isEmbeddedHasManyDeep\n      || this.isEmbeddedBelongsTo\n      || this.isEmbeddedBelongsToDeep\n    );\n  }\n\n  get isRelationship() {\n    return this.isBelongsTo || this.isHasMany || this.isEmbedded;\n  }\n\n  get nestedOrReferencedCollection() {\n    return this.nestedCollection || this.referenceModel;\n  }\n\n  get nestedCollection(): CollectionEnvironmentNested {\n    if (!this.isEmbedded) return null;\n    // To avoid doing the parsing multiple times, as the type of a field is static we can compute the nestedCollection only once.\n    if (this._nestedCollection) return this._nestedCollection;\n    // We need to cast it because getter does not give type safe guard for now\n    // See: https://github.com/microsoft/TypeScript/issues/43368\n    const type = this.type as EmbeddedType | [EmbeddedType];\n    const nestedCollectionDefinition: EmbeddedType = this.isArray\n      ? (type as [EmbeddedType])[0]\n      : (type as EmbeddedType);\n\n    const collection = new CollectionEnvironmentNested({\n      parentField: this,\n      environment: this.collection.environment,\n      fields: nestedCollectionDefinition.fields.map(\n        (field) =>\n          new FieldEnvironmentNested(field, {\n            features: {\n              filterArrayIncludeAll: this.lianaFeatures.isFeatureCompatible(\n                FeaturesEnum.FilterArrayIncludeAll,\n                this.collection.environment,\n              ),\n            },\n            widgetsManager: this.widgetsManager,\n          }),\n      ),\n    });\n\n    collection.fields.forEach((field) => {\n      field.collection = collection;\n    });\n\n    this._nestedCollection = collection;\n\n    return this._nestedCollection;\n  }\n\n  get shouldDisplayAsRow() {\n    return (\n      (!this.integration && !this.isHasMany && !this.isEmbeddedHasMany)\n      || this.isEmbeddedHasManyDeep\n    );\n  }\n\n  get isRelatedData() {\n    return !this.integration && !this.shouldDisplayAsRow;\n  }\n\n  get supportedOperators(): Operator[] {\n    return this.store\n      .peekRecord('collection', this.collection.name)\n      .fields.findBy('fieldName', this.fieldName).supportedOperators;\n  }\n\n  get typeStringified() {\n    const fieldType = this.type;\n    if (isArray(fieldType)) {\n      return JSON.stringify(fieldType);\n    }\n    return fieldType as unknown as string;\n  }\n\n  get attributeNameWithRelationships() {\n    const attributeName = this.fieldName;\n    if (attributeName === 'id') {\n      return this.isIdentifier ? 'id' : namespace(config.APP.models.nonIdentifierIdFieldAlias, '-');\n    }\n    if (!this.collection?.isEmbedded && attributeName === '_id') {\n      return 'id';\n    }\n    return namespace(attributeName, '-');\n  }\n\n  get relationshipType() {\n    if (this.isBelongsTo) {\n      return 'belongsTo';\n    }\n    if (this.isHasMany) {\n      return 'hasMany';\n    }\n    if (this.isEmbeddedBelongsToDeep) {\n      return 'embeddedBelongsToDeep';\n    }\n    if (this.isEmbeddedBelongsTo) {\n      return 'embeddedBelongsTo';\n    }\n    if (this.isEmbeddedHasManyDeep) {\n      return 'embeddedHasManyDeep';\n    }\n    if (this.isEmbeddedHasMany) {\n      return 'embeddedHasMany';\n    }\n    return null;\n  }\n\n  get isFilterAvailableForTypeExcludingNested() {\n    if (typeof this.type === 'string' && SimpleTypes.includes(this.type)) {\n      return true;\n    }\n\n    if (SchemaUtils.isPlainArray(this)) {\n      return (\n        Boolean(this.collection.environment)\n        && this.lianaFeatures.isFeatureCompatible(\n          FeaturesEnum.FilterArrayIncludeAll,\n          this.collection.environment,\n        )\n      );\n    }\n\n    return false;\n  }\n\n  get isFilterAvailableForType() {\n    return (\n      this.isFilterAvailableForTypeExcludingNested\n      || this.isInlineBelongsToField\n      || this.isEmbeddedBelongsTo\n      || this.isBelongsTo\n    );\n  }\n\n  get isAggregatable() {\n    return this.isNumber && !this.reference && !this.isVirtual;\n  }\n\n  get isInvalidWidgetDisplay() {\n    return isWidgetInvalid(this, this.widgetDisplay);\n  }\n\n  get isInvalidWidgetEdit() {\n    return isWidgetInvalid(this, this.widgetEdit);\n  }\n\n  get embeddedCollectionName() {\n    if (SchemaUtils.isEmbeddedBelongsTo(this)) {\n      return `${this.collection?.name || ''}-${singularize(this.fieldName)}`;\n    }\n    if (SchemaUtils.isEmbeddedHasMany(this)) {\n      return dasherize(`${this.collection?.name || ''}-${this.fieldName}-hasmany`);\n    }\n    return null;\n  }\n\n  ensureWidgetDefaults() {\n    try {\n      if (\n        !this.widgetDisplay\n        || !this.widgetEdit\n        || this.isInvalidWidgetDisplay\n        || this.isInvalidWidgetEdit\n      ) {\n        this.widgetsManager.assignDefaultWidgets(this);\n        markPropertiesAsNotDirty(this, ['widgetDisplay', 'widgetEdit']);\n      }\n    } catch (error) {\n      console.error('Widget transition error:', error);\n    } finally {\n      this.areWidgetsInitialized = true;\n    }\n  }\n}\n","import type Model from '@ember-data/model';\nimport type Store from '@ember-data/store';\nimport type CollectionModel from 'client/data/models/collection';\nimport type { SortingOrderEnum } from 'client/data/models/collection';\nimport type CollectionEnvironmentModel from 'client/data/models/collection-environment';\nimport type ColumnModel from 'client/data/models/column';\nimport type ConditionalFormatting from 'client/data/models/conditional-formatting';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type Environment from 'client/data/models/environment';\nimport type FieldCapabilitiesModel from 'client/data/models/field-capabilities';\nimport type RowEditModel from 'client/data/models/row-edit';\nimport type Validation from 'client/data/models/validation';\nimport type ValueLabelNestedDocument from 'client/data/models/value-label';\nimport type WidgetConfiguration from 'client/data/models/widget-configuration';\nimport type { FieldInterface, NestedFieldAttributes } from 'client/decorators/model-field';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type StoreService from 'client/legacy/services/store';\nimport type WidgetsManagerService from 'client/legacy/services/widgets-manager';\nimport type NestedCollection from 'client/utils/nested/collection';\nimport type CollectionEnvironmentNested from 'client/utils/nested/collection-environment-nested';\nimport type { Operator } from 'client/utils/operators';\nimport type { CustomAsyncBelongsTo, CustomAsyncHasMany } from 'custom/utils';\n\nimport { deprecate } from '@ember/debug';\nimport { computed } from '@ember/object';\nimport { or } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { dasherize } from '@ember/string';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { fragment } from 'ember-data-model-fragments/attributes';\nimport { singularize } from 'ember-inflector';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\nimport arrayOfNestedDocument from 'client/decorators/array-of-nested-document';\nimport modelField from 'client/decorators/model-field';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport { getDisplayedLinkValue } from 'client/shared/helpers/get-displayed-link-value';\nimport NestedField from 'client/utils/nested/field';\nimport SchemaUtils from 'client/utils/schema-utils';\nimport { namespace } from 'client/utils/string-utils';\n\nexport function getFieldByName<\n  CollectionType extends\n    | CollectionModel\n    | NestedCollection\n    | CollectionEnvironmentModel\n    | CollectionEnvironmentNested,\n>(\n  filteredCollection: CollectionType,\n  fieldName: string | null,\n): ReturnType<CollectionType['fields']['objectAt']> {\n  if (!fieldName || !filteredCollection) return null;\n  type ActualFieldType = ReturnType<CollectionType['fields']['objectAt']>;\n  return (filteredCollection?.filterableFields as ActualFieldType[]).findBy('fieldName', fieldName);\n}\n\nexport function getFieldById(store: StoreService & Store, fieldId: string | null) {\n  return fieldId && store.peekRecord('field', fieldId);\n}\n\n// This is split in 3 classes. The first one is all the properties that are basic fields that don't need the decorator\nclass BaseField extends AbstractLayoutModel implements FieldInterface {\n  @service declare lianaFeatures: LianaFeaturesService;\n  @service declare store: StoreService & Store;\n  @service declare widgetsManager: WidgetsManagerService;\n\n  @attr('string') declare fieldName: string;\n  @attr('string') declare label: string;\n\n  @attr('string', {\n    defaultValue(that: BaseField) {\n      const label = that.label || that.fieldName;\n      if (label) {\n        return label.charAt(0).toUpperCase() + label.slice(1);\n      }\n      return null;\n    },\n  })\n  declare displayName: string;\n\n  @attr('base') declare type: NestedFieldAttributes['type'];\n  @attr('string') declare relationship?: string | null;\n  @attr('string') declare description?: string | null;\n  @attr('string') declare reference?: string | null;\n  @attr('string') declare inverseOf?: string | null;\n  @attr('string') declare defaultValue?: string | null;\n  @attr('string') declare integration?: string | null;\n  @attr('base') declare enums?: string[] | null;\n  @attr('number') declare position: number;\n  @attr('boolean') declare isVirtual: boolean;\n  @attr('boolean') declare canFilter: boolean;\n  @attr('boolean') declare isFilterDisplayed: boolean;\n  @attr('boolean', { defaultValue: true }) declare isDissociateDisplayed: boolean;\n  @attr('boolean') declare isReadOnly: boolean;\n  @attr('boolean') declare isSortable: boolean;\n  @attr('boolean') declare isRequired: boolean;\n  @attr('base') declare customActionValue: unknown;\n  @attr('boolean') declare foreignAndPrimaryKey: boolean;\n  @attr('string', { defaultValue: null }) declare hook?: string | null;\n  @attr('boolean') declare isPrimaryKey: boolean;\n  @attr('base') declare polymorphicReferencedModels?: string[];\n\n  @belongsTo('field-capabilities', { async: false, inverse: 'field' })\n  declare capabilities: FieldCapabilitiesModel;\n\n  @belongsTo('collection', { async: false, inverse: 'fields' })\n  declare collection?: CollectionModel | null;\n\n  @belongsTo('row-edit', { async: false }) declare rowEdit?: RowEditModel | null;\n  @belongsTo('custom-action', { async: true })\n  declare customAction: CustomAsyncBelongsTo<CustomActionModel>;\n\n  @hasMany('column', { async: true }) declare column: CustomAsyncHasMany<ColumnModel>;\n  @hasMany('validation', { async: false }) declare validations: Validation[];\n  @fragment('widget-configuration') declare widgetEdit?: WidgetConfiguration | null;\n  @fragment('widget-configuration') declare widgetDisplay?: WidgetConfiguration | null;\n  @arrayOfNestedDocument('value-label') declare mappingValues?: ValueLabelNestedDocument[];\n\n  @fragment('conditional-formatting') declare conditionalFormatting?: ConditionalFormatting | null;\n\n  @tracked order: SortingOrderEnum | `${SortingOrderEnum}` | null = null;\n  @tracked areWidgetsInitialized = false;\n\n  get field() {\n    deprecate('field has been deprecated, please use fieldName instead', false, {\n      id: 'field.field',\n      until: '2.0.0',\n      since: { available: '1.0.0' },\n      for: 'forestadmin',\n    });\n    return this.fieldName;\n  }\n\n  @computed('customActionValue.[]')\n  get customActionValues() {\n    return this.customActionValue;\n  }\n\n  @computed('displayName', 'fieldName', 'label')\n  get displayNameTitlize() {\n    const displayName = this.displayName || this.label || this.fieldName;\n    return displayName ? displayName.charAt(0).toUpperCase() + displayName.slice(1) : null;\n  }\n\n  @computed('displayName')\n  get displayNameLowerCase() {\n    return this.displayName.toLowerCase();\n  }\n\n  @computed('customAction.id', 'fieldName')\n  get attributeName() {\n    // Action field.\n    if (this.customAction?.get('id')) {\n      return this.fieldName;\n    }\n\n    return SchemaUtils.getAttributeName(this);\n  }\n\n  @computed('referenceEmberModelNameWithoutNamespace')\n  get referenceModelName() {\n    if (this.referenceEmberModelNameWithoutNamespace) {\n      return namespace(this.referenceEmberModelNameWithoutNamespace, '-');\n    }\n    return null;\n  }\n\n  @computed('referenceModelNameWithoutNamespace')\n  get referenceEmberModelNameWithoutNamespace() {\n    if (this.referenceModelNameWithoutNamespace) {\n      return dasherize(singularize(this.referenceModelNameWithoutNamespace));\n    }\n    return null;\n  }\n\n  @computed('reference')\n  get referenceModelNameWithoutNamespace() {\n    if (this.reference) {\n      return this.reference.split('.')[0];\n    }\n    return null;\n  }\n\n  @computed('reference')\n  get referenceFieldName() {\n    if (this.reference) {\n      return this.reference.split('.')[1];\n    }\n    return null;\n  }\n\n  get isPolymorphic() {\n    return this.polymorphicReferencedModels?.length > 0;\n  }\n\n  @computed('collection', 'customAction.collection', 'reference')\n  get referenceModel(): CollectionModel | null {\n    if (this.reference) {\n      const name = this.reference.split('.')[0];\n\n      // NOTICE: A field may belongs to a collection or a Smart Action.\n      const collection = this.collection || this.customAction?.get('collection');\n\n      return collection?.get('rendering')?.collections.findBy('name', name) ?? null;\n    }\n    return null;\n  }\n\n  @computed('collection', 'isPolymorphic', 'polymorphicReferencedModels', 'referenceModel')\n  get referenceModels(): CollectionModel[] {\n    if (this.referenceModel) {\n      return [this.referenceModel];\n    }\n\n    return this.isPolymorphic\n      ? this.polymorphicReferencedModels\n          ?.map(\n            (modelName) => this.collection?.get('rendering')?.collections.findBy('name', modelName),\n          )\n          .filter(Boolean)\n      : null;\n  }\n\n  @computed('mappingValues.length')\n  get isUsingAlteredValues() {\n    return !!this.mappingValues?.length;\n  }\n\n  set isUsingAlteredValues(value) {\n    if (value) {\n      const values = this.enums || [''];\n      if (!this.mappingValues) {\n        this.mappingValues = [];\n      }\n      this.mappingValues = values.map(\n        (possibleValue) =>\n          this.store?.createRecord('value-label', {\n            value: possibleValue,\n            label: possibleValue,\n          }),\n      );\n    } else {\n      this.mappingValues = [];\n    }\n\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    return value;\n  }\n\n  get patchPath() {\n    return `/collections/${this.collection?.id || 'undefined'}/layout/fields/${this.id}`;\n  }\n\n  @tracked isIdentifier = false;\n\n  toJSON() {\n    return {\n      fieldName: this.fieldName,\n      displayName: this.displayName,\n      description: this.description,\n      isReadOnly: this.isReadOnly,\n      isFilterDisplayed: this.isFilterDisplayed,\n      isDissociateDisplayed: this.isDissociateDisplayed,\n      widgetEdit: this.widgetEdit,\n      widgetDisplay: this.widgetDisplay,\n      mappingValues: this.mappingValues\n        ? this.mappingValues.map((mappingValue) => mappingValue.toJSON())\n        : [],\n      conditionalFormatting: this.conditionalFormatting\n        ? this.conditionalFormatting.toJSON()\n        : null,\n    };\n  }\n}\n\n// Then the decorated class\nclass DecoratedBaseField extends modelField(NestedField)(BaseField) {}\n\n// And finally all the properties that requires the properties declared inside the decorator\nexport default class FieldModel extends DecoratedBaseField {\n  @or('nestedCollection.fields', 'referenceModel.fields') declare nestedFields: FieldModel[];\n\n  @or('nestedCollection.fields', 'referenceModel.viewEdit.plainFields')\n  declare nestedPlainFields: FieldModel[];\n\n  @computed('referenceModel.displayField')\n  get referenceDisplayField(): FieldModel | null {\n    if (this.referenceModel) {\n      return this.referenceModel.displayField;\n    }\n\n    return null;\n  }\n\n  @computed(\n    'canFilter',\n    'capabilities.operators.length',\n    'collection.isSmart',\n    'collection.rendering.environment',\n    'isFilterAvailableForType',\n    'isFilterDisplayed',\n    'isVirtual',\n    'lianaFeatures',\n  )\n  get filterActivated(): boolean {\n    const environment: Environment | undefined = this.collection?.rendering?.environment;\n    const isVirtualFieldOnSimpleCollection: boolean = !this.collection?.isSmart && this.isVirtual;\n    const isFilterOnSmartFieldAvailable =\n      !!environment\n      && this.lianaFeatures.isFeatureCompatible(FeaturesEnum.FilterSmartField, environment);\n    return (\n      this.isFilterAvailableForType\n      && this.isFilterDisplayed\n      && this.canFilter\n      && (!this.capabilities\n        || !this.capabilities.operators\n        || this.capabilities.operators.length > 0)\n      && (!isVirtualFieldOnSimpleCollection || isFilterOnSmartFieldAvailable)\n    );\n  }\n\n  @computed(\n    'referenceModel.defaultSortingField.fieldName',\n    'referenceModel.displayField.{field,isVirtual}',\n    'referenceModel.displayFieldNameOrPrimaryKey',\n  )\n  get referenceSortingField() {\n    // NOTICE: Defensive programming here! A virtual sortingField happens in very rare cases. If the\n    //         belongsTo referenced model displayField is Smart the sort action is not available in\n    //         the table view. But if the defaultSortingField of the collection is a belongsTo on\n    //         another collection having its displayField configured with a Smart field, we don't\n    //         use the referenced collection displayField but its defaultSortingField to sort the\n    //         data.\n    if (!this.referenceModel) return undefined;\n\n    return this.referenceModel.displayField?.isVirtual\n      ? this.referenceModel.defaultSortingField?.fieldName\n      : this.referenceModel.displayFieldNameOrPrimaryKey;\n  }\n\n  @computed('isReadOnly', 'isHasMany', 'isEmbeddedHasMany', 'isEmbeddedHasManyDeep')\n  get isValidable(): boolean {\n    return (\n      !this.isReadOnly && !this.isHasMany && (!this.isEmbeddedHasMany || this.isEmbeddedHasManyDeep)\n    );\n  }\n\n  @computed('capabilities.isGroupable', 'isBelongsTo', 'isPrimaryKey', 'isRelationship')\n  get isGroupable() {\n    if (this.isPrimaryKey) return false;\n\n    if (this.capabilities && this.capabilities.isGroupable !== undefined) {\n      return this.capabilities.isGroupable;\n    }\n\n    return !this.isRelationship || this.isBelongsTo;\n  }\n\n  getDisplayedValue(record: Model) {\n    if (!record) {\n      return null;\n    }\n\n    const value: unknown = this.referenceModels\n      ? (getDisplayedLinkValue([this, record]) as unknown)\n      : (record?.[this.attributeNameWithRelationships] as string | number | string[] | number[]);\n\n    const { mappingValues } = this;\n    if (!Array.isArray(this.type)) {\n      const displayedValue = mappingValues?.findBy('value', value as string | number);\n      return displayedValue ? displayedValue.label : value;\n    }\n\n    const displayedValues: Array<string | number> = [];\n\n    ((value as string[] | number[]) || []).forEach((item: string | number) => {\n      const displayedValue = mappingValues?.findBy('value', item);\n      displayedValues.pushObject(displayedValue?.label ?? item);\n    });\n\n    return displayedValues;\n  }\n\n  get supportedOperators(): Operator[] {\n    if (this.capabilities) return this.capabilities.operators;\n    return super.supportedOperators;\n  }\n}\n","import type EmberArray from '@ember/array';\nimport type Model from 'client/data/models/abstract-model';\nimport type CollectionModel from 'client/data/models/collection';\nimport type ConditionFragment from 'client/data/models/fragment-condition';\nimport type {\n  AbstractBaseConditionFragment,\n  BaseConditionAttributes,\n} from 'client/data/models/fragment-condition';\nimport type FilterFragment from 'client/data/models/fragment-filter';\nimport type StoreService from 'client/legacy/services/store';\nimport type { QueryCondition, QueryFilter } from 'client/utils/liana-records/records-context';\nimport type { FragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport { computed } from '@ember/object';\nimport { alias, filter } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { attr, belongsTo } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { fragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport AbstractModel from 'client/data/models/abstract-model';\nimport { ConditionContextEnum } from 'client/data/models/fragment-condition';\n\nexport type FilterAggregator = 'and' | 'or';\n\nexport function getQueryFilter(\n  aggregator: FilterAggregator,\n  conditions: EmberArray<AbstractBaseConditionFragment>,\n  filters?: EmberArray<FilterFragment>,\n): QueryFilter | QueryCondition {\n  if (!conditions?.length && !filters?.length) {\n    return null;\n  }\n\n  if (conditions.length === 1 && !filters?.length) {\n    return conditions.firstObject.queryCondition;\n  }\n  if (filters?.length === 1 && !conditions?.length) {\n    return filters.firstObject.queryFilter;\n  }\n\n  return {\n    aggregator,\n    conditions: [\n      ...conditions.map((condition) => condition.queryCondition),\n      ...(filters || []).map((nestedFilter) => nestedFilter?.queryFilter),\n    ].filter(Boolean),\n  };\n}\n\nexport default class FilterModel extends AbstractModel {\n  @service declare store: StoreService;\n\n  @attr('string', { defaultValue: 'and' }) declare type: FilterAggregator;\n  @fragmentArray('fragment-condition') declare conditions: FragmentArray<'fragment-condition'>;\n  @fragmentArray('fragment-filter') declare filters: FragmentArray<'fragment-filter'>;\n\n  @belongsTo('collection', { async: false }) declare filteredCollection: CollectionModel;\n\n  @alias('type') declare operator: FilterAggregator;\n  @alias('type') declare aggregator: FilterAggregator;\n  @alias('filteredCollection') declare collection: CollectionModel;\n\n  @tracked assignedParent: Model | { filteredCollection?: CollectionModel } = null;\n\n  @filter(\n    'conditions.@each.hasDirtyAttributes',\n    (condition) => !!(condition as ConditionFragment).hasDirtyAttributes,\n  )\n  declare dirtyConditions: ConditionFragment[];\n\n  get queryFilter() {\n    return getQueryFilter(this.aggregator, this.conditions, this.filters);\n  }\n\n  @computed('conditions.@each.isValidData')\n  get isValidData() {\n    return this.conditions.every((condition) => condition.isValidData);\n  }\n\n  get parent() {\n    return this.assignedParent || { filteredCollection: this.filteredCollection };\n  }\n\n  get environment() {\n    return this.filteredCollection?.environment;\n  }\n\n  createCondition({\n    context = ConditionContextEnum.Collection,\n  }: { context?: ConditionContextEnum } = {}) {\n    const condition = this.store.createFragment('fragment-condition', { context });\n    this.conditions.pushObject(condition);\n\n    return condition;\n  }\n\n  clear() {\n    this.conditions.clear();\n    this.createCondition();\n  }\n\n  clone() {\n    const clone = this.store.createRecord('filter', {\n      type: this.type,\n      conditions: this.conditions.map((condition) => condition.clone()),\n      filters: this.filters?.map((nestedFilter) => nestedFilter.clone()),\n      filteredCollection: this.filteredCollection,\n    });\n    clone.assignedParent = this.parent;\n    return clone;\n  }\n\n  cloneFragment() {\n    return this.store.createFragment('fragment-filter', {\n      type: this.type,\n      conditions: this.conditions.map((condition) => condition.clone()),\n      filters: this.filters.map((nestedFilter) => nestedFilter.cloneFragment()),\n    });\n  }\n\n  toJSON({\n    forApi = true,\n    forAgentApi = false,\n  }: { forApi?: boolean; forAgentApi?: boolean; includeId?: boolean } = {}): {\n    aggregator?: FilterAggregator;\n    type?: FilterAggregator;\n    conditions: BaseConditionAttributes[];\n  } {\n    const aggregatorKey = forAgentApi ? 'aggregator' : 'type';\n    return {\n      [aggregatorKey]: this.type,\n      conditions: this.conditions.map((condition) => condition.toJSON({ forApi, forAgentApi })),\n    };\n  }\n}\n","import type FolderModel from 'client/data/models/folder';\nimport type RenderingModel from 'client/data/models/rendering';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractNestedDocumentModel from 'client/data/models/abstract-nested-document-model';\nimport arrayOfNestedDocument from 'client/decorators/array-of-nested-document';\n\nexport enum FolderTypeEnum {\n  Collection = 'collection',\n  Dashboard = 'dashboard',\n  Folder = 'folder',\n  Inbox = 'inbox',\n  Workspace = 'workspace',\n  Segment = 'segment',\n}\n\nexport interface FolderChildAttributes {\n  id: string;\n  type: FolderTypeEnum;\n  position: number;\n  isVisible: boolean;\n  subChildren?: FolderChildAttributes[];\n}\n\nexport default class FolderChildNestedDocument\n  extends AbstractNestedDocumentModel\n  implements FolderChildAttributes\n{\n  @attr('string') type: FolderTypeEnum;\n  @attr('number') position: number;\n  @attr('boolean', { defaultValue: true }) isVisible: boolean;\n\n  @arrayOfNestedDocument('folder-child')\n  subChildren?: FolderChildNestedDocument[];\n\n  @belongsTo('rendering', { async: false }) rendering: RenderingModel;\n  @belongsTo('folder', { async: false, inverse: 'children' }) folder: FolderModel;\n  @belongsTo('folder-child', { async: false, inverse: 'subChildren' })\n  parentFolderChild: FolderChildNestedDocument;\n\n  get children(): FolderChildNestedDocument[] {\n    return this.subChildren;\n  }\n\n  get parent(): FolderModel | FolderChildNestedDocument {\n    return this.folder || this.parentFolderChild;\n  }\n\n  get patchPath() {\n    if (this.parentFolderChild) {\n      return `/folders/${this.parentFolderChild.parent.id}/children/${\n        this.parentFolderChild.id\n      }/subChildren/${this.isNew ? '-' : this.id}`;\n    }\n\n    return `/folders/${this.parent.id}/children/${this.isNew ? '-' : this.id}`;\n  }\n\n  toJSON(): FolderChildAttributes & Record<string, unknown> {\n    return {\n      type: this.type,\n      position: this.position,\n      id: this.id,\n      isVisible: this.isVisible,\n      ...(this.parentFolderChild || this.type !== FolderTypeEnum.Collection\n        ? {}\n        : { subChildren: this.subChildren?.map((item) => item.toJSON()) }),\n    };\n  }\n}\n","import type FolderChildNestedDocument from 'client/data/models/folder-child';\nimport type RenderingModel from 'client/data/models/rendering';\n\nimport { attr, belongsTo } from '@ember-data/model';\nimport { modelValidator } from 'ember-model-validator';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\nimport arrayOfNestedDocument from 'client/decorators/array-of-nested-document';\n\nexport interface FolderModelAttributes {\n  id: string;\n  name?: string;\n  icon?: string;\n  children: FolderChildNestedDocument[];\n\n  // FIXME: to be removed when when all projects are using process driven navigation\n  isWorkspaceMain?: boolean;\n  isDashboardMain?: boolean;\n  isInboxMain?: boolean;\n}\n\n@modelValidator\nexport default class FolderModel extends AbstractLayoutModel implements FolderModelAttributes {\n  @attr('string') name: string;\n  @attr('string') icon: string;\n  @attr('boolean', { defaultValue: false }) isMain: boolean;\n  @attr('boolean', { defaultValue: false }) isWorkspaceMain: boolean;\n  @attr('boolean', { defaultValue: false }) isDashboardMain: boolean;\n  @attr('boolean', { defaultValue: false }) isInboxMain: boolean;\n  @arrayOfNestedDocument('folder-child')\n  children: FolderChildNestedDocument[];\n\n  @belongsTo('rendering', { async: false }) rendering: RenderingModel;\n\n  validations = {\n    name: {\n      presence: true,\n    },\n    icon: {\n      presence: true,\n    },\n  };\n\n  get patchPath() {\n    const id = this.isNew ? '-' : this.id;\n    return `/folders/${id}`;\n  }\n\n  toJSON() {\n    return {\n      id: this.id,\n      name: this.name,\n      icon: this.icon,\n      isMain: this.isMain,\n      isWorkspaceMain: this.isWorkspaceMain,\n      isDashboardMain: this.isDashboardMain,\n      isInboxMain: this.isInboxMain,\n      children: this.children.map((item) => item.toJSON()),\n    };\n  }\n}\n","import type { FormElementComponentEnum } from 'client/data/models/form-element';\n\nimport { attr } from '@ember-data/model';\n\nimport FormElementNestedDocument from 'client/data/models/form-element';\n\nexport default class FormElementHtmlBlockNestedDocument extends FormElementNestedDocument {\n  @attr('string') declare component: FormElementComponentEnum.HtmlBlock;\n  @attr('string') content: string;\n\n  toJSON() {\n    return {\n      ...super.toJSON(),\n      content: this.content,\n    };\n  }\n}\n","import type { FormElementComponentEnum } from 'client/data/models/form-element';\n\nimport { attr } from '@ember-data/model';\n\nimport FormElementNestedDocument from 'client/data/models/form-element';\n\nexport default class FormElementInputNestedDocument extends FormElementNestedDocument {\n  @attr('string') declare component: FormElementComponentEnum.Input;\n  @attr('string') fieldId: string;\n\n  toJSON() {\n    return {\n      ...super.toJSON(),\n      fieldId: this.fieldId,\n    };\n  }\n}\n","import type {\n  FormElementComponentEnum,\n  UnionFormElementNestedDocument,\n} from 'client/data/models/form-element';\n\nimport { attr } from '@ember-data/model';\n\nimport { arrayOfFormElements } from 'client/data/models/custom-action';\nimport FormElementNestedDocument from 'client/data/models/form-element';\n\nexport default class FormElementPageNestedDocument extends FormElementNestedDocument {\n  @attr('string') declare component: FormElementComponentEnum.Page;\n  @arrayOfFormElements()\n  elements: Exclude<UnionFormElementNestedDocument, FormElementPageNestedDocument>[];\n\n  @attr('string') nextButtonLabel: string;\n  @attr('string') previousButtonLabel: string;\n\n  toJSON() {\n    return {\n      ...super.toJSON(),\n      nextButtonLabel: this.nextButtonLabel,\n      previousButtonLabel: this.previousButtonLabel,\n      elements: this.elements.map((element) => element.toJSON()),\n    };\n  }\n}\n","import type { FormElementComponentEnum } from 'client/data/models/form-element';\nimport type FormElementInputNestedDocument from 'client/data/models/form-element-input';\n\nimport { attr } from '@ember-data/model';\n\nimport FormElementNestedDocument from 'client/data/models/form-element';\nimport arrayOfNestedDocument from 'client/decorators/array-of-nested-document';\n\nexport default class FormElementRowNestedDocument extends FormElementNestedDocument {\n  @attr('string') declare component: FormElementComponentEnum.Row;\n  @arrayOfNestedDocument('form-element-input') fields: [\n    FormElementInputNestedDocument,\n    FormElementInputNestedDocument,\n  ];\n\n  toJSON() {\n    return {\n      ...super.toJSON(),\n      fields: this.fields.map((field) => field.toJSON()),\n    };\n  }\n}\n","import type { FormElementComponentEnum } from 'client/data/models/form-element';\n\nimport { attr } from '@ember-data/model';\n\nimport FormElementNestedDocument from 'client/data/models/form-element';\n\nexport default class FormElementSeparatorNestedDocument extends FormElementNestedDocument {\n  @attr('string') declare component: FormElementComponentEnum.Separator;\n}\n","import type FormElementHtmlBlockNestedDocument from 'client/data/models/form-element-html-block';\nimport type FormElementInputNestedDocument from 'client/data/models/form-element-input';\nimport type FormElementPageNestedDocument from 'client/data/models/form-element-page';\nimport type FormElementRowNestedDocument from 'client/data/models/form-element-row';\nimport type FormElementSeparatorNestedDocument from 'client/data/models/form-element-separator';\n\nimport { attr } from '@ember-data/model';\n\nimport AbstractNestedDocumentModel from 'client/data/models/abstract-nested-document-model';\n\nexport enum FormElementComponentEnum {\n  Input = 'input',\n  Separator = 'separator',\n  HtmlBlock = 'htmlBlock',\n  Row = 'row',\n  Page = 'page',\n}\n\nexport type UnionFormElementNestedDocument =\n  | FormElementInputNestedDocument\n  | FormElementSeparatorNestedDocument\n  | FormElementHtmlBlockNestedDocument\n  | FormElementRowNestedDocument\n  | FormElementPageNestedDocument;\n\nexport default class FormElementNestedDocument extends AbstractNestedDocumentModel {\n  @attr('string') component: FormElementComponentEnum;\n\n  toJSON() {\n    return {\n      component: this.component,\n    };\n  }\n}\n","import type FieldEnvironmentModel from 'client/data/models/field-environment';\nimport type { BaseConditionAttributes } from 'client/data/models/fragment-condition';\nimport type FragmentFilter from 'client/data/models/fragment-filter';\nimport type { SmartActionFilterOperator } from 'client/data/models/smart-action-permissions';\nimport type StoreService from 'client/legacy/services/store';\nimport type { Condition } from 'client/utils/filter-to-text';\n\nimport { attr } from '@ember-data/model';\nimport { fragmentOwner } from 'ember-data-model-fragments/attributes';\n\nimport { AbstractBaseConditionFragment } from 'client/data/models/fragment-condition';\nimport { findOperatorFromDisplayName } from 'client/utils/condition-utils';\n\n// TODO: move in ConditionFragment file\n\nexport interface ConditionSmartActionPermissionAttributes extends BaseConditionAttributes {\n  fieldPath: string;\n  source: 'data' | 'input';\n  operator: SmartActionFilterOperator;\n}\n\nexport default class ConditionSmartActionPermissionFragment\n  extends AbstractBaseConditionFragment\n  implements Condition, ConditionSmartActionPermissionAttributes\n{\n  @attr('string') declare operator: SmartActionFilterOperator;\n  @attr('string') declare fieldPath: string;\n  @attr('string') declare source: 'data' | 'input';\n\n  declare store: StoreService;\n\n  @fragmentOwner() declare filter: FragmentFilter;\n\n  get field(): FieldEnvironmentModel {\n    return super.field as FieldEnvironmentModel;\n  }\n\n  set field(value: FieldEnvironmentModel) {\n    super.field = value;\n\n    this.source = value?.source || undefined;\n  }\n\n  public toJSON() {\n    if (!this.fieldString || !this.operator) {\n      return null;\n    }\n\n    return {\n      operator: findOperatorFromDisplayName(this.operator).name,\n      value: this.value,\n      source: this.source,\n      field: this.fieldString,\n    };\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type CollectionEnvironmentModel from 'client/data/models/collection-environment';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type FieldModel from 'client/data/models/field';\nimport type FilterModel from 'client/data/models/filter';\nimport type FilterFragment from 'client/data/models/fragment-filter';\nimport type { NestedFieldAttributes } from 'client/decorators/model-field';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\nimport type { Operator, OperatorValue } from 'client/utils/condition-utils';\nimport type NestedCollection from 'client/utils/nested/collection';\nimport type CollectionEnvironmentNested from 'client/utils/nested/collection-environment-nested';\nimport type NestedField from 'client/utils/nested/field';\nimport type { OperatorDisplayNames } from 'client/utils/operators/types';\nimport type WorkspaceTemplatingHelper from 'client/utils/templating-helper/workspace-templating-helper';\nimport type { FilterableField } from 'client/utils/widgets';\n\nimport { isArray } from '@ember/array';\nimport { computed, get } from '@ember/object';\nimport { or, readOnly } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { isBlank } from '@ember/utils';\nimport { attr } from '@ember-data/model';\nimport { fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\nimport moment from 'moment';\n\nimport { getFieldById, getFieldByName } from 'client/data/models/field';\nimport ScopeFragment from 'client/data/models/fragment-scope';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport checkCondition from 'client/utils/condition-checking';\nimport {\n  OPERATORS_THAT_NEEDS_VALUE,\n  OPERATOR_INCLUDES_ALL,\n  OPERATOR_IS,\n  OPERATOR_IS_IN,\n  findOperatorFromDisplayName,\n  getValueCastedForCondition,\n} from 'client/utils/condition-utils';\nimport SchemaUtils from 'client/utils/schema-utils';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\nimport { isUuid, uuidv1 } from 'client/utils/uuid-utils';\n\ninterface ConditionField extends FilterableField {\n  type: NestedFieldAttributes['type'];\n  referenceModel: CollectionModel | CollectionEnvironmentModel;\n  nestedCollection: NestedCollection | CollectionEnvironmentNested;\n}\n\nexport enum ConditionContextEnum {\n  Collection = 'collection',\n  Settings = 'settings',\n}\n\nexport interface BaseConditionAttributes {\n  _id?: string;\n  operator?: string;\n  value?: OperatorValue;\n  context?: ConditionContextEnum;\n  fieldName?: string | null;\n  subFieldName?: string | null;\n  embeddedFieldName?: string | null;\n}\n\nexport interface NewConditionAttributes extends BaseConditionAttributes {\n  operator?: `${OperatorDisplayNames}`;\n  fieldName?: string | null;\n  subFieldName?: string | null;\n  embeddedFieldName?: string | null;\n}\n\nexport interface OldConditionAttributes extends BaseConditionAttributes {\n  operator?: `${OperatorDisplayNames}`;\n  fieldId?: string | null;\n  subFieldId?: string | null;\n}\n\nexport type ConditionAttributes = OldConditionAttributes | NewConditionAttributes;\n\nexport abstract class AbstractBaseConditionFragment<OperatorUnion extends string = string>\n  extends Fragment\n  implements BaseConditionAttributes\n{\n  @service declare lianaSession: LianaSessionService;\n  @service declare lianaFeatures: LianaFeaturesService;\n  @service declare store: StoreService;\n\n  @attr('string', { defaultValue: () => uuidv1() }) declare _id: string;\n\n  @attr('string') declare embeddedFieldName: string | null;\n  @attr('string') declare operator: OperatorUnion;\n  @attr('base') declare value: OperatorValue;\n\n  @attr('string') declare fieldName: string | null;\n  @attr('string') declare subFieldName: string | null;\n  @attr('string') declare fieldId: string | null;\n  @attr('string') declare subFieldId: string | null;\n  @attr('string') declare context: ConditionContextEnum | null;\n\n  @fragmentOwner() declare filter: FilterFragment | FilterModel;\n\n  get isBelongingToScope() {\n    return this.filter?.parent instanceof ScopeFragment;\n  }\n\n  get isContextSet() {\n    return (\n      this.templatingKeys.length === 0 || this.templatingHelper?.isContextSet(this.templatingKeys)\n    );\n  }\n\n  @computed('fieldId', 'fieldName', 'filter.collection', 'store')\n  get field(): ConditionField {\n    return this.fieldName\n      ? getFieldByName(this.filter?.collection, this.fieldName)\n      : getFieldById(this.store, this.fieldId);\n  }\n\n  set field(value: ConditionField | null) {\n    this.setField('fieldId', value);\n    this.fieldName = value?.fieldName || null;\n    // FIXME: Fix the User Settings system so we can get rid of the return.\n    // Right now User Settings works only because of the return while it should\n    // have a Collection set on the filter to work correctly\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    return value;\n  }\n\n  @computed('field.referenceModel', 'fieldName', 'store', 'subFieldId', 'subFieldName')\n  get subField(): ConditionField {\n    return this.subFieldName\n      ? getFieldByName(this.field?.referenceModel, this.subFieldName)\n      : getFieldById(this.store, this.subFieldId);\n  }\n\n  set subField(value: ConditionField | null) {\n    this.setField('subFieldId', value);\n    this.subFieldName = value?.fieldName || null;\n    // FIXME: Fix the User Settings system so we can get rid of the return.\n    // Right now User Settings works only because of the return while it should\n    // have a Collection set on the filter to work correctly\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    return value;\n  }\n\n  @computed('embeddedFieldName', 'field.nestedCollection.fields')\n  get embeddedField() {\n    return this.embeddedFieldName\n      ? getFieldByName(this.field?.nestedCollection, this.embeddedFieldName)\n      : null;\n  }\n\n  set embeddedField(value) {\n    this.set('embeddedFieldName', value?.fieldName || null);\n  }\n\n  setField(key: 'fieldId' | 'subFieldId', value: ConditionField | null) {\n    if (value) {\n      this.set(key, value.id);\n    } else {\n      this.set(key, null);\n    }\n  }\n\n  toJSON({\n    forApi = true,\n    forAgentApi = false,\n  }: { forApi?: boolean; forAgentApi?: boolean; includeId?: boolean } = {}) {\n    const attributes = {\n      operator: forAgentApi ? findOperatorFromDisplayName(this.operator)?.name : this.operator,\n      value: this.value,\n    };\n\n    if (forAgentApi) {\n      return {\n        ...attributes,\n        field: this.fieldString,\n      };\n    }\n    if (forApi) {\n      return {\n        ...attributes,\n        fieldName: this.field?.fieldName || null,\n        subFieldName: this.subField?.fieldName || null,\n        embeddedFieldName: this.embeddedField?.fieldName || null,\n      };\n    }\n    return {\n      ...attributes,\n      fieldId: this.field?.id || null,\n      subFieldId: this.subField?.id || null,\n      embeddedField: this.embeddedField?.toServerFormat() || null,\n    };\n  }\n\n  @readOnly('lianaSession.currentEnvironment') declare environment: EnvironmentModel;\n\n  @computed('subFieldOrField.supportedOperators')\n  get operatorsOptions(): Operator[] {\n    return this.subFieldOrField?.supportedOperators || [];\n  }\n\n  @computed('subFieldOrField.type')\n  get defaultOperator() {\n    return isArray(this.subFieldOrField?.type) ? OPERATOR_INCLUDES_ALL : OPERATOR_IS;\n  }\n\n  @computed('operator')\n  get operatorNeedsValue() {\n    return (\n      this.operator\n      && OPERATORS_THAT_NEEDS_VALUE.map((op) => op.displayName).includes(\n        this.operator as OperatorDisplayNames,\n      )\n    );\n  }\n\n  @computed('embeddedField', 'operator', 'subFieldOrField.{type,typeStringified}')\n  get valueComponentType() {\n    const operatorObject = findOperatorFromDisplayName(this.operator);\n    if (operatorObject?.valueType) {\n      return operatorObject.valueType;\n    }\n    return this.subFieldOrField?.typeStringified || null;\n  }\n\n  @computed(\n    'operator',\n    'subFieldOrField.isBoolean',\n    'subFieldOrField.widgetEdit.widget.{editLayoutComponent,shouldDisplayInsideFilter}',\n  )\n  get valueComponent() {\n    const operatorObject = findOperatorFromDisplayName(this.operator);\n    if (operatorObject?.valueComponent) {\n      return operatorObject.valueComponent;\n    }\n    if (this.subFieldOrField?.widgetEdit?.widget?.shouldDisplayInsideFilter) {\n      return this.subFieldOrField.widgetEdit.widget.editLayoutComponent;\n    }\n    if (this.subFieldOrField) {\n      return this.subFieldOrField.isBoolean ? 'form/form-select-bool' : 'form/form-base';\n    }\n    return null;\n  }\n\n  @computed('isGenericFiltersAvailable', 'operator', 'subFieldOrField.type', 'value')\n  get valueString() {\n    const currentOperator = findOperatorFromDisplayName(this.operator);\n    if (!currentOperator) {\n      return null;\n    }\n\n    let { value } = this;\n    const typeIsDate = this.subFieldOrField?.type === 'Date';\n    const valueComponentTypeIsDate =\n      !currentOperator.valueType || currentOperator.valueType === 'Date';\n    if (value && typeIsDate && valueComponentTypeIsDate && moment(value as string).isValid()) {\n      value = moment(value as string).toISOString();\n    }\n\n    return this.isGenericFiltersAvailable ? value : currentOperator.compute(value);\n  }\n\n  @or('subField', 'embeddedField', 'field') declare subFieldOrField:\n    | FieldModel\n    | NestedField\n    | null;\n\n  /**\n   * @returns {string}\n   */\n  @computed(\n    'embeddedField.fieldName',\n    'field.fieldName',\n    'filter.collection',\n    'subField.fieldName',\n    'valueString',\n  )\n  get fieldString() {\n    let ret = this.field?.fieldName;\n\n    if (this.subField?.fieldName) {\n      ret += `:${this.subField?.fieldName}`;\n    }\n\n    if (this.embeddedField) {\n      ret += `:${this.embeddedField?.fieldName}`;\n    }\n\n    return ret;\n  }\n\n  static getFieldWithNameSpace(field: FilterableField) {\n    const fieldName = field?.fieldName;\n    return SchemaUtils.isIdField(field) ? 'id' : `forest-${fieldName}`;\n  }\n\n  @computed('field.fieldName')\n  get fieldNameWithNamespace() {\n    return AbstractBaseConditionFragment.getFieldWithNameSpace(this.field);\n  }\n\n  @computed('subField.fieldName')\n  get subFieldNameWithNamespace() {\n    return AbstractBaseConditionFragment.getFieldWithNameSpace(this.subField);\n  }\n\n  @computed('embeddedField.fieldName')\n  get embeddedFieldNameWithNamespace() {\n    const embeddedFieldName = this.embeddedField?.fieldName;\n    return `forest-${embeddedFieldName}`;\n  }\n\n  @computed('filter.parent.templatingHelper')\n  get templatingHelper(): AbstractTemplatingHelper {\n    return (\n      this.filter?.parent\n      && 'templatingHelper' in this.filter.parent\n      && (this.filter.parent.templatingHelper as\n        | WorkspaceTemplatingHelper\n        | AbstractTemplatingHelper)\n    );\n  }\n\n  @computed('templatingHelper', 'valueCasted', 'valueComponentType')\n  get templatingKeys(): string[] {\n    return this.valueCasted && this.templatingHelper\n      ? AbstractTemplatingHelper.getTemplatingKeys(this.valueCasted as string)\n      : [];\n  }\n\n  get templatingKeysWithExpectedType() {\n    return this.templatingKeys.map((templatingKey) => ({\n      templatingKey,\n      expectedType: this.valueComponentType,\n    }));\n  }\n\n  @computed('templatingHelper', 'templatingKeys', 'value', 'valueComponentType')\n  get isValidTemplating() {\n    return (\n      this.value !== '{{}}'\n      && this.templatingKeys.every((templatingKey) =>\n        this.templatingHelper.isValidPath(templatingKey, this.valueComponentType),\n      )\n    );\n  }\n\n  get isValidUuidData() {\n    if (!this.subFieldOrField.isUuid) {\n      return false;\n    }\n\n    // Use valueCasted so that scope values stored as \"$currentUser.x.y\"\n    // are checked against their canonical \"{{currentUser.x.y}}\" templating form.\n    const value = this.valueCasted;\n\n    return (\n      isUuid(value as string) ||\n      // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n      /\\{\\{[\\w.-]+\\}\\}/g.test(`${value}`)\n      || (isArray(value) && (value as string[]).every(isUuid))\n      || (typeof value === 'string' && !!value && value.split(',').every(isUuid))\n    );\n  }\n\n  @computed(\n    'embeddedField',\n    'field',\n    'isValidTemplating',\n    'isValidUuidData',\n    'operator',\n    'operatorNeedsValue',\n    'subField',\n    'subFieldOrField.isUuid',\n    'templatingHelper',\n    'value',\n  )\n  get isValidData() {\n    return (\n      !!this.field\n      && !!this.operator\n      && !!findOperatorFromDisplayName(this.operator)\n      && (!this.templatingHelper || this.isValidTemplating)\n      && (!this.operatorNeedsValue\n        || (!this.subFieldOrField.isUuid && !isBlank(this.value))\n        || this.isValidUuidData)\n    );\n  }\n\n  @computed('isBelongingToScope', 'value', 'valueComponentType')\n  get valueCasted() {\n    // Scope are a special case as variables are replaced by the agent, but the agent expect a variable like `$currentUser.team.name`\n    // If we want to change that this would require an update of the agents.\n    // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n    if (this.isBelongingToScope && `${this.value}`.startsWith('$currentUser.')) {\n      return `{{${(this.value as string).substring(1)}}}`;\n    }\n    // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n    if (/\\{\\{[\\w.-]*\\}\\}/g.test(`${this.value}`)) {\n      return this.value;\n    }\n    return getValueCastedForCondition(this.value, this.valueComponentType);\n  }\n\n  set valueCasted(value) {\n    if (value instanceof Date) {\n      this.set('value', value.toISOString());\n    } else if (\n      this.isBelongingToScope\n      && typeof value === 'string'\n      && /\\{\\{[-\\w]+\\.[-\\w.]+\\}\\}/.test(`${value}`)\n    ) {\n      this.set('value', `$${value.substring(2, value.length - 2)}`);\n    } else {\n      this.set('value', value);\n    }\n  }\n\n  get valueCastedAndReplaced() {\n    if (this.templatingHelper) {\n      const isOperatorIsInAndTypeIsNumber =\n        this.operator === OPERATOR_IS_IN.displayName && this.valueComponentType === 'Number';\n\n      const injectedValue = this.templatingHelper.injectVariablesIntoStringWithoutValidation(\n        this.valueCasted as string,\n        {\n          /**\n           * NOTICE: We set expectedType to null when isOperatorIsInAndTypeIsNumber to avoid\n           * casting to Number a string that could be a comma-separated values string resulting\n           * in NaN\n           */\n          expectedType: isOperatorIsInAndTypeIsNumber ? null : this.valueComponentType,\n        },\n      );\n\n      return isOperatorIsInAndTypeIsNumber\n        ? (injectedValue as string).split(',').map(Number).join()\n        : injectedValue;\n    }\n\n    return this.valueCasted;\n  }\n\n  get queryCondition() {\n    if (!this.isValidData || !this.isContextSet) {\n      return null;\n    }\n\n    const currentOperator = findOperatorFromDisplayName(this.operator);\n    return {\n      field: this.fieldString,\n      operator: currentOperator.name,\n      value: this.valueCastedAndReplaced ?? null,\n    };\n  }\n\n  @computed(\n    'context',\n    'environment',\n    'lianaFeatures.isFeatureCompatible',\n    'lianaSession.currentEnvironment',\n  )\n  get isGenericFiltersAvailable() {\n    if (this.context === ConditionContextEnum.Settings) {\n      return true;\n    }\n\n    return this.lianaFeatures.isFeatureCompatible(FeaturesEnum.GenericFilters);\n  }\n}\n\nexport default class ConditionFragment\n  extends AbstractBaseConditionFragment<`${OperatorDisplayNames}`>\n  implements NewConditionAttributes, OldConditionAttributes\n{\n  isFulfilledByRecord(record) {\n    if (!this.isValidData || !record) {\n      return false;\n    }\n    if (this.subField) {\n      return checkCondition(\n        this.subField.type,\n        this.operator,\n        get(record, `${this.fieldNameWithNamespace}.${this.subFieldNameWithNamespace}`),\n        this.value,\n      ) as boolean;\n    }\n    if (this.embeddedField) {\n      return checkCondition(\n        this.embeddedField.type,\n        this.operator,\n        get(record, `${this.fieldNameWithNamespace}.${this.embeddedFieldNameWithNamespace}`),\n        this.value,\n      ) as boolean;\n    }\n    return checkCondition(\n      this.field.type,\n      this.operator,\n\n      record[this.fieldNameWithNamespace],\n      this.value,\n    ) as boolean;\n  }\n\n  clone() {\n    return this.store.createFragment('fragment-condition', {\n      fieldId: this.fieldId,\n      subFieldId: this.subFieldId,\n      fieldName: this.fieldName,\n      subFieldName: this.subFieldName,\n      embeddedFieldName: this.embeddedFieldName,\n      operator: this.operator,\n      value: this.value,\n    });\n  }\n}\n","import type ConditionSmartActionPermissionFragment from 'client/data/models/fragment-condition-smart-action-permission';\nimport type { ConditionSmartActionPermissionAttributes } from 'client/data/models/fragment-condition-smart-action-permission';\nimport type { BaseFilterAttributes } from 'client/data/models/fragment-filter';\nimport type StoreService from 'client/legacy/services/store';\nimport type { FragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport { fragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport { ConditionContextEnum } from 'client/data/models/fragment-condition';\nimport { AbstractBaseFilterFragment } from 'client/data/models/fragment-filter';\n\nexport type Aggregator = 'and' | 'or';\n\nexport interface FilterSmartActionPermissionAttributes extends BaseFilterAttributes {\n  conditions: ConditionSmartActionPermissionAttributes[];\n}\n\nexport default class FilterSmartActionPermissionFragment extends AbstractBaseFilterFragment {\n  declare store: StoreService;\n  @fragmentArray('fragment-condition-smart-action-permission')\n  declare conditions: FragmentArray<'fragment-condition-smart-action-permission'>;\n\n  protected get conditionModels() {\n    return this.conditions;\n  }\n\n  protected set conditionModels(conditions) {\n    this.conditions = conditions;\n  }\n\n  toJSON() {\n    const validConditions = this.conditions.map((condition) => condition.toJSON()).filter(Boolean);\n\n    if (!validConditions.length) {\n      return null;\n    }\n\n    return {\n      aggregator: this.type,\n      conditions: validConditions,\n    };\n  }\n\n  createCondition({\n    context = ConditionContextEnum.Collection,\n  }: { context?: string } = {}): ConditionSmartActionPermissionFragment {\n    const condition = this.store.createFragment('fragment-condition-smart-action-permission', {\n      context,\n    });\n\n    this.conditions.pushObject(condition);\n\n    return condition;\n  }\n}\n","/* eslint-disable max-classes-per-file */\nimport type MutableArray from '@ember/array/mutable';\nimport type Model from 'client/data/models/abstract-model';\nimport type CollectionModel from 'client/data/models/collection';\nimport type { FilterAggregator } from 'client/data/models/filter';\nimport type ConditionFragment from 'client/data/models/fragment-condition';\nimport type {\n  AbstractBaseConditionFragment,\n  BaseConditionAttributes,\n  ConditionAttributes,\n} from 'client/data/models/fragment-condition';\nimport type StoreService from 'client/legacy/services/store';\nimport type { FragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport { computed } from '@ember/object';\nimport { alias, filterBy } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { attr } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { fragmentArray, fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport { getQueryFilter } from 'client/data/models/filter';\nimport { ConditionContextEnum } from 'client/data/models/fragment-condition';\nimport { uuidv1 } from 'client/utils/uuid-utils';\n\n// FIXME: Atm using ModelWithFilter trigger a TS issue on chart model ModelWithFilter;\n// Once that is fixed, we can use this type\n// interface HasFilter {\n//   filter: FilterFragment;\n// }\n// type RegistryWithFilter = {\n//   [K in keyof ModelRegistry as ModelRegistry[K] extends HasFilter ? K : never]: ModelRegistry[K];\n// };\n// type FragmentRegistryWithFilter = {\n//   [K in keyof FragmentRegistry as FragmentRegistry[K] extends HasFilter\n//     ? K\n//     : never]: FragmentRegistry[K];\n// };\n\n// type ModelWithFilter =\n//   | RegistryWithFilter[keyof RegistryWithFilter]\n//   | FragmentRegistryWithFilter[keyof FragmentRegistryWithFilter];\n\nexport interface BaseFilterAttributes {\n  _id?: string;\n  type?: FilterAggregator;\n  conditions?: BaseConditionAttributes[];\n  filters?: FilterAttributes[];\n}\n\nexport interface FilterAttributes extends BaseFilterAttributes {\n  conditions?: ConditionAttributes[];\n}\n\nexport abstract class AbstractBaseFilterFragment extends Fragment {\n  @service declare store: StoreService;\n\n  @attr('string', { defaultValue: () => uuidv1() }) declare _id: string;\n\n  @attr('string', { defaultValue: 'and' }) declare type: FilterAggregator;\n\n  // If this is named \"conditions\" the fragmentArray is not considered\n  protected abstract get conditionModels(): MutableArray<AbstractBaseConditionFragment>;\n\n  @alias('type') declare operator: FilterAggregator;\n  @alias('type') declare aggregator: FilterAggregator;\n\n  @fragmentOwner() declare parentFragmentOwner: Model; // FIXME: Atm using ModelWithFilter trigger a TS issue on chart model ModelWithFilter;\n  @fragmentArray('fragment-filter') declare filters: FragmentArray<'fragment-filter'>;\n\n  @tracked assignedParent: Model | Fragment;\n\n  get parent() {\n    return this.assignedParent || this.parentFragmentOwner;\n  }\n\n  @filterBy('conditions', 'hasDirtyAttributes', true) declare dirtyConditions: ConditionFragment[];\n\n  get queryFilter() {\n    return getQueryFilter(this.aggregator, this.conditionModels);\n  }\n\n  @computed('conditionModels', 'conditions.@each.isValidData')\n  get isValidData() {\n    return this.conditionModels.every((condition) => condition.get('isValidData'));\n  }\n\n  @computed('conditionModels', 'conditions.@each.templatingKeys', 'templatingKeysWithExpectedType')\n  get templatingKeys(): string[] {\n    return this.templatingKeysWithExpectedType?.map(({ templatingKey }) => templatingKey);\n  }\n\n  get templatingKeysWithExpectedType() {\n    return (\n      this.conditionModels?.map((condition) => condition.templatingKeysWithExpectedType).flat()\n      || []\n    );\n  }\n\n  @computed('parent.{collection,filteredCollection}')\n  get collection(): CollectionModel {\n    if (this.parent && 'filteredCollection' in this.parent && this.parent.filteredCollection) {\n      return this.parent.filteredCollection as CollectionModel;\n    }\n    return (\n      this.parent && 'collection' in this.parent && (this.parent?.collection as CollectionModel)\n    );\n  }\n\n  toJSON({\n    forApi = true,\n    forAgentApi = false,\n  }: { forAgentApi?: boolean; forApi?: boolean; includeId?: boolean } = {}): {\n    aggregator?: FilterAggregator;\n    type?: FilterAggregator;\n    conditions: BaseConditionAttributes[];\n  } {\n    const aggregatorKey = forAgentApi ? 'aggregator' : 'type';\n    return {\n      [aggregatorKey]: this.type,\n      conditions: this.conditionModels.map((condition) =>\n        condition.toJSON({ forApi, forAgentApi }),\n      ),\n    };\n  }\n\n  abstract createCondition(conditionParameters?: {\n    context?: ConditionContextEnum;\n  }): AbstractBaseConditionFragment;\n\n  clear() {\n    this.conditionModels.clear();\n    this.createCondition();\n  }\n}\n\nexport default class FilterFragment extends AbstractBaseFilterFragment {\n  @fragmentArray('fragment-condition') declare conditions: FragmentArray<'fragment-condition'>;\n\n  protected get conditionModels() {\n    return this.conditions;\n  }\n\n  protected set conditionModels(conditions) {\n    this.conditions = conditions;\n  }\n\n  createCondition({\n    context = ConditionContextEnum.Collection,\n  }: { context?: ConditionContextEnum } = {}) {\n    const condition = this.store.createFragment('fragment-condition', { context });\n    this.conditions.pushObject(condition);\n\n    return condition;\n  }\n\n  isFulfilledByRecord(record) {\n    return this.type === 'or'\n      ? this.conditions.any((condition) => condition.isFulfilledByRecord(record))\n      : this.conditions.every((condition) => condition.isFulfilledByRecord(record));\n  }\n\n  clone() {\n    const filter = this.store.createFragment('fragment-filter', {\n      type: this.type,\n      conditions: this.conditions.map((condition) => condition.clone()),\n    });\n\n    filter.assignedParent = this.parent;\n    return filter;\n  }\n\n  cloneFragment() {\n    return this.clone();\n  }\n}\n","import type FolderFeatureService from 'client/features/folder/services/feature';\nimport type { AbilitiesService } from 'ember-can';\n\nimport { computed, get } from '@ember/object';\nimport { service } from '@ember/service';\nimport { attr } from '@ember-data/model';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport { TeamDeactivatableFeatureEnum } from 'client/data/models/team';\n\nconst SECTIONS_DECORATION = {\n  Dashboard: {\n    icon: 'show_chart',\n    path: 'project.rendering.dashboard',\n    draggable: true,\n    shouldDisplayIfProcessDrivenNavigation: false,\n  },\n  Data: {\n    icon: 'format_list_bulleted',\n    path: 'project.rendering.data',\n    currentWhen: 'project.rendering.data',\n    draggable: true,\n    shouldDisplayIfProcessDrivenNavigation: true,\n  },\n  Workspaces: {\n    icon: 'extension',\n    path: 'project.rendering.workspaces',\n    draggable: true,\n    shouldDisplayIfProcessDrivenNavigation: false,\n  },\n  Collaboration: {\n    icon: 'chat_bubble_outline',\n    path: 'project.rendering.collaboration',\n    draggable: true,\n    shouldDisplayIfProcessDrivenNavigation: true,\n  },\n  Reports: {\n    icon: 'query_stats',\n    path: 'project.rendering.reports',\n    draggable: true,\n    teamDeactivatableFeatures: [\n      TeamDeactivatableFeatureEnum.ActivityLogs,\n      TeamDeactivatableFeatureEnum.TeamPerformance,\n    ],\n    shouldDisplayIfProcessDrivenNavigation: true,\n  },\n};\nexport interface FragmentRenderingSectionAttributes {\n  name: string;\n  isVisible: boolean;\n}\n\nexport default class RenderingSectionFragment\n  extends Fragment\n  implements FragmentRenderingSectionAttributes\n{\n  @attr('string') declare name: string;\n  @attr('boolean') declare isVisible: boolean;\n\n  @service('abilities') abilities: AbilitiesService;\n  @service('feature/folder') private folderFeature: FolderFeatureService;\n\n  @computed('name')\n  get isReorderable() {\n    return get(SECTIONS_DECORATION, `${this.name}.draggable`);\n  }\n\n  @computed('name')\n  get path() {\n    return get(SECTIONS_DECORATION, `${this.name}.path`) as string;\n  }\n\n  @computed('name', 'path')\n  get currentWhen() {\n    const currentWhen = get(SECTIONS_DECORATION, `${this.name}.currentWhen`);\n    return currentWhen || this.path;\n  }\n\n  @computed('name')\n  get icon() {\n    return get(SECTIONS_DECORATION, `${this.name}.icon`);\n  }\n\n  get isDeactivatedForTeam() {\n    const teamDeactivatableFeatures = get(\n      SECTIONS_DECORATION,\n      `${this.name}.teamDeactivatableFeatures`,\n    ) as TeamDeactivatableFeatureEnum[] | undefined;\n\n    if (!teamDeactivatableFeatures || teamDeactivatableFeatures.length === 0) {\n      return false;\n    }\n\n    return (\n      teamDeactivatableFeatures.filter((feature) => this.abilities.cannot(`view ${feature}`)).length\n      === teamDeactivatableFeatures.length\n    );\n  }\n\n  get shouldDisplayIfProcessDrivenNavigation() {\n    return get(SECTIONS_DECORATION, `${this.name}.shouldDisplayIfProcessDrivenNavigation`);\n  }\n\n  get shouldDisplay() {\n    return this.shouldDisplayIfProcessDrivenNavigation;\n  }\n\n  isDragging = false;\n\n  toJSON() {\n    return {\n      name: this.name,\n      isVisible: this.isVisible,\n    };\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type FilterFragment from 'client/data/models/fragment-filter';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport { computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { attr } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { fragment, fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\nimport { v1 as uuidv1 } from 'uuid';\n\nimport CurrentUserTemplatingHelper from 'client/utils/templating-helper/current-user-templating-helper';\n\nexport enum ScopeTypeEnum {\n  Simple = 'simple',\n  Query = 'query',\n}\n\nexport default class ScopeFragment extends Fragment {\n  @service declare currentUser: CurrentUserService;\n\n  @tracked templatingHelper: CurrentUserTemplatingHelper;\n\n  @attr('string', { defaultValue: () => uuidv1() }) declare _id: string;\n  @attr('string', { defaultValue: ScopeTypeEnum.Simple }) declare type: ScopeTypeEnum;\n\n  @fragment('fragment-filter') declare filter: FilterFragment;\n\n  @fragmentOwner() declare filteredCollection: CollectionModel;\n  @alias('filteredCollection') collection: CollectionModel;\n\n  constructor(properties?: object) {\n    super(properties);\n\n    this.templatingHelper = new CurrentUserTemplatingHelper({ currentUser: this.currentUser });\n  }\n\n  @computed(\n    '(this.filter.dirtyConditions).length',\n    'filter.dirtyConditions.length',\n    'filter.hasDirtyAttributes',\n  )\n  get isDirty() {\n    return this.filter.hasDirtyAttributes || Boolean(this.filter.dirtyConditions.length);\n  }\n\n  @computed('isNew', 'isDirty', 'filter.conditions.length', 'filter.conditions.firstObject.field')\n  get isFlushed() {\n    return (\n      !this.isNew\n      && this.isDirty\n      && this.filter?.conditions?.length === 1\n      && !this.filter.conditions?.firstObject?.field\n    );\n  }\n\n  @computed('filter.isValidData', 'isDirty', 'isFlushed', 'isValid')\n  get isValidData() {\n    const hasValidChanges = this.isValid && this.filter.isValidData && this.isDirty;\n\n    return this.isFlushed || hasValidChanges;\n  }\n\n  @computed(\n    'filter.conditions.@each.field',\n    'filter.conditions.firstObject.field',\n    'filter.isNew',\n    'isDirty',\n  )\n  get canDiscardChanges(): boolean {\n    return (\n      this.isDirty\n      && (!this.filter.isNew\n        || this.filter.conditions?.length > 1\n        || !!this.filter.conditions?.firstObject?.field)\n    );\n  }\n\n  toJSON() {\n    return {\n      id: this._id,\n      type: this.type,\n      filter: this.filter && this.filter.toJSON(),\n    };\n  }\n\n  discardChanges() {\n    if (this.filter.isNew) {\n      this.filter.clear();\n      return;\n    }\n\n    this.rollbackAttributes();\n  }\n}\n","import type Project from 'client/data/models/project';\nimport type UserModel from 'client/data/models/user';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport enum FamiliarityWithCodingEnum {\n  NotFamiliar = 'notFamiliar',\n  Basics = 'basics',\n  ConfirmedDeveloper = 'confirmedDeveloper',\n}\n\nexport enum UsecaseEnum {\n  CustomerSupport = 'customer_support',\n  CustomerOnboarding = 'customer_onboarding',\n  FraudManagement = 'fraud_management',\n  FleetManagement = 'fleet_management',\n  ApplicationAndEnrollment = 'application_and_enrollment',\n  IDontKnowYet = 'i-dont-know-yet',\n  Other = 'other',\n}\n\nexport type Usecase = `${UsecaseEnum}` | string; // when usecase = other, we store the string\n\nexport default class GuestModel extends AbstractModel {\n  @attr('string') declare email: string;\n  @attr('string') declare stack: string;\n  @attr('string') declare familiarityWithCoding: FamiliarityWithCodingEnum;\n  @attr('string') declare usecase: Usecase | string;\n\n  @belongsTo('project', { async: false }) declare project: Project;\n  @belongsTo('user', { async: false }) declare user: UserModel;\n}\n","import type { RelationshipsFor } from '@ember-data/custom';\nimport type Model from '@ember-data/model';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { next } from '@ember/runloop';\nimport { AbortError } from '@ember-data/adapter/error';\n\nimport {\n  abortControllerPropertyName as getAbortControllerPropertyName,\n  lastWasErrorPropertyName as getLastWasErrorPropertyName,\n  queryIdPropertyName as getQueryIdPropertyName,\n  queryParamPropertyName as getQueryParamPropertyName,\n} from 'client/data/adapters/has-many-query-adapter';\nimport AbstractModel from 'client/data/models/abstract-model';\n\nlet queryId = 0;\n\nexport default class HasManyQueryModel extends AbstractModel {\n  /**\n   * Query a HasMany/BelongsTo relationship link.\n   *\n   * If you do something like this:\n   * ```javascript\n   * post.queryRecords('comments', { page: 1 });\n   * ```\n   *\n   * The call made to the server will look something like this:\n   * ```\n   * Started GET \"/api/v1/post/1/comments?page=1\"\n   * ```\n   *\n   */\n  async queryRecords<PropertyName extends string = Exclude<keyof this, keyof Model> & string>(\n    propertyName: PropertyName,\n    params: object,\n  ): Promise<ClientRecordModel[] | null> {\n    // abort the last query request for this property\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n    const abortControllerPropertyName: string = getAbortControllerPropertyName(propertyName);\n    const lastAbortController = this[abortControllerPropertyName] as AbortController | undefined;\n    if (lastAbortController) {\n      lastAbortController.abort();\n    }\n\n    // set the query params as a property on this record\n    const queryParamPropertyName = getQueryParamPropertyName(propertyName);\n    const queryIdPropertyName = getQueryIdPropertyName(propertyName);\n    const currentQueryId = queryId;\n    queryId += 1;\n\n    this[queryParamPropertyName] = params;\n    this[queryIdPropertyName] = currentQueryId;\n\n    // return the promise, clearing the ajax options\n    try {\n      return (await this.reloadRelationship(propertyName)) as ClientRecordModel[];\n    } catch (error) {\n      if (\n        error instanceof AbortError\n        || (typeof error === 'object' && 'name' in error && error.name === 'AbortError')\n      ) {\n        // ignore aborted requests\n        return null;\n      }\n      throw error;\n    } finally {\n      // don't clear parameters if they've been set by another request\n      if (this[queryIdPropertyName] === currentQueryId) {\n        this[abortControllerPropertyName] = undefined;\n      }\n    }\n  }\n\n  /**\n   * Get the relationship property for the given property name, reloading the async relationship if necessary.\n   *\n   * @param propertyName Relationship property name\n   * @returns {Ember.RSVP.Promise}\n   */\n  reloadRelationship<PropertyName extends string = RelationshipsFor<this> & string>(\n    propertyName: PropertyName,\n  ) {\n    // find out what kind of relationship this is\n    const relationship = this.getRelationship(propertyName);\n    const isHasMany = relationship && relationship.kind === 'hasMany';\n\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n    const reference = isHasMany\n      ? this.hasMany(propertyName as unknown as Exclude<keyof this, keyof Model>)\n      : this.belongsTo(propertyName as unknown as Exclude<keyof this, keyof Model>);\n    return new Promise((resolve) => {\n      // run.next, so that aborted promise gets rejected before starting another\n      next(() => {\n        const isLoaded = reference.value() !== null;\n        if (isLoaded) {\n          resolve(reference.reload());\n        } else {\n          // isLoaded is false when the last query resulted in an error, so if this load\n          // results in an error again, reload the reference to query the server again\n          const promise = reference.load().catch((error) => {\n            const lastWasErrorPropertyName = getLastWasErrorPropertyName(propertyName);\n            if (this[lastWasErrorPropertyName]) {\n              // last access to this property resulted in an error, so reload\n              return reference.reload();\n            }\n            // mark this result as an error for next time the property is queried\n            this[lastWasErrorPropertyName] = true;\n            throw error;\n          });\n          resolve(promise);\n        }\n      });\n    });\n  }\n}\n","import type EnvironmentModel from 'client/data/models/environment';\nimport type InboxModel from 'client/data/models/inbox';\nimport type UserModel from 'client/data/models/user';\nimport type WorkflowRunModel from 'client/data/models/workflow-run';\nimport type { CustomAsyncBelongsTo } from 'custom/utils';\n\nimport Model, { attr, belongsTo } from '@ember-data/model';\n\nimport { array } from 'client/decorators/array';\n\nexport enum InboxAssignmentStateEnum {\n  Todo = 'todo',\n  Doing = 'doing',\n  Done = 'done',\n  Canceled = 'canceled',\n  AutoCanceled = 'auto-canceled',\n}\n\ninterface InboxAssignmentInterface {\n  // user: UserModel;\n  environment: EnvironmentModel;\n  recordId: string;\n  createdAt: Date;\n  startedProcessingAt: Date | null;\n  closedAt: Date | null;\n  state: InboxAssignmentStateEnum;\n  lastActionDate: Date;\n  handlingTime: number;\n}\n\nexport default class InboxAssignmentModel extends Model implements InboxAssignmentInterface {\n  @attr('string') recordId: string;\n  @attr('date') createdAt: Date;\n  @attr('date') startedProcessingAt: Date;\n  @attr('date') closedAt: Date;\n  @attr('string') state: InboxAssignmentStateEnum;\n  // Used only during the creation of the assignment\n  @array('string', { defaultValue: null }) potentialRecordIds: string[] | null;\n\n  @attr('date') lastActionDate: Date;\n  @attr('number') handlingTime: number;\n\n  @belongsTo('inbox', { async: false, inverse: null }) inbox: InboxModel;\n  @belongsTo('user', { async: true }) user: CustomAsyncBelongsTo<UserModel>;\n  @belongsTo('environment', { async: false }) environment: EnvironmentModel;\n  @belongsTo('workflow-run', { async: true })\n  workflowRun?: CustomAsyncBelongsTo<WorkflowRunModel>;\n}\n","import { attr } from '@ember-data/model';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport enum InboxAutoUnassignUnitEnum {\n  Month = 'month',\n  Week = 'week',\n  Day = 'day',\n  Hour = 'hour',\n}\n\nexport interface InboxAutoUnassignmentConfigurationsAttributes {\n  duration: number;\n  unit: InboxAutoUnassignUnitEnum;\n}\n\nexport default class InboxAutoUnassignmentConfigurationsFragment\n  extends Fragment\n  implements InboxAutoUnassignmentConfigurationsAttributes\n{\n  @attr('number', { defaultValue: 0 }) duration: number;\n  @attr('string', { defaultValue: InboxAutoUnassignUnitEnum.Day }) unit: InboxAutoUnassignUnitEnum;\n\n  toJSON() {\n    return {\n      duration: this.duration,\n      unit: this.unit,\n    };\n  }\n}\n","import type { SortingOrderEnum } from 'client/data/models/collection';\nimport type InboxModel from 'client/data/models/inbox';\n\nimport { attr } from '@ember-data/model';\nimport { fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport interface InboxSortingFieldAttributes {\n  fieldName: string;\n  order: SortingOrderEnum;\n}\n\nexport default class InboxSortingFieldFragment\n  extends Fragment\n  implements InboxSortingFieldAttributes\n{\n  @attr('string') declare fieldName: string | null;\n  @attr('string') declare order: SortingOrderEnum | null;\n\n  @fragmentOwner() declare inbox: InboxModel;\n\n  get field() {\n    return this.inbox?.collection?.sortingFields.findBy('fieldName', this.fieldName);\n  }\n\n  toJSON() {\n    return {\n      fieldName: this.fieldName,\n      order: this.order,\n    };\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type InboxAssignmentModel from 'client/data/models/inbox-assignment';\nimport type InboxAutoUnassignmentConfigurationsFragment from 'client/data/models/inbox-auto-unassignment-configurations';\nimport type { InboxAutoUnassignmentConfigurationsAttributes } from 'client/data/models/inbox-auto-unassignment-configurations';\nimport type { InboxSortingFieldAttributes } from 'client/data/models/inbox-sorting-field';\nimport type RenderingModel from 'client/data/models/rendering';\nimport type SegmentModel from 'client/data/models/segment';\nimport type { CustomAsyncHasMany } from 'custom/utils';\nimport type { FragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\nimport { fragment, fragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\n\nexport enum InboxDispatchRuleEnum {\n  BasedOnSortingFields = 'basedOnSortingFields',\n  Random = 'random',\n}\n\nexport enum InboxTypeEnum {\n  Segment = 'segment',\n  Workflow = 'workflow',\n}\n\nexport const InboxDispatchRuleLabel: Record<InboxDispatchRuleEnum, string> = {\n  basedOnSortingFields: 'Field-based',\n  random: 'Random',\n};\n\nexport interface InboxInterface {\n  name: string;\n  icon?: string;\n  position: number;\n  collection: CollectionModel;\n  segment: SegmentModel;\n  rendering: RenderingModel;\n  sortingFields?: InboxSortingFieldAttributes[];\n  dispatchRule: InboxDispatchRuleEnum;\n  unassignAfter?: InboxAutoUnassignmentConfigurationsAttributes;\n  tasksLimit?: number | null;\n  canUsersReassign?: boolean;\n  type: InboxTypeEnum;\n}\n\nexport default class InboxModel extends AbstractLayoutModel implements InboxInterface {\n  @attr('string') name: string;\n  @attr('string') icon: string;\n  @attr('number', { defaultValue: 0 }) position: number;\n  @attr('number', { defaultValue: null }) tasksLimit: number;\n  @attr('boolean', { defaultValue: true }) canUsersReassign: boolean;\n  @attr('string', { defaultValue: InboxTypeEnum.Segment }) type: InboxTypeEnum;\n  @fragmentArray('inbox-sorting-field')\n  sortingFields: FragmentArray<'inbox-sorting-field'>;\n\n  @fragment('inbox-auto-unassignment-configurations', { defaultValue: null })\n  unassignAfter: InboxAutoUnassignmentConfigurationsFragment;\n\n  @attr('string', { defaultValue: InboxDispatchRuleEnum.BasedOnSortingFields })\n  dispatchRule: InboxDispatchRuleEnum;\n\n  @attr('string') teamId: string;\n\n  @belongsTo('collection', { async: false, inverse: 'inboxes' }) collection: CollectionModel;\n  @belongsTo('segment', { async: false, inverse: 'inbox' }) segment: SegmentModel;\n  @belongsTo('rendering', { async: false, inverse: 'inboxes' }) rendering: RenderingModel;\n  @hasMany('inbox-assignment', { async: true })\n  inboxAssignments: CustomAsyncHasMany<InboxAssignmentModel>;\n\n  get patchPath() {\n    const id = this.isNew ? '-' : this.id;\n    return `/inboxes/${id}`;\n  }\n\n  get nameWithIcon() {\n    return `${this.icon} ${this.name}`;\n  }\n\n  get nameWithCollection() {\n    return `${this.name} (${this.collection.singularizedDisplayName})`;\n  }\n\n  get modelToFetch() {\n    return this.type === InboxTypeEnum.Workflow ? this.collection : this.segment;\n  }\n\n  get isWorkflow() {\n    return this.type === InboxTypeEnum.Workflow;\n  }\n\n  toJSON() {\n    return {\n      id: this.id,\n      name: this.name,\n      icon: this.icon,\n      position: this.position,\n      collectionId: this.collection.id,\n      ...(this.type === InboxTypeEnum.Segment ? { segmentId: this.segment.id } : {}),\n      ...(this.dispatchRule !== InboxDispatchRuleEnum.Random\n        ? { sortingFields: this.sortingFields.map((sortingField) => sortingField.toJSON()) }\n        : {}),\n      dispatchRule: this.dispatchRule,\n      unassignAfter: this.unassignAfter && this.unassignAfter.toJSON(),\n      tasksLimit: this.tasksLimit,\n      canUsersReassign: this.canUsersReassign,\n      type: this.type,\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport interface IntegrationRequestInterface {\n  integrationName: string;\n  userIds: number[];\n}\n\nexport default class IntegrationRequestModel\n  extends AbstractModel\n  implements IntegrationRequestInterface\n{\n  @attr('string') declare integrationName: string;\n  @attr('base') declare userIds: number[];\n}\n","import type OrganizationModel from 'client/data/models/organization';\nimport type RoleModel from 'client/data/models/role';\nimport type TeamModel from 'client/data/models/team';\nimport type { FragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport { attr, belongsTo } from '@ember-data/model';\nimport { fragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport enum PermissionLevelEnum {\n  User = 'user',\n  Manager = 'manager',\n  Developer = 'developer',\n  Editor = 'editor',\n  Admin = 'admin',\n}\n\nexport default class InvitationModel extends AbstractModel {\n  @attr('string') declare email: string;\n  @attr('string') declare permissionLevel: `${PermissionLevelEnum}`;\n  @attr('string') declare secret: string;\n  @fragmentArray('user-tag') declare tags: FragmentArray<'user-tag'>;\n  @attr('boolean') declare isSsoAccountOnly: boolean;\n  @attr('boolean') declare accountAlreadyExists: boolean;\n  @attr('string') declare organizationSsoName: string;\n\n  @belongsTo('team', { async: false }) declare team: TeamModel;\n  @belongsTo('organization', { async: false }) declare organization: OrganizationModel;\n  @belongsTo('role', { async: false }) declare role: RoleModel;\n}\n","import type ProjectModel from 'client/data/models/project';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\nimport formatNumber from 'client/utils/format-number';\nimport getLocale from 'client/utils/get-locale';\n\nexport enum InvoiceStatusEnum {\n  /**\n   * The invoice has been created\n   */\n  InProgress = 'in progress',\n  /**\n   * The invoice has been sent to the customer (triggered on the first day of the following month)\n   */\n  Pending = 'pending',\n  /**\n   * The payment has been received,\n   * either through bank transfer or by charging the customer's card through Stripe\n   * this status is set by a job for Stripe payment or manually for bank transfer\n   */\n  Paid = 'paid',\n  /**\n   * Charging the card has failed\n   */\n  Rejected = 'rejected',\n  /**\n   * The invoice will not need to be paid\n   * this status is set manually\n   */\n  Canceled = 'canceled',\n  /**\n   * The invoice payment is delayed\n   * this status is set manually\n   */\n  Delayed = 'delayed',\n}\n\nexport default class InvoiceModel extends AbstractModel {\n  @attr('string') declare month: string;\n  @attr('number') declare price: number;\n  @attr('string') declare status: `${InvoiceStatusEnum}`;\n  @attr('boolean') declare quadernoPdfLinkAvailable: boolean;\n\n  @belongsTo('project', { async: false, inverse: null }) declare project: ProjectModel;\n\n  get statusColor() {\n    switch (this.status) {\n      case InvoiceStatusEnum.Pending:\n        return 'info';\n\n      case InvoiceStatusEnum.Canceled:\n        return '--color-contrast-high-100';\n\n      case InvoiceStatusEnum.Rejected:\n        return 'danger';\n\n      case InvoiceStatusEnum.Paid:\n        return 'success';\n\n      default:\n        return 'warning';\n    }\n  }\n\n  get formattedAmount() {\n    return formatNumber(this.price, {\n      locale: getLocale(),\n      currencyDisplay: 'narrowSymbol',\n      currency: 'USD',\n    }) as string;\n  }\n}\n","import type Project from 'client/data/models/project';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class IpWhitelistRuleModel extends AbstractModel {\n  @attr('string') declare name: string;\n  @attr('string') declare value: string;\n\n  @belongsTo('project') declare project: Project;\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class IpModel extends AbstractModel {\n  @attr('string') declare ip: string;\n}\n","import type ProjectModel from 'client/data/models/project';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport type AuthenticationType = 'none' | 'bearer' | 'oauth2';\n\nexport interface McpServerConfigInterface {\n  serverName: string;\n  serverUrl: string | null;\n  config: Record<string, unknown>;\n  authenticationType: AuthenticationType;\n  integrationName?: string;\n  isForestConnector: boolean;\n}\n\nexport default class McpServerConfigModel\n  extends AbstractModel\n  implements McpServerConfigInterface\n{\n  @attr('string') declare serverName: string;\n  @attr('string') declare serverUrl: string | null;\n  @attr('base') declare config: Record<string, unknown>;\n  @attr('string', { defaultValue: 'bearer' }) declare authenticationType: AuthenticationType;\n  @attr('string') declare integrationName?: string | null;\n  @attr('boolean', { defaultValue: false }) declare isForestConnector: boolean;\n  @belongsTo('project', { async: false }) declare project: ProjectModel;\n}\n","import type MessageModel from 'client/data/models/message';\nimport type UserModel from 'client/data/models/user';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class MentionModel extends AbstractModel {\n  @belongsTo('message', { async: false }) declare message: MessageModel;\n  @belongsTo('user', { async: false, inverse: null }) declare user: UserModel;\n\n  @attr('date') declare createdAt?: Date;\n  @attr('date') declare updatedAt?: Date;\n}\n","import type CollectionModel from 'client/data/models/collection';\n\nimport { belongsTo } from '@ember-data/model';\n\nimport User from 'client/data/models/user';\n\nexport default class MentionableModel extends User {\n  @belongsTo('collection', { async: false }) declare collection: CollectionModel;\n}\n","import type MentionModel from 'client/data/models/mention';\nimport type NoteModel from 'client/data/models/note';\nimport type UserModel from 'client/data/models/user';\n\nimport { type SyncHasMany, attr, belongsTo, hasMany } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class MessageModel extends AbstractModel {\n  // 'content' is a reserved property name on instances of classes extending Model,\n  // so we use 'messageContent'.\n  @attr('string') declare messageContent: string;\n  @attr('date', { defaultValue: () => new Date() }) declare createdAt: Date;\n  @belongsTo('note', { async: false }) declare note: NoteModel;\n  @belongsTo('user', { async: false }) declare author: UserModel;\n  @hasMany('mention', { async: false })\n  declare mentions: SyncHasMany<MentionModel>;\n}\n","import type { ModelCustomizationConfigurationActionTypeEnum } from 'client/data/models/model-customization-configuration-action';\nimport type ModelCustomizationConfigurationActionUpdateRecordFragment from 'client/data/models/model-customization-configuration-action-update-record';\nimport type ModelCustomizationConfigurationActionWebhookFragment from 'client/data/models/model-customization-configuration-action-webhook';\n\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport default abstract class AbstractModelCustomizationConfigurationActionTypeFragment extends Fragment {\n  abstract toJSON(options?: { includeId?: boolean }): object;\n}\n\nexport interface ModelCustomizationConfigurationActionTypeRegistry {\n  [ModelCustomizationConfigurationActionTypeEnum.Webhook]: ModelCustomizationConfigurationActionWebhookFragment;\n  [ModelCustomizationConfigurationActionTypeEnum.UpdateRecord]: ModelCustomizationConfigurationActionUpdateRecordFragment;\n}\n","import type FieldModel from 'client/data/models/field';\nimport type ModelCustomizationConfigurationActionUpdateRecordFragment from 'client/data/models/model-customization-configuration-action-update-record';\n\nimport { attr } from '@ember-data/model';\nimport { fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport default class ModelCustomizationConfigurationActionUpdateRecordFieldFragment extends Fragment {\n  @attr('string') fieldName: string;\n  @attr('base') value: unknown;\n  @fragmentOwner() declare parent: ModelCustomizationConfigurationActionUpdateRecordFragment;\n\n  get referenceField(): FieldModel {\n    return this.parent?.collection?.fields?.findBy('fieldName', this.fieldName);\n  }\n\n  get isDeprecated(): boolean {\n    return !this.referenceField;\n  }\n\n  get isValidForSave(): boolean {\n    if (!this.fieldName) return false;\n    if (!this.referenceField) return false;\n    if (this.referenceField.isReadOnly) return false;\n    return !this.referenceField.isRequired || Boolean(this.value);\n  }\n\n  toJSON() {\n    return {\n      fieldName: this.fieldName,\n      value: this.value,\n    };\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type ModelCustomizationConfigurationActionFragment from 'client/data/models/model-customization-configuration-action';\nimport type ModelCustomizationConfigurationActionUpdateRecordFieldFragment from 'client/data/models/model-customization-configuration-action-update-record-field';\n\nimport { fragmentArray, fragmentOwner } from 'ember-data-model-fragments/attributes';\n\nimport AbstractModelCustomizationConfigurationActionTypeFragment from 'client/data/models/model-customization-configuration-action-type';\n\nexport default class ModelCustomizationConfigurationActionUpdateRecordFragment extends AbstractModelCustomizationConfigurationActionTypeFragment {\n  @fragmentOwner() declare parent: ModelCustomizationConfigurationActionFragment;\n  @fragmentArray<ModelCustomizationConfigurationActionUpdateRecordFieldFragment>(\n    'model-customization-configuration-action-update-record-field',\n    { defaultValue: () => [] },\n  )\n  declare fields: ModelCustomizationConfigurationActionUpdateRecordFieldFragment[];\n\n  get isValidForSave(): boolean {\n    return Boolean(this.fields?.length && this.fields?.every((field) => field.isValidForSave));\n  }\n\n  get payloadForEvent(): object {\n    return {\n      staticFieldsCount: this.fields.length,\n    };\n  }\n\n  get requiresAgentReload(): boolean {\n    return false;\n  }\n\n  get collection(): CollectionModel {\n    return this.parent?.collection;\n  }\n\n  toJSON() {\n    return {\n      fields: this.fields?.map((field) => field.toJSON()),\n    };\n  }\n}\n","import { computed } from '@ember/object';\nimport { attr } from '@ember-data/model';\n\nimport AbstractModelCustomizationConfigurationActionTypeFragment from 'client/data/models/model-customization-configuration-action-type';\nimport { REGEX_HTTP_URL } from 'client/utils/regex';\n\nexport type Integration = 'zapier' | 'make' | 'n8n' | 'webhook';\n\nexport default class ModelCustomizationConfigurationActionWebhookFragment extends AbstractModelCustomizationConfigurationActionTypeFragment {\n  @attr('string') url?: string;\n  @attr('string', { defaultValue: 'zapier' }) integration: Integration;\n\n  @computed('integration', 'url')\n  get isValidForSave(): boolean {\n    if (!this.integration) {\n      return false;\n    }\n\n    return REGEX_HTTP_URL.test(this.url);\n  }\n\n  get payloadForEvent(): object {\n    return {\n      integration: this.integration,\n    };\n  }\n\n  get requiresAgentReload(): boolean {\n    return false;\n  }\n\n  toJSON() {\n    return {\n      integration: this.integration,\n      url: this.url || null,\n    };\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type ModelCustomizationModel from 'client/data/models/model-customization';\nimport type { ModelCustomizationConfigurationActionTypeRegistry } from 'client/data/models/model-customization-configuration-action-type';\n\nimport { attr } from '@ember-data/model';\nimport { fragment, fragmentOwner } from 'ember-data-model-fragments/attributes';\n\nimport { ActionTypeEnum } from 'client/data/models/custom-action';\nimport AbstractModelCustomizationConfigurationFragment from 'client/data/models/model-customization-configuration';\n\nexport enum ModelCustomizationConfigurationActionTypeEnum {\n  UpdateRecord = 'update-record',\n  Webhook = 'webhook',\n}\n\nexport default class ModelCustomizationConfigurationActionFragment<\n  MCCAT extends\n    ModelCustomizationConfigurationActionTypeEnum = ModelCustomizationConfigurationActionTypeEnum,\n> extends AbstractModelCustomizationConfigurationFragment {\n  @attr('string', { defaultValue: ActionTypeEnum.Single }) scope: ActionTypeEnum;\n  @attr('string', { defaultValue: ModelCustomizationConfigurationActionTypeEnum.UpdateRecord })\n  type: ModelCustomizationConfigurationActionTypeEnum;\n\n  @fragment<ModelCustomizationConfigurationActionFragment<MCCAT>>(\n    'model-customization-configuration-action',\n    {\n      polymorphic: true,\n      typeKey: (data: object, owner: ModelCustomizationConfigurationActionFragment<MCCAT>) =>\n        `model-customization-configuration-action-${owner.type}`,\n      defaultValue: () => ({}),\n    },\n  )\n  configuration: ModelCustomizationConfigurationActionTypeRegistry[MCCAT];\n\n  @fragmentOwner() declare parent: ModelCustomizationModel;\n\n  get isValidForSave(): boolean {\n    if (!Object.values(ActionTypeEnum).includes(this.scope)) {\n      return false;\n    }\n\n    return this.configuration.isValidForSave;\n  }\n\n  get payloadForEvent(): object {\n    return {\n      mode: this.type,\n      ...this.configuration.payloadForEvent,\n    };\n  }\n\n  get requiresAgentReload(): boolean {\n    const dirtyFields = Object.keys(this.changedAttributes);\n    if (['scope'].every((field) => dirtyFields.includes(field))) {\n      return true;\n    }\n\n    return this.configuration.requiresAgentReload;\n  }\n\n  get collection(): CollectionModel {\n    return this.parent?.collection;\n  }\n\n  toJSON() {\n    return {\n      scope: this.scope,\n      type: this.type,\n      configuration: this.configuration?.toJSON(),\n    };\n  }\n}\n","import type { ModelCustomizationTypeEnum } from 'client/data/models/model-customization';\nimport type ModelCustomizationConfigurationActionFragment from 'client/data/models/model-customization-configuration-action';\n\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport interface ModelCustomizationConfigurationRegistry {\n  [ModelCustomizationTypeEnum.Action]: ModelCustomizationConfigurationActionFragment;\n}\n\nexport default abstract class AbstractModelCustomizationConfigurationFragment extends Fragment {}\n","import type CollectionModel from 'client/data/models/collection';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type { ModelCustomizationConfigurationRegistry } from 'client/data/models/model-customization-configuration';\n\nimport { attr, belongsTo } from '@ember-data/model';\nimport { fragment } from 'ember-data-model-fragments/attributes';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport enum ModelCustomizationTypeEnum {\n  Action = 'action',\n}\n\nexport default class ModelCustomizationModel<\n  MCT extends ModelCustomizationTypeEnum = ModelCustomizationTypeEnum,\n> extends AbstractModel {\n  @attr('string') declare name: string;\n  @attr('string') declare modelName: string;\n  @attr('string') declare type: ModelCustomizationTypeEnum;\n  @belongsTo('collection', { async: false }) declare collection: CollectionModel;\n  @belongsTo('environment', { async: false }) declare environment: EnvironmentModel;\n  @fragment<ModelCustomizationModel<MCT>>('model-customization-configuration', {\n    polymorphic: true,\n    typeKey: (data: object, owner: ModelCustomizationModel<MCT>) =>\n      `model-customization-configuration-${owner.type}`,\n    defaultValue: () => ({}),\n  })\n  configuration: ModelCustomizationConfigurationRegistry[MCT];\n\n  get isValidForSave(): boolean {\n    if (!this.name) {\n      return false;\n    }\n    return this.configuration.isValidForSave;\n  }\n\n  get payloadForEvent(): object {\n    return {\n      ...this.configuration.payloadForEvent,\n    };\n  }\n\n  get requiresAgentReload(): boolean {\n    return this.configuration.requiresAgentReload;\n  }\n\n  toJSON() {\n    return {\n      name: this.name || null,\n      modelName: this.modelName,\n      type: this.type || null,\n      configuration: this.configuration?.toJSON(),\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class NativeQueryConnectionModel extends AbstractModel {\n  @attr('base') declare name: string;\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type MessageModel from 'client/data/models/message';\nimport type TeamModel from 'client/data/models/team';\nimport type UserModel from 'client/data/models/user';\nimport type { CustomAsyncHasMany } from 'custom/utils';\n\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class NoteModel extends AbstractModel {\n  @attr('string') declare title: string;\n  @attr('string') declare recordId: string;\n  @attr('string') declare description: string;\n  @attr('date') declare archivedAt: Date;\n  @attr('date') declare createdAt: Date;\n  @attr('date') declare updatedAt: Date;\n  @attr('date') declare lastMessageAt: Date;\n  @attr('date') declare deletedAt: Date;\n  @attr('number') declare messagesCount: number;\n  @attr('boolean') declare isUserAllRead: boolean;\n\n  @belongsTo('user', { async: false }) declare author: UserModel;\n  @belongsTo('collection', { async: false }) declare collection: CollectionModel;\n  @belongsTo('team', { async: false }) declare team: TeamModel;\n  @hasMany('message', { async: true }) declare messages: CustomAsyncHasMany<MessageModel>;\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class NotificationModel extends AbstractModel {\n  @attr('number') declare count: number;\n}\n","import type ApplicationTokenModel from 'client/data/models/application-token';\nimport type BillingModel from 'client/data/models/billing';\nimport type EnvironmentIncompatibleModel from 'client/data/models/environment-incompatible';\nimport type ProjectModel from 'client/data/models/project';\nimport type SamlConfigurationModel from 'client/data/models/saml-configuration';\nimport type UserModel from 'client/data/models/user';\nimport type { CustomAsyncBelongsTo, CustomAsyncHasMany } from 'custom/utils';\n\nimport { computed } from '@ember/object';\nimport { filterBy } from '@ember/object/computed';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\n\nimport HasManyQueryModel from 'client/data/models/has-many-query-model';\nimport getLocale from 'client/utils/get-locale';\n\nexport default class OrganizationModel extends HasManyQueryModel {\n  @attr('string') declare name: string;\n  @attr('string') declare longName: string | null;\n  @attr('string') declare pictureUrl: string | null;\n  @attr('boolean') declare isPersonal: boolean;\n  @attr('string') declare permissionLevel: 'owner' | null;\n  @attr('boolean') declare isSsoAvailable: boolean;\n\n  @belongsTo('billing', { async: true }) declare billing: CustomAsyncBelongsTo<BillingModel>;\n  @belongsTo('saml-configuration', { async: true })\n  declare samlConfiguration: CustomAsyncBelongsTo<SamlConfigurationModel>;\n\n  @hasMany('user', { async: true, inverse: 'organizations' })\n  declare users: CustomAsyncHasMany<UserModel>;\n\n  @hasMany('project', { async: true }) declare projects: CustomAsyncHasMany<ProjectModel>;\n  @hasMany('user', { async: true }) declare owners: CustomAsyncHasMany<UserModel>;\n  @hasMany('application-token', { async: true })\n  declare applicationTokens: CustomAsyncHasMany<ApplicationTokenModel>;\n\n  @hasMany('environment-incompatible', { async: true })\n  declare environmentsIncompatibleWithSaml: CustomAsyncHasMany<EnvironmentIncompatibleModel>;\n\n  @tracked locale: string | null = null;\n\n  @filterBy('users', 'hasDirtyAttributes', true) declare dirtyUsers: UserModel[];\n\n  @computed('locale')\n  get localeOrDefault() {\n    return this.locale ? this.locale : getLocale();\n  }\n\n  @computed('permissionLevel')\n  get isOwner() {\n    return this.permissionLevel === 'owner';\n  }\n\n  @computed('isOwner')\n  get canAccessOrganizationSettings() {\n    return this.isOwner;\n  }\n\n  @computed('longName', 'name')\n  get longNameOrDefault() {\n    return this.longName || this.name;\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class PasswordRequestModel extends AbstractModel {\n  @attr('string') declare email: string;\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class PasswordModel extends AbstractModel {\n  @attr('string') declare token: string;\n  @attr('string') declare password: string;\n  @attr('string') declare passwordConfirmation: string;\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport enum PlanTypesEnum {\n  Community = 'community',\n  Starter = 'starter',\n  Plus = 'plus',\n  Enterprise = 'enterprise',\n  Grandfather = 'grandfather',\n}\n\nexport enum PlanUnitsEnum {\n  User = 'user',\n  Activity = 'activity',\n  Flat = 'flat',\n}\nexport enum EnvironmentsFeaturesEnum {\n  ActivityLogs = 'activityLogs',\n  AdminHistory = 'adminHistory',\n  Approval = 'approval',\n  AutoLogout = 'autoLogout',\n  Collaboration = 'collaboration',\n  Explorer = 'explorer',\n  Inbox = 'inbox',\n  IpWhitelist = 'ipWhitelist',\n  LiveQuery = 'liveQuery',\n  McpServer = 'mcpServer',\n  MultipleDashboards = 'multipleDashboards',\n  MultipleRoles = 'multipleRoles', // seems deleted server-side\n  RecordDashboard = 'recordDashboard',\n  RenderingsBackup = 'renderingsBackup',\n  Scopes = 'scopes',\n  SmartCharts = 'smartCharts',\n  SmartViews = 'smartViews',\n  SummaryView = 'summaryView',\n  Teams = 'teams', // seems deleted server-side\n  TeamFeaturesDeactivation = 'teamFeaturesDeactivation',\n  TeamPerformance = 'teamPerformance',\n  ThirdPartyIncognito = 'thirdPartyIncognito',\n  TwoFactorAuthentication = 'twoFactorAuthentication',\n  UserProvisioning = 'userProvisioning',\n  WhiteLabel = 'whiteLabel',\n  Workflow = 'workflow',\n  WorkspaceOnRecord = 'workspaceOnRecord',\n}\n\nexport enum OrganizationsFeaturesEnum {\n  Sso = 'sso',\n}\n\nexport default class PlanModel extends AbstractModel {\n  @attr('string') declare displayName: string;\n  @attr('string') declare type: PlanTypesEnum;\n  @attr('string') declare unit: PlanUnitsEnum;\n  @attr('number') declare unitCount: number;\n  @attr('string') declare price: string;\n  @attr('number') declare maxUsers: number;\n  @attr() declare featuresEnvironmentsAll: EnvironmentsFeaturesEnum[];\n  @attr() declare featuresEnvironmentsDevelopment: EnvironmentsFeaturesEnum[];\n  @attr() declare featuresOrganization: OrganizationsFeaturesEnum[];\n  @attr('boolean') declare isTrial: boolean;\n  @attr('number') declare trialDurationInDays: number;\n  @attr('number') declare maxRoles: number;\n  @attr('number') declare maxTeams: number;\n  @attr('number') declare maxRemoteEnvironments: number;\n  @attr() declare descriptions: string[];\n  @attr() declare descriptionsFullHosted: string[];\n  @attr('boolean') declare isActive: boolean;\n}\n","import HasManyQueryModel from 'client/data/models/has-many-query-model';\n\nexport default class PolymorphicClientModel extends HasManyQueryModel {}\n","import type PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\nimport type Project from 'client/data/models/project';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport HasManyQueryModel from 'client/data/models/has-many-query-model';\n\nexport default class ProjectStatisticModel extends HasManyQueryModel {\n  @attr('number') declare numberUsers: number;\n  @attr('number') declare numberInvitations: number;\n\n  @belongsTo('project', { async: true }) declare project: PromiseProxyMixin<Project>;\n}\n","import type Billing from 'client/data/models/billing';\nimport type Branch from 'client/data/models/branch';\nimport type BrowserExtensionConfigurationModel from 'client/data/models/browser-extension-configuration';\nimport type CustomDomain from 'client/data/models/custom-domain';\nimport type Environment from 'client/data/models/environment';\nimport type Guest from 'client/data/models/guest';\nimport type InvitationModel from 'client/data/models/invitation';\nimport type InvoiceModel from 'client/data/models/invoice';\nimport type IpWhitelistRule from 'client/data/models/ip-whitelist-rule';\nimport type McpServerConfigModel from 'client/data/models/mcp-server-config';\nimport type OrganizationModel from 'client/data/models/organization';\nimport type ProjectStatisticModel from 'client/data/models/project-statistic';\nimport type Review from 'client/data/models/review';\nimport type RoleModel from 'client/data/models/role';\nimport type Team from 'client/data/models/team';\nimport type Trial from 'client/data/models/trial';\nimport type UserModel from 'client/data/models/user';\nimport type UserInvitationProject from 'client/data/models/user-invitation-project';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type { AgentsEnum } from 'client/utils/agent';\nimport type { DatabaseTypeEnum } from 'client/utils/database';\nimport type { CustomAsyncBelongsTo, CustomAsyncHasMany } from 'custom/utils';\n\nimport { computed } from '@ember/object';\nimport { bool, equal, filter, filterBy } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\n\nimport HasManyQueryModel from 'client/data/models/has-many-query-model';\nimport { array } from 'client/decorators/array';\nimport ColorUtils from 'client/utils/color-utils';\nimport { PromiseObject } from 'client/utils/ember-promise';\nimport getLocale from 'client/utils/get-locale';\n\nexport type ProjectFeatures = {\n  performanceWarner?: boolean;\n  processDrivenNavigation?: boolean;\n  mockedAgent?: boolean;\n};\n\nexport enum ProjectArchitectureEnum {\n  InApp = 'in-app',\n  Microservice = 'microservice',\n  Cloud = 'cloud',\n}\n\nexport type PremiumFeatures =\n  | 'premiumActivityLogs'\n  | 'premiumApproval'\n  | 'premiumUnlimitedTeams'\n  | 'premiumMultipleDashboards'\n  | 'premiumWhiteLabel'\n  | 'premiumCollaboration'\n  | 'premiumExplorer'\n  | 'premiumRecordDashboard'\n  | 'premiumScopes'\n  | 'premiumSmartCharts'\n  | 'premiumSmartViews'\n  | 'premiumSummaryView'\n  | 'premiumThirdPartyIncognito'\n  | 'premiumLiveQuery'\n  | 'premiumIpWhitelist'\n  | 'premiumTwoFactorAuthentication'\n  | 'premiumAutoLogout'\n  | 'premiumInbox'\n  | 'premiumTeamPerformance';\n\nexport default class ProjectModel extends HasManyQueryModel {\n  @service() declare currentUser: CurrentUserService;\n\n  @attr('string') declare name: string;\n  @attr('string') declare pictureUrl: string;\n  @attr('string') declare origin: string;\n  @attr('boolean') declare canDelete: boolean;\n  @attr('boolean') declare canEdit: boolean;\n  @attr('string') declare primaryColor: string;\n  @array('string') declare premiumFeaturesPrivileges: string[];\n  @attr('string') declare installationStack: string;\n  @attr('base') declare features: ProjectFeatures;\n  @attr('date') declare premiumActivityLogs: Date;\n  @attr('date') declare premiumApproval: Date;\n  @attr('date') declare premiumUnlimitedTeams: Date;\n  @attr('date') declare premiumMultipleDashboards: Date;\n  @attr('date') declare premiumWhiteLabel: Date;\n  @attr('date') declare premiumCollaboration: Date;\n  @attr('date') declare premiumExplorer: Date;\n  @attr('date') declare premiumRecordDashboard: Date;\n  @attr('date') declare premiumScopes: Date;\n  @attr('date') declare premiumSmartCharts: Date;\n  @attr('date') declare premiumSmartViews: Date;\n  @attr('date') declare premiumSummaryView: Date;\n  @attr('date') declare premiumThirdPartyIncognito: Date;\n  @attr('date') declare premiumLiveQuery: Date;\n  @attr('date') declare premiumIpWhitelist: Date;\n  @attr('date') declare premiumTwoFactorAuthentication: Date;\n  @attr('date') declare premiumAutoLogout: Date;\n  @attr('date') declare premiumInbox: Date;\n  @attr('date') declare premiumTeamPerformance: Date;\n  @attr('boolean') declare useIpWhitelist: boolean;\n  @attr('boolean') declare useTwoFactorAuthentication: boolean;\n  @attr('string') declare timezone: string;\n  @attr('date') declare initializedAt: Date;\n  @attr('string') declare locale: string;\n  @attr('number') declare inactiveDurationBeforeLogout: number;\n  @attr('string') declare planLimitationStatus: string;\n  @attr('string') declare organizationId: string;\n  @attr('boolean') declare canStartTrial: boolean;\n  @attr('string') declare architecture: `${ProjectArchitectureEnum}`;\n  @attr('string') declare installation: string;\n  @attr('string') declare agent: `${AgentsEnum}`;\n  @attr('string') declare databaseType: `${DatabaseTypeEnum}` | 'other';\n  @attr('string') declare flow: string;\n  @attr('boolean') declare hasScimToken: boolean;\n\n  @belongsTo('environment', { async: false }) declare defaultEnvironment: Environment;\n  @belongsTo('guest', { async: false }) declare guest: Guest;\n  @belongsTo('billing', { async: true }) declare billing: CustomAsyncBelongsTo<Billing>;\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-ignore\n  @belongsTo('billing', { async: true, inverse: null })\n  declare billingDetailed: CustomAsyncBelongsTo<Billing>;\n\n  @belongsTo('custom-domain', { async: true })\n  declare customDomain: CustomAsyncBelongsTo<CustomDomain>;\n\n  @belongsTo('organization', { async: true })\n  declare organization: CustomAsyncBelongsTo<OrganizationModel>;\n\n  @belongsTo('project-statistic', { async: true })\n  declare statistics: CustomAsyncBelongsTo<ProjectStatisticModel>;\n\n  @belongsTo('browser-extension-configuration', { async: true })\n  declare browserExtensionConfiguration: CustomAsyncBelongsTo<BrowserExtensionConfigurationModel>;\n\n  @belongsTo('trial', { async: true }) declare trial: CustomAsyncBelongsTo<Trial>;\n\n  @hasMany('user', { async: true }) declare users: CustomAsyncHasMany<UserModel>;\n  @hasMany('team', { async: true }) declare teams: CustomAsyncHasMany<Team>;\n  @hasMany('invitation', { async: true }) declare invitations: CustomAsyncHasMany<InvitationModel>;\n  @hasMany('environment', { async: true, inverse: 'project' })\n  declare environments: CustomAsyncHasMany<Environment>;\n\n  @hasMany('mcp-server-config', { async: true })\n  declare mcpServerConfigs: CustomAsyncHasMany<McpServerConfigModel>;\n\n  @hasMany('ip-whitelist-rule', { async: true })\n  declare ipWhitelistRules: CustomAsyncHasMany<IpWhitelistRule>;\n\n  @hasMany('branch', { async: true, inverse: null }) declare branches: CustomAsyncHasMany<Branch>;\n  @hasMany('role', { async: true }) declare roles: CustomAsyncHasMany<RoleModel>;\n  @hasMany('user-invitation-project', { async: true })\n  declare userInvitationProjects: CustomAsyncHasMany<UserInvitationProject>;\n\n  @hasMany('user', { async: true }) declare administrators: CustomAsyncHasMany<UserModel>;\n\n  @belongsTo('review', { async: true }) declare review: CustomAsyncBelongsTo<Review>;\n\n  @hasMany('invoice', { async: true, inverse: null })\n  declare invoices: CustomAsyncHasMany<InvoiceModel>;\n\n  @equal('origin', 'Lumber') declare isOriginLumber: boolean;\n  @equal('planLimitationStatus', 'warning') declare isPlanLimitationWarning: boolean;\n  @equal('planLimitationStatus', 'blocked') declare isPlanLimitationBlocked: boolean;\n\n  @bool('premiumThirdPartyIncognito') declare thirdPartyServicesTrackingDisabled: boolean;\n\n  @filterBy('teams', 'hasDirtyAttributes', true) declare dirtyTeams: Team[];\n  @filterBy('users', 'hasDirtyAttributes', true) declare dirtyUsers: UserModel[];\n  @filterBy('environments', 'hasDirtyAttributes', true) declare dirtyEnvironments: Environment[];\n  @filterBy('environments', 'isActive', true) declare activeEnvironments: Environment[];\n  @filter('environments', (environment: unknown) => !(environment as Environment).areRolesDisabled)\n  declare remoteEnvironments: Environment[];\n\n  deployedAt: Date | null = null;\n\n  @computed('primaryColor')\n  get primaryColorOrDefault() {\n    return ColorUtils.colorOrDefault(this.primaryColor);\n  }\n\n  get isMockedAgent() {\n    return this.features?.mockedAgent;\n  }\n\n  @computed('locale')\n  get localeOrDefault() {\n    return this.locale ? this.locale : getLocale();\n  }\n\n  @computed('environments.content.@each.type', 'environments.content.@each.isActive')\n  get productionEnvironment() {\n    let promise: Promise<Environment>;\n    // eslint-disable-next-line sonarjs/no-try-promise\n    try {\n      promise =\n        this.environments?.then((environments) => environments.findBy('type', 'production'))\n        ?? Promise.resolve<Environment>(undefined);\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      console.warn('Failed to retrieve production environment');\n      promise = Promise.resolve<Environment>(undefined);\n    }\n\n    return PromiseObject.create({ promise });\n  }\n\n  @computed('environments.@each.isActive')\n  get isSetup() {\n    return this.environments.then((environments) =>\n      environments.any((environment) => environment.isActive),\n    );\n  }\n\n  @computed('premiumFeaturesPrivileges')\n  get hasPremiumActivityLogsPrivilege() {\n    return (\n      this.premiumFeaturesPrivileges && this.premiumFeaturesPrivileges.includes('activityLogs')\n    );\n  }\n\n  @computed('premiumFeaturesPrivileges')\n  get hasPremiumAdminHistoryPrivilege() {\n    return (\n      this.premiumFeaturesPrivileges && this.premiumFeaturesPrivileges.includes('adminHistory')\n    );\n  }\n\n  @computed('premiumFeaturesPrivileges')\n  get hasPremiumMultipleDashboardsPrivilege() {\n    return (\n      this.premiumFeaturesPrivileges\n      && this.premiumFeaturesPrivileges.includes('multipleDashboards')\n    );\n  }\n\n  @computed('premiumFeaturesPrivileges')\n  get hasPremiumCollaborationPrivilege() {\n    return (\n      this.premiumFeaturesPrivileges && this.premiumFeaturesPrivileges.includes('collaboration')\n    );\n  }\n\n  @computed('premiumFeaturesPrivileges')\n  get hasPremiumExplorerPrivilege() {\n    return this.premiumFeaturesPrivileges && this.premiumFeaturesPrivileges.includes('explorer');\n  }\n\n  @computed('premiumFeaturesPrivileges')\n  get hasPremiumRecordDashboardPrivilege() {\n    return (\n      this.premiumFeaturesPrivileges && this.premiumFeaturesPrivileges.includes('recordDashboard')\n    );\n  }\n\n  @computed('premiumFeaturesPrivileges')\n  get hasPremiumSmartChartsPrivilege() {\n    return this.premiumFeaturesPrivileges && this.premiumFeaturesPrivileges.includes('smartCharts');\n  }\n\n  @computed('premiumFeaturesPrivileges')\n  get hasPremiumSmartViewsPrivilege() {\n    return this.premiumFeaturesPrivileges && this.premiumFeaturesPrivileges.includes('smartViews');\n  }\n\n  @computed('premiumFeaturesPrivileges')\n  get hasPremiumSummaryViewPrivilege() {\n    return this.premiumFeaturesPrivileges && this.premiumFeaturesPrivileges.includes('summaryView');\n  }\n\n  @computed('premiumFeaturesPrivileges')\n  get hasPremiumLiveQueryPrivilege() {\n    return this.premiumFeaturesPrivileges && this.premiumFeaturesPrivileges.includes('liveQuery');\n  }\n\n  @computed('premiumFeaturesPrivileges')\n  get hasPremiumUnlimitedTeamsPrivilege() {\n    return (\n      this.premiumFeaturesPrivileges && this.premiumFeaturesPrivileges.includes('unlimitedTeams')\n    );\n  }\n\n  @computed('premiumFeaturesPrivileges')\n  get hasPremiumUnlimitedRolesPrivilege() {\n    return (\n      this.premiumFeaturesPrivileges && this.premiumFeaturesPrivileges.includes('unlimitedRoles')\n    );\n  }\n\n  @computed('activeEnvironments.[]')\n  get hasProductionOrRemote() {\n    return this.activeEnvironments?.any(\n      (environment) => environment.isProduction || environment.isRemote,\n    );\n  }\n\n  @computed('environments.[]')\n  get availableEnvironments() {\n    return this.environments.filter(\n      (environment) =>\n        !environment.isDeleted\n        && !environment.isNew\n        && (environment.isActive || !environment.isProduction),\n    );\n  }\n\n  @computed('activeEnvironments')\n  get activeDevelopmentEnvironments() {\n    return this.activeEnvironments?.filter((environment) => environment.isDevelopment) || [];\n  }\n\n  @computed(\n    'activeDevelopmentEnvironments',\n    'activeEnvironments',\n    'currentUser.model.id',\n    'environments',\n  )\n  get ownEnvironments() {\n    return (\n      this.environments?.filter((e) => e.belongsTo('owner').id() === this.currentUser.model?.id)\n      || []\n    );\n  }\n\n  @computed('activeDevelopmentEnvironments', 'ownEnvironments')\n  get accessibleDevelopmentEnvironments() {\n    return this.ownEnvironments.filter((e) => this.activeDevelopmentEnvironments.includes(e));\n  }\n\n  @computed(\n    'activeEnvironments',\n    'currentUser.model.permissionLevel',\n    'currentUser.model.role.permissions.environments.@each.enabled',\n  )\n  get accessibleRemoteEnvironments() {\n    const remoteEnvironmentsWithRolesDisabled = this.activeEnvironments?.filter((environment) => {\n      return environment.isRemote && environment.areRolesDisabled;\n    });\n\n    const environmentsPermissions = this.currentUser.model?.role?.permissions?.environments || [];\n\n    const environmentsWithPermissions = environmentsPermissions\n      .filter(\n        (permissions) =>\n          permissions.enabled\n          && permissions.environment?.isActive\n          && !permissions.environment.isDevelopment, // Should never happen, except when a remote environment has been switched from remote to development in the forest CRUD form ( bug )\n      )\n      .map((permissions) => permissions.environment);\n\n    return [...environmentsWithPermissions, ...remoteEnvironmentsWithRolesDisabled];\n  }\n\n  @computed('accessibleDevelopmentEnvironments', 'accessibleRemoteEnvironments')\n  get accessibleEnvironments() {\n    return [...this.accessibleRemoteEnvironments, ...this.accessibleDevelopmentEnvironments]\n      .sort((e1, e2) => {\n        const compareIsProduction = +e1.isProduction - +e2.isProduction;\n        if (compareIsProduction) return compareIsProduction;\n        const compareIsDevelopment = +e1.isDevelopment - +e2.isDevelopment;\n        if (compareIsDevelopment) return compareIsDevelopment;\n        return new Date(e1.updatedAt).getTime() - new Date(e2.updatedAt).getTime();\n      })\n      .reverse();\n  }\n\n  @computed('accessibleEnvironments')\n  get nonBlockedAccessibleEnvironments() {\n    return this.accessibleEnvironments.filter((environment) => !environment.isBlocked);\n  }\n\n  get accessibleTestEnvironments() {\n    return this.accessibleEnvironments.filter(\n      (environment) => environment.isRemote && environment.areRolesDisabled,\n    );\n  }\n\n  get accessibleNonTestEnvironments() {\n    return this.accessibleEnvironments.filter(\n      (environment) => !(environment.isRemote && environment.areRolesDisabled),\n    );\n  }\n\n  @computed('name')\n  get initials() {\n    return `${this.name.charAt(0)}${(this.name.split(' ')[1] || '').charAt(0)}`;\n  }\n\n  get isFullHostedProject() {\n    return Boolean(this.defaultEnvironment?.isFullHostedAgent);\n  }\n\n  get isSelfHostedProject() {\n    return !this.isFullHostedProject;\n  }\n}\n","import type ActivityLog from 'client/data/models/activity-log';\nimport type Collection from 'client/data/models/collection';\nimport type Dashboard from 'client/data/models/dashboard';\nimport type Environment from 'client/data/models/environment';\nimport type FolderModel from 'client/data/models/folder';\nimport type FragmentRenderingSection from 'client/data/models/fragment-rendering-section';\nimport type InboxModel from 'client/data/models/inbox';\nimport type Note from 'client/data/models/note';\nimport type Team from 'client/data/models/team';\nimport type Workspace from 'client/data/models/workspace';\nimport type { CustomAsyncBelongsTo, CustomAsyncHasMany } from 'custom/utils';\nimport type { FragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport { computed } from '@ember/object';\nimport { alias, filter, filterBy, gt, sort } from '@ember/object/computed';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { fragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\n\nconst pathToRenderingBuilder = (projectName: string, environmentName: string, teamName: string) =>\n  `/${encodeURIComponent(projectName)}/${encodeURIComponent(environmentName)}/${encodeURIComponent(\n    teamName,\n  )}`;\n\nexport { pathToRenderingBuilder };\n\nexport default class RenderingModel extends AbstractLayoutModel {\n  collectionsSorting = ['singularizedDisplayName:asc'];\n  dashboardsSorting = ['name:asc'];\n  workspacesSorting = ['name:asc'];\n  patchPath = '';\n  @tracked environment: Environment = null;\n  @tracked team: Team = null;\n\n  @fragmentArray('fragment-rendering-section')\n  declare sections: FragmentArray<'fragment-rendering-section'>;\n\n  @attr('string') declare teamId: string;\n  @attr('string') declare environmentId: string;\n\n  @belongsTo('environment', { async: true })\n  declare _environment: CustomAsyncBelongsTo<Environment>;\n\n  @belongsTo('team', { async: true }) declare _team: CustomAsyncBelongsTo<Team>;\n  @hasMany('collection', { async: false }) declare collections: Collection[];\n  @hasMany('dashboard', { async: false }) declare dashboards: Dashboard[];\n  @hasMany('workspace', { async: false }) declare workspaces: Workspace[];\n  @hasMany('inbox', { async: false }) declare inboxes: InboxModel[];\n  @hasMany('note', { async: true }) declare notesCreated: CustomAsyncHasMany<Note>;\n  @hasMany('note', { async: true }) declare notesMentioned: CustomAsyncHasMany<Note>;\n  @hasMany('activity-log', { async: true }) declare activityLogs: CustomAsyncHasMany<ActivityLog>;\n  @hasMany('folder', { async: false }) declare foldersWithMain: FolderModel[];\n\n  @alias('dashboardsSorted.firstObject') declare firstDashboard: Dashboard;\n  @sort('dashboards', 'dashboardsSorting') declare dashboardsSorted: Dashboard[];\n  @sort('realCollections', 'collectionsSorting') declare collectionsSorted: Collection[];\n  @sort('workspaces', 'workspacesSorting') declare workspacesSorted: Workspace[];\n  @gt('realWorkspaces.length', 0) declare hasWorkspaces: boolean;\n  @filterBy('sectionsDecoratedVisible', 'isReorderable', true)\n  declare sectionsDecoratedOrderableVisible: FragmentRenderingSection[];\n\n  @filter('sections', (section) => !(section as FragmentRenderingSection).isReorderable)\n  declare sectionsNonDraggable: FragmentRenderingSection[];\n\n  @filter('collections', (collection) => {\n    return !(collection as Collection).isEmbedded;\n  })\n  declare realCollections: Collection[];\n\n  @filterBy('realCollections', 'onlyForRelationships', false)\n  declare collectionsAccessibleGlobally: Collection[];\n\n  @filterBy('workspaces', 'isNew', false) declare realWorkspaces: Workspace[];\n\n  private get nonDeletedFolders() {\n    return this.foldersWithMain.filter(\n      (folder) =>\n        !folder.isDestroyed && !folder.isDestroying && !folder.isDeleted && folder.isLoaded,\n    );\n  }\n\n  get mainFolder() {\n    return this.nonDeletedFolders.findBy('isMain');\n  }\n\n  get folders() {\n    return this.nonDeletedFolders.filter((folder) => !folder.isMain);\n  }\n\n  get sectionsDecoratedVisible() {\n    return this.sections.filter(\n      (section) => section.shouldDisplay && !section.isDeactivatedForTeam,\n    );\n  }\n\n  get sectionsDeactivatedForTeam() {\n    return this.sections.filter((section) => section.isDeactivatedForTeam);\n  }\n\n  @computed('environment.apiEndpoint')\n  get hasSecureEndpoint() {\n    return this.environment.apiEndpoint.indexOf('https') === 0;\n  }\n\n  get hasCollections() {\n    return this.collections.length > 0;\n  }\n\n  get hasNoCollections() {\n    return !this.hasCollections;\n  }\n\n  get hasDashboards() {\n    return this.dashboards.length > 0;\n  }\n\n  get isComputing() {\n    return this.hasNoCollections && !this.hasDashboards;\n  }\n\n  async loadEnvironment(): Promise<Environment> {\n    this.environment = await this._environment;\n    return this.environment;\n  }\n\n  async loadTeam(): Promise<Team> {\n    this.team = await this._team;\n    return this.team;\n  }\n\n  toJSON() {\n    return {\n      sections: this.sections,\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport enum EvaluationEnum {\n  Bad = 'bad',\n  Average = 'average',\n  Good = 'good',\n}\n\nexport default class ReviewModel extends AbstractModel {\n  @attr('string') declare flow: string;\n  @attr('string') declare evaluation: EvaluationEnum;\n  @attr('string') declare comment: string | null;\n  @attr('number') declare projectId: number;\n}\n","import type EnvironmentPermissions from 'client/data/models/environment-permissions';\n\nimport { fragmentArray } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport interface RolePermissionsAttributes {\n  environments: EnvironmentPermissions[];\n}\n\nexport default class RolePermissionsFragment extends Fragment implements RolePermissionsAttributes {\n  @fragmentArray('environment-permissions')\n  declare environments: EnvironmentPermissions[];\n\n  toJSON() {\n    return {\n      environments: this.environments.map((environment) => environment.toJSON()),\n    };\n  }\n}\n","import type Project from 'client/data/models/project';\nimport type RolePermissions from 'client/data/models/role-permissions';\n\nimport { attr, belongsTo } from '@ember-data/model';\nimport { fragment } from 'ember-data-model-fragments/attributes';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class RoleModel extends AbstractModel {\n  @attr('string') declare name: string;\n  @attr('date') declare createdAt: Date;\n  @attr('boolean') declare isBlocked: boolean;\n\n  // This technical attribute is used to initialize a role permissions\n  @attr('base') declare initializePermissionsFrom?: { roleId: number; everythingAllowed: boolean };\n  @fragment('role-permissions') declare permissions: RolePermissions;\n\n  @belongsTo('project', { async: false }) declare project: Project;\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type ExplorerConfigurationFragment from 'client/data/models/explorer-configuration';\nimport type FieldModel from 'client/data/models/field';\nimport type ViewCreateModel from 'client/data/models/view-create';\n\nimport { computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { attr, belongsTo } from '@ember-data/model';\nimport { fragment } from 'ember-data-model-fragments/attributes';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\nimport SchemaUtils from 'client/utils/schema-utils';\n\nexport default class RowCreateModel extends AbstractLayoutModel {\n  @attr('number') declare position: number;\n  @attr('boolean') declare isVisible: boolean;\n\n  @fragment('explorer-configuration') declare explorerConfiguration: ExplorerConfigurationFragment;\n\n  @belongsTo('field', { async: false }) declare field: FieldModel;\n  @belongsTo('view-create', { async: false }) declare viewCreate: ViewCreateModel;\n\n  @alias('field.isValidable') declare isValidable: boolean;\n  @alias('viewCreate.collection') declare parentCollection: CollectionModel;\n  @alias('field.shouldDisplayAsRow') declare displayAsRow: boolean;\n  @alias('field.isRelatedData') declare isRelatedData: boolean;\n\n  @computed('field')\n  get isArrayOfDocuments() {\n    return SchemaUtils.isEmbeddedHasMany(this.field);\n  }\n\n  get patchPath() {\n    return `/collections/${this.parentCollection.id}/layout/viewCreate/rows/${this.id}`;\n  }\n\n  toJSON() {\n    return {\n      id: this.id,\n      position: this.position,\n      isVisible: this.isVisible,\n      fieldName: this.field?.fieldName,\n    };\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type ExplorerConfigurationFragment from 'client/data/models/explorer-configuration';\nimport type FieldModel from 'client/data/models/field';\nimport type ViewEditModel from 'client/data/models/view-edit';\n\nimport { computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { attr, belongsTo } from '@ember-data/model';\nimport { fragment } from 'ember-data-model-fragments/attributes';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\nimport ExplorerRelationshipRow from 'client/utils/explorer/explorer-relationship-row-class';\nimport SchemaUtils from 'client/utils/schema-utils';\n\nexport default class RowEditModel extends AbstractLayoutModel {\n  @attr('number') declare position: number;\n  @attr('boolean') declare isVisible: boolean;\n\n  @fragment('explorer-configuration') declare explorerConfiguration: ExplorerConfigurationFragment;\n\n  @belongsTo('field', { async: false }) declare field: FieldModel;\n  @belongsTo('view-edit', { async: false }) declare viewEdit: ViewEditModel;\n\n  @alias('field.isValidable') declare isValidable: boolean;\n  @alias('viewEdit.collection') declare parentCollection: CollectionModel;\n  @alias('field.shouldDisplayAsRow') declare displayAsRow: boolean;\n  @alias('field.isRelatedData') declare isRelatedData: boolean;\n\n  _explorerRow: ExplorerRelationshipRow | null = null;\n\n  @computed('field')\n  get isArrayOfDocuments() {\n    return SchemaUtils.isEmbeddedHasMany(this.field);\n  }\n\n  get patchPath() {\n    return `/collections/${this.parentCollection.id}/layout/viewEdit/rows/${this.id}`;\n  }\n\n  get explorerRow() {\n    if (!this._explorerRow) {\n      this._explorerRow = new ExplorerRelationshipRow({ row: this });\n    }\n    return this._explorerRow;\n  }\n\n  toJSON() {\n    return {\n      id: this.id,\n      position: this.position,\n      isVisible: this.isVisible,\n      fieldName: this.field?.fieldName,\n      explorerConfiguration: this.explorerConfiguration?.toJSON() || null,\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport interface S3VersionsAttributes {\n  component?: string;\n  template?: string;\n  style?: string;\n}\n\nexport interface S3VersionsBackEndAttributes {\n  'component.js': string;\n  'template.hbs': string;\n  'style.css'?: string;\n}\n\nexport default class S3VersionsFragment extends Fragment implements S3VersionsAttributes {\n  @attr('string') declare component: string;\n  @attr('string') declare template: string;\n  @attr('string') declare style: string;\n\n  toJSON(options: { isomorphic: true; includeId?: boolean }): S3VersionsAttributes;\n  toJSON(options: { isomorphic?: false; includeId?: boolean }): S3VersionsBackEndAttributes;\n  toJSON({ isomorphic = false }: { isomorphic?: boolean; includeId?: boolean } = {}):\n    | S3VersionsAttributes\n    | S3VersionsBackEndAttributes {\n    if (isomorphic) {\n      return {\n        component: this.component,\n        template: this.template,\n        style: this.style,\n      };\n    }\n\n    const data: S3VersionsBackEndAttributes = {\n      'component.js': this.component,\n      'template.hbs': this.template,\n    };\n\n    if (this.style) {\n      data['style.css'] = this.style;\n    }\n\n    return data;\n  }\n}\n","import type OrganizationModel from 'client/data/models/organization';\nimport type { CustomAsyncBelongsTo } from 'custom/utils';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport HasManyQueryModel from 'client/data/models/has-many-query-model';\n\nexport default class SamlConfigurationModel extends HasManyQueryModel {\n  @attr('boolean') declare enabled: boolean;\n  @attr('string') declare metadataEndpoint: string; // 2eme input\n  @attr('string') declare loginUrl: string;\n  @attr('string') declare logoutUrl: string;\n  @attr('string') declare issuer: string;\n  @attr('base') declare certificates: string[] | null;\n  @attr('string') declare metadataFile: string; // fichier xml\n  @attr('boolean') declare isSsoCorrectlyConfigured: boolean;\n  @attr('boolean') declare allowIdpInitiatedLogin: boolean;\n\n  @belongsTo('organization', { async: true })\n  declare organization: CustomAsyncBelongsTo<OrganizationModel>;\n}\n","// TODO: Remove once the back return the right format\n\nimport type CollectionModel from 'client/data/models/collection';\nimport type FilterFragment from 'client/data/models/fragment-filter';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport enum ScopeTypeEnum {\n  Simple = 'simple',\n  Query = 'query',\n}\n\n// This file is only used to deserialize the data coming from the backend as our server return scope as a model while it should just be a property\nexport default class ScopeModel extends AbstractModel {\n  @attr('string', { defaultValue: 'simple' }) declare type: ScopeTypeEnum;\n\n  @belongsTo('collection', { async: false }) declare collection: CollectionModel;\n  @belongsTo('filter', { async: false }) declare filter: FilterFragment;\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type { SortingOrderEnum } from 'client/data/models/collection';\nimport type ColumnModel from 'client/data/models/column';\nimport type FieldModel from 'client/data/models/field';\nimport type FilterFragment from 'client/data/models/fragment-filter';\nimport type InboxModel from 'client/data/models/inbox';\nimport type CollectionBusinessService from 'client/legacy/services/business/collection';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type { CustomAsyncHasMany } from 'custom/utils';\n\nimport { computed } from '@ember/object';\nimport { alias, equal } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { fragment } from 'ember-data-model-fragments/attributes';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\nimport FolderModel from 'client/data/models/folder';\nimport FolderChildNestedDocument from 'client/data/models/folder-child';\nimport SegmentTemplatingHelper from 'client/utils/templating-helper/segment-templating-helper';\n\nexport enum SegmentTypeEnum {\n  Manual = 'manual',\n  Smart = 'smart',\n}\n\nexport default class SegmentModel extends AbstractLayoutModel {\n  @service declare currentUser: CurrentUserService;\n  @service('business/collection') declare collectionService: CollectionBusinessService;\n\n  private _templatingHelper: SegmentTemplatingHelper;\n  get templatingHelper() {\n    if (!this._templatingHelper) {\n      this._templatingHelper = new SegmentTemplatingHelper({\n        currentUser: this.currentUser,\n      });\n    }\n    return this._templatingHelper;\n  }\n\n  @attr('string', { defaultValue: SegmentTypeEnum.Manual }) declare type: SegmentTypeEnum;\n  @attr('string') declare name: string;\n  @attr('string') declare icon: string;\n  @attr('number', { defaultValue: 0 }) declare position: number;\n  @attr('boolean', { defaultValue: false }) declare isVisible: boolean;\n  @attr('string', { defaultValue: null }) declare defaultSortingFieldOrder: SortingOrderEnum | null;\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-ignore\n  @attr('string', { defaultValue: null }) declare query: string | null;\n  @attr('string') declare connectionName: string | null;\n  @attr('boolean', { defaultValue: false }) declare hasColumnsConfiguration: boolean;\n\n  @belongsTo('collection', { async: false }) declare collection: CollectionModel;\n  @fragment('fragment-filter') declare filter: FilterFragment | null;\n  @belongsTo('field', { async: false }) declare defaultSortingField: FieldModel | null;\n  @hasMany('column', { async: true }) declare columns: CustomAsyncHasMany<ColumnModel>;\n  @belongsTo('inbox', { async: false, inverse: 'segment' }) declare inbox: InboxModel;\n\n  @alias('collection') declare filteredCollection: CollectionModel;\n\n  @equal('type', 'manual') isManual: boolean;\n  @equal('type', 'smart') isSmart: boolean;\n\n  @tracked isOutsideOfCurrentRendering = false;\n\n  get iconOrDefault() {\n    return this.icon || this.collection?.iconOrDefault;\n  }\n\n  @computed('isManual', 'query')\n  get isBasic() {\n    return this.isManual && !this.query;\n  }\n\n  @computed(\n    '(this.filter.dirtyConditions).length',\n    'filter.dirtyConditions.length',\n    'filter.hasDirtyAttributes',\n    'hasDirtyAttributes',\n    'hasDirtyRelationships',\n  )\n  get isDirty(): boolean {\n    return Boolean(\n      this.hasDirtyAttributes\n        || this.hasDirtyRelationships\n        || (this.filter\n          && (this.filter.hasDirtyAttributes || Boolean(this.filter.dirtyConditions.length))),\n    );\n  }\n\n  get patchPath() {\n    const id = this.isNew ? '-' : this.id;\n    return `/collections/${this.collection.id}/layout/segments/${id}`;\n  }\n\n  get positionFromFolder() {\n    const folderChild = this.store.peekRecord('folder-child', this.id);\n    if (!folderChild) return this.position;\n    let { position, parent } = folderChild;\n    while (parent && !(parent instanceof FolderModel && parent.isMain)) {\n      const parentPosition = this.store.peekRecord('folder-child', parent.id)?.position;\n      position = parentPosition + position / 100;\n      parent = parent instanceof FolderChildNestedDocument ? parent.parent : null;\n    }\n    return position;\n  }\n\n  @computed('columns.@each.position')\n  get columnsOrdered(): ColumnModel[] {\n    return this.collectionService.getColumnsOrdered(this.columns) as ColumnModel[];\n  }\n\n  @computed('columns.@each.{position,isVisible}')\n  get columnsVisibleOrdered() {\n    return this.collectionService.getColumnsVisibleOrdered(this.columns) as ColumnModel[];\n  }\n\n  @computed('defaultSortingField', 'defaultSortingFieldOrder')\n  get defaultSortingFieldName() {\n    return this.collectionService.getDefaultSortingFieldNameWithOrderPrefix(\n      this.defaultSortingField,\n      this.defaultSortingFieldOrder,\n    );\n  }\n\n  toJSON() {\n    const data = {\n      id: this.id,\n      type: this.type,\n      name: this.name,\n      icon: this.icon || null,\n      position: this.position,\n      isVisible: this.isVisible,\n      defaultSortingFieldName: this._getFieldName<keyof SegmentModel>('defaultSortingField'),\n      defaultSortingFieldOrder: this.defaultSortingFieldOrder,\n      hasColumnsConfiguration: this.hasColumnsConfiguration,\n      columns: this.columns.map((column) => column.toJSON()),\n    };\n    if (this.type === 'manual') {\n      return {\n        ...data,\n        query: this.query || null,\n        connectionName: this.connectionName,\n        filter: this.filter && this.filter.toJSON(),\n      };\n    }\n    return data;\n  }\n\n  getRelationshipPatchNameAndValue<K extends keyof this & string>(\n    relationship: K,\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  ): { name: string; value: any } {\n    if (relationship === 'columns') {\n      return {\n        name: 'columns',\n        value: this.columns.map((column) => column.toJSON()),\n      };\n    }\n\n    return super.getRelationshipPatchNameAndValue<K>(relationship);\n  }\n\n  isBasicAndIncludeRecord(record) {\n    return this.isBasic && this.filter?.isFulfilledByRecord(record);\n  }\n}\n","import type CollectionEnvironmentModel from 'client/data/models/collection-environment';\nimport type CollectionPermissions from 'client/data/models/collection-permissions';\nimport type FilterSmartActionPermissionFragment from 'client/data/models/fragment-filter-smart-action-permission';\n\nimport { attr } from '@ember-data/model';\nimport { fragment, fragmentOwner } from 'ember-data-model-fragments/attributes';\n\nimport AbstractActionPermissionsFragment from 'client/data/models/abstract-action-permissions';\n\nexport const UNIQUE_OPERATORS = [\n  // All types besides arrays\n  'equal',\n  'not_equal',\n  'less_than',\n  'greater_than',\n\n  // Strings\n  'not_contains',\n\n  // Arrays\n  'includes_all',\n] as const;\n\nexport const INTERVAL_OPERATORS = [\n  // Dates\n  'previous_month',\n  'previous_quarter',\n  'previous_week',\n  'previous_year',\n  'previous_month_to_date',\n  'previous_quarter_to_date',\n  'previous_week_to_date',\n  'previous_x_days_to_date',\n  'previous_x_days',\n  'previous_year_to_date',\n] as const;\n\nexport const OPERATORS_WITHOUT_VALUE = [\n  // All types\n  'present',\n  'blank',\n  'missing',\n\n  // Dates\n  'today',\n  'yesterday',\n  'future',\n  'past',\n] as const;\n\nexport const OTHER_OPERATORS = [\n  // All types besides arrays\n  'in',\n  'not_in',\n\n  // Strings\n  'starts_with',\n  'ends_with',\n  'contains',\n\n  // Dates\n  'before',\n  'after',\n  'after_x_hours_ago',\n  'before_x_hours_ago',\n] as const;\n\nexport const SMART_ACTION_FILTER_OPERATORS = [\n  ...UNIQUE_OPERATORS,\n  ...INTERVAL_OPERATORS,\n  ...OPERATORS_WITHOUT_VALUE,\n  ...OTHER_OPERATORS,\n];\n\nexport type SmartActionFilterOperator = (typeof SMART_ACTION_FILTER_OPERATORS)[number];\n\nexport const SMART_ACTION_FILTER_LEAF_SOURCES = ['data', 'input'];\n\nexport type SmartActionFilterLeafSource = (typeof SMART_ACTION_FILTER_LEAF_SOURCES)[number];\n\nexport interface SmartActionPermissionsAttributes {\n  smartActionName?: string;\n  triggerAction?: boolean;\n  triggerEnabled?: boolean;\n  triggerCondition?: FilterSmartActionPermissionFragment | null;\n\n  triggerRequiresApproval?: boolean;\n  approvalRequired?: boolean;\n  approvalRequiredCondition?: FilterSmartActionPermissionFragment | null;\n\n  userApprovalAction?: boolean;\n  userApprovalEnabled?: boolean;\n  userApprovalCondition?: FilterSmartActionPermissionFragment | null;\n\n  selfApprovalEnabled?: boolean;\n  selfApprovalAction?: boolean;\n}\n\nexport default class SmartActionPermissionsFragment\n  extends AbstractActionPermissionsFragment\n  implements Required<SmartActionPermissionsAttributes>\n{\n  @attr('string') declare smartActionName: string;\n\n  @fragment('fragment-filter-smart-action-permission')\n  declare triggerCondition: FilterSmartActionPermissionFragment | null;\n\n  @fragment('fragment-filter-smart-action-permission')\n  declare approvalRequiredCondition: FilterSmartActionPermissionFragment | null;\n\n  @fragment('fragment-filter-smart-action-permission')\n  declare userApprovalCondition: FilterSmartActionPermissionFragment | null;\n\n  @fragmentOwner() declare collectionPermissions: CollectionPermissions;\n\n  get collectionName() {\n    return this.collectionPermissions.collectionName;\n  }\n\n  get collection(): CollectionEnvironmentModel {\n    return this.collectionPermissions.collection;\n  }\n\n  get triggerAction() {\n    return super.triggerAction;\n  }\n\n  set triggerAction(value: boolean) {\n    super.triggerAction = value;\n\n    if (!value) {\n      this.triggerCondition?.clear();\n    }\n  }\n\n  get triggerRequiresApproval() {\n    return super.triggerRequiresApproval;\n  }\n\n  set triggerRequiresApproval(value: boolean) {\n    super.triggerRequiresApproval = value;\n\n    if (!value) {\n      this.approvalRequiredCondition?.clear();\n    }\n  }\n\n  get userApprovalAction() {\n    return super.userApprovalAction;\n  }\n\n  set userApprovalAction(value: boolean) {\n    super.userApprovalAction = value;\n\n    if (!value) {\n      this.userApprovalCondition?.clear();\n    }\n  }\n\n  get patchPath() {\n    const { environmentId } = this.collectionPermissions.environmentPermissions;\n    const { collectionName } = this.collectionPermissions;\n    return `/environments/${environmentId}/collections/${encodeURIComponent(\n      collectionName,\n    )}/smartActions/${encodeURIComponent(this.smartActionName)}`;\n  }\n\n  toJSON() {\n    return {\n      smartActionName: this.smartActionName,\n      triggerEnabled: this.triggerEnabled,\n      triggerCondition: this.triggerCondition?.toJSON(),\n      approvalRequired: this.approvalRequired,\n      approvalRequiredCondition: this.approvalRequiredCondition?.toJSON(),\n      userApprovalEnabled: this.userApprovalEnabled,\n      userApprovalCondition: this.userApprovalCondition?.toJSON(),\n      selfApprovalEnabled: this.selfApprovalEnabled,\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class StatModel extends AbstractModel {\n  @attr('base') declare value: number | object;\n}\n","import type BillingModel from 'client/data/models/billing';\nimport type PlanModel from 'client/data/models/plan';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport enum SubscriptionCommitmentsEnum {\n  Yearly = 'yearly',\n  Monthly = 'monthly',\n}\n\nexport default class SubscriptionModel extends AbstractModel {\n  @attr('string') declare commitment:\n    | SubscriptionCommitmentsEnum\n    | `${SubscriptionCommitmentsEnum}`;\n\n  @attr('date') declare startedAt: Date;\n  @attr('date') declare finishedAt: Date | null;\n  @attr('date') declare renewalPlannedAt: Date | null;\n  @attr('string') declare paymentFrequency:\n    | SubscriptionCommitmentsEnum\n    | `${SubscriptionCommitmentsEnum}`;\n\n  @belongsTo('plan', { async: false }) plan: PlanModel;\n  @belongsTo('billing', { async: false }) billing: BillingModel;\n}\n","import { attr } from '@ember-data/model';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport interface SummaryViewItemDataAttributes {\n  name: string;\n}\n\nexport default class SummaryViewItemDataFragment extends Fragment {\n  @attr('string') declare name: string;\n\n  toJSON() {\n    return {\n      name: this.name,\n    };\n  }\n}\n","import type { SummaryViewItemDataAttributes } from 'client/data/models/summary-view-item-data';\nimport type SummaryViewItemDataFragment from 'client/data/models/summary-view-item-data';\n\nimport { attr } from '@ember-data/model';\nimport { fragment, fragmentArray } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\nimport { v1 as uuidv1 } from 'uuid';\n\nexport enum SummaryViewItemTypeEnum {\n  HorizontalList = 'data-display/record/summary/horizontal-list',\n  HasMany = 'data-display/record/summary/has-many',\n  HasManyEmbedded = 'data-display/record/summary/has-many-embedded',\n  Field = 'data-display/record/summary/field',\n  SmartActionButton = 'data-display/record/summary/custom-action-button',\n  WorkflowButton = 'data-display/record/summary/workflow-button',\n}\n\nexport interface SummaryViewItemElementAttributes {\n  _id?: string;\n  type: Exclude<SummaryViewItemTypeEnum, SummaryViewItemTypeEnum.HorizontalList>;\n  data?: SummaryViewItemDataAttributes;\n}\n\nexport interface SummaryViewItemContainerAttributes {\n  _id?: string;\n  type: SummaryViewItemTypeEnum.HorizontalList;\n  children?: SummaryViewItemAttributes[];\n}\n\nexport type SummaryViewItemAttributes =\n  | SummaryViewItemElementAttributes\n  | SummaryViewItemContainerAttributes;\n\nexport default class SummaryViewItemFragment<\n  ItemType extends SummaryViewItemTypeEnum = SummaryViewItemTypeEnum,\n> extends Fragment {\n  @attr('string', { defaultValue: () => uuidv1() }) declare _id?: string;\n  @attr('string') declare type: ItemType;\n\n  @fragment('summary-view-item-data')\n  declare data: ItemType extends SummaryViewItemTypeEnum.HorizontalList\n    ? never\n    : SummaryViewItemDataFragment;\n\n  @fragmentArray('summary-view-item')\n  declare children: ItemType extends SummaryViewItemTypeEnum.HorizontalList\n    ? SummaryViewItemFragment<\n        Exclude<SummaryViewItemTypeEnum, SummaryViewItemTypeEnum.HorizontalList>\n      >[]\n    : never;\n\n  get componentName(): SummaryViewItemTypeEnum {\n    return this.type.replace(\n      'view-edit-summary/',\n      'data-display/record/summary/',\n    ) as SummaryViewItemTypeEnum;\n  }\n\n  toJSON(): SummaryViewItemAttributes {\n    const summaryViewItem = {\n      id: this._id,\n      type: this.componentName,\n    };\n\n    if (this.componentName !== SummaryViewItemTypeEnum.HorizontalList) {\n      return {\n        ...summaryViewItem,\n        data: this.data?.toJSON(),\n      };\n    }\n    return {\n      ...summaryViewItem,\n      children: this.children.map((child) => child.toJSON() as SummaryViewItemElementAttributes),\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport interface SummaryViewSectionParametersAttributes {\n  width: number;\n  height: number;\n  posX: number;\n  posY: number;\n}\n\nexport default class SummaryViewSectionParametersFragment extends Fragment {\n  @attr('number') declare width: number;\n  @attr('number') declare height: number;\n  @attr('number') declare posX: number;\n  @attr('number') declare posY: number;\n\n  toJSON() {\n    return {\n      width: this.width,\n      height: this.height,\n      posX: this.posX,\n      posY: this.posY,\n    };\n  }\n}\n","import type { SummaryViewItemAttributes } from 'client/data/models/summary-view-item';\nimport type { SummaryViewSectionParametersAttributes } from 'client/data/models/summary-view-section-parameters';\nimport type SummaryViewSectionParametersFragment from 'client/data/models/summary-view-section-parameters';\nimport type { FragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport { attr } from '@ember-data/model';\nimport { fragment, fragmentArray } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\nimport { v1 as uuidv1 } from 'uuid';\n\nexport interface SummaryViewSectionAttributes {\n  _id?: string;\n  title: string;\n  parameters: SummaryViewSectionParametersAttributes;\n  children?: SummaryViewItemAttributes[];\n}\n\nexport default class SummaryViewSectionFragment extends Fragment {\n  @attr('string', { defaultValue: () => uuidv1() }) declare _id?: string;\n  @attr('string') declare title: string;\n\n  @fragment('summary-view-section-parameters')\n  declare parameters: SummaryViewSectionParametersFragment;\n\n  @fragmentArray('summary-view-item') declare children: FragmentArray<'summary-view-item'>;\n\n  toJSON() {\n    return {\n      id: this._id,\n      title: this.title,\n      parameters: this.parameters.toJSON(),\n      children: this.children.map((child) => child.toJSON()),\n    };\n  }\n}\n","import type { SummaryViewSectionAttributes } from 'client/data/models/summary-view-section';\nimport type { FragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport { fragmentArray } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport interface SummaryViewAttributes {\n  sections?: SummaryViewSectionAttributes[];\n}\n\nexport default class SummaryViewFragment extends Fragment {\n  @fragmentArray('summary-view-section', {\n    defaultValue: (): SummaryViewSectionAttributes[] => [],\n  })\n  declare sections: FragmentArray<'summary-view-section'>;\n\n  toJSON() {\n    return {\n      sections: this.sections.map((section) => section.toJSON()),\n    };\n  }\n}\n","import type ProjectModel from 'client/data/models/project';\nimport type RenderingModel from 'client/data/models/rendering';\nimport type UserModel from 'client/data/models/user';\nimport type { CustomAsyncBelongsTo, CustomAsyncHasMany } from 'custom/utils';\n\nimport { computed } from '@ember/object';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\n\nimport HasManyQueryModel from 'client/data/models/has-many-query-model';\nimport { EnvironmentsFeaturesEnum } from 'client/data/models/plan';\nimport { array } from 'client/decorators/array';\n\nexport enum TeamDeactivatableFeatureEnum {\n  Inbox = EnvironmentsFeaturesEnum.Inbox,\n  Collaboration = EnvironmentsFeaturesEnum.Collaboration,\n  ActivityLogs = EnvironmentsFeaturesEnum.ActivityLogs,\n  TeamPerformance = EnvironmentsFeaturesEnum.TeamPerformance,\n}\n\nexport default class TeamModel extends HasManyQueryModel {\n  @attr('string') declare name: string;\n  @attr('string') declare fromTeamId: string;\n  @attr('number') declare usersCount: number;\n  @attr('boolean') declare isBlocked: boolean;\n  @array('string') declare featuresDeactivated: TeamDeactivatableFeatureEnum[];\n\n  @belongsTo('project', { async: true }) declare project: CustomAsyncBelongsTo<ProjectModel>;\n  @hasMany('rendering', { async: true, inverse: '_team' })\n  declare renderings: CustomAsyncHasMany<RenderingModel>;\n\n  @hasMany('user', { async: true }) declare users: CustomAsyncHasMany<UserModel>;\n\n  @computed('renderings')\n  get renderingsByEnvironmentStage() {\n    return this.renderings.sortBy('environment.stagePriority');\n  }\n\n  @tracked inEditState = false;\n\n  @computed('name')\n  get initials() {\n    const words = this.name\n      .replaceAll(/[^\\w\\s-]/g, '')\n      .split(' ')\n      .filter(Boolean);\n    if (words.length > 1) {\n      return `${words[0][0]}${words[1][0]}${words[2]?.[0] || ''}`;\n    }\n    return words[0].substring(0, 2);\n  }\n}\n","import type Plan from 'client/data/models/plan';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport enum TrialStatusEnum {\n  Active = 'active',\n  Ended = 'ended',\n  Archived = 'archived',\n  Blocked = 'blocked',\n}\n\nexport default class TrialModel extends AbstractModel {\n  @attr('date') declare endsAt: Date;\n  @attr('date') declare warnsAt: Date;\n  @attr('string') declare status: TrialStatusEnum;\n\n  @belongsTo('plan', { async: false }) declare fallbackPlan: Plan;\n  @belongsTo('plan', { async: false }) declare trialPlan: Plan;\n  @belongsTo('plan', { async: false }) declare triedPlan: Plan;\n}\n","import type { PermissionLevelEnum } from 'client/data/models/invitation';\nimport type ProjectModel from 'client/data/models/project';\nimport type { UserTagAttributes } from 'client/data/models/user-tag';\n\nimport { computed } from '@ember/object';\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class UserInvitationProjectModel extends AbstractModel {\n  @attr('string') declare email: string;\n  @attr('string') declare permissionLevel: PermissionLevelEnum;\n  @attr('string') declare firstName: string;\n  @attr('string') declare lastName: string;\n  @attr('number') declare projectId: number;\n  @attr('number') declare userId: number;\n  @attr('number') declare invitationId: number;\n  @attr('string') declare roleName: string;\n  @attr('object') declare tags: UserTagAttributes[];\n  @attr('base') declare teamList: { id: number | string; name: string }[];\n  @attr('boolean') declare isInvitation: boolean;\n  @attr('boolean') declare isBlocked: boolean;\n  @attr('string') declare invitationSecret: string;\n\n  @belongsTo('project', { async: false }) declare project: ProjectModel;\n\n  @computed('firstName', 'lastName')\n  get hasName() {\n    return Boolean(this.firstName && this.lastName);\n  }\n\n  @computed('firstName', 'hasName', 'lastName')\n  get fullName() {\n    if (this.hasName) {\n      return `${this.firstName} ${this.lastName}`;\n    }\n    return null;\n  }\n\n  @computed('teamList')\n  get teamsList() {\n    return this.teamList.map((team) => team.name);\n  }\n\n  @computed('tags.length')\n  get tagsList() {\n    return this.tags?.length ? this.tags.map((tag) => `${tag.key}: ${tag.value}`) : [];\n  }\n\n  @computed('isInvitation')\n  get isUser() {\n    return !this.isInvitation;\n  }\n}\n","import type UserModel from 'client/data/models/user';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class UserRecoveryCodeModel extends AbstractModel {\n  @attr('string') declare recoveryCode: string;\n\n  @belongsTo('user') declare user: UserModel;\n}\n","import { attr } from '@ember-data/model';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport interface UserTagAttributes {\n  key: string;\n  value: string;\n}\n\nexport default class UserTagFragment extends Fragment implements UserTagAttributes {\n  @attr('string') declare key: string;\n  @attr('string') declare value: string;\n\n  toJSON() {\n    return {\n      key: this.key,\n      value: this.value,\n    };\n  }\n}\n","import type ActivityLog from 'client/data/models/activity-log';\nimport type ApplicationToken from 'client/data/models/application-token';\nimport type Environment from 'client/data/models/environment';\nimport type Guest from 'client/data/models/guest';\nimport type { PermissionLevelEnum } from 'client/data/models/invitation';\nimport type OrganizationModel from 'client/data/models/organization';\nimport type Project from 'client/data/models/project';\nimport type RoleModel from 'client/data/models/role';\nimport type Team from 'client/data/models/team';\nimport type UserRecoveryCode from 'client/data/models/user-recovery-code';\nimport type UserTag from 'client/data/models/user-tag';\nimport type { CustomAsyncBelongsTo, CustomAsyncHasMany } from 'custom/utils';\n\nimport { computed } from '@ember/object';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\nimport { fragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport AbstractModel from 'client/data/models/abstract-model';\nimport { array } from 'client/decorators/array';\n\nexport default class UserModel extends AbstractModel {\n  @attr('string') declare firstName: string;\n  @attr('string') declare lastName: string;\n  @attr('string') declare username: string;\n  @attr('string') declare email: string;\n  @attr('string') declare phone: string;\n  @attr('string') declare password: string;\n  @attr('boolean') declare tosAccepted: boolean;\n  @attr('string') declare permissionLevel: PermissionLevelEnum;\n  @attr('date') declare createdAt: Date;\n  @attr('boolean') declare isLiveDemo: boolean; // NOTICE: flag to detect Live Demo anonymous user sessions.\n  @attr('string') declare invitationSecret: string;\n  @attr('boolean') declare twoFactorAuthenticationActive: boolean;\n  @attr('boolean') declare hasPassword: boolean;\n  @attr('boolean') declare isSsoAccountOnly: boolean;\n  @attr('boolean') declare optOutMarketingFromApp: boolean;\n  @attr('date') declare ownerSince: Date;\n  @attr('boolean') declare isBlocked: boolean;\n  @attr('date') declare processDrivenNavigationNewsletter: Date;\n  @attr('date') declare workflowLaunchNewsletter: Date;\n\n  @fragmentArray('user-tag') declare tags: UserTag[];\n\n  @array('string', { defaultValue: [] }) declare permissions: string[];\n\n  @belongsTo('role', { async: false }) declare role: RoleModel;\n  @belongsTo('guest', { async: false }) declare guest: Guest;\n  @belongsTo('environment', { async: false }) declare developmentEnvironment: Environment;\n  @belongsTo('project', { async: true, inverse: 'administrators' })\n  declare projectAdministrator: CustomAsyncBelongsTo<Project>;\n\n  @hasMany('project', { async: true, inverse: 'users' })\n  declare projects: CustomAsyncHasMany<Project>;\n\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-ignore\n  @hasMany('organization', { async: true, inverse: 'users' })\n  declare organizations: CustomAsyncHasMany<OrganizationModel>;\n\n  @hasMany('team', { async: true }) declare teams: CustomAsyncHasMany<Team>;\n  @hasMany('activity-log', { async: true }) declare activityLogs: CustomAsyncHasMany<ActivityLog>;\n  @hasMany('application-token', { async: true })\n  declare applicationTokens: CustomAsyncHasMany<ApplicationToken>;\n\n  @hasMany('user-recovery-code', { async: true })\n  declare userRecoveryCodes: CustomAsyncHasMany<UserRecoveryCode>;\n\n  get roleId() {\n    // NOTICE: To avoid loading the role while it is not required to check permissions\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    const roleIdString = this.belongsTo('role').id();\n    return roleIdString && Number.parseInt(roleIdString, 10);\n  }\n\n  @computed('firstName', 'lastName')\n  get hasName() {\n    return this.firstName && this.lastName;\n  }\n\n  @computed('hasName', 'firstName', 'lastName')\n  get name() {\n    if (this.hasName) {\n      return `${this.firstName} ${this.lastName}`;\n    }\n    return null;\n  }\n\n  @computed('name', 'username')\n  get fullName() {\n    return this.name ? this.name : this.username;\n  }\n\n  @computed('name', 'email')\n  get nameOrEmail() {\n    return this.name ? this.name : this.email;\n  }\n\n  @computed('firstName', 'username')\n  get firstNameOrUserName() {\n    return this.firstName ? this.firstName : this.username;\n  }\n\n  @computed('email', 'firstName', 'hasName', 'lastName', 'username')\n  get initials() {\n    if (this.hasName) {\n      // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n      return `${this.firstName[0]}${this.lastName[0]}`;\n    }\n\n    if (this.username) {\n      return this.username[0];\n    }\n\n    // NOTICE: fallback to email\n    // should be removed after the migration that add username to all users\n    if (this.email) {\n      return this.email[0];\n    }\n\n    // NOTICE: return empty string since we have some unknown users\n    return '';\n  }\n\n  @computed('teams.[]')\n  get teamsOrderByName() {\n    return this.teams.sortBy('name');\n  }\n}\n","import type Field from 'client/data/models/field';\n\nimport { attr, belongsTo } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class ValidationModel extends AbstractModel {\n  @attr('string') declare type: string;\n  @attr('string') declare value: string;\n  @attr('string') declare message: string;\n\n  @belongsTo('field', { async: false }) declare field: Field;\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractNestedDocumentModel from 'client/data/models/abstract-nested-document-model';\n\nexport interface ValueLabelAttributes {\n  value: string | number;\n  label: string;\n}\n\nexport default class ValueLabelNestedDocument extends AbstractNestedDocumentModel {\n  @attr('base') declare value: string | number;\n  @attr('string') declare label: string;\n\n  toJSON() {\n    return {\n      value: this.value,\n      label: this.label,\n    };\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type RowCreateModel from 'client/data/models/row-create';\n\nimport { computed } from '@ember/object';\nimport { filterBy } from '@ember/object/computed';\nimport { belongsTo, hasMany } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class ViewCreateModel extends AbstractModel {\n  @belongsTo('collection', { async: false }) declare collection: CollectionModel;\n  @hasMany('row-create', { async: false }) declare rowCreates: RowCreateModel[];\n\n  @computed('rowCreates.@each.isVisible', 'rowCreates.@each.isValidable')\n  get attributesEditable() {\n    return (\n      this.rowCreates\n        .filter((row) => row.get('isVisible') && row.get('isValidable'))\n        // id field is never editable, it's editable through the forest-id attribute\n        .map((row) => (row.field?.attributeName === 'id' ? 'forest-id' : row.field?.attributeName))\n    );\n  }\n\n  @computed('rowCreates')\n  get rowCreatesRelatedData() {\n    return this.rowCreates.filterBy('isRelatedData').sortBy('field.displayName');\n  }\n\n  @computed('rowCreates.@each.position', 'rowCreatesRelatedData')\n  get plainRows() {\n    return this.rowCreates\n      .filter((rowCreate) => !rowCreate.field.integration && rowCreate.displayAsRow)\n      .sortBy('position');\n  }\n\n  @filterBy('plainRows', 'isVisible', true) declare visibleRowCreates: typeof this.plainRows;\n}\n","import type ChartModel from 'client/data/models/chart';\nimport type CollectionModel from 'client/data/models/collection';\nimport type RowEditModel from 'client/data/models/row-edit';\nimport type SummaryViewFragment from 'client/data/models/summary-view';\n\nimport { computed } from '@ember/object';\nimport { filterBy } from '@ember/object/computed';\nimport { belongsTo, hasMany } from '@ember-data/model';\nimport { fragment } from 'ember-data-model-fragments/attributes';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\n\nexport default class ViewEditModel extends AbstractLayoutModel {\n  @fragment('summary-view') declare summaryView: SummaryViewFragment;\n\n  @belongsTo('collection', { async: false }) declare collection: CollectionModel;\n  @hasMany('row-edit', { async: false }) declare rowEdits: RowEditModel[];\n  @hasMany('chart', { async: false }) declare charts: ChartModel[];\n\n  @filterBy('plainRows', 'isVisible') declare visiblePlainRows: typeof this.plainRows;\n\n  @computed('rowEdits.@each.isVisible', 'rowEdits.@each.isValidable')\n  get attributesEditable() {\n    return (\n      this.rowEdits\n        .filter((row) => row.get('isVisible') && row.get('isValidable'))\n        // id field is never editable, it's editable through the forest-id attribute\n        .map((row) => (row.field?.attributeName === 'id' ? 'forest-id' : row.field?.attributeName))\n    );\n  }\n\n  @computed('rowEdits')\n  get rowEditsRelatedData() {\n    return this.rowEdits.filterBy('isRelatedData').sortBy('field.displayName');\n  }\n\n  @computed('rowEdits.@each.{position,displayAsRow}')\n  get plainRows() {\n    return this.rowEdits\n      .filter((rowEdit) => !rowEdit.field.integration && rowEdit.displayAsRow)\n      .sortBy('position');\n  }\n\n  @computed('plainRows')\n  get plainFields() {\n    return this.plainRows.map((row) => row.field);\n  }\n\n  get patchPath() {\n    return `/collections/${this.collection.id}/layout/viewEdit`;\n  }\n\n  toJSON() {\n    return {\n      summaryView: this.summaryView && this.summaryView.toJSON(),\n    };\n  }\n}\n","import type Collection from 'client/data/models/collection';\nimport type { S3VersionsBackEndAttributes } from 'client/data/models/s3-versions';\nimport type S3Versions from 'client/data/models/s3-versions';\nimport type HtmlSanitizerService from 'client/legacy/services/html-sanitizer';\n\nimport { computed } from '@ember/object';\nimport { alias, equal } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { attr, belongsTo } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { fragment } from 'ember-data-model-fragments/attributes';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\nimport { EMBER_FRAMEWORK, REACT_FRAMEWORK } from 'client/utils/smart-view-editor-utils';\nimport { regexIndexOf } from 'client/utils/string-utils';\n\ninterface ViewListAttributes {\n  id: string;\n  name: string;\n  isSmart: boolean;\n  position: number;\n  recordsPerPage: number;\n  s3Versions?: S3VersionsBackEndAttributes;\n  allowJavascript?: boolean;\n}\n\nexport default class ViewListModel extends AbstractLayoutModel {\n  @attr('string') declare name: string;\n  @attr('string') declare templateUrl: string;\n  @attr('string') declare componentUrl: string;\n  @attr('string') declare templateCode: string;\n  @attr('string') declare componentCode: string;\n  @fragment('s3-versions', { defaultValue: {} }) declare s3Versions: S3Versions;\n  @attr('number', { defaultValue: 0 }) declare position: number;\n  @attr('boolean', { defaultValue: true }) declare isSmart: boolean;\n  @attr('number', { defaultValue: 10 }) declare recordsPerPage: number;\n  @attr('boolean', { defaultValue: true }) allowJavascript: boolean;\n\n  @belongsTo('collection', { async: false }) declare collection: Collection;\n\n  @alias('templateCSS') declare style: string;\n  @alias('templateHandlebars') declare handlebars: string;\n  @alias('componentCode') declare component: string;\n\n  @service private htmlSanitizer: HtmlSanitizerService;\n\n  @tracked registryName = this.registryNameBase;\n\n  cssCode: string | null = null;\n  handlebarsCode: string | null = null;\n  ignoreChangeTemplateCode = false;\n\n  get registryNameBase() {\n    if (!this.name) {\n      return null;\n    }\n    return `data-display/${this.name.toLowerCase()}-view`;\n  }\n\n  get patchPath() {\n    // Casting to remove once this issue is fixed: https://github.com/typed-ember/ember-cli-typescript/issues/969\n    const id = (this.isNew as unknown as boolean) ? '-' : this.id;\n    return `/collections/${this.collection.id}/layout/viewLists/${id}`;\n  }\n\n  @equal('currentFramework', REACT_FRAMEWORK) declare isReact: boolean;\n\n  @computed('componentCode')\n  get currentFramework() {\n    return this.componentCode?.includes('import React') ? REACT_FRAMEWORK : EMBER_FRAMEWORK;\n  }\n\n  toJSON(): ViewListAttributes {\n    const data: ViewListAttributes = {\n      id: this.id,\n      name: this.name,\n      isSmart: this.isSmart,\n      position: this.position,\n      recordsPerPage: this.recordsPerPage,\n    };\n\n    if (this.isSmart) {\n      data.s3Versions = this.s3Versions.toJSON({});\n      data.allowJavascript = this.allowJavascript;\n    }\n\n    return data;\n  }\n\n  _parseTemplateIfNecessary() {\n    if (this.isReact) {\n      this.set('cssCode', this.templateCode);\n      return;\n    }\n\n    if (!this.ignoreChangeTemplateCode) {\n      this.parseTemplateCode();\n    } else {\n      this.decrementProperty('ignoreChangeTemplateCode');\n    }\n  }\n\n  @computed('cssCode', 'isReact', 'templateCode')\n  get templateCSS() {\n    this._parseTemplateIfNecessary();\n    return this.cssCode;\n  }\n\n  set templateCSS(value) {\n    this.set('cssCode', value);\n    this.updateTemplateCode();\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    return value;\n  }\n\n  @computed('handlebarsCode', 'isReact', 'templateCode')\n  get templateHandlebars() {\n    this._parseTemplateIfNecessary();\n    return this.handlebarsCode;\n  }\n\n  set templateHandlebars(value) {\n    if (!this.allowJavascript) {\n      const sanitized = this.htmlSanitizer.sanitizeTemplate(value);\n      this.set('handlebarsCode', sanitized);\n    } else {\n      this.set('handlebarsCode', value);\n    }\n    this.updateTemplateCode();\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    return value;\n  }\n\n  parseTemplateCode() {\n    if (!this.templateCode) {\n      this.set('cssCode', '');\n      this.set('handlebarsCode', '');\n      return;\n    }\n\n    const regexStyleStart = /<\\s*style\\s*>/i;\n    const regexStyleEnd = /<\\/\\s*style\\s*>/i;\n    let css = '';\n    let handlebars = '';\n    let endIndex = 0;\n    let startIndex = regexIndexOf(this.templateCode, regexStyleStart, endIndex);\n\n    while (startIndex !== -1) {\n      handlebars += this.templateCode.substring(endIndex, startIndex);\n\n      startIndex = this.templateCode.indexOf('>', startIndex) + 1;\n      endIndex = regexIndexOf(this.templateCode, regexStyleEnd, startIndex);\n      css += this.templateCode.substring(startIndex, endIndex);\n\n      endIndex = this.templateCode.indexOf('>', endIndex) + 1;\n\n      startIndex = regexIndexOf(this.templateCode, regexStyleStart, endIndex);\n    }\n\n    handlebars += this.templateCode.substring(endIndex).trim();\n\n    this.set('cssCode', css.trim() || '');\n    this.set('handlebarsCode', handlebars || '');\n  }\n\n  updateTemplateCode() {\n    this.set('ignoreChangeTemplateCode', 2);\n    if (this.isReact) {\n      this.set('templateCode', this.cssCode);\n    } else {\n      this.set('templateCode', `${this.handlebarsCode}\\n<style>\\n${this.cssCode}\\n</style>\\n`);\n    }\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class WhiteLabelModel extends AbstractModel {\n  @attr('string') declare name: string;\n  @attr('string') declare pictureUrl: string;\n  @attr('string') declare primaryColor: string;\n}\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParametersFragment from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationAddressEditorAttributes {\n  placeholder?: string;\n}\n\nexport default class WidgetConfigurationAddressEditorFragment\n  extends WidgetConfigurationParametersFragment\n  implements WidgetConfigurationAddressEditorAttributes\n{\n  @attr('string') declare placeholder: string | null;\n\n  toJSON() {\n    return {\n      placeholder: this.placeholder || null,\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParametersFragment from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationAssigneeEditorAttributes {\n  placeholder?: string;\n}\n\nexport default class WidgetConfigurationAssigneeEditorFragment\n  extends WidgetConfigurationParametersFragment\n  implements WidgetConfigurationAssigneeEditorAttributes\n{\n  @attr('string') declare placeholder: string | null;\n\n  toJSON() {\n    return {\n      placeholder: this.placeholder || null,\n    };\n  }\n}\n","import type WidgetConfigurationLimitedValueDynamicFragment from 'client/data/models/widget-configuration-limited-value-dynamic';\nimport type { WidgetConfigurationLimitedValueDynamicAttributes } from 'client/data/models/widget-configuration-limited-value-dynamic';\n\nimport { fragment } from 'ember-data-model-fragments/attributes';\n\nimport WidgetConfigurationLimitedValue from 'client/data/models/widget-configuration-limited-value';\n\nexport interface WidgetConfigurationBelongstoTypeaheadAttributes {\n  dynamic: WidgetConfigurationLimitedValueDynamicAttributes;\n}\n\nexport class WidgetConfigurationBelongstoTypeahead\n  extends WidgetConfigurationLimitedValue\n  implements WidgetConfigurationBelongstoTypeaheadAttributes\n{\n  @fragment('widget-configuration-limited-value-dynamic', {\n    defaultValue: {},\n  })\n  declare dynamic: WidgetConfigurationLimitedValueDynamicFragment;\n}\n\nexport default WidgetConfigurationBelongstoTypeahead;\n","import WidgetConfigurationLimitedValue from 'client/data/models/widget-configuration-limited-value';\n\nexport { WidgetConfigurationLimitedValueAttributes as WidgetConfigurationCheckboxesAttributes } from './widget-configuration-limited-value';\n\nexport default class WidgetConfigurationCheckboxesFragment extends WidgetConfigurationLimitedValue {}\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParametersFragment from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationColorEditorAttributes {\n  placeholder?: string;\n}\n\nexport default class WidgetConfigurationColorEditorFragment\n  extends WidgetConfigurationParametersFragment\n  implements WidgetConfigurationColorEditorAttributes\n{\n  @attr('string') declare placeholder: string | null;\n  @attr('boolean', { defaultValue: false }) declare enableOpacity: boolean;\n  @attr('base', { defaultValue: null }) declare quickPalette: string[] | null;\n\n  toJSON() {\n    return {\n      placeholder: this.placeholder || null,\n      enableOpacity: this.enableOpacity,\n      quickPalette: this.quickPalette?.length ? this.quickPalette : null,\n    };\n  }\n}\n","import type { WidgetConfigurationDateAttributes } from 'client/data/models/widget-configuration-date';\n\nimport { attr } from '@ember-data/model';\n\nimport WidgetConfigurationDate from 'client/data/models/widget-configuration-date';\n\nexport type WidgetConfigurationDateEditorAttributes = WidgetConfigurationDateAttributes & {\n  placeholder: string;\n  minDate: Date | string;\n  maxDate: Date | string;\n};\n\nexport default class WidgetConfigurationDateEditorFragment\n  extends WidgetConfigurationDate\n  implements WidgetConfigurationDateEditorAttributes\n{\n  @attr('string', { defaultValue: null }) declare placeholder: string | null;\n  @attr('date', { defaultValue: null }) declare minDate: Date | null;\n  @attr('date', { defaultValue: null }) declare maxDate: Date | null;\n\n  toJSON() {\n    return {\n      ...super.toJSON(),\n      placeholder: this.placeholder || null,\n      minDate: this.minDate || null,\n      maxDate: this.maxDate || null,\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParameters from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationDateAttributes {\n  format?: string | null;\n}\n\nexport default class WidgetConfigurationDateFragment\n  extends WidgetConfigurationParameters\n  implements WidgetConfigurationDateAttributes\n{\n  @attr('string', { defaultValue: null }) declare format: string | null;\n\n  toJSON() {\n    return {\n      format: this.format || null,\n    };\n  }\n}\n","/* eslint-disable max-classes-per-file */\nimport type {\n  WidgetConfigurationLimitedValueAttributes,\n  WidgetLimitedValueContainer,\n} from 'client/data/models/widget-configuration-limited-value';\nimport type { Constructor } from 'custom/utils';\n\nimport { attr } from '@ember-data/model';\n\nimport WidgetConfigurationLimitedValueFragment from 'client/data/models/widget-configuration-limited-value';\n\ninterface WidgetLimitedValueContainerWithToJSON extends WidgetLimitedValueContainer {\n  toJSON(options: {\n    includeId?: boolean;\n    forApi?: boolean;\n  }): ReturnType<WidgetConfigurationLimitedValueFragment['toJSON']>;\n}\n\nexport interface WidgetConfigurationDropdownAttributes\n  extends WidgetConfigurationLimitedValueAttributes {\n  isSearchable?: boolean;\n  searchType?: string;\n  placeholder?: string;\n}\nexport function createWidgetConfigurationDropdown<\n  T extends Constructor<WidgetLimitedValueContainerWithToJSON>,\n>(superClass?: T) {\n  class WidgetConfigurationDropdownFragmentTemp extends superClass {\n    @attr('boolean', { defaultValue: false }) declare isSearchable: boolean;\n    @attr('string') declare placeholder: string | null;\n    @attr('string') declare searchType: string | null;\n\n    toJSON({ forApi = true } = {}) {\n      const json = {\n        ...super.toJSON({ forApi }),\n        isSearchable: this.isSearchable,\n        placeholder: this.placeholder || null,\n      };\n      if (this.searchType) return { ...json, searchType: this.searchType };\n      return json;\n    }\n  }\n\n  return WidgetConfigurationDropdownFragmentTemp;\n}\n\nexport default class WidgetConfigurationDropdownFragment extends createWidgetConfigurationDropdown(\n  WidgetConfigurationLimitedValueFragment,\n) {}\n","import { attr } from '@ember-data/model';\nimport { array } from 'ember-data-model-fragments/attributes';\n\nimport WidgetConfigurationParameters from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationFilePickerAttributes {\n  prefix?: string;\n  filesCountLimit?: number;\n  filesExtensions?: string[];\n  filesSizeLimit?: number;\n}\n\nexport default class WidgetConfigurationFilePickerFragment\n  extends WidgetConfigurationParameters\n  implements WidgetConfigurationFilePickerAttributes\n{\n  @attr('string', { defaultValue: null }) declare prefix: string;\n  @attr('number', { defaultValue: null }) declare filesCountLimit: number;\n  @array('string', { defaultValue: null }) declare filesExtensions: string[];\n  @attr('number', { defaultValue: null }) declare filesSizeLimit: number;\n\n  get isConfigured() {\n    return !this.filesExtensions || !!this.filesExtensions.length;\n  }\n\n  toJSON() {\n    return {\n      prefix: this.prefix || null,\n      filesCountLimit: this.filesCountLimit || null,\n      filesExtensions: this.filesExtensions?.length ? this.filesExtensions.toArray() : null,\n      filesSizeLimit: this.filesSizeLimit || null,\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParameters from 'client/data/models/widget-configuration-parameters';\n\nexport enum WidgetFileSizeEnum {\n  Small = 'small',\n  Medium = 'medium',\n  Large = 'large',\n  Custom = 'custom',\n}\nconst POSSIBLE_SIZES = [\n  WidgetFileSizeEnum.Small,\n  WidgetFileSizeEnum.Medium,\n  WidgetFileSizeEnum.Large,\n  WidgetFileSizeEnum.Custom,\n];\n\nexport interface WidgetConfigurationFileViewerAttributes {\n  prefix?: string;\n  allowRotation?: boolean;\n  allowZoom?: boolean;\n  size?: WidgetFileSizeEnum;\n  width?: number;\n  height?: number;\n}\nexport default class WidgetConfigurationFileViewerFragment\n  extends WidgetConfigurationParameters\n  implements WidgetConfigurationFileViewerAttributes\n{\n  @attr('string', { defaultValue: null }) declare prefix: string;\n  @attr('boolean', { defaultValue: true }) declare allowRotation: boolean;\n  @attr('boolean', { defaultValue: true }) declare allowZoom: boolean;\n  @attr('string', { defaultValue: WidgetFileSizeEnum.Medium }) declare size: WidgetFileSizeEnum;\n  @attr('number', { defaultValue: undefined }) declare width: number;\n  @attr('number', { defaultValue: undefined }) declare height: number;\n\n  get isConfigured() {\n    return this.size === 'custom'\n      ? !!this.width && !!this.height\n      : POSSIBLE_SIZES.includes(this.size);\n  }\n\n  toJSON() {\n    const data: {\n      prefix: string | null;\n      allowRotation: boolean;\n      allowZoom: boolean;\n      size: WidgetFileSizeEnum;\n      width?: number;\n      height?: number;\n    } = {\n      prefix: this.prefix || null,\n      allowRotation: this.allowRotation,\n      allowZoom: this.allowZoom,\n      size: this.size,\n    };\n    if (data.size === 'custom') {\n      data.width = this.width;\n      data.height = this.height;\n    }\n\n    return data;\n  }\n}\n\nexport { WidgetFileSizeEnum as FileViewerSizes };\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParametersFragment from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationInputArrayAttributes {\n  placeholder?: string;\n  enableReorder?: boolean;\n  allowDuplicate?: boolean;\n  allowEmptyValue?: boolean;\n}\n\nexport default class WidgetConfigurationInputArrayFragment\n  extends WidgetConfigurationParametersFragment\n  implements WidgetConfigurationInputArrayAttributes\n{\n  @attr('string') declare placeholder: string | null;\n  @attr('boolean', { defaultValue: true }) declare enableReorder: boolean;\n  @attr('boolean', { defaultValue: false }) declare allowDuplicate: boolean;\n  @attr('boolean', { defaultValue: false }) declare allowEmptyValue: boolean;\n  @attr('number', { defaultValue: null }) declare min: number;\n  @attr('number', { defaultValue: null }) declare max: number;\n  @attr('number', { defaultValue: null }) declare step: number;\n\n  toJSON() {\n    return {\n      placeholder: this.placeholder || null,\n      enableReorder: Boolean(this.enableReorder),\n      allowDuplicate: Boolean(this.allowDuplicate),\n      allowEmptyValue: Boolean(this.allowEmptyValue),\n      min: this.min ?? null,\n      max: this.max ?? null,\n      step: this.step ?? null,\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParametersFragment from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationJsonTreeAttributes {\n  withCopyButton?: boolean;\n}\n\nexport default class WidgetConfigurationJsonTreeFragment\n  extends WidgetConfigurationParametersFragment\n  implements WidgetConfigurationJsonTreeAttributes\n{\n  @attr('boolean', { defaultValue: true }) withCopyButton: boolean;\n\n  toJSON() {\n    return {\n      withCopyButton: this.withCopyButton,\n    };\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type FragmentFilter from 'client/data/models/fragment-filter';\nimport type WidgetConfigurationLimitedValueDynamic from 'client/data/models/widget-configuration-limited-value-dynamic';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { attr } from '@ember-data/model';\nimport { fragment, fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport Field, { getFieldById, getFieldByName } from 'client/data/models/field';\n\nexport interface WidgetConfigurationLimitedValueDynamicSimpleAttributes {\n  actOnCollectionId?: string | null;\n  actOnFieldName?: string | null;\n  actOnFieldId?: string | null;\n  filter?: FragmentFilter | null;\n}\n\nexport default class WidgetConfigurationLimitedValueDynamicSimpleFragment\n  extends Fragment\n  implements WidgetConfigurationLimitedValueDynamicSimpleAttributes\n{\n  @service declare store: StoreService;\n\n  @attr('string') declare actOnCollectionId: string | null;\n  @attr('string') declare actOnFieldName: string | null;\n  @attr('string') declare actOnFieldId: string | null;\n  @fragment('fragment-filter', { defaultValue: null }) declare filter: FragmentFilter | null;\n\n  @fragmentOwner() declare parent: WidgetConfigurationLimitedValueDynamic;\n\n  @alias('filteredCollection') collection;\n\n  get filteredCollection(): CollectionModel {\n    const field =\n      this.parent?.parent && 'parent' in this.parent.parent && this.parent?.parent?.parent?.field;\n    if (field && field instanceof Field && field.referenceModel) {\n      return field.referenceModel as CollectionModel;\n    }\n    return this.actOnCollection;\n  }\n\n  get isConfigured() {\n    if (this.filter && !this.filter.isValidData) {\n      return false;\n    }\n    return this.actOnCollection ? !!this.actOnField : !!this.filteredCollection;\n  }\n\n  get templatingHelper() {\n    return this.parent.templatingHelper;\n  }\n\n  get actOnCollection() {\n    return this.actOnCollectionId && this.store.peekRecord('collection', this.actOnCollectionId);\n  }\n\n  set actOnCollection(collection) {\n    this.actOnCollectionId = collection?.id || null;\n    this.actOnField = null;\n    this.filter = null;\n  }\n\n  @computed(\n    'actOnCollection',\n    'actOnFieldName',\n    'actOnFieldId',\n    'fieldName',\n    'filter.collection',\n    'store',\n  )\n  get actOnField() {\n    if (!this.actOnCollection) return null;\n    return this.actOnFieldName\n      ? getFieldByName(this.actOnCollection, this.actOnFieldName)\n      : getFieldById(this.store, this.actOnFieldId);\n  }\n\n  set actOnField(value) {\n    this.actOnFieldId = value?.id || null;\n    this.actOnFieldName = value?.fieldName || null;\n  }\n\n  toJSON(options: { forApi?: boolean; includeId?: boolean }) {\n    const data: {\n      actOnCollectionId: string;\n      filter: ReturnType<FragmentFilter['toJSON']> | null;\n      actOnFieldName?: string;\n      actOnFieldId?: string;\n    } = {\n      actOnCollectionId: this.actOnCollectionId,\n      filter: this.filter?.toJSON({ ...options }) || null,\n    };\n\n    if (options.forApi) {\n      data.actOnFieldName = this.actOnField?.fieldName;\n    } else {\n      data.actOnFieldId = this.actOnField?.id;\n    }\n\n    return data;\n  }\n}\n","import type WidgetConfigurationLimitedValueFragment from 'client/data/models/widget-configuration-limited-value';\nimport type WidgetConfigurationLimitedValueDynamicFragment from 'client/data/models/widget-configuration-limited-value-dynamic';\nimport type WorkspaceComponentOptionsDropdownNestedDocument from 'client/data/models/workspace-component-options-dropdown';\n\nimport { attr } from '@ember-data/model';\nimport { fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\n\nconst KEY = \"[\\\\w$.+!*'(),%~-]+\";\nexport const REGEX_PATH_URL = new RegExp(`^(/${KEY})+(\\\\?${KEY}=${KEY}(&${KEY}=${KEY})*)?$`);\n\nexport interface WidgetConfigurationLimitedValueDynamicSmartAttributes {\n  path?: string | null;\n}\n\nconst isWorkspaceComponent = (\n  parent: WidgetConfigurationLimitedValueFragment | WorkspaceComponentOptionsDropdownNestedDocument,\n): parent is WorkspaceComponentOptionsDropdownNestedDocument =>\n  parent instanceof WorkspaceComponentOptionsNestedDocument;\n\nexport default class WidgetConfigurationLimitedValueDynamicSmartFragment\n  extends Fragment\n  implements WidgetConfigurationLimitedValueDynamicSmartAttributes\n{\n  @attr('string', { defaultValue: null }) declare path: string | null;\n\n  @fragmentOwner() declare parent: WidgetConfigurationLimitedValueDynamicFragment;\n\n  get realPath(): string | null {\n    if (this.path && this.parent?.templatingHelper) {\n      const { templatingHelper, parent } = this.parent;\n\n      return !isWorkspaceComponent(parent) || parent.shouldDisplay\n        ? (templatingHelper.injectVariablesIntoStringWithoutValidation(this.path) as string)\n        : null;\n    }\n\n    return this.path;\n  }\n\n  get isConfigured() {\n    return !!this.path && (this.path.includes('{{') || REGEX_PATH_URL.test(this.path));\n  }\n\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  toJSON(options?: { forApi?: boolean; includeId?: boolean }) {\n    return { path: this.path || null };\n  }\n}\n","import type WidgetConfigurationLimitedValueFragment from 'client/data/models/widget-configuration-limited-value';\nimport type { WidgetConfigurationLimitedValueDynamicSimpleAttributes } from 'client/data/models/widget-configuration-limited-value-dynamic-simple';\nimport type WidgetConfigurationLimitedValueDynamicSimpleFragment from 'client/data/models/widget-configuration-limited-value-dynamic-simple';\nimport type { WidgetConfigurationLimitedValueDynamicSmartAttributes } from 'client/data/models/widget-configuration-limited-value-dynamic-smart';\nimport type WidgetConfigurationLimitedValueDynamicSmartFragment from 'client/data/models/widget-configuration-limited-value-dynamic-smart';\nimport type WorkspaceComponentOptionsDropdownNestedDocument from 'client/data/models/workspace-component-options-dropdown';\nimport type AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\nimport { fragment, fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport interface WidgetConfigurationLimitedValueDynamicAttributes {\n  smart?: WidgetConfigurationLimitedValueDynamicSmartAttributes;\n  simple?: WidgetConfigurationLimitedValueDynamicSimpleAttributes;\n}\n\nexport default class WidgetConfigurationLimitedValueDynamicFragment\n  extends Fragment\n  implements WidgetConfigurationLimitedValueDynamicAttributes\n{\n  @fragment('widget-configuration-limited-value-dynamic-smart')\n  declare smart?: WidgetConfigurationLimitedValueDynamicSmartFragment;\n\n  @fragment('widget-configuration-limited-value-dynamic-simple', {\n    defaultValue: (parentRecord: WidgetConfigurationLimitedValueDynamicFragment) => {\n      if (parentRecord?.smart) {\n        return null;\n      }\n      return {};\n    },\n  })\n  declare simple?: WidgetConfigurationLimitedValueDynamicSimpleFragment;\n\n  @fragmentOwner() declare parent:\n    | WidgetConfigurationLimitedValueFragment\n    | WorkspaceComponentOptionsDropdownNestedDocument;\n\n  get isConfigured() {\n    return this.smart ? this.smart.isConfigured : !!this.simple?.isConfigured;\n  }\n\n  get templatingHelper(): AbstractTemplatingHelper | null {\n    return this.parent.templatingHelper || null;\n  }\n\n  toJSON(options?: { forApi?: boolean; includeId?: boolean }) {\n    return this.smart\n      ? { smart: this.smart.toJSON(options) }\n      : { simple: this.simple?.toJSON(options) };\n  }\n}\n","import type WidgetConfigurationLimitedValueFragment from 'client/data/models/widget-configuration-limited-value';\n\nimport { isArray } from '@ember/array';\nimport { array, fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport { castToBoolean } from 'client/utils/condition-utils';\n\ntype RawValue = string | number | boolean | null;\n\ntype ValueLabel = {\n  value: RawValue;\n  label: string;\n};\nexport interface WidgetConfigurationLimitedValueStaticAttributes {\n  values?: string[] | number[] | null;\n  options?: string[] | number[] | null | Array<ValueLabel>;\n}\n\nfunction isValueLabel(value: unknown): value is ValueLabel {\n  return (\n    typeof value === 'object'\n    && value !== null\n    && Object.prototype.hasOwnProperty.call(value, 'value')\n    && Object.prototype.hasOwnProperty.call(value, 'label')\n  );\n}\n\nfunction getLabel(value: RawValue) {\n  return value === null ? '' : `${value}`;\n}\n\nexport default class WidgetConfigurationLimitedValueStaticFragment\n  extends Fragment\n  implements WidgetConfigurationLimitedValueStaticAttributes\n{\n  @array('base')\n  declare values: WidgetConfigurationLimitedValueStaticAttributes['values'];\n\n  @array('base')\n  declare options: WidgetConfigurationLimitedValueStaticAttributes['options'];\n\n  @fragmentOwner() declare parent: WidgetConfigurationLimitedValueFragment;\n\n  get isConfigured() {\n    return Boolean(this.values?.length) || Boolean(this.options?.length);\n  }\n\n  private get isUsingOptions() {\n    return Boolean(this.options) && isArray(this.options) && this.options.length > 0;\n  }\n\n  get mappingValues(): ValueLabel[] {\n    if (this.isUsingOptions) {\n      return this.options.map((option) => ({\n        value: isValueLabel(option) ? option.value : (option as RawValue),\n        label: isValueLabel(option) ? option.label : getLabel(option as RawValue),\n      }));\n    }\n\n    return this.values?.map((value: RawValue) => ({\n      value:\n        this.parent?.parent?.field?.isBoolean && typeof value !== 'boolean'\n          ? castToBoolean(value)\n          : value,\n      label: getLabel(value),\n    }));\n  }\n\n  get optionValues(): RawValue[] {\n    return this.mappingValues?.map((option) => option.value) || [];\n  }\n\n  toJSON() {\n    if (this.isUsingOptions) {\n      return { options: this.options?.toArray() };\n    }\n\n    return { values: this.values?.toArray() || null };\n  }\n}\n","/* eslint-disable max-classes-per-file */\nimport type WidgetConfigurationLimitedValueDynamicFragment from 'client/data/models/widget-configuration-limited-value-dynamic';\nimport type { WidgetConfigurationLimitedValueDynamicAttributes } from 'client/data/models/widget-configuration-limited-value-dynamic';\nimport type WidgetConfigurationLimitedValueStaticFragment from 'client/data/models/widget-configuration-limited-value-static';\nimport type { WidgetConfigurationLimitedValueStaticAttributes } from 'client/data/models/widget-configuration-limited-value-static';\nimport type AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\nimport type { Constructor } from 'custom/utils';\n\nimport { fragment } from 'ember-data-model-fragments/attributes';\n\nimport WidgetConfigurationParameters from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetLimitedValueContainer {\n  templatingHelper: AbstractTemplatingHelper;\n}\n\nexport interface WidgetConfigurationLimitedValueAttributes {\n  static?: WidgetConfigurationLimitedValueStaticAttributes;\n  dynamic?: WidgetConfigurationLimitedValueDynamicAttributes;\n}\n\nexport function createWidgetConfigurationLimitedValue<\n  Cons extends Constructor<WidgetLimitedValueContainer>,\n>(superClass: Cons) {\n  class WidgetConfigurationLimitedValueFragmentTemp extends superClass {\n    @fragment('widget-configuration-limited-value-static', {\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-ignore\n      defaultValue: (parentRecord: WidgetConfigurationLimitedValueFragmentTemp) => {\n        if (parentRecord?.dynamic) {\n          return null;\n        }\n        return {};\n      },\n    })\n    declare static: WidgetConfigurationLimitedValueStaticFragment;\n\n    @fragment('widget-configuration-limited-value-dynamic')\n    declare dynamic: WidgetConfigurationLimitedValueDynamicFragment;\n\n    get isConfigured() {\n      return this.static ? this.static.isConfigured : !!this.dynamic?.isConfigured;\n    }\n\n    toJSON(options: { includeId?: boolean; forApi?: boolean }) {\n      return this.static\n        ? { static: this.static.toJSON() }\n        : { dynamic: this.dynamic?.toJSON(options) };\n    }\n  }\n\n  return WidgetConfigurationLimitedValueFragmentTemp;\n}\n\nexport default class WidgetConfigurationLimitedValueFragment extends createWidgetConfigurationLimitedValue(\n  WidgetConfigurationParameters,\n) {}\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParameters from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationLinkAttributes {\n  title?: string | null;\n  targetSelf?: boolean | null;\n}\n\nexport default class WidgetConfigurationLinkFragment\n  extends WidgetConfigurationParameters\n  implements WidgetConfigurationLinkAttributes\n{\n  @attr('string', { defaultValue: null }) declare title: string | null;\n  @attr('boolean', { defaultValue: false }) declare targetSelf: boolean | null;\n\n  toJSON() {\n    return {\n      title: this.title || null,\n      targetSelf: this.targetSelf || false,\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParameters from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationMapAttributes {\n  reverseCoordinates?: boolean;\n}\n\nexport default class WidgetConfigurationMapFragment\n  extends WidgetConfigurationParameters\n  implements WidgetConfigurationMapAttributes\n{\n  @attr('boolean', { defaultValue: false }) declare reverseCoordinates: boolean;\n\n  toJSON() {\n    return {\n      reverseCoordinates: this.reverseCoordinates,\n    };\n  }\n}\n","import WidgetConfigurationParameters from 'client/data/models/widget-configuration-parameters';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface WidgetConfigurationNoSettingsAttributes {}\n\nexport default class WidgetConfigurationNoSettingsFragment extends WidgetConfigurationParameters {\n  toJSON(options?: { includeId?: boolean; forApi?: boolean }) {\n    return {};\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParametersFragment from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationNumberInputAttributes {\n  placeholder?: string;\n}\n\nexport default class WidgetConfigurationNumberInputFragment\n  extends WidgetConfigurationParametersFragment\n  implements WidgetConfigurationNumberInputAttributes\n{\n  @attr('string') declare placeholder: string | null;\n  @attr('number', { allowNull: true }) declare min: number | null;\n  @attr('number', { allowNull: true }) declare max: number | null;\n  @attr('number', { allowNull: true }) declare step: number | null;\n\n  toJSON() {\n    return {\n      placeholder: this.placeholder || null,\n      min: this.min ?? null,\n      max: this.max ?? null,\n      step: this.step ?? null,\n    };\n  }\n}\n","import { isNone } from '@ember/utils';\nimport { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParameters from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationNumberAttributes {\n  decimalPlaces?: number | null;\n}\n\nexport default class WidgetConfigurationNumberFragment\n  extends WidgetConfigurationParameters\n  implements WidgetConfigurationNumberAttributes\n{\n  @attr('number', { defaultValue: null }) declare decimalPlaces: number | null;\n\n  toJSON() {\n    return {\n      decimalPlaces: isNone(this.decimalPlaces) ? null : this.decimalPlaces,\n    };\n  }\n}\n","import type WidgetConfiguration from 'client/data/models/widget-configuration';\nimport type AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\nimport { fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport { NotImplementedError } from 'client/utils/errors';\n\nexport default class WidgetConfigurationParametersFragment extends Fragment {\n  @fragmentOwner() declare parent: WidgetConfiguration;\n\n  get templatingHelper(): AbstractTemplatingHelper {\n    return this.parent.templatingHelper;\n  }\n\n  get isConfigured() {\n    return true;\n  }\n\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  toJSON(options?: { includeId?: boolean; forApi?: boolean }): object {\n    throw new NotImplementedError('toJSON');\n  }\n}\n","import type { WidgetConfigurationPriceViewerAttributes } from 'client/data/models/widget-configuration-price-viewer';\n\nimport { attr } from '@ember-data/model';\n\nimport WidgetConfigurationPrice from 'client/data/models/widget-configuration-price-viewer';\n\nexport type WidgetConfigurationPriceEditorAttributes = WidgetConfigurationPriceViewerAttributes & {\n  min?: number | null;\n  max?: number | null;\n  step?: number | null;\n};\n\nexport default class WidgetConfigurationPriceEditorFragment extends WidgetConfigurationPrice {\n  @attr('number') declare min: number;\n  @attr('number') declare max: number;\n  @attr('number') declare step: number;\n  @attr('string') declare placeholder: string;\n\n  toJSON() {\n    return {\n      ...super.toJSON(),\n      min: this.min ?? null,\n      max: this.max ?? null,\n      step: this.step ?? null,\n      placeholder: this.placeholder || null,\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParameters from 'client/data/models/widget-configuration-parameters';\n\nexport enum PriceBaseEnum {\n  Unit = 'Unit',\n  Cents = 'Cents',\n}\n\nexport interface WidgetConfigurationPriceViewerAttributes {\n  base?: PriceBaseEnum | null;\n  currency?: string | null;\n}\n\nexport default class WidgetConfigurationPriceViewerFragment\n  extends WidgetConfigurationParameters\n  implements WidgetConfigurationPriceViewerAttributes\n{\n  @attr('string', { defaultValue: null }) declare base: PriceBaseEnum | null;\n  @attr('string', { defaultValue: null }) declare currency: string | null;\n\n  toJSON() {\n    return {\n      base: this.base || null,\n      currency: this.currency || null,\n    };\n  }\n}\n","import WidgetConfigurationLimitedValue from 'client/data/models/widget-configuration-limited-value';\n\nexport { WidgetConfigurationLimitedValueAttributes as WidgetConfigurationRadioButtonAttributes } from './widget-configuration-limited-value';\n\nexport default class WidgetConfigurationRadioButtonFragment extends WidgetConfigurationLimitedValue {}\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParameters from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationRichTextViewerAttributes {\n  allowJavascript?: boolean;\n}\n\nexport default class WidgetConfigurationRichTextViewerFragment\n  extends WidgetConfigurationParameters\n  implements WidgetConfigurationRichTextViewerAttributes\n{\n  @attr('boolean', { defaultValue: false }) declare allowJavascript: boolean;\n\n  toJSON() {\n    return {\n      allowJavascript: this.allowJavascript,\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParametersFragment from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationRichTextAttributes {\n  placeholder?: string;\n}\n\nexport default class WidgetConfigurationRichTextFragment\n  extends WidgetConfigurationParametersFragment\n  implements WidgetConfigurationRichTextAttributes\n{\n  @attr('string') declare placeholder: string | null;\n\n  toJSON() {\n    return {\n      placeholder: this.placeholder || null,\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParametersFragment from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationTextAreaEditorAttributes {\n  placeholder?: string;\n  rows?: number;\n  height: number | null;\n}\n\nconst DEFAULT_ROWS = 6;\n\nexport default class WidgetConfigurationTextAreaEditorFragment\n  extends WidgetConfigurationParametersFragment\n  implements WidgetConfigurationTextAreaEditorAttributes\n{\n  @attr('string') declare placeholder: string | null;\n  @attr('number', { defaultValue: DEFAULT_ROWS }) declare rows: number;\n\n  /**\n   * This value is expected to be safe and valid: always a number >= 1.\n   * It is used to set the `rows` attribute of the textarea.\n   * It's useful if `rows` is not a correct value\n   */\n  get height() {\n    if (this.rows && Number(this.rows) && Number(this.rows) >= 1) {\n      return Math.round(this.rows);\n    }\n\n    return DEFAULT_ROWS;\n  }\n\n  set height(value: number | null) {\n    if (value && Number(value) && Number(value) >= 1) {\n      this.rows = Math.round(value);\n    }\n  }\n\n  toJSON() {\n    return {\n      placeholder: this.placeholder || null,\n      rows: this.height,\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport WidgetConfigurationParametersFragment from 'client/data/models/widget-configuration-parameters';\n\nexport interface WidgetConfigurationTextEditorAttributes {\n  placeholder?: string;\n}\n\nexport default class WidgetConfigurationTextEditorFragment\n  extends WidgetConfigurationParametersFragment\n  implements WidgetConfigurationTextEditorAttributes\n{\n  @attr('string') declare placeholder: string | null;\n\n  toJSON() {\n    return {\n      placeholder: this.placeholder || null,\n    };\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type Field from 'client/data/models/field';\nimport type WidgetConfigurationAssigneeEditorFragment from 'client/data/models/widget-configuration-assignee-editor';\nimport type WidgetConfigurationCheckboxes from 'client/data/models/widget-configuration-checkboxes';\nimport type { WidgetConfigurationCheckboxesAttributes } from 'client/data/models/widget-configuration-checkboxes';\nimport type WidgetConfigurationDate from 'client/data/models/widget-configuration-date';\nimport type { WidgetConfigurationDateAttributes } from 'client/data/models/widget-configuration-date';\nimport type WidgetConfigurationDateEditor from 'client/data/models/widget-configuration-date-editor';\nimport type { WidgetConfigurationDateEditorAttributes } from 'client/data/models/widget-configuration-date-editor';\nimport type WidgetConfigurationDropdownFragment from 'client/data/models/widget-configuration-dropdown';\nimport type { WidgetConfigurationDropdownAttributes } from 'client/data/models/widget-configuration-dropdown';\nimport type WidgetConfigurationFilePicker from 'client/data/models/widget-configuration-file-picker';\nimport type { WidgetConfigurationFilePickerAttributes } from 'client/data/models/widget-configuration-file-picker';\nimport type WidgetConfigurationFileViewer from 'client/data/models/widget-configuration-file-viewer';\nimport type { WidgetConfigurationFileViewerAttributes } from 'client/data/models/widget-configuration-file-viewer';\nimport type WidgetConfigurationInputArrayFragment from 'client/data/models/widget-configuration-input-array';\nimport type { WidgetConfigurationInputArrayAttributes } from 'client/data/models/widget-configuration-input-array';\nimport type WidgetConfigurationJsonTreeFragment from 'client/data/models/widget-configuration-json-tree';\nimport type { WidgetConfigurationJsonTreeAttributes } from 'client/data/models/widget-configuration-json-tree';\nimport type WidgetConfigurationLink from 'client/data/models/widget-configuration-link';\nimport type { WidgetConfigurationLinkAttributes } from 'client/data/models/widget-configuration-link';\nimport type WidgetConfigurationMap from 'client/data/models/widget-configuration-map';\nimport type { WidgetConfigurationMapAttributes } from 'client/data/models/widget-configuration-map';\nimport type WidgetConfigurationNoSettings from 'client/data/models/widget-configuration-no-settings';\nimport type { WidgetConfigurationNoSettingsAttributes } from 'client/data/models/widget-configuration-no-settings';\nimport type WidgetConfigurationNumberFragment from 'client/data/models/widget-configuration-number';\nimport type { WidgetConfigurationNumberAttributes } from 'client/data/models/widget-configuration-number';\nimport type WidgetConfigurationPriceEditor from 'client/data/models/widget-configuration-price-editor';\nimport type { WidgetConfigurationPriceEditorAttributes } from 'client/data/models/widget-configuration-price-editor';\nimport type WidgetConfigurationPriceViewer from 'client/data/models/widget-configuration-price-viewer';\nimport type { WidgetConfigurationPriceViewerAttributes } from 'client/data/models/widget-configuration-price-viewer';\nimport type WidgetConfigurationRadioButton from 'client/data/models/widget-configuration-radio-button';\nimport type { WidgetConfigurationRadioButtonAttributes } from 'client/data/models/widget-configuration-radio-button';\nimport type WidgetConfigurationRichTextFragment from 'client/data/models/widget-configuration-rich-text';\nimport type { WidgetConfigurationRichTextAttributes } from 'client/data/models/widget-configuration-rich-text';\nimport type WidgetConfigurationRichText from 'client/data/models/widget-configuration-rich-text-viewer';\nimport type { WidgetConfigurationRichTextViewerAttributes } from 'client/data/models/widget-configuration-rich-text-viewer';\nimport type { WidgetConfigurationTextAreaEditorAttributes } from 'client/data/models/widget-configuration-text-area-editor';\nimport type WidgetConfigurationTextAreaEditorFragment from 'client/data/models/widget-configuration-text-area-editor';\nimport type WidgetConfigurationTextEditorFragment from 'client/data/models/widget-configuration-text-editor';\nimport type { WidgetConfigurationTextEditorAttributes } from 'client/data/models/widget-configuration-text-editor';\nimport type CollectionState from 'client/legacy/services/collection-state';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type WidgetsManagerService from 'client/legacy/services/widgets-manager';\nimport type NestedField from 'client/utils/nested/field';\nimport type { WidgetDisplayTypeEnum, WidgetEditTypeEnum, Widgets } from 'client/utils/widgets';\n\nimport { computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { dasherize } from '@ember/string';\nimport { attr } from '@ember-data/model';\nimport { fragment, fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport WorkspaceComponentOptionsFieldNestedDocument from 'client/data/models/workspace-component-options-field';\nimport WidgetTemplatingHelper from 'client/utils/templating-helper/widget-templating-helper';\nimport { getWidget } from 'client/utils/widgets';\n\nexport interface WidgetRegistry {\n  [key: string]: WidgetConfigurationNoSettings;\n  [WidgetEditTypeEnum.Checkboxes]: WidgetConfigurationCheckboxes;\n  [WidgetEditTypeEnum.DatePicker]: WidgetConfigurationDateEditor;\n  [WidgetDisplayTypeEnum.Date]: WidgetConfigurationDate;\n  [WidgetEditTypeEnum.Dropdown]: WidgetConfigurationDropdownFragment;\n  [WidgetEditTypeEnum.FilePicker]: WidgetConfigurationFilePicker;\n  [WidgetDisplayTypeEnum.FileViewer]: WidgetConfigurationFileViewer;\n  [WidgetDisplayTypeEnum.Link]: WidgetConfigurationLink;\n  [WidgetDisplayTypeEnum.Map]: WidgetConfigurationMap;\n  [WidgetEditTypeEnum.PriceEditor]: WidgetConfigurationPriceEditor;\n  [WidgetDisplayTypeEnum.Price]: WidgetConfigurationPriceViewer;\n  [WidgetEditTypeEnum.RadioButton]: WidgetConfigurationRadioButton;\n  [WidgetDisplayTypeEnum.RichText]: WidgetConfigurationRichText;\n  [WidgetEditTypeEnum.TextInput]: WidgetConfigurationTextEditorFragment;\n  [WidgetEditTypeEnum.MultipleInput]: WidgetConfigurationInputArrayFragment;\n  [WidgetEditTypeEnum.TextArea]: WidgetConfigurationTextAreaEditorFragment;\n  [WidgetEditTypeEnum.RichTextEditor]: WidgetConfigurationRichTextFragment;\n  [WidgetEditTypeEnum.AssigneeEditor]: WidgetConfigurationAssigneeEditorFragment;\n  [WidgetDisplayTypeEnum.Number]: WidgetConfigurationNumberFragment;\n  [WidgetDisplayTypeEnum.JsonTree]: WidgetConfigurationJsonTreeFragment;\n}\n\nexport interface WidgetAttributesRegistry {\n  [key: string]: WidgetConfigurationNoSettingsAttributes;\n  [WidgetEditTypeEnum.Checkboxes]: WidgetConfigurationCheckboxesAttributes;\n  [WidgetEditTypeEnum.DatePicker]: WidgetConfigurationDateEditorAttributes;\n  [WidgetDisplayTypeEnum.Date]: WidgetConfigurationDateAttributes;\n  [WidgetEditTypeEnum.Dropdown]: WidgetConfigurationDropdownAttributes;\n  [WidgetEditTypeEnum.FilePicker]: WidgetConfigurationFilePickerAttributes;\n  [WidgetDisplayTypeEnum.FileViewer]: WidgetConfigurationFileViewerAttributes;\n  [WidgetDisplayTypeEnum.Link]: WidgetConfigurationLinkAttributes;\n  [WidgetDisplayTypeEnum.Map]: WidgetConfigurationMapAttributes;\n  [WidgetEditTypeEnum.PriceEditor]: WidgetConfigurationPriceEditorAttributes;\n  [WidgetDisplayTypeEnum.Price]: WidgetConfigurationPriceViewerAttributes;\n  [WidgetEditTypeEnum.RadioButton]: WidgetConfigurationRadioButtonAttributes;\n  [WidgetDisplayTypeEnum.RichText]: WidgetConfigurationRichTextViewerAttributes;\n  [WidgetEditTypeEnum.TextInput]: WidgetConfigurationTextEditorAttributes;\n  [WidgetEditTypeEnum.MultipleInput]: WidgetConfigurationInputArrayAttributes;\n  [WidgetEditTypeEnum.TextArea]: WidgetConfigurationTextAreaEditorAttributes;\n  [WidgetEditTypeEnum.RichTextEditor]: WidgetConfigurationRichTextAttributes;\n  [WidgetDisplayTypeEnum.Number]: WidgetConfigurationNumberAttributes;\n  [WidgetDisplayTypeEnum.JsonTree]: WidgetConfigurationJsonTreeAttributes;\n}\n\nexport interface WidgetConfigurationAttributes<WidgetName extends Widgets = Widgets> {\n  name: WidgetName;\n  parameters?: WidgetAttributesRegistry[WidgetName];\n}\n\nexport default class WidgetConfigurationFragment<WidgetName extends Widgets = Widgets>\n  extends Fragment\n  implements WidgetConfigurationAttributes<WidgetName>\n{\n  @service declare widgetsManager: WidgetsManagerService;\n  @service declare currentUser: CurrentUserService;\n  @service declare collectionState: CollectionState;\n\n  _templatingHelper: WidgetTemplatingHelper | null = null;\n\n  @attr('string') declare name: WidgetName;\n  @fragment<WidgetConfigurationFragment>('widget-configuration-parameters', {\n    polymorphic: true,\n    typeKey(data: object, owner: WidgetConfigurationFragment) {\n      return getWidget(owner.name)?.hasSettings\n        ? `widget-configuration-${dasherize(owner.name)}`\n        : 'widget-configuration-no-settings';\n    },\n    defaultValue: {},\n  })\n  declare parameters: WidgetRegistry[WidgetName];\n\n  @fragmentOwner() declare parent:\n    | Field\n    | NestedField\n    | WorkspaceComponentOptionsFieldNestedDocument;\n\n  @computed('name', 'widgetsManager')\n  get widget() {\n    return this.widgetsManager.find(this.name);\n  }\n\n  get field() {\n    return this.parent instanceof WorkspaceComponentOptionsFieldNestedDocument\n      ? this.parent.field\n      : this.parent;\n  }\n\n  get templatingHelper() {\n    if (this.parent instanceof WorkspaceComponentOptionsFieldNestedDocument) {\n      return this.parent.templatingHelper;\n    }\n    if (!this._templatingHelper && this.parent) {\n      this._templatingHelper = new WidgetTemplatingHelper({\n        currentUser: this.currentUser,\n        collectionState: this.collectionState,\n        parentCollection: this.parent.collection as CollectionModel,\n      });\n    }\n    return this._templatingHelper;\n  }\n\n  get isConfigured() {\n    return this.parameters.isConfigured;\n  }\n\n  toJSON({ forApi = true }: { forApi?: boolean; includeId?: boolean } = {}) {\n    return {\n      name: this.name,\n      parameters: this.parameters.toJSON({ forApi }),\n    };\n  }\n}\n","import type ApplicationInstance from '@ember/application/instance';\n\nimport { getOwner } from '@ember/application';\nimport { computed } from '@ember/object';\nimport { equal } from '@ember/object/computed';\nimport { dasherize } from '@ember/string';\nimport { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\nimport { WidgetDisplayTypeEnum, type WidgetTypeEnum, type Widgets } from 'client/utils/widgets';\n\nexport default class WidgetModel extends AbstractModel {\n  @attr('string') declare name: Widgets;\n  @attr('string') declare label: string;\n  @attr('boolean', { defaultValue: true }) declare hasSettings: boolean;\n  @attr('string') declare type: WidgetTypeEnum;\n  @attr('boolean', { defaultValue: false }) declare shouldDisplayInsideFilter: string;\n  @attr('boolean', { defaultValue: false }) declare shouldRenderNullValues: boolean;\n  @attr('boolean', { defaultValue: false }) declare editInlineValueOnLeftClick: boolean;\n\n  @equal('type', 'display') isDisplay;\n  @equal('type', 'edit') isEdit;\n\n  @computed('name')\n  get loweredDasherizedName() {\n    return dasherize(this.name).replace(/[()]/g, '').toLowerCase();\n  }\n\n  @computed('type', 'loweredDasherizedName')\n  get widgetSettingsComponent() {\n    return this.fallbackLayoutComponent(\n      `widgets/${this.type}/${this.loweredDasherizedName}/widget-settings`,\n      `feature/widgets/${this.type}/${this.loweredDasherizedName}/widget-settings`,\n    );\n  }\n\n  @computed('loweredDasherizedName')\n  get displayColumnLayoutComponent() {\n    return this.fallbackLayoutComponent(\n      `widgets/display/${this.loweredDasherizedName}/widget-column-layout`,\n      `feature/widgets/display/${this.loweredDasherizedName}/widget-column-layout`,\n      `widgets/display/${this.loweredDasherizedName}/widget-layout`,\n      'widgets/display/text/widget-column-layout',\n    );\n  }\n\n  @computed('loweredDasherizedName')\n  get displayRowLayoutComponent() {\n    return this.fallbackLayoutComponent(\n      `widgets/display/${this.loweredDasherizedName}/widget-layout`,\n      `feature/widgets/display/${this.loweredDasherizedName}/widget-layout`,\n      'widgets/display/text/widget-layout',\n    );\n  }\n\n  @computed('loweredDasherizedName')\n  get editLayoutComponent() {\n    return this.fallbackLayoutComponent(\n      `widgets/edit/${this.loweredDasherizedName}/widget-layout`,\n      `feature/widgets/edit/${this.loweredDasherizedName}/widget-layout`,\n      'widgets/edit/text-input/widget-layout',\n    );\n  }\n\n  fallbackLayoutComponent(...paths: string[]) {\n    const owner = getOwner(this) as ApplicationInstance;\n    return paths.find(\n      (path) =>\n        owner.hasRegistration(`component:${path}`)\n        || owner.hasRegistration(`template:components/${path}`),\n    );\n  }\n\n  get isCopiable() {\n    return [\n      WidgetDisplayTypeEnum.Text,\n      WidgetDisplayTypeEnum.MultiLineText,\n      WidgetDisplayTypeEnum.Date,\n      WidgetDisplayTypeEnum.Time,\n      WidgetDisplayTypeEnum.Number,\n      WidgetDisplayTypeEnum.Percentage,\n      WidgetDisplayTypeEnum.Price,\n      WidgetDisplayTypeEnum.Address,\n      WidgetDisplayTypeEnum.BelongsTo,\n      WidgetDisplayTypeEnum.Link,\n      // @ts-expect-error includes should not care\n    ].includes(this.name);\n  }\n}\n","import type {\n  WorkflowEngineEnum,\n  WorkflowRunStateEnum,\n} from 'client/features/workflow/services/standalone-package/types/workflow-run';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type { RawStepHistory } from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\n\nimport { attr } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport default class WorkflowRunModel extends AbstractModel {\n  @attr('string') declare bpmnVersion: string;\n  @attr('string') declare collectionId: string;\n  @attr('string') declare workflowId: string;\n  @attr('string') declare userId: string;\n  @attr('string') declare renderingId: string;\n  @attr('string') declare selectedRecordId: string;\n  @attr('string') declare runState: WorkflowRunStateEnum;\n  @attr('string') declare engine: WorkflowEngineEnum;\n  @attr('base') declare workflowHistory: RawStepHistory[] | WorkflowStepHistory[];\n  @attr('date') updatedAt: Date;\n\n  toJSON() {\n    return {\n      id: this.id,\n      userId: this.userId,\n      renderingId: this.renderingId,\n      collectionId: this.collectionId,\n      workflowId: this.workflowId,\n      bpmnVersion: this.bpmnVersion,\n      selectedRecordId: this.selectedRecordId,\n      workflowHistory: this.workflowHistory?.map((historyStep) => historyStep.toJSON()),\n      runState: this.runState,\n      engine: this.engine,\n    };\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type SegmentModel from 'client/data/models/segment';\n\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\n\nimport AbstractModel from 'client/data/models/abstract-model';\n\nexport interface WorkflowAttributes {\n  name: string;\n  collection: CollectionModel;\n  bpmnAwsS3Identifier?: string;\n  segments?: SegmentModel[];\n  position?: number;\n  isVisible?: boolean;\n}\n\nexport default class WorkflowModel extends AbstractModel implements WorkflowAttributes {\n  @attr('string') declare name: string;\n  @attr('string') declare bpmnAwsS3Identifier: string;\n\n  @attr('number') position: number;\n  @attr('boolean', { defaultValue: true }) isVisible: boolean;\n\n  @belongsTo('collection', { async: false }) declare collection: CollectionModel;\n  @hasMany('segment', { async: false }) declare segments: SegmentModel[];\n\n  get patchPath() {\n    const id = this.isNew ? '-' : this.id;\n    return `/workflows/${id}`;\n  }\n\n  getRelationshipPatchNameAndValue(): { name: string; value: string[] } {\n    return { name: 'segmentIds', value: this.segments.map((segment) => segment.id) };\n  }\n\n  toJSON() {\n    return {\n      id: this.id,\n      name: this.name,\n      bpmnAwsS3Identifier: this.bpmnAwsS3Identifier,\n      collectionId: this.collection.id,\n      segmentIds: this.segments.map((segment) => segment.id),\n      position: this.position,\n      isVisible: this.isVisible,\n    };\n  }\n}\n","import type FieldModel from 'client/data/models/field';\nimport type WorkspaceComponentOptionsCollectionNestedDocument from 'client/data/models/workspace-component-options-collection';\nimport type NestedField from 'client/utils/nested/field';\n\nimport { attr } from '@ember-data/model';\nimport { fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport interface WorkspaceColumnAttributes {\n  name: string;\n  position: number;\n}\n\nexport default class WorkspaceCollectionColumnFragment\n  extends Fragment\n  implements WorkspaceColumnAttributes\n{\n  @attr('string') declare name: string;\n  @attr('number') declare position: number;\n\n  @fragmentOwner() options: WorkspaceComponentOptionsCollectionNestedDocument;\n\n  get field() {\n    return (this.options?.filteredCollection.fields as Array<FieldModel | NestedField>).findBy(\n      'fieldName',\n      this.name,\n    );\n  }\n\n  get displayName() {\n    return this.field?.displayName;\n  }\n\n  get patchPath() {\n    const id = this.isNew ? '-' : encodeURIComponent(this.name);\n    return `${this.options.patchPath}/visibleColumns/${id}`;\n  }\n\n  toJSON() {\n    return {\n      name: this.name,\n      position: this.position,\n    };\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type { WorkspaceComponentOptionsButtonAttributes } from 'client/data/models/workspace-component-options-button-abstract';\n\nimport { attr } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { createCache, getValue } from '@glimmer/tracking/primitives/cache';\n\nimport CustomActionModel from 'client/data/models/custom-action';\nimport AbstractWorkspaceComponentOptionsButtonNestedDocument from 'client/data/models/workspace-component-options-button-abstract';\nimport { ButtonTypeEnum } from 'client/utils/color-utils';\n\nexport enum WorkspaceActionTypeEnum {\n  Create = 'CREATE',\n  Delete = 'DELETE',\n  Duplicate = 'DUPLICATE',\n  Edit = 'EDIT',\n  Export = 'EXPORT',\n  Smart = 'SMART',\n}\n\ntype BasicActionsBuilderType = {\n  computeName: (collection: CollectionModel) => string;\n  computeId: (collection: CollectionModel) => string;\n  isGlobal?: boolean;\n  isBulk?: boolean;\n  isSingle?: boolean;\n  type: WorkspaceActionTypeEnum;\n};\n\nexport type BasicActionType = {\n  id: string;\n  name: string;\n  displayName: string;\n  isGlobal?: boolean;\n  isBulk?: boolean;\n  isSingle?: boolean;\n  type: WorkspaceActionTypeEnum;\n  collection: CollectionModel;\n};\n\nexport type WorkspaceRecordEditMode = 'modal' | 'fields';\n\nexport function computeBasicActionId(collection: CollectionModel, type: WorkspaceActionTypeEnum) {\n  return `${collection.name}-${type}`;\n}\n\nconst BASIC_ACTIONS: BasicActionsBuilderType[] = [\n  {\n    computeName: (collection: CollectionModel) => `Create ${collection.displayNameLowerCase}`,\n    computeId: (collection: CollectionModel) =>\n      computeBasicActionId(collection, WorkspaceActionTypeEnum.Create),\n    isGlobal: true,\n    type: WorkspaceActionTypeEnum.Create,\n  },\n  {\n    computeName: (collection: CollectionModel) => `Delete ${collection.displayNamePluralLowerCase}`,\n    computeId: (collection: CollectionModel) =>\n      computeBasicActionId(collection, WorkspaceActionTypeEnum.Delete),\n    isBulk: true,\n    type: WorkspaceActionTypeEnum.Delete,\n  },\n  {\n    computeName: (collection: CollectionModel) => `Duplicate ${collection.displayNameLowerCase}`,\n    computeId: (collection: CollectionModel) =>\n      computeBasicActionId(collection, WorkspaceActionTypeEnum.Duplicate),\n    isSingle: true,\n    type: WorkspaceActionTypeEnum.Duplicate,\n  },\n  {\n    computeName: (collection: CollectionModel) => `Edit ${collection.displayNameLowerCase}`,\n    computeId: (collection: CollectionModel) =>\n      computeBasicActionId(collection, WorkspaceActionTypeEnum.Edit),\n    isSingle: true,\n    type: WorkspaceActionTypeEnum.Edit,\n  },\n  {\n    computeName: (collection: CollectionModel) => `Export ${collection.displayNamePluralLowerCase}`,\n    computeId: (collection: CollectionModel) =>\n      computeBasicActionId(collection, WorkspaceActionTypeEnum.Export),\n    isGlobal: true,\n    type: WorkspaceActionTypeEnum.Export,\n  },\n];\n\nexport function getBasicActionsForCollection(collection: CollectionModel): BasicActionType[] {\n  return BASIC_ACTIONS.map(({ computeName, computeId, type, isGlobal, isSingle, isBulk }) => ({\n    id: computeId(collection),\n    type,\n    name: computeName(collection),\n    displayName: computeName(collection),\n    isGlobal,\n    isSingle,\n    isBulk,\n    collection,\n  }));\n}\n\nexport interface WorkspaceComponentOptionsActionAttributes\n  extends WorkspaceComponentOptionsButtonAttributes {\n  type?: WorkspaceActionTypeEnum;\n  editMode?: WorkspaceRecordEditMode;\n}\n\ntype ActionItem = CustomActionModel | BasicActionType;\n\nexport default class WorkspaceComponentOptionsActionNestedDocument extends AbstractWorkspaceComponentOptionsButtonNestedDocument {\n  @attr('string') declare actionId: string;\n  @attr('string') declare type: WorkspaceActionTypeEnum;\n  @attr('string', { defaultValue: null }) declare editMode: WorkspaceRecordEditMode;\n\n  @tracked isRecordEdition = false;\n\n  readonly hasCustomEmptyStateDisplay = true;\n\n  _basicActionsCache = createCache(() => {\n    return this.sourceCollection && getBasicActionsForCollection(this.sourceCollection);\n  });\n\n  get basicActions() {\n    if (!this.sourceCollection) {\n      return [];\n    }\n    return getValue(this._basicActionsCache);\n  }\n\n  get isConfigured() {\n    return (\n      !!this.action\n      && (this.action.isGlobal\n        || !!this.componentToSelectRecordFrom\n        || !!this.templatedBelongsToCollection)\n    );\n  }\n\n  override get hasConfigurationError() {\n    return super.hasConfigurationError || (!!this.actionId && !this.action);\n  }\n\n  get inheritedButtonType() {\n    return (\n      (!this.isBasicAction && (this.action as CustomActionModel)?.buttonType)\n      || ButtonTypeEnum.Primary\n    );\n  }\n\n  get isBasicAction() {\n    return this.basicActions.some(({ type }) => type === this.type);\n  }\n\n  override get isMultiSelectSupported() {\n    return !!this.action && !this.action.isSingle;\n  }\n\n  async onActionChange(action: ActionItem) {\n    if (action instanceof CustomActionModel) {\n      this.actionId = action.id;\n      this.type = WorkspaceActionTypeEnum.Smart;\n    } else {\n      this.actionId = null;\n      this.type = action?.type || null;\n      if (action && action.type === 'EDIT') {\n        this.editMode = 'modal';\n      } else {\n        this.editMode = null;\n      }\n    }\n\n    const collection = await action?.collection;\n    this.sourceCollectionId = collection?.id || null;\n    this.componentToSelectRecordFromId = null;\n  }\n\n  set action(action: ActionItem) {\n    void this.onActionChange(action);\n  }\n\n  get action() {\n    if (this.isBasicAction) {\n      return this.basicActions.findBy('type', this.type);\n    }\n\n    return this.actionId ? this.store.peekRecord('custom-action', this.actionId) : null;\n  }\n\n  override toJSON() {\n    return {\n      ...super.toJSON(),\n      type: this.type,\n      editMode: this.editMode,\n      actionId: this.actionId,\n      templatedBelongsToPath: this.validatedTemplatedBelongsToPath,\n    };\n  }\n\n  resetReadMode() {\n    this.isRecordEdition = false;\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ButtonTypeEnum } from 'client/utils/color-utils';\n\nimport { service } from '@ember/service';\nimport { attr } from '@ember-data/model';\n\nimport { getButtonTypeOrDefault } from 'client/data/models/custom-action';\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\nimport FieldTemplatingHelper from 'client/utils/templating-helper/field-templating-helper';\nimport {\n  getSourceWorkspaceComponentByName,\n  getSourceWorkspaceComponentOrCurrentRecord,\n} from 'client/utils/workspace/helper';\n\nexport interface WorkspaceComponentOptionsButtonAttributes {\n  sourceCollectionId: string;\n  displayedText?: string;\n  buttonType?: ButtonTypeEnum;\n}\n\nexport default abstract class AbstractWorkspaceComponentOptionsButtonNestedDocument extends WorkspaceComponentOptionsNestedDocument {\n  @service() declare store: StoreService;\n\n  @attr('string') declare sourceCollectionId: string;\n  @attr('string') declare displayedText: string;\n  @attr('string') declare componentToSelectRecordFromId: string | null;\n  @attr('string', { defaultValue: null }) declare buttonType: ButtonTypeEnum | null;\n  @attr('string') declare templatedBelongsToPath: string;\n\n  readonly hasCustomEmptyStateDisplay = true;\n\n  abstract get isConfigured(): boolean;\n\n  get buttonTypeOrDefault() {\n    return getButtonTypeOrDefault(this.buttonType);\n  }\n\n  get templatedBelongsToPathWithoutBrackets() {\n    return this.templatedBelongsToPath.substring(2, this.templatedBelongsToPath.length - 2);\n  }\n\n  get templatedBelongsToComponent(): WorkspaceComponentModel<\n    WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n  > | null {\n    if (!this.templatedBelongsToPath || this.templatedBelongsToPath === '{{}}') return null;\n\n    const componentName = this.templatedBelongsToPathWithoutBrackets.split('.')[0];\n    if (!componentName) {\n      return null;\n    }\n    return getSourceWorkspaceComponentByName(this.workspaceComponent, componentName);\n  }\n\n  get templatedBelongsToCollection(): CollectionModel | null {\n    if (!this.templatedBelongsToComponent) {\n      return null;\n    }\n    const belongsToPath = this.templatedBelongsToPathWithoutBrackets.split('.').slice(2).join('.');\n    if (!belongsToPath) {\n      return null;\n    }\n    const collectionFromComponent = this.templatedBelongsToComponent.options\n      ?.filteredCollection as CollectionModel;\n\n    const belongsToFields = FieldTemplatingHelper.getFieldFromPath(\n      collectionFromComponent,\n      belongsToPath,\n    );\n\n    return (belongsToFields as FieldModel)?.referenceModel;\n  }\n\n  get hasConfigurationError() {\n    return (\n      (!!this.sourceCollectionId && !this.sourceCollection)\n      || (!!this.componentToSelectRecordFromId && !this.componentToSelectRecordFrom)\n      || (!!this.componentToSelectRecordFrom\n        && (this.componentToSelectRecordFrom?.options.filteredCollection as CollectionModel)?.id\n          !== this.sourceCollectionId)\n      || (this.templatedBelongsToPath && !this.templatedBelongsToCollection)\n      || (!!this.templatedBelongsToCollection\n        && this.templatedBelongsToCollection?.id !== this.sourceCollectionId)\n    );\n  }\n\n  get sourceCollection() {\n    return (\n      (this.sourceCollectionId && this.store.peekRecord('collection', this.sourceCollectionId))\n      || null\n    );\n  }\n\n  set sourceCollection(collection) {\n    this.sourceCollectionId = collection?.id || null;\n  }\n\n  get templatingKeysWithExpectedType() {\n    return [\n      ...AbstractTemplatingHelper.getTemplatingKeys(this.displayedText || '').map(\n        (templatingKey) => ({ templatingKey, expectedType: 'String', isImpactingContext: false }),\n      ),\n      ...(this.templatedBelongsToCollection\n        ? [\n            {\n              templatingKey: this.templatedBelongsToPathWithoutBrackets,\n              expectedType: 'BelongsTo',\n              isImpactingContext: true,\n            },\n          ]\n        : []),\n    ];\n  }\n\n  get componentsAndVariableKeysUsedByConfiguration() {\n    return this.componentToSelectRecordFrom\n      ? [\n          {\n            componentName: this.componentToSelectRecordFrom.name,\n            contextVariableKeys: [\n              this.isMultiSelectSupported ? 'selectedRecords' : 'selectedRecord',\n            ],\n          },\n        ]\n      : [];\n  }\n\n  get isMultiSelectSupported() {\n    return false;\n  }\n\n  get componentToSelectRecordFrom() {\n    return getSourceWorkspaceComponentOrCurrentRecord(\n      this.workspaceComponent,\n      this.componentToSelectRecordFromId,\n    );\n  }\n\n  set componentToSelectRecordFrom(workspaceComponent) {\n    this.componentToSelectRecordFromId = workspaceComponent?.id;\n  }\n\n  get validatedTemplatedBelongsToPath() {\n    return this.templatedBelongsToCollection?.id === this.sourceCollectionId\n      ? this.templatedBelongsToPath\n      : null;\n  }\n\n  toJSON() {\n    return {\n      sourceCollectionId: this.sourceCollectionId,\n      componentToSelectRecordFromId: this.componentToSelectRecordFromId || null,\n      displayedText: this.displayedText || null,\n      buttonType: this.buttonType,\n    };\n  }\n}\n","/* eslint-disable max-classes-per-file */\nimport type CollectionModel from 'client/data/models/collection';\nimport type { FilterAttributes } from 'client/data/models/fragment-filter';\nimport type { S3VersionsAttributes } from 'client/data/models/s3-versions';\nimport type { ChartInterface, ChartTypeEnum } from 'client/decorators/model-chart';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { service } from '@ember/service';\nimport { attr } from '@ember-data/model';\n\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\nimport modelChart from 'client/decorators/model-chart';\nimport { NotImplementedError } from 'client/utils/errors';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\nexport interface WorkspaceComponentOptionsChartAttributes {\n  sourceCollectionId?: string;\n  labelFieldName?: string;\n  relationshipFieldName?: string;\n  aggregateFieldName?: string;\n  groupByFieldName?: string;\n  numeratorChartId?: string;\n  denominatorChartId?: string;\n  name: string;\n  description?: string;\n\n  type: ChartTypeEnum;\n  query?: string;\n  connectionName?: string;\n  aggregator?: 'Count' | 'Sum';\n  timeRange?: string;\n  apiRoute?: string;\n  objective?: number;\n  limit?: number;\n\n  templateUrl?: string;\n  componentUrl?: string;\n  styleUrl?: string;\n  templateCode?: string;\n  componentCode?: string;\n  styleCode?: string;\n  s3Versions?: S3VersionsAttributes;\n\n  filter?: FilterAttributes;\n}\n\nclass BaseWorkspaceComponentOptionsChartNestedDocument\n  extends WorkspaceComponentOptionsNestedDocument\n  implements ChartInterface\n{\n  @service() declare store: StoreService;\n\n  @attr('string') declare sourceCollectionId?: string;\n  @attr('string') declare labelFieldName?: string;\n  @attr('string') declare relationshipFieldName?: string;\n  @attr('string') declare aggregateFieldName?: string;\n  @attr('string') declare groupByFieldName?: string;\n  @attr('string') declare numeratorChartId?: string;\n  @attr('string') declare denominatorChartId?: string;\n\n  get sourceCollection() {\n    return this.sourceCollectionId && this.store.peekRecord('collection', this.sourceCollectionId);\n  }\n\n  set sourceCollection(sourceCollection: CollectionModel) {\n    this.sourceCollectionId = sourceCollection && sourceCollection.id;\n  }\n\n  get collection() {\n    return this.sourceCollection;\n  }\n\n  get numeratorChart(): BaseWorkspaceComponentOptionsChartNestedDocument | null {\n    return (\n      this.numeratorChartId\n      && (this.store.peekRecord('workspace-component', this.numeratorChartId)\n        ?.options as BaseWorkspaceComponentOptionsChartNestedDocument)\n    );\n  }\n\n  set numeratorChart(numeratorChart: BaseWorkspaceComponentOptionsChartNestedDocument | null) {\n    this.numeratorChartId = numeratorChart && numeratorChart.workspaceComponent.id;\n  }\n\n  get denominatorChart(): BaseWorkspaceComponentOptionsChartNestedDocument | null {\n    return (\n      this.denominatorChartId\n      && (this.store.peekRecord('workspace-component', this.denominatorChartId)\n        ?.options as BaseWorkspaceComponentOptionsChartNestedDocument)\n    );\n  }\n\n  set denominatorChart(denominatorChart: BaseWorkspaceComponentOptionsChartNestedDocument | null) {\n    this.denominatorChartId = denominatorChart && denominatorChart.workspaceComponent.id;\n  }\n\n  get labelField() {\n    return (\n      this.labelFieldName && this.sourceCollection?.fields.findBy('fieldName', this.labelFieldName)\n    );\n  }\n\n  set labelField(labelField) {\n    this.labelFieldName = labelField && labelField.fieldName;\n  }\n\n  get relationshipField() {\n    return (\n      this.relationshipFieldName\n      && this.sourceCollection?.fields.findBy('fieldName', this.relationshipFieldName)\n    );\n  }\n\n  set relationshipField(relationshipField) {\n    this.relationshipFieldName = relationshipField && relationshipField.fieldName;\n  }\n\n  get groupByField() {\n    return (\n      this.groupByFieldName\n      && this.sourceCollection?.fields.findBy('fieldName', this.groupByFieldName)\n    );\n  }\n\n  set groupByField(groupByField) {\n    this.groupByFieldName = groupByField && groupByField.fieldName;\n  }\n\n  get aggregateField() {\n    if (!this.aggregateFieldName) return null;\n\n    if (this.relationshipFieldName) {\n      return this.relationshipField?.referenceModel?.fields.findBy(\n        'fieldName',\n        this.aggregateFieldName,\n      );\n    }\n    return (\n      this.aggregateFieldName\n      && this.sourceCollection?.fields.findBy('fieldName', this.aggregateFieldName)\n    );\n  }\n\n  set aggregateField(aggregateField) {\n    this.aggregateFieldName = aggregateField && aggregateField.fieldName;\n  }\n\n  get patchPath() {\n    return `${this.workspaceComponent.patchPath}/options`;\n  }\n\n  get registryNameBase() {\n    if (!this.workspaceComponent.id) {\n      return null;\n    }\n    return `${this.workspaceComponent.id.toLowerCase()}-smart-chart`;\n  }\n\n  get isConfigured() {\n    return !!this.isValid;\n  }\n\n  _getRelationshipId(key: 'sourceCollection' | 'numeratorChart' | 'denominatorChart') {\n    return this[`${key}Id`];\n  }\n\n  _getFieldName(key: 'labelField' | 'groupByField' | 'relationshipField' | 'aggregateField') {\n    return this[`${key}Name`];\n  }\n\n  toJSON(): Record<string, unknown> {\n    throw new NotImplementedError('toJSON');\n  }\n}\n\nexport default class WorkspaceComponentOptionsChartNestedDocument extends modelChart()(\n  BaseWorkspaceComponentOptionsChartNestedDocument,\n) {\n  get templatingKeysWithExpectedType() {\n    const templatingKeysStringInName = [\n      ...new Set(AbstractTemplatingHelper.getTemplatingKeys(this.name || '')),\n    ];\n    const templatingKeysStringImpactingContext = [\n      ...new Set([\n        ...AbstractTemplatingHelper.getTemplatingKeys(this.timeRange || ''),\n        ...AbstractTemplatingHelper.getTemplatingKeys(this.query || ''),\n        ...AbstractTemplatingHelper.getTemplatingKeys(this.apiRoute || ''),\n      ]),\n    ];\n    const templatingKeysWithExpectedTypeFromFilter =\n      this.filter?.templatingKeysWithExpectedType || [];\n    return [\n      ...templatingKeysStringInName.map((templatingKey) => ({\n        templatingKey,\n        expectedType: 'String',\n        isImpactingContext: false,\n      })),\n      ...templatingKeysStringImpactingContext.map((templatingKey) => ({\n        templatingKey,\n        expectedType: 'String',\n        isImpactingContext: true,\n      })),\n      ...templatingKeysWithExpectedTypeFromFilter.map((keyWithExpectingType) => ({\n        ...keyWithExpectingType,\n        isImpactingContext: true,\n      })),\n    ];\n  }\n\n  get canFetchData() {\n    // We want to be able to display chart when previewing a Workspace\n    return super.canFetchData || (this.workspaceComponent.workspace?.isNew && this.isValid);\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type FragmentFilter from 'client/data/models/fragment-filter';\nimport type { FilterAttributes } from 'client/data/models/fragment-filter';\nimport type WorkspaceCollectionColumnFragment from 'client/data/models/workspace-collection-column';\nimport type BetaCollectionListCommunicatorService from 'client/legacy/services/beta-collection-list-communicator';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type RecordsContext from 'client/utils/liana-records/records-context';\nimport type NestedField from 'client/utils/nested/field';\n\nimport { equal } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { attr } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { fragment, fragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport { SortingOrderEnum } from 'client/data/models/collection';\nimport { buildWorkspaceContextVariable } from 'client/data/models/workspace-component';\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\nimport ResizableColumnsState from 'client/utils/resizable-columns-state';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\nimport FieldTemplatingHelper from 'client/utils/templating-helper/field-templating-helper';\nimport { getSourceWorkspaceComponentOrCurrentRecord } from 'client/utils/workspace/helper';\n\nexport enum WorkspaceOnRowClickEnum {\n  RedirectToRecord = 'redirectToRecord',\n  SelectARecord = 'selectARecord',\n}\n\ninterface WorkspaceComponentOptionsCollectionCommonAttributes {\n  onRowClick?: WorkspaceOnRowClickEnum;\n  filter?: FilterAttributes | null;\n  sortingFieldName?: string | null;\n  sortingOrder?: SortingOrderEnum | null;\n  recordsPerPage?: number | null;\n  showSearchbar?: boolean;\n  showCreate?: boolean;\n  showActions?: boolean;\n  showWorkflows?: boolean;\n  showFilters?: boolean;\n  viewId?: string | null;\n  visibleColumns?: WorkspaceCollectionColumnFragment[];\n}\n\ninterface WorkspaceComponentOptionsCollectionAllDataAttributes\n  extends WorkspaceComponentOptionsCollectionCommonAttributes {\n  dataType?: 'collection';\n  collectionId: string;\n  segmentId?: string | null;\n  enableSegments?: boolean;\n}\n\ninterface WorkspaceComponentOptionsCollectionRelationshipDataAttributes\n  extends WorkspaceComponentOptionsCollectionCommonAttributes {\n  dataType: 'related-data';\n  sourceWorkspaceComponentId: string;\n  relatedDataFieldName: string;\n}\n\nexport type WorkspaceComponentOptionsCollectionAttributes =\n  | WorkspaceComponentOptionsCollectionAllDataAttributes\n  | WorkspaceComponentOptionsCollectionRelationshipDataAttributes;\n\nexport default class WorkspaceComponentOptionsCollectionNestedDocument extends WorkspaceComponentOptionsNestedDocument {\n  @service declare betaCollectionListCommunicator: BetaCollectionListCommunicatorService;\n  @service declare store: StoreService;\n  @service declare localStorage: LocalStorageService;\n\n  @attr('string', { defaultValue: 'collection' }) declare dataType?: 'collection' | 'related-data';\n  @attr('string') declare collectionId: string;\n  @attr('string') declare segmentId: string | null;\n  @attr('string') declare sourceWorkspaceComponentId: string | null;\n  @attr('string') declare relatedDataFieldName?: string | null;\n  @attr('string', { defaultValue: WorkspaceOnRowClickEnum.SelectARecord })\n  declare onRowClick: WorkspaceOnRowClickEnum;\n\n  @attr('string', { defaultValue: null }) declare sortingFieldName: string | null;\n  @attr('string', { defaultValue: null }) declare sortingOrder: SortingOrderEnum | null;\n  @attr('number', { defaultValue: null }) declare recordsPerPage: number | null;\n  @attr('boolean', { defaultValue: true }) declare showSearchbar: boolean;\n  @attr('boolean', { defaultValue: true }) declare showCreate: boolean;\n  @attr('boolean', { defaultValue: true }) declare showActions: boolean;\n  @attr('boolean', { defaultValue: true }) declare showWorkflows: boolean;\n  @attr('boolean', { defaultValue: true }) declare showFilters: boolean;\n  @attr('boolean', { defaultValue: true }) declare enableSegments: boolean;\n  @attr('string', { defaultValue: null }) declare viewId: string | null;\n\n  @fragmentArray('workspace-collection-column', {\n    defaultValue: [],\n  })\n  declare visibleColumns: WorkspaceCollectionColumnFragment[];\n\n  resizedColumns: ResizableColumnsState;\n  @fragment('fragment-filter', { defaultValue: null }) declare filter: FragmentFilter | null;\n\n  @equal('onRowClick', WorkspaceOnRowClickEnum.RedirectToRecord)\n  declare shouldRedirectToRecord: boolean;\n\n  @equal('onRowClick', WorkspaceOnRowClickEnum.SelectARecord) declare shouldSelectRecord: boolean;\n\n  @tracked recordsContext: RecordsContext | null = null;\n  readonly collectionListId: string;\n\n  constructor(properties?: object) {\n    super(properties);\n\n    this.collectionListId = this.betaCollectionListCommunicator.generateInteractionId();\n  }\n\n  get resizableColumnsState(): ResizableColumnsState {\n    if (!this.resizedColumns) {\n      this.resizedColumns = new ResizableColumnsState(\n        this.localStorage,\n        this.workspaceComponent.workspace.rendering.id,\n        {\n          type: 'workspace',\n          workspaceId: this.workspaceComponent.workspace.id,\n          workspaceComponentId: this.workspaceComponent.id,\n        },\n      );\n    }\n    return this.resizedColumns;\n  }\n\n  resetParameters() {\n    WorkspaceComponentOptionsCollectionNestedDocument.eachAttribute(\n      (attribute, defaultValueAttribute) => {\n        if (attribute === 'dataType') return;\n        // the following cast is needed because the different attributes does not have the same type\n        // it will try to make the type of the first defaultValue as the type for each attribute\n        (this as object)[attribute] =\n          'defaultValue' in defaultValueAttribute.options\n            ? defaultValueAttribute.options.defaultValue\n            : null;\n      },\n    );\n  }\n\n  get prefilledContextVariables() {\n    return [\n      buildWorkspaceContextVariable(this.workspaceComponent, null, 'selectedRecord', {\n        hasVariables: true,\n      }),\n      buildWorkspaceContextVariable(this.workspaceComponent, null, 'selectedRecords', {\n        hasVariables: true,\n      }),\n    ];\n  }\n\n  get isConfigured() {\n    if (this.dataType === 'collection' && !this.collection) {\n      return false;\n    }\n    if (this.dataType === 'related-data' && !this.relatedDataField) {\n      return false;\n    }\n    return !!this.onRowClick && (!this.filter || this.filter.isValidData);\n  }\n\n  get collection(): CollectionModel {\n    return this.collectionId ? this.store.peekRecord('collection', this.collectionId) : null;\n  }\n\n  set collection(collection) {\n    if (this.collection) {\n      this.resetParameters();\n    }\n    this.collectionId = collection?.id || null;\n  }\n\n  get filteredCollection() {\n    return this.relatedDataField?.nestedOrReferencedCollection || this.collection;\n  }\n\n  get segment() {\n    if (this.segmentId) {\n      const segment = this.store.peekRecord('segment', this.segmentId);\n      if (segment) {\n        return segment;\n      }\n    }\n    return (\n      (this.collection?.isRestrictedToSegments && this.collection?.sortedSegments.firstObject)\n      || null\n    );\n  }\n\n  set segment(segment) {\n    this.segmentId = segment?.id || null;\n  }\n\n  get source() {\n    return getSourceWorkspaceComponentOrCurrentRecord(\n      this.workspaceComponent,\n      this.sourceWorkspaceComponentId,\n    );\n  }\n\n  set source(workspaceComponent) {\n    this.sourceWorkspaceComponentId = workspaceComponent && workspaceComponent?.id;\n    this.relatedDataFieldName = null;\n  }\n\n  get relatedDataField(): FieldModel | NestedField | null {\n    return (\n      this.source?.options.filteredCollection\n      && FieldTemplatingHelper.getFieldFromPath(\n        this.source.options.filteredCollection,\n        this.templatingKeyRelatedDataField || this.relatedDataFieldName || '',\n      )\n    );\n  }\n\n  set relatedDataField(field) {\n    this.relatedDataFieldName = field?.fieldName || null;\n  }\n\n  get recordToDisplay(): ClientRecordModel {\n    const recordToDisplay = this.source?.selectedRecord;\n    if (this.templatingKeyRelatedDataField && recordToDisplay) {\n      const selectedRecordPath =\n        this.sourceWorkspaceComponentId === 'currentRecord'\n          ? 'currentRecord'\n          : `${this.source?.name || ''}.selectedRecord`;\n      const templatedPaths = `${selectedRecordPath}.${this.templatingKeyRelatedDataField}`.split(\n        '.',\n      );\n      templatedPaths.pop();\n      return this.templatingHelper.getVariableValue(templatedPaths.join('.')) as ClientRecordModel;\n    }\n    return recordToDisplay;\n  }\n\n  get hasConfigurationError() {\n    return (\n      (!!this.sourceWorkspaceComponentId && !this.source)\n      || (!!this.source && !!this.relatedDataFieldName && !this.relatedDataField)\n    );\n  }\n\n  get templatingKeyRelatedDataField() {\n    return this.relatedDataFieldName\n      ? AbstractTemplatingHelper.getTemplatingKeys(this.relatedDataFieldName)?.[0]\n      : null;\n  }\n\n  get templatingKeysWithExpectedType() {\n    return [\n      ...(this.filter ? this.filter.templatingKeysWithExpectedType : []).map(\n        ({ templatingKey, expectedType }) => ({\n          templatingKey,\n          expectedType,\n          isImpactingContext: true,\n        }),\n      ),\n      ...(this.templatingKeyRelatedDataField\n        ? [\n            {\n              templatingKey:\n                this.sourceWorkspaceComponentId === 'currentRecord'\n                  ? `currentRecord.${this.templatingKeyRelatedDataField}`\n                  : `${this.source?.name}.selectedRecord.${this.templatingKeyRelatedDataField}`,\n              expectedType: 'HasMany',\n              isImpactingContext: true,\n            },\n          ]\n        : []),\n    ];\n  }\n\n  get sortingField() {\n    return (this.filteredCollection?.fields as (FieldModel | NestedField)[])?.find(\n      (field) => field.fieldName === this.sortingFieldName,\n    );\n  }\n\n  resetContext(shouldFullyReset = false) {\n    if (!this.workspaceComponent.shouldDisplay || shouldFullyReset) {\n      this.recordsContext = null;\n    } else if (this.recordsContext) {\n      this.recordsContext.resetRecords();\n    }\n  }\n\n  get columns() {\n    if (this.visibleColumns.length === 0) {\n      return null;\n    }\n    return (\n      this.filteredCollection.columns as {\n        field: FieldModel | NestedField;\n        position: number;\n        isVisible: boolean;\n      }[]\n    )\n      .filter((column) =>\n        this.visibleColumns.find((visibleColumn) => visibleColumn.name === column.field.fieldName),\n      )\n      .map((column) => ({\n        field: column.field,\n        position: this.visibleColumns.find(\n          (visibleColumn) => visibleColumn.name === column.field.fieldName,\n        ).position,\n        isVisible: true,\n      }))\n      .sort((a, b) => a.position - b.position);\n  }\n\n  get view() {\n    return this.viewId ? this.store.peekRecord('view-list', this.viewId) : null;\n  }\n\n  get queryParameters() {\n    const queryParameters: Record<string, unknown> = super.queryParameters || {};\n\n    if (this.recordsContext) {\n      if (this.recordsContext.currentPage > 1) {\n        queryParameters.currentPage = this.recordsContext.currentPage;\n      }\n      if (this.recordsContext.filter?.isValidData) {\n        const filter = this.recordsContext.filter.toJSON();\n        filter.conditions.forEach((condition) => {\n          if (!condition.subFieldName) {\n            delete condition.subFieldName;\n          }\n          if (!condition.embeddedFieldName) {\n            delete condition.embeddedFieldName;\n          }\n          if (condition.value === null || condition.value === undefined) {\n            delete condition.value;\n          }\n        });\n        queryParameters.filter = filter;\n      }\n      if (this.recordsContext.search) {\n        queryParameters.search = this.recordsContext.search;\n        if (this.recordsContext.isSearchExtended) {\n          queryParameters.isSearchExtended = this.recordsContext.isSearchExtended;\n        }\n      }\n      if (this.recordsContext.segment?.id !== this.segment?.id) {\n        queryParameters.segment = this.recordsContext.segment && this.recordsContext.segment.id;\n      }\n\n      const sortingFieldName =\n        this.sortingFieldName\n        || this.segment?.defaultSortingField?.fieldName\n        || this.collection?.defaultSortingField?.fieldName;\n      if (\n        this.recordsContext.sortingParameters\n        && this.recordsContext.firstSortingParameter?.fieldName !== sortingFieldName\n      ) {\n        queryParameters.sortingFieldName = this.recordsContext.firstSortingParameter?.fieldName;\n      }\n\n      const sortingOrder =\n        this.sortingOrder\n        || this.segment?.defaultSortingFieldOrder\n        || this.collection?.defaultSortingOrder\n        || SortingOrderEnum.Descending;\n      if (\n        this.recordsContext.sortingParameters\n        && this.recordsContext.firstSortingParameter?.order !== sortingOrder\n      ) {\n        queryParameters.sortingOrder = this.recordsContext.firstSortingParameter?.order;\n      }\n\n      if (this.recordsContext.areAllRecordsSelected === true) {\n        delete queryParameters.selectedRecords;\n        queryParameters.areAllRecordsSelected = true;\n        if (this.recordsContext.excludedRecordIds.length > 0) {\n          queryParameters.excludedRecordIds = this.recordsContext.excludedRecordIds;\n        }\n      }\n      // For embedded collections, we need to store the selected records indexes\n      if (this.filteredCollection?.isEmbedded && this.recordsContext.selectedRecords.length > 0) {\n        queryParameters.selectedRecords = this.recordsContext.selectedRecords.map(\n          (selectedRecord) => this.recordsContext.records?.indexOf(selectedRecord),\n        );\n      }\n    }\n\n    return Object.keys(queryParameters).length === 0 ? null : queryParameters;\n  }\n\n  get canFetchData() {\n    if (this.dataType === 'collection') {\n      return !!this.collection;\n    }\n    return !!this.recordToDisplay;\n  }\n\n  get shouldDisplayEmptyState() {\n    return !this.canFetchData;\n  }\n\n  get componentsAndVariableKeysUsedByConfiguration() {\n    return this.source\n      ? [{ componentName: this.source.name, contextVariableKeys: ['selectedRecord'] }]\n      : [];\n  }\n\n  toJSON() {\n    return {\n      dataType: this.dataType,\n      collectionId: this.collectionId,\n      segmentId: this.segmentId || null,\n      sourceWorkspaceComponentId: this.source?.id || null,\n      relatedDataFieldName: this.relatedDataFieldName || null,\n      onRowClick: this.onRowClick,\n      filter: this.filter?.toJSON() || null,\n      visibleColumns: this.visibleColumns.map((column) => column.toJSON()),\n      sortingFieldName: this.sortingFieldName || null,\n      sortingOrder: this.sortingOrder || null,\n      recordsPerPage: this.recordsPerPage || null,\n      showSearchbar: this.showSearchbar,\n      showCreate: this.showCreate,\n      showActions: this.showActions,\n      showWorkflows: this.showWorkflows,\n      showFilters: this.showFilters,\n      enableSegments: this.dataType === 'collection' && this.enableSegments,\n      viewId: this.viewId || null,\n    };\n  }\n}\n","import type WorkspaceComponentModel from 'client/data/models/workspace-component';\n\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\n\nexport interface WorkspaceContainer {\n  componentIds: string[];\n  components: WorkspaceComponentModel[];\n  workspaceComponent: WorkspaceComponentModel;\n  isCollisionFixed: boolean;\n}\n\nexport default abstract class AbstractWorkspaceComponentOptionsContainerNestedDocument extends WorkspaceComponentOptionsNestedDocument {\n  readonly isContainer = true;\n  readonly hasCustomEmptyStateDisplay = true;\n\n  abstract get components(): WorkspaceComponentModel[];\n  abstract get minWidth(): number;\n  abstract get minHeight(): number;\n  abstract getContainer(workspaceComponent: WorkspaceComponentModel): WorkspaceContainer;\n}\n","import { attr } from '@ember-data/model';\n\nimport { buildWorkspaceContextVariable } from 'client/data/models/workspace-component';\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\nimport {\n  DEFAULT_DATEONLY_FORMAT,\n  DEFAULT_DATE_FORMAT,\n} from 'client/utils/dates-default-format-variables';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\nexport enum WorkspaceDatePickerTypeEnum {\n  Date = 'Date',\n  Dateonly = 'Dateonly',\n}\n\nexport interface WorkspaceComponentOptionsDatePickerAttributes {\n  type: WorkspaceDatePickerTypeEnum;\n  format: string | null;\n  placeholder: string | null;\n  minimumDate: Date | string | null;\n  maximumDate: Date | string | null;\n  shouldDisplayLabel: boolean;\n  displayedLabel: string | null;\n}\n\nexport default class WorkspaceComponentOptionsDatePickerNestedDocument extends WorkspaceComponentOptionsNestedDocument {\n  @attr('string', { defaultValue: WorkspaceDatePickerTypeEnum.Date })\n  declare type: WorkspaceDatePickerTypeEnum;\n\n  @attr('string') declare format: string | null;\n  @attr('string') declare placeholder: string | null;\n  @attr('base') declare minimumDate: Date | string | null;\n  @attr('base') declare maximumDate: Date | string | null;\n  @attr('boolean', { defaultValue: false }) declare shouldDisplayLabel: boolean;\n  @attr('string') declare displayedLabel: string | null;\n\n  readonly hasCustomEmptyStateDisplay = true;\n\n  get isDateOnly() {\n    return this.type === WorkspaceDatePickerTypeEnum.Dateonly;\n  }\n\n  get formatOrDefault() {\n    return this.format || (this.isDateOnly ? DEFAULT_DATEONLY_FORMAT : DEFAULT_DATE_FORMAT);\n  }\n\n  get defaultPlaceholder() {\n    return 'Select a value';\n  }\n\n  get isConfigured() {\n    return !!this.type && (!this.shouldDisplayLabel || !!this.displayedLabel);\n  }\n\n  get templatableAttributes() {\n    return ['placeholder', 'displayedLabel', 'minimumDate', 'maximumDate'];\n  }\n\n  get templatingKeysWithExpectedType() {\n    return [\n      ...AbstractTemplatingHelper.getTemplatingKeys(this.placeholder || '').map(\n        (templatingKey) => ({ templatingKey, expectedType: 'String', isImpactingContext: false }),\n      ),\n      ...AbstractTemplatingHelper.getTemplatingKeys(this.displayedLabel || '').map(\n        (templatingKey) => ({ templatingKey, expectedType: 'String', isImpactingContext: false }),\n      ),\n      ...AbstractTemplatingHelper.getTemplatingKeys(this.minimumDate).map((templatingKey) => ({\n        templatingKey,\n        expectedType: this.type,\n        isImpactingContext: false,\n      })),\n      ...AbstractTemplatingHelper.getTemplatingKeys(this.maximumDate).map((templatingKey) => ({\n        templatingKey,\n        expectedType: this.type,\n        isImpactingContext: false,\n      })),\n    ]\n      .filter(Boolean)\n      .uniq();\n  }\n\n  get prefilledContextVariables() {\n    return [buildWorkspaceContextVariable(this.workspaceComponent, this.type, 'selectedValue')];\n  }\n\n  toJSON() {\n    return {\n      type: this.type,\n      format: this.format ? this.format : null,\n      placeholder: this.placeholder ? this.placeholder : null,\n      minimumDate: this.minimumDate ? this.minimumDate : null,\n      maximumDate: this.maximumDate ? this.maximumDate : null,\n      shouldDisplayLabel: this.shouldDisplayLabel,\n      displayedLabel: this.shouldDisplayLabel ? this.displayedLabel : null,\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\nimport { getColorFromTheme } from 'client/utils/color-utils';\n\nexport enum WorkspaceDividerStyleEnum {\n  Solid = 'solid',\n  Dashed = 'dashed',\n  Dotted = 'dotted',\n  Double = 'double',\n}\n\nexport interface WorkspaceComponentOptionsDividerAttributes {\n  direction?: 'horizontal' | 'vertical';\n  color?: string;\n  style?: WorkspaceDividerStyleEnum;\n}\n\nexport default class WorkspaceComponentOptionsDividerNestedDocument extends WorkspaceComponentOptionsNestedDocument {\n  @attr('string') declare direction: 'horizontal' | 'vertical';\n  @attr('string', { defaultValue: 'inherit' }) declare color: string;\n  @attr('string', { defaultValue: WorkspaceDividerStyleEnum.Solid })\n  declare style: WorkspaceDividerStyleEnum;\n\n  readonly hasCustomEmptyStateDisplay = true;\n\n  get isConfigured() {\n    return true;\n  }\n\n  get cssProperties() {\n    const borderWidth = this.style === WorkspaceDividerStyleEnum.Double ? '3px' : '1px';\n    const directionRelatedProperties =\n      this.direction === 'horizontal'\n        ? {\n            width: '100%',\n            height: '0',\n            borderTopWidth: borderWidth,\n          }\n        : {\n            width: '0',\n            height: '100%',\n            borderRightWidth: borderWidth,\n          };\n    return {\n      ...directionRelatedProperties,\n      borderColor: this.color,\n      borderStyle: this.style,\n    };\n  }\n\n  get defaultColor() {\n    return getColorFromTheme('--color-beta-on-surface_border').toUpperCase();\n  }\n\n  get canUseContext() {\n    return false;\n  }\n\n  toJSON() {\n    return {\n      direction: this.direction,\n      color: this.color,\n      style: this.style,\n    };\n  }\n}\n","import type { WidgetConfigurationDropdownAttributes } from 'client/data/models/widget-configuration-dropdown';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { service } from '@ember/service';\nimport { attr } from '@ember-data/model';\n\nimport { createWidgetConfigurationDropdown } from 'client/data/models/widget-configuration-dropdown';\nimport { createWidgetConfigurationLimitedValue } from 'client/data/models/widget-configuration-limited-value';\nimport { buildWorkspaceContextVariable } from 'client/data/models/workspace-component';\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\nexport type WorkspaceComponentOptionsDropdownAttributes = WidgetConfigurationDropdownAttributes;\n\nexport default class WorkspaceComponentOptionsDropdownNestedDocument extends createWidgetConfigurationDropdown(\n  createWidgetConfigurationLimitedValue(WorkspaceComponentOptionsNestedDocument),\n) {\n  @service() declare store: StoreService;\n\n  hasCustomEmptyStateDisplay = true;\n  @attr('string', { defaultValue: 'Select a value' }) declare placeholder: string;\n\n  get parameters() {\n    return this;\n  }\n\n  get prefilledContextVariables() {\n    // We could actually have the type if the component is in dynamic simple mode (type of the field) or in static mode (String)\n    return [buildWorkspaceContextVariable(this.workspaceComponent, null, 'selectedValue')];\n  }\n\n  get templatingKeysWithExpectedType() {\n    return [\n      ...AbstractTemplatingHelper.getTemplatingKeys(this.dynamic?.smart?.path || '').map(\n        (templatingKey) => ({ templatingKey, expectedType: 'String', isImpactingContext: true }),\n      ),\n      ...(this.dynamic?.simple?.filter?.templatingKeysWithExpectedType || []).map(\n        (keyWithExpectingType) => ({ ...keyWithExpectingType, isImpactingContext: true }),\n      ),\n    ];\n  }\n\n  get shouldDisplay() {\n    return this.workspaceComponent.shouldDisplay;\n  }\n\n  rollbackAttributes() {\n    super.rollbackAttributes();\n\n    if (!this.static && !this.dynamic) {\n      this.static = this.store.createFragment('widget-configuration-limited-value-static', {\n        values: [],\n      });\n    } else if (this.static && this.dynamic) {\n      this.static = null;\n    }\n  }\n}\n","import type FieldModel from 'client/data/models/field';\nimport type WidgetConfigurationModel from 'client/data/models/widget-configuration';\nimport type { WidgetConfigurationAttributes } from 'client/data/models/widget-configuration';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type NestedField from 'client/utils/nested/field';\n\nimport { service } from '@ember/service';\nimport { attr } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { fragment } from 'ember-data-model-fragments/attributes';\n\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\nimport FieldTemplatingHelper from 'client/utils/templating-helper/field-templating-helper';\nimport { getSourceWorkspaceComponentOrCurrentRecord } from 'client/utils/workspace/helper';\n\nexport interface WorkspaceComponentOptionsFieldAttributes {\n  sourceWorkspaceComponentId: string | null;\n  fieldName?: string | null;\n  templatedFieldPath?: string | null;\n  shouldDisplayLabel?: boolean | null;\n  displayedLabel?: string | null;\n  widgetDisplay?: WidgetConfigurationAttributes | null;\n  widgetEdit?: WidgetConfigurationAttributes | null;\n}\n\nexport default class WorkspaceComponentOptionsFieldNestedDocument extends WorkspaceComponentOptionsNestedDocument {\n  @service('feature/workspace') private workspaceFeature: WorkspaceFeatureService;\n\n  @attr('string') declare sourceWorkspaceComponentId: string | null;\n  @attr('string') declare fieldName: string | null;\n  @attr('string') declare templatedFieldPath: string | null;\n  @attr('boolean', { defaultValue: true }) declare shouldDisplayLabel: boolean | null;\n  @attr('string', { defaultValue: null }) declare displayedLabel: string | null;\n  @fragment('widget-configuration', { defaultValue: null })\n  declare widgetDisplay: WidgetConfigurationModel | null;\n\n  @fragment('widget-configuration', { defaultValue: null })\n  declare widgetEdit: WidgetConfigurationModel | null;\n\n  readonly hasCustomEmptyStateDisplay = true;\n  @tracked isInEditMode = false;\n\n  get templatableAttributes() {\n    return ['displayedLabel'];\n  }\n\n  get source() {\n    return getSourceWorkspaceComponentOrCurrentRecord(\n      this.workspaceComponent,\n      this.sourceWorkspaceComponentId,\n    );\n  }\n\n  set source(workspaceComponent) {\n    if (\n      this.workspaceFeature.getFilteredCollectionForComponent(workspaceComponent)\n      !== this.workspaceFeature.getFilteredCollectionForComponent(this.source)\n    ) {\n      this.fieldName = null;\n      this.templatedFieldPath = null;\n      this.widgetDisplay = null;\n      this.widgetEdit = null;\n    }\n    this.sourceWorkspaceComponentId = workspaceComponent?.id || null;\n  }\n\n  get templatedField() {\n    return this.templatedFieldPath ? `{{${this.templatedFieldPath}}}` : '{{}}';\n  }\n\n  set templatedField(value) {\n    this.templatedFieldPath = value === null ? value : value.substring(2, value.length - 2);\n    this.fieldName = null;\n    this.widgetDisplay = null;\n    this.widgetEdit = null;\n  }\n\n  get fullTemplatedFieldPath() {\n    const selectedRecordPath =\n      this.sourceWorkspaceComponentId === 'currentRecord'\n        ? 'currentRecord'\n        : `${this.source?.name || ''}.selectedRecord`;\n    return this.templatedFieldPath && `${selectedRecordPath}.${this.templatedFieldPath}`;\n  }\n\n  get field() {\n    if (this.templatedFieldPath) {\n      return (\n        this.source?.options.filteredCollection\n        && FieldTemplatingHelper.getFieldFromPath(\n          this.source.options.filteredCollection,\n          this.templatedFieldPath,\n        )\n      );\n    }\n    return (\n      this.fieldName\n      && (\n        this.source?.options.filteredCollection?.fields as Array<FieldModel | NestedField>\n      )?.findBy('fieldName', this.fieldName)\n    );\n  }\n\n  set field(field) {\n    this.fieldName = field && field.fieldName;\n    this.widgetDisplay = null;\n    this.widgetEdit = null;\n  }\n\n  get hasConfigurationError() {\n    return (\n      (!!this.sourceWorkspaceComponentId && !this.source)\n      || (!!this.source && !!this.fieldName && !this.field)\n      || (!!this.source\n        && !!this.templatedFieldPath\n        && (!this.templatingHelper.isValidPath(this.fullTemplatedFieldPath) || !this.field))\n    );\n  }\n\n  get isConfigured() {\n    return (\n      !!this.source\n      && !!this.field\n      && (!this.widgetDisplay || this.widgetDisplay.isConfigured)\n      && (!this.widgetEdit || this.widgetEdit.isConfigured)\n    );\n  }\n\n  get templatingKeysWithExpectedType() {\n    const templatingKeysWithExpectedType: {\n      templatingKey: string;\n      expectedType: string;\n      isImpactingContext: boolean;\n    }[] = [];\n    if (this.shouldDisplayLabel) {\n      templatingKeysWithExpectedType.push(\n        ...AbstractTemplatingHelper.getTemplatingKeys(this.displayedLabel || '').map(\n          (templatingKey) => ({ templatingKey, expectedType: 'String', isImpactingContext: false }),\n        ),\n      );\n    }\n    if (this.fullTemplatedFieldPath) {\n      templatingKeysWithExpectedType.push({\n        templatingKey: this.fullTemplatedFieldPath,\n        expectedType: null,\n        isImpactingContext: false,\n      });\n    }\n    return templatingKeysWithExpectedType;\n  }\n\n  get componentsAndVariableKeysUsedByConfiguration() {\n    return this.source\n      ? [{ componentName: this.source.name, contextVariableKeys: ['selectedRecord'] }]\n      : [];\n  }\n\n  get recordToDisplay(): ClientRecordModel {\n    if (this.fullTemplatedFieldPath) {\n      const templatedPaths = this.fullTemplatedFieldPath.split('.');\n      templatedPaths.pop();\n      return this.templatingHelper.getVariableValue(templatedPaths.join('.')) as ClientRecordModel;\n    }\n    return (this.source as WorkspaceComponentModel<WorkspaceComponentTypeEnum.Collection>)\n      ?.selectedRecord;\n  }\n\n  resetReadMode() {\n    this.isInEditMode = false;\n  }\n\n  toJSON() {\n    return {\n      sourceWorkspaceComponentId: this.sourceWorkspaceComponentId,\n      fieldName: this.fieldName || null,\n      templatedFieldPath: this.templatedFieldPath || null,\n      shouldDisplayLabel: this.shouldDisplayLabel,\n      displayedLabel: (this.shouldDisplayLabel && this.displayedLabel) || null,\n      widgetDisplay: this.widgetDisplay?.toJSON({ forApi: true }) || null,\n      widgetEdit: this.widgetEdit?.toJSON({ forApi: true }) || null,\n    };\n  }\n}\n","import type InboxModel from 'client/data/models/inbox';\nimport type CollectionFeatureService from 'client/features/collection/services/feature';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type RecordsContext from 'client/utils/liana-records/records-context';\nimport type { AbilitiesService } from 'ember-can';\n\nimport { service } from '@ember/service';\nimport { attr } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { array } from 'ember-data-model-fragments/attributes';\n\nimport { buildWorkspaceContextVariable } from 'client/data/models/workspace-component';\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\n\nexport interface WorkspaceComponentOptionsInboxAttributes {\n  inboxIds: string[];\n  collectionId: string;\n}\n\nexport default class WorkspaceComponentOptionsInboxNestedDocument extends WorkspaceComponentOptionsNestedDocument {\n  @attr('string') declare collectionId: string;\n  @array('string', { defaultValue: [] }) declare inboxIds: string[];\n\n  @service private abilities: AbilitiesService;\n  @service('feature/collection') private collectionFeature: CollectionFeatureService;\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n\n  @tracked recordsContext: RecordsContext | null = null;\n\n  public get existingInboxes() {\n    const inboxes: InboxModel[] = [];\n    this.inboxIds.forEach((id) => {\n      const inbox = this.inboxFeature.getInboxById(id);\n      if (inbox) {\n        inboxes.push(inbox);\n      }\n    });\n    return inboxes;\n  }\n\n  public get isConfigured() {\n    return (\n      this.abilities.can('access inbox')\n      && this.inboxIds.length > 0\n      && this.existingInboxes.length > 0\n    );\n  }\n\n  public get hasConfigurationError() {\n    return this.inboxIds.length > 0 && this.existingInboxes.length !== this.inboxIds.length;\n  }\n\n  public get prefilledContextVariables() {\n    return [\n      buildWorkspaceContextVariable(this.workspaceComponent, null, 'selectedRecord', {\n        hasVariables: true,\n      }),\n    ];\n  }\n\n  public get shouldDisplayEmptyState() {\n    return this.hasConfigurationError;\n  }\n\n  public get filteredCollection() {\n    return this.collectionId && this.collectionFeature.getCollectionFromId(this.collectionId);\n  }\n\n  public toJSON() {\n    return {\n      collectionId: this.collectionId,\n      inboxIds: this.inboxIds.map((id) => id),\n    };\n  }\n}\n","import type { WorkspaceContextVariables } from 'client/data/models/workspace-component';\n\nimport { attr } from '@ember-data/model';\n\nimport { buildWorkspaceContextVariable } from 'client/data/models/workspace-component';\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\n\nexport enum WorkspaceComponentOptionsInputTypeEnum {\n  String = 'String',\n  Number = 'Number',\n}\n\nexport interface WorkspaceComponentOptionsInputAttributes {\n  inputType: WorkspaceComponentOptionsInputTypeEnum;\n  placeholder: string;\n  label?: string;\n  shouldDisplayLabel: boolean;\n}\n\nexport default class WorkspaceComponentOptionsInputNestedDocument extends WorkspaceComponentOptionsNestedDocument {\n  @attr('string', { defaultValue: WorkspaceComponentOptionsInputTypeEnum.String })\n  inputType: WorkspaceComponentOptionsInputTypeEnum;\n\n  @attr('boolean', { defaultValue: true }) declare shouldDisplayLabel: boolean | null;\n  @attr('string', { defaultValue: null }) label?: string;\n  @attr('string', { defaultValue: 'Input a value' }) placeholder: string;\n\n  get isConfigured() {\n    return !!this.inputType;\n  }\n\n  get canUseContext() {\n    return false;\n  }\n\n  get prefilledContextVariables(): WorkspaceContextVariables[] {\n    return [\n      buildWorkspaceContextVariable(this.workspaceComponent, this.inputType, 'selectedValue'),\n    ];\n  }\n\n  toJSON() {\n    return {\n      inputType: this.inputType,\n      placeholder: this.placeholder || null,\n      label: (this.shouldDisplayLabel && this.label) || null,\n      shouldDisplayLabel: this.shouldDisplayLabel,\n    };\n  }\n}\n","import type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type { CurrentRecordSource } from 'client/utils/workspace/helper';\n\nimport { action } from '@ember/object';\nimport { equal } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { attr } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\n\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\nimport {\n  WorkspaceFontStyleEnum,\n  WorkspaceFontWeightEnum,\n  WorkspaceTextAlignEnum,\n} from 'client/data/models/workspace-component-options-text';\nimport { LINK_TYPES } from 'client/shared/components/navigation/beta-link-to/component';\nimport { COLORS_NAME_TO_HEXA } from 'client/utils/color-utils';\nimport NestedCollection from 'client/utils/nested/collection';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\nimport { getSourceWorkspaceComponentOrCurrentRecord } from 'client/utils/workspace/helper';\n\nexport enum WorkspaceComponentOptionsLinkTypeEnum {\n  Custom = 'custom',\n  RedirectToRecord = 'redirectToRecord',\n}\n\nexport interface WorkspaceComponentOptionsLinkBaseAttributes {\n  displayedText?: string;\n  shouldOpenInNewTab?: boolean;\n  urlType?: WorkspaceComponentOptionsLinkTypeEnum;\n  fontSize?: number;\n  fontWeight?: WorkspaceFontWeightEnum;\n  fontStyle?: WorkspaceFontStyleEnum;\n  textAlign?: WorkspaceTextAlignEnum;\n  color?: string | null;\n}\n\nexport interface WorkspaceComponentOptionsLinkCustomAttributes\n  extends WorkspaceComponentOptionsLinkBaseAttributes {\n  urlType?: WorkspaceComponentOptionsLinkTypeEnum.Custom;\n  url: string;\n}\n\nexport interface WorkspaceComponentOptionsLinkRedirectToRecordAttributes\n  extends WorkspaceComponentOptionsLinkBaseAttributes {\n  urlType: WorkspaceComponentOptionsLinkTypeEnum.RedirectToRecord;\n  sourceWorkspaceComponentId: string;\n}\n\nexport type WorkspaceComponentOptionsLinkAttributes =\n  | WorkspaceComponentOptionsLinkCustomAttributes\n  | WorkspaceComponentOptionsLinkRedirectToRecordAttributes;\n\nexport default class WorkspaceComponentOptionsLinkNestedDocument extends WorkspaceComponentOptionsNestedDocument {\n  @service declare currentUser: CurrentUserService;\n  @service declare lianaSession: LianaSessionService;\n\n  @attr('string') declare sourceWorkspaceComponentId: string;\n  @attr('string') declare url: string;\n  @attr('string', { defaultValue: '' }) declare displayedText: string;\n  @attr('boolean', { defaultValue: false }) declare shouldOpenInNewTab: boolean;\n  @attr('string', { defaultValue: WorkspaceComponentOptionsLinkTypeEnum.Custom })\n  declare urlType: WorkspaceComponentOptionsLinkTypeEnum;\n\n  @attr('number', { defaultValue: 16 }) declare fontSize: number;\n  @attr('string', { defaultValue: WorkspaceFontWeightEnum.Normal })\n  declare fontWeight: WorkspaceFontWeightEnum;\n\n  @attr('string', { defaultValue: WorkspaceFontStyleEnum.Normal })\n  declare fontStyle: WorkspaceFontStyleEnum;\n\n  @attr('string', { defaultValue: WorkspaceTextAlignEnum.Left })\n  declare textAlign: WorkspaceTextAlignEnum;\n\n  @attr('string', { defaultValue: COLORS_NAME_TO_HEXA.info }) declare color: string;\n\n  @tracked defaultColor: string = COLORS_NAME_TO_HEXA.info;\n  readonly hasCustomEmptyStateDisplay = true;\n\n  @equal('urlType', WorkspaceComponentOptionsLinkTypeEnum.Custom) declare isCustomURL: boolean;\n  @equal('urlType', WorkspaceComponentOptionsLinkTypeEnum.RedirectToRecord)\n  declare isRedirectToRecordURL: boolean;\n\n  get isConfigured() {\n    return (\n      // eslint-disable-next-line sonarjs/code-eval\n      (this.isCustomURL && !!this.url && !this.url.startsWith('javascript:'))\n      || (this.isRedirectToRecordURL && !!this.source)\n    );\n  }\n\n  get source() {\n    return getSourceWorkspaceComponentOrCurrentRecord(\n      this.workspaceComponent,\n      this.sourceWorkspaceComponentId,\n    );\n  }\n\n  set source(\n    workspaceComponent:\n      | WorkspaceComponentModel<\n          WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n        >\n      | CurrentRecordSource,\n  ) {\n    this.sourceWorkspaceComponentId = workspaceComponent.id;\n  }\n\n  get componentsAndVariableKeysUsedByConfiguration() {\n    return this.source\n      ? [{ componentName: this.source.name, contextVariableKeys: ['selectedRecord'] }]\n      : [];\n  }\n\n  get hasConfigurationError() {\n    return this.isRedirectToRecordURL && !!this.sourceWorkspaceComponentId && !this.source;\n  }\n\n  get templatingKeysWithExpectedType() {\n    return [\n      ...AbstractTemplatingHelper.getTemplatingKeys(this.displayedText || ''),\n      ...AbstractTemplatingHelper.getTemplatingKeys(this.url || ''),\n    ].map((templatingKey) => ({\n      templatingKey,\n      expectedType: 'String',\n      isImpactingContext: false,\n    }));\n  }\n\n  get linkColorType() {\n    if (\n      this.lianaSession.currentProject.primaryColorOrDefault.toLowerCase()\n      === this.color.toLowerCase()\n    ) {\n      return 'primary';\n    }\n    return LINK_TYPES.find((linkColorType) => {\n      return linkColorType in COLORS_NAME_TO_HEXA\n        ? COLORS_NAME_TO_HEXA[linkColorType]?.toLowerCase() === this.color?.toLowerCase()\n        : false;\n    });\n  }\n\n  get cssProperties() {\n    return {\n      fontSize: `${this.fontSize}px`,\n      fontWeight: this.fontWeight,\n      fontStyle: this.fontStyle,\n      textAlign: this.textAlign,\n      color: this.linkColorType ? null : this.color,\n    };\n  }\n\n  get href(): string {\n    const url = this.currentUser.editMode\n      ? this.url\n      : (this.workspaceComponent.templatingHelper.injectVariablesIntoStringWithoutValidation(\n          this.url,\n        ) as string);\n    if (typeof url !== 'string') {\n      return null;\n    }\n    return url?.indexOf(':') !== -1 ? url : `https://${url}`;\n  }\n\n  get isSourceContextSet() {\n    if (!this.source) {\n      return true;\n    }\n    if (this.sourceWorkspaceComponentId === 'currentRecord') {\n      return !!this.source.selectedRecord;\n    }\n    return this.workspaceComponent.templatingHelper.isComponentContextVariableSet(\n      this.source.name,\n      'selectedRecord',\n    );\n  }\n\n  get isDisabled() {\n    return (\n      !this.isConfigured\n      || ((!this.workspaceComponent.templatingHelper.isContextSet(this.url)\n        || !this.isSourceContextSet)\n        && !this.currentUser.editMode)\n      || (this.isRedirectToRecordURL\n        && (this.source.options.filteredCollection instanceof NestedCollection\n          || !this.currentUser.canReadCollection(this.source.options.filteredCollection)))\n      || (!this.isRedirectToRecordURL && !this.href)\n    );\n  }\n\n  @action\n  switchType(type: WorkspaceComponentOptionsLinkTypeEnum) {\n    this.urlType = type;\n    this.sourceWorkspaceComponentId = null;\n    this.url = null;\n  }\n\n  toJSON() {\n    const commonProperties = {\n      displayedText: this.displayedText,\n      urlType: this.urlType,\n      shouldOpenInNewTab: this.shouldOpenInNewTab,\n      fontSize: this.fontSize,\n      fontWeight: this.fontWeight,\n      fontStyle: this.fontStyle,\n      textAlign: this.textAlign,\n      color: this.color,\n    };\n    return this.isRedirectToRecordURL\n      ? { ...commonProperties, sourceWorkspaceComponentId: this.sourceWorkspaceComponentId }\n      : { ...commonProperties, url: this.url };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\nimport { REGEX_HTTPS_URL } from 'client/utils/regex';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\nexport interface WorkspaceComponentOptionsMetabaseAttributes {\n  url: string;\n  token: string;\n  query: string;\n}\n\nexport default class WorkspaceComponentOptionsMetabaseNestedDocument extends WorkspaceComponentOptionsNestedDocument {\n  @attr('string') declare url: string;\n  @attr('string') declare token: string;\n  @attr('string') declare query: string;\n\n  get isConfigured() {\n    return !!this.url && !!this.token;\n  }\n\n  get templatingKeysWithExpectedType() {\n    return AbstractTemplatingHelper.getTemplatingKeys(this.query || '').map((templatingKey) => ({\n      templatingKey,\n      expectedType: 'String',\n      isImpactingContext: true,\n    }));\n  }\n\n  get shouldDisplayEmptyState() {\n    return (\n      this.hasConfigurationError\n      || this.templatingKeysWithExpectedType.some(\n        ({ templatingKey }) =>\n          !this.templatingHelper.isValidPath(templatingKey)\n          || !this.templatingHelper.isContextSet([templatingKey]),\n      )\n    );\n  }\n\n  get hasConfigurationError() {\n    return !REGEX_HTTPS_URL.test(this.url);\n  }\n\n  toJSON() {\n    return {\n      url: this.url,\n      token: this.token,\n      query: this.query,\n    };\n  }\n}\n","import type FilterFragment from 'client/data/models/fragment-filter';\nimport type { FilterAttributes } from 'client/data/models/fragment-filter';\nimport type SegmentModel from 'client/data/models/segment';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type BetaCollectionListCommunicatorService from 'client/legacy/services/beta-collection-list-communicator';\nimport type StoreService from 'client/legacy/services/store';\nimport type RecordsContext from 'client/utils/liana-records/records-context';\n\nimport { equal } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { attr } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { fragment } from 'ember-data-model-fragments/attributes';\n\nimport { buildWorkspaceContextVariable } from 'client/data/models/workspace-component';\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\nexport interface WorkspaceComponentOptionsSearchAttributes {\n  placeholder?: string | null;\n  collectionId: string;\n  segmentId?: string | null;\n  onRowClick?: string;\n  filter?: FilterAttributes | null;\n}\n\nexport default class WorkspaceComponentOptionsSearchNestedDocument extends WorkspaceComponentOptionsNestedDocument {\n  @service declare betaCollectionListCommunicator: BetaCollectionListCommunicatorService;\n  @service declare store: StoreService;\n  @service('feature/folder') private folderFeature: FolderFeatureService;\n\n  @attr('string') declare placeholder: string | null;\n  @attr('string') declare collectionId: string;\n  @attr('string') declare segmentId: string | null;\n  @attr('string', { defaultValue: 'selectARecord' }) declare onRowClick: string;\n  @attr('string', { defaultValue: null }) declare displayFieldName: string | null;\n  @fragment('fragment-filter', { defaultValue: null }) declare filter: FilterFragment | null;\n\n  readonly hasCustomEmptyStateDisplay = true;\n  @tracked recordsContext: RecordsContext | null = null;\n\n  @equal('onRowClick', 'redirectToRecord') declare shouldRedirectToRecord: boolean;\n  @equal('onRowClick', 'selectARecord') declare shouldSelectRecord: boolean;\n\n  get defaultPlaceholder() {\n    return `Search for a ${this.collection?.displayNameLowerCase || 'record'}...`;\n  }\n\n  get prefilledContextVariables() {\n    return [\n      buildWorkspaceContextVariable(this.workspaceComponent, null, 'selectedRecord', {\n        hasVariables: true,\n      }),\n    ];\n  }\n\n  get isConfigured(): boolean {\n    return !!this.collection && !!this.onRowClick && (!this.filter || this.filter.isValidData);\n  }\n\n  get collection() {\n    return (this.collectionId && this.store.peekRecord('collection', this.collectionId)) || null;\n  }\n\n  set collection(collection) {\n    this.collectionId = collection?.id || null;\n    this.segmentId = null;\n    this.filter = null;\n  }\n\n  get displayField() {\n    return (\n      (this.displayFieldName && this.collection.fields.findBy('fieldName', this.displayFieldName))\n      || null\n    );\n  }\n\n  get filteredCollection() {\n    return this.collection;\n  }\n\n  get segment(): SegmentModel | null {\n    if (this.segmentId) {\n      const segment = this.store.peekRecord('segment', this.segmentId);\n      if (segment?.isVisible) {\n        return segment;\n      }\n    }\n    return (\n      (this.collection?.isRestrictedToSegments\n        && this.folderFeature.getDefaultSegmentForCollection(this.collection))\n      || null\n    );\n  }\n\n  set segment(segment) {\n    this.segmentId = segment?.id || null;\n  }\n\n  get templatingKeysWithExpectedType() {\n    return [\n      ...(this.filter?.templatingKeysWithExpectedType || []).map(\n        ({ templatingKey, expectedType }) => ({\n          templatingKey,\n          expectedType,\n          isImpactingContext: true,\n        }),\n      ),\n      ...AbstractTemplatingHelper.getTemplatingKeys(this.placeholder).map((templatingKey) => ({\n        templatingKey,\n        expectedType: 'String',\n        isImpactingContext: false,\n      })),\n    ].filter(Boolean);\n  }\n\n  toJSON() {\n    return {\n      placeholder: this.placeholder || null,\n      collectionId: this.collectionId,\n      segmentId: this.segmentId || null,\n      onRowClick: this.onRowClick,\n      filter: this.filter?.toJSON() || null,\n      displayFieldName: this.displayField?.fieldName || null,\n    };\n  }\n}\n","import type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type { WorkspaceContainer } from 'client/data/models/workspace-component-options-container';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\n\nimport { service } from '@ember/service';\nimport { array } from 'ember-data-model-fragments/attributes';\n\nimport AbstractWorkspaceComponentOptionsContainerNestedDocument from 'client/data/models/workspace-component-options-container';\nimport { getComponentsFromIds } from 'client/utils/workspace/helper';\n\nexport interface WorkspaceComponentOptionsSectionAttributes {\n  componentIds?: string[];\n}\n\nexport default class WorkspaceComponentOptionsSectionNestedDocument\n  extends AbstractWorkspaceComponentOptionsContainerNestedDocument\n  implements WorkspaceContainer\n{\n  @service('business/workspace-manager') workspaceManager: WorkspaceManagerService;\n\n  @array('string', { defaultValue: [] }) componentIds: string[];\n\n  isCollisionFixed = false;\n\n  get isConfigured() {\n    return true;\n  }\n\n  get components(): WorkspaceComponentModel[] {\n    return getComponentsFromIds(this.componentIds, this.workspaceComponent?.workspace);\n  }\n\n  get minHeight() {\n    return this.workspaceManager.getGridWrapperMinHeight(this, 'section');\n  }\n\n  get minWidth() {\n    return this.workspaceManager.getGridWrapperMinWidth(this, 'section');\n  }\n\n  getContainer(workspaceComponent: WorkspaceComponentModel) {\n    return this.components.includes(workspaceComponent) ? this : null;\n  }\n\n  rollbackAttributes() {\n    super.rollbackAttributes();\n\n    this.components.forEach((component) => {\n      component.rollbackAttributes();\n    });\n  }\n\n  get canUseContext() {\n    return false;\n  }\n\n  toJSON() {\n    return {\n      componentIds: this.components.map((component) => component.id),\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\n\nimport { buildWorkspaceContextVariable } from 'client/data/models/workspace-component';\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\n\nexport interface WorkspaceComponentOptionsSmartAttributes {\n  componentUrl?: string;\n  templateUrl?: string;\n  cssUrl?: string;\n}\n\nexport default class WorkspaceComponentOptionsSmartNestedDocument extends WorkspaceComponentOptionsNestedDocument {\n  @attr('string') declare componentUrl?: string;\n  @attr('string') declare templateUrl?: string;\n  @attr('string') declare styleUrl?: string;\n\n  readonly isReact = false;\n\n  @tracked public componentCode: string = null;\n  @tracked public templateCode: string = null;\n  @tracked public styleCode: string = null;\n\n  get prefilledContextVariables() {\n    return [buildWorkspaceContextVariable(this.workspaceComponent, null, 'selectedValue')];\n  }\n\n  get isConfigured() {\n    return !!this.templateUrl;\n  }\n\n  get registryName() {\n    return `workspace/smart/${this.workspaceComponent.id}`;\n  }\n\n  toJSON() {\n    return {\n      componentUrl: this.componentUrl || null,\n      templateUrl: this.templateUrl,\n      styleUrl: this.styleUrl || null,\n    };\n  }\n}\n","import type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type WorkspaceTabFragment from 'client/data/models/workspace-tab';\nimport type { WorkspaceTabAttributes } from 'client/data/models/workspace-tab';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\nimport type { FragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport { sort } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport { fragmentArray } from 'ember-data-model-fragments/attributes';\n\nimport AbstractWorkspaceComponentOptionsContainerNestedDocument from 'client/data/models/workspace-component-options-container';\nimport { WORKSPACE_TOTAL_ROW_TABS } from 'client/features/workspace/components/component-renderer/tabs/component';\n\nexport interface WorkspaceComponentOptionsTabsAttributes {\n  tabs?: WorkspaceTabAttributes[];\n}\n\nexport default class WorkspaceComponentOptionsTabsNestedDocument extends AbstractWorkspaceComponentOptionsContainerNestedDocument {\n  @service('business/workspace-manager') workspaceManager: WorkspaceManagerService;\n\n  @fragmentArray('workspace-tab', {\n    defaultValue: () => {\n      return Array.from({ length: 3 }).map((_, i) => ({ position: i }));\n    },\n  })\n  declare tabs: FragmentArray<'workspace-tab'>;\n\n  @tracked selectedTab: WorkspaceTabFragment | null = null;\n\n  @sort('tabs', 'tabsSortKeys') declare tabsSorted: WorkspaceTabFragment[];\n\n  tabsSortKeys = ['position'];\n\n  get isConfigured() {\n    return true;\n  }\n\n  get components() {\n    return this.tabs.map((tab) => tab.components).flat();\n  }\n\n  getContainer(component: WorkspaceComponentModel) {\n    return this.tabs.find((tab) => tab.components.includes(component));\n  }\n\n  get minHeight(): number {\n    return Math.max(\n      ...this.tabs.map((tab) =>\n        this.workspaceManager.getGridWrapperMinHeight(tab, 'tabs', WORKSPACE_TOTAL_ROW_TABS),\n      ),\n    );\n  }\n\n  get minWidth(): number {\n    return Math.max(\n      ...this.tabs.map((tab) => this.workspaceManager.getGridWrapperMinWidth(tab, 'tabs')),\n    );\n  }\n\n  get canUseContext() {\n    return false;\n  }\n\n  get queryParameters() {\n    return this.selectedTab && this.selectedTab.position > 0\n      ? { tabIndex: this.selectedTab.position }\n      : null;\n  }\n\n  toJSON() {\n    return {\n      tabs: this.tabs.map((tab) => tab.toJSON()),\n    };\n  }\n}\n","import { attr } from '@ember-data/model';\n\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\nexport enum WorkspaceFontWeightEnum {\n  Normal = 'normal',\n  Bold = 'bold',\n}\n\nexport enum WorkspaceFontStyleEnum {\n  Normal = 'normal',\n  Italic = 'italic',\n}\n\nexport enum WorkspaceTextAlignEnum {\n  Left = 'left',\n  Right = 'right',\n  Center = 'center',\n}\n\nexport interface WorkspaceComponentOptionsTextAttributes {\n  displayedText: string;\n  tooltip?: string | null;\n  fontSize?: number;\n  fontWeight?: WorkspaceFontWeightEnum;\n  fontStyle?: WorkspaceFontStyleEnum;\n  textAlign?: WorkspaceTextAlignEnum;\n  color?: string;\n}\n\nexport default class WorkspaceComponentOptionsTextNestedDocument extends WorkspaceComponentOptionsNestedDocument {\n  @attr('string') declare displayedText: string;\n  @attr('string') declare tooltip: string | null;\n  @attr('number', { defaultValue: 16 }) declare fontSize: number;\n  @attr('string', { defaultValue: WorkspaceFontWeightEnum.Normal })\n  declare fontWeight: WorkspaceFontWeightEnum;\n\n  @attr('string', { defaultValue: WorkspaceFontStyleEnum.Normal })\n  declare fontStyle: WorkspaceFontStyleEnum;\n\n  @attr('string', { defaultValue: WorkspaceTextAlignEnum.Left })\n  declare textAlign: WorkspaceTextAlignEnum;\n\n  @attr('string', { defaultValue: 'inherit' }) declare color: string;\n\n  readonly hasCustomEmptyStateDisplay = true;\n  readonly defaultColor = '#000';\n\n  get templatableAttributes() {\n    return ['displayedText', 'tooltip'];\n  }\n\n  get cssProperties() {\n    return {\n      fontSize: `${this.fontSize}px`,\n      fontWeight: this.fontWeight,\n      fontStyle: this.fontStyle,\n      textAlign: this.textAlign,\n      color: this.color,\n    };\n  }\n\n  get isConfigured() {\n    return !!this.displayedText;\n  }\n\n  get templatingKeysWithExpectedType() {\n    return [\n      ...AbstractTemplatingHelper.getTemplatingKeys(this.displayedText || ''),\n      ...AbstractTemplatingHelper.getTemplatingKeys(this.tooltip || ''),\n    ].map((templatingKey) => ({\n      templatingKey,\n      expectedType: 'String',\n      isImpactingContext: false,\n    }));\n  }\n\n  toJSON() {\n    return {\n      displayedText: this.displayedText,\n      tooltip: this.tooltip,\n      fontSize: this.fontSize,\n      fontWeight: this.fontWeight,\n      fontStyle: this.fontStyle,\n      textAlign: this.textAlign,\n      color: this.color,\n    };\n  }\n}\n","import { isNone } from '@ember/utils';\nimport { attr } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\n\nimport { buildWorkspaceContextVariable } from 'client/data/models/workspace-component';\nimport WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\nexport const WORKSPACE_TOGGLE_VALUE_TYPES = [\n  'Boolean',\n  'Date',\n  'Dateonly',\n  'Number',\n  'String',\n  'Time',\n] as const;\nexport type WorkspaceToggleValueType = (typeof WORKSPACE_TOGGLE_VALUE_TYPES)[number];\n\nexport interface WorkspaceComponentOptionsToggleAttributes {\n  shouldDisplayLabel?: boolean;\n  displayedLabel: string;\n  valueType: WorkspaceToggleValueType;\n  enabledValue: unknown;\n  isEnabledByDefault: boolean;\n}\n\nexport default class WorkspaceComponentOptionsToggleNestedDocument extends WorkspaceComponentOptionsNestedDocument {\n  @attr('boolean', { defaultValue: true }) declare shouldDisplayLabel: boolean;\n  @attr('string') declare displayedLabel: string | null;\n  @attr('string', { defaultValue: 'String' }) declare valueType: WorkspaceToggleValueType;\n  @attr() declare enabledValue: unknown;\n  @attr('boolean', { defaultValue: true }) declare isEnabledByDefault: boolean;\n\n  readonly hasCustomEmptyStateDisplay = true;\n\n  @tracked private _selectedValue?: unknown | null;\n\n  get toggleValue() {\n    if (this._selectedValue === undefined) {\n      return this.isEnabledByDefault ? this.enabledValue : null;\n    }\n    return this._selectedValue;\n  }\n\n  get selectedValue() {\n    return this.isToggleDisabled\n      ? null\n      : this.templatingHelper.injectVariablesIntoStringWithoutValidation(this.toggleValue, {\n          expectedType: this.valueType,\n        });\n  }\n\n  set selectedValue(value) {\n    this._selectedValue = value;\n  }\n\n  get isToggled() {\n    return !isNone(this.toggleValue) || (this.isEnabledByDefault && this.toggleValue === undefined);\n  }\n\n  set isToggled(value) {\n    this.workspaceComponent.selectedValue = value ? this.enabledValue : null;\n  }\n\n  get queryParameters() {\n    return this.isToggled !== this.isEnabledByDefault ? { isToggled: this.isToggled } : null;\n  }\n\n  get templatableAttributes() {\n    return ['displayedLabel', 'enabledValue'];\n  }\n\n  get prefilledContextVariables() {\n    return [\n      buildWorkspaceContextVariable(this.workspaceComponent, this.valueType, 'selectedValue'),\n    ];\n  }\n\n  get isConfigured() {\n    return (\n      (!this.shouldDisplayLabel || !!this.displayedLabel)\n      && this.valueType\n      && this.enabledValue !== undefined\n      && this.enabledValue !== null\n    );\n  }\n\n  get componentsAndVariableKeysUsedByConfiguration() {\n    return AbstractTemplatingHelper.getTemplatingKeys(this.enabledValue)\n      .map((templatingKey) => {\n        if (!this.templatingHelper.isWorkspaceComponentTemplatingKey(templatingKey)) return null;\n\n        const [componentName, contextVariableKey] = templatingKey.split('.');\n\n        return { componentName, contextVariableKeys: [contextVariableKey] };\n      })\n      .filter(Boolean);\n  }\n\n  get templatingKeysWithExpectedType() {\n    return [\n      ...AbstractTemplatingHelper.getTemplatingKeys(this.displayedLabel || '').map(\n        (templatingKey) => ({ templatingKey, expectedType: 'String', isImpactingContext: false }),\n      ),\n      ...AbstractTemplatingHelper.getTemplatingKeys(this.enabledValue).map((templatingKey) => ({\n        templatingKey,\n        expectedType: this.valueType,\n        isImpactingContext: false,\n      })),\n    ];\n  }\n\n  get isToggleDisabled() {\n    return this.componentsAndVariableKeysUsedByConfiguration.some(\n      ({ componentName, contextVariableKeys }) => {\n        return !this.workspaceComponent.templatingHelper.isComponentContextVariableSet(\n          componentName,\n          contextVariableKeys[0],\n        );\n      },\n    );\n  }\n\n  resetContext(shouldFullyReset = false) {\n    if (shouldFullyReset) {\n      this.selectedValue = undefined;\n    }\n  }\n\n  toJSON() {\n    return {\n      displayedLabel: this.shouldDisplayLabel ? this.displayedLabel : null,\n      shouldDisplayLabel: this.shouldDisplayLabel,\n      valueType: this.valueType,\n      enabledValue:\n        this.enabledValue instanceof Date ? this.enabledValue.toISOString() : this.enabledValue,\n      isEnabledByDefault: this.isEnabledByDefault,\n    };\n  }\n}\n","import type WorkflowModel from 'client/data/models/workflow';\nimport type { WorkspaceComponentOptionsButtonAttributes } from 'client/data/models/workspace-component-options-button-abstract';\n\nimport { attr } from '@ember-data/model';\n\nimport AbstractWorkspaceComponentOptionsButtonNestedDocument from 'client/data/models/workspace-component-options-button-abstract';\n\nexport type WorkspaceComponentOptionsWorkflowAttributes = WorkspaceComponentOptionsButtonAttributes;\n\nexport default class WorkspaceComponentOptionsWorkflowNestedDocument extends AbstractWorkspaceComponentOptionsButtonNestedDocument {\n  @attr('string') declare workflowId: string;\n\n  get isConfigured() {\n    return !!this.workflow && !!this.componentToSelectRecordFrom;\n  }\n\n  set workflow(workflow: WorkflowModel) {\n    this.workflowId = workflow?.id;\n    if (workflow?.belongsTo('collection').id() !== this.sourceCollectionId) {\n      this.sourceCollectionId = workflow?.belongsTo('collection').id() || null;\n      this.componentToSelectRecordFromId = null;\n    }\n  }\n\n  get workflow() {\n    return this.workflowId ? this.store.peekRecord('workflow', this.workflowId) : null;\n  }\n\n  override toJSON() {\n    return {\n      ...super.toJSON(),\n      workflowId: this.workflowId,\n    };\n  }\n}\n","import type {\n  WorkspaceComponentTypeEnum,\n  WorkspaceContextVariables,\n} from 'client/data/models/workspace-component';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type WorkspaceComponentOptionsActionNestedDocument from 'client/data/models/workspace-component-options-action';\nimport type { WorkspaceComponentOptionsActionAttributes } from 'client/data/models/workspace-component-options-action';\nimport type { WorkspaceComponentOptionsChartAttributes } from 'client/data/models/workspace-component-options-chart';\nimport type WorkspaceComponentOptionsChartNestedDocument from 'client/data/models/workspace-component-options-chart';\nimport type WorkspaceComponentOptionsCollectionNestedDocument from 'client/data/models/workspace-component-options-collection';\nimport type { WorkspaceComponentOptionsCollectionAttributes } from 'client/data/models/workspace-component-options-collection';\nimport type { WorkspaceComponentOptionsDatePickerAttributes } from 'client/data/models/workspace-component-options-date-picker';\nimport type WorkspaceComponentOptionsDatePickerNestedDocument from 'client/data/models/workspace-component-options-date-picker';\nimport type WorkspaceComponentOptionsDividerNestedDocument from 'client/data/models/workspace-component-options-divider';\nimport type { WorkspaceComponentOptionsDividerAttributes } from 'client/data/models/workspace-component-options-divider';\nimport type WorkspaceComponentOptionsDropdownNestedDocument from 'client/data/models/workspace-component-options-dropdown';\nimport type { WorkspaceComponentOptionsDropdownAttributes } from 'client/data/models/workspace-component-options-dropdown';\nimport type WorkspaceComponentOptionsFieldNestedDocument from 'client/data/models/workspace-component-options-field';\nimport type { WorkspaceComponentOptionsFieldAttributes } from 'client/data/models/workspace-component-options-field';\nimport type { WorkspaceComponentOptionsInboxAttributes } from 'client/data/models/workspace-component-options-inbox';\nimport type WorkspaceComponentOptionsInboxNestedDocument from 'client/data/models/workspace-component-options-inbox';\nimport type WorkspaceComponentOptionsInputNestedDocument from 'client/data/models/workspace-component-options-input';\nimport type { WorkspaceComponentOptionsInputAttributes } from 'client/data/models/workspace-component-options-input';\nimport type WorkspaceComponentOptionsLinkNestedDocument from 'client/data/models/workspace-component-options-link';\nimport type { WorkspaceComponentOptionsLinkAttributes } from 'client/data/models/workspace-component-options-link';\nimport type WorkspaceComponentOptionsMetabaseNestedDocument from 'client/data/models/workspace-component-options-metabase';\nimport type { WorkspaceComponentOptionsMetabaseAttributes } from 'client/data/models/workspace-component-options-metabase';\nimport type WorkspaceComponentOptionsSearchNestedDocument from 'client/data/models/workspace-component-options-search';\nimport type { WorkspaceComponentOptionsSearchAttributes } from 'client/data/models/workspace-component-options-search';\nimport type WorkspaceComponentOptionsSectionNestedDocument from 'client/data/models/workspace-component-options-section';\nimport type { WorkspaceComponentOptionsSectionAttributes } from 'client/data/models/workspace-component-options-section';\nimport type { WorkspaceComponentOptionsSmartAttributes } from 'client/data/models/workspace-component-options-smart';\nimport type WorkspaceComponentOptionsSmartNestedDocument from 'client/data/models/workspace-component-options-smart';\nimport type WorkspaceComponentOptionsTabsNestedDocument from 'client/data/models/workspace-component-options-tabs';\nimport type { WorkspaceComponentOptionsTabsAttributes } from 'client/data/models/workspace-component-options-tabs';\nimport type WorkspaceComponentOptionsTextNestedDocument from 'client/data/models/workspace-component-options-text';\nimport type { WorkspaceComponentOptionsTextAttributes } from 'client/data/models/workspace-component-options-text';\nimport type { WorkspaceComponentOptionsToggleAttributes } from 'client/data/models/workspace-component-options-toggle';\nimport type WorkspaceComponentOptionsToggleNestedDocument from 'client/data/models/workspace-component-options-toggle';\nimport type WorkspaceComponentOptionsWorkflowNestedDocument from 'client/data/models/workspace-component-options-workflow';\nimport type { ComponentContextVariableKeys } from 'client/utils/templating-helper/workspace-component-templating-helper';\nimport type WorkspaceTemplatingHelper from 'client/utils/templating-helper/workspace-templating-helper';\n\nimport { isNone } from '@ember/utils';\nimport { belongsTo } from '@ember-data/model';\n\nimport AbstractNestedDocumentModel from 'client/data/models/abstract-nested-document-model';\n\nexport interface WorkspaceComponentOptionsRegistry {\n  [WorkspaceComponentTypeEnum.Action]: WorkspaceComponentOptionsActionNestedDocument;\n  [WorkspaceComponentTypeEnum.Chart]: WorkspaceComponentOptionsChartNestedDocument;\n  [WorkspaceComponentTypeEnum.Collection]: WorkspaceComponentOptionsCollectionNestedDocument;\n  [WorkspaceComponentTypeEnum.DatePicker]: WorkspaceComponentOptionsDatePickerNestedDocument;\n  [WorkspaceComponentTypeEnum.Divider]: WorkspaceComponentOptionsDividerNestedDocument;\n  [WorkspaceComponentTypeEnum.Dropdown]: WorkspaceComponentOptionsDropdownNestedDocument;\n  [WorkspaceComponentTypeEnum.Field]: WorkspaceComponentOptionsFieldNestedDocument;\n  [WorkspaceComponentTypeEnum.Inbox]: WorkspaceComponentOptionsInboxNestedDocument;\n  [WorkspaceComponentTypeEnum.Input]: WorkspaceComponentOptionsInputNestedDocument;\n  [WorkspaceComponentTypeEnum.Link]: WorkspaceComponentOptionsLinkNestedDocument;\n  [WorkspaceComponentTypeEnum.Metabase]: WorkspaceComponentOptionsMetabaseNestedDocument;\n  [WorkspaceComponentTypeEnum.Search]: WorkspaceComponentOptionsSearchNestedDocument;\n  [WorkspaceComponentTypeEnum.Section]: WorkspaceComponentOptionsSectionNestedDocument;\n  [WorkspaceComponentTypeEnum.Smart]: WorkspaceComponentOptionsSmartNestedDocument;\n  [WorkspaceComponentTypeEnum.Tabs]: WorkspaceComponentOptionsTabsNestedDocument;\n  [WorkspaceComponentTypeEnum.Text]: WorkspaceComponentOptionsTextNestedDocument;\n  [WorkspaceComponentTypeEnum.Toggle]: WorkspaceComponentOptionsToggleNestedDocument;\n  [WorkspaceComponentTypeEnum.Workflow]: WorkspaceComponentOptionsWorkflowNestedDocument;\n}\n\nexport interface WorkspaceComponentOptionsAttributesRegistry {\n  [WorkspaceComponentTypeEnum.Action]: WorkspaceComponentOptionsActionAttributes;\n  [WorkspaceComponentTypeEnum.Chart]: WorkspaceComponentOptionsChartAttributes;\n  [WorkspaceComponentTypeEnum.Collection]: WorkspaceComponentOptionsCollectionAttributes;\n  [WorkspaceComponentTypeEnum.DatePicker]: WorkspaceComponentOptionsDatePickerAttributes;\n  [WorkspaceComponentTypeEnum.Divider]: WorkspaceComponentOptionsDividerAttributes;\n  [WorkspaceComponentTypeEnum.Dropdown]: WorkspaceComponentOptionsDropdownAttributes;\n  [WorkspaceComponentTypeEnum.Field]: WorkspaceComponentOptionsFieldAttributes;\n  [WorkspaceComponentTypeEnum.Input]: WorkspaceComponentOptionsInputAttributes;\n  [WorkspaceComponentTypeEnum.Inbox]: WorkspaceComponentOptionsInboxAttributes;\n  [WorkspaceComponentTypeEnum.Link]: WorkspaceComponentOptionsLinkAttributes;\n  [WorkspaceComponentTypeEnum.Metabase]: WorkspaceComponentOptionsMetabaseAttributes;\n  [WorkspaceComponentTypeEnum.Search]: WorkspaceComponentOptionsSearchAttributes;\n  [WorkspaceComponentTypeEnum.Section]: WorkspaceComponentOptionsSectionAttributes;\n  [WorkspaceComponentTypeEnum.Smart]: WorkspaceComponentOptionsSmartAttributes;\n  [WorkspaceComponentTypeEnum.Tabs]: WorkspaceComponentOptionsTabsAttributes;\n  [WorkspaceComponentTypeEnum.Text]: WorkspaceComponentOptionsTextAttributes;\n  [WorkspaceComponentTypeEnum.Toggle]: WorkspaceComponentOptionsToggleAttributes;\n  [WorkspaceComponentTypeEnum.Workflow]: WorkspaceComponentOptionsWorkflowNestedDocument;\n}\n\nexport default class AbstractWorkspaceComponentOptionsNestedDocument extends AbstractNestedDocumentModel {\n  @belongsTo('workspace-component', { async: false, inverse: 'options' })\n  declare workspaceComponent: WorkspaceComponentModel;\n\n  readonly hasCustomEmptyStateDisplay: boolean = false;\n  readonly isContainer: boolean = false;\n\n  get isConfigured() {\n    return false;\n  }\n\n  get patchPath() {\n    return `${this.workspaceComponent.patchPath}/options`;\n  }\n\n  get templatingHelper(): WorkspaceTemplatingHelper {\n    return this.workspaceComponent.templatingHelper;\n  }\n\n  get templatingKeys(): string[] {\n    return this.templatingKeysWithExpectedType.map(\n      (templatingKeyWithExpectedType) => templatingKeyWithExpectedType.templatingKey,\n    );\n  }\n\n  get templatingKeysWithExpectedType(): {\n    templatingKey: string;\n    expectedType: string;\n    isImpactingContext: boolean;\n  }[] {\n    return [];\n  }\n\n  get componentsAndVariableKeysUsedByConfiguration(): ComponentContextVariableKeys[] {\n    return [];\n  }\n\n  get templatableAttributes(): string[] {\n    return [];\n  }\n\n  get isMultiSelectSupported() {\n    return false;\n  }\n\n  get hasConfigurationError() {\n    return false;\n  }\n\n  get prefilledContextVariables(): WorkspaceContextVariables[] {\n    return [];\n  }\n\n  get contextVariables(): WorkspaceContextVariables[] {\n    return this.isConfigured ? this.prefilledContextVariables : [];\n  }\n\n  get canUseContext() {\n    return true;\n  }\n\n  get shouldDisplayEmptyState() {\n    return false;\n  }\n\n  get queryParameters(): Record<string, unknown> {\n    const queryParameters: { selectedValue?: unknown; selectedRecords?: string[] } = {};\n    if (!isNone(this.workspaceComponent.selectedValue)) {\n      queryParameters.selectedValue = this.workspaceComponent.selectedValue;\n    }\n    if (this.workspaceComponent.selectedRecords?.length > 0) {\n      queryParameters.selectedRecords = this.workspaceComponent.selectedRecords.filter(Boolean).map(\n        // eslint-disable-next-line @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-unsafe-member-access\n        (record) => `${record.id}`,\n      );\n    }\n    return Object.keys(queryParameters).length === 0 ? null : queryParameters;\n  }\n\n  public toJSON(): Record<string, unknown> {\n    throw new Error('Method not implemented.');\n  }\n}\n","import type WorkspaceComponentModel from 'client/data/models/workspace-component';\n\nimport { attr } from '@ember-data/model';\nimport { fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nexport enum WorkspaceComponentVisibilityTypeEnum {\n  Always = 'always',\n  WhenItsContextIsSet = 'whenItsContextIsSet',\n  WhenAnotherComponentIsVisible = 'whenAnotherComponentIsVisible',\n}\n\nexport interface WorkspaceComponentVisibilityAttributes {\n  type: WorkspaceComponentVisibilityTypeEnum;\n  componentId?: string;\n}\n\nexport default class WorkspaceComponentVisibilityFragment\n  extends Fragment\n  implements WorkspaceComponentVisibilityAttributes\n{\n  @attr('string', { defaultValue: WorkspaceComponentVisibilityTypeEnum.Always })\n  declare type: WorkspaceComponentVisibilityTypeEnum;\n\n  @attr('string') declare componentId?: string | null;\n  @fragmentOwner() declare workspaceComponent: WorkspaceComponentModel;\n\n  get component(): WorkspaceComponentModel {\n    return this.workspaceComponent.workspace.components.findBy('id', this.componentId);\n  }\n\n  get isConfigured() {\n    return (\n      this.type !== WorkspaceComponentVisibilityTypeEnum.WhenAnotherComponentIsVisible\n      || !!this.component\n    );\n  }\n\n  toJSON() {\n    return this.type === WorkspaceComponentVisibilityTypeEnum.WhenAnotherComponentIsVisible\n      ? {\n          type: this.type,\n          componentId: this.componentId,\n        }\n      : { type: this.type };\n  }\n}\n","import type {\n  WorkspaceComponentConfiguration,\n  WorkspaceComponentConfigurationType,\n} from 'client/config/workspace-component-configuration';\nimport type { DisplaySettingsAttributes } from 'client/data/models/display-settings';\nimport type DisplaySettingsNestedDocument from 'client/data/models/display-settings';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type {\n  WorkspaceComponentOptionsAttributesRegistry,\n  WorkspaceComponentOptionsRegistry,\n} from 'client/data/models/workspace-component-options';\nimport type { WorkspaceContainer } from 'client/data/models/workspace-component-options-container';\nimport type WorkspaceComponentVisibilityFragment from 'client/data/models/workspace-component-visibility';\nimport type { WorkspaceComponentVisibilityAttributes } from 'client/data/models/workspace-component-visibility';\nimport type { FieldType } from 'client/decorators/model-field';\nimport type CollectionStateService from 'client/legacy/services/collection-state';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { OperatorValue } from 'client/utils/operators';\nimport type {\n  AutoCompleteItem,\n  AutoCompleteItemOptions,\n} from 'client/utils/templating-helper/abstract-templating-helper';\nimport type { ComponentContextVariableKeys } from 'client/utils/templating-helper/workspace-component-templating-helper';\n\nimport { equal } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { attr, belongsTo } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { fragment } from 'ember-data-model-fragments/attributes';\n\nimport workspaceComponentConfiguration from 'client/config/workspace-component-configuration';\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\nimport { WorkspaceComponentVisibilityTypeEnum } from 'client/data/models/workspace-component-visibility';\nimport nestedDocument from 'client/decorators/nested-document';\nimport { buildAutocompleteItem } from 'client/utils/templating-helper/abstract-templating-helper';\nimport FieldTemplatingHelper from 'client/utils/templating-helper/field-templating-helper';\nimport WorkspaceTemplatingHelper from 'client/utils/templating-helper/workspace-templating-helper';\n\nexport type WorkspaceComponentBaseAttributes = {\n  id: string;\n  name: string;\n  type: WorkspaceComponentTypeEnum;\n  displaySettings: DisplaySettingsAttributes;\n  visibility?: WorkspaceComponentVisibilityAttributes;\n};\n\nexport type WorkspaceComponentAttributes<WCT = WorkspaceComponentTypeEnum> =\n  WCT extends WorkspaceComponentTypeEnum\n    ? WorkspaceComponentBaseAttributes & {\n        type: WCT;\n        options: WorkspaceComponentOptionsAttributesRegistry[WCT];\n      }\n    : never;\n\nexport type WorkspaceContextVariables = AutoCompleteItem & { type: FieldType | 'HasMany' };\n\nexport function buildWorkspaceContextVariable(\n  workspaceComponent: WorkspaceComponentModel,\n  type: FieldType | 'HasMany',\n  variableName: string,\n  options?: AutoCompleteItemOptions,\n) {\n  return {\n    ...buildAutocompleteItem(`${workspaceComponent.name}.${variableName}`, options),\n    type,\n  };\n}\n\nexport function isNameValid(name: string) {\n  return name.length > 0 && name.length <= 50 && /^[a-zA-Z0-9-_]+$/.test(name);\n}\n\nexport enum WorkspaceComponentTypeEnum {\n  Action = 'action',\n  Chart = 'chart',\n  Collection = 'collection',\n  DatePicker = 'date-picker',\n  Divider = 'divider',\n  Dropdown = 'dropdown',\n  Field = 'field',\n  Input = 'input',\n  Inbox = 'inbox',\n  Link = 'link',\n  Metabase = 'metabase',\n  Search = 'search',\n  Section = 'section',\n  Smart = 'smart',\n  Tabs = 'tabs',\n  Text = 'text',\n  Toggle = 'toggle',\n  Workflow = 'workflow',\n}\n\nexport function isWorkspaceComponentType<WCT extends WorkspaceComponentTypeEnum>(\n  component: WorkspaceComponentModel,\n  type: WCT,\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-ignore\n): component is WorkspaceComponentModel<WCT> {\n  return component.type === type;\n}\n\nexport default class WorkspaceComponentModel<\n  WCT extends WorkspaceComponentTypeEnum = WorkspaceComponentTypeEnum,\n> extends AbstractLayoutModel {\n  @service declare currentUser: CurrentUserService;\n  @service declare eventBus: EventBusService;\n  @service('collection-state') declare collectionState: CollectionStateService;\n\n  @attr('string') declare name: string;\n  @attr('string') declare type: WCT extends undefined ? WorkspaceComponentTypeEnum : WCT;\n  @fragment('workspace-component-visibility', { defaultValue: {} })\n  declare visibility: WorkspaceComponentVisibilityFragment;\n\n  @nestedDocument('display-settings', {\n    defaultValue: {\n      x: 0,\n      y: 0,\n      width: 1,\n      height: 2,\n    },\n  })\n  declare displaySettings: DisplaySettingsNestedDocument;\n\n  @nestedDocument('workspace-component-options', {\n    polymorphic: true,\n    // It should actually be only the attributes but it's better than nothing\n    type: (data: object, owner: WorkspaceComponentModel) =>\n      `workspace-component-options-${owner.type}`,\n    defaultValue: () => ({}),\n  })\n  declare options: WorkspaceComponentOptionsRegistry[WCT];\n\n  @belongsTo('workspace', { async: false }) declare workspace: WorkspaceModel;\n\n  @tracked private _selectedRecords: ClientRecordModel[] = [];\n  @tracked private _selectedValue: unknown = null;\n  @tracked private _editedName: string | null = null;\n  @tracked isHoveredInConfirmationPanel = false;\n  @tracked isImpacted = false;\n  @tracked shouldDisplayTemplatingError: boolean = this.hasTemplatingError;\n  private _templatingHelper: WorkspaceTemplatingHelper | null = null;\n\n  @equal('type', 'action') declare isAction: boolean;\n  @equal('type', 'chart') declare isChart: boolean;\n  @equal('type', 'collection') declare isCollection: boolean;\n  @equal('type', 'divider') declare isDivider: boolean;\n  @equal('type', 'field') declare isField: boolean;\n  @equal('type', 'link') declare isLink: boolean;\n  @equal('type', 'search') declare isSearch: boolean;\n  @equal('type', 'text') declare isText: boolean;\n  @equal('type', 'tabs') declare isTabs: boolean;\n  @equal('type', 'section') declare isSection: boolean;\n\n  get editedName() {\n    return this._editedName ?? this.name;\n  }\n\n  set editedName(name) {\n    this._editedName = name;\n  }\n\n  get hasDirtyName() {\n    return this.editedName !== this.name;\n  }\n\n  get isNameValid() {\n    return isNameValid(this.name);\n  }\n\n  get displayName() {\n    if ('filteredCollection' in this.options && this.options.filteredCollection) {\n      if (new RegExp(`${this.type}-?\\\\d+`).test(this.name)) {\n        return `${this.name} (${this.options.filteredCollection.singularizedDisplayName})`;\n      }\n    }\n    return this.name;\n  }\n\n  get selectedRecord() {\n    return (this.selectedRecords.length === 1 && this.selectedRecords[0]) || null;\n  }\n\n  set selectedRecord(value) {\n    if (value) {\n      this.selectedRecords = [value];\n    } else {\n      this.selectedRecords = [];\n    }\n  }\n\n  get selectedRecords() {\n    return this._selectedRecords;\n  }\n\n  set selectedRecords(value) {\n    if (\n      this._selectedRecords !== value\n      && !(this._selectedRecords.length === 0 && value?.length === 0)\n    ) {\n      this._selectedRecords = value && [...value];\n      this.resetContext(false);\n    }\n  }\n\n  get selectedValue() {\n    return 'selectedValue' in this.options ? this.options.selectedValue : this._selectedValue;\n  }\n\n  set selectedValue(value) {\n    if (this.selectedValue !== value) {\n      if ('selectedValue' in this.options) {\n        this.options.selectedValue = value;\n      } else {\n        this._selectedValue = value;\n      }\n      this.resetContext(false);\n    }\n  }\n\n  get patchPath() {\n    const id = this.isNew ? '-' : this.id;\n    return `/workspaces/${this.workspace.id}/components/${id}`;\n  }\n\n  get templatingHelper() {\n    if (!this._templatingHelper) {\n      this._templatingHelper = new WorkspaceTemplatingHelper({\n        workspace: this.workspace,\n        currentWorkspaceComponent: this,\n        currentUser: this.currentUser,\n        parentCollection: this.workspace?.collection,\n        collectionState: this.collectionState,\n      });\n    }\n    return this._templatingHelper;\n  }\n\n  get shouldDisplayTemplatingOrConfigurationError(): boolean {\n    return this.shouldDisplayTemplatingError || this.hasConfigurationError;\n  }\n\n  get hasTemplatingOrConfigurationError(): boolean {\n    return this.hasConfigurationError || this.hasTemplatingError;\n  }\n\n  get hasTemplatingError(): boolean {\n    return this.templatingKeysWithExpectedType.any(\n      ({ templatingKey, expectedType }) =>\n        !this.templatingHelper.isValidPath(templatingKey, expectedType),\n    );\n  }\n\n  get hasConfigurationError(): boolean {\n    return !!this.options?.hasConfigurationError;\n  }\n\n  get isConfigured(): boolean {\n    return !!this.options?.isConfigured && this.isNameValid && this.visibility.isConfigured;\n  }\n\n  get container() {\n    for (let index = 0; index < this.workspace?.components.length; index += 1) {\n      const component = this.workspace?.components.objectAt(index);\n      const container: WorkspaceContainer =\n        'getContainer' in component.options && component.options.getContainer(this);\n      if (container) {\n        return container;\n      }\n    }\n    return null;\n  }\n\n  get uiConfiguration(): WorkspaceComponentConfiguration {\n    let componentType: WorkspaceComponentConfigurationType;\n    if (isWorkspaceComponentType(this, WorkspaceComponentTypeEnum.Divider)) {\n      componentType = `${this.options.direction}-divider`;\n    } else {\n      componentType = this.type as WorkspaceComponentConfigurationType;\n    }\n    return workspaceComponentConfiguration[componentType];\n  }\n\n  get isContainer() {\n    return 'isContainer' in this.options && this.options.isContainer;\n  }\n\n  get configurationMinWidth() {\n    if ('minWidth' in this.options) {\n      return this.options.minWidth;\n    }\n    return this.uiConfiguration.minWidth || null;\n  }\n\n  get minWidth() {\n    return Math.min(this.configurationMinWidth, this.displaySettings.width);\n  }\n\n  get maxWidth() {\n    return this.uiConfiguration.maxWidth || null;\n  }\n\n  get configurationMinHeight() {\n    if ('minHeight' in this.options) {\n      return this.options.minHeight;\n    }\n    return this.uiConfiguration.minHeight || null;\n  }\n\n  get minHeight() {\n    return Math.min(this.configurationMinHeight, this.displaySettings.height);\n  }\n\n  get maxHeight() {\n    return this.uiConfiguration.maxHeight || null;\n  }\n\n  get resizeHandles() {\n    return this.uiConfiguration.resizeHandles || null;\n  }\n\n  get imagePath() {\n    return this.uiConfiguration.imagePath;\n  }\n\n  get prefilledContextVariables(): WorkspaceContextVariables[] {\n    return this.options.prefilledContextVariables || [];\n  }\n\n  get contextVariables(): WorkspaceContextVariables[] {\n    return this.options.contextVariables || [];\n  }\n\n  get componentsAndVariableKeysUsedByConfiguration(): ComponentContextVariableKeys[] {\n    return this.options.componentsAndVariableKeysUsedByConfiguration || [];\n  }\n\n  get templatingKeys() {\n    return this.options.templatingKeys || [];\n  }\n\n  get templatingKeysWithExpectedType(): {\n    templatingKey: string;\n    expectedType: string;\n    isImpactingContext: boolean;\n  }[] {\n    return this.options.templatingKeysWithExpectedType || [];\n  }\n\n  get templatingComponentNames() {\n    return [...new Set(this.templatingKeys.map((templatingKey) => templatingKey.split('.')[0]))];\n  }\n\n  get appliedOnTemplatingKeys() {\n    return this.appliedOn\n      .map((component) =>\n        component.templatingKeys.filter((templatingKey) =>\n          templatingKey.startsWith(`${this.name}.`),\n        ),\n      )\n      .flat();\n  }\n\n  get belongsToFieldsTreeToFetch() {\n    return FieldTemplatingHelper.getBelongsToFieldsTreeToFetch(\n      this.appliedOnTemplatingKeys,\n      (templatingKey) => this.templatingHelper.getBelongsToFieldsToFetch(templatingKey),\n    );\n  }\n\n  get componentsAndVariableKeysUsedByTemplating() {\n    const result: ComponentContextVariableKeys[] = [];\n\n    this.templatingKeys.forEach((templatingKey) => {\n      if (!this.templatingHelper.isWorkspaceComponentTemplatingKey(templatingKey)) return;\n\n      const templatingKeySplitted = templatingKey.split('.');\n      const componentName = templatingKeySplitted[0];\n      const contextVariableKey = templatingKeySplitted[1];\n      const existingComponentInList = result.find(\n        (component) => component.componentName === componentName,\n      );\n      if (existingComponentInList) {\n        if (!existingComponentInList.contextVariableKeys.includes(contextVariableKey)) {\n          existingComponentInList.contextVariableKeys.push(contextVariableKey);\n        }\n      } else {\n        result.push({ componentName, contextVariableKeys: [contextVariableKey] });\n      }\n    });\n    return result;\n  }\n\n  get componentsAndVariableKeysDependencies() {\n    const result = this.componentsAndVariableKeysUsedByTemplating;\n\n    this.componentsAndVariableKeysUsedByConfiguration.forEach(\n      (componentAndVariableKeysUsedByConfiguration) => {\n        const existingComponentInResult = result.find(\n          (existingComponentAndVariables) =>\n            existingComponentAndVariables.componentName\n            === componentAndVariableKeysUsedByConfiguration.componentName,\n        );\n        if (existingComponentInResult) {\n          existingComponentInResult.contextVariableKeys = [\n            ...existingComponentInResult.contextVariableKeys,\n            ...componentAndVariableKeysUsedByConfiguration.contextVariableKeys,\n          ].uniq();\n        } else {\n          result.push(componentAndVariableKeysUsedByConfiguration);\n        }\n      },\n    );\n    return result;\n  }\n\n  get areAllContextVariablesSet() {\n    return this.componentsAndVariableKeysDependencies.every((componentAndVariableKeysDependency) =>\n      componentAndVariableKeysDependency.contextVariableKeys.every((contextVariableKey) =>\n        this.templatingHelper.isComponentContextVariableSet(\n          componentAndVariableKeysDependency.componentName,\n          contextVariableKey,\n        ),\n      ),\n    );\n  }\n\n  get dependsOn() {\n    return this.componentsAndVariableKeysDependencies\n      .map((componentAndVariableKeysDependency) =>\n        this.getWorkspaceComponentFromName(componentAndVariableKeysDependency.componentName),\n      )\n      .filter(Boolean);\n  }\n\n  get contextDependsOn() {\n    const componentNames = [\n      ...this.componentsAndVariableKeysUsedByConfiguration.map(\n        ({ componentName }) => componentName,\n      ),\n      ...(this.templatingKeysWithExpectedType\n        .filter(\n          ({ isImpactingContext, templatingKey }) =>\n            isImpactingContext\n            && this.templatingHelper.isWorkspaceComponentTemplatingKey(templatingKey),\n        )\n        .map(({ templatingKey }) => templatingKey.split('.')[0]) || []),\n    ].uniq();\n\n    return componentNames.map((componentName) => this.getWorkspaceComponentFromName(componentName));\n  }\n\n  get appliedOn(): WorkspaceComponentModel[] {\n    return (\n      this.workspace?.components.filter((component) => component.dependsOn.includes(this)) || []\n    );\n  }\n\n  get appliedOnContext(): WorkspaceComponentModel[] {\n    return (\n      this.workspace?.components.filter((component) => component.contextDependsOn.includes(this))\n      || []\n    );\n  }\n\n  getComponentsRequiredForItsVisibility(\n    encounteredComponents: WorkspaceComponentModel[] = [],\n  ): WorkspaceComponentModel[] {\n    if (encounteredComponents.includes(this)) return [];\n\n    return this.visibility?.type\n      === WorkspaceComponentVisibilityTypeEnum.WhenAnotherComponentIsVisible\n      && this.visibility.component\n      ? [\n          this.visibility.component,\n          ...this.visibility.component.getComponentsRequiredForItsVisibility([\n            ...encounteredComponents,\n            this,\n          ]),\n        ]\n      : [];\n  }\n\n  get hasVisibilityCircularDependency(): boolean {\n    return this.getComponentsRequiredForItsVisibility().includes(this);\n  }\n\n  get shouldDisplayEmptyState(): boolean {\n    return this.options.shouldDisplayEmptyState;\n  }\n\n  get shouldDisplay(): boolean {\n    if (this.hasVisibilityCircularDependency) {\n      console.error(`Circular dependency detected for the visibility of component \"${this.name}\"`);\n      return false;\n    }\n\n    switch (this.visibility?.type) {\n      case WorkspaceComponentVisibilityTypeEnum.Always:\n        return true;\n      case WorkspaceComponentVisibilityTypeEnum.WhenAnotherComponentIsVisible:\n        return this.visibility.component?.shouldDisplay;\n      case WorkspaceComponentVisibilityTypeEnum.WhenItsContextIsSet:\n        return !this.hasTemplatingOrConfigurationError && this.areAllContextVariablesSet;\n      default:\n        console.error(`Incorrect visibility type (equals: ${this.visibility.type as string})`);\n        return false;\n    }\n  }\n\n  get componentsWithSelectedRecordContext() {\n    const components =\n      this.workspace?.components.filter(\n        (component) =>\n          component.id !== this.id\n          && component.contextVariables.any(\n            (contextVariable) => contextVariable.label === 'selectedRecord',\n          ),\n      ) || [];\n    return this.workspace?.isWorkspaceOnRecord\n      ? [this.workspace.currentRecordSource, ...components]\n      : components;\n  }\n\n  get componentsWithSelectedRecordContextNotEmbedded() {\n    return this.componentsWithSelectedRecordContext.filter(\n      (component) =>\n        !('filteredCollection' in component.options)\n        || !component.options.filteredCollection?.isEmbedded,\n    );\n  }\n\n  initializeSelectedRecords(selectedRecords: ClientRecordModel[]) {\n    this._selectedRecords = selectedRecords;\n  }\n\n  initializeSelectedValue(selectedValue: unknown) {\n    this._selectedValue = selectedValue;\n  }\n\n  getWorkspaceComponentFromName(name: string) {\n    return this.workspace?.components.find((component) => component.name === name);\n  }\n\n  renameDependency(oldName: string, newName: string) {\n    const renameComponentName = (templatingKey: string) => {\n      const newTemplatingKey = templatingKey.startsWith(`${oldName}.`)\n        ? templatingKey.replace(`${oldName}.`, `${newName}.`)\n        : templatingKey;\n      return `{{${newTemplatingKey}}}`;\n    };\n    this.options.templatableAttributes.forEach((attributeName) => {\n      this.options[attributeName] =\n        this.templatingHelper.injectVariablesIntoStringWithoutValidation(\n          this.options[attributeName] as string,\n          { getVariableValue: renameComponentName },\n        );\n    });\n    if ('filter' in this.options) {\n      this.options.filter?.conditions.forEach((condition) => {\n        condition.value =\n          typeof condition.value === 'string'\n            ? (this.templatingHelper.injectVariablesIntoStringWithoutValidation(condition.value, {\n                getVariableValue: renameComponentName,\n              }) as OperatorValue)\n            : condition.value;\n      });\n    }\n  }\n\n  resetContext(shouldResetCurrentContext = true, shouldFullyReset = false) {\n    if (shouldResetCurrentContext) {\n      if ('resetContext' in this.options) {\n        this.options.resetContext(shouldFullyReset);\n      }\n      this.eventBus.trigger('workspace.context.changed', this.options);\n    }\n\n    if (this.selectedRecords.length === 0 && !this.selectedValue && shouldResetCurrentContext) {\n      return;\n    }\n\n    if (shouldResetCurrentContext) {\n      this._selectedRecords = [];\n      this._selectedValue = null;\n    }\n\n    this.appliedOnContext.forEach((component) => component.resetContext());\n  }\n\n  rollbackAttributes() {\n    super.rollbackAttributes();\n    this.editedName = null;\n  }\n\n  toJSON() {\n    return {\n      id: this.id,\n      name: this.name,\n      type: this.type,\n      displaySettings: this.displaySettings.toJSON(),\n      options: this.options?.isConfigured ? this.options.toJSON() : {},\n      visibility: this.visibility?.toJSON() || {\n        type: WorkspaceComponentVisibilityTypeEnum.WhenItsContextIsSet,\n      },\n    };\n  }\n}\n","import type { WorkspaceContainer } from 'client/data/models/workspace-component-options-container';\nimport type WorkspaceComponentOptionsTabs from 'client/data/models/workspace-component-options-tabs';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\n\nimport { service } from '@ember/service';\nimport { attr } from '@ember-data/model';\nimport { array, fragmentOwner } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport { uuidv4 } from 'client/utils/uuid-utils';\nimport { getComponentsFromIds } from 'client/utils/workspace/helper';\n\nexport interface WorkspaceTabAttributes {\n  tabId?: string;\n  name?: string | null;\n  position?: number;\n  componentIds?: string[];\n}\n\nexport default class WorkspaceTabFragment\n  extends Fragment\n  implements WorkspaceTabAttributes, WorkspaceContainer\n{\n  @service('business/workspace-manager') workspaceManager: WorkspaceManagerService;\n\n  @attr('string', { defaultValue: () => uuidv4() }) declare tabId: string;\n  @attr('string') declare name: string | null;\n  @attr('number') declare position: number;\n  @array('string', { defaultValue: [] }) componentIds: string[];\n\n  @fragmentOwner() declare tabsOptions: WorkspaceComponentOptionsTabs;\n\n  isCollisionFixed = false;\n\n  get workspaceComponent() {\n    return this.tabsOptions.workspaceComponent;\n  }\n\n  get displayName() {\n    if (this.name?.length > 0) {\n      return this.name;\n    }\n\n    return `Tab ${this.position + 1}`;\n  }\n\n  get isFirst() {\n    return this.tabsOptions.tabsSorted.firstObject === this;\n  }\n\n  get isLast() {\n    return this.tabsOptions.tabsSorted.lastObject === this;\n  }\n\n  get components() {\n    return getComponentsFromIds(this.componentIds, this.workspaceComponent?.workspace);\n  }\n\n  get requiredWidth() {\n    return this.workspaceManager.getRequiredWidth(this);\n  }\n\n  get requiredHeight() {\n    return this.workspaceManager.getRequiredHeight(this);\n  }\n\n  get patchPath() {\n    const id = this.isNew ? '-' : this.tabId;\n\n    return `${this.tabsOptions.patchPath}/tabs/${id}`;\n  }\n\n  rollbackAttributes() {\n    super.rollbackAttributes();\n\n    this.components.forEach((component) => {\n      component.rollbackAttributes();\n    });\n  }\n\n  toJSON() {\n    return {\n      tabId: this.tabId,\n      name: this.name || null,\n      position: this.position,\n      componentIds: this.components.map((component) => component.id),\n    };\n  }\n}\n","import type RenderingModel from 'client/data/models/rendering';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type CollectionStateService from 'client/legacy/services/collection-state';\nimport type { CurrentRecordSource } from 'client/utils/workspace/helper';\n\nimport { computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\n\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\nimport { getEmojiFromIcon } from 'client/utils/emoji-utils';\nimport { buildCurrentRecordSource } from 'client/utils/workspace/helper';\n\nexport default class WorkspaceModel extends AbstractLayoutModel {\n  @service('collection-state') private collectionState: CollectionStateService;\n\n  @attr('string') declare name: string;\n  @attr('string') declare icon: string;\n  @attr('number') declare position: number;\n  @attr('string', { defaultValue: null }) public collectionId?: string;\n\n  @belongsTo('rendering', { async: false }) declare rendering: RenderingModel;\n  @hasMany('workspace-component', { async: false })\n  declare components: WorkspaceComponentModel[];\n\n  isCollisionFixed = false;\n  private _currentRecordSource: CurrentRecordSource | null = null;\n\n  get containerComponents(): WorkspaceComponentModel<\n    WorkspaceComponentTypeEnum.Tabs | WorkspaceComponentTypeEnum.Section\n  >[] {\n    return this.components.filter((component) => component.isContainer) as WorkspaceComponentModel<\n      WorkspaceComponentTypeEnum.Tabs | WorkspaceComponentTypeEnum.Section\n    >[];\n  }\n\n  get collection() {\n    return this.collectionId && this.store.peekRecord('collection', this.collectionId);\n  }\n\n  get isWorkspaceOnRecord() {\n    return Boolean(this.collection);\n  }\n\n  get rootComponents() {\n    const { containerComponents } = this;\n    const componentIncludedInsideContainer = containerComponents\n      .map((component) => component.options.components)\n      .flat();\n    return this.components.filter(\n      (component) => !component.isDeleted && !componentIncludedInsideContainer.includes(component),\n    );\n  }\n\n  get currentRecordSource() {\n    if (!this._currentRecordSource) {\n      this._currentRecordSource =\n        this.collection && buildCurrentRecordSource(this, this.collectionState);\n    }\n    return this._currentRecordSource;\n  }\n\n  @computed('icon')\n  get iconOrDefault() {\n    if (!this.icon) return '🧩';\n    return getEmojiFromIcon(this.icon);\n  }\n\n  @computed('iconOrDefault', 'name')\n  get displayNameWithEmoji() {\n    return `${this.iconOrDefault} ${this.name}`;\n  }\n\n  get patchPath() {\n    const id = this.isNew ? '-' : this.id;\n    return `/workspaces/${id}`;\n  }\n\n  toJSON() {\n    return {\n      id: this.id,\n      name: this.name,\n      icon: this.icon,\n      position: this.position,\n      collectionId: this.collectionId || null,\n      components: this.components.map((component) => component.toJSON()),\n    };\n  }\n}\n","import Serializer from 'client/data/serializers/application';\n\nexport default class ApplicationTokenSerializer extends Serializer {\n  attrs = {\n    token: { serialize: false },\n    tokenHash: { serialize: false },\n    lastUsed: { serialize: false },\n  };\n}\n","import { isArray } from '@ember/array';\nimport { guidFor } from '@ember/object/internals';\nimport { underscore } from '@ember/string';\nimport JSONAPISerializer from '@ember-data/serializer/json-api';\nimport { singularize } from 'ember-inflector';\nimport { snakeCase } from 'lodash';\n\nimport {\n  getNestedDefaultValuePayload,\n  isNestedDocumentRelationship,\n  serializeNestedDocument,\n} from 'client/data/utils/nested-document-utils';\n\nexport default class ApplicationSerializer extends JSONAPISerializer {\n  isNewSerializerAPI = true;\n\n  keyForAttribute(key) {\n    return underscore(key);\n  }\n\n  keyForRelationship(key) {\n    return underscore(key);\n  }\n\n  normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n    payload.included = [\n      ...(payload.included || []),\n      ...(this.getNestedIncluded(primaryModelClass, payload.data) || []),\n    ];\n\n    if (payload?.included) {\n      const newIncluded = payload.included.flatMap((included) => {\n        const modelName = singularize(included.type);\n        const serializer = this.store.serializerFor(modelName);\n        if ('getNestedIncluded' in serializer) {\n          return serializer.getNestedIncluded(this.store.modelFor(modelName), included);\n        }\n\n        return [];\n      });\n      payload.included.push(...newIncluded);\n    }\n\n    return super.normalizeResponse(store, primaryModelClass, payload, id, requestType);\n  }\n\n  normalize(typeClass, payload) {\n    typeClass.nestedAttributes?.forEach(([propertyName, relationshipDefinition]) => {\n      const relationshipPayload = payload?.attributes?.[snakeCase(propertyName)];\n      if (relationshipPayload) {\n        if (isArray(relationshipPayload)) {\n          payload.relationships = {\n            ...(payload.relationships || {}),\n            [snakeCase(propertyName)]: {\n              data: relationshipPayload.map((item) => ({\n                id: item.id || guidFor(item),\n                type: relationshipDefinition.type,\n              })),\n            },\n          };\n        } else {\n          payload.relationships = {\n            ...(payload.relationships || {}),\n            [snakeCase(propertyName)]: {\n              data: {\n                id: relationshipPayload.id || guidFor(relationshipPayload),\n                type: relationshipDefinition.type,\n              },\n            },\n          };\n        }\n      } else {\n        payload.relationships = {\n          ...(payload.relationships || {}),\n          [snakeCase(propertyName)]: {\n            data: null,\n          },\n        };\n      }\n    });\n    return super.normalize(typeClass, payload);\n  }\n\n  getNestedIncluded(typeClass, payload) {\n    const nestedIncluded = [];\n    typeClass.nestedAttributes?.forEach(([propertyName, relationshipDefinition]) => {\n      let relationshipPayload = payload.attributes?.[snakeCase(propertyName)];\n\n      if (payload.attributes && !(snakeCase(propertyName) in payload.attributes)) {\n        relationshipPayload = getNestedDefaultValuePayload(relationshipDefinition, {\n          id: payload.id,\n          ...payload.attributes,\n        });\n        payload.attributes[snakeCase(propertyName)] = relationshipPayload;\n      }\n\n      if (relationshipPayload) {\n        nestedIncluded.push(\n          ...this.getNestedIncludedDependingOnType(relationshipPayload, relationshipDefinition),\n        );\n      }\n    });\n\n    return nestedIncluded;\n  }\n\n  getNestedIncludedDependingOnType(relationshipPayload, relationshipDefinition) {\n    const nestedIncluded = [];\n    if (relationshipPayload) {\n      if (isArray(relationshipPayload)) {\n        relationshipPayload.forEach((item) => {\n          nestedIncluded.push(\n            ...this.getNestedIncludedForRelationship(relationshipDefinition, item),\n          );\n        });\n      } else {\n        nestedIncluded.push(\n          ...this.getNestedIncludedForRelationship(relationshipDefinition, relationshipPayload),\n        );\n      }\n    }\n    return nestedIncluded;\n  }\n\n  getNestedIncludedForRelationship(relationshipDefinition, relationshipPayload) {\n    const nestedIncluded = [];\n    const id = relationshipPayload.id || guidFor(relationshipPayload);\n    nestedIncluded.push({\n      id,\n      type: relationshipDefinition.type,\n      attributes: relationshipPayload,\n    });\n\n    const serializer = this.store.serializerFor(relationshipDefinition.type);\n    if ('getNestedIncluded' in serializer) {\n      nestedIncluded.push(\n        ...serializer.getNestedIncluded(\n          this.store.modelFor(relationshipDefinition.type),\n          relationshipPayload,\n        ),\n      );\n    }\n\n    return nestedIncluded;\n  }\n\n  serializeBelongsTo(snapshot, json, relationship) {\n    if (isNestedDocumentRelationship(relationship)) {\n      return;\n    }\n    super.serializeBelongsTo(snapshot, json, relationship);\n  }\n\n  serializeHasMany(snapshot, json, relationship) {\n    if (isNestedDocumentRelationship(relationship)) {\n      return;\n    }\n    super.serializeHasMany(snapshot, json, relationship);\n  }\n\n  serializeAttribute(snapshot, json, key, definition) {\n    const { type } = definition;\n    if (this._canSerialize(key)) {\n      json.attributes = json.attributes || {};\n      let value = snapshot.attr(key);\n      if (isNestedDocumentRelationship(definition)) {\n        value = serializeNestedDocument(snapshot.record[key]);\n      } else if (type) {\n        const transform = this.transformFor(type);\n        value = transform.serialize(value, definition.options);\n      }\n      const schema = this.store.modelFor(snapshot.modelName);\n      let payloadKey = this._getMappedKey(key, schema);\n      if (payloadKey === key) {\n        payloadKey = this.keyForAttribute(key, 'serialize');\n      }\n      json.attributes[payloadKey] = value;\n    }\n  }\n}\n","import type AssigneeModel from 'client/data/models/assignee';\n\nimport ApplicationSerializer from 'client/data/serializers/application';\n\nexport default class AssigneeSerializer extends ApplicationSerializer {\n  attrs = {\n    foundInDB: { serialize: false },\n  };\n\n  public extractAttributes(\n    modelClass: typeof AssigneeModel,\n    resourceHash: Record<string, unknown>,\n  ) {\n    // only called when query results are returned: all records are found in DB\n    const attributes = super.extractAttributes(modelClass, resourceHash) as {\n      foundInDB: boolean;\n    } & Record<string, unknown>;\n\n    attributes.foundInDB = true;\n    return attributes;\n  }\n}\n","import Serializer from 'client/data/serializers/application';\n\nexport default class BillingSerializer extends Serializer {\n  attrs = {\n    cardNumber: { serialize: false },\n    cardExpirationMonth: { serialize: false },\n    cardExpirationYear: { serialize: false },\n    cardCVV: { serialize: false },\n    cardBrand: { serialize: false },\n    cardHolderName: { serialize: false },\n  };\n}\n","import JSONAPISerializer from '@ember-data/serializer/json-api';\n\nexport default class BrowserExtensionConfigurationCollectionSearchSettingModelSerializer extends JSONAPISerializer {\n  keyForAttribute(key: string) {\n    return key;\n  }\n}\n","import ApplicationSerializer from 'client/data/serializers/application';\n\nexport default class ChartSerializer extends ApplicationSerializer {\n  serialize(snapshot) {\n    const json = snapshot.record.toJSON({ includeId: true });\n    if (snapshot.record.filter) {\n      json.filter = snapshot.record.filter.toJSON({ includeId: true });\n    }\n    return json;\n  }\n\n  static _transformProperty(payload, propertyName, oldName, newName) {\n    if (payload[propertyName] && oldName in payload[propertyName]) {\n      payload[propertyName][newName] = payload[propertyName][oldName];\n    }\n  }\n\n  normalize(typeClass, payload) {\n    if (payload && typeof payload === 'object') {\n      if ('x' in payload.attributes) {\n        payload.attributes.display_settings = {\n          x: payload.attributes.x,\n          y: payload.attributes.y,\n          width: payload.attributes.width,\n          height: payload.attributes.height,\n        };\n      }\n      ChartSerializer._transformProperty(payload, 'attributes', 'aggregate', 'aggregator');\n      ChartSerializer._transformProperty(payload, 'attributes', 'path', 'api_route');\n      ChartSerializer._transformProperty(payload, 'attributes', 'smart_route', 'api_route');\n\n      if ('s3_versions' in payload.attributes) {\n        payload.attributes.s3_versions = {\n          component: payload.attributes.s3_versions['component.js'],\n          template: payload.attributes.s3_versions['template.hbs'],\n          style: payload.attributes.s3_versions['style.css'],\n        };\n      }\n      // NOTICE: fragments don't support ids\n      if (payload.attributes.filter) {\n        payload.attributes.filter._id = payload.attributes.filter.id;\n        if (payload.attributes.filter.conditions && payload.attributes.filter.conditions.length) {\n          payload.attributes.filter.conditions.forEach((condition) => {\n            condition._id = condition.id;\n          });\n        }\n      }\n      ChartSerializer._transformProperty(\n        payload,\n        'relationships',\n        'acts_on_collection',\n        'source_collection',\n      );\n      ChartSerializer._transformProperty(\n        payload,\n        'relationships',\n        'acts_on_relationship_field',\n        'relationship_field',\n      );\n      ChartSerializer._transformProperty(\n        payload,\n        'relationships',\n        'group_by_date_field',\n        'group_by_field',\n      );\n    }\n    return super.normalize(typeClass, payload);\n  }\n}\n","import ApplicationSerializer from 'client/data/serializers/application';\n\nexport default class CollectionSerializer extends ApplicationSerializer {\n  // TODO: Clean once all collections positions have been moved in the rendering.\n  extractAttributes(modelClass, resourceHash) {\n    resourceHash.attributes.position_deprecated = resourceHash.attributes.position;\n    delete resourceHash.attributes.position;\n    return super.extractAttributes(modelClass, resourceHash);\n  }\n\n  static _transformAttribute(payload, oldName, newName) {\n    if (oldName in payload.attributes) {\n      payload.attributes[newName] = payload.attributes[oldName];\n    }\n  }\n\n  normalize(typeClass, payload) {\n    if (payload && typeof payload === 'object') {\n      if ('is_hidden' in payload.attributes) {\n        payload.attributes.browse_enabled = !payload.attributes.is_hidden;\n      }\n      CollectionSerializer._transformAttribute(payload, 'is_virtual', 'is_smart');\n      CollectionSerializer._transformAttribute(\n        payload,\n        'default_sorting_field_order',\n        'default_sorting_order',\n      );\n    }\n    return super.normalize(typeClass, payload);\n  }\n}\n","import ApplicationSerializer from 'client/data/serializers/application';\n\nexport default class ColumnSerializer extends ApplicationSerializer {\n  normalize(typeClass, payload) {\n    if (payload && typeof payload === 'object') {\n      if ('is_hidden' in payload.attributes) {\n        payload.attributes.is_visible = !payload.attributes.is_hidden;\n      }\n    }\n    return super.normalize(typeClass, payload);\n  }\n}\n","import JSONSerializer from '@ember-data/serializer/json';\n\nexport default class ConditionalFormattingSerializer extends JSONSerializer {\n  normalize(typeClass, payload) {\n    if (payload) {\n      payload.isSwitchedOn = true;\n    }\n    return super.normalize(typeClass, payload);\n  }\n}\n","import ApplicationSerializer from 'client/data/serializers/application';\n\nexport default class CustomActionSerializer extends ApplicationSerializer {\n  normalize(typeClass, payload) {\n    if (payload && typeof payload === 'object') {\n      if ('is_hidden' in payload.attributes) {\n        payload.attributes.is_visible = !payload.attributes.is_hidden;\n      }\n      if ('restricted_to' in payload.attributes) {\n        payload.attributes.restricted_to = {\n          userIds: payload.attributes.restricted_to.users,\n          roleIds: payload.attributes.restricted_to.roles,\n        };\n      }\n      if ('approved_by' in payload.attributes) {\n        payload.attributes.approved_by = {\n          userIds: payload.attributes.approved_by.users,\n          roleIds: payload.attributes.approved_by.roles,\n        };\n      }\n    }\n    return super.normalize(typeClass, payload);\n  }\n}\n","import ApplicationSerializer from 'client/data/serializers/application';\nimport { findOperatorFromName } from 'client/utils/condition-utils';\n\nexport default class FieldSerializer extends ApplicationSerializer {\n  normalize(typeClass, payload) {\n    if (payload && typeof payload === 'object') {\n      if ('field' in payload.attributes) {\n        payload.attributes.field_name = payload.attributes.field;\n      }\n\n      if (!('can_filter' in payload.attributes)) {\n        payload.attributes.can_filter = true;\n      }\n      if (!('is_filter_displayed' in payload.attributes)) {\n        payload.attributes.is_filter_displayed = payload.attributes.is_filterable;\n      }\n\n      if (payload.attributes.conditional_formatting) {\n        if (\n          payload.attributes.conditional_formatting.rules\n          && payload.attributes.conditional_formatting.rules.length\n        ) {\n          payload.attributes.conditional_formatting.rules.forEach((rule) => {\n            rule.operator = {\n              ...findOperatorFromName(rule.operator),\n            };\n          });\n        }\n      }\n      if (\n        payload.attributes.type === 'Enum'\n        && typeof payload.attributes.conditional_formatting === 'undefined'\n        && !payload.attributes.widget_display\n      ) {\n        payload.attributes.conditional_formatting = {\n          mode: 'auto',\n        };\n      }\n    }\n\n    return super.normalize(typeClass, payload);\n  }\n}\n","import type FragmentCondition from 'client/data/models/fragment-condition';\n\nimport JSONSerializer from '@ember-data/serializer/json';\n\nimport { findOperatorFromName } from 'client/utils/condition-utils';\n\nexport default class FragmentConditionSmartActionPermissionSerializer extends JSONSerializer {\n  attrs = {\n    fieldPath: { key: 'field' },\n  };\n\n  /**\n   * Returns the resource's attributes formatted as a JSON-API \"attributes object\".\n   */\n  public extractAttributes(\n    modelClass: typeof FragmentCondition,\n    resourceHash: Record<string, unknown>,\n  ) {\n    const attributes = super.extractAttributes(modelClass, resourceHash) as {\n      fieldPath?: string;\n      operator?: string;\n    } & Record<string, unknown>;\n\n    const fixedOperator = {\n      ...attributes,\n      operator: findOperatorFromName(attributes.operator)?.displayName,\n    };\n\n    if (fixedOperator.fieldPath) {\n      const [fieldName, subFieldName] = fixedOperator.fieldPath.split(':');\n\n      return {\n        ...fixedOperator,\n        fieldName,\n        subFieldName,\n      };\n    }\n\n    return fixedOperator;\n  }\n}\n","import type FilterSmartActionPermissionFragment from 'client/data/models/fragment-filter-smart-action-permission';\n\nimport JSONSerializer from '@ember-data/serializer/json';\n\nexport default class FragmentFilterSmartActionPermissionSerializer extends JSONSerializer {\n  attrs = {\n    fieldPath: { key: 'field' },\n  };\n\n  /**\n   * Returns the resource's attributes formatted as a JSON-API \"attributes object\".\n   */\n  public extractAttributes(\n    modelClass: typeof FilterSmartActionPermissionFragment,\n    resourceHash: Record<string, unknown>,\n  ) {\n    const { aggregator, ...rest } = resourceHash;\n    const fixedHash = {\n      ...rest,\n      type: (aggregator as string) || 'and',\n    };\n\n    return super.extractAttributes(modelClass, fixedHash);\n  }\n}\n","import Serializer from 'client/data/serializers/application';\n\nexport default class GuestSerializer extends Serializer {\n  attrs = {\n    project: { serialize: false },\n  };\n\n  keyForAttribute(key) {\n    if (key === 'inverseOf') {\n      return key;\n    }\n    return super.keyForAttribute(key);\n  }\n\n  keyForRelationship(key) {\n    if (key === 'inverseOf') {\n      return key;\n    }\n    return super.keyForRelationship(key);\n  }\n}\n","import ApplicationSerializer from 'client/data/serializers/application';\n\nexport default class InboxAssignmentSerializer extends ApplicationSerializer {\n  attrs = {\n    lastActionDate: { serialize: false },\n  };\n}\n","import ApplicationSerializer from 'client/data/serializers/application';\n\nexport interface InboxPayload {\n  id: string;\n  type: string;\n  attributes?: {\n    name: string;\n    position: number;\n    dispatch_rule: string;\n    sorting_fields: Array<{\n      order: string;\n      fieldName: string;\n    }>;\n    icon: string;\n    sorting_field_name: string;\n    teams: number[];\n  };\n  relationships?: {\n    inbox_assignments: {\n      links: {\n        related: string;\n      };\n    };\n    collection: {\n      data: {\n        id: string;\n        type: string;\n      };\n    };\n    segment: {\n      data: {\n        id: string;\n        type: string;\n      };\n    };\n  };\n}\n\nexport default class InboxSerializer extends ApplicationSerializer {}\n","import ApplicationSerializer from 'client/data/serializers/application';\n\nexport default class MessageSerializer extends ApplicationSerializer {\n  serialize(snapshot, options) {\n    const json = super.serialize(snapshot, options);\n\n    json.data.attributes.content = json.data.attributes.message_content;\n\n    delete json.data.attributes.message_content;\n\n    return json;\n  }\n\n  normalize(typeClass, payload) {\n    if (payload && 'content' in payload.attributes) {\n      payload.attributes.message_content = payload.attributes.content;\n      delete payload.attributes.content;\n    }\n    return super.normalize(typeClass, payload);\n  }\n}\n","import Serializer from 'client/data/serializers/application';\n\nexport default class OrganizationSerializer extends Serializer {\n  attrs = {\n    isPersonal: { serialize: false },\n    permissionLevel: { serialize: false },\n    longName: { serialize: false },\n    users: { serialize: false },\n    isSsoAvailable: { serialize: false },\n    environmentsIncompatibleWithSaml: { serialize: false },\n  };\n}\n","import Serializer from 'client/data/serializers/application';\n\nexport default class PasswordSerializer extends Serializer {\n  attrs = {\n    passwordConfirmation: { serialize: false },\n  };\n}\n","import Serializer from 'client/data/serializers/application';\n\nexport default class extends Serializer {\n  attr = {\n    users: { serialize: false },\n    canStartTrial: { serialize: false },\n    trial: { serialize: false },\n  };\n}\n","import Serializer from 'client/data/serializers/application';\n\nexport default class UserRecoveryCodeSerializer extends Serializer {\n  attrs = {\n    recoveryCode: { serialize: false },\n  };\n}\n","import ApplicationSerializer from 'client/data/serializers/application';\n\nconst ENTITIES_WITH_FILTER = ['segments', 'scopes', 'charts'];\n\nexport default class RenderingSerializer extends ApplicationSerializer {\n  serialize(...args) {\n    const json = super.serialize(...args);\n    const { attributes } = json.data;\n\n    if (attributes && attributes.sections) {\n      const sectionsFormatted = attributes.sections.map((section) => ({\n        name: section.name,\n        is_visible: section.is_visible,\n      }));\n      attributes.sections = sectionsFormatted;\n    }\n\n    return json;\n  }\n\n  static _findObject(normalizedResponse, type, id) {\n    return normalizedResponse.included.find(\n      (included) => included.type === type && included.id === id,\n    );\n  }\n\n  static _getConditionFromPayload(payload, conditionId) {\n    const conditionSerialized = RenderingSerializer._findObject(payload, 'conditions', conditionId);\n    if (!conditionSerialized) return null;\n\n    return {\n      _id: conditionId,\n      embeddedFieldName: conditionSerialized.attributes?.embedded_field?.field || null,\n      operator: conditionSerialized.attributes?.operator || null,\n      value: conditionSerialized.attributes?.value,\n      fieldId: conditionSerialized.relationships?.field?.data?.id || null,\n      subFieldId: conditionSerialized.relationships?.sub_field?.data?.id || null,\n    };\n  }\n\n  static _getFilterFromPayload(payload, filterId) {\n    const filterSerialized = RenderingSerializer._findObject(payload, 'filters', filterId);\n    if (!filterSerialized) return null;\n\n    return {\n      _id: filterId,\n      type: filterSerialized.attributes.type,\n      conditions: filterSerialized.relationships?.conditions?.data\n        ?.map(({ id: conditionId }) =>\n          RenderingSerializer._getConditionFromPayload(payload, conditionId),\n        )\n        ?.filter(Boolean),\n    };\n  }\n\n  static _getScopeFromPayload(payload, scopeId) {\n    const scopeSerialized = RenderingSerializer._findObject(payload, 'scopes', scopeId);\n    if (!scopeSerialized) return null;\n\n    return {\n      _id: scopeId,\n      ...scopeSerialized.attributes,\n    };\n  }\n\n  static _injectFilterIntoEntities(payload) {\n    if (payload.included) {\n      payload.included.forEach((entity) => {\n        if (ENTITIES_WITH_FILTER.includes(entity.type) && entity?.relationships?.filter?.data?.id) {\n          const filter = RenderingSerializer._getFilterFromPayload(\n            payload,\n            entity?.relationships?.filter?.data?.id,\n          );\n          entity.attributes.filter = filter;\n        }\n      });\n    }\n  }\n\n  static _fixFilterIntoEntities(payload) {\n    if (payload.included) {\n      payload.included.forEach((entity) => {\n        if (\n          ENTITIES_WITH_FILTER.includes(entity.type)\n          && entity?.attributes?.filter?.conditions?.length\n        ) {\n          const { filter } = entity.attributes;\n          filter.conditions = filter.conditions.map((condition) => {\n            return {\n              operator: condition.operator || null,\n              value: condition.value,\n              fieldId: condition.fieldId || null,\n              subFieldId: condition.subFieldId || null,\n              fieldName: condition.fieldName || null,\n              subFieldName: condition.subFieldName || null,\n              embeddedFieldName:\n                condition.embeddedFieldName || condition.embeddedField?.field || null,\n            };\n          });\n        }\n      });\n    }\n  }\n\n  static _injectScopeIntoCollection(payload) {\n    if (!payload.included) {\n      return;\n    }\n\n    payload.included.forEach((entity) => {\n      if (entity.type !== 'collections') return;\n\n      if (!entity?.attributes?.scope && entity?.relationships?.scope?.data?.id) {\n        const scope = RenderingSerializer._getScopeFromPayload(\n          payload,\n          entity?.relationships?.scope?.data?.id,\n        );\n        entity.attributes.scope = scope;\n      }\n    });\n  }\n\n  normalize(typeClass, payload) {\n    if (payload && typeof payload === 'object' && payload.attributes) {\n      if (payload.attributes.sections) {\n        payload.attributes.sections = payload.attributes.sections.map((section) => {\n          let isVisible = 'is_visible' in section ? section.is_visible : section.isVisible;\n          // NOTICE: when isVisible is undefined or null it must be set to true.\n          isVisible = isVisible !== false;\n          return {\n            name: section.name === 'Activity' ? 'Reports' : section.name,\n            isVisible,\n          };\n        });\n\n        if (payload.attributes.sections.length === 2) {\n          payload.attributes.sections.pushObjects([\n            {\n              name: 'Collaboration',\n              isVisible: true,\n            },\n            {\n              name: 'Reports',\n              isVisible: true,\n            },\n          ]);\n        }\n        if (payload.attributes.sections.length === 4) {\n          payload.attributes.sections.insertAt(1, {\n            name: 'Workspaces',\n            isVisible: true,\n          });\n        }\n      }\n\n      if (payload.relationships?.environment) {\n        // NOTICE: Better for the frontend to re-map to _environment\n        const { data, links } = payload.relationships.environment;\n        if (links) {\n          payload.relationships._environment = { links };\n          payload.attributes.environment_id = links.related?.split('/').at(-1);\n        } else {\n          payload.relationships._environment = { data };\n          payload.attributes.environment_id = data?.id || null;\n        }\n      }\n\n      if (payload.relationships?.team) {\n        // NOTICE: Better for the frontend to re-map to _team\n        const { data, links } = payload.relationships.team;\n        if (links) {\n          payload.relationships._team = { links };\n          payload.attributes.team_id = links.related?.split('/').at(-1);\n        } else {\n          payload.relationships._team = { data };\n          payload.attributes.team_id = data?.id || null;\n        }\n      }\n    }\n    return super.normalize(typeClass, payload);\n  }\n\n  normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n    // TODO: Remove once the back return the right format\n    RenderingSerializer._fixFilterIntoEntities(payload);\n    RenderingSerializer._injectFilterIntoEntities(payload);\n    RenderingSerializer._injectScopeIntoCollection(payload);\n\n    return super.normalizeResponse(store, primaryModelClass, payload, id, requestType);\n  }\n\n  pushPayload(store, payload) {\n    // TODO: Remove once the back return the right format\n    RenderingSerializer._fixFilterIntoEntities(payload);\n    RenderingSerializer._injectFilterIntoEntities(payload);\n    RenderingSerializer._injectScopeIntoCollection(payload);\n\n    const normalizedPayload = this._normalizeDocumentHelper(payload);\n\n    store.push(normalizedPayload);\n  }\n}\n","import ApplicationSerializer from 'client/data/serializers/application';\n\nexport default class RowCreateSerializer extends ApplicationSerializer {\n  normalize(typeClass, payload) {\n    if (payload && typeof payload === 'object') {\n      if ('is_hidden' in payload.attributes) {\n        payload.attributes.is_visible = !payload.attributes.is_hidden;\n      }\n    }\n    return super.normalize(typeClass, payload);\n  }\n}\n","import ApplicationSerializer from 'client/data/serializers/application';\n\nexport default class RowEditSerializer extends ApplicationSerializer {\n  normalize(typeClass, payload) {\n    if (payload && typeof payload === 'object') {\n      if ('is_hidden' in payload.attributes) {\n        payload.attributes.is_visible = !payload.attributes.is_hidden;\n      }\n    }\n    return super.normalize(typeClass, payload);\n  }\n}\n","import type { TeamDeactivatableFeatureEnum } from 'client/data/models/team';\nimport type { AbilitiesService } from 'ember-can';\n// eslint-disable-next-line ember/use-ember-data-rfc-395-imports\nimport type DS from 'ember-data';\n\nimport { service } from '@ember/service';\n\nimport ApplicationSerializer from 'client/data/serializers/application';\n\nexport type TeamPayload = {\n  data: {\n    id: string;\n    type: 'teams';\n    attributes: {\n      name: string;\n      from_team_id: string | null;\n      users_count: number;\n      is_blocked: boolean;\n      features_deactivated: TeamDeactivatableFeatureEnum[];\n    };\n    relationships?: {\n      project: {\n        data: {\n          type: 'project';\n          id: string;\n        };\n      };\n      users: {\n        data: { type: 'users'; id: string }[];\n      };\n    };\n  };\n};\n\nexport default class TeamSerializer extends ApplicationSerializer {\n  @service abilities: AbilitiesService;\n\n  serialize<K extends string | number>(\n    snapshot: DS.Snapshot<K>,\n    options: Record<string, unknown>,\n  ): TeamPayload {\n    const json: TeamPayload = super.serialize(snapshot, options) as TeamPayload;\n\n    const cannotTeamFeaturesDeactivation = this.abilities.cannot(\n      'access to teamFeaturesDeactivation',\n    );\n\n    if (cannotTeamFeaturesDeactivation && json.data && json.data.attributes) {\n      delete json.data.attributes.features_deactivated;\n    }\n\n    return json;\n  }\n}\n","import window from 'ember-window-mock';\n\nimport ApplicationSerializer from 'client/data/serializers/application';\n\nexport default class UserSerializer extends ApplicationSerializer {\n  serialize(snapshot, options) {\n    const json = super.serialize(snapshot, options);\n    const { record } = snapshot;\n\n    // NOTICE: This data are computed for and used by the business team.\n    //         They are not relevant at all for the final product and for developers, and are used\n    //         to monitor the efficiency of our ads campaign.\n    if (!record.createdAt) {\n      json.data.attributes.utm_campaign = window.Cookies.get('_uc_utm_campaign');\n      json.data.attributes.utm_content = window.Cookies.get('_uc_utm_content');\n      json.data.attributes.utm_medium = window.Cookies.get('_uc_utm_medium');\n      json.data.attributes.utm_source = window.Cookies.get('_uc_utm_source');\n      json.data.attributes.utm_term = window.Cookies.get('_uc_utm_term');\n    }\n\n    return json;\n  }\n}\n","import ApplicationSerializer from 'client/data/serializers/application';\n\nexport default class ViewEditSerializer extends ApplicationSerializer {\n  _transformIdToInternalId(item) {\n    if (item.id) {\n      item._id = item.id;\n    }\n\n    if (item.children) {\n      item.children.forEach((child) => {\n        this._transformIdToInternalId(child);\n      });\n    }\n  }\n\n  normalize(typeClass, payload) {\n    if (payload && typeof payload === 'object') {\n      if (payload.attributes.summary_view && payload.attributes.summary_view.sections) {\n        payload.attributes.summary_view.sections.forEach((section) => {\n          this._transformIdToInternalId(section);\n        });\n      }\n    }\n    return super.normalize(typeClass, payload);\n  }\n}\n","import ApplicationSerializer from 'client/data/serializers/application';\n\nexport default class ViewListSerializer extends ApplicationSerializer {\n  normalize(typeClass, payload) {\n    if (payload && typeof payload === 'object') {\n      if ('is_virtual' in payload.attributes) {\n        payload.attributes.is_smart = payload.attributes.is_virtual;\n      }\n      if (!('is_smart' in payload.attributes)) {\n        payload.attributes.is_smart = false;\n      }\n      if ('record_per_page' in payload.attributes) {\n        payload.attributes.records_per_page = payload.attributes.record_per_page;\n      }\n      if ('s3_versions' in payload.attributes) {\n        payload.attributes.s3_versions = {\n          component: payload.attributes.s3_versions['component.js'],\n          template: payload.attributes.s3_versions['template.hbs'],\n        };\n      }\n    }\n    return super.normalize(typeClass, payload);\n  }\n}\n","import Transform from '@ember-data/serializer/transform';\n\nexport default class extends Transform {\n  deserialize(serialized) {\n    return serialized;\n  }\n\n  serialize(deserialized) {\n    return deserialized;\n  }\n}\n","import Transform from '@ember-data/serializer/transform';\n\n// NOTICE: This is used to handle large numbers as string:\n//         Bigint that goes above max int gets passed as string\n//         (if not handled as so, those numbers would get trimmed).\nexport default class extends Transform {\n  _getValueOrNull(value) {\n    return value === undefined ? null : value;\n  }\n\n  _castAsNumberIfPossible(value) {\n    // NOTICE: If the provided number is already a number, just use it as so.\n    if (typeof value === 'number') {\n      return value;\n    }\n\n    if (typeof value === 'string' && value.includes('.')) {\n      return Number.parseFloat(value);\n    }\n\n    const integerValue = Number.parseInt(value, 10);\n\n    // NOTICE: Checking if value exceeds the max safe integer.\n    //         If so we keep the value as a string.\n    if (Number.isSafeInteger(integerValue)) {\n      return integerValue;\n    }\n    return this._getValueOrNull(value);\n  }\n\n  deserialize(value) {\n    return this._castAsNumberIfPossible(value);\n  }\n\n  serialize(value) {\n    return this._castAsNumberIfPossible(value);\n  }\n}\n","import Transform from '@ember-data/serializer/transform';\n\nimport FileTypeUtils from 'client/utils/file-type';\n\nexport default class extends Transform {\n  deserialize(value) {\n    return value;\n  }\n\n  serialize(value) {\n    // Don't serialize the value if the value is not a base64 encoded file.\n    if (FileTypeUtils.isDataURLScheme(value)) {\n      return value;\n    }\n    return undefined;\n  }\n}\n","import { isArray } from '@ember/array';\nimport Transform from '@ember-data/serializer/transform';\n\nexport default class extends Transform {\n  deserialize(serialized: string | Array<string | number>) {\n    return isArray(serialized) ? JSON.stringify(serialized) : serialized;\n  }\n\n  serialize(deserialized: string | Array<string | number>): Array<string | number> {\n    return typeof deserialized === 'string'\n      ? (JSON.parse(deserialized) as Array<string | number>)\n      : deserialized;\n  }\n}\n","import { isBlank } from '@ember/utils';\nimport Transform from '@ember-data/serializer/transform';\n\nexport default class extends Transform {\n  deserialize(serialized) {\n    return isBlank(serialized) ? {} : serialized;\n  }\n\n  serialize(deserialized) {\n    return isBlank(deserialized) ? {} : deserialized;\n  }\n}\n","import type { Relationship } from 'client/data/models/abstract-model';\nimport type AbstractModel from 'client/data/models/abstract-model';\nimport type AbstractNestedDocumentModel from 'client/data/models/abstract-nested-document-model';\n\nimport { isArray } from '@ember/array';\nimport _ from 'lodash';\n\nexport function isNestedDocumentRelationship(relationship: Relationship): boolean {\n  return (\n    !!relationship.options\n    && 'isNested' in relationship.options\n    && (relationship.options.isNested as boolean)\n  );\n}\n\nexport function getNestedDefaultValuePayload(\n  relationship: Relationship,\n  parentPayload: Record<string, unknown> = undefined,\n): unknown {\n  const defaultValue =\n    relationship.options\n    && 'defaultValue' in relationship.options\n    && relationship.options.defaultValue;\n  if (!defaultValue) {\n    return null;\n  }\n\n  return typeof defaultValue === 'function'\n    ? (defaultValue(parentPayload) as Record<string, unknown>)\n    : _.cloneDeep(defaultValue);\n}\n\nfunction applyMethodOnNestedAttributes(\n  record: AbstractModel,\n  method: 'save' | 'deleteRecord' | 'unloadRecord',\n) {\n  if (record.isDestroyed) return [];\n\n  if (!record.nestedAttributes) {\n    console.debug('Record is not extending from AbstractModel', record);\n    return [];\n  }\n\n  return Array.from(record.nestedAttributes).flatMap(([propertyName, relationship]) => {\n    if (relationship.kind === 'hasMany') {\n      const recordPropertyNestedDocument = record[propertyName] as AbstractNestedDocumentModel[];\n\n      return recordPropertyNestedDocument\n        .toArray()\n        .map((nestedRecord: AbstractNestedDocumentModel) => {\n          return nestedRecord.isDeleted || nestedRecord.isDestroying || nestedRecord.isDestroyed\n            ? null\n            : nestedRecord[method]();\n        });\n    }\n\n    const nestedRecord = record[propertyName] as AbstractNestedDocumentModel;\n    if (nestedRecord?.isDeleted || nestedRecord?.isDestroying || nestedRecord?.isDestroyed) {\n      return null;\n    }\n\n    return nestedRecord?.[method]();\n  });\n}\n\nexport function serializeNestedDocument(\n  record: AbstractNestedDocumentModel | AbstractNestedDocumentModel[],\n): unknown {\n  if (isArray(record)) return record.map(serializeNestedDocument);\n  return record && record.toJSON();\n}\n\nexport async function saveNestedAttributes(record: AbstractModel) {\n  await Promise.all(applyMethodOnNestedAttributes(record, 'save'));\n}\n\nexport async function deleteNestedAttributes(record: AbstractModel) {\n  await Promise.all(applyMethodOnNestedAttributes(record, 'deleteRecord'));\n}\n\nexport function unloadRecordNestedAttributes(record: AbstractModel) {\n  applyMethodOnNestedAttributes(record, 'unloadRecord');\n}\n","import { datadogRum } from '@datadog/browser-rum';\nimport { assert } from '@ember/debug';\nimport GlimmerComponent from '@glimmer/component';\n\nimport config from 'client/config/environment';\nimport ArgumentValidation from 'client/decorators/argument/argument-validation';\nimport shape from 'client/decorators/argument/shape';\nimport {\n  MissingRequiredPropertyError,\n  WrongPropertyTypeError,\n  WrongPropertyValueError,\n} from 'client/utils/errors';\n\nfunction isFieldDescriptor(possibleDesc) {\n  const [target, key, desc] = possibleDesc;\n\n  return (\n    possibleDesc.length === 3\n    && typeof target === 'object'\n    && target !== null\n    && typeof key === 'string'\n    && ((typeof desc === 'object'\n      && desc !== null\n      && 'enumerable' in desc\n      && 'configurable' in desc)\n      || desc === undefined) // TS compatibility\n  );\n}\n\nfunction decoratorWithRequiredParams(fn, name) {\n  return function (...params) {\n    assert(\n      `The @${name || fn.name} decorator requires parameters`,\n      !isFieldDescriptor(params) && params.length > 0,\n    );\n\n    return (...desc) => fn(...desc, params);\n  };\n}\n\nfunction getPropertyValue(component, propertyName) {\n  return component.args && component.args[propertyName];\n}\n\nfunction handleError(error, originalClassName = null) {\n  if (originalClassName && error.stack) {\n    // Replace class validation so we can track from which component the error comes from\n    error.stack = error.stack.replaceAll('ClassWithValidation', originalClassName);\n  }\n  if (config.environment === 'production') {\n    datadogRum.addError(error);\n  } else if (!config.disableArgumentValidation) {\n    throw error;\n  }\n}\n\nexport const validatePropTypes = (\n  component,\n  propertyName,\n  validation,\n  originalClassName = null,\n) => {\n  const propertyValue = getPropertyValue(component, propertyName);\n  const validator = new ArgumentValidation(validation, propertyName);\n\n  if (!validator.validateRequirement(propertyValue)) {\n    handleError(\n      validator.getError() || new MissingRequiredPropertyError(propertyName),\n      originalClassName,\n    );\n  }\n\n  if (!validator.validateType(propertyValue)) {\n    handleError(\n      validator.getError() || new WrongPropertyTypeError(propertyName, propertyValue),\n      originalClassName,\n    );\n  }\n\n  if (!validator.validateValue(propertyValue)) {\n    handleError(\n      validator.getError() || new WrongPropertyValueError(propertyName, propertyValue),\n      originalClassName,\n    );\n  }\n};\n\n/**\n  Field decorator which specifies the argument of the component.\n  ```js\n  export default class argumentDemoComponent extends Component {\n    @argument(Number) myNumber;\n    @argument(optional(Number)) myOptionalNumber;\n    @argument(arrayOf(Number)) myArrayNumber;\n    @argument(oneOf(1, 'truc')) myEnum;\n  }\n  ```\n  @function\n  @param {string} argument - The property than can be passed to the component\n*/\nexport const argument = decoratorWithRequiredParams((target, key, desc, params = []) => {\n  const [argumentParams] = params;\n\n  assert(\n    `The @argument decorator must be provided exactly one argument, received: ${params}`,\n    params.length === 1,\n  );\n\n  if (target instanceof GlimmerComponent) {\n    // If the parent constructor has a _argumentsToValidate property\n    // this class inherits from it, from its prototype\n    // We don't want to write into the parent's configuration, but create a new one\n    if (!Object.hasOwnProperty.call(target.constructor, '_argumentsToValidate')) {\n      target.constructor._argumentsToValidate = Object.create(\n        target.constructor._argumentsToValidate || {},\n      );\n    }\n    target.constructor._argumentsToValidate[key] = argumentParams;\n  } else {\n    const oldInit = target.init;\n    target.init = function (...args) {\n      validatePropTypes({ args: args[0] }, key, argumentParams);\n\n      if (oldInit) {\n        oldInit.apply(this, args);\n      } else {\n        this._super(...args);\n      }\n    };\n  }\n\n  return desc;\n}, 'argument');\n\nexport { default as optional } from './argument/optional';\nexport { default as oneOf } from './argument/one-of';\nexport { default as oneOfType } from './argument/one-of-type';\nexport { default as arrayOf } from './argument/array-of';\nexport { default as shape } from './argument/shape';\nexport { default as any } from './argument/any';\nexport const HTMLSafeElement = shape({ toHTML: Function });\n","import ArgumentValidation from 'client/decorators/argument/argument-validation';\n\nexport class Any extends ArgumentValidation {\n  validateType() {\n    return true;\n  }\n\n  validateRequirement() {\n    return true;\n  }\n}\n\nexport default function any() {\n  return new Any();\n}\n","import { isNone } from '@ember/utils';\n\nexport function isNativeType(type) {\n  return [String, Date, Function, Number, Boolean].includes(type);\n}\n\nexport default class ArgumentValidation {\n  constructor(type, propertyName) {\n    this.type = type;\n    if (this.type instanceof ArgumentValidation) this.type.setPropertyName(propertyName);\n  }\n\n  getError() {\n    if (this._error) {\n      return this._error;\n    }\n\n    if (this.type instanceof ArgumentValidation) {\n      return this.type.getError();\n    }\n\n    return null;\n  }\n\n  static isOfType(type, value) {\n    if (isNativeType(type)) {\n      return (\n        isNone(value)\n        || type.name === value.constructor.name\n        || (type.name === 'Function' && value.constructor.name === 'AsyncFunction')\n      );\n    }\n\n    if (type instanceof ArgumentValidation) return type.validateType(value);\n\n    return value instanceof type;\n  }\n\n  setPropertyName(propertyName) {\n    this.propertyName = propertyName;\n  }\n\n  validateType(value) {\n    return ArgumentValidation.isOfType(this.type, value);\n  }\n\n  validateRequirement(value) {\n    if (this.type instanceof ArgumentValidation) {\n      return this.type.validateRequirement(value);\n    }\n    return !isNone(value);\n  }\n\n  validateValue(value) {\n    if (this.type instanceof ArgumentValidation) {\n      return this.type.validateValue(value);\n    }\n    return true;\n  }\n}\n","import { isArray } from '@ember/array';\nimport { isNone } from '@ember/utils';\n\nimport ArgumentValidation from 'client/decorators/argument/argument-validation';\n\nexport class ArrayOf extends ArgumentValidation {\n  _validate(values, methodToCall) {\n    if (isNone(values)) {\n      return false;\n    }\n\n    if (this.type instanceof ArgumentValidation && isArray(values)) {\n      const prefix = this.propertyName ? `${this.propertyName}.` : '';\n      return values.every((value, index) => this.type[methodToCall](value, `${prefix}${index}`));\n    }\n\n    return true;\n  }\n\n  validateType(values) {\n    if (isNone(values)) {\n      return true;\n    }\n\n    const prefix = this.propertyName ? `${this.propertyName}.` : '';\n    return (\n      isArray(values)\n      && values.every((item, index) => {\n        if (this.type instanceof ArgumentValidation)\n          return this.type.validateType(item, `${prefix}${index}`);\n        return ArgumentValidation.isOfType(this.type, item);\n      })\n    );\n  }\n\n  validateRequirement(values) {\n    return this._validate(values, 'validateRequirement');\n  }\n\n  validateValue(values) {\n    return this._validate(values, 'validateValue');\n  }\n}\n\nexport default function arrayOf(type) {\n  return new ArrayOf(type);\n}\n","import { isNone } from '@ember/utils';\n\nimport ArgumentValidation from 'client/decorators/argument/argument-validation';\n\nexport class OneOfType extends ArgumentValidation {\n  constructor(types) {\n    super();\n\n    if (!Array.isArray(types))\n      throw new Error('OneOfType takes an array of valid types as parameter');\n    this.allowNull = types.includes(null);\n    this.validTypes = types.filter(Boolean);\n  }\n\n  validateType(value) {\n    let isValid = this.validTypes.some((validType) =>\n      ArgumentValidation.isOfType(validType, value),\n    );\n\n    if (!isValid && this.allowNull) isValid = value === null;\n\n    return isValid;\n  }\n\n  validateRequirement(value) {\n    let isValid = !isNone(value);\n\n    if (!isValid && this.allowNull) isValid = value === null;\n\n    return isValid;\n  }\n}\n\nexport default (types) => new OneOfType(types);\n","import { isNone } from '@ember/utils';\n\nimport ArgumentValidation from 'client/decorators/argument/argument-validation';\n\nexport class OneOf extends ArgumentValidation {\n  constructor(...validValues) {\n    super();\n\n    this.validValues = validValues;\n  }\n\n  validateType() {\n    return true;\n  }\n\n  validateValue(value) {\n    return isNone(value) || this.validValues.includes(value);\n  }\n}\n\nexport default function oneOf(...values) {\n  return new OneOf(...values);\n}\n","import { isNone } from '@ember/utils';\n\nimport ArgumentValidation from 'client/decorators/argument/argument-validation';\n\nexport class Optional extends ArgumentValidation {\n  _validate(value, methodToCall) {\n    if (!isNone(value) && this.type instanceof ArgumentValidation) {\n      return this.type[methodToCall](value);\n    }\n    return true;\n  }\n\n  validateType(value) {\n    if (isNone(value)) return true;\n    if (this.type instanceof ArgumentValidation) return this.type.validateType(value);\n    return ArgumentValidation.isOfType(this.type, value);\n  }\n\n  validateRequirement(value) {\n    return this._validate(value, 'validateRequirement');\n  }\n\n  validateValue(value) {\n    return this._validate(value, 'validateValue');\n  }\n\n  setPropertyName(propertyName) {\n    this.propertyName = propertyName;\n    if (this.type instanceof ArgumentValidation) {\n      this.type.setPropertyName(propertyName);\n    }\n  }\n}\n\nexport default function optional(type) {\n  return new Optional(type);\n}\n","import { isNone } from '@ember/utils';\n\nimport ArgumentValidation from 'client/decorators/argument/argument-validation';\nimport {\n  MissingRequiredPropertyError,\n  WrongPropertyTypeError,\n  WrongPropertyValueError,\n} from 'client/utils/errors';\n\nfunction isObject(obj) {\n  return obj && !Array.isArray(obj) && typeof obj === 'object';\n}\n\nexport class Shape extends ArgumentValidation {\n  constructor(schema) {\n    super();\n\n    if (!schema) {\n      this.allowNull = true;\n    } else if (!isObject(schema)) {\n      throw new Error('Shape takes an object as parameter');\n    }\n\n    this.schema = schema;\n  }\n\n  getError() {\n    if (this._error) {\n      return this._error;\n    }\n\n    if (!this.schema) {\n      return null;\n    }\n\n    const types = Object.values(this.schema);\n    for (let i = 0; i < types.length; i += 1) {\n      const error = types[i] instanceof ArgumentValidation && types[i].getError();\n      if (error) {\n        return error;\n      }\n    }\n\n    return null;\n  }\n\n  validateType(value, prefix = this.propertyName, schema = this.schema) {\n    if (this.allowNull) return value === null ? true : isObject(value);\n\n    return Object.entries(schema).every(([key, type]) => {\n      const propertyPath = `${prefix}.${key}`;\n      if (!(type instanceof ArgumentValidation) && isObject(type)) {\n        return this.validateType(value[key], propertyPath, type);\n      }\n      if (!ArgumentValidation.isOfType(type, value[key])) {\n        return this._throwErrorAndReturnFalse(new WrongPropertyTypeError(propertyPath, value[key]));\n      }\n      return true;\n    });\n  }\n\n  validateRequirement(value, prefix = this.propertyName, schema = this.schema) {\n    if (this.allowNull) return value !== undefined;\n    if (!value) return this._throwErrorAndReturnFalse(new MissingRequiredPropertyError(prefix));\n    if (!isObject(value)) {\n      return this._throwErrorAndReturnFalse(new WrongPropertyTypeError(prefix, value));\n    }\n\n    return Object.entries(schema).every(([key, type]) => {\n      const propertyPath = `${prefix}.${key}`;\n      if (!(type instanceof ArgumentValidation) && isObject(type)) {\n        return this.validateRequirement(value[key], propertyPath, type);\n      }\n      const isInValid =\n        type instanceof ArgumentValidation\n          ? !type.validateRequirement(value[key])\n          : isNone(value[key]);\n      if (isInValid) {\n        return this._throwErrorAndReturnFalse(new MissingRequiredPropertyError(propertyPath));\n      }\n      return true;\n    });\n  }\n\n  validateValue(value, prefix = this.propertyName, schema = this.schema) {\n    if (this.allowNull) return true;\n\n    return Object.entries(schema).every(([key, type]) => {\n      const propertyPath = `${prefix}.${key}`;\n      if (!(type instanceof ArgumentValidation) && isObject(type)) {\n        return this.validateValue(value[key], propertyPath, type);\n      }\n      const isInValid =\n        type instanceof ArgumentValidation ? !type.validateValue(value[key]) : false;\n      if (isInValid) {\n        return this._throwErrorAndReturnFalse(\n          new WrongPropertyValueError(propertyPath, value[key]),\n        );\n      }\n      return true;\n    });\n  }\n\n  _throwErrorAndReturnFalse(error) {\n    this._error = error;\n    return false;\n  }\n}\n\nexport default function shape(schema) {\n  return new Shape(schema);\n}\n","import { hasMany } from '@ember-data/model';\n\nexport default function arrayOfNestedDocument<ParentModel>(\n  modelName: string,\n  options?: Parameters<typeof hasMany>[1] & {\n    defaultValue?: unknown;\n    type?: (data: object, owner: ParentModel) => string;\n    typeKey?: string;\n  },\n): PropertyDecorator {\n  const nestedOptions = {\n    ...(options || {}),\n    isNested: true,\n    async: false,\n  };\n\n  return hasMany(modelName, nestedOptions as Parameters<typeof hasMany>[1]);\n}\n","import type Model from '@ember-data/model';\nimport type { Cache } from '@ember-data/store/-private';\nimport type { ForestRecordData } from 'client/legacy/services/store';\n\nimport { computed } from '@ember/object';\nimport { recordIdentifierFor } from '@ember-data/store';\nimport { peekCache, recordDataFor } from '@ember-data/store/-private';\n\nexport type AttrOptions = {\n  defaultValue?: Array<unknown> | null | (() => Array<unknown>);\n};\n\nfunction isLegacyCache(cache: Cache | ForestRecordData): cache is ForestRecordData {\n  return peekCache === undefined;\n}\n\nfunction getAttr(cache: Cache | ForestRecordData, identifier: unknown, key: string): string {\n  return isLegacyCache(cache) ? cache.getAttr(key) : cache.getAttr(identifier, key);\n}\n\nfunction setAttr(cache: Cache | ForestRecordData, identifier: unknown, key: string, value: string) {\n  return isLegacyCache(cache)\n    ? cache.setDirtyAttribute(key, value)\n    : cache.setAttr(identifier, key, value);\n}\n\nfunction proxyToNativeFunction(\n  target: Array<unknown>,\n  cache: Cache | ForestRecordData,\n  identifier: unknown,\n  key: string,\n  prop:\n    | 'pushObject'\n    | 'pushObjects'\n    | 'removeObject'\n    | 'removeObjects'\n    | 'push'\n    | 'pop'\n    | 'shift'\n    | 'unshift'\n    | 'splice'\n    | 'reverse'\n    | 'sort',\n) {\n  return function (...args: unknown[]) {\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    const result = target[prop](...args);\n\n    const stringifiedValue = JSON.stringify(target);\n    const currentValue = getAttr(cache, identifier, key);\n    if (currentValue !== stringifiedValue) {\n      setAttr(cache, identifier, key, stringifiedValue);\n    }\n    return result;\n  };\n}\n\nexport const ArrayAttributeType = 'forest-array';\n\nfunction _array(type?: string | AttrOptions, options?: AttrOptions & object) {\n  let optionsOrDefault = options || {};\n  if (typeof type === 'object') {\n    optionsOrDefault = type;\n  }\n\n  const meta = {\n    type: ArrayAttributeType,\n    kind: 'attribute',\n    isAttribute: true,\n    options: optionsOrDefault,\n    key: null,\n  };\n\n  return computed('constructor', 'isDestroyed', 'isDestroying', {\n    get(this: Model, key: string) {\n      if (this.isDestroyed || this.isDestroying) {\n        return null;\n      }\n      const identifier = recordIdentifierFor(this);\n      const cache = peekCache ? peekCache(this) : recordDataFor(this);\n\n      const cachedValue = getAttr(cache, identifier, key);\n\n      return (\n        cachedValue\n        && new Proxy(JSON.parse(cachedValue), {\n          get(target: string[] | number[], prop: string, receiver) {\n            if (\n              [\n                'pushObject',\n                'pushObjects',\n                'removeObject',\n                'removeObjects',\n                'push',\n                'pop',\n                'shift',\n                'unshift',\n                'splice',\n                'reverse',\n                'sort',\n              ].includes(prop)\n            ) {\n              return proxyToNativeFunction(target, cache, identifier, key, prop as 'pushObject');\n            }\n\n            return Reflect.get(target, prop, receiver);\n          },\n        })\n      );\n    },\n    set(this: Model, key: string, value: Array<unknown> | null) {\n      const identifier = recordIdentifierFor(this);\n      const cache = peekCache ? peekCache(this) : recordDataFor(this);\n\n      const stringifiedValue = JSON.stringify(value);\n      const currentValue = getAttr(cache, identifier, key);\n      if (currentValue !== stringifiedValue) {\n        setAttr(cache, identifier, key, stringifiedValue);\n\n        if (!this.isValid) {\n          const { errors } = this;\n\n          if (errors.get(key)) {\n            errors.remove(key);\n            // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n            // @ts-ignore\n\n            this.currentState.cleanErrorRequests();\n          }\n        }\n      }\n\n      return value;\n    },\n  }).meta(meta);\n}\n\nexport type DataDecorator = (target: object, key: string) => void;\n\nexport function array(): DataDecorator;\nexport function array(type: 'string' | 'number'): DataDecorator;\nexport function array(options: AttrOptions): DataDecorator;\nexport function array(type: string, options?: AttrOptions & object): DataDecorator;\nexport function array(target: object, key: string | symbol, desc?: PropertyDescriptor): void; // see note on DataDecorator for why void\nexport function array(\n  type?: string | AttrOptions | object,\n  options?: (AttrOptions & object) | string | symbol,\n): DataDecorator | void {\n  // see note on DataDecorator for why void\n  return _array(type, options as object);\n}\n","import EmberComponent from '@ember/component';\nimport Controller from '@ember/controller';\nimport { assert } from '@ember/debug';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport GlimmerComponent from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport BelongsToCreationForm from 'client/utils/form/belongs-to-creation-form';\nimport CreationForm from 'client/utils/form/creation-form';\nimport DuplicationForm from 'client/utils/form/duplication-form';\nimport EditionForm from 'client/utils/form/edition-form';\n\n/**\n  Class decorator which add component properties to create belongs to recursively.\n  ```js\n  @creationFormHandler\n  export default class SomeComponentOrController extends Component {\n  }\n  ```\n  @function\n*/\n\n/**\n * @template {{ new (...args: any[]): {} }} T\n * @param {T} target\n * @returns\n */\nexport default function creationFormHandler(target) {\n  assert(\n    'The @creationFormHandler can be used only on Component or Controller',\n    target.prototype instanceof EmberComponent\n      || target.prototype instanceof GlimmerComponent\n      || target.prototype instanceof Controller,\n  );\n\n  return class extends target {\n    @service collectionState;\n    @service('feature/client-record') clientRecordFeature;\n    // Required by the creation form\n    @service store;\n    @service lianaFeatures;\n\n    @tracked formToDisplay;\n    @tracked formsQueue = [];\n\n    async instantiateRecord(args) {\n      let formToInstantiate = CreationForm;\n      if (args.field) {\n        formToInstantiate = BelongsToCreationForm;\n      } else if (args.recordToDuplicate) {\n        formToInstantiate = DuplicationForm;\n      } else if (args.isRecordEdition) {\n        formToInstantiate = EditionForm;\n      }\n      this.formToDisplay = await formToInstantiate.instantiateForm(this, args);\n      this.collectionState.currentRecord = this.formToDisplay.record;\n    }\n\n    @action\n    async createNewBelongsTo(field, polymorphicReferenceModel) {\n      this.formsQueue.pushObject(this.formToDisplay);\n      await this.instantiateRecord({\n        field,\n        parentRecord: this.formToDisplay.record,\n        polymorphicReferenceModel,\n      });\n    }\n\n    @action\n    cancelLastRecordCreation() {\n      if (this.formToDisplay.record.isNew) {\n        this.formToDisplay.record.destroyRecord();\n      } else {\n        this.formToDisplay.record.rollbackAttributes();\n        this.formToDisplay.record.rollbackRelationships();\n      }\n      this.formToDisplay = this.formsQueue.pop();\n      this.collectionState.currentRecord = this.formToDisplay?.record || null;\n    }\n\n    @action\n    closeRecordCreation() {\n      while (this.formToDisplay) {\n        this.cancelLastRecordCreation();\n      }\n    }\n\n    async _createRecord() {\n      const recordSaved = this.formToDisplay.field?.isEmbedded\n        ? await this._createNestedRecord()\n        : await this._createSimpleRecord();\n\n      if (recordSaved) {\n        this.formToDisplay = this.formsQueue.pop();\n        this.collectionState.currentRecord = this.formToDisplay?.record || null;\n        return true;\n      }\n\n      return false;\n    }\n\n    async _createSimpleRecord() {\n      const recordSaved = await this.clientRecordFeature.upsertRecord(this.formToDisplay.record);\n\n      if (recordSaved && this.formToDisplay.isBelongsToCreation) {\n        if (\n          this.formToDisplay.field.isBelongsTo\n          || this.formToDisplay.field.isInlineBelongsToField\n        ) {\n          this.formToDisplay.parentRecord.set(\n            this.formToDisplay.field.attributeNameWithRelationships,\n            this.formToDisplay.record,\n          );\n        } else {\n          await this.clientRecordFeature.addRecordToAssociation(\n            this.formToDisplay.parentRecord,\n            this.formToDisplay.field,\n            this.formToDisplay.record,\n          );\n        }\n      }\n\n      return recordSaved;\n    }\n\n    async _createNestedRecord() {\n      const { attributeNameWithRelationships } = this.formToDisplay.field;\n      if (\n        this.formToDisplay.field.isEmbeddedBelongsTo\n        || this.formToDisplay.field.isEmbeddedBelongsToDeep\n      ) {\n        this.formToDisplay.parentRecord.set(\n          attributeNameWithRelationships,\n          this.formToDisplay.record,\n        );\n      } else {\n        if (!this.formToDisplay.parentRecord[attributeNameWithRelationships]) {\n          this.formToDisplay.parentRecord[attributeNameWithRelationships] = [];\n        }\n        this.formToDisplay.parentRecord[attributeNameWithRelationships].pushObject(\n          this.formToDisplay.record,\n        );\n      }\n\n      return this.clientRecordFeature.upsertRecord(this.formToDisplay.parentRecord);\n    }\n  };\n}\n","import EmberComponent from '@ember/component';\nimport { assert } from '@ember/debug';\nimport { computed } from '@ember/object';\nimport { or } from '@ember/object/computed';\nimport GlimmerComponent from '@glimmer/component';\n\nimport {\n  DEFAULT_DATEONLY_FORMAT,\n  DEFAULT_DATE_FORMAT,\n} from 'client/utils/dates-default-format-variables';\n\n/**\n  Class decorator which add component properties to compute formatted dates.\n  ```js\n  @dateFormatting\n  export default class SomeDateComponent extends Component {\n  }\n  ```\n  @function\n*/\nexport default function dateFormatting(target) {\n  assert(\n    'The @dateFormatting can be used only on Glimmer or Ember components',\n    target === EmberComponent\n      || target.prototype instanceof EmberComponent\n      || target === GlimmerComponent\n      || target.prototype instanceof GlimmerComponent,\n  );\n\n  return class extends target {\n    @or('args.field', 'field') argsField;\n    @or('args.widgetConfiguration', 'widgetConfiguration')\n    argsWidgetConfiguration;\n\n    @computed('args.isDateOnly', 'argsField.isDateonly', 'isDateOnly')\n    get argsIsDateOnly() {\n      return !!this.args?.isDateOnly || !!this.argsField?.isDateonly || !!this.isDateOnly;\n    }\n\n    @computed('argsWidgetConfiguration', 'argsIsDateOnly')\n    get dateFormat() {\n      const widgetConfiguration = this.argsWidgetConfiguration;\n      return (\n        widgetConfiguration?.parameters?.format\n        || (this.argsIsDateOnly && DEFAULT_DATEONLY_FORMAT)\n        || DEFAULT_DATE_FORMAT\n      );\n    }\n  };\n}\n","import { assert } from '@ember/debug';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\n/**\n  Class decorator that display hubspot live chat on specific route\n  ```js\n    @displayHubspotLiveChat()\n    export default class Onboarding extends Route {}\n  ```\n  @function\n*/\n\nfunction validateTarget(Target) {\n  assert('@displayHubspotLiveChat can only be used on Routes', Target.prototype instanceof Route);\n}\n/**\n *\n * @returns {<T extends { new (...args: any[]): {} }>(Class: T)}\n */\nexport default function displayHubspotLiveChat() {\n  return function (Target) {\n    validateTarget(Target);\n\n    return class extends Target {\n      /** @type {import('client/legacy/services/hubspot-live-chat').default} */\n      @service hubspotLiveChat;\n\n      activate(...args) {\n        this.hubspotLiveChat.addLiveChat();\n        return super.activate(...args);\n      }\n\n      deactivate(...args) {\n        this.hubspotLiveChat.removeLiveChat();\n        return super.deactivate(...args);\n      }\n    };\n  };\n}\n","import { assert } from '@ember/debug';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\n/**\n  Class decorator which force a page to use either http or https.\n  ```js\n    @enforceProtocol({ secure: true })\n    export default class BillingEditRoute extends Route {}\n  ```\n  @function\n*/\n\nfunction validateTarget(target, { secure, fallbackToInsecure }) {\n  assert('@enforceProtocol can only be used on Routes', target.prototype instanceof Route);\n\n  assert(\n    '@enforceProtocol expects one boolean parameter named secure',\n    typeof secure === 'boolean',\n  );\n\n  assert(\n    '@enforceProtocol expects fallbackToInsecure to be undefined or a boolean',\n    fallbackToInsecure === undefined || typeof fallbackToInsecure === 'boolean',\n  );\n}\n\n/**\n *\n * @param {{\n *   secure: boolean;\n *   fallbackToInsecure?: boolean\n * }} params\n * @returns\n */\nexport default function enforceProtocol({ secure, fallbackToInsecure }) {\n  /** @returns {extends import('@ember/routing/route').default} */\n  return function (target) {\n    validateTarget(target, { secure, fallbackToInsecure });\n\n    return class extends target {\n      /** @type {import('client/legacy/services/redirection').default} */\n      @service redirection;\n\n      beforeModel(transition, ...args) {\n        this.redirection.enforceProtocol({ secure, fallbackToInsecure }, transition);\n        return super.beforeModel(transition, ...args);\n      }\n    };\n  };\n}\n","import { assert } from '@ember/debug';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport colorUtils, { getColorFromTheme } from 'client/utils/color-utils';\n\n/**\n  Class decorator which setups white labeling colors, title and favicon\n  ```js\n    @enforceWhiteLabel()\n    export default class LoginRoute extends Route {}\n  ```\n  @function\n*/\n\nfunction validateTarget(target) {\n  assert('@enforceWhiteLabel can only be used on Routes', target.prototype instanceof Route);\n}\n\n/**\n *\n * @returns {<T extends { new (...args: any[]): {} }>(Class: T)}\n */\nexport default function enforceWhiteLabel() {\n  return function (target) {\n    validateTarget(target);\n\n    return class extends target {\n      /** @type {import('client/legacy/services/white-label').default} */\n      @service whiteLabel;\n      /** @type {import('client/legacy/services/datadog').default} */\n      @service datadog;\n\n      async title(tokens) {\n        return this.whiteLabel.title(tokens);\n      }\n\n      async beforeModel(transition, ...args) {\n        const primaryColor = await this.whiteLabel.getPrimaryColor();\n        colorUtils.setColorPrimaryVariantsOnElement(\n          document.body,\n          primaryColor || getColorFromTheme('--accent-600'),\n        );\n        return super.beforeModel(transition, ...args);\n      }\n\n      async setupController(controller, model) {\n        super.setupController(controller, model);\n        await this.whiteLabel.setupFavicon();\n        await this.datadog.setupProjectNameFromCustomDomain();\n      }\n    };\n  };\n}\n","import { addListener, removeListener, sendEvent } from '@ember/object/events';\n\nimport config from 'client/config/environment';\n\n/**\n * Replaces the Evented Mixin for services defined with an inheritance\n * instead of Service.extend()\n * Can be applied to any type of ember object\n */\nexport default function evented<\n  Events = { [key: string]: unknown },\n  // eslint-disable-next-line @typescript-eslint/no-empty-object-type, @typescript-eslint/no-explicit-any\n  T extends { new (...args: any[]): {} } = { new (...args: any[]): {} },\n>(Class: T) {\n  return class EventedClass extends Class {\n    /**\n     * Subscribes to a named event with given function.\n     * ```javascript\n     * person.on('didLoad', function() {\n     *   // fired once the person has loaded\n     * });\n     * ```\n     * An optional target can be passed in as the 2nd argument that will\n     * be set as the \"this\" for the callback. This is a good way to give your\n     * function access to the object triggering the event. When the target\n     * parameter is used the callback method becomes the third argument.\n     */\n    public on<K extends keyof Events & string>(\n      name: K,\n      method: (value: Events[K]) => void | Promise<void>,\n    ): this;\n\n    public on<K extends keyof Events & string>(\n      name: K,\n      target: object,\n      method: keyof this | ((value: Events[K]) => void | Promise<void>),\n    ): this;\n\n    public on<K extends keyof Events & string>(\n      name: K,\n      target: object | ((value: Events[K]) => void | Promise<void>),\n      method?: keyof this | ((value: Events[K]) => void | Promise<void>),\n    ) {\n      addListener(this, name, target, method);\n      return this;\n    }\n\n    /**\n     * Subscribes a function to a named event and then cancels the subscription\n     * after the first time the event is triggered. It is good to use ``one`` when\n     * you only care about the first time an event has taken place.\n     * This function takes an optional 2nd argument that will become the \"this\"\n     * value for the callback. When the target parameter is used the callback method\n     * becomes the third argument.\n     */\n    public one<K extends keyof Events & string>(\n      name: K,\n      method: (value: Events[K]) => void | Promise<void>,\n    ): this;\n\n    public one<K extends keyof Events & string>(\n      name: K,\n      target: object,\n      method: keyof this | ((value: Events[K]) => void | Promise<void>),\n    ): this;\n\n    public one<K extends keyof Events & string>(\n      name: K,\n      target: object | ((value: Events[K]) => void | Promise<void>),\n      method?: keyof this | ((value: Events[K]) => void | Promise<void>),\n    ) {\n      addListener(this, name, target, method, true);\n      return this;\n    }\n\n    /**\n     * Triggers a named event for the object. Any additional arguments\n     * will be passed as parameters to the functions that are subscribed to the\n     * event.\n     * ```javascript\n     * person.on('didEat', function(food) {\n     *   console.log('person ate some ' + food);\n     * });\n     * person.trigger('didEat', 'broccoli');\n     * // outputs: person ate some broccoli\n     * ```\n     */\n    public trigger<K extends keyof Events & string>(name: K, ...args: Events[K][]) {\n      sendEvent(this, name, args);\n    }\n\n    /**\n     * Cancels subscription for given name, target, and method.\n     */\n    public off<K extends keyof Events & string>(\n      name: K,\n      method: (data: Events[K]) => void | Promise<void>,\n    ): this;\n\n    public off<K extends keyof Events & string>(\n      name: K,\n      target: object,\n      method: keyof this | ((data: Events[K]) => void | Promise<void>),\n    ): this;\n\n    public off<K extends keyof Events & string>(\n      name: K,\n      target: object | ((data: Events[K]) => void | Promise<void>),\n      method?: keyof this | ((data: Events[K]) => void | Promise<void>),\n    ) {\n      try {\n        removeListener(this, name, target, method);\n      } catch (e) {\n        if (config.environment === 'production') {\n          console.warn(e);\n        } else {\n          throw e;\n        }\n      }\n      return this;\n    }\n  };\n}\n","import { assert } from '@ember/debug';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { EnvironmentsFeaturesEnum } from 'client/data/models/plan';\n\n/**\n  Class decorator which checks if a feature is accessible and redirects if needed.\n  It expects to receive as arguments the feature name and either the link to redirect if the\n  feature is activated or the link to redirect if the feature is not activated.\n  ```js\n    @featureAccessAndPreviewRedirection({\n      featureName: 'activityLogs',\n      redirectionIfFeatureActivated: 'project.rendering.reports.activity.index'\n    })\n    export default class PreviewRoute extends Route(\n  }\n  ```\n  @param {{\n    featureName: string;\n    redirectionIfFeatureActivated?: string;\n    redirectionIfFeatureNotActivated?: string;\n  }} options\n  @function\n*/\nexport default function featureAccessAndPreviewRedirection({\n  featureName,\n  redirectionIfFeatureActivated,\n  redirectionIfFeatureNotActivated,\n}) {\n  /**\n   * @param {unknown} target\n   * @returns {class extends Route}\n   */\n  return function (target) {\n    assert(\n      'The @featureAccessAndPreviewRedirection can only be used on Routes',\n      target.prototype instanceof Route,\n    );\n    assert(\n      'The @featureAccessAndPreviewRedirection featureName must exists and be a string',\n      featureName ? typeof featureName === 'string' : false,\n    );\n    assert(\n      'The @featureAccessAndPreviewRedirection should have a redirectionIfFeatureActivated or a redirectionIfFeatureNotActivated argument',\n      redirectionIfFeatureActivated || redirectionIfFeatureNotActivated,\n    );\n\n    return class extends target {\n      @service abilities;\n      @service router;\n      /** @type {import('client/features/team/services/feature').default} */\n      @service('feature/team') teamFeatureService;\n\n      beforeModel(...args) {\n        const collaborationFeatures = [\n          EnvironmentsFeaturesEnum.Collaboration,\n          EnvironmentsFeaturesEnum.Inbox,\n        ];\n\n        if (collaborationFeatures.includes(featureName)) {\n          const redirected = this.teamFeatureService.ensureCollaborationFeaturesAccess(featureName);\n          if (redirected) {\n            return Promise.resolve();\n          }\n        }\n\n        if (redirectionIfFeatureNotActivated && this.abilities.can(`preview ${featureName}`)) {\n          return this.router.transitionTo(redirectionIfFeatureNotActivated);\n        }\n        if (redirectionIfFeatureActivated && this.abilities.cannot(`preview ${featureName}`)) {\n          return this.router.transitionTo(redirectionIfFeatureActivated);\n        }\n\n        return super.beforeModel(...args);\n      }\n    };\n  };\n}\n","import type ComputedProperty from '@ember/object/computed';\nimport type CollectionModel from 'client/data/models/collection';\nimport type { DisplaySettingsAttributes } from 'client/data/models/display-settings';\nimport type FieldModel from 'client/data/models/field';\nimport type FilterFragment from 'client/data/models/fragment-filter';\nimport type S3VersionsFragment from 'client/data/models/s3-versions';\n\nimport { assert } from '@ember/debug';\nimport { computed } from '@ember/object';\nimport { alias, bool, equal } from '@ember/object/computed';\nimport Model, { attr } from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { fragment } from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport { WidgetDisplayTypeEnum, WidgetEditTypeEnum } from 'client/utils/widgets';\n\ntype Key = Record<'id' | '_id', string | number> | string;\nexport type Counts = { countPrevious?: number; countCurrent?: number };\nexport type KeyValue<KeyType extends Key = string> = { key: KeyType; value: number };\nexport type LineValues<KeyType extends Key = string> = {\n  label: string;\n  values: KeyValue<KeyType>;\n}[] & { opts: unknown };\nexport type LineValuesAndLabels = {\n  labels: string[];\n  values: { key: string; values: unknown[] }[];\n} & { opts: unknown };\nexport type Stat = {\n  value: null | number | Counts | KeyValue[] | LineValues | LineValuesAndLabels;\n};\n\nexport interface ChartInterface {\n  aggregateField: FieldModel;\n  registryNameBase: string;\n  sourceCollection: CollectionModel;\n  groupByField: FieldModel;\n  relationshipField: FieldModel;\n  labelField: FieldModel;\n  numeratorChart: ChartInterface;\n  denominatorChart: ChartInterface;\n  extraFieldsForJSON?: { id: string; displaySettings: DisplaySettingsAttributes | null };\n  _getFieldName(property: string): string;\n  _getRelationshipId(property: string): string;\n  hasDirtyAttributes: boolean | ComputedProperty<boolean, boolean>;\n  hasDirtyRelationships?: boolean;\n}\n\ninterface ChartDecoratedForValidator extends ChartInterface {\n  aggregator: 'Count' | 'Sum';\n  isFilterValid: boolean;\n  sourceCollection: CollectionModel;\n  aggregateField: FieldModel;\n  labelField: FieldModel;\n  groupByField: FieldModel;\n  relationshipField: FieldModel;\n  limit: number;\n  objective: number;\n  timeRange: string;\n  numeratorChart: ChartInterface;\n  denominatorChart: ChartInterface;\n}\n\nconst isAggregateValid = (chart: ChartDecoratedForValidator) =>\n  chart.aggregator === 'Count' || (chart.aggregator && !!chart.aggregateField);\nconst baseValidator = (chart: ChartDecoratedForValidator) =>\n  chart.isFilterValid && isAggregateValid(chart) && !!chart.sourceCollection;\nconst validators: Record<ChartTypeEnum, (chart: ChartDecoratedForValidator) => boolean> = {\n  Leaderboard: (chart: ChartDecoratedForValidator) =>\n    baseValidator(chart) && !!chart.labelField && !!chart.relationshipField && !!chart.limit,\n  Line: (chart: ChartDecoratedForValidator) =>\n    baseValidator(chart) && !!chart.groupByField && !!chart.timeRange,\n  Objective: (chart: ChartDecoratedForValidator) =>\n    baseValidator(chart) && (!!chart.objective || chart.objective === 0),\n  Percentage: (chart: ChartDecoratedForValidator) =>\n    !!chart.numeratorChart && !!chart.denominatorChart,\n  Pie: (chart: ChartDecoratedForValidator) => baseValidator(chart) && !!chart.groupByField,\n  Smart: () => true,\n  Value: baseValidator,\n};\nexport enum ChartTypeEnum {\n  Leaderboard = 'Leaderboard',\n  Line = 'Line',\n  Objective = 'Objective',\n  Percentage = 'Percentage',\n  Pie = 'Pie',\n  Smart = 'Smart',\n  Value = 'Value',\n}\n\n/**\n  Class decorator which add chart properties.\n  ```js\n  @modelChart\n  export default class Chart extends AbstractModel {\n  }\n  ```\n  @function\n*/\nexport default function modelChart() {\n  // eslint-disable-next-line  @typescript-eslint/no-explicit-any, sonarjs/no-useless-intersection\n  return <T extends { new (...args: any[]): {} & ChartInterface }>(target: T) => {\n    assert(\n      'The @modelChart can be used only on Charts',\n      target.prototype instanceof Model || target.prototype instanceof Fragment,\n    );\n    class ChartExtended extends target {\n      @attr('string') declare name: string;\n      @attr('string') declare description: string;\n\n      @attr('string') declare type: ChartTypeEnum;\n      @attr('string') declare query: string;\n      @attr('string') declare connectionName: string;\n      @attr('string') declare aggregator: 'Count' | 'Sum';\n      @attr('string') declare timeRange: string;\n      @attr('string') declare apiRoute: string;\n      @attr('number') declare objective: number;\n      @attr('number') declare limit: number;\n\n      @attr('string') declare templateUrl: string;\n      @attr('string') declare componentUrl: string;\n      @attr('string') declare styleUrl: string;\n      @attr('string') declare templateCode: string;\n      @attr('string') declare componentCode: string;\n      @attr('string') declare styleCode: string;\n      @attr('boolean', { defaultValue: true }) allowJavascript: boolean;\n\n      @fragment('s3-versions', { defaultValue: {} }) declare s3Versions: S3VersionsFragment;\n\n      @fragment('fragment-filter') declare filter: FilterFragment;\n\n      @alias('componentCode') declare component: string;\n      @alias('templateCode') declare handlebars: string;\n      @alias('styleCode') declare style: string;\n\n      @equal('type', 'Leaderboard') declare isLeaderboard: boolean;\n      @equal('type', 'Line') declare isLine: boolean;\n      @equal('type', 'Objective') declare isObjective: boolean;\n      @equal('type', 'Percentage') declare isPercentage: boolean;\n      @equal('type', 'Pie') declare isPie: boolean;\n      @equal('type', 'Smart') declare isSmart: boolean;\n      @equal('type', 'Value') declare isValue: boolean;\n\n      @bool('apiRoute') declare isApi: boolean;\n      @bool('query') declare isQuery: boolean;\n\n      @alias('sourceCollection') declare filteredCollection: CollectionModel;\n      @alias('sourceCollection') declare collection: CollectionModel;\n\n      @tracked errored: boolean | null = null;\n      @tracked recordId = null;\n      @tracked registryName = this.registryNameBase;\n      @tracked stat: Stat = null;\n\n      @tracked statErrors = null;\n      readonly isReact = false;\n\n      @computed('aggregateField.widgetDisplay.name')\n      get hasWidgetDisplayPrice() {\n        return this.aggregateField?.widgetDisplay?.name === WidgetDisplayTypeEnum.Price;\n      }\n\n      @computed('aggregateField.widgetEdit.name')\n      get hasWidgetEditPrice() {\n        return this.aggregateField?.widgetEdit?.name === WidgetEditTypeEnum.PriceEditor;\n      }\n\n      @computed('hasWidgetDisplayPrice', 'hasWidgetEditPrice')\n      get hasWidgetPrice() {\n        return this.hasWidgetDisplayPrice || this.hasWidgetEditPrice;\n      }\n\n      @computed('apiRoute', 'query', 'sourceCollection.name')\n      get route() {\n        if (this.apiRoute) {\n          return this.apiRoute;\n        }\n        if (this.query) {\n          return '/forest/stats';\n        }\n        return `/forest/stats/${this.sourceCollection?.name}`;\n      }\n\n      @computed('isApi', 'isSmart', 'isPercentage')\n      get needsRequest() {\n        // NOTICE: Do not trigger an HTTP request if it's a manual Percentage chart.\n        return (!this.isPercentage && !this.isSmart) || this.isApi;\n      }\n\n      @computed('filter.isValidData')\n      get isFilterValid() {\n        return !this.filter || this.filter.isValidData;\n      }\n\n      @computed(\n        'aggregateField',\n        'aggregateFieldName',\n        'aggregator',\n        'apiRoute',\n        'denominatorChart',\n        'denominatorChartId',\n        'groupByField',\n        'groupByFieldName',\n        'isApi',\n        'isFilterValid',\n        'isQuery',\n        'isSmart',\n        'labelField',\n        'labelFieldName',\n        'limit',\n        'name',\n        'numeratorChart',\n        'numeratorChartId',\n        'objective',\n        'relationshipField',\n        'relationshipFieldName',\n        'sourceCollection',\n        'sourceCollectionId',\n        'timeRange',\n        'type',\n      )\n      get isValid() {\n        if (!this.name) {\n          return false;\n        }\n        if (this.isSmart || this.isQuery) {\n          return true;\n        }\n        if (this.isApi) {\n          return this.apiRoute?.startsWith('/');\n        }\n\n        return !!this.type && !!validators[this.type]?.(this);\n      }\n\n      get canFetchData() {\n        return !this.hasDirtyAttributes && !this.hasDirtyRelationships && this.isValid;\n      }\n\n      clearOnTypeChange() {\n        // NOTICE: Simple attributes.\n        this.aggregator = null;\n        this.timeRange = null;\n        this.objective = null;\n        this.limit = null;\n\n        // NOTICE: Relationship attributes.\n        this.sourceCollection = null;\n        this.aggregateField = null;\n        this.groupByField = null;\n        this.relationshipField = null;\n        this.labelField = null;\n        this.numeratorChart = null;\n        this.denominatorChart = null;\n\n        // NOTICE: Filter conditions for basic charts.\n        this.filter = null;\n\n        // NOTICE: API and Live Query chart attributes.\n        this.apiRoute = null;\n        this.query = null;\n        this.connectionName = null;\n\n        // NOTICE: Data and validation.\n        this.stat = null;\n        this.errored = null;\n        this.statErrors = null;\n\n        // Smart chart\n        this.s3Versions = null;\n        this.templateCode = null;\n        this.componentCode = null;\n        this.styleCode = null;\n      }\n\n      toJSONTypeSpecific(forAgentApi: boolean) {\n        const dataSourceCollectionKey = forAgentApi ? 'sourceCollectionName' : 'sourceCollectionId';\n        const sourceCollectionKey = forAgentApi ? 'name' : 'id';\n\n        switch (this.type) {\n          case 'Leaderboard':\n            return {\n              [dataSourceCollectionKey]: this.sourceCollection?.[sourceCollectionKey] || null,\n              labelFieldName: this._getFieldName('labelField'),\n              relationshipFieldName: this._getFieldName('relationshipField'),\n              aggregateFieldName: this._getFieldName('aggregateField'),\n              aggregator: this.aggregator,\n              limit: this.limit,\n            };\n          case 'Line':\n            return {\n              [dataSourceCollectionKey]: this.sourceCollection?.[sourceCollectionKey] || null,\n              groupByFieldName: this._getFieldName('groupByField'),\n              aggregateFieldName: this._getFieldName('aggregateField'),\n              aggregator: this.aggregator,\n              timeRange: this.timeRange,\n              filter: this.filter ? this.filter.toJSON({ forAgentApi }) : null,\n            };\n          case 'Objective':\n            return {\n              [dataSourceCollectionKey]: this.sourceCollection?.[sourceCollectionKey] || null,\n              aggregateFieldName: this._getFieldName('aggregateField'),\n              aggregator: this.aggregator,\n              objective: this.objective,\n              filter: this.filter ? this.filter.toJSON({ forAgentApi }) : null,\n            };\n          case 'Percentage':\n            return {\n              numeratorChartId: this._getRelationshipId('numeratorChart'),\n              denominatorChartId: this._getRelationshipId('denominatorChart'),\n            };\n          case 'Pie':\n            return {\n              [dataSourceCollectionKey]: this.sourceCollection?.[sourceCollectionKey] || null,\n              aggregateFieldName: this._getFieldName('aggregateField'),\n              groupByFieldName: this._getFieldName('groupByField'),\n              aggregator: this.aggregator,\n              filter: this.filter ? this.filter.toJSON({ forAgentApi }) : null,\n            };\n          case 'Value':\n            return {\n              [dataSourceCollectionKey]: this.sourceCollection?.[sourceCollectionKey] || null,\n              aggregateFieldName: this._getFieldName('aggregateField'),\n              aggregator: this.aggregator,\n              filter: this.filter ? this.filter.toJSON({ forAgentApi }) : null,\n            };\n          case 'Smart':\n            return {\n              s3Versions: this.s3Versions.toJSON({}),\n              allowJavascript: this.allowJavascript,\n            };\n          default:\n            return {};\n        }\n      }\n\n      toJSON({ forAgentApi = false } = {}) {\n        const forestApiFields = {\n          name: this.name || null,\n          description: this.description || null,\n          ...((this.extraFieldsForJSON as {\n            id: string;\n            displaySettings: DisplaySettingsAttributes;\n          }) || {}),\n        };\n        const data = {\n          type: this.type,\n          ...(forAgentApi ? {} : forestApiFields),\n        };\n\n        if (this.apiRoute) {\n          return {\n            ...data,\n            apiRoute: this.apiRoute,\n          };\n        }\n\n        if (this.query) {\n          return {\n            ...data,\n            query: this.query,\n            connectionName: this.connectionName,\n          };\n        }\n\n        const dataWithType = {\n          ...data,\n          ...this.toJSONTypeSpecific(forAgentApi),\n        };\n        if (forAgentApi && dataWithType.groupByFieldName && this.groupByField.referenceModel) {\n          const displayField = this.groupByField?.referenceModel?.displayField?.fieldName || 'id';\n          return {\n            ...dataWithType,\n            groupByFieldName: `${dataWithType.groupByFieldName}:${displayField}`,\n          };\n        }\n\n        return dataWithType;\n      }\n    }\n    return ChartExtended;\n  };\n}\n","import type MutableArray from '@ember/array/mutable';\nimport type Store from '@ember-data/store';\nimport type Collection from 'client/data/models/collection';\nimport type Field from 'client/data/models/field';\nimport type WidgetConfiguration from 'client/data/models/widget-configuration';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type StoreService from 'client/legacy/services/store';\nimport type WidgetsManagerService from 'client/legacy/services/widgets-manager';\nimport type NestedField from 'client/utils/nested/field';\nimport type { Operator } from 'client/utils/operators';\nimport type { CollectionTypedFieldInterface, FieldTypedInterface } from 'client/utils/schema-utils';\n\nimport { isArray } from '@ember/array';\nimport EmberComponent from '@ember/component';\nimport Controller from '@ember/controller';\nimport { assert } from '@ember/debug';\nimport { dasherize } from '@ember/string';\nimport Model from '@ember-data/model';\nimport GlimmerComponent from '@glimmer/component';\nimport { singularize } from 'ember-inflector';\nimport { isObject } from 'lodash';\n\nimport config from 'client/config/environment';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport { NotImplementedError } from 'client/utils/errors';\nimport { markPropertiesAsNotDirty } from 'client/utils/model-utils';\nimport NestedCollection from 'client/utils/nested/collection';\nimport { OPERATORS_PER_TYPE } from 'client/utils/operators';\nimport SchemaUtils, { isArrayType } from 'client/utils/schema-utils';\nimport { namespace } from 'client/utils/string-utils';\nimport { isWidgetInvalid } from 'client/utils/widgets';\n\nexport type FieldType =\n  | 'Boolean'\n  | 'Date'\n  | 'Dateonly'\n  | 'Enum'\n  | 'Number'\n  | 'String'\n  | 'Time'\n  | 'Uuid'\n  | 'File'\n  | 'Json'\n  | 'Point';\n\nexport const SimpleTypes: FieldType[] = [\n  'Boolean',\n  'Date',\n  'Dateonly',\n  'Enum',\n  'Number',\n  'String',\n  'Time',\n  'Uuid',\n];\n\nexport interface NestedFieldAttributes {\n  type:\n    | FieldType\n    | [FieldType]\n    | { fields: NestedFieldAttributes[] }\n    | [{ fields: NestedFieldAttributes[] }];\n  field: string;\n  enums?: string[];\n}\n\nexport interface CollectionBaseInterface extends CollectionTypedFieldInterface {\n  name: string;\n  displayName: string;\n  fields: MutableArray<FieldBaseInterface>;\n  isEmbedded: boolean;\n}\n\nexport interface FieldBaseInterface extends FieldTypedInterface {\n  type: NestedFieldAttributes['type'];\n  enums?: string[] | null;\n  fieldName: string;\n  displayName: string;\n  collection?: CollectionBaseInterface | null;\n  relationship?: string | null;\n  reference?: string | null;\n  isIdentifier: boolean;\n  integration?: string | null;\n  isVirtual: boolean;\n  widgetDisplay?: WidgetConfiguration | null;\n  widgetEdit?: WidgetConfiguration | null;\n}\n\nexport interface FieldInterface extends FieldBaseInterface {\n  type: NestedFieldAttributes['type'];\n  enums?: string[] | null;\n  fieldName: string;\n  displayName: string;\n  collection?: NestedCollection | Collection | null;\n  relationship?: string | null;\n  reference?: string | null;\n  isIdentifier: boolean;\n  integration?: string | null;\n  isVirtual: boolean;\n  widgetDisplay?: WidgetConfiguration | null;\n  widgetEdit?: WidgetConfiguration | null;\n  areWidgetsInitialized: boolean;\n\n  store: StoreService & Store;\n  lianaFeatures: LianaFeaturesService;\n  widgetsManager: WidgetsManagerService;\n}\n\nexport interface EmbeddedType {\n  fields: NestedFieldAttributes[];\n}\n\n/**\n  Class decorator which add component properties to create belongs to recursively.\n  ```js\n  @modelField\n  export default class SomeComponentOrController extends Component {\n  }\n  ```\n  @function\n*/\nexport default function modelField(NestedFieldClass?: typeof NestedField) {\n  // eslint-disable-next-line  @typescript-eslint/no-explicit-any, sonarjs/no-useless-intersection\n  return <T extends { new (...args: any[]): {} & FieldInterface }>(target: T) => {\n    assert(\n      'The @modelField can be used only on Fields',\n      !(\n        target.prototype instanceof EmberComponent\n        || target.prototype instanceof GlimmerComponent\n        || target.prototype instanceof Controller\n      ),\n    );\n    return class extends target {\n      _nestedCollection: NestedCollection | null = null;\n\n      equal<K extends keyof this>(key: K, value: this[K]) {\n        return this[key] === value;\n      }\n\n      get isBoolean() {\n        return this.equal('type', 'Boolean');\n      }\n\n      get isDate() {\n        return this.equal('type', 'Date');\n      }\n\n      get isDateonly() {\n        return this.equal('type', 'Dateonly');\n      }\n\n      get isEnumSimple() {\n        return this.equal('type', 'Enum');\n      }\n\n      get isFile() {\n        return this.equal('type', 'File');\n      }\n\n      get isJson() {\n        return this.equal('type', 'Json');\n      }\n\n      get isNumber() {\n        return this.equal('type', 'Number');\n      }\n\n      get isPoint() {\n        return this.equal('type', 'Point');\n      }\n\n      get isString() {\n        return this.equal('type', 'String');\n      }\n\n      get isTime() {\n        return this.equal('type', 'Time');\n      }\n\n      get isUuid() {\n        return this.equal('type', 'Uuid');\n      }\n\n      get isArrayOfFiles() {\n        return this.equal('typeStringified', '[\"File\"]');\n      }\n\n      get isArrayOfEnumByType() {\n        return this.equal('typeStringified', '[\"Enum\"]');\n      }\n\n      get isArrayOfEnum() {\n        return this.isArrayOfEnumByType && this.isEnum;\n      }\n\n      get hasReference() {\n        return !!this.reference;\n      }\n\n      get typeForWidgets() {\n        return this.isRelationship ? this.relationshipType : this.typeStringified;\n      }\n\n      get isEnum() {\n        return !!this.enums?.length;\n      }\n\n      get isArray() {\n        return isArrayType(this);\n      }\n\n      get isArrayOfIntegers() {\n        return SchemaUtils.isArrayOfIntegerType(this);\n      }\n\n      get isArrayOfStrings() {\n        return SchemaUtils.isEmbeddedHasManyString(this);\n      }\n\n      get isEmbeddedDocument() {\n        return SchemaUtils.isEmbeddedBelongsTo(this);\n      }\n\n      get isEmbeddedDocumentDeep() {\n        return SchemaUtils.isEmbeddedBelongsToDeep(this);\n      }\n\n      get isHasMany() {\n        return SchemaUtils.isHasManyRelationship(this);\n      }\n\n      get isEmbeddedHasMany() {\n        return SchemaUtils.isEmbeddedHasMany(this);\n      }\n\n      get isEmbeddedHasManyDeep() {\n        return SchemaUtils.isEmbeddedHasManyDeep(this);\n      }\n\n      get isBelongsTo() {\n        return SchemaUtils.isBelongsTo(this);\n      }\n\n      get isInlineBelongsToField() {\n        return SchemaUtils.isInlineBelongsToField(this);\n      }\n\n      get isEmbeddedBelongsTo() {\n        return SchemaUtils.isEmbeddedBelongsTo(this);\n      }\n\n      get isEmbeddedBelongsToDeep() {\n        return SchemaUtils.isEmbeddedBelongsToDeep(this);\n      }\n\n      get isEmbedded() {\n        return (\n          this.isEmbeddedHasMany\n          || this.isEmbeddedHasManyDeep\n          || this.isEmbeddedBelongsTo\n          || this.isEmbeddedBelongsToDeep\n        );\n      }\n\n      get isRelationship() {\n        return this.isBelongsTo || this.isHasMany || this.isEmbedded;\n      }\n\n      get nestedOrReferencedCollection(): NestedCollection | Collection {\n        return this.nestedCollection || ((this as unknown as Field).referenceModel as Collection);\n      }\n\n      get nestedCollection() {\n        if (!this.isEmbedded) return null;\n        // To avoid doing the parsing multiple times, as the type of a field is static we can compute the nestedCollection only once.\n        if (this._nestedCollection) return this._nestedCollection;\n        // We need to cast it because getter does not give type safe guard for now\n        // See: https://github.com/microsoft/TypeScript/issues/43368\n        const type = this.type as EmbeddedType | [EmbeddedType];\n        const nestedCollectionDefinition: EmbeddedType = this.isArray\n          ? (type as [EmbeddedType])[0]\n          : (type as EmbeddedType);\n        const RealNestedFieldClass: typeof NestedField =\n          NestedFieldClass || (this.constructor as typeof NestedField);\n        const collection = new NestedCollection({\n          parentField: this as unknown as NestedField | Field,\n          fields: nestedCollectionDefinition.fields.map(\n            (field) =>\n              new RealNestedFieldClass(field, {\n                store: this.store,\n                lianaFeatures: this.lianaFeatures,\n                widgetsManager: this.widgetsManager,\n              }),\n          ),\n        });\n        collection.fields.forEach((field) => {\n          field.collection = collection;\n        });\n        this._nestedCollection = collection;\n        return collection;\n      }\n\n      get shouldDisplayAsRow() {\n        return (\n          (!this.integration && !this.isHasMany && !this.isEmbeddedHasMany)\n          || this.isEmbeddedHasManyDeep\n        );\n      }\n\n      get isRelatedData() {\n        return !this.integration && !this.shouldDisplayAsRow;\n      }\n\n      get isRelatedDataOrHasManyDeep() {\n        return !this.shouldDisplayAsRow || this.isEmbeddedHasManyDeep;\n      }\n\n      get typeStringified() {\n        const fieldType = this.type;\n        if (isArray(fieldType) || isObject(fieldType)) {\n          return JSON.stringify(fieldType);\n        }\n        return fieldType;\n      }\n\n      get attributeNameWithRelationships() {\n        const attributeName = this.fieldName;\n        if (attributeName === 'id') {\n          return this.isIdentifier\n            ? 'id'\n            : namespace(config.APP.models.nonIdentifierIdFieldAlias, '-');\n        }\n\n        if (\n          !this.collection?.isEmbedded // do not override _id field name if the collection has an id field\n          && (this.collection?.fields as FieldBaseInterface[])?.every(\n            (field) => field.fieldName !== 'id',\n          )\n          && attributeName === '_id'\n        ) {\n          return 'id';\n        }\n        return namespace(attributeName, '-');\n      }\n\n      get relationshipType() {\n        if (this.isBelongsTo) {\n          return this.isPolymorphic ? 'polymorphicBelongsTo' : 'belongsTo';\n        }\n        if (this.isHasMany) {\n          return 'hasMany';\n        }\n        if (this.isEmbeddedBelongsToDeep) {\n          return 'embeddedBelongsToDeep';\n        }\n        if (this.isEmbeddedBelongsTo) {\n          return 'embeddedBelongsTo';\n        }\n        if (this.isEmbeddedHasManyDeep) {\n          return 'embeddedHasManyDeep';\n        }\n        if (this.isEmbeddedHasMany) {\n          return 'embeddedHasMany';\n        }\n        return null;\n      }\n\n      get isFilterAvailableForTypeExcludingNested() {\n        const environment = this.collection?.rendering?.environment;\n        const canFilterArrays =\n          !!environment\n          && this.lianaFeatures.isFeatureCompatible(\n            FeaturesEnum.FilterArrayIncludeAll,\n            environment,\n          );\n        return (\n          (typeof this.type === 'string' && SimpleTypes.includes(this.type))\n          || (canFilterArrays && SchemaUtils.isPlainArray(this))\n        );\n      }\n\n      get isFilterAvailableForType() {\n        return (\n          this.isFilterAvailableForTypeExcludingNested\n          || this.isInlineBelongsToField\n          || this.isEmbeddedBelongsTo\n          || this.isBelongsTo\n        );\n      }\n\n      get isAggregatable() {\n        return this.isNumber && !this.reference && !this.isVirtual;\n      }\n\n      get isInvalidWidgetDisplay() {\n        return isWidgetInvalid(this as unknown as Field | NestedField, this.widgetDisplay);\n      }\n\n      get isInvalidWidgetEdit() {\n        return isWidgetInvalid(this as unknown as Field | NestedField, this.widgetEdit);\n      }\n\n      get embeddedCollectionName() {\n        if (SchemaUtils.isEmbeddedBelongsTo(this)) {\n          return `${this.collection?.name || ''}-${singularize(this.fieldName)}`;\n        }\n        if (SchemaUtils.isEmbeddedHasMany(this)) {\n          return dasherize(`${this.collection?.name || ''}-${this.fieldName}-hasmany`);\n        }\n        return null;\n      }\n\n      getDisplayedValue<M extends Model>(record: M) {\n        throw new NotImplementedError('getDisplayedValue');\n      }\n\n      setDisplayedValue<M extends Model>(record: M, value: unknown) {\n        record.set(this.attributeNameWithRelationships as keyof M, value);\n        return this.getDisplayedValue(record);\n      }\n\n      async ensureWidgetDefaults() {\n        if (this.areWidgetsInitialized && this.widgetDisplay && this.widgetEdit) return;\n\n        try {\n          if (\n            !this.widgetDisplay\n            || !this.widgetEdit\n            || this.isInvalidWidgetDisplay\n            || this.isInvalidWidgetEdit\n          ) {\n            this.widgetsManager.assignDefaultWidgets(this);\n            if (this instanceof Model) {\n              markPropertiesAsNotDirty(this, ['widgetDisplay', 'widgetEdit']);\n            }\n          }\n        } catch (error) {\n          console.error('Widget transition error:', error);\n        } finally {\n          // As we have read the areWidgetsInitialized property we need to update it in the next run loop\n          await waitForNextRunLoop();\n          this.areWidgetsInitialized = true;\n        }\n      }\n\n      get supportedOperators(): Operator[] {\n        if (isArray(this.type)) return OPERATORS_PER_TYPE.Array as Operator[];\n\n        return (OPERATORS_PER_TYPE[this.typeStringified] as Operator[]) || [];\n      }\n    };\n  };\n}\n","import ModelValidator from 'ember-model-validator/decorators/model-validator';\n\nexport default ModelValidator;\n","import { belongsTo } from '@ember-data/model';\n\nexport default function nestedDocument<ParentModel>(\n  modelName: string,\n  options?: Parameters<typeof belongsTo>[1] & {\n    defaultValue?: unknown;\n    type?: (data: object, owner: ParentModel) => string;\n    typeKey?: string;\n  },\n): PropertyDecorator {\n  const nestedOptions = {\n    ...(options || {}),\n    isNested: true,\n    async: false,\n  };\n\n  return belongsTo(modelName, nestedOptions as Parameters<typeof belongsTo>[1]);\n}\n","import ObjectValidator from 'ember-model-validator/decorators/object-validator';\n\nexport default ObjectValidator;\n","import { guidFor } from '@ember/object/internals';\n\n/**\n * Prevent an async method to be called twice concurrently with the same parameters.\n * It will return instead the first call if there is one.\n */\nexport const preventAsyncConcurrency = (\n  target: unknown,\n  propertyKey: string,\n  descriptor: PropertyDescriptor,\n) => {\n  const originalMethod = descriptor.value as (...args: unknown[]) => Promise<unknown>;\n\n  const pendingPromiseMap: Map<string, Promise<unknown>> = new Map();\n\n  descriptor.value = async function (...args: unknown[]) {\n    const key = args.map((argument) => guidFor(argument)).join('--');\n    if (pendingPromiseMap.has(key)) {\n      return pendingPromiseMap.get(key);\n    }\n\n    const pendingPromise = originalMethod.apply(this, args);\n    pendingPromiseMap.set(key, pendingPromise);\n\n    try {\n      return await pendingPromise;\n    } finally {\n      pendingPromiseMap.delete(key);\n    }\n  };\n};\n\nexport default preventAsyncConcurrency;\n","/* eslint-disable max-classes-per-file */\nimport type Controller from '@ember/controller';\nimport type Transition from '@ember/routing/-private/transition';\nimport type AbstractModel from 'client/data/models/abstract-model';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type { Constructor } from 'custom/utils';\n\nimport { assert } from '@ember/debug';\nimport Route from '@ember/routing/route';\nimport Component from '@glimmer/component';\nimport window from 'ember-window-mock';\nimport { isBoolean } from 'lodash';\n\nimport getRouteParams from 'client/utils/route-params';\nimport { injectServiceWithoutDecorator } from 'client/utils/service';\n\ntype RouteOrComponent = (Route | Component) & {\n  mustPreventLeaving?: (transition: Transition) => boolean;\n  shouldIgnorePreventLeavingForTransition?: (transition: Transition) => boolean;\n  onLeavingWithoutSaving?: () => void;\n  currentUser: CurrentUserService;\n  onAbortLeavingWithoutSaving?: () => void;\n  _lastWindowConfirmCall?: { time: number; value: boolean } | null;\n};\n\nfunction validateTargetAndArgument(\n  target: Constructor<Route | Component>,\n  controllerEntityToWatch?: string,\n  shouldResetEditModeOnAbort?: boolean,\n) {\n  assert(\n    'The @preventLeavingWithoutSaving can only be used on Routes or Components',\n    target.prototype instanceof Route || target.prototype instanceof Component,\n  );\n  assert(\n    'The @preventLeavingWithoutSaving \"controllerEntityToWatch\" argument should be a string',\n    controllerEntityToWatch ? typeof controllerEntityToWatch === 'string' : true,\n  );\n  assert(\n    'The @preventLeavingWithoutSaving should have a \"controllerEntityToWatch\" argument if no \"mustPreventLeaving\" function is defined in the target route',\n    (controllerEntityToWatch && !(target.prototype instanceof Component))\n      || 'mustPreventLeaving' in target.prototype,\n  );\n  assert(\n    'The @preventLeavingWithoutSaving shouldResetEditModeOnAbort should be a boolean ',\n    isBoolean(shouldResetEditModeOnAbort),\n  );\n}\n\nfunction mustPreventLeaving(\n  self: RouteOrComponent,\n  controllerEntityToWatch?: string,\n  transition?: Transition | null,\n) {\n  if (\n    // eslint-disable-next-line @typescript-eslint/no-misused-promises\n    transition\n    && self.shouldIgnorePreventLeavingForTransition\n    && self.shouldIgnorePreventLeavingForTransition(transition)\n  ) {\n    return false;\n  }\n\n  if (self.mustPreventLeaving || self instanceof Component) {\n    return self.mustPreventLeaving(transition);\n  }\n\n  const model = self.controller[controllerEntityToWatch] as AbstractModel;\n  return model && (model.hasDirtyAttributes || model.hasDirtyRelationships);\n}\n\nfunction onLeavingWithoutSaving(self: RouteOrComponent, controllerEntityToWatch: string) {\n  if (self.onLeavingWithoutSaving) {\n    self.onLeavingWithoutSaving();\n  } else if (controllerEntityToWatch && self instanceof Route) {\n    const model = self.controller[controllerEntityToWatch] as AbstractModel;\n    if (model.isNew) {\n      model.unloadRecord();\n    } else {\n      model.rollbackAttributes();\n      if (model.rollbackRelationships) {\n        model.rollbackRelationships();\n      }\n    }\n  }\n}\n\nfunction onAbortLeavingWithoutSaving(self: RouteOrComponent, shouldResetEditModeOnAbort: boolean) {\n  if (shouldResetEditModeOnAbort) {\n    self.currentUser.editMode = true;\n  }\n  self.onAbortLeavingWithoutSaving?.();\n}\n\nfunction isSameRoute(transition: Transition) {\n  return (\n    transition.to.name === transition.from?.name\n    && JSON.stringify(getRouteParams(transition.to))\n      === JSON.stringify(getRouteParams(transition.from))\n  );\n}\n\nfunction onWillTransition(\n  self: RouteOrComponent,\n  transition: Transition,\n  controllerEntityToWatch: string,\n  shouldResetEditModeOnAbort?: boolean,\n) {\n  const sameRoute = isSameRoute(transition);\n  if (!sameRoute && mustPreventLeaving(self, controllerEntityToWatch, transition)) {\n    const isDuplicateTransition = self._lastWindowConfirmCall\n      ? Date.now() - self._lastWindowConfirmCall.time < 300\n      : false;\n    const sure = isDuplicateTransition\n      ? self._lastWindowConfirmCall.value\n      : window.confirm('Leaving this page will discard any unsaved changes.');\n    self._lastWindowConfirmCall = { time: Date.now(), value: sure };\n    if (!sure) {\n      void transition.abort();\n      onAbortLeavingWithoutSaving(self, shouldResetEditModeOnAbort);\n      return false;\n    }\n    onLeavingWithoutSaving(self, controllerEntityToWatch);\n  }\n  return !sameRoute;\n}\n\nfunction createComponentDecorator(\n  target: Constructor<Component>,\n  shouldResetEditModeOnAbort?: boolean,\n) {\n  return class extends target {\n    _lastWindowConfirmCall: { time: number; value: boolean } | null = null;\n    _onWillTransitionBinded = this._onWillTransition.bind(this);\n    _onUnloadEventBinded = this._onUnloadEvent.bind(this);\n\n    constructor(...args: unknown[]) {\n      super(...args);\n\n      window.addEventListener('beforeunload', this._onUnloadEventBinded);\n\n      this.router.on('routeWillChange', this._onWillTransitionBinded);\n    }\n\n    get router() {\n      return injectServiceWithoutDecorator(this, 'router');\n    }\n\n    get currentUser() {\n      return injectServiceWithoutDecorator(this, 'current-user');\n    }\n\n    willDestroy() {\n      super.willDestroy();\n      window.removeEventListener('beforeunload', this._onUnloadEventBinded);\n      this.router.off('routeWillChange', this._onWillTransitionBinded);\n    }\n\n    _onWillTransition(transition: Transition) {\n      return onWillTransition(this, transition, null, shouldResetEditModeOnAbort);\n    }\n\n    _onUnloadEvent(event: BeforeUnloadEvent) {\n      if (mustPreventLeaving(this)) {\n        event.preventDefault();\n        event.returnValue = '';\n      }\n    }\n  };\n}\n\n/**\n  Class decorator which prevent to leave a page if some data weren't saved.\n  It expects to receive as an argument the controller entity to be watched ('user', 'role', etc.).\n  ```js\n    @preventLeavingWithoutSaving({ controllerEntityToWatch: 'billing' })\n    export default class BillingEditRoute extends Route {\n  }\n  ```\n  For special cases or when used in a Component, the controller entity to watch can be not given if a\n  mustPreventLeaving function is written on the target.\n\n  It is also possible to override the default behavior when leaving without saving by writing a\n  onLeavingWithoutSaving function on the target.\n\n  It is also possible to alterate the behavior of mustPreventLeaving by writing a\n  shouldIgnorePreventLeavingForTransition function on the target.\n  @function\n*/\nexport default function preventLeavingWithoutSaving<\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-empty-object-type\n  T extends { new (...args: any[]): {} },\n>(controllerEntityToWatch?: string, { shouldResetEditModeOnAbort = false } = {}) {\n  return function (target: T): T {\n    validateTargetAndArgument(\n      target as unknown as Constructor<Component>,\n      controllerEntityToWatch,\n      shouldResetEditModeOnAbort,\n    );\n\n    if (target.prototype instanceof Component) {\n      return createComponentDecorator(\n        target as unknown as Constructor<Component>,\n        shouldResetEditModeOnAbort,\n      ) as unknown as T;\n    }\n\n    return class extends (target as unknown as Constructor<Route>) {\n      get currentUser(): CurrentUserService {\n        return injectServiceWithoutDecorator(this, 'current-user');\n      }\n\n      get router() {\n        return injectServiceWithoutDecorator(this, 'router');\n      }\n\n      _onUnloadEvent: (event: BeforeUnloadEvent) => void;\n      _onRouteWillChange: (transition: Transition) => void;\n\n      setupController(...args: [Controller, unknown, Transition]) {\n        super.setupController(...args);\n\n        this.destroyListeners();\n        this._onRouteWillChange = (transition) => {\n          return onWillTransition(\n            this,\n            transition,\n            controllerEntityToWatch,\n            shouldResetEditModeOnAbort,\n          );\n        };\n        this._onUnloadEvent = (event) => {\n          if (mustPreventLeaving(this, controllerEntityToWatch)) {\n            event.preventDefault();\n            event.returnValue = '';\n          }\n        };\n        window.addEventListener('beforeunload', this._onUnloadEvent);\n        this.router.on('routeWillChange', this._onRouteWillChange);\n      }\n\n      willDestroy() {\n        super.willDestroy();\n        this.destroyListeners();\n      }\n\n      deactivate() {\n        this.destroyListeners();\n      }\n\n      destroyListeners() {\n        if (!this._onUnloadEvent || !this._onRouteWillChange) {\n          return;\n        }\n\n        window.removeEventListener('beforeunload', this._onUnloadEvent);\n        this.router.off('routeWillChange', this._onRouteWillChange);\n\n        this._onUnloadEvent = null;\n        this._onRouteWillChange = null;\n      }\n    } as unknown as T;\n  };\n}\n","const navigateFromViewEditChild = (transition) =>\n  transition.from\n  && transition.from.name\n  && transition.from.name.includes('project.rendering.data.collection.list.view-edit')\n  && transition.from.attributes\n  && transition.from.attributes.record\n  && transition.from.attributes.collection;\n\nconst navigateToViewEdit = (transition, model) => {\n  const PATHS_RECORD_PAGE = [\n    'project.rendering.data.collection.list.view-edit.details',\n    'project.rendering.data.collection.list.view-edit.summary.index',\n  ];\n\n  return (\n    transition.to\n    && PATHS_RECORD_PAGE.includes(transition.to.name)\n    && model.collection\n    && model.record\n  );\n};\n\nconst navigateWithSameRecordContext = (transition, recordKey, model) =>\n  transition.from.attributes[recordKey]\n  && transition.from.attributes[recordKey].id === model.record.id;\n\nconst navigateWithSameCollectionAndRecordContext = (transition, model) =>\n  (transition.from.attributes.collection.id === model.collection.id\n    || transition.from.attributes.collection.id === model.collection.shareableId)\n  && (navigateWithSameRecordContext(transition, 'record', model)\n    || navigateWithSameRecordContext(transition, 'parentRecord', model));\n\nexport default function resetRecordReadMode(Class) {\n  return class RecordReadModeClass extends Class {\n    afterModel(model, transition) {\n      super.afterModel(model, transition);\n\n      const navigateBackToRecordPage =\n        transition\n        && navigateFromViewEditChild(transition)\n        && navigateToViewEdit(transition, model)\n        && navigateWithSameCollectionAndRecordContext(transition, model);\n\n      if (!navigateBackToRecordPage) {\n        this.controllerFor(this.routeName).set('readMode', true);\n      }\n    }\n  };\n}\n","import type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\n\n// eslint-disable-next-line ember/no-classic-components\nimport EmberComponent from '@ember/component';\nimport Controller from '@ember/controller';\nimport { assert } from '@ember/debug';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport GlimmerComponent from '@glimmer/component';\n\nimport {\n  SideMenuItemsEnum,\n  lastSideMenuWidth as getLastSideMenuWidthInStorage,\n  setLastSideMenuWidth as setLastSideMenuWidthInStorage,\n} from 'client/utils/last-side-menu-width';\n\n/**\n  Class decorator which add component properties to handle side menu resizing.\n  ```js\n  @resizableSideMenu(SideMenuItemsEnum.Collection)\n  export default class SomeComponentOrController extends Component {\n  }\n  ```\n  @function\n*/\nexport default function resizableSideMenu(sideMenuType: SideMenuItemsEnum) {\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-empty-object-type\n  return <T extends { new (...args: any[]): {} }>(target: T) => {\n    assert(\n      'The @resizableSideMenu can be used only on Components or Controllers',\n      target.prototype instanceof EmberComponent\n        || target.prototype instanceof GlimmerComponent\n        || target.prototype instanceof Controller,\n    );\n    assert(\"The 'sideMenuType' parameter is required\", !!sideMenuType);\n    assert(\n      `The 'sideMenuType' parameter should be one of ${Object.values(SideMenuItemsEnum).join(',')}`,\n      Object.values(SideMenuItemsEnum).includes(sideMenuType),\n    );\n\n    class ResizableSideMenu extends target {\n      @service('local-storage') localStorage: LocalStorageService;\n      @service('liana-session') lianaSession: LianaSessionService;\n\n      get projectName() {\n        return this.lianaSession.currentProject.name;\n      }\n\n      get renderingId() {\n        return this.lianaSession.currentRenderingId;\n      }\n\n      get lastSideMenuWidth() {\n        return getLastSideMenuWidthInStorage(\n          { localStorage: this.localStorage },\n          this.projectName,\n          this.renderingId,\n          sideMenuType,\n        );\n      }\n\n      @action\n      handleSetSideMenuWidthInStorage(width: number) {\n        setLastSideMenuWidthInStorage(\n          { localStorage: this.localStorage },\n          this.projectName,\n          this.renderingId,\n          sideMenuType,\n          width,\n        );\n      }\n    }\n    return ResizableSideMenu;\n  };\n}\n","/* eslint-disable max-classes-per-file */\nimport GlimmerComponent from '@glimmer/component';\n\nimport config from 'client/config/environment';\nimport { validatePropTypes } from 'client/decorators/argument';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nfunction validateGlimmer(target) {\n  return class ClassWithValidation extends target {\n    constructor(owner, args) {\n      ClassWithValidation._validateArguments(args);\n      ClassWithValidation._defineDefaultValue(args);\n      super(owner, args);\n    }\n\n    static _defineDefaultValue(args) {\n      if (target.defaultProps) {\n        Object.keys(target.defaultProps).forEach((defaultPropertyKey) => {\n          if (!(defaultPropertyKey in args)) {\n            // FIXME: this doesn't work with Glimmer component\n            // args[defaultPropertyKey] = target.defaultProps[defaultPropertyKey];\n          }\n        });\n      }\n    }\n\n    static _validateArguments(args) {\n      if (ClassWithValidation._argumentsToValidate) {\n        const objectToValidate = { args };\n        Object.entries(ClassWithValidation._argumentsToValidate).forEach(\n          ([argumentName, validation]) => {\n            validatePropTypes(objectToValidate, argumentName, validation, target.name);\n          },\n        );\n      } else if (\n        config.environment !== 'production'\n        && !config.disableArgumentValidation\n        && ClassWithValidation.propTypes\n      ) {\n        PropTypes.checkPropTypes(ClassWithValidation.propTypes, args, 'prop', target.name);\n      }\n    }\n  };\n}\n\nfunction validateEmber(target) {\n  if (!target.propTypes) {\n    return target;\n  }\n  return class ClassWithValidation extends target {\n    init(properties) {\n      super.init(properties);\n      if (target.defaultProps) {\n        Object.keys(target.defaultProps).forEach((defaultPropertyKey) => {\n          if (this[defaultPropertyKey] === undefined) {\n            this[defaultPropertyKey] = target.defaultProps[defaultPropertyKey];\n          }\n        });\n      }\n    }\n\n    didReceiveAttrs() {\n      super.didReceiveAttrs();\n\n      if (config.environment === 'production' || config.disableArgumentValidation) {\n        return;\n      }\n\n      const attributes = {};\n      Object.entries(this.attrs).forEach(([key, attribute]) => {\n        attributes[key] =\n          attribute?.constructor?.name === 'MutableCell' ? attribute.value : attribute;\n      });\n      PropTypes.checkPropTypes(\n        ClassWithValidation.propTypes,\n        attributes,\n        'prop',\n        this._debugContainerKey,\n      );\n    }\n  };\n}\n\n/**\n  ```js\n  @validateArguments\n  export default class DemoComponent extends Component {}\n\n  DemoComponent.propTypes = {}\n  ```\n*/\nexport default function validateArguments(target) {\n  const isGlimmer = target === GlimmerComponent || target.prototype instanceof GlimmerComponent;\n  return isGlimmer ? validateGlimmer(target) : validateEmber(target);\n}\n","import type ActionFeatureState from 'client/features/action/state';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class ActionApprovalConfirmationModalComponent extends Component {\n  @service('feature/action/state') actionFeatureState: ActionFeatureState;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.actionFeatureState.shouldDisplayRequestApprovalModal}}\\n  <Collaboration::ApprovalConfirmationModal\\n    @mustSkipConfirmation={{this.actionFeatureState.mustSkipConfirmation}}\\n    @onMustSkipConfirmationChange={{fn (mut this.actionFeatureState.mustSkipConfirmation)}}\\n    @onClose={{this.actionFeatureService.closeRequestApprovalModal}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/features/action/components/approval-confirmation-modal/template.hbs' });\n","import type ActionFeatureService from 'client/features/action/services/feature';\nimport type ActionFeatureState from 'client/features/action/state';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class ActionCollapsibleSidePanelComponent extends Component {\n  @service('feature/action') actionFeatureService: ActionFeatureService;\n  @service('feature/action/state') actionFeatureState: ActionFeatureState;\n\n  get recordsToApplyOn() {\n    return this.actionFeatureState.recordsToApplyOn;\n  }\n\n  get selectedRecordsOptions() {\n    return this.actionFeatureState.selectedRecordsOptions;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.actionFeatureState.shouldDisplaySmartActionPanel}}\\n  <Shared::CollapsibleSidePanel\\n    @onClose={{this.actionFeatureService.closeActionPanelOrGoBackToForm}}\\n    @openOnUpdate={{this.actionFeatureState.smartAction}}\\n    data-test-smart-action-form\\n  >\\n    <:header>\\n      <Feature::Action::Panel::Header\\n        @action={{this.actionFeatureState.smartAction}}\\n        @records={{this.recordsToApplyOn}}\\n        @selectedRecordsOptions={{this.selectedRecordsOptions}}\\n        data-test-smart-action-form-header\\n      />\\n    </:header>\\n    <:header-bottom>\\n      {{! template-lint-disable no-triple-curlies }}\\n      {{{this.actionFeatureState.smartAction.description}}}\\n      {{! template-lint-enable no-triple-curlies }}\\n    </:header-bottom>\\n    <:body>\\n      <Feature::Action::Panel\\n        @action={{this.actionFeatureState.smartAction}}\\n        @recordsToApplyOn={{this.recordsToApplyOn}}\\n        @selectedRecordsOptions={{this.selectedRecordsOptions}}\\n        @closeAction={{this.actionFeatureService.closeActionPanelOrGoBackToForm}}\\n      />\\n    </:body>\\n  </Shared::CollapsibleSidePanel>\\n{{/if}}\\n', { moduleName: 'client/features/action/components/collapsible-side-panel/template.hbs' });\n","import type CustomActionModel from 'client/data/models/custom-action';\nimport type ActionFeatureService from 'client/features/action/services/feature';\nimport type ActionFeatureState from 'client/features/action/state';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface PanelArgs {\n  action: CustomActionModel;\n  recordsToApplyOn: ClientRecordModel[];\n  closeAction: () => unknown | Promise<unknown>;\n  onExecute?: () => unknown | Promise<unknown>;\n  showConfirmationStep: boolean;\n}\n\nexport default class ActionPanelComponent extends Component<PanelArgs> {\n  @service lianaSession: LianaSession;\n  @service lianaFeatures: LianaFeaturesService;\n  @service('feature/action') actionFeatureService: ActionFeatureService;\n  @service('feature/action/state') actionFeatureState: ActionFeatureState;\n\n  @action\n  async handleSave() {\n    if (this.args.onExecute) {\n      await this.args.onExecute();\n      return;\n    }\n\n    if (this.args.action.isApprovalRequired) {\n      this.actionFeatureService.addCurrentApprovalComment();\n    }\n\n    await this.actionFeatureService.callSmartAction();\n  }\n\n  @action\n  setFormLoadingState(formFieldName: string, loadingState?: boolean) {\n    // occurs for instance when uploading a big file.\n    // we disable the submit button during this time\n    if (loadingState) {\n      this.actionFeatureState.formInputsLoading.pushObject(formFieldName);\n    } else {\n      this.actionFeatureState.formInputsLoading.removeObject(formFieldName);\n    }\n  }\n\n  get isInitialLoading() {\n    return this.actionFeatureState.isLoading;\n  }\n}\n","import type ActionFeatureService from 'client/features/action/services/feature';\nimport type ActionFeatureState from 'client/features/action/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface FormButtonsArgs {\n  onExecute: () => void;\n  onClose: () => void | Promise<void>;\n  disableButtons?: boolean;\n  disableExecute?: boolean;\n  isLoading?: boolean;\n}\n\n@validateArguments\nexport default class ActionPanelFooterComponent extends Component<FormButtonsArgs> {\n  @service('feature/action') actionFeatureService: ActionFeatureService;\n  @service('feature/action/state') actionFeatureState: ActionFeatureState;\n\n  static propTypes = {\n    onExecute: PropTypes.func.isRequired,\n    disableButtons: PropTypes.bool,\n    disableExecute: PropTypes.bool,\n    isLoading: PropTypes.bool,\n  };\n\n  @action\n  async closeOrBack() {\n    if (this.isShowingErrorResponseAfterActionWithForm) {\n      this.actionFeatureState.shouldDisplaySmartActionResponse = false;\n      this.actionFeatureState.shouldDisplaySmartActionForm = true;\n    } else {\n      await this.args.onClose();\n    }\n  }\n\n  get isShowingErrorResponseAfterActionWithForm() {\n    return (\n      this.smartAction.hasDisplayedFieldsOrFormElements\n      && this.actionFeatureState.htmlResponse\n      && this.actionFeatureState.isErrorResponse\n    );\n  }\n\n  get closeButtonText() {\n    return this.isShowingErrorResponseAfterActionWithForm ? 'Back to action form' : 'Close';\n  }\n\n  get smartAction() {\n    return this.actionFeatureService.actionFeatureState.smartAction;\n  }\n\n  get currentPageNumber() {\n    return this.actionFeatureService.currentPageIndex + 1;\n  }\n\n  get pageNumber() {\n    return this.smartAction?.formElements.length;\n  }\n\n  get isPreviousButtonDisabled() {\n    return this.args.disableButtons || this.currentPageNumber <= 1;\n  }\n\n  get isExecuteButtonDisabled() {\n    return this.args.disableButtons || this.args.disableExecute;\n  }\n\n  get previousButtonLabel() {\n    return this.actionFeatureService.actionFeatureState.previousButtonLabel;\n  }\n\n  get isNextButtonDisplayed() {\n    return this.currentPageNumber < this.pageNumber;\n  }\n\n  get nextButtonLabel() {\n    return this.actionFeatureService.actionFeatureState.nextButtonLabel;\n  }\n\n  get executeButtonType() {\n    return this.smartAction?.buttonTypeOrDefault;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-action-panel-footer\\\" data-test-feature-action-panel-footer ...attributes>\\n  {{#if this.actionFeatureState.shouldDisplaySmartActionResponse}}\\n    <div class=\\\"c-feature-action-panel-footer__close-button\\\">\\n      <Shared::Button\\n        @type=\\\"ghost\\\"\\n        @text={{this.closeButtonText}}\\n        @onClick={{this.closeOrBack}}\\n        data-test-action-panel-footer-close\\n      />\\n    </div>\\n  {{else}}\\n    {{#if this.actionFeatureService.isMultiPages}}\\n      <div class=\\\"c-feature-action-panel-footer__step-number\\\">\\n        Step\\n        {{this.currentPageNumber}}\\n        of\\n        {{this.pageNumber}}\\n      </div>\\n\\n      <div class=\\\"c-feature-action-panel-footer__buttons\\\">\\n        <Shared::Button\\n          @type=\\\"ghost\\\"\\n          @text={{this.previousButtonLabel}}\\n          @onClick={{this.actionFeatureService.goToPreviousPage}}\\n          disabled={{this.isPreviousButtonDisabled}}\\n          data-test-action-form-previous-page\\n        />\\n\\n        {{#if this.isNextButtonDisplayed}}\\n          <Shared::Button\\n            @type=\\\"primary\\\"\\n            @text={{this.nextButtonLabel}}\\n            @onClick={{this.actionFeatureService.goToNextPage}}\\n            disabled={{@disableButtons}}\\n            @iconName=\\\"arrow_forward\\\"\\n            @isIconAfterText={{true}}\\n            data-test-action-form-next-page\\n          />\\n\\n        {{else}}\\n          <Shared::Button\\n            @type={{this.executeButtonType}}\\n            @text={{this.actionFeatureService.executeButtonText}}\\n            @onClick={{@onExecute}}\\n            @isLoading={{this.isLoading}}\\n            disabled={{this.isExecuteButtonDisabled}}\\n            data-test-action-form-execute\\n          />\\n        {{/if}}\\n      </div>\\n    {{else}}\\n      <Shared::Button\\n        @type={{this.executeButtonType}}\\n        @text={{this.actionFeatureService.executeButtonText}}\\n        @onClick={{@onExecute}}\\n        @isLoading={{@isLoading}}\\n        disabled={{this.isExecuteButtonDisabled}}\\n        data-test-action-form-execute\\n      />\\n    {{/if}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/action/components/panel/footer/template.hbs' });\n","import type CustomActionModel from 'client/data/models/custom-action';\nimport type FieldModel from 'client/data/models/field';\nimport type ActionFeatureService from 'client/features/action/services/feature';\nimport type ActionFeatureState from 'client/features/action/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\ninterface ActionFormArgs {\n  smartAction: CustomActionModel;\n  isChangeHookLoading: boolean;\n  setFormLoadingState: (formFieldName: string, loadingState?: boolean) => void;\n}\nexport default class ActionPanelFormComponent extends Component<ActionFormArgs> {\n  @service('feature/action') actionFeatureService: ActionFeatureService;\n  @service('feature/action/state') actionFeatureState: ActionFeatureState;\n\n  @action\n  async handleSearchQuery(searchField?: FieldModel, searchValue?: string) {\n    await this.actionFeatureService.handleSearchHook(searchField, searchValue);\n  }\n\n  @action\n  async handleFormValueChange(field: FieldModel, newValue: unknown) {\n    field.customActionValue =\n      field.isBelongsTo && newValue && newValue instanceof Object && 'id' in newValue\n        ? newValue.id\n        : newValue;\n    // To prevent multiple call on change hook as new fields are being loaded we need to wait at least for the next run loop\n    // so that the previous call is finished\n    await waitForNextRunLoop();\n    await this.actionFeatureService.handleChangeHooks(field);\n  }\n}\n","import type { FormElement } from 'client/data/models/custom-action';\nimport type FormElementInputNestedDocument from 'client/data/models/form-element-input';\n\nimport Component from '@glimmer/component';\n\nimport FieldModel from 'client/data/models/field';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface FormElementArgs {\n  formElement: FormElement;\n  fields: FieldModel[];\n  handleSearchQuery: (searchField?: FieldModel, searchValue?: string) => Promise<void>;\n  setFormLoadingState: (formFieldName: string, loadingState?: boolean) => void;\n  handleFormValueChange: (field: FieldModel) => Promise<void>;\n}\n\n@validateArguments\nexport default class ActionPanelFormFormElementComponent extends Component<FormElementArgs> {\n  static propTypes = {\n    formElement: PropTypes.object.isRequired,\n    fields: PropTypes.arrayOf(PropTypes.instanceOf(FieldModel)).isRequired,\n    handleSearchQuery: PropTypes.func.isRequired,\n    setFormLoadingState: PropTypes.func.isRequired,\n    handleFormValueChange: PropTypes.func.isRequired,\n  };\n\n  get field() {\n    if (this.args.formElement.component !== 'input' || !this.args.fields?.length) return null;\n\n    const field = this.args.fields.find((innerField) => {\n      const { fieldId } = this.args.formElement as FormElementInputNestedDocument;\n      return fieldId === innerField.fieldName;\n    });\n\n    if (!field) {\n      // it is expected to have temporarily null after a change hook if some fields are removed\n      return null;\n    }\n    return field;\n  }\n}\n","import type { FormElementArgs } from 'client/features/action/components/panel/form/form-element/component';\nimport type ActionFeatureService from 'client/features/action/services/feature';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport FieldModel from 'client/data/models/field';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class ActionPanelFormFormElementPageComponent extends Component<FormElementArgs> {\n  @service('feature/action') actionFeatureService: ActionFeatureService;\n\n  static propTypes = {\n    formElement: PropTypes.object.isRequired,\n    fields: PropTypes.arrayOf(PropTypes.instanceOf(FieldModel)).isRequired,\n    handleSearchQuery: PropTypes.func.isRequired,\n    setFormLoadingState: PropTypes.func.isRequired,\n    handleFormValueChange: PropTypes.func.isRequired,\n  };\n\n  get isHidden() {\n    return this.args.formElement !== this.actionFeatureService.actionFeatureState.currentPage;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#unless (eq @formElement.elements.length 0)}}\\n  <div\\n    class={{get-classes-with-modifiers\\n      \\'c-feature-action-panel-form-form-element-page\\'\\n      hidden=this.isHidden\\n    }}\\n    data-test-page\\n    data-test-feature-action-panel-form-page\\n    data-test-feature-action-panel-form-page-visible={{not this.isHidden}}\\n  >\\n    {{#each @formElement.elements key=@item as |field|}}\\n      <Feature::Action::Panel::Form::FormElement\\n        @formElement={{field}}\\n        @fields={{@fields}}\\n        @setFormLoadingState={{@setFormLoadingState}}\\n        @handleSearchQuery={{@handleSearchQuery}}\\n        @handleFormValueChange={{@handleFormValueChange}}\\n      />\\n    {{/each}}\\n  </div>\\n{{/unless}}\\n', { moduleName: 'client/features/action/components/panel/form/form-element/page/template.hbs' });\n","import type { FormElementArgs } from 'client/features/action/components/panel/form/form-element/component';\n\nimport Component from '@glimmer/component';\n\nimport FieldModel from 'client/data/models/field';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class ActionPanelFormFormElementRowComponent extends Component<FormElementArgs> {\n  static propTypes = {\n    formElement: PropTypes.object.isRequired,\n    fields: PropTypes.arrayOf(PropTypes.instanceOf(FieldModel)).isRequired,\n    handleSearchQuery: PropTypes.func.isRequired,\n    setFormLoadingState: PropTypes.func.isRequired,\n    handleFormValueChange: PropTypes.func.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#unless (eq @formElement.fields.length 0)}}\\n  <div class=\\\"c-feature-action-panel-form-form-element-row\\\" data-test-row>\\n    {{#each @formElement.fields key=@item as |field index|}}\\n      {{#unless (gte index 2)}}\\n        <Feature::Action::Panel::Form::FormElement\\n          @formElement={{field}}\\n          @fields={{@fields}}\\n          @setFormLoadingState={{@setFormLoadingState}}\\n          @handleSearchQuery={{@handleSearchQuery}}\\n          @handleFormValueChange={{@handleFormValueChange}}\\n        />\\n      {{/unless}}\\n    {{/each}}\\n  </div>\\n{{/unless}}\\n', { moduleName: 'client/features/action/components/panel/form/form-element/row/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (eq @formElement.component \\'separator\\')}}\\n  <Shared::Separator @size=\\\"large\\\" data-test-separator />\\n{{else if (eq @formElement.component \\'htmlBlock\\')}}\\n  <div class=\\\"c-feature-action-panel-form-form-element__html\\\" data-test-html>\\n    {{! template-lint-disable no-triple-curlies }}\\n    {{{@formElement.content}}}\\n    {{! template-lint-enable no-triple-curlies }}\\n  </div>\\n{{else if (eq @formElement.component \\'row\\')}}\\n  <Feature::Action::Panel::Form::FormElement::Row\\n    @formElement={{@formElement}}\\n    @fields={{@fields}}\\n    @setFormLoadingState={{@setFormLoadingState}}\\n    @handleSearchQuery={{@handleSearchQuery}}\\n    @handleFormValueChange={{@handleFormValueChange}}\\n  />\\n{{else if (eq @formElement.component \\'page\\')}}\\n  <Feature::Action::Panel::Form::FormElement::Page\\n    @formElement={{@formElement}}\\n    @fields={{@fields}}\\n    @setFormLoadingState={{@setFormLoadingState}}\\n    @handleSearchQuery={{@handleSearchQuery}}\\n    @handleFormValueChange={{@handleFormValueChange}}\\n    @hidden={{@hidden}}\\n  />\\n{{else}}\\n  {{#unless (eq this.field null)}}\\n    <Form::FormValue\\n      @readMode={{false}}\\n      @setFormLoadingState={{fn @setFormLoadingState this.field.fieldName}}\\n      @onChange={{fn @handleFormValueChange this.field}}\\n      @handleSearchQuery={{@handleSearchQuery}}\\n      @displayName={{this.field.displayNameTitlize}}\\n      @field={{this.field}}\\n      @value={{this.field.customActionValue}}\\n      @disableNested={{true}}\\n      @isUsedInSmartAction={{true}}\\n      data-test-smart-action-form-field={{this.field.fieldName}}\\n      data-test-custom-action-fields-field={{this.field.fieldName}}\\n      ...attributes\\n    />\\n  {{/unless}}\\n{{/if}}\\n', { moduleName: 'client/features/action/components/panel/form/form-element/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<form class=\\\"c-feature-action-panel-form\\\" onsubmit=\\\"return false;\\\" novalidate>\\n  {{#if @isChangeHookLoading}}\\n    <Shared::Feedback::BetaLoader\\n      class=\\\"c-feature-action-panel-form__loader\\\"\\n      data-test-smart-action-form-loader\\n    />\\n  {{/if}}\\n\\n  {{#each @smartAction.formElements as |formElement|}}\\n    <Feature::Action::Panel::Form::FormElement\\n      @formElement={{formElement}}\\n      @fields={{@smartAction.fieldsOrdered}}\\n      @setFormLoadingState={{@setFormLoadingState}}\\n      @handleSearchQuery={{this.handleSearchQuery}}\\n      @handleFormValueChange={{this.handleFormValueChange}}\\n    />\\n  {{/each}}\\n\\n</form>\\n\\n{{! Allow operators to add a comment when requesting an approval }}\\n{{#if @smartAction.isApprovalRequired}}\\n  <div class=\\\"c-feature-action-panel-form__bottom\\\">\\n    <Feature::Chat::Input\\n      @placeholder=\\\"You can write a message for your approver here…\\\"\\n      @size=\\\"small\\\"\\n      @submitAction={{this.actionFeatureService.addApprovalComment}}\\n      @mentionables={{@smartAction.collection.mentionables}}\\n      @shouldFocus={{this.actionFeatureState.autoFocusApprovalComment}}\\n      data-test-approval-messages\\n    >\\n      <:mentionable-item as |user|>\\n        <Picture::AvatarWithName @user={{user}} @size=\\\"small\\\" />\\n      </:mentionable-item>\\n    </Feature::Chat::Input>\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/features/action/components/panel/form/template.hbs' });\n","import type ApplicationInstance from '@ember/application/instance';\nimport type CollectionModel from 'client/data/models/collection';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type { SelectedRecordsOptions } from 'client/features/action/services/internal-business/custom-action';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ninterface PanelHeaderArgs {\n  action: CustomActionModel;\n  records: ClientRecordModel[];\n  selectedRecordsOptions: SelectedRecordsOptions;\n}\n\nexport default class ActionPanelHeaderComponent extends Component<PanelHeaderArgs> {\n  @tracked collection: CollectionModel;\n\n  constructor(base: ApplicationInstance, args: PanelHeaderArgs) {\n    super(base, args);\n    void this.initialize();\n  }\n\n  async initialize() {\n    this.collection = await this.args.action.collection;\n  }\n\n  get icon() {\n    return this.collection?.iconOrDefault || 'account_circle_outlined';\n  }\n\n  get isSingleRecord() {\n    return this.args.records?.length === 1;\n  }\n\n  get firstRecord() {\n    return this.args.records[0];\n  }\n\n  get areAllRecordsSelected() {\n    return this.args.selectedRecordsOptions?.areAllRecordsSelected;\n  }\n\n  get except() {\n    return this.args.selectedRecordsOptions?.idsExcluded?.length;\n  }\n\n  get collectionDisplayName() {\n    if (!this.collection) return 'Loading…';\n    if (this.args.records?.length > 1 || this.areAllRecordsSelected)\n      return this.collection.pluralizedDisplayName;\n    return this.collection.displayName;\n  }\n\n  get isGlobal() {\n    return this.args.action.isGlobal;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-action-panel-header\\\" data-test-feature-action-panel-header ...attributes>\\n  <Shared::CollapsibleSidePanel::Header @icon={{this.icon}}>\\n    <:left>\\n      {{#if this.isGlobal}}\\n        <Shared::BetaLabel>\\n          {{this.collectionDisplayName}}\\n          - Global\\n        </Shared::BetaLabel>\\n      {{else if this.isSingleRecord}}\\n        <Feature::ClientRecord::ReferenceField\\n          @collection={{this.firstRecord.collection}}\\n          @isLinkDisabled={{true}}\\n          @recordIds={{array this.firstRecord.id}}\\n        />\\n      {{else if this.areAllRecordsSelected}}\\n        <span>All</span>\\n        {{#if this.except}}\\n          <span>but</span>\\n          <span>{{this.except}}</span>\\n        {{/if}}\\n        <span>{{this.collectionDisplayName}}</span>\\n      {{else}}\\n        {{#if @records.length}}\\n          <span>{{@records.length}}</span>\\n        {{/if}}\\n        <span>{{this.collectionDisplayName}}</span>\\n      {{/if}}\\n    </:left>\\n\\n    <:right>\\n      {{@action.displayName}}\\n    </:right>\\n  </Shared::CollapsibleSidePanel::Header>\\n</div>\\n', { moduleName: 'client/features/action/components/panel/header/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface ActionResponseArgs {\n  isError: boolean;\n  response: string;\n}\n\n@validateArguments\nexport default class ActionPanelResponseComponent extends Component<ActionResponseArgs> {\n  static propTypes = {\n    isError: PropTypes.bool,\n    response: PropTypes.string,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-action-response\\\" data-test-feature-action-response ...attributes>\\n  <h2 class=\\\"c-feature-action-response__title\\\" data-test-feature-action-response-title>\\n    {{#if @isError}}\\n      The smart action failed for the following reason(s):\\n    {{else}}\\n      Result\\n    {{/if}}\\n  </h2>\\n  <div class=\\\"c-feature-action-response__html\\\" data-test-feature-action-response-html>\\n    {{! template-lint-disable no-triple-curlies }}\\n    {{{@response}}}\\n    {{! template-lint-enable no-triple-curlies }}\\n  </div>\\n</div>\\n', { moduleName: 'client/features/action/components/panel/response/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-action-panel\\\" data-test-feature-action-panel ...attributes>\\n  <section class=\\\"c-feature-action-panel__bottom-section\\\">\\n    <div\\n      class={{get-classes-with-modifiers\\n        \\'c-feature-action-panel__initial-loader\\'\\n        visible=this.isInitialLoading\\n      }}\\n      js-smart-action-form-body-form-initial-loader\\n      data-test-smart-action-form-initial-loader\\n      data-test-smart-action-form-initial-loader-visible={{this.isInitialLoading}}\\n    ></div>\\n\\n    {{#if @showConfirmationStep}}\\n      <Feature::BrowserExtension::Shared::MessageWithIcon\\n        @path=\\\"action\\\"\\n        @title=\\\"Are you sure you want to run this action?\\\"\\n        @center={{true}}\\n      />\\n    {{else if this.actionFeatureState.shouldDisplaySmartActionResponse}}\\n      <Feature::Action::Panel::Response\\n        @response={{this.actionFeatureState.htmlResponse}}\\n        @isError={{this.actionFeatureState.isErrorResponse}}\\n      />\\n    {{else}}\\n      <Feature::Action::Panel::Form\\n        @isChangeHookLoading={{this.actionFeatureState.isChangeHookLoading}}\\n        @smartAction={{@action}}\\n        @setFormLoadingState={{this.setFormLoadingState}}\\n      />\\n    {{/if}}\\n    {{#unless this.actionFeatureState.isLoading}}\\n      <Feature::Action::Panel::Footer\\n        @onExecute={{this.handleSave}}\\n        @onClose={{@closeAction}}\\n        @disableButtons={{this.actionFeatureState.isSaveButtonDisabled}}\\n        @isLoading={{this.actionFeatureState.isLoading}}\\n      />\\n    {{/unless}}\\n  </section>\\n</div>\\n', { moduleName: 'client/features/action/components/panel/template.hbs' });\n","export default class ActionIntentError extends Error {\n  constructor(specificName: string, message: string) {\n    super(`${message}`);\n    this.name = `${specificName}ActionIntentError`;\n  }\n}\n","import ActionIntentError from 'client/features/action/errors/action-intent/action-intent-error';\n\nexport default class ActionNotFoundActionIntentError extends ActionIntentError {\n  constructor(actionName: string) {\n    super('actionNotFound', `Could not find action with name ${actionName}`);\n  }\n}\n","import ActionIntentError from 'client/features/action/errors/action-intent/action-intent-error';\n\nexport default class IncorrectIdsStructureActionIntentError extends ActionIntentError {\n  constructor() {\n    super(\n      'IncorrectIdsStructure',\n      'Could not retrieve record ids related to action intent. Make sure an id or an array of ids is being passed using `actionIntentIds`',\n    );\n  }\n}\n","import ActionIntentError from 'client/features/action/errors/action-intent/action-intent-error';\n\nexport default class IncorrectParamsStructureActionIntentError extends ActionIntentError {\n  constructor() {\n    super(\n      'IncorrectParamsStructure',\n      'Could not parse action intent parameters, make sure you passed a valid JSON object',\n    );\n  }\n}\n","import ActionIntentError from 'client/features/action/errors/action-intent/action-intent-error';\n\nexport default class MissingIdForSingleBulkActionIntentError extends ActionIntentError {\n  constructor() {\n    super(\n      'MissingIdsForSingleBulk',\n      'No IDs has been passed to action of type Single or Bulk, at least one ID should be provided',\n    );\n  }\n}\n","import ActionIntentError from 'client/features/action/errors/action-intent/action-intent-error';\n\nexport default class ParamsNotParsableActionIntentError extends ActionIntentError {\n  constructor(error: Error) {\n    super(\n      'ParamsNotParsable',\n      `Could not parse action intent parameters because of: ${error.message}`,\n    );\n  }\n}\n","import ActionIntentError from 'client/features/action/errors/action-intent/action-intent-error';\n\nexport default class RecordsFetchActionIntentError extends ActionIntentError {\n  constructor() {\n    super(\n      'RecordsFetch',\n      'Could not retrieve requested IDs from your server, check your browser console for more details',\n    );\n  }\n}\n","import ActionIntentError from 'client/features/action/errors/action-intent/action-intent-error';\n\nexport default class RecordsNotFoundActionIntentError extends ActionIntentError {\n  constructor(nonExistingIds: Array<string | number>) {\n    super(\n      'RecordsNotFound',\n      `Following requested records do not exist ${nonExistingIds.toString()}`,\n    );\n  }\n}\n","import ActionIntentError from 'client/features/action/errors/action-intent/action-intent-error';\n\nexport default class TooManyIdsForSingleActionIntentError extends ActionIntentError {\n  constructor() {\n    super(\n      'TooManyIdsForSingle',\n      'More than one ID has been passed to action of type single, only one ID is expected',\n    );\n  }\n}\n","import { UnknownError } from 'client/utils/errors';\n\nexport default class UnknownFilterForVisibilityError extends UnknownError {\n  constructor(cause: Error) {\n    super(cause, 'Could not compute conditions for actions visibility');\n\n    this.name = 'UnknownFilterForVisibilityError';\n  }\n}\n","/* eslint-disable max-classes-per-file */\nimport {\n  ERROR_ACCESS_RECORD_FORBIDDEN,\n  ERROR_NOT_FOUND,\n  ERROR_UNAUTHORIZED,\n  ERROR_UNREACHABLE_DATA,\n} from 'client/config/errors';\nimport { getFirstErrorDetail, getFirstErrorStatus } from 'client/utils/ember-error-util';\nimport { AgentError } from 'client/utils/errors';\n\nexport class CustomActionAgentError extends AgentError {\n  public customActionName: string;\n  public status: number;\n\n  constructor(customActionName: string, cause: Error, message: string) {\n    super(cause, message);\n    this.name = 'CustomActionAgentError';\n    this.customActionName = customActionName;\n    this.status = getFirstErrorStatus(cause);\n  }\n}\n\nexport class UnexpectedDataCustomActionAgentError extends CustomActionAgentError {\n  constructor(customActionName: string, innerError: Error, message?: string) {\n    super(customActionName, innerError, message || getFirstErrorDetail(innerError));\n    this.name = 'UnexpectedDataCustomActionAgentError';\n  }\n}\n\nexport class UnreachableServerCustomActionAgentError extends CustomActionAgentError {\n  public type = ERROR_UNREACHABLE_DATA;\n\n  constructor(customActionName: string, cause: Error) {\n    super(customActionName, cause, 'Server unreachable');\n    this.name = 'UnreachableServerCustomActionAgentError';\n  }\n}\n\nexport class NoNetworkCustomActionAgentError extends CustomActionAgentError {\n  public type = ERROR_UNREACHABLE_DATA;\n\n  constructor(customActionName: string, cause: Error) {\n    super(customActionName, cause, cause?.message || 'No network connection');\n    this.name = 'NoNetworkCustomActionAgentError';\n    this.status = 0;\n  }\n}\n\nexport class CORSOrServerUnreachableCustomActionAgentError extends CustomActionAgentError {\n  public type = ERROR_UNREACHABLE_DATA;\n\n  constructor(customActionName: string, cause: Error) {\n    super(customActionName, cause, cause?.message || 'Cors error or server unreachable');\n    this.name = 'CORSOrServerUnreachableCustomActionAgentError';\n    this.status = 0;\n  }\n}\n\nexport class RequestTimeoutCustomActionAgentError extends CustomActionAgentError {\n  public type = ERROR_UNREACHABLE_DATA;\n\n  constructor(customActionName: string, cause: Error) {\n    super(customActionName, cause, cause?.message || 'Request timeout');\n    this.name = 'RequestTimeoutCustomActionAgentError';\n    this.status = 0;\n  }\n}\n\nexport class ServerFailCustomActionAgentError extends CustomActionAgentError {\n  public type = ERROR_UNREACHABLE_DATA;\n\n  constructor(customActionName: string, cause: Error) {\n    const message = getFirstErrorDetail(cause) || cause.message;\n    super(\n      customActionName,\n      cause,\n      `Your server is failing to achieve the request. Please contact your administrator.\\nDetails: ${message}`,\n    );\n    this.name = 'ServerFailCustomActionAgentError';\n  }\n}\n\nexport class UnauthorizedCustomActionAgentError extends CustomActionAgentError {\n  public type = ERROR_UNAUTHORIZED;\n\n  constructor(customActionName: string, cause: Error) {\n    super(customActionName, cause, 'You need to be authenticated to trigger this action');\n    this.name = 'UnauthorizedCustomActionAgentError';\n  }\n}\n\nexport class ForbiddenCustomActionAgentError extends CustomActionAgentError {\n  public type = ERROR_ACCESS_RECORD_FORBIDDEN;\n\n  constructor(customActionName: string, cause: Error) {\n    super(customActionName, cause, 'You do not have permission to trigger this action');\n    this.name = 'ForbiddenCustomActionAgentError';\n  }\n}\n\nexport class RecordNotFoundCustomActionAgentError extends CustomActionAgentError {\n  public type = ERROR_NOT_FOUND;\n  public options: object;\n\n  constructor(customActionName: string, cause: Error) {\n    super(customActionName, cause, `Path to trigger \"${customActionName}\" could not be found`);\n    this.name = 'RecordNotFoundCustomActionAgentError';\n  }\n}\n\nexport class UnknownCustomActionAgentError extends CustomActionAgentError {\n  constructor(customActionName: string, cause: Error) {\n    super(customActionName, cause, cause.message);\n    this.name = 'UnknownCustomActionAgentError';\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type CollectionModel from 'client/data/models/collection';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type FieldModel from 'client/data/models/field';\nimport type { UnionFormElementNestedDocument } from 'client/data/models/form-element';\nimport type FormElementPageNestedDocument from 'client/data/models/form-element-page';\nimport type ActionCustomActionInternalBusinessService from 'client/features/action/services/internal-business/custom-action';\nimport type SmartActionHooksHandlerBusinessService from 'client/features/action/services/internal-business/hooks-handler';\nimport type ActionIntentInternalBusinessService from 'client/features/action/services/internal-business/intent';\nimport type ActionFeatureState from 'client/features/action/state';\nimport type { SmartActionResult } from 'client/features/action/state';\nimport type ChatFeatureService from 'client/features/chat/services/feature';\nimport type { ReorderParameters } from 'client/features/folder/services/internal-business/reorder-handler';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type BetaCollectionListCommunicatorService from 'client/legacy/services/beta-collection-list-communicator';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LayoutSharedBusinessService from 'client/shared/services/layout';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { next } from '@ember/runloop';\nimport Service, { service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport window from 'ember-window-mock';\n\nimport {\n  type SelectedRecordsOptions,\n  defaultSelectedRecordsOptions,\n} from 'client/features/action/services/internal-business/custom-action';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\n\nexport default class ActionFeatureService extends Service {\n  @service('liana-features') lianaFeatures: LianaFeaturesService;\n  @service('liana-session') lianaSession: LianaSessionService;\n  @service('feature/action/internal-business/custom-action')\n  customActionService: ActionCustomActionInternalBusinessService;\n\n  @service('feature/action/state') actionFeatureState: ActionFeatureState;\n  @service('feature/notification') notificationFeature: NotificationFeatureService;\n  @service('feature/action/internal-business/hooks-handler')\n  smartActionHooksHandler: SmartActionHooksHandlerBusinessService;\n\n  @service('feature/action/internal-business/intent')\n  actionIntentService: ActionIntentInternalBusinessService;\n\n  @service('feature/chat') private chatFeatureService: ChatFeatureService;\n  @service eventBus: EventBusService;\n  @service errorHandler: ErrorHandlerService;\n  @service betaCollectionListCommunicator: BetaCollectionListCommunicatorService;\n  @service('shared/layout')\n  private readonly layoutBusinessService: LayoutSharedBusinessService;\n\n  public get isSaveButtonDisabled() {\n    return this.actionFeatureState.isSaveButtonDisabled;\n  }\n\n  public async getEnabledCustomActions(actions: CustomActionModel[], records: ClientRecordModel[]) {\n    return this.customActionService.getEnabledCustomActions(actions, records);\n  }\n\n  @action\n  public async showRequestApprovalModal(\n    smartAction: CustomActionModel,\n    roleIdsAllowedToApprove: string[],\n  ): Promise<SmartActionResult> {\n    this.actionFeatureState.smartAction = smartAction;\n    this.actionFeatureState.roleIdsAllowedToApprove = roleIdsAllowedToApprove;\n\n    this.actionFeatureState.mustSkipConfirmation = false;\n\n    return new Promise<SmartActionResult>((resolveApprovalModal) => {\n      const resolveAction = this.actionFeatureState.resolvePromise;\n      this.actionFeatureState.resolvePromise = (state) => {\n        resolveApprovalModal({ ...state, isApproval: true });\n        resolveAction?.(state);\n      };\n\n      this.actionFeatureState.shouldDisplayRequestApprovalModal = true;\n    });\n  }\n\n  @action\n  public hideRequestApprovalModal() {\n    this.actionFeatureState.shouldDisplayRequestApprovalModal = false;\n  }\n\n  @action\n  public closeRequestApprovalModal() {\n    this.actionFeatureState.resolvePromise?.({ success: false });\n    this.hideRequestApprovalModal();\n  }\n\n  @action\n  public showSmartActionHTMLResponse(\n    smartAction: CustomActionModel,\n    htmlResponse: string,\n    responseState?: { isError: boolean; isApproval: boolean },\n  ) {\n    this.actionFeatureState.smartAction = smartAction;\n    this.actionFeatureState.htmlResponse = htmlResponse;\n    this.actionFeatureState.isErrorResponse =\n      !!responseState?.isError && !responseState?.isApproval;\n    this.actionFeatureState.shouldDisplaySmartActionResponse = true;\n  }\n\n  @action\n  public hideSmartActionHTMLResponse() {\n    this.actionFeatureState.shouldDisplaySmartActionResponse = false;\n  }\n\n  @action\n  public async openActionFormForRecord(\n    smartAction: CustomActionModel,\n    record: ClientRecordModel,\n  ): Promise<SmartActionResult> {\n    this.customActionService.initActionRequest(smartAction, [record]);\n\n    return this.showSmartActionForm(smartAction, [record], defaultSelectedRecordsOptions);\n  }\n\n  @action\n  public async showSmartActionForm(\n    smartAction: CustomActionModel,\n    records: ClientRecordModel[],\n    selectedRecordsOptions: SelectedRecordsOptions,\n  ): Promise<SmartActionResult> {\n    this.actionFeatureState.smartAction = smartAction;\n    const recordsToApplyOn: ClientRecordModel[] = [];\n    recordsToApplyOn.pushObjects(records);\n    this.actionFeatureState.recordsToApplyOn = recordsToApplyOn; // they should not be updated unless the action is explicitly triggered again\n    this.actionFeatureState.selectedRecordsOptions = selectedRecordsOptions;\n    this.actionFeatureState.isLoading = false;\n    this.actionFeatureState.shouldDisplaySmartActionForm = true;\n    this.actionFeatureState.approvalCommentContent = null;\n    const promise: Promise<SmartActionResult> = new Promise((resolve) => {\n      this.actionFeatureState.resolvePromise = resolve;\n    });\n\n    this.resetSmartActionFormValues(smartAction);\n\n    smartAction.formElements =\n      smartAction.layout?.length > 0 ? smartAction.layout : smartAction.getBaseLayout();\n\n    if (this.smartActionHooksHandler.canUseHooks(smartAction)) {\n      this.actionFeatureState.isLoading = true;\n      await this.smartActionHooksHandler.handleLoadHooks(smartAction, records?.[0]);\n      this.cacheFormValues();\n      this.actionFeatureState.isLoading = false;\n    }\n\n    if (this.isMultiPages) {\n      this.actionFeatureState.currentPage = this.actionFeatureState.smartAction.formElements\n        .firstObject as FormElementPageNestedDocument;\n\n      this.setButtonsLabel();\n    }\n\n    this.actionFeatureState.shouldDisplaySmartActionResponse = false;\n    return promise;\n  }\n\n  get executeButtonText() {\n    if (!this.actionFeatureState.smartAction) return '';\n    const environment = this.lianaSession.currentEnvironment;\n    let buttonTitle = this.actionFeatureState.smartAction.displayName;\n    if (this.actionFeatureState.smartAction.submitButtonLabel) {\n      return this.actionFeatureState.smartAction.submitButtonLabel;\n    }\n    if (\n      environment\n      && this.actionFeatureState.smartAction.isApprovalRequired &&\n      // We can't display \"Request approval\" in case of conditional \"required approval\"\n      (!this.lianaFeatures.isFeatureCompatible(FeaturesEnum.ConditionalCustomAction, environment)\n        || !this.actionFeatureState.smartAction.smartActionPermissions.approvalRequiredCondition)\n    ) {\n      buttonTitle = 'Request approval';\n    }\n\n    return buttonTitle;\n  }\n\n  get isMultiPages() {\n    return this.actionFeatureState.smartAction?.formElements?.firstObject?.component === 'page';\n  }\n\n  get currentPageIndex() {\n    if (!this.isMultiPages) return 0;\n    return this.actionFeatureState.smartAction.formElements\n      ?.toArray()\n      .findIndex((page) => page === this.actionFeatureState.currentPage);\n  }\n\n  get hasDisplayedFieldsOrFormElements() {\n    return this.actionFeatureState.smartAction?.hasDisplayedFieldsOrFormElements;\n  }\n\n  get isApprovalRequired() {\n    return this.actionFeatureState.smartAction?.isApprovalRequired;\n  }\n\n  @action\n  public goToNextPage() {\n    if (!this.isMultiPages) return;\n\n    let hasAllRequiredFieldsSet = true;\n\n    this.actionFeatureState.currentPage.elements.forEach((element) => {\n      const toasterDisplayed = this.displayToasterIfRequiredFieldIsEmpty(element);\n      if (toasterDisplayed) hasAllRequiredFieldsSet = false;\n    });\n\n    if (!hasAllRequiredFieldsSet) return;\n\n    const form = this.actionFeatureState.smartAction.formElements?.toArray();\n    const { currentPageIndex } = this;\n\n    if (currentPageIndex + 1 < form.length) {\n      this.actionFeatureState.currentPage = form[\n        currentPageIndex + 1\n      ] as FormElementPageNestedDocument;\n      this.setButtonsLabel();\n    }\n  }\n\n  public notifyRequiredValueMissing(field: FieldModel) {\n    this.notificationFeature.createToastr(\n      ToastrTypeEnum.Error,\n      `A value is required for field ${field.displayName}`,\n    );\n  }\n\n  private displayToasterIfRequiredFieldIsEmpty(element: UnionFormElementNestedDocument) {\n    let toasterDisplayed = false;\n    if (element.component === 'input') {\n      const field = this.actionFeatureState.smartAction.fieldsOrdered.find(\n        (f) => f.fieldName === element.fieldId,\n      );\n\n      if (field?.isRequired && isEmpty(field.customActionValue)) {\n        toasterDisplayed = true;\n        this.notifyRequiredValueMissing(field);\n      }\n    } else if (element.component === 'row') {\n      element.fields.forEach((subElement, index) => {\n        if (index >= 2) return; // only check first 2 elements\n        const result = this.displayToasterIfRequiredFieldIsEmpty(subElement);\n        if (result) toasterDisplayed = true;\n      });\n    }\n\n    return toasterDisplayed;\n  }\n\n  @action\n  public goToPreviousPage() {\n    if (!this.isMultiPages) return;\n\n    const form = this.actionFeatureState.smartAction.formElements?.toArray();\n    const { currentPageIndex } = this;\n\n    if (currentPageIndex - 1 >= 0) {\n      this.actionFeatureState.currentPage = form[\n        currentPageIndex - 1\n      ] as FormElementPageNestedDocument;\n      this.setButtonsLabel();\n    }\n  }\n\n  private setButtonsLabel() {\n    this.actionFeatureState.previousButtonLabel =\n      this.actionFeatureState.currentPage.previousButtonLabel || 'Back';\n    this.actionFeatureState.nextButtonLabel =\n      this.actionFeatureState.currentPage.nextButtonLabel || 'Next';\n  }\n\n  @action\n  public async closeActionPanelOrGoBackToForm(option = { shouldAskUser: true }) {\n    if (this.actionFeatureState.shouldDisplaySmartActionResponse) {\n      await this.hideAllSmartActionComponents();\n    } else {\n      await this.cancelAction(option);\n    }\n  }\n\n  private get isActionInState() {\n    return (\n      this.actionFeatureState.shouldDisplaySmartActionForm && this.actionFeatureState.smartAction\n    );\n  }\n\n  @action\n  public askUserIfOkToCloseCurrentActionForm(): boolean {\n    if (!this.isActionInState) return true;\n\n    return window.confirm(\n      `The \"${this.actionFeatureState.smartAction.displayName}\" form values will be lost, are you sure to continue?`,\n    );\n  }\n\n  @action\n  public async cancelAction(option = { shouldAskUser: true }): Promise<boolean> {\n    if (!this.isActionInState) return true;\n\n    if (option.shouldAskUser) {\n      const sure = this.askUserIfOkToCloseCurrentActionForm();\n      if (!sure) {\n        return false;\n      }\n    }\n\n    this.actionFeatureState.resolvePromise?.({ success: false });\n    await this.actionFeatureState.smartAction.resetFields();\n    this.actionFeatureState.shouldDisplaySmartActionForm = false;\n    return true;\n  }\n\n  @action\n  public async hideAllSmartActionComponents() {\n    await this.cancelAction({ shouldAskUser: false });\n    this.hideRequestApprovalModal();\n    this.hideSmartActionHTMLResponse();\n  }\n\n  public addCurrentApprovalComment() {\n    this.actionFeatureState.approvalCommentContent = this.chatFeatureService.getCleanText;\n  }\n\n  private resetSmartActionFormValues(smartAction: CustomActionModel) {\n    smartAction.fields.forEach((field) => {\n      field.customActionValue = null;\n    });\n  }\n\n  private async waitUntilLoadingFinished(): Promise<void> {\n    return new Promise<void>((resolve) => {\n      const id = setInterval(() => {\n        if (!this.actionFeatureState.isLoading) {\n          clearInterval(id);\n          resolve();\n        }\n      }, 100);\n    });\n  }\n\n  public async handleChangeHooks(changedField: FieldModel) {\n    if (!this.smartActionHooksHandler.canUseHooks(this.actionFeatureState.smartAction)) return;\n\n    if (this.actionFeatureState.smartAction.hooks?.change?.length) {\n      if (this.actionFeatureState.isLoading) {\n        await this.waitUntilLoadingFinished();\n      }\n\n      this.actionFeatureState.isChangeHookLoading = true;\n\n      // NOTICE: this is very important for not triggering an infinite loop\n      const { hasFieldBeenUpdated, wasCancelled } =\n        await this.smartActionHooksHandler.handleChangeHooks(\n          this.actionFeatureState.smartAction,\n          changedField,\n          this.actionFeatureState.cachedFormValues,\n          this.actionFeatureState.cachedSearchValues,\n          this.actionFeatureState.recordsToApplyOn,\n        );\n      if (this.isMultiPages) this.setButtonsLabel();\n      if (hasFieldBeenUpdated) {\n        this.cacheFormValues();\n      }\n\n      if (!wasCancelled) {\n        this.actionFeatureState.isChangeHookLoading = false;\n      }\n    }\n  }\n\n  public async handleSearchHook(searchedField: FieldModel, searchValue: string) {\n    if (!this.smartActionHooksHandler.canUseHooks(this.actionFeatureState.smartAction)) return;\n\n    this.actionFeatureState.cachedSearchValues[searchedField.fieldName] = searchValue;\n\n    await this.smartActionHooksHandler.handleSearchHooks(\n      this.actionFeatureState.smartAction,\n      searchedField,\n      this.actionFeatureState.cachedSearchValues,\n    );\n  }\n\n  private cacheFormValues() {\n    if (!this.actionFeatureState.smartAction) return;\n\n    this.actionFeatureState.cachedFormValues =\n      this.actionFeatureState.smartAction.fieldsOrdered.reduce(\n        (p, { fieldName, customActionValue: value }) => ({\n          ...p,\n          [fieldName]: Array.isArray(value) ? [...(value as Array<unknown>)] : value,\n        }),\n        {},\n      );\n  }\n\n  public async triggerCustomAction(\n    customAction: CustomActionModel,\n    records: { id: string }[] | ClientRecordModel[] | undefined | null,\n    values: FieldModel[] | Record<string, unknown> | null,\n    checkForApprovalAndAskConfirmation = true,\n    options = defaultSelectedRecordsOptions,\n  ): Promise<SmartActionResult> {\n    return this.customActionService.triggerCustomAction(\n      customAction,\n      records,\n      values,\n      checkForApprovalAndAskConfirmation,\n      options,\n    );\n  }\n\n  public async triggerCustomActionAndRefreshRecords(\n    customAction: CustomActionModel,\n    records: { id: string }[] | ClientRecordModel[] | undefined | null,\n    values: FieldModel[] | Record<string, unknown> | null,\n    checkForApprovalAndAskConfirmation = true,\n    options = defaultSelectedRecordsOptions,\n  ): Promise<SmartActionResult> {\n    const result = await this.triggerCustomAction(\n      customAction,\n      records,\n      values,\n      checkForApprovalAndAskConfirmation,\n      options,\n    );\n\n    if (result.success && !result.isApproval) {\n      this.betaCollectionListCommunicator.refreshAll(await customAction.collection);\n      if (Array.isArray(records)) {\n        const promises = records.map(async (record) => {\n          try {\n            if (this.isReloadable(record)) await record.reload();\n          } catch (error) {\n            this.errorHandler.handleError(error as Error, 'Error while refreshing records');\n          }\n        });\n        await Promise.all(promises);\n      }\n    }\n\n    return result;\n  }\n\n  public async callSmartAction() {\n    this.actionFeatureState.isLoading = true;\n\n    try {\n      const { success, isApproval, refreshInfo } =\n        await this.customActionService.triggerCustomAction(\n          this.actionFeatureState.smartAction,\n          this.actionFeatureState.recordsToApplyOn,\n          this.actionFeatureState.smartAction.fieldsOrdered,\n          true,\n          this.actionFeatureState.selectedRecordsOptions,\n          false,\n        );\n\n      await this.handleSmartActionFormResponse({ success, isApproval, refreshInfo });\n    } catch (error) {\n      await this.handleSmartActionFormResponse({ error });\n    }\n  }\n\n  private handleSmartActionFormResponse(data: {\n    success: boolean;\n    isApproval: boolean;\n    refreshInfo?: { relationships: string[] };\n  }): void | Promise<void>;\n\n  private handleSmartActionFormResponse(data: { error: unknown }): void | Promise<void>;\n  private async handleSmartActionFormResponse({\n    success,\n    isApproval,\n    refreshInfo,\n    error,\n  }: {\n    success: boolean;\n    isApproval: boolean;\n    refreshInfo?: { relationships: string[] };\n    error: unknown;\n  }) {\n    this.actionFeatureState.isLoading = false;\n\n    if (error) {\n      console.debug(\n        `Smart action ${this.actionFeatureState.smartAction?.displayName} failed`,\n        error,\n      );\n    }\n\n    if (success || !this.actionFeatureState.shouldDisplaySmartActionForm) {\n      this.actionFeatureState.resolvePromise?.({\n        success: error ? false : success,\n        isApproval,\n        refreshInfo,\n      });\n      this.actionFeatureState.resolvePromise = null;\n      await this.cancelAction({ shouldAskUser: false });\n    }\n  }\n\n  public async requestApproval() {\n    // Save resolvePromise into a variable as at the moment \"triggerRequestApproval\" is closing the modal\n    // and so in the process, it is resetting the state.\n    const { resolvePromise } = this.actionFeatureState;\n    const { success, actionApproval } = await this.customActionService.triggerRequestApproval(\n      this.actionFeatureState.smartAction,\n      this.actionFeatureState.mustSkipConfirmation,\n      this.actionFeatureState.roleIdsAllowedToApprove,\n    );\n\n    resolvePromise({ success });\n\n    if (success) {\n      this.eventBus.trigger(EventBusEventsEnum.SmartActionApprovalCreated, actionApproval);\n      this.hideRequestApprovalModal();\n    }\n  }\n\n  public async attemptActionIntent(transition: Transition, collection: CollectionModel) {\n    next(async () => {\n      try {\n        await this.actionIntentService.openActionIntentFromTransition(transition, collection);\n      } catch (error) {\n        this.errorHandler.handleError(error as Error, 'Action Intent error');\n      }\n    });\n  }\n\n  public async toggleVisibility(smartAction: CustomActionModel) {\n    try {\n      await this.layoutBusinessService.toggleVisibility(smartAction);\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(\n        error as Error,\n        'Smart Actions visibility update failed',\n      );\n    }\n  }\n\n  public async reorderActions(actions: CustomActionModel[], parameters: ReorderParameters) {\n    try {\n      await this.layoutBusinessService.reorderEntities(actions, parameters);\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Smart Actions reordering failed');\n    }\n  }\n\n  private isReloadable(record: unknown): record is { reload: () => Promise<void> } {\n    return typeof record === 'object' && typeof (record as { reload }).reload === 'function';\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport Service, { service } from '@ember/service';\n\nexport default class ActionAvailabilityInternalBusinessService extends Service {\n  @service currentUser: CurrentUserService;\n\n  isAnyActionAvailable(collection: CollectionModel, selectedRecordsCount: number | undefined) {\n    if (this.currentUser.editMode) {\n      return Boolean(collection.customActionsOrderedWithHidden.length);\n    }\n    switch (true) {\n      case !selectedRecordsCount:\n        if (this.currentUser.canExportCollection(collection)) return true;\n        return collection.customActionsOrderedForUser.some((action) => action.isGlobal);\n      case selectedRecordsCount === 1:\n        if (this.currentUser.canDeleteCollection(collection)) return true;\n        if (this.currentUser.canAddCollection(collection)) return true;\n        return collection.customActionsOrderedForUser.some(\n          (action) => action.isBulk || action.isSingle,\n        );\n      case selectedRecordsCount > 1:\n        if (this.currentUser.canDeleteCollection(collection)) return true;\n        return collection.customActionsOrderedForUser.some((action) => action.isBulk);\n      default:\n        return false;\n    }\n  }\n\n  public isActionEnabled(\n    customAction: CustomActionModel,\n    {\n      enabledCustomActions,\n      selectedRecordsCount,\n      areAllRecordsSelected,\n      disabled,\n    }: {\n      enabledCustomActions: CustomActionModel[];\n      selectedRecordsCount: number;\n      areAllRecordsSelected: boolean;\n      disabled: boolean;\n    },\n  ): boolean {\n    if (disabled) return false;\n\n    if (areAllRecordsSelected && (customAction.isApprovalRequired || customAction.isSingle))\n      return false;\n\n    if (!enabledCustomActions?.some(({ id }) => id === customAction.id)) return false;\n\n    if (selectedRecordsCount && customAction.isGlobal) return false;\n\n    // eslint-disable-next-line sonarjs/prefer-single-boolean-return -- readability\n    if (selectedRecordsCount !== 1 && customAction.isSingle) return false;\n\n    return true;\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type ModelRegistry from '@ember-data/types/registries/model';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type FieldModel from 'client/data/models/field';\nimport type SegmentModel from 'client/data/models/segment';\nimport type ActionFeatureService from 'client/features/action/services/feature';\nimport type ActionLianaCallerInternalBusinessService from 'client/features/action/services/internal-business/liana-caller';\nimport type { SmartActionResult } from 'client/features/action/state';\nimport type ActionFeatureState from 'client/features/action/state';\nimport type InboxState from 'client/features/inbox/state';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type ActionApprovalService from 'client/legacy/services/action-approval-service';\nimport type ActivityTrackerService from 'client/legacy/services/activity-tracker';\nimport type BetaCollectionListCommunicatorService from 'client/legacy/services/beta-collection-list-communicator';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type HtmlSanitizerService from 'client/legacy/services/html-sanitizer';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\nimport type StoreService from 'client/legacy/services/store';\nimport type TimezoneService from 'client/legacy/services/timezone';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { AdapterError } from 'client/utils/ember-error-util';\nimport type { AbilitiesService } from 'ember-can';\nimport type SegmentService from 'ember-cli-segment/services/segment';\n\nimport { isArray } from '@ember/array';\nimport { action as actionDecorator } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport Service, { service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport window from 'ember-window-mock';\nimport { differenceBy, isEqual, partition, uniqWith } from 'lodash';\n\nimport {\n  CORSOrServerUnreachableCustomActionAgentError,\n  ForbiddenCustomActionAgentError,\n  NoNetworkCustomActionAgentError,\n  RecordNotFoundCustomActionAgentError,\n  RequestTimeoutCustomActionAgentError,\n  ServerFailCustomActionAgentError,\n  UnauthorizedCustomActionAgentError,\n  UnexpectedDataCustomActionAgentError,\n  UnknownCustomActionAgentError,\n} from 'client/features/action/errors';\nimport UnknownFilterForVisibilityError from 'client/features/action/errors/action-visibility/unknown-filter-for-visibility-error';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport { OPERATOR_IS } from 'client/utils/condition-utils';\nimport {\n  getFirstErrorDetail,\n  getFirstErrorName,\n  getFirstErrorStatus,\n  isEmberError,\n} from 'client/utils/ember-error-util';\nimport {\n  CORSOrServerUnreachableFailedToFetchError,\n  HttpError,\n  NoNetworkFailedToFetchError,\n  RequestTimeoutFailedToFetchError,\n} from 'client/utils/errors';\nimport { replaceOldRouteNamesByNewRouteNames } from 'client/utils/route-utils';\nimport tryParseJson from 'client/utils/try-parse-json';\nimport urlUtils from 'client/utils/url-utils';\nimport webhookHandler from 'client/utils/webhook-utils';\n\nfunction getSkipActionConfirmationCacheName(customAction: CustomActionModel) {\n  return `skip-confirmation-for-action-${customAction.id}`;\n}\n\nexport type SelectedRecordsOptions = {\n  collectionName?: string;\n  parentCollectionName?: string;\n  parentCollectionId?: string;\n  parentAssociationName?: string;\n  areAllRecordsSelected?: boolean;\n  query?: object;\n  idsExcluded?: string[];\n  selectedRecordsCount?: number | null;\n  isApproval?: boolean;\n  signedApprovalRequest?: string;\n  beforeCustomActionExecution?: () => Promise<void>;\n  afterCustomActionExecution?: () => Promise<void>;\n  actionIntentParams?: object;\n};\n\ntype SmartActionResponseData = {\n  webhook?: string;\n  redirectTo: string;\n  redirect_to: string;\n  html?: string;\n  refresh?: { relationships: string[] };\n  success: string;\n};\n\ntype CustomActionError = AdapterError & {\n  body?: {\n    error: string;\n    html: string;\n  };\n};\n\nfunction isCustomActionError(error: unknown): error is CustomActionError {\n  return isEmberError(error) || (typeof error === 'object' && 'body' in error);\n}\n\nexport const defaultSelectedRecordsOptions: SelectedRecordsOptions = {\n  collectionName: null,\n  parentCollectionName: null,\n  parentCollectionId: null,\n  parentAssociationName: null,\n  areAllRecordsSelected: false,\n  query: {},\n  idsExcluded: [],\n  selectedRecordsCount: null,\n  isApproval: false,\n  signedApprovalRequest: null,\n};\n\nexport default class ActionCustomActionInternalBusinessService extends Service {\n  @service abilities: AbilitiesService;\n  @service activityTracker: ActivityTrackerService;\n  @service betaCollectionListCommunicator: BetaCollectionListCommunicatorService;\n  @service('feature/action/internal-business/liana-caller')\n  actionLianaCaller: ActionLianaCallerInternalBusinessService;\n\n  @service eventBus: EventBusService;\n  @service htmlSanitizer: HtmlSanitizerService;\n  @service('feature/inbox/state') inboxState: InboxState;\n  @service lianaFeatures: LianaFeaturesService;\n  @service lianaSession: LianaSessionService;\n  @service localStorage: LocalStorageService;\n  @service router: RouterService;\n  @service segment: SegmentService;\n  @service store: StoreService;\n  @service timezone: TimezoneService;\n  @service('feature/notification') notificationFeature: NotificationFeatureService;\n  @service tracker: TrackerService;\n  @service('feature/action') actionFeatureService: ActionFeatureService;\n  @service('feature/action/state') actionFeatureState: ActionFeatureState;\n  @service actionApprovalService: ActionApprovalService;\n  @service errorHandler: ErrorHandlerService;\n\n  public async canCloseCurrentActionPanel() {\n    if (!this.actionFeatureState.shouldDisplaySmartActionPanel) return true;\n    return this.actionFeatureService.cancelAction({ shouldAskUser: true });\n  }\n\n  public async triggerCustomAction(\n    customAction: CustomActionModel,\n    records: { id: string }[] | ClientRecordModel[] | undefined | null,\n    values: FieldModel[] | Record<string, unknown> | null,\n    checkForApprovalAndAskConfirmation = true,\n    options: SelectedRecordsOptions = defaultSelectedRecordsOptions,\n    checkCanExit = true,\n  ): Promise<SmartActionResult> {\n    if (checkCanExit) {\n      const okToExit = await this.canCloseCurrentActionPanel();\n      if (!okToExit) return { success: false };\n    }\n\n    const { isApproval } = options;\n    this.initActionRequest(customAction, records, options);\n\n    // We want to display Action Form even if no fields in case of a request approval\n    const showSmartActionForm =\n      (customAction.isApprovalRequired\n        && !this.actionFeatureService.actionFeatureState.shouldDisplaySmartActionForm)\n      || (customAction.fields?.length && !values);\n    // But we don't want to display anything in case of an approval\n    if (!isApproval && showSmartActionForm) {\n      return this.actionFeatureService.showSmartActionForm(\n        customAction,\n        records as ClientRecordModel[],\n        options,\n      );\n    }\n\n    const hasAllRequiredFieldsSet = this.hasAllRequiredFieldsSet(customAction);\n\n    if (!hasAllRequiredFieldsSet) {\n      return { success: false, isApproval };\n    }\n\n    // This method should exist on the currentEnvironment directly isCurrentEnvironmentFeatureCompatible\n    // Well all feature compatibility should be computed this.lianaFeatures.isConditionalCustomActionCompatible\n    const isConditionalCustomActionCompatible = this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.ConditionalCustomAction,\n      this.lianaSession.currentEnvironment,\n    );\n\n    // This will only occur when the agent feature doesn't support CustomActionRequiresApproval\n    if (\n      !isConditionalCustomActionCompatible\n      && checkForApprovalAndAskConfirmation\n      && customAction.get('isApprovalRequired')\n      && this.abilities.can('access to approval')\n    ) {\n      return this.showRequestApprovalModalOrRequestApproval(customAction, null);\n    }\n\n    if (\n      !customAction.isApprovalRequired\n      && checkForApprovalAndAskConfirmation\n      && customAction.get('confirmation') === true\n    ) {\n      const sure = window.confirm(\n        `Are you sure you want to trigger the \"${customAction.displayName}\" action?`,\n      );\n      if (!sure) {\n        return { success: false, isApproval };\n      }\n    }\n\n    try {\n      const valuesToSend =\n        values && typeof values === 'object' && !isArray(values)\n          ? values\n          : customAction.displayedFields?.reduce((valuesMap, field) => {\n              if (![undefined, null].includes(field.customActionValue)) {\n                return {\n                  ...valuesMap,\n                  [field.fieldName]: field.customActionValue,\n                };\n              }\n              return valuesMap;\n            }, {});\n      this.eventBus.trigger(EventBusEventsEnum.SmartActionExecuted, {\n        smartAction: customAction,\n        recordIds: records?.map(({ id }) => id as string),\n      });\n      const result = await this.callActionOnLiana(\n        customAction,\n        !checkForApprovalAndAskConfirmation && isApproval,\n        valuesToSend,\n        options.beforeCustomActionExecution,\n        options.afterCustomActionExecution,\n      );\n\n      return {\n        success: result.success,\n        refreshInfo:\n          result.refreshInfo && 'relationships' in result.refreshInfo\n            ? result.refreshInfo\n            : undefined,\n      };\n    } catch (error) {\n      if (getFirstErrorName(error) === 'ApprovalNotAllowedError') {\n        // Rethrow to let the approvals route handle this error\n        throw error;\n      }\n\n      // either an ember error or a custom error or another error (Do we want to log it??)\n      // TODO: create a proper errorFormatterHandler\n      const errorMessage =\n        getFirstErrorDetail(error)\n        || (isCustomActionError(error) && (error.body?.error || error.body?.html))\n        || (error instanceof Error && error.message);\n      return {\n        success: false,\n        errorMessage,\n      };\n    }\n  }\n\n  public initActionRequest(\n    customAction: CustomActionModel,\n    records: { id: string }[] | ClientRecordModel[] | undefined | null,\n    options: SelectedRecordsOptions = defaultSelectedRecordsOptions,\n  ) {\n    const actionRequest = this.store.createRecord('action-request');\n    const {\n      collectionName,\n      parentCollectionName,\n      parentCollectionId,\n      parentAssociationName,\n      areAllRecordsSelected,\n      query,\n      idsExcluded,\n      selectedRecordsCount,\n      isApproval,\n      actionIntentParams,\n    } = options;\n    actionRequest.set('allRecords', areAllRecordsSelected);\n    actionRequest.set('allRecordsSubsetQuery', {\n      ...query,\n      // We need to enforce the timezone here to avoid bugs on selectAll feature for agents in v7 or lower\n      timezone: this.timezone.getCurrentTimezone(),\n    });\n    actionRequest.set('allRecordsIdsExcluded', idsExcluded);\n    actionRequest.set('collectionName', collectionName || customAction.collection.get('name'));\n    actionRequest.set('parentCollectionName', parentCollectionName);\n    actionRequest.set('parentCollectionId', parentCollectionId);\n    actionRequest.set('parentAssociationName', parentAssociationName);\n    actionRequest.set(\n      'ids',\n      (records as { id: string }[]).map(({ id }) => id),\n    );\n    // Mainly for role v1 support for older agents\n    // and rails still needs it https://github.com/ForestAdmin/forest-rails/issues/631\n    actionRequest.set('smartActionId', customAction.id);\n    actionRequest.set('selectedRecordsCount', selectedRecordsCount);\n    actionRequest.set('actionIntentParams', actionIntentParams);\n\n    if (isApproval) {\n      actionRequest.signedApprovalRequest = options.signedApprovalRequest;\n    }\n\n    customAction.set('actionRequest', actionRequest);\n  }\n\n  private async showRequestApprovalModalOrRequestApproval(\n    customAction: CustomActionModel,\n    roleIdsAllowedToApprove: string[],\n  ): Promise<SmartActionResult> {\n    const skipConfirmation = this.localStorage.getItem(\n      getSkipActionConfirmationCacheName(customAction),\n    );\n\n    if (skipConfirmation === null || !tryParseJson(skipConfirmation)) {\n      return this.actionFeatureService.showRequestApprovalModal(\n        customAction,\n        roleIdsAllowedToApprove,\n      );\n    }\n\n    if (customAction.confirmation === true) {\n      const sure = window.confirm(\n        `Are you sure you want to request an approval for \"${customAction.displayName}\" action?`,\n      );\n      if (!sure) {\n        return { success: false, isApproval: true };\n      }\n    }\n\n    try {\n      return await this.requestApproval(customAction, roleIdsAllowedToApprove);\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      return { success: false, isApproval: true };\n    }\n  }\n\n  public async triggerRequestApproval(\n    customAction: CustomActionModel,\n    skipConfirmation: boolean,\n    roleIdsAllowedToApprove: string[],\n  ) {\n    if (skipConfirmation) {\n      this.localStorage.setItem(getSkipActionConfirmationCacheName(customAction), 'true');\n    }\n\n    try {\n      return await this.requestApproval(customAction, roleIdsAllowedToApprove);\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      return { success: false, isApproval: true };\n    }\n  }\n\n  private hasAllRequiredFieldsSet(customAction: CustomActionModel) {\n    let hasAllRequiredFieldsSet = true;\n\n    customAction.fieldsOrdered.forEach((field) => {\n      if (field.isRequired && isEmpty(field.customActionValue)) {\n        hasAllRequiredFieldsSet = false;\n        this.actionFeatureService.notifyRequiredValueMissing(field);\n      }\n    });\n\n    return hasAllRequiredFieldsSet;\n  }\n\n  private async requestApproval(\n    customAction: CustomActionModel,\n    roleIdsAllowedToApprove: string[],\n  ) {\n    if (!this.hasAllRequiredFieldsSet(customAction)) {\n      return { success: false, isApproval: true };\n    }\n\n    if (roleIdsAllowedToApprove && !roleIdsAllowedToApprove.length) {\n      this.notificationFeature.createToastr(\n        ToastrTypeEnum.Error,\n        'Approval request denied, as no user would be allowed to approve it given its parameters.',\n      );\n\n      return { success: false, isApproval: true };\n    }\n\n    const inputs = customAction\n      .get('fields')\n      // Remove the Loading... input as it's the one used by the agent node-js\n      // to generate custom action form using hooks\n      .filter(({ fieldName }) => fieldName !== 'Loading...')\n      .map((field) => ({\n        name: field.fieldName,\n        type: field.type,\n        value: field.customActionValue,\n      }));\n\n    try {\n      const actionApproval = this.store.createRecord('action-approval', {\n        recordIds: customAction.actionRequest.ids,\n        actionName: customAction.get('name'),\n        collectionName: customAction.get('collection').get('name'),\n        inputs,\n        roleIdsAllowedToApprove,\n      });\n\n      await actionApproval.save();\n\n      if (this.actionFeatureService.actionFeatureState.approvalCommentContent)\n        await this.actionApprovalService.createApprovalMessage({\n          messageContent: this.actionFeatureService.actionFeatureState.approvalCommentContent,\n          approval: actionApproval,\n        });\n\n      // Notice: prevent issue with store persistence\n      actionApproval.unloadRecord();\n\n      this.segment.trackEvent('Create action approval', {\n        selectedRecordsCount: customAction.actionRequest.selectedRecordsCount,\n        areAllRecordsSelected: customAction.actionRequest.allRecords,\n      });\n\n      // We don't want to delay the response to the user to create an activity log\n      const currentInboxAssignment = this.inboxState.currentInboxAssignment;\n      let recordIds = customAction.actionRequest.ids as string[];\n      const isRecordInCurrentInboxAssignment =\n        currentInboxAssignment\n        && (recordIds as (string | number)[]).some(\n          (id) => String(id) === currentInboxAssignment.recordId,\n        );\n      const inbox = isRecordInCurrentInboxAssignment ? currentInboxAssignment.inbox : undefined;\n\n      // Put the current inbox assignment record id first so it appears first in the activity log\n      if (isRecordInCurrentInboxAssignment) {\n        recordIds = [\n          currentInboxAssignment.recordId,\n          ...recordIds.filter((id) => String(id) !== currentInboxAssignment.recordId),\n        ];\n      }\n\n      void this.activityTracker.trackWrite({\n        action: 'createApproval',\n        label: `requested an approval for the action \"${customAction.get('displayName')}\"`,\n        collection: await customAction.collection,\n        recordIds,\n        inbox,\n      });\n      this.notificationFeature.createToastr(\n        ToastrTypeEnum.Success,\n        `An approval request for the action \"${customAction.get('displayName')}\" has been sent.`,\n      );\n\n      // TODO: Move this line into the smart action feature service\n      await this.actionFeatureService.hideAllSmartActionComponents();\n\n      return { success: true, isApproval: true, actionApproval };\n    } catch (error) {\n      console.error('An error occurred while requesting the approval', error);\n      this.tracker.captureException(error as Error);\n\n      const message =\n        isEmberError(error) && !error.errors?.[0]?.title ? getFirstErrorDetail(error) : null;\n\n      this.notificationFeature.createToastr(\n        ToastrTypeEnum.Error,\n        message || 'An error occurred while requesting the approval.',\n        {\n          duration: 0,\n        },\n      );\n      // TODO: Move this line into the smart action feature service\n      await this.actionFeatureService.hideAllSmartActionComponents();\n\n      throw error;\n    }\n  }\n\n  private async callActionOnLiana(\n    customAction: CustomActionModel,\n    isRunByApprover: boolean,\n    values: Record<string, unknown> | null,\n    beforeCustomActionExecution: () => Promise<void> | void,\n    afterCustomActionExecution: () => Promise<void> | void,\n  ): Promise<SmartActionResult> {\n    const toastCaption = `<strong>${this.htmlSanitizer.escapeText(\n      customAction.displayName,\n    )}</strong> action`;\n    const defaultSuccessMessage = `${toastCaption} succeeded.`;\n    const {\n      actionRequest: { allRecords, selectedRecordsCount, ids, signedApprovalRequest },\n    } = customAction;\n    const isApproval = !!signedApprovalRequest;\n\n    const toastId = guidFor({});\n\n    await this.lianaSession.waitRefreshIfNecessary();\n\n    try {\n      // The beforeunload event is fired when the window, the document and its resources are about to be unloaded. The document is still visible and the event is still cancelable at this point.\n\n      // This event enables a web page to trigger a confirmation dialog asking the user if they really want to leave the page. If the user confirms, the browser navigates to the new page, otherwise it cancels the navigation.\n\n      // If you modify the beforeunload behavior please run the \"should handle the beforeunload event\" test locally (it's been skip due to CI issue)\n      window.addEventListener('beforeunload', this.preventInteractions, { capture: true });\n\n      if (beforeCustomActionExecution) await beforeCustomActionExecution();\n\n      const response = await this.actionLianaCaller.perform(customAction, toastId, values);\n\n      if (afterCustomActionExecution) await afterCustomActionExecution();\n\n      let data: SmartActionResponseData;\n      let refreshInfo: { relationships: string[] } | undefined;\n      if (\n        !customAction.download\n        && response.headers.get('Content-Type')\n        && response.headers.get('Content-Type').includes('application/json')\n      ) {\n        data = (await response.json()) as SmartActionResponseData;\n      }\n\n      const currentInboxAssignment = this.inboxState.currentInboxAssignment;\n      let recordIds = ids;\n      const isRecordInCurrentInboxAssignment =\n        currentInboxAssignment\n        && (ids as (string | number)[]).some(\n          (id) => String(id) === currentInboxAssignment.recordId,\n        );\n      // Put the current inbox assignment record id first so it appears first in the activity log\n      if (isRecordInCurrentInboxAssignment) {\n        recordIds = [\n          currentInboxAssignment.recordId,\n          ...recordIds.filter((id) => String(id) !== currentInboxAssignment.recordId),\n        ] as string[];\n      }\n      const inbox = isRecordInCurrentInboxAssignment ? currentInboxAssignment.inbox : undefined;\n\n      // We don't want to delay the response to the client for an activity log\n      void this.activityTracker.trackWrite({\n        action: 'action',\n        label: `triggered the action \"${customAction.name}\"`,\n        collection: await customAction.collection,\n        recordIds,\n        inbox,\n      });\n\n      if (isApproval) {\n        this.segment.trackEvent('Approved custom action', {\n          selectedRecordsCount,\n          areAllRecordsSelected: allRecords,\n        });\n      }\n\n      if ([200, 201, 202, 203].includes(response.status) && data) {\n        refreshInfo = await this.handleCustomActionData(\n          customAction,\n          data,\n          defaultSuccessMessage,\n          toastId,\n          isRunByApprover,\n        );\n      } else {\n        this.notificationFeature.updateToastr(\n          ToastrTypeEnum.Success,\n          defaultSuccessMessage,\n          toastId,\n          { isHTML: true },\n        );\n      }\n      return { success: true, refreshInfo };\n    } catch (error) {\n      if (isEmberError(error)) {\n        // TODO: Refactor move all Business errors CustomActionRequiresApprovalError, ApprovalNotAllowedError, CustomActionTriggerForbiddenError\n        if (getFirstErrorName(error) === 'CustomActionRequiresApprovalError') {\n          if (!customAction.fields?.length) {\n            this.notificationFeature.removeToastr(toastId);\n          }\n\n          return await this.showRequestApprovalModalOrRequestApproval(\n            customAction,\n            (error.errors[0].data as { roleIdsAllowedToApprove: string[] }).roleIdsAllowedToApprove,\n          );\n        }\n        await this.handleCustomActionError(error, toastCaption, toastId, customAction);\n      } else {\n        await this.handleCustomActionUserCustomizedError(error, toastId, customAction, isApproval);\n      }\n    } finally {\n      // We need to remove the event listener as the execution is done, the user can now do everything he wants.\n      window.removeEventListener('beforeunload', this.preventInteractions, { capture: true });\n    }\n\n    return undefined;\n  }\n\n  private async handleCustomActionData(\n    customAction: CustomActionModel,\n    data: SmartActionResponseData,\n    defaultSuccessMessage: string,\n    toastId: string,\n    isRunByApprover: boolean,\n  ) {\n    let refreshInfo: { relationships: string[] } | undefined;\n\n    if (data.webhook) {\n      try {\n        await webhookHandler(data.webhook);\n      } catch (error) {\n        this.notificationFeature.updateToastr(\n          ToastrTypeEnum.Error,\n          (error as Error).message || (error as Error).name,\n          toastId,\n        );\n        return refreshInfo;\n      }\n    }\n\n    // NOTICE: redirect_to is used by Rails agents and supported\n    const redirectTo = replaceOldRouteNamesByNewRouteNames(\n      data.redirectTo || data.redirect_to,\n      'Please update your redirectTo response',\n    );\n\n    if (redirectTo && !isRunByApprover) {\n      // Don't redirect approvers\n      if (typeof redirectTo === 'string' && redirectTo !== '') {\n        if (urlUtils.isUrlInternalOrRelative(redirectTo)) {\n          this.router.transitionTo(redirectTo).catch(() => {\n            console.error(\n              `Could not redirect you after executing Smart Action \"${customAction.displayName}\" (${customAction.name}), because the requested URL was not found:`,\n            );\n            console.error(redirectTo);\n          });\n        } else {\n          window.open(redirectTo, '_blank');\n        }\n      } else {\n        console.error(\n          `Could not redirect you after executing Smart Action \"${customAction.displayName}\" (${customAction.name}), because the redirection URL could not be parsed:`,\n        );\n        console.error(redirectTo);\n      }\n    }\n\n    if (data.html) {\n      this.actionFeatureService.showSmartActionHTMLResponse(customAction, data.html);\n    }\n\n    // NOTICE: Handle Summary View related data sections to refresh.\n    if (data.refresh?.relationships) {\n      refreshInfo = data.refresh;\n    }\n\n    this.notificationFeature.updateToastr(\n      ToastrTypeEnum.Success,\n      data.success || defaultSuccessMessage,\n      toastId,\n      { isHTML: true },\n    );\n\n    if (isArray(refreshInfo?.relationships)) {\n      refreshInfo.relationships.forEach((relationship) => {\n        const fieldFound = customAction.collection\n          .get('fields')\n          .find((field) => field.fieldName === relationship);\n        if (fieldFound) {\n          this.betaCollectionListCommunicator.refreshAll(fieldFound);\n        } else {\n          const message = `Custom action \"${customAction.displayName}\" requested non existing related data \"${relationship}\" refresh.`;\n          console.warn(message);\n          this.notificationFeature.createToastr(ToastrTypeEnum.Warning, message);\n        }\n      });\n    }\n\n    return refreshInfo;\n  }\n\n  private monitorCustomActionError(error: unknown, customAction: CustomActionModel) {\n    let managedError: Error;\n    if (error instanceof HttpError) {\n      const status = getFirstErrorStatus(error);\n\n      if (status === 401) {\n        managedError = new UnauthorizedCustomActionAgentError(customAction.name, error);\n      } else if (status === 403) {\n        managedError = new ForbiddenCustomActionAgentError(customAction.name, error);\n      } else if (status === 404) {\n        managedError = new RecordNotFoundCustomActionAgentError(customAction.name, error);\n      } else if (status >= 500) {\n        managedError = new ServerFailCustomActionAgentError(customAction.name, error);\n      } else if (status >= 400) {\n        managedError = new UnexpectedDataCustomActionAgentError(customAction.name, error);\n      } else {\n        managedError = new UnknownCustomActionAgentError(customAction.name, error);\n      }\n    } else if (error instanceof NoNetworkFailedToFetchError) {\n      managedError = new NoNetworkCustomActionAgentError(customAction.name, error);\n    } else if (error instanceof RequestTimeoutFailedToFetchError) {\n      managedError = new RequestTimeoutCustomActionAgentError(customAction.name, error);\n    } else if (error instanceof CORSOrServerUnreachableFailedToFetchError) {\n      managedError = new CORSOrServerUnreachableCustomActionAgentError(customAction.name, error);\n    } else {\n      managedError = new UnknownCustomActionAgentError(customAction.name, error as Error);\n    }\n\n    this.errorHandler.handleSilentError(managedError as Error);\n  }\n\n  private async handleCustomActionUserCustomizedError(\n    error: unknown,\n    toastId: string,\n    customAction: CustomActionModel,\n    isApproval: boolean,\n  ) {\n    this.monitorCustomActionError(error, customAction);\n\n    // Customizing error response - handle user initiated errors\n    if (isCustomActionError(error) && typeof error.body?.html === 'string') {\n      // E.G resultBuilder.error(.., { html: ...}) or res.status(400).send({ html: 'The company was already live!' });\n      this.actionFeatureService.showSmartActionHTMLResponse(customAction, error.body.html, {\n        isError: true,\n        isApproval,\n      });\n\n      // E.G display any additional error\n      if ('error' in error.body && typeof error.body.error === 'string') {\n        this.notificationFeature.updateToastr(ToastrTypeEnum.Error, error.body.error, toastId, {\n          duration: 0,\n        });\n      } else {\n        // Or remove it\n        this.notificationFeature.removeToastr(toastId);\n      }\n    } else if (\n      typeof error === 'object'\n      && 'body' in error\n      && typeof error.body === 'object'\n      && 'error' in error.body\n      && typeof error.body?.error === 'string'\n    ) {\n      // E.G resultBuilder.error(..) or res.status(400).send({ error: 'The company was already live!' });\n      this.notificationFeature.updateToastr(ToastrTypeEnum.Error, error.body.error, toastId, {\n        duration: 0,\n      });\n    } else {\n      this.notificationFeature.updateToastr(\n        ToastrTypeEnum.Error,\n        `Something went wrong: ${(error as Error).message}`,\n        toastId,\n        {\n          duration: 0,\n        },\n      );\n    }\n\n    throw error;\n  }\n\n  async handleCustomActionError(\n    error: AdapterError,\n    toastCaption: string,\n    toastId: string,\n    customAction: CustomActionModel,\n  ) {\n    this.monitorCustomActionError(error, customAction);\n\n    switch (error.status) {\n      case 0:\n        this.notificationFeature.updateToastr(\n          ToastrTypeEnum.Error,\n          `${toastCaption} cannot be reached. Is your server running? `\n            + 'Did you configure this Smart Action properly?',\n          toastId,\n          { isHTML: true },\n        );\n        break;\n\n      case 400:\n        this.notificationFeature.updateToastr(ToastrTypeEnum.Error, 'Bad request.', toastId);\n        break;\n\n      case 401:\n        this.notificationFeature.updateToastr(ToastrTypeEnum.Error, 'Session expired.', toastId);\n\n        // NOTICE: Log the user out of the current rendering.\n        try {\n          this.lianaSession.invalidate();\n        } finally {\n          this.tracker.captureMessage('Agent logout: 401 (custom-action)', 'warning', {\n            data: error.body,\n          });\n        }\n        break;\n\n      case 403:\n        if (getFirstErrorName(error) === 'CustomActionTriggerForbiddenError') {\n          this.notificationFeature.updateToastr(\n            ToastrTypeEnum.Error,\n            getFirstErrorDetail(error),\n            toastId,\n            {\n              duration: 0,\n            },\n          );\n        } else if (getFirstErrorName(error) === 'ApprovalNotAllowedError') {\n          // Remove the toastr if any\n          this.notificationFeature.removeToastr(toastId);\n\n          // Rethrow to let the approvals route handle this error\n          throw error;\n        } else {\n          this.notificationFeature.updateToastr(\n            ToastrTypeEnum.Error,\n            \"You don't have permission for this action.\",\n            toastId,\n          );\n        }\n        break;\n\n      case 404:\n        this.notificationFeature.updateToastr(\n          ToastrTypeEnum.Error,\n          `${toastCaption} cannot be reached.`,\n          toastId,\n          { isHTML: true },\n        );\n        break;\n\n      case 422:\n        this.notificationFeature.updateToastr(\n          ToastrTypeEnum.Error,\n          getFirstErrorDetail(error),\n          toastId,\n          {\n            duration: 0,\n          },\n        );\n        break;\n\n      default:\n        this.notificationFeature.updateToastr(\n          ToastrTypeEnum.Error,\n          `Unexpected error with ${toastCaption}.`,\n          toastId,\n          { isHTML: true },\n        );\n        console.error(error);\n    }\n\n    throw error;\n  }\n\n  async getEnabledCustomActions(actions: CustomActionModel[], records: ClientRecordModel[]) {\n    // Global, single and bulk actions may be enabled for specific selections lengths\n    const actionsForSelectionLength = actions.filter((action) =>\n      action.isAllowedForSelectedRecordsCount(records.length),\n    );\n\n    // Some actions can be enabled without server requests\n    const [enabledActions, actionsToEnable] = partition(\n      actionsForSelectionLength,\n      (action) =>\n        action.isNotRestrictedToSegments\n        || action.isAllowedForEveryRecordThroughBasicSegments(records),\n    );\n\n    // We group live query segments in unions to query them in a single request\n    // We put each smart segment in a \"union\" of one to query them separately\n    let unions: SegmentModel[][] = actionsToEnable\n      .flatMap((action) => [\n        action.liveQuerySegments.toArray(),\n        ...action.smartSegments.toArray().map((segment) => [segment]),\n      ])\n      .filterBy('length');\n    unions = uniqWith(unions, isEqual);\n\n    // We don't need to query the records already found in at least\n    // one basic segment of every smart action\n    const recordsToQuery = records.filter(\n      (record) => !actions.every((action) => action.isAllowedForRecordThroughBasicSegments(record)),\n    );\n\n    const recordsInUnions = await Promise.all(\n      unions.map((union) => this._queryRecordsInUnion(recordsToQuery, union)),\n    );\n\n    // We enable the smart actions for which we found every records in at least one segment\n    return (\n      enabledActions.concat(\n        actionsToEnable.filter((action) =>\n          records.every(\n            (record) =>\n              action.isAllowedForRecordThroughBasicSegments(record)\n              || unions.any(\n                (segments, index) =>\n                  differenceBy(segments, action.segments.toArray(), 'id').length === 0\n                  && !!recordsInUnions[index].findBy('id', record.id),\n              ),\n          ),\n        ),\n      ) || []\n    );\n  }\n\n  // union is either an array of one or many live query segments or an array of one smart segment\n  private async _queryRecordsInUnion(records: ClientRecordModel[], union: SegmentModel[]) {\n    const { collection } = union[0];\n    const query = {\n      [`fields[${collection.name}]`]: collection.primaryKey,\n    };\n    if (\n      this.lianaFeatures.isFeatureCompatible(\n        FeaturesEnum.GenericFilters,\n        this.lianaSession.currentEnvironment,\n      )\n    ) {\n      try {\n        query.filters = JSON.stringify(\n          this.store.createRecord('filter', {\n            filteredCollection: collection,\n            type: 'or',\n            conditions: records.map((record) => ({\n              fieldName: collection.primaryKey,\n              operator: OPERATOR_IS.displayName,\n              value: record.id,\n            })),\n          }).queryFilter,\n        );\n      } catch (error) {\n        this.errorHandler.handleSilentError(new UnknownFilterForVisibilityError(error as Error), {\n          records,\n        });\n\n        throw error;\n      }\n    } else {\n      query.filterType = 'or';\n      query[`filter[${collection.primaryKey}]`] = records.mapBy('id').join(',');\n    }\n    if (union[0].query) {\n      query.segmentQuery =\n        union.length === 1\n          ? union[0].query\n          : union\n              .map((segment) => segment.query.replace(/;\\s*/i, ''))\n              .join('/*MULTI-SEGMENTS-QUERIES-UNION*/ UNION ');\n      if (union[0].connectionName != null) {\n        query.connectionName = union[0].connectionName;\n      }\n    } else {\n      query.segment = union[0].name;\n    }\n    try {\n      return (await this.store.query(\n        collection.emberModelName as keyof ModelRegistry,\n        query,\n      )) as unknown as ClientRecordModel[];\n    } catch (error) {\n      console.error(error);\n      return [];\n    }\n  }\n\n  /**\n   * @private\n   * https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event#examples\n   *\n   * Note: For security reasons, only a generic string not under the control of the webpage is shown instead of the returned string.\n   *\n   * WARNING If you modify the preventInteractions behavior please run the \"should handle the beforeunload event\" test locally (it's been skip due to CI issue)\n   */\n  @actionDecorator\n  private preventInteractions(event: BeforeUnloadEvent) {\n    event.preventDefault();\n    event.returnValue = '';\n\n    // Activation using return \"string\";\n    return '';\n  }\n}\n","import type { AttributesFor } from '@ember-data/custom';\nimport type AbstractModel from 'client/data/models/abstract-model';\nimport type { Relationship } from 'client/data/models/abstract-model';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type FieldModel from 'client/data/models/field';\nimport type { UnionFormElementNestedDocument } from 'client/data/models/form-element';\nimport type WidgetConfigurationFragment from 'client/data/models/widget-configuration';\nimport type { WidgetConfigurationAttributes } from 'client/data/models/widget-configuration';\nimport type { FieldType } from 'client/decorators/model-field';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaServerFetchService from 'client/legacy/services/liana-server-fetch';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\n// TODO fixme\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { HttpError } from 'client/utils/errors';\n\nimport Service, { service } from '@ember/service';\nimport { isNone } from '@ember/utils';\nimport { isArray } from 'lodash';\nimport { v1 as uuidv1 } from 'uuid';\n\nimport { type FormElement, getFormElementType } from 'client/data/models/custom-action';\nimport { isNestedDocumentRelationship } from 'client/data/utils/nested-document-utils';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport {\n  getFirstErrorDetail,\n  getFirstErrorStatus,\n  isEmberError,\n} from 'client/utils/ember-error-util';\nimport { WidgetEditTypeEnum } from 'client/utils/widgets';\n\nexport type RawField = {\n  field: string;\n  fieldName?: string;\n  label?: string;\n  type?: FieldType | [FieldType];\n  reference?: string;\n  enums?: string[];\n  description?: string;\n  isRequired?: boolean;\n  isReadOnly?: boolean;\n  value?: unknown;\n  defaultValue?: unknown;\n  widgetEdit?: WidgetConfigurationAttributes;\n  hook?: string;\n};\n\nexport default class ActionFormValuesGetterInternalBusinessService extends Service {\n  @service store: StoreService;\n  @service lianaFeatures: LianaFeaturesService;\n  @service lianaServerFetch: LianaServerFetchService;\n  @service lianaSession: LianaSessionService;\n  @service toastr: ToastrService;\n  @service private tracker: TrackerService;\n\n  @service('feature/notification')\n  notificationService: NotificationFeatureService;\n\n  getRecordData(record: ClientRecordModel) {\n    const customActionValuesRequest = this.store.createRecord('custom-action-values-request');\n    customActionValuesRequest.set('values', record.getAttributesSerialized());\n\n    return customActionValuesRequest.serialize();\n  }\n\n  updateFieldWidgetEditByName(\n    customAction: CustomActionModel,\n    field: RawField,\n    searchField: string,\n  ) {\n    // Do not create a fragment and assign it ! It's breaking the search hook. The properties are weirdly not considered as dirty\n    this.updateFieldWidgetEdit(\n      customAction.fields.findBy('fieldName', searchField),\n      field.widgetEdit,\n    );\n  }\n\n  public updateFieldWidgetEdit(field: FieldModel, widgetEdit: WidgetConfigurationAttributes) {\n    // Belongsto doesn't support the widget dropdown, but some users still use it in agent v1 and it used to work.\n    // To fix that we will just change the widget to BelongsToSelect if the field is a belongsTo\n    if (widgetEdit?.name === WidgetEditTypeEnum.Dropdown && field.isBelongsTo) {\n      console.error(\n        `BelongsTo field with a \"${WidgetEditTypeEnum.Dropdown}\" widget detected (Not supported). Changing to \"${WidgetEditTypeEnum.BelongsToSelect}\"`,\n      );\n      widgetEdit.name = WidgetEditTypeEnum.BelongsToSelect;\n    }\n    field.widgetEdit = (widgetEdit as WidgetConfigurationFragment) || null;\n  }\n\n  // update customAction.formElement to avoid replacing the array\n  // this allows to keep the focus on a field after a changeHook\n  handleLayout(customAction: CustomActionModel, layoutRaw?: FormElement[], fields?: string[]) {\n    const layout = this.getLayoutElementsFromRaw(customAction.formElements, layoutRaw);\n    customAction.formElements =\n      layout?.length > 0\n        ? layout\n        : customAction.getBaseLayout(fields.map((fieldName) => ({ fieldName })));\n    if (customAction.formElements === undefined) customAction.formElements = [];\n  }\n\n  private getLayoutElementsFromRaw(\n    formElements: UnionFormElementNestedDocument[],\n    layoutRaw?: FormElement[],\n  ) {\n    return layoutRaw?.reduce<UnionFormElementNestedDocument[]>((newElements, layoutElement) => {\n      const existingElement = formElements.find(\n        (element) =>\n          element.component === layoutElement.component && !newElements.includes(element),\n      );\n      if (existingElement) {\n        return [...newElements, this.updateLayoutElementProperties(existingElement, layoutElement)];\n      }\n      return [\n        ...newElements,\n        this.store.createRecord(\n          getFormElementType(layoutElement),\n          layoutElement,\n        ) as UnionFormElementNestedDocument,\n      ];\n    }, []);\n  }\n\n  private updateLayoutElementProperties(\n    layoutElement: UnionFormElementNestedDocument,\n    layoutRaw: FormElement,\n  ) {\n    (layoutElement.constructor as typeof AbstractModel).eachAttribute((key, propertyDefinition) => {\n      const propertyName = key as AttributesFor<UnionFormElementNestedDocument>;\n      if (\n        isNestedDocumentRelationship(propertyDefinition as unknown as Relationship)\n        && layoutRaw[propertyName]\n      ) {\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        layoutElement[propertyName] = isArray(layoutRaw[propertyName])\n          ? this.getLayoutElementsFromRaw(\n              layoutElement[propertyName] as unknown as UnionFormElementNestedDocument[],\n              layoutRaw[propertyName] as FormElement[],\n            )\n          : this.updateLayoutElementProperties(\n              layoutElement[propertyName] as unknown as UnionFormElementNestedDocument,\n              layoutRaw[propertyName] as FormElement,\n            );\n      } else if (propertyName !== 'id') {\n        layoutElement[propertyName] = layoutRaw[propertyName] as unknown as string;\n      }\n    });\n\n    return layoutElement;\n  }\n\n  async handleFields(\n    customAction: CustomActionModel,\n    fields: RawField[],\n    {\n      shouldSetDefaultValue = false,\n      shouldUpdateFieldValue,\n    }: {\n      shouldSetDefaultValue?: boolean;\n      shouldUpdateFieldValue?: (field: RawField) => boolean;\n    } = {},\n  ) {\n    // Soft delete fields locally\n    const fieldsToDelete = customAction.fields.filter(\n      (customActionField) => !fields.some((field) => field.field === customActionField.fieldName),\n    );\n    fieldsToDelete.forEach((customActionField) => customActionField.deleteRecord());\n\n    const promises: Promise<void>[] = [];\n    fields.forEach((field, i) => {\n      const customActionField = customAction.fields.findBy('fieldName', field.field);\n      if (customActionField) {\n        const wasDeleted = customActionField.isDeleted;\n\n        // Reset the field if it was removed but re-added afterwards\n        if (customActionField.isDeleted) customActionField.rollbackAttributes();\n\n        // Update existing field\n        customActionField.fieldName = field.field;\n        customActionField.type = field.type;\n        customActionField.reference = field.reference;\n        customActionField.enums = field.enums;\n        customActionField.description = field.description;\n        customActionField.isRequired = field.isRequired;\n        customActionField.isReadOnly = field.isReadOnly;\n        customActionField.displayName = field.label || field.field;\n\n        if (\n          shouldSetDefaultValue\n          && isNone(customActionField.customActionValue)\n          && isNone(field.value)\n          && field.defaultValue !== undefined\n        ) {\n          customActionField.customActionValue = field.defaultValue;\n        } else if (wasDeleted || shouldUpdateFieldValue?.(field)) {\n          customActionField.customActionValue = field.value;\n          // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n          // @ts-ignore TODO: Fix this\n          customActionField.value = field.value;\n        }\n        customActionField.position = i + 1;\n        customActionField.hook = field.hook;\n        customActionField.areWidgetsInitialized = false;\n        this.updateFieldWidgetEdit(customActionField, field.widgetEdit);\n        promises.push(customActionField.ensureWidgetDefaults());\n\n        // FIXME: I don't think the next line is necessary\n        customActionField.notifyPropertyChange('customActionValue');\n      } else {\n        // Create missing field\n        customAction.fields.pushObject(\n          this.store.createRecord('field', {\n            fieldName: field.field || field.fieldName,\n            displayName: field.label || field.field || field.fieldName,\n            type: field.type,\n            reference: field.reference,\n            enums: field.enums,\n            description: field.description,\n            isRequired: field.isRequired,\n            isReadOnly: field.isReadOnly,\n            customActionValue: field.value,\n            widgetEdit: field.widgetEdit ?? {},\n            position: i + 1,\n            hook: field.hook,\n            id: uuidv1(),\n          }),\n        );\n      }\n    });\n\n    await Promise.all(promises);\n  }\n\n  async handleData<TResult>(url: string, data: unknown, msg: string) {\n    try {\n      const response = await this.lianaServerFetch.fetch(url, {\n        method: 'POST',\n        body: JSON.stringify(data),\n      });\n\n      const { status } = response;\n\n      const res = (await response.json()) as TResult;\n      return { res, status };\n    } catch (error) {\n      this.tracker.captureException(error as Error);\n      console.error(msg, error);\n      return { error, status: (error as HttpError).status };\n    }\n  }\n\n  async getValues(smartAction: CustomActionModel, record: ClientRecordModel) {\n    const data = this.getRecordData(record);\n\n    const url = `${smartAction.endpoint}/values`;\n    const errorMsg = '[forest] 🌳🌳🌳 Unexpected error on Smart Action Form values retrieval';\n    const { res } = await this.handleData<Record<string, unknown>>(url, data, errorMsg);\n\n    return res;\n  }\n\n  handleError(hook: 'load' | 'change' | 'search', status: number) {\n    let message = `An error occurred on form ${hook}. Check your server logs for more details.`;\n    if (status === 404) {\n      message = `The route called on form ${hook} is not reachable.`;\n    }\n    this.toastr.perform(ToastrTypeEnum.Error, message);\n  }\n\n  async getLoad(smartAction: CustomActionModel, record: ClientRecordModel) {\n    const environment = this.lianaSession.currentEnvironment;\n    const isLianaGlobalBulkHooksCompatible = this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.GlobalBulkSmartActionHook,\n      environment,\n    );\n\n    let data;\n\n    if (isLianaGlobalBulkHooksCompatible) {\n      data = smartAction.actionRequest.serialize();\n    } else {\n      data = {\n        recordIds: [record.id],\n        collectionName: smartAction.get('collection.name' as keyof CustomActionModel),\n      };\n    }\n\n    const url = `${smartAction.get('endpoint')}/hooks/load`;\n    const errorMsg = '[forest] 🌳🌳🌳 Unexpected error on Smart Action Form load hook retrieval';\n    const { res, error, status } = await this.handleData<{\n      fields: RawField[];\n      layout: FormElement[];\n    }>(url, data, errorMsg);\n\n    if (isEmberError(error) && getFirstErrorStatus(error) < 500) {\n      this.notificationService.createToastr(ToastrTypeEnum.Error, getFirstErrorDetail(error));\n      return null;\n    } else if (error) {\n      this.handleError('load', status);\n      return null;\n    }\n\n    return { fields: res.fields, layout: res.layout };\n  }\n\n  // NOTICE: rework once `values` has been deprecated and removed.\n  async perform(\n    smartAction: CustomActionModel,\n    record: ClientRecordModel,\n  ): Promise<{\n    fields?: RawField[];\n    layout?: FormElement[];\n    defaultValues?: Record<string, unknown>;\n  }> {\n    const environment = this.lianaSession.currentEnvironment;\n    const isLianaGlobalBulkHooksCompatible = this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.GlobalBulkSmartActionHook,\n      environment,\n    );\n\n    let defaultValues: Record<string, unknown>;\n    if (!isLianaGlobalBulkHooksCompatible) {\n      defaultValues = await this.getValues(smartAction, record);\n    }\n\n    const isLianaHooksCompatible = this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.Hooks,\n      environment,\n    );\n\n    let form: { fields: RawField[]; layout: FormElement[] };\n    if (isLianaHooksCompatible && smartAction.hooks && smartAction.hooks.load) {\n      form = await this.getLoad(smartAction, record);\n    }\n\n    return { defaultValues, ...form };\n  }\n}\n","import type CustomActionModel from 'client/data/models/custom-action';\nimport type { FormElement } from 'client/data/models/custom-action';\nimport type FieldModel from 'client/data/models/field';\nimport type ActionFormValuesGetterInternalBusinessService from 'client/features/action/services/internal-business/form-values-getter';\nimport type { RawField } from 'client/features/action/services/internal-business/form-values-getter';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaServerFetchService from 'client/legacy/services/liana-server-fetch';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { HttpError } from 'client/utils/errors';\n\nimport Service, { service } from '@ember/service';\nimport { waitForPromise } from '@ember/test-waiters';\nimport { isNone } from '@ember/utils';\nimport { didCancel, task, timeout } from 'ember-concurrency';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport {\n  getFirstErrorDetail,\n  getFirstErrorStatus,\n  isEmberError,\n} from 'client/utils/ember-error-util';\n\nexport default class ActionHooksHandlerInternalBusinessService extends Service {\n  @service lianaFeatures: LianaFeaturesService;\n  @service lianaServerFetch: LianaServerFetchService;\n  @service lianaSession: LianaSessionService;\n  @service('feature/action/internal-business/form-values-getter')\n  smartActionFormValuesGetter: ActionFormValuesGetterInternalBusinessService;\n\n  @service('feature/notification')\n  notificationService: NotificationFeatureService;\n\n  @service store: StoreService;\n\n  public canUseHooks(smartAction: CustomActionModel) {\n    if (!smartAction) return false;\n\n    const isLianaHooksCompatible = this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.SingleSmartActionValues,\n      this.lianaSession.currentEnvironment,\n    );\n    const isLianaGlobalBulkHooksCompatible = this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.GlobalBulkSmartActionHook,\n      this.lianaSession.currentEnvironment,\n    );\n    return (smartAction.isSingle && isLianaHooksCompatible) || isLianaGlobalBulkHooksCompatible;\n  }\n\n  public async handleLoadHooks(smartAction: CustomActionModel, selectedRecord: ClientRecordModel) {\n    // `loadedFields` are the fields returned by the `load` hook, e.g the smart action's form.\n    // `defaultValues` comes from the legacy `values` property, and is deprecated.\n    const { defaultValues, fields, layout } = await this.smartActionFormValuesGetter.perform(\n      smartAction,\n      selectedRecord,\n    );\n\n    // NOTICE: `load` hook take priority over `values`.\n    if (fields) {\n      // This will update the fields of the smart action from the payload the client sent us\n      await this.smartActionFormValuesGetter.handleFields(smartAction, fields, {\n        shouldSetDefaultValue: true,\n        shouldUpdateFieldValue: (field: RawField) => !isNone(field.value),\n      });\n\n      // handle layout after fields because on load, there is no pre-existing layout\n      this.smartActionFormValuesGetter.handleLayout(\n        smartAction,\n        layout,\n        fields.map(({ fieldName, field }) => fieldName || field),\n      );\n    } else {\n      // This mean there is no load hook, in that case just use the default values\n      smartAction.fields.forEach((field) => {\n        // Fix any dropdown widget on belongs to\n        this.smartActionFormValuesGetter.updateFieldWidgetEdit(field, field.widgetEdit);\n        field.customActionValue = defaultValues?.[field.fieldName] ?? null;\n      });\n    }\n  }\n\n  public async handleSearchHooks(\n    smartAction: CustomActionModel,\n    searchField: FieldModel,\n    cachedSearchValues: { [key: string]: string },\n  ) {\n    try {\n      await this.callSearchHook.perform(smartAction, searchField.fieldName, cachedSearchValues);\n    } catch (error) {\n      if (didCancel(error)) {\n        console.debug('Search hook has been canceled');\n        return;\n      }\n      throw error;\n    }\n  }\n\n  public async handleChangeHooks(\n    smartAction: CustomActionModel,\n    changedField: FieldModel,\n    cachedFormValues: { [key: string]: unknown },\n    cachedSearchValues: { [key: string]: string },\n    records: { id: string }[],\n  ) {\n    if (this.isFieldDirtyAndHasChangeHook(smartAction, changedField, cachedFormValues)) {\n      try {\n        return {\n          hasFieldBeenUpdated: await this.callChangeHook.perform(\n            smartAction,\n            changedField.fieldName,\n            cachedFormValues,\n            cachedSearchValues,\n            records,\n            this.buildShouldUpdateFieldValue(smartAction),\n          ),\n          wasCancelled: false,\n        };\n      } catch (error) {\n        if (didCancel(error)) {\n          console.debug('Change hook has been canceled');\n          return {\n            hasFieldBeenUpdated: false,\n            wasCancelled: true,\n          };\n        }\n        throw error;\n      }\n    }\n    return {\n      hasFieldBeenUpdated: false,\n      wasCancelled: false,\n    };\n  }\n\n  private isFieldDirtyAndHasChangeHook(\n    smartAction: CustomActionModel,\n    changedField: FieldModel,\n    cachedFormValues: { [key: string]: unknown },\n  ) {\n    const hasFieldChangeSinceLastHookCall =\n      JSON.stringify(changedField.customActionValue)\n      !== JSON.stringify(cachedFormValues[changedField.fieldName]);\n    const hasHooksForThisField =\n      smartAction.hooks?.change?.includes(changedField.hook)\n      || smartAction.hooks?.change?.includes(changedField.fieldName);\n    return hasFieldChangeSinceLastHookCall && hasHooksForThisField;\n  }\n\n  private serializeData(\n    smartAction: CustomActionModel,\n    extraAttributes: { changedField: string } | { searchField?: string },\n    cachedFormValues?: { [key: string]: unknown },\n    cachedSearchValues?: { [key: string]: string },\n    records?: { id: string }[],\n  ) {\n    const fields = smartAction.fieldsOrdered.map((field) => ({\n      field: field.fieldName,\n      type: field.type ?? null,\n      reference: field.reference ?? null,\n      enums: field.enums ?? null,\n      description: field.description ?? null,\n      isRequired: field.isRequired ?? null,\n      value: field.customActionValue ?? null,\n      previousValue: cachedFormValues?.[field.fieldName] ?? null,\n      searchValue: cachedSearchValues?.[field.fieldName] ?? null,\n      widgetEdit: field.widgetEdit ?? null,\n      isReadOnly: field.isReadOnly ?? null,\n      hook: field.hook,\n    }));\n\n    const isLianaGlobalBulkHooksCompatible = this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.GlobalBulkSmartActionHook,\n      this.lianaSession.currentEnvironment,\n    );\n\n    if (isLianaGlobalBulkHooksCompatible) {\n      const customActionHookRequest = this.store.createRecord('custom-action-hook-request', {\n        ...smartAction.actionRequest.toJSON(),\n        fields,\n        ...extraAttributes,\n      });\n      const body = customActionHookRequest.serialize() as {\n        data: { attributes: { [key: string]: unknown } };\n      };\n\n      // Remove undefined attributes\n      ['search_field', 'search_value', 'changed_field'].forEach((key) => {\n        if (isNone(body.data.attributes[key])) {\n          delete body.data.attributes[key];\n        }\n      });\n\n      return body;\n    }\n\n    return {\n      fields,\n      recordIds: records?.map(({ id }) => id),\n      collectionName: smartAction.collection.get('name'),\n      ...extraAttributes,\n    };\n  }\n\n  private callChangeHook = task(\n    { restartable: true },\n    async (\n      smartAction: CustomActionModel,\n      changedFieldName: string,\n      cachedFormValues: { [key: string]: unknown },\n      cachedSearchValues: { [key: string]: string },\n      records: { id: string }[],\n      shouldUpdateFieldValue: (field: RawField) => boolean,\n    ) => {\n      // Debounce the task\n      await timeout(500);\n\n      const url = `${smartAction.endpoint}/hooks/change`;\n      const data = this.serializeData(\n        smartAction,\n        {\n          changedField: changedFieldName,\n        },\n        cachedFormValues,\n        cachedSearchValues,\n        records,\n      );\n      const request = await this.lianaServerFetch.abortableFetch(url, {\n        method: 'POST',\n        body: JSON.stringify(data),\n      });\n\n      try {\n        const response = await waitForPromise(request.ready);\n        const { fields, layout } = (await response.json()) as {\n          fields: RawField[];\n          layout: FormElement[];\n        };\n\n        if (fields) {\n          // handle layout before fields to avoid deleting fields that are referenced in the layout\n          this.smartActionFormValuesGetter.handleLayout(\n            smartAction,\n            layout,\n            fields.map(({ fieldName, field }) => fieldName || field),\n          );\n\n          await this.smartActionFormValuesGetter.handleFields(smartAction, fields, {\n            shouldUpdateFieldValue,\n          });\n\n          return true;\n        }\n        return false;\n      } catch (error) {\n        console.error(error);\n        if (isEmberError(error) && getFirstErrorStatus(error) < 500) {\n          this.notificationService.createToastr(ToastrTypeEnum.Error, getFirstErrorDetail(error));\n        } else {\n          this.smartActionFormValuesGetter.handleError('change', (error as HttpError).status);\n        }\n        return false;\n      } finally {\n        // The finally block will be executed if the task has been canceled, in that case we need to abort the fetch\n        request.abort();\n      }\n    },\n  );\n\n  private callSearchHook = task(\n    { restartable: true },\n    async (\n      smartAction: CustomActionModel,\n      searchedFieldName: string,\n      cachedSearchValues: { [key: string]: string },\n    ) => {\n      // Debounce the task\n      await timeout(500);\n\n      const url = `${smartAction.endpoint}/hooks/search`;\n      const data = this.serializeData(\n        smartAction,\n        {\n          searchField: searchedFieldName,\n        },\n        {},\n        cachedSearchValues,\n      );\n      const request = await this.lianaServerFetch.abortableFetch(url, {\n        method: 'POST',\n        body: JSON.stringify(data),\n      });\n\n      try {\n        const response = await waitForPromise(request.ready);\n        const { fields } = (await response.json()) as { fields: RawField[] };\n\n        if (fields) {\n          this.smartActionFormValuesGetter.updateFieldWidgetEditByName(\n            smartAction,\n            fields[0],\n            searchedFieldName,\n          );\n        }\n      } catch (error) {\n        console.error(error);\n        if (isEmberError(error) && getFirstErrorStatus(error) < 500) {\n          this.notificationService.createToastr(ToastrTypeEnum.Error, getFirstErrorDetail(error));\n        } else {\n          this.smartActionFormValuesGetter.handleError('search', (error as HttpError).status);\n        }\n      } finally {\n        // The finally block will be executed if the task has been canceled, in that case we need to abort the fetch\n        request.abort();\n      }\n    },\n  );\n\n  /**\n   * We don't want values to be updated every time in the form, because there is a delay between\n   * the time the user changes the value and the time we receive a response from the agent.\n   * In the meantime, users can change other values.\n   * If a value changed between the time we call the agent and the time we receive the reponse,\n   * user's changes should not be overwritten.\n   * On the other hand, we should override values when the agent updates them.\n   */\n  private buildShouldUpdateFieldValue(smartAction: CustomActionModel) {\n    const valuesAtCallTime = this.getCurrentFormValues(smartAction);\n\n    return (field: RawField): boolean => {\n      const valueAtCallTime = valuesAtCallTime[field.field];\n      const valueWhenReceivingResponse = smartAction.fields.findBy('fieldName', field.field)\n        ?.customActionValue;\n\n      // We don't want to update the value if it has been updated by the user in the meantime\n      return JSON.stringify(valueAtCallTime) === JSON.stringify(valueWhenReceivingResponse);\n    };\n  }\n\n  private getCurrentFormValues(smartAction: CustomActionModel): Record<string, unknown> {\n    return smartAction.fields.reduce(\n      (acc, field) => ({\n        ...acc,\n        [field.fieldName]: field.customActionValue,\n      }),\n      {} as Record<string, unknown>,\n    );\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type CollectionModel from 'client/data/models/collection';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type ActionCustomActionInternalBusinessService from 'client/features/action/services/internal-business/custom-action';\nimport type CollectionBusinessService from 'client/legacy/services/business/collection';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\n\nimport { ActionTypeEnum } from 'client/data/models/custom-action';\nimport ActionNotFoundActionIntentError from 'client/features/action/errors/action-intent/action-not-found-action-intent-error';\nimport IncorrectIdsStructureActionIntentError from 'client/features/action/errors/action-intent/incorrect-ids-structure-action-intent-error';\nimport IncorrectParamsStructureActionIntentError from 'client/features/action/errors/action-intent/incorrect-params-structure-action-intent-error';\nimport MissingIdForSingleBulkActionIntentError from 'client/features/action/errors/action-intent/missing-ids-for-single-bulk-action-intent-error';\nimport ParamsNotParsableActionIntentError from 'client/features/action/errors/action-intent/params-not-parsable-action-intent-error';\nimport RecordsFetchActionIntentError from 'client/features/action/errors/action-intent/records-fetch-action-intent-error';\nimport RecordsNotFoundActionIntentError from 'client/features/action/errors/action-intent/records-not-found-action-intent-error';\nimport TooManyIdsForSingleActionIntentError from 'client/features/action/errors/action-intent/too-many-ids-for-single-action-intent-error';\n\nexport default class ActionIntentInternalBusinessService extends Service {\n  @service('feature/action/internal-business/custom-action')\n  customActionService: ActionCustomActionInternalBusinessService;\n\n  @service segmentTracker: SegmentTrackerService;\n  @service('business/collection') collectionBusinessService: CollectionBusinessService;\n\n  async openActionIntentFromTransition(transition: Transition, collection: CollectionModel) {\n    const actionIntent = this.parseAndAssertActionIntentFromTransition(transition);\n\n    if (actionIntent) {\n      const actionModel = collection.customActions.find((a) => {\n        return a.name === actionIntent;\n      });\n\n      if (!actionModel) {\n        throw new ActionNotFoundActionIntentError(actionIntent);\n      }\n\n      const actionIntentParams = this.parseAndAssertActionIntentParamsFromTransition(transition);\n      const records = await this.parseRecordsIfNecessaryFromTransition(transition, actionModel);\n\n      await this.customActionService.triggerCustomAction(actionModel, records, null, null, {\n        actionIntentParams,\n      });\n\n      this.segmentTracker.trackActionIntentExecution(actionModel.name);\n\n      await this.collectionBusinessService.refreshAll(collection);\n    }\n\n    return null;\n  }\n\n  private parseAndAssertActionIntentFromTransition(transition: Transition) {\n    const actionIntent = transition.to.queryParams?.actionIntent || null;\n\n    if (actionIntent && (actionIntent as unknown as boolean) !== true) {\n      return actionIntent;\n    }\n\n    return null;\n  }\n\n  private parseAndAssertActionIntentParamsFromTransition(transition: Transition) {\n    let actionIntentParams: object = null;\n\n    try {\n      actionIntentParams = JSON.parse(\n        transition.to.queryParams?.actionIntentParams || null,\n      ) as object;\n    } catch (error) {\n      throw new ParamsNotParsableActionIntentError(error as Error);\n    }\n\n    if (\n      typeof actionIntentParams !== 'object'\n      || Array.isArray(actionIntentParams)\n      || (actionIntentParams as unknown as boolean) === true\n    ) {\n      throw new IncorrectParamsStructureActionIntentError();\n    }\n\n    return actionIntentParams;\n  }\n\n  private async parseRecordsIfNecessaryFromTransition(\n    transition: Transition,\n    actionModel: CustomActionModel,\n  ): Promise<ClientRecordModel[]> {\n    if (actionModel.type === ActionTypeEnum.Global) {\n      return [];\n    }\n\n    const idsFromIntent = this.enforceArrayOfIds(this.parseAndAssertIdsFromTransition(transition));\n\n    if (idsFromIntent.length > 1 && actionModel.type === ActionTypeEnum.Single) {\n      throw new TooManyIdsForSingleActionIntentError();\n    }\n\n    if (\n      [ActionTypeEnum.Single, ActionTypeEnum.Bulk].includes(actionModel.type)\n      && !idsFromIntent.length\n    ) {\n      throw new MissingIdForSingleBulkActionIntentError();\n    }\n\n    return this.getRecords(idsFromIntent, await actionModel.collection);\n  }\n\n  private enforceArrayOfIds(ids: string | string[]) {\n    if (!Array.isArray(ids)) {\n      return [ids];\n    }\n\n    return ids;\n  }\n\n  private parseAndAssertIdsFromTransition(transition: Transition) {\n    let idsFromIntent: string | string[] | boolean = null;\n\n    try {\n      idsFromIntent = JSON.parse(transition.to.queryParams?.actionIntentIds || null) as\n        | string\n        | string[]\n        | boolean;\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      throw new IncorrectIdsStructureActionIntentError();\n    }\n\n    // true means no data exists\n    if (!idsFromIntent || idsFromIntent === true)\n      throw new MissingIdForSingleBulkActionIntentError();\n\n    return idsFromIntent as unknown as string | string[];\n  }\n\n  private async getRecords(recordIds: string[], collectionModel: CollectionModel) {\n    if (recordIds.length) {\n      let records: ClientRecordModel[];\n      try {\n        records = await this.collectionBusinessService.getRecordsInCollectionOrSegment(\n          collectionModel,\n          recordIds,\n          [collectionModel.primaryField],\n        );\n        // eslint-disable-next-line sonarjs/no-ignored-exceptions\n      } catch (error) {\n        throw new RecordsFetchActionIntentError();\n      }\n\n      this.assertAllPresent(records, recordIds);\n\n      return records;\n    }\n\n    return [];\n  }\n\n  private assertAllPresent(records: ClientRecordModel[], recordIds: string[]) {\n    if (records.length !== recordIds.length) {\n      const existingIds = records.map((record) => record.id.toString());\n      const nonExistingRecords = recordIds.filter((id) => !existingIds.includes(id.toString()));\n\n      if (nonExistingRecords.length) {\n        throw new RecordsNotFoundActionIntentError(nonExistingRecords);\n      }\n    }\n  }\n}\n","import type CustomActionModel from 'client/data/models/custom-action';\nimport type AuthenticatedServerFetchService from 'client/legacy/services/authenticated-server-fetch';\nimport type HtmlSanitizerService from 'client/legacy/services/html-sanitizer';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaServerFetchService from 'client/legacy/services/liana-server-fetch';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\n// TODO fixme\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type { HttpMethod } from 'client/shared/types/http';\n\nimport Service, { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport window from 'ember-window-mock';\nimport { saveAs } from 'file-saver';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport extractFileNameFromContentDisposition from 'client/utils/extract-file-name-from-content-disposition';\n\nfunction getFileName(response: Response, type: string) {\n  const fileName = extractFileNameFromContentDisposition(\n    response.headers.get('Content-Disposition'),\n  );\n\n  return fileName || `file.${type}`;\n}\n\nfunction getUrlForAction(customAction: CustomActionModel) {\n  // NOTICE: Avoid errors for Smart Actions with a custom endpoint that do no start with \"/\".\n  let separator = '';\n  if (customAction.endpoint.charAt(0) !== '/') {\n    separator = '/';\n  }\n\n  return `${separator}${customAction.endpoint}`;\n}\n\nexport default class ActionLianaCallerInternalBusinessService extends Service {\n  @service store: StoreService;\n  @service toastr: ToastrService;\n  @service lianaSession: LianaSessionService;\n  @service htmlSanitizer: HtmlSanitizerService;\n  @service lianaServerFetch: LianaServerFetchService;\n  @service authenticatedServerFetch: AuthenticatedServerFetchService;\n  @service lianaFeatures: LianaFeaturesService;\n\n  isServiceFactory = true;\n\n  getData(\n    httpMethod: HttpMethod,\n    customAction: CustomActionModel,\n    values: Record<string, unknown>,\n  ) {\n    const { actionRequest } = customAction;\n    const customActionRequest = this.store.createRecord(\n      'custom-action-request',\n      actionRequest.toJSON(),\n    );\n\n    if (['POST', 'PUT', 'PATCH', 'DELETE'].indexOf(httpMethod) > -1) {\n      customActionRequest.values = values;\n    }\n\n    return JSON.stringify(customActionRequest.serialize());\n  }\n\n  async perform(customAction: CustomActionModel, toastId: string, values: Record<string, unknown>) {\n    // NOTICE: We trigger a loading toast only if there is no custom action fields (because\n    //         the sidepanel already deals with the loading information).\n    // NOTICE: We always display it when approving an action\n    if (!customAction.fields?.length || customAction.actionRequest.isApproval) {\n      this.toastr.perform(\n        ToastrTypeEnum.Loading,\n        htmlSafe(\n          `Triggering <strong>${this.htmlSanitizer.escapeText(\n            customAction.displayName,\n          )}</strong>...`,\n        ),\n        { duration: 0, id: toastId },\n      );\n    }\n\n    const url = getUrlForAction(customAction);\n\n    const headers = {};\n    if (this.lianaSession.supportsHeader('forest-environment-id')) {\n      headers['forest-environment-id'] = this.lianaSession.currentEnvironment?.id;\n    }\n    if (this.lianaSession.supportsHeader('forest-project-id')) {\n      headers['forest-project-id'] = this.lianaSession.currentProject?.id;\n    }\n    if (\n      this.lianaFeatures.isFeatureCompatible(\n        FeaturesEnum.RequestHeaderContext,\n        this.lianaSession.currentEnvironment,\n      )\n    ) {\n      headers['Forest-Context-Url'] = window.location.href;\n    }\n\n    const options: RequestInit & { headers: Record<string, string>; omitTimezone?: boolean } = {\n      headers,\n      method: customAction.httpMethod,\n      body: this.getData(customAction.httpMethod, customAction, values),\n      credentials: this.lianaSession.supportsOpenIdConnect ? 'include' : 'omit',\n    };\n\n    // timezone omitted on smart action calls for agent versions that do not support it\n    // due to unsupported url format with query params\n    if (\n      !this.lianaFeatures.isFeatureCompatible(\n        FeaturesEnum.ApplicationWideScopes,\n        this.lianaSession.currentEnvironment,\n      )\n    ) {\n      options.omitTimezone = true;\n    }\n\n    // NOTICE: File Download case\n    if (customAction.download) {\n      return this.downloadCustomAction({\n        customAction,\n        url,\n        options,\n      });\n    }\n\n    const { baseUrl } = customAction;\n    if (baseUrl) {\n      return this.authenticatedServerFetch.fetch(`${baseUrl}${url}`, options);\n    }\n\n    return this.lianaServerFetch.fetch(url, options);\n  }\n\n  /**\n   * @private\n   * @param {{\n   *  customAction: import('client/data/models/custom-action').CustomActionModel;\n   *  url: string;\n   *  headerAuthorization: string;\n   *  data: any\n   * }}\n   */\n  async downloadCustomAction({\n    customAction,\n    url,\n    options,\n  }: {\n    customAction: CustomActionModel;\n    url: string;\n    options: RequestInit & { headers: Record<string, string>; omitTimezone?: boolean };\n  }) {\n    const baseUrl = customAction.baseUrl || this.lianaSession.currentEnvironment.apiEndpoint;\n\n    const response = await this.authenticatedServerFetch.fetch(`${baseUrl}${url}`, options);\n\n    if (response.status === 200) {\n      // NOTICE: Extract the file extension from the Content-Type header.\n      //         Possible formats: \"text/csv\" or \"text/csv; charset=utf8\"\n      const typeArray = response.headers.get('Content-Type').split('/');\n      const [type] = typeArray[typeArray.length - 1].split(';');\n\n      const fileName = getFileName(response, type);\n      const blob = await response.blob();\n      saveAs(blob, fileName);\n    }\n    return response;\n  }\n}\n","import type CustomActionModel from 'client/data/models/custom-action';\nimport type FormElementPageNestedDocument from 'client/data/models/form-element-page';\nimport type { SelectedRecordsOptions } from 'client/features/action/services/internal-business/custom-action';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport type SmartActionResult = {\n  success: boolean;\n  isApproval?: boolean;\n  refreshInfo?: { relationships: string[] };\n  errorMessage?: string;\n};\n\nexport default class ActionFeatureState extends Service {\n  @service('feature/modal') private modalFeatureService: ModalFeatureService;\n\n  @tracked smartAction: CustomActionModel;\n  @tracked isLoading = false;\n  @tracked isChangeHookLoading = false;\n  @tracked currentPage: FormElementPageNestedDocument;\n  @tracked recordsToApplyOn: ClientRecordModel[];\n  @tracked selectedRecordsOptions: SelectedRecordsOptions;\n  @tracked roleIdsAllowedToApprove: string[];\n  @tracked htmlResponse: string;\n  @tracked isErrorResponse = false;\n  @tracked mustSkipConfirmation: boolean;\n  @tracked cachedFormValues: { [key: string]: unknown } = {};\n  @tracked cachedSearchValues: { [key: string]: string } = {};\n  @tracked resolvePromise: (state: SmartActionResult) => void;\n  @tracked previousButtonLabel: string;\n  @tracked nextButtonLabel: string;\n  @tracked formInputsLoading: string[] = [];\n\n  @tracked approvalCommentContent: string;\n\n  @tracked displayInSidePanel = true;\n  @tracked private _shouldDisplayRequestApprovalModal = false;\n  @tracked private _shouldDisplaySmartActionForm = false;\n  @tracked private _shouldDisplaySmartActionResponse = false;\n\n  get shouldDisplaySmartActionPanel() {\n    return this.shouldDisplaySmartActionForm || this.shouldDisplaySmartActionResponse;\n  }\n\n  get isSaveButtonDisabled() {\n    return this.isChangeHookLoading || this.formInputsLoading.length > 0;\n  }\n\n  get autoFocusApprovalComment() {\n    // eslint-disable-next-line sonarjs/no-inverted-boolean-check\n    return !(this.smartAction?.fields?.length > 0) && !(this.formInputsLoading.length > 0);\n  }\n\n  get shouldDisplayRequestApprovalModal() {\n    return this._shouldDisplayRequestApprovalModal;\n  }\n\n  set shouldDisplayRequestApprovalModal(isDisplayed) {\n    this._shouldDisplayRequestApprovalModal = isDisplayed;\n    if (!isDisplayed) {\n      this.resetActionState();\n    }\n  }\n\n  get shouldDisplaySmartActionForm() {\n    return this._shouldDisplaySmartActionForm;\n  }\n\n  set shouldDisplaySmartActionForm(isDisplayed) {\n    this._shouldDisplaySmartActionForm = isDisplayed;\n    if (!isDisplayed && !this.shouldDisplaySmartActionResponse) {\n      this.hideActionModal();\n    } else if (this.displayInSidePanel) {\n      this.showActionModal();\n    }\n  }\n\n  get shouldDisplaySmartActionResponse() {\n    return this._shouldDisplaySmartActionResponse;\n  }\n\n  set shouldDisplaySmartActionResponse(isDisplayed) {\n    this._shouldDisplaySmartActionResponse = isDisplayed;\n    if (!isDisplayed) {\n      this.htmlResponse = null;\n      this.isErrorResponse = false;\n      if (!this.shouldDisplaySmartActionForm) {\n        this.hideActionModal();\n      }\n    } else if (this.displayInSidePanel) {\n      this.showActionModal();\n    }\n  }\n\n  private resetState() {\n    this.smartAction = null;\n    this.recordsToApplyOn = null;\n    this.selectedRecordsOptions = null;\n    this.roleIdsAllowedToApprove = null;\n    this.mustSkipConfirmation = false;\n    this.resetActionState();\n  }\n\n  private resetActionState() {\n    this.isLoading = false;\n    this.isChangeHookLoading = false;\n    this.isErrorResponse = false;\n    this.cachedFormValues = {};\n    this.cachedSearchValues = {};\n    this.resolvePromise = null;\n  }\n\n  private showActionModal() {\n    this.modalFeatureService.open('feature/action/collapsible-side-panel', {\n      modalType: 'rightPanel',\n      onClose: () => {\n        this.modalFeatureService.closeRightPanel();\n      },\n    });\n  }\n\n  private hideActionModal() {\n    if (this.displayInSidePanel) {\n      this.modalFeatureService.closeRightPanel();\n    }\n    this.resetState();\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\n\nimport Component from '@glimmer/component';\n\nimport ActivityLogModel from 'client/data/models/activity-log';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport ActivityLogTemplatingHelper from 'client/utils/templating-helper/activity-log-templating-helper';\n\ninterface Args {\n  activity: ActivityLogModel;\n  collectionNameLowerCase?: string;\n}\n\n@validateArguments\nexport default class ActivityLogActivityItemComponent extends Component<Args> {\n  static propTypes = {\n    activity: PropTypes.instanceOf(ActivityLogModel).isRequired,\n    collectionNameLowerCase: PropTypes.string,\n  };\n\n  public readonly templatingHelper = new ActivityLogTemplatingHelper({\n    activityLog: this.args.activity,\n  });\n\n  public get user() {\n    return this.isStartingWithTargetUser ? this.args.activity.targetUser : this.args.activity.user;\n  }\n\n  get recordIds(): string[] | number[] {\n    return this.args.activity.records;\n  }\n\n  get collection(): CollectionModel {\n    return this.args.activity.collection;\n  }\n\n  get isCustomAction(): boolean {\n    return this.args.activity.action === 'action';\n  }\n\n  get isDeleteAction(): boolean {\n    return this.args.activity.action === 'delete';\n  }\n\n  get isApprovalAction() {\n    // createApproval, approveApproval, rejectApproval\n    return this.args.activity.action?.includes('Approval');\n  }\n\n  get isWorkflowActivity() {\n    return this.args.activity.action?.includes('Workflow');\n  }\n\n  get activityCollectionName() {\n    if (!this.args.activity.collection?.get('displayName')) {\n      return '[removed collection] record';\n    }\n\n    return this.args.activity.collection?.get('displayNameLowerCase');\n  }\n\n  public get isStartingWithTargetUser() {\n    return this.args.activity.label.startsWith('{{targetUser}}') && !this.args.activity.user;\n  }\n\n  get textBeforeLink() {\n    let textBeforeLink = '';\n\n    if (this.isCustomAction || this.isApprovalAction || this.isWorkflowActivity) {\n      textBeforeLink = 'on';\n    }\n\n    if (this.args.activity.records?.length === 1) {\n      textBeforeLink += ` the ${this.activityCollectionName}`;\n    }\n\n    return textBeforeLink;\n  }\n\n  get textAfterLink() {\n    if (this.args.activity.records?.length === 1) {\n      return '';\n    }\n    const fullStop = this.labelAfter ? '' : '.';\n    return `${this.args.activity.collection?.get('displayNamePluralLowerCase')}${fullStop}`;\n  }\n\n  get labelBefore() {\n    const label = this.isStartingWithTargetUser\n      ? this.args.activity.label.split('{{targetUser}}')[1]\n      : this.args.activity.label;\n    if (label?.includes('{{record}}')) {\n      return label.split('{{record}}')[0];\n    }\n    return label;\n  }\n\n  get labelAfter() {\n    if (this.args.activity.label?.includes('{{record}}')) {\n      const fullStop = this.args.activity.label.endsWith('.') ? '' : '.';\n      return `${this.args.activity.label.split('{{record}}')[1]}${fullStop}`;\n    }\n    return '';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-activity\\\" ...attributes>\\n  <Picture::PictureAvatar\\n    @class=\\\"l-activity__avatar\\\"\\n    @email={{this.user.email}}\\n    @initials={{this.user.initials}}\\n  />\\n  <p class=\\\"l-activity__content\\\" data-test-activity>\\n    <strong>\\n      {{this.user.fullName}}\\n    </strong>\\n\\n    {{templating-injector this.labelBefore templatingHelper=this.templatingHelper}}\\n\\n    {{#if @collectionNameLowerCase}}\\n      {{if (or this.isCustomAction this.isApprovalAction this.isWorkflowActivity) \\'on\\'}}\\n      this\\n      {{@collectionNameLowerCase}}{{unless this.labelAfter \\'.\\'}}\\n    {{else}}\\n      {{this.textBeforeLink}}\\n\\n      {{#if @activity.records}}\\n        <Feature::ClientRecord::ReferenceField\\n          @collection={{@activity.collection}}\\n          @isLinkDisabled={{this.isDeleteAction}}\\n          @linkClassName=\\\"c-activity-item__link\\\"\\n          @shouldDisplayNumberOfRecords={{true}}\\n          @recordIds={{@activity.records}}\\n          data-test-activity-link\\n        />\\n      {{~/if~}}\\n\\n      {{this.textAfterLink}}\\n    {{/if}}\\n\\n    {{templating-injector this.labelAfter templatingHelper=this.templatingHelper}}\\n\\n    <div class=\\\"l-activity__meta\\\">\\n      <small>\\n        {{moment-format @activity.createdAt \\'LTS\\'}}\\n      </small>\\n    </div>\\n  </p>\\n</div>\\n', { moduleName: 'client/features/activity-log/components/activity-item/template.hbs' });\n","/* eslint-disable sonarjs/prefer-single-boolean-return */\nimport type Application from '@ember/application';\nimport type RouterService from '@ember/routing/router-service';\nimport type CollectionModel from 'client/data/models/collection';\nimport type { ActivityLogsPageWithTotalCount } from 'client/features/activity-log/services/internal-business/activity-log-fetcher';\n// FIXME\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type ActivityLogActivityLogFetcherInternalBusinessService from 'client/features/activity-log/services/internal-business/activity-log-fetcher';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { AbilitiesService } from 'ember-can';\n\nimport { action } from '@ember/object';\nimport { later } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { getFirstErrorDetail, isEmberError } from 'client/utils/ember-error-util';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface ActivityLogBrowserArgs {\n  page: unknown;\n  searchValue: string;\n  cancel: () => void;\n  collectionNameLowerCase: string;\n  collection: CollectionModel;\n  record: ClientRecordModel;\n}\n\n@validateArguments\nexport default class ActivityLogActivityLogBrowserComponent extends Component<ActivityLogBrowserArgs> {\n  static propTypes = {\n    cancel: PropTypes.func.isRequired,\n    page: PropTypes.any, // any to handle the case when someone inputs a page manually in the query params\n    searchValue: PropTypes.string,\n    collectionNameLowerCase: PropTypes.string,\n    collection: PropTypes.instanceOf(Object),\n    record: PropTypes.instanceOf(Object),\n  };\n\n  @service('feature/activity-log/internal-business/activity-log-fetcher')\n  private activityLogFeature: ActivityLogActivityLogFetcherInternalBusinessService;\n\n  @service('feature/notification') private notificationService: NotificationFeatureService;\n\n  @service private abilities: AbilitiesService;\n  @service private lianaSession: LianaSessionService;\n  @service private router: RouterService;\n\n  @tracked isLoading = true;\n  @tracked activityLogs: ActivityLogsPageWithTotalCount;\n  private lastSearchValue: string;\n  private retries = 0;\n\n  constructor(owner: Application, args: ActivityLogBrowserArgs) {\n    super(owner, args);\n    void this.fetchRecords();\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n\n    this.isLoading = true;\n    this.activityLogs = null;\n    this.lastSearchValue = null;\n  }\n\n  get canAccessToActivityLogs() {\n    return this.abilities.can('access to activityLogs');\n  }\n\n  get activityLogsPage() {\n    return this.activityLogs.toArray();\n  }\n\n  get activityLogsContent() {\n    return this.activityLogFeature.formatActivityLogs(this.activityLogsPage);\n  }\n\n  get hasActivities() {\n    return Boolean(this.activityLogs?.meta.count);\n  }\n\n  get numberOfPages() {\n    if (!this.activityLogs) return 0;\n    return Math.ceil(this.activityLogs.meta.count / 10);\n  }\n\n  get currentPage() {\n    if (!this.isPageNumber(this.args.page)) return 1;\n    return Number(this.args.page);\n  }\n\n  set currentPage(value: number) {\n    void this.transitionToPage(value);\n  }\n\n  private isPageNumber(page: unknown): page is number {\n    if (!page) return false;\n    if (Number.isNaN(Number(page))) return false;\n    if ((page as number) < 1) return false;\n    return true;\n  }\n\n  @action\n  async fetchRecordsIfSearchValueChanged() {\n    if (this.args.searchValue !== this.lastSearchValue) {\n      this.lastSearchValue = this.args.searchValue;\n      await this.transitionToPage(1);\n      await this.fetchRecords();\n    }\n  }\n\n  @action\n  async fetchRecords(param?: { page: number }) {\n    this.isLoading = true;\n    if (!this.isPageNumber(this.args.page)) {\n      await this.transitionToPage(1);\n    }\n    this.activityLogs = await this.refetch(param?.page);\n    this.isLoading = false;\n  }\n\n  private async transitionToPage(page: number) {\n    later(async () => {\n      await this.router.transitionTo({ queryParams: { activitiesPage: page } });\n    }, 0);\n  }\n\n  private async refetch(page?: number) {\n    const queriedPage = page || this.currentPage;\n    try {\n      const results = await this.activityLogFeature.fetchActivityLogs({\n        renderingId: this.lianaSession.currentRenderingId,\n        page: queriedPage,\n        searchValue: this.args.searchValue,\n        record: this.args.record,\n        collection: this.args.collection,\n      });\n      this.retries = 0;\n      return results;\n    } catch (error) {\n      // we are in this case if the server threw an error (example cursor too large)\n      // or if the queried page number is larger than the number of pages\n      let message = `Error fetching page ${queriedPage} of activity logs`;\n      if (isEmberError(error)) {\n        message += ': ' + getFirstErrorDetail(error);\n      } else {\n        message += ': ' + (error as Error).message;\n        console.error(error);\n      }\n\n      this.notificationService.createToastr(ToastrTypeEnum.Error, message);\n\n      this.retries++;\n      if (queriedPage > 1 && this.retries < 3) {\n        const redirectToPage = Math.max(\n          1,\n          Math.min(queriedPage - 1, this.numberOfPages || 1, 1000),\n        );\n        await this.transitionToPage(redirectToPage);\n        await this.fetchRecords({ page: redirectToPage });\n        return this.activityLogs;\n      }\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.canAccessToActivityLogs}}\\n  <div\\n    class=\\\"c-feature-activity-log-activity-log-browser\\\"\\n    data-test-feature-activity-log-activity-log-browser\\n    ...attributes\\n    {{did-update this.fetchRecordsIfSearchValueChanged @searchValue}}\\n  >\\n    {{#if this.isLoading}}\\n      <Layout::LayoutLoader @type=\\\"data\\\" />\\n    {{else}}\\n      <Feature::ActivityLog::ActivityPage\\n        @hasActivities={{this.hasActivities}}\\n        @searchValue={{@searchValue}}\\n        @activityLogsContent={{this.activityLogsContent}}\\n        @collectionNameLowerCase={{@collectionNameLowerCase}}\\n      />\\n      {{#if this.hasActivities}}\\n        <DataDisplay::Table::TableFooter\\n          @records={{this.activityLogsPage}}\\n          @currentPage={{this.currentPage}}\\n          @currentUser={{this.currentUser}}\\n          @collection={{@collection}}\\n          @numberOfPages={{this.numberOfPages}}\\n          @fetchRecords={{this.fetchRecords}}\\n          @pageParamName=\\\"activitiesPage\\\"\\n          @canEdit={{false}}\\n          @searchValue={{this.searchValue}}\\n          @isLoading={{this.isLoading}}\\n        />\\n      {{/if}}\\n    {{/if}}\\n  </div>\\n{{else}}\\n  <Modal::ModalUpgradeToPaidPlan @cancel={{@cancel}} @featureName=\\\"activityLogs\\\" />\\n{{/if}}\\n', { moduleName: 'client/features/activity-log/components/activity-log-browser/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-content l-content--scroll\\\">\\n  {{#if @hasActivities}}\\n    <div class=\\\"l-activity-scroll\\\">\\n      <div class=\\\"l-activity__wrap l-dmt\\\">\\n        {{#each @activityLogsContent as |activity|}}\\n          {{#if activity.type}}\\n            <div class=\\\"l-activity-spacer\\\">\\n              {{moment-format activity.date \\'dddd DD MMMM YYYY\\'}}\\n            </div>\\n          {{else}}\\n            <Feature::ActivityLog::ActivityItem\\n              @activity={{activity}}\\n              @collectionNameLowerCase={{@collectionNameLowerCase}}\\n            />\\n          {{/if}}\\n        {{/each}}\\n      </div>\\n    </div>\\n  {{else}}\\n    {{#if @searchValue}}\\n      <Layout::LayoutListEmpty\\n        @icon=\\\"bolt\\\"\\n        @title=\\\"No activities matching\\\"\\n        @text={{concat \\'Nothing found for \\\"\\' @searchValue \\'\\\".\\'}}\\n      />\\n    {{else}}\\n      <Layout::LayoutListEmpty\\n        @icon=\\\"bolt\\\"\\n        @title=\\\"No activity\\\"\\n        @text=\\\"There are no activities yet.\\\"\\n      />\\n    {{/if}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/activity-log/components/activity-page/template.hbs' });\n","import type EmberArray from '@ember/array';\nimport type ActivityLogModel from 'client/data/models/activity-log';\nimport type CollectionModel from 'client/data/models/collection';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type SegmentService from 'ember-cli-segment/services/segment';\n\nimport Service, { service } from '@ember/service';\nimport moment from 'moment';\n\nexport type FormattedActivityLogsList = Array<\n  ActivityLogModel | { date: moment.Moment; type: 'spacer' }\n>;\n\nexport type ActivityLogsPageWithTotalCount = EmberArray<ActivityLogModel> & {\n  meta: { count: number };\n};\nexport default class ActivityLogActivityLogFetcherInternalBusinessService extends Service {\n  @service segment: SegmentService;\n  @service store: StoreService;\n\n  async fetchActivityLogs({\n    renderingId,\n    record,\n    collection,\n    searchValue,\n    page,\n  }: {\n    renderingId: string;\n    page: number;\n    searchValue?: string;\n    record?: ClientRecordModel;\n    collection?: CollectionModel;\n  }) {\n    const rendering = this.store.peekRecord('rendering', renderingId);\n\n    const queryValues = {\n      'page[number]': page || 1,\n      search: searchValue || null,\n      recordId: record?.id || null,\n      collectionId: collection?.id || null,\n    };\n\n    if (!(record && collection)) {\n      // NOTICE: Do not track activity per record.\n      this.segment.trackEvent('Activity Feed', {\n        renderingId: rendering.id,\n        query: queryValues,\n      });\n    }\n\n    const data = (await rendering.queryRecords(\n      'activityLogs',\n      queryValues,\n    )) as unknown as ActivityLogsPageWithTotalCount;\n\n    if (data?.meta?.count > 0 && data.length === 0 && page > 1)\n      throw new Error('Page number too large');\n\n    return data;\n  }\n\n  formatActivityLogs(activityLogs: EmberArray<ActivityLogModel>) {\n    const activityLogsFormated = [] as FormattedActivityLogsList;\n\n    activityLogs.forEach((item: ActivityLogModel, index: number) => {\n      const itemPrevious = activityLogs.objectAt(index - 1);\n      if (\n        !itemPrevious\n        || !moment(item.get('createdAt')).isSame(moment(itemPrevious.get('createdAt')), 'days')\n      ) {\n        activityLogsFormated.push({\n          type: 'spacer',\n          date: moment(item.get('createdAt')),\n        });\n      }\n\n      activityLogsFormated.push(item);\n    });\n    return activityLogsFormated;\n  }\n}\n","import type CollectionFeatureService from 'client/features/collection/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport type CustomApolloService from 'client/legacy/services/apollo';\nimport type BetaCollectionListCommunicatorService from 'client/legacy/services/beta-collection-list-communicator';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport { queryManager } from 'ember-apollo-client';\n\nimport watchNotificationFromAgent from 'client/gql/utils/watch-notification-from-agent';\n\nexport interface AgentNotificationMessage {\n  type: ToastrTypeEnum;\n  text: string;\n}\n\nexport interface AgentNotificationRefresh {\n  collectionName: string;\n  recordIds?: string[];\n}\n\nexport interface AgentNotificationData {\n  message: AgentNotificationMessage;\n  refresh: AgentNotificationRefresh;\n}\n\nexport default class AgentNotificationsFeatureService extends Service {\n  @service('beta-collection-list-communicator')\n  private betaCollectionListCommunicator: BetaCollectionListCommunicatorService;\n\n  @service('feature/collection') private collectionFeatureService: CollectionFeatureService;\n  @service('feature/notification') private notificationService: NotificationFeatureService;\n  @service('liana-session') private lianaSession: LianaSessionService;\n  @service('current-user') private currentUser: CurrentUserService;\n\n  @queryManager() apollo: CustomApolloService;\n\n  public async subscribeToEvent() {\n    await this.lianaSession.waitRefreshIfNecessary();\n    await watchNotificationFromAgent(\n      this.apollo,\n      this.lianaSession.currentEnvironment?.id,\n      this.currentUser.model?.id,\n      this.handleNotificationEvent,\n    );\n  }\n\n  @action\n  private handleNotificationEvent(data: AgentNotificationData) {\n    if (data?.refresh?.collectionName) this.refreshCollection(data.refresh.collectionName);\n    if (data?.message) this.displayNotification(data.message);\n  }\n\n  private refreshCollection(collectionName: string): void {\n    const collection = this.collectionFeatureService.getCollectionFromName(collectionName);\n    this.betaCollectionListCommunicator.refreshAll(collection);\n  }\n\n  private displayNotification(message: AgentNotificationMessage): void {\n    this.notificationService.createToastr(message.type, message.text);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::EmptyState\\n  @iconName=\\\"smart_toy\\\"\\n  class=\\\"c-feature-ai-user-empty-state\\\"\\n  data-test-feature-ai-user-empty-state\\n  ...attributes\\n>\\n  <:title>You don\\'t have any AI Users configured yet...</:title>\\n  <:description>\\n    AI Users allow external AI tools to interact with your Forest Admin data using natural language.\\n  </:description>\\n  <:footer>\\n    <Shared::Button\\n      @type=\\\"primary\\\"\\n      @text=\\\"Create AI User\\\"\\n      @iconName=\\\"add\\\"\\n      @size=\\\"small\\\"\\n      @onClick={{@onCreate}}\\n      data-test-feature-ai-user-empty-state-create-button\\n    />\\n  </:footer>\\n</Shared::EmptyState>\\n', { moduleName: 'client/features/ai-user/components/empty-state/template.hbs' });\n","import type AiUserFeatureService from 'client/features/ai-user/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class AiUserPageComponent extends Component {\n  @service('feature/ai-user') declare AiUserFeature: AiUserFeatureService;\n\n  get isEnabled(): boolean {\n    return this.AiUserFeature.isEnabled();\n  }\n\n  @action\n  public handleCreate() {\n    // TODO: Implement create functionality\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isEnabled}}\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"AI Users\\\"\\n    @size=\\\"large\\\"\\n    class=\\\"c-feature-ai-user-page\\\"\\n    data-test-feature-ai-user-page\\n    ...attributes\\n  >\\n    <Feature::AiUser::EmptyState @onCreate={{this.handleCreate}} />\\n  </Shared::BetaSettingsLayout::Section>\\n{{/if}}\\n', { moduleName: 'client/features/ai-user/components/page/template.hbs' });\n","import Service from '@ember/service';\n\nimport config from 'client/config/environment';\n\nexport default class AiUserFeatureService extends Service {\n  isEnabled(): boolean {\n    return config.environment === 'development';\n  }\n}\n","import { ManagedError, UnknownError } from 'client/utils/errors';\n\nexport class AiError extends ManagedError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'AiError';\n  }\n}\n\nexport class NoToolCallAiError extends AiError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'NoToolCallAiError';\n  }\n}\n\nexport class ToolInputValidationAiError extends AiError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'ToolInputValidationError';\n  }\n}\n\nexport class GetRelatedDataAiError extends AiError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'GetRelatedDataAiError';\n  }\n}\n\nexport class UnknownAIError extends UnknownError {\n  constructor(cause: Error, message?: string) {\n    super(cause, message);\n    this.name = 'UnknownAIError';\n  }\n}\nexport class PermissionDeniedAiError extends AiError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'PermissionDeniedError';\n  }\n}\n\nexport class RecordUpdateAiError extends AiError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'RecordUpdateError';\n  }\n}\n\nexport class ToolNotFoundAiError extends AiError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'AIToolNotFoundError';\n  }\n}\nexport class ChooseGatewayOptionAiError extends AiError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'ChooseGatewayOptionError';\n  }\n}\n\nexport class RecordSelectionAiError extends ManagedError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'RecordSelectionError';\n  }\n}\n","import type { AIMessageChunk } from '@langchain/core/messages';\nimport type { ToolCall } from '@langchain/core/messages/tool';\nimport type { StructuredTool } from '@langchain/core/tools';\nimport type AiAgentInternalBusinessService from 'client/features/ai/services/internal-business/agents/agent';\nimport type {\n  TextToCollectionsInputs,\n  TextToCollectionsOutputs,\n} from 'client/features/ai/services/internal-business/collections-retriever';\nimport type {\n  TextToConditionTreeInputs,\n  TextToConditionTreeOutputs,\n} from 'client/features/ai/services/internal-business/condition-retriever';\nimport type AiLangchainDependenciesInternalBusinessService from 'client/features/ai/services/internal-business/langchain-dependencies';\nimport type { AiName } from 'client/features/ai/services/internal-business/proxy-router';\nimport type AiToolsInternalBusinessService from 'client/features/ai/services/internal-business/tools';\nimport type { ToolExecution } from 'client/features/ai/types/ai-steps';\nimport type WorkflowEngine from 'client/features/workflow/services/standalone-package';\nimport type AiAgentContext from 'client/features/workflow/types/workflow-ai-agent-context';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\n\nimport {\n  buildMessagesCollectionRetriever,\n  collectionsRetrieverTool,\n} from 'client/features/ai/services/internal-business/collections-retriever';\nimport {\n  buildMessagesConditionRetriever,\n  conditionRetrieverTool,\n} from 'client/features/ai/services/internal-business/condition-retriever';\n\nexport interface AiInvocationOptions {\n  aiName?: AiName;\n}\n\nexport default class AiFeatureService extends Service {\n  @service('feature/ai/internal-business/langchain-dependencies')\n  private langChainDependencies: AiLangchainDependenciesInternalBusinessService;\n\n  @service('feature/ai/internal-business/agents/agent')\n  private agentService: AiAgentInternalBusinessService;\n\n  @service('feature/ai/internal-business/tools')\n  private toolsService: AiToolsInternalBusinessService;\n\n  async initAI() {\n    await this.langChainDependencies.ensureInitialized();\n  }\n\n  async getWorkflowLlmInterfaceArgs(getExtraHeaders?: () => Record<string, string>) {\n    await this.initAI();\n    return {\n      coreMessages: this.langChainDependencies.coreMessages,\n      coreTools: this.langChainDependencies.coreTools,\n      model: await this.langChainDependencies.getModel('workflow', getExtraHeaders),\n    };\n  }\n\n  async invokeCollectionsRetriever(\n    inputs: TextToCollectionsInputs,\n    options?: AiInvocationOptions,\n  ): Promise<TextToCollectionsOutputs> {\n    const model = await this.langChainDependencies.getModel(options?.aiName);\n    const toolInstance = collectionsRetrieverTool(this.langChainDependencies.coreTools.tool);\n    const result = await model\n      .bindTools([toolInstance], { tool_choice: toolInstance.name })\n      .invoke(buildMessagesCollectionRetriever(inputs));\n    return this.callToolOnce<TextToCollectionsOutputs>(result, toolInstance);\n  }\n\n  async invokeConditionRetriever(\n    inputs: TextToConditionTreeInputs,\n    options?: AiInvocationOptions,\n  ): Promise<TextToConditionTreeOutputs> {\n    const model = await this.langChainDependencies.getModel(options?.aiName);\n    const toolInstance = conditionRetrieverTool(this.langChainDependencies.coreTools.tool);\n    const result = await model\n      .bindTools([toolInstance], { tool_choice: toolInstance.name })\n      .invoke(buildMessagesConditionRetriever(inputs));\n    return this.callToolOnce<TextToConditionTreeOutputs>(result, toolInstance);\n  }\n\n  clearRemoteTools() {\n    this.toolsService.clearRemoteTools();\n  }\n\n  fetchRemoteToolsDefinitions() {\n    return this.toolsService.fetchRemoteToolsDefinitions();\n  }\n\n  getOAuthTokenForMcpServer(mcpServerId: string): string | null {\n    return this.toolsService.getOAuthTokenForMcpServer(mcpServerId);\n  }\n\n  async askAiToSelectATool(\n    workflowEnginePromise: WorkflowEngine,\n    userRequest: string,\n    selectedRecord: ClientRecordModel,\n    additionalContext: { prompt: string; aiAgentContext: AiAgentContext }[],\n    allowedTools?: string[],\n  ): Promise<ToolCall> {\n    return this.agentService.askAiToSelectATool(\n      workflowEnginePromise,\n      userRequest,\n      selectedRecord,\n      additionalContext,\n      allowedTools,\n    );\n  }\n\n  async askAiToChooseGatewayOption(\n    userRequest: string,\n    availableOptions: string[],\n    additionalContext: { prompt: string; aiAgentContext: AiAgentContext }[] = [],\n    getExtraHeaders?: () => Record<string, string>,\n  ): Promise<ToolExecution> {\n    return this.agentService.askAiToChooseGatewayOption(\n      userRequest,\n      availableOptions,\n      additionalContext,\n      getExtraHeaders,\n    );\n  }\n\n  setToolsContextHeaders(headers: Record<string, string>) {\n    this.toolsService.setContextHeaders(headers);\n  }\n\n  clearToolsContextHeaders() {\n    this.toolsService.clearContextHeaders();\n  }\n\n  doesToolNeedsUserConfirmation(toolName: string): boolean {\n    return this.agentService.doesToolNeedsUserConfirmation(toolName);\n  }\n\n  async getTool(record: ClientRecordModel, toolName: string) {\n    return this.toolsService.getTool(record, toolName);\n  }\n\n  private async callToolOnce<T>(aiMessageChunk: AIMessageChunk, toolToExecute: StructuredTool) {\n    if (aiMessageChunk.tool_calls.length === 0) return undefined;\n\n    return JSON.parse((await toolToExecute.invoke(aiMessageChunk.tool_calls[0])).content) as T;\n  }\n}\n","import type { ToolCall } from '@langchain/core/messages/tool';\nimport type { StructuredTool } from '@langchain/core/tools';\nimport type AiToolExecutionAgentInternalBusinessService from 'client/features/ai/services/internal-business/agents/tool-execution-agent';\nimport type AiAgentUtilsInternalBusinessService from 'client/features/ai/services/internal-business/agents/utils';\nimport type AiLangchainDependenciesInternalBusinessService from 'client/features/ai/services/internal-business/langchain-dependencies';\nimport type AiToolsInternalBusinessService from 'client/features/ai/services/internal-business/tools';\nimport type AiToolChooseGatewayOptionInternalBusinessService from 'client/features/ai/services/internal-business/tools/tool-choose-gateway-option';\nimport type WorkflowEngine from 'client/features/workflow/services/standalone-package';\nimport type AiAgentContext from 'client/features/workflow/types/workflow-ai-agent-context';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\nimport { SystemMessage } from '@langchain/core/messages';\n\nimport { NoToolCallAiError } from 'client/features/ai/errors';\nimport { SAFE_TOOLS } from 'client/features/ai/services/internal-business/tools';\nimport toStandaloneRecord from 'client/features/workflow/utils/to-standalone-record';\n\nexport default class AiAgentInternalBusinessService extends Service {\n  @service('feature/ai/internal-business/agents/utils')\n  private readonly agentUtils: AiAgentUtilsInternalBusinessService;\n\n  @service('feature/ai/internal-business/agents/tool-execution-agent')\n  private readonly toolExecutionAgent: AiToolExecutionAgentInternalBusinessService;\n\n  @service('feature/ai/internal-business/tools')\n  private readonly toolsService: AiToolsInternalBusinessService;\n\n  @service('feature/ai/internal-business/tools/tool-choose-gateway-option')\n  private readonly chooseGatewayOptionTool: AiToolChooseGatewayOptionInternalBusinessService;\n\n  @service('feature/ai/internal-business/langchain-dependencies')\n  private langChainDependencies: AiLangchainDependenciesInternalBusinessService;\n\n  async askAiToSelectATool(\n    workflowEngine: WorkflowEngine,\n    userRequest: string,\n    selectedRecord: ClientRecordModel,\n    additionalContext: { prompt: string; aiAgentContext: AiAgentContext }[],\n    allowedTools?: string[],\n  ): Promise<ToolCall> {\n    let tools: StructuredTool[] = [];\n\n    if (allowedTools?.length) {\n      tools = await this.toolsService.getAllowedTools(selectedRecord, allowedTools);\n    } else {\n      tools = await this.toolsService.getAllTools(selectedRecord);\n    }\n\n    if (!tools.length) {\n      throw new NoToolCallAiError(\n        `The tools [${allowedTools.join(', ')}] are not available for the selected record.`,\n      );\n    }\n\n    return workflowEngine.aiService.askAiForStepParameters(\n      userRequest,\n      toStandaloneRecord(selectedRecord),\n      additionalContext,\n      tools,\n    );\n  }\n\n  doesToolNeedsUserConfirmation(toolName: string): boolean {\n    return !SAFE_TOOLS.find((name) => name === toolName);\n  }\n\n  private getAdditionalContextMessages(\n    additionalContext: { prompt: string; aiAgentContext: AiAgentContext }[],\n  ) {\n    return additionalContext.map(({ prompt, aiAgentContext }) => {\n      return new SystemMessage({\n        content: `For the user request:\n\"${prompt}\"\n\nYou answered:\n${JSON.stringify(aiAgentContext.toolExecution, null, 2)}`,\n      });\n    });\n  }\n\n  public async askAiToChooseGatewayOption(\n    userRequest: string,\n    availableOptions: string[],\n    additionalContext: { prompt: string; aiAgentContext: AiAgentContext }[],\n    getExtraHeaders?: () => Record<string, string>,\n  ) {\n    const messages = [\n      ...this.getAdditionalContextMessages(additionalContext),\n      ...this.agentUtils.getChooseGatewayOptionMessages(availableOptions, userRequest),\n    ];\n\n    const tool = this.chooseGatewayOptionTool.createTool(availableOptions);\n\n    const model = await this.langChainDependencies.getModel('workflow', getExtraHeaders);\n    const aiResponse = await model.bindTools([tool], { tool_choice: 'any' }).invoke(messages);\n\n    const toolCall = aiResponse.tool_calls?.[0];\n\n    if (!toolCall) throw new NoToolCallAiError('The AI was unable to choose a gateway option');\n\n    return this.toolExecutionAgent.invokeTool(tool, toolCall);\n  }\n}\n","import type { ToolCall, ToolMessage } from '@langchain/core/messages/tool';\nimport type { StructuredTool } from '@langchain/core/tools';\nimport type { ToolExecution } from 'client/features/ai/types/ai-steps';\nimport type { ZodType } from 'zod';\n\nimport Service from '@ember/service';\nimport { z } from 'zod';\n\nexport default class AiToolExecutionAgentInternalBusinessService extends Service {\n  async invokeTool(tool: StructuredTool, toolCall: ToolCall): Promise<ToolExecution> {\n    const buildOutput = (content: unknown) => {\n      return typeof content === 'string' ? content : JSON.stringify(content);\n    };\n\n    try {\n      toolCall.type = 'tool_call'; // needed to ensure tool call is recognized\n      const toolResult = (await tool.invoke(toolCall)) as ToolMessage;\n\n      return {\n        toolName: toolCall.name,\n        toolCallId: toolCall.id,\n        inputArtifacts: toolCall.args,\n        output: toolResult.content\n          ? buildOutput(toolResult.content)\n          : 'Tool has been executed and returned no content',\n        outputArtifacts: toolResult.artifact,\n        status: 'success',\n      };\n    } catch (error) {\n      console.warn('Error while invoking tool', error);\n\n      // langchain wraps the error message\n      // https://github.com/langchain-ai/langchainjs/blob/8fb05ab19f43f8d5be61ec054fe1428dc1667283/langchain-core/src/tools/index.ts#L227\n      // To check if the error is due to invalid args, we can try to parse the args with the tool schema\n      let humanFriendlyParsingError: string;\n      if ((tool?.schema as ZodType)?._zod) {\n        const parsingError = z.safeParse(tool.schema as ZodType, toolCall.args);\n        humanFriendlyParsingError = parsingError.success\n          ? null\n          : parsingError.error.issues.map((i) => i.message).join(', ');\n      }\n\n      return {\n        toolName: toolCall.name,\n        toolCallId: toolCall.id,\n        inputArtifacts: toolCall.args,\n        output: humanFriendlyParsingError || buildOutput((error as Error).message || error),\n        status: 'error',\n      };\n    }\n  }\n}\n","import type AiLangchainDependenciesInternalBusinessService from 'client/features/ai/services/internal-business/langchain-dependencies';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\n\nimport { FINAL_RESPONSE_TOOL_NAME } from 'client/features/ai/services/internal-business/tools';\nimport { FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH } from 'client/features/ai/services/internal-business/tools/tool-choose-gateway-option';\n\nconst AiPrompt = `You are an AI agent in charge of resolving the user request using one of the available tools.\nChoose the most relevant tool to resolve the user request. No text answer is needed, *ONLY ONE tool call is expected, NO MORE, NO LESS*.\n**Important rules**:\n  - Be concise, clear, and to the point.\n  - Final answer is definitive, you won't receive any other input from the user.\n  - DO NOT include vague or open-ended language such as \"Let me know\", \"Feel free to\", \"Please\", or \"I'll assist you further\".\n  - If you didn't find any tool that can be used to resolve the request, use the ${FINAL_RESPONSE_TOOL_NAME} tool to inform the user that you cannot resolve the request.\n  - If some tool is definitely the right one to use, but the schema doesn't allow the required input values, use the ${FINAL_RESPONSE_TOOL_NAME} tool to list available alternatives.\n  - NEVER include any unverified information, only rely on available tools definitions to explain your inability to resolve the request.\n  - Do not refer to yourself as \"I\" in the response, use a passive formulation instead.`;\n\nconst RecordSelectionPrompt = `You are an AI agent in charge of resolving the user request using one of the available tools on one of the available records.\nThe first step of the resolution is to select the most relevant record, you will then have to select a tool to execute on it.\nChoose the most relevant record. No text answer is needed, Only the \"select-record\" tool call is expected.\nEach available records have been loaded from the root record, the recordIdentifier is the path from the root record.\nWhen choosing the record, pay a special attention to the collection of the record that MUST match the user request.\nIf several records comes from the requested collection, try to find the most relevant looking at the path.`;\n\nconst GatewayOptionSelectionPrompt = `You are an AI agent selecting the\n  correct option for a workflow gateway decision.\n\n  **Task**: Analyze the question and available options, then select the option\n  that DIRECTLY answers the question. Options must be literal answers, not interpretations.\n\n  **Critical Rule**: Options must semantically match possible answers to the question.\n  - Question \"Does X contain Y?\" expects options like \"yes\"/\"no\", NOT colors or unrelated values\n  - Question \"What is the status?\" expects options like \"active\"/\"inactive\", NOT arbitrary words\n  - If options don't match expected answer types, select ${FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH}\n\n  **NEVER invent mappings** between options and answers (e.g., never assume \"purple\"=\"no\" or \"red\"=\"yes\")\n\n  **When to select ${FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH}**:\n  - Options are semantically unrelated to the question type (colors for yes/no questions)\n  - None of the options literally match the expected answer\n  - The question is ambiguous or lacks necessary context\n  - You are less than 80% confident in any option\n\n  **Reasoning format**:\n  - State which option you selected and why\n  - If selecting ${FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH}: explain why options don't match the question\n  - Do not refer to yourself as \"I\" in the response, use a passive formulation instead.\n  - NEVER mention \"${FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH}\" in reasoning, say \"no matching option\" instead.`;\n\nexport default class AiAgentUtilsInternalBusinessService extends Service {\n  @service('feature/ai/internal-business/langchain-dependencies')\n  private langChainDependencies: AiLangchainDependenciesInternalBusinessService;\n\n  private getCurrentDateMessage() {\n    return new this.langChainDependencies.coreMessages.SystemMessage({\n      content: `Current date and time: ${new Date().toISOString()}`,\n    });\n  }\n\n  getBaseMessages(selectedRecord: ClientRecordModel, userRequest?: string) {\n    return [\n      new this.langChainDependencies.coreMessages.SystemMessage({ content: AiPrompt }),\n      new this.langChainDependencies.coreMessages.SystemMessage({\n        content: `The selected record belongs to the \"${selectedRecord.collection.displayName}\" collection, and is relevant to the user request.`,\n      }),\n      ...(userRequest\n        ? [\n            new this.langChainDependencies.coreMessages.HumanMessage({ content: userRequest }),\n            this.getCurrentDateMessage(),\n          ]\n        : []),\n    ];\n  }\n\n  getChooseGatewayOptionMessages(availableOptions: string[], userRequest: string) {\n    return [\n      new this.langChainDependencies.coreMessages.SystemMessage({\n        content: GatewayOptionSelectionPrompt,\n      }),\n      new this.langChainDependencies.coreMessages.HumanMessage({\n        content: `**Question**: ${userRequest}`,\n      }),\n      this.getCurrentDateMessage(),\n    ];\n  }\n}\n","import type { tool } from '@langchain/core/tools';\n\nimport { z } from 'zod';\n\nconst TextToCollectionsInputsSchema = z.object({\n  text: z.string().min(1),\n  collectionEntryPoint: z.string().min(1),\n  summary: z.object({\n    maxSizeInWord: z.number().min(20).default(50),\n  }),\n  collections: z.record(\n    z.string(),\n    z.object({\n      relations: z.array(z.string().optional()),\n      fields: z.array(z.string()),\n      actions: z.array(z.string()),\n    }),\n  ),\n});\n\nconst TextToCollectionsOutputsSchema = z.object({\n  summary: z.string(),\n  collections: z.array(\n    z.object({\n      collectionName: z.string(),\n      relevantFields: z.array(z.string()),\n      relevantActions: z.array(z.string()),\n    }),\n  ),\n});\n\nexport type TextToCollectionsInputs = z.infer<typeof TextToCollectionsInputsSchema>;\nexport type TextToCollectionsOutputs = z.infer<typeof TextToCollectionsOutputsSchema>;\n\nexport const buildMessagesCollectionRetriever = (inputs: TextToCollectionsInputs) => {\n  const contextDescription = `You are an AI assistant for customer support agents. Your task is to analyze customer requests and provide a concise summary, relevant collections, relevant actions, and relevant fields to help resolve issues efficiently.\n      The company uses multiple data collections to store customer information. The main collection for filtering is called the \"collectionEntryPoint.\"\n      - Provide responses **quickly** (under 3 seconds) as the customer is waiting.\n      - Ensure answers are **accurate** and **relevant** to the context.\n      The current \"collectionEntryPoint\" is \"${inputs.collectionEntryPoint}\".`;\n\n  const customerRequest = `Summarize the customer's request in a concise, non-technical manner (max ${inputs.summary.maxSizeInWord} words): \"${inputs.text}\" END-OF-CUSTOMER-REQUEST.`;\n\n  const schema = `Analyze the following schema and identify the relevant collections, actions, and fields to help resolve the customer request: ${JSON.stringify(\n    inputs.collections,\n    null,\n    2,\n  )}.`;\n\n  const responseGuidelines = `Instructions for generating the response:\n     For each relevant collection:\n        - Provide the collection name.\n        - List the relevant fields. Fields MUST EXIST in the collection schema. YOU CAN't ADD A FIELD FROM ANOTHER COLLECTION.\n        - List the relevant actions. Fields MUST EXIST in the collection schema. YOU CAN't ADD AN ACTION FROM ANOTHER COLLECTION.\n\n     Don't hesitate to put collections that you are not sure about.\n     We encourage you to provide as much information as possible.\n`;\n\n  return [contextDescription, schema, customerRequest, responseGuidelines];\n};\n\nexport const collectionsRetrieverTool = (toolFunc: typeof tool) =>\n  toolFunc(async (collections) => collections, {\n    name: 'collection-retriever',\n    description: 'Retrieves collections from text',\n    schema: TextToCollectionsOutputsSchema,\n  });\n","import type { tool } from '@langchain/core/tools';\n\nimport { z } from 'zod';\n\nimport { ConditionSchema, OperatorSchema } from 'client/features/ai/types/schemas';\n\nexport const TextToConditionTreeInputsSchema = z.object({\n  text: z.string().min(1),\n  collection: z.object({\n    name: z.string().min(1),\n    fields: z.array(\n      z.object({ name: z.string().min(1), operators: z.array(OperatorSchema), type: z.any() }),\n    ),\n  }),\n});\n\nexport const TextToConditionTreeOutputsSchema = ConditionSchema;\n\nexport type TextToConditionTreeInputs = z.infer<typeof TextToConditionTreeInputsSchema>;\nexport type TextToConditionTreeOutputs = z.infer<typeof TextToConditionTreeOutputsSchema>;\n\nexport const buildMessagesConditionRetriever = (inputs: TextToConditionTreeInputs) => {\n  const collectionName = inputs.collection.name;\n\n  const contextDescription = `You are an AI assistant for customer support agents. Your task is to generate a Condition from the customer request to retrieve user data from their database.\n      - Provide responses **quickly** (under 3 seconds) as the customer is waiting.\n      - Ensure answers are **accurate** and **relevant** to the context.\n\n        Examples of Condition structure:\n\n        export type Condition = {\n            \"fieldName\": \"relevantField\",\n            \"operator\": \"relevantOperator\",\n            \"value\": \"relevantValue\" // must be an identifier that can be found in the collection \"${collectionName}\"\n          }\n        ;\n      `;\n\n  const customerRequest = `customer request: ${inputs.text} END-OF-CUSTOMER-REQUEST.`;\n\n  const collectionSchema = `\n    Find in the customer request the relevant value that should be used in the Condition. It should be a unique value or identifier that can be found in the \"${collectionName}\" collection.\n    From the identified value and the following collection schema, determine the relevant Field and Operator to use in the Condition.\n    Your aim is to match only one record when applying the Condition to the \"${collectionName}\" collection!!!\n      ${JSON.stringify(inputs.collection, null, 2)}.`;\n\n  const responseGuidelines = `Instructions for generating the response:\n      Generate a Condition based on the customer request on the \"${collectionName}\" collection:\n      - The Condition be a JSON object of type \"Condition\".\n      - The Condition should be relevant to the customer request.\n      - Omit fields that cannot be assigned a value.`;\n\n  return [contextDescription, collectionSchema, customerRequest, responseGuidelines];\n};\n\nexport const conditionRetrieverTool = (toolFunc: typeof tool) =>\n  toolFunc(async (condition) => condition, {\n    name: 'condition-retriever',\n    description: 'Retrieves condition from text',\n    schema: TextToConditionTreeOutputsSchema,\n  });\n","import type { BaseChatModel } from '@langchain/core/language_models/chat_models';\nimport type { ChatOpenAICallOptions } from '@langchain/openai';\nimport type AiProxyInternalBusinessService from 'client/features/ai/services/internal-business/proxy-router';\nimport type { AiName } from 'client/features/ai/services/internal-business/proxy-router';\nimport type AiFeatureState from 'client/features/ai/state';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type McpServerOauthInternalBusinessService from 'client/features/mcp-server/services/internal-business/oauth';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type McpServerStoreInternalBusinessService from 'client/features/mcp-server/services/internal-business/store';\n\nimport Service, { service } from '@ember/service';\n\nimport { UnknownAIError } from 'client/features/ai/errors';\n\nexport default class AiLangchainDependenciesInternalBusinessService extends Service {\n  @service('feature/ai/internal-business/proxy-router')\n  private readonly aiProxy: AiProxyInternalBusinessService;\n\n  @service('feature/ai/state') private readonly aiState: AiFeatureState;\n\n  @service('feature/mcp-server/internal-business/oauth')\n  private readonly mcpOAuthService: McpServerOauthInternalBusinessService;\n\n  @service('feature/mcp-server/internal-business/store')\n  private readonly mcpServerStore: McpServerStoreInternalBusinessService;\n\n  private waitingInitialization?: Promise<void>;\n  private isLoaded = false;\n\n  // eslint-disable-next-line @typescript-eslint/consistent-type-imports\n  openAI: typeof import('@langchain/openai');\n  // eslint-disable-next-line @typescript-eslint/consistent-type-imports\n  coreTools: typeof import('@langchain/core/tools');\n  // eslint-disable-next-line @typescript-eslint/consistent-type-imports\n  coreMessages: typeof import('@langchain/core/messages');\n\n  async ensureInitialized(): Promise<void> {\n    if (this.waitingInitialization === undefined) {\n      this.waitingInitialization = this.loadDependencies();\n    }\n\n    await this.waitingInitialization;\n  }\n\n  /**\n   * Get a model configured for the specified aiName.\n   * A new model instance is created for each call to avoid race conditions.\n   */\n  async getModel(\n    aiName?: AiName,\n    getExtraHeaders?: () => Record<string, string>,\n  ): Promise<BaseChatModel> {\n    await this.ensureInitialized();\n    return this.createModelWithAiName(aiName, getExtraHeaders);\n  }\n\n  /**\n   * Create a ChatOpenAI model with aiName baked into its fetch function.\n   * This avoids race conditions by capturing aiName in the closure.\n   */\n  private createModelWithAiName(\n    aiName: AiName | undefined,\n    getExtraHeaders?: () => Record<string, string>,\n  ): BaseChatModel {\n    const cloudFetch = async (input: string | URL | Request, init?: RequestInit) => {\n      const bodyString = init?.body?.toString();\n\n      if (!bodyString) {\n        throw new UnknownAIError(\n          new Error('Request body is missing'),\n          'AI request body is undefined or empty. This indicates an internal error in the AI request pipeline.',\n        );\n      }\n\n      let whiteListedParams: {\n        tool_choice: ChatOpenAICallOptions['tool_choice'];\n        tools: ChatOpenAICallOptions['tools'];\n        messages: [];\n        parallel_tool_calls: ChatOpenAICallOptions['parallel_tool_calls'];\n      };\n\n      try {\n        whiteListedParams = JSON.parse(bodyString);\n      } catch (error) {\n        throw new UnknownAIError(\n          error as Error,\n          `Failed to parse AI request body: ${(error as Error).message}`,\n        );\n      }\n\n      // Build OAuth headers for MCP servers that require authentication\n      const oauthHeaders = await this.buildOAuthHeadersForAllServers();\n      const extraHeaders = getExtraHeaders?.() ?? {};\n      const headers = { ...extraHeaders, ...oauthHeaders };\n\n      const response = await this.aiProxy.fetch('ai-query', {\n        method: 'POST',\n        ...(Object.keys(headers).length > 0 && { headers }),\n        body: JSON.stringify({\n          tool_choice: whiteListedParams.tool_choice,\n          messages: whiteListedParams.messages,\n          tools: whiteListedParams.tools,\n          parallel_tool_calls: whiteListedParams.parallel_tool_calls,\n        }),\n        queryParams: aiName ? { 'ai-name': aiName } : undefined,\n      });\n\n      if (!response.ok) {\n        const errorText = await response.text();\n        throw new UnknownAIError(\n          new Error(`HTTP ${response.status}: ${errorText}`),\n          `AI query failed: ${errorText || response.statusText}`,\n        );\n      }\n\n      return response;\n    };\n\n    return new this.openAI.ChatOpenAI({\n      apiKey: '', // empty because the API key is stored in our backend\n      configuration: { fetch: cloudFetch },\n      temperature: 0,\n      maxRetries: 3,\n      n: 1, // only one response\n    }).withConfig({ parallel_tool_calls: false }) as BaseChatModel;\n  }\n\n  private async loadDependencies() {\n    if (this.isLoaded) return;\n\n    // load langchain/openai only when needed because it's a big dependency\n    const [LangchainOpenAI, LangchainCoreTools, LangchainCoreMessages] = await Promise.all([\n      import('@langchain/openai'),\n      import('@langchain/core/tools'),\n      import('@langchain/core/messages'),\n    ]);\n\n    this.openAI = LangchainOpenAI;\n    this.coreTools = LangchainCoreTools;\n    this.coreMessages = LangchainCoreMessages;\n\n    this.isLoaded = true;\n  }\n\n  /**\n   * Builds the X-MCP-OAuth-Tokens header with all valid OAuth tokens.\n   * Tokens are keyed by server name (as expected by the backend).\n   * Expired tokens are automatically refreshed if a valid refresh token exists.\n   */\n  private async buildOAuthHeadersForAllServers(): Promise<Record<string, string>> {\n    const headersByServerId =\n      await this.mcpOAuthService.getAllValidAuthorizationHeadersByServerId();\n\n    if (headersByServerId.size === 0) {\n      return {};\n    }\n\n    const mcpServers = await this.mcpServerStore.getMCPServers();\n    const oauthTokens: Record<string, string> = {};\n\n    for (const mcpServer of mcpServers) {\n      const authHeader = headersByServerId.get(mcpServer.id);\n\n      if (authHeader) {\n        oauthTokens[mcpServer.serverName] = authHeader;\n      }\n    }\n\n    if (Object.keys(oauthTokens).length === 0) {\n      return {};\n    }\n\n    return { 'X-MCP-OAuth-Tokens': JSON.stringify(oauthTokens) };\n  }\n}\n","import type LianaServerFetchService from 'client/legacy/services/liana-server-fetch';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\n\nimport Service, { service } from '@ember/service';\n\nexport type AiProxyRoute = 'ai-query' | 'remote-tools' | 'invoke-remote-tool';\n\nexport type AiName = 'assist' | 'workflow';\n\nexport interface AiProxyFetchOptions {\n  method?: 'GET' | 'POST';\n  body?: string;\n  queryParams?: Record<string, string>;\n  headers?: Record<string, string>;\n}\n\nexport default class AiProxyRouterInternalBusinessService extends Service {\n  @service private readonly serverFetch: ServerFetchService;\n  @service private readonly lianaServerFetch: LianaServerFetchService;\n  @service private readonly lianaSession: LianaSessionService;\n\n  // aiLlms is an array to prepare for multiple LLMs support in the future\n  private get aiLlm(): { provider: string; name: string } | undefined {\n    return this.lianaSession.currentEnvironment?.aiLlms?.[0];\n  }\n\n  private get shouldUseLiana(): boolean {\n    return Boolean(this.aiLlm);\n  }\n\n  private get customerAiName(): string | undefined {\n    return this.aiLlm?.name;\n  }\n\n  async fetch(route: AiProxyRoute, options: AiProxyFetchOptions = {}): Promise<Response> {\n    if (this.shouldUseLiana) {\n      return this.fetchViaLiana(route, options);\n    }\n\n    return this.fetchViaForestServer(route, options);\n  }\n\n  private buildQueryParams(\n    options: AiProxyFetchOptions,\n    customerAiName?: string,\n  ): Record<string, string> {\n    const queryParams: Record<string, string> = { ...options.queryParams };\n\n    // Customer's custom AI takes precedence over our internal config (workflow/assist)\n    if (customerAiName) {\n      queryParams['ai-name'] = customerAiName;\n    }\n\n    return queryParams;\n  }\n\n  private async fetchViaLiana(\n    route: AiProxyRoute,\n    options: AiProxyFetchOptions,\n  ): Promise<Response> {\n    const queryParams = this.buildQueryParams(options, this.customerAiName);\n    const queryString = new URLSearchParams(queryParams).toString();\n    const url = queryString\n      ? `/forest/_internal/ai-proxy/${route}?${queryString}`\n      : `/forest/_internal/ai-proxy/${route}`;\n\n    return this.lianaServerFetch.fetch(url, {\n      method: options.method || 'POST',\n      headers: { 'Content-Type': 'application/json', ...options.headers },\n      body: options.body,\n    });\n  }\n\n  private async fetchViaForestServer(\n    route: AiProxyRoute,\n    options: AiProxyFetchOptions,\n  ): Promise<Response> {\n    const queryParams = this.buildQueryParams(options);\n\n    return this.serverFetch.fetch(`/api/ai-proxy/${route}`, {\n      method: options.method || 'POST',\n      queryParams,\n      body: options.body,\n      ...(options.headers && { headers: options.headers }),\n    });\n  }\n}\n","import type { StructuredTool } from '@langchain/core/tools';\nimport type { JSONSchema } from '@langchain/core/utils/json_schema';\nimport type AiLangchainDependenciesInternalBusinessService from 'client/features/ai/services/internal-business/langchain-dependencies';\nimport type AiProxyInternalBusinessService from 'client/features/ai/services/internal-business/proxy-router';\nimport type AiToolExecuteActionOnSelectedRecordInternalBusinessService from 'client/features/ai/services/internal-business/tools/tool-execute-action-on-selected-record';\nimport type AiToolGetRelatedDataInternalBusinessService from 'client/features/ai/services/internal-business/tools/tool-get-related-data';\nimport type AiToolReadSelectedRecordFieldInternalBusinessService from 'client/features/ai/services/internal-business/tools/tool-read-selected-record-field';\nimport type AiToolUpdateSelectedRecordFieldInternalBusinessService from 'client/features/ai/services/internal-business/tools/tool-update-selected-record-field';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type McpServerOauthInternalBusinessService from 'client/features/mcp-server/services/internal-business/oauth';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type McpServerStoreInternalBusinessService from 'client/features/mcp-server/services/internal-business/store';\nimport type { OAuthConfig } from 'client/features/mcp-server/types';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\nimport { z } from 'zod';\n\nimport preventAsyncConcurrency from 'client/decorators/prevent-async-concurrency';\nimport { ToolNotFoundAiError, UnknownAIError } from 'client/features/ai/errors';\nimport { CHOOSE_GATEWAY_OPTION_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-choose-gateway-option';\nimport { EXECUTE_ACTION_ON_SELECTED_RECORD_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-execute-action-on-selected-record';\nimport { GET_RELATED_DATA_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-get-related-data';\nimport { READ_SELECTED_RECORD_FIELD_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-read-selected-record-field';\nimport { UPDATE_SELECTED_RECORD_FIELD_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-update-selected-record-field';\nimport { getFirstErrorDetail, getFirstErrorName } from 'client/utils/ember-error-util';\nimport { throwHttpErrorIfResponseNotOk } from 'client/utils/errors';\n\nexport type { OAuthConfig } from 'client/features/mcp-server/types';\n\nexport interface RemoteToolDefinition {\n  name: string;\n  description: string;\n  responseFormat: 'content_and_artifact' | 'content';\n  schema: JSONSchema;\n  sourceId: string;\n  sourceType: 'mcp-server' | 'server';\n  requiresOAuth?: boolean;\n  oauthConfig?: OAuthConfig;\n}\n\nexport const FINAL_RESPONSE_TOOL_NAME = 'final-response';\n\n// tools that doesn't need AI for generating a nice sentence from the output\nexport const KNOWN_TOOLS = [\n  EXECUTE_ACTION_ON_SELECTED_RECORD_TOOL_NAME,\n  READ_SELECTED_RECORD_FIELD_TOOL_NAME,\n  UPDATE_SELECTED_RECORD_FIELD_TOOL_NAME,\n  GET_RELATED_DATA_TOOL_NAME,\n  FINAL_RESPONSE_TOOL_NAME,\n  CHOOSE_GATEWAY_OPTION_TOOL_NAME,\n] as const;\nexport type KnownToolName = (typeof KNOWN_TOOLS)[number];\n\n// tools that doesn't need user approval\nexport const SAFE_TOOLS = [FINAL_RESPONSE_TOOL_NAME, READ_SELECTED_RECORD_FIELD_TOOL_NAME] as const;\nexport type SafeToolName = (typeof SAFE_TOOLS)[number];\n\nexport default class AiToolsInternalBusinessService extends Service {\n  @service('feature/ai/internal-business/langchain-dependencies')\n  private readonly langChainDependencies: AiLangchainDependenciesInternalBusinessService;\n\n  @service('feature/ai/internal-business/tools/tool-execute-action-on-selected-record')\n  private readonly actionOnCurrentRecordTool: AiToolExecuteActionOnSelectedRecordInternalBusinessService;\n\n  @service('feature/ai/internal-business/tools/tool-read-selected-record-field')\n  private readonly readSelectedRecordFieldTool: AiToolReadSelectedRecordFieldInternalBusinessService;\n\n  @service('feature/ai/internal-business/tools/tool-update-selected-record-field')\n  private readonly updateSelectedRecordFieldTool: AiToolUpdateSelectedRecordFieldInternalBusinessService;\n\n  @service('feature/ai/internal-business/tools/tool-get-related-data')\n  private readonly getRelatedDataTool: AiToolGetRelatedDataInternalBusinessService;\n\n  @service('feature/ai/internal-business/proxy-router')\n  private readonly aiProxy: AiProxyInternalBusinessService;\n\n  @service private errorHandler: ErrorHandlerService;\n\n  @service('feature/mcp-server/internal-business/oauth')\n  private readonly mcpOAuthService: McpServerOauthInternalBusinessService;\n\n  @service('feature/mcp-server/internal-business/store')\n  private readonly mcpServerStore: McpServerStoreInternalBusinessService;\n\n  private remoteTools?: StructuredTool[];\n  private readonly serverNameToIdMap: Map<string, string> = new Map();\n  private readonly serverIdToAuthTypeMap: Map<string, string> = new Map();\n  private readonly serverIdToOAuthConfigMap: Map<string, OAuthConfig> = new Map();\n\n  private _contextHeaders: Record<string, string> = {};\n\n  setContextHeaders(headers: Record<string, string>) {\n    this._contextHeaders = headers;\n  }\n\n  clearContextHeaders() {\n    this._contextHeaders = {};\n  }\n\n  async getAllTools(clientRecord: ClientRecordModel): Promise<StructuredTool[]> {\n    const localTools: StructuredTool[] = [this.finalResponseTool];\n\n    const remoteTools = await this.getRemoteTools();\n\n    if (clientRecord) {\n      localTools.push(await this.actionOnCurrentRecordTool.createTool(clientRecord));\n      localTools.push(this.readSelectedRecordFieldTool.createTool(clientRecord));\n      localTools.push(this.updateSelectedRecordFieldTool.createTool(clientRecord));\n      localTools.push(this.getRelatedDataTool.createTool(clientRecord));\n    }\n\n    return [...localTools.filter(Boolean), ...remoteTools];\n  }\n\n  async getAllowedTools(\n    clientRecord: ClientRecordModel,\n    allowedTools: string[],\n  ): Promise<StructuredTool[]> {\n    const remoteTools = await this.getRemoteTools();\n    const tools: StructuredTool[] = await Promise.all(\n      allowedTools.map(async (toolName) => this.getTool(clientRecord, toolName, remoteTools)),\n    );\n\n    return tools.filter(Boolean);\n  }\n\n  async getTool(clientRecord: ClientRecordModel, toolName: string, remoteTools?: StructuredTool[]) {\n    const allRemoteTools = remoteTools ?? (await this.getRemoteTools());\n    switch (toolName) {\n      case EXECUTE_ACTION_ON_SELECTED_RECORD_TOOL_NAME:\n        return await this.actionOnCurrentRecordTool.createTool(clientRecord);\n      case READ_SELECTED_RECORD_FIELD_TOOL_NAME:\n        return this.readSelectedRecordFieldTool.createTool(clientRecord);\n      case UPDATE_SELECTED_RECORD_FIELD_TOOL_NAME:\n        return this.updateSelectedRecordFieldTool.createTool(clientRecord);\n      case GET_RELATED_DATA_TOOL_NAME:\n        return this.getRelatedDataTool.createTool(clientRecord);\n      case FINAL_RESPONSE_TOOL_NAME:\n        return this.finalResponseTool;\n      default: {\n        const remoteTool = allRemoteTools.find((tool) => tool.name === toolName);\n        if (remoteTool) {\n          return remoteTool;\n        } else {\n          this.errorHandler.handleSilentError(\n            new ToolNotFoundAiError(`Tool \"${toolName}\" not found`),\n          );\n        }\n      }\n    }\n  }\n\n  get finalResponseTool() {\n    return this.langChainDependencies.coreTools.tool((input) => input, {\n      name: FINAL_RESPONSE_TOOL_NAME,\n      description: 'Provides the final response to the end user.',\n      schema: z\n        .string()\n        .nonempty()\n        .describe('The final response to provide to the end user. HTML formatted.'),\n    });\n  }\n\n  @preventAsyncConcurrency\n  async fetchRemoteToolsDefinitions() {\n    // Build server mappings for use in invokeRemoteTool\n    await this.buildServerMappings();\n\n    // Build OAuth headers for all servers\n    const oauthHeaders = await this.buildOAuthHeadersForAllServers();\n    const headers = { ...this._contextHeaders, ...oauthHeaders };\n\n    const response = await this.aiProxy.fetch('remote-tools', {\n      method: 'POST',\n      ...(Object.keys(headers).length > 0 && { headers }),\n    });\n\n    if (!response.ok) {\n      const errorText = await response.text();\n      throw new UnknownAIError(\n        new Error(`HTTP ${response.status}: ${errorText}`),\n        `Failed to load remote tool definitions: ${errorText}`,\n      );\n    }\n\n    return (await response.json()) as RemoteToolDefinition[];\n  }\n\n  private async buildOAuthHeaders(\n    serverName: string,\n    mcpServerId: string,\n  ): Promise<Record<string, string>> {\n    // Use getValidAuthorizationHeader to ensure token is refreshed if expired\n    const authHeader = await this.mcpOAuthService.getValidAuthorizationHeader(mcpServerId);\n\n    if (!authHeader) {\n      return {};\n    }\n\n    return { 'X-MCP-OAuth-Tokens': JSON.stringify({ [serverName]: authHeader }) };\n  }\n\n  public getOAuthTokenForMcpServer(mcpServerId: string): string | null {\n    return this.mcpOAuthService.getAuthorizationHeader(mcpServerId);\n  }\n\n  @preventAsyncConcurrency\n  async getRemoteTools() {\n    if (this.remoteTools) return this.remoteTools;\n\n    const remoteToolDefinitions = await this.fetchRemoteToolsDefinitions();\n\n    this.remoteTools =\n      remoteToolDefinitions.map((toolDefinition) => {\n        return this.langChainDependencies.coreTools.tool(\n          async (inputs) => {\n            return this.invokeRemoteTool(toolDefinition, inputs);\n          },\n          {\n            name: toolDefinition.name,\n            description: toolDefinition.description,\n            responseFormat: toolDefinition.responseFormat,\n            schema: toolDefinition.schema,\n          },\n        );\n      }) || [];\n\n    return this.remoteTools;\n  }\n\n  /**\n   * Builds server mappings (name-to-ID, ID-to-auth-type, ID-to-OAuth-config)\n   * that are used by invokeRemoteTool to determine OAuth requirements.\n   */\n  private async buildServerMappings(): Promise<void> {\n    const mcpServers = await this.mcpServerStore.getMCPServers();\n\n    this.serverNameToIdMap.clear();\n    this.serverIdToAuthTypeMap.clear();\n    this.serverIdToOAuthConfigMap.clear();\n\n    for (const mcpServer of mcpServers) {\n      this.serverNameToIdMap.set(mcpServer.serverName, mcpServer.id);\n      this.serverIdToAuthTypeMap.set(mcpServer.id, mcpServer.authenticationType);\n\n      // Store OAuth config if authentication type is oauth2\n      if (mcpServer.authenticationType === 'oauth2') {\n        const oauthConfig = (mcpServer.config as { oauthConfig?: OAuthConfig })?.oauthConfig;\n\n        if (oauthConfig) {\n          this.serverIdToOAuthConfigMap.set(mcpServer.id, oauthConfig);\n        }\n      }\n    }\n  }\n\n  public clearRemoteTools() {\n    this.remoteTools = undefined;\n    this.serverNameToIdMap.clear();\n    this.serverIdToAuthTypeMap.clear();\n    this.serverIdToOAuthConfigMap.clear();\n  }\n\n  /**\n   * Builds the X-MCP-OAuth-Tokens header with all valid OAuth tokens.\n   * Tokens are keyed by server name (as expected by the backend).\n   * Expired tokens are automatically refreshed if a valid refresh token exists.\n   */\n  private async buildOAuthHeadersForAllServers(): Promise<Record<string, string>> {\n    const headersByServerId =\n      await this.mcpOAuthService.getAllValidAuthorizationHeadersByServerId();\n\n    if (headersByServerId.size === 0) {\n      return {};\n    }\n\n    const mcpServers = await this.mcpServerStore.getMCPServers();\n    const oauthTokens: Record<string, string> = {};\n\n    for (const mcpServer of mcpServers) {\n      const authHeader = headersByServerId.get(mcpServer.id);\n\n      if (authHeader) {\n        oauthTokens[mcpServer.serverName] = authHeader;\n      }\n    }\n\n    if (Object.keys(oauthTokens).length === 0) {\n      return {};\n    }\n\n    return { 'X-MCP-OAuth-Tokens': JSON.stringify(oauthTokens) };\n  }\n\n  private async invokeRemoteTool(tool: RemoteToolDefinition, inputs: unknown) {\n    // tool.sourceId is the serverName, but tokens are stored by mcpServerId\n    const mcpServerId = this.serverNameToIdMap.get(tool.sourceId);\n\n    // Check if MCP server requires OAuth based on local config (not backend's requiresOAuth flag)\n    const requiresOAuth =\n      tool.sourceType === 'mcp-server'\n      && mcpServerId\n      && this.serverIdToAuthTypeMap.get(mcpServerId) === 'oauth2';\n\n    // Check if OAuth is required and initiate flow if needed\n    if (requiresOAuth && !this.mcpOAuthService.hasValidOrRefreshableToken(mcpServerId)) {\n      const oauthConfig = this.serverIdToOAuthConfigMap.get(mcpServerId);\n\n      if (oauthConfig) {\n        await this.mcpOAuthService.authenticateWithConfig(mcpServerId, oauthConfig);\n      }\n    }\n\n    // Build OAuth headers if required (this will refresh the token if expired)\n    const oauthHeaders =\n      requiresOAuth && mcpServerId ? await this.buildOAuthHeaders(tool.sourceId, mcpServerId) : {};\n    const headers = { ...this._contextHeaders, ...oauthHeaders };\n\n    let body: string;\n    try {\n      body = JSON.stringify({ inputs });\n    } catch (error) {\n      throw new UnknownAIError(\n        error as Error,\n        `Failed to serialize inputs for remote tool \"${tool.name}\": ${(error as Error).message}`,\n      );\n    }\n\n    const response = await this.aiProxy.fetch('invoke-remote-tool', {\n      body,\n      queryParams: {\n        'tool-name': tool.name,\n        ...(tool.sourceId && { 'source-id': tool.sourceId }),\n      },\n      ...(Object.keys(headers).length > 0 && { headers }),\n    });\n\n    try {\n      await throwHttpErrorIfResponseNotOk(response, 'POST');\n    } catch (error) {\n      if (getFirstErrorName(error) === 'AIToolNotFoundError') {\n        throw new ToolNotFoundAiError(getFirstErrorDetail(error) || `Tool ${tool.name} not found`);\n      }\n      throw new UnknownAIError(\n        error as Error,\n        `Failed to invoke remote tool ${tool.name}: ${(error as Error).message}`,\n      );\n    }\n\n    if (tool.responseFormat === 'content_and_artifact') {\n      try {\n        return await response.json();\n      } catch (error) {\n        throw new UnknownAIError(\n          error as Error,\n          `Remote tool \"${tool.name}\" returned an invalid JSON response`,\n        );\n      }\n    }\n\n    return response.text();\n  }\n}\n","import type { DynamicStructuredTool } from '@langchain/core/tools';\nimport type AiLangchainDependenciesInternalBusinessService from 'client/features/ai/services/internal-business/langchain-dependencies';\n\nimport Service, { service } from '@ember/service';\nimport { z } from 'zod';\n\nimport { ChooseGatewayOptionAiError } from 'client/features/ai/errors';\n\nexport type ChooseGatewayOptionToolInput = {\n  option: string;\n  question: string;\n  reasoning: string;\n};\n\nexport type ChooseGatewayOptionToolOutput = {\n  option: string;\n  reasoning: string;\n};\n\nexport const CHOOSE_GATEWAY_OPTION_TOOL_NAME = 'choose-gateway-option';\nexport const FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH = 'FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH';\n\nexport default class AiToolChooseGatewayOptionInternalBusinessService extends Service {\n  @service('feature/ai/internal-business/langchain-dependencies')\n  private langChainDependencies: AiLangchainDependenciesInternalBusinessService;\n\n  createTool(availableOptions: string[]): DynamicStructuredTool | null {\n    const options = [...availableOptions, FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH];\n    const schema = z.object({\n      reasoning: z.string().describe('The reasoning behind the choice'),\n      question: z.string().describe('The question to answer by choosing an option'),\n      option: z\n        .enum(options)\n        .describe(\n          `The chosen option. Use ${FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH} if no option clearly answers the question.`,\n        ),\n    });\n\n    return this.langChainDependencies.coreTools.tool(\n      async ({ option, reasoning }: Partial<ChooseGatewayOptionToolInput>) => {\n        const chosenOption = options.find((op) => op === option);\n\n        const errorMessage = `The option must be one of: ${options.join(', ')}.`;\n        if (!chosenOption) throw new ChooseGatewayOptionAiError(errorMessage);\n\n        return [`Option chosen`, { option, reasoning } as ChooseGatewayOptionToolOutput];\n      },\n      {\n        name: CHOOSE_GATEWAY_OPTION_TOOL_NAME,\n        description: `Select the option that answers the question. Use ${FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH} if no option matches or you are uncertain. Explain your reasoning.`,\n        schema,\n        responseFormat: 'content_and_artifact',\n        verboseParsingErrors: true,\n      },\n    );\n  }\n}\n","import type { DynamicStructuredTool } from '@langchain/core/tools';\nimport type ActionFeatureService from 'client/features/action/services/feature';\nimport type AiLangchainDependenciesInternalBusinessService from 'client/features/ai/services/internal-business/langchain-dependencies';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\nimport { z } from 'zod';\n\nimport { ToolInputValidationAiError } from 'client/features/ai/errors';\n\nexport type ExecuteActionOnSelectedRecordInput = {\n  actionName: string;\n};\n\nexport const EXECUTE_ACTION_ON_SELECTED_RECORD_TOOL_NAME = 'execute-action-on-selected-record';\n\nexport default class AiToolExecuteActionOnSelectedRecordInternalBusinessService extends Service {\n  @service('feature/action')\n  private readonly actionService: ActionFeatureService;\n\n  @service('feature/ai/internal-business/langchain-dependencies')\n  private langChainDependencies: AiLangchainDependenciesInternalBusinessService;\n\n  async createTool(currentRecord: ClientRecordModel): Promise<DynamicStructuredTool | null> {\n    const actions = await this.actionService.getEnabledCustomActions(\n      currentRecord.collection.customActionsOrderedForUser,\n      [currentRecord],\n    );\n\n    if (actions.length === 0) {\n      return null;\n    }\n\n    const actionNames = actions.map((a) => a.displayName) as [string, ...string[]];\n    const schema = z.object({\n      actionName: z\n        .enum(actionNames, {\n          message: \"The specified action couldn't be found.\",\n        })\n        .describe('Name of the action to execute'),\n    });\n\n    return this.langChainDependencies.coreTools.tool(\n      async (input: Partial<ExecuteActionOnSelectedRecordInput>) => {\n        const action = actions.find((a) => a.displayName === input.actionName);\n        const errorMessage = `The action must be one of: ${actionNames.join(', ')}.`;\n        if (!action) throw new ToolInputValidationAiError(errorMessage);\n\n        // we don't want to return the result of the action, because the AI could badly use it.\n        await this.actionService.triggerCustomActionAndRefreshRecords(\n          action,\n          [currentRecord],\n          null,\n        );\n      },\n      {\n        name: EXECUTE_ACTION_ON_SELECTED_RECORD_TOOL_NAME,\n        description: 'Execute an action on the selected record',\n        schema,\n        verboseParsingErrors: true,\n      },\n    );\n  }\n}\n","import type { DynamicStructuredTool } from '@langchain/core/tools';\nimport type AiLangchainDependenciesInternalBusinessService from 'client/features/ai/services/internal-business/langchain-dependencies';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\nimport { z } from 'zod';\n\nimport { ToolInputValidationAiError } from 'client/features/ai/errors';\n\nexport type GetRelatedDataToolInput = {\n  fieldName: string;\n};\n\nexport type GetRelatedDataToolOutput = {\n  fieldName: string;\n};\n\nexport const GET_RELATED_DATA_TOOL_NAME = 'get-related-data';\n\nexport default class AiToolGetRelatedDataInternalBusinessService extends Service {\n  @service('feature/ai/internal-business/langchain-dependencies')\n  private langChainDependencies: AiLangchainDependenciesInternalBusinessService;\n\n  createTool(currentRecord: ClientRecordModel): DynamicStructuredTool | null {\n    const fieldNames = currentRecord.collection.fields\n      .filter((f) => f.isRelationship)\n      .map((f) => f.displayName);\n\n    if (fieldNames.length === 0) {\n      return null;\n    }\n\n    // fields are required\n    const schema = z.object({\n      fieldName: z\n        .enum(fieldNames as [string, ...string[]], {\n          message: 'The specified field couldn’t be found.',\n        })\n        .describe('Name of the field to retrieve related data from'),\n    });\n\n    return this.langChainDependencies.coreTools.tool(\n      async (input: Partial<GetRelatedDataToolInput>) => {\n        const relatedField = currentRecord.collection.fields.find(\n          (f) => f.displayName === input.fieldName,\n        );\n        const errorMessage = `The field must be one of: ${fieldNames.join(', ')}.`;\n        if (!relatedField) throw new ToolInputValidationAiError(errorMessage);\n\n        return [\n          `Selection of related data from field ${input.fieldName}`,\n          {\n            fieldName: relatedField.fieldName,\n          } as GetRelatedDataToolOutput,\n        ];\n      },\n      {\n        name: GET_RELATED_DATA_TOOL_NAME,\n        description: 'Get a record related to the selected record',\n        schema,\n        responseFormat: 'content_and_artifact',\n        verboseParsingErrors: true,\n      },\n    );\n  }\n}\n","import type { DynamicStructuredTool } from '@langchain/core/tools';\nimport type FieldModel from 'client/data/models/field';\nimport type AiLangchainDependenciesInternalBusinessService from 'client/features/ai/services/internal-business/langchain-dependencies';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\nimport { z } from 'zod';\n\nimport { ToolInputValidationAiError } from 'client/features/ai/errors';\nimport { getFieldFromDisplayNameOrName } from 'client/features/ai/services/internal-business/tools/utils';\n\nexport type ReadSingleSelectedRecordFieldToolOutput = {\n  value: unknown;\n  displayedValue: unknown;\n  fieldName: string;\n};\n\nexport type ReadSelectedRecordFieldErrorOutput = {\n  error: string;\n  fieldDisplayName: string;\n};\n\nexport type ReadMultipleSelectedRecordFieldToolOutput = (\n  | ReadSingleSelectedRecordFieldToolOutput\n  | ReadSelectedRecordFieldErrorOutput\n)[];\n\nexport type ReadSelectedRecordFieldToolOutput =\n  | ReadSingleSelectedRecordFieldToolOutput\n  | ReadMultipleSelectedRecordFieldToolOutput;\n\nexport type ReadSelectedRecordFieldInput = {\n  fieldName: string | string[];\n};\n\nexport const READ_SELECTED_RECORD_FIELD_TOOL_NAME = 'read-selected-record-field';\n\nexport default class AiToolReadSelectedRecordFieldInternalBusinessService extends Service {\n  @service('feature/ai/internal-business/langchain-dependencies')\n  private langChainDependencies: AiLangchainDependenciesInternalBusinessService;\n\n  createTool(currentRecord: ClientRecordModel): DynamicStructuredTool {\n    const fields = currentRecord.collection.fields.filter((field) => !field.isRelationship);\n\n    const displayNames = fields.map((f) => f.displayName) as [string, ...string[]];\n    const fieldNames = fields.map((f) => f.fieldName) as [string, ...string[]];\n    const schema = z.object({\n      fieldName: z.union(\n        [\n          z.union([z.enum(displayNames), z.enum(fieldNames)]).describe('Name of the field to get'),\n          z\n            .array(\n              z.string(), // cannot put fields enum or else if one field doesn't exist, the whole toolCall fails\n            )\n            .describe(\n              `Names of the fields to get, possible values are: ${displayNames\n                .map((name) => `\"${name}\"`)\n                .join(', ')}`,\n            ),\n        ],\n        {\n          message: `The specified field couldn’t be found.`,\n        },\n      ),\n    });\n\n    return this.langChainDependencies.coreTools.tool(\n      async (input: Partial<ReadSelectedRecordFieldInput>) => {\n        if (typeof input.fieldName === 'string') {\n          return [\n            'Requested field value has been found',\n            this.getFieldValue(currentRecord, fields, input.fieldName),\n          ];\n        }\n\n        const results: ReadMultipleSelectedRecordFieldToolOutput = [];\n\n        input.fieldName.forEach((fieldDisplayName) => {\n          try {\n            results.push(this.getFieldValue(currentRecord, fields, fieldDisplayName));\n          } catch (error) {\n            if (error instanceof ToolInputValidationAiError) {\n              results.push({\n                error: error.message,\n                fieldDisplayName,\n              });\n            } else {\n              throw error;\n            }\n          }\n        });\n\n        return ['Requested fields values have been found', results];\n      },\n      {\n        name: READ_SELECTED_RECORD_FIELD_TOOL_NAME,\n        description: 'Get value(s) of one or several fields from the selected record',\n        schema,\n        responseFormat: 'content_and_artifact',\n        verboseParsingErrors: true,\n      },\n    );\n  }\n\n  private getFieldValue(\n    currentRecord: ClientRecordModel,\n    fields: FieldModel[],\n    fieldDisplayName: string,\n  ) {\n    const field = getFieldFromDisplayNameOrName(fields, fieldDisplayName);\n    const errorMessage = `Field not found: ${fieldDisplayName}.`;\n    if (!field) throw new ToolInputValidationAiError(errorMessage);\n\n    const displayedValue = field.getDisplayedValue(currentRecord);\n    const value = currentRecord.getAttributesSerialized()[field.fieldName];\n\n    return {\n      value,\n      displayedValue,\n      fieldName: field.fieldName,\n    } as ReadSingleSelectedRecordFieldToolOutput;\n  }\n}\n","import type { DynamicStructuredTool } from '@langchain/core/tools';\nimport type FieldModel from 'client/data/models/field';\nimport type { FieldType, NestedFieldAttributes } from 'client/decorators/model-field';\nimport type AiLangchainDependenciesInternalBusinessService from 'client/features/ai/services/internal-business/langchain-dependencies';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { HttpError } from 'client/utils/errors';\nimport type { ZodObject, ZodRawShape, ZodType, ZodTypeAny } from 'zod';\n\nimport { isArray } from '@ember/array';\nimport Service, { service } from '@ember/service';\nimport { z } from 'zod';\n\nimport {\n  PermissionDeniedAiError,\n  RecordUpdateAiError,\n  ToolInputValidationAiError,\n} from 'client/features/ai/errors';\nimport { getFieldFromDisplayNameOrName } from 'client/features/ai/services/internal-business/tools/utils';\nimport { toRecordValue } from 'client/utils/ember-data-value-coercion';\nimport { getAllErrorDetails, isEmberError } from 'client/utils/ember-error-util';\n\nexport type UpdateSelectedRecordFieldToolOutput = {\n  value: unknown;\n  displayedValue: unknown;\n  fieldName: string;\n};\n\nexport type UpdateSelectedRecordFieldInput = {\n  input?: {\n    fieldName: string;\n    newValue: unknown;\n  };\n};\n\nexport const UPDATE_SELECTED_RECORD_FIELD_TOOL_NAME = 'update-selected-record-field';\n\nexport default class AiToolUpdateSelectedRecordFieldInternalBusinessService extends Service {\n  @service('feature/ai/internal-business/langchain-dependencies')\n  private langChainDependencies: AiLangchainDependenciesInternalBusinessService;\n\n  @service private currentUser: CurrentUserService;\n\n  createTool(currentRecord: ClientRecordModel): DynamicStructuredTool {\n    const fields = currentRecord.collection.fields.filter((field) => !field.isRelationship);\n\n    return this.langChainDependencies.coreTools.tool<ZodObject<ZodRawShape>>(\n      async ({\n        input,\n      }: UpdateSelectedRecordFieldInput): Promise<\n        [string, UpdateSelectedRecordFieldToolOutput]\n      > => {\n        if (!this.currentUser.canEditCollection(currentRecord.collection)) {\n          throw new PermissionDeniedAiError(\n            `Your role doesn't allow you to edit data in the \"${currentRecord.collection.displayName}\" collection.`,\n          );\n        }\n\n        const field = getFieldFromDisplayNameOrName(fields, input.fieldName);\n        const errorMessage = `Selected record field not found for name: ${input.fieldName}.`;\n        if (!field) throw new ToolInputValidationAiError(errorMessage);\n\n        currentRecord[field.attributeName] = toRecordValue(field.type, input.newValue);\n\n        let updatedRecord: ClientRecordModel;\n        try {\n          updatedRecord = await currentRecord.save();\n        } catch (e) {\n          const error = e as HttpError;\n          const message = isEmberError(error)\n            ? getAllErrorDetails(error).join('\\n')\n            : `Unexpected error: ${error.message}`;\n\n          throw new RecordUpdateAiError(message);\n        }\n\n        const displayedValue = field.getDisplayedValue(updatedRecord);\n        const value = updatedRecord.getAttributesSerialized()[field.fieldName];\n\n        return [\n          'The field has been updated successfully.',\n          {\n            value,\n            displayedValue,\n            fieldName: field.fieldName,\n          },\n        ];\n      },\n      {\n        name: UPDATE_SELECTED_RECORD_FIELD_TOOL_NAME,\n        description: 'Update the value of a field in the selected record',\n        schema: this.buildSchema(fields),\n        responseFormat: 'content_and_artifact',\n        verboseParsingErrors: true,\n      },\n    );\n  }\n\n  private buildSchema(fields: FieldModel[]) {\n    const inputTypes = fields.map((f) => {\n      const fieldType: ZodType<unknown> = this.getZodTypeFromFieldType(f.type, f.enums);\n\n      return z.object({\n        fieldName: z.union([z.literal(f.displayName), z.literal(f.fieldName)]),\n        newValue: fieldType.or(z.null()),\n      }) as ZodType<unknown>;\n    });\n\n    // this case should never occur but we handle it gracefully because union on empty array occurs an error\n    if (inputTypes.length === 0) {\n      return z.object({\n        input: z.object({\n          fieldName: z.string(),\n          newValue: z.any().or(z.null()),\n        }),\n      });\n    }\n\n    return z.object({\n      input: z\n        .union(\n          inputTypes as [\n            ZodObject<ZodRawShape>,\n            ZodObject<ZodRawShape>,\n            ...ZodObject<ZodRawShape>[],\n          ],\n        )\n        .describe(\n          'Ensure that {fieldName, newValue} is encapsuled inside an object {input: {fieldName, newValue}}',\n        ),\n    });\n  }\n\n  private getZodTypeFromFieldType(\n    fieldType: NestedFieldAttributes['type'],\n    enumValues?: string[],\n  ): ZodTypeAny {\n    if (isArray(fieldType)) {\n      const subType = this.getZodTypeFromFieldType(fieldType[0] as FieldType, enumValues);\n      return z.array(subType);\n    } else if (typeof fieldType === 'object') {\n      return this.zodTypeJson;\n    } else {\n      return this.getZodTypeFromBaseType(fieldType, enumValues);\n    }\n  }\n\n  private get zodTypeJson() {\n    return z\n      .string()\n      .refine((val) => {\n        try {\n          JSON.parse(val);\n          return true;\n        } catch {\n          return false;\n        }\n      })\n      .describe('JSON content: is expected to be a valid JSON string');\n  }\n\n  private getZodTypeFromBaseType(typeString: FieldType, enumValues?: string[]): ZodTypeAny {\n    switch (typeString) {\n      case 'Boolean':\n        return z.preprocess((val) => {\n          if (typeof val !== 'string') return val;\n          if (val === 'true') return true;\n          if (val === 'false') return false;\n        }, z.boolean());\n      case 'Date':\n        return z\n          .preprocess(\n            (value) => (value instanceof Date ? value.toISOString() : value),\n            z.iso.datetime(),\n          )\n          .describe('Datetime at ISO 8601 format');\n      case 'Dateonly':\n        return z\n          .preprocess(\n            (value) => (value instanceof Date ? value.toISOString().slice(0, 10) : value),\n            z.iso.date(),\n          )\n          .describe('Date at ISO 8601 format');\n      case 'Enum':\n        if (enumValues.length > 1) {\n          return z.enum(enumValues as [string, string, ...[string]]);\n        }\n        return z.literal(enumValues[0]);\n      case 'Number':\n        return z.coerce.number();\n      case 'String':\n      case 'Time':\n      case 'Uuid':\n      case 'File':\n        return z.string();\n      case 'Json':\n        return this.zodTypeJson;\n      case 'Point':\n        return z.array(z.number()).length(2);\n      default:\n        return z.unknown();\n    }\n  }\n}\n","import type FieldModel from 'client/data/models/field';\n\nexport function getFieldFromDisplayNameOrName(fields: FieldModel[], name: string) {\n  return fields.find((f) => f.displayName === name) || fields.find((f) => f.fieldName === name);\n}\n","import type { BaseChatModel } from '@langchain/core/language_models/chat_models';\n\nimport Service from '@ember/service';\n\nexport default class AiFeatureState extends Service {\n  model: BaseChatModel;\n}\n","import type { ToolCall, ToolMessageFieldsWithToolCallId } from '@langchain/core/messages/tool';\nimport type {\n  KnownToolName,\n  SafeToolName,\n} from 'client/features/ai/services/internal-business/tools';\n\nexport interface ToolExecution<InputArtifacts = unknown, OutputArtifacts = unknown> {\n  input?: string;\n  inputArtifacts?: InputArtifacts;\n  output?: string;\n  outputArtifacts?: OutputArtifacts;\n  toolCallId: string;\n  toolName: KnownToolName | SafeToolName | string;\n  status: ToolMessageFieldsWithToolCallId['status'];\n}\n\nexport class ToolConfirmationInterruption {\n  // WARNING: this object is stored in the workflow state.\n  // Any attribute refactor needs a database migration to update stored workflows\n  type = 'ToolConfirmation' as const;\n  args: Record<string, unknown>;\n  toolName: string;\n  toolCallId: string;\n\n  constructor(toolCall: ToolCall) {\n    this.args = toolCall.args;\n    this.toolName = toolCall.name;\n    this.toolCallId = toolCall.id;\n  }\n\n  getToolCall(): ToolCall {\n    return {\n      args: this.args,\n      name: this.toolName,\n      id: this.toolCallId,\n      type: 'tool_call',\n    };\n  }\n\n  static fromAttributes(attributes: ToolConfirmationInterruption) {\n    return new ToolConfirmationInterruption({\n      id: attributes.toolCallId,\n      args: attributes.args,\n      name: attributes.toolName,\n    });\n  }\n}\n","import { z } from 'zod';\n\nexport const OperatorSchema = z.any().refine((value) => value !== null && value !== undefined);\n\nexport const ConditionSchema = z.object({\n  fieldName: z.string(),\n  operator: OperatorSchema,\n  value: z.unknown().optional(),\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::ClientRecord::ReferenceField\\n  @collection={{@collection}}\\n  @recordIds={{@recordIds}}\\n  @shouldOpenInNewTab={{true}}\\n  {{on \\'click\\' (stop-propagation)}}\\n  data-test-feature-approval-reference-field\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/approval/components/reference-field/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal @size=\\\"sm\\\" ...attributes>\\n  <Shared::Modal::Header @title=\\\"You\\'ve been logged out\\\" @noSeparator={{true}} />\\n  <Shared::Modal::Body>\\n    <p>\\n      You\\'ve been logged out due to a new session opened on another device.\\n    </p>\\n    <p>\\n      If you think this activity might be fraudulent, please reach out to us at\\n      <Shared::Navigation::BetaLinkTo\\n        @type=\\\"primary\\\"\\n        @href=\\\"mailto:support@forestadmin.com\\\"\\n        @target=\\\"_blank\\\"\\n        @text=\\\"support@forestadmin.com\\\"\\n        @punctuation=\\\".\\\"\\n      />\\n    </p>\\n  </Shared::Modal::Body>\\n</Shared::Modal>\\n', { moduleName: 'client/features/authentication/components/duplicate-session-modal/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  onClick?: () => void | Promise<void>;\n  routeName?: string;\n}\n\n@validateArguments\nexport default class AuthenticationInternalBackButtonComponent extends Component<Args> {\n  @service private router: RouterService;\n\n  static propTypes = {\n    onClick: PropTypes.func,\n    routeName: PropTypes.string,\n  };\n\n  @action\n  async goBack() {\n    if (this.args.routeName) {\n      await this.router.transitionTo(this.args.routeName);\n    }\n\n    await this.args.onClick?.();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-authentication-back-button\\\"\\n  role=\\\"button\\\"\\n  onClick={{this.goBack}}\\n  data-test-back-button\\n  ...attributes\\n>\\n  <Shared::DataDisplay::BetaIcon @iconName=\\\"arrow_back\\\" @size=\\\"small\\\" />\\n  <span>Back</span>\\n</div>\\n', { moduleName: 'client/features/authentication/components/internal/back-button/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  onClick: () => void | Promise<void>;\n  text: string;\n  iconName: string;\n}\n\n@validateArguments\nexport default class AuthenticationInternalButtonComponent extends Component<Args> {\n  static propTypes = {\n    onClick: PropTypes.func.isRequired,\n    text: PropTypes.string.isRequired,\n    iconName: PropTypes.string.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<svg version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" viewBox=\\\"0 0 48 48\\\" ...attributes>\\n  <g>\\n    <path\\n      fill=\\\"#EA4335\\\"\\n      d=\\\"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z\\\"\\n    ></path>\\n    <path\\n      fill=\\\"#4285F4\\\"\\n      d=\\\"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z\\\"\\n    ></path>\\n    <path\\n      fill=\\\"#FBBC05\\\"\\n      d=\\\"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z\\\"\\n    ></path>\\n    <path\\n      fill=\\\"#34A853\\\"\\n      d=\\\"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z\\\"\\n    ></path>\\n    <path fill=\\\"none\\\" d=\\\"M0 0h48v48H0z\\\"></path>\\n  </g>\\n</svg>\\n', { moduleName: 'client/features/authentication/components/internal/button/google-logo/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-authentication-button\\\" role=\\\"button\\\" onClick={{@onClick}} ...attributes>\\n  {{#if (eq @iconName \\'google\\')}}\\n    <Feature::Authentication::Internal::Button::GoogleLogo />\\n  {{else}}\\n    <Shared::DataDisplay::BetaIcon @iconName=\\\"lock_outlined\\\" @size=\\\"tiny\\\" />\\n  {{/if}}\\n  <div class=\\\"c-authentication-button__text\\\">\\n    {{@text}}\\n  </div>\\n</div>\\n', { moduleName: 'client/features/authentication/components/internal/button/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type AuthenticationLoginInternalService from 'client/features/authentication/services/internal-feature/login';\nimport type AuthenticationSignUpInternalService from 'client/features/authentication/services/internal-feature/sign-up';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  actionType: 'signin' | 'signup';\n  sso: boolean;\n  linkToOtherType?: boolean;\n  invitationSecret?: string;\n}\n\n@validateArguments\nexport default class AuthenticationInternalFooterComponent extends Component<Args> {\n  @service private router: RouterService;\n\n  @service('feature/authentication/internal-feature/sign-up')\n  private signupService: AuthenticationSignUpInternalService;\n\n  @service('feature/authentication/internal-feature/login')\n  private loginService: AuthenticationLoginInternalService;\n\n  static propTypes = {\n    actionType: PropTypes.string.isRequired,\n    sso: PropTypes.bool,\n    linkToOtherType: PropTypes.bool,\n    invitationSecret: PropTypes.string,\n  };\n\n  get googleActionText() {\n    return this.args.actionType === 'signin' ? 'Sign in with Google' : 'Sign up with Google';\n  }\n\n  get ssoActionText() {\n    return this.args.actionType === 'signin' ? 'Sign in using SSO' : 'Sign up using SSO';\n  }\n\n  get queryParams() {\n    return this.args.invitationSecret ? { invitation: this.args.invitationSecret } : undefined;\n  }\n\n  @action\n  async googleAction() {\n    if (this.args.actionType === 'signin') {\n      await this.loginService.signInWithGoogle(this.args.invitationSecret);\n    } else {\n      await this.signupService.signUpWithGoogle(this.args.invitationSecret);\n    }\n  }\n\n  @action\n  async ssoAction() {\n    if (this.args.actionType === 'signin') {\n      await this.router.transitionTo('authentication.login.sso', {\n        queryParams: { invitation: this.args.invitationSecret },\n      });\n    } else {\n      await this.router.transitionTo('authentication.signup.sso', {\n        queryParams: { invitation: this.args.invitationSecret },\n      });\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-authentication-footer\\\" ...attributes>\\n  <Shared::Separator @size=\\\"large\\\" class=\\\"c-authentication-footer__separator\\\">or</Shared::Separator>\\n\\n  <div class=\\\"c-authentication-footer__buttons\\\">\\n    <Feature::Authentication::Internal::Button\\n      @text={{this.googleActionText}}\\n      @iconName=\\\"google\\\"\\n      @onClick={{this.googleAction}}\\n      data-test-google-action\\n    />\\n\\n    {{#if @sso}}\\n      <Feature::Authentication::Internal::Button\\n        @text={{this.ssoActionText}}\\n        @iconName=\\\"lock_outlined\\\"\\n        @onClick={{this.ssoAction}}\\n        data-test-sso-action\\n      />\\n    {{/if}}\\n  </div>\\n\\n  {{#if (not-eq @linkToOtherType false)}}\\n    {{#if (eq @actionType \\'signin\\')}}\\n      <div class=\\\"c-authentication-footer__redirect\\\">\\n        Don\\'t have an account?\\n        <Shared::Navigation::BetaLinkTo\\n          @type=\\\"primary\\\"\\n          @text=\\\"Sign up here\\\"\\n          @underline={{false}}\\n          @routeName=\\\"authentication.signup\\\"\\n          @queryParams={{this.queryParams}}\\n          data-test-signup-link\\n        />\\n      </div>\\n    {{else}}\\n      <div class=\\\"c-authentication-footer__redirect\\\">\\n        Already have an account?\\n        <Shared::Navigation::BetaLinkTo\\n          @type=\\\"primary\\\"\\n          @text=\\\"Sign in here\\\"\\n          @underline={{false}}\\n          @routeName=\\\"authentication.login\\\"\\n          @queryParams={{this.queryParams}}\\n          data-test-signin-link\\n        />\\n      </div>\\n    {{/if}}\\n  {{/if}}\\n\\n  {{#if (eq @actionType \\'signup\\')}}\\n    <div class=\\\"c-authentication-footer__legal-mentions\\\" data-test-legal-mentions>\\n      Signing up signifies that you have read and agree to the\\n      <Shared::Navigation::BetaLinkTo\\n        @type=\\\"primary\\\"\\n        @href=\\\"https://www.forestadmin.com/terms/\\\"\\n        @target=\\\"_blank\\\"\\n        @text=\\\"Terms of Service\\\"\\n      />\\n      and our\\n      <Shared::Navigation::BetaLinkTo\\n        @type=\\\"primary\\\"\\n        @href=\\\"https://www.forestadmin.com/privacy-policy/\\\"\\n        @target=\\\"_blank\\\"\\n        @text=\\\"Privacy policy\\\"\\n      />.\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/authentication/components/internal/footer/template.hbs' });\n","import type CurrentOrganizationService from 'client/legacy/services/current-organization';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  title: string;\n  onSubmit: () => void | Promise<void>;\n  actionText: string;\n  subtitle?: string;\n  disabled?: boolean;\n  hideLogo?: boolean;\n  noContent?: boolean;\n}\n\n@validateArguments\nexport default class AuthenticationInternalFormComponent extends Component<Args> {\n  static propTypes = {\n    title: PropTypes.string.isRequired,\n    onSubmit: PropTypes.func.isRequired,\n    actionText: PropTypes.string.isRequired,\n    subtitle: PropTypes.string,\n    disabled: PropTypes.bool,\n    hideLogo: PropTypes.bool,\n    noContent: PropTypes.bool,\n  };\n\n  @service private currentOrganization: CurrentOrganizationService;\n\n  get organization() {\n    return this.currentOrganization.model;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<form class=\\\"c-feature-authentication-internal-form\\\" submit={{@onSubmit}} ...attributes>\\n  <div class=\\\"c-feature-authentication-internal-form__header\\\">\\n    {{#unless @hideLogo}}\\n      <Picture::PictureOrganization\\n        @organization={{this.organization}}\\n        class=\\\"c-feature-authentication-internal-form__logo\\\"\\n      />\\n    {{/unless}}\\n    <Shared::Header\\n      @description={{@subtitle}}\\n      @noPadding={{true}}\\n      @size=\\\"big\\\"\\n      @shouldDisplayFullTitle={{true}}\\n      data-test-authentication-form-header\\n    >\\n      <:top>{{@title}}</:top>\\n    </Shared::Header>\\n    {{yield to=\\'header\\'}}\\n  </div>\\n  {{#if (and (has-block) (not @noContent))}}\\n    <div class=\\\"c-feature-authentication-internal-form__content\\\">\\n      {{yield}}\\n    </div>\\n  {{/if}}\\n  <div class=\\\"c-feature-authentication-internal-form__buttons\\\">\\n    <Shared::Button\\n      @type=\\\"primary\\\"\\n      @text={{@actionText}}\\n      @onClick={{@onSubmit}}\\n      @size=\\\"large\\\"\\n      disabled={{@disabled}}\\n      class=\\\"c-feature-authentication-internal-form__submit\\\"\\n      data-test-authentication-form-submit\\n    />\\n    {{yield to=\\'other-button\\'}}\\n  </div>\\n</form>\\n', { moduleName: 'client/features/authentication/components/internal/form/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type AuthenticationInvitationInternalService from 'client/features/authentication/services/internal-feature/invitation';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LogoutRedirectionService from 'client/legacy/services/logout-redirection-service';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport InvitationModel from 'client/data/models/invitation';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  invitation: InvitationModel;\n}\n\n@validateArguments\nexport default class AuthenticationInvitationComponent extends Component<Args> {\n  @service('feature/authentication/internal-feature/invitation')\n  private authenticationInvitationService: AuthenticationInvitationInternalService;\n\n  @service logoutRedirectionService: LogoutRedirectionService;\n  @service session: ForestSessionService;\n  @service router: RouterService;\n\n  static propTypes = {\n    invitation: PropTypes.instanceOf(InvitationModel).isRequired,\n  };\n\n  get teamName() {\n    return this.args.invitation.team.name;\n  }\n\n  get subtitle() {\n    return `You've been invited to join the ${this.teamName} team.`;\n  }\n\n  get invalidInvitation() {\n    return !this.authenticationInvitationService.isInvitationValid(this.args.invitation);\n  }\n\n  @action\n  async join() {\n    await this.authenticationInvitationService.join(this.args.invitation);\n  }\n\n  @action\n  async cancel() {\n    await this.router.transitionTo('index');\n  }\n\n  @action\n  async logoutToInvitation() {\n    this.logoutRedirectionService.saveCurrentAsLogoutUrl();\n\n    await this.session.invalidate({ saveCurrentUrlForLogin: false });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.invalidInvitation}}\\n  <Feature::Authentication::Internal::Form\\n    @title=\\\"Invitation is not for this account\\\"\\n    @subtitle={{concat \\'Please login using \\' @invitation.email}}\\n    @onSubmit={{this.logoutToInvitation}}\\n    @actionText=\\\"Switch accounts\\\"\\n    @hideLogo={{true}}\\n    @disabled={{false}}\\n    data-test-invitation-invalid\\n    ...attributes\\n  >\\n    <:other-button>\\n      <Shared::Button\\n        @type=\\\"danger\\\"\\n        @text=\\\"Cancel\\\"\\n        @onClick={{this.cancel}}\\n        @size=\\\"large\\\"\\n        disabled={{false}}\\n        data-test-invitation-invalid-cancel\\n      />\\n    </:other-button>\\n  </Feature::Authentication::Internal::Form>\\n\\n{{else}}\\n  <Feature::Authentication::Internal::Form\\n    @title=\\\"Join your team on Forest Admin\\\"\\n    @subtitle={{this.subtitle}}\\n    @onSubmit={{this.join}}\\n    @disabled={{this.invalidInvitation}}\\n    @actionText=\\\"Join the {{this.teamName}} team\\\"\\n    @hideLogo={{true}}\\n    data-test-invitation\\n    ...attributes\\n  />\\n{{/if}}\\n', { moduleName: 'client/features/authentication/components/invitation/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type AuthenticationLoginInternalService from 'client/features/authentication/services/internal-feature/login';\nimport type AuthenticationUtilsInternalService from 'client/features/authentication/services/internal-feature/utils';\nimport type AuthenticationFeatureState from 'client/features/authentication/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport InvitationModel from 'client/data/models/invitation';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  invitation?: InvitationModel;\n  defaultEmail?: string;\n}\n\n@validateArguments\nexport default class AuthenticationLoginFormComponent extends Component<Args> {\n  @service private router: RouterService;\n  @service('feature/authentication/state') private authenticationState: AuthenticationFeatureState;\n  @service('feature/authentication/internal-feature/login')\n  private loginService: AuthenticationLoginInternalService;\n\n  @service('feature/authentication/internal-feature/utils')\n  private authenticationUtilsService: AuthenticationUtilsInternalService;\n\n  static propTypes = {\n    invitation: PropTypes.instanceOf(InvitationModel),\n    defaultEmail: PropTypes.string,\n  };\n\n  @tracked private _email: string = null;\n  @tracked password: string = null;\n\n  get recoveryLinkSentTo() {\n    return this.authenticationState.recoveryLinkSentTo;\n  }\n\n  get title() {\n    return this.args.invitation ? 'Join your team on Forest Admin' : 'Welcome back!';\n  }\n\n  get subtitle() {\n    return this.authenticationUtilsService.getInvitationPhrase(this.args.invitation);\n  }\n\n  get email() {\n    return this.args.invitation?.email || this._email || this.args.defaultEmail;\n  }\n\n  set email(newValue: string) {\n    this._email = newValue;\n  }\n\n  get displayTwoFactor() {\n    return this.authenticationState.requireTwoFactorAuth && this.email && this.password;\n  }\n\n  get isInvalid() {\n    if (!this.password) {\n      return true;\n    }\n\n    return !this.authenticationUtilsService.isEmailValid(this.email);\n  }\n\n  @action\n  async login() {\n    await this.loginService.login({\n      email: this.email,\n      password: this.password,\n      invitationSecret: this.args.invitation?.secret,\n    });\n  }\n\n  @action\n  async goToResetPassword() {\n    await this.router.transitionTo('authentication.reset-password', {\n      queryParams: { email: this.email },\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.displayTwoFactor}}\\n  <Feature::Authentication::Login::TwoFactor\\n    @email={{this.email}}\\n    @password={{this.password}}\\n    @invitationSecret={{@invitation.secret}}\\n    data-test-login-two-factor\\n    ...attributes\\n  />\\n{{else}}\\n  <Feature::Authentication::Internal::Form\\n    @title={{this.title}}\\n    @subtitle={{this.subtitle}}\\n    @onSubmit={{this.login}}\\n    @actionText=\\\"Log in\\\"\\n    @disabled={{this.isInvalid}}\\n    data-test-login-form\\n    ...attributes\\n  >\\n    <:header>\\n      {{#if this.recoveryLinkSentTo}}\\n        <Shared::Feedback::Notification::NotificationInApp\\n          @state=\\\"success\\\"\\n          @canHide={{false}}\\n          @messageTitle=\\\"Recovery link sent!\\\"\\n          @message=\\\"If the email {{this.recoveryLinkSentTo}} exists, you will receive a password recovery link within a few minutes.\\\"\\n          data-test-notification=\\\"recovery-link-sent\\\"\\n        />\\n      {{/if}}\\n    </:header>\\n\\n    <:default>\\n      <Shared::BetaLabel @label=\\\"Email address\\\" @dataTestInputFor=\\\"email\\\">\\n        <Shared::BetaInput\\n          @value={{this.email}}\\n          @placeholder=\\\"erlich@piedpiper.com\\\"\\n          @disabled={{bool @invitation}}\\n          @readonly={{bool @invitation}}\\n          @autocomplete=\\\"username\\\"\\n          @type=\\\"email\\\"\\n        />\\n      </Shared::BetaLabel>\\n\\n      <Shared::BetaLabel\\n        @label=\\\"Password\\\"\\n        @linkLabel={{unless this.recoveryLinkSentTo \\'Forgot password?\\'}}\\n        @onClickLink={{this.goToResetPassword}}\\n        @dataTestInputFor=\\\"password\\\"\\n      >\\n        <Shared::BetaInputPasswordStrength @value={{this.password}} @hideStrength={{true}} />\\n      </Shared::BetaLabel>\\n    </:default>\\n  </Feature::Authentication::Internal::Form>\\n\\n  <Feature::Authentication::Internal::Footer\\n    @actionType=\\\"signin\\\"\\n    @sso={{not @invitation}}\\n    @linkToOtherType={{true}}\\n    @invitationSecret={{@invitation.secret}}\\n    data-test-login-form-footer\\n  />\\n{{/if}}\\n', { moduleName: 'client/features/authentication/components/login/form/template.hbs' });\n","import type InvitationModel from 'client/data/models/invitation';\nimport type AuthenticationLoginInternalService from 'client/features/authentication/services/internal-feature/login';\nimport type AuthenticationUtilsInternalService from 'client/features/authentication/services/internal-feature/utils';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument } from 'client/decorators/argument';\n\ninterface Args {\n  invitation?: InvitationModel;\n}\n\nexport default class AuthenticationLoginSsoComponent extends Component<Args> {\n  @service('feature/authentication/internal-feature/login')\n  private loginService: AuthenticationLoginInternalService;\n\n  @service('feature/authentication/internal-feature/utils')\n  private authenticationUtilsService: AuthenticationUtilsInternalService;\n\n  @argument(Boolean) isOrganizationKnown;\n\n  @tracked localOrganizationName: string = null;\n\n  get subtitle() {\n    return this.authenticationUtilsService.getInvitationPhrase(this.args.invitation);\n  }\n\n  get organizationParams() {\n    return this.loginService.getSsoOrganizationParams();\n  }\n\n  get selectedOrganizationName() {\n    return this.args.invitation?.organizationSsoName || this.organizationParams.organizationName;\n  }\n\n  get organizationName() {\n    return this.selectedOrganizationName || this.localOrganizationName;\n  }\n\n  get buttonText() {\n    return this.selectedOrganizationName\n      ? `Sign in with ${this.selectedOrganizationName}`\n      : 'Sign in';\n  }\n\n  get noContent() {\n    return Boolean(this.selectedOrganizationName);\n  }\n\n  @action\n  async loginSso() {\n    await this.loginService.loginWithSso(this.organizationName, this.args.invitation?.secret);\n  }\n\n  @action\n  async goBack() {\n    await this.loginService.cancelSsoLogin();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#unless @invitation}}\\n  <Feature::Authentication::Internal::BackButton\\n    @onClick={{this.goBack}}\\n    data-test-sso-back-button\\n  />\\n{{/unless}}\\n<Feature::Authentication::Internal::Form\\n  @title=\\\"Sign in using SSO\\\"\\n  @subtitle={{this.subtitle}}\\n  @onSubmit={{this.loginSso}}\\n  @actionText={{this.buttonText}}\\n  @disabled={{not (bool this.organizationName)}}\\n  @hideLogo={{true}}\\n  @noContent={{bool this.noContent}}\\n  data-test-sso-form\\n  ...attributes\\n>\\n  {{#unless (bool this.selectedOrganizationName)}}\\n    <Shared::BetaLabel\\n      @label=\\\"Enter your company name\\\"\\n      class=\\\"c-onboarding-form__label\\\"\\n      @dataTestInputFor=\\\"orgName\\\"\\n    >\\n      <Shared::BetaInput @value={{this.localOrganizationName}} @placeholder=\\\"Pied Piper\\\" />\\n    </Shared::BetaLabel>\\n  {{/unless}}\\n</Feature::Authentication::Internal::Form>\\n', { moduleName: 'client/features/authentication/components/login/sso/template.hbs' });\n","import type AuthenticationLoginInternalService from 'client/features/authentication/services/internal-feature/login';\nimport type AuthenticationFeatureState from 'client/features/authentication/state';\n\nimport { action } from '@ember/object';\nimport { debounce } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nconst CODE_LENGTH = 6;\nconst RECOVERY_CODE_LENGTH = 10;\n\ninterface Args {\n  email: string;\n  password: string;\n  invitationSecret?: string;\n}\n\n@validateArguments\nexport default class AuthenticationLoginTwoFactorComponent extends Component<Args> {\n  @service('feature/authentication/internal-feature/login')\n  private loginService: AuthenticationLoginInternalService;\n\n  @service('feature/authentication/state') private authenticationState: AuthenticationFeatureState;\n\n  static propTypes = {\n    email: PropTypes.string.isRequired,\n    password: PropTypes.string.isRequired,\n    invitationSecret: PropTypes.string,\n  };\n\n  @tracked errorMessage: string = null;\n  @tracked code: string = null;\n\n  get isRecovery() {\n    return this.authenticationState.requireRecoveryCode;\n  }\n\n  get variantParams() {\n    return this.isRecovery\n      ? {\n          title: 'Two-factor recovery',\n          subtitle:\n            'You can enter one of your recovery codes in case you lost access to your 2FA app.',\n          fieldLabel: 'Recovery code',\n          codeLength: RECOVERY_CODE_LENGTH,\n          codePropertyName: 'recoveryCode',\n          linkLabel: 'Can’t access your recovery codes?',\n          linkAction: this.contactSupport,\n        }\n      : {\n          title: 'Two-factor authentication',\n          subtitle:\n            'Open the two-factor authentication app on your device to view your authentication code and verify your identity.',\n          fieldLabel: 'Authentication code',\n          codeLength: CODE_LENGTH,\n          codePropertyName: 'timeBasedOneTimePassword',\n          linkLabel: 'I can’t connect using a 2FA code',\n          linkAction: this.useRecoveryCode,\n        };\n  }\n\n  get isValid() {\n    return (\n      this.loginService.normalizeTwoFactorCode(this.code).length === this.variantParams.codeLength\n    );\n  }\n\n  async launchLogin() {\n    const sentOneTimePassword = this.code;\n    await this.loginService.login({\n      email: this.args.email,\n      password: this.args.password,\n      invitationSecret: this.args.invitationSecret,\n      [this.variantParams.codePropertyName]: this.code,\n      onError: (error) => {\n        if (this.code === sentOneTimePassword) this.errorMessage = error;\n      },\n    });\n  }\n\n  @action\n  onInput() {\n    this.errorMessage = null;\n\n    if (this.isValid) {\n      debounce(this, this.launchLogin, 500);\n    }\n  }\n\n  @action\n  onSubmit() {\n    this.onInput();\n  }\n\n  @action\n  useRecoveryCode() {\n    this.code = null;\n    this.errorMessage = null;\n    this.authenticationState.requireRecoveryCode = true;\n  }\n\n  @action\n  async goBack() {\n    if (this.isRecovery) {\n      this.authenticationState.requireRecoveryCode = false;\n    } else {\n      this.authenticationState.requireTwoFactorAuth = false;\n    }\n  }\n\n  @action\n  contactSupport() {\n    this.loginService.openTwoFactorContactSupportModal(this.args.email);\n  }\n}\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  data: {\n    link: string;\n  };\n}\n\n@validateArguments\nexport default class AuthenticationLoginTwoFactorModalComponent extends Component<Args> {\n  static propTypes = {\n    data: PropTypes.object.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal class=\\\"c-feature-authentication-login-two-factor-modal\\\" ...attributes>\\n  <Shared::Modal::Header @title=\\\"Recovering your account\\\" @noSeparator={{true}} />\\n\\n  <Shared::Modal::Body>\\n    <p>\\n      If you can’t access a trusted device or recovery codes you can request a reset of your\\n      authentication settings.\\n      <strong>\\n        For security reasons you need to contact the support.\\n      </strong>\\n    </p>\\n  </Shared::Modal::Body>\\n\\n  <Shared::Modal::Footer class=\\\"c-feature-authentication-login-two-factor-modal__modal__footer\\\">\\n    <Shared::Navigation::BetaLinkTo\\n      @type=\\\"primary\\\"\\n      @href={{@data.link}}\\n      @size=\\\"large\\\"\\n      @text=\\\"I understand, contact support\\\"\\n      @underline={{false}}\\n      @displayAsButton={{true}}\\n      target=\\\"_blank\\\"\\n    />\\n  </Shared::Modal::Footer>\\n</Shared::Modal>\\n', { moduleName: 'client/features/authentication/components/login/two-factor/modal/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Authentication::Internal::BackButton\\n  @onClick={{this.goBack}}\\n  data-test-two-factor-back-button\\n/>\\n<Feature::Authentication::Internal::Form\\n  @title={{this.variantParams.title}}\\n  @subtitle={{this.variantParams.subtitle}}\\n  @onSubmit={{this.onSubmit}}\\n  @actionText=\\\"Verify code\\\"\\n  @disabled={{not this.isValid}}\\n  @hideLogo={{true}}\\n  ...attributes\\n>\\n  <Shared::BetaLabel\\n    @label={{this.variantParams.fieldLabel}}\\n    @linkLabel={{this.variantParams.linkLabel}}\\n    @onClickLink={{this.variantParams.linkAction}}\\n    @dataTestInputFor=\\\"code\\\"\\n  >\\n    <Shared::BetaInput\\n      @value={{this.code}}\\n      @type=\\\"text\\\"\\n      @state={{if this.errorMessage \\'error\\'}}\\n      @onInput={{this.onInput}}\\n      {{autofocus nestedSelector=\\'.c-beta-input\\'}}\\n    />\\n\\n    {{#if this.errorMessage}}\\n      <p class=\\\"c-login-two-factor__error\\\" data-test-two-factor-error>\\n        {{this.errorMessage}}\\n      </p>\\n    {{/if}}\\n  </Shared::BetaLabel>\\n</Feature::Authentication::Internal::Form>\\n', { moduleName: 'client/features/authentication/components/login/two-factor/template.hbs' });\n","import type RenderingModel from 'client/data/models/rendering';\nimport type TeamModel from 'client/data/models/team';\nimport type {\n  AuthorizeData,\n  OauthAuthorizationParams,\n} from 'client/features/authentication/services/internal-business/oauth';\nimport type AuthenticationOauthInternalFeatureService from 'client/features/authentication/services/internal-feature/oauth';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface OauthAuthorizeArgs {\n  oauthParams: OauthAuthorizationParams;\n  authorizeData: AuthorizeData;\n}\n\n@validateArguments\nexport default class AuthenticationOauthAuthorizeComponent extends Component<OauthAuthorizeArgs> {\n  @service('feature/authentication/internal-feature/oauth')\n  private oauthService: AuthenticationOauthInternalFeatureService;\n\n  static readonly propTypes = {\n    authorizeData: PropTypes.shape({\n      environment: PropTypes.shape({\n        id: PropTypes.string.isRequired,\n        name: PropTypes.string.isRequired,\n      }).isRequired,\n      project: PropTypes.shape({\n        id: PropTypes.string.isRequired,\n        name: PropTypes.string.isRequired,\n      }).isRequired,\n      teams: PropTypes.arrayOf(\n        PropTypes.shape({\n          id: PropTypes.string.isRequired,\n          name: PropTypes.string.isRequired,\n        }),\n      ).isRequired,\n    }),\n    oauthParams: PropTypes.shape({\n      redirect_uri: PropTypes.string.isRequired,\n      client_id: PropTypes.string.isRequired,\n      code_challenge: PropTypes.string.isRequired,\n      code_challenge_method: PropTypes.string.isRequired,\n      response_type: PropTypes.string.isRequired,\n      state: PropTypes.string,\n      resource: PropTypes.string,\n      scope: PropTypes.string,\n    }),\n  };\n\n  @tracked selectedTeam: TeamModel = null;\n  @tracked selectedRendering: RenderingModel = null;\n\n  constructor(owner: unknown, args: OauthAuthorizeArgs) {\n    super(owner, args);\n\n    if (this.teams.length > 0) {\n      this.selectedTeam = this.teams[0];\n      void this.updateSelectedRendering();\n    }\n  }\n\n  get teams() {\n    return this.args.authorizeData.teams;\n  }\n\n  get selectedProject() {\n    return this.args.authorizeData.project;\n  }\n\n  get selectedEnvironment() {\n    return this.args.authorizeData.environment;\n  }\n\n  get canGenerateAuthorizationCode() {\n    return !!this.selectedRendering;\n  }\n\n  get pageTitle() {\n    return `Authorize access to ${this.selectedProject.name} (${this.selectedEnvironment.name})`;\n  }\n\n  async updateSelectedRendering() {\n    this.selectedRendering = await this.oauthService.loadRendering(\n      this.selectedProject,\n      this.selectedEnvironment,\n      this.selectedTeam,\n    );\n  }\n\n  @action\n  async onTeamChange(team: TeamModel) {\n    this.selectedTeam = team;\n    await this.updateSelectedRendering();\n  }\n\n  @action\n  async handleAuthorize() {\n    if (!this.canGenerateAuthorizationCode) return;\n\n    await this.oauthService.authorize(this.selectedRendering, this.args.oauthParams);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Authentication::Internal::Form\\n  @title={{this.pageTitle}}\\n  @subtitle=\\\"An application is requesting access to this Forest project. Select a team to continue.\\\"\\n  @onSubmit={{this.handleAuthorize}}\\n  @actionText=\\\"Authorize\\\"\\n  @disabled={{not this.canGenerateAuthorizationCode}}\\n  class=\\\"c-feature-authentication-oauth-authorize\\\"\\n  data-test-feature-authentication-oauth-authorize\\n  ...attributes\\n>\\n  <:default>\\n    <Shared::BetaLabel @label=\\\"Team\\\" @dataTestInputFor=\\\"team\\\">\\n      <Shared::BetaSelect\\n        @value={{this.selectedTeam}}\\n        @options={{this.teams}}\\n        @onChange={{this.onTeamChange}}\\n        @placeholder=\\\"Select a team\\\"\\n        @namePath=\\\"name\\\"\\n        data-test-feature-authentication-oauth-authorize-team-input\\n      />\\n    </Shared::BetaLabel>\\n  </:default>\\n</Feature::Authentication::Internal::Form>\\n', { moduleName: 'client/features/authentication/components/oauth/authorize/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type AuthenticationResetPasswordInternalService from 'client/features/authentication/services/internal-feature/reset-password';\nimport type AuthenticationUtilsInternalService from 'client/features/authentication/services/internal-feature/utils';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ninterface Args {\n  defaultEmail?: string;\n}\n\nexport default class AuthenticationResetPasswordComponent extends Component<Args> {\n  @service('feature/authentication/internal-feature/reset-password')\n  private authenticationResetPasswordService: AuthenticationResetPasswordInternalService;\n\n  @service('feature/authentication/internal-feature/utils')\n  private authenticationUtilsService: AuthenticationUtilsInternalService;\n\n  @service private router: RouterService;\n\n  @tracked _email: string = null;\n\n  get email() {\n    return this._email || this.args.defaultEmail;\n  }\n\n  set email(newValue: string) {\n    this._email = newValue;\n  }\n\n  get isInvalid() {\n    return !this.authenticationUtilsService.isEmailValid(this.email);\n  }\n\n  @action\n  async goBack() {\n    await this.router.transitionTo('authentication.login');\n  }\n\n  @action\n  async resetPassword() {\n    await this.authenticationResetPasswordService.resetPassword(this.email);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Authentication::Internal::BackButton @routeName=\\\"authentication.login\\\" />\\n<Feature::Authentication::Internal::Form\\n  @title=\\\"Reset your password\\\"\\n  @onSubmit={{this.resetPassword}}\\n  @actionText=\\\"Reset password\\\"\\n  @disabled={{this.isInvalid}}\\n  @hideLogo={{true}}\\n  data-test-reset-password\\n  ...attributes\\n>\\n  <Shared::BetaLabel @label=\\\"Email address\\\" @dataTestInputFor=\\\"email\\\">\\n    <Shared::BetaInput\\n      @value={{this.email}}\\n      @placeholder=\\\"erlich@piedpiper.com\\\"\\n      @autocomplete=\\\"username\\\"\\n      @type=\\\"email\\\"\\n    />\\n  </Shared::BetaLabel>\\n</Feature::Authentication::Internal::Form>\\n', { moduleName: 'client/features/authentication/components/reset-password/template.hbs' });\n","import type AuthenticationSignUpInternalService from 'client/features/authentication/services/internal-feature/sign-up';\nimport type AuthenticationUtilsInternalService from 'client/features/authentication/services/internal-feature/utils';\nimport type CustomDomainService from 'client/legacy/services/custom-domain';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport InvitationModel from 'client/data/models/invitation';\nimport UserModel from 'client/data/models/user';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  user: UserModel;\n  invitation?: InvitationModel;\n  countryCode: string;\n}\n\n@validateArguments\nexport default class AuthenticationSignUpFormComponent extends Component<Args> {\n  @service private customDomain: CustomDomainService;\n  @service('feature/authentication/internal-feature/utils')\n  private authenticationUtilsService: AuthenticationUtilsInternalService;\n\n  @service('feature/authentication/internal-feature/sign-up')\n  private signupService: AuthenticationSignUpInternalService;\n\n  static propTypes = {\n    user: PropTypes.instanceOf(UserModel).isRequired,\n    invitation: PropTypes.instanceOf(InvitationModel),\n    countryCode: PropTypes.string.isRequired,\n  };\n\n  @tracked isInvalidEmail = false;\n  @tracked phoneNumber = '';\n\n  get userModel() {\n    return this.args.user;\n  }\n\n  get title() {\n    return this.args.invitation ? 'Join your team on Forest Admin' : 'Create your account';\n  }\n\n  get subtitle() {\n    return this.authenticationUtilsService.getInvitationPhrase(this.args.invitation);\n  }\n\n  get hideOptOutMarketingFromApp() {\n    return this.args.invitation && this.customDomain.isCustomDomain;\n  }\n\n  get isValid() {\n    return (\n      this.userModel.firstName\n      && this.userModel.lastName\n      && this.authenticationUtilsService.isEmailValid(this.userModel.email)\n      && this.authenticationUtilsService.isPasswordValid(this.userModel.password)\n    );\n  }\n\n  @action\n  validateEmail() {\n    this.isInvalidEmail = !this.authenticationUtilsService.isEmailValid(this.userModel.email);\n  }\n\n  @action\n  onPhoneNumberChange(newNumber: string) {\n    this.phoneNumber = newNumber;\n  }\n\n  @action\n  async signUp() {\n    await this.signupService.signUp(this.userModel, {\n      invitation: this.args.invitation,\n      phoneNumber: this.phoneNumber,\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Authentication::Internal::Form\\n  @title={{this.title}}\\n  @subtitle={{this.subtitle}}\\n  @onSubmit={{this.signUp}}\\n  @actionText=\\\"Create account\\\"\\n  @disabled={{not this.isValid}}\\n  class=\\\"c-feature-authentication-sign-up-form\\\"\\n  data-test-sign-up-form\\n  ...attributes\\n>\\n  <div class=\\\"c-feature-authentication-sign-up-form__row\\\">\\n    <Shared::BetaLabel @label=\\\"First name\\\" @dataTestInputFor=\\\"firstName\\\">\\n      <Shared::BetaInput @value={{this.userModel.firstName}} @placeholder=\\\"Erlich\\\" />\\n    </Shared::BetaLabel>\\n\\n    <Shared::BetaLabel @label=\\\"Last name\\\" @dataTestInputFor=\\\"lastName\\\">\\n      <Shared::BetaInput @value={{this.userModel.lastName}} @placeholder=\\\"Bachman\\\" />\\n    </Shared::BetaLabel>\\n  </div>\\n\\n  <Shared::BetaLabel @label=\\\"Phone number\\\" @dataTestInputFor=\\\"phoneNumber\\\">\\n    <Shared::BetaInputPhone\\n      @phoneNumber={{this.phoneNumber}}\\n      @onChange={{this.onPhoneNumberChange}}\\n      @countryCode={{@countryCode}}\\n    />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Email address\\\"\\n    @dataTestInputFor=\\\"email\\\"\\n    @isError={{this.isInvalidEmail}}\\n    @errorMessage=\\\"Please enter a valid email address\\\"\\n  >\\n    <Shared::BetaInput\\n      @value={{this.userModel.email}}\\n      @placeholder=\\\"erlich@piedpiper.com\\\"\\n      @autocomplete=\\\"username\\\"\\n      @type=\\\"email\\\"\\n      @onBlur={{this.validateEmail}}\\n      @disabled={{bool @invitation}}\\n      @readonly={{bool @invitation}}\\n      @state={{if this.isInvalidEmail \\'error\\'}}\\n      data-test-sign-up-form-email\\n    />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel @label=\\\"Password\\\" @dataTestInputFor=\\\"password\\\">\\n    <Shared::BetaInputPasswordStrength @value={{this.userModel.password}} />\\n  </Shared::BetaLabel>\\n\\n  {{#unless this.hideOptOutMarketingFromApp}}\\n    <Shared::BetaLabel\\n      @label=\\\"I am not interested in news about Forest Admin\\\"\\n      @position=\\\"right\\\"\\n      @dataTestInputFor=\\\"marketing-emails\\\"\\n      as |inputClassName|\\n    >\\n      <Form::BetaCheckbox\\n        @value={{this.userModel.optOutMarketingFromApp}}\\n        @class={{inputClassName}}\\n      />\\n    </Shared::BetaLabel>\\n  {{/unless}}\\n</Feature::Authentication::Internal::Form>\\n<Feature::Authentication::Internal::Footer\\n  @actionType=\\\"signup\\\"\\n  @sso={{false}}\\n  @linkToOtherType={{true}}\\n  @invitationSecret={{@invitation.secret}}\\n  data-test-sign-up-form-footer\\n/>\\n', { moduleName: 'client/features/authentication/components/sign-up/form/template.hbs' });\n","import type AuthenticationSignUpInternalService from 'client/features/authentication/services/internal-feature/sign-up';\nimport type AuthenticationUtilsInternalService from 'client/features/authentication/services/internal-feature/utils';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport InvitationModel from 'client/data/models/invitation';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  invitation: InvitationModel;\n}\n\n@validateArguments\nexport default class AuthenticationSignUpSsoComponent extends Component<Args> {\n  @service('feature/authentication/internal-feature/sign-up')\n  private signupService: AuthenticationSignUpInternalService;\n\n  @service('feature/authentication/internal-feature/utils')\n  private authenticationUtilsService: AuthenticationUtilsInternalService;\n\n  @tracked firstName: string;\n  @tracked lastName: string;\n\n  static propTypes = {\n    invitation: PropTypes.instanceOf(InvitationModel).isRequired,\n  };\n\n  get isValid() {\n    return this.firstName && this.lastName;\n  }\n\n  get subtitle() {\n    return this.authenticationUtilsService.getInvitationPhrase(this.args.invitation);\n  }\n\n  @action\n  async signupWithSso() {\n    await this.signupService.signUpWithSso({\n      firstName: this.firstName,\n      lastName: this.lastName,\n      email: this.args.invitation.email,\n      invitation: this.args.invitation,\n      organizationSsoName: this.args.invitation.organizationSsoName,\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Authentication::Internal::Form\\n  @title=\\\"Join your team on Forest Admin\\\"\\n  @subtitle={{this.subtitle}}\\n  @onSubmit={{this.signupWithSso}}\\n  @actionText=\\\"Sign up using SSO\\\"\\n  @disabled={{not this.isValid}}\\n  class=\\\"c-authentication-sign-up-form\\\"\\n  @hideLogo={{true}}\\n  data-test-sign-up-form\\n  ...attributes\\n>\\n  <div class=\\\"c-authentication-sign-up-form__row\\\">\\n    <Shared::BetaLabel @label=\\\"First name\\\" @dataTestInputFor=\\\"firstName\\\">\\n      <Shared::BetaInput @value={{this.firstName}} @placeholder=\\\"Erlich\\\" />\\n    </Shared::BetaLabel>\\n\\n    <Shared::BetaLabel @label=\\\"Last name\\\" @dataTestInputFor=\\\"lastName\\\">\\n      <Shared::BetaInput @value={{this.lastName}} @placeholder=\\\"Bachman\\\" />\\n    </Shared::BetaLabel>\\n  </div>\\n</Feature::Authentication::Internal::Form>\\n', { moduleName: 'client/features/authentication/components/sign-up/sso/template.hbs' });\n","import type AuthenticationResetPasswordInternalService from 'client/features/authentication/services/internal-feature/reset-password';\nimport type AuthenticationUtilsInternalService from 'client/features/authentication/services/internal-feature/utils';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  token: string;\n}\n\nexport default class AuthenticationUpdatePasswordComponent extends Component<Args> {\n  @service('feature/authentication/internal-feature/reset-password')\n  private authenticationResetPasswordService: AuthenticationResetPasswordInternalService;\n\n  @service('feature/authentication/internal-feature/utils')\n  private authenticationUtilsService: AuthenticationUtilsInternalService;\n\n  @tracked newPassword: string = null;\n  @tracked confirmPassword: string = null;\n\n  static propTypes = {\n    token: PropTypes.string.isRequired,\n  };\n\n  get isInvalid() {\n    return (\n      !this.newPassword\n      || !this.confirmPassword\n      || this.newPassword !== this.confirmPassword\n      || !this.authenticationUtilsService.isPasswordValid(this.newPassword)\n    );\n  }\n\n  @action\n  async updatePassword() {\n    await this.authenticationResetPasswordService.updatePassword(this.args.token, this.newPassword);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Authentication::Internal::BackButton @routeName=\\\"authentication.login\\\" />\\n<Feature::Authentication::Internal::Form\\n  @title=\\\"Choose your new password\\\"\\n  @onSubmit={{this.updatePassword}}\\n  @actionText=\\\"Update password\\\"\\n  @disabled={{this.isInvalid}}\\n  @hideLogo={{true}}\\n  data-test-update-password\\n  ...attributes\\n>\\n  <Shared::BetaLabel @label=\\\"Password\\\" @dataTestInputFor=\\\"new-password\\\">\\n    <Shared::BetaInputPasswordStrength @value={{this.newPassword}} />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel @label=\\\"Confirm password\\\" @dataTestInputFor=\\\"confirm-password\\\">\\n    <Shared::BetaInput @value={{this.confirmPassword}} @type=\\\"password\\\" />\\n  </Shared::BetaLabel>\\n</Feature::Authentication::Internal::Form>\\n', { moduleName: 'client/features/authentication/components/update-password/template.hbs' });\n","import type { AdapterErrorItem, HttpError } from 'client/utils/errors';\n\nimport { getFirstErrorDetail } from 'client/utils/ember-error-util';\nimport { AdapterError, UnauthorizedError, UnknownError, WrappedError } from 'client/utils/errors';\n\nexport class LianaUnauthorizedError extends UnauthorizedError {\n  constructor(errors: AdapterErrorItem[], message?: string) {\n    super(errors, message);\n\n    this.name = 'LianaUnauthorizedError';\n    this.message = message || getFirstErrorDetail(this) || 'Unauthorized';\n  }\n}\n\nexport class IpWhitelistNotRetrievedError extends AdapterError {\n  constructor(errors: AdapterErrorItem[], message?: string) {\n    super(errors, message);\n\n    this.name = 'IpWhitelistNotRetrievedError';\n    this.message = message || getFirstErrorDetail({ errors }) || 'Ip Whitelist Not Retrieved';\n  }\n}\n\nexport class UnknownJwtAuthenticatorRequestError extends UnknownError {\n  constructor(originalError: Error) {\n    super(originalError);\n    this.name = 'JwtAuthenticatorRequestError';\n  }\n}\n\nexport class NetworkErrorJwtAuthenticatorRequestError extends WrappedError {\n  constructor(originalError: Error) {\n    super(originalError);\n    this.name = 'NetworkErrorJwtAuthenticatorRequestError';\n  }\n}\n\nexport class UnknownJwtAuthenticatorResponseKoError extends UnknownError {\n  private response: Response;\n  constructor(response: Response) {\n    super(null);\n    this.response = response;\n  }\n\n  getResponse() {\n    return this.response;\n  }\n}\n\nexport class JwtGetResponseBodyMonitoringError extends WrappedError {\n  constructor(unknownErrorMessage: Error) {\n    super(unknownErrorMessage);\n    this.name = 'UnknownResponseTextError';\n  }\n}\n\nexport class MissingOauthParametersError extends Error {\n  public readonly missingParams: string[];\n\n  constructor(missingParams: string[]) {\n    super(`Missing required OAuth parameters: ${missingParams.join(', ')}`);\n    this.name = 'MissingOauthParametersError';\n    this.missingParams = missingParams;\n  }\n}\n\nexport class OauthAuthorizationError extends WrappedError {\n  public readonly errorCode: string;\n  public readonly errorDescription: string;\n\n  constructor(error: HttpError & { body: { error: string; error_description: string } }) {\n    super(\n      error,\n      `OAuth Authorization Error - Code: ${error.body.error}, Description: ${error.body.error_description}`,\n    );\n    this.name = 'OauthAuthorizationError';\n    this.errorCode = error.body.error;\n    this.errorDescription = error.body.error_description;\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type InvitationModel from 'client/data/models/invitation';\nimport type AuthenticationInvitationInternalService from 'client/features/authentication/services/internal-feature/invitation';\nimport type AuthenticationResetPasswordInternalService from 'client/features/authentication/services/internal-feature/reset-password';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type CurrentOrganizationService from 'client/legacy/services/current-organization';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LogoutMessageService from 'client/legacy/services/logout-message';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport {\n  FetchInvitationError,\n  MissingAuthenticationSamlCodeError,\n  MissingInvitationError,\n} from 'client/utils/errors';\n\nexport default class AuthenticationFeatureService extends Service {\n  @service private store: StoreService;\n  @service private currentOrganization: CurrentOrganizationService;\n  @service private currentUser: CurrentUserService;\n  @service private router: RouterService;\n  @service private logoutMessage: LogoutMessageService;\n  @service('feature/notification')\n  private notificationBusinessService: NotificationFeatureService;\n\n  @service private lianaSession: LianaSessionService;\n  @service private session: ForestSessionService;\n  @service private errorHandler: ErrorHandlerService;\n\n  @service('feature/authentication/internal-feature/invitation')\n  private authenticationInvitationService: AuthenticationInvitationInternalService;\n\n  @service('feature/authentication/internal-feature/reset-password')\n  private authenticationResetPasswordService: AuthenticationResetPasswordInternalService;\n\n  async fetchInvitation(invitationSecret?: string) {\n    let invitation: InvitationModel = null;\n    if (invitationSecret) {\n      invitation = await (this.store\n        .queryRecord('invitation', { secret: invitationSecret })\n        .catch((error: Error) => {\n          this.errorHandler.handleSilentError(new FetchInvitationError(error), { error });\n          return null;\n        }) as Promise<InvitationModel>);\n\n      if (!invitation) {\n        this.notificationBusinessService.createToastr(\n          ToastrTypeEnum.Error,\n          'Invitation not found. Please request a new invitation.',\n        );\n        this.errorHandler.handleSilentError(new MissingInvitationError());\n        await this.router.transitionTo('authentication.login', {\n          queryParams: { invitation: null },\n        });\n      } else if (invitation.organization) {\n        this.currentOrganization.define(invitation.organization);\n      }\n    }\n\n    return invitation;\n  }\n\n  displayLastLogoutMessage() {\n    this.logoutMessage.displayLastLogoutMessage();\n  }\n\n  async logout(message?: string) {\n    this.lianaSession.disableLogin();\n    this.lianaSession.invalidateAll();\n\n    if (this.session.isAuthenticated) {\n      if (message) {\n        this.session.data.message = message;\n      }\n      await this.session.invalidate({ saveCurrentUrlForLogin: false });\n    } else {\n      await this.router.transitionTo('authentication.login');\n    }\n  }\n\n  async redirectIfAlreadyAuthentified(routeName: string) {\n    if (this.currentUser.model && routeName !== 'authentication.invitation') {\n      await this.router.transitionTo('index');\n    }\n  }\n\n  async redirectIfWrongUserConnected(invitation: InvitationModel) {\n    await this.authenticationInvitationService.redirectIfWrongUserConnected(invitation);\n  }\n\n  async redirectAccordingToInvitation(routeName: string, invitation?: InvitationModel) {\n    await this.authenticationInvitationService.redirectAccordingToInvitation(routeName, invitation);\n  }\n\n  async redirectIfWrongResetPasswordToken(token: string) {\n    await this.authenticationResetPasswordService.redirectIfWrongToken(token);\n  }\n\n  async authenticateViaSaml(code: string) {\n    if (this.session.isAuthenticated && this.session.isConnectedWithSso()) {\n      console.warn('trying to authenticate via SAML while already authenticated');\n      return;\n    }\n    if (!code) {\n      throw new MissingAuthenticationSamlCodeError();\n    }\n\n    await this.session.authenticate('authenticator:jwt-saml', { code });\n  }\n}\n","import type EnvironmentModel from 'client/data/models/environment';\nimport type ProjectModel from 'client/data/models/project';\nimport type RenderingModel from 'client/data/models/rendering';\nimport type TeamModel from 'client/data/models/team';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport {\n  MissingOauthParametersError,\n  OauthAuthorizationError,\n} from 'client/features/authentication/errors';\nimport { HttpError } from 'client/utils/errors';\n\nexport interface OauthQueryParams {\n  redirect_uri?: string;\n  environmentId?: string;\n  client_id?: string;\n  code_challenge?: string;\n}\n\nexport interface OauthAuthorizationParams {\n  redirect_uri: string;\n  client_id: string;\n  code_challenge: string;\n  code_challenge_method: string;\n  response_type: string;\n  state?: string;\n  resource?: string;\n  scope?: string;\n}\n\nexport interface AuthorizeData {\n  environment: EnvironmentModel;\n  project: ProjectModel;\n  teams: TeamModel[];\n}\n\nexport default class AuthenticationOauthInternalBusinessService extends Service {\n  @service private currentUser: CurrentUserService;\n  @service private lianaSession: LianaSessionService;\n  @service private serverFetch: ServerFetchService;\n  @service private store: StoreService;\n\n  public validateParams(params: OauthQueryParams): void {\n    const missingParams: string[] = [];\n\n    if (!params?.redirect_uri) missingParams.push('redirect_uri');\n    if (!params?.environmentId) missingParams.push('environmentId');\n    if (!params?.client_id) missingParams.push('client_id');\n    if (!params?.code_challenge) missingParams.push('code_challenge');\n\n    if (missingParams.length > 0) {\n      throw new MissingOauthParametersError(missingParams);\n    }\n  }\n\n  public async loadAuthorizeData(environmentId: string): Promise<AuthorizeData> {\n    const environment = await this.store.findRecord('environment', environmentId);\n    const project = await environment.project;\n    this.lianaSession.currentProject = project;\n    await this.currentUser.model.reload();\n    await this.currentUser.model.teams;\n    const teams = this.currentUser.model.teamsOrderByName;\n\n    return {\n      environment,\n      project,\n      teams: teams.toArray(),\n    };\n  }\n\n  public async loadRendering(\n    project: ProjectModel,\n    environment: EnvironmentModel,\n    team: TeamModel,\n  ): Promise<RenderingModel> {\n    if (!team) {\n      return null;\n    }\n\n    const rendering = await this.store.queryRecord(\n      'rendering',\n      {\n        projectName: project.name,\n        environmentName: environment.name,\n        teamName: team.name,\n      },\n      { adapterOptions: { reload: true } },\n    );\n    rendering.environment = environment;\n\n    return rendering;\n  }\n\n  public async authorize(\n    rendering: RenderingModel,\n    oauthParams: OauthAuthorizationParams,\n  ): Promise<string> {\n    try {\n      const response = await this.serverFetch.fetch(\n        `/oauth/authorize`,\n        {\n          method: 'POST',\n          body: JSON.stringify({\n            rendering_id: rendering.id,\n            ...oauthParams,\n          }),\n        },\n        true,\n      );\n\n      const responseData = (await response.json()) as { code: string; state: string };\n\n      const redirectUrl = new URL(oauthParams.redirect_uri);\n      redirectUrl.searchParams.append('code', responseData.code);\n      if (responseData.state) {\n        redirectUrl.searchParams.append('state', responseData.state);\n      }\n      return redirectUrl.toString();\n    } catch (error) {\n      if (\n        error instanceof HttpError\n        && error.status === 400\n        && typeof error.body === 'object'\n        && 'error_description' in error.body\n      ) {\n        throw new OauthAuthorizationError(\n          error as HttpError & { body: { error: string; error_description: string } },\n        );\n      }\n      throw error;\n    }\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type InvitationModel from 'client/data/models/invitation';\nimport type AuthenticationInvitationInternalService from 'client/features/authentication/services/internal-feature/invitation';\nimport type AuthenticationFeatureState from 'client/features/authentication/state';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type AuthenticationRedirectionService from 'client/legacy/services/authentication-redirection-service';\nimport type CurrentOrganizationService from 'client/legacy/services/current-organization';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type SegmentService from 'ember-cli-segment/services/segment';\n\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport {\n  getFirstErrorDetail,\n  getFirstErrorName,\n  is409Error,\n  isEmberError,\n} from 'client/utils/ember-error-util';\n\nexport default class AuthenticationAfterAuthInternalService extends Service {\n  @service private router: RouterService;\n  @service private tracker: TrackerService;\n  @service private currentUser: CurrentUserService;\n  @service private currentOrganization: CurrentOrganizationService;\n  @service private segment: SegmentService;\n  @service private authenticationRedirectionService: AuthenticationRedirectionService;\n  @service('feature/notification') private notificationService: NotificationFeatureService;\n  @service('feature/authentication/state') private authenticationState: AuthenticationFeatureState;\n\n  @service('feature/authentication/internal-feature/invitation')\n  private authenticationInvitationService: AuthenticationInvitationInternalService;\n\n  async handleSignupError(error, invitation?: InvitationModel) {\n    if ((error as { message: string }).message === 'TransitionAborted') {\n      return;\n    }\n\n    let message =\n      'Forest Admin cannot create your account. Please contact support@forestadmin.com.';\n\n    if (\n      invitation\n      && getFirstErrorName(error) === 'CreateAccountFromInvitationEmailAlreadyExistsError'\n    ) {\n      message = getFirstErrorDetail(error);\n      await this.authenticationInvitationService.redirectAccordingToInvitation(\n        'authentication.login',\n        invitation,\n      );\n    } else if (is409Error(error)) {\n      message = 'This email is already used by another user.';\n    } else if (isEmberError(error)) {\n      message = getFirstErrorDetail(error);\n    } else {\n      console.error(error);\n      this.tracker.captureException(error as Error);\n    }\n\n    this.notificationService.createToastr(ToastrTypeEnum.Error, message);\n  }\n\n  async redirectToPreviousTarget() {\n    const redirectTarget = this.authenticationRedirectionService.useRedirectTarget();\n    if (redirectTarget) {\n      await this.router.transitionTo(redirectTarget);\n    } else {\n      await this.currentOrganization.transitionToProjectsIndex(true);\n    }\n  }\n\n  async handlePostLogin(invitationSecret?: string) {\n    this.segment.trackEvent('Login', { email: this.currentUser.model.email });\n    this.authenticationState.recoveryLinkSentTo = null;\n    if (invitationSecret) {\n      await this.router.transitionTo('authentication.invitation', {\n        queryParams: { invitation: invitationSecret },\n      });\n    }\n  }\n\n  async handlePostSignup(userCreated: boolean, invitationSecret?: string) {\n    this.authenticationState.recoveryLinkSentTo = null;\n    if (userCreated) {\n      if (invitationSecret) {\n        await this.currentOrganization.transitionToProjectsIndex(true);\n      } else {\n        await this.router.transitionTo('projects.create', 'introduction', '1');\n      }\n    } else {\n      await this.redirectToPreviousTarget();\n    }\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type InvitationModel from 'client/data/models/invitation';\nimport type AuthenticationAfterAuthInternalService from 'client/features/authentication/services/internal-feature/after-auth';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\n\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { getFirstErrorDetail, isEmberError } from 'client/utils/ember-error-util';\n\nexport default class AuthenticationInvitationInternalService extends Service {\n  @service private currentUser: CurrentUserService;\n  @service private router: RouterService;\n  @service private errorHandler: ErrorHandlerService;\n  @service('feature/notification') private notificationFeature: NotificationFeatureService;\n  @service('feature/authentication/internal-feature/after-auth')\n  private afterAuthService: AuthenticationAfterAuthInternalService;\n\n  private displayErrorToaster(message: string) {\n    const onToasterClose = async () => {\n      await this.router.transitionTo(`projects`);\n    };\n\n    this.notificationFeature.createToastr(ToastrTypeEnum.Error, message, {\n      onCloseCallback: onToasterClose,\n      onAutoClosed: onToasterClose,\n    });\n  }\n\n  isInvitationValid(invitation: InvitationModel) {\n    return this.currentUser.model.email.toLowerCase() === invitation.email.toLowerCase();\n  }\n\n  async redirectIfWrongUserConnected(invitation: InvitationModel) {\n    const flow = invitation.accountAlreadyExists ? 'login' : 'signup';\n    if (!this.currentUser.model) {\n      if (invitation.isSsoAccountOnly) {\n        await this.router.transitionTo(`authentication.${flow}.sso`);\n      } else {\n        await this.router.transitionTo(`authentication.${flow}.index`);\n      }\n    }\n  }\n\n  async redirectAccordingToInvitation(routeName: string, invitation?: InvitationModel) {\n    const canLogin = !invitation || invitation.accountAlreadyExists;\n    if (canLogin && routeName === 'authentication.login.sso') {\n      return;\n    }\n\n    const routeIsSSO = routeName.endsWith('sso');\n    const sso = invitation?.isSsoAccountOnly || window.Cookies.get('sso');\n\n    if (invitation?.accountAlreadyExists && routeName.startsWith('authentication.signup')) {\n      await this.router.transitionTo(`authentication.login.${sso ? 'sso' : 'index'}`);\n      return;\n    }\n\n    if (routeName === 'authentication.invitation') {\n      if (!invitation) {\n        await this.router.transitionTo(`authentication.login.${sso ? 'sso' : 'index'}`);\n      }\n      return;\n    }\n\n    if (sso && !routeIsSSO) {\n      await this.router.transitionTo(`${routeName.replace('.index', '')}.sso`);\n    } else if (!sso && routeIsSSO) {\n      await this.router.transitionTo(routeName.replace('.sso', '.index'));\n    }\n  }\n\n  async join(invitation: InvitationModel) {\n    try {\n      this.currentUser.model.invitationSecret = invitation.secret;\n      await this.currentUser.model.save();\n\n      await this.afterAuthService.redirectToPreviousTarget();\n    } catch (error) {\n      if ((error as { message: string }).message === 'TransitionAborted') {\n        return;\n      }\n\n      this.errorHandler.handleSilentError(error as Error);\n\n      if (isEmberError(error)) {\n        this.displayErrorToaster(`Invitation: ${getFirstErrorDetail(error)}`);\n      } else {\n        this.displayErrorToaster('Invitation: An error occurred while joining the project');\n      }\n    }\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type AuthenticationAfterAuthInternalService from 'client/features/authentication/services/internal-feature/after-auth';\nimport type AuthenticationFeatureState from 'client/features/authentication/state';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type GoogleAuthenticationService from 'client/legacy/services/google-authentication-service';\nimport type SamlFlowService from 'client/legacy/services/saml-flow';\nimport type { HttpError } from 'client/utils/errors';\n\nimport { isArray } from '@ember/array';\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { TwoFactorAuthenticationRequiredError } from 'client/utils/errors';\n\nexport interface LoginParameters {\n  email: string;\n  password: string;\n  invitationSecret?: string;\n  timeBasedOneTimePassword?: string;\n  recoveryCode?: string;\n  onError?: (error: string) => void | Promise<void>;\n}\n\nexport type LoginErrorType = HttpError;\n\nexport default class AuthenticationLoginInternalService extends Service {\n  @service private googleAuthenticationService: GoogleAuthenticationService;\n  @service private router: RouterService;\n  @service private samlFlow: SamlFlowService;\n  @service private session: ForestSessionService;\n  @service private errorHandler: ErrorHandlerService;\n  @service('feature/notification') private notificationService: NotificationFeatureService;\n  @service('feature/modal') private modalService: ModalFeatureService;\n  @service('feature/authentication/state') private authenticationState: AuthenticationFeatureState;\n  @service('feature/authentication/internal-feature/after-auth')\n  private afterAuthService: AuthenticationAfterAuthInternalService;\n\n  async login({\n    email,\n    password,\n    invitationSecret,\n    timeBasedOneTimePassword,\n    recoveryCode,\n    onError,\n  }: LoginParameters) {\n    try {\n      await this.session.authenticate('authenticator:jwt-secured', {\n        email,\n        password,\n        timeBasedOneTimePassword,\n        recoveryCode,\n      });\n      await this.afterAuthService.handlePostLogin(invitationSecret);\n    } catch (e) {\n      const error = e as HttpError;\n      if (error.message === 'TransitionAborted') return;\n      if (\n        error.status === 401\n        && error?.errors?.[0]?.name === 'TwoFactorAuthenticationRequiredError'\n      ) {\n        this.errorHandler.handleSilentError(new TwoFactorAuthenticationRequiredError());\n        this.authenticationState.requireTwoFactorAuth = true;\n        return;\n      }\n\n      await this.logError(error, onError);\n    }\n  }\n\n  async signInWithGoogle(invitationSecret?: string) {\n    await this.googleAuthenticationService.signIn({\n      invitationSecret,\n      callback: () => this.afterAuthService.handlePostLogin(invitationSecret),\n      onError: this.logError.bind(this),\n    });\n  }\n\n  async loginWithSso(organizationName: string, invitationSecret?: string) {\n    await this.samlFlow.initiateLogin(organizationName, {\n      destinationUrl: invitationSecret && `authentication.invitation`,\n      queryParams: { invitation: invitationSecret },\n    });\n  }\n\n  openTwoFactorContactSupportModal(email: string) {\n    const link = `https://www.forestadmin.com/forms/support?email=${email}`;\n\n    this.modalService.open('feature/authentication/login/two-factor/modal', { data: { link } });\n  }\n\n  normalizeTwoFactorCode(code: string) {\n    return (code && code.replace(/[^0-9]/g, '')) || '';\n  }\n\n  getSsoOrganizationParams() {\n    return {\n      organizationName: '',\n      organizationPictureUrl: '',\n      ...JSON.parse(window.Cookies.get('sso') || '{}'),\n    } as {\n      organizationName: string;\n      organizationPictureUrl: string;\n    };\n  }\n\n  async cancelSsoLogin() {\n    if (window.Cookies.get('sso')) {\n      window.Cookies.remove('sso');\n    }\n    await this.router.transitionTo('authentication.login');\n  }\n\n  private getMessageFromError(error: LoginErrorType): string {\n    if (error && isArray(error.errors) && error.errors[0].detail) {\n      return error.errors[0].detail;\n    }\n    if (error.status === 401 || (error as unknown as string) === 'Unauthorized') {\n      return 'Wrong email or password.';\n    }\n    return error.message;\n  }\n\n  private async logError(error: LoginErrorType, onError?: (error: string) => void | Promise<void>) {\n    this.errorHandler.handleSilentError(error);\n\n    const errorMessage = this.getMessageFromError(error);\n\n    await onError?.(errorMessage);\n\n    this.notificationService.updateToastr(ToastrTypeEnum.Error, errorMessage, 'authentication');\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type ProjectModel from 'client/data/models/project';\nimport type RenderingModel from 'client/data/models/rendering';\nimport type TeamModel from 'client/data/models/team';\nimport type AuthenticationOauthInternalBusinessService from 'client/features/authentication/services/internal-business/oauth';\nimport type {\n  AuthorizeData,\n  OauthAuthorizationParams,\n  OauthQueryParams,\n} from 'client/features/authentication/services/internal-business/oauth';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nexport default class AuthenticationOauthInternalFeatureService extends Service {\n  @service('feature/authentication/internal-business/oauth')\n  private oauthBusinessService: AuthenticationOauthInternalBusinessService;\n\n  @service private errorHandler: ErrorHandlerService;\n  @service private router: RouterService;\n  @service('liana-session') private lianaSession: LianaSessionService;\n\n  validateParamsAndRedirectIfMissing(params: OauthQueryParams): boolean {\n    try {\n      this.oauthBusinessService.validateParams(params);\n      return true;\n    } catch (error) {\n      this.errorHandler.handleError(error as Error, 'OAuth parameters validation failed');\n      this.router.transitionTo('authentication.login');\n      return false;\n    }\n  }\n\n  async loadAuthorizeData(environmentId: string): Promise<AuthorizeData> {\n    const data = await this.oauthBusinessService.loadAuthorizeData(environmentId);\n    this.lianaSession.currentProject = data.project;\n\n    return data;\n  }\n\n  async loadRendering(\n    project: ProjectModel,\n    environment: EnvironmentModel,\n    team: TeamModel,\n  ): Promise<RenderingModel | null> {\n    try {\n      return await this.oauthBusinessService.loadRendering(project, environment, team);\n    } catch (error) {\n      this.errorHandler.handleError(error as Error, 'Failed to load rendering');\n      return null;\n    }\n  }\n\n  async authorize(rendering: RenderingModel, oauthParams: OauthAuthorizationParams): Promise<void> {\n    try {\n      const callbackUrl = await this.oauthBusinessService.authorize(rendering, oauthParams);\n      window.location.href = callbackUrl;\n    } catch (error) {\n      this.errorHandler.handleError(error as Error, 'Failed to authorize OAuth client');\n    }\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type AuthenticationFeatureState from 'client/features/authentication/state';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type StoreService from 'client/legacy/services/store';\nimport type { HttpError } from 'client/utils/errors';\n\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { getFirstErrorDetail, is404Error, isEmberError } from 'client/utils/ember-error-util';\nimport { ResetPasswordFailedError, WrongTokenResetPasswordError } from 'client/utils/errors';\n\nexport default class AuthenticationResetPasswordInternalService extends Service {\n  @service('feature/notification')\n  private notificationBusinessService: NotificationFeatureService;\n\n  @service('feature/authentication/state') private authenticationState: AuthenticationFeatureState;\n\n  @service private router: RouterService;\n  @service private store: StoreService;\n  @service private errorHandler: ErrorHandlerService;\n\n  async redirectIfWrongToken(token?: string) {\n    if (!token || !/[A-Za-z0-9]{96}/.test(token)) {\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Error,\n        'This link is incorrect, please make sure you copied it fully.',\n      );\n      this.errorHandler.handleSilentError(new WrongTokenResetPasswordError());\n      await this.router.transitionTo('authentication.login.index');\n    }\n  }\n\n  async resetPassword(email: string) {\n    const request = this.store.createRecord('password-request', {\n      email,\n    });\n\n    try {\n      await request.save();\n\n      this.authenticationState.recoveryLinkSentTo = email;\n\n      await this.router.transitionTo('authentication.login');\n    } catch (e) {\n      const error = e as HttpError;\n\n      let message = `Unexpected error: ${error.name}`;\n\n      if (isEmberError(error)) {\n        message = getFirstErrorDetail(error);\n      }\n\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Error,\n        `Reset password failed: ${message}`,\n      );\n      this.errorHandler.handleSilentError(new ResetPasswordFailedError(e as Error));\n    }\n  }\n\n  async updatePassword(token: string, newPassword: string) {\n    this.authenticationState.recoveryLinkSentTo = null;\n    const password = this.store.createRecord('password', {\n      id: 1,\n      token,\n      password: newPassword,\n    });\n\n    try {\n      await password.save();\n\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Success,\n        'Your password has been updated.',\n      );\n\n      await this.router.transitionTo('authentication.login');\n    } catch (e) {\n      const error = e as HttpError;\n      let message = `Unexpected error: ${error.name}`;\n\n      if (is404Error(error)) {\n        message = 'This link is not valid anymore, please ask for a new password reset.';\n      } else if (isEmberError(error)) {\n        message = getFirstErrorDetail(error);\n      }\n\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Error,\n        `Update password failed: ${message}`,\n      );\n    }\n  }\n}\n","import type InvitationModel from 'client/data/models/invitation';\nimport type UserModel from 'client/data/models/user';\nimport type AuthenticationAfterAuthInternalService from 'client/features/authentication/services/internal-feature/after-auth';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type GoogleAuthenticationService from 'client/legacy/services/google-authentication-service';\nimport type SamlFlowService from 'client/legacy/services/saml-flow';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\n\nimport Service, { service } from '@ember/service';\n\nexport type SsoSignUpDetails = {\n  invitation?: InvitationModel;\n  organizationSsoName?: string;\n  email: string;\n  firstName: string;\n  lastName: string;\n};\n\nexport default class AuthenticationSignUpInternalService extends Service {\n  @service private serverFetch: ServerFetchService;\n  @service private segmentTracker: SegmentTrackerService;\n  @service private samlFlow: SamlFlowService;\n  @service private session: ForestSessionService;\n  @service private googleAuthenticationService: GoogleAuthenticationService;\n  @service('feature/authentication/internal-feature/after-auth')\n  private afterAuthService: AuthenticationAfterAuthInternalService;\n\n  async signUp(\n    user: UserModel,\n    { invitation, phoneNumber }: { invitation?: InvitationModel; phoneNumber?: string },\n  ) {\n    try {\n      if (invitation) {\n        user.email = invitation.email;\n      }\n\n      // NOTICE: Handle trailing '%E2%80%8E' character in the email. More info:\n      //         https://stackoverflow.com/questions/10342012/wordpress-putting-e2808e-at-the-end-of-my-url-howcome\n      //         https://stackoverflow.com/questions/20856197/remove-non-ascii-character-in-string\n      const userEmailCleaned = user.email.replace(/\\u200E/g, '');\n      user.email = userEmailCleaned;\n\n      await user.save();\n\n      this.segmentTracker.enable();\n      this.segmentTracker.identify(user.id, user.email, {\n        createdAt: user.createdAt?.toISOString(),\n      });\n\n      this.segmentTracker.trackSignupFormCompleted();\n      if (phoneNumber && phoneNumber.trim().length > 0) {\n        this.segmentTracker.trackOnboardingPhoneNumber(phoneNumber);\n      }\n      await this.session.authenticate('authenticator:jwt-secured', {\n        email: user.email,\n        password: user.password,\n      });\n\n      await this.afterAuthService.handlePostSignup(true, invitation?.secret);\n    } catch (error) {\n      await this.afterAuthService.handleSignupError(error, invitation);\n    }\n  }\n\n  // only when invited\n  async signUpWithSso({\n    invitation,\n    organizationSsoName,\n    email,\n    firstName,\n    lastName,\n  }: SsoSignUpDetails) {\n    try {\n      // Notice: New route that create a new user only in saml mode (sso only)\n      const response = await this.serverFetch.fetch(\n        '/api/saml/signup',\n        {\n          method: 'POST',\n          body: JSON.stringify({\n            invitationSecret: invitation?.secret,\n            email,\n            firstName,\n            lastName,\n          }),\n        },\n        true,\n      );\n\n      const newUser = (await response.json()) as { id: string | number; email: string };\n\n      this.segmentTracker.enable();\n      this.segmentTracker.identify(newUser.id, newUser.email, {\n        createdAt: new Date().toISOString(),\n      });\n\n      // Notice: Redirect to SAML flow to login\n      await this.samlFlow.initiateLogin(organizationSsoName, {\n        destinationUrl: 'projects',\n      });\n    } catch (error) {\n      await this.afterAuthService.handleSignupError(error, invitation);\n    }\n  }\n\n  async signUpWithGoogle(invitationSecret: string) {\n    await this.googleAuthenticationService.signUp({\n      invitationSecret,\n      callback: async ({ userCreated }: { userCreated: boolean }) =>\n        this.afterAuthService.handlePostSignup(userCreated, invitationSecret),\n    });\n  }\n}\n","import type InvitationModel from 'client/data/models/invitation';\n\nimport Service from '@ember/service';\n\nimport { EMAIL_REGEX, PASSWORD_REGEX } from 'client/utils/regex';\n\nexport default class AuthenticationUtilsInternalService extends Service {\n  getInvitationPhrase(invitation?: InvitationModel) {\n    return invitation ? `You've been invited to join the ${invitation.team.name} team.` : null;\n  }\n\n  isEmailValid(email?: string) {\n    return Boolean(email && EMAIL_REGEX.test(email));\n  }\n\n  isPasswordValid(password?: string) {\n    return Boolean(password && PASSWORD_REGEX.test(password));\n  }\n}\n","import Service from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class AuthenticationFeatureState extends Service {\n  @tracked requireTwoFactorAuth = false;\n  @tracked requireRecoveryCode = false;\n  @tracked recoveryLinkSentTo: string = null;\n}\n","import type BillingFeatureService from 'client/features/billing/services/feature';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport Project from 'client/data/models/project';\nimport Trial from 'client/data/models/trial';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type Args = {\n  trial: Trial;\n  project: Project;\n};\n\n@validateArguments\nexport default class BillingTrialNotificationBarComponent extends Component<Args> {\n  public static propTypes = {\n    trial: PropTypes.instanceOf(Trial).isRequired,\n    project: PropTypes.instanceOf(Project).isRequired,\n  };\n\n  @service('feature/billing')\n  private billingFeatureService: BillingFeatureService;\n\n  get state() {\n    return this.billingFeatureService.generateBannerState(this.args.trial, this.args.project);\n  }\n\n  get canUserUpgrade() {\n    return this.billingFeatureService.canUserUpgrade;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.state.mustDisplayBanner}}\\n  <div\\n    class=\\\"c-trial-notification-bar\\n      {{if\\n        this.state.hasTrialEnded\\n        \\'c-trial-notification-bar--danger\\'\\n        \\'c-trial-notification-bar--info\\'\\n      }}\\\"\\n    ...attributes\\n  >\\n    {{#if this.state.hasTrialEnded}}\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName=\\\"error\\\"\\n        class=\\\"c-trial-notification-bar__icon c-trial-notification-bar__icon--danger\\\"\\n      />\\n      Oh no, the\\n      {{@trial.triedPlan.displayName}}\\n      trial has ended!\\n      {{#if this.canUserUpgrade}}\\n        <Shared::Navigation::BetaLinkTo\\n          @type=\\\"info\\\"\\n          @routeName=\\\"project.project-settings.billing.upgrade\\\"\\n          @routeParameters={{this.state.upgradeParameters}}\\n          @queryParams={{this.state.upgradeQuery}}\\n          @noPadding={{true}}\\n          @text=\\\"Upgrade your account\\\"\\n          @textClass=\\\"c-trial-notification-bar__link c-trial-notification-bar__link--danger\\\"\\n        />\\n        to unlock other users.\\n      {{else}}\\n        Ask your team admin about upgrading your plan.\\n      {{/if}}\\n    {{else}}\\n      <strong class=\\\"c-trial-notification-bar__message--important\\\">\\n        Your\\n        {{@trial.triedPlan.displayName}}\\n        {{@trial.trialPlan.trialDurationInDays}}-day trial expires\\n        {{this.state.trialExpiresIn}}.\\n      </strong>\\n      {{#if this.canUserUpgrade}}\\n        <span>\\n          We recommend\\n        </span>\\n        <Shared::Navigation::BetaLinkTo\\n          @type=\\\"info\\\"\\n          @routeName=\\\"project.project-settings.billing.upgrade\\\"\\n          @routeParameters={{this.state.upgradeParameters}}\\n          @queryParams={{this.state.upgradeQuery}}\\n          @noPadding={{true}}\\n          @text=\\\"upgrading your account\\\"\\n          @textClass=\\\"c-trial-notification-bar__link c-trial-notification-bar__link--info\\\"\\n        />\\n        for a smooth transition.\\n      {{else}}\\n        Ask your team admin about upgrading your plan.\\n      {{/if}}\\n    {{/if}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/features/billing/components/trial-notification-bar/template.hbs' });\n","import type ProjectModel from 'client/data/models/project';\nimport type TrialModel from 'client/data/models/trial';\nimport type TrialBusinessService from 'client/features/billing/services/internal-business/trial';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport Service, { service } from '@ember/service';\n\nexport type BannerState = {\n  mustDisplayBanner: boolean;\n  hasTrialEnded: boolean;\n  upgradeQuery: {\n    plan: string;\n    commitment: string;\n  };\n  upgradeParameters: string[];\n  trialExpiresIn: string;\n};\n\nexport default class BillingFeatureService extends Service {\n  @service('feature/billing/internal-business/trial')\n  private trialService: TrialBusinessService;\n\n  @service('current-user')\n  private currentUser: CurrentUserService;\n\n  public generateBannerState(\n    trial: TrialModel | null | undefined,\n    project: ProjectModel,\n  ): BannerState {\n    return {\n      mustDisplayBanner: this.trialService.mustDisplayBanner(trial),\n      hasTrialEnded: this.trialService.hasTrialEnded(trial),\n      trialExpiresIn: this.trialService.generateTrialExpiresIn(trial),\n      upgradeParameters: [project.name],\n      upgradeQuery: trial\n        ? {\n            plan: trial?.trialPlan?.type,\n            commitment: 'yearly',\n          }\n        : undefined,\n    };\n  }\n\n  public get canUserUpgrade(): boolean {\n    return this.currentUser.canEditProject;\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type TrialModel from 'client/data/models/trial';\n\nimport Service, { service } from '@ember/service';\nimport moment from 'moment';\n\nexport default class BillingTrialInternalBusinessService extends Service {\n  @service('router')\n  private router: RouterService;\n\n  public mustDisplayBanner(trial: TrialModel | null): boolean {\n    return Boolean(\n      !this.router.currentRouteName.split('.').includes('onboarding')\n        && trial?.triedPlan\n        && ((trial?.warnsAt && trial?.warnsAt < new Date()) || trial?.endsAt < new Date()),\n    );\n  }\n\n  public hasTrialEnded(trial?: TrialModel): boolean {\n    return trial?.endsAt < new Date();\n  }\n\n  public generateTrialExpiresIn(trial?: TrialModel): string {\n    if (!trial) return undefined;\n\n    const momentNow = moment(new Date());\n    const trialEnd = moment(trial.endsAt);\n\n    const days = trialEnd.diff(momentNow, 'days');\n\n    if (days <= 0) {\n      return 'today';\n    }\n\n    if (days === 1) {\n      return 'tomorrow';\n    }\n\n    return `in ${days + 1} days`;\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type BrowserExtensionFeatureService from 'client/features/browser-extension/services/feature';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionProjectCrawlingInternalBusinessService from 'client/features/browser-extension/services/internal-business/crawling';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type RedirectionService from 'client/legacy/services/redirection';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class BrowserExtensionPagesOnboardingComponent extends Component {\n  @service private router: RouterService;\n  @service private session: ForestSessionService;\n  @service private redirection: RedirectionService;\n  @service private currentUser: CurrentUserService;\n\n  @service('feature/browser-extension/state')\n  private state: BrowserExtensionFeatureState;\n\n  @service('feature/browser-extension')\n  private featureService: BrowserExtensionFeatureService;\n\n  @service('feature/browser-extension/internal-business/crawling')\n  private crawlingService: BrowserExtensionProjectCrawlingInternalBusinessService;\n\n  @tracked isAuthenticating = false;\n\n  @action\n  async handleAuthenticate() {\n    // when the user is disconnecting we do nothing\n    if (!this.session.isAuthenticated) return;\n    // this handler is used to manage two cases:\n    // 1. When the user wants to connect his account from the browser extension\n    // 2. When the user wants to connect his account from the web app\n    try {\n      this.isAuthenticating = true;\n      await this.featureService.enableAssist();\n      await this.router.transitionTo('responsive.browser-extension.main');\n    } finally {\n      this.isAuthenticating = false;\n    }\n  }\n\n  get title() {\n    if (this.requiresUserAction) return 'Admin configuration required';\n    if (this.isAuthenticated) return 'Project setup needed';\n    return 'Connect your account';\n  }\n\n  get subtitle() {\n    if (this.requiresUserAction) {\n      return 'In order to use Forest Assist, an admin must set up the project.';\n    }\n    if (this.isAuthenticated) {\n      return 'Please configure the project to enable your team to start working.';\n    }\n    return 'Please connect your account to start working.';\n  }\n\n  get buttonText() {\n    if (this.isAuthenticated) return 'Setup project';\n    return 'Connect account';\n  }\n\n  get isAuthenticated() {\n    return this.session.isAuthenticated && !this.isAuthenticating;\n  }\n\n  @action\n  async buttonAction() {\n    if (this.isAuthenticated) {\n      await this.router.transitionTo('responsive.browser-extension.settings');\n    } else {\n      // open a new tab to login and wait until the user is authenticated\n      // then close the tab and focus back to the original tab\n      const authenticationWindow = this.redirection.openNewTab(\n        this.router.urlFor('authentication.login'),\n      );\n      await this.session.waitUntilAuthenticated();\n      this.crawlingService.focusSidePanel();\n      authenticationWindow.close();\n    }\n  }\n\n  get requiresUserAction() {\n    return this.isAuthenticated && this.state.hasProjectSettings && !this.currentUser.isAdmin;\n  }\n\n  get icon() {\n    if (this.requiresUserAction) return '/img/browser-extension/icon--lock-person.svg';\n    return '/img/browser-extension/icon--click.svg';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-browser-extension-pages-home\\\" ...attributes>\\n\\n  {{did-update this.handleAuthenticate this.session.isAuthenticated}}\\n  <span class=\\\"c-browser-extension-pages-home__icon-container\\\">\\n    {{#if this.requiresUserAction}}\\n      <Feature::BrowserExtension::Shared::Icons::LockPerson\\n        class=\\\"c-browser-extension-pages-home__icon-container__icon\\\"\\n      />\\n    {{else}}\\n      <Feature::BrowserExtension::Shared::Icons::Click\\n        class=\\\"c-browser-extension-pages-home__icon-container__icon\\\"\\n      />\\n    {{/if}}\\n  </span>\\n\\n  <section class=\\\"c-browser-extension-pages-home__title\\\">\\n    <Feature::BrowserExtension::Shared::Typography::Title2>\\n      {{this.title}}\\n    </Feature::BrowserExtension::Shared::Typography::Title2>\\n    <Feature::BrowserExtension::Shared::Typography::Subtitle>\\n      {{this.subtitle}}\\n    </Feature::BrowserExtension::Shared::Typography::Subtitle>\\n  </section>\\n\\n  {{#unless this.requiresUserAction}}\\n    <div class=\\\"c-browser-extension-pages-home__button\\\">\\n      <Shared::Button\\n        @type=\\\"primary\\\"\\n        @text={{this.buttonText}}\\n        @iconName=\\\"arrow_forward\\\"\\n        @isIconAfterText={{true}}\\n        @iconSize=\\\"tiny\\\"\\n        @onClick={{this.buttonAction}}\\n        @isLoading={{this.isAuthenticating}}\\n      />\\n    </div>\\n  {{/unless}}\\n</div>\\n', { moduleName: 'client/features/browser-extension/components/pages/onboarding/template.hbs' });\n","// FIXME\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionRelatedRecordsManagerInternalBusinessService from 'client/features/browser-extension/services/internal-business/related-records-manager';\nimport type BrowserExtensionRouterView from 'client/features/browser-extension/services/internal-feature/router-view';\nimport type BrowserExtensionSearchInternalService from 'client/features/browser-extension/services/internal-feature/search';\nimport type State from 'client/features/browser-extension/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class BrowserExtensionPagesSearchComponent extends Component {\n  @service('feature/browser-extension/state') state: State;\n\n  @service('feature/browser-extension/internal-business/related-records-manager')\n  readonly relatedRecordsManager: BrowserExtensionRelatedRecordsManagerInternalBusinessService;\n\n  @service('feature/browser-extension/internal-feature/router-view')\n  routerView: BrowserExtensionRouterView;\n\n  @service('feature/browser-extension/internal-feature/search')\n  private readonly searchInternalService: BrowserExtensionSearchInternalService;\n\n  @tracked manualSearch = false;\n\n  get messageWithIconIcon() {\n    return this.crawlingErrorMessage ? 'error' : 'ads_click';\n  }\n\n  get displaySearch() {\n    return this.manualSearch || this.crawledIdentifierAvailable || this.crawlingErrorMessage;\n  }\n\n  get crawledIdentifierAvailable() {\n    return this.state.crawlingState.crawledData?.identifier?.value;\n  }\n\n  get genericCollectionName() {\n    return this.searchInternalService.genericCollectionName;\n  }\n\n  get isSearchDisabled() {\n    return this.state.routerViewState.views.length > 0 || this.state.searchState.displaySearch;\n  }\n\n  get crawlingErrorMessage() {\n    return this.state.crawlingState.crawledData?.identifier?.errorMessage;\n  }\n\n  get messageWithIconText() {\n    const text = { title: '', subtitle: undefined };\n    if (this.crawlingErrorMessage) {\n      text.subtitle = this.crawlingErrorMessage;\n      if (this.crawlingErrorMessage?.includes('field is visible on the page')) {\n        text.title = 'No identifier found';\n      } else {\n        text.title = 'No requester detected';\n      }\n    } else if (this.state.searchState.value || this.crawledIdentifierAvailable) {\n      text.title = 'Select a record';\n      text.subtitle = 'Pick a suggested user from the list below, or search for another one';\n    } else {\n      text.title = 'Open a ticket to get started';\n    }\n    return text;\n  }\n\n  @action\n  showSearch() {\n    this.manualSearch = true;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Shared::LayoutView @showBackButton={{false}}>\\n  <:header-left>\\n    <div class=\\\"c-feature-browser-extension-pages-search__header\\\">\\n      <Shared::DataDisplay::BetaIcon @iconName=\\\"info_outlined\\\" @size=\\\"tiny\\\" />\\n      No\\n      {{this.genericCollectionName}}\\n      selected\\n    </div>\\n  </:header-left>\\n  <:header-right>\\n    {{#unless this.displaySearch}}\\n      <Shared::Button\\n        id=\\\"search-button\\\"\\n        @iconName=\\\"search\\\"\\n        @type=\\\"ghost\\\"\\n        @size=\\\"browser-extension\\\"\\n        @onClick={{this.showSearch}}\\n        disabled={{this.isSearchDisabled}}\\n        data-test-search-button\\n      />\\n    {{/unless}}\\n  </:header-right>\\n\\n  <:body>\\n    <Feature::BrowserExtension::Shared::MessageWithIcon\\n      @icon={{this.messageWithIconIcon}}\\n      @iconSize=\\\"normal\\\"\\n      @title={{this.messageWithIconText.title}}\\n      @subtitle={{this.messageWithIconText.subtitle}}\\n      @center={{not this.displaySearch}}\\n      @isError={{this.crawlingErrorMessage}}\\n    />\\n\\n    {{#if this.displaySearch}}\\n      <Feature::BrowserExtension::Shared::Search />\\n    {{/if}}\\n  </:body>\\n</Feature::BrowserExtension::Shared::LayoutView>\\n', { moduleName: 'client/features/browser-extension/components/pages/search/template.hbs' });\n","/* eslint-disable forest-custom/dependency-rules */\nimport type RouterService from '@ember/routing/router-service';\nimport type BrowserExtensionConfigurationModel from 'client/data/models/browser-extension-configuration';\nimport type BrowserExtensionConfigurationCollectionSearchSettingModel from 'client/data/models/browser-extension-configuration-collection-search-setting';\nimport type CollectionModel from 'client/data/models/collection';\nimport type BrowserExtensionConfigurationInternalBusinessService from 'client/features/browser-extension/services/internal-business/configuration';\nimport type BrowserExtensionProjectCrawlingInternalBusinessService from 'client/features/browser-extension/services/internal-business/crawling';\nimport type { IdentifierWithSass } from 'client/features/browser-extension/services/internal-business/crawling';\nimport type BrowserExtensionFieldsInternalBusinessService from 'client/features/browser-extension/services/internal-business/fields';\nimport type State from 'client/features/browser-extension/state';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type StoreService from 'client/legacy/services/store';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport _ from 'lodash';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nexport default class BrowserExtensionPagesSettingsAdvancedSettingsComponent extends Component {\n  @service private router: RouterService;\n  @service('feature/notification')\n  private notificationBusinessService: NotificationFeatureService;\n\n  @service private tracker: TrackerService;\n\n  @service('feature/browser-extension/internal-business/configuration')\n  private configurationService: BrowserExtensionConfigurationInternalBusinessService;\n\n  @service('feature/browser-extension/state') private state: State;\n\n  @service('feature/browser-extension/internal-business/fields')\n  private fieldsService: BrowserExtensionFieldsInternalBusinessService;\n\n  @service('feature/browser-extension/internal-business/crawling')\n  private readonly crawlingService: BrowserExtensionProjectCrawlingInternalBusinessService;\n\n  @service private store: StoreService;\n\n  @tracked isSaveFailed = false;\n  @tracked isLoading = true;\n  @tracked localConfiguration: BrowserExtensionConfigurationModel;\n  @tracked identifiersWithSaas: IdentifierWithSass[];\n  @tracked selectedIdentifierWithSass: IdentifierWithSass;\n\n  get isLocalConfigurationDirty() {\n    const copy = this.localConfiguration.toJSON();\n    copy.searchSettings = this.removeEmptySearchSettings(copy.searchSettings);\n    return !_.isEqual(copy, this.state.extensionConfiguration?.toJSON());\n  }\n\n  get canSave() {\n    if (this.isLoading) return false;\n    if (!this.localConfiguration.isValidForSave) return false;\n\n    return this.isSaveFailed || this.isLocalConfigurationDirty;\n  }\n\n  get sortedCollections() {\n    return (\n      this.state.currentRendering?.collections\n        .filter(\n          (collection) =>\n            this.fieldsService.getFilterableFieldsInAssist(collection.filterableFields).length > 0,\n        )\n        .sortBy('displayName') || ([] as CollectionModel[])\n    );\n  }\n\n  get alreadyPickedCollections() {\n    return this.sortedCollections.filter((collection) =>\n      this.localConfiguration.searchSettings\n        .map((setting) => setting.collectionName)\n        .includes(collection.name),\n    );\n  }\n\n  get identifier() {\n    return this.localConfiguration.identifier;\n  }\n\n  @action\n  async loadState() {\n    try {\n      this.isLoading = true;\n      // must be loaded at first to retrieve identifier with saas\n      this.identifiersWithSaas = await this.crawlingService.getAvailableIdentifiers();\n\n      this.selectedIdentifierWithSass = this.savedIdentifier ?? this.identifiersWithSaas[0];\n      const payload = {\n        project: this.store.peekRecord('project', this.state.projectSettings.projectId),\n\n        searchSettings: this.state.extensionConfiguration?.searchSettings.map((searchSetting) =>\n          searchSetting.toJSON(),\n        ) ?? [this.emptySearchSetting],\n        autoSelect: this.state.extensionConfiguration?.autoSelect ?? true,\n        enableAi: this.state.extensionConfiguration?.enableAi ?? true,\n        identifier: this.selectedIdentifierWithSass.name,\n        configuredFromSaas: this.selectedIdentifierWithSass.saas,\n        customIdentifierValue: this.state.extensionConfiguration?.customIdentifierValue,\n      };\n\n      this.localConfiguration = this.store.createRecord('browser-extension-configuration', payload);\n    } catch (e) {\n      const error = e as Error;\n      console.warn(error);\n      this.tracker.captureException(error);\n    } finally {\n      this.isLoading = false;\n    }\n  }\n\n  get canRemoveCollections() {\n    return this.localConfiguration.searchSettings.length > 1;\n  }\n\n  @action\n  onChangeCollection(collectionName: string, index: number) {\n    if (!collectionName) {\n      this.localConfiguration.searchSettings.removeAt(index);\n    } else {\n      this.localConfiguration.searchSettings.replace(index, 1, [\n        this.newSearchSetting({ collectionName, fieldNames: [] }),\n      ]);\n    }\n  }\n\n  newSearchSetting(params: { collectionName: string; fieldNames: string[] }) {\n    const { collectionName, fieldNames } = params;\n    return this.store.createRecord('browser-extension-configuration-collection-search-setting', {\n      collectionName,\n      fieldNames,\n    }) as BrowserExtensionConfigurationCollectionSearchSettingModel;\n  }\n\n  @action\n  onChangeFields(fieldNames: string[], index: number) {\n    this.localConfiguration.searchSettings.objectAt(index).set('fieldNames', fieldNames);\n  }\n\n  @action\n  onChangeIdentifier(identifier: IdentifierWithSass) {\n    this.localConfiguration.identifier = identifier.name;\n    this.localConfiguration.configuredFromSaas = identifier.saas;\n  }\n\n  @action\n  async save() {\n    const isFirstConfiguration = !this.state.extensionConfiguration;\n    this.isSaveFailed = false;\n    try {\n      this.localConfiguration.searchSettings = this.removeEmptySearchSettings(\n        this.localConfiguration.searchSettings,\n      ) as BrowserExtensionConfigurationCollectionSearchSettingModel[];\n\n      await this.configurationService.saveConfiguration(this.localConfiguration);\n      this.notificationBusinessService.createToastr(ToastrTypeEnum.Success, 'User mapping saved!');\n      if (isFirstConfiguration) {\n        await this.router.transitionTo('responsive.browser-extension.main');\n      }\n    } catch (e) {\n      this.isSaveFailed = true;\n      console.error(e);\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Error,\n        'Failed to save user mapping',\n      );\n    }\n  }\n\n  @action\n  addSearchSetting() {\n    this.localConfiguration.searchSettings.pushObject(this.emptySearchSetting);\n  }\n\n  private removeEmptySearchSettings(\n    searchSettings: (\n      | { fieldNames: string[]; collectionName: string }\n      | BrowserExtensionConfigurationCollectionSearchSettingModel\n    )[],\n  ) {\n    return searchSettings.filter((searchSetting) => !!searchSetting.collectionName);\n  }\n\n  private get emptySearchSetting() {\n    return this.newSearchSetting({\n      collectionName: undefined,\n      fieldNames: [],\n    });\n  }\n\n  private get savedIdentifier() {\n    return this.identifiersWithSaas.find(\n      (identifier) =>\n        identifier.name === this.state.extensionConfiguration?.identifier\n        && (!this.state.extensionConfiguration.configuredFromSaas\n          || this.state.extensionConfiguration.configuredFromSaas === identifier.saas),\n    );\n  }\n}\n","import type BrowserExtensionConfigurationCollectionSearchSettingModel from 'client/data/models/browser-extension-configuration-collection-search-setting';\nimport type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionFieldsInternalBusinessService from 'client/features/browser-extension/services/internal-business/fields';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  collections: CollectionModel[];\n  searchSettings: BrowserExtensionConfigurationCollectionSearchSettingModel;\n  searchSettingIndex: number;\n  onChangeCollection: (collectionName: string, searchSettingIndex: number) => void;\n  onChangeFields: (fields: string[], searchSettingIndex: number) => void;\n}\n\nexport default class BrowserExtensionPagesSettingsAdvancedSettingsSearchSettingComponent extends Component<Args> {\n  @service('feature/browser-extension/internal-business/fields')\n  private fieldsService: BrowserExtensionFieldsInternalBusinessService;\n\n  get selectedCollection() {\n    return this.args.collections.findBy('name', this.args.searchSettings.collectionName);\n  }\n\n  get selectedFields() {\n    return (\n      this.selectedCollection?.fields.filter((field) =>\n        this.args.searchSettings.fieldNames.includes(field.fieldName),\n      ) || []\n    );\n  }\n\n  get availableSortedfields() {\n    if (!this.selectedCollection) return [];\n\n    return this.fieldsService.getFilterableFieldsInAssist(this.selectedCollection.filterableFields);\n  }\n\n  @action\n  onChangeCollection(collection: CollectionModel) {\n    this.args.onChangeCollection(collection.name, this.args.searchSettingIndex);\n  }\n\n  @action\n  onChangeFields(fields: FieldModel[]) {\n    if (!this.selectedCollection.name) return;\n\n    this.args.onChangeFields(\n      fields.map((field) => field.fieldName),\n      this.args.searchSettingIndex,\n    );\n  }\n\n  @action\n  removeSearchSetting() {\n    this.args.onChangeCollection(null, this.args.searchSettingIndex);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-browser-extension-pages-settings-advanced-settings-search-setting\\\"\\n  ...attributes\\n>\\n  <Shared::BetaLabel\\n    @label=\\\"Collection\\\"\\n    @position=\\\"top\\\"\\n    class=\\\"c-feature-browser-extension-pages-settings-advanced-settings-search-setting__column\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{@collections}}\\n      @disabledOptions={{@alreadyPickedCollections}}\\n      @iconPath=\\\"iconOrDefault\\\"\\n      @onChange={{this.onChangeCollection}}\\n      @value={{one-way this.selectedCollection}}\\n      @namePath=\\\"displayName\\\"\\n      @placeholder=\\\"Please select\\\"\\n      @onClickIcon={{fn (do-nothing-function)}}\\n      data-test-browser-extension-pages-settings-advanced-settings-search-setting-collection-select\\n    />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Fields\\\"\\n    @position=\\\"top\\\"\\n    class=\\\"c-feature-browser-extension-pages-settings-advanced-settings-search-setting__column\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.availableSortedfields}}\\n      @onChange={{this.onChangeFields}}\\n      @value={{one-way this.selectedFields}}\\n      @placeholder=\\\"All Fields\\\"\\n      @namePath=\\\"displayName\\\"\\n      @multipleValues={{true}}\\n      @isInlineMultipleValues={{true}}\\n      @onClickIcon={{fn (do-nothing-function)}}\\n      @disabled={{eq this.availableSortedfields.length 0}}\\n      data-test-browser-extension-pages-settings-advanced-settings-search-setting-fieldnames-select\\n    />\\n  </Shared::BetaLabel>\\n\\n  {{#if @canBeRemoved}}\\n    <Shared::BetaIconButton\\n      @icon=\\\"remove_circle_outline\\\"\\n      @color=\\\"ghost\\\"\\n      @size=\\\"medium\\\"\\n      {{on \\'click\\' this.removeSearchSetting}}\\n      data-test-browser-extension-pages-settings-advanced-settings-search-setting-remove\\n    />\\n  {{/if}}\\n</div>\\n\\n', { moduleName: 'client/features/browser-extension/components/pages/settings/advanced-settings/search-setting/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Pages::Settings::Card\\n  @title=\\\"Advanced Settings\\\"\\n  class=\\\"c-feature-browser-extension-pages-settings-advanced-settings\\\"\\n  data-test-feature-browser-extension-pages-settings-advanced-settings\\n  ...attributes\\n>\\n  {{did-insert this.loadState}}\\n\\n  {{#if this.isLoading}}\\n    <Shared::Feedback::BetaLoader />\\n  {{else}}\\n    <Shared::BetaLabel\\n      @label=\\\"Support tool identifier\\\"\\n      @position=\\\"top\\\"\\n      class=\\\"c-feature-browser-extension-pages-settings-advanced-settings__item c-feature-browser-extension-pages-settings-advanced-settings__item--full-width\\\"\\n    >\\n      <Shared::BetaSelect\\n        @options={{this.identifiersWithSaas}}\\n        @namePath=\\\"label\\\"\\n        @value={{this.selectedIdentifierWithSass}}\\n        @onChange={{this.onChangeIdentifier}}\\n        @placeholder=\\\"Please select\\\"\\n        @onClickIcon={{fn (do-nothing-function)}}\\n      />\\n    </Shared::BetaLabel>\\n    {{#if (eq this.identifier \\'Custom\\')}}\\n      <Shared::BetaLabel\\n        @label=\\\"Custom Field Name\\\"\\n        @position=\\\"top\\\"\\n        class=\\\"c-feature-browser-extension-pages-settings-advanced-settings__item c-feature-browser-extension-pages-settings-advanced-settings__item--full-width\\\"\\n      >\\n        <Shared::BetaInput\\n          @value={{this.localConfiguration.customIdentifierValue}}\\n          @onChange={{fn (mut this.localConfiguration.customIdentifierValue)}}\\n        />\\n      </Shared::BetaLabel>\\n    {{/if}}\\n\\n    {{#each this.localConfiguration.searchSettings as |searchSetting index|}}\\n      <Feature::BrowserExtension::Pages::Settings::AdvancedSettings::SearchSetting\\n        @collections={{this.sortedCollections}}\\n        @alreadyPickedCollections={{this.alreadyPickedCollections}}\\n        @searchSettings={{searchSetting}}\\n        @searchSettingIndex={{index}}\\n        @onChangeCollection={{this.onChangeCollection}}\\n        @onChangeFields={{this.onChangeFields}}\\n        @canBeRemoved={{this.canRemoveCollections}}\\n        data-test-feature-browser-extension-pages-settings-advanced-settings-search-setting={{index}}\\n      />\\n    {{/each}}\\n\\n    <Shared::Button::BetaButton\\n      @type=\\\"link-primary\\\"\\n      @text=\\\"Add collection\\\"\\n      @action={{this.addSearchSetting}}\\n      @iconName=\\\"add_circle_outline\\\"\\n      class=\\\"c-feature-browser-extension-pages-settings-advanced-settings__item\\\"\\n      data-test-feature-browser-extension-pages-settings-advanced-settings-add-collection\\n    />\\n\\n    <Shared::BetaLabel\\n      @label=\\\"Auto-select single match\\\"\\n      @position=\\\"right\\\"\\n      class=\\\"c-feature-browser-extension-pages-settings-advanced-settings__item\\\"\\n    >\\n      <Shared::Form::Toggle\\n        @value={{this.localConfiguration.autoSelect}}\\n        @onChange={{fn (mut this.localConfiguration.autoSelect)}}\\n        data-test-feature-browser-extension-pages-settings-advanced-settings-auto-select-single-match\\n      />\\n    </Shared::BetaLabel>\\n\\n    <Shared::BetaLabel\\n      @label=\\\"AI for issue resolution\\\"\\n      @position=\\\"right\\\"\\n      class=\\\"c-feature-browser-extension-pages-settings-advanced-settings__item\\\"\\n    >\\n      <Shared::Form::Toggle\\n        @value={{this.localConfiguration.enableAi}}\\n        @onChange={{fn (mut this.localConfiguration.enableAi)}}\\n        data-test-feature-browser-extension-pages-settings-advanced-settings-ai-toggle\\n      />\\n    </Shared::BetaLabel>\\n\\n    <Shared::Button\\n      @type=\\\"success\\\"\\n      @text=\\\"Save changes\\\"\\n      @onClick={{this.save}}\\n      disabled={{not this.canSave}}\\n      class=\\\"c-feature-browser-extension-pages-settings-advanced-settings__item c-feature-browser-extension-pages-settings-advanced-settings__item--full-width\\\"\\n      data-test-feature-browser-extension-pages-settings-advanced-settings-save-button\\n    />\\n  {{/if}}\\n</Feature::BrowserExtension::Pages::Settings::Card>\\n\\n', { moduleName: 'client/features/browser-extension/components/pages/settings/advanced-settings/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type Arg = {\n  title: string;\n};\n\nexport default class BrowserExtensionPagesSettingsCardComponent extends Component<Arg> {\n  static propTypes = {\n    title: PropTypes.string.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-browser-extension-settings-page-card\\\">\\n  <Feature::BrowserExtension::Shared::Typography::Title1>\\n    {{@title}}\\n  </Feature::BrowserExtension::Shared::Typography::Title1>\\n\\n  <Card class=\\\"l-browser-extension-settings-page-card__container\\\" ...attributes>\\n    {{yield}}\\n  </Card>\\n</div>\\n\\n', { moduleName: 'client/features/browser-extension/components/pages/settings/card/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type State from 'client/features/browser-extension/state';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class BrowserExtensionPagesSettingsComponent extends Component {\n  @service private router: RouterService;\n  @service private currentUser: CurrentUserService;\n\n  @service('feature/browser-extension/state') private state: State;\n\n  displayCloseButton: boolean | undefined;\n\n  @action\n  async loadState() {\n    // we want to load the state only once when the component is initialized\n    // we don't want to track this property\n    this.displayCloseButton =\n      (!this.currentUser.isAdmin && this.state.hasProjectSettings) || this.state.isReadyToUseAssist;\n  }\n\n  @action\n  async goToHomePage() {\n    await this.router.transitionTo('responsive.browser-extension.onboarding');\n  }\n\n  get isAdvancedSettingsDisplayed() {\n    return (\n      this.state.hasProjectSettings\n      && this.currentUser.isAdmin\n      && this.state.settingsState.isProjectSettingsSaved\n    );\n  }\n\n  get isAgentNotReachable() {\n    return this.state.hasProjectSettings && this.state.isAgentReachable === false;\n  }\n\n  get agentNotReachableMessageSubtitle() {\n    if (this.currentUser.canEditProject) {\n      return 'An error occurred during authentication. Please check that your admin backend is correctly configured and running.';\n    }\n\n    return 'An error occurred during authentication. Please contact an admin or a developer from your team to solve this issue.';\n  }\n}\n","import type ArrayProxy from '@ember/array/proxy';\nimport type RouterService from '@ember/routing/router-service';\nimport type OrganizationModel from 'client/data/models/organization';\nimport type ProjectModel from 'client/data/models/project';\nimport type TeamModel from 'client/data/models/team';\nimport type BrowserExtensionFeatureService from 'client/features/browser-extension/services/feature';\nimport type { MinimalTeam } from 'client/features/browser-extension/services/internal-business/project-settings';\n// FIXME\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type ProjectSettingsService from 'client/features/browser-extension/services/internal-business/project-settings';\nimport type BrowserExtensionSessionHandlerInternalService from 'client/features/browser-extension/services/internal-feature/session-handler';\nimport type State from 'client/features/browser-extension/state';\nimport type { ProjectSettings } from 'client/features/browser-extension/state';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nexport default class BrowserExtensionPagesSettingsProjectSettingsComponent extends Component {\n  @service private currentUser: CurrentUserService;\n  @service private router: RouterService;\n\n  @service('feature/browser-extension')\n  private browserExtensionFeatureService: BrowserExtensionFeatureService;\n\n  @service('feature/browser-extension/internal-business/project-settings')\n  private projectSettingsService: ProjectSettingsService;\n\n  @service('feature/browser-extension/internal-feature/session-handler')\n  private browserSessionService: BrowserExtensionSessionHandlerInternalService;\n\n  @service('feature/browser-extension/state') private state: State;\n  @service('feature/notification')\n  private notificationBusinessService: NotificationFeatureService;\n\n  @tracked selectedOrganization: OrganizationModel | null = null;\n  @tracked selectedProject: ProjectModel | null = null;\n  @tracked selectedTeam: MinimalTeam | null = null;\n\n  @tracked organizations?: ArrayProxy<OrganizationModel>;\n  @tracked projects?: ArrayProxy<ProjectModel>;\n  @tracked teams?: MinimalTeam[];\n\n  @action\n  async loadState() {\n    this.state.settingsState.isProjectSettingsSaved = true;\n    this.organizations = await this.projectSettingsService.loadOrganizations();\n    if (this.state.hasProjectSettings) await this.loadProjectsAndTeams();\n  }\n\n  async loadProjectsAndTeams() {\n    const {\n      projectSettings: { organizationId, projectId, teamId },\n    } = this.state;\n\n    this.projects = await this.browserSessionService.loadProjects(organizationId);\n    this.teams = await this.projectSettingsService.loadAccessibleTeams(projectId);\n\n    this.selectedOrganization = this.organizations.find((o) => o.id === organizationId);\n    this.selectedProject = this.projects.find((p) => p.id === projectId);\n    this.selectedTeam = this.teams.find((t) => t.id === teamId);\n  }\n\n  @action\n  async onChangeOrganization(organization: OrganizationModel) {\n    this.selectedOrganization = organization;\n    this.state.settingsState.isProjectSettingsSaved = false;\n    this.selectedProject = null;\n    this.selectedTeam = null;\n\n    this.projects = await this.browserSessionService.loadProjects(this.selectedOrganization.id);\n  }\n\n  @action\n  async onChangeProject(project: ProjectModel) {\n    this.selectedProject = project;\n    this.selectedTeam = null;\n    this.state.settingsState.isProjectSettingsSaved = false;\n\n    this.teams = await this.projectSettingsService.loadAccessibleTeams(this.selectedProject.id);\n    await this.projectSettingsService.loadCurrentUserForCurrentProject();\n  }\n\n  @action\n  async onChangeTeam(team: TeamModel) {\n    this.selectedTeam = team;\n    this.state.settingsState.isProjectSettingsSaved = false;\n  }\n\n  @action\n  async save() {\n    try {\n      this.state.settingsState.isProjectSettingsSaved = false;\n      const isFirstConfiguration = !this.state.hasProjectSettings;\n      const projectSettingsToTest: ProjectSettings = {\n        organizationId: this.selectedOrganization.id,\n        projectId: this.selectedProject.id,\n        teamId: this.selectedTeam.id,\n      };\n\n      await this.projectSettingsService.loadCurrentUserForCurrentProject(projectSettingsToTest);\n      await this.enableNewBrowserExtensionSearchOrThrow(projectSettingsToTest);\n      await this.projectSettingsService.saveProjectSettings(projectSettingsToTest);\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Success,\n        'Project settings saved!',\n      );\n      this.state.settingsState.isProjectSettingsSaved = true;\n\n      if (\n        isFirstConfiguration\n        && (!this.currentUser.isAdmin || this.state.extensionConfiguration)\n      ) {\n        await this.router.transitionTo('responsive.browser-extension.onboarding');\n      }\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (e) {\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Error,\n        'Failed to save project settings',\n      );\n      this.state.settingsState.isProjectSettingsSaved = false;\n    }\n  }\n\n  get isSaveButtonDisabled() {\n    return this.selectedTeam === null || this.state.settingsState.isProjectSettingsSaved === true;\n  }\n\n  get isTeamDisabled() {\n    return this.isProjectDisabled || this.selectedProject === null;\n  }\n\n  get isProjectDisabled() {\n    return this.selectedOrganization === null;\n  }\n\n  private async enableNewBrowserExtensionSearchOrThrow(settings: ProjectSettings) {\n    const enabled = await this.browserExtensionFeatureService.enableAssist(settings);\n    if (!enabled) {\n      throw new Error('Failed to enable browser extension search');\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Pages::Settings::Card\\n  @title=\\\"Project Settings\\\"\\n  class=\\\"c-browser-extension-pages-settings-project-settings\\\"\\n>\\n\\n  {{did-insert this.loadState}}\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Organization\\\"\\n    @position=\\\"top\\\"\\n    class=\\\"c-browser-extension-pages-settings-project-settings__item\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.organizations}}\\n      @namePath=\\\"name\\\"\\n      @onChange={{this.onChangeOrganization}}\\n      @value={{this.selectedOrganization}}\\n      @placeholder=\\\"Please select\\\"\\n      @onClickIcon={{fn (do-nothing-function)}}\\n    />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Project\\\"\\n    @position=\\\"top\\\"\\n    class=\\\"c-browser-extension-pages-settings-project-settings__item\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.projects}}\\n      @namePath=\\\"name\\\"\\n      @onChange={{this.onChangeProject}}\\n      @value={{this.selectedProject}}\\n      @placeholder=\\\"Please select\\\"\\n      @disabled={{this.isProjectDisabled}}\\n      @onClickIcon={{fn (do-nothing-function)}}\\n    />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Team\\\"\\n    @position=\\\"top\\\"\\n    class=\\\"c-browser-extension-pages-settings-project-settings__item\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.teams}}\\n      @namePath=\\\"name\\\"\\n      @onChange={{this.onChangeTeam}}\\n      @value={{this.selectedTeam}}\\n      @placeholder=\\\"Please select\\\"\\n      @disabled={{this.isTeamDisabled}}\\n      @onClickIcon={{fn (do-nothing-function)}}\\n    />\\n  </Shared::BetaLabel>\\n\\n  <Shared::Button\\n    @type=\\\"success\\\"\\n    @text=\\\"Save changes\\\"\\n    @onClick={{this.save}}\\n    disabled={{this.isSaveButtonDisabled}}\\n    class=\\\"c-browser-extension-pages-settings-project-settings__item c-browser-extension-pages-settings-project-settings__save-button\\\"\\n  />\\n</Feature::BrowserExtension::Pages::Settings::Card>\\n', { moduleName: 'client/features/browser-extension/components/pages/settings/project-settings/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-browser-extension-pages-settings\\\">\\n  {{did-insert this.loadState}}\\n\\n  <header class=\\\"c-feature-browser-extension-pages-settings__header\\\">\\n    <div class=\\\"c-feature-browser-extension-pages-settings__header__title\\\">\\n      <Shared::DataDisplay::BetaIcon @iconName=\\\"settings\\\" @size=\\\"micro\\\" />\\n\\n      <Feature::BrowserExtension::Shared::Typography::Title1>\\n        Settings\\n      </Feature::BrowserExtension::Shared::Typography::Title1>\\n    </div>\\n\\n    {{#if this.displayCloseButton}}\\n      <Shared::Button\\n        @type=\\\"ghost\\\"\\n        @iconName=\\\"close\\\"\\n        @size=\\\"browser-extension\\\"\\n        class=\\\"c-feature-browser-extension-pages-settings__header__close-button\\\"\\n        @onClick={{this.goToHomePage}}\\n      />\\n    {{/if}}\\n  </header>\\n\\n  <div class=\\\"c-feature-browser-extension-pages-settings__content\\\">\\n    {{#if this.isAgentNotReachable}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"error\\\"\\n        @messageTitle=\\\"Unable to authenticate you\\\"\\n        @message={{this.agentNotReachableMessageSubtitle}}\\n        class=\\\"c-feature-browser-extension-pages-settings__content__agent-not-reachable-notification\\\"\\n      />\\n    {{/if}}\\n\\n    <section class=\\\"c-feature-browser-extension-pages-settings__content__sections\\\">\\n      <Feature::BrowserExtension::Pages::Settings::ProjectSettings />\\n\\n      {{#if this.isAdvancedSettingsDisplayed}}\\n        <Feature::BrowserExtension::Pages::Settings::AdvancedSettings />\\n      {{/if}}\\n\\n      <Feature::BrowserExtension::Pages::Settings::UserDetails />\\n\\n      <Feature::BrowserExtension::Shared::Typography::Subtitle>\\n        Made with 💚 by Forest Admin\\n      </Feature::BrowserExtension::Shared::Typography::Subtitle>\\n    </section>\\n  </div>\\n</div>\\n', { moduleName: 'client/features/browser-extension/components/pages/settings/template.hbs' });\n","import type BrowserExtensionSessionHandlerInternalService from 'client/features/browser-extension/services/internal-feature/session-handler';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class BrowserExtensionPagesSettingsUserDetailsComponent extends Component {\n  @service('feature/browser-extension/internal-feature/session-handler')\n  private browserSessionService: BrowserExtensionSessionHandlerInternalService;\n\n  @service private currentUser: CurrentUserService;\n\n  @action\n  async disconnectAccount() {\n    await this.browserSessionService.disconnectFromExtension();\n  }\n\n  get userFullName() {\n    return this.currentUser.fullName;\n  }\n\n  get userEmail() {\n    return this.currentUser.model?.email;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Pages::Settings::Card\\n  @title=\\\"Account\\\"\\n  class=\\\"c-browser-extension-pages-settings-user-details\\\"\\n>\\n  <div class=\\\"c-browser-extension-pages-settings-user-details__user\\\">\\n    <div class=\\\"c-browser-extension-pages-settings-user-details__user__detail\\\">\\n      {{#if this.userFullName}}\\n        <Feature::BrowserExtension::Shared::Typography::Title2>\\n          {{this.userFullName}}\\n        </Feature::BrowserExtension::Shared::Typography::Title2>\\n\\n        {{#if this.userEmail}}\\n          <Feature::BrowserExtension::Shared::Typography::Subtitle>\\n            {{this.userEmail}}\\n          </Feature::BrowserExtension::Shared::Typography::Subtitle>\\n        {{/if}}\\n      {{else}}\\n        <Feature::BrowserExtension::Shared::Typography::Title2>\\n          {{#if this.userEmail}}\\n            {{this.userEmail}}\\n          {{else}}\\n            Unknown user\\n          {{/if}}\\n        </Feature::BrowserExtension::Shared::Typography::Title2>\\n      {{/if}}\\n    </div>\\n\\n    <Shared::Button @type=\\\"ghost\\\" @text=\\\"Disconnect\\\" @onClick={{this.disconnectAccount}} />\\n  </div>\\n</Feature::BrowserExtension::Pages::Settings::Card>\\n', { moduleName: 'client/features/browser-extension/components/pages/settings/user-details/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  onHeaderClick?: () => void | Promise<void>;\n  headerIcon?: string;\n  hideBody?: boolean;\n}\n\nexport default class BrowserExtensionSharedCardComponent extends Component<Args> {\n  static propTypes = {\n    onHeaderClick: PropTypes.func,\n    headerIcon: PropTypes.string,\n    hideBody: PropTypes.bool,\n  };\n\n  @action\n  async onHeaderClick() {\n    await this.args.onHeaderClick?.();\n  }\n}\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  onHeaderClick?: () => void | Promise<void>;\n  headerIcon?: string;\n  headerLeftIcon?: string;\n  isOpen?: boolean;\n  onExpand?: () => void;\n  onRetract?: () => void;\n}\n\nexport default class BrowserExtensionSharedCardDeployableComponent extends Component<Args> {\n  static propTypes = {\n    onHeaderClick: PropTypes.func,\n    headerIcon: PropTypes.string,\n    hideBody: PropTypes.bool,\n  };\n\n  @tracked isOpen = this.args.isOpen ?? false;\n\n  @action\n  onExpand() {\n    this.isOpen = true;\n    this.args.onExpand?.();\n  }\n\n  @action\n  onRetract() {\n    this.isOpen = false;\n    this.args.onRetract?.();\n  }\n\n  @action\n  onIsOpenUpdate() {\n    if (this.args.isOpen === this.isOpen) return;\n    this.isOpen = this.args.isOpen;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Shared::Card\\n  @onHeaderClick={{@onHeaderClick}}\\n  @headerIcon={{@headerIcon}}\\n  class={{get-classes-with-modifiers\\n    \\'c-feature-browser-extension-shared-card-deployable\\'\\n    open=this.isOpen\\n  }}\\n  {{did-update this.onIsOpenUpdate @isOpen}}\\n  ...attributes\\n>\\n  <:header>\\n    <div class=\\\"c-feature-browser-extension-shared-card-deployable__icon-wrapper\\\">\\n      <Shared::ToggleCollapseButton\\n        @isOpen={{this.isOpen}}\\n        @onCollapse={{this.onRetract}}\\n        @onOpen={{this.onExpand}}\\n        @size=\\\"tiny\\\"\\n        class={{get-classes-with-modifiers\\n          \\'c-feature-browser-extension-shared-card-deployable__expand-button\\'\\n          always-visible=(not @headerLeftIcon)\\n        }}\\n        data-test-browser-extension-related-data-chevron-button\\n      />\\n      {{#if @headerLeftIcon}}\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName={{@headerLeftIcon}}\\n          class=\\\"c-feature-browser-extension-shared-card-deployable__collection-icon\\\"\\n          data-test-browser-extension-related-data-icon\\n        />\\n      {{/if}}\\n    </div>\\n    <span>\\n      {{yield to=\\'header\\'}}\\n    </span>\\n  </:header>\\n  <:body>\\n    {{yield to=\\'body\\'}}\\n  </:body>\\n</Feature::BrowserExtension::Shared::Card>\\n', { moduleName: 'client/features/browser-extension/components/shared/card/deployable/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-browser-extension-shared-card\\\" data-test-browser-extension-card ...attributes>\\n  {{! template-lint-disable no-invalid-interactive }}\\n  <div\\n    class={{get-classes-with-modifiers\\n      \\'c-feature-browser-extension-shared-card__header\\'\\n      clickable=@onHeaderClick\\n    }}\\n    role={{if @onHeaderClick \\'button\\'}}\\n    {{on \\'click\\' this.onHeaderClick}}\\n    data-test-browser-extension-card-header\\n  >\\n    <div class=\\\"c-feature-browser-extension-shared-card__header-content\\\">\\n      {{yield to=\\'header\\'}}\\n    </div>\\n    {{#if @headerIcon}}\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName={{@headerIcon}}\\n        @size=\\\"tiny\\\"\\n        class=\\\"c-feature-browser-extension-shared-card__header-button\\\"\\n      />\\n    {{/if}}\\n  </div>\\n\\n  <div class=\\\"c-feature-browser-extension-shared-card__body\\\">\\n    {{#if (and (has-block \\'body\\') (not @hideBody))}}\\n      <div class=\\\"c-feature-browser-extension-shared-card__body-content\\\">\\n        {{yield to=\\'body\\'}}\\n      </div>\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/features/browser-extension/components/shared/card/template.hbs' });\n","import Component from '@glimmer/component';\n\ntype Args = {\n  onClick: () => void | Promise<void>;\n  disabled?: boolean;\n};\n\n// eslint-disable-next-line ember/no-empty-glimmer-component-classes\nexport default class BrowserExtensionSharedClickableComponent extends Component<Args> {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<button\\n  type=\\\"button\\\"\\n  {{on \\'click\\' @onClick}}\\n  class={{get-classes-with-modifiers \\'c-browser-extension-shared-clickable\\' disabled=@disabled}}\\n  disabled={{@disabled}}\\n  ...attributes\\n>\\n  {{yield}}\\n</button>\\n', { moduleName: 'client/features/browser-extension/components/shared/clickable/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type RedirectionService from 'client/legacy/services/redirection';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  collectionId?: string;\n}\n\nexport default class BrowserExtensionSharedFooterComponent extends Component<Args> {\n  @service('feature/browser-extension/state')\n  private readonly state: BrowserExtensionFeatureState;\n\n  @service private readonly router: RouterService;\n  // Used directly in the template\n  @service private readonly session: ForestSessionService;\n  @service private readonly redirection: RedirectionService;\n  @service private readonly lianaSession: LianaSessionService;\n\n  @action\n  async goToProjectSettings() {\n    await this.router.transitionTo('responsive.browser-extension.settings');\n  }\n\n  @action\n  async openForestAdmin() {\n    if (this.session.isAuthenticated && this.state.isReadyToUseAssist) {\n      this.redirection.openNewTab(\n        this.router.urlFor(\n          'project.rendering.data.collection.list',\n          {\n            project_name: this.lianaSession.currentProject.name,\n          },\n          {\n            environment_name: this.lianaSession.rendering.environment.name,\n            team_name: this.lianaSession.rendering.team.name,\n          },\n          {\n            collection_id:\n              this.args.collectionId\n              || this.state.getCollection(\n                this.state.extensionConfiguration.searchSettings.firstObject.collectionName,\n              ).shareableId,\n          },\n        ),\n      );\n      return;\n    }\n    this.redirection.openNewTab(this.router.rootURL);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<footer class=\\\"l-browser-extension-footer\\\" ...attributes data-test-browser-extension-footer>\\n  <Feature::BrowserExtension::Shared::Typography::Subtitle>\\n    Made with 💚 by Forest Admin\\n  </Feature::BrowserExtension::Shared::Typography::Subtitle>\\n\\n  <div class=\\\"l-browser-extension-footer__icons\\\">\\n    {{#if this.session.isAuthenticated}}\\n      <Shared::BetaIconButton\\n        @icon=\\\"settings\\\"\\n        @color=\\\"ghost\\\"\\n        @size=\\\"custom\\\"\\n        class=\\\"l-browser-extension-footer__icons__icon\\\"\\n        {{on \\'click\\' this.goToProjectSettings}}\\n      />\\n    {{/if}}\\n\\n    <Shared::BetaIconButton\\n      @icon=\\\"launch\\\"\\n      @color=\\\"ghost\\\"\\n      @size=\\\"custom\\\"\\n      class=\\\"l-browser-extension-footer__icons__icon\\\"\\n      {{on \\'click\\' this.openForestAdmin}}\\n      data-test-browser-extension-footer-open-forest\\n    />\\n  </div>\\n</footer>\\n', { moduleName: 'client/features/browser-extension/components/shared/footer/template.hbs' });\n","import type BrowserExtensionFeatureService from 'client/features/browser-extension/services/feature';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ntype Args = {\n  record: ClientRecordModel;\n  disabled?: boolean;\n};\n\nexport default class BrowserExtensionSharedGoToDetailsButtonComponent extends Component<Args> {\n  @service('feature/browser-extension')\n  browserExtensionFeatureService: BrowserExtensionFeatureService;\n\n  @action\n  async viewRecordDetailsPage() {\n    await this.browserExtensionFeatureService.goToDetails(this.args.record);\n  }\n\n  get icon() {\n    return this.args.record.collection.iconOrDefault || 'account_circle_outlined';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Shared::Clickable\\n  @disabled={{@disabled}}\\n  @onClick={{this.viewRecordDetailsPage}}\\n  class=\\\"c-feature-browser-extension-shared-go-to-details-button\\\"\\n  data-test-browser-extension-go-to-details\\n  ...attributes\\n>\\n  <Feature::ClientRecord::ReferenceField\\n    @icon={{this.icon}}\\n    @collection={{@record.collection}}\\n    @isLinkDisabled={{true}}\\n    @recordIds={{array @record.id}}\\n  />\\n</Feature::BrowserExtension::Shared::Clickable>\\n\\n', { moduleName: 'client/features/browser-extension/components/shared/go-to-details-button/template.hbs' });\n","// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionRouterView from 'client/features/browser-extension/services/internal-feature/router-view';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ntype Args = {\n  showBackButton?: boolean;\n  actionBeforeBack?: () => void | Promise<void>;\n  closeButton?: boolean;\n  onClose?: () => void | Promise<void>;\n};\n\nexport default class BrowserExtensionSharedHeaderComponent extends Component<Args> {\n  @service('feature/browser-extension/internal-feature/router-view')\n  private readonly routerView: BrowserExtensionRouterView;\n\n  @action\n  async runBackButtonAction() {\n    await this.args.actionBeforeBack?.();\n    await this.transitionBackToPreviousView();\n  }\n\n  @action\n  async transitionBackToPreviousView() {\n    this.routerView.previousView();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @showBackButton}}\\n  <Shared::Header\\n    data-test-browser-extension-header\\n    class=\\\"c-feature-browser-extension-shared-header\\\"\\n    ...attributes\\n  >\\n    <:left>\\n      <Shared::Button\\n        @iconName=\\\"arrow_back\\\"\\n        @type=\\\"ghost\\\"\\n        @size=\\\"browser-extension\\\"\\n        @onClick={{this.runBackButtonAction}}\\n        data-test-browser-extension-header-back-button\\n      />\\n    </:left>\\n    <:top>\\n      {{yield to=\\'top\\'}}\\n    </:top>\\n    <:right>\\n      {{yield to=\\'right\\'}}\\n    </:right>\\n  </Shared::Header>\\n{{else}}\\n  <Shared::Header\\n    data-test-browser-extension-header\\n    class=\\\"c-feature-browser-extension-shared-header\\\"\\n    @closeButton={{@closeButton}}\\n    @onClose={{@onClose}}\\n    ...attributes\\n  >\\n    <:top>\\n      {{yield to=\\'top\\'}}\\n    </:top>\\n    <:right>\\n      {{yield to=\\'right\\'}}\\n    </:right>\\n  </Shared::Header>\\n{{/if}}\\n', { moduleName: 'client/features/browser-extension/components/shared/header/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<svg\\n  width=\\\"40\\\"\\n  height=\\\"40\\\"\\n  viewBox=\\\"0 0 40 40\\\"\\n  fill=\\\"none\\\"\\n  xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n  class=\\\"c-browser-extension-icon-action\\\"\\n  ...attributes\\n>\\n  <rect x=\\\"0.5\\\" y=\\\"0.5\\\" width=\\\"39\\\" height=\\\"39\\\" rx=\\\"19.5\\\" />\\n  <path\\n    d=\\\"M22.69 10.2101L12.33 19.49C11.69 20.07 12.05 21.14 12.91 21.22L21 22L16.15 28.76C15.93 29.07 15.96 29.5 16.23 29.77C16.53 30.07 17 30.08 17.31 29.79L27.67 20.51C28.31 19.93 27.95 18.86 27.09 18.78L19 18L23.85 11.2401C24.07 10.9301 24.04 10.5001 23.77 10.2301C23.47 9.93005 23 9.92005 22.69 10.2101Z\\\"\\n  />\\n</svg>\\n', { moduleName: 'client/features/browser-extension/components/shared/icons/action/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<svg\\n  width=\\\"24\\\"\\n  height=\\\"28\\\"\\n  viewBox=\\\"0 0 24 28\\\"\\n  fill=\\\"none\\\"\\n  xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n  ...attributes\\n>\\n  <g id=\\\"Group 3\\\">\\n    <path\\n      id=\\\"Union\\\"\\n      fill-rule=\\\"evenodd\\\"\\n      clip-rule=\\\"evenodd\\\"\\n      d=\\\"M14.6006 0.537859L14.2536 0.444891C13.6986 0.296166 13.1281 0.625556 12.9793 1.1806L11.8413 5.42793C11.6925 5.98298 12.0219 6.5535 12.577 6.70222L12.924 6.79519C13.479 6.94392 14.0495 6.61453 14.1982 6.05948L15.3363 1.81215C15.485 1.2571 15.1557 0.686584 14.6006 0.537859ZM5.38097 1.7537L5.69206 1.57409C6.1897 1.28678 6.82603 1.45729 7.11335 1.95493L9.31193 5.76298C9.59925 6.26062 9.42874 6.89695 8.9311 7.18427L8.62002 7.36387C8.12238 7.65118 7.48604 7.48068 7.19873 6.98304L5.00014 3.17498C4.71283 2.67734 4.88333 2.04101 5.38097 1.7537ZM10.1198 25.6648L15.2309 22.7144L16.4908 27.5906L22.4814 24.1319L18.8902 20.602L24 17.6524L10.1198 9.63996V25.6648ZM21.4506 5.79305L21.6302 6.10413C21.9175 6.60177 21.747 7.2381 21.2493 7.52542L17.4413 9.724C16.9436 10.0113 16.3073 9.84081 16.02 9.34316L15.8404 9.03208C15.5531 8.53444 15.7236 7.89811 16.2212 7.6108L20.0293 5.41222C20.5269 5.1249 21.1633 5.29541 21.4506 5.79305ZM6.95378 14.5801L6.77417 14.269C6.48686 13.7714 5.85052 13.6009 5.35288 13.8882L1.54482 16.0868C1.04717 16.3741 0.876669 17.0104 1.16398 17.5081L1.34359 17.8192C1.6309 18.3168 2.26723 18.4873 2.76488 18.2L6.57294 16.0014C7.07059 15.7141 7.24109 15.0778 6.95378 14.5801ZM6.38585 10.2765L6.29282 10.6235C6.144 11.1785 5.57342 11.5078 5.0184 11.3589L0.771251 10.2201C0.216228 10.0713 -0.113064 9.50073 0.0357581 8.94571L0.128788 8.59876C0.27761 8.04374 0.848189 7.71445 1.40321 7.86327L5.65036 9.00208C6.20538 9.1509 6.53467 9.72148 6.38585 10.2765Z\\\"\\n      fill=\\\"#64748B\\\"\\n    />\\n  </g>\\n</svg>\\n', { moduleName: 'client/features/browser-extension/components/shared/icons/click/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<svg\\n  width=\\\"24\\\"\\n  height=\\\"24\\\"\\n  viewBox=\\\"0 0 24 24\\\"\\n  fill=\\\"none\\\"\\n  xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n  ...attributes\\n>\\n  <g id=\\\"lock_person\\\">\\n    <g id=\\\"Vector\\\">\\n      <path\\n        d=\\\"M4.5 20V10H16.5V11C17.2 11 17.87 11.1 18.5 11.29V10C18.5 8.9 17.6 8 16.5 8H15.5V6C15.5 3.24 13.26 1 10.5 1C7.74 1 5.5 3.24 5.5 6V8H4.5C3.4 8 2.5 8.9 2.5 10V20C2.5 21.1 3.4 22 4.5 22H10.76C10.34 21.4 10.01 20.72 9.79 20H4.5ZM7.5 6C7.5 4.34 8.84 3 10.5 3C12.16 3 13.5 4.34 13.5 6V8H7.5V6Z\\\"\\n        fill=\\\"#64748B\\\"\\n      />\\n      <path\\n        d=\\\"M16.5 13C13.74 13 11.5 15.24 11.5 18C11.5 20.76 13.74 23 16.5 23C19.26 23 21.5 20.76 21.5 18C21.5 15.24 19.26 13 16.5 13ZM16.5 15C17.33 15 18 15.67 18 16.5C18 17.33 17.33 18 16.5 18C15.67 18 15 17.33 15 16.5C15 15.67 15.67 15 16.5 15ZM16.5 21C15.47 21 14.56 20.48 14.02 19.68C14.75 19.26 15.59 19 16.5 19C17.41 19 18.25 19.26 18.98 19.68C18.44 20.48 17.53 21 16.5 21Z\\\"\\n        fill=\\\"#64748B\\\"\\n      />\\n    </g>\\n  </g>\\n</svg>\\n', { moduleName: 'client/features/browser-extension/components/shared/icons/lock-person/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<svg\\n  width=\\\"56\\\"\\n  height=\\\"35\\\"\\n  viewBox=\\\"0 0 56 35\\\"\\n  fill=\\\"none\\\"\\n  xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n  ...attributes\\n>\\n  <path\\n    d=\\\"M28 34.6893C43.464 34.6893 56 31.8402 56 28.3257C56 24.8111 43.464 21.962 28 21.962C12.536 21.962 0 24.8111 0 28.3257C0 31.8402 12.536 34.6893 28 34.6893Z\\\"\\n    fill=\\\"#F0F1F3\\\"\\n  />\\n  <path\\n    d=\\\"M46.2945 11.3853L38.2238 2.30392C37.8365 1.68492 37.2709 1.31067 36.6751 1.31067H19.323C18.7272 1.31067 18.1617 1.68492 17.7743 2.30313L9.70361 11.3861V18.6808H46.2945V11.3853Z\\\"\\n    fill=\\\"#F0F1F3\\\"\\n    stroke=\\\"#D9DCE3\\\"\\n  />\\n  <path\\n    d=\\\"M35.6458 13.889C35.6458 12.6218 36.4365 11.5756 37.4172 11.5748H46.2945V25.8949C46.2945 27.5711 45.2445 28.9449 43.9479 28.9449H12.0502C10.7536 28.9449 9.70361 27.5703 9.70361 25.8949V11.5748H18.5809C19.5617 11.5748 20.3524 12.6194 20.3524 13.8866V13.904C20.3524 15.1712 21.1518 16.1945 22.1318 16.1945H33.8663C34.8463 16.1945 35.6458 15.1618 35.6458 13.8945V13.889Z\\\"\\n    fill=\\\"white\\\"\\n    stroke=\\\"#D9DCE3\\\"\\n  />\\n</svg>\\n', { moduleName: 'client/features/browser-extension/components/shared/icons/no-data-box/template.hbs' });\n","import type State from 'client/features/browser-extension/state';\nimport type { View } from 'client/features/browser-extension/states/router-view-state';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  showBackButton?: boolean;\n  showFooter?: boolean; // body footer\n  showMainFooter?: boolean; // main footer\n  view?: View;\n}\n\nexport default class BrowserExtensionSharedLayoutViewComponent extends Component<Args> {\n  @service('feature/browser-extension/state') state: State;\n\n  get showBackButton() {\n    return this.args.showBackButton !== false;\n  }\n\n  get paddingClass() {\n    return this.args.view?.sidePanel\n      ? 'c-feature-browser-extension-shared-layout-view__body-content--side-panel'\n      : 'c-feature-browser-extension-shared-layout-view__body-content--view';\n  }\n\n  get collectionId() {\n    let id: string | undefined;\n    this.state.routerViewState.views.forEach((view) => {\n      if (view.collectionId) id = view.collectionId;\n    });\n    return id;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-browser-extension-shared-layout-view\\\" ...attributes>\\n  <Feature::BrowserExtension::Shared::Header @showBackButton={{this.showBackButton}}>\\n    <:top>\\n      {{yield to=\\'header-left\\'}}\\n    </:top>\\n    <:right>\\n      {{yield to=\\'header-right\\'}}\\n    </:right>\\n  </Feature::BrowserExtension::Shared::Header>\\n\\n  <div class=\\\"c-feature-browser-extension-shared-layout-view__body\\\" data-test-layout-view-body>\\n    <div class=\\\"c-feature-browser-extension-shared-layout-view__body-content {{this.paddingClass}}\\\">\\n      {{yield to=\\'body\\'}}\\n    </div>\\n  </div>\\n\\n  {{#if @showFooter}}\\n    <div class=\\\"c-feature-browser-extension-shared-layout-view__footer\\\">\\n      {{yield to=\\'footer\\'}}\\n    </div>\\n  {{/if}}\\n\\n  {{#unless (eq @showMainFooter false)}}\\n    <Feature::BrowserExtension::Shared::Footer @collectionId={{this.collectionId}} />\\n  {{/unless}}\\n</div>\\n', { moduleName: 'client/features/browser-extension/components/shared/layout-view/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  icon: string;\n  title?: string;\n  subtitle?: string;\n  iconSize?: 'normal' | 'large';\n}\n\nexport default class BrowserExtensionSharedMessageWithIconComponent extends Component<Args> {\n  static propTypes = {\n    icon: PropTypes.string.isRequired,\n    iconSize: PropTypes.string,\n    title: PropTypes.string,\n    subtitle: PropTypes.string,\n  };\n\n  get iconSize() {\n    return this.args.iconSize || 'normal';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers \\'c-browser-extension-message-with-icon\\' center=@center}}\\n  ...attributes\\n>\\n  <div class=\\\"c-browser-extension-message-with-icon__center-block\\\">\\n    {{#if @icon}}\\n      <div\\n        class={{get-classes-with-modifiers\\n          \\'c-browser-extension-message-with-icon__icon\\'\\n          \\'with-border\\'\\n          is-error=@isError\\n        }}\\n      >\\n        <Shared::DataDisplay::BetaIcon @iconName={{@icon}} @size={{this.iconSize}} />\\n      </div>\\n    {{else if @path}}\\n      <div\\n        class={{get-classes-with-modifiers\\n          \\'c-browser-extension-message-with-icon__icon\\'\\n          large=(eq @path \\'no-data-box\\')\\n        }}\\n      >\\n        {{component (concat \\'feature/browser-extension/shared/icons/\\' @path)}}\\n      </div>\\n    {{/if}}\\n\\n    <div class=\\\"c-browser-extension-message-with-icon__text\\\">\\n      {{#if @title}}\\n        <Feature::BrowserExtension::Shared::Typography::Title2>\\n          {{@title}}\\n        </Feature::BrowserExtension::Shared::Typography::Title2>\\n      {{/if}}\\n\\n      {{#if @subtitle}}\\n        <Feature::BrowserExtension::Shared::Typography::Subtitle>\\n          {{@subtitle}}\\n        </Feature::BrowserExtension::Shared::Typography::Subtitle>\\n      {{/if}}\\n    </div>\\n  </div>\\n</div>\\n', { moduleName: 'client/features/browser-extension/components/shared/message-with-icon/template.hbs' });\n","import type BrowserExtensionFeatureService from 'client/features/browser-extension/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  record: ClientRecordModel;\n  fieldsToDisplay?: string[];\n  actionsToDisplay?: string[];\n}\n\nexport default class BrowserExtensionSharedRecordCardComponent extends Component<Args> {\n  @service('feature/browser-extension')\n  browserExtensionFeatureService: BrowserExtensionFeatureService;\n\n  static propTypes = {\n    record: PropTypes.instanceOf(ClientRecordModel).isRequired,\n    fieldsToDisplay: PropTypes.arrayOf(PropTypes.string),\n    actionsToDisplay: PropTypes.arrayOf(PropTypes.string),\n  };\n\n  @action\n  async select(record: ClientRecordModel) {\n    await this.browserExtensionFeatureService.selectRecord(record);\n  }\n}\n","// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionRelatedRecordsManagerInternalBusinessService from 'client/features/browser-extension/services/internal-business/related-records-manager';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  record: ClientRecordModel;\n  fieldsToDisplay?: string[];\n}\n\nexport default class BrowserExtensionSharedRecordCardDetailsComponent extends Component<Args> {\n  @service('feature/browser-extension/internal-business/related-records-manager')\n  private readonly relatedRecordsManager: BrowserExtensionRelatedRecordsManagerInternalBusinessService;\n\n  static propTypes = {\n    record: PropTypes.instanceOf(ClientRecordModel).isRequired,\n    fieldsToDisplay: PropTypes.arrayOf(PropTypes.string),\n  };\n\n  get getColumnsToDisplay() {\n    const columns = this.relatedRecordsManager.getSpecificColumnsToDisplay(\n      this.args.record.collection,\n      this.args.fieldsToDisplay,\n    );\n    if (columns?.length) return columns;\n    return this.relatedRecordsManager.getFirstFourColumnsToDisplay(this.args.record.collection);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<DataDisplay::Record::Details\\n  @collection={{@record.collection}}\\n  @record={{@record}}\\n  @rows={{this.getColumnsToDisplay}}\\n  @readMode={{true}}\\n  @compactDisplay={{true}}\\n  @disableNested={{true}}\\n  class=\\\"c-browser-extension-record-card-details\\\"\\n/>\\n', { moduleName: 'client/features/browser-extension/components/shared/record-card/details/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Shared::Card ...attributes @headerIcon=\\\"arrow_forward\\\">\\n  <:header>\\n    <div class=\\\"l-skeleton\\\">\\n      Lorem ipsum dolor sit\\n    </div>\\n  </:header>\\n  <:body>\\n    <div class=\\\"l-skeleton-rows\\\">\\n      <div class=\\\"l-skeleton-row\\\" />\\n      <div class=\\\"l-skeleton-row\\\" />\\n      <div class=\\\"l-skeleton-row\\\" />\\n    </div>\\n\\n    <Shared::Button\\n      class=\\\"l-skeleton-button c-browser-extension-related-record-actions__form\\\"\\n      @text=\\\"Lorem ipsum\\\"\\n      @type=\\\"primary\\\"\\n      @onClick={{fn (do-nothing-function)}}\\n      @isDisabled={{false}}\\n    />\\n  </:body>\\n</Feature::BrowserExtension::Shared::Card>\\n', { moduleName: 'client/features/browser-extension/components/shared/record-card/skeleton/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Shared::Card\\n  @onHeaderClick={{fn this.select @record}}\\n  @headerIcon=\\\"arrow_forward\\\"\\n  ...attributes\\n>\\n  <:header>\\n    <Shared::DataDisplay::BetaIcon @iconName={{@record.collection.iconOrDefault}} />\\n    <Feature::ClientRecord::ReferenceField\\n      @collection={{@record.collection}}\\n      @isLinkDisabled={{true}}\\n      @recordIds={{array @record.id}}\\n    />\\n  </:header>\\n\\n  <:body>\\n    <Feature::BrowserExtension::Shared::RecordCard::Details\\n      @record={{@record}}\\n      @fieldsToDisplay={{@fieldsToDisplay}}\\n    />\\n\\n    <Feature::BrowserExtension::Shared::RelatedRecordActions\\n      @record={{@record}}\\n      @actionsToDisplay={{@actionsToDisplay}}\\n    />\\n  </:body>\\n</Feature::BrowserExtension::Shared::Card>\\n', { moduleName: 'client/features/browser-extension/components/shared/record-card/template.hbs' });\n","// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionRelatedRecordsManagerInternalBusinessService from 'client/features/browser-extension/services/internal-business/related-records-manager';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { ERROR_ACCESS_COLLECTION_FORBIDDEN } from 'client/config/errors';\nimport FieldModel from 'client/data/models/field';\nimport { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class BrowserExtensionSharedRelatedCollectionCardComponent extends Component<{\n  field: FieldModel;\n  selectedRecord: ClientRecordModel;\n  isOpen?: boolean;\n  onExpand?: () => void;\n  onRetract?: () => void;\n}> {\n  @service('feature/browser-extension/internal-business/related-records-manager')\n  private readonly relatedRecordsManager: BrowserExtensionRelatedRecordsManagerInternalBusinessService;\n\n  static propTypes = {\n    field: PropTypes.instanceOf(FieldModel).isRequired,\n    selectedRecord: PropTypes.instanceOf(ClientRecordModel).isRequired,\n    isOpen: PropTypes.bool,\n    onExpand: PropTypes.func,\n    onRetract: PropTypes.func,\n  };\n\n  @tracked countRecords = 0;\n  @tracked records: ClientRecordModel[] = [];\n  @tracked currentPage = 1;\n  @tracked isLoading = true;\n  @tracked errorMessage = undefined;\n  relatedDataField: FieldModel;\n\n  @action\n  async onExpand() {\n    if (!this.initialized) {\n      void this.fetchNextPage(); // don't await or loading won't display\n    }\n    this.args.onExpand?.();\n  }\n\n  @action\n  async fetchNextPage() {\n    if (this.relatedDataField !== this.args.field) {\n      this.reset();\n    }\n    this.relatedDataField = this.args.field;\n    this.isLoading = true;\n    const result = await this.relatedRecordsManager.getPage(\n      this.args.selectedRecord,\n      this.relatedDataField,\n      this.currentPage,\n    );\n\n    this.errorMessage = `No ${this.relatedDataField.displayName} related to this record.`;\n    if ('error' in result) {\n      this.countRecords = 0;\n      this.records = [];\n      this.errorMessage =\n        result.error === ERROR_ACCESS_COLLECTION_FORBIDDEN\n          ? 'Collection access forbidden.'\n          : 'An error has occurred.';\n    } else {\n      this.records = this.records.concat(result.records.toArray());\n      this.countRecords = result.count;\n    }\n    this.isLoading = false;\n  }\n\n  @action\n  async searchNextPage() {\n    this.currentPage += 1;\n    await this.fetchNextPage();\n  }\n\n  @action\n  reset() {\n    this.countRecords = 0;\n    this.records = [];\n    this.currentPage = 1;\n    this.errorMessage = undefined;\n  }\n\n  get initialized() {\n    // true if fetchNextPage has been called at least once\n    return this.errorMessage !== undefined;\n  }\n}\n","import type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Component from '@glimmer/component';\n\ninterface Args {\n  searchNextPage: () => Promise<void>;\n  countRecords: number;\n  records: ClientRecordModel[];\n  isLoading: boolean;\n  errorMessage?: string;\n}\n\nexport default class BrowserExtensionSharedRelatedCollectionCardRelatedDataRecordsComponent extends Component<Args> {\n  get hasMoreRecords() {\n    return this.args.records.length < this.args.countRecords;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-browser-extension-related-data-records\\\" ...attributes>\\n  <div class=\\\"c-browser-extension-related-data-records__list\\\">\\n    {{#if @countRecords}}\\n      {{#each @records as |record|}}\\n        <Feature::BrowserExtension::Shared::RecordCard\\n          @record={{record}}\\n          data-test-related-record-card\\n        />\\n      {{/each}}\\n\\n      {{#if this.hasMoreRecords}}\\n        <Feature::BrowserExtension::Shared::ViewMoreButton\\n          @onClick={{@searchNextPage}}\\n          data-test-view-more\\n        />\\n      {{/if}}\\n\\n    {{else if @isLoading}}\\n      <Shared::Feedback::BetaLoader class=\\\"c-browser-extension-related-data-records__loader\\\" />\\n    {{else}}\\n      <Feature::BrowserExtension::Shared::Typography::Subtitle>\\n        {{@errorMessage}}\\n      </Feature::BrowserExtension::Shared::Typography::Subtitle>\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/features/browser-extension/components/shared/related-collection-card/related-data-records/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Shared::Card::Deployable\\n  @headerLeftIcon={{@field.referenceModel.iconOrDefault}}\\n  @onExpand={{this.onExpand}}\\n  @onRetract={{@onRetract}}\\n  @isOpen={{@isOpen}}\\n  data-test-selected-record-related-data={{@field.fieldName}}\\n>\\n  <:header>\\n    {{#if (has-block)}}\\n      {{yield}}\\n    {{else}}\\n      {{concat \\'View \\' @field.displayName}}\\n    {{/if}}\\n  </:header>\\n\\n  <:body>\\n    <Feature::BrowserExtension::Shared::RelatedCollectionCard::RelatedDataRecords\\n      @searchNextPage={{this.searchNextPage}}\\n      @countRecords={{this.countRecords}}\\n      @records={{this.records}}\\n      @isLoading={{this.isLoading}}\\n      @errorMessage={{this.errorMessage}}\\n    />\\n  </:body>\\n</Feature::BrowserExtension::Shared::Card::Deployable>\\n', { moduleName: 'client/features/browser-extension/components/shared/related-collection-card/template.hbs' });\n","import type CustomActionModel from 'client/data/models/custom-action';\n// FIXME\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type ActionAvailabilityInternalBusinessService from 'client/features/action/services/internal-business/availability';\n// FIXME\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionProjectActionInternalBusinessService from 'client/features/browser-extension/services/internal-business/action';\nimport type BrowserExtensionRouterView from 'client/features/browser-extension/services/internal-feature/router-view';\nimport type State from 'client/features/browser-extension/state';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\ninterface Args {\n  record: ClientRecordModel;\n  actionsToDisplay?: string[];\n}\n\nexport default class BrowserExtensionSharedRelatedRecordActionsComponent extends Component<Args> {\n  @service store: StoreService;\n\n  @service('feature/browser-extension/internal-feature/router-view')\n  routerView: BrowserExtensionRouterView;\n\n  @service('feature/action/internal-business/availability')\n  actionService: ActionAvailabilityInternalBusinessService;\n\n  @service currentUser: CurrentUserService;\n\n  @service('feature/browser-extension/state') state: State;\n\n  @service('feature/browser-extension/internal-business/action')\n  private readonly internalActionService: BrowserExtensionProjectActionInternalBusinessService;\n\n  @tracked availableActions: CustomActionModel[] | undefined = undefined;\n\n  @tracked shouldOpenOnTop = false;\n\n  get dropdownId() {\n    return `${guidFor(this)}-smart-actions-tooltip-target`;\n  }\n\n  get isDisabled() {\n    return !this.availableActions?.length;\n  }\n\n  get dropdownButtonText() {\n    return this.isDisabled ? 'No action configured' : 'Actions';\n  }\n\n  get dropdownButtonIcon() {\n    return this.isDisabled ? undefined : 'expand_more';\n  }\n\n  get displayDropdown() {\n    return !this.args.actionsToDisplay;\n  }\n\n  get displayActionList() {\n    return this.args.actionsToDisplay && this.availableActions?.length > 0;\n  }\n\n  @action\n  async loadActions() {\n    const allActions = await this.internalActionService.getActions(this.args.record);\n    this.availableActions = this.args.actionsToDisplay\n      ? allActions.filter(({ name }) => this.args.actionsToDisplay.includes(name))\n      : allActions;\n  }\n\n  @action\n  isActionDisabled(customAction: CustomActionModel) {\n    return !this.actionService.isActionEnabled(customAction, {\n      enabledCustomActions: this.availableActions,\n      selectedRecordsCount: 1,\n      areAllRecordsSelected: false,\n      disabled: undefined,\n    });\n  }\n\n  @action\n  async triggerAction(selectedAction: CustomActionModel) {\n    this.routerView.addView({\n      name: 'feature.browser-extension.views.action',\n      properties: { record: this.args.record, action: selectedAction },\n      sidePanel: true,\n    });\n  }\n\n  @action\n  handleDisplay(toggleDropdown: (event) => void) {\n    const dropdown = document.getElementById(this.dropdownId);\n    if (dropdown && this.availableActions) {\n      const buttonPosition = dropdown.getBoundingClientRect();\n      const header = document.getElementsByClassName('c-shared-header')[0].clientHeight;\n      const footer = document.getElementsByClassName('l-browser-extension-footer')[0].clientHeight;\n      // We add one for Inbox assignments\n      const totalActions = this.availableActions.length + (this.hasInboxAction() ? 1 : 0);\n      // Padding + row height * totalActions\n      const dropdownItemsHeight = 8 + 36 * totalActions;\n      // button height + margin\n      const requiredMargin = dropdown.clientHeight + 14;\n\n      const noRoomOnTop = dropdownItemsHeight + requiredMargin > buttonPosition.y - header;\n\n      this.shouldOpenOnTop = noRoomOnTop\n        ? false\n        : window.innerHeight - (buttonPosition.y + dropdownItemsHeight) < requiredMargin + footer;\n    }\n\n    if (toggleDropdown) {\n      const event = new MouseEvent('click');\n      toggleDropdown(event);\n    }\n  }\n\n  @action\n  changeContentVisibility(hideContent: () => void) {\n    if (this.isDisabled) hideContent();\n  }\n\n  hasInboxAction() {\n    return this.args.record.collection.inboxes.length > 0;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-insert this.loadActions}}\\n\\n{{#if (or this.displayDropdown this.displayActionList)}}\\n  <div class=\\\"c-browser-extension-related-record-actions\\\" ...attributes>\\n\\n    {{#if this.displayDropdown}}\\n      <Form::Dropdown\\n        @id={{this.dropdownId}}\\n        @disabled={{this.isDisabled}}\\n        @openOnTop={{this.shouldOpenOnTop}}\\n        @contentFullWidth={{true}}\\n        class=\\\"c-browser-extension-related-record-actions__form\\\"\\n        data-test-beta-dropdown-actions\\n      >\\n        <:triggerer as |toggleDropdown|>\\n          <Shared::Button\\n            @text={{this.dropdownButtonText}}\\n            @isIconAfterText={{true}}\\n            @iconName={{this.dropdownButtonIcon}}\\n            @type=\\\"primary\\\"\\n            @onClick={{fn this.handleDisplay toggleDropdown}}\\n            @size=\\\"small\\\"\\n            disabled={{this.isDisabled}}\\n            class=\\\"c-browser-extension-related-record-actions__form__button\\\"\\n          />\\n        </:triggerer>\\n\\n        <:content as |hideContent|>\\n          {{did-insert (fn this.changeContentVisibility hideContent)}}\\n\\n          {{#unless this.isDisabled}}\\n            {{#each this.availableActions as |customAction|}}\\n              <Form::Dropdown::Action\\n                @name={{customAction.displayName}}\\n                @onClick={{chain-fn hideContent (fn this.triggerAction customAction)}}\\n                @isDisabled={{compute\\n                  (fn this.isActionDisabled customAction this.enabledCustomActions)\\n                }}\\n                @isDanger={{eq customAction.buttonType \\'danger\\'}}\\n                data-test-action={{customAction.displayName}}\\n              />\\n            {{/each}}\\n\\n            {{! NOT 100% SURE ABOUT IT }}\\n            <Feature::Inbox::AssignAction\\n              @selectedRecord={{@record}}\\n              @collection={{@record.collection}}\\n              @segment={{@segment}}\\n            />\\n          {{/unless}}\\n        </:content>\\n\\n      </Form::Dropdown>\\n    {{else if this.displayActionList}}\\n      {{#each this.availableActions as |customAction|}}\\n        <Shared::Button\\n          class=\\\"c-browser-extension-related-record-actions__form\\\"\\n          @text={{customAction.displayName}}\\n          @type={{customAction.buttonType}}\\n          @onClick={{fn this.triggerAction customAction}}\\n          @isDisabled={{compute (fn this.isActionDisabled customAction this.enabledCustomActions)}}\\n          data-test-action={{customAction.displayName}}\\n        />\\n      {{/each}}\\n    {{/if}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/features/browser-extension/components/shared/related-record-actions/template.hbs' });\n","import type BrowserExtensionFeatureService from 'client/features/browser-extension/services/feature';\n// FIXME\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionProjectSearchInternalBusinessService from 'client/features/browser-extension/services/internal-business/search';\nimport type BrowserExtensionSearchInternalService from 'client/features/browser-extension/services/internal-feature/search';\nimport type State from 'client/features/browser-extension/state';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { debounce } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class BrowserExtensionSharedSearchComponent extends Component {\n  @service('feature/browser-extension')\n  browserExtensionFeatureService: BrowserExtensionFeatureService;\n\n  @service('feature/browser-extension/state') state: State;\n  @service('feature/browser-extension/internal-business/search')\n  private searchService: BrowserExtensionProjectSearchInternalBusinessService;\n\n  @service('feature/browser-extension/internal-feature/search')\n  private searchInternalService: BrowserExtensionSearchInternalService;\n\n  @tracked isDebouncing = false;\n\n  get isSearchingData() {\n    return (\n      !this.isDebouncing\n      && this.state.searchState.value\n      && this.state.searchState.searchStateByCollection\n      && Object.values(this.state.searchState.searchStateByCollection).any((s) => s.loading)\n    );\n  }\n\n  get someRecordsFound() {\n    if (!this.searchHasStarted) return false;\n\n    return this.state.extensionConfiguration.searchSettings.any(\n      ({ collectionName }) =>\n        this.state.searchState.searchStateByCollection[collectionName]?.count > 0,\n    );\n  }\n\n  get genericCollectionName() {\n    return this.searchInternalService.genericCollectionName;\n  }\n\n  get singleCollection() {\n    return this.state.getCollection(\n      this.state.extensionConfiguration.searchSettings.firstObject.collectionName,\n    );\n  }\n\n  get singleCollectionSearchState() {\n    return this.state.searchState.searchStateByCollection[\n      this.state.extensionConfiguration.searchSettings.firstObject.collectionName\n    ];\n  }\n\n  get searchStateByCollection() {\n    return this.state.extensionConfiguration.searchSettings.map(({ collectionName }) => {\n      const { count, records, loading } =\n        this.state.searchState.searchStateByCollection[collectionName];\n      return { collection: this.state.getCollection(collectionName), count, records, loading };\n    });\n  }\n\n  get singleCollectionName() {\n    return this.singleCollection.pluralizedDisplayName.toLowerCase();\n  }\n\n  get searchHasStarted() {\n    return this.state.searchState.value && !this.isDebouncing;\n  }\n\n  get searchHasStartedAndIsFinishedLoading() {\n    return this.searchHasStarted && !this.state.searchState.isLoading;\n  }\n\n  @action\n  searchUsingSearchBar(value: string) {\n    this.isDebouncing = true;\n    this.state.searchState.value = value;\n    debounce(this, this.searchNewPage, 500);\n  }\n\n  @action\n  async select(record: ClientRecordModel) {\n    await this.browserExtensionFeatureService.selectRecord(record);\n  }\n\n  @action\n  async onSearchChange(value: string) {\n    this.state.searchState.value = value;\n  }\n\n  @action\n  private async searchNewPage() {\n    this.isDebouncing = false;\n    await this.searchService.searchNewPage(this.state.searchState.value.trim());\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type BrowserExtensionFeatureService from 'client/features/browser-extension/services/feature';\n// FIXME\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionProjectSearchInternalBusinessService from 'client/features/browser-extension/services/internal-business/search';\nimport type State from 'client/features/browser-extension/state';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { later } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport window from 'ember-window-mock';\n\ninterface Args {\n  collection: CollectionModel;\n  records: ClientRecordModel[];\n  count: number;\n  currentPage: number;\n}\n\nexport default class BrowserExtensionSharedSearchRecordsListComponent extends Component<Args> {\n  @service('feature/browser-extension/state') state: State;\n  @service('feature/browser-extension')\n  browserExtensionFeatureService: BrowserExtensionFeatureService;\n\n  @service('feature/browser-extension/internal-business/search')\n  private readonly searchService: BrowserExtensionProjectSearchInternalBusinessService;\n\n  @action\n  async searchNextPage() {\n    await this.searchService.searchNextPage(this.args.collection);\n\n    // We need to wait for the records to be loaded otherwise the scrollHeight will be wrong.\n    // It's a workaround because the scrollHeight is not updated when the records are loaded.\n    later(() => {\n      this.scrollIntoViewIfNeeded(window.document.getElementById(this.viewMoreId));\n    }, 1);\n  }\n\n  scrollIntoViewIfNeeded(target: HTMLElement) {\n    const scrollingContainer = window.document.getElementById(\n      'c-browser-extension-search__scrolling-context',\n    );\n    const bottomOfScrollingContainer =\n      scrollingContainer.offsetTop + scrollingContainer.clientHeight;\n\n    const bottomOfTarget = target.getBoundingClientRect().top + target.clientHeight;\n\n    if (bottomOfTarget > bottomOfScrollingContainer)\n      target.scrollIntoView({ block: 'end', behavior: 'smooth' });\n  }\n\n  @action\n  async select(record: ClientRecordModel) {\n    await this.browserExtensionFeatureService.selectRecord(record);\n  }\n\n  get viewMoreId() {\n    return `view-more-button-${this.args.collection.name}`;\n  }\n\n  get hasSomeRecords() {\n    return this.args.records?.length > 0;\n  }\n\n  get isGetMoreVisible() {\n    return (\n      this.hasSomeRecords\n      && (this.args.records.length < this.args.count || this.args.currentPage !== 1)\n    );\n  }\n\n  get isGetMoreDisabled() {\n    return this.args.records.length >= this.args.count;\n  }\n\n  get singularizedCollectionName() {\n    return this.args.collection.singularizedDisplayName.toLowerCase();\n  }\n\n  private get listElement() {\n    return document.querySelector(`#browser-extension-search-records-${this.args.collection.name}`);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.hasSomeRecords}}\\n  <ul\\n    class=\\\"c-feature-browser-extension-shared-search-records-list\\\"\\n    id=\\\"browser-extension-search-records-{{@collection.name}}\\\"\\n  >\\n    {{#each @records as |record|}}\\n      <Feature::BrowserExtension::Shared::Card\\n        ...attributes\\n        @headerIcon=\\\"arrow_forward\\\"\\n        @hideBody={{true}}\\n        @onHeaderClick={{fn this.select record}}\\n      >\\n        <:header>\\n          <Feature::ClientRecord::ReferenceField\\n            @collection={{@collection}}\\n            @isLinkDisabled={{true}}\\n            @recordIds={{array record.id}}\\n          />\\n        </:header>\\n      </Feature::BrowserExtension::Shared::Card>\\n    {{/each}}\\n  </ul>\\n\\n  {{#if this.isGetMoreVisible}}\\n    <Feature::BrowserExtension::Shared::ViewMoreButton\\n      @onClick={{this.searchNextPage}}\\n      disabled={{this.isGetMoreDisabled}}\\n      id={{this.viewMoreId}}\\n    />\\n  {{/if}}\\n{{else}}\\n  <Feature::BrowserExtension::Shared::Typography::Subtitle>\\n    No matching\\n    {{this.singularizedCollectionName}}\\n    found in your database.\\n  </Feature::BrowserExtension::Shared::Typography::Subtitle>\\n{{/if}}\\n', { moduleName: 'client/features/browser-extension/components/shared/search/records-list/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-browser-extension-search\\\" ...attributes>\\n\\n  <div class=\\\"c-browser-extension-search__bar\\\">\\n    <Shared::BetaSearchBar\\n      @placeholder=\\\"Search manually…\\\"\\n      @searchValue={{this.state.searchState.value}}\\n      @onChange={{this.onSearchChange}}\\n      @searchFunction={{this.searchUsingSearchBar}}\\n      @searchOnInput={{true}}\\n      @shouldAutoFocus={{true}}\\n      @isLoading={{this.state.searchState.isLoading}}\\n      data-test-browser-extension-search-bar\\n    />\\n\\n    {{#if this.searchHasStartedAndIsFinishedLoading}}\\n      {{#if (not this.someRecordsFound)}}\\n        <Feature::BrowserExtension::Shared::Typography::Subtitle>\\n          No matching\\n          {{this.genericCollectionName}}\\n          found in your database.\\n        </Feature::BrowserExtension::Shared::Typography::Subtitle>\\n      {{else if this.state.extensionConfiguration.hasOnlyOneSearchSetting}}\\n        <Feature::BrowserExtension::Shared::Typography::Subtitle>\\n          {{this.singleCollectionSearchState.count}}\\n          {{this.singleCollectionName}}\\n          found.\\n        </Feature::BrowserExtension::Shared::Typography::Subtitle>\\n      {{/if}}\\n    {{/if}}\\n\\n  </div>\\n\\n  {{#if (or this.isSearchingData this.someRecordsFound)}}\\n    <div\\n      class=\\\"c-browser-extension-search__all-records-results\\\"\\n      id=\\\"c-browser-extension-search__scrolling-context\\\"\\n    >\\n      {{#each this.searchStateByCollection key=\\'collection.name\\' as |collectionSearchState|}}\\n        <div class=\\\"c-browser-extension-search__record-results-per-collection\\\">\\n          <Feature::BrowserExtension::Shared::Typography::Title2>\\n            <Shared::DataDisplay::BetaIcon\\n              @iconName={{collectionSearchState.collection.iconOrDefault}}\\n            />\\n            {{collectionSearchState.collection.pluralizedDisplayName}}\\n            {{#unless collectionSearchState.loading}}\\n              ({{collectionSearchState.count}})\\n            {{/unless}}\\n          </Feature::BrowserExtension::Shared::Typography::Title2>\\n          {{#if collectionSearchState.loading}}\\n            <Shared::Feedback::BetaLoader />\\n          {{else}}\\n            <Feature::BrowserExtension::Shared::Search::RecordsList\\n              @collection={{collectionSearchState.collection}}\\n              @records={{collectionSearchState.records}}\\n              @count={{collectionSearchState.count}}\\n              @currentPage={{collectionSearchState.currentPage}}\\n            />\\n          {{/if}}\\n        </div>\\n      {{/each}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/browser-extension/components/shared/search/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-browser-extension-side-panel\\\">\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/features/browser-extension/components/shared/side-panel/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-browser-extension-typography-subtitle\\\" ...attributes>\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/features/browser-extension/components/shared/typography/subtitle/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-browser-extension-typography-title-1\\\" ...attributes>\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/features/browser-extension/components/shared/typography/title1/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-browser-extension-typography-title-2\\\" ...attributes>\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/features/browser-extension/components/shared/typography/title2/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  @type=\\\"ghost\\\"\\n  @text=\\\"View more\\\"\\n  @iconName=\\\"arrow_downward\\\"\\n  @isIconAfterText={{true}}\\n  @onClick={{@onClick}}\\n  @size=\\\"small\\\"\\n  class=\\\"c-feature-browser-extension-shared-view-more-button\\\"\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/browser-extension/components/shared/view-more-button/template.hbs' });\n","import type CustomActionModel from 'client/data/models/custom-action';\nimport type ActionFeatureService from 'client/features/action/services/feature';\nimport type { ViewComponentArgs } from 'client/features/browser-extension/components/views/component';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionProjectActionInternalBusinessService from 'client/features/browser-extension/services/internal-business/action';\nimport type BrowserExtensionRouterView from 'client/features/browser-extension/services/internal-feature/router-view';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class BrowserExtensionViewsActionComponent extends Component<\n  ViewComponentArgs<{ action: CustomActionModel; record: ClientRecordModel }>\n> {\n  @service('feature/browser-extension/internal-feature/router-view')\n  routerView: BrowserExtensionRouterView;\n\n  @service('feature/browser-extension/internal-business/action')\n  actionService: BrowserExtensionProjectActionInternalBusinessService;\n\n  @service('feature/action') actionFeatureService: ActionFeatureService;\n\n  @tracked isActionExecuted = false;\n\n  get displayNoFormState() {\n    return (\n      !this.actionFeatureService.hasDisplayedFieldsOrFormElements\n      && !this.isActionExecuted\n      && !this.actionFeatureService.isApprovalRequired\n    );\n  }\n\n  get customAction() {\n    return this.args.view.properties.action;\n  }\n\n  get record() {\n    return this.args.view.properties.record;\n  }\n\n  @action\n  async loadState() {\n    await this.actionService.loadActionForm(this.customAction, this.record);\n  }\n\n  @action\n  async executeAction() {\n    const result = await this.actionService.executeAction(this.customAction, this.record);\n    if (!result?.success && !this.customAction.isApprovalRequired) return;\n\n    // be careful mark to executed when there is no error\n    this.isActionExecuted = true;\n\n    // We reload the record in order to update it if it changed\n    await this.args.view.properties.record.reload();\n\n    // When there is no HTML response to display we go back to the previous view\n    if (!result.hasHtmlResponse) this.routerView.previousView();\n  }\n\n  @action\n  async transitionBackToPreviousView() {\n    this.routerView.previousView();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-insert this.loadState}}\\n<Feature::Action::ApprovalConfirmationModal />\\n<div class=\\\"c-feature-browser-extension-views-action\\\">\\n  <Feature::BrowserExtension::Shared::Header\\n    @showBackButton={{false}}\\n    @closeButton={{true}}\\n    @onClose={{this.transitionBackToPreviousView}}\\n  >\\n    <:top>\\n      <Feature::Action::Panel::Header\\n        @action={{this.customAction}}\\n        @records={{array this.record}}\\n        @allRecordsSelected={{false}}\\n      />\\n    </:top>\\n    <:bottom>\\n      {{! template-lint-disable no-triple-curlies }}\\n      {{{this.customAction.description}}}\\n      {{! template-lint-enable no-triple-curlies }}\\n    </:bottom>\\n  </Feature::BrowserExtension::Shared::Header>\\n\\n  <Feature::Action::Panel\\n    @action={{this.customAction}}\\n    @recordsToApplyOn={{array this.record}}\\n    @onExecute={{this.executeAction}}\\n    @showConfirmationStep={{this.displayNoFormState}}\\n    @allRecordsSelected={{false}}\\n    @closeAction={{this.transitionBackToPreviousView}}\\n  />\\n</div>\\n', { moduleName: 'client/features/browser-extension/components/views/action/template.hbs' });\n","import type { ViewComponentArgs } from 'client/features/browser-extension/components/views/component';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class BrowserExtensionViewsAiSuggestionsComponent extends Component<\n  ViewComponentArgs<{ selectedRecord: ClientRecordModel }>\n> {\n  @service('feature/browser-extension/state') private readonly state: BrowserExtensionFeatureState;\n\n  get displayAiError() {\n    return !this.state.aiState.isLoading && !this.state.aiState.summary;\n  }\n}\n","import type BrowserExtensionRouterView from 'client/features/browser-extension/services/internal-feature/router-view';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class BrowserExtensionViewsAiSuggestionsContentComponent extends Component {\n  @service('feature/browser-extension/state') private readonly state: BrowserExtensionFeatureState;\n  @service('feature/browser-extension/internal-feature/router-view')\n  private readonly routerView: BrowserExtensionRouterView;\n\n  get aiState() {\n    return this.state.aiState;\n  }\n\n  get isSummaryLoading() {\n    return this.state.aiState.isLoading && !this.state.aiState.summary;\n  }\n\n  getField(record: ClientRecordModel, fieldName: string) {\n    return record.collection.fields.find((f) => f.fieldName === fieldName);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-browser-extension-views-ai-suggestions-content\\\">\\n  <Feature::BrowserExtension::Shared::Card>\\n    <:header>\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName=\\\"edit\\\"\\n        @size=\\\"tiny\\\"\\n        class=\\\"c-feature-browser-extension-views-ai-suggestions-content__summary-icon\\\"\\n      />\\n      <Feature::BrowserExtension::Shared::Typography::Title2>\\n        Request Summary\\n      </Feature::BrowserExtension::Shared::Typography::Title2>\\n    </:header>\\n    <:body>\\n      {{#if this.isSummaryLoading}}\\n        <div class=\\\"l-skeleton-rows\\\">\\n          <div class=\\\"l-skeleton-row\\\" />\\n          <div class=\\\"l-skeleton-row\\\" />\\n          <div class=\\\"l-skeleton-row\\\" />\\n        </div>\\n      {{else}}\\n        {{this.aiState.summary}}\\n      {{/if}}\\n    </:body>\\n  </Feature::BrowserExtension::Shared::Card>\\n\\n  {{#each this.aiState.resultRelevantRecords as |result|}}\\n    <Feature::BrowserExtension::Shared::RecordCard\\n      @record={{result.record}}\\n      @fieldsToDisplay={{result.fields}}\\n      @actionsToDisplay={{result.actions}}\\n    />\\n  {{/each}}\\n\\n  {{#each this.aiState.resultRelevantCollections as |result|}}\\n    <Feature::BrowserExtension::Shared::RelatedCollectionCard\\n      @selectedRecord={{result.selectedRecord}}\\n      @field={{this.getField result.selectedRecord result.step.fieldName}}\\n    />\\n  {{/each}}\\n\\n  {{#if this.aiState.isLoading}}\\n    <Feature::BrowserExtension::Shared::RecordCard::skeleton data-test-ai-suggestion-skeleton-1 />\\n    <Feature::BrowserExtension::Shared::RecordCard::skeleton data-test-ai-suggestion-skeleton-2 />\\n  {{/if}}\\n\\n</div>\\n\\n', { moduleName: 'client/features/browser-extension/components/views/ai-suggestions/content/template.hbs' });\n","// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionAIBusinessService from 'client/features/browser-extension/services/internal-business/ai/ai';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  selectedRecord: ClientRecordModel;\n}\n\nexport default class BrowserExtensionViewsAiSuggestionsErrorComponent extends Component<Args> {\n  @service('feature/browser-extension/internal-business/ai/ai')\n  private readonly aiService: BrowserExtensionAIBusinessService;\n\n  static propTypes = {\n    selectedRecord: PropTypes.instanceOf(ClientRecordModel).isRequired,\n  };\n\n  @action\n  async onRetry() {\n    await this.aiService.triggerIntelligentAssistant(this.args.selectedRecord);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-browser-extension-ai-suggestions-error\\\" data-test-ai-error>\\n  <Feature::BrowserExtension::Shared::MessageWithIcon\\n    @icon=\\\"error\\\"\\n    @iconSize=\\\"normal\\\"\\n    @title=\\\"Oops… something went wrong.\\\"\\n    @subtitle=\\\"You can retry. If the error persists, please contact your administrator or our support.\\\"\\n  />\\n  <Shared::Button\\n    class=\\\"c-browser-extension-ai-suggestions-error__button\\\"\\n    @text=\\\"Retry\\\"\\n    @type=\\\"primary\\\"\\n    @iconName=\\\"cached\\\"\\n    @isIconAfterText={{true}}\\n    @iconSize=\\\"small\\\"\\n    @onClick={{this.onRetry}}\\n    data-test-ai-retry\\n  />\\n</div>\\n', { moduleName: 'client/features/browser-extension/components/views/ai-suggestions/error/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-browser-extension-views-ai-suggestions\\\" ...attributes>\\n\\n  <Feature::BrowserExtension::Shared::Header @showBackButton={{true}}>\\n    <:top>\\n      {{#if this.state.aiState.isLoading}}\\n        <Shared::Feedback::BetaLoader\\n          class=\\\"c-feature-browser-extension-views-ai-suggestions__loader\\\"\\n        />\\n      {{else}}\\n        <Shared::DataDisplay::BetaIcon\\n          class=\\\"c-feature-browser-extension-views-ai-suggestions__header-icon\\\"\\n          @iconName=\\\"auto_fix_high\\\"\\n          @size=\\\"tiny\\\"\\n        />\\n      {{/if}}\\n      AI Suggestions\\n    </:top>\\n  </Feature::BrowserExtension::Shared::Header>\\n\\n  {{#if this.displayAiError}}\\n    <Feature::BrowserExtension::Views::AiSuggestions::Error\\n      @selectedRecord={{@view.properties.selectedRecord}}\\n    />\\n  {{else}}\\n    <Feature::BrowserExtension::Views::AiSuggestions::Content />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/browser-extension/components/views/ai-suggestions/template.hbs' });\n","import type BrowserExtensionRouterView from 'client/features/browser-extension/services/internal-feature/router-view';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type { View } from 'client/features/browser-extension/states/router-view-state';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport type ViewComponentArgs<PropertiesType> = {\n  view: View<PropertiesType>;\n};\n\nexport default class BrowserExtensionViewsComponent extends Component {\n  @service('feature/browser-extension/state') private state: BrowserExtensionFeatureState;\n  @service('liana-session') private lianaSession: LianaSessionService;\n  @service('feature/browser-extension/internal-feature/router-view')\n  routerView: BrowserExtensionRouterView;\n\n  private isMouseDownInside = false;\n\n  get project() {\n    return this.lianaSession.currentProject;\n  }\n\n  @action\n  handleMouseDown(event: MouseEvent): void {\n    const target = event.target as HTMLElement;\n    this.isMouseDownInside = !!target.classList.contains('c-browser-extension-view');\n  }\n\n  @action\n  handleMouseUp(event: MouseEvent): void {\n    const target = event.target as HTMLElement;\n\n    if (this.isMouseDownInside && target.classList.contains('c-browser-extension-view')) {\n      this.routerView.previousView();\n    }\n\n    // Reset the flag after the mouseup event\n    this.isMouseDownInside = false;\n  }\n\n  get views() {\n    return this.state.routerViewState.views;\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type { ViewComponentArgs } from 'client/features/browser-extension/components/views/component';\nimport type BrowserExtensionRouterView from 'client/features/browser-extension/services/internal-feature/router-view';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type RedirectionService from 'client/legacy/services/redirection';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class BrowserExtensionViewsDetailsComponent extends Component<\n  ViewComponentArgs<{ record: ClientRecordModel }>\n> {\n  @service private readonly lianaSession: LianaSessionService;\n  @service private readonly redirection: RedirectionService;\n  @service private readonly router: RouterService;\n  @service('feature/browser-extension/internal-feature/router-view')\n  private readonly routerView: BrowserExtensionRouterView;\n\n  @service('feature/client-record')\n  private readonly clientRecordService: ClientRecordFeatureService;\n\n  get record() {\n    return this.args.view.properties.record;\n  }\n\n  @action\n  async openNewForestTabForRecord() {\n    const routePathToRecord = this.clientRecordService.getRecordPath(this.record.collection);\n\n    // We need to give every route params\n    this.redirection.openNewTab(\n      this.router.urlFor(\n        routePathToRecord,\n        {\n          project_name: this.lianaSession.currentProject.name,\n        },\n        {\n          environment_name: this.lianaSession.rendering.environment.name,\n          team_name: this.lianaSession.rendering.team.name,\n        },\n        {\n          collection_id: this.record.collection.shareableId,\n        },\n        {\n          edit_collection_id: this.record.collection.shareableId,\n          record_id: this.record.id,\n        },\n      ),\n    );\n  }\n\n  @action\n  async transitionBackToPreviousView() {\n    this.routerView.previousView();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Shared::LayoutView\\n  @showFooter={{true}}\\n  @showMainFooter={{false}}\\n  @showBackButton={{false}}\\n  @view={{@view}}\\n  data-test-browser-extension-details\\n>\\n  <:header-left>\\n    <Feature::BrowserExtension::Shared::GoToDetailsButton\\n      @record={{this.record}}\\n      @disabled={{true}}\\n    />\\n  </:header-left>\\n\\n  <:header-right>\\n    <Shared::Button\\n      @iconName=\\\"close\\\"\\n      @type=\\\"ghost\\\"\\n      @size=\\\"browser-extension\\\"\\n      @onClick={{this.transitionBackToPreviousView}}\\n      data-test-browser-extension-details-close-button\\n    />\\n  </:header-right>\\n\\n  <:body>\\n    <DataDisplay::Record::Details\\n      @collection={{this.record.collection}}\\n      @record={{this.record}}\\n      @rows={{this.record.collection.viewEdit.visiblePlainRows}}\\n      @readMode={{true}}\\n      @compactDisplay={{true}}\\n      @disableNested={{true}}\\n      class=\\\"c-feature-browser-extension-views-details__content\\\"\\n    />\\n  </:body>\\n\\n  <:footer>\\n    <Shared::Button\\n      @text=\\\"Open in Forest Admin\\\"\\n      @iconName=\\\"open_in_new\\\"\\n      @type=\\\"ghost\\\"\\n      @iconSize=\\\"small\\\"\\n      @onClick={{this.openNewForestTabForRecord}}\\n      @isIconAfterText={{true}}\\n      data-test-browser-extension-open-record-in-forest\\n      class=\\\"c-feature-browser-extension-views-details__footer-button\\\"\\n    />\\n  </:footer>\\n</Feature::BrowserExtension::Shared::LayoutView>\\n', { moduleName: 'client/features/browser-extension/components/views/details/template.hbs' });\n","import type CustomActionModel from 'client/data/models/custom-action';\nimport type FieldModel from 'client/data/models/field';\nimport type { ViewComponentArgs } from 'client/features/browser-extension/components/views/component';\nimport type BrowserExtensionFeatureService from 'client/features/browser-extension/services/feature';\n// FIXME\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionAIBusinessService from 'client/features/browser-extension/services/internal-business/ai/ai';\nimport type BrowserExtensionRouterView from 'client/features/browser-extension/services/internal-feature/router-view';\nimport type State from 'client/features/browser-extension/state';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { getEmojiFromIcon } from 'client/utils/emoji-utils';\n\nexport default class BrowserExtensionViewsSelectedRecordComponent extends Component<\n  ViewComponentArgs<{ selectedRecord: ClientRecordModel; actions: CustomActionModel[] }>\n> {\n  @service('feature/browser-extension/state') private readonly state: State;\n\n  @service('feature/browser-extension')\n  private readonly browserExtensionFeatureService: BrowserExtensionFeatureService;\n\n  @service('feature/browser-extension/internal-feature/router-view')\n  private readonly routerView: BrowserExtensionRouterView;\n\n  @service('feature/browser-extension/internal-business/ai/ai')\n  private readonly aiService: BrowserExtensionAIBusinessService;\n\n  @tracked filterValue: string | undefined = undefined;\n\n  @tracked selectedRelatedData: FieldModel | undefined = undefined;\n\n  @tracked currentHoveredCardIndex: number | undefined = undefined;\n\n  get selectedRecord() {\n    return this.args.view.properties.selectedRecord;\n  }\n\n  get availableActions() {\n    return this.args.view.properties.actions;\n  }\n\n  get hasOnlyOneSelectedRecord() {\n    return (\n      this.state.routerViewState.views.filter(\n        ({ name }) => name === 'feature/browser-extension/views/selected-record',\n      ).length === 1\n    );\n  }\n\n  get isIntelligentAssistantDisabled() {\n    return (\n      this.state.aiState.isLoading\n      || !this.state.extensionConfiguration.enableAi\n      || !this.state.crawlingState.crawledData\n    );\n  }\n\n  @action\n  setCurrentHoveredCardIndex(index?: number) {\n    this.currentHoveredCardIndex = index;\n  }\n\n  @action\n  async goToDetails() {\n    await this.browserExtensionFeatureService.goToDetails(this.selectedRecord);\n  }\n\n  @action\n  async triggerIntelligentAssistant() {\n    this.routerView.addView({\n      name: 'feature.browser-extension.views.ai-suggestions',\n      properties: { selectedRecord: this.selectedRecord },\n    });\n    await this.aiService.triggerIntelligentAssistant(this.selectedRecord);\n  }\n\n  get noActionsAndRelatedData() {\n    return this.availableActions?.length === 0 && this.relatedData?.length === 0;\n  }\n\n  get noResultAfterFiltering() {\n    return (\n      !this.noActionsAndRelatedData\n      && this.filteredActions?.length === 0\n      && this.filteredRelatedData?.length === 0\n    );\n  }\n\n  get flashEmoji() {\n    return getEmojiFromIcon('flash');\n  }\n\n  get detailsEmoji() {\n    return getEmojiFromIcon('🔎');\n  }\n\n  get relatedData(): FieldModel[] {\n    return this.selectedRecord.collection.viewEdit.rowEditsRelatedData\n      .filter(({ isVisible }) => isVisible)\n      .sortBy('position')\n      .map((item) => item.field);\n  }\n\n  @action\n  mark(value: string) {\n    if (!this.filterValue) return value;\n    return value.replace(new RegExp(this.filterValue, 'ig'), (c) => {\n      return `<mark class=\"c-browser-extension-pages-search__list-item__content--marked\">${c}</mark>`;\n    });\n  }\n\n  @action\n  async selectAction(selectedAction: CustomActionModel) {\n    this.routerView.addView({\n      name: 'feature.browser-extension.views.action',\n      properties: { record: this.selectedRecord, action: selectedAction },\n      sidePanel: true,\n    });\n  }\n\n  @action\n  async expandRelatedData(relatedDataField: FieldModel) {\n    if (this.selectedRelatedData === relatedDataField) {\n      this.selectedRelatedData = undefined;\n    } else {\n      this.selectedRelatedData = relatedDataField;\n    }\n  }\n\n  get filteredActions(): CustomActionModel[] {\n    if (!this.filterValue) return this.availableActions;\n    return this.availableActions.filter((a) => {\n      return a.name.toLowerCase().includes(this.filterValue.toLowerCase());\n    });\n  }\n\n  get filteredRelatedData(): FieldModel[] {\n    if (!this.filterValue) return this.relatedData;\n    return this.relatedData.filter((field) =>\n      `view ${field.fieldName.toLowerCase()}`.includes(this.filterValue.toLowerCase()),\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Shared::LayoutView\\n  @view={{@view}}\\n  class=\\\"c-feature-browser-extension-views-selected-record\\\"\\n>\\n  <:header-left>\\n    <Feature::BrowserExtension::Shared::GoToDetailsButton\\n      @record={{this.selectedRecord}}\\n      @disabled={{false}}\\n    />\\n  </:header-left>\\n  <:header-right>\\n    {{#if this.hasOnlyOneSelectedRecord}}\\n      <Shared::Button\\n        @iconName=\\\"auto_fix_high\\\"\\n        @type=\\\"primary\\\"\\n        @size=\\\"browser-extension\\\"\\n        @onClick={{this.triggerIntelligentAssistant}}\\n        disabled={{this.isIntelligentAssistantDisabled}}\\n        class={{unless\\n          this.isIntelligentAssistantDisabled\\n          \\'c-browser-extension-pages-selected-record__button--throbbing\\'\\n        }}\\n      />\\n    {{/if}}\\n  </:header-right>\\n\\n  <:body>\\n    {{#unless this.noActionsAndRelatedData}}\\n      <Shared::BetaSearchBar\\n        @placeholder=\\\"Jump to…\\\"\\n        @searchFunction={{fn (mut this.filterValue)}}\\n        @searchOnInput={{true}}\\n        @parametersToWatchRetriggeringFocus={{this.selectedRecord}}\\n        class=\\\"c-feature-browser-extension-views-selected-record__search\\\"\\n      />\\n    {{/unless}}\\n\\n    <div class=\\\"c-feature-browser-extension-views-selected-record__content\\\">\\n      {{#if this.noResultAfterFiltering}}\\n        <Feature::BrowserExtension::Shared::MessageWithIcon\\n          @path=\\\"no-data-box\\\"\\n          @title=\\\"No matching results\\\"\\n          @subtitle=\\\"Sorry, we couldn\\'t find results based on your search.\\\"\\n          @center={{true}}\\n        />\\n      {{else}}\\n        <Feature::BrowserExtension::Shared::Card\\n          @onHeaderClick={{this.goToDetails}}\\n          data-test-selected-record-details-section\\n        >\\n          <:header>\\n            <span>{{this.detailsEmoji}}</span>\\n            <span>\\n              Details\\n            </span>\\n          </:header>\\n\\n          <:body>\\n            <Feature::BrowserExtension::Shared::RecordCard::Details\\n              @record={{this.selectedRecord}}\\n            />\\n          </:body>\\n        </Feature::BrowserExtension::Shared::Card>\\n        {{#if this.noActionsAndRelatedData}}\\n          <Feature::BrowserExtension::Shared::MessageWithIcon\\n            @path=\\\"no-data-box\\\"\\n            @title=\\\"No related data or action available\\\"\\n            @center={{true}}\\n          />\\n        {{/if}}\\n      {{/if}}\\n\\n      {{#each this.filteredActions as |action|}}\\n        <Feature::BrowserExtension::Shared::Card\\n          @onHeaderClick={{fn this.selectAction action}}\\n          data-test-selected-record-action={{action.displayName}}\\n        >\\n          <:header>\\n            <span>{{this.flashEmoji}}</span>\\n            <span>\\n              {{! Displays raw text or html}}\\n              {{! template-lint-disable no-triple-curlies }}\\n              {{{this.mark action.displayName}}}\\n            </span>\\n          </:header>\\n        </Feature::BrowserExtension::Shared::Card>\\n      {{/each}}\\n\\n      {{#each this.filteredRelatedData as |relatedDataField|}}\\n        <Feature::BrowserExtension::Shared::RelatedCollectionCard\\n          @selectedRecord={{this.selectedRecord}}\\n          @field={{relatedDataField}}\\n          @isOpen={{eq this.selectedRelatedData relatedDataField}}\\n          @onExpand={{fn this.expandRelatedData relatedDataField}}\\n          @onRetract={{fn this.expandRelatedData relatedDataField}}\\n        >\\n          {{! Displays raw text or html}}\\n          {{! template-lint-disable no-triple-curlies }}\\n          {{{this.mark (concat \\'View \\' relatedDataField.displayName)}}}\\n        </Feature::BrowserExtension::Shared::RelatedCollectionCard>\\n      {{/each}}\\n    </div>\\n  </:body>\\n</Feature::BrowserExtension::Shared::LayoutView>\\n', { moduleName: 'client/features/browser-extension/components/views/selected-record/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! This component is used to draw view on top of the previous one so the navigation is mobile like.\\nYou never delete the previous \\\"view\\\" to keep all state (even scroll inside a view) }}\\n\\n<ColorTheme @project={{this.project}}>\\n  {{#each this.views as |currentView|}}\\n    {{! template-lint-disable no-pointer-down-event-binding no-invalid-interactive }}\\n    <div\\n      class=\\\"c-browser-extension-view\\\"\\n      {{on \\'mousedown\\' this.handleMouseDown}}\\n      {{on \\'mouseup\\' this.handleMouseUp}}\\n      data-test-browser-extension-view\\n    >\\n      {{#if currentView.sidePanel}}\\n        <Feature::BrowserExtension::Shared::SidePanel>\\n          {{component currentView.name view=currentView}}\\n        </Feature::BrowserExtension::Shared::SidePanel>\\n      {{else}}\\n        <div class=\\\"c-browser-extension-view__default\\\">\\n          {{component currentView.name view=currentView}}\\n        </div>\\n      {{/if}}\\n    </div>\\n  {{/each}}\\n</ColorTheme>\\n', { moduleName: 'client/features/browser-extension/components/views/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type ActionFeatureState from 'client/features/action/state';\nimport type AiFeatureService from 'client/features/ai/services/feature';\nimport type BrowserExtensionActionInternalBusinessService from 'client/features/browser-extension/services/internal-business/action';\nimport type BrowserExtensionConfigurationInternalBusinessService from 'client/features/browser-extension/services/internal-business/configuration';\nimport type BrowserExtensionProjectCrawlingInternalBusinessService from 'client/features/browser-extension/services/internal-business/crawling';\nimport type BrowserExtensionProjectSettingsInternalBusinessService from 'client/features/browser-extension/services/internal-business/project-settings';\nimport type BrowserExtensionRouterView from 'client/features/browser-extension/services/internal-feature/router-view';\nimport type BrowserExtensionSessionHandlerInternalService from 'client/features/browser-extension/services/internal-feature/session-handler';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type { ProjectSettings } from 'client/features/browser-extension/state';\nimport type ActivityTrackerService from 'client/legacy/services/activity-tracker';\nimport type CollectionsManagerService from 'client/legacy/services/collections-manager';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LianaSessionOidcService from 'client/legacy/services/liana-session-oidc';\nimport type LocaleService from 'client/legacy/services/locale';\nimport type StoreService from 'client/legacy/services/store';\nimport type WidgetsManagerService from 'client/legacy/services/widgets-manager';\nimport type CapabilitiesService from 'client/shared/services/capabilities';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\n\nconst HOME = 'responsive.browser-extension';\nexport default class BrowserExtensionFeatureService extends Service {\n  @service('feature/action/state') private actionFeatureState: ActionFeatureState;\n  @service('feature/browser-extension/state') private state: BrowserExtensionFeatureState;\n  @service('liana-session-oidc') private lianaSessionOidcService: LianaSessionOidcService;\n  @service private lianaSession: LianaSessionService;\n  @service('shared/capabilities') private capabilitiesService: CapabilitiesService;\n\n  @service('feature/browser-extension/internal-business/crawling')\n  private crawlingService: BrowserExtensionProjectCrawlingInternalBusinessService;\n\n  @service('feature/browser-extension/internal-feature/router-view')\n  private routerView: BrowserExtensionRouterView;\n\n  @service('feature/browser-extension/internal-business/configuration')\n  private configurationService: BrowserExtensionConfigurationInternalBusinessService;\n\n  @service('feature/browser-extension/internal-business/project-settings')\n  private projectSettingsService: BrowserExtensionProjectSettingsInternalBusinessService;\n\n  @service('feature/browser-extension/internal-feature/session-handler')\n  private sessionHandler: BrowserExtensionSessionHandlerInternalService;\n\n  @service('feature/browser-extension/internal-business/action')\n  private readonly actionService: BrowserExtensionActionInternalBusinessService;\n\n  @service('feature/ai') private aiService: AiFeatureService;\n\n  @service private router: RouterService;\n  @service private activityTracker: ActivityTrackerService;\n  @service private locale: LocaleService;\n  @service private store: StoreService;\n  @service private collectionsManager: CollectionsManagerService;\n  @service private widgetsManager: WidgetsManagerService;\n  @service private currentUser: CurrentUserService;\n\n  public async selectRecord(record: ClientRecordModel) {\n    const actions = await this.actionService.getActions(record);\n    this.routerView.addView({\n      name: 'feature.browser-extension.views.selected-record',\n      properties: {\n        selectedRecord: record,\n        actions,\n      },\n      collectionId: record.collection.shareableId,\n    });\n    await record.reload();\n    void this.activityTracker.trackRead({\n      collection: record.collection,\n      recordId: record.id,\n      action: 'select',\n    });\n  }\n\n  public async goToDetails(record: ClientRecordModel) {\n    this.state.isDetailsViewLoading = true;\n\n    this.routerView.addView({\n      name: 'feature.browser-extension.views.details',\n      properties: { record },\n      sidePanel: true,\n    });\n\n    // Reloading related record as they do not contain all properties for display in details view\n    await record.reload();\n\n    this.state.isDetailsViewLoading = false;\n  }\n\n  async enableBrowserExtension() {\n    this.state.isUsedFromBrowserExtension = true;\n    await this.enableAssist();\n  }\n\n  async prohibitTransitionOutsideContext(transition: Transition) {\n    // if the user is not using the browser extension, we don't need to do anything\n    if (!this.state.isUsedFromBrowserExtension) return;\n\n    if (!transition.to.name.startsWith(HOME)) {\n      // catch is important to avoid the propagation of the error\n      await transition.abort().catch(() => {});\n    }\n  }\n\n  async redirectToHomeIfOutsideContext(transition: Transition) {\n    if (!this.state.isUsedFromBrowserExtension) return;\n\n    if (!transition.to.name.startsWith(HOME)) {\n      await this.router.transitionTo(HOME);\n    }\n  }\n\n  async enableAssist(\n    projectSettings: ProjectSettings = this.state.projectSettings,\n  ): Promise<boolean> {\n    if (!projectSettings) return false;\n    this.state.resetStateToStartDataReconciliation();\n\n    void this.aiService.initAI();\n\n    try {\n      const [rendering] = await Promise.all([\n        this.loadRendering(projectSettings),\n        this.configurationService.loadConfigurationInGlobalState(projectSettings.projectId),\n      ]);\n\n      if (!rendering) throw new Error('Assist cannot be enabled without a rendering.');\n\n      this.state.currentRendering = rendering;\n      if (this.state.extensionConfiguration) {\n        this.state.extensionConfiguration.searchSettings =\n          this.configurationService.cleanSearchSettings(\n            this.state.extensionConfiguration.searchSettings,\n            rendering.collections,\n          );\n      }\n\n      this.widgetsManager.initWidgets();\n\n      await this.lianaSessionOidcService.authenticate();\n\n      // Enable crawling\n      this.crawlingService.initializeCrawling();\n      this.state.isAgentReachable = true;\n\n      return true;\n    } catch (e) {\n      console.error(e);\n      this.state.isAgentReachable = false;\n      return false;\n    }\n  }\n\n  private async loadRendering(projectSettings: ProjectSettings) {\n    try {\n      await this.projectSettingsService.loadCurrentUserForCurrentProject(projectSettings);\n      const project = await this.projectSettingsService.loadProject(projectSettings.projectId);\n      this.locale.set('currentLocale', project.localeOrDefault);\n      // set current project at this step to avoid the error when the rendering is loaded\n      this.lianaSession.currentProject = project;\n\n      const team = await this.store.findRecord('team', projectSettings.teamId);\n\n      // remove previous current rendering id because if renderingId is set\n      // it's used to authenticate the request to the backend\n      // source: app/data/adapters/application.js:90:23\n      this.lianaSession.currentRenderingId = null;\n      const rendering = await this.store.queryRecord('rendering', {\n        projectName: project.name,\n        environmentName: project.defaultEnvironment.name,\n        teamName: team?.name,\n      });\n      if (!rendering) return null;\n      await rendering.loadEnvironment();\n\n      this.lianaSessionOidcService.currentRenderingId = rendering.id;\n      this.lianaSession.currentRenderingId = rendering.id;\n      rendering.team = team;\n\n      // ensure actions are visible when env has no role\n      this.currentUser.setIsUsingAnEnvironmentWithoutRoles(rendering.environment.areRolesDisabled);\n\n      await this.collectionsManager.registerNewCollections(rendering);\n\n      // set the permission, is useful for the smart action\n      this.currentUser.setCurrentUserRolePermissions(\n        this.currentUser.model.role?.permissions,\n        rendering.environment.id,\n      );\n\n      // enable capabilities, must be at the end\n      await this.capabilitiesService.fetchCapabilities(rendering.get('realCollections'));\n\n      if (!rendering.collections?.length) {\n        console.error('No collections are visible for this user.');\n      }\n\n      return rendering;\n    } catch (e) {\n      console.error(e);\n      await this.sessionHandler.handleResourceAccessError(e);\n      return null;\n    }\n  }\n}\n","import type CustomActionModel from 'client/data/models/custom-action';\n// FIXME\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type ActionCustomActionInternalBusinessService from 'client/features/action/services/internal-business/custom-action';\nimport type ActionFeatureState from 'client/features/action/state';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\n\nimport { defaultSelectedRecordsOptions } from 'client/features/action/services/internal-business/custom-action';\n\nexport default class BrowserExtensionActionInternalBusinessService extends Service {\n  @service('feature/action/internal-business/custom-action')\n  private customActionService: ActionCustomActionInternalBusinessService;\n\n  @service('feature/action/state')\n  private actionState: ActionFeatureState;\n\n  @service('feature/action/state') private actionFeatureState: ActionFeatureState;\n\n  async getActions(clientRecordModel: ClientRecordModel) {\n    if (!clientRecordModel) return undefined;\n\n    return this.customActionService.getEnabledCustomActions(\n      clientRecordModel.collection.customActionsOrderedForUser,\n      [clientRecordModel],\n    );\n  }\n\n  async executeAction(\n    action: CustomActionModel,\n    clientRecordModel: ClientRecordModel,\n  ): Promise<{\n    hasHtmlResponse: boolean;\n    success: boolean;\n  } | null> {\n    if (!clientRecordModel) return null;\n\n    if (action.isApprovalRequired) {\n      this.customActionService.actionFeatureService.addCurrentApprovalComment();\n    }\n\n    const result = await this.customActionService.triggerCustomAction(\n      action,\n      [clientRecordModel],\n      action.fieldsOrdered,\n      true,\n      defaultSelectedRecordsOptions,\n      false,\n    );\n    return { hasHtmlResponse: !!this.actionFeatureState.htmlResponse, success: result.success };\n  }\n\n  async loadActionForm(action: CustomActionModel, clientRecordModel: ClientRecordModel) {\n    if (!clientRecordModel) return;\n    this.customActionService.initActionRequest(action, [clientRecordModel]);\n    this.actionState.displayInSidePanel = false;\n\n    await this.customActionService.actionFeatureService.showSmartActionForm(\n      action,\n      [clientRecordModel],\n      {},\n    );\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type { TextToCollectionsInputs } from 'client/features/ai/services/internal-business/collections-retriever';\nimport type { TextToConditionTreeInputs } from 'client/features/ai/services/internal-business/condition-retriever';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { Operator } from 'client/utils/operators';\n\nimport Service from '@ember/service';\n\ninterface AiContextField {\n  name: string; // Name of the field\n  type: unknown; // Field type (e.g., \"string\", \"number\")\n  operators?: Operator[]; // List of supported operators for the field\n  isFilterable?: boolean; // Tells the AI not to filter on this field if isFilterable is false\n}\n\nexport interface PathToCollectionStep {\n  canFilter: boolean;\n  model: CollectionModel;\n  fieldName: string;\n}\n\nexport interface AiContext {\n  collectionEntryPoint: string; // The main collection where the filtering starts\n  collections: Record<\n    string,\n    {\n      pathsFromEntryPoint?: PathToCollectionStep[][];\n      actions: string[];\n      fields: AiContextField[]; // List of fields in the collection\n      relatedCollections: string[];\n    }\n  >;\n}\n\nexport default class BrowserExtensionAiContextBusinessService extends Service {\n  static buildAIContext(entryPoint: ClientRecordModel): AiContext {\n    if (!entryPoint) throw new Error('No entry point provided');\n\n    const aiContext: AiContext = {\n      collectionEntryPoint: entryPoint.collection.name,\n      collections: {},\n    };\n\n    this.addCollectionToAiContext(aiContext, entryPoint.collection);\n    aiContext.collections[entryPoint.collection.name].pathsFromEntryPoint.push([]);\n\n    this.addRelatedCollectionsToAiContext(entryPoint, aiContext, 5);\n\n    const rawCollectionData = {};\n    Object.entries(aiContext.collections).forEach(([collectionName, collectionData]) => {\n      rawCollectionData[collectionName] = {\n        actions: collectionData.actions,\n        fields: collectionData.fields,\n      };\n    });\n\n    return aiContext;\n  }\n\n  static buildTextToCollectionsInputs(context: AiContext, text: string): TextToCollectionsInputs {\n    const newContext: TextToCollectionsInputs = {\n      text,\n      collectionEntryPoint: context.collectionEntryPoint,\n      summary: { maxSizeInWord: 50 },\n      collections: {},\n    };\n\n    Object.entries(context.collections).forEach(([collectionName, collectionData]) => {\n      newContext.collections[collectionName] = {\n        actions: collectionData.actions,\n        fields: collectionData.fields.map((field) => field.name),\n        relations: collectionData.relatedCollections,\n      };\n    });\n\n    return newContext;\n  }\n\n  static buildTextToConditionTreeInputs(\n    collection: CollectionModel,\n    text: string,\n  ): TextToConditionTreeInputs {\n    return {\n      text,\n      collection: {\n        name: collection.name,\n        fields: collection.fields\n          .filter((f) => !f.isRelationship)\n          .map((field) => ({\n            name: field.fieldName,\n            operators: field.supportedOperators,\n            type: field.type,\n          })),\n      },\n    };\n  }\n\n  private static addRelatedCollectionsToAiContext(\n    entryPoint: ClientRecordModel,\n    aiContext: AiContext,\n    maxDepth: number,\n    currentPath: PathToCollectionStep[] = [],\n  ) {\n    const currentCollection = currentPath.lastObject?.model || entryPoint.collection;\n\n    // currentPath is already of max length => no need to continue\n    if (currentPath.length === maxDepth) return;\n\n    const relations = currentCollection.fields\n      .filter((field) => field.isRelationship && field.referenceModel)\n      .map((field) => ({\n        model: field.referenceModel,\n        fieldName: field.fieldName,\n        canFilter: !(field.relationship === 'HasOne' || field.relationship === 'BelongsTo'),\n      }));\n\n    aiContext.collections[currentCollection.name].relatedCollections = [\n      ...new Set(relations.map((relation) => relation.model.name)), // \"...new Set\" to remove duplicates\n    ];\n\n    relations.forEach((relation) => {\n      this.addCollectionToAiContext(aiContext, relation.model);\n\n      // stop path if the related collection is already in the current path\n      if (currentPath.some((step) => step.model.name === relation.model.name)) return;\n\n      const newPath: PathToCollectionStep[] = [...currentPath, relation];\n\n      const existingPaths = aiContext.collections[relation.model.name].pathsFromEntryPoint;\n\n      aiContext.collections[relation.model.name].pathsFromEntryPoint =\n        this.addPathToListAndEnsureAllPathsAreShort(existingPaths, newPath, 0);\n\n      this.addRelatedCollectionsToAiContext(entryPoint, aiContext, maxDepth, newPath);\n    });\n  }\n\n  /**\n   * Keep only paths with minimal length + tolerance\n   * @param paths List of existing paths\n   * @param newPaths Path to add\n   * @param tolerance default 0. Increase tolerance to increase the number of longer alternative paths\n   */\n  private static addPathToListAndEnsureAllPathsAreShort(\n    paths: PathToCollectionStep[][],\n    newPaths: PathToCollectionStep[],\n    tolerance = 0,\n  ) {\n    let copy = [...paths];\n\n    let minPathLength = 5; // 5 = max path length\n\n    // find the shortest path\n    paths.forEach((path) => {\n      if (path.length < minPathLength) minPathLength = path.length;\n    });\n\n    // if new path is short enough, add it\n    if (newPaths.length <= minPathLength + tolerance) {\n      copy.push(newPaths);\n\n      // if new path is a shorter than the shortest, remove longer ones\n      if (newPaths.length < minPathLength) {\n        copy = copy.filter((path) => path.length <= newPaths.length + tolerance);\n      }\n    }\n\n    return copy;\n  }\n\n  private static addCollectionToAiContext(aiContext: AiContext, collection: CollectionModel) {\n    if (aiContext.collections[collection.name]) return;\n\n    aiContext.collections[collection.name] = {\n      actions: collection.customActions.map((action) => action.name),\n      fields: collection.fields\n        .filter((field) => !field.isRelationship)\n        .map((field) => ({\n          name: field.fieldName,\n          type: field.type,\n          isFilterable: field.canFilter,\n          operators: field.supportedOperators,\n        })),\n      pathsFromEntryPoint: [],\n      relatedCollections: [],\n    };\n  }\n}\n","import type { TextToCollectionsOutputs } from 'client/features/ai/services/internal-business/collections-retriever';\nimport type {\n  AiContext,\n  PathToCollectionStep,\n} from 'client/features/browser-extension/services/internal-business/ai/ai-context';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nexport type SuggestedCollections = TextToCollectionsOutputs['collections'];\n\nexport type TemporaryResultsPerCollection = Record<\n  string,\n  {\n    parentRecord: ClientRecordModel;\n    treeStep: ExplorationTreeStep;\n  }[]\n>;\n\nexport type RelevantRecord = {\n  record?: ClientRecordModel;\n  path: string[];\n  fields: string[];\n  actions: string[];\n};\n\nexport type RelevantCollection = {\n  selectedRecord: ClientRecordModel;\n  step: PathToCollectionStep;\n  records: ClientRecordModel[];\n};\n\nexport type ExplorationTreeStep = {\n  previousStep: ExplorationTreeStep | ExplorationTreeFirstStep;\n  nextSteps: ExplorationTreeStep[];\n  fieldName: string;\n  pathFromEntryPoint: PathToCollectionStep[];\n  records: ClientRecordModel[] | Promise<ClientRecordModel[]>; // no nextStep if multiple records\n};\n\nexport type ExplorationTreeFirstStep = {\n  nextSteps: ExplorationTreeStep[];\n  records: [ClientRecordModel];\n  pathFromEntryPoint: PathToCollectionStep[]; // empty\n};\n\nexport default class AiLocalState {\n  selectedRecord: ClientRecordModel;\n  aiContext: AiContext;\n  tempResultsPerCollection: TemporaryResultsPerCollection = {};\n  requestedCollections: SuggestedCollections;\n  customerConversation: string;\n\n  constructor(\n    selectedRecord: ClientRecordModel,\n    customerConversation: string,\n    aiContext: AiContext,\n    requestedCollections: SuggestedCollections,\n  ) {\n    this.selectedRecord = selectedRecord;\n    this.requestedCollections = requestedCollections;\n    this.aiContext = aiContext;\n    this.customerConversation = customerConversation;\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type AiFeatureService from 'client/features/ai/services/feature';\nimport type { TextToCollectionsOutputs } from 'client/features/ai/services/internal-business/collections-retriever';\nimport type { TextToConditionTreeOutputs } from 'client/features/ai/services/internal-business/condition-retriever';\nimport type {\n  AiContext,\n  PathToCollectionStep,\n} from 'client/features/browser-extension/services/internal-business/ai/ai-context';\nimport type {\n  ExplorationTreeFirstStep,\n  ExplorationTreeStep,\n} from 'client/features/browser-extension/services/internal-business/ai/ai-local-state';\nimport type BrowserExtensionCrawlingInternalBusinessService from 'client/features/browser-extension/services/internal-business/crawling';\nimport type BrowserExtensionRelatedRecordsManagerInternalBusinessService from 'client/features/browser-extension/services/internal-business/related-records-manager';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { Operator } from 'client/utils/operators';\n\nimport Service, { service } from '@ember/service';\n\nimport BrowserExtensionAiContextBusinessService from 'client/features/browser-extension/services/internal-business/ai/ai-context';\nimport AiLocalState from 'client/features/browser-extension/services/internal-business/ai/ai-local-state';\nimport { simulateSearchWithContainsOperator } from 'client/features/browser-extension/services/utils/filter';\nimport { OPERATOR_CONTAINS, OPERATOR_ICONTAINS } from 'client/utils/operators';\n\nexport default class BrowserExtensionAIBusinessService extends Service {\n  @service('feature/browser-extension/state') private state: BrowserExtensionFeatureState;\n\n  @service('feature/browser-extension/internal-business/related-records-manager')\n  private relatedRecordsManager: BrowserExtensionRelatedRecordsManagerInternalBusinessService;\n\n  @service('feature/browser-extension/internal-business/crawling')\n  private crawlingService: BrowserExtensionCrawlingInternalBusinessService;\n\n  @service('feature/ai')\n  private aiService: AiFeatureService;\n\n  private aiLocalState: AiLocalState;\n\n  // usefully to debug\n  queryCount = 0;\n\n  /**\n   * Find the most relevant records from a user conversation.\n   * This method can trigger several (1-20) network calls.\n   *\n   * It relies on a local state, then IT CANNOT BE CALLED multiple times in parallel\n   */\n  async triggerIntelligentAssistant(record: ClientRecordModel) {\n    try {\n      this.state.aiState.resetState();\n      this.state.aiState.isLoading = true;\n\n      const crawledData = await this.crawlingService.triggerCrawl();\n      // when the crawl is not successful, we stop the process because messages are required\n      if (!crawledData?.messages?.values) return;\n\n      this.state.crawlingState.crawledData = crawledData;\n      const context = BrowserExtensionAiContextBusinessService.buildAIContext(record);\n\n      const responseCollections = await this.askAiCollections(\n        this.state.crawlingState.concatenatedMessages,\n        context,\n      );\n      if (!responseCollections) return;\n\n      const { collections, summary } = responseCollections;\n\n      this.state.aiState.summary = summary;\n      this.aiLocalState = new AiLocalState(\n        record,\n        this.state.crawlingState.concatenatedMessages,\n        context,\n        collections,\n      );\n\n      // To add data during the loading of the AI suggestions\n      // add in the template a condition to display the data when there is results in this.state.aiState.results\n      await this.retrieveRecords();\n    } catch (e) {\n      console.error(e);\n    } finally {\n      this.state.aiState.isLoading = false;\n    }\n  }\n\n  private async askAiCollections(\n    conversation: string,\n    context: AiContext,\n  ): Promise<TextToCollectionsOutputs> {\n    const body = BrowserExtensionAiContextBusinessService.buildTextToCollectionsInputs(\n      context,\n      conversation,\n    );\n\n    return this.aiService.invokeCollectionsRetriever(body, { aiName: 'assist' });\n  }\n\n  private async retrieveRecords(): Promise<void> {\n    this.state.aiState.resultRelevantRecords = [];\n    this.state.aiState.resultRelevantCollections = [];\n\n    const possiblePaths = this.getPathsToCollections();\n\n    const explorationTree: ExplorationTreeFirstStep = {\n      nextSteps: [],\n      records: [this.aiLocalState.selectedRecord],\n      pathFromEntryPoint: [],\n    };\n\n    // add selected record to results if AI asked for it\n    this.addRecordToResultsIfRelevant(this.aiLocalState.selectedRecord);\n\n    await this.exploreNextTreeStep(explorationTree, possiblePaths);\n  }\n\n  private getPathsToCollections(): PathToCollectionStep[][] {\n    const possiblePaths: PathToCollectionStep[][] = [];\n    const { requestedCollections, aiContext } = this.aiLocalState;\n\n    requestedCollections.forEach(({ collectionName }) => {\n      possiblePaths.pushObjects(aiContext.collections[collectionName].pathsFromEntryPoint);\n    });\n\n    return possiblePaths;\n  }\n\n  private async exploreNextTreeStep(\n    explorationTree: ExplorationTreeFirstStep | ExplorationTreeStep,\n    possiblePaths: PathToCollectionStep[][],\n  ) {\n    // filter paths to explore from this step\n    const currentPath = explorationTree.pathFromEntryPoint;\n    const indexOfNextStep = currentPath.length;\n\n    const foundRecords = await explorationTree.records;\n    if (foundRecords.length !== 1) return;\n\n    const remainingPaths = possiblePaths.filter((path) => {\n      if (path.length < indexOfNextStep) return false; // remove shorter paths\n      for (let index = 0; index < indexOfNextStep; index += 1) {\n        // remove paths that start differently\n        if (currentPath[index].fieldName !== path[index].fieldName) return false;\n      }\n      return true;\n    });\n\n    // get possible next steps\n    const possibleNextSteps: PathToCollectionStep[] = [];\n    remainingPaths.forEach((steps) => {\n      const possibleNextStep = steps[indexOfNextStep];\n      if (!possibleNextStep) return;\n\n      if (!possibleNextSteps.any((step) => step.fieldName === possibleNextStep.fieldName)) {\n        possibleNextSteps.push(possibleNextStep);\n      }\n    });\n\n    // build next tree steps\n    explorationTree.nextSteps = await Promise.all(\n      possibleNextSteps.map(async (step) => {\n        // wait for potential agent query to resolve\n\n        const nextStep = this.getOrFindRelatedRecords(foundRecords[0], explorationTree, step);\n\n        await this.exploreNextTreeStep(nextStep, remainingPaths);\n\n        return nextStep;\n      }),\n    );\n  }\n\n  private getOrFindRelatedRecords(\n    selectedRecord: ClientRecordModel,\n    explorationTree: ExplorationTreeStep | ExplorationTreeFirstStep,\n    step: PathToCollectionStep,\n  ): ExplorationTreeStep {\n    const { tempResultsPerCollection } = this.aiLocalState;\n\n    const savedResult = this.getTreeStepFromSavedRelatedRecords(\n      selectedRecord,\n      explorationTree,\n      step,\n    );\n    if (savedResult) return savedResult;\n\n    const currentPath = [...explorationTree.pathFromEntryPoint, step];\n\n    const getRecords = async () => {\n      const records = (await this.findRelatedRecords(selectedRecord, step)) ?? [];\n\n      // when there is only one record, we add it to the record results\n      if (records.length === 1) {\n        this.addRecordToResultsIfRelevant(records[0], currentPath);\n      } else if (records.length > 1) {\n        // when there are multiple records, we add the collection to the collection results\n        this.state.aiState.resultRelevantCollections = [\n          ...this.state.aiState.resultRelevantCollections,\n          { step, records, selectedRecord },\n        ];\n      }\n\n      return records;\n    };\n\n    const treeStep: ExplorationTreeStep = {\n      previousStep: explorationTree,\n      nextSteps: [],\n      fieldName: step.fieldName,\n      pathFromEntryPoint: currentPath,\n      // we don't wait for the records to be fetched to fetch in parallel\n      records: getRecords(),\n    };\n\n    // push treeStep in temp results before resolution not to query the same thing multiple times\n    tempResultsPerCollection[step.model.name].push({ parentRecord: selectedRecord, treeStep });\n\n    return treeStep;\n  }\n\n  /**\n   * Check if the related data requested by the step has already been queried\n   * and build a tree step from these records.\n   * @returns New tree step with saved records. Null if no saved record\n   */\n  private getTreeStepFromSavedRelatedRecords(\n    selectedRecord: ClientRecordModel,\n    explorationTree: ExplorationTreeStep | ExplorationTreeFirstStep,\n    step: PathToCollectionStep,\n  ): ExplorationTreeStep {\n    const newPath = [...explorationTree.pathFromEntryPoint, step];\n\n    const { tempResultsPerCollection } = this.aiLocalState;\n\n    // Create empty array for the collection in temp results\n    if (!tempResultsPerCollection[step.model.name]) tempResultsPerCollection[step.model.name] = [];\n\n    // Get already fetched results\n    const savedResult = tempResultsPerCollection[step.model.name].find(\n      (tempResults) =>\n        tempResults.parentRecord.id === selectedRecord.id\n        && tempResults.treeStep.fieldName === step.fieldName,\n    );\n    if (!savedResult) return null;\n\n    return {\n      previousStep: explorationTree,\n      nextSteps: [],\n      fieldName: step.fieldName,\n      pathFromEntryPoint: newPath,\n      records: savedResult.treeStep.records,\n    };\n  }\n\n  /**\n   * Query Agent and ask AI to filter if multiple records are found\n   * @returns Array of records. Empty array if an error occurs\n   */\n  private async findRelatedRecords(\n    selectedRecord: ClientRecordModel,\n    step: PathToCollectionStep,\n  ): Promise<ClientRecordModel[]> {\n    let records: ClientRecordModel[];\n    try {\n      this.queryCount += 1;\n      records = await this.relatedRecordsManager.findRelatedRecordsWithDisabledCount(\n        selectedRecord,\n        step.fieldName,\n      );\n    } catch (e) {\n      console.error(e);\n      return [];\n    }\n\n    // when there is one record or less, we don't need to ask AI\n    if (records.length <= 1) return records;\n\n    // when there are multiple records, we ask AI to filter them\n    try {\n      return await this.askAiToFilterCollection(selectedRecord, step.fieldName, records);\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (e) {\n      console.warn(\n        'error trying to get filtering condition from AI on collection',\n        records[0].collection.name,\n      );\n      return records;\n    }\n  }\n\n  private async askAiToFilterCollection(\n    selectedRecord: ClientRecordModel,\n    fieldName: string,\n    allRecords: ClientRecordModel[],\n  ): Promise<ClientRecordModel[]> {\n    this.queryCount += 2;\n    const conditionTree = await this.askAiConditionTree(\n      this.aiLocalState.customerConversation,\n      allRecords[0].collection,\n    );\n\n    console.debug('condition', conditionTree);\n    const processesConditionTree = this.processConditionTree(conditionTree, allRecords[0]);\n    console.debug('processed condition', processesConditionTree);\n\n    if (!processesConditionTree?.length) return allRecords;\n\n    const filteredRecords = await this.relatedRecordsManager.findRelatedRecordsWithDisabledCount(\n      selectedRecord,\n      fieldName,\n      processesConditionTree,\n    );\n\n    console.debug('filteredRecords ', filteredRecords);\n\n    if (filteredRecords.length === 1) return filteredRecords;\n    return allRecords;\n  }\n\n  private processConditionTree(\n    conditionTree: TextToConditionTreeOutputs,\n    record: ClientRecordModel,\n  ): TextToConditionTreeOutputs[] {\n    const field = record.collection.fields\n      .filter((f) => !f.isRelationship)\n      .find((f) => {\n        return f.fieldName === conditionTree.fieldName;\n      });\n\n    if (!field) return undefined;\n\n    let operator = field.supportedOperators.find((o) => {\n      return o.name === conditionTree.operator || o.displayName === conditionTree.operator;\n    });\n\n    // optimize when it's a string to be more flexible\n    if (field.type === 'String' && Boolean(conditionTree.value)) {\n      const isIContainsSupported = field.supportedOperators.find(\n        (o) => o.name === OPERATOR_ICONTAINS.name,\n      );\n      if (isIContainsSupported) {\n        operator = OPERATOR_ICONTAINS as Operator<unknown>;\n      } else {\n        const isContainsSupported = field.supportedOperators.find(\n          (o) => o.name === OPERATOR_CONTAINS.name,\n        );\n        if (isContainsSupported) {\n          return simulateSearchWithContainsOperator(conditionTree.value.toString(), [field]);\n        }\n      }\n    }\n\n    if (!operator) return undefined;\n\n    return [\n      {\n        ...conditionTree,\n        // operator MUST BE the displayName because the filter expects it\n        operator: operator.displayName,\n      },\n    ];\n  }\n\n  private addRecordToResultsIfRelevant(\n    newRecord: ClientRecordModel,\n    pathToRecord?: PathToCollectionStep[],\n  ) {\n    if (!newRecord) return;\n\n    const requestedCollection = this.aiLocalState.requestedCollections.find(\n      ({ collectionName }) => collectionName === newRecord.collection.name,\n    );\n    if (!requestedCollection) return;\n\n    const isRecordAlreadySaved = this.state.aiState.resultRelevantRecords.any(\n      ({ record }) =>\n        record.collection.name === newRecord.collection.name && record.id === newRecord.id,\n    );\n    if (isRecordAlreadySaved) return;\n\n    // make sure to be tracked by @tracked\n    this.state.aiState.resultRelevantRecords = [\n      ...this.state.aiState.resultRelevantRecords,\n      {\n        record: newRecord,\n        path: (pathToRecord ?? []).map(({ fieldName }) => fieldName),\n        fields: requestedCollection.relevantFields,\n        actions: requestedCollection.relevantActions,\n      },\n    ];\n  }\n\n  private async askAiConditionTree(\n    conversation: string,\n    collection: CollectionModel,\n  ): Promise<TextToConditionTreeOutputs> {\n    const body = BrowserExtensionAiContextBusinessService.buildTextToConditionTreeInputs(\n      collection,\n      conversation,\n    );\n\n    console.debug('ask for a condition for the collection ', collection.name);\n    return this.aiService.invokeConditionRetriever(body, { aiName: 'assist' });\n  }\n}\n","import type BrowserExtensionConfigurationModel from 'client/data/models/browser-extension-configuration';\nimport type BrowserExtensionConfigurationCollectionSearchSettingModel from 'client/data/models/browser-extension-configuration-collection-search-setting';\nimport type CollectionModel from 'client/data/models/collection';\nimport type BrowserExtensionFieldsInternalBusinessService from 'client/features/browser-extension/services/internal-business/fields';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport ForbiddenLoginResourceAccessError from 'client/data/adapters/errors/forbidden-login-resource-access-error';\nimport { RequesterIdentifierEnum } from 'client/data/models/browser-extension-configuration';\n\nexport default class BrowserExtensionConfigurationInternalBusinessService extends Service {\n  @service private store: StoreService;\n  @service('feature/browser-extension/state') private state: BrowserExtensionFeatureState;\n  @service private segmentTracker: SegmentTrackerService;\n  @service('feature/browser-extension/internal-business/fields')\n  private fieldsService: BrowserExtensionFieldsInternalBusinessService;\n\n  get isConfigurationValid() {\n    return Boolean(\n      this.state.extensionConfiguration?.searchSettings?.length > 0\n        && this.state.extensionConfiguration?.identifier,\n    );\n  }\n\n  async loadConfigurationInGlobalState(projectId: string) {\n    try {\n      const project = await this.store.findRecord('project', projectId);\n      this.state.extensionConfiguration = await project.browserExtensionConfiguration;\n    } catch (e) {\n      this.state.extensionConfiguration = undefined;\n      if (e instanceof ForbiddenLoginResourceAccessError) {\n        throw e;\n      }\n      console.warn('Error loading user mapping', e);\n    }\n  }\n\n  cleanSearchSettings(\n    searchSettings: BrowserExtensionConfigurationCollectionSearchSettingModel[],\n    collections: CollectionModel[],\n  ): BrowserExtensionConfigurationCollectionSearchSettingModel[] {\n    return searchSettings\n      .map((searchSetting) => {\n        const collection = collections.find((c) => c.name === searchSetting.collectionName);\n        // remove search setting if the collection is not available\n        if (!collection) return undefined;\n\n        const supportedFields = this.fieldsService.getFilterableFieldsInAssist(collection.fields);\n        const fieldNames = searchSetting.fieldNames.filter((fieldName) =>\n          supportedFields.any((field) => field.fieldName === fieldName),\n        );\n\n        searchSetting.fieldNames = fieldNames;\n        return searchSetting;\n      })\n      .filter(Boolean);\n  }\n\n  private deduplicate<T>(array: T[], key: keyof T) {\n    const seen: Record<string, boolean> = {};\n    return array.filter((item) => {\n      const k = item[key] as string;\n      if (k in seen && seen[k]) {\n        return false;\n      }\n      seen[k] = true;\n      return true;\n    });\n  }\n\n  async saveConfiguration(newConfiguration: BrowserExtensionConfigurationModel) {\n    if (\n      this.state.extensionConfiguration\n      && this.state.extensionConfiguration.project.id === newConfiguration.project?.id\n    ) {\n      this.segmentTracker.trackBrowserExtensionAssistUserMappingConfigUpdated(\n        this.getChangedProps(this.state.extensionConfiguration, newConfiguration),\n      );\n    } else {\n      this.state.extensionConfiguration = this.store.createRecord(\n        'browser-extension-configuration',\n        {\n          project: this.store.peekRecord('project', newConfiguration.project.id),\n        },\n      );\n    }\n\n    Object.keys(newConfiguration.toJSON()).forEach((key) => {\n      if (key !== 'searchSetting')\n        this.state.extensionConfiguration[key] =\n          newConfiguration[key as keyof BrowserExtensionConfigurationModel];\n    });\n\n    await this.state.extensionConfiguration.save();\n\n    // For some reason the save duplicates all the search settings\n    this.state.extensionConfiguration.searchSettings = this.deduplicate(\n      this.state.extensionConfiguration.searchSettings,\n      'collectionName',\n    );\n  }\n\n  private getChangedProps(\n    oldConfiguration: BrowserExtensionConfigurationModel,\n    newConfiguration: BrowserExtensionConfigurationModel,\n  ) {\n    const { identifier, autoSelect, enableAi, searchSettings, customIdentifierValue } =\n      newConfiguration;\n    return {\n      identifier: oldConfiguration.identifier !== identifier ? identifier : undefined,\n      customIdentifierValue:\n        oldConfiguration.customIdentifierValue !== customIdentifierValue\n        && identifier === RequesterIdentifierEnum.Custom\n          ? newConfiguration.customIdentifierValue\n          : undefined,\n      autoSelect: oldConfiguration.autoSelect !== autoSelect ? autoSelect : undefined,\n      enableAi: oldConfiguration.enableAi !== enableAi ? enableAi : undefined,\n      numberOfCollections:\n        oldConfiguration.searchSettings.length !== searchSettings.length\n          ? searchSettings.length\n          : undefined,\n    };\n  }\n}\n","import type { RequesterIdentifierEnum } from 'client/data/models/browser-extension-configuration';\n\nimport { EMAIL_REGEX } from 'client/utils/regex';\n\nexport type PossibleLocations = {\n  selector: string; // the root selector to search\n  nearestNeighborText?: string; // Used to find a text by its adjacent text on the page, under the root selector\n  nearestNeighborSelector?: string; // Same, but adjacent to a node matching the given selector\n}[];\n\nexport type ConfigForIdentifier = {\n  label: string;\n  shouldMatchRegex?: string; // check if the match matches the given regex. If not, discard it\n  possibleLocations: PossibleLocations | ((nearestNeighborText: string) => PossibleLocations);\n};\n\nexport enum SupportedSaasEnum {\n  Intercom = 'Intercom',\n  Zendesk = 'Zendesk',\n  Crisp = 'Crisp',\n}\n\nexport type CrawlingConfig = {\n  baseUrl: RegExp;\n  name: SupportedSaasEnum;\n  crawls: {\n    regexToMatchOnCurrentUrl: RegExp; // Regex to match on the current url to know if we can crawl\n    identifier: {\n      [key in RequesterIdentifierEnum]?: ConfigForIdentifier;\n    };\n    messages: { selector: string };\n  }[];\n}[];\n\nconst zendeskSelector = (child: string) =>\n  `#main_panes .workspace[style=''] ${child}, #main_panes .workspace:not([style]) ${child}`;\n\n// Intercom sometimes returns ███████ as first found text\nconst excludeIrrelevantIntercom = /[^█]/;\n\nconst crawlingConfig: CrawlingConfig = [\n  {\n    baseUrl: /^https:\\/\\/.*.zendesk.com\\/.*/,\n    name: SupportedSaasEnum.Zendesk,\n    crawls: [\n      {\n        regexToMatchOnCurrentUrl: /\\/tickets\\//,\n        messages: { selector: '[data-test-id=\"omni-log-comment-item\"]' },\n        identifier: {\n          Name: {\n            label: 'Name',\n            possibleLocations: [\n              {\n                selector: zendeskSelector('header > div > nav > span:nth-child(2)'),\n              },\n            ],\n          },\n          Email: {\n            label: 'Email',\n            shouldMatchRegex: EMAIL_REGEX.toString(),\n            possibleLocations: [\n              {\n                selector: zendeskSelector(\n                  '[data-track-id*=\"card-email-address-click\"] [title*=\"@\"]',\n                ),\n              },\n            ],\n          },\n          Organization: {\n            label: 'Organization',\n            possibleLocations: [\n              {\n                selector: zendeskSelector(\n                  '[data-track-id*=\"card-org-click\"] > *:nth-child(2) [Title]',\n                ),\n              },\n              {\n                selector: zendeskSelector(\n                  '[data-customercontext-id=\"userinfo.card\"] [href*=\"/organizations/\"]',\n                ),\n              },\n              {\n                selector: zendeskSelector('[data-customercontext-id=\"userinfo.card\"]'),\n                nearestNeighborText: 'Org.',\n              },\n            ],\n          },\n          Phone: {\n            label: 'Phone',\n            shouldMatchRegex: /\\d/.toString(),\n            possibleLocations: [\n              {\n                selector: zendeskSelector(\n                  '[data-track-id*=\"card-phone-number-click\"] > *:nth-child(2) [Title]',\n                ),\n              },\n              {\n                selector: zendeskSelector('[data-test-id=\"attribute-phone-display-link\"]'),\n              },\n              {\n                selector: zendeskSelector('[data-customercontext-id=\"userinfo.card\"]'),\n                nearestNeighborText: 'Phone',\n              },\n              {\n                selector: zendeskSelector('[data-customercontext-id=\"userinfo.card\"]'),\n                nearestNeighborText: 'Téléphone',\n              },\n            ],\n          },\n          Custom: {\n            label: 'Custom',\n            possibleLocations: (customIdentifierValue: string) => [\n              {\n                selector: zendeskSelector('[data-tracking-id=\"ticket-fields\"]'),\n                nearestNeighborText: customIdentifierValue,\n              },\n              {\n                selector: zendeskSelector('[data-tracking-id=\"ticket-fields-select\"]'),\n                nearestNeighborText: customIdentifierValue,\n              },\n              {\n                selector: zendeskSelector('[data-customercontext-id=\"userinfo.card\"]'),\n                nearestNeighborText: customIdentifierValue,\n              },\n            ],\n          },\n        },\n      },\n    ],\n  },\n  {\n    baseUrl: /^https:\\/\\/.*.intercom.com\\/.*/,\n    name: SupportedSaasEnum.Intercom,\n    crawls: [\n      {\n        regexToMatchOnCurrentUrl: /inbox/,\n        messages: { selector: '[data-intercom-target=\"conversation-stream-content-part\"]' },\n        identifier: {\n          Name: {\n            label: 'Name',\n            shouldMatchRegex: excludeIrrelevantIntercom.toString(),\n            possibleLocations: [\n              {\n                selector: `[data-intercom-target='ticket-header-user-and-company'] > div > div > div > a, [data-conversation-title]`,\n              },\n            ],\n          },\n          Email: {\n            label: 'Email',\n            shouldMatchRegex: EMAIL_REGEX.toString(),\n            possibleLocations: [\n              {\n                selector: '[data-intercom-target=\"user-details\"]',\n                nearestNeighborText: 'Email',\n              },\n            ],\n          },\n          Phone: {\n            label: 'Phone',\n            shouldMatchRegex: /\\d/.toString(),\n            possibleLocations: [\n              {\n                selector: '[data-intercom-target=\"user-details\"]',\n                nearestNeighborText: 'Phone',\n              },\n            ],\n          },\n          IntercomId: {\n            shouldMatchRegex: excludeIrrelevantIntercom.toString(),\n            label: 'Intercom user ID',\n            possibleLocations: [\n              {\n                selector: '[data-intercom-target=\"user-details\"]',\n                nearestNeighborText: 'User id',\n              },\n            ],\n          },\n          Organization: {\n            shouldMatchRegex: excludeIrrelevantIntercom.toString(),\n            label: 'Company',\n            possibleLocations: [\n              {\n                selector: '[data-intercom-target=\"user-details\"]',\n                nearestNeighborText: 'Company',\n              },\n            ],\n          },\n          Custom: {\n            shouldMatchRegex: excludeIrrelevantIntercom.toString(),\n            label: 'Custom',\n            possibleLocations: (customIdentifierValue: string) => [\n              {\n                selector: '[data-intercom-target-sidebar-conversation-details]',\n                nearestNeighborText: customIdentifierValue,\n              },\n              {\n                selector: '[data-intercom-target=\"user-details\"]',\n                nearestNeighborText: customIdentifierValue,\n              },\n            ],\n          },\n        },\n      },\n    ],\n  },\n  {\n    baseUrl: /^https:\\/\\/app.crisp.chat\\/.*/,\n    name: SupportedSaasEnum.Crisp,\n    crawls: [\n      {\n        regexToMatchOnCurrentUrl: /\\/inbox\\/.+/,\n        messages: { selector: '.c-conversation-box-content-message' },\n        identifier: {\n          Email: {\n            label: 'Email',\n            shouldMatchRegex: EMAIL_REGEX.toString(),\n            possibleLocations: [{ selector: '.c-conversation-profile__email' }],\n          },\n          Name: {\n            label: 'Name',\n            possibleLocations: [{ selector: '.c-conversation-profile__nickname' }],\n          },\n        },\n      },\n    ],\n  },\n];\nexport default crawlingConfig;\n","import type {\n  ConfigForIdentifier,\n  CrawlingConfig,\n  PossibleLocations,\n  SupportedSaasEnum,\n} from 'client/features/browser-extension/services/internal-business/crawling-config';\nimport type { ExtensionMessage } from 'client/features/browser-extension/services/internal-business/extension-message';\nimport type BrowserExtensionProjectSearchInternalBusinessService from 'client/features/browser-extension/services/internal-business/search';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type { CrawledData } from 'client/features/browser-extension/states/crawling-state';\n\nimport Service, { service } from '@ember/service';\n\nimport { RequesterIdentifierEnum } from 'client/data/models/browser-extension-configuration';\nimport crawlingConfig from 'client/features/browser-extension/services/internal-business/crawling-config';\nimport ExtensionMessageService from 'client/features/browser-extension/services/internal-business/extension-message';\nimport toPlainJSON from 'client/features/browser-extension/services/utils/to-plain-json';\n\nexport type IdentifierWithSass = {\n  label: string;\n  name: RequesterIdentifierEnum;\n  saas: SupportedSaasEnum;\n};\n\ntype DedicatedSaasCrawlConfig = {\n  identifier: ConfigForIdentifier;\n  messages: { selector: string };\n};\n\nexport default class BrowserExtensionCrawlingInternalBusinessService extends Service {\n  @service('feature/browser-extension/state') private state: BrowserExtensionFeatureState;\n  @service('feature/browser-extension/internal-business/search')\n  private searchService: BrowserExtensionProjectSearchInternalBusinessService;\n\n  private listener = this.onMessageFromExtension.bind(this);\n\n  initializeCrawling() {\n    // in case the init is called multiple times, we remove the listener first\n    this.removeListenerOnMessages();\n    // eslint-disable-next-line @typescript-eslint/no-misused-promises\n    ExtensionMessageService.attachListenerOnMessages(this.listener);\n  }\n\n  private removeListenerOnMessages() {\n    // eslint-disable-next-line @typescript-eslint/no-misused-promises\n    ExtensionMessageService.removeListenerOnMessages(this.listener);\n  }\n\n  willDestroy(): void {\n    this.removeListenerOnMessages();\n  }\n\n  focusSidePanel() {\n    ExtensionMessageService.push({ event: 'focusSidePanel' });\n  }\n\n  async triggerCrawl(): Promise<CrawledData | null> {\n    // retry each 200 ms 5 times because the extension might not be ready\n    for (let i = 0; i < 7; i += 1) {\n      // eslint-disable-next-line no-await-in-loop\n      const crawledData = await ExtensionMessageService.request<CrawledData>(\n        'triggerCrawl',\n        null,\n        500 * (i + 1),\n      );\n      if (crawledData) return crawledData;\n    }\n\n    return null;\n  }\n\n  async syncSaasTicketToAssist(): Promise<void> {\n    await this.ticketChanged(await this.triggerCrawl());\n  }\n\n  async requestUrlFromExtension(): Promise<string> {\n    return ExtensionMessageService.request<string>('currentUrl');\n  }\n\n  async getAvailableIdentifiers(): Promise<IdentifierWithSass[]> {\n    return (\n      this.getAvailableIdentifiersFromUrl(await this.requestUrlFromExtension())\n      || this.getAllAvailableIdentifiers()\n    );\n  }\n\n  private async isSupportedSaas() {\n    const configs = this.getAvailableIdentifiersFromUrl(await this.requestUrlFromExtension());\n    return configs && configs.length > 0;\n  }\n\n  private async onMessageFromExtension(messageEvent: MessageEvent<ExtensionMessage>) {\n    const message = messageEvent.data;\n\n    if (message.type === 'push') {\n      if (message.event === 'crawledDataWhenTicketChanged') {\n        await this.ticketChanged(message.data as CrawledData);\n      } else if (message.event === 'noTicket') {\n        // crawled data changes but the user is not using the right Saas\n        if (!(await this.isSupportedSaas())) return;\n        this.resetStateToStartDataReconciliation();\n      }\n    } else if (message.type === 'request') {\n      if (message.event === 'crawlingConfigForProject') {\n        ExtensionMessageService.respondToMessage(\n          message,\n          await this.getCrawlingConfigForProject(message.data as string),\n        );\n      } else if (message.event === 'supportedSaas') {\n        ExtensionMessageService.respondToMessage(message, this.getSupportedSaas());\n      }\n    }\n  }\n\n  private getConfigForUrl(url: string): CrawlingConfig[number] {\n    return crawlingConfig.find((config) => config.baseUrl.test(url));\n  }\n\n  private getCrawlFromUrl(url: string): CrawlingConfig[number]['crawls'][number] {\n    const configForUrl = this.getConfigForUrl(url);\n    if (!configForUrl) return null;\n    return configForUrl.crawls.find((c) => c.regexToMatchOnCurrentUrl.test(url));\n  }\n\n  private getAllAvailableIdentifiers() {\n    return crawlingConfig\n      .flatMap((config) =>\n        Object.keys(config.crawls[0].identifier).map((key) => ({ key, saas: config.name })),\n      )\n      .map((option) => ({\n        label: `${option.saas} - ${option.key}`,\n        saas: option.saas,\n        name: option.key as RequesterIdentifierEnum,\n      }));\n  }\n\n  private getAvailableIdentifiersFromUrl(url: string) {\n    const config = this.getConfigForUrl(url);\n    if (!config) return null;\n    return config.crawls\n      .map((crawl) => crawl.identifier)\n      .flatMap((identifier) => Object.entries(identifier))\n      .map((entry) => ({\n        label: entry[1].label,\n        saas: config.name,\n        name: entry[0] as RequesterIdentifierEnum,\n      }));\n  }\n\n  private getSupportedSaas() {\n    return toPlainJSON(crawlingConfig);\n  }\n\n  private async getCrawlingConfigForProject(url: string): Promise<DedicatedSaasCrawlConfig> {\n    if (!url) return null;\n    if (!this.state.extensionConfiguration) return null;\n    const crawl = this.getCrawlFromUrl(url);\n    if (!crawl) return null;\n\n    const { identifier, customIdentifierValue } = this.state.extensionConfiguration;\n    return {\n      identifier: {\n        ...crawl.identifier?.[identifier],\n        possibleLocations:\n          identifier === RequesterIdentifierEnum.Custom\n            ? (\n                crawl.identifier[identifier].possibleLocations as (\n                  nearestNeighborText: string,\n                ) => PossibleLocations\n              )(customIdentifierValue)\n            : crawl.identifier[identifier].possibleLocations,\n      },\n      messages: crawl.messages,\n    };\n  }\n\n  private async ticketChanged(crawledData: CrawledData) {\n    // crawled data changes but the user is not using the right Saas\n    if (!(await this.isSupportedSaas())) return;\n\n    if (!crawledData || (!crawledData.identifier?.value && !crawledData.identifier.errorMessage)) {\n      // when the crawled data is empty, or without an identifier, we fall back to the no ticket state\n      this.resetStateToStartDataReconciliation();\n    } else {\n      this.state.resetStateToStartDataReconciliation({ displaySearch: true });\n      this.state.crawlingState.crawledData = crawledData;\n      await this.searchService.searchNewPage(\n        this.state.crawlingState.crawledData?.identifier.value,\n      );\n    }\n  }\n\n  private resetStateToStartDataReconciliation() {\n    this.state.resetStateToStartDataReconciliation({ displaySearch: false });\n  }\n}\n","import { cancel, later } from '@ember/runloop';\nimport window from 'ember-window-mock';\n\nexport type BaseMessage = {\n  event: string;\n  requestId: string;\n  data?: unknown;\n};\n\nexport type ExtensionRequestMessage = BaseMessage & {\n  type: 'request';\n};\n\nexport type ExtensionResponseMessage = BaseMessage & {\n  type: 'response';\n};\n\nexport type ExtensionPushMessage = BaseMessage & {\n  type: 'push';\n};\n\nexport type ExtensionMessage =\n  | ExtensionRequestMessage\n  | ExtensionResponseMessage\n  | ExtensionPushMessage;\n\nexport default class BrowserExtensionExtensionMessageInternalBusinessService {\n  static attachListenerOnMessages(listener: (event: MessageEvent) => void) {\n    window.addEventListener('message', listener);\n  }\n\n  static removeListenerOnMessages(listener: (event: MessageEvent) => void) {\n    window.removeEventListener('message', listener);\n  }\n\n  static async request<ResultType>(\n    event: string,\n    data?: unknown,\n    waitInMs = 200,\n  ): Promise<ResultType | null> {\n    const requestId = this.randomRequestId();\n\n    return new Promise((resolve) => {\n      let listener: null | ((messageEvent: MessageEvent) => void) = null;\n\n      const timer = later(() => {\n        if (listener) window.removeEventListener('message', listener);\n        resolve(null);\n        console.error(\n          `Assist: Failed to receive a response after ${waitInMs} ms to message with id ${requestId}`,\n        );\n      }, waitInMs);\n\n      listener = (messageEvent: MessageEvent) => {\n        const extensionMessage = messageEvent.data as ExtensionMessage;\n\n        if (\n          extensionMessage\n          && extensionMessage.event === event\n          && extensionMessage.requestId === requestId\n          && extensionMessage.type === 'response'\n        ) {\n          cancel(timer);\n          if (listener) window.removeEventListener('message', listener);\n          resolve(extensionMessage.data as ResultType);\n        }\n      };\n      window.addEventListener('message', listener);\n\n      this.push({ data, event, requestId, type: 'request' });\n    });\n  }\n\n  static respondToMessage(message: ExtensionRequestMessage, data?: unknown) {\n    if (!message.requestId || !message.event) {\n      console.debug('Invalid message to respond to', message);\n      return;\n    }\n\n    this.push({\n      type: 'response',\n      event: message.event,\n      requestId: message.requestId,\n      data,\n    });\n  }\n\n  static push(message: Partial<ExtensionMessage>) {\n    if (message.requestId === undefined) message.requestId = this.randomRequestId();\n    if (message.type === undefined) message.type = 'push';\n\n    window.top.postMessage(message, '*');\n  }\n\n  private static randomRequestId() {\n    return Math.random().toString();\n  }\n}\n","import type FieldModel from 'client/data/models/field';\nimport type { Operator } from 'client/utils/operators';\n\nimport Service from '@ember/service';\n\nimport { OPERATOR_CONTAINS, OPERATOR_IS } from 'client/utils/operators';\n\nexport default class BrowserExtensionFieldsInternalBusinessService extends Service {\n  getFilterableFieldsInAssist(fields: FieldModel[]) {\n    if (!fields) return [];\n\n    return this.getFieldsSupportingIsOrContainsOperator(\n      fields.filter(\n        (field) => !field.isRelationship && (field.isString || field.isNumber || field.isUuid),\n      ),\n    );\n  }\n\n  getFieldsSupportingIsOperator(fields: FieldModel[]) {\n    return fields.filter((field) => this.isSupportedOperator(field, OPERATOR_IS));\n  }\n\n  getFieldsSupportingContainsOperator(fields: FieldModel[]) {\n    return fields.filter((field) => this.isSupportedOperator(field, OPERATOR_CONTAINS));\n  }\n\n  private getFieldsSupportingIsOrContainsOperator(fields: FieldModel[]) {\n    return fields.filter(\n      (field) =>\n        this.isSupportedOperator(field, OPERATOR_IS)\n        || this.isSupportedOperator(field, OPERATOR_CONTAINS),\n    );\n  }\n\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  private isSupportedOperator(fieldModel: FieldModel, operator: Operator<any>) {\n    return fieldModel.supportedOperators.some(\n      (supportedOperator) => supportedOperator.name === operator.name,\n    );\n  }\n}\n","import type BrowserExtensionConfigurationInternalBusinessService from 'client/features/browser-extension/services/internal-business/configuration';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type { ProjectSettings } from 'client/features/browser-extension/state';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nexport type MinimalTeam = { id: string; name: string };\n\nexport default class BrowserExtensionProjectSettingsInternalBusinessService extends Service {\n  @service private store: StoreService;\n  @service private currentUser: CurrentUserService;\n  @service private errorHandler: ErrorHandlerService;\n  @service('feature/browser-extension/state') private state: BrowserExtensionFeatureState;\n\n  @service('feature/browser-extension/internal-business/configuration')\n  private configurationService: BrowserExtensionConfigurationInternalBusinessService;\n\n  @service serverFetch: ServerFetchService;\n\n  async loadOrganizations() {\n    return this.store.findAll('organization');\n  }\n\n  async loadProjects(organizationId: string) {\n    const id = organizationId === 'personal-organization' ? null : organizationId;\n    return this.store.query('project', { organizationId: id });\n  }\n\n  async loadAccessibleTeams(projectId: string): Promise<MinimalTeam[]> {\n    try {\n      // it uses the serverFetch because we don't want to add an adapter to modify the teams.users behavior in the whole app\n      const response = await this.serverFetch.fetch(\n        `/api/users/${this.currentUser.model.id}/teams`,\n        {\n          method: 'GET',\n          headers: { 'forest-project-id': projectId },\n        },\n        true,\n      );\n\n      const body = (await response.json()) as {\n        data: { id: string; attributes: { name: string; is_blocked: boolean } }[];\n      };\n      return body.data\n        .filter((t) => !t.attributes.is_blocked)\n        .map((t) => ({ id: t.id, name: t.attributes.name }));\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Failed to load teams');\n      throw error;\n    }\n  }\n\n  async loadProject(projectId: string) {\n    return this.store.findRecord('project', projectId);\n  }\n\n  async saveProjectSettings(projectSettings: ProjectSettings) {\n    this.state.projectSettings = projectSettings;\n    await this.configurationService.loadConfigurationInGlobalState(projectSettings.projectId);\n  }\n\n  async loadCurrentUserForCurrentProject(\n    projectSettings: ProjectSettings = this.state.projectSettings,\n  ) {\n    if (!projectSettings?.projectId) return;\n\n    await this.store.queryRecord('user', {\n      id: this.currentUser.model.id,\n      include: 'role',\n      projectId: projectSettings.projectId,\n    });\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type FilterModel from 'client/data/models/filter';\nimport type FilterFragment from 'client/data/models/fragment-filter';\nimport type { TextToConditionTreeOutputs } from 'client/features/ai/services/internal-business/condition-retriever';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type RelatedRecordsManagerService from 'client/legacy/services/related-records-manager';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { RecordsContextError } from 'client/utils/liana-records/records-context';\n\nimport Service, { service } from '@ember/service';\n\nimport handleCountDeactivated from 'client/features/browser-extension/services/utils/handle-count-deactivated';\nimport RelatedRecordsContext from 'client/utils/liana-records/related-records-context';\n\nexport interface PageResult {\n  count: number;\n  records: ClientRecordModel[];\n}\n\nexport interface PageResultError {\n  error: RecordsContextError['type'];\n}\n\nexport default class BrowserExtensionRelatedRecordsManagerInternalBusinessService extends Service {\n  @service('feature/browser-extension/state') private state: BrowserExtensionFeatureState;\n\n  @service private relatedRecordsManager: RelatedRecordsManagerService;\n  @service private lianaFeatures: LianaFeaturesService;\n  @service private store: StoreService;\n\n  async getPage(\n    parentRecord: ClientRecordModel,\n    relatedField: FieldModel,\n    currentPage: number,\n  ): Promise<PageResult | PageResultError> {\n    const recordContext = this.buildRelatedRecordContext(parentRecord, relatedField, currentPage);\n    await this.relatedRecordsManager.getRecords.perform(recordContext);\n\n    if (recordContext.error) {\n      return { error: recordContext.error.type };\n    }\n\n    return {\n      count: handleCountDeactivated(recordContext),\n      records: recordContext.records,\n    };\n  }\n\n  // warning: This method will only return the results of the 1st page. Other pages are ignored\n  async findRelatedRecordsWithDisabledCount(\n    parentRecord: ClientRecordModel,\n    fieldName: string,\n    conditions?: TextToConditionTreeOutputs[],\n  ): Promise<ClientRecordModel[]> {\n    const field = parentRecord.collection.fields.find((f) => f.fieldName === fieldName);\n\n    if (!field) return [];\n\n    // TODO : not sure about other \"belongsTo\" types\n    if (field.relationshipType === 'belongsTo') {\n      await parentRecord?.reload();\n      const result = parentRecord.get(\n        field.attributeNameWithRelationships as keyof ClientRecordModel,\n      ) as ClientRecordModel;\n\n      return result ? [result] : [];\n    }\n\n    const filter = this.store.createRecord('filter', {\n      filteredCollection: field?.referenceModel,\n      type: 'or',\n      conditions: conditions ?? [],\n    });\n\n    const results = await this.filterRelatedRecordsWithDisabledCount(parentRecord, field, filter);\n\n    return results.records || [];\n  }\n\n  private async filterRelatedRecordsWithDisabledCount(\n    parentRecord: ClientRecordModel,\n    relatedField: FieldModel,\n    filter: FilterFragment | FilterModel,\n  ) {\n    const recordContext = this.buildRelatedRecordContext(parentRecord, relatedField, 1, filter);\n    recordContext.isCountEnabled = false;\n\n    await this.relatedRecordsManager.getRecords.perform(recordContext);\n\n    if (recordContext.error) return { error: recordContext.error.type };\n\n    return {\n      count: handleCountDeactivated(recordContext),\n      records: recordContext.records,\n    };\n  }\n\n  private buildRelatedRecordContext(\n    parentRecord: ClientRecordModel,\n    relatedField: FieldModel,\n    currentPage: number,\n    filter?: FilterFragment | FilterModel,\n  ) {\n    const relatedCollection = relatedField.referenceModel;\n    return new RelatedRecordsContext({\n      collection: relatedCollection,\n      field: relatedField,\n      parentRecord,\n      columns: this.getColumnsToDisplay(relatedCollection),\n      isGenericFiltersAvailable: this.lianaFeatures.isGenericFiltersAvailable,\n      sortingParameters: relatedCollection.defaultSortingField\n        ? [\n            {\n              fieldName: relatedCollection.defaultSortingField.fieldName,\n              order: relatedCollection.defaultSortingOrder,\n            },\n          ]\n        : undefined,\n      filter,\n      currentPage,\n    });\n  }\n\n  public getFirstFourColumnsToDisplay(collection: CollectionModel): { field: FieldModel }[] {\n    return collection.columnsVisibleOrdered.slice(0, 4);\n  }\n\n  public getSpecificColumnsToDisplay(collection: CollectionModel, fieldsToDisplay: string[] = []) {\n    return collection.columnsVisibleOrdered.filter((col) =>\n      fieldsToDisplay.includes(col.field.fieldName),\n    );\n  }\n\n  private getColumnsToDisplay(relatedCollection: CollectionModel) {\n    const firstFourColumnsToDisplay = this.getFirstFourColumnsToDisplay(relatedCollection);\n\n    const referenceFieldColumn =\n      relatedCollection.displayField\n      && relatedCollection.columns.find(\n        ({ field }) => field.fieldName === relatedCollection.displayField.fieldName,\n      );\n\n    const shouldQueryReferenceField =\n      referenceFieldColumn\n      && !firstFourColumnsToDisplay.find(\n        ({ field }) => field.fieldName === relatedCollection.displayField.fieldName,\n      );\n\n    if (shouldQueryReferenceField) {\n      // We also need to query the reference field\n      firstFourColumnsToDisplay.push(referenceFieldColumn);\n    }\n\n    return firstFourColumnsToDisplay;\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type FilterModel from 'client/data/models/filter';\nimport type BrowserExtensionFeatureService from 'client/features/browser-extension/services/feature';\nimport type BrowserExtensionFieldsInternalBusinessService from 'client/features/browser-extension/services/internal-business/fields';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type { CollectionSearchStates } from 'client/features/browser-extension/states/search-state';\nimport type CollectionBusinessService from 'client/legacy/services/business/collection';\nimport type RecordsManagerService from 'client/legacy/services/records-manager';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type RecordsContext from 'client/utils/liana-records/records-context';\n\nimport Service, { service } from '@ember/service';\n\nimport { simulateSearchWithContainsOperator } from 'client/features/browser-extension/services/utils/filter';\nimport handleCountDeactivated from 'client/features/browser-extension/services/utils/handle-count-deactivated';\nimport { OPERATOR_IS } from 'client/utils/operators';\nimport { isUuid } from 'client/utils/uuid-utils';\n\nexport default class BrowserExtensionSearchInternalBusinessService extends Service {\n  @service('feature/browser-extension/state') private state: BrowserExtensionFeatureState;\n  @service('feature/browser-extension')\n  private browserExtensionFeatureService: BrowserExtensionFeatureService;\n\n  @service private recordsManager: RecordsManagerService;\n  @service private store: StoreService;\n  @service('business/collection') private collectionService: CollectionBusinessService;\n  @service('feature/browser-extension/internal-business/fields')\n  private fieldsService: BrowserExtensionFieldsInternalBusinessService;\n\n  get collections(): CollectionModel[] {\n    if (!this.state.extensionConfiguration) return undefined;\n\n    return this.store\n      .peekAll('collection')\n      ?.filter((collection) =>\n        this.state.extensionConfiguration.searchSettings.any(\n          ({ collectionName }) => collectionName === collection.name,\n        ),\n      );\n  }\n\n  async searchNewPage(searchValue: string) {\n    if (!searchValue) return;\n    this.state.searchState.resetState({ displaySearch: true });\n\n    this.state.searchState.value = searchValue;\n\n    try {\n      await this.searchAllCollections(searchValue);\n    } catch (e) {\n      const error = e as Error;\n      console.error('An error occurred while searching. ', error.message);\n      // clear the search states\n      // we can improve this state management but for the POC it's fine\n      this.state.searchState.searchStateByCollection = {};\n    }\n  }\n\n  async searchNextPage(collection: CollectionModel) {\n    await this.search(\n      this.state.searchState.value,\n      this.state.searchState.searchStateByCollection[collection.name].currentPage + 1,\n      collection,\n    );\n  }\n\n  private updateCollectionSearchSates(results: CollectionSearchStates) {\n    const resultsState = { ...this.state.searchState.searchStateByCollection };\n    this.state.extensionConfiguration.searchSettings.forEach(({ collectionName }) => {\n      if (!resultsState[collectionName]) {\n        resultsState[collectionName] = { loading: false, count: 0, records: [], currentPage: 1 };\n      }\n      if (!results[collectionName]) return;\n\n      resultsState[collectionName] = {\n        loading: results[collectionName].loading,\n        count: results[collectionName].count,\n        currentPage: results[collectionName].currentPage,\n        records: resultsState[collectionName].records.concat(results[collectionName].records),\n      };\n    });\n\n    this.state.searchState.searchStateByCollection = resultsState;\n  }\n\n  private async autoSelectIfRequired() {\n    // https://app.clickup.com/t/86c18vare\n    // \"Auto-select\" setting shouldn't auto-select when typing in the search input\n\n    if (\n      !this.state.isUserTyping\n      && this.state.extensionConfiguration.autoSelect\n      && this.autoSelectContext.totalCount === 1\n    ) {\n      await this.browserExtensionFeatureService.selectRecord(this.autoSelectContext.record);\n    }\n  }\n\n  private async searchAllCollections(searchValue: string) {\n    await Promise.all(\n      this.collections.map(async (collection) => this.search(searchValue, 1, collection)),\n    );\n    await this.autoSelectIfRequired();\n  }\n\n  private async search(searchValue: string, currentPage: number, collection: CollectionModel) {\n    let recordContext: RecordsContext;\n    if (!searchValue) {\n      this.updateCollectionSearchSates({\n        [collection.name]: { count: 0, loading: false, currentPage, records: [] },\n      });\n      return;\n    }\n\n    if (currentPage === 1) {\n      this.updateCollectionSearchSates({\n        [collection.name]: { count: 0, loading: true, currentPage, records: [] },\n      });\n    }\n\n    if (this.state.extensionConfiguration.getFieldNames(collection.name)?.length > 0) {\n      recordContext = this.buildRecordContextToSimulateSearch(searchValue, currentPage, collection);\n    } else {\n      recordContext = this.buildRecordContextToSearch(searchValue, currentPage, collection);\n    }\n\n    await this.recordsManager.getRecords.perform(recordContext);\n\n    if (searchValue === this.state.searchState.value) {\n      this.updateCollectionSearchSates({\n        [collection.name]: {\n          loading: false,\n          count: handleCountDeactivated(recordContext),\n          currentPage,\n          records: recordContext.records.toArray(),\n        },\n      });\n    }\n  }\n\n  private buildRecordContextToSimulateSearch(\n    searchValue: string,\n    currentPage: number,\n    collection: CollectionModel,\n  ) {\n    const values = searchValue.trim().split(' ');\n    const fieldNames = this.state.extensionConfiguration.getFieldNames(collection.name);\n    const availableFields = this.fieldsService.getFilterableFieldsInAssist(\n      collection.filterableFields.filter((field) => fieldNames.includes(field.fieldName)),\n    );\n    // we prefer to use Contains operator for fields that support it because it's more flexible\n    const fieldsSupportingContains =\n      this.fieldsService.getFieldsSupportingContainsOperator(availableFields);\n\n    const fieldsSupportingIs: FieldModel[] = this.fieldsService\n      .getFieldsSupportingIsOperator(availableFields)\n      // remove fields that support Contains operator\n      .filter((field) => !fieldsSupportingContains.find((f) => f.fieldName === field.fieldName));\n\n    const filter = {\n      filteredCollection: collection,\n      type: 'and',\n      filters: values.map((value) => {\n        return {\n          type: 'or',\n          conditions: [\n            ...fieldsSupportingIs\n              .map((f) => {\n                // if the field is a number and the value is not a number, we don't want to generate a filter\n                if (f.isNumber && isNaN(parseInt(value, 10))) return null;\n                // if the field is a uuid and the value is not a uuid, we don't want to generate a filter\n                if (f.isUuid && !isUuid(value)) return null;\n\n                return {\n                  fieldName: f.fieldName,\n                  operator: OPERATOR_IS.displayName,\n                  value,\n                };\n              })\n              .filter(Boolean),\n            ...simulateSearchWithContainsOperator(value, fieldsSupportingContains),\n          ],\n        };\n      }),\n    };\n\n    return this.buildRecordContextForFilter(\n      this.store.createRecord('filter', filter),\n      currentPage,\n      collection,\n    );\n  }\n\n  private buildRecordContextToSearch(\n    value: string,\n    currentPage: number,\n    collection: CollectionModel,\n  ) {\n    return this.collectionService.createRecordState({\n      search: value,\n      columns: this.getFieldColumns(collection),\n      modelToFetch: collection,\n      currentPage,\n      recordsPerPage: this.recordsPerPage,\n    });\n  }\n\n  private buildRecordContextForFilter(\n    filter: FilterModel,\n    currentPage: number,\n    collection: CollectionModel,\n  ) {\n    return this.collectionService.createRecordState({\n      columns: this.getFieldColumns(collection),\n      modelToFetch: collection,\n      filter,\n      currentPage,\n      recordsPerPage: this.recordsPerPage,\n    });\n  }\n\n  private getFieldColumns(collection: CollectionModel): { field: FieldModel }[] {\n    const fieldNames = this.state.extensionConfiguration.getFieldNames(collection.name);\n    const fields = collection.fields\n      .filter((field) => (fieldNames || []).includes(field.fieldName))\n      .map((field) => ({ field }));\n\n    if (\n      collection.displayField\n      && !fields.some((field) => field.field.fieldName === collection.displayField?.fieldName)\n    ) {\n      fields.push({ field: collection.displayField });\n    }\n\n    return fields;\n  }\n\n  private get autoSelectContext(): { totalCount: number; record: ClientRecordModel } {\n    let record: ClientRecordModel;\n    const count = Object.values(this.state.searchState.searchStateByCollection).reduce(\n      (previousValue, currentValue) => {\n        if (currentValue.count === 1) record = currentValue.records.firstObject;\n        return previousValue + currentValue.count;\n      },\n      0,\n    );\n    return { totalCount: count, record };\n  }\n\n  private get recordsPerPage() {\n    return this.state.extensionConfiguration?.hasOnlyOneSearchSetting ? 10 : 3;\n  }\n}\n","import type { ProjectSettings } from 'client/features/browser-extension/state';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\n\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nconst EXTENSION_SETTINGS_KEY = 'responsive.browser-extension';\n\nexport default class BrowserExtensionSettingsStorageInternalBusinessService extends Service {\n  @service private session: ForestSessionService;\n  @service private localStorage: LocalStorageService;\n\n  @tracked private _projectSettings: ProjectSettings | null = null;\n\n  private get extensionSettingsKey() {\n    return this.session.isConnectedWithSso()\n      ? `${EXTENSION_SETTINGS_KEY}-${this.session.currentOrganizationId}`\n      : EXTENSION_SETTINGS_KEY;\n  }\n\n  get localContext(): ProjectSettings {\n    if (!this.session.isAuthenticated) return undefined;\n\n    return (\n      this._projectSettings\n      ?? (JSON.parse(\n        this.localStorage.getItem(this.extensionSettingsKey) || '{}',\n      ) as ProjectSettings)\n    );\n  }\n\n  set localContext(context: ProjectSettings) {\n    this.localStorage.setItem(this.extensionSettingsKey, JSON.stringify(context));\n    // NOTICE: Allows to retrieve user mapping after saving project settings\n    this._projectSettings = context;\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionConfigurationInternalBusinessService from 'client/features/browser-extension/services/internal-business/configuration';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\n\nimport Service, { service } from '@ember/service';\n\nexport default class BrowserExtensionAuthenticationRoutingService extends Service {\n  @service private session: ForestSessionService;\n  @service private currentUser: CurrentUserService;\n  @service private router: RouterService;\n\n  @service('feature/browser-extension/state')\n  private state: BrowserExtensionFeatureState;\n\n  @service('feature/browser-extension/internal-business/configuration')\n  private configurationService: BrowserExtensionConfigurationInternalBusinessService;\n\n  async handleTransition(transition: Transition) {\n    if (!this.session.isAuthenticated) return;\n\n    if (this.state.isReadyToUseAssist) {\n      await this.transitionTo('main', transition);\n    } else if (!this.state.hasProjectSettings) {\n      await this.transitionTo('settings', transition);\n    } else if (this.state.hasProjectSettings && !this.configurationService.isConfigurationValid) {\n      if (this.currentUser.isAdmin) {\n        await this.transitionTo('settings', transition);\n      } else {\n        await this.transitionTo('onboarding', transition);\n      }\n    }\n  }\n\n  private async transitionTo(name: string, transition: Transition) {\n    const tName = `responsive.browser-extension.${name}`;\n    if (transition.to.name !== tName) await this.router.transitionTo(tName);\n  }\n}\n","import type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type { View } from 'client/features/browser-extension/states/router-view-state';\n\nimport Service, { service } from '@ember/service';\n\nexport default class BrowserExtensionRouterView extends Service {\n  @service('feature/browser-extension/state') private state: BrowserExtensionFeatureState;\n\n  addView(view: View) {\n    // a trick to unfocus/unselect input field like a dropdown\n    document.dispatchEvent(new MouseEvent('click'));\n    // replace all dots with slashes. This behavior is used to copy the syntax of the Ember router to have the same behavior.\n    const viewCopy: View = {\n      ...view,\n      name: view.name?.replace(/\\./g, '/'),\n      sidePanel: view.sidePanel ?? false,\n    };\n    this.state.routerViewState.views = [...(this.state.routerViewState.views ?? []), viewCopy];\n  }\n\n  previousView() {\n    this.state.routerViewState.views = this.state.routerViewState.views.slice(0, -1);\n  }\n}\n","/* eslint-disable forest-custom/dependency-rules */\nimport type BrowserExtensionProjectCrawlingInternalBusinessService from 'client/features/browser-extension/services/internal-business/crawling';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\n\nimport Service, { service } from '@ember/service';\n\nexport default class BrowserExtensionSearchInternalService extends Service {\n  @service('feature/browser-extension/state') private state: BrowserExtensionFeatureState;\n  @service('feature/browser-extension/internal-business/crawling')\n  private readonly crawlingService: BrowserExtensionProjectCrawlingInternalBusinessService;\n\n  get genericCollectionName() {\n    return this.state.extensionConfiguration?.hasOnlyOneSearchSetting\n      ? this.state\n          .getCollection(\n            this.state.extensionConfiguration.searchSettings.firstObject.collectionName,\n          )\n          .singularizedDisplayName.toLowerCase()\n      : 'record';\n  }\n\n  async triggerCrawling() {\n    await this.crawlingService.syncSaasTicketToAssist();\n  }\n}\n","import type ArrayProxy from '@ember/array/proxy';\nimport type ProjectModel from 'client/data/models/project';\n// FIXME\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionProjectSettingsInternalBusinessService from 'client/features/browser-extension/services/internal-business/project-settings';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LogoutMessageService from 'client/legacy/services/logout-message';\n\nimport Service, { service } from '@ember/service';\n\nimport ForbiddenLoginResourceAccessError from 'client/data/adapters/errors/forbidden-login-resource-access-error';\n\nexport default class BrowserExtensionSessionHandlerInternalService extends Service {\n  @service private readonly session: ForestSessionService;\n  @service private readonly lianaSession: LianaSessionService;\n  @service private readonly logoutMessage: LogoutMessageService;\n\n  @service('feature/browser-extension/internal-business/project-settings')\n  private projectSettings: BrowserExtensionProjectSettingsInternalBusinessService;\n\n  async loadProjects(organizationId: string) {\n    let projects: ArrayProxy<ProjectModel>;\n    try {\n      projects = await this.projectSettings.loadProjects(organizationId);\n    } catch (e) {\n      await this.handleResourceAccessError(e);\n    }\n    return projects;\n  }\n\n  async disconnectFromExtension() {\n    this.lianaSession.invalidateAll();\n    await this.session.invalidate({ saveCurrentUrlForLogin: false });\n  }\n\n  displaySsoLoginSuggestion() {\n    // displaying error for 7sec as it could take time to focus back on the extension\n    this.logoutMessage.displayLastLogoutMessage(7_000);\n  }\n\n  async handleResourceAccessError(error: unknown) {\n    if (error instanceof ForbiddenLoginResourceAccessError) {\n      const { organizationName, resourceRequiresSso } = error.meta;\n\n      if (organizationName && resourceRequiresSso) {\n        this.logoutMessage.saveLogoutErrorMessage(\n          `You have been disconnected: you need to login via SSO to \"${organizationName}\"`,\n        );\n      }\n\n      if (!resourceRequiresSso) {\n        this.logoutMessage.saveLogoutErrorMessage(\n          'You have been disconnected: you need to login without SSO',\n        );\n      }\n\n      await this.disconnectFromExtension();\n    }\n  }\n}\n","import type FieldModel from 'client/data/models/field';\n\nimport { OPERATOR_CONTAINS } from 'client/utils/operators';\n\n// eslint-disable-next-line import/prefer-default-export\nexport function simulateSearchWithContainsOperator(\n  value: string,\n  fieldsSupportingContains: FieldModel[],\n) {\n  return [\n    ...fieldsSupportingContains.map((f) => ({\n      fieldName: f.fieldName,\n      operator: OPERATOR_CONTAINS.displayName,\n      value,\n    })),\n    // to lower case\n    ...fieldsSupportingContains.map((f) => ({\n      fieldName: f.fieldName,\n      operator: OPERATOR_CONTAINS.displayName,\n      value: value.toLowerCase(),\n    })),\n    // to upper case\n    ...fieldsSupportingContains.map((f) => ({\n      fieldName: f.fieldName,\n      operator: OPERATOR_CONTAINS.displayName,\n      value: value.toUpperCase(),\n    })),\n    // capital case first letter\n    ...fieldsSupportingContains.map((f) => ({\n      fieldName: f.fieldName,\n      operator: OPERATOR_CONTAINS.displayName,\n      value: value.charAt(0).toUpperCase() + value.slice(1).toLowerCase(),\n    })),\n  ];\n}\n","import type RecordsContext from 'client/utils/liana-records/records-context';\n\nexport default function handleCountDeactivated(recordsContext: RecordsContext) {\n  // Handle CountDeactivated - Tricky thing to allow to fetch another page\n  const recordsPerPage = recordsContext.recordsPerPageOrDefault;\n  const countDeactivated =\n    recordsContext.records.length === recordsPerPage\n      ? (recordsContext.currentPage - 1) * recordsPerPage + recordsContext.records.length + 1\n      : (recordsContext.currentPage - 1) * recordsPerPage + recordsContext.records.length;\n  return recordsContext.recordsCount ?? countDeactivated;\n}\n","/**\n * recursively converts an object to a window message compatible object (plain JSON)\n * @param source\n * @param clone\n * @returns\n */\n\nexport default function toPlainJSON(source: unknown) {\n  const str = JSON.stringify(source, (key, value: unknown) => {\n    if (value instanceof RegExp) {\n      return value.toString();\n    }\n    return value;\n  });\n  return JSON.parse(str) as unknown;\n}\n","/* eslint-disable forest-custom/dependency-rules */\n/* eslint-disable no-restricted-globals */\nimport type BrowserExtensionConfigurationModel from 'client/data/models/browser-extension-configuration';\nimport type RenderingModel from 'client/data/models/rendering';\nimport type BrowserExtensionConfigurationInternalBusinessService from 'client/features/browser-extension/services/internal-business/configuration';\nimport type BrowserExtensionSettingsStorageService from 'client/features/browser-extension/services/internal-business/settings-storage';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport BrowserExtensionAIState from 'client/features/browser-extension/states/ai-state';\nimport SearchBrowserExtensionCrawlingState from 'client/features/browser-extension/states/crawling-state';\nimport BrowserExtensionRouterViewState from 'client/features/browser-extension/states/router-view-state';\nimport BrowserExtensionSearchState from 'client/features/browser-extension/states/search-state';\nimport BrowserExtensionSettingsState from 'client/features/browser-extension/states/settings-state';\nimport { uuidv4 } from 'client/utils/uuid-utils';\n\nexport type ProjectSettings = {\n  organizationId: string | 'personal-organization';\n  projectId: string;\n  teamId: string;\n};\n\nexport default class BrowserExtensionFeatureState extends Service {\n  @service private store: StoreService;\n  @service('feature/browser-extension/internal-business/settings-storage')\n  private settingsStorage: BrowserExtensionSettingsStorageService;\n\n  @service('feature/browser-extension/internal-business/configuration')\n  private configurationService: BrowserExtensionConfigurationInternalBusinessService;\n\n  @tracked extensionConfiguration: BrowserExtensionConfigurationModel | undefined;\n  @tracked isAgentReachable = false;\n\n  @tracked isDetailsViewLoading = false;\n\n  // -----------------\n  // State used by the search modal\n  // -----------------\n  @tracked searchState = new BrowserExtensionSearchState();\n\n  // -----------------\n  // State used by the views\n  // -----------------\n  @tracked routerViewState = new BrowserExtensionRouterViewState();\n\n  // -----------------\n  // State used by the settings\n  // -----------------\n  @tracked settingsState = new BrowserExtensionSettingsState();\n\n  // -----------------\n  // State used for the crawling\n  // -----------------\n  @tracked crawlingState = new SearchBrowserExtensionCrawlingState();\n\n  // -----------------\n  // State used for the AI suggestions\n  // -----------------\n  @tracked aiState = new BrowserExtensionAIState();\n\n  // -----------------\n  // The rendering of the default environment\n  // ----------------\n  @tracked currentRendering: RenderingModel | null = null;\n\n  getCollection(collectionName: string) {\n    if (!this.isReadyToUseAssist) return undefined;\n    return this.store.peekAll('collection')?.findBy('name', collectionName);\n  }\n\n  get projectSettings(): ProjectSettings | undefined {\n    return this.settingsStorage.localContext;\n  }\n\n  set projectSettings(value: ProjectSettings | undefined) {\n    const { projectId, teamId, organizationId } = value || {};\n    this.settingsStorage.localContext = { projectId, teamId, organizationId };\n  }\n\n  get isUsedFromBrowserExtension() {\n    return window.sessionStorage.getItem(this.getId()) === 'true';\n  }\n\n  set isUsedFromBrowserExtension(value) {\n    window.sessionStorage.setItem(this.getId(), value.toString());\n  }\n\n  get hasProjectSettings() {\n    return (\n      this.projectSettings?.organizationId !== undefined\n      && this.projectSettings?.projectId !== undefined\n      && this.projectSettings?.teamId !== undefined\n    );\n  }\n\n  get isUserTyping() {\n    return Boolean(\n      this.searchState.displaySearch\n        && this.searchState.value\n        && this.searchState.value !== this.crawlingState.crawledData?.identifier?.value,\n    );\n  }\n\n  get isReadyToUseAssist() {\n    return this.hasProjectSettings && this.configurationService.isConfigurationValid;\n  }\n\n  resetStateToStartDataReconciliation({ displaySearch } = { displaySearch: false }) {\n    this.routerViewState.resetState();\n    this.crawlingState.resetState();\n    this.searchState.resetState({ displaySearch });\n  }\n\n  private getId() {\n    if (window.name === '') window.name = uuidv4();\n    return `${window.name}-isUsedFromBrowserExtension`;\n  }\n}\n","import type {\n  RelevantCollection,\n  RelevantRecord,\n} from 'client/features/browser-extension/services/internal-business/ai/ai-local-state';\n\nimport { tracked } from '@glimmer/tracking';\n\nexport default class BrowserExtensionAIState {\n  @tracked isLoading = false;\n  @tracked resultRelevantRecords: RelevantRecord[] = [];\n  @tracked resultRelevantCollections: RelevantCollection[] = [];\n  @tracked summary: string = undefined;\n\n  resetState() {\n    this.isLoading = false;\n    this.resultRelevantRecords = [];\n    this.resultRelevantCollections = [];\n    this.summary = undefined;\n  }\n}\n","import { tracked } from '@glimmer/tracking';\n\nexport type CrawledData = {\n  identifier: {\n    value: string | null;\n    errorMessage: string | null;\n  };\n  messages: {\n    values: string[] | null;\n  };\n};\n\nexport default class SearchBrowserExtensionCrawlingState {\n  @tracked crawledData: CrawledData | null = null;\n\n  get concatenatedMessages() {\n    if (!this.crawledData?.messages?.values) return null;\n\n    return this.crawledData.messages.values.join('\\n');\n  }\n\n  resetState() {\n    this.crawledData = null;\n  }\n}\n","import { tracked } from '@glimmer/tracking';\n\nexport type View<PropertiesType = unknown> = {\n  // the component name\n  name: string;\n\n  // the properties to pass to the component\n  properties?: PropertiesType;\n\n  // id of the current collection, to generate the link to Forest Admin\n  collectionId?: string;\n\n  // display the view in the side panel\n  sidePanel?: boolean;\n};\n\nexport default class BrowserExtensionRouterViewState {\n  @tracked views: View[] = [];\n\n  resetState() {\n    this.views = [];\n  }\n}\n","import type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { tracked } from '@glimmer/tracking';\n\nexport interface CollectionSearchState {\n  loading: boolean;\n  count: number;\n  currentPage: number;\n  records: ClientRecordModel[];\n}\n\nexport type CollectionSearchStates = Record<string, CollectionSearchState>;\n\nexport default class BrowserExtensionSearchState {\n  @tracked displaySearch = false;\n  @tracked value = '';\n  @tracked searchStateByCollection: CollectionSearchStates = {};\n\n  get isLoading() {\n    if (!this.searchStateByCollection) return false;\n    if (!this.value) return false;\n    return Object.values(this.searchStateByCollection).some((result) => result.loading);\n  }\n\n  resetState(options?: { displaySearch: boolean }) {\n    this.searchStateByCollection = {};\n    this.value = '';\n    this.displaySearch = options?.displaySearch ?? false;\n  }\n}\n","import { tracked } from '@glimmer/tracking';\n\nexport default class BrowserExtensionSettingsState {\n  @tracked isProjectSettingsSaved = false;\n}\n","import type Chart from 'chart.js';\nimport type {\n  ChartColor,\n  ChartData,\n  ChartDataSets,\n  ChartXAxe,\n  ChartYAxe,\n  Scriptable,\n  TimeUnit,\n} from 'chart.js';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\nimport _ from 'lodash';\n\nimport validateArguments from 'client/decorators/validate';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport { getColorFromTheme } from 'client/utils/color-utils';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface LineChartArgs {\n  datasets?: Pick<ChartDataSets, 'data' | 'label'>[];\n  labels?: ChartData['labels'];\n  timeUnit?: TimeUnit;\n  chartOptions?: Chart.ChartOptions;\n}\n\n@validateArguments\nexport default class ChartLineChartComponent extends Component<LineChartArgs> {\n  static propTypes = {\n    labels: PropTypes.arrayOf(PropTypes.instanceOf(Date)),\n    datasets: PropTypes.arrayOf(\n      PropTypes.shape({\n        data: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]))\n          .isRequired,\n        label: PropTypes.string,\n      }),\n    ),\n    timeUnit: PropTypes.oneOf([\n      'millisecond',\n      'second',\n      'minute',\n      'hour',\n      'day',\n      'week',\n      'month',\n      'quarter',\n      'year',\n    ]),\n    chartOptions: PropTypes.object,\n  };\n\n  @service lianaSession: LianaSessionService;\n  @service eventBus: LianaSessionService;\n\n  @tracked chart: Chart;\n\n  primaryColor: string;\n  context: CanvasRenderingContext2D;\n\n  constructor(owner: unknown, args: LineChartArgs) {\n    super(owner, args);\n    this.eventBus.on(\n      EventBusEventsEnum.UserPreferenceManagerThemeChanged,\n      this.handleThemeSwitched,\n    );\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.eventBus.off(\n      EventBusEventsEnum.UserPreferenceManagerThemeChanged,\n      this.handleThemeSwitched,\n    );\n    if (this.chart) {\n      this.chart.destroy();\n      this.chart = null;\n    }\n  }\n\n  private get themeBackgroundColor() {\n    return getColorFromTheme('--background-1');\n  }\n\n  private get gridColor() {\n    return getColorFromTheme('--slate-200');\n  }\n\n  private get datasetsForLineChart(): ChartDataSets[] {\n    return (\n      this.args.datasets?.map(({ data, label }) => ({\n        data,\n        label,\n        borderColor: this.primaryColor,\n        backgroundColor: this.computeGradient,\n        pointBackgroundColor: this.themeBackgroundColor,\n        pointBorderColor: this.primaryColor,\n        pointBorderWidth: 2,\n      })) || []\n    );\n  }\n\n  private get axisConfiguration() {\n    return {\n      gridLines: {\n        color: this.gridColor,\n      },\n      ticks: {\n        fontColor: getColorFromTheme('--text-1'),\n      },\n    };\n  }\n\n  private get xAxisConfiguration(): ChartXAxe {\n    return {\n      ...this.axisConfiguration,\n      type: 'time',\n      time: {\n        unit: this.args.timeUnit || 'week',\n        tooltipFormat: 'L',\n      },\n      ticks: {\n        source: 'labels',\n        maxTicksLimit: 10,\n        autoSkip: true,\n        maxRotation: 0,\n      },\n    };\n  }\n\n  private get yAxesConfiguration(): ChartYAxe {\n    return _.merge(\n      {\n        ...this.axisConfiguration,\n        offset: true,\n        ticks: {\n          min: 0,\n        },\n      },\n      this.args.chartOptions?.scales?.yAxes?.[0] || {},\n    );\n  }\n\n  @action\n  async handleThemeSwitched() {\n    await waitForNextRunLoop();\n    this.chart.data.datasets[0].pointBackgroundColor = this.themeBackgroundColor;\n    this.chart.options.scales.xAxes[0] = this.xAxisConfiguration;\n    this.chart.options.scales.yAxes[0] = this.yAxesConfiguration;\n\n    this.chart.update();\n  }\n\n  @action\n  handleDataRefresh() {\n    this.chart.data.labels = [...this.args.labels];\n    this.chart.data.datasets = this.datasetsForLineChart;\n    this.chart.options.scales.yAxes[0] = this.yAxesConfiguration;\n    this.chart.options.scales.xAxes[0] = this.xAxisConfiguration;\n\n    this.chart.update();\n  }\n\n  @action\n  handleDidInsert(element: HTMLCanvasElement) {\n    this.context = element.getContext('2d', { willReadFrequently: true });\n    this.primaryColor = this.lianaSession.currentProject.primaryColorOrDefault;\n\n    this.chart = new window.Chart(this.context, {\n      type: 'line',\n      data: {\n        labels: [...(this.args.labels || [])],\n        datasets: this.datasetsForLineChart,\n      },\n      options: {\n        ...(this.args.chartOptions || {}),\n        responsive: true,\n        maintainAspectRatio: false,\n        onResize: (chart: Chart) => {\n          chart.canvas.style.width = '100%';\n        },\n        legend: {\n          display: false,\n        },\n        scales: {\n          yAxes: [this.yAxesConfiguration],\n          xAxes: [this.xAxisConfiguration],\n        },\n      },\n    });\n  }\n\n  @action\n  private computeGradient({ chart }: Parameters<Scriptable<ChartColor>>[0]): ChartColor {\n    const gradient = this.context.createLinearGradient(0, 0, 0, chart.canvas.offsetHeight);\n    const rgbPrimaryColor = window.tinycolor(this.primaryColor).toRgb();\n    const rgbBackgroundColor = window.tinycolor(this.themeBackgroundColor).toRgb();\n\n    gradient.addColorStop(\n      0,\n      `rgba(${rgbPrimaryColor.r}, ${rgbPrimaryColor.g}, ${rgbPrimaryColor.b}, 1)`,\n    );\n    gradient.addColorStop(\n      1,\n      `rgba(${rgbBackgroundColor.r}, ${rgbBackgroundColor.g}, ${rgbBackgroundColor.b}, 0)`,\n    );\n\n    return gradient;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<canvas\\n  class=\\\"c-feature-chart-line-chart__canvas\\\"\\n  {{did-insert this.handleDidInsert}}\\n  {{did-update this.handleDataRefresh @datasets @labels @timeUnit}}\\n></canvas>\\n', { moduleName: 'client/features/chart/components/line-chart/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface VariationIndicatorArgs {\n  value: number;\n}\n\n@validateArguments\nexport default class ChartVariationIndicatorComponent extends Component<VariationIndicatorArgs> {\n  static propTypes = {\n    value: PropTypes.number.isRequired,\n  };\n\n  get isPositive() {\n    return this.args.value > 0;\n  }\n\n  get isNegative() {\n    return this.args.value < 0;\n  }\n\n  get variationIcon() {\n    return this.isPositive ? 'arrow_upward' : 'arrow_downward';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Feature/Chart/VariationIndicator',\n  component: 'Feature::Chart::VariationIndicator',\n  argTypes: {\n    value: {\n      type: {\n        name: 'number',\n        required: true,\n      },\n      description: 'The value of the variation indicator',\n      table: {\n        category: 'Properties',\n      },\n    },\n    dimension: {\n      description: 'Named block for dimension displayed next to the value',\n      table: {\n        category: 'Named Blocks',\n      },\n      control: {\n        type: null,\n      },\n    },\n  },\n  args: {\n    value: 16.3,\n  },\n};\n\nexport const VariationIndicator = (args) => {\n  return {\n    context: args,\n    template: hbs`\n      <Feature::Chart::VariationIndicator @value={{this.value}} />\n    `,\n  };\n};\n\nexport const VariationIndicatorWithDimension = (args) => {\n  return {\n    context: args,\n    template: hbs`\n      <Feature::Chart::VariationIndicator @value={{this.value}}>\n        <:dimension>\n          vs last period\n        </:dimension>\n      </Feature::Chart::VariationIndicator>\n    `,\n  };\n};\n\nexport const VariationIndicatorWithDimensionAndTooltip = (args) => {\n  return {\n    context: args,\n    template: hbs`\n      <div id=\"tooltips-container\"></div>\n      <Feature::Chart::VariationIndicator @value={{this.value}}>\n        <:dimension>\n          <DataDisplay::withTooltip @displayTooltip=\"from 2024-01-01 to 2024-02-01\" @side=\"top\">\n            vs last period\n          </DataDisplay::withTooltip>\n        </:dimension>\n      </Feature::Chart::VariationIndicator>\n    `,\n  };\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers\\n    \\'c-feature-chart-variation-indicator\\'\\n    positive=this.isPositive\\n    negative=this.isNegative\\n  }}\\n  data-test-feature-chart-variation-indicator\\n  ...attributes\\n>\\n  <div class=\\\"c-feature-chart-variation-indicator__body\\\">\\n    {{#if (or this.isNegative this.isPositive)}}\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName={{this.variationIcon}}\\n        @size=\\\"inherit\\\"\\n        class=\\\"c-feature-chart-variation-indicator__icon\\\"\\n        data-test-feature-chart-variation-indicator-icon\\n        data-test-feature-chart-variation-indicator-icon-name={{this.variationIcon}}\\n      />\\n    {{/if}}\\n\\n    <span\\n      class=\\\"c-feature-chart-variation-indicator__value\\\"\\n      data-test-feature-chart-variation-indicator-value\\n    >\\n      {{@value}}%\\n    </span>\\n  </div>\\n\\n  {{#if (has-block \\'dimension\\')}}\\n    <span\\n      class=\\\"c-feature-chart-variation-indicator__dimension\\\"\\n      data-test-feature-chart-variation-indicator-dimension\\n    >\\n      {{yield to=\\'dimension\\'}}\\n    </span>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/chart/components/variation-indicator/template.hbs' });\n","/* eslint-disable max-classes-per-file */\nimport type MentionableModel from 'client/data/models/mentionable';\nimport type ChatFeatureService from 'client/features/chat/services/feature';\nimport type ChatState from 'client/features/chat/state';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport { getParsedComputedStyle } from 'client/utils/dom-utils';\nimport { KEY, isKey } from 'client/utils/keyboard';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  submitAction: (text: string) => void;\n  mentionables?: MentionableModel[];\n  size?: 'medium' | 'small';\n  placeholder?: string;\n  shouldFocus?: boolean;\n}\n\n@validateArguments\nexport default class ChatInputComponent extends Component<Args> {\n  static propTypes = {\n    submitAction: PropTypes.func,\n    mentionables: PropTypes.array,\n    size: PropTypes.oneOf(['medium', 'small']),\n    placeholder: PropTypes.string,\n    shouldFocus: PropTypes.bool,\n  };\n\n  @service('feature/chat') private chatFeatureService: ChatFeatureService;\n\n  @service('feature/chat/state')\n  public chatState: ChatState;\n\n  @service eventBus: EventBusService;\n\n  textareaId: string;\n  toolbarId: string;\n  sectionId: string;\n\n  constructor(owner: unknown, args: Args) {\n    super(owner, args);\n    this.textareaId = `textarea-${guidFor(this)}`;\n    this.toolbarId = `toolbar-${guidFor(this)}`;\n    this.sectionId = `section-${guidFor(this)}`;\n\n    this.chatState.chat = {\n      textareaId: this.textareaId,\n      toolbarId: this.toolbarId,\n      sectionId: this.sectionId,\n    };\n\n    this.eventBus.on('chat.sendMessage', this.sanitizeAndSubmit);\n  }\n\n  get iconSize(): string {\n    return this.args.size === 'small' ? 'micro' : 'tiny';\n  }\n\n  get iconButtonSize(): string {\n    return this.args.size === 'small' ? 'small' : 'middling';\n  }\n\n  get inputSize(): string {\n    return this.args.size === 'small' ? 'sm' : 'md';\n  }\n\n  @action\n  initQuill() {\n    this.chatFeatureService.initializeQuill(this.args.placeholder, this.args.shouldFocus);\n    this.chatState.quill.on('text-change', this.onInput);\n  }\n\n  willDestroy() {\n    this.eventBus.off('chat.sendMessage', this.sanitizeAndSubmit);\n    super.willDestroy();\n    this.chatState.quill?.off('text-change', this.onInput);\n    this.chatFeatureService.destroyQuill();\n    this.chatState.chat = null;\n  }\n\n  @action\n  onKeydown(event: KeyboardEvent) {\n    if (this.chatState.mentionsDisplayed) return;\n    if (!isKey(KEY.ENTER, event) || event.shiftKey) return;\n\n    // NOTICE: prevent adding a \\n on the next keyup\n    event.stopImmediatePropagation();\n    event.stopPropagation();\n    event.preventDefault();\n\n    // Handle ENTER (without Shift) when no mention open\n    this.sanitizeAndSubmit();\n  }\n\n  @action\n  private onInput() {\n    // 20 comes from padding top and bottom\n    const twenty = this.args.size === 'small' ? 20 : 24;\n\n    // We don't want to shrink\n    if (\n      this.chatState.quill.scroll.domNode.scrollHeight + twenty\n      <= getParsedComputedStyle(this.chatState.inputSection, 'height')\n    )\n      return;\n\n    this.chatState.inputSection.style.height = `${\n      this.chatState.quill.scroll.domNode.scrollHeight + twenty\n    }px`;\n  }\n\n  @action\n  sanitizeAndSubmit() {\n    // We don't want to do anything when submitAction param is not set\n    if (!this.chatFeatureService.getCleanText?.length || !this.args.submitAction) return;\n\n    this.args.submitAction(this.chatFeatureService.getCleanText);\n\n    // Reset\n    this.chatState.quill.setText('');\n    this.chatState.textarea.style.height = this.chatState.textarea.style.minHeight;\n    this.chatState.inputSection.style.height = this.chatState.inputSection.style.minHeight;\n  }\n\n  @action\n  focusTextarea() {\n    this.chatState.textarea.focus();\n  }\n}\n","/* eslint-disable max-classes-per-file */\nimport type MentionableModel from 'client/data/models/mentionable';\nimport type ChatState from 'client/features/chat/state';\nimport type { ScrollBlot } from 'parchment';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { next } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport Quill from 'quill';\nimport Embed from 'quill/blots/embed';\n\nimport validateArguments from 'client/decorators/validate';\nimport { getParsedComputedStyle } from 'client/utils/dom-utils';\nimport { KEY, isKey } from 'client/utils/keyboard';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  mentionables?: MentionableModel[];\n}\n\nclass MentionBlot extends Embed {\n  static blotName = 'mention';\n  static tagName = 'span';\n  static className = 'mention';\n\n  hoverHandler;\n\n  constructor(scroll: ScrollBlot, node: Node) {\n    super(scroll, node);\n    this.hoverHandler = null;\n  }\n\n  static create(data: { username: string; id: string }) {\n    const node = super.create() as HTMLElement;\n\n    node.innerText = `@${data.username}`;\n\n    node.setAttribute('data-mention-type', 'user');\n    node.setAttribute('data-mention-id', data.id);\n\n    return node;\n  }\n\n  static value(domNode: HTMLElement) {\n    return {\n      type: domNode.getAttribute('data-mention-type'),\n      id: domNode.getAttribute('data-mention-id'),\n      username: domNode.innerText.substring(2),\n    };\n  }\n}\n\nQuill.register(MentionBlot);\n\nconst MAX_SEARCH_MENTION_LENGTH = 80;\n\n@validateArguments\nexport default class ChatInputMentionsComponent extends Component<Args> {\n  private inputSection: HTMLElement;\n  private textarea: HTMLElement;\n\n  static propTypes = {\n    mentionables: PropTypes.array,\n  };\n\n  @service('feature/chat/state')\n  public chatState: ChatState;\n\n  constructor(owner: unknown, args: Args) {\n    super(owner, args);\n    this.mentionModalId = `mention-modal-${guidFor(this)}`;\n  }\n\n  mentionModalId: string;\n\n  get mentionsModal(): HTMLElement {\n    return document.querySelector(`#${this.mentionModalId}`);\n  }\n\n  @action\n  initListeners() {\n    this.chatState.inputSection.addEventListener('keydown', this.onKeydown);\n    this.chatState.textarea.addEventListener('keyup', this.onKeyup);\n    this.inputSection = this.chatState.inputSection;\n    this.textarea = this.chatState.textarea;\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.inputSection.removeEventListener('keydown', this.onKeydown);\n    this.textarea.removeEventListener('keyup', this.onKeyup);\n    this.inputSection = null;\n    this.textarea = null;\n    this.chatState.suggestions = null;\n  }\n\n  @action\n  onKeydown(event: KeyboardEvent) {\n    // Handle ENTER to select a suggestion\n    if (isKey(KEY.ENTER, event) && !event.shiftKey) {\n      // Suggestion open\n      if (this.chatState.selectedItem || this.chatState.selectedItem === 0) {\n        this.selectSuggestion(this.chatState.selectedItem);\n        event.stopImmediatePropagation();\n        event.stopPropagation();\n        event.preventDefault();\n      }\n    }\n  }\n\n  @action\n  onKeyup() {\n    const currentSelectionIndex = this.chatState.quill.getSelection()?.index || 0;\n    const mentionMatch = this.getLastMentionMatch(currentSelectionIndex);\n    const mentionDetected = Boolean(mentionMatch);\n\n    if (!this.args.mentionables || !mentionDetected) {\n      // Reset suggestions\n      this.chatState.selectedItem = null;\n      this.chatState.suggestions = [];\n      return;\n    }\n\n    const mentionUsername = mentionMatch[1].toLowerCase();\n    this.chatState.suggestions = this.args.mentionables.filter(\n      (mention) =>\n        mention.username.startsWith(mentionUsername) || mention.email?.startsWith(mentionUsername),\n    );\n\n    // Remember user current cursor position\n    this.chatState.memorizedCursorPosition = this.chatState.quill.getSelection();\n\n    next(() => {\n      this.setMentionPosition();\n    });\n  }\n\n  setMentionPosition() {\n    if (!this.mentionsModal) return;\n\n    const rectangle = this.chatState.textarea.getBoundingClientRect();\n    const inputLeft = rectangle.left + document.body.scrollLeft;\n    const inputTop = rectangle.top + document.body.scrollTop;\n\n    // Retrieves the pixel position (relative to the editor container) of the cursor\n    const cursorPosition = this.chatState.quill.getBounds(this.chatState.memorizedCursorPosition);\n    const absoluteCaretLeft = inputLeft + cursorPosition.left;\n    const absoluteCaretTop = inputTop + cursorPosition.top;\n\n    const modalHeight = getParsedComputedStyle(this.mentionsModal, 'height');\n    const modalWidth = getParsedComputedStyle(this.mentionsModal, 'width');\n\n    this.mentionsModal.style.top = `${absoluteCaretTop - (modalHeight + 5)}px`;\n    // Handle global window width so the modal does not go outside viewport\n    this.mentionsModal.style.left =\n      document.body.clientWidth - absoluteCaretLeft < modalWidth + 10\n        ? `${document.body.clientWidth - (modalWidth + 10)}px`\n        : `${absoluteCaretLeft}px`;\n    // Makes it visible\n    this.mentionsModal.style.visibility = 'visible';\n  }\n\n  @action\n  selectSuggestion(index: number) {\n    if (!index && index !== 0) {\n      // This is more a preventive coding then anything that can happen\n      return;\n    }\n\n    const match = this.getLastMentionMatch(this.chatState.memorizedCursorPosition.index);\n\n    // Delete match\n    this.chatState.quill.deleteText(\n      this.chatState.memorizedCursorPosition.index - (match ? match[0].length : 1),\n      match ? match[0].length : 1,\n      Quill.sources.SILENT,\n    );\n    // Replace it by mention embed\n    const insertAtPosition =\n      this.chatState.memorizedCursorPosition.index - (match ? match[0].length : 0);\n    this.chatState.quill.insertEmbed(\n      insertAtPosition,\n      'mention',\n      {\n        username: this.chatState.suggestions[index].username,\n        id: `${this.chatState.suggestions[index].id}`,\n      },\n      Quill.sources.SILENT,\n    );\n    // Insert additional space\n    this.chatState.quill.insertText(insertAtPosition + 1, ' ', Quill.sources.SILENT);\n\n    this.chatState.quill.setSelection(insertAtPosition + 2, Quill.sources.SILENT);\n    this.chatState.quill.scrollSelectionIntoView();\n\n    // Reset suggestions\n    this.chatState.selectedItem = null;\n    this.chatState.suggestions = [];\n  }\n\n  private getLastMentionMatch(currentSelectionIndex: number) {\n    const starIndex = Math.max(0, (currentSelectionIndex ?? 0) - MAX_SEARCH_MENTION_LENGTH);\n\n    const textBeforeCursorPos = this.chatState.quill.getText(\n      starIndex,\n      currentSelectionIndex - starIndex,\n    );\n    const lastAtIndex = textBeforeCursorPos.lastIndexOf('@');\n    // - 1 because we let the Regex determine words delimiters (\\B)\n    const textWithPotentialMention = textBeforeCursorPos.substring(lastAtIndex - 1);\n\n    return /\\B@(?<username>\\w+)\\b$/g.exec(textWithPotentialMention);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-insert this.initListeners}}\\n\\n{{#if this.chatState.mentionsDisplayed}}\\n  <Shared::PortalContent @for=\\\"chat-mentionables\\\">\\n    <ul\\n      id={{this.mentionModalId}}\\n      class=\\\"c-chat-input-mentions\\\"\\n      {{forest-on-click-outside this.closeMentionModal}}\\n      data-test-mentionable\\n    >\\n      {{#each this.chatState.suggestions as |user index|}}\\n        <li\\n          role=\\\"button\\\"\\n          class={{get-classes-with-modifiers\\n            \\'c-chat-input-mentions__item\\'\\n            selected=(eq this.chatState.selectedItem index)\\n          }}\\n          {{on \\'click\\' (fn this.selectSuggestion index)}}\\n          {{on \\'mousemove\\' (fn (mut this.chatState.selectedItem) index)}}\\n          data-test-mentionable={{user.username}}\\n        >\\n          {{yield user to=\\'mentionable-item\\'}}\\n        </li>\\n      {{/each}}\\n    </ul>\\n  </Shared::PortalContent>\\n{{/if}}\\n', { moduleName: 'client/features/chat/components/input/mentions/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-chat-input\\\" ...attributes>\\n\\n  {{#if this.chatState.editLink}}\\n    <Shared::BetaInput\\n      @value={{this.chatState.link}}\\n      @onChange={{fn (mut this.chatState.link)}}\\n      @placeholder=\\\"Enter URL\\\"\\n      @size={{this.inputSize}}\\n      @iconName=\\\"close_outlined\\\"\\n      @filledIcon={{true}}\\n      @onClickIcon={{this.chatFeatureService.cancelLinkEdition}}\\n      @withoutFocus={{true}}\\n      @inputClass={{get-classes-with-modifiers \\'c-chat-input__open-link-input\\' @size}}\\n      {{on \\'keydown\\' this.chatFeatureService.onLinkEdition}}\\n      data-test-chat-input-link\\n    />\\n  {{/if}}\\n\\n  {{! template-lint-disable no-invalid-interactive }}\\n  <div\\n    id={{this.sectionId}}\\n    class={{get-classes-with-modifiers\\n      \\'c-chat-input__section\\'\\n      @size\\n      open-link=(eq this.chatState.editLink true)\\n    }}\\n    {{on \\'keydown\\' this.onKeydown}}\\n    data-test-chat-input-section\\n  >\\n    {{! template-lint-disable require-input-label }}\\n    <div\\n      id={{this.textareaId}}\\n      class={{get-classes-with-modifiers \\'c-chat-input__textarea\\' @size}}\\n      placeholder=\\\"\\\"\\n      {{did-insert this.initQuill}}\\n      data-test-chat-input-textarea\\n    />\\n\\n    {{! template-lint-disable no-invalid-interactive }}\\n    <div\\n      class=\\\"c-chat-input__action-bar\\\"\\n      {{! Enhance integration of the action bar }}\\n      {{on \\'click\\' this.focusTextarea}}\\n      data-test-chat-input-action-bar\\n    >\\n      {{! Quill toolbar in here }}\\n      <div id={{this.toolbarId}} class=\\\"c-chat-input__action-bar-quill\\\">\\n        {{#let (get-classes-with-modifiers \\'c-chat-input__action-bar-item\\' @size) as |itemClass|}}\\n          <button\\n            type=\\\"button\\\"\\n            class={{concat \\'ql-link \\' itemClass}}\\n            aria-pressed=\\\"false\\\"\\n            aria-label=\\\"link\\\"\\n            data-test-chat-input-action-link\\n          >\\n            <Shared::DataDisplay::BetaIcon\\n              @iconName=\\\"link_outlined\\\"\\n              @size={{this.iconSize}}\\n              @verticalCentered={{true}}\\n            />\\n          </button>\\n\\n          <button\\n            type=\\\"button\\\"\\n            class={{concat \\'ql-bold \\' itemClass}}\\n            aria-pressed=\\\"false\\\"\\n            aria-label=\\\"bold\\\"\\n            data-test-chat-input-action-bold\\n          >\\n            <Shared::DataDisplay::BetaIcon\\n              @iconName=\\\"format_bold\\\"\\n              @size={{this.iconSize}}\\n              @verticalCentered={{true}}\\n            />\\n          </button>\\n\\n          <button\\n            type=\\\"button\\\"\\n            class={{concat \\'ql-italic \\' itemClass}}\\n            aria-pressed=\\\"false\\\"\\n            aria-label=\\\"italic\\\"\\n            data-test-chat-input-action-italic\\n          >\\n            <Shared::DataDisplay::BetaIcon\\n              @iconName=\\\"format_italic\\\"\\n              @size={{this.iconSize}}\\n              @verticalCentered={{true}}\\n            />\\n          </button>\\n        {{/let}}\\n      </div>\\n\\n      {{#if @submitAction}}\\n        <DataDisplay::WithTooltip @displayTooltip=\\\"Send it!\\\">\\n          <div\\n            class={{get-classes-with-modifiers \\'c-chat-input__action-bar__send-button\\' @size}}\\n            {{on \\'click\\' this.sanitizeAndSubmit}}\\n            data-test-chat-input-submit\\n          >\\n            <Shared::BetaIconButton\\n              @icon=\\\"send_round\\\"\\n              @size={{this.iconButtonSize}}\\n              @color=\\\"background\\\"\\n            />\\n          </div>\\n        </DataDisplay::WithTooltip>\\n      {{/if}}\\n    </div>\\n  </div>\\n</div>\\n\\n<Feature::Chat::Input::Mentions @state={{this.currentState}} @mentionables={{@mentionables}}>\\n  <:mentionable-item as |user|>\\n    {{yield user to=\\'mentionable-item\\'}}\\n  </:mentionable-item>\\n</Feature::Chat::Input::Mentions>\\n', { moduleName: 'client/features/chat/components/input/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-chat\\\" data-test-feature-modal-main ...attributes>\\n  <Shared::PortalFor @name=\\\"chat-mentionables\\\" class=\\\"l-portal\\\" />\\n</div>\\n', { moduleName: 'client/features/chat/components/main/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport UserModel from 'client/data/models/user';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type Message = { createdAt: Date; author: UserModel; messageContent: string } & unknown;\n\ninterface Args {\n  message: Message;\n  size?: 'medium' | 'small';\n}\n\n@validateArguments\nexport default class ChatMessageComponent extends Component<Args> {\n  static propTypes = {\n    message: PropTypes.shape({\n      createdAt: PropTypes.date.isRequired,\n      author: PropTypes.instanceOf(UserModel).isRequired,\n      messageContent: PropTypes.string.isRequired,\n    }).isRequired,\n    size: PropTypes.oneOf(['medium', 'small']),\n  };\n}\n","import type ChatFeatureService from 'client/features/chat/services/feature';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  content: string;\n  size?: 'medium' | 'small';\n}\n\n@validateArguments\nexport default class ChatMessageContentComponent extends Component<Args> {\n  static propTypes = {\n    content: PropTypes.string.isRequired,\n    size: PropTypes.oneOf(['medium', 'small']),\n  };\n\n  @service('feature/chat') private chatFeatureService: ChatFeatureService;\n\n  // IMPORTANT to avoid html script injection\n  get content() {\n    return this.chatFeatureService.cleanText(this.args.content);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers \\'c-chat-message-content\\' @size}}\\n  ...attributes\\n  data-test-chat-message-content\\n>\\n  {{! Displays rich text so html}}\\n  {{! template-lint-disable no-triple-curlies }}\\n  {{{this.content}}}\\n</div>\\n', { moduleName: 'client/features/chat/components/message/content/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class={{get-classes-with-modifiers \\'c-chat-message\\' @size}} ...attributes>\\n\\n  <div class=\\\"c-chat-message__info-header\\\">\\n    <Picture::AvatarWithName\\n      @user={{@message.author}}\\n      @size={{@size}}\\n      data-test-chat-message-avatar\\n    >\\n\\n      {{@message.author.fullName}}\\n\\n      <span class={{get-classes-with-modifiers \\'c-chat-message__dot\\' @size}} />\\n\\n      <DataDisplay::WithTooltip\\n        @side=\\\"right\\\"\\n        @displayTooltip={{moment-format @message.createdAt \\'LLL\\'}}\\n      >\\n        <div\\n          class={{get-classes-with-modifiers \\'c-chat-message__date\\' @size}}\\n          data-test-chat-message-date\\n        >\\n          {{moment-format @message.createdAt \\'LT\\'}}\\n        </div>\\n      </DataDisplay::WithTooltip>\\n    </Picture::AvatarWithName>\\n\\n  </div>\\n\\n  <Feature::Chat::Message::Content @content={{@message.messageContent}} @size={{this.size}} />\\n\\n</div>\\n', { moduleName: 'client/features/chat/components/message/template.hbs' });\n","import type { Message } from 'client/features/chat/components/message/component';\nimport type LocaleService from 'client/legacy/services/locale';\n\nimport { service } from '@ember/service';\nimport { capitalize } from '@ember/string';\nimport Component from '@glimmer/component';\nimport moment from 'moment';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype SubThread = { calendarAnchor: Date; calendarAnchorDisplay: string; messages: Message[] };\n\nexport type UnitOfTimeForGroup = 'day' | 'week' | 'month' | 'quarter';\n\ninterface Args {\n  messages: Message[];\n  groupBy: UnitOfTimeForGroup;\n  size?: 'medium' | 'small';\n}\n\nfunction isSameUnitOfTime(d1: Date, d2: Date, unitOfTime: UnitOfTimeForGroup) {\n  return moment(d1).isSame(moment(d2), unitOfTime);\n}\n\nfunction calendarAnchorDisplay(date: Date, unitOfTime: UnitOfTimeForGroup, currentLocale: string) {\n  const relativeTimeFormatter = new Intl.RelativeTimeFormat(currentLocale || 'en', {\n    style: 'long',\n    numeric: 'auto',\n  });\n\n  switch (unitOfTime) {\n    case 'week':\n      return moment(date).format('Wo YYYY');\n\n    case 'month':\n      return moment(date).format('MMMM YYYY');\n\n    case 'quarter':\n      return moment(date).format('Qo YYYY');\n\n    case 'day':\n    default:\n      return moment(date)\n        .calendar(null, {\n          sameDay: `[${capitalize(relativeTimeFormatter.format(0, 'day'))}]`,\n          lastDay: `[${capitalize(relativeTimeFormatter.format(-1, 'day'))}]`,\n          lastWeek: 'LL',\n          sameElse: 'LL',\n        })\n        .toString();\n  }\n}\n\n@validateArguments\nexport default class ChatThreadComponent extends Component<Args> {\n  static propTypes = {\n    messages: PropTypes.array.isRequired,\n    groupBy: PropTypes.oneOf(['day', 'week', 'month', 'quarter']),\n    size: PropTypes.oneOf(['medium', 'small']),\n  };\n\n  @service locale: LocaleService;\n\n  get groupBy() {\n    return this.args.groupBy || 'day';\n  }\n\n  get size() {\n    return this.args.size || 'medium';\n  }\n\n  get subThreads() {\n    return this.args.messages.sortBy('createdAt').reduce((acc, currentMessage) => {\n      // Create a new SubThread\n      if (\n        !acc.length\n        || !isSameUnitOfTime(\n          currentMessage.createdAt,\n          acc[acc.length - 1].calendarAnchor,\n          this.groupBy,\n        )\n      ) {\n        acc.push({\n          calendarAnchor: moment(currentMessage.createdAt).startOf(this.groupBy).toDate(),\n          calendarAnchorDisplay: calendarAnchorDisplay(\n            currentMessage.createdAt,\n            this.groupBy,\n            this.locale.currentLocale,\n          ),\n          messages: [currentMessage],\n        });\n        return acc;\n      }\n\n      // Append messages to current SubThread\n      acc[acc.length - 1].messages.push(currentMessage);\n      return acc;\n    }, [] as SubThread[]);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-chat-thread\\\" ...attributes>\\n  {{#if this.subThreads.length}}\\n\\n    {{#each this.subThreads as |subThread index|}}\\n      <Shared::Separator @size={{this.size}} data-test-thread-separator={{index}}>\\n        <DataDisplay::WithTooltip\\n          @side=\\\"right\\\"\\n          @displayTooltip={{moment-format subThread.calendarAnchor \\'LL\\'}}\\n        >\\n          {{subThread.calendarAnchorDisplay}}\\n        </DataDisplay::WithTooltip>\\n      </Shared::Separator>\\n\\n      {{#each subThread.messages as |message|}}\\n        {{#if (has-block \\'message-item\\')}}\\n          {{yield message to=\\'message-item\\'}}\\n        {{else}}\\n          <Feature::Chat::Message @message={{message}} @size={{this.size}} data-test-chat-message />\\n        {{/if}}\\n      {{/each}}\\n    {{/each}}\\n\\n    {{#if (eq @messages.length 1)}}\\n      <p class=\\\"c-chat-thread__no-answer\\\">\\n        No reply yet\\n      </p>\\n    {{/if}}\\n\\n  {{else}}\\n    {{#if (has-block \\'no-message\\')}}\\n      {{yield to=\\'no-message\\'}}\\n    {{else}}\\n      <div class=\\\"c-chat-thread__centered-text\\\" data-test-chat-no-message>\\n        <div>\\n          <Shared::DataDisplay::BetaIcon\\n            @iconName=\\\"forum\\\"\\n            @size=\\\"custom\\\"\\n            class=\\\"c-chat-thread__forum-icon\\\"\\n          />\\n          <h1>\\n            Write your message\\n          </h1>\\n          <p>\\n            Write some text and press Enter to send.\\n            <br />\\n            Use @ mention to target a specific user.\\n          </p>\\n        </div>\\n      </div>\\n    {{/if}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/chat/components/thread/template.hbs' });\n","import type ChatState from 'client/features/chat/state';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type HtmlSanitizerService from 'client/legacy/services/html-sanitizer';\nimport type { EmitterSource, QuillOptions } from 'quill';\nimport type { Context } from 'quill/modules/keyboard';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport Quill, { Range } from 'quill';\nimport { Delta } from 'quill/core';\nimport Emitter from 'quill/core/emitter';\nimport LinkBlot from 'quill/formats/link';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { KEY, isKey } from 'client/utils/keyboard';\nimport { ImageFormat } from 'client/utils/quill/quill-common';\n\nexport default class ChatFeatureService extends Service {\n  @service('feature/chat/state')\n  public chatState: ChatState;\n\n  @service\n  private htmlSanitizer: HtmlSanitizerService;\n\n  @service('feature/notification') private businessNotification: NotificationFeatureService;\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.destroyQuill();\n  }\n\n  get getCleanText(): string {\n    const html = this.chatState.quill.getSemanticHTML();\n    if (this.chatState.textarea?.innerText.trim().length || html?.includes('<img src=')) {\n      return this.cleanText(html);\n    }\n\n    return null;\n  }\n\n  public cleanText(text: string): string {\n    return this.htmlSanitizer\n      .sanitizeRichText(text.trim(), {\n        allowedAttributes: { span: ['data-mention-*', 'class'] },\n      })\n      .replaceAll('\\n', '<br/>');\n  }\n\n  public initializeQuill(placeholder?: string, shouldFocus?: boolean) {\n    const options: QuillOptions & { chatFeatureService: ChatFeatureService } = {\n      modules: {\n        toolbar: { container: this.chatState.toolbarElement },\n        autolink: true,\n        clipboard: true,\n        resize: true,\n      },\n      placeholder: placeholder || 'Type your message here...',\n      theme: 'forest-chat',\n      // Reference to ChatFeatureService used to trigger link edition\n      chatFeatureService: this,\n    };\n\n    ImageFormat.error = (text: string) =>\n      this.businessNotification.createToastr(ToastrTypeEnum.Error, text);\n\n    this.chatState.quill = new Quill(this.chatState.textarea, options);\n    if (shouldFocus ?? true) this.chatState.quill.focus();\n\n    // Handles arrows when mentions are displayed\n    this.chatState.quill.keyboard.addBinding(\n      {\n        key: KEY.UP_ARROW,\n      },\n      this.upHandler,\n    );\n    this.chatState.quill.keyboard.addBinding(\n      {\n        key: KEY.DOWN_ARROW,\n      },\n      this.downHandler,\n    );\n\n    // Remove all default Enter bindings\n    this.chatState.quill.keyboard.bindings[KEY.ENTER] = [];\n\n    this.chatState.quill.keyboard.addBinding(\n      {\n        key: KEY.ENTER,\n        shiftKey: true,\n      },\n      this.handleShiftEnter,\n    );\n\n    // Update UI accordingly to current selection\n    this.chatState.quill.on('selection-change', this.onSelectionLinkChange);\n\n    // Reset to ensure state\n    this.chatState.suggestions = null;\n    this.chatState.editLink = false;\n  }\n\n  public destroyQuill() {\n    this.chatState.quill?.off('selection-change', this.onSelectionLinkChange);\n    this.chatState.quill = null;\n  }\n\n  @action\n  private downHandler() {\n    // Delegate to next handler if any\n    if (!this.chatState.mentionsDisplayed) return true;\n\n    if (!this.chatState.selectedItem && this.chatState.selectedItem !== 0) {\n      this.chatState.selectedItem = 0;\n    } else if (this.chatState.selectedItem + 1 < this.chatState.suggestions.length) {\n      this.chatState.selectedItem += 1;\n    }\n\n    // Stop handler chaining\n    return false;\n  }\n\n  @action\n  private upHandler() {\n    // Delegate to next handler if any\n    if (!this.chatState.mentionsDisplayed) return true;\n\n    // Let default behavior if nothing selected\n    if (!this.chatState.selectedItem && this.chatState.selectedItem !== 0) {\n      return true;\n    }\n\n    if (this.chatState.selectedItem > 0) {\n      this.chatState.selectedItem -= 1;\n    }\n\n    // Stop handler chaining\n    return false;\n  }\n\n  @action\n  private handleShiftEnter(range: Range, context: Context) {\n    // This is useful to keep the style (format in quill) for list, blockquote..\n    const lineFormats = Object.keys(context.format).reduce(\n      (formats: Record<string, unknown>, format) => {\n        if (\n          // Scope.BLOCK = 11\n          this.chatState.quill.scroll.query(format, 11)\n          && !Array.isArray(context.format[format])\n        ) {\n          formats[format] = context.format[format];\n        }\n        return formats;\n      },\n      {},\n    );\n    const delta = new Delta().retain(range.index).delete(range.length).insert('\\n', lineFormats);\n    this.chatState.quill.updateContents(delta, Quill.sources.USER);\n    this.chatState.quill.setSelection(range.index + 1, Quill.sources.SILENT);\n    this.chatState.quill.focus();\n  }\n\n  @action\n  public startLinkEdition(linkPreview: string) {\n    this.chatState.editLink = true;\n    this.chatState.link = linkPreview;\n  }\n\n  @action\n  public onLinkEdition(event: KeyboardEvent) {\n    if (!this.chatState.editLink) return;\n\n    if (isKey(KEY.ESCAPE, event)) {\n      this.chatState.link = '';\n      this.chatState.editLink = false;\n      this.chatState.quill.focus({ preventScroll: true });\n      event.preventDefault();\n    }\n\n    if (!isKey(KEY.ENTER, event) || event.shiftKey) return;\n\n    event.preventDefault();\n\n    const { scrollTop } = this.chatState.quill.root;\n    if (this.chatState.linkRange) {\n      this.chatState.quill.formatText(\n        this.chatState.linkRange,\n        'link',\n        this.chatState.link,\n        Emitter.sources.USER,\n      );\n      delete this.chatState.linkRange;\n    } else {\n      this.chatState.quill.focus({ preventScroll: true });\n      this.chatState.quill.format('link', this.chatState.link, Emitter.sources.USER);\n    }\n\n    this.chatState.quill.root.scrollTop = scrollTop;\n    this.chatState.link = '';\n    this.chatState.editLink = false;\n  }\n\n  @action\n  public cancelLinkEdition() {\n    const range = this.chatState.linkRange;\n    if (range != null) {\n      this.chatState.quill.focus({ preventScroll: true });\n      this.chatState.quill.formatText(range, 'link', false, Emitter.sources.USER);\n      delete this.chatState.linkRange;\n    }\n\n    this.chatState.editLink = false;\n  }\n\n  @action\n  private onSelectionLinkChange(range: Range, oldRange: Range, source: EmitterSource) {\n    if (range == null) return;\n    if (range.length === 0 && source === Emitter.sources.USER) {\n      const [link, offset] = this.chatState.quill.scroll.descendant(LinkBlot, range.index);\n\n      if (link != null) {\n        this.chatState.linkRange = new Range(range.index - offset, link.length());\n        const preview = LinkBlot.formats(link.domNode);\n\n        this.chatState.editLink = true;\n        this.chatState.link = preview;\n        return;\n      }\n    } else {\n      delete this.chatState.linkRange;\n    }\n\n    this.chatState.editLink = false;\n  }\n}\n","import type MentionableModel from 'client/data/models/mentionable';\nimport type Quill from 'quill';\nimport type { Range } from 'quill';\n\nimport Service from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport type ChatDefinition = {\n  textareaId: string;\n  toolbarId: string;\n  sectionId: string;\n};\n\nexport default class ChatState extends Service {\n  @tracked public chat: ChatDefinition;\n\n  // Mentions\n  @tracked suggestions: MentionableModel[];\n  @tracked selectedItem: number = null;\n  memorizedCursorPosition: Range | null;\n\n  // Links\n  @tracked editLink = false;\n  @tracked link: string;\n  linkRange: Range | null;\n\n  public quill: Quill | null;\n\n  get textarea(): HTMLElement {\n    return document.querySelector(`#${this.chat?.textareaId}`);\n  }\n\n  get inputSection(): HTMLElement {\n    return document.querySelector(`#${this.chat?.sectionId}`);\n  }\n\n  get toolbarElement(): HTMLElement {\n    return document.querySelector(`#${this.chat?.toolbarId}`);\n  }\n\n  get mentionsDisplayed() {\n    return Boolean(this.suggestions?.length);\n  }\n}\n","import type ReferenceFieldService from 'client/legacy/services/reference-field-service';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport CollectionModel from 'client/data/models/collection';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  recordIds: string[];\n  collection: CollectionModel;\n  isLinkDisabled?: boolean;\n  linkClassName?: string;\n  shouldDisplayNumberOfRecords?: boolean;\n  size?: 'small' | 'medium' | 'large';\n  icon?: string;\n}\n\n@validateArguments\nexport default class ClientRecordReferenceFieldComponent extends Component<Args> {\n  static propTypes = {\n    recordIds: PropTypes.arrayOf(PropTypes.string),\n    collection: PropTypes.instanceOf(CollectionModel),\n    isLinkDisabled: PropTypes.bool,\n    shouldDisplayNumberOfRecords: PropTypes.bool,\n    linkClassName: PropTypes.string,\n    size: PropTypes.oneOf(['small', 'medium', 'large']),\n    icon: PropTypes.string,\n  };\n\n  @service private referenceFieldService: ReferenceFieldService;\n\n  @tracked isLoading = true;\n  @tracked cannotFindRecord = false;\n\n  get referenceFieldValue(): string | null {\n    const { recordIds, collection } = this.args;\n\n    if (this.cannotFindRecord && collection && recordIds?.length === 1) {\n      return `(Deleted ${collection.get('displayName')}) #${recordIds[0]}`;\n    }\n\n    return this.referenceFieldService.getValueToDisplay(recordIds, collection);\n  }\n\n  @action\n  async loadRecord() {\n    const { recordIds, collection } = this.args;\n\n    if (!recordIds || !recordIds.length || !collection) {\n      this.cannotFindRecord = true;\n      this.isLoading = false;\n      return;\n    }\n\n    this.isLoading = true;\n    const found = await this.referenceFieldService.ensureRecordLoaded(recordIds, collection);\n    this.cannotFindRecord = !found;\n    this.isLoading = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @icon}}\\n  <Shared::DataDisplay::BetaIcon @iconName={{@icon}} />\\n{{/if}}\\n<div\\n  class={{get-classes-with-modifiers\\n    \\'c-feature-client-record-reference-field\\'\\n    deleted-record=this.cannotFindRecord\\n    force-disabled=(and @isLinkDisabled (not this.cannotFindRecord))\\n    loading=this.isLoading\\n  }}\\n  {{did-insert this.loadRecord}}\\n  {{did-update this.loadRecord @recordIds @collection}}\\n  data-test-feature-client-record-reference-field\\n  ...attributes\\n>\\n  {{#if this.isLoading}}\\n    Loading...\\n  {{else}}\\n    <LinkToRecords\\n      @recordIds={{@recordIds}}\\n      @collection={{@collection}}\\n      @forceDisableLink={{(or @isLinkDisabled this.cannotFindRecord)}}\\n      @target={{if @shouldOpenInNewTab \\'_blank\\'}}\\n      @linkClassName=\\\"c-feature-client-record-reference-field__link {{@linkClassName}}\\\"\\n      as |isSingleRecord isLinkPossible|\\n    >\\n      <span\\n        class=\\\"c-feature-client-record-reference-field__text\\\"\\n        data-test-feature-client-record-reference-field-value\\n      >\\n        {{#if (and (not isSingleRecord) @shouldDisplayNumberOfRecords)}}\\n          {{@recordIds.length}}\\n        {{else}}\\n          {{this.referenceFieldValue}}\\n        {{/if}}\\n      </span>\\n\\n      {{#if (and isLinkPossible @shouldOpenInNewTab)}}\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName=\\\"open_in_new\\\"\\n          @size=\\\"custom\\\"\\n          data-test-feature-client-record-reference-field-icon\\n        />\\n      {{/if}}\\n    </LinkToRecords>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/client-record/components/reference-field/template.hbs' });\n","import type CollectionModel from 'client/data/models/collection';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type NestedCollection from 'client/utils/nested/collection';\n\nimport Model from '@ember-data/model';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport {\n  ERROR_ACCESS_RECORD_FORBIDDEN,\n  ERROR_NOT_FOUND,\n  ERROR_NO_PRIMARY_KEY,\n  ERROR_RETURNED_DATA,\n  ERROR_SENT_DATA,\n  ERROR_UNAUTHORIZED,\n  ERROR_UNEXPECTED_LAYOUT,\n  ERROR_UNKNOWN,\n  ERROR_UNREACHABLE_DATA,\n} from 'client/config/errors';\nimport { getFirstErrorDetail, getFirstErrorStatus } from 'client/utils/ember-error-util';\nimport { AgentError, HttpError } from 'client/utils/errors';\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\n\nexport type RequestType =\n  | 'details'\n  | 'list'\n  | 'count'\n  | 'has-many'\n  | 'create'\n  | 'update'\n  | 'delete';\nexport class ClientRecordAgentError extends AgentError {\n  public requestType: RequestType;\n  public type: string;\n  public status: number;\n\n  constructor(innerError: Error, requestType: RequestType, message: string) {\n    super(innerError, message);\n    this.name = 'ClientRecordAgentError';\n    this.requestType = requestType;\n    this.status = getFirstErrorStatus(innerError);\n  }\n\n  get context() {\n    return { requestType: this.requestType };\n  }\n\n  get fingerprint() {\n    return this.name;\n  }\n}\n\nexport class ParsingFiltersClientRecordAgentError extends ClientRecordAgentError {\n  constructor(error: Error, requestType: RequestType) {\n    super(error, requestType, 'Error parsing filters');\n    this.name = 'ParsingFiltersError';\n  }\n}\n\nexport class RecordAccessForbiddenClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_ACCESS_RECORD_FORBIDDEN;\n\n  constructor(cause: Error, requestType: RequestType) {\n    super(cause, requestType, 'Record access forbidden');\n    this.name = 'RecordAccessForbiddenClientRecordAgentError';\n  }\n}\n\nexport class RecordNotFoundClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_NOT_FOUND;\n  public readonly options: object;\n\n  constructor(\n    cause: Error,\n    requestType: RequestType,\n    { collection, recordId }: { collection: CollectionModel | NestedCollection; recordId: string },\n  ) {\n    super(\n      cause,\n      requestType,\n      `Record ${recordId} on collection ${collection.singularizedDisplayName} could not be found`,\n    );\n    this.name = 'RecordNotFoundClientRecordAgentError';\n    this.options = { target: `${collection.singularizedDisplayName} #${recordId}` };\n  }\n}\n\nexport class PathNotFoundClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_NOT_FOUND;\n  public readonly options: object;\n\n  constructor(\n    cause: Error,\n    requestType: RequestType,\n    { collection }: { collection: CollectionModel | NestedCollection },\n  ) {\n    const path = cause instanceof HttpError ? cause.url : undefined;\n    super(cause, requestType, `Path not found for: ${path}`);\n    this.name = 'PathNotFoundClientRecordAgentError';\n    this.options = { target: `${collection.singularizedDisplayName}` };\n  }\n}\n\nexport class ServerFailClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_UNREACHABLE_DATA;\n\n  constructor(cause: Error, requestType: RequestType) {\n    const message = getFirstErrorDetail(cause) || cause.message;\n    super(\n      cause,\n      requestType,\n      `Your server is failing to achieve the request. Please contact your administrator.\\nDetails: ${message}`,\n    );\n    this.name = 'ServerFailClientRecordAgentError';\n  }\n}\n\nexport class UnauthorizedClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_UNAUTHORIZED;\n\n  constructor(cause: Error, requestType: RequestType) {\n    super(cause, requestType, 'You need to be authenticated to access this resource');\n    this.name = 'UnauthorizedClientRecordAgentError';\n  }\n}\n\nexport class ForbiddenClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_ACCESS_RECORD_FORBIDDEN;\n  constructor(cause: Error, requestType: RequestType) {\n    super(\n      cause,\n      requestType,\n      getFirstErrorDetail(cause) || 'You do not have permission to access this record',\n    );\n    this.name = 'ForbiddenClientRecordAgentError';\n  }\n}\n\nexport class UnknownClientRecordAgentError extends ClientRecordAgentError {\n  public type = ERROR_UNKNOWN;\n  public errors: unknown;\n  public declare status: number | null;\n\n  constructor(cause: Error, requestType: RequestType) {\n    const message = getFirstErrorDetail(cause) || cause.message;\n    super(cause, requestType, message);\n\n    this.name = 'UnknownClientRecordAgentError';\n    this.status = getFirstErrorStatus(cause);\n    this.errors = (cause as HttpError).errors || null;\n  }\n\n  get context() {\n    const { cause } = this as unknown as { cause: Error };\n    return { requestType: this.requestType, ...(cause || {}) };\n  }\n\n  get fingerprint() {\n    return null;\n  }\n}\n\nexport class UnexpectedDataClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_SENT_DATA;\n\n  constructor(cause: Error, requestType: RequestType) {\n    super(cause, requestType, getFirstErrorDetail(cause) || cause.message);\n    this.name = 'UnexpectedDataClientRecordAgentError';\n  }\n}\n\nexport class ServerValidationClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_SENT_DATA;\n\n  constructor(cause: Error, requestType: RequestType) {\n    super(\n      cause,\n      requestType,\n      `Your data seems to be invalid: ${getFirstErrorDetail(cause) || cause.message}`,\n    );\n    this.name = 'ServerValidationClientRecordAgentError';\n  }\n}\n\nexport class UnexpectedResponseClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_RETURNED_DATA;\n\n  constructor(cause: Error, requestType: RequestType) {\n    super(cause, requestType, 'Unexpected response from the server');\n    this.name = 'UnexpectedResponseClientRecordAgentError';\n  }\n}\n\nexport class NoPrimaryKeyClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_NO_PRIMARY_KEY;\n\n  constructor(cause: Error, requestType: RequestType) {\n    super(cause, requestType, 'No primary key found');\n    this.name = 'NoPrimaryKeyClientRecordAgentError';\n  }\n}\n\nexport class AbortClientRecordAgentError extends ClientRecordAgentError {\n  constructor(requestType: RequestType, message: string) {\n    super(undefined, requestType, message);\n    this.name = 'AbortClientRecordAgentError';\n  }\n}\n\nexport class NoNetworkClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_UNREACHABLE_DATA;\n\n  constructor(cause: Error, requestType: RequestType) {\n    super(cause, requestType, cause?.message || 'No network connection');\n    this.name = 'NoNetworkClientRecordAgentError';\n    this.status = 0;\n  }\n}\n\nexport class CORSOrServerUnreachableClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_UNREACHABLE_DATA;\n\n  constructor(cause: Error, requestType: RequestType) {\n    super(cause, requestType, cause?.message || 'Cors error or server unreachable');\n    this.name = 'CORSOrServerUnreachableClientRecordAgentError';\n    this.status = 0;\n  }\n}\n\nexport class RequestTimeoutClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_UNREACHABLE_DATA;\n\n  constructor(cause: Error, requestType: RequestType) {\n    super(cause, requestType, cause?.message || 'Request timeout');\n    this.name = 'RequestTimeoutClientRecordAgentError';\n    this.status = 0;\n  }\n}\n\nexport class MissingNativeQueryConnectionClientRecordAgentError extends ClientRecordAgentError {\n  constructor(cause: Error, requestType: RequestType) {\n    super(cause, requestType, 'Missing required property native query connection');\n    this.name = 'MissingNativeQueryConnectionClientRecordAgentError';\n  }\n}\n\nexport class UnknownParentRecordClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_UNEXPECTED_LAYOUT;\n  public readonly record: unknown;\n\n  constructor(cause: Error, requestType: RequestType, record: unknown) {\n    super(cause, requestType, 'Parent record seems to be invalid');\n    this.name = 'UnknownParentRecordClientRecordAgentError';\n    this.record = record;\n  }\n\n  get context() {\n    return {\n      ...super.context,\n      recordModelName: (this.record?.constructor as unknown as { modelName: string })?.modelName,\n      recordConstructorName: this.record?.constructor?.name,\n      isInstanceOfModel: this.record instanceof Model,\n      isInstanceOfFragment: this.record instanceof Fragment,\n    };\n  }\n}\n\nexport class UnreachableServerClientRecordAgentError extends ClientRecordAgentError {\n  public readonly type = ERROR_UNREACHABLE_DATA;\n\n  constructor(cause: Error, requestType: RequestType) {\n    super(cause, requestType, 'Server unreachable');\n    this.name = 'UnreachableServerClientRecordAgentError';\n  }\n}\n\nexport class ValidationClientRecordAgentError extends ClientRecordAgentError {\n  public readonly record: ClientRecordModel;\n\n  constructor(requestType: RequestType, record: ClientRecordModel) {\n    const collection = getCollectionFromRecord(record);\n    const message = `The ${collection.singularizedDisplayName.toLowerCase()} record you are trying to ${\n      record.isNew ? 'create' : 'update'\n    } is invalid.`;\n\n    super(null, requestType, message);\n\n    this.name = 'ValidationClientRecordAgentError';\n    this.record = record;\n  }\n}\n","import type FieldModel from 'client/data/models/field';\nimport type { RequestType } from 'client/features/client-record/errors';\nimport type ClientRecordCrudHandlerInternalBusinessService from 'client/features/client-record/services/internal-business/crud-handler';\nimport type ClientRecordStateHandlerInternalBusinessService from 'client/features/client-record/services/internal-business/state-handler';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type CapabilitiesService from 'client/shared/services/capabilities';\nimport type LayoutState from 'client/shared/states/layout';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type RecordsContext from 'client/utils/liana-records/records-context';\nimport type RelatedRecordsContext from 'client/utils/liana-records/related-records-context';\nimport type NestedCollection from 'client/utils/nested/collection';\nimport type NestedField from 'client/utils/nested/field';\nimport type { BelongsToFieldsTreeToFetch } from 'client/utils/templating-helper/field-templating-helper';\nimport type { AbilitiesService } from 'ember-can';\n\nimport Service, { service } from '@ember/service';\nimport { InvalidError } from '@ember-data/adapter/error';\nimport window from 'ember-window-mock';\n\nimport CollectionModel from 'client/data/models/collection';\nimport {\n  AbortClientRecordAgentError,\n  CORSOrServerUnreachableClientRecordAgentError,\n  ClientRecordAgentError,\n  ForbiddenClientRecordAgentError,\n  MissingNativeQueryConnectionClientRecordAgentError,\n  NoNetworkClientRecordAgentError,\n  NoPrimaryKeyClientRecordAgentError,\n  PathNotFoundClientRecordAgentError,\n  RecordNotFoundClientRecordAgentError,\n  RequestTimeoutClientRecordAgentError,\n  ServerFailClientRecordAgentError,\n  ServerValidationClientRecordAgentError,\n  UnauthorizedClientRecordAgentError,\n  UnexpectedDataClientRecordAgentError,\n  UnknownClientRecordAgentError,\n  UnreachableServerClientRecordAgentError,\n  ValidationClientRecordAgentError,\n} from 'client/features/client-record/errors';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { EventBusClientRecordEventsEnum } from 'client/legacy/services/event-bus';\nimport {\n  getFirstErrorDetail,\n  getFirstErrorName,\n  getFirstErrorStatus,\n  isEmberError,\n} from 'client/utils/ember-error-util';\nimport {\n  CORSOrServerUnreachableFailedToFetchError,\n  HttpError,\n  NoNetworkFailedToFetchError,\n  RequestTimeoutFailedToFetchError,\n  UnknownClientAdapterError,\n  UnreachableAgentError,\n} from 'client/utils/errors';\nimport { CountDeactivatedError } from 'client/utils/errors/collection-errors';\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\n\nexport default class ClientRecordFeatureService extends Service {\n  @service('feature/notification')\n  private notificationBusinessService: NotificationFeatureService;\n\n  @service private abilities: AbilitiesService;\n  @service private eventBus: EventBusService;\n  @service private lianaSession: LianaSessionService;\n\n  @service('error-handler') private errorHandler: ErrorHandlerService;\n  @service('feature/client-record/internal-business/crud-handler')\n  private crudHandler: ClientRecordCrudHandlerInternalBusinessService;\n\n  @service('feature/client-record/internal-business/state-handler')\n  private stateHandler: ClientRecordStateHandlerInternalBusinessService;\n\n  @service('shared/state/layout') private layoutState: LayoutState;\n  @service('shared/capabilities') private capabilitiesService: CapabilitiesService;\n\n  public validateRecord(record: ClientRecordModel) {\n    try {\n      this.crudHandler.validateRecord(record);\n      return true;\n    } catch (error) {\n      console.debug('Error during validation:', error);\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Error,\n        (error as ValidationClientRecordAgentError).message,\n      );\n      return false;\n    }\n  }\n\n  public async upsertRecord(\n    record: ClientRecordModel,\n    options?: { shouldUpdateRelationshipsAfterCreation?: boolean },\n  ) {\n    const collection = getCollectionFromRecord(record);\n\n    const isNewRecord = record.isNew;\n    try {\n      await this.crudHandler.upsertRecord(record, options);\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Success,\n        `${collection.singularizedDisplayName} ${isNewRecord ? 'created' : 'edited'}.`,\n      );\n      this.eventBus.trigger(\n        isNewRecord\n          ? EventBusClientRecordEventsEnum.RecordCreated\n          : EventBusClientRecordEventsEnum.RecordEdited,\n        record,\n      );\n\n      return record;\n    } catch (error) {\n      if (error instanceof ValidationClientRecordAgentError) {\n        this.errorHandler.handleError(error, 'Validation error');\n        return null;\n      }\n      this.handleDetailsError(error as Error, {\n        collection,\n        recordId: record?.id,\n        requestType: isNewRecord ? 'create' : 'update',\n      });\n      return null;\n    }\n  }\n\n  public async deleteRecord(record: ClientRecordModel) {\n    const collection = getCollectionFromRecord(record);\n\n    const displayName = collection.singularizedDisplayName;\n    const sure = window.confirm(\n      `Are you sure you want to delete this ${displayName.toLowerCase()}?`,\n    );\n    if (!sure) return false;\n\n    try {\n      const recordId = record.id;\n\n      await this.crudHandler.deleteRecord(record);\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Success,\n        `${displayName} deleted.`,\n      );\n      this.eventBus.trigger(EventBusClientRecordEventsEnum.RecordDeleted, {\n        recordIds: [recordId],\n        collection,\n      });\n      return true;\n    } catch (error) {\n      this.handleDetailsError(error as Error, {\n        collection,\n        recordId: record?.id,\n        requestType: 'delete',\n      });\n\n      return false;\n    }\n  }\n\n  public async bulkDeleteRecords(\n    recordsState: RecordsContext,\n    records?: ClientRecordModel[],\n    withSelect = true,\n    mustDeleteOnlyAssociations = false,\n  ) {\n    const numberOfRecordsToDelete = records ? records.length : recordsState.selectedRecordsCount;\n    const recordsText =\n      numberOfRecordsToDelete === 1\n        ? `this ${recordsState.displayName.toLowerCase()}`\n        : `these ${\n            recordsState.selectedRecordsCount\n          } ${recordsState.displayNamePlural.toLowerCase()}`;\n    const sure = window.confirm(`Are you sure you want to delete ${recordsText}?`);\n\n    if (!sure) return false;\n\n    try {\n      await this.crudHandler.bulkDeleteRecords(\n        recordsState,\n        records,\n        withSelect,\n        mustDeleteOnlyAssociations,\n      );\n\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Success,\n        `${\n          numberOfRecordsToDelete === 1 ? recordsState.displayName : recordsState.displayNamePlural\n        } deleted.`,\n      );\n      this.eventBus.trigger(EventBusClientRecordEventsEnum.RecordDeleted, {\n        recordIds: records\n          ? records.map((record) => record.id)\n          : recordsState.getSelectedRecordsIds(),\n        collection: recordsState.collection as CollectionModel,\n      });\n\n      return true;\n    } catch (sourceError) {\n      const status = getFirstErrorStatus(sourceError);\n\n      let error =\n        this.handleCommonError(sourceError as Error, 'delete')\n        || new UnknownClientRecordAgentError(sourceError as Error, 'delete');\n      if (status === 404) {\n        error = new PathNotFoundClientRecordAgentError(sourceError as Error, 'delete', {\n          collection: recordsState.collection,\n        });\n      }\n      this.errorHandler.handleError(error as Error, `Failed to delete ${recordsText}`);\n      return false;\n    }\n  }\n\n  public clearRecordsInCache(collection?: CollectionModel) {\n    const collectionsToClear = collection ? [collection] : this.layoutState.collections;\n    this.crudHandler.clearRecordsInCache(collectionsToClear);\n  }\n\n  public async addRecordToAssociation(\n    parentRecord: ClientRecordModel,\n    field: FieldModel | NestedField,\n    record: ClientRecordModel,\n  ) {\n    const recordId = parentRecord.get(\n      field.collection.displayFieldWithNamespace as keyof ClientRecordModel,\n    ) as string;\n    const collectionName = field.collection.singularizedDisplayName;\n\n    try {\n      const hasBeenUpdated = await this.crudHandler.addRecordToAssociation(\n        parentRecord,\n        field,\n        record,\n      );\n\n      if (hasBeenUpdated) {\n        this.notificationBusinessService.createToastr(\n          ToastrTypeEnum.Success,\n          `${collectionName} ${recordId} successfully updated.`,\n        );\n        this.eventBus.trigger(EventBusClientRecordEventsEnum.RecordRelationshipEdited, {\n          parentRecord,\n          field,\n          record,\n        });\n      }\n    } catch (error) {\n      this.handleDetailsError(error as Error, {\n        collection: field.collection,\n        recordId,\n        requestType: 'update',\n      });\n    }\n  }\n\n  public async updateEmbeddedRelationship(\n    parentRecord: ClientRecordModel,\n    field: FieldModel | NestedField,\n    record: unknown & { rawData?: Record<string, unknown> },\n  ) {\n    try {\n      await this.crudHandler.updateEmbeddedRelationship(parentRecord, field, record);\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Success,\n        `${field.displayName} successfully updated.`,\n      );\n      this.eventBus.trigger(EventBusClientRecordEventsEnum.RecordRelationshipEdited, {\n        parentRecord,\n        field,\n        record,\n      });\n      return true;\n    } catch (error) {\n      this.handleDetailsError(error as Error, {\n        collection: field.collection,\n        recordId: parentRecord.id,\n        requestType: 'update',\n      });\n      return false;\n    }\n  }\n\n  public async fetchRecord(\n    collection: CollectionModel | NestedCollection,\n    record: ClientRecordModel | { id: string },\n    embeddedRecords?: ClientRecordModel[],\n    shouldHandleFailure = true,\n  ) {\n    try {\n      return await this.crudHandler.fetchRecord(collection, record, embeddedRecords);\n    } catch (sourceError) {\n      const error = this.handleDetailsError(sourceError as Error, {\n        collection,\n        recordId: record?.id,\n        requestType: 'details',\n      });\n      if (shouldHandleFailure) {\n        return record as ClientRecordModel;\n      }\n      throw error;\n    }\n  }\n\n  public async fetchRecordAndRequiredBelongsTo(\n    belongsToFieldsTreeToFetch: BelongsToFieldsTreeToFetch,\n    collection: CollectionModel | NestedCollection,\n    record: ClientRecordModel | { id: string },\n    embeddedRecords?: ClientRecordModel[],\n    shouldFetchCurrentRecord = true,\n  ) {\n    try {\n      return await this.crudHandler.fetchRecordAndRequiredBelongsTo(\n        belongsToFieldsTreeToFetch,\n        collection,\n        record,\n        embeddedRecords,\n        shouldFetchCurrentRecord,\n      );\n    } catch (error) {\n      this.handleDetailsError(error as Error, {\n        collection,\n        recordId: record?.id,\n        requestType: 'details',\n      });\n      return record as ClientRecordModel;\n    }\n  }\n\n  public async fetchRecords(recordsContext: RecordsContext) {\n    try {\n      const records = await this.crudHandler.fetchRecords(recordsContext);\n      recordsContext.records = records.toArray();\n      return records;\n    } catch (sourceError) {\n      const error = await this.handleListingError(sourceError as Error, 'list', {\n        collection: recordsContext.collection,\n      });\n      recordsContext.error = error instanceof AbortClientRecordAgentError ? null : error;\n      throw error;\n    }\n  }\n\n  public async fetchRecordsCount(recordsContext: RecordsContext) {\n    try {\n      recordsContext.isCountLoading = true;\n      const count = await this.crudHandler.fetchRecordsCount(recordsContext);\n      recordsContext.recordsCount = count;\n    } catch (sourceError) {\n      if (sourceError instanceof CountDeactivatedError) {\n        recordsContext.isCountDeactivated = true;\n        recordsContext.isCountLoading = false;\n        return;\n      }\n      throw await this.handleListingError(sourceError as Error, 'count', {\n        collection: recordsContext.collection,\n      });\n    } finally {\n      recordsContext.isCountLoading = false;\n    }\n  }\n\n  public buildStateFromQueryParams(\n    collection: CollectionModel,\n    queryParams: Record<string, string>,\n  ): RecordsContext;\n\n  public buildStateFromQueryParams(\n    field: FieldModel,\n    parentRecord: ClientRecordModel,\n    queryParams: Record<string, string>,\n  ): RelatedRecordsContext;\n\n  public buildStateFromQueryParams(\n    collectionOrField: CollectionModel | FieldModel,\n    param2: ClientRecordModel | Record<string, string>,\n    param3?: Record<string, string>,\n  ): RecordsContext | RelatedRecordsContext {\n    const parentRecord =\n      collectionOrField instanceof CollectionModel ? null : (param2 as ClientRecordModel);\n    const queryParams =\n      collectionOrField instanceof CollectionModel ? (param2 as Record<string, string>) : param3;\n    return this.stateHandler.buildStateFromQueryParams(\n      collectionOrField as FieldModel,\n      parentRecord,\n      queryParams,\n    );\n  }\n\n  private handleCommonError(sourceError: Error, requestType: RequestType) {\n    let error: ClientRecordAgentError;\n    const status = getFirstErrorStatus(sourceError);\n    if (sourceError instanceof NoNetworkFailedToFetchError) {\n      error = new NoNetworkClientRecordAgentError(sourceError, requestType);\n    } else if (sourceError instanceof CORSOrServerUnreachableFailedToFetchError) {\n      error = new CORSOrServerUnreachableClientRecordAgentError(sourceError, requestType);\n    } else if (sourceError instanceof RequestTimeoutFailedToFetchError) {\n      error = new RequestTimeoutClientRecordAgentError(sourceError, requestType);\n    } else if (sourceError instanceof ClientRecordAgentError) {\n      error = sourceError;\n    } else if (sourceError instanceof UnreachableAgentError) {\n      error = new UnreachableServerClientRecordAgentError(sourceError, requestType);\n    } else if (\n      (sourceError instanceof UnknownClientAdapterError\n        && sourceError.cause\n        && sourceError.cause instanceof InvalidError)\n      || (status === 400 && getFirstErrorName(sourceError) === 'ValidationError')\n      || status === 422\n    ) {\n      error = new ServerValidationClientRecordAgentError(sourceError, requestType);\n    } else if (!isEmberError(sourceError) && !(sourceError instanceof HttpError)) {\n      error = new UnknownClientRecordAgentError(sourceError, requestType);\n    } else if (getFirstErrorName(sourceError) === 'NoPrimaryKeyError') {\n      error = new NoPrimaryKeyClientRecordAgentError(sourceError, requestType);\n    } else if (status >= 500) {\n      error = new ServerFailClientRecordAgentError(sourceError, requestType);\n    } else if (status === 403) {\n      error = new ForbiddenClientRecordAgentError(sourceError, requestType);\n    } else if (status === 401) {\n      error = new UnauthorizedClientRecordAgentError(sourceError, requestType);\n    } else if (status === 400) {\n      error = new UnexpectedDataClientRecordAgentError(sourceError, requestType);\n    }\n\n    return error;\n  }\n\n  // FIXME: Make it private once the RelatedRecordsManager is using the ClientRecordFeatureService\n  public async handleListingError(\n    sourceError: Error,\n    requestType: 'count' | 'list' | 'has-many',\n    options: { collection: CollectionModel | NestedCollection },\n  ) {\n    let error: ClientRecordAgentError = this.handleCommonError(sourceError, requestType);\n\n    const status = getFirstErrorStatus(sourceError);\n\n    if (error instanceof UnexpectedDataClientRecordAgentError && requestType === 'list') {\n      await this.capabilitiesService.handleCapabilitiesError(sourceError as HttpError);\n    } else if (status === 404) {\n      error = new PathNotFoundClientRecordAgentError(sourceError, requestType, {\n        collection: options.collection,\n      });\n    } else if (\n      status === 422\n      && getFirstErrorDetail(sourceError) === 'Missing native query connection attribute'\n    ) {\n      error = new MissingNativeQueryConnectionClientRecordAgentError(sourceError, requestType);\n    } else {\n      error = error || new UnknownClientRecordAgentError(sourceError, requestType);\n    }\n\n    this.errorHandler.handleSilentError(error, error.context);\n    return error;\n  }\n\n  public getRecordLink(collection: CollectionModel | NestedCollection) {\n    const name = collection.name;\n    if (name) {\n      const project = this.lianaSession.currentProject;\n      // NOTICE: Specific route for 2 Stripe integration objects (Cards and Bank Accounts).\n      if (name.endsWith('_stripe_cards') || name.endsWith('_stripe_bank_accounts')) {\n        return 'project.rendering.data.collection.list.view-edit.details-integration';\n      }\n\n      const hasSummaryView =\n        (collection as CollectionModel).viewEdit?.summaryView?.sections?.length > 0;\n      const isWorkspaceFeatureEnabled = this.abilities.can('access workspaceOnRecord');\n\n      const workspace = collection.rendering?.workspaces?.find(\n        (ws) => ws.collectionId === (collection as CollectionModel).id,\n      );\n      const hasWorkspace = workspace && workspace.components.length > 0;\n\n      let destination = 'details';\n      if (isWorkspaceFeatureEnabled && hasWorkspace) {\n        destination = 'workspace';\n      } else if (project.premiumSummaryView && hasSummaryView) {\n        destination = 'summary';\n      }\n      return `project.rendering.data.collection.list.view-edit.${destination}`;\n    }\n    return null;\n  }\n\n  public getRecordPath(collection: CollectionModel | NestedCollection) {\n    return collection\n      ? this.getRecordLink(collection)\n      : 'project.rendering.data.collection.list.view-edit.details';\n  }\n\n  private handleDetailsError(\n    sourceError: Error,\n    options: {\n      collection: CollectionModel | NestedCollection;\n      recordId: string;\n      requestType: 'details' | 'create' | 'update' | 'delete';\n    },\n  ) {\n    const status = getFirstErrorStatus(sourceError);\n    let error: ClientRecordAgentError =\n      this.handleCommonError(sourceError, options.requestType)\n      || new UnknownClientRecordAgentError(sourceError, options.requestType);\n    if (status === 404) {\n      error = new RecordNotFoundClientRecordAgentError(sourceError, options.requestType, options);\n    }\n\n    const prefix =\n      options.requestType === 'details'\n        ? 'Fetch record failed'\n        : `An error occurred when trying to ${\n            options.requestType\n          } ${options.collection.singularizedDisplayName.toLowerCase()}`;\n\n    this.errorHandler.handleError(error, prefix, error.context);\n    return error;\n  }\n}\n","import type FieldModel from 'client/data/models/field';\nimport type ClientRecordRelationshipStore from 'client/features/client-record/services/internal-business/relationship-store';\nimport type ClientRecordStore from 'client/features/client-record/services/internal-business/store';\nimport type ActivityTrackerService from 'client/legacy/services/activity-tracker';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type RecordsContext from 'client/utils/liana-records/records-context';\nimport type { SelectRecordsContext } from 'client/utils/liana-records/records-context';\nimport type NestedField from 'client/utils/nested/field';\nimport type { BelongsToFieldsTreeToFetch } from 'client/utils/templating-helper/field-templating-helper';\n\nimport { get } from '@ember/object';\nimport Service, { service } from '@ember/service';\n\nimport CollectionModel from 'client/data/models/collection';\nimport { ValidationClientRecordAgentError } from 'client/features/client-record/errors';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport { CountDeactivatedError } from 'client/utils/errors/collection-errors';\nimport RelatedRecordsContext from 'client/utils/liana-records/related-records-context';\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\nimport NestedCollection from 'client/utils/nested/collection';\n\nexport default class ClientRecordCrudHandlerInternalBusinessService extends Service {\n  @service('feature/client-record/internal-business/store')\n  private clientRecordStore: ClientRecordStore;\n\n  @service private currentUser: CurrentUserService;\n  @service private lianaFeatures: LianaFeaturesService;\n  @service private activityTracker: ActivityTrackerService;\n\n  @service('feature/client-record/internal-business/relationship-store')\n  private clientRecordRelationshipStore: ClientRecordRelationshipStore;\n\n  public clearRecordsInCache(collections: CollectionModel[]) {\n    return this.clientRecordStore.clearRecordsInCache(collections);\n  }\n\n  public validateRecord(record: ClientRecordModel) {\n    const collection = getCollectionFromRecord(record);\n    const view = record.isNew ? collection.viewCreate : collection.viewEdit;\n    const { attributesEditable } = view;\n\n    if (!record.validate({ only: attributesEditable })) {\n      throw new ValidationClientRecordAgentError(record.isNew ? 'create' : 'update', record);\n    }\n  }\n\n  public async upsertRecord(\n    record: ClientRecordModel,\n    options?: { shouldUpdateRelationshipsAfterCreation?: boolean },\n  ) {\n    // NOTICE: Do not set an empty String to prevent ember data error on\n    //         record creation.\n    if (record.id === '') {\n      record.set('id', null);\n    }\n\n    this.validateRecord(record);\n\n    return this.clientRecordStore.upsertRecord(record, options);\n  }\n\n  public async deleteRecord(record: ClientRecordModel) {\n    await this.clientRecordStore.deleteRecord(record);\n  }\n\n  public async bulkDeleteRecords(\n    recordsState: RecordsContext,\n    records?: ClientRecordModel[],\n    withSelect = true,\n    mustDeleteOnlyAssociations = false,\n  ) {\n    if (recordsState instanceof RelatedRecordsContext) {\n      await this.deleteHasManyRecords(\n        recordsState,\n        records || recordsState.selectedRecords,\n        mustDeleteOnlyAssociations,\n      );\n    } else {\n      await this.deleteRecords(\n        recordsState.collection as CollectionModel,\n        records || recordsState.selectedRecords,\n        withSelect,\n        recordsState.getSelectedQuery(),\n      );\n    }\n  }\n\n  private async deleteRecords(\n    collection: CollectionModel,\n    records: ClientRecordModel[],\n    withSelect: boolean,\n    selectedRecordsContext: SelectRecordsContext,\n  ) {\n    const promises = [];\n    const canUseTableViewSelectAll =\n      withSelect && this.lianaFeatures.isFeatureCompatible(FeaturesEnum.TableViewSelectAllRecords);\n\n    if (canUseTableViewSelectAll) {\n      promises.push(this.clientRecordStore.deleteRecordsFromSelection(selectedRecordsContext));\n    } else {\n      records.forEach((record) => {\n        // FIXME: Get rid of that weird line\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        record.set('forestActivityTracking', false);\n        promises.push(this.clientRecordStore.deleteRecord(record));\n      });\n    }\n\n    await Promise.all(promises);\n\n    await this.activityTracker.trackWrite({\n      action: 'delete',\n      label: 'deleted',\n      collection,\n      recordIds: records.map((record) => record.id),\n    });\n  }\n\n  private async deleteHasManyRecords(\n    recordsState: RelatedRecordsContext,\n    records?: ClientRecordModel[],\n    mustDeleteOnlyAssociations = false,\n  ): Promise<void> {\n    const { field } = recordsState;\n\n    if (field.integration) return null;\n    if (field.isEmbeddedHasMany || field.isEmbeddedHasManyDeep) {\n      recordsState.records.removeObjects(records);\n      return this.clientRecordStore.deleteRecordsFromEmbeddedAssociation(\n        recordsState.parentRecord as ClientRecordModel,\n        field,\n        records,\n      );\n    }\n\n    return this.clientRecordStore.deleteRecordsFromHasManyAssociation(\n      recordsState.parentRecord as ClientRecordModel,\n      field,\n      records,\n      !mustDeleteOnlyAssociations,\n      recordsState.getSelectedQuery(),\n    );\n  }\n\n  public async addRecordToAssociation(\n    parentRecord: ClientRecordModel,\n    field: FieldModel | NestedField,\n    record: ClientRecordModel,\n  ) {\n    if (field.integration) return false;\n\n    const path = field.attributeNameWithRelationships as keyof ClientRecordModel;\n    const relationship = parentRecord.getRelationship(path);\n\n    if (!relationship) return false;\n\n    if (parentRecord.isNew) {\n      if (!parentRecord.get(path)) {\n        parentRecord.set(path, []);\n      }\n      const hasMany = parentRecord.get(path) as unknown as ClientRecordModel[];\n      if (!hasMany.includes(record)) {\n        hasMany.pushObject(record);\n      }\n      return false;\n    }\n\n    await this.clientRecordRelationshipStore.addRecordsToHasMany(parentRecord, relationship, [\n      record.id,\n    ]);\n    return true;\n  }\n\n  public async updateEmbeddedRelationship(\n    parentRecord: ClientRecordModel,\n    field: FieldModel | NestedField,\n    record: unknown & { rawData?: Record<string, unknown> },\n  ) {\n    const records = parentRecord.get(\n      field.attributeName as keyof ClientRecordModel,\n    ) as unknown as unknown[];\n    if (!records?.includes(record) || !record || !record.rawData) {\n      throw new Error('Record not found in association');\n    }\n\n    await this.clientRecordRelationshipStore.updateEmbeddedRelationship(\n      parentRecord,\n      field,\n      record as unknown & { rawData: Record<string, unknown> },\n    );\n  }\n\n  public fetchRecord(\n    collection: CollectionModel | NestedCollection,\n    record: ClientRecordModel | { id: string },\n    embeddedRecords?: ClientRecordModel[],\n  ) {\n    return collection instanceof NestedCollection || this.currentUser.canReadCollection(collection)\n      ? this.clientRecordStore.fetchRecord(collection, record, embeddedRecords)\n      : this.clientRecordStore.fetchRecordThroughListing(collection, record);\n  }\n\n  public async fetchRecordAndRequiredBelongsTo(\n    belongsToFieldsTreeToFetch: BelongsToFieldsTreeToFetch,\n    collection: CollectionModel | NestedCollection,\n    record: ClientRecordModel | { id: string },\n    embeddedRecords?: ClientRecordModel[],\n    shouldFetchCurrentRecord = true,\n  ): Promise<ClientRecordModel> {\n    const recordToReturn = shouldFetchCurrentRecord\n      ? await this.fetchRecord(collection, record, embeddedRecords)\n      : (record as ClientRecordModel);\n\n    const promises = Object.keys(belongsToFieldsTreeToFetch).map((belongsToAttributeName) => {\n      const belongsToRecord =\n        recordToReturn && (get(recordToReturn, belongsToAttributeName) as ClientRecordModel);\n      if (belongsToRecord) {\n        const belongsToOptions = belongsToFieldsTreeToFetch[belongsToAttributeName];\n        return this.fetchRecordAndRequiredBelongsTo(\n          belongsToOptions.belongsTos,\n          belongsToOptions.field.nestedOrReferencedCollection,\n          belongsToRecord,\n        );\n      }\n      return null;\n    });\n\n    await Promise.all(promises);\n\n    return recordToReturn;\n  }\n\n  public getPostPayloadForFetchRecords(recordsContext: RecordsContext) {\n    const columnNames = recordsContext.columns?.map((column) => column.field.fieldName) || [];\n    // FIXME: Refactor to avoid the stringify\n    const filtersStringified = recordsContext.genericFilter?.filters;\n    const fields = { [recordsContext.collection.name]: columnNames.join(',') };\n\n    recordsContext.columns.forEach((column) => {\n      if (column?.field?.referenceModel) {\n        fields[column?.field?.fieldName] =\n          (column?.field as FieldModel)?.referenceModel?.displayField?.fieldName\n          || (column?.field as FieldModel)?.referenceModel?.primaryKey;\n      }\n    });\n\n    const sortParameters = recordsContext.sortQuery ? { sort: recordsContext.sortQuery } : {};\n    const searchParameters = recordsContext.search\n      ? {\n          search: recordsContext.search,\n          isSearchExtended: recordsContext.isSearchExtended || false,\n          searchExtended: recordsContext.isSearchExtended ? 1 : 0,\n        }\n      : {};\n    const contextParameters = recordsContext.context ? { context: recordsContext.context } : {};\n\n    return {\n      fields,\n      page: {\n        number: recordsContext.currentPage,\n        size: recordsContext.recordsPerPageOrDefault,\n      },\n      starting_after: recordsContext.startingAfter,\n      ending_before: recordsContext.endingBefore,\n      filters: filtersStringified ? (JSON.parse(filtersStringified) as unknown) : undefined,\n      ...recordsContext.segmentParameters,\n      ...sortParameters,\n      ...searchParameters,\n      ...contextParameters,\n    };\n  }\n\n  private getGetPayloadForFetchRecords(recordsContext: RecordsContext) {\n    return recordsContext.getQuery();\n  }\n\n  public async fetchRecords(recordsContext: RecordsContext): Promise<ClientRecordModel[]> {\n    const payload =\n      this.lianaFeatures.isFeatureCompatible(FeaturesEnum.PostHTTPMethodList)\n      && recordsContext.collection instanceof CollectionModel\n      && !recordsContext.collection.isSmart\n        ? this.getPostPayloadForFetchRecords(recordsContext)\n        : this.getGetPayloadForFetchRecords(recordsContext);\n    return this.clientRecordStore.fetchRecords(recordsContext.collection, payload);\n  }\n\n  public async fetchRecordsCount(recordsContext: RecordsContext) {\n    const payload = this.getPostPayloadForFetchRecords(recordsContext);\n    let count: number | 'deactivated';\n    if (recordsContext instanceof RelatedRecordsContext) {\n      count = await this.clientRecordStore.fetchRecordsCount(\n        recordsContext.field.collection as CollectionModel,\n        payload,\n        recordsContext.parentRecord.id,\n        recordsContext.field.fieldName,\n      );\n    } else {\n      count = await this.clientRecordStore.fetchRecordsCount(\n        recordsContext.collection as CollectionModel,\n        payload,\n      );\n    }\n\n    if (count === 'deactivated') {\n      throw new CountDeactivatedError();\n    }\n\n    return count;\n  }\n}\n","import type { RelationshipsFor } from '@ember-data/custom';\nimport type JSONAPISerializer from '@ember-data/serializer/json-api';\nimport type { Relationship } from 'client/data/models/abstract-model';\nimport type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type ClientRecordStore from 'client/features/client-record/services/internal-business/store';\nimport type ActivityTrackerService from 'client/legacy/services/activity-tracker';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaServerFetchService from 'client/legacy/services/liana-server-fetch';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type RelatedRecordsContext from 'client/utils/liana-records/related-records-context';\nimport type NestedField from 'client/utils/nested/field';\n\nimport Service, { service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport window from 'ember-window-mock';\n\nimport {\n  UnexpectedResponseClientRecordAgentError,\n  UnknownParentRecordClientRecordAgentError,\n} from 'client/features/client-record/errors';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport getPolymorphicDataType from 'client/utils/get-polymorphic-data-type';\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\nimport { denamespace } from 'client/utils/string-utils';\n\nexport type RelationshipOptions = {\n  collectionName?: string;\n  parentCollectionName?: string;\n  parentCollectionId?: string;\n  parentAssociationName?: string;\n  areAllRecordsSelected?: boolean;\n  query?: Record<string, unknown>;\n  idsExcluded?: string[];\n};\n\nexport default class ClientRecordRelationshipStoreInternalBusinessService extends Service {\n  @service private lianaFeatures: LianaFeaturesService;\n  @service private lianaServerFetch: LianaServerFetchService;\n  @service private store: StoreService;\n  @service private activityTracker: ActivityTrackerService;\n  @service('feature/client-record/internal-business/store')\n  private clientRecordStore: ClientRecordStore;\n\n  private getURL(collectionName: string, record: ClientRecordModel, relationshipName: string) {\n    const relationshipNameWithoutNamespace = denamespace(relationshipName, '-');\n\n    return `/forest/${collectionName}/${encodeURIComponent(\n      record.id,\n    )}/relationships/${relationshipNameWithoutNamespace}`;\n  }\n\n  private getDataBelongsTo(parentCollection: CollectionModel, record: ClientRecordModel) {\n    const data = { data: null };\n    if (record) {\n      const collection = getCollectionFromRecord(record);\n      const polyFields = parentCollection?.fields\n        .filterBy('isPolymorphic')\n        .flatMap((field) => field.polymorphicReferencedModels);\n\n      if (polyFields?.length && this.lianaFeatures.canUseNewPolymorphicUpdateRelationshipFormat) {\n        data.data = {\n          id: record.id,\n          type: getPolymorphicDataType(polyFields, collection.emberModelName),\n        };\n      } else {\n        data.data = {\n          id: record.id,\n          type: denamespace(collection.emberModelName, '-'),\n        };\n      }\n    }\n\n    return JSON.stringify(data);\n  }\n\n  private getDataHasMany(\n    recordIds: string[],\n    modelNameNamespaced: string,\n    options: RelationshipOptions = {\n      collectionName: null,\n      parentCollectionName: null,\n      parentCollectionId: null,\n      parentAssociationName: null,\n      areAllRecordsSelected: false,\n      query: {},\n      idsExcluded: [],\n    },\n  ) {\n    let data = { data: [] };\n\n    recordIds.forEach((recordId) => {\n      data.data.push({\n        id: recordId,\n        type: denamespace(modelNameNamespaced, '-'),\n      });\n    });\n\n    if (options.areAllRecordsSelected) {\n      const {\n        collectionName,\n        parentCollectionName,\n        parentCollectionId,\n        parentAssociationName,\n        areAllRecordsSelected,\n        query,\n        idsExcluded,\n      } = options;\n      const selectedRecordsRequest = this.store.createRecord('action-request');\n      selectedRecordsRequest.set('ids', data.data);\n      selectedRecordsRequest.set('allRecords', areAllRecordsSelected);\n      selectedRecordsRequest.set('allRecordsSubsetQuery', query);\n      selectedRecordsRequest.set('allRecordsIdsExcluded', idsExcluded);\n      selectedRecordsRequest.set('collectionName', collectionName);\n      selectedRecordsRequest.set('parentCollectionName', parentCollectionName);\n      selectedRecordsRequest.set('parentCollectionId', parentCollectionId);\n      selectedRecordsRequest.set('parentAssociationName', parentAssociationName);\n      data = selectedRecordsRequest.serialize() as { data: unknown[] };\n    }\n    return JSON.stringify(data);\n  }\n\n  private markRelationshipAsNotDirty(record: ClientRecordModel) {\n    // FIXME: This is based on private API. Use public API instead\n    record._getForestRecordData?.().didCommitHasMany();\n  }\n\n  public async addRecordsToHasMany(\n    parentRecord: ClientRecordModel,\n    relationship: Relationship,\n    recordIdsToAdd: string[],\n  ) {\n    if (!recordIdsToAdd?.length) return null;\n\n    const newRecords = await this.createNewRecords(parentRecord, relationship);\n    const newRecordIds = newRecords?.map((record) => record.id) || [];\n\n    if (parentRecord.isNew) return null;\n\n    const parentCollection = getCollectionFromRecord(parentRecord);\n    const options = {\n      method: 'POST',\n      body: this.getDataHasMany(\n        [...recordIdsToAdd, ...newRecordIds].uniq().filter(Boolean),\n        relationship.type,\n      ),\n    };\n\n    const response = await this.lianaServerFetch.fetch(\n      this.getURL(parentCollection.name, parentRecord, relationship.key),\n      options,\n    );\n\n    this.markRelationshipAsNotDirty(parentRecord);\n\n    return response;\n  }\n\n  public async deleteRecordsFromHasMany(\n    parentRecord: ClientRecordModel,\n    relationship: Relationship,\n    deletedRecordIds: string[],\n    queryParams?: Record<string, unknown>,\n    options?: RelationshipOptions,\n  ) {\n    const parentCollection = getCollectionFromRecord(parentRecord);\n\n    if (!deletedRecordIds?.length) return null;\n\n    let url = this.getURL(parentCollection.name, parentRecord, relationship.key);\n    if (queryParams && queryParams.delete) {\n      url += '?delete=true';\n    }\n\n    const optionsFetch = {\n      method: 'DELETE',\n      body: this.getDataHasMany(deletedRecordIds, relationship.type, options),\n    };\n\n    const response = await this.lianaServerFetch.fetch(url, optionsFetch);\n\n    if (queryParams && queryParams.delete && options?.collectionName) {\n      const collection = this.store.peekRecord('collection', options.collectionName);\n      // NOTICE: needed to handle activity logs deletion from related data.\n      await this.activityTracker.trackWrite({\n        action: 'delete',\n        label: 'deleted',\n        collection,\n        recordIds: deletedRecordIds,\n      });\n    }\n\n    this.markRelationshipAsNotDirty(parentRecord);\n\n    return response;\n  }\n\n  private async createNewRecords(record: ClientRecordModel, relationship: Relationship) {\n    const actualValue = record\n      .hasMany(relationship.key as RelationshipsFor<ClientRecordModel>)\n      .value() as unknown as ClientRecordModel[];\n    if (!actualValue) return [];\n\n    const newRecords = actualValue.filter((relationshipRecord) => relationshipRecord.isNew);\n    return Promise.all(\n      newRecords.map((newRecord) => this.clientRecordStore.upsertRecord(newRecord)),\n    );\n  }\n\n  public async updateBelongsTo(record: ClientRecordModel, relationship: Relationship) {\n    const collection = getCollectionFromRecord(record);\n    const belongsToRecord = record.get(\n      relationship.key as keyof ClientRecordModel,\n    ) as ClientRecordModel;\n\n    if (belongsToRecord?.isNew) {\n      await this.clientRecordStore.upsertRecord(belongsToRecord);\n    }\n\n    if (record.isNew) {\n      return null;\n    }\n\n    const options = {\n      method: 'PUT',\n      body: this.getDataBelongsTo(collection, belongsToRecord),\n    };\n    const path = this.getURL(collection.name, record, relationship.key);\n    const result = await this.lianaServerFetch.fetch(path, options);\n\n    // FIXME: This is based on private API. Use public API instead\n    record._getForestRecordData?.().didCommitBelongsTo();\n\n    return result;\n  }\n\n  public async updateEmbeddedRelationship(\n    parentRecord: ClientRecordModel,\n    field: FieldModel | NestedField,\n    record: unknown & { rawData: Record<string, unknown> },\n  ) {\n    const parentCollectionName = getCollectionFromRecord(parentRecord).name;\n    const relationshipIndex = (\n      parentRecord[field.attributeNameWithRelationships] as unknown[]\n    )?.indexOf(record);\n    const url = `/forest/${parentCollectionName}/${parentRecord.id}/relationships/${field.fieldName}/${relationshipIndex}`;\n    const data = JSON.stringify({\n      data: {\n        attributes: record.rawData,\n      },\n    });\n\n    const options = {\n      method: 'PUT',\n      body: data,\n    };\n\n    return this.lianaServerFetch.fetch(url, options);\n  }\n\n  public queryHasMany = task(\n    async (\n      recordsContext: RelatedRecordsContext,\n    ): Promise<\n      ClientRecordModel[] & {\n        meta?: { count?: number };\n      }\n    > => {\n      const { parentRecord, field } = recordsContext;\n      if (typeof parentRecord.hasMany !== 'function') {\n        throw new UnknownParentRecordClientRecordAgentError(null, 'has-many', parentRecord);\n      }\n      const relationship = parentRecord.hasMany(\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        field.attributeNameWithRelationships as RelationshipsFor<ClientRecordModel>,\n      );\n\n      const hasManyLink = relationship?.link();\n      if (!hasManyLink) {\n        return [] as ClientRecordModel[] & { meta?: { count?: number } };\n      }\n\n      const abortController = new AbortController();\n      let step: 'request' | 'json-response' | 'store-push' = 'request';\n      try {\n        const queryParameters = new URLSearchParams(\n          recordsContext.getQuery() as unknown as Record<string, string>,\n        );\n        const response = await this.lianaServerFetch.fetch(\n          `${hasManyLink}?${queryParameters.toString()}`,\n          {\n            method: 'GET',\n            headers: this.lianaFeatures.isFeatureCompatible(FeaturesEnum.RequestHeaderContext)\n              ? {\n                  'Forest-Context-Url': window.location.href,\n                }\n              : {},\n            signal: abortController.signal,\n          },\n        );\n        // eslint-disable-next-line sonarjs/no-dead-store\n        step = 'json-response';\n\n        const data = (await response.json()) as Record<string, unknown>;\n        const serializer = this.store.serializerFor(\n          // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n          // @ts-ignore\n          (field as FieldModel).referenceModel.emberModelName,\n        ) as JSONAPISerializer;\n        const dataNormalized = serializer.normalizeResponse(\n          this.store,\n          this.store.modelFor((field as FieldModel).referenceModel.emberModelName),\n          data,\n          null,\n          'findHasMany',\n        );\n\n        // eslint-disable-next-line sonarjs/no-dead-store\n        step = 'store-push';\n        const result = this.store.push(dataNormalized) as ClientRecordModel[] & {\n          meta?: { count?: number };\n        };\n        result.meta = 'meta' in dataNormalized ? (dataNormalized.meta as { count?: number }) : null;\n        return result;\n      } catch (error) {\n        if (step !== 'request') {\n          // This mean the request was done successfully but we were not able to parse the response\n          // or push the data to the store\n          throw new UnexpectedResponseClientRecordAgentError(error as Error, 'has-many');\n        }\n        throw error;\n      } finally {\n        abortController.abort();\n      }\n    },\n  );\n}\n","import type FieldModel from 'client/data/models/field';\nimport type FilterModel from 'client/data/models/filter';\nimport type CollectionBusinessService from 'client/legacy/services/business/collection';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type RecordsContext from 'client/utils/liana-records/records-context';\nimport type RelatedRecordsContext from 'client/utils/liana-records/related-records-context';\n\nimport Service, { service } from '@ember/service';\n\nimport CollectionModel, { SortingOrderEnum } from 'client/data/models/collection';\nimport { ParsingFiltersClientRecordAgentError } from 'client/features/client-record/errors';\n\nexport default class ClientRecordStateHandlerInternalBusinessService extends Service {\n  // FIXME: Move the code of the collection business  service to the feature\n  @service('business/collection') private collectionBusinessService: CollectionBusinessService;\n  @service private errorHandler: ErrorHandlerService;\n  @service private store: StoreService;\n\n  public buildStateFromQueryParams(\n    collection: CollectionModel,\n    parentRecord: null,\n    queryParams?: Record<string, string>,\n  ): RecordsContext;\n\n  public buildStateFromQueryParams(\n    field: FieldModel,\n    parentRecord: ClientRecordModel,\n    queryParams?: Record<string, string>,\n  ): RelatedRecordsContext;\n\n  public buildStateFromQueryParams(\n    collectionOrField: CollectionModel | FieldModel,\n    parentRecord: ClientRecordModel,\n    queryParams?: Record<string, string>,\n  ): RecordsContext {\n    const targetCollection =\n      collectionOrField instanceof CollectionModel\n        ? collectionOrField\n        : collectionOrField.referenceModel;\n    const segment =\n      queryParams?.segmentId && collectionOrField instanceof CollectionModel\n        ? collectionOrField.segments.find(\n            (segmentToFind) => segmentToFind.id === queryParams.segmentId,\n          )\n        : null;\n    let filter: FilterModel = null;\n    if (queryParams?.filter) {\n      try {\n        filter = this.store.createRecord('filter', {\n          filteredCollection: targetCollection,\n          ...(queryParams?.filter ? (JSON.parse(queryParams?.filter) as object) : {}),\n        });\n      } catch (error) {\n        this.errorHandler.handleSilentError(\n          new ParsingFiltersClientRecordAgentError(\n            error as Error,\n            parentRecord ? 'has-many' : 'list',\n          ),\n        );\n        console.debug('Ignoring filter...');\n      }\n    }\n    let sort = {};\n    if (queryParams?.sort) {\n      const order =\n        queryParams?.sort[0] === '-' ? SortingOrderEnum.Descending : SortingOrderEnum.Ascending;\n      const fieldName = queryParams?.sort.startsWith('-')\n        ? queryParams?.sort.slice(1)\n        : queryParams?.sort;\n      sort = { sortingParameters: [{ fieldName, order }] };\n    }\n    return this.collectionBusinessService.createRecordState({\n      modelToFetch: segment || collectionOrField,\n      record: parentRecord,\n      ...sort,\n      currentPage: Number.parseInt(queryParams?.page, 10) || 1,\n      search: queryParams?.search,\n      isSearchExtended: queryParams?.isSearchExtended === 'true',\n      filter,\n    });\n  }\n}\n","import type { Relationship } from 'client/data/models/abstract-model';\nimport type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type ClientRecordRelationshipStore from 'client/features/client-record/services/internal-business/relationship-store';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaServerFetchService from 'client/legacy/services/liana-server-fetch';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type RecordsManagerService from 'client/legacy/services/records-manager';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { SelectRecordsContext } from 'client/utils/liana-records/records-context';\nimport type NestedField from 'client/utils/nested/field';\n\nimport Service, { service } from '@ember/service';\n\nimport { AgentTypeEnum } from 'client/data/models/environment';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport RecordsContext from 'client/utils/liana-records/records-context';\nimport markPropertiesAsNotDirty, { getCollectionFromRecord } from 'client/utils/model-utils';\nimport NestedCollection from 'client/utils/nested/collection';\nimport { OPERATOR_IS } from 'client/utils/operators';\nimport { denamespace } from 'client/utils/string-utils';\n\nexport default class ClientRecordStoreInternalBusinessService extends Service {\n  @service private store: StoreService;\n  @service private lianaServerFetch: LianaServerFetchService;\n  @service private lianaFeatures: LianaFeaturesService;\n  @service private recordsManager: RecordsManagerService;\n  // FIXME: This service should not be allowed to access the lianaSession service !\n  // Requires a rework of records context which has too much logic\n  @service private lianaSession: LianaSessionService;\n  @service('feature/client-record/internal-business/relationship-store')\n  private clientRecordRelationshipStore: ClientRecordRelationshipStore;\n\n  public clearRecordsInCache(collections: CollectionModel[]) {\n    collections.forEach((collection) => {\n      this.store.unloadAll(collection.emberModelName);\n    });\n  }\n\n  private async updateAllDirtyRelationships(\n    record: ClientRecordModel,\n    shouldUpdateBelongsToFieldOnly = false,\n    relationshipNamesToUpdate?: string[],\n  ) {\n    const collection = getCollectionFromRecord(record);\n    const promises: Promise<unknown>[] = [];\n    record.eachRelationship((name, relationship) => {\n      const field = collection.fields?.findBy('attributeNameWithRelationships', name);\n\n      // NOTICE: Do not send a request if the association has not been\n      //         updated.\n      if (!field) {\n        return;\n      }\n\n      // NOTICE: Do not trigger a HTTP update request for integration field.\n      if (field.integration) {\n        return;\n      }\n\n      // NOTICE: Do not trigger a HTTP update request for Smart HasMany.\n      if (field.isHasMany && (field.isVirtual || shouldUpdateBelongsToFieldOnly)) {\n        return;\n      }\n\n      if (relationshipNamesToUpdate && !relationshipNamesToUpdate.includes(name)) {\n        return;\n      }\n\n      const isAgentV1 = [\n        AgentTypeEnum.ExpressMongoose,\n        AgentTypeEnum.ExpressSequelize,\n        AgentTypeEnum.Rails,\n      ].includes(this.lianaSession.currentEnvironment?.lianaName);\n      // Do not create record that does not require to be created first\n      if (\n        record.isNew\n        && ((!field.isRequired\n          && (!isAgentV1 || field.isHasMany || field.relationship === 'HasOne'))\n          || !(record[field.attributeNameWithRelationships] as ClientRecordModel)?.isNew)\n      ) {\n        return;\n      }\n\n      // NOTICE: Save relationship pk when Foreign key is the Primary key.\n      if (field.foreignAndPrimaryKey) {\n        record.newPk = (\n          record.get(relationship.name as keyof ClientRecordModel) as ClientRecordModel\n        ).id;\n      }\n\n      const isHasMany = relationship.kind === 'hasMany';\n\n      if (isHasMany) {\n        const reference = record.hasMany(name);\n        if (!reference.value()) return;\n\n        // Update of has many is executed only when creating a record\n        // So we can pass it the entire value\n        promises.push(\n          this.clientRecordRelationshipStore.addRecordsToHasMany(\n            record,\n            relationship as unknown as Relationship,\n            reference.ids(),\n          ),\n        );\n        // Update belongs to should happen only when editing a record\n        // And when we create a record it should happen only if the belongs to is set\n      } else if (relationshipNamesToUpdate || record.get(name)) {\n        promises.push(\n          this.clientRecordRelationshipStore.updateBelongsTo(\n            record,\n            relationship as unknown as Relationship,\n          ),\n        );\n      }\n    });\n\n    await Promise.all(promises);\n  }\n\n  public async upsertRecord(\n    record: ClientRecordModel,\n    { shouldUpdateRelationshipsAfterCreation = false } = {},\n  ) {\n    try {\n      const isNewRecord = record.isNew;\n      // In case of an edition, we just want to update the belongsTo that has been updated\n      const relationshipNamesToUpdate = isNewRecord\n        ? null\n        : Object.keys(record.changedRelationships('belongsTo'));\n      // In case of an edition, the has many are never edited through the upsert but through other methods.\n      // So we ignore all has many in that case\n      await this.updateAllDirtyRelationships(record, !isNewRecord, relationshipNamesToUpdate);\n\n      const recordSaved = await record.save();\n\n      if (isNewRecord && shouldUpdateRelationshipsAfterCreation) {\n        // Update all relationships that needs the record to be created first\n        await this.updateAllDirtyRelationships(recordSaved);\n      }\n      return recordSaved;\n    } catch (error) {\n      // NOTICE: ember will trigger an error if setting a belongsTo which previously did belong to\n      // a record, but this record has been deleted\n      if (\n        typeof record.newPk !== 'undefined'\n        && typeof error === 'object'\n        && 'message' in error\n        && typeof error.message === 'string'\n        && error.message.startsWith(`Cannot set the id ${record.newPk} on the record`)\n      ) {\n        markPropertiesAsNotDirty(record);\n        return record;\n      }\n      throw error;\n    }\n  }\n\n  private removeRecordFromStore(record: ClientRecordModel) {\n    const collection = getCollectionFromRecord(record);\n    record.eachRelationship((name) => {\n      // Find all relationships that are dependent from the record (can't exist without it)\n      const field = collection.fields.findBy('fieldName', denamespace(name, '-'));\n      if (field.foreignAndPrimaryKey && record[field.attributeNameWithRelationships]) {\n        this.store.unloadRecord(record[field.attributeNameWithRelationships] as ClientRecordModel);\n      }\n    });\n\n    this.store.unloadRecord(record);\n  }\n\n  public async deleteRecord(record: ClientRecordModel) {\n    await record.destroyRecord();\n\n    this.removeRecordFromStore(record);\n  }\n\n  public async deleteRecordsFromSelection(selectedRecordsContext: SelectRecordsContext) {\n    const { collectionName } = selectedRecordsContext;\n    const collection = this.store.peekAll('collection').findBy('name', collectionName);\n    const adapter = this.store.adapterFor(collection.emberModelName);\n    const url = `/forest/${collectionName}`;\n\n    // FIXME: action request is useless, do a simple object instead\n    const selectedRecordsRequest = this.store.createRecord('action-request');\n    selectedRecordsRequest.set('ids', selectedRecordsContext.idsIncluded);\n    selectedRecordsRequest.set('collectionName', collectionName);\n    selectedRecordsRequest.set('allRecords', selectedRecordsContext.areAllRecordsSelected);\n    selectedRecordsRequest.set('allRecordsSubsetQuery', selectedRecordsContext.query);\n    selectedRecordsRequest.set('allRecordsIdsExcluded', selectedRecordsContext.idsExcluded);\n    const selectedRecordsRequestData = JSON.stringify(selectedRecordsRequest.serialize());\n\n    await this.lianaServerFetch.fetch(url, {\n      method: 'DELETE',\n      body: selectedRecordsRequestData,\n      signal: adapter?.fetchAbortSignal,\n    });\n\n    selectedRecordsContext.idsIncluded.forEach((id) => {\n      const record = this.store.peekRecord(collection.emberModelName, id);\n      this.removeRecordFromStore(record as ClientRecordModel);\n    });\n  }\n\n  public async deleteRecordsFromEmbeddedAssociation(\n    parentRecord: ClientRecordModel,\n    field: FieldModel | NestedField,\n    records: ClientRecordModel[],\n  ) {\n    (parentRecord[field.attributeName] as ClientRecordModel[]).removeObjects(records);\n\n    // If the parent record has not yet been saved then there is no need to inform the agent\n    if (!parentRecord.isNew) {\n      await parentRecord.save();\n    }\n  }\n\n  public async deleteRecordsFromHasManyAssociation(\n    parentRecord: ClientRecordModel,\n    field: FieldModel | NestedField,\n    records: ClientRecordModel[],\n    deleteRecords = false,\n    selectedRecordsContext: Partial<SelectRecordsContext> = {},\n  ) {\n    const path = field.attributeNameWithRelationships;\n    const relationship = parentRecord.getRelationship(path);\n\n    if (!relationship) return;\n    const query = deleteRecords ? { delete: true } : {};\n\n    await this.clientRecordRelationshipStore.deleteRecordsFromHasMany(\n      parentRecord,\n      relationship,\n      records.map((record) => record.id),\n      query,\n      selectedRecordsContext,\n    );\n  }\n\n  public async fetchRecord(\n    collection: CollectionModel | NestedCollection,\n    record: ClientRecordModel | { id: string },\n    embeddedRecords?: ClientRecordModel[],\n  ): Promise<ClientRecordModel> {\n    if (collection instanceof NestedCollection) {\n      return Object.keys(record).length === 1 && /\\d+/.test(`${record.id}`)\n        ? embeddedRecords?.objectAt(Number.parseInt(record.id, 10))\n        : (record as ClientRecordModel);\n    }\n\n    return (await this.store.findRecordWithTracking(collection, record.id, {\n      reload: true,\n    })) as ClientRecordModel;\n  }\n\n  public async fetchRecordThroughListing(\n    collection: CollectionModel,\n    record: ClientRecordModel | { id: string },\n  ) {\n    // In this case we can use the browse to retrieve everything we need\n    const filter = this.store.createRecord('filter', {\n      filteredCollection: collection,\n      conditions: [\n        {\n          fieldName: collection.primaryKey,\n          operator: OPERATOR_IS.displayName,\n          value: record.id,\n        },\n      ],\n    });\n    const recordContext = new RecordsContext({\n      project: this.lianaSession.currentProject,\n      collection,\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n      isGenericFiltersAvailable: this.lianaFeatures.isFeatureCompatible(\n        FeaturesEnum.GenericFilters,\n      ),\n      filter,\n      columns: collection.fields.map((field) => ({ field })),\n      isKeepingSelectedRecordsOnRefresh: true,\n    });\n    await this.recordsManager.getRecords.perform(recordContext, false);\n\n    // Clean the data\n    filter.unloadRecord();\n\n    return recordContext.records?.firstObject;\n  }\n\n  public async fetchRecords(\n    collection: CollectionModel | NestedCollection,\n    payload: Record<string, unknown>,\n  ) {\n    const records = await this.store.query(collection.emberModelName, payload);\n    return records as unknown as ClientRecordModel[];\n  }\n\n  public async fetchRecordsCount(\n    collection: CollectionModel,\n    payload: Record<string, unknown>,\n    parentRecordId?: string,\n    fieldName?: string,\n  ) {\n    return this.store.count(collection, payload, parentRecordId, fieldName);\n  }\n}\n","import type { EmptyObject } from '@glimmer/component/-private/component';\nimport type CloudHelpFeatureState from 'client/features/cloud/help-state';\nimport type CloudFeatureService from 'client/features/cloud/services/feature';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class CloudCustomizationHelpModalComponent extends Component {\n  @tracked\n  public readonly state: CloudHelpFeatureState;\n\n  @service('feature/cloud')\n  public readonly cloudFeatureService: CloudFeatureService;\n\n  constructor(owner: unknown, args: EmptyObject) {\n    super(owner, args);\n\n    this.state = this.cloudFeatureService.generateHelpState();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  class=\\\"c-feature-cloud-customization-help-modal\\\"\\n  @size=\\\"lg\\\"\\n  data-test-customization-help-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header\\n    @title=\\\"Customize Forest Admin even more\\\"\\n    @subtitle=\\\"Follow these steps to safely customize your admin panel locally, and publish your changes to production.\\\"\\n  />\\n  <Shared::Modal::SplitLayoutBody>\\n    <:nav>\\n      <Shared::Navigation::Sidenav>\\n        <Shared::Navigation::Sidenav::Title @text=\\\"Code customization\\\" />\\n        <Shared::Navigation::Sidenav::Item\\n          @text=\\\"Bootstrap the project\\\"\\n          @icon=\\\"cloud_outlined\\\"\\n          @indicator={{if\\n            (eq\\n              (or\\n                this.cloudFeatureService.alreadyCustomized\\n                this.cloudFeatureService.hasDevelopmentEnvironment\\n              )\\n              true\\n            )\\n            \\'check\\'\\n          }}\\n          @style={{if (eq this.state.tab \\'initialize\\') \\'active\\'}}\\n          {{on \\'click\\' (fn this.cloudFeatureService.changeHelpTab this.state \\'initialize\\')}}\\n          data-test-tab=\\\"initialize\\\"\\n        />\\n        <Shared::Navigation::Sidenav::Item\\n          @text=\\\"Develop locally\\\"\\n          @icon=\\\"engineering\\\"\\n          @indicator={{if (eq this.cloudFeatureService.hasDevelopmentEnvironment true) \\'check\\'}}\\n          @style={{if (eq this.state.tab \\'development\\') \\'active\\'}}\\n          {{on \\'click\\' (fn this.cloudFeatureService.changeHelpTab this.state \\'development\\')}}\\n          data-test-tab=\\\"development\\\"\\n        />\\n        <Shared::Navigation::Sidenav::Item\\n          @text=\\\"Customize code\\\"\\n          @icon=\\\"code\\\"\\n          @style={{if (eq this.state.tab \\'customize\\') \\'active\\'}}\\n          {{on \\'click\\' (fn this.cloudFeatureService.changeHelpTab this.state \\'customize\\')}}\\n          data-test-tab=\\\"customize\\\"\\n        />\\n        <Shared::Navigation::Sidenav::Item\\n          @text=\\\"Publish changes\\\"\\n          @icon=\\\"construction\\\"\\n          @style={{if (eq this.state.tab \\'publish\\') \\'active\\'}}\\n          {{on \\'click\\' (fn this.cloudFeatureService.changeHelpTab this.state \\'publish\\')}}\\n          data-test-tab=\\\"publish\\\"\\n        />\\n        <Shared::Navigation::Sidenav::Separator />\\n        <Shared::Navigation::Sidenav::Title @text=\\\"Discover more\\\" />\\n        <Shared::Navigation::Sidenav::ExternalLink\\n          @text=\\\"Setup guide\\\"\\n          @icon=\\\"school\\\"\\n          @href=\\\"https://docs.forestadmin.com/cloud/code-customization/getting-started\\\"\\n          @style=\\\"secondary\\\"\\n        />\\n        <Shared::Navigation::Sidenav::ExternalLink\\n          @text=\\\"Documentation\\\"\\n          @icon=\\\"article\\\"\\n          @href=\\\"https://docs.forestadmin.com/cloud/\\\"\\n          @style=\\\"secondary\\\"\\n        />\\n        <Shared::Navigation::Sidenav::ExternalLink\\n          @text=\\\"Community\\\"\\n          @icon=\\\"people_alt\\\"\\n          @href=\\\"https://community.forestadmin.com\\\"\\n          @style=\\\"secondary\\\"\\n        />\\n\\n      </Shared::Navigation::Sidenav>\\n    </:nav>\\n    <:content>\\n      {{#if (eq this.state.tab \\'initialize\\')}}\\n        <article data-test-customization-help-modal-content=\\\"initialize\\\">\\n          {{#if (eq this.cloudFeatureService.alreadyCustomized true)}}\\n            <Shared::Feedback::Notification::NotificationInApp\\n              @state=\\\"warning\\\"\\n              @canHide={{false}}\\n              @messageTitle=\\\"Your project has already been bootstrapped.\\\"\\n              @message=\\\"If you bootstrap this project and publish it again, all previous changes will be lost.\\\"\\n              class=\\\"c-feature-cloud-customization-help-modal__warning\\\"\\n              data-test-notification=\\\"bootstrap-warning\\\"\\n            />\\n          {{/if}}\\n\\n          <Shared::Typography::Subtitle2>1. Bootstrap your project structure</Shared::Typography::Subtitle2>\\n          <Shared::Typography::Paragraph @size=\\\"md\\\">\\n            The\\n            <Shared::Typography::Code @size=\\\"md\\\">bootstrap</Shared::Typography::Code>\\n            command will create the project structure on your computer. All the necessary files to\\n            properly add your business logic will be provided. You can run this command in your\\n            terminal, making sure that\\n            <Shared::Typography::Link target=\\\"_blank\\\" href=\\\"https://nodejs.org/en/download\\\">\\n              nodejs and npm\\n            </Shared::Typography::Link>\\n            are installed.\\n          </Shared::Typography::Paragraph>\\n\\n          <Shared::DataDisplay::BetaHighlight\\n            @language=\\\"bash\\\"\\n            @code={{this.state.bootstrapCommand}}\\n            @isCommandLine={{true}}\\n            class=\\\"c-feature-cloud-customization-help-modal__code\\\"\\n          />\\n\\n          <Shared::Typography::Subtitle2>2. Install dependencies</Shared::Typography::Subtitle2>\\n          <Shared::Typography::Paragraph @size=\\\"md\\\">\\n            This command installs necessary dependencies for the Forest Admin Cloud Agent.\\n          </Shared::Typography::Paragraph>\\n          <Shared::DataDisplay::BetaHighlight\\n            @language=\\\"bash\\\"\\n            @code={{this.state.installDependenciesCommand}}\\n            @isCommandLine={{true}}\\n            class=\\\"c-feature-cloud-customization-help-modal__code\\\"\\n          />\\n        </article>\\n      {{else if (eq this.state.tab \\'development\\')}}\\n        <article data-test-customization-help-modal-content=\\\"development\\\">\\n          <Shared::Typography::Paragraph @size=\\\"md\\\">\\n            Setting up a local development environment will enable you to test your code before\\n            publishing changes to production.\\n          </Shared::Typography::Paragraph>\\n\\n          <Shared::Typography::Subtitle2>1. Configure your local environment</Shared::Typography::Subtitle2>\\n          <Shared::Typography::Paragraph @size=\\\"md\\\">\\n            Fill out the\\n            <Shared::Typography::Code @size=\\\"md\\\">datasources.js</Shared::Typography::Code>\\n            file (located at the root of your project) with your local database connection options.\\n          </Shared::Typography::Paragraph>\\n\\n          <Shared::Typography::Subtitle2>2. Start your agent</Shared::Typography::Subtitle2>\\n          <Shared::DataDisplay::BetaHighlight\\n            @language=\\\"bash\\\"\\n            @code=\\\"npm run dev:watch\\\"\\n            @isCommandLine={{true}}\\n            class=\\\"c-feature-cloud-customization-help-modal__code\\\"\\n          />\\n          <Shared::Typography::Paragraph @size=\\\"md\\\">\\n            This will create your own development environment if you did not have one previously.\\n          </Shared::Typography::Paragraph>\\n\\n          <Shared::Typography::Subtitle2>3. Switch to your development environment</Shared::Typography::Subtitle2>\\n          <Shared::Typography::Paragraph @size=\\\"md\\\">\\n            Refresh your browser and click on the Project menu in the top-left hand corner, where\\n            you\\'ll be able to switch from your Production environment to your newly configured\\n            Development environment.\\n          </Shared::Typography::Paragraph>\\n        </article>\\n      {{else if (eq this.state.tab \\'customize\\')}}\\n        <article data-test-customization-help-modal-content=\\\"customize\\\">\\n          <Shared::Typography::Subtitle2>It’s time to code!</Shared::Typography::Subtitle2>\\n          <Shared::Typography::Paragraph @size=\\\"md\\\">\\n            You have now access to the underlying code that feeds your admin panel! Have a look at\\n            the\\n            <Shared::Typography::Link\\n              target=\\\"_blank\\\"\\n              href=\\\"https://docs.forestadmin.com/cloud/code-customization/getting-started\\\"\\n            >\\n              documentation\\n            </Shared::Typography::Link>\\n            to discover all the possibilities. The programming language of choice for writing your\\n            customizations is Typescript.\\n          </Shared::Typography::Paragraph>\\n\\n          <Shared::Typography::Subtitle2>Quick example: Action</Shared::Typography::Subtitle2>\\n          <Shared::Typography::Paragraph @size=\\\"md\\\">\\n            Let’s create an action button in your admin panel.\\n          </Shared::Typography::Paragraph>\\n          <Shared::Typography::Paragraph @size=\\\"md\\\">\\n            Add this code in\\n            <Shared::Typography::Code @size=\\\"md\\\">src/index.ts</Shared::Typography::Code>\\n            file.\\n          </Shared::Typography::Paragraph>\\n\\n          <Shared::DataDisplay::BetaHighlight\\n            @language=\\\"javascript\\\"\\n            @code={{this.state.createActionCode}}\\n            class=\\\"c-feature-cloud-customization-help-modal__code\\\"\\n          />\\n        </article>\\n      {{else if (eq this.state.tab \\'publish\\')}}\\n        <article data-test-customization-help-modal-content=\\\"publish\\\">\\n          <Shared::Typography::Subtitle2>Build and publish the package</Shared::Typography::Subtitle2>\\n          <Shared::Typography::Paragraph @size=\\\"md\\\">\\n            Once ready, execute this command to build and publish the changes you’ve made.\\n          </Shared::Typography::Paragraph>\\n\\n          <Shared::DataDisplay::BetaHighlight\\n            @language=\\\"bash\\\"\\n            @isCommandLine={{true}}\\n            @code=\\\"npm run forestadmin:build:package:publish\\\"\\n            class=\\\"c-feature-cloud-customization-help-modal__code\\\"\\n          />\\n\\n          <Shared::Typography::Subtitle2>Optional: Set up a version control</Shared::Typography::Subtitle2>\\n          <Shared::Typography::Paragraph @size=\\\"md\\\">\\n            To better collaborate with your team, we highly suggest setting up a version control\\n            tool such as git.\\n          </Shared::Typography::Paragraph>\\n        </article>\\n      {{/if}}\\n    </:content>\\n  </Shared::Modal::SplitLayoutBody>\\n</Shared::Modal>\\n', { moduleName: 'client/features/cloud/components/customization-help/modal/template.hbs' });\n","import type CloudFeatureService from 'client/features/cloud/services/feature';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class CloudCustomizationHelpNavigationButtonComponent extends Component {\n  @service('feature/cloud')\n  public readonly cloudFeatureService: CloudFeatureService;\n\n  @service('segment-tracker') segmentTrackerService: SegmentTrackerService;\n\n  @action\n  onClick() {\n    this.segmentTrackerService.trackCloudCustomizationMenuAccessed();\n    this.cloudFeatureService.openHelpModal();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-test-customization-help-navigation-button ...attributes>\\n  {{#if this.cloudFeatureService.canCustomizeEnvironment}}\\n    <Navigation::IconButton\\n      @tooltip=\\\"Customize Forest Admin even more\\\"\\n      @icon=\\\"code\\\"\\n      @onClick={{this.onClick}}\\n      data-test-customization-help-navigation-icon-button\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/cloud/components/customization-help/navigation-button/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type CloudFeatureService from 'client/features/cloud/services/feature';\nimport type CloudDatasourcesInternalService from 'client/features/cloud/services/internal-feature/datasources';\nimport type CloudFeatureState from 'client/features/cloud/state';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport DatasourceModel from 'client/data/models/datasource';\nimport validateArguments from 'client/decorators/validate';\nimport { DatabaseTypeEnum } from 'client/utils/database';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  datasources: DatasourceModel[];\n}\n\n@validateArguments\nexport default class CloudDatasourcesComponent extends Component<Args> {\n  @service private router: RouterService;\n  @service('feature/cloud') cloudService: CloudFeatureService;\n  @service('feature/cloud/state') cloudState: CloudFeatureState;\n  @service lianaSession: LianaSessionService;\n  @service('feature/cloud/internal-feature/datasources')\n  private datasourcesService: CloudDatasourcesInternalService;\n\n  static propTypes = {\n    datasources: PropTypes.arrayOf(PropTypes.instanceOf(DatasourceModel)).isRequired,\n  };\n\n  get displayNewDatasourceModal() {\n    return this.datasourcesService.displayNewDatasourceModal;\n  }\n\n  get datasourceModalStep() {\n    return this.datasourcesService.datasourceModalStep;\n  }\n\n  get isPendingRestart() {\n    return Boolean(this.cloudService.datasourcesPendingUpdate.length);\n  }\n\n  @action\n  getColorFromDatabase(type: DatabaseTypeEnum) {\n    switch (type) {\n      case DatabaseTypeEnum.MariaDB:\n        return '#c0765a';\n      case DatabaseTypeEnum.MicrosoftSQLServer:\n        return '#0560a5';\n      case DatabaseTypeEnum.MongoDB:\n        return '#00ED64';\n      case DatabaseTypeEnum.MySQL:\n        return '#f29221';\n      case DatabaseTypeEnum.Postgresql:\n        return '#0064a5';\n\n      default:\n        return '#505050';\n    }\n  }\n\n  @action\n  async transitionToDatasourceDetails(datasource: DatasourceModel) {\n    await this.router.transitionTo(\n      'project.project-settings.environments.details.databases',\n      datasource.name,\n    );\n  }\n\n  @action\n  async addDatasource() {\n    this.datasourcesService.openNewDatasourceModal();\n  }\n}\n","import type CloudFeatureService from 'client/features/cloud/services/feature';\nimport type CloudDatasourcesInternalService from 'client/features/cloud/services/internal-feature/datasources';\nimport type { RawCredentialsCloud } from 'client/utils/onboarding/database-credentials-cloud';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class CloudDatasourcesNewDatasourceCredentialsComponent extends Component {\n  @service('feature/cloud/internal-feature/datasources')\n  private datasourcesService: CloudDatasourcesInternalService;\n\n  @service('feature/cloud') private cloudService: CloudFeatureService;\n\n  @tracked showValidationErrors = false;\n  @tracked databaseCredentialsFormConfiguration = { skipStrictProtocolCheck: true };\n\n  newDatabaseCredentials: RawCredentialsCloud = this.defaultDatabaseCredentials;\n\n  get defaultDatabaseCredentials(): RawCredentialsCloud {\n    return this.datasourcesService.getDefaultDatabaseCredentials();\n  }\n\n  get nextState() {\n    if (this.datasourcesService.loadingDatasourceCreation) return 'waiting';\n    return 'enabled';\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.cloudService.unsubscribeToUpdateCredentialsEvents();\n  }\n\n  @action\n  async createNewDatasource() {\n    if (!this.newDatabaseCredentials) {\n      this.showValidationErrors = true;\n      return;\n    }\n\n    await this.datasourcesService.createNewDatasource(this.newDatabaseCredentials);\n  }\n\n  @action\n  setDatabaseCredentials(credentials: RawCredentialsCloud) {\n    this.newDatabaseCredentials = credentials;\n  }\n\n  @action\n  fetchSshKeysForFullHostedAgent() {\n    return this.cloudService.fetchSshKeysForFullHostedAgent();\n  }\n\n  @action\n  async onBack() {\n    this.datasourcesService.goBack();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Layout\\n  @phase=\\\"Setup\\\"\\n  @title=\\\"Connect your database\\\"\\n  @pretitle=\\\"Step 2 of 2\\\"\\n  @subtitle=\\\"This newly created datasource will connect to this database.\\\"\\n  @croppedBackground={{false}}\\n  @displayAsModal={{true}}\\n  data-test-feature-cloud-new-datasource-credentials\\n  ...attributes\\n>\\n  <:default>\\n    <DynamicOnboarding::Integration::Forms::DatabaseCredentials\\n      @defaultCredentials={{this.defaultDatabaseCredentials}}\\n      @setDatabaseCredentials={{this.setDatabaseCredentials}}\\n      @isCloudOnboarding={{true}}\\n      @configuration={{this.databaseCredentialsFormConfiguration}}\\n      @customValidator={{null}}\\n      @defaultDisplayURI={{false}}\\n      @showValidationErrors={{this.showValidationErrors}}\\n      @fetchSshKeysForFullHostedAgent={{this.fetchSshKeysForFullHostedAgent}}\\n    />\\n  </:default>\\n\\n  <:bottom>\\n    <Feature::Onboarding::Layout::Footer\\n      @onNext={{this.createNewDatasource}}\\n      @nextState={{this.nextState}}\\n      @isLoading={{this.loadingUpdateCredentials}}\\n      @onBack={{this.onBack}}\\n      @canBack={{true}}\\n    />\\n  </:bottom>\\n\\n</Feature::Onboarding::Layout>\\n', { moduleName: 'client/features/cloud/components/datasources/new-datasource/credentials/template.hbs' });\n","import type CloudDatasourcesInternalService from 'client/features/cloud/services/internal-feature/datasources';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class CloudDatasourcesNewDatasourceDialectComponent extends Component {\n  @service('feature/cloud/internal-feature/datasources')\n  private datasourcesService: CloudDatasourcesInternalService;\n\n  @action\n  async onDatasourceSelected(datasource: string) {\n    this.datasourcesService.datasourceDialect = datasource;\n  }\n\n  @action\n  async setDatasourceDialectAndContinue() {\n    this.datasourcesService.continue();\n  }\n\n  @action\n  async onBack() {\n    this.datasourcesService.goBack();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Layout\\n  @phase=\\\"Setup\\\"\\n  @title=\\\"What database are you using?\\\"\\n  @pretitle=\\\"Step 2 of 3\\\"\\n  @subtitle=\\\"Connect your database to add its collections to your admin panel.\\\"\\n  @croppedBackground={{false}}\\n  @displayAsModal={{true}}\\n  data-test-feature-cloud-new-datasource-dialect\\n  ...attributes\\n>\\n  <:default>\\n    <Feature::Onboarding::Phase::Setup::PickDatasource\\n      @defaultValue={{this.datasourcesService.datasourceDialect}}\\n      @onDatasourceSelected={{this.onDatasourceSelected}}\\n    />\\n\\n  </:default>\\n\\n  <:bottom>\\n    <Feature::Onboarding::Layout::Footer\\n      @onNext={{this.setDatasourceDialectAndContinue}}\\n      @nextState={{unless this.datasourcesService.datasourceDialect \\'disabled\\'}}\\n      @onBack={{this.onBack}}\\n      @canBack={{true}}\\n    />\\n  </:bottom>\\n\\n</Feature::Onboarding::Layout>\\n', { moduleName: 'client/features/cloud/components/datasources/new-datasource/dialect/template.hbs' });\n","import type CloudDatasourcesInternalService from 'client/features/cloud/services/internal-feature/datasources';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class CloudDatasourcesNewDatasourceNameComponent extends Component {\n  @service('feature/cloud/internal-feature/datasources')\n  private datasourcesService: CloudDatasourcesInternalService;\n\n  get isError() {\n    return !this.datasourcesService.isDatasourceNameValid;\n  }\n\n  get errorMessage() {\n    return this.datasourcesService.isNameTaken\n      ? 'Datasource name already exists for this environment'\n      : '';\n  }\n\n  @action\n  async setDatasourceNameAndContinue() {\n    this.datasourcesService.continue();\n  }\n\n  @action\n  async onBack() {\n    this.datasourcesService.goBack();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Layout\\n  @phase=\\\"Setup\\\"\\n  @title=\\\"Choose a name and suffix for your datasource\\\"\\n  @pretitle=\\\"Step 1 of 3\\\"\\n  @subtitle=\\\"The name is used to identify it among others, and the suffix (optional) is there to limit collection name collisions\\\"\\n  @croppedBackground={{false}}\\n  @displayAsModal={{true}}\\n  data-test-feature-cloud-new-datasource-name\\n  ...attributes\\n>\\n  <:default>\\n    <div class=\\\"c-feature-onboarding-setup-create-project\\\">\\n      <div class=\\\"c-feature-onboarding-setup-create-project__form-content\\\">\\n        <Shared::BetaLabel\\n          @label=\\\"Name\\\"\\n          @isError={{this.isError}}\\n          @errorMessage={{this.errorMessage}}\\n          class=\\\"c-feature-onboarding-setup-create-project__label\\\"\\n          @dataTestInputFor=\\\"datasourceName\\\"\\n        >\\n          <Shared::BetaInput\\n            @isRequired={{true}}\\n            @value={{this.datasourcesService.datasource.name}}\\n            @placeholder=\\\"Postgre_BI\\\"\\n            @autofocus={{true}}\\n          />\\n        </Shared::BetaLabel>\\n        <Shared::BetaLabel\\n          @label=\\\"Suffix\\\"\\n          class=\\\"c-feature-onboarding-setup-create-project__label\\\"\\n          @dataTestInputFor=\\\"datasourceSuffix\\\"\\n        >\\n          <Shared::BetaInput\\n            @value={{this.datasourcesService.datasource.suffix}}\\n            @placeholder=\\\"_BI\\\"\\n          />\\n        </Shared::BetaLabel>\\n      </div>\\n    </div>\\n  </:default>\\n\\n  <:bottom>\\n    <Feature::Onboarding::Layout::Footer\\n      @onNext={{this.setDatasourceNameAndContinue}}\\n      @nextState={{if this.isError \\'disabled\\'}}\\n      @onBack={{this.onBack}}\\n      @canBack={{true}}\\n    />\\n  </:bottom>\\n\\n</Feature::Onboarding::Layout>\\n', { moduleName: 'client/features/cloud/components/datasources/new-datasource/name/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-cloud-datasources__add-datasource\\\">\\n  <Shared::Button\\n    @type=\\\"primary\\\"\\n    @text=\\\"Add a new datasource\\\"\\n    @onClick={{this.addDatasource}}\\n    @size=\\\"medium\\\"\\n    disabled={{this.isPendingRestart}}\\n    data-test-add-datasource\\n  />\\n</div>\\n\\n{{#if @datasources}}\\n  {{#if this.isPendingRestart}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"warning\\\"\\n      @canHide={{true}}\\n      @messageTitle=\\\"Attention needed\\\"\\n      class=\\\"c-feature-cloud-datasources__notification\\\"\\n      data-test-sync-message\\n    >\\n      <div class=\\\"c-feature-cloud-datasources__notif-container\\\">\\n        <p> Changes to your datasources require a database schema sync to take effect</p>\\n        <Shared::Button\\n          @text=\\\"Sync database schema\\\"\\n          @type=\\\"primary\\\"\\n          @iconName=\\\"sync\\\"\\n          @onClick={{@restartFullHostedAgent}}\\n          @disabled={{this.cloudState.isAgentRestarting}}\\n          @isLoading={{this.cloudState.isAgentRestarting}}\\n          data-test-cloud-restart-agent\\n        />\\n      </div>\\n    </Shared::Feedback::Notification::NotificationInApp>\\n\\n  {{/if}}\\n  <Shared::DataDisplay::BetaDisplayList\\n    @items={{@datasources}}\\n    @onItemClick={{this.transitionToDatasourceDetails}}\\n    class=\\\"c-feature-cloud-datasources\\\"\\n    data-test-list=\\\"datasources\\\"\\n    ...attributes\\n    as |datasource|\\n  >\\n    <div class=\\\"c-feature-cloud-datasources__list-item\\\">\\n      <div class=\\\"c-feature-cloud-datasources__type\\\">\\n        <Shared::DataDisplay::BetaBadge\\n          @value={{datasource.typeOrUnknown}}\\n          @color={{(this.getColorFromDatabase datasource.typeOrUnknown)}}\\n        />\\n      </div>\\n      <div class=\\\"c-feature-cloud-datasources__name-wrapper\\\">\\n        <span class=\\\"c-feature-cloud-datasources__name\\\">\\n          {{datasource.name}}\\n        </span>\\n      </div>\\n      <div class=\\\"c-feature-cloud-datasources__name-wrapper\\\">\\n        <span class=\\\"c-feature-cloud-datasources__name\\\">\\n          {{datasource.suffix}}\\n        </span>\\n      </div>\\n    </div>\\n  </Shared::DataDisplay::BetaDisplayList>\\n{{else}}\\n  <Shared::BetaLabel>\\n    No database linked\\n  </Shared::BetaLabel>\\n{{/if}}\\n\\n{{#if this.displayNewDatasourceModal}}\\n  {{#if (eq this.datasourceModalStep 1)}}\\n    <Feature::Cloud::Datasources::NewDatasource::Name />\\n  {{else if (eq this.datasourceModalStep 2)}}\\n    <Feature::Cloud::Datasources::NewDatasource::Dialect />\\n  {{else if (eq this.datasourceModalStep 3)}}\\n    <Feature::Cloud::Datasources::NewDatasource::Credentials />\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/features/cloud/components/datasources/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type { UpdateCredentialsModalArgs } from 'client/features/cloud/components/update-credentials-modal/component';\nimport type CloudFeatureService from 'client/features/cloud/services/feature';\nimport type CloudDatasourcesInternalService from 'client/features/cloud/services/internal-feature/datasources';\nimport type CloudFeatureState from 'client/features/cloud/state';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type DatabaseCredentialsCloud from 'client/utils/onboarding/database-credentials-cloud';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport DatasourceModel from 'client/data/models/datasource';\nimport EnvironmentModel from 'client/data/models/environment';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  datasource: DatasourceModel;\n  environment: EnvironmentModel;\n  singleDatasource: boolean;\n}\n\nexport default class CloudProjectCloudSettingsComponent extends Component<Args> {\n  static propTypes = {\n    datasource: PropTypes.instanceOf(DatasourceModel),\n    environment: PropTypes.instanceOf(EnvironmentModel),\n    singleDatasource: PropTypes.bool,\n  };\n\n  @service('feature/modal') modalService: ModalFeatureService;\n  @service('feature/cloud') cloudService: CloudFeatureService;\n  @service('feature/cloud/internal-feature/datasources')\n  datasourcesService: CloudDatasourcesInternalService;\n\n  @service('feature/cloud/state') cloudState: CloudFeatureState;\n  @service router: RouterService;\n  @service lianaSession: LianaSessionService;\n\n  get isAgentRestarting() {\n    return this.cloudState.isAgentRestarting;\n  }\n\n  @action\n  public openUpdateCredentialsModal() {\n    const componentPath = 'feature/cloud/update-credentials-modal';\n    const data: UpdateCredentialsModalArgs['data'] = {\n      updateCredentials: this.updateCredentials.bind(this),\n      defaultType: this.args.datasource.type,\n    };\n\n    this.modalService.open(componentPath, {\n      data,\n    });\n  }\n\n  @action\n  updateCredentials(databaseCredentialsCloud: DatabaseCredentialsCloud) {\n    this.args.datasource.credentials = databaseCredentialsCloud;\n  }\n\n  @action\n  async removeDatasource() {\n    await this.datasourcesService.removeDatasource(Number(this.args.datasource.id));\n  }\n\n  @action\n  async goToEnvironmentDetails() {\n    await this.router.transitionTo(\n      'project.project-settings.environments.details',\n      this.lianaSession.currentEnvironment.name,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout @onClose={{this.goToEnvironmentDetails}}>\\n  <div class=\\\"c-project-cloud-settings\\\" ...attributes>\\n    <Shared::BetaSettingsLayout::Section\\n      @title=\\\"Database credentials\\\"\\n      @description=\\\"Update your database credentials.\\\"\\n    >\\n      <p class=\\\"c-project-cloud-settings__refresh-full-hosted-agent-description\\\">\\n        This action cannot be undone, proceed with care.\\n      </p>\\n      <Shared::Button::BetaButton\\n        @text=\\\"Update credentials\\\"\\n        @type=\\\"warning\\\"\\n        @action={{this.openUpdateCredentialsModal}}\\n        @async={{false}}\\n        data-test-cloud-update-credentials\\n      />\\n    </Shared::BetaSettingsLayout::Section>\\n\\n    <Shared::ContentSeparator @withSideMargin={{true}} class=\\\"c-beta-setting-layout-separator\\\" />\\n    <Shared::BetaSettingsLayout::Section\\n      @title=\\\"Unlink this datasource\\\"\\n      @description=\\\"Close the connection with this database and delete all the layout customizations of the related collections.\\\"\\n    >\\n      <p class=\\\"c-project-cloud-settings__refresh-full-hosted-agent-description\\\">\\n        This action cannot be undone, proceed with care.\\n      </p>\\n      <Feature::CriticalActionConfirmation::Button\\n        @buttonText=\\\"Unlink datasource\\\"\\n        @modalTitle=\\\"Confirm unlink datasource\\\"\\n        @entityName={{@datasource.name}}\\n        @warningMessage=\\\"You are about to unlink the datasource “{{@datasource.name}}”. This will also delete all layout customizations belonging to this datasource.\\\"\\n        @cancelText=\\\"Cancel\\\"\\n        @onConfirm={{this.removeDatasource}}\\n        data-test-cloud-remove-datasource\\n      />\\n    </Shared::BetaSettingsLayout::Section>\\n  </div>\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/features/cloud/components/project-cloud-settings/template.hbs' });\n","import type CloudFeatureService from 'client/features/cloud/services/feature';\nimport type { CloudEventSubscriberId } from 'client/features/cloud/services/internal-business/events';\n\nimport { action } from '@ember/object';\nimport { later } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nconst syncCloudButtonSubscriberId: CloudEventSubscriberId = 'SyncFullHostedButton';\n\nexport default class CloudSynchronizeButtonComponent extends Component {\n  @service('feature/cloud') cloudService: CloudFeatureService;\n\n  @tracked buttonState: 'normal' | 'loading' | 'success' | 'error' | 'reset' = 'normal';\n\n  get classAndIcon() {\n    switch (this.buttonState) {\n      case 'loading':\n        return { class: 'c-cloud-synchronize-button--loading', icon: 'sync' };\n      case 'success':\n        return { class: 'c-cloud-synchronize-button--success', icon: 'published_with_changes' };\n      case 'error':\n        return { class: 'c-cloud-synchronize-button--error', icon: 'sync_problem' };\n      case 'reset':\n        return { class: 'c-cloud-synchronize-button--reset', icon: 'sync' };\n      case 'normal':\n      default:\n        return { class: '', icon: 'sync' };\n    }\n  }\n\n  get isAgentRestarting() {\n    return this.buttonState === 'loading';\n  }\n\n  @action\n  async didInsert() {\n    await this.cloudService.subscribeToRestartEvents(syncCloudButtonSubscriberId, {\n      restartStarted: () => {\n        this.buttonState = 'loading';\n      },\n      restartEnded: this.onRestartEnded.bind(this),\n      restartFailed: this.onRestartFailed.bind(this),\n    });\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.cloudService.unsubscribeToRestartEvents(syncCloudButtonSubscriberId);\n  }\n\n  @action\n  resetButton() {\n    if (this.buttonState === 'error' || this.buttonState === 'success') {\n      this.buttonState = 'reset';\n    }\n  }\n\n  @action\n  async restartFullHostedAgent() {\n    this.buttonState = 'loading';\n    const isOk = await this.cloudService.restartFullHostedAgent();\n\n    if (!isOk) this.onRestartFailed();\n  }\n\n  async onRestartEnded() {\n    this.buttonState = 'success';\n\n    await new Promise<void>((resolve) => {\n      later(() => {\n        resolve();\n      }, 5000);\n    });\n\n    if (this.buttonState === 'success') {\n      this.buttonState = 'reset';\n    }\n  }\n\n  onRestartFailed() {\n    this.buttonState = 'error';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.cloudService.isOnCloudRendering}}\\n  <Navigation::IconButton\\n    {{did-insert this.didInsert}}\\n    {{on \\'mouseenter\\' this.resetButton}}\\n    data-test-full-hosted-sync-btn\\n    @tooltip=\\\"Sync database schema\\\"\\n    @icon={{this.classAndIcon.icon}}\\n    @onClick={{unless this.isAgentRestarting this.restartFullHostedAgent}}\\n    class={{this.classAndIcon.class}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/features/cloud/components/synchronize-button/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type CloudFeatureService from 'client/features/cloud/services/feature';\nimport type CloudDatasourcesInternalService from 'client/features/cloud/services/internal-feature/datasources';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type { DatabaseTypeEnum } from 'client/utils/database';\nimport type { RawCredentialsCloud } from 'client/utils/onboarding/database-credentials-cloud';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport DatabaseCredentialsCloud from 'client/utils/onboarding/database-credentials-cloud';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface UpdateCredentialsModalArgs {\n  data: {\n    updateCredentials: (databaseCredentialsCloud: DatabaseCredentialsCloud) => void;\n    defaultType: DatabaseTypeEnum;\n  };\n}\n\n@validateArguments\nexport default class CloudUpdateCredentialsModalComponent extends Component<UpdateCredentialsModalArgs> {\n  static propTypes = {\n    data: PropTypes.object.isRequired,\n  };\n\n  @service('feature/modal') modalService: ModalFeatureService;\n  @service('feature/cloud') cloudService: CloudFeatureService;\n  @service router: RouterService;\n  @service lianaSession: LianaSessionService;\n\n  @service('feature/cloud/internal-feature/datasources')\n  datasourcesService: CloudDatasourcesInternalService;\n\n  @tracked showValidationErrors = false;\n  @tracked newDatabaseCredentials: RawCredentialsCloud = this.defaultDatabaseCredentials;\n  @tracked databaseCredentialsFormConfiguration = { skipStrictProtocolCheck: true };\n\n  get defaultDatabaseCredentials(): RawCredentialsCloud {\n    return this.datasourcesService.getDefaultDatabaseCredentials(this.args.data.defaultType);\n  }\n\n  @action\n  async saveNewCredentials() {\n    if (!this.newDatabaseCredentials) {\n      this.showValidationErrors = true;\n      return;\n    }\n    this.args.data.updateCredentials(new DatabaseCredentialsCloud(this.newDatabaseCredentials));\n    this.modalService.close();\n    await this.router.transitionTo(\n      'project.project-settings.environments.details',\n      this.lianaSession.currentEnvironment.name,\n    );\n  }\n\n  @action\n  setDatabaseCredentials(credentials: RawCredentialsCloud) {\n    this.newDatabaseCredentials = credentials;\n  }\n\n  @action\n  fetchSshKeysForFullHostedAgent() {\n    return this.cloudService.fetchSshKeysForFullHostedAgent();\n  }\n\n  @action\n  onCloseModal() {\n    this.modalService.close();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  class=\\\"c-feature-cloud-update-credentials-modal\\\"\\n  data-test-database-credentials-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header\\n    @title=\\\"Setup new database credentials\\\"\\n    @subtitle=\\\"This action cannot be undone, proceed with care.\\\"\\n    @noSeparator={{true}}\\n  />\\n\\n  <Shared::Modal::Body>\\n    <DynamicOnboarding::Integration::Forms::DatabaseCredentials\\n      @defaultCredentials={{this.defaultDatabaseCredentials}}\\n      @setDatabaseCredentials={{this.setDatabaseCredentials}}\\n      @isCloudOnboarding={{true}}\\n      @configuration={{this.databaseCredentialsFormConfiguration}}\\n      @customValidator={{null}}\\n      @defaultDisplayURI={{false}}\\n      @showValidationErrors={{this.showValidationErrors}}\\n      @fetchSshKeysForFullHostedAgent={{this.fetchSshKeysForFullHostedAgent}}\\n    />\\n\\n  </Shared::Modal::Body>\\n\\n  <Shared::Modal::ActionFooter\\n    @confirmType=\\\"success\\\"\\n    @confirmText=\\\"Save credentials\\\"\\n    @cancelText=\\\"Discard\\\"\\n    @onConfirm={{this.saveNewCredentials}}\\n    @onCancel={{this.onCloseModal}}\\n    @isLoading={{this.loadingUpdateCredentials}}\\n    @isConfirmDisabled={{this.disableUpdateCredentials}}\\n    data-test-submit-credentials\\n  />\\n</Shared::Modal>\\n', { moduleName: 'client/features/cloud/components/update-credentials-modal/template.hbs' });\n","import type Application from '@ember/application';\nimport type RouterService from '@ember/routing/router-service';\nimport type CloudFeatureService from 'client/features/cloud/services/feature';\nimport type { UpdateCredentialsError } from 'client/features/cloud/services/feature';\n// FIXME\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type CloudEventsService from 'client/features/cloud/services/internal-business/events';\nimport type CloudDatasourcesInternalService from 'client/features/cloud/services/internal-feature/datasources';\nimport type CloudFeatureState from 'client/features/cloud/state';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\ntype Args = Record<string, never>;\n\nexport default class CloudWaitForSynchronizationModalComponent extends Component<Args> {\n  @service('feature/modal') modalService: ModalFeatureService;\n  @service('feature/cloud') cloudService: CloudFeatureService;\n  @service('feature/cloud/internal-business/events') cloudEventsService: CloudEventsService;\n  @service router: RouterService;\n  @service lianaSession: LianaSessionService;\n\n  @service('feature/cloud/internal-feature/datasources')\n  datasourcesService: CloudDatasourcesInternalService;\n\n  @service('feature/cloud/state') cloudState: CloudFeatureState;\n  @service('feature/notification') notificationBusinessService: NotificationFeatureService;\n\n  @tracked loadingUpdateCredentials = false;\n  @tracked databaseCredentialsFormConfiguration = { skipStrictProtocolCheck: true };\n\n  @tracked missingCollectionsError = null as UpdateCredentialsError;\n  @tracked disableUpdateCredentials = false;\n  @tracked error;\n\n  constructor(owner: Application, args: Args) {\n    super(owner, args);\n    void this.initialize();\n  }\n\n  async initialize() {\n    await this.cloudService.restartFullHostedAgent();\n    await this.cloudService.subscribeToUpdateCredentialsEvents(\n      this.onUpdateCredentialsFailed.bind(this),\n    );\n    await this.cloudService.subscribeToRestartEvents('ProjectSettings', {\n      restartEnded: this.onUpdateCredentialsSucceeded.bind(this),\n    });\n  }\n\n  @action\n  async onUpdateCredentialsSucceeded() {\n    await this.reset();\n    this.modalService.close();\n    this.notificationBusinessService.createToastr(\n      ToastrTypeEnum.Success,\n      'Your database credentials have been updated successfully!',\n    );\n  }\n\n  @action\n  async retry() {\n    this.resetError();\n    await this.cloudService.restartFullHostedAgent();\n  }\n\n  @action\n  async saveNewCredentials() {\n    this.resetError();\n    await this.cloudService.restartFullHostedAgent({ forceToUpdate: true });\n  }\n\n  @action\n  async onCloseModal() {\n    if (this.loadingUpdateCredentials) return;\n    await this.reset();\n    this.modalService.close();\n  }\n\n  @action\n  onChangeConfirmationInput(newValue) {\n    if (newValue === 'CONFIRM UPDATE') {\n      this.disableUpdateCredentials = false;\n    } else {\n      this.disableUpdateCredentials = true;\n    }\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.cloudService.unsubscribeToUpdateCredentialsEvents();\n  }\n\n  @action\n  onUpdateCredentialsFailed(error: UpdateCredentialsError) {\n    this.error = error.error;\n    this.loadingUpdateCredentials = false;\n    if (error.missingCollections?.length > 0) {\n      this.missingCollectionsError = error;\n      this.disableUpdateCredentials = true;\n    }\n  }\n\n  private async reset() {\n    await this.cloudService.discardCredentialChanges();\n    this.missingCollectionsError = null;\n    this.error = null;\n    this.loadingUpdateCredentials = false;\n    this.disableUpdateCredentials = false;\n    this.resetError();\n  }\n\n  private resetError() {\n    this.missingCollectionsError = null;\n    this.error = null;\n  }\n\n  get missingCollectionsMessage() {\n    const first3MissingCollections = this.missingCollectionsError?.missingCollections\n      .slice(0, 3)\n      ?.join(', ');\n    if (this.missingCollectionsError?.missingCollections.length <= 3)\n      return `${first3MissingCollections}.`;\n    return `${first3MissingCollections} and ${\n      // eslint-disable-next-line no-unsafe-optional-chaining\n      this.missingCollectionsError?.missingCollections.length - 3\n    } more.`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  @size=\\\"lg\\\"\\n  class=\\\"c-feature-cloud-wait-for-synchronization-modal\\\"\\n  data-test-database-credentials-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header\\n    @title=\\\"Changes to your agent are being applied\\\"\\n    @subtitle=\\\"Please hang on…\\\"\\n    @noSeparator={{true}}\\n  />\\n  <Shared::Modal::Body class=\\\"c-feature-cloud-wait-for-synchronization-modal__body\\\">\\n    {{#if this.missingCollectionsError}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"warning\\\"\\n        @messageTitle=\\\"Attention needed\\\"\\n        class=\\\"c-feature-cloud-wait-for-synchronization-modal__notification\\\"\\n        data-test-confirmation-message\\n      >\\n        <p>\\n          We’ve noticed that some collections are missing from these new databases:\\n          {{this.missingCollectionsMessage}}\\n        </p>\\n        <p>If you proceed, you will lose all customizations linked to these collections.</p>\\n      </Shared::Feedback::Notification::NotificationInApp>\\n      <Shared::BetaLabel\\n        @label=\\\"Please type “CONFIRM UPDATE” to proceed\\\"\\n        @important={{true}}\\n        class=\\\"c-feature-cloud-wait-for-synchronization-modal__confirmation-input\\\"\\n      >\\n        <Shared::BetaInput\\n          @onChange={{this.onChangeConfirmationInput}}\\n          @placeholder=\\\"CONFIRM UPDATE\\\"\\n          data-test-confirmation-input\\n        />\\n      </Shared::BetaLabel>\\n    {{else if this.error}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"warning\\\"\\n        @messageTitle=\\\"Attention needed\\\"\\n        class=\\\"c-feature-cloud-wait-for-synchronization-modal__notification\\\"\\n        data-test-confirmation-message\\n      >\\n        <p>\\n          An error occurred while trying to change your datasource(s):\\n          {{this.error}}\\n        </p>\\n      </Shared::Feedback::Notification::NotificationInApp>\\n    {{else}}\\n      <Layout::LayoutLoader @withNoBackground={{true}} @type=\\\"loading\\\" />\\n    {{/if}}\\n  </Shared::Modal::Body>\\n\\n  {{#if this.missingCollectionsError}}\\n    <Shared::Modal::ActionFooter\\n      @confirmType=\\\"success\\\"\\n      @confirmText=\\\"Confirm update\\\"\\n      @cancelText=\\\"Discard\\\"\\n      @onConfirm={{this.saveNewCredentials}}\\n      @onCancel={{this.onCloseModal}}\\n      @isLoading={{this.loadingUpdateCredentials}}\\n      @isConfirmDisabled={{this.disableUpdateCredentials}}\\n      data-test-submit-credentials\\n    />\\n  {{else if this.error}}\\n    <Shared::Modal::ActionFooter\\n      @confirmType=\\\"success\\\"\\n      @confirmText=\\\"Retry\\\"\\n      @cancelText=\\\"Discard\\\"\\n      @onConfirm={{this.retry}}\\n      @onCancel={{this.onCloseModal}}\\n      @isLoading={{this.loadingUpdateCredentials}}\\n      @isConfirmDisabled={{false}}\\n      data-test-submit-credentials\\n    />\\n  {{/if}}\\n</Shared::Modal>\\n', { moduleName: 'client/features/cloud/components/wait-for-synchronization-modal/template.hbs' });\n","import { tracked } from '@glimmer/tracking';\n\nexport type CloudHelpTab = 'initialize' | 'development' | 'customize' | 'publish';\n\nexport default class CloudHelpFeatureState {\n  @tracked\n  public bootstrapCommand: string = undefined;\n\n  @tracked\n  public createActionCode: string = undefined;\n\n  @tracked\n  public installDependenciesCommand: string = undefined;\n\n  @tracked\n  public tab: CloudHelpTab;\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type DatasourceModel from 'client/data/models/datasource';\nimport type { CloudHelpTab } from 'client/features/cloud/help-state';\nimport type CloudEventsService from 'client/features/cloud/services/internal-business/events';\nimport type { CloudEventSubscriberId } from 'client/features/cloud/services/internal-business/events';\nimport type CloudHelpBusinessService from 'client/features/cloud/services/internal-business/help';\nimport type CloudFeatureState from 'client/features/cloud/state';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type { HandlerDefinition } from 'client/shared/services/abstract/events';\nimport type { RawCredentialsCloudSerialized } from 'client/utils/onboarding/database-credentials-cloud';\nimport type DatabaseCredentialsCloud from 'client/utils/onboarding/database-credentials-cloud';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\n\nimport { PermissionLevelEnum } from 'client/data/models/invitation';\nimport CloudHelpFeatureState from 'client/features/cloud/help-state';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { getFirstErrorDetail } from 'client/utils/ember-error-util';\n\nexport type SshKeys = { public: string; private: string };\n\nexport type UpdateCredentialsError = {\n  error: string;\n  missingCollections?: string[];\n};\n\nexport default class CloudFeatureService extends Service {\n  private fullHostedAgentToastr: string | null;\n  private waitingForAgentRestart = false;\n\n  @service('feature/cloud/internal-business/help') helpService: CloudHelpBusinessService;\n  @service('feature/cloud/internal-business/events') cloudEventsService: CloudEventsService;\n  @service('feature/cloud/state') cloudState: CloudFeatureState;\n\n  @service('feature/modal') modalService: ModalFeatureService;\n  @service('feature/notification') notificationBusinessService: NotificationFeatureService;\n  @service tracker: TrackerService;\n  @service serverFetch: ServerFetchService;\n  @service lianaSession: LianaSessionService;\n  @service currentUser: CurrentUserService;\n  @service router: RouterService;\n\n  get isOnCloudRendering(): boolean {\n    return (\n      Boolean(this.lianaSession.currentProject?.isFullHostedProject)\n      && this.router.currentRouteName.startsWith('project.rendering')\n    );\n  }\n\n  get canCustomizeEnvironment(): boolean {\n    return (\n      [PermissionLevelEnum.Admin, PermissionLevelEnum.Developer].includes(\n        this.currentUser?.model?.permissionLevel,\n      ) && this.isOnCloudRendering\n    );\n  }\n\n  get alreadyCustomized(): boolean {\n    return Boolean(this.lianaSession.currentProject.defaultEnvironment.firstCustomizedAt);\n  }\n\n  get hasDevelopmentEnvironment(): boolean {\n    return Boolean(this.currentUser.model.developmentEnvironment);\n  }\n\n  get datasourcesPendingUpdate(): DatasourceModel[] {\n    return this.lianaSession.currentEnvironment.datasources.filter(\n      (datasource) => datasource.credentials,\n    );\n  }\n\n  clearNotification() {\n    this.notificationBusinessService.removeToastr(this.fullHostedAgentToastr);\n  }\n\n  @action\n  public openHelpModal() {\n    const componentPath = 'feature/cloud/customization-help/modal';\n\n    this.modalService.open(componentPath);\n  }\n\n  /**\n   * We want a state to be returned synchronously,\n   * and then we update it when we receive the async data.\n   */\n  public generateHelpState(): CloudHelpFeatureState {\n    const state = new CloudHelpFeatureState();\n\n    state.tab = 'initialize';\n    state.bootstrapCommand = this.helpService.generateDefaultBootstrapCommand();\n    state.installDependenciesCommand = this.helpService.generateInstallDependenciesCommand();\n    state.createActionCode = this.helpService.defaultCreateActionCode;\n\n    if (this.hasDevelopmentEnvironment) {\n      state.tab = 'customize';\n    } else if (this.alreadyCustomized) {\n      state.tab = 'development';\n    }\n\n    this.helpService\n      .generateSpecificBootstrapCommand()\n      .then((command) => {\n        state.bootstrapCommand = command;\n      })\n      .catch((error: Error) => {\n        console.warn('Error while generating default bootstrap command', error);\n        this.tracker.captureException(error);\n      });\n\n    return state;\n  }\n\n  @action\n  public changeHelpTab(state: CloudHelpFeatureState, tab: CloudHelpTab) {\n    state.tab = tab;\n  }\n\n  /** API */\n  async fetchSshKeysForFullHostedAgent(): Promise<SshKeys> {\n    try {\n      const response = await this.serverFetch.fetch(\n        '/api/full-hosted-agent/ssh-keys',\n        {\n          method: 'GET',\n          credentials: 'include',\n        },\n        true,\n      );\n\n      return (await response.json()) as SshKeys;\n    } catch (error) {\n      this.tracker.captureException(error as Error);\n      console.debug(error);\n      return null;\n    }\n  }\n\n  async createFullHostedAgent(credentials: DatabaseCredentialsCloud): Promise<boolean> {\n    try {\n      // we don't want to send the public key to the server because we don't need it\n      const serializedCredentials = this.removePublicKeyFromCredentials(credentials);\n\n      await this.serverFetch.fetch(\n        '/api/full-hosted-agent',\n        {\n          method: 'POST',\n          credentials: 'include',\n          body: JSON.stringify({ data: serializedCredentials }),\n        },\n        true,\n      );\n\n      return true;\n    } catch (error) {\n      this.tracker.captureException(error as Error);\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Error,\n        getFirstErrorDetail(error as Error),\n      );\n      return false;\n    }\n  }\n\n  async restartFullHostedAgent(\n    options: { forceToUpdate: boolean } = { forceToUpdate: false },\n    callback?: () => unknown,\n  ): Promise<boolean> {\n    let isOk = true;\n    this.cloudState.isAgentRestarting = true;\n    this.waitingForAgentRestart = true;\n    const { forceToUpdate } = options;\n\n    try {\n      if (this.datasourcesPendingUpdate.length) {\n        await this.updateDatabaseCredentialsAndRestart(forceToUpdate);\n      } else {\n        await this.simpleAgentRestart();\n      }\n    } catch (e) {\n      const error = e as Error;\n      this.tracker.captureException(error);\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Error,\n        getFirstErrorDetail(error) || error.message,\n      );\n      isOk = false;\n      this.cloudState.isAgentRestarting = false;\n      this.waitingForAgentRestart = false;\n    } finally {\n      if (callback) callback();\n    }\n\n    return isOk;\n  }\n\n  private async simpleAgentRestart() {\n    await this.serverFetch.fetch(\n      `/api/full-hosted-agent`,\n      {\n        method: 'PATCH',\n        credentials: 'include',\n      },\n      true,\n    );\n  }\n\n  private async updateDatabaseCredentialsAndRestart(forceToUpdate = false) {\n    // we don't want to send the public key to the server because we don't need it\n    const serializedCredentials = this.datasourcesPendingUpdate.map((datasource) => ({\n      credentials: this.removePublicKeyFromCredentials(datasource.credentials),\n      datasourceId: datasource.id,\n    }));\n\n    await this.serverFetch.fetch(`/api/full-hosted-agent/database-credentials`, {\n      method: 'PATCH',\n      body: JSON.stringify({\n        data: { datasources: serializedCredentials, forceToUpdate },\n      }),\n    });\n  }\n\n  private removePublicKeyFromCredentials(\n    credentials: DatabaseCredentialsCloud,\n  ): RawCredentialsCloudSerialized {\n    const serializedCredentials = credentials.serialize();\n\n    delete serializedCredentials.ssh?.publicKey;\n    return serializedCredentials;\n  }\n\n  /* EVENTS: DEPLOY */\n\n  async subscribeToDeployFailedEvent(onError?: HandlerDefinition) {\n    await this.cloudEventsService.subscribeToEvent('deployFailed', async (error: string) => {\n      const formattedError = this.cloudEventsService.formatDeployError(error);\n      await onError(formattedError);\n    });\n  }\n\n  unsubscribeToDeployFailedEvent() {\n    this.cloudEventsService.unsubscribeToEvent('deployFailed');\n  }\n\n  /* EVENTS: RESTART AGENT */\n\n  async displayToastersOnRestartEvents() {\n    await this.cloudEventsService.subscribeToEvents({\n      restartStarted: this.onRestartStarted.bind(this),\n      restartEnded: this.onRestartEnded.bind(this),\n      restartFailed: this.onRestartFailed.bind(this),\n    });\n  }\n\n  stopDisplayingToastersOnRestartEvents() {\n    this.cloudEventsService.unsubscribeEntityToEvent('global', 'restartStarted');\n    this.cloudEventsService.unsubscribeEntityToEvent('global', 'restartEnded');\n    this.cloudEventsService.unsubscribeEntityToEvent('global', 'restartFailed');\n  }\n\n  async subscribeToRestartEvents(\n    entityId: CloudEventSubscriberId,\n    handlers: Partial<{\n      restartStarted: HandlerDefinition;\n      restartEnded: HandlerDefinition;\n      restartFailed: HandlerDefinition;\n    }>,\n  ) {\n    await this.cloudEventsService.subscribeToEvents(handlers, { entityId });\n  }\n\n  async waitForAgentRestart(entityId: CloudEventSubscriberId, environmentId: string) {\n    const graphQLQuery = this.cloudEventsService.getQraphQLQuery('restartEnded', environmentId);\n\n    return new Promise<void>((resolve) => {\n      this.cloudEventsService\n        .subscribeToEvent('restartEnded', resolve, {\n          entityId,\n          singleUse: true,\n          graphQLQuery,\n        })\n        .catch(resolve);\n    });\n  }\n\n  unsubscribeToRestartEvents(entityId: CloudEventSubscriberId) {\n    this.cloudEventsService.unsubscribeEntityToEvents(entityId, ['restartEnded', 'restartFailed']);\n  }\n\n  private async onRestartStarted() {\n    this.cloudState.isAgentRestarting = true;\n\n    if (this.waitingForAgentRestart) {\n      this.fullHostedAgentToastr = this.notificationBusinessService.updateToastr(\n        ToastrTypeEnum.Loading,\n        'Your agent is restarting, please wait.',\n        this.fullHostedAgentToastr,\n        { duration: 0 },\n      );\n    }\n  }\n\n  private async onRestartFailed(error: string) {\n    this.cloudState.isAgentRestarting = false;\n\n    if (this.waitingForAgentRestart) {\n      this.fullHostedAgentToastr = this.notificationBusinessService.updateToastr(\n        ToastrTypeEnum.Error,\n        `An error occurred when restarting your agent: ${error}`,\n        this.fullHostedAgentToastr,\n      );\n      this.waitingForAgentRestart = false;\n    }\n  }\n\n  private async onRestartEnded() {\n    this.cloudState.isAgentRestarting = false;\n\n    if (this.waitingForAgentRestart) {\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Success,\n        'Your agent has been restarted successfully.',\n      );\n      this.waitingForAgentRestart = false;\n    }\n\n    this.fullHostedAgentToastr = this.notificationBusinessService.updateToastr(\n      ToastrTypeEnum.Success,\n      'Some changes has been made to your admin panel. Please refresh your browser to see the changes.',\n      this.fullHostedAgentToastr,\n    );\n  }\n\n  /* EVENTS: UPDATE CREDENTIALS */\n\n  /**\n   * single use subscription: handlers will be removed after one is triggered\n   */\n  async subscribeToUpdateCredentialsEvents(onError?: (error: UpdateCredentialsError) => void) {\n    const promises: Promise<void>[] = [];\n\n    promises.push(\n      this.cloudEventsService.subscribeToEvent(\n        'updateCredentialsStarted',\n        this.onUpdateCredentialsStarted.bind(this),\n        { singleUse: true },\n      ),\n    );\n\n    promises.push(\n      this.cloudEventsService.subscribeToEvent(\n        'updateCredentialsFailed',\n        (error: UpdateCredentialsError) => {\n          this.onUpdateCredentialsFailed(error);\n          onError?.(error);\n        },\n        { singleUse: true },\n      ),\n    );\n\n    await Promise.all(promises);\n  }\n\n  unsubscribeToUpdateCredentialsEvents() {\n    this.cloudEventsService.unsubscribeToEvent('updateCredentialsStarted');\n    this.cloudEventsService.unsubscribeToEvent('updateCredentialsFailed');\n  }\n\n  private async onUpdateCredentialsStarted() {\n    this.cloudState.isAgentRestarting = true;\n    this.fullHostedAgentToastr = this.notificationBusinessService.updateToastr(\n      ToastrTypeEnum.Loading,\n      'Updating database credentials, please wait. This can take several seconds.',\n      this.fullHostedAgentToastr,\n      { duration: 0 },\n    );\n  }\n\n  private onUpdateCredentialsFailed(error: UpdateCredentialsError) {\n    if (error.missingCollections) {\n      this.notificationBusinessService.removeToastr(this.fullHostedAgentToastr);\n    } else {\n      this.fullHostedAgentToastr = this.notificationBusinessService.updateToastr(\n        ToastrTypeEnum.Error,\n        `An error occurred, when updating database credentials: ${error.error}`,\n        this.fullHostedAgentToastr,\n      );\n    }\n  }\n\n  public async discardCredentialChanges() {\n    this.datasourcesPendingUpdate.forEach((datasource) => {\n      datasource.credentials = null;\n    });\n    await this.lianaSession.currentEnvironment.datasources.reload();\n  }\n}\n","import type CustomApolloService from 'client/legacy/services/apollo';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type { GraphQLQuery, HandlerDefinition } from 'client/shared/services/abstract/events';\nimport type { DocumentNode } from 'graphql';\n\nimport { service } from '@ember/service';\nimport { queryManager } from 'ember-apollo-client';\n\nimport queryFullHostedDeployFailed from 'client/gql/subscriptions/full-hosted-deploy-failed.graphql';\nimport queryFullHostedRestartEnded from 'client/gql/subscriptions/full-hosted-restart-ended.graphql';\nimport queryFullHostedRestartFailed from 'client/gql/subscriptions/full-hosted-restart-failed.graphql';\nimport queryFullHostedRestartStarted from 'client/gql/subscriptions/full-hosted-restart-started.graphql';\nimport queryFullHostedUpdateCredentialsFailed from 'client/gql/subscriptions/full-hosted-update-credentials-failed.graphql';\nimport queryFullHostedUpdateCredentialsStarted from 'client/gql/subscriptions/full-hosted-update-credentials-started.graphql';\nimport AbstractEventsService from 'client/shared/services/abstract/events';\n\nexport type CloudEventSubscriberId =\n  | 'ProjectSettings' // restart ended, for update credentials\n  | 'SyncFullHostedButton' // restart ended & failed, for button style\n  | 'OnboardingIntegrationController' // restart ended & failed, for onboarding finish & error\n  | 'Authentication' // wait for agent restart before redirecting to project\n  | 'Onboarding' // trigger end of onboarding animation\n  | 'CollectionSettings'; // restart ended, for manual agent restart\n// 'global': toasters & cloud state\n\nexport type CloudEvent =\n  | 'deployFailed'\n  | 'restartStarted'\n  | 'restartEnded'\n  | 'restartFailed'\n  | 'updateCredentialsStarted'\n  | 'updateCredentialsFailed';\n\nexport type CloudEventListener = (\n  apollo: CustomApolloService,\n  environmentId: string,\n  callback: HandlerDefinition,\n) => Promise<unknown>;\n\nconst CLOUD_EVENT_QUERIES: Record<CloudEvent, { query: DocumentNode; resultKey?: string }> = {\n  deployFailed: {\n    query: queryFullHostedDeployFailed,\n    resultKey: 'fullHostedDeployFailed',\n  },\n  restartEnded: {\n    query: queryFullHostedRestartEnded,\n    resultKey: 'fullHostedRestartEnded',\n  },\n  restartFailed: {\n    query: queryFullHostedRestartFailed,\n    resultKey: 'fullHostedRestartFailed',\n  },\n  restartStarted: {\n    query: queryFullHostedRestartStarted,\n    resultKey: 'fullHostedRestartStarted',\n  },\n  updateCredentialsFailed: {\n    query: queryFullHostedUpdateCredentialsFailed,\n    resultKey: 'fullHostedUpdateCredentialsFailed',\n  },\n  updateCredentialsStarted: {\n    query: queryFullHostedUpdateCredentialsStarted,\n    resultKey: 'fullHostedUpdateCredentialsStarted',\n  },\n};\n\nexport default class CloudEventsInternalBusinessService extends AbstractEventsService<CloudEvent> {\n  @service private lianaSession: LianaSessionService;\n\n  @queryManager() declare apollo: CustomApolloService;\n\n  get currentEnvId() {\n    return (\n      this.lianaSession.currentEnvironment?.id\n      || this.lianaSession.currentProject?.defaultEnvironment.id\n    );\n  }\n\n  override getQraphQLQuery(eventName: CloudEvent, environmentId?: string): GraphQLQuery {\n    return {\n      ...CLOUD_EVENT_QUERIES[eventName],\n      variables: { environmentId: Number.parseInt(environmentId || this.currentEnvId, 10) },\n    };\n  }\n\n  formatDeployError(error: string) {\n    let formattedError: string;\n    if (/database is empty/i.test(error)) {\n      formattedError =\n        'An error occurred when creating your agent: Empty database. To work properly, '\n        + 'Forest Admin needs your database not to be empty. Add a schema to your database and retry.';\n    } else {\n      formattedError =\n        `An error occurred when creating your agent: `\n        + `<strong>${error}${error.endsWith('.') ? '' : '.'}</strong> `\n        + `You can check your credentials and retry.`;\n    }\n\n    return formattedError;\n  }\n}\n","import type LianaSessionService from 'client/legacy/services/liana-session';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type EnvironmentSharedBusinessService from 'client/shared/services/environment';\n\nimport Service, { service } from '@ember/service';\n\nimport config from 'client/config/environment';\n\nfunction indent(text: string): string {\n  const withoutFirstLineReturn = text.replace(/^\\n/, '');\n  const indentation = withoutFirstLineReturn.match(/^\\s*/)[0];\n  const indentationSize = indentation.length;\n\n  return withoutFirstLineReturn.replace(new RegExp(`^\\\\s{${indentationSize}}`, 'gm'), '').trim();\n}\n\nfunction sanitizeName(text: string): string {\n  return text.trim().replace(/\\s+/g, '_').toLowerCase();\n}\n\nconst DEFAULT_DIRECTORY_NAME = 'forestadmin';\n\nexport default class CloudHelpInternalBusinessService extends Service {\n  @service serverFetch: ServerFetchService;\n  @service lianaSession: LianaSessionService;\n  @service('shared/environment') environmentService: EnvironmentSharedBusinessService;\n\n  public get defaultCreateActionCode(): string {\n    const { collections } = this.lianaSession.rendering;\n\n    const exampleCollection = collections.find((collection) =>\n      ['user', 'users', 'invoice', 'invoices', 'order', 'orders', 'company', 'companies'].includes(\n        collection.name.toLowerCase(),\n      ),\n    ) || { name: 'company' };\n\n    let actionName = 'Change status';\n    let actionSuccess = 'Status successfully changed';\n\n    switch (exampleCollection?.name.toLowerCase()) {\n      case 'user':\n      case 'users':\n        actionName = 'Send email';\n        actionSuccess = 'Email successfully sent';\n        break;\n      case 'invoice':\n      case 'invoices':\n        actionName = 'Refund';\n        actionSuccess = 'Invoice refunded';\n        break;\n      case 'order':\n      case 'orders':\n        actionName = 'Cancel Order';\n        actionSuccess = 'Order canceled';\n        break;\n      case 'company':\n      case 'companies':\n        actionName = 'Mark as Live';\n        actionSuccess = 'Company marked as live';\n        break;\n      default:\n    }\n\n    return indent(`\n      agent.customizeCollection('${exampleCollection.name}', (collection) => {\n        collection.addAction('${actionName}', {\n          scope: 'Single',\n          execute: async (context, resultBuilder) => {\n            try {\n              // Your business logic here\n\n              return resultBuilder.success('${actionSuccess}');\n            } catch (error) {\n              return resultBuilder.error(error.message);\n            }\n          },\n        });\n      });`);\n  }\n\n  public generateInstallDependenciesCommand(): string {\n    const projectName = this.lianaSession.currentProject?.name;\n    return indent(`\n      cd \"${projectName ? sanitizeName(projectName) : DEFAULT_DIRECTORY_NAME}\"\n      npm install -s\n    `);\n  }\n\n  private generateBootstrapCommand(environmentSecret: string | undefined): string {\n    const projectName = this.lianaSession.currentProject?.name;\n    const envVariablesPrefix =\n      config.APP.apiServerHost !== 'https://api.forestadmin.com'\n        ? `${[\n            `NODE_TLS_REJECT_UNAUTHORIZED=0`,\n            `FOREST_SERVER_URL=\"${config.APP.apiServerHost}\"`,\n            `FOREST_SUBSCRIPTION_URL=\"${config.APP.apiServerHost\n              .replace(/^https:\\/\\//, 'wss://')\n              .replace(/\\/$/, '')}/subscriptions\"`,\n          ].join(' ')} `\n        : '';\n\n    const commandStart = `npx @forestadmin/forest-cloud@latest bootstrap`;\n    const envSecretPart = `--env-secret ${environmentSecret || \"[Environment's secret key]\"}`;\n    const directoryName = projectName ? sanitizeName(projectName) : DEFAULT_DIRECTORY_NAME;\n\n    return `${envVariablesPrefix}${commandStart} ${envSecretPart} \"${directoryName}\"`;\n  }\n\n  public generateDefaultBootstrapCommand(): string {\n    return this.generateBootstrapCommand(undefined);\n  }\n\n  public async generateSpecificBootstrapCommand(): Promise<string> {\n    if (this.lianaSession.currentEnvironment) {\n      const secret = await this.environmentService.fetchSecretKey(\n        this.lianaSession.currentEnvironment.id,\n      );\n\n      return this.generateBootstrapCommand(secret);\n    }\n\n    throw new Error('No environment found');\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type DatasourceModel from 'client/data/models/datasource';\nimport type CloudFeatureService from 'client/features/cloud/services/feature';\nimport type { UpdateCredentialsError } from 'client/features/cloud/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\nimport type { RawCredentialsCloud } from 'client/utils/onboarding/database-credentials-cloud';\n\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { mariaDbDefaultCredentials } from 'client/legacy/pods/project/onboarding/flows/databases/maria-db';\nimport { microsoftSqlDefaultCredentials } from 'client/legacy/pods/project/onboarding/flows/databases/microsoft-sql';\nimport { mySqlDefaultCredentials } from 'client/legacy/pods/project/onboarding/flows/databases/my-sql';\nimport { postgresSqlDefaultCredentials } from 'client/legacy/pods/project/onboarding/flows/databases/postgres-sql';\nimport { DatabaseTypeEnum } from 'client/utils/database';\nimport DatabaseCredentialsCloud from 'client/utils/onboarding/database-credentials-cloud';\n\nexport default class CloudDatasourcesInternalService extends Service {\n  @service('feature/notification') notificationBusinessService: NotificationFeatureService;\n  @service('feature/cloud') private cloudService: CloudFeatureService;\n  @service serverFetch: ServerFetchService;\n  @service lianaSession: LianaSessionService;\n  @service store: StoreService;\n  @service router: RouterService;\n  @service errorHandler: ErrorHandlerService;\n\n  @tracked datasource: DatasourceModel;\n  @tracked datasourceDialect: string;\n  @tracked displayNewDatasourceModal = false;\n  @tracked datasourceModalStep = 1;\n  @tracked loadingDatasourceCreation = false;\n\n  private get isDatasourceNameEmpty() {\n    return !this.datasource.name || this.datasource.name.trim() === '';\n  }\n\n  get isNameTaken() {\n    const { datasources } = this.lianaSession.currentEnvironment;\n    return Boolean(\n      datasources\n        .map((datasource) => datasource.name.toLowerCase())\n        .includes(this.datasource.name?.toLowerCase()),\n    );\n  }\n\n  get isDatasourceNameValid() {\n    return !this.isDatasourceNameEmpty && !this.isNameTaken;\n  }\n\n  public getDefaultDatabaseCredentials(dialect?: DatabaseTypeEnum | string): RawCredentialsCloud {\n    switch (dialect || this.datasourceDialect) {\n      case DatabaseTypeEnum.MariaDB:\n        return { ...mariaDbDefaultCredentials, host: '' };\n      case 'microsoftsql':\n      case DatabaseTypeEnum.MicrosoftSQLServer:\n        return { ...microsoftSqlDefaultCredentials, host: '' };\n      case DatabaseTypeEnum.MySQL:\n        return { ...mySqlDefaultCredentials, host: '' };\n      case DatabaseTypeEnum.Postgresql:\n      default:\n        return { ...postgresSqlDefaultCredentials, host: '' };\n    }\n  }\n\n  openNewDatasourceModal() {\n    if (!this.datasource) this.datasource = this.store.createRecord('datasource');\n    this.displayNewDatasourceModal = true;\n    this.datasourceModalStep = 1;\n  }\n\n  goBack() {\n    this.datasourceModalStep -= 1;\n    if (this.datasourceModalStep === 0) {\n      this.displayNewDatasourceModal = false;\n      this.datasource = null;\n    }\n  }\n\n  continue() {\n    this.datasourceModalStep += 1;\n  }\n\n  setDatasourceDialectAndContinue(dialect: string) {\n    this.datasourceDialect = dialect;\n    this.datasourceModalStep = 3;\n  }\n\n  public async createNewDatasource(credentials: RawCredentialsCloud) {\n    try {\n      this.loadingDatasourceCreation = true;\n      await this.cloudService.subscribeToUpdateCredentialsEvents(\n        (error: UpdateCredentialsError) => {\n          this.onDatasourceCreationFailed(error);\n        },\n      );\n      await this.cloudService.subscribeToRestartEvents('ProjectSettings', {\n        restartEnded: this.onDatasourceCreationSucceeded.bind(this),\n      });\n\n      const serializedCredentials = new DatabaseCredentialsCloud(credentials).serialize();\n      delete serializedCredentials.ssh?.publicKey;\n\n      await this.serverFetch.fetch(`/api/full-hosted-agent/datasource`, {\n        method: 'POST',\n        body: JSON.stringify({\n          data: {\n            ...serializedCredentials,\n            datasourceName: this.datasource.name,\n            datasourceSuffix: this.datasource.suffix,\n          },\n        }),\n      });\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Failed to create a new datasource');\n    }\n  }\n\n  private onDatasourceCreationFailed(error: UpdateCredentialsError) {\n    this.loadingDatasourceCreation = false;\n    this.notificationBusinessService.createToastr(\n      ToastrTypeEnum.Error,\n      `Error when creating a new datasource: ${error.error}`,\n    );\n  }\n\n  private async onDatasourceCreationSucceeded() {\n    this.loadingDatasourceCreation = false;\n    this.displayNewDatasourceModal = false;\n    this.datasource = null;\n    this.notificationBusinessService.createToastr(\n      ToastrTypeEnum.Success,\n      'Your new datasource has been added to your project successfully!',\n    );\n    await this.lianaSession.currentEnvironment.datasources.reload();\n  }\n\n  public async removeDatasource(datasourceId: number) {\n    try {\n      await this.serverFetch.fetch(`/api/full-hosted-agent/datasource/${datasourceId}`, {\n        method: 'DELETE',\n      });\n\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Success,\n        'Datasource unlinked. please trigger a synchronization for this change to reflect in your admin panel',\n      );\n      await this.lianaSession.currentEnvironment.datasources.reload();\n\n      await this.goToEnvironmentSettingsIndex();\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Failed to remove datasource');\n    }\n  }\n\n  private async goToEnvironmentSettingsIndex() {\n    await this.router.transitionTo(\n      'project.project-settings.environments.details',\n      this.lianaSession.currentEnvironment.name,\n    );\n  }\n}\n","import Service from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class CloudFeatureState extends Service {\n  @tracked\n  public isAgentRestarting = false;\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type FolderChildNestedDocument from 'client/data/models/folder-child';\nimport type CollectionFeatureService from 'client/features/collection/services/feature';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type QueryParametersStoreSharedBusinessService from 'client/shared/services/query-parameters-store';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport CollectionModel from 'client/data/models/collection';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface SideMenuItemArgs {\n  currentSegmentId?: string;\n  currentCollectionId?: string;\n  isEditable?: boolean;\n  item: CollectionModel;\n  isVisible?: boolean;\n  isFoldable?: boolean;\n  getChildren?: () => FolderChildNestedDocument[];\n}\n\n@validateArguments\nexport default class CollectionSideMenuItemComponent extends Component<SideMenuItemArgs> {\n  static propTypes = {\n    currentSegmentId: PropTypes.string,\n    currentCollectionId: PropTypes.string,\n    item: PropTypes.instanceOf(CollectionModel).isRequired,\n    isEditable: PropTypes.bool,\n    isVisible: PropTypes.bool,\n  };\n\n  @service('feature/collection') private collectionFeature: CollectionFeatureService;\n  @service('feature/folder') private folderFeature: FolderFeatureService;\n  @service('router') private router: RouterService;\n\n  @service('shared/query-parameters-store')\n  private queryParametersStore: QueryParametersStoreSharedBusinessService;\n\n  public get queryParameters() {\n    return this.queryParametersStore.getCurrent();\n  }\n\n  public get isCollectionActive() {\n    return this.hasVisibleActiveSegment() ? false : this.isCollectionSelected();\n  }\n\n  public get isVisible() {\n    return (\n      this.args.isVisible\n      && (!this.args.item.isRestrictedToSegments || !!this.getDefaultSegmentIdForCollection())\n    );\n  }\n\n  @action\n  public isCollectionFolded(collection: CollectionModel) {\n    return this.collectionFeature.isCollectionFolded(collection);\n  }\n\n  @action\n  public isCollectionSelected() {\n    return (\n      this.args.currentCollectionId === this.args.item.shareableId\n      || this.args.currentCollectionId === this.args.item.id\n    );\n  }\n\n  @action\n  public handleFoldCollection(collection: CollectionModel, isFolded: boolean) {\n    if (isFolded) {\n      this.collectionFeature.foldCollection(collection);\n    } else {\n      this.collectionFeature.unfoldCollection(collection);\n    }\n  }\n\n  @action\n  public hasVisibleActiveSegment() {\n    return (\n      this.args.item.segments\n        ?.toArray()\n        .some(\n          (segment) =>\n            segment.id === this.args.currentSegmentId\n            && this.folderFeature.getFolderChild(segment.id)?.isVisible,\n        )\n      || (this.router.currentRouteName\n        === 'project.rendering.data.collection.settings.segments.details'\n        && this.args.item.shareableId\n          === this.router.currentRoute.parent.parent.parent.params.collection_id)\n    );\n  }\n\n  @action\n  public getDefaultSegmentIdForCollection() {\n    return this.args.item.isRestrictedToSegments\n      ? this.folderFeature.getDefaultSegmentForCollection(this.args.item)?.id || null\n      : null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let\\n  (if\\n    (this.isCollectionSelected @item)\\n    (hash\\n      filter=(or this.queryParameters.filter \\'\\')\\n      search=(or this.queryParameters.search \\'\\')\\n      searchExtended=(or this.queryParameters.searchExtended false)\\n    )\\n    (hash filter=\\'\\' search=\\'\\' searchExtended=false)\\n  )\\n  as |filterAndSearchHash|\\n}}\\n  <Navigation::BetaSideMenu::Item\\n    @item={{@item}}\\n    @name={{@item.pluralizedDisplayName}}\\n    @icon={{@item.iconOrDefault}}\\n    @route=\\\"project.rendering.data.collection.list\\\"\\n    @routeParameters={{@item.shareableId}}\\n    @query={{hash\\n      filter=filterAndSearchHash.filter\\n      page=1\\n      search=filterAndSearchHash.search\\n      searchExtended=filterAndSearchHash.searchExtended\\n      segmentId=(this.getDefaultSegmentIdForCollection)\\n      sort=\\'\\'\\n    }}\\n    @isActive={{this.isCollectionActive}}\\n    @isDraggable={{default-to @isDraggable true}}\\n    @isVisible={{this.isVisible}}\\n    @isFoldedByDefault={{and\\n      (this.isCollectionFolded @item)\\n      (not (this.hasVisibleActiveSegment @item))\\n    }}\\n    @isFoldable={{@isFoldable}}\\n    @isDisabled={{@item.onlyForRelationships}}\\n    @isIconHidden={{@item.onlyForRelationships}}\\n    @onFoldItem={{fn this.handleFoldCollection @item}}\\n    @onClickVisibility={{@onClickVisibility}}\\n    @onClickSettings={{action-link-to\\n      \\'project.rendering.data.collection.settings.general\\'\\n      @item.shareableId\\n    }}\\n    @isEditable={{@isEditable}}\\n    @onClick={{@onItemClick}}\\n    @shouldReplace={{@shouldReplace}}\\n    @canContainChildren={{true}}\\n    data-id={{@item.id}}\\n    data-test-feature-collection-side-menu-item\\n    ...attributes\\n  >\\n    {{yield}}\\n  </Navigation::BetaSideMenu::Item>\\n{{/let}}\\n', { moduleName: 'client/features/collection/components/side-menu/item/template.hbs' });\n","import { UnknownError } from 'client/utils/errors';\n\n// eslint-disable-next-line import/prefer-default-export\nexport class UnknownFetchViewListError extends UnknownError {\n  constructor(cause: Error, message: string) {\n    super(cause);\n\n    this.name = 'UnknownFetchViewListError';\n    this.message = message;\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type FilterModel from 'client/data/models/filter';\nimport type { NewConditionAttributes } from 'client/data/models/fragment-condition';\nimport type { FilterAttributes } from 'client/data/models/fragment-filter';\nimport type CollectionStoreInternalBusinessService from 'client/features/collection/services/internal-business/store';\nimport type NavigationHandlerBusinessService from 'client/shared/services/navigation-handler';\n\nimport Service, { service } from '@ember/service';\n\nexport default class CollectionFeatureService extends Service {\n  @service('shared/navigation-handler')\n  private navigationHandler: NavigationHandlerBusinessService;\n\n  @service('feature/collection/internal-business/store')\n  private collectionStore: CollectionStoreInternalBusinessService;\n\n  public getCollectionFromName(collectionName: string) {\n    return this.collectionStore.getCollectionFromName(collectionName);\n  }\n\n  public getCollectionFromId(collectionId: string) {\n    return this.collectionStore.getCollectionFromId(collectionId);\n  }\n\n  public isCollectionFolded(collection: CollectionModel) {\n    return this.navigationHandler.isItemFolded(this.getCollectionKey(collection));\n  }\n\n  public foldCollection(collection: CollectionModel) {\n    this.navigationHandler.setItemFoldedState(this.getCollectionKey(collection), true);\n  }\n\n  public unfoldCollection(collection: CollectionModel) {\n    this.navigationHandler.setItemFoldedState(this.getCollectionKey(collection), false);\n  }\n\n  public createFilter(collection: CollectionModel, filter: FilterAttributes) {\n    return this.collectionStore.createFilter(collection, filter);\n  }\n\n  public addFilterCondition(filter: FilterModel, condition: NewConditionAttributes) {\n    this.collectionStore.addFilterCondition(filter, condition);\n  }\n\n  private getCollectionKey(collection: CollectionModel) {\n    // To support the old implementation, we need to use the same key as the old implementation\n    return `rendering_${collection.rendering.id}_-collections_${collection.name}`;\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type FilterModel from 'client/data/models/filter';\nimport type { NewConditionAttributes } from 'client/data/models/fragment-condition';\nimport type { FilterAttributes } from 'client/data/models/fragment-filter';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nexport default class CollectionStoreInternalBusinessService extends Service {\n  @service private store: StoreService;\n\n  public getCollectionFromName(collectionName: string): CollectionModel {\n    return this.store.peekAll('collection').findBy('name', collectionName);\n  }\n\n  public getCollectionFromId(collectionId: string) {\n    return this.store.peekRecord('collection', collectionId);\n  }\n\n  public createFilter(collection: CollectionModel, filter: FilterAttributes) {\n    return this.store.createRecord('filter', {\n      filteredCollection: collection,\n      ...filter,\n    });\n  }\n\n  public addFilterCondition(filter: FilterModel, condition: NewConditionAttributes) {\n    const createdCondition = this.store.createFragment('fragment-condition', {\n      ...condition,\n    });\n    filter.conditions.pushObject(createdCondition);\n  }\n}\n","import type CriticalActionConfirmationFeatureService from 'client/features/critical-action-confirmation/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type Args = {\n  buttonText: string;\n  entityName: string;\n  warningMessage: string;\n  onConfirm: () => Promise<void>;\n  cancelText?: string;\n  modalTitle?: string;\n  disabled?: boolean;\n};\n\n@validateArguments\nexport default class CriticalActionConfirmationButtonComponent extends Component<Args> {\n  public static propTypes = {\n    buttonText: PropTypes.string.isRequired,\n    entityName: PropTypes.string.isRequired,\n    warningMessage: PropTypes.string.isRequired,\n    onConfirm: PropTypes.func.isRequired,\n    cancelText: PropTypes.string,\n    modalTitle: PropTypes.string,\n    disabled: PropTypes.bool,\n  };\n\n  @service('feature/critical-action-confirmation')\n  private featureService: CriticalActionConfirmationFeatureService;\n\n  @action\n  public onClick() {\n    if (this.args.disabled) {\n      return;\n    }\n\n    this.featureService.openModal({\n      actionText: this.args.buttonText,\n      entityName: this.args.entityName,\n      onConfirm: async () => {\n        await this.args.onConfirm();\n        this.featureService.closeModal();\n      },\n      title: this.args.modalTitle || this.args.buttonText,\n      warningMessage: this.args.warningMessage,\n      cancelText: this.args.cancelText,\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Feature/CriticalActionConfirmation/Button',\n  component: 'Feature::CriticalActionConfirmation::Button',\n  args: {\n    buttonText: 'Delete project',\n    entityName: 'Important project',\n    warningMessage: \"You are about to delete the 'Important project' project.\",\n    cancelText: 'Discard',\n    modalTitle: \"Delete 'Important project'?\",\n  },\n  argTypes: {\n    buttonText: {\n      type: 'string',\n      description: 'The text of the button',\n      table: {\n        category: 'Properties',\n      },\n    },\n    entityName: {\n      type: 'string',\n      description: 'The name of the entity to be deleted',\n      table: {\n        category: 'Properties',\n      },\n    },\n    warningMessage: {\n      type: 'string',\n      description: 'A warning message to be displayed',\n      table: {\n        category: 'Properties',\n      },\n    },\n    cancelText: {\n      type: 'string',\n      description: 'The text of the cancel button',\n      table: {\n        category: 'Properties',\n      },\n    },\n    modalTitle: {\n      type: 'string',\n      description: 'The title of the modal',\n      table: {\n        category: 'Properties',\n      },\n    },\n    disabled: {\n      type: 'boolean',\n      description: 'Disables the button',\n      table: {\n        category: 'Properties',\n      },\n    },\n    onConfirm: {\n      action: 'onConfirm',\n      description: 'Action to be called when the user confirms the action',\n      table: {\n        category: 'Actions',\n      },\n    },\n    onCancel: {\n      action: 'onCancel',\n      description: 'Action to be called when the user cancels the action',\n      table: {\n        category: 'Actions',\n      },\n    },\n  },\n};\n\nexport function Base(args) {\n  return {\n    template: hbs`\n      {{! Only needed for the storybook}}\n      <Feature::Modal::ModalContainer />\n\n      <Feature::CriticalActionConfirmation::Button\n        @buttonText={{this.buttonText}}\n        @entityName={{this.entityName}}\n        @warningMessage={{this.warningMessage}}\n        @cancelText={{this.cancelText}}\n        @modalTitle={{this.modalTitle}}\n        @onConfirm={{this.onConfirm}}\n        @onCancel={{this.onCancel}}\n        @disabled={{this.disabled}}\n      />\n    `,\n    context: args,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button::BetaButton\\n  @type=\\\"danger\\\"\\n  @text={{@buttonText}}\\n  @disabled={{@disabled}}\\n  {{on \\'click\\' this.onClick}}\\n  data-test-critical-action-confirmation-button\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/critical-action-confirmation/components/button/template.hbs' });\n","import type CriticalActionConfirmationFeatureService from 'client/features/critical-action-confirmation/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type Args = {\n  title: string;\n  entityName: string;\n  warningMessage: string;\n  actionText: string;\n  onConfirm: () => Promise<void>;\n  cancelText?: string;\n};\n\n@validateArguments\nexport default class CriticalActionConfirmationModalComponent extends Component<{ data: Args }> {\n  public static propTypes = {\n    data: PropTypes.shape({\n      title: PropTypes.string.isRequired,\n      entityName: PropTypes.string.isRequired,\n      warningMessage: PropTypes.string.isRequired,\n      onConfirm: PropTypes.func.isRequired,\n      actionText: PropTypes.string.isRequired,\n      cancelText: PropTypes.string,\n    }).isRequired,\n  };\n\n  @service('feature/critical-action-confirmation')\n  private featureService: CriticalActionConfirmationFeatureService;\n\n  @tracked\n  public inputValue = '';\n\n  @tracked\n  public isLoading = false;\n\n  get canConfirm() {\n    return this.featureService.canConfirm({\n      inputValue: this.inputValue,\n      expectedValue: this.args.data.entityName,\n    });\n  }\n\n  @action\n  public async onKeyUp(event: KeyboardEvent) {\n    await this.featureService.onKeyUp(event, {\n      inputValue: this.inputValue,\n      expectedValue: this.args.data.entityName,\n      onConfirm: this.handleConfirm,\n    });\n  }\n\n  @action\n  public async handleConfirm() {\n    this.isLoading = true;\n    try {\n      await this.args.data.onConfirm();\n    } finally {\n      this.isLoading = false;\n    }\n  }\n\n  @action\n  public handleCancel() {\n    this.featureService.closeModal();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Feature/CriticalActionConfirmation/Modal',\n  component: 'Feature::CriticalActionConfirmation::Modal',\n  args: {\n    title: 'Delete \"Important project\"?',\n    entityName: 'Important project',\n    warningMessage: 'You are about to delete the \"Cloud recipes\" project.',\n    actionText: 'Confirm deletion',\n    onConfirm: () => {\n      console.info('confirmed');\n    },\n  },\n  argTypes: {\n    title: {\n      type: 'string',\n      description: 'The title of the modal',\n      table: {\n        category: 'Properties',\n      },\n    },\n    entityName: {\n      type: 'string',\n      description: 'The name of the entity to be deleted',\n      table: {\n        category: 'Properties',\n      },\n    },\n    warningMessage: {\n      type: 'string',\n      description: 'A warning message to be displayed',\n      table: {\n        category: 'Properties',\n      },\n    },\n    actionText: {\n      type: 'string',\n      description: 'The text of the action button',\n      table: {\n        category: 'Properties',\n      },\n    },\n    onConfirm: {\n      action: 'onClose',\n      description: 'Action to be called when the user confirms the action',\n      table: {\n        category: 'Actions',\n      },\n    },\n  },\n};\n\nexport const CompleteExample = (args) => {\n  return {\n    template: hbs`\n    {{! The components Portal and Feature::Modal::Window are added by the modalFeatureService}}\n    <Shared::PortalFor @name=\"modal\" />\n    \n    {{! Don't add the Feature::Modal::Window component directly to your templates. Use the modalFeatureService instead.}}\n    <Feature::Modal::Window>\n      <Feature::CriticalActionConfirmation::Modal @data={{(hash\n        onConfirm=this.onConfirm\n        title=this.title\n        entityName=this.entityName\n        warningMessage=this.warningMessage\n        actionText=this.actionText\n      )}} />\n    </Feature::Modal::Window>`,\n    context: args,\n  };\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  class=\\\"c-feature-critical-action-confirmation-modal\\\"\\n  @size=\\\"sm\\\"\\n  data-test-feature-critical-action-confirmation-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header\\n    @title={{@data.title}}\\n    @noSeparator={{true}}\\n    data-test-feature-critical-action-confirmation-modal-header\\n  />\\n  <Shared::Modal::Body>\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"warning\\\"\\n      @message={{@data.warningMessage}}\\n      class=\\\"c-feature-critical-action-confirmation-modal__notification\\\"\\n      data-test-feature-critical-action-confirmation-modal-warning-message\\n    />\\n\\n    <Shared::BetaLabel\\n      @label=\\\"Please type “{{@data.entityName}}” to proceed\\\"\\n      @important={{true}}\\n      @multiline={{true}}\\n      class=\\\"c-feature-critical-action-confirmation-modal__confirmation-input\\\"\\n      data-test-feature-critical-action-confirmation-modal-label\\n    >\\n      <Shared::BetaInput\\n        @value={{this.inputValue}}\\n        {{on \\'keyup\\' this.onKeyUp}}\\n        {{autofocus nestedSelector=\\'.c-beta-input\\'}}\\n        data-test-feature-critical-action-confirmation-modal-input\\n      />\\n    </Shared::BetaLabel>\\n  </Shared::Modal::Body>\\n  <Shared::Modal::ActionFooter\\n    @confirmType=\\\"danger\\\"\\n    @confirmText={{@data.actionText}}\\n    @isConfirmDisabled={{(not this.canConfirm)}}\\n    @cancelText={{@data.cancelText}}\\n    @onConfirm={{this.handleConfirm}}\\n    @onCancel={{this.handleCancel}}\\n    @isLoading={{this.isLoading}}\\n    data-test-feature-critical-action-confirmation-modal-footer\\n  />\\n</Shared::Modal>\\n', { moduleName: 'client/features/critical-action-confirmation/components/modal/template.hbs' });\n","import type { Args } from 'client/features/critical-action-confirmation/components/modal/component';\nimport type CriticalActionConfirmationInternalBusinessService from 'client/features/critical-action-confirmation/services/internal-business/confirmation';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\n\nimport Service, { service } from '@ember/service';\n\nexport default class CriticalActionConfirmationFeatureService extends Service {\n  @service('feature/modal')\n  private modalService: ModalFeatureService;\n\n  @service('feature/critical-action-confirmation/internal-business/confirmation')\n  private confirmationService: CriticalActionConfirmationInternalBusinessService;\n\n  public openModal(params: Args) {\n    this.modalService.open('feature/critical-action-confirmation/modal', {\n      data: params,\n      onClose: () => {\n        this.closeModal();\n      },\n    });\n  }\n\n  public canConfirm({ inputValue, expectedValue }: { inputValue: string; expectedValue: string }) {\n    return this.confirmationService.canConfirm({ inputValue, expectedValue });\n  }\n\n  public closeModal() {\n    this.modalService.close();\n  }\n\n  public async onKeyUp(\n    event: KeyboardEvent,\n    {\n      inputValue,\n      expectedValue,\n      onConfirm,\n    }: { inputValue: string; expectedValue: string; onConfirm: () => Promise<void> },\n  ) {\n    if (event.key === 'Enter' && this.canConfirm({ inputValue, expectedValue })) {\n      await onConfirm();\n    }\n  }\n}\n","import Service from '@ember/service';\n\nfunction normalizeConfirmationString(value: string): string {\n  return (\n    value\n      ?.toLowerCase()\n      .replaceAll(/[ÀÁÂÃÄàáâãä]/g, 'a')\n      .replaceAll(/[ÈÉÊËèéêë]/g, 'e')\n      .replaceAll(/[ÌÍÎÏìíîï]/g, 'i')\n      .replaceAll(/[ÒÓÔÕÖòóôõö]/g, 'o')\n      .replaceAll(/[ÙÚÛÜùúûü]/g, 'u')\n      .replaceAll(/[Çç]/g, 'c')\n      .replaceAll(/[Ññ]/g, 'n')\n      .replaceAll(/ß/g, 'ss')\n      .replaceAll(/[Šš]/g, 's')\n      .replaceAll(/[Œœ]/g, 'oe')\n      .replaceAll(/[Øø]/g, 'o')\n      .replaceAll(/[Ææ]/g, 'ae')\n      .replaceAll(/\\s/g, '')\n      // Special chars\n      .replaceAll(/[_.()[\\]{}/\\\\&#|`-]/g, '') || ''\n  );\n}\n\nexport default class CriticalActionConfirmationConfirmationInternalBusinessService extends Service {\n  public canConfirm({ inputValue, expectedValue }: { inputValue: string; expectedValue: string }) {\n    return normalizeConfirmationString(inputValue) === normalizeConfirmationString(expectedValue);\n  }\n}\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface CreationModalArgs {\n  data: {\n    title: string;\n    namePlaceholder?: string;\n    iconDefaultValue?: string;\n    onCreate: (name: string, icon: string) => void;\n    onCancel: () => void;\n    isCollectionItem?: boolean;\n    withIcon?: boolean;\n  };\n}\n\n@validateArguments\nexport default class CustomizationCenterCreationModalComponent extends Component<CreationModalArgs> {\n  static propTypes = {\n    data: PropTypes.shape({\n      title: PropTypes.string.isRequired,\n      namePlaceholder: PropTypes.string,\n      iconDefaultValue: PropTypes.string,\n      onCreate: PropTypes.func.isRequired,\n      onCancel: PropTypes.func.isRequired,\n      isCollectionItem: PropTypes.bool,\n      withIcon: PropTypes.bool,\n    }),\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @data.isCollectionItem}}\\n  <Shared::Form::CreateCollectionItemModal\\n    @title={{@data.title}}\\n    @namePlaceholder={{@data.namePlaceholder}}\\n    @onCancel={{@data.onCancel}}\\n    @onCreate={{@data.onCreate}}\\n    @iconDefaultValue={{@data.iconDefaultValue}}\\n    @withIcon={{@data.withIcon}}\\n    @collection={{@data.collection}}\\n    class=\\\"c-feature-customization-center-creation-modal\\\"\\n    data-test-feature-customization-center-creation-modal\\n    ...attributes\\n  />\\n{{else}}\\n  <Shared::Form::CreateNameAndIconModal\\n    @title={{@data.title}}\\n    @namePlaceholder={{@data.namePlaceholder}}\\n    @onCancel={{@data.onCancel}}\\n    @onCreate={{@data.onCreate}}\\n    @iconDefaultValue={{@data.iconDefaultValue}}\\n    class=\\\"c-feature-customization-center-creation-modal\\\"\\n    data-test-feature-customization-center-creation-modal\\n    ...attributes\\n  />\\n{{/if}}\\n', { moduleName: 'client/features/customization-center/components/creation-modal/template.hbs' });\n","import type CustomizationCenterFeatureService from 'client/features/customization-center/services/feature';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\nimport type { AbilitiesService } from 'ember-can';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport {\n  type CustomizationCenterConfiguration,\n  CustomizationCenterConfigurationFeaturesEnum,\n} from 'client/features/customization-center/services/internal-business/configuration';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface CustomizationCenterModalArgs {\n  data: {\n    configuration: CustomizationCenterConfiguration[];\n    selectedCard?: CustomizationCenterConfigurationFeaturesEnum;\n  };\n}\n\n@validateArguments\nexport default class CustomizationCenterModalComponent extends Component<CustomizationCenterModalArgs> {\n  static propTypes = {\n    data: PropTypes.shape({\n      configuration: PropTypes.arrayOf(\n        PropTypes.shape({\n          featureName: PropTypes.oneOf([\n            ...Object.values(CustomizationCenterConfigurationFeaturesEnum),\n          ]),\n          isRestricted: PropTypes.bool,\n          image: PropTypes.string,\n          icon: PropTypes.string,\n          title: PropTypes.string,\n          description: PropTypes.string,\n          discoverLink: PropTypes.string,\n          ability: PropTypes.string,\n        }),\n      ).isRequired,\n      selectedCard: PropTypes.oneOf([\n        ...Object.values(CustomizationCenterConfigurationFeaturesEnum),\n      ]),\n    }).isRequired,\n  };\n\n  @service\n  private abilities: AbilitiesService;\n\n  @service('shared/state/user-preference') public userPreferenceState: UserPreferenceState;\n\n  @service('feature/modal')\n  private modalFeatureService: ModalFeatureService;\n\n  @service('feature/inbox')\n  private inboxFeatureService: InboxFeatureService;\n\n  @service('feature/customization-center')\n  public customizationCenter: CustomizationCenterFeatureService;\n\n  @tracked public selectedCard: CustomizationCenterConfiguration | null = null;\n  @tracked public hoveredCard: CustomizationCenterConfiguration | null = null;\n\n  constructor(owner: unknown, args: CustomizationCenterModalArgs) {\n    super(owner, args);\n\n    [this.selectedCard] = this.args.data.configuration;\n    if (args.data.selectedCard) {\n      this.selectedCard = this.getCardFromFeatureName(\n        args.data.selectedCard as CustomizationCenterConfigurationFeaturesEnum,\n      );\n    }\n  }\n\n  get configurations() {\n    return this.args.data.configuration.map((config) => ({\n      ...config,\n      isRestricted:\n        config.isRestricted\n        && !config.isInBeta\n        && this.abilities.cannot(`access ${config.abilityName}`)\n        && this.abilities.cannot(`enable ${config.abilityName}`),\n    }));\n  }\n\n  get shouldDisplayUpgradeButton() {\n    return (\n      this.selectedCard?.featureName\n      && this.selectedCard.isRestricted\n      && this.abilities.cannot(`access ${this.selectedCard.abilityName}`)\n    );\n  }\n\n  get featureCallback() {\n    return this.selectedCard?.featureName === CustomizationCenterConfigurationFeaturesEnum.Inbox\n      ? () => {\n          this.modalFeatureService.close();\n          this.inboxFeatureService.handleOpenCreationModal();\n        }\n      : this.onSubmit;\n  }\n\n  get bannerMessage() {\n    const displayedFeature = this.hoveredCard || this.selectedCard;\n    const canAccessFeature = displayedFeature.abilityName\n      ? this.abilities.can('access ' + displayedFeature.abilityName)\n      : true;\n    if (displayedFeature.isInBeta) {\n      if (canAccessFeature) {\n        return `${displayedFeature.title} is still in Beta - thanks for trying it out!`;\n      }\n      return 'Coming soon!';\n    } else if (\n      displayedFeature.featureName === CustomizationCenterConfigurationFeaturesEnum.Workflow\n      && canAccessFeature\n    ) {\n      return 'Our Workflows feature is now available 🎉 <a href=\"https://docs.forestadmin.com/user-guide/collections/workflows\" target=\"_blank\" rel=\"noopener noreferrer\">Learn more.</a>';\n    }\n\n    return null;\n  }\n\n  private getCardFromFeatureName(featureName: CustomizationCenterConfigurationFeaturesEnum) {\n    return (\n      this.args.data.configuration.find((config) => config.featureName === featureName) || null\n    );\n  }\n\n  @action\n  handleSelectedCardChange(selectedCardFeatureName: CustomizationCenterConfigurationFeaturesEnum) {\n    this.selectedCard = this.getCardFromFeatureName(selectedCardFeatureName);\n  }\n\n  @action\n  handleCardHover(hoveredCardFeatureName: CustomizationCenterConfigurationFeaturesEnum) {\n    this.hoveredCard = this.getCardFromFeatureName(hoveredCardFeatureName);\n  }\n\n  @action\n  onSubmit() {\n    this.customizationCenter.openCreationModal(this.selectedCard.featureName);\n  }\n}\n","import Component from '@glimmer/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface ModalPreviewArgs {\n  imageUrl: string;\n  altText?: string;\n  bannerMessage?: string;\n}\n\nexport default class CustomizationCenterModalPreviewComponent extends Component<ModalPreviewArgs> {\n  static readonly propTypes = {\n    imageUrl: PropTypes.string.isRequired,\n    altText: PropTypes.string,\n    bannerMessage: PropTypes.string,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-customization-center-modal-preview\\\"\\n  data-test-feature-customization-center-modal-preview\\n  ...attributes\\n>\\n  {{#if @bannerMessage}}\\n    <div\\n      class=\\\"c-feature-customization-center-modal-preview__banner\\\"\\n      data-test-feature-customization-center-modal-preview-banner\\n    >\\n      {{! template-lint-disable no-triple-curlies }}\\n      {{{@bannerMessage}}}\\n    </div>\\n  {{/if}}\\n  <div\\n    class={{get-classes-with-modifiers\\n      \\'c-feature-customization-center-modal-preview__image-container\\'\\n      with-banner=@bannerMessage\\n    }}\\n  >\\n    <img\\n      src={{@imageUrl}}\\n      alt={{@altText}}\\n      class=\\\"c-feature-customization-center-modal-preview__image\\\"\\n      data-test-feature-customization-center-modal-preview-image\\n    />\\n  </div>\\n</div>\\n', { moduleName: 'client/features/customization-center/components/modal/preview/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  @size=\\\"lg\\\"\\n  class=\\\"c-feature-customization-center-modal\\\"\\n  data-test-feature-customization-center-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header\\n    @title=\\\"Customization Center\\\"\\n    class=\\\"c-feature-customization-center-modal__header\\\"\\n    data-test-feature-customization-center-modal-header\\n  />\\n\\n  <Shared::Modal::SplitLayoutBody\\n    class=\\\"c-feature-customization-center-modal__body\\\"\\n    @noPadding={{true}}\\n    @noOverflow={{true}}\\n    @navClass=\\\"c-feature-customization-center-modal__nav\\\"\\n    @containerClass=\\\"c-feature-customization-center-modal__container\\\"\\n    @contentClass=\\\"c-feature-customization-center-modal__content\\\"\\n    data-test-feature-customization-center-modal-body\\n  >\\n    <:nav>\\n      <div class=\\\"c-feature-customization-center-modal__nav-body\\\">\\n        <Shared::Form::SelectCards\\n          @shouldHideDetails={{true}}\\n          @options={{this.configurations}}\\n          @cardVariant=\\\"small\\\"\\n          @checkInputSize=\\\"extra-small\\\"\\n          @onChange={{this.handleSelectedCardChange}}\\n          @onHover={{this.handleCardHover}}\\n          @value={{this.selectedCard.featureName}}\\n          @forceDefaultValue={{false}}\\n          @namePath=\\\"title\\\"\\n          @valuePath=\\\"featureName\\\"\\n          @iconPath=\\\"icon\\\"\\n          @descriptionPath=\\\"description\\\"\\n          @linkPath=\\\"discoverLink\\\"\\n          @type=\\\"editor\\\"\\n          data-test-feature-customization-center-modal-body-select-cards\\n        />\\n      </div>\\n\\n      <div class=\\\"c-feature-customization-center-modal__nav-footer\\\">\\n        {{#if (and this.selectedCard this.shouldDisplayUpgradeButton)}}\\n          <Feature::CustomizationCenter::UpgradeButton\\n            @type=\\\"editor\\\"\\n            @abilityName={{this.selectedCard.abilityName}}\\n            @featureCallback={{this.featureCallback}}\\n            data-test-feature-customization-center-modal-body-next-button\\n          />\\n        {{else}}\\n          <Shared::Button\\n            @type=\\\"editor\\\"\\n            @text=\\\"Next\\\"\\n            @onClick={{this.onSubmit}}\\n            @iconName=\\\"east\\\"\\n            @isIconAfterText={{true}}\\n            disabled={{not this.selectedCard}}\\n            data-test-feature-customization-center-modal-body-next-button\\n          />\\n        {{/if}}\\n      </div>\\n\\n    </:nav>\\n    <:content>\\n      {{#if this.selectedCard}}\\n        <Feature::CustomizationCenter::Modal::Preview\\n          @imageUrl={{if\\n            this.userPreferenceState.isLightTheme\\n            (or this.hoveredCard.image this.selectedCard.image)\\n            (or this.hoveredCard.imageDark this.selectedCard.imageDark)\\n          }}\\n          @altText=\\\"{{(or\\n            this.hoveredCard.featureName this.selectedCard.featureName\\n          )}} feature preview\\\"\\n          @bannerMessage={{this.bannerMessage}}\\n        />\\n      {{/if}}\\n    </:content>\\n  </Shared::Modal::SplitLayoutBody>\\n</Shared::Modal>\\n', { moduleName: 'client/features/customization-center/components/modal/template.hbs' });\n","import type PlanModel from 'client/data/models/plan';\nimport type { EnvironmentsFeaturesEnum } from 'client/data/models/plan';\nimport type { PremiumFeatures } from 'client/data/models/project';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type PlanService from 'client/legacy/services/plan-service';\nimport type PremiumFeatureUpgraderService from 'client/legacy/services/premium-feature-upgrader';\nimport type SubscriptionService from 'client/legacy/services/subscription-service';\nimport type { ButtonTypeEnum } from 'client/shared/components/button/component';\nimport type ContactService from 'client/shared/services/contact';\nimport type { AbilitiesService } from 'ember-can';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport validateArguments from 'client/decorators/validate';\nimport { capitalizeText } from 'client/shared/helpers/capitalize-text';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype UpgradeButtonArgs = {\n  abilityName: EnvironmentsFeaturesEnum;\n  type: ButtonTypeEnum;\n  featureCallbackRoute?: string;\n  featureCallback?: () => void;\n  featureParams?: string;\n};\n\nenum FeatureEnableTypeEnum {\n  TrialDevelopment = 'trialDevelopment',\n  TrialUpgrade = 'trialUpgradeRequired',\n  UpgradeRequired = 'upgradeRequired',\n  Enable = 'enable',\n  ContactUs = 'contactUs',\n  Access = 'access',\n  Unknown = 'unknown',\n}\n\n@validateArguments\nexport default class CustomizationCenterUpgradeButtonComponent extends Component<UpgradeButtonArgs> {\n  static propTypes = {\n    abilityName: PropTypes.string.isRequired,\n    featureCallbackRoute: PropTypes.string,\n    featureCallback: PropTypes.func,\n    featureParams: PropTypes.string,\n  };\n\n  @service private abilities: AbilitiesService;\n  @service private lianaSession: LianaSessionService;\n  @service private planService: PlanService;\n  @service private premiumFeatureUpgrader: PremiumFeatureUpgraderService;\n  @service private subscriptionService: SubscriptionService;\n  @service('shared/contact') private contactService: ContactService;\n\n  @tracked private lowestPlanHavingFeature: PlanModel | null | undefined;\n\n  constructor(owner: unknown, args: UpgradeButtonArgs) {\n    super(owner, args);\n\n    void this.loadRequiredPlan();\n  }\n\n  private get type(): FeatureEnableTypeEnum {\n    if (this.abilities.can(`access ${this.args.abilityName}`)) {\n      return FeatureEnableTypeEnum.Access;\n    }\n    if (this.abilities.can(`display trial note ${this.args.abilityName}`)) {\n      return FeatureEnableTypeEnum.TrialDevelopment;\n    }\n    if (this.abilities.can(`enable ${this.args.abilityName}`)) {\n      return FeatureEnableTypeEnum.Enable;\n    }\n    if (this.lowestPlanHavingFeature === undefined) {\n      // This is a loading state\n      return FeatureEnableTypeEnum.Unknown;\n    }\n    if (this.lowestPlanHavingFeature === null) {\n      // This is an on demand feature\n      return FeatureEnableTypeEnum.ContactUs;\n    }\n    return this.lianaSession.currentProject?.canStartTrial\n      ? FeatureEnableTypeEnum.TrialUpgrade\n      : FeatureEnableTypeEnum.UpgradeRequired;\n  }\n\n  get premiumFeatureName(): PremiumFeatures {\n    return `premium${capitalizeText(this.args.abilityName)}` as PremiumFeatures;\n  }\n\n  get upgradeText() {\n    return this.lowestPlanHavingFeature\n      ? `Upgrade to ${this.lowestPlanHavingFeature.displayName} Plan`\n      : null;\n  }\n\n  get text() {\n    switch (this.type) {\n      case FeatureEnableTypeEnum.TrialDevelopment:\n        return 'Enable and start using for free*';\n      case FeatureEnableTypeEnum.TrialUpgrade:\n        return `Start your free trial`;\n      case FeatureEnableTypeEnum.UpgradeRequired:\n        return this.upgradeText;\n      case FeatureEnableTypeEnum.Enable:\n        return 'Enable this feature';\n      case FeatureEnableTypeEnum.ContactUs:\n        return 'Contact us';\n      case FeatureEnableTypeEnum.Access:\n        return 'Access this feature';\n      case FeatureEnableTypeEnum.Unknown:\n      default:\n        return 'Loading...';\n    }\n  }\n\n  private async loadRequiredPlan() {\n    this.lowestPlanHavingFeature =\n      (await this.planService.findFirstPlanWithFeature(this.args.abilityName)) || null;\n  }\n\n  @action\n  async action() {\n    switch (this.type) {\n      case FeatureEnableTypeEnum.Access:\n        throw new Error('Impossible to reach this state');\n      case FeatureEnableTypeEnum.Enable:\n      case FeatureEnableTypeEnum.TrialDevelopment:\n        await this.premiumFeatureUpgrader.upgradeToPremiumFeatureForFree(\n          this.premiumFeatureName,\n          this.args.featureCallback,\n          this.args.featureCallbackRoute,\n        );\n        break;\n      case FeatureEnableTypeEnum.TrialUpgrade:\n        await this.subscriptionService.startPlusTrial(\n          this.lianaSession.currentProject,\n          this.args.abilityName,\n        );\n        break;\n      case FeatureEnableTypeEnum.UpgradeRequired:\n        await this.premiumFeatureUpgrader.upgradeToPremiumFeatureWithPaidPlan(\n          this.premiumFeatureName,\n          this.args.featureCallback,\n          this.args.featureCallbackRoute,\n          this.args.featureParams,\n          this.args.abilityName,\n        );\n        break;\n      case FeatureEnableTypeEnum.ContactUs:\n        window.open(\n          this.contactService.getContactFormUrl(`Subject: ${this.args.abilityName} access request`),\n          '_blank',\n        );\n        break;\n      case FeatureEnableTypeEnum.Unknown:\n      default:\n        break;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  @type={{@type}}\\n  @text={{this.text}}\\n  @onClick={{this.action}}\\n  data-test-feature-customization-center-upgrade-button\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/customization-center/components/upgrade-button/template.hbs' });\n","import type CollectionModel from 'client/data/models/collection';\nimport type { CustomizationCenterConfiguration } from 'client/features/customization-center/services/internal-business/configuration';\nimport type CustomizationCenterConfigurationInternalBusinessService from 'client/features/customization-center/services/internal-business/configuration';\nimport type CustomizationCenterFeatureCreationInternalBusinessService from 'client/features/customization-center/services/internal-business/feature-creation';\nimport type DashboardFeatureService from 'client/features/dashboard/services/feature';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\nimport type ModelCustomizationFeatureService from 'client/features/model-customization/services/feature';\nimport type SegmentFeatureService from 'client/features/segment/services/feature';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\n\nimport Service, { service } from '@ember/service';\n\nimport { ProjectArchitectureEnum } from 'client/data/models/project';\nimport { CustomizationCenterConfigurationFeaturesEnum } from 'client/features/customization-center/services/internal-business/configuration';\nimport { capitalizeText } from 'client/shared/helpers/capitalize-text';\n\nexport default class CustomizationCenterFeatureService extends Service {\n  @service('feature/modal')\n  private modalFeatureService: ModalFeatureService;\n\n  @service('feature/folder')\n  private folderFeatureService: FolderFeatureService;\n\n  @service('feature/workspace')\n  private workspaceFeatureService: WorkspaceFeatureService;\n\n  @service('feature/workflow')\n  private workflowFeatureService: WorkflowFeatureService;\n\n  @service('feature/customization-center/internal-business/feature-creation')\n  private customizationCenterFeatureCreationInternalBusinessService: CustomizationCenterFeatureCreationInternalBusinessService;\n\n  @service('feature/customization-center/internal-business/configuration')\n  private customizationCenterConfigurationInternalBusinessService: CustomizationCenterConfigurationInternalBusinessService;\n\n  @service('feature/dashboard')\n  private dashboardFeatureService: DashboardFeatureService;\n\n  @service('feature/inbox')\n  private inboxFeatureService: InboxFeatureService;\n\n  @service('feature/segment') private segmentFeatureService: SegmentFeatureService;\n  @service('feature/model-customization')\n  private modelCustomizationService: ModelCustomizationFeatureService;\n\n  @service lianaSession: LianaSessionService;\n\n  @service private segmentTracker: SegmentTrackerService;\n\n  public openCustomizationCenterModal(selectedCard?: CustomizationCenterConfigurationFeaturesEnum) {\n    this.segmentTracker.trackCustomizationCenterOpened();\n    return this.modalFeatureService.open('feature/customization-center/modal', {\n      data: {\n        configuration: this.getConfiguration(),\n        selectedCard,\n      },\n    });\n  }\n\n  public getConfiguration(): CustomizationCenterConfiguration[] {\n    return this.customizationCenterConfigurationInternalBusinessService\n      .getConfiguration()\n      .filter((feature) => {\n        if (feature.featureName === CustomizationCenterConfigurationFeaturesEnum.Action)\n          return this.lianaSession.currentProject.architecture === ProjectArchitectureEnum.Cloud;\n        return true;\n      });\n  }\n\n  public openCreationModal(type: CustomizationCenterConfigurationFeaturesEnum) {\n    this.trackStartingCreation(type);\n    this.modalFeatureService.close();\n\n    if (type === CustomizationCenterConfigurationFeaturesEnum.Inbox) {\n      this.inboxFeatureService.handleOpenCreationModal();\n      return;\n    }\n\n    const modalArgs =\n      this.customizationCenterFeatureCreationInternalBusinessService.getModalArguments(type);\n\n    if (!modalArgs) {\n      return;\n    }\n\n    this.modalFeatureService.open('feature/customization-center/creation-modal', {\n      data: {\n        type,\n        ...modalArgs,\n        onCreate: (parameters: { name: string; icon?: string; collection?: CollectionModel }) =>\n          this.handleCreationModalSubmit(type, parameters),\n        onCancel: () => this.modalFeatureService.close(),\n      },\n    });\n  }\n\n  public async handleCreationModalSubmit(\n    type: CustomizationCenterConfigurationFeaturesEnum,\n    { name, collection, icon }: { name: string; icon?: string; collection?: CollectionModel },\n  ) {\n    switch (type) {\n      case CustomizationCenterConfigurationFeaturesEnum.Folder:\n        await this.folderFeatureService.createFolder({ icon, name });\n        break;\n      case CustomizationCenterConfigurationFeaturesEnum.Workspace:\n        await this.workspaceFeatureService.createWorkspace(name, icon);\n        break;\n      case CustomizationCenterConfigurationFeaturesEnum.Dashboard:\n        await this.dashboardFeatureService.createDashboard({ icon, name });\n        break;\n      case CustomizationCenterConfigurationFeaturesEnum.Segment:\n        this.segmentFeatureService.createLocalSegment(collection, name, icon);\n        break;\n      case CustomizationCenterConfigurationFeaturesEnum.Action:\n        this.modelCustomizationService.createLocalModelCustomization(collection, name);\n        break;\n      case CustomizationCenterConfigurationFeaturesEnum.Workflow:\n        await this.workflowFeatureService.createWorkflow({ name, collection });\n        break;\n      default:\n        return this.modalFeatureService.close();\n    }\n\n    return this.modalFeatureService.close();\n  }\n\n  private trackStartingCreation(type: CustomizationCenterConfigurationFeaturesEnum) {\n    const methodName = `trackCustomizationCenter${\n      capitalizeText(type) as Capitalize<typeof type>\n    }Creation` as const;\n\n    this.segmentTracker[methodName]?.();\n  }\n}\n","import Service from '@ember/service';\n\nimport { EnvironmentsFeaturesEnum } from 'client/data/models/plan';\n\nexport enum CustomizationCenterConfigurationFeaturesEnum {\n  Folder = 'folder',\n  Inbox = 'inbox',\n  Workspace = 'workspace',\n  Dashboard = 'dashboard',\n  Workflow = 'workflow',\n  Segment = 'segment',\n  Action = 'action',\n}\n\nexport type CustomizationCenterConfiguration = {\n  featureName: CustomizationCenterConfigurationFeaturesEnum;\n  isRestricted: boolean;\n  image: string;\n  imageDark: string;\n  icon: string;\n  title: string;\n  description: string;\n  discoverLink?: string;\n  abilityName?: EnvironmentsFeaturesEnum;\n  isInBeta?: boolean;\n};\n\nexport const configuration: CustomizationCenterConfiguration[] = [\n  {\n    featureName: CustomizationCenterConfigurationFeaturesEnum.Folder,\n    isRestricted: false,\n    image: '/img/customization-center/folder-light.png',\n    imageDark: '/img/customization-center/folder-dark.png',\n    icon: 'folder',\n    title: 'Folder',\n    description: 'Organize your existing views into a new Folder',\n  },\n  {\n    featureName: CustomizationCenterConfigurationFeaturesEnum.Segment,\n    isRestricted: false,\n    image: '/img/customization-center/segment-light.png',\n    imageDark: '/img/customization-center/segment-dark.png',\n    icon: 'segment',\n    title: 'Segment',\n    description: 'Easily access a filtered view of a collection with a new Segment.',\n  },\n  {\n    featureName: CustomizationCenterConfigurationFeaturesEnum.Workflow,\n    isRestricted: true,\n    isInBeta: false,\n    image: '/img/customization-center/workflow-light.png',\n    abilityName: EnvironmentsFeaturesEnum.Workflow,\n    imageDark: '/img/customization-center/workflow-dark.png',\n    icon: 'account_tree',\n    title: 'Workflow',\n    description:\n      'Define your operational processes, automate steps in 3rd party apps, and execute them securely with a new Workflow.',\n  },\n  {\n    featureName: CustomizationCenterConfigurationFeaturesEnum.Action,\n    isRestricted: false,\n    image: '/img/customization-center/action-light.png',\n    imageDark: '/img/customization-center/action-dark.png',\n    icon: 'play_circle',\n    title: 'Action',\n    description: 'Interact with your data based on your own business logic with a new Action',\n  },\n  {\n    featureName: CustomizationCenterConfigurationFeaturesEnum.Inbox,\n    isRestricted: true,\n    abilityName: EnvironmentsFeaturesEnum.Inbox,\n    image: '/img/customization-center/inbox-light.png',\n    imageDark: '/img/customization-center/inbox-dark.png',\n    icon: 'checklist',\n    title: 'Inbox',\n    description: 'Efficiently dispatch tasks across team members with a new Inbox',\n  },\n  {\n    featureName: CustomizationCenterConfigurationFeaturesEnum.Workspace,\n    isRestricted: false,\n    image: '/img/customization-center/workspace-light.png',\n    imageDark: '/img/customization-center/workspace-dark.png',\n    icon: 'extension',\n    title: 'Workspace',\n    description: 'Access important data, actions and more within a new Workspace',\n  },\n  {\n    featureName: CustomizationCenterConfigurationFeaturesEnum.Dashboard,\n    isRestricted: true,\n    abilityName: EnvironmentsFeaturesEnum.MultipleDashboards,\n    image: '/img/customization-center/dashboard-light.png',\n    imageDark: '/img/customization-center/dashboard-dark.png',\n    icon: 'dashboard',\n    title: 'Dashboard',\n    description: 'Display key metrics, trends, and more in a new Dashboard',\n  },\n];\n\nexport default class CustomizationCenterConfigurationInternalBusinessService extends Service {\n  public getConfiguration(): CustomizationCenterConfiguration[] {\n    return configuration;\n  }\n}\n","import Service from '@ember/service';\n\nimport { CustomizationCenterConfigurationFeaturesEnum } from 'client/features/customization-center/services/internal-business/configuration';\n\ntype ModalArguments = {\n  title: string;\n  namePlaceholder: string;\n  iconDefaultValue?: string;\n  isCollectionItem?: boolean;\n  withIcon?: boolean;\n};\n\nexport default class CustomizationCenterFeatureCreationInternalBusinessService extends Service {\n  public getModalArguments(\n    feature: CustomizationCenterConfigurationFeaturesEnum,\n  ): ModalArguments | null {\n    switch (feature) {\n      case CustomizationCenterConfigurationFeaturesEnum.Folder:\n        return this.getFolderConfiguration();\n      case CustomizationCenterConfigurationFeaturesEnum.Workspace:\n        return this.getWorkspaceConfiguration();\n      case CustomizationCenterConfigurationFeaturesEnum.Dashboard:\n        return this.getDashboardConfiguration();\n      case CustomizationCenterConfigurationFeaturesEnum.Segment:\n        return this.getSegmentConfiguration();\n      case CustomizationCenterConfigurationFeaturesEnum.Action:\n        return this.getActionConfiguration();\n      case CustomizationCenterConfigurationFeaturesEnum.Workflow:\n        return this.getWorkflowConfiguration();\n      default:\n        return null;\n    }\n  }\n\n  private getFolderConfiguration() {\n    return {\n      title: 'New Folder',\n      namePlaceholder: 'Folder name',\n    };\n  }\n\n  private getWorkspaceConfiguration() {\n    return {\n      title: 'New Workspace',\n      namePlaceholder: 'Workspace name',\n      iconDefaultValue: '🧩',\n    };\n  }\n\n  private getDashboardConfiguration() {\n    return {\n      title: 'New Dashboard',\n      namePlaceholder: 'Dashboard name',\n      iconDefaultValue: '📊',\n    };\n  }\n\n  private getSegmentConfiguration() {\n    return {\n      title: 'New Segment',\n      namePlaceholder: 'Segment name',\n      isCollectionItem: true,\n      withIcon: true,\n    };\n  }\n\n  private getActionConfiguration() {\n    return {\n      title: 'New Action',\n      namePlaceholder: 'Action name',\n      isCollectionItem: true,\n      withIcon: false,\n    };\n  }\n\n  private getWorkflowConfiguration() {\n    return {\n      title: 'New Workflow',\n      namePlaceholder: 'Workflow name',\n      isCollectionItem: true,\n      withIcon: false,\n    };\n  }\n}\n","import Component from '@glimmer/component';\n\nimport DashboardModel from 'client/data/models/dashboard';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface DashboardSideMenuItemComponentArgs {\n  item: DashboardModel;\n  currentDashboardId?: string;\n  isVisible?: boolean;\n  onItemClick?: () => void;\n}\n\n@validateArguments\nexport default class DashboardSideMenuItemComponent extends Component<DashboardSideMenuItemComponentArgs> {\n  static propTypes = {\n    item: PropTypes.instanceOf(DashboardModel).isRequired,\n    currentDashboardId: PropTypes.string,\n    isVisible: PropTypes.bool,\n    onItemClick: PropTypes.func,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::BetaSideMenu::Item\\n  @isDraggable={{true}}\\n  @item={{@item}}\\n  @name={{@item.name}}\\n  @icon={{@item.iconOrDefault}}\\n  @route=\\\"project.rendering.dashboard.view\\\"\\n  @routeParameters={{@item.id}}\\n  @isActive={{eq @item.id @currentDashboardId}}\\n  @isEditable={{@isEditable}}\\n  @isVisible={{@isVisible}}\\n  @onClick={{@onItemClick}}\\n  @onClickVisibility={{@onClickVisibility}}\\n  @onClickSettings={{action-link-to \\'project.rendering.dashboard.view.settings\\' @item.id}}\\n  data-id={{@item.id}}\\n  data-test-feature-dashboard-side-menu-item\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/dashboard/components/side-menu/item/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type DashboardModel from 'client/data/models/dashboard';\nimport type DashboardStoreInternalBusinessService from 'client/features/dashboard/services/internal-business/store';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\n\nimport Service, { service } from '@ember/service';\n\nimport { FolderTypeEnum } from 'client/data/models/folder-child';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { getFirstErrorDetail } from 'client/utils/ember-error-util';\n\nexport default class DashboardFeatureService extends Service {\n  @service('feature/dashboard/internal-business/store')\n  private dashboardStoreService: DashboardStoreInternalBusinessService;\n\n  @service('feature/notification')\n  private notificationService: NotificationFeatureService;\n\n  @service('router')\n  private routerService: RouterService;\n\n  @service('error-handler')\n  private errorHandler: ErrorHandlerService;\n\n  @service('feature/folder')\n  private folderFeatureService: FolderFeatureService;\n\n  public async createDashboard({\n    name,\n    icon,\n  }: {\n    name: string;\n    icon: string;\n  }): Promise<DashboardModel | null> {\n    try {\n      const dashboard = await this.dashboardStoreService.create({ name, icon });\n\n      await this.folderFeatureService.addEntityToFolder(dashboard.id, FolderTypeEnum.Dashboard);\n\n      this.notificationService.createToastr(\n        ToastrTypeEnum.Success,\n        'New dashboard successfully created.',\n      );\n      void this.routerService.transitionTo('project.rendering.dashboard.view', dashboard.id);\n\n      return dashboard;\n    } catch (error) {\n      const errorMessage = getFirstErrorDetail(error) ?? 'unexpected error.';\n\n      this.errorHandler.handleRequestFailure(\n        error as Error,\n        `Dashboard creation failed: ${errorMessage}`,\n      );\n      return null;\n    }\n  }\n}\n","import type LianaSessionService from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nexport default class DashboardStoreInternalBusinessService extends Service {\n  @service('store')\n  private storeService: StoreService;\n\n  @service('liana-session')\n  private lianaSessionService: LianaSessionService;\n\n  public async create({ name, icon }: { name: string; icon: string }) {\n    const { rendering } = this.lianaSessionService;\n\n    const dashboard = this.storeService.createRecord('dashboard', {\n      name,\n      icon,\n      position: rendering.get('dashboards').length,\n      rendering,\n    });\n\n    try {\n      await dashboard.save();\n\n      return dashboard;\n    } catch (error) {\n      dashboard.unloadRecord();\n\n      throw error;\n    }\n  }\n}\n","import type EnvironmentModel from 'client/data/models/environment';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface EnvironmentTestEnvironmentSelectorArgs {\n  withoutFocus?: boolean;\n  onSelect: (environment: EnvironmentModel) => void;\n}\n\nexport default class EnvironmentTestEnvironmentSelectorComponent extends Component<EnvironmentTestEnvironmentSelectorArgs> {\n  @service('liana-session') declare lianaSession: LianaSessionService;\n\n  get testEnvironments(): EnvironmentModel[] {\n    return this.lianaSession.currentProject?.accessibleTestEnvironments ?? [];\n  }\n\n  get currentEnvironment(): EnvironmentModel | undefined {\n    return this.lianaSession.currentEnvironment;\n  }\n\n  get isCurrentEnvironmentTest(): boolean {\n    return Boolean(this.currentEnvironment?.isRemote && this.currentEnvironment?.areRolesDisabled);\n  }\n\n  get triggerLabel(): string {\n    if (this.isCurrentEnvironmentTest) {\n      return this.currentEnvironment!.name;\n    }\n    return 'Test environments';\n  }\n\n  @action\n  handleSelect(_value: EnvironmentModel, selectedEnvironment: EnvironmentModel) {\n    if (!selectedEnvironment) return;\n\n    this.args.onSelect(selectedEnvironment);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.testEnvironments.length}}\\n  <div\\n    class={{get-classes-with-modifiers\\n      \\'c-feature-environment-test-environment-selector\\'\\n      active-environment=this.isCurrentEnvironmentTest\\n    }}\\n    data-test-environment-test-environment-selector\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.testEnvironments}}\\n      @value={{one-way this.currentEnvironment}}\\n      @placeholder={{this.triggerLabel}}\\n      @namePath=\\\"name\\\"\\n      @withSearchInput={{true}}\\n      @searchPlaceholder=\\\"Search test environments...\\\"\\n      @emptyText=\\\"No test environments found\\\"\\n      @withoutFocus={{true}}\\n      @onChange={{this.handleSelect}}\\n      data-test-environment-selector-trigger\\n    />\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/features/environment/components/test-environment-selector/template.hbs' });\n","import type FolderModel from 'client/data/models/folder';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type { ReorderParameters } from 'client/features/folder/services/internal-business/reorder-handler';\nimport type { SortableEvent } from 'sortablejs';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ninterface Arguments {\n  folder: FolderModel;\n  currentCollectionId: string;\n  currentSegmentId: string;\n  currentDashboardId: string;\n  currentWorkspaceId: string;\n  currentInboxId: string;\n  isEditable: boolean;\n}\n\nexport default class FolderBlockComponent extends Component<Arguments> {\n  @service('feature/folder') private folderFeatureService: FolderFeatureService;\n\n  @tracked public isFolderFolded: boolean;\n\n  constructor(owner: unknown, args: Arguments) {\n    super(owner, args);\n\n    this.isFolderFolded =\n      this.folderFeatureService.isFolderFolded(this.args.folder)\n      && !this.hasFolderActiveChild\n      && this.args.folder.children?.length > 0;\n  }\n\n  public get isFolderActive() {\n    return this.hasFolderActiveChild && this.isFolderFolded;\n  }\n\n  @action\n  public handleFold(isFolded: boolean) {\n    this.foldFolder(isFolded);\n  }\n\n  @action\n  public handleClickFoldIcon() {\n    this.foldFolder(!this.isFolderFolded);\n  }\n\n  @action\n  public handleClick() {\n    this.folderFeatureService.navigateToFolder(this.args.folder);\n    if (this.args.folder.children?.length) {\n      this.foldFolder(!this.isFolderFolded);\n    }\n  }\n\n  private foldFolder(isFolded: boolean) {\n    this.isFolderFolded = isFolded;\n    if (isFolded) {\n      this.folderFeatureService.foldFolder(this.args.folder);\n    } else {\n      this.folderFeatureService.unfoldFolder(this.args.folder);\n    }\n  }\n\n  @action\n  async handleReorderFolders(event: SortableEvent, parameters: ReorderParameters<FolderModel>) {\n    await this.folderFeatureService.reorderItems(event, parameters);\n  }\n\n  private get hasFolderActiveChild() {\n    const currentSegmentId =\n      this.args.currentSegmentId\n      && this.folderFeatureService.getFolderChild(this.args.currentSegmentId)?.isVisible\n        ? this.args.currentSegmentId\n        : null;\n    const activeItemId =\n      currentSegmentId\n      || this.args.currentCollectionId\n      || this.args.currentDashboardId\n      || this.args.currentWorkspaceId\n      || this.args.currentInboxId;\n    return this.args.folder.children?.toArray().some((child) => child.id === activeItemId);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @folder.isMain}}\\n  {{yield}}\\n{{else}}\\n  <Navigation::BetaSideMenu::Item\\n    @name={{@folder.name}}\\n    @isActive={{this.isFolderActive}}\\n    @icon={{@folder.icon}}\\n    @isFoldable={{true}}\\n    @isFoldedByDefault={{this.isFolderFolded}}\\n    @isEditable={{@isEditable}}\\n    @isDraggable={{default-to @isDraggable true}}\\n    @isVisible={{@isVisible}}\\n    @onClickVisibility={{@onClickVisibility}}\\n    @onFoldItem={{this.handleFold}}\\n    @onClick={{this.handleClick}}\\n    @onClickIcon={{this.handleClickFoldIcon}}\\n    @onClickSettings={{action-link-to \\'project.rendering.folders.view.settings\\' @folder.id}}\\n    @canContainChildren={{true}}\\n    {{sortablejs-item @folder}}\\n    {{sortablejs-group\\n      onChange=this.handleReorderFolders\\n      allowedTypes=(array \\'collection\\' \\'workspace\\' \\'dashboard\\' \\'inbox\\' \\'segment\\')\\n      disabled=(or (not (is-layout-editor)) (eq @isDraggable false))\\n      rootSelector=\\'.l-beta-side-menu-container__sub-items\\'\\n      item=@folder\\n    }}\\n    data-test-feature-folder-beta-side-menu-folder={{@folder.name}}\\n  >\\n    {{yield}}\\n  </Navigation::BetaSideMenu::Item>\\n{{/if}}\\n', { moduleName: 'client/features/folder/components/block/template.hbs' });\n","import type { FolderTypeEnum } from 'client/data/models/folder-child';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type { ReorderParameters } from 'client/features/folder/services/internal-business/reorder-handler';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type FeatureFlagsSharedBusinessService from 'client/shared/services/feature-flags';\nimport type { SortableEvent } from 'sortablejs';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport CollectionModel from 'client/data/models/collection';\nimport FolderModel from 'client/data/models/folder';\nimport FolderChildNestedDocument from 'client/data/models/folder-child';\nimport validateArguments from 'client/decorators/validate';\nimport { FeatureFlagsEnum } from 'client/shared/services/feature-flags';\nimport { pauseFor, waitForNextRunLoop } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FolderChildrenArgs {\n  item: FolderModel | FolderChildNestedDocument;\n  currentCollectionId?: string;\n  currentSegmentId?: string;\n  currentWorkspaceId?: string;\n  currentDashboardId?: string;\n  currentInboxId?: string;\n  isEditable: boolean;\n  inSingleBlock?: boolean;\n  getChildren?: (item: FolderModel | FolderChildNestedDocument) => FolderChildNestedDocument[];\n}\n\n@validateArguments\nexport default class FolderChildrenComponent extends Component<FolderChildrenArgs> {\n  static propTypes = {\n    item: PropTypes.oneOfType([\n      PropTypes.instanceOf(FolderModel),\n      PropTypes.instanceOf(FolderChildNestedDocument),\n    ]).isRequired,\n    currentCollectionId: PropTypes.string,\n    currentSegmentId: PropTypes.string,\n    currentWorkspaceId: PropTypes.string,\n    currentDashboardId: PropTypes.string,\n    currentInboxId: PropTypes.string,\n    isEditable: PropTypes.bool.isRequired,\n    getChildren: PropTypes.func.isRequired,\n  };\n\n  @service('feature/folder') private folderFeatureService: FolderFeatureService;\n  @service('shared/feature-flags') private featureFlagsService: FeatureFlagsSharedBusinessService;\n  @service private currentUser: CurrentUserService;\n  @service private eventBus: EventBusService;\n\n  @tracked public childrenToDraw: FolderChildNestedDocument[] = [];\n  @tracked public childrenIdToRenderInEditMode: string[] = [];\n  @tracked public isLoading =\n    this.isProgressiveSideMenuRenderingEnabled && this.children.length > 0;\n\n  private childrenComputationIteration = 0;\n  private loadingSetIteration = 0;\n  private lastChildrenLength: number = undefined;\n  // This is needed to avoid an ember error (Cannot update a ref that has already been used)\n  private lastChildrenToDrawLength: number = undefined;\n  private readonly DELAY_BEFORE_DISPLAYING_LOADER = 250;\n  private readonly BATCH_SIZE = 10;\n\n  constructor(owner: unknown, args: FolderChildrenArgs) {\n    super(owner, args);\n\n    if (this.isProgressiveSideMenuRenderingEnabled) {\n      void this.handleDidUpdate();\n      this.eventBus.on('editModeActivated', this.handleEditModeActivated);\n      this.eventBus.on('editModeDeactivated', this.handleEditModeDeactivated);\n    }\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n\n    if (this.isProgressiveSideMenuRenderingEnabled) {\n      this.eventBus.off('editModeActivated', this.handleEditModeActivated);\n      this.eventBus.off('editModeDeactivated', this.handleEditModeDeactivated);\n    }\n  }\n\n  public get isProgressiveSideMenuRenderingEnabled() {\n    return this.featureFlagsService.isFeatureOn(FeatureFlagsEnum.SideMenuSpeedUp);\n  }\n\n  public get shouldReplace() {\n    return (\n      !this.args.currentCollectionId\n      && !this.args.currentSegmentId\n      && !this.args.currentWorkspaceId\n      && !this.args.currentDashboardId\n      && !this.args.currentInboxId\n    );\n  }\n\n  public get children() {\n    return this.args.getChildren(this.args.item);\n  }\n\n  @action\n  public getComponentNameToRender(child: {\n    item: FolderModel | CollectionModel;\n    type: FolderTypeEnum;\n  }) {\n    switch (child.type) {\n      case 'collection':\n        return 'feature/collection/side-menu/item';\n      case 'folder':\n        return 'feature/folder';\n      case 'inbox':\n        return 'feature/inbox/side-menu/item';\n      case 'workspace':\n        return 'feature/workspace/side-menu/item';\n      case 'dashboard':\n        return 'feature/dashboard/side-menu/item';\n      case 'segment':\n        return 'feature/segment/side-menu/item';\n      default:\n        return null;\n    }\n  }\n\n  @action\n  public async handleOnClickVisibility(child: FolderChildNestedDocument) {\n    return this.folderFeatureService.toggleVisibility(child);\n  }\n\n  @action\n  getChildItem(child: FolderChildNestedDocument) {\n    return this.folderFeatureService.getChildTargetItem(child);\n  }\n\n  @action\n  public async reorderSubItems(\n    event: SortableEvent,\n    parameters: ReorderParameters<FolderChildNestedDocument>,\n  ) {\n    await this.folderFeatureService.reorderItems(event, parameters);\n  }\n\n  @action\n  public isSubChildrenAllowed(\n    container: CollectionModel | FolderModel,\n    { type, id }: { type: string; id: string },\n  ) {\n    if (container instanceof FolderModel) return true;\n    if (type !== 'segment' || !(container instanceof CollectionModel)) return false;\n\n    return container.segments.any((segment) => segment.id === id);\n  }\n\n  private getBatches({ shouldIgnoreVisibility = false } = {}) {\n    const batches: FolderChildNestedDocument[][] = [];\n    let lastBatch: FolderChildNestedDocument[] = [];\n    let lastBatchEstimatedSize = 0;\n    batches.push(lastBatch);\n\n    for (const child of this.children) {\n      if (lastBatchEstimatedSize > this.BATCH_SIZE) {\n        lastBatch = [];\n        lastBatchEstimatedSize = 0;\n        batches.push(lastBatch);\n      }\n      const estimatedSize = this.getEstimatedSize(child, shouldIgnoreVisibility);\n      lastBatchEstimatedSize += estimatedSize;\n      lastBatch.push(child);\n    }\n    return batches;\n  }\n\n  private getEstimatedSize(child: FolderChildNestedDocument, shouldIgnoreVisibility: boolean) {\n    const itemSize = child.isVisible || shouldIgnoreVisibility ? 1 : 0;\n\n    const container =\n      child.type === 'folder'\n        ? (this.folderFeatureService.getChildTargetItem(child) as FolderModel)\n        : child;\n    return shouldIgnoreVisibility\n      ? container.children.length + itemSize\n      : container.children.filter((item) => item.isVisible).length + itemSize;\n  }\n\n  private processBatchesInAnimationFrame(\n    batches: FolderChildNestedDocument[][],\n    callback: (batch: FolderChildNestedDocument[]) => boolean,\n  ) {\n    if (!batches.length) return;\n\n    return new Promise<void>((resolve) => {\n      let index = 0;\n\n      const processNextBatch = () => {\n        const shouldContinue = callback(batches[index]);\n        index += 1;\n\n        if (index < batches.length && shouldContinue) {\n          requestAnimationFrame(processNextBatch);\n        } else {\n          resolve();\n        }\n      };\n\n      requestAnimationFrame(processNextBatch);\n    });\n  }\n\n  private async setIsLoading(loading: boolean) {\n    this.loadingSetIteration += 1;\n    if (loading) {\n      const loadingSetIteration = this.loadingSetIteration;\n      await pauseFor(this.DELAY_BEFORE_DISPLAYING_LOADER);\n\n      // It means an update to false has been made since\n      if (loadingSetIteration !== this.loadingSetIteration) {\n        return;\n      }\n    }\n    this.isLoading = loading;\n  }\n\n  private async handleRedrawAFterReorder() {\n    await waitForNextRunLoop();\n    const currentChildren = this.children;\n    const deletedChildren = this.childrenToDraw.filter((child) => !currentChildren.includes(child));\n    const newChildren = currentChildren.filter((child) => !this.childrenToDraw.includes(child));\n\n    this.childrenToDraw.removeObjects(deletedChildren);\n    this.childrenIdToRenderInEditMode.removeObjects(deletedChildren.map((child) => child.id));\n\n    newChildren.forEach((newChild) => {\n      const index = this.children.indexOf(newChild);\n      this.childrenToDraw.insertAt(index, newChild);\n    });\n    if (this.currentUser.editMode) {\n      this.childrenIdToRenderInEditMode.pushObjects(newChildren.map((child) => child.id));\n    }\n\n    this.lastChildrenToDrawLength = this.childrenToDraw.length;\n  }\n\n  @action\n  async handleDidUpdate() {\n    const childrenLength = this.children.length;\n    if (this.lastChildrenLength === childrenLength) return;\n    this.lastChildrenLength = childrenLength;\n\n    if (Math.abs(this.lastChildrenToDrawLength - childrenLength) === 1) {\n      // The user is certainly doing a reorder\n      return this.handleRedrawAFterReorder();\n    }\n\n    this.setIsLoading(true);\n    this.childrenComputationIteration += 1;\n    const childrenComputationIteration = this.childrenComputationIteration;\n    const shouldRenderInvisibleItems = this.args.inSingleBlock && this.currentUser.editMode;\n    const [firstBatch, ...restBatches] = this.getBatches({\n      shouldIgnoreVisibility: shouldRenderInvisibleItems,\n    });\n    this.setIsLoading(restBatches.length > 0);\n    this.childrenToDraw = firstBatch;\n    this.lastChildrenToDrawLength = this.childrenToDraw.length;\n    this.childrenIdToRenderInEditMode = shouldRenderInvisibleItems\n      ? firstBatch.map((child) => child.id)\n      : [];\n\n    await this.processBatchesInAnimationFrame(restBatches, (batch) => {\n      const isBatchOutdated = childrenComputationIteration !== this.childrenComputationIteration;\n      if (isBatchOutdated) return false;\n      this.childrenToDraw.pushObjects(batch);\n      this.lastChildrenToDrawLength = this.childrenToDraw.length;\n      if (shouldRenderInvisibleItems) {\n        this.childrenIdToRenderInEditMode.pushObjects(batch.map((child) => child.id));\n      }\n      return true;\n    });\n\n    if (this.currentUser.editMode && !shouldRenderInvisibleItems) {\n      this.handleEditModeActivated({ shouldForceCompute: true });\n    }\n\n    if (childrenComputationIteration === this.childrenComputationIteration) {\n      this.setIsLoading(false);\n    }\n  }\n\n  @action\n  shouldDisplay(child: FolderChildNestedDocument) {\n    return this.isProgressiveSideMenuRenderingEnabled\n      ? child.isVisible || this.childrenIdToRenderInEditMode.includes(child.id)\n      : child.isVisible || this.currentUser.editMode;\n  }\n\n  @action\n  private async handleEditModeActivated({ shouldForceCompute = false } = {}) {\n    if (this.isLoading && !shouldForceCompute) return;\n\n    this.setIsLoading(true);\n    const childrenComputationIteration = this.childrenComputationIteration;\n    const batchesWithHiddenElements = this.getBatches({ shouldIgnoreVisibility: true });\n\n    await this.processBatchesInAnimationFrame(batchesWithHiddenElements, (batch) => {\n      const isBatchOutdated = childrenComputationIteration !== this.childrenComputationIteration;\n      if (isBatchOutdated || !this.currentUser.editMode) return false;\n      this.childrenIdToRenderInEditMode.pushObjects(batch.map((child) => child.id));\n      return true;\n    });\n\n    if (childrenComputationIteration === this.childrenComputationIteration) {\n      this.setIsLoading(false);\n    }\n  }\n\n  @action\n  private handleEditModeDeactivated() {\n    this.childrenIdToRenderInEditMode.clear();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-update this.handleDidUpdate this.children}}\\n{{#each\\n  (if this.isProgressiveSideMenuRenderingEnabled this.childrenToDraw (@getChildren @item)) key=\\'id\\'\\n  as |child|\\n}}\\n  {{#let\\n    (component (this.getComponentNameToRender child)) (this.getChildItem child)\\n    as |ChildComponent item|\\n  }}\\n    {{#if (and item (this.shouldDisplay child item) (not item.isNew))}}\\n      <ChildComponent\\n        @item={{item}}\\n        @currentCollectionId={{@currentCollectionId}}\\n        @currentSegmentId={{@currentSegmentId}}\\n        @currentDashboardId={{@currentDashboardId}}\\n        @currentInboxId={{@currentInboxId}}\\n        @currentWorkspaceId={{@currentWorkspaceId}}\\n        @isEditable={{@isEditable}}\\n        @onClickVisibility={{fn this.handleOnClickVisibility child}}\\n        @isVisible={{child.isVisible}}\\n        @shouldReplace={{this.shouldReplace}}\\n        @getChildren={{@getChildren}}\\n        @isDraggable={{@isDraggable}}\\n        @isFoldable={{gt (get (@getChildren child) \\'length\\') 0}}\\n        @inSingleBlock={{@inSingleBlock}}\\n        {{sortablejs-item child typeAttribute=\\'type\\'}}\\n        {{sortablejs-group\\n          rootSelector=\\'.l-beta-side-menu-container__sub-items\\'\\n          onChange=(fn (optional this.reorderSubItems))\\n          disabled=(or this.isLoading (not (is-layout-editor)) (eq @isDraggable false))\\n          isElementAllowed=(fn this.isSubChildrenAllowed item)\\n          item=child\\n        }}\\n        data-test-feature-folder-children\\n        ...attributes\\n      >\\n        <Feature::Folder::Children\\n          @item={{child}}\\n          @getChildren={{@getChildren}}\\n          @currentCollectionId={{@currentCollectionId}}\\n          @currentSegmentId={{@currentSegmentId}}\\n          @currentDashboardId={{@currentDashboardId}}\\n          @currentInboxId={{@currentInboxId}}\\n          @currentWorkspaceId={{@currentWorkspaceId}}\\n          @isEditable={{@isEditable}}\\n          @isDraggable={{@isDraggable}}\\n          @inSingleBlock={{@inSingleBlock}}\\n        />\\n      </ChildComponent>\\n    {{/if}}\\n  {{/let}}\\n{{/each}}\\n\\n{{#if this.isLoading}}\\n  <div class=\\\"c-feature-folder-children-loader js-feature-folder-children-loader\\\">\\n    <Shared::Feedback::BetaLoader class=\\\"c-feature-folder-children-loader__loader\\\" />\\n    Loading more items...\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/features/folder/components/children/template.hbs' });\n","import type FolderChildNestedDocument from 'client/data/models/folder-child';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport FolderModel from 'client/data/models/folder';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FolderArgs {\n  item: FolderModel;\n  currentCollectionId?: string;\n  currentSegmentId?: string;\n  currentWorkspaceId?: string;\n  currentDashboardId?: string;\n  currentInboxId?: string;\n  isEditable: boolean;\n  inSingleBlock?: boolean;\n  getChildren?: (item: FolderModel | FolderChildNestedDocument) => FolderChildNestedDocument[];\n}\n\n@validateArguments\nexport default class FolderComponent extends Component<FolderArgs> {\n  static propTypes = {\n    item: PropTypes.instanceOf(FolderModel).isRequired,\n    currentCollectionId: PropTypes.string,\n    currentSegmentId: PropTypes.string,\n    currentWorkspaceId: PropTypes.string,\n    currentDashboardId: PropTypes.string,\n    currentInboxId: PropTypes.string,\n    isEditable: PropTypes.bool.isRequired,\n  };\n\n  @service('feature/folder') private folderFeatureService: FolderFeatureService;\n  @service private currentUser: CurrentUserService;\n\n  @action\n  public getChildren(container: FolderModel | FolderChildNestedDocument = this.args.item) {\n    return this.args.getChildren\n      ? this.args.getChildren(container)\n      : this.folderFeatureService.getChildren(container);\n  }\n\n  public get shouldDisplayFolder() {\n    if (this.currentUser.editMode) {\n      return true;\n    }\n\n    return this.getChildren()\n      .toArray()\n      .some((child) => !(child.isDestroyed || child.isDestroying) && child.isVisible);\n  }\n}\n","import type CurrentUserService from 'client/legacy/services/current-user';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class FolderEmptyStateComponent extends Component {\n  @service('current-user') public currentUser: CurrentUserService;\n\n  get textButton() {\n    if (this.currentUser.canEditLayout) {\n      return this.currentUser.isLayoutEditorEnabled\n        ? 'Edit layout'\n        : 'Create a branch to enable layout editing';\n    }\n    return undefined;\n  }\n\n  get canEditLayout() {\n    return this.currentUser.canEditLayout;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-folder-empty-state\\\" data-test-feature-folder-empty-state ...attributes>\\n  <BetaEmptyState\\n    @iconName=\\\"cancel_presentation\\\"\\n    @textButton={{this.textButton}}\\n    @onClickButton={{if\\n      this.currentUser.isLayoutEditorEnabled\\n      (fn (mut this.currentUser.editMode) true)\\n      (action-link-to \\'project.project-settings.environments\\')\\n    }}\\n    @shouldHideButton={{not this.canEditLayout}}\\n  >\\n    <Shared::Layout::FullPageTitleDescription\\n      @title=\\\"All of your pages are hidden\\\"\\n      @message={{if\\n        this.canEditLayout\\n        \\'Toggle on their visibility to make them accessible.\\'\\n        \\'Ask your administrator to toggle on their visibility to make them accessible.\\'\\n      }}\\n    />\\n  </BetaEmptyState>\\n</div>\\n', { moduleName: 'client/features/folder/components/empty-state/template.hbs' });\n","import type FolderFeatureService from 'client/features/folder/services/feature';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class FolderFolderModalComponent extends Component {\n  @service('feature/modal') modalService: ModalFeatureService;\n  @service('feature/folder') folderService: FolderFeatureService;\n\n  @action\n  handleCancel() {\n    this.folderService.closeCreateFolderModal();\n  }\n\n  @action\n  async handleConfirm(parameters: { name: string; icon: string }) {\n    await this.folderService.createFolder(parameters);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Form::CreateNameAndIconModal\\n  @title=\\\"New Folder\\\"\\n  @namePlaceholder=\\\"Folder Name\\\"\\n  @onCancel={{this.handleCancel}}\\n  @onCreate={{this.handleConfirm}}\\n  data-test-feature-folder-modal\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/folder/components/folder-modal/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-folder-page\\\" data-test-feature-folder-page ...attributes>\\n  {{#if (has-block \\'body\\')}}\\n    <div class=\\\"c-feature-folder-page__body\\\" data-test-feature-report-page>\\n      {{yield to=\\'body\\'}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/folder/components/page/template.hbs' });\n","import type UserPreferenceState from 'client/shared/states/user-preference';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class FolderPageViewComponent extends Component {\n  @service('shared/state/user-preference') private userPreferenceState: UserPreferenceState;\n\n  get isDarkMode() {\n    return this.userPreferenceState.isDarkTheme;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-folder-page-view\\\" data-test-feature-folder-page-view ...attributes>\\n  <img\\n    class=\\\"c-feature-folder-page-view__image\\\"\\n    src={{if\\n      this.isDarkMode\\n      \\'/img/collaboration/inbox/empty-box-dark.svg\\'\\n      \\'/img/collaboration/inbox/empty-box-light.svg\\'\\n    }}\\n    alt=\\\"Empty folder\\\"\\n    data-test-feature-folder-page-view-image\\n  />\\n\\n  <Shared::Layout::FullPageTitleDescription\\n    @title=\\\"This folder is empty!\\\"\\n    @message=\\\"Drag and drop a page into it to populate it.\\\"\\n  />\\n</div>\\n', { moduleName: 'client/features/folder/components/page/view/template.hbs' });\n","import type FolderModel from 'client/data/models/folder';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface SettingsArgs {\n  folder: FolderModel;\n}\n\nexport default class FolderSettingsComponent extends Component<SettingsArgs> {\n  @service('feature/folder') private folderService: FolderFeatureService;\n\n  get isSaveDisabled() {\n    return !this.args.folder.hasDirtyAttributes;\n  }\n\n  @action\n  async handleSave() {\n    if (!this.args.folder.validate()) {\n      return null;\n    }\n\n    return this.folderService.saveFolder(this.args.folder);\n  }\n\n  @action\n  handleChangeName(value: string) {\n    this.args.folder.name = value;\n  }\n\n  @action\n  async handleDelete() {\n    await this.folderService.deleteFolder(this.args.folder);\n  }\n\n  @action\n  handleDiscard() {\n    this.folderService.discardFolderChanges(this.args.folder);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout\\n  class=\\\"c-feature-folder-settings\\\"\\n  data-test-feature-folder-settings\\n  ...attributes\\n>\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"General settings\\\"\\n    @description=\\\"Manage and configure your folder.\\\"\\n    @hasWideGap={{true}}\\n    class=\\\"c-feature-folder-settings__general\\\"\\n    data-test-feature-folder-settings-general\\n  >\\n    <:after-title>\\n      <Shared::BetaSettingsLayout::SaveButton\\n        @onSave={{this.handleSave}}\\n        @onDiscard={{this.handleDiscard}}\\n        @isSaveDisabled={{this.isSaveDisabled}}\\n        data-test-feature-folder-settings-save-button\\n      />\\n    </:after-title>\\n    <:default>\\n      <Shared::BetaLabel\\n        @label=\\\"Folder icon\\\"\\n        @for=\\\"folder-icon\\\"\\n        class=\\\"c-feature-folder-settings__label\\\"\\n        data-test-feature-folder-settings-icon\\n      >\\n        <Shared::BetaEmojiPicker\\n          @value={{@folder.icon}}\\n          @onChange={{fn (mut @folder.icon)}}\\n          @placeholder=\\\"Select an icon\\\"\\n          name=\\\"folder-icon\\\"\\n          class=\\\"c-feature-folder-settings__input\\\"\\n          data-test-feature-folder-settings-icon-value\\n        />\\n      </Shared::BetaLabel>\\n\\n      <Shared::BetaLabel\\n        @label=\\\"Folder name\\\"\\n        @for=\\\"folder-name\\\"\\n        class=\\\"c-feature-folder-settings__label\\\"\\n        @isError={{@folder.errors.name}}\\n        @errorMessage=\\\"Folder name is required\\\"\\n        data-test-feature-folder-settings-name\\n      >\\n        <Shared::BetaInput\\n          @value={{@folder.name}}\\n          @onChange={{this.handleChangeName}}\\n          @state={{if @folder.errors.name \\'error\\'}}\\n          name=\\\"folder-name\\\"\\n          class=\\\"c-feature-folder-settings__input\\\"\\n          data-test-feature-folder-settings-name-value\\n        />\\n      </Shared::BetaLabel>\\n\\n    </:default>\\n  </Shared::BetaSettingsLayout::Section>\\n\\n  <Shared::BetaSettingsLayout::DeleteSection\\n    @title=\\\"Delete folder\\\"\\n    @entityName={{@folder.name}}\\n    @onDelete={{this.handleDelete}}\\n    @warningMessage=\\\"You are about to delete the “{{@folder.name}}” folder.\\\"\\n    data-test-feature-folder-settings-delete-section\\n  />\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/features/folder/components/settings/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type FolderModel from 'client/data/models/folder';\nimport type CustomizationCenterFeatureService from 'client/features/customization-center/services/feature';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type { ReorderParameters } from 'client/features/folder/services/internal-business/reorder-handler';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type UiControlService from 'client/legacy/services/ui-control';\nimport type { SortableEvent } from 'sortablejs';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport resizableSideMenu from 'client/decorators/resizable-side-menu';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport { SideMenuItemsEnum } from 'client/utils/last-side-menu-width';\nimport { getRouteInfo } from 'client/utils/route-utils';\n\n@resizableSideMenu(SideMenuItemsEnum.Collection)\nexport default class FolderSideMenuComponent extends Component {\n  @service private currentUser: CurrentUserService;\n  @service private eventBus: EventBusService;\n  @service private router: RouterService;\n  @service private uiControl: UiControlService;\n  @service('feature/customization-center')\n  private customizationCenterFeature: CustomizationCenterFeatureService;\n\n  @service('feature/folder') private folderFeature: FolderFeatureService;\n  @service('feature/workflow') private workflowFeature: WorkflowFeatureService;\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n\n  private containerElement: HTMLElement | null = null;\n\n  constructor(owner: unknown, properties?: object) {\n    super(owner, properties);\n\n    // This prevent entities to be totally hidden\n    this.folderFeature.addOrphanEntitiesToMainFolder();\n    // eslint-disable-next-line @typescript-eslint/no-misused-promises\n    this.router.on('routeDidChange', this.handleRouteDidChange);\n    this.eventBus.on('editModeDeactivated', this.handleLeaveEditMode);\n  }\n\n  willDestroy(): void {\n    this.containerElement = null;\n    // eslint-disable-next-line @typescript-eslint/no-misused-promises\n    this.router.off('routeDidChange', this.handleRouteDidChange);\n    super.willDestroy();\n  }\n\n  get mainFolder() {\n    return this.folderFeature.getMainFolder();\n  }\n\n  get currentCollectionId() {\n    const routeInfo = getRouteInfo(this.router.currentRoute, 'project.rendering.data.collection');\n    return routeInfo?.params.collection_id || undefined;\n  }\n\n  get currentSegmentId() {\n    return this.router.currentRoute?.queryParams?.segmentId;\n  }\n\n  get currentWorkspaceId() {\n    const routeInfo = getRouteInfo(this.router.currentRoute, 'project.rendering.workspaces.view');\n    return routeInfo?.params.workspace_id || undefined;\n  }\n\n  get currentDashboardId() {\n    const routeInfo = getRouteInfo(this.router.currentRoute, 'project.rendering.dashboard.view');\n    return routeInfo?.params.dashboard_id || undefined;\n  }\n\n  get currentInboxId() {\n    return this.inboxFeature.currentInboxId;\n  }\n\n  get currentFolderId() {\n    const routeInfo = getRouteInfo(this.router.currentRoute, 'project.rendering.folders.view');\n    return routeInfo?.params.folder_id || undefined;\n  }\n\n  get isHidden() {\n    return this.uiControl.isSideMenuHidden;\n  }\n\n  @action\n  handleAddNewItem() {\n    if (!this.currentUser.editMode) {\n      this.currentUser.editMode = true;\n    }\n    this.customizationCenterFeature.openCustomizationCenterModal();\n  }\n\n  @action\n  async handleDidInsert(element?: HTMLElement) {\n    this.containerElement = element || this.containerElement;\n    // Make sure the entire side menu is loaded first\n    await waitForNextRunLoop();\n\n    if (this.isDestroying || this.isDestroyed || !this.containerElement) return;\n\n    const activeItem =\n      this.containerElement.querySelector('[data-navigation-beta-side-menu-item-link-active]')\n      || this.containerElement.querySelector('.js-navigation-beta-side-menu-item-link-active');\n    if (\n      !activeItem\n      && !this.currentCollectionId\n      && !this.currentFolderId\n      && !this.currentWorkspaceId\n      && !this.currentDashboardId\n      && !this.currentInboxId\n    ) {\n      const sideMenu = this.containerElement.querySelector<HTMLLinkElement>(\n        '[data-navigation-beta-side-menu-item-link]',\n      );\n      sideMenu?.click();\n    } else {\n      activeItem?.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'nearest' });\n    }\n  }\n\n  @action\n  handleRouteDidChange() {\n    return this.handleDidInsert();\n  }\n\n  @action\n  async handleReorderFolders(event: SortableEvent, parameters: ReorderParameters<FolderModel>) {\n    await this.folderFeature.reorderItems(event, parameters);\n  }\n\n  @action\n  handleHideSideMenu() {\n    this.eventBus.trigger('recalculateTableWidth');\n    this.uiControl.isSideMenuHidden = !this.uiControl.isSideMenuHidden;\n  }\n\n  @action\n  async handleLeaveEditMode() {\n    // We have a weird behaviour when dragging items and then leaving the edit mode\n    // Some items are still considered as being in edit mode and or not anymore attached to ember\n    // So we need to refresh those items manually\n    await waitForNextRunLoop();\n\n    if (\n      this.isDestroyed\n      || this.isDestroying\n      || !this.containerElement\n      || this.currentUser.editMode\n    )\n      return;\n    const items = this.containerElement.querySelectorAll<HTMLElement>(\n      '.c-beta-side-menu-item--editor',\n    );\n    items.forEach((item) => {\n      item.remove();\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::BetaSideMenu\\n  @displayBranding={{true}}\\n  @onToggleSideMenuVisibility={{this.handleHideSideMenu}}\\n  @isHidden={{this.isHidden}}\\n  @onSetSideMenuWidth={{this.handleSetSideMenuWidthInStorage}}\\n  @sideMenuWidth={{this.lastSideMenuWidth}}\\n  class=\\\"c-feature-folder-side-menu\\\"\\n  data-test-feature-folder-side-menu\\n  ...attributes\\n>\\n  <:header>\\n    <Button::GlobalSearch @isHidden={{this.isHidden}} />\\n  </:header>\\n  <:default>\\n    <Navigation::BetaSideMenu::Section\\n      {{sortablejs-group\\n        rootSelector=\\'.l-beta-side-menu-section-content\\'\\n        onChange=this.handleReorderFolders\\n        disabled=(not (is-layout-editor))\\n        allowedTypes=(array \\'collection\\' \\'folder\\' \\'workspace\\' \\'dashboard\\' \\'inbox\\' \\'segment\\')\\n        item=this.mainFolder\\n      }}\\n      {{did-insert this.handleDidInsert}}\\n    >\\n      {{#if this.mainFolder}}\\n        <Feature::Folder\\n          @item={{this.mainFolder}}\\n          @currentCollectionId={{this.currentCollectionId}}\\n          @currentSegmentId={{this.currentSegmentId}}\\n          @currentDashboardId={{this.currentDashboardId}}\\n          @currentWorkspaceId={{this.currentWorkspaceId}}\\n          @currentInboxId={{this.currentInboxId}}\\n          @isEditable={{true}}\\n        />\\n      {{/if}}\\n    </Navigation::BetaSideMenu::Section>\\n  </:default>\\n\\n  <:footer>\\n    {{#if (get (current-user) \\'canEditLayout\\')}}\\n      <Shared::Button\\n        @iconName=\\\"add\\\"\\n        @type=\\\"editor\\\"\\n        @text=\\\"Add new\\\"\\n        @onClick={{this.handleAddNewItem}}\\n        @mustStopPropagation={{false}}\\n        data-test-beta-side-menu-add-new-button\\n      />\\n    {{/if}}\\n  </:footer>\\n</Navigation::BetaSideMenu>\\n', { moduleName: 'client/features/folder/components/side-menu/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.shouldDisplayFolder}}\\n  <Feature::Folder::Block\\n    @folder={{@item}}\\n    @isVisible={{@isVisible}}\\n    @currentCollectionId={{@currentCollectionId}}\\n    @currentSegmentId={{@currentSegmentId}}\\n    @currentDashboardId={{@currentDashboardId}}\\n    @currentInboxId={{@currentInboxId}}\\n    @currentWorkspaceId={{@currentWorkspaceId}}\\n    @isEditable={{@isEditable}}\\n    @onClickVisibility={{@onClickVisibility}}\\n    @onItemClick={{@onItemClick}}\\n    @isDraggable={{@isDraggable}}\\n  >\\n    <Feature::Folder::Children\\n      @item={{@item}}\\n      @getChildren={{this.getChildren}}\\n      @currentCollectionId={{@currentCollectionId}}\\n      @currentSegmentId={{@currentSegmentId}}\\n      @currentDashboardId={{@currentDashboardId}}\\n      @currentInboxId={{@currentInboxId}}\\n      @currentWorkspaceId={{@currentWorkspaceId}}\\n      @isEditable={{@isEditable}}\\n      @isDraggable={{@isDraggable}}\\n      @inSingleBlock={{@inSingleBlock}}\\n    />\\n  </Feature::Folder::Block>\\n{{/if}}\\n', { moduleName: 'client/features/folder/components/template.hbs' });\n","// eslint-disable-next-line max-classes-per-file\nimport { getFirstErrorDetail } from 'client/utils/ember-error-util';\nimport { UnknownError, WrappedError } from 'client/utils/errors';\n\nexport class UnknownFolderError extends UnknownError {\n  constructor(cause: Error) {\n    super(cause);\n\n    this.name = 'UnknownFolderError';\n    this.message = getFirstErrorDetail(cause) || cause.message;\n  }\n\n  get context() {\n    return { ...(this.cause || {}) };\n  }\n}\n\nexport class NotFoundFolderError extends WrappedError {\n  constructor(cause: Error) {\n    super(cause, 'Folder could not be found');\n\n    this.name = 'NotFoundFolderError';\n  }\n}\n\nexport class NotFoundFolderChildError extends Error {\n  constructor(message: string | undefined = 'Folder child could not be found') {\n    super(message);\n\n    this.name = 'NotFoundFolderChildError';\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type CollectionModel from 'client/data/models/collection';\nimport type FolderModel from 'client/data/models/folder';\nimport type FolderChildNestedDocument from 'client/data/models/folder-child';\nimport type { FolderTypeEnum } from 'client/data/models/folder-child';\nimport type SegmentModel from 'client/data/models/segment';\nimport type FolderFetcherInternalBusinessService from 'client/features/folder/services/internal-business/folder-fetcher';\nimport type { FetchFoldersParams } from 'client/features/folder/services/internal-business/folder-fetcher';\nimport type FolderManagerInternalBusinessService from 'client/features/folder/services/internal-business/manager';\nimport type { ReorderParameters } from 'client/features/folder/services/internal-business/reorder-handler';\nimport type FolderReorderHandlerInternalBusinessService from 'client/features/folder/services/internal-business/reorder-handler';\nimport type FolderStoreInternalBusinessService from 'client/features/folder/services/internal-business/store';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type NavigationHandlerBusinessService from 'client/shared/services/navigation-handler';\nimport type { SortableEvent } from 'sortablejs';\n\nimport Service, { service } from '@ember/service';\nimport { didCancel } from 'ember-concurrency';\n\nimport { NotFoundFolderError, UnknownFolderError } from 'client/features/folder/errors';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nexport type FolderModalData = {\n  title: string;\n  confirmText: string;\n  onCancel: () => void;\n  onConfirm: () => Promise<void>;\n  formData: {\n    icon: string | null;\n    name: string | null;\n  };\n};\n\nexport default class FolderFeatureService extends Service {\n  @service private currentUser: CurrentUserService;\n  @service private router: RouterService;\n  @service('feature/folder/internal-business/reorder-handler')\n  private folderReorderHandlerService: FolderReorderHandlerInternalBusinessService;\n\n  @service('feature/notification') private notificationService: NotificationFeatureService;\n  @service('error-handler') private errorHandler: ErrorHandlerService;\n  @service('feature/modal')\n  private modalFeatureService: ModalFeatureService;\n\n  @service('feature/folder/internal-business/folder-fetcher')\n  private folderFetcherInternalBusiness: FolderFetcherInternalBusinessService;\n\n  @service('feature/folder/internal-business/store')\n  private folderStore: FolderStoreInternalBusinessService;\n\n  @service('shared/navigation-handler')\n  private navigationHandler: NavigationHandlerBusinessService;\n\n  @service('feature/folder/internal-business/manager')\n  private folderManager: FolderManagerInternalBusinessService;\n\n  public openCreateFolderModal() {\n    return this.modalFeatureService.open('feature/folder/folder-modal');\n  }\n\n  public closeCreateFolderModal() {\n    return this.modalFeatureService.close();\n  }\n\n  public getMainFolder() {\n    return this.folderManager.getMainFolder();\n  }\n\n  public async fetchFolders({ projectName, environmentName, teamName }: FetchFoldersParams) {\n    try {\n      return await this.folderFetcherInternalBusiness.fetchFolders({\n        projectName,\n        environmentName,\n        teamName,\n      });\n    } catch (error) {\n      this.errorHandler.handleError(\n        new UnknownFolderError(error as Error),\n        'Failed to fetch folders',\n      );\n      return [];\n    }\n  }\n\n  public async loadRequireModelForFolder(folderId: string) {\n    const folder = this.folderStore.getFolder(folderId);\n\n    if (!folder) {\n      this.errorHandler.handleSilentError(new NotFoundFolderError(null));\n\n      this.notificationService.createToastr(\n        ToastrTypeEnum.Error,\n        'Folder not found. Redirecting to your collections.',\n      );\n\n      return this.router.transitionTo('project.rendering.data');\n    }\n\n    return { folder };\n  }\n\n  public async reorderItems(\n    event: SortableEvent,\n    parameters: ReorderParameters<FolderModel | FolderChildNestedDocument>,\n  ) {\n    try {\n      await this.folderReorderHandlerService.reorderItems(event, parameters);\n\n      this.notificationService.createToastr(ToastrTypeEnum.Success, 'Items reordered.');\n    } catch (error) {\n      if (!didCancel(error)) {\n        this.errorHandler.handleError(\n          new UnknownFolderError(error as Error),\n          'Items reordering failed',\n        );\n      }\n    }\n  }\n\n  public async createFolder({ icon, name }: Pick<FolderModel, 'icon' | 'name'>) {\n    try {\n      const folder = await this.folderStore.createFolder({ icon, name });\n      this.notificationService.createToastr(ToastrTypeEnum.Success, 'Folder created successfully');\n      await this.router.transitionTo('project.rendering.folders.view', folder.id);\n    } catch (error) {\n      this.errorHandler.handleError(\n        new UnknownFolderError(error as Error),\n        'Error while creating folder',\n      );\n    } finally {\n      this.closeCreateFolderModal();\n    }\n  }\n\n  public async saveFolder(folder: FolderModel) {\n    try {\n      await this.folderStore.saveFolder(folder);\n\n      this.notificationService.createToastr(ToastrTypeEnum.Success, 'Folder updated successfully');\n    } catch (error) {\n      this.errorHandler.handleError(\n        new UnknownFolderError(error as Error),\n        `Error while updating folder`,\n      );\n    }\n  }\n\n  public async deleteFolder(folder: FolderModel) {\n    try {\n      await this.folderManager.deleteFolder(folder);\n\n      this.notificationService.createToastr(ToastrTypeEnum.Success, 'Folder deleted successfully');\n      void this.router.transitionTo('project.rendering.data');\n    } catch (error) {\n      this.errorHandler.handleError(\n        new UnknownFolderError(error as Error),\n        'Error while deleting folder',\n      );\n    }\n  }\n\n  public discardFolderChanges(folder: FolderModel) {\n    return this.folderStore.discardFolderChanges(folder);\n  }\n\n  public getChildren(folder: FolderModel | FolderChildNestedDocument) {\n    return this.folderStore.getSortedChildren(folder);\n  }\n\n  public getChildrenMatchingSearch(\n    container: FolderModel | FolderChildNestedDocument,\n    search?: string,\n  ) {\n    try {\n      return this.folderManager.getSortedChildrenMatchingSearch(\n        container,\n        search,\n        this.currentUser.editMode,\n      );\n    } catch (error) {\n      this.errorHandler.handleError(\n        new UnknownFolderError(error as Error),\n        'An error occurred while searching',\n      );\n      return [];\n    }\n  }\n\n  public getFolderChild(id: string) {\n    return this.folderManager.getFolderChild(id);\n  }\n\n  public getChildTargetItem(folderChild: FolderChildNestedDocument) {\n    return this.folderStore.getChildTargetItem(folderChild);\n  }\n\n  public isFolderFolded(folder: FolderModel) {\n    return this.navigationHandler.isItemFolded(this.getFolderKey(folder));\n  }\n\n  public foldFolder(folder: FolderModel) {\n    this.navigationHandler.setItemFoldedState(this.getFolderKey(folder), true);\n  }\n\n  public unfoldFolder(folder: FolderModel) {\n    this.navigationHandler.setItemFoldedState(this.getFolderKey(folder), false);\n  }\n\n  private getFolderKey(folder: FolderModel) {\n    return `rendering_${folder.rendering.id}_folders_${folder.id}`;\n  }\n\n  public toggleVisibility = async (child: FolderChildNestedDocument) => {\n    const item = this.getChildTargetItem(child);\n\n    const notificationName = 'displayName' in item ? item.displayName : item.name;\n\n    try {\n      await this.folderManager.toggleVisibility(child);\n\n      const visibility = child.isVisible ? 'visible' : 'hidden';\n      this.notificationService.createToastr(\n        ToastrTypeEnum.Success,\n        `${notificationName} is now ${visibility}.`,\n      );\n    } catch (error) {\n      this.errorHandler.handleError(\n        new UnknownFolderError(error as Error),\n        `Error while updating ${notificationName} visibility`,\n      );\n    }\n  };\n\n  public navigateToFolder(folder: FolderModel) {\n    if (folder.children.length === 0 && this.currentUser.editMode) {\n      void this.router.transitionTo('project.rendering.folders.view', folder.id);\n    }\n  }\n\n  public async addEntityToFolder(\n    entityId: string,\n    entityType: FolderTypeEnum.Workspace | FolderTypeEnum.Dashboard | FolderTypeEnum.Inbox,\n  ) {\n    return this.folderManager.addEntityToFolder(entityId, entityType);\n  }\n\n  public async removeChildFromFolder(childId: string) {\n    return this.folderManager.removeChildFromFolder(childId);\n  }\n\n  public shouldAllowInvisibleSection(transitionTo: string) {\n    return this.folderManager.shouldAllowInvisibleSection(transitionTo);\n  }\n\n  public addOrphanEntitiesToMainFolder() {\n    return this.folderManager.addOrphanEntitiesToMainFolder();\n  }\n\n  public async addSegmentToCollectionSubChildren(segment: SegmentModel) {\n    try {\n      await this.folderManager.addSegmentToCollectionSubChildren(segment);\n    } catch (error) {\n      this.errorHandler.handleSilentError(new UnknownFolderError(error as Error), {\n        message: 'Error while adding segment',\n      });\n    }\n  }\n\n  public async removeSegmentFromCollectionSubChildren(segment: SegmentModel) {\n    try {\n      await this.folderManager.removeSegmentFromCollectionSubChildren(segment);\n    } catch (error) {\n      this.errorHandler.handleSilentError(new UnknownFolderError(error as Error), {\n        message: 'Error while removing segment',\n      });\n    }\n  }\n\n  public isSegmentInCollectionSubChildren(segment: SegmentModel) {\n    return this.folderManager.isSegmentInCollectionSubChildren(segment);\n  }\n\n  public getDefaultSegmentForCollection(collection: CollectionModel): SegmentModel {\n    return this.folderManager.getDefaultSegmentForCollection(collection);\n  }\n}\n","import type FolderModel from 'client/data/models/folder';\nimport type LayoutSharedBusinessService from 'client/shared/services/layout';\n\nimport Service, { service } from '@ember/service';\n\nexport type FetchFoldersParams = {\n  projectName: string;\n  environmentName: string;\n  teamName: string;\n};\n\nexport default class FolderFolderFetcherInternalBusinessService extends Service {\n  @service('shared/layout') layoutService: LayoutSharedBusinessService;\n\n  public async fetchFolders({ projectName, environmentName, teamName }: FetchFoldersParams) {\n    return this.layoutService.fetchEntitiesAndPutInStore<FolderModel>('folder', {\n      projectName,\n      environmentName,\n      teamName,\n    });\n  }\n}\n","import type AbstractModel from 'client/data/models/abstract-model';\nimport type CollectionModel from 'client/data/models/collection';\nimport type FolderStoreInternalBusinessService from 'client/features/folder/services/internal-business/store';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport Service, { service } from '@ember/service';\nimport { pluralize } from 'ember-inflector';\n\nimport FolderModel from 'client/data/models/folder';\nimport FolderChildNestedDocument, { FolderTypeEnum } from 'client/data/models/folder-child';\nimport SegmentModel from 'client/data/models/segment';\nimport WorkspaceModel from 'client/data/models/workspace';\nimport { NotFoundFolderChildError } from 'client/features/folder/errors';\nimport { capitalizeText } from 'client/shared/helpers/capitalize-text';\nimport { createIncludesCaseInsensitive } from 'client/utils/string-utils';\n\nexport default class FolderManagerInternalBusinessService extends Service {\n  @service('feature/folder/internal-business/store')\n  private folderStore: FolderStoreInternalBusinessService;\n\n  @service('liana-session') private lianaSession: LianaSessionService;\n\n  public getFolderChild(id: string) {\n    return this.folderStore.getFolderChildById(id);\n  }\n\n  private hideAllChildren(item: FolderModel | CollectionModel) {\n    const folderChild = this.folderStore.getFolderChildById(\n      'shareableId' in item ? item.shareableId : item.id,\n    );\n    if (folderChild?.isVisible || !('children' in item)) {\n      return;\n    }\n\n    item.children.forEach((child) => {\n      child.isVisible = false;\n    });\n  }\n\n  public async toggleVisibility(child: FolderChildNestedDocument): Promise<Array<AbstractModel>> {\n    const folderChildTargetingParent = this.folderStore.getFolderChildTargetingParent(child);\n    const entityToUpdate = child;\n\n    entityToUpdate.isVisible = !entityToUpdate.isVisible;\n\n    const shouldUpdateParentVisibility =\n      folderChildTargetingParent\n      && !folderChildTargetingParent.isVisible\n      && entityToUpdate.isVisible;\n\n    const folderToUpdate = this.folderStore.getChildTargetItem(child) as\n      | FolderModel\n      | CollectionModel;\n\n    this.hideAllChildren(folderToUpdate);\n\n    if (shouldUpdateParentVisibility) {\n      return this.toggleVisibility(folderChildTargetingParent);\n    }\n\n    return this.folderStore.updateManyFolders(\n      ...[\n        child.folder,\n        folderChildTargetingParent?.folder,\n        folderToUpdate instanceof FolderModel ? folderToUpdate : null,\n      ].filter(Boolean),\n    );\n  }\n\n  private getFolderPosition(folder: FolderModel) {\n    return this.folderStore.getMainFolder()?.children.find((child) => child.id === folder.id)\n      ?.position;\n  }\n\n  private refreshFolderChildrenPositionsAfterDelete(\n    folder: FolderModel,\n    positionOfFolderToDelete: number,\n  ) {\n    folder.children.forEach((child) => {\n      child.position = positionOfFolderToDelete + child.position;\n    });\n  }\n\n  private moveOrphanedChildrenToMainFolder(folder: FolderModel) {\n    const mainFolder = this.folderStore.getMainFolder();\n\n    mainFolder?.children.pushObjects(folder.children);\n  }\n\n  private updateItemsPositionsAfterDeletedItem(\n    mainFolder: FolderModel,\n    deletedFolderPosition: number,\n    positionUpdate: number,\n  ) {\n    mainFolder?.children\n      .filter((child) => child.position > deletedFolderPosition)\n      .forEach((child) => {\n        child.position = child.position - 1 + positionUpdate;\n      });\n  }\n\n  private removeFolderFromMainFolder(folder: FolderModel) {\n    const mainFolder = this.folderStore.getMainFolder();\n\n    if (!mainFolder) {\n      return;\n    }\n\n    mainFolder.children = mainFolder.children.filter((child) => child.id !== folder.id);\n  }\n\n  public async deleteFolder(folder: FolderModel) {\n    const mainFolder = this.folderStore.getMainFolder();\n    const positionOfFolderToDelete = this.getFolderPosition(folder);\n    const childrenLength = folder.children.length;\n\n    this.refreshFolderChildrenPositionsAfterDelete(folder, positionOfFolderToDelete);\n    this.updateItemsPositionsAfterDeletedItem(mainFolder, positionOfFolderToDelete, childrenLength);\n    this.moveOrphanedChildrenToMainFolder(folder);\n\n    this.removeFolderFromMainFolder(folder);\n\n    return this.folderStore.deleteFolder(folder);\n  }\n\n  public getMainFolder() {\n    return this.folderStore.getMainFolder();\n  }\n\n  private getChildrenMatchingSearch(\n    container: FolderModel | FolderChildNestedDocument,\n    search?: string,\n    shouldIgnoreVisibility = true,\n  ): FolderChildNestedDocument[] {\n    const includesSearchValue = createIncludesCaseInsensitive(search);\n\n    const allChildren = this.folderStore.getSortedChildren(container);\n\n    const children = shouldIgnoreVisibility\n      ? allChildren\n      : allChildren.filter((child) => child.isVisible);\n\n    return children.filter((child) => {\n      const item =\n        child instanceof FolderChildNestedDocument\n          ? this.folderStore.getChildTargetItem(child)\n          : child;\n      if (!item) {\n        return false;\n      }\n\n      const displayName = 'pluralizedDisplayName' in item ? item.pluralizedDisplayName : item.name;\n\n      const isMatchingSearch = includesSearchValue(displayName);\n      if (isMatchingSearch) {\n        return true;\n      }\n\n      if (\n        (item instanceof FolderModel || child instanceof FolderChildNestedDocument)\n        && (child.type === 'collection' || child.type === 'folder' || child.type === 'segment')\n      ) {\n        return (\n          this.getChildrenMatchingSearch(\n            item instanceof FolderModel ? item : child,\n            search,\n            shouldIgnoreVisibility,\n          ).length > 0\n        );\n      }\n\n      return false;\n    });\n  }\n\n  public getSortedChildrenMatchingSearch(\n    container: FolderModel | FolderChildNestedDocument,\n    search?: string,\n    shouldIgnoreVisibility = true,\n  ): FolderChildNestedDocument[] {\n    const children = this.getChildrenMatchingSearch(container, search, shouldIgnoreVisibility);\n\n    // When there is no children matching and we are not on the main folder it means the current item\n    // or one of its parent is the one matching so we should display all the children\n    if (children.length === 0 && !(container instanceof FolderModel && container.isMain)) {\n      const sortedChildren = this.folderStore.getSortedChildren(\n        container as FolderChildNestedDocument,\n      );\n      return shouldIgnoreVisibility\n        ? sortedChildren\n        : sortedChildren.filter((child) => child.isVisible);\n    }\n\n    return children;\n  }\n\n  public async addEntityToFolder(\n    entityId: string,\n    entityType: FolderTypeEnum.Workspace | FolderTypeEnum.Dashboard | FolderTypeEnum.Inbox,\n  ) {\n    const mainFolder = this.folderStore.getMainFolder();\n\n    const folder = mainFolder;\n    this.folderStore.createChildInFolder(folder, {\n      isVisible: true,\n      position: folder.children.length,\n      id: entityId,\n      type: entityType,\n    });\n\n    const foldersToUpdate = [mainFolder];\n    if (!folder.isMain) {\n      foldersToUpdate.push(folder);\n    }\n\n    await this.folderStore.updateManyFolders(...foldersToUpdate);\n  }\n\n  public async removeChildFromFolder(childId: string) {\n    const child = this.folderStore.getFolderChildById(childId);\n\n    if (!child) {\n      return;\n    }\n\n    const folder = child.parent as FolderModel;\n    this.folderStore.removeChildFromFolder(folder, child);\n\n    await this.folderStore.saveFolder(folder);\n  }\n\n  public shouldAllowInvisibleSection(transitionTo: string) {\n    const sectionMatchingPath = this.lianaSession.rendering?.sections.find((section) =>\n      transitionTo.includes(section.path),\n    );\n\n    if (!sectionMatchingPath) {\n      // Inbox is not a section but should always be allowed\n      return transitionTo.includes('inbox');\n    }\n\n    return !sectionMatchingPath.shouldDisplayIfProcessDrivenNavigation;\n  }\n\n  private async findOrCreateEntityFolder(\n    entityType: FolderTypeEnum.Workspace | FolderTypeEnum.Dashboard | FolderTypeEnum.Inbox,\n  ) {\n    const mainAttributeForEntity = `is${\n      capitalizeText(entityType) as Capitalize<typeof entityType>\n    }Main` as const;\n    const existingEntityFolder = this.folderStore\n      .getAllFolders()\n      .findBy(mainAttributeForEntity, true);\n\n    if (existingEntityFolder) {\n      return existingEntityFolder;\n    }\n\n    const newEntityFolder = await this.folderStore.createFolder(\n      {\n        name: pluralize(capitalizeText(entityType)),\n        icon: '📁',\n      },\n      false,\n    );\n    newEntityFolder[mainAttributeForEntity] = true;\n\n    return newEntityFolder;\n  }\n\n  public addOrphanEntitiesToMainFolder() {\n    const mainFolder = this.getMainFolder();\n    const existingChildren = this.folderStore.getAllFolderChild();\n    let position = Math.max(...existingChildren.map((child) => child.position), 0) + 1;\n\n    Object.values(FolderTypeEnum).forEach((type) => {\n      const entities = this.folderStore\n        .getAllEntitiesOfType(type)\n        .filter((entity) => !(entity instanceof WorkspaceModel && entity.collectionId));\n      entities.forEach((entity) => {\n        const entityId = 'shareableId' in entity ? entity.shareableId : entity.id;\n        if (\n          !existingChildren.findBy('id', entityId)\n          && entity.id !== mainFolder.id\n          && !entity.isDestroyed\n        ) {\n          console.debug(\n            `Entity ${type}:\"${entity.name}(#${entity.id})\" was not referenced. Adding it back to main folder.`,\n          );\n\n          const rootFolder =\n            entity instanceof SegmentModel\n              ? this.folderStore.getFolderChildById(entity.collection.shareableId)\n              : mainFolder;\n          const extraParams =\n            entity instanceof SegmentModel\n              ? { position: entity.position, isVisible: entity.isVisible }\n              : {};\n\n          this.folderStore.createChildInFolderOrSubChild(rootFolder, {\n            type,\n            id: entityId,\n            position,\n            isVisible: true,\n            ...extraParams,\n          });\n          position += 1;\n        }\n      });\n    });\n  }\n\n  public async addSegmentToCollectionSubChildren(segment: SegmentModel) {\n    const folderChild = this.folderStore.getFolderChildById(segment.collection.shareableId);\n\n    const { folder } = folderChild;\n\n    this.folderStore.createFolderSubChild(folderChild, {\n      id: segment.id,\n      type: FolderTypeEnum.Segment,\n      isVisible: true,\n      position: Math.max(...folderChild.subChildren.map((child) => child.position), 0) + 1,\n    });\n\n    await folder.save();\n  }\n\n  public async removeSegmentFromCollectionSubChildren(segment: SegmentModel) {\n    const folderChild = this.folderStore.getFolderChildById(segment.id);\n\n    if (!folderChild) {\n      throw new NotFoundFolderChildError(\n        `Folder child could be found for this collection: ${segment.collection.shareableId}`,\n      );\n    }\n\n    let folder = folderChild.parent;\n\n    folderChild.parent.children.removeObject(folderChild);\n\n    while (folder instanceof FolderChildNestedDocument) {\n      folder = folder.parent;\n    }\n\n    await folder.save();\n  }\n\n  public isSegmentInCollectionSubChildren(segment: SegmentModel) {\n    const folderChild = this.folderStore.getFolderChildById(segment.id);\n\n    if (!folderChild) {\n      return true;\n    }\n\n    return (\n      folderChild.parent instanceof FolderChildNestedDocument\n      && folderChild.parent.type === 'collection'\n    );\n  }\n\n  public getDefaultSegmentForCollection(collection: CollectionModel): SegmentModel | undefined {\n    const { segments } = collection;\n    const collectionFolderChild = this.getFolderChild(collection.shareableId);\n    const segmentFolderChildsInsideCollection =\n      this.folderStore.getSortedChildren(collectionFolderChild);\n    const segmentFolderChildsVisibleInsideCollection = segmentFolderChildsInsideCollection.filter(\n      (folderChild) => folderChild.isVisible,\n    );\n\n    const defaultFolderChild =\n      segmentFolderChildsVisibleInsideCollection[0] || segmentFolderChildsInsideCollection[0];\n\n    return segments.findBy('id', defaultFolderChild?.id);\n  }\n}\n","import type FolderManagerInternalBusinessService from 'client/features/folder/services/internal-business/manager';\nimport type FolderStoreInternalBusinessService from 'client/features/folder/services/internal-business/store';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\nimport type { SortableEvent } from 'sortablejs';\n\nimport Service, { service } from '@ember/service';\nimport { restartableTask, timeout } from 'ember-concurrency';\n\nimport FolderModel from 'client/data/models/folder';\nimport FolderChildNestedDocument, {\n  type FolderChildAttributes,\n} from 'client/data/models/folder-child';\n\nexport interface ReorderParameters<T = unknown> {\n  fromIds: string[];\n  toIds: string[];\n  movedItemId: string;\n  fromItem: T;\n  toItem: T;\n}\n\n// eslint-disable-next-line forest-custom/class-naming-based-on-path\nexport default class FolderReorderHandlerInternalBusinessService extends Service {\n  @service private lianaSession: LianaSessionService;\n  @service private store: StoreService;\n\n  @service('feature/folder/internal-business/store')\n  private folderStore: FolderStoreInternalBusinessService;\n\n  @service('feature/folder/internal-business/manager')\n  private folderManager: FolderManagerInternalBusinessService;\n\n  private debounceTime = 1000;\n\n  private getCollectionIdToShareableIdsMap() {\n    return this.lianaSession.rendering.collections.reduce((map, collection) => {\n      map.set(collection.id, collection.shareableId);\n      return map;\n    }, new Map<string, string>());\n  }\n\n  private setItemsPosition(children: FolderChildAttributes[], ids: string[]) {\n    const collectionIdToShareableIdsMap = this.getCollectionIdToShareableIdsMap();\n    children.forEach((child: FolderChildAttributes) => {\n      let index = 0;\n\n      index = ids.includes(child.id)\n        ? ids.indexOf(child.id)\n        : ids.indexOf(collectionIdToShareableIdsMap.get(child.id));\n\n      child.position = index + 1;\n    });\n  }\n\n  private removeItemFromFolder(\n    folder: FolderModel | FolderChildNestedDocument,\n    folderChildToRemove: FolderChildNestedDocument,\n  ) {\n    this.folderStore.removeChildFromFolder(folder, folderChildToRemove);\n\n    this.setItemsPosition(\n      folder.children,\n      folder.children\n        .toArray()\n        .sort((a, b) => a.position - b.position)\n        .map((child) => child.id),\n    );\n  }\n\n  private addItemToFolder(\n    folder: FolderModel | FolderChildNestedDocument,\n    child: FolderChildNestedDocument,\n  ) {\n    this.folderStore.addChildToFolder(folder, child);\n\n    if (!(folder instanceof FolderModel && folder.isMain) && child.isVisible) {\n      const folderChild = this.folderStore.getFolderChildById(folder.id);\n      folderChild.isVisible = true;\n    }\n  }\n\n  private reorderInSameFolder = restartableTask(\n    async (\n      event: SortableEvent,\n      containerEntity: FolderModel | FolderChildNestedDocument,\n      ids: string[],\n    ) => {\n      if (event.oldIndex === event.newIndex) {\n        return;\n      }\n\n      const folder =\n        containerEntity instanceof FolderChildNestedDocument\n          ? containerEntity.folder\n          : containerEntity;\n\n      this.setItemsPosition(containerEntity.children, ids);\n\n      await timeout(this.debounceTime);\n\n      await this.folderStore.saveFolder(folder);\n    },\n  );\n\n  private reorderBetweenFoldersRestartableTask = restartableTask(\n    async (\n      event: SortableEvent,\n      {\n        toIds,\n        fromItem,\n        toItem,\n        movedItemId,\n      }: ReorderParameters<FolderModel | FolderChildNestedDocument>,\n    ) => {\n      const containerFrom = fromItem;\n      const containerTo = toItem;\n\n      const folderChild = this.folderStore.getFolderChildById(movedItemId);\n\n      this.removeItemFromFolder(containerFrom, folderChild);\n\n      this.addItemToFolder(containerTo, folderChild);\n      this.setItemsPosition(containerTo.children, toIds);\n\n      event.item?.remove();\n\n      await timeout(this.debounceTime);\n\n      const folderFrom =\n        containerFrom instanceof FolderModel ? containerFrom : containerFrom.folder;\n      const folderTo = containerTo instanceof FolderModel ? containerTo : containerTo.folder;\n\n      await this.folderStore.updateManyFolders(folderFrom, folderTo);\n    },\n  );\n\n  private reorderItemsRestartableTask = restartableTask(\n    async (\n      event: SortableEvent,\n      parameters: ReorderParameters<FolderModel | FolderChildNestedDocument>,\n    ) => {\n      if (event.from === event.to) {\n        await this.reorderInSameFolder.perform(event, parameters.fromItem, parameters.fromIds);\n      } else {\n        await this.reorderBetweenFoldersRestartableTask.perform(\n          event,\n          parameters as ReorderParameters<FolderModel>,\n        );\n      }\n    },\n  );\n\n  public async reorderItems(\n    event: SortableEvent,\n    parameters: ReorderParameters<FolderModel | FolderChildNestedDocument>,\n  ) {\n    await this.reorderItemsRestartableTask.perform(event, parameters);\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type FolderChildNestedDocument from 'client/data/models/folder-child';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport FolderModel from 'client/data/models/folder';\nimport { type FolderChildAttributes, FolderTypeEnum } from 'client/data/models/folder-child';\n\nexport default class FolderStoreInternalBusinessService extends Service {\n  @service private currentUser: CurrentUserService;\n  @service private store: StoreService;\n\n  public getSortedChildren(\n    item?: FolderModel | FolderChildNestedDocument,\n  ): FolderChildNestedDocument[] {\n    return item?.children.sortBy('position') ?? [];\n  }\n\n  public getAllFolderChild() {\n    return this.store.peekAll('folder-child').toArray();\n  }\n\n  public getAllEntitiesOfType(type: FolderTypeEnum) {\n    return this.store.peekAll(type).toArray();\n  }\n\n  public getChildTargetItem(folderChild: FolderChildNestedDocument) {\n    const child = this.store.peekRecord(folderChild.type, folderChild.id);\n    if (child) {\n      return child;\n    }\n\n    if (folderChild.type === FolderTypeEnum.Collection) {\n      return this.getCollectionByShareableId(folderChild.id);\n    }\n\n    return null;\n  }\n\n  public getFolderChildTargetingParent(child: FolderChildNestedDocument) {\n    return (\n      child.parentFolderChild\n      || this.getMainFolder().children.find((item) => item.id === child.parent.id)\n    );\n  }\n\n  public getFolderChildById(childId: string) {\n    return this.store.peekRecord('folder-child', childId);\n  }\n\n  public discardFolderChanges(folder: FolderModel) {\n    folder.rollbackAttributes();\n  }\n\n  public getMainFolder() {\n    return this.store.peekAll('folder').findBy('isMain', true);\n  }\n\n  public getFolder(folderId: string) {\n    return this.store.peekRecord('folder', folderId);\n  }\n\n  public async deleteFolder(folder: FolderModel) {\n    const mainFolder = this.getMainFolder();\n\n    folder.deleteRecord();\n    return this.store.layoutBatchUpdate('folder', [folder, mainFolder]);\n  }\n\n  public async saveFolder(folder: FolderModel) {\n    return folder.save();\n  }\n\n  public async updateManyFolders(...folders: FolderModel[]) {\n    return this.store.layoutBatchUpdate('folder', folders);\n  }\n\n  public async createFolder({ name, icon }: Pick<FolderModel, 'name' | 'icon'>, shouldSave = true) {\n    const mainFolder = this.getMainFolder();\n    const folder = this.store.createRecord('folder', {\n      name,\n      icon,\n      children: [],\n      rendering: mainFolder.rendering,\n    });\n\n    this.createChildInFolder(mainFolder, {\n      position: Math.max(...mainFolder.children.map((child) => child.position), 0) + 1,\n      type: FolderTypeEnum.Folder,\n      id: folder.id,\n      isVisible: true,\n    });\n\n    if (shouldSave) {\n      await this.updateManyFolders(folder, mainFolder);\n    }\n    return folder;\n  }\n\n  public createChildInFolder(folder: FolderModel, child: FolderChildAttributes) {\n    return this.store.createRecord('folder-child', {\n      ...child,\n      folder,\n    });\n  }\n\n  public removeChildFromFolder(\n    folder: FolderModel | FolderChildNestedDocument,\n    child: FolderChildNestedDocument,\n  ) {\n    folder.children.removeObject(child);\n  }\n\n  public addChildToFolder(\n    folder: FolderModel | FolderChildNestedDocument,\n    child: FolderChildNestedDocument,\n  ) {\n    folder.children.pushObject(child);\n  }\n\n  public unloadChild(child: FolderChildNestedDocument) {\n    child.unloadRecord();\n  }\n\n  public getAllFolders() {\n    return this.store.peekAll('folder').toArray();\n  }\n\n  private getCollectionByShareableId(shareableId: string): CollectionModel {\n    return this.store.peekAll('collection').findBy('shareableId', shareableId) || null;\n  }\n\n  public createFolderSubChild(\n    parent: FolderChildNestedDocument,\n    subChildren: FolderChildAttributes,\n  ): FolderChildNestedDocument {\n    return this.store.createRecord('folder-child', {\n      id: subChildren.id,\n      position: subChildren.position,\n      isVisible: subChildren.isVisible,\n      type: subChildren.type,\n      parentFolderChild: parent,\n    });\n  }\n\n  public createChildInFolderOrSubChild(\n    rootFolder: FolderModel | FolderChildNestedDocument,\n    children: FolderChildAttributes,\n  ) {\n    if (rootFolder instanceof FolderModel) {\n      return this.createChildInFolder(rootFolder, children);\n    }\n\n    return this.createFolderSubChild(rootFolder, children);\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type SegmentModel from 'client/data/models/segment';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface InboxAssignActionArgs {\n  selectedRecord: ClientRecordModel;\n  collection: CollectionModel;\n  segment: SegmentModel;\n}\n\nexport default class InboxAssignActionComponent extends Component<InboxAssignActionArgs> {\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n\n  @action\n  openAssignForm() {\n    this.inboxFeature.openAssignForm(\n      this.args.collection,\n      this.args.segment,\n      this.args.selectedRecord,\n    );\n  }\n\n  get collectionInboxes() {\n    return this.args.collection.inboxes;\n  }\n}\n","import type InboxModel from 'client/data/models/inbox';\nimport type InboxAssignmentModel from 'client/data/models/inbox-assignment';\nimport type UserModel from 'client/data/models/user';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport CollectionModel from 'client/data/models/collection';\nimport SegmentModel from 'client/data/models/segment';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface InboxAssignActionFormArgs {\n  data: {\n    selectedRecord: ClientRecordModel;\n    collection: CollectionModel;\n    segment: SegmentModel;\n  };\n  onClose: () => void;\n}\n\n@validateArguments\nexport default class InboxAssignActionFormComponent extends Component<InboxAssignActionFormArgs> {\n  static propTypes = {\n    data: PropTypes.shape({\n      selectedRecord: PropTypes.shape({ id: PropTypes.string.isRequired }).isRequired,\n      collection: PropTypes.instanceOf(CollectionModel).isRequired,\n      segment: PropTypes.instanceOf(SegmentModel),\n    }).isRequired,\n    onClose: PropTypes.func.isRequired,\n  };\n\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n  @service private currentUser: CurrentUserService;\n  @service private lianaSession: LianaSessionService;\n\n  @tracked inboxesAvailable: InboxModel[] = [];\n\n  @tracked selectedInbox: InboxModel | null;\n\n  @tracked selectedUser: UserModel | null = null;\n  @tracked currentAssignment: InboxAssignmentModel | null = null;\n  @tracked isLoading = false;\n  @tracked selectedTeamId: string = null;\n\n  constructor(owner: unknown, args: InboxAssignActionFormArgs) {\n    super(owner, args);\n\n    void this.loadAvailableInboxes();\n  }\n\n  get hasAssigneeChanged() {\n    if (this.currentAssignment) {\n      return (\n        !this.selectedUser\n        || this.currentAssignment.belongsTo('user').id() !== this.selectedUser?.id\n      );\n    }\n    return !!this.selectedUser?.id;\n  }\n\n  async loadAvailableInboxes() {\n    await this.handleChangeTeam(this.currentUser.team?.id);\n\n    if (this.isDestroyed || this.isDestroying) return;\n\n    await this.handleInboxChange(\n      this.args.data.segment?.inbox\n        || (this.inboxesAvailable.length === 1 ? this.inboxesAvailable.firstObject : null),\n    );\n  }\n\n  get availableTeams() {\n    return this.lianaSession.currentProject?.teams?.sortBy('name');\n  }\n\n  @action\n  async handleChangeTeam(teamId: string) {\n    const { selectedRecord } = this.args.data;\n    this.selectedTeamId = teamId;\n    const availableInboxesForTeam = await this.inboxFeature.getAvailableInboxesForTeam(\n      teamId,\n      selectedRecord,\n    );\n    this.inboxesAvailable = availableInboxesForTeam.filter((inbox: InboxModel) => {\n      return inbox.canUsersReassign || this.currentUser.can('inboxTaskReassignment');\n    });\n    this.selectedInbox = null;\n    this.selectedUser = null;\n  }\n\n  @action\n  async handleInboxChange(inbox: InboxModel | null) {\n    this.selectedInbox = inbox;\n\n    if (!this.selectedInbox) {\n      return;\n    }\n\n    this.isLoading = true;\n    const currentAssignment = await this.inboxFeature.getAssignmentForRecord(\n      this.selectedInbox,\n      this.args.data.selectedRecord,\n    );\n\n    const defaultUser = inbox.teamId ? null : this.currentUser.model;\n    this.selectedUser = (await currentAssignment?.user) || defaultUser;\n    this.currentAssignment = currentAssignment;\n    this.isLoading = false;\n  }\n\n  @action\n  async handleAssign() {\n    const isSuccess = await this.inboxFeature.assignRecordToUser(\n      this.selectedInbox,\n      this.args.data.selectedRecord,\n      this.selectedUser,\n      this.currentAssignment,\n    );\n\n    if (isSuccess) {\n      this.args.onClose();\n    } else {\n      await this.handleInboxChange(this.selectedInbox);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::CollapsibleSidePanel\\n  @onClose={{@onClose}}\\n  @collapsible={{false}}\\n  @openOnUpdate={{@openOnUpdate}}\\n  data-test-feature-inbox-assign-action-form\\n>\\n  <:header>Assign to...</:header>\\n  <:body>\\n    <div\\n      class=\\\"c-feature-inbox-assign-action-form__body\\\"\\n      data-test-feature-inbox-assign-action-form-body\\n    >\\n      <Shared::BetaLabel @label=\\\"Team\\\" @position=\\\"top\\\">\\n        <Shared::BetaSelect\\n          @options={{this.availableTeams}}\\n          @namePath=\\\"name\\\"\\n          @valuePath=\\\"id\\\"\\n          @value={{one-way this.selectedTeamId}}\\n          @onChange={{this.handleChangeTeam}}\\n          @withSearchInput={{true}}\\n          @placeholder=\\\"Select a team\\\"\\n          data-test-feature-inbox-assign-action-form-team-selector\\n        />\\n      </Shared::BetaLabel>\\n      <Shared::BetaLabel @label=\\\"Inbox\\\" @position=\\\"top\\\">\\n        <Shared::BetaSelect\\n          @options={{this.inboxesAvailable}}\\n          @iconPath=\\\"icon\\\"\\n          @namePath=\\\"name\\\"\\n          @value={{one-way this.selectedInbox}}\\n          @onChange={{this.handleInboxChange}}\\n          @withSearchInput={{true}}\\n          @placeholder=\\\"Select an inbox\\\"\\n          data-test-feature-inbox-assign-action-form-inboxes-selector\\n        />\\n      </Shared::BetaLabel>\\n      <Shared::BetaLabel @label=\\\"User\\\" @position=\\\"top\\\">\\n        <Feature::User::Search\\n          @teamIds={{if this.selectedTeamId (array this.selectedTeamId) (array)}}\\n          @hasMultipleValues={{false}}\\n          @onSelectUser={{fn (mut this.selectedUser)}}\\n          @selectedUsers={{this.selectedUser}}\\n          @disabled={{not this.selectedInbox}}\\n          data-test-feature-inbox-assign-action-form-user-selector\\n        />\\n      </Shared::BetaLabel>\\n    </div>\\n  </:body>\\n\\n  <:footer>\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @text=\\\"Cancel\\\"\\n      @action={{@onClose}}\\n      @withoutCallback={{true}}\\n      class=\\\"c-feature-inbox-assign-action-form__cancel-button\\\"\\n      data-test-feature-inbox-assign-action-form-cancel-button\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @text={{if (or this.selectedUser (not this.selectedInbox)) \\'Assign\\' \\'Unassign\\'}}\\n      @disabled={{or (not this.selectedInbox) (not this.hasAssigneeChanged)}}\\n      @action={{this.handleAssign}}\\n      @withoutCallback={{true}}\\n      class=\\\"c-feature-inbox-assign-action-form__assign-button\\\"\\n      data-test-feature-inbox-assign-action-form-assign-button\\n    />\\n  </:footer>\\n</Shared::CollapsibleSidePanel>\\n', { moduleName: 'client/features/inbox/components/assign-action/form/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if\\n  (and\\n    @selectedRecord (gt this.collectionInboxes.length 0) (can \\'access to inbox\\') (can \\'view inbox\\')\\n  )\\n}}\\n  <Form::Dropdown::Action\\n    @name=\\\"Assign to...\\\"\\n    @onClick={{this.openAssignForm}}\\n    data-test-feature-inbox-assign-action\\n  />\\n{{/if}}\\n\\n', { moduleName: 'client/features/inbox/components/assign-action/template.hbs' });\n","import type InboxModel from 'client/data/models/inbox';\nimport type InboxAssignmentModel from 'client/data/models/inbox-assignment';\nimport type UserModel from 'client/data/models/user';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ninterface AssignToUserButtonArgs {\n  inbox: InboxModel;\n  record: ClientRecordModel;\n  onAssignRecord: (record: ClientRecordModel, assignment: unknown) => void;\n  assignment?: InboxAssignmentModel;\n}\n\nexport default class InboxAssignToUserButtonComponent extends Component<AssignToUserButtonArgs> {\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n\n  @tracked isSearchOpened = false;\n\n  public inputId = guidFor(this);\n\n  @action\n  async assignRecordToUser(user: UserModel) {\n    const assignment = await this.inboxFeature.assignRecordToUser(\n      this.args.inbox,\n      this.args.record,\n      user,\n      this.args.assignment,\n    );\n    this.args.onAssignRecord(this.args.record, assignment);\n    this.isSearchOpened = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  @type=\\\"ghost\\\"\\n  @size=\\\"small\\\"\\n  @text=\\\"Assign\\\"\\n  @onClick={{fn (mut this.isSearchOpened) true}}\\n  id={{this.inputId}}\\n  class={{get-classes-with-modifiers\\n    \\'c-feature-inbox-assign-to-user-button\\'\\n    opened-modal=this.isSearchOpened\\n  }}\\n  data-test-feature-inbox-assign-to-user-button\\n  ...attributes\\n/>\\n{{#if this.isSearchOpened}}\\n  <Feature::User::SearchInline\\n    @inputId={{this.inputId}}\\n    @onHide={{fn (mut this.isSearchOpened) false}}\\n    @onSelectUser={{this.assignRecordToUser}}\\n    data-test-feature-inbox-assign-to-user-button-search\\n    class=\\\"c-feature-inbox-assign-to-user-button__dropdown\\\"\\n  />\\n{{/if}}\\n', { moduleName: 'client/features/inbox/components/assign-to-user-button/template.hbs' });\n","import type InboxAssignmentModel from 'client/data/models/inbox-assignment';\nimport type UserModel from 'client/data/models/user';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type { TaskWithRecord } from 'client/features/inbox/services/feature';\nimport type {\n  InboxAssignmentSort,\n  SingleInboxAssignmentFilters,\n} from 'client/features/inbox/services/internal-business/backlog-tasks-fetcher';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport _ from 'lodash';\n\nimport InboxModel, { InboxTypeEnum } from 'client/data/models/inbox';\nimport { InboxAssignmentStateEnum } from 'client/data/models/inbox-assignment';\nimport validateArguments from 'client/decorators/validate';\nimport { NUMBER_OF_RECORDS_PER_PAGE_BACKLOG } from 'client/features/inbox/services/internal-business/tasks-fetcher';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport removeEmptyValuesFromObject from 'client/utils/remote-empty-values-from-object';\n\ninterface InboxBacklogComponentArg {\n  inbox: InboxModel;\n}\n\nexport const INBOX_ASSIGNMENT_STATE_TO_LABEL: Record<InboxAssignmentStateEnum, string> = {\n  [InboxAssignmentStateEnum.Todo]: 'To do',\n  [InboxAssignmentStateEnum.Doing]: 'Doing',\n  [InboxAssignmentStateEnum.Done]: 'Completed',\n  [InboxAssignmentStateEnum.Canceled]: 'Canceled',\n  [InboxAssignmentStateEnum.AutoCanceled]: 'Automatically Canceled',\n};\n\nexport type FiltersWithAssignees = SingleInboxAssignmentFilters & { assignees?: UserModel[] };\n\nfunction cloneFilters(filters: FiltersWithAssignees) {\n  return (\n    filters && {\n      ...filters,\n      ...(filters.assignees ? { assignees: [...filters.assignees] } : {}),\n      ...(filters.states ? { states: [...filters.states] } : {}),\n    }\n  );\n}\n\n@validateArguments\nexport default class InboxBacklogComponent extends Component<InboxBacklogComponentArg> {\n  static propTypes = {\n    inbox: PropTypes.instanceOf(InboxModel).isRequired,\n  };\n\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n\n  @tracked public inboxAssignments: TaskWithRecord[] = null;\n  @tracked public countAssignments: number = null;\n  @tracked public isLoading = false;\n  @tracked public currentPage = 1;\n  @tracked public isNumberOfPagesLoading = true;\n  @tracked public filters: FiltersWithAssignees = null;\n  @tracked public appliedFilters: FiltersWithAssignees = null;\n  @tracked public sort: InboxAssignmentSort = null;\n\n  constructor(owner: unknown, args: InboxBacklogComponentArg) {\n    super(owner, args);\n\n    void this.loadQueryParameters();\n  }\n\n  get columns() {\n    return [\n      {\n        name: 'Record',\n      },\n      {\n        name: 'Started at',\n        onSort: this.handleColumnSort,\n        sortBy: 'startedProcessingAt',\n      },\n      {\n        name: 'Handling time',\n        onSort: this.handleColumnSort,\n        sortBy: 'handlingTime',\n      },\n      {\n        name: 'State',\n        onSort: this.handleColumnSort,\n        sortBy: 'state',\n      },\n      {\n        name: 'Assignee',\n        onSort: this.handleColumnSort,\n        sortBy: 'assignee',\n      },\n      {\n        name: ' ',\n      },\n    ];\n  }\n\n  get numberOfPages() {\n    return this.inboxFeature.getNumberOfPagesForBacklog(this.countAssignments);\n  }\n\n  get isNumberOfPagesDeactivated() {\n    return this.countAssignments === null && !this.isNumberOfPagesLoading;\n  }\n\n  get isNextButtonDisabled() {\n    // FIXME: it would be even better than the service give the information like that\n    // even the last page of assignments should disable the next button when that page is full\n    return (\n      this.currentPage === this.numberOfPages\n      || (this.isNumberOfPagesDeactivated\n        && this.inboxAssignments?.length < NUMBER_OF_RECORDS_PER_PAGE_BACKLOG)\n    );\n  }\n\n  get hasNoFilters() {\n    return !this.filters || Object.keys(this.filters).length === 0;\n  }\n\n  get isFilterDirty() {\n    if (this.hasNoFilters && !this.appliedFilters) {\n      return false;\n    }\n\n    if (\n      (!this.hasNoFilters && !this.appliedFilters)\n      || (this.hasNoFilters && this.appliedFilters)\n    ) {\n      return true;\n    }\n\n    return !_.isEqual(this.filters, this.appliedFilters);\n  }\n\n  @action\n  public shouldDisplayAssignButton(taskWithRecord: TaskWithRecord): boolean {\n    const shouldDisplayForSegment =\n      !taskWithRecord.assignment && this.args.inbox.type === InboxTypeEnum.Segment;\n    const shouldDisplayForWorkflow =\n      taskWithRecord.assignment?.state === InboxAssignmentStateEnum.Todo\n      && this.args.inbox.isWorkflow;\n\n    return shouldDisplayForSegment || shouldDisplayForWorkflow;\n  }\n\n  @action\n  async loadQueryParameters() {\n    // assign query params to sort\n    this.sort = this.inboxFeature.getSortFromQueryParams();\n\n    const filters = await this.inboxFeature.getFiltersFromQueryParams();\n\n    this.filters = filters;\n    this.appliedFilters = this.hasNoFilters ? null : cloneFilters(filters);\n\n    this.currentPage = await this.inboxFeature.getPageFromQueryParams(\n      this.args.inbox,\n      this.filtersWithAssigneeIds,\n      this.sort,\n    );\n\n    await this.loadTasksAndCount();\n  }\n\n  @action\n  async handleSortChange(sort: InboxAssignmentSort) {\n    await this.inboxFeature.setQueryParamsFromSort(sort);\n  }\n\n  @action\n  async resetBacklog() {\n    this.currentPage = 1;\n    this.filters = null;\n    this.appliedFilters = null;\n    this.sort = null;\n    this.inboxFeature.resetBacklogCache(this.args.inbox);\n    await Promise.all([\n      this.inboxFeature.setQueryParamsFromFilters(null),\n      this.inboxFeature.setQueryParamsFromSort(null),\n      this.inboxFeature.setQueryParamsFromPage(this.args.inbox, this.currentPage),\n    ]);\n  }\n\n  get numberOfFilters() {\n    return this.filters\n      ? Object.keys(this.filters).filter((key) => key !== 'unassigned').length\n      : 0;\n  }\n\n  @action\n  async loadTasksAndCount() {\n    await Promise.all([this.fetchTasks(), this.loadCountAssignments()]);\n  }\n\n  private get filtersWithAssigneeIds(): SingleInboxAssignmentFilters {\n    if (!this.appliedFilters) return null;\n\n    const { assignees, ...filters } = this.appliedFilters;\n    return {\n      ...filters,\n      ...(assignees?.length\n        ? {\n            assigneeIds: assignees\n              // remove null values that represent unassigned\n              ?.filter(Boolean)\n              .map((assignee) => assignee.id),\n          }\n        : {}),\n    };\n  }\n\n  @action\n  async fetchTasks() {\n    this.isLoading = true;\n    this.inboxAssignments = await this.inboxFeature.getAssignmentsForBacklog(\n      this.args.inbox,\n      this.currentPage,\n      this.filtersWithAssigneeIds,\n      this.sort,\n    );\n    this.isLoading = false;\n  }\n\n  async loadCountAssignments() {\n    this.isNumberOfPagesLoading = true;\n    this.countAssignments = await this.inboxFeature.getNumberOfTasksForBacklog(\n      this.args.inbox,\n      this.filtersWithAssigneeIds,\n      this.sort,\n    );\n    this.isNumberOfPagesLoading = false;\n  }\n\n  getRecordIdsFromTask(task: TaskWithRecord): string[] {\n    return [task.record?.id ?? task.assignment.recordId];\n  }\n\n  @action\n  getStateLabelFromAssignment(assignment: InboxAssignmentModel | null): string {\n    return INBOX_ASSIGNMENT_STATE_TO_LABEL[assignment?.state || InboxAssignmentStateEnum.Todo];\n  }\n\n  @action\n  redirectToRecord(task: TaskWithRecord): void {\n    if (!task.record) return;\n    this.inboxFeature.redirectToRecord(\n      task.assignment || { inbox: this.args.inbox, recordId: task.record.id },\n    );\n  }\n\n  @action\n  async unassignRecord(task: TaskWithRecord) {\n    await this.inboxFeature.unassignRecord(task.assignment);\n    task.assignment = null;\n  }\n\n  @action\n  handleAssignRecord(record: ClientRecordModel, assignment: InboxAssignmentModel) {\n    this.inboxAssignments.find((task) => task.record.id === record.id).assignment = assignment;\n  }\n\n  colorBadge(state: string): string {\n    switch (state) {\n      case 'doing':\n        return '--yellow-500';\n      case 'done':\n        return '--lime-500';\n      default:\n        return '--red-600';\n    }\n  }\n\n  async loadUserData(assignment: InboxAssignmentModel) {\n    await assignment?.user;\n  }\n\n  @action\n  async handleNextPage() {\n    if (this.currentPage === this.numberOfPages) return;\n\n    this.currentPage += 1;\n    await this.fetchTasks();\n    await this.inboxFeature.setQueryParamsFromPage(this.args.inbox, this.currentPage);\n  }\n\n  @action\n  async handlePreviousPage() {\n    if (this.currentPage === 1) return;\n\n    this.currentPage -= 1;\n    await this.fetchTasks();\n    await this.inboxFeature.setQueryParamsFromPage(this.args.inbox, this.currentPage);\n  }\n\n  @action\n  async handleSelectPage(page: number) {\n    this.currentPage = page;\n    await this.fetchTasks();\n    await this.inboxFeature.setQueryParamsFromPage(this.args.inbox, this.currentPage);\n  }\n\n  @action\n  async handleApplyFilters() {\n    this.currentPage = 1;\n    this.inboxFeature.resetBacklogCache(this.args.inbox);\n    this.appliedFilters = this.hasNoFilters ? null : cloneFilters(this.filters);\n    await this.loadTasksAndCount();\n    await this.inboxFeature.setQueryParamsFromFilters(this.filtersWithAssigneeIds);\n    await this.inboxFeature.setQueryParamsFromPage(this.args.inbox, this.currentPage);\n  }\n\n  @action\n  async handleDiscardFilters() {\n    if (this.appliedFilters) {\n      await this.resetBacklog();\n      await this.loadTasksAndCount();\n    }\n  }\n\n  @action\n  handleFilterChange<K extends keyof FiltersWithAssignees>(\n    property: K,\n    value: FiltersWithAssignees[K],\n  ) {\n    let filters: FiltersWithAssignees;\n\n    if (property === 'startedProcessingAt') {\n      filters = {\n        ...this.filters,\n        startedProcessingAt: value as { after: string; before: string },\n      };\n    } else if (property === 'assignees') {\n      filters = {\n        ...this.filters,\n        [property]: value,\n        unassigned: (value as UserModel[]).includes(null),\n      };\n    } else {\n      filters = { ...this.filters, [property]: value };\n    }\n\n    this.filters = removeEmptyValuesFromObject(filters);\n  }\n\n  @action\n  async handleColumnSort(sort: InboxAssignmentSort) {\n    // Reset the current page to 1 when sorting\n    this.currentPage = 1;\n    this.sort = sort;\n\n    // Update queryParams\n    await this.handleSortChange(sort);\n    await this.inboxFeature.setQueryParamsFromPage(this.args.inbox, this.currentPage);\n\n    this.inboxFeature.resetBacklogCache(this.args.inbox);\n    await this.fetchTasks();\n  }\n}\n","import type { SingleInboxAssignmentFilters } from 'client/features/inbox/services/internal-business/backlog-tasks-fetcher';\nimport type { RangeDate } from 'client/shared/components/form/date-range-picker/component';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport { InboxAssignmentStateEnum } from 'client/data/models/inbox-assignment';\nimport UserModel from 'client/data/models/user';\nimport validateArguments from 'client/decorators/validate';\nimport { INBOX_ASSIGNMENT_STATE_TO_LABEL } from 'client/features/inbox/components/backlog/component';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface BacklogFilterArgs {\n  filters: SingleInboxAssignmentFilters;\n  onFilterChange: (\n    key: string,\n    value: (string | UserModel)[] | string | { after: string; before: string },\n  ) => void;\n  applyFilters: () => void;\n  discardFilters: () => void;\n}\n\n@validateArguments\nexport default class InboxBacklogFilterComponent extends Component<BacklogFilterArgs> {\n  static propTypes = {\n    filters: PropTypes.shape({\n      states: PropTypes.arrayOf(PropTypes.oneOf(Object.values(InboxAssignmentStateEnum))),\n      assignees: PropTypes.arrayOf(PropTypes.instanceOf(UserModel)),\n      startedProcessingAt: PropTypes.shape({\n        after: PropTypes.string,\n        before: PropTypes.string,\n      }),\n    }),\n    onFilterChange: PropTypes.func.isRequired,\n    applyFilters: PropTypes.func.isRequired,\n    discardFilters: PropTypes.func.isRequired,\n    filtersCount: PropTypes.number,\n    isDiscardFiltersDisabled: PropTypes.bool,\n    isApplyFiltersDisabled: PropTypes.bool,\n  };\n\n  get statesForFilters() {\n    return [\n      InboxAssignmentStateEnum.Todo,\n      InboxAssignmentStateEnum.Doing,\n      InboxAssignmentStateEnum.Done,\n    ].map((state) => ({ value: state, label: INBOX_ASSIGNMENT_STATE_TO_LABEL[state] }));\n  }\n\n  @action\n  handleDateRangeChange(value: RangeDate<Date> | null) {\n    return this.args.onFilterChange(\n      'startedProcessingAt',\n      value && {\n        after: value.from ? value.from.toISOString() : '',\n        before: value.to ? value.to.toISOString() : '',\n      },\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Filter::Dropdown\\n  @applyFilters={{@applyFilters}}\\n  @discardFilters={{@discardFilters}}\\n  @filtersCount={{@filtersCount}}\\n  @isApplyFiltersDisabled={{@isApplyFiltersDisabled}}\\n  @isDiscardFiltersDisabled={{@isDiscardFiltersDisabled}}\\n  class=\\\"c-feature-inbox-backlog-filter\\\"\\n  data-test-feature-inbox-backlog-filter\\n>\\n  <:filters>\\n    <Shared::BetaLabel\\n      @label=\\\"States\\\"\\n      @position=\\\"top\\\"\\n      data-test-feature-inbox-backlog-filter-select-states-label\\n      class=\\\"c-feature-inbox-backlog-filter__label\\\"\\n    >\\n      <Shared::BetaSelect\\n        @multipleValues={{true}}\\n        @onChange={{fn @onFilterChange \\'states\\'}}\\n        @options={{this.statesForFilters}}\\n        @placeholder=\\\"Select states\\\"\\n        @value={{one-way @filters.states}}\\n        @hasCustomItemRenderer={{false}}\\n        @valuePath=\\\"value\\\"\\n        @namePath=\\\"label\\\"\\n        data-test-feature-inbox-backlog-filter-select-states\\n      />\\n    </Shared::BetaLabel>\\n\\n    <Shared::BetaLabel\\n      @label=\\\"Assignees\\\"\\n      @position=\\\"top\\\"\\n      data-test-feature-inbox-backlog-filter-select-assignees-label\\n      class=\\\"c-feature-inbox-backlog-filter__label\\\"\\n    >\\n      <Feature::User::Search\\n        @hasMultipleValues={{true}}\\n        @onSelectUser={{fn @onFilterChange \\'assignees\\'}}\\n        @selectedUsers={{@filters.assignees}}\\n        data-test-feature-inbox-backlog-filter-select-assignees\\n        class=\\\"c-feature-inbox-assign-to-user-button__dropdown\\\"\\n      />\\n    </Shared::BetaLabel>\\n\\n    <Shared::BetaLabel\\n      @label=\\\"Started processing at\\\"\\n      @position=\\\"top\\\"\\n      data-test-feature-inbox-backlog-filter-select-started-processing-label\\n      class=\\\"c-feature-inbox-backlog-filter__label\\\"\\n    >\\n      <Shared::Form::DateRangeInput\\n        @value={{if\\n          @filters.startedProcessingAt\\n          (hash from=@filters.startedProcessingAt.after to=@filters.startedProcessingAt.before)\\n        }}\\n        @onChange={{this.handleDateRangeChange}}\\n      />\\n    </Shared::BetaLabel>\\n  </:filters>\\n</Shared::Filter::Dropdown>\\n', { moduleName: 'client/features/inbox/components/backlog/filter/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-inbox-backlog\\\"\\n  {{did-update this.resetBacklog @inbox.id}}\\n  {{did-update this.loadTasksAndCount @inbox.id}}\\n  data-test-feature-inbox-backlog\\n  ...attributes\\n>\\n  <Shared::BetaTable\\n    @alignColumnLeft={{true}}\\n    @columns={{this.columns}}\\n    @columnsClass=\\\"c-feature-inbox-backlog__column-header\\\"\\n    @columnSort={{this.sort}}\\n    @embedded={{true}}\\n    @isLastColumnRightAligned={{true}}\\n    @sticky={{true}}\\n    @isScrollable={{true}}\\n    @rowClass=\\\"c-feature-inbox-backlog__row\\\"\\n    @rowClick={{this.redirectToRecord}}\\n    @rows={{this.inboxAssignments}}\\n    @isLoading={{this.isLoading}}\\n    class=\\\"c-feature-inbox-backlog__table\\\"\\n    data-test-feature-inbox-backlog-table\\n    as |RowColumn task|\\n  >\\n    {{#let (or task.record.id task.assignment.recordId) as |recordId|}}\\n      <RowColumn\\n        data-test-feature-inbox-backlog-row-record={{recordId}}\\n        data-test-feature-inbox-backlog-row-record-assignment={{task.assignment.id}}\\n        class=\\\"c-feature-inbox-backlog__record\\\"\\n      >\\n        <Feature::ClientRecord::ReferenceField\\n          @linkClassName=\\\"c-feature-inbox-backlog__reference-field\\\"\\n          @collection={{@inbox.collection}}\\n          @isLinkDisabled={{true}}\\n          @recordIds={{this.getRecordIdsFromTask task}}\\n        />\\n      </RowColumn>\\n      <RowColumn\\n        data-test-feature-inbox-backlog-row-started-at={{recordId}}\\n        data-test-feature-inbox-backlog-row-started-at-assignment={{task.assignment.id}}\\n        class=\\\"c-feature-inbox-backlog__started-at\\\"\\n      >\\n        {{#if task.assignment.startedProcessingAt}}\\n          <Shared::DataDisplay::Date\\n            @value={{task.assignment.startedProcessingAt}}\\n            @relativeFormatWhen=\\\"is this week to date\\\"\\n          />\\n        {{else}}\\n          -\\n        {{/if}}\\n      </RowColumn>\\n      <RowColumn\\n        id=\\\"row-handling-time-{{recordId}}\\\"\\n        class=\\\"c-feature-inbox-backlog__handling-time\\\"\\n        data-test-feature-inbox-backlog-row-handling-time={{recordId}}\\n        data-test-feature-inbox-backlog-row-handling-time-assignment={{task.assignment.id}}\\n      >\\n        {{#if task.assignment.handlingTime}}\\n          {{format-duration task.assignment.handlingTime}}\\n        {{else}}\\n          -\\n        {{/if}}\\n      </RowColumn>\\n      <RowColumn class=\\\"c-feature-inbox-backlog__state\\\">\\n        <Shared::DataDisplay::BetaBadge\\n          @value={{this.getStateLabelFromAssignment task.assignment}}\\n          @color={{this.colorBadge task.assignment.state}}\\n          data-test-feature-inbox-backlog-row-state={{recordId}}\\n          data-test-feature-inbox-backlog-row-state-assignment={{task.assignment.id}}\\n        />\\n      </RowColumn>\\n      <RowColumn\\n        {{did-insert (fn this.loadUserData task.assignment)}}\\n        class=\\\"c-feature-inbox-backlog__assignee\\\"\\n      >\\n        {{#if (and task.assignment task.assignment.user)}}\\n          <Feature::User::Profile\\n            @user={{hash\\n              email=task.assignment.user.email\\n              fullName=task.assignment.user.fullName\\n              initials=task.assignment.user.initials\\n            }}\\n            @shouldDisplayNameOrEmail={{true}}\\n            data-test-feature-inbox-backlog-row-assignee={{recordId}}\\n            data-test-feature-inbox-backlog-row-assignee-assignment={{task.assignment.id}}\\n          />\\n        {{else}}\\n          <div\\n            class=\\\"c-feature-inbox-backlog__no-assignee\\\"\\n            data-test-feature-inbox-backlog-row-no-assignee={{recordId}}\\n          >\\n            No assignee selected\\n          </div>\\n        {{/if}}\\n      </RowColumn>\\n      <RowColumn @alignment=\\\"right\\\">\\n        <div class=\\\"c-feature-inbox-backlog__buttons\\\">\\n          {{#if (compute (fn this.shouldDisplayAssignButton task))}}\\n            <Feature::Inbox::AssignToUserButton\\n              @record={{task.record}}\\n              @inbox={{@inbox}}\\n              @onAssignRecord={{this.handleAssignRecord}}\\n              @assignment={{task.assignment}}\\n              disabled={{(is-layout-editor)}}\\n              class={{get-classes-with-modifiers \\'c-feature-inbox-backlog__button\\' assign=true}}\\n              data-test-feature-inbox-backlog-row-assign-record={{task.record.id}}\\n            />\\n          {{/if}}\\n          {{#if (and task.assignment.user (not-eq task.assignment.state \\'done\\'))}}\\n            <Shared::Button\\n              @type=\\\"ghost\\\"\\n              @size=\\\"small\\\"\\n              @text=\\\"Unassign\\\"\\n              @onClick={{fn this.unassignRecord task}}\\n              disabled={{(is-layout-editor)}}\\n              class={{get-classes-with-modifiers \\'c-feature-inbox-backlog__button\\' unassign=true}}\\n              data-test-feature-inbox-backlog-row-unassign-record={{recordId}}\\n              data-test-feature-inbox-backlog-row-unassign-record-assignment={{task.assignment.id}}\\n            />\\n          {{/if}}\\n          {{#let (concat \\'backlog-open-record-button-\\' task.assignment.id) as |buttonId|}}\\n            <Shared::Button\\n              id={{buttonId}}\\n              @type=\\\"primary\\\"\\n              @size=\\\"small\\\"\\n              @text=\\\"Open\\\"\\n              @onClick={{fn this.redirectToRecord task}}\\n              @iconName=\\\"arrow_forward\\\"\\n              @isIconAfterText={{true}}\\n              disabled={{or (is-layout-editor) (not task.record)}}\\n              class=\\\"c-feature-inbox-backlog__button\\\"\\n              data-test-feature-inbox-backlog-row-open-record={{recordId}}\\n              data-test-feature-inbox-backlog-row-open-record-assignment={{task.assignment.id}}\\n            />\\n            {{#unless task.record}}\\n              <Shared::Feedback::BetaTooltip @targetId={{buttonId}} @side=\\\"left\\\">\\n                Record has been deleted\\n              </Shared::Feedback::BetaTooltip>\\n            {{/unless}}\\n          {{/let}}\\n        </div>\\n      </RowColumn>\\n    {{/let}}\\n  </Shared::BetaTable>\\n  <div class=\\\"l-feature-inbox-backlog-footer\\\">\\n    <Shared::BetaPaginator\\n      @currentPage={{this.currentPage}}\\n      @numberOfPages={{this.numberOfPages}}\\n      @isNumberOfPagesLoading={{this.isNumberOfPagesLoading}}\\n      @isNumberOfPagesDeactivated={{this.isNumberOfPagesDeactivated}}\\n      @isNextButtonDisabled={{this.isNextButtonDisabled}}\\n      @back={{this.handlePreviousPage}}\\n      @next={{this.handleNextPage}}\\n      @selectPage={{this.handleSelectPage}}\\n      class=\\\"c-feature-inbox-backlog__paginator\\\"\\n      data-test-feature-inbox-backlog-paginator\\n    />\\n  </div>\\n</div>\\n\\n<Shared::PortalContent @for=\\\"inbox-backlog-filter-button\\\">\\n  <Feature::Inbox::Backlog::Filter\\n    @filters={{this.filters}}\\n    @filtersCount={{this.numberOfFilters}}\\n    @onFilterChange={{this.handleFilterChange}}\\n    @applyFilters={{this.handleApplyFilters}}\\n    @discardFilters={{this.handleDiscardFilters}}\\n    @isApplyFiltersDisabled={{not this.isFilterDirty}}\\n    @isDiscardFiltersDisabled={{and (not this.appliedFilters) (not this.isFilterDirty)}}\\n  />\\n</Shared::PortalContent>\\n', { moduleName: 'client/features/inbox/components/backlog/template.hbs' });\n","import type InboxFeatureService from 'client/features/inbox/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport InboxAssignmentModel from 'client/data/models/inbox-assignment';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface ChooseAssignmentModalComponentArgs {\n  data: {\n    assignmentsLinkedToCurrentRecord: InboxAssignmentModel[];\n  };\n}\n\n@validateArguments\nexport default class InboxChooseAssignmentModalComponent extends Component<ChooseAssignmentModalComponentArgs> {\n  static propTypes = {\n    data: PropTypes.shape({\n      assignmentsLinkedToCurrentRecord: PropTypes.arrayOf(\n        PropTypes.instanceOf(InboxAssignmentModel),\n      ).isRequired,\n    }).isRequired,\n  };\n\n  @service('feature/inbox') private inboxFeatureService: InboxFeatureService;\n\n  @tracked selectedAssignment: InboxAssignmentModel | null = null;\n\n  @action\n  handleSubmit() {\n    this.inboxFeatureService.setCurrentInboxAssignmentAndCloseModal(this.selectedAssignment);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  class=\\\"c-feature-inbox-choose-assignment-modal\\\"\\n  @size=\\\"sm\\\"\\n  data-test-feature-inbox-choose-assignment-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header\\n    @title=\\\"Select the inbox your are working on\\\"\\n    data-test-feature-inbox-choose-assignment-modal-header\\n  />\\n\\n  <Shared::Modal::Body>\\n    <Shared::Form::SelectCards\\n      @value={{this.selectedAssignment}}\\n      @namePath=\\\"inbox.name\\\"\\n      @iconPath=\\\"inbox.icon\\\"\\n      @forceDefaultValue={{false}}\\n      @onChange={{fn (mut this.selectedAssignment)}}\\n      @options={{@data.assignmentsLinkedToCurrentRecord}}\\n      data-test-feature-inbox-choose-assignment-modal-select-cards\\n    />\\n  </Shared::Modal::Body>\\n\\n  <Shared::Modal::ActionFooter\\n    @confirmText=\\\"Confirm\\\"\\n    @confirmType=\\\"success\\\"\\n    @onConfirm={{this.handleSubmit}}\\n    @isConfirmDisabled={{not this.selectedAssignment}}\\n    data-test-feature-inbox-choose-assignment-modal-action-footer\\n  />\\n</Shared::Modal>\\n', { moduleName: 'client/features/inbox/components/choose-assignment-modal/template.hbs' });\n","import type CollectionModel from 'client/data/models/collection';\nimport type { SortingOrderEnum } from 'client/data/models/collection';\nimport type InboxModel from 'client/data/models/inbox';\nimport type InboxSortingFieldFragment from 'client/data/models/inbox-sorting-field';\nimport type SegmentModel from 'client/data/models/segment';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type LayoutState from 'client/shared/states/layout';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport { InboxDispatchRuleEnum, InboxTypeEnum } from 'client/data/models/inbox';\nimport validateArguments from 'client/decorators/validate';\nimport AbstractMultiStepComponent from 'client/shared/components/multi-step-modal/abstract-multi-step-modal';\n\ninterface Args {\n  data: {\n    onInboxCreated?: (inbox: InboxModel) => void;\n    collection?: CollectionModel;\n    type?: InboxTypeEnum;\n  };\n}\n\n@validateArguments\nexport default class InboxCreationModalComponent extends AbstractMultiStepComponent<Args> {\n  @service('shared/state/layout') public layoutState: LayoutState;\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n  @service('feature/workflow') private workflowFeatureService: WorkflowFeatureService;\n\n  @tracked public collection: CollectionModel | null = this.args.data?.collection || null;\n  @tracked public segment: SegmentModel | null = null;\n  @tracked public name: string | null = null;\n  @tracked public icon: string | null = this.collection?.iconOrDefault || null;\n  @tracked public type: InboxTypeEnum | null = this.args.data?.type || null;\n  @tracked public dispatchRule: InboxDispatchRuleEnum | null = null;\n  @tracked public sortingFields: InboxSortingFieldFragment[] = [];\n\n  @action\n  handleCollectionChange(newValue: CollectionModel) {\n    this.collection = newValue;\n    this.segment = null;\n  }\n\n  @action\n  handleDispatchRuleChange(newValue: InboxDispatchRuleEnum) {\n    this.dispatchRule = newValue;\n    this.sortingFields =\n      newValue === InboxDispatchRuleEnum.Random\n        ? []\n        : [this.inboxFeature.createInboxSortingField({ fieldName: null, order: null })];\n  }\n\n  get firstStepTitle() {\n    return 'What should go in this inbox?';\n  }\n\n  get firstStepSubtitle() {\n    return 'An Inbox is populated with records from a single Collection, either based on a Segment or a Workflow escalation.';\n  }\n\n  public get shouldDisableCollectionInput() {\n    return Boolean(this.args.data?.collection);\n  }\n\n  public get shouldDisableTypeInput() {\n    return Boolean(this.args.data?.type);\n  }\n\n  @action\n  handleSortingFieldChange(sortingField: InboxSortingFieldFragment, newValue: string) {\n    sortingField.fieldName = newValue;\n  }\n\n  @action\n  handleSortingOrderChange(sortingField: InboxSortingFieldFragment, newValue: SortingOrderEnum) {\n    sortingField.order = newValue;\n  }\n\n  @action\n  handleAddSortingField() {\n    this.sortingFields.pushObject(\n      this.inboxFeature.createInboxSortingField({ fieldName: null, order: null }),\n    );\n  }\n\n  @action\n  handleRemoveSortingField(index: number) {\n    this.sortingFields.removeAt(index);\n  }\n\n  @action\n  async handleCreateInbox() {\n    const inbox = await this.inboxFeature.createInbox({\n      name: this.name,\n      collection: this.collection,\n      segment: this.segment,\n      dispatchRule: this.dispatchRule,\n      sortingFields: this.sortingFields,\n      rendering: this.layoutState.rendering,\n      type: this.type || InboxTypeEnum.Segment,\n      icon: this.icon,\n    });\n\n    this.args.data?.onInboxCreated?.(inbox);\n\n    this.inboxFeature.handleCloseCreationModal();\n  }\n}\n","import type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type LayoutState from 'client/shared/states/layout';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport CollectionModel from 'client/data/models/collection';\nimport { InboxTypeEnum } from 'client/data/models/inbox';\nimport SegmentModel from 'client/data/models/segment';\nimport validateArguments from 'client/decorators/validate';\nimport AbstractStepComponent from 'client/shared/components/multi-step-modal/step/abstract-step-component';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface InboxCreationModalFirstStepComponentArgs {\n  onCollectionChange: (newValue: CollectionModel) => void;\n  collection?: CollectionModel;\n  onSegmentChange: (newValue: SegmentModel) => void;\n  segment?: SegmentModel;\n  onTypeChange: (newValue: InboxTypeEnum) => void;\n  type?: InboxTypeEnum;\n  onNameChange: (newValue: string) => void;\n  name?: string;\n  isCollectionInputDisabled?: boolean;\n  isTypeInputDisabled?: boolean;\n}\n\n@validateArguments\nexport default class InboxCreationModalFirstStepComponent extends AbstractStepComponent<InboxCreationModalFirstStepComponentArgs> {\n  propTypes = {\n    ...AbstractStepComponent.propTypes,\n    onCollectionChange: PropTypes.func.isRequired,\n    collection: PropTypes.instanceOf(CollectionModel),\n    onSegmentChange: PropTypes.func.isRequired,\n    segment: PropTypes.instanceOf(SegmentModel),\n    onTypeChange: PropTypes.func.isRequired,\n    type: PropTypes.oneOf(Object.values(InboxTypeEnum)).isRequired,\n    onNameChange: PropTypes.func.isRequired,\n    name: PropTypes.string,\n    isCollectionInputDisabled: PropTypes.bool,\n    isTypeInputDisabled: PropTypes.bool,\n  };\n\n  @service('shared/state/layout') layoutState: LayoutState;\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n  @service('feature/workflow') public workflowFeatureService: WorkflowFeatureService;\n\n  get collections() {\n    return this.layoutState.collections;\n  }\n\n  get formattedInboxTypes() {\n    return this.inboxFeature.formattedInboxTypes();\n  }\n\n  get segments() {\n    return this.args.collection?.segments || [];\n  }\n\n  get isCollectionFilterable() {\n    return this.args.collection?.primaryField?.filterActivated;\n  }\n\n  get isValidSegmentInbox() {\n    return Boolean(this.args.type === InboxTypeEnum.Segment && this.args.segment);\n  }\n\n  get commonValidator() {\n    return Boolean(\n      this.args.collection && this.isCollectionFilterable && this.args.name?.length > 0,\n    );\n  }\n\n  get isStepComplete() {\n    return (\n      this.commonValidator\n      && (this.isValidSegmentInbox || this.args.type === InboxTypeEnum.Workflow)\n    );\n  }\n\n  @action\n  handleTypeChange(newValue: InboxTypeEnum) {\n    this.args.onTypeChange(newValue);\n    this.args.onNameChange(\n      newValue === InboxTypeEnum.Workflow ? '' : this.args.segment?.name || '',\n    );\n  }\n\n  @action\n  handleSegmentChange(newValue: SegmentModel) {\n    this.args.onSegmentChange(newValue);\n    this.args.onNameChange(newValue.name);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::MultiStepModal::Step\\n  @updateModal={{this.updateModal}}\\n  @isStepComplete={{this.isStepComplete}}\\n/>\\n<Shared::BetaLabel @label=\\\"Collection\\\" @position=\\\"top\\\" class=\\\"c-inbox-creation-modal__label\\\">\\n  <Shared::BetaSelect\\n    @options={{this.collections}}\\n    @iconPath=\\\"iconOrDefault\\\"\\n    @namePath=\\\"singularizedDisplayName\\\"\\n    @value={{one-way @collection}}\\n    @onChange={{@onCollectionChange}}\\n    @withSearchInput={{true}}\\n    @placeholder=\\\"Select a collection\\\"\\n    @disabled={{@isCollectionInputDisabled}}\\n    class=\\\"c-inbox-creation-modal__input\\\"\\n    data-test-feature-inbox-creation-modal-select-collection\\n  />\\n</Shared::BetaLabel>\\n<Shared::BetaLabel @label=\\\"Type\\\" @position=\\\"top\\\" class=\\\"c-inbox-creation-modal__label\\\">\\n  <Shared::BetaSelect\\n    @options={{this.formattedInboxTypes}}\\n    @onChange={{this.handleTypeChange}}\\n    @namePath=\\\"name\\\"\\n    @valuePath=\\\"value\\\"\\n    @withSearchInput={{true}}\\n    @placeholder=\\\"Select a type\\\"\\n    @value={{one-way @type}}\\n    @disabled={{@isTypeInputDisabled}}\\n    class=\\\"c-inbox-creation-modal__input\\\"\\n    data-test-feature-inbox-creation-modal-select-type\\n  />\\n</Shared::BetaLabel>\\n{{#if @collection}}\\n  {{#if (eq @type \\'segment\\')}}\\n    <Shared::BetaLabel @label=\\\"Segment\\\" @position=\\\"top\\\" class=\\\"c-inbox-creation-modal__label\\\">\\n      <Shared::BetaSelect\\n        @options={{this.segments}}\\n        @namePath=\\\"name\\\"\\n        @onChange={{this.handleSegmentChange}}\\n        @withSearchInput={{true}}\\n        @placeholder=\\\"Select a segment\\\"\\n        @value={{one-way @segment}}\\n        @disabled={{or (not @collection.segments.length) (not this.isCollectionFilterable)}}\\n        class=\\\"c-inbox-creation-modal__input\\\"\\n        data-test-feature-inbox-creation-modal-select-segment\\n      />\\n    </Shared::BetaLabel>\\n    {{#if (and this.isCollectionFilterable (not @collection.segments.length))}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"warning\\\"\\n        @canHide={{false}}\\n        @messageTitle=\\\"Segments required\\\"\\n        data-test-feature-inbox-creation-modal-segment-warning-notification\\n      >\\n        The collection you have chosen doesn’t have any segments set up. Inboxes are based on\\n        segments to work properly. Read more\\n        <Shared::Navigation::BetaLinkTo\\n          @href=\\\"https://docs.forestadmin.com/user-guide/other-tabs/collaboration/distribute-tasks-with-inboxes\\\"\\n          @target=\\\"_blank\\\"\\n          @text=\\\"here\\\"\\n          @type=\\\"warning\\\"\\n          @textClass=\\\"c-inbox-creation-modal__documentation-link\\\"\\n        />.\\n      </Shared::Feedback::Notification::NotificationInApp>\\n    {{/if}}\\n  {{/if}}\\n  {{#unless this.isCollectionFilterable}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"warning\\\"\\n      @canHide={{false}}\\n      @messageTitle=\\\"Primary key filterable required\\\"\\n      data-test-feature-inbox-creation-modal-collection-invalid-warning\\n    >\\n      The collection you have chosen doesn’t have any primary key or its primary key is not marked\\n      as filterable. In order for the inbox to work, the primary key must be filterable.\\n    </Shared::Feedback::Notification::NotificationInApp>\\n  {{/unless}}\\n  {{#if (and this.isCollectionFilterable (or (eq @type \\'workflow\\') @segment))}}\\n    <div class=\\\"c-inbox-creation-modal__spacer\\\">\\n      <Shared::BetaLabel @label=\\\"Icon\\\" class=\\\"c-inbox-creation-modal__label\\\">\\n        <Shared::BetaEmojiPicker\\n          @value={{@icon}}\\n          @onChange={{@onIconChange}}\\n          @popoverFullWidth={{false}}\\n          @for=\\\"icon\\\"\\n          data-test-feature-inbox-creation-modal-input-icon\\n        />\\n      </Shared::BetaLabel>\\n      <Shared::BetaLabel @label=\\\"Name\\\" class=\\\"c-inbox-creation-modal__label\\\">\\n        <Shared::BetaInput\\n          @value={{one-way @name}}\\n          @for=\\\"name\\\"\\n          @onChange={{@onNameChange}}\\n          @placeholder=\\\"Enter a name\\\"\\n          class=\\\"c-inbox-creation-modal__input\\\"\\n          data-test-feature-inbox-creation-modal-input-name\\n        />\\n      </Shared::BetaLabel>\\n\\n    </div>\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/features/inbox/components/creation-modal/first-step/template.hbs' });\n","import type { SortingOrderEnum } from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\n\nimport CollectionModel from 'client/data/models/collection';\nimport { InboxDispatchRuleEnum } from 'client/data/models/inbox';\nimport InboxSortingFieldFragment from 'client/data/models/inbox-sorting-field';\nimport validateArguments from 'client/decorators/validate';\nimport AbstractStepComponent from 'client/shared/components/multi-step-modal/step/abstract-step-component';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface InboxCreationModalSecondStepComponentArgs {\n  collection: CollectionModel;\n  onSortingFieldChange: (field: FieldModel) => void;\n  onSortingOrderChange: (field: SortingOrderEnum) => void;\n  onDispatchRuleChange: (dispatchRule: InboxDispatchRuleEnum) => void;\n  onAddSortingField: () => void;\n  onRemoveSortingField: (index: number) => void;\n  dispatchRule: InboxDispatchRuleEnum;\n  sortingFields: InboxSortingFieldFragment[];\n}\n\n@validateArguments\nexport default class InboxCreationModalSecondStepComponent extends AbstractStepComponent<InboxCreationModalSecondStepComponentArgs> {\n  propTypes = {\n    ...AbstractStepComponent.propTypes,\n    collection: PropTypes.instanceOf(CollectionModel).isRequired,\n    onSortingFieldChange: PropTypes.func.isRequired,\n    onSortingOrderChange: PropTypes.func.isRequired,\n    onDispatchRuleChange: PropTypes.func.isRequired,\n    onAddSortingField: PropTypes.func.isRequired,\n    onRemoveSortingField: PropTypes.func.isRequired,\n    dispatchRule: PropTypes.string.isRequired,\n    sortingFields: PropTypes.arrayOf(PropTypes.instanceOf(InboxSortingFieldFragment)).isRequired,\n  };\n\n  private get areSortingFieldsValid() {\n    return (\n      this.args.sortingFields?.length >= 1\n      && this.args.sortingFields.every(\n        (sortingField) => !!sortingField.fieldName && !!sortingField.order,\n      )\n    );\n  }\n\n  get isStepComplete(): boolean {\n    return Boolean(\n      this.args.dispatchRule === InboxDispatchRuleEnum.Random ? true : this.areSortingFieldsValid,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::MultiStepModal::Step\\n  @updateModal={{this.updateModal}}\\n  @isStepComplete={{this.isStepComplete}}\\n/>\\n<Feature::Inbox::DispatchRuleForm\\n  @collection={{@collection}}\\n  @dispatchRule={{@dispatchRule}}\\n  @sortingFields={{@sortingFields}}\\n  @onDispatchRuleChange={{@onDispatchRuleChange}}\\n  @onSortingFieldChange={{@onSortingFieldChange}}\\n  @onSortingOrderChange={{@onSortingOrderChange}}\\n  @onAddSortingField={{@onAddSortingField}}\\n  @onRemoveSortingField={{@onRemoveSortingField}}\\n  data-test-feature-inbox-creation-modal-second-step-dispatch-rule\\n/>\\n', { moduleName: 'client/features/inbox/components/creation-modal/second-step/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::MultiStepModal\\n  @title={{this.title}}\\n  @subtitle={{this.subtitle}}\\n  @handleStep={{this.handleStep}}\\n  @isCurrentStepComplete={{this.isCurrentStepComplete}}\\n  @stepCount={{3}}\\n  data-test-feature-inbox-creation-modal\\n  ...attributes\\n>\\n  <:step1>\\n    <Feature::Inbox::CreationModal::FirstStep\\n      @title={{this.firstStepTitle}}\\n      @subtitle={{this.firstStepSubtitle}}\\n      @updateModal={{this.updateModal}}\\n      @collection={{this.collection}}\\n      @onCollectionChange={{this.handleCollectionChange}}\\n      @segment={{this.segment}}\\n      @onSegmentChange={{fn (mut this.segment)}}\\n      @name={{this.name}}\\n      @onNameChange={{fn (mut this.name)}}\\n      @type={{this.type}}\\n      @onTypeChange={{fn (mut this.type)}}\\n      @icon={{this.icon}}\\n      @onIconChange={{fn (mut this.icon)}}\\n      @isCollectionInputDisabled={{this.shouldDisableCollectionInput}}\\n      @isTypeInputDisabled={{this.shouldDisableTypeInput}}\\n    />\\n\\n  </:step1>\\n  <:step2>\\n    <Feature::Inbox::CreationModal::SecondStep\\n      @title=\\\"Choose your dispatch rule.\\\"\\n      @subtitle=\\\"Define how you want to route your records to your users.\\\"\\n      @updateModal={{this.updateModal}}\\n      @collection={{one-way this.collection}}\\n      @dispatchRule={{this.dispatchRule}}\\n      @sortingFields={{this.sortingFields}}\\n      @onDispatchRuleChange={{this.handleDispatchRuleChange}}\\n      @onSortingFieldChange={{this.handleSortingFieldChange}}\\n      @onSortingOrderChange={{this.handleSortingOrderChange}}\\n      @onAddSortingField={{this.handleAddSortingField}}\\n      @onRemoveSortingField={{this.handleRemoveSortingField}}\\n    />\\n  </:step2>\\n  <:step3>\\n    <Feature::Inbox::CreationModal::ThirdStep\\n      @title=\\\"Confirmation\\\"\\n      @subtitle=\\\"You are about to create a new inbox.\\\"\\n      @updateModal={{this.updateModal}}\\n      @collection={{this.collection}}\\n      @segment={{this.segment}}\\n      @type={{this.type}}\\n      @icon={{this.icon}}\\n      @name={{this.name}}\\n      @handleStep={{this.handleCreateInbox}}\\n      @dispatchRule={{this.dispatchRule}}\\n      @sortingFields={{this.sortingFields}}\\n    />\\n  </:step3>\\n</Shared::MultiStepModal>\\n\\n', { moduleName: 'client/features/inbox/components/creation-modal/template.hbs' });\n","import type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport CollectionModel from 'client/data/models/collection';\nimport {\n  InboxDispatchRuleEnum,\n  InboxDispatchRuleLabel,\n  InboxTypeEnum,\n} from 'client/data/models/inbox';\nimport InboxSortingFieldFragment from 'client/data/models/inbox-sorting-field';\nimport SegmentModel from 'client/data/models/segment';\nimport validateArguments from 'client/decorators/validate';\nimport AbstractStepComponent from 'client/shared/components/multi-step-modal/step/abstract-step-component';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface InboxCreationModalThirdStepComponentArguments {\n  dispatchRule: InboxDispatchRuleEnum;\n  collection: CollectionModel;\n  segment: SegmentModel;\n  sortingFields: InboxSortingFieldFragment[];\n  type: InboxTypeEnum;\n  name?: string;\n  icon: string;\n}\n\n@validateArguments\nexport default class InboxCreationModalThirdStepComponent extends AbstractStepComponent<InboxCreationModalThirdStepComponentArguments> {\n  propTypes = {\n    ...AbstractStepComponent.propTypes,\n    collection: PropTypes.instanceOf(CollectionModel).isRequired,\n    segment: PropTypes.instanceOf(SegmentModel),\n    type: PropTypes.oneOf(Object.values(InboxTypeEnum)).isRequired,\n    name: PropTypes.string,\n    icon: PropTypes.string,\n    dispatchRule: PropTypes.oneOf(Object.values(InboxDispatchRuleEnum)).isRequired,\n    sortingFields: PropTypes.arrayOf(PropTypes.instanceOf(InboxSortingFieldFragment)).isRequired,\n  };\n\n  @service('feature/workflow') public workflowFeatureService: WorkflowFeatureService;\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n\n  @action\n  getField(fieldName: string) {\n    return this.args.collection?.fields.findBy('fieldName', fieldName);\n  }\n\n  get typeText() {\n    return this.inboxFeature.formattedInboxTypes().findBy('value', this.args.type)?.name || '';\n  }\n\n  get inboxName() {\n    return `${this.args.icon} ${this.args.name}`;\n  }\n\n  get dispatchRuleLabel() {\n    const label = 'Following the dispatch rule';\n    return this.args.sortingFields.length <= 1 ? label : `${label}s`;\n  }\n\n  get randomRuleDescription() {\n    return InboxDispatchRuleLabel.random;\n  }\n\n  get isStepComplete(): boolean {\n    return true;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::MultiStepModal::Step\\n  @updateModal={{this.updateModal}}\\n  @isStepComplete={{this.isStepComplete}}\\n/>\\n<Shared::BetaLabel\\n  @label=\\\"Inbox name\\\"\\n  @position=\\\"left\\\"\\n  class=\\\"c-inbox-creation-modal-third-step__label\\\"\\n>\\n  <Shared::DataDisplay::BetaBadge\\n    @isNotUppercase={{true}}\\n    @value={{this.inboxName}}\\n    @color=\\\"secondary\\\"\\n    data-test-inbox-creation-modal-third-step-name-badge\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel\\n  @label=\\\"Inbox type\\\"\\n  @position=\\\"left\\\"\\n  class=\\\"c-inbox-creation-modal-third-step__label\\\"\\n>\\n  <Shared::DataDisplay::BetaBadge\\n    @isNotUppercase={{true}}\\n    @value={{capitalize-text this.typeText}}\\n    @color=\\\"secondary\\\"\\n    data-test-inbox-creation-modal-third-step-type-badge\\n  />\\n</Shared::BetaLabel>\\n\\n{{#if (eq @type \\'segment\\')}}\\n  <Shared::BetaLabel\\n    @label=\\\"Data from\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-inbox-creation-modal-third-step__label\\\"\\n  >\\n    <Shared::DataDisplay::BetaBadge\\n      @isNotUppercase={{true}}\\n      @value=\\\"{{@collection.displayNameWithEmoji}} / {{@segment.name}}\\\"\\n      @color=\\\"secondary\\\"\\n      data-test-inbox-creation-modal-third-step-segment-badge\\n    />\\n  </Shared::BetaLabel>\\n{{/if}}\\n\\n<label class=\\\"c-inbox-creation-modal-third-step__dispatch-rule\\\">\\n  <span\\n    class={{get-classes-with-modifiers\\n      \\'c-inbox-creation-modal-third-step__dispatch-rule-label\\'\\n      aligned=(eq @sortingFields.length 1)\\n    }}\\n  >\\n    {{this.dispatchRuleLabel}}\\n  </span>\\n  {{#if (eq @dispatchRule \\'random\\')}}\\n    <Shared::DataDisplay::BetaBadge\\n      @isNotUppercase={{true}}\\n      @value={{this.randomRuleDescription}}\\n      @color=\\\"secondary\\\"\\n      data-test-inbox-creation-modal-third-step-dispatch-rule-badge\\n    />\\n  {{else}}\\n    <div class=\\\"c-inbox-creation-modal-third-step__sorting-fields-container\\\">\\n      {{#each @sortingFields as |sortingField|}}\\n        <Feature::Inbox::DisplaySortedField\\n          @field={{this.getField sortingField.fieldName}}\\n          @order={{sortingField.order}}\\n        />\\n      {{/each}}\\n    </div>\\n  {{/if}}\\n\\n</label>\\n', { moduleName: 'client/features/inbox/components/creation-modal/third-step/template.hbs' });\n","import type { SortingOrderEnum } from 'client/data/models/collection';\nimport type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type InboxSortingFieldFragment from 'client/data/models/inbox-sorting-field';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { InboxDispatchRuleEnum, InboxDispatchRuleLabel } from 'client/data/models/inbox';\n\nexport const INBOX_MAX_SORTING_FIELDS = 3;\n\ninterface DispatchRuleFormArgs {\n  collection: CollectionModel;\n  dispatchRule: InboxDispatchRuleEnum;\n  sortingFields: InboxSortingFieldFragment[];\n  onDispatchRuleChange: (dispatchRule: InboxDispatchRuleEnum) => void;\n  onSortingFieldChange: (sortingField: InboxSortingFieldFragment, fieldName: string) => void;\n  onSortingOrderChange: (sortingField: InboxSortingFieldFragment, order: SortingOrderEnum) => void;\n  onAddSortingField: () => void;\n  onRemoveSortingField: (index: number) => void;\n}\n\nexport default class InboxDispatchRuleFormComponent extends Component<DispatchRuleFormArgs> {\n  @service('feature/inbox') private readonly inboxFeature: InboxFeatureService;\n\n  private get sortingFieldNamesAlreadySelected() {\n    return this.args.sortingFields.map((sortingField) => sortingField.fieldName);\n  }\n\n  @action\n  filteredSortingFields(sortingField: InboxSortingFieldFragment) {\n    return this.args.collection.sortingFields.filter((collectionSortingField: FieldModel) => {\n      if (collectionSortingField.fieldName === sortingField.fieldName) {\n        return true;\n      }\n      return !this.sortingFieldNamesAlreadySelected.includes(collectionSortingField.fieldName);\n    });\n  }\n\n  get canAddSortingFields() {\n    return this.args.sortingFields.length < INBOX_MAX_SORTING_FIELDS;\n  }\n\n  get shouldDisplaySortingFieldSelector() {\n    return this.args.dispatchRule === InboxDispatchRuleEnum.BasedOnSortingFields;\n  }\n\n  get orderChoices() {\n    return [\n      {\n        label: InboxDispatchRuleLabel.basedOnSortingFields,\n        description: 'Records are ordered based on field values.',\n        value: InboxDispatchRuleEnum.BasedOnSortingFields,\n      },\n      {\n        label: InboxDispatchRuleLabel.random,\n        description: 'Elements are shown in random order.',\n        value: InboxDispatchRuleEnum.Random,\n      },\n    ];\n  }\n\n  get isMultipleSortingFieldsSupported() {\n    return this.inboxFeature.isMultipleSortingFieldsSupported;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-inbox-dispatch-rule-form\\\"\\n  data-test-feature-inbox-dispatch-rule-form\\n  ...attributes\\n>\\n  <Shared::BetaLabel\\n    @label=\\\"Order\\\"\\n    @textClass=\\\"c-feature-inbox-dispatch-rule-form__label-text\\\"\\n    @descriptionClass=\\\"c-feature-inbox-dispatch-rule-form__description\\\"\\n    @description=\\\"Records will be dispatched to your users in that order.\\\"\\n    @position=\\\"top\\\"\\n    class=\\\"c-feature-inbox-dispatch-rule-form__label\\\"\\n  >\\n    <div class=\\\"l-feature-inbox-dispatch-rule-form\\\">\\n      <Shared::Form::SelectCards\\n        @value={{@dispatchRule}}\\n        @valuePath=\\\"value\\\"\\n        @namePath=\\\"label\\\"\\n        @descriptionPath=\\\"description\\\"\\n        @options={{this.orderChoices}}\\n        @onChange={{@onDispatchRuleChange}}\\n        @forceDefaultValue={{false}}\\n        data-test-feature-inbox-dispatch-rule-form-choices\\n      />\\n    </div>\\n  </Shared::BetaLabel>\\n\\n  {{#if this.shouldDisplaySortingFieldSelector}}\\n    <Shared::BetaLabel\\n      @label=\\\"Sorting fields\\\"\\n      @textClass=\\\"c-feature-inbox-dispatch-rule-form__label-text\\\"\\n      @description=\\\"The fields your sorting rules will be based on.\\\"\\n      @position=\\\"top\\\"\\n      class=\\\"c-feature-inbox-dispatch-rule-form__label\\\"\\n    >\\n      {{#each @sortingFields as |sortingField index|}}\\n        <div class=\\\"c-feature-inbox-dispatch-rule-form__fields-container\\\">\\n          <Shared::BetaSelect\\n            @options={{this.filteredSortingFields sortingField}}\\n            @namePath=\\\"displayName\\\"\\n            @placeholder=\\\"Select a field\\\"\\n            @onChange={{fn @onSortingFieldChange sortingField}}\\n            @withSearchInput={{true}}\\n            @value={{one-way sortingField.fieldName}}\\n            @valuePath=\\\"fieldName\\\"\\n            class=\\\"c-feature-inbox-dispatch-rule-form__input-field\\\"\\n            data-test-feature-inbox-dispatch-rule-form-select-sorting-field={{index}}\\n          />\\n          <Shared::BetaSelect\\n            @options={{array \\'ascending\\' \\'descending\\'}}\\n            @onChange={{fn @onSortingOrderChange sortingField}}\\n            @value={{one-way sortingField.order}}\\n            @placeholder=\\\"Select order\\\"\\n            class=\\\"c-feature-inbox-dispatch-rule-form__input-order\\\"\\n            data-test-feature-inbox-dispatch-rule-form-select-sorting-order={{index}}\\n          />\\n\\n          {{#if this.isMultipleSortingFieldsSupported}}\\n            {{#if (eq index 0)}}\\n              <Shared::BetaIconButton\\n                @icon=\\\"add_circle_outline\\\"\\n                @color=\\\"ghost\\\"\\n                @size=\\\"medium\\\"\\n                disabled={{not this.canAddSortingFields}}\\n                {{on \\'click\\' (stop-propagation @onAddSortingField)}}\\n                data-test-feature-inbox-dispatch-rule-form-add-sorting-field-button\\n              />\\n            {{else}}\\n              <Shared::BetaIconButton\\n                @icon=\\\"remove_circle_outline\\\"\\n                @color=\\\"ghost\\\"\\n                @size=\\\"medium\\\"\\n                {{on \\'click\\' (stop-propagation (fn @onRemoveSortingField index))}}\\n                data-test-feature-inbox-dispatch-rule-form-remove-sorting-field-button={{index}}\\n              />\\n            {{/if}}\\n          {{/if}}\\n        </div>\\n      {{/each}}\\n    </Shared::BetaLabel>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/inbox/components/dispatch-rule-form/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::DataDisplay::BetaBadge\\n  class=\\\"c-feature-inbox-display-sorted-field\\\"\\n  @isNotUppercase={{true}}\\n  @isNotHorizontallyCentered={{true}}\\n  @color=\\\"secondary\\\"\\n  data-test-feature-inbox-display-sorted-field={{@field.fieldName}}\\n>\\n  <span>{{@field.displayName}}</span>\\n  <div class=\\\"c-feature-inbox-display-sorted-field__order\\\">\\n    {{#if (eq @order \\'ascending\\')}}\\n      <span>\\n        Asc.\\n      </span>\\n    {{else}}\\n      <span>\\n        Desc.\\n      </span>\\n    {{/if}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{if (eq @order \\'ascending\\') \\'arrow_upward\\' \\'arrow_downward\\'}}\\n      @size=\\\"custom\\\"\\n    />\\n  </div>\\n</Shared::DataDisplay::BetaBadge>\\n', { moduleName: 'client/features/inbox/components/display-sorted-field/template.hbs' });\n","import type InboxAssignmentModel from 'client/data/models/inbox-assignment';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type { TaskWithRecord } from 'client/features/inbox/services/internal-business/tasks-fetcher';\nimport type InboxState from 'client/features/inbox/state';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport InboxModel from 'client/data/models/inbox';\nimport { InboxEntryPointEnum } from 'client/features/inbox/state';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface InboxViewDoingComponentArgs {\n  inbox: InboxModel;\n}\n\nexport default class InboxDoingPageComponent extends Component<InboxViewDoingComponentArgs> {\n  static propTypes = {\n    inbox: PropTypes.instanceOf(InboxModel).isRequired,\n  };\n\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n  @service('feature/inbox/state') private readonly inboxState: InboxState;\n  @service private currentUser: CurrentUserService;\n\n  @tracked public inboxAssignments: TaskWithRecord[] = null;\n  @tracked todoTasksCount = null;\n\n  constructor(owner: unknown, args: InboxViewDoingComponentArgs) {\n    super(owner, args);\n\n    void this.loadTasks();\n  }\n\n  get isLoading() {\n    return (\n      this.inboxAssignments === null\n      || (this.inboxAssignments.length === 0 && this.todoTasksCount === null)\n    );\n  }\n\n  get descriptionWithNoRecords() {\n    return this.todoTasksCount > 0\n      ? 'Start processing to see records assigned to you.'\n      : 'No records to process.';\n  }\n\n  get canUserReassign() {\n    return this.args.inbox.canUsersReassign || this.currentUser.can('inboxTaskReassignment');\n  }\n\n  @action\n  getDisplayNameFromRecord(inboxAssignment: TaskWithRecord): unknown {\n    return this.inboxFeature.getDisplayNameFromRecord(inboxAssignment);\n  }\n\n  @action\n  async loadTasks() {\n    await this.getDoingTasks();\n    if (this.inboxAssignments.length === 0) {\n      await this.getToDoTasksCount();\n    }\n  }\n\n  @action\n  handleOpenTask(inboxAssignment: InboxAssignmentModel) {\n    if (this.inboxState.entryPointInboxId !== this.args.inbox.id) {\n      this.inboxFeature.setEntryPoint(InboxEntryPointEnum.Inbox, null, this.args.inbox.id);\n    }\n    return this.inboxFeature.startProcessingTask(inboxAssignment);\n  }\n\n  @action\n  async handleUnassignRecord(inboxAssignment: InboxAssignmentModel) {\n    await this.inboxFeature.unassignRecord(inboxAssignment);\n    await this.loadTasks();\n  }\n\n  @action\n  async getDoingTasks() {\n    this.inboxAssignments = null;\n    // We cannot update a tracked property twice in a same run loop so we need to wait for the next one\n    await waitForNextRunLoop();\n    this.inboxAssignments = await this.inboxFeature.getAssignmentsWithRecord(this.args.inbox);\n  }\n\n  @action\n  async getToDoTasksCount() {\n    this.todoTasksCount = await this.inboxFeature.getNumberOfToDoTasks(this.args.inbox);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers\\n    \\'c-feature-inbox-doing-page\\'\\n    empty-table=(eq this.inboxAssignments.length 0)\\n  }}\\n  {{did-update this.loadTasks @inbox.id}}\\n  data-test-feature-inbox-doing-page\\n  ...attributes\\n>\\n  {{#if this.isLoading}}\\n    <Shared::Layout::LoadingData\\n      class=\\\"c-feature-inbox-doing-page__loader\\\"\\n      data-test-feature-inbox-doing-page-loader\\n    />\\n  {{else if (eq this.inboxAssignments.length 0)}}\\n    <img\\n      src={{if\\n        this.userPreferenceState.isDarkTheme\\n        \\'/img/collaboration/inbox/empty-box-dark.svg\\'\\n        \\'/img/collaboration/inbox/empty-box-light.svg\\'\\n      }}\\n      alt=\\\"Empty assignment box\\\"\\n    />\\n    <Shared::Layout::FullPageTitleDescription\\n      @title=\\\"No record assigned to you\\\"\\n      @message={{this.descriptionWithNoRecords}}\\n    />\\n    {{#if (gt this.todoTasksCount 0)}}\\n      <Feature::Inbox::StartProcessingButton\\n        @inbox={{@inbox}}\\n        @onStartProcessingFailed={{this.getToDoTasksCount}}\\n      />\\n    {{/if}}\\n  {{else}}\\n    <Shared::BetaTable\\n      @columns={{array \\'Record\\' \\'Created at\\' \\'\\'}}\\n      @columnsClass=\\\"c-feature-inbox-doing-page__column-header\\\"\\n      @rows={{this.inboxAssignments}}\\n      @alignColumnLeft={{true}}\\n      @embedded={{true}}\\n      @isLastColumnRightAligned={{true}}\\n      @sticky={{true}}\\n      @isScrollable={{true}}\\n      class=\\\"c-feature-inbox-doing-page__table\\\"\\n      data-test-feature-inbox-doing-page-table\\n      as |RowColumn inboxAssignment|\\n    >\\n      <RowColumn data-test-feature-inbox-doing-page-row-record={{inboxAssignment.assignment.id}}>\\n        {{this.getDisplayNameFromRecord inboxAssignment}}\\n      </RowColumn>\\n      <RowColumn\\n        data-test-feature-inbox-doing-page-row-created-at={{inboxAssignment.assignment.id}}\\n      >\\n        <Shared::DataDisplay::Date\\n          @value={{inboxAssignment.assignment.createdAt}}\\n          @relativeFormatWhen=\\\"is this week to date\\\"\\n        />\\n      </RowColumn>\\n      <RowColumn @alignment=\\\"right\\\">\\n        {{#if this.canUserReassign}}\\n          <Shared::Button\\n            @type=\\\"ghost\\\"\\n            @size=\\\"small\\\"\\n            @text=\\\"Unassign\\\"\\n            @onClick={{fn this.handleUnassignRecord inboxAssignment.assignment}}\\n            disabled={{(is-layout-editor)}}\\n            class=\\\"c-feature-inbox-doing-page__button\\\"\\n            data-test-feature-inbox-doing-page-row-unassign-record={{inboxAssignment.assignment.id}}\\n          />\\n        {{/if}}\\n        <Shared::Button\\n          @type=\\\"primary\\\"\\n          @size=\\\"small\\\"\\n          @text=\\\"Open\\\"\\n          @onClick={{fn this.handleOpenTask inboxAssignment.assignment}}\\n          @iconName=\\\"arrow_forward\\\"\\n          @isIconAfterText={{true}}\\n          disabled={{(is-layout-editor)}}\\n          class=\\\"c-feature-inbox-doing-page__button\\\"\\n          data-test-feature-inbox-doing-page-row-open-record={{inboxAssignment.assignment.id}}\\n        />\\n      </RowColumn>\\n    </Shared::BetaTable>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/inbox/components/doing-page/template.hbs' });\n","import type InboxAssignmentModel from 'client/data/models/inbox-assignment';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type { TaskWithRecord } from 'client/features/inbox/services/feature';\nimport type InboxState from 'client/features/inbox/state';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class InboxNotificationBarComponent extends Component {\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n  @service('feature/workspace') private workspaceFeature: WorkspaceFeatureService;\n\n  @service('feature/inbox/state') public inboxState: InboxState;\n\n  @tracked private currentInboxAssignment: InboxAssignmentModel | null = null;\n  @tracked private taskWithRecord: TaskWithRecord | null = null;\n\n  constructor(owner: unknown, args: unknown) {\n    super(owner, args);\n\n    void this.inboxFeature.loadState();\n  }\n\n  get currentAssignment() {\n    return this.currentInboxAssignment || this.inboxState.currentInboxAssignment;\n  }\n\n  get currentInbox() {\n    return this.currentAssignment?.inbox;\n  }\n\n  get shouldDisplay() {\n    if (!this.currentAssignment) {\n      return false;\n    }\n\n    return this.workspaceFeature.shouldDisplayInboxNotificationBarForWorkspace(\n      this.currentAssignment.inbox.id,\n    );\n  }\n\n  get redirectionData() {\n    return this.inboxFeature.getRedirectionRouteAndParameters(this.currentAssignment);\n  }\n\n  get recordDisplayName() {\n    return this.inboxFeature.getDisplayNameFromRecord(this.taskWithRecord);\n  }\n\n  @action\n  async loadRecord() {\n    if (!this.currentAssignment) {\n      return;\n    }\n    const record = await this.inboxFeature.fetchSingleAssignmentRecord(this.currentAssignment);\n    this.taskWithRecord = { assignment: this.currentAssignment, record };\n  }\n\n  @action\n  handleExit() {\n    return this.inboxFeature.exitInbox();\n  }\n\n  @action\n  async handleNextTicket() {\n    await this.inboxFeature.startProcessingInbox(this.currentInbox);\n    // we set the current inbox assignment to null\n    // to avoid trouble if the assignment has been set to done in another session\n    this.currentInboxAssignment = null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.shouldDisplay}}\\n  <div\\n    class=\\\"c-feature-inbox-notification-bar\\\"\\n    data-test-feature-inbox-notification-bar\\n    ...attributes\\n    {{did-insert this.loadRecord}}\\n    {{did-update this.loadRecord this.inboxState.currentInboxAssignment}}\\n  >\\n    <header class=\\\"l-inbox-notification-bar-header\\\" data-test-feature-inbox-notification-bar-header>\\n      <span class=\\\"c-feature-inbox-notification-bar__prefix-title\\\">Inboxes</span>\\n      <span class=\\\"c-feature-inbox-notification-bar__title-separator\\\">/</span>\\n      <span class=\\\"c-feature-inbox-notification-bar__title\\\">\\n        {{this.currentInbox.icon}}\\n        {{this.currentInbox.name}}\\n      </span>\\n      {{#if this.taskWithRecord}}\\n        <span class=\\\"c-feature-inbox-notification-bar__title-separator\\\">/</span>\\n        <Shared::Navigation::Link\\n          @routeName={{this.redirectionData.routeName}}\\n          @routeParameters={{this.redirectionData.routeParameters}}\\n          @text={{this.recordDisplayName}}\\n          @type=\\\"custom\\\"\\n          @size=\\\"medium\\\"\\n          class=\\\"c-feature-inbox-notification-bar__record-title\\\"\\n          data-test-feature-inbox-notification-bar-record\\n        />\\n      {{/if}}\\n    </header>\\n\\n    <div class=\\\"l-inbox-notification-bar-actions\\\">\\n      <Shared::Button::BetaButton\\n        @type=\\\"ghost-contrast\\\"\\n        @size=\\\"small\\\"\\n        @text=\\\"Exit\\\"\\n        @async={{false}}\\n        @action={{this.handleExit}}\\n        @shouldEnablePropagation={{true}}\\n        data-test-feature-inbox-notification-bar-exit\\n      />\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary-contrast\\\"\\n        @size=\\\"small\\\"\\n        @text=\\\"Next ticket\\\"\\n        @isIconAfterText={{true}}\\n        @iconName=\\\"arrow_forward\\\"\\n        @async={{false}}\\n        @action={{this.handleNextTicket}}\\n        @shouldEnablePropagation={{true}}\\n        data-test-feature-inbox-notification-bar-next\\n      />\\n    </div>\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/features/inbox/components/notification-bar/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"inbox\\\"\\n  @features={{array\\n    \\'Display only relevant records to your operators\\'\\n    \\'Remove double work in your operators workflows\\'\\n    \\'Integrate seamlessly with Collaboration features\\'\\n  }}\\n  @titlePrefix=\\\"Automatically route business entries to operators thanks to\\\"\\n  @titleHighlight=\\\"Inboxes\\\"\\n  @imageName=\\\"inbox\\\"\\n  @featureCallbackRoute=\\\"project.rendering.collaboration\\\"\\n  @featureCallback={{@featureCallback}}\\n/>\\n', { moduleName: 'client/features/inbox/components/preview/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-inbox-settings-auto-unassign\\\"\\n  data-test-feature-inbox-settings-auto-unassign\\n  ...attributes\\n>\\n  <Shared::BetaLabel\\n    @label=\\\"Enable auto-unassignment\\\"\\n    @for=\\\"inbox-auto-unassign\\\"\\n    @position=\\\"right\\\"\\n    class=\\\"c-feature-inbox-settings-auto-unassign__enabled\\\"\\n    data-test-feature-inbox-settings-auto-unassign-label\\n  >\\n    <Shared::Form::Toggle\\n      @value={{@isAutoUnassignEnabled}}\\n      @onChange={{@handleIsAutoUnassignEnabledChange}}\\n      name=\\\"inbox-auto-unassign\\\"\\n      data-test-feature-inbox-settings-auto-unassign-enabled\\n    />\\n  </Shared::BetaLabel>\\n  {{#if @isAutoUnassignEnabled}}\\n    <Shared::BetaLabel\\n      @label=\\\"Unassign after\\\"\\n      @for=\\\"inbox-auto-unassign-after\\\"\\n      class=\\\"c-feature-inbox-settings-auto-unassign__amount\\\"\\n      data-test-feature-inbox-settings-auto-unassign-after\\n    >\\n      <div class=\\\"c-feature-inbox-settings-auto-unassign__inputs\\\">\\n        <Shared::BetaInput\\n          @value={{one-way @unassignAfterDuration}}\\n          @onChange={{@onUnassignAfterDurationChange}}\\n          @type=\\\"number\\\"\\n          @min={{1}}\\n          @max={{99}}\\n          @step={{1}}\\n          name=\\\"inbox-auto-unassign-after\\\"\\n          class=\\\"c-feature-inbox-settings-auto-unassign__auto-unassign-after\\\"\\n          data-test-feature-inbox-settings-auto-unassign-after-value\\n        />\\n        <Shared::BetaSelect\\n          @value={{one-way @unassignAfterUnit}}\\n          @onChange={{@onUnassignAfterUnitChange}}\\n          @options={{@autoUnassignAfterOptions}}\\n          name=\\\"inbox-auto-unassign-after-unit\\\"\\n          class=\\\"c-feature-inbox-settings-auto-unassign__auto-unassign-after-unit\\\"\\n          data-test-feature-inbox-settings-auto-unassign-after-unit\\n        />\\n      </div>\\n    </Shared::BetaLabel>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/inbox/components/settings/auto-unassign/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type InboxModel from 'client/data/models/inbox';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { InboxDispatchRuleEnum, InboxDispatchRuleLabel } from 'client/data/models/inbox';\nimport {\n  InboxAutoUnassignUnitEnum,\n  type InboxAutoUnassignmentConfigurationsAttributes,\n} from 'client/data/models/inbox-auto-unassignment-configurations';\n\ninterface SettingsArgs {\n  inbox: InboxModel;\n}\n\nexport default class InboxSettingsComponent extends Component<SettingsArgs> {\n  @service private currentUser: CurrentUserService;\n  @service private router: RouterService;\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n\n  @tracked public icon: string;\n  @tracked public name: string;\n  @tracked public tasksLimit: number;\n  @tracked public unassignAfterDuration:\n    | InboxAutoUnassignmentConfigurationsAttributes['duration']\n    | null;\n\n  @tracked public unassignAfterUnit: InboxAutoUnassignmentConfigurationsAttributes['unit'] | null;\n  @tracked public canUsersReassign: boolean;\n\n  constructor(owner: unknown, args: SettingsArgs) {\n    super(owner, args);\n\n    this.handleEditMode();\n    this.handleUpdateInbox();\n  }\n\n  get isAutoUnassignEnabled() {\n    return this.unassignAfter !== null;\n  }\n\n  get dispatchRuleLabel() {\n    return InboxDispatchRuleLabel[this.args.inbox.dispatchRule];\n  }\n\n  get isRandomDispatchRule() {\n    return this.args.inbox.dispatchRule === InboxDispatchRuleEnum.Random;\n  }\n\n  get autoUnassignAfterOptions() {\n    return Object.values(InboxAutoUnassignUnitEnum);\n  }\n\n  get unassignAfter() {\n    return this.unassignAfterUnit\n      ? { duration: this.unassignAfterDuration, unit: this.unassignAfterUnit }\n      : null;\n  }\n\n  set unassignAfter(value: { duration: number; unit: InboxAutoUnassignUnitEnum } | null) {\n    this.unassignAfterDuration = value?.duration ?? null;\n    this.unassignAfterUnit = value?.unit ?? null;\n  }\n\n  get isTasksLimitEnabled() {\n    return this.tasksLimit !== null;\n  }\n\n  get isSaveDisabled() {\n    return (\n      this.icon === this.args.inbox.icon\n      && this.name === this.args.inbox.name\n      && this.args.inbox.unassignAfter?.duration === this.unassignAfter?.duration\n      && this.args.inbox.unassignAfter?.unit === this.unassignAfter?.unit\n      && this.args.inbox.tasksLimit === this.tasksLimit\n      && this.args.inbox.canUsersReassign === this.canUsersReassign\n    );\n  }\n\n  get inboxType() {\n    return this.inboxFeature\n      .formattedInboxTypes()\n      .find((inboxType) => inboxType.value === this.args.inbox.type).name;\n  }\n\n  @action\n  handleEditMode() {\n    if (!this.currentUser.editMode) {\n      void this.router.transitionTo('project.rendering.inbox.view', this.args.inbox.id);\n    }\n  }\n\n  @action\n  handleCanUsersReassignChange(canUsersReassign: boolean) {\n    this.canUsersReassign = canUsersReassign;\n  }\n\n  @action\n  handleIsAutoUnassignEnabledChange(isAutoUnassignEnabled: boolean) {\n    this.unassignAfter = isAutoUnassignEnabled\n      ? {\n          duration: 1,\n          unit: InboxAutoUnassignUnitEnum.Day,\n        }\n      : null;\n  }\n\n  @action\n  handleTasksLimitEnabledChange(isMaxTasksEnabled: boolean) {\n    this.tasksLimit = isMaxTasksEnabled ? 5 : null;\n  }\n\n  @action\n  handleUpdateInbox() {\n    this.icon = this.args.inbox.icon;\n    this.name = this.args.inbox.name;\n    this.unassignAfter = this.args.inbox.unassignAfter\n      ? {\n          duration: this.args.inbox.unassignAfter.duration,\n          unit: this.args.inbox.unassignAfter.unit,\n        }\n      : null;\n    this.tasksLimit = this.args.inbox.tasksLimit;\n    this.canUsersReassign = this.args.inbox.canUsersReassign;\n  }\n\n  @action\n  async handleSave() {\n    await this.inboxFeature.updateInbox(this.args.inbox, {\n      icon: this.icon,\n      name: this.name,\n      unassignAfter: this.unassignAfter,\n      tasksLimit: this.tasksLimit,\n      canUsersReassign: this.canUsersReassign,\n    });\n  }\n\n  @action\n  handleDiscard() {\n    this.handleUpdateInbox();\n  }\n\n  @action\n  async handleDelete() {\n    await this.inboxFeature.deleteInbox(this.args.inbox);\n  }\n\n  @action\n  handleEditDispatchRule() {\n    this.inboxFeature.handleOpenEditDispatchRuleModal(this.args.inbox);\n  }\n}\n","import type { SortingOrderEnum } from 'client/data/models/collection';\nimport type InboxModel from 'client/data/models/inbox';\nimport type InboxSortingFieldFragment from 'client/data/models/inbox-sorting-field';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { InboxDispatchRuleEnum } from 'client/data/models/inbox';\n\ninterface EditDispatchRuleModalArgs {\n  data: {\n    inbox: InboxModel;\n  };\n}\n\nexport default class InboxSettingsEditDispatchRuleModalComponent extends Component<EditDispatchRuleModalArgs> {\n  @service('feature/inbox') private readonly inboxFeature: InboxFeatureService;\n  @service('feature/modal') private readonly modalFeature: ModalFeatureService;\n\n  @tracked isSaving = false;\n\n  constructor(owner: unknown, args: EditDispatchRuleModalArgs) {\n    super(owner, args);\n\n    if (\n      this.inbox.dispatchRule === InboxDispatchRuleEnum.BasedOnSortingFields\n      && this.inbox.sortingFields.length === 0\n    ) {\n      this.inbox.sortingFields.pushObject(\n        this.inboxFeature.createInboxSortingField({ fieldName: null, order: null }),\n      );\n    }\n  }\n\n  get inbox(): InboxModel {\n    return this.args.data.inbox;\n  }\n\n  get dispatchRule(): InboxDispatchRuleEnum {\n    return this.inbox.dispatchRule;\n  }\n\n  get sortingFields(): InboxSortingFieldFragment[] {\n    return this.inbox.sortingFields.toArray();\n  }\n\n  private get areSortingFieldsValid() {\n    return (\n      this.inbox.sortingFields.length >= 1\n      && this.inbox.sortingFields.every(\n        (sortingField) => !!sortingField.fieldName && !!sortingField.order,\n      )\n    );\n  }\n\n  get isValid(): boolean {\n    return Boolean(\n      this.dispatchRule === InboxDispatchRuleEnum.Random ? true : this.areSortingFieldsValid,\n    );\n  }\n\n  get hasChanges() {\n    return this.inbox.hasDirtyAttributes;\n  }\n\n  get isSaveDisabled(): boolean {\n    return !this.isValid || !this.hasChanges || this.isSaving;\n  }\n\n  @action\n  handleDispatchRuleChange(newValue: InboxDispatchRuleEnum) {\n    this.inbox.dispatchRule = newValue;\n    if (newValue === InboxDispatchRuleEnum.Random) {\n      this.inbox.sortingFields.clear();\n    } else if (this.inbox.sortingFields.length === 0) {\n      this.inbox.sortingFields.pushObject(\n        this.inboxFeature.createInboxSortingField({ fieldName: null, order: null }),\n      );\n    }\n  }\n\n  @action\n  handleSortingFieldChange(sortingField: InboxSortingFieldFragment, newValue: string) {\n    sortingField.fieldName = newValue;\n  }\n\n  @action\n  handleSortingOrderChange(sortingField: InboxSortingFieldFragment, newValue: SortingOrderEnum) {\n    sortingField.order = newValue;\n  }\n\n  @action\n  handleAddSortingField() {\n    this.inbox.sortingFields.pushObject(\n      this.inboxFeature.createInboxSortingField({ fieldName: null, order: null }),\n    );\n  }\n\n  @action\n  handleRemoveSortingField(index: number) {\n    this.inbox.sortingFields.removeAt(index);\n  }\n\n  @action\n  async handleSave() {\n    if (this.isSaveDisabled) {\n      return;\n    }\n\n    this.isSaving = true;\n\n    try {\n      await this.inboxFeature.updateInbox(this.inbox, {});\n      await this.inboxFeature.resetInboxCache(this.inbox);\n\n      this.modalFeature.close();\n    } finally {\n      this.isSaving = false;\n    }\n  }\n\n  @action\n  handleCancel() {\n    this.inbox.rollbackAttributes();\n    this.modalFeature.close();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  class=\\\"c-feature-inbox-settings-edit-dispatch-rule-modal\\\"\\n  @size=\\\"sm\\\"\\n  data-test-feature-inbox-settings-edit-dispatch-rule-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header\\n    @title=\\\"Edit dispatch rule\\\"\\n    data-test-feature-inbox-settings-edit-dispatch-rule-modal-header\\n  />\\n\\n  <Shared::Modal::Body>\\n    <Feature::Inbox::DispatchRuleForm\\n      @collection={{@data.inbox.collection}}\\n      @dispatchRule={{this.dispatchRule}}\\n      @sortingFields={{this.sortingFields}}\\n      @onDispatchRuleChange={{this.handleDispatchRuleChange}}\\n      @onSortingFieldChange={{this.handleSortingFieldChange}}\\n      @onSortingOrderChange={{this.handleSortingOrderChange}}\\n      @onAddSortingField={{this.handleAddSortingField}}\\n      @onRemoveSortingField={{this.handleRemoveSortingField}}\\n      data-test-feature-inbox-settings-edit-dispatch-rule-modal-dispatch-rule\\n    />\\n  </Shared::Modal::Body>\\n\\n  <Shared::Modal::ActionFooter\\n    @confirmText=\\\"Save\\\"\\n    @cancelText=\\\"Cancel\\\"\\n    @onConfirm={{this.handleSave}}\\n    @onCancel={{this.handleCancel}}\\n    @isConfirmDisabled={{this.isSaveDisabled}}\\n    @isConfirmLoading={{this.isSaving}}\\n    data-test-feature-inbox-settings-edit-dispatch-rule-modal-action-footer\\n  />\\n</Shared::Modal>\\n', { moduleName: 'client/features/inbox/components/settings/edit-dispatch-rule-modal/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-inbox-settings-reassignment-from-users\\\"\\n  data-test-feature-inbox-settings-reassignment-from-users\\n  ...attributes\\n>\\n  <Shared::BetaLabel\\n    @label=\\\"Let operators manage assignments\\\"\\n    @for=\\\"inbox-reassignment-from-users\\\"\\n    @position=\\\"right\\\"\\n    class=\\\"c-feature-inbox-settings-reassignment-from-users__enabled\\\"\\n    data-test-feature-inbox-settings-reassignment-from-users-label\\n  >\\n    <:after-label>\\n      <Shared::Feedback::BetaInfoTooltip @tooltipSide=\\\"top\\\">\\n        Toggle off to disable the \\\"Unassign\\\" and \\\"Assign to...\\\" options for Users. Managers and\\n        Admins can always manage assignments.\\n      </Shared::Feedback::BetaInfoTooltip>\\n    </:after-label>\\n    <:default>\\n      <Shared::Form::Toggle\\n        @value={{@canUsersReassign}}\\n        @onChange={{@handleCanUsersReassignChange}}\\n        name=\\\"inbox-reassignment-from-users\\\"\\n        data-test-feature-inbox-settings-reassignment-from-users-toggle\\n      />\\n    </:default>\\n  </Shared::BetaLabel>\\n</div>\\n', { moduleName: 'client/features/inbox/components/settings/reassignment-from-users/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-inbox-settings-tasks-limit\\\"\\n  data-test-feature-inbox-settings-tasks-limit\\n  ...attributes\\n>\\n  <Shared::BetaLabel\\n    @label=\\\"Limit the number of assigned tickets\\\"\\n    @for=\\\"inbox-max-tasks\\\"\\n    @position=\\\"right\\\"\\n    class=\\\"c-feature-inbox-settings-tasks-limit__enabled\\\"\\n    data-test-feature-inbox-settings-tasks-limit-label\\n  >\\n    <Shared::Form::Toggle\\n      @value={{@isTasksLimitEnabled}}\\n      @onChange={{@handleTasksLimitEnabledChange}}\\n      name=\\\"inbox-max-tasks\\\"\\n      data-test-feature-inbox-settings-tasks-limit-enabled\\n    />\\n  </Shared::BetaLabel>\\n  {{#if @isTasksLimitEnabled}}\\n    <Shared::BetaLabel\\n      @label=\\\"Max tickets per operator\\\"\\n      @for=\\\"inbox-max-tasks-number\\\"\\n      class=\\\"c-feature-inbox-settings-tasks-limit__amount\\\"\\n      data-test-feature-inbox-settings-tasks-limit-amount-label\\n    >\\n      <Shared::BetaInput\\n        @value={{one-way @tasksLimit}}\\n        @onChange={{@onTasksLimitChange}}\\n        @type=\\\"number\\\"\\n        @min={{1}}\\n        @max={{99}}\\n        @step={{1}}\\n        name=\\\"inbox-max-tasks-number\\\"\\n        data-test-feature-inbox-settings-tasks-limit-amount\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/inbox/components/settings/tasks-limit/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout\\n  class=\\\"c-feature-inbox-settings\\\"\\n  data-test-feature-inbox-settings\\n  {{did-update this.handleUpdateInbox @inbox.id}}\\n  {{did-update this.handleEditMode this.currentUser.editMode}}\\n  ...attributes\\n>\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"General settings\\\"\\n    @description=\\\"Manage and configure your inbox.\\\"\\n    @hasWideGap={{true}}\\n    class=\\\"c-feature-inbox-settings__general\\\"\\n    data-test-feature-inbox-settings-general\\n  >\\n    <:after-title>\\n      <Shared::BetaSettingsLayout::SaveButton\\n        @onSave={{this.handleSave}}\\n        @onDiscard={{this.handleDiscard}}\\n        @isSaveDisabled={{this.isSaveDisabled}}\\n        data-test-feature-inbox-settings-save-button\\n      />\\n    </:after-title>\\n    <:default>\\n      <Shared::BetaLabel\\n        @label=\\\"Inbox icon\\\"\\n        @for=\\\"inbox-icon\\\"\\n        class=\\\"c-feature-inbox-settings__label\\\"\\n        data-test-feature-inbox-settings-icon\\n      >\\n        <Shared::BetaEmojiPicker\\n          @value={{this.icon}}\\n          @onChange={{fn (mut this.icon)}}\\n          name=\\\"inbox-icon\\\"\\n          class=\\\"c-feature-inbox-settings__label\\\"\\n          data-test-feature-inbox-settings-icon-value\\n        />\\n      </Shared::BetaLabel>\\n\\n      <Shared::BetaLabel\\n        @label=\\\"Inbox name\\\"\\n        @for=\\\"inbox-name\\\"\\n        class=\\\"c-feature-inbox-settings__label\\\"\\n        data-test-feature-inbox-settings-name\\n      >\\n        <Shared::BetaInput\\n          @value={{this.name}}\\n          @onChange={{fn (mut this.name)}}\\n          name=\\\"inbox-name\\\"\\n          class=\\\"c-feature-inbox-settings__label\\\"\\n          data-test-feature-inbox-settings-name-value\\n        />\\n      </Shared::BetaLabel>\\n\\n      <Shared::BetaLabel\\n        @label=\\\"Collection\\\"\\n        @for=\\\"inbox-collection\\\"\\n        class=\\\"c-feature-inbox-settings__label\\\"\\n        data-test-feature-inbox-settings-collection\\n      >\\n        <Shared::BetaInput\\n          @value={{@inbox.collection.singularizedDisplayName}}\\n          @disabled={{true}}\\n          name=\\\"inbox-collection\\\"\\n          class=\\\"c-feature-inbox-settings__label\\\"\\n          data-test-feature-inbox-settings-collection-value\\n        />\\n      </Shared::BetaLabel>\\n\\n      <Shared::BetaLabel\\n        @label=\\\"Type\\\"\\n        @for=\\\"inbox-type\\\"\\n        class=\\\"c-feature-inbox-settings__label\\\"\\n        data-test-feature-inbox-settings-type\\n      >\\n        <Shared::BetaInput\\n          @value={{this.inboxType}}\\n          @disabled={{true}}\\n          name=\\\"inbox-type\\\"\\n          class=\\\"c-feature-inbox-settings__label\\\"\\n          data-test-feature-inbox-settings-type-value\\n        />\\n      </Shared::BetaLabel>\\n\\n      {{#if @inbox.segment}}\\n        <Shared::BetaLabel\\n          @label=\\\"Segment\\\"\\n          @for=\\\"inbox-segment\\\"\\n          class=\\\"c-feature-inbox-settings__label\\\"\\n          data-test-feature-inbox-settings-segment\\n        >\\n          <Shared::BetaInput\\n            @value={{@inbox.segment.name}}\\n            @disabled={{true}}\\n            name=\\\"inbox-segment\\\"\\n            class=\\\"c-feature-inbox-settings__label\\\"\\n            data-test-feature-inbox-settings-segment-value\\n          />\\n        </Shared::BetaLabel>\\n      {{/if}}\\n\\n      <Shared::BetaLabel\\n        @label=\\\"Dispatch rule\\\"\\n        @for=\\\"inbox-dispatch-rule\\\"\\n        class=\\\"c-feature-inbox-settings__label\\\"\\n        data-test-feature-inbox-settings-dispatch-rule\\n      >\\n        <div class=\\\"c-feature-inbox-settings__dispatch-rule-container\\\">\\n          <Shared::BetaInput\\n            @value={{this.dispatchRuleLabel}}\\n            @disabled={{true}}\\n            name=\\\"inbox-dispatch-rule\\\"\\n            class=\\\"c-feature-inbox-settings__dispatch-rule-input\\\"\\n            data-test-feature-inbox-settings-dispatch-rule-value\\n          />\\n          <Shared::Button\\n            @type=\\\"ghost\\\"\\n            @text=\\\"Edit\\\"\\n            @size=\\\"large\\\"\\n            @onClick={{this.handleEditDispatchRule}}\\n            data-test-feature-inbox-settings-edit-dispatch-rule-button\\n          />\\n        </div>\\n      </Shared::BetaLabel>\\n\\n      {{#unless this.isRandomDispatchRule}}\\n        <Shared::BetaLabel\\n          @label=\\\"Sorting {{word-pluralize \\'field\\' @inbox.sortingFields.length}}\\\"\\n          @for=\\\"inbox-sorting-field\\\"\\n          class=\\\"c-feature-inbox-settings__label\\\"\\n          data-test-feature-inbox-settings-sorting-field-label\\n        >\\n          {{#each @inbox.sortingFields as |sortingField|}}\\n            <Shared::BetaInput\\n              @value={{sortingField.field.displayName}}\\n              @disabled={{true}}\\n              @hasSuffixPadding={{true}}\\n              name=\\\"inbox-sorting-field\\\"\\n              class=\\\"c-feature-inbox-settings__sorting-field\\\"\\n              data-test-feature-inbox-settings-sorting-field-value={{sortingField.fieldName}}\\n            >\\n              <:input-suffix>\\n                {{#if (eq sortingField.order \\'ascending\\')}}\\n                  Asc.\\n                {{else}}\\n                  Desc.\\n                {{/if}}\\n                <Shared::DataDisplay::BetaIcon\\n                  @iconName={{if\\n                    (eq sortingField.order \\'ascending\\')\\n                    \\'arrow_upward\\'\\n                    \\'arrow_downward\\'\\n                  }}\\n                  @size=\\\"custom\\\"\\n                />\\n              </:input-suffix>\\n            </Shared::BetaInput>\\n          {{/each}}\\n        </Shared::BetaLabel>\\n      {{/unless}}\\n\\n      <Feature::Inbox::Settings::ReassignmentFromUsers\\n        @canUsersReassign={{this.canUsersReassign}}\\n        @handleCanUsersReassignChange={{this.handleCanUsersReassignChange}}\\n      />\\n\\n      <Feature::Inbox::Settings::AutoUnassign\\n        @isAutoUnassignEnabled={{this.isAutoUnassignEnabled}}\\n        @handleIsAutoUnassignEnabledChange={{this.handleIsAutoUnassignEnabledChange}}\\n        @unassignAfterDuration={{this.unassignAfterDuration}}\\n        @unassignAfterUnit={{this.unassignAfterUnit}}\\n        @autoUnassignAfterOptions={{this.autoUnassignAfterOptions}}\\n        @onUnassignAfterDurationChange={{fn (mut this.unassignAfterDuration)}}\\n        @onUnassignAfterUnitChange={{fn (mut this.unassignAfterUnit)}}\\n      />\\n\\n      <Feature::Inbox::Settings::TasksLimit\\n        @isTasksLimitEnabled={{this.isTasksLimitEnabled}}\\n        @handleTasksLimitEnabledChange={{this.handleTasksLimitEnabledChange}}\\n        @tasksLimit={{this.tasksLimit}}\\n        @onTasksLimitChange={{fn (mut this.tasksLimit)}}\\n      />\\n    </:default>\\n  </Shared::BetaSettingsLayout::Section>\\n\\n  <Shared::BetaSettingsLayout::DeleteSection\\n    @title=\\\"Delete inbox\\\"\\n    @entityName={{@inbox.name}}\\n    @onDelete={{this.handleDelete}}\\n    @warningMessage=\\\"You are about to delete the “{{@inbox.name}}” inbox.\\\"\\n    data-test-feature-inbox-settings-delete-section\\n  />\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/features/inbox/components/settings/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type InboxModel from 'client/data/models/inbox';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\ninterface SideMenuInboxItemArgs {\n  item: InboxModel;\n  groupName: string;\n}\n\nexport default class InboxSideMenuItemComponent extends Component<SideMenuInboxItemArgs> {\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n  @service('event-bus') private eventBus: EventBusService;\n  @service private router: RouterService;\n\n  @tracked private promiseNumberOfToDoTasks: Promise<number | string> | null = null;\n  @tracked private promiseNumberOfDoingTasks: Promise<number | string> | null = null;\n\n  @service public currentUser: CurrentUserService;\n  @tracked public isFoldedByDefault: boolean;\n\n  constructor(owner: unknown, args: SideMenuInboxItemArgs) {\n    super(owner, args);\n\n    this.eventBus.on(EventBusEventsEnum.InboxAssignmentUpdated, this.handleInboxAssignmentUpdate);\n    this.isFoldedByDefault = this.inboxFeature.currentInboxId !== this.args.item.id;\n  }\n\n  get canAccessInbox() {\n    return this.inboxFeature.canAccessInbox(this.args.item);\n  }\n\n  get numberOfToDoTasks() {\n    if (this.promiseNumberOfToDoTasks === null) {\n      return this.getNumberOfToDoTasks();\n    }\n    return this.promiseNumberOfToDoTasks;\n  }\n\n  set numberOfToDoTasks(value) {\n    this.promiseNumberOfToDoTasks = value;\n  }\n\n  get numberOfDoingTasks() {\n    if (this.promiseNumberOfDoingTasks === null) {\n      return this.getNumberOfDoingTasks();\n    }\n    return this.promiseNumberOfDoingTasks;\n  }\n\n  set numberOfDoingTasks(value) {\n    this.promiseNumberOfDoingTasks = value;\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n\n    this.eventBus.off(EventBusEventsEnum.InboxAssignmentUpdated, this.handleInboxAssignmentUpdate);\n  }\n\n  get canAccessBacklog() {\n    return this.inboxFeature.canAccessBacklog();\n  }\n\n  @action\n  handleFoldInbox(isFolded: boolean) {\n    this.isFoldedByDefault = isFolded;\n  }\n\n  @action\n  async handleInboxAssignmentUpdate({ inbox }: { inbox: InboxModel }) {\n    if (!this.canAccessInbox) return;\n    if (inbox !== this.args.item || this.promiseNumberOfDoingTasks === null) return;\n\n    await Promise.allSettled([this.getNumberOfToDoTasks(), this.getNumberOfDoingTasks()]);\n  }\n\n  public get isActive() {\n    return (\n      this.router.currentRoute?.parent?.params?.inbox_id === this.args.item.id\n      && (this.router.currentRouteName.endsWith('.inbox.view.settings')\n        || (this.currentUser.editMode && this.router.currentRouteName.includes('.inbox.view')))\n    );\n  }\n\n  private async getNumberOfToDoTasks() {\n    return this.getNumberOfTasks('promiseNumberOfToDoTasks', (inbox) =>\n      this.inboxFeature.getNumberOfToDoTasks(inbox),\n    );\n  }\n\n  private async getNumberOfDoingTasks() {\n    return this.getNumberOfTasks('promiseNumberOfDoingTasks', (inbox) =>\n      this.inboxFeature.getNumberOfDoingTasks(inbox),\n    );\n  }\n\n  private async getNumberOfTasks(\n    property: 'promiseNumberOfToDoTasks' | 'promiseNumberOfDoingTasks',\n    computeNumberOfTasks: (inbox: InboxModel) => Promise<number | string>,\n  ) {\n    const promise = computeNumberOfTasks(this.args.item);\n    await waitForNextRunLoop();\n    this[property] = promise;\n    return promise;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.canAccessInbox}}\\n  <Navigation::BetaSideMenu::Item\\n    @isDraggable={{default-to @isDraggable true}}\\n    @item={{@item}}\\n    @name={{@item.name}}\\n    @icon={{@item.icon}}\\n    @route={{if\\n      this.currentUser.editMode\\n      \\'project.rendering.inbox.view.settings\\'\\n      \\'project.rendering.inbox.view\\'\\n    }}\\n    @routeParameters={{@item.id}}\\n    @onFoldItem={{this.handleFoldInbox}}\\n    @onClick={{fn this.handleFoldInbox false}}\\n    @isVisible={{@isVisible}}\\n    @onClickSettings={{action-link-to \\'project.rendering.inbox.view.settings\\' @item.id}}\\n    @onClickVisibility={{@onClickVisibility}}\\n    @isFoldedByDefault={{this.isFoldedByDefault}}\\n    @isFoldable={{(not (is-layout-editor))}}\\n    @isEditable={{true}}\\n    @isActive={{this.isActive}}\\n    class=\\\"c-feature-inbox-side-menu-inbox-item\\\"\\n    data-test-feature-inbox-side-menu-item={{@item.name}}\\n    ...attributes\\n  >\\n    {{#unless (is-layout-editor)}}\\n      <Navigation::BetaSideMenu::Item\\n        class=\\\"c-feature-inbox-side-menu-item__sub-item\\\"\\n        @name=\\\"To do\\\"\\n        @route=\\\"project.rendering.inbox.view.todo\\\"\\n        @routeParameters={{@item.id}}\\n        data-test-feature-inbox-side-menu-item-todo={{@item.name}}\\n        {{will-destroy (fn (mut this.numberOfToDoTasks) null)}}\\n      >\\n        <:content-right as |isLinkActive|>\\n          <Shared::DataDisplay::NumberBadge\\n            @count={{this.numberOfToDoTasks}}\\n            @shouldNotify={{true}}\\n            @isActive={{isLinkActive}}\\n            data-test-feature-inbox-side-menu-item-todo-count={{@item.name}}\\n          />\\n        </:content-right>\\n      </Navigation::BetaSideMenu::Item>\\n      <Navigation::BetaSideMenu::Item\\n        class=\\\"c-feature-inbox-side-menu-item__sub-item\\\"\\n        @name=\\\"Doing\\\"\\n        @route=\\\"project.rendering.inbox.view.doing\\\"\\n        @routeParameters={{@item.id}}\\n        data-test-feature-inbox-side-menu-item-doing={{@item.name}}\\n        {{will-destroy (fn (mut this.numberOfDoingTasks) null)}}\\n      >\\n        <:content-right as |isLinkActive|>\\n          <Shared::DataDisplay::NumberBadge\\n            @count={{this.numberOfDoingTasks}}\\n            @isActive={{isLinkActive}}\\n            data-test-feature-inbox-side-menu-item-doing-count={{@item.name}}\\n          />\\n        </:content-right>\\n      </Navigation::BetaSideMenu::Item>\\n      {{#if this.canAccessBacklog}}\\n        <Navigation::BetaSideMenu::Item\\n          class=\\\"c-feature-inbox-side-menu-item__sub-item\\\"\\n          @name=\\\"Backlog\\\"\\n          @route=\\\"project.rendering.inbox.view.backlog\\\"\\n          @routeParameters={{@item.id}}\\n          data-test-feature-inbox-side-menu-item-backlog={{@item.name}}\\n        />\\n      {{/if}}\\n    {{/unless}}\\n  </Navigation::BetaSideMenu::Item>\\n{{/if}}\\n', { moduleName: 'client/features/inbox/components/side-menu/item/template.hbs' });\n","import type InboxFeatureService from 'client/features/inbox/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport InboxModel from 'client/data/models/inbox';\nimport validateArguments from 'client/decorators/validate';\nimport { InboxEntryPointEnum } from 'client/features/inbox/state';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface InboxStartProcessingButtonComponentArgs {\n  inbox: InboxModel;\n  onStartProcessingFailed: () => void;\n}\n\n@validateArguments\nexport default class InboxStartProcessingButtonComponent extends Component<InboxStartProcessingButtonComponentArgs> {\n  static propTypes = {\n    inbox: PropTypes.instanceOf(InboxModel).isRequired,\n    onStartProcessingFailed: PropTypes.func.isRequired,\n  };\n\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n\n  @action\n  async handleStartProcessing() {\n    this.inboxFeature.setEntryPoint(InboxEntryPointEnum.Inbox);\n    const hasAssignmentBeenCreated = await this.inboxFeature.startProcessingInbox(this.args.inbox);\n    if (!hasAssignmentBeenCreated) {\n      this.args.onStartProcessingFailed();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let (generate-guid) as |elementId|}}\\n  <Shared::Button\\n    @type=\\\"primary\\\"\\n    @size=\\\"medium\\\"\\n    @text=\\\"Start processing\\\"\\n    @iconName=\\\"play_arrow\\\"\\n    @isIconAfterText={{true}}\\n    @onClick={{this.handleStartProcessing}}\\n    id={{elementId}}\\n    disabled={{(is-layout-editor)}}\\n    data-test-feature-inbox-start-processing-button\\n    ...attributes\\n  />\\n  {{#if (is-layout-editor)}}\\n    <Shared::Feedback::BetaTooltip\\n      @targetId={{elementId}}\\n      @position=\\\"bottom\\\"\\n      @text=\\\"Exit the layout editor mode to start processing tasks.\\\"\\n    />\\n  {{/if}}\\n{{/let}}\\n', { moduleName: 'client/features/inbox/components/start-processing-button/template.hbs' });\n","import type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport InboxModel from 'client/data/models/inbox';\nimport validateArguments from 'client/decorators/validate';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface InboxToDoPageComponentArgs {\n  inbox: InboxModel;\n}\n\n@validateArguments\nexport default class InboxToDoPageComponent extends Component<InboxToDoPageComponentArgs> {\n  static propTypes = {\n    inbox: PropTypes.instanceOf(InboxModel).isRequired,\n  };\n\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n  @service('shared/state/user-preference') public userPreferenceState: UserPreferenceState;\n\n  @tracked public numberOfToDoTasks: number | string | null = null;\n\n  constructor(owner: unknown, args: InboxToDoPageComponentArgs) {\n    super(owner, args);\n\n    // eslint-disable-next-line no-void\n    void this.getNumberOfToDoTasks();\n  }\n\n  get isLoading() {\n    return this.numberOfToDoTasks === null;\n  }\n\n  @action\n  async getNumberOfToDoTasks() {\n    this.numberOfToDoTasks = null;\n    // We cannot update a tracked property twice in a same run loop so we need to wait for the next one\n    await waitForNextRunLoop();\n    this.numberOfToDoTasks = await this.inboxFeature.getNumberOfToDoTasks(this.args.inbox);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-inbox-to-do-page\\\"\\n  data-test-feature-inbox-to-do-page\\n  ...attributes\\n  {{did-update this.getNumberOfToDoTasks @inbox}}\\n>\\n  {{#if this.isLoading}}\\n    <Shared::Layout::LoadingData\\n      class=\\\"c-feature-inbox-to-do-page\\\"\\n      data-test-feature-inbox-to-do-page-loader\\n    />\\n  {{else if this.numberOfToDoTasks}}\\n    <Shared::Layout::FullPageTitleDescription\\n      @title={{@inbox.nameWithIcon}}\\n      @message=\\\"To begin processing these records, click the button below.\\\"\\n    />\\n\\n    <Feature::Inbox::StartProcessingButton\\n      @inbox={{@inbox}}\\n      @onStartProcessingFailed={{this.getNumberOfToDoTasks}}\\n    />\\n  {{else}}\\n    <img\\n      src={{if\\n        this.userPreferenceState.isDarkTheme\\n        \\'/img/collaboration/inbox/tasks-done-dark.svg\\'\\n        \\'/img/collaboration/inbox/tasks-done-light.svg\\'\\n      }}\\n      alt=\\\"Tasks done\\\"\\n      class=\\\"c-feature-inbox-to-do-page__done-icon\\\"\\n    />\\n    <Shared::Layout::FullPageTitleDescription\\n      @title=\\\"Great job!\\\"\\n      @message=\\\"Everything has been processed.\\\"\\n      class=\\\"c-feature-inbox-to-do-page__empty-state\\\"\\n      data-test-feature-inbox-to-do-page-done\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/inbox/components/to-do-page/template.hbs' });\n","import type InboxModel from 'client/data/models/inbox';\n\nimport { AccessForbiddenError, NotFoundError, WrappedError } from 'client/utils/errors';\n\nexport class InboxNoRecordsToTreatError extends Error {\n  constructor() {\n    super('No records to treat');\n    this.name = 'InboxNoRecordsToTreatError';\n  }\n}\n\nexport class InboxAccessForbiddenError extends AccessForbiddenError {\n  public readonly modelName = 'inbox';\n\n  constructor(inbox: InboxModel) {\n    super(`Cannot access inbox \"${inbox.name}\", you don't have the right permissions to.`);\n\n    this.name = 'InboxAccessForbiddenError';\n  }\n}\n\nexport class InboxNotFoundError extends NotFoundError {\n  constructor() {\n    super('Inbox');\n\n    this.name = 'InboxNotFoundError';\n  }\n}\n\nexport class ConflictInboxAssignmentCreationError extends Error {\n  constructor() {\n    super('A task already exists for this step');\n\n    this.name = 'ConflictInboxAssignmentCreationError';\n  }\n}\n\nexport class UnknownInboxAssignmentCreationError extends WrappedError {\n  constructor(cause: Error) {\n    super(cause, cause?.message);\n\n    this.name = 'UnknownInboxAssignmentCreationError';\n  }\n}\n\nexport class InboxAssignmentLimitTasksReachedError extends Error {\n  constructor() {\n    super('The limit of tasks for this inbox has been reached');\n\n    this.name = 'InboxAssignmentLimitTasksReachedError';\n  }\n}\n\nexport class InboxAssignmentClosedNotInSegmentError extends Error {\n  constructor() {\n    super('Inbox assignment was closed because the record is no longer in the segment.');\n\n    this.name = 'InboxAssignmentClosedNotInSegmentError';\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type ActionApprovalModel from 'client/data/models/action-approval';\nimport type CollectionModel from 'client/data/models/collection';\nimport type { InboxInterface } from 'client/data/models/inbox';\nimport type InboxModel from 'client/data/models/inbox';\nimport type InboxAssignmentModel from 'client/data/models/inbox-assignment';\nimport type { InboxSortingFieldAttributes } from 'client/data/models/inbox-sorting-field';\nimport type SegmentModel from 'client/data/models/segment';\nimport type UserModel from 'client/data/models/user';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type WorkflowRunModel from 'client/data/models/workflow-run';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type { FiltersWithAssignees } from 'client/features/inbox/components/backlog/component';\nimport type InboxBacklogTasksFetcherInternalBusinessService from 'client/features/inbox/services/internal-business/backlog-tasks-fetcher';\nimport type InboxManagerInternalBusinessService from 'client/features/inbox/services/internal-business/inbox-manager';\nimport type InboxTasksFetcherInternalBusinessService from 'client/features/inbox/services/internal-business/tasks-fetcher';\nimport type { TaskWithRecord as InboxAssignmentWithRecord } from 'client/features/inbox/services/internal-business/tasks-fetcher';\nimport type InboxWorkflowInternalFeatureService from 'client/features/inbox/services/internal-feature/workflow';\nimport type InboxState from 'client/features/inbox/state';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type SegmentFeatureService from 'client/features/segment/services/feature';\nimport type UserFeatureService from 'client/features/user/services/feature';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type RouteHistoryService from 'client/legacy/services/route-history';\nimport type LayoutState from 'client/shared/states/layout';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { FetchAgentError } from 'client/utils/errors';\nimport type { AbilitiesService } from 'ember-can';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport { SortingOrderEnum } from 'client/data/models/collection';\nimport { FolderTypeEnum } from 'client/data/models/folder-child';\nimport { InboxTypeEnum } from 'client/data/models/inbox';\nimport { InboxAssignmentStateEnum } from 'client/data/models/inbox-assignment';\nimport {\n  ConflictInboxAssignmentCreationError,\n  InboxAssignmentLimitTasksReachedError,\n  InboxNoRecordsToTreatError,\n  UnknownInboxAssignmentCreationError,\n} from 'client/features/inbox/errors';\nimport {\n  INBOX_ASSIGNMENT_SORT_BY,\n  type InboxAssignmentFilters,\n  type InboxAssignmentSort,\n  type SingleInboxAssignmentFilters,\n} from 'client/features/inbox/services/internal-business/backlog-tasks-fetcher';\nimport {\n  NUMBER_OF_RECORDS_PER_PAGE_BACKLOG,\n  NUMBER_OF_TO_DO_TASKS_TO_FETCH,\n} from 'client/features/inbox/services/internal-business/tasks-fetcher';\nimport { InboxEntryPointEnum } from 'client/features/inbox/state';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { WorkflowRunNotFoundError } from 'client/features/workflow/errors';\nimport {\n  EventBusClientRecordEventsEnum,\n  EventBusEventsEnum,\n} from 'client/legacy/services/event-bus';\nimport asyncFilter from 'client/utils/async-filter';\nimport { getFirstErrorStatus, is404Error } from 'client/utils/ember-error-util';\nimport { CountDeactivatedError } from 'client/utils/errors/collection-errors';\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\nimport removeEmptyValuesFromObject from 'client/utils/remote-empty-values-from-object';\nimport { getRouteInfo, isExitingTargetRoute } from 'client/utils/route-utils';\n\ntype CurrentInboxAssignmentSessionStorageInfo = {\n  inboxId: string;\n  inboxAssignmentId: string;\n};\n\nexport type InboxBacklogQueryParams = {\n  sort?: string;\n  states?: (InboxAssignmentStateEnum | `${InboxAssignmentStateEnum}`)[] | string;\n  startedProcessingAtAfter?: string;\n  startedProcessingAtBefore?: string;\n  assignees?: string[] | string;\n  unassigned?: boolean;\n  page?: string;\n};\n\n// We need to have a class to track nested properties of assignment and record (used in backlog)\n// This is required because we have an array of these objects and we need to track changes\nexport class TaskWithRecord {\n  @tracked assignment: InboxAssignmentModel;\n  @tracked record: ClientRecordModel;\n\n  constructor(assignment: InboxAssignmentModel, record: ClientRecordModel) {\n    this.assignment = assignment;\n    this.record = record;\n  }\n}\n\nexport default class InboxFeatureService extends Service {\n  @service('feature/inbox/state') private inboxState: InboxState;\n  @service('feature/inbox/internal-business/tasks-fetcher')\n  private inboxTasksFetcher: InboxTasksFetcherInternalBusinessService;\n\n  @service('feature/inbox/internal-business/backlog-tasks-fetcher')\n  private backlogTasksFetcher: InboxBacklogTasksFetcherInternalBusinessService;\n\n  @service('feature/inbox/internal-feature/workflow')\n  private inboxWorkflowFeature: InboxWorkflowInternalFeatureService;\n\n  @service('feature/modal')\n  private modalFeature: ModalFeatureService;\n\n  @service('feature/segment')\n  private segmentFeature: SegmentFeatureService;\n\n  @service('feature/workspace')\n  private workspaceFeatureService: WorkspaceFeatureService;\n\n  @service('feature/notification') private notificationFeature: NotificationFeatureService;\n  @service('feature/inbox/internal-business/inbox-manager')\n  private inboxManager: InboxManagerInternalBusinessService;\n\n  @service('feature/workflow') private workflowFeatureService: WorkflowFeatureService;\n\n  @service('shared/state/layout') private layoutState: LayoutState;\n  @service private errorHandler: ErrorHandlerService;\n  @service private eventBus: EventBusService;\n  @service private router: RouterService;\n  @service private lianaSession: LianaSessionService;\n  @service private routeHistory: RouteHistoryService;\n  @service('feature/user') private userFeatureService: UserFeatureService;\n  @service private lianaFeatures: LianaFeaturesService;\n  @service('feature/modal') private modalFeatureService: ModalFeatureService;\n\n  @service('feature/folder') private folderFeatureService: FolderFeatureService;\n\n  @service('abilities') private abilities: AbilitiesService;\n\n  private inboxesIterations = 0;\n\n  constructor(properties?: object) {\n    super(properties);\n\n    this.registerListeners();\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n\n    // Event bus listeners\n    this.eventBus.off(EventBusClientRecordEventsEnum.RecordCreated, this.handleWriteActions);\n    this.eventBus.off(EventBusClientRecordEventsEnum.RecordEdited, this.handleWriteActions);\n    this.eventBus.off(EventBusClientRecordEventsEnum.RecordDeleted, this.handleWriteActions);\n    this.eventBus.off(\n      EventBusClientRecordEventsEnum.RecordRelationshipEdited,\n      this.handleWriteActions,\n    );\n    this.eventBus.off(EventBusEventsEnum.SmartActionApprovalCreated, this.handleWriteActions);\n    this.eventBus.off(EventBusEventsEnum.SmartActionExecuted, this.handleWriteActions);\n    this.eventBus.off(\n      EventBusEventsEnum.SmartActionApprovalApproved,\n      this.handleSmartActionApproval,\n    );\n    this.eventBus.off(\n      EventBusEventsEnum.CloseWorkflowInboxAssignment,\n      this.inboxWorkflowFeature.handleClosingWorkflowInboxAssignment,\n    );\n\n    // Router listeners\n    this.lianaSession.off('invalidationSucceeded', this.sessionInvalidationHandler);\n    this.router.off('routeWillChange', this.handleRouteWillChange);\n    this.router.off('routeDidChange', this.handleRouteDidChange as unknown as () => void);\n  }\n\n  public get currentInboxId() {\n    const routeInfo = getRouteInfo(this.router.currentRoute, 'project.rendering.inbox.view');\n\n    return routeInfo?.params?.inbox_id;\n  }\n\n  public get isMultipleSortingFieldsSupported() {\n    return this.lianaFeatures.isMultipleSortingFieldsAvailable;\n  }\n\n  public formattedInboxTypes() {\n    return [\n      { name: 'Segment-based', value: InboxTypeEnum.Segment },\n      { name: 'Workflow-based', value: InboxTypeEnum.Workflow },\n    ];\n  }\n\n  private registerListeners() {\n    // Event bus listeners\n    this.eventBus.on(EventBusClientRecordEventsEnum.RecordCreated, this.handleWriteActions);\n    this.eventBus.on(EventBusClientRecordEventsEnum.RecordEdited, this.handleWriteActions);\n    this.eventBus.on(EventBusClientRecordEventsEnum.RecordDeleted, this.handleWriteActions);\n    this.eventBus.on(\n      EventBusClientRecordEventsEnum.RecordRelationshipEdited,\n      this.handleWriteActions,\n    );\n    this.eventBus.on(EventBusEventsEnum.SmartActionApprovalCreated, this.handleWriteActions);\n    this.eventBus.on(EventBusEventsEnum.SmartActionExecuted, this.handleWriteActions);\n    this.eventBus.on(\n      EventBusEventsEnum.SmartActionApprovalApproved,\n      this.handleSmartActionApproval,\n    );\n    this.eventBus.on(\n      EventBusEventsEnum.CloseWorkflowInboxAssignment,\n      this.inboxWorkflowFeature.handleClosingWorkflowInboxAssignment,\n    );\n\n    // Router listeners\n    this.lianaSession.on('invalidationSucceeded', this.sessionInvalidationHandler);\n    this.router.on('routeWillChange', this.handleRouteWillChange);\n    this.router.on('routeDidChange', this.handleRouteDidChange as unknown as () => void);\n  }\n\n  public canAccessInbox(inbox: InboxModel) {\n    return this.abilities.can('access to inbox') && this.inboxManager.canAccessInbox(inbox);\n  }\n\n  @action\n  private sessionInvalidationHandler() {\n    if (this.inboxState.currentInboxAssignment) {\n      void this.exitInbox({ isManualExit: false });\n    }\n  }\n\n  public fetchAssignments(filters: InboxAssignmentFilters, offset?: number, limit?: number) {\n    return this.inboxTasksFetcher.fetchAssignments(filters, offset, limit);\n  }\n\n  @action\n  private handleRouteWillChange({ from, to }: Transition<unknown>) {\n    const shouldExitInbox = isExitingTargetRoute(from, to, 'project.rendering');\n    if (shouldExitInbox && this.inboxState.currentInboxAssignment) {\n      void this.exitInbox({ isManualExit: false });\n    }\n  }\n\n  @action\n  async fetchSingleAssignmentRecord(inboxAssignment: InboxAssignmentModel) {\n    const result = await this.inboxTasksFetcher.fetchRecordsForAssignments(\n      [inboxAssignment],\n      inboxAssignment.inbox,\n    );\n    return result?.[0];\n  }\n\n  @action\n  public async handleRouteDidChange() {\n    if (!this.isViewEditRoute()) {\n      return;\n    }\n\n    const { edit_collection_id, record_id } = this.getViewEditParamsFromRoute();\n    const inboxes = this.inboxManager.getInboxesByCollectionId(edit_collection_id);\n\n    if (\n      inboxes.length === 0\n      || !record_id\n      || this.inboxState.currentInboxAssignment?.recordId === record_id\n    ) {\n      return;\n    }\n\n    // Separate segment inboxes for TODO auto-transition\n    const segmentInboxes = inboxes.filter((inbox) => inbox.type === InboxTypeEnum.Segment);\n\n    // Fetch DOING assignments for all inboxes\n    const doingAssignments = await this.inboxTasksFetcher.fetchAssignmentsAndEnsureState({\n      states: [InboxAssignmentStateEnum.Doing],\n      recordIds: [record_id],\n      inboxes,\n    });\n\n    // Fetch and transition TODO assignments for segment inboxes only\n    let transitionedAssignments: InboxAssignmentModel[] = [];\n    if (segmentInboxes.length > 0) {\n      const todoAssignments = await this.inboxTasksFetcher.fetchAssignmentsAndEnsureState({\n        states: [InboxAssignmentStateEnum.Todo],\n        recordIds: [record_id],\n        inboxes: segmentInboxes,\n      });\n      transitionedAssignments = await this.transitionTodoAssignmentsToDoing(todoAssignments);\n    }\n\n    // Combine all valid assignments\n    const validAssignments = [...doingAssignments, ...transitionedAssignments];\n\n    if (validAssignments.length === 1) {\n      this.inboxState.currentInboxAssignment = validAssignments[0];\n    }\n\n    if (validAssignments.length > 1) {\n      this.modalFeatureService.open('feature/inbox/choose-assignment-modal', {\n        data: { assignmentsLinkedToCurrentRecord: validAssignments },\n        mustDisableClose: true,\n      });\n    }\n  }\n\n  private async transitionTodoAssignmentsToDoing(\n    todoAssignments: InboxAssignmentModel[],\n  ): Promise<InboxAssignmentModel[]> {\n    const transitionedAssignments: InboxAssignmentModel[] = [];\n\n    for (const assignment of todoAssignments) {\n      try {\n        const transitioned = await this.inboxManager.transitionSegmentTodoToDoing(assignment);\n        if (transitioned.state === InboxAssignmentStateEnum.Doing) {\n          transitionedAssignments.push(transitioned);\n        }\n      } catch (error) {\n        this.errorHandler.handleError(error as Error, 'Could not start processing task');\n      }\n    }\n\n    return transitionedAssignments;\n  }\n\n  public setCurrentInboxAssignmentAndCloseModal(inboxAssignment: InboxAssignmentModel) {\n    this.setCurrentInboxAssignment(inboxAssignment);\n    this.modalFeatureService.close();\n  }\n\n  private isViewEditRoute() {\n    return this.router.isActive('project.rendering.data.collection.list.view-edit');\n  }\n\n  private getViewEditParamsFromRoute(): { record_id?: string; edit_collection_id?: string } {\n    const { currentRoute } = this.router;\n    const routeInfo = getRouteInfo(\n      currentRoute,\n      'project.rendering.data.collection.list.view-edit',\n    );\n\n    return routeInfo.params;\n  }\n\n  public async getAvailableInboxesForTeam(\n    teamId: string,\n    record: ClientRecordModel,\n  ): Promise<InboxModel[]> {\n    const collection = getCollectionFromRecord(record);\n    const isCurrentTeam = this.layoutState.rendering.teamId === teamId;\n    const inboxes = isCurrentTeam\n      ? this.layoutState.inboxes.filter(\n          // Assign to is only available for SEGMENT inboxes for now\n          (inbox) => inbox.collection.id === collection.id && inbox.type === InboxTypeEnum.Segment,\n        )\n      : await this.inboxManager.getInboxesForTeamAndCollection(teamId, collection.id);\n\n    if (!isCurrentTeam) {\n      inboxes.forEach((inbox) => {\n        inbox.teamId = teamId;\n        inbox.segment.isOutsideOfCurrentRendering = true;\n      });\n    }\n\n    return asyncFilter(inboxes, async ({ segment }) =>\n      this.segmentFeature.isSegmentMatchingRecord(record, segment),\n    );\n  }\n\n  @action\n  private async handleSmartActionApproval(actionApproval: ActionApprovalModel) {\n    // FIXME: Improve the call to fetch only the assignments of the record once the backlog is ready\n    const promises = actionApproval.collection.inboxes\n      .map(async (inbox) => {\n        return actionApproval.recordIds?.map(async (recordId) => {\n          const inboxAssignment = await this.inboxTasksFetcher.fetchAssignmentForRecord(inbox, {\n            id: recordId,\n          });\n          if (\n            inboxAssignment\n            && inboxAssignment.state === InboxAssignmentStateEnum.Doing\n            && inboxAssignment.belongsTo('user').id() === actionApproval.requester?.id\n          ) {\n            await this.inboxManager.updateLastActionDateOnAssignment(inboxAssignment);\n          }\n        });\n      })\n      .flat();\n\n    await Promise.all(promises);\n  }\n\n  @action\n  private async handleWriteActions() {\n    if (this.inboxState.currentInboxAssignment) {\n      await this.inboxManager.updateLastActionDateOnAssignment(\n        this.inboxState.currentInboxAssignment,\n      );\n    }\n  }\n\n  @action\n  public handleClosePreviewModal() {\n    this.modalFeatureService.close();\n  }\n\n  @action\n  public handleOpenCreationModal(parameters?: {\n    onInboxCreated?: (inbox: InboxModel) => void;\n    collection?: CollectionModel;\n    type?: InboxTypeEnum;\n  }) {\n    this.modalFeatureService.open('feature/inbox/creation-modal', {\n      data: { ...parameters },\n    });\n  }\n\n  @action\n  public handleCloseCreationModal() {\n    this.modalFeatureService.close();\n  }\n\n  @action\n  public handleOpenEditDispatchRuleModal(inbox: InboxModel) {\n    this.modalFeatureService.open('feature/inbox/settings/edit-dispatch-rule-modal', {\n      data: { inbox },\n      onClose: () => {\n        inbox.rollbackAttributes();\n        this.modalFeatureService.close();\n      },\n    });\n  }\n\n  public canAccessBacklog(): boolean {\n    return this.inboxManager.canAccessBacklog();\n  }\n\n  public async ensureBacklogAccess(inboxId: string) {\n    if (!this.canAccessBacklog()) {\n      await this.router.transitionTo('project.rendering.inbox.view', inboxId);\n    }\n  }\n\n  public async assignRecordToUser(\n    inbox: InboxModel | null,\n    record: ClientRecordModel,\n    userToAssign: UserModel | null,\n    currentAssignment: InboxAssignmentModel | null = null,\n  ) {\n    if (currentAssignment && !inbox.isWorkflow) {\n      if (!(await this.unassignRecord(currentAssignment))) {\n        return false;\n      }\n    }\n\n    if (!userToAssign) {\n      return true;\n    }\n\n    try {\n      const assignment = inbox.isWorkflow\n        ? await this.inboxManager.assignWorkflowTaskToUser(currentAssignment, userToAssign)\n        : await this.inboxManager.assignRecordToUser(inbox, record, userToAssign);\n      this.notificationFeature.createToastr(\n        ToastrTypeEnum.Success,\n        `Record successfully assigned to ${userToAssign.fullName}`,\n      );\n      return assignment;\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Assign failed');\n      return false;\n    }\n  }\n\n  public async loadState() {\n    await this.lianaSession.waitUntilAuthenticated();\n\n    const currentInboxAssignment = window.sessionStorage.getItem('currentInboxAssignment');\n    if (currentInboxAssignment) {\n      try {\n        const info = JSON.parse(currentInboxAssignment) as CurrentInboxAssignmentSessionStorageInfo;\n        const inbox = this.inboxManager.getInboxByIdAndEnsureAccess(info?.inboxId);\n        const inboxAssignmentsWithRecords =\n          await this.inboxTasksFetcher.fetchOpenAssignmentsForInboxAndEnsureState(inbox);\n        const inboxAssignment = inboxAssignmentsWithRecords.find(\n          ({ assignment }) => assignment.id === info?.inboxAssignmentId,\n        )?.assignment;\n        if (!inboxAssignment) {\n          throw new Error('Inbox assignment not found');\n        }\n\n        this.inboxState.currentInboxAssignment = inboxAssignment;\n      } catch (error) {\n        console.debug('Cannot load current assignment', error);\n        window.sessionStorage.removeItem('currentInboxAssignment');\n      }\n    }\n    const entryPoint = this.inboxManager.getEntryPointFromStorage();\n    if (entryPoint?.type) {\n      this.inboxState.entryPointType = entryPoint.type;\n      this.inboxState.entryPointPath = entryPoint.path;\n      this.inboxState.entryPointInboxId = entryPoint.inboxId;\n    }\n  }\n\n  public openAssignForm(\n    collection: CollectionModel,\n    segment: SegmentModel,\n    selectedRecord: ClientRecordModel,\n  ) {\n    const componentPath = 'feature/inbox/assign-action/form';\n\n    this.modalFeature.open(componentPath, {\n      modalType: 'rightPanel',\n      onClose: () => {\n        this.modalFeature.closeRightPanel();\n        this.inboxManager.clearInboxesFromOtherTeams(this.layoutState.rendering.teamId);\n      },\n      data: {\n        selectedRecord,\n        collection,\n        segment,\n      },\n    });\n  }\n\n  public getAssignmentForRecord(inbox: InboxModel, record: ClientRecordModel) {\n    return this.inboxTasksFetcher.fetchAssignmentForRecord(inbox, record);\n  }\n\n  public setCurrentInboxAssignment(inboxAssignment: InboxAssignmentModel | null) {\n    if (inboxAssignment) {\n      window.sessionStorage.setItem(\n        'currentInboxAssignment',\n        JSON.stringify({\n          inboxId: inboxAssignment.inbox.id,\n          inboxAssignmentId: inboxAssignment.id,\n        }),\n      );\n    } else {\n      window.sessionStorage.removeItem('currentInboxAssignment');\n    }\n    this.inboxState.currentInboxAssignment = inboxAssignment;\n  }\n\n  public loadRequiredModelsForInbox(inboxId: string): { inbox: InboxModel } {\n    const inbox = this.inboxManager.getInboxByIdAndEnsureAccess(inboxId);\n\n    return { inbox };\n  }\n\n  public async getAssignmentsWithRecord(inbox: InboxModel) {\n    try {\n      return await this.inboxTasksFetcher.fetchDoingTasksWithRecord(inbox);\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Could not fetch doing tasks');\n      return [];\n    }\n  }\n\n  private redirectToWorkspace() {\n    if (this.inboxState.entryPointType === InboxEntryPointEnum.Workspace) {\n      if (!this.workspaceFeatureService.isOnWorkspace(this.inboxState.entryPointPath)) {\n        void this.router.transitionTo(\n          'project.rendering.workspaces.view',\n          this.inboxState.entryPointPath,\n        );\n      }\n      return true;\n    }\n    return false;\n  }\n\n  public getRedirectionRouteAndParameters(\n    inboxAssignment: Pick<InboxAssignmentModel, 'inbox' | 'recordId'> = null,\n  ) {\n    if (this.inboxState.entryPointType === InboxEntryPointEnum.Workspace) {\n      return {\n        routeName: 'project.rendering.workspaces.view',\n        routeParameters: [this.inboxState.entryPointPath],\n      };\n    }\n    const assignment = inboxAssignment || this.inboxState.currentInboxAssignment;\n\n    return {\n      routeName: 'project.rendering.data.collection.list.view-edit',\n      routeParameters: [\n        assignment.inbox.collection.shareableId,\n        assignment.inbox.collection.shareableId,\n        assignment.recordId,\n      ],\n    };\n  }\n\n  public redirectToRecord(inboxAssignment: Pick<InboxAssignmentModel, 'inbox' | 'recordId'>) {\n    const assignment = inboxAssignment || this.inboxState.currentInboxAssignment;\n\n    this.routeHistory.flushFrom(-1);\n    this.router.transitionTo(\n      'project.rendering.data.collection.list.view-edit',\n      assignment.inbox.collection.shareableId,\n      assignment.inbox.collection.shareableId,\n      assignment.recordId,\n    );\n  }\n\n  public redirectToRecordOrWorkspace(\n    inboxAssignment: Pick<InboxAssignmentModel, 'inbox' | 'recordId'> = null,\n  ) {\n    if (!this.redirectToWorkspace()) {\n      this.redirectToRecord(inboxAssignment);\n    }\n  }\n\n  public setEntryPoint(type: InboxEntryPointEnum, path: string = null, inboxId: string = null) {\n    this.inboxState.entryPointType = type;\n    this.inboxState.entryPointPath = path;\n    this.inboxState.entryPointInboxId = inboxId;\n    this.inboxManager.setEntryPointToStorage({ type, path, inboxId });\n  }\n\n  private async getWorkflowForInboxAssignment(inboxAssignment: InboxAssignmentModel): Promise<{\n    record: ClientRecordModel;\n    workflow: WorkflowModel;\n    currentRun: WorkflowRunModel;\n  }> {\n    const record = await this.fetchSingleAssignmentRecord(inboxAssignment);\n    const workflowRun = await inboxAssignment.workflowRun;\n\n    if (!workflowRun) {\n      throw new WorkflowRunNotFoundError();\n    }\n    const workflow = await this.workflowFeatureService.getWorkflow(workflowRun.workflowId);\n    return {\n      record,\n      workflow,\n      currentRun: workflowRun,\n    };\n  }\n\n  public async startProcessingTask(inboxAssignment: InboxAssignmentModel) {\n    this.setCurrentInboxAssignment(inboxAssignment);\n    if (inboxAssignment.inbox.type === InboxTypeEnum.Workflow) {\n      try {\n        const { workflow, record, currentRun } =\n          await this.getWorkflowForInboxAssignment(inboxAssignment);\n        await this.workflowFeatureService.startWorkflow(workflow, record, currentRun);\n      } catch (error) {\n        this.errorHandler.handleError(error as Error, 'Could not start workflow processing');\n      }\n    }\n    this.redirectToRecordOrWorkspace(inboxAssignment);\n  }\n\n  public async startProcessingInbox(inbox: InboxModel) {\n    const { currentInboxAssignment } = this.inboxState;\n    try {\n      if (\n        currentInboxAssignment &&\n        // to keep the notification bar when ending a workflow,\n        // the assignment can be marked as done and still exists\n        currentInboxAssignment.state !== InboxAssignmentStateEnum.Done\n      ) {\n        await this.inboxManager.updateLastActionDateOnAssignment(currentInboxAssignment);\n      }\n\n      const inboxAssignment = await (inbox.type === InboxTypeEnum.Segment\n        ? this.inboxManager.startNewSegmentTask(inbox)\n        : this.inboxManager.startNewWorkflowTask(inbox));\n      await this.startProcessingTask(inboxAssignment);\n\n      return true;\n    } catch (error) {\n      if (error instanceof InboxNoRecordsToTreatError) {\n        this.setCurrentInboxAssignment(null);\n        void this.router.transitionTo('project.rendering.inbox.view.todo', inbox.id);\n        return false;\n      }\n      if (error instanceof InboxAssignmentLimitTasksReachedError) {\n        this.notificationFeature.createToastr(\n          ToastrTypeEnum.Info,\n          `You've reached the limit of ${inbox.tasksLimit} assigned tickets per agent. We've taken you back to one of your assigned ticket.`,\n        );\n        const doingTasks = await this.getAssignmentsWithRecord(inbox);\n        const sortedDoingTasks = doingTasks.sortBy('startedProcessingAt');\n        const indexToFetch = currentInboxAssignment\n          ? (sortedDoingTasks.findIndex(\n              ({ assignment }) => assignment.id === currentInboxAssignment.id,\n            )\n              + 1)\n            % doingTasks.length\n          : 0;\n        await this.startProcessingTask(sortedDoingTasks[indexToFetch].assignment);\n        return false;\n      }\n      this.errorHandler.handleRequestFailure(error as Error, 'Could not create inbox assignment');\n      return false;\n    }\n  }\n\n  public async unassignRecord(inboxAssignment: InboxAssignmentModel) {\n    const user = await inboxAssignment.user;\n    try {\n      await this.inboxManager.unassignRecord(inboxAssignment);\n      this.notificationFeature.createToastr(\n        ToastrTypeEnum.Info,\n        `Record successfully unassigned from ${user.fullName}`,\n      );\n    } catch (error) {\n      const isNotFoundError = is404Error(error);\n      this.errorHandler.handleRequestFailure(\n        error as Error,\n        isNotFoundError\n          ? 'This assignment has been deleted since, please retry. Your form has been refreshed accordingly.'\n          : 'Unassign of the task on this record failed.',\n        isNotFoundError,\n      );\n      return false;\n    }\n    return true;\n  }\n\n  public async exitInbox(options = { isManualExit: true }) {\n    const { isManualExit } = options;\n    const { currentInboxAssignment } = this.inboxState;\n\n    this.setCurrentInboxAssignment(null);\n\n    if (isManualExit) {\n      if (!this.redirectToWorkspace()) {\n        void this.router.transitionTo(\n          'project.rendering.inbox.view.doing',\n          currentInboxAssignment.inbox.id,\n        );\n      }\n    }\n  }\n\n  public async getNumberOfToDoTasks(inbox: InboxModel) {\n    if (inbox.type === InboxTypeEnum.Workflow) {\n      return this.inboxWorkflowFeature.countAssignments(inbox, {\n        states: [InboxAssignmentStateEnum.Todo],\n      });\n    }\n    try {\n      return await this.inboxTasksFetcher.fetchNumberOfToDoTasks(inbox);\n    } catch (error) {\n      console.debug('Error while fetching the number of tasks to do:', error);\n    }\n\n    try {\n      const toDoTasks = await this.inboxTasksFetcher.fetchAllRecordsToDo(inbox);\n      return toDoTasks.length >= NUMBER_OF_TO_DO_TASKS_TO_FETCH\n        ? `${toDoTasks.length}+`\n        : toDoTasks.length;\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      return null;\n    }\n  }\n\n  public async getNumberOfDoingTasks(inbox: InboxModel) {\n    try {\n      return await this.inboxTasksFetcher.fetchNumberOfDoingTasks(inbox);\n    } catch (error) {\n      this.notificationFeature.createToastr(\n        ToastrTypeEnum.Error,\n        (error as FetchAgentError).message,\n      );\n      return null;\n    }\n  }\n\n  public async createInbox(inboxParameters: Omit<InboxInterface, 'position'>) {\n    try {\n      const inbox = await this.inboxManager.createInbox({\n        icon: inboxParameters.collection.iconOrDefault,\n        ...inboxParameters,\n        position: this.layoutState.inboxes.length,\n      });\n      await this.folderFeatureService.addEntityToFolder(inbox.id, FolderTypeEnum.Inbox);\n\n      this.notificationFeature.createToastr(\n        ToastrTypeEnum.Success,\n        'New inbox successfully created.',\n      );\n\n      if (\n        !this.workspaceFeatureService.getIsOnWorkspaceRoute()\n        && this.router.currentRoute?.name !== 'project.rendering.data.collection.workflow-editor'\n      ) {\n        await this.router.transitionTo('project.rendering.inbox.view.todo', inbox.id);\n      }\n      return inbox;\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Inbox creation failed');\n      return null;\n    }\n  }\n\n  public async updateInbox(inbox: InboxModel, inboxParameters: Partial<InboxInterface>) {\n    try {\n      await this.inboxManager.updateInbox(inbox, inboxParameters);\n      this.notificationFeature.createToastr(ToastrTypeEnum.Success, 'Inbox successfully updated.');\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Inbox update failed');\n    }\n  }\n\n  public async deleteInbox(inbox: InboxModel) {\n    try {\n      await this.inboxManager.deleteInbox(inbox);\n      await this.folderFeatureService.removeChildFromFolder(inbox.id);\n      this.notificationFeature.createToastr(ToastrTypeEnum.Success, 'Inbox successfully deleted.');\n      void this.router.transitionTo('project.rendering.index');\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Inbox deletion failed');\n    }\n  }\n\n  public createInboxSortingField(attributes: InboxSortingFieldAttributes) {\n    return this.inboxManager.createSortingFieldFragment(attributes);\n  }\n\n  public getCurrentInboxAssignmentForInbox(inboxIds: string[]) {\n    return inboxIds.includes(this.inboxState.currentInboxAssignment?.inbox.id)\n      ? this.inboxState.currentInboxAssignment\n      : null;\n  }\n\n  public getCollectionsWithInboxes() {\n    return this.inboxManager.getCollectionsWithInboxes();\n  }\n\n  public getInboxById(inboxId: string) {\n    return this.inboxManager.getInboxById(inboxId);\n  }\n\n  public async createInboxWorkflowAssignment(inboxId: string) {\n    try {\n      const inboxAssignment = await this.inboxManager.createInboxWorkflowAssignment(\n        inboxId,\n        this.workflowFeatureService.getCurrentWorkflowRun(),\n        this.workflowFeatureService.getRootRecord().id,\n      );\n      this.eventBus.trigger(EventBusEventsEnum.InboxAssignmentUpdated, {\n        inbox: inboxAssignment.inbox,\n      });\n      return inboxAssignment;\n    } catch (error) {\n      if (getFirstErrorStatus(error) === 409) {\n        this.errorHandler.handleError(\n          new ConflictInboxAssignmentCreationError(),\n          'Could not create inbox assignment',\n        );\n      } else {\n        this.errorHandler.handleError(\n          new UnknownInboxAssignmentCreationError(error as Error),\n          'An error occurred while creating inbox assignment.',\n        );\n      }\n      return null;\n    }\n  }\n\n  // Backlog methods !\n  public async getNumberOfTasksForBacklog(\n    inbox: InboxModel,\n    filters?: SingleInboxAssignmentFilters,\n    sort?: InboxAssignmentSort,\n  ) {\n    try {\n      return await this.backlogTasksFetcher.countAllForInbox(inbox, filters, sort);\n    } catch (error) {\n      if (error instanceof CountDeactivatedError) {\n        return null;\n      }\n      this.errorHandler.handleRequestFailure(\n        error as Error,\n        'Could not fetch number of tasks for backlog',\n      );\n      return null;\n    }\n  }\n\n  public async getAssignmentsForBacklog(\n    inbox: InboxModel,\n    page: number,\n    filters?: SingleInboxAssignmentFilters,\n    sort?: InboxAssignmentSort,\n  ) {\n    try {\n      return (\n        await this.backlogTasksFetcher.fetchAssignmentsForPage(inbox, page, filters, sort)\n      ).map(({ assignment, record }) => new TaskWithRecord(assignment, record));\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Could not fetch backlog tasks');\n      return [];\n    }\n  }\n\n  public resetInboxCache(inbox: InboxModel) {\n    this.inboxTasksFetcher.invalidateCacheForInbox(inbox);\n    this.resetBacklogCache(inbox);\n  }\n\n  public resetBacklogCache(inbox: InboxModel) {\n    this.backlogTasksFetcher.invalidateCacheForInbox(inbox);\n  }\n\n  public getSortFromQueryParams() {\n    const { sort } = this.router.currentRoute.queryParams as InboxBacklogQueryParams;\n\n    const sortBy = sort?.replace('-', '') as InboxAssignmentSort['by'];\n    const sortOrder = sort?.startsWith('-')\n      ? SortingOrderEnum.Descending\n      : SortingOrderEnum.Ascending;\n\n    if (this.isValidSortParams(sortBy, sortOrder)) {\n      return {\n        by: sortBy,\n        order: sortOrder,\n      };\n    }\n\n    return null;\n  }\n\n  public async setQueryParamsFromSort(sort?: InboxAssignmentSort) {\n    if (!sort) {\n      await this.router.transitionTo({\n        queryParams: {\n          sort: null,\n        },\n      });\n      return;\n    }\n\n    const descending = sort.order === SortingOrderEnum.Descending ? '-' : '';\n\n    await this.router.transitionTo({\n      queryParams: {\n        sort: `${descending}${sort.by}`,\n      },\n    });\n  }\n\n  private isValidSortParams(\n    sortBy: InboxAssignmentSort['by'],\n    sortOrder: InboxAssignmentSort['order'],\n  ) {\n    return (\n      INBOX_ASSIGNMENT_SORT_BY.includes(sortBy)\n      && Object.values(SortingOrderEnum).includes(sortOrder)\n    );\n  }\n\n  public async setQueryParamsFromFilters(filters?: SingleInboxAssignmentFilters) {\n    const queryParams: InboxBacklogQueryParams = {\n      states: filters?.states,\n      startedProcessingAtAfter: filters?.startedProcessingAt?.after,\n      startedProcessingAtBefore: filters?.startedProcessingAt?.before,\n      assignees: filters?.assigneeIds?.length ? filters.assigneeIds : undefined,\n      unassigned: filters?.unassigned,\n    };\n    await this.router.transitionTo({\n      queryParams,\n    });\n  }\n\n  public async getFiltersFromQueryParams(): Promise<FiltersWithAssignees | null> {\n    const { states, startedProcessingAtAfter, startedProcessingAtBefore, assignees, unassigned } =\n      this.router.currentRoute.queryParams as InboxBacklogQueryParams;\n\n    if (\n      !states\n      && !startedProcessingAtAfter\n      && !startedProcessingAtBefore\n      && !assignees\n      && !unassigned\n    ) {\n      return null;\n    }\n\n    const statesPossibleValues = Object.values(InboxAssignmentStateEnum);\n    const verifiedStates = (states as string)\n      ?.split(',')\n      .filter((state) =>\n        statesPossibleValues.includes(state as InboxAssignmentStateEnum),\n      ) as InboxAssignmentStateEnum[];\n\n    const dateFilters = removeEmptyValuesFromObject({\n      after: startedProcessingAtAfter || null,\n      before: startedProcessingAtBefore || null,\n    });\n\n    const usersIds = (assignees as string)?.split(',') || [];\n    const resolvedUsersPromises = await Promise.allSettled(\n      usersIds.map((userId) => this.userFeatureService.getUserById(userId)),\n    );\n\n    const users = resolvedUsersPromises\n      .filter(\n        (promise): promise is PromiseFulfilledResult<UserModel> => promise.status === 'fulfilled',\n      )\n      .map((promise) => promise.value);\n\n    const hasValidUnassignedFilter =\n      (unassigned as unknown as string) === 'true' && users.length === 0;\n\n    const filters = removeEmptyValuesFromObject({\n      states: verifiedStates || null,\n      startedProcessingAt: Object.keys(dateFilters).length ? dateFilters : null,\n      assignees: hasValidUnassignedFilter ? [null] : users,\n      unassigned: hasValidUnassignedFilter || null,\n    });\n\n    return Object.keys(filters).length ? filters : null;\n  }\n\n  public getNumberOfPagesForBacklog(countAssignments?: number) {\n    return countAssignments && Math.ceil(countAssignments / NUMBER_OF_RECORDS_PER_PAGE_BACKLOG);\n  }\n\n  public async getPageFromQueryParams(\n    inbox: InboxModel,\n    filters: SingleInboxAssignmentFilters,\n    sort: InboxAssignmentSort,\n  ) {\n    const { page } = this.router.currentRoute.queryParams;\n\n    if (!page) return 1;\n\n    let numberOfPages: number;\n    try {\n      const countAssignments = await this.backlogTasksFetcher.countAllForInbox(\n        inbox,\n        filters,\n        sort,\n      );\n      numberOfPages = this.getNumberOfPagesForBacklog(countAssignments);\n    } catch (error) {\n      if (error instanceof CountDeactivatedError) {\n        return 1;\n      }\n      throw error;\n    }\n    const parsedPage = parseInt(page, 10);\n    if (isNaN(parsedPage) || parsedPage > numberOfPages || parsedPage < 1) {\n      return 1;\n    }\n    return parsedPage;\n  }\n\n  public async setQueryParamsFromPage(inbox: InboxModel, page: number) {\n    if (this.backlogTasksFetcher.isCountDeactivated(inbox)) {\n      return;\n    }\n\n    await this.router.transitionTo({\n      queryParams: {\n        page,\n      },\n    });\n  }\n\n  private getInboxKey(inbox: InboxModel) {\n    return `rendering_${inbox.rendering.id}_-inboxes_${inbox.id}`;\n  }\n\n  public getDisplayNameFromRecord(inboxAssignment: InboxAssignmentWithRecord): unknown {\n    const { record } = inboxAssignment;\n    const { displayFieldOrPrimaryField } = inboxAssignment.assignment.inbox.collection;\n    // If the record is not loaded yet or if an error happened, we display the recordId\n    // It could happen if the primary field is not filterable\n    return (\n      record?.[displayFieldOrPrimaryField.attributeName] || inboxAssignment.assignment.recordId\n    );\n  }\n}\n","import type InboxModel from 'client/data/models/inbox';\nimport type InboxTasksFetcherInternalBusinessService from 'client/features/inbox/services/internal-business/tasks-fetcher';\nimport type RecordsManagerService from 'client/legacy/services/records-manager';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport { SortingOrderEnum } from 'client/data/models/collection';\nimport { InboxTypeEnum } from 'client/data/models/inbox';\nimport { InboxAssignmentStateEnum } from 'client/data/models/inbox-assignment';\nimport {\n  NUMBER_OF_RECORDS_PER_PAGE_BACKLOG,\n  type TaskWithRecord,\n  isCacheValid,\n} from 'client/features/inbox/services/internal-business/tasks-fetcher';\nimport { FetchAgentError } from 'client/utils/errors';\nimport { CountDeactivatedError } from 'client/utils/errors/collection-errors';\nimport { SelectPageUnavailableError } from 'client/utils/errors/inbox';\nimport { OPERATOR_IS_NOT } from 'client/utils/operators';\n\nexport type SingleInboxAssignmentFilters = {\n  states?: InboxAssignmentStateEnum[];\n  recordIds?: string[];\n  assigneeIds?: string[];\n  startedProcessingAt?: {\n    before?: string;\n    after?: string;\n  };\n  unassigned?: boolean;\n};\n\nexport const INBOX_ASSIGNMENT_SORT_BY = [\n  'state',\n  'startedProcessingAt',\n  'assignee',\n  'handlingTime',\n] as const;\n\nexport type InboxAssignmentSort = {\n  by: (typeof INBOX_ASSIGNMENT_SORT_BY)[number];\n  order: SortingOrderEnum;\n};\n\nexport type InboxAssignmentFilters = SingleInboxAssignmentFilters & {\n  inboxes?: InboxModel[];\n  inboxIds?: string[];\n};\n\nconst BACKLOG_CACHE_TTL = 1000 * 60;\n\nexport default class InboxBacklogTasksFetcherInternalBusinessService extends Service {\n  @service private store: StoreService;\n  @service('feature/inbox/internal-business/tasks-fetcher')\n  private tasksFetcher: InboxTasksFetcherInternalBusinessService;\n\n  @service private serverFetch: ServerFetchService;\n  @service private recordsManager: RecordsManagerService;\n\n  private cacheCounts: Map<\n    InboxModel,\n    { todo?: number; doingAndDone?: number; isCountDeactivated?: boolean; lastFetchedAt: Date }\n  > = new Map();\n\n  private cachePagination: Map<\n    InboxModel,\n    { todoOffset?: number; numberOfToDoDisplayed?: number; firstToDoRecordIds?: string[] }\n  > = new Map();\n\n  private isExcludingClientRecords(filters: SingleInboxAssignmentFilters) {\n    // If we are filtering on states excluding the todo tasks we don't need the client record\n    if (filters?.states && !filters?.states.includes(InboxAssignmentStateEnum.Todo)) {\n      return true;\n    }\n    // If we are filtering on assignee then we got all the information we need on Forest\n    if (filters?.assigneeIds && filters?.assigneeIds.length > 0) {\n      return true;\n    }\n\n    // startedProcessingAt is set only on Doing and Done tasks, so if we are filtering on it, no need for the client records to be fetched\n    return filters?.startedProcessingAt?.before || filters?.startedProcessingAt?.after;\n  }\n\n  private mustFetchClientRecords(\n    filters: SingleInboxAssignmentFilters | null,\n    sort: InboxAssignmentSort | null,\n  ) {\n    if (!filters) {\n      return true;\n    }\n\n    if (!this.mustFetchForestAssignments(filters, sort)) {\n      return true;\n    }\n\n    return !this.isExcludingClientRecords(filters);\n  }\n\n  private mustFetchForestAssignments(\n    filters: SingleInboxAssignmentFilters,\n    sort: InboxAssignmentSort,\n  ) {\n    if (filters?.unassigned === true) {\n      return false;\n    }\n\n    return (\n      filters?.states?.length !== 1\n      || filters?.states[0] !== InboxAssignmentStateEnum.Todo\n      || sort?.by === 'assignee'\n      || this.isExcludingClientRecords(filters)\n    );\n  }\n\n  private mustFetchToDoRecordsOnForest(\n    filters: SingleInboxAssignmentFilters,\n    sort: InboxAssignmentSort,\n    inboxType: InboxTypeEnum,\n  ) {\n    return (\n      !this.mustFetchClientRecords(filters, sort)\n      || sort?.by === 'assignee'\n      || inboxType === InboxTypeEnum.Workflow\n    );\n  }\n\n  private mustToDoRecordsBeDisplayedFirst(\n    filters?: SingleInboxAssignmentFilters,\n    sort?: InboxAssignmentSort,\n  ) {\n    if (!this.mustFetchClientRecords(filters, sort)) {\n      return false;\n    }\n\n    if (!this.mustFetchForestAssignments(filters, sort)) {\n      return true;\n    }\n\n    // state ascending is TODO > Doing > Done so in descending order the TODO will be last\n    if (sort?.by === 'state' && sort.order === SortingOrderEnum.Descending) {\n      return false;\n    }\n    // startedProcessingAt ascending is null value at last so the TODO will be last\n    if (sort?.by === 'startedProcessingAt' && sort.order === SortingOrderEnum.Ascending) {\n      return false;\n    }\n    // handlingTime ascending is null value at last so the TODO will be last\n    if (sort?.by === 'handlingTime' && sort.order === SortingOrderEnum.Ascending) {\n      return false;\n    }\n\n    // assignee ascending is null value at last so the TODO will be last\n    return !(sort?.by === 'assignee' && sort.order === SortingOrderEnum.Ascending);\n  }\n\n  public async fetchAssignments(\n    filters?: InboxAssignmentFilters,\n    sort?: InboxAssignmentSort,\n    offset?: number,\n    limit?: number,\n  ) {\n    const { inboxes, unassigned, ...unchangedFilters } = filters;\n\n    const inboxIds = filters.inboxIds || inboxes.map((inbox) => inbox.id);\n\n    const assignments = await this.store.query('inbox-assignment', {\n      filters: {\n        ...unchangedFilters,\n        inboxIds,\n      },\n      sort: sort || undefined,\n      offset,\n      limit,\n    });\n\n    return assignments.toArray();\n  }\n\n  public async fetchAssignmentsWithRecords(\n    inbox: InboxModel,\n    filters: SingleInboxAssignmentFilters = {},\n    sort?: InboxAssignmentSort,\n    offset?: number,\n    limit?: number,\n  ): Promise<TaskWithRecord[]> {\n    const filtersWithState = this.getFiltersWithStates({ filters, sort, inboxType: inbox.type });\n    // Nothing to fetch on the backend\n    if (!this.mustFetchForestAssignments(filters, sort) || filtersWithState.states?.length === 0) {\n      return [];\n    }\n\n    const assignments = await this.fetchAssignments(\n      {\n        inboxes: [inbox],\n        ...filtersWithState,\n      },\n      sort,\n      offset,\n      limit,\n    );\n\n    return this.tasksFetcher.fetchRecordsForAssignmentsAndEnsureState(inbox, assignments, true);\n  }\n\n  private async fetchToDoAssignmentsForPage(\n    inbox: InboxModel,\n    currentPage: number,\n    numberOfRecords: number,\n    excludedRecordIds: string[],\n    filters: SingleInboxAssignmentFilters,\n    sort: InboxAssignmentSort,\n  ) {\n    if (!this.mustFetchClientRecords(filters, sort)) {\n      return [];\n    }\n\n    const recordsContext = await this.tasksFetcher.getRecordsContextForToDoTasks(inbox, {\n      shouldIgnoreRandomSortRule: true,\n      shouldFetchDisplayField: true,\n      isCurrentUserTasksOnly: false,\n      shouldIgnoreAllToDoTasks:\n        this.mustFetchToDoRecordsOnForest(filters, sort, inbox.type)\n        || filters?.unassigned\n        || false,\n    });\n    recordsContext.currentPage = currentPage;\n    recordsContext.recordsPerPage = numberOfRecords || NUMBER_OF_RECORDS_PER_PAGE_BACKLOG;\n\n    if (excludedRecordIds?.length) {\n      const existingFilter = recordsContext.filter;\n      recordsContext.filter = this.store.createRecord('filter', {\n        filteredCollection: inbox.collection,\n        aggregator: 'and',\n        conditions: excludedRecordIds.map((recordId) => ({\n          fieldName: inbox.collection.primaryField.fieldName,\n          operator: OPERATOR_IS_NOT.displayName,\n          value: recordId,\n        })),\n        filters: existingFilter ? [existingFilter.cloneFragment()] : null,\n      });\n    }\n\n    await this.recordsManager.fetchRecordsList.perform(recordsContext);\n    if (recordsContext.error) {\n      throw new FetchAgentError(\n        recordsContext.error as unknown as Error,\n        'Failed to fetch to do tasks',\n      );\n    }\n\n    const openAssignments =\n      await this.tasksFetcher.fetchOpenAssignmentsForInboxAndEnsureState(inbox);\n    return recordsContext.records.map((record) => {\n      return {\n        record,\n        assignment:\n          openAssignments.find(({ assignment }) => assignment.recordId === record.id)?.assignment\n          || null,\n      };\n    });\n  }\n\n  private async shouldFetchToDoAssignmentsForPage(\n    inbox: InboxModel,\n    currentPage: number,\n    filters: SingleInboxAssignmentFilters,\n    sort: InboxAssignmentSort,\n  ) {\n    try {\n      if (inbox.isWorkflow) {\n        return false;\n      }\n      const countToDo = await this.countAllToDoTasks(inbox, filters, sort);\n\n      return (currentPage - 1) * NUMBER_OF_RECORDS_PER_PAGE_BACKLOG < countToDo;\n    } catch (error) {\n      if (error instanceof CountDeactivatedError) {\n        const cache = this.cachePagination.get(inbox);\n        const isFirstFetch = !cache;\n        if (isFirstFetch && currentPage > 1) {\n          throw new SelectPageUnavailableError();\n        }\n\n        // We got no information yet so we need to fetch a first time\n        if (isFirstFetch) {\n          return true;\n        }\n\n        const actualCountToDo = cache.todoOffset + cache.numberOfToDoDisplayed;\n\n        return (\n          // Has potentially a next page\n          (actualCountToDo > 0 && actualCountToDo % NUMBER_OF_RECORDS_PER_PAGE_BACKLOG === 0) ||\n          // We are fetching a previous page\n          actualCountToDo > (currentPage - 1) * NUMBER_OF_RECORDS_PER_PAGE_BACKLOG\n        );\n      }\n      throw error;\n    }\n  }\n\n  private getCacheCountToDo(inbox: InboxModel) {\n    const countToDoCache = this.cacheCounts.get(inbox)?.todo;\n    if (countToDoCache !== undefined) {\n      return countToDoCache;\n    }\n\n    const cache = this.cachePagination.get(inbox);\n    return cache ? cache.todoOffset + cache.numberOfToDoDisplayed : null;\n  }\n\n  private getFiltersWithStates({\n    filters,\n    sort,\n    inboxType,\n  }: {\n    filters?: SingleInboxAssignmentFilters;\n    sort?: InboxAssignmentSort;\n    inboxType?: InboxTypeEnum;\n  }) {\n    if (filters?.states?.length) {\n      return {\n        ...(filters || {}),\n        states: this.mustFetchToDoRecordsOnForest(filters, sort, inboxType)\n          ? filters?.states\n          : filters?.states?.filter((value) => value !== InboxAssignmentStateEnum.Todo),\n      };\n    }\n\n    return {\n      ...(filters || {}),\n      states: this.mustFetchToDoRecordsOnForest(filters, sort, inboxType)\n        ? [\n            InboxAssignmentStateEnum.Todo,\n            InboxAssignmentStateEnum.Doing,\n            InboxAssignmentStateEnum.Done,\n          ]\n        : [InboxAssignmentStateEnum.Doing, InboxAssignmentStateEnum.Done],\n    };\n  }\n\n  private async getFirstTodoPageRecords(\n    inbox: InboxModel,\n    filters: SingleInboxAssignmentFilters | undefined,\n    sort: InboxAssignmentSort | undefined,\n    countAssignments: number,\n  ) {\n    const firstPageRecords = await this.fetchToDoAssignmentsForPage(\n      inbox,\n      1,\n      NUMBER_OF_RECORDS_PER_PAGE_BACKLOG - (countAssignments % NUMBER_OF_RECORDS_PER_PAGE_BACKLOG),\n      undefined,\n      filters,\n      sort,\n    );\n\n    this.cachePagination.set(inbox, {\n      firstToDoRecordIds: firstPageRecords.map(({ record }) => record.id),\n    });\n\n    return firstPageRecords;\n  }\n\n  private async fetchAssignmentsForPageForestAssignmentsFirst(\n    inbox: InboxModel,\n    currentPage: number,\n    filters?: SingleInboxAssignmentFilters,\n    sort?: InboxAssignmentSort,\n  ) {\n    // If we are on the current page we need to close existing assignments if required\n    // before doing anything else\n    if (currentPage === 1) {\n      await this.tasksFetcher.fetchOpenAssignmentsForInboxAndEnsureState(inbox);\n    }\n\n    const countAssignments = await this.countAssignments(inbox, filters, sort);\n    if ((currentPage - 1) * NUMBER_OF_RECORDS_PER_PAGE_BACKLOG < countAssignments) {\n      const assignments = await this.fetchAssignmentsWithRecords(\n        inbox,\n        filters,\n        sort,\n        (currentPage - 1) * NUMBER_OF_RECORDS_PER_PAGE_BACKLOG,\n        NUMBER_OF_RECORDS_PER_PAGE_BACKLOG,\n      );\n      if (assignments.length === NUMBER_OF_RECORDS_PER_PAGE_BACKLOG) {\n        return assignments;\n      }\n\n      return [\n        ...assignments,\n        ...(await this.getFirstTodoPageRecords(inbox, filters, sort, countAssignments)),\n      ];\n    }\n\n    const todoPage = currentPage - Math.ceil(countAssignments / NUMBER_OF_RECORDS_PER_PAGE_BACKLOG);\n    const excludedRecordIds =\n      currentPage === 1 || countAssignments % NUMBER_OF_RECORDS_PER_PAGE_BACKLOG === 0\n        ? []\n        : this.cachePagination.get(inbox)?.firstToDoRecordIds\n          || (await this.getFirstTodoPageRecords(inbox, filters, sort, countAssignments)).map(\n            ({ record }) => record.id,\n          );\n    return this.fetchToDoAssignmentsForPage(\n      inbox,\n      todoPage,\n      NUMBER_OF_RECORDS_PER_PAGE_BACKLOG,\n      excludedRecordIds,\n      filters,\n      sort,\n    );\n  }\n\n  public async fetchAssignmentsForPage(\n    inbox: InboxModel,\n    currentPage: number,\n    filters?: SingleInboxAssignmentFilters,\n    sort?: InboxAssignmentSort,\n  ) {\n    if (this.mustToDoRecordsBeDisplayedFirst(filters, sort)) {\n      if (await this.shouldFetchToDoAssignmentsForPage(inbox, currentPage, filters, sort)) {\n        const assignments = await this.fetchToDoAssignmentsForPage(\n          inbox,\n          currentPage,\n          undefined,\n          undefined,\n          filters,\n          sort,\n        );\n        const todoOffset = (currentPage - 1) * NUMBER_OF_RECORDS_PER_PAGE_BACKLOG;\n        const numberOfToDoDisplayed = assignments.length;\n        this.cachePagination.set(inbox, {\n          todoOffset,\n          numberOfToDoDisplayed,\n        });\n\n        if (assignments.length === NUMBER_OF_RECORDS_PER_PAGE_BACKLOG) {\n          return assignments;\n        }\n\n        return [\n          ...assignments,\n          ...(await this.fetchAssignmentsWithRecords(\n            inbox,\n            filters,\n            sort,\n            0,\n            NUMBER_OF_RECORDS_PER_PAGE_BACKLOG - numberOfToDoDisplayed,\n          )),\n        ];\n      }\n\n      return this.fetchAssignmentsWithRecords(\n        inbox,\n        filters,\n        sort,\n        (currentPage - 1) * NUMBER_OF_RECORDS_PER_PAGE_BACKLOG - this.getCacheCountToDo(inbox),\n        NUMBER_OF_RECORDS_PER_PAGE_BACKLOG,\n      );\n    }\n    return this.fetchAssignmentsForPageForestAssignmentsFirst(inbox, currentPage, filters, sort);\n  }\n\n  private updateCacheCount(\n    inbox: InboxModel,\n    count: { todo?: number; doingAndDone?: number; isCountDeactivated?: boolean },\n  ) {\n    if (!this.cacheCounts.has(inbox)) {\n      this.cacheCounts.set(inbox, { lastFetchedAt: new Date() });\n    }\n    this.cacheCounts.set(inbox, {\n      ...this.cacheCounts.get(inbox),\n      ...count,\n      lastFetchedAt: new Date(),\n    });\n  }\n\n  private async countAssignments(\n    inbox: InboxModel,\n    filters: SingleInboxAssignmentFilters,\n    sort: InboxAssignmentSort,\n  ) {\n    if (!this.mustFetchForestAssignments(filters, sort) && inbox.type === InboxTypeEnum.Segment) {\n      this.updateCacheCount(inbox, { doingAndDone: 0 });\n      return 0;\n    }\n\n    const { unassigned, ...filtersWithStates } = this.getFiltersWithStates({\n      filters,\n      sort,\n      inboxType: inbox.type,\n    });\n    const cache = this.cacheCounts.get(inbox);\n    if (isCacheValid(cache, BACKLOG_CACHE_TTL) && cache.doingAndDone !== undefined) {\n      return cache.doingAndDone;\n    }\n\n    const response = await this.serverFetch.fetch(\n      '/api/inbox-assignments/count',\n      {\n        queryParams: {\n          filters: {\n            ...filtersWithStates,\n            inboxIds: [inbox.id],\n          },\n        },\n      },\n      true,\n    );\n\n    const body = (await response.json()) as { meta: { count: number } };\n    const count = body?.meta?.count;\n\n    this.updateCacheCount(inbox, { doingAndDone: count });\n\n    return count;\n  }\n\n  private async countAllToDoTasks(\n    inbox: InboxModel,\n    filters: SingleInboxAssignmentFilters,\n    sort: InboxAssignmentSort,\n  ) {\n    const cache = this.cacheCounts.get(inbox);\n    if (isCacheValid(cache, BACKLOG_CACHE_TTL) && cache.todo !== undefined) {\n      return cache.todo;\n    }\n    if (cache?.isCountDeactivated) {\n      throw new CountDeactivatedError();\n    }\n    if (!this.mustFetchClientRecords(filters, sort)) {\n      this.updateCacheCount(inbox, { todo: 0 });\n      return 0;\n    }\n\n    const recordsContext = await this.tasksFetcher.getRecordsContextForToDoTasks(inbox, {\n      shouldIgnoreRandomSortRule: true,\n      isCurrentUserTasksOnly: false,\n      shouldIgnoreAllToDoTasks:\n        this.mustFetchToDoRecordsOnForest(filters, sort, inbox.type)\n        || filters?.unassigned\n        || false,\n    });\n    const isSuccess = await this.recordsManager.fetchRecordsCount.perform(recordsContext);\n    if (recordsContext.isCountDeactivated) {\n      this.updateCacheCount(inbox, { isCountDeactivated: true });\n      throw new CountDeactivatedError();\n    }\n    if (recordsContext.error || !isSuccess) {\n      throw new FetchAgentError(\n        recordsContext.error as unknown as Error,\n        'Failed to count to do tasks',\n      );\n    }\n\n    this.updateCacheCount(inbox, { todo: recordsContext.recordsCount });\n\n    return recordsContext.recordsCount;\n  }\n\n  public async countAllForInbox(\n    inbox: InboxModel,\n    filters: SingleInboxAssignmentFilters,\n    sort: InboxAssignmentSort,\n  ) {\n    if (inbox.isWorkflow) {\n      return this.countAssignments(inbox, filters, sort);\n    }\n\n    const [countToDo, countDoingAndDone] = await Promise.all([\n      this.countAllToDoTasks(inbox, filters, sort),\n      this.countAssignments(inbox, filters, sort),\n    ]);\n    return countToDo + countDoingAndDone;\n  }\n\n  public invalidateCacheForInbox(inbox: InboxModel) {\n    this.cacheCounts.delete(inbox);\n    this.cachePagination.delete(inbox);\n    this.tasksFetcher.invalidateCacheForInbox(inbox);\n  }\n\n  public isCountDeactivated(inbox: InboxModel) {\n    return this.cacheCounts.get(inbox)?.isCountDeactivated;\n  }\n}\n","import type { InboxInterface } from 'client/data/models/inbox';\nimport type InboxModel from 'client/data/models/inbox';\nimport type InboxAssignmentModel from 'client/data/models/inbox-assignment';\nimport type { InboxSortingFieldAttributes } from 'client/data/models/inbox-sorting-field';\nimport type UserModel from 'client/data/models/user';\nimport type WorkflowRunModel from 'client/data/models/workflow-run';\nimport type InboxTasksFetcherInternalBusinessService from 'client/features/inbox/services/internal-business/tasks-fetcher';\nimport type { InboxEntryPointEnum } from 'client/features/inbox/state';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type StoreService from 'client/legacy/services/store';\nimport type LayoutState from 'client/shared/states/layout';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\n\nimport { InboxAssignmentStateEnum } from 'client/data/models/inbox-assignment';\nimport {\n  InboxAccessForbiddenError,\n  InboxAssignmentLimitTasksReachedError,\n  InboxNoRecordsToTreatError,\n  InboxNotFoundError,\n} from 'client/features/inbox/errors';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport { getFirstErrorName } from 'client/utils/ember-error-util';\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\n\nexport enum UnassignReasonEnum {\n  Manual = 'unassign',\n  Auto = 'auto',\n  Cancel = 'cancel',\n}\n\nexport default class InboxInboxManagerInternalBusinessService extends Service {\n  @service('feature/inbox/internal-business/tasks-fetcher')\n  private inboxTasksFetcher: InboxTasksFetcherInternalBusinessService;\n\n  @service('shared/state/layout') layoutState: LayoutState;\n\n  @service private currentUser: CurrentUserService;\n  @service private eventBus: EventBusService;\n  @service private store: StoreService;\n  @service private segmentTracker: SegmentTrackerService;\n  @service private lianaSession: LianaSessionService;\n  @service('local-storage') private localStorage: LocalStorageService;\n\n  public canAccessInbox(inbox: InboxModel) {\n    return (\n      this.currentUser.canBrowseCollection(inbox.collection)\n      && this.currentUser.canReadCollection(inbox.collection)\n    );\n  }\n\n  public canAccessBacklog() {\n    return this.currentUser.can('accessInboxBacklog');\n  }\n\n  public clearInboxesFromOtherTeams(currentTeamId: string) {\n    this.store.peekAll('inbox').forEach((inbox) => {\n      if (inbox.teamId && inbox.teamId !== currentTeamId) {\n        inbox.unloadRecord();\n      }\n    });\n    this.store\n      .peekAll('segment')\n      .forEach((segment) => segment.isOutsideOfCurrentRendering && segment.unloadRecord());\n  }\n\n  public async getRecordSegments(record: ClientRecordModel) {\n    const collection = getCollectionFromRecord(record);\n    return collection.inboxes.map(({ segment }) => segment);\n  }\n\n  public getInboxById(inboxId: string) {\n    const { rendering } = this.layoutState;\n\n    return rendering.inboxes.find((inbox) => inbox.id === inboxId);\n  }\n\n  public getInboxByIdAndEnsureAccess(inboxId: string) {\n    const inbox = this.getInboxById(inboxId);\n\n    if (!inbox) {\n      throw new InboxNotFoundError();\n    }\n    if (!this.canAccessInbox(inbox)) {\n      throw new InboxAccessForbiddenError(inbox);\n    }\n\n    return inbox;\n  }\n\n  public async createInbox(inboxParameters: object & InboxInterface) {\n    const inbox = this.store.createRecord('inbox', inboxParameters);\n\n    try {\n      await inbox.save();\n\n      this.segmentTracker.trackInboxCreated(inbox.id);\n    } catch (error) {\n      inbox.unloadRecord();\n      throw error;\n    }\n\n    return inbox;\n  }\n\n  public async updateInbox(inbox: InboxModel, parameters: Partial<InboxInterface>) {\n    Object.assign(inbox, parameters);\n\n    try {\n      await inbox.save();\n      this.segmentTracker.trackInboxUpdated(inbox.id);\n    } catch (error) {\n      inbox.rollbackAttributes();\n      throw error;\n    }\n\n    return inbox;\n  }\n\n  public async deleteInbox(inbox: InboxModel) {\n    try {\n      await inbox.destroyRecord();\n      this.segmentTracker.trackInboxDeleted(inbox.id);\n    } catch (error) {\n      inbox.rollbackAttributes();\n      throw error;\n    }\n  }\n\n  public async markInboxAssignmentAsDone(inboxAssignment: InboxAssignmentModel) {\n    inboxAssignment.state = InboxAssignmentStateEnum.Done;\n\n    try {\n      await inboxAssignment.save();\n    } catch (error) {\n      console.debug('markInboxAssignmentAsDone:', error);\n    }\n    if (!inboxAssignment.inbox.isWorkflow) {\n      // We don't need this assignment anymore\n      inboxAssignment.deleteRecord();\n    }\n    this.eventBus.trigger(EventBusEventsEnum.InboxAssignmentUpdated, {\n      inbox: inboxAssignment.inbox,\n    });\n  }\n\n  public async startNewWorkflowTask(inbox: InboxModel): Promise<InboxAssignmentModel | null> {\n    let assignments = await this.inboxTasksFetcher.fetchAssignments({\n      inboxes: [inbox],\n      states: [InboxAssignmentStateEnum.Todo],\n      assigneeIds: [this.currentUser.model.id],\n    });\n    let assignmentToStart: InboxAssignmentModel;\n    if (assignments.length > 0) {\n      // here the user has already a task assigned to him\n      assignmentToStart = assignments.sortBy('createdAt').firstObject;\n    } else {\n      assignments = await this.inboxTasksFetcher.fetchAssignments({\n        inboxes: [inbox],\n        states: [InboxAssignmentStateEnum.Todo],\n      });\n      if (assignments.length === 0) {\n        throw new InboxNoRecordsToTreatError();\n      }\n      const record = await this.inboxTasksFetcher.fetchToDoRecordForWorkflow(inbox, assignments);\n      if (!record) {\n        throw new InboxNoRecordsToTreatError();\n      }\n      assignmentToStart = assignments.find((assignment) => assignment.recordId === record.id);\n    }\n    await this.assignWorkflowTaskToUser(assignmentToStart, this.currentUser.model);\n    return assignmentToStart;\n  }\n\n  public async assignWorkflowTaskToUser(task: InboxAssignmentModel, user: UserModel) {\n    task.state = InboxAssignmentStateEnum.Doing;\n    task.user = user;\n    try {\n      await task.save();\n      this.segmentTracker.trackInboxRecordAssigned(task.inbox.id);\n      this.eventBus.trigger(EventBusEventsEnum.InboxAssignmentUpdated, { inbox: task.inbox });\n      return task;\n    } catch (error) {\n      if (getFirstErrorName(error) === 'InboxAlreadyAssignedError') {\n        task.unloadRecord();\n      }\n      if (getFirstErrorName(error) === 'InboxAssignmentLimitReachedError') {\n        task.unloadRecord();\n        throw new InboxAssignmentLimitTasksReachedError();\n      }\n      throw error;\n    }\n  }\n\n  public async transitionSegmentTodoToDoing(\n    assignment: InboxAssignmentModel,\n  ): Promise<InboxAssignmentModel> {\n    if (assignment.inbox.isWorkflow) {\n      return assignment;\n    }\n\n    assignment.state = InboxAssignmentStateEnum.Doing;\n\n    try {\n      await assignment.save();\n    } catch (error) {\n      assignment.rollbackAttributes();\n      throw error;\n    }\n    this.inboxTasksFetcher.invalidateCacheCountTodoForInbox(assignment.inbox);\n    this.eventBus.trigger(EventBusEventsEnum.InboxAssignmentUpdated, {\n      inbox: assignment.inbox,\n    });\n    return assignment;\n  }\n\n  public async startNewSegmentTask(\n    inbox: InboxModel,\n    isRetryingFailure = false,\n  ): Promise<InboxAssignmentModel> {\n    const toDoTasks = await this.inboxTasksFetcher.fetchTasksToDo(inbox);\n\n    if (toDoTasks.length === 0) {\n      throw new InboxNoRecordsToTreatError();\n    }\n\n    const inboxAssignment =\n      toDoTasks.firstObject?.assignment\n      || this.store.createRecord('inbox-assignment', {\n        inbox,\n        user: this.currentUser.model,\n        state: InboxAssignmentStateEnum.Doing,\n        potentialRecordIds: toDoTasks.map((task) => task.record.id),\n      });\n    inboxAssignment.state = InboxAssignmentStateEnum.Doing;\n\n    try {\n      await inboxAssignment.save();\n      this.segmentTracker.trackInboxRecordAssigned(inbox.id);\n      inbox.inboxAssignments.pushObject(inboxAssignment);\n      this.inboxTasksFetcher.invalidateCacheCountTodoForInbox(inbox);\n      this.eventBus.trigger(EventBusEventsEnum.InboxAssignmentUpdated, { inbox });\n      return inboxAssignment;\n    } catch (error) {\n      if (getFirstErrorName(error) === 'InboxAlreadyAssignedError') {\n        inboxAssignment.unloadRecord();\n        // Try to fetch new tasks to do and create the assignment again\n        this.inboxTasksFetcher.invalidateCacheForInbox(inbox);\n        return this.startNewSegmentTask(inbox);\n      }\n      if (getFirstErrorName(error) === 'InboxAssignmentLimitReachedError') {\n        if (inboxAssignment.isNew) {\n          inboxAssignment.unloadRecord();\n        }\n        if (isRetryingFailure) {\n          throw new InboxAssignmentLimitTasksReachedError();\n        }\n        this.inboxTasksFetcher.invalidateCacheForInbox(inbox);\n        return this.startNewSegmentTask(inbox, true);\n      }\n      throw error;\n    }\n  }\n\n  public async assignRecordToUser(inbox: InboxModel, record: ClientRecordModel, user: UserModel) {\n    let inboxAssignment: InboxAssignmentModel | null = null;\n    try {\n      inboxAssignment = this.store.createRecord('inbox-assignment', {\n        inbox,\n        user,\n        state:\n          this.currentUser.model.id === user.id\n            ? InboxAssignmentStateEnum.Doing\n            : InboxAssignmentStateEnum.Todo,\n        recordId: record.id,\n      });\n      await inboxAssignment.save();\n      inbox.inboxAssignments.pushObject(inboxAssignment);\n      this.eventBus.trigger(EventBusEventsEnum.InboxAssignmentUpdated, { inbox });\n      return inboxAssignment;\n    } catch (error) {\n      inboxAssignment?.unloadRecord();\n      throw error;\n    }\n  }\n\n  public async unassignRecord(\n    inboxAssignment: InboxAssignmentModel,\n    {\n      reason = UnassignReasonEnum.Manual,\n      recreateAssignment = true,\n    }: { reason?: UnassignReasonEnum; recreateAssignment?: boolean } = {},\n  ) {\n    inboxAssignment.state =\n      reason === UnassignReasonEnum.Auto\n        ? InboxAssignmentStateEnum.AutoCanceled\n        : InboxAssignmentStateEnum.Canceled;\n\n    const { recordId, inbox } = inboxAssignment;\n    try {\n      await inboxAssignment.save({ adapterOptions: { reason } });\n\n      if (inbox.isWorkflow && recreateAssignment) {\n        const workflowRun = await inboxAssignment.workflowRun;\n        await this.createInboxWorkflowAssignment(inbox.id, workflowRun, recordId);\n      }\n    } catch (error) {\n      inboxAssignment.rollbackAttributes();\n      throw error;\n    }\n    inboxAssignment.deleteRecord();\n    this.inboxTasksFetcher.invalidateCacheCountTodoForInbox(inbox);\n    this.eventBus.trigger(EventBusEventsEnum.InboxAssignmentUpdated, { inbox });\n  }\n\n  public createSortingFieldFragment(attributes: InboxSortingFieldAttributes) {\n    return this.store.createFragment('inbox-sorting-field', attributes);\n  }\n\n  public async updateLastActionDateOnAssignment(currentInboxAssignment: InboxAssignmentModel) {\n    try {\n      if (!currentInboxAssignment) {\n        throw new Error('No currentInboxAssignment provided');\n      }\n\n      await currentInboxAssignment.save({ adapterOptions: { updateLastActionDate: true } });\n    } catch (error) {\n      if (getFirstErrorName(error) === 'InboxAssignmentAlreadyDoneError') {\n        return;\n      }\n      currentInboxAssignment?.rollbackAttributes();\n      throw error;\n    }\n  }\n\n  public getInboxesByCollectionId(collectionId: string) {\n    return this.layoutState.collections.find(({ id }) => id === collectionId)?.inboxes ?? [];\n  }\n\n  public async getInboxesForTeamAndCollection(teamId: string, collectionId: string) {\n    const inboxes = await this.store.query('inbox', {\n      collectionId,\n      targetTeamId: teamId,\n    });\n\n    return inboxes.toArray();\n  }\n\n  public getEntryPointFromStorage() {\n    const item = this.localStorage.getItem(this.getEntryPointStorageKey());\n    if (item) {\n      return JSON.parse(item) as { type: InboxEntryPointEnum; path?: string; inboxId?: string };\n    }\n    return null;\n  }\n\n  public setEntryPointToStorage(entryPoint: {\n    type: InboxEntryPointEnum;\n    path?: string;\n    inboxId?: string;\n  }) {\n    this.localStorage.setItem(this.getEntryPointStorageKey(), JSON.stringify(entryPoint));\n  }\n\n  private getEntryPointStorageKey() {\n    const projectName = this.lianaSession.currentProject?.name;\n    const renderingId = this.lianaSession.currentRenderingId;\n    return `inbox_entry_point_${projectName}_${renderingId}`;\n  }\n\n  public getCollectionsWithInboxes() {\n    return this.layoutState.collections.filter(({ inboxes }) => inboxes.length > 0);\n  }\n\n  public async createInboxWorkflowAssignment(\n    inboxId: string,\n    workflowRun: WorkflowRunModel,\n    recordId: string,\n  ) {\n    const inbox = this.layoutState.inboxes.findBy('id', inboxId);\n    if (!inbox) {\n      return null;\n    }\n    const inboxAssignment = this.store.createRecord('inbox-assignment', {\n      inbox,\n      state: InboxAssignmentStateEnum.Todo,\n      workflowRun,\n      recordId,\n      environment: this.layoutState.rendering.environment,\n    });\n\n    await inboxAssignment.save();\n\n    return inboxAssignment;\n  }\n}\n","import type InboxModel from 'client/data/models/inbox';\nimport type InboxAssignmentModel from 'client/data/models/inbox-assignment';\nimport type { InboxAssignmentFilters } from 'client/features/inbox/services/internal-business/backlog-tasks-fetcher';\nimport type InboxManagerInternalBusinessService from 'client/features/inbox/services/internal-business/inbox-manager';\nimport type CollectionBusinessService from 'client/legacy/services/business/collection';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type RecordsManagerService from 'client/legacy/services/records-manager';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\nimport moment from 'moment';\n\nimport { SortingOrderEnum } from 'client/data/models/collection';\nimport { InboxDispatchRuleEnum, InboxTypeEnum } from 'client/data/models/inbox';\nimport { InboxAssignmentStateEnum } from 'client/data/models/inbox-assignment';\nimport preventAsyncConcurrency from 'client/decorators/prevent-async-concurrency';\nimport { InboxAssignmentClosedNotInSegmentError } from 'client/features/inbox/errors';\nimport { UnassignReasonEnum } from 'client/features/inbox/services/internal-business/inbox-manager';\nimport { FetchAgentError } from 'client/utils/errors';\nimport { OPERATOR_IS_IN, OPERATOR_IS_NOT } from 'client/utils/operators';\n\nexport interface TaskWithRecord {\n  record?: ClientRecordModel;\n  assignment?: InboxAssignmentModel;\n}\n\ninterface InboxAssignmentsCache {\n  lastFetchedAt: Date;\n  inboxAssignments: InboxAssignmentModel[];\n}\n\ninterface InboxAssignmentsWithRecordCache {\n  lastFetchedAt: Date;\n  inboxAssignments: TaskWithRecord[];\n}\ninterface TasksToDoCache {\n  lastFetchedAt: Date;\n  tasksToDo: TaskWithRecord[];\n}\n\ninterface CountToDoCache {\n  lastFetchedAt: Date;\n  count: number;\n}\ninterface TasksCurrentUserCache {\n  lastFetchedAt: Date;\n  tasks: TaskWithRecord[];\n}\n\n// Cache of 1 sec\nconst CACHE_DOING_TTL = 1000 * 1;\n// Cache of 1 sec\nconst ASSIGNMENT_CACHE_TTL = 1000 * 1;\n// Cache of 1 sec\nconst CLIENT_RECORD_CACHE_TTL = 1000 * 1;\nexport const NUMBER_OF_TO_DO_TASKS_TO_FETCH = 10;\nexport const NUMBER_OF_RECORDS_PER_PAGE_BACKLOG = 20;\n\nexport function isCacheValid(cache: { lastFetchedAt: Date }, cacheTTL: number) {\n  return cache && cache.lastFetchedAt.getTime() > Date.now() - cacheTTL;\n}\n\nexport default class InboxTasksFetcherInternalBusinessService extends Service {\n  @service private recordsManager: RecordsManagerService;\n  @service('business/collection') private collectionBusiness: CollectionBusinessService;\n  @service private currentUser: CurrentUserService;\n  @service private store: StoreService;\n  @service('feature/inbox/internal-business/inbox-manager')\n  private inboxManager: InboxManagerInternalBusinessService;\n\n  @service private errorHandler: ErrorHandlerService;\n\n  private cacheInboxOpenAssignments: Map<InboxModel, InboxAssignmentsCache> = new Map();\n  private cacheInboxOpenAssignmentsWithRecords: Map<InboxModel, InboxAssignmentsWithRecordCache> =\n    new Map();\n\n  private cacheTasksToDo: Map<InboxModel, TasksToDoCache> = new Map();\n  private cacheCountToDo: Map<InboxModel, CountToDoCache> = new Map();\n  private cacheCurrentUserAssignments: Map<InboxModel, TasksCurrentUserCache> = new Map();\n\n  @preventAsyncConcurrency\n  public async fetchOpenAssignmentsForInbox(inbox: InboxModel) {\n    const cache = this.cacheInboxOpenAssignments.get(inbox);\n    if (isCacheValid(cache, ASSIGNMENT_CACHE_TTL)) {\n      return cache.inboxAssignments.filter(\n        (assignment) =>\n          !assignment.isNew\n          && !assignment.isDeleted\n          && !assignment.isDestroying\n          && !assignment.isDestroyed,\n      );\n    }\n\n    const assignments = (await inbox\n      .hasMany('inboxAssignments')\n      .reload()) as InboxAssignmentModel[];\n    this.cacheInboxOpenAssignments.set(inbox, {\n      lastFetchedAt: new Date(),\n      inboxAssignments: assignments,\n    });\n    return assignments.filter((assignment) => !assignment.isNew && !assignment.isDeleted);\n  }\n\n  @preventAsyncConcurrency\n  public async fetchOpenAssignmentsForInboxAndEnsureState(inbox: InboxModel) {\n    const cache = this.cacheInboxOpenAssignmentsWithRecords.get(inbox);\n    if (isCacheValid(cache, ASSIGNMENT_CACHE_TTL)) {\n      return cache.inboxAssignments.filter(\n        ({ assignment }) => !assignment.isDestroying && !assignment.isDestroyed,\n      );\n    }\n\n    const assignments = await this.fetchOpenAssignmentsForInbox(inbox);\n    const assignmentsWithTasks = await this.fetchRecordsForAssignmentsAndEnsureState(\n      inbox,\n      assignments,\n    );\n\n    this.cacheInboxOpenAssignmentsWithRecords.set(inbox, {\n      lastFetchedAt: new Date(),\n      inboxAssignments: assignmentsWithTasks,\n    });\n\n    return assignmentsWithTasks;\n  }\n\n  public async fetchAssignments(filters: InboxAssignmentFilters, offset?: number, limit?: number) {\n    const { inboxes, ...unchangedFilters } = filters;\n\n    const inboxIds = filters.inboxIds || inboxes.map((inbox) => inbox.id);\n\n    const assignments = await this.store.query('inbox-assignment', {\n      filters: {\n        ...unchangedFilters,\n        inboxIds,\n      },\n      offset,\n      limit,\n    });\n\n    return assignments.toArray();\n  }\n\n  public async fetchRecordsForAssignmentsAndEnsureState(\n    inbox: InboxModel,\n    assignments: InboxAssignmentModel[],\n    shouldFetchOnCollection = false,\n  ) {\n    try {\n      const records = await this.fetchRecordsForAssignments(assignments, inbox, {\n        shouldFetchOnCollection,\n      });\n\n      const assignmentsWithRecord = assignments.map((assignment) => {\n        const record = records.find((item) => item.id === assignment.recordId) || null;\n\n        if (\n          inbox.unassignAfter\n          && [InboxAssignmentStateEnum.Todo, InboxAssignmentStateEnum.Doing].includes(\n            assignment.state,\n          )\n          && moment(assignment.startedProcessingAt || assignment.createdAt).isBefore(\n            moment().subtract(inbox.unassignAfter.duration, inbox.unassignAfter.unit),\n          )\n        ) {\n          return { assignment, record, mustBeAutomaticallyClosed: true };\n        }\n        return { assignment, record };\n      });\n\n      if (shouldFetchOnCollection) {\n        return assignmentsWithRecord;\n      }\n\n      // Mark as done the assignments that are not in the segment anymore\n      const promises = assignmentsWithRecord\n        .filter(\n          ({ record, assignment, mustBeAutomaticallyClosed }) =>\n            (record === null || mustBeAutomaticallyClosed)\n            && [InboxAssignmentStateEnum.Todo, InboxAssignmentStateEnum.Doing].includes(\n              assignment.state,\n            ),\n        )\n        .map(async ({ assignment, record }) => {\n          if (record) {\n            await this.inboxManager.unassignRecord(assignment, { reason: UnassignReasonEnum.Auto });\n          } else {\n            // There is no lastActionDate on Todo tasks\n            // Here an assigned Todo task have been treated outside of the inbox\n            if (!assignment.lastActionDate) {\n              return this.inboxManager.unassignRecord(assignment, {\n                reason: UnassignReasonEnum.Cancel,\n                recreateAssignment: false,\n              });\n            }\n            // Only log silent error when no action was taken on the assignment\n            const lastActionTime = assignment.lastActionDate?.getTime();\n            const createdTime = assignment.createdAt.getTime();\n            if (lastActionTime === createdTime || !lastActionTime) {\n              const requestedRecordIds = assignments.map((a) => a.recordId);\n              const fetchedRecordIds = records.map((r) => r.id);\n              this.errorHandler.handleSilentError(new InboxAssignmentClosedNotInSegmentError(), {\n                assignmentId: assignment.id,\n                inboxId: inbox.id,\n                requestedRecordIds,\n                fetchedRecordIds,\n              });\n            }\n            await this.inboxManager.markInboxAssignmentAsDone(assignment);\n          }\n        });\n\n      await Promise.all(promises);\n      // Get only the record that are still in the segment\n      return assignmentsWithRecord.filter(\n        ({ assignment }) => !assignment.isDestroyed && !assignment.isDestroying,\n      );\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(\n        error as Error,\n        'An error happened while fetching the remaining tasks in the inbox',\n      );\n      // In the case of a throw while retrieving the records we don't want to mark tasks as Done\n      // as we don't know what actually happens.\n      // Instead we will consider everything as not updated and try to retrieve a much information as possible\n      // from the store\n      return assignments.map((assignment) => ({\n        assignment,\n        record: this.store.peekRecord(\n          inbox.collection.emberModelName,\n          assignment.recordId,\n        ) as ClientRecordModel,\n      }));\n    }\n  }\n\n  private getCurrentUserAssignmentFromCache(\n    inbox: InboxModel,\n    currentUserAssignments: InboxAssignmentModel[],\n  ) {\n    // We need to recompute the list to make sure that all assignments are returned\n    this.cacheCurrentUserAssignments.set(inbox, {\n      lastFetchedAt: this.cacheCurrentUserAssignments.get(inbox).lastFetchedAt,\n      tasks: currentUserAssignments\n        .filter((assignment) => !assignment.isNew)\n        .map((assignment) => ({\n          assignment,\n          // Everything has already been fetch, so no need to fetch the data again\n          record: this.store.peekRecord(\n            inbox.collection.emberModelName,\n            assignment.recordId,\n          ) as ClientRecordModel,\n        }))\n        .filter((item) => item.record),\n    });\n\n    return this.cacheCurrentUserAssignments.get(inbox).tasks;\n  }\n\n  private async getCurrentUserAssignments(assignments: InboxAssignmentModel[]) {\n    return assignments.filter(\n      (assignment) => assignment.belongsTo('user').id() === this.currentUser.model?.id,\n    );\n  }\n\n  @preventAsyncConcurrency\n  private async fetchCurrentUserAssignmentAndEnsureState(inbox: InboxModel) {\n    const cache = this.cacheCurrentUserAssignments.get(inbox);\n\n    if (isCacheValid(cache, CACHE_DOING_TTL)) {\n      const currentUserAssignments = await this.getCurrentUserAssignments(\n        await this.fetchOpenAssignmentsForInbox(inbox),\n      );\n      return this.getCurrentUserAssignmentFromCache(inbox, currentUserAssignments);\n    }\n\n    const allAssignmentsWithRecord = await this.fetchOpenAssignmentsForInboxAndEnsureState(inbox);\n    const currentUserAssignments = await this.getCurrentUserAssignments(\n      allAssignmentsWithRecord.map(({ assignment }) => assignment),\n    );\n    const assignmentsToReturn = currentUserAssignments.map((assignment) =>\n      allAssignmentsWithRecord.find((taskWithRecord) => taskWithRecord.assignment === assignment),\n    );\n\n    this.cacheCurrentUserAssignments.set(inbox, {\n      lastFetchedAt: new Date(),\n      tasks: assignmentsToReturn,\n    });\n\n    return assignmentsToReturn;\n  }\n\n  private buildFilterForRecordState({\n    inbox,\n    recordIdsToExclude,\n    recordIdsToInclude,\n  }: {\n    inbox: InboxModel;\n    recordIdsToExclude: string[];\n    recordIdsToInclude: string[];\n  }) {\n    if (inbox.type === InboxTypeEnum.Segment) {\n      return recordIdsToExclude.length > 0\n        ? this.store.createRecord('filter', {\n            filteredCollection: inbox.collection,\n            conditions: recordIdsToExclude.map((recordId) => ({\n              fieldName: inbox.collection.primaryKey,\n              operator: OPERATOR_IS_NOT.displayName,\n              value: recordId,\n            })),\n          })\n        : undefined;\n    }\n    return this.store.createRecord('filter', {\n      filteredCollection: inbox.collection,\n      conditions: [\n        {\n          fieldName: inbox.collection.primaryKey,\n          operator: OPERATOR_IS_IN.displayName,\n          value: recordIdsToInclude,\n        },\n      ],\n    });\n  }\n\n  private async buildRecordsStateForInbox({\n    inbox,\n    recordIdsToInclude = [],\n    recordIdsToExclude = [],\n    shouldFetchDisplayField = false,\n  }: {\n    inbox: InboxModel;\n    recordIdsToExclude?: string[];\n    recordIdsToInclude?: string[];\n    shouldFetchDisplayField?: boolean;\n  }) {\n    const columns = [{ field: inbox.collection.primaryField }];\n    if (\n      shouldFetchDisplayField\n      && inbox.collection.displayField\n      && inbox.collection.displayField !== inbox.collection.primaryField\n    ) {\n      columns.push({ field: inbox.collection.displayField });\n    }\n\n    return this.collectionBusiness.createRecordState({\n      modelToFetch: inbox.modelToFetch,\n      columns,\n      recordsPerPage: NUMBER_OF_TO_DO_TASKS_TO_FETCH,\n      filter: this.buildFilterForRecordState({ inbox, recordIdsToExclude, recordIdsToInclude }),\n      sortingParameters: inbox.sortingFields.length\n        ? inbox.sortingFields.map((sortingField) => sortingField.toJSON())\n        : [\n            {\n              fieldName: this.collectionBusiness.getDefaultSortingFieldName(inbox.modelToFetch),\n              order: SortingOrderEnum.Descending,\n            },\n          ],\n    });\n  }\n\n  public async getRecordsContextForToDoTasks(\n    inbox: InboxModel,\n    {\n      shouldIgnoreRandomSortRule = false,\n      isCurrentUserTasksOnly = true,\n      shouldFetchDisplayField = false,\n      shouldIgnoreAllToDoTasks = false,\n    }: {\n      shouldIgnoreRandomSortRule?: boolean;\n      isCurrentUserTasksOnly?: boolean;\n      shouldFetchDisplayField?: boolean;\n      shouldIgnoreAllToDoTasks?: boolean;\n    } = {},\n  ) {\n    const inboxAssignments = await this.fetchOpenAssignmentsForInboxAndEnsureState(inbox);\n    const inboxAssignmentsToExclude = inboxAssignments.filter(\n      ({ assignment }) =>\n        shouldIgnoreAllToDoTasks\n        || (isCurrentUserTasksOnly\n          && assignment.belongsTo('user').id() !== this.currentUser.model.id)\n        || assignment.state === InboxAssignmentStateEnum.Doing,\n    );\n    const recordsState = await this.buildRecordsStateForInbox({\n      inbox,\n      recordIdsToExclude: inboxAssignmentsToExclude.map(({ assignment }) => assignment.recordId),\n      shouldFetchDisplayField,\n    });\n    if (shouldIgnoreRandomSortRule || inbox.dispatchRule !== InboxDispatchRuleEnum.Random) {\n      return recordsState;\n    }\n\n    const isSuccess = await this.recordsManager.fetchRecordsCount.perform(recordsState);\n    if (recordsState.error || recordsState.isCountDeactivated || !isSuccess) {\n      // This means the user has deactivated the count on his collection\n      // In this case we will simulate another type of random\n      const sortingFieldIndex = Math.floor(Math.random() * inbox.collection.sortingFields.length);\n      const sortingField = inbox.collection.sortingFields.objectAt(sortingFieldIndex);\n      const order = Math.random() > 0.5 ? SortingOrderEnum.Ascending : SortingOrderEnum.Descending;\n      recordsState.sortingParameters = [{ fieldName: sortingField.fieldName, order }];\n    } else {\n      recordsState.recordsPerPage = 1;\n      recordsState.currentPage =\n        Math.floor(\n          (Math.random() * Math.max(recordsState.recordsCount - recordsState.recordsPerPage, 0))\n            / recordsState.recordsPerPage,\n        ) + 1;\n    }\n\n    return recordsState;\n  }\n\n  // For workflow inboxes only\n  public async fetchToDoRecordForWorkflow(inbox: InboxModel, assignments: InboxAssignmentModel[]) {\n    if (inbox.type !== InboxTypeEnum.Workflow) {\n      throw new Error('fetchToDoTaskRecordToProcess can only be used for workflow inboxes');\n    }\n    const recordsState = await this.buildRecordsStateForInbox({\n      inbox,\n      recordIdsToInclude: assignments.map((assignment) => assignment.recordId),\n      shouldFetchDisplayField: false,\n    });\n    recordsState.recordsPerPage = 1;\n    if (inbox.dispatchRule === InboxDispatchRuleEnum.Random) {\n      recordsState.currentPage = Math.floor(Math.random() * assignments.length) + 1;\n    } else {\n      recordsState.currentPage = 1;\n    }\n    await this.recordsManager.fetchRecordsList.perform(recordsState);\n\n    return recordsState.records?.firstObject;\n  }\n\n  public async fetchExistingToDoTasks(inbox: InboxModel): Promise<TaskWithRecord[]> {\n    const currentUserAssignments = await this.fetchCurrentUserAssignmentAndEnsureState(inbox);\n    return currentUserAssignments\n      .filter((assignment) => assignment.assignment.state === InboxAssignmentStateEnum.Todo)\n      .sortBy('createdAt');\n  }\n\n  @preventAsyncConcurrency\n  public async fetchNumberOfToDoTasks(inbox: InboxModel) {\n    const cache = this.cacheCountToDo.get(inbox);\n    if (isCacheValid(cache, CLIENT_RECORD_CACHE_TTL)) {\n      return cache.count;\n    }\n    const recordsContext = await this.getRecordsContextForToDoTasks(inbox, {\n      shouldIgnoreRandomSortRule: true,\n    });\n    const isSuccess = await this.recordsManager.fetchRecordsCount.perform(recordsContext);\n    if (recordsContext.error || recordsContext.isCountDeactivated || !isSuccess) {\n      throw new FetchAgentError(new Error(), 'Failed to count to do tasks');\n    }\n\n    this.cacheCountToDo.set(inbox, {\n      lastFetchedAt: new Date(),\n      count: recordsContext.recordsCount,\n    });\n\n    return recordsContext.recordsCount;\n  }\n\n  public async fetchDoingTasksWithRecord(inbox: InboxModel) {\n    const doingTasks = await this.fetchCurrentUserAssignmentAndEnsureState(inbox);\n    return doingTasks\n      .filter(({ assignment }) => assignment.state === InboxAssignmentStateEnum.Doing)\n      .sortBy('assignment.createdAt')\n      .reverse();\n  }\n\n  public async fetchRecordsForAssignments(\n    inboxAssignments: InboxAssignmentModel[],\n    inbox: InboxModel,\n    { shouldFetchOnCollection = false }: { shouldFetchOnCollection?: boolean } = {},\n  ) {\n    if (!inboxAssignments.length) return [];\n\n    const recordIds = inboxAssignments.map((inboxAssignment) => inboxAssignment.recordId).uniq();\n    return this.collectionBusiness.getRecordsInCollectionOrSegment(\n      shouldFetchOnCollection || inbox.type === InboxTypeEnum.Workflow\n        ? inbox.collection\n        : inbox.segment,\n      recordIds,\n      inbox.collection.displayField ? [inbox.collection.displayField] : [],\n    );\n  }\n\n  public async fetchNumberOfDoingTasks(inbox: InboxModel) {\n    return (await this.fetchDoingTasksWithRecord(inbox)).length;\n  }\n\n  @preventAsyncConcurrency\n  public async fetchAllRecordsToDo(inbox: InboxModel): Promise<TaskWithRecord[]> {\n    const cache = this.cacheTasksToDo.get(inbox);\n    if (isCacheValid(cache, CLIENT_RECORD_CACHE_TTL) && !cache.tasksToDo?.firstObject?.assignment) {\n      return cache.tasksToDo;\n    }\n\n    const recordsContext = await this.getRecordsContextForToDoTasks(inbox);\n    await this.recordsManager.fetchRecordsList.perform(recordsContext);\n\n    if (recordsContext.error) {\n      throw new FetchAgentError(\n        recordsContext.error as unknown as Error,\n        'Failed to fetch tasks to do',\n      );\n    }\n\n    return recordsContext.records.toArray().map((record) => ({ record }));\n  }\n\n  @preventAsyncConcurrency\n  public async fetchTasksToDo(inbox: InboxModel): Promise<TaskWithRecord[]> {\n    const cache = this.cacheTasksToDo.get(inbox);\n    if (isCacheValid(cache, CLIENT_RECORD_CACHE_TTL)) {\n      return cache.tasksToDo;\n    }\n\n    const toDoTasks = await this.fetchExistingToDoTasks(inbox);\n    if (toDoTasks.length) {\n      return toDoTasks;\n    }\n\n    const newToDoTasks = await this.fetchAllRecordsToDo(inbox);\n    this.cacheTasksToDo.set(inbox, { lastFetchedAt: new Date(), tasksToDo: newToDoTasks });\n    return newToDoTasks;\n  }\n\n  public async fetchAssignmentForRecord(\n    inbox: InboxModel,\n    record: ClientRecordModel | { id: string },\n  ) {\n    const assignments = await this.fetchOpenAssignmentsForInbox(inbox);\n    return assignments?.find((assignment) => assignment.recordId === record.id);\n  }\n\n  public invalidateCacheCountTodoForInbox(inbox: InboxModel) {\n    this.cacheCountToDo.delete(inbox);\n  }\n\n  public invalidateCacheForInbox(inbox: InboxModel) {\n    this.cacheInboxOpenAssignments.delete(inbox);\n    this.cacheInboxOpenAssignmentsWithRecords.delete(inbox);\n    this.cacheTasksToDo.delete(inbox);\n    this.cacheCountToDo.delete(inbox);\n    this.cacheCurrentUserAssignments.delete(inbox);\n  }\n\n  public async fetchAssignmentsAndEnsureState(filters: {\n    states: Exclude<\n      InboxAssignmentStateEnum,\n      InboxAssignmentStateEnum.Canceled | InboxAssignmentStateEnum.AutoCanceled\n    >[];\n    recordIds: string[];\n    inboxes: InboxModel[];\n  }) {\n    const { states, recordIds, inboxes } = filters;\n    const currentUserId = this.currentUser.model.id;\n\n    const inboxAssignments = await this.fetchAssignments({\n      inboxes,\n      states,\n      assigneeIds: [currentUserId],\n      recordIds,\n    });\n\n    const promises = inboxAssignments\n      .uniqBy('inbox.id')\n      .map(async (inboxAssignment) =>\n        this.fetchCurrentUserAssignmentAndEnsureState(inboxAssignment.inbox),\n      );\n\n    const assignmentsWithRecord = (await Promise.all(promises)).flat();\n\n    return inboxAssignments.reduce((result: InboxAssignmentModel[], assignment) => {\n      if (assignmentsWithRecord.find((item) => item.assignment.id === assignment.id)) {\n        return [...result, assignment];\n      }\n      return result;\n    }, []);\n  }\n}\n","import type InboxModel from 'client/data/models/inbox';\nimport type { SingleInboxAssignmentFilters } from 'client/features/inbox/services/internal-business/backlog-tasks-fetcher';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\n\nimport Service, { service } from '@ember/service';\n\nexport default class InboxWorkflowFetcherInternalBusinessService extends Service {\n  @service private serverFetch: ServerFetchService;\n\n  public async countAssignments(inbox: InboxModel, filters: SingleInboxAssignmentFilters) {\n    if (filters.states.length === 0) {\n      return 0;\n    }\n\n    const response = await this.serverFetch.fetch(\n      '/api/inbox-assignments/count',\n      {\n        queryParams: {\n          filters: {\n            ...filters,\n            inboxIds: [inbox.id],\n          },\n        },\n      },\n      true,\n    );\n\n    const body = (await response.json()) as { meta: { count: number } };\n    const count = body?.meta?.count;\n\n    return count;\n  }\n}\n","import type InboxModel from 'client/data/models/inbox';\nimport type InboxAssignmentModel from 'client/data/models/inbox-assignment';\nimport type { SingleInboxAssignmentFilters } from 'client/features/inbox/services/internal-business/backlog-tasks-fetcher';\nimport type InboxManagerInternalBusinessService from 'client/features/inbox/services/internal-business/inbox-manager';\nimport type InboxTasksFetcherInternalBusinessService from 'client/features/inbox/services/internal-business/tasks-fetcher';\nimport type InboxWorkflowFetcherInternalBusinessService from 'client/features/inbox/services/internal-business/workflow-fetcher';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\n\nimport { InboxAssignmentStateEnum } from 'client/data/models/inbox-assignment';\nimport asyncFilter from 'client/utils/async-filter';\n\nexport enum EndAssignmentReasonEnum {\n  Abort = 'abort',\n  Complete = 'complete',\n  Escalate = 'escalate',\n  Revise = 'revise',\n}\n\nexport default class InboxWorkflowInternalFeatureService extends Service {\n  @service('feature/inbox/internal-business/workflow-fetcher')\n  private inboxWorkflowFetcherInternalBusinessService!: InboxWorkflowFetcherInternalBusinessService;\n\n  @service errorHandler: ErrorHandlerService;\n\n  @service('feature/workflow') private workflowFeature: WorkflowFeatureService;\n  @service('feature/inbox/internal-business/tasks-fetcher')\n  private tasksFetcher: InboxTasksFetcherInternalBusinessService;\n\n  @service('feature/inbox/internal-business/inbox-manager')\n  private inboxManager: InboxManagerInternalBusinessService;\n\n  public async countAssignments(inbox: InboxModel, filters: SingleInboxAssignmentFilters) {\n    return this.inboxWorkflowFetcherInternalBusinessService.countAssignments(inbox, filters);\n  }\n\n  public async getInboxAssignmentFromWorkflowRunId(\n    workflowRunId: string,\n    inboxId: string,\n  ): Promise<InboxAssignmentModel | null> {\n    try {\n      const inboxAssignments = await this.tasksFetcher.fetchAssignments({\n        inboxIds: [inboxId],\n        states: [InboxAssignmentStateEnum.Doing, InboxAssignmentStateEnum.Todo],\n      });\n\n      const [matchingAssignment] = await asyncFilter(\n        inboxAssignments,\n        async (inboxAssignment) => (await inboxAssignment.workflowRun)?.id === workflowRunId,\n      );\n      return matchingAssignment;\n    } catch (error) {\n      this.errorHandler.handleError(error as Error, 'Error retrieving inbox assignment');\n      return null;\n    }\n  }\n\n  @action\n  public async handleClosingWorkflowInboxAssignment({\n    workflowRunId,\n    reason,\n  }: {\n    workflowRunId: string;\n    reason: EndAssignmentReasonEnum;\n  }): Promise<null> {\n    // Get the inboxId from the escalated step\n    const escalatedInboxId = this.workflowFeature.getLastEscalationInboxId({\n      skipLastStep: reason === EndAssignmentReasonEnum.Escalate,\n      includeRevisedOrCanceled: reason === EndAssignmentReasonEnum.Revise,\n    });\n\n    if (!escalatedInboxId || !workflowRunId) {\n      return null;\n    }\n    const assignment = await this.getInboxAssignmentFromWorkflowRunId(\n      workflowRunId,\n      escalatedInboxId,\n    );\n\n    if (!assignment) return;\n\n    if (reason === EndAssignmentReasonEnum.Abort || reason === EndAssignmentReasonEnum.Revise) {\n      await this.inboxManager.unassignRecord(assignment, { recreateAssignment: false });\n    } else {\n      await this.inboxManager.updateLastActionDateOnAssignment(assignment);\n      await this.inboxManager.markInboxAssignmentAsDone(assignment);\n    }\n  }\n}\n","import type InboxAssignmentModel from 'client/data/models/inbox-assignment';\n\nimport Service from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport { InboxAssignmentStateEnum } from 'client/data/models/inbox-assignment';\n\nexport enum InboxEntryPointEnum {\n  Inbox = 'inbox',\n  Workspace = 'workspace',\n}\n\nexport default class InboxState extends Service {\n  @tracked private _currentInboxAssignment: InboxAssignmentModel | null = null;\n  @tracked public entryPointType: InboxEntryPointEnum | null = null;\n  // Entry point path is the workspace id when entry point type is 'workspace'\n  @tracked public entryPointPath: string | null = null;\n  @tracked public entryPointInboxId: string | null = null;\n\n  public get currentInboxAssignment() {\n    if (this._currentInboxAssignment?.isDestroyed || this._currentInboxAssignment?.isDestroying) {\n      return null;\n    }\n\n    const state = this._currentInboxAssignment?.state;\n    const isWorkflowInbox = this._currentInboxAssignment?.inbox?.isWorkflow;\n\n    // For workflow inboxes, keep the assignment visible when Done\n    // so the notification bar remains open after completing the workflow\n    if (state === InboxAssignmentStateEnum.Doing) {\n      return this._currentInboxAssignment;\n    }\n\n    if (isWorkflowInbox && state === InboxAssignmentStateEnum.Done) {\n      return this._currentInboxAssignment;\n    }\n\n    return null;\n  }\n\n  public set currentInboxAssignment(inboxAssignment: InboxAssignmentModel | null) {\n    this._currentInboxAssignment = inboxAssignment;\n  }\n}\n","import type { Router } from '@ember/routing';\nimport type { AuthenticationType } from 'client/data/models/mcp-server-config';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\nimport type McpServerFeatureState from 'client/features/mcp-server/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { type Integration, integrationsData } from 'client/features/mcp-server/integration-data';\n\nexport default class McpServerCreateComponent extends Component {\n  @service private readonly router: Router;\n  @service('feature/mcp-server') private mcpServerFeature: McpServerFeatureService;\n  @service('feature/mcp-server/state') private mcpServerState: McpServerFeatureState;\n\n  get integration(): Integration | undefined {\n    if (!this.mcpServerState.integrationName) {\n      return undefined;\n    }\n\n    return integrationsData.find((i) => i.name === this.mcpServerState.integrationName);\n  }\n\n  @action\n  async handleClose() {\n    this.mcpServerFeature.setIntegrationName(null);\n    await this.router.transitionTo('project.project-settings.connectors');\n  }\n\n  @action\n  async handleCreate({\n    serverName,\n    serverUrl,\n    config,\n    authenticationType,\n  }: {\n    serverName: string;\n    serverUrl: string | null;\n    config: Record<string, unknown>;\n    authenticationType: AuthenticationType;\n  }) {\n    const mcpServer = await this.mcpServerFeature.createMcpServer({\n      serverName,\n      serverUrl,\n      config,\n      authenticationType,\n      integrationName: this.integration?.name,\n      isForestConnector: this.integration?.isForestConnector,\n    });\n\n    if (mcpServer) {\n      await this.router.transitionTo(\n        'project.project-settings.connectors.mcp-server',\n        mcpServer.id,\n      );\n      this.mcpServerFeature.setIntegrationName(null);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout\\n  @onClose={{this.handleClose}}\\n  class=\\\"c-feature-mcp-server-create\\\"\\n  data-test-feature-mcp-server-create\\n  ...attributes\\n>\\n  <Feature::McpServer::Form\\n    @title=\\\"Add MCP Server\\\"\\n    @onSave={{this.handleCreate}}\\n    @integration={{this.integration}}\\n  />\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/features/mcp-server/components/create/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type McpServerConfigModel from 'client/data/models/mcp-server-config';\nimport type { RemoteToolDefinition } from 'client/features/ai/services/internal-business/tools';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\nimport type McpServerFeatureState from 'client/features/mcp-server/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ninterface DetailsArgs {\n  mcpServer: McpServerConfigModel;\n}\n\nexport default class McpServerDetailsComponent extends Component<DetailsArgs> {\n  @service('feature/mcp-server/state') public mcpServerState: McpServerFeatureState;\n  @service('feature/mcp-server') private mcpServerFeature: McpServerFeatureService;\n  @service private router: RouterService;\n\n  @tracked tools: RemoteToolDefinition[] = null;\n  @tracked isLoading: boolean = false;\n\n  constructor(owner: unknown, args: DetailsArgs) {\n    super(owner, args);\n    void this.loadTools();\n  }\n\n  async loadTools() {\n    this.isLoading = true;\n    this.tools = await this.mcpServerFeature.getToolsForMcpServer(this.args.mcpServer);\n    this.isLoading = false;\n  }\n\n  @action\n  async handleClose() {\n    await this.router.transitionTo('project.project-settings.connectors');\n  }\n\n  @action\n  async handleResync() {\n    this.mcpServerFeature.refreshRemoteTools();\n    await this.loadTools();\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.mcpServerFeature.resetHasLoadingError();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout\\n  @onClose={{this.handleClose}}\\n  class=\\\"c-feature-mcp-server-details\\\"\\n  data-test-feature-mcp-server-details\\n  ...attributes\\n>\\n  <header class=\\\"c-feature-mcp-server-details__header\\\">\\n    <span\\n      class=\\\"c-feature-mcp-server-details__header-title\\\"\\n      data-test-feature-mcp-server-details-title\\n    >\\n      MCP Server\\n    </span>\\n    <div class=\\\"c-feature-mcp-server-details__header-row\\\">\\n      <Feature::McpServer::Icon\\n        @serverUrl={{@mcpServer.serverUrl}}\\n        @size={{24}}\\n        data-test-feature-mcp-server-details-icon\\n      />\\n      <span\\n        class=\\\"c-feature-mcp-server-details__header-server-name\\\"\\n        data-test-feature-mcp-server-details-title-name\\n      >\\n        {{@mcpServer.serverName}}\\n      </span>\\n      <Shared::Navigation::BetaLinkTo\\n        @type=\\\"primary\\\"\\n        @routeName=\\\"project.project-settings.connectors.mcp-server.edit\\\"\\n        @routeParameters={{array @mcpServer.id}}\\n        @text=\\\"Edit\\\"\\n        @underline={{false}}\\n        class=\\\"c-feature-mcp-server-details__link\\\"\\n        data-test-feature-mcp-server-details-edit-link\\n      />\\n    </div>\\n  </header>\\n\\n  <div class=\\\"c-feature-mcp-server-details__body\\\">\\n    <Shared::BetaSettingsLayout::SectionForTable\\n      @title=\\\"Tools\\\"\\n      @linkTitle=\\\"Resync\\\"\\n      @onLinkClick={{this.handleResync}}\\n      data-test-feature-mcp-server-details-tools\\n    >\\n      {{#if this.mcpServerState.hasLoadingError}}\\n        <Shared::Feedback::Notification::NotificationInApp\\n          @state=\\\"warning\\\"\\n          class=\\\"c-feature-mcp-server-details__notification\\\"\\n          data-test-feature-mcp-server-details-notification\\n        >\\n          The Tools from this MCP Server could not be retrieved. Make sure that it\\'s running, and\\n          that it\\'s\\n          <Shared::Navigation::BetaLinkTo\\n            @type=\\\"editor\\\"\\n            @routeName=\\\"project.project-settings.connectors.mcp-server.edit\\\"\\n            @routeParameters={{array @mcpServer.id}}\\n            @text=\\\"configured\\\"\\n            data-test-feature-mcp-server-details-notification-link\\n          />\\n          correctly.\\n        </Shared::Feedback::Notification::NotificationInApp>\\n      {{/if}}\\n\\n      <Shared::BetaTable\\n        @columns={{array \\'Name\\'}}\\n        @rows={{this.tools}}\\n        @embedded={{@embedded}}\\n        @sticky={{@sticky}}\\n        @isLoading={{this.isLoading}}\\n        @isFirstColumnLeftAligned={{true}}\\n        as |RowColumn row|\\n      >\\n        <RowColumn @shouldCapitalize={{false}} data-test-feature-mcp-server-details-row-name>\\n          {{row.name}}\\n        </RowColumn>\\n        {{! FIXME: Uncomment when we have the ability to disable tools and add a `Enabled` column }}\\n        {{!-- <RowColumn\\n          @shouldCapitalize={{false}}\\n          data-test-row-column=\\\"enabled\\\"\\n          class=\\\"c-feature-mcp-server-details__row-column-enabled\\\"\\n        >\\n          <Roles::Permissions::Value @value={{row.enabled}} @isInEditMode={{false}} />\\n        </RowColumn> --}}\\n      </Shared::BetaTable>\\n\\n    </Shared::BetaSettingsLayout::SectionForTable>\\n  </div>\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/features/mcp-server/components/details/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type McpServerConfigModel from 'client/data/models/mcp-server-config';\nimport type { McpServerConfigInterface } from 'client/data/models/mcp-server-config';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface EditArgs {\n  mcpServer: McpServerConfigModel;\n}\n\nexport default class McpServerEditComponent extends Component<EditArgs> {\n  @service('feature/mcp-server') private mcpServerFeature: McpServerFeatureService;\n  @service private router: RouterService;\n\n  @action\n  async handleSave(params: McpServerConfigInterface) {\n    await this.mcpServerFeature.updateMcpServer(this.args.mcpServer, params);\n  }\n\n  @action\n  async handleClose() {\n    await this.router.transitionTo('project.project-settings.connectors');\n  }\n\n  @action\n  async handleDelete() {\n    await this.mcpServerFeature.deleteMcpServer(this.args.mcpServer);\n    await this.handleClose();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout\\n  class=\\\"c-feature-mcp-server-edit\\\"\\n  data-test-feature-mcp-server-edit\\n  @onClose={{this.handleClose}}\\n  ...attributes\\n>\\n  <Feature::McpServer::Form\\n    @mcpServer={{@mcpServer}}\\n    @onSave={{this.handleSave}}\\n    @title=\\\"Configuration\\\"\\n    @description=\\\"Edit or delete this MCP Server.\\\"\\n  />\\n  <Shared::BetaSettingsLayout::DeleteSection\\n    @title=\\\"Danger Zone\\\"\\n    @buttonTitle=\\\"Delete MCP Server\\\"\\n    @description=\\\"Removing this MCP Server will permanently remove it.\\\"\\n    @entityName={{@mcpServer.serverName}}\\n    @warningMessage=\\\"Removing this MCP Server will permanently remove it.\\\"\\n    @onDelete={{this.handleDelete}}\\n    data-test-feature-mcp-server-edit-delete\\n  />\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/features/mcp-server/components/edit/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface EmptyStateArgs {\n  onAddNew: () => void;\n}\n\n@validateArguments\nexport default class McpServerEmptyStateComponent extends Component<EmptyStateArgs> {\n  static propTypes = {\n    onAddNew: PropTypes.func.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::EmptyState\\n  @iconName=\\\"add_circle_outline\\\"\\n  class=\\\"c-feature-mcp-server-empty-state\\\"\\n  data-test-feature-mcp-server-empty-state\\n  ...attributes\\n>\\n  <:title>You don\\'t have any MCP Server configured yet...</:title>\\n  <:description>\\n    MCP Servers let you automate Workflow tasks on external tools using natural language.\\n  </:description>\\n  <:footer>\\n    <Shared::Button\\n      @type=\\\"primary\\\"\\n      @text=\\\"Add New\\\"\\n      @iconName=\\\"add\\\"\\n      @size=\\\"small\\\"\\n      @onClick={{@onAddNew}}\\n      data-test-feature-mcp-server-empty-state-add-new-button\\n    />\\n  </:footer>\\n</Shared::EmptyState>\\n', { moduleName: 'client/features/mcp-server/components/empty-state/template.hbs' });\n","import type McpServerConfigModel from 'client/data/models/mcp-server-config';\nimport type { AuthenticationType } from 'client/data/models/mcp-server-config';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\n\nimport { action } from '@ember/object';\nimport { cancel, later } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\nimport {\n  type Integration,\n  forestConnectorsReservedNames,\n  integrationsData,\n} from 'client/features/mcp-server/integration-data';\nimport { REGEX_HTTP_URL } from 'client/utils/regex';\n\nconst WELL_KNOWN_DEBOUNCE_MS = 1000;\n\ninterface OAuthClientConfig {\n  clientId?: string;\n  clientSecret?: string;\n}\n\ninterface OAuthS3Config {\n  oauthConfig?: OAuthClientConfig;\n  headers?: Record<string, string>;\n}\n\ntype FormArgs = {\n  mcpServer?: McpServerConfigModel;\n  integration?: Integration;\n  onSave: (params: {\n    serverName: string;\n    serverUrl: string | null;\n    config: Record<string, unknown>;\n    authenticationType: AuthenticationType;\n  }) => Promise<void>;\n};\n\n@preventLeavingWithoutSaving<typeof McpServerFormComponent>()\nexport default class McpServerFormComponent extends Component<FormArgs> {\n  @service('feature/mcp-server')\n  private mcpServerFeature: McpServerFeatureService;\n\n  @tracked serverName: string =\n    this.args.mcpServer?.serverName || this.args.integration?.name || '';\n\n  @tracked serverUrl: string =\n    this.args.mcpServer?.serverUrl || this.args.integration?.serverUrl || '';\n\n  @tracked authenticationType: AuthenticationType =\n    this.args.mcpServer?.authenticationType\n    || this.args.integration?.authenticationMethodsSupported?.[0]\n    || (this.isForestConnector && 'none')\n    || 'oauth2';\n\n  get isFromIntegration(): boolean {\n    return Boolean(this.args.integration?.serverUrl);\n  }\n\n  @tracked bearerToken: string = this.extractBearerToken() || '';\n  @tracked headersJson: string = this.extractHeadersJson();\n  @tracked forestConnectorConfig: Record<string, unknown> = this.args.mcpServer?.config || {};\n\n  // OAuth specific fields - only client credentials needed (endpoints come from .well-known)\n  @tracked oauthClientId: string = this.extractOAuthField('clientId') || '';\n  @tracked oauthClientSecret: string = this.extractOAuthField('clientSecret') || '';\n  @tracked isLoadingWellKnown: boolean = false;\n  @tracked wellKnownError: string | null = null;\n\n  // Track .well-known discovery state\n  @tracked wellKnownDiscovered: boolean = false;\n  @tracked supportsClientRegistration: boolean = false;\n\n  private wellKnownDebounceTimer: ReturnType<typeof later> | null = null;\n\n  constructor(owner: unknown, args: FormArgs) {\n    super(owner, args);\n\n    if (this.isFromIntegration && this.isOAuth && this.serverUrl) {\n      void this.autoDetectWellKnown();\n    }\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n\n    this.cancelWellKnownCheck();\n    this.mcpServerFeature.setIntegrationName(null);\n  }\n\n  private static readonly allAuthenticationTypeOptions = [\n    {\n      value: 'oauth2',\n      name: 'OAuth 2.0',\n      description: 'Secure authentication with tokens',\n      iconName: 'lock',\n    },\n    {\n      value: 'bearer',\n      name: 'Bearer Token',\n      description: 'Authenticate with a bearer token',\n      iconName: 'key',\n    },\n    {\n      value: 'none',\n      name: 'None',\n      description: 'No authentication required',\n      iconName: 'lock_open',\n    },\n  ];\n\n  get authenticationTypeOptions() {\n    const supported = this.args.integration?.authenticationMethodsSupported;\n\n    if (!supported?.length) {\n      return McpServerFormComponent.allAuthenticationTypeOptions;\n    }\n\n    return McpServerFormComponent.allAuthenticationTypeOptions.filter((option) =>\n      supported.includes(option.value as AuthenticationType),\n    );\n  }\n\n  private extractBearerToken(): string | undefined {\n    const headers = this.args.mcpServer?.config;\n    const authorizationKey =\n      Object.keys(headers || {}).find((key) => key.toLowerCase() === 'authorization')\n      || 'authorization';\n    const authHeader = headers?.[authorizationKey] as string;\n\n    if (typeof authHeader === 'string' && authHeader.startsWith('Bearer ')) {\n      return authHeader.slice(7);\n    }\n\n    return undefined;\n  }\n\n  private extractHeadersJson(): string {\n    const config = this.args.mcpServer?.config || {};\n    const headersWithoutAuth: Record<string, unknown> = {};\n\n    for (const [key, value] of Object.entries(config)) {\n      if (key.toLowerCase() !== 'authorization') {\n        headersWithoutAuth[key] = value;\n      }\n    }\n\n    if (Object.keys(headersWithoutAuth).length === 0) {\n      return '';\n    }\n\n    return JSON.stringify(headersWithoutAuth, null, 2);\n  }\n\n  private parseHeaders(): Record<string, unknown> {\n    if (!this.headersJson.trim()) {\n      return {};\n    }\n\n    try {\n      return JSON.parse(this.headersJson) as Record<string, unknown>;\n    } catch {\n      return {};\n    }\n  }\n\n  get isHeadersJsonValid(): boolean {\n    if (!this.headersJson.trim()) {\n      return true;\n    }\n\n    try {\n      JSON.parse(this.headersJson);\n      return true;\n    } catch {\n      return false;\n    }\n  }\n\n  get isBearer() {\n    return this.authenticationType === 'bearer';\n  }\n\n  private extractOAuthField<K extends keyof OAuthClientConfig>(\n    field: K,\n  ): OAuthClientConfig[K] | undefined {\n    const oauthConfig = (this.args.mcpServer?.config as OAuthS3Config)?.oauthConfig;\n\n    return oauthConfig?.[field];\n  }\n\n  get isOAuth() {\n    return this.authenticationType === 'oauth2';\n  }\n\n  get shouldShowOAuthConfig() {\n    return this.isOAuth && !this.isLoadingWellKnown;\n  }\n\n  get isServerUrlValid() {\n    return !this.serverUrl || REGEX_HTTP_URL.test(this.serverUrl);\n  }\n\n  get isOAuthValid() {\n    if (!this.isOAuth) {\n      return true;\n    }\n\n    // .well-known must be discovered for OAuth to work\n    if (!this.wellKnownDiscovered) {\n      return false;\n    }\n\n    // If server supports dynamic client registration, client ID is not required\n    if (this.supportsClientRegistration) {\n      return true;\n    }\n\n    return Boolean(this.oauthClientId);\n  }\n\n  get isReservedServerName() {\n    const nameToCheck = this.serverName.trim().toLocaleLowerCase();\n\n    return !this.isForestConnector && forestConnectorsReservedNames.includes(nameToCheck);\n  }\n\n  get isDirty() {\n    const baseIsDirty =\n      !this.args.mcpServer?.isDeleted\n      && (this.serverName !== this.args.mcpServer?.serverName\n        || this.serverUrl !== this.args.mcpServer?.serverUrl\n        || this.authenticationType !== (this.args.mcpServer?.authenticationType || 'bearer'));\n\n    const originalHeadersJson = this.extractHeadersJson();\n    const headersAreDirty = this.headersJson !== originalHeadersJson;\n\n    if (this.isForestConnector) {\n      return (\n        !this.args.mcpServer?.isDeleted\n        && (this.serverName !== this.args.mcpServer?.serverName\n          || JSON.stringify(this.forestConnectorConfig)\n            !== JSON.stringify(this.args.mcpServer?.config))\n      );\n    }\n\n    if (this.isBearer) {\n      const originalBearerToken = this.extractBearerToken() || '';\n\n      return baseIsDirty || this.bearerToken !== originalBearerToken || headersAreDirty;\n    }\n\n    if (this.isOAuth) {\n      const originalOAuth = (this.args.mcpServer?.config as OAuthS3Config)?.oauthConfig;\n\n      return (\n        baseIsDirty\n        || this.oauthClientId !== (originalOAuth?.clientId || '')\n        || this.oauthClientSecret !== (originalOAuth?.clientSecret || '')\n      );\n    }\n\n    return baseIsDirty || headersAreDirty;\n  }\n\n  get forestConnectorConfigFields() {\n    if (!this.isForestConnector) {\n      return null;\n    }\n\n    return integrationsData.find(\n      (integration) =>\n        integration.name === this.args.integration?.name\n        || integration.name === this.args.mcpServer?.integrationName,\n    )?.configFields;\n  }\n\n  get isForestConnector() {\n    return this.args.integration?.isForestConnector || this.args.mcpServer?.isForestConnector;\n  }\n\n  get isSaveDisabled() {\n    if (this.isForestConnector) {\n      return (\n        !this.serverName\n        || !this.isHeadersJsonValid\n        || !this.isOAuthValid\n        || !this.isDirty\n        || !this.hasForestConnectorRequiredFields\n      );\n    }\n    return (\n      !this.serverName\n      || !this.serverUrl\n      || !this.isServerUrlValid\n      || !this.isHeadersJsonValid\n      || !this.isOAuthValid\n      || !this.isDirty\n      || this.isReservedServerName\n    );\n  }\n\n  mustPreventLeaving() {\n    return this.args.mcpServer && this.isDirty;\n  }\n\n  private buildBearerConfig(): Record<string, unknown> {\n    if (!this.bearerToken.trim()) {\n      return {};\n    }\n\n    return {\n      Authorization: `Bearer ${this.bearerToken.trim()}`,\n    };\n  }\n\n  private buildOAuthConfig(): { oauthConfig?: OAuthClientConfig } {\n    // Only send client credentials - endpoints are fetched from .well-known\n    const oauthConfig: OAuthClientConfig = {};\n\n    if (this.oauthClientId) {\n      oauthConfig.clientId = this.oauthClientId;\n    }\n\n    if (this.oauthClientSecret) {\n      oauthConfig.clientSecret = this.oauthClientSecret;\n    }\n\n    return Object.keys(oauthConfig).length > 0 ? { oauthConfig } : {};\n  }\n\n  private buildConfig(): Record<string, unknown> {\n    if (this.isForestConnector) {\n      return this.forestConnectorConfig;\n    }\n    if (this.isOAuth) {\n      return this.buildOAuthConfig() as Record<string, unknown>;\n    }\n\n    const customHeaders = this.parseHeaders();\n\n    if (this.isBearer) {\n      return { ...customHeaders, ...this.buildBearerConfig() };\n    }\n\n    return customHeaders;\n  }\n\n  @action\n  handleAuthenticationTypeChange(value: AuthenticationType) {\n    this.authenticationType = value;\n\n    // Auto-detect .well-known when switching to OAuth2 if server URL is valid\n    if (value === 'oauth2' && this.serverUrl && this.isServerUrlValid) {\n      void this.autoDetectWellKnown();\n    }\n  }\n\n  @action\n  handleServerUrlChange(value: string) {\n    this.serverUrl = value;\n\n    this.cancelWellKnownCheck();\n\n    // Reset well-known discovery state when URL changes\n    this.wellKnownDiscovered = false;\n    this.supportsClientRegistration = false;\n    this.wellKnownError = null;\n\n    // Auto-detect .well-known when URL changes if OAuth2 is selected (with debounce)\n    if (this.isOAuth && value && REGEX_HTTP_URL.test(value)) {\n      this.isLoadingWellKnown = true;\n      // eslint-disable-next-line ember/no-runloop\n      this.wellKnownDebounceTimer = later(\n        this,\n        () => void this.autoDetectWellKnown(),\n        WELL_KNOWN_DEBOUNCE_MS,\n      );\n    }\n  }\n\n  @action\n  handleUpdateForestConnectorConfig(key: string, value: unknown) {\n    this.forestConnectorConfig = {\n      ...this.forestConnectorConfig,\n      [key]: value,\n    };\n  }\n\n  private cancelWellKnownCheck() {\n    if (this.wellKnownDebounceTimer) {\n      // eslint-disable-next-line ember/no-runloop\n      cancel(this.wellKnownDebounceTimer);\n      this.wellKnownDebounceTimer = null;\n    }\n  }\n\n  private async autoDetectWellKnown() {\n    this.isLoadingWellKnown = true;\n    this.wellKnownError = null;\n\n    try {\n      const config = await this.mcpServerFeature.fetchWellKnownConfig(this.serverUrl);\n\n      if (config) {\n        this.wellKnownDiscovered = true;\n\n        if (config.registration_endpoint) {\n          this.supportsClientRegistration = true;\n        }\n      } else {\n        this.wellKnownError =\n          'OAuth configuration not found. The server must expose a .well-known/oauth-authorization-server endpoint.';\n      }\n    } catch {\n      this.wellKnownError =\n        'Failed to fetch OAuth configuration from server. Please check the server URL.';\n    } finally {\n      this.isLoadingWellKnown = false;\n    }\n  }\n\n  private get hasForestConnectorRequiredFields(): boolean {\n    if (!this.isForestConnector || !this.forestConnectorConfigFields) {\n      return true;\n    }\n\n    return this.forestConnectorConfigFields.every((field) => {\n      if (!field.required) {\n        return true;\n      }\n\n      const value = this.forestConnectorConfig[field.name];\n\n      return value !== undefined && value !== null && String(value).trim() !== '';\n    });\n  }\n\n  @action\n  async handleSave() {\n    if (this.isSaveDisabled) {\n      return;\n    }\n\n    await this.args.onSave({\n      serverName: this.serverName,\n      serverUrl: this.isForestConnector ? null : this.serverUrl,\n      config: this.buildConfig(),\n      authenticationType: this.authenticationType,\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout::Section\\n  @title={{@title}}\\n  @description={{@description}}\\n  class=\\\"c-feature-mcp-server-details\\\"\\n  data-test-feature-mcp-server-form\\n  ...attributes\\n>\\n  <:header-buttons>\\n    <Shared::Button\\n      @text={{if @mcpServer \\'Save\\' \\'Create\\'}}\\n      @iconName={{unless @mcpServer \\'add\\'}}\\n      @size=\\\"small\\\"\\n      @onClick={{this.handleSave}}\\n      disabled={{this.isSaveDisabled}}\\n      data-test-feature-mcp-server-form-create\\n    />\\n  </:header-buttons>\\n\\n  <:default>\\n    <form class=\\\"c-feature-mcp-server-form__form\\\">\\n      <Shared::BetaLabel @label=\\\"Name\\\" data-test-feature-mcp-server-form-name>\\n        <Shared::BetaInput\\n          @value={{this.serverName}}\\n          @placeholder=\\\"My MCP Server\\\"\\n          data-test-feature-mcp-server-form-name-input\\n        />\\n      </Shared::BetaLabel>\\n\\n      {{#if this.isReservedServerName}}\\n        <Shared::Feedback::Notification::NotificationInApp\\n          @canHide={{false}}\\n          @state=\\\"error\\\"\\n          @message=\\\"This name is reserved. This MCP Server is available through the MCP Library.\\\"\\n          data-test-feature-mcp-server-form-name-reserved-error\\n        />\\n      {{/if}}\\n\\n      {{#unless this.isForestConnector}}\\n        <Shared::BetaLabel\\n          @label=\\\"Server URL\\\"\\n          @isError={{not this.isServerUrlValid}}\\n          @errorMessage={{unless this.isServerUrlValid \\'Please enter a valid URL\\'}}\\n          data-test-feature-mcp-server-form-url\\n        >\\n          <Shared::BetaInput\\n            @value={{this.serverUrl}}\\n            @onChange={{this.handleServerUrlChange}}\\n            @placeholder={{or @integration.placeholder \\'https://mymcpserver.com/mcp\\'}}\\n            @disabled={{this.isFromIntegration}}\\n            data-test-feature-mcp-server-form-url-input\\n          />\\n          {{#if @integration.placeholder}}\\n            <Shared::Feedback::Notification::NotificationInApp\\n              @canHide={{false}}\\n              @state=\\\"info\\\"\\n              class=\\\"c-feature-mcp-server-form__documentation_notification\\\"\\n            >\\n              This server\\'s URL is specific to your account.\\n              {{#if @integration.documentationUrl}}\\n                <Shared::Navigation::BetaLinkTo\\n                  @iconName=\\\"open_in_new\\\"\\n                  @isIconAfterText={{true}}\\n                  @underline={{false}}\\n                  @href={{@integration.documentationUrl}}\\n                  @target=\\\"_blank\\\"\\n                  @type=\\\"primary\\\"\\n                  @text=\\\"See how to find yours\\\"\\n                  data-test-feature-mcp-server-form-documentation-link\\n                />\\n              {{/if}}\\n            </Shared::Feedback::Notification::NotificationInApp>\\n          {{/if}}\\n        </Shared::BetaLabel>\\n      {{/unless}}\\n\\n      {{#unless this.isForestConnector}}\\n        <Shared::BetaLabel @label=\\\"Authentication\\\" data-test-feature-mcp-server-form-auth>\\n          <Shared::Form::SelectCards\\n            @options={{this.authenticationTypeOptions}}\\n            @value={{this.authenticationType}}\\n            @valuePath=\\\"value\\\"\\n            @namePath=\\\"name\\\"\\n            @descriptionPath=\\\"description\\\"\\n            @iconPath=\\\"iconName\\\"\\n            @onChange={{this.handleAuthenticationTypeChange}}\\n            @display=\\\"inline\\\"\\n            @columnCount={{3}}\\n            @forceDefaultValue={{false}}\\n            data-test-feature-mcp-server-form-auth-select\\n          />\\n        </Shared::BetaLabel>\\n      {{/unless}}\\n\\n      {{#if this.isBearer}}\\n        <Shared::BetaLabel @label=\\\"Bearer Token\\\" data-test-feature-mcp-server-form-bearer-token>\\n          <Shared::BetaInput\\n            @value={{this.bearerToken}}\\n            @placeholder=\\\"your-bearer-token\\\"\\n            data-test-feature-mcp-server-form-bearer-token-input\\n          />\\n        </Shared::BetaLabel>\\n      {{else if this.isOAuth}}\\n        {{#if this.isLoadingWellKnown}}\\n          <Shared::Feedback::Notification::NotificationInApp\\n            @state=\\\"loading\\\"\\n            @message=\\\"Detecting OAuth configuration...\\\"\\n            data-test-feature-mcp-server-form-oauth-loading\\n          />\\n        {{else if this.wellKnownError}}\\n          <Shared::Feedback::Notification::NotificationInApp\\n            @state=\\\"error\\\"\\n            @message={{this.wellKnownError}}\\n            data-test-feature-mcp-server-form-oauth-error\\n          />\\n        {{else if this.wellKnownDiscovered}}\\n          <Shared::Feedback::Notification::NotificationInApp\\n            @state=\\\"success\\\"\\n            @message=\\\"OAuth configuration auto-detected from server\\\"\\n            data-test-feature-mcp-server-form-oauth-discovered\\n          />\\n\\n          {{#if this.supportsClientRegistration}}\\n            <Shared::Feedback::Notification::NotificationInApp\\n              @state=\\\"info\\\"\\n              @message=\\\"This server supports dynamic client registration. Client credentials will be obtained automatically.\\\"\\n              data-test-feature-mcp-server-form-oauth-dynamic-registration\\n            />\\n          {{else}}\\n            <Shared::BetaLabel @label=\\\"Client ID\\\" data-test-feature-mcp-server-form-oauth-client-id>\\n              <Shared::BetaInput\\n                @value={{this.oauthClientId}}\\n                @placeholder=\\\"your-client-id\\\"\\n                data-test-feature-mcp-server-form-oauth-client-id-input\\n              />\\n            </Shared::BetaLabel>\\n\\n            <Shared::BetaLabel\\n              @label=\\\"Client Secret (optional)\\\"\\n              data-test-feature-mcp-server-form-oauth-client-secret\\n            >\\n              <Shared::BetaInput\\n                @value={{this.oauthClientSecret}}\\n                @placeholder=\\\"your-client-secret\\\"\\n                @type=\\\"password\\\"\\n                data-test-feature-mcp-server-form-oauth-client-secret-input\\n              />\\n            </Shared::BetaLabel>\\n          {{/if}}\\n        {{/if}}\\n      {{/if}}\\n\\n      {{#each this.forestConnectorConfigFields as |field|}}\\n        <Shared::BetaLabel\\n          @label={{field.label}}\\n          data-test-feature-mcp-server-form-forest-config-label={{field.name}}\\n        >\\n          <Shared::BetaInput\\n            @value={{one-way (get this.forestConnectorConfig field.name)}}\\n            @placeholder={{field.placeholder}}\\n            @onChange={{(fn this.handleUpdateForestConnectorConfig field.name)}}\\n            @type={{field.type}}\\n            data-test-feature-mcp-server-form-forest-config-input={{field.name}}\\n          />\\n        </Shared::BetaLabel>\\n      {{else}}\\n        <Shared::CollapsibleSection\\n          @title=\\\"Advanced Configuration\\\"\\n          @isCollapsedByDefault={{true}}\\n          data-test-feature-mcp-server-form-advanced\\n        >\\n          <Shared::BetaLabel\\n            @label=\\\"Custom Headers\\\"\\n            @isError={{not this.isHeadersJsonValid}}\\n            @errorMessage={{unless this.isHeadersJsonValid \\'Invalid JSON format\\'}}\\n            data-test-feature-mcp-server-form-headers\\n            class=\\\"c-feature-mcp-server-form__headers-label\\\"\\n          >\\n            <Shared::BetaTextarea\\n              @value={{this.headersJson}}\\n              @placeholder=\\'{\\\"X-Custom-Header\\\": \\\"value\\\"}\\'\\n              @height={{100}}\\n              data-test-feature-mcp-server-form-headers-input\\n            />\\n          </Shared::BetaLabel>\\n        </Shared::CollapsibleSection>\\n      {{/each}}\\n    </form>\\n  </:default>\\n</Shared::BetaSettingsLayout::Section>\\n', { moduleName: 'client/features/mcp-server/components/form/template.hbs' });\n","import type McpServerFeatureService from 'client/features/mcp-server/services/feature';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ninterface McpServerIconArgs {\n  serverUrl: string | null;\n  size?: number;\n  fallbackIcon?: string;\n}\n\nexport default class McpServerIconComponent extends Component<McpServerIconArgs> {\n  @service('feature/mcp-server') private mcpServerFeature: McpServerFeatureService;\n\n  @tracked imageLoadFailed = false;\n\n  constructor(owner: unknown, args: McpServerIconArgs) {\n    super(owner, args);\n\n    if (this.iconURL) {\n      this.validateIcon(this.iconURL);\n    }\n  }\n\n  get iconURL(): string | null {\n    if (!this.args.serverUrl) return null;\n    return this.mcpServerFeature.getIconURL(this.args.serverUrl);\n  }\n\n  get size(): number {\n    return this.args.size ?? 16;\n  }\n\n  get fallbackIcon(): string {\n    return this.args.fallbackIcon ?? '/img/workflow/mcp-server.svg';\n  }\n\n  private validateIcon(url: string) {\n    const img = new Image();\n\n    img.onload = () => {\n      if (this.isPlaceholder(img)) {\n        this.imageLoadFailed = true;\n      }\n    };\n\n    img.onerror = () => {\n      this.imageLoadFailed = true;\n    };\n\n    img.src = url;\n  }\n\n  private isPlaceholder(img: HTMLImageElement): boolean {\n    return img.naturalWidth === 16 && img.naturalHeight === 16;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (and this.iconURL (not this.imageLoadFailed))}}\\n  <img\\n    src={{this.iconURL}}\\n    alt=\\\"MCP Server icon\\\"\\n    width={{this.size}}\\n    height={{this.size}}\\n    class=\\\"c-feature-mcp-server-icon\\\"\\n    data-test-feature-mcp-server-icon\\n    ...attributes\\n  />\\n{{else}}\\n  <Shared::Svg\\n    @src={{this.fallbackIcon}}\\n    class=\\\"c-feature-mcp-server-icon c-feature-mcp-server-icon--fallback\\\"\\n    data-test-feature-mcp-server-icon-fallback\\n    ...attributes\\n  />\\n{{/if}}\\n', { moduleName: 'client/features/mcp-server/components/icon/template.hbs' });\n","import type McpServerFeatureService from 'client/features/mcp-server/services/feature';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport type FilterType = 'all' | 'requested' | 'installed';\n\nexport default class McpServerIntegrationsModalComponent extends Component {\n  @service('feature/mcp-server')\n  private mcpServerFeatureService: McpServerFeatureService;\n\n  @tracked isLoading: boolean;\n\n  constructor(owner: unknown, args: unknown) {\n    super(owner, args);\n\n    this.loadRequests();\n  }\n\n  private async loadRequests() {\n    this.isLoading = true;\n    await this.mcpServerFeatureService.getAllIntegrationRequests();\n    this.isLoading = false;\n  }\n}\n","import type IntegrationRequestModel from 'client/data/models/integration-request';\nimport type { Integration } from 'client/features/mcp-server/integration-data';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ContactService from 'client/shared/services/contact';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface IntegrationCardArgs {\n  integration: Integration;\n  isInstalled: boolean;\n  requestCount?: number;\n  onRequest?: () => void;\n}\n\n@validateArguments\nexport default class McpServerIntegrationsModalIntegrationCardComponent extends Component<IntegrationCardArgs> {\n  public static readonly propTypes = {\n    integration: PropTypes.shape({\n      id: PropTypes.string.isRequired,\n      name: PropTypes.string.isRequired,\n      author: PropTypes.string.isRequired,\n      documentationUrl: PropTypes.string,\n      description: PropTypes.string.isRequired,\n      logoUrl: PropTypes.string.isRequired,\n      serverUrl: PropTypes.string,\n    }).isRequired,\n    isInstalled: PropTypes.bool.isRequired,\n    onRequest: PropTypes.func,\n  };\n\n  @service('feature/mcp-server') private mcpServerFeatureService: McpServerFeatureService;\n  @service private currentUser: CurrentUserService;\n  @service('shared/contact') private contactService: ContactService;\n\n  @tracked private currentIntegration: IntegrationRequestModel;\n  @tracked isExpanded = false;\n  @tracked isClamped = false;\n\n  constructor(owner: unknown, args: IntegrationCardArgs) {\n    super(owner, args);\n    this.currentIntegration = this.mcpServerFeatureService.getIntegrationByName(\n      this.args.integration.name,\n    );\n  }\n\n  get requestCount() {\n    return this.mcpServerFeatureService.getIntegrationRequestCount(this.args.integration.name);\n  }\n\n  get isRequested() {\n    return this.requestCount > 0;\n  }\n\n  get hasUserAlreadyRequested() {\n    return this.currentIntegration?.userIds.includes(Number(this.currentUser.model.id));\n  }\n\n  get statusLabel() {\n    if (this.isRequested) {\n      const count = this.requestCount;\n      return `${count} request${count !== 1 ? 's' : ''}`;\n    }\n    return null;\n  }\n\n  get ctaText() {\n    if (this.args.integration.isForestContactUs) {\n      return 'Ask Forest';\n    }\n    if (this.args.isInstalled) {\n      return 'Installed';\n    }\n    if (this.currentUser.isAdmin) {\n      return 'Install';\n    }\n    if (this.hasUserAlreadyRequested) {\n      return 'Requested';\n    }\n    return 'Ask an Admin';\n  }\n\n  get ctaDisabled() {\n    if (this.args.isInstalled) return true;\n    // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n    if (!this.currentUser.isAdmin && this.hasUserAlreadyRequested) return true;\n    return false;\n  }\n\n  get ctaAction() {\n    if (this.args.integration.isForestContactUs) {\n      return this.requestNewConnector;\n    }\n    return this.currentUser.isAdmin ? this.handleInstallIntegration : this.handleRequestIntegration;\n  }\n\n  @action\n  checkClamped(element: HTMLElement) {\n    this.isClamped = element.scrollHeight > element.clientHeight;\n  }\n\n  @action\n  toggleExpanded() {\n    this.isExpanded = !this.isExpanded;\n  }\n\n  @action\n  async handleRequestIntegration() {\n    this.currentIntegration = await this.mcpServerFeatureService.requestIntegration(\n      this.args.integration.name,\n      this.args.integration.logoUrl,\n    );\n    this.args.onRequest?.();\n  }\n\n  @action\n  async handleInstallIntegration() {\n    return this.mcpServerFeatureService.openIntegrationConfiguration(this.args.integration.name);\n  }\n\n  @action requestNewConnector() {\n    window.open(\n      this.contactService.getContactFormUrl(\n        \"Hi, I'd like to add Connectors to the following apps in my Workflow:\\n\",\n      ),\n      '_blank',\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-mcp-server-integrations-modal-integration-card\\\"\\n  data-test-integration-card\\n  data-test-integration-card-id={{@integration.id}}\\n  ...attributes\\n>\\n  <Feature::McpServer::IntegrationsModal::IntegrationInfo\\n    @integration={{@integration}}\\n    @size=\\\"small\\\"\\n    data-test-integration-card-header\\n  >\\n    <:button>\\n      {{#if this.isRequested}}\\n        <span\\n          class={{get-classes-with-modifiers\\n            \\'c-feature-mcp-server-integrations-modal-integration-card__status\\'\\n            requested=this.isRequested\\n          }}\\n          data-test-integration-card-status\\n        >\\n          <Shared::DataDisplay::BetaIcon @iconName=\\\"info\\\" @size=\\\"small\\\" />\\n          {{this.statusLabel}}\\n        </span>\\n      {{/if}}\\n    </:button>\\n  </Feature::McpServer::IntegrationsModal::IntegrationInfo>\\n\\n  <div\\n    class={{get-classes-with-modifiers\\n      \\'c-feature-mcp-server-integrations-modal-integration-card__description-wrapper\\'\\n      expanded=this.isExpanded\\n    }}\\n  >\\n    <p\\n      class=\\\"c-feature-mcp-server-integrations-modal-integration-card__description\\\"\\n      data-test-integration-card-description\\n      {{did-insert this.checkClamped}}\\n    >\\n      {{@integration.description}}\\n    </p>\\n    {{#if this.isClamped}}\\n      <button\\n        class={{get-classes-with-modifiers\\n          \\'c-feature-mcp-server-integrations-modal-integration-card__read-more\\'\\n          expanded=this.isExpanded\\n        }}\\n        type=\\\"button\\\"\\n        {{on \\'click\\' this.toggleExpanded}}\\n        data-test-integration-card-read-more\\n      >\\n        {{if this.isExpanded \\'Show less\\' \\'Read more\\'}}\\n      </button>\\n    {{/if}}\\n  </div>\\n\\n  <div class=\\\"c-feature-mcp-server-integrations-modal-integration-card__footer\\\">\\n    <Shared::Button\\n      @text={{this.ctaText}}\\n      @type=\\\"ghost-primary\\\"\\n      @size=\\\"small\\\"\\n      @onClick={{this.ctaAction}}\\n      class=\\\"c-feature-mcp-server-integrations-modal-integration-card__cta\\\"\\n      disabled={{this.ctaDisabled}}\\n      data-test-integrations-modal-detail-cta\\n    />\\n  </div>\\n</div>\\n', { moduleName: 'client/features/mcp-server/components/integrations-modal/integration-card/template.hbs' });\n","import type { Integration } from 'client/features/mcp-server/integration-data';\n\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface IntegrationInfoArgs {\n  integration: Integration;\n  size: 'small' | 'large';\n}\n\n@validateArguments\nexport default class McpServerIntegrationsModalIntegrationInfoComponent extends Component<IntegrationInfoArgs> {\n  public static readonly propTypes = {\n    integration: PropTypes.shape({\n      name: PropTypes.string.isRequired,\n      author: PropTypes.string.isRequired,\n      documentationUrl: PropTypes.string,\n      logoUrl: PropTypes.string.isRequired,\n    }).isRequired,\n    size: PropTypes.oneOf(['small', 'large']).isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-mcp-server-integrations-modal-integration-info c-feature-mcp-server-integrations-modal-integration-info--{{@size}}\\\"\\n  ...attributes\\n>\\n  <img\\n    class=\\\"c-feature-mcp-server-integrations-modal-integration-info__logo\\\"\\n    src={{@integration.logoUrl}}\\n    alt={{@integration.name}}\\n    data-test-integration-info-logo\\n  />\\n  <div class=\\\"c-feature-mcp-server-integrations-modal-integration-info__info\\\">\\n    <span\\n      class=\\\"c-feature-mcp-server-integrations-modal-integration-info__name\\\"\\n      data-test-integration-info-name\\n    >\\n      {{@integration.name}}\\n    </span>\\n    <span\\n      class=\\\"c-feature-mcp-server-integrations-modal-integration-info__author\\\"\\n      data-test-integration-info-author\\n    >\\n      by\\n      {{#if @integration.documentationUrl}}\\n        <Shared::Navigation::BetaLinkTo\\n          @underline={{false}}\\n          @href={{@integration.documentationUrl}}\\n          @target=\\\"_blank\\\"\\n          @type=\\\"primary\\\"\\n          @text={{@integration.author}}\\n          data-test-integration-info-author-link\\n        />\\n      {{else}}\\n        {{@integration.author}}\\n      {{/if}}\\n    </span>\\n  </div>\\n  {{yield to=\\'button\\'}}\\n</div>\\n', { moduleName: 'client/features/mcp-server/components/integrations-modal/integration-info/template.hbs' });\n","import type IntegrationRequestModel from 'client/data/models/integration-request';\nimport type { FilterType } from 'client/features/mcp-server/components/integrations-modal/component';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { type Integration, integrationsData } from 'client/features/mcp-server/integration-data';\n\nexport default class McpServerIntegrationsModalListViewComponent extends Component {\n  @service('feature/mcp-server')\n  private mcpServerFeatureService: McpServerFeatureService;\n\n  @tracked activeFilter: FilterType = 'all';\n  @tracked searchQuery = '';\n  @tracked requests: IntegrationRequestModel[] = [];\n  @tracked installedIntegrations: string[] = [];\n\n  integrations: Integration[] = integrationsData;\n\n  constructor(owner: unknown, args: unknown) {\n    super(owner, args);\n    this.loadRequests();\n    this.loadInstalledIntegrations();\n  }\n\n  get filteredIntegrations(): Integration[] {\n    let result = this.integrations;\n\n    if (this.activeFilter === 'installed') {\n      result = result.filter((c) => this.installedIntegrations.includes(c.name));\n    } else if (this.activeFilter === 'requested') {\n      result = result.filter((c) => this.requests.some((r) => r.integrationName === c.name));\n    }\n\n    if (this.searchQuery.trim()) {\n      const query = this.searchQuery.toLowerCase();\n      result = result.filter(\n        (c) => c.name.toLowerCase().includes(query) || c.description.toLowerCase().includes(query),\n      );\n    }\n\n    const requestedNames = new Set(this.requests.map((r) => r.integrationName));\n\n    return result.sort((a, b) => {\n      if (a.isForestContactUs) return 1;\n      if (b.isForestContactUs) return -1;\n      const aRequested = requestedNames.has(a.name);\n      const bRequested = requestedNames.has(b.name);\n      if (aRequested !== bRequested) return aRequested ? -1 : 1;\n      return a.name.localeCompare(b.name);\n    });\n  }\n\n  get installedCount(): number {\n    return this.installedIntegrations.length;\n  }\n\n  get requestedCount(): number {\n    return this.requests.length;\n  }\n\n  get filters(): { type: FilterType; label: string }[] {\n    return [\n      { type: 'all', label: 'All' },\n      { type: 'requested', label: `Requested (${this.requestedCount})` },\n      { type: 'installed', label: `Installed (${this.installedCount})` },\n    ];\n  }\n\n  @action\n  isIntegrationInstalled(integration: Integration): boolean {\n    return this.installedIntegrations.includes(integration.name);\n  }\n\n  @action\n  handleFilterChange(filter: FilterType) {\n    this.activeFilter = filter;\n  }\n\n  @action\n  loadRequests() {\n    this.requests = this.mcpServerFeatureService.getCachedIntegrationRequests();\n  }\n\n  private async loadInstalledIntegrations() {\n    this.installedIntegrations = await this.mcpServerFeatureService.getInstalledIntegrations();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-mcp-server-integrations-modal__filters\\\" data-test-integrations-modal-filters>\\n  {{#each this.filters as |filter|}}\\n    <button\\n      type=\\\"button\\\"\\n      class={{get-classes-with-modifiers\\n        \\'c-feature-mcp-server-integrations-modal__filter\\'\\n        active=(eq this.activeFilter filter.type)\\n      }}\\n      {{on \\'click\\' (fn this.handleFilterChange filter.type)}}\\n      data-test-integrations-modal-filter={{filter.type}}\\n    >\\n      {{filter.label}}\\n    </button>\\n  {{/each}}\\n</div>\\n\\n<div class=\\\"c-feature-mcp-server-integrations-modal__search\\\">\\n  <Shared::BetaInput\\n    @placeholder=\\\"Search integrations...\\\"\\n    @value={{this.searchQuery}}\\n    @iconName=\\\"search\\\"\\n    @onChange={{fn (mut this.searchQuery)}}\\n    data-test-integrations-modal-search\\n  />\\n</div>\\n\\n<div class=\\\"c-feature-mcp-server-integrations-modal__grid\\\" data-test-integrations-modal-grid>\\n  {{#each this.filteredIntegrations as |integration|}}\\n    <Feature::McpServer::IntegrationsModal::IntegrationCard\\n      @integration={{integration}}\\n      @isInstalled={{compute (fn this.isIntegrationInstalled integration)}}\\n      @onRequest={{this.loadRequests}}\\n    />\\n  {{else}}\\n    <div class=\\\"c-feature-mcp-server-integrations-modal__empty\\\" data-test-integrations-modal-empty>\\n      <Shared::DataDisplay::BetaIcon @iconName=\\\"search\\\" @size=\\\"large\\\" />\\n      <p>No integrations found matching your criteria.</p>\\n    </div>\\n  {{/each}}\\n</div>\\n', { moduleName: 'client/features/mcp-server/components/integrations-modal/list-view/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  class=\\\"c-feature-mcp-server-integrations-modal\\\"\\n  @size=\\\"md\\\"\\n  data-test-integrations-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header\\n    @title=\\\"Connectors\\\"\\n    @subtitle=\\\"Find the perfect Connectors to boost your Workflow\\'s efficiency and send them to your admin\\n        to install.\\\"\\n  />\\n\\n  <Shared::Modal::Body>\\n    {{#if this.isLoading}}\\n      <Shared::Spinner\\n        class=\\\"c-feature-mcp-server-integrations-modal__spinner\\\"\\n        width=\\\"50\\\"\\n        height=\\\"50\\\"\\n      />\\n    {{else}}\\n      <Feature::McpServer::IntegrationsModal::ListView />\\n    {{/if}}\\n  </Shared::Modal::Body>\\n</Shared::Modal>\\n', { moduleName: 'client/features/mcp-server/components/integrations-modal/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type McpServerConfigModel from 'client/data/models/mcp-server-config';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ntype MCPServerPageArgs = object;\n\nexport default class McpServerPageComponent extends Component<MCPServerPageArgs> {\n  @service private router: RouterService;\n  @service('feature/mcp-server') private mcpServerFeature: McpServerFeatureService;\n\n  @action\n  async goToCreatePage() {\n    return this.router.transitionTo('project.project-settings.connectors.create-mcp-server');\n  }\n\n  @action\n  async handleMcpServerClick(mcpServer: McpServerConfigModel) {\n    await this.router.transitionTo('project.project-settings.connectors.mcp-server', mcpServer.id);\n  }\n\n  @action\n  openIntegrationsModal() {\n    this.mcpServerFeature.openIntegrationsModal();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout::Section\\n  @title=\\\"MCP Servers\\\"\\n  @description=\\\"Add & configure MCP Servers.\\\"\\n  data-test-feature-mcp-server-page\\n  ...attributes\\n>\\n  <:header-buttons>\\n    <Shared::Button\\n      @text=\\\"Add Custom\\\"\\n      @iconName=\\\"add\\\"\\n      @size=\\\"small\\\"\\n      @type=\\\"ghost\\\"\\n      @onClick={{this.goToCreatePage}}\\n      data-test-feature-mcp-server-page-add-new-header\\n    />\\n    <Shared::Button\\n      @text=\\\"Browse Library\\\"\\n      @iconName=\\\"search\\\"\\n      @type=\\\"primary\\\"\\n      @size=\\\"small\\\"\\n      @onClick={{this.openIntegrationsModal}}\\n      data-test-feature-mcp-server-page-browse-library\\n    />\\n  </:header-buttons>\\n  <:default>\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"info\\\"\\n      class=\\\"c-feature-mcp-server-page__notification\\\"\\n      data-test-feature-mcp-server-page-notification\\n    >\\n      Automate your Workflows by giving Forest Admin AI access to 3rd party tools.\\n      <Shared::Navigation::BetaLinkTo\\n        @href=\\\"https://docs.forestadmin.com/user-guide/integrations/mcp-servers\\\"\\n        @target=\\\"_blank\\\"\\n        @type=\\\"info\\\"\\n        @text=\\\"Learn more\\\"\\n        data-test-feature-mcp-server-page-notification-learn-more\\n      />.\\n    </Shared::Feedback::Notification::NotificationInApp>\\n\\n    {{#if @mcpServers.length}}\\n      <Shared::DataDisplay::BetaDisplayList\\n        @items={{@mcpServers}}\\n        @onItemClick={{this.handleMcpServerClick}}\\n        data-test-item=\\\"roles-list\\\"\\n        data-test-feature-mcp-server-page-servers-list\\n        as |mcpServer|\\n      >\\n        <div\\n          class=\\\"c-feature-mcp-server-page__mcp-server-row\\\"\\n          data-test-feature-mcp-server-page-server-name={{mcpServer.serverName}}\\n        >\\n          <Feature::McpServer::Icon\\n            @serverUrl={{mcpServer.serverUrl}}\\n            data-test-feature-mcp-server-page-server-icon\\n          />\\n          <span class=\\\"c-feature-mcp-server-page__mcp-server-name\\\">\\n            {{mcpServer.serverName}}\\n          </span>\\n        </div>\\n      </Shared::DataDisplay::BetaDisplayList>\\n    {{else}}\\n      <Feature::McpServer::EmptyState @onAddNew={{this.goToCreatePage}} />\\n    {{/if}}\\n  </:default>\\n</Shared::BetaSettingsLayout::Section>\\n', { moduleName: 'client/features/mcp-server/components/page/template.hbs' });\n","import { getFirstErrorDetail } from 'client/utils/ember-error-util';\nimport { ManagedError, UnknownError } from 'client/utils/errors';\n\nexport class UnknownMCPServerError extends UnknownError {\n  constructor(source: Error) {\n    super(\n      source,\n      getFirstErrorDetail(source)\n        || source.message\n        || 'An unknown error occurred with the MCP server.',\n    );\n    this.name = 'UnknownMCPServerError';\n  }\n}\n\nexport class McpOAuthError extends ManagedError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'McpOAuthError';\n  }\n}\n\nexport class McpOAuthPopupBlockedError extends McpOAuthError {\n  constructor() {\n    super('OAuth popup was blocked. Please allow popups for this site.');\n    this.name = 'McpOAuthPopupBlockedError';\n  }\n}\n\nexport class McpOAuthTimeoutError extends McpOAuthError {\n  constructor() {\n    super('OAuth authentication timed out. Please try again.');\n    this.name = 'McpOAuthTimeoutError';\n  }\n}\n\nexport class McpOAuthPopupClosedError extends McpOAuthError {\n  constructor() {\n    super('OAuth authentication was cancelled.');\n    this.name = 'McpOAuthPopupClosedError';\n  }\n}\n\nexport class McpOAuthRequiredError extends McpOAuthError {\n  public readonly mcpServerId: string;\n  public readonly toolName: string;\n\n  constructor(mcpServerId: string, toolName: string) {\n    super(\n      `OAuth authentication required for MCP server \"${mcpServerId}\" to execute tool \"${toolName}\"`,\n    );\n    this.name = 'McpOAuthRequiredError';\n    this.mcpServerId = mcpServerId;\n    this.toolName = toolName;\n  }\n}\n\nexport default {\n  UnknownMCPServerError,\n  McpOAuthError,\n  McpOAuthPopupBlockedError,\n  McpOAuthTimeoutError,\n  McpOAuthPopupClosedError,\n  McpOAuthRequiredError,\n};\n","import type { AuthenticationType } from 'client/data/models/mcp-server-config';\n\nexport interface Integration {\n  id: string;\n  name: string;\n  author: string;\n  documentationUrl?: string;\n  description: string;\n  logoUrl: string;\n  serverUrl?: string;\n  mcpServerUrl?: string;\n  defaultConfig?: Record<string, unknown>;\n  authenticationType?: AuthenticationType;\n  authenticationMethodsSupported?: AuthenticationType[];\n  placeholder?: string;\n  isForestContactUs?: boolean;\n  isForestConnector?: boolean;\n  configFields?: Array<{\n    name: string;\n    label: string;\n    type: 'string' | 'number' | 'boolean' | 'password';\n    placeholder?: string;\n    required?: boolean;\n  }>;\n}\n\nexport const integrationsData: Integration[] = [\n  {\n    id: 'intercom',\n    name: 'Intercom',\n    author: 'Intercom',\n    documentationUrl: 'https://developers.intercom.com/docs/guides/mcp',\n    description:\n      \"Enables AI systems to securely access Intercom's customer conversation data, user profiles and tickets in real-time for identifying patterns, troubleshooting issues and driving business decisions.\",\n    logoUrl: 'https://www.google.com/s2/favicons?domain=intercom.com&sz=32',\n    serverUrl: 'https://mcp.intercom.com/mcp',\n    mcpServerUrl: 'https://developers.intercom.com/docs/guides/mcp',\n    defaultConfig: {},\n    authenticationMethodsSupported: ['oauth2', 'bearer'],\n  },\n  {\n    id: 'slack',\n    name: 'Slack',\n    author: 'Slack',\n    documentationUrl: 'https://docs.slack.dev/ai/mcp-server/',\n    description:\n      'Connect your AI workflows to Slack for sending messages, managing channels, searching conversations and automating team communication.',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=slack.com&sz=32',\n    serverUrl: 'https://mcp.slack.com/mcp',\n    mcpServerUrl: 'https://docs.slack.dev/ai/slack-mcp-server/',\n    authenticationMethodsSupported: ['oauth2'],\n  },\n  {\n    id: 'amplitude',\n    name: 'Amplitude',\n    author: 'Amplitude',\n    documentationUrl: 'https://amplitude.com/docs/amplitude-ai/amplitude-mcp',\n    description:\n      'Access Amplitude analytics data to query user behavior, track events, analyze funnels and gain insights into product usage patterns.',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=amplitude.com&sz=32',\n    serverUrl: 'https://mcp.amplitude.com/mcp',\n    mcpServerUrl: 'https://amplitude.com/docs/amplitude-ai/amplitude-mcp',\n    authenticationMethodsSupported: ['oauth2'],\n  },\n  {\n    id: 'hubspot',\n    name: 'Hubspot',\n    author: 'Hubspot',\n    documentationUrl: 'https://developers.hubspot.com/mcp',\n    description:\n      'Integrate with HubSpot CRM to manage contacts, companies, deals and automate marketing workflows directly from your AI assistant.',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=hubspot.com&sz=32',\n    serverUrl: 'https://mcp.hubspot.com/anthropic',\n    mcpServerUrl: 'https://developers.hubspot.com/mcp',\n    authenticationMethodsSupported: ['oauth2'],\n  },\n  {\n    id: 'notion',\n    name: 'Notion',\n    author: 'Notion',\n    documentationUrl: 'https://developers.notion.com/guides/mcp/mcp',\n    description:\n      'Access and manage your Notion workspace including pages, databases and blocks for seamless knowledge management integration.',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=notion.so&sz=32',\n    serverUrl: 'https://mcp.notion.com/mcp',\n    mcpServerUrl: 'https://developers.notion.com/docs/mcp',\n    authenticationMethodsSupported: ['oauth2'],\n  },\n  {\n    id: 'monday',\n    name: 'Monday.com',\n    author: 'Monday.com',\n    documentationUrl: 'https://monday.com/w/fr/mcp',\n    description:\n      'Connect to Monday.com to manage boards, items and automate project workflows for enhanced team productivity.',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=monday.com&sz=32',\n    serverUrl: 'https://mcp.monday.com/mcp',\n    mcpServerUrl:\n      'https://support.monday.com/hc/en-us/articles/28588158981266-Get-started-with-monday-MCP',\n    authenticationMethodsSupported: ['oauth2', 'bearer'],\n  },\n  {\n    id: 'square',\n    name: 'Square',\n    author: 'Square',\n    documentationUrl: 'https://developer.squareup.com/docs/mcp',\n    description:\n      'Integrate with Square to process payments, manage inventory, access transaction data and handle customer information.',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=squareup.com&sz=32',\n    serverUrl: 'https://mcp.squareup.com/sse',\n    mcpServerUrl: 'https://developer.squareup.com/docs/mcp',\n    authenticationMethodsSupported: ['oauth2'],\n  },\n  {\n    id: 'stripe',\n    name: 'Stripe',\n    author: 'Stripe',\n    documentationUrl: 'https://docs.stripe.com/mcp',\n    description:\n      'Access Stripe payment data, manage subscriptions, retrieve invoices and handle customer billing information securely.',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=stripe.com&sz=32',\n    serverUrl: 'https://mcp.stripe.com',\n    mcpServerUrl: 'https://docs.stripe.com/mcp',\n    authenticationMethodsSupported: ['oauth2', 'bearer'],\n  },\n  {\n    id: 'n8n',\n    name: 'n8n',\n    author: 'n8n',\n    documentationUrl: 'https://docs.n8n.io/advanced-ai/accessing-n8n-mcp-server/',\n    description:\n      'Connect to n8n to trigger workflows, access execution data and build powerful automations with this open-source platform.',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=n8n.io&sz=32',\n    authenticationMethodsSupported: ['bearer'],\n    placeholder: 'https://YOUR_N8N_INSTANCE/mcp/YOUR_PATH/mcp',\n  },\n  {\n    id: 'zapier',\n    name: 'Zapier',\n    author: 'Zapier',\n    documentationUrl: 'https://docs.zapier.com/mcp/quickstart',\n    description:\n      'Integrate with Zapier to trigger zaps, access connected apps and automate workflows across thousands of applications.',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=zapier.com&sz=32',\n    authenticationMethodsSupported: ['oauth2'],\n    placeholder: 'https://actions.zapier.com/mcp/YOUR_API_KEY/mcp',\n  },\n  {\n    id: 'workato',\n    name: 'Workato',\n    author: 'Workato',\n    documentationUrl:\n      'https://docs.workato.com/en/mcp/getting-started.html#create-your-first-mcp-server',\n    description:\n      'Connect to Workato for enterprise-grade automation, recipe management and cross-platform integrations.',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=workato.com&sz=32',\n    authenticationMethodsSupported: ['oauth2', 'bearer'],\n    placeholder:\n      'https://mcp.workato.com/YOUR_USERNAME/YOUR_COLLECTION_ID?wkt_token=YOUR_API_TOKEN',\n  },\n  {\n    id: 'microsoft-365',\n    name: 'Microsoft 365',\n    author: 'Microsoft',\n    documentationUrl:\n      'https://support.claude.com/en/articles/12542951-enabling-and-using-the-microsoft-365-connector',\n    description:\n      'Access Microsoft 365 services including Outlook, OneDrive and SharePoint to manage emails, files and documents directly from your AI assistant.',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=microsoft.com&sz=32',\n    serverUrl: 'https://microsoft365.mcp.claude.com/mcp',\n    mcpServerUrl: 'https://microsoft365.mcp.claude.com/mcp',\n    authenticationMethodsSupported: ['oauth2'],\n  },\n  {\n    name: 'Need another connector?',\n    author: 'Forest Admin',\n    id: 'forest-admin',\n    description:\n      \"Can't find the connector you're looking for? Let us know which one(s) and we'll add them to our Library!\",\n    documentationUrl: 'https://www.forestadmin.com/',\n    logoUrl: '/img/logo.svg',\n    isForestContactUs: true,\n  },\n  {\n    name: 'Zendesk',\n    id: 'zendesk',\n    author: 'Forest Admin',\n    description: 'Create and manage helpdesk tickets straight from your Forest workflows.',\n    documentationUrl: 'https://www.zendesk.com/',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=zendesk.com&sz=32',\n    authenticationMethodsSupported: ['none'],\n    configFields: [\n      {\n        name: 'subdomain',\n        label: 'Zendesk Subdomain',\n        type: 'string',\n        placeholder: 'your-subdomain (e.g. forestadmin)',\n        required: true,\n      },\n      {\n        name: 'email',\n        label: 'Email',\n        type: 'string',\n        placeholder: 'your-email@example.com',\n        required: true,\n      },\n      {\n        name: 'apiToken',\n        label: 'API Token',\n        type: 'password',\n        placeholder: 'your Zendesk API token',\n        required: true,\n      },\n    ],\n    isForestConnector: true,\n  },\n  {\n    name: 'Kolar',\n    id: 'kolar',\n    author: 'Forest Admin',\n    description:\n      \"Run KYB merchant application checks and AML sanctions screening on companies and individuals directly from your workflows, powered by Kolar's risk analysis engine.\",\n    documentationUrl: 'https://www.kolar.ai/',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=kolar.ai&sz=32',\n    authenticationMethodsSupported: ['none'],\n    configFields: [\n      {\n        name: 'apiKey',\n        label: 'Kolar API Key',\n        type: 'password',\n        placeholder: 'your Kolar API key',\n        required: true,\n      },\n    ],\n    isForestConnector: true,\n  },\n  {\n    name: 'Orias',\n    id: 'orias',\n    author: 'Orias',\n    description:\n      'Verify the registration status of French insurance and banking intermediaries directly from your workflows. Look up any broker by ORIAS number or SIREN to confirm they are officially registered with the French financial intermediary register.',\n    documentationUrl: 'https://orias.rest/mcp',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=orias.rest&sz=32',\n    authenticationMethodsSupported: ['none'],\n    serverUrl: 'https://www.orias.rest/api/mcp',\n  },\n  {\n    name: 'Snowflake',\n    id: 'snowflake',\n    author: 'Forest Admin',\n    description:\n      'Retrieve data from Snowflake in your Forest workflows using read-only SQL execution, Cortex Search, or Cortex Analytics.',\n    documentationUrl: 'https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-agents-mcp',\n    logoUrl: 'https://www.google.com/s2/favicons?domain=snowflake.com',\n    authenticationMethodsSupported: ['none'],\n    configFields: [\n      {\n        name: 'accountIdentifier',\n        label: 'Account Identifier',\n        type: 'string',\n        placeholder: 'your Snowflake account identifier',\n        required: true,\n      },\n      {\n        name: 'programmaticAccessToken',\n        label: 'Programmatic Access Token',\n        type: 'password',\n        placeholder: 'your Snowflake programmatic access token',\n        required: true,\n      },\n      {\n        name: 'defaultWarehouse',\n        label: 'Default Warehouse',\n        type: 'string',\n        placeholder: 'your default warehouse (optional)',\n        required: false,\n      },\n      {\n        name: 'defaultDatabase',\n        label: 'Default Database',\n        type: 'string',\n        placeholder: 'your default database (optional)',\n        required: false,\n      },\n      {\n        name: 'defaultSchema',\n        label: 'Default Schema',\n        type: 'string',\n        placeholder: 'your default schema (optional)',\n        required: false,\n      },\n      {\n        name: 'defaultRole',\n        label: 'Default Role',\n        type: 'string',\n        placeholder: 'your Default Role (optional)',\n        required: false,\n      },\n    ],\n    isForestConnector: true,\n  },\n];\n\nexport const forestConnectorsReservedNames = integrationsData\n  .filter((integration) => integration.isForestConnector)\n  .map((integration) => integration.name.toLocaleLowerCase());\n","import type RouterService from '@ember/routing/router-service';\nimport type { McpServerConfigInterface } from 'client/data/models/mcp-server-config';\nimport type McpServerConfigModel from 'client/data/models/mcp-server-config';\nimport type AiFeatureService from 'client/features/ai/services/feature';\nimport type McpServerOauthInternalBusinessService from 'client/features/mcp-server/services/internal-business/oauth';\nimport type McpServerOauthDiscoveryInternalBusinessService from 'client/features/mcp-server/services/internal-business/oauth-discovery';\nimport type { WellKnownConfig } from 'client/features/mcp-server/services/internal-business/oauth-discovery';\nimport type McpServerStoreInternalBusinessService from 'client/features/mcp-server/services/internal-business/store';\nimport type McpServerFeatureState from 'client/features/mcp-server/state';\nimport type { OAuthConfig } from 'client/features/mcp-server/types';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type { AbilitiesService } from 'ember-can';\n\nimport Service, { service } from '@ember/service';\n\nimport { McpOAuthError, UnknownMCPServerError } from 'client/features/mcp-server/error';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { getFirstErrorDetail } from 'client/utils/ember-error-util';\n\nexport default class McpServerFeatureService extends Service {\n  @service private abilities: AbilitiesService;\n  @service private currentUser: CurrentUserService;\n  @service private router: RouterService;\n  @service private errorHandler: ErrorHandlerService;\n  @service('feature/mcp-server/internal-business/store')\n  private mcpServerStore: McpServerStoreInternalBusinessService;\n\n  @service('feature/mcp-server/internal-business/oauth')\n  private mcpOAuthService: McpServerOauthInternalBusinessService;\n\n  @service('feature/mcp-server/internal-business/oauth-discovery')\n  private mcpOAuthDiscoveryService: McpServerOauthDiscoveryInternalBusinessService;\n\n  @service('feature/ai')\n  private aiFeature: AiFeatureService;\n\n  @service('feature/modal')\n  private modalFeatureService: ModalFeatureService;\n\n  @service('feature/notification')\n  private readonly notificationService: NotificationFeatureService;\n\n  @service('feature/mcp-server/state') private mcpServerState: McpServerFeatureState;\n\n  public canAccessMcpServers() {\n    return this.abilities.can('access to mcpServer');\n  }\n\n  public canCreateMcpServer() {\n    return this.canAccessMcpServers() && this.currentUser.can('updateMcpServerConfig');\n  }\n\n  public async ensureAccessToMcpServersPage() {\n    if (!this.canCreateMcpServer()) {\n      await this.router.replaceWith('project.project-settings');\n    }\n  }\n\n  public async getToolsForMcpServer(mcpServer: McpServerConfigModel) {\n    try {\n      // Ensure OAuth authentication before fetching tools\n      await this.ensureOAuthAuthentication(mcpServer);\n\n      // fetchRemoteToolsDefinitions internally builds OAuth tokens from all authenticated servers\n      const tools = await this.aiFeature.fetchRemoteToolsDefinitions();\n      const toolsForMcpServer = tools.filter(\n        (tool) =>\n          (tool.sourceType === 'mcp-server' && tool.sourceId === mcpServer.serverName)\n          || (tool.sourceType === 'server'\n            && tool.sourceId.toLowerCase() === mcpServer.integrationName?.toLowerCase()),\n      );\n\n      if (toolsForMcpServer.length === 0) {\n        this.mcpServerState.hasLoadingError = true;\n      }\n\n      return toolsForMcpServer;\n    } catch (error) {\n      this.errorHandler.handleError(\n        new UnknownMCPServerError(error as Error),\n        `Failed to load tools for MCP server: ${mcpServer.serverName}`,\n      );\n      this.mcpServerState.hasLoadingError = true;\n\n      return [];\n    }\n  }\n\n  public async getToolsForMcpServerId(mcpServerId: string) {\n    const mcpServer = await this.getMCPServerById(mcpServerId);\n    if (!mcpServer) {\n      return [];\n    }\n\n    return this.getToolsForMcpServer(mcpServer);\n  }\n\n  public async getMCPServers() {\n    try {\n      return await this.mcpServerStore.getMCPServers();\n    } catch (error) {\n      this.errorHandler.handleError(\n        new UnknownMCPServerError(error as Error),\n        'Failed to load MCP servers',\n      );\n      return [];\n    }\n  }\n\n  public async getMCPServerById(mcpServerId: string, reload = true) {\n    try {\n      return await this.mcpServerStore.getMCPServerById(mcpServerId, reload);\n    } catch (error) {\n      this.errorHandler.handleError(\n        new UnknownMCPServerError(error as Error),\n        `Failed to load MCP server with ID: ${mcpServerId}`,\n      );\n      return null;\n    }\n  }\n\n  public async getMCPServerByIdSilently(mcpServerId: string): Promise<McpServerConfigModel | null> {\n    try {\n      return await this.mcpServerStore.getMCPServerById(mcpServerId, false);\n    } catch {\n      return null;\n    }\n  }\n\n  public async createMcpServer(mcpServerParameters: McpServerConfigInterface) {\n    try {\n      let oauthToken: string | undefined;\n      let tempId: string | undefined;\n\n      // Authenticate with OAuth before creating the server\n      if (mcpServerParameters.authenticationType === 'oauth2') {\n        const oauthConfig = (mcpServerParameters.config as { oauthConfig?: OAuthConfig })\n          ?.oauthConfig;\n\n        const authResult = await this.authenticateOAuthBeforeCreate(\n          mcpServerParameters.serverUrl,\n          oauthConfig,\n        );\n\n        if (!authResult) {\n          this.notificationService.createToastr(\n            ToastrTypeEnum.Error,\n            `OAuth authentication failed. MCP server was not created: ${mcpServerParameters.serverName}`,\n          );\n          return null;\n        }\n\n        oauthToken = authResult.token;\n        tempId = authResult.tempId;\n      }\n\n      const mcpOAuthHeader = oauthToken\n        ? {\n            'X-MCP-OAuth-Tokens': JSON.stringify({\n              [mcpServerParameters.serverName]: oauthToken,\n            }),\n          }\n        : undefined;\n\n      const mcpServer = await this.mcpServerStore.createMcpServer(mcpServerParameters, {\n        mcpOAuthHeader,\n      });\n\n      // Transfer OAuth credentials from temp ID to real server ID\n      if (tempId) {\n        this.mcpOAuthService.transferCredentials(tempId, mcpServer.id);\n      }\n\n      this.notificationService.createToastr(\n        ToastrTypeEnum.Success,\n        `MCP server successfully created: ${mcpServerParameters.serverName}`,\n      );\n      this.aiFeature.clearRemoteTools();\n\n      return mcpServer;\n    } catch (error) {\n      if (!(error instanceof McpOAuthError)) {\n        this.errorHandler.handleError(\n          new UnknownMCPServerError(error as Error),\n          'Failed to create MCP server',\n        );\n      }\n      return null;\n    }\n  }\n\n  public async updateMcpServer(\n    mcpServer: McpServerConfigModel,\n    mcpServerParameters: McpServerConfigInterface,\n  ) {\n    try {\n      const mcpServerUpdated = await this.mcpServerStore.updateMcpServer(\n        mcpServer,\n        mcpServerParameters,\n      );\n      this.notificationService.createToastr(\n        ToastrTypeEnum.Success,\n        `MCP server successfully saved: ${mcpServerUpdated.serverName}`,\n      );\n      return mcpServerUpdated;\n    } catch (error) {\n      this.errorHandler.handleError(\n        new UnknownMCPServerError(error as Error),\n        'Failed to save MCP server',\n      );\n      return null;\n    }\n  }\n\n  public async deleteMcpServer(mcpServer: McpServerConfigModel) {\n    try {\n      await this.mcpServerStore.deleteMcpServer(mcpServer);\n      this.notificationService.createToastr(\n        ToastrTypeEnum.Success,\n        `MCP server successfully deleted: ${mcpServer.serverName}`,\n      );\n      this.aiFeature.clearRemoteTools();\n    } catch (error) {\n      this.errorHandler.handleError(\n        new UnknownMCPServerError(error as Error),\n        `Failed to delete MCP server ${mcpServer.serverName}`,\n      );\n    }\n  }\n\n  public refreshRemoteTools() {\n    this.aiFeature.clearRemoteTools();\n  }\n\n  public resetHasLoadingError() {\n    this.mcpServerState.hasLoadingError = false;\n  }\n\n  public getIconURL(serverUrl: string): string | null {\n    try {\n      const { hostname } = new URL(serverUrl);\n\n      // For localhost or ip address use hostname directly as domain\n      if (hostname === 'localhost' || /^\\d+\\.\\d+\\.\\d+\\.\\d+$/.test(hostname)) {\n        return `https://www.google.com/s2/favicons?domain=${hostname}&sz=32`;\n      }\n\n      const parts = hostname.split('.');\n      if (parts.length <= 2) {\n        return `https://www.google.com/s2/favicons?domain=${hostname}&sz=32`;\n      }\n\n      // mcp.domain.com → domain.com\n      const baseDomain = parts.slice(-2).join('.');\n      return `https://www.google.com/s2/favicons?domain=${baseDomain}&sz=32`;\n    } catch {\n      return null;\n    }\n  }\n\n  public hasValidOAuthToken(mcpServerId: string): boolean {\n    return this.mcpOAuthService.hasValidToken(mcpServerId);\n  }\n\n  public clearOAuthToken(mcpServerId: string): void {\n    this.mcpOAuthService.clearToken(mcpServerId);\n  }\n\n  public getAuthorizationHeader(mcpServerId: string): string | null {\n    return this.mcpOAuthService.getAuthorizationHeader(mcpServerId);\n  }\n\n  public async getValidAuthorizationHeader(mcpServerId: string): Promise<string | null> {\n    return this.mcpOAuthService.getValidAuthorizationHeader(mcpServerId);\n  }\n\n  public getAllAuthorizationHeadersByServerId(): Map<string, string> {\n    return this.mcpOAuthService.getAllAuthorizationHeadersByServerId();\n  }\n\n  public async getAllValidAuthorizationHeadersByServerId(): Promise<Map<string, string>> {\n    return this.mcpOAuthService.getAllValidAuthorizationHeadersByServerId();\n  }\n\n  /**\n   * Builds the X-MCP-OAuth-Tokens header with all valid OAuth tokens.\n   * Tokens are keyed by server name (as expected by the backend).\n   * Expired tokens are automatically refreshed if a valid refresh token exists.\n   */\n  public async buildOAuthHeadersForAllServers(): Promise<Record<string, string>> {\n    const headersByServerId =\n      await this.mcpOAuthService.getAllValidAuthorizationHeadersByServerId();\n\n    if (headersByServerId.size === 0) {\n      return {};\n    }\n\n    const mcpServers = await this.getMCPServers();\n    const oauthTokens: Record<string, string> = {};\n\n    for (const mcpServer of mcpServers) {\n      const authHeader = headersByServerId.get(mcpServer.id);\n\n      if (authHeader) {\n        oauthTokens[mcpServer.serverName] = authHeader;\n      }\n    }\n\n    if (Object.keys(oauthTokens).length === 0) {\n      return {};\n    }\n\n    return { 'X-MCP-OAuth-Tokens': JSON.stringify(oauthTokens) };\n  }\n\n  public async authenticateOAuthWithConfig(\n    mcpServerId: string,\n    oauthConfig: OAuthConfig,\n  ): Promise<string | null> {\n    try {\n      return await this.mcpOAuthService.authenticateWithConfig(mcpServerId, oauthConfig);\n    } catch (error) {\n      if (error instanceof McpOAuthError) {\n        this.notificationService.createToastr(ToastrTypeEnum.Error, error.message);\n      } else {\n        this.errorHandler.handleError(\n          new UnknownMCPServerError(error as Error),\n          'OAuth authentication failed',\n        );\n      }\n\n      return null;\n    }\n  }\n\n  public async ensureOAuthAuthentication(mcpServer: McpServerConfigModel): Promise<boolean> {\n    if (mcpServer.authenticationType !== 'oauth2') {\n      return true;\n    }\n\n    if (this.hasValidOAuthToken(mcpServer.id)) {\n      return true;\n    }\n\n    const baseOAuthConfig = (mcpServer.config as { oauthConfig?: OAuthConfig })?.oauthConfig;\n    const oauthConfig = await this.mcpOAuthDiscoveryService.buildOAuthConfig(\n      mcpServer.id,\n      mcpServer.serverUrl,\n      baseOAuthConfig,\n    );\n\n    if (!oauthConfig) {\n      return true; // No valid OAuth config available, try anyway\n    }\n\n    // Show loading notification while waiting for OAuth authentication\n    const notificationId = `mcp-oauth-${mcpServer.id}`;\n    this.notificationService.createToastr(\n      ToastrTypeEnum.Loading,\n      `Waiting for authentication to ${mcpServer.serverName}...`,\n      { id: notificationId, duration: 0 },\n    );\n\n    try {\n      const token = await this.authenticateOAuthWithConfig(mcpServer.id, oauthConfig);\n\n      if (token !== null) {\n        // Clear remote tools cache to fetch fresh tools from the newly authenticated MCP server\n        this.aiFeature.clearRemoteTools();\n\n        // Update to success notification\n        this.notificationService.updateToastr(\n          ToastrTypeEnum.Success,\n          `Successfully authenticated to ${mcpServer.serverName}`,\n          notificationId,\n          { duration: 3000 },\n        );\n        return true;\n      } else {\n        // Update to error notification\n        this.notificationService.updateToastr(\n          ToastrTypeEnum.Error,\n          `Failed to authenticate to ${mcpServer.serverName}`,\n          notificationId,\n          { duration: 5000 },\n        );\n        return false;\n      }\n    } catch (error) {\n      console.error('OAuth authentication failed for MCP server', mcpServer.id, error);\n\n      // Update to error notification\n      this.notificationService.updateToastr(\n        ToastrTypeEnum.Error,\n        `Authentication error: ${(error as Error).message}`,\n        notificationId,\n        { duration: 5000 },\n      );\n\n      return false;\n    }\n  }\n\n  public async fetchWellKnownConfig(serverUrl: string): Promise<WellKnownConfig | null> {\n    return this.mcpOAuthDiscoveryService.fetchWellKnownConfig(serverUrl);\n  }\n\n  public completeOAuthFlow(code: string, state: string): void {\n    this.mcpOAuthService.completeOAuthFlow(code, state);\n  }\n\n  public handleOAuthError(\n    state: string | null,\n    error: string,\n    errorDescription: string | null,\n  ): void {\n    return this.mcpOAuthService.handleOAuthError(state, error, errorDescription);\n  }\n\n  /**\n   * Authenticate with OAuth before creating an MCP server.\n   * Uses a temporary ID for the OAuth flow and returns the token.\n   */\n  private async authenticateOAuthBeforeCreate(\n    serverUrl: string | null,\n    oauthConfig: OAuthConfig,\n  ): Promise<{ tempId: string; token: string } | null> {\n    const tempId = `pending-mcp-server-${crypto.randomUUID()}`;\n\n    // Build full OAuth config with discovery if needed\n    const fullOAuthConfig = await this.mcpOAuthDiscoveryService.buildOAuthConfig(\n      tempId,\n      serverUrl,\n      oauthConfig,\n    );\n\n    if (!fullOAuthConfig) {\n      return null;\n    }\n\n    const notificationId = `mcp-oauth-create-${tempId}`;\n    this.notificationService.createToastr(ToastrTypeEnum.Loading, 'Waiting for authentication...', {\n      id: notificationId,\n      duration: 0,\n    });\n\n    try {\n      const token = await this.authenticateOAuthWithConfig(tempId, fullOAuthConfig);\n\n      if (!token) {\n        this.notificationService.updateToastr(\n          ToastrTypeEnum.Error,\n          'Authentication failed',\n          notificationId,\n          { duration: 5000 },\n        );\n        return null;\n      }\n\n      this.notificationService.updateToastr(\n        ToastrTypeEnum.Success,\n        'Successfully authenticated',\n        notificationId,\n        { duration: 3000 },\n      );\n\n      return { tempId, token: `Bearer ${token}` };\n    } catch (error) {\n      this.notificationService.updateToastr(\n        ToastrTypeEnum.Error,\n        `Authentication error: ${(error as Error).message}`,\n        notificationId,\n        { duration: 5000 },\n      );\n      return null;\n    }\n  }\n\n  public openIntegrationsModal() {\n    this.modalFeatureService.open('feature/mcp-server/integrations-modal', {\n      onClose: () => this.modalFeatureService.close(),\n    });\n  }\n\n  public getIntegrationByName(integrationName: string) {\n    return this.mcpServerStore.getIntegration(integrationName);\n  }\n\n  public getIntegrationRequestCount(integrationName: string): number {\n    return this.mcpServerStore.getIntegrationRequestCount(integrationName);\n  }\n\n  public async getAllIntegrationRequests() {\n    try {\n      return await this.mcpServerStore.getAllIntegrationRequests();\n    } catch (error) {\n      console.error('Failed to get requested connectors:', getFirstErrorDetail(error));\n      this.notificationService.createToastr(\n        ToastrTypeEnum.Error,\n        'Failed to fetch requested connectors. Please try again later.',\n      );\n      return [];\n    }\n  }\n\n  public getCachedMCPServers() {\n    return this.mcpServerStore.getCachedMCPServers();\n  }\n\n  public getCachedIntegrationRequests() {\n    return this.mcpServerStore.getCachedIntegrationRequests();\n  }\n\n  public async requestIntegration(integrationName: string, logoUrl: string) {\n    try {\n      const integration = await this.mcpServerStore.requestIntegration(integrationName, logoUrl);\n\n      this.notificationService.createToastr(\n        ToastrTypeEnum.Success,\n        `Your request for the integration \"${integrationName}\" has been submitted successfully.`,\n      );\n      return integration;\n    } catch (error) {\n      console.error('Failed to request integration:', getFirstErrorDetail(error));\n      this.notificationService.createToastr(\n        ToastrTypeEnum.Error,\n        `Failed to submit your request for the integration \"${integrationName}\". Please try again later.`,\n      );\n    }\n  }\n\n  public setIntegrationName(integrationName: string | null) {\n    this.mcpServerState.integrationName = integrationName;\n  }\n\n  public async openIntegrationConfiguration(integrationName: string) {\n    this.setIntegrationName(integrationName);\n    this.modalFeatureService.close();\n    return this.router.transitionTo('project.project-settings.connectors.create-mcp-server');\n  }\n\n  public async getInstalledIntegrations() {\n    try {\n      return await this.mcpServerStore.queryInstalledIntegrations();\n    } catch (error) {\n      console.error('Failed to get installed connectors:', getFirstErrorDetail(error));\n      this.notificationService.createToastr(\n        ToastrTypeEnum.Error,\n        'Failed to fetch installed connectors. Please try again later.',\n      );\n      return [];\n    }\n  }\n}\n","import type { OAuthConfig } from 'client/features/mcp-server/types';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\n\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\n\nexport interface WellKnownConfig {\n  authorization_endpoint?: string;\n  token_endpoint?: string;\n  registration_endpoint?: string;\n  client_id?: string;\n  scopes_supported?: string[];\n}\n\nexport interface ResourceMetadata {\n  resource?: string;\n  authorization_servers?: string[];\n  scopes_supported?: string[];\n}\n\nexport interface OAuthDiscoveryResponse {\n  resourceMetadata?: ResourceMetadata;\n  authorizationServerMetadata?: WellKnownConfig;\n}\n\nexport interface DynamicClientRegistrationResponse {\n  client_id: string;\n  client_secret?: string;\n  client_id_issued_at?: number;\n  client_secret_expires_at?: number;\n}\n\nconst CLIENT_REGISTRATION_STORAGE_PREFIX = 'mcp-oauth-client-';\n\nexport default class McpServerOauthDiscoveryInternalBusinessService extends Service {\n  @service private serverFetch: ServerFetchService;\n\n  /**\n   * Fetch OAuth well-known configuration for an MCP server.\n   * Uses a backend proxy to avoid CORS issues when discovering OAuth configuration.\n   * The proxy handles the full OAuth discovery flow:\n   * 1. Request the MCP server URL to get WWW-Authenticate header with resource_metadata URL\n   * 2. Fetch the protected resource metadata to get authorization_servers\n   * 3. Fetch the authorization server metadata from the auth server\n   */\n  public async fetchWellKnownConfig(serverUrl: string): Promise<WellKnownConfig | null> {\n    const discoveryResponse = await this.fetchDiscoveryResponse(serverUrl);\n\n    // Return the authorization server metadata which contains the OAuth endpoints\n    return discoveryResponse?.authorizationServerMetadata || null;\n  }\n\n  public async fetchDiscoveryResponse(serverUrl: string): Promise<OAuthDiscoveryResponse | null> {\n    try {\n      const proxyUrl = `/api/mcp-server-oauth-well-known?serverUrl=${encodeURIComponent(\n        serverUrl,\n      )}`;\n      const response = await this.serverFetch.fetch(proxyUrl);\n\n      if (!response.ok) {\n        return null;\n      }\n\n      return (await response.json()) as OAuthDiscoveryResponse;\n    } catch {\n      return null;\n    }\n  }\n\n  public getStoredClientCredentials(mcpServerId: string): DynamicClientRegistrationResponse | null {\n    const key = this.getStorageKey(mcpServerId);\n    const stored = window.localStorage.getItem(key);\n\n    if (!stored) {\n      return null;\n    }\n\n    try {\n      const credentials = JSON.parse(stored) as DynamicClientRegistrationResponse;\n\n      if (\n        credentials.client_secret_expires_at\n        && Date.now() / 1000 > credentials.client_secret_expires_at\n      ) {\n        window.localStorage.removeItem(key);\n\n        return null;\n      }\n\n      return credentials;\n    } catch {\n      return null;\n    }\n  }\n\n  public storeClientCredentials(\n    mcpServerId: string,\n    credentials: DynamicClientRegistrationResponse,\n  ): void {\n    const key = this.getStorageKey(mcpServerId);\n    window.localStorage.setItem(key, JSON.stringify(credentials));\n  }\n\n  /**\n   * Register an OAuth client using dynamic client registration (RFC 7591).\n   * Uses a backend proxy to avoid CORS issues.\n   */\n  public async registerOAuthClient(\n    serverUrl: string,\n  ): Promise<DynamicClientRegistrationResponse | null> {\n    try {\n      // Use defaultDomain, not window.location.origin — see getRedirectUri() in oauth.ts\n      const { defaultDomain } = config.APP;\n      const protocol = config.APP.useSSL ? 'https:' : 'http:';\n      const redirectUri = `${protocol}//${defaultDomain}/mcp-oauth-redirect`;\n\n      const response = await this.serverFetch.fetch('/api/mcp-server-oauth-register', {\n        method: 'POST',\n        headers: {\n          'Content-Type': 'application/json',\n        },\n        body: JSON.stringify({\n          serverUrl,\n          redirectUri,\n          clientName: 'Forest Admin',\n        }),\n      });\n\n      if (!response.ok) {\n        return null;\n      }\n\n      return (await response.json()) as DynamicClientRegistrationResponse;\n    } catch {\n      return null;\n    }\n  }\n\n  public async buildOAuthConfig(\n    mcpServerId: string,\n    serverUrl: string | null,\n    baseOAuthConfig?: OAuthConfig,\n  ): Promise<OAuthConfig | null> {\n    if (!serverUrl) {\n      return null;\n    }\n\n    let oauthConfig = baseOAuthConfig;\n\n    const discoveryResponse = await this.fetchDiscoveryResponse(serverUrl);\n    const wellKnownConfig = discoveryResponse?.authorizationServerMetadata;\n    const resource = discoveryResponse?.resourceMetadata?.resource;\n\n    // If no OAuth config or missing endpoints, try to use .well-known\n    if (!oauthConfig || !oauthConfig.authorizationUrl) {\n      if (wellKnownConfig) {\n        oauthConfig = {\n          ...oauthConfig,\n          authorizationUrl:\n            wellKnownConfig.authorization_endpoint || oauthConfig?.authorizationUrl || '',\n          tokenUrl: wellKnownConfig.token_endpoint || oauthConfig?.tokenUrl || '',\n          clientId: oauthConfig?.clientId || wellKnownConfig.client_id || '',\n          scopes: oauthConfig?.scopes || wellKnownConfig.scopes_supported,\n        };\n      }\n    }\n\n    // If we still don't have a client_id, try dynamic client registration\n    if (!oauthConfig?.clientId) {\n      const storedCredentials = this.getStoredClientCredentials(mcpServerId);\n\n      if (storedCredentials) {\n        oauthConfig = {\n          ...oauthConfig,\n          authorizationUrl: oauthConfig?.authorizationUrl || '',\n          tokenUrl: oauthConfig?.tokenUrl || '',\n          clientId: storedCredentials.client_id,\n          clientSecret: storedCredentials.client_secret,\n        };\n      } else if (wellKnownConfig?.registration_endpoint) {\n        const newCredentials = await this.registerOAuthClient(serverUrl);\n\n        if (newCredentials) {\n          this.storeClientCredentials(mcpServerId, newCredentials);\n          oauthConfig = {\n            ...oauthConfig,\n            authorizationUrl: oauthConfig?.authorizationUrl || '',\n            tokenUrl: oauthConfig?.tokenUrl || '',\n            clientId: newCredentials.client_id,\n            clientSecret: newCredentials.client_secret,\n          };\n        }\n      }\n    }\n\n    if (!oauthConfig || !oauthConfig.authorizationUrl || !oauthConfig.clientId) {\n      return null;\n    }\n\n    // Include RFC 8707 resource indicator if provided by the resource metadata\n    if (resource) {\n      oauthConfig = { ...oauthConfig, resource };\n    }\n\n    return oauthConfig;\n  }\n\n  private getStorageKey(mcpServerId: string): string {\n    return `${CLIENT_REGISTRATION_STORAGE_PREFIX}${mcpServerId}`;\n  }\n}\n","import Service from '@ember/service';\nimport window from 'ember-window-mock';\n\nexport interface StoredOAuthToken {\n  accessToken: string;\n  expiresAt?: number;\n  refreshToken?: string;\n  refreshTokenExpiresAt?: number;\n  tokenType: string;\n}\n\nconst STORAGE_KEY_PREFIX = 'mcp-oauth-token-';\n\nexport default class McpServerOauthTokenStorageInternalBusinessService extends Service {\n  private getStorageKey(mcpServerId: string): string {\n    return `${STORAGE_KEY_PREFIX}${mcpServerId}`;\n  }\n\n  public getToken(mcpServerId: string): StoredOAuthToken | null {\n    const key = this.getStorageKey(mcpServerId);\n    const stored = window.localStorage.getItem(key);\n\n    if (!stored) {\n      return null;\n    }\n\n    try {\n      const token = JSON.parse(stored) as StoredOAuthToken;\n\n      // If token is expired and has no valid refresh token, clear it\n      if (token.expiresAt && Date.now() > token.expiresAt && !this.hasValidRefreshToken(token)) {\n        this.clearToken(mcpServerId);\n\n        return null;\n      }\n\n      return token;\n    } catch {\n      return null;\n    }\n  }\n\n  public setToken(mcpServerId: string, token: StoredOAuthToken): void {\n    const key = this.getStorageKey(mcpServerId);\n    window.localStorage.setItem(key, JSON.stringify(token));\n  }\n\n  public clearToken(mcpServerId: string): void {\n    const key = this.getStorageKey(mcpServerId);\n    window.localStorage.removeItem(key);\n  }\n\n  public hasValidToken(mcpServerId: string): boolean {\n    const token = this.getToken(mcpServerId);\n\n    if (!token) {\n      return false;\n    }\n\n    // If token has no expiry or hasn't expired, it's valid\n    if (!token.expiresAt || Date.now() < token.expiresAt) {\n      return true;\n    }\n\n    // Token is expired, only valid if we can refresh it\n    return this.hasValidRefreshToken(token);\n  }\n\n  private hasValidRefreshToken(token: StoredOAuthToken): boolean {\n    if (!token.refreshToken) {\n      return false;\n    }\n\n    // If refresh token has no expiry or hasn't expired, it's valid\n    return !token.refreshTokenExpiresAt || Date.now() < token.refreshTokenExpiresAt;\n  }\n\n  public getAllTokens(): Map<string, StoredOAuthToken> {\n    const tokens = new Map<string, StoredOAuthToken>();\n\n    for (let i = 0; i < window.localStorage.length; i++) {\n      const key = window.localStorage.key(i);\n\n      if (key?.startsWith(STORAGE_KEY_PREFIX)) {\n        const mcpServerId = key.slice(STORAGE_KEY_PREFIX.length);\n        const token = this.getToken(mcpServerId);\n\n        if (token) {\n          tokens.set(mcpServerId, token);\n        }\n      }\n    }\n\n    return tokens;\n  }\n\n  public transferToken(fromMcpServerId: string, toMcpServerId: string): void {\n    const token = this.getToken(fromMcpServerId);\n\n    if (token) {\n      this.setToken(toMcpServerId, token);\n      this.clearToken(fromMcpServerId);\n    }\n  }\n}\n","import type McpServerOauthTokenStorageInternalBusinessService from 'client/features/mcp-server/services/internal-business/oauth-token-storage';\nimport type { StoredOAuthToken } from 'client/features/mcp-server/services/internal-business/oauth-token-storage';\nimport type { OAuthConfig } from 'client/features/mcp-server/types';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\n\nimport { action } from '@ember/object';\nimport { cancel, later } from '@ember/runloop';\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\nimport {\n  McpOAuthError,\n  McpOAuthPopupBlockedError,\n  McpOAuthPopupClosedError,\n  McpOAuthTimeoutError,\n} from 'client/features/mcp-server/error';\nimport tryParseJson from 'client/utils/try-parse-json';\n\nconst MCP_OAUTH_PURPOSE = 'mcp-oauth-token';\nconst MCP_OAUTH_BROADCAST_CHANNEL = 'mcp-oauth-channel';\nconst OAUTH_TIMEOUT_MS = 120000;\nconst POPUP_CLOSED_DETECTION_DELAY_MS = 5000;\nconst DYNAMIC_CREDENTIALS_STORAGE_PREFIX = 'mcp-oauth-dynamic-creds-';\n\ninterface OAuthPopupMessage {\n  purpose: string;\n  mcpServerId: string;\n  code?: string;\n  error?: string;\n  errorDescription?: string;\n}\n\ninterface PendingOAuthRequest {\n  resolve: (value: string) => void;\n  reject: (error: Error) => void;\n  timerId: ReturnType<typeof later>;\n}\n\ninterface DynamicOAuthCredentials {\n  tokenUrl: string;\n  clientId: string;\n  clientSecret: string;\n  resource?: string;\n}\n\nexport default class McpServerOauthInternalBusinessService extends Service {\n  @service('feature/mcp-server/internal-business/oauth-token-storage')\n  private tokenStorage: McpServerOauthTokenStorageInternalBusinessService;\n\n  @service() private serverFetch: ServerFetchService;\n\n  private readonly pendingOAuthRequests: Map<string, PendingOAuthRequest> = new Map();\n  private readonly inMemoryCredentials: Map<string, DynamicOAuthCredentials> = new Map();\n  private readonly inMemoryPkceVerifiers: Map<string, string> = new Map();\n  private broadcastChannel: BroadcastChannel | null = null;\n\n  constructor(properties?: object) {\n    super(properties);\n    window.addEventListener('message', this.onMessage);\n    // BroadcastChannel allows cross-tab communication on the same origin.\n    // We use it because the OAuth popup navigates cross-origin (e.g. stripe.com),\n    // which causes browsers to clear window.opener, breaking postMessage.\n    this.broadcastChannel = new BroadcastChannel(MCP_OAUTH_BROADCAST_CHANNEL);\n    this.broadcastChannel.onmessage = (event: MessageEvent) => {\n      const data = event.data as OAuthPopupMessage;\n      if (data?.purpose === MCP_OAUTH_PURPOSE) {\n        void this.handleOAuthResult(data);\n      }\n    };\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    window.removeEventListener('message', this.onMessage);\n    this.broadcastChannel?.close();\n    this.pendingOAuthRequests.forEach(({ timerId }) => cancel(timerId));\n    this.pendingOAuthRequests.clear();\n    this.inMemoryCredentials.clear();\n    this.inMemoryPkceVerifiers.clear();\n  }\n\n  public getAuthorizationHeader(mcpServerId: string): string | null {\n    const token = this.tokenStorage.getToken(mcpServerId);\n\n    if (!token) {\n      return null;\n    }\n\n    return this.formatAuthorizationHeader(token);\n  }\n\n  public async getValidAuthorizationHeader(mcpServerId: string): Promise<string | null> {\n    const accessToken = await this.refreshTokenIfNeeded(mcpServerId);\n\n    if (!accessToken) {\n      return null;\n    }\n\n    const token = this.tokenStorage.getToken(mcpServerId);\n\n    if (!token) {\n      return null;\n    }\n\n    return this.formatAuthorizationHeader(token);\n  }\n\n  public hasValidToken(mcpServerId: string): boolean {\n    return this.tokenStorage.hasValidToken(mcpServerId);\n  }\n\n  public hasValidOrRefreshableToken(mcpServerId: string): boolean {\n    const token = this.tokenStorage.getToken(mcpServerId);\n\n    if (!token) {\n      return false;\n    }\n\n    // Token is still valid\n    if (!token.expiresAt || Date.now() < token.expiresAt) {\n      return true;\n    }\n\n    // Token is expired, check if we have a valid refresh token\n    return this.hasValidRefreshToken(token);\n  }\n\n  private hasValidRefreshToken(token: StoredOAuthToken): boolean {\n    if (!token.refreshToken) {\n      return false;\n    }\n\n    // If refresh token has no expiry or hasn't expired, it's valid\n    return !token.refreshTokenExpiresAt || Date.now() < token.refreshTokenExpiresAt;\n  }\n\n  public clearToken(mcpServerId: string): void {\n    this.tokenStorage.clearToken(mcpServerId);\n  }\n\n  public async refreshTokenIfNeeded(mcpServerId: string): Promise<string | null> {\n    const token = this.tokenStorage.getToken(mcpServerId);\n\n    if (!token) {\n      return null;\n    }\n\n    // Token without expiry is always valid (e.g. Slack tokens)\n    if (!token.expiresAt) {\n      return token.accessToken;\n    }\n\n    // Check if token is still valid (with 60 second buffer)\n    if (Date.now() < token.expiresAt - 60000) {\n      return token.accessToken;\n    }\n\n    // Token is expired or about to expire, try to refresh\n    if (!this.hasValidRefreshToken(token)) {\n      // No valid refresh token available, clear the expired token\n      this.tokenStorage.clearToken(mcpServerId);\n\n      return null;\n    }\n\n    try {\n      const newToken = await this.performTokenRefresh(mcpServerId, token.refreshToken!);\n\n      return newToken.accessToken;\n    } catch (error) {\n      console.error('[OAuth] Token refresh failed:', error);\n      this.tokenStorage.clearToken(mcpServerId);\n\n      return null;\n    }\n  }\n\n  /**\n   * Refresh an access token using the backend proxy.\n   * Uses POST /api/mcp-server-oauth-token with refresh_token grant type.\n   */\n  private async performTokenRefresh(\n    mcpServerId: string,\n    refreshToken: string,\n  ): Promise<StoredOAuthToken> {\n    const credentials = this.getDynamicCredentials(mcpServerId);\n\n    if (!credentials) {\n      throw new McpOAuthError('No credentials available for token refresh');\n    }\n\n    const response = await this.serverFetch.fetch('/api/mcp-server-oauth-token', {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n      },\n      body: JSON.stringify({\n        grantType: 'refresh_token',\n        tokenUrl: credentials.tokenUrl,\n        refreshToken,\n        clientId: credentials.clientId,\n        clientSecret: credentials.clientSecret || undefined,\n      }),\n    });\n\n    if (!response.ok) {\n      const errorText = await response.text();\n      throw new McpOAuthError(`Token refresh failed: ${errorText}`);\n    }\n\n    const tokenData = (await response.json()) as {\n      access_token: string;\n      token_type?: string;\n      expires_in?: number;\n      refresh_token?: string;\n      refresh_token_expires_in?: number;\n    };\n\n    // Get the old token to preserve refresh token expiration if not provided in response\n    const oldToken = this.tokenStorage.getToken(mcpServerId);\n\n    const newToken: StoredOAuthToken = {\n      accessToken: tokenData.access_token,\n      tokenType: tokenData.token_type || 'Bearer',\n      expiresAt: tokenData.expires_in ? Date.now() + tokenData.expires_in * 1000 : undefined,\n      // Use new refresh token if provided, otherwise keep the old one\n      refreshToken: tokenData.refresh_token || refreshToken,\n      // Use new refresh token expiration if provided, otherwise keep the old one\n      refreshTokenExpiresAt: tokenData.refresh_token_expires_in\n        ? Date.now() + tokenData.refresh_token_expires_in * 1000\n        : oldToken?.refreshTokenExpiresAt,\n    };\n\n    this.tokenStorage.setToken(mcpServerId, newToken);\n\n    return newToken;\n  }\n\n  public getAllAuthorizationHeadersByServerId(): Map<string, string> {\n    const headers = new Map<string, string>();\n    const tokens = this.tokenStorage.getAllTokens();\n\n    for (const [mcpServerId, token] of tokens) {\n      headers.set(mcpServerId, this.formatAuthorizationHeader(token));\n    }\n\n    return headers;\n  }\n\n  public async getAllValidAuthorizationHeadersByServerId(): Promise<Map<string, string>> {\n    const headers = new Map<string, string>();\n    const tokens = this.tokenStorage.getAllTokens();\n\n    for (const [mcpServerId] of tokens) {\n      const header = await this.getValidAuthorizationHeader(mcpServerId);\n\n      if (header) {\n        headers.set(mcpServerId, header);\n      }\n    }\n\n    return headers;\n  }\n\n  private formatAuthorizationHeader(token: StoredOAuthToken): string {\n    const tokenType = token.tokenType === 'bearer' ? 'Bearer' : token.tokenType;\n    return `${tokenType} ${token.accessToken}`;\n  }\n\n  public storeDynamicCredentials(mcpServerId: string, credentials: DynamicOAuthCredentials): void {\n    this.inMemoryCredentials.set(mcpServerId, credentials);\n    // Also persist to localStorage for token refresh after page reload\n    const key = `${DYNAMIC_CREDENTIALS_STORAGE_PREFIX}${mcpServerId}`;\n    window.localStorage.setItem(key, JSON.stringify(credentials));\n  }\n\n  public getDynamicCredentials(mcpServerId: string): DynamicOAuthCredentials | null {\n    // Read from in-memory first, fall back to localStorage (for post-reload refresh)\n    const inMemory = this.inMemoryCredentials.get(mcpServerId);\n\n    if (inMemory) {\n      return inMemory;\n    }\n\n    const key = `${DYNAMIC_CREDENTIALS_STORAGE_PREFIX}${mcpServerId}`;\n    const stored = window.localStorage.getItem(key);\n\n    if (!stored) {\n      return null;\n    }\n\n    try {\n      return JSON.parse(stored) as DynamicOAuthCredentials;\n    } catch {\n      return null;\n    }\n  }\n\n  public clearDynamicCredentials(mcpServerId: string): void {\n    this.inMemoryCredentials.delete(mcpServerId);\n    const key = `${DYNAMIC_CREDENTIALS_STORAGE_PREFIX}${mcpServerId}`;\n    window.localStorage.removeItem(key);\n  }\n\n  public transferCredentials(fromMcpServerId: string, toMcpServerId: string): void {\n    // Transfer token\n    this.tokenStorage.transferToken(fromMcpServerId, toMcpServerId);\n\n    // Transfer dynamic credentials\n    const credentials = this.getDynamicCredentials(fromMcpServerId);\n\n    if (credentials) {\n      this.storeDynamicCredentials(toMcpServerId, credentials);\n      this.clearDynamicCredentials(fromMcpServerId);\n    }\n\n    // Transfer PKCE verifier (if any)\n    const verifier = this.getPkceVerifier(fromMcpServerId);\n\n    if (verifier) {\n      this.storePkceVerifier(toMcpServerId, verifier);\n      this.clearPkceVerifier(fromMcpServerId);\n    }\n  }\n\n  // PKCE support methods\n  private generateCodeVerifier(): string {\n    const array = new Uint8Array(32);\n    window.crypto.getRandomValues(array);\n\n    return this.base64UrlEncode(array);\n  }\n\n  private async generateCodeChallenge(verifier: string): Promise<string> {\n    const encoder = new TextEncoder();\n    const data = encoder.encode(verifier);\n    const digest = await window.crypto.subtle.digest('SHA-256', data);\n\n    return this.base64UrlEncode(new Uint8Array(digest));\n  }\n\n  private base64UrlEncode(buffer: Uint8Array): string {\n    const base64 = btoa(String.fromCharCode(...buffer));\n\n    return base64.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '');\n  }\n\n  private storePkceVerifier(mcpServerId: string, verifier: string): void {\n    this.inMemoryPkceVerifiers.set(mcpServerId, verifier);\n  }\n\n  private getPkceVerifier(mcpServerId: string): string | null {\n    return this.inMemoryPkceVerifiers.get(mcpServerId) ?? null;\n  }\n\n  private clearPkceVerifier(mcpServerId: string): void {\n    this.inMemoryPkceVerifiers.delete(mcpServerId);\n  }\n\n  public async authenticateWithConfig(\n    mcpServerId: string,\n    oauthConfig: OAuthConfig,\n  ): Promise<string> {\n    // Validate required OAuth config fields\n    if (!oauthConfig.authorizationUrl || !oauthConfig.clientId) {\n      throw new McpOAuthError(\n        'Invalid OAuth configuration: authorizationUrl and clientId are required',\n      );\n    }\n\n    // Store token URL and credentials for backend proxy token exchange\n    // This enables PKCE flow for public clients (no client_secret)\n    this.storeDynamicCredentials(mcpServerId, {\n      tokenUrl: oauthConfig.tokenUrl || '',\n      clientId: oauthConfig.clientId,\n      clientSecret: oauthConfig.clientSecret || '',\n      resource: oauthConfig.resource,\n    });\n\n    // Generate PKCE code verifier and challenge for public clients\n    const codeVerifier = this.generateCodeVerifier();\n    const codeChallenge = await this.generateCodeChallenge(codeVerifier);\n\n    // Store verifier for token exchange\n    this.storePkceVerifier(mcpServerId, codeVerifier);\n\n    const authUrl = this.buildAuthorizationUrl(mcpServerId, oauthConfig, codeChallenge);\n    console.info('[OAuth] Opening popup with URL:', authUrl);\n    const popup = window.open(authUrl, 'mcp-oauth-popup', 'width=600,height=1000');\n\n    if (!popup || popup.closed) {\n      throw new McpOAuthPopupBlockedError();\n    }\n\n    return new Promise((resolve, reject) => {\n      let focusTimerId: NodeJS.Timeout | null = null;\n\n      const cleanup = () => {\n        window.removeEventListener('focus', onFocus);\n        if (focusTimerId) {\n          clearTimeout(focusTimerId);\n        }\n      };\n\n      // Detect popup closure: when the user closes the popup and returns to the main\n      // window, this focus handler fires. We wait POPUP_CLOSED_DETECTION_DELAY_MS before\n      // rejecting to give the BroadcastChannel message time to arrive and resolve first.\n      // If the OAuth flow already completed, pendingOAuthRequests won't have the entry.\n      const onFocus = () => {\n        if (focusTimerId) {\n          clearTimeout(focusTimerId);\n        }\n        // eslint-disable-next-line no-restricted-globals\n        focusTimerId = setTimeout(() => {\n          if (this.pendingOAuthRequests.has(mcpServerId)) {\n            cleanup();\n            // eslint-disable-next-line ember/no-runloop\n            cancel(timerId);\n            this.pendingOAuthRequests.delete(mcpServerId);\n            this.clearPkceVerifier(mcpServerId);\n            reject(new McpOAuthPopupClosedError());\n          }\n        }, POPUP_CLOSED_DETECTION_DELAY_MS);\n      };\n\n      window.addEventListener('focus', onFocus);\n\n      const timerId = later(\n        this,\n        () => {\n          cleanup();\n          this.pendingOAuthRequests.delete(mcpServerId);\n          this.clearPkceVerifier(mcpServerId);\n          popup.close();\n          reject(new McpOAuthTimeoutError());\n        },\n        OAUTH_TIMEOUT_MS,\n      );\n\n      this.pendingOAuthRequests.set(mcpServerId, {\n        resolve: (value: string) => {\n          cleanup();\n          resolve(value);\n        },\n        reject: (error: Error) => {\n          cleanup();\n          reject(error);\n        },\n        timerId,\n      });\n    });\n  }\n\n  private buildAuthorizationUrl(\n    mcpServerId: string,\n    oauthConfig: OAuthConfig,\n    codeChallenge?: string,\n  ): string {\n    const redirectUri = this.getRedirectUri();\n    const state = JSON.stringify({ mcpServerId, openerOrigin: window.location.origin });\n\n    // clientId and authorizationUrl are validated in authenticateWithConfig\n    const params = new URLSearchParams({\n      client_id: oauthConfig.clientId!,\n      redirect_uri: redirectUri,\n      response_type: 'code',\n      state,\n    });\n\n    if (oauthConfig.scopes?.length) {\n      params.set('scope', oauthConfig.scopes.join(' '));\n    }\n\n    // Add PKCE parameters for public clients\n    if (codeChallenge) {\n      params.set('code_challenge', codeChallenge);\n      params.set('code_challenge_method', 'S256');\n    }\n\n    // RFC 8707 Resource Indicator - scopes the token to the specific MCP server\n    if (oauthConfig.resource) {\n      params.set('resource', oauthConfig.resource);\n    }\n\n    const separator = oauthConfig.authorizationUrl!.includes('?') ? '&' : '?';\n\n    return `${oauthConfig.authorizationUrl}${separator}${params.toString()}`;\n  }\n\n  /**\n   * Always use defaultDomain (e.g. app.forestadmin.com), NOT window.location.origin.\n   * The redirect URI must be identical across dynamic client registration, authorization\n   * request, and token exchange. Custom domains would cause a mismatch since the\n   * registration in oauth-discovery.ts also uses defaultDomain.\n   */\n  private getRedirectUri(): string {\n    const { defaultDomain } = config.APP;\n    const protocol = config.APP.useSSL ? 'https:' : 'http:';\n\n    return `${protocol}//${defaultDomain}/mcp-oauth-redirect`;\n  }\n\n  @action\n  private onMessage(event: MessageEvent): void {\n    const { defaultDomain } = config.APP;\n    const protocol = config.APP.useSSL ? 'https:' : 'http:';\n    const expectedOrigin = `${protocol}//${defaultDomain}`;\n\n    // Accept messages from the defaultDomain where the OAuth redirect page lives\n    if (event.origin !== expectedOrigin) {\n      return;\n    }\n\n    const data = tryParseJson<OAuthPopupMessage>(event.data);\n\n    if (!data || data.purpose !== MCP_OAUTH_PURPOSE) {\n      return;\n    }\n\n    void this.handleOAuthResult(data);\n  }\n\n  private async handleOAuthResult(data: OAuthPopupMessage): Promise<void> {\n    const pending = this.pendingOAuthRequests.get(data.mcpServerId);\n\n    if (!pending) {\n      return;\n    }\n\n    try {\n      cancel(pending.timerId);\n      this.pendingOAuthRequests.delete(data.mcpServerId);\n\n      if (data.error) {\n        pending.reject(new McpOAuthError(`${data.error}: ${data.errorDescription || ''}`));\n        return;\n      }\n\n      // Receive authorization code from popup, do token exchange in the main window.\n      // This avoids localStorage partitioning issues in browsers with strict storage isolation.\n      if (data.code) {\n        try {\n          const credentials = this.getDynamicCredentials(data.mcpServerId);\n\n          if (!credentials) {\n            pending.reject(new McpOAuthError('No credentials found for token exchange'));\n            return;\n          }\n\n          const codeVerifier = this.getPkceVerifier(data.mcpServerId);\n          console.info(\n            '[OAuth] Exchanging code for mcpServerId:',\n            data.mcpServerId,\n            'PKCE:',\n            codeVerifier ? 'yes' : 'no',\n          );\n          const tokenData = await this.exchangeCodeWithDynamicCredentials(\n            data.code,\n            credentials,\n            codeVerifier,\n          );\n\n          if (!tokenData.access_token) {\n            throw new McpOAuthError(\n              `Token exchange returned no access_token: ${JSON.stringify(tokenData)}`,\n            );\n          }\n\n          this.tokenStorage.setToken(data.mcpServerId, {\n            accessToken: tokenData.access_token,\n            tokenType: tokenData.token_type || 'Bearer',\n            expiresAt: tokenData.expires_in ? Date.now() + tokenData.expires_in * 1000 : undefined,\n            refreshToken: tokenData.refresh_token,\n            refreshTokenExpiresAt: tokenData.refresh_token_expires_in\n              ? Date.now() + tokenData.refresh_token_expires_in * 1000\n              : undefined,\n          });\n          console.info('[OAuth] Token exchange successful');\n          pending.resolve(tokenData.access_token);\n        } catch (error) {\n          console.error('[OAuth] Token exchange failed:', error);\n          if (error instanceof McpOAuthError) {\n            pending.reject(error);\n          } else if (error instanceof Error) {\n            pending.reject(new McpOAuthError(`Token exchange failed: ${error.message}`));\n          } else {\n            pending.reject(new McpOAuthError(`Token exchange failed: ${String(error)}`));\n          }\n        } finally {\n          this.clearPkceVerifier(data.mcpServerId);\n        }\n\n        return;\n      }\n\n      // Message had no code or error — reject to avoid a hanging promise\n      pending.reject(new McpOAuthError('Received OAuth response with no authorization code'));\n    } catch (error) {\n      pending.reject(\n        error instanceof McpOAuthError\n          ? error\n          : new McpOAuthError(`Unexpected OAuth error: ${(error as Error).message}`),\n      );\n    }\n  }\n\n  public completeOAuthFlow(code: string, state: string): void {\n    const parsedState = tryParseJson<{ mcpServerId: string; openerOrigin?: string }>(state);\n\n    if (!parsedState || !parsedState.mcpServerId) {\n      console.error('[OAuth] Invalid state parameter');\n      const errorMsg: OAuthPopupMessage = {\n        purpose: MCP_OAUTH_PURPOSE,\n        mcpServerId: 'unknown',\n        error: 'invalid_state',\n        errorDescription: 'Invalid or malformed state parameter',\n      };\n      this.broadcastToOpener(errorMsg);\n      this.postMessageToOpener(errorMsg);\n      return;\n    }\n\n    const { mcpServerId, openerOrigin } = parsedState;\n    const msg: OAuthPopupMessage = { purpose: MCP_OAUTH_PURPOSE, mcpServerId, code };\n    this.broadcastToOpener(msg);\n    this.postMessageToOpener(msg, openerOrigin);\n  }\n\n  /**\n   * Exchange authorization code for tokens using the backend proxy.\n   * Uses POST /api/mcp-server-oauth-token to avoid CORS issues.\n   */\n  private async exchangeCodeWithDynamicCredentials(\n    code: string,\n    credentials: DynamicOAuthCredentials,\n    codeVerifier: string | null,\n  ): Promise<{\n    access_token: string;\n    token_type?: string;\n    expires_in?: number;\n    refresh_token?: string;\n    refresh_token_expires_in?: number;\n  }> {\n    console.info('[OAuth] Exchanging code via backend proxy, PKCE:', codeVerifier ? 'yes' : 'no');\n\n    const response = await this.serverFetch.fetch('/api/mcp-server-oauth-token', {\n      method: 'POST',\n      headers: {\n        'Content-Type': 'application/json',\n      },\n      body: JSON.stringify({\n        grantType: 'authorization_code',\n        tokenUrl: credentials.tokenUrl,\n        code,\n        redirectUri: this.getRedirectUri(),\n        clientId: credentials.clientId,\n        clientSecret: credentials.clientSecret || undefined,\n        codeVerifier: codeVerifier || undefined,\n        resource: credentials.resource || undefined,\n      }),\n    });\n\n    if (!response.ok) {\n      const errorText = await response.text();\n      throw new McpOAuthError(`Token exchange failed: ${errorText}`);\n    }\n\n    return response.json() as Promise<{\n      access_token: string;\n      token_type?: string;\n      expires_in?: number;\n      refresh_token?: string;\n      refresh_token_expires_in?: number;\n    }>;\n  }\n\n  public handleOAuthError(\n    state: string | null,\n    error: string,\n    errorDescription: string | null,\n  ): void {\n    let mcpServerId = 'unknown';\n    let openerOrigin: string | undefined;\n\n    if (state) {\n      const parsedState = tryParseJson<{ mcpServerId: string; openerOrigin?: string }>(state);\n\n      if (parsedState && parsedState.mcpServerId) {\n        mcpServerId = parsedState.mcpServerId;\n        openerOrigin = parsedState.openerOrigin;\n      }\n    }\n\n    const msg: OAuthPopupMessage = {\n      purpose: MCP_OAUTH_PURPOSE,\n      mcpServerId,\n      error,\n      errorDescription,\n    };\n    this.broadcastToOpener(msg);\n    this.postMessageToOpener(msg, openerOrigin);\n  }\n\n  // Send via BroadcastChannel (works even when window.opener is cleared by cross-origin navigation)\n  private broadcastToOpener(data: OAuthPopupMessage): void {\n    try {\n      const channel = new BroadcastChannel(MCP_OAUTH_BROADCAST_CHANNEL);\n      channel.postMessage(data);\n      channel.close();\n    } catch {\n      // BroadcastChannel not supported\n    }\n  }\n\n  // Fallback: send via postMessage (only works if window.opener was preserved)\n  private postMessageToOpener(data: OAuthPopupMessage, openerOrigin?: string): void {\n    if (window.opener && openerOrigin) {\n      window.opener.postMessage(JSON.stringify(data), openerOrigin);\n    }\n  }\n}\n","import type IntegrationRequestModel from 'client/data/models/integration-request';\nimport type { McpServerConfigInterface } from 'client/data/models/mcp-server-config';\nimport type McpServerConfigModel from 'client/data/models/mcp-server-config';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nexport default class McpServerStoreInternalBusinessService extends Service {\n  @service private store: StoreService;\n  @service private currentUser: CurrentUserService;\n  @service private serverFetch: ServerFetchService;\n\n  public async getMCPServers() {\n    return (await this.store.findAll('mcp-server-config'))?.toArray();\n  }\n\n  public async getMCPServerById(mcpServerId: string, reload = true) {\n    return this.store.findRecord('mcp-server-config', mcpServerId, { reload });\n  }\n\n  public async createMcpServer(\n    mcpServerParameters: McpServerConfigInterface,\n    options?: { mcpOAuthHeader?: Record<string, string> },\n  ) {\n    const mcpServer = this.store.createRecord('mcp-server-config', mcpServerParameters);\n    try {\n      return await mcpServer.save({\n        adapterOptions: options?.mcpOAuthHeader ? { mcpOAuthHeader: options.mcpOAuthHeader } : {},\n      });\n    } catch (error) {\n      mcpServer.unloadRecord();\n      throw error;\n    }\n  }\n\n  public async updateMcpServer(\n    mcpServer: McpServerConfigModel,\n    mcpServerParameters: McpServerConfigInterface,\n  ) {\n    mcpServer.setProperties(mcpServerParameters);\n    return mcpServer.save();\n  }\n\n  public async deleteMcpServer(mcpServer: McpServerConfigModel) {\n    await mcpServer.destroyRecord();\n  }\n\n  public async getAllIntegrationRequests() {\n    const requests = await this.store.findAll('integration-request');\n    return requests.toArray();\n  }\n\n  public getIntegrationRequestCount(integrationName: string): number {\n    const request = this.getIntegration(integrationName);\n    return request?.userIds?.length ?? 0;\n  }\n\n  public getCachedMCPServers() {\n    return this.store.peekAll('mcp-server-config').toArray();\n  }\n\n  public getCachedIntegrationRequests() {\n    return this.store.peekAll('integration-request').toArray();\n  }\n\n  public getIntegration(integrationName: string) {\n    const requests = this.getCachedIntegrationRequests();\n    const request = (requests.slice() as IntegrationRequestModel[]).find(\n      (r) => r.integrationName === integrationName,\n    );\n    return request;\n  }\n\n  public async requestIntegration(integrationName: string, logoUrl: string) {\n    const result = await this.serverFetch.fetch(\n      '/api/integration-requests',\n      {\n        method: 'POST',\n        body: JSON.stringify({ integrationName, mcpLogoUrl: logoUrl }),\n      },\n      true,\n    );\n\n    const json = (await result.json()) as {\n      data: { integration_name: string; user_ids: number[] };\n    };\n    const normalized = this.store.normalize('integration-request', json.data);\n    return this.store.push(normalized) as IntegrationRequestModel;\n  }\n\n  public async queryInstalledIntegrations() {\n    const result = await this.serverFetch.fetch(\n      '/api/installed-integrations',\n      { method: 'GET' },\n      true,\n    );\n\n    const json = (await result.json()) as string[];\n    return json;\n  }\n}\n","import Service from '@ember/service';\nimport { tracked } from 'tracked-built-ins';\n\nexport default class McpServerFeatureState extends Service {\n  @tracked hasLoadingError = false;\n\n  @tracked integrationName: string | null = null;\n}\n","import type AbstractModel from 'client/data/models/abstract-model';\nimport type FieldModel from 'client/data/models/field';\nimport type RenderingModel from 'client/data/models/rendering';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\nimport type { Server } from 'miragejs';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport { camelize } from '@ember/string';\nimport { faker } from '@faker-js/faker';\nimport window from 'ember-window-mock';\nimport { Factory, Model, belongsTo, createServer, hasMany } from 'miragejs';\n\nimport config from 'client/config/environment';\nimport ApplicationMirageSerializer from 'client/custom-mirage/serializers/application';\n\nexport default class MockedAgentFeatureService extends Service {\n  @service private lianaSession: LianaSessionService;\n  @service private store: StoreService;\n\n  private mirageLogs: { verb: string; path: string }[] = [];\n\n  public registerFakeAgent(rendering: RenderingModel) {\n    if (!this.lianaSession.currentProject?.isMockedAgent || !config.APP.isMockedAgentEnabled)\n      return null;\n\n    console.info('Initializing Mocked Agent...');\n    const mirageModels = this.getModels(rendering);\n    const routes = this.getRoutes(rendering);\n\n    const mirageConfig = {\n      models: { ...mirageModels },\n      routes,\n      serializers: {\n        application: ApplicationMirageSerializer,\n      },\n      factories: this.getFactories(rendering),\n      seeds: this.getSeeds(rendering),\n    };\n\n    const server = createServer(mirageConfig);\n\n    window.logAgentCalls = this.logAgentCalls;\n    console.info('To log all the calls made to the agent, use `window.logAgentCalls`');\n    return server;\n  }\n\n  private getModels(rendering: RenderingModel) {\n    const mirageModels = {};\n\n    rendering.collections.forEach((collection) => {\n      const model = this.store.modelFor(collection.emberModelName);\n      const attrs = {};\n\n      model.eachRelationship((name, r) => {\n        if (r.kind === 'belongsTo') {\n          attrs[name] = belongsTo(`${r.type}`, r.options);\n        } else if (r.kind === 'hasMany') {\n          attrs[name] = hasMany(`${r.type}`, r.options);\n        }\n      });\n\n      mirageModels[collection.emberModelName] = Model.extend(attrs);\n    });\n\n    return mirageModels;\n  }\n\n  private getRoutes(rendering: RenderingModel) {\n    const { createHandledRequest } = this;\n    function routes(this: Server): void {\n      this.logging = true;\n      this.urlPrefix = rendering.environment.apiEndpoint;\n      this.namespace = '/forest';\n\n      rendering.collections.forEach((collection) => {\n        // eslint-disable-next-line ember/classic-decorator-no-classic-methods\n        this.get(`${collection.name}/count`, (schema) => {\n          const count = schema.all(collection.emberModelName).length;\n          return { count };\n        });\n        this.resource(collection.emberModelName, { path: `/${collection.name}` });\n      });\n\n      this.passthrough(`${rendering.environment.apiEndpoint}/forest/authentication`);\n      this.passthrough(`${rendering.environment.apiEndpoint}/oidc/auth`);\n      this.passthrough();\n      this.passthrough(`${config.APP.apiServerHost}/**`);\n      this.passthrough(`${window.location.origin}/**`);\n      this.passthrough('https://api.segment.io/**');\n      this.passthrough('https://browser-intake-datadoghq.com/**');\n\n      this.pretender.handledRequest = createHandledRequest(this.pretender);\n    }\n\n    console.info('Routes constructed');\n    return routes;\n  }\n\n  private getFactories(rendering: RenderingModel) {\n    const factories = {};\n\n    rendering.collections.forEach((collection) => {\n      const model = this.store.modelFor(\n        collection.emberModelName,\n      ) as unknown as typeof AbstractModel;\n      const attrs = {};\n\n      model.eachAttribute((name, r) => {\n        const field = collection.fields.find((f) => f.attributeNameWithRelationships === name);\n        attrs[name] = this.getFakerForField(field);\n      });\n      model.eachRelationship((name, r) => {\n        const field = collection.fields.find((f) => f.attributeNameWithRelationships === name);\n        attrs[name as string] =\n          factories[camelize(field.referenceModelName)]\n          || field.referenceModelName === collection.emberModelName\n            ? null\n            : this.getFakerForField(field);\n      });\n\n      factories[camelize(collection.emberModelName)] = Factory.extend(attrs);\n    });\n\n    console.info('Factories constructed');\n    return factories;\n  }\n\n  private getFakerForField(field: FieldModel): (() => unknown) | null {\n    if (!field || field.isEmbedded) {\n      return null;\n    }\n    if (field.isRelationship) {\n      return null;\n      // This is taking all the memory, I don't know why\n      // return field.isBelongsTo ? association() : null;\n    }\n    switch (field.typeStringified) {\n      case '[\"Boolean\"]':\n        return () => faker.helpers.multiple(faker.datatype.boolean);\n      case '[\"Number\"]':\n        return () => faker.helpers.multiple(faker.number.int);\n      case '[\"String\"]':\n        return () => faker.helpers.multiple(faker.lorem.word);\n      case '[\"Enum\"]':\n        return field.enums?.length > 0\n          ? () => faker.helpers.multiple(() => faker.helpers.arrayElement(field.enums || []))\n          : null;\n      case 'Boolean':\n        return () => faker.datatype.boolean();\n      case 'Date':\n      case 'Dateonly':\n        return () => faker.date.past();\n      case 'Enum':\n        return field.enums?.length > 0 ? () => faker.helpers.arrayElement(field.enums || []) : null;\n      case 'Number':\n        return () => faker.number.int();\n      case 'Time':\n        return () =>\n          `${faker.number.int({ min: 0, max: 23 })}:${faker.number.int({\n            min: 0,\n            max: 59,\n          })}:${faker.number.int({ min: 0, max: 59 })}.000`;\n      case 'Uuid':\n        return () => faker.string.uuid();\n      case 'File':\n        return () => faker.image.dataUri();\n      case 'Json':\n      case 'Point':\n        return () => null;\n      case 'String':\n      default:\n        return () => faker.lorem.word();\n    }\n  }\n\n  private getSeeds(rendering: RenderingModel) {\n    return (server: Server) => {\n      console.info('Seeding data...');\n      rendering.collections.forEach((collection, index) => {\n        console.info(\n          `Seeding data (${index + 1}/${rendering.collections.length}) for collection:`,\n          collection.name,\n        );\n        server.createList(collection.emberModelName, faker.number.int({ max: 100 }));\n      });\n    };\n  }\n\n  @action\n  private createHandledRequest(pretender: Server['pretender']) {\n    const superHandledRequest = pretender.handledRequest;\n    return (\n      verb: string,\n      path: string,\n      request: Parameters<Server['pretender']['handledRequest']>[2],\n    ) => {\n      this.mirageLogs.push({\n        verb,\n        path,\n      });\n      return superHandledRequest.call(pretender, verb, path, request);\n    };\n  }\n\n  @action\n  private logAgentCalls() {\n    const logs = this.mirageLogs.map((log) => `${log.verb} ${log.path}`);\n    console.info('Agent calls:\\n', logs);\n  }\n}\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface ModalArgs {\n  onClose?: (e: Event) => void;\n  mustDisableClose?: boolean;\n  hideCloseButton?: boolean;\n  portal?: string;\n}\n\n/**\n * This modal is meant to replace BetaModal, which theme is pretty broken by default\n * It is built to be composable. The existing components can be either extended, or completed\n * with new components if necessary.\n */\n@validateArguments\nexport default class ModalInternalModalWindowComponent extends Component<ModalArgs> {\n  public static propTypes = {\n    onClose: PropTypes.func,\n    mustDisableClose: PropTypes.bool,\n    hideCloseButton: PropTypes.bool,\n    portal: PropTypes.string,\n  };\n\n  @action\n  public onClose(event: Event) {\n    if (this.args.onClose) {\n      this.args.onClose(event);\n    }\n  }\n\n  get hasCloseButton() {\n    return !this.args.hideCloseButton && !this.args.mustDisableClose && Boolean(this.args.onClose);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! Don\\'t use this component directly. Instead use the featureModalService to open a given component as a modal. }}\\n<Modal::ModalWindow\\n  @onClickOutside={{if (and @onClose (not @mustDisableClose)) this.onClose}}\\n  @stopPropagation={{true}}\\n  @hasCustomSize={{true}}\\n  @isScrollable={{false}}\\n  @hasCloseButton={{this.hasCloseButton}}\\n  @closeOnEscape={{not @mustDisableClose}}\\n  @blockClass=\\\"c-feature-modal-window\\\"\\n  @portal={{@portal}}\\n  class=\\\"c-feature-modal-window__container\\\"\\n  data-test-shared-modal\\n  ...attributes\\n>\\n  {{yield}}\\n</Modal::ModalWindow>\\n', { moduleName: 'client/features/modal/components/internal/modal-window/template.hbs' });\n","import type ModalState from 'client/features/modal/state';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class ModalModalContainerComponent extends Component {\n  @service('feature/modal/state')\n  public modalState: ModalState;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-test-feature-modal-container ...attributes>\\n  {{! as the feature is directly embedded in the root body, it\\'s\\n  not necessary to use a portal and we could simply get rid of it}}\\n  <Shared::PortalFor @name=\\\"modal-feature\\\" />\\n\\n  {{#if this.modalState.modal}}\\n    {{#let this.modalState.modal as |modal|}}\\n      <Feature::Modal::Internal::ModalWindow\\n        @onClose={{modal.onClose}}\\n        @portal=\\\"modal-feature\\\"\\n        @mustDisableClose={{modal.mustDisableClose}}\\n        @hideCloseButton={{modal.hideCloseButton}}\\n      >\\n        {{component modal.componentName data=modal.data onClose=modal.onClose}}\\n      </Feature::Modal::Internal::ModalWindow>\\n    {{/let}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/modal/components/modal-container/template.hbs' });\n","import type ModalState from 'client/features/modal/state';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class ModalRightPanelContainerComponent extends Component {\n  @service('feature/modal/state')\n  public modalState: ModalState;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-test-feature-modal-right-panel-container ...attributes>\\n  {{#if this.modalState.rightPanel}}\\n    {{#let this.modalState.rightPanel as |rightPanel|}}\\n      {{component\\n        rightPanel.componentName\\n        data=rightPanel.data\\n        onClose=rightPanel.onClose\\n        openOnUpdate=rightPanel\\n      }}\\n    {{/let}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/modal/components/right-panel-container/template.hbs' });\n","import type ModalState from 'client/features/modal/state';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport Service, { service } from '@ember/service';\n\nimport config from 'client/config/environment';\n\n/**\n * Open and close modals, dynamically.\n */\nexport default class ModalFeatureService extends Service {\n  @service('feature/modal/state')\n  public modalState: ModalState;\n\n  @service\n  private readonly tracker: TrackerService;\n\n  /**\n   * Opens a given component inside a modal.\n   * For styles to be correctly applied, make sure the root element of your composant\n   * is <Shared::Modal>.\n   * The second parameter named \"data\" is the unique parameter that will be passed to the component.\n   * @example this.modalFeatureService.open('feature/cool/my-component', { onClose: () => console.log('closed') });\n   */\n  open(\n    componentName: string,\n    params?: {\n      onClose?: () => void;\n      data?: unknown;\n      mustDisableClose?: boolean;\n      hideCloseButton?: boolean;\n      modalType?: 'modal' | 'rightPanel';\n    },\n  ) {\n    const modalType = params?.modalType || 'modal';\n    if (this.modalState[modalType]) {\n      const modalName = modalType === 'modal' ? 'modal' : 'right panel';\n      if (modalName === 'right panel') {\n        this.modalState.rightPanel.onClose?.();\n        this.closeRightPanel();\n      } else if (config.nodeEnv === 'development') {\n        throw new Error(\n          `A ${modalName} is already open, only one ${modalName} can be open at a time.`,\n        );\n      } else {\n        this.tracker.captureMessage(`A ${modalName} is already open`, 'warning', {\n          componentName,\n          data: params?.data,\n        });\n      }\n    }\n\n    this.modalState[modalType] = {\n      componentName,\n      data: params?.data,\n      onClose: params?.onClose || this.close.bind(this),\n      mustDisableClose: params?.mustDisableClose,\n      hideCloseButton: params?.hideCloseButton,\n    };\n  }\n\n  /**\n   * Close a modal using the same component path used to open it.\n   */\n  close() {\n    this.modalState.modal = null;\n  }\n\n  /**\n   * Close a right panel using the same component path used to open it.\n   */\n  closeRightPanel() {\n    this.modalState.rightPanel = null;\n  }\n}\n","import Service from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport type ModalDefinition = {\n  componentName: string;\n  data?: unknown;\n  mustDisableClose?: boolean;\n  hideCloseButton?: boolean;\n  onClose?: () => void;\n};\n\nexport default class ModalState extends Service {\n  @tracked\n  public modal: ModalDefinition | null = null;\n\n  @tracked\n  public rightPanel: ModalDefinition | null = null;\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type CollectionModel from 'client/data/models/collection';\nimport type ModelCustomizationStoreInternalBusinessService from 'client/features/model-customization/services/internal-business/store';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport Service, { service } from '@ember/service';\n\nexport default class ModelCustomizationFeatureService extends Service {\n  @service private lianaSession: LianaSessionService;\n  @service private router: RouterService;\n\n  @service('feature/model-customization/internal-business/store')\n  private modelCustomizationStore: ModelCustomizationStoreInternalBusinessService;\n\n  public createLocalModelCustomization(collection: CollectionModel, name: string) {\n    this.modelCustomizationStore.createLocalModelCustomization(\n      collection,\n      name,\n      this.lianaSession.currentEnvironment,\n    );\n\n    void this.router.transitionTo(\n      'project.rendering.data.collection.settings.actions.create',\n      collection.shareableId,\n    );\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport { ModelCustomizationTypeEnum } from 'client/data/models/model-customization';\n\nexport default class ModelCustomizationStoreInternalBusinessService extends Service {\n  @service private store: StoreService;\n\n  public createLocalModelCustomization(\n    collection: CollectionModel,\n    name: string,\n    environment: EnvironmentModel,\n  ) {\n    return this.store.createRecord('model-customization', {\n      collection,\n      name,\n      type: ModelCustomizationTypeEnum.Action,\n      modelName: collection.name,\n      environment,\n    });\n  }\n}\n","import type ModalFeatureService from 'client/features/modal/services/feature';\nimport type { NewsletterNameEnum } from 'client/features/newsletter/services/feature';\nimport type NewsletterFeatureService from 'client/features/newsletter/services/feature';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ntype NewsletterArgs = object;\n\nexport default class NewsletterComponent extends Component<NewsletterArgs> {\n  @service('feature/newsletter') newsletterFeatureService: NewsletterFeatureService;\n  @service('feature/modal') modalFeatureService: ModalFeatureService;\n  @service lianaSession: LianaSessionService;\n\n  @tracked public newsletterToDisplay: {\n    newsletterName: NewsletterNameEnum;\n    component: string;\n  } | null;\n\n  constructor(owner: unknown, args: NewsletterArgs) {\n    super(owner, args);\n\n    void this.loadNewsletterToDisplay();\n  }\n\n  async loadNewsletterToDisplay() {\n    await this.lianaSession.waitUntilAuthenticated();\n\n    this.newsletterToDisplay = this.newsletterFeatureService.getNewsletterToDisplay();\n    if (this.newsletterToDisplay) {\n      this.modalFeatureService.open(this.newsletterToDisplay.component, {\n        mustDisableClose: true,\n        onClose: () => {\n          void this.newsletterFeatureService.markNewsletterAsRead(\n            this.newsletterToDisplay.newsletterName,\n          );\n          this.modalFeatureService.close();\n        },\n      });\n    }\n  }\n}\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport window from 'ember-window-mock';\n\ninterface ProcessDrivenNavigationArgs {\n  onClose: () => void;\n}\n\nexport default class NewsletterProcessDrivenNavigationComponent extends Component<ProcessDrivenNavigationArgs> {\n  @action\n  handleLearnMoreClick() {\n    window.open(\n      'https://www.forestadmin.com/blog/introducting-forest-admins-new-efficient-navigation/',\n      '_blank',\n      'noopener noreferrer',\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  class=\\\"c-feature-newsletter-process-driven-navigation\\\"\\n  data-test-feature-newsletter-process-driven-navigation\\n  ...attributes\\n>\\n  <Shared::Modal::Header @title=\\\"Welcome to your new navigation!\\\" />\\n\\n  <Shared::Modal::Body class=\\\"c-feature-newsletter__body\\\">\\n    <img\\n      src=\\\"/img/newsletter/process-driven-navigation.png\\\"\\n      alt=\\\"Process driven navigation\\\"\\n      class=\\\"c-feature-newsletter__cover\\\"\\n    />\\n    <span class=\\\"c-feature-newsletter__text\\\">\\n      Your Workspaces, Dashboards and Inboxes have moved; they’re now available alongside your\\n      Collections and Segments, so you get access to all your processes from the same view.\\n    </span>\\n  </Shared::Modal::Body>\\n\\n  <Shared::Modal::ActionFooter\\n    @confirmText=\\\"Learn more\\\"\\n    @confirmType=\\\"primary\\\"\\n    @cancelText=\\\"Close\\\"\\n    @onConfirm={{this.handleLearnMoreClick}}\\n    @onCancel={{@onClose}}\\n    @isCancelDisabled={{false}}\\n  />\\n\\n</Shared::Modal>\\n', { moduleName: 'client/features/newsletter/components/process-driven-navigation/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('', { moduleName: 'client/features/newsletter/components/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport window from 'ember-window-mock';\n\ninterface ProcessDrivenNavigationArgs {\n  onClose: () => void;\n}\n\nexport default class NewsletterWorkflowLaunchComponent extends Component<ProcessDrivenNavigationArgs> {\n  @action\n  handleLearnMoreClick() {\n    window.open(\n      'https://www.forestadmin.com/features/launching-workflows?utm_source=app-forestadmin&utm_medium=organic&utm_campaign=workflow-banner',\n      '_blank',\n      'noopener noreferrer',\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  class=\\\"c-feature-newsletter-workflow-launch\\\"\\n  data-test-feature-newsletter-workflow-launch\\n  ...attributes\\n>\\n  <Shared::Modal::Header @title=\\\"Introducing Forest Workflows!\\\" />\\n\\n  <Shared::Modal::Body class=\\\"c-feature-newsletter__body\\\">\\n    <img\\n      src=\\\"/img/newsletter/workflow-launch.png\\\"\\n      alt=\\\"Workflow launch\\\"\\n      class=\\\"c-feature-newsletter__cover\\\"\\n    />\\n    <span class=\\\"c-feature-newsletter__text\\\">\\n      Build, run and control your processes right in Forest Admin. Forest Workflows is a complete\\n      orchestration platform, connecting data, actions, automations, for humans and AI, in one\\n      place, securely.\\n    </span>\\n  </Shared::Modal::Body>\\n\\n  <Shared::Modal::ActionFooter\\n    @confirmText=\\\"Explore Workflows\\\"\\n    @confirmType=\\\"primary\\\"\\n    @cancelText=\\\"Close\\\"\\n    @onConfirm={{this.handleLearnMoreClick}}\\n    @onCancel={{@onClose}}\\n    @isCancelDisabled={{false}}\\n  />\\n\\n</Shared::Modal>\\n', { moduleName: 'client/features/newsletter/components/workflow-launch/template.hbs' });\n","import type NewsletterManagerInternalBusinessService from 'client/features/newsletter/services/internal-business/manager';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\n\nimport Service, { service } from '@ember/service';\n\nexport enum NewsletterNameEnum {\n  ProcessDrivenNavigation = 'processDrivenNavigationNewsletter',\n  WorkflowLaunch = 'workflowLaunchNewsletter',\n}\n\nexport const NewsletterNameToComponent: Record<NewsletterNameEnum, string> = {\n  [NewsletterNameEnum.ProcessDrivenNavigation]: 'feature/newsletter/process-driven-navigation',\n  [NewsletterNameEnum.WorkflowLaunch]: 'feature/newsletter/workflow-launch',\n};\n\nexport default class NewsletterFeatureService extends Service {\n  @service private currentUser: CurrentUserService;\n  @service private errorHandler: ErrorHandlerService;\n\n  @service('feature/newsletter/internal-business/manager')\n  private newsletterManager: NewsletterManagerInternalBusinessService;\n\n  public async markNewsletterAsRead(newsletterName: NewsletterNameEnum) {\n    try {\n      await this.newsletterManager.markNewsletterAsRead(this.currentUser.model, newsletterName);\n    } catch (error) {\n      this.errorHandler.handleSilentError(error as Error);\n    }\n  }\n\n  public getNewsletterToDisplay() {\n    return this.newsletterManager.getNewsletterToDisplay(this.currentUser.model);\n  }\n}\n","import type UserModel from 'client/data/models/user';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\n\nimport Service, { service } from '@ember/service';\n\nimport {\n  NewsletterNameEnum,\n  NewsletterNameToComponent,\n} from 'client/features/newsletter/services/feature';\n\nexport default class NewsletterManagerInternalBusinessService extends Service {\n  @service('server-fetch')\n  private serverFetch: ServerFetchService;\n\n  public async markNewsletterAsRead(currentUser: UserModel, newsletterName: NewsletterNameEnum) {\n    if (!currentUser) {\n      return;\n    }\n\n    currentUser[newsletterName] = null;\n    await this.serverFetch.fetch(\n      `/api/users/${currentUser.id}/mark-newsletter-as-read/${newsletterName}`,\n      {\n        method: 'POST',\n      },\n    );\n  }\n\n  public getNewsletterToDisplay(currentUser: UserModel) {\n    if (!currentUser) return null;\n\n    const newsletterNameToDisplay =\n      Object.values(NewsletterNameEnum).find((newsletterName) => {\n        return (\n          currentUser[newsletterName]\n          && currentUser[newsletterName] <= new Date()\n          && this.meetsSpecificRequirements(newsletterName)\n        );\n      }) || null;\n\n    return (\n      newsletterNameToDisplay && {\n        newsletterName: newsletterNameToDisplay,\n        component: NewsletterNameToComponent[newsletterNameToDisplay],\n      }\n    );\n  }\n\n  private meetsSpecificRequirements(newsletterName: NewsletterNameEnum) {\n    return true;\n  }\n}\n","import type { SafeString } from '@ember/template/-private/handlebars';\nimport type NotificationManagerInternalBusinessService from 'client/features/notification/services/internal-business/manager';\nimport type NotificationFeatureState from 'client/features/notification/state';\nimport type { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\n\nexport interface ToastrOption {\n  duration?: number;\n  id?: string;\n  isHTML?: boolean;\n  onCloseCallback?: () => void | Promise<void>;\n  onAutoClosed?: () => void | Promise<void>;\n  componentName?: string;\n  componentOptions?: object;\n}\n\nexport default class NotificationFeatureService extends Service {\n  @service('feature/notification/state') private notificationState: NotificationFeatureState;\n  @service('feature/notification/internal-business/manager')\n  private notificationManager: NotificationManagerInternalBusinessService;\n\n  createToastr(\n    type: ToastrTypeEnum,\n    message: string | SafeString,\n    option: ToastrOption = { id: null },\n  ) {\n    const toastr = this.notificationManager.createToastr(type, message, option);\n\n    this.notificationState.addToastr(toastr, type !== 'loading');\n\n    return toastr.id;\n  }\n\n  updateToastr(\n    type: ToastrTypeEnum,\n    message: string | SafeString,\n    id: string | null,\n    option: ToastrOption = {},\n  ) {\n    const toastToUpdate = this.notificationState.findToastr(id);\n\n    if (!toastToUpdate) {\n      // If no toast is found, create a new one\n      return this.createToastr(type, message, { id, ...option });\n    }\n\n    this.notificationManager.updateToastr(\n      toastToUpdate,\n      type,\n      message,\n      id || toastToUpdate?.id,\n      option,\n    );\n\n    return id;\n  }\n\n  @action\n  removeToastr(id: string) {\n    return this.notificationState.removeToastr(id);\n  }\n}\n","import type { SafeString } from '@ember/template/-private/handlebars';\nimport type { ToastrOption } from 'client/features/notification/services/feature';\nimport type { ToastrItemConstructor } from 'client/features/notification/toastr-item';\nimport type HtmlSanitizerService from 'client/legacy/services/html-sanitizer';\n\nimport { guidFor } from '@ember/object/internals';\nimport { later } from '@ember/runloop';\nimport Service, { service } from '@ember/service';\n\nimport config from 'client/config/environment';\nimport { ToastrItem, ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nexport default class NotificationManagerInternalBusinessService extends Service {\n  @service private htmlSanitizer: HtmlSanitizerService;\n\n  private defaultDuration = config.APP.toastrDefaultDuration || 5000;\n\n  private getSafeMessage(message: string | SafeString) {\n    return typeof message === 'string' ? this.htmlSanitizer.sanitizeRichText(message) : message;\n  }\n\n  private getToasterParams(\n    type: ToastrTypeEnum,\n    message: string | SafeString,\n    option: ToastrOption = { id: null },\n  ): ToastrItemConstructor {\n    const safeMessage = option.isHTML ? this.getSafeMessage(message) : message;\n\n    const defaultDuration =\n      type === ToastrTypeEnum.Error ? this.defaultDuration * 2 : this.defaultDuration;\n    const duration = Number.isInteger(option.duration) ? option.duration : defaultDuration;\n\n    const id = option.id || guidFor({});\n\n    return {\n      id,\n      type,\n      isHTML: option.isHTML || false,\n      message: safeMessage,\n      onCloseCallback: option.onCloseCallback,\n      onAutoClosed: option.onAutoClosed,\n      componentName: option.componentName,\n      componentOptions: option.componentOptions,\n      duration,\n    };\n  }\n\n  public createToastr(\n    type: ToastrTypeEnum,\n    message: string | SafeString,\n    option: ToastrOption = { id: null },\n  ) {\n    const toasterParams = this.getToasterParams(type, message, option);\n\n    if (!toasterParams.message) throw new Error('message is mandatory when creating a toaster');\n\n    const toastr = new ToastrItem(toasterParams);\n    if (type === 'loading') {\n      // NOTICE: a loading toast is meant to be displayed only if the response was not received after\n      //         300ms. The task cancellation (if needed) is handled in the update function.\n      // FIXME: Move this logic to the component that displays the toast.\n      later(() => {\n        toastr.shouldDisplay = true;\n      }, 300);\n    }\n\n    return toastr;\n  }\n\n  public updateToastr(\n    toastToUpdate: ToastrItem,\n    type: ToastrTypeEnum,\n    message: string | SafeString,\n    id: string | null,\n    option: ToastrOption = {},\n  ) {\n    // NOTICE: this function updates a given toast. If it doesn't exist (yet), it creates a new one.\n    const toasterParams = this.getToasterParams(type, message, { ...option, id });\n\n    if (!toasterParams.message) throw new Error('message is mandatory when updating a toaster');\n\n    toastToUpdate.setContent({\n      ...toasterParams,\n      shouldDisplay: true,\n    });\n  }\n}\n","import type { ToastrItem } from 'client/features/notification/toastr-item';\n\nimport Service from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class NotificationFeatureState extends Service {\n  @tracked private toastrItems: ToastrItem[] = [];\n\n  get toastrItemsVisible() {\n    return this.toastrItems.filterBy('shouldDisplay', true);\n  }\n\n  addToastr(toastr: ToastrItem, shouldDisplay = true) {\n    toastr.shouldDisplay = shouldDisplay;\n    const existing = this.toastrItems.find(\n      (toastrItem) => toastrItem.groupingKey === toastr.groupingKey,\n    );\n    if (existing) {\n      existing.groupCount += 1;\n    } else {\n      this.toastrItems.pushObject(toastr);\n    }\n  }\n\n  findToastr(id: string) {\n    return this.toastrItems.find((toastr) => toastr.id === id);\n  }\n\n  removeToastr(id: string) {\n    const toastr = this.findToastr(id);\n    if (toastr) {\n      this.toastrItems.removeObject(toastr);\n    }\n    return !!toastr;\n  }\n}\n","import type { EmberRunTimer } from '@ember/runloop/types';\nimport type { SafeString } from '@ember/template/-private/handlebars';\n\nimport { tracked } from '@glimmer/tracking';\n\nexport enum ToastrTypeEnum {\n  Loading = 'loading',\n  Error = 'error',\n  Success = 'success',\n  Warning = 'warning',\n  Info = 'info',\n}\n\nexport interface ToastrItemConstructor {\n  id: string;\n  type: ToastrTypeEnum;\n  message: string | SafeString;\n  isHTML: boolean;\n  duration: number;\n  onCloseCallback?: () => void | Promise<void>;\n  onAutoClosed?: () => void | Promise<void>;\n  componentName?: string;\n  componentOptions?: object;\n  shouldDisplay?: boolean;\n}\n\nexport class ToastrItem implements ToastrItemConstructor {\n  @tracked id: string;\n  @tracked type: ToastrTypeEnum;\n  @tracked message: string | SafeString;\n  @tracked isHTML: boolean;\n  @tracked duration: number;\n  @tracked loadingToastDisplayTask?: EmberRunTimer;\n  @tracked onCloseCallback?: () => void | Promise<void>;\n  @tracked onAutoClosed?: () => void | Promise<void>;\n  @tracked componentName?: string;\n  @tracked componentOptions?: object;\n  @tracked shouldDisplay: boolean;\n  @tracked groupCount: number;\n\n  constructor(options: ToastrItemConstructor) {\n    this.id = options.id;\n    this.type = options.type;\n    this.message = options.message;\n    this.isHTML = options.isHTML;\n    this.duration = options.duration;\n    this.onCloseCallback = options.onCloseCallback;\n    this.onAutoClosed = options.onAutoClosed;\n    this.componentName = options.componentName;\n    this.componentOptions = options.componentOptions;\n    this.shouldDisplay = options.shouldDisplay ?? true;\n    this.groupCount = 1;\n  }\n\n  get groupingKey() {\n    return Object.keys(Object.getPrototypeOf(this) as object)\n      .filter((key) => !['id', 'onCloseCallback', 'onAutoClosed', 'groupCount'].includes(key))\n      .map((key) =>\n        key === 'componentOptions' ? JSON.stringify(this[key]) : (this[key] as string),\n      )\n      .join(',');\n  }\n\n  setContent(content: Partial<ToastrItemConstructor>) {\n    Object.entries(content).forEach(([propertyName, propertyValue]) => {\n      this[propertyName] = propertyValue;\n    });\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type ProjectModel from 'client/data/models/project';\nimport type OnboardingFeatureService from 'client/features/onboarding/services/feature';\nimport type { DatabaseTypeEnum } from 'client/utils/database';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface DatabaseArgs {\n  project: ProjectModel;\n}\n\nexport default class OnboardingDatabaseComponent extends Component<DatabaseArgs> {\n  @service('feature/onboarding')\n  private featureService: OnboardingFeatureService;\n\n  @service private router: RouterService;\n\n  @action\n  async handleDatasourceChange(flow: string) {\n    this.args.project.flow = flow;\n    const { databaseType } = this.featureService\n      .getDatabaseOptionsFormatted(this.args.project)\n      .findBy('flow', this.args.project.flow);\n    this.args.project.databaseType = databaseType as DatabaseTypeEnum;\n  }\n\n  @action\n  async handleNext() {\n    if (this.args.project.databaseType && !this.args.project.databaseType.endsWith('other')) {\n      await this.featureService.selectIntegrationFlow(this.args.project);\n    }\n  }\n\n  @action\n  async handleBack() {\n    if (this.args.project.architecture === 'in-app') {\n      await this.router.transitionTo('project.onboarding.orm').followRedirects();\n      return;\n    }\n    await this.router.transitionTo('project.onboarding.hosting').followRedirects();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Layout\\n  @phase=\\\"Setup\\\"\\n  @title=\\\"What database are you using?\\\"\\n  @pretitle={{if (eq @project.architecture \\'cloud\\') \\'Step 3 of 4\\' \\'\\'}}\\n  @subtitle=\\\"Connect your database to instantly generate your admin panel.\\\"\\n  class=\\\"c-feature-onboarding-database\\\"\\n  data-test-feature-onboarding-database\\n  ...attributes\\n>\\n  <:default>\\n    <Feature::Onboarding::Phase::Setup::PickDatasource\\n      @project={{@project}}\\n      @defaultValue={{@project.flow}}\\n      @onDatasourceSelected={{this.handleDatasourceChange}}\\n    />\\n  </:default>\\n\\n  <:bottom>\\n    <Feature::Onboarding::Layout::Footer\\n      @nextState={{if @project.databaseType \\'enabled\\' \\'disabled\\'}}\\n      @onNext={{this.handleNext}}\\n      @canBack={{true}}\\n      @onBack={{this.handleBack}}\\n    >\\n      <Feature::Onboarding::NeedHelpLink />\\n    </Feature::Onboarding::Layout::Footer>\\n\\n  </:bottom>\\n</Feature::Onboarding::Layout>\\n', { moduleName: 'client/features/onboarding/components/database/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type ProjectModel from 'client/data/models/project';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface FrameworkArgs {\n  project: ProjectModel;\n}\nconst rubyFlow = 'Ruby on Rails';\nexport default class OnboardingFrameworkComponent extends Component<FrameworkArgs> {\n  @service('shared/state/user-preference') private userPreference: UserPreferenceState;\n  @service private router: RouterService;\n\n  get frameworkOptions() {\n    const suffix = this.userPreference.isDarkTheme ? 'dark' : 'light';\n    return [\n      { name: 'Express', value: 'express', imageUrl: `img/onboarding/express-${suffix}.svg` },\n      { name: 'NestJS', value: 'nestJs', imageUrl: `img/onboarding/nestjs-${suffix}.svg` },\n      { name: 'Koa', value: 'koa', imageUrl: `img/onboarding/koa-${suffix}.svg` },\n      { name: 'Fastify', value: 'fastify', imageUrl: `img/onboarding/fastify-${suffix}.svg` },\n    ];\n  }\n\n  get framework() {\n    return this.frameworkOptions.find((option) => this.args.project.flow?.includes(option.value))\n      ?.value;\n  }\n\n  @action\n  handleFrameworkChange(framework: string) {\n    this.args.project.flow = framework;\n  }\n\n  @action\n  async handleNext() {\n    await this.args.project.save();\n    return this.router\n      .transitionTo('project.onboarding.orm', {\n        queryParams: {\n          framework: this.framework,\n        },\n      })\n      .followRedirects();\n  }\n\n  @action\n  handleBack() {\n    return this.router.transitionTo('project.onboarding.stack').followRedirects();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Layout\\n  @phase=\\\"Setup\\\"\\n  @title=\\\"Select your framework\\\"\\n  @pretitle=\\\"\\\"\\n  @subtitle=\\\"Forest Admin will be installed directly into your app.\\\"\\n  class=\\\"c-feature-onboarding-framework\\\"\\n  data-test-feature-onboarding-framework\\n  ...attributes\\n>\\n  <:default>\\n    <Shared::Form::SelectCards\\n      @columnCount={{2}}\\n      @options={{this.frameworkOptions}}\\n      @value={{this.framework}}\\n      @valuePath=\\\"value\\\"\\n      @onChange={{this.handleFrameworkChange}}\\n      @forceDefaultValue={{false}}\\n    />\\n  </:default>\\n\\n  <:bottom>\\n    <Feature::Onboarding::Layout::Footer\\n      @nextState={{if this.framework \\'enabled\\' \\'disabled\\'}}\\n      @onNext={{this.handleNext}}\\n      @canBack={{true}}\\n      @onBack={{this.handleBack}}\\n    >\\n      <Feature::Onboarding::NeedHelpLink />\\n    </Feature::Onboarding::Layout::Footer>\\n  </:bottom>\\n</Feature::Onboarding::Layout>\\n', { moduleName: 'client/features/onboarding/components/framework/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type ProjectModel from 'client/data/models/project';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport config from 'client/config/environment';\nimport { AgentsEnum } from 'client/utils/agent';\n\ninterface HostingArgs {\n  project: ProjectModel;\n}\n\nexport default class OnboardingHostingComponent extends Component<HostingArgs> {\n  @service private router: RouterService;\n  @service private segmentTracker: SegmentTrackerService;\n\n  private readonly allHostingSolutions = [\n    { name: 'Cloud', value: 'cloud' as const, iconName: 'cloud' },\n    { name: 'On a standalone server', value: 'microservice' as const, iconName: 'construction' },\n    { name: 'Within your app', value: 'in-app' as const, iconName: 'construction' },\n  ];\n\n  // Cloud onboarding is hidden by default. It can be enabled via the\n  // ?enableCloudOnboarding=true query param, except in on-premise mode.\n  // Once Cloud is selected, it stays visible so navigating back keeps the choice.\n  get hostingSolutions() {\n    const enableCloudOnboarding =\n      this.router.currentRoute?.queryParams?.['enableCloudOnboarding'] === 'true';\n    const cloudAlreadySelected = this.args.project.architecture === 'cloud';\n    if ((enableCloudOnboarding || cloudAlreadySelected) && !config.APP.onPremise) {\n      return this.allHostingSolutions;\n    }\n    return this.allHostingSolutions.filter((solution) => solution.value !== 'cloud');\n  }\n\n  @action\n  async handleHostingSolutionChange(hostingName: (typeof this.hostingSolutions)[number]['value']) {\n    this.args.project.architecture = hostingName;\n    if (hostingName === 'cloud') {\n      this.args.project.agent = AgentsEnum.NodeJS;\n    }\n\n    // Reset the flow, since the selected flow is not valid anymore\n    this.args.project.flow = null;\n    this.args.project.databaseType = null;\n  }\n\n  @action\n  async handleNext() {\n    void this.args.project.save();\n    let subRoutes = 'default';\n\n    if (this.args.project.architecture === 'in-app') {\n      subRoutes = 'stack';\n    }\n\n    this.segmentTracker.trackHostingChosen(this.args.project.architecture, {\n      phase: 'setup',\n      screen: 'hosting',\n      projectId: this.args.project.id,\n      projectName: this.args.project.name,\n    });\n\n    // For standalone server, pick database for microservice flow\n    await this.router.transitionTo(`project.onboarding.${subRoutes}`).followRedirects();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Layout\\n  @phase=\\\"Setup\\\"\\n  @title=\\\"Choose your hosting solution\\\"\\n  @pretitle=\\\"Step 2 of 4\\\"\\n  @subtitle=\\\"Where do you want your Forest Admin agent to run?\\\"\\n  class=\\\"c-feature-onboarding-hosting\\\"\\n  data-test-feature-onboarding-hosting\\n  ...attributes\\n>\\n  <:default>\\n    <Shared::Form::SelectCards\\n      @columnCount={{1}}\\n      @options={{this.hostingSolutions}}\\n      @value={{@project.architecture}}\\n      @valuePath=\\\"value\\\"\\n      @onChange={{this.handleHostingSolutionChange}}\\n      @forceDefaultValue={{true}}\\n      data-test-feature-onboarding-phase-setup-pick-datasource\\n    />\\n\\n  </:default>\\n\\n  <:bottom>\\n    <Feature::Onboarding::Layout::Footer\\n      @nextState={{if @project.architecture \\'enabled\\' \\'disabled\\'}}\\n      @onNext={{this.handleNext}}\\n      @canBack={{true}}\\n      @backState=\\\"disabled\\\"\\n    >\\n      <Feature::Onboarding::NeedHelpLink />\\n    </Feature::Onboarding::Layout::Footer>\\n\\n  </:bottom>\\n</Feature::Onboarding::Layout>\\n', { moduleName: 'client/features/onboarding/components/hosting/template.hbs' });\n","import type UserPreferenceState from 'client/shared/states/user-preference';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  phase: 'Introduction' | 'Setup' | 'Launch';\n  title: string;\n  pretitle: string;\n\n  subtitle?: string;\n  helpBubbleContent?: {\n    text?: string;\n    componentName?: string;\n  };\n  trackBubbleEvent?: () => void | Promise<void>;\n  croppedBackground?: boolean;\n\n  // Change the PhaseHeader\n  isDeployment?: boolean;\n\n  // no background-image\n  displayAsModal?: boolean;\n}\n\n@validateArguments\nexport default class OnboardingLayoutComponent extends Component<Args> {\n  static propTypes = {\n    phase: PropTypes.oneOf(['Introduction', 'Setup', 'Launch']).isRequired,\n    title: PropTypes.string.isRequired,\n    pretitle: PropTypes.string.isRequired,\n\n    subtitle: PropTypes.string,\n    helpBubbleContent: PropTypes.oneOfType([\n      PropTypes.shape({\n        text: PropTypes.string.isRequired,\n      }),\n      PropTypes.shape({\n        componentName: PropTypes.string.isRequired,\n      }),\n    ]),\n    trackBubbleEvent: PropTypes.func,\n    croppedBackground: PropTypes.bool,\n    isDeployment: PropTypes.bool,\n  };\n\n  @service('shared/state/user-preference') public userPreferenceState: UserPreferenceState;\n}\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  onNext?: () => void | Promise<void>;\n  nextState?:\n    | 'disabled'\n    | 'enabled'\n    | 'waiting'\n    | 'waiting-permission'\n    | 'waiting-permission-granted';\n  onRequestPermission?: () => void | Promise<void>;\n\n  onBack?: () => void | Promise<void>;\n  canBack?: boolean;\n  backState?: 'disabled';\n\n  onSkip?: () => void | Promise<void>;\n  canSkip?: boolean;\n}\n\n@validateArguments\nexport default class OnboardingLayoutFooterComponent extends Component<Args> {\n  static propTypes = {\n    onNext: PropTypes.func,\n    nextState: PropTypes.oneOf([\n      'disabled',\n      'enabled',\n      'waiting',\n      'waiting-permission',\n      'waiting-permission-granted',\n    ]),\n    onRequestPermission: PropTypes.func,\n\n    onBack: PropTypes.func,\n    canBack: PropTypes.bool,\n    backState: PropTypes.oneOf(['disabled']),\n\n    onSkip: PropTypes.func,\n    canSkip: PropTypes.bool,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-onboarding-layout-footer\\\" data-test-onboarding-layout-footer ...attributes>\\n  <div>\\n    {{yield}}\\n  </div>\\n\\n  <div class=\\\"c-onboarding-layout-footer__buttons\\\">\\n    {{#if @canSkip}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"link-secondary\\\"\\n        @text=\\\"Skip\\\"\\n        @action={{@onSkip}}\\n        @async={{true}}\\n        @withoutCallback={{true}}\\n        @iconName=\\\"arrow_forward\\\"\\n        @size=\\\"extra-large\\\"\\n        @isIconAfterText={{true}}\\n        class=\\\"c-onboarding-layout-footer__link-button\\\"\\n        data-test-onboarding-layout-footer-skip\\n      />\\n    {{/if}}\\n\\n    {{#if @canBack}}\\n      <Shared::Button\\n        @type=\\\"ghost\\\"\\n        @text=\\\"Back\\\"\\n        @size=\\\"medium\\\"\\n        @onClick={{or @onBack (do-nothing-function)}}\\n        disabled={{(eq @backState \\'disabled\\')}}\\n        class=\\\"c-onboarding-layout-footer__link-button\\\"\\n        data-test-onboarding-layout-footer-back\\n      />\\n    {{/if}}\\n\\n    {{#if (eq @nextState \\'waiting-permission\\')}}\\n      <Shared::Button\\n        @type=\\\"primary\\\"\\n        @text=\\\"Request permission\\\"\\n        @size=\\\"medium\\\"\\n        @onClick={{@onRequestPermission}}\\n        data-test-onboarding-layout-footer-request-permission\\n      />\\n    {{else if (eq @nextState \\'waiting-permission-granted\\')}}\\n      <Feedback::BetaStatusLabel\\n        @type=\\\"loading\\\"\\n        class=\\\"c-onboarding-layout-footer__waiting\\\"\\n        data-test-onboarding-layout-footer-waiting-permission-granted\\n      >\\n        <span>Waiting for permission to be granted...</span>\\n      </Feedback::BetaStatusLabel>\\n    {{else if (eq @nextState \\'waiting\\')}}\\n      <Feedback::BetaStatusLabel\\n        @type=\\\"loading\\\"\\n        class=\\\"c-onboarding-layout-footer__waiting\\\"\\n        data-test-onboarding-layout-footer-waiting\\n      >\\n        <span>Waiting for your backend to run...</span>\\n      </Feedback::BetaStatusLabel>\\n    {{else}}\\n      <div\\n        id=\\\"c-onboarding-layout-footer-beta-button-can-next\\\"\\n        data-test-onboarding-layout-footer-beta-button-can-next\\n      >\\n        <Shared::Button\\n          @type=\\\"primary\\\"\\n          @text=\\\"Next step\\\"\\n          @size=\\\"medium\\\"\\n          @iconName=\\\"arrow_forward\\\"\\n          @isIconAfterText={{true}}\\n          @onClick={{or @onNext (do-nothing-function)}}\\n          disabled={{(eq @nextState \\'disabled\\')}}\\n          data-test-onboarding-layout-footer-next\\n        />\\n      </div>\\n\\n      {{#if (eq @nextState \\'disabled\\')}}\\n        <Shared::Feedback::BetaTooltip\\n          @targetId=\\\"c-onboarding-layout-footer-beta-button-can-next\\\"\\n          @hideDelay={{250}}\\n          @side=\\\"top\\\"\\n        >\\n          Complete this step before moving to the next one.\\n        </Shared::Feedback::BetaTooltip>\\n      {{/if}}\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/features/onboarding/components/layout/footer/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers\\n    \\'c-feature-onboarding-layout\\'\\n    this.userPreferenceState.theme\\n    cropped=(eq @croppedBackground false)\\n    modal=(eq @displayAsModal true)\\n  }}\\n>\\n  <div class=\\\"c-feature-onboarding-layout__blur-overlay\\\">\\n    <Shared::Layout::CardOnEmptyPage\\n      @size=\\\"large\\\"\\n      @fixedMaxHeight={{true}}\\n      @withoutPadding={{true}}\\n      data-test-onboarding-layout\\n      ...attributes\\n    >\\n      <Shared::Modal @size=\\\"auto\\\" class=\\\"c-feature-onboarding-layout__card\\\">\\n\\n        <div class=\\\"c-feature-onboarding-layout__scroll-content\\\">\\n          <Feature::Onboarding::PhaseHeader\\n            @highlightedPhase={{@phase}}\\n            @isDeployment={{@isDeployment}}\\n          />\\n\\n          <div class=\\\"c-feature-onboarding-layout__content\\\">\\n            <div data-test-onboarding-layout-header>\\n              <Shared::Header @pretitle={{@pretitle}} @noPadding={{true}} @size=\\\"big\\\">\\n                <:top>{{@title}}</:top>\\n              </Shared::Header>\\n\\n              <div class=\\\"c-feature-onboarding-layout__description\\\">\\n                {{! We use BetaHelpBubble to be able to display all type of content: text, HTML, bubble components}}\\n                <Feedback::BetaHelpBubble\\n                  @helpBubbleContent={{or @helpBubbleContent (hash text=@subtitle)}}\\n                  @trackBubbleEvent={{@trackBubbleEvent}}\\n                />\\n              </div>\\n            </div>\\n\\n            <div\\n              class=\\\"c-feature-onboarding-layout__content-instructions\\\"\\n              data-test-onboarding-layout-content-instructions\\n            >\\n              {{#if @showLocalNetworkPermissionDeniedError}}\\n                <Shared::Feedback::Notification::NotificationInApp\\n                  @state=\\\"error\\\"\\n                  @canHide={{false}}\\n                  data-test-onboarding-layout-notification=\\\"local-network-permission-denied\\\"\\n                >\\n                  Local network access permission was denied. Please enable the Local network access\\n                  for\\n                  {{@currentOrigin}}\\n                  in your browser settings to connect to your local development server. Copy and\\n                  paste this URL in a new tab to enable it:\\n                  <code>chrome://settings/content/siteDetails?site={{@currentOrigin}}</code>\\n                </Shared::Feedback::Notification::NotificationInApp>\\n              {{else if @showLocalNetworkPermissionNotification}}\\n                <Shared::Feedback::Notification::NotificationInApp\\n                  @state=\\\"info\\\"\\n                  @canHide={{false}}\\n                  data-test-onboarding-layout-notification=\\\"local-network-permission\\\"\\n                >\\n                  Your browser requires permission to access your local network, so that Forest\\n                  Admin can connect to your local development server.\\n                  <br />\\n                  When prompted, click \\\"Allow\\\" to continue.\\n                </Shared::Feedback::Notification::NotificationInApp>\\n              {{/if}}\\n\\n              {{yield}}\\n            </div>\\n          </div>\\n        </div>\\n\\n        <Shared::Modal::Footer class=\\\"c-feature-onboarding-layout__footer\\\">\\n          {{yield to=\\'bottom\\'}}\\n        </Shared::Modal::Footer>\\n      </Shared::Modal>\\n    </Shared::Layout::CardOnEmptyPage>\\n  </div>\\n</div>\\n', { moduleName: 'client/features/onboarding/components/layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::ContactUsLink\\n  @subject=\\\"I need help\\\"\\n  @linkText=\\\"Need Help?\\\"\\n  data-test-feature-onboarding-need-help-link\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/onboarding/components/need-help-link/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type ProjectModel from 'client/data/models/project';\nimport type OnboardingFeatureService from 'client/features/onboarding/services/feature';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport inAppFlows from 'client/legacy/pods/project/onboarding/flows/installation/in-app';\n\ninterface OrmArgs {\n  project: ProjectModel;\n}\n\nexport default class OnboardingOrmComponent extends Component<OrmArgs> {\n  @service('feature/onboarding')\n  private featureService: OnboardingFeatureService;\n\n  @service('shared/state/user-preference') private userPreference: UserPreferenceState;\n  @service private router: RouterService;\n\n  get ormOptions() {\n    return Object.values(inAppFlows)\n      .filter((flow) => flow.flow.startsWith(this.args.project.flow.split(' / ')[0]))\n      .map((flow) => ({\n        ...flow,\n        imageUrl: `img/onboarding/${\n          this.userPreference.isDarkTheme ? flow.logoUrlDark : flow.logoUrl\n        }`,\n      }));\n  }\n\n  get orm() {\n    return this.args.project.flow.split(' / ').slice(0, 2).join(' / ');\n  }\n\n  @action\n  handleOrmChange(newOrm: string) {\n    this.args.project.flow = newOrm;\n    this.args.project.databaseType = null;\n  }\n\n  @action\n  async handleNext() {\n    const orm = this.ormOptions.findBy('flow', this.orm);\n    if (orm.flow.endsWith(' / datasource-sql')) {\n      await this.args.project.save();\n      await this.router.transitionTo('project.onboarding.default');\n      return;\n    }\n\n    await this.featureService.selectIntegrationFlow(this.args.project);\n  }\n\n  @action\n  async handleBack() {\n    await this.router.transitionTo('project.onboarding.framework').followRedirects();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Layout\\n  @phase=\\\"Setup\\\"\\n  @title=\\\"Select your ORM\\\"\\n  @pretitle=\\\"\\\"\\n  @subtitle=\\\"Forest admin will be installed into your app.\\\"\\n  class=\\\"c-feature-onboarding-orm\\\"\\n  data-test-feature-onboarding-orm\\n  ...attributes\\n>\\n  <:default>\\n    <Shared::Form::SelectCards\\n      @columnCount={{2}}\\n      @options={{this.ormOptions}}\\n      @value={{this.orm}}\\n      @namePath=\\\"title\\\"\\n      @valuePath=\\\"flow\\\"\\n      @onChange={{this.handleOrmChange}}\\n      @forceDefaultValue={{false}}\\n    />\\n  </:default>\\n\\n  <:bottom>\\n    <Feature::Onboarding::Layout::Footer\\n      @nextState={{if @project.flow \\'enabled\\' \\'disabled\\'}}\\n      @onNext={{this.handleNext}}\\n      @canBack={{true}}\\n      @onBack={{this.handleBack}}\\n    >\\n      <Feature::Onboarding::NeedHelpLink />\\n    </Feature::Onboarding::Layout::Footer>\\n  </:bottom>\\n</Feature::Onboarding::Layout>\\n', { moduleName: 'client/features/onboarding/components/orm/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nenum OnboardingPhaseEnum {\n  Introduction = 'Introduction',\n  Setup = 'Setup',\n  Launch = 'Launch',\n}\n\nenum DeploymentPhaseEnum {\n  Setup = 'Setup',\n  Launch = 'Launch',\n}\n\ninterface PhaseHeaderArgs {\n  highlightedPhase: OnboardingPhaseEnum | DeploymentPhaseEnum;\n  isDeployment?: boolean;\n}\n\n@validateArguments\nexport default class OnboardingPhaseHeaderComponent extends Component<PhaseHeaderArgs> {\n  static propTypes = {\n    highlightedPhase: PropTypes.oneOf(['Introduction', 'Setup', 'Launch']).isRequired,\n    isDeployment: PropTypes.bool,\n  };\n\n  get phases() {\n    const phases = this.args.isDeployment ? DeploymentPhaseEnum : OnboardingPhaseEnum;\n\n    return Object.values(phases).map((text: string) => ({\n      text,\n      highlighted: text.toLowerCase() === this.args.highlightedPhase.toLowerCase(),\n    }));\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-onboarding-phase-header\\\"\\n  data-test-feature-onboarding-phase-header\\n  ...attributes\\n>\\n  {{#each this.phases as |phase index|}}\\n    <span\\n      class={{get-classes-with-modifiers\\n        \\'c-feature-onboarding-phase-header__number\\'\\n        (if phase.highlighted \\'highlighted\\')\\n      }}\\n    >\\n\\n      {{increment index}}\\n    </span>\\n    <span\\n      class={{get-classes-with-modifiers\\n        \\'c-feature-onboarding-phase-header__text\\'\\n        (if phase.highlighted \\'highlighted\\')\\n      }}\\n      data-test-feature-onboarding-phase-header-phase={{phase.text}}\\n      data-test-feature-onboarding-phase-header-phase-highlighted={{if\\n        phase.highlighted\\n        phase.text\\n      }}\\n    >\\n      {{phase.text}}\\n    </span>\\n  {{/each}}\\n</div>\\n', { moduleName: 'client/features/onboarding/components/phase-header/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type OnboardingFeatureService from 'client/features/onboarding/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { FamiliarityWithCodingEnum } from 'client/data/models/guest';\n\nexport default class OnboardingPhaseIntroductionFamiliarityWithCodingComponent extends Component {\n  @service router: RouterService;\n  @service('feature/onboarding') onboardingFeatureService: OnboardingFeatureService;\n\n  @tracked familiarityWithCoding: FamiliarityWithCodingEnum;\n\n  get familiarity() {\n    return [\n      { name: 'Not familiar at all', value: FamiliarityWithCodingEnum.NotFamiliar },\n      { name: 'Familiar, I know the basics', value: FamiliarityWithCodingEnum.Basics },\n      { name: 'I am a confirmed developer', value: FamiliarityWithCodingEnum.ConfirmedDeveloper },\n    ];\n  }\n\n  @action\n  async next() {\n    await this.onboardingFeatureService.updateFamiliarityWithCoding(this.familiarityWithCoding);\n    await this.router.transitionTo('projects.create', 'introduction', 2);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Layout\\n  @phase=\\\"Introduction\\\"\\n  @title=\\\"How familiar are you with coding?\\\"\\n  @pretitle=\\\"Step 1 of 2\\\"\\n  @subtitle=\\\"Don\\'t worry, onboarding is simple whether you can code or not!\\\"\\n  @croppedBackground={{false}}\\n  data-test-feature-onboarding-introduction-familiarity-with-coding\\n  ...attributes\\n>\\n  <:default>\\n    <Shared::Form::SelectCards\\n      @options={{this.familiarity}}\\n      @onChange={{fn (mut this.familiarityWithCoding)}}\\n      @value={{this.familiarityWithCoding}}\\n      @descriptionPath=\\\"description\\\"\\n      @valuePath=\\\"value\\\"\\n      @forceDefaultValue={{false}}\\n    />\\n  </:default>\\n\\n  <:bottom>\\n    <Feature::Onboarding::Layout::Footer\\n      @onNext={{this.next}}\\n      @nextState={{unless this.familiarityWithCoding \\'disabled\\'}}\\n      @canBack={{true}}\\n      @backState=\\\"disabled\\\"\\n    />\\n  </:bottom>\\n</Feature::Onboarding::Layout>\\n', { moduleName: 'client/features/onboarding/components/phase/introduction/familiarity-with-coding/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type OnboardingFeatureService from 'client/features/onboarding/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { UsecaseEnum } from 'client/data/models/guest';\n\nexport default class OnboardingPhaseIntroductionUsecaseComponent extends Component {\n  @service router: RouterService;\n  @service('feature/onboarding') onboardingFeatureService: OnboardingFeatureService;\n\n  @tracked usecase: UsecaseEnum = null;\n  @tracked usecaseFreeText: string = null;\n\n  get usecases() {\n    return [\n      { name: 'Customer Support', value: UsecaseEnum.CustomerSupport, iconName: 'favorite_border' },\n      { name: 'Customer Onboarding', value: UsecaseEnum.CustomerOnboarding, iconName: 'person' },\n      { name: 'Fraud Management', value: UsecaseEnum.FraudManagement, iconName: 'warning_amber' },\n      { name: 'Fleet Management', value: UsecaseEnum.FleetManagement, iconName: 'directions_car' },\n      {\n        name: 'Application and Enrollment',\n        value: UsecaseEnum.ApplicationAndEnrollment,\n        iconName: 'playlist_add_check',\n      },\n      { name: \"I don't know yet\", value: UsecaseEnum.IDontKnowYet, iconName: 'help_outline' },\n      { name: 'Other', value: UsecaseEnum.Other, iconName: 'add' },\n    ];\n  }\n\n  @action\n  async next() {\n    if (this.usecase === UsecaseEnum.Other && this.usecaseFreeText) {\n      await this.onboardingFeatureService.updateUsecase(this.usecaseFreeText);\n    } else {\n      await this.onboardingFeatureService.updateUsecase(this.usecase);\n    }\n    await this.router.transitionTo('projects.create', 'setup', 1);\n  }\n\n  @action\n  async back() {\n    await this.router.transitionTo('projects.create', 'introduction', 1);\n  }\n\n  @action\n  async scrollIntoView() {\n    const scrollElement = document.querySelector('.c-feature-onboarding-layout__scroll-content');\n    scrollElement.scrollTop = scrollElement.scrollHeight;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Layout\\n  @phase=\\\"Introduction\\\"\\n  @title=\\\"How will you use Forest Admin?\\\"\\n  @pretitle=\\\"Step 2 of 2\\\"\\n  @subtitle=\\\"Your answer will help us create the best experience for you.\\\"\\n  @croppedBackground={{false}}\\n  data-test-feature-onboarding-introduction-usecase\\n  ...attributes\\n>\\n  <:default>\\n    <Shared::Form::SelectCards\\n      @options={{this.usecases}}\\n      @onChange={{fn (mut this.usecase)}}\\n      @value={{this.usecase}}\\n      @descriptionPath=\\\"description\\\"\\n      @valuePath=\\\"value\\\"\\n      @forceDefaultValue={{false}}\\n    />\\n    {{#if (eq this.usecase \\'other\\')}}\\n      <Shared::BetaLabel @label=\\\"Please specify how you will use Forest Admin (optional)\\\">\\n        <Shared::BetaInput\\n          @value={{this.usecaseFreeText}}\\n          @onChange={{fn (mut this.usecaseFreeText)}}\\n          @placeholder=\\\"Your usage\\\"\\n        />\\n        {{did-insert this.scrollIntoView}}\\n      </Shared::BetaLabel>\\n    {{/if}}\\n  </:default>\\n\\n  <:bottom>\\n    <Feature::Onboarding::Layout::Footer\\n      @onNext={{this.next}}\\n      @nextState={{unless this.usecase \\'disabled\\'}}\\n      @onBack={{this.back}}\\n      @canBack={{true}}\\n    />\\n  </:bottom>\\n</Feature::Onboarding::Layout>\\n', { moduleName: 'client/features/onboarding/components/phase/introduction/usecase/template.hbs' });\n","import type { AnyFunction } from '@ember/object/-private/types';\nimport type { EmberRunTimer } from '@ember/runloop/types';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type EnvironmentSharedBusinessService from 'client/shared/services/environment';\n\nimport { action } from '@ember/object';\nimport { cancel, later } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport config from 'client/config/environment';\n\nconst BASE_ANIMATION_DURATION = 40; // approximative total duration of animation in seconds\n\nconst LOADING_STEPS = [\n  { label: 'Hiring developers' },\n  { label: 'Screening calls with HR', level: 1 },\n  { label: 'Technical tests', level: 1 },\n  { label: 'Product Discovery' },\n  { label: 'Writing specs', level: 1 },\n  { label: 'Challenging specs', level: 1 },\n  { label: 'Waiting for stakeholders alignment' },\n  { label: 'Delivery' },\n  { label: 'Coding', level: 1 },\n  { label: 'QA testing', level: 1 },\n  { label: \"You're all set\" },\n];\n\nexport interface LoadingStep {\n  label: string;\n  state: 'disabled' | 'loading' | 'done';\n  level: number;\n}\n\nexport default class OnboardingPhaseLaunchProjectDeployingComponent extends Component {\n  @service('shared/environment') private environmentService: EnvironmentSharedBusinessService;\n  @service private lianaSession: LianaSessionService;\n\n  @tracked\n  steps: LoadingStep[] = [];\n\n  @tracked\n  private currentStepNumber = 0;\n\n  private timer: EmberRunTimer;\n\n  get currentStep() {\n    return this.steps[this.currentStepNumber];\n  }\n\n  set currentStep(step: LoadingStep) {\n    this.steps[this.currentStepNumber] = step;\n  }\n\n  get animationEndStep() {\n    return this.steps.length - 1;\n  }\n\n  get currentStepWaitingTime() {\n    return (3 + this.currentStepNumber) * BASE_ANIMATION_DURATION * 20;\n  }\n\n  get currentStepIsTitle() {\n    if (this.currentStep.level !== 0) return false;\n    if (this.currentStepNumber === this.steps.length - 1) return true;\n    return this.steps[this.currentStepNumber + 1].level === 1;\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    cancel(this.timer);\n  }\n\n  @action\n  async startAnimation() {\n    const steps: LoadingStep[] = [];\n    LOADING_STEPS.forEach(({ label, level }) => {\n      steps.push({ label, level: level || 0, state: 'disabled' });\n    });\n\n    this.steps = steps;\n\n    this.triggerNextAnimationStep(config.environment === 'test' ? 10 : undefined);\n\n    await this.environmentService.onEnvironmentUpdateEnded(\n      'Onboarding',\n      this.triggerEndOfAnimation.bind(this),\n      Number(this.lianaSession.currentProject.defaultEnvironment.id),\n    );\n  }\n\n  private triggerNextAnimationStep(waitingTime?: number, onFinished?: AnyFunction) {\n    cancel(this.timer);\n    this.setCurrentStepAsLoading();\n\n    // if event is not received at the end of the animation,\n    //   stop the animation and keep loading the last step\n    if (this.currentStepNumber === this.animationEndStep) {\n      onFinished?.();\n      return;\n    }\n\n    this.timer = later(() => {\n      this.setCurrentStepAsDone();\n      this.triggerNextAnimationStep(waitingTime, onFinished);\n    }, waitingTime || this.currentStepWaitingTime);\n  }\n\n  private setCurrentStepAsLoading() {\n    if (this.currentStepIsTitle) {\n      this.setStepState('loading');\n      this.incrementStep();\n    }\n\n    this.setStepState('loading');\n    this.steps = [...this.steps];\n  }\n\n  private setCurrentStepAsDone() {\n    this.setStepState('done');\n\n    this.incrementStep();\n\n    if (this.currentStep.level === 0) {\n      // set as done previous title\n      for (let step = 0; step < this.currentStepNumber; step += 1) {\n        this.setStepState('done', step);\n      }\n    }\n    this.steps = [...this.steps];\n  }\n\n  private incrementStep() {\n    if (this.currentStepNumber >= this.animationEndStep) return;\n    this.currentStepNumber += 1;\n  }\n\n  private setStepState(state: 'loading' | 'done', step: number = this.currentStepNumber) {\n    if (step >= this.steps.length) return;\n    this.steps[step] = { ...this.steps[step], state };\n  }\n\n  async triggerEndOfAnimation() {\n    cancel(this.timer);\n\n    if (this.currentStepNumber < this.animationEndStep) {\n      // speed up animation until the end\n      await new Promise((resolve) => {\n        this.triggerNextAnimationStep(200, resolve);\n      });\n    }\n  }\n}\n","import { storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Feature/Onboarding/PhaseLaunchProjectDeployingComponent',\n  component: 'Feature::Onboarding::Phase::Launch::ProjectDeploying',\n  args: {},\n};\n\nexport const Loader = storyCreator('Feature::Onboarding::Phase::Launch::ProjectDeploying');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  {{did-insert this.startAnimation}}\\n  class=\\\"c-feature-onboarding-phase-launch-project-deploying\\\"\\n  data-test-feature-onboarding-phase-launch-project-deploying\\n  ...attributes\\n>\\n  {{#each this.steps as |step|}}\\n    <div\\n      class={{concat\\n        \\'c-feature-onboarding-phase-launch-project-deploying__step\\'\\n        (if (eq step.level 0) \\' main-step\\' \\' secondary-step\\')\\n      }}\\n    >\\n      <div class=\\\"spinner\\\">\\n        {{#if (eq step.state \\'loading\\')}}\\n          <Shared::Spinner />\\n        {{else if (eq step.state \\'done\\')}}\\n          <Shared::Form::CheckInput\\n            @value={{true}}\\n            @isChecked={{true}}\\n            @onChange={{(do-nothing-function)}}\\n          />\\n        {{else}}\\n          <Shared::Form::CheckInput\\n            @value={{false}}\\n            @isChecked={{false}}\\n            @size=\\\"extra-large\\\"\\n            @onChange={{(do-nothing-function)}}\\n          />\\n        {{/if}}\\n      </div>\\n      <div>{{step.label}}</div>\\n    </div>\\n  {{/each}}\\n</div>\\n', { moduleName: 'client/features/onboarding/components/phase/launch/project-deploying/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type OnboardingFeatureService from 'client/features/onboarding/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { EvaluationEnum } from 'client/data/models/review';\n\ntype Args = {\n  collectionsCount: number | null;\n  goNext: () => Promise<void>;\n  flowName: string;\n};\n\nexport default class OnboardingPhaseLaunchReviewComponent extends Component<Args> {\n  @service router: RouterService;\n  @service('feature/onboarding') onboardingFeatureService: OnboardingFeatureService;\n\n  @tracked evaluation: EvaluationEnum;\n  @tracked comment: string;\n\n  get subtitle() {\n    return `Your admin panel is now configured with ${this.args.collectionsCount} collection${\n      this.args.collectionsCount > 1 ? 's' : ''\n    }.`;\n  }\n\n  get commentPlaceholder() {\n    return this.evaluation === EvaluationEnum.Good\n      ? 'Anything to add?'\n      : 'Tell us how we can improve';\n  }\n\n  get canNext() {\n    return this.evaluation ? '' : 'disabled';\n  }\n\n  @action\n  async updateEvaluation(evaluation: EvaluationEnum, comment: string) {\n    this.evaluation = evaluation;\n    this.comment = comment;\n  }\n\n  @action\n  async onGoNext() {\n    await this.onboardingFeatureService.saveReview(\n      this.evaluation,\n      this.comment,\n      this.args.flowName,\n    );\n    await this.args.goNext();\n  }\n\n  get reviewOptions() {\n    return [\n      {\n        name: 'Bad',\n        emoji: '😠',\n        value: EvaluationEnum.Bad,\n      },\n      {\n        name: 'Neutral',\n        emoji: '😐',\n        value: EvaluationEnum.Average,\n      },\n      {\n        name: 'Good',\n        emoji: '😄',\n        value: EvaluationEnum.Good,\n      },\n    ];\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Layout\\n  @phase=\\\"Launch\\\"\\n  @title=\\\"Congratulations!\\\"\\n  @pretitle=\\\"Step 2 of 2\\\"\\n  @size=\\\"small\\\"\\n  @bottomStyle=\\\"none\\\"\\n  @subtitle={{this.subtitle}}\\n  data-test-feature-onboarding-launch-review\\n>\\n  <:default>\\n\\n    <Shared::BetaLabel\\n      @label=\\\"How was your onboarding experience?\\\"\\n      class=\\\"c-feature-onboarding-phase-launch-review__cards\\\"\\n    >\\n      <Shared::Form::SelectCards\\n        @options={{this.reviewOptions}}\\n        @columnCount={{3}}\\n        @valuePath=\\\"value\\\"\\n        @cardVariant=\\\"tall\\\"\\n        @value={{this.evaluation}}\\n        @onChange={{fn (mut this.evaluation)}}\\n        @forceDefaultValue={{false}}\\n      />\\n    </Shared::BetaLabel>\\n\\n    {{#if this.evaluation}}\\n      <Shared::BetaLabel\\n        @label=\\\"Add a comment (optional)\\\"\\n        class=\\\"c-feature-onboarding-phase-launch-review__comment\\\"\\n      >\\n        <Shared::BetaTextarea\\n          @placeholder={{this.commentPlaceholder}}\\n          @value={{this.comment}}\\n          @onChange={{fn (mut this.comment)}}\\n          rows={{4}}\\n        />\\n      </Shared::BetaLabel>\\n    {{/if}}\\n  </:default>\\n\\n  <:bottom>\\n    <Feature::Onboarding::Layout::Footer\\n      @nextState={{this.canNext}}\\n      @canNext={{true}}\\n      @onNext={{this.onGoNext}}\\n      @backState=\\\"disabled\\\"\\n      @canBack={{true}}\\n      @onBack={{(do-nothing-function)}}\\n    />\\n  </:bottom>\\n</Feature::Onboarding::Layout>\\n', { moduleName: 'client/features/onboarding/components/phase/launch/review/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type OnboardingFeatureService from 'client/features/onboarding/services/feature';\nimport type CurrentOrganizationService from 'client/legacy/services/current-organization';\nimport type CustomDomainService from 'client/legacy/services/custom-domain';\nimport type OrganizationService from 'client/legacy/services/organization-service';\nimport type ProjectExistenceCheckerService from 'client/legacy/services/project-existence-checker';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport enum OrganizationTypeEnum {\n  Organization = 'organization',\n  Personal = 'personal',\n}\n\ntype Args = {\n  suggestOrganizationCreation: boolean;\n};\n\nexport default class OnboardingPhaseSetupCreateProjectComponent extends Component<Args> {\n  @service private router: RouterService;\n  @service private projectExistenceChecker: ProjectExistenceCheckerService;\n  @service private customDomain: CustomDomainService;\n  @service private currentOrganization: CurrentOrganizationService;\n  @service('organization-service') private organizationService: OrganizationService;\n  @service('feature/onboarding') private onboardingService: OnboardingFeatureService;\n\n  @tracked projectName = '';\n  @tracked projectAlreadyExists = true;\n  @tracked organizationName = '';\n  @tracked organizationAlreadyExists = true;\n  @tracked isInputLoading = false;\n  @tracked projectType = OrganizationTypeEnum.Personal;\n\n  get subtitle() {\n    if (this.currentOrganization.organization)\n      return `Your project will be created on ${this.currentOrganization.organization.longNameOrDefault}`;\n\n    return `In ${this.domain}, everything happens within a project. This is where your data will be displayed and your team will work`;\n  }\n\n  get projectTypes() {\n    return [\n      {\n        label: 'Personal',\n        value: OrganizationTypeEnum.Personal,\n      },\n      {\n        label: 'Company',\n        value: OrganizationTypeEnum.Organization,\n      },\n    ];\n  }\n\n  get domain() {\n    if (this.customDomain.isCustomDomain) return this.customDomain.currentDomain;\n    return 'Forest Admin';\n  }\n\n  get isProjectNameEmpty() {\n    return this.projectName?.trim() === '';\n  }\n\n  get isOrganizationNameEmpty() {\n    return this.organizationName.trim() === '';\n  }\n\n  get isProjectTypeOrganization() {\n    return this.projectType === OrganizationTypeEnum.Organization;\n  }\n\n  get isProjectNameInvalid() {\n    return this.isProjectNameEmpty || this.projectAlreadyExists;\n  }\n\n  get isOrganizationNameInvalid() {\n    return this.isOrganizationNameEmpty || this.organizationAlreadyExists;\n  }\n\n  get isButtonDisabled() {\n    return (\n      this.isInputLoading\n      || this.isProjectNameInvalid\n      || (this.isProjectTypeOrganization && this.isOrganizationNameInvalid)\n    );\n  }\n\n  @action\n  onLoadingChange(isLoading: boolean) {\n    this.isInputLoading = isLoading;\n  }\n\n  @action\n  setProjectType(projectType: OrganizationTypeEnum) {\n    this.projectType = projectType;\n  }\n\n  @action\n  async checkProjectExistenceAction(projectName: string) {\n    if (this.isProjectNameEmpty) return true;\n\n    const result = await this.projectExistenceChecker.checkProjectExistence(projectName);\n    this.projectAlreadyExists = result;\n    return result;\n  }\n\n  @action\n  async checkOrganizationExistenceAction(organizationName: string) {\n    if (this.isOrganizationNameEmpty) return true;\n\n    const result = await this.organizationService.checkIfNameIsAvailable(organizationName);\n    this.organizationAlreadyExists = !result;\n    return !result;\n  }\n\n  @action\n  async createProjectAndContinue() {\n    await this.onboardingService.createProjectAndOrganization(\n      this.projectName,\n      this.isProjectTypeOrganization ? this.organizationName : null,\n    );\n\n    // Go directly to the first onboarding step (hosting)\n    await this.router\n      .transitionTo('project.onboarding.hosting', this.projectName)\n      .followRedirects();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Layout\\n  @phase=\\\"Setup\\\"\\n  @title=\\\"Create a project\\\"\\n  @pretitle=\\\"Step 1 of 4\\\"\\n  @subtitle={{this.subtitle}}\\n  @croppedBackground={{false}}\\n  data-test-feature-onboarding-setup-create-project\\n  ...attributes\\n>\\n  <:default>\\n    <div class=\\\"c-feature-onboarding-setup-create-project\\\">\\n      <div class=\\\"c-feature-onboarding-setup-create-project__form-content\\\">\\n        <Shared::BetaLabel\\n          @label=\\\"Project name\\\"\\n          class=\\\"c-feature-onboarding-setup-create-project__label\\\"\\n          @dataTestInputFor=\\\"projectName\\\"\\n        >\\n          <CheckExistenceInput\\n            @value={{this.projectName}}\\n            @placeholder=\\\"Pied Piper\\\"\\n            @autofocus={{true}}\\n            @checkExistenceFunction={{this.checkProjectExistenceAction}}\\n            @onLoadingChange={{this.onLoadingChange}}\\n          />\\n        </Shared::BetaLabel>\\n\\n        {{#if @suggestOrganizationCreation}}\\n          <Shared::BetaLabel\\n            @label=\\\"Project type\\\"\\n            class=\\\"c-feature-onboarding-setup-create-project__label\\\"\\n            @dataTestInputFor=\\\"projectType\\\"\\n          >\\n            <p class=\\\"c-feature-onboarding-setup-create-project__label-description\\\">\\n              Create this project for yourself or on behalf of a company?\\n            </p>\\n            <Shared::BetaRadioButton\\n              @options={{this.projectTypes}}\\n              @valuePath=\\\"value\\\"\\n              @namePath=\\\"label\\\"\\n              @value={{this.projectType}}\\n              @onChange={{this.setProjectType}}\\n              @display=\\\"vertical\\\"\\n            />\\n          </Shared::BetaLabel>\\n\\n          {{#if this.isProjectTypeOrganization}}\\n            <Shared::BetaLabel\\n              @label=\\\"Organization name\\\"\\n              class=\\\"c-feature-onboarding-setup-create-project__label\\\"\\n              @dataTestInputFor=\\\"organizationName\\\"\\n            >\\n              <CheckExistenceInput\\n                @value={{this.organizationName}}\\n                @checkExistenceFunction={{this.checkOrganizationExistenceAction}}\\n                @onLoadingChange={{this.onLoadingChange}}\\n              />\\n            </Shared::BetaLabel>\\n          {{/if}}\\n        {{/if}}\\n\\n      </div>\\n    </div>\\n  </:default>\\n\\n  <:bottom>\\n    <Feature::Onboarding::Layout::Footer\\n      @onNext={{this.createProjectAndContinue}}\\n      @nextState={{if this.isButtonDisabled \\'disabled\\'}}\\n      @onBack={{(do-nothing-function)}}\\n      @canBack={{true}}\\n      @backState=\\\"disabled\\\"\\n    />\\n  </:bottom>\\n\\n</Feature::Onboarding::Layout>\\n', { moduleName: 'client/features/onboarding/components/phase/setup/create-project/template.hbs' });\n","import type ProjectModel from 'client/data/models/project';\nimport type OnboardingFeatureService from 'client/features/onboarding/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ntype Args = {\n  project?: ProjectModel;\n  onDatasourceSelected: (flowName: string) => void;\n  defaultValue?: string | null;\n};\n\nexport default class OnboardingPhaseSetupPickDatasourceComponent extends Component<Args> {\n  @service('feature/onboarding')\n  private featureService: OnboardingFeatureService;\n\n  @tracked datasource: string = null;\n  @tracked datasourceSuggestion: string = null;\n  @tracked suggestionSubmitted = false;\n\n  get isOther() {\n    return this.datasource?.endsWith('other');\n  }\n\n  get datasources() {\n    return this.featureService.getDatabaseOptionsFormatted(this.args.project);\n  }\n\n  constructor(owner: unknown, args: Args) {\n    super(owner, args);\n    if (args?.defaultValue) {\n      this.datasource = args.defaultValue;\n    }\n  }\n\n  @action\n  async submitSuggestion() {\n    await this.featureService.submitSuggestion(this.datasourceSuggestion);\n    this.suggestionSubmitted = true;\n  }\n\n  @action\n  async onDatasourceSelected(datasource: string) {\n    this.datasource = datasource;\n    this.args.onDatasourceSelected(datasource);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Form::SelectCards\\n  @columnCount={{2}}\\n  @options={{this.datasources}}\\n  @value={{this.datasource}}\\n  @valuePath=\\\"value\\\"\\n  @onChange={{this.onDatasourceSelected}}\\n  @forceDefaultValue={{false}}\\n  data-test-feature-onboarding-phase-setup-pick-datasource\\n  ...attributes\\n/>\\n{{#if this.isOther}}\\n  {{#if this.suggestionSubmitted}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"success\\\"\\n      @canHide={{false}}\\n      @messageTitle=\\\"Thanks for your suggestion!\\\"\\n      @message=\\\"Your submission will help us prioritize our next integrations. You’ll be informed of the upcoming releases.\\\"\\n    />\\n  {{else}}\\n    <Shared::BetaLabel\\n      @label=\\\"Suggest a new datasource\\\"\\n      class=\\\"c-feature-onboarding-phase-setup-pick-datasource__datasource-suggestion\\\"\\n    >\\n      <form class=\\\"c-feature-onboarding-phase-setup-pick-datasource__datasource-suggestion-form\\\">\\n        <Shared::BetaInput\\n          @value={{this.datasourceSuggestion}}\\n          @placeholder=\\\"Your usage\\\"\\n          @onChange={{fn (mut this.datasourceSuggestion)}}\\n          class=\\\"c-feature-onboarding-phase-setup-pick-datasource__datasource-suggestion-input\\\"\\n        />\\n        <Shared::Button @type=\\\"primary\\\" @text=\\\"Submit\\\" @onClick={{this.submitSuggestion}} />\\n      </form>\\n    </Shared::BetaLabel>\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/features/onboarding/components/phase/setup/pick-datasource/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type ProjectModel from 'client/data/models/project';\nimport type OnboardingFeatureService from 'client/features/onboarding/services/feature';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport inAppFlows from 'client/legacy/pods/project/onboarding/flows/installation/in-app';\nimport { AgentsEnum } from 'client/utils/agent';\n\ninterface StackArgs {\n  project: ProjectModel;\n}\n\nexport default class OnboardingStackComponent extends Component<StackArgs> {\n  @service('feature/onboarding')\n  private featureService: OnboardingFeatureService;\n\n  @service('shared/state/user-preference') private userPreference: UserPreferenceState;\n  @service declare router: RouterService;\n\n  get stackOptions() {\n    const suffix = this.userPreference.isDarkTheme ? 'dark' : 'light';\n    return [\n      {\n        name: 'Node.js',\n        value: AgentsEnum.NodeJS,\n        imageUrl: `img/onboarding/nodejs-${suffix}.svg`,\n      },\n      {\n        name: 'Ruby on Rails',\n        value: AgentsEnum.RubyOnRails,\n        imageUrl: `img/onboarding/rails-${suffix}.png`,\n      },\n    ];\n  }\n\n  @action\n  handleStackChange(value: (typeof this.stackOptions)[number]['value']) {\n    this.args.project.agent = value;\n  }\n\n  @action\n  async handleNext() {\n    if (this.args.project.agent === AgentsEnum.NodeJS) {\n      await this.args.project.save();\n      await this.router.transitionTo('project.onboarding.framework').followRedirects();\n      return;\n    }\n\n    const { flow } = inAppFlows.railsFlow;\n\n    this.args.project.databaseType = null;\n    this.args.project.installation = null;\n    this.args.project.flow = flow;\n\n    await this.featureService.selectIntegrationFlow(this.args.project);\n  }\n\n  @action\n  async handleBack() {\n    await this.router.transitionTo('project.onboarding.hosting').followRedirects();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Layout\\n  @phase=\\\"Setup\\\"\\n  @title=\\\"Select your stack\\\"\\n  @pretitle=\\\"\\\"\\n  @subtitle=\\\"Forest Admin will be installed directly into your app.\\\"\\n  class=\\\"c-feature-onboarding-stack\\\"\\n  data-test-feature-onboarding-stack\\n  ...attributes\\n>\\n  <:default>\\n    <Shared::Form::SelectCards\\n      @columnCount={{1}}\\n      @options={{this.stackOptions}}\\n      @value={{@project.agent}}\\n      @valuePath=\\\"value\\\"\\n      @onChange={{this.handleStackChange}}\\n      @forceDefaultValue={{false}}\\n    />\\n  </:default>\\n\\n  <:bottom>\\n    <Feature::Onboarding::Layout::Footer\\n      @nextState={{if @project.agent \\'enabled\\' \\'disabled\\'}}\\n      @onNext={{this.handleNext}}\\n      @canBack={{true}}\\n      @onBack={{this.handleBack}}\\n    >\\n      <Feature::Onboarding::NeedHelpLink />\\n    </Feature::Onboarding::Layout::Footer>\\n  </:bottom>\\n</Feature::Onboarding::Layout>\\n', { moduleName: 'client/features/onboarding/components/stack/template.hbs' });\n","import Component from '@glimmer/component';\n\ntype Args = {\n  phase: 'introduction' | 'setup';\n  step: number;\n  isFirstPersonalProject: boolean;\n};\n\nconst phase = {\n  introduction: ['familiarity-with-coding', 'usecase'],\n  setup: ['create-project'],\n  // the remaining phase/steps are under the newly created project route\n} as const;\n\nexport default class OnboardingWrapperComponent extends Component<Args> {\n  get textStep() {\n    return phase[this.args.phase][this.args.step - 1];\n  }\n\n  get componentName() {\n    return `feature/onboarding/phase/${this.args.phase}/${this.textStep}`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{component this.componentName suggestOrganizationCreation=@isFirstPersonalProject}}\\n', { moduleName: 'client/features/onboarding/components/wrapper/template.hbs' });\n","// eslint-disable-next-line import/prefer-default-export\nexport class NotEnoughContextForDatasourceSuggestionError extends Error {\n  constructor() {\n    super('Please provide more context for your suggestion');\n    this.name = 'NotEnoughContextForDatasourceSuggestionError';\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type { FamiliarityWithCodingEnum, Usecase } from 'client/data/models/guest';\nimport type ProjectModel from 'client/data/models/project';\nimport type { EvaluationEnum } from 'client/data/models/review';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type OnboardingIntroductionInternalBusinessService from 'client/features/onboarding/services/internal-business/introduction';\nimport type OnboardingLaunchInternalBusinessService from 'client/features/onboarding/services/internal-business/launch';\nimport type OnboardingSetupInternalBusinessService from 'client/features/onboarding/services/internal-business/setup';\nimport type CurrentOrganizationService from 'client/legacy/services/current-organization';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { NotEnoughContextForDatasourceSuggestionError } from 'client/features/onboarding/errors';\nimport cloudFlows from 'client/legacy/pods/project/onboarding/flows/installation/cloud';\nimport inAppFlows from 'client/legacy/pods/project/onboarding/flows/installation/in-app';\nimport microserviceFlows from 'client/legacy/pods/project/onboarding/flows/installation/microservice';\n\nexport default class OnboardingFeatureService extends Service {\n  @service private currentUser: CurrentUserService;\n  @service private store: StoreService;\n  @service private router: RouterService;\n  @service private currentOrganization: CurrentOrganizationService;\n  @service('feature/notification') notificationBusinessService: NotificationFeatureService;\n\n  @service('feature/onboarding/internal-business/launch')\n  launchService: OnboardingLaunchInternalBusinessService;\n\n  @service('feature/onboarding/internal-business/introduction')\n  introductionService: OnboardingIntroductionInternalBusinessService;\n\n  @service('feature/onboarding/internal-business/setup')\n  setupService: OnboardingSetupInternalBusinessService;\n\n  private getDatabaseOptions(project?: ProjectModel) {\n    switch (project?.architecture || 'cloud') {\n      case 'cloud':\n        return Object.values(cloudFlows);\n      case 'microservice':\n        return Object.values(microserviceFlows);\n      case 'in-app':\n        return Object.values(microserviceFlows)\n          .filter((flow) => flow.databaseType !== 'mongodb')\n          .map((flow) => {\n            const inAppFlow = Object.values(inAppFlows).find((item) =>\n              project.flow.startsWith(item.flow),\n            );\n            return {\n              ...flow,\n              flow: `${inAppFlow.flow} / ${flow.flow}`,\n              architecture: inAppFlow.architecture,\n              steps: inAppFlow.steps,\n            };\n          });\n    }\n  }\n\n  public getDatabaseOptionsFormatted(project?: ProjectModel) {\n    return [\n      ...this.getDatabaseOptions(project),\n      {\n        title: 'Other...',\n        flow:\n          project?.architecture === 'in-app'\n            ? `${project.flow.split(' / ').slice(0, 2).join(' / ')} / other`\n            : 'other',\n        logoUrl: 'suggest-datasource-light.svg',\n        databaseType: null,\n        steps: null,\n      },\n    ].map((flow) => ({\n      ...flow,\n      name: flow.title,\n      value: flow.flow,\n      imageUrl: flow.logoUrl && `/img/onboarding/${flow.logoUrl as string}`,\n    }));\n  }\n\n  public async collectionsCount() {\n    return this.launchService.collectionsCount();\n  }\n\n  public async isFirstPersonalProject() {\n    if (this.currentOrganization.organization) return false;\n\n    const projects = await this.store.query('project', {\n      organizationId: null,\n    });\n    return projects.length === 0;\n  }\n\n  public async selectIntegrationFlow(project: ProjectModel) {\n    const guest = this.store\n      .peekAll('guest')\n      .find((item) => item.user?.id === this.currentUser.model.id);\n    this.setupService.selectIntegrationFlow(project, guest);\n    await this.router.transitionTo('project.onboarding.integration').followRedirects();\n  }\n\n  public async updateFamiliarityWithCoding(familiarityWithCoding: FamiliarityWithCodingEnum) {\n    await this.introductionService.updateFamiliarityWithCoding(familiarityWithCoding);\n  }\n\n  public async updateUsecase(usecase: Usecase) {\n    await this.introductionService.updateUsecase(usecase);\n  }\n\n  public async saveReview(evaluation: EvaluationEnum, comment: string, flow: string) {\n    await this.launchService.saveReview(evaluation, comment, flow);\n  }\n\n  public async createProjectAndOrganization(projectName: string, organizationName: string | null) {\n    try {\n      await this.setupService.createProjectAndOrganization(projectName, organizationName);\n    } catch (error) {\n      this.notificationBusinessService.createToastr(ToastrTypeEnum.Error, (error as Error).message);\n    }\n  }\n\n  public async submitSuggestion(suggestion: string) {\n    try {\n      await this.setupService.submitSuggestion(suggestion);\n    } catch (e) {\n      if (e instanceof NotEnoughContextForDatasourceSuggestionError) {\n        this.notificationBusinessService.createToastr(ToastrTypeEnum.Warning, e.message);\n      } else {\n        throw e;\n      }\n    }\n  }\n}\n","import type { FamiliarityWithCodingEnum, Usecase } from 'client/data/models/guest';\nimport type GuestModel from 'client/data/models/guest';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type StoreService from 'client/legacy/services/store';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport Service, { service } from '@ember/service';\n\nexport default class OnboardingIntroductionInternalBusinessService extends Service {\n  @service store: StoreService;\n  @service currentUser: CurrentUserService;\n  @service tracker: TrackerService;\n\n  async updateUsecase(usecase: Usecase) {\n    await this.updateGuestProperty('usecase', usecase);\n  }\n\n  async updateFamiliarityWithCoding(familiarityWithCoding: FamiliarityWithCodingEnum) {\n    await this.updateGuestProperty('familiarityWithCoding', familiarityWithCoding);\n  }\n\n  private async updateGuestProperty<\n    K extends keyof Pick<GuestModel, 'familiarityWithCoding' | 'usecase'>,\n  >(name: K, value: GuestModel[K]) {\n    try {\n      const guest = await this.store.queryRecord('guest', { userId: this.currentUser.model.id });\n      guest[name] = value;\n      await guest.save();\n    } catch (error) {\n      console.error('Error while saving guest', error);\n      this.tracker.captureException(error as Error);\n    }\n  }\n}\n","import type { EvaluationEnum } from 'client/data/models/review';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nexport default class OnboardingLaunchInternalBusinessService extends Service {\n  @service private store: StoreService;\n  @service private errorHandler: ErrorHandlerService;\n  @service private lianaSession: LianaSessionService;\n  @service private serverFetch: ServerFetchService;\n\n  async collectionsCount(): Promise<number | null> {\n    const { currentRenderingId } = this.lianaSession;\n    const adapter = this.store.adapterFor('rendering');\n    const collectionsCountUrl = `${adapter.urlForFindAll(\n      'rendering',\n      null,\n    )}/${currentRenderingId}/collections/count`;\n\n    try {\n      const response = await this.serverFetch.fetch(collectionsCountUrl, {\n        method: 'GET',\n        credentials: 'include',\n      });\n      const result = (await response.json()) as { data: { count: number } };\n      const { count } = result.data;\n\n      return count;\n    } catch (error) {\n      this.errorHandler.handleSilentError(error as Error);\n      return null;\n    }\n  }\n\n  async saveReview(evaluation: EvaluationEnum, comment: string, flow: string) {\n    const review = this.store.createRecord('review', {\n      projectId: this.lianaSession.currentProject.id,\n      evaluation,\n      comment,\n      flow,\n    });\n    await review.save();\n  }\n}\n","import type GuestModel from 'client/data/models/guest';\nimport type OrganizationModel from 'client/data/models/organization';\nimport type ProjectModel from 'client/data/models/project';\nimport type CurrentOrganizationService from 'client/legacy/services/current-organization';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type StoreService from 'client/legacy/services/store';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport Service, { service } from '@ember/service';\n\nimport { NotEnoughContextForDatasourceSuggestionError } from 'client/features/onboarding/errors';\nimport emberErrorUtil from 'client/utils/ember-error-util';\n\nexport default class OnboardingSetupInternalBusinessService extends Service {\n  @service private segmentTracker: SegmentTrackerService;\n  @service private lianaSession: LianaSessionService;\n  @service private tracker: TrackerService;\n  @service private store: StoreService;\n  @service private currentOrganization: CurrentOrganizationService;\n\n  async submitSuggestion(suggestion: string) {\n    if (suggestion?.length < 2) {\n      throw new NotEnoughContextForDatasourceSuggestionError();\n    }\n\n    this.segmentTracker.trackNewIntegrationSuggested(suggestion, {\n      phase: 'hosting',\n      screen: 'cloud',\n      projectId: this.lianaSession.currentProject.id,\n      projectName: this.lianaSession.currentProject.name,\n    });\n  }\n\n  public async createProjectAndOrganization(projectName: string, organizationName?: string) {\n    const { organization, created } = await this.getOrCreateOrganization(organizationName);\n\n    try {\n      return await this.createProject(projectName, organization);\n    } catch (error) {\n      if (created) await organization.destroyRecord();\n      throw error as Error;\n    }\n  }\n\n  public async selectIntegrationFlow(project: ProjectModel, guest: GuestModel) {\n    await project.save();\n\n    project.defaultEnvironment.apiEndpoint = null;\n    await project.defaultEnvironment.save();\n\n    if (guest) {\n      guest.stack = `${project.architecture} - ${project.flow}`;\n      await guest.save();\n    }\n  }\n\n  private async getOrCreateOrganization(organizationName: string): Promise<{\n    organization: OrganizationModel;\n    created?: boolean;\n  }> {\n    if (organizationName) {\n      return {\n        organization: await this.createEntity<OrganizationModel>('Organization', organizationName),\n        created: true,\n      };\n    }\n\n    return {\n      organization: this.currentOrganization.organization,\n    };\n  }\n\n  private async createProject(projectName: string, organization: OrganizationModel) {\n    return this.createEntity<ProjectModel>('Project', projectName, organization);\n  }\n\n  private async createEntity<T extends OrganizationModel | ProjectModel>(\n    entity: 'Project' | 'Organization',\n    name: string,\n    organization?: OrganizationModel,\n  ) {\n    if (name.trim() === '') {\n      throw new Error(`${entity} name cannot be empty.`);\n    }\n\n    const newEntity = this.store.createRecord(entity.toLowerCase(), {\n      name,\n    });\n\n    if (organization && !organization.isPersonal) {\n      (newEntity as ProjectModel).set('organization', organization);\n    }\n\n    try {\n      await newEntity.save();\n      return newEntity as T;\n    } catch (error) {\n      newEntity.deleteRecord();\n\n      this.tracker.captureException(error as Error);\n      const message = emberErrorUtil.getFirstErrorDetail(error) || 'unexpected error.';\n\n      throw new Error(`${entity} creation failed: ${message}`);\n    }\n  }\n}\n","import type TeamPerformanceFeatureService from 'client/features/team-performance/services/feature';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport resizableSideMenu from 'client/decorators/resizable-side-menu';\nimport { SideMenuItemsEnum } from 'client/utils/last-side-menu-width';\n\n@resizableSideMenu(SideMenuItemsEnum.Reports)\nexport default class ReportPageComponent extends Component {\n  @service('feature/team-performance')\n  private teamPerformanceFeature: TeamPerformanceFeatureService;\n\n  get canDisplayTeamPerformance() {\n    return this.teamPerformanceFeature.canUserAccessTeamPerformance();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"project-side-menu\\\">\\n  <Navigation::BetaSideMenu\\n    @onSetSideMenuWidth={{this.handleSetSideMenuWidthInStorage}}\\n    @sideMenuWidth={{this.lastSideMenuWidth}}\\n  >\\n    <Navigation::BetaSideMenu::Section @title=\\\"Audit trail\\\">\\n      <Navigation::BetaSideMenu::Item\\n        @name=\\\"Activity Logs\\\"\\n        @icon=\\\"📝\\\"\\n        @route=\\\"project.rendering.reports.activity\\\"\\n        @isFoldable={{false}}\\n      />\\n    </Navigation::BetaSideMenu::Section>\\n\\n    {{#if this.canDisplayTeamPerformance}}\\n      <Navigation::BetaSideMenu::Section @title=\\\"Performance reporting\\\">\\n        <Feature::TeamPerformance::SideMenuItem />\\n      </Navigation::BetaSideMenu::Section>\\n    {{/if}}\\n  </Navigation::BetaSideMenu>\\n</Shared::PortalContent>\\n\\n{{#if (has-block)}}\\n  <div class=\\\"c-feature-report-page\\\" data-test-feature-report-page ...attributes>\\n    {{yield}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/features/report/components/page/template.hbs' });\n","import type CollectionEnvironmentModel from 'client/data/models/collection-environment';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type RoleModel from 'client/data/models/role';\nimport type PermissionsHandlerInternalBusinessService from 'client/features/role/services/internal-business/permissions-handler';\n\nimport Service, { service } from '@ember/service';\n\nexport default class RoleFeatureService extends Service {\n  @service('feature/role/internal-business/permissions-handler')\n  private permissionsHandlerInternalBusinessService: PermissionsHandlerInternalBusinessService;\n\n  public loadRequiredModelsForEnvironmentPermissionsSmartActions(\n    role: RoleModel,\n    collections: CollectionEnvironmentModel[],\n    currentEnvironment: EnvironmentModel,\n  ) {\n    return {\n      role,\n      collections,\n      currentEnvironment,\n      smartActionsPermissions:\n        this.permissionsHandlerInternalBusinessService.getSmartActionsPermissions(\n          role,\n          collections,\n          currentEnvironment,\n        ),\n    };\n  }\n}\n","import type CollectionEnvironmentModel from 'client/data/models/collection-environment';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type { EnvironmentPermissionsAttributes } from 'client/data/models/environment-permissions';\nimport type RoleModel from 'client/data/models/role';\nimport type RoleConditionService from 'client/legacy/services/role-condition-service';\n\nimport Service, { service } from '@ember/service';\n\nimport sortByTwoKeys from 'client/utils/sort-by-two-keys';\n\nexport type RoleModelWithCollectionsAndEnvironment = {\n  role: RoleModel;\n  collections: CollectionEnvironmentModel[];\n  currentEnvironment: EnvironmentModel;\n};\n\nexport default class RolePermissionsHandlerInternalBusinessService extends Service {\n  @service private roleConditionService: RoleConditionService;\n\n  public getSmartActionsPermissions(\n    role: RoleModel,\n    collections: CollectionEnvironmentModel[],\n    currentEnvironment: EnvironmentModel,\n  ) {\n    const permissions = this.getCollectionsPermissions(role, currentEnvironment);\n\n    if (permissions) {\n      return permissions\n        .map((permission) => permission.smartActions.toArray())\n        .flat()\n        .sort(sortByTwoKeys({ firstKey: 'collectionName', secondKey: 'smartActionName' }))\n        .map((permission) => {\n          const collection = collections.findBy('name', permission.collectionName);\n          return {\n            permission,\n            collection,\n            filterableFields: this.roleConditionService.getFieldsFilterable(collection),\n          };\n        });\n    }\n\n    return null;\n  }\n\n  private getCollectionsPermissions(role: RoleModel, currentEnvironment: EnvironmentModel) {\n    const permissions = this.getPermissions(role, currentEnvironment);\n\n    if (permissions) {\n      return permissions.collections.toArray().sortBy('collectionName');\n    }\n\n    return null;\n  }\n\n  private getPermissions(\n    role: RoleModel,\n    currentEnvironment: EnvironmentModel,\n  ): EnvironmentPermissionsAttributes | null {\n    if (role?.permissions?.environments) {\n      return role.permissions.environments.find(\n        (environment) => environment.environmentId === Number(currentEnvironment?.id),\n      );\n    }\n\n    return null;\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport SegmentModel from 'client/data/models/segment';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface SideMenuItemArgs {\n  item: SegmentModel;\n  currentSegmentId?: string;\n  isEditable?: boolean;\n  isDraggable?: boolean;\n  isVisible?: boolean;\n  onItemClick?: () => void;\n  onClickVisibility?: () => void;\n}\n\n@validateArguments\nexport default class SegmentSideMenuItemComponent extends Component<SideMenuItemArgs> {\n  static propTypes = {\n    item: PropTypes.instanceOf(SegmentModel).isRequired,\n    currentSegmentId: PropTypes.string,\n    isEditable: PropTypes.bool,\n    isDraggable: PropTypes.bool,\n    isVisible: PropTypes.bool,\n    onItemClick: PropTypes.func,\n    onClickVisibility: PropTypes.func,\n  };\n\n  @service('router') private router: RouterService;\n  @service('feature/folder') private folderFeatureService: FolderFeatureService;\n\n  public get isActive() {\n    return (\n      this.args.currentSegmentId === this.args.item.id\n      || (this.router.currentRouteName\n        === 'project.rendering.data.collection.settings.segments.details'\n        && this.router.currentRoute.params.segment_name === this.args.item.name)\n    );\n  }\n\n  public get isInsideCollection() {\n    return this.folderFeatureService.isSegmentInCollectionSubChildren(this.args.item);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::BetaSideMenu::Item\\n  @item={{@item}}\\n  @name={{@item.name}}\\n  @icon={{unless this.isInsideCollection @item.iconOrDefault}}\\n  @route=\\\"project.rendering.data.collection.list\\\"\\n  @routeParameters={{@item.collection.shareableId}}\\n  @query={{hash page=1 segmentId=@item.id}}\\n  @isActive={{this.isActive}}\\n  @isEditable={{@isEditable}}\\n  @isDraggable={{default-to @isDraggable true}}\\n  @isVisible={{@isVisible}}\\n  @onClick={{@onItemClick}}\\n  @onClickVisibility={{@onClickVisibility}}\\n  @onClickSettings={{action-link-to\\n    \\'project.rendering.data.collection.settings.segments.details\\'\\n    @item.collection.shareableId\\n    @item.name\\n  }}\\n  @shouldReplace={{@shouldReplace}}\\n  {{sortablejs-item @item}}\\n  data-id={{@item.id}}\\n  data-test-feature-segment-side-menu-item\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/segment/components/side-menu/item/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type CollectionModel from 'client/data/models/collection';\nimport type SegmentModel from 'client/data/models/segment';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type SegmentManagerInternalBusinessService from 'client/features/segment/services/internal-business/segment-manager';\nimport type SegmentStoreInternalBusinessService from 'client/features/segment/services/internal-business/store';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nexport default class SegmentFeatureService extends Service {\n  @service private errorHandler: ErrorHandlerService;\n  @service private router: RouterService;\n  @service('feature/notification') private notificationFeature: NotificationFeatureService;\n  @service('feature/segment/internal-business/segment-manager')\n  private segmentManager: SegmentManagerInternalBusinessService;\n\n  @service('feature/segment/internal-business/store')\n  private segmentStore: SegmentStoreInternalBusinessService;\n\n  @service('feature/folder')\n  private folderFeature: FolderFeatureService;\n\n  public getSegmentsMatchingRecord(record: ClientRecordModel, segments: SegmentModel[]) {\n    return this.segmentManager.getSegmentsMatchingRecord(record, segments);\n  }\n\n  public isSegmentMatchingRecord(record: ClientRecordModel, segment: SegmentModel) {\n    return this.segmentManager.isSegmentMatchingRecord(record, segment);\n  }\n\n  public async toggleVisibility(segment: SegmentModel) {\n    await this.segmentManager.toggleVisibility(segment);\n\n    const visibility = segment.isVisible ? 'visible' : 'hidden';\n    this.notificationFeature.createToastr(\n      ToastrTypeEnum.Success,\n      `Segment ${segment.name} is now ${visibility}.`,\n    );\n\n    if (this.segmentManager.shouldRedirectToOtherVisibleSegment(segment)) {\n      const { collection } = segment;\n      const segmentId = this.folderFeature.getDefaultSegmentForCollection(collection)?.id;\n\n      void this.router.transitionTo(this.router.currentRoute.name, collection.shareableId, {\n        queryParams: { segmentId },\n      });\n    }\n  }\n\n  public createLocalSegment(collection: CollectionModel, segmentName: string, icon: string) {\n    this.segmentStore.createLocalSegment(collection, segmentName, icon);\n    void this.router.transitionTo(\n      'project.rendering.data.collection.settings.segments.create',\n      collection.shareableId,\n    );\n  }\n}\n","import type SegmentModel from 'client/data/models/segment';\nimport type CollectionBusinessService from 'client/legacy/services/business/collection';\nimport type QueryParametersStoreSharedBusinessService from 'client/shared/services/query-parameters-store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\n\nexport default class SegmentSegmentManagerInternalBusinessService extends Service {\n  @service('business/collection') private collectionBusiness: CollectionBusinessService;\n  @service('shared/query-parameters-store')\n  private queryParametersStore: QueryParametersStoreSharedBusinessService;\n\n  public async getSegmentsMatchingRecord(record: ClientRecordModel, segments: SegmentModel[]) {\n    const matchingSegmentsPromises = segments.map(async (segment) => {\n      const isMatching = await this.isSegmentMatchingRecord(record, segment);\n      return isMatching ? segment : null;\n    });\n\n    const matchingSegments = await Promise.all(matchingSegmentsPromises);\n    return matchingSegments.filter(Boolean);\n  }\n\n  private async fetchRecordInSegment(record: ClientRecordModel, segment: SegmentModel) {\n    try {\n      const records = await this.collectionBusiness.getRecordsInCollectionOrSegment(segment, [\n        record.id,\n      ]);\n\n      return records.length > 0;\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      return false;\n    }\n  }\n\n  public async isSegmentMatchingRecord(record: ClientRecordModel, segment: SegmentModel) {\n    if (segment.isBasic) {\n      return segment.isBasicAndIncludeRecord(record);\n    }\n\n    return !!(await this.fetchRecordInSegment(record, segment));\n  }\n\n  public async toggleVisibility(segment: SegmentModel) {\n    segment.isVisible = !segment.isVisible;\n\n    await segment.save();\n  }\n\n  public shouldRedirectToOtherVisibleSegment(segment: SegmentModel) {\n    const { id, isVisible } = segment;\n    const currentRouteSegmentId = this.queryParametersStore.getCurrent()?.segmentId || null;\n    return currentRouteSegmentId && !isVisible && id === currentRouteSegmentId;\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type SegmentModel from 'client/data/models/segment';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nexport default class SegmentStoreInternalBusinessService extends Service {\n  @service store: StoreService;\n\n  public createLocalSegment(\n    collection: CollectionModel,\n    segmentName: string,\n    icon: string,\n  ): SegmentModel {\n    return this.store.createRecord('segment', {\n      name: segmentName,\n      icon,\n      collection,\n      filter: this.store.createFragment('fragment-filter'),\n    });\n  }\n}\n","import { WrappedError } from 'client/utils/errors';\n\n// eslint-disable-next-line import/prefer-default-export\nexport class BuildSmartViewError extends WrappedError {\n  public readonly componentName: string;\n  public readonly fileType: 'component' | 'style' | 'template';\n\n  constructor(componentName: string, fileType: 'component' | 'style' | 'template', cause: Error) {\n    super(cause, cause.message);\n\n    this.name = 'BuildSmartViewError';\n    this.componentName = componentName;\n    this.fileType = fileType;\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type ViewListModel from 'client/data/models/view-list';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type SmartFeaturesViewListsManagerInternalBusinessService from 'client/features/smart-features/services/internal-business/view-lists-manager';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\n\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nexport default class SmartFeaturesFeatureService extends Service {\n  @service private router: RouterService;\n  @service('feature/smart-features/internal-business/view-lists-manager')\n  private viewListsManager: SmartFeaturesViewListsManagerInternalBusinessService;\n\n  @service('feature/notification') private notificationService: NotificationFeatureService;\n\n  @service private errorHandler: ErrorHandlerService;\n\n  public async saveSmartView(\n    smartView: ViewListModel,\n    shouldAlwaysRegister: boolean,\n    callback?: () => void,\n  ) {\n    const isCreation = smartView.isNew;\n\n    try {\n      await this.viewListsManager.saveAndRegisterSmartView(smartView, shouldAlwaysRegister);\n\n      if (isCreation) {\n        void this.router.transitionTo(\n          'project.rendering.data.collection.settings.views.details',\n          smartView.name,\n        );\n      }\n\n      this.notificationService.createToastr(\n        ToastrTypeEnum.Success,\n        `Smart View ${smartView.name} successfully ${isCreation ? 'created' : 'updated'}.`,\n      );\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(\n        error as Error,\n        `${smartView.name} ${isCreation ? 'creation' : 'update'} failed`,\n      );\n    } finally {\n      callback?.();\n    }\n  }\n}\n","import type ViewListModel from 'client/data/models/view-list';\nimport type AwsCodeUploaderService from 'client/legacy/services/aws-code-uploader';\nimport type SmartCodeRegisterService from 'client/legacy/services/smart-code-register';\n\nimport Service, { service } from '@ember/service';\n\nexport default class SmartFeaturesViewListsManagerInternalBusinessService extends Service {\n  @service private awsCodeUploader: AwsCodeUploaderService;\n  @service private smartCodeRegister: SmartCodeRegisterService;\n\n  public async registerSmartView(smartView: ViewListModel) {\n    this.smartCodeRegister.registerTemplateOrStyle(smartView.registryName, smartView);\n    if (smartView.allowJavascript) {\n      await this.smartCodeRegister.registerComponent(\n        smartView.registryName,\n        smartView.componentCode,\n      );\n    }\n  }\n\n  public async saveAndRegisterSmartView(smartView: ViewListModel, shouldAlwaysRegister: boolean) {\n    await this.awsCodeUploader.perform(smartView);\n    await smartView.save();\n\n    if (shouldAlwaysRegister || smartView.isNew) {\n      await this.registerSmartView(smartView);\n    }\n  }\n}\n","import type TeamModel from 'client/data/models/team';\nimport type UserModel from 'client/data/models/user';\nimport type TeamPerformanceFeatureService from 'client/features/team-performance/services/feature';\nimport type TeamPerformanceFeatureState from 'client/features/team-performance/state';\nimport type { RangeDate } from 'client/shared/components/form/date-range-picker/component';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { isEqual } from 'lodash';\nimport moment from 'moment';\n\nimport validateArguments from 'client/decorators/validate';\nimport { defaultTimePeriod } from 'client/features/team-performance/services/feature';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface TeamPerformanceFiltersArgs {\n  onFilter: () => void | Promise<void>;\n}\n\n@validateArguments\nexport default class TeamPerformanceFiltersComponent extends Component<TeamPerformanceFiltersArgs> {\n  static propTypes = {\n    onFilter: PropTypes.func.isRequired,\n  };\n\n  @service('feature/team-performance')\n  private teamPerformanceService: TeamPerformanceFeatureService;\n\n  @service('feature/team-performance/state')\n  private teamPerformanceState: TeamPerformanceFeatureState;\n\n  @tracked public timePeriod: RangeDate;\n  @tracked public selectedTeams: string[] = [];\n  @tracked public selectedInboxes: string[] = [];\n  @tracked public selectedAssignees: string[] = [];\n  @tracked teamsOptions: TeamModel[] = [];\n  @tracked inboxesOptions: { id: string; name: string; teams: number[] }[] = [];\n  @tracked public assigneesOptions: UserModel[] = [];\n  @tracked public assigneesSearchValue = '';\n\n  constructor(owner, args: TeamPerformanceFiltersArgs) {\n    super(owner, args);\n\n    void this.loadData();\n  }\n\n  private async loadData() {\n    await this.loadFilters();\n    await this.loadTeamsOptions();\n    await this.loadInboxesOptions();\n    await this.loadAssigneesOptions();\n  }\n\n  private async loadFilters() {\n    this.selectedTeams = [...this.teamPerformanceState.teamIds];\n    this.selectedInboxes = [...this.teamPerformanceState.inboxIds];\n    this.selectedAssignees = [...this.teamPerformanceState.assigneeIds];\n    this.timePeriod = this.teamPerformanceState.timePeriod;\n  }\n\n  private async loadTeamsOptions() {\n    this.teamsOptions = await this.teamPerformanceService.getTeamsList();\n  }\n\n  private async loadInboxesOptions() {\n    this.inboxesOptions = await this.teamPerformanceService.getInboxOptions(this.selectedTeams);\n  }\n\n  private async loadAssigneesOptions() {\n    this.assigneesOptions = await this.teamPerformanceService.getAssigneesOptionsWithSelected(\n      this.assigneesSearchValue,\n      this.selectedTeams,\n      this.selectedAssignees,\n    );\n  }\n\n  private get didTimePeriodChange() {\n    return (\n      this.timePeriod.to !== this.teamPerformanceState.timePeriod.to\n      || this.timePeriod.from !== this.teamPerformanceState.timePeriod.from\n    );\n  }\n\n  public get isApplyFilterDisabled() {\n    return (\n      !this.didTimePeriodChange\n      && isEqual(this.selectedTeams, this.teamPerformanceState.teamIds)\n      && isEqual(this.selectedInboxes, this.teamPerformanceState.inboxIds)\n      && isEqual(this.selectedAssignees, this.teamPerformanceState.assigneeIds)\n    );\n  }\n\n  public get inboxesFilterTooltipValue() {\n    if (this.selectedTeams.length === 0) {\n      return 'You need to select at least one team to view the inboxes.';\n    }\n\n    if (this.inboxesOptions.length === 0) {\n      return 'There are no inboxes associated with the selected teams.';\n    }\n\n    return null;\n  }\n\n  @action\n  handleTimePeriodChange(timePeriod: RangeDate) {\n    this.timePeriod = timePeriod\n      ? {\n          from: moment(new Date(timePeriod.from)).format('YYYY-MM-DD'),\n          to: moment(new Date(timePeriod.to)).format('YYYY-MM-DD'),\n        }\n      : defaultTimePeriod;\n  }\n\n  @action\n  handleInboxesChange(selectedInboxes: string[]) {\n    this.selectedInboxes = selectedInboxes;\n  }\n\n  @action\n  async handleTeamChange(selectedTeams: string[]) {\n    this.selectedTeams = selectedTeams;\n\n    this.assigneesSearchValue = '';\n    if (this.selectedTeams.length !== 0) {\n      this.selectedAssignees = await this.teamPerformanceService.filterAssigneesBySelectedTeams(\n        this.selectedAssignees,\n        this.selectedTeams,\n      );\n      this.selectedInboxes = this.teamPerformanceService.filterInboxesBySelectedTeams(\n        this.inboxesOptions.filter((inboxes) => this.selectedInboxes.includes(inboxes.id)),\n        this.selectedTeams,\n      );\n    } else {\n      this.selectedInboxes = [];\n    }\n    void this.loadInboxesOptions();\n    void this.loadAssigneesOptions();\n  }\n\n  @action\n  async handleAssigneeSearchChange(value: string) {\n    this.assigneesSearchValue = value;\n    const newAssignees = await this.teamPerformanceService.getAssigneesOptions(\n      this.assigneesSearchValue,\n      this.selectedTeams,\n    );\n\n    const filteredAssignees = newAssignees.filter(\n      (newAssignee) =>\n        !this.assigneesOptions.some((existingAssignee) => existingAssignee.id === newAssignee.id),\n    );\n\n    this.assigneesOptions = [...this.assigneesOptions, ...filteredAssignees];\n  }\n\n  @action\n  async handleFilter() {\n    await this.teamPerformanceService.updateState({\n      timePeriod: this.timePeriod,\n      teamIds: [...this.selectedTeams],\n      inboxIds: [...this.selectedInboxes],\n      assigneeIds: [...this.selectedAssignees],\n    });\n\n    await this.args.onFilter();\n  }\n\n  @action\n  getFindAssigneeById(assigneeId: string) {\n    return this.assigneesOptions.find((assignee) => assignee.id === assigneeId);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-team-performance-filters\\\"\\n  data-test-feature-team-performance-filters\\n  ...attributes\\n>\\n  <Shared::BetaLabel\\n    @label=\\\"Date range\\\"\\n    @for=\\\"team-performance-date-range\\\"\\n    class=\\\"c-feature-team-performance-filters__input\\\"\\n    data-test-team-performance-filters-time-period-label\\n  >\\n    <Shared::Form::DateRangeInput\\n      @value={{this.timePeriod}}\\n      @onChange={{this.handleTimePeriodChange}}\\n      name=\\\"team-performance-date-range\\\"\\n      data-test-team-performance-filters-time-period\\n    />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Teams\\\"\\n    @for=\\\"team-performance-teams\\\"\\n    class=\\\"c-feature-team-performance-filters__input\\\"\\n    data-test-team-performance-filters-teams-label\\n  >\\n    <Shared::BetaSelect\\n      @value={{this.selectedTeams}}\\n      @valuePath=\\\"id\\\"\\n      @options={{this.teamsOptions}}\\n      @namePath=\\\"name\\\"\\n      @onChange={{this.handleTeamChange}}\\n      @withSearchInput={{true}}\\n      @placeholder=\\\"All teams\\\"\\n      @multipleValues={{true}}\\n      @isInlineMultipleValues={{true}}\\n      data-test-team-performance-filters-teams\\n    />\\n  </Shared::BetaLabel>\\n\\n  <DataDisplay::WithTooltip\\n    @displayTooltip={{this.inboxesFilterTooltipValue}}\\n    @side=\\\"top\\\"\\n    class=\\\"c-feature-team-performance-filters__input\\\"\\n  >\\n    <Shared::BetaLabel\\n      @label=\\\"Inboxes\\\"\\n      @for=\\\"team-performance-inboxes\\\"\\n      data-test-team-performance-filters-inboxes-label\\n    >\\n      <Shared::BetaSelect\\n        @value={{this.selectedInboxes}}\\n        @valuePath=\\\"id\\\"\\n        @options={{this.inboxesOptions}}\\n        @namePath=\\\"name\\\"\\n        @onChange={{fn (mut this.selectedInboxes)}}\\n        @disabled={{or (eq this.inboxesOptions.length 0) (eq this.selectedTeams.length 0)}}\\n        @withSearchInput={{true}}\\n        @placeholder=\\\"All inboxes\\\"\\n        @multipleValues={{true}}\\n        @isInlineMultipleValues={{true}}\\n        data-test-team-performance-filters-inboxes\\n      />\\n    </Shared::BetaLabel>\\n  </DataDisplay::WithTooltip>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"User\\\"\\n    @for=\\\"team-performance-assignees\\\"\\n    class=\\\"c-feature-team-performance-filters__input\\\"\\n    data-test-team-performance-filters-assignees-label\\n  >\\n    <Shared::BetaSelect\\n      @value={{this.selectedAssignees}}\\n      @valuePath=\\\"id\\\"\\n      @options={{this.assigneesOptions}}\\n      @namePath=\\\"name\\\"\\n      @onChange={{fn (mut this.selectedAssignees)}}\\n      @withSearchInput={{true}}\\n      @placeholder=\\\"All users\\\"\\n      @multipleValues={{true}}\\n      @onSearchValueChange={{this.handleAssigneeSearchChange}}\\n      @isInlineMultipleValues={{true}}\\n      @hasCustomItemRenderer={{false}}\\n      data-test-team-performance-filters-assignees\\n    >\\n      <:before-item as |userId|>\\n        <Feature::User::Profile::Picture @user={{(this.getFindAssigneeById userId)}} />\\n      </:before-item>\\n    </Shared::BetaSelect>\\n  </Shared::BetaLabel>\\n\\n  <Shared::Button\\n    @type=\\\"primary\\\"\\n    @size=\\\"medium\\\"\\n    @text=\\\"Filter\\\"\\n    @iconName=\\\"sync\\\"\\n    @isIconAfterText={{true}}\\n    @onClick={{this.handleFilter}}\\n    @mustStopPropagation={{false}}\\n    disabled={{this.isApplyFilterDisabled}}\\n    class=\\\"c-feature-team-performance-filters__apply\\\"\\n    data-test-team-performance-filters-apply\\n  />\\n</div>\\n', { moduleName: 'client/features/team-performance/components/filters/template.hbs' });\n","import type { TeamPerformanceWithSorting } from 'client/features/team-performance/services/feature';\nimport type TeamPerformanceFeatureState from 'client/features/team-performance/state';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport {\n  LeaderboardSortByEnum,\n  type TeamPerformanceForUser,\n} from 'client/features/team-performance/services/feature';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface TeamPerformanceLeaderboardArgs {\n  leaderboardData: TeamPerformanceForUser[];\n  isLoading: boolean;\n  onLeaderboardSortChange: (sort: TeamPerformanceWithSorting['sort']) => void;\n}\n\n@validateArguments\nexport default class TeamPerformanceLeaderboardComponent extends Component<TeamPerformanceLeaderboardArgs> {\n  static propTypes = {\n    leaderboardData: PropTypes.arrayOf(PropTypes.object),\n    isLoading: PropTypes.bool,\n    onLeaderboardSortChange: PropTypes.func,\n  };\n\n  @service('feature/team-performance/state')\n  private teamPerformanceState: TeamPerformanceFeatureState;\n\n  get columns() {\n    return [\n      {\n        name: 'Assignee',\n        sortBy: LeaderboardSortByEnum.Assignee,\n        onSort: this.args.onLeaderboardSortChange,\n      },\n      {\n        name: 'Q3 handling time',\n        sortBy: LeaderboardSortByEnum.HandlingTimeQ3,\n        onSort: this.args.onLeaderboardSortChange,\n      },\n      {\n        name: 'Done',\n        sortBy: LeaderboardSortByEnum.Done,\n        onSort: this.args.onLeaderboardSortChange,\n      },\n    ];\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-team-performance-leaderboard\\\"\\n  data-test-feature-team-performance-leaderboard\\n  ...attributes\\n>\\n  {{#if (eq @leaderboardData.length 0)}}\\n    <Shared::Layout::FullPageTitleDescription\\n      @title=\\\"No data to display for the selected filters.\\\"\\n      data-test-feature-team-performance-leaderboard-no-data\\n    />\\n  {{else}}\\n    <Shared::BetaTable\\n      @columns={{this.columns}}\\n      @columnsClass=\\\"c-feature-team-performance-leaderboard__column-header\\\"\\n      @rows={{@leaderboardData}}\\n      @columnSort={{this.teamPerformanceState.leaderboardSort}}\\n      @sticky={{true}}\\n      @isScrollable={{false}}\\n      @alignColumnLeft={{true}}\\n      @embedded={{true}}\\n      @isLoading={{@isLoading}}\\n      class=\\\"c-feature-team-performance-leaderboard__table\\\"\\n      data-test-feature-team-performance-leaderboard-table\\n      as |RowColumn performance|\\n    >\\n      <RowColumn class=\\\"c-feature-team-performance-leaderboard__assignee\\\">\\n        <Feature::User::Profile\\n          @user={{hash\\n            email=performance.user.email\\n            fullName=performance.user.fullName\\n            initials=performance.user.initials\\n          }}\\n          @shouldDisplayNameOrEmail={{true}}\\n          data-test-feature-team-performance-leaderboard-row-assignee={{performance.user.id}}\\n        />\\n      </RowColumn>\\n      <RowColumn\\n        data-test-feature-team-performance-leaderboard-row-q3-handling-time={{performance.user.id}}\\n      >\\n        {{format-duration performance.handlingTimeQ3}}\\n      </RowColumn>\\n      <RowColumn data-test-feature-team-performance-leaderboard-row-count={{performance.user.id}}>\\n        {{performance.numberOfDone}}\\n      </RowColumn>\\n    </Shared::BetaTable>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/team-performance/components/leaderboard/template.hbs' });\n","import Component from '@glimmer/component';\nimport moment from 'moment-timezone';\n\nimport validateArguments from 'client/decorators/validate';\nimport { DEFAULT_DATEONLY_FORMAT } from 'client/utils/dates-default-format-variables';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface OverviewItemArgs {\n  title: string;\n  value: number;\n  previousTimePeriod: { from: string; to: string };\n  variationValue?: number;\n}\n\n@validateArguments\nexport default class TeamPerformanceOverviewItemComponent extends Component<OverviewItemArgs> {\n  static propTypes = {\n    title: PropTypes.string.isRequired,\n    value: PropTypes.number,\n    variationValue: PropTypes.number,\n    previousTimePeriod: PropTypes.shape({\n      from: PropTypes.string.isRequired,\n      to: PropTypes.string.isRequired,\n    }),\n  };\n\n  get hasVariationValue() {\n    return this.args.variationValue !== undefined;\n  }\n\n  get tooltipValue() {\n    return this.args.previousTimePeriod\n      ? `from ${moment(this.args.previousTimePeriod.from).format(\n          DEFAULT_DATEONLY_FORMAT,\n        )} to ${moment(this.args.previousTimePeriod.to).format(DEFAULT_DATEONLY_FORMAT)}`\n      : '';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<li\\n  class=\\\"c-feature-team-performance-overview-item\\\"\\n  data-test-feature-team-performance-overview-item\\n  ...attributes\\n>\\n  <h5\\n    class=\\\"c-feature-team-performance-overview-item__title\\\"\\n    data-test-feature-team-performance-overview-item-title\\n  >\\n    {{@title}}\\n  </h5>\\n\\n  <div class=\\\"c-feature-team-performance-overview-item__body\\\">\\n    {{#if (eq @value undefined)}}\\n      <h2\\n        class=\\\"c-feature-team-performance-overview-item__no-data\\\"\\n        data-test-feature-team-performance-overview-item-no-data\\n      >\\n        No data to display for the selected filters.\\n      </h2>\\n    {{else if @isLoading}}\\n      <Shared::Feedback::BetaLoader\\n        class=\\\"c-feature-team-performance-overview-item__loader\\\"\\n        data-test-feature-team-performance-overview-item-loader\\n      />\\n    {{else}}\\n      <span\\n        class=\\\"c-feature-team-performance-overview-item__value\\\"\\n        data-test-feature-team-performance-overview-item-value\\n      >\\n        {{@value}}\\n      </span>\\n\\n      {{#if this.hasVariationValue}}\\n        <Feature::Chart::VariationIndicator\\n          @value={{@variationValue}}\\n          class=\\\"c-feature-team-performance-overview-item__variation-indicator\\\"\\n          data-test-feature-team-performance-overview-item-variation-indicator\\n        >\\n          <:dimension>\\n            <DataDisplay::WithTooltip @displayTooltip={{this.tooltipValue}} @side=\\\"top\\\">\\n              vs last period\\n            </DataDisplay::WithTooltip>\\n          </:dimension>\\n        </Feature::Chart::VariationIndicator>\\n      {{/if}}\\n    {{/if}}\\n  </div>\\n</li>\\n', { moduleName: 'client/features/team-performance/components/overview/item/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<ul\\n  class=\\\"c-feature-team-performance-overview-list\\\"\\n  data-test-feature-team-performance-overview-list\\n  ...attributes\\n>\\n  {{yield}}\\n</ul>\\n', { moduleName: 'client/features/team-performance/components/overview/list/template.hbs' });\n","import type { SortingOrderEnum } from 'client/data/models/collection';\nimport type TeamPerformanceFeatureService from 'client/features/team-performance/services/feature';\nimport type {\n  LeaderboardSortByEnum,\n  TeamPerformanceForUser,\n  TeamPerformanceIntervalEnum,\n  TeamPerformanceStatisticTypeEnum,\n} from 'client/features/team-performance/services/feature';\nimport type TeamPerformanceFeatureState from 'client/features/team-performance/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { InboxAssignmentStateEnum } from 'client/data/models/inbox-assignment';\nimport {\n  LEADERBOARD_RECORD_PER_PAGE,\n  type PerformanceData,\n  type TeamPerformanceState,\n} from 'client/features/team-performance/services/feature';\n\nexport default class TeamPerformancePageComponent extends Component {\n  @service('feature/team-performance')\n  private teamPerformanceService: TeamPerformanceFeatureService;\n\n  @service('feature/team-performance/state')\n  public teamPerformanceState: TeamPerformanceFeatureState;\n\n  @tracked public overviewDoing = {\n    count: 0,\n    variation: 0,\n  };\n\n  @tracked public overviewDone = {\n    count: 0,\n    variation: 0,\n  };\n\n  @tracked public overviewPreviousTimePeriod: { from: string; to: string } = null;\n  @tracked public leaderboardData: TeamPerformanceForUser[];\n  @tracked public maxLeaderboardNumberOfPage = 0;\n  @tracked public performanceData: PerformanceData = null;\n\n  constructor(owner, args: unknown) {\n    super(owner, args);\n\n    void this.loadStateAndData();\n  }\n\n  public get canPerformanceBeDisplayed() {\n    return this.performanceData?.labels.length > 0;\n  }\n\n  public get performanceIntervalOptions() {\n    return this.teamPerformanceService.getPerformanceIntervalOptions();\n  }\n\n  async loadStateAndData() {\n    await this.teamPerformanceService.loadState();\n    await this.loadData();\n  }\n\n  @action\n  public async loadData() {\n    await Promise.all([\n      this.loadOverviewCount(),\n      this.loadPerformanceData(),\n      this.loadLeaderboardData(),\n    ]);\n  }\n\n  @action\n  public async handlePerformanceStateFilterChange(\n    state: TeamPerformanceState | TeamPerformanceStatisticTypeEnum,\n  ) {\n    await this.teamPerformanceService.updateState({ performanceActiveSection: state });\n\n    await this.loadPerformanceData();\n  }\n\n  @action\n  public async handleLeaderboardSortChange(leaderboardSort: {\n    by: LeaderboardSortByEnum;\n    order: SortingOrderEnum;\n  }) {\n    await this.teamPerformanceService.updateState({ leaderboardSort, leaderboardPage: 1 });\n    await this.loadLeaderboardData();\n  }\n\n  @action\n  public async handlePerformanceIntervalChange(interval: TeamPerformanceIntervalEnum) {\n    await this.teamPerformanceService.updateState({ performanceInterval: interval });\n    await this.loadPerformanceData();\n  }\n\n  @action\n  async handleLeaderboardPageChange(newPageNumber: number) {\n    await this.teamPerformanceService.updateState({ leaderboardPage: newPageNumber });\n    await this.loadLeaderboardData();\n  }\n\n  private async loadOverviewCountDoing() {\n    return this.teamPerformanceService.getOverviewData({\n      state: InboxAssignmentStateEnum.Doing,\n    });\n  }\n\n  private async loadOverviewCountDone() {\n    return this.teamPerformanceService.getOverviewData({\n      state: InboxAssignmentStateEnum.Done,\n    });\n  }\n\n  private async loadOverviewCount() {\n    const [overviewDoing, overviewDone] = await Promise.all([\n      this.loadOverviewCountDoing(),\n      this.loadOverviewCountDone(),\n    ]);\n\n    this.overviewDoing = {\n      count: overviewDoing?.count,\n      variation: overviewDoing?.percentageVariation,\n    };\n\n    this.overviewDone = {\n      count: overviewDone?.count,\n      variation: overviewDone?.percentageVariation,\n    };\n\n    this.overviewPreviousTimePeriod = overviewDoing?.previousTimePeriod;\n  }\n\n  private async loadPerformanceData() {\n    this.performanceData = await this.teamPerformanceService.getPerformanceData();\n  }\n\n  private async loadLeaderboardData() {\n    const { doneTasksCountsByUser, countLeaderboardUsers } =\n      await this.teamPerformanceService.getLeaderBoardData();\n    this.leaderboardData = doneTasksCountsByUser;\n    this.maxLeaderboardNumberOfPage = Math.ceil(\n      countLeaderboardUsers / LEADERBOARD_RECORD_PER_PAGE,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-team-performance-page\\\" data-test-feature-team-performance-page ...attributes>\\n  <Feature::TeamPerformance::Filters @onFilter={{this.loadData}} />\\n  <div class=\\\"c-feature-team-performance-page__body\\\">\\n    <Shared::DataBlock @title=\\\"Overview\\\" data-test-team-performance-page-overview>\\n      <:body>\\n\\n        <Feature::TeamPerformance::Overview::List>\\n          <Feature::TeamPerformance::Overview::Item\\n            @title=\\\"Doing\\\"\\n            @value={{this.overviewDoing.count}}\\n            @variationValue={{this.overviewDoing.variation}}\\n            @previousTimePeriod={{this.overviewPreviousTimePeriod}}\\n            @isLoading={{this.teamPerformanceState.isOverviewDoingDataLoading}}\\n            data-test-feature-team-performance-overview-item-doing\\n          />\\n          <Feature::TeamPerformance::Overview::Item\\n            @title=\\\"Done\\\"\\n            @value={{this.overviewDone.count}}\\n            @variationValue={{this.overviewDone.variation}}\\n            @previousTimePeriod={{this.overviewPreviousTimePeriod}}\\n            @isLoading={{this.teamPerformanceState.isOverviewDoneDataLoading}}\\n            data-test-feature-team-performance-overview-item-done\\n          />\\n        </Feature::TeamPerformance::Overview::List>\\n      </:body>\\n    </Shared::DataBlock>\\n\\n    <Shared::DataBlock @title=\\\"Performance\\\" data-test-team-performance-page-performance>\\n      <:header-actions>\\n        {{#if this.canPerformanceBeDisplayed}}\\n          <Shared::BetaSelect\\n            @options={{this.performanceIntervalOptions}}\\n            @value={{this.teamPerformanceState.performanceInterval}}\\n            @valuePath=\\\"value\\\"\\n            @namePath=\\\"name\\\"\\n            @onChange={{this.handlePerformanceIntervalChange}}\\n            class=\\\"c-feature-team-performance-page__performance-interval\\\"\\n            data-test-feature-team-performance-page-performance-interval-selector\\n          />\\n        {{/if}}\\n      </:header-actions>\\n      <:body>\\n        <Feature::TeamPerformance::Performance\\n          @performanceData={{this.performanceData}}\\n          @stateFilter={{this.teamPerformanceState.performanceStateFilter}}\\n          @onStateFilterChange={{this.handlePerformanceStateFilterChange}}\\n          @activeSection={{this.teamPerformanceState.performanceActiveSection}}\\n          @isLoading={{this.teamPerformanceState.isPerformanceDataLoading}}\\n          @interval={{this.teamPerformanceState.performanceInterval}}\\n        />\\n      </:body>\\n    </Shared::DataBlock>\\n\\n    <Shared::DataBlock @title=\\\"Leaderboard\\\" data-test-team-performance-page-leaderboard>\\n      <:header-actions>\\n        {{#if (gt this.leaderboardData.length 0)}}\\n          <Shared::BetaPaginator\\n            @currentPage={{this.teamPerformanceState.leaderboardPage}}\\n            @numberOfPages={{this.maxLeaderboardNumberOfPage}}\\n            @isNumberOfPagesLoading={{false}}\\n            @isNumberOfPagesDeactivated={{false}}\\n            @isNextButtonDisabled={{eq\\n              this.teamPerformanceState.leaderboardPage\\n              this.maxLeaderboardNumberOfPage\\n            }}\\n            @back={{fn\\n              this.handleLeaderboardPageChange\\n              (add this.teamPerformanceState.leaderboardPage -1)\\n            }}\\n            @next={{fn\\n              this.handleLeaderboardPageChange\\n              (add this.teamPerformanceState.leaderboardPage 1)\\n            }}\\n            @selectPage={{this.handleLeaderboardPageChange}}\\n            data-test-feature-team-performance-page-leaderboard-paginator\\n          />\\n        {{/if}}\\n      </:header-actions>\\n      <:body>\\n        <Feature::TeamPerformance::Leaderboard\\n          @leaderboardData={{this.leaderboardData}}\\n          @isLoading={{this.teamPerformanceState.isLeaderBoardDataLoading}}\\n          @onLeaderboardSortChange={{this.handleLeaderboardSortChange}}\\n        />\\n      </:body>\\n    </Shared::DataBlock>\\n  </div>\\n</div>\\n', { moduleName: 'client/features/team-performance/components/page/template.hbs' });\n","import type Chart from 'chart.js';\n\nimport Component from '@glimmer/component';\n\nimport { InboxAssignmentStateEnum } from 'client/data/models/inbox-assignment';\nimport validateArguments from 'client/decorators/validate';\nimport {\n  type PerformanceData,\n  TeamPerformanceIntervalEnum,\n  type TeamPerformanceState,\n  TeamPerformanceStatisticTypeEnum,\n} from 'client/features/team-performance/services/feature';\nimport { formatDuration } from 'client/utils/date-helper';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface PerformanceComponentArgs {\n  performanceData?: PerformanceData;\n  stateFilter: InboxAssignmentStateEnum;\n  onStateFilterChange: (state: TeamPerformanceState | TeamPerformanceStatisticTypeEnum) => void;\n  activeSection: TeamPerformanceStatisticTypeEnum | TeamPerformanceState;\n  isLoading?: boolean;\n  interval?: TeamPerformanceIntervalEnum;\n}\n\n@validateArguments\nexport default class TeamPerformancePerformanceComponent extends Component<PerformanceComponentArgs> {\n  static propTypes = {\n    performanceData: PropTypes.shape({\n      labels: PropTypes.arrayOf(PropTypes.instanceOf(Date)),\n      datasets: PropTypes.arrayOf(\n        PropTypes.shape({\n          data: PropTypes.arrayOf(PropTypes.number).isRequired,\n          label: PropTypes.string,\n        }),\n      ),\n    }),\n    stateFilter: PropTypes.oneOf(Object.values(InboxAssignmentStateEnum)).isRequired,\n    onStateFilterChange: PropTypes.func.isRequired,\n    activeSection: PropTypes.oneOf([\n      ...Object.values(TeamPerformanceStatisticTypeEnum),\n      'done',\n      'doing',\n      'canceled',\n    ]).isRequired,\n    isLoading: PropTypes.bool,\n    interval: PropTypes.oneOf(Object.values(TeamPerformanceIntervalEnum)),\n  };\n\n  get timeUnitForChart() {\n    if (this.args.interval === TeamPerformanceIntervalEnum.Daily) {\n      return 'day';\n    }\n    return this.args.interval?.replace('ly', '');\n  }\n\n  get chartOptions(): Chart.ChartOptions {\n    if (['done', 'doing', 'canceled'].includes(this.args.activeSection)) {\n      return {};\n    }\n    return {\n      scales: {\n        yAxes: [\n          {\n            ticks: {\n              callback(value) {\n                return formatDuration(Number(value));\n              },\n            },\n          },\n        ],\n      },\n      tooltips: {\n        callbacks: {\n          label: ({ value }) => {\n            return Number(value) === 0 ? 'No data' : formatDuration(Number(value));\n          },\n        },\n      },\n    };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-team-performance-performance\\\"\\n  data-test-feature-team-performance-performance\\n  ...attributes\\n>\\n  <SideMenu data-test-feature-team-performance-performance-menu>\\n    <SideMenu::Section @sectionTitle=\\\"Tickets\\\" @noBackground={{true}}>\\n      <SideMenu::Item\\n        @name=\\\"Doing\\\"\\n        @currentWhenCondition={{eq @activeSection \\'doing\\'}}\\n        @onClick={{fn @onStateFilterChange \\'doing\\'}}\\n        @onNameClick={{stop-propagation (fn @onStateFilterChange \\'doing\\')}}\\n        @hideArrow={{true}}\\n        @leftSpaced={{true}}\\n        @size=\\\"small\\\"\\n        data-test-feature-team-performance-performance-item-doing\\n      />\\n      <SideMenu::Item\\n        @name=\\\"Done\\\"\\n        @currentWhenCondition={{eq @activeSection \\'done\\'}}\\n        @onClick={{fn @onStateFilterChange \\'done\\'}}\\n        @onNameClick={{stop-propagation (fn @onStateFilterChange \\'done\\')}}\\n        @hideArrow={{true}}\\n        @leftSpaced={{true}}\\n        @size=\\\"small\\\"\\n        data-test-feature-team-performance-performance-item-done\\n      />\\n      <SideMenu::Item\\n        @name=\\\"Unassigned\\\"\\n        @currentWhenCondition={{eq @activeSection \\'canceled\\'}}\\n        @onNameClick={{stop-propagation (fn @onStateFilterChange \\'canceled\\')}}\\n        @onClick={{fn @onStateFilterChange \\'canceled\\'}}\\n        @hideArrow={{true}}\\n        @leftSpaced={{true}}\\n        @size=\\\"small\\\"\\n        data-test-feature-team-performance-performance-item-canceled\\n      />\\n    </SideMenu::Section>\\n    <SideMenu::Section @sectionTitle=\\\"Handling time\\\" @noBackground={{true}}>\\n      <SideMenu::Item\\n        @name=\\\"1st quartile\\\"\\n        @currentWhenCondition={{eq @activeSection \\'first_quartile\\'}}\\n        @onClick={{fn @onStateFilterChange \\'first_quartile\\'}}\\n        @onNameClick={{stop-propagation (fn @onStateFilterChange \\'first_quartile\\')}}\\n        @hideArrow={{true}}\\n        @leftSpaced={{true}}\\n        @size=\\\"small\\\"\\n        data-test-feature-team-performance-performance-item-first-quartile\\n      />\\n      <SideMenu::Item\\n        @name=\\\"Median\\\"\\n        @currentWhenCondition={{eq @activeSection \\'median\\'}}\\n        @onClick={{fn @onStateFilterChange \\'median\\'}}\\n        @onNameClick={{stop-propagation (fn @onStateFilterChange \\'median\\')}}\\n        @hideArrow={{true}}\\n        @leftSpaced={{true}}\\n        @size=\\\"small\\\"\\n        data-test-feature-team-performance-performance-item-median\\n      />\\n      <SideMenu::Item\\n        @name=\\\"3rd quartile\\\"\\n        @currentWhenCondition={{eq @activeSection \\'third_quartile\\'}}\\n        @onClick={{fn @onStateFilterChange \\'third_quartile\\'}}\\n        @onNameClick={{stop-propagation (fn @onStateFilterChange \\'third_quartile\\')}}\\n        @hideArrow={{true}}\\n        @leftSpaced={{true}}\\n        @size=\\\"small\\\"\\n        data-test-feature-team-performance-performance-item-third-quartile\\n      />\\n      <SideMenu::Item\\n        @name=\\\"Average\\\"\\n        @currentWhenCondition={{eq @activeSection \\'average\\'}}\\n        @onClick={{fn @onStateFilterChange \\'average\\'}}\\n        @onNameClick={{stop-propagation (fn @onStateFilterChange \\'average\\')}}\\n        @hideArrow={{true}}\\n        @leftSpaced={{true}}\\n        @size=\\\"small\\\"\\n        data-test-feature-team-performance-performance-item-third-quartile\\n      />\\n    </SideMenu::Section>\\n  </SideMenu>\\n\\n  <div class=\\\"c-feature-team-performance-performance__chart-container\\\">\\n    {{#if @isLoading}}\\n      <Shared::Feedback::BetaLoader\\n        class=\\\"c-feature-team-performance-performance__loader\\\"\\n        data-test-feature-team-performance-performance-loader\\n      />\\n    {{else if @performanceData.labels.length}}\\n      <Feature::Chart::LineChart\\n        @datasets={{@performanceData.datasets}}\\n        @labels={{@performanceData.labels}}\\n        @timeUnit={{this.timeUnitForChart}}\\n        @chartOptions={{this.chartOptions}}\\n      />\\n    {{else}}\\n      <Shared::Layout::FullPageTitleDescription\\n        @title=\\\"No data to display for the selected filters.\\\"\\n        class=\\\"c-feature-team-performance-performance__no-data\\\"\\n        data-test-feature-team-performance-performance-no-data\\n      />\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/features/team-performance/components/performance/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"teamPerformance\\\"\\n  @features={{array\\n    \\'Keep track of the volume of records at each step of the process\\'\\n    \\\"Follow the evolution of your ticket\\'s handling time\\\"\\n    \\'Identify high performers and upskilling opportunities\\'\\n  }}\\n  @titlePrefix=\\\"Monitor your\\\"\\n  @titleHighlight=\\\"Team Performance\\\"\\n  @titleSuffix=\\\"and improve your operational efficiency\\\"\\n  @imageName=\\\"team-performance\\\"\\n  @featureCallbackRoute=\\\"project.rendering.reports.team-performance\\\"\\n/>\\n', { moduleName: 'client/features/team-performance/components/preview/template.hbs' });\n","import type TeamPerformanceFeatureService from 'client/features/team-performance/services/feature';\nimport type TeamPerformanceFeatureState from 'client/features/team-performance/state';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\nexport default class TeamPerformanceSideMenuItemComponent extends Component {\n  @service('feature/team-performance')\n  private teamPerformanceService: TeamPerformanceFeatureService;\n\n  @service('event-bus') private eventBus: EventBusService;\n\n  @service('feature/team-performance/state')\n  public teamPerformanceState: TeamPerformanceFeatureState;\n\n  @tracked public queryParameters: Record<string, unknown>;\n\n  constructor(owner, args: unknown) {\n    super(owner, args);\n\n    this.setupQueryParameters();\n    this.eventBus.on(EventBusEventsEnum.TeamPerformanceStateUpdated, this.setupQueryParameters);\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.eventBus.off(EventBusEventsEnum.TeamPerformanceStateUpdated, this.setupQueryParameters);\n  }\n\n  @action\n  public setupQueryParameters() {\n    this.queryParameters = this.teamPerformanceService.getQueryParametersFromLastState();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::BetaSideMenu::Item\\n  @name=\\\"Team Performance\\\"\\n  @icon=\\\"👤\\\"\\n  @route=\\\"project.rendering.reports.team-performance\\\"\\n  @query={{this.queryParameters}}\\n  @isFoldable={{false}}\\n  class=\\\"c-feature-team-performance-side-menu-item\\\"\\n  data-test-feature-team-performance-side-menu-item\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/team-performance/components/side-menu-item/template.hbs' });\n","// eslint-disable-next-line max-classes-per-file\nexport class TeamPerformanceLeaderboardOutOfRangeError extends Error {\n  constructor() {\n    super('Offset is out of range');\n    this.name = 'TeamPerformanceLeaderboardOutOfRangeError';\n  }\n}\n\nexport class TeamPerformanceRequestAborted extends Error {\n  constructor() {\n    super('Request was aborted');\n    this.name = 'TeamPerformanceRequestAborted';\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type { SortingOrderEnum } from 'client/data/models/collection';\nimport type UserModel from 'client/data/models/user';\nimport type TeamFeatureService from 'client/features/team/services/feature';\nimport type TeamPerformanceCountFetcherInternalBusinessService from 'client/features/team-performance/services/internal-business/count-fetcher';\nimport type TeamPerformanceStateStoreInternalBusinessService from 'client/features/team-performance/services/internal-business/state-store';\nimport type { ToSave } from 'client/features/team-performance/services/internal-business/state-store';\nimport type TeamPerformanceStatsProcessorInternalBusinessService from 'client/features/team-performance/services/internal-business/stats-processor';\nimport type TeamPerformanceFeatureState from 'client/features/team-performance/state';\nimport type UserFeatureService from 'client/features/user/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type { AbilitiesService } from 'ember-can';\n\nimport Service, { service } from '@ember/service';\nimport moment from 'moment';\n\nimport { InboxAssignmentStateEnum } from 'client/data/models/inbox-assignment';\nimport {\n  TeamPerformanceLeaderboardOutOfRangeError,\n  TeamPerformanceRequestAborted,\n} from 'client/features/team-performance/errors';\n\nexport type TeamPerformanceArgs = {\n  inboxIds?: string[];\n  teamIds?: string[];\n  assigneeIds?: string[];\n  timePeriod?: { from: string; to: string };\n};\nexport type TeamPerformanceOverviewArgs = TeamPerformanceArgs & {\n  state: InboxAssignmentStateEnum.Doing | InboxAssignmentStateEnum.Done;\n};\nexport const enum DateConfigurationEnum {\n  Today = 'today',\n  Yesterday = 'yesterday',\n  LastNDays = 'lastNdays',\n  ThisMonth = 'thisMonth',\n  LastMonth = 'lastMonth',\n}\nexport const enum LeaderboardSortByEnum {\n  Assignee = 'assignee',\n  HandlingTimeQ3 = 'handling_time_q3',\n  Done = 'numberOfDone',\n}\nexport type TeamPerformanceWithSorting = TeamPerformanceArgs & {\n  sort: { by: LeaderboardSortByEnum; order: SortingOrderEnum };\n  offset: number;\n};\n\nexport type TeamPerformanceForUser = {\n  user: UserModel;\n  numberOfDone: number;\n  handlingTimeQ3: number;\n};\n\nexport enum TeamPerformanceIntervalEnum {\n  Daily = 'daily',\n  Weekly = 'weekly',\n  Monthly = 'monthly',\n  Quarterly = 'quarterly',\n  Yearly = 'yearly',\n}\nexport enum TeamPerformanceStatisticTypeEnum {\n  Median = 'median',\n  FirstQuartile = 'first_quartile',\n  ThirdQuartile = 'third_quartile',\n  Average = 'average',\n  AssignmentCount = 'assignment_count',\n}\n\nexport const defaultTimePeriod = Object.freeze({\n  from: moment(new Date()).subtract(7, 'days').format('YYYY-MM-DD'),\n  to: moment(new Date()).format('YYYY-MM-DD'),\n});\n\nexport interface PerformanceData {\n  labels: Date[];\n  datasets: {\n    data: number[];\n    label?: string;\n  }[];\n}\nexport const LEADERBOARD_RECORD_PER_PAGE = 10;\n\nexport type TeamPerformanceState = Exclude<\n  InboxAssignmentStateEnum,\n  InboxAssignmentStateEnum.Todo | InboxAssignmentStateEnum.AutoCanceled\n>;\n\nexport default class TeamPerformanceFeatureService extends Service {\n  @service('feature/team-performance/internal-business/count-fetcher')\n  private countFetcher: TeamPerformanceCountFetcherInternalBusinessService;\n\n  @service('feature/team-performance/internal-business/stats-processor')\n  private statsProcessor: TeamPerformanceStatsProcessorInternalBusinessService;\n\n  @service('feature/team-performance/state') private state: TeamPerformanceFeatureState;\n  @service('feature/team-performance/internal-business/state-store')\n  private stateStoreService: TeamPerformanceStateStoreInternalBusinessService;\n\n  @service('feature/team')\n  private teamFeatureService: TeamFeatureService;\n\n  @service('feature/user')\n  private userFeatureService: UserFeatureService;\n\n  @service\n  private abilities: AbilitiesService;\n\n  @service private currentUser: CurrentUserService;\n  @service private router: RouterService;\n  @service private errorHandler: ErrorHandlerService;\n\n  public getPerformanceIntervalOptions() {\n    return this.statsProcessor.getPerformanceIntervalOptions(this.state.dateRangeInterval);\n  }\n\n  public isFeatureEnabled() {\n    return this.abilities.can('access to teamPerformance');\n  }\n\n  public canUserAccessTeamPerformance() {\n    return this.currentUser.can('getTeamPerformanceData');\n  }\n\n  public async getLeaderBoardData(): Promise<{\n    doneTasksCountsByUser: TeamPerformanceForUser[];\n    countLeaderboardUsers: number;\n  }> {\n    this.state.isLeaderBoardDataLoading = true;\n    try {\n      const result = await this.countFetcher.fetchLeaderBoardData({\n        ...this.state.filters,\n        sort: this.state.leaderboardSort,\n        offset: LEADERBOARD_RECORD_PER_PAGE * (this.state.leaderboardPage - 1),\n      });\n      this.state.isLeaderBoardDataLoading = false;\n      return result;\n    } catch (error: Error | unknown) {\n      if (error instanceof TeamPerformanceLeaderboardOutOfRangeError) {\n        await this.updateState({ leaderboardPage: 1 });\n        return this.getLeaderBoardData();\n      }\n\n      this.handleRequestError(\n        error,\n        'An error occurred while fetching leaderboard data',\n        'isLeaderBoardDataLoading',\n      );\n      return { doneTasksCountsByUser: [], countLeaderboardUsers: null };\n    }\n  }\n\n  public async getOverviewData({\n    state,\n  }: {\n    state: InboxAssignmentStateEnum.Doing | InboxAssignmentStateEnum.Done;\n  }) {\n    const loadingPropertyName = `isOverview${\n      state === InboxAssignmentStateEnum.Doing ? 'Doing' : 'Done'\n    }DataLoading` as const;\n    this.state[loadingPropertyName] = true;\n    try {\n      const result = await this.countFetcher.fetchOverviewData({\n        state,\n        ...this.state.filters,\n      });\n      this.state[loadingPropertyName] = false;\n      return result;\n    } catch (error) {\n      this.handleRequestError(\n        error,\n        `An error occurred while fetching overview ${state} data`,\n        loadingPropertyName,\n      );\n      return null;\n    }\n  }\n\n  public async getPerformanceData(): Promise<PerformanceData> {\n    this.state.isPerformanceDataLoading = true;\n    try {\n      const result = await this.countFetcher.fetchPerformanceData({\n        statisticType: this.state.performanceStatisticType,\n        status: this.state.performanceStateFilter,\n        interval: this.state.performanceInterval,\n        ...this.state.filters,\n      });\n      this.state.isPerformanceDataLoading = false;\n      return result;\n    } catch (error) {\n      this.handleRequestError(\n        error,\n        'An error occurred while fetching performance data',\n        'isPerformanceDataLoading',\n      );\n      return { labels: [], datasets: [] };\n    }\n  }\n\n  public async getTeamsList() {\n    return this.teamFeatureService.getTeamsList();\n  }\n\n  public async getInboxOptions(teamIds: string[] = []) {\n    try {\n      const response = await this.countFetcher.fetchInboxesByTeamIds(teamIds);\n\n      return response.data.map(({ id, attributes }) => ({\n        id,\n        name: attributes.name,\n        teams: attributes.teams,\n      }));\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(\n        error as Error,\n        'An error occurred while fetching inboxes',\n      );\n      return [];\n    }\n  }\n\n  public async getAssigneesOptions(search: string, teamIds: string[] = []) {\n    return this.userFeatureService.searchUsers(search, 1, 10, teamIds);\n  }\n\n  public async getAssigneesOptionsWithSelected(\n    search: string,\n    teamIds: string[],\n    selectedAssigneeIds: string[],\n  ) {\n    const searchResults = await this.getAssigneesOptions(search, teamIds);\n\n    const missingSelectedIds = selectedAssigneeIds.filter(\n      (assigneeId) => !searchResults.some((user) => user.id === assigneeId),\n    );\n\n    let selectedUsers: UserModel[] = [];\n    if (missingSelectedIds.length > 0) {\n      selectedUsers = await this.userFeatureService.getUsersByIds(missingSelectedIds);\n    }\n\n    return [...selectedUsers, ...searchResults];\n  }\n\n  public getQueryParametersFromLastState() {\n    return this.stateStoreService.getStoredValues();\n  }\n\n  public async loadState() {\n    await this.stateStoreService.initializeState();\n  }\n\n  public async updateState(parameters: ToSave) {\n    await this.stateStoreService.save(parameters);\n  }\n\n  public async filterAssigneesBySelectedTeams(assignees: string[] = [], teams: string[] = []) {\n    const users = await Promise.all(\n      assignees.map(async (userID) => this.userFeatureService.getUserById(userID)),\n    );\n\n    await Promise.all(users.map((user) => user?.teams));\n    return users.reduce<string[]>((acc, user) => {\n      const isSelected = user.teams.toArray().some((team) => teams.includes(team.id));\n\n      if (isSelected) {\n        return [...acc, user.id];\n      }\n\n      return acc;\n    }, []);\n  }\n\n  private handleRequestError(\n    error: unknown,\n    errorPrefix: string,\n    loadingProperty:\n      | 'isPerformanceDataLoading'\n      | 'isOverviewDoingDataLoading'\n      | 'isOverviewDoneDataLoading'\n      | 'isLeaderBoardDataLoading',\n  ) {\n    if (error instanceof TeamPerformanceRequestAborted) {\n      return;\n    }\n\n    this.errorHandler.handleRequestFailure(error as Error, errorPrefix);\n    this.state[loadingProperty] = false;\n  }\n\n  public filterInboxesBySelectedTeams(\n    inboxes: Array<{ id: string; name: string; teams: number[] }> = [],\n    teamIds: string[] = [],\n  ) {\n    return inboxes.reduce<string[]>((acc, inbox) => {\n      if (teamIds.find((teamId) => inbox.teams.includes(Number(teamId)))) {\n        return [...acc, inbox.id];\n      }\n\n      return acc;\n    }, []);\n  }\n}\n","import type UserModel from 'client/data/models/user';\nimport type { InboxPayload } from 'client/data/serializers/inbox';\nimport type TeamPerformanceStatsProcessorInternalBusinessService from 'client/features/team-performance/services/internal-business/stats-processor';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\nimport { didCancel, restartableTask } from 'ember-concurrency';\nimport moment from 'moment';\n\nimport { InboxAssignmentStateEnum } from 'client/data/models/inbox-assignment';\nimport {\n  TeamPerformanceLeaderboardOutOfRangeError,\n  TeamPerformanceRequestAborted,\n} from 'client/features/team-performance/errors';\nimport {\n  LEADERBOARD_RECORD_PER_PAGE,\n  type TeamPerformanceArgs,\n  type TeamPerformanceIntervalEnum,\n  type TeamPerformanceOverviewArgs,\n  type TeamPerformanceState,\n  type TeamPerformanceStatisticTypeEnum,\n  type TeamPerformanceWithSorting,\n} from 'client/features/team-performance/services/feature';\n\ntype PerformanceFetchingParams = TeamPerformanceArgs & {\n  statisticType?: TeamPerformanceStatisticTypeEnum;\n  status?: TeamPerformanceState;\n  interval?: TeamPerformanceIntervalEnum;\n};\n\nexport default class TeamPerformanceCountFetcherInternalBusinessService extends Service {\n  @service private serverFetch: ServerFetchService;\n  @service('feature/team-performance/internal-business/stats-processor')\n  private statsProcessor: TeamPerformanceStatsProcessorInternalBusinessService;\n\n  @service private store: StoreService;\n\n  private overviewDoneAbortController: AbortController;\n  private overviewDoingAbortController: AbortController;\n\n  private makeBasicSearchParams({\n    inboxIds,\n    teamIds,\n    assigneeIds,\n    timePeriod,\n  }: TeamPerformanceArgs) {\n    const params = new URLSearchParams();\n\n    if (inboxIds?.length > 0) {\n      inboxIds.forEach((inboxId) => params.append('inboxIds[]', inboxId));\n    }\n\n    if (teamIds?.length > 0) {\n      teamIds.forEach((teamId) => params.append('teamIds[]', teamId));\n    }\n\n    if (assigneeIds?.length > 0) {\n      assigneeIds.forEach((userId) => params.append('assigneeIds[]', userId));\n    }\n\n    if (timePeriod) {\n      Object.keys(timePeriod).forEach((key) => {\n        params.append(`timePeriod[${key}]`, `${timePeriod[key] as string}`);\n      });\n    }\n\n    return params;\n  }\n\n  private leaderboardFetchingTask = restartableTask(\n    async (\n      { inboxIds, teamIds, assigneeIds, timePeriod, sort, offset }: TeamPerformanceWithSorting,\n      signal: AbortSignal,\n    ) => {\n      const params = this.makeBasicSearchParams({ inboxIds, teamIds, assigneeIds, timePeriod });\n\n      params.append('sort[by]', `${sort.by as string}`);\n      params.append('sort[order]', `${sort.order as string}`);\n      params.append('offset', String(offset));\n      params.append('limit', String(LEADERBOARD_RECORD_PER_PAGE));\n\n      const response = await this.serverFetch.fetch(\n        `/api/inbox/stats/leaderboard?${params.toString()}`,\n        {\n          signal,\n        },\n        true,\n      );\n\n      const { doneTasksCountsByUser, countLeaderboardUsers } = (await response.json()) as {\n        doneTasksCountsByUser: {\n          user: {\n            id: string;\n            lastName: string;\n            firstName: string;\n            email: string;\n          };\n          numberOfDone: number;\n          handlingTimeQ3: number;\n        }[];\n        countLeaderboardUsers: number;\n      };\n\n      if (offset && offset >= countLeaderboardUsers) {\n        throw new TeamPerformanceLeaderboardOutOfRangeError();\n      }\n\n      return {\n        doneTasksCountsByUser: doneTasksCountsByUser?.map(\n          ({ user, numberOfDone, handlingTimeQ3 }) => ({\n            numberOfDone,\n            handlingTimeQ3,\n            // we push users into the store to get the user model's methods which are passed to Feature::User::Profile\n            user: this.store.push({\n              data: {\n                type: 'user',\n                id: user.id,\n                attributes: {\n                  email: user.email,\n                  firstName: user.firstName,\n                  lastName: user.lastName,\n                },\n              },\n            }) as UserModel,\n          }),\n        ),\n        countLeaderboardUsers,\n      };\n    },\n  );\n\n  private performanceFetchingTask = restartableTask(\n    async (\n      {\n        inboxIds,\n        teamIds,\n        assigneeIds,\n        timePeriod,\n        statisticType,\n        status,\n        interval,\n      }: PerformanceFetchingParams,\n      signal: AbortSignal,\n    ) => {\n      const params = this.makeBasicSearchParams({ inboxIds, teamIds, assigneeIds, timePeriod });\n\n      if (statisticType) {\n        params.append('statisticType', statisticType);\n      }\n\n      if (status) {\n        params.append('status', status);\n      }\n\n      if (interval) {\n        params.append('interval', interval);\n      }\n\n      const response = await this.serverFetch.fetch(\n        `/api/inbox/stats/performance?${params.toString()}`,\n        {\n          signal,\n        },\n        true,\n      );\n\n      const result = (await response.json()) as {\n        data: { date: Date | string; value: number }[];\n      };\n      if (result?.data?.every((data) => data.value === 0)) {\n        return { labels: [], datasets: [] };\n      }\n\n      const labels: Date[] = [];\n      const data: number[] = [];\n\n      result?.data?.forEach(({ value, date }) => {\n        labels.push(moment(date).toDate());\n        data.push(value);\n      });\n\n      return { labels, datasets: [{ data }] };\n    },\n  );\n\n  public async fetchLeaderBoardData(params: TeamPerformanceWithSorting) {\n    const abortController = new AbortController();\n\n    try {\n      return await this.leaderboardFetchingTask.perform(params, abortController.signal);\n    } catch (error) {\n      if (didCancel(error)) {\n        abortController.abort();\n\n        console.debug('TeamPerformance:fetchLeaderBoardData data fetching was canceled');\n        throw new TeamPerformanceRequestAborted();\n      }\n      throw error;\n    }\n  }\n\n  public async fetchOverviewData({\n    inboxIds,\n    teamIds,\n    assigneeIds,\n    timePeriod,\n    state,\n  }: TeamPerformanceOverviewArgs) {\n    const params = this.makeBasicSearchParams({ inboxIds, teamIds, assigneeIds, timePeriod });\n\n    params.append('state', state as string);\n\n    const abortController = new AbortController();\n    if (state === InboxAssignmentStateEnum.Done) {\n      this.overviewDoneAbortController?.abort();\n      this.overviewDoneAbortController = abortController;\n    } else {\n      this.overviewDoingAbortController?.abort();\n      this.overviewDoingAbortController = abortController;\n    }\n\n    try {\n      const response = await this.serverFetch.fetch(\n        `/api/inbox/stats/count-with-variation?${params.toString()}`,\n        { signal: abortController.signal },\n        true,\n      );\n\n      const responseJSON = (await response.json()) as {\n        data: {\n          count: number;\n          previousCount: number;\n          previousTimePeriod: { from: string; to: string };\n        };\n      };\n\n      const count = responseJSON?.data?.count ?? 0;\n      const previousCount = responseJSON?.data?.previousCount ?? 0;\n\n      return {\n        count,\n        previousCount,\n        previousTimePeriod: responseJSON?.data?.previousTimePeriod ?? null,\n        percentageVariation: this.statsProcessor.getPercentageVariation(count, previousCount),\n      };\n    } catch (error) {\n      if (error instanceof DOMException && error.name === 'AbortError') {\n        console.debug(`TeamPerformance:getOverviewData ${state} data fetching was canceled`);\n        throw new TeamPerformanceRequestAborted();\n      }\n      throw error;\n    }\n  }\n\n  public async fetchPerformanceData(params: PerformanceFetchingParams) {\n    const abortController = new AbortController();\n    try {\n      return await this.performanceFetchingTask.perform(params, abortController.signal);\n    } catch (error) {\n      if (didCancel(error)) {\n        abortController.abort();\n        console.debug('TeamPerformance:getPerformanceData data fetching was canceled');\n        throw new TeamPerformanceRequestAborted();\n      }\n      throw error;\n    }\n  }\n\n  public async fetchInboxesByTeamIds(teamIds: string[]) {\n    const params = this.makeBasicSearchParams({ teamIds });\n\n    if (teamIds.length === 0) {\n      return { data: [] };\n    }\n\n    const response = await this.serverFetch.fetch(\n      `/api/teams/inboxes?${params.toString()}`,\n      {},\n      true,\n    );\n\n    return (await response.json()) as { data: InboxPayload[] };\n  }\n}\n","import type { SortingOrderEnum } from 'client/data/models/collection';\nimport type TeamPerformanceStatsProcessorInternalBusinessService from 'client/features/team-performance/services/internal-business/stats-processor';\nimport type TeamPerformanceFeatureState from 'client/features/team-performance/state';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\nimport type { RangeDate } from 'client/shared/components/form/date-range-picker/component';\nimport type QueryParametersStoreSharedBusinessService from 'client/shared/services/query-parameters-store';\n\nimport Service, { service } from '@ember/service';\nimport moment from 'moment';\n\nimport {\n  DateConfigurationEnum,\n  type LeaderboardSortByEnum,\n  type TeamPerformanceArgs,\n  type TeamPerformanceIntervalEnum,\n  type TeamPerformanceState,\n  type TeamPerformanceStatisticTypeEnum,\n  type TeamPerformanceWithSorting,\n} from 'client/features/team-performance/services/feature';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport { TEAM_PERFORMANCE_QUERY_PARAMETERS } from 'client/routes/project/rendering/reports/team-performance/index/controller';\nimport { isLastMonth, isThisMonth, isToday, isYesterday } from 'client/utils/date-helper';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\nexport type TeamPerformanceStoredValues = {\n  days?: number;\n  timePeriod?: DateConfigurationEnum;\n  from?: string;\n  to?: string;\n  leaderboardSortOrder: SortingOrderEnum;\n  leaderboardSortBy: LeaderboardSortByEnum;\n  leaderboardPage: string | number;\n  performanceActiveSection: TeamPerformanceState | TeamPerformanceStatisticTypeEnum;\n  performanceInterval: TeamPerformanceIntervalEnum;\n} & Omit<TeamPerformanceArgs, 'timePeriod'>;\n\nexport type ToSave = {\n  timePeriod?: RangeDate | null;\n  teamIds?: string[];\n  leaderboardSort?: TeamPerformanceWithSorting['sort'];\n  leaderboardPage?: number;\n  inboxIds?: string[];\n  assigneeIds?: string[];\n  performanceActiveSection?: TeamPerformanceState | TeamPerformanceStatisticTypeEnum;\n  performanceInterval?: TeamPerformanceIntervalEnum;\n};\n\nexport default class TeamPerformanceStateStoreInternalBusinessService extends Service {\n  @service('liana-session') private lianaSession: LianaSessionService;\n  @service('local-storage') private localStorageService: LocalStorageService;\n  @service('feature/team-performance/state') private state: TeamPerformanceFeatureState;\n  @service('feature/team-performance/internal-business/stats-processor')\n  private statsProcessor: TeamPerformanceStatsProcessorInternalBusinessService;\n\n  @service('shared/query-parameters-store')\n  private queryParamsStoreService: QueryParametersStoreSharedBusinessService;\n\n  @service('event-bus') private eventBus: EventBusService;\n\n  private getKey() {\n    const projectName = this.lianaSession.currentProject?.name;\n    const renderingId = this.lianaSession.currentRenderingId;\n    return `last_team_performance_filter_${projectName}_${renderingId}`;\n  }\n\n  private getInitialInterval(performanceInterval?: TeamPerformanceIntervalEnum) {\n    const performanceIntervalOptions = this.statsProcessor.getPerformanceIntervalOptions(\n      this.state.dateRangeInterval,\n    );\n    if (performanceIntervalOptions.some((option) => option.value === performanceInterval)) {\n      return performanceInterval;\n    }\n    return performanceIntervalOptions[0].value;\n  }\n\n  public getStoredValues() {\n    const storedValues = this.localStorageService.getItem(this.getKey());\n    return storedValues\n      ? (JSON.parse(storedValues) as TeamPerformanceStoredValues & {\n          'leaderboardSort[by]': LeaderboardSortByEnum;\n          'leaderboardSort[order]': SortingOrderEnum;\n        })\n      : {};\n  }\n\n  public async initializeState() {\n    const storedValues = (this.getQueryParameters() as Partial<TeamPerformanceStoredValues>) || {};\n\n    await this.updateState({\n      ...storedValues,\n      leaderboardPage: storedValues.leaderboardPage ? Number(storedValues.leaderboardPage) : 1,\n      ...(storedValues.leaderboardSortBy && storedValues.leaderboardSortOrder\n        ? {\n            leaderboardSort: {\n              by: storedValues.leaderboardSortBy,\n              order: storedValues.leaderboardSortOrder,\n            },\n          }\n        : {}),\n      timePeriod: this.buildFilterFromTimePeriod(storedValues),\n    });\n  }\n\n  private async updateState({\n    timePeriod,\n    leaderboardSort,\n    leaderboardPage,\n    teamIds,\n    inboxIds,\n    assigneeIds,\n    performanceActiveSection,\n    performanceInterval,\n  }: ToSave) {\n    if (timePeriod !== undefined) {\n      this.state.timePeriod = timePeriod || {\n        from: moment(new Date()).subtract(7, 'days').format('YYYY-MM-DD'),\n        to: moment(new Date()).format('YYYY-MM-DD'),\n      };\n    }\n\n    if (leaderboardSort !== undefined) {\n      this.state.leaderboardSort = leaderboardSort;\n    }\n\n    if (teamIds !== undefined) {\n      this.state.teamIds = teamIds;\n    }\n\n    if (leaderboardPage !== undefined) {\n      this.state.leaderboardPage = leaderboardPage;\n    }\n\n    if (inboxIds !== undefined) {\n      this.state.inboxIds = inboxIds;\n    }\n\n    if (assigneeIds !== undefined) {\n      this.state.assigneeIds = assigneeIds;\n    }\n\n    if (performanceActiveSection !== undefined) {\n      this.state.performanceActiveSection = performanceActiveSection;\n    }\n\n    if (timePeriod) {\n      const currentPerformanceInterval = performanceInterval || this.state.performanceInterval;\n      await waitForNextRunLoop();\n      this.state.performanceInterval = this.getInitialInterval(currentPerformanceInterval);\n    } else if (performanceInterval !== undefined) {\n      this.state.performanceInterval = performanceInterval;\n    }\n  }\n\n  public async save(parameters: ToSave) {\n    await this.updateState(parameters);\n\n    const toSave: Record<string, unknown> = {\n      ...this.state.fullState,\n      ...this.buildTimeRangeQueryParamsFromState(this.state.timePeriod),\n    };\n\n    this.queryParamsStoreService.save(toSave);\n    this.localStorageService.setItem(\n      this.getKey(),\n      JSON.stringify({ ...this.getStoredValues(), ...toSave }),\n    );\n\n    this.eventBus.trigger(EventBusEventsEnum.TeamPerformanceStateUpdated);\n  }\n\n  private buildTimeRangeQueryParamsFromState(timePeriod: RangeDate) {\n    if (!timePeriod) return {};\n\n    const { from, to } = timePeriod;\n    // we need to overwrite some of these keys in order to remove them from the query params\n    const timeRange = { from: undefined, to: undefined, days: undefined, timePeriod: undefined };\n\n    if (isThisMonth(from, to)) {\n      timeRange.timePeriod = DateConfigurationEnum.ThisMonth;\n    } else if (isToday(to)) {\n      if (this.state.dateRangeInterval === 0) {\n        timeRange.timePeriod = DateConfigurationEnum.Today;\n      } else {\n        // add 1 day because date range interval does the difference and not duration\n        timeRange.timePeriod = DateConfigurationEnum.LastNDays;\n        timeRange.days = this.state.dateRangeInterval + 1;\n      }\n    }\n    if (isYesterday(to) && this.state.dateRangeInterval === 0)\n      timeRange.timePeriod = DateConfigurationEnum.Yesterday;\n    if (isLastMonth(from, to)) timeRange.timePeriod = DateConfigurationEnum.LastMonth;\n    // if dates does not correspond to any of the predefined time periods,\n    // we use the from and to raw dates\n    if (!timeRange.timePeriod) {\n      timeRange.from = from;\n      timeRange.to = to;\n    }\n    return timeRange;\n  }\n\n  private buildFilterFromTimePeriod({\n    timePeriod,\n    days,\n    from,\n    to,\n  }: {\n    timePeriod?: DateConfigurationEnum;\n    days?: number;\n    from?: string;\n    to?: string;\n  }): RangeDate {\n    const period = { from: undefined, to: undefined };\n    if (days >= 0 && timePeriod === DateConfigurationEnum.LastNDays) {\n      // subtract 1 day to include the current day\n      period.from = moment()\n        .subtract(days - 1, 'days')\n        .format('YYYY-MM-DD');\n      period.to = moment().format('YYYY-MM-DD');\n    }\n    if (timePeriod === DateConfigurationEnum.Today) {\n      period.from = moment().format('YYYY-MM-DD');\n      period.to = moment().format('YYYY-MM-DD');\n    }\n    if (timePeriod === DateConfigurationEnum.Yesterday) {\n      period.from = moment().subtract(1, 'days').format('YYYY-MM-DD');\n      period.to = moment().subtract(1, 'days').format('YYYY-MM-DD');\n    }\n    if (timePeriod === DateConfigurationEnum.ThisMonth) {\n      period.from = moment().startOf('month').format('YYYY-MM-DD');\n      period.to = moment().endOf('month').format('YYYY-MM-DD');\n    }\n    if (timePeriod === DateConfigurationEnum.LastMonth) {\n      period.from = moment().subtract(1, 'month').startOf('month').format('YYYY-MM-DD');\n      period.to = moment().subtract(1, 'month').endOf('month').format('YYYY-MM-DD');\n    }\n    // no predefined time period, we use the from and to raw dates\n    if (!period.to || !period.from) {\n      period.from = from\n        ? moment(from).format('YYYY-MM-DD')\n        : moment(new Date()).subtract(7, 'days').format('YYYY-MM-DD');\n      period.to = to ? moment(to).format('YYYY-MM-DD') : moment(new Date()).format('YYYY-MM-DD');\n    }\n    return period;\n  }\n\n  private getQueryParameters() {\n    const queryParams = this.queryParamsStoreService.getCurrent();\n    if (\n      Object.keys(queryParams).some((parameter) =>\n        TEAM_PERFORMANCE_QUERY_PARAMETERS.includes(parameter),\n      )\n    ) {\n      const {\n        teamIds,\n        inboxIds,\n        assigneeIds,\n        'leaderboardSort[by]': leaderboardSortBy,\n        'leaderboardSort[order]': leaderboardSortOrder,\n        leaderboardPage,\n        ...rest\n      } = queryParams;\n\n      return {\n        teamIds: teamIds ? teamIds.split(',') : [],\n        inboxIds: inboxIds ? inboxIds.split(',') : [],\n        assigneeIds: assigneeIds ? assigneeIds.split(',') : [],\n        leaderboardSortBy,\n        leaderboardSortOrder,\n        leaderboardPage: leaderboardPage ? Number(leaderboardPage) : undefined,\n        ...rest,\n      };\n    }\n\n    return {};\n  }\n}\n","import Service from '@ember/service';\n\nimport { TeamPerformanceIntervalEnum } from 'client/features/team-performance/services/feature';\n\nexport default class TeamPerformanceStatsProcessorInternalBusinessService extends Service {\n  public getPercentageVariation(currentCount: number, previousCount: number) {\n    if (previousCount === 0) {\n      return Math.floor(currentCount * 100);\n    }\n\n    return Math.floor(((currentCount - previousCount) / previousCount) * 100);\n  }\n\n  public getPerformanceIntervalOptions(dateInterval: number) {\n    const options: {\n      value: TeamPerformanceIntervalEnum;\n      name: Capitalize<TeamPerformanceIntervalEnum>;\n    }[] = [];\n\n    let shouldAddLowerValue = false;\n    if (dateInterval > 365) {\n      shouldAddLowerValue = true;\n      options.push({\n        value: TeamPerformanceIntervalEnum.Yearly,\n        name: 'Yearly',\n      });\n    }\n    if ((dateInterval > 92 && dateInterval <= 365) || shouldAddLowerValue) {\n      shouldAddLowerValue = true;\n      options.push({\n        value: TeamPerformanceIntervalEnum.Quarterly,\n        name: 'Quarterly',\n      });\n    }\n    if ((dateInterval > 31 && dateInterval <= 92) || shouldAddLowerValue) {\n      shouldAddLowerValue = true;\n      options.push({\n        value: TeamPerformanceIntervalEnum.Monthly,\n        name: 'Monthly',\n      });\n    }\n    if ((dateInterval > 7 && dateInterval <= 31) || shouldAddLowerValue) {\n      options.push({\n        value: TeamPerformanceIntervalEnum.Weekly,\n        name: 'Weekly',\n      });\n    }\n    if (dateInterval <= 183) {\n      options.push({\n        value: TeamPerformanceIntervalEnum.Daily,\n        name: 'Daily',\n      });\n    }\n\n    return options.reverse();\n  }\n}\n","import type { RangeDate } from 'client/shared/components/form/date-range-picker/component';\n\nimport Service from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport moment from 'moment-timezone';\n\nimport { SortingOrderEnum } from 'client/data/models/collection';\nimport { InboxAssignmentStateEnum } from 'client/data/models/inbox-assignment';\nimport {\n  LeaderboardSortByEnum,\n  TeamPerformanceIntervalEnum,\n  type TeamPerformanceState,\n  TeamPerformanceStatisticTypeEnum,\n  type TeamPerformanceWithSorting,\n  defaultTimePeriod,\n} from 'client/features/team-performance/services/feature';\n\nconst DEFAULT_SORT = Object.freeze({\n  by: LeaderboardSortByEnum.Done,\n  order: SortingOrderEnum.Descending,\n});\n\nexport default class TeamPerformanceFeatureState extends Service {\n  @tracked public timePeriod: RangeDate = defaultTimePeriod;\n\n  @tracked public teamIds: string[] = [];\n  @tracked public assigneeIds: string[] = [];\n  @tracked public inboxIds: string[] = [];\n\n  @tracked public leaderboardSort: TeamPerformanceWithSorting['sort'] = DEFAULT_SORT;\n  @tracked public leaderboardPage = 1;\n\n  @tracked public performanceActiveSection:\n    | TeamPerformanceState\n    | TeamPerformanceStatisticTypeEnum = InboxAssignmentStateEnum.Done;\n\n  @tracked public performanceInterval: TeamPerformanceIntervalEnum =\n    TeamPerformanceIntervalEnum.Daily;\n\n  @tracked public isOverviewDoingDataLoading = false;\n  @tracked public isOverviewDoneDataLoading = false;\n  @tracked public isPerformanceDataLoading = false;\n  @tracked public isLeaderBoardDataLoading = false;\n\n  public get filters(): {\n    timePeriod: Required<RangeDate<string>>;\n    assigneeIds?: string[];\n    teamIds?: string[];\n    inboxIds?: string[];\n  } {\n    return Object.freeze({\n      timePeriod: {\n        from: moment(this.timePeriod.from).format('YYYY-MM-DD'),\n        to: moment(this.timePeriod.to).format('YYYY-MM-DD'),\n      },\n      ...(this.assigneeIds && { assigneeIds: this.assigneeIds }),\n      ...(this.teamIds && { teamIds: this.teamIds }),\n      ...(this.inboxIds && { inboxIds: this.inboxIds }),\n    });\n  }\n\n  public get performanceStatisticType(): TeamPerformanceStatisticTypeEnum {\n    if (\n      this.performanceActiveSection === InboxAssignmentStateEnum.Done\n      || this.performanceActiveSection === InboxAssignmentStateEnum.Doing\n      || this.performanceActiveSection === InboxAssignmentStateEnum.Canceled\n    ) {\n      return TeamPerformanceStatisticTypeEnum.AssignmentCount;\n    }\n    return this.performanceActiveSection as TeamPerformanceStatisticTypeEnum;\n  }\n\n  public get performanceStateFilter(): TeamPerformanceState {\n    if (\n      this.performanceActiveSection === TeamPerformanceStatisticTypeEnum.FirstQuartile\n      || this.performanceActiveSection === TeamPerformanceStatisticTypeEnum.Median\n      || this.performanceActiveSection === TeamPerformanceStatisticTypeEnum.ThirdQuartile\n      || this.performanceActiveSection === TeamPerformanceStatisticTypeEnum.Average\n    ) {\n      return InboxAssignmentStateEnum.Done;\n    }\n    return this.performanceActiveSection as TeamPerformanceState;\n  }\n\n  public get dateRangeInterval() {\n    const from = moment(this.timePeriod.from);\n    const to = moment(this.timePeriod.to);\n\n    return to.diff(from, 'days');\n  }\n\n  public get fullState() {\n    return {\n      teamIds: this.teamIds,\n      assigneeIds: this.assigneeIds,\n      inboxIds: this.inboxIds,\n      'leaderboardSort[by]': this.leaderboardSort?.by,\n      'leaderboardSort[order]': this.leaderboardSort?.order,\n      leaderboardPage: this.leaderboardPage,\n      performanceActiveSection: this.performanceActiveSection,\n      performanceInterval: this.performanceInterval,\n    };\n  }\n}\n","import type { TeamDeactivatableFeatureEnum } from 'client/data/models/team';\nimport type UserModel from 'client/data/models/user';\nimport type TeamFeatureService from 'client/features/team/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport TeamModel from 'client/data/models/team';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface TeamDetailsArgs {\n  team: TeamModel;\n  teamsList: TeamModel[];\n}\n\n@validateArguments\nexport default class TeamDetailsComponent extends Component<TeamDetailsArgs> {\n  static propTypes = {\n    team: PropTypes.instanceOf(TeamModel).isRequired,\n    teamsList: PropTypes.arrayOf(PropTypes.instanceOf(TeamModel)).isRequired,\n  };\n\n  @service('current-user') private currentUser: UserModel;\n  @service('feature/team') private teamFeatureService: TeamFeatureService;\n\n  @action\n  public handleSave(callback: (promise: Promise<unknown>) => void) {\n    return this.teamFeatureService.updateTeam(this.args.team, callback);\n  }\n\n  @action\n  public handleDelete() {\n    return this.teamFeatureService.deleteTeam(this.args.team);\n  }\n\n  @action\n  public handleMemberClick(member: UserModel) {\n    return this.teamFeatureService.onMemberClick(member);\n  }\n\n  @action\n  public handleBreadcrumbClose() {\n    return this.teamFeatureService.onBreadcrumbClose();\n  }\n\n  @action\n  public handleCopyLayout(\n    layoutCopyTarget: TeamModel,\n    callback: (promise: Promise<unknown>) => void,\n  ) {\n    return this.teamFeatureService.copyLayout(\n      this.args.team.id,\n      layoutCopyTarget.id,\n      layoutCopyTarget.name,\n      this.currentUser.email,\n      callback,\n    );\n  }\n\n  public get hasBeenEdited() {\n    return this.args.team.hasDirtyAttributes || this.args.team.hasDirtyRelationships;\n  }\n\n  public get shouldDisplayTeamsList() {\n    return this.teamFeatureService.shouldDisplayTeamsList(this.args.teamsList, this.args.team.id);\n  }\n\n  public get teamsListWithoutCurrent() {\n    return this.teamFeatureService.getTeamsListWithoutCurrent(\n      this.args.teamsList,\n      this.args.team.id,\n    );\n  }\n\n  public get isUniqueTeam() {\n    return this.teamFeatureService.isUniqueTeam(this.args.teamsList);\n  }\n\n  @action\n  public handleToggleFeature(feature: TeamDeactivatableFeatureEnum) {\n    if (!this.args.team.featuresDeactivated) {\n      this.args.team.featuresDeactivated = [];\n    }\n    if (this.args.team.featuresDeactivated?.includes(feature)) {\n      this.args.team.featuresDeactivated.removeObject(feature);\n    } else {\n      this.args.team.featuresDeactivated.pushObject(feature);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout\\n  class=\\\"c-feature-team-details\\\"\\n  data-test-feature-team-details\\n  @onClose={{this.handleBreadcrumbClose}}\\n  ...attributes\\n>\\n  <Shared::BetaSettingsLayout::Section @title=\\\"Basic settings\\\">\\n    <Button::BetaSaveDiscardButtons\\n      @isDiscardVisible={{this.hasBeenEdited}}\\n      @isSaveDisabled={{not this.hasBeenEdited}}\\n      @entity={{@team}}\\n      @save={{this.handleSave}}\\n    />\\n    {{#if this.team.project.hasScimToken}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"warning\\\"\\n        @canHide={{false}}\\n        @class=\\\"c-environment-settings-details__notification\\\"\\n      >\\n        As you have a third-party provisioning service enabled on this project, changing the team\\n        name here will not be synchronized with your provider. Any change made directly on the\\n        third-party provisioning service will override this setting.\\n      </Shared::Feedback::Notification::NotificationInApp>\\n    {{/if}}\\n\\n    <Shared::BetaLabel\\n      @label=\\\"Team name\\\"\\n      class=\\\"c-teams-settings__input\\\"\\n      data-test-input-for=\\\"name\\\"\\n    >\\n      <Shared::BetaInput @value={{@team.name}} />\\n    </Shared::BetaLabel>\\n  </Shared::BetaSettingsLayout::Section>\\n  <Shared::BetaSettingsLayout::Section @title=\\\"Team members\\\">\\n    <Shared::DataDisplay::ItemsPaginatedTable\\n      @itemType=\\\"user\\\"\\n      @teamToRestrictUsersSearch={{@team}}\\n      @onItemClick={{this.handleMemberClick}}\\n      as |member|\\n    >\\n      <div class=\\\"c-items-paginated-table__cell-name\\\">\\n        <Picture::PictureAvatar\\n          @size={{24}}\\n          @email={{member.email}}\\n          @initials={{member.initials}}\\n          @title={{member.fullName}}\\n          @class=\\\"c-items-paginated-table__avatar\\\"\\n        />\\n        <span class=\\\"c-items-paginated-table__name c-items-paginated-table__text\\\">\\n          {{member.fullName}}\\n        </span>\\n      </div>\\n      <div class=\\\"c-items-paginated-table__cell-email\\\">\\n        <span class=\\\"c-items-paginated-table__text\\\">\\n          {{member.email}}\\n        </span>\\n      </div>\\n      <div class=\\\"c-items-paginated-table__cell-role\\\">\\n        <span id={{concat \\'member-role-\\' member.id}} class=\\\"c-items-paginated-table__text\\\">\\n          {{member.role.name}}\\n        </span>\\n        <Shared::Feedback::BetaTooltip @targetId={{concat \\'member-role-\\' member.id}} @side=\\\"bottom\\\">\\n          Role\\n        </Shared::Feedback::BetaTooltip>\\n      </div>\\n      <div class=\\\"c-items-paginated-table__cell-permission-level\\\">\\n        <span\\n          id={{concat \\'member-permission-level-\\' member.id}}\\n          class=\\\"c-items-paginated-table__text\\\"\\n        >\\n          {{capitalize-text member.permissionLevel}}\\n        </span>\\n        <Shared::Feedback::BetaTooltip\\n          @targetId={{concat \\'member-permission-level-\\' member.id}}\\n          @side=\\\"bottom\\\"\\n        >\\n          Permission level\\n        </Shared::Feedback::BetaTooltip>\\n      </div>\\n    </Shared::DataDisplay::ItemsPaginatedTable>\\n  </Shared::BetaSettingsLayout::Section>\\n\\n  {{#if this.shouldDisplayTeamsList}}\\n    <Shared::BetaSettingsLayout::Section @title=\\\"Advanced actions\\\">\\n      <div class=\\\"c-teams-settings__layout-copier\\\">\\n        <Shared::BetaLabel @label=\\\"Copy layout configuration to…\\\" class=\\\"c-teams-settings__input\\\">\\n          <div class=\\\"l-deployment\\\">\\n            <Shared::BetaSelect\\n              @value={{this.layoutCopyTarget}}\\n              @options={{this.teamsListWithoutCurrent}}\\n              @namePath=\\\"name\\\"\\n              @defaultOption=\\\"Select a team\\\"\\n              @class=\\\"l-deployment__select\\\"\\n              data-test-team-settings-target-team\\n            />\\n          </div>\\n        </Shared::BetaLabel>\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @text=\\\"Copy\\\"\\n          @action={{fn this.handleCopyLayout this.layoutCopyTarget}}\\n          @disabled={{not this.layoutCopyTarget}}\\n          class=\\\"l-deployment__button\\\"\\n        />\\n\\n      </div>\\n    </Shared::BetaSettingsLayout::Section>\\n  {{/if}}\\n\\n  {{#if (can \\'access to teamFeaturesDeactivation\\')}}\\n    <Feature::Team::FeaturesManagement\\n      @team={{@team}}\\n      @onToggleFeature={{this.handleToggleFeature}}\\n    />\\n  {{/if}}\\n\\n  <Shared::BetaSettingsLayout::Section\\n    @isDangerZone={{true}}\\n    @description=\\\"Removing this team will remove it permanently from the project.\\\"\\n  >\\n    {{#if this.isUniqueTeam}}\\n      <div id=\\\"delete-team-button\\\">\\n        <Shared::Button::BetaButton\\n          @type=\\\"danger-outline\\\"\\n          @text=\\\"Remove team\\\"\\n          @class=\\\"c-confirmation-button\\\"\\n          @disabled={{true}}\\n        />\\n      </div>\\n      <Shared::Feedback::BetaTooltip @targetId=\\\"delete-team-button\\\" @side=\\\"left\\\">\\n        You can\\'t delete the last team of the project.\\n      </Shared::Feedback::BetaTooltip>\\n    {{else}}\\n      <Feature::CriticalActionConfirmation::Button\\n        @buttonText=\\\"Remove team\\\"\\n        @entityName={{@team.name}}\\n        @warningMessage=\\\"You are about to remove the &quot;{{@team.name}}&quot; team from this project.\\\"\\n        @cancelText=\\\"Cancel\\\"\\n        @onConfirm={{this.handleDelete}}\\n        data-test-delete-button\\n      />\\n    {{/if}}\\n  </Shared::BetaSettingsLayout::Section>\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/features/team/components/details/template.hbs' });\n","import type TeamFeatureService from 'client/features/team/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport TeamModel, { TeamDeactivatableFeatureEnum } from 'client/data/models/team';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FeaturesManagementArgs {\n  team: TeamModel;\n  onToggleFeature: (feature: TeamDeactivatableFeatureEnum) => void;\n}\n\nconst features = [\n  {\n    displayName: 'Inbox',\n    featureName: TeamDeactivatableFeatureEnum.Inbox,\n  },\n  {\n    displayName: 'Notes',\n    featureName: TeamDeactivatableFeatureEnum.Collaboration,\n  },\n  {\n    displayName: 'Activity logs',\n    featureName: TeamDeactivatableFeatureEnum.ActivityLogs,\n  },\n  {\n    displayName: 'Team Performance',\n    featureName: TeamDeactivatableFeatureEnum.TeamPerformance,\n  },\n];\n\n@validateArguments\nexport default class TeamFeaturesManagementComponent extends Component<FeaturesManagementArgs> {\n  @service('feature/team')\n  private teamFeature: TeamFeatureService;\n\n  static propTypes = {\n    team: PropTypes.instanceOf(TeamModel).isRequired,\n    onToggleFeature: PropTypes.func.isRequired,\n  };\n\n  get deactivatableFeatures() {\n    return features\n      .filter(({ featureName }) => this.canDisplayFeature(featureName))\n      .sortBy('displayName');\n  }\n\n  private canDisplayFeature(feature: TeamDeactivatableFeatureEnum) {\n    if (feature === TeamDeactivatableFeatureEnum.TeamPerformance) {\n      return this.canDisplayTeamPerformance;\n    }\n    return true;\n  }\n\n  get canDisplayTeamPerformance() {\n    return (\n      !this.args.team.featuresDeactivated?.includes(TeamDeactivatableFeatureEnum.Inbox)\n      && this.teamFeature.canAccessTeamPerformance()\n    );\n  }\n\n  @action\n  public isFeatureActiveOnTeam(feature: TeamDeactivatableFeatureEnum) {\n    return !this.args.team.featuresDeactivated?.includes(feature);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::ContentSeparator @withSideMargin={{true}} class=\\\"c-beta-setting-layout-separator\\\" />\\n<Shared::BetaSettingsLayout::Section\\n  @title=\\\"Manage features\\\"\\n  class=\\\"c-feature-team-features-management\\\"\\n  data-test-feature-team-features-management\\n  ...attributes\\n>\\n  <div class=\\\"c-feature-team-features-management__list\\\">\\n    {{#each this.deactivatableFeatures as |feature|}}\\n      <Shared::BetaLabel\\n        @label={{feature.displayName}}\\n        @for={{feature.featureName}}\\n        @position=\\\"right\\\"\\n        @textClass={{get-classes-with-modifiers\\n          \\'c-feature-team-features-management__feature\\'\\n          disabled=(not (this.isFeatureActiveOnTeam feature.featureName))\\n        }}\\n        data-test-feature-team-features-management-label={{feature.featureName}}\\n      >\\n        <Shared::Form::Toggle\\n          @size=\\\"sm\\\"\\n          @value={{this.isFeatureActiveOnTeam feature.featureName}}\\n          @onChange={{fn @onToggleFeature feature.featureName}}\\n          @inputId={{feature.featureName}}\\n          data-test-feature-team-features-management-feature-switch-for={{feature.featureName}}\\n        />\\n      </Shared::BetaLabel>\\n    {{/each}}\\n  </div>\\n</Shared::BetaSettingsLayout::Section>\\n', { moduleName: 'client/features/team/components/features-management/template.hbs' });\n","export default class TeamManagerError extends Error {\n  name: string;\n  cause?: unknown;\n\n  constructor(message: string, cause?: unknown) {\n    super(message);\n\n    this.name = 'TeamManagerError';\n    this.cause = cause;\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type TeamModel from 'client/data/models/team';\nimport type UserModel from 'client/data/models/user';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type TeamManagerError from 'client/features/team/errors';\nimport type TeamManagerInternalBusinessService from 'client/features/team/services/internal-business/team-manager';\nimport type TeamPerformanceFeatureService from 'client/features/team-performance/services/feature';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type { AbilitiesService } from 'ember-can';\n\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport { TeamDeactivatableFeatureEnum } from 'client/data/models/team';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nexport type TeamsList = { id: number | string; name: string }[];\n\nexport default class TeamFeatureService extends Service {\n  @service private abilities: AbilitiesService;\n  @service private lianaSession: LianaSessionService;\n  @service('feature/notification')\n  private notificationBusinessService: NotificationFeatureService;\n\n  @service private router: RouterService;\n  @service('feature/team/internal-business/team-manager')\n  private teamManager: TeamManagerInternalBusinessService;\n\n  @service('feature/team-performance')\n  private teamPerformanceService: TeamPerformanceFeatureService;\n\n  public async onBreadcrumbClose() {\n    await this.router.transitionTo('project.project-settings.teams');\n  }\n\n  public async onMemberClick(member: UserModel) {\n    await this.router.transitionTo('project.project-settings.users.details', member.id);\n  }\n\n  public async copyLayout(\n    teamId: string,\n    targetId: string,\n    targetName: string,\n    requesterEmail: string,\n    callback: (promise: Promise<unknown>) => void,\n  ) {\n    const sure = window.confirm(\n      `Copying the layout configuration will override the whole previous one of your ${targetName} team.`,\n    );\n    if (sure) {\n      return this.teamManager.copyLayout(teamId, targetId, requesterEmail, callback);\n    }\n\n    return callback(Promise.resolve());\n  }\n\n  public async updateTeam(team: TeamModel, callback: (promise: Promise<unknown>) => void) {\n    try {\n      await this.teamManager.update(team);\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Success,\n        'Team successfully updated.',\n      );\n      callback(Promise.resolve());\n    } catch (error) {\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Error,\n        (error as TeamManagerError).message,\n      );\n      callback(Promise.reject(error));\n    }\n  }\n\n  public async deleteTeam(team: TeamModel) {\n    try {\n      await this.teamManager.delete(team);\n\n      this.notificationBusinessService.createToastr(ToastrTypeEnum.Success, 'Team deleted.');\n      await this.router.transitionTo('project.project-settings.teams');\n    } catch (error) {\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Error,\n        (error as TeamManagerError).message,\n      );\n    }\n  }\n\n  public isUniqueTeam(teamsList: TeamsList) {\n    return teamsList.length === 1;\n  }\n\n  public hasBeenEdited(team: TeamModel) {\n    return team.hasDirtyAttributes || team.hasDirtyRelationships;\n  }\n\n  public getBreadcrumb(team: TeamModel) {\n    return [\n      {\n        displayName: 'Teams',\n        link: 'project.project-settings.teams',\n        isClickable: true,\n      },\n      {\n        displayName: team?.name,\n      },\n    ];\n  }\n\n  public getTeamsListWithoutCurrent(teamsList: TeamsList, currentTeamId: string) {\n    return teamsList.filter((team) => team.id !== currentTeamId);\n  }\n\n  public shouldDisplayTeamsList = (teamsList: TeamsList, currentTeamId: string) => {\n    return this.getTeamsListWithoutCurrent(teamsList, currentTeamId).length > 0;\n  };\n\n  public ensureCollaborationFeaturesAccess(teamFeatureName: TeamDeactivatableFeatureEnum): boolean {\n    const { currentTeam } = this.lianaSession;\n    if (currentTeam?.featuresDeactivated?.includes(teamFeatureName)) {\n      console.debug(`The ${teamFeatureName} feature is not accessible for the current team.`);\n\n      void this.router.transitionTo('project.rendering.collaboration');\n\n      return true;\n    }\n    return false;\n  }\n\n  public redirectToAccessibleCollaborationFeature(teamFeatureName: TeamDeactivatableFeatureEnum) {\n    const featuresInCollaborationTab = [\n      {\n        feature: TeamDeactivatableFeatureEnum.Collaboration,\n        redirectTo: 'project.rendering.collaboration.messages.created',\n      },\n      {\n        feature: TeamDeactivatableFeatureEnum.Inbox,\n        redirectTo: 'project.rendering.inbox',\n      },\n      {\n        feature: null,\n        redirectTo: 'project.rendering.collaboration',\n      },\n    ];\n\n    const { currentTeam } = this.lianaSession;\n    if (\n      !currentTeam.featuresDeactivated?.includes(TeamDeactivatableFeatureEnum.Collaboration)\n      && !currentTeam.featuresDeactivated?.includes(TeamDeactivatableFeatureEnum.Inbox)\n    ) {\n      return;\n    }\n\n    const featureToRedirectTo = featuresInCollaborationTab.find(\n      (feature) =>\n        feature.feature !== teamFeatureName\n        && !currentTeam.featuresDeactivated?.includes(feature.feature),\n    );\n    if (featureToRedirectTo) {\n      void this.router.transitionTo(featureToRedirectTo.redirectTo);\n    }\n  }\n\n  public canAccessTeamPerformance() {\n    return this.teamPerformanceService.isFeatureEnabled();\n  }\n\n  public getTeamsList() {\n    return this.teamManager.list();\n  }\n}\n","import type TeamModel from 'client/data/models/team';\nimport type CopyLayoutRequesterService from 'client/legacy/services/copy-layout-requester';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport Service, { service } from '@ember/service';\n\nimport TeamManagerError from 'client/features/team/errors';\nimport { isEmberError } from 'client/utils/ember-error-util';\n\nexport default class TeamTeamManagerInternalBusinessService extends Service {\n  @service private copyLayoutRequester: CopyLayoutRequesterService;\n  @service private currentUser: CurrentUserService;\n\n  private getErrorMessage(error: unknown, message = 'unexpected error.'): string {\n    if (isEmberError(error)) {\n      return error?.errors?.[0]?.detail || message;\n    }\n\n    return message;\n  }\n\n  public async copyLayout(\n    from: string,\n    to: string,\n    requesterEmail: string,\n    callback: (promise?: Promise<unknown>) => void,\n  ) {\n    return this.copyLayoutRequester.request('team', from, to, requesterEmail, callback);\n  }\n\n  public async update(team: TeamModel) {\n    try {\n      return await team.save();\n    } catch (error: unknown) {\n      const message = this.getErrorMessage(error);\n\n      throw new TeamManagerError(`${team.name} update failed: ${message}`, error);\n    }\n  }\n\n  public async delete(team: TeamModel) {\n    try {\n      return await team.destroyRecord();\n    } catch (error) {\n      const message = this.getErrorMessage(error);\n\n      throw new TeamManagerError(`Team deletion failed: ${message}`, error);\n    }\n  }\n\n  public async list() {\n    return this.currentUser.model?.teams;\n  }\n}\n","import Component from '@glimmer/component';\n\ninterface UserProfileArgs {\n  user: {\n    email?: string;\n    fullName?: string;\n    initials?: string;\n  };\n  isUserNotFoundInDB?: boolean;\n  onLoadData?: () => void;\n  shouldDisplayText?: boolean;\n}\n\nexport default class UserProfileComponent extends Component<UserProfileArgs> {\n  get textToDisplay() {\n    return this.args.user.fullName || this.args.user.email;\n  }\n}\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\n\ninterface UserProfilePictureArgs {\n  user: {\n    email?: string;\n    initials?: string;\n    fullName?: string;\n  };\n  isUserNotFoundInDB?: boolean;\n  onLoadData?: () => Promise<void>;\n}\n\n@validateArguments\nexport default class UserProfilePictureComponent extends Component<UserProfilePictureArgs> {\n  @tracked loading = false;\n\n  @action\n  async loadData() {\n    if (this.args.onLoadData) {\n      this.loading = true;\n      await this.args.onLoadData();\n      this.loading = false;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-user-profile-picture-empty\\\"\\n  data-test-feature-user-profile-picture-empty\\n  ...attributes\\n>\\n</div>\\n', { moduleName: 'client/features/user/components/profile/picture/empty/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-user-profile-picture-loader\\\"\\n  data-test-feature-user-profile-picture-loader\\n  ...attributes\\n>\\n</div>\\n', { moduleName: 'client/features/user/components/profile/picture/loader/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-user-profile-picture-not-found\\\"\\n  data-test-feature-user-profile-picture-not-found\\n  ...attributes\\n>\\n</div>\\n', { moduleName: 'client/features/user/components/profile/picture/not-found/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-user-profile-picture\\\"\\n  data-test-feature-user-profile-picture\\n  {{did-insert this.loadData}}\\n  ...attributes\\n>\\n  {{#if (and @onLoadData this.loading)}}\\n    <Feature::User::Profile::Picture::Loader />\\n  {{else}}\\n    {{#if (and (or @user.email @user.initials) @isUserNotFoundInDB)}}\\n      <Feature::User::Profile::Picture::NotFound />\\n    {{else if (or @user.email @user.initials)}}\\n      <div data-test-feature-user-profile-picture-avatar>\\n        <Picture::PictureAvatar\\n          @class=\\\"c-navigation-avatar\\\"\\n          @email={{@user.email}}\\n          @initials={{@user.initials}}\\n        />\\n      </div>\\n    {{else}}\\n      <Feature::User::Profile::Picture::Empty />\\n    {{/if}}\\n  {{/if}}\\n</div>\\n\\n', { moduleName: 'client/features/user/components/profile/picture/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-user-profile\\\" ...attributes>\\n  <Feature::User::Profile::Picture\\n    @user={{@user}}\\n    @onLoadData={{@onLoadData}}\\n    @isUserNotFoundInDB={{@isUserNotFoundInDB}}\\n  />\\n  {{#if (and @shouldDisplayNameOrEmail this.textToDisplay)}}\\n    <div class=\\\"c-feature-user-profile__name\\\" data-test-feature-user-profile-name>\\n      {{this.textToDisplay}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/user/components/profile/template.hbs' });\n","import type UserModel from 'client/data/models/user';\nimport type UserFeatureService from 'client/features/user/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ninterface SearchInlineArgs {\n  inputId: string;\n  onHide: () => void;\n  onSelectUser: (user: UserModel) => void;\n}\n\nexport default class UserSearchInlineComponent extends Component<SearchInlineArgs> {\n  @service('feature/user') private userFeatureService: UserFeatureService;\n  @tracked users: UserModel[] = [];\n  @tracked isLoading = false;\n\n  constructor(owner: unknown, args: SearchInlineArgs) {\n    super(owner, args);\n\n    void this.handleLoadUsers();\n  }\n\n  get options() {\n    return this.users.map((user) => ({\n      value: user,\n      id: user.id,\n      email: user.email,\n      initials: user.initials,\n    }));\n  }\n\n  @action\n  async handleLoadUsers(value = '') {\n    this.isLoading = true;\n    this.users = await this.userFeatureService.searchUsers(value, 1, 10);\n    this.isLoading = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Form::BetaSelect::DropdownContent\\n  @emptyText=\\\"No users found.\\\"\\n  @searchPlaceholder=\\\"Search user...\\\"\\n  @currentValue={{this.user}}\\n  @mustHideCurrentValue={{false}}\\n  @hasSearchInput={{true}}\\n  @onSelectValue={{@onSelectUser}}\\n  @onSearchValueChange={{this.handleLoadUsers}}\\n  @hasMultipleValues={{false}}\\n  @options={{this.options}}\\n  @isLoading={{this.isLoading}}\\n  @onHideDropdown={{@onHide}}\\n  @inputId={{@inputId}}\\n  @dropdownWidth={{400}}\\n  @isRightAligned={{true}}\\n  @hasCustomItemRenderer={{true}}\\n  class=\\\"c-feature-user-search-inline\\\"\\n  data-test-feature-user-search-inline\\n  ...attributes\\n>\\n  <:item-renderer as |user|>\\n    <Feature::User::Profile\\n      @user={{hash email=user.email fullName=user.name initials=user.initials}}\\n      @shouldDisplayNameOrEmail={{true}}\\n      data-test-feature-user-search-inline-item-renderer={{user.id}}\\n    />\\n  </:item-renderer>\\n</Form::BetaSelect::DropdownContent>\\n', { moduleName: 'client/features/user/components/search-inline/template.hbs' });\n","import type UserFeatureService from 'client/features/user/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport UserModel from 'client/data/models/user';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nfunction isArrayOfSelectedUsers(\n  hasMultipleValues: boolean,\n  _selectedUsers: Array<UserModel | null> | UserModel,\n): _selectedUsers is Array<UserModel | null> {\n  return hasMultipleValues;\n}\n\ninterface SearchArgs {\n  onSelectUser: (user: UserModel[]) => void;\n  onSelectUnassigned: (unassigned: boolean) => void;\n  selectedUsers: Array<UserModel | null> | UserModel;\n  teamIds?: string[];\n  hasMultipleValues: boolean;\n  disabled?: boolean;\n}\n\n@validateArguments\nexport default class UserSearchComponent extends Component<SearchArgs> {\n  static propTypes = {\n    selectedUsers: PropTypes.oneOfType([\n      PropTypes.arrayOf(PropTypes.instanceOf(UserModel)),\n      PropTypes.instanceOf(UserModel),\n    ]),\n    onSelectUser: PropTypes.func.isRequired,\n    hasMultipleValues: PropTypes.bool,\n    disabled: PropTypes.bool,\n    teamIds: PropTypes.arrayOf(PropTypes.string),\n  };\n\n  @service private currentUser: CurrentUserService;\n  @service('feature/user') private userFeatureService: UserFeatureService;\n\n  @tracked users: UserModel[] = [];\n  @tracked isLoading = false;\n\n  constructor(owner: unknown, args: SearchArgs) {\n    super(owner, args);\n\n    void this.handleLoadUsers();\n  }\n\n  get options() {\n    let usersToAdd: UserModel[] = [];\n    if (isArrayOfSelectedUsers(this.args.hasMultipleValues, this.args.selectedUsers)) {\n      usersToAdd = this.args.selectedUsers?.filter((user) => !this.users.includes(user)) ?? [];\n    } else {\n      usersToAdd =\n        !this.args.selectedUsers || this.users.includes(this.args.selectedUsers)\n          ? []\n          : [this.args.selectedUsers];\n    }\n\n    return [null, ...this.users, ...usersToAdd].map((user) => ({\n      value: user,\n      name: user ? `${user?.name} <${user?.email}>` : null,\n      disabled:\n        (isArrayOfSelectedUsers(this.args.hasMultipleValues, this.args.selectedUsers)\n          && (this.args.selectedUsers?.length && user === null\n            ? this.args.selectedUsers?.some((element) => element instanceof UserModel)\n            : this.args.selectedUsers?.some((element) => element === null)))\n        || false,\n    }));\n  }\n\n  @action\n  async handleLoadUsers(value = '') {\n    this.isLoading = true;\n    this.users = await this.userFeatureService.searchUsers(value, 1, 10, this.args.teamIds);\n    this.isLoading = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSelectSearch\\n  @multipleValues={{@hasMultipleValues}}\\n  @options={{this.options}}\\n  @value={{one-way @selectedUsers}}\\n  @onChange={{@onSelectUser}}\\n  @placeholder=\\\"Search for users\\\"\\n  @onSearchValueChange={{this.handleLoadUsers}}\\n  @isLoadingOptions={{this.isLoading}}\\n  @customBlockList={{true}}\\n  @hasCustomItemRenderer={{true}}\\n  @disabledPath=\\\"disabled\\\"\\n  @valuePath=\\\"value\\\"\\n  @namePath=\\\"name\\\"\\n  @disabled={{@disabled}}\\n  class=\\\"c-feature-user-search\\\"\\n  {{did-update (fn this.handleLoadUsers \\'\\') @teamIds}}\\n  data-test-feature-user-search\\n  ...attributes\\n>\\n  <:selected-item-list as |selectedValues removeValue|>\\n    <div class=\\\"c-feature-user-search__selected-users-list\\\">\\n      {{#each selectedValues as |item index|}}\\n        <div class=\\\"c-feature-user-search__selected-users-list-row\\\">\\n          {{#if item.value}}\\n            <Feature::User::Profile\\n              @user={{hash\\n                email=item.value.email\\n                fullName=item.value.name\\n                initials=item.value.initials\\n              }}\\n              @shouldDisplayNameOrEmail={{true}}\\n              data-test-feature-user-search-selected-item-renderer={{item.value.id}}\\n            />\\n          {{else}}\\n            Unassigned\\n          {{/if}}\\n          <Shared::BetaIconButton\\n            @icon={{\\'close\\'}}\\n            @size=\\\"medium\\\"\\n            {{on \\'click\\' (stop-propagation (fn removeValue item.value index))}}\\n            data-test-feature-user-search-selected-item-remover={{item.value.id}}\\n          />\\n        </div>\\n      {{/each}}\\n    </div>\\n  </:selected-item-list>\\n  <:item-renderer as |user|>\\n    {{#if user}}\\n      <Feature::User::Profile\\n        @user={{hash email=user.email fullName=user.name initials=user.initials}}\\n        @shouldDisplayNameOrEmail={{true}}\\n        data-test-feature-user-search-item-renderer={{user.id}}\\n      />\\n    {{else}}\\n      <span data-test-feature-user-search-item-renderer-unassigned>\\n        Unassigned\\n      </span>\\n    {{/if}}\\n  </:item-renderer>\\n</Shared::BetaSelectSearch>\\n', { moduleName: 'client/features/user/components/search/template.hbs' });\n","import type UserManagerInternalBusinessService from 'client/features/user/services/internal-business/user-manager';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\n\nimport Service, { service } from '@ember/service';\n\nexport default class UserFeatureService extends Service {\n  @service('feature/user/internal-business/user-manager')\n  private userManager: UserManagerInternalBusinessService;\n\n  @service private errorHandler: ErrorHandlerService;\n\n  public async searchUsers(search: string, page: number, size: number, teamIds?: string[]) {\n    try {\n      return await this.userManager.searchUsers(search, page, size, teamIds);\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Search users failed.');\n      return [];\n    }\n  }\n\n  public async getUserById(id: number | string) {\n    return this.userManager.getUserById(id);\n  }\n\n  public async getUsersByIds(ids: (string | number)[]) {\n    return this.userManager.getUsersByIds(ids);\n  }\n}\n","import type UserModel from 'client/data/models/user';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nexport default class UserUserManagerInternalBusinessService extends Service {\n  @service private store: StoreService;\n  @service private serverFetch: ServerFetchService;\n  @service private lianaSession: LianaSessionService;\n\n  public async searchUsers(\n    search: string,\n    page: number,\n    size: number,\n    teamIds?: string[],\n  ): Promise<UserModel[]> {\n    const params = new URLSearchParams({\n      search,\n      page: page.toString(),\n      size: size.toString(),\n      projectId: this.lianaSession.currentProject?.id || '',\n    });\n\n    if (teamIds?.length > 0) {\n      teamIds.forEach((teamId) => params.append('teamIds[]', teamId));\n    }\n\n    const response = await this.serverFetch.fetch(\n      `/api/users/search?${params.toString()}`,\n      {\n        method: 'GET',\n      },\n      true,\n    );\n\n    const result = (await response.json()) as { data: object[] };\n\n    return this.store.push({\n      data: result.data.map(\n        (userPayload) => (this.store.normalize('user', userPayload) as { data: object }).data,\n      ),\n    }) as UserModel[];\n  }\n\n  public async getUserById(id: number | string): Promise<UserModel> {\n    return this.store.findRecord('user', id);\n  }\n\n  public async getUsersByIds(ids: (string | number)[]): Promise<UserModel[]> {\n    if (ids.length === 0) {\n      return [];\n    }\n\n    const users = await this.store.query('user', {\n      page: { number: 1, size: ids.length },\n      filter: {\n        userIds: ids,\n      },\n    });\n\n    return users.toArray();\n  }\n}\n","import type FieldModel from 'client/data/models/field';\n\nimport Component from '@glimmer/component';\nimport FragmentArray from 'ember-data-model-fragments/array/fragment';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport { jsonFieldToString } from 'client/utils/string-utils';\n\ninterface DisplayJsonTreeWidgetColumnLayoutArgs {\n  value: string | string[] | object | Fragment;\n  field: FieldModel;\n}\n\n@validateArguments\nexport default class WidgetsDisplayJsonTreeWidgetColumnLayoutComponent extends Component<DisplayJsonTreeWidgetColumnLayoutArgs> {\n  static propTypes = {\n    value: PropTypes.oneOfType([\n      PropTypes.string,\n      PropTypes.object,\n      PropTypes.arrayOf(PropTypes.string),\n      PropTypes.arrayOf(PropTypes.object),\n      PropTypes.instanceOf(Fragment),\n      PropTypes.instanceOf(FragmentArray),\n    ]).isRequired,\n    field: PropTypes.object.isRequired,\n  };\n\n  get valueDisplayed() {\n    const { isEmbedded, isJson } = this.args.field;\n    const valueDisplayed = jsonFieldToString(this.args.value, isJson || isEmbedded, false);\n    if (valueDisplayed.length > 80) {\n      return `${valueDisplayed.substring(0, 80)}…`;\n    }\n    return valueDisplayed;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-widgets-display-json-tree-widget-column-layout\\\"\\n  data-test-feature-widgets-display-json-tree-widget-column-layout\\n  ...attributes\\n>\\n  {{#if @value}}\\n    {{this.valueDisplayed}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/widgets/components/display/json-tree/widget-column-layout/template.hbs' });\n","import type FieldModel from 'client/data/models/field';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport FragmentArray from 'ember-data-model-fragments/array/fragment';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport { type RecordWithRawData, jsonFieldToString } from 'client/utils/string-utils';\n\ninterface Arguments {\n  value: object | RecordWithRawData | string;\n  field: FieldModel;\n  height?: number;\n}\n\nexport default class WidgetsDisplayJsonTreeWidgetLayoutComponent extends Component<Arguments> {\n  get isJsonField() {\n    return this.args.field.isJson || this.args.field.isEmbedded;\n  }\n\n  get jsonAsString() {\n    return jsonFieldToString(this.args.value, this.isJsonField);\n  }\n\n  get json() {\n    const { value } = this.args;\n    if (value instanceof Fragment) {\n      return value.rawData;\n    }\n    if (value instanceof FragmentArray) {\n      return value.map((item) => (item as RecordWithRawData).rawData);\n    }\n\n    if (this.isJsonField) {\n      return value;\n    }\n\n    try {\n      return JSON.parse(value as string) as object;\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      return this.args.value;\n    }\n  }\n\n  @action\n  handleDidInsert(element: HTMLElement) {\n    if (this.args.height) {\n      element.style.setProperty('--widget-display-json-tree-height', `${this.args.height}px`);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-widgets-display-json-tree-widget-layout\\\"\\n  data-test-feature-widgets-display-json-tree-widget-layout\\n  {{did-insert this.handleDidInsert}}\\n  ...attributes\\n>\\n  {{#if (and this.jsonAsString @widgetConfiguration.parameters.withCopyButton)}}\\n    <Form::Copy\\n      @value={{this.jsonAsString}}\\n      @style=\\\"icon\\\"\\n      @color=\\\"subtle\\\"\\n      class=\\\"c-feature-widgets-display-json-tree-widget-layout__copy-button\\\"\\n      data-test-feature-widgets-display-json-tree-widget-layout-copy-button\\n      data-dd-action-name=\\\"Copy JSON field `{{@field.fieldName}}` of `{{@field.collection.name}}`\\\"\\n    />\\n  {{/if}}\\n  <JsonEditor\\n    @name={{@field.fieldName}}\\n    @json={{this.json}}\\n    @mode=\\\"view\\\"\\n    @search={{true}}\\n    @showMenu={{true}}\\n  />\\n</div>\\n', { moduleName: 'client/features/widgets/components/display/json-tree/widget-layout/template.hbs' });\n","import type { WidgetDisplayTypeEnum } from 'client/utils/widgets';\n\nimport Component from '@glimmer/component';\n\nimport WidgetConfigurationFragment from 'client/data/models/widget-configuration';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Arguments {\n  widgetConfiguration: WidgetConfigurationFragment<WidgetDisplayTypeEnum.JsonTree>;\n}\n\n@validateArguments\nexport default class WidgetsDisplayJsonTreeWidgetSettingsComponent extends Component<Arguments> {\n  static propTypes = {\n    widgetConfiguration: PropTypes.instanceOf(WidgetConfigurationFragment),\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel @label=\\\"Enable copy button\\\" @for=\\\"with-copy-button\\\" @position=\\\"right\\\">\\n  <Shared::Form::Toggle\\n    @value={{@widgetConfiguration.parameters.withCopyButton}}\\n    @onChange={{fn (mut @widgetConfiguration.parameters.withCopyButton)}}\\n    name=\\\"with-copy-button\\\"\\n    data-test-feature-widgets-display-json-tree-widget-settings-with-copy-button\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/features/widgets/components/display/json-tree/widget-settings/template.hbs' });\n","import type LocalStorageService from 'client/legacy/services/local-storage';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class WorkflowEditorBannerComponent extends Component {\n  @service('local-storage') private readonly localStorageService: LocalStorageService;\n\n  @tracked shouldDisplayBanner: boolean;\n\n  constructor(owner: unknown, args: unknown) {\n    super(owner, args);\n    this.shouldDisplayBanner =\n      this.localStorageService.getItem('workflowEditorBannerClosed') !== 'true';\n  }\n\n  @action\n  public handleCloseBanner() {\n    this.localStorageService.setItem('workflowEditorBannerClosed', 'true');\n    this.shouldDisplayBanner = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.shouldDisplayBanner}}\\n  <div class=\\\"c-feature-workflow-editor-banner\\\" ...attributes>\\n    <p>\\n      Wondering where to start? Have a look at our\\n      <Shared::Navigation::BetaLinkTo\\n        @underline={{true}}\\n        @href=\\\"https://docs.forestadmin.com/user-guide/collections/workflows\\\"\\n        @target=\\\"_blank\\\"\\n        @type=\\\"ghost\\\"\\n        @text=\\\"documentation\\\"\\n        @textClass=\\\"c-feature-workflow-editor-banner__link\\\"\\n      />\\n      to help you create your first Workflow!\\n    </p>\\n\\n    <Shared::BetaIconButton\\n      class=\\\"c-feature-workflow-editor-banner__close-button\\\"\\n      @icon=\\\"close\\\"\\n      @color=\\\"white\\\"\\n      @size=\\\"middling\\\"\\n      {{on \\'click\\' this.handleCloseBanner}}\\n    />\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/features/workflow-editor/components/banner/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport {\n  type BpmnServiceTaskAlternativeEnum,\n  BpmnTaskTypeEnum,\n  getBpmnItemByAlternativeOrType as getBpmnItemByTypeOrAlternative,\n} from 'client/features/workflow-editor/configuration';\n\ninterface BpmnTypeIconArgs {\n  type: BpmnTaskTypeEnum | 'multi';\n  alternative: BpmnServiceTaskAlternativeEnum;\n}\n\nexport default class WorkflowEditorBpmnTypeIconComponent extends Component<BpmnTypeIconArgs> {\n  get iconPath() {\n    if (this.args.type === BpmnTaskTypeEnum.ServiceTask) {\n      return (\n        getBpmnItemByTypeOrAlternative(this.args.type, this.args.alternative)?.iconPath || null\n      );\n    }\n\n    return this.args.type === 'multi'\n      ? '/img/icons/icon--double-cursor.svg'\n      : getBpmnItemByTypeOrAlternative(this.args.type)?.iconPath || null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.iconPath}}\\n  <Shared::Svg\\n    @src={{this.iconPath}}\\n    class=\\\"c-feature-workflow-editor-bpmn-type-icon\\\"\\n    data-test-feature-workflow-editor-bpmn-type-icon={{@type}}\\n    ...attributes\\n  />\\n{{/if}}\\n', { moduleName: 'client/features/workflow-editor/components/bpmn-type-icon/template.hbs' });\n","import type { ConnectionImpl } from 'bpmn-js/custom';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface CollapseButtonArgs {\n  elementId?: string;\n  connection?: ConnectionImpl;\n}\n\nexport default class WorkflowEditorCollapseButtonComponent extends Component<CollapseButtonArgs> {\n  @service('feature/workflow-editor/state')\n  workflowEditorState: WorkflowEditorFeatureState;\n\n  @service('feature/workflow-editor')\n  workflowEditorFeature: WorkflowEditorFeatureService;\n\n  get collapseElementId(): string | undefined {\n    return this.workflowEditorFeature.getCollapseIdForConnection(this.args);\n  }\n\n  get isCollapsed() {\n    return this.collapseElementId\n      ? this.workflowEditorState.isStepCollapsed(this.collapseElementId)\n      : false;\n  }\n\n  get stepCount() {\n    if (!this.args.connection) {\n      return 0;\n    }\n\n    return this.workflowEditorFeature.getStepCount(this.args.connection);\n  }\n\n  get hasError() {\n    if (!this.collapseElementId) return false;\n\n    return this.workflowEditorState.errorCollapseIds.has(this.collapseElementId);\n  }\n\n  @action\n  toggle(event: MouseEvent) {\n    if (!this.collapseElementId) return;\n    if (this.workflowEditorState.isGrabMode) {\n      (event.target as HTMLElement).closest('button')?.blur();\n      return;\n    }\n\n    this.workflowEditorState.skipNextLayoutReCenter = true;\n    this.workflowEditorState.scrollToCollapseId = this.collapseElementId;\n    this.workflowEditorState.isCollapseTransitioning = true;\n    this.workflowEditorState.lastCollapseClick = {\n      collapseId: this.collapseElementId,\n      clientX: event.clientX,\n      clientY: event.clientY,\n    };\n\n    this.workflowEditorFeature.toggleStepCollapse(this.collapseElementId);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<button\\n  class={{get-classes-with-modifiers\\n    \\'c-feature-workflow-editor-collapse-button\\'\\n    expanded=this.isCollapsed\\n    error=this.hasError\\n  }}\\n  data-test-feature-workflow-editor-collapse-button\\n  ...attributes\\n  type=\\\"button\\\"\\n  {{on \\'click\\' this.toggle}}\\n>\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName={{if this.isCollapsed \\'keyboard_arrow_down\\' \\'keyboard_arrow_up\\'}}\\n    @size=\\\"small\\\"\\n  />\\n  {{#if this.isCollapsed}}\\n    <span\\n      class=\\\"c-feature-workflow-editor-collapse-button__label\\\"\\n      data-test-feature-workflow-editor-collapse-button-label\\n    >\\n      {{this.stepCount}}\\n      {{if (eq this.stepCount 1) \\'step\\' \\'steps\\'}}\\n      collapsed\\n    </span>\\n  {{/if}}\\n</button>\\n', { moduleName: 'client/features/workflow-editor/components/collapse-button/template.hbs' });\n","import type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorSelectionInternalService from 'client/features/workflow-editor/services/internal-feature/selection';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\nimport type UiControlService from 'client/legacy/services/ui-control';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport CollectionModel from 'client/data/models/collection';\nimport WorkflowModel from 'client/data/models/workflow';\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\nimport validateArguments from 'client/decorators/validate';\nimport { BpmnTaskTypeEnum } from 'client/features/workflow-editor/configuration';\nimport {\n  KEY,\n  isCommandPlusKeyPressed,\n  isCommandShiftPlusKeyPressed,\n  isKey,\n} from 'client/utils/keyboard';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Arguments {\n  bpmn?: string;\n  collection: CollectionModel;\n  workflow: WorkflowModel;\n}\n\n@validateArguments\n@preventLeavingWithoutSaving<typeof WorkflowEditorComponent>()\nexport default class WorkflowEditorComponent extends Component<Arguments> {\n  static readonly propTypes = {\n    collection: PropTypes.instanceOf(CollectionModel).isRequired,\n    workflow: PropTypes.instanceOf(WorkflowModel).isRequired,\n    bpmn: PropTypes.string,\n  };\n\n  @service private uiControl: UiControlService;\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n  @service('feature/workflow-editor/state') private workflowEditorState: WorkflowEditorFeatureState;\n  @service('feature/workflow-editor/internal-feature/selection')\n  private workflowEditorSelection: WorkflowEditorSelectionInternalService;\n\n  @tracked isV1Enabled: boolean;\n\n  constructor(owner: unknown, args: Arguments) {\n    super(owner, args);\n    this.uiControl.isSideMenuHidden = true;\n    this.isV1Enabled = this.workflowEditorFeature.getIsV1Enabled();\n\n    document.addEventListener('keydown', this.handleKeyDown);\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n\n    this.workflowEditorFeature.selectElement(null);\n    this.workflowEditorFeature.setLinkToSelectMode(false);\n    document.removeEventListener('keydown', this.handleKeyDown);\n    this.uiControl.isSideMenuHidden = false;\n  }\n\n  @action\n  async handleDidInsert(container: HTMLElement) {\n    const bpmnContainer = this.isV1Enabled ? container : null;\n    await this.workflowEditorFeature.buildBPMNInstance(bpmnContainer, this.isV1Enabled);\n    await this.workflowEditorFeature.importXML(this.args.bpmn, true);\n    this.workflowEditorFeature.setCurrentCollection(this.args.collection);\n  }\n\n  @action\n  async handleKeyDown(event: KeyboardEvent) {\n    if (this.isV1Enabled) return;\n\n    if (isCommandShiftPlusKeyPressed(event, KEY.KEY_Z)) {\n      event.preventDefault();\n      this.workflowEditorFeature.redo();\n    } else if (isCommandPlusKeyPressed(event, KEY.KEY_Z)) {\n      if (this.isEditableElementFocused(event)) return;\n      event.preventDefault();\n      this.workflowEditorFeature.undo();\n    } else if (isKey(KEY.DELETE, event) || isKey(KEY.BACKSPACE, event)) {\n      if (this.isEditableElementFocused(event)) return;\n      event.preventDefault();\n      await this.deleteSelectedItems();\n    }\n  }\n\n  private isEditableElementFocused(event: KeyboardEvent): boolean {\n    const target = event.target as HTMLElement;\n    return target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable;\n  }\n\n  private async deleteSelectedItems() {\n    const { selectedItems } = this.workflowEditorState;\n    if (!selectedItems.length) return;\n\n    const hasMultipleSubProcesses =\n      selectedItems.filter((item) => item.type === BpmnTaskTypeEnum.SubProcess).length > 1;\n    if (hasMultipleSubProcesses) return;\n\n    if (selectedItems.some((item) => this.workflowEditorFeature.getIsDeleteButtonDisabled(item))) {\n      return;\n    }\n\n    this.workflowEditorSelection.deleteSteps(selectedItems);\n  }\n\n  mustPreventLeaving() {\n    return this.workflowEditorFeature.getIsBpmnDirty();\n  }\n}\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  data: {\n    onClose: () => void;\n    onDelete: () => void;\n    title: string;\n    description: string;\n    confirmText?: string;\n    cancelText?: string;\n  };\n}\n\n@validateArguments\nexport default class WorkflowEditorDeletionConfirmationModalComponent extends Component<Args> {\n  static readonly propTypes = {\n    data: PropTypes.shape({\n      onClose: PropTypes.func.isRequired,\n      onDelete: PropTypes.func.isRequired,\n      title: PropTypes.string.isRequired,\n      description: PropTypes.string.isRequired,\n      confirmText: PropTypes.string,\n      cancelText: PropTypes.string,\n    }).isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  @size=\\\"xs\\\"\\n  data-test-feature-workflow-editor-deletion-confirmation-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header @title={{@data.title}} />\\n  <Shared::Modal::Body\\n    class=\\\"c-feature-workflow-editor-deletion-confirmation-modal\\\"\\n    data-test-feature-workflow-editor-deletion-confirmation-modal-body\\n  >\\n    <p\\n      class=\\\"c-feature-workflow-editor-deletion-confirmation-modal__description\\\"\\n      data-test-feature-workflow-editor-deletion-confirmation-modal-body-description\\n    >\\n      {{@data.description}}\\n    </p>\\n  </Shared::Modal::Body>\\n  <Shared::Modal::ActionFooter\\n    @onCancel={{@data.onClose}}\\n    @cancelText={{or @data.cancelText \\'Cancel\\'}}\\n    @confirmText={{or @data.confirmText \\'Delete\\'}}\\n    @onConfirm={{@data.onDelete}}\\n    @fullWidth={{true}}\\n    @confirmType=\\\"danger\\\"\\n    data-test-feature-workflow-editor-deletion-confirmation-modal-footer\\n  />\\n</Shared::Modal>\\n', { moduleName: 'client/features/workflow-editor/components/deletion-confirmation-modal/template.hbs' });\n","import type { ConnectionImpl } from 'bpmn-js/custom';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  connection: ConnectionImpl;\n}\n\nexport default class WorkflowEditorGoToGatewayButtonComponent extends Component<Args> {\n  @service('feature/workflow-editor/state') private workflowEditorState: WorkflowEditorFeatureState;\n\n  @action\n  public handleClickGoToGateway() {\n    this.workflowEditorState.scrollToItemId = this.args.connection.source.id;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<button\\n  class=\\\"c-feature-workflow-editor-go-to-gateway-button\\\"\\n  data-test-feature-workflow-editor-go-to-gateway-button\\n  ...attributes\\n  type=\\\"button\\\"\\n  {{on \\'click\\' this.handleClickGoToGateway}}\\n>\\n  <Shared::DataDisplay::BetaIcon @iconName=\\\"arrow_upward\\\" @size=\\\"small\\\" />\\n</button>\\n', { moduleName: 'client/features/workflow-editor/components/go-to-gateway-button/template.hbs' });\n","import type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type { BreadcrumbItem } from 'client/legacy/pods/components/navigation/data-view-breadcrumb/component';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport CollectionModel from 'client/data/models/collection';\nimport WorkflowModel from 'client/data/models/workflow';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface HeaderArgs {\n  collection: CollectionModel;\n  workflow: WorkflowModel;\n}\n\n@validateArguments\nexport default class WorkflowEditorHeaderComponent extends Component<HeaderArgs> {\n  static readonly propTypes = {\n    collection: PropTypes.instanceOf(CollectionModel).isRequired,\n    workflow: PropTypes.instanceOf(WorkflowModel).isRequired,\n  };\n\n  @service('feature/workflow-editor')\n  private workflowEditorFeature: WorkflowEditorFeatureService;\n\n  @tracked fileName: string | null = null;\n\n  public get breadcrumbs(): BreadcrumbItem[] {\n    return [\n      {\n        displayName: this.args.collection.displayNameWithEmoji,\n        link: 'project.rendering.data.collection.list.index',\n        params: [this.args.collection.shareableId],\n        isFirst: true,\n        isLast: false,\n      },\n      {\n        displayName: 'Settings',\n        link: 'project.rendering.data.collection.settings.workflows.details',\n        params: [this.args.collection.shareableId, this.args.workflow.name],\n        isFirst: false,\n        isLast: false,\n      },\n      {\n        displayName: this.args.workflow.name,\n        link: 'project.rendering.data.collection.workflow-editor',\n        isFirst: false,\n        isLast: true,\n        params: [this.args.collection.shareableId, encodeURIComponent(this.args.workflow.name)],\n      },\n    ];\n  }\n\n  public get isV1Enabled(): boolean {\n    return this.workflowEditorFeature.getIsV1Enabled();\n  }\n\n  @action\n  public handleOpenUploadModalClick() {\n    this.workflowEditorFeature.openUploadModal(this.handleUploadedFile);\n  }\n\n  @action\n  public handleUploadedFile(fileName: string) {\n    this.fileName = fileName;\n  }\n\n  @action\n  public async handleSave(options: { shouldExitAfterward: boolean }) {\n    await this.workflowEditorFeature.saveWorkflow(this.args.workflow, this.fileName, options);\n    this.fileName = null;\n  }\n\n  @action\n  public async handleDownload() {\n    await this.workflowEditorFeature.downloadWorkflow(this.args.workflow, this.fileName);\n  }\n}\n","import type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\nimport type PopupPositionerSharedBusinessService from 'client/shared/services/popup-positioner';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class WorkflowEditorHeaderErrorButtonComponent extends Component {\n  @service('feature/workflow-editor/state') public workflowEditorState: WorkflowEditorFeatureState;\n  @service('shared/popup-positioner') private popupPositioner: PopupPositionerSharedBusinessService;\n  @service('feature/workflow-editor') private workflowEditorService: WorkflowEditorFeatureService;\n\n  get buttonId() {\n    return guidFor(this);\n  }\n\n  get modalId() {\n    return `${this.buttonId}-modal`;\n  }\n\n  @action\n  public hideModal() {\n    this.workflowEditorService.setIsErrorsModalVisible(false);\n  }\n\n  @action\n  public async handleClickErrorButton() {\n    this.workflowEditorService.setIsErrorsModalVisible(\n      !this.workflowEditorState.isErrorsModalVisible,\n    );\n  }\n\n  @action\n  public hideModalWithoutErrors() {\n    if (this.workflowEditorState.numberOfItemsInError === 0) {\n      this.hideModal();\n    }\n  }\n}\n","import type { BpmnElement, ConnectionImpl } from 'bpmn-js/custom';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport {\n  BpmnEventTypeEnum,\n  BpmnGatewayTypeEnum,\n  BpmnTaskLinkTypeEnum,\n  BpmnTaskTypeEnum,\n} from 'client/features/workflow-editor/configuration';\nimport { WorkflowEditorErrorTypeEnum } from 'client/features/workflow-editor/state';\n\ninterface Args {\n  type: WorkflowEditorErrorTypeEnum;\n  itemsInErrorState: Array<BpmnElement>;\n  onHideModal: () => void;\n}\n\nexport default class WorkflowEditorHeaderErrorButtonErrorLineComponent extends Component<Args> {\n  @service('feature/workflow-editor') private workflowEditorService: WorkflowEditorFeatureService;\n  @service('feature/workflow-editor/state') private workflowEditorState: WorkflowEditorFeatureState;\n\n  private elementWithListeners: HTMLElement;\n\n  willDestroy() {\n    super.willDestroy();\n\n    this.elementWithListeners?.removeEventListener('mouseenter', this.handleMouseEnter);\n    this.elementWithListeners?.removeEventListener('mouseleave', this.handleMouseLeave);\n    this.elementWithListeners = null;\n  }\n\n  public get iconType() {\n    switch (this.args.type) {\n      case WorkflowEditorErrorTypeEnum.MissingEndEvent:\n        return BpmnEventTypeEnum.EndEvent;\n      case WorkflowEditorErrorTypeEnum.MissingLinkToTarget:\n        return BpmnTaskLinkTypeEnum.LinkTo;\n      case WorkflowEditorErrorTypeEnum.MissingEscalationInbox:\n        return BpmnEventTypeEnum.EscalationTask;\n      case WorkflowEditorErrorTypeEnum.MissingSubWorkflow:\n        return BpmnTaskTypeEnum.CallActivity;\n      case WorkflowEditorErrorTypeEnum.MissingMcpServer:\n        return BpmnTaskTypeEnum.ServiceTask;\n      case WorkflowEditorErrorTypeEnum.MissingGatewayName:\n      case WorkflowEditorErrorTypeEnum.MissingGatewayOptionName:\n        return BpmnGatewayTypeEnum.ExclusiveGateway;\n    }\n  }\n\n  public get displayName() {\n    switch (this.args.type) {\n      case WorkflowEditorErrorTypeEnum.MissingEndEvent:\n        return 'End';\n      case WorkflowEditorErrorTypeEnum.MissingLinkToTarget:\n        return 'Go to';\n      case WorkflowEditorErrorTypeEnum.MissingEscalationInbox:\n        return 'Escalation Inboxes';\n      case WorkflowEditorErrorTypeEnum.MissingSubWorkflow:\n        return 'Sub Workflows';\n      case WorkflowEditorErrorTypeEnum.MissingMcpServer:\n        return 'MCP Servers';\n      case WorkflowEditorErrorTypeEnum.MissingGatewayName:\n        return 'Decision Names';\n      case WorkflowEditorErrorTypeEnum.MissingGatewayOptionName:\n        return 'Option Names';\n    }\n  }\n\n  public get shouldDisplayMagicWand() {\n    return (\n      this.args.type === WorkflowEditorErrorTypeEnum.MissingEndEvent\n      || (this.args.type === WorkflowEditorErrorTypeEnum.MissingEscalationInbox\n        && this.workflowEditorService.getInboxesForEscalation().length === 1)\n    );\n  }\n\n  public get shouldDisplaySelectElement() {\n    return this.args.type !== WorkflowEditorErrorTypeEnum.MissingEndEvent;\n  }\n\n  @action\n  public handleDidInsert(element: HTMLElement) {\n    this.elementWithListeners = element;\n    element.addEventListener('mouseenter', this.handleMouseEnter);\n    element.addEventListener('mouseleave', this.handleMouseLeave);\n  }\n\n  @action\n  public async handleClickSelectElement() {\n    await this.workflowEditorService.openErrorElement(this.args.itemsInErrorState, this.args.type);\n\n    this.args.onHideModal();\n  }\n\n  @action\n  public handleClickMagicWand(event: MouseEvent) {\n    event.stopPropagation();\n    this.workflowEditorService.autoFixErrorsOnElements(this.args.type, this.args.itemsInErrorState);\n  }\n\n  @action\n  private handleMouseEnter() {\n    const firstErrorElement = this.args.itemsInErrorState[0];\n    if (!firstErrorElement) return;\n\n    this.workflowEditorService.setShouldDisplayPlaceholderOnError(true);\n    this.workflowEditorService.highlightCollapseIdsWithErrors(this.args.itemsInErrorState);\n\n    // Connections are not flat items — resolve to the source shape.\n    this.workflowEditorState.scrollToItemId =\n      (firstErrorElement as ConnectionImpl).source?.id ?? firstErrorElement.id;\n  }\n\n  @action\n  private handleMouseLeave() {\n    this.workflowEditorService.restoreErrorHighlightState();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (gt @itemsInErrorState.length 0)}}\\n  <div\\n    class=\\\"c-feature-workflow-editor-header-error-button-error-line\\\"\\n    ...attributes\\n    role=\\\"button\\\"\\n    {{did-insert this.handleDidInsert}}\\n    data-test-workflow-editor-header-error-button-error-line\\n    {{on \\'click\\' this.handleClickSelectElement}}\\n  >\\n    <Feature::WorkflowEditor::BpmnTypeIcon\\n      @type={{this.iconType}}\\n      class=\\\"c-feature-workflow-editor-header-error-button-error-line__error-type-icon\\\"\\n      data-test-workflow-editor-header-error-button-error-line-icon\\n    />\\n    <span\\n      class=\\\"c-feature-workflow-editor-header-error-button-error-line__description\\\"\\n      data-test-workflow-editor-header-error-button-error-line-description\\n    >\\n      {{@itemsInErrorState.length}}\\n      missing\\n      <span class=\\\"c-feature-workflow-editor-header-error-button-error-line__error-type\\\">\\n        {{this.displayName}}\\n      </span>\\n    </span>\\n\\n    <div class=\\\"c-feature-workflow-editor-header-error-button-error-line__buttons\\\">\\n      {{#if this.shouldDisplayMagicWand}}\\n        <Shared::SvgButton\\n          @svgSrc=\\\"/img/icons/icon--magic-wand.svg\\\"\\n          class=\\\"c-feature-workflow-editor-header-error-button-error-line__select-button\\\"\\n          {{on \\'click\\' this.handleClickMagicWand}}\\n          data-test-workflow-editor-header-error-button-error-line-button-magic-wand\\n        />\\n      {{/if}}\\n\\n      {{#if this.shouldDisplaySelectElement}}\\n        <Shared::SvgButton\\n          @svgSrc=\\\"/img/icons/cursor.svg\\\"\\n          {{on \\'click\\' (stop-propagation this.handleClickSelectElement)}}\\n          class=\\\"c-feature-workflow-editor-header-error-button-error-line__select-button\\\"\\n          data-test-workflow-editor-header-error-button-error-line-button-select\\n        />\\n      {{/if}}\\n    </div>\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/features/workflow-editor/components/header/error-button/error-line/template.hbs' });\n","import type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\nimport type PopupPositionerSharedBusinessService from 'client/shared/services/popup-positioner';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { WorkflowEditorErrorTypeEnum } from 'client/features/workflow-editor/state';\n\ninterface Args {\n  onHideModal: () => void;\n  buttonId: string;\n  hasErrors: boolean;\n}\n\nexport default class WorkflowEditorHeaderErrorButtonModalComponent extends Component<Args> {\n  @service('feature/workflow-editor/state') public workflowEditorState: WorkflowEditorFeatureState;\n  @service('shared/popup-positioner') private popupPositioner: PopupPositionerSharedBusinessService;\n\n  public get groupedElementsByErrorType() {\n    const order = [\n      WorkflowEditorErrorTypeEnum.MissingEndEvent,\n      WorkflowEditorErrorTypeEnum.MissingEscalationInbox,\n      WorkflowEditorErrorTypeEnum.MissingLinkToTarget,\n      WorkflowEditorErrorTypeEnum.MissingSubWorkflow,\n      WorkflowEditorErrorTypeEnum.MissingMcpServer,\n      WorkflowEditorErrorTypeEnum.MissingGatewayOptionName,\n    ];\n    return this.workflowEditorState.itemsInError\n      .reduce((acc, { type, element }) => {\n        let group = acc.find((grp) => grp.type === type);\n        if (!group) {\n          group = { type, elements: [] };\n          acc.push(group);\n        }\n        group.elements.push(element);\n        return acc;\n      }, [])\n      .sort((a, b) => {\n        return order.indexOf(a.type) - order.indexOf(b.type);\n      });\n  }\n\n  @action\n  public handleDidInsert(element: HTMLElement) {\n    const errorButtonElement = document.getElementById(this.args.buttonId);\n\n    this.popupPositioner.positionPopupBelowElement(\n      this as Component<unknown>,\n      element,\n      errorButtonElement,\n      {\n        visibilityVariable: '--feature-workflow-editor-error-button-modal-visibility',\n        topVariable: '--feature-workflow-editor-error-button-modal-margin-top',\n        leftVariable: '--feature-workflow-editor-error-button-modal-margin-left',\n        withGap: true,\n      },\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-editor-header-error-button-modal\\\"\\n  {{forest-on-click-outside @onHideModal}}\\n  {{did-insert this.handleDidInsert}}\\n  data-test-workflow-editor-header-error-button-modal\\n>\\n  <div\\n    class={{get-classes-with-modifiers\\n      \\'c-feature-workflow-editor-header-error-button-modal__title\\'\\n      border-bottom=@hasErrors\\n    }}\\n  >\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{if @hasErrors \\'error_outline\\' \\'check_circle_outline\\'}}\\n      @size=\\\"small\\\"\\n      class=\\\"c-feature-workflow-editor-header-error-button-modal__title-{{if\\n          @hasErrors\\n          \\'error\\'\\n          \\'check\\'\\n        }}-icon\\\"\\n      data-test-workflow-editor-header-error-button-modal-title-icon\\n    />\\n    <span\\n      class=\\\"c-feature-workflow-editor-header-error-button-modal__title-text\\\"\\n      data-test-workflow-editor-header-error-button-modal-title\\n    >\\n      {{#if @hasErrors}}\\n        {{this.workflowEditorState.numberOfItemsInError}}\\n        errors\\n      {{else}}\\n        No errors detected\\n      {{/if}}\\n    </span>\\n    <Shared::Button @iconName=\\\"close\\\" @size=\\\"tiny\\\" @type=\\\"ghost\\\" @onClick={{@onHideModal}} />\\n  </div>\\n  {{#if @hasErrors}}\\n    <div\\n      class=\\\"c-feature-workflow-editor-header-error-button-modal__errors\\\"\\n      data-test-workflow-editor-header-error-button-modal-error-list\\n    >\\n      {{#each this.groupedElementsByErrorType as |error|}}\\n        <Feature::WorkflowEditor::Header::ErrorButton::ErrorLine\\n          @itemsInErrorState={{error.elements}}\\n          @type={{error.type}}\\n          @onHideModal={{@onHideModal}}\\n          data-test-workflow-editor-header-error-button-modal-error-line={{error.type}}\\n        />\\n      {{/each}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workflow-editor/components/header/error-button/modal/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-update this.hideModalWithoutErrors this.workflowEditorState.numberOfItemsInError}}\\n{{#let (gt this.workflowEditorState.numberOfItemsInError 0) as |hasErrors|}}\\n  <Shared::Button\\n    id={{this.buttonId}}\\n    @iconName={{if hasErrors \\'info_outline\\' \\'check_circle_outline\\'}}\\n    @size=\\\"medium\\\"\\n    @type={{if hasErrors \\'ghost-orange\\' \\'ghost\\'}}\\n    @onClick={{this.handleClickErrorButton}}\\n    @mustStopPropagation={{true}}\\n    class=\\\"c-feature-workflow-editor-header-error-button\\\"\\n    data-test-workflow-editor-header-error-button\\n  />\\n  {{#if this.workflowEditorState.isErrorsModalVisible}}\\n    <Shared::PortalContent @for=\\\"dropdown\\\">\\n      <Feature::WorkflowEditor::Header::ErrorButton::Modal\\n        @onHideModal={{this.hideModal}}\\n        @buttonId={{this.buttonId}}\\n        @hasErrors={{hasErrors}}\\n      />\\n    </Shared::PortalContent>\\n  {{/if}}\\n{{/let}}\\n', { moduleName: 'client/features/workflow-editor/components/header/error-button/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{shared/save-shortcut (fn this.handleSave (hash shouldExitAfterward=false))}}\\n<BetaHeader\\n  @hasSideMenu={{true}}\\n  @isLayoutEditorButtonHidden={{true}}\\n  @withoutMaxWidth={{true}}\\n  @variant=\\\"surface\\\"\\n  @breadcrumbs={{this.breadcrumbs}}\\n  data-test-feature-workflow-editor-header\\n  ...attributes\\n>\\n  <:right-buttons>\\n    <Shared::Button\\n      @type=\\\"ghost\\\"\\n      @iconName=\\\"file_upload\\\"\\n      @text=\\\"Upload BPMN file\\\"\\n      @onClick={{this.handleOpenUploadModalClick}}\\n      data-test-feature-workflow-editor-header-upload-button\\n    />\\n    {{#if this.isV1Enabled}}\\n      <Shared::Button\\n        @type=\\\"ghost\\\"\\n        @iconName=\\\"file_download\\\"\\n        @text=\\\"Download BPMN file\\\"\\n        @onClick={{this.handleDownload}}\\n        data-test-feature-workflow-editor-header-download-button\\n      />\\n    {{/if}}\\n    {{#unless this.isV1Enabled}}\\n      <Feature::WorkflowEditor::Header::ErrorButton />\\n    {{/unless}}\\n    <Shared::Button\\n      @type=\\\"ghost\\\"\\n      @iconName=\\\"close\\\"\\n      @text=\\\"Save and Close\\\"\\n      @onClick={{(fn this.handleSave (hash shouldExitAfterward=true))}}\\n      data-test-feature-workflow-editor-header-save-button\\n    />\\n  </:right-buttons>\\n</BetaHeader>\\n', { moduleName: 'client/features/workflow-editor/components/header/template.hbs' });\n","import type { ConnectionImpl } from 'bpmn-js/custom';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface ItemConfigurationPanelButtonArgs {\n  workflowItem: ConnectionImpl;\n  placeholder?: string;\n}\n\nexport default class WorkflowEditorItemConfigurationPanelButtonComponent extends Component<ItemConfigurationPanelButtonArgs> {\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n\n  @action\n  handleButtonTextChange(name: string) {\n    this.workflowEditorFeature.updateWorkflowItemProperties(this.args.workflowItem, { name });\n  }\n\n  @action\n  handleButtonColorChange(buttonColor: string) {\n    this.workflowEditorFeature.updateWorkflowItemProperties(this.args.workflowItem, {\n      buttonColor,\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::InputWithColorPresets\\n  @value={{one-way @workflowItem.businessObject.name}}\\n  @color={{one-way @workflowItem.businessObject.buttonColor}}\\n  @onTextChange={{this.handleButtonTextChange}}\\n  @onColorChange={{this.handleButtonColorChange}}\\n  @placeholder={{or @placeholder \\'Done\\'}}\\n  class=\\\"c-feature-workflow-editor-item-configuration-panel-button\\\"\\n  data-test-feature-workflow-editor-item-configuration-panel-button\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/button/template.hbs' });\n","import type { ShapeImpl } from 'bpmn-js/custom';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type { WorkflowOptionForCallActivity } from 'client/features/workflow-editor/services/internal-business/manager';\nimport type WorkflowEditorErrorHandlingInternalFeatureService from 'client/features/workflow-editor/services/internal-feature/error-handling';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface ItemConfigurationPanelCallActivityArgs {\n  workflowItem: ShapeImpl;\n}\n\nexport default class WorkflowEditorItemConfigurationPanelCallActivityComponent extends Component<ItemConfigurationPanelCallActivityArgs> {\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n\n  @service('feature/workflow-editor/state')\n  private workflowEditorState: WorkflowEditorFeatureState;\n\n  @service('feature/workflow-editor/internal-feature/error-handling')\n  private errorHandlingService: WorkflowEditorErrorHandlingInternalFeatureService;\n\n  get workflows(): WorkflowOptionForCallActivity[] {\n    return this.workflowEditorFeature.getWorkflowsForCallActivity();\n  }\n\n  get selectedWorkflowId(): string | null {\n    return (this.args.workflowItem.businessObject?.calledElement as string) || null;\n  }\n\n  get shouldDisplayDifferentCollectionWarning(): boolean {\n    const selectedWorkflow = this.workflows.find(({ id }) => id === this.selectedWorkflowId);\n    return (\n      Boolean(selectedWorkflow)\n      && selectedWorkflow.collectionName !== this.workflowEditorState.currentCollection?.name\n    );\n  }\n\n  public get shouldDisplayError(): boolean {\n    return (\n      !!this.selectedWorkflowId\n      && this.errorHandlingService.isSubBpmnElementInError(this.args.workflowItem)\n    );\n  }\n\n  @action\n  handleWorkflowUpdate(workflowId: string) {\n    this.workflowEditorFeature.updateCurrentWorkflowItemProperties({\n      calledElement: workflowId,\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::WorkflowEditor::ItemConfigurationPanel::Name @currentWorkflowItem={{@workflowItem}} />\\n\\n<Shared::BetaLabel\\n  @label=\\\"Workflow\\\"\\n  @position=\\\"top\\\"\\n  class=\\\"c-feature-workflow-editor-item-configuration-panel__label\\\"\\n  ...attributes\\n>\\n  <Shared::BetaSelect\\n    @options={{this.workflows}}\\n    @namePath=\\\"displayName\\\"\\n    @valuePath=\\\"id\\\"\\n    @value={{one-way this.selectedWorkflowId}}\\n    @onChange={{this.handleWorkflowUpdate}}\\n    @placeholder=\\\"Select a workflow...\\\"\\n    @withSearchInput={{true}}\\n    @searchPlaceholder=\\\"Search workflows...\\\"\\n    data-test-feature-workflow-editor-item-configuration-panel-call-activity-workflow-select\\n  />\\n\\n  {{#if this.shouldDisplayDifferentCollectionWarning}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"info\\\"\\n      @canHide={{false}}\\n      @message=\\\"Your target workflow is in another collection. Ensure a record from that collection is loaded earlier in the flow using a Load Related Record step.\\\"\\n      class=\\\"c-feature-workflow-editor-item-configuration-panel-call-activity__notification\\\"\\n      data-test-feature-workflow-editor-item-configuration-panel-call-activity-workflow-warning\\n    />\\n  {{/if}}\\n\\n  {{#if this.shouldDisplayError}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"error\\\"\\n      @canHide={{false}}\\n      @message=\\\"The workflow previously selected has been deleted.\\\"\\n      class=\\\"c-feature-workflow-editor-item-configuration-panel-call-activity__notification\\\"\\n      data-test-feature-workflow-editor-item-configuration-panel-call-activity-workflow-not-found\\n    />\\n  {{/if}}\\n</Shared::BetaLabel>\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/call-activity/template.hbs' });\n","import type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorSubProcessInternalFeatureService from 'client/features/workflow-editor/services/internal-feature/sub-process';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport WorkflowBpmnParser, {\n  NormalizedBpmnTypeEnum,\n} from 'client/features/workflow/services/standalone-package/services/parser-module/bpmn-parser';\nimport { BpmnEventTypeEnum, BpmnTaskTypeEnum } from 'client/features/workflow-editor/configuration';\n\nexport default class WorkflowEditorItemConfigurationPanelComponent extends Component {\n  @service('feature/workflow') public workflowFeature: WorkflowFeatureService;\n  @service('feature/workflow-editor') public workflowEditorFeature: WorkflowEditorFeatureService;\n  @service('feature/workflow-editor/internal-feature/sub-process')\n  private workflowEditorSubProcessService: WorkflowEditorSubProcessInternalFeatureService;\n\n  @service('feature/workflow-editor/state') public workflowEditorState: WorkflowEditorFeatureState;\n\n  get workflowItemConfigureComponent() {\n    const prefix = 'feature/workflow-editor/item-configuration-panel';\n\n    switch (\n      WorkflowBpmnParser.getNormalizedTypeForElement(\n        this.workflowEditorState.currentWorkflowItem?.type,\n      )\n    ) {\n      case NormalizedBpmnTypeEnum.ScriptTask:\n      case NormalizedBpmnTypeEnum.ServiceTask:\n      case NormalizedBpmnTypeEnum.UserTask:\n      case NormalizedBpmnTypeEnum.UnknownTask:\n        return `${prefix}/guidance`;\n      case NormalizedBpmnTypeEnum.SequenceFlow:\n        return `${prefix}/link-to-task`;\n      case NormalizedBpmnTypeEnum.EscalationEvent:\n        return `${prefix}/escalate`;\n      case NormalizedBpmnTypeEnum.Gateway:\n        return `${prefix}/gateway`;\n      case NormalizedBpmnTypeEnum.EndEvent:\n      case NormalizedBpmnTypeEnum.StartEvent:\n        return `${prefix}/event`;\n      case NormalizedBpmnTypeEnum.SubProcess:\n        return `${prefix}/sub-process`;\n      case NormalizedBpmnTypeEnum.CallActivity:\n        return `${prefix}/call-activity`;\n    }\n  }\n\n  get canCreateSubProcessFromSelectedItems() {\n    return (\n      this.workflowEditorState.selectedItems.length > 1\n      && this.workflowEditorFeature.getBPMNToDisplay()?.type !== BpmnTaskTypeEnum.SubProcess\n      && this.workflowEditorFeature.areSelectedElementsOnSamePath()\n      && !this.workflowEditorState.selectedItems.some(\n        (item) => item.type === BpmnEventTypeEnum.StartEvent,\n      )\n    );\n  }\n\n  get deleteButtonText() {\n    const currentItemType = this.workflowEditorState.currentWorkflowItem\n      ? WorkflowBpmnParser.getNormalizedTypeForElement(\n          this.workflowEditorState.currentWorkflowItem.type,\n        )\n      : null;\n\n    if (currentItemType === NormalizedBpmnTypeEnum.SubProcess) {\n      return 'Delete Group';\n    }\n\n    return `Delete Step${(this.workflowEditorState.selectedItems?.length ?? 0) > 1 ? 's' : ''}`;\n  }\n\n  @action\n  public handleOpenSubProcess() {\n    return this.workflowEditorSubProcessService.setCurrentSubProcess(\n      this.workflowEditorState.currentWorkflowItem,\n    );\n  }\n\n  @action\n  public handleCreateSubProcess() {\n    return this.workflowEditorFeature.createSubProcessWithSelectedElements();\n  }\n\n  @action\n  public handleClickJumpTo() {\n    const targetId = this.workflowEditorState.currentWorkflowItem?.target?.id;\n    if (!targetId) return;\n\n    this.workflowEditorState.scrollToItemId = targetId;\n  }\n}\n","import type { ShapeImpl } from 'bpmn-js/custom';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorSelectionInternalService from 'client/features/workflow-editor/services/internal-feature/selection';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { BpmnTaskTypeEnum } from 'client/features/workflow-editor/configuration';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\ninterface ItemConfigurationPanelButtonArgs {\n  workflowItems: WorkflowEditorFeatureState['selectedItems'];\n  text: string;\n}\n\nexport default class WorkflowEditorItemConfigurationPanelDeleteButtonComponent extends Component<ItemConfigurationPanelButtonArgs> {\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n  @service('feature/workflow-editor/internal-feature/selection')\n  private workflowEditorSelection: WorkflowEditorSelectionInternalService;\n\n  @service private eventBus: EventBusService;\n\n  @tracked isDisabled: boolean;\n\n  constructor(owner: unknown, args: ItemConfigurationPanelButtonArgs) {\n    super(owner, args);\n\n    this.computeIsDisabled();\n    this.eventBus.on(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, this.computeIsDisabled);\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.eventBus.off(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, this.computeIsDisabled);\n  }\n\n  @action\n  computeIsDisabled() {\n    const hasMultipleSubProcesses =\n      this.args.workflowItems?.filter((item) => this.isSubProcess(item)).length > 1;\n\n    this.isDisabled =\n      hasMultipleSubProcesses\n      || this.args.workflowItems?.some((item) =>\n        this.workflowEditorFeature.getIsDeleteButtonDisabled(item),\n      );\n  }\n\n  @action\n  async handleDeleteCards() {\n    this.workflowEditorSelection.deleteSteps(this.args.workflowItems);\n  }\n\n  private isSubProcess(item: ShapeImpl) {\n    return item.type === BpmnTaskTypeEnum.SubProcess;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  @iconName=\\\"close\\\"\\n  @isIconAfterText={{true}}\\n  @onClick={{this.handleDeleteCards}}\\n  @text={{@text}}\\n  @type=\\\"ghost\\\"\\n  disabled={{this.isDisabled}}\\n  class=\\\"c-feature-workflow-editor-item-configuration-panel-delete-button\\\"\\n  data-test-feature-workflow-editor-item-configuration-panel-delete-button\\n  {{did-update this.computeIsDisabled @workflowItems}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/delete-button/template.hbs' });\n","import type {\n  BpmnItemType,\n  BpmnServiceTaskAlternativeEnum,\n} from 'client/features/workflow-editor/configuration';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ninterface ItemConfigurationPanelDescriptionArgs {\n  currentWorkflowItem: WorkflowEditorFeatureState['currentWorkflowItem'] | null;\n  label?: string;\n}\n\nexport default class WorkflowEditorItemConfigurationPanelDescriptionComponent extends Component<ItemConfigurationPanelDescriptionArgs> {\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n\n  @tracked description: string | null = null;\n  @tracked placeholder: string | null = null;\n  @tracked currentItemId: string | null = null;\n\n  constructor(owner: unknown, args: ItemConfigurationPanelDescriptionArgs) {\n    super(owner, args);\n\n    this.computePlaceholderAndDescription();\n  }\n\n  get label() {\n    if (this.args.label) {\n      return this.args.label;\n    }\n    return this.isAIPowered ? 'Prompt' : 'Instruction';\n  }\n\n  get isAIPowered() {\n    return this.args.currentWorkflowItem.type === 'bpmn:ServiceTask';\n  }\n\n  @action\n  handleDescriptionUpdate(description: string) {\n    this.workflowEditorFeature.updateElementDescription(this.args.currentWorkflowItem, description);\n    this.description = description;\n  }\n\n  @action\n  async handleWorkflowItemChange() {\n    await this.computePlaceholderAndDescription();\n  }\n\n  private async computePlaceholderAndDescription() {\n    const { type, businessObject, id } = this.args.currentWorkflowItem;\n\n    if (id === this.currentItemId) return;\n\n    this.placeholder = await this.workflowEditorFeature.getDescriptionPlaceholderForElement(\n      type as BpmnItemType,\n      businessObject?.alternative as BpmnServiceTaskAlternativeEnum,\n      businessObject?.mcpServerId as string | undefined,\n    );\n    this.description = this.workflowEditorFeature.getDescriptionForTask(\n      this.args.currentWorkflowItem,\n    );\n    this.currentItemId = this.args.currentWorkflowItem?.id ?? null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel\\n  @label={{this.label}}\\n  @position=\\\"top\\\"\\n  class=\\\"c-feature-workflow-editor-item-configuration-panel-description c-feature-workflow-editor-item-configuration-panel__label\\\"\\n  data-test-feature-workflow-editor-item-configuration-panel-description\\n  ...attributes\\n>\\n  <Shared::BetaTextarea\\n    @value={{one-way this.description}}\\n    @onChange={{this.handleDescriptionUpdate}}\\n    @placeholder={{this.placeholder}}\\n    @autoGrow={{true}}\\n    rows={{4}}\\n    {{did-update this.handleWorkflowItemChange @currentWorkflowItem}}\\n    data-test-feature-workflow-editor-item-configuration-panel-description-input\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/description/template.hbs' });\n","import type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport {\n  BpmnEventTypeEnum,\n  BpmnTaskLinkTypeEnum,\n} from 'client/features/workflow-editor/configuration';\n\nexport default class WorkflowEditorItemConfigurationPanelDuplicateButtonComponent extends Component {\n  @service('feature/workflow-editor')\n  private readonly workflowEditorFeature: WorkflowEditorFeatureService;\n\n  @service('feature/workflow-editor/state')\n  private readonly workflowEditorState: WorkflowEditorFeatureState;\n\n  public get buttonId() {\n    return guidFor(this);\n  }\n\n  public get hasUnduplicableItems() {\n    return this.workflowEditorState.selectedItems.some((item) =>\n      [\n        BpmnEventTypeEnum.EndEvent,\n        BpmnEventTypeEnum.StartEvent,\n        BpmnTaskLinkTypeEnum.LinkTo,\n      ].includes(item.type as BpmnEventTypeEnum | BpmnTaskLinkTypeEnum),\n    );\n  }\n\n  public get hasItemsAcrossMultipleGateways() {\n    const gatewaysOutgoings = new Set(\n      this.workflowEditorState.selectedItems\n        .map((item) => this.workflowEditorFeature.getClosestGatewayOutgoing(item))\n        .filter(Boolean),\n    );\n\n    return gatewaysOutgoings.size > 1;\n  }\n\n  public get isDisabled() {\n    return this.hasUnduplicableItems || this.hasItemsAcrossMultipleGateways;\n  }\n\n  public get numberOfSelectedItems() {\n    return this.workflowEditorState.selectedItems.length;\n  }\n\n  @action\n  public handleClickDuplicate() {\n    this.workflowEditorFeature.setSelectedItems(\n      this.workflowEditorFeature.duplicateItems(this.workflowEditorState.selectedItems),\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  id={{this.buttonId}}\\n  @onClick={{this.handleClickDuplicate}}\\n  @text=\\\"Duplicate {{word-pluralize \\'Step\\' this.numberOfSelectedItems}}\\\"\\n  @type=\\\"ghost\\\"\\n  @iconName=\\\"content_copy\\\"\\n  @isIconAfterText={{true}}\\n  disabled={{this.isDisabled}}\\n  class=\\\"c-feature-workflow-editor-item-configuration-panel-duplicate-button\\\"\\n  data-test-feature-workflow-editor-item-configuration-panel-duplicate-button\\n/>\\n{{#if this.isDisabled}}\\n  <Shared::Feedback::BetaTooltip\\n    @targetId={{this.buttonId}}\\n    @side=\\\"left\\\"\\n    data-test-feature-workflow-editor-item-configuration-panel-duplicate-button-tooltip\\n  >\\n    {{#if this.hasUnduplicableItems}}\\n      Your selection contains steps that can\\'t be duplicated (Start, End, Go To).\\n    {{else}}\\n      Can\\'t duplicate steps from different branches.\\n    {{/if}}\\n  </Shared::Feedback::BetaTooltip>\\n{{/if}}\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/duplicate-button/template.hbs' });\n","import type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class WorkflowEditorItemConfigurationPanelEmptyStateComponent extends Component {\n  @service('feature/workflow-editor/state') public workflowEditorState: WorkflowEditorFeatureState;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-editor-item-configuration-panel-empty-state\\\"\\n  data-test-feature-workflow-editor-item-configuration-panel-empty-state\\n  ...attributes\\n>\\n  <div class=\\\"c-feature-workflow-editor-item-configuration-panel-empty-state__icon-container\\\">\\n    {{#if this.workflowEditorState.selectedItems.length}}\\n      <Shared::Svg\\n        @src=\\\"/img/icons/icon--double-cursor.svg\\\"\\n        alt=\\\"click\\\"\\n        class={{shared/get-classes-with-modifiers\\n          \\'c-feature-workflow-editor-item-configuration-panel-empty-state__icon\\'\\n          selected-items=true\\n        }}\\n        data-test-feature-workflow-editor-item-configuration-panel-empty-state-icon\\n      />\\n    {{else}}\\n      <Shared::Svg\\n        @src=\\\"/img/icons/arrow-cursor-click-2-streamline-flex.svg\\\"\\n        alt=\\\"click\\\"\\n        class=\\\"c-feature-workflow-editor-item-configuration-panel-empty-state__icon\\\"\\n        data-test-feature-workflow-editor-item-configuration-panel-empty-state-icon\\n      />\\n    {{/if}}\\n  </div>\\n  <div>\\n    <p\\n      class=\\\"c-feature-workflow-editor-item-configuration-panel-empty-state__title\\\"\\n      data-test-feature-workflow-editor-item-configuration-panel-empty-state-title\\n    >\\n      {{if\\n        this.workflowEditorState.selectedItems.length\\n        (concat this.workflowEditorState.selectedItems.length \\' Steps selected\\')\\n        \\'Select a Step\\'\\n      }}\\n    </p>\\n    <p\\n      class=\\\"c-feature-workflow-editor-item-configuration-panel-empty-state__description\\\"\\n      data-test-feature-workflow-editor-item-configuration-panel-empty-state-description\\n    >\\n      {{if\\n        this.workflowEditorState.selectedItems.length\\n        \\'Subsequent actions (Drag & Drop, Delete, etc...) will impact all selected steps.\\'\\n        \\'Please select an element on the canvas to edit its settings.\\'\\n      }}\\n    </p>\\n  </div>\\n</div>\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/empty-state/template.hbs' });\n","import type { ShapeImpl } from 'bpmn-js/custom';\nimport type InboxModel from 'client/data/models/inbox';\nimport type CustomizationCenterFeatureService from 'client/features/customization-center/services/feature';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorErrorHandlingInternalFeatureService from 'client/features/workflow-editor/services/internal-feature/error-handling';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\nimport type { AbilitiesService } from 'ember-can';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { InboxTypeEnum } from 'client/data/models/inbox';\nimport { CustomizationCenterConfigurationFeaturesEnum } from 'client/features/customization-center/services/internal-business/configuration';\n\ninterface ItemConfigurationPanelEscalateArgs {\n  workflowItem: ShapeImpl;\n}\n\nexport default class WorkflowEditorItemConfigurationPanelEscalateComponent extends Component<ItemConfigurationPanelEscalateArgs> {\n  @service private abilities: AbilitiesService;\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n  @service('feature/workflow-editor/state') private workflowEditorState: WorkflowEditorFeatureState;\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n  @service('feature/customization-center')\n  private customizationCenterFeature: CustomizationCenterFeatureService;\n\n  @service('feature/workflow-editor/internal-feature/error-handling')\n  private errorHandlingService: WorkflowEditorErrorHandlingInternalFeatureService;\n\n  get inboxes() {\n    return this.workflowEditorFeature.getInboxesForEscalation();\n  }\n\n  public get shouldDisplayError() {\n    return (\n      !!this.args.workflowItem.businessObject?.inboxId\n      && this.errorHandlingService.isEscalationElementInError(this.args.workflowItem)\n    );\n  }\n\n  @action\n  handleInboxUpdate(inboxId: string) {\n    this.workflowEditorFeature.updateCurrentWorkflowItemProperties({ inboxId });\n  }\n\n  @action\n  handleCreateInbox() {\n    if (this.abilities.can('preview inbox')) {\n      return this.customizationCenterFeature.openCustomizationCenterModal(\n        CustomizationCenterConfigurationFeaturesEnum.Inbox,\n      );\n    }\n    return this.inboxFeature.handleOpenCreationModal({\n      onInboxCreated: this.handleInboxCreated,\n      collection: this.workflowEditorState.currentCollection,\n      type: InboxTypeEnum.Workflow,\n    });\n  }\n\n  @action\n  handleInboxCreated(inbox: InboxModel) {\n    this.workflowEditorFeature.updateCurrentWorkflowItemProperties({ inboxId: inbox.id });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::WorkflowEditor::ItemConfigurationPanel::Name @currentWorkflowItem={{@workflowItem}} />\\n<Shared::BetaLabel\\n  @label=\\\"Inbox\\\"\\n  @position=\\\"top\\\"\\n  class=\\\"c-feature-workflow-editor-item-configuration-panel-escalate__label\\\"\\n  ...attributes\\n>\\n  <Shared::BetaSelect\\n    @options={{this.inboxes}}\\n    @namePath=\\\"name\\\"\\n    @valuePath=\\\"id\\\"\\n    @value={{one-way @workflowItem.businessObject.inboxId}}\\n    @onChange={{this.handleInboxUpdate}}\\n    @defaultOption=\\\"New inbox\\\"\\n    @onSelectDefault={{this.handleCreateInbox}}\\n    data-test-feature-workflow-editor-item-configuration-panel-escalate-inbox-select\\n  >\\n    <:before-item-default-option>\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName=\\\"add\\\"\\n        @size=\\\"custom\\\"\\n        data-test-feature-workflow-editor-item-configuration-panel-escalate-inbox-add-icon\\n      />\\n    </:before-item-default-option>\\n  </Shared::BetaSelect>\\n\\n  {{#if this.shouldDisplayError}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"error\\\"\\n      @canHide={{false}}\\n      @message=\\\"The inbox previously selected has been deleted.\\\"\\n      class=\\\"c-feature-workflow-editor-item-configuration-panel-escalate__notification\\\"\\n      data-test-feature-workflow-editor-item-configuration-panel-escalate-inbox-not-found\\n    />\\n  {{/if}}\\n</Shared::BetaLabel>\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/escalate/template.hbs' });\n","import type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface ItemConfigurationPanelEventArgs {\n  workflowItem: Element | null;\n}\n\nexport default class WorkflowEditorItemConfigurationPanelEventComponent extends Component<ItemConfigurationPanelEventArgs> {\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n\n  get isInSubProcess() {\n    return this.workflowEditorFeature.isInSubProcess();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::WorkflowEditor::ItemConfigurationPanel::Name @currentWorkflowItem={{@workflowItem}} />\\n\\n{{#unless\\n  (or\\n    (eq @workflowItem.type \\'bpmn:StartEvent\\')\\n    (and (eq @workflowItem.type \\'bpmn:EndEvent\\') this.isInSubProcess)\\n  )\\n}}\\n  <Feature::WorkflowEditor::ItemConfigurationPanel::Description\\n    @label=\\\"Message\\\"\\n    @currentWorkflowItem={{@workflowItem}}\\n  />\\n{{/unless}}\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/event/template.hbs' });\n","import type { BpmnElement, ConnectionImpl, ShapeImpl } from 'bpmn-js/custom';\nimport type { ReorderParameters } from 'client/features/folder/services/internal-business/reorder-handler';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type { ColorsEnum } from 'client/shared/components/input-with-color-presets/component';\nimport type { SortableEvent } from 'sortablejs';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\ninterface ItemConfigurationPanelGatewayArgs {\n  workflowItem: ShapeImpl;\n}\n\nexport interface GatewayOptions {\n  name: string;\n  buttonColor: ColorsEnum;\n}\n\nexport default class WorkflowEditorItemConfigurationPanelGatewayComponent extends Component<ItemConfigurationPanelGatewayArgs> {\n  @service private eventBus: EventBusService;\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n  @service('feature/workflow-editor/state') public workflowEditorState: WorkflowEditorFeatureState;\n\n  @tracked public outgoings: ConnectionImpl[];\n\n  constructor(owner: unknown, args: ItemConfigurationPanelGatewayArgs) {\n    super(owner, args);\n\n    this.computeOutgoings();\n    this.eventBus.on(\n      EventBusEventsEnum.WorkflowEditorOutgoingUpdated,\n      this.handleGatewayOutgoingUpdated,\n    );\n  }\n\n  @action\n  public async handleAddOption() {\n    this.workflowEditorFeature.addOptionToGateway(this.args.workflowItem);\n\n    await waitForNextRunLoop();\n    this.focusLastOptionInput();\n  }\n\n  @action\n  public async handleRemoveOption(connection: ConnectionImpl) {\n    if (this.args.workflowItem.outgoing.length === 1) return;\n\n    this.workflowEditorFeature.confirmRemoveOptionFromGateway(this.args.workflowItem, connection);\n  }\n\n  @action\n  public handleGoToOption(connection: ConnectionImpl) {\n    this.workflowEditorFeature.uncollapsePathsToElements([connection.target]);\n\n    this.workflowEditorState.scrollToItemId = connection.businessObject?.isLinkTo\n      ? connection.id\n      : connection.target.id;\n  }\n\n  @action\n  public async handleGatewayOutgoingUpdated(workflowItem: BpmnElement) {\n    if (workflowItem !== this.args.workflowItem) return;\n\n    this.computeOutgoings();\n    await this.centerGatewayInView();\n  }\n\n  private computeOutgoings() {\n    this.outgoings = this.args.workflowItem?.outgoing;\n  }\n\n  @action\n  public handleReorderOptions(\n    _event: SortableEvent,\n    parameters: ReorderParameters<ConnectionImpl>,\n  ) {\n    this.workflowEditorFeature.reorderGatewayOptions(this.args.workflowItem, parameters.toIds);\n  }\n\n  @action\n  public async focusSelectedOptionInput() {\n    if (!this.workflowEditorState.gatewayConnectionIdToFocus) return;\n\n    const input = document.querySelector<HTMLInputElement>(\n      `.js-feature-workflow-editor-item-configuration-panel-gateway-option[data-gateway-outgoing-id=\"${this.workflowEditorState.gatewayConnectionIdToFocus}\"] input`,\n    );\n    input?.focus();\n\n    await waitForNextRunLoop();\n    this.workflowEditorFeature.setGatewayConnectionToFocus(null);\n  }\n\n  readonly decisionMakerOptions = [\n    { label: 'User', value: false },\n    { label: 'AI', value: true },\n  ];\n\n  @action\n  public handleChangeAiDecision(value: boolean) {\n    this.workflowEditorFeature.updateCurrentWorkflowItemProperties({ aiDecision: value });\n  }\n\n  private focusLastOptionInput() {\n    const inputs = document.querySelectorAll<HTMLInputElement>(\n      '.js-feature-workflow-editor-item-configuration-panel-gateway-option input',\n    );\n    const input = inputs[inputs.length - 1];\n\n    input?.focus();\n\n    input?.scrollIntoView({\n      block: 'center',\n    });\n  }\n\n  private async centerGatewayInView() {\n    await waitForNextRunLoop();\n    this.workflowEditorState.scrollToItemId = this.args.workflowItem.id;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-update (fn this.handleGatewayOutgoingUpdated @workflowItem) @workflowItem}}\\n<Feature::WorkflowEditor::ItemConfigurationPanel::Name @currentWorkflowItem={{@workflowItem}} />\\n\\n<Feature::WorkflowEditor::ItemConfigurationPanel::Description\\n  @currentWorkflowItem={{@workflowItem}}\\n  @label=\\\"Question\\\"\\n/>\\n\\n<Shared::BetaLabel\\n  @label=\\\"Decision maker\\\"\\n  @position=\\\"top\\\"\\n  data-test-feature-workflow-editor-item-configuration-panel-gateway-ai-decision\\n>\\n  <:after-label>\\n    <Shared::Feedback::BetaInfoTooltip>\\n      <p>The user decides interactively, or the AI decides based on the workflow context.</p>\\n    </Shared::Feedback::BetaInfoTooltip>\\n  </:after-label>\\n  <:default>\\n    <Shared::BetaSelect\\n      @options={{this.decisionMakerOptions}}\\n      @namePath=\\\"label\\\"\\n      @valuePath=\\\"value\\\"\\n      @value={{if @workflowItem.businessObject.aiDecision true false}}\\n      @onChange={{this.handleChangeAiDecision}}\\n    />\\n  </:default>\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel\\n  @label=\\\"Options\\\"\\n  @position=\\\"top\\\"\\n  class=\\\"c-feature-workflow-editor-item-configuration-panel-gateway__label\\\"\\n  {{on \\'click\\' (prevent-default)}}\\n  {{did-insert this.focusSelectedOptionInput}}\\n  {{did-update this.focusSelectedOptionInput this.workflowEditorState.gatewayConnectionIdToFocus}}\\n>\\n  <div\\n    class=\\\"c-feature-workflow-editor-item-configuration-panel-gateway__options\\\"\\n    {{sortablejs-group\\n      (hash handle=\\'.c-feature-workflow-editor-item-configuration-panel-gateway__option-icon-drag\\')\\n      onChange=this.handleReorderOptions\\n      disabled=(eq this.outgoings.length 1)\\n    }}\\n  >\\n    {{#each this.outgoings key=\\'id\\' as |outgoing index|}}\\n      {{#if (eq outgoing.type \\'bpmn:SequenceFlow\\')}}\\n        <div\\n          class=\\\"c-feature-workflow-editor-item-configuration-panel-gateway__option-wrapper\\\"\\n          {{sortablejs-item outgoing}}\\n        >\\n          <div class=\\\"c-feature-workflow-editor-item-configuration-panel-gateway__option\\\">\\n            <Shared::DataDisplay::BetaIcon\\n              @size=\\\"custom\\\"\\n              @iconName=\\\"drag_indicator\\\"\\n              class=\\\"c-feature-workflow-editor-item-configuration-panel-gateway__option-icon-drag\\\"\\n            />\\n            <Feature::WorkflowEditor::ItemConfigurationPanel::Button\\n              @workflowItem={{outgoing}}\\n              @placeholder=\\\"Name the option\\\"\\n              class=\\\"c-feature-workflow-editor-item-configuration-panel-gateway__option-input js-feature-workflow-editor-item-configuration-panel-gateway-option\\\"\\n              data-gateway-outgoing-id={{outgoing.id}}\\n              data-test-feature-workflow-editor-item-configuration-panel-gateway-option-input-color={{index}}\\n            />\\n            <Shared::DataDisplay::BetaIcon\\n              @iconName=\\\"remove_circle_outline\\\"\\n              @size=\\\"custom\\\"\\n              class={{get-classes-with-modifiers\\n                \\'c-feature-workflow-editor-item-configuration-panel-gateway__option-icon-delete\\'\\n                disabled=(eq this.outgoings.length 1)\\n              }}\\n              {{on \\'click\\' (fn this.handleRemoveOption outgoing)}}\\n              data-test-feature-workflow-editor-item-configuration-panel-gateway-option-delete={{index}}\\n            />\\n          </div>\\n          <div>\\n            <Shared::Svg\\n              @src=\\\"/img/icons/icon--frame-inspect.svg\\\"\\n              class=\\\"c-feature-workflow-editor-item-configuration-panel-gateway__option-icon-goto\\\"\\n              {{on \\'click\\' (fn this.handleGoToOption outgoing)}}\\n              data-test-feature-workflow-editor-item-configuration-panel-gateway-option-goto={{index}}\\n            />\\n            <Shared::Feedback::BetaTooltip\\n              @text=\\\"Focus on canvas\\\"\\n              @side=\\\"top-end\\\"\\n              @showDelay={{200}}\\n            />\\n          </div>\\n        </div>\\n      {{/if}}\\n    {{/each}}\\n  </div>\\n  <div\\n    class=\\\"c-feature-workflow-editor-item-configuration-panel-gateway__add-option\\\"\\n    data-test-feature-workflow-editor-item-configuration-panel-gateway-add-option\\n    role=\\\"button\\\"\\n    {{on \\'click\\' this.handleAddOption}}\\n  >\\n    <Shared::DataDisplay::BetaIcon @iconName=\\\"add_circle_outline\\\" @size=\\\"small\\\" />\\n    <span>Add Option</span>\\n  </div>\\n</Shared::BetaLabel>\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/gateway/template.hbs' });\n","import type { BpmnElement } from 'bpmn-js/custom';\nimport type { Element } from 'bpmn-js/lib/model/Types';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorErrorHandlingInternalFeatureService from 'client/features/workflow-editor/services/internal-feature/error-handling';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport {\n  BpmnServiceTaskAlternativeEnum,\n  BpmnTaskTypeEnum,\n} from 'client/features/workflow-editor/configuration';\n\ninterface ItemConfigurationPanelUserTaskArgs {\n  workflowItem: Element;\n}\n\nexport default class WorkflowEditorItemConfigurationPanelGuidanceComponent extends Component<ItemConfigurationPanelUserTaskArgs> {\n  @service('feature/workflow-editor/state') public workflowEditorState: WorkflowEditorFeatureState;\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n\n  @service('feature/workflow-editor/internal-feature/error-handling')\n  private errorHandlingService: WorkflowEditorErrorHandlingInternalFeatureService;\n\n  get buttonColor() {\n    return this.args.workflowItem.businessObject.buttonColor;\n  }\n\n  get outgoingFlow() {\n    return this.args.workflowItem.outgoing.find((flow) => flow.type === 'bpmn:SequenceFlow');\n  }\n\n  readonly automationOptions = [\n    { label: 'Requires user validation', value: false },\n    { label: 'Automatic', value: true },\n  ];\n\n  readonly completionTypeOptions = [\n    { label: 'Simple completion', value: 'simple' },\n    { label: 'Requires user input', value: 'user-input' },\n  ];\n\n  readonly inputTypeOptions = [{ label: 'Free text', value: 'free-text' }];\n\n  get isUserTask() {\n    return this.args.workflowItem.type === BpmnTaskTypeEnum.UserTask;\n  }\n\n  get completionType() {\n    return this.args.workflowItem.businessObject.completionType || 'simple';\n  }\n\n  get isUserInputCompletion() {\n    return this.completionType === 'user-input';\n  }\n\n  @action\n  handleCompletionTypeChange(value: 'simple' | 'user-input') {\n    this.workflowEditorFeature.updateCurrentWorkflowItemProperties({\n      completionType: value,\n      inputType: value === 'user-input' ? 'free-text' : undefined,\n    });\n  }\n\n  @action\n  handleInputTypeChange(value: string) {\n    this.workflowEditorFeature.updateCurrentWorkflowItemProperties({ inputType: value });\n  }\n\n  public get shouldDisplayMcpServerError() {\n    return (\n      !!this.args.workflowItem.businessObject?.mcpServerId\n      && this.errorHandlingService.isMcpServerElementInError(this.args.workflowItem as BpmnElement)\n    );\n  }\n\n  public get shouldDisplayExecutionDropdown() {\n    return (\n      this.args.workflowItem.type === BpmnTaskTypeEnum.ServiceTask\n      && [\n        BpmnServiceTaskAlternativeEnum.McpServer,\n        BpmnServiceTaskAlternativeEnum.TriggerAction,\n      ].includes(this.args.workflowItem.businessObject?.alternative)\n    );\n  }\n\n  @action\n  public handleAutomaticExecutionChange(value: boolean) {\n    this.workflowEditorFeature.updateCurrentWorkflowItemProperties({ automaticExecution: value });\n  }\n\n  get shouldShowAutomaticDropdown() {\n    return this.args.workflowItem.type === BpmnTaskTypeEnum.ServiceTask;\n  }\n\n  @action\n  handleAutomaticCompletionChange(value: boolean) {\n    this.workflowEditorFeature.updateCurrentWorkflowItemProperties({\n      automaticCompletion: value,\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.shouldDisplayMcpServerError}}\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"error\\\"\\n    @canHide={{false}}\\n    @message=\\\"The MCP server previously configured has been deleted.\\\"\\n    data-test-feature-workflow-editor-item-configuration-panel-guidance-mcp-server-not-found\\n  />\\n{{/if}}\\n\\n<Feature::WorkflowEditor::ItemConfigurationPanel::Name @currentWorkflowItem={{@workflowItem}} />\\n\\n<Feature::WorkflowEditor::ItemConfigurationPanel::Description\\n  @currentWorkflowItem={{@workflowItem}}\\n/>\\n{{#if\\n  (and\\n    (eq @workflowItem.businessObject.alternative \\'load-related-record\\')\\n    (not this.workflowEditorState.currentCollection.hasRelationship)\\n  )\\n}}\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"warning\\\"\\n    @message=\\\"No relationship found for records in the {{this.workflowEditorState.currentCollection.singularizedDisplayName}} collection\\\"\\n    data-test-feature-workflow-editor-item-configuration-panel-notification-related-data\\n  />\\n{{/if}}\\n{{#if this.shouldDisplayExecutionDropdown}}\\n  <Shared::BetaLabel\\n    @label=\\\"Execution\\\"\\n    @position=\\\"top\\\"\\n    class=\\\"c-feature-workflow-editor-item-configuration-panel-guidance__label\\\"\\n    data-test-feature-workflow-editor-item-configuration-panel-guidance-execution-dropdown\\n  >\\n    <:after-label>\\n      <Shared::Feedback::BetaInfoTooltip>\\n        <p>\\n          In automatic mode, the AI executes the tool without asking for confirmation. Use this when\\n          you trust the AI\\'s suggestions.\\n        </p>\\n      </Shared::Feedback::BetaInfoTooltip>\\n    </:after-label>\\n    <:default>\\n      <Shared::BetaSelect\\n        @options={{this.automationOptions}}\\n        @namePath=\\\"label\\\"\\n        @valuePath=\\\"value\\\"\\n        @value={{if @workflowItem.businessObject.automaticExecution true false}}\\n        @onChange={{this.handleAutomaticExecutionChange}}\\n      />\\n    </:default>\\n  </Shared::BetaLabel>\\n{{/if}}\\n{{#if this.outgoingFlow}}\\n  {{#if this.shouldShowAutomaticDropdown}}\\n    <Shared::BetaLabel\\n      @label=\\\"Step completion\\\"\\n      @position=\\\"top\\\"\\n      class=\\\"c-feature-workflow-editor-item-configuration-panel-guidance__label\\\"\\n      data-test-feature-workflow-editor-item-configuration-panel-guidance-automatic-completion\\n    >\\n      <:after-label>\\n        <Shared::Feedback::BetaInfoTooltip>\\n          <p>In automatic mode, the workflow advances to the next step without waiting for the user.</p>\\n        </Shared::Feedback::BetaInfoTooltip>\\n      </:after-label>\\n      <:default>\\n        <Shared::BetaSelect\\n          @options={{this.automationOptions}}\\n          @namePath=\\\"label\\\"\\n          @valuePath=\\\"value\\\"\\n          @value={{if @workflowItem.businessObject.automaticCompletion true false}}\\n          @onChange={{this.handleAutomaticCompletionChange}}\\n        />\\n      </:default>\\n    </Shared::BetaLabel>\\n  {{/if}}\\n  {{#if this.isUserTask}}\\n    <Shared::BetaLabel\\n      @label=\\\"Completion\\\"\\n      @position=\\\"top\\\"\\n      class=\\\"c-feature-workflow-editor-item-configuration-panel-guidance__label\\\"\\n      data-test-feature-workflow-editor-item-configuration-panel-guidance-completion-type\\n    >\\n      <:after-label>\\n        <Shared::Feedback::BetaInfoTooltip>\\n          {{#if this.isUserInputCompletion}}\\n            <p>User submits some information to move on to the next step.</p>\\n          {{else}}\\n            <p>User clicks on the completion button to move on to the next step.</p>\\n          {{/if}}\\n        </Shared::Feedback::BetaInfoTooltip>\\n      </:after-label>\\n      <:default>\\n        <Shared::BetaSelect\\n          @options={{this.completionTypeOptions}}\\n          @namePath=\\\"label\\\"\\n          @valuePath=\\\"value\\\"\\n          @value={{or @workflowItem.businessObject.completionType \\'simple\\'}}\\n          @onChange={{this.handleCompletionTypeChange}}\\n        />\\n      </:default>\\n    </Shared::BetaLabel>\\n\\n    {{#if this.isUserInputCompletion}}\\n      <Shared::BetaLabel\\n        @label=\\\"Input type\\\"\\n        @position=\\\"top\\\"\\n        class=\\\"c-feature-workflow-editor-item-configuration-panel-guidance__label\\\"\\n        data-test-feature-workflow-editor-item-configuration-panel-guidance-input-type\\n      >\\n        <Shared::BetaSelect\\n          @options={{this.inputTypeOptions}}\\n          @namePath=\\\"label\\\"\\n          @valuePath=\\\"value\\\"\\n          @value={{or @workflowItem.businessObject.inputType \\'free-text\\'}}\\n          @onChange={{this.handleInputTypeChange}}\\n        />\\n      </Shared::BetaLabel>\\n      <Shared::BetaLabel\\n        @label=\\\"Submit button\\\"\\n        @position=\\\"top\\\"\\n        class=\\\"c-feature-workflow-editor-item-configuration-panel-guidance__label\\\"\\n      >\\n        <Feature::WorkflowEditor::ItemConfigurationPanel::Button\\n          @workflowItem={{this.outgoingFlow}}\\n          @placeholder=\\\"Submit\\\"\\n          data-test-feature-workflow-editor-item-configuration-panel-guidance-button\\n        />\\n      </Shared::BetaLabel>\\n    {{else}}\\n      <Shared::BetaLabel\\n        @label=\\\"Completion button\\\"\\n        @position=\\\"top\\\"\\n        class=\\\"c-feature-workflow-editor-item-configuration-panel-guidance__label\\\"\\n      >\\n        <Feature::WorkflowEditor::ItemConfigurationPanel::Button\\n          @workflowItem={{this.outgoingFlow}}\\n          data-test-feature-workflow-editor-item-configuration-panel-guidance-button\\n        />\\n      </Shared::BetaLabel>\\n    {{/if}}\\n  {{else}}\\n    <Shared::BetaLabel\\n      @label=\\\"Completion button\\\"\\n      @position=\\\"top\\\"\\n      class=\\\"c-feature-workflow-editor-item-configuration-panel-guidance__label\\\"\\n    >\\n      <Feature::WorkflowEditor::ItemConfigurationPanel::Button\\n        @workflowItem={{this.outgoingFlow}}\\n        data-test-feature-workflow-editor-item-configuration-panel-guidance-button\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n{{/if}}\\n\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/guidance/template.hbs' });\n","import type { Element } from 'bpmn-js/lib/model/Types';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport {\n  type BpmnItemType,\n  BpmnServiceTaskAlternativeEnum,\n  getBpmnItemByAlternativeOrType,\n} from 'client/features/workflow-editor/configuration';\n\ninterface ItemConfigurationPanelHeaderArgs {\n  item: Element;\n}\n\nexport default class WorkflowEditorItemConfigurationPanelHeaderComponent extends Component<ItemConfigurationPanelHeaderArgs> {\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n  @service('feature/mcp-server') private mcpServerFeature: McpServerFeatureService;\n\n  @tracked private mcpServerName: string | null = null;\n  @tracked public mcpServerUrl: string | null = null;\n\n  constructor(owner: unknown, args: ItemConfigurationPanelHeaderArgs) {\n    super(owner, args);\n\n    if (this.args.item.businessObject?.alternative === BpmnServiceTaskAlternativeEnum.McpServer) {\n      void this.loadMcpServer();\n    }\n  }\n\n  get title() {\n    if (\n      this.args.item.businessObject?.alternative === BpmnServiceTaskAlternativeEnum.McpServer\n      && this.mcpServerName\n    ) {\n      return `${this.mcpServerName} Task`;\n    }\n\n    return (\n      getBpmnItemByAlternativeOrType(\n        this.args.item.type as BpmnItemType,\n        this.args.item.businessObject?.alternative,\n      )?.name || null\n    );\n  }\n\n  get isMcpServer(): boolean {\n    return this.args.item.businessObject?.alternative === BpmnServiceTaskAlternativeEnum.McpServer;\n  }\n\n  private async loadMcpServer() {\n    const mcpServerId = this.args.item.businessObject?.mcpServerId;\n\n    if (mcpServerId) {\n      const mcpServer = await this.workflowEditorFeature.getMCPServerById(mcpServerId, false);\n      this.mcpServerName = mcpServer?.serverName || null;\n      this.mcpServerUrl = mcpServer?.serverUrl || null;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-editor-item-configuration-panel-header\\\"\\n  data-test-feature-workflow-editor-item-configuration-panel-header\\n  ...attributes\\n>\\n  {{#if (and this.isMcpServer this.mcpServerUrl)}}\\n    <Feature::McpServer::Icon\\n      @serverUrl={{this.mcpServerUrl}}\\n      class=\\\"c-feature-workflow-editor-item-configuration-panel-header__icon\\\"\\n      data-test-feature-workflow-editor-item-configuration-panel-header-mcp-icon\\n    />\\n  {{else}}\\n    <Feature::WorkflowEditor::BpmnTypeIcon\\n      @alternative={{@item.businessObject.alternative}}\\n      @type={{@item.type}}\\n      class=\\\"c-feature-workflow-editor-item-configuration-panel-header__icon\\\"\\n      data-test-feature-workflow-editor-item-configuration-panel-header-image\\n      alt=\\\"{{this.title}} icon\\\"\\n    />\\n  {{/if}}\\n  <p data-test-feature-workflow-editor-item-configuration-panel-header-title>{{this.title}}</p>\\n</div>\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/header/template.hbs' });\n","import type { ShapeImpl } from 'bpmn-js/custom';\nimport type { ModdleElement } from 'bpmn-js/lib/BaseViewer';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { KEY } from 'client/utils/keyboard';\n\ninterface ItemConfigurationPanelLinkToTaskArgs {\n  workflowItem: ModdleElement;\n}\n\nexport default class WorkflowEditorItemConfigurationPanelLinkToTaskComponent extends Component<ItemConfigurationPanelLinkToTaskArgs> {\n  @service('feature/workflow-editor/state') public workflowEditorState: WorkflowEditorFeatureState;\n  @service('feature/workflow-editor') private workflowEditorService: WorkflowEditorFeatureService;\n\n  @tracked public target: ShapeImpl;\n\n  constructor(owner: unknown, args: ItemConfigurationPanelLinkToTaskArgs) {\n    super(owner, args);\n\n    this.computeTarget();\n    document.addEventListener('keydown', this.handlePressEscape);\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    document.removeEventListener('keydown', this.handlePressEscape);\n    this.workflowEditorService.setLinkToSelectMode(false);\n  }\n\n  public get selectButtonText() {\n    if (this.workflowEditorState.isLinkToSelectModeOn) return 'Waiting for selection';\n    if (this.target) return 'Replace';\n    return 'Select on Canvas';\n  }\n\n  @action\n  public computeTarget() {\n    this.target = this.args.workflowItem.target?.businessObject?.isPlaceholder\n      ? null\n      : this.args.workflowItem.target;\n  }\n\n  @action\n  public async handleSelectLinkedCard() {\n    this.workflowEditorService.setLinkToSelectMode(true);\n  }\n\n  @action\n  public handlePressEscape(event: KeyboardEvent) {\n    if (event.key === KEY.ESCAPE) {\n      this.workflowEditorService.setLinkToSelectMode(false);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel\\n  @label=\\\"Target step\\\"\\n  @position=\\\"top\\\"\\n  class=\\\"c-feature-workflow-editor-item-configuration-panel-link-to-task__label\\\"\\n  data-test-feature-workflow-editor-item-configuration-panel-link-to-task-label\\n  {{did-update this.computeTarget @workflowItem.target}}\\n>\\n  <div class=\\\"c-feature-workflow-editor-item-configuration-panel-link-to-task__buttons\\\">\\n    {{#if this.target}}\\n      <Shared::BetaInput\\n        @value={{this.target.businessObject.name}}\\n        @disabled={{true}}\\n        class=\\\"c-feature-workflow-editor-item-configuration-panel-link-to-task__input\\\"\\n        data-test-feature-workflow-editor-item-configuration-panel-link-to-task-target-name\\n      />\\n    {{/if}}\\n    <Shared::Button\\n      @onClick={{this.handleSelectLinkedCard}}\\n      @text={{this.selectButtonText}}\\n      @type=\\\"ghost-orange\\\"\\n      class=\\\"c-feature-workflow-editor-item-configuration-panel-link-to-task__select-button\\\"\\n      data-test-feature-workflow-editor-item-configuration-panel-link-to-task-button\\n    />\\n  </div>\\n  {{#if this.workflowEditorState.isLinkToSelectModeOn}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"info\\\"\\n      @canHide={{false}}\\n      @message=\\\"Press Esc to cancel the selection\\\"\\n      data-test-feature-workflow-editor-item-configuration-panel-link-to-task-info-notification\\n    />\\n  {{/if}}\\n\\n</Shared::BetaLabel>\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/link-to-task/template.hbs' });\n","import type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface ItemConfigurationPanelNameArgs {\n  currentWorkflowItem: Element | null;\n}\n\nexport default class WorkflowEditorItemConfigurationPanelNameComponent extends Component<ItemConfigurationPanelNameArgs> {\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n\n  @action\n  handleNameUpdate(name: string) {\n    this.workflowEditorFeature.updateCurrentWorkflowItemProperties({ name });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel\\n  @label=\\\"Name\\\"\\n  @position=\\\"top\\\"\\n  class=\\\"c-feature-workflow-editor-item-configuration-panel-name c-feature-workflow-editor-item-configuration-panel__label\\\"\\n  data-test-feature-workflow-editor-item-configuration-panel-name\\n  ...attributes\\n>\\n  <Shared::BetaInput\\n    @value={{one-way @currentWorkflowItem.businessObject.name}}\\n    @onChange={{this.handleNameUpdate}}\\n    {{autofocus nestedSelector=\\'input\\'}}\\n    data-test-feature-workflow-editor-item-configuration-panel-name-input\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/name/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::WorkflowEditor::ItemConfigurationPanel::Name @currentWorkflowItem={{@workflowItem}} />\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/sub-process/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-editor-item-configuration-panel\\\"\\n  data-test-feature-workflow-editor-item-configuration-panel\\n  ...attributes\\n>\\n  {{#if this.workflowEditorState.currentWorkflowItem}}\\n    <Feature::WorkflowEditor::ItemConfigurationPanel::Header\\n      @item={{this.workflowEditorState.currentWorkflowItem}}\\n    />\\n  {{/if}}\\n  <div\\n    class={{get-classes-with-modifiers\\n      \\'c-feature-workflow-editor-item-configuration-panel__container\\'\\n      empty-screen=(not this.workflowEditorState.currentWorkflowItem)\\n    }}\\n  >\\n    {{#if this.workflowEditorState.currentWorkflowItem}}\\n      {{#let (component this.workflowItemConfigureComponent) as |WorkflowItemConfigureComponent|}}\\n        <WorkflowItemConfigureComponent\\n          @workflowItem={{this.workflowEditorState.currentWorkflowItem}}\\n        />\\n      {{/let}}\\n    {{else}}\\n      <Feature::WorkflowEditor::ItemConfigurationPanel::EmptyState />\\n    {{/if}}\\n  </div>\\n\\n  {{#if this.workflowEditorState.selectedItems.length}}\\n    <footer class=\\\"c-feature-workflow-editor-item-configuration-panel__footer\\\">\\n      {{#if (eq this.workflowEditorState.currentWorkflowItem.type \\'bpmn:SubProcess\\')}}\\n        <Shared::Button\\n          @type=\\\"ghost-orange\\\"\\n          @size=\\\"small\\\"\\n          @text=\\\"Open Group\\\"\\n          @onClick={{this.handleOpenSubProcess}}\\n          data-test-feature-workflow-editor-item-configuration-panel-open-sub-process\\n        />\\n      {{else if this.canCreateSubProcessFromSelectedItems}}\\n        <Shared::Button\\n          @type=\\\"ghost-orange\\\"\\n          @size=\\\"small\\\"\\n          @text=\\\"Create Group\\\"\\n          @onClick={{this.handleCreateSubProcess}}\\n          data-test-feature-workflow-editor-item-configuration-panel-create-sub-process\\n        />\\n      {{else if (eq this.workflowEditorState.currentWorkflowItem.type \\'bpmn:SequenceFlow\\')}}\\n        <Shared::Button\\n          @isIconAfterText={{true}}\\n          @onClick={{this.handleClickJumpTo}}\\n          @text=\\\"Jump to target\\\"\\n          @type=\\\"ghost-orange\\\"\\n          disabled={{this.workflowEditorState.currentWorkflowItem.target.businessObject.isPlaceholder}}\\n          data-test-feature-workflow-editor-item-configuration-panel-jump-to-button\\n        />\\n      {{/if}}\\n      <Feature::WorkflowEditor::ItemConfigurationPanel::DuplicateButton />\\n      <Feature::WorkflowEditor::ItemConfigurationPanel::DeleteButton\\n        @workflowItems={{this.workflowEditorState.selectedItems}}\\n        @text={{this.deleteButtonText}}\\n        data-test-feature-workflow-editor-item-configuration-panel-delete\\n      />\\n    </footer>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workflow-editor/components/item-configuration-panel/template.hbs' });\n","import type McpServerConfigModel from 'client/data/models/mcp-server-config';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type { BpmnItemType } from 'client/features/workflow-editor/configuration';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from 'tracked-built-ins';\n\nimport BPMN_TASKS, {\n  BpmnEventTypeEnum,\n  BpmnGatewayTypeEnum,\n  BpmnServiceTaskAlternativeEnum,\n  BpmnTaskLinkTypeEnum,\n  BpmnTaskTypeEnum,\n} from 'client/features/workflow-editor/configuration';\n\nexport type PaletteItemType = {\n  title: string;\n  type: BpmnItemType;\n  tooltip: string;\n  alternative?: BpmnServiceTaskAlternativeEnum;\n  mcpServerId?: string;\n  serverUrl?: string | null;\n  hidden?: boolean;\n};\n\ntype PaletteGroup = {\n  title: string;\n  canCreate?: boolean;\n  items: PaletteItemType[];\n};\n\nexport default class WorkflowEditorPaletteComponent extends Component {\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n  @service('feature/workflow') private workflowFeature: WorkflowFeatureService;\n  @service('feature/mcp-server') private mcpServerFeature: McpServerFeatureService;\n  @service('feature/workflow-editor/state')\n  public workflowEditorState: WorkflowEditorFeatureState;\n\n  @tracked public mcpServers: McpServerConfigModel[] = [];\n\n  constructor(owner: unknown, args: unknown) {\n    super(owner, args);\n\n    void this.loadMCPServers();\n  }\n\n  get paletteGroups(): PaletteGroup[] {\n    return [\n      {\n        title: 'Tasks',\n        items: [\n          {\n            title: BPMN_TASKS[BpmnTaskTypeEnum.UserTask].name,\n            type: BpmnTaskTypeEnum.UserTask,\n            tooltip: 'Guide your agent with specific instructions to perform this step',\n          },\n          {\n            title: BPMN_TASKS[BpmnServiceTaskAlternativeEnum.TriggerAction].name,\n            type: BpmnTaskTypeEnum.ServiceTask,\n            alternative: BpmnServiceTaskAlternativeEnum.TriggerAction,\n            tooltip: 'Let your agent trigger a Forest Action on a loaded record',\n          },\n          {\n            title: BPMN_TASKS[BpmnServiceTaskAlternativeEnum.GetData].name,\n            type: BpmnTaskTypeEnum.ServiceTask,\n            alternative: BpmnServiceTaskAlternativeEnum.GetData,\n            tooltip: 'Retrieve and display a field value from a loaded record',\n          },\n          {\n            title: BPMN_TASKS[BpmnServiceTaskAlternativeEnum.UpdateData].name,\n            type: BpmnTaskTypeEnum.ServiceTask,\n            alternative: BpmnServiceTaskAlternativeEnum.UpdateData,\n            tooltip: 'Let your agent update a field value on a loaded record',\n          },\n          {\n            title: BPMN_TASKS[BpmnServiceTaskAlternativeEnum.LoadRelatedRecord].name,\n            type: BpmnTaskTypeEnum.ServiceTask,\n            alternative: BpmnServiceTaskAlternativeEnum.LoadRelatedRecord,\n            tooltip: 'Let your agent load a related record, to use in subsequent steps',\n          },\n          // {\n          //   title: BPMN_TASKS['bpmn:ScriptTask'].name,\n          //   type: 'bpmn:ScriptTask',\n          // },\n        ],\n      },\n      {\n        title: 'Utilities',\n        items: [\n          {\n            title: BPMN_TASKS[BpmnGatewayTypeEnum.ExclusiveGateway].name,\n            type: BpmnGatewayTypeEnum.ExclusiveGateway,\n            tooltip: 'Split your process into separate branches, based on a condition',\n          },\n          {\n            title: BPMN_TASKS[BpmnEventTypeEnum.EscalationTask].name,\n            type: BpmnEventTypeEnum.EscalationTask,\n            tooltip: 'Escalate the workflow to an Inbox, for a higher-level agent to pick up',\n          },\n          {\n            title: BPMN_TASKS[BpmnTaskLinkTypeEnum.LinkTo].name,\n            type: BpmnTaskLinkTypeEnum.LinkTo,\n            tooltip:\n              'Loop back to a previous step, jump to another branch, or step into another workflow',\n          },\n          {\n            title: BPMN_TASKS[BpmnTaskTypeEnum.SubProcess].name,\n            type: BpmnTaskTypeEnum.SubProcess,\n            tooltip: 'Organize multiple Steps into a group for improved readability',\n            hidden: this.isSubProcessOpen,\n          },\n          {\n            title: BPMN_TASKS[BpmnTaskTypeEnum.CallActivity].name,\n            type: BpmnTaskTypeEnum.CallActivity,\n            tooltip: 'Include another workflow as a step in this workflow',\n          },\n          {\n            title: this.isSubProcessOpen\n              ? `Group ${BPMN_TASKS[BpmnEventTypeEnum.EndEvent].name}`\n              : BPMN_TASKS[BpmnEventTypeEnum.EndEvent].name,\n            type: BpmnEventTypeEnum.EndEvent,\n            tooltip: 'Mark the end of a branch and completion of the workflow',\n          },\n        ],\n      },\n      {\n        title: 'Connectors',\n        canCreate: this.canCreateMcpServer,\n        items: this.mcpServerItems,\n      },\n    ];\n  }\n\n  get mcpServerItems(): PaletteItemType[] {\n    return this.mcpServers?.map((mcpServer) => ({\n      title: `${mcpServer.serverName} Task`,\n      type: BpmnTaskTypeEnum.ServiceTask,\n      alternative: BpmnServiceTaskAlternativeEnum.McpServer,\n      mcpServerId: mcpServer.id,\n      serverUrl: mcpServer.serverUrl,\n      tooltip: `Let your agent perform an action via the ${mcpServer.serverName} MCP Server`,\n    }));\n  }\n\n  get canCreateMcpServer() {\n    return this.mcpServerFeature.canAccessMcpServers();\n  }\n\n  get isSubProcessOpen() {\n    return this.workflowEditorFeature.getBPMNToDisplay()?.type === BpmnTaskTypeEnum.SubProcess;\n  }\n\n  @action\n  handleDragStart(item: PaletteItemType) {\n    const shouldHaveAutoCompletion = item.type === BpmnTaskTypeEnum.ServiceTask;\n    const shouldHaveAutoCompletionTruthy = [\n      BpmnServiceTaskAlternativeEnum.TriggerAction,\n      BpmnServiceTaskAlternativeEnum.UpdateData,\n      BpmnServiceTaskAlternativeEnum.LoadRelatedRecord,\n    ].includes(item.alternative);\n\n    this.workflowEditorFeature.startDrag({\n      type: item.type,\n      businessObject: {\n        name: item.title,\n        alternative: item.alternative,\n        mcpServerId: item.mcpServerId,\n        ...(shouldHaveAutoCompletion && { automaticCompletion: shouldHaveAutoCompletionTruthy }),\n      },\n    });\n  }\n\n  @action\n  handleClickAddMcpServer(event: MouseEvent) {\n    event.stopPropagation();\n    this.workflowEditorFeature.displayIntegrationModalOrRedirect();\n  }\n\n  private async loadMCPServers() {\n    this.mcpServers = await this.mcpServerFeature.getMCPServers();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-editor-palette js-bpmn-editor-palette\\\"\\n  data-test-feature-workflow-editor-palette\\n  ...attributes\\n>\\n  {{#each this.paletteGroups as |group|}}\\n    <Shared::CollapsibleSection\\n      @title={{group.title}}\\n      data-test-feature-workflow-editor-palette-group={{group.title}}\\n      class=\\\"c-feature-workflow-editor-palette__group\\\"\\n    >\\n      <:header>\\n        {{#if group.canCreate}}\\n          <Shared::DataDisplay::BetaIcon\\n            @iconName=\\\"add\\\"\\n            @size=\\\"custom\\\"\\n            class=\\\"c-feature-workflow-editor-palette__mcp-servers-create\\\"\\n            role=\\\"button\\\"\\n            {{on \\'click\\' this.handleClickAddMcpServer}}\\n            data-test-feature-workflow-editor-palette-mcp-servers-create\\n          />\\n        {{/if}}\\n      </:header>\\n      <:default>\\n\\n        <div class=\\\"c-feature-workflow-editor-palette__group-items\\\">\\n          {{#each group.items as |item|}}\\n            {{#unless item.hidden}}\\n              <Feature::WorkflowEditor::Renderer::Card\\n                @type={{item.type}}\\n                @name={{item.title}}\\n                @alternative={{item.alternative}}\\n                @serverUrl={{item.serverUrl}}\\n                @isDragged={{(and\\n                  (not this.workflowEditorState.draggedElement.id)\\n                  (eq this.workflowEditorState.draggedElement.type item.type)\\n                  (eq this.workflowEditorState.draggedElement.alternative item.alternative)\\n                  (eq this.workflowEditorState.draggedElement.mcpServerId item.mcpServerId)\\n                )}}\\n                @isDisabled={{this.workflowEditorState.isLinkToSelectModeOn}}\\n                @onDragStart={{(fn this.handleDragStart item)}}\\n                draggable=\\\"true\\\"\\n                data-test-feature-workflow-editor-palette-item\\n                data-test-feature-workflow-editor-palette-item-type={{item.type}}\\n                data-test-feature-workflow-editor-palette-item-alternative={{item.alternative}}\\n                data-test-feature-workflow-editor-palette-item-mcp-server-id={{item.mcpServerId}}\\n                data-type={{item.type}}\\n                class=\\\"c-feature-workflow-editor-palette__item\\\"\\n              >\\n                <Shared::Feedback::BetaTooltip\\n                  @text={{item.tooltip}}\\n                  @side=\\\"right\\\"\\n                  @showDelay={{500}}\\n                />\\n              </Feature::WorkflowEditor::Renderer::Card>\\n            {{/unless}}\\n          {{else}}\\n            <div class=\\\"c-feature-workflow-editor-palette__mcp-servers\\\">\\n              <Shared::Svg\\n                @src=\\\"/img/workflow/mcp-server-empty-state.svg\\\"\\n                alt=\\\"MCP Server\\\"\\n                class=\\\"c-feature-workflow-editor-palette__mcp-servers-image\\\"\\n              />\\n              <div class=\\\"c-feature-workflow-editor-palette__mcp-servers-info\\\">\\n                <h3 class=\\\"c-feature-workflow-editor-palette__mcp-servers-title\\\">Add MCP Servers</h3>\\n                <p class=\\\"c-feature-workflow-editor-palette__mcp-servers-description\\\">\\n                  Ask an Admin to configure MCP Servers to give you ways to interact with 3rd party\\n                  apps!\\n                </p>\\n              </div>\\n            </div>\\n          {{/each}}\\n        </div>\\n      </:default>\\n    </Shared::CollapsibleSection>\\n  {{/each}}\\n</div>\\n', { moduleName: 'client/features/workflow-editor/components/palette/template.hbs' });\n","import type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport {\n  BpmnEventTypeEnum,\n  BpmnGatewayTypeEnum,\n  BpmnTaskLinkTypeEnum,\n  BpmnTaskTypeEnum,\n} from 'client/features/workflow-editor/configuration';\n\ninterface RendererCardArgs {\n  name: string;\n  type: string;\n  isSelected?: boolean;\n  isPreview?: boolean;\n  isDragged?: boolean;\n  isDisabled?: boolean;\n  isLinkToTarget?: boolean;\n  serverUrl?: string | null;\n  onDragStart?: (event: DragEvent) => void;\n}\n\nexport default class WorkflowEditorRendererCardComponent extends Component<RendererCardArgs> {\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n  @service('feature/workflow-editor/state') private workflowEditorState: WorkflowEditorFeatureState;\n\n  private draggedGhostElement: HTMLElement | null = null;\n  private cursorImg: HTMLImageElement;\n\n  constructor(owner: unknown, args: RendererCardArgs) {\n    super(owner, args);\n    this.cursorImg = document.createElement('img');\n    this.cursorImg.setAttribute('src', '/img/icons/icon--double-cursor.svg');\n    this.cursorImg.classList.add('c-feature-workflow-editor-renderer-card__icon');\n  }\n\n  get name() {\n    return this.args.isPreview && this.workflowEditorState.draggedElements?.length\n      ? this.getMultiCardsSelectedName()\n      : this.args.name;\n  }\n\n  getMultiCardsSelectedName() {\n    return `${this.getSelectedCardsLength} Cards selected`;\n  }\n\n  @action\n  handleDragStart(event: DragEvent) {\n    this.args.onDragStart?.(event);\n    const target = event.currentTarget as HTMLElement;\n\n    if (!target) return;\n    this.draggedGhostElement = target.cloneNode(true) as HTMLElement;\n\n    this.draggedGhostElement.classList.add('c-feature-workflow-editor-renderer-card--ghost');\n    if (this.args.isDragged && this.workflowEditorState.draggedElements?.length) {\n      this.draggedGhostElement.appendChild(this.cursorImg);\n      this.draggedGhostElement.replaceChild(\n        this.cursorImg,\n        this.draggedGhostElement.querySelector('svg')\n          || this.draggedGhostElement.querySelector('i'),\n      );\n\n      this.draggedGhostElement.querySelector(\n        '.js-feature-workflow-editor-renderer-card-name',\n      ).textContent = this.getMultiCardsSelectedName();\n    }\n    document.body.appendChild(this.draggedGhostElement);\n    event.dataTransfer.setDragImage(\n      this.draggedGhostElement,\n      this.draggedGhostElement.offsetWidth / 2,\n      this.draggedGhostElement.offsetHeight / 2,\n    );\n  }\n\n  @action\n  handleDragEnd() {\n    this.draggedGhostElement?.remove();\n    this.draggedGhostElement = null;\n    this.workflowEditorFeature.cancelDrag();\n  }\n\n  private get getSelectedCardsLength() {\n    return (\n      this.workflowEditorState.draggedElements?.filter(\n        (element) =>\n          Object.values(BpmnEventTypeEnum).includes(element.type as BpmnEventTypeEnum)\n          || Object.values(BpmnGatewayTypeEnum).includes(element.type as BpmnGatewayTypeEnum)\n          || Object.values(BpmnTaskTypeEnum).includes(element.type as BpmnTaskTypeEnum)\n          || (Object.values(BpmnTaskLinkTypeEnum).includes(element.type as BpmnTaskLinkTypeEnum)\n            && element.businessObject?.isLinkTo),\n      ).length || 1\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"{{get-classes-with-modifiers\\n      \\'c-feature-workflow-editor-renderer-card\\'\\n      selected=@isSelected\\n      preview=@isPreview\\n      dragged=@isDragged\\n      disabled=@isDisabled\\n      link-to-target=@isLinkToTarget\\n      in-background=@isInBackground\\n      disable-pointer-events=this.workflowEditorState.isGrabMode\\n      error=@hasError\\n    }}\\n    js-feature-workflow-editor-renderer-card\\\"\\n  data-test-feature-workflow-editor-renderer-card\\n  {{on \\'dragstart\\' this.handleDragStart}}\\n  {{on \\'dragend\\' this.handleDragEnd}}\\n  ...attributes\\n>\\n  {{#if @hasError}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName=\\\"error_outline\\\"\\n      @size=\\\"custom\\\"\\n      class={{get-classes-with-modifiers\\n        \\'c-feature-workflow-editor-renderer-card__icon\\'\\n        error=@hasError\\n      }}\\n      data-test-feature-workflow-editor-renderer-card-error-icon\\n    />\\n  {{else if @serverUrl}}\\n    <Feature::McpServer::Icon\\n      @serverUrl={{@serverUrl}}\\n      @size={{16}}\\n      @fallbackIcon=\\\"/img/workflow/mcp-server.svg\\\"\\n      class=\\\"c-feature-workflow-editor-renderer-card__icon\\\"\\n      data-test-feature-workflow-editor-renderer-card-mcp-icon\\n    />\\n  {{else}}\\n    <Feature::WorkflowEditor::BpmnTypeIcon\\n      @alternative={{@alternative}}\\n      @type={{@type}}\\n      class=\\\"c-feature-workflow-editor-renderer-card__icon\\\"\\n    />\\n  {{/if}}\\n  <span\\n    class=\\\"c-feature-workflow-editor-renderer-card__name js-feature-workflow-editor-renderer-card-name\\\"\\n  >\\n    {{this.name}}\\n  </span>\\n\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/features/workflow-editor/components/renderer/card/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type { ShapeImpl } from 'bpmn-js/custom';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorSubProcessInternalFeatureService from 'client/features/workflow-editor/services/internal-feature/sub-process';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { BpmnTaskTypeEnum } from 'client/features/workflow-editor/configuration';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport { KEY, isKey } from 'client/utils/keyboard';\n\ninterface WorkflowEditorRendererArgs {\n  workflow: WorkflowModel;\n}\nexport default class WorkflowEditorRendererComponent extends Component<WorkflowEditorRendererArgs> {\n  @service('feature/workflow-editor/state') public workflowEditorState: WorkflowEditorFeatureState;\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n  @service private eventBus: EventBusService;\n\n  @service('feature/workflow-editor/internal-feature/sub-process')\n  private workflowEditorSubProcessService: WorkflowEditorSubProcessInternalFeatureService;\n\n  @service private router: RouterService;\n\n  private previousClickMode: 'select' | 'grab' | null = null;\n\n  constructor(owner: unknown, args: WorkflowEditorRendererArgs) {\n    super(owner, args);\n\n    this.eventBus.on(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, this.handleOutgoingUpdate);\n  }\n\n  get startEvent() {\n    return this.workflowEditorFeature\n      .getBPMNToDisplay()\n      ?.children?.find((element) => element.type === 'bpmn:StartEvent') as ShapeImpl;\n  }\n\n  get isSubProcess() {\n    return this.workflowEditorFeature.getBPMNToDisplay()?.type === BpmnTaskTypeEnum.SubProcess;\n  }\n\n  get subProcessBreadcrumb() {\n    return [\n      {\n        isFirst: true,\n        displayName: this.args.workflow.name,\n        svgIcon: `/img/icons/icon--play.svg`,\n        link: this.router.currentRouteName,\n        queryParams: {\n          subProcessId: null,\n        },\n      },\n      {\n        isLast: true,\n        displayName: this.workflowEditorFeature.getBPMNToDisplay()?.businessObject?.name,\n        svgIcon: '/img/workflow/sub-process.svg',\n        link: this.router.currentRouteName,\n      },\n    ];\n  }\n\n  @action\n  public handleRootDidInsert() {\n    document.addEventListener('keydown', this.handleSpaceBarDown);\n    document.addEventListener('keyup', this.handleSpaceBarUp);\n    document.addEventListener('keydown', this.handleEscapeKey);\n  }\n\n  @action\n  public handleRootWillDestroy() {\n    document.removeEventListener('keydown', this.handleSpaceBarDown);\n    document.removeEventListener('keyup', this.handleSpaceBarUp);\n    document.removeEventListener('keydown', this.handleEscapeKey);\n  }\n\n  @action\n  public handleCloseSubProcess() {\n    this.workflowEditorSubProcessService.setCurrentSubProcess(null);\n  }\n\n  @action\n  handleOutgoingUpdate() {\n    if (!this.startEvent) {\n      this.handleCloseSubProcess();\n    }\n  }\n\n  @action\n  public handleSpaceBarDown(event: KeyboardEvent) {\n    if (this.shouldDisableSpaceToGrab(event)) {\n      return;\n    }\n\n    if (isKey(KEY.SPACE, event)) {\n      event.preventDefault();\n\n      if (!event.repeat) {\n        this.previousClickMode = this.workflowEditorState.clickMode;\n        this.workflowEditorFeature.setClickMode('grab');\n      }\n    }\n  }\n\n  @action\n  public handleSpaceBarUp(event: KeyboardEvent) {\n    if (this.shouldDisableSpaceToGrab(event)) {\n      return;\n    }\n\n    if (isKey(KEY.SPACE, event)) {\n      event.preventDefault();\n\n      const modeToRestore = this.previousClickMode || 'select';\n      this.workflowEditorFeature.setClickMode(modeToRestore);\n      this.previousClickMode = null;\n    }\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.eventBus.off(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, this.handleOutgoingUpdate);\n  }\n\n  @action\n  public handleEscapeKey(event: KeyboardEvent) {\n    if (this.shouldDisableSpaceToGrab(event)) return;\n    if (!isKey(KEY.ESCAPE, event)) return;\n    if (this.workflowEditorState.isLinkToSelectModeOn) return;\n    if (!this.isSubProcess) return;\n\n    this.handleCloseSubProcess();\n  }\n\n  private shouldDisableSpaceToGrab(event: KeyboardEvent) {\n    return (\n      (event.target instanceof HTMLInputElement && event.target.type !== 'checkbox')\n      || event.target instanceof HTMLTextAreaElement\n      || event.target instanceof HTMLSelectElement\n      || (event.target as HTMLElement).isContentEditable\n    );\n  }\n}\n","import type { BpmnElement, ConnectionImpl, ShapeImpl } from 'bpmn-js/custom';\nimport type WorkflowEditorFlatRendererCardUiInternalService from 'client/features/workflow-editor/services/internal-feature/flat-renderer/card-ui';\nimport type WorkflowEditorFlatRendererHeightCalculatorService from 'client/features/workflow-editor/services/internal-feature/flat-renderer/height-calculator';\nimport type { FlatWorkflowItem } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport {\n  BpmnEventTypeEnum,\n  BpmnGatewayTypeEnum,\n  type BpmnItemType,\n  BpmnServiceTaskAlternativeEnum,\n  BpmnTaskLinkTypeEnum,\n  BpmnTaskTypeEnum,\n  getBpmnItemByAlternativeOrType,\n  isConnection,\n  isShape,\n} from 'client/features/workflow-editor/configuration';\n\ninterface FlatCardArgs {\n  item: FlatWorkflowItem;\n}\n\nexport default class WorkflowEditorRendererFlatCardComponent extends Component<FlatCardArgs> {\n  static readonly DRAGGABLE_TYPES = new Set<string>([\n    BpmnTaskTypeEnum.UserTask,\n    BpmnTaskTypeEnum.ManualTask,\n    BpmnTaskTypeEnum.ServiceTask,\n    BpmnTaskTypeEnum.ScriptTask,\n    BpmnGatewayTypeEnum.ExclusiveGateway,\n    BpmnEventTypeEnum.EndEvent,\n    BpmnTaskLinkTypeEnum.LinkTo,\n    BpmnEventTypeEnum.EscalationTask,\n    BpmnTaskTypeEnum.SubProcess,\n    BpmnTaskTypeEnum.CallActivity,\n  ]);\n\n  private static multiSelectIcon: HTMLImageElement | null = null;\n\n  static getMultiSelectIcon(): HTMLImageElement {\n    if (!this.multiSelectIcon) {\n      this.multiSelectIcon = document.createElement('img');\n      this.multiSelectIcon.setAttribute('src', '/img/icons/icon--double-cursor.svg');\n      this.multiSelectIcon.classList.add('c-feature-workflow-editor-flat-card__icon');\n    }\n    return this.multiSelectIcon;\n  }\n\n  @service('feature/workflow-editor/state')\n  private workflowEditorState: WorkflowEditorFeatureState;\n\n  @service('feature/workflow-editor/internal-feature/flat-renderer/card-ui')\n  private cardUiService: WorkflowEditorFlatRendererCardUiInternalService;\n\n  @service('feature/workflow-editor/internal-feature/flat-renderer/height-calculator')\n  private heightCalculator: WorkflowEditorFlatRendererHeightCalculatorService;\n\n  @tracked private isHovered = false;\n  @tracked private serverUrl: string | null = null;\n  private resizeObserver: ResizeObserver | null = null;\n\n  private draggedGhostElement: HTMLElement | null = null;\n\n  get bpmnElement(): ShapeImpl {\n    return this.args.item.element;\n  }\n\n  get bpmnFlow(): ConnectionImpl | undefined {\n    return this.args.item.flow;\n  }\n\n  get itemToRender(): BpmnElement {\n    return this.bpmnFlow?.businessObject?.isLinkTo ? this.bpmnFlow : this.bpmnElement;\n  }\n\n  get isPlaceholder(): boolean {\n    return this.itemToRender?.businessObject?.isPlaceholder === true;\n  }\n\n  get displayName(): string {\n    const itemType = this.itemToRender?.type as BpmnItemType;\n    const defaultName = getBpmnItemByAlternativeOrType(itemType)?.name;\n\n    if (this.itemToRender?.businessObject?.isLinkTo && isConnection(this.itemToRender)) {\n      const target = this.itemToRender.target;\n      const targetName = target?.businessObject?.name as string | undefined;\n      return targetName && !target.businessObject.isPlaceholder\n        ? `Go to \"${targetName}\"`\n        : defaultName ?? 'Link To';\n    }\n\n    const isInSubProcess = this.cardUiService.isInSubProcess();\n    const currentName = this.itemToRender?.businessObject?.name;\n    const isNameCustomized = currentName && currentName !== defaultName;\n\n    if (\n      isInSubProcess\n      && !isNameCustomized\n      && [BpmnEventTypeEnum.StartEvent, BpmnEventTypeEnum.EndEvent].includes(\n        itemType as BpmnEventTypeEnum,\n      )\n    ) {\n      return `Group ${defaultName}`;\n    }\n\n    return currentName || defaultName || 'Unnamed';\n  }\n\n  get isDraggable(): boolean {\n    return WorkflowEditorRendererFlatCardComponent.DRAGGABLE_TYPES.has(\n      this.itemToRender?.type ?? '',\n    );\n  }\n\n  get cardState() {\n    return this.cardUiService.getCardState(this.args.item);\n  }\n\n  get isMcpServer(): boolean {\n    return (\n      this.itemToRender?.businessObject?.alternative === BpmnServiceTaskAlternativeEnum.McpServer\n    );\n  }\n\n  get cardClasses(): string {\n    const base = 'c-feature-workflow-editor-flat-card';\n    const modifiers: string[] = [];\n\n    if (this.cardState.isSelected) modifiers.push(`${base}--selected`);\n    if (this.cardState.isDragged) modifiers.push(`${base}--dragged`);\n    if (this.cardState.hasError) modifiers.push(`${base}--error`);\n    if (this.cardState.isDisabled) modifiers.push(`${base}--disabled`);\n    if (this.cardState.isLinkToTarget) modifiers.push(`${base}--link-to-target`);\n    if (this.cardState.isInBackground) modifiers.push(`${base}--in-background`);\n    if (this.workflowEditorState.isGrabMode) modifiers.push(`${base}--disable-pointer-events`);\n\n    return [base, 'js-feature-workflow-editor-renderer-card', ...modifiers].join(' ');\n  }\n\n  @action\n  handleClick(event: MouseEvent): void {\n    event.stopPropagation();\n    this.cardUiService.selectItem(this.itemToRender, event);\n  }\n\n  @action\n  handleDoubleClick(event: MouseEvent): void {\n    event.stopPropagation();\n\n    if (this.itemToRender?.type === BpmnTaskTypeEnum.SubProcess && isShape(this.itemToRender)) {\n      this.cardUiService.navigateToSubProcess(this.itemToRender);\n    }\n  }\n\n  private get selectedCardsCount(): number {\n    const draggedElements = this.workflowEditorState.draggedElements;\n    if (!draggedElements?.length) return 1;\n\n    return (\n      draggedElements.filter(\n        (element) =>\n          Object.values(BpmnEventTypeEnum).includes(element.type as BpmnEventTypeEnum)\n          || Object.values(BpmnGatewayTypeEnum).includes(element.type as BpmnGatewayTypeEnum)\n          || Object.values(BpmnTaskTypeEnum).includes(element.type as BpmnTaskTypeEnum)\n          || (Object.values(BpmnTaskLinkTypeEnum).includes(element.type as BpmnTaskLinkTypeEnum)\n            && element.businessObject?.isLinkTo),\n      ).length || 1\n    );\n  }\n\n  private get multiSelectLabel(): string {\n    return `${this.selectedCardsCount} Cards selected`;\n  }\n\n  @action\n  handleDragStart(event: DragEvent): void {\n    this.cardUiService.startDrag(this.itemToRender);\n\n    // In real browser drag events, currentTarget is always set by the dispatcher.\n    // In some test environments/synthetic events it can be null, so fall back to:\n    // - event.target (if present)\n    // - the card element itself (identified by @item.id, used as the DOM id)\n    const target = (event.currentTarget\n      ?? event.target\n      ?? document.getElementById(this.args.item.id)) as HTMLElement | null;\n    if (!target) return;\n\n    this.draggedGhostElement = target.cloneNode(true) as HTMLElement;\n    this.draggedGhostElement.classList.add('c-feature-workflow-editor-flat-card--ghost');\n    this.draggedGhostElement.removeAttribute('style');\n\n    const draggedElements = this.workflowEditorState.draggedElements;\n    if (draggedElements && draggedElements.length > 1) {\n      // Replace the icon with multi-select cursor icon\n      const iconElement = this.draggedGhostElement.querySelector(\n        '.c-feature-workflow-editor-flat-card__icon',\n      );\n      if (iconElement) {\n        const cursorIcon = WorkflowEditorRendererFlatCardComponent.getMultiSelectIcon().cloneNode(\n          true,\n        ) as HTMLImageElement;\n        iconElement.replaceWith(cursorIcon);\n      }\n\n      // Update the name text\n      const nameElement = this.draggedGhostElement.querySelector(\n        '.c-feature-workflow-editor-flat-card__name',\n      );\n      if (nameElement) {\n        nameElement.textContent = this.multiSelectLabel;\n      }\n    }\n\n    document.body.appendChild(this.draggedGhostElement);\n\n    const rect = target.getBoundingClientRect();\n    const scale = this.workflowEditorState.zoomScale || 1;\n    const rawOffsetX = (event.clientX - rect.left) / scale;\n    const rawOffsetY = (event.clientY - rect.top) / scale;\n    const offsetX = Math.max(0, Math.min(this.draggedGhostElement.offsetWidth, rawOffsetX));\n    const offsetY = Math.max(0, Math.min(this.draggedGhostElement.offsetHeight, rawOffsetY));\n\n    event.dataTransfer?.setDragImage(this.draggedGhostElement, offsetX, offsetY);\n  }\n\n  @action\n  handleDragEnd(): void {\n    this.cleanupGhostElement();\n  }\n\n  @action\n  handleWillDestroy(): void {\n    this.cleanupGhostElement();\n    if (this.resizeObserver) {\n      this.resizeObserver.disconnect();\n      this.resizeObserver = null;\n    }\n  }\n\n  private cleanupGhostElement(): void {\n    if (this.draggedGhostElement) {\n      try {\n        document.body.removeChild(this.draggedGhostElement);\n      } catch {\n        // Already removed\n      }\n      this.draggedGhostElement = null;\n    }\n  }\n\n  @action\n  handleMouseEnter(): void {\n    if (this.isHovered) return;\n    this.isHovered = true;\n    this.cardUiService.setHovered(this.itemToRender);\n  }\n\n  @action\n  handleMouseLeave(): void {\n    if (!this.isHovered) return;\n    this.isHovered = false;\n    this.cardUiService.setHovered(null);\n  }\n\n  @action\n  async handleDidInsert(element: HTMLElement): Promise<void> {\n    this.updateMeasuredHeight(element);\n    if (typeof ResizeObserver !== 'undefined') {\n      this.resizeObserver = new ResizeObserver((entries) => {\n        for (const entry of entries) {\n          if (entry.target instanceof HTMLElement) {\n            this.updateMeasuredHeight(entry.target);\n          }\n        }\n      });\n      this.resizeObserver.observe(element);\n    }\n\n    if (this.isMcpServer) {\n      await this.loadMcpServerUrl();\n    }\n  }\n\n  private updateMeasuredHeight(element: HTMLElement): void {\n    if (!element) return;\n    const height = element.offsetHeight || element.getBoundingClientRect().height;\n    if (!height) return;\n    this.heightCalculator.setMeasuredHeight(this.args.item.id, height);\n  }\n\n  private async loadMcpServerUrl(): Promise<void> {\n    const mcpServerId = this.itemToRender?.businessObject?.mcpServerId as string | undefined;\n    if (!mcpServerId) return;\n\n    const serverUrl = await this.cardUiService.loadMcpServerUrl(mcpServerId);\n    this.serverUrl = serverUrl;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#unless this.isPlaceholder}}\\n  <div\\n    class={{this.cardClasses}}\\n    data-test-feature-workflow-editor-flat-card={{@item.id}}\\n    data-test-feature-workflow-editor-renderer-step={{@item.id}}\\n    id={{@item.id}}\\n    draggable={{if this.isDraggable \\'true\\' \\'false\\'}}\\n    role=\\\"button\\\"\\n    {{did-insert this.handleDidInsert}}\\n    {{will-destroy this.handleWillDestroy}}\\n    {{on \\'click\\' this.handleClick}}\\n    {{on \\'dblclick\\' this.handleDoubleClick}}\\n    {{on \\'dragstart\\' this.handleDragStart}}\\n    {{on \\'dragend\\' this.handleDragEnd}}\\n    {{on \\'mouseenter\\' this.handleMouseEnter}}\\n    {{on \\'mouseleave\\' this.handleMouseLeave}}\\n    ...attributes\\n  >\\n    {{#if this.cardState.hasError}}\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName=\\\"error_outline\\\"\\n        @size=\\\"custom\\\"\\n        class=\\\"c-feature-workflow-editor-flat-card__icon c-feature-workflow-editor-flat-card__icon--error\\\"\\n        data-test-feature-workflow-editor-flat-card-error-icon\\n      />\\n    {{else if this.serverUrl}}\\n      <Feature::McpServer::Icon\\n        @serverUrl={{this.serverUrl}}\\n        @size={{16}}\\n        @fallbackIcon=\\\"/img/workflow/mcp-server.svg\\\"\\n        class=\\\"c-feature-workflow-editor-flat-card__icon\\\"\\n        data-test-feature-workflow-editor-flat-card-mcp-icon\\n      />\\n    {{else}}\\n      <Feature::WorkflowEditor::BpmnTypeIcon\\n        @alternative={{this.itemToRender.businessObject.alternative}}\\n        @type={{this.itemToRender.type}}\\n        class=\\\"c-feature-workflow-editor-flat-card__icon\\\"\\n      />\\n    {{/if}}\\n\\n    <span class=\\\"c-feature-workflow-editor-flat-card__name\\\">\\n      {{this.displayName}}\\n    </span>\\n  </div>\\n{{/unless}}\\n', { moduleName: 'client/features/workflow-editor/components/renderer/flat/card/template.hbs' });\n","import type { SafeString } from '@ember/template/-private/handlebars';\nimport type { ShapeImpl } from 'bpmn-js/custom';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type WorkflowEditorFlatRendererInternalService from 'client/features/workflow-editor/services/internal-feature/flat-renderer/renderer';\nimport type {\n  ConnectionPath,\n  FlatWorkflowItem,\n  LayoutResult,\n} from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { later, scheduleOnce } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport Component from '@glimmer/component';\nimport { cached, tracked } from '@glimmer/tracking';\n\nimport { type BpmnItemType, isConnection } from 'client/features/workflow-editor/configuration';\nimport { LAYOUT } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\n\ninterface FlatRendererArgs {\n  workflow: WorkflowModel;\n  startElement: ShapeImpl | null;\n}\n\nexport default class WorkflowEditorRendererFlatComponent extends Component<FlatRendererArgs> {\n  @service('feature/workflow-editor/state')\n  private workflowEditorState: WorkflowEditorFeatureState;\n\n  @service('feature/workflow-editor/internal-feature/flat-renderer/renderer')\n  private flatRenderer: WorkflowEditorFlatRendererInternalService;\n\n  @tracked private scrollTop = 0;\n  @tracked private scrollLeft = 0;\n  @tracked private viewportWidth = 0;\n  @tracked private viewportHeight = 0;\n\n  @tracked private renderVersion = 0;\n  @tracked hoveredDropZoneConnection: ConnectionPath | null = null;\n\n  private selectionBoxElement: HTMLElement | null = null;\n  private startX = 0;\n  private startY = 0;\n  private currentX = 0;\n  private currentY = 0;\n  private shouldIgnoreNextClick = false;\n\n  private scrollRAF: number | null = null;\n  private renderVersionRAF: number | null = null;\n  private lastWheelTimestamp = 0;\n  private inertiaGuardActive = false;\n  private static readonly INERTIA_GAP_THRESHOLD_MS = 100;\n  private collapseRAFs = new Set<number>();\n  private pendingScrollTop = 0;\n  private pendingScrollLeft = 0;\n  private container: HTMLElement | null = null;\n  private canvasElement: HTMLElement | null = null;\n  private resizeObserver: ResizeObserver | null = null;\n  private lastCollapsedStepsVersion = 0;\n  private previousRootVisualX: number | null = null;\n  private lastStartElementId: string | null = null;\n  private lastAutoFitVersion = 0;\n\n  get rendererClasses(): string {\n    const base = 'c-feature-workflow-editor-flat-renderer js-workflow-editor-renderer';\n    const modifiers: string[] = [];\n\n    if (this.workflowEditorState.isGrabMode) {\n      modifiers.push('c-feature-workflow-editor-flat-renderer--grab-mode');\n    }\n    if (this.workflowEditorState.isGrabbing) {\n      modifiers.push('c-feature-workflow-editor-flat-renderer--grabbing');\n    }\n    if (this.workflowEditorState.isCollapseTransitioning) {\n      modifiers.push('c-feature-workflow-editor-flat-renderer--transitioning');\n    }\n\n    return [base, ...modifiers].join(' ');\n  }\n\n  get isSimplifiedView(): boolean {\n    return this.workflowEditorState.zoomScale < LAYOUT.SIMPLIFIED_VIEW_THRESHOLD;\n  }\n\n  get linkToLineData(): { sourceItem: FlatWorkflowItem; targetItem: FlatWorkflowItem } | null {\n    void this.renderVersion;\n    void this.workflowEditorState.zoomScale;\n\n    const hoveredOrSelected = this.workflowEditorState.hoveredOrSelectedItem;\n    if (!hoveredOrSelected) return null;\n\n    const linkToFlow =\n      this.flatRenderer.isLinkToElement(hoveredOrSelected) && isConnection(hoveredOrSelected)\n        ? hoveredOrSelected\n        : hoveredOrSelected.incoming?.find((incoming) =>\n            this.flatRenderer.isLinkToElement(incoming),\n          ) ?? null;\n\n    if (!linkToFlow) return null;\n\n    const target = linkToFlow.target;\n    if (!target || target.businessObject?.isPlaceholder) return null;\n\n    const sourceItem = this.itemMap.get(linkToFlow.id);\n    const targetItem = this.itemMap.get(target.id);\n\n    if (\n      !sourceItem\n      || !targetItem\n      || sourceItem.isHidden\n      || targetItem.isHidden\n      || sourceItem.isCollapsed\n      || targetItem.isCollapsed\n    ) {\n      return null;\n    }\n\n    return { sourceItem, targetItem };\n  }\n\n  @cached\n  get layout(): LayoutResult {\n    void this.workflowEditorState.collapsedStepsVersion;\n    void this.workflowEditorState.bpmnVersion;\n    void this.flatRenderer.heightVersion;\n\n    const startElement = this.args.startElement;\n    if (!startElement) {\n      return { items: [], totalWidth: 0, totalHeight: 0 };\n    }\n\n    return this.flatRenderer.calculateLayout(startElement);\n  }\n\n  @cached\n  get visibleItems(): FlatWorkflowItem[] {\n    void this.renderVersion;\n    void this.workflowEditorState.dragVersion;\n    void this.workflowEditorState.autoFitVersion;\n    // Scroll-to is triggered via afterRender side-effects; track the id so a state update\n    // (e.g. \"jump-to\") re-runs this getter and schedules the scroll.\n    void this.workflowEditorState.scrollToItemId;\n\n    const currentLayout = this.layout;\n    const zoomScale = this.workflowEditorState.zoomScale;\n\n    scheduleOnce('afterRender', this, this.reactToLayoutChange, currentLayout);\n    scheduleOnce('afterRender', this, this.reactToScrollToItem);\n    scheduleOnce('afterRender', this, this.reactToAutoFit);\n\n    return this.flatRenderer.getVisibleItems(currentLayout.items, {\n      scrollTop: this.scrollTop,\n      scrollLeft: this.scrollLeft,\n      viewportWidth: this.viewportWidth,\n      viewportHeight: this.viewportHeight,\n      zoomScale,\n      contentOffsetX: this.contentOffset.x,\n      contentOffsetY: this.contentOffset.y,\n    }).items;\n  }\n\n  private reactToLayoutChange(currentLayout: LayoutResult): void {\n    this.handleLayoutChange(currentLayout);\n  }\n\n  private reactToScrollToItem(): void {\n    this.schedulePendingScrollToItem();\n  }\n\n  private reactToAutoFit(): void {\n    if (this.workflowEditorState.autoFitVersion !== this.lastAutoFitVersion) {\n      this.lastAutoFitVersion = this.workflowEditorState.autoFitVersion;\n      requestAnimationFrame(() => this.centerWorkflow());\n    }\n  }\n\n  @cached\n  get visibleConnections(): ConnectionPath[] {\n    void this.renderVersion;\n\n    const allConnections = this.allConnections;\n\n    // Filter connections that intersect with the viewport (including buffer)\n    return this.flatRenderer.filterConnectionsByViewport(allConnections, {\n      scrollTop: this.scrollTop,\n      scrollLeft: this.scrollLeft,\n      viewportWidth: this.viewportWidth,\n      viewportHeight: this.viewportHeight,\n      zoomScale: this.workflowEditorState.zoomScale,\n      contentOffsetX: this.contentOffset.x,\n      contentOffsetY: this.contentOffset.y,\n    });\n  }\n\n  @cached\n  private get allConnections(): ConnectionPath[] {\n    void this.workflowEditorState.zoomScale;\n    void this.workflowEditorState.errorCollapseIds;\n\n    return this.flatRenderer.calculateConnections(this.layout.items);\n  }\n\n  @cached\n  get dropZoneConnections(): ConnectionPath[] {\n    void this.renderVersion;\n    void this.workflowEditorState.dragVersion;\n\n    if (this.isSimplifiedView) {\n      return [];\n    }\n\n    const connections = this.visibleConnections;\n    return connections.filter((c) => c.flowConnection);\n  }\n\n  @cached\n  get centerOffset(): { x: number; y: number } {\n    const { totalWidth } = this.layout;\n    const scale = this.workflowEditorState.zoomScale;\n    const scaledWidth = totalWidth * scale;\n    const x = scaledWidth < this.viewportWidth ? (this.viewportWidth / scale - totalWidth) / 2 : 0;\n\n    return { x, y: 0 };\n  }\n\n  get contentPadding(): { x: number; y: number } {\n    const scale = this.workflowEditorState.zoomScale || 1;\n    if (!this.viewportWidth || !this.viewportHeight) {\n      return { x: 0, y: 0 };\n    }\n\n    const minPaddingX = this.viewportWidth / 2;\n    const minPaddingY = this.viewportHeight / 2;\n\n    return {\n      x: Math.max(minPaddingX, this.viewportWidth / (2 * scale)),\n      y: Math.max(minPaddingY, this.viewportHeight / (2 * scale)),\n    };\n  }\n\n  get contentOffset(): { x: number; y: number } {\n    const padding = this.contentPadding;\n    return { x: this.centerOffset.x + padding.x, y: padding.y };\n  }\n\n  get contentSize(): { width: number; height: number } {\n    const { totalWidth, totalHeight } = this.layout;\n    const { x: offsetX, y: offsetY } = this.contentOffset;\n\n    return {\n      width: totalWidth + 2 * offsetX,\n      height: totalHeight + 2 * offsetY,\n    };\n  }\n\n  get canvasStyle(): SafeString {\n    const scale = this.workflowEditorState.zoomScale;\n    const { width, height } = this.contentSize;\n\n    return htmlSafe(`width: ${width * scale}px; height: ${height * scale}px;`);\n  }\n\n  get contentStyle(): SafeString {\n    const scale = this.workflowEditorState.zoomScale;\n    const { width, height } = this.contentSize;\n\n    return htmlSafe(\n      `width: ${width}px; height: ${height}px; transform: scale(${scale}); transform-origin: top left;`,\n    );\n  }\n\n  get svgWidth(): number {\n    return this.contentSize.width;\n  }\n\n  get svgHeight(): number {\n    return this.contentSize.height;\n  }\n\n  get useConnectionTransform(): boolean {\n    return this.hoveredDropShiftedItemIds === null;\n  }\n\n  get connectionTransform(): SafeString {\n    const { x, y } = this.contentOffset;\n    if (x === 0 && y === 0) {\n      return htmlSafe('');\n    }\n    return htmlSafe(`translate(${x} ${y})`);\n  }\n\n  get hoveredDropShiftedItemIds(): Set<string> | null {\n    if (this.isSimplifiedView) {\n      return null;\n    }\n    if (!this.hoveredDropZoneConnection) {\n      return null;\n    }\n\n    const targetId = this.hoveredDropZoneConnection.toId;\n    if (!this.itemMap.has(targetId)) {\n      return null;\n    }\n\n    const shiftedIds = new Set<string>();\n    const stack = [targetId];\n\n    while (stack.length > 0) {\n      const currentId = stack.pop();\n      if (!currentId || shiftedIds.has(currentId)) {\n        continue;\n      }\n\n      shiftedIds.add(currentId);\n\n      const children = this.childItemIdsByParentId.get(currentId);\n      if (children) {\n        stack.push(...children);\n      }\n    }\n\n    return shiftedIds;\n  }\n\n  @cached\n  get childItemIdsByParentId(): Map<string, string[]> {\n    const map = new Map<string, string[]>();\n\n    for (const item of this.layout.items) {\n      if (!item.parentId) {\n        continue;\n      }\n\n      const children = map.get(item.parentId) ?? [];\n      children.push(item.id);\n      map.set(item.parentId, children);\n    }\n\n    return map;\n  }\n\n  @cached\n  get itemMap(): Map<string, FlatWorkflowItem> {\n    const map = new Map<string, FlatWorkflowItem>();\n    for (const item of this.layout.items) {\n      map.set(item.id, item);\n    }\n    return map;\n  }\n\n  @action\n  getAdjustedConnectionPath(\n    connection: ConnectionPath,\n    hoveredDropShiftedItemIds: Set<string> | null,\n    centerOffset: { x: number; y: number },\n  ): string {\n    return this.flatRenderer.getAdjustedConnectionPath(\n      connection,\n      hoveredDropShiftedItemIds,\n      centerOffset,\n    );\n  }\n\n  @action\n  getItemStyle(item: FlatWorkflowItem, hoveredDropShiftedItemIds: Set<string> | null): SafeString {\n    return this.flatRenderer.getItemStyle(item, hoveredDropShiftedItemIds, this.contentOffset);\n  }\n\n  @action\n  getMiniCardStyle(\n    item: FlatWorkflowItem,\n    hoveredDropShiftedItemIds: Set<string> | null,\n  ): SafeString {\n    return this.flatRenderer.getMiniCardStyle(item, hoveredDropShiftedItemIds, this.contentOffset);\n  }\n\n  @action\n  getBranchLabelStyle(connection: ConnectionPath): SafeString {\n    return this.flatRenderer.getBranchLabelStyle(connection, this.contentOffset);\n  }\n\n  @action\n  getCollapseButtonStyle(connection: ConnectionPath): SafeString {\n    return this.flatRenderer.getCollapseButtonStyle(\n      connection,\n      this.contentOffset,\n      this.hoveredDropShiftedItemIds,\n    );\n  }\n\n  @action\n  getBranchesCollapseButtonStyle(connection: ConnectionPath): SafeString {\n    return this.flatRenderer.getBranchesCollapseButtonStyle(\n      connection,\n      this.contentOffset,\n      this.hoveredDropShiftedItemIds,\n      this.itemMap.get(connection.fromId) ?? null,\n    );\n  }\n\n  @action\n  handleBranchLabelClick(connection: ConnectionPath): void {\n    this.flatRenderer.handleBranchLabelClick(connection);\n  }\n\n  @action\n  handleDidInsert(element: HTMLElement): void {\n    this.container = element;\n    this.canvasElement = element.querySelector('.js-flat-renderer-canvas');\n    this.selectionBoxElement = element.querySelector('.js-workflow-editor-renderer-selection-box');\n    element.style.visibility = 'hidden';\n\n    this.updateViewportSize();\n\n    this.resizeObserver = new ResizeObserver(() => {\n      this.updateViewportSize();\n    });\n    this.resizeObserver.observe(element);\n\n    document.addEventListener('mouseup', this.handleMouseUp);\n    document.addEventListener('dragend', this.handleGlobalDragEnd);\n\n    this.lastStartElementId = this.args.startElement?.id ?? null;\n    this.lastAutoFitVersion = this.workflowEditorState.autoFitVersion;\n    this.centerWhenReady();\n  }\n\n  private centerWhenReady(): void {\n    const attemptCenter = () => {\n      const { totalWidth, items } = this.layout;\n\n      if (totalWidth === 0) {\n        requestAnimationFrame(attemptCenter);\n        return;\n      }\n\n      if (this.previousRootVisualX === null && items.length > 0) {\n        const rootItem = this.getRootItem(this.layout);\n        const { x: centerOffsetX } = this.contentOffset;\n        if (rootItem) {\n          this.previousRootVisualX = rootItem.x + rootItem.width / 2 + centerOffsetX;\n        }\n      }\n\n      requestAnimationFrame(() => {\n        this.centerWorkflow();\n        if (this.container) {\n          this.container.style.visibility = '';\n        }\n      });\n    };\n\n    requestAnimationFrame(attemptCenter);\n  }\n\n  @action\n  handleWillDestroy(): void {\n    this.resizeObserver?.disconnect();\n    this.resizeObserver = null;\n\n    if (this.scrollRAF !== null) {\n      cancelAnimationFrame(this.scrollRAF);\n      this.scrollRAF = null;\n    }\n\n    if (this.renderVersionRAF !== null) {\n      cancelAnimationFrame(this.renderVersionRAF);\n      this.renderVersionRAF = null;\n    }\n\n    for (const id of this.collapseRAFs) {\n      cancelAnimationFrame(id);\n    }\n    this.collapseRAFs.clear();\n\n    document.removeEventListener('mouseup', this.handleMouseUp);\n    document.removeEventListener('dragend', this.handleGlobalDragEnd);\n\n    this.container = null;\n    this.canvasElement = null;\n    this.selectionBoxElement = null;\n  }\n\n  @action\n  handleScroll(event: Event): void {\n    const target = event.target as HTMLElement;\n    this.pendingScrollTop = target.scrollTop;\n    this.pendingScrollLeft = target.scrollLeft;\n\n    if (this.scrollRAF === null) {\n      this.scrollRAF = requestAnimationFrame(() => {\n        this.scrollTop = this.pendingScrollTop;\n        this.scrollLeft = this.pendingScrollLeft;\n        this.clampScrollToContent();\n        this.scrollRAF = null;\n      });\n    }\n  }\n\n  @action\n  handleWheel(event: WheelEvent): void {\n    const gap = event.timeStamp - this.lastWheelTimestamp;\n    this.lastWheelTimestamp = event.timeStamp;\n\n    if (!event.metaKey && !event.ctrlKey) {\n      this.inertiaGuardActive = true;\n      return;\n    }\n    if (!this.container || !this.canvasElement) return;\n\n    event.preventDefault();\n\n    // Avoid trackpad inertia (scroll -> cmd = zoom)\n    if (this.inertiaGuardActive) {\n      if (gap < WorkflowEditorRendererFlatComponent.INERTIA_GAP_THRESHOLD_MS) {\n        return;\n      }\n      this.inertiaGuardActive = false;\n    }\n\n    const rect = this.container.getBoundingClientRect();\n    const mouseX = event.clientX - rect.left;\n    const mouseY = event.clientY - rect.top;\n\n    const scrollLeftBefore = this.container.scrollLeft;\n    const scrollTopBefore = this.container.scrollTop;\n    const scaleBefore = this.workflowEditorState.zoomScale;\n    const { x: offsetXBefore, y: offsetYBefore } = this.contentOffset;\n    const contentXBefore = (scrollLeftBefore + mouseX) / scaleBefore - offsetXBefore;\n    const contentYBefore = (scrollTopBefore + mouseY) / scaleBefore - offsetYBefore;\n\n    // Only update scale — flat renderer handles its own scroll compensation\n    this.flatRenderer.zoomByWheelDelta(this.canvasElement, event.deltaY);\n\n    const scaleAfter = this.workflowEditorState.zoomScale;\n    if (scaleAfter !== scaleBefore) {\n      const { x: offsetXAfter, y: offsetYAfter } = this.contentOffset;\n      const paddingAfter = this.contentPadding;\n      const minX = -paddingAfter.x;\n      const maxX = this.layout.totalWidth + paddingAfter.x;\n      const minY = -paddingAfter.y;\n      const maxY = this.layout.totalHeight + paddingAfter.y;\n      const boundedContentX = Math.min(Math.max(contentXBefore, minX), maxX);\n      const boundedContentY = Math.min(Math.max(contentYBefore, minY), maxY);\n\n      let newScrollLeft = (boundedContentX + offsetXAfter) * scaleAfter - mouseX;\n      let newScrollTop = (boundedContentY + offsetYAfter) * scaleAfter - mouseY;\n\n      if (this.scrollRAF !== null) {\n        cancelAnimationFrame(this.scrollRAF);\n        this.scrollRAF = null;\n      }\n\n      newScrollLeft = Math.max(0, newScrollLeft);\n      newScrollTop = Math.max(0, newScrollTop);\n\n      // Sync canvas size before scroll assignment so the browser won't clamp to stale bounds.\n      // Glimmer will overwrite this on next render with identical values from canvasStyle.\n      const { width, height } = this.contentSize;\n      this.canvasElement!.style.width = `${width * scaleAfter}px`;\n      this.canvasElement!.style.height = `${height * scaleAfter}px`;\n\n      this.container.scrollLeft = newScrollLeft;\n      this.container.scrollTop = newScrollTop;\n      this.clampScrollToContent();\n\n      this.scrollLeft = this.container.scrollLeft;\n      this.scrollTop = this.container.scrollTop;\n      this.scheduleRenderVersionBump();\n    }\n  }\n\n  @action\n  handleMiniCardClick(item: FlatWorkflowItem, event: MouseEvent): void {\n    event.stopPropagation();\n    const shouldSkipClick =\n      !this.container || !this.canvasElement || this.workflowEditorState.isGrabMode;\n\n    if (shouldSkipClick) {\n      return;\n    }\n\n    const targetScale = 1;\n    const scaleBefore = this.workflowEditorState.zoomScale;\n    if (targetScale <= scaleBefore) return;\n\n    // Set zoom to the threshold that shows full cards\n    this.workflowEditorState.zoomScale = targetScale;\n\n    if (this.scrollRAF !== null) {\n      cancelAnimationFrame(this.scrollRAF);\n      this.scrollRAF = null;\n    }\n\n    // Compute scroll to center the clicked item (same math as handlePendingScrollToItem)\n    const { x: centerOffsetX, y: centerOffsetY } = this.contentOffset;\n    const centerX = item.x + item.width / 2 + centerOffsetX;\n    const centerY = item.y + item.height / 2 + centerOffsetY;\n    const targetScrollLeft = centerX * targetScale - this.viewportWidth / 2;\n    const targetScrollTop = centerY * targetScale - this.viewportHeight / 2;\n\n    // Sync canvas element size before scroll assignment so the browser won't clamp to stale bounds\n    const { width, height } = this.contentSize;\n    this.canvasElement.style.width = `${width * targetScale}px`;\n    this.canvasElement.style.height = `${height * targetScale}px`;\n\n    const maxScrollLeft = Math.max(0, width * targetScale - this.viewportWidth);\n    const maxScrollTop = Math.max(0, height * targetScale - this.viewportHeight);\n    this.container.scrollLeft = Math.max(0, Math.min(targetScrollLeft, maxScrollLeft));\n    this.container.scrollTop = Math.max(0, Math.min(targetScrollTop, maxScrollTop));\n\n    this.scrollLeft = this.container.scrollLeft;\n    this.scrollTop = this.container.scrollTop;\n    this.clampScrollToContent();\n\n    if (!item.isPlaceholder) {\n      const elementToSelect = item.flow?.businessObject?.isLinkTo ? item.flow : item.element;\n      this.flatRenderer.selectElement(elementToSelect);\n    }\n\n    this.scheduleRenderVersionBump();\n  }\n\n  @action\n  handleCanvasClick(event: MouseEvent): void {\n    if (this.shouldIgnoreNextClick) {\n      this.shouldIgnoreNextClick = false;\n      return;\n    }\n\n    const target = event.target as HTMLElement;\n    if (\n      target.classList.contains('c-feature-workflow-editor-flat-renderer__canvas')\n      || target.classList.contains('c-feature-workflow-editor-flat-renderer__content')\n    ) {\n      this.flatRenderer.selectElement(null);\n    }\n  }\n\n  @action\n  handleMouseDown(event: MouseEvent): void {\n    if (this.workflowEditorState.isGrabMode || this.workflowEditorState.isLinkToSelectModeOn) {\n      return;\n    }\n\n    const target = event.target as HTMLElement;\n    const isDraggableCard = target.closest('.js-feature-workflow-editor-renderer-card');\n\n    if (\n      this.workflowEditorState.isDrawing\n      || event.button === 2 // Right mouse button\n      || isDraggableCard\n      || !this.container\n      || !this.selectionBoxElement\n    ) {\n      return;\n    }\n\n    event.stopPropagation();\n\n    const coords = this.flatRenderer.startSelection(\n      event,\n      this.container,\n      this.selectionBoxElement,\n    );\n\n    this.startX = coords.x;\n    this.startY = coords.y;\n    this.currentX = coords.x;\n    this.currentY = coords.y;\n\n    document.addEventListener('contextmenu', this.disableRightClick);\n  }\n\n  @action\n  handleMouseMove(event: MouseEvent): void {\n    if (!this.workflowEditorState.isDrawing || !this.container || !this.selectionBoxElement) return;\n\n    const coords = this.flatRenderer.updateSelection(\n      event,\n      this.container,\n      this.selectionBoxElement,\n      this.startX,\n      this.startY,\n    );\n\n    this.currentX = coords.x;\n    this.currentY = coords.y;\n  }\n\n  @action\n  handleMouseUp(): void {\n    if (!this.workflowEditorState.isDrawing || !this.selectionBoxElement) return;\n\n    const wasValidSelection = this.flatRenderer.finishSelection(\n      this.selectionBoxElement,\n      this.startX,\n      this.startY,\n      this.currentX,\n      this.currentY,\n    );\n\n    document.removeEventListener('contextmenu', this.disableRightClick);\n\n    if (wasValidSelection) {\n      this.shouldIgnoreNextClick = true;\n    }\n  }\n\n  private disableRightClick = (event: MouseEvent): void => {\n    event.preventDefault();\n  };\n\n  get dropPreviewElement():\n    | ShapeImpl\n    | { type: BpmnItemType; businessObject: Record<string, unknown> }\n    | null {\n    if (!this.workflowEditorState.draggedElement || !this.hoveredDropZoneConnection) {\n      return null;\n    }\n\n    return this.workflowEditorState.draggedElement;\n  }\n\n  @action\n  getDropPreviewStyle(connection: ConnectionPath): SafeString {\n    return this.flatRenderer.getDropPreviewStyle(\n      connection,\n      this.contentOffset,\n      this.hoveredDropShiftedItemIds,\n      this.itemMap,\n    );\n  }\n\n  @action\n  handleCanvasDragOver(event: DragEvent): void {\n    if (this.isSimplifiedView) return;\n    if (!this.workflowEditorState.draggedElement) return;\n\n    const position = this.flatRenderer.getDragPosition(\n      event,\n      this.container,\n      this.workflowEditorState.zoomScale,\n      this.contentOffset,\n    );\n    if (!position) return;\n\n    const target = this.flatRenderer.findDropZoneAt(\n      position,\n      this.dropZoneConnections,\n      this.hoveredDropZoneConnection,\n      this.itemMap,\n      this.hoveredDropShiftedItemIds,\n    );\n\n    if (target && !this.isDropDisabledOnConnection(target)) {\n      event.preventDefault();\n      if (this.hoveredDropZoneConnection !== target) {\n        this.hoveredDropZoneConnection = target;\n      }\n    } else if (this.hoveredDropZoneConnection) {\n      this.hoveredDropZoneConnection = null;\n    }\n  }\n\n  @action\n  handleCanvasDrop(event: DragEvent): void {\n    if (this.isSimplifiedView) return;\n    const target = this.hoveredDropZoneConnection;\n    if (!target || this.isDropDisabledOnConnection(target)) return;\n\n    event.preventDefault();\n    this.handleConnectionDrop(target, event);\n  }\n\n  @action\n  getDropZoneStyle(connection: ConnectionPath, isHovered: boolean): SafeString {\n    return this.flatRenderer.getDropZoneStyle(\n      connection,\n      isHovered,\n      this.contentOffset,\n      this.hoveredDropShiftedItemIds,\n      this.itemMap,\n    );\n  }\n\n  @action\n  createPreviewItem(\n    element: ShapeImpl | { type: BpmnItemType; businessObject: Record<string, unknown> },\n    connection: ConnectionPath,\n  ): FlatWorkflowItem {\n    return this.flatRenderer.createPreviewItem(element, connection);\n  }\n\n  isDropDisabledOnConnection(connection: ConnectionPath): boolean {\n    return this.flatRenderer.isDropDisabledOnConnection(connection);\n  }\n\n  @action\n  handleConnectionDragEnter(connection: ConnectionPath, event: DragEvent): void {\n    if (!connection?.flowConnection) return;\n    if (this.isDropDisabledOnConnection(connection)) return;\n\n    event.preventDefault();\n  }\n\n  @action\n  handleConnectionDragOver(connection: ConnectionPath, event: DragEvent): void {\n    if (!connection?.flowConnection) return;\n    if (this.isDropDisabledOnConnection(connection)) return;\n\n    event.preventDefault();\n    if (this.hoveredDropZoneConnection !== connection) {\n      this.hoveredDropZoneConnection = connection;\n    }\n  }\n\n  @action\n  handleConnectionDragLeave(connection: ConnectionPath, _event: DragEvent): void {\n    if (this.hoveredDropZoneConnection === connection) {\n      this.hoveredDropZoneConnection = null;\n    }\n  }\n\n  @action\n  handleConnectionDrop(connection: ConnectionPath, _event: DragEvent): void {\n    if (this.isDropDisabledOnConnection(connection)) return;\n\n    try {\n      this.flatRenderer.handleConnectionDrop(connection);\n    } finally {\n      this.hoveredDropZoneConnection = null;\n    }\n  }\n\n  @action\n  handleConnectionDragEnd(): void {\n    this.hoveredDropZoneConnection = null;\n  }\n\n  private handleGlobalDragEnd = (): void => {\n    queueMicrotask(() => {\n      if (this.workflowEditorState.draggedElement) {\n        this.flatRenderer.cancelDrag();\n      }\n      this.hoveredDropZoneConnection = null;\n    });\n  };\n\n  private updateViewportSize(): void {\n    if (!this.container) return;\n    this.viewportWidth = this.container.clientWidth;\n    this.viewportHeight = this.container.clientHeight;\n    this.scrollTop = this.container.scrollTop;\n    this.scrollLeft = this.container.scrollLeft;\n\n    this.clampScrollToContent();\n  }\n\n  private clampScrollToContent(): void {\n    if (!this.container) return;\n\n    const scale = this.workflowEditorState.zoomScale || 1;\n    const { width: contentWidth, height: contentHeight } = this.contentSize;\n\n    const maxScrollLeft = Math.max(0, contentWidth * scale - this.viewportWidth);\n    const maxScrollTop = Math.max(0, contentHeight * scale - this.viewportHeight);\n\n    const nextScrollLeft = Math.max(0, Math.min(this.container.scrollLeft, maxScrollLeft));\n    const nextScrollTop = Math.max(0, Math.min(this.container.scrollTop, maxScrollTop));\n\n    if (nextScrollLeft !== this.container.scrollLeft) {\n      this.container.scrollLeft = nextScrollLeft;\n    }\n    if (nextScrollTop !== this.container.scrollTop) {\n      this.container.scrollTop = nextScrollTop;\n    }\n\n    this.scrollLeft = this.container.scrollLeft;\n    this.scrollTop = this.container.scrollTop;\n  }\n\n  private centerWorkflow(): void {\n    if (!this.container) return;\n\n    if (this.scrollRAF !== null) {\n      cancelAnimationFrame(this.scrollRAF);\n      this.scrollRAF = null;\n    }\n\n    const { width: contentWidth } = this.contentSize;\n    const scale = this.workflowEditorState.zoomScale;\n    const scaledWidth = contentWidth * scale;\n\n    if (scaledWidth > this.viewportWidth) {\n      const targetX = (scaledWidth - this.viewportWidth) / 2;\n      this.container.scrollLeft = targetX;\n      this.scrollLeft = targetX;\n    } else {\n      this.container.scrollLeft = 0;\n      this.scrollLeft = 0;\n    }\n\n    const paddingTop = this.contentOffset.y * scale;\n    this.container.scrollTop = paddingTop;\n    this.scrollTop = paddingTop;\n\n    this.clampScrollToContent();\n  }\n\n  private centerOnItem(item: FlatWorkflowItem): void {\n    if (!this.container) return;\n\n    if (this.scrollRAF !== null) {\n      cancelAnimationFrame(this.scrollRAF);\n      this.scrollRAF = null;\n    }\n\n    const scale = this.workflowEditorState.zoomScale;\n    const { x: centerOffsetX, y: centerOffsetY } = this.contentOffset;\n    const centerX = item.x + item.width / 2 + centerOffsetX;\n    const centerY = item.y + item.height / 2 + centerOffsetY;\n\n    this.container.scrollLeft = Math.max(0, centerX * scale - this.viewportWidth / 2);\n    this.container.scrollTop = Math.max(0, centerY * scale - this.viewportHeight / 2);\n    this.scrollLeft = this.container.scrollLeft;\n    this.scrollTop = this.container.scrollTop;\n\n    this.clampScrollToContent();\n  }\n\n  private handleLayoutChange(currentLayout: LayoutResult): void {\n    const currentStartElementId = this.args.startElement?.id ?? null;\n    if (currentStartElementId !== this.lastStartElementId) {\n      const previousStartElementId = this.lastStartElementId;\n      this.lastStartElementId = currentStartElementId;\n      this.previousRootVisualX = null;\n\n      requestAnimationFrame(() => {\n        // When exiting a subprocess, center on the subprocess element in the parent layout\n        // rather than centering the entire workflow generically.\n        const subProcessItem = previousStartElementId\n          ? currentLayout.items.find(\n              (item) =>\n                item.element?.children?.some((child) => child.id === previousStartElementId),\n            )\n          : null;\n\n        if (subProcessItem) {\n          this.centerOnItem(subProcessItem);\n        } else {\n          this.centerWorkflow();\n        }\n      });\n      return;\n    }\n\n    const currentVersion = this.workflowEditorState.collapsedStepsVersion;\n    const rootItem = this.getRootItem(currentLayout);\n    const { x: centerOffsetX } = this.contentOffset;\n    const currentRootVisualX = rootItem ? rootItem.x + rootItem.width / 2 + centerOffsetX : null;\n\n    if (currentVersion === this.lastCollapsedStepsVersion) {\n      if (currentRootVisualX !== null) {\n        this.previousRootVisualX = currentRootVisualX;\n      }\n      return;\n    }\n\n    this.lastCollapsedStepsVersion = currentVersion;\n\n    if (this.workflowEditorState.skipNextLayoutReCenter) {\n      this.flatRenderer.clearSkipNextLayoutReCenter();\n\n      const collapseId = this.workflowEditorState.scrollToCollapseId;\n      const click = this.workflowEditorState.lastCollapseClick;\n\n      this.flatRenderer.clearScrollToCollapseId();\n      this.flatRenderer.clearLastCollapseClick();\n\n      this.applyCollapseScrollStrategy(collapseId, click, currentLayout, currentRootVisualX);\n\n      if (currentRootVisualX !== null) {\n        this.previousRootVisualX = currentRootVisualX;\n      }\n      return;\n    }\n\n    if (currentRootVisualX !== null) {\n      this.previousRootVisualX = currentRootVisualX;\n    }\n\n    later(this, this.centerOnVisibleContentAfterLayoutChange, 0);\n  }\n\n  /* eslint-disable prefer-const -- split let/assign to avoid TDZ */\n  private scheduleDoubleRAF(callback: () => void): void {\n    let outer: number;\n    outer = requestAnimationFrame(() => {\n      this.collapseRAFs.delete(outer);\n      let inner: number;\n      inner = requestAnimationFrame(() => {\n        this.collapseRAFs.delete(inner);\n        callback();\n      });\n      this.collapseRAFs.add(inner);\n    });\n    this.collapseRAFs.add(outer);\n  }\n  /* eslint-enable prefer-const */\n\n  private applyCollapseScrollStrategy(\n    collapseId: string | undefined,\n    click: { collapseId: string; clientX: number; clientY: number } | null,\n    currentLayout: LayoutResult,\n    currentRootVisualX: number | null,\n  ): void {\n    if (collapseId && click?.collapseId === collapseId && this.container) {\n      this.scheduleClickAnchoredScroll(collapseId, click, currentLayout.items);\n    } else if (this.previousRootVisualX !== null && currentRootVisualX !== null && this.container) {\n      this.scheduleRootAnchoredScroll(currentRootVisualX);\n    } else if (collapseId) {\n      this.scheduleDoubleRAF(() => {\n        this.scrollToCollapseButton(collapseId);\n      });\n    } else {\n      this.flatRenderer.setCollapseTransitioning(false);\n    }\n  }\n\n  private scheduleClickAnchoredScroll(\n    collapseId: string,\n    click: { collapseId: string; clientX: number; clientY: number },\n    layoutItems: FlatWorkflowItem[],\n  ): void {\n    const scrollTarget = this.computeScrollTargetForCollapseAnchor(collapseId, click, layoutItems);\n\n    if (scrollTarget) {\n      this.scheduleDoubleRAF(() => {\n        if (!this.container) {\n          this.flatRenderer.setCollapseTransitioning(false);\n          return;\n        }\n\n        const maxScrollLeft = Math.max(0, this.container.scrollWidth - this.viewportWidth);\n        const maxScrollTop = Math.max(0, this.container.scrollHeight - this.viewportHeight);\n        this.container.scrollLeft = Math.max(0, Math.min(scrollTarget.left, maxScrollLeft));\n        this.container.scrollTop = Math.max(0, Math.min(scrollTarget.top, maxScrollTop));\n        this.scrollLeft = this.container.scrollLeft;\n        this.scrollTop = this.container.scrollTop;\n        this.clampScrollToContent();\n        this.flatRenderer.setCollapseTransitioning(false);\n      });\n    } else {\n      this.scheduleDoubleRAF(() => {\n        this.scrollToCollapseButton(collapseId);\n      });\n    }\n  }\n\n  private scheduleRootAnchoredScroll(currentRootVisualX: number): void {\n    const deltaVisualX = currentRootVisualX - this.previousRootVisualX!;\n    const scale = this.workflowEditorState.zoomScale;\n    const scrollAdjustment = deltaVisualX * scale;\n\n    this.scheduleDoubleRAF(() => {\n      if (this.container) {\n        const newScrollLeft = this.container.scrollLeft + scrollAdjustment;\n        const maxScrollLeft = Math.max(0, this.container.scrollWidth - this.viewportWidth);\n\n        this.container.scrollLeft = Math.max(0, Math.min(newScrollLeft, maxScrollLeft));\n        this.scrollLeft = this.container.scrollLeft;\n      }\n      this.flatRenderer.setCollapseTransitioning(false);\n    });\n  }\n\n  private computeScrollTargetForCollapseAnchor(\n    collapseId: string,\n    click: { collapseId: string; clientX: number; clientY: number },\n    layoutItems: FlatWorkflowItem[],\n  ): { left: number; top: number } | null {\n    if (!this.container) return null;\n\n    const rect = this.container.getBoundingClientRect();\n    const clickX = click.clientX - rect.left;\n    const clickY = click.clientY - rect.top;\n\n    if (!Number.isFinite(clickX) || !Number.isFinite(clickY)) return null;\n\n    const connections = this.flatRenderer.calculateConnections(layoutItems);\n    const connection = connections.find(\n      (c) => c.collapseElementId === collapseId || c.branchesCollapseId === collapseId,\n    );\n    if (!connection) return null;\n\n    const button = this.getCollapseButtonPosition(connection, collapseId);\n    const scale = this.workflowEditorState.zoomScale || 1;\n    return {\n      left: button.x * scale - clickX,\n      top: button.y * scale - clickY,\n    };\n  }\n\n  private getCollapseButtonPosition(\n    connection: ConnectionPath,\n    collapseId: string,\n  ): { x: number; y: number } {\n    let x = connection.collapseX;\n    let y = connection.collapseY;\n\n    if (connection.branchesCollapseId === collapseId) {\n      const parentItem = this.itemMap.get(connection.fromId);\n      if (parentItem) {\n        x = parentItem.x + parentItem.width / 2;\n      }\n      y = connection.branchesCollapseY ?? connection.collapseY;\n    }\n\n    const offset = this.contentOffset;\n    return { x: x + offset.x, y: y + offset.y };\n  }\n\n  private getRootItem(layout: LayoutResult): FlatWorkflowItem | null {\n    const startId = this.args.startElement?.id;\n    if (startId) {\n      const byElementId = layout.items.find((item) => item.element?.id === startId);\n      if (byElementId) return byElementId;\n      const byItemId = layout.items.find((item) => item.id === startId);\n      if (byItemId) return byItemId;\n    }\n\n    return layout.items[0] ?? null;\n  }\n\n  private centerOnVisibleContentAfterLayoutChange(): void {\n    this.centerOnVisibleContent();\n\n    if (this.workflowEditorState.isCollapseTransitioning) {\n      requestAnimationFrame(() => {\n        this.flatRenderer.setCollapseTransitioning(false);\n      });\n    }\n  }\n\n  private schedulePendingScrollToItem(): void {\n    if (!this.workflowEditorState.scrollToItemId) {\n      return;\n    }\n\n    scheduleOnce('afterRender', this, this.handlePendingScrollToItem);\n  }\n\n  private handlePendingScrollToItem(): void {\n    const targetId = this.workflowEditorState.scrollToItemId;\n    if (!targetId || !this.container) return;\n\n    const currentLayout = this.layout;\n    const targetItem =\n      currentLayout.items.find((item) => item.id === targetId)\n      ?? currentLayout.items.find((item) => item.element?.id === targetId)\n      ?? currentLayout.items.find((item) => item.flow?.id === targetId);\n\n    this.flatRenderer.clearScrollToItemId();\n\n    if (!targetItem) return;\n\n    const scale = this.workflowEditorState.zoomScale;\n    const { x: centerOffsetX, y: centerOffsetY } = this.contentOffset;\n    const centerX = targetItem.x + targetItem.width / 2 + centerOffsetX;\n    const centerY = targetItem.y + targetItem.height / 2 + centerOffsetY;\n    const targetScrollLeft = centerX * scale - this.viewportWidth / 2;\n    const targetScrollTop = centerY * scale - this.viewportHeight / 2;\n    const maxScrollLeft = Math.max(0, this.container.scrollWidth - this.viewportWidth);\n    const maxScrollTop = Math.max(0, this.container.scrollHeight - this.viewportHeight);\n    const clampedLeft = Math.max(0, Math.min(targetScrollLeft, maxScrollLeft));\n    const clampedTop = Math.max(0, Math.min(targetScrollTop, maxScrollTop));\n\n    this.container.scrollTo({ left: clampedLeft, top: clampedTop, behavior: 'smooth' });\n    // Assign target values directly: scrollTo({behavior:'smooth'}) is async, so\n    // reading container.scrollLeft/scrollTop here would return stale (pre-animation) values.\n    this.scrollLeft = clampedLeft;\n    this.scrollTop = clampedTop;\n  }\n\n  private scrollToCollapseButton(collapseId: string): void {\n    if (!this.container) {\n      this.flatRenderer.setCollapseTransitioning(false);\n      return;\n    }\n\n    const allConnections = this.flatRenderer.calculateConnections(this.layout.items);\n    const connection = allConnections.find(\n      (c) => c.collapseElementId === collapseId || c.branchesCollapseId === collapseId,\n    );\n    if (!connection) {\n      this.flatRenderer.setCollapseTransitioning(false);\n      return;\n    }\n\n    const button = this.getCollapseButtonPosition(connection, collapseId);\n    const scale = this.workflowEditorState.zoomScale;\n    const targetScrollLeft = button.x * scale - this.viewportWidth / 2;\n    const targetScrollTop = button.y * scale - this.viewportHeight / 2;\n    const maxScrollLeft = Math.max(0, this.container.scrollWidth - this.viewportWidth);\n    const maxScrollTop = Math.max(0, this.container.scrollHeight - this.viewportHeight);\n\n    this.container.scrollLeft = Math.max(0, Math.min(targetScrollLeft, maxScrollLeft));\n    this.container.scrollTop = Math.max(0, Math.min(targetScrollTop, maxScrollTop));\n    this.scrollLeft = this.container.scrollLeft;\n    this.scrollTop = this.container.scrollTop;\n\n    this.clampScrollToContent();\n\n    requestAnimationFrame(() => {\n      this.flatRenderer.setCollapseTransitioning(false);\n    });\n  }\n\n  private centerOnVisibleContent(): void {\n    if (!this.container) return;\n\n    if (this.scrollRAF !== null) {\n      cancelAnimationFrame(this.scrollRAF);\n      this.scrollRAF = null;\n    }\n\n    const { width: contentWidth, height: contentHeight } = this.contentSize;\n    const scale = this.workflowEditorState.zoomScale;\n    const scaledWidth = contentWidth * scale;\n    const scaledHeight = contentHeight * scale;\n\n    if (scaledWidth > this.viewportWidth) {\n      const targetX = (scaledWidth - this.viewportWidth) / 2;\n      this.container.scrollLeft = targetX;\n      this.scrollLeft = targetX;\n    } else {\n      this.container.scrollLeft = 0;\n      this.scrollLeft = 0;\n    }\n\n    const maxScrollTop = Math.max(0, scaledHeight - this.viewportHeight);\n    if (this.container.scrollTop > maxScrollTop) {\n      const paddingTop = this.contentOffset.y * scale;\n      const targetTop = Math.min(paddingTop, maxScrollTop);\n      this.container.scrollTop = targetTop;\n      this.scrollTop = targetTop;\n    }\n\n    this.clampScrollToContent();\n    this.renderVersion++;\n  }\n\n  private scheduleRenderVersionBump(): void {\n    if (this.renderVersionRAF !== null) return;\n    this.renderVersionRAF = requestAnimationFrame(() => {\n      this.renderVersionRAF = null;\n      this.renderVersion++;\n    });\n  }\n}\n","import type { FlatWorkflowItem } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\n\nimport { guidFor } from '@ember/object/internals';\nimport Component from '@glimmer/component';\n\nimport { LAYOUT } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\n\n// Layout constants\nconst CARD_HEIGHT = LAYOUT.CARD_HEIGHT; // Minimum visual card height\nconst CARD_WIDTH = LAYOUT.CARD_WIDTH;\nconst CARD_MARGIN = LAYOUT.CARD_MARGIN;\nconst OUTLINE_OFFSET = 2; // Offset to account for card outline/border\nconst ARROW_OFFSET = OUTLINE_OFFSET; // Arrow tip touches the card border\nconst CORNER_RADIUS = 12; // Radius for path rounded corners\n\ninterface FlatLinkToLineArgs {\n  sourceItem: FlatWorkflowItem;\n  targetItem: FlatWorkflowItem;\n  centerOffset?: { x: number; y: number };\n}\n\n/**\n * Flat Link-To-Line Component - Renders a line connecting a link-to element to its target.\n *\n * Uses SVG path with marker-end for automatic arrow positioning and rotation.\n * This is a simplified version for the flat renderer that uses pre-calculated positions.\n */\nexport default class WorkflowEditorRendererFlatLinkToLineComponent extends Component<FlatLinkToLineArgs> {\n  /**\n   * Unique marker ID for this component instance.\n   * Required because SVG markers are referenced by ID.\n   */\n  get markerId(): string {\n    return `link-to-arrow-${guidFor(this)}`;\n  }\n\n  /**\n   * URL reference to the marker for use in marker-end attribute.\n   */\n  get markerUrl(): string {\n    return `url(#${this.markerId})`;\n  }\n\n  /**\n   * Calculates the SVG path for the link-to line.\n   */\n  get linePath(): string {\n    const { sourceItem, targetItem, centerOffset } = this.args;\n    if (!sourceItem || !targetItem) return '';\n\n    // Get center offset values (default to 0 if not provided)\n    const offsetX = centerOffset?.x ?? 0;\n    const offsetY = centerOffset?.y ?? 0;\n\n    const sourceHeight = this.getVisualHeight(sourceItem);\n    const targetHeight = this.getVisualHeight(targetItem);\n\n    // Apply centerOffset to item positions\n    const sourceX = sourceItem.x + offsetX;\n    const sourceY = sourceItem.y + offsetY;\n    const targetX = targetItem.x + offsetX;\n    const targetY = targetItem.y + offsetY;\n\n    // Calculate center points of each card\n    const sourceCenterY = sourceY + sourceHeight / 2;\n    const targetCenterY = targetY + targetHeight / 2;\n\n    // Start at the right edge of the card + outline offset\n    const startX = sourceX + CARD_WIDTH + OUTLINE_OFFSET;\n    const startY = sourceCenterY;\n\n    // Determine end point and direction based on target position.\n    // Arrows always arrive at the SIDE of cards (left or right edge), never top/bottom.\n    const dy = targetCenterY - sourceCenterY;\n    const targetRightEdge = targetX + CARD_WIDTH;\n\n    const MIN_OUT_OFFSET = 24;\n    const CLEARANCE = CORNER_RADIUS * 2 + ARROW_OFFSET;\n\n    let turnX: number;\n    let endX: number;\n    const endY = targetCenterY;\n    let direction: 'left' | 'right';\n\n    if (Math.abs(dy) <= CARD_HEIGHT || targetX - CLEARANCE > startX + MIN_OUT_OFFSET) {\n      // Zone 0/A: same level OR target clearly to the right — arrive at left edge\n      turnX = startX + MIN_OUT_OFFSET;\n      endX = targetX - ARROW_OFFSET;\n      direction = 'right';\n    } else if (startX + MIN_OUT_OFFSET > targetRightEdge + CLEARANCE) {\n      // Zone C: turn point naturally beyond target — arrive at right edge\n      turnX = startX + MIN_OUT_OFFSET;\n      endX = targetRightEdge + ARROW_OFFSET;\n      direction = 'left';\n    } else {\n      // Zone B: overlap — turnX would fall ON the target card\n      // Extend turnX beyond the target right edge, arrive from the right\n      turnX = targetRightEdge + CLEARANCE;\n      endX = targetRightEdge + ARROW_OFFSET;\n      direction = 'left';\n    }\n\n    return this.createPath(startX, startY, endX, endY, direction, turnX);\n  }\n\n  /**\n   * Creates an SVG path with rounded corners.\n   * Path starts from right edge of source and routes to target edge.\n   * The final segment direction matches the arrow direction for proper marker orientation.\n   */\n  private createPath(\n    startX: number,\n    startY: number,\n    endX: number,\n    endY: number,\n    direction: 'left' | 'right',\n    turnX: number,\n  ): string {\n    const r = CORNER_RADIUS;\n    const dy = endY - startY;\n\n    // For nearly straight horizontal lines (same level target going right)\n    if (direction === 'right' && Math.abs(dy) < 2) {\n      return `M ${startX} ${startY} L ${endX} ${endY}`;\n    }\n\n    // Determine directions\n    const goingDown = dy > 0;\n    const verticalDir = goingDown ? 1 : -1;\n\n    // Build the path with quadratic bezier curves for smooth corners\n    let path = `M ${startX} ${startY} `;\n\n    // First segment: horizontal to first corner\n    path += `L ${turnX - r} ${startY} `;\n\n    // First corner: turn from horizontal to vertical\n    path += `Q ${turnX} ${startY} ${turnX} ${startY + r * verticalDir} `;\n\n    if (direction === 'left') {\n      // Arrow points LEFT into right edge of target\n      // Path: right → vertical to target Y level → left to target\n\n      // Calculate safe vertical distance (ensure we have room for the corner radius)\n      const verticalEndY = goingDown ? endY - r : endY + r;\n\n      // Vertical segment to approach target Y level\n      path += `L ${turnX} ${verticalEndY} `;\n\n      // Second corner: turn from vertical to horizontal (going left)\n      path += `Q ${turnX} ${endY} ${turnX - r} ${endY} `;\n\n      // Final horizontal segment going LEFT (this sets marker direction)\n      path += `L ${endX} ${endY}`;\n    } else {\n      // Arrow points RIGHT into left edge of target (direction === 'right')\n      // Path: right → vertical to target Y level → right to target\n\n      // Calculate safe vertical distance\n      const verticalEndY = goingDown ? endY - r : endY + r;\n\n      // Vertical segment\n      path += `L ${turnX} ${verticalEndY} `;\n\n      // Second corner: turn from vertical to horizontal\n      const goingLeft = endX < turnX;\n      const horizontalDir = goingLeft ? -1 : 1;\n      path += `Q ${turnX} ${endY} ${turnX + r * horizontalDir} ${endY} `;\n\n      // Final horizontal segment to end\n      path += `L ${endX} ${endY}`;\n    }\n\n    return path;\n  }\n\n  private getVisualHeight(item: FlatWorkflowItem): number {\n    return Math.max(CARD_HEIGHT, item.height - CARD_MARGIN);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<svg\\n  class=\\\"c-feature-workflow-editor-flat-link-to-line\\\"\\n  data-test-feature-workflow-editor-flat-link-to-line\\n  data-test-feature-workflow-editor-renderer-link-to-line\\n  ...attributes\\n>\\n  {{! Arrow marker definition - chevron style with rounded stroke }}\\n  <defs>\\n    <marker\\n      id={{this.markerId}}\\n      viewBox=\\\"-6 -6 12 12\\\"\\n      refX=\\\"0\\\"\\n      refY=\\\"0\\\"\\n      markerWidth=\\\"10\\\"\\n      markerHeight=\\\"10\\\"\\n      orient=\\\"auto\\\"\\n    >\\n      {{! Chevron pointing right: the marker auto-rotates to match line direction }}\\n      <path class=\\\"c-feature-workflow-editor-flat-link-to-line__arrow\\\" d=\\\"M -4 -4 L 0 0 L -4 4\\\" />\\n    </marker>\\n  </defs>\\n\\n  {{! The connecting line with arrow marker at the end }}\\n  <path\\n    class=\\\"c-feature-workflow-editor-flat-link-to-line__path\\\"\\n    d={{this.linePath}}\\n    marker-end={{this.markerUrl}}\\n  />\\n</svg>\\n', { moduleName: 'client/features/workflow-editor/components/renderer/flat/link-to-line/template.hbs' });\n","import type { FlatWorkflowItem } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport {\n  BpmnEventTypeEnum,\n  BpmnGatewayTypeEnum,\n  BpmnTaskTypeEnum,\n} from 'client/features/workflow-editor/configuration';\n\nconst BASE_CLASS = 'c-feature-workflow-editor-flat-mini-card';\n\nconst TYPE_TO_MODIFIER = new Map<string, string>([\n  [BpmnEventTypeEnum.StartEvent, 'start'],\n  [BpmnEventTypeEnum.EndEvent, 'end'],\n  [BpmnGatewayTypeEnum.ExclusiveGateway, 'gateway'],\n  [BpmnEventTypeEnum.EscalationTask, 'escalation'],\n  [BpmnTaskTypeEnum.SubProcess, 'subprocess'],\n  [BpmnTaskTypeEnum.CallActivity, 'call-activity'],\n  [BpmnTaskTypeEnum.ScriptTask, 'automation'],\n]);\n\ninterface MiniCardArgs {\n  item: FlatWorkflowItem;\n  onClick: (event: MouseEvent) => void;\n}\n\nexport default class WorkflowEditorRendererFlatMiniCardComponent extends Component<MiniCardArgs> {\n  @service('feature/workflow-editor/state') private workflowEditorState: WorkflowEditorFeatureState;\n\n  get hasError(): boolean {\n    const item = this.args.item;\n\n    // Placeholders show an error state only after the user has attempted to save.\n    if (item.isPlaceholder) {\n      return this.workflowEditorState.hasAttemptedSave;\n    }\n\n    const itemToCheck = item.flow?.businessObject?.isLinkTo ? item.flow : item.element;\n    return this.workflowEditorState.itemsInError.some((error) => error.element === itemToCheck);\n  }\n\n  get miniCardClasses(): string {\n    const item = this.args.item;\n    const modifier = item.isPlaceholder\n      ? 'placeholder'\n      : TYPE_TO_MODIFIER.get(item.element?.type ?? '') ?? 'task';\n    const classes = `${BASE_CLASS} ${BASE_CLASS}--${modifier}`;\n    return this.hasError ? `${classes} ${BASE_CLASS}--error` : classes;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! template-lint-disable no-invalid-interactive }}\\n<div\\n  class={{this.miniCardClasses}}\\n  data-test-feature-workflow-editor-flat-mini-card={{@item.id}}\\n  data-test-feature-workflow-editor-renderer-step={{@item.id}}\\n  {{on \\'click\\' @onClick}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workflow-editor/components/renderer/flat/mini-card/template.hbs' });\n","import type { FlatWorkflowItem } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\nimport type WorkflowEditorFlatRendererUiInternalService from 'client/features/workflow-editor/services/internal-feature/flat-renderer/ui';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ninterface FlatPlaceholderArgs {\n  item: FlatWorkflowItem;\n}\n\n/**\n * Flat Placeholder Component - Renders a placeholder in the flat renderer.\n *\n * Placeholders show \"Drop a step here\" and handle drag-drop to replace\n * them with actual workflow elements.\n */\nexport default class WorkflowEditorRendererFlatPlaceholderComponent extends Component<FlatPlaceholderArgs> {\n  @service('feature/workflow-editor/state')\n  private workflowEditorState: WorkflowEditorFeatureState;\n\n  @service('feature/workflow-editor/internal-feature/flat-renderer/ui')\n  private flatRendererUi: WorkflowEditorFlatRendererUiInternalService;\n\n  @tracked isDraggingHover = false;\n\n  /**\n   * Validates if drop is disabled on this placeholder.\n   * Enforces the same rules as isDropDisabledOnConnection in the flat renderer:\n   * - Only palette items can be dropped on placeholders (to replace them)\n   * - Exception: LinkTo and EndEvent existing elements can be dropped (for retargeting/switching)\n   * - Type must be in the allowed list\n   * - No self-drop or auto-reference\n   */\n  get isDropDisabled(): boolean {\n    return this.flatRendererUi.isPlaceholderDropDisabled(\n      this.args.item.element,\n      this.workflowEditorState.draggedElement,\n      this.workflowEditorState.draggedElements,\n    );\n  }\n\n  get isInBackground(): boolean {\n    return this.flatRendererUi.isCurrentItemLinkToWithTarget();\n  }\n\n  get shouldDisplayErrorState(): boolean {\n    return this.workflowEditorState.shouldDisplayPlaceholderOnError;\n  }\n\n  get isDragged(): boolean {\n    return this.workflowEditorState.draggedElements?.includes(this.args.item.element) ?? false;\n  }\n\n  get placeholderClasses(): string {\n    const base = 'c-feature-workflow-editor-flat-placeholder';\n    const modifiers: string[] = [];\n\n    if (this.isDraggingHover) modifiers.push(`${base}--drag-hover`);\n    if (this.isDragged) modifiers.push(`${base}--dragged`);\n    if (this.isInBackground) modifiers.push(`${base}--in-background`);\n    if (this.shouldDisplayErrorState) modifiers.push(`${base}--error`);\n    if (this.workflowEditorState.isGrabMode) modifiers.push(`${base}--disable-pointer-events`);\n\n    return [base, ...modifiers].join(' ');\n  }\n\n  @action\n  handleDragEnter(): void {\n    if (this.isDropDisabled) return;\n    this.isDraggingHover = true;\n  }\n\n  @action\n  handleDragOver(event: DragEvent): void {\n    if (this.isDropDisabled) return;\n\n    this.isDraggingHover = true;\n    event.preventDefault();\n  }\n\n  @action\n  handleDragLeave(): void {\n    this.isDraggingHover = false;\n  }\n\n  @action\n  handleDrop(event: DragEvent): void {\n    if (this.isDropDisabled) return;\n\n    this.isDraggingHover = false;\n    event.preventDefault();\n    this.flatRendererUi.handlePlaceholderDrop(this.args.item.element);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{this.placeholderClasses}}\\n  data-test-feature-workflow-editor-flat-placeholder={{@item.id}}\\n  data-test-feature-workflow-editor-renderer-placeholder={{@item.id}}\\n  id={{@item.id}}\\n  {{on \\'dragenter\\' this.handleDragEnter}}\\n  {{on \\'dragover\\' this.handleDragOver}}\\n  {{on \\'dragleave\\' this.handleDragLeave}}\\n  {{on \\'drop\\' this.handleDrop}}\\n  ...attributes\\n>\\n  {{#if this.shouldDisplayErrorState}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName=\\\"error_outline\\\"\\n      @size=\\\"custom\\\"\\n      class=\\\"c-feature-workflow-editor-flat-placeholder__icon c-feature-workflow-editor-flat-placeholder__icon--error\\\"\\n      data-test-feature-workflow-editor-flat-placeholder-error-icon\\n    />\\n  {{else}}\\n    <img\\n      src=\\\"/img/icons/icon--help.svg\\\"\\n      class=\\\"c-feature-workflow-editor-flat-placeholder__icon\\\"\\n      alt=\\\"This is where you can drop new elements\\\"\\n    />\\n  {{/if}}\\n  <span class=\\\"c-feature-workflow-editor-flat-placeholder__text\\\">\\n    Drop a step here\\n  </span>\\n</div>\\n', { moduleName: 'client/features/workflow-editor/components/renderer/flat/placeholder/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! template-lint-disable no-inline-styles no-invalid-interactive no-pointer-down-event-binding }}\\n<div\\n  class={{this.rendererClasses}}\\n  data-test-feature-workflow-editor-flat-renderer\\n  {{did-insert this.handleDidInsert}}\\n  {{will-destroy this.handleWillDestroy}}\\n  {{on \\'scroll\\' this.handleScroll passive=true}}\\n  {{on \\'wheel\\' this.handleWheel passive=false}}\\n  {{on \\'mousedown\\' this.handleMouseDown}}\\n  {{on \\'mousemove\\' this.handleMouseMove}}\\n  {{on \\'mouseup\\' this.handleMouseUp}}\\n  ...attributes\\n>\\n  <div\\n    class=\\\"c-feature-workflow-editor-flat-renderer__canvas js-flat-renderer-canvas js-workflow-editor-renderer-container\\\"\\n    style={{this.canvasStyle}}\\n    data-workflow-width={{this.layout.totalWidth}}\\n    data-workflow-height={{this.layout.totalHeight}}\\n    data-test-feature-workflow-editor-flat-renderer-canvas\\n    {{on \\'click\\' this.handleCanvasClick}}\\n    {{on \\'dragover\\' this.handleCanvasDragOver}}\\n    {{on \\'drop\\' this.handleCanvasDrop}}\\n  >\\n    <div\\n      class=\\\"c-feature-workflow-editor-flat-renderer__content js-flat-renderer-content\\\"\\n      style={{this.contentStyle}}\\n    >\\n      {{! Connections layer }}\\n      <svg\\n        class=\\\"c-feature-workflow-editor-flat-renderer__connections\\n          {{if\\n            this.isSimplifiedView\\n            \\'c-feature-workflow-editor-flat-renderer__connections--simplified\\'\\n          }}\\\"\\n        data-test-feature-workflow-editor-flat-renderer-connections\\n        width={{this.svgWidth}}\\n        height={{this.svgHeight}}\\n      >\\n        {{#if this.useConnectionTransform}}\\n          <g transform={{this.connectionTransform}}>\\n            {{#each this.visibleConnections key=\\'id\\' as |connection|}}\\n              <path\\n                class=\\\"c-feature-workflow-editor-flat-renderer__connection\\\"\\n                d={{connection.d}}\\n                data-test-feature-workflow-editor-flat-renderer-connection={{connection.id}}\\n              />\\n            {{/each}}\\n          </g>\\n        {{else}}\\n          {{#each this.visibleConnections key=\\'id\\' as |connection|}}\\n            <path\\n              class=\\\"c-feature-workflow-editor-flat-renderer__connection\\\"\\n              d={{this.getAdjustedConnectionPath\\n                connection\\n                this.hoveredDropShiftedItemIds\\n                this.contentOffset\\n              }}\\n              data-test-feature-workflow-editor-flat-renderer-connection={{connection.id}}\\n            />\\n          {{/each}}\\n        {{/if}}\\n      </svg>\\n\\n      {{#if this.isSimplifiedView}}\\n        {{! Mini-cards layer }}\\n        {{#each this.visibleItems key=\\'id\\' as |item|}}\\n          <Feature::WorkflowEditor::Renderer::Flat::MiniCard\\n            @item={{item}}\\n            @onClick={{fn this.handleMiniCardClick item}}\\n            style={{this.getMiniCardStyle item this.hoveredDropShiftedItemIds}}\\n          />\\n        {{/each}}\\n\\n      {{else}}\\n        {{! Branch labels layer }}\\n        {{#each this.visibleConnections key=\\'id\\' as |connection|}}\\n          {{#if connection.branchLabel}}\\n            <div\\n              class=\\\"c-feature-workflow-editor-flat-renderer__branch-controls\\\"\\n              style={{this.getBranchLabelStyle connection}}\\n              data-test-feature-workflow-editor-flat-renderer-branch-controls={{connection.id}}\\n            >\\n              {{#if connection.flowConnection}}\\n                <Feature::WorkflowEditor::GoToGatewayButton\\n                  @connection={{connection.flowConnection}}\\n                />\\n              {{/if}}\\n\\n              <Shared::ActivatableButton\\n                @color={{or connection.branchLabelColor \\'primary\\'}}\\n                @text={{connection.branchLabel}}\\n                @hasError={{connection.branchLabelHasError}}\\n                @onClick={{fn this.handleBranchLabelClick connection}}\\n                class=\\\"c-feature-workflow-editor-flat-renderer__branch-label\\\"\\n                data-test-feature-workflow-editor-flat-renderer-branch-label={{connection.id}}\\n              />\\n            </div>\\n          {{/if}}\\n        {{/each}}\\n\\n        {{! Branches collapse buttons }}\\n        {{#each this.visibleConnections key=\\'id\\' as |connection|}}\\n          {{#if connection.branchesCollapseId}}\\n            <Feature::WorkflowEditor::CollapseButton\\n              class=\\\"c-feature-workflow-editor-flat-renderer__collapse-button\\\"\\n              @elementId={{connection.branchesCollapseId}}\\n              @connection={{connection.branchConnections}}\\n              style={{this.getBranchesCollapseButtonStyle connection}}\\n              data-test-feature-workflow-editor-flat-renderer-branches-collapse-button={{connection.fromId}}\\n            />\\n          {{/if}}\\n        {{/each}}\\n\\n        {{! Collapse buttons }}\\n        {{#each this.visibleConnections key=\\'id\\' as |connection|}}\\n          {{#if connection.collapseElementId}}\\n            <Feature::WorkflowEditor::CollapseButton\\n              class=\\\"c-feature-workflow-editor-flat-renderer__collapse-button\\\"\\n              @elementId={{connection.collapseElementId}}\\n              @connection={{connection.flowConnection}}\\n              style={{this.getCollapseButtonStyle connection}}\\n              data-test-feature-workflow-editor-flat-renderer-collapse-button={{connection.id}}\\n            />\\n          {{/if}}\\n        {{/each}}\\n\\n        {{! Drop zones on connections }}\\n        {{#each this.dropZoneConnections key=\\'id\\' as |connection|}}\\n          <div\\n            class={{get-classes-with-modifiers\\n              \\'c-feature-workflow-editor-flat-renderer__drop-zone\\'\\n              active=(eq this.hoveredDropZoneConnection connection)\\n            }}\\n            style={{this.getDropZoneStyle\\n              connection\\n              (eq this.hoveredDropZoneConnection connection)\\n            }}\\n            data-test-feature-workflow-editor-flat-renderer-drop-zone={{connection.id}}\\n          />\\n        {{/each}}\\n\\n        {{! Drop preview }}\\n        {{#if this.hoveredDropZoneConnection}}\\n          {{#if this.dropPreviewElement}}\\n            <Feature::WorkflowEditor::Renderer::Flat::Card\\n              @item={{this.createPreviewItem\\n                this.dropPreviewElement\\n                this.hoveredDropZoneConnection\\n              }}\\n              style={{this.getDropPreviewStyle this.hoveredDropZoneConnection}}\\n              class=\\\"c-feature-workflow-editor-flat-card--preview\\\"\\n            />\\n          {{/if}}\\n        {{/if}}\\n\\n        {{! Cards and Placeholders layer }}\\n        {{#each this.visibleItems key=\\'id\\' as |item|}}\\n          {{#if item.isPlaceholder}}\\n            <Feature::WorkflowEditor::Renderer::Flat::Placeholder\\n              @item={{item}}\\n              style={{this.getItemStyle item this.hoveredDropShiftedItemIds}}\\n            />\\n          {{else}}\\n            <Feature::WorkflowEditor::Renderer::Flat::Card\\n              @item={{item}}\\n              style={{this.getItemStyle item this.hoveredDropShiftedItemIds}}\\n            />\\n          {{/if}}\\n        {{/each}}\\n      {{/if}}\\n\\n      {{! Link-to line }}\\n      {{#if this.linkToLineData}}\\n        <Feature::WorkflowEditor::Renderer::Flat::LinkToLine\\n          @sourceItem={{this.linkToLineData.sourceItem}}\\n          @targetItem={{this.linkToLineData.targetItem}}\\n          @centerOffset={{this.contentOffset}}\\n        />\\n      {{/if}}\\n\\n    </div>\\n  </div>\\n\\n  {{! Selection box (outside scaled canvas) }}\\n  <div\\n    class=\\\"c-feature-workflow-editor-flat-renderer__selection-box js-workflow-editor-renderer-selection-box\\\"\\n    data-test-feature-workflow-editor-flat-renderer-selection-box\\n  />\\n</div>\\n', { moduleName: 'client/features/workflow-editor/components/renderer/flat/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{shared/get-classes-with-modifiers\\n    \\'c-feature-workflow-editor-renderer\\'\\n    link-to-select-mode=this.workflowEditorState.isLinkToSelectModeOn\\n    grab-mode=this.workflowEditorState.isGrabMode\\n    grabbing=this.workflowEditorState.isGrabbing\\n  }}\\n  data-test-feature-workflow-editor-renderer\\n  role=\\\"button\\\"\\n  {{did-insert this.handleRootDidInsert}}\\n  {{will-destroy this.handleRootWillDestroy}}\\n  ...attributes\\n>\\n  <Feature::WorkflowEditor::Banner />\\n  {{#if this.isSubProcess}}\\n    <header\\n      class=\\\"c-feature-workflow-editor-renderer__header\\\"\\n      data-test-feature-workflow-editor-renderer-header\\n    >\\n      <Navigation::DataViewBreadcrumb\\n        @breadcrumbs={{this.subProcessBreadcrumb}}\\n        @isNewDesign={{true}}\\n        class=\\\"c-feature-workflow-editor-renderer__header-breadcrumb\\\"\\n      />\\n      <Shared::CloseButton\\n        {{on \\'click\\' this.handleCloseSubProcess}}\\n        data-test-feature-workflow-editor-renderer-header-close\\n        class=\\\"c-feature-workflow-editor-renderer__header-close\\\"\\n      />\\n    </header>\\n  {{/if}}\\n  <Feature::WorkflowEditor::Renderer::Flat\\n    @workflow={{@workflow}}\\n    @startElement={{this.startEvent}}\\n  />\\n\\n  <Feature::WorkflowEditor::Renderer::ToolBar\\n    class=\\\"c-feature-workflow-editor-renderer__tool-bar\\\"\\n  />\\n\\n</div>\\n', { moduleName: 'client/features/workflow-editor/components/renderer/template.hbs' });\n","import type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorZoomInternalFeatureService from 'client/features/workflow-editor/services/internal-feature/zoom';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport {\n  getContentOffset,\n  getContentPadding,\n  getWorkflowSize,\n} from 'client/features/workflow-editor/utils/zoom-geometry';\n\nexport default class WorkflowEditorRendererToolBarComponent extends Component {\n  @service('feature/workflow-editor/state') public workflowEditorState: WorkflowEditorFeatureState;\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n  @service('feature/workflow-editor/internal-feature/zoom')\n  private zoomService: WorkflowEditorZoomInternalFeatureService;\n\n  private rendererElement: HTMLElement | null = null;\n  private mouseGrabStart: { x: number; y: number } | null = null;\n\n  willDestroy(): void {\n    super.willDestroy();\n\n    this.rendererElement?.parentElement?.removeEventListener('mousedown', this.handleMouseDown);\n    this.stopGrabListeners();\n    this.rendererElement = null;\n  }\n\n  @action\n  handleDidInsert() {\n    const container = document.querySelector('.js-workflow-editor-renderer');\n    this.rendererElement = (container?.children[0] as HTMLElement) ?? null;\n\n    if (!this.rendererElement?.parentElement) return;\n\n    this.rendererElement.parentElement.addEventListener('mousedown', this.handleMouseDown);\n  }\n\n  @action\n  handleSimpleMode(event: MouseEvent) {\n    event.stopPropagation();\n    this.workflowEditorFeature.setClickMode('select');\n  }\n\n  @action\n  handleGrabMode(event: MouseEvent) {\n    event.stopPropagation();\n    this.workflowEditorFeature.setClickMode('grab');\n  }\n\n  @action\n  handleMouseDown(event: MouseEvent) {\n    if (this.workflowEditorState.isGrabMode) {\n      event.stopPropagation();\n      this.workflowEditorFeature.setGrabbing(true);\n      this.mouseGrabStart = { x: event.pageX, y: event.pageY };\n      this.startGrabListeners();\n    }\n  }\n\n  @action\n  handleMouseMove(event: MouseEvent) {\n    if (this.workflowEditorState.isGrabbing && this.mouseGrabStart) {\n      event.stopPropagation();\n      const dx = event.pageX - this.mouseGrabStart.x;\n      const dy = event.pageY - this.mouseGrabStart.y;\n      this.rendererElement.parentElement.scrollLeft -= dx;\n      this.rendererElement.parentElement.scrollTop -= dy;\n      this.mouseGrabStart = { x: event.pageX, y: event.pageY };\n    }\n  }\n\n  @action\n  handleMouseUp() {\n    this.workflowEditorFeature.setGrabbing(false);\n    this.mouseGrabStart = null;\n    this.stopGrabListeners();\n  }\n\n  private startGrabListeners() {\n    document.addEventListener('mousemove', this.handleMouseMove);\n    document.addEventListener('mouseup', this.handleMouseUp);\n  }\n\n  private stopGrabListeners() {\n    document.removeEventListener('mousemove', this.handleMouseMove);\n    document.removeEventListener('mouseup', this.handleMouseUp);\n  }\n\n  @action\n  handleZoomIn(event: MouseEvent) {\n    event.stopPropagation();\n    this.handleCenteredZoom('in');\n  }\n\n  @action\n  handleZoomOut(event: MouseEvent) {\n    event.stopPropagation();\n    this.handleCenteredZoom('out');\n  }\n\n  @action\n  handleZoomAuto(event: MouseEvent) {\n    event.stopPropagation();\n    this.zoomService.autoFitZoom(this.rendererElement);\n  }\n\n  private handleCenteredZoom(direction: 'in' | 'out') {\n    if (!this.rendererElement?.parentElement) return;\n\n    const container = this.rendererElement.parentElement;\n    const workflowSize = getWorkflowSize(this.rendererElement);\n\n    const scrollLeftBefore = container.scrollLeft;\n    const scrollTopBefore = container.scrollTop;\n    const anchorX = container.clientWidth / 2;\n    const anchorY = container.clientHeight / 2;\n\n    const scaleBefore = this.workflowEditorState.zoomScale;\n\n    let contentXBefore: number | null = null;\n    let contentYBefore: number | null = null;\n\n    if (workflowSize) {\n      const offsetBefore = getContentOffset(\n        workflowSize.width,\n        scaleBefore,\n        container.clientWidth,\n        container.clientHeight,\n      );\n      contentXBefore = (scrollLeftBefore + anchorX) / scaleBefore - offsetBefore.x;\n      contentYBefore = (scrollTopBefore + anchorY) / scaleBefore - offsetBefore.y;\n    }\n\n    if (direction === 'in') {\n      this.zoomService.zoomIn(this.rendererElement);\n    } else {\n      this.zoomService.zoomOut(this.rendererElement);\n    }\n\n    const scaleAfter = this.workflowEditorState.zoomScale;\n    if (\n      scaleAfter === scaleBefore\n      || !workflowSize\n      || contentXBefore === null\n      || contentYBefore === null\n    ) {\n      return;\n    }\n\n    const offsetAfter = getContentOffset(\n      workflowSize.width,\n      scaleAfter,\n      container.clientWidth,\n      container.clientHeight,\n    );\n    const paddingAfter = getContentPadding(\n      scaleAfter,\n      container.clientWidth,\n      container.clientHeight,\n    );\n\n    const boundedContentX = Math.min(\n      Math.max(contentXBefore, -paddingAfter.x),\n      workflowSize.width + paddingAfter.x,\n    );\n    const boundedContentY = Math.min(\n      Math.max(contentYBefore, -paddingAfter.y),\n      workflowSize.height + paddingAfter.y,\n    );\n\n    const contentSizeAfter = {\n      width: workflowSize.width + 2 * offsetAfter.x,\n      height: workflowSize.height + 2 * offsetAfter.y,\n    };\n\n    // Keep scroll boundaries in sync immediately after scale change.\n    this.rendererElement.style.width = `${contentSizeAfter.width * scaleAfter}px`;\n    this.rendererElement.style.height = `${contentSizeAfter.height * scaleAfter}px`;\n\n    let newScrollLeft = (boundedContentX + offsetAfter.x) * scaleAfter - anchorX;\n    let newScrollTop = (boundedContentY + offsetAfter.y) * scaleAfter - anchorY;\n\n    const maxScrollLeft = Math.max(0, contentSizeAfter.width * scaleAfter - container.clientWidth);\n    const maxScrollTop = Math.max(0, contentSizeAfter.height * scaleAfter - container.clientHeight);\n\n    newScrollLeft = Math.max(0, Math.min(newScrollLeft, maxScrollLeft));\n    newScrollTop = Math.max(0, Math.min(newScrollTop, maxScrollTop));\n\n    container.scrollLeft = newScrollLeft;\n    container.scrollTop = newScrollTop;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-editor-renderer-tool-bar\\\"\\n  data-test-feature-workflow-editor-renderer-tool-bar\\n  {{did-insert this.handleDidInsert}}\\n  ...attributes\\n>\\n  <div class=\\\"c-feature-workflow-editor-renderer-tool-bar__block\\\">\\n    <Shared::ToggableIcon\\n      @icon=\\\"/img/icons/cursor.svg\\\"\\n      @alt=\\\"simple-mode\\\"\\n      @isToggled={{this.workflowEditorState.isSelectMode}}\\n      {{on \\'click\\' this.handleSimpleMode}}\\n      data-test-feature-workflow-editor-renderer-tool-bar-simple-mode\\n    />\\n    <Shared::ToggableIcon\\n      @icon=\\\"/img/icons/grab.svg\\\"\\n      @alt=\\\"grab-mode\\\"\\n      @isToggled={{this.workflowEditorState.isGrabMode}}\\n      {{on \\'click\\' this.handleGrabMode}}\\n      data-test-feature-workflow-editor-renderer-tool-bar-grab-mode\\n    />\\n  </div>\\n\\n  <div class=\\\"c-feature-workflow-editor-renderer-tool-bar__separator\\\"></div>\\n\\n  <div class=\\\"c-feature-workflow-editor-renderer-tool-bar__block\\\">\\n    <Shared::ToggableIcon\\n      @icon=\\\"/img/icons/zoom-in.svg\\\"\\n      @alt=\\\"zoom-in\\\"\\n      disabled={{eq this.workflowEditorState.zoomScale this.workflowEditorState.maxZoomScale}}\\n      {{on \\'click\\' this.handleZoomIn}}\\n      data-test-feature-workflow-editor-renderer-tool-bar-zoom-in\\n    />\\n    <Shared::ToggableIcon\\n      @icon=\\\"/img/icons/zoom-out.svg\\\"\\n      @alt=\\\"zoom-out\\\"\\n      disabled={{eq this.workflowEditorState.zoomScale this.workflowEditorState.minZoomScale}}\\n      {{on \\'click\\' this.handleZoomOut}}\\n      data-test-feature-workflow-editor-renderer-tool-bar-zoom-out\\n    />\\n    <Shared::ToggableIcon\\n      @icon=\\\"/img/icons/zoom-auto.svg\\\"\\n      @alt=\\\"zoom-auto\\\"\\n      {{on \\'click\\' this.handleZoomAuto}}\\n      data-test-feature-workflow-editor-renderer-tool-bar-zoom-auto\\n    />\\n  </div>\\n</div>\\n', { moduleName: 'client/features/workflow-editor/components/renderer/tool-bar/template.hbs' });\n","import type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\ninterface Args {\n  data: {\n    onClose: () => void;\n  };\n}\n\nexport default class WorkflowEditorSavingErrorModalComponent extends Component<Args> {\n  @service('feature/workflow-editor') private workflowEditorService: WorkflowEditorFeatureService;\n\n  @action\n  async navigateToErrors() {\n    this.args.data.onClose();\n    await waitForNextRunLoop();\n    this.workflowEditorService.setIsErrorsModalVisible(true);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal @size=\\\"xs\\\">\\n  <Shared::Modal::Body\\n    class=\\\"c-feature-workflow-editor-saving-error-modal\\\"\\n    data-test-feature-workflow-editor-saving-error-modal-body\\n  >\\n    <Shared::DataDisplay::IconWithBorder\\n      @iconName=\\\"error_outline\\\"\\n      @size=\\\"normal\\\"\\n      class=\\\"c-feature-workflow-editor-saving-error-modal__icon\\\"\\n      data-test-feature-workflow-editor-saving-error-modal-body-icon\\n    />\\n    <h1\\n      class=\\\"c-feature-workflow-editor-saving-error-modal__title\\\"\\n      data-test-feature-workflow-editor-saving-error-modal-body-title\\n    >\\n      Fix errors before saving\\n    </h1>\\n    <p\\n      class=\\\"c-feature-workflow-editor-saving-error-modal__description\\\"\\n      data-test-feature-workflow-editor-saving-error-modal-body-description\\n    >\\n      One or more errors need fixing before you can save this workflow.\\n    </p>\\n  </Shared::Modal::Body>\\n  <Shared::Modal::ActionFooter\\n    @onCancel={{@data.onClose}}\\n    @cancelText=\\\"Cancel\\\"\\n    @confirmText=\\\"Take me there\\\"\\n    @onConfirm={{this.navigateToErrors}}\\n    @fullWidth={{true}}\\n    @confirmType=\\\"danger\\\"\\n    data-test-feature-workflow-editor-saving-error-modal-footer\\n  />\\n</Shared::Modal>\\n', { moduleName: 'client/features/workflow-editor/components/saving-error-modal/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::WorkflowEditor::Header @collection={{@collection}} @workflow={{@workflow}} />\\n<div\\n  id=\\\"workflow-editor\\\"\\n  {{did-insert this.handleDidInsert}}\\n  class={{get-classes-with-modifiers \\'c-feature-workflow-editor__editor\\' v2=(not this.isV1Enabled)}}\\n  data-test-workflow-editor-editor\\n  ...attributes\\n>\\n  {{#unless this.isV1Enabled}}\\n    <Feature::WorkflowEditor::Palette />\\n    <Feature::WorkflowEditor::Renderer @workflow={{@workflow}} />\\n    <Feature::WorkflowEditor::ItemConfigurationPanel />\\n  {{/unless}}\\n</div>\\n', { moduleName: 'client/features/workflow-editor/components/template.hbs' });\n","import type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport FileTypeUtils from 'client/utils/file-type';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface UploadModalArgs {\n  data: {\n    onClose: () => void;\n    onFileUploaded: (fileName: string) => void;\n  };\n}\n\n@validateArguments\nexport default class WorkflowEditorUploadModalComponent extends Component<UploadModalArgs> {\n  static propTypes = {\n    data: PropTypes.shape({\n      onClose: PropTypes.func.isRequired,\n      onFileUploaded: PropTypes.func.isRequired,\n    }).isRequired,\n  };\n\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n\n  @tracked fileContent: string | null = null;\n  private fileName: string | null = null;\n\n  @action\n  async handleFileUpload(fileString: string) {\n    if (fileString === null) {\n      this.fileContent = null;\n      return;\n    }\n    const file = FileTypeUtils.createFileFromDataUri(fileString);\n    const fileContent = await file.text();\n    this.fileName = file.name;\n    this.fileContent = fileContent;\n  }\n\n  @action\n  async handleConfirmUpload() {\n    if (this.fileContent) {\n      await this.workflowEditorFeature.importXML(this.fileContent);\n      this.args.data.onFileUploaded(this.fileName);\n    }\n    this.fileName = null;\n    this.args.data.onClose();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  @size=\\\"sm\\\"\\n  class=\\\"c-feature-workflow-editor-upload-modal\\\"\\n  data-test-feature-workflow-editor-upload-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header\\n    @title=\\\"Upload your BPMN\\\"\\n    data-test-feature-workflow-editor-upload-modal-header\\n  />\\n  <Shared::Modal::Body class=\\\"c-feature-workflow-editor-upload-modal__body\\\">\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"warning\\\"\\n      @message=\\\"This will override your current workflow.\\\"\\n      data-test-feature-workflow-editor-upload-modal-info\\n    />\\n\\n    <Shared::BetaLabel\\n      @label=\\\"Select a BPMN file\\\"\\n      @for=\\\"file\\\"\\n      data-test-feature-workflow-editor-upload-modal-file-picker-label\\n    >\\n      <Widgets::Edit::FilePicker\\n        @isMultiple={{false}}\\n        @value={{this.file}}\\n        @onChange={{this.handleFileUpload}}\\n        @filesSizeLimit={{10}}\\n        @filesExtensions={{array \\'xml\\' \\'txt\\' \\'bpmn\\'}}\\n        @skipConfirm={{true}}\\n        @argsInputId=\\\"file\\\"\\n        class=\\\"c-feature-bpmn-editor__uploader\\\"\\n        data-test-feature-workflow-editor-upload-modal-file-picker\\n      />\\n    </Shared::BetaLabel>\\n  </Shared::Modal::Body>\\n\\n  <Shared::Modal::ActionFooter\\n    @confirmType=\\\"primary\\\"\\n    @confirmText=\\\"Override current workflow\\\"\\n    @cancelText=\\\"Cancel\\\"\\n    @onConfirm={{this.handleConfirmUpload}}\\n    @onCancel={{@data.onClose}}\\n    @isConfirmDisabled={{not this.fileContent}}\\n    data-test-feature-workflow-editor-upload-modal-action-footer\\n  />\\n</Shared::Modal>\\n', { moduleName: 'client/features/workflow-editor/components/upload-modal/template.hbs' });\n","import type { BpmnElement, ConnectionImpl, ShapeImpl } from 'bpmn-js/custom';\n\nexport enum BpmnEventTypeEnum {\n  StartEvent = 'bpmn:StartEvent',\n  EndEvent = 'bpmn:EndEvent',\n  EscalationTask = 'bpmn:IntermediateThrowEvent',\n}\nexport enum BpmnGatewayTypeEnum {\n  ExclusiveGateway = 'bpmn:ExclusiveGateway',\n}\nexport enum BpmnTaskTypeEnum {\n  Task = 'bpmn:Task',\n  UserTask = 'bpmn:UserTask',\n  ManualTask = 'bpmn:ManualTask',\n  ServiceTask = 'bpmn:ServiceTask',\n  ScriptTask = 'bpmn:ScriptTask',\n  SubProcess = 'bpmn:SubProcess',\n  CallActivity = 'bpmn:CallActivity',\n}\n\nexport enum BpmnTaskLinkTypeEnum {\n  LinkTo = 'bpmn:SequenceFlow',\n}\n\n/**\n * BPMN element types that can be dropped onto placeholders.\n * Includes all step types plus EndEvent and LinkTo (placeholder-only semantics).\n */\nexport const DROPPABLE_BPMN_TYPES: readonly BpmnItemType[] = [\n  BpmnTaskTypeEnum.UserTask,\n  BpmnTaskTypeEnum.ManualTask,\n  BpmnTaskTypeEnum.ServiceTask,\n  BpmnTaskTypeEnum.SubProcess,\n  BpmnTaskTypeEnum.ScriptTask,\n  BpmnTaskTypeEnum.CallActivity,\n  BpmnGatewayTypeEnum.ExclusiveGateway,\n  BpmnEventTypeEnum.EscalationTask,\n  BpmnEventTypeEnum.EndEvent,\n  BpmnTaskLinkTypeEnum.LinkTo,\n];\n\n/**\n * BPMN element types that can be dropped onto connections (between two steps).\n * Matches the classic renderer's allowlist. Excludes:\n * - ScriptTask: not allowed on connections in classic\n * - EndEvent: dropping between steps would sever the flow\n * - LinkTo: has retargeting semantics that only apply on placeholders\n */\nexport const CONNECTION_DROPPABLE_BPMN_TYPES: readonly BpmnItemType[] = [\n  BpmnTaskTypeEnum.UserTask,\n  BpmnTaskTypeEnum.ManualTask,\n  BpmnTaskTypeEnum.ServiceTask,\n  BpmnTaskTypeEnum.SubProcess,\n  BpmnTaskTypeEnum.CallActivity,\n  BpmnGatewayTypeEnum.ExclusiveGateway,\n  BpmnEventTypeEnum.EscalationTask,\n];\n\nexport type BpmnItemType =\n  | BpmnEventTypeEnum\n  | BpmnGatewayTypeEnum\n  | BpmnTaskTypeEnum\n  | BpmnTaskLinkTypeEnum\n  | 'bpmn:Task';\n\nexport enum BpmnServiceTaskAlternativeEnum {\n  TriggerAction = 'trigger-action',\n  GetData = 'get-data',\n  UpdateData = 'update-data',\n  LoadRelatedRecord = 'load-related-record',\n  McpServer = 'mcp-server',\n}\n\nconst BPMN_TASKS: Record<\n  BpmnTaskTypeEnum | BpmnServiceTaskAlternativeEnum,\n  { name: string; iconPath: string }\n> = Object.freeze({\n  [BpmnTaskTypeEnum.UserTask]: {\n    name: 'Guidance Task',\n    iconPath: '/img/icons/icon--click.svg',\n  },\n  [BpmnTaskTypeEnum.ManualTask]: {\n    name: 'Guidance',\n    iconPath: '/img/icons/icon--click.svg',\n  },\n  [BpmnTaskTypeEnum.Task]: {\n    name: 'Guidance',\n    iconPath: '/img/icons/icon--click.svg',\n  },\n  [BpmnTaskTypeEnum.ServiceTask]: {\n    name: 'Guidance Task',\n    iconPath: '/img/icons/icon--click.svg',\n  },\n  [BpmnTaskTypeEnum.ScriptTask]: {\n    name: 'Automation',\n    iconPath: '/img/icons/icon--magic-wand.svg',\n  },\n  [BpmnEventTypeEnum.StartEvent]: {\n    name: 'Start',\n    iconPath: '/img/icons/icon--play.svg',\n  },\n  [BpmnEventTypeEnum.EndEvent]: {\n    name: 'End',\n    iconPath: '/img/icons/icon--end-flag.svg',\n  },\n  [BpmnGatewayTypeEnum.ExclusiveGateway]: {\n    name: 'Decision',\n    iconPath: '/img/icons/icon--fork.svg',\n  },\n  [BpmnTaskLinkTypeEnum.LinkTo]: {\n    name: 'Go To',\n    iconPath: '/img/icons/icon--link.svg',\n  },\n  [BpmnEventTypeEnum.EscalationTask]: {\n    name: 'Escalation',\n    iconPath: '/img/icons/icon--triple--arrow--up.svg',\n  },\n  [BpmnTaskTypeEnum.SubProcess]: {\n    name: 'Group',\n    iconPath: '/img/workflow/sub-process.svg',\n  },\n  [BpmnTaskTypeEnum.CallActivity]: {\n    name: 'Sub-workflow',\n    iconPath: '/img/icons/icon--workflow.svg',\n  },\n  [BpmnServiceTaskAlternativeEnum.TriggerAction]: {\n    name: 'Trigger Action',\n    iconPath: '/img/icons/icon--flash.svg',\n  },\n  [BpmnServiceTaskAlternativeEnum.GetData]: {\n    name: 'Get Data',\n    iconPath: '/img/icons/icon--database.svg',\n  },\n  [BpmnServiceTaskAlternativeEnum.UpdateData]: {\n    name: 'Update Data',\n    iconPath: '/img/icons/icon--edit.svg',\n  },\n  [BpmnServiceTaskAlternativeEnum.LoadRelatedRecord]: {\n    name: 'Load Related Record',\n    iconPath: '/img/icons/icon--double-arrow.svg',\n  },\n  [BpmnServiceTaskAlternativeEnum.McpServer]: {\n    name: 'MCP Server',\n    iconPath: '/img/workflow/mcp-server.svg',\n  },\n});\n\nexport enum BpmnCustomConfigurationEnum {\n  Description = 'description',\n  IsPlaceholder = 'isPlaceholder',\n  InboxId = 'inboxId',\n  ButtonColor = 'buttonColor',\n  IsLinkTo = 'isLinkTo',\n  Alternative = 'alternative',\n  McpServerId = 'mcpServerId',\n  AutomaticExecution = 'automaticExecution',\n  AutomaticCompletion = 'automaticCompletion',\n  AiDecision = 'aiDecision',\n  CompletionType = 'completionType',\n  InputType = 'inputType',\n}\n\n/**\n * Common properties used as a base for all Forest businessObject interfaces.\n * The index signature is required because bpmn-js attaches arbitrary properties.\n * Use element-specific interfaces (e.g. ServiceTaskBusinessObject) when the BPMN type is known.\n */\nexport interface BaseBusinessObject {\n  name?: string;\n  [BpmnCustomConfigurationEnum.IsPlaceholder]?: boolean;\n  [BpmnCustomConfigurationEnum.Description]?: string;\n  [key: string]: unknown;\n}\n\n/** bpmn:SequenceFlow */\nexport interface SequenceFlowBusinessObject extends BaseBusinessObject {\n  [BpmnCustomConfigurationEnum.ButtonColor]?: string;\n  [BpmnCustomConfigurationEnum.IsLinkTo]?: boolean;\n}\n\n/** bpmn:ServiceTask */\nexport interface ServiceTaskBusinessObject extends BaseBusinessObject {\n  [BpmnCustomConfigurationEnum.Alternative]?: BpmnServiceTaskAlternativeEnum;\n  [BpmnCustomConfigurationEnum.McpServerId]?: string;\n  [BpmnCustomConfigurationEnum.AutomaticExecution]?: boolean;\n  [BpmnCustomConfigurationEnum.AutomaticCompletion]?: boolean;\n}\n\n/** bpmn:ExclusiveGateway */\nexport interface ExclusiveGatewayBusinessObject extends BaseBusinessObject {\n  [BpmnCustomConfigurationEnum.AiDecision]?: boolean;\n  /** Simplified type — bpmn-js provides full moddle references; only id is used */\n  outgoing?: Array<{ id: string }>;\n}\n\n/** bpmn:IntermediateThrowEvent — Forest uses \"Escalation\" as the domain name for this event type */\nexport interface EscalationBusinessObject extends BaseBusinessObject {\n  [BpmnCustomConfigurationEnum.InboxId]?: string;\n}\n\n/** bpmn:CallActivity — calledElement is a native BPMN property referencing a sub-workflow */\nexport interface CallActivityBusinessObject extends BaseBusinessObject {\n  calledElement?: string;\n}\n\n/** bpmn:UserTask */\nexport interface UserTaskBusinessObject extends BaseBusinessObject {\n  [BpmnCustomConfigurationEnum.CompletionType]?: 'simple' | 'user-input';\n  [BpmnCustomConfigurationEnum.InputType]?: 'free-text';\n}\n\n/** bpmn:TextAnnotation — text is a native BPMN property, not a Forest custom extension */\nexport interface TextAnnotationBusinessObject extends BaseBusinessObject {\n  text?: string;\n}\n\n/**\n * Union of all typed businessObject interfaces used by Forest shape elements (non-connections).\n * Narrow to a specific variant by checking the owning element's `type` property.\n * BaseBusinessObject serves as the fallback for element types without specialized interfaces\n * (e.g. StartEvent, EndEvent, UserTask, ManualTask, SubProcess, ScriptTask).\n */\nexport type ForestBusinessObject =\n  | ServiceTaskBusinessObject\n  | UserTaskBusinessObject\n  | ExclusiveGatewayBusinessObject\n  | EscalationBusinessObject\n  | CallActivityBusinessObject\n  | TextAnnotationBusinessObject\n  | BaseBusinessObject;\n\n/**\n * Extension for bpmn-js to support custom properties\n *  */\nexport const forestExtension = Object.freeze<{\n  name: string;\n  uri: string;\n  prefix: string;\n  types: Array<{\n    name: string;\n    extends: string[];\n    properties: Array<{ name: BpmnCustomConfigurationEnum; type: string; isAttr: boolean }>;\n  }>;\n}>({\n  name: 'ForestAdmin',\n  uri: 'https://app.forestadmin.com',\n  prefix: 'forest',\n  types: [\n    {\n      name: 'Placeholder',\n      extends: ['bpmn:FlowNode'],\n      properties: [\n        { name: BpmnCustomConfigurationEnum.IsPlaceholder, type: 'Boolean', isAttr: true },\n      ],\n    },\n    {\n      name: 'Description',\n      extends: ['bpmn:FlowNode'],\n      properties: [{ name: BpmnCustomConfigurationEnum.Description, type: 'String', isAttr: true }],\n    },\n    {\n      name: 'Inbox',\n      extends: [BpmnEventTypeEnum.EscalationTask],\n      properties: [{ name: BpmnCustomConfigurationEnum.InboxId, type: 'String', isAttr: true }],\n    },\n    {\n      name: 'Button Color',\n      extends: ['bpmn:SequenceFlow'],\n      properties: [{ name: BpmnCustomConfigurationEnum.ButtonColor, type: 'String', isAttr: true }],\n    },\n    {\n      name: 'Link To',\n      extends: ['bpmn:SequenceFlow'],\n      properties: [{ name: BpmnCustomConfigurationEnum.IsLinkTo, type: 'Boolean', isAttr: true }],\n    },\n    {\n      name: 'Alternative Type',\n      extends: [BpmnTaskTypeEnum.ServiceTask],\n      properties: [{ name: BpmnCustomConfigurationEnum.Alternative, type: 'String', isAttr: true }],\n    },\n    {\n      name: 'Mcp Server Id',\n      extends: [BpmnTaskTypeEnum.ServiceTask],\n      properties: [{ name: BpmnCustomConfigurationEnum.McpServerId, type: 'String', isAttr: true }],\n    },\n    {\n      name: 'Automatic Execution',\n      extends: [BpmnTaskTypeEnum.ServiceTask],\n      properties: [\n        { name: BpmnCustomConfigurationEnum.AutomaticExecution, type: 'Boolean', isAttr: true },\n      ],\n    },\n    {\n      name: 'Automatic',\n      extends: [BpmnTaskTypeEnum.ServiceTask],\n      properties: [\n        { name: BpmnCustomConfigurationEnum.AutomaticCompletion, type: 'Boolean', isAttr: true },\n      ],\n    },\n    {\n      name: 'Ai Decision',\n      extends: ['bpmn:ExclusiveGateway'],\n      properties: [{ name: BpmnCustomConfigurationEnum.AiDecision, type: 'Boolean', isAttr: true }],\n    },\n    {\n      name: 'Completion Type',\n      extends: [BpmnTaskTypeEnum.UserTask],\n      properties: [\n        { name: BpmnCustomConfigurationEnum.CompletionType, type: 'String', isAttr: true },\n      ],\n    },\n    {\n      name: 'Input Type',\n      extends: [BpmnTaskTypeEnum.UserTask],\n      properties: [{ name: BpmnCustomConfigurationEnum.InputType, type: 'String', isAttr: true }],\n    },\n  ],\n});\n\nexport function getBpmnItemByAlternativeOrType(\n  type: BpmnItemType,\n  alternative?: BpmnServiceTaskAlternativeEnum,\n) {\n  return BPMN_TASKS[alternative] || BPMN_TASKS[type];\n}\n\n/**\n * Type guard: narrows a BpmnElement to ConnectionImpl (bpmn:SequenceFlow).\n */\nexport function isConnection(element: BpmnElement | null | undefined): element is ConnectionImpl {\n  return element?.type === 'bpmn:SequenceFlow';\n}\n\n/**\n * Type guard: narrows a BpmnElement to ShapeImpl (anything other than bpmn:SequenceFlow).\n */\nexport function isShape(element: BpmnElement | null | undefined): element is ShapeImpl {\n  return element != null && element.type !== 'bpmn:SequenceFlow';\n}\n\n/**\n * Type guard: narrows a BpmnElement to ConnectionImpl when it is a LinkTo\n * (a special sequence flow that links to another step).\n */\nexport function isLinkToElement(flow: BpmnElement | null | undefined): flow is ConnectionImpl;\n/**\n * Checks if an element is a LinkTo element. Accepts structural types (e.g. palette items)\n * that are not full BpmnElements, so it cannot narrow the type in this overload.\n */\nexport function isLinkToElement(\n  flow: { type: string; businessObject?: ForestBusinessObject } | null | undefined,\n): boolean;\nexport function isLinkToElement(\n  flow: { type: string; businessObject?: ForestBusinessObject } | null | undefined,\n): boolean {\n  return flow?.type === BpmnTaskLinkTypeEnum.LinkTo && Boolean(flow.businessObject?.isLinkTo);\n}\n\nexport default BPMN_TASKS;\n","/* eslint-disable max-classes-per-file */\nimport { WrappedError } from 'client/utils/errors';\n\nexport class WorkflowEditorNotFoundError extends Error {\n  constructor(workflowName: string) {\n    super(`Workflow \"${workflowName}\" cannot be found`);\n    this.name = 'WorkflowEditorNotFoundError';\n  }\n}\n\nexport class WorkflowEditorImportBPMNError extends WrappedError {\n  constructor(error: Error) {\n    super(error, 'Workflow Editor Import BPMN Error');\n    this.name = 'WorkflowEditorImportBPMNError';\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type BpmnModeler from 'bpmn-js';\nimport type { BpmnElement, ConnectionImpl, ShapeImpl } from 'bpmn-js/custom';\nimport type { ModdleElement } from 'bpmn-js/lib/BaseViewer';\nimport type { Element } from 'bpmn-js/lib/model/Types';\nimport type CollectionModel from 'client/data/models/collection';\nimport type McpServerConfigModel from 'client/data/models/mcp-server-config';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type WorkflowEditorBpmnInternalBusinessService from 'client/features/workflow-editor/services/internal-business/bpmn';\nimport type WorkflowEditorCollapseInternalBusinessService from 'client/features/workflow-editor/services/internal-business/collapse';\nimport type WorkflowEditorDuplicationInternalBusinessService from 'client/features/workflow-editor/services/internal-business/duplication';\nimport type WorkflowEditorManagerInternalBusinessService from 'client/features/workflow-editor/services/internal-business/manager';\nimport type WorkflowEditorFlatRendererHeightCalculatorService from 'client/features/workflow-editor/services/internal-feature/flat-renderer/height-calculator';\nimport type WorkflowEditorSubProcessInternalFeatureService from 'client/features/workflow-editor/services/internal-feature/sub-process';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type DownloadService from 'client/legacy/services/download';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LayoutState from 'client/shared/states/layout';\nimport type Canvas from 'diagram-js/lib/core/Canvas';\nimport type ElementRegistry from 'diagram-js/lib/core/ElementRegistry';\nimport type EventBus from 'diagram-js/lib/core/EventBus';\nimport type Modeling from 'diagram-js/lib/features/modeling/Modeling';\nimport type { Root, Shape } from 'diagram-js/lib/model';\nimport type { AbilitiesService } from 'ember-can';\n\nimport { action } from '@ember/object';\nimport { cancel, later } from '@ember/runloop';\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport moment from 'moment';\n\nimport {\n  BpmnEventTypeEnum,\n  BpmnGatewayTypeEnum,\n  type BpmnItemType,\n  type BpmnServiceTaskAlternativeEnum,\n  BpmnTaskTypeEnum,\n  forestExtension,\n  isConnection,\n  isLinkToElement,\n} from 'client/features/workflow-editor/configuration';\nimport { WorkflowEditorImportBPMNError } from 'client/features/workflow-editor/errors';\nimport WorkflowEditorCustomCommandStackInternalBusinessService from 'client/features/workflow-editor/services/internal-business/custom-command-stack';\nimport WorkflowEditorCustomContextPadInternalBusinessService from 'client/features/workflow-editor/services/internal-business/custom-context-pad';\nimport WorkflowEditorCustomContextPadV2InternalBusinessService from 'client/features/workflow-editor/services/internal-business/custom-context-pad-v2';\nimport WorkflowEditorCustomPaletteInternalBusinessService from 'client/features/workflow-editor/services/internal-business/custom-palette';\nimport WorkflowEditorCustomPopupMenuProviderInternalBusinessService from 'client/features/workflow-editor/services/internal-business/custom-popup-menu-provider';\nimport ReorderGatewayOptionsHandler, {\n  REORDER_GATEWAY_OPTIONS_COMMAND,\n} from 'client/features/workflow-editor/services/internal-business/reorder-gateway-options-handler';\nimport { WorkflowEditorErrorTypeEnum } from 'client/features/workflow-editor/state';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport { isCommandPressed } from 'client/utils/keyboard';\n\nconst ERROR_VALIDATION_DEBOUNCE_MS = 300;\n\ntype BpmnEvent = Event & {\n  element: Element;\n  gfx: HTMLElement;\n};\n\nexport default class WorkflowEditorFeatureService extends Service {\n  @service private abilities: AbilitiesService;\n  @service private currentUser: CurrentUserService;\n  @service private router: RouterService;\n  @service private download: DownloadService;\n  @service private eventBus: EventBusService;\n  @service('feature/mcp-server') private mcpServerFeature: McpServerFeatureService;\n  @service('feature/modal') private modalService: ModalFeatureService;\n\n  @service private errorHandler: ErrorHandlerService;\n  @service('feature/workflow-editor/internal-business/bpmn')\n  private bpmnService: WorkflowEditorBpmnInternalBusinessService;\n\n  @service('feature/workflow-editor/internal-business/collapse')\n  private readonly collapseService: WorkflowEditorCollapseInternalBusinessService;\n\n  @service('feature/modal')\n  private modalFeatureService: ModalFeatureService;\n\n  @service('feature/workflow')\n  private workflowFeature: WorkflowFeatureService;\n\n  @service('feature/workflow-editor/state')\n  private workflowEditorState: WorkflowEditorFeatureState;\n\n  @service('shared/state/layout') private layoutState: LayoutState;\n  @service('feature/workflow-editor/internal-business/manager')\n  private workflowEditorManager: WorkflowEditorManagerInternalBusinessService;\n\n  @service('feature/workflow-editor/internal-feature/sub-process')\n  private workflowEditorSubProcessService: WorkflowEditorSubProcessInternalFeatureService;\n\n  @service('feature/workflow-editor/internal-feature/flat-renderer/height-calculator')\n  private heightCalculator: WorkflowEditorFlatRendererHeightCalculatorService;\n\n  @service('feature/workflow-editor/internal-business/duplication')\n  private workflowEditorDuplication: WorkflowEditorDuplicationInternalBusinessService;\n\n  areEventsRegistered: boolean = false;\n\n  @tracked\n  public bpmnModeler: BpmnModeler | null = null;\n\n  // Debounce mechanism for error validation\n  private errorValidationTimer: ReturnType<typeof later> | null = null;\n  private isEnsuringMissingPlaceholders = false;\n\n  public resetZoom(): void {\n    this.workflowEditorState.zoomScale = 1;\n  }\n\n  public async buildBPMNInstance(container: HTMLElement | null, isV1 = false) {\n    const { default: BpmnModelerClass } = await import('bpmn-js');\n    this.bpmnModeler = new BpmnModelerClass({\n      container,\n      additionalModules: [isV1 ? this.getModuleOverrides() : this.getModuleOverridesV2()],\n      ...(isV1 ? {} : { moddleExtensions: { forest: forestExtension } }),\n    });\n    this.workflowEditorState.bpmn = this.getBPMN();\n\n    this.registerCustomCommandHandlers();\n    this.registerEventListeners();\n  }\n\n  private registerCustomCommandHandlers() {\n    const commandStack =\n      this.bpmnModeler?.get<WorkflowEditorCustomCommandStackInternalBusinessService>(\n        'commandStack',\n      );\n    commandStack?.registerHandler(REORDER_GATEWAY_OPTIONS_COMMAND, ReorderGatewayOptionsHandler);\n  }\n\n  public getBPMN() {\n    return (this.bpmnModeler?.get('canvas') as Canvas)?.getRootElement() as Root;\n  }\n\n  public getBPMNToDisplay() {\n    if (this.workflowEditorState.bpmn && this.router.currentRoute?.queryParams?.subProcessId) {\n      const subProcess = this.workflowEditorState.bpmn?.children.find(\n        (child) => child.id === this.router.currentRoute.queryParams.subProcessId,\n      );\n      if (subProcess) {\n        return subProcess;\n      }\n\n      this.router.transitionTo({\n        queryParams: { ...this.router.currentRoute, subProcessId: null },\n      });\n    }\n    return this.workflowEditorState.bpmn;\n  }\n\n  // TODO: Remove this method when the new workflow editor is fully implemented\n  public async importXML(xml?: string, isFirstImport = false) {\n    try {\n      await this.bpmnService.importXML(this.bpmnModeler, xml);\n      if (isFirstImport) {\n        this.workflowEditorState.initialStackIdx = this.bpmnService.getEditorCurrentStackIdx(\n          this.bpmnModeler,\n        );\n      } else {\n        this.workflowEditorState.wasFileUploaded = true;\n      }\n\n      const bpmn = this.getBPMN();\n      this.workflowEditorState.bpmn = bpmn;\n      this.expandCollapsedSubProcesses();\n\n      if (this.getIsV1Enabled()) {\n        const canvas = this.bpmnModeler.get<Canvas>('canvas');\n        canvas.zoom('fit-viewport');\n        canvas.focus();\n      } else {\n        this.heightCalculator.clearCache();\n        this.workflowEditorState.hasAttemptedSave = false;\n\n        this.ensureMissingPlaceholders();\n        this.bpmnService.computeLinkTo(this.bpmnModeler, bpmn);\n\n        this.queueErrorValidation();\n      }\n    } catch (error) {\n      this.errorHandler.handleError(\n        new WorkflowEditorImportBPMNError(error as Error),\n        'Error importing BPMN XML',\n      );\n    }\n  }\n\n  public canAccessRoute() {\n    return this.abilities.can('access workflow') && this.currentUser.can('updateLayout');\n  }\n\n  public async saveWorkflow(\n    workflow: WorkflowModel,\n    fileName: string | null,\n    { shouldExitAfterward = true }: { shouldExitAfterward?: boolean } = {},\n  ) {\n    if (!this.getIsV1Enabled()) {\n      this.workflowEditorState.hasAttemptedSave = true;\n    }\n\n    if (!this.getIsV1Enabled() && this.workflowEditorState.numberOfItemsInError > 0) {\n      this.modalService.open('feature/workflow-editor/saving-error-modal', {\n        data: {\n          onClose: () => {\n            this.modalService.close();\n          },\n        },\n        hideCloseButton: true,\n      });\n      return;\n    }\n\n    if (this.getIsBpmnDirty()) {\n      this.expandCollapsedSubProcesses();\n      const { xml } = await this.bpmnModeler.saveXML();\n      const datedFileName = `${moment().format('MM-DD-YYYY_HH:mm:ss')}_${workflow.name}.bpmn`;\n      const file = new File([xml], fileName ?? datedFileName, {\n        type: 'text/xml',\n      });\n\n      await this.workflowFeature.updateWorkflow(workflow, file);\n\n      this.workflowEditorState.wasFileUploaded = false;\n      this.workflowEditorState.initialStackIdx = this.bpmnService.getEditorCurrentStackIdx(\n        this.bpmnModeler,\n      );\n    }\n\n    if (shouldExitAfterward) {\n      await this.router.transitionTo(\n        'project.rendering.data.collection.settings.workflows.details',\n        workflow.collection.shareableId,\n        encodeURIComponent(workflow.name),\n      );\n    }\n  }\n\n  public async downloadWorkflow(workflow: WorkflowModel, fileName: string | null) {\n    const { xml } = await this.bpmnModeler.saveXML();\n    const datedFileName = `${moment().format('MM-DD-YYYY_HH:mm:ss')}_${workflow.name}.bpmn`;\n\n    this.download.downloadContentAsFile(xml, 'text/xml', fileName ?? datedFileName);\n  }\n\n  public getDefaultBpmnFile() {\n    return this.bpmnService.getDefaultBpmnFile();\n  }\n\n  public openUploadModal(onFileUploaded: (file: string) => void) {\n    this.modalFeatureService.open('feature/workflow-editor/upload-modal', {\n      data: {\n        onClose: () => {\n          this.modalFeatureService.close();\n        },\n        onFileUploaded,\n      },\n    });\n  }\n\n  public getIsBpmnDirty(): boolean {\n    return (\n      this.bpmnService.getEditorCurrentStackIdx(this.bpmnModeler)\n        !== this.workflowEditorState.initialStackIdx || this.workflowEditorState.wasFileUploaded\n    );\n  }\n\n  public getIsV1Enabled(): boolean {\n    const { isV1 } = this.router.currentRoute?.queryParams ?? {};\n    return isV1 === 'true';\n  }\n\n  public areSelectedElementsOnSamePath() {\n    const paths = this.workflowEditorState.selectedItems?.map((item) =>\n      this.bpmnService.getShortestPathToStart(item),\n    );\n    return paths.some((path) => {\n      return path\n        .slice(0, this.workflowEditorState.selectedItems.length)\n        .every((item) => this.workflowEditorState.selectedItems.includes(item));\n    });\n  }\n\n  public updateCurrentWorkflowItemProperties(\n    properties: Record<string, unknown> & { type?: BpmnItemType },\n  ) {\n    this.workflowEditorState.currentWorkflowItem = this.updateWorkflowItemProperties(\n      this.workflowEditorState.currentWorkflowItem,\n      properties,\n    );\n  }\n\n  public updateElementDescription(element: ShapeImpl, description: string) {\n    this.bpmnService.updateElementDescription(this.bpmnModeler, element, description);\n  }\n\n  public updateWorkflowItemProperties(\n    workflowItem: ShapeImpl,\n    properties: Record<string, unknown> & { type?: BpmnItemType },\n  ) {\n    const shouldInvalidateHeight = Object.prototype.hasOwnProperty.call(properties, 'name');\n    const updatedItem = this.bpmnService.updateWorkflowItemProperties(\n      this.bpmnModeler,\n      workflowItem,\n      properties,\n    );\n    if (shouldInvalidateHeight && updatedItem?.id) {\n      this.heightCalculator.invalidate(updatedItem.id);\n    }\n    this.workflowEditorState.incrementBpmnVersion();\n    return updatedItem;\n  }\n\n  public getDescriptionForTask(element: Element): string | null {\n    return this.bpmnService.getDescription(element);\n  }\n\n  public async selectElement(element: BpmnElement, event?: MouseEvent) {\n    if (this.workflowEditorState.isLinkToSelectModeOn) {\n      const currentItem = this.workflowEditorState.currentWorkflowItem;\n\n      if (!currentItem || !isLinkToElement(currentItem)) {\n        this.workflowEditorState.isLinkToSelectModeOn = false;\n      } else {\n        if (!element || this.isLinkToElement(element)) {\n          return;\n        }\n        this.bpmnService.updateLinkToTarget(\n          this.bpmnModeler,\n          currentItem as ConnectionImpl,\n          element,\n        );\n        this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorItemPropertiesUpdated, currentItem);\n        this.workflowEditorState.isLinkToSelectModeOn = false;\n        this.invalidateCaches();\n        return;\n      }\n    }\n\n    if (event && isCommandPressed(event) && this.workflowEditorState.selectedItems?.length > 0) {\n      // Multi select\n      if (this.workflowEditorState.selectedItems.includes(element)) {\n        this.workflowEditorState.selectedItems.removeObject(element);\n      } else {\n        this.workflowEditorState.selectedItems.pushObject(element);\n      }\n    } else {\n      this.workflowEditorState.currentWorkflowItem = element;\n    }\n  }\n\n  public createSubProcessWithSelectedElements() {\n    if (!this.areSelectedElementsOnSamePath()) return;\n\n    const subProcess = this.bpmnService.createSubProcessWithAllChildren(\n      this.bpmnModeler,\n      this.workflowEditorState.selectedItems,\n    );\n    this.workflowEditorSubProcessService.setCurrentSubProcess(subProcess);\n  }\n\n  public createPlaceholder(workflowItem: ShapeImpl) {\n    const placeholder = this.bpmnService.createPlaceholder(this.bpmnModeler, workflowItem);\n    this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, workflowItem);\n    this.invalidateCaches(workflowItem);\n    return placeholder;\n  }\n\n  public setHoveredElement(element: BpmnElement | null) {\n    if (this.workflowEditorState.draggedElement) return;\n\n    this.workflowEditorState.hoveredItem = element;\n  }\n\n  /**\n   * Starts a drag operation. This method should be called when drag starts.\n   */\n  public startDrag(draggedElement: WorkflowEditorFeatureState['draggedElement']) {\n    if (!draggedElement) return;\n\n    this.workflowEditorState.draggedElement = draggedElement;\n    this.workflowEditorState.draggedElements = null;\n    this.workflowEditorState.dragVersion++;\n\n    if (\n      draggedElement?.type === BpmnGatewayTypeEnum.ExclusiveGateway\n      && 'id' in draggedElement\n      && draggedElement.id\n    ) {\n      const gatewayChildren = this.bpmnService.getAllChildren(draggedElement);\n      this.workflowEditorState.draggedElements = gatewayChildren;\n    }\n\n    this.workflowEditorState.currentWorkflowItem = null;\n  }\n\n  /**\n   * Completes a drag operation after a successful drop.\n   * This method should be called by drop handlers after the drop operation.\n   */\n  public completeDrop() {\n    this.clearDragState();\n  }\n\n  /**\n   * Cancels a drag operation (e.g., when drag ends without a drop).\n   * This method should be called by the global dragend handler.\n   */\n  public cancelDrag() {\n    this.clearDragState();\n  }\n\n  /**\n   * Clears the drag state.\n   * Shared implementation for completeDrop and cancelDrag.\n   */\n  private clearDragState() {\n    this.workflowEditorState.draggedElement = null;\n    this.workflowEditorState.draggedElements = null;\n    this.workflowEditorState.dragVersion++;\n  }\n\n  public replacePlaceholderByDroppedElement(placeholderElement: ShapeImpl) {\n    if (!this.workflowEditorState.draggedElement) return;\n\n    const changedElement = this.bpmnService.replacePlaceholderByElement(\n      this.bpmnModeler,\n      placeholderElement,\n      this.workflowEditorState.draggedElement,\n    );\n    this.workflowEditorState.currentWorkflowItem = changedElement;\n    this.workflowEditorState.draggedElement = null;\n    this.workflowEditorState.draggedElements = null;\n    this.invalidateCaches(changedElement ?? undefined);\n\n    return this.workflowEditorState.currentWorkflowItem;\n  }\n\n  public moveElementOnConnection(connection: ConnectionImpl) {\n    if (!this.workflowEditorState.draggedElement) return;\n\n    const changedElement = this.bpmnService.moveElementOnConnection(\n      this.bpmnModeler,\n      connection,\n      this.workflowEditorState.draggedElement,\n    );\n    this.workflowEditorState.currentWorkflowItem = changedElement;\n    this.workflowEditorState.draggedElement = null;\n    this.workflowEditorState.draggedElements = null;\n    this.invalidateCaches(changedElement ?? undefined);\n    // The scoped scan above only checks the moved element. Also check the connection's\n    // source predecessor — it may have lost its outgoing after the move re-wiring.\n    if (connection.source) {\n      this.ensureMissingPlaceholders(connection.source as ShapeImpl);\n    }\n\n    return this.workflowEditorState.currentWorkflowItem;\n  }\n\n  public async getDescriptionPlaceholderForElement(\n    type: BpmnItemType,\n    alternative?: BpmnServiceTaskAlternativeEnum,\n    mcpServerId?: string,\n  ) {\n    let mcpServer: McpServerConfigModel | null = null;\n    if (mcpServerId) {\n      mcpServer = await this.getMCPServerById(mcpServerId, false);\n    }\n    return this.workflowEditorManager.getDescriptionPlaceholderForElement(\n      this.workflowEditorState.currentCollection,\n      { type, alternative, mcpServer },\n    );\n  }\n\n  public setClickMode(mode: WorkflowEditorFeatureState['clickMode']) {\n    this.workflowEditorState.clickMode = mode;\n  }\n\n  public setGrabbing(isGrabbing: boolean) {\n    this.workflowEditorState.isGrabbing = isGrabbing;\n  }\n\n  public setLinkToSelectMode(value: boolean) {\n    this.workflowEditorState.isLinkToSelectModeOn = value;\n  }\n\n  public isLinkToElement(flow: ConnectionImpl | ShapeImpl): boolean {\n    return isLinkToElement(flow);\n  }\n\n  public isCurrentItemLinkToWithTarget() {\n    return (\n      isLinkToElement(this.workflowEditorState.hoveredOrSelectedItem)\n      && !this.workflowEditorState.hoveredOrSelectedItem.target?.businessObject?.isPlaceholder\n    );\n  }\n\n  public isInSubProcess() {\n    return this.getBPMNToDisplay()?.type === BpmnTaskTypeEnum.SubProcess;\n  }\n\n  public addOptionToGateway(gateway: ModdleElement) {\n    this.bpmnService.addGatewayOption(this.bpmnModeler, gateway);\n    this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, gateway);\n    this.invalidateCaches(gateway as ShapeImpl);\n  }\n\n  public deleteWorkflowItem(workflowItem: ModdleElement, options?: { invalidateCaches?: boolean }) {\n    const changedElement = this.bpmnService.deleteWorkflowItem(this.bpmnModeler, workflowItem);\n\n    this.workflowEditorState.currentWorkflowItem = null;\n    if (options?.invalidateCaches === false) return;\n    this.invalidateCaches(changedElement ?? undefined);\n  }\n\n  public getIsDeleteButtonDisabled(\n    workflowItem: WorkflowEditorFeatureState['currentWorkflowItem'],\n  ) {\n    return (\n      workflowItem?.type === BpmnEventTypeEnum.StartEvent\n      || (workflowItem?.type.includes('Gateway')\n        && workflowItem.outgoing.filter((connection) => connection.type === 'bpmn:SequenceFlow')\n          .length > 1)\n    );\n  }\n\n  public confirmRemoveOptionFromGateway(gateway: ShapeImpl, connection: ConnectionImpl) {\n    this.modalService.open('feature/workflow-editor/deletion-confirmation-modal', {\n      data: {\n        onClose: () => {\n          this.modalService.close();\n        },\n        onDelete: () => {\n          this.bpmnService.deleteGatewayOption(this.bpmnModeler, gateway, connection);\n          this.invalidateCaches(gateway);\n          this.modalService.close();\n        },\n        title: 'Delete option and branch?',\n        description: `Deleting the ${\n          connection.businessObject?.name as string\n        } option will permanently remove all steps in its branch.`,\n        confirmText: 'Delete option',\n      },\n    });\n  }\n\n  public confirmRemoveSubProcess(item: ShapeImpl): Promise<boolean> {\n    return new Promise((resolve) => {\n      this.modalService.open('feature/workflow-editor/deletion-confirmation-modal', {\n        data: {\n          onClose: () => {\n            this.modalService.close();\n            resolve(false);\n          },\n          onDelete: () => {\n            this.deleteWorkflowItem(item);\n            this.modalService.close();\n            resolve(true);\n          },\n          title: 'Delete group?',\n          description: `Deleting ${\n            item.businessObject?.name as string\n          } will permanently remove the group and all steps within it.`,\n          confirmText: 'Delete group',\n        },\n      });\n    });\n  }\n\n  public reorderGatewayOptions(gateway: ModdleElement, newOrder: string[]) {\n    this.bpmnService.reorderGatewayOptions(this.bpmnModeler, gateway, newOrder);\n    this.invalidateCaches(gateway as ShapeImpl);\n  }\n\n  public autoFixErrorsOnElements(\n    type: WorkflowEditorErrorTypeEnum,\n    itemsInErrorState: ShapeImpl[] | ConnectionImpl[],\n  ) {\n    if (type === WorkflowEditorErrorTypeEnum.MissingEndEvent) {\n      this.bpmnService.addMissingEndEvents(this.bpmnModeler, itemsInErrorState);\n    } else if (type === WorkflowEditorErrorTypeEnum.MissingEscalationInbox) {\n      this.bpmnService.fixMissingInboxesId(\n        this.bpmnModeler,\n        itemsInErrorState,\n        this.getInboxesForEscalation().firstObject?.id,\n      );\n    }\n    this.invalidateCaches();\n    const itemToSelect = itemsInErrorState.firstObject;\n    this.selectElement(\n      type === WorkflowEditorErrorTypeEnum.MissingEndEvent ? itemToSelect.target : itemToSelect,\n    );\n  }\n\n  public setCurrentCollection(collection: CollectionModel) {\n    this.workflowEditorState.currentCollection = collection;\n  }\n\n  public getInboxesForEscalation() {\n    return this.workflowEditorManager.getInboxesForEscalation(\n      this.layoutState.inboxes,\n      this.workflowEditorState.currentCollection,\n    );\n  }\n\n  public getMCPServersForValidation() {\n    return this.mcpServerFeature.getCachedMCPServers();\n  }\n\n  public getWorkflowsForCallActivity() {\n    return this.workflowEditorManager.getWorkflowsForCallActivity(\n      this.layoutState.collections || [],\n    );\n  }\n\n  public setGatewayConnectionToFocus(connectionId: string | null) {\n    this.workflowEditorState.gatewayConnectionIdToFocus = connectionId;\n  }\n\n  public setIsErrorsModalVisible(isVisible: boolean) {\n    this.workflowEditorState.isErrorsModalVisible = isVisible;\n  }\n\n  public async openErrorElement(\n    elementsInError: ShapeImpl[],\n    errorType: WorkflowEditorErrorTypeEnum,\n  ) {\n    const elementInError =\n      elementsInError.find((item) => item.parent?.id === this.getBPMNToDisplay().id)\n      || elementsInError[0];\n\n    if (errorType === WorkflowEditorErrorTypeEnum.MissingGatewayOptionName) {\n      this.setGatewayConnectionToFocus(\n        elementInError.outgoing.find((outgoing) => !outgoing.businessObject?.name)?.id,\n      );\n    }\n\n    this.uncollapsePathsToElements(elementsInError);\n\n    await this.workflowEditorSubProcessService.redirectOrExitSubProcessIfNecessary(elementInError);\n\n    const canSelectElement =\n      elementInError.businessObject?.isLinkTo\n      || !elementInError.target?.businessObject?.isPlaceholder;\n    this.selectElement(canSelectElement ? elementInError : null);\n\n    // Schedule a scroll to the error element.\n    // This must happen here (after uncollapse + await) so the scrollToItemId\n    // is set in the same run loop as the selectElement, avoiding timing issues.\n    // Connections (e.g. MissingEndEvent errors) are not flat items —\n    // resolve to the source shape which IS a flat item.\n    const scrollTargetId = isConnection(elementInError)\n      ? elementInError.source?.id ?? elementInError.id\n      : elementInError.id;\n    this.workflowEditorState.scrollToItemId = scrollTargetId;\n\n    return elementInError;\n  }\n\n  public getCollapseIdForConnection(args: { elementId?: string; connection?: ConnectionImpl }) {\n    if (args.elementId) return args.elementId;\n    return args.connection?.id;\n  }\n\n  public uncollapsePathsToElements(elements: Array<BpmnElement>) {\n    this.batchUncollapsePathsToElements(elements);\n  }\n\n  public clearScrollToItemId() {\n    this.workflowEditorState.scrollToItemId = null;\n  }\n\n  public clearSkipNextLayoutReCenter() {\n    this.workflowEditorState.skipNextLayoutReCenter = false;\n  }\n\n  public clearScrollToCollapseId() {\n    this.workflowEditorState.scrollToCollapseId = null;\n  }\n\n  public clearLastCollapseClick() {\n    this.workflowEditorState.lastCollapseClick = null;\n  }\n\n  public setCollapseTransitioning(isTransitioning: boolean) {\n    this.workflowEditorState.isCollapseTransitioning = isTransitioning;\n  }\n\n  private batchUncollapsePathsToElements(elements: Array<BpmnElement>) {\n    const idsToUncollapse = this.collapseService.collectCollapseIdsInPaths(elements);\n\n    idsToUncollapse.forEach((id) => {\n      if (this.workflowEditorState.isStepCollapsed(id)) {\n        this.workflowEditorState.toggleStepCollapse(id);\n      }\n    });\n  }\n\n  @action\n  private queueErrorValidation() {\n    if (this.errorValidationTimer) {\n      cancel(this.errorValidationTimer);\n    }\n\n    this.errorValidationTimer = later(\n      this,\n      () => {\n        this.errorValidationTimer = null;\n        void this.executeErrorValidation();\n      },\n      ERROR_VALIDATION_DEBOUNCE_MS,\n    );\n  }\n\n  @action\n  private async executeErrorValidation() {\n    await waitForNextRunLoop();\n\n    this.workflowEditorState.itemsInError = this.bpmnService.getElementsWithError(this.bpmnModeler);\n    this.restoreErrorHighlightState();\n  }\n\n  public highlightCollapseIdsWithErrors(elements: Array<BpmnElement>) {\n    const collapseIds = new Set<string>();\n\n    for (const errorElement of elements) {\n      const collapseId = this.collapseService.getCollapseIdForElement(errorElement, (id) =>\n        this.workflowEditorState.isStepCollapsed(id),\n      );\n\n      if (collapseId) {\n        collapseIds.add(collapseId);\n      }\n    }\n\n    this.workflowEditorState.errorCollapseIds = collapseIds;\n  }\n\n  public setShouldDisplayPlaceholderOnError(value: boolean) {\n    this.workflowEditorState.shouldDisplayPlaceholderOnError = value;\n  }\n\n  public restoreErrorHighlightState() {\n    const hasMissingEndEvent = this.workflowEditorState.itemsInError.some(\n      (item) => item.type === WorkflowEditorErrorTypeEnum.MissingEndEvent,\n    );\n\n    if (this.workflowEditorState.hasAttemptedSave) {\n      this.highlightCollapseIdsWithErrors(\n        this.workflowEditorState.itemsInError.map((item) => item.element),\n      );\n      this.workflowEditorState.shouldDisplayPlaceholderOnError = hasMissingEndEvent;\n    } else {\n      this.clearErrorHighlights();\n      this.workflowEditorState.shouldDisplayPlaceholderOnError = false;\n    }\n  }\n\n  public clearErrorHighlights() {\n    this.workflowEditorState.errorCollapseIds = new Set();\n  }\n\n  /**\n   * Expand all collapsed SubProcesses so that their children exist as diagram elements.\n   * bpmn-js does not serialize cross-boundary connections for collapsed SubProcesses,\n   * and toggleCollapse does not recreate them on re-import. By keeping SubProcesses\n   * always expanded (the flat renderer never uses bpmn-js collapsed view), we ensure\n   * cross-scope isLinkTo connections survive the save/reload cycle.\n   */\n  private expandCollapsedSubProcesses() {\n    const modeling = this.bpmnModeler.get<Modeling>('modeling');\n    const expandRecursive = (children: ShapeImpl[]) => {\n      for (const child of children) {\n        if (child.type !== 'bpmn:SubProcess') continue;\n        if (child.collapsed) {\n          try {\n            modeling.toggleCollapse(child as unknown as Shape);\n          } catch {\n            // Best-effort: if toggleCollapse fails, the SubProcess stays collapsed\n            // and cross-boundary connections may be lost on next save.\n          }\n        }\n        const nested = (child as unknown as { children?: ShapeImpl[] }).children;\n        if (nested?.length) {\n          expandRecursive(nested as ShapeImpl[]);\n        }\n      }\n    };\n    const bpmn = this.getBPMN();\n    const rootChildren = (bpmn as unknown as { children?: ShapeImpl[] })?.children ?? [];\n    expandRecursive(rootChildren);\n  }\n\n  private invalidateCaches(changedElement?: BpmnElement) {\n    performance.mark('invalidate-start');\n    this.ensureMissingPlaceholders(changedElement);\n    this.bpmnService.invalidatePathCache();\n    this.workflowEditorState.incrementBpmnVersion();\n    this.queueErrorValidation();\n    performance.mark('invalidate-end');\n    performance.measure('invalidateCaches', 'invalidate-start', 'invalidate-end');\n  }\n\n  /**\n   * Legacy renderer used to create a placeholder on-the-fly when a step had no outgoing sequence flow.\n   * Some imported or edge-case BPMNs can violate the invariant \"every non-terminal step has an outgoing\".\n   *\n   * The flat renderer relies on that invariant for both UX (continue building) and internal-business\n   * operations (some mutations assume an outgoing exists). We fix the BPMN once at the feature level\n   * (or after mutations) instead of having renderers mutate the diagram.\n   */\n  private ensureMissingPlaceholders(changedElement?: BpmnElement): void {\n    const modeler = this.bpmnModeler;\n    if (!modeler) return;\n    if (this.isEnsuringMissingPlaceholders) return;\n\n    this.isEnsuringMissingPlaceholders = true;\n    performance.mark('placeholders-start');\n\n    try {\n      let didChange = false;\n\n      const elementRegistry = modeler.get<ElementRegistry>('elementRegistry');\n      const modeling = modeler.get<Modeling>('modeling');\n\n      const hasValidBounds = (shape: ShapeImpl): boolean => {\n        const s = shape as unknown as {\n          x?: unknown;\n          y?: unknown;\n          width?: unknown;\n          height?: unknown;\n        };\n        return (\n          Number.isFinite(s.x)\n          && Number.isFinite(s.y)\n          && Number.isFinite(s.width)\n          && Number.isFinite(s.height)\n        );\n      };\n\n      // Only enforce \"non-terminal nodes must have an outgoing\" for actual BPMN FlowNodes.\n      // The element registry contains labels and other non-flow shapes (e.g. annotations) that:\n      // - legitimately have no outgoing\n      // - can lack bounds (width/height), causing bpmn-js to compute NaN waypoints and spam the console\n      // Note: labels share their parent's businessObject, so $instanceOf('bpmn:FlowNode') is true\n      // for them. We must filter labels by their element type, not their businessObject.\n      const isFlowNode = (shape: ShapeImpl): boolean => {\n        if (shape.type === 'label') return false;\n        const bo = shape.businessObject as unknown as { $instanceOf?: (t: string) => boolean };\n        return typeof bo?.$instanceOf === 'function' && bo.$instanceOf('bpmn:FlowNode') === true;\n      };\n\n      const toCandidateShapes = (el: BpmnElement | undefined | null): ShapeImpl[] => {\n        if (!el) return [];\n        if (isConnection(el)) {\n          return el.source ? [el.source] : [];\n        }\n        return [el];\n      };\n\n      const candidateShapes = changedElement ? toCandidateShapes(changedElement) : null;\n\n      const allElements =\n        candidateShapes && candidateShapes.length > 0\n          ? candidateShapes\n          : (elementRegistry.getAll() as unknown as Array<BpmnElement>);\n\n      for (const el of allElements) {\n        // Only shapes (not sequence flows).\n        if (isConnection(el)) continue;\n\n        const shape = el;\n\n        // Ignore deleted/unmounted elements.\n        if (!shape.parent) continue;\n\n        // Skip non-flow shapes (labels, annotations, etc.) and shapes without proper bounds.\n        if (!isFlowNode(shape)) continue;\n        if (!hasValidBounds(shape)) continue;\n\n        // Terminal / already placeholder.\n        if (shape.type === BpmnEventTypeEnum.EndEvent) continue;\n        if (shape.businessObject?.isPlaceholder) continue;\n\n        const allOutgoingSequenceFlows = (shape.outgoing ?? []).filter(isConnection);\n\n        // Clean up corrupted outgoings (no target). These can happen on imported/edge-case BPMNs\n        // or transiently after mutations, and they break SVG rendering (NaN waypoints).\n        const danglingOutgoing = allOutgoingSequenceFlows.filter((c) => !c.target);\n        for (const c of danglingOutgoing) {\n          try {\n            modeling.removeConnection(c);\n            didChange = true;\n          } catch (error) {\n            console.warn('Failed to remove dangling connection', error);\n          }\n        }\n\n        const outgoing = allOutgoingSequenceFlows.filter((c) => c.target);\n        if (outgoing.length > 0) continue;\n\n        // Ensure a placeholder exists so the user can continue building the workflow.\n        this.bpmnService.createPlaceholder(modeler, shape);\n        didChange = true;\n      }\n\n      if (!candidateShapes) {\n        (elementRegistry.getAll() as unknown as Array<BpmnElement>)\n          .filter((el) => !isConnection(el) && el.businessObject?.isPlaceholder)\n          .filter(\n            (el) =>\n              !(el.incoming ?? []).some(isConnection) && !(el.outgoing ?? []).some(isConnection),\n          )\n          .forEach((orphan) => {\n            try {\n              modeling.removeElements([orphan] as unknown as ShapeImpl[]);\n              didChange = true;\n            } catch (error) {\n              console.warn('Failed to remove orphan placeholder', error);\n            }\n          });\n      }\n\n      if (didChange) {\n        this.eventBus.trigger(\n          EventBusEventsEnum.WorkflowEditorOutgoingUpdated,\n          this.getBPMNToDisplay(),\n        );\n      }\n    } finally {\n      this.isEnsuringMissingPlaceholders = false;\n      performance.mark('placeholders-end');\n      performance.measure('placeholders', 'placeholders-start', 'placeholders-end');\n    }\n  }\n\n  public undo() {\n    this.workflowEditorState.currentWorkflowItem = this.bpmnService.undo(\n      this.bpmnModeler,\n      this.workflowEditorState.currentWorkflowItem,\n      this.getBPMN(),\n    );\n    // Undo can affect arbitrary elements across the tree — full scan required.\n    this.invalidateCaches();\n  }\n\n  public redo() {\n    this.workflowEditorState.currentWorkflowItem = this.bpmnService.redo(\n      this.bpmnModeler,\n      this.workflowEditorState.currentWorkflowItem,\n      this.getBPMN(),\n    );\n    // Redo can affect arbitrary elements across the tree — full scan required.\n    this.invalidateCaches();\n  }\n\n  public async getMCPServerById(mcpServerId: string, reload = true) {\n    return this.mcpServerFeature.getMCPServerById(mcpServerId, reload);\n  }\n\n  public getStepCount(connections: ConnectionImpl | ConnectionImpl[]) {\n    return this.collapseService.computeStepCount(connections);\n  }\n\n  public toggleStepCollapse(elementId: string) {\n    this.workflowEditorState.toggleStepCollapse(elementId);\n  }\n\n  public duplicateItems(itemsToDuplicate: ShapeImpl[]) {\n    const newItems = this.workflowEditorDuplication.duplicateItems(\n      this.bpmnModeler,\n      itemsToDuplicate,\n    );\n\n    // Duplication inserts new nodes; pass the first original so ensureMissingPlaceholders\n    // only checks that node's outgoing instead of scanning the entire registry.\n    this.invalidateCaches(itemsToDuplicate[0]);\n    return newItems;\n  }\n\n  public getClosestGatewayOutgoing(item: ShapeImpl): ConnectionImpl | null {\n    return this.workflowEditorDuplication.getClosestGatewayOutgoing(item);\n  }\n\n  public setSelectedItems(items: ShapeImpl[]) {\n    this.workflowEditorState.selectedItems = items;\n  }\n\n  public async displayIntegrationModalOrRedirect() {\n    if (this.currentUser.isAdmin) {\n      return this.router.transitionTo('project.project-settings.connectors');\n    }\n\n    this.mcpServerFeature.openIntegrationsModal();\n  }\n\n  // TODO: Remove this method when the new workflow editor is fully implemented\n  private getModuleOverrides() {\n    return {\n      __init__: ['paletteProvider', 'customContextPadProvider', 'customPopupMenuProvider'],\n      paletteProvider: ['type', WorkflowEditorCustomPaletteInternalBusinessService],\n      customContextPadProvider: ['type', WorkflowEditorCustomContextPadInternalBusinessService],\n      customPopupMenuProvider: [\n        'type',\n        WorkflowEditorCustomPopupMenuProviderInternalBusinessService,\n      ],\n    };\n  }\n\n  private getModuleOverridesV2() {\n    return {\n      __init__: ['paletteProvider', 'customContextPadProvider'],\n      paletteProvider: ['value', null],\n      customContextPadProvider: ['type', WorkflowEditorCustomContextPadV2InternalBusinessService],\n      commandStack: ['type', WorkflowEditorCustomCommandStackInternalBusinessService],\n    };\n  }\n\n  private registerEventListeners() {\n    const eventBus = this.bpmnModeler?.get<EventBus>('eventBus');\n    eventBus.on('element.click', (event: BpmnEvent) => {\n      const { element } = event;\n      // If element has no parent, it is a root element (the canvas)\n      this.workflowEditorState.currentWorkflowItem = element.parent ? (element as ShapeImpl) : null;\n    });\n\n    // Listen for command stack undo/redo to update UI for our custom commands\n    eventBus.on(\n      'commandStack.reverted',\n      (event: { command: string; context: { gateway?: ShapeImpl } }) => {\n        if (event.command === REORDER_GATEWAY_OPTIONS_COMMAND && event.context.gateway) {\n          this.eventBus.trigger(\n            EventBusEventsEnum.WorkflowEditorOutgoingUpdated,\n            event.context.gateway,\n          );\n        }\n      },\n    );\n    eventBus.on(\n      'commandStack.executed',\n      (event: { command: string; context: { gateway?: ShapeImpl } }) => {\n        if (event.command === REORDER_GATEWAY_OPTIONS_COMMAND && event.context.gateway) {\n          // Execute and Redo case - update UI\n          this.eventBus.trigger(\n            EventBusEventsEnum.WorkflowEditorOutgoingUpdated,\n            event.context.gateway,\n          );\n        }\n      },\n    );\n\n    if (!this.getIsV1Enabled()) {\n      this.eventBus.on(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, this.handleElementChanged);\n      this.eventBus.on(\n        EventBusEventsEnum.WorkflowEditorItemPropertiesUpdated,\n        this.handleElementChanged,\n      );\n      this.areEventsRegistered = true;\n    }\n  }\n\n  @action\n  private handleElementChanged() {\n    this.queueErrorValidation();\n  }\n\n  willDestroy() {\n    // Clear any pending validation timer\n    if (this.errorValidationTimer) {\n      cancel(this.errorValidationTimer);\n      this.errorValidationTimer = null;\n    }\n\n    if (this.areEventsRegistered) {\n      this.eventBus.off(\n        EventBusEventsEnum.WorkflowEditorOutgoingUpdated,\n        this.handleElementChanged,\n      );\n      this.eventBus.off(\n        EventBusEventsEnum.WorkflowEditorItemPropertiesUpdated,\n        this.handleElementChanged,\n      );\n    }\n    super.willDestroy();\n  }\n}\n","import type BpmnModeler from 'bpmn-js';\nimport type { BpmnElement, ConnectionImpl, ShapeImpl } from 'bpmn-js/custom';\nimport type { Moddle, ModdleElement } from 'bpmn-js/lib/BaseViewer';\nimport type { ElementRegistry } from 'bpmn-js/lib/features/modeling/BpmnLayouter';\nimport type Modeling from 'bpmn-js/lib/features/modeling/Modeling';\nimport type { Parent } from 'bpmn-js/lib/model/Types';\nimport type WorkflowEditorCustomCommandStackInternalBusinessService from 'client/features/workflow-editor/services/internal-business/custom-command-stack';\nimport type WorkflowEditorErrorHandlingInternalFeatureService from 'client/features/workflow-editor/services/internal-feature/error-handling';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LayoutState from 'client/shared/states/layout';\nimport type { CommandContext } from 'diagram-js/lib/command/CommandStack';\nimport type ElementFactory from 'diagram-js/lib/core/ElementFactory';\nimport type { Root } from 'diagram-js/lib/model';\nimport type { Element } from 'diagram-js/lib/model/Types';\n\nimport { isArray } from '@ember/array';\nimport { assert } from '@ember/debug';\nimport { notifyPropertyChange } from '@ember/object';\nimport Service, { service } from '@ember/service';\n\nimport {\n  BpmnCustomConfigurationEnum,\n  BpmnEventTypeEnum,\n  BpmnGatewayTypeEnum,\n  type BpmnItemType,\n  BpmnTaskLinkTypeEnum,\n  BpmnTaskTypeEnum,\n  isConnection,\n} from 'client/features/workflow-editor/configuration';\nimport { REORDER_GATEWAY_OPTIONS_COMMAND } from 'client/features/workflow-editor/services/internal-business/reorder-gateway-options-handler';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\nconst DEFAULT_BPMN = `<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<bpmn:definitions xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n    xmlns:bpmn=\"http://www.omg.org/spec/BPMN/20100524/MODEL\"\n    xmlns:bpmndi=\"http://www.omg.org/spec/BPMN/20100524/DI\"\n    xmlns:dc=\"http://www.omg.org/spec/DD/20100524/DC\" xmlns:forest=\"https://app.forestadmin.com\"\n    xmlns:di=\"http://www.omg.org/spec/DD/20100524/DI\" id=\"Definitions_0hdve55\"\n    targetNamespace=\"http://bpmn.io/schema/bpmn\" exporter=\"bpmn-js (https://demo.bpmn.io)\"\n    exporterVersion=\"18.6.1\">\n    <bpmn:process id=\"Process_1s8zutc\" isExecutable=\"false\">\n        <bpmn:startEvent id=\"StartEvent_0b1zhsz\" name=\"Start of workflow\">\n        </bpmn:startEvent>\n    </bpmn:process>\n    <bpmndi:BPMNDiagram id=\"BPMNDiagram_1\">\n        <bpmndi:BPMNPlane id=\"BPMNPlane_1\" bpmnElement=\"Process_1s8zutc\">\n            <bpmndi:BPMNShape id=\"_BPMNShape_StartEvent_2\" bpmnElement=\"StartEvent_0b1zhsz\">\n                <dc:Bounds x=\"182\" y=\"352\" width=\"36\" height=\"36\" />\n                <bpmndi:BPMNLabel>\n                    <dc:Bounds x=\"159\" y=\"395\" width=\"82\" height=\"14\" />\n                </bpmndi:BPMNLabel>\n            </bpmndi:BPMNShape>\n        </bpmndi:BPMNPlane>\n    </bpmndi:BPMNDiagram>\n</bpmn:definitions>`;\nconst ELEMENT_ID_PREFIX_BY_TYPE = {\n  'bpmn:Task': 'Activity_',\n  'bpmn:EndEvent': 'EndEvent_',\n  'bpmn:StartEvent': 'StartEvent_',\n  'bpmn:ExclusiveGateway': 'Gateway_',\n  'bpmn:SequenceFlow': 'Flow_',\n  'bpmn:SubProcess': 'SubProcess_',\n};\n\n/**\n * Use this decorator to wrap all operations done in a method inside a transaction.\n * This will allow the undo/redo functionality to work correctly.\n */\nexport const inTransaction = (\n  target: unknown,\n  propertyKey: string,\n  descriptor: PropertyDescriptor,\n) => {\n  const originalMethod = descriptor.value as (...args: unknown[]) => Promise<unknown>;\n\n  descriptor.value = function (bpmnModeler: BpmnModeler, ...args: unknown[]) {\n    assert(\n      'Expected instance of BpmnModeler as first argument',\n      bpmnModeler != null && typeof (bpmnModeler as unknown as { get: unknown }).get === 'function',\n    );\n\n    const commandStack =\n      bpmnModeler.get<WorkflowEditorCustomCommandStackInternalBusinessService>('commandStack');\n    const wasTransactionStarted = commandStack.startTransaction();\n    const result = originalMethod.apply(this, [bpmnModeler, ...args]);\n    if (wasTransactionStarted) {\n      commandStack.endTransaction();\n    }\n    return result;\n  };\n};\n\nexport default class WorkflowEditorBpmnInternalBusinessService extends Service {\n  @service('shared/state/layout') private layoutState: LayoutState;\n  @service private eventBus: EventBusService;\n  @service('feature/workflow-editor/internal-feature/error-handling')\n  private errorHandlingService: WorkflowEditorErrorHandlingInternalFeatureService;\n\n  // Cache for getShortestPathToStart to avoid O(N²) recalculations\n  private pathCache = new WeakMap<ShapeImpl, ShapeImpl[]>();\n\n  public getDefaultBpmnFile() {\n    return new File([DEFAULT_BPMN], 'default-forest-bpmn.xml', {\n      type: 'text/xml',\n    });\n  }\n\n  public getDescription(element: Element): string | null {\n    const description = element.businessObject.description;\n    if (description) {\n      return description;\n    }\n\n    const textAnnotations = this.getElementTextAnnotations(element);\n    return textAnnotations.length > 0 ? textAnnotations[0].businessObject.text : null;\n  }\n\n  public updateElementDescription(modeler: BpmnModeler, element: ShapeImpl, description: string) {\n    this.updateWorkflowItemProperties(modeler, element, { description });\n    const textAnnotations = this.getElementTextAnnotations(element);\n\n    if (textAnnotations.length > 0) {\n      const modeling = modeler.get<Modeling>('modeling');\n      modeling.removeElements(textAnnotations as ShapeImpl[]);\n    }\n  }\n\n  public async importXML(bpmnModeler: BpmnModeler, xml?: string) {\n    return bpmnModeler.importXML(xml || DEFAULT_BPMN);\n  }\n\n  private handleChanges(\n    changes: { command: string; context: CommandContext }[],\n    currentWorkflowItem: BpmnElement | null,\n    bpmn: Root,\n  ) {\n    if (!changes) return currentWorkflowItem;\n\n    const oldElementIdToNewElementId: Map<string, string> = new Map();\n    for (const change of changes) {\n      switch (change.command) {\n        case 'element.updateProperties':\n          this.eventBus.trigger(\n            EventBusEventsEnum.WorkflowEditorItemPropertiesUpdated,\n            change.context.element,\n          );\n          Object.keys(change.context.properties).forEach((key) => {\n            if (key === 'id') {\n              // This is when changing the type of an element\n              const oldId = change.context.oldProperties.id;\n              const newId = change.context.properties.id;\n              oldElementIdToNewElementId.set(oldId, newId);\n              oldElementIdToNewElementId.set(newId, oldId);\n            } else {\n              notifyPropertyChange(change.context.element.businessObject, key);\n            }\n          });\n\n          break;\n        case 'connection.create':\n          this.eventBus.trigger(\n            EventBusEventsEnum.WorkflowEditorOutgoingUpdated,\n            change.context.source,\n          );\n          break;\n        case 'connection.reconnect':\n          if (change.context.oldSource !== change.context.newSource) {\n            this.eventBus.trigger(\n              EventBusEventsEnum.WorkflowEditorOutgoingUpdated,\n              change.context.newSource,\n            );\n            this.eventBus.trigger(\n              EventBusEventsEnum.WorkflowEditorOutgoingUpdated,\n              change.context.oldSource,\n            );\n          }\n          notifyPropertyChange(change.context.connection, 'target');\n          break;\n        case 'shape.replace':\n          oldElementIdToNewElementId.set(change.context.newShape?.id, change.context.oldShape?.id);\n          oldElementIdToNewElementId.set(change.context.oldShape?.id, change.context.newShape?.id);\n          break;\n        case 'connection.delete':\n        case 'element.delete':\n        case 'shape.create':\n          oldElementIdToNewElementId.set(\n            change.context.element?.id || change.context.shape?.id,\n            null,\n          );\n          break;\n        default:\n          break;\n      }\n    }\n\n    if (!currentWorkflowItem || !oldElementIdToNewElementId.has(currentWorkflowItem.id)) {\n      return currentWorkflowItem;\n    }\n\n    const newId = oldElementIdToNewElementId.get(currentWorkflowItem.id);\n    const newElement = bpmn.children.find(\n      (child) => child.id === newId || child.id === currentWorkflowItem.id,\n    );\n    return !newElement || newElement?.businessObject?.isPlaceholder ? null : newElement;\n  }\n\n  public undo(bpmnModeler: BpmnModeler, currentWorkflowItem: BpmnElement | null, bpmn: Root) {\n    const changes =\n      bpmnModeler\n        .get<WorkflowEditorCustomCommandStackInternalBusinessService>('commandStack')\n        .undo() || [];\n    return this.handleChanges(changes, currentWorkflowItem, bpmn);\n  }\n\n  public redo(bpmnModeler: BpmnModeler, currentWorkflowItem: BpmnElement | null, bpmn: Root) {\n    const changes = bpmnModeler\n      .get<WorkflowEditorCustomCommandStackInternalBusinessService>('commandStack')\n      .redo();\n    return this.handleChanges(changes, currentWorkflowItem, bpmn);\n  }\n\n  public getStartEvent(bpmn: Root): Element | null {\n    return bpmn.children.find((child) => child.type === 'bpmn:StartEvent') || null;\n  }\n\n  public getShortestPathToStart(element: ShapeImpl, path: ShapeImpl[] = []): ShapeImpl[] {\n    // Check cache for top-level calls (path.length === 0)\n    if (path.length === 0 && this.pathCache.has(element)) {\n      return this.pathCache.get(element);\n    }\n\n    if (element.source) return this.getShortestPathToStart(element.source, [element]);\n    if (!element.incoming?.length || element.type === 'bpmn:StartEvent') return [...path, element];\n    if (path.includes(element)) return null;\n\n    const currentPath = [...path, element];\n    const result = element.incoming.reduce<ShapeImpl[]>((shortestPath, incoming) => {\n      if (incoming.businessObject.isLinkTo) return shortestPath;\n\n      const pathForIncoming = this.getShortestPathToStart(incoming.source, currentPath);\n      if (!pathForIncoming) return shortestPath;\n      return shortestPath && shortestPath.length < pathForIncoming.length\n        ? shortestPath\n        : pathForIncoming;\n    }, null);\n\n    // Cache the result for top-level calls\n    if (path.length === 0 && result) {\n      this.pathCache.set(element, result);\n    }\n\n    return result;\n  }\n\n  /**\n   * Invalidate the path cache. Call this when the workflow structure changes\n   * (elements added, removed, or connections modified).\n   */\n  public invalidatePathCache() {\n    this.pathCache = new WeakMap<ShapeImpl, ShapeImpl[]>();\n  }\n\n  public computeLinkTo(bpmnModeler: BpmnModeler, bpmnRoot: Root) {\n    this.computeLinkToForElements(bpmnModeler, bpmnRoot.children);\n  }\n\n  private computeLinkToForElements(bpmnModeler: BpmnModeler, elements: ShapeImpl[]) {\n    elements.forEach((element) => {\n      // Start Events can only have link-to incoming connections (never normal sequence flows).\n      // The \"reset all-linkTo\" branch below would incorrectly clear the flag.\n      if (element.type === 'bpmn:StartEvent') return;\n\n      if (\n        element.incoming?.length > 1\n        && element.incoming.filter((incoming) => !incoming.businessObject?.isLinkTo)?.length > 1\n      ) {\n        // Compute link to\n        const shortestPath = this.getShortestPathToStart(element);\n        if (!shortestPath) return;\n        const referencedIncoming = element.incoming.find(\n          (incoming) =>\n            !incoming?.businessObject.isLinkTo && shortestPath.includes(incoming.source),\n        );\n        element.incoming.forEach((incoming) => {\n          if (incoming !== referencedIncoming) {\n            this.updateWorkflowItemProperties(bpmnModeler, incoming, {\n              isLinkTo: true,\n            });\n          }\n        });\n      } else if (\n        element.incoming?.length > 0\n        && element.incoming.filter((incoming) => !incoming.businessObject?.isLinkTo)?.length === 0\n        && !element.businessObject?.isPlaceholder\n      ) {\n        // All incoming connections are linkTo, we need to reset one of them\n        const linkTo = element.incoming.find((incoming) => incoming.businessObject?.isLinkTo);\n        this.updateWorkflowItemProperties(bpmnModeler, linkTo, {\n          isLinkTo: undefined,\n        });\n      }\n\n      if (element.type === 'bpmn:SubProcess' && element.children?.length) {\n        this.computeLinkToForElements(bpmnModeler, element.children as ShapeImpl[]);\n      }\n    });\n  }\n\n  public getEditorCurrentStackIdx(bpmnModeler: BpmnModeler): number {\n    return bpmnModeler.get<{ _stackIdx: number }>('commandStack')._stackIdx;\n  }\n\n  private generateElementId(type: string) {\n    return `${type}_${Math.random().toString(36).substring(2, 9)}`;\n  }\n\n  public createBusinessObject(\n    bpmnModeler: BpmnModeler,\n    type: string,\n    properties: Record<string, unknown>,\n  ) {\n    const moddle = bpmnModeler.get<Moddle>('moddle');\n\n    const elementIdPrefix = ELEMENT_ID_PREFIX_BY_TYPE[type] || 'Activity_';\n    return moddle.create(type, { id: this.generateElementId(elementIdPrefix), ...properties });\n  }\n\n  public extractBusinessObjectProperties(\n    businessObject: Record<string, unknown>,\n  ): Record<string, unknown> {\n    const preservedProperties: Record<string, unknown> = {};\n\n    const baseProperties = ['id', 'name'];\n    const customConfigProperties = Object.values(BpmnCustomConfigurationEnum);\n\n    const allowedProperties = [...baseProperties, ...customConfigProperties];\n\n    allowedProperties.forEach((prop) => {\n      if (businessObject[prop] !== undefined) {\n        preservedProperties[prop] = businessObject[prop];\n      }\n    });\n\n    return preservedProperties;\n  }\n\n  public createNewBpmnElement(\n    bpmnModeler: BpmnModeler,\n    type: string,\n    properties: Record<string, unknown>,\n    target?: Parent,\n  ): ShapeImpl {\n    const elementFactory = bpmnModeler.get<ElementFactory>('elementFactory');\n    const modeling = bpmnModeler.get<Modeling>('modeling');\n    const canvas = bpmnModeler.get<{ getRootElement: () => Element }>('canvas');\n\n    const businessObject = this.createBusinessObject(bpmnModeler, type, properties);\n    const element = elementFactory.createShape({\n      type,\n      businessObject,\n    });\n    const shape = modeling.createShape(\n      element,\n      { x: 100, y: 100 },\n      target || (canvas.getRootElement() as Parent),\n    ) as unknown as ShapeImpl;\n\n    if (element.type === BpmnTaskTypeEnum.SubProcess) {\n      const startEvent = this.createNewBpmnElement(\n        bpmnModeler,\n        BpmnEventTypeEnum.StartEvent,\n        {\n          name: 'Start',\n        },\n        shape,\n      );\n      const endEvent = this.createNewBpmnElement(\n        bpmnModeler,\n        BpmnEventTypeEnum.EndEvent,\n        {\n          name: 'End',\n        },\n        shape,\n      );\n      modeling.connect(startEvent, endEvent);\n    }\n    return shape;\n  }\n\n  public getSingleFlow(connections: ConnectionImpl[], shouldExcludeLinkTo = false) {\n    const connectionsFiltered = connections.filter(\n      (connection) =>\n        connection.type === 'bpmn:SequenceFlow'\n        && (!shouldExcludeLinkTo || !connection.businessObject?.isLinkTo),\n    );\n    if (connectionsFiltered.length > 1) throw new Error('Multiple flows are not supported');\n    return connectionsFiltered[0];\n  }\n\n  private reconnectIncomingAndOutgoing(bpmnModeler: BpmnModeler, element: ShapeImpl) {\n    const modeling = bpmnModeler.get<Modeling>('modeling');\n\n    // Note: LinkTo is modeled as a special SequenceFlow. For incoming, we exclude LinkTo because\n    // only the \"main\" flow is supported here.\n    const incoming = this.getSingleFlow(element.incoming, true);\n    const outgoing = this.getSingleFlow(element.outgoing);\n\n    // When moving an existing element, we need to \"heal\" the previous location:\n    // - If we had both incoming+outgoing, reconnect incoming -> outgoing.target\n    // - If outgoing is missing (common for placeholders/end events), reconnect incoming -> new placeholder\n    // - If incoming is missing (start event), just remove the outgoing\n    //\n    // We must never throw here: drag/drop uses this method inside a transaction and an exception\n    // would leave the editor in a broken/laggy state.\n    if (!incoming) {\n      if (outgoing) {\n        const outgoingBusinessObject = this.extractBusinessObjectProperties(\n          outgoing.businessObject || {},\n        );\n        modeling.removeConnection(outgoing);\n        return outgoingBusinessObject;\n      }\n      return undefined;\n    }\n\n    if (!outgoing || !outgoing.target) {\n      const outgoingBusinessObject = outgoing\n        ? this.extractBusinessObjectProperties(outgoing.businessObject || {})\n        : undefined;\n\n      // If the outgoing exists but is dangling, delete it to avoid invalid SVG paths (NaN waypoints).\n      if (outgoing) {\n        modeling.removeConnection(outgoing);\n      }\n\n      const placeholder = this.createPlaceholderElementWithoutConnection(\n        bpmnModeler,\n        element.parent as unknown as Parent,\n      );\n      modeling.reconnectEnd(incoming, placeholder, { x: 0, y: 0 });\n      notifyPropertyChange(incoming, 'target');\n      this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, incoming.source);\n      return outgoingBusinessObject;\n    }\n\n    const outgoingBusinessObject = this.extractBusinessObjectProperties(\n      outgoing.businessObject || {},\n    );\n\n    const target = outgoing.target;\n    const isLinkTo = outgoing.businessObject?.isLinkTo;\n    modeling.removeConnection(outgoing);\n\n    modeling.reconnectEnd(incoming, target, { x: 0, y: 0 });\n    if (isLinkTo) {\n      this.updateWorkflowItemProperties(bpmnModeler, incoming, { isLinkTo: true });\n    }\n    notifyPropertyChange(incoming, 'target');\n    this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, incoming.source);\n\n    return outgoingBusinessObject;\n  }\n\n  private createPlaceholderElementWithoutConnection(bpmnModeler: BpmnModeler, parent: Parent) {\n    const shape = this.createNewBpmnElement(\n      bpmnModeler,\n      'bpmn:Task',\n      {\n        name: 'Placeholder Task',\n        isPlaceholder: true,\n      },\n      parent,\n    );\n    return shape;\n  }\n\n  public createPlaceholder(\n    bpmnModeler: BpmnModeler,\n    workflowItem: ShapeImpl,\n    flowProperties: Record<string, unknown> | undefined = {},\n  ) {\n    const modeling = bpmnModeler.get<Modeling>('modeling');\n\n    const shape = this.createPlaceholderElementWithoutConnection(\n      bpmnModeler,\n      workflowItem.parent as unknown as Parent,\n    );\n    const flowBusinessObject = this.createBusinessObject(\n      bpmnModeler,\n      'bpmn:SequenceFlow',\n      flowProperties,\n    );\n    modeling.connect(workflowItem, shape, {\n      type: 'bpmn:SequenceFlow',\n      businessObject: flowBusinessObject,\n      parent: workflowItem.parent as Parent,\n    });\n\n    notifyPropertyChange(workflowItem, 'outgoing');\n\n    return shape;\n  }\n\n  private updateParent(\n    bpmnModeler: BpmnModeler,\n    referenceElement: BpmnElement,\n    movedElement: BpmnElement | ShapeImpl[],\n  ) {\n    const firstMovedElement = isArray(movedElement) ? movedElement[0] : movedElement;\n    if (!firstMovedElement || referenceElement.parent === firstMovedElement.parent) return false;\n\n    const modeling = bpmnModeler.get<Modeling>('modeling');\n\n    if (!isArray(movedElement) && isConnection(movedElement)) {\n      modeling.moveConnection(movedElement, { x: 0, y: 0 }, referenceElement.parent as Parent);\n    } else {\n      modeling.moveElements(\n        isArray(movedElement) ? movedElement : [movedElement],\n        { x: 0, y: 0 },\n        referenceElement.parent as Parent,\n      );\n    }\n\n    return true;\n  }\n\n  private moveExistingGatewayOnConnection(\n    bpmnModeler: BpmnModeler,\n    connection: ConnectionImpl,\n    movedElement: ShapeImpl,\n  ) {\n    const modeling = bpmnModeler.get<Modeling>('modeling');\n\n    const placeholder = this.createPlaceholderElementWithoutConnection(\n      bpmnModeler,\n      movedElement.parent as Parent,\n    );\n    const incoming = this.getSingleFlow(movedElement.incoming, true);\n    const target = connection.target;\n    modeling.reconnectEnd(incoming, placeholder, { x: 0, y: 0 });\n    modeling.reconnectEnd(connection, movedElement, { x: 0, y: 0 });\n\n    let placeholderToDelete: ShapeImpl;\n    const gatewayChildren = this.getAllChildren(movedElement);\n    if (target?.businessObject?.isPlaceholder) {\n      placeholderToDelete = target;\n    } else {\n      const innerPlaceholder = gatewayChildren.find((child) => child.businessObject?.isPlaceholder);\n      if (innerPlaceholder) {\n        const gatewayOutgoing = this.getSingleFlow(innerPlaceholder.incoming, true);\n        modeling.reconnectEnd(gatewayOutgoing, target, { x: 0, y: 0 });\n        this.updateParent(bpmnModeler, target, gatewayOutgoing);\n      }\n      placeholderToDelete = innerPlaceholder || target;\n    }\n\n    // bpmn-js always normalizes types to PascalCase (e.g. 'bpmn:SequenceFlow'), so toLowerCase\n    // should never be needed. Kept as a defensive safeguard.\n    const elements = gatewayChildren.filter(\n      (child) => child.type.toLowerCase() !== 'bpmn:sequenceflow',\n    );\n    this.updateParent(bpmnModeler, connection, elements);\n\n    modeling.removeElements([placeholderToDelete]);\n\n    notifyPropertyChange(incoming, 'target');\n    notifyPropertyChange(connection, 'target');\n    return movedElement;\n  }\n\n  /**\n   * Like {@link isConnection}, but also handles palette items ({@link BpmnItemType} objects)\n   * that are not yet real BpmnElements. The extra structural checks (`source`/`target`)\n   * distinguish existing connections from newly-created palette descriptors.\n   */\n  private isConnectionElement(\n    element:\n      | ShapeImpl\n      | ConnectionImpl\n      | { type: BpmnItemType; businessObject: Record<string, unknown> },\n  ): element is ConnectionImpl {\n    // bpmn-js always normalizes types to PascalCase (e.g. 'bpmn:SequenceFlow'), so toLowerCase\n    // should never be needed. Kept as a defensive safeguard.\n    return (\n      element != null\n      && element.type.toLowerCase() === 'bpmn:sequenceflow'\n      && 'source' in element\n      && 'target' in element\n    );\n  }\n\n  private moveExistingLinkToOnConnection(\n    bpmnModeler: BpmnModeler,\n    connection: ConnectionImpl,\n    linkToElement: ConnectionImpl,\n  ) {\n    const modeling = bpmnModeler.get<Modeling>('modeling');\n\n    const oldSource: ShapeImpl | undefined = linkToElement.source;\n    const newSource: ShapeImpl | undefined = connection.source;\n\n    // No-op safeguards: dropping onto the same source or without endpoints.\n    if (!oldSource || !newSource) return linkToElement;\n    if (oldSource === newSource) return linkToElement;\n\n    // IMPORTANT: We must not create a second outgoing on a non-gateway element.\n    // The legacy renderer semantics assume \"one main outgoing\" per task. If we simply reconnectStart()\n    // the link-to to `newSource`, `newSource` would now have TWO outgoings (its current flow + link-to),\n    // which breaks downstream logic (e.g. getSingleFlow()) and leads to laggy/broken states.\n    //\n    // Instead, we swap the two connections' sources so each source keeps a single outgoing:\n    // - link-to now starts from the drop target source\n    // - the drop target connection now starts from the previous link-to source\n    //\n    // IMPORTANT: ensure each connection is attached to the same parent container as its new source\n    // before reconnecting. Otherwise bpmn-js may transiently compute invalid waypoints (NaN) and\n    // flood the console / lag during the drop handler.\n    this.updateParent(bpmnModeler, newSource, linkToElement);\n    this.updateParent(bpmnModeler, oldSource, connection);\n\n    modeling.reconnectStart(linkToElement, newSource, { x: 0, y: 0 });\n    modeling.reconnectStart(connection, oldSource, { x: 0, y: 0 });\n\n    // Keep renderer caches and listeners in sync.\n    notifyPropertyChange(oldSource, 'outgoing');\n    notifyPropertyChange(newSource, 'outgoing');\n    notifyPropertyChange(linkToElement, 'source');\n    notifyPropertyChange(connection, 'source');\n    this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, oldSource);\n    this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, newSource);\n\n    return linkToElement;\n  }\n\n  @inTransaction\n  public moveElementOnConnection(\n    bpmnModeler: BpmnModeler,\n    connection: ConnectionImpl,\n    movedElement: ShapeImpl | { type: BpmnItemType; businessObject: Record<string, unknown> },\n  ) {\n    const modeling = bpmnModeler.get<Modeling>('modeling');\n\n    // LinkTo items are modeled as SequenceFlow connections but rendered as draggable cards.\n    // They cannot be treated like shapes here; doing so leads to NaN SVG paths and duplicated flows.\n    if (\n      this.isConnectionElement(movedElement)\n      && movedElement.businessObject?.isLinkTo === true\n      && 'id' in movedElement\n      && Boolean(movedElement.id)\n    ) {\n      if (movedElement === connection) return movedElement;\n      return this.moveExistingLinkToOnConnection(bpmnModeler, connection, movedElement);\n    }\n\n    let targetConnectionBusinessObject = undefined;\n    let newElementToConnectTo: ShapeImpl = null;\n    // If moved element is an existing element\n    if ('id' in movedElement && movedElement.id) {\n      // If we are moving the element on the same location do nothing\n      if (movedElement === connection.source || movedElement === connection.target)\n        return movedElement;\n\n      if (movedElement.type === BpmnGatewayTypeEnum.ExclusiveGateway) {\n        return this.moveExistingGatewayOnConnection(bpmnModeler, connection, movedElement);\n      }\n\n      const deletedOutgoingBusinessObject = this.reconnectIncomingAndOutgoing(\n        bpmnModeler,\n        movedElement,\n      );\n      this.updateParent(bpmnModeler, connection, movedElement);\n\n      targetConnectionBusinessObject = this.createBusinessObject(bpmnModeler, 'bpmn:SequenceFlow', {\n        name: deletedOutgoingBusinessObject?.name,\n        buttonColor: deletedOutgoingBusinessObject?.buttonColor,\n        isLinkTo: connection.businessObject?.isLinkTo,\n      });\n\n      newElementToConnectTo = movedElement;\n    } else if (movedElement.type === BpmnTaskLinkTypeEnum.LinkTo) {\n      // Special handling for LinkTo elements\n      // Mark the connection as a link-to WITHOUT a target (user must select target)\n\n      // Store the original target before modifying the connection\n      const originalTarget = connection.target;\n\n      // Create a placeholder element that will:\n      // 1. Become the target of the linkTo connection (user will replace it by selecting real target)\n      // 2. Continue the original flow to the original target\n      const placeholder = this.createPlaceholderElementWithoutConnection(\n        bpmnModeler,\n        connection.parent as Parent,\n      );\n\n      // Reconnect the original connection to point to the placeholder instead of originalTarget\n      modeling.reconnectEnd(connection, placeholder, { x: 0, y: 0 });\n\n      // Mark the connection as a link-to\n      this.updateWorkflowItemProperties(bpmnModeler, connection, {\n        isLinkTo: true,\n      });\n\n      // Connect the placeholder to the original target to maintain the flow\n      if (originalTarget && !originalTarget.businessObject?.isPlaceholder) {\n        modeling.connect(placeholder, originalTarget, {\n          type: 'bpmn:SequenceFlow',\n          businessObject: this.createBusinessObject(bpmnModeler, 'bpmn:SequenceFlow', {}),\n          parent: connection.parent as Parent,\n        });\n      }\n\n      notifyPropertyChange(connection, 'target');\n      this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, connection.source);\n\n      return connection;\n    } else {\n      targetConnectionBusinessObject = this.createBusinessObject(bpmnModeler, 'bpmn:SequenceFlow', {\n        isLinkTo: connection.businessObject?.isLinkTo,\n        name: movedElement.type?.includes('Gateway') ? 'Option 1' : undefined,\n      });\n      newElementToConnectTo = this.createNewBpmnElement(\n        bpmnModeler,\n        movedElement.type,\n        { ...movedElement.businessObject },\n        connection.parent as Parent,\n      );\n    }\n\n    const { target, source } = connection;\n\n    modeling.reconnectEnd(connection, newElementToConnectTo, { x: 0, y: 0 });\n    modeling.connect(newElementToConnectTo, target, {\n      type: 'bpmn:SequenceFlow',\n      businessObject: targetConnectionBusinessObject,\n      parent: connection.parent as Parent,\n    });\n\n    if (newElementToConnectTo.type.includes('Gateway')) {\n      this.addGatewayOption(bpmnModeler, newElementToConnectTo);\n    }\n    if (connection.businessObject?.isLinkTo) {\n      this.updateWorkflowItemProperties(bpmnModeler, connection, {\n        isLinkTo: undefined,\n      });\n    }\n\n    this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, source);\n    notifyPropertyChange(source, 'outgoing');\n    notifyPropertyChange(connection, 'target');\n\n    return newElementToConnectTo;\n  }\n\n  public addGatewayOption(modeler: BpmnModeler, gateway: ShapeImpl) {\n    const placeholder = this.createPlaceholder(modeler, gateway);\n    this.updateWorkflowItemProperties(modeler, placeholder.incoming[0], {\n      name: this.getNextGatewayOptionName(gateway),\n    });\n  }\n\n  private switchElementWithPlaceholder(\n    bpmnModeler: BpmnModeler,\n    placeholderElement: ShapeImpl,\n    newElement: ShapeImpl,\n  ) {\n    const modeling = bpmnModeler.get<Modeling>('modeling');\n    const incomingPlaceholder = this.getSingleFlow(placeholderElement.incoming, true);\n    const incomingNewElement = this.getSingleFlow(newElement.incoming, true);\n\n    modeling.reconnectEnd(incomingPlaceholder, newElement, { x: 0, y: 0 });\n    modeling.reconnectEnd(incomingNewElement, placeholderElement, { x: 0, y: 0 });\n    this.updateParent(bpmnModeler, placeholderElement, newElement);\n\n    notifyPropertyChange(incomingPlaceholder, 'target');\n    notifyPropertyChange(incomingNewElement, 'target');\n\n    return newElement;\n  }\n\n  private moveLinkToOnPlaceholder(\n    bpmnModeler: BpmnModeler,\n    linkToElement: ConnectionImpl,\n    placeholderElement: ShapeImpl,\n  ) {\n    const modeling = bpmnModeler.get<Modeling>('modeling');\n    const placeholderIncoming = this.getSingleFlow(placeholderElement.incoming, true);\n    const newLinkToBusinessObject = {\n      name: placeholderIncoming.businessObject?.name,\n      buttonColor: placeholderIncoming.businessObject?.buttonColor,\n    };\n    const newPlaceholderIncomingBusinessObject = {\n      name: linkToElement.businessObject?.name,\n      buttonColor: linkToElement.businessObject?.buttonColor,\n    };\n    const oldLinkToSource = linkToElement.source;\n\n    modeling.reconnectStart(linkToElement, placeholderIncoming.source, { x: 0, y: 0 });\n    modeling.reconnectStart(placeholderIncoming, oldLinkToSource, { x: 0, y: 0 });\n\n    this.updateWorkflowItemProperties(\n      bpmnModeler,\n      placeholderIncoming,\n      newPlaceholderIncomingBusinessObject,\n    );\n    this.updateWorkflowItemProperties(bpmnModeler, linkToElement, newLinkToBusinessObject);\n    this.updateParent(bpmnModeler, placeholderElement, linkToElement);\n\n    this.eventBus.trigger(\n      EventBusEventsEnum.WorkflowEditorOutgoingUpdated,\n      placeholderIncoming.source,\n    );\n    this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, linkToElement.source);\n\n    return linkToElement;\n  }\n\n  @inTransaction\n  public replacePlaceholderByElement(\n    bpmnModeler: BpmnModeler,\n    placeholderElement: ShapeImpl,\n    newElement:\n      | ShapeImpl\n      | ConnectionImpl\n      | { type: BpmnItemType; businessObject: Record<string, unknown> },\n  ): BpmnElement {\n    const isExistingElement = 'id' in newElement && newElement.id;\n    if (isExistingElement && newElement.type === BpmnEventTypeEnum.EndEvent) {\n      return this.switchElementWithPlaceholder(bpmnModeler, placeholderElement, newElement);\n    } else if (isExistingElement && newElement.type === BpmnTaskLinkTypeEnum.LinkTo) {\n      return this.moveLinkToOnPlaceholder(\n        bpmnModeler,\n        newElement as ConnectionImpl,\n        placeholderElement,\n      );\n    } else if (isExistingElement) {\n      return this.moveElementOnConnection(\n        bpmnModeler,\n        this.getSingleFlow(placeholderElement.incoming, true),\n        newElement,\n      );\n    } else if (newElement.type === BpmnTaskLinkTypeEnum.LinkTo) {\n      const incoming = this.getSingleFlow(placeholderElement.incoming, true);\n      this.updateWorkflowItemProperties(bpmnModeler, incoming, {\n        isLinkTo: true,\n      });\n      return incoming;\n    } else if (newElement.type === BpmnTaskTypeEnum.SubProcess) {\n      const incoming = this.getSingleFlow(placeholderElement.incoming, true);\n      const element = this.createNewBpmnElement(\n        bpmnModeler,\n        newElement.type,\n        newElement.businessObject,\n        placeholderElement.parent as Parent,\n      );\n      const modeling = bpmnModeler.get<Modeling>('modeling');\n      modeling.reconnectEnd(incoming, element, { x: 0, y: 0 });\n      modeling.connect(element, placeholderElement);\n      notifyPropertyChange(incoming, 'target');\n      return element;\n    }\n    const element = this.updateWorkflowItemProperties(bpmnModeler, placeholderElement, {\n      ...newElement.businessObject,\n      type: newElement.type as BpmnItemType,\n      isPlaceholder: undefined,\n    });\n\n    if (Object.values(BpmnGatewayTypeEnum).includes(element.type as BpmnGatewayTypeEnum)) {\n      this.createPlaceholder(bpmnModeler, element, {\n        name: 'Option 1',\n      });\n      this.createPlaceholder(bpmnModeler, element, {\n        name: 'Option 2',\n      });\n    } else if (!Object.values(BpmnEventTypeEnum).includes(element.type as BpmnEventTypeEnum)) {\n      // For non-Gateway, non-Event elements, create a placeholder after the element\n      // so the user can continue building the workflow\n      this.createPlaceholder(bpmnModeler, element);\n    }\n\n    return element;\n  }\n\n  public sortItemsFromStart(selectedItems: ShapeImpl[]): ShapeImpl[] {\n    return [...selectedItems].sort((selectedItemA, selectedItemB) => {\n      const pathA = this.getShortestPathToStart(selectedItemA);\n      const pathB = this.getShortestPathToStart(selectedItemB);\n      return pathA.length - pathB.length;\n    });\n  }\n\n  @inTransaction\n  public createSubProcessWithAllChildren(bpmnModeler: BpmnModeler, selectedItems: ShapeImpl[]) {\n    const selectedItemsSorted = this.sortItemsFromStart(selectedItems);\n\n    const firstConnection = this.getSingleFlow(selectedItemsSorted[0].incoming, true);\n    const subProcessElement = this.moveElementOnConnection(bpmnModeler, firstConnection, {\n      type: BpmnTaskTypeEnum.SubProcess,\n      businessObject: { name: selectedItemsSorted[0].businessObject?.name || 'Group' },\n    });\n\n    const endEvent = (subProcessElement as unknown as { children: ShapeImpl[] }).children.find(\n      (child) => child.type === BpmnEventTypeEnum.EndEvent,\n    );\n\n    const linkToElementsSourceAndTarget = new Map<\n      ShapeImpl,\n      { source: ShapeImpl; target: ShapeImpl; name: string }\n    >();\n    const linkToElementsOldToNew = new Map<ConnectionImpl, ConnectionImpl>();\n    for (const selectedItem of selectedItemsSorted) {\n      if (selectedItem.businessObject?.isLinkTo) {\n        linkToElementsSourceAndTarget.set(selectedItem, {\n          source: selectedItem.source,\n          target: selectedItem.target,\n          name: selectedItem.businessObject?.name as string,\n        });\n      } else if (selectedItem.type?.includes('Gateway')) {\n        this.getAllChildren(selectedItem).forEach((child) => {\n          if (child.businessObject?.isLinkTo) {\n            selectedItemsSorted.push(child);\n          }\n        });\n      }\n    }\n    let shouldIgnoreElement = false;\n    selectedItemsSorted.forEach((selectedItem) => {\n      const isLinkTo = selectedItem.businessObject?.isLinkTo;\n      if (isLinkTo && linkToElementsOldToNew.has(selectedItem as ConnectionImpl)) {\n        const newLinkTo = linkToElementsOldToNew.get(selectedItem as ConnectionImpl);\n        const placeholder = this.updateWorkflowItemProperties(bpmnModeler, endEvent, {\n          name: 'Placeholder Task',\n          isPlaceholder: true,\n          type: 'bpmn:Task',\n        });\n        this.replacePlaceholderByElement(bpmnModeler, placeholder, newLinkTo);\n        this.updateParent(bpmnModeler, subProcessElement, placeholder);\n      } else if (isLinkTo && !selectedItem.target) {\n        const { source, target, name } = linkToElementsSourceAndTarget.get(selectedItem);\n        const modeling = bpmnModeler.get<Modeling>('modeling');\n        modeling.connect(source, target, {\n          type: 'bpmn:SequenceFlow',\n          businessObject: this.createBusinessObject(bpmnModeler, 'bpmn:SequenceFlow', {\n            ...this.extractBusinessObjectProperties(selectedItem.businessObject),\n            name,\n          }),\n          parent: source.parent as Parent,\n        });\n        modeling.removeElements([endEvent]);\n      } else if (!shouldIgnoreElement && !isLinkTo) {\n        const incoming = this.getSingleFlow(selectedItem.incoming, true);\n        const outgoing = selectedItem.type?.includes('Gateway')\n          ? null\n          : this.getSingleFlow(selectedItem.outgoing);\n        linkToElementsOldToNew.set(outgoing, incoming);\n        this.replacePlaceholderByElement(bpmnModeler, endEvent, selectedItem);\n      }\n\n      shouldIgnoreElement ||= selectedItem.type?.includes('Gateway');\n    });\n\n    return subProcessElement;\n  }\n\n  public addMissingEndEvents(modeler: BpmnModeler, connections: ShapeImpl[]) {\n    connections.forEach((connection) => {\n      const endEvent = {\n        type: BpmnEventTypeEnum.EndEvent,\n        businessObject: {\n          name: 'End Event',\n        },\n      };\n      this.replacePlaceholderByElement(modeler, connection.target, endEvent);\n    });\n  }\n\n  public fixMissingInboxesId(modeler: BpmnModeler, escalationTasks: ShapeImpl[], inboxId: string) {\n    escalationTasks.forEach((task) => {\n      this.updateWorkflowItemProperties(modeler, task, { inboxId });\n    });\n  }\n\n  @inTransaction\n  public updateLinkToTarget(\n    bpmnModeler: BpmnModeler,\n    linkToElement: ConnectionImpl,\n    target: ModdleElement,\n  ) {\n    const modeling = bpmnModeler.get<Modeling>('modeling');\n    const oldTarget = linkToElement.target;\n    modeling.reconnectEnd(linkToElement, target, { x: 0, y: 0 });\n\n    if (oldTarget?.businessObject?.isPlaceholder) {\n      modeling.removeElements([oldTarget]);\n    }\n    notifyPropertyChange(linkToElement, 'target');\n  }\n\n  @inTransaction\n  public updateWorkflowItemProperties(\n    bpmnModeler: BpmnModeler,\n    workflowItem: BpmnElement,\n    { type, ...properties }: Record<string, unknown> & { type?: BpmnItemType },\n  ) {\n    let workflowItemToReturn = workflowItem;\n    if (type) {\n      const bpmnReplace = bpmnModeler.get<{\n        replaceElement: (element, targetElement) => Element;\n      }>('bpmnReplace');\n      workflowItemToReturn = bpmnReplace.replaceElement(workflowItem, {\n        type: type,\n      }) as ShapeImpl;\n    }\n\n    const modeling = bpmnModeler?.get<Modeling>('modeling');\n    modeling.updateProperties(workflowItemToReturn, properties);\n\n    Object.keys(properties).forEach((key) => {\n      notifyPropertyChange(workflowItemToReturn.businessObject, key);\n    });\n    workflowItemToReturn.incoming.forEach((incoming) => {\n      notifyPropertyChange(incoming, 'target');\n    });\n\n    this.eventBus.trigger(\n      EventBusEventsEnum.WorkflowEditorItemPropertiesUpdated,\n      workflowItemToReturn,\n    );\n\n    return workflowItemToReturn;\n  }\n\n  private getNextGatewayOptionName(currentWorkflowItem: ModdleElement): string {\n    return `Option ${currentWorkflowItem.outgoing.length}`;\n  }\n\n  /**\n   * Generator version of getAllChildren to avoid O(N²) memory allocation\n   * from repeated array flatting.\n   */\n  private *getAllChildrenGenerator(element: ModdleElement): Generator<ModdleElement> {\n    // The BPMN graph can contain cycles (LinkTo / corrupted connections / merges).\n    // This generator must be cycle-safe to avoid infinite recursion.\n    const visited = new Set<string>();\n    yield* this.getAllChildrenGeneratorInternal(element, visited);\n  }\n\n  private *getAllChildrenGeneratorInternal(\n    element: ModdleElement,\n    visited: Set<string>,\n  ): Generator<ModdleElement> {\n    if (!element?.id) return;\n    if (visited.has(element.id)) return;\n    visited.add(element.id);\n\n    yield element;\n    for (const outgoing of element.outgoing || []) {\n      if (!outgoing?.id) continue;\n      if (visited.has(outgoing.id)) continue;\n      visited.add(outgoing.id);\n\n      if (outgoing.businessObject.isLinkTo) {\n        yield outgoing;\n      } else {\n        yield outgoing;\n        if (outgoing.target) {\n          yield* this.getAllChildrenGeneratorInternal(outgoing.target, visited);\n        }\n      }\n    }\n  }\n\n  /**\n   * Get all children of an element including the element itself.\n   * Uses a generator internally for memory efficiency.\n   */\n  public getAllChildren(element: ModdleElement): ModdleElement[] {\n    return [...this.getAllChildrenGenerator(element)];\n  }\n\n  @inTransaction\n  public deleteWorkflowItem(modeler: BpmnModeler, workflowItem: BpmnElement): ShapeImpl | null {\n    const modeling = modeler.get<Modeling>('modeling');\n\n    if (isConnection(workflowItem)) {\n      const isLinkToConnection = workflowItem.businessObject?.isLinkTo === true;\n\n      // A regular SequenceFlow deletion should not go through shape deletion logic.\n      // The editor mostly deletes shapes, but keeping this safe avoids accidental crashes.\n      if (!isLinkToConnection) {\n        const { source } = workflowItem;\n        modeling.removeElements([workflowItem]);\n\n        notifyPropertyChange(workflowItem, 'target');\n        this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, source);\n\n        return source ?? null;\n      }\n\n      const oldTarget = workflowItem.target;\n      const placeholder = this.createPlaceholderElementWithoutConnection(\n        modeler,\n        workflowItem.parent as Parent,\n      );\n      modeling.reconnectEnd(workflowItem, placeholder, { x: 0, y: 0 });\n      if (oldTarget?.businessObject?.isPlaceholder) {\n        modeling.removeElements([oldTarget]);\n      }\n      this.updateWorkflowItemProperties(modeler, workflowItem, { isLinkTo: undefined });\n\n      notifyPropertyChange(workflowItem, 'target');\n      this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, workflowItem.source);\n\n      return workflowItem.source ?? null;\n    }\n\n    // Shape deletion: workflowItem is narrowed to ShapeImpl after the connection early-return above.\n    const incomingFlow = this.getSingleFlow(workflowItem.incoming, true);\n\n    this.resetLinkToTarget(modeler, workflowItem);\n\n    if (workflowItem.type === BpmnEventTypeEnum.EndEvent) {\n      const placeholder = this.createPlaceholderElementWithoutConnection(\n        modeler,\n        workflowItem.parent as Parent,\n      );\n      modeling.reconnectEnd(this.getSingleFlow(workflowItem.incoming), placeholder, { x: 0, y: 0 });\n      modeling.removeElements([workflowItem]);\n    } else {\n      this.reconnectIncomingAndOutgoing(modeler, workflowItem);\n      modeling.removeElements([workflowItem]);\n    }\n\n    notifyPropertyChange(incomingFlow || workflowItem, 'target');\n\n    const sourceElement = incomingFlow?.source ?? null;\n    this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, sourceElement);\n\n    // Best-effort: return the element most likely impacted by the mutation so callers\n    // can run incremental fix-ups/validation instead of full graph scans.\n    return sourceElement;\n  }\n\n  @inTransaction\n  public reorderGatewayOptions(modeler: BpmnModeler, gateway: ShapeImpl, newOptionsId: string[]) {\n    const commandStack =\n      modeler.get<WorkflowEditorCustomCommandStackInternalBusinessService>('commandStack');\n\n    // Use command stack for undo/redo support\n    // The handler directly manipulates arrays to avoid BPMN.js re-rendering glitches\n    // Note: UI update is handled by commandStack.execute/reverted event listeners in feature.ts\n    commandStack.execute(REORDER_GATEWAY_OPTIONS_COMMAND, {\n      gateway,\n      newOrder: newOptionsId,\n    });\n\n    // Reorder sequence flows in process.flowElements so that saveXML serializes them\n    // in the correct order and importXML recreates shape.outgoing in the same order\n    const parent = gateway.businessObject?.$parent as\n      | { flowElements?: { id: string }[] }\n      | undefined;\n    const flowElements = parent?.flowElements;\n    if (flowElements) {\n      const orderMap = new Map(newOptionsId.map((id, i) => [id, i]));\n      const indices = newOptionsId\n        .map((id) => flowElements.findIndex((fe) => fe.id === id))\n        .filter((i) => i !== -1)\n        .sort((a, b) => a - b);\n      const sorted = [...indices]\n        .map((_, i) => flowElements[indices[i]])\n        .sort((a, b) => (orderMap.get(a.id) ?? Infinity) - (orderMap.get(b.id) ?? Infinity));\n      indices.forEach((idx, i) => {\n        flowElements[idx] = sorted[i];\n      });\n    }\n  }\n\n  public getElementsWithError(modeler: BpmnModeler) {\n    const elementRegistry = modeler.get<ElementRegistry>('elementRegistry');\n\n    const elementsWithErrors = elementRegistry\n      .getAll()\n      .map((element) => this.errorHandlingService.getElementError(element as ShapeImpl))\n      .filter(Boolean);\n\n    return elementsWithErrors;\n  }\n\n  private resetLinkToTarget(modeler: BpmnModeler, item: ShapeImpl) {\n    const modeling = modeler.get<Modeling>('modeling');\n    const allIncomingLinkTo = item.incoming.filter((incoming) => incoming.businessObject?.isLinkTo);\n\n    const itemNextElement =\n      Object.values(BpmnGatewayTypeEnum).includes(item.type as BpmnGatewayTypeEnum)\n      && item.outgoing.length > 1\n        ? null\n        : this.getSingleFlow(item.outgoing)?.target;\n\n    allIncomingLinkTo.forEach((connection) => {\n      let newLinkToTarget: ShapeImpl;\n      if (\n        this.isItemLinkToTarget(item, connection)\n        || !itemNextElement\n        || itemNextElement.businessObject?.isPlaceholder\n      ) {\n        newLinkToTarget = this.createPlaceholderElementWithoutConnection(\n          modeler,\n          connection.parent as Parent,\n        );\n      } else {\n        // Avoid creating self-loops (LinkTo source -> itself) which can confuse downstream logic.\n        // If the natural \"next element\" is the source, fall back to a placeholder.\n        const source = connection.source;\n        newLinkToTarget =\n          source && source.id === itemNextElement.id\n            ? this.createPlaceholderElementWithoutConnection(modeler, connection.parent as Parent)\n            : itemNextElement;\n      }\n      modeling.reconnectEnd(connection, newLinkToTarget, { x: 0, y: 0 });\n      notifyPropertyChange(connection, 'target');\n      this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorItemPropertiesUpdated, connection);\n    });\n  }\n\n  private isItemLinkToTarget(item: ShapeImpl, linkTo: ConnectionImpl) {\n    if (!(linkTo.type === BpmnTaskLinkTypeEnum.LinkTo && linkTo.businessObject?.isLinkTo)) {\n      return false;\n    }\n\n    return item.outgoing.some((outgoing) => outgoing === linkTo);\n  }\n\n  @inTransaction\n  public deleteGatewayOption(modeler: BpmnModeler, gateway: ShapeImpl, connection: ConnectionImpl) {\n    this.deleteConnectionAndChildren(modeler, connection, new Set<string>());\n\n    this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, gateway);\n  }\n\n  private deleteConnectionAndChildren(\n    modeler: BpmnModeler,\n    connection: ConnectionImpl,\n    visitedConnectionIds: Set<string>,\n  ) {\n    const modeling = modeler?.get<Modeling>('modeling');\n\n    if (visitedConnectionIds.has(connection.id)) {\n      return;\n    }\n    visitedConnectionIds.add(connection.id);\n\n    if (connection.businessObject?.isLinkTo) {\n      modeling.removeConnection(connection);\n      return;\n    }\n\n    const target = connection.target;\n    if (!target) {\n      modeling.removeConnection(connection);\n      return;\n    }\n\n    // Stop deletion at shared nodes. Deleting a gateway option should not delete elements that are\n    // still reachable from another option (e.g., branches that merge back into a shared tail).\n    //\n    // We ignore incoming LinkTo connections here: those are handled by resetLinkToTarget() when\n    // the element is actually deleted.\n    const otherIncomingNonLinkTo = (target.incoming ?? []).filter(\n      (incoming) =>\n        incoming.type === 'bpmn:SequenceFlow'\n        && !incoming.businessObject?.isLinkTo\n        && incoming !== connection,\n    );\n    if (otherIncomingNonLinkTo.length > 0) {\n      modeling.removeConnection(connection);\n      return;\n    }\n\n    // Recursively delete downstream, preserving BPMN order.\n    // Copy arrays since the modeler will mutate connections/elements during removal.\n    const outgoing = [...(target.outgoing ?? [])].filter((c) => c.type === 'bpmn:SequenceFlow');\n    for (const next of outgoing) {\n      this.deleteConnectionAndChildren(modeler, next, visitedConnectionIds);\n    }\n\n    this.resetLinkToTarget(modeler, target);\n\n    modeling.removeElements([target]);\n  }\n\n  private getElementTextAnnotations(element: Element) {\n    return element.outgoing\n      .filter((outgoing) => outgoing.target?.type === 'bpmn:TextAnnotation')\n      .map((outgoing) => outgoing.target);\n  }\n}\n","import type { BpmnElement, ConnectionImpl, ShapeImpl } from 'bpmn-js/custom';\nimport type WorkflowEditorBpmnInternalBusinessService from 'client/features/workflow-editor/services/internal-business/bpmn';\n\nimport Service, { service } from '@ember/service';\n\nexport default class WorkflowEditorCollapseInternalBusinessService extends Service {\n  @service('feature/workflow-editor/internal-business/bpmn')\n  private readonly bpmnService: WorkflowEditorBpmnInternalBusinessService;\n\n  public getCollapseIdForElement(element: BpmnElement, isStepCollapsed: (id: string) => boolean) {\n    const targetElement = 'source' in element ? element.target : element;\n    if (!targetElement) return undefined;\n\n    const path = this.bpmnService.getShortestPathToStart(targetElement);\n    if (!path) return undefined;\n\n    const shapePath = path.filter((p) => !('source' in p && 'target' in p)).reverse();\n\n    for (let i = 0; i < shapePath.length - 1; i++) {\n      const current = shapePath[i];\n      const next = shapePath[i + 1];\n\n      const collapsedConnection = current.outgoing?.find(\n        (out: ConnectionImpl) => out.target === next,\n      );\n      if (collapsedConnection?.id && isStepCollapsed(collapsedConnection.id)) {\n        return collapsedConnection.id;\n      }\n\n      const isMultiBranchGateway =\n        current.type?.includes('Gateway') && current.outgoing?.length > 1;\n      const branchesId = isMultiBranchGateway && `${current.id}-branches`;\n      if (branchesId && isStepCollapsed(branchesId)) {\n        return branchesId;\n      }\n    }\n\n    return undefined;\n  }\n\n  public collectCollapseIdsInPaths(elements: Array<BpmnElement>) {\n    const collapseIds = new Set<string>();\n\n    for (const element of elements) {\n      const targetElement = 'source' in element ? element.target : element;\n      if (!targetElement) continue;\n\n      const path = this.bpmnService.getShortestPathToStart(targetElement);\n      if (!path) continue;\n\n      const shapePath = path\n        .filter((p): p is ShapeImpl => !('source' in p && 'target' in p))\n        .reverse();\n\n      for (let i = 0; i < shapePath.length - 1; i++) {\n        const current = shapePath[i];\n        const next = shapePath[i + 1];\n\n        const connectionCollapseId = this.getConnectionCollapseIdBetween(current, next);\n        if (connectionCollapseId) {\n          collapseIds.add(connectionCollapseId);\n        }\n\n        const gatewayBranchesId = this.getGatewayBranchesIdIfApplicable(current);\n        if (gatewayBranchesId) {\n          collapseIds.add(gatewayBranchesId);\n        }\n      }\n    }\n\n    return collapseIds;\n  }\n\n  private getConnectionCollapseIdBetween(current: ShapeImpl, next: ShapeImpl) {\n    const connection = current.outgoing?.find((out: ConnectionImpl) => out.target === next);\n    return connection?.id;\n  }\n\n  private getGatewayBranchesIdIfApplicable(shape: ShapeImpl) {\n    const isMultiBranchGateway = shape.type?.includes('Gateway') && shape.outgoing?.length > 1;\n    return isMultiBranchGateway ? `${shape.id}-branches` : undefined;\n  }\n\n  public computeStepCount(connections: ConnectionImpl | ConnectionImpl[]) {\n    const connectionsArray = Array.isArray(connections) ? connections : [connections];\n    const uniqueSteps = new Set<string>();\n    const visited = new Set<string>();\n    const mergePoints = new Set<ShapeImpl>();\n\n    const collectStepsRecursively = (\n      connection: ConnectionImpl,\n      isRootConnection: boolean = false,\n    ) => {\n      if (connection.businessObject?.isLinkTo) {\n        uniqueSteps.add(connection.id);\n        return;\n      }\n\n      const element = connection.target;\n\n      if (visited.has(element.id)) return;\n      visited.add(element.id);\n\n      const shouldIgnoreElement =\n        element.businessObject?.isPlaceholder\n        || element.type === 'bpmn:TextAnnotation'\n        || element.type === 'bpmn:SequenceFlow';\n\n      if (shouldIgnoreElement) return;\n\n      uniqueSteps.add(element.id);\n\n      const nonLinkToIncoming = (element.incoming || []).filter(\n        (inc: ConnectionImpl) => !inc.businessObject?.isLinkTo,\n      );\n      const isMergePoint = !isRootConnection && nonLinkToIncoming.length > 1;\n\n      if (isMergePoint) {\n        mergePoints.add(element);\n        return;\n      }\n\n      (element.outgoing || []).forEach((outgoing: ConnectionImpl) => {\n        collectStepsRecursively(outgoing, false);\n      });\n    };\n\n    connectionsArray.forEach((connection: ConnectionImpl) => {\n      if (connection?.target || connection.businessObject?.isLinkTo) {\n        collectStepsRecursively(connection, true);\n      }\n    });\n\n    // Continue past merge points where all incoming sources were visited.\n    // Loop until stable to handle chained merge points (A→merge1→merge2→...).\n    let resolved: number;\n    do {\n      resolved = 0;\n      for (const mergePoint of mergePoints) {\n        const allSourcesVisited = (mergePoint.incoming || [])\n          .filter((inc: ConnectionImpl) => !inc.businessObject?.isLinkTo)\n          .every((inc: ConnectionImpl) => visited.has(inc.source?.id));\n\n        if (allSourcesVisited) {\n          mergePoints.delete(mergePoint);\n          resolved++;\n          (mergePoint.outgoing || []).forEach((outgoing: ConnectionImpl) => {\n            collectStepsRecursively(outgoing, false);\n          });\n        }\n      }\n    } while (resolved > 0);\n\n    return uniqueSteps.size;\n  }\n}\n","import type { CommandContext } from 'diagram-js/lib/command/CommandStack';\n\nimport CommandStack from 'diagram-js/lib/command/CommandStack';\n\n// Limit history size to prevent memory growth\nconst MAX_HISTORY_SIZE = 100;\n\nexport default class WorkflowEditorCustomCommandStackInternalBusinessService extends CommandStack {\n  private changes: { command: string; context: CommandContext }[][] = [];\n  private transaction: { command: string; context: CommandContext }[];\n  private undoChanges: { command: string; context: CommandContext }[][] = [];\n  private isUndoing: boolean = false;\n\n  public startTransaction() {\n    if (!this.transaction) {\n      this.transaction = [];\n      return true;\n    }\n    return false;\n  }\n\n  public endTransaction() {\n    if (this.transaction) {\n      this.changes.push(this.transaction);\n      this.transaction = null;\n\n      // Trim history if it exceeds the limit to prevent memory growth\n      if (this.changes.length > MAX_HISTORY_SIZE) {\n        this.changes = this.changes.slice(-MAX_HISTORY_SIZE);\n      }\n    }\n  }\n\n  public undo() {\n    const lastChanges = this.changes.pop();\n    this.isUndoing = true;\n    if (lastChanges) {\n      this.undoChanges.push(lastChanges);\n\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-ignore\n      let nextUndo = super._getUndoAction() as { command: string; context: CommandContext };\n      [...lastChanges].reverse().forEach((change) => {\n        if (nextUndo?.command === change.command && nextUndo.context === change.context) {\n          super.undo();\n          // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n          // @ts-ignore\n          nextUndo = this._getUndoAction() as { command: string; context: CommandContext };\n        }\n      });\n    }\n    this.isUndoing = false;\n\n    return lastChanges && [...lastChanges]?.reverse();\n  }\n\n  public redo() {\n    const lastUndone = this.undoChanges.pop();\n    this.isUndoing = true;\n    if (lastUndone) {\n      this.changes.push(lastUndone);\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-ignore\n      let nextRedo = this._getRedoAction() as { command: string; context: CommandContext };\n      lastUndone.forEach((change) => {\n        if (nextRedo?.command === change.command && nextRedo.context === change.context) {\n          super.redo();\n          // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n          // @ts-ignore\n          nextRedo = this._getRedoAction() as { command: string; context: CommandContext };\n        }\n      });\n    }\n    this.isUndoing = false;\n\n    return lastUndone;\n  }\n\n  public canRedo(): boolean {\n    return this.undoChanges.length > 0;\n  }\n\n  public canUndo(): boolean {\n    return this.changes.length > 0;\n  }\n\n  public execute(command: string, context: CommandContext): void {\n    this.storeChanges(command, context);\n    return super.execute(command, context);\n  }\n\n  private storeChanges(command: string, context: CommandContext) {\n    if (this.isUndoing) return;\n\n    // Reset everything that has been undone, we are creating a new history\n    this.undoChanges.clear();\n\n    const shouldStartTransaction = !this.transaction;\n    if (shouldStartTransaction) {\n      this.transaction = this.changes.pop();\n    }\n\n    this.transaction?.push({ command, context });\n\n    if (shouldStartTransaction) {\n      this.endTransaction();\n    }\n  }\n}\n","import type { ContextPad, Element } from 'bpmn-js/lib/features/context-pad/ContextPadProvider';\nimport type ContextPadProvider from 'diagram-js/lib/features/context-pad/ContextPadProvider';\nimport type { ContextPadEntriesCallback } from 'diagram-js/lib/features/context-pad/ContextPadProvider';\n\nexport default class WorkflowEditorCustomContextPadV2InternalBusinessService {\n  static readonly $inject = ['contextPad'];\n\n  constructor(contextPad: ContextPad) {\n    contextPad.registerProvider(this as unknown as ContextPadProvider);\n  }\n\n  getContextPadEntries(_element: Element): ContextPadEntriesCallback {\n    return (_entries) => ({});\n  }\n}\n","import type {\n  ContextPad,\n  ContextPadConfig,\n  ContextPadEntries,\n  Create,\n  Element,\n  ElementFactory,\n  Injector,\n} from 'bpmn-js/lib/features/context-pad/ContextPadProvider';\nimport type { Shape } from 'diagram-js/lib/core/ElementFactory';\nimport type ContextPadProvider from 'diagram-js/lib/features/context-pad/ContextPadProvider';\nimport type { ContextPadEntriesCallback } from 'diagram-js/lib/features/context-pad/ContextPadProvider';\n\ntype AutoPlace = {\n  append: (element: Element, shape: Shape) => void;\n};\n\nexport default class WorkflowEditorCustomContextPadInternalBusinessService {\n  static $inject = ['config', 'contextPad', 'create', 'elementFactory', 'injector'];\n\n  private readonly autoPlace: AutoPlace;\n  private readonly create: Create;\n  private readonly elementFactory: ElementFactory;\n\n  private element: Element;\n\n  constructor(\n    config: ContextPadConfig,\n    contextPad: ContextPad,\n    create: Create,\n    elementFactory: ElementFactory,\n    injector: Injector,\n  ) {\n    this.create = create;\n    this.elementFactory = elementFactory;\n\n    if (config.autoPlace !== false) {\n      this.autoPlace = injector.get('autoPlace', false);\n    }\n\n    contextPad.registerProvider(this as unknown as ContextPadProvider);\n  }\n\n  getContextPadEntries(element: Element): ContextPadEntriesCallback {\n    this.element = element;\n\n    // This way we receive the default entries and can modify them\n    return (entries: ContextPadEntries) => {\n      if (\n        ['bpmn:EndEvent', 'bpmn:SequenceFlow', 'bpmn:TextAnnotation', 'label'].includes(\n          element.type,\n        )\n      ) {\n        // We don't want to add new entries for these elements\n        return entries;\n      }\n\n      if ('append.gateway' in entries) {\n        entries['append.gateway'].className = 'bpmn-icon-gateway-xor';\n      }\n\n      delete entries['append.intermediate-event'];\n      delete entries['append.append-task'];\n\n      return { ...entries, ...this.additionalEntries };\n    };\n  }\n\n  private get additionalEntries() {\n    return {\n      'append.service-task': {\n        group: 'model',\n        className: 'bpmn-icon-service-task',\n        title: 'Append ServiceTask',\n        action: {\n          click: this.appendEntry.bind(this, 'bpmn:ServiceTask'),\n          dragstart: this.entryStart.bind(this, 'bpmn:ServiceTask'),\n        },\n      },\n      'append.user-task': {\n        group: 'model',\n        className: 'bpmn-icon-user-task',\n        title: 'Append UserTask',\n        action: {\n          click: this.appendEntry.bind(this, 'bpmn:UserTask'),\n          dragstart: this.entryStart.bind(this, 'bpmn:UserTask'),\n        },\n      },\n    } as unknown as ContextPadEntries;\n  }\n\n  private appendEntry(type: string, event: Event, element: Element) {\n    if (this.autoPlace) {\n      const shape = this.elementFactory.createShape({ type });\n\n      this.autoPlace.append(element, shape);\n    } else {\n      this.entryStart(type, event);\n    }\n  }\n\n  private entryStart(type: string, event: Event) {\n    const shape = this.elementFactory.createShape({ type });\n\n    this.create.start(event, shape, this.element);\n  }\n}\n","import type { EventBus } from 'bpmn-js/lib/BaseViewer';\nimport type {\n  Create,\n  ElementFactory,\n  HandTool,\n  LassoTool,\n  Palette,\n  PaletteEntries,\n} from 'bpmn-js/lib/features/palette/PaletteProvider';\n\ninterface ExtendedPalette extends Palette {\n  _init: () => void;\n  _update: () => void;\n  _container?: Element;\n  _eventBus: EventBus<unknown>;\n  _layoutChanged: (...args: unknown[]) => void;\n}\n\n// https://github.com/bpmn-io/bpmn-js/blob/develop/lib/features/palette/PaletteProvider.js\n// eslint-disable-next-line forest-custom/class-naming-based-on-path\nexport default class WorkflowEditorCustomPaletteV2InternalBusinessServiceV2 {\n  private readonly create: Create;\n  private readonly elementFactory: ElementFactory;\n  private readonly handTool: HandTool;\n  private readonly lassoTool: LassoTool;\n\n  static $inject = ['palette', 'create', 'elementFactory', 'lassoTool', 'handTool'];\n\n  constructor(\n    palette: ExtendedPalette,\n    create: Create,\n    elementFactory: ElementFactory,\n    lassoTool: LassoTool,\n    handTool: HandTool,\n  ) {\n    this.create = create;\n    this.elementFactory = elementFactory;\n    this.handTool = handTool;\n    this.lassoTool = lassoTool;\n\n    palette._init = () => {\n      const container = document.querySelector('.js-bpmn-editor-palette');\n      const eventBus = palette._eventBus;\n      palette._container = container;\n\n      eventBus.on('canvas.resized', (...args) => palette._layoutChanged(...args), this);\n\n      eventBus.fire('palette.create', {\n        container,\n      });\n\n      eventBus.fire('palette.create', {\n        container: palette._container,\n      });\n    };\n\n    palette._update = () => {\n      palette.open();\n    };\n\n    palette.registerProvider(this);\n  }\n\n  public getPaletteEntries(): PaletteEntries {\n    return {\n      'create.start-event': this.createAction(\n        'bpmn:StartEvent',\n        'event',\n        'bpmn-icon-start-event-none',\n        'Create start event',\n      ),\n      'create.end-event': this.createAction(\n        'bpmn:EndEvent',\n        'event',\n        'bpmn-icon-end-event-none',\n        'Create end event',\n      ),\n      'event-separator': {\n        group: 'event',\n        separator: true,\n        action: undefined,\n      },\n      'create.exclusive-gateway': this.createAction(\n        'bpmn:ExclusiveGateway',\n        'gateway',\n        'bpmn-icon-gateway-xor',\n        'Create exclusive gateway',\n      ),\n      'gateway-separator': {\n        group: 'gateway',\n        separator: true,\n        action: undefined,\n      },\n      'create.user-task': this.createAction(\n        'bpmn:UserTask',\n        'task',\n        'bpmn-icon-user-task',\n        'Create user task',\n      ),\n      'create.service-task': this.createAction(\n        'bpmn:ServiceTask',\n        'task',\n        'bpmn-icon-service-task',\n        'Create service task',\n      ),\n      'task-separator': {\n        group: 'task',\n        separator: true,\n        action: undefined,\n      },\n      'create.group': this.createAction(\n        'bpmn:Group',\n        'artifact',\n        'bpmn-icon-group',\n        'Create group',\n      ),\n    };\n  }\n\n  private createAction(type: string, group: string, className: string, title: string) {\n    const { create, elementFactory } = this;\n    function createListener(event: Event) {\n      const shape = elementFactory.createShape({ type });\n      create.start(event, shape);\n    }\n\n    return {\n      group,\n      className,\n      title,\n      action: {\n        dragstart: createListener,\n        click: createListener,\n      },\n    };\n  }\n}\n","import type {\n  Create,\n  ElementFactory,\n  HandTool,\n  LassoTool,\n  Palette,\n  PaletteEntries,\n} from 'bpmn-js/lib/features/palette/PaletteProvider';\n\n// https://github.com/bpmn-io/bpmn-js/blob/develop/lib/features/palette/PaletteProvider.js\nexport default class WorkflowEditorCustomPaletteInternalBusinessService {\n  private readonly create: Create;\n  private readonly elementFactory: ElementFactory;\n  private readonly handTool: HandTool;\n  private readonly lassoTool: LassoTool;\n\n  static $inject = ['palette', 'create', 'elementFactory', 'lassoTool', 'handTool'];\n\n  constructor(\n    palette: Palette,\n    create: Create,\n    elementFactory: ElementFactory,\n    lassoTool: LassoTool,\n    handTool: HandTool,\n  ) {\n    this.create = create;\n    this.elementFactory = elementFactory;\n    this.handTool = handTool;\n    this.lassoTool = lassoTool;\n\n    palette.registerProvider(this);\n  }\n\n  public getPaletteEntries(): PaletteEntries {\n    const { handTool, lassoTool } = this;\n\n    return {\n      'hand-tool': {\n        group: 'tools',\n        className: 'bpmn-icon-hand-tool',\n        title: 'Activate hand tool',\n        action: {\n          click(event) {\n            handTool.activateHand(event);\n          },\n        },\n      },\n      'lasso-tool': {\n        group: 'tools',\n        className: 'bpmn-icon-lasso-tool',\n        title: 'Activate lasso tool',\n        action: {\n          click(event) {\n            lassoTool.activateSelection(event as MouseEvent);\n          },\n        },\n      },\n      'tool-separator': {\n        group: 'tools',\n        separator: true,\n        action: undefined,\n      },\n      'create.start-event': this.createAction(\n        'bpmn:StartEvent',\n        'event',\n        'bpmn-icon-start-event-none',\n        'Create start event',\n      ),\n      'create.end-event': this.createAction(\n        'bpmn:EndEvent',\n        'event',\n        'bpmn-icon-end-event-none',\n        'Create end event',\n      ),\n      'event-separator': {\n        group: 'event',\n        separator: true,\n        action: undefined,\n      },\n      'create.exclusive-gateway': this.createAction(\n        'bpmn:ExclusiveGateway',\n        'gateway',\n        'bpmn-icon-gateway-xor',\n        'Create exclusive gateway',\n      ),\n      'gateway-separator': {\n        group: 'gateway',\n        separator: true,\n        action: undefined,\n      },\n      'create.user-task': this.createAction(\n        'bpmn:UserTask',\n        'task',\n        'bpmn-icon-user-task',\n        'Create user task',\n      ),\n      'create.service-task': this.createAction(\n        'bpmn:ServiceTask',\n        'task',\n        'bpmn-icon-service-task',\n        'Create service task',\n      ),\n      'task-separator': {\n        group: 'task',\n        separator: true,\n        action: undefined,\n      },\n      'create.group': this.createAction(\n        'bpmn:Group',\n        'artifact',\n        'bpmn-icon-group',\n        'Create group',\n      ),\n    };\n  }\n\n  private createAction(type: string, group: string, className: string, title: string) {\n    const { create, elementFactory } = this;\n    function createListener(event: Event) {\n      const shape = elementFactory.createShape({ type });\n      create.start(event, shape);\n    }\n\n    return {\n      group,\n      className,\n      title,\n      action: {\n        dragstart: createListener,\n        click: createListener,\n      },\n    };\n  }\n}\n","import type PopupMenu from 'diagram-js/lib/features/popup-menu/PopupMenu';\nimport type { PopupMenuTarget } from 'diagram-js/lib/features/popup-menu/PopupMenu';\nimport type PopupMenuProvider from 'diagram-js/lib/features/popup-menu/PopupMenuProvider';\nimport type {\n  PopupMenuEntries,\n  PopupMenuEntriesProvider,\n  PopupMenuHeaderEntries,\n  PopupMenuProviderHeaderEntriesProvider,\n} from 'diagram-js/lib/features/popup-menu/PopupMenuProvider';\n\nexport default class WorkflowEditorCustomPopupMenuProviderInternalBusinessService\n  implements PopupMenuProvider\n{\n  static $inject = ['popupMenu'];\n  constructor(popupMenu: PopupMenu) {\n    popupMenu.registerProvider('bpmn-replace', this);\n  }\n\n  public getPopupMenuEntries(target: PopupMenuTarget & { type: string }): PopupMenuEntriesProvider {\n    return (entries) => {\n      if (target.type.includes('Task')) {\n        const entriesToKeep = ['replace-with-user-task', 'replace-with-service-task'];\n\n        this.removeUnwantedEntries(entries, entriesToKeep);\n        return entries;\n      }\n\n      if (target.type.includes('Gateway')) {\n        const entriesToKeep = ['replace-with-exclusive-gateway'];\n\n        this.removeUnwantedEntries(entries, entriesToKeep);\n        return entries;\n      }\n      return entries;\n    };\n  }\n\n  /**\n   * On the editor replace menu, some elements such as Tasks have a header,\n   * which we don't want.\n   */\n  public getPopupMenuHeaderEntries(\n    _target: PopupMenuTarget,\n  ): PopupMenuProviderHeaderEntriesProvider {\n    return (_entries) => {\n      // Library type is not good :/\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-ignore\n      return {} as PopupMenuHeaderEntries;\n    };\n  }\n\n  private removeUnwantedEntries(entries: PopupMenuEntries, entriesToKeep: string[]) {\n    Object.keys(entries).forEach((key) => {\n      if (!entriesToKeep.includes(key)) {\n        delete entries[key];\n      }\n    });\n  }\n}\n","import type BpmnModeler from 'bpmn-js';\nimport type { ConnectionImpl, ShapeImpl } from 'bpmn-js/custom';\nimport type { Parent } from 'bpmn-js/lib/model/Types';\nimport type WorkflowEditorBpmnInternalBusinessService from 'client/features/workflow-editor/services/internal-business/bpmn';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type Modeling from 'diagram-js/lib/features/modeling/Modeling';\n\nimport { notifyPropertyChange } from '@ember/object';\nimport Service, { service } from '@ember/service';\n\nimport {\n  BpmnEventTypeEnum,\n  BpmnGatewayTypeEnum,\n  BpmnTaskTypeEnum,\n} from 'client/features/workflow-editor/configuration';\nimport { inTransaction } from 'client/features/workflow-editor/services/internal-business/bpmn';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\nexport default class WorkflowEditorDuplicationInternalBusinessService extends Service {\n  @service private eventBus: EventBusService;\n  @service('feature/workflow-editor/internal-business/bpmn')\n  private readonly bpmnService: WorkflowEditorBpmnInternalBusinessService;\n\n  @inTransaction\n  public duplicateItems(modeler: BpmnModeler, itemsToDuplicate: ShapeImpl[]) {\n    const sortedItems = this.bpmnService.sortItemsFromStart(itemsToDuplicate);\n    const targetItem = sortedItems.lastObject;\n    const isTargetConnectionLinkTo = this.getFirstFlow(targetItem.outgoing)?.businessObject\n      .isLinkTo as boolean;\n    const newItems: ShapeImpl[] = [];\n    let lastItem = targetItem;\n\n    sortedItems.forEach((copiedItem) => {\n      const newItem = this.createDuplicateItem(modeler, copiedItem);\n      const connection = this.getFirstFlow(lastItem.outgoing);\n      const { target, source } = connection;\n      this.bpmnService.updateWorkflowItemProperties(modeler, connection, { isLinkTo: undefined });\n\n      this.reconnectItems(modeler, connection, newItem);\n      this.connectNewItemToTarget({\n        modeler,\n        copiedItem,\n        newItem,\n        target,\n        parent: connection.parent as Parent,\n        shouldSetIsLinkTo: copiedItem === sortedItems.lastObject && isTargetConnectionLinkTo,\n      });\n\n      this.createGatewayOutgoingsIfNecessary(modeler, copiedItem, newItem);\n      this.duplicateSubProcessChildrenIfNecessary(modeler, copiedItem, newItem);\n\n      this.notifyConnectionChanges(connection, source);\n\n      lastItem = newItem;\n      newItems.push(newItem);\n    });\n\n    return newItems;\n  }\n\n  private createDuplicateItem(modeler: BpmnModeler, copiedItem: ShapeImpl): ShapeImpl {\n    return this.bpmnService.createNewBpmnElement(\n      modeler,\n      copiedItem.type,\n      this.extractBOPropertiesWithoutId({\n        ...copiedItem.businessObject,\n        name: `${(copiedItem.businessObject as { name: string })?.name} (copy)`,\n        description: this.bpmnService.getDescription(copiedItem),\n      }),\n      copiedItem.parent as Parent,\n    );\n  }\n\n  /**\n   * Previous item is connected to the new item\n   */\n  private reconnectItems(modeler: BpmnModeler, connection: ConnectionImpl, newItem: ShapeImpl) {\n    const modeling = modeler.get<Modeling>('modeling');\n    this.bpmnService.updateWorkflowItemProperties(modeler, connection, { isLinkTo: undefined });\n    modeling.reconnectEnd(connection, newItem, { x: 0, y: 0 });\n  }\n\n  /**\n   * Connecting the new item to the old target\n   */\n  private connectNewItemToTarget({\n    modeler,\n    copiedItem,\n    newItem,\n    target,\n    parent,\n    shouldSetIsLinkTo,\n  }: {\n    modeler: BpmnModeler;\n    copiedItem: ShapeImpl;\n    newItem: ShapeImpl;\n    target: ShapeImpl;\n    parent: Parent;\n    shouldSetIsLinkTo: boolean;\n  }) {\n    const modeling = modeler.get<Modeling>('modeling');\n    modeling.connect(newItem, target, {\n      type: 'bpmn:SequenceFlow',\n      parent: parent,\n      businessObject: this.bpmnService.createBusinessObject(\n        modeler,\n        'bpmn:SequenceFlow',\n        this.extractBOPropertiesWithoutId({\n          ...this.getFirstFlow(copiedItem.outgoing).businessObject,\n          isLinkTo: shouldSetIsLinkTo ? true : undefined,\n        }),\n      ),\n    });\n  }\n\n  private notifyConnectionChanges(connection: ConnectionImpl, source: ShapeImpl) {\n    this.eventBus.trigger(EventBusEventsEnum.WorkflowEditorOutgoingUpdated, connection.source);\n    notifyPropertyChange(source, 'outgoing');\n    notifyPropertyChange(connection, 'target');\n  }\n\n  public getClosestGatewayOutgoing(\n    item: ShapeImpl,\n    previouslyVisitedItems?: Set<ShapeImpl>,\n  ): ConnectionImpl | null {\n    const visitedItems = previouslyVisitedItems || new Set<ShapeImpl>();\n    for (const connection of item.incoming) {\n      const { source } = connection;\n\n      if (!source || source.type === 'bpmn:StartEvent') {\n        return null;\n      } else if (source.type.includes('Gateway')) {\n        return connection;\n      } else if (visitedItems.has(connection)) {\n        return null;\n      }\n      visitedItems.add(connection);\n      return this.getClosestGatewayOutgoing(source, visitedItems);\n    }\n    return null;\n  }\n\n  private createGatewayOutgoingsIfNecessary(\n    modeler: BpmnModeler,\n    copiedItem: ShapeImpl,\n    newItem: ShapeImpl,\n  ) {\n    if (!copiedItem.type.includes('Gateway')) return;\n\n    copiedItem.outgoing\n      .filter(\n        (outgoing, outgoingIndex) =>\n          outgoing.type === 'bpmn:SequenceFlow' &&\n          // Don't need to create a placeholder for the first outgoing because it connects to the next item\n          outgoingIndex > 0,\n      )\n      .forEach((outgoing) => {\n        this.bpmnService.createPlaceholder(modeler, newItem, {\n          name: outgoing.businessObject?.name,\n          buttonColor: outgoing.businessObject?.buttonColor,\n        });\n      });\n  }\n\n  private duplicateSubProcessChildrenIfNecessary(\n    modeler: BpmnModeler,\n    copiedItem: ShapeImpl,\n    newGroup: ShapeImpl,\n  ) {\n    if (copiedItem.type !== 'bpmn:SubProcess') return;\n\n    const modeling = modeler.get<Modeling>('modeling');\n    const oldChildren = (copiedItem as unknown as { children: ShapeImpl[] }).children;\n    const newChildren = (newGroup as unknown as { children: ShapeImpl[] }).children;\n\n    const newStartEvent = newChildren.find((child) => child.type === 'bpmn:StartEvent');\n    const newEndEvent = newChildren.find((child) => child.type === 'bpmn:EndEvent');\n\n    const allowedItems: string[] = [\n      Object.values(BpmnTaskTypeEnum),\n      Object.values(BpmnEventTypeEnum),\n      Object.values(BpmnGatewayTypeEnum),\n    ].flat();\n\n    const childrenToDuplicate = oldChildren.filter(\n      (child) =>\n        allowedItems.includes(child.type)\n        || (child.type === 'bpmn:SequenceFlow' && child.businessObject?.isLinkTo),\n    );\n\n    if (childrenToDuplicate.length === 0) return;\n\n    modeling.removeElements([newEndEvent]);\n\n    const originalAndClone = new Map<ShapeImpl, ShapeImpl>();\n    const [startEvent, ...sortedChildren] =\n      this.bpmnService.sortItemsFromStart(childrenToDuplicate);\n\n    this.bpmnService.updateWorkflowItemProperties(\n      modeler,\n      newStartEvent,\n      this.extractBOPropertiesWithoutId(startEvent.businessObject),\n    );\n    originalAndClone.set(startEvent, newStartEvent);\n\n    sortedChildren.forEach((child) => {\n      if (child.businessObject?.isLinkTo && child.target && !originalAndClone.has(child.target)) {\n        const clonedSource = originalAndClone.get(child.source);\n        if (!clonedSource) return;\n\n        try {\n          modeling.connect(clonedSource, child.target, {\n            type: 'bpmn:SequenceFlow',\n            parent: newGroup,\n            businessObject: this.bpmnService.createBusinessObject(\n              modeler,\n              'bpmn:SequenceFlow',\n              this.extractBOPropertiesWithoutId({ ...child.businessObject, isLinkTo: true }),\n            ),\n          });\n        } catch {\n          this.bpmnService.createPlaceholder(modeler, clonedSource, {\n            name: child.businessObject?.name,\n            buttonColor: child.businessObject?.buttonColor,\n          });\n        }\n        return;\n      }\n\n      const sourceToLookup = child.businessObject?.isLinkTo\n        ? child.source\n        : this.bpmnService.getSingleFlow(child.incoming, true).source;\n      const previousItem = originalAndClone.get(sourceToLookup);\n\n      const clone = this.cloneAndConnectItem(\n        modeler,\n        child,\n        newGroup,\n        previousItem,\n        child.businessObject?.isLinkTo && originalAndClone.get(child.target),\n      );\n      originalAndClone.set(child, clone);\n    });\n  }\n\n  private cloneAndConnectItem(\n    modeler: BpmnModeler,\n    originalItem: ShapeImpl,\n    parent: Parent,\n    previousItemToConnect: ShapeImpl,\n    linkToTarget?: ShapeImpl,\n  ) {\n    const modeling = modeler.get<Modeling>('modeling');\n\n    const clonedItem =\n      linkToTarget\n      || this.bpmnService.createNewBpmnElement(\n        modeler,\n        originalItem.type,\n        this.extractBOPropertiesWithoutId({\n          ...originalItem.businessObject,\n          description: this.bpmnService.getDescription(originalItem),\n        }),\n        parent,\n      );\n\n    //  connect item with the previous one using the original flow business object\n    modeling.connect(previousItemToConnect, clonedItem, {\n      type: 'bpmn:SequenceFlow',\n      parent: parent,\n      businessObject: this.bpmnService.createBusinessObject(\n        modeler,\n        'bpmn:SequenceFlow',\n        this.extractBOPropertiesWithoutId(\n          linkToTarget\n            ? originalItem.businessObject\n            : this.bpmnService.getSingleFlow(originalItem.incoming, true).businessObject,\n        ),\n      ),\n    });\n\n    return clonedItem;\n  }\n\n  private extractBOPropertiesWithoutId(businessObject: Record<string, unknown>) {\n    return this.bpmnService.extractBusinessObjectProperties({\n      ...businessObject,\n      id: undefined,\n    });\n  }\n\n  private getFirstFlow(connections: ConnectionImpl[]) {\n    return connections.find((connection) => connection.type === 'bpmn:SequenceFlow');\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type InboxModel from 'client/data/models/inbox';\nimport type McpServerConfigModel from 'client/data/models/mcp-server-config';\nimport type WorkflowModel from 'client/data/models/workflow';\n\nimport Service from '@ember/service';\n\nimport { InboxTypeEnum } from 'client/data/models/inbox';\nimport {\n  BpmnEventTypeEnum,\n  BpmnGatewayTypeEnum,\n  type BpmnItemType,\n  BpmnServiceTaskAlternativeEnum,\n  BpmnTaskTypeEnum,\n} from 'client/features/workflow-editor/configuration';\nimport { getRandomValueInArray } from 'client/utils/array-utils';\n\nexport interface WorkflowOptionForCallActivity {\n  id: string;\n  displayName: string;\n  collectionName: string;\n}\n\nexport default class WorkflowEditorManagerInternalBusinessService extends Service {\n  public getInboxesForEscalation(inboxes: InboxModel[], currentCollection: CollectionModel) {\n    return inboxes.filter(\n      (inbox) => inbox.collection === currentCollection && inbox.type === InboxTypeEnum.Workflow,\n    );\n  }\n\n  public getWorkflowsForCallActivity(\n    collections: CollectionModel[],\n  ): WorkflowOptionForCallActivity[] {\n    const allWorkflows: WorkflowOptionForCallActivity[] = [];\n\n    for (const collection of collections) {\n      const workflows: WorkflowModel[] = collection.workflows?.toArray() || [];\n      for (const workflow of workflows) {\n        allWorkflows.push({\n          id: workflow.id,\n          displayName: `${workflow.name} (${collection.displayName})`,\n          collectionName: collection.name,\n        });\n      }\n    }\n\n    return allWorkflows;\n  }\n\n  public getDescriptionPlaceholderForElement(\n    currentCollection: CollectionModel,\n    {\n      type,\n      alternative,\n      mcpServer,\n    }: {\n      type: BpmnItemType;\n      alternative?: BpmnServiceTaskAlternativeEnum;\n      mcpServer?: McpServerConfigModel;\n    },\n  ) {\n    if (type === BpmnTaskTypeEnum.ServiceTask) {\n      const collectionName = currentCollection.singularizedDisplayName;\n      const actionName =\n        getRandomValueInArray(currentCollection.customActions.toArray())?.displayName || 'Refund';\n      const fieldName =\n        getRandomValueInArray(\n          currentCollection.fields.filter(\n            (field) => !field.isPrimaryKey && !field.isRelationship && !field.isEmbedded,\n          ),\n        )?.displayName || 'A field';\n      const relationshipName = getRandomValueInArray(\n        currentCollection.fields.filter((field) => field.isRelationship),\n      )?.displayName;\n\n      switch (alternative) {\n        case BpmnServiceTaskAlternativeEnum.TriggerAction:\n          return this.formatPlaceholder(\n            `Trigger the ${actionName} action on the ${collectionName}`,\n          );\n        case BpmnServiceTaskAlternativeEnum.GetData:\n          return this.formatPlaceholder(`Check the ${fieldName} on the ${collectionName}`);\n        case BpmnServiceTaskAlternativeEnum.UpdateData:\n          return this.formatPlaceholder(\n            `Update the value of the ${fieldName} field on the ${collectionName}`,\n          );\n        case BpmnServiceTaskAlternativeEnum.LoadRelatedRecord:\n          return relationshipName\n            ? this.formatPlaceholder(`Select the ${collectionName}'s ${relationshipName}`)\n            : undefined;\n        case BpmnServiceTaskAlternativeEnum.McpServer:\n          return this.formatPlaceholder(\n            `What needs to be done on ${mcpServer?.serverName || 'the MCP Server'}?`,\n          );\n      }\n    } else if (type === BpmnTaskTypeEnum.UserTask) {\n      return this.formatPlaceholder('What should the user do to perform this step?');\n    } else if (type === BpmnGatewayTypeEnum.ExclusiveGateway) {\n      return this.formatPlaceholder('Is the Amount higher than $500?');\n    } else if (type === BpmnEventTypeEnum.EndEvent) {\n      return this.formatPlaceholder(\n        \"Congrats, you've completed this workflow! You may now close it.\",\n      );\n    }\n\n    return undefined;\n  }\n\n  private formatPlaceholder(placeholder: string) {\n    return `e.g. \"${placeholder}\"`;\n  }\n}\n","import type { ConnectionImpl, ShapeImpl } from 'bpmn-js/custom';\nimport type { CommandContext } from 'diagram-js/lib/command/CommandStack';\n\nexport interface ReorderGatewayOptionsContext extends CommandContext {\n  gateway: ShapeImpl;\n  newOrder: string[];\n  oldOrder?: string[];\n}\n\n/**\n * Command handler for reordering gateway outgoing connections.\n * Supports undo/redo by storing the previous order.\n */\nexport default class WorkflowEditorReorderGatewayOptionsHandlerInternalBusinessService {\n  execute(context: ReorderGatewayOptionsContext): ShapeImpl[] {\n    const { gateway, newOrder } = context;\n\n    // Store old order for undo\n    context.oldOrder = gateway.outgoing.map((o: ConnectionImpl) => o.id);\n\n    this.applyOrder(gateway, newOrder);\n\n    return [gateway];\n  }\n\n  revert(context: ReorderGatewayOptionsContext): ShapeImpl[] {\n    const { gateway, oldOrder } = context;\n\n    if (oldOrder) {\n      this.applyOrder(gateway, oldOrder);\n    }\n\n    return [gateway];\n  }\n\n  private applyOrder(gateway: ShapeImpl, order: string[]): void {\n    // Reorder gateway.outgoing\n    const outgoingsMap = new Map(gateway.outgoing.map((o: ConnectionImpl) => [o.id, o]));\n    const reorderedOutgoings = order.map((id) => outgoingsMap.get(id)).filter(Boolean);\n\n    gateway.outgoing.length = 0;\n    gateway.outgoing.push(...reorderedOutgoings);\n\n    // Also update businessObject.outgoing if it exists\n    if (gateway.businessObject?.outgoing) {\n      const boOutgoing = gateway.businessObject.outgoing as { id: string }[];\n      const boOutgoingsMap = new Map(boOutgoing.map((o) => [o.id, o]));\n      const reorderedBoOutgoings = order.map((id) => boOutgoingsMap.get(id)).filter(Boolean);\n\n      boOutgoing.length = 0;\n      boOutgoing.push(...reorderedBoOutgoings);\n    }\n  }\n}\n\nexport const REORDER_GATEWAY_OPTIONS_COMMAND = 'gateway.reorderOptions';\n","import type { ConnectionImpl, ShapeImpl } from 'bpmn-js/custom';\nimport type { BpmnItemType } from 'client/features/workflow-editor/configuration';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport {\n  BpmnGatewayTypeEnum,\n  CONNECTION_DROPPABLE_BPMN_TYPES,\n  DROPPABLE_BPMN_TYPES,\n  isLinkToElement,\n} from 'client/features/workflow-editor/configuration';\n\ntype DraggedElement = WorkflowEditorFeatureState['draggedElement'];\ntype DraggedElements = WorkflowEditorFeatureState['draggedElements'];\n\nexport function isConnectionDropDisabled(\n  outgoing: ConnectionImpl | undefined,\n  draggedElement: DraggedElement,\n  draggedElements: DraggedElements,\n): boolean {\n  const isLinkToError = outgoing ? isLinkToElement(outgoing) : false;\n\n  return (\n    !outgoing\n    || (Boolean(outgoing.target?.businessObject?.isPlaceholder) && !isLinkToError)\n    || !draggedElement\n    || !CONNECTION_DROPPABLE_BPMN_TYPES.includes(draggedElement.type as BpmnItemType) ||\n    // If it's a gateway, it needs to have at least one placeholder inside\n    (draggedElement.type === BpmnGatewayTypeEnum.ExclusiveGateway\n      && !draggedElements?.some((child) =>\n        Boolean((child.businessObject as Record<string, unknown> | undefined)?.isPlaceholder),\n      )\n      && 'id' in draggedElement\n      && Boolean(draggedElement.id))\n    || (draggedElements && outgoing && draggedElements.includes(outgoing))\n    || draggedElement === outgoing.source\n    || draggedElement === outgoing.target\n  );\n}\n\nexport function isPlaceholderDropDisabled(\n  placeholderElement: ShapeImpl,\n  draggedElement: DraggedElement,\n  draggedElements: DraggedElements,\n): boolean {\n  // No dragged element\n  if (!draggedElement) return true;\n\n  // Check if placeholder is in dragged elements (gateway children)\n  if (draggedElements?.includes(placeholderElement)) return true;\n\n  // Check valid types\n  if (!DROPPABLE_BPMN_TYPES.includes(draggedElement.type as BpmnItemType)) return true;\n\n  // Prevent auto-reference (dropping on self or connected elements)\n  const incomingConnection = placeholderElement.incoming?.[0];\n  const isSourceOfPlaceholder = incomingConnection && draggedElement === incomingConnection.source;\n\n  return isSourceOfPlaceholder || draggedElement === placeholderElement;\n}\n","import type { BpmnElement, ShapeImpl } from 'bpmn-js/custom';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorBpmnInternalBusinessService from 'client/features/workflow-editor/services/internal-business/bpmn';\n\nimport Service, { service } from '@ember/service';\n\nimport {\n  BpmnEventTypeEnum,\n  BpmnGatewayTypeEnum,\n  BpmnServiceTaskAlternativeEnum,\n  BpmnTaskTypeEnum,\n} from 'client/features/workflow-editor/configuration';\nimport { WorkflowEditorErrorTypeEnum } from 'client/features/workflow-editor/state';\n\nexport interface ElementWithError {\n  type: WorkflowEditorErrorTypeEnum;\n  element: BpmnElement;\n}\n\nexport default class WorkflowEditorErrorHandlingInternalFeatureService extends Service {\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n  @service('feature/workflow-editor/internal-business/bpmn')\n  private bpmnService: WorkflowEditorBpmnInternalBusinessService;\n\n  public getElementError(element: ShapeImpl): ElementWithError | null {\n    if (this.isEscalationElementInError(element)) {\n      return {\n        type: WorkflowEditorErrorTypeEnum.MissingEscalationInbox,\n        element,\n      };\n    } else if (this.isGatewayNameMissing(element)) {\n      return {\n        type: WorkflowEditorErrorTypeEnum.MissingGatewayName,\n        element,\n      };\n    } else if (this.isGatewayElementInError(element)) {\n      return {\n        type: WorkflowEditorErrorTypeEnum.MissingGatewayOptionName,\n        element,\n      };\n    } else if (this.isSubBpmnElementInError(element)) {\n      return {\n        type: WorkflowEditorErrorTypeEnum.MissingSubWorkflow,\n        element,\n      };\n    } else if (this.isMcpServerElementInError(element)) {\n      return {\n        type: WorkflowEditorErrorTypeEnum.MissingMcpServer,\n        element,\n      };\n    } else if (element.businessObject?.isPlaceholder) {\n      const incomingConnection = this.bpmnService.getSingleFlow(element.incoming);\n      if (incomingConnection?.businessObject?.isLinkTo) {\n        return {\n          type: WorkflowEditorErrorTypeEnum.MissingLinkToTarget,\n          element: incomingConnection,\n        };\n      }\n\n      return incomingConnection\n        ? {\n            type: WorkflowEditorErrorTypeEnum.MissingEndEvent,\n            element: incomingConnection,\n          }\n        : null;\n    }\n  }\n\n  public isEscalationElementInError(element: BpmnElement): boolean {\n    if (element.type !== BpmnEventTypeEnum.EscalationTask) {\n      return false;\n    }\n    const inboxes = this.workflowEditorFeature.getInboxesForEscalation();\n\n    const inboxId = element.businessObject?.inboxId;\n    return !inboxId || !inboxes.find((inbox) => inbox.id === inboxId);\n  }\n\n  public isGatewayNameMissing(element: BpmnElement): boolean {\n    if (element.type !== BpmnGatewayTypeEnum.ExclusiveGateway) {\n      return false;\n    }\n\n    return !element.businessObject?.name;\n  }\n\n  public isGatewayElementInError(element: BpmnElement): boolean {\n    if (element.type !== BpmnGatewayTypeEnum.ExclusiveGateway) {\n      return false;\n    }\n\n    return Boolean(\n      element.outgoing?.some(\n        (outgoing) => outgoing.type === 'bpmn:SequenceFlow' && !outgoing.businessObject?.name,\n      ),\n    );\n  }\n\n  public isSubBpmnElementInError(element: BpmnElement): boolean {\n    if (element.type !== BpmnTaskTypeEnum.CallActivity) {\n      return false;\n    }\n\n    const workflows = this.workflowEditorFeature.getWorkflowsForCallActivity();\n\n    const subWorkflowId = element.businessObject?.calledElement;\n    return !subWorkflowId || !workflows.find((workflow) => workflow.id === subWorkflowId);\n  }\n\n  public isMcpServerElementInError(element: BpmnElement): boolean {\n    if (element.type !== BpmnTaskTypeEnum.ServiceTask) {\n      return false;\n    }\n    if (element.businessObject?.alternative !== BpmnServiceTaskAlternativeEnum.McpServer) {\n      return false;\n    }\n\n    const mcpServerId = element.businessObject?.mcpServerId;\n    if (!mcpServerId) {\n      return true;\n    }\n\n    const mcpServers = this.workflowEditorFeature.getMCPServersForValidation();\n    return !mcpServers.some((server) => server.id === mcpServerId);\n  }\n}\n","import type { BpmnElement, ConnectionImpl, ShapeImpl } from 'bpmn-js/custom';\nimport type McpServerConfigModel from 'client/data/models/mcp-server-config';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type { FlatWorkflowItem } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\nimport type WorkflowEditorSubProcessInternalFeatureService from 'client/features/workflow-editor/services/internal-feature/sub-process';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport Service, { service } from '@ember/service';\n\nexport interface CardState {\n  isSelected: boolean;\n  isDragged: boolean;\n  hasError: boolean;\n  isInBackground: boolean;\n  isDisabled: boolean;\n  isLinkToTarget: boolean;\n}\n\nexport default class WorkflowEditorFlatRendererCardUiInternalService extends Service {\n  @service('feature/workflow-editor')\n  private workflowEditorFeature: WorkflowEditorFeatureService;\n\n  @service('feature/workflow-editor/state')\n  private workflowEditorState: WorkflowEditorFeatureState;\n\n  @service('feature/workflow-editor/internal-feature/sub-process')\n  private subProcessService: WorkflowEditorSubProcessInternalFeatureService;\n\n  getCardState(item: FlatWorkflowItem): CardState {\n    const itemToRender = this.getItemToRender(item);\n\n    return {\n      isSelected: this.isItemSelected(itemToRender),\n      isDragged: this.isItemDragged(itemToRender),\n      hasError: this.hasItemError(itemToRender),\n      isInBackground: this.isItemInBackground(itemToRender, item.flow),\n      isDisabled: this.isItemDisabled(itemToRender),\n      isLinkToTarget: this.isLinkToTarget(itemToRender),\n    };\n  }\n\n  private getItemToRender(item: FlatWorkflowItem): BpmnElement {\n    return item.flow?.businessObject?.isLinkTo ? item.flow : item.element;\n  }\n\n  isItemSelected(item: BpmnElement): boolean {\n    return this.workflowEditorState.selectedItems.includes(item);\n  }\n\n  isItemDragged(item: BpmnElement): boolean {\n    return (\n      this.workflowEditorState.draggedElement === item\n      || this.workflowEditorState.draggedElements?.includes(item) === true\n    );\n  }\n\n  hasItemError(item: BpmnElement): boolean {\n    return this.workflowEditorState.itemsInError.some((errorItem) => errorItem.element === item);\n  }\n\n  isItemInBackground(item: BpmnElement, flow?: ConnectionImpl): boolean {\n    const hoveredOrSelected = this.workflowEditorState.hoveredOrSelectedItem;\n\n    const isCurrentLinkToWithTarget =\n      this.workflowEditorFeature.isLinkToElement(hoveredOrSelected)\n      && !hoveredOrSelected?.target?.businessObject?.isPlaceholder;\n\n    const isTargetOfLinkTo = hoveredOrSelected?.incoming?.some((incoming) =>\n      this.workflowEditorFeature.isLinkToElement(incoming),\n    );\n\n    if (!isCurrentLinkToWithTarget && !isTargetOfLinkTo) {\n      return false;\n    }\n\n    if (hoveredOrSelected === item) {\n      return false;\n    }\n\n    if (hoveredOrSelected === flow) {\n      return false;\n    }\n\n    return hoveredOrSelected?.target !== item;\n  }\n\n  isItemDisabled(item: BpmnElement): boolean {\n    return this.workflowEditorState.isLinkToSelectModeOn && item?.businessObject?.isLinkTo === true;\n  }\n\n  isLinkToTarget(item: BpmnElement): boolean {\n    return this.workflowEditorState.currentWorkflowItem?.target === item;\n  }\n\n  selectItem(item: BpmnElement, event: MouseEvent): void {\n    this.workflowEditorFeature.selectElement(item, event);\n  }\n\n  startDrag(item: BpmnElement): void {\n    this.workflowEditorFeature.startDrag(item);\n  }\n\n  setHovered(item: BpmnElement | null): void {\n    this.workflowEditorFeature.setHoveredElement(item);\n  }\n\n  navigateToSubProcess(item: ShapeImpl): void {\n    this.subProcessService.setCurrentSubProcess(item);\n  }\n\n  isInSubProcess(): boolean {\n    return this.workflowEditorFeature.isInSubProcess();\n  }\n\n  async loadMcpServerUrl(mcpServerId: string): Promise<string | null> {\n    try {\n      const mcpServer = (await this.workflowEditorFeature.getMCPServerById(\n        mcpServerId,\n        false,\n      )) as McpServerConfigModel | null;\n      return mcpServer?.serverUrl ?? null;\n    } catch {\n      return null;\n    }\n  }\n}\n","import type { ConnectionImpl } from 'bpmn-js/custom';\nimport type {\n  ConnectionPath,\n  FlatWorkflowItem,\n} from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport Service, { service } from '@ember/service';\n\nimport { BpmnGatewayTypeEnum } from 'client/features/workflow-editor/configuration';\nimport {\n  LAYOUT,\n  getItemBottomY,\n} from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\n\nexport default class WorkflowEditorFlatRendererConnectionCalculatorService extends Service {\n  @service('feature/workflow-editor/state')\n  private workflowEditorState: WorkflowEditorFeatureState;\n\n  filterVisibleConnections(\n    connections: ConnectionPath[],\n    visibleIds: Set<string>,\n  ): ConnectionPath[] {\n    return connections.filter((c) => visibleIds.has(c.fromId) || visibleIds.has(c.toId));\n  }\n\n  private isGateway(item: FlatWorkflowItem): boolean {\n    return item.element?.type === BpmnGatewayTypeEnum.ExclusiveGateway;\n  }\n\n  private getItemBottomY(item: FlatWorkflowItem): number {\n    return getItemBottomY(item, this.workflowEditorState.zoomScale);\n  }\n\n  private getBranchesCollapseY(fromBottomY: number, parent: FlatWorkflowItem): number {\n    if (this.isGateway(parent)) {\n      return fromBottomY + LAYOUT.VERTICAL_SEGMENT / 2;\n    }\n    return fromBottomY + LAYOUT.VERTICAL_SEGMENT;\n  }\n\n  calculateConnections(items: FlatWorkflowItem[]): ConnectionPath[] {\n    const paths: ConnectionPath[] = [];\n    const itemMap = new Map<string, FlatWorkflowItem>();\n    for (const item of items) itemMap.set(item.id, item);\n\n    const allChildrenByParent = new Map<string, FlatWorkflowItem[]>();\n    for (const item of items) {\n      if (!item.parentId) continue;\n      const parent = itemMap.get(item.parentId);\n      if (!parent || parent.isHidden) continue;\n\n      let children = allChildrenByParent.get(item.parentId);\n      if (!children) {\n        children = [];\n        allChildrenByParent.set(item.parentId, children);\n      }\n      children.push(item);\n    }\n\n    const branchesCollapseAssigned = new Set<string>();\n\n    for (const item of items) {\n      if (!item.parentId || item.isHidden) continue;\n      const parent = itemMap.get(item.parentId);\n      if (!parent || parent.isHidden) continue;\n\n      const path = this.createPath(parent, item, item.flow, item.collapseId);\n      if (!path) continue;\n\n      // Attach global branches collapse button to the first sibling connection\n      const allSiblings = allChildrenByParent.get(item.parentId);\n      const isMultiBranch = allSiblings && allSiblings.length > 1;\n\n      if (isMultiBranch && !branchesCollapseAssigned.has(item.parentId)) {\n        branchesCollapseAssigned.add(item.parentId);\n        this.attachBranchesCollapse(path, parent, allSiblings);\n      }\n\n      paths.push(path);\n    }\n\n    // Trunk connections for fully-collapsed multi-branch parents\n    for (const [parentId, allChildren] of allChildrenByParent) {\n      const parent = itemMap.get(parentId);\n      if (!parent || parent.isHidden || allChildren.length <= 1) continue;\n\n      const branchesCollapseId = `${parent.element.id}-branches`;\n      const isBranchesCollapsed = this.workflowEditorState.isStepCollapsed(branchesCollapseId);\n\n      if (isBranchesCollapsed && !branchesCollapseAssigned.has(parentId)) {\n        branchesCollapseAssigned.add(parentId);\n        const trunkPath = this.createTrunkPath(parent, allChildren, branchesCollapseId);\n        if (trunkPath) paths.push(trunkPath);\n      }\n    }\n\n    return paths;\n  }\n\n  private attachBranchesCollapse(\n    path: ConnectionPath,\n    parent: FlatWorkflowItem,\n    siblings: FlatWorkflowItem[],\n  ): void {\n    const branchesCollapseId = `${parent.element.id}-branches`;\n    const fromBottomY = this.getItemBottomY(parent);\n\n    path.branchesCollapseId = branchesCollapseId;\n    path.branchesCollapseY = this.getBranchesCollapseY(fromBottomY, parent);\n    path.isBranchesCollapsed = this.workflowEditorState.isStepCollapsed(branchesCollapseId);\n    path.branchConnections = siblings.filter((s) => s.flow).map((s) => s.flow!);\n  }\n\n  private createTrunkPath(\n    parent: FlatWorkflowItem,\n    allChildren: FlatWorkflowItem[],\n    branchesCollapseId: string,\n  ): ConnectionPath | null {\n    const cx = parent.x + parent.width / 2;\n    const fromBottomY = this.getItemBottomY(parent);\n    const collapseY = this.getBranchesCollapseY(fromBottomY, parent);\n\n    const path: ConnectionPath = {\n      id: `${parent.id}-trunk`,\n      fromId: parent.id,\n      toId: `${parent.id}-branches`,\n      d: `M ${cx} ${fromBottomY} L ${cx} ${collapseY}`,\n      type: 'straight',\n      bounds: {\n        minX: cx,\n        maxX: cx,\n        minY: Math.min(fromBottomY, collapseY),\n        maxY: Math.max(fromBottomY, collapseY),\n      },\n      cornerX: cx,\n      cornerY: collapseY,\n      collapseX: cx,\n      collapseY,\n      branchesCollapseId,\n      branchesCollapseY: collapseY,\n      isBranchesCollapsed: true,\n      branchConnections: allChildren.filter((c) => c.flow).map((c) => c.flow!),\n      isCollapsed: false,\n      hasCollapseError: false,\n    };\n\n    return this.isValidPath(path) ? path : null;\n  }\n\n  private createPath(\n    from: FlatWorkflowItem,\n    to: FlatWorkflowItem,\n    flow: ConnectionImpl | undefined,\n    collapseId: string,\n  ): ConnectionPath | null {\n    const fromCX = from.x + from.width / 2;\n    const fromBottomY = this.getItemBottomY(from);\n    const toCX = to.x + to.width / 2;\n    const toTopY = to.y;\n\n    const isCollapsed = this.workflowEditorState.isStepCollapsed(collapseId);\n    const hasCollapseError = this.workflowEditorState.errorCollapseIds.has(collapseId);\n    const hasBranchLabel = Boolean(to.branchLabel);\n\n    let d: string;\n    let type: ConnectionPath['type'];\n    let cornerX: number;\n    let cornerY: number;\n    let collapseX: number;\n    let collapseY: number;\n\n    if (Math.abs(fromCX - toCX) < 1) {\n      // Straight vertical line\n      type = 'straight';\n      cornerX = fromCX;\n      collapseX = fromCX;\n\n      if (hasBranchLabel) {\n        cornerY =\n          fromBottomY + LAYOUT.VERTICAL_SEGMENT + LAYOUT.CORNER_RADIUS + LAYOUT.LABEL_CORNER_GAP;\n        collapseY = (cornerY + LAYOUT.BRANCH_LABEL_HEIGHT + toTopY) / 2;\n      } else {\n        cornerY = fromBottomY + (toTopY - fromBottomY) * 0.3;\n        collapseY = (fromBottomY + toTopY) / 2;\n      }\n\n      const endY = isCollapsed ? collapseY : toTopY;\n      d = `M ${fromCX} ${fromBottomY} L ${fromCX} ${endY}`;\n    } else {\n      // Corner path with rounded bends\n      const r = LAYOUT.CORNER_RADIUS;\n      const goingRight = toCX > fromCX;\n\n      type = goingRight ? 'corner-right' : 'corner-left';\n      cornerX = toCX;\n      collapseX = toCX;\n\n      const bendY = fromBottomY + LAYOUT.VERTICAL_SEGMENT;\n      const cornerEndY = bendY + r;\n      cornerY = cornerEndY + LAYOUT.LABEL_CORNER_GAP;\n\n      if (hasBranchLabel) {\n        collapseY = (cornerY + LAYOUT.BRANCH_LABEL_HEIGHT + toTopY) / 2;\n      } else {\n        collapseY = (cornerEndY + toTopY) / 2;\n      }\n\n      const dir = goingRight ? 1 : -1;\n      d = `M ${fromCX} ${fromBottomY} `;\n      d += `L ${fromCX} ${bendY - r} `;\n      d += `Q ${fromCX} ${bendY}, ${fromCX + r * dir} ${bendY} `;\n      d += `L ${toCX - r * dir} ${bendY} `;\n      d += `Q ${toCX} ${bendY}, ${toCX} ${cornerEndY} `;\n      d += `L ${toCX} ${isCollapsed ? collapseY : toTopY}`;\n    }\n\n    const effectiveToY = isCollapsed ? collapseY : toTopY;\n    const minX = Math.min(fromCX, toCX, cornerX, collapseX);\n    const maxX = Math.max(fromCX, toCX, cornerX, collapseX);\n    const minY = Math.min(fromBottomY, effectiveToY, cornerY, collapseY);\n    const maxY = Math.max(fromBottomY, effectiveToY, cornerY, collapseY);\n    const marginX = Math.max(LAYOUT.CORNER_RADIUS, LAYOUT.DROP_ZONE_WIDTH / 2);\n\n    const path: ConnectionPath = {\n      id: `${from.id}-${to.id}`,\n      fromId: from.id,\n      toId: to.id,\n      d,\n      type,\n      bounds: { minX: minX - marginX, maxX: maxX + marginX, minY, maxY },\n      cornerX,\n      cornerY,\n      collapseX,\n      collapseY,\n      branchLabel: to.branchLabel,\n      branchLabelColor: to.branchLabelColor,\n      branchLabelHasError: to.branchLabelHasError,\n      collapseElementId: collapseId,\n      flowConnection: flow,\n      isCollapsed,\n      hasCollapseError,\n    };\n\n    return this.isValidPath(path) ? path : null;\n  }\n\n  private isValidPath(path: ConnectionPath): boolean {\n    const nums = [\n      path.bounds.minX,\n      path.bounds.maxX,\n      path.bounds.minY,\n      path.bounds.maxY,\n      path.cornerX,\n      path.cornerY,\n      path.collapseX,\n      path.collapseY,\n    ];\n\n    // Keep the SVG layer resilient: never emit NaN/Infinity into `d` or styles.\n    return (\n      nums.every((n) => Number.isFinite(n)) && typeof path.d === 'string' && !path.d.includes('NaN')\n    );\n  }\n}\n","import type {\n  ConnectionPath,\n  ViewportState,\n} from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\n\nimport Service from '@ember/service';\n\nimport { LAYOUT } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\nimport { computeViewportBounds } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/viewport-bounds';\n\n/** 2D bucket index for O(k) connection viewport queries. */\nexport default class WorkflowEditorFlatRendererConnectionVirtualizerService extends Service {\n  private static readonly BUCKET_SIZE_PX = 800;\n\n  private indexedConnectionsRef: ConnectionPath[] | null = null;\n  private indexedConnectionsLength = -1;\n  private bucketToIndices = new Map<string, number[]>();\n\n  private static bucketKey(bx: number, by: number): string {\n    return `${bx},${by}`;\n  }\n\n  private ensureIndex(connections: ConnectionPath[]): void {\n    // Rebuild when:\n    // - the array reference changes (common immutable updates)\n    // - the same array reference is mutated (push/pop/splice) and length changes\n    if (\n      this.indexedConnectionsRef === connections\n      && this.indexedConnectionsLength === connections.length\n    ) {\n      return;\n    }\n\n    this.indexedConnectionsRef = connections;\n    this.indexedConnectionsLength = connections.length;\n    this.bucketToIndices.clear();\n\n    const bs = WorkflowEditorFlatRendererConnectionVirtualizerService.BUCKET_SIZE_PX;\n\n    for (let i = 0; i < connections.length; i++) {\n      const { minX, maxX, minY, maxY } = connections[i].bounds;\n\n      for (let bx = Math.floor(minX / bs); bx <= Math.floor(maxX / bs); bx++) {\n        for (let by = Math.floor(minY / bs); by <= Math.floor(maxY / bs); by++) {\n          const key = WorkflowEditorFlatRendererConnectionVirtualizerService.bucketKey(bx, by);\n          let list = this.bucketToIndices.get(key);\n          if (!list) {\n            list = [];\n            this.bucketToIndices.set(key, list);\n          }\n          list.push(i);\n        }\n      }\n    }\n  }\n\n  getVisibleConnections(connections: ConnectionPath[], viewport: ViewportState): ConnectionPath[] {\n    if (connections.length === 0) return [];\n\n    this.ensureIndex(connections);\n\n    const { left, right, top, bottom } = computeViewportBounds(\n      viewport,\n      LAYOUT.VIRTUALIZATION_BUFFER,\n    );\n\n    const bs = WorkflowEditorFlatRendererConnectionVirtualizerService.BUCKET_SIZE_PX;\n    const candidateIndices: number[] = [];\n    const seen = new Set<number>();\n\n    for (let bx = Math.floor(left / bs); bx <= Math.floor(right / bs); bx++) {\n      for (let by = Math.floor(top / bs); by <= Math.floor(bottom / bs); by++) {\n        const key = WorkflowEditorFlatRendererConnectionVirtualizerService.bucketKey(bx, by);\n        const indices = this.bucketToIndices.get(key);\n        if (!indices) continue;\n        for (const idx of indices) {\n          if (!seen.has(idx)) {\n            seen.add(idx);\n            candidateIndices.push(idx);\n          }\n        }\n      }\n    }\n\n    if (candidateIndices.length === 0) return [];\n\n    candidateIndices.sort((a, b) => a - b);\n\n    const visible: ConnectionPath[] = [];\n    for (const i of candidateIndices) {\n      const { minX, maxX, minY, maxY } = connections[i].bounds;\n      if (maxX < left || minX > right || maxY < top || minY > bottom) continue;\n      visible.push(connections[i]);\n    }\n\n    return visible;\n  }\n}\n","import type ApplicationInstance from '@ember/application/instance';\nimport type { ConnectionImpl, ShapeImpl } from 'bpmn-js/custom';\nimport type WorkflowEditorFlatRendererHeightCalculatorService from 'client/features/workflow-editor/services/internal-feature/flat-renderer/height-calculator';\nimport type { FlatWorkflowItem } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport { getOwner } from '@ember/application';\nimport Service, { service } from '@ember/service';\n\nimport {\n  type BpmnItemType,\n  getBpmnItemByAlternativeOrType,\n} from 'client/features/workflow-editor/configuration';\nimport { LAYOUT } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\n\nexport default class WorkflowEditorFlatRendererFlattenerService extends Service {\n  @service('feature/workflow-editor/state')\n  private workflowEditorState: WorkflowEditorFeatureState;\n\n  private _heightCalculator: WorkflowEditorFlatRendererHeightCalculatorService | null = null;\n\n  private get heightCalculator(): WorkflowEditorFlatRendererHeightCalculatorService {\n    if (!this._heightCalculator) {\n      // eslint-disable-next-line ember/no-side-effects -- Manual lookup to break a circular dependency: @service would create a cycle between flattener and height-calculator\n      this._heightCalculator = (getOwner(this) as ApplicationInstance).lookup(\n        'service:feature/workflow-editor/internal-feature/flat-renderer/height-calculator',\n      ) as WorkflowEditorFlatRendererHeightCalculatorService;\n    }\n    return this._heightCalculator;\n  }\n\n  private getDisplayNameForHeight(element: ShapeImpl, flow?: ConnectionImpl): string {\n    const isLinkTo = flow?.businessObject?.isLinkTo === true;\n    const itemType = (isLinkTo ? flow?.type : element.type) as BpmnItemType;\n    const defaultName = getBpmnItemByAlternativeOrType(itemType)?.name;\n\n    if (isLinkTo) {\n      const targetName = element.businessObject?.name as string | undefined;\n      const isPlaceholder = element.businessObject?.isPlaceholder === true;\n      return targetName && !isPlaceholder ? `Go to \"${targetName}\"` : defaultName ?? 'Link To';\n    }\n\n    const currentName = element.businessObject?.name as string | undefined;\n    return currentName || defaultName || 'Unnamed';\n  }\n\n  flatten(rootElement: ShapeImpl | null | undefined): FlatWorkflowItem[] {\n    if (!rootElement) return [];\n\n    const result: FlatWorkflowItem[] = [];\n    const visited = new Set<string>();\n    const { reachable, collapsedTargets } = this.computeVisibilitySets(rootElement);\n\n    this.walkTree(\n      rootElement,\n      null,\n      null,\n      0,\n      0,\n      result,\n      visited,\n      false,\n      reachable,\n      collapsedTargets,\n    );\n\n    return result;\n  }\n\n  private walkTree(\n    element: ShapeImpl,\n    parentId: string | null,\n    flow: ConnectionImpl | null,\n    depth: number,\n    branchIndex: number,\n    result: FlatWorkflowItem[],\n    visited: Set<string>,\n    isHidden: boolean,\n    reachable: Set<string>,\n    collapsedTargets: Set<string>,\n    isInMultiBranch = false,\n  ): void {\n    const isLinkToFlow = flow?.businessObject?.isLinkTo === true;\n    const alreadyVisited = visited.has(element.id);\n\n    // LinkTo flows still emit an item even if the target was visited (but won't recurse)\n    if (alreadyVisited && !isLinkToFlow) return;\n\n    const itemId = isLinkToFlow ? flow?.id : element.id;\n    if (!itemId) return;\n\n    const isReachable = reachable.has(itemId);\n    const isCollapsedTarget = collapsedTargets.has(itemId);\n\n    if (isHidden && isReachable) return;\n\n    // Only mark visited for canonical (non-LinkTo) traversal\n    if (!alreadyVisited && !isLinkToFlow) visited.add(element.id);\n\n    const elementIsPlaceholder = this.isPlaceholder(element);\n    const isPlaceholder = elementIsPlaceholder && !isLinkToFlow;\n    const collapseId = this.getCollapseId(element, flow);\n    const isCollapsed = this.workflowEditorState.isStepCollapsed(collapseId);\n\n    const rawBranchLabel = isInMultiBranch\n      ? (flow?.businessObject?.name as string | undefined)\n      : undefined;\n    const branchLabel = isInMultiBranch ? rawBranchLabel || 'Missing name' : undefined;\n    const branchLabelHasError = isInMultiBranch ? !rawBranchLabel : false;\n    const branchLabelColor = isInMultiBranch\n      ? (flow?.businessObject?.buttonColor as string | undefined)\n      : undefined;\n\n    // Hidden if an ancestor is collapsed OR if unreachable and not a direct collapsed target\n    const itemIsHidden = isHidden || (!isReachable && !isCollapsedTarget);\n\n    const title = this.getDisplayNameForHeight(element, flow);\n    const calculatedHeight = this.heightCalculator.calculateHeightWithMargin(title, itemId);\n\n    result.push({\n      id: itemId,\n      element,\n      flow: flow || undefined,\n      depth,\n      branchIndex,\n      parentId,\n      isCollapsed,\n      isHidden: itemIsHidden,\n      isPlaceholder,\n      branchLabel,\n      branchLabelColor,\n      branchLabelHasError,\n      collapseId,\n      calculatedHeight,\n      x: 0,\n      y: 0,\n      width: LAYOUT.CARD_WIDTH,\n      height: 100,\n    });\n\n    // Terminal nodes: LinkTo flows, hidden items, collapsed items, end events, placeholders\n    if (isLinkToFlow || itemIsHidden || isCollapsed) return;\n    if (element.type === 'bpmn:EndEvent') return;\n    if (elementIsPlaceholder) return;\n\n    const outgoing = element.outgoing;\n    if (!outgoing) return;\n\n    const sequenceFlows: ConnectionImpl[] = [];\n    for (const conn of outgoing) {\n      if (conn.type === 'bpmn:SequenceFlow' && conn.target) {\n        sequenceFlows.push(conn);\n      }\n    }\n\n    const isMultiBranch = sequenceFlows.length > 1;\n    const branchesCollapseId = `${element.id}-branches`;\n    const isBranchesCollapsed = isMultiBranch\n      ? this.workflowEditorState.isStepCollapsed(branchesCollapseId)\n      : false;\n\n    const childrenHidden = itemIsHidden || isCollapsed || isBranchesCollapsed;\n\n    let childBranchIndex = 0;\n    for (const conn of sequenceFlows) {\n      this.walkTree(\n        conn.target,\n        itemId,\n        conn,\n        depth + 1,\n        childBranchIndex,\n        result,\n        visited,\n        childrenHidden,\n        reachable,\n        collapsedTargets,\n        isMultiBranch,\n      );\n      childBranchIndex++;\n    }\n  }\n\n  /** BFS to determine which items are reachable vs hidden behind a collapsed ancestor. */\n  private computeVisibilitySets(rootElement: ShapeImpl): {\n    reachable: Set<string>;\n    collapsedTargets: Set<string>;\n  } {\n    const reachable = new Set<string>();\n    const collapsedTargets = new Set<string>();\n    const visited = new Set<string>();\n    const stack: ShapeImpl[] = [rootElement];\n\n    reachable.add(rootElement.id);\n    visited.add(rootElement.id);\n\n    while (stack.length > 0) {\n      const current = stack.pop();\n      if (!current || this.isPlaceholder(current)) continue;\n\n      const outgoing = current.outgoing;\n      if (!outgoing) continue;\n\n      const sequenceFlows: ConnectionImpl[] = [];\n      for (const conn of outgoing) {\n        if (conn.type === 'bpmn:SequenceFlow' && conn.target) sequenceFlows.push(conn);\n      }\n      if (sequenceFlows.length === 0) continue;\n\n      const isMultiBranch = sequenceFlows.length > 1;\n      if (isMultiBranch) {\n        const branchesCollapseId = `${current.id}-branches`;\n        if (this.workflowEditorState.isStepCollapsed(branchesCollapseId)) continue;\n      }\n\n      for (const conn of sequenceFlows) {\n        const target = conn.target;\n        if (!target) continue;\n\n        const isLinkTo = conn.businessObject?.isLinkTo === true;\n        const collapseId = this.getCollapseId(target, conn);\n        const itemId = isLinkTo ? conn.id : target.id;\n\n        if (this.workflowEditorState.isStepCollapsed(collapseId)) {\n          collapsedTargets.add(itemId);\n          continue;\n        }\n\n        reachable.add(itemId);\n\n        if (!isLinkTo && !visited.has(target.id)) {\n          visited.add(target.id);\n          stack.push(target);\n        }\n      }\n    }\n\n    return { reachable, collapsedTargets };\n  }\n\n  private isPlaceholder(element: ShapeImpl): boolean {\n    return element.businessObject?.isPlaceholder === true;\n  }\n\n  private getCollapseId(element: ShapeImpl, flow: ConnectionImpl | null): string {\n    // Legacy renderer rule: collapse state is attached to the *connection* (SequenceFlow),\n    // not the target element. This keeps collapse semantics consistent across renderers.\n    if (flow) return flow.id;\n    return element.id;\n  }\n}\n","import Service from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport { LAYOUT } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\n\n/** Canvas.measureText()-based card height estimation. */\nexport default class WorkflowEditorFlatRendererHeightCalculatorService extends Service {\n  @tracked public version = 0;\n\n  private ctx: CanvasRenderingContext2D | null = null;\n  private heightCache = new Map<string, number>();\n  private pendingVersionBump = false;\n\n  // Must match CSS in step/generic/base/style.scss\n  private readonly CARD_INNER_WIDTH = 250;\n  private readonly LINE_HEIGHT = 24;\n  private readonly VERTICAL_PADDING = 14;\n  private readonly MIN_HEIGHT = LAYOUT.CARD_HEIGHT;\n  private readonly CARD_MARGIN = LAYOUT.CARD_MARGIN;\n\n  private isDomAvailable(): boolean {\n    return typeof document !== 'undefined' && typeof document.createElement === 'function';\n  }\n\n  private scheduleVersionBump(): void {\n    if (this.pendingVersionBump) return;\n    this.pendingVersionBump = true;\n\n    if (typeof requestAnimationFrame === 'function') {\n      requestAnimationFrame(() => {\n        this.pendingVersionBump = false;\n        this.version++;\n      });\n      return;\n    }\n\n    // eslint-disable-next-line no-restricted-globals -- use setTimeout for reliable next-tick bump here\n    setTimeout(() => {\n      this.pendingVersionBump = false;\n      this.version++;\n    }, 0);\n  }\n\n  private getContext(): CanvasRenderingContext2D | null {\n    if (!this.isDomAvailable()) {\n      return null;\n    }\n\n    if (!this.ctx) {\n      const canvas = document.createElement('canvas');\n      const context = canvas.getContext('2d');\n      if (!context) return null;\n\n      this.ctx = context;\n      this.ctx.font = '500 15px Inter, -apple-system, BlinkMacSystemFont, sans-serif';\n    }\n    return this.ctx;\n  }\n\n  calculateHeight(title: string, itemId: string): number {\n    const cached = this.heightCache.get(itemId);\n    if (cached !== undefined) return cached;\n\n    if (!title?.trim()) {\n      this.heightCache.set(itemId, this.MIN_HEIGHT);\n      return this.MIN_HEIGHT;\n    }\n\n    const ctx = this.getContext();\n    if (!ctx) {\n      this.heightCache.set(itemId, this.MIN_HEIGHT);\n      return this.MIN_HEIGHT;\n    }\n\n    const lines = Math.ceil(ctx.measureText(title).width / this.CARD_INNER_WIDTH);\n    const height = Math.max(this.MIN_HEIGHT, this.VERTICAL_PADDING + lines * this.LINE_HEIGHT);\n    this.heightCache.set(itemId, height);\n    return height;\n  }\n\n  calculateHeightWithMargin(title: string, itemId: string): number {\n    const baseHeight = this.calculateHeight(title, itemId);\n    return baseHeight + this.CARD_MARGIN;\n  }\n\n  getVisualHeight(itemId: string): number {\n    return this.heightCache.get(itemId) ?? this.MIN_HEIGHT;\n  }\n\n  clearCache(): void {\n    this.heightCache.clear();\n    this.scheduleVersionBump();\n  }\n\n  invalidate(itemId: string): void {\n    this.heightCache.delete(itemId);\n    this.scheduleVersionBump();\n  }\n\n  setMeasuredHeight(itemId: string, height: number): void {\n    const nextHeight = Math.max(this.MIN_HEIGHT, Math.round(height));\n    const current = this.heightCache.get(itemId);\n    if (current !== undefined && Math.abs(current - nextHeight) < 1) {\n      return;\n    }\n    this.heightCache.set(itemId, nextHeight);\n    this.scheduleVersionBump();\n  }\n}\n","import type {\n  FlatWorkflowItem,\n  LayoutResult,\n} from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\n\nimport Service from '@ember/service';\n\nimport { LAYOUT } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\n\n/**\n * Bottom-up subtree widths → top-down position assignment.\n * Mutates items in-place.\n */\nexport default class WorkflowEditorFlatRendererPositionCalculatorService extends Service {\n  calculatePositions(flatItems: FlatWorkflowItem[]): LayoutResult {\n    if (flatItems.length === 0) {\n      return { items: [], totalWidth: 0, totalHeight: 0 };\n    }\n\n    const visibleChildrenMap = new Map<string, FlatWorkflowItem[]>();\n    for (const item of flatItems) {\n      if (item.parentId && !item.isHidden) {\n        let siblings = visibleChildrenMap.get(item.parentId);\n        if (!siblings) {\n          siblings = [];\n          visibleChildrenMap.set(item.parentId, siblings);\n        }\n        siblings.push(item);\n      }\n    }\n\n    const subtreeWidths = this.calculateSubtreeWidths(flatItems, visibleChildrenMap);\n    this.assignPositionsInPlace(flatItems, visibleChildrenMap, subtreeWidths);\n\n    let maxX = 0;\n    let maxY = 0;\n    for (const item of flatItems) {\n      if (!item.isHidden) {\n        maxX = Math.max(maxX, item.x + item.width);\n        maxY = Math.max(maxY, item.y + item.height);\n      }\n    }\n\n    return {\n      items: flatItems,\n      totalWidth: maxX + LAYOUT.CANVAS_PADDING,\n      totalHeight: maxY + LAYOUT.CANVAS_PADDING,\n    };\n  }\n\n  private calculateSubtreeWidths(\n    items: FlatWorkflowItem[],\n    visibleChildrenMap: Map<string, FlatWorkflowItem[]>,\n  ): Map<string, number> {\n    const widths = new Map<string, number>();\n\n    for (let i = items.length - 1; i >= 0; i--) {\n      const item = items[i];\n      const children = visibleChildrenMap.get(item.id);\n\n      if (!children?.length) {\n        widths.set(item.id, LAYOUT.CARD_WIDTH);\n        continue;\n      }\n\n      let total = 0;\n      for (const child of children) total += widths.get(child.id) ?? LAYOUT.CARD_WIDTH;\n      const gaps = (children.length - 1) * LAYOUT.BRANCH_GAP;\n      widths.set(item.id, Math.max(LAYOUT.CARD_WIDTH, total + gaps));\n    }\n\n    return widths;\n  }\n\n  private assignPositionsInPlace(\n    items: FlatWorkflowItem[],\n    visibleChildrenMap: Map<string, FlatWorkflowItem[]>,\n    subtreeWidths: Map<string, number>,\n  ): void {\n    const xCenters = new Map<string, number>();\n    const yPositions = new Map<string, number>();\n\n    const rootItem = items[0];\n    const rootWidth = subtreeWidths.get(rootItem.id) ?? LAYOUT.CARD_WIDTH;\n    xCenters.set(rootItem.id, LAYOUT.CANVAS_PADDING + rootWidth / 2);\n    yPositions.set(rootItem.id, LAYOUT.CANVAS_PADDING);\n\n    for (const item of items) {\n      const xCenter = xCenters.get(item.id) ?? LAYOUT.CANVAS_PADDING + rootWidth / 2;\n      const y = yPositions.get(item.id) ?? LAYOUT.CANVAS_PADDING;\n\n      item.x = xCenter - LAYOUT.CARD_WIDTH / 2;\n      item.y = y;\n      item.width = LAYOUT.CARD_WIDTH;\n      item.height = item.calculatedHeight;\n\n      const children = visibleChildrenMap.get(item.id);\n      if (!children?.length) continue;\n\n      // Use larger gap when branches have labels (even if only 1 visible child)\n      const hasBranch = children.length > 1 || children.some((c) => Boolean(c.branchLabel));\n      const gap = hasBranch ? LAYOUT.BRANCH_VERTICAL_GAP : LAYOUT.VERTICAL_GAP;\n      const childY = y + item.height + gap;\n      const parentWidth = subtreeWidths.get(item.id) ?? LAYOUT.CARD_WIDTH;\n\n      let currentX = xCenter - parentWidth / 2;\n      for (const child of children) {\n        const childWidth = subtreeWidths.get(child.id) ?? LAYOUT.CARD_WIDTH;\n        xCenters.set(child.id, currentX + childWidth / 2);\n        yPositions.set(child.id, childY);\n        currentX += childWidth + LAYOUT.BRANCH_GAP;\n      }\n    }\n  }\n}\n","import type { SafeString } from '@ember/template/-private/handlebars';\nimport type { BpmnElement, ConnectionImpl, ShapeImpl } from 'bpmn-js/custom';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorFlatRendererConnectionCalculatorService from 'client/features/workflow-editor/services/internal-feature/flat-renderer/connection-calculator';\nimport type WorkflowEditorFlatRendererConnectionVirtualizerService from 'client/features/workflow-editor/services/internal-feature/flat-renderer/connection-virtualizer';\nimport type WorkflowEditorFlatRendererFlattenerService from 'client/features/workflow-editor/services/internal-feature/flat-renderer/flattener';\nimport type WorkflowEditorFlatRendererHeightCalculatorService from 'client/features/workflow-editor/services/internal-feature/flat-renderer/height-calculator';\nimport type WorkflowEditorFlatRendererPositionCalculatorService from 'client/features/workflow-editor/services/internal-feature/flat-renderer/position-calculator';\nimport type {\n  ConnectionPath,\n  FlatWorkflowItem,\n  LayoutResult,\n  ViewportState,\n} from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\nimport type WorkflowEditorFlatRendererUiInternalService from 'client/features/workflow-editor/services/internal-feature/flat-renderer/ui';\nimport type WorkflowEditorFlatRendererVirtualizerService from 'client/features/workflow-editor/services/internal-feature/flat-renderer/virtualizer';\nimport type WorkflowEditorSelectionInternalService from 'client/features/workflow-editor/services/internal-feature/selection';\nimport type WorkflowEditorZoomInternalFeatureService from 'client/features/workflow-editor/services/internal-feature/zoom';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport Service, { service } from '@ember/service';\n\nimport { type BpmnItemType, isLinkToElement } from 'client/features/workflow-editor/configuration';\nimport { isConnectionDropDisabled } from 'client/features/workflow-editor/services/internal-feature/drop-rules';\n\nexport default class WorkflowEditorFlatRendererInternalService extends Service {\n  @service('feature/workflow-editor')\n  private workflowEditorFeature: WorkflowEditorFeatureService;\n\n  @service('feature/workflow-editor/state')\n  private workflowEditorState: WorkflowEditorFeatureState;\n\n  @service('feature/workflow-editor/internal-feature/flat-renderer/flattener')\n  private flattener: WorkflowEditorFlatRendererFlattenerService;\n\n  @service('feature/workflow-editor/internal-feature/flat-renderer/position-calculator')\n  private positionCalculator: WorkflowEditorFlatRendererPositionCalculatorService;\n\n  @service('feature/workflow-editor/internal-feature/flat-renderer/virtualizer')\n  private virtualizer: WorkflowEditorFlatRendererVirtualizerService;\n\n  @service('feature/workflow-editor/internal-feature/flat-renderer/connection-virtualizer')\n  private connectionVirtualizer: WorkflowEditorFlatRendererConnectionVirtualizerService;\n\n  @service('feature/workflow-editor/internal-feature/flat-renderer/height-calculator')\n  private heightCalculator: WorkflowEditorFlatRendererHeightCalculatorService;\n\n  @service('feature/workflow-editor/internal-feature/flat-renderer/connection-calculator')\n  private connectionCalculator: WorkflowEditorFlatRendererConnectionCalculatorService;\n\n  @service('feature/workflow-editor/internal-feature/flat-renderer/ui')\n  private flatRendererUi: WorkflowEditorFlatRendererUiInternalService;\n\n  @service('feature/workflow-editor/internal-feature/zoom')\n  private zoomService: WorkflowEditorZoomInternalFeatureService;\n\n  @service('feature/workflow-editor/internal-feature/selection')\n  private selectionService: WorkflowEditorSelectionInternalService;\n\n  get heightVersion(): number {\n    return this.heightCalculator.version;\n  }\n\n  calculateLayout(startElement: ShapeImpl | null): LayoutResult {\n    if (!startElement) {\n      return { items: [], totalWidth: 0, totalHeight: 0 };\n    }\n\n    const flatItems = this.flattener.flatten(startElement);\n    return this.positionCalculator.calculatePositions(flatItems);\n  }\n\n  getVisibleItems(items: FlatWorkflowItem[], viewportState: ViewportState) {\n    return this.virtualizer.getVisibleItems(items, viewportState);\n  }\n\n  calculateConnections(items: FlatWorkflowItem[]): ConnectionPath[] {\n    return this.connectionCalculator.calculateConnections(items);\n  }\n\n  filterConnectionsByViewport(\n    connections: ConnectionPath[],\n    viewportState: ViewportState,\n  ): ConnectionPath[] {\n    return this.connectionVirtualizer.getVisibleConnections(connections, viewportState);\n  }\n\n  getAdjustedConnectionPath(\n    connection: ConnectionPath,\n    hoveredDropShiftedItemIds: Set<string> | null,\n    centerOffset: { x: number; y: number },\n  ): string {\n    return this.flatRendererUi.getAdjustedConnectionPath(\n      connection,\n      hoveredDropShiftedItemIds,\n      centerOffset,\n    );\n  }\n\n  getItemStyle(\n    item: FlatWorkflowItem,\n    hoveredDropShiftedItemIds: Set<string> | null,\n    centerOffset: { x: number; y: number },\n  ): SafeString {\n    return this.flatRendererUi.getItemStyle(item, hoveredDropShiftedItemIds, centerOffset);\n  }\n\n  getMiniCardStyle(\n    item: FlatWorkflowItem,\n    hoveredDropShiftedItemIds: Set<string> | null,\n    centerOffset: { x: number; y: number },\n  ): SafeString {\n    return this.flatRendererUi.getMiniCardStyle(item, hoveredDropShiftedItemIds, centerOffset);\n  }\n\n  getDropPreviewStyle(\n    connection: ConnectionPath,\n    centerOffset: { x: number; y: number },\n    hoveredDropShiftedItemIds: Set<string> | null,\n    itemMap?: Map<string, FlatWorkflowItem>,\n  ): SafeString {\n    return this.flatRendererUi.getDropPreviewStyle(\n      connection,\n      centerOffset,\n      hoveredDropShiftedItemIds,\n      itemMap,\n    );\n  }\n\n  getBranchLabelStyle(\n    connection: ConnectionPath,\n    centerOffset: { x: number; y: number },\n  ): SafeString {\n    return this.flatRendererUi.getBranchLabelStyle(connection, centerOffset);\n  }\n\n  getCollapseButtonStyle(\n    connection: ConnectionPath,\n    centerOffset: { x: number; y: number },\n    hoveredDropShiftedItemIds: Set<string> | null,\n  ): SafeString {\n    return this.flatRendererUi.getCollapseButtonStyle(\n      connection,\n      centerOffset,\n      hoveredDropShiftedItemIds,\n    );\n  }\n\n  getBranchesCollapseButtonStyle(\n    connection: ConnectionPath,\n    centerOffset: { x: number; y: number },\n    hoveredDropShiftedItemIds: Set<string> | null,\n    parentItem: FlatWorkflowItem | null,\n  ): SafeString {\n    return this.flatRendererUi.getBranchesCollapseButtonStyle(\n      connection,\n      centerOffset,\n      hoveredDropShiftedItemIds,\n      parentItem,\n    );\n  }\n\n  getDropZoneStyle(\n    connection: ConnectionPath,\n    isHovered: boolean,\n    centerOffset: { x: number; y: number },\n    hoveredDropShiftedItemIds: Set<string> | null,\n    itemMap: Map<string, FlatWorkflowItem>,\n  ): SafeString {\n    return this.flatRendererUi.getDropZoneStyle(\n      connection,\n      isHovered,\n      centerOffset,\n      hoveredDropShiftedItemIds,\n      itemMap,\n    );\n  }\n\n  getDragPosition(\n    event: DragEvent,\n    container: HTMLElement | null,\n    zoomScale: number,\n    centerOffset: { x: number; y: number },\n  ): { x: number; y: number } | null {\n    return this.flatRendererUi.getDragPosition(event, container, zoomScale, centerOffset);\n  }\n\n  findDropZoneAt(\n    position: { x: number; y: number },\n    connections: ConnectionPath[],\n    current: ConnectionPath | null,\n    itemMap: Map<string, FlatWorkflowItem>,\n    hoveredDropShiftedItemIds: Set<string> | null,\n  ): ConnectionPath | null {\n    return this.flatRendererUi.findDropZoneAt(\n      position,\n      connections,\n      current,\n      itemMap,\n      hoveredDropShiftedItemIds,\n    );\n  }\n\n  createPreviewItem(\n    element: ShapeImpl | { type: BpmnItemType; businessObject: Record<string, unknown> },\n    connection: ConnectionPath,\n  ): FlatWorkflowItem {\n    return this.flatRendererUi.createPreviewItem(element, connection);\n  }\n\n  isLinkToElement(flow: ConnectionImpl | ShapeImpl): boolean {\n    return isLinkToElement(flow);\n  }\n\n  handleBranchLabelClick(connection: ConnectionPath): void {\n    const flowConnection = connection.flowConnection;\n    if (!flowConnection?.source) return;\n    this.workflowEditorFeature.selectElement(flowConnection.source as ShapeImpl);\n    this.workflowEditorFeature.setGatewayConnectionToFocus(flowConnection.id);\n  }\n\n  selectElement(element: BpmnElement | null): void {\n    this.workflowEditorFeature.selectElement(element);\n  }\n\n  clearScrollToItemId(): void {\n    this.workflowEditorFeature.clearScrollToItemId();\n  }\n\n  clearSkipNextLayoutReCenter(): void {\n    this.workflowEditorFeature.clearSkipNextLayoutReCenter();\n  }\n\n  clearScrollToCollapseId(): void {\n    this.workflowEditorFeature.clearScrollToCollapseId();\n  }\n\n  clearLastCollapseClick(): void {\n    this.workflowEditorFeature.clearLastCollapseClick();\n  }\n\n  setCollapseTransitioning(isTransitioning: boolean): void {\n    this.workflowEditorFeature.setCollapseTransitioning(isTransitioning);\n  }\n\n  zoomByWheelDelta(rendererElement: HTMLElement | null, deltaY: number): void {\n    if (!rendererElement) return;\n    this.zoomService.zoomByWheelDelta(rendererElement, deltaY);\n  }\n\n  startSelection(\n    event: MouseEvent,\n    container: HTMLElement,\n    selectionBoxElement: HTMLElement,\n  ): { x: number; y: number } {\n    return this.selectionService.startSelection(event, container, selectionBoxElement);\n  }\n\n  updateSelection(\n    event: MouseEvent,\n    container: HTMLElement,\n    selectionBoxElement: HTMLElement,\n    startX: number,\n    startY: number,\n  ): { x: number; y: number } {\n    return this.selectionService.updateSelection(\n      event,\n      container,\n      selectionBoxElement,\n      startX,\n      startY,\n    );\n  }\n\n  finishSelection(\n    selectionBoxElement: HTMLElement,\n    startX: number,\n    startY: number,\n    currentX: number,\n    currentY: number,\n  ): boolean {\n    return this.selectionService.finishSelection(\n      selectionBoxElement,\n      startX,\n      startY,\n      currentX,\n      currentY,\n    );\n  }\n\n  isDropDisabledOnConnection(connection: ConnectionPath): boolean {\n    const outgoing = connection.flowConnection;\n\n    return isConnectionDropDisabled(\n      outgoing ?? undefined,\n      this.workflowEditorState.draggedElement,\n      this.workflowEditorState.draggedElements,\n    );\n  }\n\n  handleConnectionDrop(connection: ConnectionPath): void {\n    if (this.isDropDisabledOnConnection(connection)) return;\n\n    try {\n      if (connection.flowConnection) {\n        this.workflowEditorFeature.moveElementOnConnection(connection.flowConnection);\n      }\n    } finally {\n      this.workflowEditorFeature.completeDrop();\n    }\n  }\n\n  cancelDrag(): void {\n    this.workflowEditorFeature.cancelDrag();\n  }\n}\n","import type { ConnectionImpl, ShapeImpl } from 'bpmn-js/custom';\n\nconst CARD_WIDTH = 300;\nconst CARD_HEIGHT = 40;\nconst CARD_MARGIN = 20;\nconst CARD_HEIGHT_WITH_MARGIN = CARD_HEIGHT + CARD_MARGIN;\nconst MINI_CARD_HEIGHT = 38;\nconst SIMPLIFIED_VIEW_THRESHOLD = 0.35;\n\nconst VERTICAL_GAP = 60;\nconst CORNER_RADIUS = 12;\nconst BRANCH_LABEL_HEIGHT = 30;\nconst LABEL_CORNER_GAP = 11;\nconst BRANCH_VERTICAL_GAP =\n  VERTICAL_GAP + CORNER_RADIUS + LABEL_CORNER_GAP + BRANCH_LABEL_HEIGHT + VERTICAL_GAP - 10;\n\nexport const LAYOUT = {\n  CARD_WIDTH,\n  CARD_HEIGHT,\n  CARD_MARGIN,\n  CARD_HEIGHT_WITH_MARGIN,\n  MINI_CARD_HEIGHT,\n  SIMPLIFIED_VIEW_THRESHOLD,\n\n  VERTICAL_GAP,\n  BRANCH_VERTICAL_GAP,\n  BRANCH_GAP: 20,\n\n  VERTICAL_SEGMENT: VERTICAL_GAP,\n  CORNER_RADIUS,\n  LABEL_CORNER_GAP,\n  BRANCH_LABEL_HEIGHT,\n\n  CANVAS_PADDING: 100,\n  VIRTUALIZATION_BUFFER: 1500,\n  DROP_ZONE_WIDTH: 200,\n} as const;\n\nexport interface FlatWorkflowItem {\n  id: string;\n  element: ShapeImpl;\n  flow?: ConnectionImpl;\n\n  x: number;\n  y: number;\n  width: number;\n  height: number;\n\n  depth: number;\n  branchIndex: number;\n  parentId: string | null;\n\n  isCollapsed: boolean;\n  isHidden: boolean;\n  isPlaceholder: boolean;\n  calculatedHeight: number;\n\n  branchLabel?: string;\n  branchLabelColor?: string;\n  branchLabelHasError?: boolean;\n\n  collapseId: string;\n}\n\nexport interface LayoutResult {\n  items: FlatWorkflowItem[];\n  totalWidth: number;\n  totalHeight: number;\n}\n\nexport interface ConnectionPath {\n  id: string;\n  fromId: string;\n  toId: string;\n  d: string;\n  type: 'straight' | 'corner-left' | 'corner-right' | 'middle';\n\n  /** Bounding box in layout coordinates (unscaled, before center offsets). */\n  bounds: { minX: number; maxX: number; minY: number; maxY: number };\n\n  cornerX: number;\n  cornerY: number;\n  collapseX: number;\n  collapseY: number;\n\n  branchLabel?: string;\n  branchLabelColor?: string;\n  branchLabelHasError?: boolean;\n\n  collapseElementId?: string;\n  flowConnection?: ConnectionImpl;\n  isCollapsed: boolean;\n  hasCollapseError: boolean;\n\n  /** Global branches collapse — only on the first connection of a branch group. */\n  branchesCollapseId?: string;\n  branchesCollapseY?: number;\n  isBranchesCollapsed?: boolean;\n  branchConnections?: ConnectionImpl[];\n}\n\nexport interface ViewportState {\n  scrollTop: number;\n  scrollLeft: number;\n  viewportWidth: number;\n  viewportHeight: number;\n  zoomScale: number;\n  /** Offset applied to items (padding + centering). Virtualization must account for it. */\n  contentOffsetX: number;\n  contentOffsetY: number;\n}\n\nexport interface VisibleRange {\n  items: FlatWorkflowItem[];\n  startIndex: number;\n  endIndex: number;\n}\n\nexport function getItemBottomY(item: FlatWorkflowItem, zoomScale: number): number {\n  const isSimplifiedView = zoomScale < LAYOUT.SIMPLIFIED_VIEW_THRESHOLD;\n  const visualHeight = isSimplifiedView\n    ? LAYOUT.MINI_CARD_HEIGHT\n    : item.calculatedHeight - LAYOUT.CARD_MARGIN;\n\n  return item.y + visualHeight;\n}\n","import type { SafeString } from '@ember/template/-private/handlebars';\nimport type { ShapeImpl } from 'bpmn-js/custom';\nimport type { BpmnItemType } from 'client/features/workflow-editor/configuration';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type {\n  ConnectionPath,\n  FlatWorkflowItem,\n} from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport Service, { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\n\nimport { isPlaceholderDropDisabled } from 'client/features/workflow-editor/services/internal-feature/drop-rules';\nimport {\n  LAYOUT,\n  getItemBottomY,\n} from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\n\nconst HOVER_PUSH_PX = 60;\nconst DROP_ZONE_HIT_PADDING = 6;\nconst DROP_ZONE_MARGIN = 5;\nconst DROP_ZONE_FALLBACK_HEIGHT = 30;\nconst DROP_ZONE_HOVER_EXPAND = 40;\nconst DROP_ZONE_BUCKET_SIZE_PX = 600;\nconst DROP_PREVIEW_LABEL_CLEARANCE_PX = 8;\nconst DROP_PREVIEW_SOURCE_CLEARANCE_PX = 20;\nconst DROP_PREVIEW_TARGET_CLEARANCE_PX = 20;\n\ntype CenterOffset = { x: number; y: number };\ntype DropZoneRect = { left: number; top: number; width: number; height: number };\ntype HoveredShiftedItemIds = Set<string> | null;\n\nexport default class WorkflowEditorFlatRendererUiInternalService extends Service {\n  @service('feature/workflow-editor')\n  private workflowEditorFeature: WorkflowEditorFeatureService;\n\n  @service('feature/workflow-editor/state')\n  private workflowEditorState: WorkflowEditorFeatureState;\n\n  private dropZoneIndexedConnectionsRef: ConnectionPath[] | null = null;\n  private dropZoneIndexedItemMapRef: Map<string, FlatWorkflowItem> | null = null;\n  private dropZoneBucketToIndices = new Map<string, number[]>();\n\n  private static bucketKey(bx: number, by: number): string {\n    return `${bx},${by}`;\n  }\n\n  private ensureDropZoneIndex(\n    connections: ConnectionPath[],\n    itemMap: Map<string, FlatWorkflowItem>,\n  ): void {\n    if (\n      this.dropZoneIndexedConnectionsRef === connections\n      && this.dropZoneIndexedItemMapRef === itemMap\n    ) {\n      return;\n    }\n\n    this.dropZoneIndexedConnectionsRef = connections;\n    this.dropZoneIndexedItemMapRef = itemMap;\n    this.dropZoneBucketToIndices.clear();\n\n    const bucketSize = DROP_ZONE_BUCKET_SIZE_PX;\n\n    for (let i = 0; i < connections.length; i++) {\n      const connection = connections[i];\n      const rect = this.getDropZoneLayoutRect(connection, itemMap, null);\n      if (!rect) continue;\n\n      // Account for hover push so we don't miss candidates when hoveredTargetY changes\n      const fromItem = itemMap.get(connection.fromId);\n      const toItem = itemMap.get(connection.toId);\n      const maxDownShift = fromItem && toItem ? HOVER_PUSH_PX : 0;\n\n      const left = rect.left - DROP_ZONE_HIT_PADDING;\n      const top = rect.top - DROP_ZONE_HIT_PADDING;\n      const width = rect.width + DROP_ZONE_HIT_PADDING * 2;\n      const height = rect.height + DROP_ZONE_HIT_PADDING * 2 + maxDownShift;\n\n      const right = left + width;\n      const bottom = top + height;\n\n      const startBx = Math.floor(left / bucketSize);\n      const endBx = Math.floor(right / bucketSize);\n      const startBy = Math.floor(top / bucketSize);\n      const endBy = Math.floor(bottom / bucketSize);\n\n      for (let bx = startBx; bx <= endBx; bx++) {\n        for (let by = startBy; by <= endBy; by++) {\n          const key = WorkflowEditorFlatRendererUiInternalService.bucketKey(bx, by);\n          let list = this.dropZoneBucketToIndices.get(key);\n          if (!list) {\n            list = [];\n            this.dropZoneBucketToIndices.set(key, list);\n          }\n          list.push(i);\n        }\n      }\n    }\n  }\n\n  isPlaceholderDropDisabled(\n    placeholderElement: ShapeImpl,\n    draggedElement: WorkflowEditorFeatureState['draggedElement'],\n    draggedElements: WorkflowEditorFeatureState['draggedElements'],\n  ): boolean {\n    return isPlaceholderDropDisabled(placeholderElement, draggedElement, draggedElements);\n  }\n\n  isCurrentItemLinkToWithTarget(): boolean {\n    return this.workflowEditorFeature.isCurrentItemLinkToWithTarget();\n  }\n\n  handlePlaceholderDrop(placeholderElement: ShapeImpl): void {\n    this.workflowEditorFeature.replacePlaceholderByDroppedElement(placeholderElement);\n    this.workflowEditorFeature.completeDrop();\n  }\n\n  getAdjustedConnectionPath(\n    connection: ConnectionPath,\n    hoveredDropShiftedItemIds: HoveredShiftedItemIds,\n    centerOffset: CenterOffset,\n  ): string {\n    const { x: centerOffsetX, y: centerOffsetY } = centerOffset;\n\n    if (!hoveredDropShiftedItemIds && centerOffsetX === 0 && centerOffsetY === 0) {\n      return connection.d;\n    }\n\n    const sourceHoverOffset = this.getItemHoverOffset(connection.fromId, hoveredDropShiftedItemIds);\n    const targetHoverOffset = this.getItemHoverOffset(connection.toId, hoveredDropShiftedItemIds);\n\n    const connectionHoverOffset = Math.max(sourceHoverOffset, targetHoverOffset);\n    const endHoverOffset =\n      connection.collapseElementId || connection.branchesCollapseId\n        ? connectionHoverOffset\n        : targetHoverOffset;\n\n    const segments = connection.d.split(/(?=[MLQ])/);\n    const adjustedSegments = segments.map((segment, index) => {\n      if (!segment.trim()) return segment;\n\n      const command = segment[0];\n      const coords = segment\n        .slice(1)\n        .trim()\n        .split(/[\\s,]+/)\n        .map(Number);\n\n      if (command === 'M' && coords.length >= 2) {\n        coords[0] += centerOffsetX;\n        coords[1] += centerOffsetY + sourceHoverOffset;\n      } else if (command === 'L' && coords.length >= 2) {\n        coords[0] += centerOffsetX;\n        const isLastSegment = index === segments.length - 1;\n        if (isLastSegment) {\n          coords[1] += centerOffsetY + endHoverOffset;\n        } else if (sourceHoverOffset > 0) {\n          coords[1] += centerOffsetY + sourceHoverOffset;\n        } else {\n          coords[1] += centerOffsetY;\n        }\n      } else if (command === 'Q' && coords.length >= 4) {\n        // Q curves: control point (0,1) uses source offset, end point (2,3) uses appropriate offset\n        const isLastSegment = index === segments.length - 1;\n        const qEndOffset = isLastSegment\n          ? endHoverOffset\n          : sourceHoverOffset > 0\n            ? sourceHoverOffset\n            : 0;\n        coords[0] += centerOffsetX;\n        coords[1] += centerOffsetY + (sourceHoverOffset > 0 ? sourceHoverOffset : 0);\n        coords[2] += centerOffsetX;\n        coords[3] += centerOffsetY + qEndOffset;\n      }\n\n      return command + ' ' + coords.join(' ');\n    });\n\n    return adjustedSegments.join(' ');\n  }\n\n  getItemStyle(\n    item: FlatWorkflowItem,\n    hoveredDropShiftedItemIds: HoveredShiftedItemIds,\n    centerOffset: CenterOffset,\n  ): SafeString {\n    const { x: centerOffsetX, y: centerOffsetY } = centerOffset;\n    const yOffset = this.getItemHoverOffset(item.id, hoveredDropShiftedItemIds);\n\n    const x = item.x + centerOffsetX;\n    const y = item.y + centerOffsetY + yOffset;\n    return htmlSafe(\n      `position: absolute; transform: translate(${x}px, ${y}px); width: ${item.width}px;`,\n    );\n  }\n\n  getMiniCardStyle(\n    item: FlatWorkflowItem,\n    hoveredDropShiftedItemIds: HoveredShiftedItemIds,\n    centerOffset: CenterOffset,\n  ): SafeString {\n    const { x: centerOffsetX, y: centerOffsetY } = centerOffset;\n    const yOffset = this.getItemHoverOffset(item.id, hoveredDropShiftedItemIds);\n\n    const x = item.x + centerOffsetX;\n    const y = item.y + centerOffsetY + yOffset;\n    return htmlSafe(\n      `position: absolute; transform: translate(${x}px, ${y}px); width: ${item.width}px; height: ${LAYOUT.MINI_CARD_HEIGHT}px;`,\n    );\n  }\n\n  getDropPreviewStyle(\n    connection: ConnectionPath,\n    centerOffset: CenterOffset,\n    hoveredDropShiftedItemIds: HoveredShiftedItemIds,\n    itemMap?: Map<string, FlatWorkflowItem>,\n  ): SafeString {\n    const { x: centerOffsetX, y: centerOffsetY } = centerOffset;\n    const x = connection.cornerX - LAYOUT.CARD_WIDTH / 2 + centerOffsetX;\n    const hoverOffset = this.getConnectionHoverOffset(connection, hoveredDropShiftedItemIds);\n    const fromItem = itemMap?.get(connection.fromId);\n    const targetItem = itemMap?.get(connection.toId);\n\n    const previewBaseY = connection.collapseY + hoverOffset + 10;\n    const minPreviewYUnderSource = fromItem\n      ? this.getItemBottomY(fromItem)\n        + this.getItemHoverOffset(connection.fromId, hoveredDropShiftedItemIds)\n        + DROP_PREVIEW_SOURCE_CLEARANCE_PX\n      : Number.NEGATIVE_INFINITY;\n    const minPreviewYUnderBranchLabel = connection.branchLabel\n      ? connection.cornerY + LAYOUT.BRANCH_LABEL_HEIGHT + DROP_PREVIEW_LABEL_CLEARANCE_PX\n      : Number.NEGATIVE_INFINITY;\n\n    const minPreviewY = Math.max(minPreviewYUnderSource, minPreviewYUnderBranchLabel);\n\n    const targetTopY =\n      targetItem\n      && targetItem.y + this.getItemHoverOffset(connection.toId, hoveredDropShiftedItemIds);\n    const maxPreviewYAboveTarget =\n      targetTopY === undefined\n        ? Number.POSITIVE_INFINITY\n        : targetTopY - LAYOUT.CARD_HEIGHT - DROP_PREVIEW_TARGET_CLEARANCE_PX;\n\n    const y =\n      targetTopY !== undefined && maxPreviewYAboveTarget >= minPreviewY\n        ? (minPreviewY + maxPreviewYAboveTarget) / 2 + centerOffsetY\n        : Math.max(previewBaseY, minPreviewY) + centerOffsetY;\n\n    return htmlSafe(\n      `position: absolute; transform: translate(${x}px, ${y}px); width: ${LAYOUT.CARD_WIDTH}px; pointer-events: none;`,\n    );\n  }\n\n  getBranchLabelStyle(connection: ConnectionPath, centerOffset: CenterOffset): SafeString {\n    const { x: centerOffsetX, y: centerOffsetY } = centerOffset;\n\n    const x = connection.cornerX + centerOffsetX;\n    const y = connection.cornerY + centerOffsetY;\n    return htmlSafe(`position: absolute; transform: translate(${x}px, ${y}px) translateX(-50%);`);\n  }\n\n  getCollapseButtonStyle(\n    connection: ConnectionPath,\n    centerOffset: CenterOffset,\n    hoveredDropShiftedItemIds: HoveredShiftedItemIds,\n  ): SafeString {\n    const { x: centerOffsetX, y: centerOffsetY } = centerOffset;\n    const hoverOffset = this.getConnectionHoverOffset(connection, hoveredDropShiftedItemIds);\n\n    const x = connection.collapseX + centerOffsetX;\n    const y = connection.collapseY + centerOffsetY + hoverOffset;\n    return htmlSafe(\n      `position: absolute; left: ${x}px; top: ${y}px; transform: translate(-50%, -50%);`,\n    );\n  }\n\n  getBranchesCollapseButtonStyle(\n    connection: ConnectionPath,\n    centerOffset: CenterOffset,\n    hoveredDropShiftedItemIds: HoveredShiftedItemIds,\n    parentItem: FlatWorkflowItem | null,\n  ): SafeString {\n    const { x: centerOffsetX, y: centerOffsetY } = centerOffset;\n    const hoverOffset = this.getConnectionHoverOffset(connection, hoveredDropShiftedItemIds);\n\n    const x = parentItem\n      ? parentItem.x + parentItem.width / 2 + centerOffsetX\n      : connection.collapseX + centerOffsetX;\n    const y = (connection.branchesCollapseY ?? connection.collapseY) + centerOffsetY + hoverOffset;\n\n    return htmlSafe(\n      `position: absolute; left: ${x}px; top: ${y}px; transform: translate(-50%, -50%);`,\n    );\n  }\n\n  getDropZoneStyle(\n    connection: ConnectionPath,\n    isHovered: boolean,\n    centerOffset: CenterOffset,\n    hoveredDropShiftedItemIds: HoveredShiftedItemIds,\n    itemMap: Map<string, FlatWorkflowItem>,\n  ): SafeString {\n    const rect = this.getDropZoneLayoutRect(connection, itemMap, hoveredDropShiftedItemIds);\n    if (!rect) {\n      return htmlSafe('');\n    }\n\n    const { x: centerOffsetX, y: centerOffsetY } = centerOffset;\n    const x = rect.left + centerOffsetX;\n    const top = rect.top + centerOffsetY;\n    const hasItems = itemMap.has(connection.fromId) && itemMap.has(connection.toId);\n    const height = isHovered ? (hasItems ? rect.height + DROP_ZONE_HOVER_EXPAND : 80) : rect.height;\n\n    return htmlSafe(\n      `position: absolute; left: ${x}px; top: ${top}px; width: ${rect.width}px; height: ${height}px;`,\n    );\n  }\n\n  findDropZoneAt(\n    position: { x: number; y: number },\n    connections: ConnectionPath[],\n    current: ConnectionPath | null,\n    itemMap: Map<string, FlatWorkflowItem>,\n    hoveredDropShiftedItemIds: HoveredShiftedItemIds,\n  ): ConnectionPath | null {\n    if (!connections.length) return null;\n\n    if (current) {\n      const rect = this.getDropZoneLayoutRect(current, itemMap, hoveredDropShiftedItemIds);\n      if (rect && this.isPointInDropZoneRect(position.x, position.y, rect)) {\n        return current;\n      }\n    }\n\n    this.ensureDropZoneIndex(connections, itemMap);\n\n    const bucketSize = DROP_ZONE_BUCKET_SIZE_PX;\n    const bx = Math.floor(position.x / bucketSize);\n    const by = Math.floor(position.y / bucketSize);\n    const key = WorkflowEditorFlatRendererUiInternalService.bucketKey(bx, by);\n    const candidateIndices = this.dropZoneBucketToIndices.get(key);\n    if (!candidateIndices || candidateIndices.length === 0) {\n      return null;\n    }\n\n    let best: { connection: ConnectionPath; score: number } | null = null;\n\n    for (const idx of candidateIndices) {\n      const connection = connections[idx];\n      const rect = this.getDropZoneLayoutRect(connection, itemMap, hoveredDropShiftedItemIds);\n      if (!rect) continue;\n      if (!this.isPointInDropZoneRect(position.x, position.y, rect)) continue;\n\n      const centerX = rect.left + rect.width / 2;\n      const centerY = rect.top + rect.height / 2;\n      const score = Math.abs(position.y - centerY) + Math.abs(position.x - centerX) * 0.25;\n\n      if (!best || score < best.score) {\n        best = { connection, score };\n      }\n    }\n\n    return best?.connection ?? null;\n  }\n\n  getDragPosition(\n    event: DragEvent,\n    container: HTMLElement | null,\n    zoomScale: number,\n    centerOffset: CenterOffset,\n  ): { x: number; y: number } | null {\n    if (!container || !zoomScale) return null;\n\n    const rect = container.getBoundingClientRect();\n    const x = (event.clientX - rect.left + container.scrollLeft) / zoomScale - centerOffset.x;\n    const y = (event.clientY - rect.top + container.scrollTop) / zoomScale - centerOffset.y;\n\n    return { x, y };\n  }\n\n  createPreviewItem(\n    element: ShapeImpl | { type: BpmnItemType; businessObject: Record<string, unknown> },\n    connection: ConnectionPath,\n  ): FlatWorkflowItem {\n    const elementId = 'id' in element ? element.id : `palette-${element.type}`;\n\n    return {\n      id: `preview-${elementId}`,\n      element: element as ShapeImpl,\n      flow: undefined,\n      x: connection.cornerX - LAYOUT.CARD_WIDTH / 2,\n      y: connection.cornerY + 20,\n      width: LAYOUT.CARD_WIDTH,\n      height: 100,\n      depth: 0,\n      branchIndex: 0,\n      parentId: null,\n      isCollapsed: false,\n      isHidden: false,\n      isPlaceholder: false,\n      collapseId: '',\n      calculatedHeight: 60,\n    };\n  }\n\n  private getDropZoneLayoutRect(\n    connection: ConnectionPath,\n    itemMap: Map<string, FlatWorkflowItem>,\n    hoveredDropShiftedItemIds: HoveredShiftedItemIds,\n  ): DropZoneRect | null {\n    const width = LAYOUT.DROP_ZONE_WIDTH;\n    const fromItem = itemMap.get(connection.fromId);\n    const toItem = itemMap.get(connection.toId);\n\n    if (!fromItem || !toItem) {\n      const height = DROP_ZONE_FALLBACK_HEIGHT;\n      const top = connection.collapseY - height / 2;\n      return {\n        left: connection.collapseX - width / 2,\n        top,\n        width,\n        height,\n      };\n    }\n\n    const sourceHoverOffset = this.getItemHoverOffset(fromItem.id, hoveredDropShiftedItemIds);\n    const targetHoverOffset = this.getItemHoverOffset(toItem.id, hoveredDropShiftedItemIds);\n\n    const fromBottomY = this.getItemBottomY(fromItem) + sourceHoverOffset;\n    const toTopY = toItem.y + targetHoverOffset;\n    const topY = fromBottomY + DROP_ZONE_MARGIN;\n    const availableHeight = Math.max(20, toTopY - topY - DROP_ZONE_MARGIN);\n\n    return {\n      left: connection.collapseX - width / 2,\n      top: topY,\n      width,\n      height: availableHeight,\n    };\n  }\n\n  private isPointInDropZoneRect(x: number, y: number, rect: DropZoneRect): boolean {\n    const right = rect.left + rect.width;\n    const bottom = rect.top + rect.height;\n    return (\n      x >= rect.left - DROP_ZONE_HIT_PADDING\n      && x <= right + DROP_ZONE_HIT_PADDING\n      && y >= rect.top - DROP_ZONE_HIT_PADDING\n      && y <= bottom + DROP_ZONE_HIT_PADDING\n    );\n  }\n\n  private getConnectionHoverOffset(\n    connection: ConnectionPath,\n    hoveredDropShiftedItemIds: HoveredShiftedItemIds,\n  ): number {\n    const sourceOffset = this.getItemHoverOffset(connection.fromId, hoveredDropShiftedItemIds);\n    const targetOffset = this.getItemHoverOffset(connection.toId, hoveredDropShiftedItemIds);\n\n    return Math.max(sourceOffset, targetOffset);\n  }\n\n  private getItemHoverOffset(\n    itemId: string,\n    hoveredDropShiftedItemIds: HoveredShiftedItemIds,\n  ): number {\n    if (!hoveredDropShiftedItemIds) {\n      return 0;\n    }\n\n    return hoveredDropShiftedItemIds.has(itemId) ? HOVER_PUSH_PX : 0;\n  }\n\n  private getItemBottomY(item: FlatWorkflowItem): number {\n    return getItemBottomY(item, this.workflowEditorState.zoomScale);\n  }\n}\n","import type { ViewportState } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\n\nexport type ViewportBounds = {\n  left: number;\n  right: number;\n  top: number;\n  bottom: number;\n};\n\n/** Convert viewport (scrolled, zoomed, offset) to layout-space bounds. */\nexport function computeViewportBounds(viewport: ViewportState, bufferPx: number): ViewportBounds {\n  const {\n    scrollLeft,\n    scrollTop,\n    viewportWidth,\n    viewportHeight,\n    zoomScale,\n    contentOffsetX,\n    contentOffsetY,\n  } = viewport;\n\n  const adjustedBuffer = bufferPx / zoomScale;\n  const adjustedViewportWidth = viewportWidth / zoomScale;\n  const adjustedViewportHeight = viewportHeight / zoomScale;\n  const adjustedScrollLeft = scrollLeft / zoomScale;\n  const adjustedScrollTop = scrollTop / zoomScale;\n\n  const left = adjustedScrollLeft - adjustedBuffer - contentOffsetX;\n  const right = adjustedScrollLeft + adjustedViewportWidth + adjustedBuffer - contentOffsetX;\n  const top = adjustedScrollTop - adjustedBuffer - contentOffsetY;\n  const bottom = adjustedScrollTop + adjustedViewportHeight + adjustedBuffer - contentOffsetY;\n\n  return { left, right, top, bottom };\n}\n","import type {\n  FlatWorkflowItem,\n  ViewportState,\n  VisibleRange,\n} from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\n\nimport Service from '@ember/service';\n\nimport { LAYOUT } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/types';\nimport { computeViewportBounds } from 'client/features/workflow-editor/services/internal-feature/flat-renderer/viewport-bounds';\n\n/**\n * Vertical bucket index for O(k) viewport queries.\n * Items are in DFS order (not Y-sorted), so binary search won't work.\n */\nexport default class WorkflowEditorFlatRendererVirtualizerService extends Service {\n  private static readonly BUCKET_SIZE_PX = 600;\n\n  private indexedItemsRef: FlatWorkflowItem[] | null = null;\n  private indexedItemsLength = -1;\n  private bucketToIndices = new Map<number, number[]>();\n\n  private ensureIndex(allItems: FlatWorkflowItem[]): void {\n    // Rebuild when:\n    // - the array reference changes (common immutable updates)\n    // - the same array reference is mutated (push/pop/splice) and length changes\n    if (this.indexedItemsRef === allItems && this.indexedItemsLength === allItems.length) return;\n\n    this.indexedItemsRef = allItems;\n    this.indexedItemsLength = allItems.length;\n    this.bucketToIndices.clear();\n\n    const bucketSize = WorkflowEditorFlatRendererVirtualizerService.BUCKET_SIZE_PX;\n\n    for (let i = 0; i < allItems.length; i++) {\n      const item = allItems[i];\n      if (item.isHidden || item.isCollapsed) continue;\n\n      const startBucket = Math.floor(item.y / bucketSize);\n      const endBucket = Math.floor((item.y + item.height) / bucketSize);\n\n      for (let b = startBucket; b <= endBucket; b++) {\n        let list = this.bucketToIndices.get(b);\n        if (!list) {\n          list = [];\n          this.bucketToIndices.set(b, list);\n        }\n        list.push(i);\n      }\n    }\n  }\n\n  getVisibleItems(allItems: FlatWorkflowItem[], viewport: ViewportState): VisibleRange {\n    if (allItems.length === 0) return { items: [], startIndex: -1, endIndex: -1 };\n\n    this.ensureIndex(allItems);\n\n    const { left, right, top, bottom } = computeViewportBounds(\n      viewport,\n      LAYOUT.VIRTUALIZATION_BUFFER,\n    );\n\n    const bucketSize = WorkflowEditorFlatRendererVirtualizerService.BUCKET_SIZE_PX;\n    const bucketTop = Math.floor(top / bucketSize);\n    const bucketBottom = Math.floor(bottom / bucketSize);\n\n    const candidateIndices: number[] = [];\n    const seen = new Set<number>();\n\n    for (let b = bucketTop; b <= bucketBottom; b++) {\n      const indices = this.bucketToIndices.get(b);\n      if (!indices) continue;\n      for (const idx of indices) {\n        if (!seen.has(idx)) {\n          seen.add(idx);\n          candidateIndices.push(idx);\n        }\n      }\n    }\n\n    if (candidateIndices.length === 0) return { items: [], startIndex: -1, endIndex: -1 };\n\n    candidateIndices.sort((a, b) => a - b);\n\n    const visible: FlatWorkflowItem[] = [];\n    let startIndex = -1;\n    let endIndex = -1;\n\n    for (const i of candidateIndices) {\n      const item = allItems[i];\n      if (item.isHidden || item.isCollapsed) continue;\n      if (item.y + item.height < top || item.y > bottom) continue;\n      if (item.x + item.width < left || item.x > right) continue;\n\n      if (startIndex === -1) startIndex = i;\n      visible.push(item);\n      endIndex = i;\n    }\n\n    return { items: visible, startIndex, endIndex };\n  }\n}\n","import type { ShapeImpl } from 'bpmn-js/custom';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport Service, { service } from '@ember/service';\n\nimport { BpmnTaskTypeEnum } from 'client/features/workflow-editor/configuration';\nimport { isCommandPressed } from 'client/utils/keyboard';\n\ntype SelectionRect = {\n  left: number;\n  top: number;\n  right: number;\n  bottom: number;\n  width: number;\n  height: number;\n};\n\ntype CachedSelectableItem = {\n  bpmnElement: ShapeImpl;\n  // Bounds in container *content* coordinates (scroll included).\n  // This stays stable even if the container scrolls during selection.\n  left: number;\n  top: number;\n  right: number;\n  bottom: number;\n};\n\nexport default class WorkflowEditorSelectionInternalService extends Service {\n  @service('feature/workflow-editor/state') private workflowEditorState: WorkflowEditorFeatureState;\n  @service('feature/workflow-editor')\n  private workflowEditorFeatureService: WorkflowEditorFeatureService;\n\n  private cachedSelectableItems: CachedSelectableItem[] = [];\n  private selectableBucketToIndices = new Map<string, number[]>();\n  private initialSelectedItems: ShapeImpl[] = [];\n  private readonly selectionThreshold = 5;\n  private static readonly BUCKET_SIZE_PX = 800;\n\n  private static bucketKey(bx: number, by: number): string {\n    return `${bx},${by}`;\n  }\n\n  public startSelection(event: MouseEvent, container: HTMLElement, selectionBox: HTMLElement) {\n    this.workflowEditorState.isDrawing = true;\n    this.initialSelectedItems = [...this.workflowEditorState.selectedItems];\n    const bpmnChildren = this.workflowEditorFeatureService.getBPMNToDisplay()?.children || [];\n\n    this.cacheSelectableItems(container, bpmnChildren);\n    const { x, y } = this.getCurrentCoords(event, container);\n\n    this.initializeSelectionBox(selectionBox, x, y);\n\n    return { x, y };\n  }\n\n  public updateSelection(\n    event: MouseEvent,\n    container: HTMLElement,\n    selectionBox: HTMLElement,\n    startX: number,\n    startY: number,\n  ) {\n    const { x: currentX, y: currentY } = this.getCurrentCoords(event, container);\n\n    const selectionRect = this.calculateSelectionRect(startX, startY, currentX, currentY);\n    this.updateSelectionBoxDisplay(selectionBox, selectionRect);\n\n    this.updateSelectedItems(event, selectionRect, this.workflowEditorState.selectedItems);\n\n    return { x: currentX, y: currentY };\n  }\n\n  public finishSelection(\n    selectionBox: HTMLElement,\n    startX: number,\n    startY: number,\n    currentX: number,\n    currentY: number,\n  ) {\n    this.workflowEditorState.isDrawing = false;\n    selectionBox.style.display = 'none';\n\n    this.cachedSelectableItems = [];\n    this.selectableBucketToIndices.clear();\n    this.initialSelectedItems = [];\n\n    return this.isValidSelection(startX, startY, currentX, currentY);\n  }\n\n  private initializeSelectionBox(selectionBox: HTMLElement, x: number, y: number) {\n    selectionBox.style.display = 'block';\n    selectionBox.style.left = `${x}px`;\n    selectionBox.style.top = `${y}px`;\n    selectionBox.style.width = '0px';\n    selectionBox.style.height = '0px';\n  }\n\n  private updateSelectionBoxDisplay(selectionBox: HTMLElement, rect: SelectionRect) {\n    selectionBox.style.left = `${rect.left}px`;\n    selectionBox.style.top = `${rect.top}px`;\n    selectionBox.style.width = `${rect.width}px`;\n    selectionBox.style.height = `${rect.height}px`;\n  }\n\n  private cacheSelectableItems(container: HTMLElement, bpmnChildren: ShapeImpl[]) {\n    this.cachedSelectableItems = [];\n    this.selectableBucketToIndices.clear();\n\n    const bpmnById = new Map<string, ShapeImpl>();\n    for (const child of bpmnChildren) {\n      bpmnById.set(child.id, child);\n    }\n\n    const containerRect = container.getBoundingClientRect();\n    const items = container.querySelectorAll('.js-feature-workflow-editor-renderer-card');\n\n    items.forEach((item) => {\n      const bpmnElement = bpmnById.get(item.id);\n      if (!bpmnElement) return;\n\n      const elementRect = (item as HTMLElement).getBoundingClientRect();\n\n      // Convert from viewport coords to container content coords.\n      const left = elementRect.left - containerRect.left + container.scrollLeft;\n      const top = elementRect.top - containerRect.top + container.scrollTop;\n      const right = left + elementRect.width;\n      const bottom = top + elementRect.height;\n\n      const idx = this.cachedSelectableItems.length;\n      this.cachedSelectableItems.push({\n        bpmnElement,\n        left,\n        top,\n        right,\n        bottom,\n      });\n\n      const bucketSize = WorkflowEditorSelectionInternalService.BUCKET_SIZE_PX;\n      const startBx = Math.floor(left / bucketSize);\n      const endBx = Math.floor(right / bucketSize);\n      const startBy = Math.floor(top / bucketSize);\n      const endBy = Math.floor(bottom / bucketSize);\n\n      for (let bx = startBx; bx <= endBx; bx++) {\n        for (let by = startBy; by <= endBy; by++) {\n          const key = WorkflowEditorSelectionInternalService.bucketKey(bx, by);\n          let list = this.selectableBucketToIndices.get(key);\n          if (!list) {\n            list = [];\n            this.selectableBucketToIndices.set(key, list);\n          }\n          list.push(idx);\n        }\n      }\n    });\n  }\n\n  private updateSelectedItems(\n    event: MouseEvent,\n    selectionRect: SelectionRect,\n    selectedItems: ShapeImpl[],\n  ) {\n    const isCommandMode = isCommandPressed(event);\n    const bucketSize = WorkflowEditorSelectionInternalService.BUCKET_SIZE_PX;\n    const startBx = Math.floor(selectionRect.left / bucketSize);\n    const endBx = Math.floor(selectionRect.right / bucketSize);\n    const startBy = Math.floor(selectionRect.top / bucketSize);\n    const endBy = Math.floor(selectionRect.bottom / bucketSize);\n\n    const candidateIndices: number[] = [];\n    const seen = new Set<number>();\n\n    for (let bx = startBx; bx <= endBx; bx++) {\n      for (let by = startBy; by <= endBy; by++) {\n        const key = WorkflowEditorSelectionInternalService.bucketKey(bx, by);\n        const indices = this.selectableBucketToIndices.get(key);\n        if (!indices) continue;\n        for (const idx of indices) {\n          if (seen.has(idx)) continue;\n          seen.add(idx);\n          candidateIndices.push(idx);\n        }\n      }\n    }\n\n    const nextSelected = new Set<ShapeImpl>(isCommandMode ? this.initialSelectedItems : []);\n\n    for (const idx of candidateIndices) {\n      const { bpmnElement, left, top, right, bottom } = this.cachedSelectableItems[idx];\n\n      const intersects =\n        left < selectionRect.right\n        && right > selectionRect.left\n        && top < selectionRect.bottom\n        && bottom > selectionRect.top;\n\n      if (intersects) {\n        nextSelected.add(bpmnElement);\n      }\n    }\n\n    // Update the tracked array with minimal churn:\n    // - remove items not in `nextSelected` (including far-away items not in the candidate buckets)\n    // - add missing items that are in `nextSelected`\n    for (const item of [...selectedItems]) {\n      if (!nextSelected.has(item)) {\n        selectedItems.removeObject(item);\n      }\n    }\n\n    const selectedSet = new Set(selectedItems);\n    for (const item of nextSelected) {\n      if (!selectedSet.has(item)) {\n        selectedItems.pushObject(item);\n      }\n    }\n  }\n\n  private calculateSelectionRect(\n    startX: number,\n    startY: number,\n    currentX: number,\n    currentY: number,\n  ) {\n    return {\n      left: Math.min(startX, currentX),\n      top: Math.min(startY, currentY),\n      right: Math.max(startX, currentX),\n      bottom: Math.max(startY, currentY),\n      width: Math.abs(currentX - startX),\n      height: Math.abs(currentY - startY),\n    };\n  }\n\n  private isValidSelection(startX: number, startY: number, currentX: number, currentY: number) {\n    const width = Math.abs(currentX - startX);\n    const height = Math.abs(currentY - startY);\n    return width > this.selectionThreshold || height > this.selectionThreshold;\n  }\n\n  private getCurrentCoords(event: MouseEvent, container: HTMLElement) {\n    const containerRect = container.getBoundingClientRect();\n\n    return {\n      x: event.clientX - containerRect.left + container.scrollLeft,\n      y: event.clientY - containerRect.top + container.scrollTop,\n    };\n  }\n\n  private isSubProcess(item: ShapeImpl) {\n    return item.type === BpmnTaskTypeEnum.SubProcess;\n  }\n\n  public async deleteSteps(items: WorkflowEditorFeatureState['selectedItems']) {\n    // eslint-disable-next-line sonarjs/no-misleading-array-reverse\n    const sortedItems = items\n      // Deleting a card just before a link to will change the link to element,\n      // so we need to delete first the link to and then all other types of elements\n      .sort((firstItem, secondItem) => {\n        if (this.isSubProcess(firstItem)) return -1;\n        if (this.isSubProcess(secondItem)) return 1;\n        return firstItem.businessObject?.isLinkTo ? -1 : 1;\n      });\n\n    const lastIndex = sortedItems.length - 1;\n\n    for (let i = 0; i < sortedItems.length; i++) {\n      const item = sortedItems[i];\n      if (this.isSubProcess(item)) {\n        const confirmed = await this.workflowEditorFeatureService.confirmRemoveSubProcess(item);\n        if (!confirmed) {\n          return;\n        }\n      } else {\n        // Batch cache invalidation for multi-delete to avoid re-rendering N times.\n        // We only invalidate on the last item deletion.\n        this.workflowEditorFeatureService.deleteWorkflowItem(item, {\n          invalidateCaches: i === lastIndex,\n        });\n      }\n    }\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type { ShapeImpl } from 'bpmn-js/custom';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport Service, { service } from '@ember/service';\n\nexport default class WorkflowEditorSubProcessInternalFeatureService extends Service {\n  @service private router: RouterService;\n  @service('feature/workflow-editor/state')\n  private workflowEditorState: WorkflowEditorFeatureState;\n\n  @service('feature/workflow-editor')\n  private workflowEditorFeatureService: WorkflowEditorFeatureService;\n\n  public async redirectOrExitSubProcessIfNecessary(element: ShapeImpl) {\n    const queryParams = this.router.currentRoute?.queryParams;\n    const parentId = element.parent.id;\n\n    const expectedParentSubProcessId =\n      parentId === this.workflowEditorFeatureService.getBPMN().id ? undefined : parentId;\n\n    if (queryParams.subProcessId !== expectedParentSubProcessId) {\n      return this.setCurrentSubProcess(expectedParentSubProcessId && (element.parent as ShapeImpl));\n    }\n  }\n\n  public async setCurrentSubProcess(workflowItem: ShapeImpl) {\n    const currentQueryParams = this.router.currentRoute?.queryParams;\n    await this.router.transitionTo({\n      queryParams: {\n        ...currentQueryParams,\n        subProcessId: workflowItem?.id || null,\n      },\n    });\n    // Select the last opened subprocess if any was open\n    this.workflowEditorState.currentWorkflowItem = currentQueryParams.subProcessId\n      ? this.workflowEditorFeatureService\n          .getBPMN()\n          .children.find((child) => child.id === currentQueryParams.subProcessId) || null\n      : null;\n  }\n}\n","import type WorkflowEditorFeatureState from 'client/features/workflow-editor/state';\n\nimport Service, { service } from '@ember/service';\n\nimport { getWorkflowSize } from 'client/features/workflow-editor/utils/zoom-geometry';\n\nexport default class WorkflowEditorZoomInternalFeatureService extends Service {\n  @service('feature/workflow-editor/state')\n  private workflowEditorState: WorkflowEditorFeatureState;\n\n  private readonly wheelDeltaSensitivity = 50;\n  private accumulatedDelta = 0;\n\n  public zoomIn(rendererElement: HTMLElement) {\n    this.applyZoom(rendererElement, this.workflowEditorState.zoomStep);\n  }\n\n  public zoomOut(rendererElement: HTMLElement) {\n    this.applyZoom(rendererElement, -this.workflowEditorState.zoomStep);\n  }\n\n  public zoomByWheelDelta(rendererElement: HTMLElement, deltaY: number) {\n    // Negative deltaY means scroll up (zoom in), positive means scroll down (zoom out)\n    const currentDelta = -deltaY;\n\n    // reset when changing direction (zoom-in -> zoom-out or zoom-out -> zoom-in)\n    if (\n      this.accumulatedDelta !== 0\n      && Math.sign(currentDelta) !== Math.sign(this.accumulatedDelta)\n    ) {\n      this.accumulatedDelta = 0;\n    }\n\n    this.accumulatedDelta += currentDelta;\n\n    // In order to handle correctly zoom with trackpad,\n    // we only zoom when accumulated delta reach the threshold of wheelDeltaSensitivity\n    const previousScale = this.workflowEditorState.zoomScale;\n    const zoomFactorDelta = (this.accumulatedDelta / this.wheelDeltaSensitivity) * 0.1;\n    const potentialNewScale = parseFloat((previousScale * (1 + zoomFactorDelta)).toFixed(2));\n\n    if (potentialNewScale !== previousScale) {\n      const zoomDelta = potentialNewScale - previousScale;\n      this.applyZoom(rendererElement, zoomDelta);\n      this.accumulatedDelta = 0;\n    }\n  }\n\n  public autoFitZoom(rendererElement: HTMLElement) {\n    const container = rendererElement.parentElement;\n    if (!container) return;\n\n    const workflowSize = getWorkflowSize(rendererElement);\n    if (!workflowSize) return;\n\n    const margin = 100;\n    const scaleWidth = container.clientWidth / (workflowSize.width + margin);\n    const scaleHeight = container.clientHeight / (workflowSize.height + margin);\n    const targetScale = Math.min(scaleWidth, scaleHeight);\n    const scaleDelta = targetScale - this.workflowEditorState.zoomScale;\n    if (scaleDelta !== 0) {\n      this.applyZoom(rendererElement, scaleDelta);\n    }\n    this.workflowEditorState.autoFitVersion++;\n  }\n\n  private applyZoom(rendererElement: HTMLElement, scaleDelta: number) {\n    if (!rendererElement.parentElement) return;\n\n    const previousScale = this.workflowEditorState.zoomScale;\n    const newScale = parseFloat(\n      Math.max(\n        this.workflowEditorState.minZoomScale,\n        Math.min(this.workflowEditorState.maxZoomScale, previousScale + scaleDelta),\n      ).toFixed(2),\n    );\n\n    if (newScale === previousScale) return;\n\n    // Apply new scale\n    this.workflowEditorState.zoomScale = newScale;\n    rendererElement.style.setProperty('--workflow-editor-renderer-scale', `${newScale}`);\n  }\n}\n","import type { BpmnElement, ConnectionImpl, ShapeImpl } from 'bpmn-js/custom';\nimport type CollectionModel from 'client/data/models/collection';\nimport type { BpmnItemType } from 'client/features/workflow-editor/configuration';\nimport type { Root } from 'diagram-js/lib/model';\n\nimport Service from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport enum WorkflowEditorErrorTypeEnum {\n  MissingEndEvent = 'missing-end-event',\n  MissingEscalationInbox = 'missing-escalation-inbox',\n  MissingGatewayName = 'missing-gateway-name',\n  MissingGatewayOptionName = 'missing-gateway-option-name',\n  MissingLinkToTarget = 'missing-link-to-target',\n  MissingMcpServer = 'missing-mcp-server',\n  MissingSubWorkflow = 'missing-sub-workflow',\n}\n\nexport default class WorkflowEditorFeatureState extends Service {\n  @tracked initialStackIdx: number | null = null;\n  @tracked wasFileUploaded = false;\n  @tracked selectedItems: Array<BpmnElement> = [];\n\n  @tracked bpmn: Root | null = null;\n  @tracked draggedElement:\n    | ShapeImpl\n    | ConnectionImpl\n    | {\n        type: BpmnItemType;\n        businessObject: { name: string; inboxId?: string };\n      }\n    | null = null;\n\n  @tracked draggedElements: Array<\n    | ShapeImpl\n    | ConnectionImpl\n    | {\n        type: BpmnItemType;\n        businessObject: { name: string; isLinkTo?: boolean };\n      }\n  > | null = null;\n\n  @tracked hoveredItem: BpmnElement | null = null;\n\n  @tracked isLinkToSelectModeOn = false;\n  @tracked clickMode: 'select' | 'grab' = 'select';\n  @tracked isGrabbing = false;\n  @tracked gatewayConnectionIdToFocus: string | null = null;\n  @tracked isDrawing = false;\n\n  @tracked itemsInError: Array<{\n    type: WorkflowEditorErrorTypeEnum;\n    element: BpmnElement;\n  }> = [];\n\n  @tracked isErrorsModalVisible = false;\n\n  @tracked shouldDisplayPlaceholderOnError = false;\n\n  @tracked public hasAttemptedSave = false;\n\n  @tracked currentCollection: CollectionModel | null = null;\n\n  @tracked public zoomScale: number = 1;\n  @tracked public dragVersion = 0;\n  @tracked public bpmnVersion = 0;\n  @tracked public autoFitVersion = 0;\n\n  // Non-tracked counters backing the version properties.\n  // Using separate counters avoids reading the @tracked property during increment,\n  // which would cause Ember autotracking revalidation errors when the increment\n  // happens during a render scope (e.g. via {{did-update}} helpers).\n  private _bpmnVersionCounter = 0;\n  private _autoFitVersionCounter = 0;\n\n  public incrementBpmnVersion() {\n    this.bpmnVersion = ++this._bpmnVersionCounter;\n  }\n\n  public incrementAutoFitVersion() {\n    this.autoFitVersion = ++this._autoFitVersionCounter;\n  }\n\n  /**\n   * Collapse/uncollapse can shift the layout horizontally.\n   * When a collapse is triggered by a specific click in the canvas, we store the click\n   * coordinates so the flat renderer can keep the viewport anchored on that point.\n   *\n   * Not tracked on purpose: it's a one-shot imperative hint consumed by the renderer and\n   * should not trigger reactivity by itself.\n   */\n  public lastCollapseClick: { collapseId: string; clientX: number; clientY: number } | null = null;\n\n  private _collapsedSteps = new Set<string>();\n  @tracked private _collapsedStepsVersion = 0;\n  @tracked errorCollapseIds = new Set<string>();\n\n  // Flag to skip the automatic re-centering after collapse/uncollapse\n  // Set to true when collapse is triggered by button click (which handles its own scrollIntoView)\n  public skipNextLayoutReCenter = false;\n\n  // ID of the collapse button to scroll to after layout change\n  // Set when user clicks a collapse button, consumed by flat renderer after render\n  public scrollToCollapseId: string | null = null;\n\n  // ID of a workflow item to scroll to (e.g., jump to link-to target)\n  @tracked public scrollToItemId: string | null = null;\n\n  // Flag indicating a collapse transition is in progress (used to hide content during transition)\n  @tracked public isCollapseTransitioning = false;\n\n  // Removed collapseAnchor - replaced by root center tracking in flat renderer\n  // The new approach tracks the root element's center position and compensates\n  // for layout \"glissement\" (shift) rather than trying to follow the collapse button\n\n  // Getter that accesses the version to trigger reactivity\n  get collapsedSteps(): Set<string> {\n    // Access version to establish tracking dependency\n    void this._collapsedStepsVersion;\n    return this._collapsedSteps;\n  }\n\n  set collapsedSteps(value: Set<string>) {\n    this._collapsedSteps = value;\n    this._collapsedStepsVersion++;\n  }\n\n  // Public getter for the version - used by @cached getters to establish tracking dependency\n  get collapsedStepsVersion(): number {\n    return this._collapsedStepsVersion;\n  }\n\n  public readonly minZoomScale: number = 0.1;\n  public readonly maxZoomScale: number = 3;\n  public readonly zoomStep: number = 0.1;\n\n  get hoveredOrSelectedItem() {\n    return this.hoveredItem || this.currentWorkflowItem;\n  }\n\n  get isSelectMode() {\n    return this.clickMode === 'select';\n  }\n\n  get isGrabMode() {\n    return this.clickMode === 'grab';\n  }\n\n  get currentWorkflowItem() {\n    return this.selectedItems?.length === 1 ? this.selectedItems[0] : null;\n  }\n\n  set currentWorkflowItem(item: BpmnElement | null) {\n    this.selectedItems = item ? [item] : [];\n  }\n\n  get numberOfItemsInError() {\n    return this.itemsInError.length;\n  }\n\n  public get isZoomAtMin() {\n    return this.zoomScale <= this.minZoomScale;\n  }\n\n  public get isZoomAtMax() {\n    return this.zoomScale >= this.maxZoomScale;\n  }\n\n  public toggleStepCollapse(elementId: string) {\n    if (this.isStepCollapsed(elementId)) {\n      this._collapsedSteps.delete(elementId);\n    } else {\n      this._collapsedSteps.add(elementId);\n    }\n\n    // Increment version to trigger reactivity without recreating the Set\n    this._collapsedStepsVersion++;\n  }\n\n  public isStepCollapsed(elementId: string) {\n    return this.collapsedSteps.has(elementId);\n  }\n}\n","export function getWorkflowSize(\n  rendererElement: HTMLElement,\n): { width: number; height: number } | null {\n  const width = parseFloat(rendererElement.dataset['workflowWidth'] || '0');\n  const height = parseFloat(rendererElement.dataset['workflowHeight'] || '0');\n\n  if (width <= 0 || height <= 0) return null;\n\n  return { width, height };\n}\n\nexport function getContentPadding(\n  scale: number,\n  viewportWidth: number,\n  viewportHeight: number,\n): { x: number; y: number } {\n  const normalizedScale = scale || 1;\n  return {\n    x: Math.max(viewportWidth / 2, viewportWidth / (2 * normalizedScale)),\n    y: Math.max(viewportHeight / 2, viewportHeight / (2 * normalizedScale)),\n  };\n}\n\nexport function getContentOffset(\n  workflowWidth: number,\n  scale: number,\n  viewportWidth: number,\n  viewportHeight: number,\n): { x: number; y: number } {\n  const centerOffsetX =\n    workflowWidth * scale < viewportWidth ? (viewportWidth / scale - workflowWidth) / 2 : 0;\n  const padding = getContentPadding(scale, viewportWidth, viewportHeight);\n  return { x: centerOffsetX + padding.x, y: padding.y };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-visualizer-ai-panel\\\"\\n  data-test-feature-workflow-visualizer-ai-panel\\n  ...attributes\\n>\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName=\\\"auto_fix_high\\\"\\n    class=\\\"c-feature-workflow-visualizer-ai-panel__icon\\\"\\n    @size=\\\"tiny\\\"\\n  />\\n\\n  <div class=\\\"c-feature-workflow-visualizer-ai-panel__content\\\">\\n    {{#if (has-block \\'title\\')}}\\n      <div\\n        class=\\\"c-feature-workflow-visualizer-ai-panel__title\\\"\\n        data-test-feature-workflow-visualizer-ai-panel-title\\n      >\\n        {{yield to=\\'title\\'}}\\n      </div>\\n    {{/if}}\\n\\n    <div\\n      class=\\\"c-feature-workflow-visualizer-ai-panel__body\\\"\\n      data-test-feature-workflow-visualizer-ai-panel-body\\n    >\\n      {{yield to=\\'body\\'}}\\n    </div>\\n\\n    {{#if (has-block \\'footer\\')}}\\n      <div\\n        class=\\\"c-feature-workflow-visualizer-ai-panel__footer\\\"\\n        data-test-feature-workflow-visualizer-ai-panel-footer\\n      >\\n        {{yield to=\\'footer\\'}}\\n      </div>\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/features/workflow-visualizer/components/ai-panel/template.hbs' });\n","import type WorkflowVisualizerFeatureService from 'client/features/workflow-visualizer/services/feature';\nimport type WorkflowVisualizerUtilsInternalFeatureService from 'client/features/workflow-visualizer/services/internal-feature/utils';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  stepHistory: HydratedStepHistory;\n}\n\nexport default class WorkflowVisualizerCardComponent extends Component<Args> {\n  @service('feature/workflow-visualizer')\n  private declare featureService: WorkflowVisualizerFeatureService;\n\n  @service('feature/workflow-visualizer/internal-feature/utils')\n  private declare utils: WorkflowVisualizerUtilsInternalFeatureService;\n\n  get step() {\n    return this.args.stepHistory.step;\n  }\n\n  get isOpen() {\n    return this.featureService.isStepOpen(this.args.stepHistory.stepIndex);\n  }\n\n  get title() {\n    return this.step.title;\n  }\n\n  get isCancelled() {\n    return this.args.stepHistory.cancelled || this.args.stepHistory.revised;\n  }\n\n  get headerIcon() {\n    if (this.isCancelled) return 'close';\n    return this.areStepAndConditionsCompleted ? 'check_circle' : 'radio_button_unchecked';\n  }\n\n  get workflowSubSteps() {\n    return this.utils.getSubSteps(this.args.stepHistory);\n  }\n\n  private get isStepCompleted() {\n    return this.args.stepHistory.done;\n  }\n\n  private get areStepAndConditionsCompleted() {\n    return this.isStepCompleted && !this.workflowSubSteps.any((condition) => !condition.done);\n  }\n\n  @action\n  toggleStep() {\n    this.featureService.toggleStep(this.args.stepHistory.stepIndex);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Shared::Card::Deployable\\n  @headerIcon={{this.headerIcon}}\\n  @isOpen={{this.isOpen}}\\n  @onExpand={{this.toggleStep}}\\n  @onRetract={{this.toggleStep}}\\n  class={{get-classes-with-modifiers \\'c-feature-workflow-card\\' cancelled=this.isCancelled}}\\n  data-test-workflow-step={{this.title}}\\n  data-test-workflow-step-open={{this.isOpen}}\\n>\\n  <:header>\\n    <span class=\\\"c-feature-workflow-card__header\\\" data-test-workflow-step-title>\\n      {{this.title}}\\n    </span>\\n    {{#if @stepHistory.revised}}\\n      <span>(revised)</span>\\n    {{/if}}\\n  </:header>\\n\\n  <:body>\\n    <div class=\\\"c-feature-workflow-card__body\\\" data-test-workflow-card-content>\\n      <Feature::WorkflowVisualizer::Step\\n        @stepHistory={{@stepHistory}}\\n        data-test-workflow-substep=\\\"task\\\"\\n      />\\n      {{! display all conditions/gateways (or other tasks in subprocess) until the next task }}\\n      {{#each this.workflowSubSteps as |subStep index|}}\\n        <Feature::WorkflowVisualizer::Step\\n          @stepHistory={{subStep}}\\n          data-test-workflow-substep={{index}}\\n        />\\n      {{/each}}\\n    </div>\\n  </:body>\\n</Feature::BrowserExtension::Shared::Card::Deployable>\\n', { moduleName: 'client/features/workflow-visualizer/components/card/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::ModalSimple @iconName=\\\"question_mark\\\" ...attributes>\\n  <:title>Quit workflow for later?</:title>\\n  <:description>\\n    You or another user can always resume it later from the workflows list. Aborting will lose all\\n    your progress.\\n  </:description>\\n  <:footer>\\n    <Shared::Button @type=\\\"ghost\\\" @text=\\\"Abort\\\" @onClick={{@data.abort}} data-test-abort-workflow />\\n    <Shared::Button\\n      @type=\\\"primary\\\"\\n      @text=\\\"Save and close\\\"\\n      @onClick={{@data.saveAndClose}}\\n      data-test-save-and-close-workflow\\n    />\\n  </:footer>\\n</Shared::ModalSimple>\\n', { moduleName: 'client/features/workflow-visualizer/components/close-confirmation/template.hbs' });\n","import type CollectionModel from 'client/data/models/collection';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\nimport type WorkflowVisualizerFeatureService from 'client/features/workflow-visualizer/services/feature';\nimport type WorkflowVisualizerFeatureState from 'client/features/workflow-visualizer/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class WorkflowVisualizerContainerComponent extends Component {\n  @service('feature/workflow-visualizer')\n  private declare featureService: WorkflowVisualizerFeatureService;\n\n  @service('feature/workflow-visualizer/state')\n  private declare state: WorkflowVisualizerFeatureState;\n\n  @service('feature/modal')\n  private declare modalFeature: ModalFeatureService;\n\n  get isVisible(): boolean {\n    return this.state.displaySidePanel;\n  }\n\n  get isLoading(): boolean {\n    return this.state.isStarting;\n  }\n\n  get isCollapsed(): boolean {\n    return this.state.isSidePanelCollapsed;\n  }\n\n  get workflowName(): string | null {\n    return this.state.workflowName;\n  }\n\n  get collection(): CollectionModel | null {\n    return this.featureService.getCurrentCollection();\n  }\n\n  @action\n  closePanel(): void {\n    if (this.state.isFinished || this.state.isAborted) {\n      this.featureService.closePanel();\n      return;\n    }\n\n    this.modalFeature.open('feature/workflow-visualizer/close-confirmation', {\n      modalType: 'modal',\n      hideCloseButton: true,\n      data: {\n        abort: async () => {\n          await this.featureService.abortWorkflow();\n          this.modalFeature.close();\n        },\n        saveAndClose: () => {\n          this.modalFeature.close();\n          this.featureService.closePanel();\n        },\n      },\n    });\n  }\n\n  @action\n  handleCollapse(): void {\n    this.featureService.toggleCollapse();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-test-feature-workflow-visualizer-container ...attributes>\\n  {{#if this.isVisible}}\\n    <Feature::WorkflowVisualizer::Panel\\n      @workflowName={{this.workflowName}}\\n      @isCollapsed={{this.isCollapsed}}\\n      @onClose={{this.closePanel}}\\n      @onCollapse={{this.handleCollapse}}\\n      @collection={{this.collection}}\\n      @recordId={{this.state.workflowRecords.firstObject.record.id}}\\n    >\\n      {{#if this.isLoading}}\\n        <div\\n          class=\\\"c-feature-workflow-visualizer-container__loading\\\"\\n          role=\\\"status\\\"\\n          aria-live=\\\"polite\\\"\\n          aria-label=\\\"Loading workflow\\\"\\n          data-test-feature-workflow-visualizer-loading\\n        >\\n          <Shared::Feedback::BetaLoader />\\n        </div>\\n      {{else}}\\n        <Feature::WorkflowVisualizer::Visualization />\\n      {{/if}}\\n    </Feature::WorkflowVisualizer::Panel>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workflow-visualizer/components/container/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport CollectionModel from 'client/data/models/collection';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  workflowName: string | null;\n  isCollapsed: boolean;\n  collection: CollectionModel | null;\n  recordId: string | null;\n  onClose: () => void;\n  onCollapse: () => void;\n}\n\n@validateArguments\nexport default class WorkflowVisualizerPanelComponent extends Component<Args> {\n  static readonly propTypes = {\n    workflowName: PropTypes.string,\n    isCollapsed: PropTypes.bool.isRequired,\n    collection: PropTypes.instanceOf(CollectionModel),\n    recordId: PropTypes.string,\n    onClose: PropTypes.func.isRequired,\n    onCollapse: PropTypes.func.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! @onCollapse is a pure toggle (flips isSidePanelCollapsed), so reusing it for @onOpen is intentional. }}\\n<Shared::CollapsibleSidePanel\\n  @onClose={{@onClose}}\\n  @onCollapse={{@onCollapse}}\\n  @onOpen={{@onCollapse}}\\n  @isCollapsed={{@isCollapsed}}\\n  ...attributes\\n>\\n  <:header>\\n    <Shared::CollapsibleSidePanel::Header @icon={{@collection.iconOrDefault}}>\\n      <:left>\\n        <Feature::ClientRecord::ReferenceField\\n          @collection={{@collection}}\\n          @isLinkDisabled={{true}}\\n          @recordIds={{array @recordId}}\\n          class=\\\"c-feature-workflow-visualizer-panel__record-reference-field\\\"\\n          data-test-feature-workflow-visualizer-record-reference-field\\n        />\\n      </:left>\\n      <:right>\\n        <span\\n          class=\\\"c-feature-workflow-visualizer-panel__workflow-name\\\"\\n          data-test-feature-workflow-visualizer-panel-workflow-name\\n          data-test-feature-workflow-visualizer-workflow-name\\n        >\\n          {{or @workflowName \\'Workflow\\'}}\\n        </span>\\n      </:right>\\n    </Shared::CollapsibleSidePanel::Header>\\n  </:header>\\n  <:body>\\n    {{yield}}\\n  </:body>\\n</Shared::CollapsibleSidePanel>\\n', { moduleName: 'client/features/workflow-visualizer/components/panel/template.hbs' });\n","import type WorkflowVisualizerFeatureService from 'client/features/workflow-visualizer/services/feature';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  stepHistory: HydratedStepHistory;\n  onCancel: () => void;\n}\n\nexport default class WorkflowVisualizerReviseConfirmationComponent extends Component<Args> {\n  @service('feature/workflow-visualizer')\n  private declare featureService: WorkflowVisualizerFeatureService;\n\n  get shouldDisplayEscalationText(): boolean {\n    return false; // TODO: check if some escalation step will be cancelled on revise\n  }\n\n  @action\n  async reviseStep(): Promise<void> {\n    await this.featureService.reviseStep(this.args.stepHistory.stepIndex);\n    this.args.onCancel();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Feedback::Notification::NotificationInApp @state=\\\"warning\\\" @canHide={{false}}>\\n  <div class=\\\"c-feature-workflow-visualizer-revise-confirmation__content\\\">\\n    <p>\\n      Warning: revising this step will cancel its execution along with the following completed\\n      steps,\\n      {{if this.shouldDisplayEscalationText \\'undo any relevant inbox escalation,\\'}}\\n      but actions performed won\\'t be undone.<br />\\n      Are you sure you want to proceed?\\n    </p>\\n    <div>\\n      <Shared::Button\\n        @type=\\\"ghost-green\\\"\\n        @text=\\\"Yes\\\"\\n        @onClick={{this.reviseStep}}\\n        data-test-revise-confirmation-yes\\n      />\\n      <Shared::Button\\n        @type=\\\"ghost-red\\\"\\n        @text=\\\"No\\\"\\n        @onClick={{@onCancel}}\\n        data-test-revise-confirmation-no\\n      />\\n    </div>\\n  </div>\\n</Shared::Feedback::Notification::NotificationInApp>\\n', { moduleName: 'client/features/workflow-visualizer/components/revise-confirmation/template.hbs' });\n","import type WorkflowVisualizerFeatureService from 'client/features/workflow-visualizer/services/feature';\nimport type WorkflowVisualizerUtilsInternalFeatureService from 'client/features/workflow-visualizer/services/internal-feature/utils';\nimport type WorkflowVisualizerFeatureState from 'client/features/workflow-visualizer/state';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\nimport type { WorkflowTransition } from 'client/features/workflow-visualizer/types/workflow-step';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  stepHistory: HydratedStepHistory;\n  dataToSendOnSubmit?: (transition: WorkflowTransition) => unknown;\n  forceDisplayTransitions?: boolean;\n  disabled?: boolean;\n}\n\nexport default class WorkflowVisualizerStepCommonButtonsComponent extends Component<Args> {\n  @service('feature/workflow-visualizer/state')\n  private readonly state: WorkflowVisualizerFeatureState;\n\n  @service('feature/workflow-visualizer')\n  private readonly featureService: WorkflowVisualizerFeatureService;\n\n  @service('feature/workflow-visualizer/internal-feature/utils')\n  private declare utils: WorkflowVisualizerUtilsInternalFeatureService;\n\n  get isReviseConfirmationDisplayed(): boolean {\n    return this.state.reviseConfirmationStepIndex === this.args.stepHistory.stepIndex;\n  }\n\n  get step() {\n    return this.args.stepHistory.step;\n  }\n\n  get isCurrentStep(): boolean {\n    return this.utils.isCurrentStep(this.args.stepHistory);\n  }\n\n  get areTransitionsDisplayed() {\n    return this.args.stepHistory.done || this.args.forceDisplayTransitions;\n  }\n\n  @action\n  isStepCompletedWithOption(answer: string | undefined) {\n    return (\n      answer !== undefined\n      && this.args.stepHistory.done\n      && this.args.stepHistory.context?.selectedOption === answer\n    );\n  }\n\n  @action\n  buildDataToSendOnSubmit(transition: WorkflowTransition): unknown {\n    return this.args.dataToSendOnSubmit?.(transition);\n  }\n\n  get areTransitionsDisabled() {\n    return (\n      !this.isCurrentStep\n      || this.utils.isStepRevisedOrCancelled(this.args.stepHistory)\n      || !this.state.isInteractive\n      || Boolean(this.args.disabled)\n    );\n  }\n\n  get isRevisedButtonDisplayed() {\n    return !this.utils.isCurrentStep(this.args.stepHistory);\n  }\n\n  get isReviseDisabled() {\n    return this.utils.isStepRevisedOrCancelled(this.args.stepHistory) || !this.state.isInteractive;\n  }\n\n  @action\n  reviseStep() {\n    this.featureService.openReviseConfirmation(this.args.stepHistory.stepIndex);\n  }\n\n  @action\n  closeReviseModal() {\n    this.featureService.closeReviseConfirmation();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-visualizer-step-common-buttons\\\"\\n  data-test-feature-workflow-card-step-buttons\\n>\\n  {{#if this.areTransitionsDisplayed}}\\n    {{#each this.step.outgoing as |transition|}}\\n      <Feature::WorkflowVisualizer::Step::Common::TransitionButton\\n        @transition={{transition}}\\n        @isActive={{this.isStepCompletedWithOption transition.answer}}\\n        @stepHistory={{@stepHistory}}\\n        @dataToSendOnSubmit={{this.buildDataToSendOnSubmit transition}}\\n        disabled={{this.areTransitionsDisabled}}\\n      />\\n    {{/each}}\\n  {{/if}}\\n  {{#if this.isRevisedButtonDisplayed}}\\n    <Shared::Button\\n      @type=\\\"ghost\\\"\\n      @onClick={{this.reviseStep}}\\n      @text=\\\"Revise\\\"\\n      @iconName=\\\"replay\\\"\\n      @size=\\\"small\\\"\\n      disabled={{this.isReviseDisabled}}\\n      data-test-feature-workflow-visualizer-button-revise\\n      ...attributes\\n    />\\n  {{/if}}\\n</div>\\n\\n{{#if this.isReviseConfirmationDisplayed}}\\n  <Feature::WorkflowVisualizer::ReviseConfirmation\\n    @onCancel={{this.closeReviseModal}}\\n    @stepHistory={{@stepHistory}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/features/workflow-visualizer/components/step/common/buttons/template.hbs' });\n","import type { SafeString } from '@ember/template/-private/handlebars';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\n\nimport Component from '@glimmer/component';\n\ninterface HandleManuallyInstructionArgs {\n  stepHistory: HydratedStepHistory;\n}\n\nexport default class WorkflowVisualizerStepCommonHandleManuallyInstructionComponent extends Component<HandleManuallyInstructionArgs> {\n  get safePrompt(): SafeString | undefined {\n    return this.args.stepHistory.safePrompt;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.safePrompt}}\\n  <div\\n    class=\\\"c-feature-workflow-visualizer-step-common-handle-manually-instruction\\\"\\n    data-test-feature-workflow-visualizer-step-common-handle-manually-instruction\\n    ...attributes\\n  >\\n    <span\\n      class=\\\"c-feature-workflow-visualizer-step-common-handle-manually-instruction__title\\\"\\n      data-test-feature-workflow-visualizer-step-common-handle-manually-instruction-title\\n    >\\n      Manual handling selected; follow these instructions to continue:\\n    </span>\\n    <p\\n      class=\\\"c-feature-workflow-visualizer-step-common-handle-manually-instruction__quote\\\"\\n      data-test-feature-workflow-visualizer-step-common-handle-manually-instruction-quote\\n    >\\n      “{{this.safePrompt}}”\\n    </p>\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/features/workflow-visualizer/components/step/common/handle-manually-instruction/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::ModalSimple\\n  @iconName=\\\"info_outline\\\"\\n  class=\\\"c-feature-workflow-visualizer-step-common-handle-manually-modal\\\"\\n  data-test-feature-workflow-visualizer-step-common-handle-manually-modal\\n  ...attributes\\n>\\n  <:title>Are you sure you want to handle this step manually?</:title>\\n  <:description>\\n    {{@data.description}}\\n  </:description>\\n  <:footer>\\n    <Shared::Button\\n      @type=\\\"ghost\\\"\\n      @text=\\\"Handle manually\\\"\\n      @onClick={{@data.onConfirm}}\\n      class=\\\"c-feature-workflow-visualizer-step-common-handle-manually-modal__confirm-button\\\"\\n      data-test-feature-workflow-visualizer-step-common-handle-manually-modal-confirm-button\\n    />\\n    <Shared::Button\\n      @type=\\\"primary\\\"\\n      @text=\\\"Cancel\\\"\\n      @onClick={{@data.onCancel}}\\n      class=\\\"c-feature-workflow-visualizer-step-common-handle-manually-modal__cancel-button\\\"\\n      data-test-feature-workflow-visualizer-step-common-handle-manually-modal-cancel-button\\n    />\\n  </:footer>\\n</Shared::ModalSimple>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/common/handle-manually-modal/template.hbs' });\n","import type ModalFeatureService from 'client/features/modal/services/feature';\nimport type WorkflowVisualizerFeatureService from 'client/features/workflow-visualizer/services/feature';\nimport type WorkflowVisualizerUtilsInternalFeatureService from 'client/features/workflow-visualizer/services/internal-feature/utils';\nimport type WorkflowVisualizerFeatureState from 'client/features/workflow-visualizer/state';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { TaskTypeEnum } from 'client/features/workflow-visualizer/types/workflow-step';\n\nconst HANDLE_MANUALLY_MODAL = 'feature/workflow-visualizer/step/common/handle-manually-modal';\n\nconst LOAD_RELATED_RECORD_WARNING =\n  'Subsequent steps may be missing critical context if no record is selected in this step.';\n\ninterface HandleManuallyArgs {\n  stepHistory: HydratedStepHistory;\n  disabled?: boolean;\n}\n\nexport default class WorkflowVisualizerStepCommonHandleManuallyComponent extends Component<HandleManuallyArgs> {\n  @service('feature/workflow-visualizer')\n  private readonly featureService: WorkflowVisualizerFeatureService;\n\n  @service('feature/workflow-visualizer/state')\n  private readonly state: WorkflowVisualizerFeatureState;\n\n  @service('feature/modal')\n  private readonly modalService: ModalFeatureService;\n\n  @service('feature/workflow-visualizer/internal-feature/utils')\n  private declare utils: WorkflowVisualizerUtilsInternalFeatureService;\n\n  get isButtonDisabled(): boolean {\n    return (\n      this.utils.areStepButtonsDisabled(this.args.stepHistory)\n      || this.isManuallyCompleted\n      || this.isHandlingManually\n      || Boolean(this.args.disabled)\n    );\n  }\n\n  get isHandlingManually(): boolean {\n    return this.state.isHandlingManually;\n  }\n\n  get isManuallyCompleted(): boolean {\n    return Boolean(this.args.stepHistory.context?.manuallyCompleted);\n  }\n\n  get isActive(): boolean {\n    return this.isManuallyCompleted;\n  }\n\n  private get shouldOpenConfirmationModal(): boolean {\n    const { step } = this.args.stepHistory;\n    if (!step) return false;\n\n    return 'taskType' in step && step.taskType === TaskTypeEnum.LoadRelatedRecord;\n  }\n\n  @action\n  handleManually(): void {\n    if (this.isManuallyCompleted) return;\n    if (this.isHandlingManually) return;\n    if (this.args.disabled) return;\n\n    if (this.shouldOpenConfirmationModal) {\n      this.modalService.open(HANDLE_MANUALLY_MODAL, {\n        hideCloseButton: true,\n        data: {\n          description: LOAD_RELATED_RECORD_WARNING,\n          onConfirm: async () => {\n            await this.featureService.handleManuallyStep();\n            this.modalService.close();\n          },\n          onCancel: () => {\n            this.modalService.close();\n          },\n        },\n      });\n\n      return;\n    }\n\n    void this.featureService.handleManuallyStep();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-visualizer-step-common-handle-manually\\\"\\n  data-test-feature-workflow-visualizer-step-common-handle-manually\\n  ...attributes\\n>\\n  <Shared::Button\\n    @type=\\\"ghost-purple\\\"\\n    @text=\\\"Handle manually\\\"\\n    @iconName=\\\"close\\\"\\n    @onClick={{this.handleManually}}\\n    @size=\\\"small\\\"\\n    @isActive={{this.isActive}}\\n    @isLoading={{this.isHandlingManually}}\\n    disabled={{this.isButtonDisabled}}\\n    aria-disabled={{if this.isManuallyCompleted \\'true\\'}}\\n    class=\\\"c-feature-workflow-visualizer-step-common-handle-manually__button\\\"\\n    data-test-feature-workflow-visualizer-step-common-handle-manually-button\\n  />\\n</div>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/common/handle-manually/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-visualizer-step-common-record-context-title\\\"\\n  data-test-feature-workflow-visualizer-step-common-record-context-title\\n  ...attributes\\n>\\n  <div>{{yield}}</div>\\n  <Feature::WorkflowVisualizer::Step::Common::SelectedRecord\\n    class=\\\"c-feature-workflow-visualizer-step-common-record-context-title__record\\\"\\n    @selectedRecordRef={{@selectedRecordRef}}\\n    @showCollectionPrefix={{true}}\\n  />\\n</div>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/common/record-context-title/template.hbs' });\n","import type CollectionModel from 'client/data/models/collection';\nimport type CollectionFeatureService from 'client/features/collection/services/feature';\nimport type { SelectedRecordRef } from 'client/features/workflow-visualizer/types/executor';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  selectedRecordRef?: SelectedRecordRef | null;\n  showCollectionPrefix?: boolean;\n}\n\nexport default class WorkflowVisualizerStepCommonSelectedRecordComponent extends Component<Args> {\n  @service('feature/collection')\n  private readonly collectionFeature: CollectionFeatureService;\n\n  get selectedRecordCollection(): CollectionModel | null {\n    const collectionName = this.args.selectedRecordRef?.collectionName;\n\n    return collectionName ? this.collectionFeature.getCollectionFromName(collectionName) : null;\n  }\n\n  get selectedRecordIds(): string[] {\n    const { recordId } = this.args.selectedRecordRef ?? {};\n    return recordId ? [recordId] : [];\n  }\n\n  get formattedRecordId(): string {\n    return this.args.selectedRecordRef?.recordId ?? '';\n  }\n\n  get collectionPrefix(): string {\n    return (\n      this.selectedRecordCollection?.displayName\n      ?? this.args.selectedRecordRef?.collectionName\n      ?? ''\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-visualizer-step-common-selected-record\\\"\\n  data-test-feature-workflow-visualizer-step-common-selected-record\\n  ...attributes\\n>\\n  {{#if @selectedRecordRef}}\\n    {{#if this.selectedRecordCollection}}\\n      {{#if @showCollectionPrefix}}\\n        {{this.collectionPrefix}}\\n        &gt;\\n      {{/if}}\\n      <Feature::ClientRecord::ReferenceField\\n        @collection={{this.selectedRecordCollection}}\\n        @isLinkDisabled={{true}}\\n        @recordIds={{this.selectedRecordIds}}\\n        data-test-feature-workflow-visualizer-step-common-selected-record-reference-field\\n      />\\n    {{else}}\\n      <span\\n        class=\\\"c-feature-workflow-visualizer-step-common-selected-record__fallback\\\"\\n        data-test-feature-workflow-visualizer-step-common-selected-record-fallback\\n      >\\n        {{#if @showCollectionPrefix}}\\n          {{this.collectionPrefix}}\\n          {{#if this.formattedRecordId}}\\n            &gt;\\n          {{/if}}\\n        {{/if}}\\n        {{this.formattedRecordId}}\\n      </span>\\n    {{/if}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/common/selected-record/template.hbs' });\n","import type WorkflowVisualizerFeatureService from 'client/features/workflow-visualizer/services/feature';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { type WorkflowTransition } from 'client/features/workflow-visualizer/types/workflow-step';\n\ninterface Args {\n  transition: WorkflowTransition;\n  isActive: boolean;\n  stepHistory: HydratedStepHistory;\n  dataToSendOnSubmit?: unknown;\n}\n\nexport default class WorkflowVisualizerStepCommonTransitionButtonComponent extends Component<Args> {\n  @service('feature/workflow-visualizer')\n  private readonly featureService: WorkflowVisualizerFeatureService;\n\n  get buttonText() {\n    return this.args.transition.answer || this.args.transition.buttonText || 'Done';\n  }\n\n  get buttonColor() {\n    if (this.args.transition.buttonColor) {\n      return this.args.transition.buttonColor;\n    }\n\n    if (this.isYesButton) {\n      return 'green';\n    }\n\n    if (this.isNoButton) {\n      return 'red';\n    }\n\n    return 'primary';\n  }\n\n  get iconName() {\n    if (this.args.transition.buttonColor) {\n      return null;\n    }\n\n    if (this.isNoButton) {\n      return 'close';\n    }\n\n    return 'check';\n  }\n\n  private get isYesButton() {\n    return (\n      this.args.transition.answer?.toLowerCase() === 'yes'\n      || this.args.transition.buttonText?.toLowerCase() === 'yes'\n    );\n  }\n\n  private get isNoButton() {\n    return (\n      this.args.transition.answer?.toLowerCase() === 'no'\n      || this.args.transition.buttonText?.toLowerCase() === 'no'\n    );\n  }\n\n  @action\n  async onClick(): Promise<void> {\n    if (this.args.dataToSendOnSubmit) {\n      await this.featureService.submitPendingData(this.args.dataToSendOnSubmit);\n      return;\n    }\n\n    await this.featureService.continueWorkflow();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  @type={{concat \\'ghost-\\' this.buttonColor}}\\n  @onClick={{this.onClick}}\\n  @text={{this.buttonText}}\\n  @size=\\\"small\\\"\\n  @isActive={{@isActive}}\\n  @iconName={{this.iconName}}\\n  @iconSize=\\\"small\\\"\\n  data-test-transition-button={{this.buttonText}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/common/transition-button/template.hbs' });\n","import type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\n\nimport Component from '@glimmer/component';\n\nimport {\n  isConditionStep,\n  isEndStep,\n  isEscalationStep,\n  isGetDataTask,\n  isLoadRelatedRecordTask,\n  isMcpServerTask,\n  isTriggerActionTask,\n  isUpdateDataTask,\n} from 'client/features/workflow-visualizer/types/type-guards';\n\ninterface Args {\n  stepHistory: HydratedStepHistory;\n}\n\nexport default class WorkflowVisualizerStepComponent extends Component<Args> {\n  get step() {\n    return this.args.stepHistory.step;\n  }\n\n  get errorMessage() {\n    return this.args.stepHistory.context?.error;\n  }\n\n  get hasError() {\n    return Boolean(this.errorMessage);\n  }\n\n  get isGetDataTask() {\n    return this.step && isGetDataTask(this.step);\n  }\n\n  get isUpdateDataTask() {\n    return this.step && isUpdateDataTask(this.step);\n  }\n\n  get isTriggerActionTask() {\n    return this.step && isTriggerActionTask(this.step);\n  }\n\n  get isLoadRelatedRecordTask() {\n    return this.step && isLoadRelatedRecordTask(this.step);\n  }\n\n  get isMcpServerTask() {\n    return this.step && isMcpServerTask(this.step);\n  }\n\n  get isConditionStep() {\n    return this.step && isConditionStep(this.step);\n  }\n\n  get isEscalationStep() {\n    return this.step && isEscalationStep(this.step);\n  }\n\n  get isEndStep() {\n    return this.step && isEndStep(this.step);\n  }\n}\n","import type WorkflowVisualizerUtilsInternalFeatureService from 'client/features/workflow-visualizer/services/internal-feature/utils';\nimport type { ConditionStepExecution } from 'client/features/workflow-visualizer/types/executor';\nimport type {\n  WorkflowCondition,\n  WorkflowTransition,\n} from 'client/features/workflow-visualizer/types/workflow-step';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { isAutomated } from 'client/features/workflow-visualizer/types/type-guards';\nimport { type HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\n\ninterface Args {\n  stepHistory: HydratedStepHistory<WorkflowCondition, ConditionStepExecution>;\n}\n\nexport default class WorkflowVisualizerStepConditionComponent extends Component<Args> {\n  @service('feature/workflow-visualizer/internal-feature/utils')\n  private declare utils: WorkflowVisualizerUtilsInternalFeatureService;\n\n  get isRevisedOrCancelled() {\n    return this.utils.isStepRevisedOrCancelled(this.args.stepHistory);\n  }\n\n  get isAiDecisionStep(): boolean {\n    const { step } = this.args.stepHistory;\n    return step !== null && isAutomated(step);\n  }\n\n  get shouldDisplaySpinner(): boolean {\n    return this.isAiDecisionStep && this.args.stepHistory.isLoading && !this.isRevisedOrCancelled;\n  }\n\n  get aiDecisionError(): string | undefined {\n    return this.isAiDecisionStep && !this.isRevisedOrCancelled\n      ? this.args.stepHistory.context?.error\n      : undefined;\n  }\n\n  get isManualFallback(): boolean {\n    return Boolean(\n      this.isAiDecisionStep\n        && !this.isRevisedOrCancelled\n        && this.args.stepHistory.done\n        && this.args.stepHistory.context?.error,\n    );\n  }\n\n  get reasoning() {\n    return this.isAiDecisionStep && !this.isRevisedOrCancelled\n      ? this.args.stepHistory.executorStep?.executionParams?.reasoning\n      : undefined;\n  }\n\n  @action\n  dataToSendOnSubmit(transition: WorkflowTransition) {\n    return { selectedOption: transition.answer };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<p class=\\\"c-feature-workflow-card-step__prompt\\\">\\n  {{! template-lint-disable no-triple-curlies }}\\n  {{{@stepHistory.safePrompt}}}\\n</p>\\n\\n{{#if this.shouldDisplaySpinner}}\\n  <Shared::Spinner data-test-feature-workflow-visualizer-step-condition-loading />\\n{{/if}}\\n\\n{{#if this.aiDecisionError}}\\n  <Feature::Workflow::AiInteraction::Tools::Error\\n    @error={{this.aiDecisionError}}\\n    @prompt={{@stepHistory.step.prompt}}\\n    data-test-feature-workflow-visualizer-step-condition-error\\n  />\\n{{/if}}\\n\\n{{#if this.isManualFallback}}\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"info\\\"\\n    @canHide={{false}}\\n    data-test-feature-workflow-visualizer-step-condition-manual-fallback\\n  >\\n    Option selected manually by the user.\\n  </Shared::Feedback::Notification::NotificationInApp>\\n{{/if}}\\n\\n{{#if this.reasoning}}\\n  <Feature::Workflow::AiInteraction::AiPanel\\n    data-test-feature-workflow-visualizer-step-condition-aipanel\\n    ...attributes\\n  >\\n    <:body>\\n      <p>\\n        AI Decision:\\n      </p>\\n      <p>\\n        {{this.reasoning}}\\n      </p>\\n    </:body>\\n  </Feature::Workflow::AiInteraction::AiPanel>\\n{{/if}}\\n\\n<Feature::WorkflowVisualizer::Step::Common::Buttons\\n  @stepHistory={{@stepHistory}}\\n  @forceDisplayTransitions={{true}}\\n  @dataToSendOnSubmit={{this.dataToSendOnSubmit}}\\n/>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/condition/template.hbs' });\n","import type WorkflowVisualizerFeatureService from 'client/features/workflow-visualizer/services/feature';\nimport type WorkflowVisualizerFeatureState from 'client/features/workflow-visualizer/state';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\nimport type { WorkflowEnd } from 'client/features/workflow-visualizer/types/workflow-step';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface StepEndArgs {\n  stepHistory: HydratedStepHistory<WorkflowEnd>;\n}\n\nexport default class WorkflowVisualizerStepEndComponent extends Component<StepEndArgs> {\n  @service('feature/workflow-visualizer')\n  private declare featureService: WorkflowVisualizerFeatureService;\n\n  @service('feature/workflow-visualizer/state')\n  private declare state: WorkflowVisualizerFeatureState;\n\n  get shouldShowConfetti(): boolean {\n    return this.state.shouldShowEndConfetti;\n  }\n\n  @action\n  closeWorkflow(): void {\n    this.featureService.closePanel();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @stepHistory.safePrompt}}\\n  <p class=\\\"c-feature-workflow-card-step__prompt\\\">\\n    {{! template-lint-disable no-triple-curlies }}\\n    {{{@stepHistory.safePrompt}}}\\n  </p>\\n{{/if}}\\n\\n{{#if this.shouldShowConfetti}}\\n  <Shared::Confetti @containerSelector=\\\".c-feature-workflow-card\\\" />\\n{{/if}}\\n\\n<div class=\\\"c-feature-workflow-card-step__buttons\\\">\\n  <Shared::Button\\n    @type=\\\"ghost-primary\\\"\\n    @iconName=\\\"check\\\"\\n    @text=\\\"Close workflow\\\"\\n    @size=\\\"small\\\"\\n    @onClick={{this.closeWorkflow}}\\n    data-test-feature-workflow-visualizer-step-end-close\\n  />\\n</div>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/end/template.hbs' });\n","import type WorkflowVisualizerFeatureService from 'client/features/workflow-visualizer/services/feature';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\nimport type { WorkflowEscalation } from 'client/features/workflow-visualizer/types/workflow-step';\nimport type LayoutState from 'client/shared/states/layout';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { WorkflowEscalationStateEnum } from 'client/features/workflow/types/workflow';\n\ninterface Args {\n  stepHistory: HydratedStepHistory<WorkflowEscalation>;\n}\n\nexport default class WorkflowVisualizerStepEscalationComponent extends Component<Args> {\n  @service('shared/state/layout') private readonly layoutState: LayoutState;\n  @service('feature/workflow-visualizer')\n  private readonly workflowVisualizerFeature: WorkflowVisualizerFeatureService;\n\n  @tracked isLoading = false;\n\n  get canDisplaySuccessEscalationMessage() {\n    return this.args.stepHistory.context.escalationState === WorkflowEscalationStateEnum.Escalated;\n  }\n\n  get canDisplayErrorEscalationMessage() {\n    return this.args.stepHistory.context.escalationState === WorkflowEscalationStateEnum.Error;\n  }\n\n  get hasClickedEscalate() {\n    return Boolean(this.args.stepHistory.context.escalationState);\n  }\n\n  get step() {\n    return this.args.stepHistory.step;\n  }\n\n  get inbox() {\n    return this.layoutState.inboxes.find((inbox) => inbox.id === this.step.inboxId);\n  }\n\n  @action\n  public closeWorkflow() {\n    this.workflowVisualizerFeature.closePanel();\n  }\n\n  @action\n  public async handleOnClick() {\n    this.isLoading = true;\n\n    await this.workflowVisualizerFeature.escalate(this.step.inboxId);\n\n    this.isLoading = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-workflow-visualizer-step-escalation\\\" ...attributes>\\n  <span data-test-feature-workflow-visualizer-escalation-title>\\n    {{this.step.title}}\\n  </span>\\n  <p\\n    class=\\\"c-feature-workflow-visualizer-step-escalation__description\\\"\\n    data-test-feature-workflow-visualizer-escalation-description\\n  >\\n    You\\'re about to escalate this workflow to the\\n    <span class=\\\"c-feature-workflow-visualizer-step-escalation__inbox-name\\\">\\n      {{~this.inbox.name~}}\\n    </span>.\\n  </p>\\n\\n  <Feature::Workflow::Button::Escalate\\n    @disabled={{this.hasClickedEscalate}}\\n    @onClick={{this.handleOnClick}}\\n    @isLoading={{this.isLoading}}\\n  />\\n\\n  {{#if this.hasClickedEscalate}}\\n    {{#if this.canDisplaySuccessEscalationMessage}}\\n      <Shared::TextWithState\\n        @state=\\\"success\\\"\\n        data-test-feature-workflow-visualizer-escalation-success-message\\n      >\\n        This workflow has been successfully escalated.<br />\\n        It can be picked back up at any time from the\\n        <span class=\\\"c-feature-workflow-visualizer-step-escalation__inbox-name\\\">\\n          {{~this.inbox.name~}}\\n        </span>.<br />\\n        {{#unless @stepHistory.done}}\\n          You may now close this workflow.<br />\\n        {{/unless}}\\n      </Shared::TextWithState>\\n    {{else if this.canDisplayErrorEscalationMessage}}\\n      <Shared::TextWithState\\n        @state=\\\"error\\\"\\n        data-test-feature-workflow-visualizer-escalation-error-message\\n      >\\n        I couldn\\'t escalate this record into the specified inbox, maybe because it has been deleted.<br\\n        />\\n        Please check with an Admin, and try again.<br />\\n      </Shared::TextWithState>\\n    {{/if}}\\n    {{#unless @stepHistory.done}}\\n      <div class=\\\"c-feature-workflow-visualizer-step-escalation__button\\\">\\n        {{#if this.canDisplayErrorEscalationMessage}}\\n          <Shared::Button\\n            @size=\\\"small\\\"\\n            @isActive={{false}}\\n            @onClick={{this.handleOnClick}}\\n            @text=\\\"Try again\\\"\\n            @type=\\\"ghost-primary\\\"\\n            data-test-feature-workflow-visualizer-escalation-try-again-button\\n          />\\n        {{/if}}\\n        <Shared::Button\\n          @size=\\\"small\\\"\\n          @isActive={{false}}\\n          @onClick={{this.closeWorkflow}}\\n          @text=\\\"Close\\\"\\n          @type=\\\"ghost-primary\\\"\\n          data-test-feature-workflow-visualizer-escalation-close-button\\n        />\\n      </div>\\n    {{/unless}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/escalation/template.hbs' });\n","import type Field from 'client/data/models/field';\nimport type CollectionFeatureService from 'client/features/collection/services/feature';\nimport type {\n  ReadRecordStepExecution,\n  StepExecution,\n} from 'client/features/workflow-visualizer/types/executor';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\nimport type { WorkflowTask } from 'client/features/workflow-visualizer/types/workflow-step';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { ExecutorStepExecutionTypeEnum } from 'client/features/workflow-visualizer/types/executor';\n\ninterface StepGetDataArgs {\n  stepHistory: HydratedStepHistory<WorkflowTask>;\n}\n\ninterface DisplayedField {\n  name: string;\n  displayName: string;\n  value?: unknown;\n  error?: string;\n  field: Field | null;\n}\n\nexport default class WorkflowVisualizerStepGetDataComponent extends Component<StepGetDataArgs> {\n  @service('feature/collection')\n  private readonly collectionFeature: CollectionFeatureService;\n\n  get step() {\n    return this.args.stepHistory.step;\n  }\n\n  get executorStep(): ReadRecordStepExecution | null {\n    const exec: StepExecution | null = this.args.stepHistory.executorStep;\n\n    return exec?.type === ExecutorStepExecutionTypeEnum.ReadRecord ? exec : null;\n  }\n\n  get selectedRecordRef() {\n    return this.executorStep?.selectedRecordRef;\n  }\n\n  get displayedFields(): DisplayedField[] {\n    const rawFields = this.executorStep?.executionResult?.fields ?? [];\n    const collectionName = this.selectedRecordRef?.collectionName;\n    const collection = collectionName\n      ? this.collectionFeature.getCollectionFromName(collectionName)\n      : null;\n    const primaryKey = collection?.primaryKey;\n    const orderIndex = new Map<string, number>(\n      (collection?.fields ?? []).map((f, i) => [f.fieldName, i] as const),\n    );\n    const positionOf = (name: string): number => {\n      if (primaryKey && name === primaryKey) return -1;\n      return orderIndex.get(name) ?? Number.MAX_SAFE_INTEGER;\n    };\n\n    return rawFields\n      .map((rawField) => ({\n        ...rawField,\n        field: collection?.fields?.findBy('fieldName', rawField.name) ?? null,\n      }))\n      .sort((a, b) => positionOf(a.name) - positionOf(b.name));\n  }\n\n  get isLoading() {\n    return this.args.stepHistory.isLoading;\n  }\n}\n","import type Field from 'client/data/models/field';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { WidgetDisplayTypeEnum } from 'client/utils/widgets';\n\ninterface Args {\n  name: string;\n  displayName: string;\n  value?: unknown;\n  error?: string;\n  field: Field | null;\n}\n\nconst INLINE_FIELD_WIDGETS: WidgetDisplayTypeEnum[] = [\n  WidgetDisplayTypeEnum.Address,\n  WidgetDisplayTypeEnum.Array,\n  WidgetDisplayTypeEnum.AssigneeArray,\n  WidgetDisplayTypeEnum.BooleanCheckbox,\n  WidgetDisplayTypeEnum.Color,\n  WidgetDisplayTypeEnum.Date,\n  WidgetDisplayTypeEnum.Number,\n  WidgetDisplayTypeEnum.Percentage,\n  WidgetDisplayTypeEnum.Point,\n  WidgetDisplayTypeEnum.Price,\n  WidgetDisplayTypeEnum.Text,\n  WidgetDisplayTypeEnum.Time,\n];\n\nexport default class WorkflowVisualizerStepGetDataFieldComponent extends Component<Args> {\n  @tracked isOpen = true;\n\n  get isInline() {\n    const widgetName = this.args.field?.widgetDisplay?.name as WidgetDisplayTypeEnum | undefined;\n\n    return !widgetName || INLINE_FIELD_WIDGETS.includes(widgetName);\n  }\n\n  get hasError() {\n    return Boolean(this.args.error);\n  }\n\n  @action\n  expand(): void {\n    this.isOpen = true;\n  }\n\n  @action\n  retract(): void {\n    this.isOpen = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Shared::Card::Deployable\\n  @isOpen={{this.isOpen}}\\n  @onExpand={{this.expand}}\\n  @onRetract={{this.retract}}\\n  @headerIcon={{if this.hasError \\'close\\' \\'check\\'}}\\n  class={{get-classes-with-modifiers\\n    \\'c-feature-workflow-visualizer-step-get-data-field\\'\\n    error=this.hasError\\n  }}\\n  data-test-feature-workflow-visualizer-step-get-data-field\\n>\\n  <:header>\\n    <span\\n      class=\\\"c-feature-workflow-visualizer-step-get-data-field__label\\\"\\n      data-test-feature-workflow-visualizer-step-get-data-field-label\\n    >\\n      {{@displayName}}\\n    </span>\\n  </:header>\\n  <:body>\\n    {{#if this.hasError}}\\n      <span\\n        class=\\\"c-feature-workflow-visualizer-step-get-data-field__error\\\"\\n        data-test-feature-workflow-visualizer-step-get-data-field-error\\n      >\\n        {{@error}}\\n      </span>\\n    {{else if @field}}\\n      <Widgets::Widget\\n        class={{get-classes-with-modifiers\\n          \\'c-feature-workflow-visualizer-step-get-data-field__widget\\'\\n          inline=this.isInline\\n        }}\\n        @type=\\\"display-row\\\"\\n        @widgetConfiguration={{@field.widgetDisplay}}\\n        @field={{@field}}\\n        @value={{@value}}\\n        @label={{@value}}\\n        data-test-feature-workflow-visualizer-step-get-data-field-value\\n      />\\n    {{else}}\\n      <span\\n        class=\\\"c-feature-workflow-visualizer-step-get-data-field__value\\\"\\n        data-test-feature-workflow-visualizer-step-get-data-field-value\\n      >\\n        {{@value}}\\n      </span>\\n    {{/if}}\\n  </:body>\\n</Feature::BrowserExtension::Shared::Card::Deployable>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/get-data/field/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-visualizer-step-get-data\\\"\\n  data-test-feature-workflow-visualizer-step-get-data\\n  ...attributes\\n>\\n  <p class=\\\"c-feature-workflow-visualizer-step-get-data__prompt\\\">\\n    {{! template-lint-disable no-triple-curlies }}\\n    {{{@stepHistory.safePrompt}}}\\n  </p>\\n\\n  {{#if this.isLoading}}\\n    <Shared::Spinner\\n      class=\\\"c-feature-workflow-visualizer-step-get-data__spinner\\\"\\n      data-test-feature-workflow-visualizer-step-get-data-loading\\n    />\\n  {{else if this.selectedRecordRef}}\\n    <Feature::WorkflowVisualizer::AiPanel\\n      data-test-feature-workflow-visualizer-step-get-data-result\\n    >\\n      <:title>\\n        <Feature::WorkflowVisualizer::Step::Common::RecordContextTitle\\n          @selectedRecordRef={{this.selectedRecordRef}}\\n          data-test-feature-workflow-visualizer-step-get-data-selected-record\\n        >\\n          Here\\'s what you\\'re looking for:\\n        </Feature::WorkflowVisualizer::Step::Common::RecordContextTitle>\\n      </:title>\\n      <:footer>\\n        <div class=\\\"c-feature-workflow-visualizer-step-get-data__values\\\">\\n          {{#each this.displayedFields as |field|}}\\n            <Feature::WorkflowVisualizer::Step::GetData::Field\\n              @name={{field.name}}\\n              @displayName={{field.displayName}}\\n              @value={{field.value}}\\n              @error={{field.error}}\\n              @field={{field.field}}\\n            />\\n          {{/each}}\\n        </div>\\n      </:footer>\\n    </Feature::WorkflowVisualizer::AiPanel>\\n  {{/if}}\\n\\n  <Feature::WorkflowVisualizer::Step::Common::Buttons\\n    @stepHistory={{@stepHistory}}\\n    @disabled={{this.isLoading}}\\n  />\\n</div>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/get-data/template.hbs' });\n","import type WorkflowVisualizerUtilsInternalFeatureService from 'client/features/workflow-visualizer/services/internal-feature/utils';\nimport type { GuidanceStepExecution } from 'client/features/workflow-visualizer/types/executor';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\nimport type {\n  WorkflowTaskGuideline,\n  WorkflowTransition,\n} from 'client/features/workflow-visualizer/types/workflow-step';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ninterface Args {\n  stepHistory: HydratedStepHistory<WorkflowTaskGuideline, GuidanceStepExecution>;\n}\n\nexport default class WorkflowVisualizerStepGuidelineComponent extends Component<Args> {\n  @service('feature/workflow-visualizer/internal-feature/utils')\n  private declare utils: WorkflowVisualizerUtilsInternalFeatureService;\n\n  @tracked _userText: string = '';\n\n  get userText() {\n    return this.args.stepHistory.executorStep?.executionResult?.userInput ?? this._userText;\n  }\n\n  get step() {\n    return this.args.stepHistory.step;\n  }\n\n  get isRevisedOrCancelled() {\n    return this.utils.isStepRevisedOrCancelled(this.args.stepHistory);\n  }\n\n  get isInputDisabled() {\n    return this.utils.areStepButtonsDisabled(this.args.stepHistory);\n  }\n\n  get requiresUserInput() {\n    return this.args.stepHistory.step.completionType === 'user-input';\n  }\n\n  @action\n  dataToSendOnSubmit(_transition: WorkflowTransition) {\n    return this.requiresUserInput ? { userInput: this.userText } : {};\n  }\n\n  @action\n  handleChange(value: string): void {\n    this._userText = value;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<p class=\\\"c-feature-workflow-card-step__prompt\\\">\\n  {{! template-lint-disable no-triple-curlies }}\\n  {{{@stepHistory.safePrompt}}}\\n</p>\\n\\n{{#if this.requiresUserInput}}\\n  <Shared::BetaTextarea\\n    @value={{one-way this.userText}}\\n    @onChange={{this.handleChange}}\\n    @autoGrow={{true}}\\n    @disabled={{this.isInputDisabled}}\\n    @placeholder=\\\"Type your response here...\\\"\\n    class=\\\"c-feature-workflow-visualizer-card-step-user-input__textarea\\\"\\n    data-test-feature-workflow-visualizer-card-step-user-input-textarea\\n  />\\n{{/if}}\\n\\n<Feature::WorkflowVisualizer::Step::Common::Buttons\\n  @stepHistory={{@stepHistory}}\\n  @forceDisplayTransitions={{true}}\\n  @dataToSendOnSubmit={{this.dataToSendOnSubmit}}\\n/>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/guideline/template.hbs' });\n","import type WorkflowVisualizerUtilsInternalFeatureService from 'client/features/workflow-visualizer/services/internal-feature/utils';\nimport type { LoadRelatedRecordStepExecution } from 'client/features/workflow-visualizer/types/executor';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\nimport type { WorkflowTaskLoadRelatedRecord } from 'client/features/workflow-visualizer/types/workflow-step';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  stepHistory: HydratedStepHistory<WorkflowTaskLoadRelatedRecord, LoadRelatedRecordStepExecution>;\n}\n\nexport default class WorkflowVisualizerStepLoadRelatedRecordComponent extends Component<Args> {\n  @service('feature/workflow-visualizer/internal-feature/utils')\n  private declare utils: WorkflowVisualizerUtilsInternalFeatureService;\n\n  get step() {\n    return this.args.stepHistory.step;\n  }\n\n  get error() {\n    return this.args.stepHistory.context?.error;\n  }\n\n  get isLoading() {\n    return this.utils.isInitiallyLoading(this.args.stepHistory);\n  }\n}\n","import type CollectionFeatureService from 'client/features/collection/services/feature';\nimport type WorkflowVisualizerFeatureService from 'client/features/workflow-visualizer/services/feature';\nimport type WorkflowVisualizerUtilsInternalFeatureService from 'client/features/workflow-visualizer/services/internal-feature/utils';\nimport type WorkflowVisualizerFeatureState from 'client/features/workflow-visualizer/state';\nimport type { LoadRelatedRecordStepExecution } from 'client/features/workflow-visualizer/types/executor';\nimport type { WorkflowTaskLoadRelatedRecord } from 'client/features/workflow-visualizer/types/workflow-step';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { type HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\n\ninterface Args {\n  stepHistory: HydratedStepHistory<WorkflowTaskLoadRelatedRecord, LoadRelatedRecordStepExecution>;\n}\n\nexport default class WorkflowVisualizerStepLoadRelatedRecordLoadedComponent extends Component<Args> {\n  @service('feature/workflow-visualizer/state')\n  private readonly state: WorkflowVisualizerFeatureState;\n\n  @service('feature/workflow-visualizer')\n  private readonly workflowVisualizer: WorkflowVisualizerFeatureService;\n\n  @service('feature/collection')\n  private readonly collectionFeature: CollectionFeatureService;\n\n  @service('feature/workflow-visualizer/internal-feature/utils')\n  private declare utils: WorkflowVisualizerUtilsInternalFeatureService;\n\n  @tracked public userSelectedField: string | null = null;\n  @tracked public userSelectedRecord: string | null = null;\n  @tracked private isReloadingRecords = false;\n\n  constructor(owner: unknown, args: Args) {\n    super(owner, args);\n  }\n\n  get possibleRelatedFields() {\n    return this.args.stepHistory.executorStep?.pendingData?.availableFields;\n  }\n\n  get possibleRecords() {\n    return this.args.stepHistory.executorStep?.pendingData?.availableRecordIds?.map((candidate) => {\n      const value = candidate.recordId;\n      return { value, displayName: candidate.referenceFieldValue ?? value };\n    });\n  }\n\n  get executionResult() {\n    return this.args.stepHistory.executorStep?.executionResult;\n  }\n\n  // The source record this step loads related data from — shown in the panel title. The\n  // executor returns it directly on the step (same as get-data's ReadRecord step).\n  get selectedRecordRef() {\n    return this.args.stepHistory.executorStep?.selectedRecordRef;\n  }\n\n  get selectedField() {\n    const result = this.executionResult;\n    const confirmedField = result && !result.skipped ? result.relation.name : undefined;\n    const suggestedField = this.args.stepHistory.executorStep?.pendingData?.suggestedField?.name;\n\n    return confirmedField || this.userSelectedField || suggestedField;\n  }\n\n  get selectedRecord() {\n    const result = this.executionResult;\n    const confirmedRecord = result && !result.skipped ? result.record.recordId : undefined;\n    const suggestedRecord =\n      this.args.stepHistory.executorStep?.pendingData?.suggestedRecord?.recordId;\n\n    return confirmedRecord || this.userSelectedRecord || suggestedRecord;\n  }\n\n  @action\n  async onFieldChange(fieldName: string) {\n    this.userSelectedField = fieldName;\n    this.userSelectedRecord = null;\n\n    if (!fieldName) return;\n\n    this.isReloadingRecords = true;\n    const ok = await this.workflowVisualizer.submitPendingData({ fieldName });\n    // The normal reset comes from `onRecordsRefreshed` (did-update on pendingData) once the\n    // executor pushes the new records through the subscription. If the POST /trigger fails, no\n    // new data will ever arrive, so we unblock here to avoid a stuck spinner.\n    if (!ok && !(this.isDestroying || this.isDestroyed)) this.isReloadingRecords = false;\n  }\n\n  // Bridges the asynchronous executor flow: submitPendingData only triggers the recompute on the\n  // executor side; the new records come back later via the subscription (executorDataChanged →\n  // GET → executorSteps replaced → pendingData replaced). We therefore turn the loader off when\n  // pendingData changes, not when submitPendingData resolves.\n  @action\n  onRecordsRefreshed() {\n    this.isReloadingRecords = false;\n  }\n\n  @action\n  async onRecordChange(record: string) {\n    this.userSelectedRecord = record;\n  }\n\n  @action\n  async confirmToolExecution() {\n    if (!this.selectedField || !this.selectedRecord) return;\n\n    await this.workflowVisualizer.submitPendingData({\n      userConfirmed: true,\n      fieldName: this.selectedField,\n      selectedRecordId: this.selectedRecord,\n    });\n  }\n\n  get isConfirmButtonDisabled() {\n    return this.areButtonsDisabled || !this.selectedField || !this.selectedRecord;\n  }\n\n  get areButtonsDisabled() {\n    return (\n      this.utils.areStepButtonsDisabled(this.args.stepHistory)\n      || this.isReloadingRecords\n      || this.state.isSubmittingPendingData\n    );\n  }\n\n  get isLoading() {\n    return this.utils.isLoading(this.args.stepHistory) || this.isReloadingRecords;\n  }\n\n  // True once the step was confirmed with a record (not skipped) — drives the persisted \"pressed\"\n  // highlight on the confirm button. NOT \"a record is picked in the dropdown\".\n  get isRecordConfirmed() {\n    return this.executionResult && !this.executionResult.skipped && Boolean(this.selectedRecord);\n  }\n\n  get collection() {\n    if (!this.executionResult || this.executionResult?.skipped) return null;\n\n    const collectionName = this.executionResult.record.collectionName;\n    return this.collectionFeature.getCollectionFromName(collectionName);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::WorkflowVisualizer::AiPanel\\n  class=\\\"c-feature-workflow-visualizer-step-load-related-record-loaded\\\"\\n  {{did-update this.onRecordsRefreshed @stepHistory.executorStep.pendingData}}\\n  ...attributes\\n>\\n  <:title>\\n    <Feature::WorkflowVisualizer::Step::Common::RecordContextTitle\\n      @selectedRecordRef={{this.selectedRecordRef}}\\n    >\\n      Here is a list of related records for:\\n    </Feature::WorkflowVisualizer::Step::Common::RecordContextTitle>\\n  </:title>\\n  <:body>\\n    <Shared::BetaLabel\\n      @label=\\\"Related Data\\\"\\n      class=\\\"c-feature-workflow-visualizer-step-load-related-record-loaded__label\\\"\\n    >\\n      <Shared::BetaSelect\\n        @options={{this.possibleRelatedFields}}\\n        @value={{one-way this.selectedField}}\\n        @namePath=\\\"displayName\\\"\\n        @valuePath=\\\"name\\\"\\n        @onChange={{this.onFieldChange}}\\n        @placeholder=\\\"Select a related field\\\"\\n        @disabled={{this.areButtonsDisabled}}\\n        class=\\\"c-feature-workflow-visualizer-step-load-related-record-loaded__select\\\"\\n      />\\n    </Shared::BetaLabel>\\n    <Shared::BetaLabel\\n      @label=\\\"Record\\\"\\n      class=\\\"c-feature-workflow-visualizer-step-load-related-record-loaded__label\\\"\\n    >\\n      {{#if this.isLoading}}\\n        <Shared::Feedback::BetaLoader\\n          @type=\\\"custom\\\"\\n          class=\\\"c-feature-workflow-visualizer-step-load-related-record-loaded__loader\\\"\\n        />\\n      {{else}}\\n        <Shared::BetaSelect\\n          @options={{this.possibleRecords}}\\n          @value={{one-way this.selectedRecord}}\\n          @onChange={{this.onRecordChange}}\\n          @namePath=\\\"displayName\\\"\\n          @valuePath=\\\"value\\\"\\n          @placeholder=\\\"Please select a record\\\"\\n          @emptyText=\\\"No related records found\\\"\\n          @disabled={{this.areButtonsDisabled}}\\n          class=\\\"c-feature-workflow-visualizer-step-load-related-record-loaded__select\\\"\\n        />\\n      {{/if}}\\n    </Shared::BetaLabel>\\n  </:body>\\n  <:footer>\\n    <div class=\\\"c-feature-workflow-visualizer-step-common-buttons\\\">\\n      <Shared::Button\\n        @type=\\\"ghost-purple\\\"\\n        @onClick={{this.confirmToolExecution}}\\n        @text=\\\"Use this record\\\"\\n        @size=\\\"small\\\"\\n        @iconName=\\\"check\\\"\\n        @iconSize=\\\"small\\\"\\n        disabled={{this.isConfirmButtonDisabled}}\\n        @isActive={{this.isRecordConfirmed}}\\n      />\\n      <Feature::WorkflowVisualizer::Step::Common::HandleManually\\n        @stepHistory={{@stepHistory}}\\n        @disabled={{this.areButtonsDisabled}}\\n      />\\n    </div>\\n\\n    {{#if this.state.isHandlingManually}}\\n      <Feature::WorkflowVisualizer::Step::Common::HandleManuallyInstruction\\n        @stepHistory={{@stepHistory}}\\n      />\\n    {{/if}}\\n\\n    {{#if this.executionResult.skipped}}\\n      <span class=\\\"c-feature-workflow-visualizer-step-load-related-record-loaded__loaded\\\">\\n        User handled manually this step, no record was loaded.\\n      </span>\\n    {{else if this.executionResult}}\\n      <span class=\\\"c-feature-workflow-visualizer-step-load-related-record-loaded__loaded\\\">\\n        <Feature::ClientRecord::ReferenceField\\n          @collection={{this.collection}}\\n          @isLinkDisabled={{true}}\\n          @recordIds={{array this.selectedRecord}}\\n          class=\\\"c-feature-workflow-visualizer-step-load-related-record-loaded__record-reference-field\\\"\\n        />\\n        successfully loaded, its Data and Actions can now be accessed in subsequent steps.\\n      </span>\\n    {{/if}}\\n  </:footer>\\n</Feature::WorkflowVisualizer::AiPanel>\\n\\n<Feature::WorkflowVisualizer::Step::Common::Buttons\\n  @stepHistory={{@stepHistory}}\\n  @disabled={{this.isLoading}}\\n/>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/load-related-record/loaded/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isLoading}}\\n  <Shared::Spinner data-test-feature-workflow-visualizer-step-load-related-record-loading />\\n{{else if this.error}}\\n  <Feature::Workflow::AiInteraction::Tools::Error\\n    @error={{this.error}}\\n    @prompt={{this.step.prompt}}\\n  />\\n{{else}}\\n  <Feature::WorkflowVisualizer::Step::LoadRelatedRecord::Loaded\\n    @stepHistory={{@stepHistory}}\\n    ...attributes\\n  />\\n{{/if}}\\n', { moduleName: 'client/features/workflow-visualizer/components/step/load-related-record/template.hbs' });\n","import type { SafeString } from '@ember/template/-private/handlebars';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\nimport type WorkflowVisualizerFeatureService from 'client/features/workflow-visualizer/services/feature';\nimport type WorkflowVisualizerUtilsInternalFeatureService from 'client/features/workflow-visualizer/services/internal-feature/utils';\nimport type WorkflowVisualizerFeatureState from 'client/features/workflow-visualizer/state';\nimport type { McpStepExecution } from 'client/features/workflow-visualizer/types/executor';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\nimport type { WorkflowTaskMcpServer } from 'client/features/workflow-visualizer/types/workflow-step';\nimport type HtmlSanitizerService from 'client/legacy/services/html-sanitizer';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { ExecutorStepExecutionTypeEnum } from 'client/features/workflow-visualizer/types/executor';\nimport { uuidv4 } from 'client/utils/uuid-utils';\n\ninterface Args {\n  stepHistory: HydratedStepHistory<WorkflowTaskMcpServer>;\n}\n\nconst FALLBACK_SERVER_LABEL = 'MCP Server';\n\nexport default class WorkflowVisualizerStepMcpServerComponent extends Component<Args> {\n  @service('feature/mcp-server') private declare mcpServerFeature: McpServerFeatureService;\n\n  @service('feature/workflow-visualizer')\n  private declare featureService: WorkflowVisualizerFeatureService;\n\n  @service('feature/workflow-visualizer/state')\n  private declare state: WorkflowVisualizerFeatureState;\n\n  @service('feature/workflow-visualizer/internal-feature/utils')\n  private declare utils: WorkflowVisualizerUtilsInternalFeatureService;\n\n  @service('html-sanitizer') private declare htmlSanitizer: HtmlSanitizerService;\n\n  @tracked private submittedConfirmation?: boolean;\n  @tracked private resolvedServerName?: string;\n\n  readonly tooltipId = uuidv4();\n\n  constructor(owner: unknown, args: Args) {\n    super(owner, args);\n    void this.loadServerName();\n  }\n\n  get executorStep(): McpStepExecution | null {\n    const exec = this.args.stepHistory.executorStep;\n\n    return exec?.type === ExecutorStepExecutionTypeEnum.Mcp ? exec : null;\n  }\n\n  get pendingData() {\n    return this.executorStep?.pendingData;\n  }\n\n  get toolParameters(): string {\n    return JSON.stringify(\n      { name: this.pendingData?.name, arguments: this.pendingData?.input },\n      null,\n      2,\n    );\n  }\n\n  get isSubmittingPendingData(): boolean {\n    return this.state.isSubmittingPendingData;\n  }\n\n  get isExecuted(): boolean {\n    const result = this.executorStep?.executionResult;\n\n    return Boolean(result && 'success' in result && result.success);\n  }\n\n  get areButtonsDisabled(): boolean {\n    return this.utils.areStepButtonsDisabled(this.args.stepHistory);\n  }\n\n  // Active highlight persists after the click so the chosen button keeps its pressed look\n  // for as long as the panel is on screen — matches the browser engine's getIsButtonActive.\n  get isExecuteActive(): boolean {\n    return this.isExecuted || (this.areButtonsDisabled && this.submittedConfirmation === true);\n  }\n\n  get isExecuteLoading(): boolean {\n    return this.isSubmittingPendingData && this.submittedConfirmation === true;\n  }\n\n  get isInitiallyLoading(): boolean {\n    return this.utils.isInitiallyLoading(this.args.stepHistory);\n  }\n\n  get isInFlight(): boolean {\n    return this.utils.isLoading(this.args.stepHistory) && !this.isInitiallyLoading;\n  }\n\n  get safeResult(): SafeString | undefined {\n    const result = this.executorStep?.executionResult;\n    if (!result || !('success' in result)) return undefined;\n\n    const text = result.formattedResponse?.trim() ? result.formattedResponse : 'Done.';\n\n    return htmlSafe(this.htmlSanitizer.sanitizeRichText(text));\n  }\n\n  get serverDisplayLabel(): string {\n    return this.resolvedServerName ?? FALLBACK_SERVER_LABEL;\n  }\n\n  @action\n  async confirm(userConfirmed: boolean): Promise<void> {\n    if (!this.pendingData || this.isSubmittingPendingData) return;\n\n    this.submittedConfirmation = userConfirmed;\n    await this.featureService.submitPendingData({ userConfirmed });\n  }\n\n  private async loadServerName(): Promise<void> {\n    const id = this.args.stepHistory.step?.mcpServerId;\n    if (!id) return;\n\n    const server = await this.mcpServerFeature.getMCPServerByIdSilently(id);\n\n    if (this.isDestroying || this.isDestroyed) return;\n\n    if (server?.serverName) {\n      this.resolvedServerName = server.serverName;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-visualizer-step-mcp-server\\\"\\n  data-test-feature-workflow-visualizer-step-mcp-server\\n  ...attributes\\n>\\n  <p\\n    class=\\\"c-feature-workflow-visualizer-step-mcp-server__prompt\\\"\\n    data-test-feature-workflow-visualizer-step-mcp-server-prompt\\n  >\\n    {{! template-lint-disable no-triple-curlies }}\\n    {{{@stepHistory.safePrompt}}}\\n  </p>\\n\\n  {{#if this.isInitiallyLoading}}\\n    <Shared::Spinner data-test-feature-workflow-visualizer-step-mcp-server-loader />\\n  {{else}}\\n    <Feature::WorkflowVisualizer::AiPanel\\n      data-test-feature-workflow-visualizer-step-mcp-server-confirmation\\n    >\\n      <:title>\\n        <span data-test-feature-workflow-visualizer-step-mcp-server-server-name>\\n          {{this.serverDisplayLabel}}\\n        </span>\\n      </:title>\\n      <:body>\\n        <p\\n          class=\\\"c-feature-workflow-visualizer-step-mcp-server__instruction\\\"\\n          data-test-feature-workflow-visualizer-step-mcp-server-instruction\\n        >\\n          Here\\'s a shortcut to help you complete this step\\n          <Shared::Feedback::BetaTooltip\\n            @side=\\\"top\\\"\\n            @targetId={{this.tooltipId}}\\n            @text={{this.toolParameters}}\\n          />\\n          <Shared::DataDisplay::BetaIcon\\n            id={{this.tooltipId}}\\n            @iconName=\\\"info_outlined\\\"\\n            @size=\\\"micro\\\"\\n            class=\\\"c-feature-workflow-visualizer-step-mcp-server__instruction-icon\\\"\\n            data-test-feature-workflow-visualizer-step-mcp-server-tool-parameters-trigger\\n          />\\n        </p>\\n      </:body>\\n      <:footer>\\n        <section class=\\\"c-feature-workflow-visualizer-step-mcp-server__confirmation-actions\\\">\\n          <Shared::Button\\n            @type=\\\"ghost-purple\\\"\\n            @text={{if this.isExecuteLoading \\'Executing...\\' \\'Execute\\'}}\\n            @iconName=\\\"electric_bolt\\\"\\n            @size=\\\"small\\\"\\n            @isActive={{this.isExecuteActive}}\\n            @isLoading={{this.isExecuteLoading}}\\n            @onClick={{fn this.confirm true}}\\n            disabled={{this.areButtonsDisabled}}\\n            data-test-feature-workflow-visualizer-step-mcp-server-execute\\n          />\\n          <Feature::WorkflowVisualizer::Step::Common::HandleManually\\n            @stepHistory={{@stepHistory}}\\n            @disabled={{this.areButtonsDisabled}}\\n          />\\n        </section>\\n      </:footer>\\n    </Feature::WorkflowVisualizer::AiPanel>\\n  {{/if}}\\n\\n  {{#if this.isInFlight}}\\n    <Shared::Spinner />\\n  {{/if}}\\n\\n  {{#if this.safeResult}}\\n    <Feature::WorkflowVisualizer::AiPanel\\n      data-test-feature-workflow-visualizer-step-mcp-server-result\\n    >\\n      <:title>\\n        {{! Wrap in an element so AiPanel keeps plain-text/<pre> results visible. }}\\n        <div class=\\\"c-feature-workflow-visualizer-step-mcp-server__result\\\">\\n          {{! template-lint-disable no-triple-curlies }}\\n          {{{this.safeResult}}}\\n        </div>\\n      </:title>\\n    </Feature::WorkflowVisualizer::AiPanel>\\n  {{/if}}\\n\\n  <Feature::WorkflowVisualizer::Step::Common::Buttons @stepHistory={{@stepHistory}} />\\n</div>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/mcp-server/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-card-step\\\"\\n  data-test-feature-workflow-card-step-content\\n  ...attributes\\n>\\n  {{#if this.isConditionStep}}\\n    <Feature::WorkflowVisualizer::Step::Condition @stepHistory={{@stepHistory}} />\\n  {{else if this.hasError}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"error\\\"\\n      @canHide={{false}}\\n      data-test-feature-workflow-visualizer-step-error\\n    >\\n      <span data-test-feature-workflow-visualizer-step-error-help>\\n        Something didn\\'t go as planned, which may be due to permission issues or a system being\\n        unresponsive; please contact an Admin to troubleshoot this.\\n      </span>\\n      Error:\\n      {{this.errorMessage}}\\n    </Shared::Feedback::Notification::NotificationInApp>\\n    {{#if @stepHistory.safePrompt}}\\n      <Feature::Workflow::AiInteraction::Instruction\\n        @instruction={{@stepHistory.safePrompt}}\\n        @title=\\\"Follow these instructions to continue:\\\"\\n      />\\n    {{/if}}\\n    <Feature::WorkflowVisualizer::Step::Common::Buttons @stepHistory={{@stepHistory}} />\\n  {{else if this.isGetDataTask}}\\n    <Feature::WorkflowVisualizer::Step::GetData @stepHistory={{@stepHistory}} />\\n  {{else if this.isUpdateDataTask}}\\n    <Feature::WorkflowVisualizer::Step::UpdateData @stepHistory={{@stepHistory}} />\\n  {{else if this.isTriggerActionTask}}\\n    <Feature::WorkflowVisualizer::Step::TriggerAction @stepHistory={{@stepHistory}} />\\n  {{else if this.isLoadRelatedRecordTask}}\\n    <Feature::WorkflowVisualizer::Step::LoadRelatedRecord @stepHistory={{@stepHistory}} />\\n  {{else if this.isMcpServerTask}}\\n    <Feature::WorkflowVisualizer::Step::McpServer @stepHistory={{@stepHistory}} />\\n  {{else if this.isEscalationStep}}\\n    <Feature::WorkflowVisualizer::Step::Escalation @stepHistory={{@stepHistory}} />\\n  {{else if this.isEndStep}}\\n    <Feature::WorkflowVisualizer::Step::End @stepHistory={{@stepHistory}} />\\n  {{else}}\\n    <Feature::WorkflowVisualizer::Step::Guideline @stepHistory={{@stepHistory}} />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/template.hbs' });\n","import type WorkflowVisualizerFeatureService from 'client/features/workflow-visualizer/services/feature';\nimport type WorkflowVisualizerUtilsInternalFeatureService from 'client/features/workflow-visualizer/services/internal-feature/utils';\nimport type WorkflowVisualizerFeatureState from 'client/features/workflow-visualizer/state';\nimport type { TriggerActionStepExecution } from 'client/features/workflow-visualizer/types/executor';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\nimport type { WorkflowTaskTriggerAction } from 'client/features/workflow-visualizer/types/workflow-step';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  stepHistory: HydratedStepHistory<WorkflowTaskTriggerAction, TriggerActionStepExecution>;\n}\n\nexport default class WorkflowVisualizerStepTriggerActionComponent extends Component<Args> {\n  @service('feature/workflow-visualizer')\n  private declare featureService: WorkflowVisualizerFeatureService;\n\n  @service('feature/workflow-visualizer/state')\n  private declare state: WorkflowVisualizerFeatureState;\n\n  @service('feature/workflow-visualizer/internal-feature/utils')\n  private declare utils: WorkflowVisualizerUtilsInternalFeatureService;\n\n  get executorStep(): TriggerActionStepExecution | null {\n    return this.args.stepHistory.executorStep;\n  }\n\n  get selectedRecordRef() {\n    return this.executorStep?.selectedRecordRef ?? null;\n  }\n\n  get pendingData() {\n    return this.executorStep?.pendingData;\n  }\n\n  get executionParams() {\n    return this.executorStep?.executionParams;\n  }\n\n  get executionResult() {\n    return this.executorStep?.executionResult;\n  }\n\n  get isInFlight(): boolean {\n    return this.utils.isLoading(this.args.stepHistory);\n  }\n\n  get canTrigger(): boolean {\n    return (\n      Boolean(this.pendingData)\n      && Boolean(this.selectedRecordRef)\n      && !this.utils.areStepButtonsDisabled(this.args.stepHistory)\n    );\n  }\n\n  get actionDisplayName(): string {\n    return this.pendingData?.displayName ?? this.executionParams?.displayName ?? 'Trigger action';\n  }\n\n  get isActionButtonDisabled(): boolean {\n    if (this.isTriggerActive) return false;\n\n    return !this.canTrigger;\n  }\n\n  get isCompleted(): boolean {\n    return (\n      Boolean(this.selectedRecordRef)\n      && Boolean(this.executionResult && 'success' in this.executionResult)\n    );\n  }\n\n  get isTriggerActive(): boolean {\n    if (this.userConfirmed === true) return true;\n    const result = this.executionResult;\n    return this.userConfirmed === undefined && result !== undefined && 'success' in result;\n  }\n\n  get isSkipped(): boolean {\n    return (\n      Boolean(this.selectedRecordRef)\n      && Boolean(this.executionResult && 'skipped' in this.executionResult)\n    );\n  }\n\n  get userConfirmed(): boolean | undefined {\n    return this.executorStep?.userConfirmation?.userConfirmed;\n  }\n\n  @action\n  triggerAction(): void {\n    if (this.isTriggerActive) return;\n\n    void this.featureService.triggerActionStep(this.args.stepHistory);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-card-step c-feature-workflow-visualizer-step-trigger-action\\\"\\n  data-test-feature-workflow-visualizer-step-trigger-action\\n  ...attributes\\n>\\n  {{#if @stepHistory.safePrompt}}\\n    <p\\n      class=\\\"c-feature-workflow-card-step__prompt\\\"\\n      data-test-feature-workflow-visualizer-step-trigger-action-prompt\\n    >\\n      {{! template-lint-disable no-triple-curlies }}\\n      {{{@stepHistory.safePrompt}}}\\n    </p>\\n  {{/if}}\\n\\n  {{#if this.isInFlight}}\\n    <Shared::Spinner data-test-feature-workflow-visualizer-step-trigger-action-loading />\\n  {{else if this.selectedRecordRef}}\\n    <Feature::WorkflowVisualizer::AiPanel\\n      data-test-feature-workflow-visualizer-step-trigger-action-result\\n    >\\n      <:title>\\n        <Feature::WorkflowVisualizer::Step::Common::RecordContextTitle\\n          @selectedRecordRef={{this.selectedRecordRef}}\\n          data-test-feature-workflow-visualizer-step-trigger-action-selected-record\\n        >\\n          Here\\'s a shortcut to run the action on\\n        </Feature::WorkflowVisualizer::Step::Common::RecordContextTitle>\\n      </:title>\\n      <:body>\\n        {{#if this.isCompleted}}\\n          <div\\n            class=\\\"c-feature-workflow-visualizer-step-trigger-action__completed\\\"\\n            data-test-feature-workflow-visualizer-step-trigger-action-completed\\n          >\\n            Action \\\"{{this.actionDisplayName}}\\\" executed.\\n          </div>\\n        {{else if this.isSkipped}}\\n          <div\\n            class=\\\"c-feature-workflow-visualizer-step-trigger-action__skipped\\\"\\n            data-test-feature-workflow-visualizer-step-trigger-action-skipped\\n          >\\n            Action skipped.\\n          </div>\\n        {{/if}}\\n      </:body>\\n      <:footer>\\n        <section class=\\\"c-feature-workflow-visualizer-step-trigger-action__buttons\\\">\\n          <Shared::Button\\n            @type=\\\"ghost-purple\\\"\\n            @text={{this.actionDisplayName}}\\n            @iconName=\\\"electric_bolt\\\"\\n            @onClick={{this.triggerAction}}\\n            @size=\\\"small\\\"\\n            @isActive={{this.isTriggerActive}}\\n            disabled={{this.isActionButtonDisabled}}\\n            aria-disabled={{if this.isTriggerActive \\'true\\'}}\\n            data-test-feature-workflow-visualizer-step-trigger-action-trigger\\n          />\\n          <Feature::WorkflowVisualizer::Step::Common::HandleManually\\n            @stepHistory={{@stepHistory}}\\n          />\\n        </section>\\n\\n        {{#if @stepHistory.context.manuallyCompleted}}\\n          <Feature::WorkflowVisualizer::Step::Common::HandleManuallyInstruction\\n            @stepHistory={{@stepHistory}}\\n            data-test-feature-workflow-visualizer-step-trigger-action-instruction\\n          />\\n        {{/if}}\\n      </:footer>\\n    </Feature::WorkflowVisualizer::AiPanel>\\n  {{/if}}\\n\\n  <Feature::WorkflowVisualizer::Step::Common::Buttons\\n    @stepHistory={{@stepHistory}}\\n    @disabled={{this.canTrigger}}\\n  />\\n</div>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/trigger-action/template.hbs' });\n","import type Field from 'client/data/models/field';\nimport type CollectionFeatureService from 'client/features/collection/services/feature';\nimport type WorkflowVisualizerFeatureService from 'client/features/workflow-visualizer/services/feature';\nimport type WorkflowVisualizerUtilsInternalFeatureService from 'client/features/workflow-visualizer/services/internal-feature/utils';\nimport type WorkflowVisualizerFeatureState from 'client/features/workflow-visualizer/state';\nimport type { UpdateRecordStepExecution } from 'client/features/workflow-visualizer/types/executor';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\nimport type { WorkflowTask } from 'client/features/workflow-visualizer/types/workflow-step';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { INLINE_FIELD_WIDGETS } from 'client/features/workflow/components/ai-interaction/tools/read-record-field/component';\nimport { ExecutorStepExecutionTypeEnum } from 'client/features/workflow-visualizer/types/executor';\nimport { uuidv4 } from 'client/utils/uuid-utils';\n\ninterface StepUpdateDataArgs {\n  stepHistory: HydratedStepHistory<WorkflowTask, UpdateRecordStepExecution>;\n}\n\nexport default class WorkflowVisualizerStepUpdateDataComponent extends Component<StepUpdateDataArgs> {\n  @service('feature/workflow-visualizer/state')\n  private declare readonly state: WorkflowVisualizerFeatureState;\n\n  @service('feature/workflow-visualizer')\n  private declare readonly featureService: WorkflowVisualizerFeatureService;\n\n  @service('feature/workflow-visualizer/internal-feature/utils')\n  private declare readonly utils: WorkflowVisualizerUtilsInternalFeatureService;\n\n  @service('feature/collection')\n  private declare readonly collectionFeature: CollectionFeatureService;\n\n  @tracked isEditDialogOpen = false;\n\n  readonly updateButtonId = uuidv4();\n\n  get executorStep(): UpdateRecordStepExecution {\n    return this.args.stepHistory.executorStep;\n  }\n\n  get pendingData() {\n    return this.executorStep?.pendingData;\n  }\n\n  get fieldName(): string | undefined {\n    return this.pendingData?.name ?? this.executorStep?.executionParams?.name;\n  }\n\n  get fieldDisplayName(): string | undefined {\n    return this.pendingData?.displayName ?? this.executorStep?.executionParams?.displayName;\n  }\n\n  get suggestedValue(): unknown {\n    return this.pendingData?.value ?? this.executorStep?.executionParams?.value;\n  }\n\n  // TODO: replace this with a simpler method. CurrentValue should simply come from this.executorStep\n  // Looks for the field's value in the closest prior ReadRecord step executor result on the\n  // same record. That value is frozen by the executor at read time, so the panel keeps showing\n  // the pre-update value even after confirmUpdate writes the new one to the store.\n  // Falls back to suggestedValue when no matching read step is available.\n  get currentValue(): unknown {\n    const { fieldName } = this;\n    const recordRef = this.selectedRecordRef;\n    if (!fieldName || !recordRef) return this.suggestedValue;\n\n    const currentStepIndex = this.args.stepHistory.stepIndex;\n\n    let bestMatch: { stepIndex: number; value: unknown } | null = null;\n    for (const step of this.state.executorSteps) {\n      if (step.stepIndex >= currentStepIndex) continue;\n      if (step.type !== ExecutorStepExecutionTypeEnum.ReadRecord) continue;\n      if (!step.selectedRecordRef) continue;\n      if (step.selectedRecordRef.collectionName !== recordRef.collectionName) continue;\n      if (step.selectedRecordRef.recordId !== recordRef.recordId) continue;\n\n      const match = step.executionResult?.fields.find((f) => f.name === fieldName && 'value' in f);\n      if (!match || !('value' in match)) continue;\n\n      if (!bestMatch || step.stepIndex > bestMatch.stepIndex) {\n        bestMatch = { stepIndex: step.stepIndex, value: match.value };\n      }\n    }\n\n    return bestMatch ? bestMatch.value : this.suggestedValue;\n  }\n\n  get selectedRecordRef() {\n    return (\n      this.executorStep?.selectedRecordRef\n      ?? this.utils.getSelectedRecordRefForStep(this.args.stepHistory.stepIndex)\n    );\n  }\n\n  get selectedRecordCollection() {\n    const collectionName = this.selectedRecordRef?.collectionName;\n    return collectionName ? this.collectionFeature.getCollectionFromName(collectionName) : null;\n  }\n\n  get selectedRecordIds(): string[] {\n    const recordId = this.selectedRecordRef?.recordId;\n    return recordId ? [recordId] : [];\n  }\n\n  get formattedRecordId(): string {\n    return this.selectedRecordRef?.recordId ?? '';\n  }\n\n  get field(): Field | null {\n    if (!this.fieldName) return null;\n    return this.selectedRecordCollection?.fields?.findBy('fieldName', this.fieldName) ?? null;\n  }\n\n  get isInlineField(): boolean {\n    const widgetName = this.field?.widgetDisplay?.name;\n    if (!widgetName) return true;\n    return (INLINE_FIELD_WIDGETS as readonly string[]).includes(widgetName);\n  }\n\n  get isInitiallyLoading() {\n    return this.utils.isInitiallyLoading(this.args.stepHistory);\n  }\n\n  get isLoading() {\n    return (\n      this.utils.isLoading(this.args.stepHistory)\n      && !this.utils.isInitiallyLoading(this.args.stepHistory)\n    );\n  }\n\n  get updatedValues(): Record<string, unknown> | null {\n    const result = this.executorStep?.executionResult;\n    return result && 'updatedValues' in result ? result.updatedValues : null;\n  }\n\n  get userConfirmed(): boolean | undefined {\n    return this.executorStep?.userConfirmation?.userConfirmed;\n  }\n\n  get isUpdateActive(): boolean {\n    if (this.userConfirmed === true) return true;\n    // Auto-executed (no userConfirmation but executionResult.updatedValues present) = the\n    // executor took the Update path on the user's behalf.\n    const result = this.executorStep?.executionResult;\n    return this.userConfirmed === undefined && result !== undefined && 'updatedValues' in result;\n  }\n\n  get isUpdateDisabled(): boolean {\n    return (\n      this.utils.areStepButtonsDisabled(this.args.stepHistory)\n      || !this.field\n      || this.field.isReadOnly\n      || this.state.isHandlingManually\n      || this.state.isSubmittingPendingData\n    );\n  }\n\n  get isHandleManuallyDisabled(): boolean {\n    return (\n      this.utils.areStepButtonsDisabled(this.args.stepHistory)\n      || this.executorStep?.executionResult !== undefined\n    );\n  }\n\n  @action\n  openEditDialog(): void {\n    if (this.isUpdateDisabled) return;\n    this.isEditDialogOpen = true;\n  }\n\n  @action\n  closeEditDialog(): void {\n    this.isEditDialogOpen = false;\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type WorkflowVisualizerFeatureService from 'client/features/workflow-visualizer/services/feature';\nimport type { UpdateRecordStepExecution } from 'client/features/workflow-visualizer/types/executor';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\nimport type { WorkflowTask } from 'client/features/workflow-visualizer/types/workflow-step';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ninterface Args {\n  updateButtonId: string;\n  isEditDialogOpen: boolean;\n  closeEditDialog: () => void;\n  collection: CollectionModel;\n  recordIds: string[];\n  field: FieldModel;\n  suggestedValue: unknown;\n  stepHistory: HydratedStepHistory<WorkflowTask, UpdateRecordStepExecution>;\n}\n\nexport default class WorkflowVisualizerStepUpdateDataModalComponent extends Component<Args> {\n  @service('feature/workflow-visualizer')\n  private declare readonly featureService: WorkflowVisualizerFeatureService;\n\n  @tracked _stagedValue: unknown = undefined;\n  @tracked isSubmitting = false;\n\n  get stagedValue(): unknown {\n    return this._stagedValue ?? this.args.suggestedValue;\n  }\n\n  @action\n  preventSubmit(event: Event): void {\n    event.preventDefault();\n  }\n\n  @action\n  onValueChanged(value: unknown): void {\n    this._stagedValue = value;\n  }\n\n  @action\n  async confirmUpdate(): Promise<void> {\n    if (this.isSubmitting) return;\n\n    this.isSubmitting = true;\n    // Snapshot args before the await: refreshExecutorData may destroy this component\n    const modelName = this.args.collection.emberModelName ?? null;\n    const recordId = this.args.recordIds[0] ?? null;\n    const field = this.args.field;\n    const rawValue = this.stagedValue;\n\n    const success = await this.featureService.submitFieldUpdate({\n      field,\n      modelName,\n      recordId: recordId ?? null,\n      rawValue,\n    });\n\n    if (this.isDestroying || this.isDestroyed) return;\n    if (success) {\n      this.args.closeEditDialog();\n    } else {\n      this.isSubmitting = false;\n    }\n  }\n\n  @action\n  onStateUpdate() {\n    this.isSubmitting = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::TooltipLikeModal\\n  @triggererId={{@updateButtonId}}\\n  @visible={{@isEditDialogOpen}}\\n  @onClose={{@closeEditDialog}}\\n  @exceptSelector=\\\"#portal-for-widget-modal,#portal-for-dropdown\\\"\\n  class=\\\"c-feature-workflow-visualizer-step-update-data__dialog\\\"\\n  data-test-feature-workflow-visualizer-step-update-data-dialog\\n  {{did-update this.onStateUpdate @stepHistory.executorStep}}\\n>\\n  <div class=\\\"c-feature-workflow-visualizer-step-update-data__dialog-description\\\">\\n    Edit\\n    <i>{{@field.displayName}}</i>\\n    value for\\n    {{#if @collection}}\\n      {{#if @collection.iconOrDefault}}\\n        <Shared::DataDisplay::BetaIcon\\n          class=\\\"c-feature-workflow-visualizer-step-update-data__dialog-icon\\\"\\n          @iconName={{@collection.iconOrDefault}}\\n        />\\n      {{/if}}\\n      <Feature::ClientRecord::ReferenceField\\n        class=\\\"c-feature-workflow-visualizer-step-update-data__dialog-reference\\\"\\n        @collection={{@collection}}\\n        @isLinkDisabled={{true}}\\n        @recordIds={{@recordIds}}\\n      />\\n    {{/if}}\\n  </div>\\n  {{#if @field}}\\n    {{! Wrapped in a <form autocomplete=\\\"off\\\"> so browser autofill stays out of the dialog }}\\n    <form autocomplete=\\\"off\\\" {{on \\'submit\\' this.preventSubmit}}>\\n      <Form::FormValue\\n        @displayName={{@field.displayNameTitlize}}\\n        @field={{@field}}\\n        @readMode={{false}}\\n        @collection={{@collection}}\\n        @isUsedInSmartAction={{true}}\\n        @disableNested={{true}}\\n        @value={{one-way this.stagedValue}}\\n        @onChange={{this.onValueChanged}}\\n        data-test-feature-workflow-visualizer-step-update-data-dialog-input\\n      />\\n    </form>\\n  {{/if}}\\n  {{#if @stepHistory.context.error}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"error\\\"\\n      @canHide={{false}}\\n      data-test-feature-workflow-visualizer-step-update-data-dialog-error\\n    >\\n      Error:\\n      {{@stepHistory.context.error}}\\n    </Shared::Feedback::Notification::NotificationInApp>\\n  {{/if}}\\n  <div class=\\\"c-feature-workflow-visualizer-step-update-data__dialog-buttons\\\">\\n    <Shared::Button\\n      @type=\\\"ghost\\\"\\n      @text=\\\"Discard\\\"\\n      @onClick={{@closeEditDialog}}\\n      @size=\\\"medium\\\"\\n      disabled={{this.isSubmitting}}\\n      data-test-feature-workflow-visualizer-step-update-data-dialog-discard\\n    />\\n    <Shared::Button\\n      @type=\\\"ghost-green\\\"\\n      @text=\\\"Confirm\\\"\\n      @onClick={{this.confirmUpdate}}\\n      @size=\\\"medium\\\"\\n      disabled={{this.isSubmitting}}\\n      data-test-feature-workflow-visualizer-step-update-data-dialog-confirm\\n    />\\n  </div>\\n</Shared::TooltipLikeModal>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/update-data/modal/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-visualizer-step-update-data\\\"\\n  data-test-feature-workflow-visualizer-step-update-data\\n  ...attributes\\n>\\n  <p\\n    class=\\\"c-feature-workflow-visualizer-step-update-data__prompt\\\"\\n    data-test-feature-workflow-visualizer-step-update-data-prompt\\n  >\\n    {{! template-lint-disable no-triple-curlies }}\\n    {{{@stepHistory.safePrompt}}}\\n  </p>\\n  {{#if this.isInitiallyLoading}}\\n    <Shared::Spinner\\n      class=\\\"c-feature-workflow-visualizer-step-update-data__spinner\\\"\\n      data-test-feature-workflow-visualizer-step-update-data-loading\\n    />\\n  {{else if (or this.pendingData this.executorStep.executionParams)}}\\n    <Feature::WorkflowVisualizer::AiPanel\\n      data-test-feature-workflow-visualizer-step-update-data-panel\\n    >\\n      <:title>\\n        <span>Here\\'s the value you\\'re looking for:</span>\\n      </:title>\\n      <:body>\\n        {{#if this.fieldDisplayName}}\\n          <div class=\\\"c-feature-workflow-visualizer-step-update-data__inline\\\">\\n            {{#if this.selectedRecordCollection}}\\n              <span\\n                class=\\\"c-feature-workflow-visualizer-step-update-data__selected-record\\\"\\n                data-test-feature-workflow-visualizer-step-update-data-selected-record\\n              >\\n                {{this.selectedRecordCollection.displayName}}\\n                &gt;\\n                <Feature::ClientRecord::ReferenceField\\n                  @collection={{this.selectedRecordCollection}}\\n                  @isLinkDisabled={{true}}\\n                  @recordIds={{this.selectedRecordIds}}\\n                />\\n                &gt;\\n              </span>\\n            {{else if this.selectedRecordRef}}\\n              <span\\n                class=\\\"c-feature-workflow-visualizer-step-update-data__selected-record\\\"\\n                data-test-feature-workflow-visualizer-step-update-data-selected-record\\n              >\\n                {{this.selectedRecordRef.collectionName}}\\n                &gt;\\n                {{this.formattedRecordId}}\\n                &gt;\\n              </span>\\n            {{/if}}\\n            <span\\n              class=\\\"c-feature-workflow-visualizer-step-update-data__field-name\\\"\\n              data-test-feature-workflow-visualizer-step-update-data-field-name\\n            >\\n              {{this.fieldDisplayName}}:\\n            </span>\\n            {{#if this.field}}\\n              <Widgets::Widget\\n                class={{get-classes-with-modifiers\\n                  \\'c-feature-workflow-visualizer-step-update-data__suggested-value\\'\\n                  inline=this.isInlineField\\n                }}\\n                @type=\\\"display-row\\\"\\n                @widgetConfiguration={{this.field.widgetDisplay}}\\n                @field={{this.field}}\\n                @value={{this.currentValue}}\\n                @label={{this.currentValue}}\\n                data-test-feature-workflow-visualizer-step-update-data-suggested-value\\n              />\\n            {{else}}\\n              <span\\n                class=\\\"c-feature-workflow-visualizer-step-update-data__suggested-value\\\"\\n                data-test-feature-workflow-visualizer-step-update-data-suggested-value\\n              >\\n                {{this.currentValue}}\\n              </span>\\n            {{/if}}\\n          </div>\\n        {{/if}}\\n      </:body>\\n      <:footer>\\n        {{#if @stepHistory.context.error}}\\n          <Shared::Feedback::Notification::NotificationInApp\\n            @state=\\\"error\\\"\\n            @canHide={{false}}\\n            data-test-feature-workflow-visualizer-step-update-data-error\\n          >\\n            Error:\\n            {{@stepHistory.context.error}}\\n          </Shared::Feedback::Notification::NotificationInApp>\\n        {{/if}}\\n\\n        <div class=\\\"c-feature-workflow-visualizer-step-update-data__actions\\\">\\n          <Shared::Button\\n            @type=\\\"ghost-purple\\\"\\n            @text=\\\"Update\\\"\\n            @iconName=\\\"edit\\\"\\n            @onClick={{this.openEditDialog}}\\n            @size=\\\"small\\\"\\n            @isActive={{this.isUpdateActive}}\\n            id={{this.updateButtonId}}\\n            disabled={{this.isUpdateDisabled}}\\n            data-test-feature-workflow-visualizer-step-update-data-update\\n          />\\n          {{#if (and this.field this.field.isReadOnly)}}\\n            <Shared::Feedback::BetaTooltip\\n              @side=\\\"top\\\"\\n              @targetId={{this.updateButtonId}}\\n              @text=\\\"This field is readonly and cannot be updated. Ask your admin to change the layout if you need to update this field.\\\"\\n            />\\n          {{/if}}\\n          <Feature::WorkflowVisualizer::Step::Common::HandleManually\\n            @stepHistory={{@stepHistory}}\\n            @disabled={{this.isHandleManuallyDisabled}}\\n          />\\n        </div>\\n\\n        {{#if @stepHistory.context.manuallyCompleted}}\\n          <Feature::WorkflowVisualizer::Step::Common::HandleManuallyInstruction\\n            @stepHistory={{@stepHistory}}\\n            data-test-feature-workflow-visualizer-step-update-data-instruction\\n          />\\n        {{/if}}\\n\\n        {{#if this.isLoading}}\\n          <Shared::Spinner class=\\\"c-feature-workflow-visualizer-step-update-data__spinner\\\" />\\n        {{/if}}\\n        {{#if this.updatedValues}}\\n          <div\\n            class=\\\"c-feature-workflow-visualizer-step-update-data__result\\\"\\n            data-test-feature-workflow-visualizer-step-update-data-updated-value\\n          >\\n            Successfully updated to:\\n            {{#let (get this.updatedValues this.fieldName) as |updatedValue|}}\\n              {{#if this.field}}\\n                <Widgets::Widget\\n                  class=\\\"c-feature-workflow-visualizer-step-update-data__result-widget\\\"\\n                  @type=\\\"display-row\\\"\\n                  @widgetConfiguration={{this.field.widgetDisplay}}\\n                  @field={{this.field}}\\n                  @value={{updatedValue}}\\n                  @label={{updatedValue}}\\n                />\\n              {{else}}\\n                {{updatedValue}}\\n              {{/if}}\\n            {{/let}}\\n          </div>\\n        {{/if}}\\n      </:footer>\\n    </Feature::WorkflowVisualizer::AiPanel>\\n\\n    <Feature::WorkflowVisualizer::Step::UpdateData::Modal\\n      @updateButtonId={{this.updateButtonId}}\\n      @isEditDialogOpen={{this.isEditDialogOpen}}\\n      @closeEditDialog={{this.closeEditDialog}}\\n      @collection={{this.selectedRecordCollection}}\\n      @recordIds={{this.selectedRecordIds}}\\n      @field={{this.field}}\\n      @suggestedValue={{this.suggestedValue}}\\n      @stepHistory={{@stepHistory}}\\n    />\\n  {{else if @stepHistory.context.error}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"error\\\"\\n      @canHide={{false}}\\n      data-test-feature-workflow-visualizer-step-update-data-error\\n    >\\n      Error:\\n      {{@stepHistory.context.error}}\\n    </Shared::Feedback::Notification::NotificationInApp>\\n    <Feature::WorkflowVisualizer::Step::Common::HandleManually\\n      @stepHistory={{@stepHistory}}\\n      @disabled={{this.isHandleManuallyDisabled}}\\n    />\\n  {{/if}}\\n\\n  <Feature::WorkflowVisualizer::Step::Common::Buttons\\n    @stepHistory={{@stepHistory}}\\n    @disabled={{this.isLoading}}\\n  />\\n</div>\\n', { moduleName: 'client/features/workflow-visualizer/components/step/update-data/template.hbs' });\n","import type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\n\nimport Component from '@glimmer/component';\n\nimport {\n  StepTypeEnum,\n  type SubWorkflowStep,\n} from 'client/features/workflow-visualizer/types/workflow-step';\n\ninterface Args {\n  stepHistory: HydratedStepHistory<SubWorkflowStep>;\n}\n\nexport default class WorkflowVisualizerSubWorkflowComponent extends Component<Args> {\n  get step(): SubWorkflowStep {\n    return this.args.stepHistory.step;\n  }\n\n  get isStartSubWorkflow(): boolean {\n    return this.step.type === StepTypeEnum.StartSubWorkflow;\n  }\n\n  get isCloseSubWorkflow(): boolean {\n    return this.step.type === StepTypeEnum.CloseSubWorkflow;\n  }\n\n  get staticLabel(): string {\n    return this.isStartSubWorkflow ? 'Stepping into' : 'Stepping out of';\n  }\n\n  get shouldShowCancelledStyle(): boolean {\n    return this.args.stepHistory.cancelled;\n  }\n\n  get ariaLabel(): string {\n    return `${this.staticLabel} ${this.step.title ?? ''}`.trim();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers\\n    \\'c-feature-workflow-embedded-workflow\\'\\n    start=this.isStartSubWorkflow\\n    end=this.isCloseSubWorkflow\\n    cancelled=this.shouldShowCancelledStyle\\n  }}\\n  role=\\\"listitem\\\"\\n  aria-label={{this.ariaLabel}}\\n  data-test-embedded-workflow\\n>\\n  <div class=\\\"c-feature-workflow-embedded-workflow__content\\\">\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName=\\\"double_arrow\\\"\\n      @size=\\\"tiny\\\"\\n      class={{get-classes-with-modifiers\\n        \\'c-feature-workflow-embedded-workflow__chevron\\'\\n        flipped=this.isCloseSubWorkflow\\n      }}\\n      aria-hidden=\\\"true\\\"\\n      data-test-embedded-workflow-chevron\\n    />\\n    <span class=\\\"c-feature-workflow-embedded-workflow__label\\\" data-test-embedded-workflow-label>\\n      {{this.staticLabel}}\\n    </span>\\n    <span\\n      class=\\\"c-feature-workflow-embedded-workflow__workflow-name\\\"\\n      data-test-embedded-workflow-name\\n    >\\n      {{this.step.title}}\\n    </span>\\n  </div>\\n</div>\\n', { moduleName: 'client/features/workflow-visualizer/components/sub-workflow/template.hbs' });\n","import type WorkflowVisualizerUtilsInternalFeatureService from 'client/features/workflow-visualizer/services/internal-feature/utils';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport {\n  isCloseSubWorkflowStep,\n  isStartSubWorkflowStep,\n} from 'client/features/workflow-visualizer/types/type-guards';\n\nexport default class WorkflowVisualizerVisualizationComponent extends Component {\n  @service('feature/workflow-visualizer/internal-feature/utils')\n  private declare utils: WorkflowVisualizerUtilsInternalFeatureService;\n\n  private scrollArea?: HTMLElement;\n  private scrollObserver?: MutationObserver;\n  private scrollListener?: () => void;\n  private isUserAtBottom = true;\n  private renderedCardCount = 0;\n\n  get cardSteps(): HydratedStepHistory[] {\n    return this.utils.cardSteps;\n  }\n\n  isSubWorkflowStep = (stepHistory: HydratedStepHistory): boolean => {\n    if (!stepHistory.step) return false;\n\n    return isStartSubWorkflowStep(stepHistory.step) || isCloseSubWorkflowStep(stepHistory.step);\n  };\n\n  @action\n  setupScrollArea(element: HTMLElement): void {\n    this.scrollArea = element;\n    this.scrollListener = () => {\n      this.isUserAtBottom = this.distanceFromBottom(element) < 50;\n    };\n\n    element.addEventListener('scroll', this.scrollListener);\n    this.scrollToBottom();\n  }\n\n  @action\n  setupStepsContainer(element: HTMLElement): void {\n    this.renderedCardCount = this.cardSteps.length;\n    this.scrollObserver?.disconnect();\n\n    this.scrollObserver = new MutationObserver(() => {\n      if (this.isUserAtBottom) {\n        this.scrollToBottom();\n      }\n    });\n\n    this.scrollObserver.observe(element, {\n      childList: true,\n      subtree: true,\n      characterData: true,\n    });\n\n    this.scrollToBottom();\n  }\n\n  @action\n  handleCardStepsUpdate(): void {\n    const currentCardCount = this.cardSteps.length;\n    const hasNewCard = currentCardCount > this.renderedCardCount;\n\n    this.renderedCardCount = currentCardCount;\n\n    if (hasNewCard) {\n      this.scrollToBottom();\n    }\n  }\n\n  @action\n  teardownScrollArea(element: HTMLElement): void {\n    this.scrollObserver?.disconnect();\n\n    if (this.scrollListener) {\n      element.removeEventListener('scroll', this.scrollListener);\n    }\n\n    this.scrollArea = undefined;\n    this.scrollObserver = undefined;\n    this.scrollListener = undefined;\n    this.isUserAtBottom = true;\n    this.renderedCardCount = 0;\n  }\n\n  private scrollToBottom(): void {\n    if (!this.scrollArea) {\n      return;\n    }\n\n    this.scrollArea.scrollTop = this.scrollArea.scrollHeight;\n  }\n\n  private distanceFromBottom(element: HTMLElement): number {\n    return element.scrollHeight - element.scrollTop - element.clientHeight;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-visualizer-visualization\\\"\\n  {{did-insert this.setupScrollArea}}\\n  {{will-destroy this.teardownScrollArea}}\\n  ...attributes\\n>\\n  <div\\n    class=\\\"c-feature-workflow-visualizer-visualization__steps\\\"\\n    role=\\\"list\\\"\\n    aria-label=\\\"Workflow steps\\\"\\n    data-test-feature-workflow-visualizer-steps\\n    {{did-insert this.setupStepsContainer}}\\n    {{did-update this.handleCardStepsUpdate this.cardSteps.length}}\\n  >\\n    {{#each this.cardSteps as |stepHistory|}}\\n      {{#if (this.isSubWorkflowStep stepHistory)}}\\n        <Feature::WorkflowVisualizer::SubWorkflow\\n          @stepHistory={{stepHistory}}\\n          data-test-feature-workflow-visualizer-step\\n        />\\n      {{else}}\\n        <Feature::WorkflowVisualizer::Card\\n          @stepHistory={{stepHistory}}\\n          data-test-feature-workflow-visualizer-step\\n        />\\n      {{/if}}\\n    {{/each}}\\n  </div>\\n</div>\\n', { moduleName: 'client/features/workflow-visualizer/components/visualization/template.hbs' });\n","/* eslint max-classes-per-file: \"off\" */\n\nimport { ManagedError, WrappedError } from 'client/utils/errors';\n\nexport class WorkflowVisualizerError extends ManagedError {\n  readonly code: string;\n\n  constructor(message: string, code: string) {\n    super(message);\n    this.name = 'WorkflowVisualizerError';\n    this.code = code;\n  }\n}\n\nexport class OrchestratorError extends WrappedError {\n  readonly code = 'ORCHESTRATOR_ERROR';\n  readonly statusCode?: number;\n\n  constructor(cause: Error, message?: string, statusCode?: number) {\n    super(cause, message);\n    this.name = 'OrchestratorError';\n    this.statusCode = statusCode;\n  }\n}\n\nexport class ExecutorError extends WrappedError {\n  readonly code = 'EXECUTOR_ERROR';\n  readonly statusCode?: number;\n\n  constructor(cause: Error, message?: string, statusCode?: number) {\n    super(cause, message);\n    this.name = 'ExecutorError';\n    this.statusCode = statusCode;\n  }\n}\n\nexport class SubscriptionError extends WrappedError {\n  readonly code = 'SUBSCRIPTION_ERROR';\n\n  constructor(cause: Error, message?: string) {\n    super(cause, message);\n    this.name = 'SubscriptionError';\n  }\n}\n\nexport class WorkflowRunNotFoundError extends WorkflowVisualizerError {\n  constructor(runId: number | string) {\n    super(`Workflow run ${runId} not found`, 'RUN_NOT_FOUND');\n    this.name = 'WorkflowRunNotFoundError';\n  }\n}\n\nexport class WorkflowStepNotFoundError extends WorkflowVisualizerError {\n  constructor(stepId: string) {\n    super(`Workflow step ${stepId} not found in workflow definition`, 'STEP_NOT_FOUND');\n    this.name = 'WorkflowStepNotFoundError';\n  }\n}\n","import type FieldModel from 'client/data/models/field';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type WorkflowVisualizerActionRunnerInternalBusinessService from 'client/features/workflow-visualizer/services/internal-business/action-runner';\nimport type WorkflowVisualizerExecutorInternalBusinessService from 'client/features/workflow-visualizer/services/internal-business/executor';\nimport type WorkflowVisualizerOrchestratorInternalBusinessService from 'client/features/workflow-visualizer/services/internal-business/orchestrator';\nimport type WorkflowVisualizerRecordStoreInternalBusinessService from 'client/features/workflow-visualizer/services/internal-business/record-store';\nimport type WorkflowVisualizerStepHydratorInternalBusinessService from 'client/features/workflow-visualizer/services/internal-business/step-hydrator';\nimport type WorkflowVisualizerSubscriptionInternalBusinessService from 'client/features/workflow-visualizer/services/internal-business/subscription';\nimport type WorkflowVisualizerUtilsInternalFeatureService from 'client/features/workflow-visualizer/services/internal-feature/utils';\nimport type WorkflowVisualizerFeatureState from 'client/features/workflow-visualizer/state';\nimport type { TriggerActionStepExecution } from 'client/features/workflow-visualizer/types/executor';\nimport type { SubscriptionUpdateResult } from 'client/features/workflow-visualizer/types/subscription';\nimport type { HydratedStepHistory } from 'client/features/workflow-visualizer/types/workflow-run';\nimport type {\n  WorkflowEscalation,\n  WorkflowTaskTriggerAction,\n} from 'client/features/workflow-visualizer/types/workflow-step';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LayoutState from 'client/shared/states/layout';\n\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { ExecutorError } from 'client/features/workflow-visualizer/errors';\nimport { WorkflowRunStateEnum } from 'client/features/workflow-visualizer/types/workflow-run';\nimport { StepTypeEnum } from 'client/features/workflow-visualizer/types/workflow-step';\nimport { toExecutorValue } from 'client/features/workflow-visualizer/utils/serialize-pending-data';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\nexport interface StartWorkflowParams {\n  workflowId: string;\n  workflowName: string;\n  collectionId: string;\n  selectedRecordId: string;\n}\n\nexport interface SubmitFieldUpdateParams {\n  field: FieldModel;\n  modelName: string | null;\n  recordId: string | null;\n  rawValue: unknown;\n}\n\nexport default class WorkflowVisualizerFeatureService extends Service {\n  @service('feature/notification')\n  private declare notificationFeature: NotificationFeatureService;\n\n  @service\n  private declare errorHandler: ErrorHandlerService;\n\n  @service private readonly eventBus: EventBusService;\n\n  @service('feature/workflow-visualizer/state')\n  private declare state: WorkflowVisualizerFeatureState;\n\n  @service('feature/workflow-visualizer/internal-business/executor')\n  private declare executor: WorkflowVisualizerExecutorInternalBusinessService;\n\n  @service('feature/workflow-visualizer/internal-business/orchestrator')\n  private declare orchestrator: WorkflowVisualizerOrchestratorInternalBusinessService;\n\n  @service('feature/workflow-visualizer/internal-business/step-hydrator')\n  private declare stepHydrator: WorkflowVisualizerStepHydratorInternalBusinessService;\n\n  @service('feature/workflow-visualizer/internal-business/subscription')\n  private declare subscription: WorkflowVisualizerSubscriptionInternalBusinessService;\n\n  @service('feature/workflow-visualizer/internal-feature/utils')\n  private declare utils: WorkflowVisualizerUtilsInternalFeatureService;\n\n  @service('feature/workflow-visualizer/internal-business/action-runner')\n  private declare actionRunner: WorkflowVisualizerActionRunnerInternalBusinessService;\n\n  @service('shared/state/layout')\n  private declare layoutState: LayoutState;\n\n  @service('feature/workflow-visualizer/internal-business/record-store')\n  private declare recordStore: WorkflowVisualizerRecordStoreInternalBusinessService;\n\n  getInboxName(inboxId: string | null | undefined): string {\n    if (!inboxId) return 'Inbox';\n\n    return this.layoutState.inboxes.findBy('id', inboxId)?.name ?? 'Inbox';\n  }\n\n  isStepOpen(stepIndex: number): boolean {\n    return this.state.openStepIndices.includes(stepIndex);\n  }\n\n  async startWorkflow(params: StartWorkflowParams): Promise<void> {\n    this.subscription.unsubscribe();\n    this.state.reset();\n    this.state.isStarting = true;\n    this.state.displaySidePanel = true;\n    this.state.workflowId = params.workflowId;\n    this.state.workflowName = params.workflowName;\n    this.state.collectionId = params.collectionId;\n    this.state.workflowRecords = [\n      { record: { id: params.selectedRecordId }, pathFromRoot: [], stepIndex: -1 },\n    ];\n\n    try {\n      const workflowRun = await this.orchestrator.start({\n        workflowId: params.workflowId,\n        collectionId: params.collectionId,\n        selectedRecordId: params.selectedRecordId,\n      });\n\n      this.state.workflowRunId = workflowRun.id;\n      this.state.serverHistory = workflowRun.workflowHistory;\n      this.state.runState = workflowRun.runState;\n      this.state.alreadyFinishedWorkflow = false;\n\n      try {\n        await this.subscription.subscribe(workflowRun.id, (result) => {\n          void this.handleSubscriptionUpdate(result).catch((error) => {\n            this.errorHandler.handleError(error as Error, 'Subscription update failed');\n          });\n        });\n      } catch {\n        this.notificationFeature.createToastr(\n          ToastrTypeEnum.Warning,\n          'Live updates unavailable — refresh to see latest status',\n        );\n      }\n\n      this.openLastTwoCards();\n\n      if (workflowRun.runState === WorkflowRunStateEnum.Pending) {\n        void this.wakeExecutor();\n      }\n    } catch (error) {\n      this.errorHandler.handleError(error as Error, 'Workflow start failed');\n    } finally {\n      this.state.isStarting = false;\n    }\n  }\n\n  async resumeWorkflow(params: {\n    runId: number;\n    workflowName: string;\n    collectionId: string;\n    selectedRecordId: string;\n  }): Promise<void> {\n    this.subscription.unsubscribe();\n    this.state.reset();\n    this.state.isStarting = true;\n    this.state.displaySidePanel = true;\n    this.state.workflowName = params.workflowName;\n    this.state.collectionId = params.collectionId;\n    this.state.workflowRecords = [\n      { record: { id: params.selectedRecordId }, pathFromRoot: [], stepIndex: -1 },\n    ];\n\n    try {\n      const workflowRun = await this.orchestrator.resume(params.runId);\n\n      this.state.workflowRunId = workflowRun.id;\n      this.state.workflowId = workflowRun.workflowId;\n      this.state.serverHistory = workflowRun.workflowHistory;\n      this.state.runState = workflowRun.runState;\n      this.state.alreadyFinishedWorkflow =\n        workflowRun.runState === WorkflowRunStateEnum.Finished\n        || workflowRun.runState === WorkflowRunStateEnum.Aborted;\n\n      try {\n        await this.subscription.subscribe(workflowRun.id, (result) => {\n          void this.handleSubscriptionUpdate(result).catch((error) => {\n            this.errorHandler.handleError(error as Error, 'Subscription update failed');\n          });\n        });\n      } catch {\n        this.notificationFeature.createToastr(\n          ToastrTypeEnum.Warning,\n          'Live updates unavailable — refresh to see latest status',\n        );\n      }\n\n      this.openLastTwoCards();\n\n      if (workflowRun.runState === WorkflowRunStateEnum.Pending) {\n        void this.wakeExecutor();\n      } else {\n        void this.refreshExecutorData();\n      }\n    } catch (error) {\n      this.errorHandler.handleError(\n        error as Error,\n        'Workflow resume failed. Workflow run will be aborted so you can start a new one.',\n      );\n\n      await this.abortWorkflow(params.runId);\n    } finally {\n      this.state.isStarting = false;\n    }\n  }\n\n  toggleStep(stepIndex: number): void {\n    if (this.isStepOpen(stepIndex)) {\n      this.state.openStepIndices = this.state.openStepIndices.filter(\n        (index) => index !== stepIndex,\n      );\n      return;\n    }\n\n    this.openStep(stepIndex);\n  }\n\n  openReviseConfirmation(stepIndex: number): void {\n    this.state.reviseConfirmationStepIndex = stepIndex;\n  }\n\n  closeReviseConfirmation(): void {\n    this.state.reviseConfirmationStepIndex = null;\n  }\n\n  closePanel(): void {\n    this.recomputeInboxCountIfNecessary();\n    this.subscription.unsubscribe();\n    this.state.reset();\n  }\n\n  async continueWorkflow(): Promise<void> {\n    if (!this.state.isInteractive) return;\n\n    const runId = this.state.workflowRunId;\n\n    if (runId === null) return;\n\n    try {\n      await this.orchestrator.continue(runId);\n    } catch (error) {\n      this.errorHandler.handleError(error as Error, 'Workflow continue failed');\n    }\n  }\n\n  async reviseStep(stepIndex: number): Promise<void> {\n    if (!this.state.isInteractive) {\n      console.warn('Attempted to revise a step while workflow is not interactive');\n      return;\n    }\n\n    const runId = this.state.workflowRunId;\n\n    if (runId === null) return;\n\n    this.state.isRevising = true;\n\n    try {\n      await this.orchestrator.revise({ runId, stepIndex });\n      this.recomputeInboxCountIfNecessary();\n    } catch (error) {\n      this.errorHandler.handleError(error as Error, 'Workflow revise failed');\n    } finally {\n      this.state.isRevising = false;\n    }\n  }\n\n  async triggerActionStep(\n    stepHistory: HydratedStepHistory<WorkflowTaskTriggerAction, TriggerActionStepExecution>,\n  ): Promise<void> {\n    if (!this.state.isInteractive) {\n      console.warn('Attempted to trigger action while workflow is not interactive');\n      return;\n    }\n\n    const exec = stepHistory.executorStep;\n\n    if (!exec?.pendingData || !exec.selectedRecordRef) return;\n\n    const { recordId } = exec.selectedRecordRef;\n\n    if (!recordId) return;\n\n    try {\n      const actionResult = await this.actionRunner.runAction({\n        collectionName: exec.selectedRecordRef.collectionName,\n        recordId,\n        actionName: exec.pendingData.name,\n      });\n\n      if (actionResult?.success) {\n        await this.submitPendingData({ userConfirmed: true, actionResult });\n      }\n    } catch (error) {\n      this.errorHandler.handleError(error as Error, 'Workflow trigger action failed');\n    }\n  }\n\n  async handleManuallyStep(): Promise<void> {\n    if (!this.state.isInteractive) return;\n\n    const runId = this.state.workflowRunId;\n\n    if (runId === null) return;\n\n    this.state.isHandlingManually = true;\n\n    try {\n      await this.orchestrator.handleManually(runId);\n    } catch (error) {\n      this.errorHandler.handleError(error as Error, 'Workflow handle manually failed');\n    } finally {\n      this.state.isHandlingManually = false;\n    }\n  }\n\n  async abortWorkflow(runIdToAbort?: number): Promise<void> {\n    const runId = runIdToAbort ?? this.state.workflowRunId;\n\n    if (runId !== null) {\n      this.state.isAborting = true;\n      try {\n        await this.orchestrator.abort(runId);\n        this.recomputeInboxCountIfNecessary();\n      } catch {\n        this.notificationFeature.createToastr(\n          ToastrTypeEnum.Warning,\n          'Could not abort workflow on the server — closing panel locally',\n        );\n      } finally {\n        this.state.isAborting = false;\n      }\n    }\n\n    this.closePanel();\n  }\n\n  toggleCollapse(): void {\n    this.state.isSidePanelCollapsed = !this.state.isSidePanelCollapsed;\n  }\n\n  async submitPendingData(pendingData?: unknown): Promise<boolean> {\n    if (!this.state.isInteractive) {\n      console.warn('Attempted to submit pending data while workflow is not interactive');\n      return false;\n    }\n\n    const runId = this.state.workflowRunId;\n\n    if (!runId) return false;\n\n    this.state.isSubmittingPendingData = true;\n\n    try {\n      await this.executor.trigger(runId, pendingData);\n      return true;\n    } catch (error) {\n      const lastEntry = this.state.history[this.state.history.length - 1];\n      if (lastEntry) {\n        lastEntry.context.error = (error as Error).message;\n      }\n      this.errorHandler.handleError(error as Error, 'Failed to send data to workflow executor');\n      return false;\n    } finally {\n      this.state.isSubmittingPendingData = false;\n    }\n  }\n\n  async submitFieldUpdate(params: SubmitFieldUpdateParams): Promise<boolean> {\n    if (!this.state.isInteractive) {\n      return false;\n    }\n\n    const value = toExecutorValue(params.field.type, params.rawValue);\n    const success = await this.submitPendingData({ value, userConfirmed: true });\n\n    if (success && params.modelName && params.recordId) {\n      try {\n        this.updateRecordInStore(params.modelName, params.recordId, params.field, params.rawValue);\n      } catch {\n        // Local store sync is best-effort: the subscription refresh will reconcile.\n      }\n    }\n\n    return success;\n  }\n\n  updateRecordInStore(\n    modelName: string,\n    recordId: string,\n    field: FieldModel,\n    value: unknown,\n  ): void {\n    this.recordStore.applyFieldUpdate(modelName, recordId, field, value);\n  }\n\n  async escalate(inboxId: string): Promise<void> {\n    const runId = this.state.workflowRunId;\n\n    if (runId === null) return;\n\n    try {\n      const inboxAssignment = await this.orchestrator.escalate(runId, inboxId);\n      this.recomputeInboxCountIfNecessary(true);\n      this.eventBus.trigger(EventBusEventsEnum.InboxAssignmentUpdated, {\n        inbox: inboxAssignment.inbox,\n      });\n\n      this.notificationFeature.createToastr(ToastrTypeEnum.Success, 'Step escalated successfully');\n    } catch (error) {\n      this.errorHandler.handleError(error as Error, 'Failed to escalate workflow step');\n    }\n  }\n\n  getCurrentCollection() {\n    const collectionId = this.state.collectionId;\n\n    if (!collectionId) return null;\n\n    return this.layoutState.collections.findBy('id', collectionId);\n  }\n\n  private async refreshExecutorData(): Promise<void> {\n    const runId = this.state.workflowRunId;\n\n    if (runId === null) return;\n\n    try {\n      const steps = await this.executor.getRunContextData(runId);\n\n      if (this.state.workflowRunId !== runId) return;\n\n      this.state.executorSteps = steps;\n      this.openPendingExecutorStep();\n    } catch (error) {\n      if (this.state.workflowRunId !== runId) return;\n\n      this.state.executorSteps = [];\n      this.errorHandler.handleError(\n        error as Error,\n        'Could not load executor data — some actions may be unavailable',\n      );\n    }\n  }\n\n  private openPendingExecutorStep(): void {\n    const pending = this.state.pendingExecutorStep;\n\n    if (pending) {\n      this.openStep(pending.stepIndex);\n    }\n  }\n\n  private openLastTwoCards(): void {\n    const visibleCards = this.utils.cardSteps.filter((card) => !card.cancelled && !card.revised);\n\n    for (const card of visibleCards.slice(-2)) {\n      this.openStep(card.stepIndex);\n    }\n  }\n\n  private async handleSubscriptionUpdate(result: SubscriptionUpdateResult): Promise<void> {\n    const runId = this.state.workflowRunId;\n\n    if (runId === null) return;\n\n    if (result.executorDataChanged) {\n      await this.refreshExecutorData();\n    }\n\n    if (this.state.workflowRunId !== runId) return;\n\n    const previousRunState = this.state.runState;\n    this.applySubscriptionDeltas(result);\n    this.carryForwardExecutorDataForCopiedSteps(result);\n    this.handleUIUpdates(result, previousRunState);\n\n    if (result.runState === WorkflowRunStateEnum.Pending) {\n      void this.wakeExecutor();\n    }\n  }\n\n  private applySubscriptionDeltas(result: SubscriptionUpdateResult): void {\n    const updatedHistory = [...this.state.serverHistory];\n\n    for (const update of result.updatedEntries) {\n      const entry = updatedHistory[update.stepIndex];\n\n      if (!entry) {\n        continue;\n      }\n\n      const mergedContext =\n        update.attributes.context !== undefined\n          ? { ...entry.context, ...update.attributes.context }\n          : entry.context;\n\n      updatedHistory[update.stepIndex] = {\n        ...entry,\n        ...update.attributes,\n        context: mergedContext,\n      };\n    }\n\n    for (const added of result.addedEntries) {\n      updatedHistory[added.stepIndex] = added;\n    }\n\n    this.state.serverHistory = updatedHistory;\n\n    if (result.runState && this.isValidRunState(result.runState)) {\n      this.state.runState = result.runState;\n    }\n  }\n\n  private carryForwardExecutorDataForCopiedSteps(result: SubscriptionUpdateResult): void {\n    const copies = result.addedEntries.filter(\n      (added) => added.done && added.originalStepIndex != null,\n    );\n\n    if (copies.length === 0) return;\n\n    let executorSteps = [...this.state.executorSteps];\n\n    for (const added of copies) {\n      const original = executorSteps.find((s) => s.stepIndex === added.originalStepIndex);\n\n      if (original) {\n        // Deep copy: a shallow spread would share nested refs, so editing the copy (e.g. submitting\n        // pending data) would mutate the original. ExecutorStep is plain JSON — structuredClone is safe.\n        const copy = structuredClone(original);\n        copy.stepIndex = added.stepIndex;\n\n        executorSteps = [...executorSteps.filter((s) => s.stepIndex !== added.stepIndex), copy];\n      }\n    }\n\n    this.state.executorSteps = executorSteps;\n  }\n\n  private handleUIUpdates(\n    result: SubscriptionUpdateResult,\n    previousRunState: WorkflowRunStateEnum | null,\n  ): void {\n    const newCardIndices = result.addedEntries\n      .filter((added) => this.state.history[added.stepIndex]?.isCardStep)\n      .map((added) => added.stepIndex);\n\n    if (newCardIndices.length > 0) {\n      this.openStepAndCloseOthers(newCardIndices);\n    }\n\n    if (\n      result.runState === WorkflowRunStateEnum.Finished\n      && previousRunState !== WorkflowRunStateEnum.Finished\n    ) {\n      this.handleWorkflowComplete();\n    }\n  }\n\n  private handleWorkflowComplete(): void {\n    const endSteps = this.state.serverHistory.filter((stepHistory) => {\n      return (\n        stepHistory.stepDefinition?.type === StepTypeEnum.End\n        && !stepHistory.cancelled\n        && !stepHistory.revised\n      );\n    });\n    const endStep = endSteps[endSteps.length - 1];\n\n    if (endStep) {\n      this.openStep(endStep.stepIndex);\n    }\n  }\n\n  private openStep(stepIndex: number): void {\n    if (this.isStepOpen(stepIndex)) {\n      return;\n    }\n\n    this.state.openStepIndices = [...this.state.openStepIndices, stepIndex];\n  }\n\n  private openStepAndCloseOthers(newStepIndices: number[]): void {\n    // Intentional divergence from the browser engine: we always force the previous card open\n    // alongside the new ones so both are visible together. The browser engine only preserves it\n    // if the user had not collapsed it — that behavior is considered a bug there.\n    const excluded = new Set(newStepIndices);\n    const previousCardIndex = this.findPreviousCardStepIndex(excluded);\n    const preserved = previousCardIndex !== null ? [previousCardIndex] : [];\n    this.state.openStepIndices = [...preserved, ...newStepIndices];\n  }\n\n  private findPreviousCardStepIndex(excludedStepIndices: Set<number>): number | null {\n    const candidates = this.state.serverHistory.filter(\n      (entry) =>\n        entry.isCardStep\n        && !entry.cancelled\n        && !entry.revised\n        && !excludedStepIndices.has(entry.stepIndex),\n    );\n    return candidates.at(-1)?.stepIndex ?? null;\n  }\n\n  private async wakeExecutor(): Promise<void> {\n    const runId = this.state.workflowRunId;\n\n    if (runId === null) return;\n\n    try {\n      await this.executor.trigger(runId);\n    } catch (error) {\n      if (error instanceof ExecutorError && error.statusCode === 400) {\n        this.errorHandler.handleSilentError(error, {\n          origin: 'wakeExecutor',\n          reason: 'executor-trigger-rejected',\n          runId,\n          statusCode: error.statusCode,\n        });\n      } else {\n        this.errorHandler.handleError(error as Error, 'Workflow step failed');\n      }\n    }\n  }\n\n  private isValidRunState(value: string): value is WorkflowRunStateEnum {\n    return (Object.values(WorkflowRunStateEnum) as string[]).includes(value);\n  }\n\n  private recomputeInboxCountIfNecessary(afterNewEscalation?: boolean) {\n    const serverHistory = [...this.state.serverHistory]\n      .slice(0, afterNewEscalation ? -1 : undefined)\n      .reverse();\n    const lastEscalationStep = serverHistory.find(\n      (step) => step.stepDefinition.type === StepTypeEnum.Escalation,\n    );\n    if (lastEscalationStep) {\n      const inboxId = (lastEscalationStep.stepDefinition as WorkflowEscalation).inboxId;\n      const inbox = this.layoutState.inboxes.find((i) => i.id === inboxId);\n\n      if (inbox) {\n        this.eventBus.trigger(EventBusEventsEnum.InboxAssignmentUpdated, {\n          inbox,\n        });\n      }\n    }\n  }\n}\n","import type StoreService from '@ember-data/store';\nimport type ActionFeatureService from 'client/features/action/services/feature';\nimport type { SmartActionResult } from 'client/features/action/state';\nimport type CollectionFeatureService from 'client/features/collection/services/feature';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type ModelRegistry from 'ember-data/types/registries/model';\n\nimport Service, { service } from '@ember/service';\n\ninterface RunActionParams {\n  collectionName: string;\n  recordId: string;\n  actionName: string;\n}\n\nexport default class WorkflowVisualizerActionRunnerInternalBusinessService extends Service {\n  @service private declare store: StoreService;\n\n  @service('feature/collection')\n  private declare collectionFeature: CollectionFeatureService;\n\n  @service('feature/action')\n  private declare actionFeature: ActionFeatureService;\n\n  async runAction(params: RunActionParams): Promise<SmartActionResult | null> {\n    const collection = this.collectionFeature.getCollectionFromName(params.collectionName);\n\n    if (!collection) {\n      throw new Error(`Collection \"${params.collectionName}\" not found`);\n    }\n\n    const action = collection.customActionsOrderedForUser.find(\n      (a) => a.name === params.actionName || a.displayName === params.actionName,\n    );\n\n    if (!action) {\n      throw new Error(\n        `Action \"${params.actionName}\" not found on collection \"${collection.displayName}\"`,\n      );\n    }\n\n    const emberModelName = collection.get('emberModelName') as keyof ModelRegistry & string;\n    const record = (await this.store.findRecord(\n      emberModelName,\n      params.recordId,\n    )) as unknown as ClientRecordModel;\n\n    return this.actionFeature.openActionFormForRecord(action, record);\n  }\n}\n","import type {\n  ExecutorRunResponse,\n  StepExecution,\n} from 'client/features/workflow-visualizer/types/executor';\nimport type LianaServerFetchService from 'client/legacy/services/liana-server-fetch';\nimport type { ServerFetchRequestInit } from 'client/legacy/services/liana-server-fetch';\n\nimport Service, { service } from '@ember/service';\n\nimport { ExecutorError } from 'client/features/workflow-visualizer/errors';\nimport { HttpError } from 'client/utils/errors';\n\nconst BASE_PATH = '/forest/_internal/workflow-executions';\n\nexport default class WorkflowVisualizerExecutorInternalBusinessService extends Service {\n  @service private declare lianaServerFetch: LianaServerFetchService;\n\n  async getRunContextData(runId: number): Promise<StepExecution[]> {\n    const response = await this.fetch(`${BASE_PATH}/${runId}`, { method: 'GET' });\n\n    const json: ExecutorRunResponse = await response.json();\n    return json.steps;\n  }\n\n  async trigger(runId: number, pendingData?: unknown): Promise<void> {\n    const body = pendingData !== undefined ? JSON.stringify({ pendingData }) : undefined;\n\n    await this.fetch(`${BASE_PATH}/${runId}/trigger`, {\n      method: 'POST',\n      ...(body && { body, headers: { 'Content-Type': 'application/json' } }),\n    });\n  }\n\n  private async fetch(path: string, options: ServerFetchRequestInit): Promise<Response> {\n    try {\n      return await this.lianaServerFetch.fetch(path, options);\n    } catch (error) {\n      throw this.toExecutorError(error);\n    }\n  }\n\n  private toExecutorError(error: unknown): ExecutorError {\n    if (error instanceof HttpError) {\n      const body = error.body as { message?: string; error?: string } | null | undefined;\n      const message = body?.message || body?.error || `HTTP ${error.status}`;\n\n      return new ExecutorError(error, message, error.status);\n    }\n\n    const cause = error instanceof Error ? error : new Error(String(error));\n\n    return new ExecutorError(cause, cause.message);\n  }\n}\n","import type InboxAssignmentModel from 'client/data/models/inbox-assignment';\nimport type {\n  ResumeWorkflowResponse,\n  StartWorkflowResponse,\n} from 'client/features/workflow-visualizer/types/workflow-run';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport { OrchestratorError } from 'client/features/workflow-visualizer/errors';\n\nconst BASE_PATH = '/api/workflow-orchestrator';\n\nexport default class WorkflowVisualizerOrchestratorInternalBusinessService extends Service {\n  @service private declare serverFetch: ServerFetchService;\n\n  @service private readonly store: StoreService;\n\n  async start(request: {\n    workflowId: string;\n    collectionId: string;\n    selectedRecordId: string;\n  }): Promise<StartWorkflowResponse> {\n    const body = JSON.stringify(request);\n\n    const response = await this.serverFetch.fetch(`${BASE_PATH}/start`, {\n      method: 'POST',\n      body,\n    });\n\n    if (!response.ok) {\n      throw await this.parseError(response);\n    }\n\n    const json: StartWorkflowResponse = await response.json();\n\n    return json;\n  }\n\n  async abort(runId: number): Promise<void> {\n    const response = await this.serverFetch.fetch(`${BASE_PATH}/abort/${runId}`, {\n      method: 'POST',\n    });\n\n    if (!response.ok) {\n      throw await this.parseError(response);\n    }\n  }\n\n  async resume(runId: number): Promise<ResumeWorkflowResponse> {\n    const response = await this.serverFetch.fetch(`${BASE_PATH}/resume/${runId}`, {\n      method: 'GET',\n    });\n\n    if (!response.ok) {\n      throw await this.parseError(response);\n    }\n\n    const json: ResumeWorkflowResponse = await response.json();\n\n    return json;\n  }\n\n  async continue(runId: number): Promise<void> {\n    const response = await this.serverFetch.fetch(`${BASE_PATH}/continue/${runId}`, {\n      method: 'POST',\n    });\n\n    if (!response.ok) {\n      throw await this.parseError(response);\n    }\n  }\n\n  async revise(request: { runId: number; stepIndex: number }): Promise<void> {\n    const body = JSON.stringify(request);\n\n    const response = await this.serverFetch.fetch(`${BASE_PATH}/revise`, {\n      method: 'POST',\n      body,\n    });\n\n    if (!response.ok) {\n      throw await this.parseError(response);\n    }\n  }\n\n  async handleManually(runId: number): Promise<void> {\n    const response = await this.serverFetch.fetch(`${BASE_PATH}/handle-manually/${runId}`, {\n      method: 'POST',\n    });\n\n    if (!response.ok) {\n      throw await this.parseError(response);\n    }\n  }\n\n  async escalate(runId: number, inboxId: string): Promise<InboxAssignmentModel> {\n    const body = JSON.stringify({ inboxId });\n\n    const response = await this.serverFetch.fetch(`${BASE_PATH}/escalate/${runId}`, {\n      method: 'POST',\n      body,\n    });\n\n    if (!response.ok) {\n      throw await this.parseError(response);\n    }\n\n    const json: { data: unknown } = await response.json();\n\n    const serializer = this.store.serializerFor('inbox-assignment');\n    const normalized = serializer.normalizeResponse(\n      this.store,\n      this.store.modelFor('inbox-assignment'),\n      json,\n      null,\n      'findRecord',\n    );\n    const inboxAssignment = this.store.push(normalized) as InboxAssignmentModel;\n\n    return inboxAssignment;\n  }\n\n  private async parseError(response: Response): Promise<OrchestratorError> {\n    try {\n      const body = (await response.json()) as {\n        errors?: Array<{ detail?: string; name?: string }>;\n        message?: string;\n      };\n      const message = body.errors?.[0]?.detail || body.message || 'Unknown error';\n\n      return new OrchestratorError(new Error(message), message, response.status);\n    } catch {\n      const fallback = `HTTP ${response.status}`;\n\n      return new OrchestratorError(new Error(fallback), fallback, response.status);\n    }\n  }\n}\n","import type Store from '@ember-data/store';\nimport type FieldModel from 'client/data/models/field';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\n\nimport { toRecordValue } from 'client/utils/ember-data-value-coercion';\n\ntype WritableRecord = ClientRecordModel & Record<string, unknown>;\n\nexport default class WorkflowVisualizerRecordStoreInternalBusinessService extends Service {\n  @service\n  private declare store: Store;\n\n  applyFieldUpdate(modelName: string, recordId: string, field: FieldModel, value: unknown): void {\n    const record = this.store.peekRecord(modelName, recordId) as WritableRecord | null;\n    if (!record) return;\n\n    // Same pattern as tool-update-selected-record-field: direct attr assignment is what\n    // triggers Glimmer reactivity on Forest dynamic models.\n    record[field.attributeName] = toRecordValue(field.type, value);\n  }\n}\n","import type { StepExecution } from 'client/features/workflow-visualizer/types/executor';\nimport type {\n  HydratedStepHistory,\n  RawStepHistory,\n} from 'client/features/workflow-visualizer/types/workflow-run';\nimport type { WorkflowStep } from 'client/features/workflow-visualizer/types/workflow-step';\nimport type HtmlSanitizerService from 'client/legacy/services/html-sanitizer';\n\nimport Service, { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { type SafeString } from '@ember/template/-private/handlebars';\n\nimport { isAutomated } from 'client/features/workflow-visualizer/types/type-guards';\n\nexport default class WorkflowVisualizerStepHydratorInternalBusinessService extends Service {\n  @service('html-sanitizer')\n  private declare htmlSanitizer: HtmlSanitizerService;\n\n  hydrateHistory(\n    serverHistory: RawStepHistory[],\n    executorSteps: StepExecution[],\n  ): HydratedStepHistory[] {\n    const historyWithStepDefinitions = serverHistory.map((raw) => this.hydrateStepHistory(raw));\n    return this.hydrateWithExecutorData(historyWithStepDefinitions, executorSteps);\n  }\n\n  private hydrateWithExecutorData(\n    history: HydratedStepHistory[],\n    executorSteps: StepExecution[],\n  ): HydratedStepHistory[] {\n    const executorByIndex = new Map(executorSteps.map((step) => [step.stepIndex, step]));\n    const lastIndex = history.length - 1;\n\n    return history.map((entry, index) => {\n      const executorStep = executorByIndex.get(entry.stepIndex) ?? null;\n      const isLoading =\n        index === lastIndex\n        && this.stepExpectsExecutorData(entry.step)\n        && !executorStep\n        && !entry.context?.error\n        && !entry.done;\n\n      return {\n        ...entry,\n        executorStep,\n        isLoading,\n      };\n    });\n  }\n\n  private stepExpectsExecutorData(step: WorkflowStep | null): boolean {\n    if (!step) return false;\n\n    return isAutomated(step);\n  }\n\n  private hydrateStepHistory(raw: RawStepHistory): HydratedStepHistory {\n    const step = raw.stepDefinition ?? null;\n\n    return {\n      ...raw,\n      step,\n      executorStep: null,\n      isLoading: false,\n      safePrompt: this.buildSafePrompt(step),\n    };\n  }\n\n  private buildSafePrompt(step: WorkflowStep | null): SafeString | undefined {\n    if (!step || !('prompt' in step) || !step.prompt) {\n      return undefined;\n    }\n\n    return htmlSafe(this.htmlSanitizer.sanitizeRichText(step.prompt));\n  }\n}\n","import type {\n  SubscriptionUpdateResult,\n  WorkflowRunUpdatedPayload,\n} from 'client/features/workflow-visualizer/types/subscription';\nimport type {\n  RawStepHistory,\n  StepContext,\n} from 'client/features/workflow-visualizer/types/workflow-run';\nimport type CustomApolloService from 'client/legacy/services/apollo';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport { addListener, removeListener } from '@ember/object/events';\nimport Service, { service } from '@ember/service';\n\nimport { SubscriptionError } from 'client/features/workflow-visualizer/errors';\nimport queryWorkflowRunUpdated from 'client/gql/subscriptions/workflow-run-updated.graphql';\n\ninterface EmberApolloSubscription {\n  apolloUnsubscribe(): void;\n}\n\nexport default class WorkflowVisualizerSubscriptionInternalBusinessService extends Service {\n  @service private declare apollo: CustomApolloService;\n  @service private declare tracker: TrackerService;\n\n  private activeSubscription: EmberApolloSubscription | null = null;\n  private boundHandler: ((data: WorkflowRunUpdatedPayload) => void) | null = null;\n  private onUpdate: ((result: SubscriptionUpdateResult) => void) | null = null;\n\n  async subscribe(\n    runId: number,\n    onUpdate: (result: SubscriptionUpdateResult) => void,\n  ): Promise<void> {\n    this.unsubscribe();\n    this.onUpdate = onUpdate;\n\n    try {\n      const subscription = (await this.apollo.subscribe(\n        {\n          query: queryWorkflowRunUpdated,\n          variables: { runId },\n        },\n        'workflowRunUpdated',\n      )) as EmberApolloSubscription;\n\n      this.boundHandler = (data: WorkflowRunUpdatedPayload) => this.handleUpdate(data);\n      addListener(subscription, 'event', this.boundHandler);\n      this.activeSubscription = subscription;\n    } catch (error) {\n      this.onUpdate = null;\n      throw new SubscriptionError(error as Error, 'Failed to subscribe to workflow run updates');\n    }\n  }\n\n  unsubscribe(): void {\n    if (this.activeSubscription && this.boundHandler) {\n      removeListener(this.activeSubscription, 'event', this.boundHandler);\n      this.activeSubscription.apolloUnsubscribe();\n    }\n\n    this.activeSubscription = null;\n    this.boundHandler = null;\n    this.onUpdate = null;\n  }\n\n  private handleUpdate(data: WorkflowRunUpdatedPayload): void {\n    if (!this.onUpdate) return;\n\n    try {\n      this.onUpdate(this.transformPayload(data));\n    } catch (error) {\n      this.tracker.captureException(error as Error);\n    }\n  }\n\n  private transformPayload(data: WorkflowRunUpdatedPayload): SubscriptionUpdateResult {\n    const stepUpdates = Array.isArray(data.stepUpdates) ? data.stepUpdates : [];\n    const addedSteps = Array.isArray(data.addedSteps) ? data.addedSteps : [];\n    const updatedEntries = stepUpdates.map((stepUpdate) => {\n      const { context: rawContext, ...otherAttributes } = stepUpdate.attributes ?? {};\n      const context = rawContext !== undefined ? this.parseContext(rawContext) : undefined;\n\n      return {\n        stepIndex: stepUpdate.stepIndex,\n        attributes: {\n          ...otherAttributes,\n          ...(context ? { context } : {}),\n        },\n      };\n    });\n\n    const addedEntries: RawStepHistory[] = addedSteps.map((addedStep) => ({\n      ...addedStep,\n      context: this.parseContext(addedStep.context),\n    }));\n\n    return {\n      updatedEntries,\n      addedEntries,\n      runState:\n        typeof data.runAttributes?.runState === 'string' ? data.runAttributes.runState : undefined,\n      executorDataChanged: data.executorDataChanged,\n    };\n  }\n\n  private parseContext(raw: unknown): StepContext | undefined {\n    if (raw == null || raw === '') {\n      return undefined;\n    }\n\n    if (typeof raw !== 'string') {\n      throw new SubscriptionError(\n        new Error(`Invalid workflow step context type: ${typeof raw}`),\n        'Invalid workflow step context payload',\n      );\n    }\n\n    let parsed: unknown;\n\n    try {\n      parsed = JSON.parse(raw) as unknown;\n    } catch (error) {\n      throw new SubscriptionError(error as Error, 'Invalid workflow step context payload');\n    }\n\n    if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {\n      throw new SubscriptionError(\n        new Error('Workflow step context must be an object'),\n        'Invalid workflow step context payload',\n      );\n    }\n\n    return parsed as StepContext;\n  }\n}\n","import type WorkflowVisualizerFeatureState from 'client/features/workflow-visualizer/state';\nimport type { SelectedRecordRef } from 'client/features/workflow-visualizer/types/executor';\nimport type {\n  HydratedStepHistory,\n  WorkflowRecordEntry,\n} from 'client/features/workflow-visualizer/types/workflow-run';\n\nimport Service, { service } from '@ember/service';\n\nimport { ExecutorStepExecutionTypeEnum } from 'client/features/workflow-visualizer/types/executor';\nimport {\n  isCloseSubWorkflowStep,\n  isStartSubWorkflowStep,\n} from 'client/features/workflow-visualizer/types/type-guards';\n\nexport interface ActivityContextParams {\n  workflowId: string | null;\n  workflowName: string | null;\n  collectionId: string | null;\n  workflowRecords: WorkflowRecordEntry[];\n}\n\nexport default class WorkflowVisualizerUtilsInternalFeatureService extends Service {\n  @service('feature/workflow-visualizer/state')\n  private declare state: WorkflowVisualizerFeatureState;\n\n  get cardSteps(): HydratedStepHistory[] {\n    return this.state.history.filter((historyStep) => historyStep.isCardStep);\n  }\n\n  get currentStep(): HydratedStepHistory | null {\n    return this.state.history[this.state.history.length - 1] ?? null;\n  }\n\n  isCurrentStep(stepHistory: HydratedStepHistory): boolean {\n    return stepHistory === this.currentStep;\n  }\n\n  isLoading(stepHistory: HydratedStepHistory): boolean {\n    return this.isCurrentStep(stepHistory) && this.state.isLoading && !stepHistory.done;\n  }\n\n  isInitiallyLoading(stepHistory: HydratedStepHistory): boolean {\n    return this.isLoading(stepHistory) && !stepHistory.executorStep;\n  }\n\n  areStepButtonsDisabled(stepHistory: HydratedStepHistory): boolean {\n    return (\n      !this.isCurrentStep(stepHistory)\n      || this.isStepRevisedOrCancelled(stepHistory)\n      || !this.state.isInteractive\n      || stepHistory.done\n    );\n  }\n\n  isStepRevisedOrCancelled(stepHistory: HydratedStepHistory): boolean {\n    return Boolean(stepHistory.cancelled || stepHistory.revised);\n  }\n\n  getSubSteps(stepHistory: HydratedStepHistory): HydratedStepHistory[] {\n    let nextStep = false;\n    return this.state.history.filter((workflowStepHistory, index) => {\n      if (index <= stepHistory.stepIndex || nextStep) return false;\n\n      if (workflowStepHistory.isCardStep) {\n        nextStep = true;\n        return false;\n      }\n      return true;\n    });\n  }\n\n  // Walks history backwards from stepIndex to find the most recent ReadRecord's\n  // selectedRecordRef. Stops at sub-workflow boundaries so a step inside a sub-workflow\n  // never reads from the parent workflow, and vice versa.\n  getSelectedRecordRefForStep(stepIndex: number): SelectedRecordRef | null {\n    for (let i = stepIndex - 1; i >= 0; i -= 1) {\n      const entry = this.state.history[i];\n      if (!entry) continue;\n      if (isStartSubWorkflowStep(entry.step) || isCloseSubWorkflowStep(entry.step)) return null;\n      if (entry.revised || entry.cancelled) continue;\n      const exec = entry.executorStep;\n      if (exec?.type === ExecutorStepExecutionTypeEnum.ReadRecord && exec.selectedRecordRef) {\n        return exec.selectedRecordRef;\n      }\n    }\n    return null;\n  }\n}\n","// eslint-disable-next-line forest-custom/dependency-rules\nimport type WorkflowVisualizerStepHydratorInternalBusinessService from 'client/features/workflow-visualizer/services/internal-business/step-hydrator';\nimport type { StepExecution } from 'client/features/workflow-visualizer/types/executor';\nimport type {\n  HydratedStepHistory,\n  RawStepHistory,\n  WorkflowRecordEntry,\n} from 'client/features/workflow-visualizer/types/workflow-run';\n\nimport Service, { service } from '@ember/service';\nimport { cached, tracked } from '@glimmer/tracking';\n\nimport { hasPendingData } from 'client/features/workflow-visualizer/types/executor';\nimport { WorkflowRunStateEnum } from 'client/features/workflow-visualizer/types/workflow-run';\n\nexport default class WorkflowVisualizerFeatureState extends Service {\n  @service('feature/workflow-visualizer/internal-business/step-hydrator')\n  private declare stepHydrator: WorkflowVisualizerStepHydratorInternalBusinessService;\n\n  @tracked workflowRunId: number | null = null;\n  @tracked runState: WorkflowRunStateEnum | null = null;\n  @tracked alreadyFinishedWorkflow = false;\n\n  @tracked serverHistory: RawStepHistory[] = [];\n  @tracked executorSteps: StepExecution[] = [];\n\n  @tracked workflowId: string | null = null;\n  @tracked workflowName: string | null = null;\n  @tracked collectionId: string | null = null;\n  @tracked workflowRecords: WorkflowRecordEntry[] = [];\n  @tracked displaySidePanel = false;\n  @tracked isSidePanelCollapsed = false;\n  @tracked openStepIndices: number[] = [];\n  @tracked isSubmittingPendingData = false;\n  @tracked isStarting = false;\n  @tracked isAborting = false;\n  @tracked isRevising = false;\n  @tracked isHandlingManually = false;\n  @tracked reviseConfirmationStepIndex: number | null = null;\n\n  get isFinished(): boolean {\n    return this.runState === WorkflowRunStateEnum.Finished;\n  }\n\n  get shouldShowEndConfetti(): boolean {\n    return this.isFinished && !this.alreadyFinishedWorkflow;\n  }\n\n  get isAborted(): boolean {\n    return this.runState === WorkflowRunStateEnum.Aborted;\n  }\n\n  get isLoading(): boolean {\n    return (\n      this.runState === WorkflowRunStateEnum.Loading\n      || this.runState === WorkflowRunStateEnum.Pending\n    );\n  }\n\n  get isInteractive(): boolean {\n    return (\n      this.runState === WorkflowRunStateEnum.Started\n      && !this.isRevising\n      && !this.isStarting\n      && !this.isAborting\n    );\n  }\n\n  get hasActiveWorkflow(): boolean {\n    return this.workflowRunId !== null && !this.isFinished && !this.isAborted;\n  }\n\n  get pendingExecutorStep(): StepExecution | null {\n    return this.executorSteps.find(hasPendingData) ?? null;\n  }\n\n  @cached\n  get history(): HydratedStepHistory[] {\n    return this.stepHydrator.hydrateHistory(this.serverHistory, this.executorSteps);\n  }\n\n  reset(): void {\n    this.workflowRunId = null;\n    this.runState = null;\n    this.alreadyFinishedWorkflow = false;\n    this.serverHistory = [];\n    this.workflowId = null;\n    this.workflowName = null;\n    this.collectionId = null;\n    this.workflowRecords = [];\n    this.displaySidePanel = false;\n    this.isSidePanelCollapsed = false;\n    this.openStepIndices = [];\n    this.executorSteps = [];\n    this.isSubmittingPendingData = false;\n    this.isStarting = false;\n    this.isAborting = false;\n    this.isRevising = false;\n    this.isHandlingManually = false;\n    this.reviseConfirmationStepIndex = null;\n  }\n}\n","// Frontend-only types for executor step execution data.\n// Mirrors the backend StepExecutionData union but only includes fields needed by the frontend.\n\nexport enum ExecutorStepExecutionTypeEnum {\n  Condition = 'condition',\n  ReadRecord = 'read-record',\n  Record = 'record',\n  UpdateRecord = 'update-record',\n  TriggerAction = 'trigger-action',\n  Mcp = 'mcp',\n  LoadRelatedRecord = 'load-related-record',\n  Guidance = 'guidance',\n}\n\n// -- Base --\n\nexport interface SelectedRecordRef {\n  collectionName: string;\n  recordId: string;\n}\n\ninterface BaseStepExecution {\n  stepIndex: number;\n}\n\n// -- Types without pendingData --\n\nexport interface ConditionStepExecution extends BaseStepExecution {\n  type: 'condition';\n  // Populated by the executor when the step runs (condition-step-executor saves it via\n  // saveStepExecution). Marked optional defensively because a condition step may appear\n  // in intermediate/loading states before execution lands. Consumers should narrow.\n  executionParams?: { answer: string | null; reasoning?: string };\n  executionResult?: { answer: string };\n}\n\nexport interface ReadRecordStepExecution extends BaseStepExecution {\n  type: 'read-record';\n  executionParams?: { fields: Array<{ name: string; displayName: string }> };\n  executionResult?: {\n    fields: Array<\n      | { name: string; displayName: string; value: unknown }\n      | { name: string; displayName: string; error: string }\n    >;\n  };\n  selectedRecordRef?: SelectedRecordRef;\n}\n\n// record uses toolConfirmationInterruption, not pendingData — out of scope\nexport interface RecordStepExecution extends BaseStepExecution {\n  type: 'record';\n}\n\n// -- Types with pendingData --\n\nexport interface UpdateRecordStepExecution extends BaseStepExecution {\n  type: 'update-record';\n  // Immutable AI suggestion. User overrides land in `userConfirmation`.\n  pendingData?: { name: string; displayName: string; value: unknown };\n  executionParams?: { name: string; displayName: string; value: unknown };\n  executionResult?: { updatedValues: Record<string, unknown> } | { skipped: true };\n  // Parsed patch body persisted by the executor at confirmation time.\n  userConfirmation?: { userConfirmed?: boolean; value?: unknown };\n  selectedRecordRef?: SelectedRecordRef;\n}\n\nexport interface TriggerActionStepExecution extends BaseStepExecution {\n  type: 'trigger-action';\n  pendingData?: { name: string; displayName: string; userConfirmed?: boolean };\n  executionParams?: { name: string; displayName: string };\n  executionResult?: { success: true; actionResult: unknown } | { skipped: true };\n  userConfirmation?: { userConfirmed?: boolean; actionResult?: unknown };\n  selectedRecordRef?: SelectedRecordRef;\n}\n\nexport interface McpStepExecution extends BaseStepExecution {\n  type: 'mcp';\n  pendingData?: {\n    name: string;\n    sourceId: string;\n    input: Record<string, unknown>;\n    userConfirmed?: boolean;\n  };\n  executionResult?:\n    | { success: true; toolResult: unknown; formattedResponse?: string }\n    | { skipped: true };\n}\n\nexport interface LoadRelatedRecordCandidate {\n  recordId: string;\n  referenceFieldValue: string | null;\n}\n\nexport interface LoadRelatedRecordStepExecution extends BaseStepExecution {\n  type: 'load-related-record';\n  // The source record the related data is loaded from (returned by the executor).\n  selectedRecordRef?: SelectedRecordRef;\n  // Immutable AI suggestion. User overrides land in `userConfirmation`, not here.\n  pendingData?: {\n    availableFields: Array<{ name: string; displayName: string }>;\n    suggestedField: { name: string; displayName: string };\n    availableRecordIds: LoadRelatedRecordCandidate[];\n    suggestedRecord: LoadRelatedRecordCandidate;\n    userConfirmed?: boolean;\n  };\n  executionResult?:\n    | {\n        relation: { name: string; displayName: string };\n        record: { collectionName: string; recordId: string };\n        skipped: undefined;\n      }\n    | {\n        relation: undefined;\n        record: undefined;\n        skipped: true;\n      };\n  userConfirmation?: {\n    userConfirmed?: boolean;\n    fieldName?: string;\n    selectedRecordId?: string;\n  };\n}\n\nexport interface GuidanceStepExecution extends BaseStepExecution {\n  type: 'guidance';\n  pendingData?: { userInput?: string };\n  executionResult?: { userInput: string };\n}\n\n// -- Union --\n\nexport type StepExecution =\n  | ConditionStepExecution\n  | ReadRecordStepExecution\n  | RecordStepExecution\n  | UpdateRecordStepExecution\n  | TriggerActionStepExecution\n  | McpStepExecution\n  | LoadRelatedRecordStepExecution\n  | GuidanceStepExecution;\n\n// -- Pending-data subset --\n\nexport type PendingDataStepExecution =\n  | UpdateRecordStepExecution\n  | TriggerActionStepExecution\n  | McpStepExecution\n  | LoadRelatedRecordStepExecution\n  | GuidanceStepExecution;\n\nexport type StepExecutionType = StepExecution['type'];\n\n// -- Response shapes --\n\nexport interface ExecutorRunResponse {\n  steps: StepExecution[];\n}\n\nexport interface ExecutorTriggerResponse {\n  triggered: true;\n}\n\n// -- Type guard --\n\nexport function hasPendingData(step: StepExecution): step is PendingDataStepExecution & {\n  pendingData: NonNullable<PendingDataStepExecution['pendingData']>;\n} {\n  return 'pendingData' in step && step.pendingData !== undefined;\n}\n","import type {\n  CloseSubWorkflow,\n  StartSubWorkflow,\n  WorkflowCondition,\n  WorkflowEnd,\n  WorkflowEscalation,\n  WorkflowStep,\n  WorkflowTask,\n} from 'client/features/workflow-visualizer/types/workflow-step';\n\nimport {\n  StepExecutionTypeEnum,\n  StepTypeEnum,\n  TaskTypeEnum,\n} from 'client/features/workflow-visualizer/types/workflow-step';\n\ntype MaybeStep = WorkflowStep | null | undefined;\n\nexport function isTaskStep(step: MaybeStep): step is WorkflowTask {\n  return step?.type === StepTypeEnum.Task;\n}\n\nexport function isConditionStep(step: MaybeStep): step is WorkflowCondition {\n  return step?.type === StepTypeEnum.Condition;\n}\n\nexport function isEndStep(step: MaybeStep): step is WorkflowEnd {\n  return step?.type === StepTypeEnum.End;\n}\n\nexport function isEscalationStep(step: MaybeStep): step is WorkflowEscalation {\n  return step?.type === StepTypeEnum.Escalation;\n}\n\nexport function isStartSubWorkflowStep(step: MaybeStep): step is StartSubWorkflow {\n  return step?.type === StepTypeEnum.StartSubWorkflow;\n}\n\nexport function isCloseSubWorkflowStep(step: MaybeStep): step is CloseSubWorkflow {\n  return step?.type === StepTypeEnum.CloseSubWorkflow;\n}\n\nexport function isAutomated(step: MaybeStep): boolean {\n  if (!step) return false;\n\n  return (\n    step.executionType === StepExecutionTypeEnum.AutomatedWithConfirmation\n    || step.executionType === StepExecutionTypeEnum.FullyAutomated\n  );\n}\n\nexport function isAiExecutedTask(step: MaybeStep): step is WorkflowTask {\n  return isTaskStep(step) && step.taskType !== TaskTypeEnum.Guideline;\n}\n\nexport function isGuidelineTask(\n  step: MaybeStep,\n): step is WorkflowTask & { taskType: TaskTypeEnum.Guideline } {\n  return isTaskStep(step) && step.taskType === TaskTypeEnum.Guideline;\n}\n\nexport function isGetDataTask(\n  step: MaybeStep,\n): step is WorkflowTask & { taskType: TaskTypeEnum.GetData } {\n  return isTaskStep(step) && step.taskType === TaskTypeEnum.GetData;\n}\n\nexport function isUpdateDataTask(\n  step: MaybeStep,\n): step is WorkflowTask & { taskType: TaskTypeEnum.UpdateData } {\n  return isTaskStep(step) && step.taskType === TaskTypeEnum.UpdateData;\n}\n\nexport function isTriggerActionTask(\n  step: MaybeStep,\n): step is WorkflowTask & { taskType: TaskTypeEnum.TriggerAction } {\n  return isTaskStep(step) && step.taskType === TaskTypeEnum.TriggerAction;\n}\n\nexport function isLoadRelatedRecordTask(\n  step: MaybeStep,\n): step is WorkflowTask & { taskType: TaskTypeEnum.LoadRelatedRecord } {\n  return isTaskStep(step) && step.taskType === TaskTypeEnum.LoadRelatedRecord;\n}\n\nexport function isMcpServerTask(\n  step: MaybeStep,\n): step is WorkflowTask & { taskType: TaskTypeEnum.McpServer } {\n  return isTaskStep(step) && step.taskType === TaskTypeEnum.McpServer;\n}\n\nexport function isAiCondition(step: MaybeStep): step is WorkflowCondition {\n  return isConditionStep(step) && step.executionType === StepExecutionTypeEnum.FullyAutomated;\n}\n","import type { SafeString } from '@ember/template/-private/handlebars';\nimport type { StepExecution } from 'client/features/workflow-visualizer/types/executor';\nimport type { WorkflowStep } from 'client/features/workflow-visualizer/types/workflow-step';\n\nexport enum WorkflowRunStateEnum {\n  Started = 'started',\n  Pending = 'pending',\n  Loading = 'loading',\n  Finished = 'finished',\n  Aborted = 'aborted',\n}\n\nexport enum WorkflowEscalationStateEnum {\n  Escalated = 'escalated',\n  Error = 'error',\n}\n\nexport interface StepContext {\n  selectedOption?: string;\n  escalationState?: WorkflowEscalationStateEnum;\n  subWorkflowVersion?: string;\n  error?: string;\n  manuallyCompleted?: true;\n}\n\nexport interface RawStepHistory {\n  stepName: string;\n  stepIndex: number;\n  originalStepIndex?: number; // stepIndex before any revision, used to track the original position of revised steps\n  isCardStep: boolean;\n  done: boolean;\n  revised?: boolean;\n  cancelled?: boolean;\n  context?: StepContext;\n  childrenWorkflowId?: string;\n  stepDefinition: WorkflowStep;\n}\n\nexport interface HydratedStepHistory<\n  Step extends WorkflowStep = WorkflowStep,\n  StepExecutionType extends StepExecution = StepExecution,\n> extends RawStepHistory {\n  step: Step | null;\n  executorStep: StepExecutionType | null;\n  isLoading: boolean;\n  safePrompt?: SafeString;\n}\n\nexport interface WorkflowRecordEntry {\n  record: { id: string };\n  pathFromRoot: { fieldName: string; recordId: string }[];\n  stepIndex: number;\n}\n\nexport interface WorkflowRunResponse {\n  id: number;\n  workflowId: string;\n  collectionId: string;\n  selectedRecordId: string;\n  bpmnVersion: string;\n  runState: WorkflowRunStateEnum;\n  workflowHistory: RawStepHistory[];\n  createdAt: string;\n  updatedAt: string;\n}\n\nexport type StartWorkflowResponse = WorkflowRunResponse;\n\nexport type ResumeWorkflowResponse = WorkflowRunResponse;\n\nexport interface ReviseStepResponse {\n  workflowRun: WorkflowRunResponse;\n}\n","// Copied from backend: /private-api/src/domain/workflow-orchestrator/types.ts\n\nexport interface WorkflowTransition {\n  stepId: string;\n  buttonText: string | null;\n  buttonColor?: string | null;\n  answer?: string;\n}\n\nexport enum StepTypeEnum {\n  Task = 'task',\n  Condition = 'condition',\n  End = 'end',\n  Escalation = 'escalation',\n  StartSubWorkflow = 'start-sub-workflow',\n  CloseSubWorkflow = 'close-sub-workflow',\n}\n\nexport enum TaskTypeEnum {\n  Guideline = 'guideline',\n  TriggerAction = 'trigger-action',\n  GetData = 'get-data',\n  UpdateData = 'update-data',\n  LoadRelatedRecord = 'load-related-record',\n  McpServer = 'mcp-server',\n}\n\nexport enum StepExecutionTypeEnum {\n  Manual = 'manual',\n  AutomatedWithConfirmation = 'automated-with-confirmation',\n  FullyAutomated = 'fully-automated',\n}\n\ninterface WorkflowStepBase {\n  type: StepTypeEnum;\n  title: string;\n  prompt?: string;\n  executionType: StepExecutionTypeEnum;\n  automaticCompletion: boolean;\n  outgoing: WorkflowTransition[];\n}\n\nexport interface WorkflowTaskBase extends WorkflowStepBase {\n  type: StepTypeEnum.Task;\n  taskType: TaskTypeEnum;\n  isSubTask?: boolean;\n  prompt: string;\n  outgoing: [WorkflowTransition];\n}\nexport interface WorkflowTaskGuideline extends WorkflowTaskBase {\n  taskType: TaskTypeEnum.Guideline;\n  executionType: StepExecutionTypeEnum.Manual;\n  completionType: 'simple' | 'user-input';\n  inputType?: 'free-text';\n  automaticCompletion: false;\n}\n\nexport interface WorkflowTaskGetData extends WorkflowTaskBase {\n  taskType: TaskTypeEnum.GetData;\n  executionType: StepExecutionTypeEnum.FullyAutomated;\n}\n\nexport interface WorkflowTaskUpdateData extends WorkflowTaskBase {\n  taskType: TaskTypeEnum.UpdateData;\n  executionType:\n    | StepExecutionTypeEnum.FullyAutomated\n    | StepExecutionTypeEnum.AutomatedWithConfirmation;\n}\n\nexport interface WorkflowTaskTriggerAction extends WorkflowTaskBase {\n  taskType: TaskTypeEnum.TriggerAction;\n  executionType:\n    | StepExecutionTypeEnum.FullyAutomated\n    | StepExecutionTypeEnum.AutomatedWithConfirmation;\n}\n\nexport interface WorkflowTaskLoadRelatedRecord extends WorkflowTaskBase {\n  taskType: TaskTypeEnum.LoadRelatedRecord;\n  executionType:\n    | StepExecutionTypeEnum.FullyAutomated\n    | StepExecutionTypeEnum.AutomatedWithConfirmation;\n}\n\nexport interface WorkflowTaskMcpServer extends WorkflowTaskBase {\n  taskType: TaskTypeEnum.McpServer;\n  executionType:\n    | StepExecutionTypeEnum.FullyAutomated\n    | StepExecutionTypeEnum.AutomatedWithConfirmation;\n  mcpServerId: string;\n}\n\nexport type WorkflowTask =\n  | WorkflowTaskGuideline\n  | WorkflowTaskGetData\n  | WorkflowTaskUpdateData\n  | WorkflowTaskTriggerAction\n  | WorkflowTaskLoadRelatedRecord\n  | WorkflowTaskMcpServer;\n\nexport interface WorkflowEnd extends WorkflowStepBase {\n  type: StepTypeEnum.End;\n  executionType: StepExecutionTypeEnum.Manual;\n  automaticCompletion: false;\n  outgoing: [];\n}\n\nexport interface WorkflowCondition extends WorkflowStepBase {\n  type: StepTypeEnum.Condition;\n  executionType: StepExecutionTypeEnum.Manual | StepExecutionTypeEnum.FullyAutomated;\n  prompt: string;\n  automaticCompletion: false;\n}\n\nexport interface WorkflowEscalation extends WorkflowStepBase {\n  type: StepTypeEnum.Escalation;\n  executionType: StepExecutionTypeEnum.Manual;\n  prompt: string;\n  outgoing: [WorkflowTransition];\n  inboxId: string | null;\n}\n\nexport type SubWorkflowStep = StartSubWorkflow | CloseSubWorkflow;\n\nexport interface StartSubWorkflow extends WorkflowStepBase {\n  type: StepTypeEnum.StartSubWorkflow;\n  executionType: StepExecutionTypeEnum.Manual;\n  outgoing: [WorkflowTransition];\n  workflowId: string;\n}\n\nexport interface CloseSubWorkflow extends WorkflowStepBase {\n  type: StepTypeEnum.CloseSubWorkflow;\n  executionType: StepExecutionTypeEnum.Manual;\n  outgoing: [WorkflowTransition];\n  parentWorkflowId: string | null;\n}\n\nexport type WorkflowStep =\n  | WorkflowTask\n  | WorkflowCondition\n  | WorkflowEnd\n  | WorkflowEscalation\n  | StartSubWorkflow\n  | CloseSubWorkflow;\n","import type { NestedFieldAttributes } from 'client/decorators/model-field';\n\nconst SHORT_ISO_DATE = /^\\d{4}-\\d{2}-\\d{2}$/;\nconst FULL_ISO_DATETIME = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}/;\n\n/**\n * Serialize a value for the workflow executor `value` field. The executor accepts\n * `z.union([z.string(), z.number()])` so we send Date/Dateonly/Json as strings and\n * Number as a native number.\n *\n * This only reshapes the value to the protocol format. Default values for empty\n * required fields and the resulting validation errors are owned by the executor, not\n * the front (the front just surfaces the update error).\n *\n * Handles: Date, Dateonly, Number, Json/Jsonb, String/Enum/Uuid/Time (passthrough).\n */\nexport function toExecutorValue(fieldType: NestedFieldAttributes['type'], value: unknown): unknown {\n  if (value == null) {\n    return value;\n  }\n\n  if (Array.isArray(fieldType) || typeof fieldType !== 'string') {\n    return value;\n  }\n\n  switch (fieldType) {\n    case 'Date':\n      return toISODatetime(value);\n    case 'Dateonly':\n      return toISODate(value);\n    case 'Number':\n      return toNumber(value);\n    case 'Json':\n      return toJSONString(value);\n    default:\n      return value;\n  }\n}\n\nfunction toISODatetime(value: unknown): unknown {\n  if (value instanceof Date) {\n    return isInvalidDate(value) ? value : value.toISOString();\n  }\n\n  if (typeof value !== 'string') {\n    return value;\n  }\n\n  if (FULL_ISO_DATETIME.test(value)) {\n    return value;\n  }\n\n  if (!SHORT_ISO_DATE.test(value)) {\n    return value;\n  }\n\n  const date = new Date(`${value}T00:00:00Z`);\n  return isInvalidDate(date) ? value : date.toISOString();\n}\n\nfunction toISODate(value: unknown): unknown {\n  if (value instanceof Date) {\n    return isInvalidDate(value) ? value : value.toISOString().slice(0, 10);\n  }\n\n  if (typeof value !== 'string') {\n    return value;\n  }\n\n  if (SHORT_ISO_DATE.test(value)) {\n    return value;\n  }\n\n  if (!FULL_ISO_DATETIME.test(value)) {\n    return value;\n  }\n\n  return value.slice(0, 10);\n}\n\nfunction isInvalidDate(date: Date): boolean {\n  return Number.isNaN(date.getTime());\n}\n\nfunction toNumber(value: unknown): unknown {\n  if (typeof value === 'number') {\n    return value;\n  }\n\n  if (typeof value === 'bigint') {\n    return value;\n  }\n\n  if (typeof value !== 'string') {\n    return value;\n  }\n\n  const parsed = Number(value);\n  return Number.isNaN(parsed) ? value : parsed;\n}\n\nfunction toJSONString(value: unknown): unknown {\n  if (typeof value === 'string') {\n    return value;\n  }\n\n  try {\n    const stringified = JSON.stringify(value);\n    return stringified ?? value;\n  } catch {\n    return value;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-ai-interaction-ai-panel\\\"\\n  data-test-feature-workflow-ai-interaction-ai-panel\\n  ...attributes\\n>\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName=\\\"auto_fix_high\\\"\\n    class=\\\"c-feature-workflow-ai-interaction-ai-panel__icon\\\"\\n    @size=\\\"tiny\\\"\\n  />\\n\\n  <div class=\\\"c-feature-workflow-ai-interaction-ai-panel__content\\\">\\n    {{#if (has-block \\'title\\')}}\\n      <div\\n        class=\\\"c-feature-workflow-ai-interaction-ai-panel__title\\\"\\n        data-test-feature-workflow-ai-interaction-ai-panel-title\\n      >\\n        {{yield to=\\'title\\'}}\\n      </div>\\n    {{/if}}\\n\\n    <div\\n      class=\\\"c-feature-workflow-ai-interaction-ai-panel__body\\\"\\n      data-test-feature-workflow-ai-interaction-ai-panel-body\\n    >\\n      {{yield to=\\'body\\'}}\\n    </div>\\n\\n    {{#if (has-block \\'footer\\')}}\\n      <div\\n        class=\\\"c-feature-workflow-ai-interaction-ai-panel__footer\\\"\\n        data-test-feature-workflow-ai-interaction-ai-panel-footer\\n      >\\n        {{yield to=\\'footer\\'}}\\n      </div>\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/features/workflow/components/ai-interaction/ai-panel/template.hbs' });\n","import type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type { WorkflowTask } from 'client/features/workflow/types/workflow-step';\n\nimport { isArray } from '@ember/array';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { EXECUTE_ACTION_ON_SELECTED_RECORD_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-execute-action-on-selected-record';\nimport { GET_RELATED_DATA_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-get-related-data';\nimport { READ_SELECTED_RECORD_FIELD_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-read-selected-record-field';\nimport { UPDATE_SELECTED_RECORD_FIELD_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-update-selected-record-field';\n\ninterface Args {\n  workflowStepHistory: WorkflowStepHistory<WorkflowTask>;\n}\n\nexport default class WorkflowAiInteractionComponent extends Component<Args> {\n  @service('feature/workflow/internal-feature/execution')\n  private readonly executionService: WorkflowExecutionInternalFeatureService;\n\n  get selectedRecord() {\n    return this.executionService.getSelectedRecord(this.args.workflowStepHistory);\n  }\n\n  get aiAgentContext() {\n    return this.args.workflowStepHistory.context.aiAgentContext;\n  }\n\n  get toolName() {\n    return (\n      this.aiAgentContext.toolConfirmationInterruption?.toolName\n      || this.aiAgentContext.toolExecution?.toolName\n    );\n  }\n\n  get isHandlingManually() {\n    return this.aiAgentContext.userConfirmation === false;\n  }\n\n  get isToolExecuteAction() {\n    return this.toolName === EXECUTE_ACTION_ON_SELECTED_RECORD_TOOL_NAME;\n  }\n\n  get isToolReadRecordField() {\n    return this.toolName === READ_SELECTED_RECORD_FIELD_TOOL_NAME;\n  }\n\n  get isToolReadMultipleRecordFields() {\n    return (\n      this.isToolReadRecordField && isArray(this.aiAgentContext.toolExecution?.outputArtifacts)\n    );\n  }\n\n  get isToolUpdateRecord() {\n    return this.toolName === UPDATE_SELECTED_RECORD_FIELD_TOOL_NAME;\n  }\n\n  get isToolGetRelatedData() {\n    return this.toolName === GET_RELATED_DATA_TOOL_NAME;\n  }\n\n  get error() {\n    return (\n      this.aiAgentContext.error\n      || (this.aiAgentContext.toolExecution?.status === 'error'\n        && this.aiAgentContext.toolExecution?.output)\n    );\n  }\n}\n","import type ModalFeatureService from 'client/features/modal/services/feature';\nimport type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type { WorkflowTask } from 'client/features/workflow/types/workflow-step';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  workflowStepHistory: WorkflowStepHistory<WorkflowTask>;\n  buttonConfirmText: string;\n  onConfirm?: () => void | Promise<void>;\n  confirmButtonId?: string;\n  isConfirmButtonDisabled?: boolean;\n  iconName?: string;\n  confirmHandleManuallyDescription?: string;\n}\n\nexport default class WorkflowAiInteractionConfirmationButtonsComponent extends Component<Args> {\n  @service('feature/workflow/internal-feature/execution')\n  private readonly workflowExecutionService: WorkflowExecutionInternalFeatureService;\n\n  @service('feature/modal')\n  private readonly modalService: ModalFeatureService;\n\n  constructor(owner: unknown, args: Args) {\n    super(owner, args);\n    this.handleAutomaticExecution();\n  }\n\n  get aiAgentContext() {\n    return this.args.workflowStepHistory.context.aiAgentContext;\n  }\n\n  get areButtonsDisabled() {\n    return (\n      this.args.workflowStepHistory.cancelled\n      || this.args.workflowStepHistory.revised\n      || this.aiAgentContext.userConfirmation !== undefined\n    );\n  }\n\n  get icon() {\n    return this.args.iconName || 'electric_bolt';\n  }\n\n  @action\n  getIsButtonActive(isToolExecutionConfirmed: boolean) {\n    return (\n      this.areButtonsDisabled && this.aiAgentContext.userConfirmation === isToolExecutionConfirmed\n    );\n  }\n\n  @action\n  async confirmToolExecution(isToolExecutionConfirmed: boolean) {\n    if (isToolExecutionConfirmed && this.args.onConfirm) {\n      await this.args.onConfirm();\n    } else if (!isToolExecutionConfirmed && this.args.confirmHandleManuallyDescription) {\n      // Show confirmation modal for GET_RELATED_DATA when clicking \"Handle manually\"\n      this.modalService.open('feature/workflow/ai-interaction/handle-manually-modal', {\n        hideCloseButton: true,\n        data: {\n          description: this.args.confirmHandleManuallyDescription,\n          onConfirm: async () => {\n            await this.workflowExecutionService.confirmToolExecution(false);\n            this.modalService.close();\n          },\n          onCancel: () => {\n            this.modalService.close();\n          },\n        },\n      });\n    } else {\n      await this.workflowExecutionService.confirmToolExecution(isToolExecutionConfirmed);\n    }\n  }\n\n  private async handleAutomaticExecution() {\n    if (\n      this.workflowExecutionService.isAutomaticStepExecutionAllowed(this.args.workflowStepHistory)\n    ) {\n      await this.workflowExecutionService.confirmToolExecution(true);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<section ...attributes>\\n  <Feature::Workflow::Button::AiConfirm\\n    @text={{@buttonConfirmText}}\\n    @iconName={{this.icon}}\\n    @onClick={{fn this.confirmToolExecution true}}\\n    @isActive={{this.getIsButtonActive true}}\\n    disabled={{or this.areButtonsDisabled @isConfirmButtonDisabled}}\\n    @isLoading={{@workflowStepHistory.isLoading}}\\n    data-test-transition-button=\\\"execute-tool\\\"\\n    data-test-feature-workflow-ai-interaction-confirmation-execute-tool-yes={{@buttonConfirmText}}\\n    id={{@confirmButtonId}}\\n  />\\n  <Feature::Workflow::Button::AiConfirm\\n    @text=\\\"Handle manually\\\"\\n    @iconName=\\\"close\\\"\\n    @onClick={{fn this.confirmToolExecution false}}\\n    @isActive={{this.getIsButtonActive false}}\\n    disabled={{this.areButtonsDisabled}}\\n    data-test-transition-button=\\\"let-me-handle-it\\\"\\n    data-test-feature-workflow-ai-interaction-confirmation-execute-tool-no\\n  />\\n</section>\\n', { moduleName: 'client/features/workflow/components/ai-interaction/confirmation/buttons/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Workflow::AiInteraction::AiPanel\\n  data-test-feature-workflow-ai-interaction-confirmation-execute-tool\\n  ...attributes\\n>\\n  <:title>\\n    {{yield}}\\n  </:title>\\n  <:footer>\\n    <Feature::Workflow::AiInteraction::Confirmation::Buttons\\n      @workflowStepHistory={{@workflowStepHistory}}\\n      @buttonConfirmText={{@buttonConfirmText}}\\n    />\\n  </:footer>\\n</Feature::Workflow::AiInteraction::AiPanel>\\n', { moduleName: 'client/features/workflow/components/ai-interaction/confirmation/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::ModalSimple\\n  @iconName=\\\"info_outline\\\"\\n  class=\\\"c-feature-workflow-ai-interaction-handle-manually-modal\\\"\\n  data-test-feature-workflow-ai-interaction-handle-manually-modal\\n  ...attributes\\n>\\n  <:title>Are you sure you want to handle this step manually?</:title>\\n  <:description>\\n    {{@data.description}}\\n  </:description>\\n  <:footer>\\n    <Shared::Button\\n      @type=\\\"ghost\\\"\\n      @text=\\\"Handle manually\\\"\\n      @onClick={{@data.onConfirm}}\\n      data-test-feature-workflow-ai-interaction-handle-manually-modal-confirm-button\\n      class=\\\"c-feature-workflow-ai-interaction-handle-manually-modal__confirm-button\\\"\\n    />\\n    <Shared::Button\\n      @type=\\\"primary\\\"\\n      @text=\\\"Cancel\\\"\\n      @onClick={{@data.onCancel}}\\n      data-test-feature-workflow-ai-interaction-handle-manually-modal-cancel-button\\n      class=\\\"c-feature-workflow-ai-interaction-handle-manually-modal__cancel-button\\\"\\n    />\\n  </:footer>\\n</Shared::ModalSimple>\\n', { moduleName: 'client/features/workflow/components/ai-interaction/handle-manually-modal/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-ai-interaction-instruction\\\"\\n  data-test-feature-workflow-ai-interaction-instruction\\n  ...attributes\\n>\\n  <span\\n    class=\\\"c-feature-workflow-ai-interaction-instruction__title\\\"\\n    data-test-feature-workflow-ai-interaction-instruction-title\\n  >\\n    {{@title}}\\n  </span>\\n  <p\\n    class=\\\"c-feature-workflow-ai-interaction-instruction__quote\\\"\\n    data-test-feature-workflow-ai-interaction-instruction-quote\\n  >\\n    {{! template-lint-disable no-triple-curlies }}\\n    “{{{@instruction}}}”\\n  </p>\\n</div>\\n', { moduleName: 'client/features/workflow/components/ai-interaction/instruction/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.aiAgentContext}}\\n  {{#if this.isToolExecuteAction}}\\n    <Feature::Workflow::AiInteraction::Tools::ExecuteAction\\n      @workflowStepHistory={{@workflowStepHistory}}\\n    />\\n  {{else if this.isToolReadRecordField}}\\n    {{#if this.isToolReadMultipleRecordFields}}\\n      <Feature::Workflow::AiInteraction::Tools::ReadMultipleRecordFields\\n        @toolExecution={{@aiAgentContext.toolExecution}}\\n        @selectedRecord={{this.selectedRecord}}\\n      />\\n    {{else}}\\n      <Feature::Workflow::AiInteraction::Tools::ReadRecordField\\n        @toolExecution={{@aiAgentContext.toolExecution}}\\n        @selectedRecord={{this.selectedRecord}}\\n      />\\n    {{/if}}\\n  {{else if this.isToolUpdateRecord}}\\n    <Feature::Workflow::AiInteraction::Tools::UpdateRecord\\n      @workflowStepHistory={{@workflowStepHistory}}\\n    />\\n  {{else if this.isToolGetRelatedData}}\\n    <Feature::Workflow::AiInteraction::Tools::GetRelatedData\\n      @workflowStepHistory={{@workflowStepHistory}}\\n    />\\n  {{else}}\\n    <Feature::Workflow::AiInteraction::Tools::Unknown\\n      @workflowStepHistory={{@workflowStepHistory}}\\n    />\\n  {{/if}}\\n\\n  {{#if this.isHandlingManually}}\\n    <Feature::Workflow::AiInteraction::Instruction\\n      @instruction={{@workflowStepHistory.step.prompt}}\\n      @title=\\\"Manual handling selected; follow these instructions to continue:\\\"\\n      ...attributes\\n    />\\n  {{/if}}\\n\\n  {{#if this.error}}\\n    <Feature::Workflow::AiInteraction::Tools::Error\\n      @error={{this.error}}\\n      @prompt={{@workflowStepHistory.step.prompt}}\\n    />\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/features/workflow/components/ai-interaction/template.hbs' });\n","import type { ToolExecution } from 'client/features/ai/types/ai-steps';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\n\nimport Component from '@glimmer/component';\n\nimport { FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH } from 'client/features/ai/services/internal-business/tools/tool-choose-gateway-option';\nimport { DIRECT_TOOL_CALL_ID } from 'client/features/workflow/services/internal-business/execution';\n\ninterface AiInteractionToolsGetRelatedDataArgs {\n  workflowStepHistory: WorkflowStepHistory;\n}\n\nexport default class WorkflowAiInteractionToolsChooseGatewayOptionComponent extends Component<AiInteractionToolsGetRelatedDataArgs> {\n  public get reasoning() {\n    if (this.toolExecution?.toolCallId === DIRECT_TOOL_CALL_ID) return undefined;\n    return this.toolExecution?.outputArtifacts?.reasoning;\n  }\n\n  public get isGatewayDisabled() {\n    if (this.aiAgentContext?.error) return false;\n    if (this.toolExecution?.status !== 'success') return false;\n    return this.toolExecution.outputArtifacts?.option !== FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH;\n  }\n\n  private get aiAgentContext() {\n    return this.args.workflowStepHistory.context.aiAgentContext;\n  }\n\n  private get toolExecution() {\n    return this.aiAgentContext?.toolExecution as ToolExecution<\n      unknown,\n      {\n        option: string;\n        reasoning: string;\n      }\n    >;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#unless @workflowStepHistory.isLoading}}\\n  <Feature::Workflow::Card::Step::Condition\\n    @workflowStepHistory={{@workflowStepHistory}}\\n    @disabled={{this.isGatewayDisabled}}\\n  />\\n  {{#if this.reasoning}}\\n    <Feature::Workflow::AiInteraction::AiPanel\\n      class=\\\"c-feature-workflow-ai-interaction-tools-choose-gateway-option\\\"\\n      data-test-feature-workflow-ai-interaction-tools-choose-gateway-option\\n      ...attributes\\n    >\\n      <:body>\\n        <p data-test-feature-workflow-ai-interaction-tools-choose-gateway-option-ai-label>\\n          AI Decision:\\n        </p>\\n        <p data-test-feature-workflow-ai-interaction-tools-choose-gateway-option-reasoning>\\n          {{this.reasoning}}\\n        </p>\\n      </:body>\\n    </Feature::Workflow::AiInteraction::AiPanel>\\n  {{/if}}\\n{{/unless}}\\n', { moduleName: 'client/features/workflow/components/ai-interaction/tools/choose-gateway-option/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Feedback::Notification::NotificationInApp\\n  @state=\\\"error\\\"\\n  @canHide={{false}}\\n  data-test-feature-workflow-ai-interaction-error\\n  ...attributes\\n>\\n  <span class=\\\"c-feature-workflow-ai-interaction-tool-execution-error__message\\\">\\n    Something didn\\'t go as planned, which may be due to permission issues or a system being\\n    unresponsive; please contact an Admin to troubleshoot this.\\n  </span>\\n  Error:\\n  {{@error}}\\n</Shared::Feedback::Notification::NotificationInApp>\\n\\n<Feature::Workflow::AiInteraction::Instruction\\n  @instruction={{@prompt}}\\n  @title=\\\"Follow these instructions to continue:\\\"\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workflow/components/ai-interaction/tools/error/template.hbs' });\n","import type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type { WorkflowTask } from 'client/features/workflow/types/workflow-step';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  workflowStepHistory: WorkflowStepHistory<WorkflowTask>;\n}\n\nexport default class WorkflowAiInteractionToolsExecuteActionComponent extends Component<Args> {\n  @service('feature/workflow/internal-feature/execution')\n  private readonly executionService: WorkflowExecutionInternalFeatureService;\n\n  get selectedRecord() {\n    return this.executionService.getSelectedRecord(this.args.workflowStepHistory);\n  }\n\n  get isSelectedRecordKnown() {\n    return Boolean(this.selectedRecord);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Workflow::AiInteraction::Confirmation\\n  @buttonConfirmText={{@workflowStepHistory.context.aiAgentContext.toolConfirmationInterruption.args.actionName}}\\n  @workflowStepHistory={{@workflowStepHistory}}\\n  ...attributes\\n>\\n  <div class=\\\"c-feature-workflow-ai-interaction-tools-execute-action\\\">\\n    Here\\'s a shortcut to run the action on\\n    {{#if this.isSelectedRecordKnown}}\\n      <Feature::ClientRecord::ReferenceField\\n        class=\\\"c-feature-workflow-ai-interaction-tools-execute-action__reference-field\\\"\\n        @collection={{this.selectedRecord.collection}}\\n        @isLinkDisabled={{true}}\\n        @recordIds={{array this.selectedRecord.id}}\\n      />\\n    {{else}}\\n      Unknown record\\n    {{/if}}\\n  </div>\\n</Feature::Workflow::AiInteraction::Confirmation>\\n', { moduleName: 'client/features/workflow/components/ai-interaction/tools/execute-action/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Workflow::AiInteraction::AiPanel>\\n  <:body>\\n    <div\\n      class=\\\"c-feature-workflow-ai-interaction-final-answer\\\"\\n      data-test-feature-workflow-ai-interaction-final-answer\\n      ...attributes\\n    >\\n      {{~@toolExecution.output~}}\\n    </div>\\n  </:body>\\n</Feature::Workflow::AiInteraction::AiPanel>\\n', { moduleName: 'client/features/workflow/components/ai-interaction/tools/final-answer/template.hbs' });\n","import type FieldModel from 'client/data/models/field';\nimport type {\n  GetRelatedDataToolInput,\n  GetRelatedDataToolOutput,\n} from 'client/features/ai/services/internal-business/tools/tool-get-related-data';\nimport type { ToolExecution } from 'client/features/ai/types/ai-steps';\nimport type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type AiAgentContext from 'client/features/workflow/types/workflow-ai-agent-context';\nimport type CollectionBusinessService from 'client/legacy/services/business/collection';\nimport type RelatedRecordsManagerService from 'client/legacy/services/related-records-manager';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type RelatedRecordsContext from 'client/utils/liana-records/related-records-context';\nimport type NestedField from 'client/utils/nested/field';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ninterface AiInteractionToolsGetRelatedDataArgs {\n  workflowStepHistory: WorkflowStepHistory;\n}\n\nexport default class WorkflowAiInteractionToolsGetRelatedDataComponent extends Component<AiInteractionToolsGetRelatedDataArgs> {\n  @service('business/collection') private collectionBusinessService: CollectionBusinessService;\n  @service('related-records-manager') private relatedRecordsManager: RelatedRecordsManagerService;\n  @service('feature/workflow/internal-feature/execution')\n  private readonly workflowExecutionService: WorkflowExecutionInternalFeatureService;\n\n  @service('feature/workflow/internal-feature/execution')\n  private readonly executionService: WorkflowExecutionInternalFeatureService;\n\n  @tracked public selectedRelatedField: FieldModel | null = null;\n  @tracked public selectedRelatedRecord: ClientRecordModel | null = null;\n  @tracked public relatedDataRecordsContext: {\n    records: ClientRecordModel[];\n    field: FieldModel | NestedField;\n  } | null = null;\n\n  constructor(owner: unknown, args: AiInteractionToolsGetRelatedDataArgs) {\n    super(owner, args);\n\n    this.onFieldChange(this.preselectedField);\n  }\n\n  get possibleRelatedFields() {\n    return this.selectedRecord?.collection.fields.filter((field) => field.isRelationship);\n  }\n\n  get preselectedField() {\n    const fieldNameOrDisplayName = this.toolExecution ? 'fieldName' : 'displayName';\n    const fieldName =\n      this.toolExecution?.outputArtifacts?.fieldName || this.toolCallInput?.fieldName;\n    return this.possibleRelatedFields?.find((field) => field[fieldNameOrDisplayName] === fieldName);\n  }\n\n  get aiAgentContext() {\n    return this.args.workflowStepHistory.context.aiAgentContext as AiAgentContext<{\n      relatedRecordId: string;\n    }>;\n  }\n\n  get toolExecution() {\n    return this.aiAgentContext.toolExecution as ToolExecution<\n      GetRelatedDataToolInput,\n      GetRelatedDataToolOutput\n    >;\n  }\n\n  get toolCallInput() {\n    return this.aiAgentContext.toolConfirmationInterruption.args as GetRelatedDataToolInput;\n  }\n\n  get selectedRecord() {\n    return this.executionService.getSelectedRecord(this.args.workflowStepHistory);\n  }\n\n  get isStepDone() {\n    return (\n      this.args.workflowStepHistory.cancelled\n      || this.args.workflowStepHistory.revised\n      || this.aiAgentContext.userConfirmation !== undefined\n    );\n  }\n\n  @action\n  async onFieldChange(field: FieldModel) {\n    this.selectedRelatedField = field;\n    this.selectedRelatedRecord = null;\n\n    if (!field) return;\n\n    if (field.isBelongsTo) {\n      const record = await this.selectedRecord?.[field.attributeNameWithRelationships];\n      this.relatedDataRecordsContext = {\n        records: record ? [record] : [],\n        field: field,\n      };\n    } else {\n      const recordsContext = this.collectionBusinessService.createRecordState({\n        modelToFetch: field,\n        record: this.selectedRecord,\n        recordsPerPage: 50,\n      }) as RelatedRecordsContext;\n      this.relatedDataRecordsContext = recordsContext;\n      await this.relatedRecordsManager.fetchRecordsList.perform(recordsContext);\n    }\n\n    if (this.relatedDataRecordsContext.records?.length === 1) {\n      this.onRecordChange(this.relatedDataRecordsContext.records[0]);\n    }\n  }\n\n  @action\n  async onRecordChange(record: ClientRecordModel) {\n    this.selectedRelatedRecord = record;\n  }\n\n  @action\n  async confirmToolExecution() {\n    this.toolCallInput.fieldName = this.selectedRelatedField?.displayName;\n    this.aiAgentContext.toolData = { relatedRecordId: this.selectedRelatedRecord?.id };\n    await this.workflowExecutionService.confirmToolExecution(true);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Workflow::AiInteraction::AiPanel\\n  class=\\\"c-feature-workflow-ai-interaction-tools-get-related-data\\\"\\n  data-test-feature-workflow-ai-interaction-tools-get-related-data\\n  ...attributes\\n>\\n  <:title>\\n    Here\\'s is a list of related records for\\n    <Feature::ClientRecord::ReferenceField\\n      @collection={{this.selectedRecord.collection}}\\n      @isLinkDisabled={{true}}\\n      @recordIds={{array this.selectedRecord.id}}\\n      class=\\\"c-feature-workflow-ai-interaction-tools-get-related-data__record-reference-field\\\"\\n    />\\n  </:title>\\n  <:body>\\n    <Shared::BetaLabel\\n      @label=\\\"Related Data\\\"\\n      class=\\\"c-feature-workflow-ai-interaction-tools-get-related-data__label\\\"\\n    >\\n      <Shared::BetaSelect\\n        @options={{this.possibleRelatedFields}}\\n        @value={{this.selectedRelatedField}}\\n        @onChange={{this.onFieldChange}}\\n        @placeholder=\\\"Select a related field\\\"\\n        @namePath=\\\"displayName\\\"\\n        @disabled={{this.isStepDone}}\\n        class=\\\"c-feature-workflow-ai-interaction-tools-get-related-data__select\\\"\\n        data-test-feature-workflow-ai-interaction-tool-get-related-data-field-select\\n      />\\n    </Shared::BetaLabel>\\n    <Shared::BetaLabel\\n      @label=\\\"Record\\\"\\n      class=\\\"c-feature-workflow-ai-interaction-tools-get-related-data__label\\\"\\n    >\\n      {{#if this.relatedDataRecordsContext.isLoading}}\\n        <Shared::Feedback::BetaLoader\\n          @type=\\\"custom\\\"\\n          class=\\\"c-feature-workflow-ai-interaction-tools-get-related-data__loader\\\"\\n        />\\n      {{else}}\\n        <Shared::BetaSelect\\n          @options={{this.relatedDataRecordsContext.records}}\\n          @value={{this.selectedRelatedRecord}}\\n          @onChange={{this.onRecordChange}}\\n          @placeholder=\\\"Please select a record\\\"\\n          @namePath={{this.selectedRelatedField.referenceModel.displayFieldWithNamespace}}\\n          @emptyText=\\\"No related records found\\\"\\n          @disabled={{this.isStepDone}}\\n          class=\\\"c-feature-workflow-ai-interaction-tools-get-related-data__select\\\"\\n          data-test-feature-workflow-ai-interaction-tool-get-related-data-record-select\\n        />\\n      {{/if}}\\n    </Shared::BetaLabel>\\n  </:body>\\n  <:footer>\\n    <Feature::Workflow::AiInteraction::Confirmation::Buttons\\n      @workflowStepHistory={{@workflowStepHistory}}\\n      @buttonConfirmText=\\\"Use this record\\\"\\n      @iconName=\\\"check\\\"\\n      @isConfirmButtonDisabled={{not this.selectedRelatedRecord}}\\n      @onConfirm={{this.confirmToolExecution}}\\n      @confirmHandleManuallyDescription=\\\"Subsequent steps may be missing critical context if no record is selected in this step.\\\"\\n    />\\n    {{#if this.aiAgentContext.userConfirmation}}\\n      <span class=\\\"c-feature-workflow-ai-interaction-tools-get-related-data__loaded\\\">\\n        <Feature::ClientRecord::ReferenceField\\n          @collection={{this.selectedRelatedRecord.collection}}\\n          @isLinkDisabled={{true}}\\n          @recordIds={{array this.selectedRelatedRecord.id}}\\n          class=\\\"c-feature-workflow-ai-interaction-tools-get-related-data__record-reference-field\\\"\\n        />\\n        successfully loaded, its Data and Actions can now be accessed in subsequent steps.\\n      </span>\\n    {{/if}}\\n  </:footer>\\n</Feature::Workflow::AiInteraction::AiPanel>\\n', { moduleName: 'client/features/workflow/components/ai-interaction/tools/get-related-data/template.hbs' });\n","import type { ReadMultipleSelectedRecordFieldToolOutput } from 'client/features/ai/services/internal-business/tools/tool-read-selected-record-field';\nimport type { ToolExecution } from 'client/features/ai/types/ai-steps';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Component from '@glimmer/component';\n\ninterface Args {\n  selectedRecord?: ClientRecordModel;\n  toolExecution: ToolExecution;\n}\n\nexport default class WorkflowAiInteractionToolsReadMultipleRecordFieldsComponent extends Component<Args> {\n  get collectionDisplayName() {\n    return this.args.selectedRecord?.collection.displayName || 'unknown collection';\n  }\n\n  get isSelectedRecordKnown() {\n    return Boolean(this.args.selectedRecord);\n  }\n\n  get numberOfFieldsNotFound() {\n    return (\n      (\n        this.args.toolExecution?.outputArtifacts as ReadMultipleSelectedRecordFieldToolOutput\n      ).filter((fieldResult) => 'error' in fieldResult).length || 0\n    );\n  }\n}\n","import type ApplicationInstance from '@ember/application/instance';\nimport type {\n  ReadSelectedRecordFieldErrorOutput,\n  ReadSingleSelectedRecordFieldToolOutput,\n} from 'client/features/ai/services/internal-business/tools/tool-read-selected-record-field';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { WidgetDisplayTypeEnum } from 'client/utils/widgets';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { INLINE_FIELD_WIDGETS } from 'client/features/workflow/components/ai-interaction/tools/read-record-field/component';\n\ntype ToolExecutionOutput =\n  | ReadSingleSelectedRecordFieldToolOutput\n  | ReadSelectedRecordFieldErrorOutput;\n\ninterface Args {\n  selectedRecord?: ClientRecordModel;\n  toolExecutionOutput: ToolExecutionOutput;\n}\n\nexport default class WorkflowAiInteractionToolsReadMultipleRecordFieldsFieldValueComponent extends Component<Args> {\n  @tracked isOpen = true;\n\n  constructor(base: ApplicationInstance, args: Args) {\n    super(base, args);\n    this.isOpen = this.isInlineField;\n  }\n\n  get error() {\n    return 'error' in this.args.toolExecutionOutput && this.args.toolExecutionOutput.error;\n  }\n\n  get headerIcon() {\n    return this.error ? 'error' : 'check';\n  }\n\n  get field() {\n    if (this.error) return undefined;\n\n    return this.args.selectedRecord?.collection.fields.find(\n      (field) =>\n        field.fieldName\n        === (this.args.toolExecutionOutput as ReadSingleSelectedRecordFieldToolOutput).fieldName,\n    );\n  }\n\n  get toolExecutionOutput() {\n    if (this.error) return undefined;\n\n    return this.args.toolExecutionOutput as ReadSingleSelectedRecordFieldToolOutput;\n  }\n\n  get title() {\n    return (\n      this.field?.displayName\n      || (this.args.toolExecutionOutput as ReadSelectedRecordFieldErrorOutput).fieldDisplayName\n    );\n  }\n\n  get valueFromToolExecution() {\n    return this.toolExecutionOutput?.value;\n  }\n\n  get displayedValueFromToolExecution() {\n    return this.toolExecutionOutput?.displayedValue;\n  }\n\n  get isInlineField() {\n    return (\n      !this.field?.widgetDisplay?.name\n      || INLINE_FIELD_WIDGETS.includes(this.field?.widgetDisplay?.name as WidgetDisplayTypeEnum)\n    );\n  }\n\n  @action\n  toggleOpen() {\n    this.isOpen = !this.isOpen;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Shared::Card::Deployable\\n  @headerIcon={{this.headerIcon}}\\n  @isOpen={{this.isOpen}}\\n  @onExpand={{this.toggleOpen}}\\n  @onRetract={{this.toggleOpen}}\\n  class={{get-classes-with-modifiers\\n    \\'c-feature-workflow-ai-interaction-tools-read-multiple-record-fields-field-value\\'\\n    error=this.error\\n  }}\\n  data-test-feature-workflow-ai-interaction-tool-execution-read-multiple-record-fields-field-value\\n  data-test-value={{this.field.fieldName}}\\n  data-test-open={{this.isOpen}}\\n>\\n  <:header>\\n    <span\\n      class=\\\"c-feature-workflow-ai-interaction-tools-read-multiple-record-fields-field-value__header\\\"\\n      data-test-feature-workflow-ai-interaction-tool-execution-read-multiple-record-fields-field-value-header\\n    >\\n      {{this.title}}\\n    </span>\\n  </:header>\\n\\n  <:body>\\n    {{#if this.error}}\\n      <Shared::Feedback::Notification::NotificationInApp @state=\\\"error\\\" @message={{this.error}} />\\n    {{else if this.field}}\\n      <Widgets::Widget\\n        class={{get-classes-with-modifiers\\n          \\'c-feature-workflow-ai-interaction-tools-read-multiple-record-fields-field-value__widget\\'\\n          inline=this.isInlineField\\n        }}\\n        @type=\\\"display-row\\\"\\n        @widgetConfiguration={{this.field.widgetDisplay}}\\n        @field={{this.field}}\\n        @value={{this.valueFromToolExecution}}\\n        @label={{this.displayedValueFromToolExecution}}\\n      />\\n    {{else}}\\n      <span\\n        class=\\\"c-feature-workflow-ai-interaction-tools-read-multiple-record-fields-field-value__widget\\\"\\n      >\\n        {{this.displayedValueFromToolExecution}}\\n      </span>\\n    {{/if}}\\n\\n  </:body>\\n</Feature::BrowserExtension::Shared::Card::Deployable>\\n', { moduleName: 'client/features/workflow/components/ai-interaction/tools/read-multiple-record-fields/field-value/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Workflow::AiInteraction::AiPanel>\\n  <:title>\\n    <div class=\\\"c-feature-workflow-ai-interaction-tools-read-multiple-record-fields__title\\\">\\n      <div>Here\\'s what you\\'re looking for:</div>\\n      <div\\n        class=\\\"c-feature-workflow-ai-interaction-tools-read-multiple-record-fields__selected-record\\\"\\n        data-test-feature-workflow-ai-interaction-tool-execution-read-multiple-record-fields-selected-record\\n      >\\n        {{this.collectionDisplayName}}\\n        &gt;\\n        {{#if this.isSelectedRecordKnown}}\\n          <Feature::ClientRecord::ReferenceField\\n            @collection={{@selectedRecord.collection}}\\n            @isLinkDisabled={{true}}\\n            @recordIds={{array @selectedRecord.id}}\\n            class=\\\"c-feature-workflow-ai-interaction-tools-read-multiple-record-fields__reference-field\\\"\\n            data-test-feature-workflow-ai-interaction-tool-execution-read-multiple-record-fields-reference-field\\n          />\\n        {{/if}}\\n      </div>\\n      {{#if this.numberOfFieldsNotFound}}\\n        <div\\n          class=\\\"c-feature-workflow-ai-interaction-tools-read-multiple-record-fields__error\\\"\\n          data-test-feature-workflow-ai-interaction-tool-execution-read-multiple-record-fields-error\\n        >\\n          <Shared::DataDisplay::BetaIcon\\n            @iconName=\\\"error\\\"\\n            @size=\\\"tiny\\\"\\n            class=\\\"c-feature-workflow-ai-interaction-tools-read-multiple-record-fields__error-icon\\\"\\n            data-test-feature-workflow-ai-interaction-tool-execution-read-multiple-record-fields-error-icon\\n          />\\n          {{this.numberOfFieldsNotFound}}\\n          {{word-pluralize \\'field\\' this.numberOfFieldsNotFound}}\\n          not found\\n        </div>\\n      {{/if}}\\n    </div>\\n  </:title>\\n  <:footer>\\n    <div class=\\\"c-feature-workflow-ai-interaction-tools-read-multiple-record-fields__values\\\">\\n      {{#each @toolExecution.outputArtifacts as |output|}}\\n        <Feature::Workflow::AiInteraction::Tools::ReadMultipleRecordFields::FieldValue\\n          @selectedRecord={{@selectedRecord}}\\n          @toolExecutionOutput={{output}}\\n        />\\n      {{/each}}\\n    </div>\\n  </:footer>\\n</Feature::Workflow::AiInteraction::AiPanel>\\n', { moduleName: 'client/features/workflow/components/ai-interaction/tools/read-multiple-record-fields/template.hbs' });\n","import type {\n  ReadSelectedRecordFieldInput,\n  ReadSingleSelectedRecordFieldToolOutput,\n} from 'client/features/ai/services/internal-business/tools/tool-read-selected-record-field';\nimport type { ToolExecution } from 'client/features/ai/types/ai-steps';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Component from '@glimmer/component';\n\nimport { WidgetDisplayTypeEnum } from 'client/utils/widgets';\n\ninterface Args {\n  selectedRecord?: ClientRecordModel;\n  toolExecution: ToolExecution;\n}\n\nexport const INLINE_FIELD_WIDGETS = [\n  WidgetDisplayTypeEnum.Address,\n  WidgetDisplayTypeEnum.Array,\n  WidgetDisplayTypeEnum.Address,\n  WidgetDisplayTypeEnum.AssigneeArray,\n  WidgetDisplayTypeEnum.BooleanCheckbox,\n  WidgetDisplayTypeEnum.Color,\n  WidgetDisplayTypeEnum.Date,\n  WidgetDisplayTypeEnum.Number,\n  WidgetDisplayTypeEnum.Percentage,\n  WidgetDisplayTypeEnum.Point,\n  WidgetDisplayTypeEnum.Price,\n  WidgetDisplayTypeEnum.Text,\n  WidgetDisplayTypeEnum.Time,\n];\n\nexport default class WorkflowAiInteractionToolsReadRecordFieldComponent extends Component<Args> {\n  get toolExecutionOutput(): ReadSingleSelectedRecordFieldToolOutput | undefined {\n    return this.args.toolExecution?.outputArtifacts as ReadSingleSelectedRecordFieldToolOutput;\n  }\n\n  get collectionDisplayName() {\n    return this.args.selectedRecord?.collection.displayName || 'unknown collection';\n  }\n\n  get field() {\n    return this.args.selectedRecord?.collection.fields.find(\n      (field) => field.fieldName === this.toolExecutionOutput?.fieldName,\n    );\n  }\n\n  get isSelectedRecordKnown() {\n    return Boolean(this.args.selectedRecord);\n  }\n\n  get isFieldExisting() {\n    return Boolean(this.args.selectedRecord && this.field);\n  }\n\n  get valueFromToolExecution() {\n    return this.toolExecutionOutput?.value;\n  }\n\n  get displayedValueFromToolExecution() {\n    return this.toolExecutionOutput?.displayedValue;\n  }\n\n  get isInlineField() {\n    return (\n      !this.field?.widgetDisplay?.name\n      || INLINE_FIELD_WIDGETS.includes(this.field?.widgetDisplay?.name as WidgetDisplayTypeEnum)\n    );\n  }\n\n  get displayedValueOrNotFoundMessage() {\n    return this.displayedValueFromToolExecution !== null\n      && this.displayedValueFromToolExecution !== undefined\n      ? this.displayedValueFromToolExecution\n      : '-';\n  }\n\n  get displayName() {\n    return (\n      this.field?.displayName\n      || (this.args.toolExecution.inputArtifacts as ReadSelectedRecordFieldInput).fieldName\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#unless this.isFieldExisting}}\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"warning\\\"\\n    @canHide={{false}}\\n    data-test-feature-workflow-ai-interaction-tool-execution-read-selected-record-field-notification\\n  >\\n    The field you requested is probably not available in the selected record.\\n  </Shared::Feedback::Notification::NotificationInApp>\\n{{/unless}}\\n\\n<Feature::Workflow::AiInteraction::AiPanel>\\n  <:title>Here\\'s the value you\\'re looking for:</:title>\\n  <:body>\\n    <div class=\\\"c-feature-workflow-ai-interaction-tool-execution-read-selected-record-field__quote\\\">\\n      {{this.collectionDisplayName}}\\n      &gt;\\n      {{#if this.isSelectedRecordKnown}}\\n        <Feature::ClientRecord::ReferenceField\\n          class=\\\"c-feature-workflow-ai-interaction-tool-execution-read-selected-record-field__reference-field\\\"\\n          @collection={{@selectedRecord.collection}}\\n          @isLinkDisabled={{true}}\\n          @recordIds={{array @selectedRecord.id}}\\n        />\\n        &gt;\\n      {{/if}}\\n\\n      <span\\n        class=\\\"c-feature-workflow-ai-interaction-tool-execution-read-selected-record-field__bold\\\"\\n        data-test-feature-workflow-ai-interaction-tool-execution-read-selected-record-field-label\\n      >\\n        {{this.displayName}}:\\n      </span>\\n\\n      {{#if this.field}}\\n        <Widgets::Widget\\n          class={{get-classes-with-modifiers\\n            \\'c-feature-workflow-ai-interaction-tool-execution-read-selected-record-field__widget\\'\\n            inline=this.isInlineField\\n          }}\\n          @type=\\\"display-row\\\"\\n          @widgetConfiguration={{this.field.widgetDisplay}}\\n          @field={{this.field}}\\n          @value={{this.valueFromToolExecution}}\\n          @label={{this.displayedValueFromToolExecution}}\\n          data-test-feature-workflow-ai-interaction-tool-execution-read-selected-record-field-value\\n        />\\n      {{else}}\\n        <span\\n          class=\\\"c-feature-workflow-ai-interaction-tool-execution-read-selected-record-field__widget\\\"\\n          data-test-feature-workflow-ai-interaction-tool-execution-read-selected-record-field-label-no-field\\n        >\\n          {{this.displayedValueOrNotFoundMessage}}\\n        </span>\\n      {{/if}}\\n    </div>\\n  </:body>\\n  <:footer>\\n    {{yield}}\\n  </:footer>\\n</Feature::Workflow::AiInteraction::AiPanel>\\n', { moduleName: 'client/features/workflow/components/ai-interaction/tools/read-record-field/template.hbs' });\n","import type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type { WorkflowTask } from 'client/features/workflow/types/workflow-step';\n\nimport Component from '@glimmer/component';\n\nimport { uuidv4 } from 'client/utils/uuid-utils';\n\ninterface Args {\n  workflowStepHistory: WorkflowStepHistory<WorkflowTask>;\n}\n\nexport default class WorkflowAiInteractionToolsUnknownComponent extends Component<Args> {\n  readonly tooltipId = uuidv4();\n\n  constructor(owner: unknown, args: Args) {\n    super(owner, args);\n  }\n\n  get toolName() {\n    return this.aiAgentContext.toolConfirmationInterruption?.toolName;\n  }\n\n  get toolArgs() {\n    return this.aiAgentContext.toolConfirmationInterruption?.args;\n  }\n\n  get toolsParameters() {\n    return JSON.stringify(\n      {\n        name: this.toolName,\n        arguments: this.toolArgs,\n      },\n      null,\n      2,\n    );\n  }\n\n  get aiAgentContext() {\n    return this.args.workflowStepHistory.context.aiAgentContext;\n  }\n\n  get isToolExecutionAllowed() {\n    return (\n      this.aiAgentContext?.toolExecution\n      && this.aiAgentContext?.userConfirmation !== false\n      && this.aiAgentContext.toolExecution.status === 'success'\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.aiAgentContext.toolConfirmationInterruption}}\\n  <Feature::Workflow::AiInteraction::Confirmation\\n    @buttonConfirmText={{if @workflowStepHistory.isLoading \\'Executing...\\' \\'Execute\\'}}\\n    @workflowStepHistory={{@workflowStepHistory}}\\n    ...attributes\\n  >\\n    Here\\'s a shortcut to help you complete this step\\n    <Shared::Feedback::BetaTooltip\\n      @side=\\\"top\\\"\\n      @targetId={{this.tooltipId}}\\n      @tooltip={{this.toolsParameters}}\\n    >\\n      {{this.toolsParameters}}\\n    </Shared::Feedback::BetaTooltip>\\n\\n    <Shared::DataDisplay::BetaIcon\\n      id={{this.tooltipId}}\\n      @iconName=\\\"info_outlined\\\"\\n      @size=\\\"micro\\\"\\n      class=\\\"c-feature-workflow-ai-interaction-tools-unknown__tooltip\\\"\\n    />\\n\\n  </Feature::Workflow::AiInteraction::Confirmation>\\n{{/if}}\\n{{#if this.isToolExecutionAllowed}}\\n  <Feature::Workflow::AiInteraction::Tools::FinalAnswer\\n    @toolExecution={{this.aiAgentContext.toolExecution}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/features/workflow/components/ai-interaction/tools/unknown/template.hbs' });\n","import type {\n  UpdateSelectedRecordFieldInput,\n  UpdateSelectedRecordFieldToolOutput,\n} from 'client/features/ai/services/internal-business/tools/tool-update-selected-record-field';\nimport type { ToolExecution } from 'client/features/ai/types/ai-steps';\nimport type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type AiAgentContext from 'client/features/workflow/types/workflow-ai-agent-context';\nimport type { WorkflowTask } from 'client/features/workflow/types/workflow-step';\nimport type { WidgetDisplayTypeEnum } from 'client/utils/widgets';\n\nimport { action } from '@ember/object';\nimport { later } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { READ_SELECTED_RECORD_FIELD_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-read-selected-record-field';\nimport { INLINE_FIELD_WIDGETS } from 'client/features/workflow/components/ai-interaction/tools/read-record-field/component';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport { uuidv4 } from 'client/utils/uuid-utils';\n\ninterface Args {\n  workflowStepHistory: WorkflowStepHistory<WorkflowTask>;\n}\n\nexport default class WorkflowAiInteractionToolsUpdateRecordComponent extends Component<Args> {\n  @service('feature/workflow/internal-feature/execution')\n  private readonly executionService: WorkflowExecutionInternalFeatureService;\n\n  @tracked isEditModalVisible = false;\n  @tracked _newValue = undefined;\n  readonly confirmButtonId = uuidv4();\n  @tracked error: string;\n\n  get value() {\n    return this._newValue === undefined ? this.toolCallInput.input.newValue : this._newValue;\n  }\n\n  get toolExecutionOutput() {\n    return this.aiAgentContext.toolExecution.outputArtifacts as UpdateSelectedRecordFieldToolOutput;\n  }\n\n  get isFieldReadOnly() {\n    return this.field?.isReadOnly ?? false;\n  }\n\n  get isSelectedRecordKnown() {\n    return Boolean(this.selectedRecord);\n  }\n\n  get field() {\n    const fields = this.selectedRecord?.collection.fields;\n    return (\n      fields?.find((f) => f.displayName === this.fieldDisplayName)\n      || fields?.find((f) => f.fieldName === this.fieldDisplayName)\n    );\n  }\n\n  get isComponentDisplayed() {\n    return this.readFieldToolExecution && (this.field || !this.isSelectedRecordKnown);\n  }\n\n  get isInlineField() {\n    return (\n      !this.field?.widgetDisplay?.name\n      || INLINE_FIELD_WIDGETS.includes(this.field?.widgetDisplay?.name as WidgetDisplayTypeEnum)\n    );\n  }\n\n  get fieldDisplayName() {\n    return this.toolCallInput.input.fieldName;\n  }\n\n  get selectedRecord() {\n    return this.executionService.getSelectedRecord(this.args.workflowStepHistory);\n  }\n\n  get toolCallInput(): UpdateSelectedRecordFieldInput {\n    const rawArgs = this.aiAgentContext.toolConfirmationInterruption.args;\n    // Sometimes, the IA can send {fieldName, newValue} instead of {input: {fieldName, newValue}}. If the input is not wrapped in an object, wrap it\n    return rawArgs.input ? rawArgs : { input: rawArgs as UpdateSelectedRecordFieldInput['input'] };\n  }\n\n  get aiAgentContext() {\n    return this.args.workflowStepHistory.context.aiAgentContext as AiAgentContext<{\n      readFieldToolExecution: ToolExecution;\n    }>;\n  }\n\n  get readFieldToolExecution() {\n    return this.aiAgentContext.toolData?.readFieldToolExecution;\n  }\n\n  get toolExecution() {\n    return this.aiAgentContext.toolExecution;\n  }\n\n  @action\n  async getReadFieldToolExecution() {\n    if (this.readFieldToolExecution) return;\n    if (this.selectedRecord) {\n      const readFieldToolExecution = await this.executionService.executeToolAndFormatResponse(\n        this.selectedRecord,\n        {\n          id: 'direct-tool-call',\n          name: READ_SELECTED_RECORD_FIELD_TOOL_NAME,\n          args: { fieldName: this.fieldDisplayName },\n        },\n      );\n      this.aiAgentContext.toolData = {\n        readFieldToolExecution,\n      };\n\n      if (!this.field) {\n        this.aiAgentContext.toolExecution = {\n          toolName: this.aiAgentContext.toolConfirmationInterruption.toolName,\n          toolCallId: this.aiAgentContext.toolConfirmationInterruption.toolCallId,\n          inputArtifacts: this.aiAgentContext.toolConfirmationInterruption.args,\n          output: `The field \"${this.fieldDisplayName}\" does not exist in the selected record.`,\n          status: 'error',\n        };\n        this.aiAgentContext.userConfirmation = true;\n      }\n    } else {\n      await waitForNextRunLoop();\n      // if no selected record, simulate a read field tool execution to display the component\n      this.aiAgentContext.toolData = {\n        readFieldToolExecution: {\n          toolCallId: 'fake-tool-call-id',\n          status: 'error',\n          toolName: READ_SELECTED_RECORD_FIELD_TOOL_NAME,\n          inputArtifacts: {\n            fieldName: this.fieldDisplayName,\n          },\n          outputArtifacts: {\n            value: undefined,\n            displayedValue: undefined,\n            fieldName: this.fieldDisplayName, // use the displayName as the field isn't available\n          },\n        },\n      };\n    }\n  }\n\n  @action\n  toggleEditModal() {\n    this.isEditModalVisible = !this.isEditModalVisible;\n  }\n\n  @action\n  async confirmToolExecution() {\n    this.toolCallInput.input.newValue = this.value;\n    const toolInterruption = this.aiAgentContext.toolConfirmationInterruption;\n    toolInterruption.args = this.toolCallInput;\n\n    this.error = undefined;\n    const toolExecution = await this.executionService.executeToolAndFormatResponse(\n      this.selectedRecord,\n      toolInterruption.getToolCall(),\n      this.args.workflowStepHistory.step.prompt,\n    );\n    if (toolExecution.status === 'error') {\n      // make the error blink to make it more noticable if the same error occurs multiple times\n      await new Promise((resolve) => later(resolve, 200));\n      this.error = toolExecution.output;\n    } else {\n      this.aiAgentContext.toolExecution = toolExecution;\n      this.isEditModalVisible = false;\n      this.aiAgentContext.userConfirmation = true;\n      // Call confirmToolExecution to trigger auto-completion and save workflow run\n      await this.executionService.confirmToolExecution(true);\n    }\n  }\n\n  @action\n  onValueChanged(newValue) {\n    this._newValue = newValue;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-insert this.getReadFieldToolExecution}}\\n{{#if this.isComponentDisplayed}}\\n  <Feature::Workflow::AiInteraction::Tools::ReadRecordField\\n    @toolExecution={{this.readFieldToolExecution}}\\n    @selectedRecord={{this.selectedRecord}}\\n    ...attributes\\n  >\\n    <Feature::Workflow::AiInteraction::Confirmation::Buttons\\n      @workflowStepHistory={{@workflowStepHistory}}\\n      @buttonConfirmText=\\\"Update\\\"\\n      @onConfirm={{this.toggleEditModal}}\\n      @confirmButtonId={{this.confirmButtonId}}\\n      @isConfirmButtonDisabled={{this.isFieldReadOnly}}\\n      @iconName=\\\"edit\\\"\\n    />\\n\\n    {{#if this.isFieldReadOnly}}\\n      <Shared::Feedback::BetaTooltip\\n        @side=\\\"top\\\"\\n        @targetId={{this.confirmButtonId}}\\n        @text=\\\"This field is readonly and cannot be updated. Ask your admin to change the layout if you need to update this field.\\\"\\n      />\\n    {{/if}}\\n    <Shared::TooltipLikeModal\\n      @triggererId={{this.confirmButtonId}}\\n      @visible={{this.isEditModalVisible}}\\n      @onClose={{fn (mut this.isEditModalVisible) false}}\\n      @exceptSelector=\\\"#portal-for-widget-modal,#portal-for-dropdown\\\"\\n      class=\\\"c-feature-workflow-ai-interaction-tools-update-record__edit-modal\\\"\\n      data-test-edit-modal\\n    >\\n      <div class=\\\"c-feature-workflow-ai-interaction-tools-update-record__description\\\">\\n        Edit\\n        <i>{{this.fieldDisplayName}}</i>\\n        value for\\n        <Shared::DataDisplay::BetaIcon\\n          class=\\\"c-feature-workflow-ai-interaction-tools-update-record__icon\\\"\\n          @iconName={{this.selectedRecord.collection.iconOrDefault}}\\n        />\\n        <Feature::ClientRecord::ReferenceField\\n          class=\\\"c-feature-workflow-ai-interaction-tools-update-record__reference-field\\\"\\n          @collection={{this.selectedRecord.collection}}\\n          @isLinkDisabled={{true}}\\n          @recordIds={{array this.selectedRecord.id}}\\n        />\\n      </div>\\n      <Form::FormValue\\n        @displayName={{this.field.displayNameTitlize}}\\n        @readMode={{false}}\\n        @collection={{this.selectedRecord.collection}}\\n        @field={{this.field}}\\n        @isUsedInSmartAction={{true}}\\n        @disableNested={{true}}\\n        @value={{one-way this.value}}\\n        @onChange={{this.onValueChanged}}\\n      />\\n      {{#if this.error}}\\n        <Shared::Feedback::Notification::NotificationInApp\\n          @state=\\\"error\\\"\\n          @canHide={{false}}\\n          data-test-edit-modal-error\\n        >\\n          Error:\\n          {{this.error}}\\n        </Shared::Feedback::Notification::NotificationInApp>\\n      {{/if}}\\n      <div class=\\\"c-feature-workflow-ai-interaction-tools-update-record__buttons\\\">\\n        <Shared::Button\\n          @type=\\\"ghost\\\"\\n          @text=\\\"Discard\\\"\\n          @onClick={{fn (mut this.isEditModalVisible) false}}\\n          @size=\\\"medium\\\"\\n          data-test-edit-modal-discard-button\\n        />\\n        <Shared::Button\\n          @type=\\\"ghost-green\\\"\\n          @text=\\\"Confirm\\\"\\n          @onClick={{this.confirmToolExecution}}\\n          @size=\\\"medium\\\"\\n          data-test-edit-modal-confirm-button\\n        />\\n      </div>\\n    </Shared::TooltipLikeModal>\\n\\n    {{#if this.aiAgentContext.toolExecution}}\\n      <div\\n        class=\\\"c-feature-workflow-ai-interaction-tools-update-record__result\\\"\\n        data-test-update-tool-result\\n      >\\n        Successfully updated to:\\n        {{#if this.isSelectedRecordKnown}}\\n          <Widgets::Widget\\n            class={{get-classes-with-modifiers\\n              \\'c-feature-workflow-ai-interaction-tool-execution-read-selected-record-field__widget\\'\\n              inline=this.isInlineField\\n            }}\\n            @type=\\\"display-row\\\"\\n            @widgetConfiguration={{this.field.widgetDisplay}}\\n            @field={{this.field}}\\n            @value={{this.toolExecutionOutput.value}}\\n            @label={{this.toolExecutionOutput.displayedValue}}\\n            data-test-update-tool-result-value\\n          />\\n        {{else}}\\n          {{this.toolExecutionOutput.displayedValue}}\\n        {{/if}}\\n      </div>\\n    {{/if}}\\n  </Feature::Workflow::AiInteraction::Tools::ReadRecordField>\\n{{/if}}\\n', { moduleName: 'client/features/workflow/components/ai-interaction/tools/update-record/template.hbs' });\n","// eslint-disable-next-line forest-custom/dependency-rules\nimport type WorkflowBpmnParserInternalBusinessService from 'client/features/workflow/services/internal-business/bpmn-parser';\nimport type { ParserWarning } from 'client/features/workflow/services/standalone-package/services/parser-module/parser-warnings';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport AbstractMultiStepComponent from 'client/shared/components/multi-step-modal/abstract-multi-step-modal';\nimport FileTypeUtils from 'client/utils/file-type';\n\nexport interface ParserResult {\n  warnings: ParserWarning[];\n  error: boolean;\n}\n\ntype Args = {\n  onFileChange: (file: string | null) => void | Promise<void>;\n  onParserResult: (parserResult: ParserResult) => void | Promise<void>;\n  file?: string;\n};\n\nexport default class WorkflowBpmnUploaderComponent extends AbstractMultiStepComponent<Args> {\n  @service('feature/workflow/internal-business/bpmn-parser')\n  public bpmnParser: WorkflowBpmnParserInternalBusinessService;\n\n  @tracked public _file: string | null = null;\n  @tracked public warnings: ParserWarning[] = [];\n\n  get file() {\n    return this.args.file || this._file;\n  }\n\n  set file(newFile: string) {\n    this._file = newFile;\n  }\n\n  get parserResult() {\n    return {\n      warnings: this.warnings,\n      error: this.warnings.find((warning) => warning.criticality === 'error') !== undefined,\n    };\n  }\n\n  @action\n  async onNewFileFromArgs() {\n    this.file = this.args.file;\n\n    await this.parseWorkflow();\n  }\n\n  @action\n  async onNewFileFromInput(newFile: string) {\n    this.file = newFile;\n\n    await this.args.onFileChange(newFile);\n\n    if (!this.args.file) {\n      await this.parseWorkflow();\n    }\n  }\n\n  @action\n  async parseWorkflow() {\n    this.warnings = [];\n\n    if (this.file) {\n      this.bpmnParser.parseBpmnXml(\n        await FileTypeUtils.createFileFromDataUri(this.file).text(),\n        (warning) => {\n          this.warnings = [...this.warnings, warning];\n        },\n      );\n\n      await this.args.onParserResult(this.parserResult);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-workflow-bpmn-uploader\\\" ...attributes>\\n  {{did-insert this.parseWorkflow}}\\n  {{did-update this.onNewFileFromArgs @file}}\\n  <Widgets::Edit::FilePicker\\n    @isMultiple={{false}}\\n    @value={{this.file}}\\n    @onChange={{this.onNewFileFromInput}}\\n    @filesSizeLimit={{10}}\\n    @filesExtensions={{array \\'xml\\' \\'txt\\' \\'bpmn\\'}}\\n    @skipConfirm={{true}}\\n    data-test-workflow-bpmn-uploader-file-picker\\n  />\\n  <div class=\\\"c-feature-workflow-bpmn-uploader__warnings\\\">\\n    {{#each this.warnings as |warning|}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state={{warning.criticality}}\\n        @canHide={{false}}\\n        @messageTitle={{warning.title}}\\n      >\\n        {{warning.subtitle}}\\n      </Shared::Feedback::Notification::NotificationInApp>\\n    {{/each}}\\n  </div>\\n</div>\\n', { moduleName: 'client/features/workflow/components/bpmn-uploader/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  @type=\\\"ghost-purple\\\"\\n  @onClick={{@onClick}}\\n  @text={{@text}}\\n  @iconName={{@iconName}}\\n  @size=\\\"small\\\"\\n  @isActive={{@isActive}}\\n  @isLoading={{@isLoading}}\\n  data-test-feature-workflow-button-ai-confirm\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workflow/components/button/ai-confirm/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  @type=\\\"ghost-primary\\\"\\n  @onClick={{@onClick}}\\n  @text={{or @text \\'Done\\'}}\\n  @iconName={{unless (eq @shouldDisplayIcon false) \\'check\\'}}\\n  @size=\\\"small\\\"\\n  @isActive={{@isActive}}\\n  data-test-feature-workflow-button-done\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workflow/components/button/done/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  @type=\\\"ghost-primary\\\"\\n  @onClick={{@onClick}}\\n  @text={{if @isLoading \\'Escalating...\\' \\'Escalate\\'}}\\n  @isLoading={{@isLoading}}\\n  @iconName=\\\"arrow_forward\\\"\\n  @size=\\\"small\\\"\\n  @isActive={{false}}\\n  @isIconAfterText={{true}}\\n  disabled={{@disabled}}\\n  data-test-feature-workflow-button-escalate\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workflow/components/button/escalate/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  @type=\\\"ghost-red\\\"\\n  @onClick={{@onClick}}\\n  @text={{or @text \\'No\\'}}\\n  @iconName=\\\"close\\\"\\n  @size=\\\"small\\\"\\n  @isActive={{@isActive}}\\n  data-test-transition-button=\\\"no\\\"\\n  data-test-feature-workflow-button-no\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workflow/components/button/no/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  @type=\\\"ghost\\\"\\n  @onClick={{@onClick}}\\n  disabled={{@disabled}}\\n  @text=\\\"Revise\\\"\\n  @iconName=\\\"replay\\\"\\n  @size=\\\"small\\\"\\n  data-test-feature-workflow-button-revise\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workflow/components/button/revise/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  @type=\\\"ghost-green\\\"\\n  @onClick={{@onClick}}\\n  @text={{or @text \\'Yes\\'}}\\n  @iconName=\\\"check\\\"\\n  @size=\\\"small\\\"\\n  @isActive={{@isActive}}\\n  data-test-transition-button=\\\"yes\\\"\\n  data-test-feature-workflow-button-yes\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workflow/components/button/yes/template.hbs' });\n","import type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  workflowStepHistory: WorkflowStepHistory;\n}\n\nexport default class WorkflowCardComponent extends Component<Args> {\n  @service('feature/workflow/internal-feature/execution')\n  private readonly workflowExecutionService: WorkflowExecutionInternalFeatureService;\n\n  @service('feature/workflow')\n  private readonly workflowFeatureService: WorkflowFeatureService;\n\n  get isOpen() {\n    return this.workflowFeatureService.isStepOpen(this.args.workflowStepHistory.stepIndex);\n  }\n\n  get title() {\n    return this.step.title;\n  }\n\n  get isCancelled() {\n    return this.args.workflowStepHistory.cancelled || this.args.workflowStepHistory.revised;\n  }\n\n  get headerIcon() {\n    if (this.isCancelled) return 'close';\n    return this.areStepAndConditionsCompleted ? 'check_circle' : 'radio_button_unchecked';\n  }\n\n  get workflowSubSteps() {\n    return this.workflowExecutionService.getWorkflowSubSteps(this.args.workflowStepHistory);\n  }\n\n  private get isStepCompleted() {\n    return this.args.workflowStepHistory.done;\n  }\n\n  private get areStepAndConditionsCompleted() {\n    return this.isStepCompleted && !this.workflowSubSteps.any((condition) => !condition.done);\n  }\n\n  get step() {\n    return this.args.workflowStepHistory.step;\n  }\n\n  @action\n  toggleStep() {\n    this.workflowFeatureService.toggleUserStep(this.args.workflowStepHistory.stepIndex);\n  }\n}\n","import type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type WorkflowFeatureState from 'client/features/workflow/state';\nimport type { WorkflowTask } from 'client/features/workflow/types/workflow-step';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { isAiExecutedTask } from 'client/features/workflow/types/type-guards';\n\ninterface Args {\n  workflowStepHistory: WorkflowStepHistory<WorkflowTask>;\n}\n\nexport default class WorkflowCardStepComponent extends Component<Args> {\n  @service('feature/workflow/internal-feature/execution')\n  private readonly workflowExecutionService: WorkflowExecutionInternalFeatureService;\n\n  @service('feature/workflow/state')\n  private readonly workflowState: WorkflowFeatureState;\n\n  @tracked isReviseConfirmationDisplayed = false;\n\n  get step() {\n    return this.args.workflowStepHistory.step;\n  }\n\n  get isTransitionButtonDisplayed() {\n    return this.workflowExecutionService.isTransitionButtonDisplayed(this.args.workflowStepHistory);\n  }\n\n  get isStepCompleted() {\n    return this.args.workflowStepHistory.done;\n  }\n\n  get isAiStep() {\n    return isAiExecutedTask(this.step);\n  }\n\n  get isButtonDisabled() {\n    return (\n      this.isStepCompleted\n      || this.isRevisedOrCancelled\n      || this.workflowState.isFinishedWorkflow\n      || this.workflowState.isTransitioning\n    );\n  }\n\n  get requiresUserInput() {\n    return this.step.type === 'task' && (this.step as WorkflowTask).completionType === 'user-input';\n  }\n\n  get aiAgentContext() {\n    return this.args.workflowStepHistory.context.aiAgentContext;\n  }\n\n  get isWorkflowEnded() {\n    return this.workflowExecutionService.lastStepHistory?.step?.type === 'end';\n  }\n\n  get isReviseDisabled() {\n    return this.isWorkflowEnded || this.workflowState.isTransitioning;\n  }\n\n  private get isRevisedOrCancelled() {\n    return this.args.workflowStepHistory.revised || this.args.workflowStepHistory.cancelled;\n  }\n\n  get isRevisedButtonDisplayed() {\n    return (\n      this.isStepCompleted && !this.isRevisedOrCancelled && !this.workflowState.isFinishedWorkflow\n    );\n  }\n\n  public get isAiDecisionStep() {\n    return this.workflowExecutionService.isAiDecisionAllowed(this.args.workflowStepHistory);\n  }\n\n  public get aiDecisionError() {\n    return this.isAiDecisionStep ? this.aiAgentContext?.error : undefined;\n  }\n\n  public get isManualFallback() {\n    return (\n      this.isAiDecisionStep && this.args.workflowStepHistory.done && !!this.aiAgentContext?.error\n    );\n  }\n\n  public get shouldDisplaySpinner() {\n    if (this.isAiStep) {\n      return this.aiAgentContext?.toolConfirmationInterruption\n        ? false\n        : this.args.workflowStepHistory.isLoading;\n    }\n    return this.args.workflowStepHistory.isLoading;\n  }\n\n  @action\n  async reviseStep() {\n    this.isReviseConfirmationDisplayed = true;\n  }\n\n  @action\n  async closeReviseModal() {\n    this.isReviseConfirmationDisplayed = false;\n  }\n}\n","import type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type { WorkflowCondition } from 'client/features/workflow/types/workflow-step';\nimport type LegacyWorkflowStepContext from 'client/features/workflow/types/workflow-step-context';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  workflowStepHistory: WorkflowStepHistory<WorkflowCondition, LegacyWorkflowStepContext>;\n  disabled: boolean;\n}\n\nexport default class WorkflowCardStepConditionComponent extends Component<Args> {\n  @service('feature/workflow/internal-feature/execution')\n  private readonly workflowExecutionService: WorkflowExecutionInternalFeatureService;\n\n  get step() {\n    return this.args.workflowStepHistory.step as WorkflowCondition;\n  }\n\n  get isStepCompleted() {\n    return this.args.workflowStepHistory.done;\n  }\n\n  get yesOutGoing() {\n    return this.step.outgoing?.find(\n      (outgoing) =>\n        outgoing.answer?.toLowerCase().includes('yes')\n        || outgoing.buttonText?.toLowerCase().includes('yes'),\n    );\n  }\n\n  get noOutGoing() {\n    return this.step.outgoing\n      ?.filter((outGoing) => outGoing !== this.yesOutGoing)\n      .find(\n        (outgoing) =>\n          outgoing.answer?.toLowerCase().includes('no')\n          || outgoing.buttonText?.toLowerCase().includes('no'),\n      );\n  }\n\n  get isYesAndNoStep() {\n    return this.step.outgoing?.length === 2 && !!this.yesOutGoing && !!this.noOutGoing;\n  }\n\n  get shouldDisplayIcon() {\n    return this.isYesAndNoStep || this.step.outgoing?.length === 1;\n  }\n\n  @action\n  isStepCompletedWithOption(stepId: string) {\n    return this.isStepCompleted && this.args.workflowStepHistory.context?.selectedOption === stepId;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#each this.step.outgoing as |transition|}}\\n  <Feature::Workflow::TransitionButton\\n    @isYesButton={{and this.isYesAndNoStep (eq transition this.yesOutGoing)}}\\n    @isNoButton={{and this.isYesAndNoStep (eq transition this.noOutGoing)}}\\n    @isActive={{this.isStepCompletedWithOption transition.stepId}}\\n    @transition={{transition}}\\n    @shouldDisplayIcon={{this.shouldDisplayIcon}}\\n    disabled={{or this.isStepCompleted @disabled}}\\n  />\\n{{/each}}\\n', { moduleName: 'client/features/workflow/components/card/step/condition/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-card-step\\\"\\n  data-test-feature-workflow-card-step-content\\n  ...attributes\\n>\\n  <p class=\\\"c-feature-workflow-card-step__prompt\\\">\\n    {{! template-lint-disable no-triple-curlies }}\\n    {{{this.step.prompt}}}\\n  </p>\\n\\n  {{#if this.isAiStep}}\\n    <Feature::Workflow::AiInteraction\\n      @aiAgentContext={{this.aiAgentContext}}\\n      @prompt={{this.step.prompt}}\\n      @workflowStepHistory={{@workflowStepHistory}}\\n      data-test-workflow-step-ai\\n    />\\n  {{/if}}\\n\\n  {{#if this.shouldDisplaySpinner}}\\n    <Shared::Spinner data-test-workflow-step-spinner />\\n  {{/if}}\\n\\n  {{#if this.aiDecisionError}}\\n    <Feature::Workflow::AiInteraction::Tools::Error\\n      @error={{this.aiDecisionError}}\\n      @prompt={{this.step.prompt}}\\n    />\\n  {{/if}}\\n\\n  {{#if this.isManualFallback}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"info\\\"\\n      @canHide={{false}}\\n      data-test-feature-workflow-ai-interaction-tools-choose-gateway-option-manual-fallback\\n    >\\n      Option selected manually by the user.\\n    </Shared::Feedback::Notification::NotificationInApp>\\n  {{/if}}\\n\\n  {{#if (and this.isTransitionButtonDisplayed this.requiresUserInput)}}\\n    <Feature::Workflow::Card::Step::UserInput\\n      @workflowStepHistory={{@workflowStepHistory}}\\n      @transition={{this.step.outgoing}}\\n      @disabled={{this.isButtonDisabled}}\\n      @isActive={{this.isStepCompleted}}\\n      data-test-workflow-step-user-input\\n    >\\n      {{#if this.isRevisedButtonDisplayed}}\\n        <Feature::Workflow::Button::Revise\\n          @onClick={{this.reviseStep}}\\n          @disabled={{this.isReviseDisabled}}\\n        />\\n      {{/if}}\\n    </Feature::Workflow::Card::Step::UserInput>\\n  {{else}}\\n    <div class=\\\"c-feature-workflow-card-step__buttons\\\" data-test-feature-workflow-card-step-buttons>\\n      {{#if this.isTransitionButtonDisplayed}}\\n        {{#if (eq this.step.type \\'condition\\')}}\\n          {{#if this.isAiDecisionStep}}\\n            <Feature::Workflow::AiInteraction::Tools::ChooseGatewayOption\\n              @workflowStepHistory={{@workflowStepHistory}}\\n            />\\n          {{else}}\\n            <Feature::Workflow::Card::Step::Condition\\n              @workflowStepHistory={{@workflowStepHistory}}\\n              @disabled={{this.isButtonDisabled}}\\n            />\\n          {{/if}}\\n        {{else if (eq this.step.type \\'end\\')}}\\n          <Shared::Confetti @containerSelector=\\\".c-feature-workflow-card-step\\\" />\\n          <Feature::Workflow::TransitionButton\\n            @transition={{hash buttonText=\\'Close workflow\\'}}\\n            data-test-workflow-step-end-close\\n          />\\n        {{else}}\\n          <Feature::Workflow::TransitionButton\\n            @transition={{this.step.outgoing}}\\n            @isActive={{this.isStepCompleted}}\\n            disabled={{this.isButtonDisabled}}\\n            data-test-workflow-step-ai-continue\\n          />\\n        {{/if}}\\n        {{#if this.isRevisedButtonDisplayed}}\\n          <Feature::Workflow::Button::Revise\\n            @onClick={{this.reviseStep}}\\n            @disabled={{this.isReviseDisabled}}\\n          />\\n        {{/if}}\\n      {{/if}}\\n    </div>\\n  {{/if}}\\n\\n  {{#if this.isReviseConfirmationDisplayed}}\\n    <Feature::Workflow::ReviseConfirmation\\n      @onCancel={{this.closeReviseModal}}\\n      @workflowStepHistory={{@workflowStepHistory}}\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workflow/components/card/step/template.hbs' });\n","import type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type { WorkflowTransition } from 'client/features/workflow/services/standalone-package/types/transition';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type { WorkflowTask } from 'client/features/workflow/types/workflow-step';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ninterface Args {\n  workflowStepHistory: WorkflowStepHistory<WorkflowTask>;\n  transition: WorkflowTransition;\n  disabled: boolean;\n  isActive: boolean;\n}\n\nexport default class WorkflowCardStepUserInputComponent extends Component<Args> {\n  @service('feature/workflow/internal-feature/execution')\n  private readonly workflowExecutionService: WorkflowExecutionInternalFeatureService;\n\n  @tracked userText: string;\n\n  constructor(owner: unknown, args: Args) {\n    super(owner, args);\n    this.userText = (this.args.workflowStepHistory.context.userInput as string) ?? '';\n  }\n\n  get isSubmitDisabled() {\n    return this.args.disabled || !this.userText.trim();\n  }\n\n  get buttonText() {\n    return this.args.transition.buttonText || 'Submit';\n  }\n\n  @action\n  handleChange(value: string) {\n    this.userText = value;\n  }\n\n  @action\n  handleSubmit() {\n    void this.workflowExecutionService.goToNextStep(undefined, this.userText);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-workflow-card-step-user-input\\\" ...attributes>\\n  <Shared::BetaTextarea\\n    @value={{this.userText}}\\n    @onChange={{this.handleChange}}\\n    @autoGrow={{true}}\\n    @disabled={{@disabled}}\\n    @placeholder=\\\"Type your response here...\\\"\\n    class=\\\"c-feature-workflow-card-step-user-input__textarea\\\"\\n    data-test-feature-workflow-card-step-user-input-textarea\\n  />\\n  <div class=\\\"c-feature-workflow-card-step-user-input__buttons\\\">\\n    {{#if @transition.buttonColor}}\\n      <Shared::ActivatableButton\\n        @color={{@transition.buttonColor}}\\n        @text={{this.buttonText}}\\n        @onClick={{this.handleSubmit}}\\n        @isActive={{@isActive}}\\n        disabled={{this.isSubmitDisabled}}\\n        data-test-feature-workflow-card-step-user-input-submit\\n      />\\n    {{else}}\\n      <Feature::Workflow::Button::Done\\n        @text={{this.buttonText}}\\n        @onClick={{this.handleSubmit}}\\n        @isActive={{@isActive}}\\n        disabled={{this.isSubmitDisabled}}\\n        data-test-feature-workflow-card-step-user-input-submit\\n      />\\n    {{/if}}\\n    {{yield}}\\n  </div>\\n</div>\\n', { moduleName: 'client/features/workflow/components/card/step/user-input/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Shared::Card::Deployable\\n  @headerIcon={{this.headerIcon}}\\n  @isOpen={{this.isOpen}}\\n  @onExpand={{this.toggleStep}}\\n  @onRetract={{this.toggleStep}}\\n  class={{get-classes-with-modifiers \\'c-feature-workflow-card\\' cancelled=this.isCancelled}}\\n  data-test-workflow-step={{this.title}}\\n  data-test-workflow-step-open={{this.isOpen}}\\n>\\n  <:header>\\n    <span class=\\\"c-feature-workflow-card__header\\\" data-test-workflow-step-title>\\n      {{this.title}}\\n    </span>\\n    {{#if @workflowStepHistory.revised}}\\n      <span>(revised)</span>\\n    {{/if}}\\n  </:header>\\n\\n  <:body>\\n    <div class=\\\"c-feature-workflow-card__body\\\" data-test-workflow-card-content>\\n      {{#if (eq this.step.type \\'escalation\\')}}\\n        <Feature::Workflow::Escalation\\n          @workflowStepHistory={{@workflowStepHistory}}\\n          data-test-workflow-step-escalation\\n        />\\n      {{else}}\\n        <Feature::Workflow::Card::Step\\n          @workflowStepHistory={{@workflowStepHistory}}\\n          data-test-workflow-substep=\\\"task\\\"\\n        />\\n        {{! display all conditions/gateways (or other tasks in subprocess) until the next task }}\\n        {{#each this.workflowSubSteps as |subStep index|}}\\n          <Feature::Workflow::Card::Step\\n            @workflowStepHistory={{subStep}}\\n            data-test-workflow-substep={{index}}\\n          />\\n        {{/each}}\\n      {{/if}}\\n    </div>\\n  </:body>\\n</Feature::BrowserExtension::Shared::Card::Deployable>\\n', { moduleName: 'client/features/workflow/components/card/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::ModalSimple @iconName=\\\"question_mark\\\" ...attributes>\\n  <:title>Save workflow for later?</:title>\\n  <:description>\\n    You or another user can always resume it later from the workflows list. Aborting will lose all\\n    your progress.\\n  </:description>\\n  <:footer>\\n    <Shared::Button @type=\\\"ghost\\\" @text=\\\"Abort\\\" @onClick={{@data.abort}} data-test-abort-workflow />\\n    <Shared::Button\\n      @type=\\\"primary\\\"\\n      @text=\\\"Save and close\\\"\\n      @onClick={{@data.saveAndClose}}\\n      data-test-save-and-close-workflow\\n    />\\n  </:footer>\\n</Shared::ModalSimple>\\n', { moduleName: 'client/features/workflow/components/close-confirmation/template.hbs' });\n","import Component from '@glimmer/component';\n\ntype Args = {\n  isCreate: boolean;\n  error: string;\n  isSuccess: boolean;\n  isLoading: boolean;\n  fileName: string;\n  workflowName: string;\n};\n\nexport default class WorkflowCreateUpdateStatusComponent extends Component<Args> {\n  get successMessage() {\n    return `\"${this.args.workflowName}\" workflow successfully ${\n      this.args.isCreate ? 'created' : 'updated'\n    }!`;\n  }\n\n  get errorMessage() {\n    return `An error occurred while ${this.args.isCreate ? 'creating' : 'updating'} workflow`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-create-update-status\\\"\\n  data-test-feature-workflow-create-update-status\\n  ...attributes\\n>\\n  {{#if @isLoading}}\\n    <Shared::Feedback::Notification::NotificationInApp @state=\\\"info\\\" @canHide={{false}}>\\n      Processing…\\n    </Shared::Feedback::Notification::NotificationInApp>\\n  {{else if @error}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"error\\\"\\n      @canHide={{false}}\\n      @messageTitle={{this.errorMessage}}\\n    >\\n      {{@error}}\\n    </Shared::Feedback::Notification::NotificationInApp>\\n  {{else if @isSuccess}}\\n    <Shared::Feedback::Notification::NotificationInApp @state=\\\"success\\\" @canHide={{false}}>\\n      {{this.successMessage}}\\n    </Shared::Feedback::Notification::NotificationInApp>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workflow/components/create-update-status/template.hbs' });\n","import type CollectionModel from 'client/data/models/collection';\nimport type SegmentModel from 'client/data/models/segment';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type WorkflowRunModel from 'client/data/models/workflow-run';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type WorkflowFeatureState from 'client/features/workflow/state';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { WorkflowRunStateEnum } from 'client/features/workflow/services/standalone-package/types/workflow-run';\n\ninterface Args {\n  collection: CollectionModel;\n  segment: SegmentModel;\n  selectedRecord?: ClientRecordModel;\n  buttonSize?: string;\n  isEditMode?: boolean;\n  shouldShowWorklows?: boolean;\n}\n\nexport interface WorkflowWithRun {\n  workflow: WorkflowModel;\n  currentRun: WorkflowRunModel;\n}\ninterface WorkflowsByStatus {\n  notStarted: WorkflowModel[];\n  started: WorkflowWithRun[];\n  finished: WorkflowWithRun[];\n  aborted: WorkflowWithRun[];\n}\n\nexport default class WorkflowDropdownComponent extends Component<Args> {\n  @service('feature/workflow')\n  private declare workflowFeature: WorkflowFeatureService;\n\n  @service('feature/workflow/state')\n  private declare workflowState: WorkflowFeatureState;\n\n  @service private declare eventBus: EventBusService;\n\n  @tracked workflowRuns: WorkflowRunModel[] = [];\n  @tracked isLoading = true;\n  @tracked isWorkflowRunsListDisplayed = false;\n  @tracked shouldDisplayEditDropdown = false;\n\n  @tracked private enabledWorkflows: WorkflowModel[] = [];\n\n  constructor(owner: unknown, args: Args) {\n    super(owner, args);\n\n    void this.loadEnabledWorkflows();\n    this.eventBus.on('editModeActivated', this.hideWorkflowRunsList);\n    this.eventBus.on('editModeDeactivated', this.handleHideEditDropdown);\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.eventBus.off('editModeActivated', this.hideWorkflowRunsList);\n    this.eventBus.off('editModeDeactivated', this.handleHideEditDropdown);\n  }\n\n  get buttonId() {\n    return `${guidFor(this)}-button-id`;\n  }\n\n  get dropdownId() {\n    return `${guidFor(this)}-workflows-tooltip-target`;\n  }\n\n  get workflows() {\n    return this.args.collection.workflows?.sortBy('position');\n  }\n\n  get showDropdown() {\n    return (\n      this.args.shouldShowWorklows !== false\n      && this.workflowFeature.hasAccessToFeature\n      && this.workflows?.length > 0\n      && !this.isWorkflowRunsListDisplayed\n    );\n  }\n\n  async loadEnabledWorkflows() {\n    this.enabledWorkflows = await this.workflowFeature.getEnabledWorkflowForRecord(\n      this.args.selectedRecord,\n    );\n  }\n\n  @action\n  async handleSelectedRecordChange() {\n    await Promise.all([this.loadEnabledWorkflows(), this.fetchWorkflowRuns()]);\n  }\n\n  @action\n  isWorkflowAllowedHere(workflow: WorkflowModel) {\n    return this.enabledWorkflows.includes(workflow);\n  }\n\n  @action\n  isWorkflowDisabled(workflow: WorkflowModel) {\n    return !this.args.selectedRecord || !this.isWorkflowAllowedHere(workflow);\n  }\n\n  @action\n  hideWorkflowRunsList() {\n    this.isWorkflowRunsListDisplayed = false;\n  }\n\n  @action\n  toggleWorkflowRunsList() {\n    this.isWorkflowRunsListDisplayed = !this.isWorkflowRunsListDisplayed;\n    void this.fetchWorkflowRuns();\n  }\n\n  @action\n  async fetchWorkflowRuns() {\n    this.workflowRuns = [];\n    if (!this.isWorkflowRunsListDisplayed) return;\n    if (!this.args.collection || !this.args.selectedRecord) {\n      this.isLoading = false;\n      return;\n    }\n    this.isLoading = true;\n    this.workflowRuns = await this.workflowFeature.getAllWorkflowRunsForRecord(\n      this.args.collection.id,\n      this.args.selectedRecord.id,\n    );\n    this.isLoading = false;\n  }\n\n  get workflowsByStatus() {\n    const workflowsByStatus: WorkflowsByStatus = {\n      notStarted: [],\n      started: [],\n      finished: [],\n      aborted: [],\n    };\n    this.workflows.forEach((workflow) => {\n      if (!workflow.isVisible) return;\n\n      const runs = this.workflowRuns.filter((run) => run.workflowId === workflow.id);\n\n      runs.forEach((run) => {\n        switch (run.runState) {\n          case WorkflowRunStateEnum.Started:\n          case WorkflowRunStateEnum.Loading:\n          case WorkflowRunStateEnum.Pending:\n            workflowsByStatus.started.push({ workflow, currentRun: run });\n            break;\n          case WorkflowRunStateEnum.Finished:\n            workflowsByStatus.finished.push({ workflow, currentRun: run });\n            break;\n          case WorkflowRunStateEnum.Aborted:\n            workflowsByStatus.aborted.push({ workflow, currentRun: run });\n            break;\n          default:\n            break;\n        }\n      });\n      if (!workflowsByStatus.started.some((item) => item.workflow.id === workflow.id)) {\n        workflowsByStatus.notStarted.push(workflow);\n      }\n    });\n\n    this.sortByRunDate(workflowsByStatus[WorkflowRunStateEnum.Aborted]);\n    this.sortByRunDate(workflowsByStatus[WorkflowRunStateEnum.Finished]);\n\n    return workflowsByStatus;\n  }\n\n  private sortByRunDate(workflowsWithRun: WorkflowWithRun[]) {\n    workflowsWithRun.sort(\n      (a, b) =>\n        new Date(b.currentRun.updatedAt).getTime() - new Date(a.currentRun.updatedAt).getTime(),\n    );\n  }\n\n  get icon() {\n    return this.args.collection?.iconOrDefault;\n  }\n\n  @action\n  async triggerWorkflow(workflow: WorkflowModel) {\n    this.workflowState.isLoading = true;\n    try {\n      await this.workflowFeature.startWorkflow(workflow, this.args.selectedRecord);\n      this.hideWorkflowRunsList();\n    } finally {\n      this.workflowState.isLoading = false;\n    }\n  }\n\n  @action\n  async continueWorkflow(workflowToContinue: WorkflowWithRun) {\n    this.workflowState.isLoading = true;\n    try {\n      await this.workflowFeature.startWorkflow(\n        workflowToContinue.workflow,\n        this.args.selectedRecord,\n        workflowToContinue.currentRun,\n      );\n      this.hideWorkflowRunsList();\n    } finally {\n      this.workflowState.isLoading = false;\n    }\n  }\n\n  @action\n  async openClosedRun(workflowWithRun: WorkflowWithRun) {\n    this.workflowState.isLoading = true;\n    try {\n      await this.workflowFeature.openClosedRun(\n        workflowWithRun.workflow,\n        this.args.selectedRecord,\n        workflowWithRun.currentRun,\n      );\n      this.hideWorkflowRunsList();\n    } finally {\n      this.workflowState.isLoading = false;\n    }\n  }\n\n  @action\n  public toggleEditDropdown() {\n    this.shouldDisplayEditDropdown = !this.shouldDisplayEditDropdown;\n  }\n\n  @action\n  private handleHideEditDropdown() {\n    this.shouldDisplayEditDropdown = false;\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type { ReorderParameters } from 'client/features/folder/services/internal-business/reorder-handler';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type PopupPositionerSharedBusinessService from 'client/shared/services/popup-positioner';\nimport type { SortableEvent } from 'sortablejs';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface DropdownEditArgs {\n  buttonId: string;\n  onHideDropdown: () => void;\n  workflows: WorkflowModel[];\n}\n\nexport default class WorkflowDropdownEditComponent extends Component<DropdownEditArgs> {\n  @service private router: RouterService;\n  @service('shared/popup-positioner') private popupPositioner: PopupPositionerSharedBusinessService;\n  @service('feature/workflow') private workflowService: WorkflowFeatureService;\n\n  get sortedWorkflows() {\n    return this.args.workflows.sortBy('position');\n  }\n\n  @action\n  public handleDidInsert(element: HTMLElement) {\n    this.popupPositioner.positionPopupBelowElement(\n      this,\n      element,\n      document.getElementById(this.args.buttonId),\n      {\n        topVariable: '--feature-workflow-dropdown-edit-top',\n        leftVariable: '--feature-workflow-dropdown-edit-left',\n        visibilityVariable: '--feature-workflow-dropdown-edit-visibility',\n      },\n    );\n  }\n\n  @action\n  public redirectToSettings(workflow: WorkflowModel) {\n    this.router.transitionTo(\n      'project.rendering.data.collection.settings.workflows.details',\n      workflow.collection.shareableId,\n      workflow.name,\n    );\n  }\n\n  @action\n  async handleToggleWorkflowVisibility(workflow: WorkflowModel) {\n    await this.workflowService.toggleWorkflowVisibility(workflow);\n  }\n\n  @action\n  async handleReorderWorkflows(_event: SortableEvent, parameters: ReorderParameters) {\n    await this.workflowService.reorderWorkflows(this.args.workflows, parameters);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"dropdown\\\">\\n  <div\\n    class=\\\"c-feature-workflow-dropdown-edit\\\"\\n    {{did-insert this.handleDidInsert}}\\n    {{forest-on-click-outside @onHideDropdown}}\\n  >\\n    <Shared::EditableList\\n      @items={{this.sortedWorkflows}}\\n      @nameProperty=\\\"name\\\"\\n      @visibilityProperty=\\\"isVisible\\\"\\n      @onRedirectToSettings={{this.redirectToSettings}}\\n      @onToggleVisibility={{this.handleToggleWorkflowVisibility}}\\n      @onReorder={{this.handleReorderWorkflows}}\\n      data-test-feature-workflow-dropdown-edit\\n    />\\n  </div>\\n</Shared::PortalContent>\\n', { moduleName: 'client/features/workflow/components/dropdown/edit/template.hbs' });\n","import type WorkflowModel from 'client/data/models/workflow';\nimport type { WorkflowWithRun } from 'client/features/workflow/components/dropdown/component';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\ninterface DropdownRunListArgs {\n  workflowsWithRuns: WorkflowWithRun[] | WorkflowModel[];\n  onClickWorkflow: (workflowToContinue: WorkflowWithRun) => Promise<void>;\n  isWorkflowDisabled: (workflow: WorkflowModel) => boolean;\n  sectionTitle: string;\n}\n\nexport default class WorkflowDropdownRunListComponent extends Component<DropdownRunListArgs> {\n  @action\n  public isWorkflowDisabled(workflowOrWorkflowWithRun: WorkflowModel | WorkflowWithRun): boolean {\n    if ('workflow' in workflowOrWorkflowWithRun) {\n      return this.args.isWorkflowDisabled(workflowOrWorkflowWithRun.workflow);\n    }\n    return this.args.isWorkflowDisabled(workflowOrWorkflowWithRun);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::CollapsibleSection\\n  @title={{@sectionTitle}}\\n  @isCollapsedByDefault={{@isCollapsedByDefault}}\\n  class=\\\"c-feature-workflow-dropdown-run-list\\\"\\n  data-test-feature-workflow-dropdown-run-list\\n  ...attributes\\n>\\n  <div class=\\\"c-feature-workflow-dropdown-run-list__content\\\">\\n    {{#each @workflowsWithRuns as |workflowWithRun|}}\\n      <button\\n        disabled={{compute (fn this.isWorkflowDisabled workflowWithRun)}}\\n        class=\\\"c-feature-workflow-dropdown-run-list__item\\\"\\n        data-test-feature-workflow-dropdown-run-list-workflow-name={{(or\\n          workflowWithRun.workflow.name workflowWithRun.name\\n        )}}\\n        type=\\\"button\\\"\\n        {{on \\'click\\' (fn @onClickWorkflow workflowWithRun)}}\\n      >\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName=\\\"play_circle_filled\\\"\\n          @size=\\\"custom\\\"\\n          class=\\\"c-feature-workflow-dropdown-run-list__item-icon\\\"\\n        />\\n        <span class=\\\"c-feature-workflow-dropdown-run-list__item-text\\\">\\n          {{yield workflowWithRun to=\\'workflow-display-name\\'}}\\n        </span>\\n      </button>\\n    {{/each}}\\n  </div>\\n</Shared::CollapsibleSection>\\n', { moduleName: 'client/features/workflow/components/dropdown/run-list/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.showDropdown}}\\n  <Shared::Button\\n    id={{this.buttonId}}\\n    @type={{if @isEditMode \\'editor\\' \\'secondary\\'}}\\n    @text=\\\"Workflows\\\"\\n    @size={{@buttonSize}}\\n    @onClick={{if @isEditMode this.toggleEditDropdown this.toggleWorkflowRunsList}}\\n    @mustStopPropagation={{false}}\\n    data-test-dropdown-workflows-button\\n  />\\n  {{#if this.shouldDisplayEditDropdown}}\\n    <Feature::Workflow::Dropdown::Edit\\n      @buttonId={{this.buttonId}}\\n      @workflows={{this.workflows}}\\n      @onHideDropdown={{this.handleHideEditDropdown}}\\n    />\\n  {{/if}}\\n{{/if}}\\n\\n{{did-update this.handleSelectedRecordChange @selectedRecord}}\\n\\n{{#if this.isWorkflowRunsListDisplayed}}\\n  <Shared::CollapsibleSidePanel\\n    @onClose={{this.hideWorkflowRunsList}}\\n    class=\\\"c-feature-workflow-dropdown\\\"\\n  >\\n    <:header>\\n      <Shared::CollapsibleSidePanel::Header @icon={{this.icon}}>\\n        <:right>\\n          {{#if @selectedRecord}}\\n            <Feature::ClientRecord::ReferenceField\\n              @collection={{@collection}}\\n              @isLinkDisabled={{true}}\\n              @recordIds={{array @selectedRecord.id}}\\n            />\\n          {{else}}\\n            {{@collection.pluralizedDisplayName}}\\n          {{/if}}\\n          workflows\\n        </:right>\\n      </Shared::CollapsibleSidePanel::Header>\\n    </:header>\\n    <:body>\\n      {{#if this.isLoading}}\\n        <div class=\\\"c-feature-workflow-dropdown__loading\\\">\\n          <Shared::Feedback::BetaLoader />\\n        </div>\\n      {{else}}\\n        <div\\n          class=\\\"c-feature-workflow-dropdown__container\\\"\\n          data-test-workflow-dropdown-workflow-list-container\\n        >\\n          {{#if (gt this.workflowsByStatus.started.length 0)}}\\n            <Feature::Workflow::Dropdown::RunList\\n              @sectionTitle=\\\"To Continue\\\"\\n              @workflowsWithRuns={{this.workflowsByStatus.started}}\\n              @isWorkflowDisabled={{this.isWorkflowDisabled}}\\n              @onClickWorkflow={{this.continueWorkflow}}\\n              data-test-workflows-to-continue\\n            >\\n              <:workflow-display-name as |workflowWithRun|>\\n                {{workflowWithRun.workflow.name}}\\n              </:workflow-display-name>\\n            </Feature::Workflow::Dropdown::RunList>\\n          {{/if}}\\n          {{#if (gt this.workflowsByStatus.notStarted.length 0)}}\\n            <Feature::Workflow::Dropdown::RunList\\n              @sectionTitle=\\\"Not Started\\\"\\n              @workflowsWithRuns={{this.workflowsByStatus.notStarted}}\\n              @isWorkflowDisabled={{this.isWorkflowDisabled}}\\n              @onClickWorkflow={{this.triggerWorkflow}}\\n              data-test-workflows-not-started\\n            >\\n              <:workflow-display-name as |workflow|>\\n                {{workflow.name}}\\n              </:workflow-display-name>\\n            </Feature::Workflow::Dropdown::RunList>\\n          {{/if}}\\n          {{#if (gt this.workflowsByStatus.finished.length 0)}}\\n            <Feature::Workflow::Dropdown::RunList\\n              @sectionTitle=\\\"Completed\\\"\\n              @workflowsWithRuns={{this.workflowsByStatus.finished}}\\n              @isWorkflowDisabled={{this.isWorkflowDisabled}}\\n              @onClickWorkflow={{this.openClosedRun}}\\n              data-test-workflows-completed\\n            >\\n              <:workflow-display-name as |workflowWithRun|>\\n                {{workflowWithRun.workflow.name}}\\n                -\\n                {{moment-format workflowWithRun.currentRun.updatedAt \\'L\\'}}\\n              </:workflow-display-name>\\n            </Feature::Workflow::Dropdown::RunList>\\n          {{/if}}\\n          {{#if (gt this.workflowsByStatus.aborted.length 0)}}\\n            <Feature::Workflow::Dropdown::RunList\\n              @sectionTitle=\\\"Aborted\\\"\\n              @workflowsWithRuns={{this.workflowsByStatus.aborted}}\\n              @isWorkflowDisabled={{this.isWorkflowDisabled}}\\n              @onClickWorkflow={{this.openClosedRun}}\\n              @isCollapsedByDefault={{true}}\\n              data-test-workflows-aborted\\n            >\\n              <:workflow-display-name as |workflowWithRun|>\\n                {{workflowWithRun.workflow.name}}\\n                -\\n                {{moment-format workflowWithRun.currentRun.updatedAt \\'L\\'}}\\n              </:workflow-display-name>\\n            </Feature::Workflow::Dropdown::RunList>\\n          {{/if}}\\n        </div>\\n      {{/if}}\\n    </:body>\\n  </Shared::CollapsibleSidePanel>\\n{{/if}}\\n', { moduleName: 'client/features/workflow/components/dropdown/template.hbs' });\n","import type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type WorkflowFeatureState from 'client/features/workflow/state';\nimport type { WorkflowEscalation } from 'client/features/workflow/types/workflow-step';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LayoutState from 'client/shared/states/layout';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { EndAssignmentReasonEnum } from 'client/features/inbox/services/internal-feature/workflow';\nimport { WorkflowEscalationStateEnum } from 'client/features/workflow/types/workflow';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\ninterface EscalationArgs {\n  workflowStepHistory: WorkflowStepHistory<WorkflowEscalation>;\n}\n\nexport default class WorkflowEscalationComponent extends Component<EscalationArgs> {\n  @service('feature/workflow/state') private readonly workflowState: WorkflowFeatureState;\n  @service('shared/state/layout') private readonly layoutState: LayoutState;\n  @service('feature/workflow/internal-feature/execution')\n  private readonly workflowExecutionInternalFeatureService: WorkflowExecutionInternalFeatureService;\n\n  @service('feature/inbox')\n  private readonly inboxFeature: InboxFeatureService;\n\n  @service declare eventBus: EventBusService;\n\n  @tracked isLoading = false;\n\n  get canDisplaySuccessEscalationMessage() {\n    return (\n      this.args.workflowStepHistory.context.escalationState\n      === WorkflowEscalationStateEnum.Escalated\n    );\n  }\n\n  get canDisplayErrorEscalationMessage() {\n    return (\n      this.args.workflowStepHistory.context.escalationState === WorkflowEscalationStateEnum.Error\n    );\n  }\n\n  get haveClickedEscalate() {\n    return Boolean(this.args.workflowStepHistory.context.escalationState);\n  }\n\n  get step() {\n    return this.args.workflowStepHistory.step;\n  }\n\n  get inbox() {\n    return this.layoutState.inboxes.findBy('id', this.step.inboxId);\n  }\n\n  @action\n  public closeWorkflow() {\n    this.workflowExecutionInternalFeatureService.closeWorkflow();\n  }\n\n  @action\n  public async handleOnClick() {\n    this.isLoading = true;\n\n    const success = await this.inboxFeature.createInboxWorkflowAssignment(this.step.inboxId);\n    if (success) {\n      this.args.workflowStepHistory.context.escalationState = WorkflowEscalationStateEnum.Escalated;\n      // When triggering an escalation, we also want to close the current inbox assignment if any\n      this.eventBus.trigger(EventBusEventsEnum.CloseWorkflowInboxAssignment, {\n        workflowRunId: this.workflowState.workflowRunId,\n        reason: EndAssignmentReasonEnum.Escalate,\n      });\n    } else {\n      this.args.workflowStepHistory.context.escalationState = WorkflowEscalationStateEnum.Error;\n    }\n\n    // We need to save the step in order to retrieve the result the next time the workflow is reopened\n    await this.workflowExecutionInternalFeatureService.saveWorkflowRun({ clearRunId: false });\n\n    this.isLoading = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<span data-test-feature-workflow-escalation-title>\\n  {{this.step.title}}\\n</span>\\n<p\\n  class=\\\"c-feature-workflow-escalation__description\\\"\\n  data-test-feature-workflow-escalation-description\\n>\\n  You\\'re about to escalate this workflow to the\\n  <span class=\\\"c-feature-workflow-escalation__inbox-name\\\">{{this.inbox.name}}</span>.\\n</p>\\n\\n<Feature::Workflow::Button::Escalate\\n  @disabled={{this.haveClickedEscalate}}\\n  @onClick={{this.handleOnClick}}\\n  @isLoading={{this.isLoading}}\\n/>\\n\\n{{#if this.haveClickedEscalate}}\\n  {{#if this.canDisplaySuccessEscalationMessage}}\\n    <Shared::TextWithState @state=\\\"success\\\" data-test-feature-workflow-escalation-success-message>\\n      This workflow has been successfully escalated.<br />\\n      It can be picked back up at any time from the\\n      <span class=\\\"c-feature-workflow-escalation__inbox-name\\\">{{this.inbox.name}}</span>.<br />\\n      {{#unless @workflowStepHistory.done}}\\n        You may now close this workflow.<br />\\n      {{/unless}}\\n    </Shared::TextWithState>\\n  {{else if this.canDisplayErrorEscalationMessage}}\\n    <Shared::TextWithState @state=\\\"error\\\" data-test-feature-workflow-escalation-error-message>\\n      I couldn\\'t escalate this record into the specified inbox, maybe because it has been deleted.<br\\n      />\\n      Please check with an Admin, and try again.<br />\\n    </Shared::TextWithState>\\n  {{/if}}\\n  {{#unless @workflowStepHistory.done}}\\n    <div class=\\\"c-feature-workflow-escalation__button\\\">\\n      {{#if this.canDisplayErrorEscalationMessage}}\\n        <Shared::Button\\n          @size=\\\"small\\\"\\n          @isActive={{false}}\\n          @onClick={{this.handleOnClick}}\\n          @text=\\\"Try again\\\"\\n          @type=\\\"ghost-primary\\\"\\n          data-test-feature-workflow-escalation-try-again-button\\n        />\\n      {{/if}}\\n      <Shared::Button\\n        @size=\\\"small\\\"\\n        @isActive={{false}}\\n        @onClick={{this.closeWorkflow}}\\n        @text=\\\"Close\\\"\\n        @type=\\\"ghost-primary\\\"\\n        data-test-feature-workflow-escalation-close-button\\n      />\\n    </div>\\n  {{/unless}}\\n{{/if}}\\n', { moduleName: 'client/features/workflow/components/escalation/template.hbs' });\n","import type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  workflowStepHistory: WorkflowStepHistory;\n  onCancel: () => void;\n}\n\nexport default class WorkflowReviseConfirmationComponent extends Component<Args> {\n  @service('feature/workflow/internal-feature/execution')\n  private readonly workflowExecutionService: WorkflowExecutionInternalFeatureService;\n\n  public get shouldDisplayEscalationText() {\n    return this.workflowExecutionService.shouldCancelInboxAssignment(this.args.workflowStepHistory);\n  }\n\n  @action\n  async reviseStep() {\n    this.args.onCancel();\n    await this.workflowExecutionService.reviseStep(this.args.workflowStepHistory);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Feedback::Notification::NotificationInApp\\n  @state=\\\"warning\\\"\\n  @canHide={{false}}\\n  {{forest-on-click-outside @onCancel}}\\n>\\n  <div class=\\\"c-feature-workflow-revise-confirmation__content\\\">\\n    <p>\\n      Warning: revising this step will cancel its execution along with the following completed\\n      steps,\\n      {{if this.shouldDisplayEscalationText \\'undo any relevant inbox escalation,\\'}}\\n      but actions performed won’t be undone.<br />\\n      Are you sure you want to proceed?\\n    </p>\\n    <div>\\n      <Feature::Workflow::Button::Yes\\n        @onClick={{this.reviseStep}}\\n        data-test-revise-confirmation-yes\\n      />\\n      <Feature::Workflow::Button::No @onClick={{@onCancel}} data-test-revise-confirmation-no />\\n    </div>\\n  </div>\\n</Shared::Feedback::Notification::NotificationInApp>\\n\\n', { moduleName: 'client/features/workflow/components/revise-confirmation/template.hbs' });\n","import Component from '@glimmer/component';\n\ninterface SharedNameInputArgs {\n  name: string;\n  nameTaken: boolean;\n}\n\n// eslint-disable-next-line ember/no-empty-glimmer-component-classes\nexport default class WorkflowSharedNameInputComponent extends Component<SharedNameInputArgs> {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel\\n  @label=\\\"Name\\\"\\n  @position=\\\"top\\\"\\n  @required={{true}}\\n  class=\\\"c-feature-workflow-shared-name-input\\\"\\n  data-test-feature-workflow-shared-name-input\\n  ...attributes\\n>\\n  <Shared::BetaInput\\n    @value={{@name}}\\n    @onChange={{@onChange}}\\n    data-test-feature-workflow-creation-modal-name-input\\n  />\\n</Shared::BetaLabel>\\n{{#if @nameTaken}}\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"warning\\\"\\n    @canHide={{false}}\\n    @messageTitle=\\\"Already exists\\\"\\n    data-test-feature-workflow-creation-modal-name-warning-notification\\n  >\\n    A workflow with this name already exists on the collection.\\n  </Shared::Feedback::Notification::NotificationInApp>\\n{{/if}}\\n', { moduleName: 'client/features/workflow/components/shared/name-input/template.hbs' });\n","import type CollectionModel from 'client/data/models/collection';\nimport type SegmentModel from 'client/data/models/segment';\n\nimport Component from '@glimmer/component';\n\ninterface SharedSegmentsSelectorArgs {\n  collection: CollectionModel;\n  onSegmentChange: (newValue: SegmentModel[]) => void;\n  segments: SegmentModel[];\n}\n\nexport default class WorkflowSharedSegmentsSelectorComponent extends Component<SharedSegmentsSelectorArgs> {\n  get segmentsOptions() {\n    return this.args.collection?.segments || [];\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.segmentsOptions.length}}\\n  <Shared::BetaLabel\\n    @label=\\\"Only usable in the following segments\\\"\\n    @position=\\\"top\\\"\\n    data-test-feature-workflow-shared-segments-selector\\n    ...attributes\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.segmentsOptions}}\\n      @namePath=\\\"name\\\"\\n      @onChange={{@onSegmentChange}}\\n      @multipleValues={{true}}\\n      @withSearchInput={{true}}\\n      @placeholder=\\\"Type to search for segments…\\\"\\n      @value={{one-way @segments}}\\n    />\\n  </Shared::BetaLabel>\\n{{/if}}\\n', { moduleName: 'client/features/workflow/components/shared/segments-selector/template.hbs' });\n","import type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type WorkflowFeatureState from 'client/features/workflow/state';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class WorkflowStatusComponent extends Component {\n  @service('feature/workflow/state')\n  private readonly workflowState: WorkflowFeatureState;\n\n  @service('feature/workflow/internal-feature/execution')\n  private readonly workflowExecutionService: WorkflowExecutionInternalFeatureService;\n\n  get saveStatus() {\n    return this.workflowExecutionService.saveStatus;\n  }\n\n  get workflowName() {\n    return this.workflowState.currentWorkflow?.name;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-workflow-status\\\">\\n  {{#if (eq this.saveStatus \\'saved\\')}}\\n    <Shared::Form::CheckInput\\n      @value={{one-way true}}\\n      @isChecked={{true}}\\n      @onChange={{(do-nothing-function)}}\\n      class=\\\"c-feature-workflow-status__check\\\"\\n    />\\n  {{else if (eq this.saveStatus \\'loading\\')}}\\n    <Shared::Spinner />\\n  {{else}}\\n    <Shared::DataDisplay::BetaIcon @iconName=\\\"play_circle_outlined\\\" />\\n  {{/if}}\\n  {{this.workflowName}}\\n</div>\\n', { moduleName: 'client/features/workflow/components/status/template.hbs' });\n","import type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\n\nimport Component from '@glimmer/component';\n\nimport {\n  type SubWorkflowStep,\n  SubWorkflowStepTypeEnum,\n} from 'client/features/workflow/types/workflow-step';\n\ninterface Args {\n  workflowStepHistory: WorkflowStepHistory<SubWorkflowStep>;\n}\n\nexport default class WorkflowSubWorkflowComponent extends Component<Args> {\n  get step(): SubWorkflowStep {\n    return this.args.workflowStepHistory.step;\n  }\n\n  get isStartSubWorkflow(): boolean {\n    return this.step.type === SubWorkflowStepTypeEnum.Start;\n  }\n\n  get isCloseSubWorkflow(): boolean {\n    return this.step.type === SubWorkflowStepTypeEnum.Close;\n  }\n\n  get staticLabel(): string {\n    return this.isStartSubWorkflow ? 'Stepping into' : 'Stepping out of';\n  }\n\n  get shouldShowCancelledStyle(): boolean {\n    return this.args.workflowStepHistory.cancelled;\n  }\n\n  get ariaLabel(): string {\n    return `${this.staticLabel} ${this.step.title ?? ''}`.trim();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers\\n    \\'c-feature-workflow-embedded-workflow\\'\\n    start=this.isStartSubWorkflow\\n    end=this.isCloseSubWorkflow\\n    cancelled=this.shouldShowCancelledStyle\\n  }}\\n  role=\\\"listitem\\\"\\n  aria-label={{this.ariaLabel}}\\n  data-test-embedded-workflow\\n>\\n  <div class=\\\"c-feature-workflow-embedded-workflow__content\\\">\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName=\\\"double_arrow\\\"\\n      @size=\\\"tiny\\\"\\n      class={{get-classes-with-modifiers\\n        \\'c-feature-workflow-embedded-workflow__chevron\\'\\n        flipped=this.isCloseSubWorkflow\\n      }}\\n      aria-hidden=\\\"true\\\"\\n      data-test-embedded-workflow-chevron\\n    />\\n    <span class=\\\"c-feature-workflow-embedded-workflow__label\\\" data-test-embedded-workflow-label>\\n      {{this.staticLabel}}\\n    </span>\\n    <span\\n      class=\\\"c-feature-workflow-embedded-workflow__workflow-name\\\"\\n      data-test-embedded-workflow-name\\n    >\\n      {{this.step.title}}\\n    </span>\\n  </div>\\n</div>\\n', { moduleName: 'client/features/workflow/components/sub-workflow/template.hbs' });\n","import type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type { WorkflowTransition } from 'client/features/workflow/services/standalone-package/types/transition';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface Args {\n  transition: WorkflowTransition;\n  isDisabled: boolean;\n  isYesButton?: boolean;\n  isNoButton?: boolean;\n  shouldDisplayIcon?: boolean;\n}\n\nexport default class WorkflowTransitionButtonComponent extends Component<Args> {\n  @service('feature/workflow/internal-feature/execution')\n  private readonly workflowExecutionService: WorkflowExecutionInternalFeatureService;\n\n  get buttonText() {\n    return this.args.transition.answer || this.args.transition.buttonText || 'Done';\n  }\n\n  get componentName() {\n    const prefix = 'feature/workflow/button';\n    if (this.args.isYesButton) {\n      return `${prefix}/yes`;\n    }\n    if (this.args.isNoButton) {\n      return `${prefix}/no`;\n    }\n    return `${prefix}/done`;\n  }\n\n  @action\n  goToNextStep(answer: string) {\n    void this.workflowExecutionService.goToNextStep(answer);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @transition.buttonColor}}\\n  <Shared::ActivatableButton\\n    @color={{@transition.buttonColor}}\\n    @text={{this.buttonText}}\\n    @onClick={{fn this.goToNextStep @transition.answer}}\\n    @isActive={{@isActive}}\\n    data-test-transition-button-color={{this.buttonText}}\\n    ...attributes\\n  />\\n{{else}}\\n  {{! TODO: delete when v2 is released }}\\n  {{#let (component this.componentName) as |TransitionButtonComponent|}}\\n    <TransitionButtonComponent\\n      @text={{this.buttonText}}\\n      @onClick={{fn this.goToNextStep @transition.answer}}\\n      @isActive={{@isActive}}\\n      @shouldDisplayIcon={{@shouldDisplayIcon}}\\n      data-test-transition-button={{this.buttonText}}\\n      ...attributes\\n    />\\n  {{/let}}\\n{{/if}}\\n', { moduleName: 'client/features/workflow/components/transition-button/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type SegmentModel from 'client/data/models/segment';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type { ParserResult } from 'client/features/workflow/components/bpmn-uploader/component';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport FileTypeUtils from 'client/utils/file-type';\n\ninterface UpdateArgs {\n  workflow: WorkflowModel;\n}\n\nexport default class WorkflowUpdateComponent extends Component<UpdateArgs> {\n  @service('feature/workflow')\n  private workflowFeatureService: WorkflowFeatureService;\n\n  @service private router: RouterService;\n\n  @tracked file: string;\n  @tracked error: string;\n  @tracked isSuccess: boolean;\n  @tracked isLoading: boolean;\n  @tracked parserResult: ParserResult;\n  @tracked filename: string;\n  @tracked date: string;\n  @tracked versionLoading = false;\n\n  @action\n  async updateVersion() {\n    this.filename = '';\n    this.date = null;\n    this.versionLoading = true;\n\n    const { filename, date } = await this.workflowFeatureService.getBpmnFilenameAndDate(\n      this.args.workflow,\n    );\n\n    this.versionLoading = false;\n    this.filename = filename;\n    this.date = date;\n  }\n\n  get localeDate() {\n    return this.date\n      ? new Date(this.date).toLocaleDateString([], { hour: '2-digit', minute: '2-digit' })\n      : '';\n  }\n\n  @action\n  async handleSave() {\n    this.error = '';\n    this.isSuccess = false;\n    this.isLoading = true;\n    if (this.args.workflow.changedAttributes().name) {\n      const url = this.router.currentURL;\n      window.history.replaceState(\n        null,\n        null,\n        `${url.slice(0, url.lastIndexOf('/'))}/${encodeURIComponent(this.args.workflow.name)}`,\n      );\n    }\n    try {\n      await this.workflowFeatureService.updateWorkflow(\n        this.args.workflow,\n        this.file && FileTypeUtils.createFileFromDataUri(this.file),\n      );\n      this.isSuccess = true;\n      if (this.file) {\n        await this.updateVersion();\n      }\n      this.file = null;\n    } catch (e) {\n      const error = e as Error;\n      this.error = error.message;\n      this.isSuccess = false;\n    }\n    this.isLoading = false;\n  }\n\n  @action\n  handleSegmentChange(value: SegmentModel[]) {\n    this.args.workflow.segments = value;\n  }\n\n  @action\n  handleFileChange(newFile: string) {\n    this.reset({ clearFile: false });\n    this.file = newFile;\n    this.parserResult = null;\n  }\n\n  get isUploadButtonEnabled() {\n    return this.file && this.parserResult && !this.parserResult.error;\n  }\n\n  @action\n  handleParserResult(parserResult: ParserResult) {\n    this.parserResult = parserResult;\n  }\n\n  get showStatus() {\n    return this.isSuccess || this.isLoading || this.error;\n  }\n\n  @action\n  async handleDelete() {\n    await this.workflowFeatureService.deleteWorkflow(this.args.workflow);\n    await this.router.transitionTo(this.router.currentRoute.parent.name);\n  }\n\n  @action\n  reset({ clearFile } = { clearFile: true }) {\n    if (clearFile) this.file = null;\n    this.isSuccess = false;\n    this.isLoading = false;\n    this.error = '';\n  }\n\n  get nameTaken() {\n    return Boolean(this.workflowFeatureService.isNameTaken(this.args.workflow));\n  }\n\n  get isSaveDisabled() {\n    return Boolean(\n      !this.workflowFeatureService.isWorkflowValid(this.args.workflow)\n        || !(this.args.workflow.hasDirtyAttributes || this.args.workflow.hasDirtyRelationships),\n    );\n  }\n\n  @action\n  handleOpenEditor() {\n    void this.router.transitionTo(\n      'project.rendering.data.collection.workflow-editor',\n      this.args.workflow.collection.shareableId,\n      this.args.workflow.name,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-update this.reset @workflow}}\\n{{did-update this.updateVersion @workflow}}\\n{{did-insert this.updateVersion}}\\n<BetaSettingsCard\\n  @entity={{@workflow}}\\n  @entityName={{@workflow.name}}\\n  @save={{this.handleSave}}\\n  @isSaveDisabled={{this.isSaveDisabled}}\\n  @withoutCallback={{true}}\\n  class=\\\"c-feature-workflow-update\\\"\\n  data-test-feature-workflow-update\\n  ...attributes\\n>\\n  <BetaSettingsCard::Section @title=\\\"Basic settings\\\">\\n    <div class=\\\"c-feature-workflow-update__basic-settings\\\">\\n      <Feature::Workflow::Shared::NameInput\\n        @name={{one-way @workflow.name}}\\n        @nameTaken={{this.nameTaken}}\\n        @onChange={{fn (mut @workflow.name)}}\\n      />\\n      <Feature::Workflow::Shared::SegmentsSelector\\n        @collection={{@workflow.collection}}\\n        @onSegmentChange={{this.handleSegmentChange}}\\n        @segments={{@workflow.segments}}\\n        data-test-feature-workflow-creation-modal-select-segment\\n      />\\n    </div>\\n  </BetaSettingsCard::Section>\\n\\n  <BetaSettingsCard::Section @title=\\\"Process\\\">\\n    <div class=\\\"c-feature-workflow-update__file\\\">\\n      <img\\n        src=\\\"/img/worfklow-detail.svg\\\"\\n        class=\\\"c-feature-workflow-update__file-image\\\"\\n        alt=\\\"describing workflow\\\"\\n      />\\n      <div class=\\\"c-feature-workflow-update__file-meta\\\">\\n        <p\\n          class=\\\"c-feature-workflow-update__file-workflow-name\\\"\\n          data-test-feature-workflow-update-file-workflow-name\\n        >\\n          {{@workflow.name}}\\n        </p>\\n        <p\\n          class=\\\"c-feature-workflow-update__file-version\\\"\\n          data-test-feature-workflow-update-file-version\\n        >\\n          Version date:\\n          {{this.localeDate}}\\n        </p>\\n      </div>\\n      <Shared::Button\\n        @type=\\\"ghost\\\"\\n        @text=\\\"Open editor\\\"\\n        @iconName=\\\"arrow_forward\\\"\\n        @isIconAfterText={{true}}\\n        @onClick={{this.handleOpenEditor}}\\n        class=\\\"c-feature-workflow-update__file-button\\\"\\n        data-test-feature-workflow-update-open-editor-button\\n      />\\n    </div>\\n\\n  </BetaSettingsCard::Section>\\n\\n  <BetaSettingsCard::Section>\\n    <Feature::CriticalActionConfirmation::Button\\n      @buttonText=\\\"Delete\\\"\\n      @modalTitle=\\\"Confirm workflow deletion\\\"\\n      @entityName={{@workflow.name}}\\n      @warningMessage=\\\"You are about to delete the workflow “{{@workflow.name}}”.\\\"\\n      @cancelText=\\\"Cancel\\\"\\n      @onConfirm={{this.handleDelete}}\\n      data-test-delete-workflow\\n    />\\n  </BetaSettingsCard::Section>\\n</BetaSettingsCard>\\n', { moduleName: 'client/features/workflow/components/update/template.hbs' });\n","import type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport {\n  type MixedWorkflowStep,\n  SubWorkflowStepTypeEnum,\n} from 'client/features/workflow/types/workflow-step';\n\nexport default class WorkflowVisualizationComponent extends Component {\n  @service('feature/workflow/internal-feature/execution')\n  private readonly workflowExecutionService: WorkflowExecutionInternalFeatureService;\n\n  private scrollObserver?: MutationObserver;\n  private scrollListener?: () => void;\n\n  get workflowSteps() {\n    return this.workflowExecutionService.workflowStepCards;\n  }\n\n  isSubWorkflowStep = (step: MixedWorkflowStep): boolean => {\n    return (\n      step.type === SubWorkflowStepTypeEnum.Start || step.type === SubWorkflowStepTypeEnum.Close\n    );\n  };\n\n  @action\n  setupScrollObserver(element: HTMLElement) {\n    const stepsContainer = element.querySelector('.js-workflow-steps');\n    if (!stepsContainer) return;\n\n    let previousStepCount = stepsContainer.children.length;\n    // Track scroll position BEFORE DOM mutations happen, so we know\n    // if the user was at the bottom when new content appears.\n    let isUserAtBottom = true;\n\n    this.scrollListener = () => {\n      const distanceFromBottom = element.scrollHeight - element.scrollTop - element.clientHeight;\n      isUserAtBottom = distanceFromBottom < 50;\n    };\n    element.addEventListener('scroll', this.scrollListener);\n\n    // We observe childList + subtree + characterData to catch both new steps\n    // and content changes within existing steps (e.g. error messages, AI responses).\n    // The callback then decides whether to auto-scroll based on two criteria:\n    // - New step added: always scroll (so the user sees the new step)\n    // - Content changed in existing step: only scroll if user was already at the bottom\n    //   (avoids jumping away when the user expands a previous step to read it)\n    this.scrollObserver = new MutationObserver(() => {\n      const currentStepCount = stepsContainer.children.length;\n      const hasNewStep = currentStepCount > previousStepCount;\n      previousStepCount = currentStepCount;\n\n      if (hasNewStep || isUserAtBottom) {\n        element.scrollTop = element.scrollHeight;\n      }\n    });\n\n    this.scrollObserver.observe(stepsContainer, {\n      childList: true,\n      subtree: true,\n      characterData: true,\n    });\n\n    element.scrollTop = element.scrollHeight;\n  }\n\n  @action\n  teardownScrollObserver(element: HTMLElement) {\n    this.scrollObserver?.disconnect();\n    if (this.scrollListener) {\n      element.removeEventListener('scroll', this.scrollListener);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workflow-visualization\\\"\\n  {{did-insert this.setupScrollObserver}}\\n  {{will-destroy this.teardownScrollObserver}}\\n>\\n  <div class=\\\"c-feature-workflow-visualization__steps js-workflow-steps\\\" data-test-workflow-steps>\\n    {{#each this.workflowSteps as |workflowStep|}}\\n      <div class=\\\"c-feature-workflow-visualization__step\\\">\\n        {{#if (this.isSubWorkflowStep workflowStep.step)}}\\n          <Feature::Workflow::SubWorkflow @workflowStepHistory={{workflowStep}} />\\n        {{else}}\\n          <Feature::Workflow::Card @workflowStepHistory={{workflowStep}} />\\n        {{/if}}\\n      </div>\\n    {{/each}}\\n  </div>\\n</div>\\n', { moduleName: 'client/features/workflow/components/visualization/template.hbs' });\n","import type ModalFeatureService from 'client/features/modal/services/feature';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type WorkflowFeatureState from 'client/features/workflow/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class WorkflowWorkflowContainerComponent extends Component {\n  @service('feature/workflow/state')\n  private readonly workflowState: WorkflowFeatureState;\n\n  @service('feature/modal')\n  private readonly modalFeature: ModalFeatureService;\n\n  @service('feature/workflow/internal-feature/execution')\n  private readonly workflowExecutionService: WorkflowExecutionInternalFeatureService;\n\n  @service('feature/workflow')\n  private readonly workflowFeature: WorkflowFeatureService;\n\n  @action\n  closeWorkflow() {\n    if (this.workflowState.isFinishedWorkflow) {\n      return this.workflowExecutionService.closeWorkflow();\n    }\n\n    this.modalFeature.open('feature/workflow/close-confirmation', {\n      modalType: 'modal',\n      hideCloseButton: true,\n      data: {\n        abort: async () => {\n          await this.workflowExecutionService.abortWorkflow();\n          this.modalFeature.close();\n        },\n        saveAndClose: () => {\n          this.modalFeature.close();\n          this.workflowExecutionService.closeWorkflow();\n        },\n      },\n    });\n  }\n\n  get isLoading() {\n    return this.workflowState.isLoading;\n  }\n\n  get selectedRecord() {\n    return this.workflowFeature.getRootRecord();\n  }\n\n  get collection() {\n    return this.selectedRecord?.collection;\n  }\n\n  get icon() {\n    return this.collection?.get('iconOrDefault');\n  }\n\n  @action\n  handleCollapseSidePanel(value: boolean) {\n    this.workflowState.isSidePanelCollapsed = value;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-test-feature-workflow-container ...attributes>\\n  {{#if this.workflowState.displaySidePanel}}\\n    <Shared::CollapsibleSidePanel\\n      @onClose={{this.closeWorkflow}}\\n      @onCollapse={{this.handleCollapseSidePanel}}\\n    >\\n      <:header>\\n        <Shared::CollapsibleSidePanel::Header @icon={{this.icon}}>\\n          <:left>\\n            <Feature::ClientRecord::ReferenceField\\n              @collection={{this.collection}}\\n              @isLinkDisabled={{true}}\\n              @recordIds={{array this.selectedRecord.id}}\\n            />\\n          </:left>\\n          <:right>\\n            <Feature::Workflow::Status />\\n          </:right>\\n        </Shared::CollapsibleSidePanel::Header>\\n      </:header>\\n      <:body>\\n        {{#if this.isLoading}}\\n          <div class=\\\"c-feature-workflow-workflow-container__loading\\\">\\n            <Shared::Feedback::BetaLoader />\\n          </div>\\n        {{else}}\\n          <Feature::Workflow::Visualization />\\n        {{/if}}\\n      </:body>\\n    </Shared::CollapsibleSidePanel>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workflow/components/workflow-container/template.hbs' });\n","import type WorkflowModel from 'client/data/models/workflow';\n\nimport { getFirstErrorDetail } from 'client/utils/ember-error-util';\nimport { ManagedError, WrappedError } from 'client/utils/errors';\n\nexport class FailedToBeSavedWorkflowError extends Error {\n  constructor(cause: Error) {\n    super(`Workflow failed to be saved. ${getFirstErrorDetail(cause) || cause.message}`);\n    this.name = 'FailedToBeSavedWorkflowError';\n  }\n}\n\nexport class WorkflowRunNotFoundError extends Error {\n  constructor() {\n    super('Your workflow has been stopped');\n    this.name = 'WorkflowRunNotFoundError';\n  }\n}\n\nexport class WorkflowStepNotFoundError extends Error {\n  constructor(message: string) {\n    super(message);\n    this.name = 'WorkflowStepNotFoundError';\n  }\n}\n\nexport class ProcessFileFailedToBeSavedWorkflowError extends WrappedError {\n  public workflow: WorkflowModel;\n\n  constructor(workflow: WorkflowModel, cause: Error) {\n    super(\n      cause,\n      `Workflow process file failed to be saved. ${getFirstErrorDetail(cause) || cause.message}`,\n    );\n    this.name = 'ProcessFileFailedToBeSavedWorkflowError';\n    this.workflow = workflow;\n  }\n}\n\nexport class InvalidForSaveWorkflowError extends Error {\n  constructor(details: string) {\n    super(`Invalid workflow cannot be saved. Missing ${details}`);\n    this.name = 'InvalidForSaveWorkflowError';\n  }\n}\n\nexport class UnknownWorkflowError extends WrappedError {\n  constructor(cause: Error) {\n    super(cause, cause?.message);\n    this.name = 'UnknownWorkflowError';\n  }\n}\n\nexport class FailedToGetRelatedRecordWorkflowError extends ManagedError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'FailedToGetRelatedRecordWorkflowError';\n  }\n}\n\nexport class WorkflowRecordConversionError extends ManagedError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'WorkflowRecordConversionError';\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type CollectionModel from 'client/data/models/collection';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type WorkflowRunModel from 'client/data/models/workflow-run';\nimport type { ReorderParameters } from 'client/features/folder/services/internal-business/reorder-handler';\nimport type ModalFeatureService from 'client/features/modal/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type SegmentFeatureService from 'client/features/segment/services/feature';\nimport type WorkflowBpmnParserInternalBusinessService from 'client/features/workflow/services/internal-business/bpmn-parser';\nimport type WorkflowManagerInternalBusinessService from 'client/features/workflow/services/internal-business/manager';\nimport type { WorkflowCreationAttributes } from 'client/features/workflow/services/internal-business/manager';\nimport type WorkflowStoreInternalBusinessService from 'client/features/workflow/services/internal-business/store';\nimport type WorkflowUtilsInternalBusinessService from 'client/features/workflow/services/internal-business/utils';\nimport type WorkflowExecutionInternalFeatureService from 'client/features/workflow/services/internal-feature/execution';\nimport type WorkflowFeatureState from 'client/features/workflow/state';\nimport type { WorkflowEscalation } from 'client/features/workflow/types/workflow-step';\nimport type WorkflowVisualizerFeatureService from 'client/features/workflow-visualizer/services/feature';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type { LayoutEntityFetchParams } from 'client/shared/services/layout';\nimport type LayoutSharedBusinessService from 'client/shared/services/layout';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { AbilitiesService } from 'ember-can';\n\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport {\n  WorkflowEngineEnum,\n  WorkflowRunStateEnum,\n} from 'client/features/workflow/services/standalone-package/types/workflow-run';\nimport { WorkflowEscalationStateEnum } from 'client/features/workflow/types/workflow';\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\n\nexport enum SaveStatusEnum {\n  NotSaved = 'not saved',\n  Saved = 'saved',\n  Loading = 'loading',\n}\n\nexport default class WorkflowFeatureService extends Service {\n  @service('feature/workflow/state')\n  private readonly workflowState: WorkflowFeatureState;\n\n  @service('feature/workflow/internal-business/manager')\n  private readonly workflowManager: WorkflowManagerInternalBusinessService;\n\n  @service('feature/workflow/internal-business/store')\n  private readonly workflowStore: WorkflowStoreInternalBusinessService;\n\n  @service('feature/workflow/internal-feature/execution')\n  private readonly workflowExecutionFeature: WorkflowExecutionInternalFeatureService;\n\n  @service('feature/workflow/internal-business/bpmn-parser')\n  private readonly bpmnParser: WorkflowBpmnParserInternalBusinessService;\n\n  @service('feature/notification')\n  private readonly businessNotification: NotificationFeatureService;\n\n  @service('feature/modal')\n  private readonly modalFeatureService: ModalFeatureService;\n\n  @service('feature/workflow/internal-business/utils')\n  private readonly utils: WorkflowUtilsInternalBusinessService;\n\n  @service('feature/segment')\n  private readonly segmentFeature: SegmentFeatureService;\n\n  @service private readonly tracker: TrackerService;\n  @service('server-fetch') private readonly serverFetch: ServerFetchService;\n  @service('router') private readonly router: RouterService;\n\n  @service('shared/layout')\n  private readonly layoutBusinessService: LayoutSharedBusinessService;\n\n  @service private readonly errorHandler: ErrorHandlerService;\n  @service private readonly segmentTracker: SegmentTrackerService;\n  @service private readonly lianaSession: LianaSessionService;\n\n  @service('feature/workflow-visualizer')\n  private readonly workflowVisualizerFeature: WorkflowVisualizerFeatureService;\n\n  @service('abilities')\n  private readonly abilities: AbilitiesService;\n\n  get hasAccessToFeature() {\n    return Boolean(this.abilities.can('access to workflow', undefined, {}));\n  }\n\n  public get isWorkflowActive() {\n    return this.workflowState.displaySidePanel;\n  }\n\n  public isWorkflowValid(workflow: WorkflowModel) {\n    return this.workflowManager.isWorkflowValid(workflow);\n  }\n\n  public isNameTaken(workflow: { name: string; collection: CollectionModel }) {\n    return this.workflowManager.isNameTaken(workflow);\n  }\n\n  public getLastEscalationInboxId(\n    {\n      skipLastStep,\n      includeRevisedOrCanceled,\n    }: {\n      skipLastStep?: boolean;\n      includeRevisedOrCanceled?: boolean;\n    } = { includeRevisedOrCanceled: false, skipLastStep: false },\n  ): string | null {\n    let lastEscalatedInboxId: string | null = null;\n\n    // Loop through the workflow run history from the state\n    this.workflowState.history.forEach((stepHistory) => {\n      // Ignore revised steps\n      if (!includeRevisedOrCanceled && (stepHistory.revised || stepHistory.cancelled)) {\n        return;\n      }\n      // do not consider the last step if we just are escalating\n      if (skipLastStep && stepHistory === this.utils.lastStepHistory) {\n        return;\n      }\n\n      // Check if this step has been escalated\n      if (stepHistory.context?.escalationState === WorkflowEscalationStateEnum.Escalated) {\n        if (stepHistory.step.type === 'escalation') {\n          lastEscalatedInboxId = (stepHistory.step as WorkflowEscalation).inboxId;\n        }\n      }\n    });\n\n    return lastEscalatedInboxId;\n  }\n\n  public async getEnabledWorkflowForRecord(record: ClientRecordModel) {\n    if (!record) return [];\n\n    const collection = getCollectionFromRecord(record);\n    const workflows = collection?.workflows;\n\n    return (\n      await Promise.all(\n        workflows?.map(async (workflow) => {\n          if (workflow.segments?.length) {\n            for (const segment of workflow.segments.toArray()) {\n              // a whitelist exists, we check if the current segment is inside\n\n              if (await this.segmentFeature.isSegmentMatchingRecord(record, segment)) {\n                return workflow;\n              }\n            }\n\n            return null;\n          }\n          return workflow;\n        }) || [],\n      )\n    ).filter(Boolean);\n  }\n\n  handleOpenCreationModal(collection?: CollectionModel) {\n    this.modalFeatureService.open('feature/customization-center/creation-modal', {\n      data: {\n        collection,\n        withIcon: false,\n        onCancel: () => this.modalFeatureService.close(),\n        namePlaceholder: 'Workflow name',\n        title: 'New workflow',\n        isCollectionItem: true,\n        onCreate: async (params: { name: string; collection: CollectionModel; icon?: string }) => {\n          await this.createWorkflow(params);\n        },\n      },\n    });\n  }\n\n  public async fetchWorkflows(options: LayoutEntityFetchParams) {\n    if (!this.hasAccessToFeature) return [];\n    return this.workflowManager.fetchWorkflows(options);\n  }\n\n  async deleteWorkflow(workflow: WorkflowModel) {\n    try {\n      await this.workflowManager.deleteWorkflow(workflow);\n      this.businessNotification.createToastr(\n        ToastrTypeEnum.Success,\n        `Workflow \"${workflow.name}\" deleted`,\n      );\n      await this.router.refresh(`project.rendering.data.collection.settings`);\n    } catch (e) {\n      this.errorHandler.handleError(e as Error, 'Workflow deletion failed');\n    }\n  }\n\n  public async createWorkflow(params: WorkflowCreationAttributes) {\n    try {\n      this.workflowState.upsertError = null;\n      const { currentProject } = this.lianaSession;\n      const workflow = await this.workflowManager.createWorkflow(params);\n\n      this.modalFeatureService.close();\n      this.businessNotification.createToastr(\n        ToastrTypeEnum.Success,\n        `\"${workflow.name}\" workflow successfully created!`,\n      );\n      this.segmentTracker.trackWorkflowCreated({\n        projectId: currentProject.id,\n        projectName: currentProject.name,\n        workflowId: workflow.id,\n        workflowName: workflow.name,\n      });\n      await this.router.transitionTo(\n        `project.rendering.data.collection.workflow-editor`,\n        workflow.collection.name,\n        encodeURIComponent(workflow.name),\n      );\n      return workflow;\n    } catch (error) {\n      this.errorHandler.handleError(error as Error, 'Workflow creation failed');\n      this.workflowState.upsertError = error as Error;\n      return null;\n    }\n  }\n\n  public async updateWorkflow(workflow: WorkflowModel, newBPMNFile?: File) {\n    try {\n      this.workflowState.upsertError = null;\n      const updatedWorkflow = await this.workflowManager.updateWorkflow(workflow, newBPMNFile);\n      this.businessNotification.createToastr(\n        ToastrTypeEnum.Success,\n        `Workflow \"${updatedWorkflow.name}\" updated`,\n      );\n    } catch (error) {\n      this.errorHandler.handleError(error as Error, 'Workflow update failed');\n      this.workflowState.upsertError = error as Error;\n    }\n  }\n\n  public async toggleWorkflowVisibility(workflow: WorkflowModel) {\n    try {\n      await this.layoutBusinessService.toggleVisibility(workflow);\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Workflow visibility update failed');\n    }\n  }\n\n  public async reorderWorkflows(workflows: WorkflowModel[], parameters: ReorderParameters) {\n    try {\n      await this.layoutBusinessService.reorderEntities(workflows, parameters);\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Workflow reordering failed');\n    }\n  }\n\n  public async getWorkflow(workflowId: string) {\n    // the workflows are loaded with the rendering\n    return this.workflowStore.getWorkflow(workflowId);\n  }\n\n  public async getBpmnFilenameAndDate(workflow: WorkflowModel): Promise<{\n    filename: string;\n    date: string;\n  }> {\n    const url = `/api/workflows/${workflow.id}/bpmn-details?${this.uriParams(workflow)}`;\n\n    try {\n      return (await (await this.serverFetch.fetch(url, {}, true)).json()) as {\n        filename: string;\n        date: string;\n      };\n    } catch (e) {\n      this.tracker.captureException(e as Error);\n      return {\n        filename: '',\n        date: null,\n      };\n    }\n  }\n\n  private uriParams(workflow: WorkflowModel) {\n    const { collection } = workflow;\n    return `collectionId=${encodeURIComponent(\n      collection.id,\n    )}&bpmnAwsS3Identifier=${encodeURIComponent(workflow.bpmnAwsS3Identifier)}`;\n  }\n\n  public startWorkflow(\n    workflowModel: WorkflowModel,\n    selectedRecord: ClientRecordModel,\n    currentRun?: WorkflowRunModel,\n  ): Promise<void> {\n    const useVisualizer = currentRun\n      ? this.shouldUseVisualizerForRun(currentRun)\n      : this.shouldUseVisualizerForNewRun();\n\n    if (useVisualizer) {\n      if (currentRun) {\n        return this.resumeWorkflowVisualizer(\n          Number(currentRun.id),\n          workflowModel.name,\n          workflowModel.collection.id,\n          selectedRecord,\n        );\n      }\n\n      return this.startWorkflowVisualizer(\n        workflowModel.id,\n        workflowModel.name,\n        workflowModel.collection.id,\n        selectedRecord,\n      );\n    }\n\n    return this.workflowExecutionFeature.startWorkflow(workflowModel, selectedRecord, currentRun);\n  }\n\n  public openClosedRun(\n    workflowModel: WorkflowModel,\n    selectedRecord: ClientRecordModel,\n    currentRun: WorkflowRunModel,\n  ): Promise<void> {\n    if (this.shouldUseVisualizerForRun(currentRun)) {\n      return this.resumeWorkflowVisualizer(\n        Number(currentRun.id),\n        workflowModel.name,\n        workflowModel.collection.id,\n        selectedRecord,\n      );\n    }\n\n    return this.workflowExecutionFeature.startFinishedWorkflow(\n      workflowModel,\n      selectedRecord,\n      currentRun,\n    );\n  }\n\n  public shouldUseVisualizerForNewRun(): boolean {\n    return this.lianaSession.currentEnvironment?.workflowEngine === WorkflowEngineEnum.Orchestrator;\n  }\n\n  public shouldUseVisualizerForRun(run: WorkflowRunModel): boolean {\n    return run.engine === WorkflowEngineEnum.Orchestrator;\n  }\n\n  public async startWorkflowVisualizer(\n    workflowId: string,\n    workflowName: string,\n    collectionId: string,\n    selectedRecord: { id: string | number },\n  ): Promise<void> {\n    await this.workflowVisualizerFeature.startWorkflow({\n      workflowId,\n      workflowName,\n      collectionId,\n      selectedRecordId: String(selectedRecord.id),\n    });\n  }\n\n  public async resumeWorkflowVisualizer(\n    runId: number,\n    workflowName: string,\n    collectionId: string,\n    selectedRecord: { id: string | number },\n  ): Promise<void> {\n    await this.workflowVisualizerFeature.resumeWorkflow({\n      runId,\n      workflowName,\n      collectionId,\n      selectedRecordId: String(selectedRecord.id),\n    });\n  }\n\n  public getStartedWorkflowRunsForRecord(\n    collectionId: string,\n    selectedRecordId: string,\n  ): Promise<WorkflowRunModel[]> {\n    return this.workflowExecutionFeature.getWorkflowRunsForRecord(collectionId, selectedRecordId);\n  }\n\n  public getAllWorkflowRunsForRecord(\n    collectionId: string,\n    selectedRecordId: string,\n  ): Promise<WorkflowRunModel[]> {\n    return this.workflowExecutionFeature.getWorkflowRunsForRecord(collectionId, selectedRecordId, [\n      WorkflowRunStateEnum.Started,\n      WorkflowRunStateEnum.Loading,\n      WorkflowRunStateEnum.Pending,\n      WorkflowRunStateEnum.Finished,\n      WorkflowRunStateEnum.Aborted,\n    ]);\n  }\n\n  public getBpmnFile(workflow: WorkflowModel, version?: string) {\n    return this.workflowManager.getBpmnFileFromWorkflow(workflow, version);\n  }\n\n  public getCurrentWorkflowRun() {\n    return this.workflowStore.getWorkflowRun(this.workflowState.workflowRunId);\n  }\n\n  public getRootRecord() {\n    return this.workflowState.workflowRecords[0].record;\n  }\n\n  public isStepOpen(stepIndex: number) {\n    return (\n      this.workflowState.openStepIndices.includes(stepIndex)\n      || this.workflowState.userOpenStepIndices.includes(stepIndex)\n    );\n  }\n\n  public toggleUserStep(stepIndex: number) {\n    if (this.isStepOpen(stepIndex)) {\n      this.workflowState.userOpenStepIndices.removeObject(stepIndex);\n      this.workflowState.openStepIndices.removeObject(stepIndex);\n    } else {\n      this.workflowState.userOpenStepIndices.pushObject(stepIndex);\n    }\n  }\n}\n","import type ActivityTrackerInterface from 'client/features/workflow/services/standalone-package/interfaces/activity-tracker-interface';\nimport type {\n  ActivityContext,\n  OptionActivityContext,\n  StepActivityContext,\n} from 'client/features/workflow/services/standalone-package/interfaces/activity-tracker-interface';\nimport type ActivityTrackerService from 'client/legacy/services/activity-tracker';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport { WorkflowActivityActionEnum } from 'client/features/workflow/services/standalone-package/types/activity';\n\nexport default class WorkflowActivityTrackerInternalBusinessService\n  extends Service\n  implements ActivityTrackerInterface\n{\n  @service private readonly activityTracker: ActivityTrackerService;\n  @service private readonly store: StoreService;\n\n  async trackTriggerWorkflow(context: ActivityContext) {\n    await this.trackActivity(WorkflowActivityActionEnum.TriggerWorkflow, context);\n  }\n\n  async trackAbortWorkflow(context: ActivityContext) {\n    await this.trackActivity(WorkflowActivityActionEnum.AbortWorkflow, context);\n  }\n\n  async trackSelectOption(context: OptionActivityContext) {\n    await this.trackActivity(WorkflowActivityActionEnum.SelectWorkflowOption, context);\n  }\n\n  async trackCompleteStep(context: StepActivityContext) {\n    await this.trackActivity(WorkflowActivityActionEnum.CompleteWorkflowStep, context);\n  }\n\n  async trackReviseStep(context: StepActivityContext) {\n    await this.trackActivity(WorkflowActivityActionEnum.ReviseWorkflowStep, context);\n  }\n\n  async trackResumeWorkflow(context: ActivityContext) {\n    await this.trackActivity(WorkflowActivityActionEnum.ResumeWorkflow, context);\n  }\n\n  async trackCompleteWorkflow(context: ActivityContext) {\n    await this.trackActivity(WorkflowActivityActionEnum.CompleteWorkflow, context);\n  }\n\n  private async trackActivity(\n    action: WorkflowActivityActionEnum,\n    context: OptionActivityContext | StepActivityContext | ActivityContext,\n  ) {\n    const collection = this.store.peekRecord('collection', context.collectionId);\n\n    await this.activityTracker.trackWrite({\n      action,\n      label: context.label,\n      collection,\n      recordIds: [context.recordId],\n      workflow: {\n        runId: context.workflowRunId,\n        name: context.workflowName,\n        stepName: 'stepTitle' in context ? context.stepTitle : undefined,\n        optionName: 'optionName' in context ? context.optionName : undefined,\n      },\n    });\n  }\n}\n","import type { ToolCall } from '@langchain/core/messages/tool';\nimport type AiFeatureService from 'client/features/ai/services/feature';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\nimport type WorkflowExecutionInternalBusinessService from 'client/features/workflow/services/internal-business/execution';\nimport type WorkflowRelatedRecordsInternalBusinessService from 'client/features/workflow/services/internal-business/related-records';\nimport type WorkflowRunManagerInternalBusinessService from 'client/features/workflow/services/internal-business/run-manager';\nimport type WorkflowUtilsInternalBusinessService from 'client/features/workflow/services/internal-business/utils';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type { ContextForStep } from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type WorkflowFeatureState from 'client/features/workflow/state';\nimport type { WorkflowRecordEntry } from 'client/features/workflow/state';\nimport type {\n  LegacyWorkflowStep,\n  WorkflowCondition,\n  WorkflowTask,\n} from 'client/features/workflow/types/workflow-step';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\n\nimport { KNOWN_TOOLS } from 'client/features/ai/services/internal-business/tools';\nimport { FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH } from 'client/features/ai/services/internal-business/tools/tool-choose-gateway-option';\nimport {\n  ToolConfirmationInterruption,\n  type ToolExecution,\n} from 'client/features/ai/types/ai-steps';\nimport AiAgentContext from 'client/features/workflow/types/workflow-ai-agent-context';\nimport toStandaloneRecord from 'client/features/workflow/utils/to-standalone-record';\n\nexport default class WorkflowAiInteractionsInternalBusinessService extends Service {\n  @service('feature/workflow/state')\n  private readonly workflowState: WorkflowFeatureState;\n\n  @service('feature/ai')\n  private readonly aiService: AiFeatureService;\n\n  @service('feature/mcp-server')\n  private readonly mcpServerFeature: McpServerFeatureService;\n\n  @service('feature/workflow/internal-business/run-manager')\n  private readonly workflowRunManager: WorkflowRunManagerInternalBusinessService;\n\n  @service('feature/workflow/internal-business/execution')\n  private readonly executionService: WorkflowExecutionInternalBusinessService;\n\n  @service('feature/workflow/internal-business/related-records')\n  private readonly relatedRecordsService: WorkflowRelatedRecordsInternalBusinessService;\n\n  @service('feature/workflow/internal-business/utils')\n  private readonly utils: WorkflowUtilsInternalBusinessService;\n\n  private get lastStepHistory() {\n    return this.utils.lastStepHistory;\n  }\n\n  private getWorkflowHeaders = (): Record<string, string> => {\n    const headers: Record<string, string> = {};\n    const workflowId = this.workflowState.currentWorkflow?.id;\n    const workflowRunId = this.workflowState.workflowRunId;\n\n    if (workflowId) {\n      headers['workflow-id'] = workflowId;\n    }\n    if (workflowRunId) {\n      headers['workflow-run-id'] = workflowRunId;\n    }\n\n    return headers;\n  };\n\n  private get workflowEngine() {\n    return this.executionService.workflowEngine;\n  }\n\n  async askAi() {\n    const stepHistory = this.lastStepHistory as WorkflowStepHistory<WorkflowTask>;\n    stepHistory.isLoading = true;\n\n    let selectedWorkflowRecordEntry =\n      this.relatedRecordsService.getSelectedWorkflowRecordEntry(stepHistory)\n      || this.workflowState.workflowRecords[0];\n\n    try {\n      const workflowRecordsWithIdentifiers = this.workflowState.workflowRecords.map(\n        (workflowRecord) => ({\n          ...workflowRecord,\n          recordIdentifier: [\n            'Root record',\n            ...workflowRecord.pathFromRoot.map(\n              ({ fieldName, recordId: id }) => `${fieldName}:${id}`,\n            ),\n          ].join(' > '),\n        }),\n      );\n\n      const standaloneRecords = workflowRecordsWithIdentifiers.map((wr) => ({\n        record: toStandaloneRecord(wr.record),\n        recordIdentifier: wr.recordIdentifier,\n      }));\n\n      const selectedStandalone = await this.workflowEngine.askAiToSelectARecord(\n        stepHistory.step.prompt,\n        standaloneRecords,\n      );\n\n      // askAiToSelectARecord returns an element from standaloneRecords — identifiers always match\n      selectedWorkflowRecordEntry = workflowRecordsWithIdentifiers.find(\n        (wr) => wr.recordIdentifier === selectedStandalone.recordIdentifier,\n      );\n\n      stepHistory.context.aiAgentContext = new AiAgentContext({\n        selectedRecordStepIndex: selectedWorkflowRecordEntry.stepIndex,\n      });\n    } catch (error) {\n      const errorMessage =\n        'Error selecting workflow record: ' + JSON.stringify((error as Error).message);\n      stepHistory.context.aiAgentContext = new AiAgentContext({\n        error: errorMessage,\n      });\n      console.error(error);\n      stepHistory.isLoading = false;\n      return;\n    }\n\n    await this.selectAndExecuteAiTool(selectedWorkflowRecordEntry);\n\n    stepHistory.isLoading = false;\n  }\n\n  private async selectAndExecuteAiTool(selectedWorkflowRecordEntry: WorkflowRecordEntry) {\n    const stepHistory = this.lastStepHistory as WorkflowStepHistory<WorkflowTask>;\n\n    const additionalContext = this.getAdditionalContext();\n\n    try {\n      // Ensure OAuth authentication for MCP server steps before selecting a tool\n      // Skip authentication if the step is already completed\n      if (!stepHistory.done) {\n        const authSuccess = await this.ensureOAuthForMcpServerStep(stepHistory.step);\n        if (!authSuccess) {\n          stepHistory.context.aiAgentContext.error =\n            'OAuth authentication failed. Please try again.';\n          return;\n        }\n      }\n\n      // Resolve allowedTools - handle string[], Promise<string[]>, or () => Promise<string[]>\n      const allowedTools = stepHistory.step.allowedTools;\n      const resolvedTools =\n        typeof allowedTools === 'function' ? await allowedTools() : await allowedTools;\n\n      const toolCall = await this.aiService.askAiToSelectATool(\n        this.executionService.workflowEngine,\n        stepHistory.step.prompt,\n        selectedWorkflowRecordEntry.record,\n        additionalContext,\n        resolvedTools,\n      );\n\n      if (this.aiService.doesToolNeedsUserConfirmation(toolCall.name)) {\n        stepHistory.context.aiAgentContext.toolConfirmationInterruption =\n          new ToolConfirmationInterruption(toolCall);\n      } else {\n        const toolExecution = await this.executeToolAndFormatResponse(\n          selectedWorkflowRecordEntry.record,\n          toolCall,\n          stepHistory.step.prompt,\n        );\n        stepHistory.context.aiAgentContext.toolExecution = toolExecution;\n      }\n    } catch (error) {\n      stepHistory.context.aiAgentContext.error = JSON.stringify((error as Error).message);\n      console.error(error);\n    }\n  }\n\n  async executeToolAndFormatResponse(\n    selectedRecord: ClientRecordModel,\n    toolCall: ToolCall,\n    userRequest?: string,\n  ): Promise<ToolExecution> {\n    this.aiService.setToolsContextHeaders(this.getWorkflowHeaders());\n\n    try {\n      const tool = await this.aiService.getTool(selectedRecord, toolCall.name);\n\n      const toolExecution = await this.workflowEngine.invokeTool(tool, toolCall);\n\n      const isKnownTool = KNOWN_TOOLS.find((toolName) => toolName === toolCall?.name);\n      if (isKnownTool || toolExecution.status === 'error') {\n        return toolExecution;\n      }\n\n      return await this.workflowEngine.formatToolExecutionResponse(\n        toStandaloneRecord(selectedRecord),\n        toolCall,\n        toolExecution,\n        userRequest,\n      );\n    } finally {\n      this.aiService.clearToolsContextHeaders();\n    }\n  }\n\n  private async ensureOAuthForMcpServerStep(step: WorkflowTask): Promise<boolean> {\n    if (!step.mcpServerId) {\n      return true;\n    }\n\n    const mcpServer = await this.mcpServerFeature.getMCPServerById(step.mcpServerId, false);\n\n    if (!mcpServer) {\n      return false;\n    }\n\n    return await this.mcpServerFeature.ensureOAuthAuthentication(mcpServer);\n  }\n\n  public async executeChooseGatewayOptionTool(userRequest: string, availableOptions: string[]) {\n    const stepHistory = this.lastStepHistory as WorkflowStepHistory<WorkflowCondition>;\n    stepHistory.isLoading = true;\n    try {\n      const toolExecution = await this.aiService.askAiToChooseGatewayOption(\n        userRequest,\n        availableOptions,\n        this.getAdditionalContext(),\n        this.getWorkflowHeaders,\n      );\n      const aiOption = (toolExecution as ToolExecution<unknown, { option: string }>).outputArtifacts\n        ?.option;\n      const hasError =\n        toolExecution.status === 'error'\n        || !aiOption\n        || (aiOption !== FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH\n          && !availableOptions.includes(aiOption));\n\n      stepHistory.context.aiAgentContext = new AiAgentContext({\n        toolExecution,\n        ...(hasError && {\n          error: toolExecution.output || 'AI decision failed. Please choose manually.',\n        }),\n      });\n      return toolExecution as ToolExecution<unknown, { option: string }>;\n    } catch (error) {\n      stepHistory.context.aiAgentContext = new AiAgentContext({\n        error: JSON.stringify((error as Error).message),\n      });\n      console.error(error);\n    } finally {\n      stepHistory.isLoading = false;\n    }\n  }\n\n  private buildGuidanceUserInputContext(context: ContextForStep<LegacyWorkflowStep>) {\n    return new AiAgentContext({\n      toolExecution: {\n        toolCallId: 'user-input',\n        toolName: 'user-input',\n        status: 'success' as const,\n        inputArtifacts: { userInput: context.userInput },\n        output: context.userInput as string,\n      },\n    });\n  }\n\n  private getAdditionalContext() {\n    return this.workflowState.history\n      .filter(\n        ({ cancelled, revised, context: { aiAgentContext }, step }) =>\n          !cancelled\n          && !revised\n          && (aiAgentContext?.toolExecution\n            || (step.type === 'task' && (step as WorkflowTask).completionType === 'user-input')),\n      )\n      .map(({ step, context }) => ({\n        prompt: (step as WorkflowTask).prompt,\n        aiAgentContext:\n          step.type === 'task'\n          && (step as WorkflowTask).completionType === 'user-input'\n          && context.userInput\n            ? this.buildGuidanceUserInputContext(context as ContextForStep<LegacyWorkflowStep>)\n            : context.aiAgentContext,\n      }));\n  }\n\n  async confirmToolExecution(confirm: boolean) {\n    const stepHistory = this.lastStepHistory as WorkflowStepHistory<WorkflowTask>;\n    stepHistory.isLoading = true;\n    stepHistory.context.aiAgentContext.userConfirmation = confirm;\n\n    // Skip tool execution if already executed (e.g., update-record component executes tool directly)\n    if (confirm && !stepHistory.context.aiAgentContext.toolExecution) {\n      // When an AI task's tool selection fails (selectAndExecuteAiTool throws),\n      // toolConfirmationInterruption is never set. Guard against calling getToolCall()\n      // on undefined if the user confirms despite the error.\n      if (!stepHistory.context.aiAgentContext.toolConfirmationInterruption) {\n        console.error(\n          '[WorkflowAiInteractions] confirmToolExecution called but toolConfirmationInterruption is missing',\n        );\n        stepHistory.isLoading = false;\n        return;\n      }\n\n      const selectedWorkflowRecordEntry =\n        this.relatedRecordsService.getSelectedWorkflowRecordEntry(stepHistory);\n      const toolCall =\n        stepHistory.context.aiAgentContext.toolConfirmationInterruption.getToolCall();\n\n      const toolExecution = await this.executeToolAndFormatResponse(\n        selectedWorkflowRecordEntry.record,\n        toolCall,\n        stepHistory.step.prompt,\n      );\n      stepHistory.context.aiAgentContext.toolExecution = toolExecution;\n\n      await this.relatedRecordsService.addRelatedRecordToWorkflowRecordEntrys(stepHistory);\n    }\n\n    stepHistory.isLoading = false;\n\n    void this.workflowRunManager.saveWorkflowRun({ debounce: true });\n  }\n}\n","import type McpServerFeatureService from 'client/features/mcp-server/services/feature';\nimport type { ParserWarning } from 'client/features/workflow/services/standalone-package/services/parser-module/parser-warnings';\nimport type { WorkflowSteps } from 'client/features/workflow/services/standalone-package/types/workflow';\n\nimport Service, { service } from '@ember/service';\n\nimport WorkflowBpmnParser from 'client/features/workflow/services/standalone-package/services/parser-module/bpmn-parser';\n\ntype WarningHandler = (warning: ParserWarning) => void;\n\nexport default class WorkflowBpmnParserInternalBusinessService extends Service {\n  @service('feature/mcp-server') private mcpServerFeature: McpServerFeatureService;\n\n  parseBpmnXml(xml: string, warningHandler: WarningHandler): WorkflowSteps {\n    return new WorkflowBpmnParser(\n      this.mcpServerFeature.getToolsForMcpServerId.bind(this.mcpServerFeature),\n    ).parseBpmnXml(xml, warningHandler);\n  }\n}\n","import type WorkflowModel from 'client/data/models/workflow';\nimport type WorkflowRunModel from 'client/data/models/workflow-run';\nimport type AiFeatureService from 'client/features/ai/services/feature';\nimport type { ToolExecution } from 'client/features/ai/types/ai-steps';\nimport type WorkflowActivityTrackerInternalBusinessService from 'client/features/workflow/services/internal-business/activity-tracker';\nimport type WorkflowAiInteractionsInternalBusinessService from 'client/features/workflow/services/internal-business/ai-interactions';\nimport type WorkflowManagerInternalBusinessService from 'client/features/workflow/services/internal-business/manager';\nimport type WorkflowRunManagerInternalBusinessService from 'client/features/workflow/services/internal-business/run-manager';\nimport type WorkflowUtilsInternalBusinessService from 'client/features/workflow/services/internal-business/utils';\nimport type WorkflowRunListenerInterface from 'client/features/workflow/services/internal-business/workflow-run-listener-interface';\nimport type WorkflowStateInterface from 'client/features/workflow/services/internal-business/workflow-state-interface';\nimport type { WorkflowTransition } from 'client/features/workflow/services/standalone-package/types/transition';\nimport type WorkflowFeatureState from 'client/features/workflow/state';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\n\nimport { CHOOSE_GATEWAY_OPTION_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-choose-gateway-option';\nimport { EndAssignmentReasonEnum } from 'client/features/inbox/services/internal-feature/workflow';\nimport { WorkflowStepNotFoundError } from 'client/features/workflow/errors';\nimport WorkflowLlmInterface from 'client/features/workflow/services/internal-business/workflow-llm-interface';\nimport WorkflowEngine from 'client/features/workflow/services/standalone-package';\nimport {\n  completeStepLabel,\n  completeWorkflowLabel,\n  reviseStepLabel,\n  selectOptionLabel,\n  triggerWorkflowLabel,\n} from 'client/features/workflow/services/standalone-package/types/activity';\nimport WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport {\n  isAiConditionStep,\n  isAiExecutedTask,\n  isConditionStep,\n  isEscalationTask,\n} from 'client/features/workflow/types/type-guards';\nimport { WorkflowEscalationStateEnum } from 'client/features/workflow/types/workflow';\nimport AiAgentContext from 'client/features/workflow/types/workflow-ai-agent-context';\nimport {\n  type MixedWorkflowStep,\n  type StartSubWorkflow,\n  SubWorkflowStepTypeEnum,\n  type WorkflowCondition,\n  type WorkflowTask,\n} from 'client/features/workflow/types/workflow-step';\nimport LegacyWorkflowStepContext from 'client/features/workflow/types/workflow-step-context';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\nexport const DIRECT_TOOL_CALL_ID = 'direct-toolcall';\n\nexport default class WorkflowExecutionInternalBusinessService extends Service {\n  @service('feature/workflow/state')\n  private readonly workflowState: WorkflowFeatureState;\n\n  @service('feature/workflow/internal-business/activity-tracker')\n  private readonly workflowActivityTracker: WorkflowActivityTrackerInternalBusinessService;\n\n  @service private readonly eventBus: EventBusService;\n\n  @service('feature/workflow/internal-business/ai-interactions')\n  private readonly workflowAiService: WorkflowAiInteractionsInternalBusinessService;\n\n  @service('feature/workflow/internal-business/run-manager')\n  private readonly workflowRunManager: WorkflowRunManagerInternalBusinessService;\n\n  @service('feature/workflow/internal-business/manager')\n  private readonly workflowManager: WorkflowManagerInternalBusinessService;\n\n  @service('feature/workflow/internal-business/utils')\n  private readonly utils: WorkflowUtilsInternalBusinessService;\n\n  @service('feature/workflow/internal-business/workflow-state-interface')\n  private readonly workflowStateInterface: WorkflowStateInterface;\n\n  @service('feature/workflow/internal-business/workflow-run-listener-interface')\n  private readonly workflowRunListenerInterface: WorkflowRunListenerInterface;\n\n  @service('feature/ai')\n  private readonly aiService: AiFeatureService;\n\n  public workflowEngine: WorkflowEngine;\n\n  private get lastStepHistory() {\n    return this.utils.lastStepHistory;\n  }\n\n  private async pushStepInHistory(\n    stepId: string,\n    step: MixedWorkflowStep,\n    childrenWorkflowId?: string,\n  ) {\n    const newStepIndex = this.workflowState.history.length;\n    const isLoading =\n      isAiExecutedTask(step)\n      || (isAiConditionStep(step) && !this.hasStepBeenRevised(stepId, newStepIndex));\n\n    const newStepHistory = new WorkflowStepHistory({\n      stepId,\n      step,\n      stepIndex: newStepIndex,\n      isLoading,\n      done: false,\n      childrenWorkflowId,\n    });\n\n    await this.persistStepsInHistory([newStepHistory]);\n\n    return newStepHistory;\n  }\n\n  getWorkflowSubSteps(stepHistory: WorkflowStepHistory) {\n    let nextStep = false;\n    return this.workflowState.history.filter((workflowStepHistory, index) => {\n      if (index <= stepHistory.stepIndex || nextStep) return false;\n\n      if (this.utils.shouldDisplayACardForStep(workflowStepHistory)) {\n        nextStep = true;\n        return false;\n      }\n      return true;\n    });\n  }\n\n  async startWorkflow(\n    workflowModel: WorkflowModel,\n    selectedRecord: ClientRecordModel,\n    currentRun?: WorkflowRunModel,\n  ) {\n    this.workflowState.displaySidePanel = true;\n    this.workflowState.currentWorkflow = workflowModel;\n    this.workflowState.workflowRunId = null;\n    this.workflowState.history = [];\n    this.workflowState.childrenWorkflowsSteps = {};\n\n    this.workflowState.workflowRecords = [\n      { record: selectedRecord, pathFromRoot: [], stepIndex: -1 },\n    ];\n\n    await this.buildWorkflowEngine();\n\n    this.workflowState.workflowSteps = await this.workflowEngine.getBpmnSteps(\n      this.utils.workflowObjectFromworkflowModel(workflowModel),\n      currentRun?.bpmnVersion,\n    );\n\n    if (currentRun) {\n      await this.workflowRunManager.resumeWorkflowRun(\n        workflowModel,\n        this.workflowState.workflowSteps,\n        currentRun,\n      );\n    } else {\n      const workflow = this.workflowState.workflowSteps;\n      this.workflowState.isLoading = false;\n      await this.workflowRunManager.saveWorkflowRun({ debounce: false });\n      await this.workflowActivityTracker.trackTriggerWorkflow({\n        ...this.utils.activityContext,\n        label: triggerWorkflowLabel(this.utils.activityContext.workflowName),\n      });\n      await this.startWorkflowStep(workflow.entryPoint);\n    }\n  }\n\n  async buildWorkflowEngine() {\n    const getWorkflowHeaders = (): Record<string, string> => {\n      const headers: Record<string, string> = {};\n      const workflowId = this.workflowState.currentWorkflow?.id;\n      const workflowRunId = this.workflowState.workflowRunId;\n\n      if (workflowId) {\n        headers['workflow-id'] = workflowId;\n      }\n      if (workflowRunId) {\n        headers['workflow-run-id'] = workflowRunId;\n      }\n\n      return headers;\n    };\n\n    const args = await this.aiService.getWorkflowLlmInterfaceArgs(getWorkflowHeaders);\n    const llmInterface = new WorkflowLlmInterface(args);\n\n    this.workflowEngine = new WorkflowEngine({\n      llmInterface,\n      stateInterface: this.workflowStateInterface,\n      runListenerInterface: this.workflowRunListenerInterface,\n    });\n  }\n\n  public async startFinishedWorkflow(\n    workflowModel: WorkflowModel,\n    selectedRecord: ClientRecordModel,\n    currentRun: WorkflowRunModel,\n  ) {\n    this.workflowState.displaySidePanel = true;\n    this.workflowState.isFinishedWorkflow = true;\n    this.workflowState.currentWorkflow = workflowModel;\n    this.workflowState.workflowRecords = [\n      { record: selectedRecord, pathFromRoot: [], stepIndex: -1 },\n    ];\n\n    await this.buildWorkflowEngine();\n\n    this.workflowState.workflowSteps = await this.workflowEngine.getBpmnSteps(\n      this.utils.workflowObjectFromworkflowModel(workflowModel),\n      currentRun?.bpmnVersion,\n    );\n\n    await this.workflowRunManager.resumeWorkflowRun(\n      workflowModel,\n      this.workflowState.workflowSteps,\n      currentRun,\n    );\n  }\n\n  async startWorkflowStep(stepId: string, childrenWorkflowId?: string) {\n    const step = this.utils.getStepById(stepId, childrenWorkflowId);\n\n    if (!step) {\n      throw new WorkflowStepNotFoundError(\n        `Step with id ${stepId} not found in workflow definition`,\n      );\n    }\n\n    const newStepHistory = await this.pushStepInHistory(stepId, step, childrenWorkflowId);\n\n    if (this.utils.shouldDisplayACardForStep(newStepHistory)) {\n      // Find previous card step to keep open (exclude new step and cancelled/revised steps)\n      const cardSteps = this.workflowState.history\n        .filter(\n          (h) =>\n            h.stepIndex !== newStepHistory.stepIndex\n            && !h.cancelled\n            && !h.revised\n            && this.utils.shouldDisplayACardForStep(h),\n        )\n        .map((h) => h.stepIndex);\n      const previousCardIndex = cardSteps.length > 0 ? cardSteps.lastObject : null;\n\n      // Close all except previous card step\n      [...this.workflowState.openStepIndices].forEach((idx) => {\n        if (idx !== previousCardIndex) {\n          this.utils.closeStep(idx);\n        }\n      });\n\n      this.utils.openStep(newStepHistory.stepIndex);\n    }\n\n    if (step.type === SubWorkflowStepTypeEnum.Start) {\n      await this.handleStartSubWorkflow(step, newStepHistory);\n      return;\n    }\n\n    if (step.type === SubWorkflowStepTypeEnum.Close) {\n      newStepHistory.done = true;\n\n      await this.startWorkflowStep(step.outgoing.stepId, step.parentWorkflowId);\n      return;\n    }\n\n    if (isAiExecutedTask(step)) {\n      await this.workflowAiService.askAi();\n\n      if (this.utils.shouldAutomaticallyCompleteTask) {\n        await this.goToNextStep();\n      }\n    } else if (this.isAiDecisionAllowed(newStepHistory)) {\n      const outgoingOptions = newStepHistory.step.outgoing.map((o) => o.answer);\n      const toolExecution = await this.workflowAiService.executeChooseGatewayOptionTool(\n        newStepHistory.step.prompt,\n        outgoingOptions,\n      );\n      if (outgoingOptions.includes(toolExecution?.outputArtifacts?.option)) {\n        await this.goToNextStep(toolExecution.outputArtifacts.option);\n      }\n    }\n\n    // don't display the \"continue\" button before a condition/gateway\n    if (this.utils.isNextConditionDisplayed(step)) {\n      this.lastStepHistory.done = true;\n      await this.startWorkflowStep(step.outgoing.stepId, childrenWorkflowId);\n    }\n  }\n\n  private async handleStartSubWorkflow(step: StartSubWorkflow, historyStep: WorkflowStepHistory) {\n    const childWorkflow = await this.workflowManager.getWorkflow(step.workflowId);\n\n    const childWorkflowSteps = await this.workflowEngine.getBpmnSteps(\n      this.utils.workflowObjectFromworkflowModel(childWorkflow),\n    );\n\n    // Store the version used in the step's context for resume support\n    historyStep.context.subWorkflowVersion = childWorkflow.bpmnAwsS3Identifier;\n\n    this.workflowEngine.replaceEndStepsWithCloseSubWorkflow(\n      childWorkflowSteps,\n      step,\n      historyStep.childrenWorkflowId,\n    );\n\n    this.workflowState.childrenWorkflowsSteps = {\n      ...this.workflowState.childrenWorkflowsSteps,\n      [step.workflowId]: childWorkflowSteps,\n    };\n\n    historyStep.done = true;\n\n    await this.startWorkflowStep(childWorkflowSteps.entryPoint, step.workflowId);\n  }\n\n  async goToNextStep(answer?: string, userInput?: string) {\n    this.workflowState.isTransitioning = true;\n    try {\n      const currentStepHistory = this.lastStepHistory;\n      currentStepHistory.done = true;\n      if (userInput !== undefined) {\n        currentStepHistory.context.userInput = userInput;\n      }\n      const currentStep = this.lastStepHistory.step;\n      const { childrenWorkflowId } = currentStepHistory;\n\n      if (currentStep.type === 'task') {\n        await this.workflowActivityTracker.trackCompleteStep({\n          ...this.utils.activityContext,\n          stepTitle: currentStepHistory.step.title || currentStepHistory.stepId,\n          label: completeStepLabel(\n            currentStepHistory.step.title,\n            this.utils.activityContext.workflowName,\n          ),\n        });\n        await this.startWorkflowStep(currentStep.outgoing.stepId, childrenWorkflowId);\n        return;\n      }\n\n      if (currentStep.type === 'end') {\n        if (!this.workflowState.isFinishedWorkflow) {\n          await this.workflowActivityTracker.trackCompleteWorkflow({\n            ...this.utils.activityContext,\n            label: completeWorkflowLabel(this.utils.activityContext.workflowName),\n          });\n        }\n        this.eventBus.trigger(EventBusEventsEnum.CloseWorkflowInboxAssignment, {\n          workflowRunId: this.workflowState.workflowRunId,\n          reason: EndAssignmentReasonEnum.Complete,\n        });\n        this.lastStepHistory.done = true;\n        this.closeWorkflow();\n        return;\n      }\n\n      if (isConditionStep(currentStep)) {\n        const selectedOption = currentStep.outgoing.find(\n          (transition) => transition.answer === answer,\n        );\n\n        if (!selectedOption) {\n          console.error('answer does not correspond to any option');\n        }\n\n        this.addGatewayChoiceToAiContext(\n          selectedOption,\n          currentStepHistory as WorkflowStepHistory<WorkflowCondition>,\n        );\n\n        await this.workflowActivityTracker.trackSelectOption({\n          ...this.utils.activityContext,\n          stepTitle: currentStepHistory.step.title || currentStepHistory.stepId,\n          optionName: selectedOption.buttonText,\n          label: selectOptionLabel(\n            selectedOption.buttonText,\n            currentStepHistory.step.title,\n            this.utils.activityContext.workflowName,\n          ),\n        });\n\n        await this.startWorkflowStep(selectedOption.stepId, childrenWorkflowId);\n      }\n    } finally {\n      this.workflowState.isTransitioning = false;\n    }\n  }\n\n  async reviseStep(historyStep: WorkflowStepHistory) {\n    this.workflowState.isTransitioning = false;\n    // find parent step => step that displays the card\n    const lastCardStep = this.workflowState.history.filter(\n      (h) => h.stepIndex <= historyStep.stepIndex && this.utils.shouldDisplayACardForStep(h),\n    ).lastObject;\n\n    lastCardStep.revised = true;\n    if (isConditionStep(historyStep.step)) {\n      historyStep.revised = true;\n    }\n\n    this.workflowState.history.forEach((h) => {\n      // cancel all following steps\n      if (h.stepIndex > lastCardStep.stepIndex) {\n        h.cancelled = true;\n      }\n    });\n\n    // remove from context all records selected after the revised step\n    this.workflowState.workflowRecords = this.workflowState.workflowRecords.filter(\n      (r) => r.stepIndex < lastCardStep.stepIndex,\n    );\n\n    if (this.shouldCancelInboxAssignment(historyStep)) {\n      this.eventBus.trigger(EventBusEventsEnum.CloseWorkflowInboxAssignment, {\n        workflowRunId: this.workflowState.workflowRunId,\n        reason: EndAssignmentReasonEnum.Revise,\n      });\n    }\n\n    // Find card step before the revised one\n    const cardStepsBefore = this.workflowState.history.filter(\n      (h) => h.stepIndex < lastCardStep.stepIndex && this.utils.shouldDisplayACardForStep(h),\n    );\n    const previousCardStep = cardStepsBefore.length > 0 ? cardStepsBefore.lastObject : null;\n\n    // Close all open steps, we'll reopen the right ones\n    this.utils.clearOpenSteps();\n\n    // Open previous card step if exists\n    if (previousCardStep) {\n      this.utils.openStep(previousCardStep.stepIndex);\n    }\n\n    if (lastCardStep.stepIndex !== historyStep.stepIndex) {\n      await this.cloneCardInHistoryUntilStep(lastCardStep, historyStep.stepIndex);\n    }\n\n    await this.startWorkflowStep(historyStep.stepId, historyStep.childrenWorkflowId);\n\n    await this.workflowActivityTracker.trackReviseStep({\n      ...this.utils.activityContext,\n      stepTitle: historyStep.step.title || historyStep.stepId,\n      label: reviseStepLabel(historyStep.step.title, this.utils.activityContext.workflowName),\n    });\n  }\n\n  private async cloneCardInHistoryUntilStep(cardStep: WorkflowStepHistory, endStepIndex: number) {\n    const subSteps = this.getWorkflowSubSteps(cardStep);\n    let nextIndex = this.workflowState.history.length;\n\n    const stepsToClone = [cardStep, ...subSteps.filter((s) => s.stepIndex < endStepIndex)];\n    const clonedSteps = stepsToClone.map((source) =>\n      WorkflowStepHistory.clone(source, { stepIndex: nextIndex++ }),\n    );\n\n    await this.persistStepsInHistory(clonedSteps);\n    this.utils.openStep(clonedSteps[0].stepIndex);\n  }\n\n  // TODO: move the re-assignment into WorkflowRunListenerInterface.onRunUpdate()\n  //   once onRunUpdate() is fully implemented (currently a no-op stub).\n  private async persistStepsInHistory(steps: WorkflowStepHistory[]): Promise<void> {\n    if (this.workflowState.workflowRunId) {\n      const workflowRun = this.workflowRunManager.buildWorkflowRunFromRecord();\n      try {\n        await this.workflowEngine.pushStepsInHistory(workflowRun, steps);\n      } catch (error) {\n        // Re-assign to trigger @tracked after rollback splice in stateService\n        this.workflowState.history = [...this.workflowState.history];\n        throw error;\n      }\n    } else {\n      this.workflowState.history.push(...steps);\n    }\n    // Re-assign to trigger @tracked (stateService mutated the array via push())\n    this.workflowState.history = [...this.workflowState.history];\n  }\n\n  public shouldCancelInboxAssignment(revisedStep: WorkflowStepHistory) {\n    return Boolean(\n      this.workflowState.history.find(\n        (history) =>\n          history.stepIndex >= revisedStep.stepIndex\n          && isEscalationTask(history.step)\n          && history.context.escalationState === WorkflowEscalationStateEnum.Escalated,\n      ),\n    );\n  }\n\n  closeWorkflow() {\n    if (!this.workflowState.isFinishedWorkflow) {\n      void this.workflowRunManager.saveWorkflowRun({ clearRunId: true });\n    }\n    this.workflowState.displaySidePanel = false;\n    this.workflowState.isSidePanelCollapsed = false;\n    this.workflowState.currentWorkflow = null;\n    this.workflowState.workflowSteps = null;\n    this.workflowState.history = [];\n    this.utils.clearOpenSteps();\n    this.workflowState.childrenWorkflowsSteps = {};\n    this.workflowState.isFinishedWorkflow = false;\n    this.workflowState.isTransitioning = false;\n  }\n\n  public isAutomaticStepExecutionAllowed(step: WorkflowStepHistory<WorkflowTask>) {\n    return step.step.automaticExecution && !this.hasStepBeenRevised(step.stepId, step.stepIndex);\n  }\n\n  public isAiDecisionAllowed(\n    step: WorkflowStepHistory<MixedWorkflowStep>,\n  ): step is WorkflowStepHistory<WorkflowCondition> & { aiDecision: true } {\n    return isAiConditionStep(step.step) && !this.hasStepBeenRevised(step.stepId, step.stepIndex);\n  }\n\n  private hasStepBeenRevised(stepId: string, stepIndex: number) {\n    return this.workflowState.history\n      .filter((historyStep) => historyStep.stepId === stepId && historyStep.stepIndex !== stepIndex)\n      .slice(-1)[0]?.revised;\n  }\n\n  private addGatewayChoiceToAiContext(\n    selectedOption: WorkflowTransition,\n    currentStepHistory: WorkflowStepHistory<WorkflowCondition>,\n  ) {\n    const answer = selectedOption.answer;\n    if (\n      currentStepHistory.step.aiDecision\n      && currentStepHistory.context.aiAgentContext?.toolExecution?.status === 'success'\n    ) {\n      currentStepHistory.context.selectedOption = selectedOption.stepId;\n      const toolExecution = currentStepHistory.context.aiAgentContext\n        .toolExecution as ToolExecution<{ option: string; reasoning: string }>;\n\n      if (toolExecution.inputArtifacts.option !== answer) {\n        const newValues = {\n          reasoning: `${toolExecution.inputArtifacts.reasoning}\nUser choose: ${answer}`,\n          option: answer,\n        };\n\n        toolExecution.inputArtifacts = newValues;\n        toolExecution.outputArtifacts = newValues;\n      }\n    } else {\n      const existingError = currentStepHistory.context.aiAgentContext?.error;\n      const userAnswer = {\n        reasoning: `User choose: ${answer}`,\n        option: answer,\n      };\n      currentStepHistory.context = new LegacyWorkflowStepContext({\n        selectedOption: selectedOption.stepId,\n        aiAgentContext: new AiAgentContext({\n          error: existingError,\n          toolExecution: {\n            toolCallId: DIRECT_TOOL_CALL_ID,\n            toolName: CHOOSE_GATEWAY_OPTION_TOOL_NAME,\n            status: 'success',\n            inputArtifacts: userAnswer,\n            outputArtifacts: userAnswer,\n          },\n        }),\n      });\n    }\n  }\n}\n","import type { WorkflowAttributes } from 'client/data/models/workflow';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type WorkflowStoreInternalBusinessService from 'client/features/workflow/services/internal-business/store';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type FetchSharedBusinessService from 'client/shared/services/fetch';\nimport type { LayoutEntityFetchParams } from 'client/shared/services/layout';\nimport type S3UploaderSharedBusinessService from 'client/shared/services/s3-uploader';\n\nimport Service, { service } from '@ember/service';\n\nimport {\n  FailedToBeSavedWorkflowError,\n  InvalidForSaveWorkflowError,\n  ProcessFileFailedToBeSavedWorkflowError,\n} from 'client/features/workflow/errors';\n\nexport type WorkflowCreationAttributes = Omit<WorkflowAttributes, 'bpmnAwsS3Identifier'>;\nexport default class WorkflowManagerInternalBusinessService extends Service {\n  @service('feature/workflow/internal-business/store')\n  private readonly workflowStore: WorkflowStoreInternalBusinessService;\n\n  @service('shared/s3-uploader')\n  private readonly s3uploaderService: S3UploaderSharedBusinessService;\n\n  @service('server-fetch') private readonly serverFetch: ServerFetchService;\n  @service('shared/fetch') private readonly fetchService: FetchSharedBusinessService;\n\n  @service('feature/workflow-editor') private workflowEditorFeature: WorkflowEditorFeatureService;\n\n  public async fetchWorkflows(options: LayoutEntityFetchParams) {\n    return this.workflowStore.fetchWorkflows(options);\n  }\n\n  public async getWorkflow(workflowId: string) {\n    return this.workflowStore.getWorkflow(workflowId);\n  }\n\n  public async createWorkflow(attributes: WorkflowCreationAttributes) {\n    this.ensureWorkflowIsValid(attributes);\n\n    try {\n      const workflow = await this.workflowStore.createWorkflow(attributes);\n      await this.updateWorkflowBPMN(workflow, this.workflowEditorFeature.getDefaultBpmnFile());\n      return workflow;\n    } catch (error) {\n      if (error instanceof ProcessFileFailedToBeSavedWorkflowError) {\n        await this.workflowStore.deleteWorkflow(error.workflow);\n        throw error;\n      }\n      throw new FailedToBeSavedWorkflowError(error as Error);\n    }\n  }\n\n  public async updateWorkflow(workflow: WorkflowModel, newBPMNFile?: File) {\n    this.ensureWorkflowIsValid(workflow);\n\n    if (newBPMNFile) return this.updateWorkflowBPMN(workflow, newBPMNFile);\n\n    try {\n      return await this.workflowStore.updateWorkflow(workflow);\n    } catch (error) {\n      throw new FailedToBeSavedWorkflowError(error as Error);\n    }\n  }\n\n  public async deleteWorkflow(workflow: WorkflowModel) {\n    return this.workflowStore.deleteWorkflow(workflow);\n  }\n\n  private ensureWorkflowIsValid(workflow: WorkflowAttributes) {\n    const propertiesMissing = [];\n    if (!workflow.name) propertiesMissing.push('name');\n    if (!workflow.collection) propertiesMissing.push('collection');\n    if (propertiesMissing.length) {\n      throw new InvalidForSaveWorkflowError(propertiesMissing.join(', '));\n    }\n    if (this.isNameTaken(workflow)) {\n      throw new InvalidForSaveWorkflowError(`Workflow name \"${workflow.name}\" is already taken`);\n    }\n    return true;\n  }\n\n  public isNameTaken(workflow: WorkflowAttributes) {\n    if (!workflow?.collection?.workflows?.length || !workflow || !workflow.name) return false;\n    return workflow.collection.workflows\n      .filter((innerWorkflow) => innerWorkflow !== workflow)\n      .map((item) => item.name.trim().toLowerCase())\n      .includes(workflow.name.trim().toLowerCase());\n  }\n\n  public isWorkflowValid(workflow: WorkflowModel) {\n    try {\n      this.ensureWorkflowIsValid(workflow);\n      return true;\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (e) {\n      return false;\n    }\n  }\n\n  public async getBpmnFileFromWorkflow(workflow: WorkflowModel, version?: string): Promise<string> {\n    return this.getBpmnFile(\n      workflow.collection.id,\n      workflow.id,\n      version || workflow.bpmnAwsS3Identifier,\n    );\n  }\n\n  public async getBpmnFile(\n    collectionId: string,\n    workflowId: string,\n    version: string,\n  ): Promise<string> {\n    const fetcherUrl = `/api/workflows/${encodeURIComponent(workflowId)}/bpmn`;\n\n    const urlResponse = await this.serverFetch.fetch(fetcherUrl, {\n      method: 'GET',\n      queryParams: {\n        version: version,\n        collectionId: collectionId,\n      },\n    });\n    const s3Url = ((await urlResponse.json()) as { signedUrl: string }).signedUrl;\n\n    const fileResponse = await this.fetchService.fetch(s3Url, {\n      method: 'GET',\n    });\n    return fileResponse.text();\n  }\n\n  private async updateWorkflowBPMN(workflow: WorkflowModel, file: File) {\n    try {\n      const version = await this.uploadBPMNAndGetNewVersion(file, workflow);\n      workflow.bpmnAwsS3Identifier = version;\n      await this.workflowStore.updateWorkflow(workflow);\n      return workflow;\n    } catch (e) {\n      const error = e as Error;\n      throw new ProcessFileFailedToBeSavedWorkflowError(workflow, error);\n    }\n  }\n\n  private async uploadBPMNAndGetNewVersion(file: File, workflow: WorkflowModel): Promise<string> {\n    const signingUrl = `workflows/${encodeURIComponent(\n      workflow.id,\n    )}/generate-presigned-request?${this.uriParams(workflow)}`;\n\n    return this.s3uploaderService.uploadToPresignedPostAndReturnVersionId(file, signingUrl);\n  }\n\n  private uriParams(workflow: WorkflowModel) {\n    const { collection } = workflow;\n    return `collectionId=${encodeURIComponent(collection.id)}`;\n  }\n}\n","import type { ToolExecution } from 'client/features/ai/types/ai-steps';\nimport type WorkflowExecutionInternalBusinessService from 'client/features/workflow/services/internal-business/execution';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type WorkflowFeatureState from 'client/features/workflow/state';\nimport type { WorkflowTask } from 'client/features/workflow/types/workflow-step';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\n\nimport {\n  GET_RELATED_DATA_TOOL_NAME,\n  type GetRelatedDataToolInput,\n  type GetRelatedDataToolOutput,\n} from 'client/features/ai/services/internal-business/tools/tool-get-related-data';\nimport { FailedToGetRelatedRecordWorkflowError } from 'client/features/workflow/errors';\n\nexport default class WorkflowRelatedRecordsInternalBusinessService extends Service {\n  @service('feature/workflow/state')\n  private readonly workflowState: WorkflowFeatureState;\n\n  @service() private readonly store: StoreService;\n\n  @service('feature/workflow/internal-business/execution')\n  public readonly executionService: WorkflowExecutionInternalBusinessService;\n\n  getSelectedWorkflowRecordEntry(stepHistory: WorkflowStepHistory) {\n    if (stepHistory.context?.aiAgentContext?.selectedRecordStepIndex === undefined)\n      return this.workflowState.workflowRecords[0];\n\n    const selected = this.workflowState.workflowRecords.find(\n      ({ stepIndex }) => stepIndex === stepHistory.context?.aiAgentContext?.selectedRecordStepIndex,\n    );\n\n    return selected;\n  }\n\n  async addRelatedRecordToWorkflowRecordEntrys(\n    workflowStepHistory: WorkflowStepHistory<WorkflowTask>,\n  ) {\n    const selectedWorkflowRecord = this.getSelectedWorkflowRecordEntry(workflowStepHistory);\n    const toolExecution = workflowStepHistory.context.aiAgentContext.toolExecution as ToolExecution<\n      GetRelatedDataToolInput,\n      GetRelatedDataToolOutput\n    >;\n\n    if (\n      toolExecution.status !== 'success'\n      || toolExecution.toolName !== GET_RELATED_DATA_TOOL_NAME\n    ) {\n      return;\n    }\n\n    try {\n      const relatedRecord = await this.getRecordFromRelationshipField(\n        selectedWorkflowRecord.record,\n        toolExecution.outputArtifacts.fieldName,\n        workflowStepHistory.context.aiAgentContext.toolData?.relatedRecordId as string,\n      );\n\n      this.workflowState.workflowRecords.push({\n        record: relatedRecord,\n        pathFromRoot: [\n          ...selectedWorkflowRecord.pathFromRoot,\n          { fieldName: toolExecution.outputArtifacts.fieldName, recordId: relatedRecord.id },\n        ],\n        stepIndex: workflowStepHistory.stepIndex,\n      });\n    } catch (e) {\n      workflowStepHistory.context.aiAgentContext.error = (e as Error).message;\n    }\n  }\n\n  async refetchAllWorkflowRecords() {\n    this.workflowState.workflowRecords = [this.workflowState.workflowRecords[0]];\n\n    for (const historyStep of this.workflowState.history) {\n      const toolExecution = historyStep.context?.aiAgentContext?.toolExecution as ToolExecution<\n        GetRelatedDataToolInput,\n        GetRelatedDataToolOutput\n      >;\n      if (historyStep.cancelled || historyStep.revised) continue;\n      if (!toolExecution) continue;\n      if (toolExecution.toolName !== GET_RELATED_DATA_TOOL_NAME) continue;\n      if (toolExecution.status !== 'success') continue;\n\n      const parentWorkflowRecord = this.getSelectedWorkflowRecordEntry(historyStep);\n      try {\n        const relatedRecord = await this.getRecordFromRelationshipField(\n          parentWorkflowRecord.record,\n          toolExecution.outputArtifacts.fieldName,\n          historyStep.context.aiAgentContext.toolData?.relatedRecordId as string,\n        );\n\n        this.workflowState.workflowRecords.push({\n          record: relatedRecord,\n          stepIndex: historyStep.stepIndex,\n          pathFromRoot: [\n            ...parentWorkflowRecord.pathFromRoot,\n            { fieldName: toolExecution.outputArtifacts.fieldName, recordId: relatedRecord.id },\n          ],\n        });\n      } catch (e) {\n        // no record is found, maybe the relationship changed or the record has been deleted\n        console.error(e);\n      }\n    }\n  }\n\n  private async getRecordFromRelationshipField(\n    parentRecord: ClientRecordModel,\n    fieldName: string,\n    recordId: string,\n  ) {\n    const relatedField = parentRecord.collection.fields.find((f) => f.fieldName === fieldName);\n    if (!relatedField || !relatedField.isRelationship) {\n      throw new FailedToGetRelatedRecordWorkflowError(`Field is not a relationship: ${fieldName}`);\n    }\n\n    // Make sure to load all the fields and relationships\n    const record = (await this.store.findRecord(\n      relatedField.nestedOrReferencedCollection.emberModelName,\n      recordId,\n      { reload: true },\n    )) as ClientRecordModel;\n\n    if (!record) {\n      throw new FailedToGetRelatedRecordWorkflowError(\n        `No related record found for field: ${fieldName}`,\n      );\n    }\n\n    return record;\n  }\n}\n","import type { EmberRunTimer } from '@ember/runloop/types';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type WorkflowRunModel from 'client/data/models/workflow-run';\nimport type InboxState from 'client/features/inbox/state';\nimport type WorkflowActivityTrackerInternalBusinessService from 'client/features/workflow/services/internal-business/activity-tracker';\nimport type WorkflowAiInteractionsInternalBusinessService from 'client/features/workflow/services/internal-business/ai-interactions';\nimport type WorkflowExecutionInternalBusinessService from 'client/features/workflow/services/internal-business/execution';\nimport type WorkflowRelatedRecordsInternalBusinessService from 'client/features/workflow/services/internal-business/related-records';\nimport type WorkflowUtilsInternalBusinessService from 'client/features/workflow/services/internal-business/utils';\nimport type { WorkflowSteps } from 'client/features/workflow/services/standalone-package/types/workflow';\nimport type { WorkflowRun } from 'client/features/workflow/services/standalone-package/types/workflow-run';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type WorkflowFeatureState from 'client/features/workflow/state';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { cancel, later } from '@ember/runloop';\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport config from 'client/config/environment';\nimport { EndAssignmentReasonEnum } from 'client/features/inbox/services/internal-feature/workflow';\nimport { WorkflowRunNotFoundError } from 'client/features/workflow/errors';\nimport { SaveStatusEnum } from 'client/features/workflow/services/feature';\nimport { resumeWorkflowLabel } from 'client/features/workflow/services/standalone-package/types/activity';\nimport { WorkflowRunStateEnum } from 'client/features/workflow/services/standalone-package/types/workflow-run';\nimport { isAiExecutedTask, isEscalationTask } from 'client/features/workflow/types/type-guards';\nimport AiAgentContext from 'client/features/workflow/types/workflow-ai-agent-context';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\nexport default class WorkflowRunManagerInternalBusinessService extends Service {\n  @service('feature/workflow/state')\n  private readonly workflowState: WorkflowFeatureState;\n\n  @service('feature/workflow/internal-business/activity-tracker')\n  public readonly workflowActivityTracker: WorkflowActivityTrackerInternalBusinessService;\n\n  @service('feature/workflow/internal-business/execution')\n  private readonly executionService: WorkflowExecutionInternalBusinessService;\n\n  @service('feature/workflow/internal-business/ai-interactions')\n  private readonly workflowAiService: WorkflowAiInteractionsInternalBusinessService;\n\n  @service private readonly eventBus: EventBusService;\n\n  @service('feature/workflow/internal-business/related-records')\n  private readonly relatedRecordsService: WorkflowRelatedRecordsInternalBusinessService;\n\n  @service('feature/workflow/internal-business/utils')\n  private readonly utils: WorkflowUtilsInternalBusinessService;\n\n  @service('store') private readonly store: StoreService;\n\n  @service('feature/inbox/state') private readonly inboxState: InboxState;\n\n  @tracked saveStatus: SaveStatusEnum = SaveStatusEnum.NotSaved;\n\n  debounceSaveTimer: EmberRunTimer;\n\n  private get lastStepHistory() {\n    return this.utils.lastStepHistory;\n  }\n\n  public async saveWorkflowRun(\n    options: {\n      runState?: WorkflowRunStateEnum;\n      debounce?: boolean;\n      clearRunId?: boolean;\n    } = {},\n  ) {\n    cancel(this.debounceSaveTimer);\n    this.saveStatus = SaveStatusEnum.NotSaved;\n\n    let runState = options?.runState || WorkflowRunStateEnum.Started;\n\n    let { debounce } = options;\n\n    if (this.lastStepHistory?.step.type === 'end') {\n      this.eventBus.trigger(EventBusEventsEnum.CloseWorkflowInboxAssignment, {\n        workflowRunId: this.workflowState.workflowRunId,\n        reason: EndAssignmentReasonEnum.Complete,\n      });\n      runState = WorkflowRunStateEnum.Finished;\n      debounce = false;\n    }\n\n    const run = this.getExistingRunOrCreateNew();\n    run.runState = runState;\n\n    if (debounce) {\n      const savePromise = new Promise((resolve) => {\n        this.debounceSaveTimer = later(async () => {\n          this.saveStatus = SaveStatusEnum.Loading;\n          resolve(await run.save());\n        }, config.APP.saveWorkflowDebounceDelay || 500);\n      });\n      await savePromise;\n    } else {\n      this.saveStatus = SaveStatusEnum.Loading;\n      await run.save();\n    }\n    this.saveStatus = SaveStatusEnum.Saved;\n\n    if (options?.clearRunId) {\n      this.workflowState.workflowRunId = null;\n    } else if (this.workflowState.currentWorkflow?.id === run.workflowId) {\n      this.workflowState.workflowRunId = run.id;\n    }\n  }\n\n  async resumeWorkflowRun(\n    workflow: WorkflowModel,\n    steps: WorkflowSteps,\n    workflowRun: WorkflowRunModel,\n  ) {\n    this.workflowState.workflowRunId = workflowRun.id;\n    const workflowWithSteps = { ...this.utils.workflowObjectFromworkflowModel(workflow), ...steps };\n\n    const { run, childrenWorkflowsSteps } =\n      await this.executionService.workflowEngine.getWorkflowData(workflowRun.id, workflowWithSteps);\n\n    this.workflowState.childrenWorkflowsSteps = childrenWorkflowsSteps;\n    this.workflowState.history = run.workflowHistory;\n\n    this.utils.workflowStepCards\n      .filter((card) => !card.cancelled && !card.revised)\n      .slice(-2)\n      .forEach((card) => this.utils.openStep(card.stepIndex));\n\n    await this.relatedRecordsService.refetchAllWorkflowRecords();\n\n    this.workflowState.isLoading = false;\n\n    if (!this.workflowState.isFinishedWorkflow) {\n      await this.workflowActivityTracker.trackResumeWorkflow({\n        ...this.utils.activityContext,\n        label: resumeWorkflowLabel(this.utils.activityContext.workflowName),\n      });\n    }\n\n    const step = this.lastStepHistory?.step;\n\n    if (!step) {\n      // ensure workflow is started if no step is found in history\n      return this.executionService.startWorkflowStep(this.workflowState.workflowSteps.entryPoint);\n    }\n\n    // When toolExecution is set, it means that the tool is already executed,\n    // and we don't need to ask AI again.\n    if (\n      isAiExecutedTask(step)\n      && !this.utils.isAiStepExecuted(this.lastStepHistory.context.aiAgentContext)\n      && !this.workflowState.isFinishedWorkflow\n    ) {\n      await this.workflowAiService.askAi();\n\n      if (this.utils.shouldAutomaticallyCompleteTask) {\n        await this.executionService.goToNextStep();\n      }\n    }\n\n    if (isEscalationTask(step)) {\n      // When resuming an escalation step, if the inbox assignment is for the current workflow run,\n      // we need to automatically complete the escalation step and move to the next step.\n      const currentAssignment = this.inboxState.currentInboxAssignment;\n      if ((await currentAssignment?.workflowRun)?.id === this.workflowState.workflowRunId) {\n        this.lastStepHistory.done = true;\n        await this.executionService.startWorkflowStep(\n          step.outgoing.stepId,\n          this.lastStepHistory.childrenWorkflowId,\n        );\n      }\n    }\n  }\n\n  buildWorkflowRunFromRecord(): WorkflowRun<WorkflowStepHistory[]> {\n    const runRecord = this.store.peekRecord('workflow-run', this.workflowState.workflowRunId);\n    if (!runRecord) {\n      throw new WorkflowRunNotFoundError();\n    }\n\n    return {\n      id: runRecord.id,\n      bpmnVersion: runRecord.bpmnVersion,\n      collectionId: runRecord.collectionId,\n      workflowId: runRecord.workflowId,\n      userId: runRecord.userId,\n      renderingId: runRecord.renderingId,\n      selectedRecordId: runRecord.selectedRecordId,\n      runState: runRecord.runState,\n      // Reference (not a copy): stateService.pushStepsInHistory() mutates this array in place.\n      workflowHistory: this.workflowState.history,\n      updatedAt: runRecord.updatedAt,\n    } as WorkflowRun<WorkflowStepHistory[]>;\n  }\n\n  getExistingRunOrCreateNew() {\n    let run: WorkflowRunModel;\n    if (this.workflowState.workflowRunId) {\n      run = this.store.peekRecord('workflow-run', this.workflowState.workflowRunId);\n    } else {\n      run = this.store.createRecord('workflow-run', {\n        workflowId: this.workflowState.currentWorkflow.id,\n        bpmnVersion: this.workflowState.currentWorkflow.bpmnAwsS3Identifier,\n        collectionId: this.workflowState.currentWorkflow.collection.id,\n        selectedRecordId: this.workflowState.workflowRecords[0].record.id,\n      });\n    }\n\n    run.workflowHistory = this.workflowState.history;\n    return run;\n  }\n\n  checkStepValidity(historyStep: WorkflowStepHistory) {\n    if (\n      isAiExecutedTask(historyStep.step)\n      && !this.utils.isAiStepExecuted(historyStep.context.aiAgentContext)\n    ) {\n      const aiAgentContext = historyStep.context.aiAgentContext;\n      // If there is no toolExecution in the context, it means that the step has been executed with an old version of the AI agent.\n      // We set an error message in the context to inform the user that the step cannot be displayed correctly.\n      if (historyStep.done) {\n        aiAgentContext.error =\n          'This workflow step has been executed with an old version of the AI agent and cannot be displayed correctly.';\n      } else {\n        // clear AI step if the tool hasn't been called\n        historyStep.context.aiAgentContext = new AiAgentContext();\n      }\n    }\n  }\n}\n","import type WorkflowModel from 'client/data/models/workflow';\nimport type { WorkflowAttributes } from 'client/data/models/workflow';\nimport type StoreService from 'client/legacy/services/store';\nimport type { LayoutEntityFetchParams } from 'client/shared/services/layout';\nimport type LayoutSharedBusinessService from 'client/shared/services/layout';\n\nimport Service, { service } from '@ember/service';\n\nexport default class WorkflowStoreInternalBusinessService extends Service {\n  @service('shared/layout') private readonly layoutService: LayoutSharedBusinessService;\n  @service('store') private readonly store: StoreService;\n\n  public async fetchWorkflows({ projectName, environmentName, teamName }: LayoutEntityFetchParams) {\n    return this.layoutService.fetchEntitiesAndPutInStore<WorkflowModel>(\n      'workflow',\n      {\n        projectName,\n        environmentName,\n        teamName,\n      },\n      (workflow) => ({\n        collection: { data: { type: 'collection', id: workflow.collectionId } },\n        segments: {\n          data: (workflow as { collectionId: string; segmentIds: string[] }).segmentIds?.map(\n            (id) => ({ type: 'segment', id }),\n          ),\n        },\n      }),\n    );\n  }\n\n  public async getWorkflow(workflowId: string) {\n    // the workflows are loaded with the rendering\n    return this.store.peekRecord('workflow', workflowId);\n  }\n\n  public getWorkflowRun(workflowRunId: string) {\n    return this.store.peekRecord('workflow-run', workflowRunId);\n  }\n\n  public async createWorkflow(params: WorkflowAttributes) {\n    const workflow: WorkflowModel = this.store.createRecord('workflow', {\n      name: params.name,\n      collection: params.collection,\n      segments: params.segments || [],\n      position: params.collection.workflows.length,\n    });\n    try {\n      await workflow.save();\n      return workflow;\n    } catch (error) {\n      workflow?.unloadRecord();\n      throw error;\n    }\n  }\n\n  public async updateWorkflow(workflow: WorkflowModel) {\n    await workflow.save();\n    return workflow;\n  }\n\n  public async deleteWorkflow(workflow: WorkflowModel) {\n    await workflow.destroyRecord();\n  }\n\n  public async updateManyWorkflows(workflows: WorkflowModel[]) {\n    return this.store.layoutBatchUpdate('workflow', workflows);\n  }\n}\n","import type WorkflowModel from 'client/data/models/workflow';\nimport type { ActivityContext } from 'client/features/workflow/services/standalone-package/interfaces/activity-tracker-interface';\nimport type { Workflow } from 'client/features/workflow/services/standalone-package/types/workflow';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type WorkflowFeatureState from 'client/features/workflow/state';\nimport type AiAgentContext from 'client/features/workflow/types/workflow-ai-agent-context';\n\nimport Service, { service } from '@ember/service';\n\nimport { isAiExecutedTask } from 'client/features/workflow/types/type-guards';\nimport {\n  type MixedWorkflowStep,\n  SubWorkflowStepTypeEnum,\n  type WorkflowTask,\n} from 'client/features/workflow/types/workflow-step';\n\nexport default class WorkflowUtilsInternalBusinessService extends Service {\n  @service('feature/workflow/state')\n  private readonly workflowState: WorkflowFeatureState;\n\n  get activityContext(): Omit<ActivityContext, 'label'> {\n    return {\n      collectionId: this.workflowState.currentWorkflow?.collection?.id,\n      recordId: this.workflowState.workflowRecords?.[0]?.record?.id as string,\n      workflowRunId: this.workflowState.workflowRunId,\n      workflowName: this.workflowState.currentWorkflow?.name,\n    };\n  }\n\n  get steps() {\n    return this.workflowState.workflowSteps.steps;\n  }\n\n  get shouldAutomaticallyCompleteTask() {\n    const step = this.lastStepHistory?.step;\n    const aiAgentContext = this.lastStepHistory.context.aiAgentContext;\n\n    return (\n      (step as WorkflowTask).automaticCompletion\n      && aiAgentContext.toolExecution?.status === 'success'\n      && !aiAgentContext?.toolConfirmationInterruption\n      && Boolean(this.workflowState.workflowRunId)\n    );\n  }\n\n  get lastStepHistory() {\n    return this.workflowState.history[this.workflowState.history.length - 1];\n  }\n\n  get workflowStepCards() {\n    let previousStepIsCloseSubWorkflow = false;\n    return this.workflowState.history.filter((h) => {\n      if (previousStepIsCloseSubWorkflow) {\n        previousStepIsCloseSubWorkflow = h.step.type === SubWorkflowStepTypeEnum.Close;\n        return true;\n      }\n      previousStepIsCloseSubWorkflow = h.step.type === SubWorkflowStepTypeEnum.Close;\n      return this.shouldDisplayACardForStep(h);\n    });\n  }\n\n  isAiStepExecuted(aiAgentContext?: AiAgentContext) {\n    return (\n      aiAgentContext?.toolExecution\n      || aiAgentContext?.error\n      || aiAgentContext?.userConfirmation === false\n    );\n  }\n\n  isTransitionButtonDisplayed(historyStep: WorkflowStepHistory) {\n    if (this.isNextConditionDisplayed(historyStep.step)) return false;\n\n    return (\n      !isAiExecutedTask(historyStep.step)\n      || this.isAiStepExecuted(historyStep.context?.aiAgentContext)\n    );\n  }\n\n  isNextConditionDisplayed(step: MixedWorkflowStep): step is WorkflowTask {\n    if (step.type !== 'task') return false;\n\n    const nextStep = this.steps[step.outgoing.stepId];\n    return (\n      !step.outgoing.buttonText\n      && step.taskType === 'guideline'\n      && step.completionType !== 'user-input'\n      && Boolean(nextStep)\n      && nextStep.type === 'condition'\n    );\n  }\n\n  shouldDisplayACardForStep(historyStep: WorkflowStepHistory) {\n    const step = historyStep.step;\n    return (\n      (step.type === 'task' && !step.isSubTask)\n      || step.type === 'end'\n      || step.type === 'escalation'\n      || step.type === SubWorkflowStepTypeEnum.Start\n      || step.type === SubWorkflowStepTypeEnum.Close\n      || (step.type === 'condition'\n        && (this.isEntryStep(historyStep) || this.isAfterEscalation(historyStep)))\n    );\n  }\n\n  public openStep(stepIndex?: number) {\n    if (stepIndex === undefined) return;\n    this.workflowState.openStepIndices.pushObject(stepIndex);\n  }\n\n  public closeStep(stepIndex?: number) {\n    if (stepIndex === undefined) return;\n    this.workflowState.openStepIndices.removeObject(stepIndex);\n  }\n\n  public clearOpenSteps() {\n    this.workflowState.openStepIndices.clear();\n    this.workflowState.userOpenStepIndices.clear();\n  }\n\n  public getStepById(stepId: string, childrenWorkflowId?: string): MixedWorkflowStep {\n    if (childrenWorkflowId) {\n      return this.workflowState.childrenWorkflowsSteps[childrenWorkflowId]?.steps[stepId];\n    }\n    return this.workflowState.workflowSteps.steps[stepId];\n  }\n\n  private isEntryStep(historyStep: WorkflowStepHistory) {\n    const steps = historyStep.childrenWorkflowId\n      ? this.workflowState.childrenWorkflowsSteps[historyStep.childrenWorkflowId]\n      : this.workflowState.workflowSteps;\n    return steps.entryPoint === historyStep.stepId;\n  }\n\n  workflowObjectFromworkflowModel(workflow: WorkflowModel): Workflow {\n    return {\n      id: workflow.id,\n      name: workflow.name,\n      bpmnAwsS3Identifier: workflow.bpmnAwsS3Identifier,\n      collectionId: workflow.collection.id,\n      segmentIds: (workflow.segments || []).map((s) => s.id),\n      position: workflow.position,\n      isVisible: workflow.isVisible,\n    };\n  }\n\n  private isAfterEscalation(historyStep: WorkflowStepHistory) {\n    const historyIndex = this.workflowState.history.indexOf(historyStep);\n    if (historyIndex <= 0) return false;\n\n    const previousStep = this.workflowState.history[historyIndex - 1];\n    return previousStep?.step.type === 'escalation';\n  }\n}\n","import type {\n  BaseChatModel,\n  BaseChatModelCallOptions,\n} from '@langchain/core/language_models/chat_models';\nimport type { AIMessageChunk } from '@langchain/core/messages';\nimport type LlmInterface from 'client/features/workflow/services/standalone-package/interfaces/llm-interface';\nimport type {\n  LangchainCoreMessages,\n  LangchainCoreTools,\n} from 'client/features/workflow/services/standalone-package/interfaces/llm-interface';\n\n// eslint-disable-next-line forest-custom/class-naming-based-on-path\nexport default class WorkflowLlmInterface implements LlmInterface {\n  coreTools: LangchainCoreTools;\n  coreMessages: LangchainCoreMessages;\n  model: BaseChatModel<BaseChatModelCallOptions, AIMessageChunk>;\n\n  constructor(args: {\n    coreTools: LangchainCoreTools;\n    coreMessages: LangchainCoreMessages;\n    model: BaseChatModel<BaseChatModelCallOptions, AIMessageChunk>;\n  }) {\n    this.coreTools = args.coreTools;\n    this.coreMessages = args.coreMessages;\n    this.model = args.model;\n  }\n}\n","import type RunListenerInterface from 'client/features/workflow/services/standalone-package/interfaces/run-listener-interface';\nimport type { RunUpdate } from 'client/features/workflow/services/standalone-package/types/run-update';\n\nimport Service from '@ember/service';\n\n// eslint-disable-next-line forest-custom/class-naming-based-on-path\nexport default class WorkflowRunListenerInterface extends Service implements RunListenerInterface {\n  onRunUpdate(workflowRunId: string, updates: RunUpdate[]): Promise<void> | void {\n    // TO DO: update the workflow run state\n  }\n}\n","import type McpServerFeatureService from 'client/features/mcp-server/services/feature';\nimport type WorkflowManagerInternalBusinessService from 'client/features/workflow/services/internal-business/manager';\nimport type WorkflowRunManagerInternalBusinessService from 'client/features/workflow/services/internal-business/run-manager';\nimport type WorkflowUtilsInternalBusinessService from 'client/features/workflow/services/internal-business/utils';\nimport type StateInterface from 'client/features/workflow/services/standalone-package/interfaces/state-interface';\nimport type {\n  Workflow,\n  WorkflowSteps,\n} from 'client/features/workflow/services/standalone-package/types/workflow';\nimport type { WorkflowRun } from 'client/features/workflow/services/standalone-package/types/workflow-run';\nimport type { RawStepHistory } from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type WorkflowFeatureState from 'client/features/workflow/state';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\n// eslint-disable-next-line forest-custom/class-naming-based-on-path\nexport default class WorkflowStateInterface extends Service implements StateInterface {\n  @service('store') private readonly store: StoreService;\n\n  @service('feature/workflow/internal-business/manager')\n  private readonly workflowManager: WorkflowManagerInternalBusinessService;\n\n  @service('feature/workflow/internal-business/run-manager')\n  private readonly workflowRunManager: WorkflowRunManagerInternalBusinessService;\n\n  @service('feature/workflow/internal-business/utils')\n  private readonly utils: WorkflowUtilsInternalBusinessService;\n\n  @service('feature/workflow/state')\n  private readonly workflowState: WorkflowFeatureState;\n\n  @service('feature/mcp-server') private mcpServerFeature: McpServerFeatureService;\n\n  async getWorkflow(workflowId: string): Promise<Workflow | null> {\n    const workflowModel = await this.workflowManager.getWorkflow(workflowId);\n    if (!workflowModel) {\n      return null;\n    }\n\n    return this.utils.workflowObjectFromworkflowModel(workflowModel);\n  }\n\n  async getBpmnFile(collectionId: string, workflowId: string, version: string): Promise<string> {\n    return this.workflowManager.getBpmnFile(collectionId, workflowId, version);\n  }\n\n  getBpmnSteps(\n    workflowId: string,\n    version: string,\n  ): Promise<WorkflowSteps | undefined> | WorkflowSteps | undefined {\n    return this.workflowState.workflowStepsCache.get(this.getCacheKey(workflowId, version));\n  }\n\n  setBpmnSteps(\n    workflowId: string,\n    version: string,\n    workflowSteps: WorkflowSteps,\n  ): Promise<void> | void {\n    this.workflowState.workflowStepsCache.set(this.getCacheKey(workflowId, version), workflowSteps);\n  }\n\n  private getCacheKey(workflowId: string, version: string): string {\n    return `${workflowId}-${version}`;\n  }\n\n  async createWorkflowRun(args: {\n    workflowId: string;\n    bpmnVersion: string;\n    collectionId: string;\n    selectedRecordId: string;\n  }): Promise<WorkflowRun<RawStepHistory[]>> {\n    const run = this.store.createRecord('workflow-run', args);\n    await run.save();\n    return run;\n  }\n\n  async getWorkflowRun(workflowRunId: string): Promise<WorkflowRun<RawStepHistory[]> | null> {\n    return await this.store.findRecord('workflow-run', workflowRunId);\n  }\n\n  async saveWorkflowRun(workflowRun: WorkflowRun<WorkflowStepHistory[]>): Promise<void> {\n    const runInStore = await this.store.findRecord('workflow-run', workflowRun.id);\n\n    runInStore.userId = workflowRun.userId;\n    runInStore.runState = workflowRun.runState;\n    runInStore.workflowHistory = workflowRun.workflowHistory.map(\n      (step) => step.toJSON() as RawStepHistory,\n    );\n    runInStore.updatedAt = workflowRun.updatedAt;\n\n    await runInStore.save();\n  }\n\n  getRemoteTools(mcpServerId: string): Promise<{ name: string }[]> {\n    return this.mcpServerFeature.getToolsForMcpServerId(mcpServerId);\n  }\n\n  ensureStepValidity(step: WorkflowStepHistory) {\n    return this.workflowRunManager.checkStepValidity(step);\n  }\n}\n","import type { ToolCall } from '@langchain/core/messages/tool';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type WorkflowRunModel from 'client/data/models/workflow-run';\nimport type WorkflowActivityTrackerInternalBusinessService from 'client/features/workflow/services/internal-business/activity-tracker';\nimport type WorkflowAiInteractionsInternalBusinessService from 'client/features/workflow/services/internal-business/ai-interactions';\nimport type WorkflowExecutionInternalBusinessService from 'client/features/workflow/services/internal-business/execution';\nimport type WorkflowRelatedRecordsInternalBusinessService from 'client/features/workflow/services/internal-business/related-records';\nimport type WorkflowRunManagerInternalBusinessService from 'client/features/workflow/services/internal-business/run-manager';\nimport type WorkflowStoreInternalBusinessService from 'client/features/workflow/services/internal-business/store';\nimport type WorkflowUtilsInternalBusinessService from 'client/features/workflow/services/internal-business/utils';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type WorkflowFeatureState from 'client/features/workflow/state';\nimport type { MixedWorkflowStep, WorkflowTask } from 'client/features/workflow/types/workflow-step';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service, { service } from '@ember/service';\n\nimport { EndAssignmentReasonEnum } from 'client/features/inbox/services/internal-feature/workflow';\nimport { UnknownWorkflowError } from 'client/features/workflow/errors';\nimport { abortWorkflowLabel } from 'client/features/workflow/services/standalone-package/types/activity';\nimport { WorkflowRunStateEnum } from 'client/features/workflow/services/standalone-package/types/workflow-run';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\nexport default class WorkflowExecutionInternalFeatureService extends Service {\n  @service('feature/workflow/state')\n  private readonly workflowState: WorkflowFeatureState;\n\n  @service('feature/workflow/internal-business/activity-tracker')\n  public readonly workflowActivityTracker: WorkflowActivityTrackerInternalBusinessService;\n\n  @service('feature/workflow/internal-business/ai-interactions')\n  public readonly workflowAiService: WorkflowAiInteractionsInternalBusinessService;\n\n  @service('feature/workflow/internal-business/related-records')\n  private readonly relatedRecordsService: WorkflowRelatedRecordsInternalBusinessService;\n\n  @service private eventBus: EventBusService;\n\n  @service('feature/workflow/internal-business/run-manager')\n  public readonly workflowRunManager: WorkflowRunManagerInternalBusinessService;\n\n  @service('feature/workflow/internal-business/execution')\n  public readonly executionService: WorkflowExecutionInternalBusinessService;\n\n  @service('feature/workflow/internal-business/utils')\n  private readonly utils: WorkflowUtilsInternalBusinessService;\n\n  @service('feature/workflow/internal-business/store')\n  private readonly workflowStore: WorkflowStoreInternalBusinessService;\n\n  @service('store') private readonly store: StoreService;\n  @service private readonly errorHandler: ErrorHandlerService;\n\n  @service private currentUser: CurrentUserService;\n  @service private lianaSession: LianaSessionService;\n\n  get workflowStepCards() {\n    return this.utils.workflowStepCards;\n  }\n\n  get lastStepHistory() {\n    return this.utils.lastStepHistory;\n  }\n\n  get workflowEngine() {\n    return this.executionService.workflowEngine;\n  }\n\n  isTransitionButtonDisplayed(historyStep: WorkflowStepHistory) {\n    return this.utils.isTransitionButtonDisplayed(historyStep);\n  }\n\n  getWorkflowSubSteps(stepHistory: WorkflowStepHistory) {\n    return this.executionService.getWorkflowSubSteps(stepHistory);\n  }\n\n  getSelectedRecord(stepHistory: WorkflowStepHistory): ClientRecordModel | undefined {\n    return this.relatedRecordsService.getSelectedWorkflowRecordEntry(stepHistory)?.record;\n  }\n\n  get saveStatus() {\n    return this.workflowRunManager.saveStatus;\n  }\n\n  private async automaticallyCompleteTaskIfAllowed() {\n    const currentStep = this.lastStepHistory?.step;\n\n    // Automatically proceed to next step if automatic is true and AI completed successfully\n    if (currentStep.type === 'task' && currentStep.automaticCompletion) {\n      const aiContext = this.lastStepHistory.context?.aiAgentContext;\n      const hasError = aiContext?.error;\n      const hasToolExecution = aiContext?.toolExecution;\n\n      if (!hasError && hasToolExecution?.status === 'success') {\n        await this.goToNextStep();\n      }\n    }\n  }\n\n  async confirmToolExecution(confirm: boolean) {\n    await this.workflowAiService.confirmToolExecution(confirm);\n\n    if (confirm) {\n      await this.automaticallyCompleteTaskIfAllowed();\n    }\n  }\n\n  async executeToolAndFormatResponse(\n    record: ClientRecordModel,\n    toolCall: ToolCall,\n    prompt?: string,\n  ) {\n    return await this.workflowAiService.executeToolAndFormatResponse(record, toolCall, prompt);\n  }\n\n  async startWorkflow(\n    workflowModel: WorkflowModel,\n    selectedRecord: ClientRecordModel,\n    currentRun?: WorkflowRunModel,\n  ) {\n    try {\n      if (!currentRun) {\n        await this.workflowStore.fetchWorkflows({\n          projectName: this.lianaSession.currentProject.name,\n          environmentName: this.lianaSession.currentEnvironment.name,\n          teamName: this.lianaSession.currentTeam.name,\n        });\n      }\n\n      // Reload the record if the user has read access to the collection to retrieve more data.\n      // The selectedRecord can be a subset of the record that why we need to reload it to ensure we have the entire record.\n      if (this.currentUser.canReadCollection(selectedRecord.collection)) {\n        await selectedRecord.reload();\n      }\n\n      await this.executionService.startWorkflow(workflowModel, selectedRecord, currentRun);\n    } catch (error) {\n      this.workflowState.isLoading = false;\n      this.errorHandler.handleError(\n        new UnknownWorkflowError(error as Error),\n        'An error occurred while starting the workflow',\n      );\n      this.workflowState.displaySidePanel = false;\n      if (currentRun) {\n        this.workflowState.workflowRunId = currentRun.id;\n        this.abortWorkflow();\n      }\n    }\n  }\n\n  public async startFinishedWorkflow(\n    workflowModel: WorkflowModel,\n    selectedRecord: ClientRecordModel,\n    currentRun: WorkflowRunModel,\n  ) {\n    await this.executionService.startFinishedWorkflow(workflowModel, selectedRecord, currentRun);\n  }\n\n  async goToNextStep(answer?: string, userInput?: string) {\n    await this.executionService.goToNextStep(answer, userInput);\n  }\n\n  async reviseStep(historyStep: WorkflowStepHistory) {\n    await this.executionService.reviseStep(historyStep);\n  }\n\n  closeWorkflow() {\n    this.executionService.closeWorkflow();\n  }\n\n  async abortWorkflow() {\n    this.eventBus.trigger(EventBusEventsEnum.CloseWorkflowInboxAssignment, {\n      workflowRunId: this.workflowState.workflowRunId,\n      reason: EndAssignmentReasonEnum.Abort,\n    });\n    await this.workflowActivityTracker.trackAbortWorkflow({\n      ...this.utils.activityContext,\n      label: abortWorkflowLabel(this.utils.activityContext.workflowName),\n    });\n    await this.workflowRunManager.saveWorkflowRun({\n      runState: WorkflowRunStateEnum.Aborted,\n      clearRunId: true,\n    });\n    this.workflowState.displaySidePanel = false;\n    this.workflowState.isSidePanelCollapsed = false;\n    this.workflowState.currentWorkflow = null;\n    this.workflowState.workflowSteps = null;\n    this.workflowState.history = [];\n  }\n\n  async getWorkflowRunsForRecord(\n    collectionId: string,\n    selectedRecordId: string,\n    runStates?: WorkflowRunStateEnum[],\n  ) {\n    return (\n      await this.store.query('workflow-run', { collectionId, selectedRecordId, runStates })\n    ).toArray();\n  }\n\n  async getWorkflowRunById(runId: string) {\n    return await this.store.findRecord('workflow-run', runId);\n  }\n\n  public async saveWorkflowRun(\n    options?: Parameters<typeof this.workflowRunManager.saveWorkflowRun>[0],\n  ) {\n    return this.workflowRunManager.saveWorkflowRun(options);\n  }\n\n  public shouldCancelInboxAssignment(revisedStep: WorkflowStepHistory) {\n    return this.executionService.shouldCancelInboxAssignment(revisedStep);\n  }\n\n  public isAutomaticStepExecutionAllowed(stepHistory: WorkflowStepHistory<WorkflowTask>) {\n    return this.executionService.isAutomaticStepExecutionAllowed(stepHistory);\n  }\n\n  public isAiDecisionAllowed(stepHistory: WorkflowStepHistory<MixedWorkflowStep>) {\n    return this.executionService.isAiDecisionAllowed(stepHistory);\n  }\n}\n","import { WorkflowEngine } from 'client/features/workflow/services/standalone-package/services/workflow-engine';\n\nexport default WorkflowEngine;\n","import type { AvailableRecord, SelectRecordToolOutput } from './tool-select-record';\nimport type LlmInterface from '../../interfaces/llm-interface';\nimport type { WorkflowRecord } from '../../types/workflow-record';\nimport type { BaseMessage } from '@langchain/core/messages';\nimport type { ToolCall, ToolMessage } from '@langchain/core/messages/tool';\nimport type { StructuredTool } from '@langchain/core/tools';\nimport type { ToolExecution } from 'client/features/ai/types/ai-steps';\nimport type AiAgentContext from 'client/features/workflow/types/workflow-ai-agent-context';\n\nimport PromptsService from './prompts-service';\nimport ToolExecutionService from './tool-execution-service';\nimport ToolSelectRecordService from './tool-select-record';\nimport { NoToolCallAiError } from '../../types/errors';\n\nexport default class AiService {\n  private readonly promptService: PromptsService;\n  private readonly llmInterface: LlmInterface;\n  private readonly toolSelectRecordService: ToolSelectRecordService;\n  private readonly toolExecutionService: ToolExecutionService;\n\n  constructor(args: { llmInterface: LlmInterface }) {\n    this.llmInterface = args.llmInterface;\n    this.promptService = new PromptsService(args);\n    this.toolExecutionService = new ToolExecutionService({\n      llmInterface: args.llmInterface,\n      promptService: this.promptService,\n    });\n    this.toolSelectRecordService = new ToolSelectRecordService(args);\n  }\n\n  async askAiForStepParameters(\n    userRequest: string,\n    selectedRecord: WorkflowRecord,\n    additionalContext: { prompt: string; aiAgentContext: AiAgentContext }[],\n    tools: StructuredTool[],\n  ): Promise<ToolCall> {\n    const messages = [\n      ...this.promptService.getBaseMessages(selectedRecord, userRequest),\n      ...this.getAdditionalContextMessages(additionalContext),\n    ];\n\n    return this.askAiForParametersWithCustomPrompt(messages, tools);\n  }\n\n  private getAdditionalContextMessages(\n    additionalContext: { prompt: string; aiAgentContext: AiAgentContext }[],\n  ) {\n    return additionalContext.map(({ prompt, aiAgentContext }) => {\n      return new this.llmInterface.coreMessages.SystemMessage({\n        content: `For the user request:\n\"${prompt}\"\n\nYou answered:\n${JSON.stringify(aiAgentContext.toolExecution, null, 2)}`,\n      });\n    });\n  }\n\n  async askAiToSelectARecord<T extends AvailableRecord = AvailableRecord>(\n    userRequest: string,\n    availableRecords: T[],\n  ): Promise<T> {\n    if (availableRecords.length === 1) return availableRecords[0];\n\n    const messages = this.promptService.getRecordSelectionMessages(availableRecords, userRequest);\n\n    const selectRecordTool = this.toolSelectRecordService.createTool(\n      availableRecords as [T, ...T[]],\n    );\n\n    const aiResponse = await this.llmInterface.model\n      .bindTools([selectRecordTool], { tool_choice: 'any' })\n      .invoke(messages);\n\n    const toolCall = aiResponse.tool_calls?.[0];\n    if (!toolCall) throw new NoToolCallAiError('The AI was unable to select a record');\n\n    const toolResult = (await selectRecordTool.invoke(toolCall)) as ToolMessage;\n\n    const selectedIdentifier = (toolResult.artifact as SelectRecordToolOutput).recordIdentifier;\n\n    // The tool validates recordIdentifier via zod enum — only valid identifiers reach here\n    return availableRecords.find((r) => r.recordIdentifier === selectedIdentifier);\n  }\n\n  async askAiForParametersWithCustomPrompt(messages: BaseMessage[], tools: StructuredTool[]) {\n    const aiResponse = await this.llmInterface.model\n      .bindTools(tools, { tool_choice: 'any' })\n      .invoke(messages);\n\n    const toolCall = aiResponse.tool_calls?.[0];\n\n    if (!toolCall) throw new NoToolCallAiError('The AI was unable to call a tool');\n\n    return toolCall;\n  }\n\n  async executeTool(tools: StructuredTool[], toolCall: ToolCall): Promise<ToolExecution> {\n    return await this.toolExecutionService.executeTool(tools, toolCall);\n  }\n\n  async invokeTool(tool: StructuredTool, toolCall: ToolCall): Promise<ToolExecution> {\n    return await this.toolExecutionService.invokeTool(tool, toolCall);\n  }\n\n  async formatToolExecutionResponse(\n    selectedRecord: WorkflowRecord,\n    toolCall: ToolCall,\n    toolExecution: ToolExecution,\n    userRequest?: string,\n  ): Promise<ToolExecution> {\n    return await this.toolExecutionService.formatToolExecutionResponse(\n      selectedRecord,\n      userRequest,\n      toolCall,\n      toolExecution,\n    );\n  }\n}\n","import type { WorkflowRecord } from '../../types/workflow-record';\nimport type LlmInterface from 'client/features/workflow/services/standalone-package/interfaces/llm-interface';\nimport type { AvailableRecord } from 'client/features/workflow/services/standalone-package/services/ai-module/tool-select-record';\n\nimport { FINAL_RESPONSE_TOOL_NAME } from 'client/features/ai/services/internal-business/tools';\nimport { FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH } from 'client/features/ai/services/internal-business/tools/tool-choose-gateway-option';\n\nconst AiPrompt = `You are an AI agent in charge of resolving the user request using one of the available tools.\nChoose the most relevant tool to resolve the user request. No text answer is needed, *ONLY ONE tool call is expected, NO MORE, NO LESS*.\n**Important rules**:\n  - Be concise, clear, and to the point.\n  - Final answer is definitive, you won't receive any other input from the user.\n  - DO NOT include vague or open-ended language such as \"Let me know\", \"Feel free to\", \"Please\", or \"I'll assist you further\".\n  - If you didn't find any tool that can be used to resolve the request, use the ${FINAL_RESPONSE_TOOL_NAME} tool to inform the user that you cannot resolve the request.\n  - If some tool is definitely the right one to use, but the schema doesn't allow the required input values, use the ${FINAL_RESPONSE_TOOL_NAME} tool to list available alternatives.\n  - NEVER include any unverified information, only rely on available tools definitions to explain your inability to resolve the request.\n  - Do not refer to yourself as \"I\" in the response, use a passive formulation instead.`;\n\nconst RecordSelectionPrompt = `You are an AI agent in charge of resolving the user request using one of the available tools on one of the available records.\nThe first step of the resolution is to select the most relevant record, you will then have to select a tool to execute on it.\nChoose the most relevant record. No text answer is needed, Only the \"select-record\" tool call is expected.\nEach available records have been loaded from the root record, the recordIdentifier is the path from the root record.\nWhen choosing the record, pay a special attention to the collection of the record that MUST match the user request.\nIf several records comes from the requested collection, try to find the most relevant looking at the path.`;\n\nconst GatewayOptionSelectionPrompt = `You are an AI agent selecting the\n  correct option for a workflow gateway decision.\n\n  **Task**: Analyze the question and available options, then select the option\n  that DIRECTLY answers the question. Options must be literal answers, not interpretations.\n\n  **Critical Rule**: Options must semantically match possible answers to the question.\n  - Question \"Does X contain Y?\" expects options like \"yes\"/\"no\", NOT colors or unrelated values\n  - Question \"What is the status?\" expects options like \"active\"/\"inactive\", NOT arbitrary words\n  - If options don't match expected answer types, select ${FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH}\n\n  **NEVER invent mappings** between options and answers (e.g., never assume \"purple\"=\"no\" or \"red\"=\"yes\")\n\n  **When to select ${FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH}**:\n  - Options are semantically unrelated to the question type (colors for yes/no questions)\n  - None of the options literally match the expected answer\n  - The question is ambiguous or lacks necessary context\n  - You are less than 80% confident in any option\n\n  **Reasoning format**:\n  - State which option you selected and why\n  - If selecting ${FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH}: explain why options don't match the question\n  - Do not refer to yourself as \"I\" in the response, use a passive formulation instead.\n  - NEVER mention \"${FOREST_WORKFLOW_NO_GATEWAY_OPTION_MATCH}\" in reasoning, say \"no matching option\" instead.`;\n\nexport default class PromptsService {\n  private readonly llmInterface: LlmInterface;\n\n  constructor(args: { llmInterface: LlmInterface }) {\n    this.llmInterface = args.llmInterface;\n  }\n\n  private getCurrentDateMessage() {\n    return new this.llmInterface.coreMessages.SystemMessage({\n      content: `Current date and time: ${new Date().toISOString()}`,\n    });\n  }\n\n  getBaseMessages(selectedRecord: WorkflowRecord, userRequest?: string) {\n    return [\n      new this.llmInterface.coreMessages.SystemMessage({ content: AiPrompt }),\n      new this.llmInterface.coreMessages.SystemMessage({\n        content: `The selected record belongs to the \"${selectedRecord.collection.displayName}\" collection, and is relevant to the user request.`,\n      }),\n      ...(userRequest\n        ? [\n            new this.llmInterface.coreMessages.HumanMessage({ content: userRequest }),\n            this.getCurrentDateMessage(),\n          ]\n        : []),\n    ];\n  }\n\n  getRecordSelectionMessages(availableRecords: AvailableRecord[], userRequest: string) {\n    const availableRecordsDetails = availableRecords\n      .map(({ record, recordIdentifier }) => {\n        const fieldNames = record.collection.fields\n          .map((field) => `\"${field.displayName}\"`)\n          .join(', ');\n\n        return `- ${recordIdentifier}:\n    collection \"${record.collection.displayNameLowerCase}\",\n    fields: ${fieldNames}`;\n      })\n      .join('\\n\\n');\n\n    return [\n      new this.llmInterface.coreMessages.SystemMessage({ content: RecordSelectionPrompt }),\n      new this.llmInterface.coreMessages.SystemMessage({\n        content: `Here are some details on the available records:\\n${availableRecordsDetails}`,\n      }),\n      new this.llmInterface.coreMessages.HumanMessage({ content: userRequest }),\n      this.getCurrentDateMessage(),\n    ];\n  }\n\n  getChooseGatewayOptionMessages(userRequest: string) {\n    return [\n      new this.llmInterface.coreMessages.SystemMessage({\n        content: GatewayOptionSelectionPrompt,\n      }),\n      new this.llmInterface.coreMessages.HumanMessage({\n        content: `**Question**: ${userRequest}`,\n      }),\n      this.getCurrentDateMessage(),\n    ];\n  }\n}\n","import type { WorkflowRecord } from '../../types/workflow-record';\nimport type { ToolCall, ToolMessage } from '@langchain/core/messages/tool';\nimport type { StructuredTool } from '@langchain/core/tools';\nimport type { ToolExecution } from 'client/features/ai/types/ai-steps';\nimport type LlmInterface from 'client/features/workflow/services/standalone-package/interfaces/llm-interface';\nimport type PromptsService from 'client/features/workflow/services/standalone-package/services/ai-module/prompts-service';\nimport type { ZodType } from 'zod';\n\nimport { z } from 'zod';\n\nexport const FINAL_RESPONSE_TOOL_NAME = 'final-response';\n\nexport default class ToolExecutionService {\n  private readonly llmInterface: LlmInterface;\n  private readonly promptService: PromptsService;\n\n  constructor(args: { promptService: PromptsService; llmInterface: LlmInterface }) {\n    this.llmInterface = args.llmInterface;\n    this.promptService = args.promptService;\n  }\n\n  async invokeTool(tool: StructuredTool, toolCall: ToolCall): Promise<ToolExecution> {\n    const buildOutput = (content: unknown) => {\n      return typeof content === 'string' ? content : JSON.stringify(content);\n    };\n\n    try {\n      toolCall.type = 'tool_call'; // needed to ensure tool call is recognized\n      const toolResult = (await tool.invoke(toolCall)) as ToolMessage;\n\n      return {\n        toolName: toolCall.name,\n        toolCallId: toolCall.id,\n        inputArtifacts: toolCall.args,\n        output: toolResult.content\n          ? buildOutput(toolResult.content)\n          : 'Tool has been executed and returned no content',\n        outputArtifacts: toolResult.artifact,\n        status: 'success',\n      };\n    } catch (error) {\n      console.warn('Error while invoking tool', error);\n\n      // langchain wraps the error message\n      // https://github.com/langchain-ai/langchainjs/blob/8fb05ab19f43f8d5be61ec054fe1428dc1667283/langchain-core/src/tools/index.ts#L227\n      // To check if the error is due to invalid args, we can try to parse the args with the tool schema\n      let humanFriendlyParsingError: string;\n      if ((tool?.schema as ZodType)?._zod) {\n        const parsingError = z.safeParse(tool.schema as ZodType, toolCall.args);\n        humanFriendlyParsingError = parsingError.success\n          ? null\n          : parsingError.error.issues.map((i) => i.message).join(', ');\n      }\n\n      return {\n        toolName: toolCall.name,\n        toolCallId: toolCall.id,\n        inputArtifacts: toolCall.args,\n        output: humanFriendlyParsingError || buildOutput((error as Error).message || error),\n        status: 'error',\n      };\n    }\n  }\n\n  async executeTool(tools: StructuredTool[], toolCall: ToolCall): Promise<ToolExecution> {\n    const tool = tools.find((t) => t.name === toolCall.name);\n\n    if (!tool) {\n      return {\n        toolName: toolCall.name,\n        toolCallId: toolCall.id,\n        inputArtifacts: toolCall.args,\n        output: `Tool \"${toolCall.name}\" doesn't exist`,\n        status: 'error',\n      };\n    }\n\n    return this.invokeTool(tool, toolCall);\n  }\n\n  async formatToolExecutionResponse(\n    selectedRecord: WorkflowRecord,\n    userRequest: string,\n    toolCall: ToolCall,\n    toolExecution: ToolExecution,\n  ): Promise<ToolExecution> {\n    const messages = [\n      ...this.promptService.getBaseMessages(selectedRecord, userRequest),\n      new this.llmInterface.coreMessages.AIMessage({\n        content: '',\n        tool_calls: [toolCall],\n      }),\n      new this.llmInterface.coreMessages.ToolMessage({\n        content: JSON.stringify(toolExecution.output),\n        artifact: toolExecution.outputArtifacts,\n        name: toolExecution.toolName,\n        tool_call_id: toolExecution.toolCallId,\n        status: toolExecution.status,\n      }),\n    ];\n\n    const finalResponseTool = this.finalResponseTool;\n\n    const aiResponse = await this.llmInterface.model\n      .bindTools([finalResponseTool], { tool_choice: 'any' })\n      .invoke(messages);\n\n    const finalResponseToolCall = aiResponse.tool_calls?.[0];\n    if (!finalResponseToolCall) {\n      return {\n        toolName: toolCall.name,\n        toolCallId: toolCall.id,\n        inputArtifacts: toolCall.args,\n        output: 'The AI was unable to format the response',\n        status: 'error',\n      };\n    }\n\n    return this.executeTool([finalResponseTool], finalResponseToolCall);\n  }\n\n  private get finalResponseTool() {\n    return this.llmInterface.coreTools.tool((input) => input, {\n      name: FINAL_RESPONSE_TOOL_NAME,\n      description: 'Provides the final response to the end user.',\n      schema: z\n        .string()\n        .nonempty()\n        .describe('The final response to provide to the end user. HTML formatted.'),\n    });\n  }\n}\n","import type LlmInterface from '../../interfaces/llm-interface';\nimport type { WorkflowRecord } from '../../types/workflow-record';\nimport type { DynamicStructuredTool } from '@langchain/core/tools';\n\nimport { z } from 'zod';\n\nimport { ToolInputValidationAiError } from '../../types/errors';\n\nexport interface AvailableRecord {\n  record: WorkflowRecord;\n  recordIdentifier: string;\n}\n\nexport type SelectRecordToolInput = {\n  recordIdentifier: string;\n};\n\n// eslint-disable-next-line sonarjs/redundant-type-aliases\nexport type SelectRecordToolOutput = SelectRecordToolInput;\n\nexport const SELECT_RECORD_TOOL_NAME = 'select-record';\n\nexport default class ToolSelectRecordService {\n  private readonly llmInterface: LlmInterface;\n\n  constructor(args: { llmInterface: LlmInterface }) {\n    this.llmInterface = args.llmInterface;\n  }\n\n  createTool<T extends AvailableRecord = AvailableRecord>(\n    availableRecords: [T, ...T[]],\n  ): DynamicStructuredTool | null {\n    const recordIdentifiers = availableRecords.map((r) => r.recordIdentifier);\n    const schema = z.object({\n      recordIdentifier: z.enum(recordIdentifiers),\n    });\n\n    return this.llmInterface.coreTools.tool(\n      async ({ recordIdentifier }: Partial<SelectRecordToolInput>) => {\n        const record = availableRecords.find((r) => r.recordIdentifier === recordIdentifier);\n\n        const errorMessage = `The recordIdentifier must be one of: ${recordIdentifiers.join(\n          ', ',\n        )}.`;\n        if (!record) throw new ToolInputValidationAiError(errorMessage);\n\n        return [`Record selected`, { recordIdentifier }];\n      },\n      {\n        name: SELECT_RECORD_TOOL_NAME,\n        description: 'Select the most relevant record to answer to the user query',\n        schema,\n        responseFormat: 'content_and_artifact',\n        verboseParsingErrors: true,\n      },\n    );\n  }\n}\n","import type { ParserWarning } from 'client/features/workflow/services/standalone-package/services/parser-module/parser-warnings';\nimport type { WorkflowSteps } from 'client/features/workflow/services/standalone-package/types/workflow';\n\nimport { EXECUTE_ACTION_ON_SELECTED_RECORD_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-execute-action-on-selected-record';\nimport { GET_RELATED_DATA_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-get-related-data';\nimport { READ_SELECTED_RECORD_FIELD_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-read-selected-record-field';\nimport { UPDATE_SELECTED_RECORD_FIELD_TOOL_NAME } from 'client/features/ai/services/internal-business/tools/tool-update-selected-record-field';\nimport {\n  DuplicateTaskParserWarning,\n  EmptyProcessParserWarning,\n  GatewayAsEndEventParserWarning,\n  GatewayTitleMissingWarning,\n  InvalidBpmnFileParserWarning,\n  MissingEndEventParserWarning,\n  MultipleAnnotationsParserWarning,\n  MultipleStartEventOutgoingsParserWarning,\n  MultipleStartEventsParserWarning,\n  MultipleTaskOutgoingsParserWarning,\n  SubprocessNotStartingWithTaskParserWarning,\n  TaskNotFoundParserWarning,\n  UselessGatewayParserWarning,\n} from 'client/features/workflow/services/standalone-package/services/parser-module/parser-warnings';\nimport { WorkflowTransition } from 'client/features/workflow/services/standalone-package/types/transition';\nimport { findOutgoing } from 'client/features/workflow/services/standalone-package/utils';\nimport {\n  type MixedWorkflowStep,\n  type StartSubWorkflow,\n  SubWorkflowStepTypeEnum,\n  type WorkflowCondition,\n  type WorkflowEnd,\n  type WorkflowEscalation,\n  type WorkflowTask,\n} from 'client/features/workflow/types/workflow-step';\n\nconst REGEX_URL = /(https?:\\/\\/)?[-a-zA-Z0-9@:%._+~#=]{2,256}\\.[a-z]{2,}(\\/[-a-zA-Z0-9._/]*)?/;\n\n// same as forestadmin frontend 'client/shared/components/activatable-button/component'\ntype ActivatableButtonColor = 'blue' | 'orange' | 'yellow' | 'red' | 'primary' | 'purple' | 'green';\n\n// same as forestadmin frontend 'client/features/workflow-editor/configuration'\nenum BpmnServiceTaskAlternativeEnum {\n  TriggerAction = 'trigger-action',\n  GetData = 'get-data',\n  UpdateData = 'update-data',\n  LoadRelatedRecord = 'load-related-record',\n  McpServer = 'mcp-server',\n}\n\ninterface RemoteToolDefinition {\n  name: string;\n}\n\ntype WarningHandler = (warning: ParserWarning) => void;\n\ninterface ParserContext {\n  doc: Document | Element;\n  rootElementId: string;\n  workflow: WorkflowSteps;\n  warningHandler: WarningHandler;\n  isV2: boolean;\n}\n\ninterface FlowWithTarget {\n  flowId: string;\n  flowName: string;\n  buttonColor?: ActivatableButtonColor;\n  target: Element;\n  crossBoundary?: boolean;\n}\n\nexport enum NormalizedBpmnTypeEnum {\n  Gateway = 'Gateway',\n  StartEvent = 'StartEvent',\n  EndEvent = 'EndEvent',\n  UserTask = 'UserTask',\n  ServiceTask = 'ServiceTask',\n  ScriptTask = 'ScriptTask',\n  UnknownTask = 'UnknownTask',\n  SubProcess = 'SubProcess',\n  SequenceFlow = 'SequenceFlow',\n  EscalationEvent = 'IntermediateThrowEvent',\n  CallActivity = 'CallActivity',\n}\n\ntype RemoteToolsGetter = (mcpServerId: string) => Promise<RemoteToolDefinition[]>;\n\nexport default class WorkflowBpmnParser {\n  context: ParserContext;\n\n  private remoteToolsGetter: RemoteToolsGetter;\n\n  constructor(remoteToolsGetter: RemoteToolsGetter) {\n    this.remoteToolsGetter = remoteToolsGetter;\n  }\n\n  private warn(warning: ParserWarning) {\n    this.context.warningHandler?.(warning);\n    console.warn(`${warning.title}: ${warning.subtitle}`);\n  }\n\n  private getDescription(element: Element): string | null {\n    const forestDescription = element.getAttribute('forest:description');\n    if (forestDescription) {\n      return forestDescription;\n    }\n\n    const title = element.getAttribute('name');\n    const id = element.getAttribute('id');\n\n    let associations = this.globalQuery(`association[sourceRef=\"${id}\"]`);\n    const annotations: Element[] = [];\n    let attributeName = 'targetRef';\n    if (associations.length === 0) {\n      associations = this.globalQuery(`association[targetRef=\"${id}\"]`);\n      attributeName = 'sourceRef';\n    }\n\n    associations.forEach((association) => {\n      const associationTarget = association.getAttribute(attributeName);\n      annotations.push(...this.globalQuery(`textAnnotation[id=\"${associationTarget}\"]`));\n    });\n\n    if (annotations.length > 1) {\n      this.warn(new MultipleAnnotationsParserWarning(title));\n    }\n\n    return annotations[0]?.querySelector('text')?.textContent;\n  }\n\n  public static getNormalizedTypeForElement(type: string): NormalizedBpmnTypeEnum {\n    switch (type.toLowerCase()) {\n      case 'bpmn:exclusivegateway':\n        return NormalizedBpmnTypeEnum.Gateway;\n      case 'bpmn:endevent':\n        return NormalizedBpmnTypeEnum.EndEvent;\n      case 'bpmn:startevent':\n        return NormalizedBpmnTypeEnum.StartEvent;\n      case 'bpmn:servicetask':\n        return NormalizedBpmnTypeEnum.ServiceTask;\n      case 'bpmn:scripttask':\n        return NormalizedBpmnTypeEnum.ScriptTask;\n      case 'bpmn:usertask':\n        return NormalizedBpmnTypeEnum.UserTask;\n      case 'bpmn:subprocess':\n        return NormalizedBpmnTypeEnum.SubProcess;\n      case 'bpmn:intermediatethrowevent':\n        return NormalizedBpmnTypeEnum.EscalationEvent;\n      case 'bpmn:sequenceflow':\n        return NormalizedBpmnTypeEnum.SequenceFlow;\n      case 'bpmn:callactivity':\n        return NormalizedBpmnTypeEnum.CallActivity;\n      default:\n        return NormalizedBpmnTypeEnum.UnknownTask;\n    }\n  }\n\n  private containsV2Elements(xml: string) {\n    const regex = /forest:description|forest:buttonColor|forest:inboxId|forest:isPlaceholder/g;\n    return regex.test(xml);\n  }\n\n  parseBpmnXml(xml: string, warningHandler: WarningHandler): WorkflowSteps {\n    const parser = new DOMParser();\n\n    const workflow: WorkflowSteps = {\n      entryPoint: null,\n      steps: {},\n    };\n\n    this.context = {\n      doc: new Document(),\n      rootElementId: null,\n      workflow,\n      warningHandler,\n      isV2: this.containsV2Elements(xml),\n    };\n\n    try {\n      this.context.doc = parser.parseFromString(xml, 'application/xml');\n      this.context.rootElementId = this.context.doc.querySelector('process').getAttribute('id');\n    } catch (e) {\n      this.warn(\n        new InvalidBpmnFileParserWarning(\n          typeof e === 'object' && 'message' in e ? (e.message as string) : JSON.stringify(e),\n        ),\n      );\n    }\n\n    this.parseBpmnFlow();\n\n    return this.context.workflow;\n  }\n\n  parseBpmnFlow() {\n    const entryPointTask = this.getEntryPoint();\n\n    if (!entryPointTask) {\n      this.warn(new EmptyProcessParserWarning());\n      return;\n    }\n\n    this.parseElementRecursively(entryPointTask);\n  }\n\n  private getEntryPoint(): Element {\n    let entryPointTask: Element;\n\n    this.query('startEvent,StartEvent').forEach((event) => {\n      if (entryPointTask) {\n        this.warn(new MultipleStartEventsParserWarning());\n        return;\n      }\n\n      const id = event.getAttribute('id') || 'start';\n      const rawText = event.getAttribute('name') || null;\n      const allOutgoings = this.findOutgoingElements(id);\n\n      if (allOutgoings.length === 0) {\n        // ignore this startEvent, there will be a warning for multiple startEvents or for no startEvent\n        return;\n      }\n      if (allOutgoings.length > 1) {\n        this.warn(new MultipleStartEventOutgoingsParserWarning(rawText || id));\n      }\n\n      [{ target: entryPointTask }] = allOutgoings;\n      this.context.workflow.entryPoint = entryPointTask.getAttribute('id');\n    });\n\n    return entryPointTask;\n  }\n\n  private findOutgoingElements(source: string): FlowWithTarget[] {\n    const flows = Array.from(\n      this.query(\n        `sequenceFlow[sourceRef=\"${source}\"],SequenceFlow[sourceRef=\"${source}\"]`,\n      ).values(),\n    );\n\n    return flows\n      .map((flow) => this.buildFlowWithTarget(flow))\n      .filter((entry): entry is FlowWithTarget => Boolean(entry));\n  }\n\n  /**\n   * Locate the BPMN element targeted by a sequence flow.\n   *\n   * First attempts a scoped query within the current subprocess. If no match is\n   * found and the flow is marked as a \"linkTo\" (`forest:isLinkTo=\"true\"`), falls\n   * back to a global DOM query to resolve cross-boundary references — i.e. flows\n   * that point to a task living in a different subprocess or in the root process.\n   *\n   * @param id - The `targetRef` attribute value of the sequence flow.\n   * @param flow - The sequence flow BPMN element.\n   * @returns The resolved target element (or `null` on duplicates / not found),\n   *          and whether the target was resolved outside the current scope.\n   */\n  private findTaskForFlow(\n    id: string,\n    flow: Element,\n  ): { target: Element | null; crossBoundary: boolean } {\n    const scopedResults = this.query(`[id=\"${id}\"]`);\n    if (scopedResults.length === 1) return { target: scopedResults[0], crossBoundary: false };\n    if (scopedResults.length > 1) {\n      this.warn(new DuplicateTaskParserWarning(id));\n      return { target: null, crossBoundary: false };\n    }\n\n    if (flow.getAttribute('forest:isLinkTo') === 'true') {\n      const globalResults = this.globalQuery(`[id=\"${id}\"]`);\n      if (globalResults.length === 1) return { target: globalResults[0], crossBoundary: true };\n      if (globalResults.length > 1) {\n        this.warn(new DuplicateTaskParserWarning(id));\n        return { target: null, crossBoundary: false };\n      }\n    }\n\n    this.warn(new TaskNotFoundParserWarning(id));\n    return { target: null, crossBoundary: false };\n  }\n\n  private buildFlowWithTarget(flow: Element): FlowWithTarget | null {\n    const { target, crossBoundary } = this.findTaskForFlow(flow.getAttribute('targetRef'), flow);\n    if (!target) return null;\n    return {\n      flowName: flow.getAttribute('name'),\n      flowId: flow.getAttribute('id'),\n      target,\n      buttonColor: flow.getAttribute('forest:buttonColor') as ActivatableButtonColor,\n      crossBoundary,\n    };\n  }\n\n  private parseElementRecursively(element: Element) {\n    const outgoingElements = this.parseElement(element);\n    outgoingElements\n      .filter((el) => !el.crossBoundary)\n      .forEach((el) => this.parseElementRecursively(el.target));\n  }\n\n  private parseElement(element: Element): FlowWithTarget[] {\n    const { workflow } = this.context;\n    const id = element.getAttribute('id');\n    if (workflow.steps[id]) return []; // skip already parsed elements, avoid infinity loops\n\n    const allOutgoings = this.findOutgoingElements(id);\n\n    switch (WorkflowBpmnParser.getNormalizedTypeForElement(element.tagName)) {\n      case NormalizedBpmnTypeEnum.Gateway:\n        return this.parseCondition(\n          element,\n          this.context.isV2 ? this.getGatewayOutgoings(element) : allOutgoings,\n        );\n      case NormalizedBpmnTypeEnum.EndEvent:\n        workflow.steps[id] = {\n          type: 'end',\n          title: element.getAttribute('name') || 'End of workflow',\n          prompt: this.getPrompt(element),\n        };\n        return allOutgoings;\n      case NormalizedBpmnTypeEnum.EscalationEvent: {\n        const { step, nextFlow } = this.buildEscalationStep(element, allOutgoings);\n        this.context.workflow.steps[id] = step;\n        return nextFlow ? [nextFlow] : [];\n      }\n      case NormalizedBpmnTypeEnum.SubProcess:\n        return [this.parseSubProcess(element, allOutgoings)].filter(Boolean);\n      case NormalizedBpmnTypeEnum.CallActivity: {\n        const { step, nextFlow } = this.buildStartSubWorkflowStep(element, allOutgoings);\n        this.context.workflow.steps[id] = step;\n        return nextFlow ? [nextFlow] : [];\n      }\n      case NormalizedBpmnTypeEnum.ServiceTask:\n      case NormalizedBpmnTypeEnum.ScriptTask:\n      case NormalizedBpmnTypeEnum.UserTask:\n      case NormalizedBpmnTypeEnum.UnknownTask: {\n        const { step, nextFlow } = this.buildTaskStep(element, allOutgoings);\n        this.context.workflow.steps[id] = step;\n        return nextFlow ? [nextFlow] : [];\n      }\n    }\n  }\n\n  private getGatewayOutgoings(element: Element): FlowWithTarget[] {\n    return [...this.context.doc.querySelector(`[id=\"${element.getAttribute('id')}\"]`).children]\n      .filter((child) => child.tagName === 'bpmn:outgoing')\n      .map((child) => {\n        const outgoingId = child.textContent;\n        const flow = this.context.doc.querySelector(\n          `sequenceFlow[id=\"${outgoingId}\"],SequenceFlow[id=\"${outgoingId}\"]`,\n        );\n        return flow ? this.buildFlowWithTarget(flow) : null;\n      })\n      .filter((entry): entry is FlowWithTarget => Boolean(entry));\n  }\n\n  private resolveNextTransition(\n    id: string,\n    title: string | null,\n    outgoings: FlowWithTarget[],\n    options?: { elementType?: string; steps?: WorkflowSteps['steps'] },\n  ): { nextFlow?: FlowWithTarget; transition: WorkflowTransition } {\n    const elementType = options?.elementType;\n\n    if (outgoings.length === 0) {\n      this.warn(new MissingEndEventParserWarning(title, elementType));\n\n      const steps = options?.steps ?? this.context.workflow.steps;\n      steps[`endEvent-${id}`] = { title: 'End of workflow', type: 'end' };\n      return {\n        transition: new WorkflowTransition({ buttonText: null, stepId: `endEvent-${id}` }),\n      };\n    }\n\n    if (outgoings.length > 1) {\n      this.warn(new MultipleTaskOutgoingsParserWarning(title, elementType));\n    }\n\n    const nextFlow = outgoings[0];\n    return {\n      nextFlow,\n      transition: new WorkflowTransition({\n        buttonText: this.getButtonTextFromOutgoing(nextFlow),\n        buttonColor: nextFlow.buttonColor,\n        stepId: nextFlow?.target.getAttribute('id'),\n      }),\n    };\n  }\n\n  private buildTaskStep(\n    element: Element,\n    outgoings: FlowWithTarget[],\n  ): { step: WorkflowTask; nextFlow?: FlowWithTarget } {\n    const title = element.getAttribute('name');\n    const id = element.getAttribute('id');\n\n    const { transition, nextFlow } = this.resolveNextTransition(id, title, outgoings);\n\n    const type = WorkflowBpmnParser.getNormalizedTypeForElement(element.tagName);\n    const step: WorkflowTask = {\n      type: 'task',\n      title,\n      prompt: this.getPrompt(element),\n      taskType:\n        type === NormalizedBpmnTypeEnum.ServiceTask || type === NormalizedBpmnTypeEnum.ScriptTask\n          ? 'ai-executed'\n          : 'guideline',\n      outgoing: transition,\n      automaticExecution: element.getAttribute('forest:automaticExecution') === 'true',\n      automaticCompletion: element.getAttribute('forest:automaticCompletion') === 'true',\n    };\n    const completionType = element.getAttribute('forest:completionType');\n    if (completionType) {\n      step.completionType = completionType as 'simple' | 'user-input';\n    }\n    const inputType = element.getAttribute('forest:inputType');\n    if (inputType) {\n      step.inputType = inputType as 'free-text';\n    }\n    const allowedTools = this.getAllowedTools(element);\n    if (allowedTools) {\n      step.allowedTools = allowedTools;\n    }\n    const mcpServerId = element.getAttribute('forest:mcpServerId');\n    if (mcpServerId) {\n      step.mcpServerId = mcpServerId;\n    }\n\n    return { step, nextFlow };\n  }\n\n  private getAllowedTools(\n    element: Element,\n  ): string[] | Promise<string[]> | (() => Promise<string[]>) | undefined {\n    const taskAlternative = element.getAttribute('forest:alternative');\n    if (!taskAlternative) return;\n\n    switch (taskAlternative as BpmnServiceTaskAlternativeEnum) {\n      case BpmnServiceTaskAlternativeEnum.GetData:\n        return [READ_SELECTED_RECORD_FIELD_TOOL_NAME];\n      case BpmnServiceTaskAlternativeEnum.LoadRelatedRecord:\n        return [GET_RELATED_DATA_TOOL_NAME];\n      case BpmnServiceTaskAlternativeEnum.TriggerAction:\n        return [EXECUTE_ACTION_ON_SELECTED_RECORD_TOOL_NAME];\n      case BpmnServiceTaskAlternativeEnum.UpdateData:\n        return [UPDATE_SELECTED_RECORD_FIELD_TOOL_NAME];\n      case BpmnServiceTaskAlternativeEnum.McpServer: {\n        const mcpServerId = element.getAttribute('forest:mcpServerId');\n        if (mcpServerId) {\n          return () =>\n            this.remoteToolsGetter(mcpServerId).then((tools) => tools.map((tool) => tool.name));\n        }\n      }\n    }\n  }\n\n  private buildEscalationStep(\n    element: Element,\n    outgoings: FlowWithTarget[],\n  ): { step: WorkflowEscalation; nextFlow?: FlowWithTarget } {\n    const title = element.getAttribute('name');\n    const id = element.getAttribute('id');\n\n    const { transition, nextFlow } = this.resolveNextTransition(id, title, outgoings);\n\n    const inboxId = element.getAttribute('forest:inboxId');\n    const step: WorkflowEscalation = {\n      type: 'escalation',\n      title,\n      prompt: this.getPrompt(element),\n      inboxId,\n      outgoing: transition,\n    };\n    return { step, nextFlow };\n  }\n\n  private buildStartSubWorkflowStep(\n    element: Element,\n    outgoings: FlowWithTarget[],\n  ): { step: StartSubWorkflow; nextFlow?: FlowWithTarget } {\n    const title = element.getAttribute('name');\n    const id = element.getAttribute('id');\n    const workflowId = element.getAttribute('calledElement');\n\n    const { transition, nextFlow } = this.resolveNextTransition(id, title, outgoings);\n\n    const step: StartSubWorkflow = {\n      type: SubWorkflowStepTypeEnum.Start,\n      title,\n      prompt: this.getPrompt(element),\n      workflowId,\n      outgoing: transition,\n    };\n    return { step, nextFlow };\n  }\n\n  private getPrompt(element: Element) {\n    const title = element.getAttribute('name');\n\n    const promptWithoutLink = this.getDescription(element) || title;\n    const regexUrl = new RegExp(REGEX_URL, 'g');\n    let match = regexUrl.exec(promptWithoutLink);\n    let promptWithLink = promptWithoutLink;\n    let indexIncrease = 0;\n    while (match) {\n      const urlWithHttp = match[0].startsWith('http') ? match[0] : `https://${match[0]}`;\n      const link = `<a data-link href=\"${urlWithHttp}\" target=\"_blank\" rel=\"noopener noreferrer\">${match[0]}</a>`;\n      const currentIndexMatching = match.index + indexIncrease;\n      const remainingUnscannedText = promptWithLink.substring(\n        currentIndexMatching + match[0].length,\n      );\n      promptWithLink = `${promptWithLink.substring(\n        0,\n        currentIndexMatching,\n      )}${link}${remainingUnscannedText}`;\n      indexIncrease += link.length - match[0].length;\n      match = regexUrl.exec(promptWithoutLink);\n    }\n    promptWithLink = promptWithLink?.replace(/\\n/g, '<br/>') ?? null;\n    return promptWithLink;\n  }\n\n  private parseCondition(element: Element, outgoings: FlowWithTarget[]): FlowWithTarget[] {\n    const { workflow } = this.context;\n    const title = element.getAttribute('name');\n    const id = element.getAttribute('id');\n\n    let newStep: WorkflowCondition | WorkflowEnd = {\n      type: 'condition',\n      title,\n      prompt: this.getPrompt(element),\n      outgoing: this.parseAndOrderOutgoings(outgoings),\n      aiDecision: element.getAttribute('forest:aiDecision') === 'true',\n    };\n\n    if (outgoings.length === 0) {\n      this.warn(new GatewayAsEndEventParserWarning(title || id));\n      newStep = {\n        title,\n        type: 'end',\n      };\n    } else if (outgoings.length === 1) {\n      this.warn(new UselessGatewayParserWarning(title || id));\n\n      this.replaceFlowsTarget(workflow, id, outgoings[0].target.getAttribute('id'));\n      return outgoings;\n    } else if (!title) {\n      this.warn(new GatewayTitleMissingWarning(id));\n    }\n\n    workflow.steps[id] = newStep;\n    return outgoings;\n  }\n\n  // TODO: Rename to parseOutgoings when editor v2 is released\n  private parseAndOrderOutgoings(outgoings: FlowWithTarget[]): WorkflowTransition[] {\n    const orderedOutgoings = this.context.isV2\n      ? outgoings\n      : // eslint-disable-next-line sonarjs/no-misleading-array-reverse\n        outgoings.sort((a, b) => {\n          const aPos = this.getLabelPosition(a.flowId);\n          const bPos = this.getLabelPosition(b.flowId);\n          if (aPos === null || bPos === null) return 0;\n          if (aPos.x === bPos.x) {\n            return aPos.y - bPos.y;\n          }\n          return aPos.x - bPos.x;\n        });\n\n    return orderedOutgoings.map(\n      (outgoing) =>\n        new WorkflowTransition({\n          answer: outgoing.flowName || outgoing.target.getAttribute('name'),\n          buttonColor: outgoing.buttonColor,\n          buttonText: outgoing.flowName || outgoing.target.getAttribute('name'),\n          stepId: outgoing.target.getAttribute('id'),\n        }),\n    );\n  }\n\n  private getLabelPosition(id: string) {\n    const labelBounds = this.globalQuery(`BPMNEdge[bpmnElement=\"${id}\"] > BPMNLabel > Bounds`);\n    if (labelBounds.length === 1) {\n      return {\n        x: parseInt(labelBounds[0].getAttribute('x'), 10),\n        y: parseInt(labelBounds[0].getAttribute('y'), 10),\n      };\n    }\n    return null;\n  }\n\n  // redirect to the element \"newTarget\" from all the elements in the workflow that currently redirect to \"oldTarget\"\n  private replaceFlowsTarget(workflow: WorkflowSteps, oldTarget: string, newTarget: string) {\n    Object.keys(workflow.steps).forEach((stepId) => {\n      const step = workflow.steps[stepId];\n      if (step.type === 'end') return;\n      const outgoing = findOutgoing(step.outgoing, oldTarget);\n      if (outgoing) {\n        outgoing.stepId = newTarget;\n      }\n    });\n  }\n\n  private parseSubProcess(element: Element, outgoings: FlowWithTarget[]): FlowWithTarget {\n    const subprocessId = element.getAttribute('id');\n    const subprocessName = element.getAttribute('name');\n\n    const subProcessParserContext: ParserContext = {\n      doc: this.context.doc,\n      rootElementId: subprocessId,\n      workflow: {\n        entryPoint: null,\n        steps: {},\n      },\n      warningHandler: this.context.warningHandler,\n      isV2: this.context.isV2,\n    };\n\n    const subprocessParser = new WorkflowBpmnParser(this.remoteToolsGetter.bind(this));\n    subprocessParser.context = subProcessParserContext;\n    subprocessParser.parseBpmnFlow();\n\n    this.redirectStep(this.context.workflow.steps, {\n      oldTarget: subprocessId,\n      newTarget: subProcessParserContext.workflow.entryPoint,\n    });\n\n    const subProcessSteps = subProcessParserContext.workflow.steps;\n\n    const firstTask = subProcessSteps[subProcessParserContext.workflow.entryPoint];\n\n    if (!firstTask) {\n      this.warn(new SubprocessNotStartingWithTaskParserWarning());\n      return outgoings[0];\n    }\n\n    if (subprocessName) {\n      firstTask.title = subprocessName;\n    }\n\n    if (firstTask.type !== 'task') {\n      this.warn(new SubprocessNotStartingWithTaskParserWarning());\n    }\n\n    const { nextFlow, transition } = this.getSubProcessOutgoing({\n      outgoings,\n      subprocessName,\n      subprocessId,\n      subProcessSteps,\n    });\n\n    this.saveSubprocessIntoWorkflow({\n      firstTaskId: subProcessParserContext.workflow.entryPoint,\n      subProcessOutgoing: transition,\n      subProcessSteps,\n    });\n\n    this.parseCrossBoundaryTargets(subProcessSteps);\n\n    return nextFlow;\n  }\n\n  /**\n   * Replaces all references to \"oldTarget\" with references to \"newTarget\".\n   * Used to replace references to a subprocess element with references to the first task of the subprocess.\n   * @param allSteps: list of all workflowSteps\n   * @param targets: {oldTarget: string, newTarget: string}\n   */\n  private redirectStep(\n    allSteps: WorkflowSteps['steps'],\n    { oldTarget, newTarget }: { oldTarget: string; newTarget: string },\n  ) {\n    if (this.context.workflow.entryPoint === oldTarget) {\n      this.context.workflow.entryPoint = newTarget;\n    }\n\n    Object.keys(allSteps).forEach((stepId) => {\n      const step = allSteps[stepId];\n      this.executeOnOutgoings(step, (outgoing) => {\n        if (outgoing.stepId === oldTarget) {\n          outgoing.stepId = newTarget;\n        }\n      });\n    });\n  }\n\n  private getSubProcessOutgoing({\n    outgoings,\n    subprocessName,\n    subprocessId,\n    subProcessSteps,\n  }: {\n    outgoings: FlowWithTarget[];\n    subprocessName: string;\n    subprocessId: string;\n    subProcessSteps: WorkflowSteps['steps'];\n  }): { transition: WorkflowTransition; nextFlow: FlowWithTarget } {\n    const { transition, nextFlow } = this.resolveNextTransition(\n      subprocessId,\n      subprocessName,\n      outgoings,\n      {\n        elementType: 'subprocess',\n        steps: subProcessSteps,\n      },\n    );\n\n    // Preserve subprocess button text behavior: use only the flow label if any.\n    if (outgoings.length > 0) {\n      return {\n        transition: new WorkflowTransition({\n          buttonText: outgoings[0]?.flowName || null,\n          stepId: transition.stepId,\n        }),\n        nextFlow,\n      };\n    }\n\n    return { nextFlow, transition };\n  }\n\n  private saveSubprocessIntoWorkflow({\n    subProcessSteps,\n    subProcessOutgoing,\n    firstTaskId,\n  }: {\n    subProcessSteps: WorkflowSteps['steps'];\n    subProcessOutgoing: WorkflowTransition;\n    firstTaskId: string;\n  }) {\n    Object.keys(subProcessSteps).forEach((stepId) => {\n      const step = subProcessSteps[stepId];\n      if (step.type === 'end') {\n        return;\n      }\n      this.context.workflow.steps[stepId] = step;\n\n      if (stepId !== firstTaskId && step.type === 'task') {\n        step.isSubTask = true;\n      }\n\n      // replace subProcess endEvent with redirection to next step\n      this.executeOnOutgoings(step, (outgoing) => {\n        const outgoingStep = subProcessSteps[outgoing.stepId];\n        if (outgoingStep?.type === 'end') {\n          outgoing.stepId = subProcessOutgoing.stepId;\n          outgoing.buttonText = subProcessOutgoing.buttonText;\n        }\n      });\n    });\n  }\n\n  /**\n   * Resolve and parse steps that are referenced by outgoing flows within a subprocess\n   * but belong to a different subprocess or to the root process.\n   *\n   * This handles \"linkTo\" connections that cross subprocess boundaries: when a flow\n   * inside a subprocess targets a step that hasn't been parsed yet (because it lives\n   * outside the current scope), this method finds those targets in the global BPMN DOM\n   * and triggers their recursive parsing so they are available in the workflow graph.\n   *\n   * @param subProcessSteps - The already-parsed steps of the current subprocess.\n   */\n  private parseCrossBoundaryTargets(subProcessSteps: WorkflowSteps['steps']) {\n    const crossBoundaryStepIds = new Set<string>();\n\n    Object.values(subProcessSteps)\n      .filter((step) => step.type !== 'end')\n      .forEach((step) => {\n        this.executeOnOutgoings(step, (outgoing) => {\n          if (\n            outgoing.stepId\n            && !subProcessSteps[outgoing.stepId]\n            && !this.context.workflow.steps[outgoing.stepId]\n          ) {\n            crossBoundaryStepIds.add(outgoing.stepId);\n          }\n        });\n      });\n\n    [...crossBoundaryStepIds]\n      .map((stepId) => {\n        const results = this.globalQuery(`[id=\"${stepId}\"]`);\n        if (results.length === 0) {\n          this.warn(new TaskNotFoundParserWarning(stepId));\n          return null;\n        }\n        if (results.length > 1) {\n          this.warn(new DuplicateTaskParserWarning(stepId));\n          return null;\n        }\n        return results[0];\n      })\n      .filter((el): el is Element => Boolean(el))\n      .forEach((element) => this.parseElementRecursively(element));\n  }\n\n  private getButtonTextFromOutgoing(outgoing?: FlowWithTarget) {\n    if (outgoing?.flowName) return outgoing?.flowName;\n    return null;\n  }\n\n  private executeOnOutgoings(\n    step: MixedWorkflowStep,\n    callback: (outgoing: WorkflowTransition) => void,\n  ) {\n    if (!('outgoing' in step)) return;\n    if ('length' in step.outgoing && step.outgoing.length > 0) {\n      step.outgoing.forEach((outgoing) => {\n        callback(outgoing);\n      });\n    } else {\n      callback(step.outgoing as WorkflowTransition);\n    }\n  }\n\n  private query(query: string) {\n    return this.context.doc.querySelectorAll(`[id=\"${this.context.rootElementId}\"] > ${query}`);\n  }\n\n  private globalQuery(query: string) {\n    return this.context.doc.querySelectorAll(query);\n  }\n}\n","/* eslint-disable max-classes-per-file */\n\nexport class ParserWarning {\n  title: string;\n  subtitle?: string;\n  criticality?: 'error' | 'warning';\n\n  constructor(options: { title: string; subtitle?: string; criticality?: 'error' | 'warning' }) {\n    this.title = options.title;\n    this.subtitle = options.subtitle;\n    this.criticality = options.criticality;\n  }\n}\n\nexport class CorruptedFileBpmnParserWarning extends ParserWarning {\n  constructor(subtitle: string) {\n    super({\n      title: 'BPMN file corrupted',\n      subtitle,\n      criticality: 'error',\n    });\n  }\n}\n\nexport class InvalidBpmnFileParserWarning extends CorruptedFileBpmnParserWarning {}\n\nexport class TaskNotFoundParserWarning extends CorruptedFileBpmnParserWarning {\n  constructor(taskId: string) {\n    super(`No task found for id \"${taskId}\".`);\n  }\n}\n\nexport class DuplicateTaskParserWarning extends CorruptedFileBpmnParserWarning {\n  constructor(taskId: string) {\n    super(`Multiple tasks found for id \"${taskId}\"`);\n  }\n}\n\nexport class EmptyProcessParserWarning extends ParserWarning {\n  constructor() {\n    super({\n      title: 'Empty process',\n      subtitle:\n        'Please ensure your process (and sub-processes) have at least a start event and a task.',\n      criticality: 'error',\n    });\n  }\n}\n\nexport class MultipleStartEventsParserWarning extends ParserWarning {\n  constructor() {\n    super({\n      title: 'Multiple start events detected.',\n      subtitle: 'Please remove all but one.',\n      criticality: 'error',\n    });\n  }\n}\n\nexport class MultipleStartEventOutgoingsParserWarning extends ParserWarning {\n  constructor(eventName: string) {\n    super({\n      title: `Multiple outgoing flows from the start event: \"${eventName}\".`,\n      subtitle: 'Please leave only one outgoing flow from the start event.',\n      criticality: 'error',\n    });\n  }\n}\n\nexport class MissingEndEventParserWarning extends ParserWarning {\n  constructor(taskName: string, elementType = 'task') {\n    super({\n      title: `No flow going out of ${elementType}: \"${taskName}\".`,\n      subtitle: 'Please add an EndEvent after it.',\n      criticality: 'warning',\n    });\n  }\n}\n\nexport class MultipleTaskOutgoingsParserWarning extends ParserWarning {\n  constructor(taskName: string, elementType = 'task') {\n    super({\n      title: `Multiple outgoing flows from the ${elementType}: \"${taskName}\".`,\n      subtitle: `Please leave only one outgoing flow from any ${elementType}.`,\n      criticality: 'error',\n    });\n  }\n}\n\nexport class MultipleAnnotationsParserWarning extends ParserWarning {\n  constructor(taskName: string) {\n    super({\n      title: `Multiple annotations found for task \"${taskName}\".`,\n      subtitle: 'Please leave only one annotation per task.',\n      criticality: 'error',\n    });\n  }\n}\n\nexport class GatewayAsEndEventParserWarning extends ParserWarning {\n  constructor(title: string) {\n    super({\n      title: `No flow going out of gateway: \"${title}\".`,\n      subtitle: 'Please replace it with an endEvent.',\n      criticality: 'warning',\n    });\n  }\n}\n\nexport class GatewayTitleMissingWarning extends ParserWarning {\n  constructor(id: string) {\n    super({\n      title: `Gateway without name: \"${id}\".`,\n      subtitle:\n        'Please add a name to the gateway. It should be a question that will be asked to the user.',\n      criticality: 'error',\n    });\n  }\n}\n\nexport class UselessGatewayParserWarning extends ParserWarning {\n  constructor(title: string) {\n    super({\n      title: `Single outgoing flow from the gateway: \"${title}\".`,\n      subtitle: 'Please remove it or replace it with a task.',\n      criticality: 'warning',\n    });\n  }\n}\n\nexport class SubprocessNotStartingWithTaskParserWarning extends ParserWarning {\n  constructor() {\n    super({\n      title: 'Subprocess should start with a task',\n      subtitle: 'Please make sure all subprocesses start with a start event followed by a task.',\n      criticality: 'warning',\n    });\n  }\n}\n","import type RunListenerInterface from 'client/features/workflow/services/standalone-package/interfaces/run-listener-interface';\nimport type StateInterface from 'client/features/workflow/services/standalone-package/interfaces/state-interface';\nimport type { WorkflowStateData } from 'client/features/workflow/services/standalone-package/services/workflow-engine';\nimport type { RunUpdate } from 'client/features/workflow/services/standalone-package/types/run-update';\nimport type { WorkflowStep } from 'client/features/workflow/services/standalone-package/types/steps';\nimport type {\n  Workflow,\n  WorkflowSteps,\n  WorkflowWithSteps,\n} from 'client/features/workflow/services/standalone-package/types/workflow';\nimport type { WorkflowRun } from 'client/features/workflow/services/standalone-package/types/workflow-run';\nimport type { RawStepHistory } from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type { AiAgentContextAttributes } from 'client/features/workflow/types/workflow-ai-agent-context';\nimport type {\n  MixedWorkflowStep,\n  StartSubWorkflow,\n} from 'client/features/workflow/types/workflow-step';\n\nimport WorkflowBpmnParser from 'client/features/workflow/services/standalone-package/services/parser-module/bpmn-parser';\nimport { WorkflowResumeError } from 'client/features/workflow/services/standalone-package/types/errors';\nimport { RunUpdateEnum } from 'client/features/workflow/services/standalone-package/types/run-update';\nimport WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport { getStepId } from 'client/features/workflow/services/standalone-package/utils';\nimport AiAgentContext from 'client/features/workflow/types/workflow-ai-agent-context';\nimport { SubWorkflowStepTypeEnum } from 'client/features/workflow/types/workflow-step';\n\nexport default class StateService {\n  readonly stateInterface: StateInterface;\n  readonly runListenerInterface: RunListenerInterface;\n\n  constructor(args: {\n    stateInterface: StateInterface;\n    runListenerInterface: RunListenerInterface;\n  }) {\n    this.stateInterface = args.stateInterface;\n    this.runListenerInterface = args.runListenerInterface;\n  }\n\n  async getBpmnSteps(workflow: Workflow, version?: string): Promise<WorkflowSteps> {\n    const actualVersion = version || workflow.bpmnAwsS3Identifier;\n    const cachedSteps = await this.stateInterface.getBpmnSteps(workflow.id, actualVersion);\n    if (cachedSteps) {\n      return cachedSteps;\n    }\n\n    const bpmn = await this.stateInterface.getBpmnFile(\n      workflow.collectionId,\n      workflow.id,\n      actualVersion,\n    );\n\n    const workflowSteps = new WorkflowBpmnParser(\n      this.stateInterface.getRemoteTools.bind(this.stateInterface),\n    ).parseBpmnXml(bpmn, () => {});\n\n    await this.stateInterface.setBpmnSteps(workflow.id, version, workflowSteps);\n\n    return workflowSteps;\n  }\n\n  async pushStepInHistory(\n    run: WorkflowRun<WorkflowStepHistory[]>,\n    stepHistory: WorkflowStepHistory,\n  ): Promise<void> {\n    await this.pushStepsInHistory(run, [stepHistory]);\n  }\n\n  async pushStepsInHistory(\n    run: WorkflowRun<WorkflowStepHistory[]>,\n    stepHistories: WorkflowStepHistory[],\n  ): Promise<void> {\n    if (stepHistories.length === 0) {\n      return;\n    }\n\n    run.workflowHistory.push(...stepHistories);\n\n    try {\n      await this.stateInterface.saveWorkflowRun(run);\n    } catch (error) {\n      run.workflowHistory.splice(-stepHistories.length);\n      throw error;\n    }\n\n    await this.runListenerInterface.onRunUpdate(\n      run.id,\n      stepHistories.map((step) => ({ operation: RunUpdateEnum.AddStep, step })),\n    );\n  }\n\n  async updateStepHistory(\n    run: WorkflowRun<WorkflowStepHistory[]>,\n    stepIndex: number,\n    stepHistory?: Partial<WorkflowStepHistory<WorkflowStep>>,\n    stepHistoryContext?: Partial<WorkflowStepHistory<WorkflowStep>['context']>,\n  ): Promise<WorkflowStepHistory<WorkflowStep>> {\n    const updates: RunUpdate[] = [];\n    const history = run.workflowHistory;\n\n    if (stepHistoryContext) {\n      history[stepIndex].context = {\n        ...history[stepIndex].context,\n        ...stepHistoryContext,\n      } as WorkflowStepHistory<WorkflowStep>['context'];\n\n      updates.push({\n        operation: RunUpdateEnum.UpdateStepContext,\n        stepIndex,\n        context: stepHistoryContext,\n      });\n    }\n\n    if (stepHistory) {\n      history[stepIndex] = {\n        ...history[stepIndex],\n        ...stepHistory,\n      } as WorkflowStepHistory<WorkflowStep>;\n\n      updates.push({\n        operation: RunUpdateEnum.UpdateStep,\n        step: history[stepIndex],\n      });\n    }\n\n    // save the run on the DB\n    await this.stateInterface.saveWorkflowRun(run);\n\n    // send update to the listener (frontend)\n    await this.runListenerInterface.onRunUpdate(run.id, updates);\n\n    return run.workflowHistory[stepIndex] as WorkflowStepHistory<WorkflowStep>;\n  }\n\n  async getWorkflowData(\n    runId: string,\n    workflowWithSteps: WorkflowWithSteps,\n  ): Promise<{\n    run: WorkflowRun<WorkflowStepHistory[]>;\n    childrenWorkflowsSteps: Record<string, WorkflowSteps>;\n  }> {\n    let workflowRun = await this.stateInterface.getWorkflowRun(runId);\n    if (!workflowRun) {\n      workflowRun = await this.stateInterface.createWorkflowRun({\n        workflowId: workflowWithSteps.id,\n        bpmnVersion: workflowWithSteps.bpmnAwsS3Identifier,\n        collectionId: workflowWithSteps.collectionId,\n        selectedRecordId: '',\n      });\n    }\n\n    const rawHistory = workflowRun.workflowHistory;\n\n    const childrenWorkflowsSteps = await this.getChildrenWorkflowSteps(\n      rawHistory,\n      workflowWithSteps,\n    );\n\n    const history = this.buildHistoryFromWorkflowRun(\n      workflowRun,\n      workflowWithSteps,\n      childrenWorkflowsSteps,\n    );\n\n    return { run: { ...workflowRun, workflowHistory: history }, childrenWorkflowsSteps };\n  }\n\n  async getWorkflowWithSteps(\n    workflowId: string,\n    version?: string,\n  ): Promise<WorkflowWithSteps | null> {\n    const workflow = await this.stateInterface.getWorkflow(workflowId);\n    if (!workflow) {\n      return null;\n    }\n    const steps = await this.getBpmnSteps(workflow, version);\n    return {\n      ...workflow,\n      ...steps,\n    };\n  }\n\n  public replaceEndStepsWithCloseSubWorkflow(\n    workflowSteps: WorkflowSteps,\n    parentStep: StartSubWorkflow,\n    currentChildrenWorkflowId?: string,\n  ) {\n    Object.entries(workflowSteps.steps).forEach(([stepId, step]) => {\n      if (step.type === 'end') {\n        workflowSteps.steps[stepId] = {\n          type: SubWorkflowStepTypeEnum.Close,\n          title: parentStep.title,\n          outgoing: parentStep.outgoing,\n          parentWorkflowId: currentChildrenWorkflowId || null,\n        };\n      }\n    });\n  }\n\n  public getStepById(\n    stateData: Pick<WorkflowStateData, 'workflow' | 'childrenWorkflowsSteps'>,\n    stepId: string,\n    childrenWorkflowId?: string,\n  ): MixedWorkflowStep {\n    if (childrenWorkflowId) {\n      return stateData.childrenWorkflowsSteps[childrenWorkflowId]?.steps[stepId];\n    }\n    return stateData.workflow.steps[stepId];\n  }\n\n  private async getChildrenWorkflowSteps(\n    rawHistory: RawStepHistory[],\n    workflowWithSteps: WorkflowWithSteps,\n  ): Promise<Record<string, WorkflowSteps>> {\n    // Find all StartSubWorkflow steps in history that have a stored version\n    const subWorkflowHistorySteps = rawHistory.filter((h) => {\n      const step = workflowWithSteps.steps[h.stepName];\n      return step?.type === SubWorkflowStepTypeEnum.Start && h.context?.subWorkflowVersion;\n    });\n\n    // Fetch all child workflows in parallel\n    const results = await Promise.all(\n      subWorkflowHistorySteps.map(async (historyStep) => {\n        const step = workflowWithSteps.steps[historyStep.stepName] as StartSubWorkflow;\n        const version = historyStep.context.subWorkflowVersion as string;\n\n        const subWorkflowWithSteps = await this.getWorkflowWithSteps(step.workflowId, version);\n        if (!subWorkflowWithSteps) {\n          throw new WorkflowResumeError(\n            `Corrupted workflow run: sub-workflow with id \"${step.workflowId}\" doesn't exist.`,\n          );\n        }\n\n        // TODO: legacy service was replacing endSteps with CloseSubWorkflow steps.\n        // As step execution is now handled by dedicated services, it will be the role of the end step to know\n        //   if it should go out of subworkflow or end the workflow.\n        this.replaceEndStepsWithCloseSubWorkflow(\n          subWorkflowWithSteps,\n          step,\n          historyStep.childrenWorkflowId,\n        );\n\n        return subWorkflowWithSteps;\n      }),\n    );\n\n    // Store all results in state\n    const childrenWorkflowsSteps: Record<string, WorkflowSteps> = {};\n    results.forEach(({ id, entryPoint, steps }) => {\n      childrenWorkflowsSteps[id] = { entryPoint, steps };\n    });\n\n    return childrenWorkflowsSteps;\n  }\n\n  private buildHistoryFromWorkflowRun(\n    workflowRun: WorkflowRun<RawStepHistory[]>,\n    workflowWithSteps: WorkflowWithSteps,\n    childrenWorkflowsSteps: Record<string, WorkflowSteps>,\n  ): WorkflowStepHistory[] {\n    const baseStateData = {\n      workflow: workflowWithSteps,\n      childrenWorkflowsSteps,\n    };\n\n    return workflowRun.workflowHistory.map((rawHistoryStep, index) => {\n      // Get step from child workflow if childrenWorkflowId is set, otherwise from root workflow\n      const step = this.getStepById(\n        baseStateData,\n        getStepId(rawHistoryStep),\n        rawHistoryStep.childrenWorkflowId,\n      );\n\n      if (!step) {\n        throw new WorkflowResumeError(\n          `Corrupted workflow run: step \"${rawHistoryStep.stepName}\" doesn't exist in actual workflow.`,\n        );\n      }\n\n      const historyStep = new WorkflowStepHistory({\n        stepId: getStepId(rawHistoryStep),\n        step,\n        done: rawHistoryStep.done ?? true,\n        cancelled: rawHistoryStep.cancelled ?? false,\n        revised: rawHistoryStep.revised ?? false,\n        isLoading: rawHistoryStep.isLoading ?? false,\n        stepIndex: rawHistoryStep.stepIndex ?? index,\n        childrenWorkflowId: rawHistoryStep.childrenWorkflowId,\n        context: {\n          aiAgentContext: new AiAgentContext(\n            rawHistoryStep.context.aiAgentContext as AiAgentContextAttributes,\n          ),\n          selectedOption: rawHistoryStep.context.selectedOption,\n          userInput: rawHistoryStep.context.userInput,\n          escalationState: rawHistoryStep.context.escalationState,\n          subWorkflowVersion: rawHistoryStep.context.subWorkflowVersion,\n        },\n      });\n\n      this.stateInterface.ensureStepValidity(historyStep);\n\n      return historyStep;\n    });\n  }\n}\n","import type { WorkflowRecord } from '../types/workflow-record';\nimport type { ToolCall } from '@langchain/core/messages/tool';\nimport type { StructuredTool } from '@langchain/core/tools';\nimport type { ToolExecution } from 'client/features/ai/types/ai-steps';\nimport type LlmInterface from 'client/features/workflow/services/standalone-package/interfaces/llm-interface';\nimport type RunListenerInterface from 'client/features/workflow/services/standalone-package/interfaces/run-listener-interface';\nimport type StateInterface from 'client/features/workflow/services/standalone-package/interfaces/state-interface';\nimport type { AvailableRecord } from 'client/features/workflow/services/standalone-package/services/ai-module/tool-select-record';\nimport type {\n  Workflow,\n  WorkflowSteps,\n  WorkflowWithSteps,\n} from 'client/features/workflow/services/standalone-package/types/workflow';\nimport type { WorkflowRun } from 'client/features/workflow/services/standalone-package/types/workflow-run';\nimport type { StartSubWorkflow } from 'client/features/workflow/types/workflow-step';\n\nimport AiService from 'client/features/workflow/services/standalone-package/services/ai-module/ai-service';\nimport StateService from 'client/features/workflow/services/standalone-package/services/state-service';\nimport {\n  WorkflowNotFound,\n  WorkflowStepError,\n} from 'client/features/workflow/services/standalone-package/types/errors';\nimport { WorkflowStep } from 'client/features/workflow/services/standalone-package/types/steps';\nimport WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\n\nexport class WorkflowStateData {\n  workflow: WorkflowWithSteps;\n  run: WorkflowRun<WorkflowStepHistory[]>;\n  childrenWorkflowsSteps: Record<string, WorkflowSteps>;\n  // TODO: add workflow records\n\n  constructor(args: {\n    workflow: WorkflowWithSteps;\n    run: WorkflowRun<WorkflowStepHistory[]>;\n    childrenWorkflowsSteps: Record<string, WorkflowSteps>;\n  }) {\n    this.workflow = args.workflow;\n    this.run = args.run;\n    this.childrenWorkflowsSteps = args.childrenWorkflowsSteps;\n  }\n\n  get history() {\n    return this.run.workflowHistory || [];\n  }\n\n  get currentStep() {\n    return this.history[this.history.length - 1];\n  }\n}\n\nexport class WorkflowEngine {\n  readonly stateService: StateService;\n  readonly aiService: AiService;\n\n  constructor(args: {\n    llmInterface: LlmInterface;\n    stateInterface: StateInterface;\n    runListenerInterface: RunListenerInterface;\n  }) {\n    this.aiService = new AiService(args);\n    this.stateService = new StateService({\n      stateInterface: args.stateInterface,\n      runListenerInterface: args.runListenerInterface,\n    });\n  }\n\n  async initWorkflowStateData(workflowId: string, runId: string): Promise<WorkflowStateData> {\n    const workflow = await this.stateService.getWorkflowWithSteps(workflowId);\n    if (!workflow) {\n      throw new WorkflowNotFound(`Workflow with id ${workflowId} not found`);\n    }\n    const { run, childrenWorkflowsSteps } = await this.stateService.getWorkflowData(\n      runId,\n      workflow,\n    );\n\n    return new WorkflowStateData({\n      workflow,\n      run,\n      childrenWorkflowsSteps,\n    });\n  }\n\n  async startWorkflowStep(\n    workflowId: string,\n    runId: string,\n    stepId: string,\n    workflowStateData?: WorkflowStateData,\n  ) {\n    const stateData = workflowStateData ?? (await this.initWorkflowStateData(workflowId, runId));\n\n    // get step data from parsed BPMN\n    const step = stateData.workflow.steps[stepId];\n    if (!step) {\n      console.error('Step not found in workflow definition', {\n        stepId,\n        steps: stateData.workflow.steps,\n      });\n      throw new WorkflowStepError(`Step with id ${stepId} not found in workflow definition`);\n    }\n\n    const newStepIndex = stateData.history.length;\n    const stepHistory = new WorkflowStepHistory({\n      stepId,\n      step,\n      isLoading: step.automaticExecution,\n      stepIndex: newStepIndex,\n      done: false,\n    });\n    await this.stateService.pushStepInHistory(stateData.run, stepHistory);\n\n    // start step execution, trigger workflowState update\n    await this.executeCurrentStep(stateData);\n  }\n\n  async executeCurrentStep(stateData: WorkflowStateData, userInput?: Record<string, unknown>) {\n    const lastStepHistory = this.ensureLastStepIsGood(stateData.history);\n    const executionService = lastStepHistory.step.executionService;\n\n    const { nextStepId } = await executionService.executeStep(lastStepHistory, userInput);\n\n    if (nextStepId) {\n      this.startWorkflowStep(stateData.workflow.id, stateData.run.id, nextStepId, stateData);\n    }\n  }\n\n  private ensureLastStepIsGood(history: WorkflowStepHistory[]): WorkflowStepHistory<WorkflowStep> {\n    const lastStepHistory = history[history.length - 1];\n    if (!(lastStepHistory.step instanceof WorkflowStep)) {\n      console.error('Legacy step cannot be processed by the new workflow engine', lastStepHistory);\n      throw new WorkflowStepError('Legacy step cannot be processed by the new workflow engine');\n    }\n    return lastStepHistory as WorkflowStepHistory<WorkflowStep>;\n  }\n\n  // Pass-through methods for StateService\n\n  async getBpmnSteps(workflow: Workflow, version?: string): Promise<WorkflowSteps> {\n    return this.stateService.getBpmnSteps(workflow, version);\n  }\n\n  replaceEndStepsWithCloseSubWorkflow(\n    workflowSteps: WorkflowSteps,\n    parentStep: StartSubWorkflow,\n    currentChildrenWorkflowId?: string,\n  ): void {\n    this.stateService.replaceEndStepsWithCloseSubWorkflow(\n      workflowSteps,\n      parentStep,\n      currentChildrenWorkflowId,\n    );\n  }\n\n  async pushStepInHistory(\n    run: WorkflowRun<WorkflowStepHistory[]>,\n    stepHistory: WorkflowStepHistory,\n  ): Promise<void> {\n    return this.stateService.pushStepInHistory(run, stepHistory);\n  }\n\n  async pushStepsInHistory(\n    run: WorkflowRun<WorkflowStepHistory[]>,\n    stepHistories: WorkflowStepHistory[],\n  ): Promise<void> {\n    return this.stateService.pushStepsInHistory(run, stepHistories);\n  }\n\n  async getWorkflowData(\n    runId: string,\n    workflowWithSteps: WorkflowWithSteps,\n  ): Promise<{\n    run: WorkflowRun<WorkflowStepHistory[]>;\n    childrenWorkflowsSteps: Record<string, WorkflowSteps>;\n  }> {\n    return this.stateService.getWorkflowData(runId, workflowWithSteps);\n  }\n\n  // Pass-through methods for AiService\n\n  async askAiToSelectARecord<T extends AvailableRecord = AvailableRecord>(\n    userRequest: string,\n    availableRecords: T[],\n  ): Promise<T> {\n    return this.aiService.askAiToSelectARecord(userRequest, availableRecords);\n  }\n\n  async invokeTool(tool: StructuredTool, toolCall: ToolCall): Promise<ToolExecution> {\n    return this.aiService.invokeTool(tool, toolCall);\n  }\n\n  async formatToolExecutionResponse(\n    selectedRecord: WorkflowRecord,\n    toolCall: ToolCall,\n    toolExecution: ToolExecution,\n    userRequest?: string,\n  ): Promise<ToolExecution> {\n    return this.aiService.formatToolExecutionResponse(\n      selectedRecord,\n      toolCall,\n      toolExecution,\n      userRequest,\n    );\n  }\n}\n","import { WorkflowStepContext } from 'client/features/workflow/services/standalone-package/types/workflow-step-context';\n\nexport class WorkflowConditionStepContext extends WorkflowStepContext<\n  {\n    selectedOption?: string;\n  },\n  { answer?: string }\n> {}\n","import type { WorkflowConditionStep } from 'client/features/workflow/services/standalone-package/step-modules/condition-step/step-type';\nimport type { WorkflowTransition } from 'client/features/workflow/services/standalone-package/types/transition';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\n\nimport { WorkflowConditionStepContext } from 'client/features/workflow/services/standalone-package/step-modules/condition-step/context';\nimport { AbstractStepExecutionService } from 'client/features/workflow/services/standalone-package/step-modules/generic-class';\n\ntype ConditionStepHistory = WorkflowStepHistory<\n  WorkflowConditionStep,\n  WorkflowConditionStepContext\n>;\n\nexport class ConditionStepService extends AbstractStepExecutionService<\n  WorkflowConditionStep,\n  WorkflowConditionStepContext\n> {\n  createStepContext(context: WorkflowConditionStepContext): WorkflowConditionStepContext {\n    return new WorkflowConditionStepContext(context);\n  }\n\n  executeStep(\n    stepHistory: ConditionStepHistory,\n    userInput?: Record<string, unknown>,\n  ): {\n    stepHistory?: ConditionStepHistory;\n    nextStepId?: string;\n  } {\n    if (stepHistory.step.automaticCompletion) return this.decideWithAi(stepHistory);\n\n    return this.executeUserDecision(stepHistory, userInput);\n  }\n\n  private decideWithAi(stepHistory: ConditionStepHistory): {\n    stepHistory?: ConditionStepHistory;\n    nextStepId?: string;\n  } {\n    // TO DO: build tool to ask AI for decision & use it to invoke AI\n    const aiDecision: string = undefined;\n\n    const selectedOption = stepHistory.step.outgoing.find(\n      (transition) => transition.stepId === aiDecision,\n    );\n\n    return this.updateHistoryWithDecision(stepHistory, selectedOption);\n  }\n\n  private executeUserDecision(\n    stepHistory: ConditionStepHistory,\n    userInput: Record<string, unknown>,\n  ): {\n    stepHistory?: ConditionStepHistory;\n    nextStepId?: string;\n  } {\n    if (!('answer' in userInput)) {\n      stepHistory.context.error = 'Waiting for user to select an option';\n      return { stepHistory };\n    }\n\n    const selectedOption = stepHistory.step.outgoing.find(\n      (transition) => transition.answer === userInput.answer,\n    );\n\n    return this.updateHistoryWithDecision(stepHistory, selectedOption);\n  }\n\n  private updateHistoryWithDecision(\n    stepHistory: ConditionStepHistory,\n    decision: WorkflowTransition,\n  ) {\n    if (decision) {\n      stepHistory.context.executionParams = { answer: decision.answer };\n      stepHistory.context.executionResult = { selectedOption: decision.stepId };\n      return { stepHistory, nextStepId: decision.stepId };\n    }\n\n    stepHistory.context.error = 'Answer does not correspond to any option';\n    return { stepHistory };\n  }\n}\n","import type { WorkflowEngine } from 'client/features/workflow/services/standalone-package/services/workflow-engine';\nimport type {\n  WorkflowStepArgs,\n  WorkflowStepTypeEnum,\n} from 'client/features/workflow/services/standalone-package/types/steps';\nimport type { WorkflowTransition } from 'client/features/workflow/services/standalone-package/types/transition';\n\nimport { ConditionStepService } from 'client/features/workflow/services/standalone-package/step-modules/condition-step/execution-service';\nimport { WorkflowStep } from 'client/features/workflow/services/standalone-package/types/steps';\n\nexport class WorkflowConditionStep extends WorkflowStep {\n  declare readonly type: WorkflowStepTypeEnum.Condition;\n  declare readonly outgoing: WorkflowTransition[];\n  declare readonly executionService: ConditionStepService;\n\n  constructor(args: WorkflowStepArgs, workflowEngine: WorkflowEngine) {\n    super(args, workflowEngine);\n  }\n\n  buildExecutionService(workflowEngine: WorkflowEngine) {\n    return new ConditionStepService(workflowEngine);\n  }\n}\n","import type { WorkflowEngine } from 'client/features/workflow/services/standalone-package/services/workflow-engine';\nimport type { WorkflowStep } from 'client/features/workflow/services/standalone-package/types/steps';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type { ContextForStep } from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\n\nexport abstract class AbstractStepExecutionService<\n  Step extends WorkflowStep = WorkflowStep,\n  Context extends ContextForStep<Step> = ContextForStep<Step>,\n> {\n  workflowEngine: WorkflowEngine;\n\n  constructor(workflowEngine: WorkflowEngine) {\n    this.workflowEngine = workflowEngine;\n  }\n\n  /**\n   * Start or continue the step execution once all the step parameters are available\n   * returns the stepHistory, in completed state or in progress, as a new object\n   * only return the nextStepId when the step is completed\n   * @param step\n   */\n  abstract executeStep(\n    stepHistory: WorkflowStepHistory<Step, Context>,\n    userInput?: Record<string, unknown>,\n  ): {\n    newStepHistory?: WorkflowStepHistory<Step>; // skip history update if not provided\n    nextStepId?: string;\n  };\n\n  abstract createStepContext(context: { error?: string }): Context;\n}\n","export enum WorkflowActivityActionEnum {\n  TriggerWorkflow = 'triggerWorkflow',\n  AbortWorkflow = 'abortWorkflow',\n  SelectWorkflowOption = 'selectWorkflowOption',\n  CompleteWorkflowStep = 'completeWorkflowStep',\n  ReviseWorkflowStep = 'reviseWorkflowStep',\n  ResumeWorkflow = 'resumeWorkflow',\n  CompleteWorkflow = 'completeWorkflow',\n}\n\nexport function triggerWorkflowLabel(workflowName: string): string {\n  return `triggered the workflow \"${workflowName}\"`;\n}\n\nexport function abortWorkflowLabel(workflowName: string): string {\n  return `aborted the workflow \"${workflowName}\"`;\n}\n\nexport function selectOptionLabel(\n  optionName: string,\n  stepTitle: string,\n  workflowName: string,\n): string {\n  return `selected the option \"${optionName}\" for step \"${stepTitle}\" in workflow \"${workflowName}\"`;\n}\n\nexport function completeStepLabel(stepTitle: string, workflowName: string): string {\n  return `completed the step \"${stepTitle}\" in workflow \"${workflowName}\"`;\n}\n\nexport function reviseStepLabel(stepTitle: string, workflowName: string): string {\n  return `revised the step \"${stepTitle}\" in workflow \"${workflowName}\"`;\n}\n\nexport function resumeWorkflowLabel(workflowName: string): string {\n  return `resumed the workflow \"${workflowName}\"`;\n}\n\nexport function completeWorkflowLabel(workflowName: string): string {\n  return `completed the workflow \"${workflowName}\"`;\n}\n","export class WorkflowEngineError extends Error {\n  constructor(message: string) {\n    super(message);\n    this.name = this.constructor.name;\n  }\n}\n\nexport class WorkflowResumeError extends WorkflowEngineError {}\n\nexport class WorkflowNotFound extends WorkflowEngineError {}\n\nexport class WorkflowStepError extends WorkflowEngineError {}\n\nexport class WorkflowAiError extends WorkflowEngineError {}\n\nexport class NoToolCallAiError extends WorkflowAiError {}\n\nexport class ToolInputValidationAiError extends WorkflowAiError {}\n","import type { WorkflowStep } from 'client/features/workflow/services/standalone-package/types/steps';\nimport type { WorkflowRun } from 'client/features/workflow/services/standalone-package/types/workflow-run';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\n\nexport enum RunUpdateEnum {\n  AddStep = 'addStep',\n  UpdateRun = 'updateRun',\n  UpdateStep = 'updateStep',\n  UpdateStepContext = 'updateStepContext',\n}\n\nexport type RunUpdate =\n  | RunUpdateRunUpdate\n  | StepUpdateRunUpdate\n  | StepAddRunUpdate\n  | StepContextUpdateRunUpdate;\n\nexport interface RunUpdateRunUpdate {\n  operation: RunUpdateEnum.UpdateRun;\n  run: Partial<WorkflowRun<WorkflowStepHistory[]>> & { id: string };\n}\n\nexport interface StepUpdateRunUpdate {\n  operation: RunUpdateEnum.UpdateStep;\n  step: Partial<WorkflowStepHistory> & { stepIndex: number };\n}\n\nexport interface StepAddRunUpdate {\n  operation: RunUpdateEnum.AddStep;\n  step: WorkflowStepHistory;\n}\n\nexport interface StepContextUpdateRunUpdate {\n  operation: RunUpdateEnum.UpdateStepContext;\n  stepIndex: number;\n  context: Partial<WorkflowStepHistory<WorkflowStep>['context']>;\n}\n","import type { WorkflowEngine } from 'client/features/workflow/services/standalone-package/services/workflow-engine';\nimport type { AbstractStepExecutionService } from 'client/features/workflow/services/standalone-package/step-modules/generic-class';\nimport type { WorkflowTransition } from 'client/features/workflow/services/standalone-package/types/transition';\n\nexport enum WorkflowStepTypeEnum {\n  Condition = 'condition',\n  End = 'end',\n  Escalation = 'escalation',\n  StartSubWorkflow = 'start-sub-workflow',\n  CloseSubWorkflow = 'close-sub-workflow',\n  TriggerAction = 'trigger-action',\n  ReadRecord = 'read-record',\n  UpdateRecord = 'update-record',\n  LoadRelatedRecord = 'load-related-record',\n}\n\nexport type WorkflowStepArgs = Omit<\n  WorkflowStep,\n  'type' | 'executionService' | 'createStepContext' | 'description'\n> & {\n  description?: string;\n  prompt?: string;\n};\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport abstract class WorkflowStep {\n  readonly id: string;\n  readonly type: WorkflowStepTypeEnum;\n  title: string; // can be updated by the parser\n  readonly description: string;\n  readonly outgoing: WorkflowTransition | WorkflowTransition[];\n  readonly needsRecordSelection: boolean;\n  readonly automaticCompletion?: boolean;\n  readonly executionService: AbstractStepExecutionService;\n\n  constructor(args: WorkflowStepArgs, workflowEngine: WorkflowEngine) {\n    this.id = args.id;\n    this.title = args.title;\n    this.description = args.description || args.prompt || args.title;\n    this.outgoing = args.outgoing;\n    this.needsRecordSelection = args.needsRecordSelection;\n    this.automaticCompletion = args.automaticCompletion;\n    this.executionService = this.buildExecutionService(workflowEngine);\n  }\n\n  abstract buildExecutionService(workflowEngine: WorkflowEngine): AbstractStepExecutionService;\n}\n","export class WorkflowTransition {\n  stepId: string; // can be updated by the parser\n  buttonText: string | null; // can be updated by the parser\n  readonly buttonColor?: string | null; // type { ActivatableButtonColor } from 'client/shared/components/activatable-button/component';\n  readonly answer?: string;\n\n  constructor(\n    args: Omit<WorkflowTransition, 'toJSON' | 'stepId'> &\n      ({ stepId: string } | { stepName: string }),\n  ) {\n    this.stepId = 'stepId' in args ? args.stepId : args.stepName;\n    this.buttonText = args.buttonText;\n    this.buttonColor = args.buttonColor;\n    this.answer = args.answer;\n  }\n\n  toJSON() {\n    return {\n      stepName: this.stepId,\n      buttonText: this.buttonText,\n      buttonColor: this.buttonColor,\n      answer: this.answer,\n    };\n  }\n}\n","import type { RawStepHistory } from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\n\nexport enum WorkflowRunStateEnum {\n  Started = 'started',\n  Loading = 'loading',\n  Pending = 'pending',\n  Aborted = 'aborted',\n  Finished = 'finished',\n}\n\nexport enum WorkflowEngineEnum {\n  Browser = 'browser',\n  Orchestrator = 'orchestrator',\n}\n\nexport interface WorkflowRun<History = RawStepHistory[] | WorkflowStepHistory[]> {\n  id: string;\n  bpmnVersion: string;\n  collectionId: string;\n  workflowId: string;\n  userId: string;\n  renderingId: string;\n  selectedRecordId: string;\n  runState: WorkflowRunStateEnum;\n  engine: WorkflowEngineEnum;\n  workflowHistory: History;\n  updatedAt: Date;\n}\n","import { tracked } from '@glimmer/tracking';\n\nexport interface WorkflowStepContextArgs<\n  Result = unknown,\n  Params extends Record<string, unknown> = Record<string, unknown>,\n> {\n  error?: string;\n  selectedRecordStepIndex?: number;\n  executionParams?: Params;\n  executionResult?: Result;\n}\n\nexport class WorkflowStepContext<\n  Result = unknown,\n  Params extends Record<string, unknown> = Record<string, unknown>,\n> {\n  @tracked\n  error?: string;\n\n  selectedRecordStepIndex?: number;\n  executionParams?: Params;\n  executionResult?: Result;\n\n  constructor(args: WorkflowStepContextArgs<Result, Params>) {\n    this.error = args.error;\n    this.selectedRecordStepIndex = args.selectedRecordStepIndex;\n    this.executionParams = args.executionParams;\n    this.executionResult = args.executionResult;\n  }\n\n  toJSON() {\n    return {\n      error: this.error,\n      selectedRecordStepIndex: this.selectedRecordStepIndex,\n      executionParams: this.executionParams,\n      executionResult: this.executionResult,\n    };\n  }\n}\n","import type { WorkflowStepContext } from 'client/features/workflow/services/standalone-package/types/workflow-step-context';\nimport type AiAgentContext from 'client/features/workflow/types/workflow-ai-agent-context';\nimport type {\n  LegacyWorkflowStep,\n  MixedWorkflowStep,\n} from 'client/features/workflow/types/workflow-step';\n\nimport { tracked } from '@glimmer/tracking';\n\nimport { WorkflowStep } from 'client/features/workflow/services/standalone-package/types/steps';\nimport LegacyWorkflowStepContext from 'client/features/workflow/types/workflow-step-context';\n\nexport interface RawStepHistory {\n  stepName?: string;\n  stepId?: string;\n  stepIndex: number;\n  isLoading: boolean;\n  done: boolean;\n  revised?: boolean;\n  cancelled?: boolean;\n  context?: Record<string, unknown>;\n  childrenWorkflowId?: string;\n}\n\nexport type ContextForStep<Step extends WorkflowStep | LegacyWorkflowStep> =\n  Step extends WorkflowStep ? WorkflowStepContext : LegacyWorkflowStepContext;\n\nexport default class WorkflowStepHistory<\n  Step extends MixedWorkflowStep = MixedWorkflowStep,\n  Context extends ContextForStep<Step> = ContextForStep<Step>,\n> {\n  stepId: string;\n  step: Step;\n  stepIndex: number;\n\n  childrenWorkflowId?: string;\n\n  get isInsideSubWorkflow() {\n    return Boolean(this.childrenWorkflowId);\n  }\n\n  @tracked\n  isLoading: boolean;\n\n  @tracked\n  done: boolean;\n\n  @tracked\n  revised: boolean;\n\n  @tracked\n  cancelled: boolean;\n\n  // FIXME: only leave \"Context\" afer the migration\n  context: Context & { aiAgentContext?: AiAgentContext; [key: string]: unknown };\n\n  constructor(\n    attributes: RawStepHistory & {\n      step: Step;\n    },\n  ) {\n    this.stepId = attributes.stepId || attributes.stepName;\n    this.step = attributes.step;\n    this.stepIndex = attributes.stepIndex;\n    this.isLoading = attributes.isLoading || false;\n    this.done = attributes.done || false;\n    this.revised = attributes.revised || false;\n    this.cancelled = attributes.cancelled || false;\n    this.context = (\n      this.step instanceof WorkflowStep\n        ? this.step.executionService.createStepContext(attributes.context)\n        : new LegacyWorkflowStepContext(attributes.context)\n    ) as Context & { aiAgentContext?: AiAgentContext; [key: string]: unknown };\n    this.childrenWorkflowId = attributes.childrenWorkflowId;\n  }\n\n  static clone(source: WorkflowStepHistory, overrides: { stepIndex: number }): WorkflowStepHistory {\n    const clone = new WorkflowStepHistory({\n      childrenWorkflowId: source.childrenWorkflowId,\n      stepId: source.stepId,\n      step: source.step,\n      stepIndex: overrides.stepIndex,\n      isLoading: false,\n      done: true,\n    });\n    // Assign directly to bypass the constructor's context transformation\n    // (createStepContext / LegacyWorkflowStepContext), since source.context is already built.\n    clone.context = source.context;\n    return clone;\n  }\n\n  toJSON() {\n    return {\n      stepName: this.stepId,\n      stepIndex: this.stepIndex,\n      childrenWorkflowId: this.childrenWorkflowId,\n      isLoading: this.isLoading,\n      done: this.done,\n      revised: this.revised,\n      cancelled: this.cancelled,\n      context: this.context.toJSON(),\n    };\n  }\n}\n","import type { WorkflowTransition } from 'client/features/workflow/services/standalone-package/types/transition';\n\nexport function getStepId(oldOrNewStep: { stepId?: string; stepName?: string }) {\n  return 'stepId' in oldOrNewStep ? oldOrNewStep.stepId : oldOrNewStep.stepName;\n}\n\nexport function findOutgoing(outgoings: WorkflowTransition | WorkflowTransition[], stepId: string) {\n  if (Array.isArray(outgoings)) {\n    return outgoings.find((outgoing) => outgoing.stepId === stepId);\n  }\n  if (outgoings.stepId === stepId) {\n    return outgoings;\n  }\n  return null;\n}\n","import type WorkflowModel from 'client/data/models/workflow';\nimport type { WorkflowSteps } from 'client/features/workflow/services/standalone-package/types/workflow';\nimport type WorkflowStepHistory from 'client/features/workflow/services/standalone-package/types/workflow-step-history';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Service from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport interface WorkflowRecordEntry {\n  record: ClientRecordModel;\n  pathFromRoot: { fieldName: string; recordId: string }[]; // list of fieldNames to find this record from the root record\n  stepIndex: number; // this record has been selected at the step stepIndex (-1 for the root record)\n}\n\nexport default class WorkflowFeatureState extends Service {\n  @tracked isLoading: boolean;\n\n  @tracked workflowRecords: WorkflowRecordEntry[];\n\n  // Just the base info to display the workflow in the list & get the bpmn\n  @tracked currentWorkflow: WorkflowModel;\n\n  // Parsed BPMN, all steps of the workflow and links between steps\n  @tracked workflowSteps: WorkflowSteps;\n  @tracked childrenWorkflowsSteps: Record<string, WorkflowSteps> = {};\n\n  // contains all started or finished workflow steps, choices of the user, AI interactions,\n  //   state of the AI agent if an AI step is in progress.\n  // Does NOT store the steps, only stepNames (ids)\n  @tracked history: WorkflowStepHistory[] = [];\n\n  // indices of the currently opened steps in the UI by the workflow\n  @tracked openStepIndices: number[] = [];\n  // indices of the currently opened steps in the UI by the user\n  @tracked userOpenStepIndices: number[] = [];\n\n  // id of the current run, set after the first save\n  @tracked workflowRunId: string;\n\n  @tracked isSidePanelCollapsed = false;\n  @tracked displaySidePanel = false;\n  @tracked public upsertError: Error;\n  @tracked public isFinishedWorkflow = false;\n  @tracked public isTransitioning = false;\n\n  workflowStepsCache: Map<string, WorkflowSteps> = new Map();\n}\n","import type {\n  MixedWorkflowStep,\n  WorkflowCondition,\n  WorkflowEscalation,\n  WorkflowTask,\n} from 'client/features/workflow/types/workflow-step';\n\nexport function isConditionStep(step: MixedWorkflowStep): step is WorkflowCondition {\n  return step.type === 'condition';\n}\n\nexport function isAiConditionStep(\n  step: MixedWorkflowStep,\n): step is WorkflowCondition & { aiDecision: true } {\n  return isConditionStep(step) && step.aiDecision === true;\n}\n\nexport function isAiExecutedTask(\n  step: MixedWorkflowStep,\n): step is WorkflowTask & { taskType: 'ai-executed' } {\n  return step.type === 'task' && step.taskType === 'ai-executed';\n}\n\nexport function isEscalationTask(step: MixedWorkflowStep): step is WorkflowEscalation {\n  return step.type === 'escalation';\n}\n","import type { ToolExecution } from 'client/features/ai/types/ai-steps';\n\nimport { tracked } from '@glimmer/tracking';\n\nimport { ToolConfirmationInterruption } from 'client/features/ai/types/ai-steps';\n\nexport type AiAgentContextAttributes<\n  ToolData extends Record<string, unknown> = Record<string, unknown>,\n> = {\n  selectedRecordStepIndex?: number;\n  toolConfirmationInterruption?: ToolConfirmationInterruption;\n  userConfirmation?: boolean;\n  toolExecution?: ToolExecution;\n  toolData?: ToolData;\n  error?: string;\n};\n\nexport default class AiAgentContext<\n  ToolData extends Record<string, unknown> = Record<string, unknown>,\n> {\n  @tracked\n  selectedRecordStepIndex: number = -1; // reference the root record by default\n\n  @tracked\n  toolConfirmationInterruption?: ToolConfirmationInterruption;\n\n  @tracked\n  userConfirmation?: boolean;\n\n  @tracked\n  toolExecution?: ToolExecution;\n\n  @tracked\n  toolData?: ToolData;\n\n  @tracked\n  error?: string;\n\n  constructor(attributes: AiAgentContextAttributes<ToolData> = {}) {\n    this.selectedRecordStepIndex = attributes.selectedRecordStepIndex;\n    this.toolConfirmationInterruption = attributes.toolConfirmationInterruption\n      ? ToolConfirmationInterruption.fromAttributes(attributes.toolConfirmationInterruption)\n      : undefined;\n    this.userConfirmation = attributes.userConfirmation;\n    this.toolExecution = attributes.toolExecution;\n    this.toolData = attributes.toolData;\n    this.error = attributes.error;\n  }\n\n  toJSON() {\n    return {\n      selectedRecordStepIndex: this.selectedRecordStepIndex,\n      toolConfirmationInterruption: this.toolConfirmationInterruption,\n      userConfirmation: this.userConfirmation,\n      toolExecution: this.toolExecution,\n      toolData: this.toolData,\n      error: this.error,\n    };\n  }\n}\n","import type { WorkflowEscalationStateEnum } from 'client/features/workflow/types/workflow';\nimport type AiAgentContext from 'client/features/workflow/types/workflow-ai-agent-context';\n\nimport { tracked } from '@glimmer/tracking';\n\nimport { WorkflowStepContext } from 'client/features/workflow/services/standalone-package/types/workflow-step-context';\n\nexport default class LegacyWorkflowStepContext extends WorkflowStepContext {\n  @tracked\n  selectedOption?: string;\n\n  @tracked\n  userInput?: string;\n\n  @tracked\n  escalationState?: WorkflowEscalationStateEnum;\n\n  @tracked\n  aiAgentContext?: AiAgentContext;\n\n  @tracked\n  subWorkflowVersion?: string;\n\n  [key: string]: unknown; // to avoid having to cast as & Record<string, unknown> because of WorkflowStepContext context type\n\n  constructor(\n    attributes: {\n      error?: string;\n      selectedOption?: string;\n      userInput?: string;\n      escalationState?: WorkflowEscalationStateEnum;\n      aiAgentContext?: AiAgentContext;\n      subWorkflowVersion?: string;\n    } = {},\n  ) {\n    super(attributes);\n    this.selectedOption = attributes.selectedOption;\n    this.userInput = attributes.userInput;\n    this.escalationState = attributes.escalationState;\n    this.aiAgentContext = attributes.aiAgentContext;\n    this.subWorkflowVersion = attributes.subWorkflowVersion;\n  }\n\n  toJSON() {\n    return {\n      ...super.toJSON(),\n      selectedOption: this.selectedOption,\n      userInput: this.userInput,\n      escalationState: this.escalationState,\n      aiAgentContext: this.aiAgentContext?.toJSON() || {},\n      subWorkflowVersion: this.subWorkflowVersion,\n    };\n  }\n}\n","import type { WorkflowStep } from 'client/features/workflow/services/standalone-package/types/steps';\nimport type { WorkflowTransition } from 'client/features/workflow/services/standalone-package/types/transition';\n\nexport type LegacyWorkflowStep =\n  | WorkflowTask\n  | WorkflowCondition\n  | WorkflowEnd\n  | WorkflowEscalation\n  | StartSubWorkflow\n  | CloseSubWorkflow;\n\nexport type MixedWorkflowStep = LegacyWorkflowStep | WorkflowStep;\n\nexport interface WorkflowEscalation {\n  type: 'escalation';\n  title: string;\n  prompt: string;\n  outgoing: WorkflowTransition;\n  inboxId: string | null;\n}\n\nexport interface StartSubWorkflow {\n  type: SubWorkflowStepTypeEnum.Start;\n  title: string;\n  prompt: string;\n  outgoing: WorkflowTransition;\n  workflowId: string;\n}\n\nexport interface CloseSubWorkflow {\n  type: SubWorkflowStepTypeEnum.Close;\n  title?: string;\n  outgoing: WorkflowTransition;\n  parentWorkflowId: string | null;\n}\n\nexport enum SubWorkflowStepTypeEnum {\n  Start = 'start-sub-workflow',\n  Close = 'close-sub-workflow',\n}\nexport type SubWorkflowStep = StartSubWorkflow | CloseSubWorkflow;\n\nexport interface WorkflowTask {\n  type: 'task';\n  taskType: 'guideline' | 'ai-executed';\n  isSubTask?: boolean;\n  title: string;\n  prompt: string; // instruction to follow\n  allowedTools?: string[] | Promise<string[]> | (() => Promise<string[]>);\n  mcpServerId?: string;\n  automaticExecution?: boolean;\n  automaticCompletion?: boolean;\n  completionType?: 'simple' | 'user-input';\n  inputType?: 'free-text';\n  outgoing: WorkflowTransition;\n}\n\nexport interface WorkflowEnd {\n  type: 'end';\n  title: string;\n  prompt?: string;\n}\n\nexport interface WorkflowCondition {\n  type: 'condition';\n  title: string;\n  prompt: string; // question to answer\n  outgoing: WorkflowTransition[];\n  aiDecision?: boolean;\n}\n","export enum WorkflowEscalationStateEnum {\n  Escalated = 'escalated',\n  Error = 'error',\n}\n","import type { WorkflowRecord } from 'client/features/workflow/services/standalone-package/types/workflow-record';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { WorkflowRecordConversionError } from 'client/features/workflow/errors';\n\nexport default function toStandaloneRecord(record: ClientRecordModel): WorkflowRecord {\n  if (!record.collection) {\n    throw new WorkflowRecordConversionError(\n      `Cannot convert record \"${record.id}\" to standalone format: record has no collection`,\n    );\n  }\n\n  return {\n    id: record.id,\n    collection: {\n      displayName: record.collection.displayName,\n      displayNameLowerCase: record.collection.displayNameLowerCase,\n      fields: record.collection.fields.map((field) => ({\n        displayName: field.displayName,\n        fieldName: field.fieldName,\n      })),\n    },\n  };\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type { WorkspaceRecordEditMode } from 'client/data/models/workspace-component-options-action';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ColorOption } from 'client/shared/components/beta-select-color/component';\nimport type LayoutState from 'client/shared/states/layout';\n\nimport { action, get } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport CustomActionModel from 'client/data/models/custom-action';\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport {\n  WorkspaceActionTypeEnum,\n  getBasicActionsForCollection,\n} from 'client/data/models/workspace-component-options-action';\nimport validateArguments from 'client/decorators/validate';\nimport { ButtonTypeEnum } from 'client/utils/color-utils';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface WorkspacePanelComponentConfigurationActionArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Action>;\n}\n\n@validateArguments\nexport default class WorkspaceComponentConfigurationActionComponent extends Component<WorkspacePanelComponentConfigurationActionArgs> {\n  @service private readonly store: StoreService;\n  @service('business/workspace-manager') private readonly workspaceManager: WorkspaceManagerService;\n  @service('feature/workspace') private readonly workspaceService: WorkspaceFeatureService;\n  @service('shared/state/layout') private readonly layoutState: LayoutState;\n\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n  };\n\n  @tracked isDisplayingTemplating = false;\n\n  constructor(owner: unknown, args: WorkspacePanelComponentConfigurationActionArgs) {\n    super(owner, args);\n\n    if (this.args.component.options.templatedBelongsToPath) {\n      this.isDisplayingTemplating = true;\n    }\n    void this.initializeComponentOptions();\n  }\n\n  get allActions() {\n    return [\n      ...this.collections.map((collection) => getBasicActionsForCollection(collection)).flat(),\n      ...this.store.peekAll('custom-action').toArray(),\n    ];\n  }\n\n  get colors(): ColorOption[] {\n    const availableColors = this.workspaceService.colorOptions;\n    if (!this.args.component.options.isBasicAction && this.args.component.options.actionId) {\n      availableColors.push({ text: 'primary', color: ButtonTypeEnum.Primary });\n    }\n    return availableColors;\n  }\n\n  get actionsToDisplay() {\n    return this.args.component.options.sourceCollection\n      ? this.allActions.filter(\n          (customAction) =>\n            // eslint-disable-next-line ember/no-get\n            get(customAction.collection, 'id') === this.args.component.options.sourceCollectionId,\n        )\n      : this.allActions.map((actionToDisplay) => {\n          return actionToDisplay instanceof CustomActionModel\n            ? {\n                id: actionToDisplay.id,\n                displayName: `${actionToDisplay.displayName} (${actionToDisplay.collection.get(\n                  'singularizedDisplayName',\n                )})`,\n              }\n            : actionToDisplay;\n        });\n  }\n\n  get sortedActions() {\n    return this.actionsToDisplay.sortBy('displayName');\n  }\n\n  get collections() {\n    return this.layoutState.collections.sortBy('singularizedDisplayName');\n  }\n\n  get sourceCollectionSmartActions() {\n    const { sourceCollection, basicActions } = this.args.component.options;\n    if (sourceCollection) {\n      return [...basicActions, ...sourceCollection.customActionsOrderedWithHidden];\n    }\n    return [];\n  }\n\n  get availableComponentsToSelectRecordFrom() {\n    return this.workspaceService.getAvailableComponentsToSelectRecordFrom(\n      this.args.component,\n      this.args.component.options.sourceCollection,\n    );\n  }\n\n  get isEditBasicAction() {\n    const { isBasicAction, type } = this.args.component.options;\n\n    return isBasicAction && type === 'EDIT';\n  }\n\n  get editableFieldComponents() {\n    return this.isEditBasicAction\n      ? this.workspaceManager.getFieldComponentsWithSameSource(\n          this.args.component.workspace,\n          this.args.component.options.componentToSelectRecordFromId,\n        )\n      : [];\n  }\n\n  get editModeOptions(): { name: string; value: WorkspaceRecordEditMode }[] {\n    return [\n      { name: 'Modal with all fields', value: 'modal' },\n      { name: 'Related field components', value: 'fields' },\n    ];\n  }\n\n  resetAttributes() {\n    this.args.component.options.componentToSelectRecordFrom = null;\n    this.args.component.options.templatedBelongsToPath = null;\n  }\n\n  async initializeComponentOptions() {\n    if (!this.args.component.options.actionId && !this.args.component.options.sourceCollectionId) {\n      // Required because `componentToSelectRecordFromId` is already set\n      await waitForNextRunLoop();\n      this.args.component.options.componentToSelectRecordFromId =\n        this.args.component.workspace.currentRecordSource?.id;\n      this.args.component.options.sourceCollectionId =\n        this.args.component.workspace.currentRecordSource?.options.filteredCollection?.id;\n    }\n  }\n\n  @action\n  onCollectionChange(collection: CollectionModel) {\n    this.args.component.options.sourceCollectionId = collection.id;\n    this.args.component.options.actionId = null;\n    this.args.component.options.displayedText = null;\n    this.resetAttributes();\n    this.isDisplayingTemplating = false;\n  }\n\n  @action\n  async onActionChange(actionId: string) {\n    const workspaceAction = this.allActions.findBy('id', actionId);\n    await this.args.component.options.onActionChange(workspaceAction);\n    this.isDisplayingTemplating = false;\n    this.resetAttributes();\n    if (this.args.component.options.action?.type !== WorkspaceActionTypeEnum.Edit) {\n      this.args.component.options.editMode = null;\n    }\n    if (this.args.component.workspace.isWorkspaceOnRecord) {\n      this.args.component.options.componentToSelectRecordFromId =\n        this.args.component.workspace.currentRecordSource?.id;\n    }\n  }\n\n  @action\n  handleClickTemplate() {\n    this.isDisplayingTemplating = !this.isDisplayingTemplating;\n    this.resetAttributes();\n    if (this.args.component.options.action?.type === WorkspaceActionTypeEnum.Edit) {\n      // For now the templated belongs to action does not support edit of related fields\n      this.args.component.options.editMode = 'modal';\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Basic details\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Collection\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @value={{one-way @component.options.sourceCollection}}\\n      @onChange={{this.onCollectionChange}}\\n      @defaultValue={{null}}\\n      @defaultOption=\\\"All\\\"\\n      @options={{this.collections}}\\n      @namePath=\\\"singularizedDisplayName\\\"\\n      @iconPath=\\\"iconOrDefault\\\"\\n      @withSearchInput={{true}}\\n      @placeholder=\\\"Select a collection\\\"\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-action-collection-select\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Action to trigger\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @value={{one-way @component.options.action.id}}\\n      @onChange={{this.onActionChange}}\\n      @defaultValue={{null}}\\n      @options={{this.sortedActions}}\\n      @valuePath=\\\"id\\\"\\n      @namePath=\\\"displayName\\\"\\n      @withSearchInput={{true}}\\n      @placeholder=\\\"Select an action\\\"\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-action-custom-action-select\\n    />\\n  </Shared::BetaLabel>\\n  {{#if (or @component.options.action.isSingle @component.options.action.isBulk)}}\\n    <Shared::BetaLabel\\n      @label=\\\"On record from\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <div\\n        class=\\\"l-feature-workspace-component-configuration c-feature-workspace-component-configuration__input\\\"\\n      >\\n        {{#if this.isDisplayingTemplating}}\\n          <Form::AutocompleteInput\\n            @value={{@component.options.templatedBelongsToPath}}\\n            @onChange={{fn (mut @component.options.templatedBelongsToPath)}}\\n            @templatingHelper={{@component.templatingHelper}}\\n            @isExpectingSingleVariable={{true}}\\n            @expectedType=\\\"BelongsTo\\\"\\n            data-test-feature-workspace-component-configuration-action-record-from-select-templated-collection-autocomplete\\n            class=\\\"c-feature-workspace-component-configuration__input-with-toggle\\\"\\n          />\\n        {{else}}\\n          <Shared::BetaSelect\\n            @options={{this.availableComponentsToSelectRecordFrom}}\\n            @defaultValue={{null}}\\n            @namePath=\\\"displayName\\\"\\n            @placeholder=\\\"Select a component\\\"\\n            @value={{@component.options.componentToSelectRecordFrom}}\\n            class=\\\"c-feature-workspace-component-configuration__input-with-toggle\\\"\\n            data-test-feature-workspace-component-configuration-action-record-from-select\\n          />\\n        {{/if}}\\n\\n        {{#let (generate-guid) as |switchButtonId|}}\\n          <Shared::Button::BetaButton\\n            @iconName=\\\"data_object\\\"\\n            @size=\\\"normal\\\"\\n            @type={{if this.isDisplayingTemplating \\'primary\\' \\'secondary\\'}}\\n            @disabled={{false}}\\n            id={{switchButtonId}}\\n            data-test-feature-workspace-component-configuration-configuration-action-switch-to-variable\\n            {{on \\'click\\' (prevent-default (stop-propagation this.handleClickTemplate))}}\\n          />\\n          <Shared::Feedback::BetaTooltip @targetId={{switchButtonId}} @side=\\\"bottom-end\\\">\\n            Toggle to search into your relationships\\n          </Shared::Feedback::BetaTooltip>\\n        {{/let}}\\n      </div>\\n    </Shared::BetaLabel>\\n  {{/if}}\\n  <Shared::BetaLabel\\n    @label=\\\"Text\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <:after-label>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n    </:after-label>\\n    <:default>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInput\\n        @component={{@component}}\\n        @value={{one-way @component.options.displayedText}}\\n        @placeholder={{or @component.options.action.displayName \\'Input text value\\'}}\\n        @onChange={{fn (mut @component.options.displayedText)}}\\n        @templatingHelper={{@component.templatingHelper}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-action-displayed-text-input\\n      />\\n    </:default>\\n  </Shared::BetaLabel>\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Display\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Colors\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelectColor\\n      @value={{@component.options.buttonType}}\\n      @defaultOption={{if\\n        (and (not @component.options.isBasicAction) @component.options.actionId)\\n        \\'(Inherited)\\'\\n        \\'Primary\\'\\n      }}\\n      @defaultOptionColor={{@component.options.inheritedButtonType}}\\n      @options={{this.colors}}\\n      @onSelectValue={{fn (mut @component.options.buttonType)}}\\n      @disabled={{not @component.options.isConfigured}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-action-color-select\\n    />\\n  </Shared::BetaLabel>\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{#if this.isEditBasicAction}}\\n    {{#if (and (eq @component.options.editMode \\'fields\\') (not this.editableFieldComponents))}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"warning\\\"\\n        @canHide={{false}}\\n        @message=\\\"No related field components yet\\\"\\n        data-test-feature-workspace-component-configuration-action-feedback\\n      />\\n    {{/if}}\\n    <Shared::BetaLabel\\n      @label=\\\"Edit mode\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n\\n      <Shared::BetaSelect\\n        @options={{this.editModeOptions}}\\n        @onChange={{fn (mut @component.options.editMode)}}\\n        @value={{one-way @component.options.editMode}}\\n        @namePath=\\\"name\\\"\\n        @disabled={{this.isDisplayingTemplating}}\\n        @valuePath=\\\"value\\\"\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-action-edit-mode-select\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/action/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Chart::ChartForm\\n  @chart={{@component.options}}\\n  @workspaceComponent={{@component}}\\n  @isInWorkspace={{true}}\\n  @featureCallbackRoute={{@featureCallbackRoute}}\\n  @mustDisableSmartChart={{true}}\\n  @templatingHelper={{@component.templatingHelper}}\\n  ...attributes\\n/>\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/chart/template.hbs' });\n","import type Store from '@ember-data/store';\nimport type CollectionModel from 'client/data/models/collection';\nimport type ColumnModel from 'client/data/models/column';\nimport type FieldModel from 'client/data/models/field';\nimport type ViewListModel from 'client/data/models/view-list';\nimport type WorkspaceCollectionColumnFragment from 'client/data/models/workspace-collection-column';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type StoreService from 'client/legacy/services/store';\nimport type NestedCollection from 'client/utils/nested/collection';\nimport type NestedField from 'client/utils/nested/field';\n\nimport { action } from '@ember/object';\nimport { sort } from '@ember/object/computed';\nimport { debounce } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport config from 'client/config/environment';\nimport { SortingOrderEnum } from 'client/data/models/collection';\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport FieldTemplatingHelper from 'client/utils/templating-helper/field-templating-helper';\n\ninterface WorkspacePanelComponentConfigurationCollectionComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Collection>;\n  onConfirmBreakingChange: () => Promise<boolean>;\n}\n\n@validateArguments\nexport default class WorkspaceComponentConfigurationCollectionComponent extends Component<WorkspacePanelComponentConfigurationCollectionComponentArgs> {\n  @service declare store: StoreService & Store;\n\n  @argument(WorkspaceComponentModel) component;\n\n  @tracked isDisplayingTemplating =\n    !!this.args.component.options.templatingKeyRelatedDataField\n    && !!this.args.component.options.source?.options.filteredCollection;\n\n  maxRecordsPerPage = config.APP.maxRecordsPerPage;\n\n  invisibleColumnsSortingKey = ['name'];\n  @sort('invisibleColumns', 'invisibleColumnsSortingKey') sortedInvisibleColumns: {\n    name: string;\n    displayName: string;\n  }[];\n\n  visibleColumnsSortingKey = ['position'];\n  @sort('args.component.options.visibleColumns', 'visibleColumnsSortingKey')\n  sortedVisibleColumns: WorkspaceCollectionColumnFragment[];\n\n  collectionsSorting = ['singularizedDisplayName:asc'];\n  segmentsSorting = ['name:asc'];\n\n  // eslint-disable-next-line sonarjs/no-alphabetical-sort\n  sortingOrderOptions = Object.values(SortingOrderEnum).sort();\n\n  @sort('args.component.workspace.rendering.collectionsAccessibleGlobally', 'collectionsSorting')\n  collections;\n\n  @sort('componentOptions.collection.sortedSegments', 'segmentsSorting') segments;\n\n  get componentOptions() {\n    return this.args.component.options;\n  }\n\n  get areColumnsCustomized() {\n    return this.componentOptions.visibleColumns?.toArray().length > 0;\n  }\n\n  get invisibleColumns() {\n    return this.areColumnsCustomized\n      ? (\n          this.componentOptions.filteredCollection.columns as Array<\n            ColumnModel | NestedCollection['columns'][number]\n          >\n        )\n          .filter(\n            (column) =>\n              !this.componentOptions.visibleColumns.find(\n                (visibleColumn) => visibleColumn.name === column.field.fieldName,\n              ),\n          )\n          .map((column) => ({\n            name: column.field.fieldName,\n            displayName: column.field.displayName,\n          }))\n      : [];\n  }\n\n  get fieldTemplatingHelper() {\n    return this.args.component.options.source?.options.filteredCollection\n      ? new FieldTemplatingHelper({\n          collection: this.args.component.options.source.options.filteredCollection,\n        })\n      : null;\n  }\n\n  @action\n  handleDataTypeChange(dataType: 'collection' | 'related-data') {\n    this.args.component.options.dataType = dataType;\n    this.args.component.options.collection = null;\n    this.args.component.options.segment = null;\n    this.args.component.options.source = null;\n    this.args.component.options.relatedDataField = null;\n    this.args.component.options.recordsContext = null;\n    const isEnabledByDefault = dataType !== 'related-data';\n    this.args.component.options.enableSegments = isEnabledByDefault;\n    if (dataType === 'related-data' && this.args.component.workspace.currentRecordSource) {\n      this.args.component.options.sourceWorkspaceComponentId =\n        this.args.component.workspace.currentRecordSource.id;\n    }\n  }\n\n  @action\n  handleClickTemplate() {\n    this.isDisplayingTemplating = !this.isDisplayingTemplating;\n  }\n\n  @action\n  handleCustomizeColumnsToggle() {\n    if (this.areColumnsCustomized) {\n      this.componentOptions.visibleColumns = [];\n      return;\n    }\n    const visibleColumns = this.componentOptions.segment?.hasColumnsConfiguration\n      ? this.componentOptions.segment.columnsVisibleOrdered\n      : this.componentOptions.filteredCollection.columnsVisibleOrdered;\n    this.componentOptions.visibleColumns = visibleColumns.map((column, index) =>\n      this.store.createFragment('workspace-collection-column', {\n        name: column.field.fieldName,\n        position: index,\n      }),\n    );\n  }\n\n  @action\n  handleReorderColumns(columns: WorkspaceCollectionColumnFragment[]) {\n    this.componentOptions.visibleColumns.forEach((column) => {\n      column.position = columns.indexOf(column);\n    });\n  }\n\n  @action\n  hideColumn(columnToHide: WorkspaceCollectionColumnFragment) {\n    this.componentOptions.visibleColumns.removeObject(columnToHide);\n    this.handleReorderColumns(this.sortedVisibleColumns);\n  }\n\n  @action\n  showColumn(column: { name: string; displayName: string }) {\n    this.componentOptions.visibleColumns.addObject(\n      this.store.createFragment('workspace-collection-column', {\n        position: this.componentOptions.visibleColumns.length,\n        name: column.name,\n      }),\n    );\n  }\n\n  @action\n  async handleCollectionChange(newValue: CollectionModel) {\n    const shouldContinue = await this.handleBreakingChange();\n    if (shouldContinue) {\n      this.componentOptions.collection = newValue;\n    }\n  }\n\n  @action\n  async handleRelatedDataFieldChange(newValue: FieldModel | NestedField) {\n    const shouldContinue = await this.handleBreakingChange();\n    if (shouldContinue) {\n      this.componentOptions.relatedDataField = newValue;\n      const isEnabledByDefault = !newValue.nestedOrReferencedCollection?.isEmbedded;\n      this.componentOptions.showSearchbar = isEnabledByDefault;\n      this.componentOptions.showActions = isEnabledByDefault;\n      this.componentOptions.showWorkflows = isEnabledByDefault;\n      this.componentOptions.showFilters = isEnabledByDefault;\n    }\n  }\n\n  @action\n  handleCreateFilter() {\n    this.componentOptions.filter = this.store.createFragment('fragment-filter', {\n      conditions: [{}],\n    });\n\n    return this.componentOptions.filter;\n  }\n\n  @action\n  handleDeleteFilter() {\n    this.componentOptions.filter = null;\n  }\n\n  @action\n  handleFilterChange() {\n    debounce(this, this.triggerRefresh, 1000);\n  }\n\n  @action\n  handleSortingFieldChange(field: FieldModel) {\n    this.componentOptions.sortingFieldName = field?.fieldName || null;\n  }\n\n  @action\n  handleSortingOrderChange(order: SortingOrderEnum) {\n    this.componentOptions.sortingOrder = order || null;\n  }\n\n  @action\n  async handleSmartViewChange(view: ViewListModel) {\n    this.componentOptions.viewId = view?.id || null;\n  }\n\n  async handleBreakingChange() {\n    if (this.componentOptions.filteredCollection && this.args.component.appliedOn?.length) {\n      return this.args.onConfirmBreakingChange();\n    }\n    return true;\n  }\n\n  triggerRefresh() {\n    this.componentOptions.betaCollectionListCommunicator.refresh(\n      this.componentOptions.collectionListId,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! template-lint-disable template-length }}\\n<Shared::BetaRightPanel::Section @title=\\\"Basic Details\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Type\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{array\\n        (hash name=\\'Collection\\' value=\\'collection\\')\\n        (hash name=\\'Relationship\\' value=\\'related-data\\')\\n      }}\\n      @namePath=\\\"name\\\"\\n      @valuePath=\\\"value\\\"\\n      @value={{one-way @component.options.dataType}}\\n      @onChange={{this.handleDataTypeChange}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-collection-select-data-type\\n    />\\n  </Shared::BetaLabel>\\n  {{#if (eq @component.options.dataType \\'collection\\')}}\\n    <Shared::BetaLabel\\n      @label=\\\"Collection\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <Shared::BetaSelect\\n        @options={{this.collections}}\\n        @iconPath=\\\"iconOrDefault\\\"\\n        @namePath=\\\"singularizedDisplayName\\\"\\n        @value={{one-way @component.options.collection}}\\n        @onChange={{this.handleCollectionChange}}\\n        @withSearchInput={{true}}\\n        @placeholder=\\\"Select a collection\\\"\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-configuration-collection-select-collection\\n      />\\n    </Shared::BetaLabel>\\n    {{#if @component.options.collection.sortedSegments.length}}\\n      <Shared::BetaLabel\\n        @label=\\\"Segment\\\"\\n        @position=\\\"left\\\"\\n        class=\\\"c-feature-workspace-component-configuration__label\\\"\\n      >\\n        <Shared::BetaSelect\\n          @options={{this.segments}}\\n          @namePath=\\\"name\\\"\\n          @defaultOption={{if @component.options.collection.isRestrictedToSegments null \\'All\\'}}\\n          @value={{@component.options.segment}}\\n          @withSearchInput={{true}}\\n          class=\\\"c-feature-workspace-component-configuration__input\\\"\\n          data-test-feature-workspace-component-configuration-configuration-collection-select-segment\\n        />\\n      </Shared::BetaLabel>\\n    {{/if}}\\n  {{else}}\\n    <Shared::BetaLabel\\n      @label=\\\"Source\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <Shared::BetaSelect\\n        @options={{@component.componentsWithSelectedRecordContext}}\\n        @iconPath=\\\"iconOrDefault\\\"\\n        @namePath=\\\"displayName\\\"\\n        @placeholder=\\\"Select a component\\\"\\n        @value={{@component.options.source}}\\n        @withSearchInput={{true}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-configuration-collection-select-component\\n      />\\n    </Shared::BetaLabel>\\n    <Shared::BetaLabel\\n      @label=\\\"Field\\\"\\n      @position=\\\"left\\\"\\n      @for=\\\"field-config\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <div\\n        class=\\\"l-feature-workspace-component-configuration c-feature-workspace-component-configuration__input\\\"\\n      >\\n        {{#if this.isDisplayingTemplating}}\\n          <Form::AutocompleteInput\\n            @value={{@component.options.relatedDataFieldName}}\\n            @onChange={{fn (mut @component.options.relatedDataFieldName)}}\\n            @templatingHelper={{this.fieldTemplatingHelper}}\\n            @isExpectingSingleVariable={{true}}\\n            @expectedType=\\\"HasMany\\\"\\n            class=\\\"c-feature-workspace-component-configuration__input-with-toggle\\\"\\n          />\\n        {{else}}\\n          <Shared::BetaSelect\\n            @options={{@component.options.source.options.filteredCollection.hasManyFields}}\\n            @namePath=\\\"displayName\\\"\\n            @disabled={{not @component.options.source}}\\n            @inputId=\\\"field-config\\\"\\n            @placeholder=\\\"Select a field\\\"\\n            @value={{one-way @component.options.relatedDataField}}\\n            @onChange={{this.handleRelatedDataFieldChange}}\\n            @withSearchInput={{true}}\\n            class=\\\"c-feature-workspace-component-configuration__input-with-toggle\\\"\\n            data-test-feature-workspace-component-configuration-configuration-collection-select-field\\n          />\\n        {{/if}}\\n\\n        {{#let (generate-guid) as |switchButtonId|}}\\n          <Shared::Button::BetaButton\\n            @iconName=\\\"data_object\\\"\\n            @size=\\\"normal\\\"\\n            @type={{if this.isDisplayingTemplating \\'primary\\' \\'secondary\\'}}\\n            @disabled={{not @component.options.source}}\\n            id={{switchButtonId}}\\n            data-test-feature-workspace-component-configuration-configuration-collection-switch-to-variable\\n            data-test-feature-workspace-component-configuration-configuration-collection-switch-to-variable-toggled={{this.isDisplayingTemplating}}\\n            {{on \\'click\\' (prevent-default (stop-propagation this.handleClickTemplate))}}\\n          />\\n          <Shared::Feedback::BetaTooltip @targetId={{switchButtonId}} @side=\\\"bottom-end\\\">\\n            Toggle to input code\\n          </Shared::Feedback::BetaTooltip>\\n        {{/let}}\\n      </div>\\n\\n    </Shared::BetaLabel>\\n\\n  {{/if}}\\n  <Feature::Workspace::ComponentConfiguration::OnRowClickSelector\\n    @component={{@component}}\\n    @disabled={{or\\n      (not @component.options.filteredCollection)\\n      @component.options.filteredCollection.isEmbedded\\n    }}\\n  />\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Filters\\\">\\n  <:header>\\n    {{#unless @component.options.filter}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"link-primary\\\"\\n        @text=\\\"Add filter\\\"\\n        @iconName=\\\"add\\\"\\n        @underline={{false}}\\n        @action={{this.handleCreateFilter}}\\n        @disabled={{or\\n          (not @component.options.filteredCollection)\\n          @component.options.filteredCollection.isEmbedded\\n        }}\\n        data-test-feature-workspace-component-configuration-configuration-collection-add-filter\\n      />\\n    {{/unless}}\\n  </:header>\\n  <:default>\\n    {{#if @component.options.filter}}\\n      <BetaFilter::Form\\n        @filter={{@component.options.filter}}\\n        @createFilter={{this.handleCreateFilter}}\\n        @fields={{@component.options.filteredCollection.filterableFields}}\\n        @showApply={{false}}\\n        @showDiscard={{true}}\\n        @canClearNew={{true}}\\n        @onClearAll={{this.handleDeleteFilter}}\\n        @onChange={{this.handleFilterChange}}\\n        @templatingHelper={{@component.templatingHelper}}\\n        data-test-feature-workspace-component-configuration-configuration-collection-filter-form\\n      />\\n    {{/if}}\\n  </:default>\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Columns\\\" @isSectionFoldable={{true}}>\\n  <Shared::BetaLabel\\n    @label=\\\"Sorting field\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @namePath=\\\"displayName\\\"\\n      @defaultOption=\\\"(Inherited)\\\"\\n      @defaultValue={{null}}\\n      @value={{one-way @component.options.sortingField}}\\n      @options={{@component.options.filteredCollection.sortingFields}}\\n      @withSearchInput={{true}}\\n      @disabled={{not @component.options.filteredCollection}}\\n      @onChange={{this.handleSortingFieldChange}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-collection-select-sorting-field\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Sorting order\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @defaultOption=\\\"(Inherited)\\\"\\n      @defaultValue={{null}}\\n      @value={{one-way @component.options.sortingOrder}}\\n      @options={{this.sortingOrderOptions}}\\n      @disabled={{not @component.options.filteredCollection}}\\n      @onChange={{this.handleSortingOrderChange}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-collection-select-sorting-order\\n    />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Customize columns\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::Form::Toggle\\n      @value={{one-way this.areColumnsCustomized}}\\n      @disabled={{not @component.options.filteredCollection}}\\n      @onChange={{this.handleCustomizeColumnsToggle}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-collection-are-columns-customized\\n    />\\n  </Shared::BetaLabel>\\n  {{#if this.areColumnsCustomized}}\\n    <Shared::DataDisplay::BetaList\\n      @class=\\\"c-feature-workspace-component-configuration-collection__list\\\"\\n      @values={{this.sortedVisibleColumns}}\\n      @valuePath=\\\"displayName\\\"\\n      @onReorder={{this.handleReorderColumns}}\\n      @isEditable={{false}}\\n      @reorderable={{true}}\\n      @icon=\\\"visibility\\\"\\n      @onRemove={{this.hideColumn}}\\n      @isButtonDisabled={{eq this.sortedVisibleColumns.length 1}}\\n      @readOnly={{false}}\\n      @buttonClass=\\\"c-feature-workspace-component-configuration-collection__column-button c-feature-workspace-component-configuration-collection__column-button--visible\\\"\\n      @entryClass=\\\"c-feature-workspace-component-configuration-collection__column-entry\\\"\\n      data-test-feature-workspace-component-configuration-configuration-collection-visible-columns-list\\n    />\\n    <Shared::DataDisplay::BetaList\\n      @class=\\\"c-feature-workspace-component-configuration-collection__list-invisible\\\"\\n      @values={{this.sortedInvisibleColumns}}\\n      @valuePath=\\\"displayName\\\"\\n      @isEditable={{false}}\\n      @reorderable={{false}}\\n      @icon=\\\"visibility_off\\\"\\n      @onRemove={{this.showColumn}}\\n      @readOnly={{false}}\\n      @isButtonDisabled={{false}}\\n      @buttonClass=\\\"c-feature-workspace-component-configuration-collection__column-button c-feature-workspace-component-configuration-collection__column-button--invisible\\\"\\n      @entryClass=\\\"c-feature-workspace-component-configuration-collection__column-entry c-feature-workspace-component-configuration-collection__column-entry--not-sortable\\\"\\n      data-test-feature-workspace-component-configuration-configuration-collection-hidden-columns-list\\n    />\\n  {{/if}}\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Display\\\" @isSectionFoldable={{true}}>\\n  <Shared::BetaLabel\\n    @label=\\\"Records per page\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaInput\\n      @type=\\\"number\\\"\\n      @min={{1}}\\n      @max={{this.maxRecordsPerPage}}\\n      @value={{one-way @component.options.recordsPerPage}}\\n      @placeholder=\\\"(Inherited)\\\"\\n      @disabled={{or\\n        (not @component.options.filteredCollection)\\n        @component.options.filteredCollection.isEmbedded\\n      }}\\n      @onChange={{fn (mut @component.options.recordsPerPage)}}\\n      @canBeCleared={{true}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-collection-records-per-page-input\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Show filters\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::Form::Toggle\\n      @value={{one-way @component.options.showFilters}}\\n      @disabled={{or\\n        (not @component.options.filteredCollection)\\n        @component.options.filteredCollection.isEmbedded\\n      }}\\n      @onChange={{fn (mut @component.options.showFilters)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-collection-show-filters\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Show Actions button\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::Form::Toggle\\n      @value={{one-way @component.options.showActions}}\\n      @disabled={{or\\n        (not @component.options.filteredCollection)\\n        @component.options.filteredCollection.isEmbedded\\n      }}\\n      @onChange={{fn (mut @component.options.showActions)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-collection-show-actions\\n    />\\n  </Shared::BetaLabel>\\n  {{#if (gt @component.options.filteredCollection.workflows.length 0)}}\\n    <Shared::BetaLabel\\n      @label=\\\"Show Workflows button\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <Shared::Form::Toggle\\n        @value={{one-way @component.options.showWorkflows}}\\n        @disabled={{or\\n          (not @component.options.filteredCollection)\\n          @component.options.filteredCollection.isEmbedded\\n        }}\\n        @onChange={{fn (mut @component.options.showWorkflows)}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-configuration-collection-show-workflows\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n  <Shared::BetaLabel\\n    @label=\\\"Show search bar\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::Form::Toggle\\n      @value={{one-way @component.options.showSearchbar}}\\n      @disabled={{or\\n        (not @component.options.filteredCollection)\\n        @component.options.filteredCollection.isEmbedded\\n      }}\\n      @onChange={{fn (mut @component.options.showSearchbar)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-collection-show-searchbar\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Show create\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::Form::Toggle\\n      @value={{one-way @component.options.showCreate}}\\n      @disabled={{not @component.options.filteredCollection}}\\n      @onChange={{fn (mut @component.options.showCreate)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-collection-show-create\\n    />\\n  </Shared::BetaLabel>\\n  {{#if (gt @component.options.filteredCollection.segmentsVisibleSorted.length 0)}}\\n    <Shared::BetaLabel\\n      @label=\\\"Enable segments dropdown\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <Shared::Form::Toggle\\n        @value={{one-way @component.options.enableSegments}}\\n        @disabled={{not @component.options.collection}}\\n        @onChange={{fn (mut @component.options.enableSegments)}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-configuration-collection-enable-segments\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n  <Shared::BetaLabel\\n    @label=\\\"View\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @namePath=\\\"name\\\"\\n      @defaultOption=\\\"(Inherited)\\\"\\n      @defaultValue={{null}}\\n      @value={{one-way @component.options.view}}\\n      @options={{@component.options.filteredCollection.viewLists}}\\n      @withSearchInput={{true}}\\n      @capitalizeValues={{true}}\\n      @disabled={{or\\n        (not @component.options.filteredCollection)\\n        (not @component.options.filteredCollection.hasSmartViews)\\n      }}\\n      @onChange={{this.handleSmartViewChange}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-collection-select-view\\n    />\\n  </Shared::BetaLabel>\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/collection/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport WorkspaceComponentModel, { isNameValid } from 'client/data/models/workspace-component';\nimport { WorkspaceComponentVisibilityTypeEnum } from 'client/data/models/workspace-component-visibility';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class WorkspacePanelComponentConfigurationComponent extends Component {\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n    featureCallbackRoute: PropTypes.string.isRequired,\n    onConfirmBreakingChange: PropTypes.func.isRequired,\n    onConfirmDelete: PropTypes.func.isRequired,\n    componentName: PropTypes.string.isRequired,\n  };\n\n  @service errorHandler;\n  @service eventBus;\n  @service lianaSession;\n  @service segment;\n  @service store;\n  @service toastr;\n  @service('business/workspace-manager') workspaceManager;\n\n  basicVisibilityOptions = [\n    { label: 'Always', value: WorkspaceComponentVisibilityTypeEnum.Always },\n    {\n      label: 'Only when a component is visible',\n      value: WorkspaceComponentVisibilityTypeEnum.WhenAnotherComponentIsVisible,\n    },\n  ];\n\n  get isDiscardVisible() {\n    const changedAttributes = { ...this.args.component.changedAttributes() };\n    let { hasDirtyAttributes } = this.args.component;\n    if (this.args.componentName !== this.args.component.name) {\n      hasDirtyAttributes = true;\n      changedAttributes.name = [this.args.component.name, this.args.componentName];\n    }\n\n    return (\n      hasDirtyAttributes\n      && (Object.keys(changedAttributes).length > 1 || !changedAttributes.displaySettings)\n    );\n  }\n\n  get allComponentsVisibilityCanDependOn() {\n    // Filter out the component itself and all components that depend on this component visibility (avoiding circular dependencies).\n    return this.args.component.workspace.components\n      .filter(\n        (component) =>\n          component.id !== this.args.component.id\n          && !component.getComponentsRequiredForItsVisibility().includes(this.args.component),\n      )\n      .sortBy('name');\n  }\n\n  get isSaveDisabled() {\n    const { component } = this.args;\n    return (\n      !component.isConfigured\n      || !this.isDiscardVisible\n      || !isNameValid(this.args.componentName)\n      || this.args.component.hasTemplatingOrConfigurationError\n    );\n  }\n\n  get visibilityOptions() {\n    if (!this.args.component.options.canUseContext) {\n      return this.basicVisibilityOptions;\n    }\n    return [\n      ...this.basicVisibilityOptions,\n      {\n        label:\n          this.args.component.isAction || this.args.component.isField\n            ? 'Only when source record is selected'\n            : 'Only when dynamic values are defined',\n        value: WorkspaceComponentVisibilityTypeEnum.WhenItsContextIsSet,\n      },\n    ];\n  }\n\n  @action\n  handleChangeVisibility(value) {\n    this.args.component.visibility = {\n      type: value,\n      componentId: undefined,\n    };\n  }\n\n  @action\n  async saveWorkspaceComponent() {\n    if (this.args.componentName !== this.args.component.name) {\n      this.workspaceManager.renameComponent(this.args.component, this.args.componentName);\n    }\n\n    await this.workspaceManager.saveComponent(this.args.component);\n  }\n\n  @action\n  initializeShouldDisplayTemplatingError() {\n    this.args.component.shouldDisplayTemplatingError = this.args.component.hasTemplatingError;\n  }\n}\n","import type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport { WorkspaceDatePickerTypeEnum } from 'client/data/models/workspace-component-options-date-picker';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\ninterface WorkspacePanelComponentConfigurationDatePickerComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.DatePicker>;\n}\n\n@validateArguments\nexport default class WorkspaceComponentConfigurationDatePickerComponent extends Component<WorkspacePanelComponentConfigurationDatePickerComponentArgs> {\n  public readonly datePickerTypes = Object.values(WorkspaceDatePickerTypeEnum);\n\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n  };\n\n  @tracked public isMinimumDateDisplayingTemplating: boolean;\n  @tracked public isMaximumDateDisplayingTemplating: boolean;\n\n  constructor(owner: unknown, args: WorkspacePanelComponentConfigurationDatePickerComponentArgs) {\n    super(owner, args);\n\n    this.isMinimumDateDisplayingTemplating =\n      AbstractTemplatingHelper.getTemplatingKeys(this.args.component.options.minimumDate).length\n      > 0;\n    this.isMaximumDateDisplayingTemplating =\n      AbstractTemplatingHelper.getTemplatingKeys(this.args.component.options.maximumDate).length\n      > 0;\n  }\n\n  @action\n  onChangeType(type: WorkspaceDatePickerTypeEnum) {\n    const { options } = this.args.component;\n    options.type = type;\n    options.format = null;\n    options.minimumDate = null;\n    options.maximumDate = null;\n    this.isMinimumDateDisplayingTemplating = false;\n    this.isMaximumDateDisplayingTemplating = false;\n  }\n\n  @action\n  handleClickMinimumDateTemplate() {\n    this.isMinimumDateDisplayingTemplating = !this.isMinimumDateDisplayingTemplating;\n    this.args.component.options.minimumDate = null;\n  }\n\n  @action\n  handleClickMaximumDateTemplate() {\n    this.isMaximumDateDisplayingTemplating = !this.isMaximumDateDisplayingTemplating;\n    this.args.component.options.maximumDate = null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Basic details\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Type\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    data-test-feature-workspace-component-configuration-configuration-date-picker-label-type\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.datePickerTypes}}\\n      @value={{one-way @component.options.type}}\\n      @onChange={{this.onChangeType}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-date-picker-type\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Format\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    data-test-feature-workspace-component-configuration-configuration-date-picker-label-format\\n  >\\n    <:after-label>\\n      <Shared::Feedback::BetaInfoTooltip @side=\\\"top\\\">\\n        <p class=\\\"c-feature-workspace-component-configuration-date-picker__format-tooltip-content\\\">\\n          Format following the syntax from moment.js\\n        </p>\\n      </Shared::Feedback::BetaInfoTooltip>\\n    </:after-label>\\n    <:default>\\n      <Shared::BetaInput\\n        @value={{one-way @component.options.format}}\\n        @placeholder={{@component.options.formatOrDefault}}\\n        @onChange={{fn (mut @component.options.format)}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-configuration-date-picker-format\\n      />\\n    </:default>\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Placeholder\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    data-test-feature-workspace-component-configuration-configuration-date-picker-label-placeholder\\n  >\\n    <:after-label>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n    </:after-label>\\n    <:default>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInput\\n        @component={{@component}}\\n        @value={{one-way @component.options.placeholder}}\\n        @placeholder={{@component.options.defaultPlaceholder}}\\n        @onChange={{fn (mut @component.options.placeholder)}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-configuration-date-picker-placeholder\\n      />\\n    </:default>\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Minimum date\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    data-test-feature-workspace-component-configuration-configuration-date-picker-label-minimum-date\\n  >\\n    <:after-label>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n    </:after-label>\\n    <:default>\\n      <div\\n        class=\\\"l-feature-workspace-component-configuration c-feature-workspace-component-configuration__input\\\"\\n      >\\n        {{#if this.isMinimumDateDisplayingTemplating}}\\n          <Form::AutocompleteInput\\n            @value={{@component.options.minimumDate}}\\n            @onChange={{fn (mut @component.options.minimumDate)}}\\n            @templatingHelper={{@component.templatingHelper}}\\n            @isExpectingSingleVariable={{true}}\\n            @expectedType={{@component.options.type}}\\n            class=\\\"c-feature-workspace-component-configuration__input-with-toggle\\\"\\n            data-test-feature-workspace-component-configuration-configuration-date-picker-minimum-date-autocomplete\\n          />\\n        {{else}}\\n          <Shared::BetaInputDate\\n            @value={{one-way @component.options.minimumDate}}\\n            @maxDate={{@component.options.maximumDate}}\\n            @format={{@component.options.formatOrDefault}}\\n            @isDateOnly={{@component.options.isDateOnly}}\\n            @onChange={{fn (mut @component.options.minimumDate)}}\\n            class=\\\"c-feature-workspace-component-configuration__input-with-toggle\\\"\\n            data-test-feature-workspace-component-configuration-configuration-date-picker-minimum-date\\n          />\\n        {{/if}}\\n        {{#let (generate-guid) as |switchButtonId|}}\\n          <Shared::Button::BetaButton\\n            @iconName=\\\"data_object\\\"\\n            @size=\\\"normal\\\"\\n            @type={{if this.isMinimumDateDisplayingTemplating \\'primary\\' \\'secondary\\'}}\\n            id={{switchButtonId}}\\n            data-test-feature-workspace-component-configuration-configuration-minimum-date-switch-to-variable-toggled={{stringify\\n              this.isMinimumDateDisplayingTemplating\\n            }}\\n            {{on \\'click\\' (prevent-default (stop-propagation this.handleClickMinimumDateTemplate))}}\\n          />\\n          <Shared::Feedback::BetaTooltip @targetId={{switchButtonId}} @side=\\\"bottom-end\\\">\\n            Toggle to input code\\n          </Shared::Feedback::BetaTooltip>\\n        {{/let}}\\n      </div>\\n    </:default>\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Maximum date\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    data-test-feature-workspace-component-configuration-configuration-date-picker-label-maximum-date\\n  >\\n    <:after-label>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n    </:after-label>\\n    <:default>\\n      <div\\n        class=\\\"l-feature-workspace-component-configuration c-feature-workspace-component-configuration__input\\\"\\n      >\\n        {{#if this.isMaximumDateDisplayingTemplating}}\\n          <Form::AutocompleteInput\\n            @value={{@component.options.maximumDate}}\\n            @onChange={{fn (mut @component.options.maximumDate)}}\\n            @templatingHelper={{@component.templatingHelper}}\\n            @isExpectingSingleVariable={{true}}\\n            @expectedType={{@component.options.type}}\\n            class=\\\"c-feature-workspace-component-configuration__input-with-toggle\\\"\\n            data-test-feature-workspace-component-configuration-configuration-date-picker-maximum-date-autocomplete\\n          />\\n        {{else}}\\n          <Shared::BetaInputDate\\n            @value={{one-way @component.options.maximumDate}}\\n            @minDate={{@component.options.minimumDate}}\\n            @format={{@component.options.formatOrDefault}}\\n            @isDateOnly={{@component.options.isDateOnly}}\\n            @onChange={{fn (mut @component.options.maximumDate)}}\\n            class=\\\"c-feature-workspace-component-configuration__input-with-toggle\\\"\\n            data-test-feature-workspace-component-configuration-configuration-date-picker-maximum-date\\n          />\\n        {{/if}}\\n        {{#let (generate-guid) as |switchButtonId|}}\\n          <Shared::Button::BetaButton\\n            @iconName=\\\"data_object\\\"\\n            @size=\\\"normal\\\"\\n            @type={{if this.isMaximumDateDisplayingTemplating \\'primary\\' \\'secondary\\'}}\\n            id={{switchButtonId}}\\n            data-test-feature-workspace-component-configuration-configuration-maximum-date-switch-to-variable-toggled={{stringify\\n              this.isMaximumDateDisplayingTemplating\\n            }}\\n            {{on \\'click\\' (prevent-default (stop-propagation this.handleClickMaximumDateTemplate))}}\\n          />\\n          <Shared::Feedback::BetaTooltip @targetId={{switchButtonId}} @side=\\\"bottom-end\\\">\\n            Toggle to input code\\n          </Shared::Feedback::BetaTooltip>\\n        {{/let}}\\n      </div>\\n    </:default>\\n  </Shared::BetaLabel>\\n</Shared::BetaRightPanel::Section>\\n\\n<Shared::BetaRightPanel::Section @title=\\\"Label\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Show label\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    data-test-feature-workspace-component-configuration-configuration-date-picker-label-should-display-label\\n  >\\n    <Shared::Form::Toggle\\n      @value={{one-way @component.options.shouldDisplayLabel}}\\n      @onChange={{fn (mut @component.options.shouldDisplayLabel)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-date-picker-should-display-label\\n    />\\n  </Shared::BetaLabel>\\n  {{#if @component.options.shouldDisplayLabel}}\\n    <Shared::BetaLabel\\n      @label=\\\"Text\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n      data-test-feature-workspace-component-configuration-configuration-date-picker-label-displayed-label\\n    >\\n      <:after-label>\\n        <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n      </:after-label>\\n      <:default>\\n        <Feature::Workspace::ComponentConfiguration::TemplatingInput\\n          @component={{@component}}\\n          @value={{one-way @component.options.displayedLabel}}\\n          @placeholder=\\\"Label\\\"\\n          @onChange={{fn (mut @component.options.displayedLabel)}}\\n          class=\\\"c-feature-workspace-component-configuration__input\\\"\\n          data-test-feature-workspace-component-configuration-configuration-date-picker-displayed-label\\n        />\\n      </:default>\\n    </Shared::BetaLabel>\\n  {{/if}}\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/date-picker/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Workspace::ComponentConfiguration::StyleSection @component={{@component}} />\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/divider/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Basic Details\\\">\\n  <Widgets::Edit::Dropdown::WidgetSettings\\n    @widgetConfiguration={{@component.options}}\\n    @isLeftLabel={{true}}\\n  />\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/dropdown/template.hbs' });\n","import type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type WidgetsManagerService from 'client/legacy/services/widgets-manager';\nimport type { WidgetParameter } from 'client/utils/widgets';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport FieldTemplatingHelper from 'client/utils/templating-helper/field-templating-helper';\n\nexport interface WorkspacePanelComponentConfigurationFieldArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Field>;\n}\n\nexport default class WorkspaceComponentConfigurationFieldComponent extends Component<WorkspacePanelComponentConfigurationFieldArgs> {\n  @service declare widgetsManager: WidgetsManagerService;\n  @service('feature/workspace') private workspaceFeature: WorkspaceFeatureService;\n\n  @tracked isDisplayingTemplating =\n    !!this.args.component.options.templatedFieldPath\n    && !!this.args.component.options.source?.options.filteredCollection;\n\n  constructor(owner: unknown, args: WorkspacePanelComponentConfigurationFieldArgs) {\n    super(owner, args);\n\n    void this.initializeComponentOptions();\n  }\n\n  get filteredCollection() {\n    return this.workspaceFeature.getFilteredCollectionForComponent(this.args.component);\n  }\n\n  get fieldTemplatingHelper() {\n    return this.filteredCollection\n      ? new FieldTemplatingHelper({\n          collection: this.filteredCollection,\n        })\n      : null;\n  }\n\n  get supportedDisplayWidgets() {\n    return this.args.component.options.field\n      ? this.widgetsManager.getDisplayWidgetsFor(this.args.component.options.field.typeForWidgets)\n      : [];\n  }\n\n  get supportedEditWidgets() {\n    return this.args.component.options.field\n      ? this.widgetsManager.getEditWidgetsFor(this.args.component.options.field.typeForWidgets)\n      : [];\n  }\n\n  async initializeComponentOptions() {\n    if (!this.args.component.options.sourceWorkspaceComponentId) {\n      await waitForNextRunLoop();\n      this.args.component.options.sourceWorkspaceComponentId =\n        this.args.component.workspace.currentRecordSource?.id;\n    }\n  }\n\n  @action\n  handleWidgetChange(widgetType: 'widgetDisplay' | 'widgetEdit', widget: WidgetParameter) {\n    if (!widget) {\n      this.args.component.options[widgetType] = null;\n      return;\n    }\n\n    if (widget.name === this.args.component.options[widgetType]?.name) {\n      return;\n    }\n\n    this.args.component.options[widgetType] = this.widgetsManager.createWidgetConfiguration(\n      this.args.component.options.field,\n      widget.name,\n    );\n  }\n\n  @action\n  handleClickTemplate() {\n    this.isDisplayingTemplating = !this.isDisplayingTemplating;\n\n    if (this.isDisplayingTemplating) {\n      this.args.component.options.field = null;\n    } else {\n      this.args.component.options.templatedField = null;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section\\n  @title=\\\"Basic details\\\"\\n  class=\\\"c-feature-workspace-component-configuration-field\\\"\\n>\\n  <Shared::BetaLabel\\n    @label=\\\"Source\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{@component.componentsWithSelectedRecordContext}}\\n      @iconPath=\\\"iconOrDefault\\\"\\n      @namePath=\\\"displayName\\\"\\n      @placeholder=\\\"Select a component\\\"\\n      @value={{@component.options.source}}\\n      @withSearchInput={{true}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-field-select-component\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Field\\\"\\n    @position=\\\"left\\\"\\n    @for=\\\"field-config\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <div\\n      class=\\\"l-feature-workspace-component-configuration c-feature-workspace-component-configuration__input\\\"\\n    >\\n      {{#if this.isDisplayingTemplating}}\\n        <Form::AutocompleteInput\\n          @value={{@component.options.templatedField}}\\n          @onChange={{fn (mut @component.options.templatedField)}}\\n          @templatingHelper={{this.fieldTemplatingHelper}}\\n          @isExpectingSingleVariable={{true}}\\n          class=\\\"c-feature-workspace-component-configuration__input-with-toggle\\\"\\n          data-test-feature-workspace-component-configuration-configuration-field-input-field-source\\n        />\\n      {{else}}\\n        <Shared::BetaSelect\\n          @options={{@component.options.source.options.filteredCollection.plainFields}}\\n          @namePath=\\\"displayName\\\"\\n          @disabled={{not @component.options.source}}\\n          @inputId=\\\"field-config\\\"\\n          @placeholder=\\\"Select a field\\\"\\n          @value={{@component.options.field}}\\n          @withSearchInput={{true}}\\n          class=\\\"c-feature-workspace-component-configuration__input-with-toggle\\\"\\n          data-test-feature-workspace-component-configuration-configuration-field-select-field\\n        />\\n      {{/if}}\\n\\n      {{#let (generate-guid) as |switchButtonId|}}\\n        <Shared::Button::BetaButton\\n          @iconName=\\\"data_object\\\"\\n          @size=\\\"normal\\\"\\n          @type={{if this.isDisplayingTemplating \\'primary\\' \\'secondary\\'}}\\n          @disabled={{not @component.options.source}}\\n          id={{switchButtonId}}\\n          data-test-feature-workspace-component-configuration-configuration-field-switch-to-variable\\n          data-test-feature-workspace-component-configuration-configuration-field-switch-to-variable-toggled={{this.isDisplayingTemplating}}\\n          {{on \\'click\\' (prevent-default (stop-propagation this.handleClickTemplate))}}\\n        />\\n        <Shared::Feedback::BetaTooltip @targetId={{switchButtonId}} @side=\\\"bottom-end\\\">\\n          Toggle to input code\\n        </Shared::Feedback::BetaTooltip>\\n      {{/let}}\\n    </div>\\n\\n  </Shared::BetaLabel>\\n</Shared::BetaRightPanel::Section>\\n\\n<Shared::BetaRightPanel::Section @title=\\\"Display widget\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Type\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @value={{one-way @component.options.widgetDisplay.widget}}\\n      @options={{this.supportedDisplayWidgets}}\\n      @namePath=\\\"label\\\"\\n      @onChange={{fn this.handleWidgetChange \\'widgetDisplay\\'}}\\n      @disabled={{not this.supportedDisplayWidgets.length}}\\n      @defaultOption=\\\"(Inherited)\\\"\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-field-widget-display\\n    />\\n  </Shared::BetaLabel>\\n\\n  {{#if @component.options.widgetDisplay.widget.hasSettings}}\\n    {{#let\\n      (component @component.options.widgetDisplay.widget.widgetSettingsComponent)\\n      as |DisplayWidgetSettings|\\n    }}\\n      <DisplayWidgetSettings\\n        @field={{@component.options.field}}\\n        @widgetConfiguration={{@component.options.widgetDisplay}}\\n      />\\n    {{/let}}\\n  {{/if}}\\n</Shared::BetaRightPanel::Section>\\n\\n<Shared::BetaRightPanel::Section @title=\\\"Edit widget\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Type\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @value={{one-way @component.options.widgetEdit.widget}}\\n      @options={{this.supportedEditWidgets}}\\n      @namePath=\\\"label\\\"\\n      @onChange={{fn this.handleWidgetChange \\'widgetEdit\\'}}\\n      @disabled={{not this.supportedEditWidgets.length}}\\n      @defaultOption=\\\"(Inherited)\\\"\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-field-widget-edit\\n    />\\n  </Shared::BetaLabel>\\n\\n  {{#if @component.options.widgetEdit.widget.hasSettings}}\\n    {{#let\\n      (component @component.options.widgetEdit.widget.widgetSettingsComponent)\\n      as |EditWidgetSettings|\\n    }}\\n      <EditWidgetSettings\\n        @field={{@component.options.field}}\\n        @widgetConfiguration={{@component.options.widgetEdit}}\\n      />\\n    {{/let}}\\n  {{/if}}\\n</Shared::BetaRightPanel::Section>\\n\\n<Shared::BetaRightPanel::Section @title=\\\"Label\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Show label\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::Form::Toggle\\n      @value={{one-way @component.options.shouldDisplayLabel}}\\n      @onChange={{fn (mut @component.options.shouldDisplayLabel)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-field-should-display-label\\n    />\\n  </Shared::BetaLabel>\\n  {{#if @component.options.shouldDisplayLabel}}\\n    <Shared::BetaLabel\\n      @label=\\\"Text\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <:after-label>\\n        <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n      </:after-label>\\n      <:default>\\n        <Feature::Workspace::ComponentConfiguration::TemplatingInput\\n          @component={{@component}}\\n          @value={{one-way @component.options.displayedLabel}}\\n          @placeholder={{or @component.options.field.displayName \\'Label\\'}}\\n          @onChange={{fn (mut @component.options.displayedLabel)}}\\n          class=\\\"c-feature-workspace-component-configuration__input\\\"\\n          data-test-feature-workspace-component-configuration-configuration-field-displayed-label\\n        />\\n      </:default>\\n    </Shared::BetaLabel>\\n  {{/if}}\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/field/template.hbs' });\n","import type InboxModel from 'client/data/models/inbox';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type CustomizationCenterFeatureService from 'client/features/customization-center/services/feature';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type LayoutState from 'client/shared/states/layout';\nimport type { AbilitiesService } from 'ember-can';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport validateArguments from 'client/decorators/validate';\nimport { CustomizationCenterConfigurationFeaturesEnum } from 'client/features/customization-center/services/internal-business/configuration';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface WorkspacePanelComponentConfigurationCollectionComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Inbox>;\n}\n\n@validateArguments\nexport default class WorkspaceComponentConfigurationInboxComponent extends Component<WorkspacePanelComponentConfigurationCollectionComponentArgs> {\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n  };\n\n  @service('shared/state/layout') private layoutState: LayoutState;\n  @service private abilities: AbilitiesService;\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n  @service('feature/notification') private notification: NotificationFeatureService;\n  @service('feature/customization-center')\n  private customizationCenterFeature: CustomizationCenterFeatureService;\n\n  @tracked inboxes: InboxModel[];\n\n  constructor(owner: unknown, args: WorkspacePanelComponentConfigurationCollectionComponentArgs) {\n    super(owner, args);\n    this.inboxes = this.abilities.can('access inbox') ? this.layoutState.rendering.inboxes : [];\n  }\n\n  get collectionsWithInboxes() {\n    return this.inboxFeature.getCollectionsWithInboxes();\n  }\n\n  get filteredInboxes() {\n    if (!this.args.component.options.collectionId) {\n      return this.inboxes;\n    }\n    return this.inboxes.filter(\n      (inbox) => inbox.collection.id === this.args.component.options.collectionId,\n    );\n  }\n\n  get existingInboxIds() {\n    return this.args.component.options.existingInboxes.map((inbox) => inbox.id);\n  }\n\n  @action\n  handleNewInbox() {\n    if (this.abilities.can('preview inbox')) {\n      return this.customizationCenterFeature.openCustomizationCenterModal(\n        CustomizationCenterConfigurationFeaturesEnum.Inbox,\n      );\n    }\n    return this.inboxFeature.handleOpenCreationModal({ onInboxCreated: this.handleInboxCreated });\n  }\n\n  @action\n  featureEnabledCallback() {\n    this.inboxFeature.handleClosePreviewModal();\n  }\n\n  @action\n  handleInboxCreated(inbox?: InboxModel) {\n    if (!inbox) {\n      return;\n    }\n    const { options } = this.args.component;\n    if (options.collectionId && options.collectionId !== inbox.collection.id) {\n      options.inboxIds.clear();\n      this.notification.createToastr(\n        ToastrTypeEnum.Info,\n        `Inbox component \"${this.args.component.name}\" collection has been updated to \"${inbox.collection.singularizedDisplayName}\"`,\n      );\n    }\n    options.collectionId = inbox?.collection.id;\n\n    options.inboxIds.pushObject(inbox.id);\n  }\n\n  @action\n  handleChangeCollection(collectionId: string) {\n    this.args.component.options.collectionId = collectionId;\n    this.args.component.options.inboxIds.clear();\n  }\n\n  @action\n  handleChangeInbox(inboxIds: string[]) {\n    this.args.component.options.inboxIds.clear();\n    const filteredInboxes = inboxIds.filter((inboxId) => this.inboxFeature.getInboxById(inboxId));\n\n    if (filteredInboxes.length > 0) {\n      this.args.component.options.collectionId = this.inboxFeature.getInboxById(\n        filteredInboxes[0],\n      ).collection.id;\n\n      this.args.component.options.inboxIds.pushObjects(filteredInboxes);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Basic Details\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Collection\\\"\\n    @position=\\\"left\\\"\\n    {{! template-lint-disable class-match-component-name  }}\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    data-test-feature-workspace-component-configuration-inbox-label-collection\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.collectionsWithInboxes}}\\n      @namePath=\\\"displayNameWithEmoji\\\"\\n      @value={{one-way @component.options.collectionId}}\\n      @valuePath=\\\"id\\\"\\n      @onChange={{this.handleChangeCollection}}\\n      @defaultValue={{null}}\\n      @defaultOption=\\\"No collection filter\\\"\\n      @placeholder=\\\"Select a collection to filter inboxes\\\"\\n      @withSearchInput={{true}}\\n      {{! template-lint-disable class-match-component-name  }}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-inbox-select-collection\\n    >\\n      <:before-item-default-option>\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName=\\\"filter_list_off\\\"\\n          @size=\\\"custom\\\"\\n          data-test-feature-workspace-component-configuration-inbox-collection-icon\\n        />\\n      </:before-item-default-option>\\n    </Shared::BetaSelect>\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Inbox\\\"\\n    @position=\\\"left\\\"\\n    {{! template-lint-disable class-match-component-name  }}\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    data-test-feature-workspace-component-configuration-inbox-label-inboxes\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.filteredInboxes}}\\n      @namePath=\\\"nameWithCollection\\\"\\n      @defaultOption=\\\"New inbox\\\"\\n      @onSelectDefault={{this.handleNewInbox}}\\n      @value={{one-way this.existingInboxIds}}\\n      @valuePath=\\\"id\\\"\\n      @onChange={{this.handleChangeInbox}}\\n      @placeholder=\\\"Select an inbox\\\"\\n      @iconPath=\\\"icon\\\"\\n      @withSearchInput={{true}}\\n      @multipleValues={{true}}\\n      {{! template-lint-disable class-match-component-name  }}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-inbox-select-inboxes\\n    >\\n      <:before-item-default-option>\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName=\\\"add\\\"\\n          @size=\\\"custom\\\"\\n          data-test-feature-workspace-component-configuration-inbox-add-icon\\n        />\\n      </:before-item-default-option>\\n    </Shared::BetaSelect>\\n  </Shared::BetaLabel>\\n  {{#if @component.options.hasConfigurationError}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"warning\\\"\\n      @canHide={{false}}\\n      @message=\\\"The selected inbox has been deleted. Please select a new inbox.\\\"\\n      data-test-feature-workspace-component-configuration-inbox-warning\\n    />\\n  {{/if}}\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/inbox/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Basic details\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Input type\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{array (hash name=\\'Text\\' value=\\'String\\') (hash name=\\'Number\\' value=\\'Number\\')}}\\n      @namePath=\\\"name\\\"\\n      @valuePath=\\\"value\\\"\\n      @value={{one-way @component.options.inputType}}\\n      @onChange={{fn (mut @component.options.inputType)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-input-select-type\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Placeholder\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaInput\\n      @type=\\\"text\\\"\\n      @placeholder=\\\"No placeholder\\\"\\n      @value={{one-way @component.options.placeholder}}\\n      @onChange={{fn (mut @component.options.placeholder)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-input-placeholder\\n    />\\n  </Shared::BetaLabel>\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Label\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Show label\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::Form::Toggle\\n      @value={{one-way @component.options.shouldDisplayLabel}}\\n      @onChange={{fn (mut @component.options.shouldDisplayLabel)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-input-should-display-label\\n    />\\n  </Shared::BetaLabel>\\n  {{#if @component.options.shouldDisplayLabel}}\\n    <Shared::BetaLabel\\n      @label=\\\"Text\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <Shared::BetaInput\\n        @type=\\\"text\\\"\\n        @placeholder=\\\"Enter a label to display\\\"\\n        @value={{one-way @component.options.label}}\\n        @onChange={{fn (mut @component.options.label)}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-configuration-input-label\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/input/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Basic details\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"URL Type\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{array\\n        (hash name=\\'Custom\\' value=\\'custom\\')\\n        (hash name=\\'Redirect to record\\' value=\\'redirectToRecord\\')\\n      }}\\n      @namePath=\\\"name\\\"\\n      @valuePath=\\\"value\\\"\\n      @value={{one-way @component.options.urlType}}\\n      @onChange={{@component.options.switchType}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-link-select-url-type\\n    />\\n  </Shared::BetaLabel>\\n  {{#if @component.options.isRedirectToRecordURL}}\\n    <Shared::BetaLabel\\n      @label=\\\"Source\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <Shared::BetaSelect\\n        @options={{@component.componentsWithSelectedRecordContextNotEmbedded}}\\n        @iconPath=\\\"iconOrDefault\\\"\\n        @namePath=\\\"displayName\\\"\\n        @placeholder=\\\"Select a component\\\"\\n        @value={{one-way @component.options.source}}\\n        @onChange={{fn (mut @component.options.source)}}\\n        @withSearchInput={{true}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-configuration-link-select-component\\n      />\\n    </Shared::BetaLabel>\\n  {{else}}\\n    <Shared::BetaLabel\\n      @label=\\\"URL\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <:after-label>\\n        <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip>\\n          {{~\\'You can include data from other components as parameters in this URL. For instance: https://zendesk.com/customers/\\'~}}\\n          <strong>\\n            {{~\\'{{collection1.selectedRecord.id}}\\'~}}\\n          </strong>\\n          {{~\\'/details\\'~}}\\n        </Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip>\\n      </:after-label>\\n      <:default>\\n        <Feature::Workspace::ComponentConfiguration::TemplatingInput\\n          @component={{@component}}\\n          @placeholder=\\\"https://\\\"\\n          @value={{one-way @component.options.url}}\\n          @onChange={{fn (mut @component.options.url)}}\\n          @templatingHelper={{@component.templatingHelper}}\\n          class=\\\"c-feature-workspace-component-configuration__input\\\"\\n          data-test-feature-workspace-component-configuration-link-url-input\\n        />\\n      </:default>\\n    </Shared::BetaLabel>\\n  {{/if}}\\n  <Shared::BetaLabel\\n    @label=\\\"Text\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <:after-label>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n    </:after-label>\\n    <:default>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInput\\n        @component={{@component}}\\n        @value={{one-way @component.options.displayedText}}\\n        @onChange={{fn (mut @component.options.displayedText)}}\\n        @templatingHelper={{@component.templatingHelper}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-link-text-input\\n      />\\n    </:default>\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Open in a new tab\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::Form::Toggle\\n      @value={{one-way @component.options.shouldOpenInNewTab}}\\n      @onChange={{fn (mut @component.options.shouldOpenInNewTab)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-link-should-open-new-tab\\n    />\\n  </Shared::BetaLabel>\\n</Shared::BetaRightPanel::Section>\\n<Feature::Workspace::ComponentConfiguration::StyleSection @component={{@component}} />\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/link/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Basic details\\\">\\n  <Shared::Feedback::Notification::NotificationInApp @state=\\\"info\\\" @canHide={{false}}>\\n    To help you fill in options, please take a look on Metabase workspace component\\n    <Shared::Navigation::BetaLinkTo\\n      @type=\\\"info\\\"\\n      @href=\\\"https://docs.forestadmin.com/user-guide/workspaces/building-a-workspace#the-metabase-component\\\"\\n      @text=\\\"documentation\\\"\\n      @punctuation=\\\".\\\"\\n      @size=\\\"custom\\\"\\n    />\\n  </Shared::Feedback::Notification::NotificationInApp>\\n  <Shared::BetaLabel\\n    @label=\\\"Url\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaInput\\n      @type=\\\"text\\\"\\n      @placeholder=\\\"Metabase site url\\\"\\n      @value={{one-way @component.options.url}}\\n      @onChange={{fn (mut @component.options.url)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-metabase-url\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Token\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaInput\\n      @type=\\\"text\\\"\\n      @placeholder=\\\"Metabase token\\\"\\n      @value={{one-way @component.options.token}}\\n      @onChange={{fn (mut @component.options.token)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-metabase-token\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Query\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <:after-label>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n    </:after-label>\\n    <:default>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInput\\n        @component={{@component}}\\n        @value={{one-way @component.options.query}}\\n        @placeholder=\\\"Metabase query parameters\\\"\\n        @onChange={{fn (mut @component.options.query)}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-configuration-metabase-query\\n      />\\n    </:default>\\n  </Shared::BetaLabel>\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/metabase/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel\\n  @label=\\\"On row click\\\"\\n  @position=\\\"left\\\"\\n  class=\\\"c-feature-workspace-component-configuration__label\\\"\\n>\\n  <:after-label>\\n    <Shared::Feedback::BetaInfoTooltip\\n      @tooltipSide=\\\"bottom\\\"\\n      data-test-feature-workspace-component-configuration-configuration-on-row-click-selector-tooltip\\n    >\\n      Selecting a record lets you use its data in other components.\\n    </Shared::Feedback::BetaInfoTooltip>\\n  </:after-label>\\n  <:default>\\n    <Shared::BetaSelect\\n      @options={{array\\n        (hash name=\\'Select a record\\' value=\\'selectARecord\\')\\n        (hash name=\\'Redirect to record\\' value=\\'redirectToRecord\\')\\n      }}\\n      @namePath=\\\"name\\\"\\n      @valuePath=\\\"value\\\"\\n      @value={{one-way @component.options.onRowClick}}\\n      @onChange={{fn (mut @component.options.onRowClick)}}\\n      @disabled={{@disabled}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-on-row-click-selector-select\\n    />\\n  </:default>\\n</Shared::BetaLabel>\\n', { moduleName: 'client/features/workspace/components/component-configuration/on-row-click-selector/template.hbs' });\n","import type CollectionModel from 'client/data/models/collection';\nimport type SegmentModel from 'client/data/models/segment';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { action } from '@ember/object';\nimport { sort } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface WorkspacePanelComponentConfigurationSearchComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Search>;\n  onConfirmBreakingChange: () => Promise<boolean>;\n}\n\n@validateArguments\nexport default class WorkspaceComponentConfigurationSearchComponent extends Component<WorkspacePanelComponentConfigurationSearchComponentArgs> {\n  @service declare store: StoreService;\n\n  static propTypes = { component: PropTypes.instanceOf(WorkspaceComponentModel) };\n\n  collectionsSorting = ['singularizedDisplayName:asc'];\n  segmentsSorting = ['name:asc'];\n\n  @sort('args.component.workspace.rendering.collectionsAccessibleGlobally', 'collectionsSorting')\n  declare collections: CollectionModel[];\n\n  @sort('args.component.options.collection.segmentsVisibleSorted', 'segmentsSorting')\n  declare segments: SegmentModel[];\n\n  get simpleFields() {\n    return (\n      this.args.component.options.collection?.fieldsSorted.filter((field) => !field.isRelationship)\n      || []\n    );\n  }\n\n  @action\n  async handleCollectionChange(newValue: CollectionModel) {\n    if (this.args.component.options.collection && this.args.component.appliedOn?.length) {\n      const isConfirmed = await this.args.onConfirmBreakingChange();\n      if (!isConfirmed) {\n        return;\n      }\n    }\n    this.args.component.options.collection = newValue;\n  }\n\n  @action\n  handleCreateFilter() {\n    this.args.component.options.filter = this.store.createFragment('fragment-filter', {\n      conditions: [{}],\n    });\n\n    return this.args.component.options.filter;\n  }\n\n  @action\n  handleDeleteFilter() {\n    this.args.component.options.filter = null;\n  }\n\n  @action\n  async handleDisplayFieldChange(newValue: string) {\n    this.args.component.options.displayFieldName = newValue;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Basic details\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Placeholder\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <:after-label>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n    </:after-label>\\n    <:default>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInput\\n        @component={{@component}}\\n        @placeholder={{@component.options.defaultPlaceholder}}\\n        @value={{one-way @component.options.placeholder}}\\n        @onChange={{fn (mut @component.options.placeholder)}}\\n        @templatingHelper={{@component.templatingHelper}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-configuration-search-placeholder-input\\n      />\\n    </:default>\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Collection\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.collections}}\\n      @iconPath=\\\"iconOrDefault\\\"\\n      @namePath=\\\"singularizedDisplayName\\\"\\n      @value={{one-way @component.options.collection}}\\n      @onChange={{this.handleCollectionChange}}\\n      @withSearchInput={{true}}\\n      @placeholder=\\\"Select a collection\\\"\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-search-select-collection\\n    />\\n  </Shared::BetaLabel>\\n  {{#if @component.options.collection.segmentsVisibleSorted.length}}\\n    <Shared::BetaLabel\\n      @label=\\\"Segment\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <Shared::BetaSelect\\n        @options={{this.segments}}\\n        @namePath=\\\"name\\\"\\n        @defaultOption={{if @component.options.collection.isRestrictedToSegments null \\'All\\'}}\\n        @value={{one-way @component.options.segment}}\\n        @onChange={{fn (mut @component.options.segment)}}\\n        @withSearchInput={{true}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-configuration-search-select-segment\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n  <Shared::BetaLabel\\n    @label=\\\"Field to display\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.simpleFields}}\\n      @defaultOption=\\\"(Inherited)\\\"\\n      @value={{one-way @component.options.displayFieldName}}\\n      @onChange={{this.handleDisplayFieldChange}}\\n      @disabled={{not @component.options.collection}}\\n      @namePath=\\\"displayNameTitlize\\\"\\n      @valuePath=\\\"fieldName\\\"\\n      @withSearchInput={{true}}\\n      @placeholder=\\\"Select a field\\\"\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-search-display-field-name\\n    />\\n  </Shared::BetaLabel>\\n  <Feature::Workspace::ComponentConfiguration::OnRowClickSelector @component={{@component}} />\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Filters\\\">\\n  <:header>\\n    {{#unless @component.options.filter}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"link-primary\\\"\\n        @text=\\\"Add filter\\\"\\n        @iconName=\\\"add\\\"\\n        @underline={{false}}\\n        @action={{this.handleCreateFilter}}\\n        @disabled={{not @component.options.collection}}\\n        data-test-feature-workspace-component-configuration-configuration-search-add-filter\\n      />\\n    {{/unless}}\\n  </:header>\\n  <:default>\\n    {{#if @component.options.filter}}\\n      <BetaFilter::Form\\n        @filter={{@component.options.filter}}\\n        @createFilter={{this.handleCreateFilter}}\\n        @fields={{@component.options.collection.filterableFields}}\\n        @showApply={{false}}\\n        @showDiscard={{true}}\\n        @canClearNew={{true}}\\n        @onClearAll={{this.handleDeleteFilter}}\\n        @templatingHelper={{@component.templatingHelper}}\\n        data-test-feature-workspace-component-configuration-configuration-search-filter-form\\n      />\\n    {{/if}}\\n  </:default>\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/search/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/section/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Basic details\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Template URL\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaInput\\n      @placeholder=\\\"/public/smart-components/my-component/template.hbs\\\"\\n      @value={{one-way @component.options.templateUrl}}\\n      @onChange={{fn (mut @component.options.templateUrl)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-smart-template-url\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Component URL\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaInput\\n      @placeholder=\\\"/public/smart-components/my-component/component.js\\\"\\n      @value={{one-way @component.options.componentUrl}}\\n      @onChange={{fn (mut @component.options.componentUrl)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-smart-component-url\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Style URL\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaInput\\n      @placeholder=\\\"/public/smart-components/my-component/style.css\\\"\\n      @value={{one-way @component.options.styleUrl}}\\n      @onChange={{fn (mut @component.options.styleUrl)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-smart-style-url\\n    />\\n  </Shared::BetaLabel>\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/smart/template.hbs' });\n","import type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport Component from '@glimmer/component';\n\nimport WorkspaceComponentModel, {\n  type WorkspaceComponentTypeEnum,\n} from 'client/data/models/workspace-component';\nimport {\n  WorkspaceFontStyleEnum,\n  WorkspaceFontWeightEnum,\n} from 'client/data/models/workspace-component-options-text';\nimport validateArguments from 'client/decorators/validate';\nimport { COLORS_FROM_FOREST } from 'client/utils/color-utils';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype WorkspaceComponentWithFullStyle = WorkspaceComponentModel<\n  WorkspaceComponentTypeEnum.Link | WorkspaceComponentTypeEnum.Text\n>;\n\ninterface WorkspacePanelComponentConfigurationStyleSectionComponentArgs {\n  component:\n    | WorkspaceComponentWithFullStyle\n    | WorkspaceComponentModel<WorkspaceComponentTypeEnum.Divider>;\n}\n\n@validateArguments\nexport default class WorkspaceComponentConfigurationStyleSectionComponent extends Component<WorkspacePanelComponentConfigurationStyleSectionComponentArgs> {\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n  };\n\n  @service private lianaSession: LianaSessionService;\n\n  alignmentValues = [\n    {\n      label: htmlSafe(\n        '<i class=\"material-icons c-feature-workspace-component-configuration__tabs-icon c-feature-workspace-component-configuration__tabs-icon--rotate\">vertical_align_bottom</i>',\n      ),\n      value: 'left',\n    },\n    {\n      label: htmlSafe(\n        '<i class=\"material-icons c-feature-workspace-component-configuration__tabs-icon c-feature-workspace-component-configuration__tabs-icon--rotate\">vertical_align_center</i>',\n      ),\n      value: 'center',\n    },\n    {\n      label: htmlSafe(\n        '<i class=\"material-icons c-feature-workspace-component-configuration__tabs-icon c-feature-workspace-component-configuration__tabs-icon--rotate\">vertical_align_top</i>',\n      ),\n      value: 'right',\n    },\n  ];\n\n  fontWeightValues = [\n    { label: 'Normal', value: 'normal' },\n    { label: htmlSafe('<em>Italic</em>'), value: 'italic' },\n    { label: htmlSafe('<strong>Bold</strong>'), value: 'bold' },\n  ];\n\n  get colors() {\n    const colorsFromComponents = this.args.component.workspace.components\n      .map((component) => 'color' in component.options && component.options.color.toUpperCase())\n      .filter((color) => color && !COLORS_FROM_FOREST.includes(color));\n    return [\n      ...colorsFromComponents,\n      this.lianaSession.currentProject.primaryColorOrDefault,\n      ...COLORS_FROM_FOREST,\n    ].uniq();\n  }\n\n  get fontWeight() {\n    const { fontWeight, fontStyle } = (this.args.component as WorkspaceComponentWithFullStyle)\n      .options;\n    return [fontWeight, fontStyle].find((property) => property !== 'normal') || 'normal';\n  }\n\n  @action\n  handleChangeFontWeight(value: WorkspaceFontWeightEnum | WorkspaceFontStyleEnum) {\n    const { options } = this.args.component as WorkspaceComponentWithFullStyle;\n\n    switch (value) {\n      case 'bold':\n        options.fontWeight = WorkspaceFontWeightEnum.Bold;\n        options.fontStyle = WorkspaceFontStyleEnum.Normal;\n        break;\n      case 'italic':\n        options.fontWeight = WorkspaceFontWeightEnum.Normal;\n        options.fontStyle = WorkspaceFontStyleEnum.Italic;\n        break;\n      default:\n        options.fontWeight = WorkspaceFontWeightEnum.Normal;\n        options.fontStyle = WorkspaceFontStyleEnum.Normal;\n        break;\n    }\n  }\n\n  @action\n  handleChangeColor(color: string) {\n    this.args.component.options.color = color ?? 'inherit';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Style\\\">\\n  {{#if @component.options.fontSize}}\\n    <Shared::BetaLabel\\n      @label=\\\"Font size (px)\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <Shared::BetaInput\\n        @type=\\\"number\\\"\\n        @min={{1}}\\n        @value={{one-way @component.options.fontSize}}\\n        @onChange={{fn (mut @component.options.fontSize)}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-style-section-font-size-input\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n  {{#if @component.options.textAlign}}\\n    <Shared::BetaLabel\\n      @label=\\\"Alignment\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <Shared::Form::Tabs\\n        @selected={{one-way @component.options.textAlign}}\\n        @onSelect={{fn (mut @component.options.textAlign)}}\\n        @items={{this.alignmentValues}}\\n        @color=\\\"secondary\\\"\\n        @isFullWidth={{true}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-style-section-text-align-input\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n  {{#if @component.options.fontWeight}}\\n    <Shared::BetaLabel\\n      @label=\\\"Text formatting\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <Shared::Form::Tabs\\n        @selected={{this.fontWeight}}\\n        @items={{this.fontWeightValues}}\\n        @onSelect={{this.handleChangeFontWeight}}\\n        @color=\\\"secondary\\\"\\n        @isFullWidth={{true}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-style-section-font-weight-input\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n  {{#if @component.options.color}}\\n    <Shared::BetaLabel\\n      @label=\\\"Text color\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <Shared::BetaInputColor\\n        @value={{one-way @component.options.color}}\\n        @onChange={{this.handleChangeColor}}\\n        @defaultValue={{@component.options.defaultColor}}\\n        @colors={{this.colors}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-style-section-color-input\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n  {{#if @component.options.style}}\\n    <Shared::BetaLabel\\n      @label=\\\"Style\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    >\\n      <Shared::Form::Tabs\\n        @selected={{one-way @component.options.style}}\\n        @items={{array\\n          (hash value=\\'solid\\' label=\\'Solid\\')\\n          (hash value=\\'dashed\\' label=\\'Dashed\\')\\n          (hash value=\\'dotted\\' label=\\'Dotted\\')\\n          (hash value=\\'double\\' label=\\'Double\\')\\n        }}\\n        @onSelect={{fn (mut @component.options.style)}}\\n        @color=\\\"secondary\\\"\\n        @isFullWidth={{true}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-style-section-style-input\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/style-section/template.hbs' });\n","import type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceTabFragment from 'client/data/models/workspace-tab';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface WorkspacePanelComponentConfigurationTabsComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Tabs>;\n  onConfirmDelete: (tab: WorkspaceTabFragment) => Promise<boolean>;\n}\n\nexport const WORKSPACE_COMPONENT_MAX_TABS = 10;\n\n@validateArguments\nexport default class WorkspaceComponentConfigurationTabsComponent extends Component<WorkspacePanelComponentConfigurationTabsComponentArgs> {\n  @service('business/workspace-manager') declare workspaceManager: WorkspaceManagerService;\n\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n    onConfirmDelete: PropTypes.func.isRequired,\n  };\n\n  get isDeleteButtonDisabled() {\n    return this.args.component.options.tabs.length <= 1;\n  }\n\n  get isAddButtonDisabled() {\n    return this.args.component.options.tabs.length >= WORKSPACE_COMPONENT_MAX_TABS;\n  }\n\n  @action\n  async handleDeleteTab(tab: WorkspaceTabFragment) {\n    const componentOptions = this.args.component.options;\n    if (componentOptions.tabs.length === 1) return;\n\n    if (tab.components.length > 0) {\n      const isConfirmed = await this.args.onConfirmDelete(tab);\n\n      if (isConfirmed) {\n        this.workspaceManager.deleteContainerWithoutSaving(tab);\n        this.handleReorderTabs(this.args.component.options.tabsSorted.toArray());\n      }\n    } else {\n      this.workspaceManager.deleteContainerWithoutSaving(tab);\n      this.handleReorderTabs(componentOptions.tabsSorted);\n    }\n  }\n\n  @action\n  handleCreateTab() {\n    const { options } = this.args.component;\n    const tabLength = options.tabs.length;\n\n    if (options.tabs.length >= WORKSPACE_COMPONENT_MAX_TABS) return;\n\n    options.tabs.createFragment({ position: tabLength });\n  }\n\n  @action\n  handleReorderTabs(tabs: WorkspaceTabFragment[]) {\n    const componentOptions = this.args.component.options;\n    componentOptions.tabs.forEach((tab) => {\n      tab.position = tabs.indexOf(tab);\n    });\n  }\n\n  @action\n  handleRenameTab(tab: WorkspaceTabFragment, newValue: string) {\n    tab.name = newValue || null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Basic details\\\">\\n  <Shared::DataDisplay::BetaList\\n    @class=\\\"c-feature-workspace-component-configuration-tabs__list\\\"\\n    @values={{@component.options.tabsSorted}}\\n    @placeholderPath=\\\"displayName\\\"\\n    @valuePath=\\\"name\\\"\\n    @onRemove={{this.handleDeleteTab}}\\n    @onReorder={{this.handleReorderTabs}}\\n    @isEditable={{true}}\\n    @readOnly={{false}}\\n    @reorderable={{true}}\\n    @onEdit={{this.handleRenameTab}}\\n    @icon=\\\"delete\\\"\\n    @isButtonDisabled={{this.isDeleteButtonDisabled}}\\n    data-test-component-configuration-tabs-beta-list\\n  />\\n  <div class=\\\"c-feature-workspace-component-configuration-tabs__add\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"link-editor\\\"\\n      @underline={{false}}\\n      @text=\\\"Add a new tab\\\"\\n      @iconName=\\\"add_circle\\\"\\n      @action={{this.handleCreateTab}}\\n      @disabled={{this.isAddButtonDisabled}}\\n      data-test-feature-workspace-component-configuration-configuration-add-tab-button\\n      ...attributes\\n    />\\n  </div>\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/tabs/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workspace-component-configuration\\\"\\n  {{did-insert this.initializeShouldDisplayTemplatingError}}\\n  {{did-update this.initializeShouldDisplayTemplatingError @component}}\\n  ...attributes\\n>\\n  {{#if @component.shouldDisplayTemplatingOrConfigurationError}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"error\\\"\\n      @canHide={{false}}\\n      @message=\\\"This component contains an error.\\\"\\n      class=\\\"c-feature-workspace-component-configuration__error-notification\\\"\\n      data-test-feature-workspace-component-configuration-configuration-error-notification\\n    />\\n  {{/if}}\\n  {{#let\\n    (component (concat \\'feature/workspace/component-configuration/\\' @component.type))\\n    as |WorkspacePanelComponentConfigurationType|\\n  }}\\n    <WorkspacePanelComponentConfigurationType\\n      @component={{@component}}\\n      @featureCallbackRoute={{@featureCallbackRoute}}\\n      @onConfirmBreakingChange={{@onConfirmBreakingChange}}\\n      @onConfirmDelete={{@onConfirmDelete}}\\n    >\\n      <:visibility-options>\\n        <Shared::BetaLabel\\n          @label=\\\"Visible\\\"\\n          @position=\\\"left\\\"\\n          class=\\\"c-feature-workspace-component-configuration__label\\\"\\n        >\\n          <Shared::BetaSelect\\n            @value={{@component.visibility.type}}\\n            @onChange={{this.handleChangeVisibility}}\\n            @options={{this.visibilityOptions}}\\n            @valuePath=\\\"value\\\"\\n            @namePath=\\\"label\\\"\\n            class=\\\"c-feature-workspace-component-configuration__input\\\"\\n          />\\n        </Shared::BetaLabel>\\n        {{#if (eq @component.visibility.type \\'whenAnotherComponentIsVisible\\')}}\\n          <Shared::BetaLabel\\n            @label=\\\"Component\\\"\\n            @position=\\\"left\\\"\\n            class=\\\"c-feature-workspace-component-configuration__label\\\"\\n          >\\n            <Shared::BetaSelect\\n              @value={{@component.visibility.componentId}}\\n              @onChange={{fn (mut @component.visibility.componentId)}}\\n              @options={{this.allComponentsVisibilityCanDependOn}}\\n              @valuePath=\\\"id\\\"\\n              @namePath=\\\"name\\\"\\n              class=\\\"c-feature-workspace-component-configuration__input\\\"\\n            />\\n          </Shared::BetaLabel>\\n        {{/if}}\\n      </:visibility-options>\\n    </WorkspacePanelComponentConfigurationType>\\n  {{/let}}\\n  <Button::BetaSaveDiscardButtons\\n    @withoutCallback={{true}}\\n    @entity={{@component}}\\n    @isDiscardVisible={{this.isDiscardVisible}}\\n    @isSaveDisabled={{this.isSaveDisabled}}\\n    @save={{this.saveWorkspaceComponent}}\\n    class=\\\"c-feature-workspace-component-configuration__save-discard\\\"\\n  />\\n</div>\\n', { moduleName: 'client/features/workspace/components/component-configuration/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Feedback::BetaInfoTooltip\\n  @tooltipSide=\\\"top\\\"\\n  class=\\\"c-feature-workspace-component-configuration-templating-info-tooltip\\\"\\n  data-test-feature-workspace-component-configuration-configuration-templating-info-tooltip\\n  ...attributes\\n>\\n  <p class=\\\"c-feature-workspace-component-configuration-templating-info-tooltip__content\\\">\\n    {{#if (has-block)}}\\n      {{yield}}\\n    {{else}}\\n      {{~\\'You can use data from other components using the following syntax:\\'~}}\\n      <strong>\\n        {{~\\'{{collection1.selectedRecord.firstName}}\\'~}}\\n      </strong>\\n      {{~\\' to display the value of the column “First name” of Collection 1.\\'~}}\\n    {{/if}}\\n  </p>\\n</Shared::Feedback::BetaInfoTooltip>\\n', { moduleName: 'client/features/workspace/components/component-configuration/templating-info-tooltip/template.hbs' });\n","import { action } from '@ember/object';\nimport { cancel, debounce } from '@ember/runloop';\nimport Component from '@glimmer/component';\n\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class WorkspacePanelComponentConfigurationTemplatingInputComponent extends Component {\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n    onChange: PropTypes.func.isRequired,\n    value: PropTypes.string,\n    placeholder: PropTypes.string,\n    resizable: PropTypes.bool,\n    isTextarea: PropTypes.bool,\n  };\n\n  debounce = null;\n\n  @action\n  handleFocus() {\n    if (this.debounce !== null) {\n      cancel(this.debounce);\n      this.debounce = null;\n    }\n  }\n\n  @action\n  handleBlur() {\n    if (this.isDestroying || this.isDestroyed) return;\n    this.debounce = debounce(this, this._setHasTemplatingError, 150);\n  }\n\n  _setHasTemplatingError() {\n    this.args.component.shouldDisplayTemplatingError = this.args.component.hasTemplatingError;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Form::AutocompleteInput\\n  @value={{@value}}\\n  @placeholder={{@placeholder}}\\n  @onChange={{@onChange}}\\n  @templatingHelper={{@component.templatingHelper}}\\n  @resizable={{@resizable}}\\n  @isTextarea={{@isTextarea}}\\n  @onFocus={{this.handleFocus}}\\n  @onBlur={{this.handleBlur}}\\n  @expectedType=\\\"String\\\"\\n  data-test-feature-workspace-component-configuration-configuration-templating-input\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workspace/components/component-configuration/templating-input/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Basic Details\\\">\\n  <Shared::BetaLabel @label=\\\"Value\\\">\\n    <:after-label>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n    </:after-label>\\n    <:default>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInput\\n        @component={{@component}}\\n        @value={{@component.options.displayedText}}\\n        @placeholder=\\\"Input text value\\\"\\n        @onChange={{fn (mut @component.options.displayedText)}}\\n        @resizable={{true}}\\n        @isTextarea={{true}}\\n        data-test-feature-workspace-component-configuration-text-value-textarea\\n        {{autofocus}}\\n      />\\n    </:default>\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel @label=\\\"Tooltip\\\">\\n    <:after-label>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n    </:after-label>\\n    <:default>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInput\\n        @component={{@component}}\\n        @value={{@component.options.tooltip}}\\n        @placeholder=\\\"Input tooltip value\\\"\\n        @onChange={{fn (mut @component.options.tooltip)}}\\n        @templatingHelper={{@component.templatingHelper}}\\n        data-test-feature-workspace-component-configuration-text-tooltip-input\\n      />\\n    </:default>\\n  </Shared::BetaLabel>\\n</Shared::BetaRightPanel::Section>\\n<Feature::Workspace::ComponentConfiguration::StyleSection @component={{@component}} />\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/text/template.hbs' });\n","import type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type { WorkspaceToggleValueType } from 'client/data/models/workspace-component-options-toggle';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { WORKSPACE_TOGGLE_VALUE_TYPES } from 'client/data/models/workspace-component-options-toggle';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\ninterface WorkspacePanelComponentConfigurationToggleComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Toggle>;\n}\n\nexport default class WorkspaceComponentConfigurationToggleComponent extends Component<WorkspacePanelComponentConfigurationToggleComponentArgs> {\n  public readonly toggleValueTypes = WORKSPACE_TOGGLE_VALUE_TYPES;\n\n  @tracked public isDisplayingTemplating: boolean;\n\n  constructor(owner: unknown, args: WorkspacePanelComponentConfigurationToggleComponentArgs) {\n    super(owner, args);\n\n    this.isDisplayingTemplating =\n      AbstractTemplatingHelper.getTemplatingKeys(this.args.component.options.enabledValue).length\n        > 0 || this.args.component.options.valueType === 'String';\n  }\n\n  get isExpectingSingleVariable() {\n    return this.args.component.options.valueType !== 'String';\n  }\n\n  @action\n  handleValueTypeChange(valueType: WorkspaceToggleValueType) {\n    this.args.component.options.valueType = valueType;\n    this.args.component.options.enabledValue = null;\n    this.isDisplayingTemplating = false;\n\n    if (valueType === 'String') {\n      this.isDisplayingTemplating = true;\n    }\n  }\n\n  @action\n  handleClickTemplate() {\n    this.isDisplayingTemplating = !this.isDisplayingTemplating;\n    this.args.component.options.enabledValue = null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Basic details\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Value type\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    data-test-feature-workspace-component-configuration-configuration-toggle-label-value-type\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.toggleValueTypes}}\\n      @value={{one-way @component.options.valueType}}\\n      @onChange={{this.handleValueTypeChange}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-toggle-value-type\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Enabled state value\\\"\\n    @position=\\\"left\\\"\\n    @textContainerClass=\\\"c-feature-workspace-component-configuration__label-container\\\"\\n    @textClass=\\\"c-feature-workspace-component-configuration__label-text\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    data-test-feature-workspace-component-configuration-configuration-toggle-label-enabled-value\\n  >\\n    <:after-label>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n    </:after-label>\\n    <:default>\\n      <div\\n        class=\\\"l-feature-workspace-component-configuration c-feature-workspace-component-configuration__input\\\"\\n      >\\n        {{#if this.isDisplayingTemplating}}\\n          <Form::AutocompleteInput\\n            @value={{@component.options.enabledValue}}\\n            @onChange={{fn (mut @component.options.enabledValue)}}\\n            @templatingHelper={{@component.templatingHelper}}\\n            @isExpectingSingleVariable={{this.isExpectingSingleVariable}}\\n            @expectedType={{@component.options.valueType}}\\n            class=\\\"c-feature-workspace-component-configuration__input-with-toggle\\\"\\n            data-test-feature-workspace-component-configuration-configuration-toggle-enabled-value-autocomplete\\n          />\\n        {{else}}\\n          <Form::FormBase\\n            @value={{one-way @component.options.enabledValue}}\\n            @type={{@component.options.valueType}}\\n            @onChange={{fn (mut @component.options.enabledValue)}}\\n            class=\\\"c-feature-workspace-component-configuration__input-with-toggle\\\"\\n            data-test-feature-workspace-component-configuration-configuration-toggle-enabled-value\\n          />\\n        {{/if}}\\n\\n        {{#unless (eq @component.options.valueType \\'String\\')}}\\n          {{#let (generate-guid) as |switchButtonId|}}\\n            <Shared::Button::BetaButton\\n              @iconName=\\\"data_object\\\"\\n              @size=\\\"normal\\\"\\n              @type={{if this.isDisplayingTemplating \\'primary\\' \\'secondary\\'}}\\n              @disabled={{not @component.options.valueType}}\\n              id={{switchButtonId}}\\n              data-test-feature-workspace-component-configuration-configuration-field-switch-to-variable\\n              data-test-feature-workspace-component-configuration-configuration-field-switch-to-variable-toggled={{this.isDisplayingTemplating}}\\n              {{on \\'click\\' (prevent-default (stop-propagation this.handleClickTemplate))}}\\n            />\\n            <Shared::Feedback::BetaTooltip @targetId={{switchButtonId}} @side=\\\"bottom-end\\\">\\n              Toggle to input code\\n            </Shared::Feedback::BetaTooltip>\\n          {{/let}}\\n        {{/unless}}\\n      </div>\\n    </:default>\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Default state\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    data-test-feature-workspace-component-configuration-configuration-toggle-label-default-state\\n  >\\n    <Shared::BetaRadioButton\\n      @value={{one-way @component.options.isEnabledByDefault}}\\n      @options={{array (hash name=\\'Enabled\\' value=true) (hash name=\\'Disabled\\' value=false)}}\\n      @namePath=\\\"name\\\"\\n      @valuePath=\\\"value\\\"\\n      @onChange={{fn (mut @component.options.isEnabledByDefault)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-toggle-default-state\\n    />\\n  </Shared::BetaLabel>\\n</Shared::BetaRightPanel::Section>\\n\\n<Shared::BetaRightPanel::Section @title=\\\"Label\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Show label\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n    data-test-feature-workspace-component-configuration-configuration-toggle-label-should-display-label\\n  >\\n    <Shared::Form::Toggle\\n      @value={{one-way @component.options.shouldDisplayLabel}}\\n      @onChange={{fn (mut @component.options.shouldDisplayLabel)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-configuration-toggle-should-display-label\\n    />\\n  </Shared::BetaLabel>\\n  {{#if @component.options.shouldDisplayLabel}}\\n    <Shared::BetaLabel\\n      @label=\\\"Text\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-feature-workspace-component-configuration__label\\\"\\n      data-test-feature-workspace-component-configuration-configuration-toggle-label-displayed-label\\n    >\\n      <:after-label>\\n        <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n      </:after-label>\\n      <:default>\\n        <Feature::Workspace::ComponentConfiguration::TemplatingInput\\n          @component={{@component}}\\n          @value={{one-way @component.options.displayedLabel}}\\n          @placeholder={{or @component.options.field.displayName \\'Label\\'}}\\n          @onChange={{fn (mut @component.options.displayedLabel)}}\\n          class=\\\"c-feature-workspace-component-configuration__input\\\"\\n          data-test-feature-workspace-component-configuration-configuration-toggle-displayed-label\\n        />\\n      </:default>\\n    </Shared::BetaLabel>\\n  {{/if}}\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/toggle/template.hbs' });\n","import type CollectionModel from 'client/data/models/collection';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type { ColorOption } from 'client/shared/components/beta-select-color/component';\nimport type LayoutState from 'client/shared/states/layout';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport validateArguments from 'client/decorators/validate';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface WorkspacePanelComponentConfigurationWorkflowArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Workflow>;\n}\n\n@validateArguments\nexport default class WorkspaceComponentConfigurationWorkflowComponent extends Component<WorkspacePanelComponentConfigurationWorkflowArgs> {\n  @service('feature/workspace') private readonly workspaceService: WorkspaceFeatureService;\n  @service('shared/state/layout') private readonly layoutState: LayoutState;\n\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n  };\n\n  constructor(owner: unknown, args: WorkspacePanelComponentConfigurationWorkflowArgs) {\n    super(owner, args);\n\n    void this.initializeComponentOptions();\n  }\n\n  get colors(): ColorOption[] {\n    return this.workspaceService.colorOptions;\n  }\n\n  get collections() {\n    return this.layoutState.collections.sortBy('singularizedDisplayName');\n  }\n\n  get workflowsToDisplay() {\n    return this.args.component.options.sourceCollection?.workflows || [];\n  }\n\n  get sortedWorkflows() {\n    return this.workflowsToDisplay.sortBy('name');\n  }\n\n  get availableComponentsToSelectRecordFrom() {\n    return this.workspaceService.getAvailableComponentsToSelectRecordFrom(\n      this.args.component,\n      this.args.component.options.sourceCollection,\n    );\n  }\n\n  async initializeComponentOptions() {\n    if (!this.args.component.options.componentToSelectRecordFromId) {\n      await waitForNextRunLoop();\n      this.args.component.options.sourceCollectionId =\n        this.args.component.workspace.currentRecordSource?.options.filteredCollection?.id;\n      this.args.component.options.componentToSelectRecordFromId =\n        this.args.component.workspace.currentRecordSource?.id;\n    }\n  }\n\n  @action\n  onWorkflowChange(workflowId: string) {\n    const workspaceWorkflow = this.workflowsToDisplay.findBy('id', workflowId);\n    this.args.component.options.workflow = workspaceWorkflow;\n  }\n\n  @action\n  onCollectionChange(collection: CollectionModel) {\n    this.args.component.options.sourceCollectionId = collection.id;\n    this.args.component.options.workflowId = null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Basic details\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Collection\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @value={{one-way @component.options.sourceCollection}}\\n      @onChange={{this.onCollectionChange}}\\n      @defaultValue={{null}}\\n      @options={{this.collections}}\\n      @namePath=\\\"singularizedDisplayName\\\"\\n      @iconPath=\\\"iconOrDefault\\\"\\n      @withSearchInput={{true}}\\n      @placeholder=\\\"Select a collection\\\"\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-workflow-collection-select\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Workflow\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @value={{one-way @component.options.workflow.id}}\\n      @onChange={{this.onWorkflowChange}}\\n      @defaultValue={{null}}\\n      @options={{this.sortedWorkflows}}\\n      @valuePath=\\\"id\\\"\\n      @namePath=\\\"name\\\"\\n      @withSearchInput={{true}}\\n      @placeholder=\\\"Select a workflow\\\"\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-workflow-select\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"On record from\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.availableComponentsToSelectRecordFrom}}\\n      @defaultValue={{null}}\\n      @namePath=\\\"displayName\\\"\\n      @placeholder=\\\"Select a component\\\"\\n      @value={{one-way @component.options.componentToSelectRecordFrom}}\\n      @onChange={{fn (mut @component.options.componentToSelectRecordFrom)}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-workflow-record-from-select\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Text\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <:after-label>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n    </:after-label>\\n    <:default>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInput\\n        @component={{@component}}\\n        @value={{one-way @component.options.displayedText}}\\n        @placeholder={{or @component.options.workflow.name \\'Input text value\\'}}\\n        @onChange={{fn (mut @component.options.displayedText)}}\\n        @templatingHelper={{@component.templatingHelper}}\\n        class=\\\"c-feature-workspace-component-configuration__input\\\"\\n        data-test-feature-workspace-component-configuration-workflow-displayed-text-input\\n      />\\n    </:default>\\n  </Shared::BetaLabel>\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Display\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Colors\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-feature-workspace-component-configuration__label\\\"\\n  >\\n    <Shared::BetaSelectColor\\n      @value={{one-way @component.options.buttonType}}\\n      @defaultOption=\\\"Primary\\\"\\n      @defaultOptionColor=\\\"primary\\\"\\n      @options={{this.colors}}\\n      @onSelectValue={{fn (mut @component.options.buttonType)}}\\n      @disabled={{not @component.options.isConfigured}}\\n      class=\\\"c-feature-workspace-component-configuration__input\\\"\\n      data-test-feature-workspace-component-configuration-workflow-color-select\\n    />\\n  </Shared::BetaLabel>\\n</Shared::BetaRightPanel::Section>\\n<Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n  {{yield to=\\'visibility-options\\'}}\\n</Shared::BetaRightPanel::Section>\\n', { moduleName: 'client/features/workspace/components/component-configuration/workflow/template.hbs' });\n","import type CustomActionModel from 'client/data/models/custom-action';\nimport type ProjectModel from 'client/data/models/project';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type { WorkspaceRecordEditMode } from 'client/data/models/workspace-component-options-action';\n// FIXME\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type ActionCustomActionInternalBusinessService from 'client/features/action/services/internal-business/custom-action';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\nimport type CollectionFeatureService from 'client/features/collection/services/feature';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type BetaCollectionListCommunicator from 'client/legacy/services/beta-collection-list-communicator';\nimport type CollectionBusinessService from 'client/legacy/services/business/collection';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\nimport type CsvExporter from 'client/legacy/services/csv-exporter';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type RecordsManagerService from 'client/legacy/services/records-manager';\nimport type SegmentService from 'ember-cli-segment/services/segment';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { identity, pickBy } from 'lodash';\nimport { Promise } from 'rsvp';\n\nimport CollectionModel from 'client/data/models/collection';\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport { WorkspaceActionTypeEnum } from 'client/data/models/workspace-component-options-action';\nimport validateArguments from 'client/decorators/validate';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport RecordsContext from 'client/utils/liana-records/records-context';\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FeatureWorkspaceComponentRendererActionComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Action>;\n  isBuilder: boolean;\n}\n\n@validateArguments\nexport default class FeatureWorkspaceComponentRendererActionComponent extends Component<FeatureWorkspaceComponentRendererActionComponentArgs> {\n  @service('feature/action/internal-business/custom-action')\n  private customActionService: ActionCustomActionInternalBusinessService;\n\n  @service private csvExporter: CsvExporter;\n  @service private eventBus: EventBusService;\n  @service private currentUser: CurrentUserService;\n  @service private lianaSession: LianaSession;\n  @service private segment: SegmentService;\n  @service private betaCollectionListCommunicator: BetaCollectionListCommunicator;\n  @service('business/workspace-manager') private workspaceManager: WorkspaceManagerService;\n  @service('business/collection') private collectionBusiness: CollectionBusinessService;\n  @service('feature/client-record') private clientRecordFeature: ClientRecordFeatureService;\n  @service('feature/collection') private collectionFeatureService: CollectionFeatureService;\n  @service private recordsManager: RecordsManagerService;\n  @service('feature/workspace') private workspaceFeatureService: WorkspaceFeatureService;\n\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n    isBuilder: PropTypes.bool.isRequired,\n  };\n\n  @tracked isDisabled = true;\n  @tracked isDisplayingRecordEditionOrCreationModal = false;\n\n  private buildRecordsContextForGlobalAction(collection: CollectionModel, project: ProjectModel) {\n    return new RecordsContext({\n      project,\n      collection,\n      segment: null,\n      relationshipParameters: {},\n      shouldApplyScopes: true,\n    });\n  }\n\n  private async triggerExport(recordsContext: RecordsContext) {\n    const { sourceCollection } = this.args.component.options;\n    const path = `/forest/${sourceCollection.name}.csv`;\n    const params = pickBy(\n      {\n        ...recordsContext.getQuery(),\n        filename: sourceCollection.displayNamePluralLowerCase,\n        header: recordsContext.columns.map((column) => column?.field?.displayName).join(','),\n      },\n      identity,\n    );\n\n    await this.csvExporter.exportData(sourceCollection, path, params, null);\n  }\n\n  get buttonType() {\n    return this.args.component.options.buttonType\n      ? this.args.component.options.buttonTypeOrDefault\n      : this.args.component.options.inheritedButtonType;\n  }\n\n  get isFieldsEditMode() {\n    return this.args.component.options.editMode === 'fields';\n  }\n\n  get allBasicActions() {\n    const { sourceCollection, editMode } = this.args.component.options;\n    return this.buildBasicActions(sourceCollection, editMode);\n  }\n\n  get fieldComponentsWithSameSource() {\n    const { component } = this.args;\n    return this.workspaceManager.getFieldComponentsWithSameSource(\n      component.workspace,\n      component.options.componentToSelectRecordFromId,\n    );\n  }\n\n  get isDisabledDueToNoRelatedFields() {\n    const {\n      component: { options },\n      isBuilder,\n    } = this.args;\n\n    if (isBuilder) {\n      return false;\n    }\n\n    return (\n      options.type === WorkspaceActionTypeEnum.Edit\n      && this.isFieldsEditMode\n      && this.fieldComponentsWithSameSource.length === 0\n    );\n  }\n\n  get recordsContext() {\n    const { component } = this.args;\n    if (!component.options.action) {\n      return null;\n    }\n    const templatedCollection = component.options.templatedBelongsToCollection;\n    if (templatedCollection) {\n      return this.workspaceFeatureService.buildRecordsContextForTemplatedAction(component);\n    }\n\n    return component.options.action.isGlobal\n      ? this.buildRecordsContextForGlobalAction(\n          component.options.sourceCollection,\n          this.lianaSession.currentProject,\n        )\n      : component.options.componentToSelectRecordFrom?.options.recordsContext;\n  }\n\n  @action\n  async triggerAction() {\n    if (this.args.isBuilder || !this.args.component.options.action) {\n      return;\n    }\n    const { component } = this.args;\n    const { recordsContext } = this;\n    this.segment.trackEvent('Workspace Button Clicked', {\n      projectId: this.lianaSession.currentProject.id,\n      workspaceId: component.workspace.id,\n      actionId: component.options.actionId,\n    });\n\n    if (!recordsContext) {\n      return;\n    }\n\n    if (component.options.isBasicAction) {\n      await this.allBasicActions[component.options.type].perform(recordsContext);\n    } else {\n      const selectedRecords =\n        component.options.componentToSelectRecordFrom?.selectedRecords\n        || this.recordsContext?.selectedRecords\n        || [];\n      const { success, isApproval } = await this.customActionService.triggerCustomAction(\n        component.options.action as CustomActionModel,\n        selectedRecords,\n        null,\n        true,\n        recordsContext.getSelectedQuery(),\n      );\n      if (success && !isApproval) {\n        this.betaCollectionListCommunicator.refreshAll(component.options.sourceCollection);\n        // From here we want to select the source component\n        // which can be a different collection than the action if the templated belongsTo path is set\n        const componentToSelectRecordFrom =\n          component.options.templatedBelongsToComponent\n          || component.options.componentToSelectRecordFrom;\n        const hadRecordsOutOfSegment =\n          await this.workspaceManager.verifySelectedRecordsAreInRecordsContext(\n            componentToSelectRecordFrom?.options.recordsContext || this.recordsContext,\n            componentToSelectRecordFrom,\n          );\n\n        if (hadRecordsOutOfSegment) {\n          this.eventBus.trigger(\n            EventBusEventsEnum.WorkspaceRecordsOutOfCollectionOrSegment,\n            componentToSelectRecordFrom,\n          );\n        }\n        if (componentToSelectRecordFrom?.selectedRecord) {\n          await this.clientRecordFeature.fetchRecordAndRequiredBelongsTo(\n            componentToSelectRecordFrom.belongsToFieldsTreeToFetch,\n            component.options.templatedBelongsToComponent?.options.filteredCollection\n              || component.options.sourceCollection,\n            componentToSelectRecordFrom.selectedRecord,\n          );\n        }\n      }\n    }\n  }\n\n  get selectedRecord() {\n    return (\n      this.args.component.options.componentToSelectRecordFrom?.selectedRecord\n      || (this.recordsContext?.selectedRecords?.length === 1\n        ? this.recordsContext.selectedRecords.firstObject\n        : null)\n    );\n  }\n\n  @action\n  async computeIsDisabled() {\n    const { options } = this.args.component;\n    if (!options.action) {\n      this.isDisabled = true;\n      return;\n    }\n    if (this.args.isBuilder) {\n      this.isDisabled = false;\n      return;\n    }\n\n    if (options.isBasicAction) {\n      this.isDisabled =\n        !this.args.component.options.sourceCollection\n        || !this.recordsContext\n        || !this.allBasicActions[options.type]?.checkRightsToTrigger()\n        || (!!options.action.isSingle && this.recordsContext?.selectedRecords?.length !== 1)\n        || (!!options.action.isBulk && this.recordsContext?.selectedRecords?.length === 0);\n    } else if (options?.action?.isSingle || options?.action?.isBulk) {\n      this.isDisabled = true;\n      const selectedRecords = this.recordsContext?.selectedRecords || [];\n      const allowedActionsForUser = options.sourceCollection.customActionsOrderedForUser;\n      const allowedActionsForUserAndRecord =\n        (selectedRecords?.length > 0\n          && (await this.customActionService.getEnabledCustomActions(\n            allowedActionsForUser,\n            selectedRecords,\n          )))\n        || [];\n      const actionId = options.action.id;\n      this.isDisabled = !allowedActionsForUserAndRecord.some(({ id }) => id === actionId);\n    } else {\n      this.isDisabled = !(options.action as CustomActionModel).isUserAllowed;\n    }\n  }\n\n  @action\n  handleCloseCreateEditModal() {\n    this.isDisplayingRecordEditionOrCreationModal = false;\n  }\n\n  @action\n  async handleRecordSaved() {\n    this.handleCloseCreateEditModal();\n    if (this.args.component.options.isRecordEdition) {\n      this.eventBus.trigger('chart.refresh');\n      const hadRecordsOutOfSegment =\n        await this.workspaceManager.verifySelectedRecordsAreInRecordsContext(\n          this.recordsContext,\n          this.args.component.options.componentToSelectRecordFrom,\n          false,\n        );\n\n      if (hadRecordsOutOfSegment) {\n        this.eventBus.trigger(\n          EventBusEventsEnum.WorkspaceRecordsOutOfCollectionOrSegment,\n          this.args.component.options.componentToSelectRecordFrom,\n        );\n      }\n\n      this.args.component.options.isRecordEdition = false;\n    } else {\n      this.betaCollectionListCommunicator.refreshAll(this.args.component.options.sourceCollection);\n    }\n  }\n\n  @action\n  async handleEditSave() {\n    const { options, workspace } = this.args.component;\n\n    const dirtyRecords = this.workspaceManager.getDirtyRecordsWithSameSource(\n      workspace,\n      options.componentToSelectRecordFromId,\n    );\n\n    const promises = dirtyRecords.map((record) => {\n      return this.clientRecordFeature.upsertRecord(record);\n    });\n    const promiseResults = await Promise.all(promises);\n    const refreshedCollections = [];\n    dirtyRecords.forEach((record) => {\n      const recordCollection = getCollectionFromRecord(record);\n      if (recordCollection && !refreshedCollections.includes(recordCollection)) {\n        refreshedCollections.push(recordCollection);\n        this.betaCollectionListCommunicator.refreshAll(recordCollection);\n      }\n    });\n    // We stay in edit mode if one save has failed\n    if (promiseResults.every((result) => result !== null)) {\n      const hadRecordsOutOfSegment =\n        await this.workspaceManager.verifySelectedRecordsAreInRecordsContext(\n          this.recordsContext,\n          this.args.component.options.componentToSelectRecordFrom,\n        );\n\n      if (hadRecordsOutOfSegment) {\n        this.eventBus.trigger(\n          EventBusEventsEnum.WorkspaceRecordsOutOfCollectionOrSegment,\n          this.args.component.options.componentToSelectRecordFrom,\n        );\n      }\n      this.leaveRecordEdition();\n    }\n    return null;\n  }\n\n  @action\n  handleEditDiscard() {\n    this.fieldComponentsWithSameSource.forEach((fieldComponent) => {\n      const { recordToDisplay } = fieldComponent.options;\n\n      if (recordToDisplay) {\n        recordToDisplay.rollbackAttributes();\n        recordToDisplay.rollbackRelationships();\n      }\n    });\n\n    this.leaveRecordEdition();\n  }\n\n  private leaveRecordEdition() {\n    this.args.component.options.resetReadMode();\n    this.toggleRelatedFieldsEditMode(false);\n  }\n\n  private toggleRelatedFieldsEditMode(isRecordEdition: boolean) {\n    this.workspaceManager.toggleRelatedFieldsEditMode(\n      this.args.component.workspace,\n      this.args.component.options.componentToSelectRecordFromId,\n      isRecordEdition,\n    );\n  }\n\n  private buildBasicActions(sourceCollection: CollectionModel, editMode: WorkspaceRecordEditMode) {\n    return {\n      [WorkspaceActionTypeEnum.Export]: {\n        checkRightsToTrigger: () => this.currentUser.canExportCollection(sourceCollection),\n        perform: async (recordsContext: RecordsContext) => {\n          await this.triggerExport(recordsContext);\n        },\n      },\n      [WorkspaceActionTypeEnum.Create]: {\n        checkRightsToTrigger: () => this.currentUser.canAddCollection(sourceCollection),\n        perform: () => {\n          this.isDisplayingRecordEditionOrCreationModal = true;\n        },\n      },\n      [WorkspaceActionTypeEnum.Edit]: {\n        checkRightsToTrigger: () => this.currentUser.canEditCollection(sourceCollection),\n        perform: () => {\n          this.args.component.options.isRecordEdition = true;\n          if (editMode === 'modal') {\n            this.isDisplayingRecordEditionOrCreationModal = true;\n          } else if (this.isFieldsEditMode) {\n            this.toggleRelatedFieldsEditMode(true);\n          }\n        },\n      },\n      [WorkspaceActionTypeEnum.Delete]: {\n        checkRightsToTrigger: () => this.currentUser.canDeleteCollection(sourceCollection),\n        perform: async (recordsContext: RecordsContext) => {\n          const { selectedRecords, collection } = recordsContext;\n          let isSuccess = false;\n          if (collection instanceof CollectionModel) {\n            isSuccess = await this.collectionBusiness.deleteRecords(\n              recordsContext,\n              selectedRecords,\n              true,\n              false,\n            );\n          } else {\n            console.error('Deleting records from an embedded collection is not supported yet.');\n          }\n\n          if (isSuccess) {\n            this.args.component.options.componentToSelectRecordFrom.selectedRecords = [];\n            recordsContext.resetSelectedRecords();\n            this.eventBus.trigger(EventBusEventsEnum.RefreshWorkspaceQueryParameters);\n          }\n        },\n      },\n      [WorkspaceActionTypeEnum.Duplicate]: {\n        checkRightsToTrigger: () => this.currentUser.canAddCollection(sourceCollection),\n        perform: () => {\n          this.isDisplayingRecordEditionOrCreationModal = true;\n        },\n      },\n      // this one is useless but is required by typescript\n      [WorkspaceActionTypeEnum.Smart]: {\n        checkRightsToTrigger: () => false,\n        perform: () => {},\n      },\n    };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let (generate-guid) as |buttonId|}}\\n  {{#if (and @component.options.isRecordEdition this.isFieldsEditMode)}}\\n    <Button::BetaSaveDiscardButtons\\n      @entity={{this.selectedRecord}}\\n      @save={{this.handleEditSave}}\\n      @discard={{this.handleEditDiscard}}\\n      @isDiscardVisible={{true}}\\n      @fullWidth={{true}}\\n      @fullHeight={{true}}\\n      @shouldButtonsGrow={{true}}\\n      @hasOnlyIcons={{lt @component.displaySettings.width 7}}\\n      @size={{if (lt @component.displaySettings.width 5) \\'tiny\\'}}\\n      @withoutCallback={{true}}\\n      @async={{true}}\\n      data-test-workspace-component-action-save-discard-button\\n    />\\n  {{else}}\\n    <div\\n      id={{buttonId}}\\n      class=\\\"l-feature-workspace-component-renderer-action__button-container\\\"\\n      data-test-workspace-component-action-button-parent-div\\n    >\\n      <Shared::Button\\n        @type={{this.buttonType}}\\n        class=\\\"l-feature-workspace-component-renderer-action__button\\\"\\n        @onClick={{this.triggerAction}}\\n        @ellipseText={{true}}\\n        @text={{or\\n          (and\\n            @component.options.action\\n            @component.options.displayedText\\n            (templating-injector\\n              @component.options.displayedText templatingHelper=@component.templatingHelper\\n            )\\n          )\\n          @component.options.action.displayName\\n          \\'<not configured>\\'\\n        }}\\n        disabled={{or this.isDisabled this.isDisabledDueToNoRelatedFields}}\\n        data-test-workspace-component-action\\n        {{did-insert this.computeIsDisabled}}\\n        {{did-update\\n          this.computeIsDisabled\\n          @isBuilder\\n          @component.options\\n          @component.options.action\\n          this.selectedRecord\\n        }}\\n      />\\n    </div>\\n  {{/if}}\\n  {{#if (and this.isDisabledDueToNoRelatedFields (not this.isDisabled))}}\\n    <Shared::Feedback::BetaTooltip\\n      @tooltipSide=\\\"top\\\"\\n      @targetId={{buttonId}}\\n      data-test-workspace-component-action-edit-feedback-tooltip\\n    >\\n      <p>No fields to edit</p>\\n    </Shared::Feedback::BetaTooltip>\\n  {{/if}}\\n{{/let}}\\n{{#if this.isDisplayingRecordEditionOrCreationModal}}\\n  <DataDisplay::Record::CreateEditModal\\n    @onCloseModal={{this.handleCloseCreateEditModal}}\\n    @isRecordEdition={{@component.options.isRecordEdition}}\\n    @collection={{@component.options.sourceCollection}}\\n    @onRecordSaved={{this.handleRecordSaved}}\\n    @record={{this.selectedRecord}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/features/workspace/components/component-renderer/action/template.hbs' });\n","import type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport validateArguments from 'client/decorators/validate';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\nexport const ContextTypeEnum = {\n  RECORDS_REQUIRED: 'RECORDS_REQUIRED',\n  TIME_RANGE_REQUIRED: 'TIME_RANGE_REQUIRED',\n};\n\ninterface FeatureWorkspaceComponentRendererChartComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Chart>;\n}\n@validateArguments\nexport default class FeatureWorkspaceComponentRendererChartComponent extends Component<FeatureWorkspaceComponentRendererChartComponentArgs> {\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n  };\n\n  @service private eventBus: EventBusService;\n\n  constructor(owner: unknown, args: FeatureWorkspaceComponentRendererChartComponentArgs) {\n    super(owner, args);\n\n    this.eventBus.on(EventBusEventsEnum.WorkspaceRefresh, this.handleWorkspaceRefresh);\n    this.eventBus.on(\n      EventBusEventsEnum.WorkspaceContextChanged,\n      this.handleWorkspaceContextChanged,\n    );\n  }\n\n  willDestroy() {\n    super.willDestroy();\n\n    this.eventBus.off(EventBusEventsEnum.WorkspaceRefresh, this.handleWorkspaceRefresh);\n    this.eventBus.off(\n      EventBusEventsEnum.WorkspaceContextChanged,\n      this.handleWorkspaceContextChanged,\n    );\n  }\n\n  @action\n  async handleWorkspaceRefresh() {\n    this.eventBus.trigger('chart.refresh', this.args.component.options);\n  }\n\n  @action\n  async handleWorkspaceContextChanged(workspaceComponentOptions) {\n    if (\n      this.args.component.options === workspaceComponentOptions\n      && this.args.component.shouldDisplay\n      && [\n        ...AbstractTemplatingHelper.getTemplatingKeys(this.args.component.options.timeRange || ''),\n        ...AbstractTemplatingHelper.getTemplatingKeys(this.args.component.options.query || ''),\n        ...(this.args.component.options.filter?.templatingKeys || []),\n      ].length > 0\n    ) {\n      // the function `unsetContextType` is called at the same time and it must finish to recompute\n      // before triggering the eventBus.\n      await waitForNextRunLoop();\n      this.eventBus.trigger('chart.refresh', this.args.component.options);\n    }\n  }\n\n  get unsetContextType() {\n    const { templatingHelper, timeRange, query, filter } = this.args.component.options;\n\n    if (\n      !templatingHelper.isContextSet(filter?.templatingKeys || [])\n      || !templatingHelper.isContextSet(query || '')\n    ) {\n      return ContextTypeEnum.RECORDS_REQUIRED;\n    }\n    if (!templatingHelper.isContextSet(timeRange || '')) {\n      return ContextTypeEnum.TIME_RANGE_REQUIRED;\n    }\n    return null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Chart::ChartRender\\n  @chart={{@component.options}}\\n  @isInWorkspace={{true}}\\n  @templatingHelper={{@component.templatingHelper}}\\n  @unsetContextType={{this.unsetContextType}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workspace/components/component-renderer/chart/template.hbs' });\n","import type CollectionModel from 'client/data/models/collection';\nimport type SegmentModel from 'client/data/models/segment';\nimport type ViewListModel from 'client/data/models/view-list';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\nimport type BetaCollectionListCommunicatorService from 'client/legacy/services/beta-collection-list-communicator';\nimport type CollectionBusinessService from 'client/legacy/services/business/collection';\nimport type WorkspaceManagerBusinessService from 'client/legacy/services/business/workspace-manager';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type RecordsContext from 'client/utils/liana-records/records-context';\nimport type {\n  RecordsContextError,\n  RecordsStateColumn,\n} from 'client/utils/liana-records/records-context';\nimport type RelatedRecordsContext from 'client/utils/liana-records/related-records-context';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { restartableTask } from 'ember-concurrency';\n\nimport { ERROR_ACCESS_COLLECTION_FORBIDDEN } from 'client/config/errors';\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport validateArguments from 'client/decorators/validate';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FeatureWorkspaceComponentRendererCollectionComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Collection>;\n}\n\n@validateArguments\nexport default class FeatureWorkspaceComponentRendererCollectionComponent extends Component<FeatureWorkspaceComponentRendererCollectionComponentArgs> {\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n  };\n\n  @service private betaCollectionListCommunicator: BetaCollectionListCommunicatorService;\n  @service private currentUser: CurrentUserService;\n\n  @service private eventBus: EventBusService;\n  @service('business/workspace-manager')\n  private workspaceManagerBusinessService: WorkspaceManagerBusinessService;\n\n  @service('business/collection') private collectionBusinessService: CollectionBusinessService;\n  @service('feature/client-record') private clientRecordFeature: ClientRecordFeatureService;\n\n  @tracked public isDisplayingRecordCreation = false;\n  @tracked public recordToDuplicate: ClientRecordModel;\n  @tracked private segment: SegmentModel;\n\n  constructor(owner: unknown, args: FeatureWorkspaceComponentRendererCollectionComponentArgs) {\n    super(owner, args);\n\n    this.eventBus.on('workspace.context.changed', this.handleWorkspaceContextChanged);\n    this.segment =\n      this.args.component.options.recordsContext?.segment\n      && this.args.component.options.recordsContext?.segment !== this.args.component.options.segment\n        ? this.args.component.options.recordsContext?.segment\n        : undefined;\n\n    if (this.args.component.options.recordsContext?.collection) {\n      this.betaCollectionListCommunicator.addListenerOnSmartActionTriggered(\n        this.args.component.options.recordsContext?.collection as CollectionModel,\n        this.handleSmartActionTriggered,\n      );\n    }\n    void this.setupRecordsContext(false);\n  }\n\n  willDestroy() {\n    super.willDestroy();\n\n    this.eventBus.off('workspace.context.changed', this.handleWorkspaceContextChanged);\n    if (this.args.component.options.recordsContext?.collection) {\n      this.betaCollectionListCommunicator.removeListenerOnSmartActionTriggered(\n        this.args.component.options.recordsContext.collection,\n        this.handleSmartActionTriggered,\n      );\n    }\n  }\n\n  // this.segment is undefined when the user hasn't used the segment selector\n  //              is null when the user selected All on the segment selector\n  //              is a Segment when the user selected a segment on the segment selector\n  // we need to check this.segment.collection === this.args.component.options.collection\n  // because this.args.component.options.collection could be changed via the options panel\n  // letting us with an out of sync this.segment from the previous collection\n  get modelToFetch() {\n    return (\n      this.args.component.options.relatedDataField\n      || (this.segment === null && this.args.component.options.collection)\n      || (this.segment?.collection === this.args.component.options.collection && this.segment)\n      || this.args.component.options.segment\n      || this.args.component.options.collection\n    );\n  }\n\n  get error() {\n    const isCollectionAccessForbidden = !this.currentUser.canBrowseCollection(\n      this.args.component.options.filteredCollection,\n    );\n\n    if (isCollectionAccessForbidden) {\n      return { type: ERROR_ACCESS_COLLECTION_FORBIDDEN };\n    }\n    return null;\n  }\n\n  get canCreate() {\n    return this.currentUser.canAddCollection(this.args.component.options.filteredCollection);\n  }\n\n  @action\n  openDuplicateRecord(recordToDuplicate: ClientRecordModel) {\n    this.recordToDuplicate = recordToDuplicate;\n    this.isDisplayingRecordCreation = true;\n  }\n\n  @action\n  closeCreateEditModal() {\n    this.isDisplayingRecordCreation = false;\n    this.recordToDuplicate = null;\n  }\n\n  @action\n  onRecordCreated() {\n    this.recordToDuplicate = null;\n    this.isDisplayingRecordCreation = false;\n    this.betaCollectionListCommunicator.refreshAll(\n      this.args.component.options.relatedDataField || this.args.component.options.collection,\n    );\n  }\n\n  @action\n  async handleWorkspaceContextChanged(workspaceComponentOptions) {\n    if (\n      this.args.component.options !== workspaceComponentOptions\n      || !this.args.component.options.recordsContext\n    ) {\n      return;\n    }\n\n    // This mandatory to reflect the state of the workspace in the query params BEFORE computing forest-context-url\n    await waitForNextRunLoop();\n\n    this.betaCollectionListCommunicator.refresh(this.args.component.options.collectionListId);\n  }\n\n  @action\n  shouldPreventChangeSelectedRecord() {\n    return (\n      this.workspaceManagerBusinessService.shouldPreventChangingRecordWhileEditing(\n        this.args.component,\n      ) &&\n      // user wants to keep editing the same record\n      !this.workspaceManagerBusinessService.preventChangingRecordWhileEditing(this.args.component)\n    );\n  }\n\n  @action\n  async handleSelectedRecordsChange({\n    selectedRecordsCount,\n    selectedRecords,\n    recordsContext,\n  }: {\n    selectedRecordsCount: number;\n    selectedRecords: ClientRecordModel[];\n    recordsContext?: RecordsContext;\n  }) {\n    this.args.component.appliedOn.forEach((component) => {\n      if ('resetReadMode' in component.options) component.options.resetReadMode();\n    });\n\n    this.args.component.options.recordsContext = recordsContext;\n    // For performance matter, we trigger a record refetch if only one is selected.\n    if (selectedRecordsCount === 1) {\n      this.args.component.selectedRecords = selectedRecords;\n      this.args.component.selectedRecords = [\n        await this.fetchRecord.perform(selectedRecords.firstObject),\n      ];\n    } else {\n      void this.fetchRecord.cancelAll();\n      this.args.component.selectedRecords = selectedRecords;\n    }\n  }\n\n  @action\n  async setupRecordsContext(shouldUpdateIfSegmentOrSortHaveChanged = true) {\n    const {\n      recordsContext,\n      filteredCollection: collection,\n      segment,\n      filter,\n      recordsPerPage,\n      viewId,\n      canFetchData,\n      recordToDisplay,\n      relatedDataField,\n      dataType,\n    } = this.args.component.options;\n\n    if (!canFetchData) return;\n\n    const mainView = await collection?.mainView;\n    const collectionMainViewRecordsPerPage = mainView?.recordsPerPage;\n    const collectionMainViewId = (mainView as ViewListModel)?.id;\n\n    const sortingFieldName =\n      this.args.component.options.sortingFieldName\n      || this.collectionBusinessService.getDefaultSortingFieldName(this.modelToFetch);\n    const sortingOrder =\n      this.args.component.options.sortingOrder\n      || this.collectionBusinessService.getDefaultSortingOrder(this.modelToFetch);\n\n    if (\n      recordsContext\n      && recordsContext.collection === collection\n      && (dataType === 'collection'\n        || (recordsContext as RelatedRecordsContext).parentRecord === recordToDisplay)\n      && (dataType === 'collection'\n        || (recordsContext as RelatedRecordsContext).field === relatedDataField)\n      && (!shouldUpdateIfSegmentOrSortHaveChanged || recordsContext.segment === segment)\n      && JSON.stringify(recordsContext.nonEditableFilter?.toJSON())\n        === JSON.stringify(filter?.toJSON())\n      && this.areVisibleColumnsInRecordContextUpToDate()\n      && (!shouldUpdateIfSegmentOrSortHaveChanged\n        || (recordsContext.firstSortingParameter === null && sortingOrder === null)\n        || recordsContext?.firstSortingParameter?.order === sortingOrder)\n      && (!shouldUpdateIfSegmentOrSortHaveChanged\n        || (recordsContext.firstSortingParameter === null && sortingFieldName === null)\n        || recordsContext?.firstSortingParameter?.fieldName === sortingFieldName)\n      && recordsContext.recordsPerPageOrDefault\n        === (recordsPerPage || collectionMainViewRecordsPerPage)\n      && (!recordsContext.viewList\n        || (recordsContext.viewList as ViewListModel)?.id === (viewId || collectionMainViewId))\n    ) {\n      return;\n    }\n    if (this.args.component.options.recordsContext?.collection) {\n      this.betaCollectionListCommunicator.removeListenerOnSmartActionTriggered(\n        this.args.component.options.recordsContext.collection,\n        this.handleSmartActionTriggered,\n      );\n    }\n    this.args.component.options.recordsContext =\n      await this.workspaceManagerBusinessService.buildRecordsContextForWorkspaceComponentCollection(\n        this.args.component,\n        {\n          modelToFetch: this.modelToFetch,\n          error: this.error as RecordsContextError,\n        },\n      );\n    if (this.args.component.options.recordsContext.collection) {\n      this.betaCollectionListCommunicator.addListenerOnSmartActionTriggered(\n        this.args.component.options.recordsContext.collection,\n        this.handleSmartActionTriggered,\n      );\n    }\n  }\n\n  @action\n  async handleSmartActionTriggered() {\n    const { component } = this.args;\n    const { recordsContext } = component.options;\n\n    await this.workspaceManagerBusinessService.verifySelectedRecordsAreInRecordsContext(\n      recordsContext,\n      component,\n    );\n\n    if (component.selectedRecord) {\n      await this.fetchRecord.perform(component.selectedRecord);\n    }\n  }\n\n  @action\n  async handleRecordsFetched() {\n    const { recordsContext } = this.args.component.options;\n\n    if (recordsContext?.records?.length === 1 && recordsContext.currentPage === 1) {\n      recordsContext.selectedRecords = [recordsContext.records.firstObject];\n      await this.handleSelectedRecordsChange({\n        selectedRecordsCount: 1,\n        selectedRecords: [recordsContext.records.firstObject],\n        recordsContext,\n      });\n    }\n  }\n\n  areVisibleColumnsInRecordContextUpToDate() {\n    const {\n      recordsContext,\n      filteredCollection: collection,\n      visibleColumns,\n    } = this.args.component.options;\n\n    const sortAndCreateVisibleColumns = (columns: RecordsStateColumn[]) =>\n      columns?.sortBy('position')?.map(({ field }, index) => ({\n        name: field.fieldName,\n        position: index,\n      }));\n\n    const visibleColumnsInRecordContext = sortAndCreateVisibleColumns(recordsContext?.columns);\n\n    const currentVisibleColumns = !visibleColumns?.length\n      ? sortAndCreateVisibleColumns(\n          recordsContext.segment?.columnsVisibleOrdered?.length > 0\n            ? recordsContext.segment.columnsVisibleOrdered\n            : collection.columnsVisibleOrdered,\n        )\n      : visibleColumns.sortBy('position');\n\n    return JSON.stringify(currentVisibleColumns) === JSON.stringify(visibleColumnsInRecordContext);\n  }\n\n  private fetchRecord = restartableTask(async (record: ClientRecordModel) => {\n    return this.clientRecordFeature.fetchRecordAndRequiredBelongsTo(\n      this.args.component.belongsToFieldsTreeToFetch,\n      this.args.component.options.filteredCollection,\n      record,\n    );\n  });\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @component.options.recordsContext}}\\n  <DataDisplay::BetaCollectionList\\n    @betaCollectionListId={{@component.options.collectionListId}}\\n    @resizableColumnsState={{@component.options.resizableColumnsState}}\\n    @hasCreateButton={{@component.options.showCreate}}\\n    @hasActions={{@component.options.showActions}}\\n    @shouldShowWorklows={{@component.options.showWorkflows}}\\n    @hasFiltersButton={{@component.options.showFilters}}\\n    @hasHeader={{true}}\\n    @hasHeaderEditLayoutButton={{false}}\\n    @hasSearchbar={{@component.options.showSearchbar}}\\n    @hasSegmentsListDisabled={{not @component.options.enableSegments}}\\n    @isEditMode={{false}}\\n    @onRecordsFetched={{this.handleRecordsFetched}}\\n    @onSelectedRecordsChange={{this.handleSelectedRecordsChange}}\\n    @openCreateRecord={{if this.canCreate (fn (mut this.isDisplayingRecordCreation) true)}}\\n    @openDuplicateRecord={{this.openDuplicateRecord}}\\n    @segmentsList={{@component.options.collection.sortedSegments}}\\n    @shouldSelectOnRowClick={{@component.options.shouldSelectRecord}}\\n    @shouldDisablePerformanceTracking={{true}}\\n    @recordsContext={{@component.options.recordsContext}}\\n    @shouldPreventChangeSelectedRecord={{this.shouldPreventChangeSelectedRecord}}\\n    class=\\\"c-feature-workspace-component-renderer-collection\\\"\\n    {{did-update\\n      (fn this.setupRecordsContext true)\\n      @component.options.recordToDisplay\\n      @component.options.relatedDataField\\n      @component.options.collection\\n      @component.options.segment\\n      @component.options.filter\\n      @component.options.columns\\n      @component.options.sortingFieldName\\n      @component.options.sortingOrder\\n      @component.options.recordsPerPage\\n      @component.options.viewId\\n    }}\\n    ...attributes\\n  />\\n\\n  {{#if this.isDisplayingRecordCreation}}\\n    <DataDisplay::Record::CreateEditModal\\n      @onCloseModal={{this.closeCreateEditModal}}\\n      @collection={{@component.options.filteredCollection}}\\n      @onRecordSaved={{this.onRecordCreated}}\\n      @record={{this.recordToDuplicate}}\\n    />\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/features/workspace/components/component-renderer/collection/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class FeatureWorkspaceComponentRendererComponent extends Component {\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n    isGridStackItemLoaded: PropTypes.bool.isRequired,\n    isBuilder: PropTypes.bool,\n    onSelectComponent: PropTypes.func,\n    onQueryParametersChange: PropTypes.func,\n  };\n}\n","import type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\n\nimport Component from '@glimmer/component';\n\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FeatureWorkspaceComponentRendererDatePickerComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.DatePicker>;\n  isBuilder: boolean;\n}\n\n@validateArguments\nexport default class FeatureWorkspaceComponentRendererDatePickerComponent extends Component<FeatureWorkspaceComponentRendererDatePickerComponentArgs> {\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n    isBuilder: PropTypes.bool.isRequired,\n  };\n\n  get minimumDate() {\n    return this.args.isBuilder || this.args.component.hasTemplatingOrConfigurationError\n      ? null\n      : this.args.component.templatingHelper.injectVariablesIntoStringWithoutValidation(\n          this.args.component.options.minimumDate,\n          {\n            expectedType: this.args.component.options.type,\n          },\n        );\n  }\n\n  get maximumDate() {\n    return this.args.isBuilder || this.args.component.hasTemplatingOrConfigurationError\n      ? null\n      : this.args.component.templatingHelper.injectVariablesIntoStringWithoutValidation(\n          this.args.component.options.maximumDate,\n          {\n            expectedType: this.args.component.options.type,\n          },\n        );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-test-feature-workspace-component-renderer-date-picker ...attributes>\\n  {{#let (generate-guid) as |datePickerId|}}\\n    {{#if @component.options.shouldDisplayLabel}}\\n      <Shared::BetaLabel\\n        @label={{templating-injector\\n          @component.options.displayedLabel\\n          templatingHelper=@component.templatingHelper\\n        }}\\n        @for={{datePickerId}}\\n        data-test-feature-workspace-component-renderer-date-picker-label\\n      />\\n    {{/if}}\\n    <Shared::BetaInputDate\\n      @value={{one-way @component.selectedValue}}\\n      @isDateOnly={{@component.options.isDateOnly}}\\n      @format={{@component.options.formatOrDefault}}\\n      @placeholder={{templating-injector\\n        (or @component.options.placeholder @component.options.defaultPlaceholder)\\n        templatingHelper=@component.templatingHelper\\n        plainText=true\\n      }}\\n      @minDate={{this.minimumDate}}\\n      @maxDate={{this.maximumDate}}\\n      @disabled={{@component.hasTemplatingOrConfigurationError}}\\n      @inputId={{datePickerId}}\\n      @onChange={{fn (mut @component.selectedValue)}}\\n      data-test-feature-workspace-component-renderer-date-picker-date-input\\n    />\\n  {{/let}}\\n</div>\\n', { moduleName: 'client/features/workspace/components/component-renderer/date-picker/template.hbs' });\n","import AbstractWorkspaceComponentRenderer from 'client/legacy/abstract-components/workspace-component-renderer';\n\nexport default class FeatureWorkspaceComponentRendererDividerComponent extends AbstractWorkspaceComponentRenderer {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  id={{this.containerElementId}}\\n  class=\\\"c-workspace-component-divider c-workspace-component-divider--{{@component.options.direction}}\\\"\\n  {{did-insert this.applyOptions}}\\n  {{did-update this.applyOptions @component.options.color @component.options.style}}\\n  data-test-workspace-component-divider\\n  ...attributes\\n>\\n  <div class=\\\"c-workspace-component-divider__divider\\\"></div>\\n</div>\\n', { moduleName: 'client/features/workspace/components/component-renderer/divider/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Widgets::Edit::Dropdown::WidgetLayout\\n  @value={{one-way @component.selectedValue}}\\n  @onChange={{fn (mut @component.selectedValue)}}\\n  @widgetConfiguration={{@component.options}}\\n  @isWorkspace={{true}}\\n  @isExpectingContext={{not @component.shouldDisplay}}\\n  @disabled={{not @component.isConfigured}}\\n  data-test-feature-workspace-component-renderer-dropdown\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workspace/components/component-renderer/dropdown/template.hbs' });\n","import type WidgetConfigurationFragment from 'client/data/models/widget-configuration';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport { setFragmentOwner } from 'ember-data-model-fragments/fragment';\n\nimport { WORKSPACE_GRID_CELL_HEIGHT } from 'client/config/workspace-configuration';\nimport AbstractModel from 'client/data/models/abstract-model';\nimport creationFormHandler from 'client/decorators/creation-form-handler';\nimport AbstractWorkspaceComponentRenderer from 'client/legacy/abstract-components/workspace-component-renderer';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\n\ninterface FeatureWorkspaceComponentRendererFieldArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Field>;\n}\n\ntype RecordValue = string | number | string[] | number[] | ClientRecordModel;\n\n@creationFormHandler\nexport default class FeatureWorkspaceComponentRendererFieldComponent extends AbstractWorkspaceComponentRenderer<FeatureWorkspaceComponentRendererFieldArgs> {\n  @tracked readmode = false;\n  @service('business/workspace-manager')\n  declare workspaceManagerBusinessService: WorkspaceManagerService;\n\n  @service('feature/client-record') private clientRecordFeature: ClientRecordFeatureService;\n\n  @service declare store: StoreService;\n\n  oldFieldRecordValue: RecordValue;\n  widgetEditWorkspace: WidgetConfigurationFragment | null = null;\n\n  constructor(owner: unknown, args: FeatureWorkspaceComponentRendererFieldArgs) {\n    super(owner, args);\n\n    this.oldFieldRecordValue = this.fieldRecordValue;\n    if (this.args.component.options.field?.widgetEdit) {\n      const widgetEdit = this.args.component.options.field.widgetEdit.toJSON();\n      this.widgetEditWorkspace = this.store.createFragment('widget-configuration', widgetEdit);\n      setFragmentOwner(\n        this.widgetEditWorkspace,\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n        this.args.component.options._getForestRecordData(),\n        'widgetEdit',\n      );\n    }\n  }\n\n  get height() {\n    const {\n      component: {\n        displaySettings: { height },\n        options,\n      },\n    } = this.args;\n\n    if (options.widgetDisplay?.name !== 'json') {\n      return null;\n    }\n\n    return this.calculateHeight(height);\n  }\n\n  get widgetConfiguration() {\n    const { isInEditMode, widgetDisplay, widgetEdit } = this.args.component.options;\n    return isInEditMode ? widgetEdit || this.widgetEditWorkspace : widgetDisplay;\n  }\n\n  get fieldRecordValue() {\n    return this.args.component.options.recordToDisplay?.[\n      this.args.component.options.field?.attributeNameWithRelationships\n    ] as RecordValue;\n  }\n\n  @action\n  async handleBelongsToUpdate() {\n    if (\n      this.fieldRecordValue\n      && this.args.component.options.field.isBelongsTo\n      && this.args.component.options.isInEditMode\n      && this.fieldRecordValue instanceof AbstractModel\n    ) {\n      await waitForNextRunLoop();\n      this.rollbackAttributesIfNecessary();\n\n      // We need to fetch the belongs to record if it's value has been updated by the user\n      await this.clientRecordFeature.fetchRecord(\n        getCollectionFromRecord(this.fieldRecordValue),\n        this.fieldRecordValue,\n      );\n    }\n\n    this.oldFieldRecordValue = this.fieldRecordValue;\n  }\n\n  private rollbackAttributesIfNecessary() {\n    if (\n      this.oldFieldRecordValue\n      && this.oldFieldRecordValue instanceof AbstractModel\n      && (this.oldFieldRecordValue.hasDirtyAttributes\n        || this.oldFieldRecordValue.hasDirtyRelationships)\n    ) {\n      this.oldFieldRecordValue.rollbackRelationships();\n      this.oldFieldRecordValue.rollbackAttributes();\n    }\n  }\n\n  private calculateHeight(height: number) {\n    return (height - 2) * WORKSPACE_GRID_CELL_HEIGHT;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  id={{this.containerElementId}}\\n  class=\\\"c-feature-workspace-component-renderer-field\\\"\\n  data-test-feature-workspace-component-renderer-field\\n  {{did-update this.handleBelongsToUpdate this.fieldRecordValue}}\\n  ...attributes\\n>\\n  {{#if @component.isConfigured}}\\n    <Form::FormValue\\n      @displayName={{if\\n        @component.options.shouldDisplayLabel\\n        (templating-injector\\n          (or @component.options.displayedLabel @component.options.field.displayNameTitlize)\\n          templatingHelper=@component.templatingHelper\\n        )\\n        null\\n      }}\\n      @contextConfiguration={{hash createNewBelongsTo=this.createNewBelongsTo}}\\n      @readMode={{not @component.options.isInEditMode}}\\n      @isReadOnly={{eq @component.options.recordToDisplay null}}\\n      @disableNested={{true}}\\n      @labelClass=\\\"c-feature-workspace-component-renderer-field__label\\\"\\n      @field={{@component.options.field}}\\n      @widgetConfiguration={{this.widgetConfiguration}}\\n      @collection={{@component.options.source.collection}}\\n      @record={{@component.options.recordToDisplay}}\\n      @shouldHideSettingsButton={{true}}\\n      @shouldHideDescription={{true}}\\n      @height={{this.height}}\\n      class=\\\"c-feature-workspace-component-renderer-field__label-wrapper\\\"\\n      data-test-feature-workspace-component-renderer-field-configured\\n    />\\n  {{else}}\\n    {{#if @component.options.shouldDisplayLabel}}\\n      <div\\n        class=\\\"c-feature-workspace-component-renderer-field__label\\\"\\n        data-test-feature-workspace-component-renderer-field-label-not-configured\\n      >\\n        {{templating-injector\\n          (or\\n            @component.options.displayedLabel\\n            @component.options.field.displayNameTitlize\\n            \\'Field name\\'\\n          )\\n          templatingHelper=@component.templatingHelper\\n        }}\\n      </div>\\n    {{/if}}\\n    <div\\n      class=\\\"c-feature-workspace-component-renderer-field__not-configured\\\"\\n      data-test-feature-workspace-component-renderer-field-value-not-configured\\n    >\\n      {{~\\'<not-configured>\\'~}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workspace/components/component-renderer/field/template.hbs' });\n","import type InboxModel from 'client/data/models/inbox';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type { TaskWithRecord } from 'client/features/inbox/services/internal-business/tasks-fetcher';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type { CurrentRecordSource } from 'client/utils/workspace/helper';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport { InboxEntryPointEnum } from 'client/features/inbox/state';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport AbstractWorkspaceComponentRenderer from 'client/legacy/abstract-components/workspace-component-renderer';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\ninterface FeatureWorkspaceComponentRendererInboxComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Inbox>;\n}\n\nexport default class FeatureWorkspaceComponentRendererInboxComponent extends AbstractWorkspaceComponentRenderer<FeatureWorkspaceComponentRendererInboxComponentArgs> {\n  @service public currentUser: CurrentUserService;\n  @service('feature/client-record') private clientRecordFeature: ClientRecordFeatureService;\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n  @service('event-bus') private eventBus: EventBusService;\n  @service('feature/workspace') private workspaceFeature: WorkspaceFeatureService;\n  @service('feature/notification') private notificationFeature: NotificationFeatureService;\n\n  @tracked public numberOfToDoTasks: Promise<string | number> | string | number;\n  @tracked public numberOfDoingTasks: Promise<string | number> | string | number;\n  @tracked public doingInboxAssignments: TaskWithRecord[];\n  @tracked public isLoading = false;\n  @tracked public isDropdownLoading: boolean;\n  @tracked hasClickedExit = false;\n  @tracked selectedInboxId: string;\n\n  constructor(owner: unknown, args: FeatureWorkspaceComponentRendererInboxComponentArgs) {\n    super(owner, args);\n\n    this.setSelectedInboxId();\n    if (!this.currentUser.editMode) {\n      void this.handleRefreshSelectedRecord();\n    }\n\n    this.loadInboxCounts();\n\n    this.eventBus.on(EventBusEventsEnum.WorkspaceRefresh, this.handleRefreshSelectedRecord);\n    this.eventBus.on(EventBusEventsEnum.WorkspaceRefresh, this.loadInboxCounts);\n    this.eventBus.on(EventBusEventsEnum.InboxAssignmentUpdated, this.loadInboxCounts);\n    this.eventBus.on(\n      EventBusEventsEnum.WorkspaceRecordsOutOfCollectionOrSegment,\n      this.handleRecordOutOfSegment,\n    );\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n\n    this.eventBus.off(EventBusEventsEnum.WorkspaceRefresh, this.handleRefreshSelectedRecord);\n    this.eventBus.off(EventBusEventsEnum.WorkspaceRefresh, this.loadInboxCounts);\n    this.eventBus.off(EventBusEventsEnum.InboxAssignmentUpdated, this.loadInboxCounts);\n    this.eventBus.off(\n      EventBusEventsEnum.WorkspaceRecordsOutOfCollectionOrSegment,\n      this.handleRecordOutOfSegment,\n    );\n  }\n\n  public get inbox() {\n    return this.selectedInboxId ? this.inboxFeature.getInboxById(this.selectedInboxId) : null;\n  }\n\n  public get availableInboxes() {\n    return this.args.component.options.inboxIds.reduce<InboxModel[]>((acc, inboxId) => {\n      const inbox = this.inboxFeature.getInboxById(inboxId);\n      if (inbox) {\n        acc.push(inbox);\n      }\n      return acc;\n    }, []);\n  }\n\n  public get doesHaveRecordToProcess() {\n    if (this.currentInboxAssignment) {\n      return this.doingInboxAssignments?.filter(this.omitCurrentTask)?.length > 0;\n    }\n    return this.doingInboxAssignments?.length > 0;\n  }\n\n  public get emptyDropdownText() {\n    return this.currentInboxAssignment ? 'No more doing tasks' : 'No record assigned to you';\n  }\n\n  public get processingDropdownText() {\n    if (this.isDropdownLoading) {\n      return 'Getting your tasks...';\n    }\n    return this.currentInboxAssignment ? 'Doing tasks' : 'Continue processing';\n  }\n\n  public get currentInboxAssignment() {\n    return this.inboxFeature.getCurrentInboxAssignmentForInbox(\n      this.args.component.options.inboxIds,\n    );\n  }\n\n  public get currentRecordDisplayName() {\n    const { displayFieldOrPrimaryField } = this.currentInboxAssignment.inbox.collection;\n\n    const displayFieldValue = this.args.component.selectedRecord?.[\n      displayFieldOrPrimaryField.attributeNameWithRelationships\n    ] as string;\n\n    if (displayFieldValue) {\n      return displayFieldOrPrimaryField.isIdentifier ? `#${displayFieldValue}` : displayFieldValue;\n    }\n    return `#${this.currentInboxAssignment.recordId}`;\n  }\n\n  @action\n  public setSelectedInboxId() {\n    const { inboxIds } = this.args.component.options;\n    const savedInboxId = this.workspaceFeature.getInboxComponentSelectedInboxId(\n      this.args.component,\n    );\n\n    if (inboxIds.length > 0) {\n      if (this.currentInboxAssignment && inboxIds.includes(this.currentInboxAssignment.inbox.id)) {\n        this.selectedInboxId = this.currentInboxAssignment.inbox.id;\n      } else if (savedInboxId && inboxIds.includes(savedInboxId)) {\n        this.selectedInboxId = savedInboxId;\n      } else {\n        this.selectedInboxId = inboxIds.firstObject;\n      }\n    }\n  }\n\n  @action\n  public async handleChangeInbox(inboxId: string) {\n    this.selectedInboxId = inboxId;\n    this.workspaceFeature.saveInboxComponentSelectedInboxId(\n      this.args.component,\n      this.selectedInboxId,\n    );\n  }\n\n  @action\n  public async getDoingTasks() {\n    this.isDropdownLoading = true;\n    this.doingInboxAssignments = [];\n    const assignments = await this.inboxFeature.getAssignmentsWithRecord(this.inbox);\n\n    if (this.currentInboxAssignment) {\n      this.doingInboxAssignments = assignments.filter(this.omitCurrentTask);\n    } else {\n      this.doingInboxAssignments = assignments;\n    }\n\n    this.isDropdownLoading = false;\n  }\n\n  @action\n  private omitCurrentTask(taskWithRecord: TaskWithRecord) {\n    return taskWithRecord.assignment.id !== this.currentInboxAssignment?.id;\n  }\n\n  @action\n  public async startProcessingTask(assignment: TaskWithRecord) {\n    this.isLoading = true;\n    this.inboxFeature.setEntryPoint(\n      InboxEntryPointEnum.Workspace,\n      this.args.component.workspace.id,\n      this.selectedInboxId,\n    );\n    await this.inboxFeature.startProcessingTask(assignment.assignment);\n    this.hasClickedExit = false;\n    this.isLoading = false;\n  }\n\n  @action\n  public async startProcessing() {\n    this.isLoading = true;\n\n    this.inboxFeature.setEntryPoint(\n      InboxEntryPointEnum.Workspace,\n      this.args.component.workspace.id,\n      this.selectedInboxId,\n    );\n    await this.inboxFeature.startProcessingInbox(this.inbox);\n    this.hasClickedExit = false;\n\n    this.isLoading = false;\n  }\n\n  @action\n  public loadInboxCounts() {\n    this.numberOfDoingTasks = this.inboxFeature.getNumberOfDoingTasks(this.inbox);\n    this.numberOfToDoTasks = this.inboxFeature.getNumberOfToDoTasks(this.inbox);\n  }\n\n  @action\n  public async handleRecordOutOfSegment(\n    sourceComponent: WorkspaceComponentModel | CurrentRecordSource,\n  ) {\n    // Update the current assignment in case the record is unset from the segment follow an action triggered by the user\n    if (sourceComponent === this.args.component && !this.args.component.selectedRecord) {\n      this.inboxFeature.setCurrentInboxAssignment(null);\n      if (!this.hasClickedExit) {\n        this.notificationFeature.createToastr(\n          ToastrTypeEnum.Info,\n          'Inbox task is completed. Loading next task...',\n        );\n        await this.inboxFeature.startProcessingInbox(this.inbox);\n      }\n    }\n  }\n\n  @action\n  public handleChangeCurrentInboxAssignment() {\n    if (\n      this.currentInboxAssignment\n      && this.currentInboxAssignment.inbox.id !== this.selectedInboxId\n    ) {\n      this.setSelectedInboxId();\n    }\n  }\n\n  @action\n  public async handleRefreshSelectedRecord() {\n    this.args.component.selectedRecord = this.currentInboxAssignment\n      ? await this.fetchRecord()\n      : null;\n\n    this.args.component.options.recordsContext =\n      this.workspaceFeature.buildRecordsContextForWorkspaceComponentInbox(\n        this.args.component,\n        this.inbox,\n      );\n  }\n\n  @action\n  public async exitInbox() {\n    await this.inboxFeature.exitInbox({ isManualExit: false });\n    this.hasClickedExit = true;\n  }\n\n  private async fetchRecord() {\n    return this.clientRecordFeature.fetchRecordAndRequiredBelongsTo(\n      this.args.component.belongsToFieldsTreeToFetch,\n      this.inbox.collection,\n      { id: this.currentInboxAssignment.recordId },\n    );\n  }\n}\n","import type InboxFeatureService from 'client/features/inbox/services/feature';\nimport type { TaskWithRecord } from 'client/features/inbox/services/internal-business/tasks-fetcher';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport AbstractModel from 'client/data/models/abstract-model';\nimport InboxAssignmentModel from 'client/data/models/inbox-assignment';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface ComponentRendererInboxDoingItemArgs {\n  taskWithRecord: TaskWithRecord;\n}\n\n@validateArguments\nexport default class WorkspaceComponentRendererInboxDoingItemComponent extends Component<ComponentRendererInboxDoingItemArgs> {\n  static propTypes = {\n    taskWithRecord: PropTypes.shape({\n      record: PropTypes.instanceOf(AbstractModel),\n      assignment: PropTypes.instanceOf(InboxAssignmentModel),\n    }).isRequired,\n  };\n\n  @service('feature/inbox') private inboxFeature: InboxFeatureService;\n\n  @action\n  public getDisplayNameFromRecord(taskWithRecord: TaskWithRecord) {\n    return this.inboxFeature.getDisplayNameFromRecord(taskWithRecord);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workspace-component-renderer-inbox-doing-item\\\"\\n  data-test-feature-workspace-component-renderer-inbox-doing-item\\n  ...attributes\\n>\\n  <span data-test-feature-workspace-component-renderer-inbox-doing-item-name>\\n    {{this.getDisplayNameFromRecord @taskWithRecord}}\\n  </span>\\n  <Shared::DataDisplay::BetaIcon @iconName={{\\'arrow_forward\\'}} @size=\\\"small\\\" />\\n</div>\\n', { moduleName: 'client/features/workspace/components/component-renderer/inbox/doing-item/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workspace-component-renderer-inbox\\\"\\n  {{did-update this.loadInboxCounts this.inbox}}\\n  {{did-update this.setSelectedInboxId @component.options.inboxIds}}\\n  {{did-update this.handleRefreshSelectedRecord this.currentInboxAssignment}}\\n  {{did-update this.handleChangeCurrentInboxAssignment this.currentInboxAssignment}}\\n>\\n  <div class=\\\"c-feature-workspace-component-renderer-inbox__col\\\">\\n    {{#if\\n      (and\\n        (gt @component.options.inboxIds.length 1)\\n        (not this.currentInboxAssignment)\\n        (not this.currentUser.editMode)\\n      )\\n    }}\\n      <Shared::BetaSelect\\n        @options={{this.availableInboxes}}\\n        @namePath=\\\"nameWithCollection\\\"\\n        @value={{one-way this.selectedInboxId}}\\n        @valuePath=\\\"id\\\"\\n        @onChange={{this.handleChangeInbox}}\\n        @placeholder=\\\"Select an inbox\\\"\\n        @iconPath=\\\"icon\\\"\\n        data-test-feature-workspace-component-renderer-inbox-inboxes-selector\\n      />\\n    {{else}}\\n      <h2\\n        class=\\\"c-feature-workspace-component-renderer-inbox__title\\\"\\n        data-test-feature-workspace-component-renderer-inbox-title\\n      >\\n        {{this.inbox.nameWithIcon}}\\n      </h2>\\n    {{/if}}\\n    <div class=\\\"c-feature-workspace-component-renderer-inbox__data\\\">\\n      <div class=\\\"c-feature-workspace-component-renderer-inbox__count\\\">\\n        <span>\\n          Todo\\n        </span>\\n        <Shared::DataDisplay::NumberBadge\\n          @count={{this.numberOfToDoTasks}}\\n          @isActive={{true}}\\n          data-test-feature-workspace-component-renderer-inbox-todo-count\\n        />\\n      </div>\\n      <div class=\\\"c-feature-workspace-component-renderer-inbox__count\\\">\\n        <span>\\n          Doing\\n        </span>\\n        <Shared::DataDisplay::NumberBadge\\n          @count={{this.numberOfDoingTasks}}\\n          @isActive={{false}}\\n          data-test-feature-workspace-component-renderer-inbox-doing-count\\n        />\\n      </div>\\n    </div>\\n  </div>\\n\\n  <div class=\\\"c-feature-workspace-component-renderer-inbox__col\\\">\\n    {{#if (and this.currentInboxAssignment (not this.currentUser.editMode))}}\\n      <p data-test-feature-workspace-component-renderer-inbox-current-record-name>\\n        Current task:\\n        <span class=\\\"c-feature-workspace-component-renderer-inbox__current-task-name\\\">\\n          {{this.currentRecordDisplayName}}\\n        </span>\\n      </p>\\n      <div class=\\\"c-feature-workspace-component-renderer-inbox__processing-buttons\\\">\\n        <Shared::ButtonSplitDropdown\\n          @text=\\\"Next\\\"\\n          @onClickButton={{this.startProcessing}}\\n          @onOpenDropdown={{this.getDoingTasks}}\\n          @dropdownOptions={{this.doingInboxAssignments}}\\n          @onSelectValue={{this.startProcessingTask}}\\n          @isLoading={{this.isLoading}}\\n          @isDropdownLoading={{this.isDropdownLoading}}\\n          @emptyText={{this.emptyDropdownText}}\\n          @disabled={{this.isLoading}}\\n          @hasTitle={{(or this.isDropdownLoading this.doesHaveRecordToProcess)}}\\n          @currentValue={{null}}\\n          @drownDownContentClass=\\\"c-feature-workspace-component-renderer-inbox__doing-dropdown\\\"\\n          data-test-feature-workspace-component-renderer-inbox-next-button\\n        >\\n          <:dropdown-title>\\n            {{this.processingDropdownText}}\\n          </:dropdown-title>\\n          <:item-renderer as |taskWithRecord|>\\n            <Feature::Workspace::ComponentRenderer::Inbox::DoingItem\\n              @taskWithRecord={{taskWithRecord}}\\n            />\\n          </:item-renderer>\\n        </Shared::ButtonSplitDropdown>\\n        <Shared::Button\\n          @text=\\\"Exit\\\"\\n          @type=\\\"ghost\\\"\\n          @onClick={{this.exitInbox}}\\n          data-test-feature-workspace-component-renderer-inbox-exit-button\\n        />\\n      </div>\\n    {{else}}\\n      <Shared::ButtonSplitDropdown\\n        @text=\\\"Start processing\\\"\\n        @onClickButton={{this.startProcessing}}\\n        @onOpenDropdown={{this.getDoingTasks}}\\n        @dropdownOptions={{this.doingInboxAssignments}}\\n        @onSelectValue={{this.startProcessingTask}}\\n        @disabled={{this.isLoading}}\\n        @emptyText={{this.emptyDropdownText}}\\n        @isDropdownLoading={{this.isDropdownLoading}}\\n        @currentValue={{null}}\\n        @hasTitle={{(or this.isDropdownLoading this.doesHaveRecordToProcess)}}\\n        @drownDownContentClass=\\\"c-feature-workspace-component-renderer-inbox__doing-dropdown\\\"\\n        class=\\\"c-feature-workspace-component-renderer-inbox__start-processing-button\\\"\\n        data-test-feature-workspace-component-renderer-inbox-start-button\\n      >\\n        <:dropdown-title>\\n          {{this.processingDropdownText}}\\n        </:dropdown-title>\\n        <:item-renderer as |taskWithRecord|>\\n          <Feature::Workspace::ComponentRenderer::Inbox::DoingItem\\n            @taskWithRecord={{taskWithRecord}}\\n          />\\n        </:item-renderer>\\n      </Shared::ButtonSplitDropdown>\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/features/workspace/components/component-renderer/inbox/template.hbs' });\n","import { action } from '@ember/object';\nimport { debounce } from '@ember/runloop';\n\nimport WorkspaceComponentModel, {\n  type WorkspaceComponentTypeEnum,\n} from 'client/data/models/workspace-component';\nimport { WorkspaceComponentOptionsInputTypeEnum } from 'client/data/models/workspace-component-options-input';\nimport validateArguments from 'client/decorators/validate';\nimport AbstractWorkspaceComponentRenderer from 'client/legacy/abstract-components/workspace-component-renderer';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FeatureWorkspaceComponentRendererInputComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Input>;\n  isBuilder: boolean;\n}\n\n@validateArguments\nexport default class FeatureWorkspaceComponentRendererInputComponent extends AbstractWorkspaceComponentRenderer<FeatureWorkspaceComponentRendererInputComponentArgs> {\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n  };\n\n  debouncedValue: string | number;\n\n  get inputType() {\n    return this.args.component.options.inputType.toLowerCase();\n  }\n\n  get labelToDisplay() {\n    if (!this.args.component.options.shouldDisplayLabel) {\n      return null;\n    }\n\n    if (!this.args.component.options.label) {\n      if (this.args.component.options.inputType === WorkspaceComponentOptionsInputTypeEnum.String) {\n        return 'Text input';\n      }\n\n      return 'Number input';\n    }\n\n    return this.args.component.options.label;\n  }\n\n  @action\n  debounceValue(value: string | number) {\n    return debounce(this, this.applyValue, value, 500, false);\n  }\n\n  applyValue(value) {\n    this.args.component.selectedValue = value === '' ? null : value;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel @label={{this.labelToDisplay}}>\\n  <Shared::BetaInput\\n    @value={{this.debouncedValue}}\\n    @onChange={{this.debounceValue}}\\n    @placeholder={{@component.options.placeholder}}\\n    @disabled={{false}}\\n    @readOnly={{false}}\\n    @type={{this.inputType}}\\n    data-test-component-renderer-input\\n    data-dd-action-name=\\\"Click on input workspace component\\\"\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/features/workspace/components/component-renderer/input/template.hbs' });\n","import type CollectionModel from 'client/data/models/collection';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\n\nimport { service } from '@ember/service';\n\nimport AbstractWorkspaceComponentRenderer from 'client/legacy/abstract-components/workspace-component-renderer';\n\ninterface FeatureWorkspaceComponentRendererLinkComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Link>;\n}\n\nexport default class FeatureWorkspaceComponentRendererLinkComponent extends AbstractWorkspaceComponentRenderer<FeatureWorkspaceComponentRendererLinkComponentArgs> {\n  @service('feature/client-record')\n  private readonly clientRecordService: ClientRecordFeatureService;\n\n  get text() {\n    const { displayedText, isCustomURL, url, source } = this.args.component.options;\n    if (displayedText) return displayedText;\n    if (isCustomURL) return url;\n    const { selectedRecord } = source;\n    const fieldName = (source.options.filteredCollection as CollectionModel)\n      .displayFieldOrPrimaryField.attributeNameWithRelationships;\n    return selectedRecord ? (selectedRecord[fieldName] as string) : '-';\n  }\n\n  get recordRouteName() {\n    const { source } = this.args.component.options;\n    return (\n      (source && this.clientRecordService.getRecordPath(source.options.filteredCollection)) || ''\n    );\n  }\n\n  get recordRouteParameters() {\n    const { source } = this.args.component.options;\n    if (!source) {\n      return [];\n    }\n    const collectionId = (source.options.filteredCollection as CollectionModel).shareableId;\n    return [collectionId, collectionId, source.selectedRecord?.id];\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  id={{this.containerElementId}}\\n  class=\\\"c-feature-workspace-component-renderer-link\\\"\\n  {{did-insert this.applyOptions}}\\n  {{did-update\\n    this.applyOptions\\n    @component.options.color\\n    @component.options.fontSize\\n    @component.options.fontStyle\\n    @component.options.fontWeight\\n    @component.options.textAlign\\n  }}\\n  data-test-feature-workspace-component-renderer-link\\n  data-dd-action-name=\\\"Click on link workspace component\\\"\\n  ...attributes\\n>\\n  {{#if @component.options.isDisabled}}\\n    <div\\n      class=\\\"c-feature-workspace-component-renderer-link__text c-feature-workspace-component-renderer-link__text--disabled\\\"\\n      data-test-feature-workspace-component-renderer-link-disabled\\n    >\\n      {{#if @component.isConfigured}}\\n        {{templating-injector this.text templatingHelper=@component.templatingHelper}}\\n      {{else}}\\n        Not configured yet\\n      {{/if}}\\n    </div>\\n  {{else}}\\n    <Shared::Navigation::BetaLinkTo\\n      @type={{or @component.options.linkColorType \\'custom\\'}}\\n      @size=\\\"custom\\\"\\n      @textAlign={{@component.options.textAlign}}\\n      @target={{if @component.options.shouldOpenInNewTab \\'_blank\\' \\'_self\\'}}\\n      @href={{if @component.options.isCustomURL @component.options.href}}\\n      @routeName={{this.recordRouteName}}\\n      @routeParameters={{this.recordRouteParameters}}\\n      @text={{templating-injector this.text templatingHelper=@component.templatingHelper}}\\n      class={{get-classes-with-modifiers\\n        \\'c-feature-workspace-component-renderer-link__text\\'\\n        custom-color=(not @component.options.linkColorType)\\n      }}\\n      data-test-feature-workspace-component-renderer-link-link-to\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workspace/components/component-renderer/link/template.hbs' });\n","import WorkspaceComponentModel, {\n  type WorkspaceComponentTypeEnum,\n} from 'client/data/models/workspace-component';\nimport validateArguments from 'client/decorators/validate';\nimport AbstractWorkspaceComponentRenderer from 'client/legacy/abstract-components/workspace-component-renderer';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FeatureWorkspaceComponentRendererMetabaseComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Metabase>;\n  isBuilder: boolean;\n}\n\n@validateArguments\nexport default class FeatureWorkspaceComponentRendererMetabaseComponent extends AbstractWorkspaceComponentRenderer<FeatureWorkspaceComponentRendererMetabaseComponentArgs> {\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n  };\n\n  themeQuery = 'theme=transparent';\n  borderQuery = 'bordered=false';\n  titleTheme = 'titled=false';\n\n  get query() {\n    let { query } = this.args.component.options;\n\n    // check if the query have theming params\n    if (!/#/.test(query)) {\n      query += `#${this.themeQuery}&${this.borderQuery}&${this.titleTheme}`;\n      return query;\n    }\n\n    if (!/theme=/.test(query)) {\n      query += `&${this.themeQuery}`;\n    } else {\n      query = query.replace(/theme=[^&]*/, this.themeQuery);\n    }\n\n    if (!/bordered=/.test(query)) {\n      query += `&${this.borderQuery}`;\n    } else {\n      query = query.replace(/bordered=[^&]*/, this.borderQuery);\n    }\n\n    if (!/titled=/.test(query)) {\n      query += `&${this.titleTheme}`;\n    } else {\n      query = query.replace(/titled=[^&]*/, this.titleTheme);\n    }\n\n    return query;\n  }\n\n  get url() {\n    if (this.args.component.hasTemplatingError) return null;\n\n    const templatedQuery =\n      this.args.component.templatingHelper.injectVariablesIntoStringWithoutValidation(\n        this.query,\n      ) as string;\n\n    return `${this.args.component.options.url}/embed/dashboard/${this.args.component.options.token}?${templatedQuery}`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-feature-workspace-component-renderer-metabase\\\">\\n  <iframe\\n    src={{this.url}}\\n    frameborder=\\\"0\\\"\\n    title={{unique-id}}\\n    allowtransparency\\n    class=\\\"c-feature-workspace-component-renderer-metabase__iframe\\\"\\n  />\\n</div>\\n', { moduleName: 'client/features/workspace/components/component-renderer/metabase/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type RecordsManagerService from 'client/legacy/services/records-manager';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type RecordsContext from 'client/utils/liana-records/records-context';\nimport type { TaskGenerator } from 'ember-concurrency';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { restartableTask } from 'ember-concurrency';\nimport { taskFor } from 'ember-concurrency-ts';\n\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport validateArguments from 'client/decorators/validate';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FeatureWorkspaceComponentRendererSearchArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Search>;\n}\n\n@validateArguments\nexport default class FeatureWorkspaceComponentRendererSearchComponent extends Component<FeatureWorkspaceComponentRendererSearchArgs> {\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n    debounceTime: PropTypes.number,\n  };\n\n  @service private currentUser: CurrentUserService;\n  @service private eventBus: EventBusService;\n  @service private recordsManager: RecordsManagerService;\n  @service private router: RouterService;\n  @service('feature/client-record') private clientRecordFeature: ClientRecordFeatureService;\n  @service('business/workspace-manager')\n  private workspaceManagerBusinessService: WorkspaceManagerService;\n\n  get displayField() {\n    return (\n      this.args.component.options.displayField\n      || this.args.component.options.collection?.displayFieldOrPrimaryField\n    );\n  }\n\n  @tracked records: ClientRecordModel[] = [];\n  @tracked searchValue: string | null;\n\n  constructor(owner: unknown, args: FeatureWorkspaceComponentRendererSearchArgs) {\n    super(owner, args);\n\n    this.eventBus.on(\n      EventBusEventsEnum.WorkspaceContextChanged,\n      this.handleWorkspaceContextChanged,\n    );\n    this.eventBus.on(EventBusEventsEnum.WorkspaceRefresh, this.handleWorkspaceRefresh);\n    this.searchValue = this.selectedRecordValue;\n  }\n\n  willDestroy() {\n    super.willDestroy();\n\n    this.eventBus.off(\n      EventBusEventsEnum.WorkspaceContextChanged,\n      this.handleWorkspaceContextChanged,\n    );\n    this.eventBus.off(EventBusEventsEnum.WorkspaceRefresh, this.handleWorkspaceRefresh);\n  }\n\n  get attributeNameWithRelationships(): string {\n    return this.displayField.attributeNameWithRelationships;\n  }\n\n  get disabledReason() {\n    if (!this.args.component.isConfigured) {\n      return 'This component is not configured yet';\n    }\n    if (!this.currentUser.canBrowseCollection(this.args.component.options.collection)) {\n      return 'You don’t have permission to use this feature';\n    }\n    return null;\n  }\n\n  get selectedRecordValue(): string | null {\n    return (\n      (this.args.component.selectedRecord?.[this.attributeNameWithRelationships] as string) || null\n    );\n  }\n\n  @action\n  async handleFocusInput() {\n    if (this.searchValue || this.records.length !== 0) return;\n\n    await this.search('');\n  }\n\n  @action\n  async handleSelectRecord(record: ClientRecordModel) {\n    const { collection } = this.args.component.options;\n    if (this.args.component.options.shouldRedirectToRecord) {\n      await this.router.transitionTo(\n        'project.rendering.data.collection.list.view-edit',\n        collection.shareableId,\n        collection.shareableId,\n        record.id,\n      );\n    } else {\n      this.args.component.selectedRecord = record;\n      this.args.component.selectedRecords = [\n        await taskFor(this.fetchSelectedRecord).perform(record),\n      ];\n      this.args.component.options.recordsContext.selectedRecords =\n        this.args.component.selectedRecords;\n      this.searchValue = this.selectedRecordValue;\n      this.args.component.appliedOn.forEach(({ options }) => {\n        if ('resetReadMode' in options) options.resetReadMode();\n      });\n    }\n  }\n\n  @action\n  handleUpdateSearchValue() {\n    // Force the update of the searchValue when the record is edited\n    if (this.args.component.selectedRecord) {\n      this.searchValue = this.selectedRecordValue;\n    }\n  }\n\n  @action\n  shouldPreventSearch() {\n    return (\n      this.workspaceManagerBusinessService.shouldPreventChangingRecordWhileEditing(\n        this.args.component,\n      ) &&\n      // user wants to keep editing the same record\n      !this.workspaceManagerBusinessService.preventChangingRecordWhileEditing(this.args.component)\n    );\n  }\n\n  @action\n  async search(searchValue: string) {\n    if (this.args.component.selectedRecord) {\n      this.args.component.selectedRecords = [];\n    }\n    const recordsContext = this.buildRecordsContext(this.args.component);\n    recordsContext.search = searchValue;\n\n    if (!searchValue) {\n      recordsContext.records = [];\n    } else {\n      await taskFor(this.fetchRecords).perform(recordsContext);\n    }\n\n    this.records = recordsContext.records;\n  }\n\n  @action\n  handleComponentOptionsUpdate() {\n    if (this.args.component.options.collection) {\n      this.buildRecordsContext(this.args.component, true);\n    }\n  }\n\n  private buildRecordsContext(\n    component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Search>,\n    forceUpdateContext = false,\n  ) {\n    if (!component.options.recordsContext || forceUpdateContext) {\n      component.options.recordsContext =\n        this.workspaceManagerBusinessService.buildRecordsContextForWorkspaceComponentSearch(\n          this.args.component,\n        );\n    }\n    return component.options.recordsContext;\n  }\n\n  @action\n  handleWorkspaceContextChanged(\n    workspaceComponentOptions: WorkspaceComponentOptionsNestedDocument,\n  ) {\n    if (this.args.component.options === workspaceComponentOptions) {\n      // For now, when the context changes, we simply reset the selected record to null. So we need to reset the search value accordingly.\n      this.searchValue = null;\n    }\n  }\n\n  @action\n  async handleWorkspaceRefresh() {\n    if (this.args.component.selectedRecord) {\n      this.args.component.selectedRecords = [\n        await taskFor(this.fetchSelectedRecord).perform(this.args.component.selectedRecord),\n      ];\n    }\n  }\n\n  @restartableTask() private *fetchRecords(recordsContext: RecordsContext) {\n    yield this.recordsManager.getRecords.perform(recordsContext, true);\n  }\n\n  @restartableTask() private *fetchSelectedRecord(\n    selectedRecord: ClientRecordModel,\n  ): TaskGenerator<ClientRecordModel> {\n    return yield this.clientRecordFeature.fetchRecordAndRequiredBelongsTo(\n      this.args.component.belongsToFieldsTreeToFetch,\n      this.args.component.options.collection,\n      selectedRecord,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  data-test-workspace-component-search\\n  {{did-update this.handleUpdateSearchValue this.selectedRecordValue}}\\n  {{did-update\\n    this.handleComponentOptionsUpdate\\n    @component.options.segmentId\\n    @component.options.filter\\n    @component.options.displayFieldName\\n  }}\\n  data-dd-action-name=\\\"Click on search workspace component\\\"\\n  ...attributes\\n>\\n  <TypeaheadField\\n    @debounceTime={{or @debounceTime 300}}\\n    @disabled={{bool this.disabledReason}}\\n    @inputPlaceholder={{or\\n      this.disabledReason\\n      (or\\n        (and\\n          @component.options.placeholder\\n          (templating-injector\\n            @component.options.placeholder\\n            templatingHelper=@component.templatingHelper\\n            plainText=true\\n          )\\n        )\\n        @component.options.defaultPlaceholder\\n      )\\n    }}\\n    @value={{one-way this.selectedRecordValue}}\\n    @search={{this.search}}\\n    @searchValue={{this.searchValue}}\\n    @suggestions={{this.records}}\\n    @onClickSuggestion={{this.handleSelectRecord}}\\n    @onEmptySearch={{this.search}}\\n    @onFocusInput={{this.handleFocusInput}}\\n    @shouldPreventSearch={{this.shouldPreventSearch}}\\n    as |suggestion|\\n  >\\n    <div\\n      class=\\\"c-workspace-component-search__option\\\"\\n      data-test-workspace-component-search-option-name={{suggestion.id}}\\n    >\\n      {{get suggestion this.attributeNameWithRelationships}}\\n      {{#if (not-eq this.displayField.fieldName \\'id\\')}}\\n        <span class=\\\"c-workspace-component-search__option-primary-key\\\">\\n          {{suggestion.id}}\\n        </span>\\n      {{/if}}\\n    </div>\\n  </TypeaheadField>\\n</div>\\n', { moduleName: 'client/features/workspace/components/component-renderer/search/template.hbs' });\n","import type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport interface FeatureWorkspaceComponentRendererSectionArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Section>;\n  isGridStackItemLoaded: boolean;\n  onSelectComponent: (workspaceComponent: WorkspaceComponentModel) => void;\n  onDrag: () => void;\n  onDragStop: () => void;\n}\n\nexport default class FeatureWorkspaceComponentRendererSectionComponent extends Component<FeatureWorkspaceComponentRendererSectionArgs> {\n  @service('business/workspace-manager') workspaceManager: WorkspaceManagerService;\n\n  get gridWidth() {\n    return this.workspaceManager.getGridWidth(this.args.component.options);\n  }\n\n  get gridHeight() {\n    return this.workspaceManager.getGridHeight(this.args.component.options);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workspace-component-renderer-section\\\"\\n  data-test-feature-workspace-component-renderer-section\\n  ...attributes\\n>\\n  {{#if @isGridStackItemLoaded}}\\n    <Workspace::Grid\\n      @workspace={{@component.workspace}}\\n      @container={{@component.options}}\\n      @width={{this.gridWidth}}\\n      @height={{this.gridHeight}}\\n      @components={{@component.options.components}}\\n      @onSelectComponent={{@onSelectComponent}}\\n      @onDrag={{@onDrag}}\\n      @onDragStop={{@onDragStop}}\\n      @onQueryParametersChange={{@onQueryParametersChange}}\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workspace/components/component-renderer/section/template.hbs' });\n","import type CustomActionModel from 'client/data/models/custom-action';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type CollectionBusinessService from 'client/legacy/services/business/collection';\nimport type SmartCodeLoaderBusinessService from 'client/legacy/services/business/smart-code-loader';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport AbstractWorkspaceComponentRenderer from 'client/legacy/abstract-components/workspace-component-renderer';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\nexport interface FeatureWorkspaceComponentRendererSmartArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Smart>;\n  isGridStackItemLoaded: boolean;\n  onSelectComponent: (workspaceComponent: WorkspaceComponentModel) => void;\n  onDrag: () => void;\n  onDragStop: () => void;\n}\n\nexport default class FeatureWorkspaceComponentRendererSmartComponent extends AbstractWorkspaceComponentRenderer<FeatureWorkspaceComponentRendererSmartArgs> {\n  @service('business/smart-code-loader') smartCodeLoader: SmartCodeLoaderBusinessService;\n  @service eventBus: EventBusService;\n  @service errorHandler: ErrorHandlerService;\n  @service('business/collection') private businessCollectionService: CollectionBusinessService;\n\n  @tracked public smartComponentName: string;\n  @tracked public hasError = false;\n\n  constructor(owner: unknown, args: FeatureWorkspaceComponentRendererSmartArgs) {\n    super(owner, args);\n\n    this.eventBus.on(EventBusEventsEnum.WorkspaceRefresh, this.handleWorkspaceRefresh);\n    // eslint-disable-next-line no-void\n    void this.loadSmartComponent();\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n\n    this.eventBus.off(EventBusEventsEnum.WorkspaceRefresh, this.handleWorkspaceRefresh);\n  }\n\n  @action\n  async triggerSmartAction(\n    smartAction: CustomActionModel,\n    records: ClientRecordModel[],\n    values: Record<string, unknown>,\n    skipRefresh = false,\n  ) {\n    const recordsContext = this.businessCollectionService.createRecordState({\n      modelToFetch: await smartAction.collection,\n    });\n    return this.businessCollectionService.triggerSmartAction(\n      recordsContext,\n      smartAction,\n      records,\n      values,\n      skipRefresh,\n    );\n  }\n\n  @action\n  async loadSmartComponent(shouldForceReload = false) {\n    if (this.args.component.options.hasDirtyAttributes) return;\n\n    try {\n      this.hasError = false;\n      this.smartComponentName = await this.smartCodeLoader.loadCode(\n        this.args.component.options,\n        shouldForceReload,\n      );\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Could not load smart component');\n      this.hasError = true;\n    }\n  }\n\n  @action\n  private async handleWorkspaceRefresh() {\n    await this.loadSmartComponent(true);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workspace-component-renderer-smart\\\"\\n  data-test-feature-workspace-component-renderer-smart\\n  data-dd-action-name=\\\"Click on smart workspace component\\\"\\n  ...attributes\\n  {{did-update (fn this.loadSmartComponent true) @component.options.hasDirtyAttributes}}\\n>\\n  {{#if @component.options.hasDirtyAttributes}}\\n    <Workspace::ComponentEmptyState\\n      @component={{@component}}\\n      @text=\\\"Save this component to load the code from your agent.\\\"\\n      data-test-feature-workspace-component-renderer-smart-not-configured\\n    />\\n  {{else if this.smartComponentName}}\\n    {{#let (component this.smartComponentName) as |SmartComponent|}}\\n      <SmartComponent\\n        @component={{@component}}\\n        @triggerCustomAction={{this.triggerSmartAction}}\\n        data-test-feature-workspace-component-renderer-smart\\n      />\\n    {{/let}}\\n  {{else if this.hasError}}\\n    <Workspace::ComponentEmptyState\\n      @component={{@component}}\\n      @text=\\\"Could not create this component.\\\"\\n      data-test-feature-workspace-component-renderer-smart-error\\n    />\\n  {{else}}\\n    <div\\n      class=\\\"l-feature-workspace-component-renderer-smart-loader-container\\\"\\n      data-test-feature-workspace-component-renderer-smart-loader\\n    >\\n      <Shared::Feedback::BetaLoader />\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workspace/components/component-renderer/smart/template.hbs' });\n","import type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceTabFragment from 'client/data/models/workspace-tab';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { WORKSPACE_GRID_CELL_HEIGHT } from 'client/config/workspace-configuration';\n\nconst WORKSPACE_TABS_MAX_WIDTH = 150;\n\nexport interface FeatureWorkspaceComponentRendererTabsArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Tabs>;\n  isGridStackItemLoaded: boolean;\n  onSelectComponent: (workspaceComponent: WorkspaceComponentModel) => void;\n  onDrag: () => void;\n  onDragStop: () => void;\n}\n\nexport const WORKSPACE_TOTAL_ROW_TABS = Math.ceil(40 / WORKSPACE_GRID_CELL_HEIGHT);\n\nexport default class FeatureWorkspaceComponentRendererTabsComponent extends Component<FeatureWorkspaceComponentRendererTabsArgs> {\n  @service('business/workspace-manager') workspaceManager: WorkspaceManagerService;\n\n  get selectedTab() {\n    return (\n      this.args.component.options.selectedTab || this.args.component.options.tabsSorted.firstObject\n    );\n  }\n\n  get tabsWidth() {\n    // Remove the padding\n    return this.workspaceManager.getGridWidth(this.selectedTab);\n  }\n\n  get tabsHeight() {\n    // Remove the tabs height plus the padding\n    return this.workspaceManager.getGridHeight(this.selectedTab, WORKSPACE_TOTAL_ROW_TABS);\n  }\n\n  @action\n  handleUpdateSelectedTab() {\n    const { options } = this.args.component;\n\n    if (!options.tabs.includes(this.selectedTab)) {\n      this.args.component.options.selectedTab =\n        options.tabsSorted.objectAt(this.selectedTab.position) || options.tabsSorted.lastObject;\n    }\n  }\n\n  @action\n  handleDidInsert(element: HTMLElement) {\n    element.style.setProperty('--workspace-tabs-max-width', `${WORKSPACE_TABS_MAX_WIDTH}px`);\n    if (!this.args.component.options.selectedTab) {\n      this.args.component.options.selectedTab = this.args.component.options.tabsSorted.firstObject;\n    }\n  }\n\n  @action\n  handleClickTab(tab: WorkspaceTabFragment, event: Event) {\n    if (this.selectedTab !== tab) {\n      this.args.component.options.selectedTab = tab;\n      event.stopPropagation();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workspace-component-renderer-tabs\\\"\\n  data-test-feature-workspace-component-renderer-tabs\\n  {{did-insert this.handleDidInsert}}\\n  {{did-update this.handleUpdateSelectedTab @component.options.tabsSorted}}\\n  ...attributes\\n>\\n  <div class=\\\"l-feature-workspace-component-renderer-tabs-shadow-element\\\"></div>\\n  <nav\\n    class=\\\"l-feature-workspace-component-renderer-tabs-nav\\\"\\n    data-test-feature-workspace-component-renderer-tabs-nav\\n  >\\n    {{#each @component.options.tabsSorted as |tab|}}\\n      <div\\n        class={{get-classes-with-modifiers\\n          \\'c-feature-workspace-component-renderer-tabs__tab\\'\\n          selected=(eq tab this.selectedTab)\\n          first=tab.isFirst\\n          last=tab.isLast\\n          before-selected=(lt tab.position this.selectedTab.position)\\n          after-selected=(gt tab.position this.selectedTab.position)\\n        }}\\n        data-test-feature-workspace-component-renderer-tabs-tab={{tab.tabId}}\\n        data-test-feature-workspace-component-renderer-tabs-tab-selected={{eq tab this.selectedTab}}\\n        role=\\\"button\\\"\\n        {{on \\'click\\' (fn this.handleClickTab tab)}}\\n      >\\n        {{#let (concat \\'tab-name-\\' @component.id \\'-\\' tab.tabId) as |tabNameId|}}\\n          <span\\n            id={{tabNameId}}\\n            class=\\\"c-feature-workspace-component-renderer-tabs__tab-name\\\"\\n            data-test-feature-workspace-component-renderer-tabs-tab-name\\n          >\\n            {{tab.displayName}}\\n          </span>\\n\\n          {{#if (is-text-truncated (concat \\'#\\' tabNameId))}}\\n            <Shared::Feedback::BetaTooltip\\n              @targetId={{tabNameId}}\\n              @hideDelay={{250}}\\n              @side=\\\"bottom\\\"\\n            >\\n              {{tab.displayName}}\\n            </Shared::Feedback::BetaTooltip>\\n          {{/if}}\\n        {{/let}}\\n      </div>\\n    {{/each}}\\n  </nav>\\n\\n  <div class=\\\"l-feature-workspace-component-renderer-tabs-body\\\">\\n    {{#if @isGridStackItemLoaded}}\\n      <Workspace::Grid\\n        @workspace={{@component.workspace}}\\n        @container={{this.selectedTab}}\\n        @width={{this.tabsWidth}}\\n        @height={{this.tabsHeight}}\\n        @components={{this.selectedTab.components}}\\n        @onSelectComponent={{@onSelectComponent}}\\n        @onDrag={{@onDrag}}\\n        @onDragStop={{@onDragStop}}\\n        @onQueryParametersChange={{@onQueryParametersChange}}\\n      />\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/features/workspace/components/component-renderer/tabs/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers \\'c-feature-workspace-component-renderer\\' @component.type}}\\n  ...attributes\\n  data-test-feature-workspace-component-renderer\\n  {{did-update (optional @onQueryParametersChange) @component.options.queryParameters}}\\n>\\n  {{#if\\n    (or\\n      @component.options.hasCustomEmptyStateDisplay\\n      (and\\n        @component.isConfigured @component.shouldDisplay (not @component.shouldDisplayEmptyState)\\n      )\\n    )\\n  }}\\n    {{#let\\n      (component (concat \\'feature/workspace/component-renderer/\\' @component.type))\\n      as |WorkspaceComponentToDisplay|\\n    }}\\n      <WorkspaceComponentToDisplay\\n        @component={{@component}}\\n        @isBuilder={{@isBuilder}}\\n        @isGridStackItemLoaded={{@isGridStackItemLoaded}}\\n        @onSelectComponent={{@onSelectComponent}}\\n        @onDrag={{@onDrag}}\\n        @onDragStop={{@onDragStop}}\\n        @onQueryParametersChange={{@onQueryParametersChange}}\\n        class=\\\"c-feature-workspace-component-renderer__component-to-display\\n          {{if\\n            (and @isBuilder (not @component.isContainer))\\n            \\'c-feature-workspace-component-renderer__component-to-display--disable-events\\'\\n          }}\\\"\\n      />\\n    {{/let}}\\n  {{else}}\\n    <Workspace::ComponentEmptyState @component={{@component}} />\\n  {{/if}}\\n  {{#if @isBuilder}}\\n    <div\\n      type=\\\"button\\\"\\n      class={{get-classes-with-modifiers\\n        \\'c-feature-workspace-component-renderer__button-overlay\\'\\n        error=@component.hasTemplatingOrConfigurationError\\n        impacted=@component.isImpacted\\n        in-background=@component.isContainer\\n      }}\\n      data-test-feature-workspace-component-renderer-button-overlay\\n    >\\n    </div>\\n    {{#if @component.hasTemplatingOrConfigurationError}}\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName=\\\"warning\\\"\\n        @size=\\\"custom\\\"\\n        class=\\\"c-feature-workspace-component-renderer__button-overlay-error-icon\\n          {{if\\n            (or (eq @component.displaySettings.width 1) (eq @component.displaySettings.height 1))\\n            \\'c-feature-workspace-component-renderer__button-overlay-error-icon--small\\'\\n          }}\\n          \\\"\\n        data-test-feature-workspace-component-renderer-error-icon\\n      />\\n    {{/if}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workspace/components/component-renderer/template.hbs' });\n","import type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\n\nimport AbstractWorkspaceComponentRenderer from 'client/legacy/abstract-components/workspace-component-renderer';\n\ninterface FeatureWorkspaceComponentRendererTextComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Text>;\n}\n\nexport default class FeatureWorkspaceComponentRendererTextComponent extends AbstractWorkspaceComponentRenderer<FeatureWorkspaceComponentRendererTextComponentArgs> {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<p\\n  id={{this.containerElementId}}\\n  class=\\\"c-workspace-component-text\\\"\\n  {{did-insert this.applyOptions}}\\n  {{did-update\\n    this.applyOptions\\n    @component.options.color\\n    @component.options.fontSize\\n    @component.options.fontStyle\\n    @component.options.fontWeight\\n    @component.options.textAlign\\n  }}\\n  data-test-workspace-component-text\\n  data-dd-action-name=\\\"Click on text workspace component\\\"\\n  ...attributes\\n>\\n  {{~#if @component.isConfigured~}}\\n    {{templating-injector\\n      @component.options.displayedText\\n      templatingHelper=@component.templatingHelper\\n    }}\\n    {{~#if @component.options.tooltip~}}\\n      <Shared::Feedback::BetaTooltip @targetId={{this.containerElementId}}>\\n        {{templating-injector\\n          @component.options.tooltip\\n          templatingHelper=@component.templatingHelper\\n        }}\\n      </Shared::Feedback::BetaTooltip>\\n    {{~/if~}}\\n  {{~else~}}\\n    {{~\\'<empty>\\'~}}\\n  {{~/if~}}\\n</p>\\n', { moduleName: 'client/features/workspace/components/component-renderer/text/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workspace-component-renderer-toggle\\\"\\n  data-test-feature-workspace-component-renderer-toggle\\n  data-dd-action-name=\\\"Click on toggle workspace component\\\"\\n  ...attributes\\n>\\n  {{#let (generate-guid) as |toggleId|}}\\n    {{#if @component.options.shouldDisplayLabel}}\\n      <Shared::BetaLabel\\n        @label={{templating-injector\\n          @component.options.displayedLabel\\n          templatingHelper=@component.templatingHelper\\n        }}\\n        @for={{toggleId}}\\n        data-test-feature-workspace-component-renderer-toggle-label\\n      />\\n    {{/if}}\\n    <Shared::Form::Toggle\\n      @value={{one-way @component.options.isToggled}}\\n      @disabled={{@component.options.isToggleDisabled}}\\n      @onChange={{fn (mut @component.options.isToggled)}}\\n      @inputId={{toggleId}}\\n      class=\\\"c-feature-workspace-component-renderer-toggle__toggle\\\"\\n      data-test-feature-workspace-component-renderer-toggle-button\\n    />\\n  {{/let}}\\n</div>\\n', { moduleName: 'client/features/workspace/components/component-renderer/toggle/template.hbs' });\n","import type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type SegmentService from 'ember-cli-segment/services/segment';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport validateArguments from 'client/decorators/validate';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FeatureWorkspaceComponentRendererWorkflowComponentArgs {\n  component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Workflow>;\n  isBuilder: boolean;\n}\n\n@validateArguments\nexport default class FeatureWorkspaceComponentRendererWorkflowComponent extends Component<FeatureWorkspaceComponentRendererWorkflowComponentArgs> {\n  @service private lianaSession: LianaSession;\n  @service private segment: SegmentService;\n  @service('feature/workflow') private workflowFeature: WorkflowFeatureService;\n  @service('event-bus') private eventBus: EventBusService;\n  @service('business/workspace-manager') private workspaceManager: WorkspaceManagerService;\n\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n    isBuilder: PropTypes.bool.isRequired,\n  };\n\n  @tracked isDisabled = true;\n\n  get buttonType() {\n    return this.args.component.options.buttonTypeOrDefault;\n  }\n\n  get recordsContext() {\n    const { component } = this.args;\n\n    return component.options.componentToSelectRecordFrom?.options.recordsContext;\n  }\n\n  @action\n  async startWorkflow() {\n    if (this.args.isBuilder || !this.args.component.options.workflow) {\n      return;\n    }\n    const { component } = this.args;\n    this.segment.trackEvent('Workspace Button Clicked', {\n      projectId: this.lianaSession.currentProject.id,\n      workspaceId: component.workspace.id,\n      workflowId: component.options.workflowId,\n    });\n\n    const { options } = component;\n    const workflowRuns = await this.workflowFeature.getStartedWorkflowRunsForRecord(\n      options.sourceCollectionId,\n      options.componentToSelectRecordFrom.selectedRecord.id,\n    );\n\n    const currentWorkflowRun = workflowRuns.find((run) => run.workflowId === options.workflowId);\n\n    await this.workflowFeature.startWorkflow(\n      component.options.workflow,\n      component.options.componentToSelectRecordFrom.selectedRecord,\n      currentWorkflowRun,\n    );\n  }\n\n  @action\n  async computeIsDisabled() {\n    const { options } = this.args.component;\n\n    if (!options.workflow) {\n      this.isDisabled = true;\n      return;\n    }\n    if (this.args.isBuilder) {\n      this.isDisabled = false;\n      return;\n    }\n\n    const selectedRecord = options.componentToSelectRecordFrom?.selectedRecord;\n    this.isDisabled = !selectedRecord;\n  }\n\n  @action\n  async handleClosingWorkflow() {\n    // When workflow becomes inactive, check if record is out of segment\n    if (this.workflowFeature.isWorkflowActive) {\n      return;\n    }\n\n    const componentToSelectRecordFrom = this.args.component.options.componentToSelectRecordFrom;\n\n    if (!componentToSelectRecordFrom) {\n      return;\n    }\n\n    const hadRecordsOutOfSegment =\n      await this.workspaceManager.verifySelectedRecordsAreInRecordsContext(\n        componentToSelectRecordFrom.options.recordsContext,\n        componentToSelectRecordFrom,\n      );\n\n    if (hadRecordsOutOfSegment) {\n      this.eventBus.trigger(\n        EventBusEventsEnum.WorkspaceRecordsOutOfCollectionOrSegment,\n        componentToSelectRecordFrom,\n      );\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  @type={{this.buttonType}}\\n  class=\\\"l-feature-workspace-component-renderer-workflow__button\\\"\\n  @onClick={{this.startWorkflow}}\\n  @ellipseText={{true}}\\n  @text={{or\\n    (and\\n      @component.options.workflow\\n      @component.options.displayedText\\n      (templating-injector\\n        @component.options.displayedText templatingHelper=@component.templatingHelper\\n      )\\n    )\\n    (and @component.options.isConfigured @component.options.workflow.name)\\n    \\'<not configured>\\'\\n  }}\\n  disabled={{this.isDisabled}}\\n  data-test-workspace-component-workflow\\n  {{did-insert this.computeIsDisabled}}\\n  {{did-update\\n    this.computeIsDisabled\\n    @isBuilder\\n    @component.options\\n    @component.options.workflow\\n    @component.options.componentToSelectRecordFrom.selectedRecord\\n  }}\\n  {{did-update this.handleClosingWorkflow this.workflowFeature.isWorkflowActive}}\\n/>\\n', { moduleName: 'client/features/workspace/components/component-renderer/workflow/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type { SafeString } from '@ember/template/-private/handlebars';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type WorkspaceTabFragment from 'client/data/models/workspace-tab';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type WorkspaceFeatureState from 'client/features/workspace/state';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport { isNameValid } from 'client/data/models/workspace-component';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\ninterface ExtraActionInterface {\n  name?: string;\n  isDanger?: boolean;\n  tooltipMessage?: string | SafeString;\n  tooltipSide?: string;\n  onClick?: (() => void) | (() => Promise<void>);\n}\n\ninterface ConfigureComponentArgs {\n  component: WorkspaceComponentModel;\n}\n\nexport default class WorkspaceConfigureComponentComponent extends Component<ConfigureComponentArgs> {\n  @service private eventBus: EventBusService;\n  @service private router: RouterService;\n  @service('business/workspace-manager') private workspaceManager: WorkspaceManagerService;\n  @service('feature/workspace') private workspaceFeature: WorkspaceFeatureService;\n  @service('feature/workspace/state') public workspaceState: WorkspaceFeatureState;\n\n  @tracked isNameEditMode = false;\n  @tracked resolveConfirmChangeComponent: ((isConfirmed: boolean) => void) | null = null;\n  @tracked resolveConfirmDeleteComponent: ((isConfirmed: boolean) => void) | null = null;\n  @tracked containerToDelete: WorkspaceTabFragment | null = null;\n\n  constructor(owner: unknown, args: ConfigureComponentArgs) {\n    super(owner, args);\n    this.eventBus.on(\n      EventBusEventsEnum.WorkspaceHideConfirmationRightPanel,\n      this.handleHideConfirmationRightPanel,\n    );\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.eventBus.off(\n      EventBusEventsEnum.WorkspaceHideConfirmationRightPanel,\n      this.handleHideConfirmationRightPanel,\n    );\n  }\n\n  get isDisplayingConfirmationRightPanel(): boolean {\n    return (\n      this.workspaceState.isDisplayingDeletePanel\n      || this.workspaceState.isDisplayingBreakingChangePanel\n    );\n  }\n\n  get isNameInvalid() {\n    return !isNameValid(this.args.component.editedName);\n  }\n\n  get extraActions(): ExtraActionInterface[] {\n    const isFirefoxAndClipboardAccessDisabled =\n      navigator.userAgent.toLowerCase().includes('firefox') && !navigator?.clipboard?.readText;\n\n    const firefoxAllowCopyPasteMessage = `\n      <div>\n        <p>To enable copy-pasting components using keyboard shortcuts (⌘/Ctrl + C & ⌘/Ctrl + V)</p>\n        <p>on Firefox, you need to allow the browser to read into your clipboard (at your own risk):</p>\n        <p>- Enter <code>about:config</code> in the navigation bar</p>\n        <p>- Click on the \"Accept the risk and continue\" button</p>\n        <p>- Search <code>dom.events.testing.asyncClipboard</code> and set <code>true</code></p>\n        <p>- Search <code>dom.events.asyncClipboard.readText</code> and set <code>true</code></p>\n      </div>\n    `;\n    const copyPasteMessage = `\n        <div>You can also press:\n          <p>- ⌘/Ctrl + C to copy a component</p>\n          <p>- ⌘/Ctrl + V to paste a component</p>\n        </div>\n      `;\n    return [\n      {\n        name: 'Duplicate component',\n        tooltipMessage: htmlSafe(\n          isFirefoxAndClipboardAccessDisabled ? firefoxAllowCopyPasteMessage : copyPasteMessage,\n        ),\n        tooltipSide: 'top-end',\n        onClick: this.duplicateWorkspaceComponent,\n      },\n      { name: 'Delete component', onClick: this.confirmDeleteWorkspaceComponent, isDanger: true },\n    ];\n  }\n\n  private get redirectRoute() {\n    return this.args.component.workspace.isWorkspaceOnRecord\n      ? 'project.rendering.data.collection.list.view-edit.workspace'\n      : 'project.rendering.workspaces.view.builder';\n  }\n\n  @action\n  async duplicateWorkspaceComponent() {\n    await this.workspaceManager.duplicateComponent(\n      this.args.component,\n      this.args.component.workspace,\n    );\n  }\n\n  @action\n  async closeConfigurationPanel() {\n    try {\n      await this.router.replaceWith(this.redirectRoute);\n    } catch (error) {\n      console.debug(error);\n    }\n  }\n\n  @action\n  handleEnterTitleEditMode() {\n    this.isNameEditMode = true;\n  }\n\n  @action\n  handleQuitTitleEditMode() {\n    this.isNameEditMode = false;\n  }\n\n  @action\n  handleConfirmBreakingChange() {\n    this.workspaceFeature.setIsDisplayingBreakingChangePanel(true);\n    return new Promise((resolve) => {\n      this.resolveConfirmChangeComponent = resolve;\n    });\n  }\n\n  @action\n  async applyBreakingChange() {\n    this.resolveConfirmChangeComponent(true);\n    this.resolveConfirmChangeComponent = null;\n    this.workspaceFeature.setIsDisplayingBreakingChangePanel(false);\n  }\n\n  @action\n  handleShowConfirmDeleteRightPanel(containerToDelete: WorkspaceTabFragment | null = null) {\n    this.containerToDelete = containerToDelete;\n    this.workspaceFeature.setIsDisplayingDeletePanel(true);\n    return (\n      containerToDelete\n      && new Promise((resolve) => {\n        this.resolveConfirmDeleteComponent = resolve;\n      })\n    );\n  }\n\n  @action\n  handleHideConfirmationRightPanel() {\n    this.workspaceFeature.setIsDisplayingDeletePanel(false);\n    this.workspaceFeature.setIsDisplayingBreakingChangePanel(false);\n    this.resolveConfirmChangeComponent?.(false);\n    this.resolveConfirmChangeComponent = null;\n    this.resolveConfirmDeleteComponent?.(false);\n    this.resolveConfirmDeleteComponent = null;\n    this.containerToDelete = null;\n  }\n\n  @action\n  async deleteWorkspaceComponent() {\n    if (this.containerToDelete) {\n      const { resolveConfirmDeleteComponent } = this;\n      resolveConfirmDeleteComponent(true);\n      this.resolveConfirmChangeComponent = null;\n    } else {\n      const isDeleted = await this.workspaceManager.deleteComponent(this.args.component);\n      if (isDeleted) {\n        this.handleHideConfirmationRightPanel();\n        await this.router.replaceWith(this.redirectRoute);\n      }\n    }\n\n    this.handleHideConfirmationRightPanel();\n  }\n\n  @action\n  async confirmDeleteWorkspaceComponent() {\n    const componentsInsideContainer =\n      this.args.component.isContainer && 'components' in this.args.component.options\n        ? this.args.component.options.components\n        : [];\n    if (this.args.component.appliedOn?.length || componentsInsideContainer.length > 0) {\n      await this.handleShowConfirmDeleteRightPanel();\n      return;\n    }\n\n    const sure = window.confirm(\n      `Are you sure you want to remove the component \"${this.args.component.name}\"?`,\n    );\n    if (!sure) {\n      this.resolveConfirmDeleteComponent?.(false);\n      this.resolveConfirmDeleteComponent = null;\n      return;\n    }\n\n    await this.deleteWorkspaceComponent();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isDisplayingConfirmationRightPanel}}\\n  <Workspace::Panel\\n    @title={{@component.editedName}}\\n    @close={{this.closeConfigurationPanel}}\\n    class=\\\"js-workspace-grid-configuration-panel c-feature-workspace-configure-component\\\"\\n    data-test-workspace-panel-impacted-components-confirmation={{this.workspaceState.isDisplayingDeletePanel}}\\n  >\\n    <Workspace::Panel::ImpactedComponentsConfirmation\\n      @workspaceComponent={{@component}}\\n      @container={{this.containerToDelete}}\\n      @isDelete={{this.workspaceState.isDisplayingDeletePanel}}\\n      @isBreakingChange={{this.workspaceState.isDisplayingBreakingChangePanel}}\\n      @onCancel={{this.handleHideConfirmationRightPanel}}\\n      @onConfirm={{if\\n        this.workspaceState.isDisplayingDeletePanel\\n        this.deleteWorkspaceComponent\\n        this.applyBreakingChange\\n      }}\\n      @containerType={{if this.subTabId \\'TAB\\' \\'TABS_COMPONENT\\'}}\\n    />\\n  </Workspace::Panel>\\n{{else}}\\n  <Workspace::Panel\\n    @close={{this.closeConfigurationPanel}}\\n    @extraActions={{this.extraActions}}\\n    class=\\\"js-workspace-grid-configuration-panel c-feature-workspace-configure-component\\\"\\n    data-test-workspace-grid-configuration-panel\\n  >\\n    <:title>\\n      <div\\n        class=\\\"c-feature-workspace-configure-component__title-container\\n          {{if\\n            this.isNameEditMode\\n            \\'c-feature-workspace-configure-component__title-container--edit-mode\\'\\n          }}\\\"\\n        role=\\\"button\\\"\\n        {{on \\'click\\' this.handleEnterTitleEditMode}}\\n        data-test-workspace-configure-component-title-container\\n      >\\n        {{#if this.isNameEditMode}}\\n          <Shared::BetaInput\\n            @inputId=\\\"workspace-configure-component-edit-title\\\"\\n            @type=\\\"text\\\"\\n            @state={{if this.isNameInvalid \\'error\\' \\'info\\'}}\\n            @maxLength={{50}}\\n            @value={{@component.editedName}}\\n            @onEnter={{this.handleQuitTitleEditMode}}\\n            @iconName=\\\"edit\\\"\\n            @onClickIcon={{this.handleQuitTitleEditMode}}\\n            @iconClass=\\\"c-feature-workspace-configure-component__title-input-icon\\\"\\n            class=\\\"c-feature-workspace-configure-component__title-input\\\"\\n            data-test-workspace-configure-component-title-input\\n            {{autofocus nestedSelector=\\'#workspace-configure-component-edit-title\\'}}\\n            {{forest-on-click-outside this.handleQuitTitleEditMode eventType=\\'mousedown\\'}}\\n          />\\n        {{else}}\\n          <span\\n            class=\\\"c-feature-workspace-configure-component__title\\\"\\n            data-test-workspace-configure-component-title={{@component.editedName}}\\n          >\\n            {{@component.editedName}}\\n          </span>\\n          <Shared::Button::BetaButton\\n            @type=\\\"link-secondary-light\\\"\\n            @iconName=\\\"edit\\\"\\n            @action={{this.handleEnterTitleEditMode}}\\n            @noPadding={{true}}\\n            @size=\\\"small\\\"\\n            data-test-workspace-configure-component-edit-title\\n          />\\n        {{/if}}\\n      </div>\\n    </:title>\\n    <:default>\\n      {{#if this.isNameInvalid}}\\n        <span\\n          class=\\\"c-feature-workspace-configure-component__error\\\"\\n          data-test-workspace-configure-component-error\\n        >\\n          The name must be unique, can only contains letters, numbers, -, _ and cannot exceed 50\\n          characters\\n        </span>\\n      {{/if}}\\n      <Feature::Workspace::ComponentConfiguration\\n        @component={{@component}}\\n        @featureCallbackRoute=\\\"project.rendering.workspaces.view.builder.configure-component\\\"\\n        @onConfirmBreakingChange={{this.handleConfirmBreakingChange}}\\n        @onConfirmDelete={{this.handleShowConfirmDeleteRightPanel}}\\n        @componentName={{@component.editedName}}\\n      />\\n    </:default>\\n  </Workspace::Panel>\\n{{/if}}\\n', { moduleName: 'client/features/workspace/components/configure-component/template.hbs' });\n","import type CollectionModel from 'client/data/models/collection';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\ninterface PerRecordArgs {\n  collection: CollectionModel;\n}\n\nexport default class WorkspacePerRecordComponent extends Component<PerRecordArgs> {\n  @service('feature/workspace') private workspaceFeature: WorkspaceFeatureService;\n  @service private eventBus: EventBusService;\n\n  constructor(owner: unknown, args: PerRecordArgs) {\n    super(owner, args);\n\n    this.eventBus.on(\n      EventBusEventsEnum.RefreshWorkspaceQueryParameters,\n      this.handleQueryParametersChange,\n    );\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.eventBus.off(\n      EventBusEventsEnum.RefreshWorkspaceQueryParameters,\n      this.handleQueryParametersChange,\n    );\n  }\n\n  get workspace() {\n    return this.workspaceFeature.getWorkspaceForCollection(this.args.collection);\n  }\n\n  @action\n  handleQueryParametersChange() {\n    this.workspaceFeature.updateQueryParameters(this.workspace);\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface PerRecordEmptyStateArgs {\n  collection: CollectionModel;\n}\n\nexport default class WorkspacePerRecordEmptyStateComponent extends Component<PerRecordEmptyStateArgs> {\n  @service('feature/workspace') private workspaceFeature: WorkspaceFeatureService;\n  @service('current-user') private currentUserService: CurrentUserService;\n\n  get canCreateWorkspaceFromSummary() {\n    return this.args.collection.viewEdit.summaryView?.sections.length > 0;\n  }\n\n  @action\n  handleCreateWorkspace() {\n    this.currentUserService.editMode = true;\n    return this.workspaceFeature.createWorkspace(\n      `${this.args.collection.singularizedDisplayName} Workspace`,\n      '🧩',\n      this.args.collection,\n    );\n  }\n\n  @action\n  handleCreateWorkspaceFromSummary() {\n    this.currentUserService.editMode = true;\n    return this.workspaceFeature.createWorkspaceFromSummary(this.args.collection);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workspace-per-record-empty-state\\\"\\n  data-test-feature-workspace-per-record-empty-state\\n  ...attributes\\n>\\n  <img\\n    class=\\\"c-feature-workspace-per-record-empty-state__image\\\"\\n    src={{if\\n      this.isDarkMode\\n      \\'/img/collaboration/inbox/empty-box-dark.svg\\'\\n      \\'/img/collaboration/inbox/empty-box-light.svg\\'\\n    }}\\n    alt=\\\"No workspace exists for this collection.\\\"\\n    data-test-feature-workspace-per-record-empty-state-image\\n  />\\n  <Shared::Layout::FullPageTitleDescription\\n    @title=\\\"No workspace exists for this collection.\\\"\\n    class=\\\"c-feature-workspace-per-record-empty-state__page\\\"\\n    data-test-feature-workspace-per-record-empty-state-title\\n  />\\n\\n  {{#if (current-user \\'can\\' \\'updateLayout\\')}}\\n    {{#if this.canCreateWorkspaceFromSummary}}\\n      <Shared::Button\\n        @type=\\\"editor\\\"\\n        @text=\\\"Create from Summary View\\\"\\n        @onClick={{this.handleCreateWorkspaceFromSummary}}\\n        @iconName=\\\"add\\\"\\n        @size=\\\"large\\\"\\n        class=\\\"c-feature-workspace-per-record-empty-state__create\\\"\\n        data-test-feature-workspace-per-record-empty-state-create-from-summary\\n      />\\n    {{/if}}\\n    <Shared::Button\\n      @type=\\\"editor\\\"\\n      @text={{if this.canCreateWorkspaceFromSummary \\'Create from scratch\\' \\'Create workspace\\'}}\\n      @onClick={{this.handleCreateWorkspace}}\\n      @iconName=\\\"add\\\"\\n      @size=\\\"large\\\"\\n      class=\\\"c-feature-workspace-per-record-empty-state__create\\\"\\n      data-test-feature-workspace-per-record-empty-state-create\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workspace/components/per-record/empty-state/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-feature-workspace-per-record js-workspace-per-record\\\"\\n  data-test-feature-workspace-per-record\\n  ...attributes\\n>\\n  {{#if this.workspace}}\\n    <Shared::PortalFor @name=\\\"workspace-header-right-buttons\\\" />\\n    <Workspace\\n      @workspace={{this.workspace}}\\n      @isFullScreen={{true}}\\n      @onQueryParametersChange={{this.handleQueryParametersChange}}\\n    >\\n      {{yield}}\\n    </Workspace>\\n  {{else}}\\n    <Feature::Workspace::PerRecord::EmptyState @collection={{@collection}} />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/features/workspace/components/per-record/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport WorkspaceModel from 'client/data/models/workspace';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface WorkspaceSideMenuItemArgs {\n  currentWorkspaceId?: string;\n  groupName?: string;\n  isEditable?: boolean;\n  onItemClick?: () => void;\n  item: WorkspaceModel;\n}\n\n@validateArguments\nexport default class WorkspaceSideMenuItemComponent extends Component<WorkspaceSideMenuItemArgs> {\n  static propTypes = {\n    groupName: PropTypes.string,\n    currentWorkspaceId: PropTypes.string,\n    item: PropTypes.instanceOf(WorkspaceModel).isRequired,\n    isEditable: PropTypes.bool,\n    onItemClick: PropTypes.func,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::BetaSideMenu::Item\\n  @isDraggable={{default-to @isDraggable true}}\\n  @item={{@item}}\\n  @name={{@item.name}}\\n  @icon={{@item.iconOrDefault}}\\n  @route=\\\"project.rendering.workspaces.view\\\"\\n  @routeParameters={{@item.id}}\\n  @isActive={{eq @item.id @currentWorkspaceId}}\\n  @isEditable={{@isEditable}}\\n  @isVisible={{@isVisible}}\\n  @onClick={{@onItemClick}}\\n  @onClickVisibility={{@onClickVisibility}}\\n  @onClickSettings={{action-link-to \\'project.rendering.workspaces.view.settings\\' @item.id}}\\n  data-id={{@item.id}}\\n  data-test-feature-workspace-side-menu-item\\n  ...attributes\\n/>\\n', { moduleName: 'client/features/workspace/components/side-menu/item/template.hbs' });\n","/* eslint-disable max-classes-per-file */\nimport type WorkspaceModel from 'client/data/models/workspace';\n\nimport { WrappedError } from 'client/utils/errors';\n\nexport class WorkspaceBuildContextError extends WrappedError {\n  constructor(originalError: Error) {\n    super(originalError, 'Workspace build context error');\n    this.name = 'WorkspaceBuildContextError';\n  }\n}\n\nexport class UnknownWorkspaceError extends WrappedError {\n  workspaceId: string;\n  constructor(workspace: WorkspaceModel, originalError: Error, message?: string) {\n    super(originalError, message || originalError?.message);\n    this.name = 'UnknownWorkspaceError';\n    this.workspaceId = workspace.id;\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type CollectionModel from 'client/data/models/collection';\nimport type InboxModel from 'client/data/models/inbox';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type CollectionFeatureService from 'client/features/collection/services/feature';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type WorkspaceManagerInternalBusinessService from 'client/features/workspace/services/internal-business/manager';\nimport type WorkspaceStoreInternalBusinessService from 'client/features/workspace/services/internal-business/store';\nimport type WorkspaceSummaryConverterInternalBusinessService from 'client/features/workspace/services/internal-business/summary-converter';\nimport type WorkspaceFeatureState from 'client/features/workspace/state';\nimport type BusinessCollectionService from 'client/legacy/services/business/collection';\nimport type WorkspaceManagerBusinessService from 'client/legacy/services/business/workspace-manager';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type { ColorOption } from 'client/shared/components/beta-select-color/component';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type NestedCollection from 'client/utils/nested/collection';\nimport type { OperatorValue } from 'client/utils/operators';\nimport type { CurrentRecordSource } from 'client/utils/workspace/helper';\nimport type { AbilitiesService } from 'ember-can';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\n\nimport { FolderTypeEnum } from 'client/data/models/folder-child';\nimport WorkspaceComponentModel, {\n  WorkspaceComponentTypeEnum,\n} from 'client/data/models/workspace-component';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { WorkspaceBuildContextError } from 'client/features/workspace/errors';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport { ButtonTypeEnum } from 'client/utils/color-utils';\nimport { CommonOperatorDisplayNameEnum } from 'client/utils/operators/types';\nimport { updateQueryParameters } from 'client/utils/url-utils';\n\nexport default class WorkspaceFeatureService extends Service {\n  @service private abilities: AbilitiesService;\n  @service private errorHandler: ErrorHandlerService;\n  @service private router: RouterService;\n  @service private segmentTracker: SegmentTrackerService;\n  @service private eventBus: EventBusService;\n  @service('feature/notification') private notificationService: NotificationFeatureService;\n\n  @service('feature/workspace/internal-business/store')\n  private workspaceStore: WorkspaceStoreInternalBusinessService;\n\n  @service('feature/workspace/internal-business/manager')\n  private workspaceManager: WorkspaceManagerInternalBusinessService;\n\n  @service('feature/workspace/internal-business/summary-converter')\n  private summaryConverter: WorkspaceSummaryConverterInternalBusinessService;\n\n  @service('feature/workspace/state') private workspaceState: WorkspaceFeatureState;\n  @service('feature/folder') private folderFeature: FolderFeatureService;\n  // FIXME; Migrate this service to the new architecture\n  @service('business/workspace-manager')\n  private legacyWorkspaceManager: WorkspaceManagerBusinessService;\n\n  @service('business/collection') private businessCollectionService: BusinessCollectionService;\n  @service('feature/collection') private collectionFeatureService: CollectionFeatureService;\n  @service('local-storage') private localStorageService: LocalStorageService;\n\n  @action\n  public startResizingOrDragging(event: Event) {\n    this.workspaceState.isResizingOrDragging = true;\n    this.workspaceState.draggedComponent = event.target as HTMLElement;\n  }\n\n  @action\n  public stopResizingOrDragging() {\n    this.workspaceState.isResizingOrDragging = false;\n    this.workspaceState.draggedComponent = null;\n  }\n\n  public async createWorkspace(name: string, icon?: string, collection?: CollectionModel) {\n    let workspace: WorkspaceModel = null;\n    try {\n      workspace = await this.workspaceStore.createWorkspace(name, icon, collection);\n\n      if (!collection) {\n        await this.folderFeature.addEntityToFolder(workspace.id, FolderTypeEnum.Workspace);\n      } else {\n        this.eventBus.trigger(EventBusEventsEnum.WorkspaceOnRecordCreated);\n      }\n\n      this.notificationService.createToastr(\n        ToastrTypeEnum.Success,\n        `Workspace \"${name}\" successfully created.`,\n      );\n      this.segmentTracker.trackWorkspaceCreated(workspace.id);\n      if (!collection) {\n        await this.router.transitionTo('project.rendering.workspaces.view.builder', workspace.id);\n      }\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Workspace creation failed');\n    }\n    return workspace;\n  }\n\n  public getWorkspaceForCollection(collection: CollectionModel) {\n    return this.workspaceStore.getWorkspaceForCollection(collection);\n  }\n\n  public isOnWorkspace(workspaceId) {\n    return this.workspaceState.currentWorkspaceId === workspaceId;\n  }\n\n  public getIsOnWorkspaceRoute() {\n    const { currentRoute } = this.router;\n    return (\n      currentRoute?.name === 'project.rendering.workspaces.view.index'\n      || currentRoute?.name.includes('project.rendering.workspaces.view.builder')\n    );\n  }\n\n  public shouldDisplayInboxNotificationBarForWorkspace(inboxId: string) {\n    if (!this.getIsOnWorkspaceRoute()) {\n      return true;\n    }\n\n    return !this.workspaceManager.getCurrentWorkspaceInboxComponent(inboxId);\n  }\n\n  public setCurrentWorkspaceId(workspaceId: string) {\n    this.workspaceState.currentWorkspaceId = workspaceId;\n  }\n\n  public buildRecordsContextForTemplatedAction(\n    component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Action>,\n  ) {\n    const { options } = component;\n\n    const record = options.templatingHelper.getVariableValue(\n      options.templatedBelongsToPathWithoutBrackets,\n    ) as ClientRecordModel;\n\n    const filter = record\n      ? this.collectionFeatureService.createFilter(record?.collection, {\n          conditions: [\n            {\n              operator: CommonOperatorDisplayNameEnum.Is,\n              value: record[record.collection.primaryField.attributeName] as OperatorValue,\n              fieldName: record.collection.primaryKey,\n            },\n          ],\n        })\n      : null;\n\n    const recordContext = this.businessCollectionService.createRecordState({\n      selectedRecords: record ? [record] : [],\n      modelToFetch: options.templatedBelongsToCollection,\n      recordsPerPage: 1,\n      filter: filter,\n      isKeepingSelectedRecordsOnRefresh: true,\n    });\n\n    return recordContext;\n  }\n\n  public buildRecordsContextForWorkspaceComponentInbox(\n    inboxComponent: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Inbox>,\n    inbox: InboxModel,\n  ) {\n    return this.workspaceManager.buildRecordsContextForWorkspaceComponentInbox(\n      inboxComponent,\n      inbox,\n    );\n  }\n\n  public async buildAllContextFromQueryParameters(\n    workspace: WorkspaceModel,\n    queryParams: Record<string, string>,\n  ) {\n    try {\n      await this.legacyWorkspaceManager.buildAllContextFromQueryParameters(workspace, queryParams);\n    } catch (error) {\n      this.errorHandler.handleError(\n        new WorkspaceBuildContextError(error as Error),\n        'Error while building your workspace context',\n      );\n    }\n  }\n\n  public saveInboxComponentSelectedInboxId(\n    inboxComponent: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Inbox>,\n    inboxId: string,\n  ) {\n    this.workspaceStore.saveInboxComponentSelectedInboxId(inboxComponent, inboxId);\n  }\n\n  public getInboxComponentSelectedInboxId(\n    inboxComponent: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Inbox>,\n  ) {\n    return this.workspaceStore.getInboxComponentSelectedInboxId(inboxComponent);\n  }\n\n  public getAvailableComponentsToSelectRecordFrom(\n    destinationComponent: WorkspaceComponentModel,\n    collection: CollectionModel,\n  ) {\n    return destinationComponent.componentsWithSelectedRecordContext.filter((component) => {\n      return (\n        component.options\n        && 'filteredCollection' in component.options\n        && component.options?.filteredCollection === collection\n      );\n    });\n  }\n\n  public updateQueryParameters(workspace: WorkspaceModel) {\n    updateQueryParameters(this.workspaceManager.getQueryParametersForWorkspace(workspace));\n  }\n\n  public get colorOptions(): ColorOption[] {\n    return [\n      { text: 'info', color: ButtonTypeEnum.Info },\n      { text: 'success', color: ButtonTypeEnum.Success },\n      { text: 'warning', color: ButtonTypeEnum.Warning },\n      { text: 'danger', color: ButtonTypeEnum.Danger },\n      { text: 'neutral', color: ButtonTypeEnum.Neutral },\n    ];\n  }\n\n  public setIsDisplayingDeletePanel(value: boolean) {\n    this.workspaceState.isDisplayingDeletePanel = value;\n  }\n\n  public setIsDisplayingBreakingChangePanel(value: boolean) {\n    this.workspaceState.isDisplayingBreakingChangePanel = value;\n  }\n\n  public getFilteredCollectionForComponent(\n    component:\n      | WorkspaceComponentModel<\n          | WorkspaceComponentTypeEnum.Field\n          | WorkspaceComponentTypeEnum.Collection\n          | WorkspaceComponentTypeEnum.Search\n          | WorkspaceComponentTypeEnum.Inbox\n        >\n      | CurrentRecordSource\n      | null,\n  ): CollectionModel | NestedCollection | null {\n    if (!component) {\n      return null;\n    }\n    if (\n      !(component instanceof WorkspaceComponentModel)\n      || this.hasDirectFilteredCollection(component)\n    ) {\n      return component.options.filteredCollection;\n    }\n    return (\n      (component as WorkspaceComponentModel<WorkspaceComponentTypeEnum.Field>).options.source\n        ?.options.filteredCollection || null\n    );\n  }\n\n  private hasDirectFilteredCollection(\n    component: WorkspaceComponentModel<WorkspaceComponentTypeEnum>,\n  ): component is WorkspaceComponentModel<\n    | WorkspaceComponentTypeEnum.Search\n    | WorkspaceComponentTypeEnum.Collection\n    | WorkspaceComponentTypeEnum.Inbox\n  > {\n    return (\n      component.type === WorkspaceComponentTypeEnum.Search\n      || component.type === WorkspaceComponentTypeEnum.Collection\n      || component.type === WorkspaceComponentTypeEnum.Inbox\n    );\n  }\n\n  public async createWorkspaceFromSummary(\n    collection: CollectionModel,\n    workspace?: WorkspaceModel,\n  ): Promise<WorkspaceModel> {\n    const createdWorkspace = await this.summaryConverter.createWorkspaceFromSummary(\n      collection,\n      workspace,\n    );\n\n    if (\n      this.router.currentRouteName\n      === 'project.rendering.data.collection.list.view-edit.workspace.index'\n    ) {\n      this.eventBus.trigger(EventBusEventsEnum.WorkspaceOnRecordCreated);\n    } else {\n      await this.router.transitionTo('project.rendering.data.collection.list.view-edit.workspace');\n    }\n\n    return createdWorkspace;\n  }\n\n  public getIsWorkspaceOnRecordFeatureActivated() {\n    return this.abilities.can('access workspaceOnRecord');\n  }\n\n  public saveZoomScale(workspaceId: string, scale: number) {\n    this.localStorageService.setItem(this.getZoomKey(workspaceId), scale.toString());\n  }\n\n  public getZoomScale(workspaceId: string): number {\n    const scale = this.localStorageService.getItem(this.getZoomKey(workspaceId));\n    return scale ? parseFloat(scale) : 1;\n  }\n\n  private getZoomKey(workspaceId: string) {\n    return `workspace-${workspaceId}-zoom-scale`;\n  }\n}\n","import type InboxModel from 'client/data/models/inbox';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type WorkspaceStoreInternalBusinessService from 'client/features/workspace/services/internal-business/store';\nimport type WorkspaceFeatureState from 'client/features/workspace/state';\nimport type BusinessCollectionService from 'client/legacy/services/business/collection';\n\nimport Service, { service } from '@ember/service';\n\nimport { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\n\nexport default class WorkspaceManagerInternalBusinessService extends Service {\n  @service('feature/workspace/internal-business/store')\n  private workspaceStore: WorkspaceStoreInternalBusinessService;\n\n  @service('feature/workspace/state') private workspaceState: WorkspaceFeatureState;\n  @service('business/collection') private businessCollectionService: BusinessCollectionService;\n\n  public getCurrentWorkspaceInboxComponent(inboxId: string) {\n    if (!this.workspaceState.currentWorkspaceId) {\n      return null;\n    }\n\n    const currentWorkspace = this.workspaceStore.getWorkspaceById(\n      this.workspaceState.currentWorkspaceId,\n    );\n\n    return currentWorkspace?.components.find(\n      (component) =>\n        WorkspaceManagerInternalBusinessService.checkComponentType(\n          component,\n          WorkspaceComponentTypeEnum.Inbox,\n        ) && component.options.inboxIds.includes(inboxId),\n    );\n  }\n\n  public buildRecordsContextForWorkspaceComponentInbox(\n    component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Inbox>,\n    inbox: InboxModel,\n  ) {\n    if (!component.selectedRecord) {\n      return null;\n    }\n\n    return this.businessCollectionService.createRecordState({\n      selectedRecords: component.selectedRecords,\n      modelToFetch: inbox.segment || inbox.collection,\n      recordsPerPage: 1,\n      filter: this.workspaceStore.createFilterForInbox(component, inbox),\n      isKeepingSelectedRecordsOnRefresh: true,\n    });\n  }\n\n  public getQueryParametersForWorkspace(workspace: WorkspaceModel) {\n    const fullQueryParameters: Record<string, string> = {};\n    workspace.components.forEach((component) => {\n      const { queryParameters } = component.options;\n      if (queryParameters) {\n        Object.entries(queryParameters).forEach(([key, value]) => {\n          fullQueryParameters[`${component.name}.${key}`] = JSON.stringify(value);\n        });\n      }\n    });\n    return fullQueryParameters;\n  }\n\n  static checkComponentType<T extends WorkspaceComponentTypeEnum>(\n    component: WorkspaceComponentModel,\n    type: T,\n  ): component is WorkspaceComponentModel<T> {\n    return component.type === type;\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type InboxModel from 'client/data/models/inbox';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport { OPERATOR_IS } from 'client/utils/operators';\n\nexport default class WorkspaceStoreInternalBusinessService extends Service {\n  @service private lianaSession: LianaSessionService;\n  @service private store: StoreService;\n  @service('local-storage') private localStorage: LocalStorageService;\n\n  public async createWorkspace(name: string, icon: string, collection?: CollectionModel) {\n    const extraAttributes: { collectionId?: string; id?: string } = {};\n    if (collection) {\n      extraAttributes.collectionId = collection.shareableId;\n      extraAttributes.id = extraAttributes.collectionId;\n    }\n    const workspace = this.store.createRecord('workspace', {\n      icon,\n      name,\n      position: this.getNewWorkspacePosition(),\n      rendering: this.lianaSession.rendering,\n      ...extraAttributes,\n    });\n\n    await workspace.save();\n\n    return workspace;\n  }\n\n  public getWorkspaceById(id: string) {\n    return this.store.peekRecord('workspace', id);\n  }\n\n  public getWorkspaceForCollection(collection: CollectionModel) {\n    return this.store.peekAll('workspace').findBy('collectionId', collection?.shareableId);\n  }\n\n  private getNewWorkspacePosition() {\n    // FIXME: calculate this from folders\n    return this.lianaSession.rendering.workspaces.filter((workspace) => !workspace.isNew).length;\n  }\n\n  public createFilterForInbox(\n    component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Inbox>,\n    inbox: InboxModel,\n  ) {\n    return this.store.createRecord('filter', {\n      filteredCollection: inbox.collection,\n      conditions: [\n        {\n          fieldName: inbox.collection.primaryKey,\n          operator: OPERATOR_IS.displayName,\n          value: component.selectedRecord.id,\n        },\n      ],\n    });\n  }\n\n  public saveInboxComponentSelectedInboxId(\n    inboxComponent: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Inbox>,\n    inboxId: string,\n  ) {\n    const key = this.getInboxComponentKey(inboxComponent);\n    this.localStorage.setItem(key, inboxId);\n  }\n\n  public getInboxComponentSelectedInboxId(\n    inboxComponent: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Inbox>,\n  ) {\n    const key = this.getInboxComponentKey(inboxComponent);\n    return this.localStorage.getItem(key);\n  }\n\n  private getInboxComponentKey(\n    inboxComponent: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Inbox>,\n  ) {\n    return `rendering_${inboxComponent.workspace.rendering.id}-workspace_${inboxComponent.workspace.id}-component_${inboxComponent.id}-selectedInboxId`;\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type { DisplaySettingsAttributes } from 'client/data/models/display-settings';\nimport type SummaryViewFragment from 'client/data/models/summary-view';\nimport type SummaryViewItemFragment from 'client/data/models/summary-view-item';\nimport type SummaryViewSectionParametersFragment from 'client/data/models/summary-view-section-parameters';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport workspaceComponentConfiguration from 'client/config/workspace-component-configuration';\nimport {\n  WORKSPACE_GRID_CELL_HEIGHT,\n  WORKSPACE_GRID_CELL_WIDTH,\n} from 'client/config/workspace-configuration';\nimport { SummaryViewItemTypeEnum } from 'client/data/models/summary-view-item';\nimport WorkspaceComponentModel, {\n  WorkspaceComponentTypeEnum,\n} from 'client/data/models/workspace-component';\nimport { WorkspaceActionTypeEnum } from 'client/data/models/workspace-component-options-action';\nimport { WorkspaceOnRowClickEnum } from 'client/data/models/workspace-component-options-collection';\nimport { WorkspaceFontWeightEnum } from 'client/data/models/workspace-component-options-text';\nimport {\n  WORKSPACE_TOTAL_COLUMN_OF_PADDING_AND_MARGIN,\n  WORKSPACE_TOTAL_ROW_OF_PADDING_AND_MARGIN,\n} from 'client/legacy/services/business/workspace-manager';\n\nconst summaryViewColumnWidth = 5;\nconst summaryViewCellHeight = 80;\nconst WORKSPACE_FROM_SUMMARY_WIDTH = 1200;\n\nexport default class WorkspaceSummaryConverterInternalBusinessService extends Service {\n  @service private lianaSession: LianaSessionService;\n  @service private store: StoreService;\n\n  public async createWorkspaceFromSummary(\n    collection: CollectionModel,\n    existingWorkspace?: WorkspaceModel,\n  ): Promise<WorkspaceModel> {\n    const workspace =\n      existingWorkspace\n      || this.store.createRecord('workspace', {\n        id: collection.shareableId,\n        collectionId: collection.shareableId,\n        name: `${collection.name} Summary`,\n        icon: collection.icon,\n        rendering: this.lianaSession.rendering,\n        position: 0,\n      });\n\n    if (existingWorkspace) {\n      this.deleteWorkspaceComponentsFromSummary(workspace);\n    }\n\n    this.convertSummaryToComponent(workspace, collection.viewEdit.summaryView);\n\n    if (existingWorkspace) {\n      await this.store.layoutBatchUpdate('workspace-component', [\n        ...workspace.components.toArray(),\n      ]);\n    } else {\n      await workspace.save();\n    }\n\n    return workspace;\n  }\n\n  private convertSummaryToComponent(\n    workspace: WorkspaceModel,\n    summary: SummaryViewFragment,\n  ): WorkspaceComponentModel[] {\n    return summary.sections.map((section) => {\n      const displaySettings = this.convertSummaryPositionToComponentPosition(\n        summary,\n        section.parameters,\n      );\n      const innerDisplaySettings = {\n        x: 0,\n        y: 0,\n        width: displaySettings.width - WORKSPACE_TOTAL_COLUMN_OF_PADDING_AND_MARGIN,\n        height: displaySettings.height - WORKSPACE_TOTAL_ROW_OF_PADDING_AND_MARGIN,\n      };\n      // Stack rows with their natural height instead of dividing the section equally,\n      // otherwise small items (action/workflow) leave huge vertical gaps\n      const titleHeight = 2;\n      let cumulativeY = titleHeight;\n      const innerComponents = section.children.map((child) => {\n        const rowHeight = this.getItemNaturalHeight(child);\n        const rowDisplaySettings = {\n          x: 0,\n          y: cumulativeY,\n          width: innerDisplaySettings.width,\n          height: rowHeight,\n        };\n        cumulativeY += rowHeight;\n        if (child.type === SummaryViewItemTypeEnum.HorizontalList) {\n          return child.children.map(\n            (grandchild, gIndex) =>\n              this.convertSummaryItemToComponent(workspace, rowDisplaySettings, grandchild, {\n                parentChildLength: child.children.length,\n                itemIndex: gIndex,\n              }) as WorkspaceComponentModel,\n          );\n        }\n        return this.convertSummaryItemToComponent(workspace, rowDisplaySettings, child, {\n          parentChildLength: 1,\n          itemIndex: 0,\n        });\n      });\n      if (\n        innerComponents.length === 1\n        && innerComponents[0] instanceof WorkspaceComponentModel\n        && innerComponents[0].type === WorkspaceComponentTypeEnum.Collection\n      ) {\n        const collection = innerComponents[0];\n        collection.displaySettings.x = displaySettings.x;\n        collection.displaySettings.y = displaySettings.y;\n        collection.displaySettings.width = displaySettings.width;\n        collection.displaySettings.height = displaySettings.height;\n        return collection;\n      }\n      const titleComponent = this.store.createRecord('workspace-component', {\n        workspace,\n        name: this.generateNameForComponent(workspace, `Title-${section.title}`),\n        type: WorkspaceComponentTypeEnum.Text,\n        displaySettings: {\n          x: 0,\n          y: 0,\n          width: innerDisplaySettings.width,\n          height: 2,\n        },\n        options: {\n          displayedText: section.title,\n          fontWeight: WorkspaceFontWeightEnum.Bold,\n        },\n      });\n      innerComponents.push(titleComponent);\n      return this.store.createRecord('workspace-component', {\n        workspace,\n        name: this.generateNameForComponent(workspace, section.title),\n        type: WorkspaceComponentTypeEnum.Section,\n        displaySettings,\n        options: {\n          componentIds: innerComponents.flat().map((component) => component.id),\n        },\n      });\n    });\n  }\n\n  // Returns the natural row height for an item, used to stack section rows cumulatively\n  private getItemNaturalHeight(item: SummaryViewItemFragment): number {\n    switch (item.type) {\n      case SummaryViewItemTypeEnum.Field:\n        return workspaceComponentConfiguration.field.defaultHeight;\n      case SummaryViewItemTypeEnum.SmartActionButton:\n        return workspaceComponentConfiguration.action.defaultHeight;\n      case SummaryViewItemTypeEnum.WorkflowButton:\n        return workspaceComponentConfiguration.workflow.defaultHeight;\n      case SummaryViewItemTypeEnum.HasMany:\n      case SummaryViewItemTypeEnum.HasManyEmbedded:\n        return workspaceComponentConfiguration.collection.defaultHeight;\n      case SummaryViewItemTypeEnum.HorizontalList:\n        return Math.max(1, ...item.children.map((child) => this.getItemNaturalHeight(child)));\n      default:\n        return 2;\n    }\n  }\n\n  private generateNameForComponent(workspace: WorkspaceModel, itemName: string): string {\n    const existingNames = workspace.components.map((component) => component.name);\n    let sanitized = (itemName || '').replace(/[^a-zA-Z0-9-_]+/g, '-');\n\n    // Strip leading dashes so the name doesn't start with a separator\n    while (sanitized.startsWith('-')) sanitized = sanitized.slice(1);\n    // Strip trailing dashes so the name doesn't end with a separator\n    while (sanitized.endsWith('-')) sanitized = sanitized.slice(0, -1);\n\n    const baseName = `${(sanitized || 'item').slice(0, 41)}Component`;\n    if (!existingNames.includes(baseName)) return baseName;\n\n    const suffix = String(existingNames.length);\n    return `${baseName.slice(0, 50 - suffix.length)}${suffix}`;\n  }\n\n  private convertSummaryPositionToComponentPosition(\n    summary: SummaryViewFragment,\n    parameters: SummaryViewSectionParametersFragment,\n  ) {\n    const minPosY = summary.sections.reduce(\n      (min, section) => Math.min(min, section.parameters.posY),\n      parameters.posY,\n    );\n\n    return this.store.createRecord('display-settings', {\n      x: Math.floor(\n        ((parameters.posX / summaryViewColumnWidth) * WORKSPACE_FROM_SUMMARY_WIDTH)\n          / WORKSPACE_GRID_CELL_WIDTH,\n      ),\n      y: Math.floor(\n        ((parameters.posY - minPosY) * summaryViewCellHeight) / WORKSPACE_GRID_CELL_HEIGHT,\n      ),\n      width: Math.floor(\n        ((parameters.width / summaryViewColumnWidth) * WORKSPACE_FROM_SUMMARY_WIDTH)\n          / WORKSPACE_GRID_CELL_WIDTH,\n      ),\n      height: Math.floor((parameters.height * summaryViewCellHeight) / WORKSPACE_GRID_CELL_HEIGHT),\n    });\n  }\n\n  private convertSummaryItemToComponent(\n    workspace: WorkspaceModel,\n    parentDisplaySettings: DisplaySettingsAttributes,\n    item: SummaryViewItemFragment,\n    itemMeta: { parentChildLength: number; itemIndex: number },\n  ): WorkspaceComponentModel | WorkspaceComponentModel[] {\n    const displaySettings =\n      item.type === SummaryViewItemTypeEnum.HorizontalList\n        ? {\n            width: parentDisplaySettings.width,\n            height: Math.floor((parentDisplaySettings.height - 2) / itemMeta.parentChildLength),\n            x: 0,\n            y:\n              Math.floor(\n                ((parentDisplaySettings.height - 2) / itemMeta.parentChildLength)\n                  * itemMeta.itemIndex,\n              ) + 2,\n          }\n        : {\n            width: Math.floor(parentDisplaySettings.width / itemMeta.parentChildLength),\n            height: parentDisplaySettings.height,\n            x: Math.floor(\n              (parentDisplaySettings.width / itemMeta.parentChildLength) * itemMeta.itemIndex,\n            ),\n            y: parentDisplaySettings.y,\n          };\n    switch (item.type) {\n      case SummaryViewItemTypeEnum.Field:\n        return this.convertSummaryFieldToComponent(workspace, displaySettings, item);\n      case SummaryViewItemTypeEnum.SmartActionButton:\n        return this.convertSummaryActionToComponent(workspace, displaySettings, item);\n      case SummaryViewItemTypeEnum.WorkflowButton:\n        return this.convertSummaryWorkflowToComponent(workspace, displaySettings, item);\n      case SummaryViewItemTypeEnum.HasMany:\n      case SummaryViewItemTypeEnum.HasManyEmbedded:\n        return this.convertSummaryHasManyToComponent(workspace, parentDisplaySettings, item);\n      case SummaryViewItemTypeEnum.HorizontalList:\n        return item.children.map(\n          (child, index) =>\n            this.convertSummaryItemToComponent(workspace, displaySettings, child, {\n              parentChildLength: item.children.length,\n              itemIndex: index,\n            }) as WorkspaceComponentModel,\n        );\n      default:\n        throw new Error(`Unknown summary item type: ${item.type as unknown as string}`);\n    }\n  }\n\n  private convertSummaryFieldToComponent(\n    workspace: WorkspaceModel,\n    displaySettings: DisplaySettingsAttributes,\n    item: SummaryViewItemFragment,\n  ): WorkspaceComponentModel {\n    return this.store.createRecord('workspace-component', {\n      workspace,\n      name: this.generateNameForComponent(workspace, item.data?.name),\n      type: WorkspaceComponentTypeEnum.Field,\n      displaySettings,\n      options: {\n        sourceWorkspaceComponentId: 'currentRecord',\n        fieldName: item.data?.name,\n      },\n    });\n  }\n\n  private convertSummaryActionToComponent(\n    workspace: WorkspaceModel,\n    displaySettings: DisplaySettingsAttributes,\n    item: SummaryViewItemFragment,\n  ): WorkspaceComponentModel {\n    return this.store.createRecord('workspace-component', {\n      workspace,\n      name: this.generateNameForComponent(workspace, item.data?.name),\n      type: WorkspaceComponentTypeEnum.Action,\n      // Cap width/height so action buttons keep a natural size instead of stretching\n      displaySettings: {\n        ...displaySettings,\n        width: Math.min(displaySettings.width, workspaceComponentConfiguration.action.defaultWidth),\n        height: Math.min(\n          displaySettings.height,\n          workspaceComponentConfiguration.action.defaultHeight,\n        ),\n      },\n      options: {\n        sourceCollectionId: workspace.collection.id,\n        componentToSelectRecordFromId: 'currentRecord',\n        actionId: workspace.collection.customActions.findBy('name', item.data?.name)?.id,\n        type: WorkspaceActionTypeEnum.Smart,\n      },\n    });\n  }\n\n  private convertSummaryWorkflowToComponent(\n    workspace: WorkspaceModel,\n    displaySettings: DisplaySettingsAttributes,\n    item: SummaryViewItemFragment,\n  ): WorkspaceComponentModel {\n    return this.store.createRecord('workspace-component', {\n      workspace,\n      name: this.generateNameForComponent(workspace, item.data?.name),\n      type: WorkspaceComponentTypeEnum.Workflow,\n      // Cap width/height so workflow buttons keep a natural size instead of stretching\n      displaySettings: {\n        ...displaySettings,\n        width: Math.min(\n          displaySettings.width,\n          workspaceComponentConfiguration.workflow.defaultWidth,\n        ),\n        height: Math.min(\n          displaySettings.height,\n          workspaceComponentConfiguration.workflow.defaultHeight,\n        ),\n      },\n      options: {\n        sourceCollectionId: workspace.collection.id,\n        componentToSelectRecordFromId: 'currentRecord',\n        workflowId: item.data?.name,\n      },\n    });\n  }\n\n  private convertSummaryHasManyToComponent(\n    workspace: WorkspaceModel,\n    parentDisplaySettings: DisplaySettingsAttributes,\n    item: SummaryViewItemFragment,\n  ): WorkspaceComponentModel {\n    return this.store.createRecord('workspace-component', {\n      workspace,\n      name: this.generateNameForComponent(workspace, item.data?.name),\n      type: WorkspaceComponentTypeEnum.Collection,\n      displaySettings: parentDisplaySettings,\n      options: {\n        dataType: 'related-data',\n        sourceWorkspaceComponentId: 'currentRecord',\n        relatedDataFieldName: item.data?.name,\n        collectionId: null,\n        onRowClick: WorkspaceOnRowClickEnum.RedirectToRecord,\n      },\n    });\n  }\n\n  private deleteWorkspaceComponentsFromSummary(workspace: WorkspaceModel) {\n    workspace.components.forEach((component) => {\n      component.deleteRecord();\n    });\n  }\n}\n","import Service from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class WorkspaceFeatureState extends Service {\n  @tracked public isResizingOrDragging = false;\n  @tracked public draggedComponent: HTMLElement | null = null;\n  @tracked public currentWorkspaceId: string = null;\n\n  // Used by the workspace component configuration\n  @tracked public isDisplayingDeletePanel = false;\n  @tracked public isDisplayingBreakingChangePanel = false;\n}\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"query\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"checkProjectExistence\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"projectName\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"String\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"checkProjectExistence\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"projectName\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"projectName\"\n                  }\n                }\n              }\n            ],\n            \"directives\": []\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 106\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"query\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"getEnvironmentsWithoutEnabledRoles\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"projectId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"ID\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"getEnvironmentsWithoutEnabledRoles\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"projectId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"projectId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"id\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                },\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"name\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 144\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"query\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"GetLayoutChangesCount\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"branchId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"ID\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"getLayoutChangesCount\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"branchId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"branchId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": []\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 93\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"query\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"getProjectDatabaseDialect\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"projectId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"ID\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"getProjectDatabaseDialect\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"projectId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"projectId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": []\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 104\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"query\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"getSessionToken\"\n      },\n      \"variableDefinitions\": [],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"getSessionToken\"\n            },\n            \"arguments\": [],\n            \"directives\": []\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 44\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"BranchChangedOnEnvironment\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"userId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"ID\"\n              }\n            }\n          },\n          \"directives\": []\n        },\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"ID\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"branchChangedOnEnvironment\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"userId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"userId\"\n                  }\n                }\n              },\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"id\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 169\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"BranchPushedToRemote\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"projectId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"ID\"\n              }\n            }\n          },\n          \"directives\": []\n        },\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"userId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"ID\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"branchPushedToRemote\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"projectId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"projectId\"\n                  }\n                }\n              },\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"userId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"userId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"name\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 147\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"EnvironmentDeployed\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"projectId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"ID\"\n              }\n            }\n          },\n          \"directives\": []\n        },\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"userId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"ID\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentDeployed\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"projectId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"projectId\"\n                  }\n                }\n              },\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"userId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"userId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"name\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 145\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"EnvironmentDevelopmentV2Initialized\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"userId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"ID\"\n              }\n            }\n          },\n          \"directives\": []\n        },\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"projectName\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"String\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentDevelopmentV2Initialized\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"userId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"userId\"\n                  }\n                }\n              },\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"projectName\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"projectName\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"name\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 187\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"EnvironmentPermissionsCopied\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"projectId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"ID\"\n              }\n            }\n          },\n          \"directives\": []\n        },\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"userId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"ID\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentPermissionsCopied\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"projectId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"projectId\"\n                  }\n                }\n              },\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"userId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"userId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"error\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                },\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"from\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                },\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"to\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                },\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"message\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 192\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"EnvironmentReady\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentReady\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"timestamp\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 126\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"EnvironmentUpdateEnded\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentUpdateEnded\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"timestamp\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 138\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"EnvironmentUpdateFailed\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentUpdateFailed\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"timestamp\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 140\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"EnvironmentUpdateFinished\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentUpdateFinished\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"timestamp\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 144\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"EnvironmentUpdateStarted\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentUpdateStarted\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"timestamp\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 142\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"FullHostedDeployFailed\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"fullHostedDeployFailed\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": []\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 118\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"FullHostedRestartEnded\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"fullHostedRestartEnded\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"timestamp\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 138\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"FullHostedRestartFailed\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"fullHostedRestartFailed\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": []\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 120\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"FullHostedRestartStarted\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"fullHostedRestartStarted\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"timestamp\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 142\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"FullHostedUpdateCredentialsFailed\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"fullHostedUpdateCredentialsFailed\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"error\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                },\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"missingCollections\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 179\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"FullHostedUpdateCredentialsStarted\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"fullHostedUpdateCredentialsStarted\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"timestamp\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 162\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"LayoutChangesUpdated\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"branchId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"ID\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"layoutChangesUpdated\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"branchId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"branchId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": []\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 98\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"LumberEncounteredError\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"projectName\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"String\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"lumberEncounteredError\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"projectName\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"projectName\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"command\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                },\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"code\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                },\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"message\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                },\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"context\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": [],\n                  \"selectionSet\": {\n                    \"kind\": \"SelectionSet\",\n                    \"selections\": [\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"orm\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      },\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"dialect\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      }\n                    ]\n                  }\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 198\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"LumberSucceed\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"projectName\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"String\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"lumberSucceed\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"projectName\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"projectName\"\n                  }\n                }\n              }\n            ],\n            \"directives\": []\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 97\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"LumberSynchronizedProject\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"userId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        },\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"lumberSynchronizedProject\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"userId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"userId\"\n                  }\n                }\n              },\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"timestamp\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 176\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"NewNotification\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"userId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        },\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"newNotification\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"userId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"userId\"\n                  }\n                }\n              },\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"count\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 152\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"NotificationFromAgent\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"environmentId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        },\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"userId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"notificationFromAgent\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"environmentId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"environmentId\"\n                  }\n                }\n              },\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"userId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"userId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"refresh\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": [],\n                  \"selectionSet\": {\n                    \"kind\": \"SelectionSet\",\n                    \"selections\": [\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"collectionName\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      },\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"recordIds\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      }\n                    ]\n                  }\n                },\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"message\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": [],\n                  \"selectionSet\": {\n                    \"kind\": \"SelectionSet\",\n                    \"selections\": [\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"type\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      },\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"text\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      }\n                    ]\n                  }\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 253\n  }\n};\nexport default doc;\n","const doc = {\n  \"kind\": \"Document\",\n  \"definitions\": [\n    {\n      \"kind\": \"OperationDefinition\",\n      \"operation\": \"subscription\",\n      \"name\": {\n        \"kind\": \"Name\",\n        \"value\": \"WorkflowRunUpdated\"\n      },\n      \"variableDefinitions\": [\n        {\n          \"kind\": \"VariableDefinition\",\n          \"variable\": {\n            \"kind\": \"Variable\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"runId\"\n            }\n          },\n          \"type\": {\n            \"kind\": \"NonNullType\",\n            \"type\": {\n              \"kind\": \"NamedType\",\n              \"name\": {\n                \"kind\": \"Name\",\n                \"value\": \"Int\"\n              }\n            }\n          },\n          \"directives\": []\n        }\n      ],\n      \"directives\": [],\n      \"selectionSet\": {\n        \"kind\": \"SelectionSet\",\n        \"selections\": [\n          {\n            \"kind\": \"Field\",\n            \"name\": {\n              \"kind\": \"Name\",\n              \"value\": \"workflowRunUpdated\"\n            },\n            \"arguments\": [\n              {\n                \"kind\": \"Argument\",\n                \"name\": {\n                  \"kind\": \"Name\",\n                  \"value\": \"runId\"\n                },\n                \"value\": {\n                  \"kind\": \"Variable\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"runId\"\n                  }\n                }\n              }\n            ],\n            \"directives\": [],\n            \"selectionSet\": {\n              \"kind\": \"SelectionSet\",\n              \"selections\": [\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"executorDataChanged\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": []\n                },\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"runAttributes\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": [],\n                  \"selectionSet\": {\n                    \"kind\": \"SelectionSet\",\n                    \"selections\": [\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"runState\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      }\n                    ]\n                  }\n                },\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"stepUpdates\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": [],\n                  \"selectionSet\": {\n                    \"kind\": \"SelectionSet\",\n                    \"selections\": [\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"stepIndex\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      },\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"attributes\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": [],\n                        \"selectionSet\": {\n                          \"kind\": \"SelectionSet\",\n                          \"selections\": [\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"done\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"revised\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"cancelled\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"context\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            }\n                          ]\n                        }\n                      }\n                    ]\n                  }\n                },\n                {\n                  \"kind\": \"Field\",\n                  \"name\": {\n                    \"kind\": \"Name\",\n                    \"value\": \"addedSteps\"\n                  },\n                  \"arguments\": [],\n                  \"directives\": [],\n                  \"selectionSet\": {\n                    \"kind\": \"SelectionSet\",\n                    \"selections\": [\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"stepName\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      },\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"stepIndex\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      },\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"originalStepIndex\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      },\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"isCardStep\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      },\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"done\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      },\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"context\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      },\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"childrenWorkflowId\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": []\n                      },\n                      {\n                        \"kind\": \"Field\",\n                        \"name\": {\n                          \"kind\": \"Name\",\n                          \"value\": \"stepDefinition\"\n                        },\n                        \"arguments\": [],\n                        \"directives\": [],\n                        \"selectionSet\": {\n                          \"kind\": \"SelectionSet\",\n                          \"selections\": [\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"type\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"taskType\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"title\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"prompt\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"completionType\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"inputType\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"executionType\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"automaticCompletion\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"isSubTask\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"mcpServerId\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"inboxId\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"workflowId\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"parentWorkflowId\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": []\n                            },\n                            {\n                              \"kind\": \"Field\",\n                              \"name\": {\n                                \"kind\": \"Name\",\n                                \"value\": \"outgoing\"\n                              },\n                              \"arguments\": [],\n                              \"directives\": [],\n                              \"selectionSet\": {\n                                \"kind\": \"SelectionSet\",\n                                \"selections\": [\n                                  {\n                                    \"kind\": \"Field\",\n                                    \"name\": {\n                                      \"kind\": \"Name\",\n                                      \"value\": \"stepId\"\n                                    },\n                                    \"arguments\": [],\n                                    \"directives\": []\n                                  },\n                                  {\n                                    \"kind\": \"Field\",\n                                    \"name\": {\n                                      \"kind\": \"Name\",\n                                      \"value\": \"buttonText\"\n                                    },\n                                    \"arguments\": [],\n                                    \"directives\": []\n                                  },\n                                  {\n                                    \"kind\": \"Field\",\n                                    \"name\": {\n                                      \"kind\": \"Name\",\n                                      \"value\": \"buttonColor\"\n                                    },\n                                    \"arguments\": [],\n                                    \"directives\": []\n                                  },\n                                  {\n                                    \"kind\": \"Field\",\n                                    \"name\": {\n                                      \"kind\": \"Name\",\n                                      \"value\": \"answer\"\n                                    },\n                                    \"arguments\": [],\n                                    \"directives\": []\n                                  }\n                                ]\n                              }\n                            }\n                          ]\n                        }\n                      }\n                    ]\n                  }\n                }\n              ]\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"loc\": {\n    \"start\": 0,\n    \"end\": 817\n  }\n};\nexport default doc;\n","import query from 'client/gql/queries/check-project-existence.graphql';\n\n/**\n *\n * @param {import('client/legacy/services/apollo').default} apollo\n * @param {string} projectName\n * @returns {Promise<boolean>}\n */\nexport default async function checkProjectExistence(apollo, projectName) {\n  return apollo.query(\n    {\n      query,\n      fetchPolicy: 'no-cache',\n      variables: {\n        projectName: `${projectName}`,\n      },\n    },\n    'checkProjectExistence',\n  );\n}\n","import getEnvironmentsWithoutEnabledRoles from 'client/gql/queries/get-environments-without-enabled-roles.graphql';\n\n/**\n * @param {import('client/legacy/services/apollo').default} apollo\n * @param {string} projectId\n * @param {boolean} forceRefetch\n * @returns {Promise<import('client/data/models/environment').default[]>}\n */\nexport default async function getEnvironmentsWithoutEnabledRolesQuery(\n  apollo,\n  projectId,\n  forceRefetch,\n) {\n  return apollo.query(\n    {\n      query: getEnvironmentsWithoutEnabledRoles,\n      variables: { projectId },\n      // If forceRefetch, a server call is done (even if there is cache) and updates the cache.\n      ...(forceRefetch && { fetchPolicy: 'network-only' }),\n    },\n    'getEnvironmentsWithoutEnabledRoles',\n  );\n}\n","import query from 'client/gql/queries/get-layout-change-count.graphql';\n\n/**\n *\n * @param {import('client/legacy/services/apollo').default} apollo\n * @param {string} branchId\n * @returns {Promise<number>}\n */\nexport default async function getLayoutChangesCount(apollo, branchId) {\n  return apollo.query(\n    {\n      query,\n      variables: { branchId },\n    },\n    'getLayoutChangesCount',\n  );\n}\n","import query from 'client/gql/queries/get-project-database-dialect.graphql';\n\nexport default async function getProjectDatabaseDialect(apollo, projectId) {\n  try {\n    return await apollo.query(\n      {\n        query,\n        variables: {\n          projectId: Number(projectId),\n        },\n      },\n      'getProjectDatabaseDialect',\n    );\n    // eslint-disable-next-line sonarjs/no-ignored-exceptions\n  } catch (e) {\n    return null;\n  }\n}\n","import query from 'client/gql/queries/get-session-token.graphql';\n\nexport default async function getSessionToken(apollo) {\n  return apollo.query(\n    {\n      query,\n    },\n    'getSessionToken',\n  );\n}\n","import { addListener } from '@ember/object/events';\n\nimport queryNewNotification from 'client/gql/subscriptions/new-notification.graphql';\n\nexport default async function watchCollaborationNotification(\n  apollo,\n  environmentId,\n  userId,\n  callback,\n) {\n  if (Number(environmentId) && Number(userId)) {\n    const subscription = await apollo.subscribe(\n      {\n        query: queryNewNotification,\n        variables: {\n          environmentId: Number(environmentId),\n          userId: Number(userId),\n        },\n      },\n      'newNotification',\n    );\n    addListener(subscription, 'event', callback);\n    return subscription;\n  }\n  return null;\n}\n","import { addListener } from '@ember/object/events';\n\nimport EnvironmentPermissionsCopied from 'client/gql/subscriptions/environment-permissions-copied.graphql';\n\nexport default async function watchCopyPermissionsFinished(apollo, projectId, userId, callback) {\n  if (projectId && userId) {\n    const subscription = await apollo.subscribe(\n      {\n        query: EnvironmentPermissionsCopied,\n        variables: {\n          projectId,\n          userId,\n        },\n      },\n      'environmentPermissionsCopied',\n    );\n\n    addListener(subscription, 'event', null, callback, true);\n    return subscription;\n  }\n\n  return null;\n}\n","import { addListener } from '@ember/object/events';\n\nimport queryEnvironmentUpdateEnded from 'client/gql/subscriptions/environment-update-ended.graphql';\n\n/**\n * @param {import('client/legacy/services/apollo').default} apollo\n * @param {string} environmentId\n * @param {(() => void) | (() => Promise<void>)} callback\n * @returns {Promise<{ apolloUnsubscribe: () => void }>} subscription\n */\nexport default async function watchEnvironmentUpdateEnded(apollo, environmentId, callback) {\n  const subscription = await apollo.subscribe(\n    {\n      query: queryEnvironmentUpdateEnded,\n      variables: { environmentId: Number.parseInt(environmentId, 10) },\n    },\n    'environmentUpdateEnded',\n  );\n\n  addListener(subscription, 'event', callback);\n\n  return subscription;\n}\n","import { addListener } from '@ember/object/events';\n\nimport queryLayoutChangesUpdated from 'client/gql/subscriptions/layout-changes-updated.graphql';\n\nexport default async function watchCurrentBranchChanged(apollo, branchId, callback) {\n  const subscription = await apollo.subscribe(\n    { query: queryLayoutChangesUpdated, variables: { branchId } },\n    'layoutChangesUpdated',\n  );\n\n  addListener(subscription, 'event', callback);\n\n  return subscription;\n}\n","import { addListener } from '@ember/object/events';\n\nimport query from 'client/gql/subscriptions/lumber-encountered-error.graphql';\n\n/**\n * @param {import('client/legacy/services/apollo').default} apollo\n * @param {string} projectName\n * @param {({ code: string, command: string, message: string }) => void} callback\n * @returns {Promise<{ apolloUnsubscribe: () => void }>} subscription\n */\nexport default async function watchLumberEncounteredError(apollo, projectName, callback) {\n  const subscription = await apollo.subscribe(\n    {\n      query,\n      variables: {\n        projectName,\n      },\n    },\n    'lumberEncounteredError',\n  );\n  addListener(subscription, 'event', callback);\n  return subscription;\n}\n","import { addListener } from '@ember/object/events';\n\nimport query from 'client/gql/subscriptions/lumber-succeed.graphql';\n\n/**\n * @param {import('client/legacy/services/apollo').default} apollo\n * @param {string} projectName\n * @param {(() => void) | (() => Promise<void>)} callback\n * @returns {Promise<{ apolloUnsubscribe: () => void }>} subscription\n */\nexport default async function watchLumberSucceed(apollo, projectName, callback) {\n  const subscription = await apollo.subscribe(\n    {\n      query,\n      variables: {\n        projectName,\n      },\n    },\n    'lumberSucceed',\n  );\n  addListener(subscription, 'event', callback);\n  return subscription;\n}\n","import { addListener } from '@ember/object/events';\n\nimport queryLumberSynchronizedProject from 'client/gql/subscriptions/lumber-synchronized-project.graphql';\n\nexport default async function watchLumberSynchronizedProject(\n  apollo,\n  environmentId,\n  userId,\n  callback,\n) {\n  const subscription = await apollo.subscribe(\n    {\n      query: queryLumberSynchronizedProject,\n      variables: {\n        environmentId: Number(environmentId),\n        userId: Number(userId),\n      },\n    },\n    'data',\n  );\n  addListener(subscription, 'event', callback);\n  return subscription;\n}\n","import type { AgentNotificationData } from 'client/features/agent-notifications/services/feature';\nimport type CustomApolloService from 'client/legacy/services/apollo';\n\nimport { addListener } from '@ember/object/events';\n\nimport queryNotificationFromAgent from 'client/gql/subscriptions/notification-from-agent.graphql';\n\nexport default async function watchNotificationFromAgent(\n  apollo: CustomApolloService,\n  environmentId: string,\n  userId: string,\n  callback: (data: AgentNotificationData) => void,\n) {\n  const subscription = await apollo.subscribe(\n    {\n      query: queryNotificationFromAgent,\n      variables: {\n        environmentId: Number(environmentId),\n        userId: Number(userId),\n      },\n    },\n    'notificationFromAgent',\n  );\n  addListener(subscription, 'event', callback);\n  return subscription;\n}\n","import { helper } from '@ember/component/helper';\nimport config from '../config/environment';\nimport {\n  shaRegExp,\n  versionRegExp,\n  versionExtendedRegExp,\n} from 'ember-cli-app-version/utils/regexp';\n\nexport function appVersion(_, hash = {}) {\n  const version = config.APP.version;\n  // e.g. 1.0.0-alpha.1+4jds75hf\n\n  // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n  let versionOnly = hash.versionOnly || hash.hideSha;\n  let shaOnly = hash.shaOnly || hash.hideVersion;\n\n  let match = null;\n\n  if (versionOnly) {\n    if (hash.showExtended) {\n      match = version.match(versionExtendedRegExp); // 1.0.0-alpha.1\n    }\n    // Fallback to just version\n    if (!match) {\n      match = version.match(versionRegExp); // 1.0.0\n    }\n  }\n\n  if (shaOnly) {\n    match = version.match(shaRegExp); // 4jds75hf\n  }\n\n  return match ? match[0] : version;\n}\n\nexport default helper(appVersion);\n","import AssetMapHelper from 'asset-map-resolver/helpers/asset-map';\n\nexport default AssetMapHelper;\n","import pluralize from 'ember-inflector/lib/helpers/pluralize';\nexport default pluralize;\n","import singularize from 'ember-inflector/lib/helpers/singularize';\nexport default singularize;\n","export default {\n  name: 'ace',\n  initialize() {\n    ace.config.set('basePath', 'node_modules/ace-builds/src-min-noconflict');\n    ace.config.setModuleUrl('ace/mode/javascript_worker', '/assets/ace/worker-javascript.js');\n    ace.config.setModuleUrl('ace/mode/css_worker', '/assets/ace/worker-css.js');\n    ace.config.setModuleUrl('ace/mode/html_worker', '/assets/ace/worker-html.js');\n    ace.config.setModuleUrl('ace/mode/json_worker', '/assets/ace/worker-json.js');\n  },\n};\n","import initializerFactory from 'ember-cli-app-version/initializer-factory';\nimport config from '../config/environment';\n\nlet name, version;\nif (config.APP) {\n  name = config.APP.name;\n  version = config.APP.version;\n}\n\nexport default {\n  name: 'App Version',\n  initialize: initializerFactory(name, version),\n};\n","import Initializer, { initialize } from 'asset-map-resolver/initializers/asset-map';\n\nexport default Initializer;\nexport { initialize };\n","export default {\n  name: 'bigint-to-json',\n  initialize() {\n    // NOTE: BigInt isn't supported on some old browsers like Safari 12, so we\n    //       need to check its existence before updating its prototype. The app\n    //       can work without it, but won't be able to handle large numbers in\n    //       filters for example.\n    if (typeof BigInt === 'function') {\n      // NOTE: See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#use_within_json\n      // eslint-disable-next-line no-extend-native\n      BigInt.prototype.toJSON = function () {\n        return this.toString();\n      };\n    }\n  },\n};\n","import { registerDeprecationHandler } from '@ember/debug';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\n\nfunction detectWorkflow(options: { id: string; until?: string }) {\n  return (\n    config['deprecation-workflow'].workflow?.find((workflow) => workflow.matchId === options.id)\n    || null\n  );\n}\n\nfunction createError(\n  message: string,\n  options: { id: string; until?: string; for?: string; url?: string },\n) {\n  let messageFormatted = message;\n\n  if (options.id) {\n    messageFormatted = `[DEPRECATION ID: ${options.id}]: ${messageFormatted}`;\n  }\n  if (options.until) {\n    messageFormatted += ` [Until: ${options.for}@${options.until}]`;\n  }\n  if (options.url) {\n    messageFormatted += ` [More info: ${options.url}]`;\n  }\n\n  return new Error(messageFormatted);\n}\n\nfunction createDeprecationHandlers(\n  deprecationWorkflowConfiguration: (typeof config)['deprecation-workflow'],\n) {\n  registerDeprecationHandler((message, options) => {\n    const matchingWorkflow = detectWorkflow(options);\n    const handler =\n      matchingWorkflow?.handler === 'default'\n        ? deprecationWorkflowConfiguration.defaultBehavior\n        : matchingWorkflow?.handler || deprecationWorkflowConfiguration.onUnhandled;\n    switch (handler) {\n      case 'throw':\n        throw createError(message, options);\n      case 'logError':\n        console.error(createError(message, options));\n        break;\n      case 'silence':\n        break;\n      case 'log':\n      default:\n        console.warn(createError(message, options));\n        break;\n    }\n  });\n\n  // Deprecations collector, ease the setup of \"workflow\" settings inside config/environment.js much easier\n  // To use it, just use the app and then run `window.deprecationWorkflow.flushDeprecations()` in the console\n  // Or run all the tests and then run `window.deprecationWorkflow.flushDeprecations()` in the console\n  if (deprecationWorkflowConfiguration.enableDeprecationsCollector) {\n    window.deprecationWorkflow = window.deprecationWorkflow || {\n      alreadyRegisteredDeprecations: new Set(),\n      unregisteredDeprecations: new Set(),\n    };\n\n    registerDeprecationHandler((message, options, next) => {\n      // This can happen during tests\n      if (!window.deprecationWorkflow) return;\n\n      const key = (options && options.id) || message;\n      const matchKey = options && key === options.id ? 'matchId' : 'matchMessage';\n\n      if (\n        deprecationWorkflowConfiguration.workflow?.find((workflow) => workflow[matchKey] === key)\n      ) {\n        window.deprecationWorkflow.alreadyRegisteredDeprecations.add(key);\n      } else {\n        window.deprecationWorkflow.unregisteredDeprecations.add(key);\n      }\n\n      next(message, options);\n    });\n\n    window.deprecationWorkflow.flushDeprecations = () => {\n      let deprecationsConfig = '';\n      const deprecationNamesToConfig = (deprecationNames: Set<string>) =>\n        [...deprecationNames]\n          .map((deprecationName) => `{ handler: 'default', matchId: '${deprecationName}' },\\n`)\n          .join('');\n      if (window.deprecationWorkflow.alreadyRegisteredDeprecations.size > 0) {\n        deprecationsConfig += `// Already registered deprecations\\n${deprecationNamesToConfig(\n          window.deprecationWorkflow.alreadyRegisteredDeprecations,\n        )}`;\n      }\n      if (window.deprecationWorkflow.unregisteredDeprecations.size > 0) {\n        deprecationsConfig += `// New deprecations\\n${deprecationNamesToConfig(\n          window.deprecationWorkflow.unregisteredDeprecations,\n        )}`;\n      }\n      return deprecationsConfig;\n    };\n  }\n}\n\nexport default {\n  name: 'deprecation-workflow',\n  before: ['ace', 'bigint-to-json', 'emoji-picker', 'reopen-model', 'title-token-injector'],\n  initialize() {\n    createDeprecationHandlers(config['deprecation-workflow']);\n  },\n};\n","\n        export default {\n          name: 'ember-cli-mirage',\n          initialize() {}\n        };\n      ","import 'ember-data';\n\nimport setupContainer from 'ember-data/setup-container';\n\n/*\n  This code initializes EmberData in an Ember application.\n*/\nexport default {\n  name: 'ember-data',\n  initialize: setupContainer,\n};\n","export default {\n  name: 'emoji-picker',\n  async initialize() {\n    await import('emoji-picker-element');\n  },\n};\n","import Inflector from 'ember-inflector';\n\nexport default {\n  name: 'inflector',\n  initialize() {\n    Inflector.inflector.irregular('metadata', 'metadata');\n  },\n};\n","// Import the full module to ensure monkey-patches are applied before any store\n// instances are created. Sad face for side-effects :(\nimport 'ember-data-model-fragments';\nimport 'ember-data-model-fragments/ext';\n\nexport default {\n  name: 'fragmentTransform',\n  after: 'ember-data',\n\n  initialize() {},\n};\n","import { quillRegister } from 'client/utils/quill/quill-common';\n\nexport default {\n  initialize: () => {\n    quillRegister();\n  },\n};\n","import { computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport Model from '@ember-data/model';\nimport { recordIdentifierFor } from '@ember-data/store';\n\nfunction areArrayIdentical(firstArray, secondArray) {\n  if (firstArray.length !== secondArray.length) return false;\n\n  return firstArray.every((element) => secondArray.includes(element));\n}\n\n// NOTICE: Ember do not support rollback on relationships right now.\n//         When doing a `rollbackAttributes` it will not rollback the foreignKeys.\n//         This file add supports for  rolling back a relationships to its initial state.\nexport default {\n  name: 'reopen-model',\n  initialize() {\n    Model.reopen({\n      store: service(),\n      hasDirtyRelationships: computed(function () {\n        return !!Object.keys(this.changedRelationships()).length;\n      }),\n      _getForestRecordData() {\n        const recordIdentifier = recordIdentifierFor(this);\n        return this.store._instanceCache.getRecordData(recordIdentifier);\n      },\n      init(...args) {\n        this._super(...args);\n\n        const recordData = this._getForestRecordData();\n        recordData.onSetDirtyBelongsTo = () => this.notifyHasDirtyRelationshipsChanged();\n        recordData.onSetDirtyHasMany = () => this.notifyHasDirtyRelationshipsChanged();\n        recordData.onDidCommit = () => this.notifyHasDirtyRelationshipsChanged();\n        recordData.onRollbackAttributes = () => this.notifyHasDirtyRelationshipsChanged();\n      },\n      belongsToIdByName: null,\n      getRelationship(name) {\n        let relationship;\n        this.eachRelationship((relationshipName, descriptor) => {\n          if (name === relationshipName) {\n            relationship = descriptor;\n          }\n        });\n\n        return relationship;\n      },\n      rollbackRelationship(name) {\n        const relationship = this.getRelationship(name);\n        const recordData = this._getForestRecordData();\n\n        if (!relationship) {\n          return;\n        }\n\n        if (relationship.kind === 'belongsTo') {\n          if (!(name in recordData._originalBelongsTo)) {\n            return;\n          }\n\n          const recordIdentifier = recordData._originalBelongsTo[name];\n          let value = recordIdentifier;\n\n          if (recordIdentifier) {\n            const record = this.store.peekRecord(recordIdentifier.type, recordIdentifier.id);\n\n            if (record) {\n              value = record;\n            }\n          }\n\n          this.set(name, value);\n          delete recordData._originalBelongsTo[name];\n        } else {\n          if (!(name in recordData._originalHasMany)) {\n            return;\n          }\n\n          const hasMany = recordData._originalHasMany[name];\n\n          if (hasMany) {\n            const records = hasMany.map((recordId) =>\n              this.store.peekRecord(relationship.type, recordId),\n            );\n\n            this.set(name, records);\n          }\n\n          delete recordData._originalHasMany[name];\n        }\n\n        this.notifyHasDirtyRelationshipsChanged();\n      },\n      rollbackRelationships(kind) {\n        this.eachRelationship((name, descriptor) => {\n          if (!kind || descriptor.kind === kind) {\n            this.rollbackRelationship(name);\n          }\n        });\n\n        this.notifyHasDirtyRelationshipsChanged();\n      },\n      notifyHasDirtyRelationshipsChanged() {\n        this.notifyPropertyChange('hasDirtyRelationships');\n      },\n      changedRelationships(kind) {\n        const recordData = this._getForestRecordData();\n        const belongsToKeys = Object.keys(recordData._originalBelongsTo);\n        const hasManyKeys = Object.keys(recordData._originalHasMany);\n\n        const changedRelationships = {};\n\n        if (!kind || kind === 'belongsTo') {\n          belongsToKeys.forEach((key) => {\n            const currentRelationshipId = this.get(key) && this.get(key).get('id');\n            const oldRelationshipId = recordData._originalBelongsTo[key]?.id;\n            const isPolymorphicRelationship = this.getRelationship(key).meta.options.polymorphic;\n\n            if (\n              oldRelationshipId !== currentRelationshipId\n              || (isPolymorphicRelationship\n                && recordData._originalBelongsTo[key]?.type !== this[key].modelName)\n            ) {\n              changedRelationships[key] = [oldRelationshipId, currentRelationshipId];\n            }\n          });\n        }\n        if (!kind || kind === 'hasMany') {\n          hasManyKeys.forEach((key) => {\n            const currentRelationshipIds =\n              this.get(key) && this.get(key).map((relationship) => relationship.get('id'));\n            const oldRelationshipIds = recordData._originalHasMany[key];\n            if (!areArrayIdentical(oldRelationshipIds, currentRelationshipIds)) {\n              changedRelationships[key] = [oldRelationshipIds, currentRelationshipIds];\n            }\n          });\n        }\n\n        return changedRelationships;\n      },\n    });\n  },\n};\n","import { getOwner } from '@ember/application';\nimport { isArray } from '@ember/array';\nimport { set } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport EmberRouter from '@ember/routing/router';\nimport { service } from '@ember/service';\n\nfunction initialize() {\n  const routeProps = {\n    // NOTICE: `titleToken` can either be a static string or a function\n    // that accepts a model object and returns a string (or array\n    // of strings if there are multiple tokens).\n    titleToken: null,\n\n    // NOTICE: `title` can either be a static string or a function\n    // that accepts an array of tokens and returns a string\n    // that will be the document title. The `collectTitleTokens` action\n    // stops bubbling once a route is encountered that has a `title`\n    // defined.\n    title: null,\n\n    // eslint-disable-next-line ember/no-actions-hash\n    actions: {\n      collectTitleTokens(tokens = []) {\n        let { titleToken } = this;\n        if (typeof titleToken === 'function') {\n          titleToken = titleToken.call(this, this.currentModel);\n        }\n        if (isArray(titleToken)) {\n          tokens.unshift(...titleToken);\n        } else if (titleToken) {\n          tokens.unshift(titleToken);\n        }\n\n        // If `title` exists, it signals the end of the\n        // token-collection, and the title is decided right here.\n        const { title } = this;\n        if (title) {\n          const self = this;\n\n          // Wrap in promise in case some tokens are asynchronous.\n          Promise.resolve()\n            .then(() => {\n              if (typeof title === 'function') {\n                // Wait for all tokens to resolve.\n                // It resolves immediately if all tokens are plain values (not promises).\n                return Promise.all(tokens).then((resolvedTokens) =>\n                  title.call(self, resolvedTokens),\n                );\n              }\n              // Tokens aren't even considered... a string\n              // title just sledgehammer overwrites any children tokens.\n              return title;\n            })\n            .then((finalTitle) => {\n              // Stubbable fn that sets document.title\n              const mainRouter = getOwner(self).lookup('router:main');\n              mainRouter.setTitle(finalTitle);\n            });\n        } else {\n          // Continue bubbling.\n          return true;\n        }\n\n        return true;\n      },\n    },\n  };\n\n  Route.reopen(routeProps);\n\n  EmberRouter.reopen({\n    popup: service(),\n\n    init(...args) {\n      this._super(...args);\n      this.on('routeDidChange', (transition) => {\n        if (!transition.isAborted) {\n          this.send('collectTitleTokens', []);\n          this.popup.forceHide();\n        }\n      });\n    },\n\n    setTitle(title) {\n      const container = getOwner ? getOwner(this) : this.container;\n      const renderer = container.lookup('renderer:-dom');\n      const domForAppWithGlimmer2 = container.lookup('service:-document');\n\n      if (renderer && renderer._dom) {\n        set(renderer, '_dom.document.title', title);\n      } else if (domForAppWithGlimmer2) {\n        // Glimmer 2 has a different renderer\n        set(domForAppWithGlimmer2, 'title', title);\n      } else {\n        document.title = title;\n      }\n    },\n  });\n}\n\nexport default {\n  name: 'title-token-injector',\n  initialize,\n};\n","import type ApplicationInstance from '@ember/application/instance';\nimport type DatadogService from 'client/legacy/services/datadog';\n\nexport default {\n  initialize(container: ApplicationInstance) {\n    const datadogService = container.lookup('service:datadog') as DatadogService;\n    datadogService.initializeLibrary();\n  },\n};\n","/* exists only for things that historically used \"after\" or \"before\" */\nexport default {\n  name: 'ember-data',\n  initialize() {},\n};\n","import ForestSessionService from 'client/legacy/services/forest-session';\n\nexport default {\n  name: 'forest-session',\n  initialize(container) {\n    container.unregister('service:session');\n    container.register('service:session', ForestSessionService);\n  },\n};\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { next } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { isNone } from '@ember/utils';\n\nimport { any, argument, oneOf, optional } from 'client/decorators/argument';\nimport { KEY, isKey } from 'client/utils/keyboard';\nimport { isNumberUnsafeInteger } from 'client/utils/number-utils';\n\nexport default class AbstractBetaInput extends Component {\n  /** @type {import('../services/event-bus').defaultValue} */\n  @service eventBus;\n\n  @argument(optional(any())) value;\n  @argument(optional(String)) placeholder;\n  @argument(optional(oneOf('success', 'error', 'warning', 'info', 'loading', 'empty'))) state;\n  @argument(optional(Boolean)) autofocus;\n  @argument(optional(Boolean)) disabled;\n  @argument(optional(Boolean)) readOnly;\n  @argument(optional(Boolean)) resizable;\n  @argument(optional(Number)) maxLength;\n  @argument(optional(Function)) onClick = () => {};\n  @argument(optional(Function)) onInput = () => {};\n  @argument(optional(Function)) onChange = () => {};\n  @argument(optional(Function)) onEnter = () => {};\n  @argument(optional(Function)) onKeyUp = () => {};\n\n  oldValue = '';\n  numberOnly = false;\n\n  @action\n  didInsertElement(...args) {\n    super.didInsertElement(...args);\n    this.set('oldValue', this.value);\n    if (this.autofocus) {\n      next(() => {\n        if (!this.isDestroyed && !this.isDestroying) {\n          this.getFocusableElement().focus();\n        }\n      });\n    }\n  }\n\n  @computed('value')\n  get displayedValue() {\n    return this.value;\n  }\n\n  getFocusableElement() {\n    return this.element;\n  }\n\n  @action\n  handleClick(event) {\n    this.eventBus.trigger('inputClick', event);\n    this.onClick?.(event);\n  }\n\n  @action\n  handleInput(event) {\n    this.set('value', event.target.value);\n\n    this.onInput?.(event, this.value, this.oldValue);\n    if (this.value !== this.oldValue) {\n      this.onChange?.(this.value, this.oldValue, event);\n    }\n\n    this.set('oldValue', this.value);\n  }\n\n  @action\n  handleKeyUp(event) {\n    this.onKeyUp(event);\n    if (isKey(KEY.ENTER, event)) {\n      this.onEnter?.();\n    }\n  }\n\n  computeNumberValue(rawValue) {\n    const defaultValue = isNone(rawValue) ? rawValue : null;\n\n    if (rawValue || rawValue === 0) {\n      let value = Number.parseFloat(rawValue);\n\n      if (isNumberUnsafeInteger(value)) {\n        value = BigInt(rawValue);\n      }\n\n      return value;\n    }\n\n    return defaultValue;\n  }\n\n  @action\n  handleChange(event) {\n    if (this.isDestroying || this.isDestroyed) return;\n\n    if (this.oldValue !== event.target.value) {\n      this.onChange?.(event.target.value, this.oldValue, event);\n    }\n\n    this.oldValue = this.value;\n  }\n}\n","import { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class AnimationComponent extends Component {\n  @service() lottie;\n\n  get lottieContainerClassSelector() {\n    // NOTICE: make this identifier unique to prevent a second error to populte another animation\n    //         (eg. viewDetail + collectionList on background)\n    return `js-lottie-container-${guidFor(this)}`;\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    document.removeEventListener('DOMLoaded', this._skipAnimationIntroListener);\n    this.animation?.destroy();\n    this.animation = null;\n  }\n\n  @action\n  async initAnimation() {\n    const container = document.getElementsByClassName(this.lottieContainerClassSelector)[0];\n    const { filename, endFrame, introEndFrame } = this.currentAnimation;\n    const animation = await this.lottie.bindAnimation(container, filename);\n\n    if (this.isDestroying || this.isDestroyed || !animation) {\n      animation?.destroy();\n      return;\n    }\n\n    this.animation = animation;\n\n    // NOTICE: This allows to perform the introduction part of the animation only once,\n    //         then loop on the rest of it.\n    this._skipAnimationIntroListener = () => {\n      animation.playSegments(\n        [\n          [0, endFrame],\n          [introEndFrame, endFrame],\n        ],\n        true,\n      );\n    };\n\n    animation.addEventListener('DOMLoaded', this._skipAnimationIntroListener, { once: true });\n  }\n}\n","import type HtmlSanitizerService from 'client/legacy/services/html-sanitizer';\n\nimport { isArray as emberIsArray } from '@ember/array';\nimport Component from '@ember/component';\nimport EmberObject, { action, computed, get } from '@ember/object';\nimport { not } from '@ember/object/computed';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { isNone } from '@ember/utils';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\n\nconst WORD_CLASS = 'c-beta-select-search__word';\nconst WORD_START = `<span class=\"${WORD_CLASS}\">`;\nconst WORD_END = '</span>';\nconst HIGHLIGHT_CLASS = 'c-beta-select-search__highlight';\nconst HIGHLIGHT_START = `<span class=\"${HIGHLIGHT_CLASS}\">`;\nconst HIGHLIGHT_END = '</span>';\n\ntype Option = string | number | object | boolean;\n\nexport interface OptionMap {\n  title: string;\n  name: Option;\n  value: Option;\n  icon: string;\n  disabled: boolean;\n  id: string;\n}\n\ninterface DropdownSelectComponentArgs {\n  defaultOption: Option;\n  disabled: boolean;\n  disabledPath: string;\n  hideCurrentValue: boolean;\n  isLoading: boolean;\n  multipleValues: boolean;\n  namePath: string;\n  onChange: (value: unknown, selectedValue: unknown) => void;\n  onOpen: () => void;\n}\n\nfunction isArray(value: unknown): value is unknown[] {\n  return emberIsArray(value);\n}\n\n@validateArguments\nexport default abstract class AbstractDropdownSelectComponent extends Component<DropdownSelectComponentArgs> {\n  @service htmlSanitizer: HtmlSanitizerService;\n\n  defaultValue: unknown = null;\n  hideCurrentValue = false;\n  multipleValues = false;\n\n  @tracked isDropdownOpen = false;\n  @tracked _isLoading = false;\n  @tracked searchValue: string = null;\n\n  abstract displayDropdown(value?: unknown): void;\n\n  // FIXME: Remove this block after migrating the component to Glimmer\n  // Arguments\n  protected defaultOption: string;\n  protected options: Option[];\n  protected disabledOptions: unknown[];\n  public value: unknown | unknown[];\n  protected disabled: boolean;\n  protected disabledPath: string;\n  protected placeholder: string;\n  protected namePath: string;\n  protected titlePath: string;\n  protected iconPath: string;\n  protected valuePath: string;\n\n  protected onChange: (value: unknown | unknown[], selectedValue: unknown | unknown[]) => void;\n  protected onOpen: () => void | Promise<void>;\n\n  @not('multipleValues') singleValue;\n\n  @computed('searchValue')\n  get searchValueOrValue() {\n    return this.searchValue;\n  }\n\n  set searchValueOrValue(value) {\n    this.set('searchValue', value);\n  }\n\n  get inputSelectorClass() {\n    return `js-${this.elementId}__input`;\n  }\n\n  get defaultItem() {\n    return {\n      id: `${guidFor(this)}__default`,\n    };\n  }\n\n  @computed('defaultOption', 'multipleValues', 'placeholder', 'singleValue', 'value.length')\n  get placeholderOrDefaultOption() {\n    if (!this.defaultOption?.trim()) {\n      return this.placeholder;\n    }\n    if (this.multipleValues && !(this?.value as unknown[])?.length) {\n      return this.defaultOption || this.placeholder;\n    }\n    if (this.singleValue && isNone(this.value)) {\n      return this.defaultOption || this.placeholder;\n    }\n\n    return this.placeholder;\n  }\n\n  @computed(\n    'disabledPath',\n    'elementId',\n    'namePath',\n    'options.[]',\n    'valuePath',\n    'disabledOptions.[]',\n  )\n  get optionsMap() {\n    const { namePath, titlePath, iconPath, valuePath, disabledPath, disabledOptions } = this;\n    const optionsMap: OptionMap[] = [];\n    (this.options || []).forEach((option) => {\n      const name = namePath ? (get(option, namePath) as string) : option;\n      const title = titlePath ? (get(option, titlePath) as string) : null;\n      const value = valuePath ? (get(option, valuePath) as string) : option;\n      const icon = iconPath ? (get(option, iconPath) as string) : null;\n\n      let disabled: boolean | undefined;\n      if (disabledPath && get(option, disabledPath)) disabled = true;\n      if (disabledOptions && disabledOptions.includes(value)) disabled = true;\n\n      optionsMap.push({\n        title,\n        name,\n        value,\n        icon,\n        disabled,\n        id: `${this.elementId}_option_${guidFor(value)}`,\n      });\n    });\n    return optionsMap;\n  }\n\n  @computed('htmlSanitizer', 'optionsMap', 'searchValueOrValue')\n  get optionsMapWithHighlightSearch() {\n    let searchValue = this.searchValueOrValue;\n    if (!searchValue) {\n      return this.optionsMap;\n    }\n\n    // Prevent a bug when searchValue is a number\n    searchValue = String(searchValue);\n\n    const highlightRegex = new RegExp(searchValue.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'), 'i');\n\n    return this.optionsMap\n      .filter((option) => highlightRegex.test(option.name as string))\n      .map((option) => {\n        const copiedOption = EmberObject.create(option);\n        const highlightPrefix = '________';\n        const highlightSuffix = '####';\n        const splittedValue = `${copiedOption.name as string}`\n          .replace(highlightRegex, (match) => {\n            const splittedMatch = match.split(' ');\n            return splittedMatch\n              .map((subMatch) => `${highlightPrefix}${subMatch}${highlightSuffix}`)\n              .join(' ');\n          })\n          .split(' ');\n\n        const valueFormatted = splittedValue\n          .map((word) => this.htmlSanitizer.escapeText(word))\n          .map(\n            (word, index) =>\n              `${WORD_START}${word\n                .replace(new RegExp(highlightPrefix, 'g'), HIGHLIGHT_START)\n                .replace(new RegExp(highlightSuffix, 'g'), HIGHLIGHT_END)}${\n                index < splittedValue.length - 1 ? ' ' : ''\n              }${WORD_END}`,\n          )\n          .join('');\n\n        copiedOption.set('name', htmlSafe(valueFormatted));\n\n        return copiedOption;\n      });\n  }\n\n  @computed('namePath', 'optionsMap', 'value.[]', 'valuePath')\n  get valuesSelected() {\n    if (!this.value) {\n      return [];\n    }\n\n    if (isArray(this.value)) {\n      const values = this.value;\n\n      const newValues = values.map((value: unknown) => {\n        const option = this.optionsMap.findBy('value', value as string);\n        let name: string;\n\n        if (option) {\n          name = option.name as string;\n        } else {\n          name = (this.namePath ? get(value, this.namePath) : value) as string;\n        }\n\n        return {\n          value,\n          name,\n        };\n      });\n\n      return newValues.sortBy('label');\n    }\n\n    const option = this.optionsMap.findBy('value', this.value as string);\n    let name = option ? option.name : this.value;\n\n    if ((!option && !this.valuePath && this.namePath) || (!name && this.namePath)) {\n      name = get(this.value, this.namePath) as string;\n    }\n\n    return [\n      {\n        value: this.value,\n        name,\n      },\n    ];\n  }\n\n  @action\n  selectDefault(event?: Event) {\n    if (this.disabled) {\n      return;\n    }\n\n    if (this.multipleValues) {\n      if ((this?.value as unknown[])?.length) {\n        (this.value as unknown[]).clear();\n        this.notifyChange(null);\n      }\n    } else {\n      this.set('value', this.defaultValue);\n      this.notifyChange(this.defaultValue);\n    }\n\n    this.removeDropdown(event);\n  }\n\n  markValueAsSelected(selectedValue: unknown, isDisabled: boolean, event: Event) {\n    if (this.disabled || isDisabled) {\n      return false;\n    }\n\n    const valueBefore = this.value;\n    if (this.multipleValues) {\n      const { value } = this;\n\n      if (isArray(value)) {\n        if (value.includes(selectedValue)) {\n          value.removeObject(selectedValue);\n        } else {\n          value.pushObject(selectedValue);\n        }\n        this.set('value', [...value.toArray()]);\n      } else {\n        this.set('value', [selectedValue]);\n      }\n    } else {\n      this.set('value', selectedValue);\n      this.set('searchValue', null);\n      this.removeDropdown(event);\n    }\n\n    if (this.multipleValues || valueBefore !== selectedValue) {\n      this.notifyChange(selectedValue);\n    }\n    return false;\n  }\n\n  removeDropdown(event: Event) {\n    if (this.isDestroying || this.isDestroyed) {\n      return true;\n    }\n\n    this.set('isDropdownOpen', false);\n    if (event) {\n      event.stopPropagation();\n    }\n    return false;\n  }\n\n  notifyChange(selectedValue: unknown | unknown[] = null) {\n    if (this.onChange) {\n      this.onChange(this.value, selectedValue);\n    }\n  }\n\n  click(event: Event) {\n    event.stopPropagation();\n  }\n\n  @action\n  async showDropdown(selectInputValue: unknown, event: Event) {\n    event?.stopPropagation();\n    event?.preventDefault();\n    if (this.onOpen) {\n      this._isLoading = true;\n      await this.onOpen();\n      this._isLoading = false;\n    }\n    this.displayDropdown(selectInputValue);\n  }\n\n  @action\n  hideDropdown(event: Event) {\n    this.removeDropdown(event);\n  }\n\n  @action\n  selectValue(selectedValue: unknown, isDisabled: boolean, event: Event) {\n    return this.markValueAsSelected(selectedValue, isDisabled, event);\n  }\n\n  @action\n  deselectValue(value: unknown | unknown[], index: number) {\n    if (this.disabled) {\n      return false;\n    }\n\n    if (isArray(this.value)) {\n      this.value.removeAt(index);\n      this.set('value', [...this.value.toArray()]);\n    } else {\n      this.set('value', null);\n    }\n\n    this.notifyChange(value);\n    return false;\n  }\n\n  @action\n  none(event: Event) {\n    event.stopPropagation();\n    return false;\n  }\n}\n","import { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport Component from '@glimmer/component';\nimport { kebabCase } from 'lodash';\n\nimport WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface AbstractWorkspaceComponentRendererArgs {\n  component: WorkspaceComponentModel;\n}\n@validateArguments\nexport default class AbstractWorkspaceComponentRenderer<\n  T extends AbstractWorkspaceComponentRendererArgs,\n> extends Component<T> {\n  static propTypes = {\n    component: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n  };\n\n  cssVarPrefix = `--workspace-component-${this.args.component.type}-`;\n\n  get containerElementId() {\n    return guidFor(this);\n  }\n\n  @action\n  applyOptions(element: HTMLElement) {\n    if (!('cssProperties' in this.args.component.options)) {\n      return;\n    }\n    const { cssProperties } = this.args.component.options;\n    Object.entries(cssProperties).forEach(([property, value]) => {\n      const propertyKebabCase = kebabCase(property);\n      element.style.setProperty(`${this.cssVarPrefix}${propertyKebabCase}`, value);\n    });\n  }\n}\n","import type { EmberRunTimer } from '@ember/runloop/types';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type ProjectModel from 'client/data/models/project';\nimport type CloudFeatureService from 'client/features/cloud/services/feature';\nimport type { SshKeys } from 'client/features/cloud/services/feature';\nimport type { OnboardingFlow } from 'client/legacy/pods/project/onboarding/flows/common';\nimport type ApplicationCheckerService from 'client/legacy/services/application-checker';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type DatabaseCredentials from 'client/utils/onboarding/database-credentials';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { cancel, later } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { getFirstErrorDetail } from 'client/utils/ember-error-util';\nimport { CorsAgentError } from 'client/utils/errors';\n\nexport default abstract class AbstractOnboardingStepsController extends Controller {\n  queryParams = [\n    {\n      currentStepKey: {\n        scope: 'controller' as const,\n        as: 'step',\n      },\n    },\n  ];\n\n  @service applicationChecker: ApplicationCheckerService;\n  @service segmentTracker: SegmentTrackerService;\n  @service tracker: TrackerService;\n  @service toastr: ToastrService;\n  @service('feature/cloud') cloudService: CloudFeatureService;\n\n  // Internal alias\n  @alias('model.flow') protected flow: OnboardingFlow<AbstractOnboardingStepsController>;\n  @alias('model.stepsKeys') protected stepsKeys: string[];\n  @alias('model.defaultStep') protected defaultStep: string;\n  @alias('model.lastStep') protected lastStep: string;\n\n  // Internal tracked\n  @tracked protected currentStepKey: string;\n  @tracked protected isCorsError = false;\n\n  // Public alias - Can be use in step definition\n  @alias('model.project') public project: ProjectModel;\n  @alias('model.environmentSecretKey') public environmentSecretKey: string;\n\n  // Public tracked - Can be use in step definition\n  @tracked public isAgentResponding = false;\n  @tracked public applicationUrl: string;\n  @tracked public databaseCredentials: DatabaseCredentials;\n  @tracked public temporaryDatabaseCredentials: DatabaseCredentials;\n  @tracked public showCredentialValidationErrors = false;\n  @tracked public hasRequestedLocalhostPermission = false;\n  @tracked public localNetworkPermissionState: PermissionState | null = null;\n\n  public isNotForestProductionServer = config.APP.apiServerHost !== 'https://api.forestadmin.com';\n  private checkAgentEndpointRunner: EmberRunTimer = null;\n\n  protected automateCheckAgentTransition: boolean;\n\n  // ===================\n  // ABSTRACT - Needs to be redefined in child controllers\n  // ===================\n\n  abstract get onboardingTrackingInformation(): {\n    screen: string;\n    phase: string;\n    projectId: string;\n    projectName: string;\n  };\n\n  abstract get currentEnvironment(): EnvironmentModel;\n  abstract get databaseConnectionString(): string;\n\n  // Bound methods using @action decorator\n  //  onGoNext: () => Promise<void>;\n  //  onGoBack: () => Promise<void>;\n  //  setApplicationUrl: (applicationUrl: string) => void;\n  //  setDatabaseCredentials: (databaseCredentials: DatabaseCredentials) => void;\n\n  abstract onGoNext(skipped?: boolean): Promise<void>;\n  abstract onGoBack(): Promise<void>;\n\n  abstract setApplicationUrl(applicationUrl: string): void;\n  abstract beforeNextApplicationUrl(): Promise<void | boolean>;\n  abstract validateUrl(url: string): { message: string; moreHttpsInformation?: boolean };\n\n  // ===================\n  // INTERNAL\n  // ===================\n\n  get currentStepIndex() {\n    return this.stepsKeys.indexOf(this.currentStepKey);\n  }\n\n  get currentStep() {\n    return this.flow.steps[this.currentStepKey || this.defaultStep];\n  }\n\n  // ===================\n  // GENERAL\n  // ===================\n\n  get title() {\n    return this.currentStep.title;\n  }\n\n  get helpBubbleContent() {\n    return this.currentStep.helpBubbleContent;\n  }\n\n  get helpCenterTopics() {\n    return this.flow.helpCentersContent.filter(\n      (topic) => !topic.steps || topic.steps.includes(this.currentStepKey),\n    );\n  }\n\n  get currentStepNumber() {\n    if (this.currentStepKey === this.lastStep) return 1;\n\n    // First onboarding step is already at step 4 in the new onboarding\n    return this.currentStepIndex + 4;\n  }\n\n  get maxStepNumber() {\n    if (this.currentStepKey === this.lastStep) return 2;\n\n    // Onboarding steps starts at 4 in the new onboarding but last step is Launch\n    return this.stepsKeys.length + 2;\n  }\n\n  get phase() {\n    if (this.currentStepKey === this.lastStep) return 'Launch';\n\n    return 'Setup';\n  }\n\n  protected _computeBreadcrumbState(index) {\n    if (index === this.currentStepIndex) {\n      return 'active';\n    }\n\n    if (index < this.currentStepIndex) {\n      return 'done';\n    }\n\n    return 'locked';\n  }\n\n  get integrationComponent() {\n    return {\n      componentName: `dynamic-onboarding/integration/wrapper/${this.currentStep.component}`,\n      componentArguments: this.computeIntegrationComponentArguments,\n    };\n  }\n\n  get computeIntegrationComponentArguments(): Record<string, unknown> {\n    if (!this.currentStep.componentArguments) {\n      return null;\n    }\n\n    return Object.entries(this.currentStep.componentArguments).reduce<Record<string, unknown>>(\n      (acc, [argumentName, functionOrValue]) => {\n        acc[argumentName] =\n          functionOrValue instanceof Function ? functionOrValue(this) : functionOrValue;\n\n        return acc;\n      },\n      {},\n    );\n  }\n\n  get isLocalhostUrl() {\n    if (!this.currentEnvironment?.apiEndpoint) {\n      return false;\n    }\n    const url = this.currentEnvironment.apiEndpoint;\n    return /^https?:\\/\\/(localhost|127\\.0\\.0\\.1)(:\\d{2,5})?/.test(url);\n  }\n\n  get nextState() {\n    const { canGoNext, checkIsAgentRunning } = this.currentStep;\n    if (typeof canGoNext === 'undefined') {\n      return 'enabled';\n    }\n\n    if (canGoNext instanceof Function ? canGoNext(this) : !!canGoNext) {\n      return 'enabled';\n    }\n\n    if (checkIsAgentRunning) {\n      if (\n        this.isLocalhostUrl\n        && this.localNetworkPermissionState === 'prompt'\n        && !this.hasRequestedLocalhostPermission\n      ) {\n        return 'waiting-permission';\n      }\n      return this.isLocalhostUrl && this.localNetworkPermissionState === 'denied'\n        ? 'waiting-permission-granted'\n        : 'waiting';\n    }\n\n    return 'disabled';\n  }\n\n  get showLocalNetworkPermissionNotification() {\n    return (\n      this.isLocalhostUrl\n      && this.nextState?.includes('waiting')\n      && this.localNetworkPermissionState === 'prompt'\n    );\n  }\n\n  get showLocalNetworkPermissionDeniedError() {\n    return this.isLocalhostUrl && this.localNetworkPermissionState === 'denied';\n  }\n\n  get currentOrigin() {\n    return window.location.origin;\n  }\n\n  get canSkip() {\n    const { isSkippable } = this.currentStep;\n    return Boolean(isSkippable);\n  }\n\n  get canGoBack() {\n    const { canGoBack } = this.currentStep;\n    if (canGoBack === undefined) return true;\n\n    return canGoBack instanceof Function ? canGoBack(this) : !!canGoBack;\n  }\n\n  // ===================\n  // ACTIONS\n  // ===================\n\n  @action\n  async fetchSshKeysForFullHostedAgent(): Promise<SshKeys> {\n    return this.cloudService.fetchSshKeysForFullHostedAgent();\n  }\n\n  @action\n  async onGoSkip() {\n    return this.onGoNext(true);\n  }\n\n  /**\n   * Send tracking Help Bubble Link Clicked event\n   * @param {*} bubbleName\n   * @param {*} link\n   */\n  @action\n  trackBubbleEventLinkClicked(bubbleName: string, link: string) {\n    this.segmentTracker.trackBubbleEventLinkClicked(\n      bubbleName,\n      link,\n      this.onboardingTrackingInformation,\n    );\n  }\n\n  /**\n   * Send tracking Help Bubble Opened event\n   * @param {*} bubbleName\n   */\n  @action\n  trackBubbleEventOpened(bubbleName: string) {\n    this.segmentTracker.trackBubbleEventOpened(bubbleName, this.onboardingTrackingInformation);\n  }\n\n  // ===================\n  // Database Credentials\n  // ===================\n\n  abstract setDatabaseCredentials(databaseCredentials: DatabaseCredentials): void;\n\n  async beforeNextDatabaseCredentials(skipped: boolean): Promise<void | boolean> {\n    if (!skipped && !this.temporaryDatabaseCredentials) {\n      this.showCredentialValidationErrors = true;\n      return false;\n    }\n\n    this.databaseCredentials = this.temporaryDatabaseCredentials;\n\n    return true;\n  }\n\n  // ===================\n  // Start your server\n  // ===================\n  @action\n  async onRequestLocalhostPermission() {\n    this.hasRequestedLocalhostPermission = true;\n\n    // If permission is not denied, proceed with checking the agent\n    if (this.localNetworkPermissionState !== 'denied') {\n      await this.checkAgentEndpoint();\n    }\n  }\n\n  @action\n  async checkLocalNetworkPermission() {\n    if (!this.isLocalhostUrl) {\n      this.localNetworkPermissionState = null;\n      return;\n    }\n\n    try {\n      // @ts-expect-error - local-network-access is not yet in TypeScript types\n      const permissionStatus = await navigator.permissions.query({ name: 'local-network-access' });\n      this.localNetworkPermissionState = permissionStatus.state;\n\n      // Listen for permission changes\n      permissionStatus.onchange = () => {\n        this.localNetworkPermissionState = permissionStatus.state;\n      };\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      // Permission API not supported or local-network-access not available\n      // Fallback to granted to not block the flow\n      this.localNetworkPermissionState = 'granted';\n    }\n  }\n\n  @action\n  async shouldCheckAgentEndpoint() {\n    // Check permission state for localhost URLs\n    if (this.isLocalhostUrl && this.localNetworkPermissionState === null) {\n      await this.checkLocalNetworkPermission();\n    }\n\n    // NOTICE: launches checks to see if the agent is running\n    if (!this.checkAgentEndpointRunner && !!this.currentStep.checkIsAgentRunning) {\n      // Don't auto-start checking if it's localhost and permission is prompt\n      if (!this.isLocalhostUrl || this.localNetworkPermissionState === 'granted') {\n        await this.checkAgentEndpoint();\n      }\n    } else if (this.checkAgentEndpointRunner && !this.currentStep.checkIsAgentRunning) {\n      this.resetCheckAgentEndpointRunner();\n    }\n  }\n\n  /**\n   * @param {Number} interval(optional) interval between checks (useful to lower testing time)\n   */\n  async checkAgentEndpoint(interval = 3000) {\n    try {\n      if (this.isDestroyed || this.isDestroying) {\n        return;\n      }\n\n      const agentError = await this.applicationChecker.checkAgent(\n        this.currentEnvironment.apiEndpoint,\n      );\n\n      if (agentError) {\n        throw agentError;\n      }\n\n      this.isAgentResponding = true;\n      this.isCorsError = false;\n\n      if (\n        this.currentEnvironment.isActive\n        && this.isAgentResponding\n        && this.automateCheckAgentTransition\n      ) {\n        await this.onGoNext();\n      }\n    } catch (e) {\n      console.debug('Error checking agent endpoint:', e);\n      if (e instanceof CorsAgentError && !this.isCorsError) {\n        this.toastr.perform(ToastrTypeEnum.Error, e.message, { duration: 0 });\n        this.isCorsError = true;\n        this.segmentTracker.trackAgentCorsError(this.project.id, 'onboarding');\n      }\n      this.isAgentResponding = false;\n    } finally {\n      if (!this.isDestroyed && !this.isDestroying && !this.isAgentResponding) {\n        this.checkAgentEndpointRunner = later(\n          this.checkAgentEndpoint.bind(this, interval),\n          interval,\n        );\n      }\n    }\n  }\n\n  public resetCheckAgentEndpointRunner() {\n    if (this.checkAgentEndpointRunner) {\n      cancel(this.checkAgentEndpointRunner);\n      this.checkAgentEndpointRunner = null;\n    }\n  }\n\n  protected async tryBeforeNext(realBeforeNext: () => Promise<void>, defaultErrorMessage: string) {\n    try {\n      await realBeforeNext();\n    } catch (e) {\n      this.tracker.captureException(e as Error);\n      console.error(defaultErrorMessage, e);\n\n      const message: string = getFirstErrorDetail(e as Error) ?? defaultErrorMessage;\n      this.toastr.perform(ToastrTypeEnum.Error, message, { duration: 0 });\n      return false;\n    }\n\n    return undefined;\n  }\n\n  reset() {\n    this.currentStepKey = undefined;\n    this.isCorsError = false;\n    this.isAgentResponding = false;\n    this.applicationUrl = undefined;\n    this.databaseCredentials = undefined;\n    this.temporaryDatabaseCredentials = undefined;\n    this.showCredentialValidationErrors = false;\n    this.hasRequestedLocalhostPermission = false;\n    this.localNetworkPermissionState = null;\n  }\n}\n","import Controller from '@ember/controller';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ChartController extends Controller {\n  @service lianaSession;\n\n  @alias('model.chart') chart;\n}\n","import type CollectionEnvironmentModel from 'client/data/models/collection-environment';\nimport type DefaultPermissionsFragment from 'client/data/models/default-permissions';\nimport type Environment from 'client/data/models/environment';\nimport type { EnvironmentPermissionsAttributes } from 'client/data/models/environment-permissions';\nimport type FieldEnvironmentModel from 'client/data/models/field-environment';\nimport type RoleModel from 'client/data/models/role';\nimport type SmartActionPermissions from 'client/data/models/smart-action-permissions';\nimport type RoleConditionService from 'client/legacy/services/role-condition-service';\n\nimport Controller from '@ember/controller';\nimport { computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nimport sortByTwoKeys from 'client/utils/sort-by-two-keys';\n\nexport default class RolePermissionsController extends Controller {\n  @alias('model.currentEnvironment') currentEnvironment: Environment;\n  @alias('model.role') role: RoleModel;\n  @alias('model.collections') collections: CollectionEnvironmentModel[];\n\n  @service declare roleConditionService: RoleConditionService;\n\n  @computed('currentEnvironment.id', 'role.permissions.environments')\n  get permissions(): EnvironmentPermissionsAttributes | null {\n    if (this.role?.permissions?.environments) {\n      return this.role.permissions.environments.find(\n        (environment) => environment.environmentId === Number(this.currentEnvironment.id),\n      );\n    }\n\n    return null;\n  }\n\n  get defaultPermissions(): DefaultPermissionsFragment | null {\n    return this.permissions?.defaultPermissions;\n  }\n\n  @computed('permissions.collections')\n  get collectionsPermissions() {\n    if (this.permissions) {\n      return this.permissions.collections.toArray().sortBy('collectionName');\n    }\n\n    return null;\n  }\n\n  @computed('collections', 'collectionsPermissions')\n  get smartActionsPermissions(): Array<{\n    collection: CollectionEnvironmentModel;\n    permission: SmartActionPermissions;\n    filterableFields: FieldEnvironmentModel[];\n  }> {\n    if (this.collectionsPermissions) {\n      return this.collectionsPermissions\n        .map((permission) => permission.smartActions.toArray())\n        .flat()\n        .sort(sortByTwoKeys({ firstKey: 'collectionName', secondKey: 'smartActionName' }))\n        .map((permission) => {\n          const collection = this.collections.findBy('name', permission.collectionName);\n          return {\n            permission,\n            collection,\n            filterableFields: this.roleConditionService.getFieldsFilterable(collection),\n          };\n        });\n    }\n\n    return null;\n  }\n}\n","import { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport { ERROR_ENVIRONMENT_DISABLED } from 'client/config/errors';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport RolePermissionsController from 'client/legacy/abstract-controllers/role-permissions-controller';\n\nexport default class RolePermissionsDetailsController extends RolePermissionsController {\n  queryParams = ['mode'];\n  @service router;\n  @service errorHandler;\n  /** @type {import('client/legacy/services/toastr').default} */\n  @service toastr;\n\n  isLoading = false;\n\n  @computed('role.name')\n  get partialBreadcrumb() {\n    return [\n      {\n        displayName: 'Roles',\n        link: 'project.project-settings.roles.index',\n        isClickable: true,\n      },\n      {\n        displayName: this.role.name,\n        link: 'project.project-settings.roles.details.environment-permissions.index',\n        isClickable: true,\n      },\n    ];\n  }\n\n  @computed('permissions.enabled')\n  get disabled() {\n    return !this.permissions?.enabled;\n  }\n\n  @computed('role.name')\n  get error() {\n    return { type: ERROR_ENVIRONMENT_DISABLED, options: { roleName: this.role.name } };\n  }\n\n  @action\n  goOnEditMode() {\n    this.router.transitionTo({\n      queryParams: { mode: 'edit' },\n    });\n  }\n\n  @action\n  async saveChanges() {\n    try {\n      await this.role.save();\n      this.toastr.perform(\n        ToastrTypeEnum.Success,\n        `${this.role.name} role permissions updated successfully.`,\n      );\n    } catch (reason) {\n      this.errorHandler.handleRequestFailure(\n        reason,\n        `${this.role.name} role permissions update failed`,\n      );\n    }\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport displayHubspotLiveChat from 'client/decorators/display-hubspot-live-chat';\n\n@displayHubspotLiveChat()\nexport default class OnboardingSelectionRoute extends Route {\n  /** @type {import('client/legacy/services/onboarding-context-service').default} */\n  @service router;\n\n  async model() {\n    const { project, guest } = this.modelFor('project.onboarding');\n\n    return { project, guest };\n  }\n\n  setupController(controller, model, transition) {\n    super.setupController(controller, model);\n\n    this.router.on('routeWillChange', ({ to }) => {\n      controller.setSelectedPanel(to?.queryParams?.queryPanel);\n    });\n\n    controller.setSelectedPanel(transition.to?.queryParams?.queryPanel);\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type WorkspaceFeatureState from 'client/features/workspace/state';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type RouteTransitionHandlerSharedBusinessService from 'client/shared/services/route-transition-handler';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\ntype Model = WorkspaceComponentModel;\ninterface Params {\n  component_id: string;\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore Doesn't work with abstract class\n@preventLeavingWithoutSaving(null, {\n  shouldResetEditModeOnAbort: true,\n})\nexport default abstract class AbstractWorkspaceConfigureComponentRoute extends Route<\n  Model,\n  Params\n> {\n  @service protected eventBus: EventBusService;\n  @service protected router: RouterService;\n  @service('feature/notification') private notificationService: NotificationFeatureService;\n  @service('shared/route-transition-handler')\n  private routeTransitionHandler: RouteTransitionHandlerSharedBusinessService;\n\n  @service('feature/workspace/state') private workspaceState: WorkspaceFeatureState;\n\n  @tracked component: WorkspaceComponentModel | null = null;\n\n  abstract get noComponentRedirectionRoute(): string;\n  abstract get workspace(): WorkspaceModel;\n\n  model(params: Params) {\n    const component = this.workspace.components.findBy('id', params.component_id);\n    this.component = component;\n\n    return component;\n  }\n\n  afterModel(workspaceComponent: WorkspaceComponentModel) {\n    if (!workspaceComponent) {\n      this.notificationService.createToastr(ToastrTypeEnum.Error, 'Component could not be found');\n      void this.router.replaceWith(this.noComponentRedirectionRoute);\n      return;\n    }\n    if (workspaceComponent.isTabs) {\n      this.eventBus.trigger(EventBusEventsEnum.WorkspaceHideConfirmationRightPanel);\n    }\n  }\n\n  async willTransition(transition: Transition) {\n    const handled = await this.routeTransitionHandler.handleWillTransition(transition);\n    if (handled) return false;\n    this.eventBus.trigger(EventBusEventsEnum.WorkspaceHideConfirmationRightPanel);\n  }\n\n  mustPreventLeaving() {\n    return (\n      this.component.hasDirtyAttributes\n      || this.component.hasDirtyName\n      || this.workspaceState.isDisplayingBreakingChangePanel\n      || this.workspaceState.isDisplayingDeletePanel\n    );\n  }\n\n  onLeavingWithoutSaving() {\n    this.component.rollbackAttributes();\n    this.eventBus.trigger(EventBusEventsEnum.WorkspaceHideConfirmationRightPanel);\n  }\n}\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { next } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving('chart')\nexport default class ChartRoute extends Route {\n  @service awsCodeUploader;\n  @service smartCodeRegister;\n  @service errorHandler;\n  @service eventBus;\n  @service toastr;\n\n  mustPreventLeaving(transition) {\n    const { chart } = this.modelFor(this.routeName);\n    const isDirty = chart?.isNew || chart?.hasDirtyAttributes || chart?.hasDirtyRelationships;\n    return !!isDirty && (!transition || !transition.to.name.endsWith('chart.smart-edit'));\n  }\n\n  onLeavingWithoutSaving() {\n    const { chart } = this.modelFor(this.routeName);\n    if (chart) {\n      if (chart.isNew) {\n        chart.unloadRecord();\n      } else {\n        const { stat } = chart;\n        chart.rollbackAttributes();\n        chart.rollbackRelationships();\n        chart.stat = stat;\n      }\n    }\n  }\n\n  static _getMaxY(charts, currentChart) {\n    return Math.max(\n      0,\n      ...charts.map((chart) => {\n        if (currentChart === chart) return 0;\n\n        const { y, height } = chart.displaySettings;\n        return y + height;\n      }),\n    );\n  }\n\n  static _getDefaultWidthAndHeight(chart) {\n    if (chart.type === 'Leaderboard') {\n      return { width: 2, height: 3 };\n    }\n    if (['Value', 'Objective', 'Percentage'].includes(chart.type)) {\n      return { width: 1, height: 1 };\n    }\n    return { width: 1, height: 2 };\n  }\n\n  @action\n  async saveChart(chart) {\n    const { isNew } = chart;\n\n    if (chart.isSmart) {\n      // NOTICE: Unregister the component if the chart is not allowed to use javascript.\n      if (chart.changedAttributes()?.allowJavascript?.[1] === false) {\n        this.smartCodeRegister.unregisterComponent(chart.registryName);\n      }\n\n      await this.awsCodeUploader.perform(chart);\n    }\n\n    if (isNew) {\n      // NOTICE: Add the charts at the end to not destroy the currrent configuration\n      //         of the dashboard and to avoid multiple update on charts.\n      const charts = chart.dashboard ? chart.get('dashboard.charts') : chart.get('viewEdit.charts');\n      chart.set('displaySettings.y', ChartRoute._getMaxY(charts, chart));\n\n      // NOTICE: Define default width and height based on chart type.\n      const { width, height } = ChartRoute._getDefaultWidthAndHeight(chart);\n      chart.set('displaySettings.width', width);\n      chart.set('displaySettings.height', height);\n    }\n\n    try {\n      await chart.save();\n      this.send('closeModal');\n      this.toastr.perform('success', chart.name + (isNew ? ' created.' : ' updated.'));\n      // We need to trigger the eventBus in the next runloop to be sure a brand-new chart is already rendered before triggering this data fetch.\n      next(() => this.eventBus.trigger('chart.saved', chart));\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(\n        error,\n        `Chart ${chart.name} ${chart.isNew ? 'creation' : 'update'} failed`,\n      );\n    }\n  }\n\n  @action\n  async destroyChart(chart) {\n    const sureLabel = `Are you sure you want to remove the ${chart.name} chart?`;\n    const sure = window.confirm(sureLabel);\n\n    if (!sure) {\n      return;\n    }\n\n    this.send('closeModal');\n    chart.deleteRecord();\n\n    await chart.save();\n    this.toastr.perform('success', 'Chart deleted.');\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouteTransitionHandlerSharedBusinessService from 'client/shared/services/route-transition-handler';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class RenderingRoute extends Route {\n  @service('shared/route-transition-handler')\n  routeTransitionHandler: RouteTransitionHandlerSharedBusinessService;\n\n  willTransition(transition: Transition) {\n    return this.routeTransitionHandler.handleWillTransition(transition);\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type RenderingModel from 'client/data/models/rendering';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class RestrictedSectionAccessRoute extends Route {\n  @service private currentUser: CurrentUserService;\n  @service private router: RouterService;\n  @service('feature/folder') private folderFeature: FolderFeatureService;\n\n  async beforeModel(transition: Transition) {\n    await super.beforeModel(transition);\n\n    if (this.currentUser.editMode) {\n      return;\n    }\n\n    const { rendering } = this.modelFor('project.rendering') as { rendering: RenderingModel };\n    const sections = rendering.sectionsDecoratedVisible;\n\n    if (sections.length === 0) {\n      void this.router.transitionTo('project.rendering.reports.activity');\n      return;\n    }\n\n    const authorized = sections.any((section) => {\n      return section.path && transition.to.name && transition.to.name.includes(section.path);\n    });\n\n    if (authorized || this.folderFeature.shouldAllowInvisibleSection(transition?.to?.name)) {\n      return;\n    }\n\n    void this.router.transitionTo(sections[0].path);\n  }\n}\n","import Route from '@ember/routing/route';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving('role')\nexport default class RolePermissionsDetailsRoute extends Route {\n  // We have to do this to make the \"mode\" query param unsticky (always removed if transition).\n  resetController(controller) {\n    controller.set('mode', null);\n  }\n}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\nimport ChartRoute from 'client/legacy/abstract-routes/chart-route';\nimport AutoCompleteViewHelper from 'client/utils/auto-complete-view-helper';\n\n@preventLeavingWithoutSaving('smartChart', { shouldResetEditModeOnAbort: true })\nexport default class SmartChartEditorRoute extends ChartRoute {\n  settingsDisplayName = 'Smart Chart Editor';\n  titleToken = 'Smart Chart Editor';\n  isSettings = true;\n\n  @service awsCodeDownloader;\n  @service currentUser;\n  @service routeHistory;\n  @service router;\n  @service store;\n\n  async model(params) {\n    const chart = this.store.peekRecord('chart', params.chart_id);\n\n    if (!chart?.isSmart) {\n      const previousRoute = this.routeHistory.getPreviousRoute();\n      return previousRoute\n        ? this.router.transitionTo(previousRoute.routeName, ...previousRoute.params)\n        : this.router.transitionTo('project.rendering');\n    }\n\n    if (!chart.componentCode) {\n      await this.awsCodeDownloader.download(chart);\n    }\n\n    return hash({ chart });\n  }\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    controller.smartChart = model.chart;\n    controller.AutoCompleteViewHelper = AutoCompleteViewHelper;\n  }\n\n  @action\n  closeModal() {}\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport getPolymorphicDataType from 'client/utils/get-polymorphic-data-type';\n\nexport const prefillParentRecord = (\n  { lianaFeatures },\n  field,\n  record,\n  parentRecord,\n  polymorphicCollection,\n) => {\n  const environment = field?.collection?.rendering?.environment;\n  const prefilledRows = [];\n\n  // TODO remove me when all clients are on forest-express-sequelize > 8.0.6 or rails > 7.0.0\n  // NOTE: Retrieve the field name referenced by the rowEdit (eg. current\n  //       related data field)\n  const rowEditReferenceFieldName = field.reference?.split('.')[1] || polymorphicCollection?.name;\n\n  const prefillRow = (row, parentField) => {\n    record.set(row.field.attributeNameWithRelationships, parentRecord);\n    prefilledRows.pushObject(row);\n\n    if (parentField.isHasMany) {\n      parentRecord[parentField.attributeNameWithRelationships].pushObject(record);\n    } else {\n      parentRecord[parentField.attributeNameWithRelationships] = record;\n    }\n  };\n\n  (field.referenceModel || polymorphicCollection).viewCreate.plainRows.forEach((row) => {\n    if (!row.field.reference) return;\n\n    // NOTE: Test that the models from the two references are equal. Also test\n    //       that they reference the same field. In case there are multiple\n    //       references to the same model.\n    if (row.field.referenceModel?.id === field.collection.id) {\n      // Notice: the agent supports the inverseOf parameter\n      if (environment && lianaFeatures.isFeatureCompatible('inverseOfSupport', environment)) {\n        if (row.field.inverseOf === field.fieldName) {\n          prefillRow(row, field);\n        }\n        // TODO remove me when all clients are on forest-express-sequelize > 8.0.6\n        //  or rails > 7.0.0\n      } else {\n        // THIS IS FOR OLD AGENTS ONLY !!!\n        // NOTE: Retrieve the field name referenced by the current field\n        const currentReferenceFieldName = row.field.reference.split('.')[1];\n        if (rowEditReferenceFieldName === currentReferenceFieldName) {\n          prefillRow(row, field);\n        }\n      }\n    }\n\n    if (row.field.isPolymorphic) {\n      const collection = getPolymorphicDataType(\n        row.field.polymorphicReferencedModels,\n        parentRecord.constructor.modelName,\n      );\n\n      if (collection) {\n        prefillRow(row, field);\n      }\n    }\n  });\n\n  return prefilledRows;\n};\n\nexport default class ViewEditRelationshipCreateRoute extends Route {\n  @service lianaFeatures;\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    controller.prefilledRows = [];\n    // Setup the relationship key value as we are in a has many\n    if (model.field.reference) {\n      controller.prefilledRows = prefillParentRecord(\n        this,\n        model.field,\n        model.record,\n        model.parentRecord,\n        model.collection,\n      );\n    }\n  }\n}\n","import Mixin from '@ember/object/mixin';\nimport { service } from '@ember/service';\n\nimport PropTypes from 'client/utils/prop-types-utils';\nimport { deleteRecords, getCollectionId, triggerSmartAction } from 'client/utils/smart-view-utils';\n\n// eslint-disable-next-line ember/no-new-mixins\nexport default Mixin.create({\n  toastr: service(),\n\n  propTypes: {\n    fetchRecords: PropTypes.func.isRequired,\n    triggerCustomAction: PropTypes.func.isRequired,\n    deleteRecords: PropTypes.func.isRequired,\n  },\n\n  actions: {\n    fetchRecords(options) {\n      this.fetchRecords(options);\n    },\n    triggerSmartAction(...args) {\n      return triggerSmartAction(this, ...args);\n    },\n    deleteRecords(...args) {\n      return deleteRecords(this, ...args);\n    },\n  },\n\n  getCollectionId(...args) {\n    return getCollectionId(this, ...args);\n  },\n});\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\nimport { isChrome, isFirefox, isOpera, isSafari } from 'client/utils/browser-utils';\n\nexport default class ApplicationController extends Controller {\n  @service popup;\n  @service router;\n  @service toastr;\n  @service('feature/browser-extension/state') browserExtensionFeatureState;\n  @service('shared/state/forest-environment') forestEnvironmentSharedState;\n  @service faviconManager;\n\n  @tracked displayWarningBrowser = false;\n  @tracked displayWarningMobile = false;\n  @tracked continueAnywayOnMobile = false;\n\n  environment = config.nodeEnv;\n\n  get displayWarningBrowserWhenNotInExtension() {\n    return (\n      !this.browserExtensionFeatureState.isUsedFromBrowserExtension\n      && !this.continueAnywayOnMobile\n      && this.displayWarningMobile\n      && this.router.currentRouteName !== 'mcp-oauth-redirect'\n    );\n  }\n\n  get shouldShowDevMarker() {\n    return this.forestEnvironmentSharedState.shouldShowDevMarker;\n  }\n\n  @action\n  toggleDevMarker() {\n    this.faviconManager.toggleDevMarker();\n  }\n\n  @action\n  hideForestEnvironmentIndicator() {\n    this.forestEnvironmentSharedState.forestEnvironmentIndicatorOpened = false;\n  }\n\n  @action\n  continueAnywayOnMobileAction() {\n    this.continueAnywayOnMobile = true;\n  }\n\n  @action\n  continueAnywayOnBrowser() {\n    this.displayWarningBrowser = false;\n  }\n\n  @action\n  removeToast(id) {\n    this.toastr.remove(id);\n  }\n\n  checkBrowser() {\n    if (!isChrome() && !isFirefox() && !isOpera() && !isSafari()) {\n      this.displayWarningBrowser = true;\n    }\n  }\n\n  @action\n  handleWindowResize() {\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n\n    this.displayWarningMobile = window.innerWidth < 800;\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    if (config.environment !== 'test') {\n      this.checkBrowser();\n      this.handleWindowResize();\n    }\n\n    window.addEventListener('resize', this.handleWindowResize);\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    window.removeEventListener('resize', this.handleWindowResize);\n  }\n}\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { isProjectLiveDemo } from 'client/utils/livedemo';\nimport getRouteInfo from 'client/utils/route-info-getter';\nimport transitionToUrl from 'client/utils/transition-to-url';\n\nexport default class ApplicationRoute extends Route {\n  @service currentUser;\n  @service eventBus;\n  /** @type {import('../../services/forest-session').default} */\n  @service session;\n  /** @type {import('../../services/saml-flow').default} */\n  @service samlFlow;\n  /** @type {import('client/legacy/services/liana-session').default} */\n  @service lianaSession;\n  /** @type {import('../../services/toastr').default} */\n  @service toastr;\n  /** @type {import('../../services/route-history').default} */\n  @service routeHistory;\n  /** @type {import('../../services/tracker').default} */\n  @service tracker;\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n  /** @type {import('../../services/logout-message').default} */\n  @service logoutMessage;\n  /** @type {import('../../services/current-organization').default} */\n  @service currentOrganization;\n  /** @type {import('../../services/authenticationRedirectionService').default} */\n  @service authenticationRedirectionService;\n  /** @type {import('../../services/last-visited-organization-service').default} */\n  @service lastVisitedOrganizationService;\n  @service('shared/user-preference-manager') userPreferenceManager;\n  @service('feature/browser-extension') browserExtensionFeatureService;\n\n  async beforeModel(transition) {\n    // NOTICE: Ember Simple Auth: The automatic session initialization is deprecated.\n    //         This setup must be called when the application starts up.\n    await this.session.setup();\n    this.session.ensureCurrentUserIsPopulated();\n    this.userPreferenceManager.setupTheme();\n    // NOTICE: Initialize the Personal space\n    this.currentOrganization.initialize();\n\n    super.beforeModel(transition);\n\n    // NOTICE: Create a fake route history to manage edge case with the Breadcrumb.\n    this.routeHistory.setCurrentRoute({}, { to: { name: 'start' } });\n\n    // NOTICE: Once an admin validate a new Ip Access from a ip request email, he will be\n    //         redirected in the app with a success toastr message.\n    if (transition.to.queryParams.success) {\n      this.toastr.perform('success', 'New IP rule validated.');\n    }\n\n    if (transition.to.queryParams.error === 'ip-rule-already-accepted') {\n      this.toastr.perform('error', 'IP rule already accepted.');\n    }\n\n    if (this.session.isAuthenticated) {\n      this.lastVisitedOrganizationService.checkSsoAuthenticationSwitch();\n      const user = this.currentUser.model;\n\n      const { params: projectRouteParams = {} } = getRouteInfo(transition.to, 'project') || {};\n      const isProjectRoute = Boolean(projectRouteParams.project_name);\n      const isLiveDemoRoute =\n        transition.to.name === 'livedemo' || isProjectLiveDemo(projectRouteParams.project_name);\n      const isSignUpRoute = transition.to.name === 'authentication.signup';\n\n      // Project routes fetch the organization via project.model — skipping here\n      // avoids a redundant GET /api/organizations/:id on cold project deep-links.\n      if (!isProjectRoute) {\n        await this.currentOrganization.defineById(this.session.currentOrganizationId);\n      }\n\n      if (isSignUpRoute && user?.isLiveDemo) {\n        this.session.handleInvalidation('authentication.signup');\n        return this.session.invalidate({ saveCurrentUrlForLogin: false });\n      }\n\n      if (!isLiveDemoRoute && user?.isLiveDemo) {\n        return this.session.invalidate({ saveCurrentUrlForLogin: false });\n      }\n\n      return user;\n    }\n\n    return null;\n  }\n\n  async afterModel(model, transition) {\n    super.afterModel(model, transition);\n    await this.browserExtensionFeatureService.redirectToHomeIfOutsideContext(transition);\n  }\n\n  @action\n  error(error, transition) {\n    // NOTICE: Manage redirection when the user tries to access a resource\n    //         which requires a different authentication from his current one.\n    if (error?.name === 'ForbiddenLoginResourceAccessError') {\n      const resourceTarget = this.authenticationRedirectionService.useRedirectAccess();\n      if (resourceTarget) {\n        return this.currentOrganization.transitionToProjectsIndex();\n      }\n\n      const { organizationName, resourceRequiresSso } = error.meta;\n      const redirectUrl = ApplicationRoute._transitionToUrl(this.router, transition, { ssl: true });\n\n      if (organizationName && resourceRequiresSso) {\n        this.authenticationRedirectionService.deleteRedirectTarget();\n        this.samlFlow.initiateLogin(organizationName, { destinationUrl: redirectUrl });\n      }\n\n      if (!resourceRequiresSso) {\n        this.logoutMessage.saveLogoutErrorMessage(\n          'You have been disconnected: you need to login without SSO.',\n        );\n        this.session.invalidateAndSaveTransition(redirectUrl, { saveCurrentUrlForLogin: false });\n      }\n    }\n    return true;\n  }\n\n  /** Wrap external dependency to help unit testing */\n  static _transitionToUrl(router, transition, { ssl }) {\n    return transitionToUrl(router, transition, { ssl });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-update this.toggleDevMarker this.shouldShowDevMarker}}\\n{{#if this.shouldShowDevMarker}}\\n  <div\\n    {{on \\'click\\' this.hideForestEnvironmentIndicator}}\\n    class=\\\"c-indicator-forest-environment c-indicator-forest-environment--{{this.environment}}\\\"\\n    role=\\\"button\\\"\\n  >\\n  </div>\\n{{/if}}\\n\\n{{#if this.displayWarningBrowser}}\\n  <ErrorScreen @iconName=\\\"desktop_windows\\\" @onContinueAction={{this.continueAnywayOnBrowser}}>\\n    <h1 class=\\\"c-error__title\\\">\\n      Your browser is not supported.\\n    </h1>\\n    <h3 class=\\\"c-error__subtitle\\\">\\n      Please use\\n      <Shared::DataDisplay::BetaIcon @iconName=\\\"chrome\\\" />\\n      Google Chrome,\\n      <Shared::DataDisplay::BetaIcon @iconName=\\\"firefox\\\" />\\n      Mozilla Firefox or\\n      <Shared::DataDisplay::BetaIcon @iconName=\\\"opera\\\" />\\n      Opera.\\n    </h3>\\n  </ErrorScreen>\\n{{else if this.displayWarningBrowserWhenNotInExtension}}\\n  <ErrorScreen @iconName=\\\"desktop_windows\\\" @onContinueAction={{this.continueAnywayOnMobileAction}}>\\n    <h1 class=\\\"c-error__title\\\">\\n      Your resolution is too low.\\n    </h1>\\n    <h3 class=\\\"c-error__subtitle\\\">\\n      For a better experience, we recommend you to have a resolution higher than 800x500 pixels.\\n    </h3>\\n  </ErrorScreen>\\n{{/if}}\\n\\n<Feedback::Toastr />\\n\\n{{#if this.popup.content}}\\n  <div class=\\\"l-popup-container\\\" role=\\\"button\\\">\\n    <div class=\\\"c-popup u-pa\\\">\\n      {{this.popup.content}}\\n    </div>\\n  </div>\\n{{/if}}\\n\\n<Shared::PortalFor @name=\\\"tooltip\\\" class=\\\"l-portal\\\" />\\n{{outlet}}\\n<Navigation::BetaContextMenu />\\n<Shared::PortalFor @name=\\\"edit-inline\\\" class=\\\"l-portal\\\" />\\n<Shared::PortalFor @name=\\\"modal\\\" class=\\\"l-portal c-body-modal\\\" />\\n<Shared::PortalFor @name=\\\"tooltip-like-modal\\\" class=\\\"l-portal c-body-modal\\\" />\\n<Shared::PortalFor @name=\\\"widget-modal\\\" class=\\\"l-portal c-body-modal c-body-modal--high\\\" />\\n<Shared::PortalFor @name=\\\"dropdown\\\" class=\\\"l-portal\\\" />\\n<Shared::PortalFor @name=\\\"color-picker\\\" class=\\\"l-portal\\\" />\\n<Shared::PortalFor @name=\\\"zoom-preview\\\" class=\\\"l-portal\\\" />\\n<Feature::Modal::ModalContainer />\\n<Shared::PortalFor @name=\\\"emoji-picker\\\" class=\\\"l-portal\\\" />\\n<Feature::Chat::Main />\\n\\n', { moduleName: 'client/legacy/pods/application/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class AuthenticationTokenRoute extends Route {\n  @service router;\n  @service session;\n\n  beforeModel(transition) {\n    this.session.requireAuthentication(transition, 'authentication.login');\n\n    this.router.replaceWith('user-settings.application-tokens.generate', {\n      queryParams: {\n        generate: true,\n        name: 'Forest Admin CLI, token automatically generated',\n      },\n    });\n  }\n}\n","import { isArray } from '@ember/array';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Model from '@ember-data/model';\nimport Component from '@glimmer/component';\n\nimport { argument, oneOfType } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class AlterValuesComponent extends Component {\n  @argument(oneOfType([Model, Object])) field;\n  @argument(Boolean) displaySettingsErrors;\n  @argument(Array) mappingValuesDuplicated;\n\n  @service store;\n\n  get hideDeleteLabel() {\n    const {\n      field: { isEnum, mappingValues },\n    } = this.args;\n\n    return isEnum || mappingValues.length < 2;\n  }\n\n  get valueType() {\n    const {\n      field: { type },\n    } = this.args;\n\n    if (type === 'Number' || (isArray(type) && type.objectAt(0) === 'Number')) {\n      return 'number';\n    }\n    return 'text';\n  }\n\n  isWidgetEditDropDownStatic() {\n    const {\n      field: { widgetEdit },\n    } = this.args;\n    return (\n      widgetEdit\n      && widgetEdit.name === 'dropdown'\n      && widgetEdit.parameters.static\n      && widgetEdit.parameters.static.values\n    );\n  }\n\n  @action\n  onEnumValueChange(event, newValue, oldValue) {\n    const {\n      field: { widgetEdit },\n    } = this.args;\n\n    // NOTICE: edit settings\n    if (this.isWidgetEditDropDownStatic()) {\n      const {\n        parameters: {\n          static: { values },\n        },\n      } = widgetEdit;\n      const valuesFound = values.filter((value) => value === oldValue);\n\n      if (valuesFound.length) {\n        const index = values.indexOf(oldValue);\n        if (index !== -1) {\n          values.removeObject(oldValue);\n          values.insertAt(index, newValue);\n        }\n      }\n    }\n  }\n\n  @action\n  addRule() {\n    const {\n      field: { isEnum, mappingValues },\n    } = this.args;\n\n    if (!isEnum) {\n      mappingValues.pushObject(\n        this.store.createRecord('value-label', {\n          value: '',\n          label: '',\n        }),\n      );\n    }\n  }\n\n  @action\n  removeRule(rule) {\n    const {\n      field: { widgetEdit, mappingValues },\n    } = this.args;\n\n    mappingValues.removeObject(rule);\n    // NOTICE: We need to remove it from all the widget settings.\n    if (!rule.value && !rule.label) {\n      return;\n    }\n\n    // NOTICE: edit settings\n    if (this.isWidgetEditDropDownStatic()) {\n      widgetEdit.parameters.static.values.removeObject(rule.value);\n    }\n  }\n\n  resetWidget() {\n    const { field } = this.args;\n\n    // NOTICE: edit settings\n    if (this.isWidgetEditDropDownStatic()) {\n      field.widgetEdit.parameters.static.values = [];\n    }\n  }\n\n  @action\n  clearRules() {\n    const { field } = this.args;\n\n    field.mappingValues = [];\n    field.mappingValues.pushObject(\n      this.store.createRecord('value-label', {\n        value: '',\n        label: '',\n      }),\n    );\n\n    this.resetWidget();\n  }\n\n  @action\n  switch(value) {\n    const { field } = this.args;\n    field.isUsingAlteredValues = value;\n\n    if (value === false) {\n      this.resetWidget();\n    }\n\n    // NOTICE: particular case with field type Number\n    if (\n      field.conditionalFormatting\n      && field.conditionalFormatting.rules\n      && field.type === 'Number'\n    ) {\n      // NOTICE: we reset all rules, not default rule\n      field.conditionalFormatting.rules.clear();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-alter-values\\\">\\n  <div class=\\\"c-alter-values__header\\\">\\n    <Shared::BetaLabel\\n      @label=\\\"Alter values\\\"\\n      @description=\\\"Alter stored values before they are displayed.\\\"\\n    />\\n    <Shared::Form::Toggle\\n      @value={{@field.isUsingAlteredValues}}\\n      @onChange={{this.switch}}\\n      data-test-switch-for=\\\"alter-values\\\"\\n    />\\n  </div>\\n\\n  {{#if @field.isUsingAlteredValues}}\\n    <div class=\\\"c-alter-values__labels\\\">\\n      <Shared::BetaLabel @label=\\\"Stored value\\\" class=\\\"c-alter-values__stored-value-label\\\" />\\n      <Shared::BetaLabel\\n        @label=\\\"Display value\\\"\\n        class=\\\"c-alter-values__altered-value-label\\n          {{if this.hideDeleteLabel \\'c-alter-values__altered-value-label--no-delete\\'}}\\\"\\n      />\\n    </div>\\n\\n    {{#each @field.mappingValues as |option|}}\\n      <div class=\\\"c-alter-values__mapping\\\" data-test-mapping={{true}}>\\n        <Shared::BetaInput\\n          @value={{option.value}}\\n          @placeholder=\\\"Value\\\"\\n          @disabled={{@field.isEnum}}\\n          @onInput={{this.onEnumValueChange}}\\n          @class=\\\"c-alter-values__stored-value\\\"\\n          @autofocus={{option.isNew}}\\n          @type={{this.valueType}}\\n          @state={{if\\n            @displaySettingsErrors\\n            (if (array-contains @mappingValuesDuplicated option.value) \\'error\\' \\'success\\')\\n          }}\\n          data-test-stored-value-mapping={{option.value}}\\n        />\\n        <Shared::BetaInput\\n          @value={{option.label}}\\n          @placeholder=\\\"Altered value\\\"\\n          @class=\\\"c-alter-values__altered-value\\\"\\n          @state={{if @displaySettingsErrors (if option.label \\'success\\' \\'error\\')}}\\n          data-test-altered-value-mapping={{option.label}}\\n        />\\n\\n        {{#unless this.hideDeleteLabel}}\\n          <Shared::Button::BetaButton\\n            @type=\\\"link-tertiary\\\"\\n            @iconName=\\\"close\\\"\\n            @underline={{false}}\\n            @action={{fn this.removeRule option}}\\n            @async={{false}}\\n            class=\\\"c-alter-values__remove\\\"\\n            data-test-remove-mapping={{option.value}}\\n          />\\n        {{/unless}}\\n      </div>\\n    {{/each}}\\n\\n    {{#unless @field.isEnum}}\\n      <div class=\\\"c-alter-values__actions\\\">\\n        <Shared::Button::BetaButton\\n          @type=\\\"link-primary\\\"\\n          @text=\\\"Add a rule\\\"\\n          @iconName=\\\"add\\\"\\n          @underline={{false}}\\n          @noPadding={{true}}\\n          @size=\\\"small\\\"\\n          @action={{this.addRule}}\\n          data-test-add-rule={{true}}\\n        />\\n        <Shared::Button::BetaButton\\n          @type=\\\"link-secondary-light\\\"\\n          @underline={{false}}\\n          @noPadding={{true}}\\n          @text=\\\"Clear all\\\"\\n          @iconName=\\\"close\\\"\\n          @action={{this.clearRules}}\\n          @size=\\\"small\\\"\\n          data-test-clear-rules={{true}}\\n        />\\n      </div>\\n    {{/unless}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/alter-values/template.hbs' });\n","import type AssigneeModel from 'client/data/models/assignee';\nimport type { AssigneeComponentVariant } from 'client/legacy/pods/components/assignee/component';\n\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface AssigneeTooltipArgs {\n  email?: string;\n  loading?: boolean;\n  assignee?: AssigneeModel;\n  variant?: AssigneeComponentVariant;\n}\n\n@validateArguments\nexport default class AssigneeAssigneeTooltipComponent extends Component<AssigneeTooltipArgs> {\n  static propTypes = {\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n    email: PropTypes.string,\n    loading: PropTypes.bool.isRequired,\n    assignee: PropTypes.object,\n    variant: PropTypes.string.isRequired,\n  };\n\n  get tooltipContent(): string {\n    if (!this.args.email) return 'Unassigned';\n    if (this.args.loading) return `Loading '${this.args.email}' user data.`;\n    if (this.args.assignee?.foundInDB)\n      return `${this.args.assignee.fullName} (${this.args.assignee.email})`;\n    return `User '${this.args.email}' is not part of this project.`;\n  }\n\n  get isFullVariant(): boolean {\n    return this.args.variant === 'full' && this.args.assignee?.foundInDB;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div>\\n  {{#if this.isFullVariant}}\\n    <div data-test-assignee-email>\\n      Email:\\n      {{@assignee.email}}\\n    </div>\\n    {{#if @assignee.role}}\\n      <div data-test-assignee-role>\\n        Role:\\n        {{@assignee.role.name}}\\n      </div>\\n    {{/if}}\\n    {{#if @assignee.teams}}\\n      <div data-test-assignee-teams>\\n        Teams:\\n        {{@assignee.teamsString}}\\n      </div>\\n    {{/if}}\\n  {{else}}\\n    {{this.tooltipContent}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/assignee/assignee-tooltip/template.hbs' });\n","import type AssigneeModel from 'client/data/models/assignee';\nimport type AssigneeFetcherService from 'client/legacy/services/assignee-fetcher';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type AssigneeComponentVariant = 'picture' | 'full';\n\nexport interface AssigneeArgs {\n  email?: string;\n  variant?: AssigneeComponentVariant;\n}\n\n@validateArguments\nexport default class AssigneeComponent extends Component<AssigneeArgs> {\n  static propTypes = {\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n    email: PropTypes.string,\n    variant: PropTypes.string.isRequired,\n  };\n\n  @service assigneeFetcher: AssigneeFetcherService;\n\n  @tracked loading = false;\n  @tracked assignee: AssigneeModel | null = null;\n\n  get hasText(): boolean {\n    return this.args.variant === 'full';\n  }\n\n  get tooltipSide(): string {\n    return this.args.variant === 'full' ? 'left' : 'right';\n  }\n\n  @action\n  async handleLoadData() {\n    this.loading = true;\n    this.assignee = await this.assigneeFetcher.fetchAssignee(this.args.email);\n    this.loading = false;\n  }\n}\n","import type ApplicationInstance from '@ember/application/instance';\nimport type AssigneeFetcherService from 'client/legacy/services/assignee-fetcher';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport { action } from '@ember/object';\nimport { debounce } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport AssigneeModel from 'client/data/models/assignee';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  value: string | null | string[];\n  multipleValues?: boolean;\n  placeholder?: string;\n  disabled?: boolean;\n  debounceTime?: number;\n  overrideSearch?: (search: string) => AssigneeOption[];\n  onChange?: (value: string | string[] | number | null) => void;\n  initialOptions: AssigneeModel[];\n  valuePath?: string;\n}\n\nexport interface AssigneeOption {\n  email: string;\n  fullNameAndEmail: string;\n  internalId?: number;\n}\n\n@validateArguments\nexport default class AssigneeSearchComponent extends Component<Args> {\n  static propTypes = {\n    value: PropTypes.oneOfType([\n      PropTypes.string,\n      PropTypes.number,\n      PropTypes.arrayOf(PropTypes.string),\n    ]),\n    multipleValues: PropTypes.bool,\n    placeholder: PropTypes.string,\n    disabled: PropTypes.bool,\n    debounceTime: PropTypes.number,\n    overrideSearch: PropTypes.func,\n    onChange: PropTypes.func,\n    initialOptions: PropTypes.arrayOf(PropTypes.instanceOf(AssigneeModel)),\n    valuePath: PropTypes.string,\n  };\n\n  @service declare assigneeFetcher: AssigneeFetcherService;\n  @service declare tracker: TrackerService;\n\n  @tracked optionsToDisplay: AssigneeOption[] = [];\n  @tracked isLoading;\n\n  searchValue: string;\n\n  constructor(owner: ApplicationInstance, args: Args) {\n    super(owner, args);\n\n    // Avoid calling search when known users are provided\n    if (this.args.initialOptions) {\n      this.optionsToDisplay = this.args.initialOptions;\n    } else {\n      this.search().catch((e: Error) => {\n        console.error(e);\n        this.tracker.captureException(e);\n      });\n    }\n  }\n\n  @action\n  handleSearchValueChange(searchValue: string, previousSearchValue: string) {\n    this.searchValue = searchValue;\n    if (searchValue !== previousSearchValue) {\n      debounce(this.search, this.args?.debounceTime || 500);\n    }\n  }\n\n  @action\n  async search() {\n    this.isLoading = true;\n\n    const options: AssigneeOption[] = this.args.overrideSearch\n      ? this.args.overrideSearch(this.searchValue)\n      : await this.assigneeFetcher.searchAssignees(this.searchValue);\n\n    this.isLoading = false;\n    if (this.args.multipleValues && this.args.value) {\n      this.optionsToDisplay = options.concat(\n        (this.args.value as Array<string>)\n          .filter((email) => !options.find((assignee) => assignee.email === email))\n          .map((email) => ({ email, fullNameAndEmail: email }) as AssigneeOption),\n      );\n    } else {\n      this.optionsToDisplay = options;\n    }\n  }\n\n  @action\n  handleValueChange(value: string | string[] | number | null) {\n    if (!value) {\n      void this.search();\n    }\n    if (this.args.onChange) {\n      this.args.onChange(value);\n    }\n  }\n\n  @action\n  handleInitialOptionsChange() {\n    this.optionsToDisplay = this.args.initialOptions || this.optionsToDisplay;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-assignee-search\\\"\\n  ...attributes\\n  {{did-update this.handleInitialOptionsChange @initialOptions}}\\n>\\n  <Shared::BetaSelectSearch\\n    @options={{this.optionsToDisplay}}\\n    @value={{@value}}\\n    @namePath=\\\"fullNameAndEmail\\\"\\n    @placeholder={{@placeholder}}\\n    @valuePath={{or @valuePath \\'email\\'}}\\n    @disabledPath=\\\"disabled\\\"\\n    @isLoadingOptions={{this.isLoading}}\\n    @multipleValues={{@multipleValues}}\\n    @disabled={{@disabled}}\\n    @onCancelSearch={{this.handleSearchValueChange}}\\n    @enableLocalFilterAndHighlighter={{true}}\\n    @onSearchValueChange={{this.handleSearchValueChange}}\\n    @customBlockList={{true}}\\n    @onChange={{this.handleValueChange}}\\n    data-test-assignee-search={{@field.fieldName}}\\n  >\\n    <:selected-item-list as |selectedValues removeValue|>\\n      <div>\\n        {{#each selectedValues as |selectedValue index|}}\\n          <div class=\\\"c-assignee-search__option\\\">\\n            <Assignee @email={{selectedValue.value}} @variant=\\\"full\\\" />\\n            <Shared::BetaIconButton\\n              @icon={{\\'close\\'}}\\n              @size=\\\"medium\\\"\\n              disabled={{@disabled}}\\n              {{on \\'click\\' (stop-propagation (fn removeValue selectedValue.value index))}}\\n              data-test-assignee-search-selected-item={{selectedValue.value}}\\n            />\\n          </div>\\n        {{/each}}\\n      </div>\\n    </:selected-item-list>\\n  </Shared::BetaSelectSearch>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/assignee/search/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-assignee\\\" ...attributes data-test-assignee {{did-update this.handleLoadData @email}}>\\n  <Feature::User::Profile\\n    @user={{(hash\\n      email=this.assignee.email initials=this.assignee.initials fullName=this.assignee.fullName\\n    )}}\\n    @onLoadData={{this.handleLoadData}}\\n    @isUserNotFoundInDB={{not this.assignee.foundInDB}}\\n    @shouldDisplayNameOrEmail={{this.hasText}}\\n  />\\n  <Shared::Feedback::BetaTooltip @side={{this.tooltipSide}}>\\n    <Assignee::AssigneeTooltip\\n      @loading={{this.loading}}\\n      @assignee={{this.assignee}}\\n      @email={{@email}}\\n      @variant={{@variant}}\\n    />\\n  </Shared::Feedback::BetaTooltip>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/assignee/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\nimport config from 'client/config/environment';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('iframe-google-login')\n@validateArguments\nexport default class AuthenticationIframeGoogleLoginComponent extends Component {\n  static propTypes = {\n    iframeClass: PropTypes.string,\n  };\n\n  googleAuthenticationRoute = null;\n\n  init(...args) {\n    super.init(...args);\n\n    const { defaultDomain } = config.APP;\n    const protocol = config.APP.useSSL ? 'https:' : 'http:';\n    const googleAuthenticationRoute = `${protocol}//${defaultDomain}/google-authentication`;\n\n    this.set('googleAuthenticationRoute', googleAuthenticationRoute);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<iframe\\n  src={{this.googleAuthenticationRoute}}\\n  class=\\\"iframe-google-login__iframe {{@iframeClass}}\\\"\\n  title=\\\"Google authentication\\\"\\n></iframe>\\n', { moduleName: 'client/legacy/pods/components/authentication/iframe-google-login/template.hbs' });\n","import type { ActionName } from 'client/legacy/services/google-authorization';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport window from 'ember-window-mock';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport tryParseJson from 'client/utils/try-parse-json';\n\ninterface Args {\n  googleLoginAction: () => Promise<void>;\n  googleSignUpAction: () => Promise<void>;\n}\n\n@validateArguments\nexport default class AuthenticationIframeMessageReceiverComponent extends Component<Args> {\n  static propTypes = {\n    googleLoginAction: PropTypes.func.isRequired,\n    googleSignUpAction: PropTypes.func.isRequired,\n  };\n\n  constructor(owner: unknown, args: Args) {\n    super(owner, args);\n    // eslint-disable-next-line @typescript-eslint/no-misused-promises\n    window.addEventListener('message', this.onMessage);\n  }\n\n  @action\n  async onMessage(event: MessageEvent<string>) {\n    const dataObj = tryParseJson<{ action: ActionName; authorization: string }>(event.data);\n\n    if (!dataObj) {\n      return;\n    }\n\n    if (dataObj.action === 'google-sign-in') {\n      await this.args.googleLoginAction();\n    } else if (dataObj.action === 'google-sign-up') {\n      await this.args.googleSignUpAction();\n    }\n  }\n\n  @action\n  willDestroy() {\n    super.willDestroy();\n    // eslint-disable-next-line @typescript-eslint/no-misused-promises\n    window.removeEventListener('message', this.onMessage);\n  }\n}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport Rendering from 'client/data/models/rendering';\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { getRouteStateParams } from 'client/utils/route-utils';\n\n@validateArguments\nexport default class AuthenticationLianaLoginComponent extends Component {\n  /** @private @readonly @type {import('../../../../services/liana-session').default} */\n  @service lianaSession;\n  /** @private @readonly @type {import('../../../../services/liana-session-oidc').default} */\n  @service lianaSessionOidc;\n  @service router;\n  /** @private @readonly @type {import('../../../../services/redirection').default} */\n  @service redirection;\n\n  /** @type {import('../../../../../data/models/rendering').default} */\n  @argument(Rendering) rendering;\n  /** @type {Function} */\n  @argument(Function) afterLogin;\n\n  @service('feature/authentication') authenticationFeatureService;\n\n  /** @returns {boolean} */\n  get supportsOpenIdConnect() {\n    return this.lianaSession.supportsOpenIdConnect;\n  }\n\n  get isLoggedIn() {\n    return this.lianaSession.isLoggedIn;\n  }\n\n  @action\n  async switchEnvironment(environment) {\n    const params = getRouteStateParams(this.router.currentRoute);\n    const whitelistParameterKey = ['project_name', 'environment_name', 'team_name', 'state'];\n    let targetRoute = 'project.rendering';\n    const targetParameters = {};\n\n    const routeNames = Object.keys(params);\n    // We want to skip the root route which is application se we need to do -2\n    for (let i = routeNames.length - 2; i >= 0; i -= 1) {\n      const routeName = routeNames[i];\n      const parameters = Object.keys(params[routeName]);\n      if (\n        parameters.length > 0\n        && !parameters.every((parameter) => whitelistParameterKey.includes(parameter))\n      ) {\n        break;\n      }\n      parameters.forEach((parameter) => {\n        targetParameters[parameter] = params[routeName][parameter];\n      });\n\n      targetRoute = routeName;\n    }\n\n    targetParameters.project_name = this.lianaSession.currentProject.name;\n    targetParameters.environment_name = environment.name;\n    targetParameters.team_name = this.args.rendering.team.name;\n\n    this.lianaSession.disableLogin();\n    await this.lianaSessionOidc.invalidateAll();\n    // NOTICE: We need to refresh the page because the rendering cache contains partial data.\n    //         For examples, all environments do not contains all their attributes.\n    this.redirection.redirectToHref(this.router.urlFor(targetRoute, targetParameters));\n  }\n}\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { alias, and } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport Rendering from 'client/data/models/rendering';\nimport validateArguments from 'client/decorators/validate';\nimport ErrorType from 'client/utils/error-type';\nimport { NoNetworkFailedToFetchError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nasync function tryGetJsonFromResponse(response) {\n  try {\n    return response.json ? await response.json() : undefined;\n    // eslint-disable-next-line sonarjs/no-ignored-exceptions\n  } catch (e) {\n    return undefined;\n  }\n}\n\n@validateArguments\nexport default class AuthenticationLianaLoginLegacyComponent extends Component {\n  @service currentUser;\n  @service('shared/fetch') fetchService;\n  @service session;\n  @service lianaSessionLegacy;\n  @service lianaSession;\n  @service lianaFeatures;\n  @service router;\n  @service segment;\n  @service toastr;\n  /** @type {import('client/app/services/tracker').default} */\n  @service tracker;\n  @service('feature/authentication') authenticationFeatureService;\n\n  static propTypes = {\n    rendering: PropTypes.instanceOf(Rendering).isRequired,\n    afterLogin: PropTypes.func.isRequired,\n    switchEnvironment: PropTypes.func.isRequired,\n  };\n\n  password = '';\n  displayTwoFactor = false;\n  twoFactorUserSecret = false;\n  twoFactorToken = null;\n  @alias('lianaSession.currentProject.nonBlockedAccessibleEnvironments') accessibleEnvironments;\n  @and('twoFactorUserSecret', 'displayTwoFactor') twoFactorRegistration;\n\n  @computed('accessibleEnvironments.length')\n  get canSwitchEnvironment() {\n    return this.accessibleEnvironments?.length > 1;\n  }\n\n  @computed('session.data.authenticated.authenticator')\n  get isUsingGoogleAuth() {\n    const { authenticator } = this.session.data.authenticated;\n    return authenticator ? authenticator.startsWith('authenticator:google-jwt') : false;\n  }\n\n  @action\n  resetPasswordAction() {\n    this.session.invalidate().then(() => {\n      window.location.href = this.router.urlFor('reset-password');\n    });\n  }\n\n  @action\n  async login(callback) {\n    const credentials = {};\n    if (this.isUsingGoogleAuth) {\n      credentials.forestToken = await this.lianaSessionLegacy.getSessionToken();\n    } else {\n      credentials.email = this.currentUser.email;\n      credentials.password = this.password;\n    }\n\n    const promise = this.lianaPost(`/forest/sessions${this.isUsingGoogleAuth ? '-google' : ''}`, {\n      ...credentials,\n      token: this.twoFactorToken,\n      twoFactorRegistration: this.twoFactorRegistration,\n      renderingId: this.rendering.get('id'),\n      projectId: this.lianaSession.currentProject.id,\n    });\n\n    promise\n      .then((response) => {\n        this._onLoginResponse(response);\n      })\n      .catch((error) => this.handleLoginErrors(error));\n\n    callback(promise);\n  }\n\n  /**\n   * @private\n   */\n  _onLoginResponse(response) {\n    if (!this.displayTwoFactor && response.twoFactorAuthenticationEnabled) {\n      this.set('displayTwoFactor', true);\n      this.set('twoFactorUserSecret', response.userSecret);\n      return;\n    }\n\n    this.segment.trackEvent('Unlock success');\n    this.lianaSessionLegacy.setLianaAuthToken(response.token);\n    this.initLiana();\n  }\n\n  async initLiana() {\n    this.afterLogin();\n  }\n\n  async lianaPost(route, data) {\n    const { apiEndpoint } = this.rendering.environment;\n\n    // NOTICE: Ensures it will set the session token for authenticated exports.\n    const withCredentials = this.lianaFeatures.isFeatureCompatible(\n      'exportSecure',\n      this.rendering.environment,\n    );\n\n    const response = await this.fetchService.fetch(`${apiEndpoint}${route}`, {\n      method: 'POST',\n      body: JSON.stringify(data),\n      headers: {\n        'Content-Type': 'application/json; charset=utf-8',\n      },\n      credentials: withCredentials ? 'include' : 'omit',\n    });\n\n    return tryGetJsonFromResponse(response);\n  }\n\n  isAdminAPIRunning() {\n    if (!this.lianaFeatures.isFeatureCompatible('healthcheck', this.rendering.environment)) {\n      return false;\n    }\n    const { apiEndpoint } = this.rendering.environment;\n    const healthCheckRoute = '/forest/healthcheck';\n\n    return window\n      .fetch(`${apiEndpoint}${healthCheckRoute}`)\n      .then((response) => response.status < 300 && response.status >= 200)\n      .catch(() => false);\n  }\n\n  /**\n   * @private\n   * @param {Response | Error} error\n   * @param {any} json\n   * @returns {Promise<string|undefined>}\n   */\n  async _getLoginErrorMessage(error) {\n    if (!error.status) {\n      return this._handleStatus0Error(error);\n    }\n\n    if (error.status === 401) {\n      return this._extractMessageFrom401(error);\n    }\n\n    if (error.status === 404) {\n      return 'Oops, cannot reach the endpoint on your application. Check your Agent version.';\n    }\n\n    if (await AuthenticationLianaLoginLegacyComponent._isUnexpectedError(error, error.body)) {\n      return 'An unexpected error happened while login, please contact support@forestadmin.com if the issue persists.';\n    }\n\n    return undefined;\n  }\n\n  /**\n   * @static\n   * @private\n   * @param {Response} error\n   * @param {any} json\n   * @returns {boolean}\n   */\n  static _isUnexpectedError(error, json) {\n    return ![undefined, 0, 401, 404].includes(error.status) && !ErrorType.ipRejected(json);\n  }\n\n  /**\n   * @param {HttpError|NoNetworkFailedToFetchError|FailedToFetchError} error\n   */\n  async handleLoginErrors(error) {\n    this.segment.trackEvent('Unlock failed', {\n      error: {\n        status: error.status,\n        title: error.statusText,\n        detail: error.responseText ? error.responseText.substring(0, 1000) : '',\n      },\n    });\n\n    const message = await this._getLoginErrorMessage(error);\n\n    if (ErrorType.ipRejected(error.body)) {\n      this.lianaSession.invalidateForIp(error.body);\n    }\n\n    if (await AuthenticationLianaLoginLegacyComponent._isUnexpectedError(error, error.body)) {\n      this.tracker.captureException(error);\n    }\n\n    if (message) {\n      this.toastr.perform('error', message);\n    }\n\n    console.debug(error);\n  }\n\n  /**\n   * @private\n   */\n  _extractMessageFrom401(error) {\n    if (\n      error\n      && error.responseJSON\n      && error.responseJSON.errors\n      && error.responseJSON.errors.length\n      && error.responseJSON.errors[0].detail\n    ) {\n      return error.responseJSON.errors[0].detail;\n    }\n\n    return this.isUsingGoogleAuth\n      ? 'You are not allowed to login into this project.'\n      : 'Your password is incorrect, please try again.';\n  }\n\n  @action\n  async logout() {\n    await this.authenticationFeatureService.logout();\n  }\n\n  /**\n   * @private\n   * @returns {Promise<string>}\n   */\n  async _handleStatus0Error(error) {\n    if (error instanceof NoNetworkFailedToFetchError) {\n      return 'It looks like you are offline.';\n    }\n    if (await this.isAdminAPIRunning()) {\n      return 'It looks like you have a CORS configuration issue.';\n    }\n    const { apiEndpoint } = this.rendering.environment;\n    return `Your admin backend is unreachable. Please check that it is running and respond to ${apiEndpoint}.`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.displayTwoFactor}}\\n  <form class=\\\"l-liana-login-legacy-container\\\" aria-label=\\\"liana-login-legacy-2FA\\\">\\n    <h2 class=\\\"c-liana-login-legacy__title\\\">\\n      Two-factor authentication\\n    </h2>\\n\\n    {{#if this.twoFactorRegistration}}\\n      <span class=\\\"c-liana-login-legacy__2fa-description\\\">\\n        Two-factor authentication adds an additional layer of security to this project.\\n        <Shared::Navigation::BetaLinkTo\\n          @type=\\\"primary\\\"\\n          @href=\\\"https://support.google.com/accounts/answer/1066447?co=GENIE.Platform%3DAndroid&hl=en&oco=0\\\"\\n          @target=\\\"_blank\\\"\\n          @text=\\\"Learn how to use it.\\\"\\n          @underline={{false}}\\n          class=\\\"c-liana-login-legacy__how-to-use\\\"\\n        />\\n      </span>\\n\\n      <span class=\\\"c-liana-login-legacy__2fa-first-step\\\">\\n        1. Grab your phone and scan the barcode below with the two-factor application of your\\n        choice.\\n      </span>\\n\\n      <Authentication::TwoFactor::TwoFactorQrcode\\n        @userSecret={{this.twoFactorUserSecret}}\\n        @userEmail={{this.currentUser.email}}\\n        @project={{this.lianaSession.currentProject}}\\n        @class=\\\"c-liana-login-legacy__2fa-qrcode\\\"\\n      />\\n\\n      <span class=\\\"c-liana-login-legacy__2fa-second-step\\\">\\n        2. After scanning the barcode, the app will display a six-digit code that you can enter\\n        below.\\n      </span>\\n    {{else}}\\n      <span class=\\\"c-liana-login-legacy__2fa-description\\\">\\n        Enter the 6-digit code provided by the Google Authenticator application to verify your\\n        identity.\\n      </span>\\n    {{/if}}\\n\\n    <Shared::BetaLabel\\n      class=\\\"c-liana-login-legacy__2fa-six-digit-label\\\"\\n      @label=\\\"Enter the six-digit code from your app\\\"\\n      @important={{true}}\\n    >\\n      <Authentication::TwoFactor::TwoFactorTokenInput @value={{this.twoFactorToken}} />\\n    </Shared::BetaLabel>\\n\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @isImportant={{true}}\\n      @size=\\\"large\\\"\\n      @disabled={{not (eq this.twoFactorToken.length 6)}}\\n      @text={{if this.twoFactorRegistration \\'Enable\\' \\'Verify\\'}}\\n      @action={{this.login}}\\n      class=\\\"c-liana-login-legacy__button\\\"\\n    />\\n  </form>\\n{{else}}\\n  <div\\n    class=\\\"l-liana-login-legacy-container\\n      {{if this.canSwitchEnvironment \\'l-liana-login-legacy-container--with-environments\\'}}\\\"\\n  >\\n    <form class=\\\"c-liana-login-legacy__login-form\\\" aria-label=\\\"liana-login-legacy-simple\\\">\\n      <h2 class=\\\"c-liana-login-legacy__title\\\">\\n        Unlock your data\\n      </h2>\\n\\n      <span class=\\\"c-liana-login-legacy__description\\\">\\n        To access your data, please\\n        {{#if this.isUsingGoogleAuth}}\\n          log in with Google Sign In.\\n        {{else}}\\n          <strong class=\\\"c-liana-login-legacy__repeat\\\">\\n            repeat\\n          </strong>\\n          your password.\\n        {{/if}}\\n      </span>\\n\\n      {{#if this.isUsingGoogleAuth}}\\n        <Shared::Button::BetaButton\\n          @type=\\\"secondary\\\"\\n          @text=\\\"Continue with Google\\\"\\n          @action={{this.login}}\\n          class=\\\"c-liana-login-legacy__button\\\"\\n        />\\n      {{else}}\\n        <Shared::BetaLabel\\n          @label=\\\"Repeat your password\\\"\\n          class=\\\"c-liana-login-legacy__password-label\\\"\\n          @important={{true}}\\n        >\\n          <Shared::BetaInput\\n            @class=\\\"c-liana-login-legacy__password-input\\\"\\n            @type=\\\"password\\\"\\n            @autofocus={{true}}\\n            @value={{this.password}}\\n            @placeholder=\\\"********\\\"\\n            @autocomplete=\\\"current-password\\\"\\n          />\\n        </Shared::BetaLabel>\\n\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @text=\\\"Enter\\\"\\n          @isImportant={{true}}\\n          @size=\\\"large\\\"\\n          @action={{this.login}}\\n          @disabled={{lt this.password.length 1}}\\n          class=\\\"c-liana-login-legacy__button\\\"\\n        />\\n      {{/if}}\\n    </form>\\n\\n    <div class=\\\"l-liana-login-other-actions\\\">\\n      {{#unless this.isUsingGoogleAuth}}\\n        <Shared::Button::BetaButton\\n          @type=\\\"link-secondary\\\"\\n          @text=\\\"Forgot your password?\\\"\\n          @action={{this.resetPasswordAction}}\\n          class=\\\"c-liana-login-legacy__forgot-password\\\"\\n        />\\n      {{/unless}}\\n      <span class=\\\"c-liana-login-legacy__not-your-account\\\">\\n        Not your account?\\n      </span>\\n\\n      <Shared::Button::BetaButton\\n        @type=\\\"link-secondary\\\"\\n        @text=\\\"Log out\\\"\\n        @action={{this.logout}}\\n        class=\\\"c-liana-login-legacy__logout\\\"\\n      />\\n    </div>\\n\\n    <LinkToProjects\\n      @type=\\\"primary\\\"\\n      @iconName=\\\"arrow_back\\\"\\n      @text=\\\"Back to projects list\\\"\\n      @class=\\\"c-liana-login-legacy__back-to-projects\\\"\\n    />\\n  </div>\\n\\n  {{#if this.canSwitchEnvironment}}\\n    <div class=\\\"c-liana-login-legacy__environments-container\\\">\\n      <Shared::BetaSelect\\n        @options={{this.accessibleEnvironments}}\\n        @namePath=\\\"name\\\"\\n        @onChange={{this.switchEnvironment}}\\n        @class=\\\"c-liana-login-legacy__environments\\\"\\n        @value={{@rendering.environment}}\\n        @hideCurrentValue={{true}}\\n      />\\n    </div>\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/authentication/liana-login/legacy/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { TrialStatusEnum } from 'client/data/models/trial';\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { CorsAgentError, UnreachableAgentError } from 'client/utils/errors';\nimport AuthenticationError from 'client/utils/errors/authentication-error';\nimport TwoFactorAuthenticationRequiredError from 'client/utils/errors/two-factor-authentication-required-error';\nimport UserForbiddenError from 'client/utils/errors/user-forbidden-error';\n\nconst TRIAL_ENDED_TITLE = 'Your free trial has ended';\n\n@validateArguments\nexport default class AuthenticationLianaLoginOidcComponent extends Component {\n  @service('shared/state/user-preference') userPreferenceState;\n\n  /** @private @readonly @type {import('../../../../../services/liana-session').default} */\n  @service lianaSession;\n  /** @private @readonly @type {import('../../../../../services/liana-session-oidc').default} */\n  @service lianaSessionOidc;\n  /** @private @readonly @type {import('@ember/routing/router').default} */\n  @service router;\n  /** @type {import('client/legacy/services/current-user').default} */\n  @service currentUser;\n  @service assetMap;\n  @service('feature/authentication') authenticationFeatureService;\n\n  /** @type {boolean} */\n  @tracked isLoading = true;\n\n  /** @type {boolean} */\n  @tracked isError = false;\n\n  /** @type {boolean} */\n  @tracked isTwoFactorAuthenticationRequiredError = false;\n\n  /** @type {boolean} */\n  @tracked isForbiddenError = false;\n\n  /** @type {boolean} */\n  @tracked isUnreachableError = false;\n\n  /** @type {boolean} */\n  @tracked isCorsError = false;\n\n  /** @type {string} */\n  @tracked errorMessage = '';\n  /** @type {string} */\n  @tracked errorTitle = '';\n\n  @tracked canLoginAgain = true;\n  @tracked canAccessOtherEnvironments = true;\n  @tracked canLogOut = true;\n  @tracked shouldUpgrade = false;\n\n  /** @type {()=>void} */\n  @argument(Function) switchEnvironment;\n\n  @alias('lianaSession.currentProject.nonBlockedAccessibleEnvironments')\n  accessibleEnvironments;\n\n  @alias('userPreferenceState.isDarkTheme') isDarkTheme;\n\n  get hasOtherEnvironments() {\n    return this.accessibleEnvironments?.length > 1;\n  }\n\n  @action\n  async launchLogin() {\n    this.isLoading = true;\n    this.isError = false;\n    this.isTwoFactorAuthenticationRequiredError = false;\n    this.isForbiddenError = false;\n    this.errorMessage = '';\n    this.errorTitle = '';\n    this.canLoginAgain = true;\n    this.canAccessOtherEnvironments = true;\n    this.canLogOut = true;\n\n    try {\n      await this.lianaSessionOidc.authenticate();\n    } catch (e) {\n      this.isError = true;\n      if (e instanceof UnreachableAgentError) {\n        this.isUnreachableError = true;\n      } else if (e instanceof CorsAgentError) {\n        this.isCorsError = true;\n      } else if (e instanceof TwoFactorAuthenticationRequiredError) {\n        this.isTwoFactorAuthenticationRequiredError = true;\n      } else if (e instanceof UserForbiddenError) {\n        this.isForbiddenError = true;\n        this.canLoginAgain = false;\n        this.errorMessage = e.message;\n      } else if (e instanceof AuthenticationError) {\n        await this.handleAuthenticationError(e);\n      }\n    } finally {\n      this.isLoading = false;\n    }\n  }\n\n  @action\n  goToEnvironmentSettings() {\n    this.router.transitionTo('project.project-settings.environments');\n  }\n\n  @action\n  goToMyAccountSettings() {\n    this.router.transitionTo('user-settings');\n  }\n\n  get isCloud() {\n    return this.lianaSession.currentProject?.architecture === 'cloud';\n  }\n\n  @computed('assetMap', 'isDarkTheme')\n  get imageSrc() {\n    return this.assetMap.resolve(\n      `/img/two-factor-authentication/2FA-instructions-2-${\n        this.isDarkTheme ? 'dark' : 'light'\n      }.svg`,\n    );\n  }\n\n  async handleLegacyErrors() {\n    // Due to a bug in the agent, the error returned does not contain any details\n    // so we need to guess the origin of the error for old agents not\n    // correctly returning the error\n\n    const trial = await this.lianaSession.currentProject.trial;\n    if (trial?.status === TrialStatusEnum.Blocked) {\n      this.handleTrialError();\n    }\n  }\n\n  /**\n   * @private\n   * @param {AuthenticationError} e\n   */\n  async handleAuthenticationError(e) {\n    this.errorMessage = e.errorDescription;\n\n    if (e.code === 'TrialBlockedError') {\n      this.handleTrialError();\n      return;\n    }\n\n    if (e.code === 'NoActiveSubscriptionError') {\n      this.handleNoActiveSubscriptionError();\n      return;\n    }\n\n    if (!e.code) {\n      await this.handleLegacyErrors();\n    }\n  }\n\n  /**\n   * @private\n   */\n  handleTrialError() {\n    this.errorTitle = TRIAL_ENDED_TITLE;\n    this.errorMessage = this.currentUser.canEditProject\n      ? 'We hope you enjoyed your experience with Forest Admin. Upgrade now to continue accessing your project.'\n      : 'We hope you enjoyed your experience with Forest Admin. Please contact your admin to request an upgrade and continue accessing your project.';\n    this.canAccessOtherEnvironments = false;\n    this.canLoginAgain = false;\n    this.canLogOut = false;\n    this.shouldUpgrade = this.currentUser.canEditProject;\n  }\n\n  /**\n   * @private\n   */\n  handleNoActiveSubscriptionError() {\n    this.errorTitle = 'Your subscription has ended';\n    this.errorMessage = this.currentUser.canEditProject\n      ? 'We hope you enjoyed your experience with Forest Admin. Subscribe to a paying plan now to continue accessing your project.'\n      : 'We hope you enjoyed your experience with Forest Admin. Please contact your admin to request an upgrade and continue accessing your project.';\n    this.canAccessOtherEnvironments = false;\n    this.canLoginAgain = false;\n    this.canLogOut = false;\n    this.shouldUpgrade = this.currentUser.canEditProject;\n  }\n\n  @action\n  async logout() {\n    await this.authenticationFeatureService.logout();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isTwoFactorAuthenticationRequiredError}}\\n  <div class=\\\"liana-login-oidc liana-login-oidc--2fa-required\\\">\\n    <Shared::Navigation::BetaLinkTo\\n      @type=\\\"primary\\\"\\n      @underline={{false}}\\n      @iconName=\\\"close\\\"\\n      @routeName=\\\"projects\\\"\\n      @regular={{false}}\\n      class=\\\"liana-login-oidc__close\\\"\\n    />\\n\\n    <img class=\\\"liana-login-oidc__2fa-image\\\" src={{this.imageSrc}} alt=\\\"2FA-required\\\" />\\n\\n    <h2 class=\\\"liana-login-oidc__title liana-login-oidc__title--2fa-required\\\">\\n      The project\\n      {{this.lianaSession.currentProject.name}}\\n      requires users to enable two-factor authentication.\\n    </h2>\\n\\n    <p\\n      class=\\\"liana-login-oidc__error-explanation liana-login-oidc__error-explanation--2fa-required\\\"\\n    >\\n      You can set up two-factor authentication from your Account settings.\\n    </p>\\n\\n    <footer class=\\\"liana-login-oidc-footer\\\" aria-label=\\\"liana-login-oidc-footer-2FA-error\\\">\\n      <div class=\\\"liana-login-oidc-footer__go-account\\\">\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @text=\\\"Go to my Account settings\\\"\\n          @action={{this.goToMyAccountSettings}}\\n        />\\n      </div>\\n    </footer>\\n  </div>\\n{{else}}\\n  <div\\n    class=\\\"liana-login-oidc\\n      {{if\\n        (and this.hasOtherEnvironments this.canAccessOtherEnvironments)\\n        \\'liana-login-oidc--with-environments\\'\\n      }}\\\"\\n    {{did-insert this.launchLogin}}\\n  >\\n    {{#if this.isLoading}}\\n      <h2 class=\\\"liana-login-oidc__title\\\">\\n        Unlocking your data\\n      </h2>\\n\\n      <span class=\\\"liana-login-oidc__description\\\">\\n        We are validating your identity.\\n      </span>\\n\\n      <Shared::Feedback::BetaLoader class=\\\"liana-login-oidc__loader\\\" @type={{this.loaderType}} />\\n    {{else if (not this.isError)}}\\n      <h2 class=\\\"liana-login-oidc__title\\\">\\n        You have been disconnected\\n      </h2>\\n\\n      <div class=\\\"liana-login-oidc__error\\\">\\n        <p>\\n          An error occurred while accessing your data.\\n        </p>\\n      </div>\\n\\n      <p class=\\\"liana-login-oidc__error-explanation\\\">\\n        Please check that the agent is running, and that you have access to the internet.\\n      </p>\\n    {{/if}}\\n\\n    {{#if this.isForbiddenError}}\\n      <h2 class=\\\"liana-login-oidc__title\\\">\\n        You can\\'t access this project\\n      </h2>\\n      <div class=\\\"liana-login-oidc__error\\\">\\n        <p>\\n          {{this.errorMessage}}\\n        </p>\\n      </div>\\n    {{else if (and this.isUnreachableError this.currentUser.canEditProject)}}\\n      <h2 class=\\\"liana-login-oidc__title\\\">\\n        Agent unreachable\\n      </h2>\\n      <div class=\\\"liana-login-oidc__error\\\">\\n        <p>\\n          {{#if\\n            (and\\n              this.lianaSession.currentEnvironment.isDevelopment\\n              this.lianaSession.currentProject.isFullHostedProject\\n            )\\n          }}\\n            Forest Admin can\\'t reach your agent; please ensure that it\\'s running. If the error\\n            persists,\\n          {{else}}\\n            Forest Admin can\\'t reach your server. Please restart it, and if the error persists,\\n          {{/if}}\\n          refer to\\n          <Shared::Navigation::BetaLinkTo\\n            @href=\\\"https://community.forestadmin.com\\\"\\n            @text=\\\"our community forum\\\"\\n            @target=\\\"_blank\\\"\\n            @type=\\\"inherit\\\"\\n            @noPadding={{true}}\\n            @punctuation=\\\",\\\"\\n            @isInline={{true}}\\n          />\\n          or\\n          <Shared::Navigation::BetaLinkTo\\n            @href=\\\"https://docs.forestadmin.com/\\\"\\n            @text=\\\"read the documentation\\\"\\n            @target=\\\"_blank\\\"\\n            @type=\\\"inherit\\\"\\n            @noPadding={{true}}\\n            @punctuation=\\\".\\\"\\n            @isInline={{true}}\\n          />\\n        </p>\\n      </div>\\n    {{else if (and this.isCorsError this.currentUser.canEditProject)}}\\n      <h2 class=\\\"liana-login-oidc__title\\\">\\n        Agent CORS issue\\n      </h2>\\n      <div class=\\\"liana-login-oidc__error\\\">\\n        <p>\\n          Forest Admin can\\'t reach your server because of a CORS issue. Please refer to\\n          <Shared::Navigation::BetaLinkTo\\n            @href=\\\"https://community.forestadmin.com\\\"\\n            @text=\\\"our community forum\\\"\\n            @target=\\\"_blank\\\"\\n            @type=\\\"inherit\\\"\\n            @noPadding={{true}}\\n            @isInline={{true}}\\n          />\\n          if you need more help.\\n        </p>\\n      </div>\\n    {{else if this.isError}}\\n      <h2 class=\\\"liana-login-oidc__title\\\" data-test-error-title>\\n        {{#if this.errorTitle}}\\n          {{this.errorTitle}}\\n        {{else}}\\n          Unable to authenticate you\\n        {{/if}}\\n      </h2>\\n      <div class=\\\"liana-login-oidc__error\\\">\\n        <p data-test-error-message>\\n          {{#if this.errorMessage}}\\n            {{this.errorMessage}}\\n          {{else}}\\n            {{#if this.currentUser.canEditProject}}\\n              {{#if this.isCloud}}\\n                An error occurred during authentication. Please check that your database credentials\\n                are correct and resync your agent.\\n              {{else}}\\n                An error occurred during authentication. Please check that your admin backend is\\n                correctly configured and running.\\n              {{/if}}\\n            {{else}}\\n              An error occurred during authentication. Please contact an admin or a developer from\\n              your team to solve this issue.\\n            {{/if}}\\n          {{/if}}\\n        </p>\\n      </div>\\n    {{/if}}\\n\\n    {{#unless (and this.isCloud this.lianaSession.currentEnvironment.isDevelopment)}}\\n      <footer class=\\\"liana-login-oidc-footer\\\" aria-label=\\\"liana-login-oidc-footer\\\">\\n        {{#if (and (not this.isLoading) this.shouldUpgrade)}}\\n          <div class=\\\"liana-login-oidc-footer-other-actions\\\">\\n            <Shared::Navigation::BetaLinkTo\\n              @type=\\\"primary\\\"\\n              @displayAsButton={{true}}\\n              @text=\\\"Upgrade\\\"\\n              @routeName=\\\"project.project-settings.billing\\\"\\n              class=\\\"liana-login-oidc-footer__upgrade\\\"\\n              data-test-upgrade-button\\n            />\\n          </div>\\n        {{else if (and (not this.isLoading) this.isCloud this.currentUser.canEditProject)}}\\n          <div class=\\\"liana-login-oidc-footer-try-again\\\">\\n            <Shared::Button::BetaButton\\n              @type=\\\"primary\\\"\\n              @text=\\\"Go to environment settings\\\"\\n              @action={{this.goToEnvironmentSettings}}\\n            />\\n          </div>\\n        {{else if (and (not this.isLoading) this.canLoginAgain)}}\\n          <div class=\\\"liana-login-oidc-footer-try-again\\\">\\n            <Shared::Button::BetaButton\\n              @type=\\\"primary\\\"\\n              @text=\\\"Log in again\\\"\\n              @action={{this.launchLogin}}\\n            />\\n          </div>\\n        {{else if (and (not this.isLoading) this.canLogOut)}}\\n          <div class=\\\"liana-login-oidc-footer-other-actions\\\">\\n            <span class=\\\"liana-login-oidc-footer__not-your-account\\\">\\n              Not your account?\\n            </span>\\n\\n            <Shared::Button::BetaButton\\n              @type=\\\"link-secondary\\\"\\n              @text=\\\"Log out\\\"\\n              @action={{this.logout}}\\n              class=\\\"liana-login-oidc-footer__logout\\\"\\n            />\\n          </div>\\n        {{/if}}\\n\\n        <div class=\\\"liana-login-oidc-footer__back-to-projects\\\">\\n          <LinkToProjects @type=\\\"primary\\\" @iconName=\\\"arrow_back\\\" @text=\\\"Back to projects list\\\" />\\n        </div>\\n      </footer>\\n    {{/unless}}\\n\\n  </div>\\n\\n  {{#if (and this.hasOtherEnvironments this.canAccessOtherEnvironments)}}\\n    <div class=\\\"liana-login-oidc__environments-container\\\">\\n      <Shared::BetaSelect\\n        @options={{this.accessibleEnvironments}}\\n        @namePath=\\\"name\\\"\\n        @onChange={{@switchEnvironment}}\\n        @class=\\\"liana-login-oidc-footer__environments\\\"\\n        @value={{@rendering.environment}}\\n        @hideCurrentValue={{true}}\\n      />\\n    </div>\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/authentication/liana-login/oidc/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-liana-login {{if this.isLoggedIn \\'l-liana-login--hide\\'}}\\\">\\n  <div class=\\\"c-liana-login\\\">\\n    {{#if this.supportsOpenIdConnect}}\\n      <Authentication::LianaLogin::Oidc\\n        @rendering={{@rendering}}\\n        @afterLogin={{@afterLogin}}\\n        @switchEnvironment={{this.switchEnvironment}}\\n      />\\n    {{else}}\\n      <Authentication::LianaLogin::Legacy\\n        @rendering={{@rendering}}\\n        @afterLogin={{@afterLogin}}\\n        @switchEnvironment={{this.switchEnvironment}}\\n      />\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/authentication/liana-login/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class AuthenticationOidcDeviceConfirmFormComponent extends Component {\n  @argument(Function) onSubmitCode;\n  @argument(optional(String)) initialUserCode;\n\n  /** @type {import('../../../../services/oidc/device-flow').default} */\n  @service('oidc/deviceFlow') deviceFlow;\n\n  /** @type {string} */\n  @tracked userCode = this.args.initialUserCode;\n  /** @type {boolean} */\n  @tracked hasError = false;\n\n  /** @type {boolean} */\n  get isInValidFormat() {\n    return !this.deviceFlow.isUserCodeValidFormat(this.userCode);\n  }\n\n  get inputState() {\n    return this.hasError ? 'error' : undefined;\n  }\n\n  @action\n  async submitAction() {\n    this.hasError = false;\n    try {\n      await this.args.onSubmitCode(this.userCode);\n    } catch (e) {\n      this.hasError = true;\n      console.debug(e);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"oidc-device-confirm-form\\\">\\n  <p class=\\\"oidc-device-confirm-form__title\\\">\\n    You are attempting to log in to a Forest Admin toolbelt\\n  </p>\\n\\n  {{#if @initialUserCode}}\\n    <h2 class=\\\"oidc-device-confirm-form__message\\\">\\n      Please check that this code matches the one displayed in your terminal, then click \\\"Log in\\\":\\n    </h2>\\n  {{else}}\\n    <h2 class=\\\"oidc-device-confirm-form__message\\\">\\n      Please enter the\\n      {{this.deviceFlow.numberOfChars}}-character code displayed in your terminal:\\n    </h2>\\n  {{/if}}\\n\\n  <div class=\\\"oidc-device-confirm-form__form\\\">\\n    <Shared::BetaLabel\\n      @label=\\\"Confirmation code\\\"\\n      class=\\\"oidc-device-confirm-form__form__label\\\"\\n      @isError={{this.hasError}}\\n      @errorMessage=\\\"Your code seems to be invalid. Please check the characters you entered and try again.\\\"\\n    >\\n      <Shared::BetaInput\\n        @value={{this.userCode}}\\n        @autocomplete=\\\"off\\\"\\n        @type=\\\"text\\\"\\n        @state={{this.inputState}}\\n      />\\n    </Shared::BetaLabel>\\n    <Shared::Button\\n      @type=\\\"primary\\\"\\n      @text=\\\"Log in\\\"\\n      @onClick={{this.submitAction}}\\n      disabled={{this.isInValidFormat}}\\n      class=\\\"oidc-device-confirm-form__form__button\\\"\\n    />\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/authentication/oidc/device-confirm-form/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport { argument } from 'client/decorators/argument';\n\nexport default class AuthenticationSingleSignOnConfigurationCardComponent extends Component {\n  @argument(String) title;\n  @argument(String) description;\n  @argument(Function) selectConfigurationCard;\n  @argument(Boolean) isSelected;\n\n  @computed('args.{isSelected,title}')\n  get options() {\n    return [{ value: this.args.isSelected }];\n  }\n\n  @action\n  handleChange(value) {\n    this.value = value;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  {{on \\'click\\' @selectConfigurationCard}}\\n  class=\\\"c-sso-configuration-card {{if @isSelected \\'c-sso-configuration-card__selected\\'}}\\\"\\n  role=\\\"button\\\"\\n  data-test-configuration-card={{@title}}\\n>\\n  <Shared::BetaRadioButton\\n    @options={{this.options}}\\n    @value={{true}}\\n    @namePath=\\\"\\\"\\n    @valuePath=\\\"value\\\"\\n    @disabledPath=\\\"disabled\\\"\\n    @display=\\\"inline\\\"\\n    @disabled={{false}}\\n    @onChange={{this.handleChange}}\\n  />\\n  <div class=\\\"c-sso-configuration-card__content\\\">\\n    <div class=\\\"c-sso-configuration-card__title\\\">\\n      {{@title}}\\n    </div>\\n    <div class=\\\"c-sso-configuration-card__description\\\">\\n      {{@description}}\\n    </div>\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/authentication/single-sign-on/configuration-card/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport config from 'client/config/environment';\nimport { argument } from 'client/decorators/argument';\n\nexport default class AuthenticationSingleSignOnConfigurationMethodComponent extends Component {\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  /** @type {import('client/legacy/services/clipboard').default} */\n  @service clipboard;\n  /** @type {import('client/legacy/services/custom-domain').default} */\n  @service customDomain;\n  /** @type {import('client/legacy/services/organization-service').default} */\n  @service organizationService;\n\n  @argument(Function) cancel;\n\n  @tracked isXMLConfigurationSelected = false;\n  @tracked isManualInputConfigurationSelected = false;\n\n  get currentElementId() {\n    return guidFor(this);\n  }\n\n  @action\n  async copyText(value) {\n    await this.clipboard.copyToClipboard(value);\n  }\n\n  @action\n  selectXMLConfigurationCard() {\n    this.isXMLConfigurationSelected = true;\n    this.isManualInputConfigurationSelected = false;\n  }\n\n  @action\n  selectManualInputConfigurationCard() {\n    this.isXMLConfigurationSelected = false;\n    this.isManualInputConfigurationSelected = true;\n  }\n\n  @action\n  configure() {\n    if (this.isXMLConfigurationSelected) {\n      this.router.transitionTo(\n        'organization.settings.security.xml-configuration',\n        this.currentOrganization.model.name,\n      );\n    } else {\n      this.router.transitionTo(\n        'organization.settings.security.manual-input-configuration',\n        this.currentOrganization.model.name,\n      );\n    }\n  }\n\n  @computed('currentOrganization.model.name', 'customDomain.currentDomain')\n  get informations() {\n    return [\n      {\n        description: 'ACS URL',\n        title: `${config.APP.apiServerHost}/api/saml/callback`,\n      },\n      {\n        description: 'SP Entity ID',\n        title: this.organizationService.generateEntityId(this.currentOrganization.model.name),\n      },\n      {\n        description: 'Unique User ID',\n        title: 'forestadmin',\n      },\n      {\n        description: 'Default Relay State',\n        title: `{\"organizationName\": \"${this.currentOrganization.model.name}\", \"destinationUrl\": \"projects\"}`,\n      },\n      {\n        description: 'Single Logout URL',\n        title: `https://${this.customDomain.currentDomain}/login`,\n      },\n    ];\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-configuration-method\\\" data-test-saml-configuration-information>\\n  <div class=\\\"c-configuration-method__title\\\">\\n    Information required in order to configure SAML\\n  </div>\\n  {{! Link to Forest Admin SSO documentation to add }}\\n  <div class=\\\"c-configuration-method__description\\\">\\n    View Forest Admin SSO in our documentation for more details.\\n  </div>\\n  <Shared::BetaTable\\n    @rows={{this.informations}}\\n    @alignColumnLeft={{true}}\\n    @rowClass=\\\"c-configuration-method__row\\\"\\n    class=\\\"c-configuration-method__table\\\"\\n    data-test-information-section-table\\n    as |RowColumn information|\\n  >\\n    <RowColumn\\n      @columnClass=\\\"c-configuration-method__table-description\\\"\\n      data-test-row-column=\\\"information description\\\"\\n    >\\n      {{information.description}}\\n    </RowColumn>\\n    <RowColumn\\n      @columnClass=\\\"c-configuration-method__table-title\\\"\\n      data-test-row-column=\\\"information title\\\"\\n    >\\n      <span id=\\\"{{this.currentElementId}}-copy-text\\\" class=\\\"c-configuration-method__copy-text\\\">\\n        {{information.title}}\\n      </span>\\n    </RowColumn>\\n    <RowColumn @columnClass=\\\"c-configuration-method__copy\\\" data-test-row-column=\\\"information copy\\\">\\n      <i\\n        class=\\\"material-icons c-configuration-method__copy-icons\\\"\\n        role=\\\"button\\\"\\n        onClick={{fn this.copyText information.title}}\\n      >\\n        content_copy\\n      </i>\\n    </RowColumn>\\n  </Shared::BetaTable>\\n</div>\\n<div class=\\\"c-configuration-method__choice\\\">\\n  Choose a method\\n</div>\\n<div class=\\\"c-configuration-method__card\\\">\\n  <Authentication::SingleSignOn::ConfigurationCard\\n    @title=\\\"XML file upload or XML file endpoint\\\"\\n    @description=\\\"Upload an XML file or input the XML file endpoint that contains metadata.\\\"\\n    @selectConfigurationCard={{this.selectXMLConfigurationCard}}\\n    @isSelected={{this.isXMLConfigurationSelected}}\\n  />\\n  <Authentication::SingleSignOn::ConfigurationCard\\n    @title=\\\"Manual input\\\"\\n    @description=\\\"Input every field necessary to activate SSO SAML without XML file.\\\"\\n    @selectConfigurationCard={{this.selectManualInputConfigurationCard}}\\n    @isSelected={{this.isManualInputConfigurationSelected}}\\n  />\\n</div>\\n<div class=\\\"c-configuration-method__button\\\">\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @text=\\\"Configure\\\"\\n    @action={{this.configure}}\\n    @disabled={{and\\n      (not this.isXMLConfigurationSelected)\\n      (not this.isManualInputConfigurationSelected)\\n    }}\\n    data-test-action=\\\"configure\\\"\\n  />\\n  <Shared::Button::BetaButton\\n    @type=\\\"secondary\\\"\\n    @text=\\\"Cancel\\\"\\n    @action={{@cancel}}\\n    data-test-cancel={{true}}\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/authentication/single-sign-on/configuration-method/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class AuthenticationSingleSignOnDisableSsoModalComponent extends Component {\n  @argument(Function) closePopup;\n  @argument(Function) action;\n\n  @action\n  async deleteConfiguration(callback) {\n    await Promise.resolve(this.args.action());\n\n    if (!this.isDestroying && !this.isDestroyed) {\n      callback();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @title=\\\"Disable Single Sign-On?\\\"\\n  @onClose={{@closePopup}}\\n  @contentClass=\\\"c-disable-sso-modal\\\"\\n  data-test-disable-sso-modal\\n>\\n  <div class=\\\"c-disable-sso-modal__text\\\" data-test-disable-sso-text>\\n    Disabling Single Sign-On will remove the access via Single Sign-On to all users of this\\n    organization and remove the configuration.\\n  </div>\\n\\n  <div class=\\\"c-disable-sso-modal__buttons\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @text=\\\"Cancel\\\"\\n      @action={{@closePopup}}\\n      data-test-action=\\\"cancel\\\"\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"danger\\\"\\n      @text=\\\"Disable\\\"\\n      @action={{this.deleteConfiguration}}\\n      data-test-action=\\\"disable\\\"\\n    />\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/authentication/single-sign-on/disable-sso-modal/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-manual-input-configuration\\\" ...attributes>\\n  <div class=\\\"c-manual-input-configuration__title\\\" data-test-sso-xml-configuration>\\n    Configure Single Sign-On\\n  </div>\\n  <SamlConfiguration::Manual />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/authentication/single-sign-on/manual-input-configuration/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { classNames } from '@ember-decorators/component';\n\nimport config from 'client/config/environment';\nimport Project from 'client/data/models/project';\nimport validateArguments from 'client/decorators/validate';\nimport { PromiseObject } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-two-factor-qrcode')\n@validateArguments\nexport default class AuthenticationTwoFactorTwoFactorQrcodeComponent extends Component {\n  static propTypes = {\n    userSecret: PropTypes.string.isRequired,\n    userEmail: PropTypes.string.isRequired,\n    project: PropTypes.instanceOf(Project).isRequired,\n  };\n\n  /** @type {import('client/app/services/qrcode').default} */\n  @service qrcode;\n\n  isNotProduction = config.nodeEnv && config.nodeEnv !== 'production';\n  forestAdminEnvironment = config.nodeEnv;\n\n  @computed('qrcode')\n  get srcQrcode() {\n    const uriOTP = this.create2FARegistrationUri();\n\n    const promise = this.qrcode.toDataURL(uriOTP, { margin: 0 });\n\n    return PromiseObject.create({ promise });\n  }\n\n  create2FARegistrationUri() {\n    const { userSecret, userEmail, project } = this;\n    const projectName = project.get('name');\n\n    let issuer = `Forest - ${projectName}`;\n    if (this.isNotProduction) {\n      issuer += `:${this.forestAdminEnvironment}`;\n    }\n\n    return encodeURI(`otpauth://totp/${userEmail}?secret=${userSecret}&issuer=${issuer}`);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<img\\n  src={{this.srcQrcode.content}}\\n  class=\\\"c-two-factor-qrcode__image\\\"\\n  alt=\\\"Two-factor authentication QR code\\\"\\n/>\\n', { moduleName: 'client/legacy/pods/components/authentication/two-factor/two-factor-qrcode/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { classNames } from '@ember-decorators/component';\n\nconst isNumerical = (character) => /[0-9]/.test(character);\n\n@classNames('c-two-factor-token-input')\nexport default class AuthenticationTwoFactorTwoFactorTokenInputComponent extends Component {\n  value = '';\n  inputValues = null;\n\n  init(...args) {\n    super.init(...args);\n\n    this.set('inputValues', [null, null, null, null, null, null]);\n  }\n\n  @action\n  onClick(event) {\n    event.target.select();\n  }\n\n  @action\n  onPaste(event) {\n    const pasteData = event.clipboardData.getData('text');\n\n    let currentInput = 0;\n    let nextInput = 0;\n    for (let i = 0; i < pasteData.length && nextInput < 6; i += 1) {\n      if (isNumerical(pasteData[i])) {\n        this.setInputValue(nextInput, pasteData[i]);\n        currentInput = nextInput;\n        nextInput += 1;\n      }\n    }\n\n    this.element.querySelectorAll('.c-two-factor-token-input__number')[currentInput].focus();\n    return false;\n  }\n\n  @action\n  onInput(inputIndex, _, newValue) {\n    if (!isNumerical(newValue)) {\n      this.setInputValue(inputIndex, '');\n      this.element.querySelectorAll('.c-two-factor-token-input__number')[inputIndex].value = '';\n      return;\n    }\n\n    this.setInputValue(inputIndex, newValue);\n\n    if (newValue !== '' && inputIndex !== 5) {\n      this.element.querySelectorAll('.c-two-factor-token-input__number')[inputIndex + 1].focus();\n    }\n  }\n\n  @action\n  onKeyUp(inputIndex, { key }) {\n    if (key === 'Backspace') {\n      this.set('value', this.inputValues.join(''));\n      if (inputIndex !== 0) {\n        this.element.querySelectorAll('.c-two-factor-token-input__number')[inputIndex - 1].focus();\n      }\n    }\n  }\n\n  setInputValue(inputIndex, inputValue) {\n    this.set(`inputValues.${inputIndex}`, inputValue);\n    this.set('value', this.inputValues.join(''));\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaInput\\n  @type=\\\"text\\\"\\n  @kindClassName={{concat\\n    \\'c-two-factor-token-input__number \\'\\n    \\'c-two-factor-token-input__number--first \\'\\n    this.focusClass\\n  }}\\n  @placeholder=\\\".\\\"\\n  @value={{get this.inputValues 0}}\\n  @onInput={{fn this.onInput 0}}\\n  @onKeyUp={{fn this.onKeyUp 0}}\\n  @onPaste={{this.onPaste}}\\n  @onClick={{this.onClick}}\\n  @maxLength={{1}}\\n  @autofocus={{true}}\\n/>\\n<Shared::BetaInput\\n  @type=\\\"text\\\"\\n  @kindClassName=\\\"c-two-factor-token-input__number\\\"\\n  @placeholder=\\\".\\\"\\n  @value={{get this.inputValues 1}}\\n  @onInput={{fn this.onInput 1}}\\n  @onKeyUp={{fn this.onKeyUp 1}}\\n  @onPaste={{this.onPaste}}\\n  @onClick={{this.onClick}}\\n  @maxLength={{1}}\\n/>\\n<Shared::BetaInput\\n  @type=\\\"text\\\"\\n  @kindClassName=\\\"c-two-factor-token-input__number\\\"\\n  @placeholder=\\\".\\\"\\n  @value={{get this.inputValues 2}}\\n  @onInput={{fn this.onInput 2}}\\n  @onKeyUp={{fn this.onKeyUp 2}}\\n  @onPaste={{this.onPaste}}\\n  @onClick={{this.onClick}}\\n  @maxLength={{1}}\\n/>\\n<Shared::BetaInput\\n  @type=\\\"text\\\"\\n  @kindClassName=\\\"c-two-factor-token-input__number\\\"\\n  @placeholder=\\\".\\\"\\n  @value={{get this.inputValues 3}}\\n  @onInput={{fn this.onInput 3}}\\n  @onKeyUp={{fn this.onKeyUp 3}}\\n  @onPaste={{this.onPaste}}\\n  @onClick={{this.onClick}}\\n  @maxLength={{1}}\\n/>\\n<Shared::BetaInput\\n  @type=\\\"text\\\"\\n  @kindClassName=\\\"c-two-factor-token-input__number\\\"\\n  @placeholder=\\\".\\\"\\n  @value={{get this.inputValues 4}}\\n  @onInput={{fn this.onInput 4}}\\n  @onKeyUp={{fn this.onKeyUp 4}}\\n  @onPaste={{this.onPaste}}\\n  @onClick={{this.onClick}}\\n  @maxLength={{1}}\\n/>\\n<Shared::BetaInput\\n  @type=\\\"text\\\"\\n  @kindClassName=\\\"c-two-factor-token-input__number\\\"\\n  @placeholder=\\\".\\\"\\n  @value={{get this.inputValues 5}}\\n  @onInput={{fn this.onInput 5}}\\n  @onKeyUp={{fn this.onKeyUp 5}}\\n  @onPaste={{this.onPaste}}\\n  @onClick={{this.onClick}}\\n  @maxLength={{1}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/authentication/two-factor/two-factor-token-input/template.hbs' });\n","import { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { argument, optional } from 'client/decorators/argument';\n\nexport default class BetaCardComponent extends Component {\n  @service assetMap;\n  @service('shared/state/user-preference') userPreferenceState;\n\n  get imagePath() {\n    if (this.args.logoUrlDark && this.userPreferenceState.isDarkTheme) {\n      return this.assetMap.resolve(`/img/onboarding/${this.args.logoUrlDark}`);\n    }\n\n    return this.assetMap.resolve(`/img/onboarding/${this.args.logoUrl}`);\n  }\n\n  @argument(Function) onClick;\n  @argument(String) logoUrl;\n  @argument(optional(String)) logoUrlDark;\n  @argument(String) title;\n  @argument(optional(String)) category;\n  @argument(optional(String)) tooltips;\n  @argument(optional(Boolean)) isWaitingList = false;\n  @argument(optional(Boolean)) isLoading;\n\n  get tooltipTargetId() {\n    return `tooltip-target-${guidFor(this)}`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<button class=\\\"c-beta-card\\\" ...attributes type=\\\"button\\\" {{on \\'click\\' (fn @onClick @title)}}>\\n  {{#if @isLoading}}\\n    <Shared::Feedback::BetaLoader class=\\\"c-beta-card__image\\\" />\\n  {{else}}\\n    <img src={{this.imagePath}} class=\\\"c-beta-card__image\\\" alt=\\\"beta-{{@title}}\\\" />\\n  {{/if}}\\n\\n  <div class=\\\"c-beta-card__description-container\\\">\\n    <span class=\\\"c-beta-card__title\\\">\\n      {{@title}}\\n    </span>\\n    <span class=\\\"c-beta-card__category\\\">\\n      {{@category}}\\n    </span>\\n  </div>\\n\\n  {{#if @tooltips}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName=\\\"info\\\"\\n      @size=\\\"micro\\\"\\n      @id={{this.tooltipTargetId}}\\n      @class=\\\"c-beta-card__icon-tooltips c-beta-icon--hoverable\\\"\\n      data-test-beta-beta-icon\\n    />\\n\\n    <Shared::Feedback::BetaTooltip\\n      @side=\\\"top\\\"\\n      @class=\\\"c-beta-card__tooltip\\\"\\n      @targetId={{this.tooltipTargetId}}\\n    >\\n      {{@tooltips}}\\n    </Shared::Feedback::BetaTooltip>\\n  {{/if}}\\n\\n  {{#if @isWaitingList}}\\n    <span class=\\\"c-beta-card__waiting\\\">Waiting list</span>\\n  {{/if}}\\n\\n</button>\\n', { moduleName: 'client/legacy/pods/components/beta-card/template.hbs' });\n","import { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class BetaEmptyStateComponent extends Component {\n  @service assetMap;\n  @service('shared/state/user-preference') userPreferenceState;\n\n  @argument(optional(String)) iconName;\n  @argument(optional(String)) imageIdentifier;\n  @argument(optional(String)) textButton;\n  @argument(optional(Function)) onClickButton;\n  @argument(optional(Boolean)) shouldHideButton;\n\n  get emptyStateImage() {\n    return this.assetMap.resolve(\n      `/img/${this.args.imageIdentifier}-${this.userPreferenceState.theme}.svg`,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-empty-state\\\">\\n  <Card class=\\\"c-beta-empty-state__card\\\">\\n    <div class=\\\"c-beta-empty-state__content\\\">\\n      {{#if @iconName}}\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName={{@iconName}}\\n          @size=\\\"custom\\\"\\n          class=\\\"c-beta-empty-state__icon\\\"\\n          data-test-beta-empty-state-icon\\n        />\\n      {{else}}\\n        <img\\n          src={{this.emptyStateImage}}\\n          alt=\\\"{{@imageIdentifier}}-logo\\\"\\n          data-test-beta-empty-state-image\\n        />\\n      {{/if}}\\n      <div class=\\\"c-beta-empty-state__description\\\" data-test-beta-empty-state-description>\\n        {{yield}}\\n      </div>\\n      {{#if (and @onClickButton (not @shouldHideButton))}}\\n        <Shared::Button::BetaButton\\n          @type=\\\"editor-light\\\"\\n          @text={{@textButton}}\\n          @action={{@onClickButton}}\\n          @async={{false}}\\n          data-test-beta-empty-state-button\\n        />\\n      {{/if}}\\n    </div>\\n  </Card>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/beta-empty-state/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { next } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport Filter from 'client/data/models/filter';\nimport { ConditionContextEnum } from 'client/data/models/fragment-condition';\nimport { AbstractBaseFilterFragment } from 'client/data/models/fragment-filter';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\n@validateArguments\n// eslint-disable-next-line ember/require-tagless-components\nexport default class BetaFilterButtonComponent extends Component {\n  @service popup;\n  @service eventBus;\n  showFilterMenu = false;\n\n  static propTypes = {\n    fieldsFilterable: PropTypes.array.isRequired,\n    applyFilter: PropTypes.func.isRequired,\n    saveOnApply: PropTypes.bool,\n    discardOnHide: PropTypes.bool,\n    defaultOperator: PropTypes.string,\n    disableSwitchOperator: PropTypes.bool,\n    filter: PropTypes.oneOfType([\n      PropTypes.instanceOf(Filter),\n      PropTypes.instanceOf(AbstractBaseFilterFragment),\n    ]),\n    createFilter: PropTypes.func.isRequired,\n    isCompact: PropTypes.bool,\n    withSearch: PropTypes.bool,\n    searchValue: PropTypes.string,\n    appliedSearchValue: PropTypes.string,\n    searchPlaceholder: PropTypes.string,\n    context: PropTypes.oneOf(Object.values(ConditionContextEnum)),\n    templatingHelper: PropTypes.instanceOf(AbstractTemplatingHelper),\n    disabled: PropTypes.bool,\n    showDiscard: PropTypes.bool,\n  };\n\n  @tracked hasSearchValueApplied;\n\n  @computed('filter.conditions.@each.isNew', 'filter.conditions.@each.isValidData')\n  get savedConditions() {\n    return this.filter?.conditions\n      ? this.filter.conditions.filter((condition) => !condition.isNew && condition.isValidData)\n      : [];\n  }\n\n  @computed('hasSearchValueApplied', 'savedConditions.length')\n  get countConditions() {\n    return this.hasSearchValueApplied\n      ? this.savedConditions.length + 1\n      : this.savedConditions.length;\n  }\n\n  @computed('elementId')\n  get filterButtonId() {\n    return `js-filter-button-${this.elementId}`;\n  }\n\n  // eslint-disable-next-line ember/classic-decorator-no-classic-methods, ember/classic-decorator-hooks\n  init(...args) {\n    super.init(...args);\n\n    this.hasSearchValueApplied = !!this.searchValue;\n    if (this.disableSwitchOperator && this.defaultOperator && this.filter) {\n      this.set('filter.operator', this.defaultOperator);\n    }\n\n    this.eventBus.on('quickFilter', this._handleQuickFilter);\n  }\n\n  @action\n  _handleQuickFilter(field, location) {\n    next(() => {\n      this.onQuickFilter(field, location);\n    });\n  }\n\n  onQuickFilter(field, location) {\n    if (this.isDestroyed || this.isDestroying) {\n      return;\n    }\n\n    // We check is we open the correct filter form as we want to avoid\n    // opening the table view filter when we are in related data context\n    if (location && this.filterLocation !== location) return;\n    if (!this.filter) {\n      const filter = this.createFilter({\n        filteredCollection: field.collection,\n        type: this.defaultOperator || 'and',\n      });\n      this.set('filter', filter);\n    }\n    const createNewCondition =\n      !this.filter?.conditions?.length || this.filter?.conditions?.lastObject?.field;\n    const condition = createNewCondition\n      ? this.filter.createCondition({\n          context: this.context || ConditionContextEnum.Collection,\n        })\n      : this.filter?.conditions?.lastObject;\n    condition.set('field', field);\n    if (!field.isRelationship) {\n      condition.set('operator', condition.get('defaultOperator.displayName'));\n    }\n\n    this.set('scrollToBottom', true);\n    this.set('showFilterMenu', true);\n  }\n\n  @action\n  showFilterMenuAction() {\n    if (this.disabled) return;\n\n    this.set('scrollToBottom', false);\n    if (this.showFilterMenu) {\n      this.send('hideFilterMenu');\n    } else {\n      if (!this.filter) {\n        const filter = this.createFilter({\n          conditions: [],\n          type: this.defaultOperator || 'and',\n        });\n        this.set('filter', filter);\n\n        if (!this.withSearch) {\n          this.filter.createCondition({\n            context: this.context || ConditionContextEnum.Collection,\n          });\n        }\n      }\n      this.set('showFilterMenu', true);\n    }\n  }\n\n  @action\n  async applyFilterAction(filter, search) {\n    if (filter && this.saveOnApply !== false) {\n      await filter.save();\n    }\n\n    this.hasSearchValueApplied = !!search;\n    this.applyFilter(filter, search);\n    this.send('hideFilterMenu');\n  }\n\n  get showDiscardButton() {\n    if (Object.prototype.hasOwnProperty.call(this, 'showDiscard')) {\n      return this.showDiscard;\n    }\n\n    return !this.withSearch;\n  }\n\n  discard() {\n    if (this.filter.isNew) {\n      this.filter.clear();\n      return;\n    }\n\n    this.filter.rollbackAttributes();\n  }\n\n  @action\n  leave() {\n    if (this.showFilterMenu) {\n      this.hideFilterMenu();\n\n      if (this.discardOnHide) {\n        this.discard();\n      }\n    }\n  }\n\n  @action\n  hideFilterMenu() {\n    this.set('showFilterMenu', false);\n    // eslint-disable-next-line ember/classic-decorator-no-classic-methods\n    this.set('condition', null);\n    this.popup.hide(this.elementId);\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.eventBus.off('quickFilter', this._handleQuickFilter);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<XDropdown @onLeaveAction={{this.leave}} @onClickAction={{this.showFilterMenuAction}}>\\n  <div\\n    id={{this.filterButtonId}}\\n    class=\\\"c-beta-filter-button\\n      {{if this.showFilterMenu \\' c-beta-filter-button--active\\'}}\\n      {{if this.countConditions \\' c-beta-filter-button--has-filters\\'}}\\n      {{if this.disabled \\' c-beta-filter-button--disabled\\'}}\\\"\\n    data-test-beta-filter-button\\n  >\\n    <i class=\\\"material-icons c-beta-filter-button__icon\\\">\\n      filter_list\\n    </i>\\n    {{#unless (and @isCompact (eq this.countConditions 0))}}\\n      <span class=\\\"c-beta-filter-button__text\\\">\\n        {{#if (gte this.countConditions 1)}}\\n          {{this.countConditions}}{{unless\\n            @isCompact\\n            (word-pluralize \\' Filter\\' this.countConditions)\\n          }}\\n        {{else if (not @isCompact)}}\\n          Filter\\n        {{/if}}\\n      </span>\\n    {{/unless}}\\n  </div>\\n</XDropdown>\\n\\n{{#if this.showFilterMenu}}\\n  <BetaFilter::Popup\\n    @containerId={{this.elementId}}\\n    @parentElementId={{this.filterButtonId}}\\n    @fields={{@fieldsFilterable}}\\n    @hide={{this.hideFilterMenu}}\\n    @applyFilter={{this.applyFilterAction}}\\n    @filter={{@filter}}\\n    @createFilter={{@createFilter}}\\n    @scrollToBottom={{this.scrollToBottom}}\\n    @disableSwitchOperator={{@disableSwitchOperator}}\\n    @withSearch={{@withSearch}}\\n    @searchValue={{@searchValue}}\\n    @appliedSearchValue={{@appliedSearchValue}}\\n    @searchPlaceholder={{@searchPlaceholder}}\\n    @onSearchValueChange={{@onSearchValueChange}}\\n    @context={{@context}}\\n    @templatingHelper={{@templatingHelper}}\\n    @showDiscard={{@showDiscard}}\\n    @applyText={{@applyText}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/beta-filter/button/template.hbs' });\n","import { isArray } from '@ember/array';\nimport Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { guidFor } from '@ember/object/internals';\nimport { tagName } from '@ember-decorators/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Field from 'client/data/models/field';\nimport Condition from 'client/data/models/fragment-condition';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport { KEY } from 'client/utils/keyboard';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport SchemaUtils from 'client/utils/schema-utils';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\n@tagName('')\nexport default class BetaFilterEntryComponent extends Component {\n  static propTypes = {\n    condition: PropTypes.instanceOf(Condition).isRequired,\n    fields: PropTypes.arrayOf(PropTypes.instanceOf(Field)).isRequired,\n    showClear: PropTypes.bool.isRequired,\n    templatingHelper: PropTypes.instanceOf(AbstractTemplatingHelper),\n    templatingNotSupportedMessage: PropTypes.string,\n    noPadding: PropTypes.bool,\n  };\n\n  @tracked isUsingTemplate = `${this.condition?.valueCasted}`.startsWith('{{');\n\n  @alias('condition.operatorsOptions') operators;\n  @alias('condition.operatorNeedsValue') operatorNeedsValue;\n  @alias('condition.subFieldOrField') subFieldOrField;\n  @alias('condition.field') field;\n  @alias('condition.operator') operator;\n  @alias('condition.valueCasted') value;\n\n  // fix the wording 'not contains' without breaking URIs\n  get mappedOperators() {\n    return this.operators.map((operator) => {\n      if (operator.displayName === 'not contains')\n        return {\n          ...operator,\n          displayName: 'does not contain',\n          value: 'not contains',\n        };\n      return { ...operator, value: operator.displayName };\n    });\n  }\n\n  get parentId() {\n    return guidFor(this);\n  }\n\n  get hasUnknownField() {\n    return !this.field && !!(this.condition?.fieldName || this.condition?.fieldId);\n  }\n\n  get unknownFieldName() {\n    return this.condition?.fieldName || this.condition?.fieldId;\n  }\n\n  get shouldDisplayTemplating() {\n    return (\n      this.templatingHelper\n      && (this.isUsingTemplate || `${this.condition.valueCasted}`.startsWith('{{'))\n    );\n  }\n\n  set shouldDisplayTemplating(value) {\n    this.isUsingTemplate = value;\n    this.condition.value = null;\n  }\n\n  get isFieldTypeAnArray() {\n    return isArray(this.subFieldOrField.type);\n  }\n\n  @computed(\n    'condition.embeddedField.fieldName',\n    'condition.subField',\n    'embeddedFields',\n    'field.isEmbeddedBelongsTo',\n  )\n  get subField() {\n    if (!this.field) {\n      return null;\n    }\n\n    if (this.field?.isEmbeddedBelongsTo) {\n      return this.embeddedFields.findBy('fieldName', this.condition?.embeddedField?.fieldName);\n    }\n    return this.condition?.subField;\n  }\n\n  set subField(value) {\n    if (this.field?.isEmbeddedBelongsTo) {\n      this.set('condition.embeddedField', value);\n    } else {\n      this.set('condition.subField', value);\n    }\n    return value;\n  }\n\n  @computed('field.nestedCollection.fields')\n  get embeddedFields() {\n    if (!this.field?.nestedCollection?.fields) {\n      return [];\n    }\n\n    return this.field.nestedCollection.fields.filter(\n      (field) => field.isFilterAvailableForTypeExcludingNested,\n    );\n  }\n\n  @computed('field.referenceModel.filterableFields.[]')\n  get relationshipFilterableFields() {\n    return this.field?.referenceModel?.filterableFields.filter(\n      (field) => SchemaUtils.isPlainField(field) || SchemaUtils.isIdField(field),\n    );\n  }\n\n  @computed('embeddedFields', 'field.isBelongsTo', 'relationshipFilterableFields')\n  get subFields() {\n    return this.field?.isBelongsTo ? this.relationshipFilterableFields : this.embeddedFields;\n  }\n\n  @computed('field.isEmbeddedBelongsTo', 'field.isBelongsTo', 'field.type', 'subField')\n  get showOperator() {\n    if (this.field?.isEmbeddedBelongsTo || this.field?.isBelongsTo) {\n      return this.subField;\n    }\n    return this.field;\n  }\n\n  get templatingButtontooltipMessage() {\n    return this.templatingNotSupportedMessage || 'Toggle to input code';\n  }\n\n  @action\n  async handleClickTemplate() {\n    if (this.isFieldTypeAnArray) return;\n    this.toggleScope();\n  }\n\n  @action\n  onFieldChange() {\n    this.isUsingTemplate = false;\n    this.set('subField', null);\n\n    if (this.field?.isRelationship) {\n      this.set('operator', null);\n      this.set('value', null);\n      return;\n    }\n\n    this.resetOperator();\n    this.onChange?.(this.condition);\n  }\n\n  @action\n  onSubFieldChange() {\n    this.isUsingTemplate = false;\n    this.resetOperator();\n    this.onChange?.(this.condition);\n  }\n\n  @action\n  onOperatorChange() {\n    this.isUsingTemplate = false;\n    this.set('value', null);\n    this.onChange?.(this.condition);\n  }\n\n  @action\n  handleValueChange(value) {\n    this.value = value;\n    this.onChange?.(this.condition);\n  }\n\n  @action\n  removeCondition(event) {\n    event.stopPropagation();\n    this.condition.filter.conditions.removeObject(this.condition);\n    this.onChange?.(this.condition);\n  }\n\n  @action\n  async handleKeyupTemplate(event) {\n    if (event.key === KEY.BACKSPACE || event.key === KEY.ESCAPE) {\n      if (this.value === '{{}}') {\n        await this.toggleScope();\n      }\n    }\n  }\n\n  @action\n  handleFocusInput(element) {\n    element.querySelector('input')?.focus?.();\n  }\n\n  resetOperator() {\n    this.set('operator', this.condition?.defaultOperator?.displayName);\n    this.set('value', null);\n  }\n\n  async toggleScope() {\n    this.shouldDisplayTemplating = !this.shouldDisplayTemplating;\n\n    // Wait for the input to be displayed\n    await waitForNextRunLoop();\n    document.querySelector(`#${this.parentId} .c-beta-filter-entry__value input`)?.focus();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.hasUnknownField}}\\n  <div class=\\\"c-beta-filter-entry__unknown-field\\\" data-test-beta-filter-entry-unknown-field>\\n    <i class=\\\"material-icons c-beta-filter-entry__unknown-field-icon\\\">warning</i>\\n    <span>The field \\\"{{this.unknownFieldName}}\\\" no longer exists in this collection.</span>\\n  </div>\\n{{/if}}\\n<div\\n  id={{this.parentId}}\\n  class={{get-classes-with-modifiers \\'c-beta-filter-entry\\' no-padding=@noPadding}}\\n  data-test-beta-filter-entry\\n  ...attributes\\n>\\n  <span class=\\\"c-beta-filter-entry__where\\\">\\n    where\\n  </span>\\n\\n  <div class=\\\"l-beta-filter-entry-inputs\\\">\\n    <Shared::BetaSelect\\n      @value={{@condition.field}}\\n      @options={{@fields}}\\n      @namePath=\\\"displayName\\\"\\n      @class=\\\"c-beta-filter-entry__field\\\"\\n      @onChange={{this.onFieldChange}}\\n      @placeholder=\\\"Select a field\\\"\\n      @withSearchInput={{true}}\\n      data-test-field-filter\\n      data-test-beta-filter-entry-field\\n    />\\n\\n    {{#if this.field}}\\n      {{#if (or this.field.isEmbeddedBelongsTo this.field.isBelongsTo)}}\\n        <Shared::BetaSelect\\n          @value={{this.subField}}\\n          @options={{this.subFields}}\\n          @namePath={{if this.field.isEmbeddedBelongsTo \\'field\\' \\'displayName\\'}}\\n          @class=\\\"c-beta-filter-entry__sub-field\\\"\\n          @onChange={{this.onSubFieldChange}}\\n          @placeholder=\\\"Select a subfield\\\"\\n          @withSearchInput={{true}}\\n          data-test-subfield-filter\\n          data-test-beta-filter-entry-subfield\\n        />\\n      {{/if}}\\n\\n      {{#if this.showOperator}}\\n        <Shared::BetaSelect\\n          @value={{this.operator}}\\n          @options={{this.mappedOperators}}\\n          @namePath=\\\"displayName\\\"\\n          @valuePath=\\\"value\\\"\\n          @titlePath=\\\"hint\\\"\\n          @class=\\\"c-beta-filter-entry__operator\\\"\\n          @onChange={{this.onOperatorChange}}\\n          @placeholder=\\\"Operator\\\"\\n          data-test-beta-filter-entry-operator\\n        />\\n        {{#if (and this.operator this.operatorNeedsValue)}}\\n          <div class=\\\"c-beta-filter-entry__value-input\\\">\\n            {{#if this.shouldDisplayTemplating}}\\n              <Form::AutocompleteInput\\n                @value={{this.value}}\\n                @onChange={{this.handleValueChange}}\\n                @templatingHelper={{@templatingHelper}}\\n                @isExpectingSingleVariable={{true}}\\n                @expectedType={{@condition.valueComponentType}}\\n                class=\\\"c-beta-filter-entry__value\\\"\\n                data-test-filter-templated-input\\n                data-test-beta-filter-entry-templated-value\\n                {{! template-lint-disable no-pointer-down-event-binding }}\\n                {{on \\'keydown\\' this.handleKeyupTemplate}}\\n                {{did-insert this.handleFocusInput}}\\n                {{did-update this.handleFocusInput this.operator this.field}}\\n              />\\n            {{else}}\\n              {{#let (component @condition.valueComponent) as |ValueComponent|}}\\n                <ValueComponent\\n                  @type=\\\"edit\\\"\\n                  @field={{this.subFieldOrField}}\\n                  @value={{this.value}}\\n                  @operator={{this.operator}}\\n                  @onChange={{fn this.handleValueChange this.value}}\\n                  class=\\\"c-beta-filter-entry__value\\\"\\n                  {{did-insert this.handleFocusInput}}\\n                  {{did-update this.handleFocusInput this.operator this.field}}\\n                  data-test-filter-basic-input\\n                  data-test-beta-filter-entry-value\\n                />\\n              {{/let}}\\n            {{/if}}\\n            {{#if (and @templatingHelper (not this.isFieldTypeAnArray))}}\\n              {{#let (generate-guid) as |switchButtonId|}}\\n                <div id={{switchButtonId}} data-test-beta-filter-switch-parent-div>\\n                  <Shared::Button::BetaButton\\n                    @iconName=\\\"data_object\\\"\\n                    @size=\\\"normal\\\"\\n                    @type={{if this.shouldDisplayTemplating \\'primary\\' \\'secondary\\'}}\\n                    disabled={{bool @templatingNotSupportedMessage}}\\n                    class=\\\"c-beta-filter-entry__switch\\\"\\n                    data-test-beta-filter-switch\\n                    data-test-beta-filter-entry-switch-to-variable\\n                    data-test-beta-filter-entry-switch-to-variable-toggled={{this.shouldDisplayTemplating}}\\n                    {{on \\'click\\' (prevent-default (stop-propagation this.handleClickTemplate))}}\\n                  />\\n                </div>\\n                <Shared::Feedback::BetaTooltip @targetId={{switchButtonId}} @side=\\\"bottom-end\\\">\\n                  {{this.templatingButtontooltipMessage}}\\n                </Shared::Feedback::BetaTooltip>\\n              {{/let}}\\n            {{/if}}\\n          </div>\\n\\n        {{/if}}\\n      {{/if}}\\n\\n    {{/if}}\\n  </div>\\n\\n  {{#if @showClear}}\\n    <i\\n      {{on \\'click\\' this.removeCondition}}\\n      class=\\\"material-icons c-beta-filter-entry__remove\\\"\\n      role=\\\"button\\\"\\n      data-test-beta-filter-entry-remove\\n    >\\n      close\\n    </i>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/beta-filter/entry/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { readOnly } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\n\nimport Filter from 'client/data/models/filter';\nimport { ConditionContextEnum } from 'client/data/models/fragment-condition';\nimport { AbstractBaseFilterFragment } from 'client/data/models/fragment-filter';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\n@classNames('c-beta-filter-footer')\n@classNameBindings('noPadding:c-beta-filter-footer--no-padding')\n// eslint-disable-next-line ember/require-tagless-components\nexport default class BetaFilterFooterComponent extends Component {\n  @service store;\n\n  static propTypes = {\n    filter: PropTypes.oneOfType([\n      PropTypes.instanceOf(Filter).isRequired,\n      PropTypes.instanceOf(AbstractBaseFilterFragment).isRequired,\n      PropTypes.oneOf([null]).isRequired,\n    ]),\n    clearConditions: PropTypes.func.isRequired,\n    apply: PropTypes.func,\n    applyText: PropTypes.string,\n    showApply: PropTypes.bool,\n    showDiscard: PropTypes.bool,\n    showClear: PropTypes.bool,\n    canClearNew: PropTypes.bool,\n    withSearch: PropTypes.bool,\n    searchValue: PropTypes.string,\n    appliedSearchValue: PropTypes.string,\n    isSearchOrFilterDirty: PropTypes.bool,\n    context: PropTypes.oneOf(Object.values(ConditionContextEnum)),\n    discard: PropTypes.func,\n    addCondition: PropTypes.func,\n  };\n\n  @readOnly('filter.isValidData') isValid;\n\n  @computed(\n    'filter.conditions.@each.field',\n    'filter.conditions.firstObject.field',\n    'filter.isNew',\n    'isSearchOrFilterDirty',\n  )\n  get canDiscard() {\n    return (\n      this.isSearchOrFilterDirty\n      && (!this.filter.isNew\n        || this.filter.conditions?.length > 1\n        || this.filter.conditions?.firstObject?.field)\n    );\n  }\n\n  @computed(\n    'appliedSearchValue',\n    'canClearNew',\n    'filter.{conditions,isNew}',\n    'searchValue',\n    'withSearch',\n  )\n  get canClearAll() {\n    return this.withSearch\n      ? this.searchValue || this.appliedSearchValue || this.filter?.conditions\n      : !this.filter?.isNew || this.canClearNew;\n  }\n\n  @computed('applyText', 'withSearch')\n  get applyTextOrDefault() {\n    if (this.applyText) {\n      return this.applyText;\n    }\n\n    return this.withSearch ? 'Apply' : 'Apply filters';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button::BetaButton\\n  @type=\\\"link-primary\\\"\\n  @underline={{false}}\\n  @text=\\\"Add filter\\\"\\n  @iconName=\\\"add\\\"\\n  @action={{this.addCondition}}\\n  class=\\\"c-beta-filter-footer__add-condition\\\"\\n  @size=\\\"small\\\"\\n/>\\n\\n{{#if (and @showClear this.canClearAll)}}\\n  <Shared::Button::BetaButton\\n    @type=\\\"link-secondary-light\\\"\\n    @underline={{false}}\\n    @text=\\\"Clear all\\\"\\n    @iconName=\\\"close\\\"\\n    @action={{@clearConditions}}\\n    @size=\\\"small\\\"\\n    class=\\\"c-beta-filter-footer__clear-condition\\\"\\n    data-test-beta-filter-footer-clear-all-button\\n  />\\n{{/if}}\\n\\n{{#if (and @showDiscard this.canDiscard)}}\\n  <Shared::Button::BetaButton\\n    @type=\\\"secondary\\\"\\n    @text=\\\"Discard\\\"\\n    @action={{fn this.discard @filter}}\\n    @size=\\\"small\\\"\\n    @async={{false}}\\n    class=\\\"c-beta-filter-footer__discard\\\"\\n  />\\n{{/if}}\\n\\n{{#if @showApply}}\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @text={{this.applyTextOrDefault}}\\n    @action={{fn @apply @filter @searchValue}}\\n    @size=\\\"small\\\"\\n    @disabled={{or (not this.isValid) (not this.isSearchOrFilterDirty)}}\\n    class=\\\"c-beta-filter-footer__apply\\\"\\n    data-test-beta-filter-apply\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/beta-filter/footer/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { alias, filterBy } from '@ember/object/computed';\nimport { next } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { classNames } from '@ember-decorators/component';\n\nimport Field from 'client/data/models/field';\nimport Filter from 'client/data/models/filter';\nimport { ConditionContextEnum } from 'client/data/models/fragment-condition';\nimport { AbstractBaseFilterFragment } from 'client/data/models/fragment-filter';\nimport { KEY, isKey } from 'client/utils/keyboard';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\n@classNames('c-beta-filter-form')\n// eslint-disable-next-line ember/require-tagless-components\nexport default class BetaFilterFormComponent extends Component {\n  static propTypes = {\n    fields: PropTypes.arrayOf(PropTypes.instanceOf(Field)).isRequired,\n    scrollToBottom: PropTypes.bool,\n    canClearNew: PropTypes.bool,\n    showApply: PropTypes.bool.isRequired,\n    showDiscard: PropTypes.bool.isRequired,\n    applyFilter: PropTypes.func,\n    onClearAll: PropTypes.func,\n    filter: PropTypes.oneOfType([\n      PropTypes.instanceOf(Filter),\n      PropTypes.instanceOf(AbstractBaseFilterFragment),\n    ]),\n    createFilter: PropTypes.func.isRequired,\n    discardChanges: PropTypes.func,\n    insidePopup: PropTypes.bool,\n    initAfterClearAll: PropTypes.bool,\n    disableSwitchOperator: PropTypes.bool,\n    withVariables: PropTypes.bool,\n    withSearch: PropTypes.bool,\n    searchValue: PropTypes.string,\n    appliedSearchValue: PropTypes.string,\n    searchPlaceholder: PropTypes.string,\n    onChange: PropTypes.func,\n    onAddFilter: PropTypes.func,\n    context: PropTypes.oneOf(Object.values(ConditionContextEnum)),\n    templatingHelper: PropTypes.instanceOf(AbstractTemplatingHelper),\n    templatingNotSupportedMessage: PropTypes.string,\n  };\n\n  @service store;\n  @service lianaSession;\n  @service lianaFeatures;\n\n  @alias('filter.operator') operator;\n  @filterBy('filter.conditions', 'isDeleted', false) conditions;\n  @computed('filter.conditions.@each.{subField,embeddedField}')\n  get hasSubFieldCondition() {\n    return (\n      this.filter?.conditions\n      && this.filter.conditions.any(\n        (condition) => condition.get('subField') || condition.get('embeddedField'),\n      )\n    );\n  }\n\n  @computed('lianaFeatures', 'lianaSession', 'rendering.environment')\n  get canUseOrFilterOnSubField() {\n    const environment = this.lianaSession.get('rendering.environment');\n    return this.lianaFeatures.isFeatureCompatible('filterTypeOrWithReferences', environment);\n  }\n\n  @computed(\n    'appliedSearchValue',\n    'filter.conditions.@each.{hasDirtyAttributes,hasDirtyRelationships}',\n    'filter.{hasDirtyAttributes,hasDirtyRelationships,isNew}',\n    'searchValue',\n  )\n  get isSearchOrFilterDirty() {\n    if (this.searchValue !== this.appliedSearchValue) return true;\n    if (this.filter.isNew && !this.filter.conditions?.length) return false;\n\n    return (\n      this.filter.hasDirtyAttributes\n      || this.filter.hasDirtyRelationships\n      || this.filter.conditions.any(\n        (condition) =>\n          condition.get('hasDirtyAttributes') || condition.get('hasDirtyRelationships'),\n      )\n    );\n  }\n\n  // eslint-disable-next-line ember/classic-decorator-hooks\n  init(...args) {\n    super.init(...args);\n    this.initFilterAndCondition();\n  }\n\n  // eslint-disable-next-line ember/no-component-lifecycle-hooks\n  didInsertElement(...args) {\n    super.didInsertElement(...args);\n    if (this.scrollToBottom) {\n      next(() => {\n        next(() => {\n          if (this.isDestroyed || this.isDestroying) {\n            return;\n          }\n\n          if (this.insidePopup) {\n            const [element] = this.element.getElementsByClassName('js-beta-filter-form-entries');\n            element.scrollTop = element.scrollHeight;\n          }\n        });\n      });\n    }\n  }\n\n  @action\n  handleConditionChange() {\n    this.onChange?.(this.filter);\n  }\n\n  @action\n  toggleOperator() {\n    if (this.disableSwitchOperator) {\n      return;\n    }\n    if (this.hasSubFieldCondition && !this.canUseOrFilterOnSubField) {\n      return;\n    }\n    this.set('operator', this.operator === 'and' ? 'or' : 'and');\n    this.onChange?.(this.filter);\n  }\n\n  @action\n  onAddCondition() {\n    this.onChange?.(this.filter);\n    this.onAddFilter?.(this.filter);\n    next(() => {\n      if (this.isDestroyed || this.isDestroying) {\n        return;\n      }\n\n      if (this.insidePopup) {\n        const [element] = this.element.getElementsByClassName('js-beta-filter-form-entries');\n        element.scrollTop = element.scrollHeight;\n      } else {\n        const footer = this.element.querySelector('.c-beta-filter-form__footer');\n        footer.scrollIntoView({ behavior: 'smooth', block: 'end', inline: 'nearest' });\n      }\n    });\n  }\n\n  @action\n  resetFilter() {\n    this.filter.conditions.clear();\n    if (this.onClearAll) {\n      this.onClearAll();\n    }\n    if (this.initAfterClearAll) {\n      this.initFilterAndCondition();\n    }\n    if (this.onClearAll) {\n      this.onClearAll();\n    }\n    if (this.applyFilter) {\n      this.applyFilterAndSearch(this.filter, '');\n    }\n    this.onChange?.(this.filter);\n    return false;\n  }\n\n  @action\n  addCondition() {\n    this.filter.createCondition({ context: this.context });\n    this.onAddCondition();\n    return false;\n  }\n\n  @action\n  discard() {\n    if (this.discardChanges) {\n      this.discardChanges();\n      return;\n    }\n\n    if (this.filter.isNew) {\n      this.filter.conditions.clear();\n      this.addCondition();\n      return;\n    }\n\n    this.filter.rollbackAttributes();\n  }\n\n  get showDiscardButton() {\n    return [undefined, true].includes(this.showDiscard) && !this.withSearch;\n  }\n\n  @action\n  applyFilterAndSearch(filter, search) {\n    this.applyFilter?.(filter, search);\n  }\n\n  initFilterAndCondition() {\n    if (!this.filter) {\n      this.set('filter', this.createFilter({ conditions: [], operator: 'and' }));\n    }\n\n    if (!this.filter?.conditions?.length && !this.withSearch) {\n      this.filter.createCondition({\n        context: this.context || ConditionContextEnum.Collection,\n      });\n    }\n  }\n\n  @action\n  onKeyUp(event) {\n    if (isKey(KEY.ENTER, event) && this.filter.isValidData && this.isSearchOrFilterDirty) {\n      this.applyFilterAndSearch(this.filter, this.searchValue);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @withSearch}}\\n  <BetaFilter::Search\\n    @apply={{this.applyFilterAndSearch}}\\n    @filter={{this.filter}}\\n    @searchValue={{@searchValue}}\\n    @placeholder={{@searchPlaceholder}}\\n    @onChange={{@onSearchValueChange}}\\n  />\\n{{/if}}\\n\\n{{#if this.conditions.length}}\\n  <div\\n    class=\\\"l-beta-filter-form-entries\\n      {{if @insidePopup \\'l-beta-filter-form-entries--popup\\'}}\\n      js-beta-filter-form-entries\\\"\\n  >\\n    {{#each this.conditions as |condition index|}}\\n      {{#unless (eq index 0)}}\\n        <BetaFilter::Operator @operator={{this.operator}} @onClick={{this.toggleOperator}} />\\n      {{/unless}}\\n\\n      <BetaFilter::Entry\\n        @condition={{condition}}\\n        @fields={{@fields}}\\n        @showClear={{or @withSearch (gt this.conditions.length 1)}}\\n        @templatingHelper={{@templatingHelper}}\\n        @templatingNotSupportedMessage={{@templatingNotSupportedMessage}}\\n        @withVariables={{@withVariables}}\\n        @noPadding={{@noPadding}}\\n        @onChange={{this.handleConditionChange}}\\n        {{on \\'keyup\\' this.onKeyUp}}\\n      />\\n    {{/each}}\\n  </div>\\n{{/if}}\\n\\n<BetaFilter::Footer\\n  @filter={{this.filter}}\\n  @apply={{this.applyFilterAndSearch}}\\n  @applyText={{@applyText}}\\n  @clearConditions={{this.resetFilter}}\\n  @showApply={{@showApply}}\\n  @showDiscard={{this.showDiscardButton}}\\n  @showClear={{true}}\\n  @canClearNew={{@canClearNew}}\\n  @isSearchOrFilterDirty={{this.isSearchOrFilterDirty}}\\n  @withSearch={{@withSearch}}\\n  @searchValue={{@searchValue}}\\n  @appliedSearchValue={{@appliedSearchValue}}\\n  @noPadding={{@noPadding}}\\n  @context={{@context}}\\n  @discard={{this.discard}}\\n  @addCondition={{this.addCondition}}\\n  class=\\\"c-beta-filter-form__footer\\\"\\n/>\\n', { moduleName: 'client/legacy/pods/components/beta-filter/form/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\n@classNames('c-beta-filter-operator')\nexport default class BetaFilterOperatorComponent extends Component {\n  static propTypes = {\n    operator: PropTypes.oneOf(['and', 'or']).isRequired,\n    onClick: PropTypes.func.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-filter-operator__separator\\\"></div>\\n<span\\n  {{on \\'click\\' (fn @onClick @operator)}}\\n  class=\\\"c-beta-filter-operator__operator c-beta-filter-operator__operator--{{@operator}}\\\"\\n  role=\\\"button\\\"\\n>\\n  {{@operator}}\\n</span>\\n', { moduleName: 'client/legacy/pods/components/beta-filter/operator/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\nimport window from 'ember-window-mock';\n\nimport Field from 'client/data/models/field';\nimport FieldEnvironmentModel from 'client/data/models/field-environment';\nimport Filter from 'client/data/models/filter';\nimport { ConditionContextEnum } from 'client/data/models/fragment-condition';\nimport { AbstractBaseFilterFragment } from 'client/data/models/fragment-filter';\nimport validateArguments from 'client/decorators/validate';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\n@classNames('c-beta-filter-popup')\n@classNameBindings('isHidden:c-beta-filter-popup--hidden')\n// eslint-disable-next-line ember/require-tagless-components\nexport default class BetaFilterPopupComponent extends Component {\n  @service eventBus;\n  @service popup;\n\n  static propTypes = {\n    fields: PropTypes.oneOfType([\n      PropTypes.arrayOf(PropTypes.instanceOf(Field)),\n      PropTypes.arrayOf(PropTypes.instanceOf(FieldEnvironmentModel)),\n    ]).isRequired,\n    parentElementId: PropTypes.string.isRequired,\n    containerId: PropTypes.string.isRequired,\n    scrollToBottom: PropTypes.bool,\n    hide: PropTypes.func.isRequired,\n    applyFilter: PropTypes.func.isRequired,\n    disableSwitchOperator: PropTypes.bool,\n    filter: PropTypes.oneOfType([\n      PropTypes.instanceOf(Filter),\n      PropTypes.instanceOf(AbstractBaseFilterFragment),\n    ]),\n    createFilter: PropTypes.func.isRequired,\n    withSearch: PropTypes.bool,\n    searchValue: PropTypes.string,\n    appliedSearchValue: PropTypes.string,\n    searchPlaceholder: PropTypes.string,\n    context: PropTypes.oneOf(Object.values(ConditionContextEnum)),\n  };\n\n  isHidden = true;\n\n  @computed('parentElementId')\n  get parentElement() {\n    return document.getElementById(this.parentElementId);\n  }\n\n  get popupHeight() {\n    return this.element.offsetHeight;\n  }\n\n  get popupWidth() {\n    return this.element.offsetWidth;\n  }\n\n  didInsertElement(...args) {\n    super.didInsertElement(...args);\n    this.initPopupPosition();\n  }\n\n  @action\n  initPopupPosition() {\n    if (!this.parentElementId) {\n      return;\n    }\n    const parentElementPosition = this.parentElement.getBoundingClientRect();\n    const margin = 8;\n    const windowBorderMargin = 16;\n\n    const position = {\n      top: parentElementPosition.bottom + margin,\n      left: parentElementPosition.left,\n    };\n\n    const windowWidth = window.innerWidth;\n    if (this.popupWidth + windowBorderMargin > windowWidth - parentElementPosition.left) {\n      position.left = undefined;\n      position.right = windowBorderMargin;\n    }\n\n    if (this.isDestroyed || this.isDestroying) {\n      return;\n    }\n    this.popup.show(this.containerId, this.element, position, async () => {\n      // Waiting for a run loop so that the element is no longer hidden to be handled\n      // properly by Safari\n      const isSafari = !!window.safari;\n      this.set('isHidden', false);\n      if (isSafari) {\n        await waitForNextRunLoop();\n      }\n      // Updating position after 'show' because the height of the popup might change\n      // 'updatePosition' only handles vertical position\n      this.updatePosition(position);\n    });\n  }\n\n  updatePosition(initialPosition) {\n    if (this.isDestroyed || this.isDestroying) {\n      return;\n    }\n    const parentElementPosition = this.parentElement.getBoundingClientRect();\n    const margin = 8;\n    const windowBorderMargin = 16;\n    const position = {\n      ...initialPosition,\n    };\n    const windowHeight = window.innerHeight;\n    if (\n      this.popupHeight + windowBorderMargin + margin\n      > windowHeight - parentElementPosition.bottom\n    ) {\n      position.bottom = windowHeight - parentElementPosition.top + margin;\n      position.top = undefined;\n    }\n    this.popup.show(this.containerId, this.element, position);\n  }\n\n  click(event) {\n    this.eventBus.trigger('inputClick', event);\n    event.stopPropagation();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaFilter::Form\\n  @fields={{@fields}}\\n  @scrollToBottom={{@scrollToBottom}}\\n  @applyFilter={{@applyFilter}}\\n  @filter={{@filter}}\\n  @createFilter={{@createFilter}}\\n  @showApply={{true}}\\n  @showDiscard={{@showDiscard}}\\n  @insidePopup={{true}}\\n  @disableSwitchOperator={{@disableSwitchOperator}}\\n  @withSearch={{@withSearch}}\\n  @searchValue={{@searchValue}}\\n  @appliedSearchValue={{@appliedSearchValue}}\\n  @searchPlaceholder={{@searchPlaceholder}}\\n  @onSearchValueChange={{@onSearchValueChange}}\\n  @context={{@context}}\\n  @templatingHelper={{@templatingHelper}}\\n  @applyText={{@applyText}}\\n  @onAddFilter={{this.initPopupPosition}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/beta-filter/popup/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-filter-search\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"search\\\"\\n    @textClass=\\\"c-beta-filter-search__text-label\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-beta-filter-search__label\\\"\\n    data-test-beta-filter-search-label\\n  >\\n    <Shared::BetaSearchBar\\n      @searchFunction={{fn @apply @filter @searchValue}}\\n      @searchValue={{@searchValue}}\\n      @placeholder={{@placeholder}}\\n      @onChange={{@onChange}}\\n      class=\\\"c-beta-filter-search__search-bar\\\"\\n      data-test-search-bar\\n    />\\n  </Shared::BetaLabel>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/beta-filter/search/template.hbs' });\n","import { action } from '@ember/object';\nimport { alias, not } from '@ember/object/computed';\nimport { debounce } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Model from '@ember-data/model';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Field from 'client/data/models/field';\nimport { argument, optional } from 'client/decorators/argument';\nimport { addQueryContext, addQueryScope, addQuerySearch } from 'client/utils/query-utils';\nimport { getOptionValueToDisplay } from 'client/utils/reference-field-utils';\n\nexport default class BetaFormAddExistingRecordComponent extends Component {\n  @service abilities;\n  @service store;\n  @service service;\n  @service lianaFeatures;\n\n  @argument(Field) field;\n  @argument(Function) onChange;\n  @argument(optional(Model)) record;\n\n  @alias('args.field.referenceModel') collection;\n  @not('collection.searchEnabled') cannotSearch;\n\n  @tracked value;\n  @tracked searchValue;\n  @tracked searchResult;\n\n  constructor(...args) {\n    super(...args);\n\n    this.search();\n  }\n\n  get placeholder() {\n    return `Search a ${this.collection.displayNameLowerCase}…`;\n  }\n\n  get fieldValue() {\n    return this.value ?? null;\n  }\n\n  set fieldValue(value) {\n    this.value = value;\n    if (value) {\n      this.searchValue = getOptionValueToDisplay(this.collection, value);\n    }\n  }\n\n  get context() {\n    return {\n      relationship: 'HasMany',\n      field: this.args.field.fieldName,\n      collection: this.args.field.collection.name,\n      recordId: this.args.record?.id,\n    };\n  }\n\n  @action\n  onSearchValueChange() {\n    debounce(this, this.search, this.args.debounceTime || 500);\n  }\n\n  async search() {\n    const query = {};\n    addQuerySearch(query, this.searchValue, true);\n    addQueryScope(\n      { abilities: this.abilities, lianaFeatures: this.lianaFeatures },\n      query,\n      this.collection,\n    );\n    addQueryContext(query, this.context);\n\n    this.searchResult = this.store.query(this.collection.emberModelName, query);\n  }\n\n  @action\n  onSelectValue(value) {\n    this.value = value;\n    this.args.onChange(value);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel\\n  @label={{@field.displayName}}\\n  @description={{@field.description}}\\n  data-test-input-for={{@field.fieldName}}\\n  data-test-beta-form-add-existing-record\\n  ...attributes\\n>\\n  {{#if this.cannotSearch}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"warning\\\"\\n      @message=\\\"The search on {{@field.referenceModel.displayNameLowerCase}} is not authorized.\\\"\\n      data-test-beta-form-add-existing-record-notification\\n    />\\n  {{else}}\\n    <Shared::BetaSelectSearch\\n      @enableLocalFilterAndHighlighter={{false}}\\n      @namePath={{@field.referenceModel.displayFieldWithNamespace}}\\n      @value={{this.fieldValue}}\\n      @searchValue={{this.searchValue}}\\n      @options={{this.searchResult}}\\n      @onSearchValueChange={{this.onSearchValueChange}}\\n      @onChange={{this.onSelectValue}}\\n    />\\n  {{/if}}\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/beta-form/add-existing-record/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::DataViewBreadcrumb @breadcrumbs={{@breadcrumbs}} @isNewDesign={{true}} ...attributes />\\n', { moduleName: 'client/legacy/pods/components/beta-header/breadcrumb/template.hbs' });\n","import { action } from '@ember/object';\nimport { readOnly } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class BetaHeaderComponent extends Component {\n  @service currentUser;\n  @service uiControl;\n\n  @argument(optional(Boolean)) hasSideMenu;\n  @argument(optional(Boolean)) isBuilder;\n  @argument(optional(Boolean)) isLayoutEditorButtonHidden;\n  @argument(optional(Array)) menuItems;\n  @argument(optional(String)) title;\n  @argument(optional(Function)) onLayoutEditorClick;\n  @argument(optional(Boolean)) withoutMaxWidth;\n  @argument(optional(String)) variant;\n  @argument(optional(Array)) breadcrumbs;\n\n  @readOnly('uiControl.isSideMenuHidden') isSideMenuHidden;\n\n  @action\n  onShowSideMenu() {\n    this.uiControl.isSideMenuHidden = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<header\\n  class={{get-classes-with-modifiers \\'c-beta-header\\' @variant rounded-top=@hasRoundedTop}}\\n  ...attributes\\n  data-test-beta-header\\n>\\n  <div class=\\\"l-beta-header-main\\\">\\n    <div class=\\\"l-beta-header-main__title\\\" data-test-beta-header-left-buttons>\\n      {{#if @title}}\\n        <div\\n          class={{get-classes-with-modifiers\\n            \\'c-beta-header__title-wrapper\\'\\n            no-max-width=(or @withoutMaxWidth false)\\n          }}\\n          data-test-beta-header-title-wrapper\\n        >\\n          <h1\\n            class=\\\"c-beta-header__title\\n              {{if @onTitleClick \\'c-beta-header__title--clickable\\'}}\\n              {{@titleClass}}\\\"\\n            title={{@title}}\\n            data-test-beta-header-title\\n            role=\\\"button\\\"\\n            {{on \\'click\\' (optional @onTitleClick)}}\\n          >\\n            {{@title}}\\n          </h1>\\n          {{#if @subtitle}}\\n            <p class=\\\"c-beta-header__subtitle {{@subtitleClass}}\\\" data-test-beta-header-subtitle>\\n              {{@subtitle}}\\n            </p>\\n          {{/if}}\\n\\n          {{yield to=\\'title-actions\\'}}\\n        </div>\\n      {{else}}\\n        <BetaHeader::Breadcrumb @breadcrumbs={{@breadcrumbs}} data-test-beta-header-breadcrumb />\\n      {{/if}}\\n      {{yield to=\\'left-buttons\\'}}\\n    </div>\\n\\n    {{#if (has-block \\'search-and-filter\\')}}\\n      <div class=\\\"l-beta-header-main__search-and-filter\\\" data-test-beta-header-search-and-filter>\\n        {{yield \\'l-beta-header-main__search-and-filter\\' to=\\'search-and-filter\\'}}\\n      </div>\\n    {{/if}}\\n\\n    {{#if (or (has-block \\'right-buttons\\') (not @isLayoutEditorButtonHidden))}}\\n      <div class=\\\"c-beta-header__actions\\\" data-test-beta-header-right-buttons>\\n        {{#unless @isLayoutEditorButtonHidden}}\\n          <Button::LayoutEditorButton\\n            @isBuilder={{@isBuilder}}\\n            @onLayoutEditorClick={{@onLayoutEditorClick}}\\n            data-test-beta-header-layout-editor-button\\n          />\\n        {{/unless}}\\n\\n        {{yield \\'c-beta-header__actions\\' to=\\'right-buttons\\'}}\\n      </div>\\n    {{/if}}\\n  </div>\\n\\n  {{#if (is-array @menuItems)}}\\n    <Navigation::NavigationMenu\\n      @items={{@menuItems}}\\n      @isNested={{true}}\\n      data-test-beta-header-navigation\\n    />\\n  {{/if}}\\n</header>\\n', { moduleName: 'client/legacy/pods/components/beta-header/template.hbs' });\n","import Model from '@ember-data/model';\nimport Component from '@glimmer/component';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport { argument, arrayOf, oneOfType, optional } from 'client/decorators/argument';\n\nexport default class BetaSettingsCardComponent extends Component {\n  @argument(oneOfType([Model, Fragment, arrayOf(optional(Model))])) entity;\n  @argument(Function) save;\n  @argument(optional(Function)) discard;\n  @argument(optional(Boolean)) isSaveDisabled;\n  @argument(optional(Boolean)) isDiscardVisible;\n  @argument(optional(Boolean)) withoutCallback;\n\n  get isSaveButtonDisabled() {\n    if (this.args.isSaveDisabled) return true;\n    let entities = this.args.entity;\n    if (!Array.isArray(this.args.entity)) entities = [this.args.entity];\n    return entities.every((e) => this.isClean(e));\n  }\n\n  isClean(entity) {\n    return !entity?.hasDirtyAttributes && !entity?.hasDirtyRelationships;\n  }\n}\n","import Component from '@ember/component';\nimport { tagName } from '@ember-decorators/component';\n\nimport { argument, optional } from 'client/decorators/argument';\n\n@tagName('')\nexport default class BetaSettingsCardSectionComponent extends Component {\n  @argument(optional(String)) title;\n  @argument(optional(Boolean)) hasSettingsButton = false;\n  @argument(optional(Boolean)) disabledSettingsButton = false;\n  @argument(optional(Function)) openSettings;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-settings-card-section\\\" data-test-card-section={{@title}} ...attributes>\\n  <div class=\\\"l-beta-settings-card-section-header\\\">\\n    {{#if @title}}\\n      <h2 class=\\\"c-beta-settings-card-section__title\\\">\\n        {{@title}}\\n      </h2>\\n    {{/if}}\\n    {{#if @hasSettingsButton}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"link-secondary-light\\\"\\n        @underline={{false}}\\n        @iconName=\\\"settings\\\"\\n        @disabled={{@disabledSettingsButton}}\\n        @action={{@openSettings}}\\n        @size=\\\"small\\\"\\n        @noPadding={{true}}\\n        data-test-settings-button={{@title}}\\n      />\\n    {{/if}}\\n  </div>\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/beta-settings-card/section/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-settings-card\\\" ...attributes>\\n  <Button::BetaSaveDiscardButtons\\n    @entity={{@entity}}\\n    @entityName={{@entityName}}\\n    @isCreate={{@entity.isNew}}\\n    @save={{@save}}\\n    @discard={{@discard}}\\n    @fullWidth={{false}}\\n    @isSaveDisabled={{this.isSaveButtonDisabled}}\\n    @isDiscardVisible={{@isDiscardVisible}}\\n    @withoutCallback={{@withoutCallback}}\\n    @size=\\\"small\\\"\\n    class=\\\"c-beta-settings-card__buttons\\\"\\n  />\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/beta-settings-card/template.hbs' });\n","import { action, computed, set } from '@ember/object';\nimport { oneWay } from '@ember/object/computed';\nimport { debounce } from '@ember/runloop';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument, oneOfType, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class BetaSettingsInputComponent extends Component {\n  @argument(oneOfType([String, null, Number])) value;\n  @argument(String) inputId;\n  @argument(Function) onSave;\n  @argument(optional(Function)) checkValue;\n  @argument(optional(String)) checkingText;\n  @argument(optional(String)) successText;\n  @argument(optional(Number)) checkDebounce = 200;\n\n  @oneWay('args.value') modifiedValue;\n  @tracked isChecking;\n  @tracked error;\n  @tracked disableSave = false;\n  @tracked isSuccess = false;\n\n  @computed('args.value', 'modifiedValue')\n  get displayActions() {\n    return this.modifiedValue !== this.args.value;\n  }\n\n  @action\n  cancel() {\n    set(this, 'modifiedValue', this.args.value);\n  }\n\n  @action\n  async save(callback) {\n    try {\n      if (this.modifiedValue !== this.args.value) {\n        if (this.args.checkValue) {\n          await this.args.checkValue(this.modifiedValue);\n        }\n\n        await this.args.onSave(this.modifiedValue);\n      }\n    } finally {\n      callback();\n    }\n\n    if (!this.isDestroyed) {\n      set(this, 'modifiedValue', this.args.value);\n    }\n  }\n\n  @action\n  onValueChange() {\n    const newValue = this.modifiedValue;\n    if (newValue !== this.args.value && this.args.checkValue) {\n      this.isChecking = true;\n      debounce(this, this.checkValueAndUpdateStatus, this.args.checkDebounce ?? 200);\n    } else {\n      this.isChecking = false;\n    }\n  }\n\n  async checkValueAndUpdateStatus() {\n    this.error = undefined;\n    this.isSuccess = false;\n    const newValue = this.modifiedValue;\n\n    if (newValue !== this.args.value && this.args.checkValue) {\n      this.isChecking = true;\n      this.disableSave = true;\n\n      try {\n        await this.args.checkValue(newValue);\n        if (newValue === this.modifiedValue) {\n          // If this is not the case, it means that the\n          // value changed while we were checking it\n          this.disableSave = false;\n          this.isSuccess = true;\n        }\n      } catch (e) {\n        if (newValue === this.modifiedValue) {\n          this.error = e.message;\n        }\n      } finally {\n        if (newValue === this.modifiedValue) {\n          this.isChecking = false;\n        }\n      }\n    } else {\n      this.isChecking = false;\n      this.disableSave = false;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-settings-input\\\">\\n  <div class=\\\"c-beta-settings-input__row\\\">\\n    <Shared::BetaInput\\n      @inputId={{@inputId}}\\n      @value={{this.modifiedValue}}\\n      @onChange={{this.onValueChange}}\\n      @class=\\\"c-beta-settings-input__input\\\"\\n    />\\n    <span\\n      class=\\\"c-beta-settings-input__actions\\n        {{if this.displayActions \\'c-beta-settings-input__actions--displayed\\'}}\\\"\\n    >\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @text=\\\"Cancel\\\"\\n        @async={{false}}\\n        @action={{this.cancel}}\\n        class=\\\"c-beta-settings-input__action c-beta-settings-input__action--cancel\\\"\\n        data-test-action=\\\"cancel-{{@inputId}}\\\"\\n      />\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @text=\\\"Save\\\"\\n        @async={{true}}\\n        @action={{this.save}}\\n        @disabled={{this.disableSave}}\\n        class=\\\"c-beta-settings-input__action c-beta-settings-input__action--save\\\"\\n        data-test-action=\\\"save-{{@inputId}}\\\"\\n      />\\n    </span>\\n  </div>\\n  {{#if (and this.displayActions this.isChecking)}}\\n    <div class=\\\"c-beta-settings-input__row c-beta-settings-input__row--status\\\">\\n      <Feedback::BetaStatusLabel @type=\\\"loading\\\">\\n        {{if @checkingText @checkingText \\'Loading...\\'}}\\n      </Feedback::BetaStatusLabel>\\n    </div>\\n  {{else if (and this.displayActions this.isSuccess @successText)}}\\n    <div class=\\\"c-beta-settings-input__row c-beta-settings-input__row--status\\\">\\n      <Feedback::BetaStatusLabel @type=\\\"success\\\">\\n        {{@successText}}\\n      </Feedback::BetaStatusLabel>\\n    </div>\\n  {{else if (and this.displayActions this.error)}}\\n    <div class=\\\"c-beta-settings-input__row c-beta-settings-input__row--status\\\">\\n      <Feedback::BetaStatusLabel @type=\\\"error\\\">\\n        {{this.error}}\\n      </Feedback::BetaStatusLabel>\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/beta-settings/input/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class BetaSettingsMainSectionComponent extends Component {\n  @argument(String) title;\n  @argument(optional(String)) class;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-settings-main-section {{@class}}\\\">\\n  <h2 class=\\\"c-beta-settings-main-section__title\\\">\\n    {{@title}}\\n  </h2>\\n\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/beta-settings/main-section/template.hbs' });\n","import { computed } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class BetaSettingsSectionComponent extends Component {\n  @argument(optional(String)) targetInputId;\n  @argument(String) title;\n  @argument(optional(String)) class;\n  @argument(optional(String)) description;\n  @argument(optional(Boolean)) showDelimiter;\n\n  @computed('args.showDelimiter')\n  get displayBorder() {\n    return this.args.showDelimiter === undefined || this.args.showDelimiter;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-beta-settings-section\\n    {{@class}}\\n    c-beta-settings-section--{{if this.displayBorder \\'border\\' \\'no-border\\'}}\\\"\\n>\\n  <div class=\\\"c-beta-settings-section__title\\\">\\n    {{#if @targetInputId}}\\n      <label for={{@targetInputId}} class=\\\"c-beta-settings-section__label\\\">\\n        {{@title}}\\n      </label>\\n    {{else}}\\n      <span class=\\\"c-beta-settings-section__label\\\">\\n        {{@title}}\\n      </span>\\n    {{/if}}\\n    {{#if @description}}\\n      <span class=\\\"c-beta-settings-section__description\\\">\\n        {{@description}}\\n      </span>\\n    {{/if}}\\n  </div>\\n  <div class=\\\"c-beta-settings-section__content\\\">\\n    {{yield}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/beta-settings/section/template.hbs' });\n","import { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { argument, optional } from 'client/decorators/argument';\n\nexport default class BetaUserDropdownButtonComponent extends Component {\n  @service currentUser;\n\n  @argument(optional(Boolean)) isActive;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-user-dropdown-button\\\" ...attributes>\\n  <Picture::PictureAvatar\\n    @class=\\\"c-beta-user-dropdown-button__avatar\\\"\\n    @size={{40}}\\n    @email={{this.currentUser.model.email}}\\n    @initials={{this.currentUser.model.initials}}\\n  />\\n  <div class=\\\"c-beta-user-dropdown-button__info\\\">\\n    <span class=\\\"c-beta-user-dropdown-button__user-name\\\">\\n      {{this.currentUser.fullName}}\\n    </span>\\n    {{#if this.currentUser.team}}\\n      <span class=\\\"c-beta-user-dropdown-button__team-name\\\">\\n        {{this.currentUser.team.name}}\\n      </span>\\n    {{/if}}\\n  </div>\\n  {{#if @isActive}}\\n    <div class=\\\"c-beta-user-dropdown-button__chevrons\\\">\\n      <i class=\\\"material-icons c-beta-user-dropdown-button__chevron-icon\\\">\\n        arrow_drop_up\\n      </i>\\n    </div>\\n  {{else}}\\n    <div class=\\\"c-beta-user-dropdown-button__chevrons\\\">\\n      <i class=\\\"material-icons c-beta-user-dropdown-button__chevron-icon\\\">\\n        arrow_drop_down\\n      </i>\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/beta-user-dropdown/button/template.hbs' });\n","import { computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport Environment from 'client/data/models/environment';\nimport Project from 'client/data/models/project';\nimport Rendering from 'client/data/models/rendering';\nimport { argument, optional } from 'client/decorators/argument';\n\nexport default class BetaUserDropdownComponent extends Component {\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  /** @type {import('client/legacy/services/current-user').default} */\n  @service currentUser;\n  @service router;\n\n  @argument(optional(Function)) transitionToSettings;\n  @argument(optional(Function)) transitionToProjects;\n  @argument(optional(Environment)) environment;\n  @argument(optional(Rendering)) rendering;\n  @argument(optional(Project)) project;\n\n  @computed('args.project')\n  get hasProject() {\n    return !!this.args.project;\n  }\n}\n","import { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport OrganizationModel from 'client/data/models/organization';\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class BetaUserDropdownSettingsComponent extends Component {\n  @argument(Boolean) userCanEditProjectSettings;\n  @argument(optional(Function)) transitionToSettings;\n  @argument(optional(Function)) transitionToProjectSettings;\n  @argument(optional(OrganizationModel)) organization;\n\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n\n  get currentPath() {\n    return this.router.location.getURL();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#unless @isSettings}}\\n  <div class=\\\"c-beta-user-dropdown-settings\\\" ...attributes>\\n    <div class=\\\"c-beta-user-dropdown-settings__title\\\">\\n      settings\\n    </div>\\n\\n    {{#if @transitionToSettings}}\\n      <div\\n        class=\\\"c-beta-user-dropdown-settings__setting\\\"\\n        role=\\\"button\\\"\\n        {{on \\'click\\' @transitionToSettings}}\\n      >\\n        <span class=\\\"c-beta-user-dropdown-settings__setting-text\\\">\\n          Account settings\\n        </span>\\n      </div>\\n    {{/if}}\\n    {{#unless @disableInteraction}}\\n      {{#if @userCanEditProjectSettings}}\\n        <div\\n          class=\\\"c-beta-user-dropdown-settings__setting\\\"\\n          role=\\\"button\\\"\\n          {{on \\'click\\' @transitionToProjectSettings}}\\n        >\\n          <span\\n            class=\\\"c-beta-user-dropdown-settings__setting-text\\\"\\n            data-test-input-for=\\\"project settings\\\"\\n          >\\n            Project settings\\n          </span>\\n        </div>\\n      {{/if}}\\n      {{#if @organization.canAccessOrganizationSettings}}\\n        <LinkTo\\n          @route=\\\"organization.settings\\\"\\n          @models={{array @organization.name}}\\n          @query={{hash close=this.currentPath}}\\n          class=\\\"c-beta-user-dropdown-settings__setting\\\"\\n        >\\n          <span class=\\\"c-beta-user-dropdown-settings__setting-text\\\">\\n            Organization settings\\n          </span>\\n        </LinkTo>\\n      {{/if}}\\n    {{/unless}}\\n  </div>\\n{{/unless}}\\n', { moduleName: 'client/legacy/pods/components/beta-user-dropdown/settings/template.hbs' });\n","import { action } from '@ember/object';\nimport { alias, gt } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { pathToRenderingBuilder } from 'client/data/models/rendering';\nimport { argument } from 'client/decorators/argument';\n\nexport default class BetaUserDropdownTeamsComponent extends Component {\n  /** @type {import('client/legacy/services/liana-session').default} */\n  @service lianaSession;\n  /** @type {import('client/legacy/services/liana-session-oidc').default} */\n  @service lianaSessionOidc;\n  @service redirection;\n\n  @argument(Array) teams;\n\n  @alias('lianaSession.currentTeam.id') currentTeamId;\n\n  @gt('teams.length', 1) multipleTeams;\n\n  @action\n  async switchTeam(team) {\n    this.lianaSession.disableLogin();\n    await this.lianaSessionOidc.invalidateAll();\n    const projectName = this.lianaSession.currentProject.name;\n    const environmentName = this.lianaSession.currentEnvironment.name;\n    const teamName = team.name;\n    const path = pathToRenderingBuilder(projectName, environmentName, teamName);\n    this.redirection.redirectToHref(path);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-user-dropdown-teams c-beta-user-dropdown-teams__teams\\\" ...attributes>\\n  <div class=\\\"c-beta-user-dropdown-teams__title\\\">\\n    {{if this.multipleTeams \\'teams\\' \\'team\\'}}\\n  </div>\\n  {{#each @teams as |team|}}\\n    {{#if (eq this.currentTeamId team.id)}}\\n      <span class=\\\"c-beta-user-dropdown-teams__team c-beta-user-dropdown-teams__team--current\\\">\\n        {{team.name}}\\n      </span>\\n    {{else}}\\n      <span\\n        class=\\\"c-beta-user-dropdown-teams__team\\\"\\n        role=\\\"button\\\"\\n        {{on \\'click\\' (fn this.switchTeam team)}}\\n      >\\n        {{team.name}}\\n      </span>\\n    {{/if}}\\n  {{/each}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/beta-user-dropdown/teams/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-user-dropdown\\\" data-test-beta-user-dropdown ...attributes>\\n  <Dropdown::DropdownMenu @class=\\\"c-beta-user-dropdown__button\\\" as |dropdown|>\\n    <Dropdown::DropdownMenu::DropdownMenuTrigger\\n      @dropdown={{dropdown}}\\n      data-test-beta-user-dropdown-trigger\\n    >\\n      <BetaUserDropdown::Button @isActive={{dropdown.content.display}} />\\n    </Dropdown::DropdownMenu::DropdownMenuTrigger>\\n    <Dropdown::DropdownMenu::DropdownMenuContent\\n      @dropdown={{dropdown}}\\n      @styleModifier=\\\"align-right\\\"\\n      @contentClass=\\\"c-beta-user-dropdown__button-content\\\"\\n    >\\n      <BetaUserDropdown::UserSettings />\\n\\n      {{#if (and this.hasProject this.currentUser.model.teamsOrderByName)}}\\n        <BetaUserDropdown::Teams @teams={{this.currentUser.model.teamsOrderByName}} />\\n      {{/if}}\\n\\n      {{#if\\n        (or\\n          @transitionToSettings\\n          this.currentUser.canEditProject\\n          this.currentOrganization.model.canAccessOrganizationSettings\\n        )\\n      }}\\n        <BetaUserDropdown::Settings\\n          @userCanEditProjectSettings={{and this.currentUser.canEditProject this.hasProject}}\\n          @transitionToProjectSettings={{action-link-to \\'project.project-settings\\'}}\\n          @transitionToSettings={{@transitionToSettings}}\\n          @organization={{this.currentOrganization.model}}\\n          @disableInteraction={{@disableInteraction}}\\n          @isSettings={{@isSettings}}\\n        />\\n      {{/if}}\\n\\n      <BetaUserDropdown::UserActions @transitionToProjects={{@transitionToProjects}} />\\n    </Dropdown::DropdownMenu::DropdownMenuContent>\\n  </Dropdown::DropdownMenu>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/beta-user-dropdown/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport { argument, optional } from 'client/decorators/argument';\n\nexport default class BetaUserDropdownUserActionsComponent extends Component {\n  @argument(optional(Function)) transitionToProjects;\n\n  @service('feature/authentication') authenticationFeatureService;\n\n  @action\n  async logout() {\n    await this.authenticationFeatureService.logout();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-user-dropdown-user-actions\\\" ...attributes>\\n  {{#if @transitionToProjects}}\\n    <div\\n      class=\\\"c-beta-user-dropdown-user-actions__action\\\"\\n      role=\\\"button\\\"\\n      {{on \\'click\\' @transitionToProjects}}\\n    >\\n      <i\\n        class=\\\"material-icons c-beta-user-dropdown-user-actions__action-icon c-beta-user-dropdown-user-actions__action--info\\\"\\n      >\\n        swap_horiz\\n      </i>\\n      <span class=\\\"c-beta-user-dropdown-user-actions__action-text\\\">\\n        Switch project\\n      </span>\\n    </div>\\n  {{/if}}\\n  <div class=\\\"c-beta-user-dropdown-user-actions__action\\\" role=\\\"button\\\" {{on \\'click\\' this.logout}}>\\n    <i\\n      class=\\\"material-icons c-beta-user-dropdown-user-actions__action-icon c-beta-user-dropdown-user-actions__action--danger\\\"\\n    >\\n      exit_to_app\\n    </i>\\n    <span class=\\\"c-beta-user-dropdown-user-actions__action-text\\\">\\n      Log out\\n    </span>\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/beta-user-dropdown/user-actions/template.hbs' });\n","import type UserPreferenceManagerSharedBusinessService from 'client/shared/services/user-preference-manager';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { LayoutThemeEnum } from 'client/shared/states/user-preference';\n\nexport default class BetaUserDropdownUserSettingsComponent extends Component {\n  @service('shared/state/user-preference') public userPreferenceState: UserPreferenceState;\n  @service('shared/user-preference-manager')\n  private userPreferenceManager: UserPreferenceManagerSharedBusinessService;\n\n  @action\n  toggleDarkMode() {\n    this.userPreferenceManager.setTheme(\n      this.userPreferenceState.isLightTheme ? LayoutThemeEnum.Dark : LayoutThemeEnum.Light,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-user-dropdown-user-settings\\\" ...attributes data-test-user-dropdown-user-settings>\\n  <div\\n    class=\\\"c-beta-user-dropdown-user-settings__dark-mode\\\"\\n    role=\\\"button\\\"\\n    {{on \\'click\\' this.toggleDarkMode}}\\n    data-test-user-dropdown-user-settings-button\\n  >\\n    <i\\n      class=\\\"material-icons c-beta-user-dropdown-user-settings__dark-mode-icon\\\"\\n      data-test-user-dropdown-user-settings-icon\\n    >\\n      brightness_3\\n    </i>\\n    <span\\n      class=\\\"c-beta-user-dropdown-user-settings__dark-mode-text\\\"\\n      data-test-user-dropdown-user-settings-label\\n    >\\n      Night Mode\\n    </span>\\n    <Shared::Form::Toggle\\n      @value={{this.userPreferenceState.isDarkTheme}}\\n      @onChange={{this.toggleDarkMode}}\\n      class=\\\"c-beta-user-dropdown-user-settings__dark-mode-switch\\\"\\n      data-test-user-dropdown-user-settings-switch\\n    />\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/beta-user-dropdown/user-settings/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport BillingModel from 'client/data/models/billing';\nimport validateArguments from 'client/decorators/validate';\nimport { countries, getCountryById, taxTypes } from 'client/utils/countries';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type BillingCompanyDetailsFormArgs = {\n  billing: BillingModel;\n};\n\n@validateArguments\nexport default class BillingBillingCompanyDetailsFormComponent extends Component<BillingCompanyDetailsFormArgs> {\n  static propTypes = {\n    billing: PropTypes.instanceOf(BillingModel).isRequired,\n  };\n\n  countries = countries;\n  previousCountry = null;\n\n  constructor(owner: unknown, args: BillingCompanyDetailsFormArgs) {\n    super(owner, args);\n\n    this.previousCountry = this.args.billing.addressCountry;\n\n    // eslint-disable-next-line no-void\n    void this.initDefaultTaxIdType();\n  }\n\n  get countryTaxIdTypes() {\n    const selectedCountry = getCountryById(this.args.billing.addressCountry);\n\n    return selectedCountry?.taxTypes || [];\n  }\n\n  get taxTypes() {\n    const selectableTaxTypes = taxTypes.filter((taxType) =>\n      this.countryTaxIdTypes.includes(taxType.id),\n    );\n\n    return [...selectableTaxTypes, { id: '', name: 'Other' }];\n  }\n\n  @action\n  async onCountryChange() {\n    if (this.previousCountry === this.args.billing.addressCountry) {\n      return;\n    }\n\n    this.previousCountry = this.args.billing.addressCountry;\n\n    await this.initDefaultTaxIdType();\n  }\n\n  async initDefaultTaxIdType() {\n    if (!this.args.billing.addressCountry) {\n      return;\n    }\n\n    await waitForNextRunLoop();\n    if (\n      this.args.billing.vatNumberType\n      && !this.countryTaxIdTypes?.includes(this.args.billing.vatNumberType)\n    ) {\n      this.args.billing.vatNumberType = this.args.billing.vatNumber ? '' : null;\n    }\n\n    if ([null, undefined].includes(this.args.billing.vatNumberType)) {\n      const selectedTaxType = this.countryTaxIdTypes[0] || '';\n      this.args.billing.vatNumberType = selectedTaxType;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel\\n  @label=\\\"Company Name\\\"\\n  class=\\\"c-billing-company-details-form__input\\\"\\n  data-test-input-for=\\\"billing-company-name\\\"\\n>\\n  <Shared::BetaInput @placeholder=\\\"Company Name\\\" @value={{@billing.companyName}} />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel\\n  @label=\\\"Email Address\\\"\\n  @isRequired={{true}}\\n  @isError={{bool @billing.errors.email}}\\n  class=\\\"c-billing-company-details-form__input\\\"\\n  data-test-input-for=\\\"billing-email\\\"\\n>\\n  <Shared::BetaInput\\n    @value={{@billing.email}}\\n    @placeholder=\\\"Email Address\\\"\\n    @state={{if @billing.errors.email \\'error\\'}}\\n  />\\n  {{#if @billing.errors.email}}\\n    <p class=\\\"c-billing-company-details-form__error\\\">\\n      {{@billing.errors.email.firstObject.message.firstObject}}\\n    </p>\\n  {{/if}}\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel\\n  @label=\\\"Address Line 1\\\"\\n  @isRequired={{true}}\\n  @isError={{bool @billing.errors.addressStreet1}}\\n  class=\\\"c-billing-company-details-form__input\\\"\\n  data-test-input-for=\\\"billing-address-1\\\"\\n>\\n  <Shared::BetaInput\\n    @value={{@billing.addressStreet1}}\\n    @placeholder=\\\"Address\\\"\\n    @state={{if @billing.errors.addressStreet1 \\'error\\'}}\\n    data-test-item=\\\"billing-address-1\\\"\\n  />\\n  {{#if @billing.errors.addressStreet1}}\\n    <p class=\\\"c-billing-company-details-form__error\\\">\\n      {{@billing.errors.addressStreet1.firstObject.message.firstObject}}\\n    </p>\\n  {{/if}}\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel\\n  @label=\\\"Address Line 2\\\"\\n  class=\\\"c-billing-company-details-form__input\\\"\\n  data-test-input-for=\\\"billing-address-2\\\"\\n>\\n  <Shared::BetaInput @value={{@billing.addressStreet2}} />\\n</Shared::BetaLabel>\\n\\n<div class=\\\"l-billing-company-details-form__inputs-row\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"City\\\"\\n    @isRequired={{true}}\\n    @isError={{bool @billing.errors.addressCity}}\\n    class=\\\"c-billing-company-details-form__input\\\"\\n    data-test-input-for=\\\"billing-city\\\"\\n  >\\n    <Shared::BetaInput\\n      @value={{@billing.addressCity}}\\n      @placeholder=\\\"City\\\"\\n      @state={{if @billing.errors.addressCity \\'error\\'}}\\n    />\\n    {{#if @billing.errors.addressCity}}\\n      <p class=\\\"c-billing-company-details-form__error\\\">\\n        {{@billing.errors.addressCity.firstObject.message.firstObject}}\\n      </p>\\n    {{/if}}\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Zip Code\\\"\\n    @isRequired={{true}}\\n    @isError={{bool @billing.errors.addressZipcode}}\\n    class=\\\"c-billing-company-details-form__input c-billing-company-details-form__input--right\\\"\\n    data-test-input-for=\\\"billing-zipcode\\\"\\n  >\\n    <Shared::BetaInput\\n      @value={{@billing.addressZipcode}}\\n      @placeholder=\\\"Zip Code\\\"\\n      @state={{if @billing.errors.addressZipcode \\'error\\'}}\\n    />\\n    {{#if @billing.errors.addressZipcode}}\\n      <p class=\\\"c-billing-company-details-form__error\\\">\\n        {{@billing.errors.addressZipcode.firstObject.message.firstObject}}\\n      </p>\\n    {{/if}}\\n  </Shared::BetaLabel>\\n</div>\\n\\n<Shared::BetaLabel\\n  @label=\\\"Country\\\"\\n  @isRequired={{true}}\\n  @isError={{bool @billing.errors.addressCountry}}\\n  class=\\\"c-billing-company-details-form__input\\\"\\n  data-test-input-for=\\\"billing-country\\\"\\n>\\n  <Shared::BetaSelectSearch\\n    @options={{this.countries}}\\n    @namePath=\\\"name\\\"\\n    @valuePath=\\\"id\\\"\\n    @value={{@billing.addressCountry}}\\n    @placeholder=\\\"Select a country\\\"\\n    @enableLocalFilterAndHighlighter={{true}}\\n    @state={{if @billing.errors.addressCountry \\'error\\'}}\\n    @onChange={{this.onCountryChange}}\\n  />\\n  {{#if @billing.errors.addressCountry}}\\n    <p class=\\\"c-billing-company-details-form__error\\\">\\n      {{@billing.errors.addressCountry.firstObject.message.firstObject}}\\n    </p>\\n  {{/if}}\\n</Shared::BetaLabel>\\n\\n<div class=\\\"l-billing-company-details-form__inputs-row\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Tax identification type\\\"\\n    class=\\\"c-billing-company-details-form__input c-billing-company-details-form__input--vatNumberType\\\"\\n    data-test-input-for=\\\"billing-vat-number-type\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.taxTypes}}\\n      @namePath=\\\"name\\\"\\n      @valuePath=\\\"id\\\"\\n      @value={{@billing.vatNumberType}}\\n      @placeholder=\\\"Select a tax identification type\\\"\\n      @enableLocalFilterAndHighlighter={{true}}\\n      @state={{if @billing.errors.vatNumberType \\'error\\'}}\\n      data-test-input-for=\\\"billing-vat-number-type\\\"\\n    />\\n    {{#if @billing.errors.vatNumberType}}\\n      <p class=\\\"c-billing-company-details-form__error\\\">\\n        {{@billing.errors.vatNumberType.firstObject.message.firstObject}}\\n      </p>\\n    {{/if}}\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Tax identification number\\\"\\n    class=\\\"c-billing-company-details-form__input c-billing-company-details-form__input--right\\\"\\n    data-test-input-for=\\\"billing-vat-number\\\"\\n  >\\n    <Shared::BetaInput @placeholder=\\\"Tax identification number\\\" @value={{@billing.vatNumber}} />\\n  </Shared::BetaLabel>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/billing/billing-company-details-form/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\nimport Billing from 'client/data/models/billing';\nimport { countries } from 'client/utils/countries';\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-billing-company-details-summary')\nexport default class BillingBillingCompanyDetailsSummaryComponent extends Component {\n  constructor(...args) {\n    super(...args);\n\n    this.propTypes = {\n      billing: PropTypes.instanceOf(Billing).isRequired,\n    };\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    if (!this.billing) {\n      throw new MissingRequiredPropertyError('billing');\n    }\n  }\n\n  get countryName() {\n    const realCountry = countries.find((country) => country.id === this.billing.addressCountry);\n\n    // Fallback to support previous data format (free text)\n    return realCountry ? realCountry.name : this.billing.addressCountry;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @billing.companyName}}\\n  <span class=\\\"c-billing-company-details-summary__subtitle\\\" data-test-company-name>\\n    {{@billing.companyName}}\\n  </span>\\n{{/if}}\\n<span class=\\\"c-billing-company-details-summary__value\\\" data-test-address-1>\\n  {{@billing.addressStreet1}}\\n</span>\\n{{#if @billing.addressStreet2}}\\n  <span class=\\\"c-billing-company-details-summary__value\\\" data-test-address-2>\\n    {{@billing.addressStreet2}}\\n  </span>\\n{{/if}}\\n<span class=\\\"c-billing-company-details-summary__value\\\" data-test-city>\\n  {{@billing.addressZipcode}},\\n  {{@billing.addressCity}}\\n</span>\\n{{#if this.countryName}}\\n  <span class=\\\"c-billing-company-details-summary__value\\\" data-test-country>\\n    {{this.countryName}}\\n  </span>\\n{{/if}}\\n{{#if @billing.vatNumber}}\\n  <span class=\\\"c-billing-company-details-summary__value\\\" data-test-vat-number>\\n    {{@billing.vatNumber}}\\n  </span>\\n{{/if}}\\n{{#if @billing.email}}\\n  <span class=\\\"c-billing-company-details-summary__value\\\" data-test-email>\\n    {{@billing.email}}\\n  </span>\\n{{/if}}\\n\\n<Shared::Navigation::Link\\n  @type=\\\"forest-primary\\\"\\n  @text=\\\"Edit details\\\"\\n  @routeName=\\\"project.project-settings.billing.edit.company\\\"\\n  class=\\\"c-billing-company-details-summary__edit-link\\\"\\n  data-test-edit-details-button\\n/>\\n', { moduleName: 'client/legacy/pods/components/billing/billing-company-details-summary/template.hbs' });\n","import type { Router } from '@ember/routing';\nimport type BillingUIService from 'client/legacy/services/ui/project-settings/billing-ui-service';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport BillingModel from 'client/data/models/billing';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type ProjectsSettingsBillingEditCompanyPageArgs = {\n  billing: BillingModel;\n};\n\n@validateArguments\nexport default class BillingBillingEditCompanyPageComponent extends Component<ProjectsSettingsBillingEditCompanyPageArgs> {\n  @service('ui/project-settings/billing-ui-service') declare billingUIService: BillingUIService;\n  @service declare router: Router;\n\n  static propTypes = {\n    billing: PropTypes.instanceOf(BillingModel).isRequired,\n  };\n\n  @action\n  public async save(callback: () => void) {\n    try {\n      await this.billingUIService.save(this.args.billing);\n    } finally {\n      callback();\n    }\n  }\n\n  @action\n  public async goToBillingPage() {\n    await this.router.transitionTo('project.project-settings.billing');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout\\n  @onClose={{this.goToBillingPage}}\\n  class=\\\"c-project-settings-billing-edit-company-page\\\"\\n>\\n  <div class=\\\"c-project-settings-billing-edit-company-page__save-button\\\">\\n    <Button::BetaSaveDiscardButtons\\n      @isSaveDisabled={{not @billing.hasDirtyAttributes}}\\n      @entity={{@billing}}\\n      @save={{this.save}}\\n    />\\n  </div>\\n\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"Company details\\\"\\n    @description=\\\"This information will appear on your bill.\\\"\\n  >\\n    <Billing::BillingCompanyDetailsForm @billing={{@billing}} />\\n  </Shared::BetaSettingsLayout::Section>\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/components/billing/billing-edit-company-page/template.hbs' });\n","import type { Router } from '@ember/routing';\nimport type { StripeContext } from 'client/legacy/services/stripe-service';\nimport type BillingUIService from 'client/legacy/services/ui/project-settings/billing-ui-service';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport BillingModel from 'client/data/models/billing';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type ProjectsSettingsBillingPaymentPageArgs = {\n  billing: BillingModel;\n  stripeContext: StripeContext;\n};\n\n@validateArguments\nexport default class BillingBillingEditPaymentPageComponent extends Component<ProjectsSettingsBillingPaymentPageArgs> {\n  @service('ui/project-settings/billing-ui-service') declare billingUIService: BillingUIService;\n  @service declare router: Router;\n\n  static propTypes = {\n    billing: PropTypes.instanceOf(BillingModel).isRequired,\n    stripeContext: PropTypes.shape({\n      stripejs: PropTypes.object,\n      elements: PropTypes.object,\n    }),\n  };\n\n  @action\n  public async save() {\n    await this.billingUIService.updatePaymentDetails(this.args.billing, this.args.stripeContext);\n  }\n\n  @action\n  public async goToBillingPage() {\n    await this.router.transitionTo('project.project-settings.billing');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout\\n  @onClose={{this.goToBillingPage}}\\n  class=\\\"c-project-settings-billing-edit-payment-page\\\"\\n>\\n  <div class=\\\"c-project-settings-billing-edit-payment-page__save-button-wrapper\\\">\\n    <Shared::Button\\n      @onClick={{this.save}}\\n      @type=\\\"forest-primary\\\"\\n      @text=\\\"Save\\\"\\n      class=\\\"c-project-settings-billing-edit-payment-page__save-button\\\"\\n      data-test-payment-details-save\\n    />\\n  </div>\\n\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"Payment details\\\"\\n    @description=\\\"We use Stripe to process your payment.\\\"\\n  >\\n    <Billing::BillingStripePayment @paymentElements={{@stripeContext.elements}} />\\n  </Shared::BetaSettingsLayout::Section>\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/components/billing/billing-edit-payment-page/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport window from 'ember-window-mock';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class BillingBillingFooterComponent extends Component {\n  static propTypes = {\n    size: PropTypes.oneOf(['small', 'regular']),\n  };\n\n  @service segment;\n  /** @type {import('client/shared/services/contact').default} */\n  @service('shared/contact') contactService;\n\n  get contactUrl() {\n    return this.contactService.getContactFormUrl(`Subject: Enterprise plan request`);\n  }\n\n  @action\n  handleContactUsClick() {\n    window.open(this.contactUrl, '_blank');\n    this.segment.trackEvent('Requested Enterprise Plan');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-billing-footer\\\" ...attributes>\\n  <Shared::BetaSettingsLayout::Section @isFooter={{true}} @size={{@size}}>\\n    <div class=\\\"c-billing-footer__panel\\\">\\n      <div class=\\\"c-billing-footer__content\\\">\\n        <div class=\\\"c-billing-footer__column\\\">\\n          <span class=\\\"c-billing-footer__icon-container\\\">\\n            <Shared::DataDisplay::BetaIcon\\n              @class=\\\"c-billing-footer__icon\\\"\\n              @iconName=\\\"security\\\"\\n              @isMaterialIcon={{true}}\\n            />\\n          </span>\\n        </div>\\n        <div class=\\\"c-billing-footer__column c-billing-footer__column--text\\\">\\n          <p class=\\\"c-billing-footer__title\\\">\\n            Need an Enterprise plan?\\n          </p>\\n          <p class=\\\"c-billing-footer__subtitle\\\">\\n            Benefit from advanced support and services.\\n          </p>\\n        </div>\\n        <div class=\\\"c-billing-footer__column\\\">\\n          <Shared::Button\\n            @type=\\\"ghost\\\"\\n            @text=\\\"Contact Us\\\"\\n            @onClick={{this.handleContactUsClick}}\\n            data-test-link=\\\"mail-contact-us-link\\\"\\n          />\\n        </div>\\n      </div>\\n      <p class=\\\"c-billing-footer__note\\\">\\n        Check out our\\n        <Shared::Navigation::Link\\n          @type=\\\"forest-primary\\\"\\n          @text=\\\"Pricing FAQ\\\"\\n          @href=\\\"https://forestadmin.com/pricing/#FAQ\\\"\\n          @target=\\\"_blank\\\"\\n          @size=\\\"small\\\"\\n          data-test-link=\\\"external-pricing-link\\\"\\n        />\\n        for more information.\\n      </p>\\n    </div>\\n  </Shared::BetaSettingsLayout::Section>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/billing/billing-footer/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { not } from '@ember/object/computed';\nimport { classNames } from '@ember-decorators/component';\nimport moment from 'moment';\n\nimport Plan from 'client/data/models/plan';\nimport { SubscriptionCommitmentsEnum } from 'client/data/models/subscription';\nimport { BILLING_DATEONLY_FORMAT } from 'client/utils/dates-default-format-variables';\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\nimport PlanPricingUtils from 'client/utils/plan-pricing-utils';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-billing-upgrade-summary')\nexport default class BillingBillingOrderSummaryComponent extends Component {\n  constructor(...args) {\n    super(...args);\n\n    this.propTypes = {\n      plan: PropTypes.instanceOf(Plan),\n      upgradeToPlan: PropTypes.func.isRequired,\n      selectedCommitment: PropTypes.string.isRequired,\n      isTermsAgreed: PropTypes.bool,\n      seatsCount: PropTypes.number,\n      activitiesCount: PropTypes.number,\n      isAllowedToChooseCommitment: PropTypes.bool,\n    };\n  }\n\n  commitmentOptions = [SubscriptionCommitmentsEnum.Yearly, SubscriptionCommitmentsEnum.Monthly];\n  renewalDate = moment().add(1, 'years').format(BILLING_DATEONLY_FORMAT);\n\n  @not('isTermsAgreed') isTermsNotAgreed;\n\n  @computed('activitiesCount', 'plan', 'seatsCount', 'selectedCommitment')\n  get estimatedOrderPrice() {\n    const priceMonthly = PlanPricingUtils.calculatePriceByPlanAndCommitmentForProject(\n      this.plan,\n      this.selectedCommitment,\n      this.seatsCount,\n      this.activitiesCount,\n    );\n\n    if (this.selectedCommitment === SubscriptionCommitmentsEnum.Yearly) {\n      return priceMonthly * 12;\n    }\n\n    return priceMonthly;\n  }\n\n  init(...args) {\n    super.init(...args);\n    if (!this.plan) {\n      throw new MissingRequiredPropertyError('plan');\n    }\n    if (!this.upgradeToPlan) {\n      throw new MissingRequiredPropertyError('upgradeToPlan');\n    }\n    if (!this.selectedCommitment) {\n      throw new MissingRequiredPropertyError('selectedCommitment');\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-billing-order-summary__title\\\">\\n  Your order\\n</div>\\n<div class=\\\"c-billing-order-summary__subtitle\\\">\\n  Please review your order and complete all fields\\n</div>\\n<div class=\\\"l-billing-order-summary__row\\\">\\n  <div>\\n    Upgrading to\\n  </div>\\n  <Shared::DataDisplay::BetaBadge @value={{@plan.displayName}} @color=\\\"info\\\" />\\n</div>\\n<div class=\\\"l-billing-order-summary__row\\\">\\n  <div>\\n    Billing\\n  </div>\\n  {{#if @isAllowedToChooseCommitment}}\\n    <Shared::BetaSelect\\n      @value={{@selectedCommitment}}\\n      @options={{this.commitmentOptions}}\\n      @capitalizeValues={{true}}\\n      @classInput=\\\"c-billing-order-summary__dropdown\\\"\\n    />\\n  {{else}}\\n    <div class=\\\"c-billing-order-summary__value\\\">\\n      {{capitalize-text @selectedCommitment}}\\n    </div>\\n  {{/if}}\\n</div>\\n<div class=\\\"l-billing-order-summary__row\\\">\\n  <div>\\n    Fee due\\n  </div>\\n  <div class=\\\"c-billing-order-summary__value c-billing-order-summary__value-price\\\">\\n    ${{format-number-to-locale this.estimatedOrderPrice}}\\n  </div>\\n</div>\\n{{#if (eq @selectedCommitment \\'yearly\\')}}\\n  <div class=\\\"l-billing-order-summary__row\\\">\\n    <div>\\n      Renewal date\\n    </div>\\n    <div class=\\\"c-billing-order-summary__value\\\">\\n      {{this.renewalDate}}\\n    </div>\\n  </div>\\n{{/if}}\\n<div class=\\\"l-billing-order-summary__row l-billing-order-summary__row--terms\\\">\\n  <Form::BetaCheckbox\\n    @value={{@isTermsAgreed}}\\n    @defaultValue={{false}}\\n    @class=\\\"c-billing-order-summary__checkbox\\\"\\n    data-test-checkbox=\\\"upgrade-with-agree-terms\\\"\\n  />\\n  <div>\\n    By clicking on \\\"Upgrade\\\", you agree to our\\n    <Shared::Navigation::Link\\n      @type=\\\"forest-primary\\\"\\n      @target=\\\"_blank\\\"\\n      @href=\\\"https://www.forestadmin.com/terms/\\\"\\n      @text=\\\"Terms of Services\\\"\\n      @size=\\\"small\\\"\\n    />\\n    and\\n    <Shared::Navigation::Link\\n      @type=\\\"forest-primary\\\"\\n      @target=\\\"_blank\\\"\\n      @href=\\\"https://www.forestadmin.com/privacy-policy/\\\"\\n      @text=\\\"Privacy Policy\\\"\\n      @size=\\\"small\\\"\\n    />\\n  </div>\\n</div>\\n<Shared::Button\\n  @type=\\\"forest-primary\\\"\\n  @text=\\\"Upgrade\\\"\\n  @size=\\\"large\\\"\\n  @onClick={{@upgradeToPlan}}\\n  disabled={{this.isTermsNotAgreed}}\\n  data-test-button=\\\"validate-upgrade\\\"\\n  class=\\\"c-billing-order-summary__upgrade-button\\\"\\n/>\\n', { moduleName: 'client/legacy/pods/components/billing/billing-order-summary/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport Billing from 'client/data/models/billing';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class BillingBillingPaymentDetailsSummaryComponent extends Component {\n  static propTypes = {\n    billing: PropTypes.instanceOf(Billing).isRequired,\n    editDetailsRouteName: PropTypes.string,\n    onClickEditDetails: PropTypes.func,\n  };\n\n  get cardBrand() {\n    return this.args.billing.cardBrand;\n  }\n\n  get cardBrandImage() {\n    return this.args.billing.cardBrandImage;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-billing-payment-details-summary\\\" ...attributes>\\n  <div class=\\\"c-billing-payment-details-summary__card-details\\\">\\n    {{#if @billing.cardNumber}}\\n      <div class=\\\"c-billing-payment-details-summary__card {{this.cardBrandImage}}\\\"></div>\\n      <div class=\\\"c-billing-payment-details-summary__card-info\\\">\\n        <p class=\\\"c-billing-payment-details-summary__subtitle\\\" data-test-card-brand>\\n          {{capitalize-text this.cardBrand}}\\n        </p>\\n        <p class=\\\"c-billing-payment-details-summary__value\\\">\\n          Card ending with\\n          {{@billing.cardLast4Digits}}\\n        </p>\\n        <p class=\\\"c-billing-payment-details-summary__value\\\" data-test-expiration>\\n          Expiration date\\n          {{@billing.cardExpirationMonth}}/{{@billing.cardExpirationYear}}\\n        </p>\\n        <Shared::Navigation::Link\\n          @type=\\\"forest-primary\\\"\\n          @text=\\\"Edit details\\\"\\n          @routeName={{@editDetailsRouteName}}\\n          @onClick={{@onClickEditDetails}}\\n          data-test-billing-edit-details-link\\n          data-test-link=\\\"external-pricing-link\\\"\\n        />\\n      </div>\\n    {{else}}\\n      <Shared::Navigation::Link\\n        @type=\\\"forest-primary\\\"\\n        @text=\\\"Add payment details\\\"\\n        @routeName={{@editDetailsRouteName}}\\n        @onClick={{@onClickEditDetails}}\\n        data-test-billing-add-payment-details\\n      />\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/billing/billing-payment-details-summary/template.hbs' });\n","import type SegmentService from 'ember-cli-segment/services/segment';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport Billing from 'client/data/models/billing';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype BillingBillingPlansCommitmentSwitchComponentArgs = {\n  isYearlyCommitmentSelected: boolean;\n  billing: Billing;\n  onChange: (isYearlyCommitmentSelected: boolean) => void;\n  canDowngrade?: boolean;\n};\n\n@validateArguments\nexport default class BillingBillingPlansCommitmentSwitchComponent extends Component<BillingBillingPlansCommitmentSwitchComponentArgs> {\n  static propTypes = {\n    isYearlyCommitmentSelected: PropTypes.bool.isRequired,\n    billing: PropTypes.instanceOf(Billing).isRequired,\n    onChange: PropTypes.func.isRequired,\n    canDowngrade: PropTypes.bool,\n  };\n\n  @service segment: SegmentService;\n\n  get disabled() {\n    return !this.args.billing.isAllowedToChooseCommitment;\n  }\n\n  get content() {\n    return [\n      `To switch to a ${\n        this.args.isYearlyCommitmentSelected ? 'monthly pricing after that date' : 'yearly plan'\n      }`,\n      this.args.canDowngrade ? 'or to downgrade to a lower plan' : '',\n      'please',\n    ]\n      .filter(Boolean)\n      .join(', ');\n  }\n\n  get commitment() {\n    return this.args.billing.subscription?.commitment;\n  }\n\n  @action\n  onContactUsClick() {\n    this.segment.trackEvent('Requested Downgrade Or Commitment Change');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-billing-billing-plans-commitment-switch\\\" ...attributes>\\n  <div class=\\\"c-billing-billing-plans-commitment-switch__switch-container\\\">\\n    <p\\n      class=\\\"c-billing-billing-plans-commitment-switch__switch-text\\n        {{if this.disabled \\'c-billing-billing-plans-commitment-switch__switch-text--disabled\\'}}\\\"\\n    >\\n      monthly billing\\n    </p>\\n    <Shared::Form::Toggle\\n      @value={{one-way @isYearlyCommitmentSelected}}\\n      @disabled={{this.disabled}}\\n      @onChange={{@onChange}}\\n      class=\\\"c-billing-billing-plans-commitment-switch__button\\\"\\n      data-test-billing-commitment-switch-button\\n    />\\n    <p\\n      id=\\\"yearly-commitment-option\\\"\\n      class=\\\"c-billing-billing-plans-commitment-switch__switch-text c-billing-billing-plans-commitment-switch__switch-text--yearly\\n        {{if this.disabled \\'c-billing-billing-plans-commitment-switch__switch-text--disabled\\'}}\\\"\\n    >\\n      yearly billing\\n    </p>\\n  </div>\\n  {{#unless (or @billing.isCommunity @billing.isWithoutPlan)}}\\n    <div class=\\\"c-billing-billing-plans-commitment-switch__separator\\\"></div>\\n    <div\\n      class=\\\"c-billing-billing-plans-commitment-switch__description-container\\\"\\n      data-test-commitment-description\\n    >\\n      <p class=\\\"c-billing-billing-plans-commitment-switch__description\\\">\\n        {{#if @billing.isGrandfather}}\\n          Your plan is part of our former pricing.\\n        {{else if (eq this.commitment \\'yearly\\')}}\\n          You are on a yearly plan and your renewal date is:\\n          <span class=\\\"c-billing-billing-plans-commitment-switch__date\\\">\\n            {{@billing.renewalDate}}\\n          </span>\\n          .\\n        {{else}}\\n          You are on a monthly plan.\\n        {{/if}}\\n      </p>\\n      {{#unless @billing.isGrandfather}}\\n        <p\\n          class=\\\"c-billing-billing-plans-commitment-switch__description\\\"\\n          data-test-commitment-description-text\\n        >\\n          {{this.content}}\\n\\n          <Shared::ContactUsLink\\n            @subject=\\\"Downgrade plan request\\\"\\n            @onClick={{this.onContactUsClick}}\\n            @punctuation=\\\".\\\"\\n            data-test-link=\\\"mail-contact-us-link\\\"\\n          />\\n        </p>\\n      {{/unless}}\\n    </div>\\n  {{/unless}}\\n  {{#unless this.disabled}}\\n    <Shared::Feedback::BetaTooltip\\n      @targetId=\\\"yearly-commitment-option\\\"\\n      @side=\\\"top\\\"\\n      @spacing={{16}}\\n      @isAlwaysShown={{true}}\\n    >\\n      SAVE 20%\\n    </Shared::Feedback::BetaTooltip>\\n  {{/unless}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/billing/billing-plans/commitment-switch/template.hbs' });\n","import type { Router } from '@ember/routing';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Billing from 'client/data/models/billing';\nimport Plan, { PlanTypesEnum } from 'client/data/models/plan';\nimport Project, { ProjectArchitectureEnum } from 'client/data/models/project';\nimport { SubscriptionCommitmentsEnum } from 'client/data/models/subscription';\nimport TrialModel from 'client/data/models/trial';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype BillingBillingPlansComponentArgs = {\n  plans: Plan[];\n  billing: Billing;\n  project: Project;\n  trial?: TrialModel;\n  startTrial: () => void;\n};\n\n@validateArguments\nexport default class BillingBillingPlansComponent extends Component<BillingBillingPlansComponentArgs> {\n  static propTypes = {\n    plans: PropTypes.arrayOf(PropTypes.instanceOf(Plan)).isRequired,\n    billing: PropTypes.instanceOf(Billing).isRequired,\n    project: PropTypes.instanceOf(Project).isRequired,\n    trial: PropTypes.instanceOf(TrialModel),\n    startTrial: PropTypes.func.isRequired,\n  };\n\n  @service router: Router;\n\n  @tracked selectedCommitment: SubscriptionCommitmentsEnum | `${SubscriptionCommitmentsEnum}` =\n    SubscriptionCommitmentsEnum.Yearly;\n\n  get isYearlyCommitmentSelected() {\n    return this.selectedCommitment === SubscriptionCommitmentsEnum.Yearly;\n  }\n\n  get fallbackPlan() {\n    return this.args.trial?.fallbackPlan;\n  }\n\n  private getNonTrialPlanForType(type: PlanTypesEnum, isActive = true) {\n    return this.args.plans.find(\n      (plan) => plan.isActive === isActive && !plan.isTrial && plan.type === type,\n    );\n  }\n\n  private getTrialPlanForType(type: PlanTypesEnum, isActive = true) {\n    return this.args.plans.find(\n      (plan) => plan.isActive === isActive && plan.isTrial && plan.type === type,\n    );\n  }\n\n  get starterPlan() {\n    return this.getNonTrialPlanForType(PlanTypesEnum.Starter)\n      ? this.getNonTrialPlanForType(PlanTypesEnum.Starter)\n      : this.getNonTrialPlanForType(PlanTypesEnum.Starter, false);\n  }\n\n  get starterPlanFeatures() {\n    return this.fetchDescription(this.starterPlan);\n  }\n\n  get starterTrialPlan() {\n    return this.getTrialPlanForType(PlanTypesEnum.Starter)\n      ? this.getTrialPlanForType(PlanTypesEnum.Starter)\n      : this.getTrialPlanForType(PlanTypesEnum.Starter, false);\n  }\n\n  get communityPlan() {\n    if (\n      this.args.billing.currentPlan?.isTrial\n      && this.fallbackPlan\n      && this.fallbackPlan.type === PlanTypesEnum.Community\n    ) {\n      return this.fallbackPlan;\n    }\n\n    return this.args.plans.find((plan) => plan.type === PlanTypesEnum.Community && !plan.isTrial);\n  }\n\n  get communityPlanFeatures() {\n    return this.fetchDescription(this.communityPlan);\n  }\n\n  get plusPlan() {\n    return this.getNonTrialPlanForType(PlanTypesEnum.Plus)\n      ? this.getNonTrialPlanForType(PlanTypesEnum.Plus)\n      : this.getNonTrialPlanForType(PlanTypesEnum.Plus, false);\n  }\n\n  get plusPlanFeatures() {\n    return this.fetchDescription(this.plusPlan);\n  }\n\n  get plusTrialPlan() {\n    return this.getTrialPlanForType(PlanTypesEnum.Plus)\n      ? this.getTrialPlanForType(PlanTypesEnum.Plus)\n      : this.getTrialPlanForType(PlanTypesEnum.Plus, false);\n  }\n\n  get upgradeToPlus() {\n    if (!this.plusPlan?.isActive) return 'This plan is no longer available';\n\n    if (this.args.billing.isPlus && !this.args.billing.isTrial) return 'Your current plan';\n\n    return this.plusPlan && `Upgrade to ${this.plusPlan.displayName}`;\n  }\n\n  get upgradeToStarter() {\n    if (!this.starterPlan?.isActive) return 'This plan is no longer available';\n\n    if (this.args.billing.isStarter && !this.args.billing.isTrial) return 'Your current plan';\n\n    return this.starterPlan && `Upgrade to ${this.starterPlan.displayName}`;\n  }\n\n  get tryStarterText() {\n    if (!this.starterTrialPlan) return undefined;\n\n    const duration = this.starterTrialPlan.trialDurationInDays;\n    return `Try ${this.starterPlan.displayName} for ${duration} day${duration > 1 ? 's' : ''}`;\n  }\n\n  get tryPlusText() {\n    if (!this.plusTrialPlan) return undefined;\n\n    const duration = this.plusTrialPlan.trialDurationInDays;\n    return `Try ${this.plusPlan.displayName} for ${this.plusTrialPlan.trialDurationInDays} day${\n      duration > 1 ? 's' : ''\n    }`;\n  }\n\n  get canStartTrial() {\n    return this.args.project.canStartTrial;\n  }\n\n  get canUpgradeStarter() {\n    return (\n      (!this.args.billing.isStarter || this.args.billing.isTrial) && this.starterPlan?.isActive\n    );\n  }\n\n  get canUpgradePlus() {\n    return (!this.args.billing.isPlus || this.args.billing.isTrial) && this.plusPlan?.isActive;\n  }\n\n  get triedPlan() {\n    if (this.args.billing.currentPlan.isTrial) {\n      return this.args.plans.find(\n        (plan) => plan.type === this.args.billing.currentPlan.type && !plan.isTrial,\n      );\n    }\n\n    return undefined;\n  }\n\n  get currentOrTriedPlan() {\n    return this.args.billing.currentPlan.isTrial ? this.triedPlan : this.args.billing.currentPlan;\n  }\n\n  get showCommunityPlan() {\n    return this.communityPlan && (this.args.billing.isCommunity || this.args.billing.isTrial);\n  }\n\n  get showStarterPlan() {\n    return (\n      this.starterPlan &&\n      // Has a lower plan\n      (this.args.billing.isCommunity ||\n        // Has a starter plan (grandfather plan is a starter plan)\n        this.args.billing.isStarter\n        || this.args.billing.isGrandfather ||\n        // Has a trial plan = does not pay yet\n        this.args.billing.isTrial ||\n        // Has no plan = does not pay anymore\n        this.args.billing.isWithoutPlan)\n    );\n  }\n\n  get showPlusPlan() {\n    return Boolean(this.plusPlan);\n  }\n\n  get canDowngrade() {\n    if (this.args.billing.isTrial || this.args.billing.isWithoutPlan) return false;\n\n    if (this.args.billing.isStarter || this.args.billing.isGrandfather) {\n      return Boolean(this.communityPlan);\n    }\n\n    if (this.args.billing.isPlus) {\n      return Boolean(this.starterPlan) || Boolean(this.communityPlan);\n    }\n\n    if (this.args.billing.isEnterprise) {\n      return Boolean(this.starterPlan) || Boolean(this.communityPlan) || Boolean(this.plusPlan);\n    }\n\n    return false;\n  }\n\n  @action\n  async goToBillingUpgrade(plan: Plan) {\n    await this.router.transitionTo('project.project-settings.billing.upgrade', {\n      queryParams: { plan, commitment: this.selectedCommitment },\n    });\n  }\n\n  constructor(owner, args: BillingBillingPlansComponentArgs) {\n    super(owner, args);\n\n    // NOTICE: If it's a Community or Grandfather plan, it will be possible to choose the commitment\n    //         and it should default to 'yearly'. Else it should display the existing commitment.\n    this.selectedCommitment =\n      !args.billing.isCommunity\n      && !args.billing.isGrandfather\n      && !args.billing.isTrial\n      && args.billing.subscription\n        ? args.billing.subscription.commitment\n        : SubscriptionCommitmentsEnum.Yearly;\n  }\n\n  @action\n  onChange(isYearly: boolean) {\n    this.selectedCommitment = isYearly\n      ? SubscriptionCommitmentsEnum.Yearly\n      : SubscriptionCommitmentsEnum.Monthly;\n  }\n\n  fetchDescription(plan: Plan | undefined) {\n    if (\n      plan?.descriptionsFullHosted\n      && this.args.project.architecture === ProjectArchitectureEnum.Cloud\n    ) {\n      return plan.descriptionsFullHosted;\n    }\n\n    return plan.descriptions || [];\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-billing-plans-plan\\\" ...attributes>\\n  {{#if @isOnTrial}}\\n    <Shared::DataDisplay::BetaBadge\\n      @color=\\\"info\\\"\\n      class=\\\"c-billing-plans-plan__trial-badge\\\"\\n      data-test-plan-trial-badge\\n    >\\n      On trial\\n    </Shared::DataDisplay::BetaBadge>\\n  {{/if}}\\n\\n  <p\\n    class=\\\"c-billing-plans-plan__title {{if @isSelected \\'c-billing-plans-plan__title--selected\\'}}\\\"\\n    data-test-plan-title\\n  >\\n    {{@displayName}}\\n  </p>\\n\\n  <Billing::BillingPlans::Price @plan={{@plan}} @commitment={{@commitment}} data-test-plan-price />\\n\\n  {{#if @trialPlan}}\\n    <Shared::Button\\n      @type=\\\"forest-primary\\\"\\n      @text={{@trialText}}\\n      @onClick={{@startTrial}}\\n      class=\\\"c-billing-plans-plan__button c-billing-plans-plan__button--trial\\\"\\n      data-test-button=\\\"try-{{@planCode}}\\\"\\n      data-test-action=\\\"try\\\"\\n    />\\n    <Shared::Navigation::Link\\n      @type=\\\"forest-primary\\\"\\n      @text=\\\"Skip trial and upgrade\\\"\\n      @onClick={{@upgradePlan}}\\n      class=\\\"c-billing-plans-plan__button c-billing-plans-plan__button--skip-trial\\\"\\n      data-test-button=\\\"upgrade-to-{{@planCode}}\\\"\\n      data-test-action=\\\"upgrade\\\"\\n    />\\n  {{else if @canUpgrade}}\\n    <Shared::Button\\n      @type=\\\"forest-primary\\\"\\n      @text={{@upgradeText}}\\n      @onClick={{@upgradePlan}}\\n      class=\\\"c-billing-plans-plan__button\\\"\\n      data-test-button=\\\"upgrade-to-{{@planCode}}\\\"\\n      data-test-action=\\\"upgrade\\\"\\n    />\\n  {{else}}\\n    <Shared::Button\\n      @type=\\\"forest-primary\\\"\\n      @text={{@upgradeText}}\\n      @onClick={{(do-nothing-function)}}\\n      disabled={{true}}\\n      class=\\\"c-billing-plans-plan__button\\\"\\n      data-test-button=\\\"upgrade-to-{{@planCode}}\\\"\\n    />\\n  {{/if}}\\n\\n  <div class=\\\"c-billing-plans-plan__included\\\" data-test-plan-plans-features>\\n    {{#if @lowerPlan}}\\n      <p\\n        class=\\\"c-billing-plans-plan__content c-billing-plans-plan__features-included\\\"\\n        data-test-plan-lower-plan\\n      >\\n        Includes all\\n        {{@lowerPlan.displayName}}\\n        features plus:\\n      </p>\\n    {{/if}}\\n\\n    {{#if @features.length}}\\n      <ul class=\\\"c-billing-plans-plan__features\\\" data-test-plan-features>\\n        {{#each @features as |feature index|}}\\n          <li class=\\\"c-billing-plans-plan__feature\\\" data-test-plan-feature={{index}}>\\n            <Shared::DataDisplay::BetaIcon\\n              @class=\\\"c-billing-plans-plan__icon\\\"\\n              @iconName=\\\"check\\\"\\n              @size=\\\"tiny\\\"\\n            />\\n            {{feature}}\\n          </li>\\n        {{/each}}\\n      </ul>\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/billing/billing-plans/plan/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { pluralize } from 'ember-inflector';\n\nimport Plan, { PlanUnitsEnum } from 'client/data/models/plan';\nimport { SubscriptionCommitmentsEnum } from 'client/data/models/subscription';\nimport { argument, oneOf } from 'client/decorators/argument';\nimport planPricingUtils from 'client/utils/plan-pricing-utils';\n\nexport default class BillingBillingPlansPriceComponent extends Component {\n  @argument(Plan) plan;\n  @argument(oneOf(...Object.values(SubscriptionCommitmentsEnum))) commitment;\n\n  @computed('plan.price', 'plan.unit', 'plan.unitCount', 'commitment')\n  get unitPrice() {\n    const basePrice = planPricingUtils.calculatePriceByPlanAndCommitmentForProject(\n      this.plan,\n      this.commitment,\n      1,\n      1,\n    );\n\n    if (this.plan.unit === PlanUnitsEnum.User) {\n      return Math.round((basePrice * 100) / this.plan.unitCount) / 100;\n    }\n\n    return basePrice;\n  }\n\n  @computed('plan.unit', 'plan.unitCount')\n  get perUnit() {\n    switch (this.plan.unit) {\n      case PlanUnitsEnum.User:\n        return '/USER';\n      case PlanUnitsEnum.Activity:\n        return `/${pluralize(this.plan.unitCount, 'activity')}`.toUpperCase();\n      default:\n        return '';\n    }\n  }\n\n  @computed('plan.unit')\n  get hasTranches() {\n    return this.plan.unit !== PlanUnitsEnum.Flat;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<p class=\\\"c-billing-plans-price__price\\\">\\n  {{#if (and (eq @plan.unitCount 1) (eq @plan.unit \\'user\\'))}}\\n    <span class=\\\"c-billing-plans-price__price-value\\\">\\n      ${{this.unitPrice}}\\n    </span>\\n  {{else if this.unitPrice}}\\n    <span class=\\\"c-billing-plans-price__price-value\\\">\\n      ${{this.unitPrice}}\\n    </span>\\n    <span class=\\\"c-billing-plans-price__price-unit\\\">\\n      /MONTH\\n      {{this.perUnit}}\\n    </span>\\n  {{else}}\\n    <span class=\\\"c-billing-plans-price__price-value\\\">\\n      $0\\n    </span>\\n  {{/if}}\\n</p>\\n{{#if this.hasTranches}}\\n  <p class=\\\"c-billing-plans-price__content\\\">\\n    {{#if (eq @plan.unitCount 1)}}\\n      Billed per\\n      {{@plan.unit}}\\n      / per month\\n    {{else}}\\n      Billed per tranches of\\n      {{@plan.unitCount}}\\n      {{word-pluralize @plan.unit @plan.unitCount}}\\n    {{/if}}\\n  </p>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/billing/billing-plans/price/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout::Section\\n  @title=\\\"Choose a plan\\\"\\n  @description=\\\"Upgrade to the {{this.plusPlan.displayName}} plan to unlock the full potential of Forest Admin and benefit from all premium features.\\\"\\n  @size=\\\"large\\\"\\n  ...attributes\\n>\\n  <div class=\\\"c-billing-plans-header\\\">\\n    <Billing::CurrentPlanTag @billing={{@billing}} @plans={{@plans}} />\\n    <Shared::Navigation::Link\\n      @type=\\\"forest-primary\\\"\\n      @text=\\\"Compare plans details\\\"\\n      @href=\\\"https://www.forestadmin.com/pricing\\\"\\n      @target=\\\"_blank\\\"\\n      @iconName=\\\"open_in_new\\\"\\n      data-test-link=\\\"external-pricing-link\\\"\\n    />\\n  </div>\\n  <div class=\\\"l-billing-plans\\\">\\n    <div class=\\\"l-billing-plans__panel\\\">\\n      <Billing::BillingPlans::CommitmentSwitch\\n        @isYearlyCommitmentSelected={{one-way this.isYearlyCommitmentSelected}}\\n        @onChange={{this.onChange}}\\n        @billing={{@billing}}\\n        @canDowngrade={{this.canDowngrade}}\\n        class=\\\"c-billing-plans__card c-billing-plans__card--no-padding\\\"\\n      />\\n      {{#if this.showCommunityPlan}}\\n        <Billing::BillingPlans::Plan\\n          @plan={{this.communityPlan}}\\n          @isSelected={{@billing.isCommunity}}\\n          @commitment={{this.selectedCommitment}}\\n          @features={{this.communityPlanFeatures}}\\n          @displayName={{this.communityPlan.displayName}}\\n          @upgradeText=\\\"Your current plan\\\"\\n          class=\\\"c-billing-plans__card c-billing-plans__card--full-height\\n            {{if @billing.isCommunity \\'c-billing-plans__card--selected\\'}}\\\"\\n          data-test-plan=\\\"community\\\"\\n        />\\n      {{/if}}\\n    </div>\\n    {{#if this.showStarterPlan}}\\n      <div class=\\\"l-billing-plans__panel\\\">\\n        <Billing::BillingPlans::Plan\\n          @plan={{if @billing.isStarter this.currentOrTriedPlan this.starterPlan}}\\n          @isSelected={{@billing.isStarter}}\\n          @commitment={{this.selectedCommitment}}\\n          @features={{this.starterPlanFeatures}}\\n          @isOnTrial={{(and @billing.isTrial @billing.isStarter)}}\\n          @displayName={{if\\n            @billing.isStarter\\n            this.currentOrTriedPlan.displayName\\n            this.starterPlan.displayName\\n          }}\\n          @lowerPlan={{this.communityPlan}}\\n          @trialPlan={{if this.canStartTrial this.starterTrialPlan}}\\n          @trialText={{this.tryStarterText}}\\n          @startTrial={{fn @startTrial this.starterTrialPlan this.starterPlan}}\\n          @upgradePlan={{fn this.goToBillingUpgrade \\'starter\\'}}\\n          @upgradeText={{this.upgradeToStarter}}\\n          @canUpgrade={{this.canUpgradeStarter}}\\n          @planCode=\\\"starter\\\"\\n          class=\\\"c-billing-plans__card c-billing-plans__card--full-height\\n            {{if @billing.isStarter \\'c-billing-plans__card--selected\\'}}\\\"\\n          data-test-plan=\\\"starter\\\"\\n        />\\n      </div>\\n    {{/if}}\\n    {{#if this.showPlusPlan}}\\n      <div class=\\\"l-billing-plans__panel\\\">\\n        <Billing::BillingPlans::Plan\\n          @plan={{if @billing.isPlus this.currentOrTriedPlan this.plusPlan}}\\n          @isSelected={{@billing.isPlus}}\\n          @commitment={{this.selectedCommitment}}\\n          @features={{this.plusPlanFeatures}}\\n          @isOnTrial={{(and @billing.isTrial @billing.isPlus)}}\\n          @displayName={{if\\n            @billing.isPlus\\n            this.currentOrTriedPlan.displayName\\n            this.plusPlan.displayName\\n          }}\\n          @lowerPlan={{if this.starterPlan this.starterPlan this.communityPlan}}\\n          @trialPlan={{if this.canStartTrial this.plusTrialPlan}}\\n          @trialText={{this.tryPlusText}}\\n          @startTrial={{fn @startTrial this.plusTrialPlan this.plusPlan}}\\n          @upgradePlan={{fn this.goToBillingUpgrade \\'plus\\'}}\\n          @upgradeText={{this.upgradeToPlus}}\\n          @canUpgrade={{this.canUpgradePlus}}\\n          @planCode=\\\"plus\\\"\\n          class=\\\"c-billing-plans__card c-billing-plans__card--full-height\\n            {{if @billing.isPlus \\'c-billing-plans__card--selected\\'}}\\\"\\n          data-test-plan=\\\"plus\\\"\\n        />\\n      </div>\\n    {{/if}}\\n  </div>\\n</Shared::BetaSettingsLayout::Section>\\n', { moduleName: 'client/legacy/pods/components/billing/billing-plans/template.hbs' });\n","import type { Appearance, StripeElements, StripePaymentElementOptions } from '@stripe/stripe-js';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type BillingStripePaymentArgs = {\n  paymentElements: StripeElements;\n};\n\nexport default class BillingBillingStripePaymentComponent extends Component<BillingStripePaymentArgs> {\n  static propTypes = {\n    paymentElements: PropTypes.object.isRequired,\n  };\n\n  @service('shared/state/user-preference') public userPreferenceState: UserPreferenceState;\n\n  private getAppearanceFromComputedBodyStyle(computedStyle: CSSStyleDeclaration): Appearance {\n    // appearance customization doc : https://stripe.com/docs/elements/appearance-api\n    return {\n      theme: 'none',\n      rules: {\n        '.Input': {\n          borderColor: computedStyle.getPropertyValue('--border-1'),\n          borderStyle: 'solid',\n          borderWidth: '1px',\n          marginTop: '4px',\n          fontFamily: '\"Inter\", sans-serif',\n          fontSize: '14px',\n          lineHeight: '19px',\n        },\n        '.Input--invalid ': {\n          color: computedStyle.getPropertyValue('--color-beta-on-surface_medium'),\n          borderColor: computedStyle.getPropertyValue('--color-beta-danger'),\n        },\n        '.Label::after': {\n          content: '-',\n        },\n        '.Label': {\n          fontWeight: '500',\n          fontSize: '14px',\n          lineHeight: '20px',\n          color: computedStyle.getPropertyValue('--slate-800'),\n        },\n        '.Error': {\n          color: computedStyle.getPropertyValue('--color-beta-danger'),\n          marginTop: '4px',\n          lineHeight: '18px',\n        },\n      },\n      labels: 'above',\n      variables: {\n        spacingGridColumn: '34px',\n        colorPrimary: computedStyle.getPropertyValue('--color-contrast-lower'),\n        colorBackground: computedStyle.getPropertyValue('--background-1'),\n        colorText: computedStyle.getPropertyValue('--color-beta-on-surface_medium'),\n        colorTextPlaceholder: computedStyle.getPropertyValue('--color-contrast-low-900'),\n        spacingUnit: '2px',\n        borderRadius: computedStyle.getPropertyValue('--input-border-radius'),\n        fontSizeBase: '14px',\n      },\n    };\n  }\n\n  @action\n  styleStripeElements() {\n    const appearance = this.getAppearanceFromComputedBodyStyle(getComputedStyle(document.body));\n    this.args.paymentElements.update({\n      appearance,\n    });\n  }\n\n  @action\n  async mountPayment() {\n    const elementOptions: StripePaymentElementOptions = {\n      business: { name: 'Forest Admin' },\n      fields: { billingDetails: { address: { country: 'never' } } },\n      terms: { card: 'never' },\n      wallets: { applePay: 'never', googlePay: 'never' },\n    };\n    this.styleStripeElements();\n    const paymentElement = this.args.paymentElements.create('payment', elementOptions);\n    paymentElement.mount('#payment-element');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<form id=\\\"payment-form\\\" class=\\\"c-billing-stripe-payment\\\">\\n  <div id=\\\"payment-element\\\"></div>\\n</form>\\n{{did-insert this.mountPayment}}\\n{{did-update this.styleStripeElements this.userPreferenceState.theme}}\\n', { moduleName: 'client/legacy/pods/components/billing/billing-stripe-payment/template.hbs' });\n","import { computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport Component from '@glimmer/component';\n\nimport Billing from 'client/data/models/billing';\nimport Plan from 'client/data/models/plan';\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class BillingCurrentPlanTagComponent extends Component {\n  @argument(Billing) billing;\n  @argument(arrayOf(Plan)) plans;\n\n  @alias('args.billing.currentPlan') currentPlan;\n\n  @computed('args.plans', 'currentPlan.{isTrial,type}')\n  get triedPlan() {\n    if (!this.currentPlan?.isTrial) {\n      return undefined;\n    }\n\n    return this.args.plans.find((plan) => plan.type === this.currentPlan?.type && !plan.isTrial);\n  }\n\n  @computed('currentPlan.{displayName,isTrial,trialDurationInDays}', 'triedPlan.displayName')\n  get currentPlanLabel() {\n    if (this.currentPlan?.isTrial && this.triedPlan) {\n      return `${this.triedPlan.displayName} (${this.currentPlan?.trialDurationInDays}-day trial period)`;\n    }\n\n    return this.currentPlan?.displayName || 'no current plan';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-current-plan-tag\\\" ...attributes>\\n  <p class=\\\"c-current-plan-tag__text\\\">\\n    Your current plan:\\n  </p>\\n  <Shared::DataDisplay::BetaBadge @color=\\\"info\\\">\\n    {{this.currentPlanLabel}}\\n  </Shared::DataDisplay::BetaBadge>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/billing/current-plan-tag/template.hbs' });\n","import { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { singularize } from 'ember-inflector';\n\nimport Collection from 'client/data/models/collection';\nimport { argument, oneOfType } from 'client/decorators/argument';\nimport NestedCollection from 'client/utils/nested/collection';\n\nexport default class ButtonBetaCreateHasManyButtonComponent extends Component {\n  @service currentUser;\n\n  @argument(oneOfType([Collection, NestedCollection])) collection;\n  @argument(Function) addExistingRecord;\n  @argument(Function) createNewRecord;\n\n  get displayName() {\n    return this.args.collection.displayNamePlural\n      ? this.args.collection.displayNameLowerCase\n      : singularize(this.args.collection.displayNameLowerCase);\n  }\n\n  get showCreate() {\n    return this.currentUser.canAddCollection(this.args.collection);\n  }\n\n  get showAdd() {\n    return !this.args.collection.isEmbedded;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Form::Dropdown ...attributes as |showDropdown|>\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @iconName=\\\"add\\\"\\n    @size={{@size}}\\n    data-test-beta-create-has-many-button-triggerer\\n  />\\n  {{#if showDropdown}}\\n    <Form::Dropdown::Content>\\n      {{#if this.showAdd}}\\n        <Form::Dropdown::Action\\n          @name=\\\"Add an existing {{this.displayName}}\\\"\\n          @onClick={{@addExistingRecord}}\\n          data-test-beta-create-has-many-button-add-existing\\n        />\\n      {{/if}}\\n      {{#if this.showCreate}}\\n        <Form::Dropdown::Action\\n          @name=\\\"Create a new {{this.displayName}}\\\"\\n          @onClick={{@createNewRecord}}\\n          data-test-beta-create-has-many-button-create-new\\n        />\\n      {{/if}}\\n    </Form::Dropdown::Content>\\n  {{/if}}\\n</Form::Dropdown>\\n', { moduleName: 'client/legacy/pods/components/button/beta-create-has-many-button/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::CriticalActionConfirmation::Button\\n  @buttonText=\\\"Delete {{@entityName}}\\\"\\n  @entityName={{@entityName}}\\n  @warningMessage=\\\"{{@description}} enter “{{@entityName}}” below to confirm.\\\"\\n  @onConfirm={{@delete}}\\n  data-test-delete-button={{@entityName}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/button/beta-delete-button/template.hbs' });\n","import { action } from '@ember/object';\nimport { not } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { isNone, isPresent } from '@ember/utils';\nimport Model from '@ember-data/model';\nimport Component from '@glimmer/component';\n\nimport { argument, arrayOf, oneOfType, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\n\n@validateArguments\nexport default class ButtonBetaSaveDiscardButtonsComponent extends Component {\n  @service eventBus;\n\n  @argument(Function) save;\n  @argument(optional(Function)) discard;\n  @argument(optional(oneOfType([Model, arrayOf(optional(Model))]))) entity;\n  @argument(optional(Boolean)) isCreate;\n  @argument(optional(Boolean)) isSaveDisabled;\n  @argument(optional(Boolean)) isDiscardVisible;\n  @argument(optional(Boolean)) fullWidth;\n  @argument(optional(Boolean)) fullHeight;\n  @argument(optional(Boolean)) withMarginBottom;\n  @argument(optional(Boolean)) hasOnlyIcons;\n  @argument(optional(Boolean)) shouldButtonsGrow;\n  @argument(optional(String)) entityName;\n  @argument(optional(String)) saveText;\n  @argument(optional(String)) size;\n  @argument(optional(Boolean)) withoutCallback;\n\n  constructor(...args) {\n    super(...args);\n\n    if (this.args.isCreate && !this.args.entityName) {\n      throw new MissingRequiredPropertyError('entityName');\n    }\n\n    if (!this.args.isCreate && !this.args.entity && !isPresent(this.args.isDiscardVisible)) {\n      throw new MissingRequiredPropertyError('entity');\n    }\n  }\n\n  @not('withMarginBottomOrDefault') hasNoMarginBottom;\n\n  get fullWidthOrDefault() {\n    return isNone(this.args.fullWidth) ? true : this.args.fullWidth;\n  }\n\n  get withMarginBottomOrDefault() {\n    return isNone(this.args.withMarginBottom) ? true : this.args.withMarginBottom;\n  }\n\n  get showDiscardButton() {\n    const { isDiscardVisible, entity } = this.args;\n    let entities = entity;\n    if (!Array.isArray(entity)) entities = [entity];\n    return isPresent(isDiscardVisible) ? isDiscardVisible : entities.some((e) => this.isDirty(e));\n  }\n\n  isDirty(entity) {\n    return Boolean(entity?.hasDirtyAttributes) || Boolean(entity?.hasDirtyRelationships);\n  }\n\n  @action\n  discardAction() {\n    let entities = this.args.entity;\n    if (!Array.isArray(this.args.entity)) entities = [this.args.entity];\n    entities.forEach((entity) => entity?.rollbackAttributes());\n    if (this.args.discard) {\n      this.args.discard();\n    }\n    this.eventBus.trigger('record.discarded', this.args.entity);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let (eq @size \\'tiny\\') as |isTiny|}}\\n  <div\\n    class={{get-classes-with-modifiers\\n      \\'c-beta-save-discard-buttons\\'\\n      full-width=this.fullWidthOrDefault\\n      full-height=@fullHeight\\n      no-margin=this.hasNoMarginBottom\\n      small-gap=isTiny\\n    }}\\n    ...attributes\\n  >\\n    {{#let\\n      (get-classes-with-modifiers \\'c-beta-save-discard-buttons__button\\' grow=@shouldButtonsGrow)\\n      as |buttonClass|\\n    }}\\n      {{#if @isCreate}}\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @text=\\\"Create {{@entityName}}\\\"\\n          @action={{@save}}\\n          @disabled={{@isSaveDisabled}}\\n          @noPadding={{isTiny}}\\n          @size={{or @size \\'normal\\'}}\\n          @withoutCallback={{@withoutCallback}}\\n          class={{buttonClass}}\\n          data-test-create-button={{true}}\\n          data-test-beta-save-discard-buttons-create-button={{true}}\\n        />\\n      {{else}}\\n        {{#if this.showDiscardButton}}\\n          <Shared::Button::BetaButton\\n            @type=\\\"secondary\\\"\\n            @text={{unless @hasOnlyIcons \\'Discard\\'}}\\n            @iconName={{if @hasOnlyIcons \\'close\\'}}\\n            @iconSize={{@size}}\\n            @noPadding={{isTiny}}\\n            @action={{this.discardAction}}\\n            @async={{false}}\\n            @size={{or @size \\'normal\\'}}\\n            @buttonClass={{buttonClass}}\\n            data-test-discard-button={{true}}\\n            data-test-beta-save-discard-buttons-discard-button={{true}}\\n          />\\n        {{/if}}\\n\\n        <Shared::SaveButton\\n          @onSave={{@save}}\\n          @isDisabled={{@isSaveDisabled}}\\n          @noPadding={{isTiny}}\\n          @withoutCallback={{@withoutCallback}}\\n          @disabled={{@isSaveDisabled}}\\n          @size={{or @size \\'normal\\'}}\\n          @buttonClass={{buttonClass}}\\n          @hasOnlyIcons={{@hasOnlyIcons}}\\n          @text={{@saveText}}\\n          @async={{true}}\\n          data-test-beta-save-discard-buttons-save-button={{true}}\\n        />\\n      {{/if}}\\n    {{/let}}\\n  </div>\\n{{/let}}\\n', { moduleName: 'client/legacy/pods/components/button/beta-save-discard-buttons/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport { isMac } from 'client/utils/keyboard';\n\n@validateArguments\nexport default class ButtonGlobalSearchComponent extends Component {\n  @service eventBus;\n\n  get shortcutForPlatform() {\n    return isMac() ? '⌘K' : 'Ctrl+K';\n  }\n\n  @action\n  openGlobalSearchModal() {\n    this.eventBus.trigger('openGlobalSearchModal');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<button\\n  type=\\\"button\\\"\\n  class={{get-classes-with-modifiers \\'c-button-global-search\\' hidden=@isHidden}}\\n  data-test-button-global-search\\n  {{on \\'click\\' this.openGlobalSearchModal}}\\n>\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName=\\\"search\\\"\\n    @size=\\\"custom\\\"\\n    class=\\\"c-button-global-search__icon\\\"\\n  />\\n  <span class=\\\"c-button-global-search__text\\\">Jump to...</span>\\n  <span class=\\\"c-button-global-search__shortcut\\\">\\n    {{this.shortcutForPlatform}}\\n  </span>\\n</button>\\n', { moduleName: 'client/legacy/pods/components/button/global-search/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (get (current-user) \\'canEditLayout\\')}}\\n  {{#let\\n    (if @isBuilder \\'Exit builder\\' \\'Exit editor\\') (if @isBuilder \\'Enter builder\\' \\'Edit layout\\')\\n    as |exitEditor enterEditor|\\n  }}\\n    <div id=\\\"layout-editor-button\\\">\\n      <Shared::Button::BetaButton\\n        @type=\\\"editor-light\\\"\\n        @text={{if (is-layout-editor) exitEditor enterEditor}}\\n        @iconName={{if (is-layout-editor) \\'keyboard_arrow_left\\' \\'layers\\'}}\\n        @isIconAfterText={{false}}\\n        @action={{or\\n          @onLayoutEditorClick\\n          (fn (mut (get (current-user) \\'editMode\\')) (not (is-layout-editor)))\\n        }}\\n        @async={{false}}\\n        @disabled={{get (current-user) \\'isLayoutEditorDisabled\\'}}\\n        data-test-button-layout-editor-button\\n        ...attributes\\n      />\\n    </div>\\n  {{/let}}\\n  {{#unless (get (current-user) \\'isLayoutEditorEnabled\\')}}\\n    <Shared::Feedback::BetaTooltip @targetId=\\\"layout-editor-button\\\" @side=\\\"bottom-end\\\">\\n      Create a branch to enable layout editing\\n    </Shared::Feedback::BetaTooltip>\\n  {{/unless}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/button/layout-editor-button/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { tagName } from '@ember-decorators/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('')\nexport default class ButtonSettingsButtonComponent extends Component {\n  constructor(...args) {\n    super(...args);\n\n    this.propTypes = {\n      action: PropTypes.func.isRequired,\n      icon: PropTypes.string,\n    };\n  }\n\n  icon = 'settings_applications';\n\n  @action\n  // NOTE: prevents bug when button is inside a link\n  nonBubblingAction(event) {\n    event.stopPropagation();\n    event.preventDefault();\n    return this.action(event);\n  }\n}\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport Field from 'client/data/models/field';\nimport { argument } from 'client/decorators/argument';\n\nexport default class ButtonSettingsButtonFieldSettingsButtonComponent extends Component {\n  @service router;\n\n  @argument(Field) field;\n\n  @action\n  goToFieldSettings() {\n    this.router.transitionTo(\n      'project.rendering.data.collection.settings.fields.details',\n      this.field.collection.shareableId,\n      this.field.fieldName,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Button::SettingsButton @action={{this.goToFieldSettings}} />\\n', { moduleName: 'client/legacy/pods/components/button/settings-button/field-settings-button/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::DataDisplay::BetaIcon\\n  @iconName={{this.icon}}\\n  class=\\\"c-settings-button\\n    {{if @size (concat \\'c-settings-button--\\' @size)}}\\n    {{unless @noPositioning \\'c-settings-button--with-margin\\'}}\\n    {{@class}}\\n    \\\"\\n  {{on \\'click\\' this.nonBubblingAction}}\\n  data-test-settings-button\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/button/settings-button/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-card\\\" ...attributes>{{yield}}</div>\\n', { moduleName: 'client/legacy/pods/components/card/template.hbs' });\n","import type AnimationTransitionService from 'client/legacy/services/animation-transition';\nimport type LocaleService from 'client/legacy/services/locale';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ntype ChartAnimateNumberArgs = {\n  value: number;\n};\n\nexport default class ChartChartAnimateNumberComponent extends Component<ChartAnimateNumberArgs> {\n  @service private animationTransition: AnimationTransitionService;\n  @service private locale: LocaleService;\n\n  @action\n  setupChart(element: HTMLElement) {\n    this.animateChart(element);\n  }\n\n  private animateChart(element: HTMLElement) {\n    // Use the same number of digits than the final value for the animation\n    // but never more than 5, to avoid breaking the component if the result\n    // has big number of decimals (0.333...)\n    const parts = Math.abs(this.args.value).toString().split(/[,.]/g);\n    const maximumFractionDigits = Math.min(parts.length > 1 ? parts[1].length : 0, 5);\n\n    // Start animation\n    this.animationTransition.animate(1500, (timeRatio) => {\n      if (element) {\n        const value = this.animationTransition.easeOutQuad(timeRatio, this.args.value);\n\n        element.innerText = Number.isNaN(value)\n          ? '-'\n          : value.toLocaleString(this.locale.currentLocale, { maximumFractionDigits });\n      }\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<span data-test-chart-animate-number {{did-insert this.setupChart}} ...attributes />\\n', { moduleName: 'client/legacy/pods/components/chart/chart-animate-number/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-chart-empty\\\" ...attributes>\\n  {{#if @icon}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{@icon}}\\n      @size=\\\"custom\\\"\\n      class=\\\"c-chart-empty__icon\\\"\\n      data-test-chart-empty-icon\\n    />\\n  {{/if}}\\n  <p class=\\\"c-chart-empty__text\\\" data-test-chart-empty-text>\\n    No data available\\n  </p>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/chart/chart-empty/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-dashcard__chart-error\\\" ...attributes>\\n  <Shared::DataDisplay::BetaIcon @iconName=\\\"warning\\\" />\\n  <span class=\\\"l-hml\\\">This chart cannot be rendered.</span>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/chart/chart-error/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @templatingHelper}}\\n  <Shared::BetaLabel\\n    @label=\\\"API endpoint URL\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-chart-form__label\\\"\\n    data-test-chart-form-api\\n    ...attributes\\n  >\\n    <:after-label>\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n    </:after-label>\\n    <:default>\\n      <Form::AutocompleteInput\\n        @value={{@chart.apiRoute}}\\n        @onChange={{fn (mut @chart.apiRoute)}}\\n        @placeholder=\\\"/api/stats/my-custom-chart\\\"\\n        @templatingHelper={{@templatingHelper}}\\n        @expectedType=\\\"String\\\"\\n        class=\\\"c-chart-form__input\\\"\\n        data-test-chart-form-api-url\\n      />\\n    </:default>\\n  </Shared::BetaLabel>\\n{{else}}\\n  <Shared::BetaLabel\\n    @label=\\\"API endpoint URL\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-chart-form__label\\\"\\n    data-test-chart-form-api\\n    ...attributes\\n  >\\n    <Shared::BetaInput\\n      @value={{@chart.apiRoute}}\\n      @placeholder=\\\"/api/stats/my-custom-chart\\\"\\n      class=\\\"c-chart-form__input\\\"\\n      data-test-chart-form-api-url\\n    />\\n  </Shared::BetaLabel>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/chart/chart-form/api/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { equal, not, or } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport {\n  DEFAULT_CHART_COMPONENT,\n  DEFAULT_CHART_STYLE,\n  DEFAULT_CHART_TEMPLATE,\n} from 'client/config/smart-chart';\nimport Chart from 'client/data/models/chart';\nimport WorkspaceComponentOptionsChartNestedDocument from 'client/data/models/workspace-component-options-chart';\nimport { argument, oneOfType, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\n\nconst CHART_TYPES = [\n  {\n    name: 'Single value',\n    value: 'Value',\n    icon: 'numbers',\n  },\n  {\n    name: 'Distribution',\n    value: 'Pie',\n    icon: 'pie_chart',\n  },\n  {\n    name: 'Time based',\n    value: 'Line',\n    icon: 'show_chart',\n  },\n  {\n    name: 'Percentage',\n    value: 'Percentage',\n    icon: 'percent',\n  },\n  {\n    name: 'Objective',\n    value: 'Objective',\n    icon: 'emoji_flags',\n  },\n  {\n    name: 'Leaderboard',\n    value: 'Leaderboard',\n    icon: 'emoji_events',\n  },\n  {\n    name: 'Smart Chart',\n    value: 'Smart',\n    icon: 'auto_graph',\n  },\n];\n\n@validateArguments\nexport default class ChartChartFormComponent extends Component {\n  @service awsCodeUploader;\n  @service eventBus;\n  @service lianaFeatures;\n  @service lianaSession;\n  @service store;\n  /** @type {import('client/services/collection-service').default} */\n  @service collectionService;\n  @service('shared/capabilities') capabilitiesService;\n\n  @argument(oneOfType([Chart, WorkspaceComponentOptionsChartNestedDocument])) chart;\n  @argument(String) featureCallbackRoute;\n  @argument(optional(Function)) saveChart;\n  @argument(optional(Boolean)) mustDisableSimple;\n  @argument(optional(Boolean)) mustDisableSmartChart;\n\n  constructor(...args) {\n    super(...args);\n\n    this.eventBus.on('record.discarded', this.resetSelectedModeAfterDiscard);\n  }\n\n  willDestroy(...args) {\n    super.willDestroy(...args);\n\n    this.eventBus.off('record.discarded', this.resetSelectedModeAfterDiscard);\n  }\n\n  @tracked selectedMode;\n\n  @not('args.chart.name') isChartNameEmpty;\n  @or('isChartNameEmpty', 'isDataSourceNotConfigured') isChartInvalid;\n  @not('isDataSourceConfigured') isDataSourceNotConfigured;\n\n  @equal('mode', 'api') isApi;\n  @equal('mode', 'query') isQuery;\n\n  get types() {\n    return this.args.mustDisableSmartChart\n      ? CHART_TYPES.filter((type) => type.value !== 'Smart')\n      : CHART_TYPES;\n  }\n\n  get isObjectiveChartSupported() {\n    return this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.ChartObjective,\n      this.lianaSession.currentEnvironment,\n    );\n  }\n\n  get isLeaderboardChartSupported() {\n    return this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.ChartLeaderboard,\n      this.lianaSession.currentEnvironment,\n    );\n  }\n\n  get isLiveQuerySupported() {\n    return (\n      this.lianaFeatures.isFeatureCompatible(\n        FeaturesEnum.LiveQuery,\n        this.lianaSession.currentEnvironment,\n      ) || this.capabilitiesService.agentCapabilities.canUseNativeQuery\n    );\n  }\n\n  get canUseNativeQuery() {\n    return this.capabilitiesService.agentCapabilities.canUseNativeQuery;\n  }\n\n  @computed(\n    'args.chart.connectionName',\n    'capabilitiesService.agentCapabilities.canUseNativeQuery',\n    'nativeQueryConnections',\n  )\n  get isConnectionNameEmpty() {\n    const isValidConnectionName = this.nativeQueryConnections\n      .toArray()\n      .find(({ name }) => name === this.args.chart.connectionName);\n\n    return (\n      this.capabilitiesService.agentCapabilities.canUseNativeQuery\n      && (!isValidConnectionName || !this.args.chart.connectionName)\n    );\n  }\n\n  @computed('mode', 'args.chart.type')\n  get canHaveFilter() {\n    return this.mode === 'simple' && !['Percentage', 'Leaderboard'].includes(this.args.chart.type);\n  }\n\n  @computed('args.chart.{isNew,name}')\n  get title() {\n    return this.args.chart.isNew ? 'Add a new chart' : `Chart \"${this.args.chart.name}\" settings`;\n  }\n\n  @computed(\n    'args.chart.{isApi,query,type}',\n    'args.mustDisableSimple',\n    'isLiveQuerySupported',\n    'selectedMode',\n  )\n  get mode() {\n    if (this.selectedMode) {\n      return this.selectedMode;\n    }\n    if (this.args.chart.isApi) {\n      return 'api';\n    }\n    if (this.args.chart.query && this.isLiveQuerySupported) {\n      return 'query';\n    }\n\n    return this.defaultMode();\n  }\n\n  set mode(mode) {\n    this.selectedMode = mode;\n  }\n\n  get valueCharts() {\n    return this.args.chart instanceof Chart\n      ? this.store.peekAll('chart').filter((chart) => chart.isValue && !chart.viewEdit)\n      : this.args.chart.workspaceComponent.workspace.components\n          .filter((workspaceComponent) => workspaceComponent.type === 'chart')\n          .map((workspaceComponent) => workspaceComponent.options)\n          .filter((chartOptions) => chartOptions.type === 'Value');\n  }\n\n  get allCollections() {\n    const collections = this.lianaSession.rendering.realCollections\n      .filterBy('isSmart', false)\n      .sortBy('singularizedDisplayName');\n\n    const chartType = this.args.chart.type;\n    const needsGroups = ['Pie', 'Line', 'Leaderboard'].includes(chartType);\n    const needsDateOperations = chartType === 'Line';\n\n    if (!needsGroups && !needsDateOperations) return collections;\n\n    return collections.filter((collection) => {\n      const caps = collection.capabilities;\n\n      return (\n        !caps\n        || (!(needsGroups && !caps.supportGroups)\n          && !(needsDateOperations && caps.supportedDateOperations?.length === 0))\n      );\n    });\n  }\n\n  get nativeQueryConnections() {\n    return this.store.peekAll('native-query-connection');\n  }\n\n  @computed('args.chart.{isApi,isQuery,isSmart,isValid}', 'isConnectionNameEmpty', 'mode')\n  get isDataSourceConfigured() {\n    if (!this.args.chart.isValid) {\n      return false;\n    }\n    if (this.args.chart.isSmart) {\n      return true;\n    }\n\n    if (this.mode === 'api') {\n      return this.args.chart.isApi;\n    }\n\n    if (this.mode === 'query') {\n      return this.args.chart.isQuery && !this.isConnectionNameEmpty;\n    }\n    return !this.args.chart.isApi && !this.args.chart.isQuery;\n  }\n\n  @computed(\n    'args.chart.isPercentage',\n    'args.mustDisableSimple',\n    'isLiveQuerySupported',\n    'lianaSession.currentEnvironment.isFullHostedAgent',\n  )\n  get sourceTypes() {\n    const types = [];\n    if (!this.args.mustDisableSimple) {\n      types.push({ label: 'Simple', value: 'simple' });\n    }\n\n    if (!this.args.chart.isPercentage && this.isLiveQuerySupported) {\n      types.push({ label: 'Query', value: 'query' });\n    }\n\n    types.push({ label: 'API', value: 'api' });\n\n    return types;\n  }\n\n  @computed(\n    'args.chart.dashboard.id',\n    'args.chart.parentCollection.shareableId',\n    'args.chart.workspaceComponent.workspace.id',\n    'args.chart.{id,recordId}',\n  )\n  get featureParams() {\n    if (this.args.chart instanceof WorkspaceComponentOptionsChartNestedDocument) {\n      return this.args.chart.workspaceComponent.workspace.id;\n    }\n    // The chart is from a dashboard\n    if (this.args.chart.dashboard) {\n      return this.args.chart.id\n        ? `${this.args.chart.dashboard.id},${this.args.chart.id}`\n        : this.args.chart.dashboard.id;\n    }\n    // The chart is from a record analytics\n    return this.args.chart.id\n      ? `${this.args.chart.parentCollection.shareableId},${this.args.chart.parentCollection.shareableId},${this.args.chart.recordId},${this.args.chart.id}`\n      : `${this.args.chart.parentCollection.shareableId},${this.args.chart.parentCollection.shareableId},${this.args.chart.recordId}`;\n  }\n\n  get templatingNotSupportedMessage() {\n    const isFeatureCompatible = this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.TemplatingInChart,\n      this.lianaSession.currentEnvironment,\n    );\n    if (!isFeatureCompatible) {\n      const minimalVersionRequired = this.lianaFeatures.featureMinimalVersion(\n        FeaturesEnum.TemplatingInChart,\n        this.lianaSession.currentEnvironment,\n      );\n      return minimalVersionRequired\n        ? `Upgrade your agent to version ≥ ${minimalVersionRequired} to input code`\n        : 'Your agent does not support this feature yet';\n    }\n    return null;\n  }\n\n  @action\n  createFilter(args = {}) {\n    this.args.chart.filter = this.store.createFragment('fragment-filter', {\n      conditions: [{}],\n      ...args,\n    });\n\n    return this.args.chart.filter;\n  }\n\n  @action\n  deleteFilter() {\n    this.args.chart.filter = null;\n  }\n\n  @action\n  selectChartType(type) {\n    this.args.chart.type = type;\n    this.switchMode(this.defaultMode());\n\n    if (this.args.chart.isSmart) {\n      this.args.chart.templateCode = DEFAULT_CHART_TEMPLATE;\n      this.args.chart.styleCode = DEFAULT_CHART_STYLE;\n    }\n  }\n\n  @action\n  allowJavascriptForSmartChart(allowJavascript) {\n    this.args.chart.allowJavascript = allowJavascript;\n\n    if (allowJavascript) {\n      this.args.chart.componentCode = DEFAULT_CHART_COMPONENT;\n    } else if (this.args.chart.s3Versions) {\n      this.args.chart.s3Versions.component = null;\n    }\n  }\n\n  @action\n  discard() {\n    this.args.chart.rollbackAttributes();\n    this.args.chart.rollbackRelationships();\n  }\n\n  @action\n  setMode(mode) {\n    this.switchMode(mode);\n  }\n\n  @action\n  resetSelectedModeAfterDiscard(record) {\n    if (record === this.args.chart) {\n      this.selectedMode = null;\n    }\n  }\n\n  defaultMode() {\n    return this.sourceTypes.firstObject.value;\n  }\n\n  switchMode(mode) {\n    // NOTICE: Clean data on type change to prevent errors.\n    this.args.chart.clearOnTypeChange();\n    this.selectedMode = mode;\n    if (this.selectedMode === 'query') {\n      this.args.chart.connectionName =\n        this.nativeQueryConnections.length === 1\n          ? this.nativeQueryConnections.firstObject.name\n          : null;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (or @chart.errors.length @chart.statErrors.length)}}\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"error\\\"\\n    @canHide={{false}}\\n    ...attributes\\n  >\\n    {{#each @chart.errors as |error|}}\\n      <p>{{error.detail}}</p>\\n    {{/each}}\\n    {{#each @chart.statErrors as |error|}}\\n      <p>{{error.detail}}</p>\\n    {{/each}}\\n  </Shared::Feedback::Notification::NotificationInApp>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/chart/chart-form/errors/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (can \\'access to liveQuery\\')}}\\n  {{#if @canUseNativeQuery}}\\n    <Shared::BetaLabel\\n      @label=\\\"Native query connection\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-chart-form__label\\\"\\n      data-test-chart-form-query-connection\\n    >\\n      <Shared::BetaSelect\\n        @options={{@nativeQueryConnections}}\\n        @namePath=\\\"name\\\"\\n        @valuePath=\\\"name\\\"\\n        @value={{@chart.connectionName}}\\n        class=\\\"c-chart-form__input\\\"\\n        data-test-chart-form-query-connection-select\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n  <Shared::BetaLabel @label=\\\"Query\\\" data-test-chart-form-query ...attributes>\\n    <Form::AceEditor\\n      @code={{@chart.query}}\\n      @onUpdate={{fn (mut @chart.query)}}\\n      @mode=\\\"sql\\\"\\n      data-test-chart-form-query-editor\\n    />\\n  </Shared::BetaLabel>\\n{{else}}\\n  <Preview::PreviewLiveQueryChart\\n    @featureParams={{@featureParams}}\\n    @featureCallbackRoute={{@featureCallbackRoute}}\\n    data-test-chart-form-query-preview\\n    ...attributes\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/chart/chart-form/query/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\nexport default class ChartChartFormSimpleComponent extends Component {\n  @service lianaFeatures;\n\n  @tracked isDisplayingTemplating = !!this.args.chart.timeRange?.startsWith('{{');\n\n  get sourceCollection() {\n    return this.args.chart.isLeaderboard\n      ? this.args.chart.relationshipField?.referenceModel\n      : this.args.chart.sourceCollection;\n  }\n\n  get labelFields() {\n    return this.args.chart.sourceCollection?.fieldsSorted.filter(\n      (field) => field.isString && !field.isVirtual && field.isGroupable,\n    );\n  }\n\n  get groupableFields() {\n    return this.sourceCollection?.fieldsSorted.filterBy('isGroupable');\n  }\n\n  get hasUnknownGroupByField() {\n    return !this.args.chart.groupByField && !!this.args.chart.groupByFieldName;\n  }\n\n  get groupableDateFields() {\n    return this.sourceCollection?.fieldsSorted.filter(\n      (field) => (field.isDate || field.isDateonly) && field.isGroupable,\n    );\n  }\n\n  get templatingButtontooltipMessage() {\n    return this.args.templatingNotSupportedMessage || 'Toggle to input code';\n  }\n\n  get timeRangeOptions() {\n    const isQuarterAvailable = this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.QuarterlyTimeRange,\n      this.sourceCollection?.environment,\n    );\n    const timeRange = ['Day', 'Week', 'Month', isQuarterAvailable ? 'Quarter' : null, 'Year'];\n    let options = timeRange.filter(Boolean);\n\n    const caps = this.sourceCollection?.capabilities;\n    if (caps?.supportedDateOperations) {\n      options = options.filter((op) => caps.supportedDateOperations.includes(op));\n    }\n\n    return options;\n  }\n\n  @action\n  onSourceCollectionChange() {\n    const { chart } = this.args;\n    chart.aggregateField = null;\n    chart.groupByField = null;\n    chart.labelField = null;\n    chart.relationshipField = null;\n    chart.filter = null;\n  }\n\n  @action\n  selectAggregate(aggregate) {\n    this.args.chart.aggregator = aggregate;\n    this.args.chart.aggregateField = null;\n  }\n\n  @action\n  async handleClickTemplate() {\n    this.isDisplayingTemplating = !this.isDisplayingTemplating;\n    this.args.chart.timeRange = null;\n    if (this.isDisplayingTemplating) {\n      // Wait for the input to be displayed\n      await waitForNextRunLoop();\n      document.querySelector(`.c-chart-form-simple__input input`)?.focus();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @chart.isPercentage}}\\n  <Shared::BetaLabel\\n    @label=\\\"Numerator chart\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-chart-form__label\\\"\\n    data-test-chart-form-simple-numerator\\n  >\\n    <Shared::BetaSelect\\n      @value={{@chart.numeratorChart}}\\n      @placeholder=\\\"Select a chart\\\"\\n      @options={{@valueCharts}}\\n      @namePath=\\\"name\\\"\\n      class=\\\"c-chart-form__input\\\"\\n      data-test-chart-form-simple-numerator-select\\n    />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Denominator chart\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-chart-form__label\\\"\\n    data-test-chart-form-simple-denominator\\n  >\\n    <Shared::BetaSelect\\n      @value={{@chart.denominatorChart}}\\n      @placeholder=\\\"Select a chart\\\"\\n      @options={{@valueCharts}}\\n      @namePath=\\\"name\\\"\\n      class=\\\"c-chart-form__input\\\"\\n      data-test-chart-form-simple-denominator-select\\n    />\\n  </Shared::BetaLabel>\\n{{else}}\\n  {{#if @chart.hasCollectionBeenDeleted}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @canHide={{false}}\\n      @state=\\\"error\\\"\\n      @message=\\\"This chart was configured on a deleted collection\\\"\\n      data-test-chart-form-simple-source-collection-error\\n    />\\n  {{/if}}\\n  <Shared::BetaLabel\\n    @label=\\\"Collection\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-chart-form__label\\\"\\n    data-test-chart-form-simple-acts-on-collection\\n  >\\n    <Shared::BetaSelect\\n      @value={{@chart.sourceCollection}}\\n      @placeholder=\\\"Select a collection\\\"\\n      @options={{@collections}}\\n      @namePath=\\\"singularizedDisplayName\\\"\\n      @iconPath=\\\"iconOrDefault\\\"\\n      @onChange={{this.onSourceCollectionChange}}\\n      @withSearchInput={{true}}\\n      class=\\\"c-chart-form__input\\\"\\n      data-test-chart-form-simple-acts-on-collection-select\\n    />\\n  </Shared::BetaLabel>\\n\\n  {{#if @chart.isLeaderboard}}\\n    <Shared::BetaLabel\\n      @label=\\\"Label\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-chart-form__label\\\"\\n      data-test-chart-form-simple-label-field\\n    >\\n      <Shared::BetaSelect\\n        @value={{@chart.labelField}}\\n        @placeholder=\\\"Select a field\\\"\\n        @options={{this.labelFields}}\\n        @namePath=\\\"displayName\\\"\\n        @disabled={{not @chart.sourceCollection}}\\n        class=\\\"c-chart-form__input\\\"\\n        data-test-chart-form-simple-label-field-select\\n      />\\n    </Shared::BetaLabel>\\n\\n    <Shared::BetaLabel\\n      @label=\\\"Relationship\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-chart-form__label\\\"\\n      data-test-chart-form-simple-acts-on-relationship-field\\n    >\\n      <Shared::BetaSelect\\n        @value={{@chart.relationshipField}}\\n        @placeholder=\\\"Select a field\\\"\\n        @options={{@chart.sourceCollection.relationshipsHasManyNative}}\\n        @namePath=\\\"displayName\\\"\\n        @disabled={{not @chart.sourceCollection}}\\n        class=\\\"c-chart-form__input\\\"\\n        data-test-chart-form-simple-acts-on-relationship-field-select\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n\\n  <Shared::BetaLabel\\n    @label=\\\"View\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-chart-form__label\\\"\\n    data-test-chart-form-simple-aggregate\\n  >\\n    <Shared::Form::Tabs\\n      @selected={{@chart.aggregator}}\\n      @items={{array \\'Count\\' \\'Sum\\'}}\\n      @onSelect={{this.selectAggregate}}\\n      @color=\\\"secondary\\\"\\n      @isFullWidth={{true}}\\n      class=\\\"c-chart-form__input\\\"\\n      data-test-chart-form-simple-aggregate-select\\n    />\\n  </Shared::BetaLabel>\\n\\n  {{#if (eq @chart.aggregator \\'Sum\\')}}\\n    <Shared::BetaLabel\\n      @label=\\\"Value\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-chart-form__label\\\"\\n      data-test-chart-form-simple-aggregate-field\\n    >\\n      <Shared::BetaSelect\\n        @value={{@chart.aggregateField}}\\n        @options={{this.sourceCollection.aggregableFields}}\\n        @namePath=\\\"displayName\\\"\\n        @placeholder=\\\"Select a field\\\"\\n        @disabled={{if\\n          @chart.isLeaderboard\\n          (not @chart.relationshipField)\\n          (not @chart.sourceCollection)\\n        }}\\n        class=\\\"c-chart-form__input\\\"\\n        data-test-chart-form-simple-aggregate-field-select\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n\\n  {{#if (or @chart.isPie @chart.isLine)}}\\n    {{#if this.hasUnknownGroupByField}}\\n      <div\\n        class=\\\"c-beta-filter-entry__unknown-field\\\"\\n        data-test-chart-form-simple-unknown-group-by-field\\n      >\\n        <i class=\\\"material-icons c-beta-filter-entry__unknown-field-icon\\\">warning</i>\\n        <span>The field \\\"{{@chart.groupByFieldName}}\\\" no longer exists in this collection.</span>\\n      </div>\\n    {{/if}}\\n    <Shared::BetaLabel\\n      @label=\\\"Group by\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-chart-form__label\\\"\\n      data-test-chart-form-simple-group-by-field\\n    >\\n      <Shared::BetaSelect\\n        @value={{@chart.groupByField}}\\n        @options={{if @chart.isPie this.groupableFields this.groupableDateFields}}\\n        @namePath=\\\"displayName\\\"\\n        @placeholder=\\\"Select a field\\\"\\n        @disabled={{if\\n          @chart.isLeaderboard\\n          (not @chart.relationshipField)\\n          (not @chart.sourceCollection)\\n        }}\\n        class=\\\"c-chart-form__input\\\"\\n        data-test-chart-form-simple-group-by-field-select\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n\\n  {{#if @chart.isLine}}\\n    <Shared::BetaLabel\\n      @label=\\\"Timeframe\\\"\\n      @position=\\\"left\\\"\\n      @disabled={{true}}\\n      class=\\\"c-chart-form__label\\\"\\n      data-test-chart-form-simple-timeframe\\n    >\\n      <div class=\\\"l-chart-form-simple__input-container\\\">\\n        {{#if (and @templatingHelper this.isDisplayingTemplating)}}\\n          <Form::AutocompleteInput\\n            @value={{@chart.timeRange}}\\n            @onChange={{fn (mut @chart.timeRange)}}\\n            @templatingHelper={{@templatingHelper}}\\n            @isExpectingSingleVariable={{true}}\\n            @expectedType=\\\"String\\\"\\n            class=\\\"c-chart-form-simple__input\\\"\\n            data-test-chart-form-simple-input-time-range\\n          />\\n        {{else}}\\n          <Shared::BetaSelect\\n            @value={{@chart.timeRange}}\\n            @options={{this.timeRangeOptions}}\\n            class=\\\"c-chart-form-simple__input\\\"\\n            data-test-chart-form-simple-timeframe-select\\n          />\\n        {{/if}}\\n\\n        {{#if @templatingHelper}}\\n          {{#let (generate-guid) as |switchButtonId|}}\\n            <div id={{switchButtonId}}>\\n              <Shared::Button::BetaButton\\n                @iconName=\\\"data_object\\\"\\n                @size=\\\"normal\\\"\\n                @type={{if this.isDisplayingTemplating \\'primary\\' \\'secondary\\'}}\\n                @disabled={{bool @templatingNotSupportedMessage}}\\n                data-test-chart-form-simple-time-range-switch-to-variable\\n                {{on \\'click\\' (prevent-default (stop-propagation this.handleClickTemplate))}}\\n              />\\n            </div>\\n            <Shared::Feedback::BetaTooltip @targetId={{switchButtonId}} @side=\\\"bottom-end\\\">\\n              {{this.templatingButtontooltipMessage}}\\n            </Shared::Feedback::BetaTooltip>\\n          {{/let}}\\n        {{/if}}\\n      </div>\\n    </Shared::BetaLabel>\\n  {{else if @chart.isLeaderboard}}\\n    <Shared::BetaLabel\\n      @label=\\\"Limit\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-chart-form__label\\\"\\n      data-test-chart-form-simple-limit\\n    >\\n      <Shared::BetaInput\\n        @type=\\\"number\\\"\\n        @value={{@chart.limit}}\\n        @placeholder=\\\"ex: 10\\\"\\n        class=\\\"c-chart-form__input\\\"\\n        data-test-chart-form-simple-limit-input\\n      />\\n    </Shared::BetaLabel>\\n  {{else if @chart.isObjective}}\\n    <Shared::BetaLabel\\n      @label=\\\"Objective\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-chart-form__label\\\"\\n      data-test-chart-form-simple-objective\\n    >\\n      <Shared::BetaInput\\n        @type=\\\"number\\\"\\n        @value={{@chart.objective}}\\n        @placeholder=\\\"ex: 200\\\"\\n        class=\\\"c-chart-form__input\\\"\\n        data-test-chart-form-simple-objective-input\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/chart/chart-form/simple/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (can \\'access to smartCharts\\')}}\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @text=\\\"Edit in builder\\\"\\n    @action={{if\\n      @chart.dashboard\\n      (action-link-to\\n        \\'project.rendering.dashboard.view.chart.smart-edit\\' @chart.dashboard.id @chart.id\\n      )\\n      (action-link-to\\n        \\'project.rendering.data.collection.list.view-edit.analytics.view.chart.smart-edit\\'\\n        @chart.recordId\\n        @chart.id\\n      )\\n    }}\\n    @disabled={{not @chart.isValid}}\\n    class=\\\"c-chart-form__button\\\"\\n    data-test-chart-form-smart-edit-in-builder\\n  />\\n{{else}}\\n  <Preview::PreviewSmartChart\\n    @featureParams={{@featureParams}}\\n    @featureCallbackRoute={{@featureCallbackRoute}}\\n    data-test-chart-form-smart-preview\\n    ...attributes\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/chart/chart-form/smart/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel::Section @title=\\\"Basic Details\\\" data-test-chart-form-basic-details>\\n  {{#if @isInWorkspace}}\\n    <Shared::BetaLabel @label=\\\"Chart name\\\" @position=\\\"left\\\" class=\\\"c-chart-form__label\\\">\\n      <:after-label>\\n        <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n      </:after-label>\\n      <:default>\\n        <Feature::Workspace::ComponentConfiguration::TemplatingInput\\n          @component={{@workspaceComponent}}\\n          @value={{@chart.name}}\\n          @onChange={{fn (mut @chart.name)}}\\n          @resizable={{false}}\\n          @isTextarea={{false}}\\n          class=\\\"c-chart-form__input\\\"\\n          {{autofocus}}\\n        />\\n      </:default>\\n    </Shared::BetaLabel>\\n  {{else}}\\n    <Shared::BetaLabel\\n      @label=\\\"Chart name\\\"\\n      @position=\\\"left\\\"\\n      class=\\\"c-chart-form__label\\\"\\n      data-test-chart-form-name\\n    >\\n      <Shared::BetaInput @value={{@chart.name}} class=\\\"c-chart-form__input\\\" />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n  <Shared::BetaLabel\\n    @label=\\\"Description\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-chart-form__label\\\"\\n    data-test-chart-form-description\\n  >\\n    <Shared::BetaInput @value={{@chart.description}} class=\\\"c-chart-form__input\\\" />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Chart type\\\"\\n    @position=\\\"left\\\"\\n    class=\\\"c-chart-form__label\\\"\\n    data-test-chart-form-type\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.types}}\\n      @namePath=\\\"name\\\"\\n      @valuePath=\\\"value\\\"\\n      @iconPath=\\\"icon\\\"\\n      @value={{one-way @chart.type}}\\n      @onChange={{this.selectChartType}}\\n      class=\\\"c-chart-form__input\\\"\\n      data-test-chart-form-type-select\\n    />\\n  </Shared::BetaLabel>\\n  {{#if @chart.isSmart}}\\n    <Shared::AllowJsToggle\\n      @allowJavascript={{@chart.allowJavascript}}\\n      @onAllowJavascriptChange={{this.allowJavascriptForSmartChart}}\\n      @target=\\\"view\\\"\\n      class=\\\"c-chart-form__allow-js-toggle\\\"\\n    />\\n  {{/if}}\\n</Shared::BetaRightPanel::Section>\\n\\n{{#if @chart.type}}\\n  <Shared::BetaRightPanel::Section @title=\\\"Data\\\" data-test-chart-form-data>\\n    <:header>\\n      {{#unless @chart.isSmart}}\\n        <Shared::Form::Tabs\\n          @items={{this.sourceTypes}}\\n          @selected={{this.mode}}\\n          @onSelect={{this.setMode}}\\n          @color=\\\"secondary\\\"\\n          @size=\\\"small\\\"\\n          @isFullWidth={{true}}\\n          data-test-chart-form-modes\\n        />\\n      {{/unless}}\\n    </:header>\\n    <:default>\\n      {{#if @chart.isSmart}}\\n        <Chart::ChartForm::Smart\\n          @chart={{@chart}}\\n          @featureParams={{this.featureParams}}\\n          @featureCallbackRoute={{@featureCallbackRoute}}\\n        />\\n      {{else}}\\n        <Chart::ChartForm::Errors @chart={{@chart}} data-test-chart-form-errors />\\n\\n        {{#if this.isApi}}\\n          <Chart::ChartForm::Api @chart={{@chart}} @templatingHelper={{@templatingHelper}} />\\n        {{else if this.isQuery}}\\n          <Chart::ChartForm::Query\\n            @chart={{@chart}}\\n            @featureCallbackRoute={{@featureCallbackRoute}}\\n            @featureParams={{this.featureParams}}\\n            @nativeQueryConnections={{this.nativeQueryConnections}}\\n            @canUseNativeQuery={{this.canUseNativeQuery}}\\n          />\\n        {{else}}\\n          <Chart::ChartForm::Simple\\n            @chart={{@chart}}\\n            @collections={{this.allCollections}}\\n            @templatingHelper={{@templatingHelper}}\\n            @templatingNotSupportedMessage={{this.templatingNotSupportedMessage}}\\n            @valueCharts={{this.valueCharts}}\\n          />\\n        {{/if}}\\n      {{/if}}\\n    </:default>\\n  </Shared::BetaRightPanel::Section>\\n\\n  {{#if this.canHaveFilter}}\\n    <Shared::BetaRightPanel::Section @title=\\\"Filters\\\" data-test-chart-form-filters>\\n      <:header>\\n        {{#unless @chart.filter}}\\n          <Shared::Button::BetaButton\\n            @type=\\\"primary\\\"\\n            @text=\\\"Add filter\\\"\\n            @action={{this.createFilter}}\\n            @disabled={{not @chart.sourceCollection}}\\n            class=\\\"c-chart-form__create-filter\\\"\\n            data-test-chart-form-add-filter\\n          />\\n        {{/unless}}\\n      </:header>\\n      <:default>\\n        {{#if @chart.filter}}\\n          <BetaFilter::Form\\n            @filter={{@chart.filter}}\\n            @createFilter={{this.createFilter}}\\n            @fields={{@chart.sourceCollection.filterableFields}}\\n            @showApply={{false}}\\n            @showDiscard={{true}}\\n            @canClearNew={{true}}\\n            @onClearAll={{this.deleteFilter}}\\n            @withVariables={{true}}\\n            @templatingHelper={{@templatingHelper}}\\n            @templatingNotSupportedMessage={{this.templatingNotSupportedMessage}}\\n            data-test-chart-form-filter-form\\n          />\\n        {{/if}}\\n      </:default>\\n    </Shared::BetaRightPanel::Section>\\n  {{/if}}\\n{{/if}}\\n\\n{{#if @saveChart}}\\n  <Button::BetaSaveDiscardButtons\\n    @isCreate={{@chart.isNew}}\\n    @isSaveDisabled={{or\\n      this.isChartInvalid\\n      (and (not @chart.hasDirtyAttributes) (not @chart.hasDirtyRelationships))\\n    }}\\n    @entityName=\\\"chart\\\"\\n    @entity={{@chart}}\\n    @save={{@saveChart}}\\n    @discard={{this.discard}}\\n    @withoutCallback={{true}}\\n    class=\\\"c-chart-form__save-discard\\\"\\n    data-test-chart-form-save-discard\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/chart/chart-form/template.hbs' });\n","import type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type StoreService from 'client/legacy/services/store';\nimport type { GridStack, GridStackNode, GridStackWidget } from 'gridstack';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Model from '@ember-data/model';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Chart from 'client/data/models/chart';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype ChartGridArgs = {\n  charts: Chart[];\n  editChartAction: (chart: Chart) => void;\n  isEditMode: boolean;\n  dashboardId: string;\n  record: Model;\n};\n\n@validateArguments\nexport default class ChartChartGridComponent extends Component<ChartGridArgs> {\n  @service private store: StoreService;\n  @service private errorHandler: ErrorHandlerService;\n\n  static propTypes = {\n    charts: PropTypes.arrayOf(PropTypes.instanceOf(Chart)).isRequired,\n    editChartAction: PropTypes.func.isRequired,\n    isEditMode: PropTypes.bool.isRequired,\n    dashboardId: PropTypes.string,\n    record: PropTypes.instanceOf(Model),\n  };\n\n  @tracked charts = this.args.charts;\n  @tracked grid: GridStack | null = null;\n\n  gridstackOptions = {\n    cellHeight: 150,\n    column: 5,\n    margin: 10,\n    animate: true,\n    disableOneColumnMode: true,\n    resizable: { handles: 'se,sw,nw,ne' },\n    float: true,\n  };\n\n  @action\n  handleSwitchDashboard(element: HTMLElement & { gridstack: GridStack }) {\n    this.grid = element.gridstack;\n\n    // We were facing a bug here that was causing to place at the wrong spot some charts when switching from a dashboard to another one.\n    // This issue is due to the fact that the new charts are inserted before the old ones are removed, so some spaces on the grid are\n    // already taken (seems to be directly due to Ember functioning, see this issue https://github.com/emberjs/ember.js/issues/18873).\n    // To fix this, we need to clean all previous charts before switching dashboard and reallocate the \"charts\" value afterwards.\n    this.grid?.removeAll(true);\n    this.handleChartsUpdate();\n  }\n\n  @action\n  handleChartsUpdate() {\n    this.charts = this.args.charts;\n  }\n\n  @action\n  async onChange(_event: Event, widgets: GridStackNode[] = []) {\n    if (widgets.length && this.args.isEditMode) {\n      await this.updateChartsPosition(widgets);\n    }\n  }\n\n  @action\n  onAdded(_event: Event, widgets: GridStackNode[]) {\n    const element = widgets[0].el;\n    if (element) {\n      element.scrollIntoView({ behavior: 'smooth', block: 'nearest', inline: 'start' });\n    }\n  }\n\n  private updateChart(id: number | string, properties: ReturnType<typeof this.serializeWidget>) {\n    const chart = this.store.peekRecord('chart', id);\n    // NOTE: avoid marking unchanged settings as dirty\n    if (!chart.displaySettings.isEqualProps(properties)) {\n      chart.displaySettings.setProperties(properties);\n    }\n    return chart;\n  }\n\n  private serializeWidget(widget: GridStackWidget) {\n    return {\n      x: widget.x,\n      y: widget.y,\n      width: widget.w,\n      height: widget.h,\n    };\n  }\n\n  private async updateChartsPosition(widgets: GridStackNode[]) {\n    const charts = widgets.map((widget) =>\n      this.updateChart(widget.id, this.serializeWidget(widget)),\n    );\n    return this.store.layoutBatchUpdate('chart', charts).catch((reason: Error) => {\n      this.errorHandler.handleRequestFailure(reason, 'Charts reordering failed');\n    });\n  }\n\n  willDestroy() {\n    super.willDestroy();\n\n    this.charts = [];\n\n    if (this.grid) {\n      this.grid.destroy();\n      this.grid = null;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-chart-grid\\\">\\n  <GridStack::Layout\\n    @options={{this.gridstackOptions}}\\n    @onChange={{this.onChange}}\\n    @onAdded={{this.onAdded}}\\n    @isStatic={{not @isEditMode}}\\n    {{did-update this.handleSwitchDashboard @dashboardId @record}}\\n    {{did-update this.handleChartsUpdate @charts}}\\n  >\\n    {{#each this.charts as |chart|}}\\n      <GridStack::Item @id={{chart.id}} @options={{chart.displaySettings.gridStackItemOptions}}>\\n        <Chart::ChartRender\\n          @chart={{chart}}\\n          @editChartAction={{@editChartAction}}\\n          @record={{@record}}\\n        />\\n      </GridStack::Item>\\n    {{/each}}\\n  </GridStack::Layout>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/chart/chart-grid/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport FieldModel from 'client/data/models/field';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype LeaderboardValue = {\n  key: string | null;\n  value: number | null;\n};\n\ntype ChartChartLeaderboardArgs = {\n  leaderboardValue: LeaderboardValue[];\n  hasWidgetPrice: boolean;\n  aggregateField?: FieldModel;\n};\n\n@validateArguments\nexport default class ChartChartLeaderboardComponent extends Component<ChartChartLeaderboardArgs> {\n  static propTypes = {\n    leaderboardValue: PropTypes.arrayOf(\n      PropTypes.shape({\n        key: PropTypes.string,\n        value: PropTypes.number,\n      }),\n    ).isRequired,\n    hasWidgetPrice: PropTypes.bool.isRequired,\n    aggregateField: PropTypes.oneOfType([PropTypes.instanceOf(FieldModel), PropTypes.object]),\n  };\n\n  get hasLeaderboardValue() {\n    return this.args.leaderboardValue.length > 0;\n  }\n\n  @action\n  setupChart(element: HTMLElement) {\n    const firstColumnElements = element.querySelectorAll<HTMLElement>('.c-leaderboard__ranking');\n    const lastColumnElements = element.querySelectorAll<HTMLElement>('.c-leaderboard__score');\n\n    const maximumFirstColumnWidth = this.getMaximumElementsWidth(firstColumnElements);\n    const maximumLastColumnWidth = this.getMaximumElementsWidth(lastColumnElements);\n\n    this.setElementsMinWidth(firstColumnElements, maximumFirstColumnWidth);\n    this.setElementsMinWidth(lastColumnElements, maximumLastColumnWidth);\n  }\n\n  getMaximumElementsWidth(elements: NodeListOf<HTMLElement>) {\n    const getElementWidth = (element: HTMLElement) =>\n      parseFloat(getComputedStyle(element).width.replace('px', ''));\n\n    return Math.max(0, ...Array.from(elements, getElementWidth));\n  }\n\n  setElementsMinWidth(elements: NodeListOf<HTMLElement>, width: number) {\n    elements.forEach((element) => {\n      element.style.minWidth = `${width}px`;\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-leaderboard\\\" {{did-insert this.setupChart}} ...attributes>\\n  {{#if this.hasLeaderboardValue}}\\n    <div class=\\\"l-leaderboard-content\\\">\\n      {{#each @leaderboardValue as |line index|}}\\n        <div class=\\\"c-leaderboard__line\\\">\\n          <div class=\\\"c-leaderboard__ranking\\\" data-test-chart-leaderboard-ranking={{index}}>\\n            {{add index 1}}\\n          </div>\\n          <div class=\\\"c-leaderboard__labelzone\\\">\\n            <div class=\\\"c-leaderboard__text\\\" data-test-chart-leaderboard-text={{index}}>\\n              {{line.key}}\\n            </div>\\n          </div>\\n          <div class=\\\"c-leaderboard__score\\\" data-test-chart-leaderboard-score={{index}}>\\n            {{#if @hasWidgetPrice}}\\n              {{price line.value @aggregateField}}\\n            {{else}}\\n              {{format-number-to-locale line.value}}\\n            {{/if}}\\n          </div>\\n        </div>\\n      {{/each}}\\n    </div>\\n  {{else}}\\n    <Chart::ChartEmpty @icon={{if (gt @height 1) \\'emoji_events\\'}} />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/chart/chart-leaderboard/template.hbs' });\n","import type { ChartOptions } from 'chart.js';\nimport type Chart from 'chart.js';\nimport type LocaleService from 'client/legacy/services/locale';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport window from 'ember-window-mock';\nimport { cloneDeep } from 'lodash';\n\nimport validateArguments from 'client/decorators/validate';\nimport ColorUtils from 'client/utils/color-utils';\nimport priceFormatter from 'client/utils/price-formatter';\n\nconst CONFIG_LINE: ChartOptions & {\n  pointHitDetectionRadius: number;\n  scaleLabel: string;\n  bezierCurve: boolean;\n  pointRadius: number;\n  scaleShowVerticalLines: boolean;\n} = {\n  pointHitDetectionRadius: 1,\n  scaleLabel: ' <%= value %>',\n  bezierCurve: false,\n  pointRadius: 0,\n  scaleShowVerticalLines: false,\n  animation: {\n    easing: 'easeInQuad',\n  },\n  legend: { position: 'bottom' },\n  responsive: true,\n  maintainAspectRatio: false,\n};\n\ntype ChartLineComponentArgs = {\n  data: {\n    datasets: {\n      data: number[];\n      label: string;\n      borderColor: string;\n      backgroundColor?: CanvasGradient;\n    }[];\n    labels: string[];\n    opts?: {\n      stacked: boolean;\n    };\n  };\n  chartConfig?: {\n    hasWidgetPrice: boolean;\n    aggregateField: {\n      widgetEdit: {\n        parameters: {\n          currency: string;\n          base: string;\n        };\n      };\n    };\n  };\n};\n\n@validateArguments\nexport default class ChartChartLineComponent extends Component<ChartLineComponentArgs> {\n  @service private locale: LocaleService;\n  @service('shared/state/user-preference') private userPreferenceState: UserPreferenceState;\n\n  private chart: Chart = null;\n\n  get gridColor() {\n    const computedStyle = window.getComputedStyle(document.body);\n    const colorName = this.userPreferenceState.isDarkTheme\n      ? '--color-contrast-low-200'\n      : '--color-contrast-low-300';\n    return computedStyle.getPropertyValue(colorName);\n  }\n\n  @action\n  initialize(element: HTMLCanvasElement) {\n    const context = element.getContext('2d', { willReadFrequently: true });\n    const gradientHeight = context.canvas.clientHeight || 100;\n    const config = cloneDeep(CONFIG_LINE);\n\n    // NOTICE: Ensure it's a plain javascript object.\n    const data = cloneDeep(this.args.data);\n\n    if (data && data.datasets && data.datasets.length) {\n      data.datasets.forEach((dataset) => {\n        const lineColor = dataset.borderColor.toLowerCase();\n        const gradient = context.createLinearGradient(0, 0, 0, gradientHeight);\n        gradient.addColorStop(0, `${lineColor}4d`);\n        gradient.addColorStop(1, `${ColorUtils.getGradientLastColor(lineColor)}4d`);\n        dataset.backgroundColor = gradient;\n      });\n    }\n\n    // NOTICE: Hide the legend if there's only 1 line.\n    if (data.datasets.length < 2) {\n      config.legend = undefined;\n    }\n\n    config.scales = {\n      yAxes: [\n        {\n          stacked: data.opts?.stacked,\n          ticks: {\n            callback: this.formatLabel,\n          },\n        },\n      ],\n    };\n\n    config.tooltips = {\n      callbacks: {\n        label: (item) => this.formatLabel(item.yLabel as number),\n      },\n    };\n\n    const chart = new window.Chart(context, {\n      type: 'line',\n      data,\n      options: config,\n    });\n\n    this.chart = chart;\n    this.updateChartGridColor();\n  }\n\n  @action\n  updateChartGridColor() {\n    if (!this.chart) return;\n    this.chart.options = this.chart.options || {};\n    this.chart.options.scales = this.chart.options.scales || {};\n    this.chart.options.scales.xAxes = this.chart.options.scales.xAxes || [{}];\n    this.chart.options.scales.yAxes = this.chart.options.scales.yAxes || [{}];\n    this.chart.options.scales.xAxes[0].gridLines =\n      this.chart.options.scales.xAxes[0].gridLines || {};\n    this.chart.options.scales.yAxes[0].gridLines =\n      this.chart.options.scales.yAxes[0].gridLines || {};\n    this.chart.options.scales.xAxes[0].gridLines.color = this.gridColor;\n    this.chart.options.scales.yAxes[0].gridLines.color = this.gridColor;\n    this.chart.update();\n  }\n\n  /**\n   * @param {number} value\n   * @returns {string}\n   */\n  @action\n  formatLabel(value: number) {\n    if (this.args.chartConfig?.hasWidgetPrice) {\n      return priceFormatter.format(\n        value,\n        this.args.chartConfig?.aggregateField?.widgetEdit,\n        this.locale.currentLocale,\n      );\n    }\n\n    const formatter = Intl.NumberFormat(this.locale.currentLocale, {\n      style: 'decimal',\n    });\n\n    return formatter.format(value);\n  }\n\n  willDestroy() {\n    super.willDestroy();\n\n    if (this.chart) {\n      this.chart.destroy();\n      this.chart = null;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<canvas\\n  {{did-insert this.initialize}}\\n  {{did-update this.updateChartGridColor this.userPreferenceState.theme}}\\n></canvas>\\n', { moduleName: 'client/legacy/pods/components/chart/chart-line/template.hbs' });\n","import { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { formatNumberToLocale } from 'client/shared/helpers/format-number-to-locale';\nimport priceFormatter from 'client/utils/price-formatter';\n\n@validateArguments\nexport default class ChartChartObjectiveComponent extends Component {\n  @service locale;\n  @service lianaSession;\n\n  @argument(Object) chart;\n\n  get projectPrimaryColor() {\n    return this.lianaSession.currentProject.primaryColorOrDefault;\n  }\n\n  get number() {\n    if (!this.args.chart?.stat?.value) {\n      return { objective: 0, value: 0 };\n    }\n    const { aggregateField, hasWidgetPrice, objective: chartObjective, stat } = this.args.chart;\n    const { objective: statObjective, value } = stat.value;\n    const objective = chartObjective || statObjective || null;\n    let formattedValue;\n    if (hasWidgetPrice) {\n      formattedValue = ChartChartObjectiveComponent._formatPriceValue(value, aggregateField);\n    } else {\n      formattedValue = Number.parseInt(value, 10) || 0;\n    }\n    return {\n      objective: objective || 0,\n      value: Number.parseInt(formattedValue, 10) || 0,\n    };\n  }\n\n  get text() {\n    if (!this.args.chart?.stat?.value) {\n      return { objective: '-', value: '-' };\n    }\n    const { currentLocale } = this.locale;\n    const {\n      aggregateField,\n      hasWidgetPrice,\n      hasWidgetDisplayPrice,\n      objective: chartObjective,\n      stat,\n    } = this.args.chart;\n    const { objective: statObjective, value } = stat.value;\n    const objective = chartObjective || statObjective || null;\n    if (hasWidgetPrice) {\n      return {\n        objective: ChartChartObjectiveComponent._formatPriceText(\n          objective,\n          aggregateField,\n          currentLocale,\n        ),\n        value: priceFormatter.format(\n          value,\n          aggregateField[hasWidgetDisplayPrice ? 'widgetDisplay' : 'widgetEdit'],\n          currentLocale,\n        ),\n      };\n    }\n    return {\n      objective: (objective && formatNumberToLocale(objective, currentLocale)) || '-',\n      value: formatNumberToLocale(value, currentLocale),\n    };\n  }\n\n  static _formatPriceText(value, field, locale) {\n    if (!value) {\n      return '-';\n    }\n    const currency = priceFormatter.getCurrency(field.widgetDisplay);\n    return priceFormatter.getAmountFormatted(value, locale, currency);\n  }\n\n  static _formatPriceValue(value, field) {\n    if (!value) {\n      return 0;\n    }\n    return priceFormatter.getAmount(field.widgetDisplay, value);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-objective-chart\\\" ...attributes>\\n  <div class=\\\"c-objective-chart__textual\\\">\\n    <span class=\\\"c-objective-chart__current\\\">\\n      {{#if @chart.hasWidgetPrice}}\\n        {{this.text.value}}\\n      {{else}}\\n        <Chart::ChartAnimateNumber @value={{this.number.value}} />\\n      {{/if}}\\n    </span>\\n    <span>\\n      /\\n      {{this.text.objective}}\\n    </span>\\n  </div>\\n\\n  <Shared::Feedback::ProgressBar\\n    @max={{this.number.objective}}\\n    @value={{this.number.value}}\\n    @color={{this.projectPrimaryColor}}\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/chart/chart-objective/template.hbs' });\n","import type { ChartOptions } from 'chart.js';\nimport type Chart from 'chart.js';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport window from 'ember-window-mock';\n\nimport validateArguments from 'client/decorators/validate';\nimport ColorUtils from 'client/utils/color-utils';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nconst CONFIG_PIE: ChartOptions = {\n  animation: {\n    easing: 'easeInQuad',\n  },\n  legend: { position: 'bottom' },\n  cutoutPercentage: 45,\n  responsive: true,\n  maintainAspectRatio: false,\n};\n\ntype ChartPieComponentArgs = {\n  data: {\n    color?: string;\n    highlight?: string;\n    key: string | number;\n    label: string;\n    value: string | number;\n  }[];\n};\n\n@validateArguments\nexport default class ChartChartPieComponent extends Component<ChartPieComponentArgs> {\n  static propTypes = {\n    data: PropTypes.arrayOf(\n      PropTypes.shape({\n        color: PropTypes.string,\n        highlight: PropTypes.string,\n        key: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n        label: PropTypes.string,\n        value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n      }),\n    ).isRequired,\n  };\n\n  chart: Chart | null = null;\n\n  @action\n  setupChart(element: HTMLCanvasElement) {\n    const ctx = element.getContext('2d');\n    const chartData = this.args.data;\n\n    const data = {\n      labels: [],\n      datasets: [\n        {\n          data: [],\n          backgroundColor: [],\n          hoverBackgroundColor: [],\n        },\n      ],\n    };\n\n    // NOTICE: The Pie chart is limited to 6 sections.\n    if (chartData?.length > 6) {\n      const totalOther = chartData\n        .slice(5)\n        .reduce((sum, d) => sum + (d ? parseInt(d.value as string, 10) : 0), 0);\n      const newData = chartData.slice(0, 5);\n\n      newData.push({\n        key: 'Others',\n        label: 'Others',\n        value: totalOther,\n      });\n\n      chartData.setObjects(newData);\n    }\n\n    const colors = ColorUtils.predefinedRandomColors(chartData?.length);\n\n    chartData.forEach((d, index) => {\n      data.labels.push(d.label);\n      data.datasets[0].backgroundColor.push(colors[index]);\n      data.datasets[0].data.push(d.value);\n    });\n\n    this.chart = new window.Chart(ctx, {\n      type: 'doughnut',\n      data,\n      options: CONFIG_PIE,\n    });\n  }\n\n  willDestroy() {\n    super.willDestroy();\n\n    if (this.chart) {\n      this.chart.destroy();\n      this.chart = null;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<canvas {{did-insert this.setupChart}} ...attributes></canvas>\\n', { moduleName: 'client/legacy/pods/components/chart/chart-pie/template.hbs' });\n","/* eslint-disable ember/no-component-lifecycle-hooks */\n/* eslint-disable ember/classic-decorator-hooks */\n/* eslint-disable ember/require-tagless-components */\nimport type ChartModel from 'client/data/models/chart';\nimport type WidgetConfigurationFragment from 'client/data/models/widget-configuration';\nimport type {\n  Counts,\n  KeyValue,\n  LineValues,\n  LineValuesAndLabels,\n  Stat,\n} from 'client/decorators/model-chart';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LocaleService from 'client/legacy/services/locale';\nimport type StatTriggererService from 'client/legacy/services/stat-triggerer';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { WidgetDisplayTypeEnum } from 'client/utils/widgets';\n\nimport { isArray } from '@ember/array';\nimport Component from '@ember/component';\nimport { action, computed, defineProperty } from '@ember/object';\nimport { and, empty, equal, not, notEmpty, readOnly } from '@ember/object/computed';\nimport { next, schedule } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Model from '@ember-data/model';\nimport { attribute, classNames } from '@ember-decorators/component';\nimport window from 'ember-window-mock';\nimport moment from 'moment';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { ContextTypeEnum } from 'client/features/workspace/components/component-renderer/chart/component';\nimport ColorUtils from 'client/utils/color-utils';\nimport { DEFAULT_DATEONLY_FORMAT } from 'client/utils/dates-default-format-variables';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport priceFormatter from 'client/utils/price-formatter';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport WorkspaceTemplatingHelper from 'client/utils/templating-helper/workspace-templating-helper';\n\ntype Dataset = {\n  label: string;\n  data: unknown[];\n  fill: boolean;\n  pointHitRadius: number;\n  pointRadius: number;\n  borderWidth: number;\n  borderColor: string;\n  backgroundColor: string;\n};\n\n@classNames('c-chart-render')\nexport default class ChartChartRenderComponent extends Component {\n  propTypes = {\n    chart: PropTypes.object.isRequired,\n    record: PropTypes.instanceOf(Model),\n    editChartAction: PropTypes.func.isRequired,\n    linkAction: PropTypes.func.isRequired,\n    templatingHelper: PropTypes.instanceOf(WorkspaceTemplatingHelper),\n    unsetContextType: PropTypes.oneOf([...Object.values(ContextTypeEnum), null]),\n  };\n\n  // args\n  chart: ChartModel;\n  record: ClientRecordModel;\n  editChartAction: () => void;\n  linkAction: () => void;\n  templatingHelper: WorkspaceTemplatingHelper;\n  unsetContextType: keyof typeof ContextTypeEnum;\n  // end args\n\n  @service eventBus: EventBusService;\n  @service lianaSession: LianaSessionService;\n  @service locale: LocaleService;\n  @service statTriggerer: StatTriggererService;\n  @service store: StoreService;\n  @service('feature/notification') notificationBusinessService: NotificationFeatureService;\n\n  @attribute('data-test-chart-render')\n  attributeSelector = true;\n\n  percentageValue: number | string;\n\n  @readOnly('chart.isValue') isValueChart: boolean;\n  @readOnly('chart.isPie') isPieChart: boolean;\n  @readOnly('chart.isLine') isLineChart: boolean;\n  @readOnly('chart.isPercentage') isPercentageChart: boolean;\n  @readOnly('chart.isObjective') isObjectiveChart: boolean;\n  @readOnly('chart.isLeaderboard') isLeaderboardChart: boolean;\n  @readOnly('chart.isSmart') isSmartChart: boolean;\n  @empty('lineValue.datasets') hasNoLineChartValue: boolean;\n  @not('hasNoLineChartValue') hasLineChartValue: boolean;\n  @empty('pieValue') hasNoPieChartValue: boolean;\n  @not('hasNoPieChartValue') hasPieChartValue: boolean;\n  @empty('leaderboardValue') hasNoLeaderboardValue: boolean;\n  @not('hasNoLeaderboardValue') hasLeaderboardValue: boolean;\n  @and('isObjectiveChart', 'hasDescription') isObjectiveWithDescription: boolean;\n  @notEmpty('chart.query') isLiveQuery: boolean;\n  @notEmpty('chart.stat.value.countPrevious') hasValueVariation: boolean;\n  @notEmpty('chart.stat.value.countCurrent') hasCurrentValue: boolean;\n\n  isShowingPopupUpgradeToPaidPlan = false;\n  notifyElementSizeChangedContext: () => void;\n  elementSizeChanged: number;\n\n  @computed('chart.sourceCollection.iconOrDefault')\n  get chartIcon() {\n    return this.chart?.sourceCollection?.iconOrDefault || '📊';\n  }\n\n  @computed('chart.{aggregateField,hasWidgetDisplayPrice}', 'locale.currentLocale', 'valueValue')\n  get priceFormated() {\n    return priceFormatter.format(\n      this.valueValue,\n      this.chart?.aggregateField[\n        this.chart?.hasWidgetDisplayPrice ? 'widgetDisplay' : 'widgetEdit'\n      ] as WidgetConfigurationFragment<WidgetDisplayTypeEnum.Price>,\n      this.locale.currentLocale,\n    );\n  }\n\n  @computed(\n    'chart.denominatorChart.stat.value',\n    'chart.numeratorChart.stat.value',\n    'chart.stat.value',\n    'chart.{apiRoute,type}',\n    'isSmartChart',\n  )\n  get hasNoValue() {\n    if (this.isSmartChart) return false;\n    if (this.chart?.type === 'Percentage' && !this.chart?.apiRoute) {\n      return (\n        typeof this.chart?.numeratorChart?.stat?.value === 'undefined'\n        || typeof this.chart?.denominatorChart?.stat?.value === 'undefined'\n      );\n    }\n    return typeof this.chart?.stat?.value === 'undefined';\n  }\n\n  get isContextUnsetTimerange() {\n    return this.unsetContextType === ContextTypeEnum.TIME_RANGE_REQUIRED;\n  }\n\n  @computed('chart.isNew', 'chart.errored')\n  get displayError() {\n    return !this.chart?.isNew && this.chart?.errored;\n  }\n\n  value<T extends Counts | KeyValue[] | LineValues | number>() {\n    return this.chart?.stat?.value as T;\n  }\n\n  @computed('chart.stat.value.countCurrent')\n  get valueValue(): number {\n    if (this.value<Counts>()?.countCurrent || this.value<Counts>()?.countCurrent === 0) {\n      return this.value<Counts>()?.countCurrent;\n    }\n    return this.value<number>();\n  }\n\n  @computed('chart.stat.value.{countCurrent,countPrevious}', 'hasCurrentValue', 'hasValueVariation')\n  get valueVariation() {\n    if (this.hasValueVariation && this.hasCurrentValue) {\n      const { countPrevious, countCurrent } = this.value<Counts>();\n      return Math.floor(((countCurrent - countPrevious) * 10000) / countPrevious) / 100;\n    }\n    return null;\n  }\n\n  @computed('chart.stat.value.countPrevious')\n  get valueVariationComputable() {\n    return !!this.value<Counts>()?.countPrevious && this.value<Counts>()?.countPrevious > 0;\n  }\n\n  @equal('chart.stat.value.countPrevious', 'chart.stat.value.countCurrent') isVariationNull;\n\n  @computed('chart.stat.value.{countCurrent,countPrevious}')\n  get variation() {\n    const countPrevious = Number(this.value<Counts>()?.countPrevious || 0);\n    const countCurrent = Number(this.value<Counts>()?.countCurrent || 0);\n\n    return { countPrevious, countCurrent };\n  }\n\n  @computed('chart.stat.value', 'isPieChart')\n  get pieValue(): { key: string; value: number; label: string }[] {\n    if (!this.isPieChart || !isArray(this.chart?.stat?.value)) {\n      return null;\n    }\n    const values = this.value<KeyValue[]>();\n\n    const colors = ColorUtils.predefinedRandomColors(values.length);\n    return values.map((value, index) => ({\n      ...value,\n      label: String(value.key),\n      color: colors[index],\n      highlight: colors[index],\n    }));\n  }\n\n  isLineValuesAndLabels(val: Stat['value']): val is LineValuesAndLabels {\n    return isArray((val as { values: unknown[] }).values);\n  }\n\n  @computed(\n    'chart.stat.value.values.length',\n    'chart.stat.value.{labels,opts}',\n    'chart.{name,timeRange}',\n    'isLineChart',\n    'lianaSession.currentProject.primaryColorOrDefault',\n  )\n  get lineValue(): {\n    errored: boolean;\n    labels: string[];\n    datasets: Dataset[];\n    opts: unknown;\n  } {\n    if (\n      !this.isLineChart\n      || !this.chart?.stat?.value\n      || (!isArray((this.chart?.stat?.value as { values: unknown }).values)\n        && !isArray(this.chart.stat.value))\n    ) {\n      return null;\n    }\n\n    if (this.isLineValuesAndLabels(this.chart.stat.value)) {\n      const colors = ColorUtils.predefinedRandomColors(this.chart.stat.value.values.length);\n      return {\n        labels: this.chart.stat.value.labels,\n        datasets: this.chart.stat.value.values.map((d, i) => ({\n          label: d.key,\n          data: d.values,\n          fill: false,\n          pointHitRadius: 6,\n          pointRadius: 1,\n          borderWidth: 1,\n          borderColor: colors[i],\n          backgroundColor: `#${window.tinycolor(colors[i]).lighten(35).toHex()}`,\n        })) as Dataset[],\n        opts: this.chart.stat.value.opts,\n        errored: undefined,\n      };\n    }\n    const values = this.value<LineValues>();\n    const data = {\n      labels: null,\n      datasets: [] as Dataset[],\n      opts: values.opts,\n      errored: false,\n    };\n\n    // TODO: Remove once agents having formated results are released and used\n    let momentFormat: string;\n    switch (this.chart.timeRange) {\n      case 'Week':\n        momentFormat = '[W]w';\n        break;\n      case 'Month':\n        momentFormat = 'MMM YY';\n        break;\n      case 'Year':\n        momentFormat = 'YYYY';\n        break;\n      default:\n        momentFormat = DEFAULT_DATEONLY_FORMAT;\n    }\n\n    try {\n      data.labels = values\n        .map((curr) => {\n          if (!curr.label) {\n            throw new Error(`\"${this.chart.name}\" Line Chart has invalid data.`);\n          }\n\n          // TODO: Remove once agents having formated results are released and used\n          // NOTICE: Make old agents labels good enough\n          if (curr.label?.length > 10) {\n            return moment(curr.label).format(momentFormat);\n          }\n\n          // NOTICE: Already formatted date cannot be localised\n          return curr.label;\n        })\n        .uniq();\n\n      const colorCode = this.lianaSession.currentProject.primaryColorOrDefault;\n      const colorBase = colorCode;\n      const colorPale = `#${window.tinycolor(colorCode).lighten(35).toHex()}`;\n\n      values\n        .map((curr) => {\n          if (!curr.values) {\n            throw new Error(`\"${this.chart.name}\" Line Chart has invalid data.`);\n          }\n\n          return curr.values.key;\n        })\n        .uniq()\n        .forEach((key) => {\n          const dataset = {\n            label: key,\n            data: this.findData(values, key),\n            fill: true,\n            pointHitRadius: 6,\n            pointRadius: 1,\n            borderWidth: 1,\n            borderColor: colorBase,\n            backgroundColor: colorPale,\n          };\n\n          data.datasets.push(dataset);\n        });\n      return {\n        ...data,\n        errored: undefined,\n      };\n    } catch (e) {\n      // Force re-render\n      const error = e as Error;\n      next(() => {\n        this.notificationBusinessService.createToastr(ToastrTypeEnum.Error, error.message);\n      });\n\n      return {\n        ...data,\n        errored: true,\n      };\n    }\n  }\n\n  @computed('chart.stat.value', 'isLeaderboardChart')\n  get leaderboardValue() {\n    if (!this.isLeaderboardChart || !this.chart?.stat?.value) {\n      return null;\n    }\n\n    return this.chart.stat.value;\n  }\n\n  @computed('chart.description.length')\n  get hasDescription() {\n    return this.chart?.description?.length;\n  }\n\n  get hasLineChartError() {\n    return !!this.lineValue?.errored;\n  }\n\n  async init() {\n    super.init();\n    this.defineDynamicProperties();\n\n    if (this.chart.canFetchData) {\n      if (this.lianaSession.isAuthenticated()) {\n        await this.fetchStat();\n      } else {\n        this.lianaSession.one(\n          'authenticationSucceeded',\n          this.fetchStat as unknown as (value: unknown) => void,\n        );\n      }\n    }\n    this.eventBus.on('chart.refresh', this.refreshChart);\n    this.eventBus.on('chart.saved', this.onChartSaved);\n  }\n\n  didInsertElement() {\n    super.didInsertElement();\n\n    schedule('afterRender', this, function () {\n      this.set('notifyElementSizeChangedContext', this.notifyElementSizeChanged.bind(this));\n      window.addEventListener('resize', this.notifyElementSizeChangedContext);\n      this.notifyElementSizeChanged();\n    });\n  }\n\n  willDestroyElement() {\n    window.removeEventListener('resize', this.notifyElementSizeChangedContext);\n    this.eventBus.off('chart.refresh', this.refreshChart);\n    this.eventBus.off('chart.saved', this.onChartSaved);\n    super.willDestroyElement();\n  }\n\n  notifyElementSizeChanged() {\n    this.set('elementSizeChanged', 1);\n  }\n\n  @action\n  async refreshChart(chart = null) {\n    if (chart && chart !== this.chart) return;\n\n    await this.fetchStat();\n  }\n\n  @action\n  async fetchStat(withRetries = false) {\n    this.chart.stat = null;\n\n    if (this.chart.needsRequest && !this.unsetContextType) {\n      const environment = this.lianaSession.currentEnvironment;\n      const values = (await this.statTriggerer.perform(environment, this.chart, withRetries)) as {\n        data: unknown;\n      };\n\n      if (values) {\n        const stat = this.store.push(this.store.normalize('stat', values.data));\n        await waitForNextRunLoop();\n        this.chart.stat = stat as unknown as Stat;\n      }\n    }\n  }\n\n  @action\n  async onChartSaved(chart) {\n    if (chart !== this.chart) {\n      return;\n    }\n    // NOTICE: Make a maximum of 4 attempts to prevent chart permission issue\n    // This function can only be called when the user can edit the layout (developer, editor or admin permission levels)\n    // This issue will be fix on every agent but people that does not use the fixed versions should still have a pleasant experience.\n    await this.fetchStat(true);\n  }\n\n  keyIsObject(key: Record<'id' | '_id', string> | string): key is Record<'id' | '_id', string> {\n    return key && typeof key === 'object';\n  }\n\n  findData(value: LineValues, key: string) {\n    return value\n      .filter((d) => {\n        if (this.keyIsObject(d.values?.key)) {\n          return (d.values?.key.id || d.values?.key?._id) === key;\n        }\n        return d.values?.key === key;\n      })\n      .map((d) => d.values?.value);\n  }\n\n  defineDynamicProperties() {\n    defineProperty(\n      this,\n      'percentageValue',\n      computed(\n        'chart.denominatorChart.stat.value.countCurrent',\n        'chart.numeratorChart.stat.value.countCurrent',\n        'chart.apiRoute',\n        'chart.stat.value',\n        {\n          get() {\n            const component = this as ChartChartRenderComponent;\n            if (component.chart?.apiRoute) {\n              return `${component.chart.stat?.value as number}`;\n            }\n\n            const valueNumerator: number =\n              (component.chart?.numeratorChart?.stat?.value as Counts)?.countCurrent\n              || (component.chart?.numeratorChart?.stat?.value as number);\n            const valueDenominator: number =\n              (component.chart?.denominatorChart?.stat?.value as Counts)?.countCurrent\n              || (component.chart?.denominatorChart?.stat?.value as number);\n\n            if (valueNumerator && valueDenominator) {\n              return Number((valueNumerator / valueDenominator).toFixed(2)) * 100;\n            }\n            return '-';\n          },\n        },\n      ),\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-chart-render-header\\\">\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName={{this.chartIcon}}\\n    @size=\\\"micro\\\"\\n    class=\\\"c-chart-render__icon\\\"\\n  />\\n  {{#if @isInWorkspace}}\\n    <h3 class=\\\"c-chart-render__title\\\">\\n      {{templating-injector @chart.name templatingHelper=@templatingHelper}}\\n    </h3>\\n  {{else}}\\n    <h3 class=\\\"c-chart-render__title\\\" title={{@chart.name}}>{{@chart.name}}</h3>\\n  {{/if}}\\n  {{#if (and @editChartAction (is-layout-editor))}}\\n    <Shared::BetaIconButton\\n      @color=\\\"editor\\\"\\n      @icon=\\\"settings\\\"\\n      @size=\\\"custom\\\"\\n      class=\\\"c-chart-render__settings\\\"\\n      {{on \\'click\\' (fn @editChartAction @chart)}}\\n    />\\n  {{else}}\\n    {{#if this.valueVariation}}\\n      <span\\n        class=\\\"c-chart-render__growth\\n          {{if\\n            (lt this.variation.countPrevious this.variation.countCurrent)\\n            \\'c-chart-render__growth--positive\\'\\n          }}\\n          {{if\\n            (gt this.variation.countPrevious this.variation.countCurrent)\\n            \\'c-chart-render__growth--negative\\'\\n          }}\\\"\\n      >\\n        {{this.valueVariation}}%\\n      </span>\\n    {{/if}}\\n  {{/if}}\\n</div>\\n\\n<p\\n  class=\\\"c-chart-render__description\\n    {{if\\n      this.isObjectiveWithDescription\\n      \\'c-chart-render__description--objective-with-description\\'\\n    }}\\\"\\n  title={{@chart.description}}\\n>\\n  {{@chart.description}}\\n</p>\\n\\n<div class={{get-classes-with-modifiers \\'l-chart-render-body\\' empty-state=@unsetContextType}}>\\n  {{#if\\n    (or\\n      (and this.isLiveQuery (cannot \\'access to liveQuery\\'))\\n      (and this.isSmartChart (cannot \\'access to smartCharts\\'))\\n    )\\n  }}\\n    <Chart::ChartUpgradeToPro @featureName={{if this.isSmartChart \\'smartCharts\\' \\'liveQuery\\'}} />\\n  {{else}}\\n    {{#if @unsetContextType}}\\n      <span class=\\\"c-chart-render__empty-state-description\\\">\\n        {{#if this.isContextUnsetTimerange}}\\n          Select a timeframe to render this chart.\\n        {{else}}\\n          Select the required record(s) or value(s) to render this chart.\\n        {{/if}}\\n      </span>\\n    {{else if this.hasNoValue}}\\n      {{#if this.displayError}}\\n        <Chart::ChartError />\\n      {{/if}}\\n    {{else}}\\n      {{#if this.isValueChart}}\\n        <div class=\\\"c-chart-render__single-value\\\">\\n          {{#if @chart.hasWidgetPrice}}\\n            {{this.priceFormated}}\\n          {{else if this.valueValue}}\\n            <Chart::ChartAnimateNumber @value={{this.valueValue}} />\\n          {{else}}\\n            0\\n          {{/if}}\\n        </div>\\n      {{else if this.isPieChart}}\\n        {{#if this.hasPieChartValue}}\\n          <Chart::ChartPie @data={{this.pieValue}} />\\n        {{else}}\\n          <Chart::ChartEmpty @icon={{if (gt @chart.displaySettings.height 1) \\'pie_chart\\'}} />\\n        {{/if}}\\n      {{else if this.isObjectiveChart}}\\n        <Chart::ChartObjective @chart={{@chart}} />\\n      {{else if this.isLineChart}}\\n        {{#if this.hasLineChartValue}}\\n          <Chart::ChartLine @data={{this.lineValue}} @chartConfig={{@chart}} />\\n        {{else if this.hasLineChartError}}\\n          <Chart::ChartError />\\n        {{else}}\\n          <Chart::ChartEmpty @icon={{if (gt @chart.displaySettings.height 1) \\'show_chart\\'}} />\\n        {{/if}}\\n      {{else if this.isPercentageChart}}\\n        <div class=\\\"c-chart-render__single-value\\\">\\n          {{#if this.percentageValue}}\\n            <Chart::ChartAnimateNumber @value={{this.percentageValue}} />\\n            %\\n          {{else}}\\n            0%\\n          {{/if}}\\n        </div>\\n      {{else if this.isLeaderboardChart}}\\n        <Chart::ChartLeaderboard\\n          @leaderboardValue={{this.leaderboardValue}}\\n          @hasWidgetPrice={{@chart.hasWidgetPrice}}\\n          @aggregateField={{@chart.aggregateField}}\\n          @height={{@chart.displaySettings.height}}\\n          class={{if this.hasDescription \\'c-leaderboard--has-description\\'}}\\n        />\\n      {{else if this.isSmartChart}}\\n        <Chart::ChartSmart @chart={{@chart}} @record={{@record}} />\\n      {{/if}}\\n    {{/if}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/chart/chart-render/template.hbs' });\n","import { getOwner } from '@ember/application';\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Model from '@ember-data/model';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Chart from 'client/data/models/chart';\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\n@validateArguments\nexport default class ChartChartSmartComponent extends Component {\n  @argument(Chart) chart;\n  @argument(optional(Model)) record;\n\n  @alias('args.chart.registryName') componentName;\n\n  @service awsCodeDownloader;\n  @service eventBus;\n\n  @tracked isLoaded = false;\n\n  constructor(...args) {\n    super(...args);\n\n    this.setup();\n    this.eventBus.on('chart.refresh', this.refreshChart);\n    this.eventBus.on('chart.saved', this.handleChartSaved);\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.eventBus.off('chart.refresh', this.refreshChart);\n    this.eventBus.off('chart.saved', this.handleChartSaved);\n  }\n\n  async setup() {\n    this.isLoaded = false;\n    if (!this.componentName) {\n      return;\n    }\n\n    const container = getOwner(this);\n    if (!container.hasRegistration(`component:${this.componentName}`)) {\n      await this.awsCodeDownloader.download(this.args.chart);\n    }\n\n    this.isLoaded = true;\n  }\n\n  @action\n  async handleChartSaved(chart) {\n    if (chart !== this.args.chart) return;\n\n    this.isLoaded = false;\n    await this.awsCodeDownloader.download(this.args.chart, false);\n    this.isLoaded = true;\n  }\n\n  @action\n  async refreshChart(chart) {\n    if (chart && chart !== this.args.chart) return;\n\n    this.isLoaded = false;\n\n    await waitForNextRunLoop();\n\n    this.isLoaded = true;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isLoaded}}\\n  {{component this.componentName record=@record}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/chart/chart-smart/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class ChartChartUpgradeToProComponent extends Component {\n  /** @type {import('client/legacy/services/current-user').default} */\n  @service currentUser;\n  @service planService;\n  @service router;\n\n  @argument(String) featureName;\n\n  @action\n  async redirectToBilling() {\n    const requiredPlan = await this.planService.findFirstPlanWithFeature(this.args.featureName);\n\n    await this.router.transitionTo('project.project-settings.billing.upgrade', {\n      queryParams: {\n        plan: requiredPlan?.type,\n      },\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-chart-to-pro\\\" ...attributes>\\n  <div class=\\\"c-chart-to-pro__icon-container\\\">\\n    <Shared::DataDisplay::BetaIcon\\n      @class=\\\"c-chart-to-pro__icon\\\"\\n      @iconName=\\\"block\\\"\\n      @size=\\\"small\\\"\\n      @isFaIcon={{true}}\\n    />\\n  </div>\\n  <span class=\\\"c-chart-to-pro__description\\\">\\n    This chart cannot be displayed with your current plan. Please\\n    {{#if this.currentUser.canEditProject}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"link-danger\\\"\\n        @text=\\\"upgrade\\\"\\n        @action={{fn this.redirectToBilling @featureName}}\\n        @textClass=\\\"c-chart-to-pro__link\\\"\\n        @async={{false}}\\n        data-test-button=\\\"upgrade-button\\\"\\n        data-test-chart-upgrade-to-pro-upgrade\\n      />\\n      to view it.\\n    {{else}}\\n      ask your team admin about upgrading your plan.\\n    {{/if}}\\n  </span>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/chart/chart-upgrade-to-pro/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { not } from '@ember/object/computed';\nimport { debounce } from '@ember/runloop';\nimport { tagName } from '@ember-decorators/component';\n\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('')\nexport default class CheckExistenceInputComponent extends Component {\n  propTypes = {\n    value: PropTypes.string.isRequired,\n    checkExistenceFunction: PropTypes.func.isRequired,\n    onLoadingChange: PropTypes.func,\n    previousValue: PropTypes.string,\n    inputClass: PropTypes.string,\n    placeholder: PropTypes.string,\n    autofocus: PropTypes.bool,\n  };\n\n  valueAlreadyExists = false;\n  isLoading = false;\n  @not('isLoading') isNotLoading;\n\n  @computed('isNotLoading', 'isDifferentInitValue', 'value')\n  get displayCaption() {\n    return this.isNotLoading && this.isDifferentInitValue && this.value;\n  }\n\n  @computed('value', 'initValue')\n  get isDifferentInitValue() {\n    return this.value !== this.initValue;\n  }\n\n  @computed('isDifferentInitValue', 'isLoading', 'value', 'valueAlreadyExists')\n  get inputState() {\n    if (!this.isDifferentInitValue || !this.value) {\n      return 'empty';\n    }\n    if (this.isLoading) {\n      return 'loading';\n    }\n    if (this.valueAlreadyExists) {\n      return 'error';\n    }\n    return 'success';\n  }\n\n  @computed('valueAlreadyExists')\n  get caption() {\n    return `is ${this.valueAlreadyExists ? 'not' : ''} available`;\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    if (this.value === null || this.value === undefined) {\n      throw new MissingRequiredPropertyError('value');\n    }\n    if (!this.checkExistenceFunction) {\n      throw new MissingRequiredPropertyError('checkExistenceFunction');\n    }\n    this.initValue = this.value;\n  }\n\n  @action\n  onInputChange() {\n    this.setIsLoading(true);\n    debounce(this, this.checkInputValueExistence, 500);\n  }\n\n  setIsLoading(newIsLoading) {\n    const oldIsLoading = this.isLoading;\n    this.set('isLoading', newIsLoading);\n    if (this.onLoadingChange && oldIsLoading !== this.isLoading) {\n      this.onLoadingChange(newIsLoading);\n    }\n  }\n\n  async checkInputValueExistence() {\n    const valueExists = await this.checkExistenceFunction(this.value);\n    this.set('valueAlreadyExists', valueExists);\n    this.setIsLoading(false);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaInput\\n  @value={{@value}}\\n  @placeholder={{@placeholder}}\\n  @autofocus={{@autofocus}}\\n  @onInput={{this.onInputChange}}\\n  class={{@inputClass}}\\n/>\\n{{#unless (eq this.inputState \\'empty\\')}}\\n  <Feedback::BetaStatusLabel\\n    class=\\\"c-check-existence-input__status-label\\\"\\n    @type={{this.inputState}}\\n  >\\n    {{#if this.displayCaption}}\\n      <b>\\n        {{@value}}\\n      </b>\\n      {{this.caption}}\\n    {{else}}\\n      Loading ...\\n    {{/if}}\\n  </Feedback::BetaStatusLabel>\\n{{/unless}}\\n', { moduleName: 'client/legacy/pods/components/check-existence-input/template.hbs' });\n","import type ActionFeatureService from 'client/features/action/services/feature';\nimport type ActionFeatureState from 'client/features/action/state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class SmartActionApprovalConfirmationModalComponent extends Component {\n  @service('feature/action') actionFeatureService: ActionFeatureService;\n  @service('feature/action/state') actionFeatureState: ActionFeatureState;\n\n  @action\n  async requestApproval() {\n    await this.actionFeatureService.requestApproval();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Collaboration::CollaborationApprovalCreateModal\\n  @isModalOpen={{true}}\\n  @skipConfirmation={{this.actionFeatureState.mustSkipConfirmation}}\\n  @onSkipConfirmationChange={{fn (mut this.actionFeatureState.mustSkipConfirmation)}}\\n  @onHideModal={{this.actionFeatureService.closeRequestApprovalModal}}\\n  @action={{this.requestApproval}}\\n  data-test-smart-action-approval-confirmation-modal\\n/>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval-confirmation-modal/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport ActionApprovalModel from 'client/data/models/action-approval';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  openDetails: (approval: ActionApprovalModel) => Promise<void>;\n  approvals: ActionApprovalModel[];\n}\n\n@validateArguments\nexport default class CollaborationApprovalActionApprovalsCreatedComponent extends Component<Args> {\n  static propTypes = {\n    openDetails: PropTypes.func.isRequired,\n    approvals: PropTypes.arrayOf(PropTypes.instanceOf(ActionApprovalModel)).isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaTable\\n  @columns={{array \\'Action\\' \\'Collection\\' \\'Resource\\' \\'Creation date\\' \\'Status\\' \\'\\'}}\\n  @columnsClass=\\\"c-collaboration-approval-actions-approvals__columns\\\"\\n  @rowClass=\\\"c-collaboration-approval-actions-approvals__row\\\"\\n  @rows={{@approvals}}\\n  @rowClick={{@openDetails}}\\n  @alignColumnLeft={{true}}\\n  @sticky={{true}}\\n  @isScrollable={{true}}\\n  @embedded={{true}}\\n  class=\\\"c-collaboration-approval-actions-approvals\\\"\\n  ...attributes\\n  data-test-collaboration-approvals-created-table\\n  as |RowColumn approval|\\n>\\n  <RowColumn\\n    class=\\\"c-collaboration-approval-actions-approvals__row-column-action\\\"\\n    data-test-row-column=\\\"Action\\\"\\n  >\\n    <Collaboration::Approval::ActionName\\n      @actionDisplayName={{approval.actionDisplayName}}\\n      @isOrphaned={{approval.isOrphaned}}\\n    />\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Collection\\\">\\n    {{approval.collectionDisplayName}}\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Resource\\\">\\n    <Feature::Approval::ReferenceField\\n      @collection={{approval.collection}}\\n      @recordIds={{approval.recordIds}}\\n    />\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Creation date\\\">\\n    <DataDisplay::WithTooltip @displayTooltip={{moment-format approval.createdAt \\'LLL\\'}}>\\n      <Shared::DataDisplay::Date @value={{approval.createdAt}} @relativeFormatWhen=\\\"is today\\\" />\\n    </DataDisplay::WithTooltip>\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Status\\\">\\n    <Collaboration::Approval::Status @approval={{approval}} />\\n  </RowColumn>\\n\\n  <RowColumn\\n    class=\\\"c-collaboration-approval-actions-approvals__row--open-details\\\"\\n    data-test-row-column=\\\"Open\\\"\\n  >\\n    <Collaboration::Approval::OpenButton @approval={{approval}} @openDetails={{@openDetails}} />\\n  </RowColumn>\\n</Shared::BetaTable>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/action-approvals/created/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport ActionApprovalModel from 'client/data/models/action-approval';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  openDetails: (approval: ActionApprovalModel) => Promise<void>;\n  approvals: ActionApprovalModel[];\n}\n\n@validateArguments\nexport default class CollaborationApprovalActionApprovalsHistoryComponent extends Component<Args> {\n  static propTypes = {\n    openDetails: PropTypes.func.isRequired,\n    approvals: PropTypes.arrayOf(PropTypes.instanceOf(ActionApprovalModel)).isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaTable\\n  @columns={{array \\'Action\\' \\'Collection\\' \\'Resource\\' \\'Creation date\\' \\'Closing date\\' \\'Status\\' \\' \\'}}\\n  @columnsClass=\\\"c-collaboration-approval-actions-approvals__columns\\\"\\n  @rowClass=\\\"c-collaboration-approval-actions-approvals__row\\\"\\n  @rows={{@approvals}}\\n  @rowClick={{@openDetails}}\\n  @alignColumnLeft={{true}}\\n  @sticky={{true}}\\n  @isScrollable={{true}}\\n  @embedded={{true}}\\n  class=\\\"c-collaboration-approval-actions-approvals\\\"\\n  data-test-invoices-table\\n  ...attributes\\n  as |RowColumn approval|\\n>\\n  <RowColumn\\n    class=\\\"c-collaboration-approval-actions-approvals__row-column-action\\\"\\n    data-test-row-column=\\\"Action\\\"\\n  >\\n    <Collaboration::Approval::ActionName\\n      @actionDisplayName={{approval.actionDisplayName}}\\n      @isOrphaned={{approval.isOrphaned}}\\n    />\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Collection\\\">\\n    {{approval.collectionDisplayName}}\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Resource\\\">\\n    <Feature::Approval::ReferenceField\\n      @collection={{approval.collection}}\\n      @recordIds={{approval.recordIds}}\\n    />\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Creation date\\\">\\n    <DataDisplay::WithTooltip @displayTooltip={{moment-format approval.createdAt \\'LLL\\'}}>\\n      <Shared::DataDisplay::Date @value={{approval.createdAt}} @relativeFormatWhen=\\\"is today\\\" />\\n    </DataDisplay::WithTooltip>\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Closing date\\\">\\n    <DataDisplay::WithTooltip @displayTooltip={{moment-format approval.closedAt \\'LLL\\'}}>\\n      <Shared::DataDisplay::Date @value={{approval.closedAt}} @relativeFormatWhen=\\\"is today\\\" />\\n    </DataDisplay::WithTooltip>\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Status\\\">\\n    <Collaboration::Approval::Status @approval={{approval}} />\\n  </RowColumn>\\n\\n  <RowColumn\\n    class=\\\"c-collaboration-approval-actions-approvals__row--open-details\\\"\\n    data-test-row-column=\\\"Open\\\"\\n  >\\n    <Collaboration::Approval::OpenButton @approval={{approval}} @openDetails={{@openDetails}} />\\n  </RowColumn>\\n</Shared::BetaTable>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/action-approvals/history/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport ActionApprovalModel from 'client/data/models/action-approval';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  openDetails: (approval: ActionApprovalModel) => Promise<void>;\n  approvals: ActionApprovalModel[];\n}\n\n@validateArguments\nexport default class CollaborationApprovalActionApprovalsToReviewComponent extends Component<Args> {\n  static propTypes = {\n    openDetails: PropTypes.func.isRequired,\n    approvals: PropTypes.arrayOf(PropTypes.instanceOf(ActionApprovalModel)).isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaTable\\n  @columns={{array \\'Action\\' \\'Collection\\' \\'Resource\\' \\'Requester\\' \\'Team\\' \\'Creation date\\' \\'Status\\' \\'\\'}}\\n  @columnsClass=\\\"c-collaboration-approval-actions-approvals__columns\\\"\\n  @rowClass=\\\"c-collaboration-approval-actions-approvals__row\\\"\\n  @rows={{@approvals}}\\n  @rowClick={{@openDetails}}\\n  @alignColumnLeft={{true}}\\n  @sticky={{true}}\\n  @embedded={{true}}\\n  class=\\\"c-collaboration-approval-actions-approvals\\\"\\n  data-test-invoices-table\\n  ...attributes\\n  as |RowColumn approval|\\n>\\n  <RowColumn\\n    class=\\\"c-collaboration-approval-actions-approvals__row-column-action\\\"\\n    data-test-row-column=\\\"Action\\\"\\n  >\\n    <Collaboration::Approval::ActionName\\n      @actionDisplayName={{approval.actionDisplayName}}\\n      @isOrphaned={{approval.isOrphaned}}\\n    />\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Collection\\\">\\n    {{approval.collectionDisplayName}}\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Resource\\\">\\n    <Feature::Approval::ReferenceField\\n      @collection={{approval.collection}}\\n      @recordIds={{approval.recordIds}}\\n    />\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Requester\\\">\\n    <Picture::AvatarWithName @user={{approval.requester}} @size=\\\"small\\\" />\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Team\\\">\\n    {{approval.team.name}}\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Creation date\\\">\\n    <DataDisplay::WithTooltip @displayTooltip={{moment-format approval.createdAt \\'LLL\\'}}>\\n      <Shared::DataDisplay::Date @value={{approval.createdAt}} @relativeFormatWhen=\\\"is today\\\" />\\n    </DataDisplay::WithTooltip>\\n  </RowColumn>\\n\\n  <RowColumn data-test-row-column=\\\"Status\\\">\\n    <Collaboration::Approval::Status @approval={{approval}} />\\n  </RowColumn>\\n\\n  <RowColumn\\n    class=\\\"c-collaboration-approval-actions-approvals__row--open-details\\\"\\n    data-test-row-column=\\\"Open\\\"\\n  >\\n    <Collaboration::Approval::OpenButton @approval={{approval}} @openDetails={{@openDetails}} />\\n  </RowColumn>\\n</Shared::BetaTable>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/action-approvals/to-review/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport ActionApprovalModel from 'client/data/models/action-approval';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  openDetails: (approval: ActionApprovalModel) => Promise<void>;\n  approvals: ActionApprovalModel[];\n}\n\n@validateArguments\nexport default class CollaborationApprovalActionApprovalsWarningComponent extends Component<Args> {\n  static propTypes = {\n    openDetails: PropTypes.func.isRequired,\n    approvals: PropTypes.arrayOf(PropTypes.instanceOf(ActionApprovalModel)).isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-collaboration-approval-actions-approvals\\\" ...attributes>\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"warning\\\"\\n    class=\\\"c-collaboration-approval-actions-approvals-warning__notification\\\"\\n  >\\n    <b>Attention needed</b><br />\\n    Due to unexpected circumstances occurring during their execution, we cannot determine whether or\\n    not these actions were executed successfully following their approval.\\n    <br />\\n    Please click to open each case below to declare whether the action was successfully executed or\\n    not according to your data or logs investigations.\\n  </Shared::Feedback::Notification::NotificationInApp>\\n\\n  <Shared::BetaTable\\n    @columns={{array\\n      \\'Action\\'\\n      \\'Collection\\'\\n      \\'Resource\\'\\n      \\'Requester\\'\\n      \\'Approver\\'\\n      \\'Last update at\\'\\n      \\'Status\\'\\n      \\'\\'\\n    }}\\n    @columnsClass=\\\"c-collaboration-approval-actions-approvals__columns\\\"\\n    @rowClass=\\\"c-collaboration-approval-actions-approvals__row\\\"\\n    @rows={{@approvals}}\\n    @rowClick={{@openDetails}}\\n    @alignColumnLeft={{true}}\\n    @sticky={{true}}\\n    @isScrollable={{true}}\\n    class=\\\"c-collaboration-approval-actions-approvals-warning__table\\\"\\n    data-test-invoices-table\\n    as |RowColumn approval|\\n  >\\n    <RowColumn\\n      class=\\\"c-collaboration-approval-actions-approvals__row-column-action\\\"\\n      data-test-row-column=\\\"Action\\\"\\n    >\\n      <Collaboration::Approval::ActionName\\n        @actionDisplayName={{approval.actionDisplayName}}\\n        @isOrphaned={{approval.isOrphaned}}\\n      />\\n    </RowColumn>\\n\\n    <RowColumn data-test-row-column=\\\"Collection\\\">\\n      {{approval.collectionDisplayName}}\\n    </RowColumn>\\n\\n    <RowColumn data-test-row-column=\\\"Resource\\\">\\n      <Feature::Approval::ReferenceField\\n        @collection={{approval.collection}}\\n        @recordIds={{approval.recordIds}}\\n      />\\n    </RowColumn>\\n\\n    <RowColumn data-test-row-column=\\\"Requester\\\">\\n      <Picture::AvatarWithName @user={{approval.requester}} @size=\\\"small\\\" />\\n    </RowColumn>\\n\\n    <RowColumn data-test-row-column=\\\"Approver\\\">\\n      <Picture::AvatarWithName @user={{approval.approver}} @size=\\\"small\\\" />\\n    </RowColumn>\\n\\n    <RowColumn data-test-row-column=\\\"Last update at\\\">\\n      <DataDisplay::WithTooltip @displayTooltip={{moment-format approval.updatedAt \\'LLL\\'}}>\\n        <Shared::DataDisplay::Date @value={{approval.updatedAt}} @relativeFormatWhen=\\\"is today\\\" />\\n      </DataDisplay::WithTooltip>\\n    </RowColumn>\\n\\n    <RowColumn data-test-row-column=\\\"Status\\\">\\n      <Collaboration::Approval::Status @approval={{approval}} />\\n    </RowColumn>\\n\\n    <RowColumn\\n      class=\\\"c-collaboration-approval-actions-approvals__row--open-details\\\"\\n      data-test-row-column=\\\"Open\\\"\\n    >\\n      <Collaboration::Approval::OpenButton @approval={{approval}} @openDetails={{@openDetails}} />\\n    </RowColumn>\\n  </Shared::BetaTable>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/action-approvals/warning/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @isOrphaned}}\\n  <div class=\\\"c-collaboration-approval-action-name__orphaned\\\" ...attributes>\\n    {{#if @actionDisplayName}}\\n      {{@actionDisplayName}}\\n      (action removed)\\n    {{else}}\\n      Action removed\\n    {{/if}}\\n  </div>\\n{{else}}\\n  <div class=\\\"c-collaboration-approval-action-name\\\" ...attributes>\\n    {{@actionDisplayName}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/action-name/template.hbs' });\n","import type { CustomAsyncHasMany } from 'custom/utils';\n\nimport { action } from '@ember/object';\nimport { later } from '@ember/runloop';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport ActionApprovalsCommentModel from 'client/data/models/action-approvals-comment';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  comments: CustomAsyncHasMany<ActionApprovalsCommentModel>;\n  scrollBar: Element;\n}\n\n@validateArguments\nexport default class CollaborationApprovalCommentsComponent extends Component<Args> {\n  static propTypes = {\n    comments: PropTypes.arrayOf(PropTypes.instanceOf(ActionApprovalsCommentModel)).isRequired,\n    scrollBar: PropTypes.object.isRequired,\n  };\n\n  @tracked private isLatestCommentAlreadySeen = false;\n\n  // This is used to know if the scrollHeight is loaded to avoid the flickering\n  // of the latest comment button\n  @tracked private isScrollBarLoaded = false;\n\n  get displayLatestCommentButton() {\n    if (this.isScrollBarLoaded === false) return false;\n    // When there is no comment or comments are not loaded we don't display the button\n    if (this.args.comments.isPending || this.args.comments.length === 0) return false;\n\n    // When the latest comment have been seen we don't display the button\n    return !this.isLatestCommentAlreadySeen;\n  }\n\n  @action\n  setIsLatestCommentAlreadySeen() {\n    const currentScrollBarHeight =\n      this.args.scrollBar.scrollHeight - this.args.scrollBar.clientHeight;\n\n    if (this.args.scrollBar.scrollTop >= currentScrollBarHeight - 50) {\n      this.isLatestCommentAlreadySeen = true;\n    }\n  }\n\n  onScroll() {\n    this.setIsLatestCommentAlreadySeen();\n  }\n\n  @action\n  didCommentsInsert() {\n    this.args.scrollBar.addEventListener('scroll', this.onScroll.bind(this));\n    // We need to wait for the comments to be loaded before setting the isLatestCommentAlreadySeen\n    // otherwise the scrollHeight will be wrong. It's a workaround because the scrollHeight is not\n    // updated when the comments are loaded.\n    later(() => {\n      this.setIsLatestCommentAlreadySeen();\n      this.isScrollBarLoaded = true;\n    }, 1);\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.args.scrollBar.removeEventListener('scroll', this.onScroll.bind(this));\n  }\n\n  @action\n  scrollToBottom() {\n    this.args.scrollBar.scrollTop = this.args.scrollBar.scrollHeight;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-collaboration-approval-comments\\\" ...attributes>\\n  <div class=\\\"c-collaboration-approval-comments__title\\\" data-test-approval-comments-title>\\n    Comments\\n    {{#if (gt @comments.length 0)}}\\n      ({{@comments.length}})\\n    {{/if}}\\n  </div>\\n\\n  {{#unless @comments.isPending}}\\n    <div class=\\\"c-collaboration-approval-comments__content\\\">\\n      {{yield}}\\n\\n      {{did-insert this.didCommentsInsert}}\\n    </div>\\n  {{/unless}}\\n\\n  {{#if this.displayLatestCommentButton}}\\n    <div class=\\\"c-collaboration-approval-comments__latest-comment-button-container\\\">\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @text=\\\"Latest comment\\\"\\n        @async={{false}}\\n        class=\\\"c-collaboration-approval-comments__latest-comment-button-container__button\\\"\\n        @isIconAfterText={{true}}\\n        @iconName=\\\"keyboard_arrow_down\\\"\\n        @action={{this.scrollToBottom}}\\n        data-test-approval-comments-latest-comment-button\\n      />\\n      <span class=\\\"c-collaboration-approval-comments__latest-comment-button-container__blur\\\"></span>\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/comments/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport ActionApprovalModel from 'client/data/models/action-approval';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  approval: ActionApprovalModel;\n  approve: () => Promise<void>;\n  reject: () => Promise<void>;\n  failed: () => Promise<void>;\n  ignore: () => Promise<void>;\n  sendMessageAction: (content: string) => Promise<void>;\n}\n\n@validateArguments\nexport default class CollaborationApprovalDetailsComponent extends Component<Args> {\n  static propTypes = {\n    actionApproval: PropTypes.instanceOf(ActionApprovalModel).isRequired,\n    approve: PropTypes.func.isRequired,\n    reject: PropTypes.func.isRequired,\n    failed: PropTypes.func.isRequired,\n    ignore: PropTypes.func.isRequired,\n    sendMessageAction: PropTypes.func.isRequired,\n  };\n\n  get scrollBar() {\n    return document.querySelector('.c-collaboration-approval-details__scrollable-area');\n  }\n\n  @action\n  scrollToBottom() {\n    // Source: https://stackoverflow.com/a/270628/978690\n    this.scrollBar.scrollTop = this.scrollBar.scrollHeight + 60;\n  }\n\n  @action\n  async sendComment(content: string) {\n    await this.args.sendMessageAction(content);\n    this.scrollToBottom();\n  }\n}\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  reject: () => Promise<void>;\n}\n\n@validateArguments\nexport default class CollaborationApprovalDetailsOrphanedActionsComponent extends Component<Args> {\n  static propTypes = {\n    reject: PropTypes.func.isRequired,\n  };\n\n  @tracked displayRejectModal = false;\n\n  @action\n  openRejectModal() {\n    this.displayRejectModal = true;\n  }\n\n  @action\n  hideModal() {\n    this.displayRejectModal = false;\n  }\n\n  @action\n  async rejectAction() {\n    await this.args.reject();\n    this.hideModal();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-orphaned-actions\\\" ...attributes>\\n  <div class=\\\"c-orphaned-actions__buttons\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"danger\\\"\\n      @text=\\\"Reject\\\"\\n      @action={{this.openRejectModal}}\\n      @withoutCallback={{true}}\\n      class=\\\"c-orphaned-actions__button-full-width\\\"\\n      data-test-orphaned-actions-reject\\n    />\\n  </div>\\n</div>\\n\\n<Collaboration::CollaborationApprovalConfirmationModal\\n  @isModalOpen={{this.displayRejectModal}}\\n  @action={{this.rejectAction}}\\n  @onHideModal={{this.hideModal}}\\n  @isApprove={{false}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/details/orphaned-actions/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-collaboration-approval-details\\\" ...attributes>\\n  <div class=\\\"c-collaboration-approval-details__scrollable-area\\\">\\n    <Collaboration::Approval::Infos @approval={{@actionApproval}} />\\n\\n    <Collaboration::Approval::Timeline @approval={{@actionApproval}} />\\n\\n    <Collaboration::Approval::Comments\\n      @comments={{@actionApproval.comments}}\\n      @scrollBar={{this.scrollBar}}\\n    >\\n      <Feature::Chat::Thread @size=\\\"small\\\" @messages={{@actionApproval.comments}} />\\n    </Collaboration::Approval::Comments>\\n  </div>\\n\\n  <div class=\\\"c-collaboration-approval-details__bottom\\\">\\n    <Feature::Chat::Input\\n      @size=\\\"small\\\"\\n      @submitAction={{this.sendComment}}\\n      @mentionables={{@actionApproval.collection.mentionables}}\\n      data-test-approval-messages\\n    >\\n      <:mentionable-item as |user|>\\n        <Picture::AvatarWithName @user={{user}} @size=\\\"small\\\" />\\n      </:mentionable-item>\\n    </Feature::Chat::Input>\\n\\n    {{#if (and @actionApproval.isPending @actionApproval.canApprove)}}\\n      <Collaboration::CollaborationActions\\n        @approve={{@approve}}\\n        @reject={{@reject}}\\n        data-test-approval-pending-actions\\n      />\\n    {{else if @actionApproval.isWarning}}\\n      <Collaboration::CollaborationActionsWarning\\n        @failed={{@failed}}\\n        @ignore={{@ignore}}\\n        data-test-approval-warning-actions\\n      />\\n    {{else if (and @actionApproval.isPending @actionApproval.isOrphaned)}}\\n      <Collaboration::Approval::Details::OrphanedActions\\n        @reject={{@reject}}\\n        data-test-approval-orphaned-actions\\n      />\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/details/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  exportApprovalLogs: (from: string, to: string) => Promise<void>;\n}\n\n@validateArguments\nexport default class CollaborationApprovalExportComponent extends Component<Args> {\n  @tracked displayingExportModal = false;\n\n  static propTypes = {\n    exportApprovalLogs: PropTypes.func.isRequired,\n  };\n\n  @action\n  async exportApproval(from: string, to: string) {\n    await this.args.exportApprovalLogs(from, to);\n    this.displayingExportModal = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-collaboration-approval-export\\\" ...attributes>\\n  <Shared::Button::BetaButton\\n    @type=\\\"ghost\\\"\\n    @iconName=\\\"save_alt\\\"\\n    @iconSize=\\\"micro\\\"\\n    @text=\\\"Export\\\"\\n    @async={{false}}\\n    @action={{fn (mut this.displayingExportModal) true}}\\n    data-test-export-open-modal\\n  />\\n  {{#if this.displayingExportModal}}\\n    <ModalExportsFromTo\\n      @title=\\\"Export your approval history\\\"\\n      @onClose={{fn (mut this.displayingExportModal) false}}\\n      @exports={{this.exportApproval}}\\n    >\\n      <p>To export your approval history, please select a date range.</p>\\n      <p>You will receive the export by email.</p>\\n    </ModalExportsFromTo>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/export/template.hbs' });\n","import type { RangeDate } from 'client/shared/components/form/date-range-picker/component';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  filters: {\n    label: string;\n    value: unknown;\n    configuration: unknown; // depends on the configuration name\n  }[];\n  applyFilters: (filtersValue: Record<string, never>) => void;\n  discardFilters: () => void;\n}\n\n@validateArguments\nexport default class CollaborationApprovalFiltersComponent extends Component<Args> {\n  static propTypes = {\n    filters: PropTypes.arrayOf(\n      PropTypes.shape({\n        label: PropTypes.string.isRequired,\n        value: PropTypes.any,\n        configuration: PropTypes.any,\n      }),\n    ).isRequired,\n    applyFilters: PropTypes.func.isRequired,\n    discardFilters: PropTypes.func.isRequired,\n  };\n\n  @tracked filterModalIsOpen = false;\n\n  get activeFilterCount() {\n    return this.args.filters.filter(({ value }) => {\n      if (Array.isArray(value) && (value as unknown[]).length > 0) {\n        return true;\n      }\n      return Object.values(value).some((elem) => elem);\n    }).length;\n  }\n\n  @action\n  openFilters() {\n    this.filterModalIsOpen = true;\n  }\n\n  @action\n  closeFilters() {\n    this.filterModalIsOpen = false;\n  }\n\n  @action\n  handleDateRangeChange(filter: Args['filters'][number], value: RangeDate | null) {\n    filter.value = !value ? { from: null, to: null } : value;\n  }\n\n  @action\n  applyFilters() {\n    this.filterModalIsOpen = false;\n\n    const filtersValue = this.args.filters.reduce((acc, filter) => {\n      acc[filter.label] = filter.value;\n\n      return acc;\n    }, {});\n\n    this.args.applyFilters(filtersValue);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Filter::Dropdown\\n  @filtersCount={{this.activeFilterCount}}\\n  @applyFilters={{this.applyFilters}}\\n  @discardFilters={{@discardFilters}}\\n>\\n  <:filters>\\n    {{#each @filters as |filter|}}\\n\\n      <div class=\\\"c-collaboration-approval-filters__filter\\\">\\n        <span class=\\\"c-collaboration-approval-filters__filter__label\\\">{{filter.label}}</span>\\n\\n        {{#if (eq filter.configuration.name \\'dropdown\\')}}\\n          <Shared::BetaSelect\\n            @value={{filter.value}}\\n            @options={{filter.configuration.options}}\\n            @placeholder={{filter.configuration.placeholder}}\\n            @valuePath={{filter.configuration.valuePath}}\\n            @namePath={{filter.configuration.namePath}}\\n            {{! titlePath }}\\n            @multipleValues={{filter.configuration.multipleValues}}\\n            @withSearchInput={{filter.configuration.withSearchInput}}\\n            class=\\\"c-collaboration-approval-filters__full\\\"\\n            data-test-filters-dropdown\\n          />\\n        {{else if (eq filter.configuration.name \\'date\\')}}\\n          <Shared::Form::DateRangeInput\\n            @value={{filter.value}}\\n            @onChange={{fn this.handleDateRangeChange filter}}\\n            class=\\\"c-collaboration-approval-filters__full\\\"\\n          />\\n        {{else if (eq filter.configuration.name \\'users\\')}}\\n          <Assignee::Search\\n            @value={{filter.value}}\\n            @placeholder={{filter.configuration.placeholder}}\\n            @multipleValues={{true}}\\n            @overrideSearch={{filter.configuration.overrideSearch}}\\n            class=\\\"c-collaboration-approval-filters__full\\\"\\n            data-test-filters-assignee-search\\n          />\\n        {{else}}\\n          NOT IMPLEMENTED ADD YOUR COMPONENT TO Collaboration::Approval::Filters\\n        {{/if}}\\n      </div>\\n    {{/each}}\\n  </:filters>\\n</Shared::Filter::Dropdown>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/filters/template.hbs' });\n","import type ActionApprovalModel from 'client/data/models/action-approval';\n\nimport Component from '@glimmer/component';\n\nimport ActionApproval from 'client/data/models/action-approval';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  approval: ActionApprovalModel;\n}\n\n@validateArguments\nexport default class CollaborationApprovalInfosComponent extends Component<Args> {\n  static propTypes = {\n    approval: PropTypes.instanceOf(ActionApproval).isRequired,\n  };\n}\n","import type { FieldType } from 'client/decorators/model-field';\nimport type DownloadService from 'client/legacy/services/download';\nimport type ToastrService from 'client/legacy/services/toastr';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type CollaborationApprovalInfosInputValueComponentArgs = {\n  inputValue: {\n    type: FieldType | [FieldType];\n    value: string | Record<string, unknown> | Array<Record<string, unknown>> | string[];\n  };\n};\n\n@validateArguments\nexport default class CollaborationApprovalInfosInputValueComponent extends Component<CollaborationApprovalInfosInputValueComponentArgs> {\n  private urlRegex = /(https?:\\/\\/|www\\.)[\\w\\-.]+\\.[\\w\\-.]+(\\/(\\S+)?)?/gi;\n\n  static propTypes = {\n    inputValue: PropTypes.shape({\n      type: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]).isRequired,\n      value: PropTypes.any,\n    }).isRequired,\n  };\n\n  @service('download')\n  declare downloadService: DownloadService;\n\n  @service\n  declare toastr: ToastrService;\n\n  get isFile() {\n    return this.args.inputValue.type === 'File';\n  }\n\n  get isFileList() {\n    return (\n      Array.isArray(this.args.inputValue.type)\n      && this.args.inputValue.type.length === 1\n      && this.args.inputValue.type[0] === 'File'\n    );\n  }\n\n  get isJson() {\n    return this.args.inputValue.type === 'Json';\n  }\n\n  get containsUrl() {\n    return (\n      this.args.inputValue.type === 'String'\n      && new RegExp(this.urlRegex).test(this.args.inputValue.value as string)\n    );\n  }\n\n  get urlComponents() {\n    const value = this.args.inputValue.value as string;\n    const components: { text: string; isUrl: boolean }[] = [];\n\n    let index = 0;\n    let match = this.urlRegex.exec(value);\n\n    while (match) {\n      components.push({ text: value.slice(index, match?.index), isUrl: false });\n\n      index = this.urlRegex.lastIndex;\n\n      components.push({ text: value.slice(match?.index, index), isUrl: true });\n\n      match = this.urlRegex.exec(value);\n    }\n\n    components.push({ text: value.slice(index, value.length), isUrl: false });\n\n    return components;\n  }\n\n  @action\n  async downloadFile(fileUrl: string) {\n    try {\n      await this.downloadService.openBlobUrlInAnotherTab(fileUrl);\n    } catch (e) {\n      this.toastr.perform(ToastrTypeEnum.Error, (e as Error).message);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-collaboration-approval-infos-input-value\\\" ...attributes>\\n  {{#if this.isJson}}\\n    <Shared::BetaTextarea\\n      @value={{json-stringify @inputValue.value}}\\n      rows={{min (number-of-lines (json-stringify @inputValue.value)) 10}}\\n      disabled={{true}}\\n      data-test-json-textarea\\n    />\\n  {{else if this.isFile}}\\n    {{#if @inputValue.value}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @size=\\\"small\\\"\\n        @iconName=\\\"download\\\"\\n        @action={{fn this.downloadFile @inputValue.value}}\\n        @text=\\\"Download\\\"\\n        @async={{false}}\\n        data-test-file-button\\n      />\\n    {{else}}\\n      <span class=\\\"c-collaboration-approval-infos-input-value__no-file\\\" data-test-no-file>\\n        No file\\n      </span>\\n    {{/if}}\\n  {{else if this.isFileList}}\\n    {{#if @inputValue.value.length}}\\n      <ol class=\\\"c-collaboration-approval-infos-input-value__file-list\\\">\\n        {{#each @inputValue.value as |file index|}}\\n          <li class=\\\"c-collaboration-approval-infos-input-value__file-list-item\\\">\\n            <Shared::Button::BetaButton\\n              @type=\\\"secondary\\\"\\n              @size=\\\"small\\\"\\n              @iconName=\\\"download\\\"\\n              @action={{fn this.downloadFile file}}\\n              @text={{concat \\'Download file \\' (add index 1)}}\\n              @async={{false}}\\n              data-test-file-button={{index}}\\n            />\\n          </li>\\n        {{/each}}\\n      </ol>\\n    {{else}}\\n      <span class=\\\"c-collaboration-approval-infos-input-value__no-file\\\" data-test-no-file>\\n        No file\\n      </span>\\n    {{/if}}\\n  {{else if this.containsUrl}}\\n    {{#each this.urlComponents as |component|}}\\n      {{#if component.isUrl}}\\n        <Shared::Typography::Link target=\\\"_blank\\\" href={{component.text}}>\\n          {{component.text}}\\n        </Shared::Typography::Link>\\n      {{else}}\\n        <span class=\\\"c-collaboration-approval-infos-input-value__link-text\\\" data-test-basic-value>\\n          {{component.text}}\\n        </span>\\n      {{/if}}\\n    {{/each}}\\n  {{else}}\\n    <span class=\\\"c-collaboration-approval-infos-input-value__form-value\\\" data-test-basic-value>\\n      {{@inputValue.value}}\\n    </span>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/infos/input-value/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-collaboration-approval-infos\\\" ...attributes>\\n  <div class=\\\"c-collaboration-approval-infos__section\\\">\\n    <div class=\\\"c-collaboration-approval-infos__title\\\">\\n      Smart action\\n    </div>\\n    <div class=\\\"c-collaboration-approval-infos__item\\\">\\n      <div class=\\\"c-collaboration-approval-infos__item-name-wrapper\\\">\\n        <div class=\\\"c-collaboration-approval-infos__item-name\\\">\\n          Action name\\n        </div>\\n      </div>\\n      <div class=\\\"c-collaboration-approval-infos__item-value-wrapper\\\">\\n        <div class=\\\"c-collaboration-approval-infos__item-value\\\">\\n          <Collaboration::Approval::ActionName\\n            @actionDisplayName={{@approval.actionDisplayName}}\\n            @isOrphaned={{@approval.isOrphaned}}\\n          />\\n        </div>\\n      </div>\\n    </div>\\n  </div>\\n\\n  <div class=\\\"c-collaboration-approval-infos__section\\\">\\n    <div class=\\\"c-collaboration-approval-infos__title\\\">\\n      Context\\n    </div>\\n    <div class=\\\"c-collaboration-approval-infos__item\\\">\\n      <div class=\\\"c-collaboration-approval-infos__item-name-wrapper\\\">\\n        <div class=\\\"c-collaboration-approval-infos__item-name\\\">\\n          Collection\\n        </div>\\n      </div>\\n      <div class=\\\"c-collaboration-approval-infos__item-value\\\">\\n        {{@approval.collectionDisplayName}}\\n      </div>\\n    </div>\\n    {{#if @approval.recordIds}}\\n      <div class=\\\"c-collaboration-approval-infos__item\\\">\\n        <div class=\\\"c-collaboration-approval-infos__item-name-wrapper\\\">\\n          <div class=\\\"c-collaboration-approval-infos__item-name\\\">\\n            Record\\n          </div>\\n        </div>\\n        <div class=\\\"c-collaboration-approval-infos__item-value\\\">\\n          <Feature::Approval::ReferenceField\\n            @collection={{@approval.collection}}\\n            @recordIds={{@approval.recordIds}}\\n          />\\n        </div>\\n      </div>\\n    {{/if}}\\n  </div>\\n\\n  {{#if @approval.inputs.length}}\\n    <div class=\\\"c-collaboration-approval-infos__section\\\">\\n      <div class=\\\"c-collaboration-approval-infos__title\\\">\\n        Form values\\n      </div>\\n      {{#each @approval.inputs as |inputValue index|}}\\n        <div class=\\\"c-collaboration-approval-infos__item\\\">\\n          <div class=\\\"c-collaboration-approval-infos__item-name-wrapper\\\">\\n            <span class=\\\"c-collaboration-approval-infos__item-name\\\" title={{inputValue.name}}>\\n              {{inputValue.name}}\\n            </span>\\n          </div>\\n\\n          <Collaboration::Approval::Infos::InputValue\\n            @inputValue={{inputValue}}\\n            data-test-input-value={{index}}\\n          />\\n        </div>\\n      {{/each}}\\n    </div>\\n  {{/if}}\\n\\n</div>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/infos/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport ActionApprovalModel from 'client/data/models/action-approval';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  openDetails: (approval: ActionApprovalModel) => Promise<void>;\n  approval: ActionApprovalModel;\n}\n\n@validateArguments\nexport default class CollaborationApprovalOpenButtonComponent extends Component<Args> {\n  static propTypes = {\n    openDetails: PropTypes.func.isRequired,\n    approval: PropTypes.instanceOf(ActionApprovalModel).isRequired,\n  };\n\n  @action\n  async openDetailsForApproval() {\n    await this.args.openDetails(this.args.approval);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-collaboration-approval-open-button\\\" ...attributes>\\n  <Shared::Button::BetaButton\\n    @text=\\\"Open\\\"\\n    @type=\\\"primary-outline\\\"\\n    @iconName=\\\"arrow_forward\\\"\\n    @isIconAfterText={{true}}\\n    @async={{false}}\\n    {{!-- @async={{false}} due to the fact that async definition does not work --}}\\n    @action={{this.openDetailsForApproval}}\\n    @disabled={{@approval.isBeingPerformed}}\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/open-button/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport ActionApprovalModel from 'client/data/models/action-approval';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  approval: ActionApprovalModel;\n}\n\n@validateArguments\nexport default class CollaborationApprovalStatusComponent extends Component<Args> {\n  static propTypes = {\n    approval: PropTypes.instanceOf(ActionApprovalModel).isRequired,\n  };\n\n  get status() {\n    return this.args.approval.status;\n  }\n\n  get statusColor() {\n    switch (this.args.approval.status) {\n      case 'approved':\n        return '--color-success-700';\n\n      case 'rejected':\n        return '--color-danger-600';\n\n      case 'pending':\n        return '--color-contrast-high-100';\n\n      default:\n        return '--color-warning-600';\n    }\n  }\n\n  get icon() {\n    switch (this.args.approval.status) {\n      case 'approved':\n        return 'done';\n\n      case 'rejected':\n        return 'close';\n\n      case 'pending':\n        return 'more_horiz';\n\n      default:\n        return 'error_outline';\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-collaboration-approval-status\\\" ...attributes>\\n  <Shared::DataDisplay::BetaBadge\\n    @color={{this.statusColor}}\\n    @opticalCorrection={{true}}\\n    class=\\\"c-collaboration-approval-status__badge\\\"\\n  >\\n    <div\\n      class=\\\"c-collaboration-approval-status__badge-content\\\"\\n      data-test-approval-status-badge-content\\n    >\\n      <span>{{capitalize-text this.status}}</span>\\n      <Shared::DataDisplay::BetaIcon @iconName={{this.icon}} @size=\\\"small\\\" />\\n    </div>\\n  </Shared::DataDisplay::BetaBadge>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/status/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport ActionApproval from 'client/data/models/action-approval';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  approval: ActionApproval;\n}\n\n@validateArguments\nexport default class CollaborationApprovalTimelineComponent extends Component<Args> {\n  static propTypes = {\n    approval: PropTypes.instanceOf(ActionApproval).isRequired,\n  };\n\n  get statusIcon() {\n    switch (this.args.approval.status) {\n      case 'approved':\n        return 'task_alt';\n\n      case 'rejected':\n        return 'cancel_outlined';\n\n      case 'failed':\n        return 'error_outline';\n\n      default:\n        return 'access_time';\n    }\n  }\n}\n","import Component from '@glimmer/component';\n\nimport UserModel from 'client/data/models/user';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  icon: 'check' | 'cross' | 'circle';\n  actionName: string;\n  status: string;\n  date?: Date | string;\n  authorName?: string;\n  image?: 'success' | 'failure';\n  author?: UserModel;\n  actionRemoved?: boolean;\n  errorMessage?: string;\n}\n\n@validateArguments\nexport default class CollaborationApprovalTimelineItemComponent extends Component<Args> {\n  static propTypes = {\n    icon: PropTypes.string.isRequired,\n    actionName: PropTypes.string,\n    status: PropTypes.string.isRequired,\n    date: PropTypes.oneOfType([PropTypes.date, PropTypes.string]),\n    authorName: PropTypes.string,\n    author: PropTypes.instanceOf(UserModel),\n    actionRemoved: PropTypes.bool,\n    errorMessage: PropTypes.string,\n  };\n\n  get additionalClass() {\n    switch (this.args.status) {\n      case 'approved':\n        return 'c-collaboration-approval-timeline--approved';\n\n      case 'rejected':\n        return 'c-collaboration-approval-timeline--rejected';\n\n      case 'failed':\n        return 'c-collaboration-approval-timeline--failed';\n\n      default:\n        if (this.args.actionRemoved) return 'c-collaboration-approval-timeline--rejected';\n        return '';\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! template-lint-disable modifier-name-case }}\\n<div class=\\\"c-collaboration-approval-timeline__item\\\">\\n  {{#if @author}}\\n    <Picture::PictureAvatar\\n      @class=\\\"c-collaboration-approval-timeline__icon c-collaboration-approval-timeline__icon--avatar\\\"\\n      @email={{@author.email}}\\n      @initials={{@author.initials}}\\n    />\\n  {{else}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{@icon}}\\n      @size=\\\"small\\\"\\n      @class=\\\"c-collaboration-approval-timeline__icon {{this.additionalClass}}\\\"\\n    />\\n  {{/if}}\\n\\n  <div class=\\\"c-collaboration-approval-timeline__item__content\\\">\\n    <div class={{this.additionalClass}}>\\n      {{#if (and (eq @status \\'pending\\') @actionRemoved)}}\\n        <div\\n          class=\\\"c-collaboration-approval-timeline__text\\\"\\n          data-test-collaboration-approval-timeline-removed-action\\n        >\\n          The action associated to this approval workflow has been removed. You can restore it or\\n          reject the approval\\n        </div>\\n\\n      {{else if (eq @status \\'pending\\')}}\\n        <div\\n          class=\\\"c-collaboration-approval-timeline__text c-collaboration-approval-timeline__text--waiting\\\"\\n        >\\n          Waiting for approval\\n        </div>\\n      {{else if (eq @status \\'warning\\')}}\\n        <div\\n          class=\\\"c-collaboration-approval-timeline__text c-collaboration-approval-timeline__text--waiting\\\"\\n        >\\n          Waiting for resolution\\n        </div>\\n      {{else if (eq @status \\'failed\\')}}\\n        <div class=\\\"c-collaboration-approval-timeline__text\\\">\\n          <span class=\\\"c-collaboration-approval-timeline__text--bold\\\">\\n            <Collaboration::Approval::ActionName\\n              @actionDisplayName={{@actionName}}\\n              @isOrphaned={{@actionRemoved}}\\n            />\\n          </span>\\n          was approved by\\n          <span class=\\\"c-collaboration-approval-timeline__text--bold\\\">\\n            {{@authorName}}\\n          </span>\\n          but failed during execution\\n          {{@date}}\\n        </div>\\n      {{else}}\\n        <div\\n          class=\\\"c-collaboration-approval-timeline__text\\\"\\n          data-test-collaboration-approval-timeline-info-text\\n        >\\n          <span class=\\\"c-collaboration-approval-timeline__text--bold\\\">\\n            {{@authorName}}\\n          </span>\\n\\n          {{@status}}\\n\\n          <span class=\\\"c-collaboration-approval-timeline__text--bold\\\">\\n            <Collaboration::Approval::ActionName\\n              @actionDisplayName={{@actionName}}\\n              @isOrphaned={{@actionRemoved}}\\n              class=\\\"c-collaboration-approval-timeline__text--inline\\\"\\n            />\\n          </span>\\n\\n          {{#if @date}}\\n            {{@date}}\\n          {{/if}}\\n        </div>\\n\\n      {{/if}}\\n    </div>\\n    {{#if (not-eq @status \\'warning\\')}}\\n      {{#if @errorMessage}}\\n        <br />\\n        <div class=\\\"c-collaboration-approval-timeline__text {{this.additionalClass}}\\\">\\n          Error received during execution:\\n        </div>\\n        <div class=\\\"c-collaboration-approval-timeline__error_message\\\">\\n          {{! Displays raw text or html}}\\n          {{! template-lint-disable no-triple-curlies }}\\n          {{{@errorMessage}}}\\n        </div>\\n      {{/if}}\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/timeline/item/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-collaboration-approval-timeline\\\" ...attributes>\\n  <div class=\\\"c-collaboration-approval-timeline__title\\\">\\n    Timeline\\n  </div>\\n\\n  <div class=\\\"c-collaboration-approval-timeline__area\\\">\\n\\n    <Collaboration::Approval::Timeline::Item\\n      @icon=\\\"circle_outlined\\\"\\n      @actionDisplayName={{@approval.actionDisplayName}}\\n      @actionName={{@approval.actionName}}\\n      @status=\\\"requested\\\"\\n      @date={{if @approval.createdAt (moment-format @approval.createdAt \\'llll\\')}}\\n      @actionRemoved={{@approval.isOrphaned}}\\n      @authorName={{@approval.requester.fullName}}\\n      @author={{@approval.requester}}\\n    />\\n\\n    {{#if @approval.isWarning}}\\n      {{#if @approval.approver.fullName}}\\n        <Collaboration::Approval::Timeline::Item\\n          @icon=\\\"error_outline\\\"\\n          @actionDisplayName={{@approval.actionDisplayName}}\\n          @actionName={{@approval.actionDisplayName}}\\n          @status=\\\"failed\\\"\\n          @date={{if @approval.updatedAt (moment-format @approval.updatedAt \\'llll\\')}}\\n          @authorName={{@approval.approver.fullName}}\\n          @actionRemoved={{@approval.isOrphaned}}\\n          @errorMessage={{@approval.errorMessage}}\\n          @commentAuthor={{@approval.approver.fullName}}\\n        />\\n      {{/if}}\\n    {{/if}}\\n\\n    <Collaboration::Approval::Timeline::Item\\n      @icon={{this.statusIcon}}\\n      @actionDisplayName={{@approval.actionDisplayName}}\\n      @actionName={{@approval.actionDisplayName}}\\n      @status={{@approval.status}}\\n      @date={{if @approval.closedAt (moment-format @approval.closedAt \\'llll\\')}}\\n      @authorName={{@approval.approver.fullName}}\\n      @image={{this.approveOrRejectImage}}\\n      @actionRemoved={{@approval.isOrphaned}}\\n      @errorMessage={{@approval.errorMessage}}\\n    />\\n  </div>\\n\\n</div>\\n', { moduleName: 'client/legacy/pods/components/collaboration/approval/timeline/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  failed: () => Promise<void>;\n  ignore: () => Promise<void>;\n}\n\n@validateArguments\nexport default class CollaborationCollaborationActionsWarningComponent extends Component<Args> {\n  static propTypes = {\n    failed: PropTypes.func.isRequired,\n    ignore: PropTypes.func.isRequired,\n  };\n\n  @tracked displayFailedModal = false;\n  @tracked displayIgnoreModal = false;\n\n  @action\n  openFailedModal() {\n    this.displayFailedModal = true;\n  }\n\n  @action\n  openIgnoreModal() {\n    this.displayIgnoreModal = true;\n  }\n\n  @action\n  hideModal() {\n    this.displayFailedModal = false;\n    this.displayIgnoreModal = false;\n  }\n\n  @action\n  async failedAction() {\n    await this.args.failed();\n    this.hideModal();\n  }\n\n  @action\n  async ignoreAction() {\n    await this.args.ignore();\n    this.hideModal();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-collaboration-actions-warning\\\" ...attributes>\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"warning\\\"\\n    class=\\\"c-collaboration-actions-warning__notification\\\"\\n  >\\n    This is a sensitive operation subject to human error.\\n    <br />\\n    If you are sure that the action has successfully been executed following its approval, click on\\n    “Everything was successful”. If you are sure that the action has not been executed following its\\n    approval, click on “Mark as failed“.\\n    <br />\\n    Otherwise, continue your investigations.\\n  </Shared::Feedback::Notification::NotificationInApp>\\n\\n  <div class=\\\"c-collaboration-actions-warning__buttons\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"danger\\\"\\n      @text=\\\"Mark as failed\\\"\\n      @action={{this.openFailedModal}}\\n      @withoutCallback={{true}}\\n      class=\\\"c-collaboration-actions-warning__button-full-width\\\"\\n      data-test-collaboration-actions-failed\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"success\\\"\\n      @text=\\\"Everything was successful\\\"\\n      @action={{this.openIgnoreModal}}\\n      @withoutCallback={{true}}\\n      class=\\\"c-collaboration-actions-warning__button-full-width\\\"\\n      data-test-collaboration-actions-close\\n    />\\n  </div>\\n</div>\\n\\n<Collaboration::CollaborationApprovalConfirmationWarningModal\\n  @isModalOpen={{this.displayIgnoreModal}}\\n  @action={{this.ignoreAction}}\\n  @hideModal={{this.hideModal}}\\n  @isIgnore={{true}}\\n/>\\n\\n<Collaboration::CollaborationApprovalConfirmationWarningModal\\n  @isModalOpen={{this.displayFailedModal}}\\n  @action={{this.failedAction}}\\n  @hideModal={{this.hideModal}}\\n  @isIgnore={{false}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/collaboration/collaboration-actions-warning/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class CollaborationCollaborationActionsComponent extends Component {\n  static propTypes = {\n    approve: PropTypes.func.isRequired,\n    reject: PropTypes.func.isRequired,\n  };\n\n  @tracked displayApproveModal = false;\n  @tracked displayRejectModal = false;\n\n  @action\n  openApproveModal() {\n    this.displayApproveModal = true;\n  }\n\n  @action\n  openRejectModal() {\n    this.displayRejectModal = true;\n  }\n\n  @action\n  hideModal() {\n    this.displayRejectModal = false;\n    this.displayApproveModal = false;\n  }\n\n  @action\n  async approveAction() {\n    await this.args.approve();\n    this.hideModal();\n  }\n\n  @action\n  async rejectAction() {\n    await this.args.reject();\n    this.hideModal();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-collaboration-actions\\\" ...attributes>\\n  <div class=\\\"c-collaboration-actions-warning__buttons\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"danger\\\"\\n      @text=\\\"Reject\\\"\\n      @action={{this.openRejectModal}}\\n      @withoutCallback={{true}}\\n      class=\\\"c-collaboration-actions-warning__button-full-width\\\"\\n      data-test-collaboration-actions-reject\\n    />\\n\\n    <Shared::Button::BetaButton\\n      @type=\\\"success\\\"\\n      @text=\\\"Approve\\\"\\n      @action={{this.openApproveModal}}\\n      @withoutCallback={{true}}\\n      class=\\\"c-collaboration-actions-warning__button-full-width\\\"\\n      data-test-collaboration-actions-approve\\n    />\\n  </div>\\n</div>\\n\\n<Collaboration::CollaborationApprovalConfirmationModal\\n  @isModalOpen={{this.displayApproveModal}}\\n  @action={{this.approveAction}}\\n  @onHideModal={{this.hideModal}}\\n  @isApprove={{true}}\\n/>\\n\\n<Collaboration::CollaborationApprovalConfirmationModal\\n  @isModalOpen={{this.displayRejectModal}}\\n  @action={{this.rejectAction}}\\n  @onHideModal={{this.hideModal}}\\n  @isApprove={{false}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/collaboration/collaboration-actions/template.hbs' });\n","import type AssetMapService from 'asset-map-resolver/services/asset-map';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  action: () => void;\n  isApprove: boolean;\n  onHideModal: () => void;\n  isModalOpen: boolean;\n  approvalComment: boolean;\n}\n\n@validateArguments\nexport default class CollaborationCollaborationApprovalConfirmationModalComponent extends Component<Args> {\n  static propTypes = {\n    action: PropTypes.func.isRequired,\n    isApprove: PropTypes.bool.isRequired,\n    onHideModal: PropTypes.func.isRequired,\n    isModalOpen: PropTypes.bool,\n    approvalComment: PropTypes.string,\n  };\n\n  @service assetMap: AssetMapService;\n\n  get buttonClass() {\n    return 'c-collaboration-approval-confirmation-modal__button';\n  }\n\n  get approveOrReject() {\n    return this.args.isApprove ? 'approve' : 'reject';\n  }\n\n  get approveOrRejectImageUrl() {\n    return this.assetMap.resolve(`/img/collaboration/icon--${this.approveOrReject}.svg`);\n  }\n\n  get title() {\n    return 'Are you sure?';\n  }\n\n  get subtitle() {\n    return `You're about to ${this.approveOrReject} the action.\\nPlease confirm to proceed.`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @isModalOpen}}\\n  <Modal::ModalWindow\\n    @clickOutsideClass=\\\"js-close-detail-exception\\\"\\n    @onClickOutside={{@onHideModal}}\\n    @hasCloseButton={{true}}\\n    class=\\\"c-collaboration-approval-confirmation-modal\\\"\\n  >\\n    <img\\n      class=\\\"c-collaboration-approval-confirmation-modal__picture\\\"\\n      src={{this.approveOrRejectImageUrl}}\\n      alt=\\\"Approval status\\\"\\n      data-test-collaboration-confirmation-image\\n    />\\n\\n    <h1 class=\\\"c-collaboration-approval-confirmation-modal__title\\\">\\n      {{this.title}}\\n    </h1>\\n\\n    <p class=\\\"c-collaboration-approval-confirmation-modal__text\\\">\\n      {{this.subtitle}}\\n    </p>\\n\\n    {{#if @isApprove}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"success\\\"\\n        @text=\\\"Approve\\\"\\n        @async={{true}}\\n        @withoutCallback={{true}}\\n        @action={{@action}}\\n        class={{this.buttonClass}}\\n        data-test-collaboration-confirmation-approve\\n      />\\n    {{else}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"danger\\\"\\n        @text=\\\"Reject\\\"\\n        @async={{true}}\\n        @withoutCallback={{true}}\\n        @action={{@action}}\\n        class={{this.buttonClass}}\\n        data-test-collaboration-confirmation-reject\\n      />\\n    {{/if}}\\n  </Modal::ModalWindow>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/collaboration/collaboration-approval-confirmation-modal/template.hbs' });\n","import type AssetMapService from 'asset-map-resolver/services/asset-map';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  action: () => void;\n  isIgnore: boolean;\n  isModalOpen: boolean;\n  hideModal: () => void;\n}\n\n@validateArguments\nexport default class CollaborationCollaborationApprovalConfirmationWarningModalComponent extends Component<Args> {\n  static propTypes = {\n    action: PropTypes.func.isRequired,\n    isIgnore: PropTypes.bool.isRequired,\n    isModalOpen: PropTypes.bool,\n    hideModal: PropTypes.func,\n  };\n\n  @service assetMap: AssetMapService;\n\n  get ignoreOrFailed() {\n    return this.args.isIgnore\n      ? 'ignore this warning and\\nclose this approval'\n      : 'archive this approval\\nwith a failed state';\n  }\n\n  get imageUrl() {\n    return this.assetMap.resolve(\n      `/img/collaboration/icon--${this.args.isIgnore ? 'approve' : 'reject'}.svg`,\n    );\n  }\n\n  get subtitle() {\n    return `You're about to ${this.ignoreOrFailed}.\\nPlease confirm to proceed.`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @isModalOpen}}\\n  <Modal::ModalWindow\\n    @clickOutsideClass=\\\"js-close-detail-exception\\\"\\n    @onClickOutside={{@hideModal}}\\n    @hasCloseButton={{true}}\\n    class=\\\"c-collaboration-approval-confirmation-modal\\\"\\n  >\\n    <img\\n      class=\\\"c-collaboration-approval-confirmation-modal__picture\\\"\\n      src={{this.imageUrl}}\\n      alt=\\\"Approval status\\\"\\n    />\\n\\n    <h1 class=\\\"c-collaboration-approval-confirmation-modal__title\\\">\\n      Are you sure?\\n    </h1>\\n\\n    <p class=\\\"c-collaboration-approval-confirmation-modal__text\\\">\\n      {{this.subtitle}}\\n    </p>\\n\\n    {{#if @isIgnore}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"success\\\"\\n        @text=\\\"Close the approval\\\"\\n        @action={{@action}}\\n        @async={{true}}\\n        @withoutCallback={{true}}\\n        class=\\\"c-collaboration-approval-confirmation-modal__button\\\"\\n        data-test-collaboration-confirmation-close\\n      />\\n    {{else}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"danger\\\"\\n        @text=\\\"Archive with failed status\\\"\\n        @action={{@action}}\\n        @async={{true}}\\n        @withoutCallback={{true}}\\n        class=\\\"c-collaboration-approval-confirmation-modal__button\\\"\\n        data-test-collaboration-confirmation-failed\\n      />\\n    {{/if}}\\n  </Modal::ModalWindow>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/collaboration/collaboration-approval-confirmation-warning-modal/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class CollaborationCollaborationApprovalCreateModalComponent extends Component {\n  static propTypes = {\n    action: PropTypes.func.isRequired,\n    isModalOpen: PropTypes.bool.isRequired,\n    onHideModal: PropTypes.func.isRequired,\n    onSkipConfirmationChange: PropTypes.func.isRequired,\n    skipConfirmation: PropTypes.bool,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @isModalOpen}}\\n  <Modal::ModalWindow\\n    @stopPropagation={{true}}\\n    @onClickOutside={{stop-propagation @onHideModal}}\\n    @hasCloseButton={{true}}\\n    @hasCustomSize={{true}}\\n    class=\\\"c-collaboration-approval-create-modal\\\"\\n    ...attributes\\n  >\\n    <div class=\\\"c-collaboration-approval-create-modal__frame\\\">\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName=\\\"hourglass_empty\\\"\\n        @size=\\\"normal\\\"\\n        class=\\\"c-collaboration-approval-create-modal__frame__icon\\\"\\n      />\\n    </div>\\n\\n    <h1 class=\\\"c-collaboration-approval-create-modal__title\\\">\\n      Approval Required\\n    </h1>\\n    <p class=\\\"c-collaboration-approval-create-modal__text\\\">\\n      This action requires approval. It will be executed as soon as the approver has validated it.\\n    </p>\\n\\n    <div class=\\\"c-collaboration-approval-create-modal__footer\\\">\\n      <Shared::BetaLabel\\n        @label=\\\"Don\\'t show this message again\\\"\\n        @position=\\\"right\\\"\\n        class=\\'class=\\\"c-collaboration-approval-create-modal__do-not-show-again\\\"\\'\\n      >\\n        <Form::BetaCheckbox\\n          @value={{or @skipConfirmation false}}\\n          @onChange={{@onSkipConfirmationChange}}\\n          data-test-collaboration-approval-create-modal-skip-confirmation\\n        />\\n      </Shared::BetaLabel>\\n\\n      <Shared::Button\\n        @type=\\\"primary\\\"\\n        @size=\\\"medium\\\"\\n        @text=\\\"Continue\\\"\\n        @onClick={{@action}}\\n        @iconName=\\\"arrow_forward\\\"\\n        @isIconAfterText={{true}}\\n        class=\\\"c-collaboration-approval-create-modal__button\\\"\\n      />\\n    </div>\\n  </Modal::ModalWindow>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/collaboration/collaboration-approval-create-modal/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class CollaborationCollaborationApprovalEmptyStateComponent extends Component {\n  static propTypes = {\n    subtitle: PropTypes.string,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-collaboration-approval-empty-state\\\" ...attributes>\\n  <svg xmlns=\\\"http://www.w3.org/2000/svg\\\" width=\\\"80\\\" height=\\\"50\\\" viewBox=\\\"0 0 80 50\\\" fill=\\\"none\\\">\\n    <path\\n      d=\\\"M40 49.1894C62.0914 49.1894 80 45.301 80 40.5044C80 35.7078 62.0914 31.8193 40 31.8193C17.9086 31.8193 0 35.7078 0 40.5044C0 45.301 17.9086 49.1894 40 49.1894Z\\\"\\n      fill=\\\"#E0E3E8\\\"\\n    ></path>\\n    <path\\n      d=\\\"M68.75 16.6422L56.0675 2.37137C55.4588 1.39865 54.57 0.810547 53.6338 0.810547H26.3663C25.43 0.810547 24.5412 1.39865 23.9325 2.37013L11.25 16.6434V28.1064H68.75V16.6422Z\\\"\\n      stroke=\\\"#C1C7D1\\\"\\n    ></path>\\n    <path\\n      d=\\\"M52.0163 20.5765C52.0163 18.5851 53.2588 16.9412 54.8 16.9399H68.75V39.4429C68.75 42.0769 67.1 44.2358 65.0625 44.2358H14.9375C12.9 44.2358 11.25 42.0757 11.25 39.4429V16.9399H25.2C26.7413 16.9399 27.9837 18.5814 27.9837 20.5728V20.6001C27.9837 22.5914 29.24 24.1994 30.78 24.1994H49.22C50.76 24.1994 52.0163 22.5765 52.0163 20.5852V20.5765Z\\\"\\n      fill=\\\"#F0F1F3\\\"\\n      stroke=\\\"#C1C7D1\\\"\\n    ></path>\\n  </svg>\\n  <span class=\\\"c-collaboration-approval-empty-state__title\\\">Approvals</span>\\n  <span class=\\\"c-collaboration-approval-empty-state__subtitle\\\">{{@subtitle}}</span>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/collaboration/collaboration-approval-empty-state/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  title: string;\n  subtitle?: string;\n}\n\n@validateArguments\nexport default class CollaborationCollaborationHeaderComponent extends Component<Args> {\n  static propTypes = {\n    title: PropTypes.string.isRequired,\n    subtitle: PropTypes.string,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaHeader\\n  @hasSideMenu={{true}}\\n  @title={{@title}}\\n  @subtitle={{@subtitle}}\\n  @isLayoutEditorButtonHidden={{true}}\\n  @withoutMaxWidth={{true}}\\n  @variant=\\\"surface\\\"\\n  ...attributes\\n>\\n  <:right-buttons>\\n    {{yield \\'c-beta-header__actions\\' to=\\'right-buttons\\'}}\\n  </:right-buttons>\\n</BetaHeader>\\n', { moduleName: 'client/legacy/pods/components/collaboration/collaboration-header/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\n@classNames('l-collaboration')\nexport default class CollaborationCollaborationLayoutComponent extends Component {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-collaboration-right\\\">\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/collaboration/collaboration-layout/template.hbs' });\n","import Component from '@ember/component';\nimport moment from 'moment';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class CollaborationNoteNoteCardComponent extends Component {\n  static propTypes = {\n    author: PropTypes.string.isRequired,\n    authorEmail: PropTypes.string.isRequired,\n    authorInitials: PropTypes.string.isRequired,\n    title: PropTypes.string.isRequired,\n    teamName: PropTypes.string.isRequired,\n    content: PropTypes.string.isRequired,\n    updatedAt: PropTypes.date,\n    messagesCount: PropTypes.number.isRequired,\n    isUserAllRead: PropTypes.bool.isRequired,\n    noteId: PropTypes.string.isRequired,\n  };\n\n  formatedUpdatedAt = null;\n  hasUnreadMessages = false;\n\n  didReceiveAttrs() {\n    super.didReceiveAttrs();\n    this.setDate();\n\n    this.set('hasUnreadMessages', !this.isUserAllRead);\n  }\n\n  setDate() {\n    const formatedUpdatedAt = moment(this.updatedAt).format('L');\n\n    this.set('formatedUpdatedAt', formatedUpdatedAt);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LinkTo\\n  @route=\\\"project.rendering.data.collection.list.view-edit.collaboration.index.show\\\"\\n  @models={{array @collectionId @collectionId @recordId @noteId}}\\n>\\n  <div class=\\\"note\\\">\\n    <div class=\\\"note__corner\\\">\\n      <div class=\\\"note__corner__border-hider\\\"></div>\\n      <div\\n        class=\\\"note__corner__triangle\\n          {{if this.hasUnreadMessages \\'note__corner__triangle--unread\\'}}\\\"\\n      ></div>\\n    </div>\\n    <div class=\\\"note__author\\\">\\n      <Picture::PictureAvatar\\n        @class=\\\"note__author__picture\\\"\\n        @email={{@authorEmail}}\\n        @initials={{@authorInitials}}\\n      />\\n      <h3 class=\\\"note__author__name\\\">\\n        {{@author}}\\n      </h3>\\n      <h3 class=\\\"note__author__team\\\">\\n        {{@teamName}}\\n      </h3>\\n    </div>\\n    <div class=\\\"note__separator\\\"></div>\\n    <div class=\\\"note__corpus\\\">\\n      <h3 class=\\\"note__corpus__title\\\">\\n        {{@title}}\\n      </h3>\\n      {{! Displays rich text so html}}\\n      <Feature::Chat::Message::Content\\n        @content={{@content}}\\n        @size=\\\"medium\\\"\\n        class=\\\"note__corpus__message\\\"\\n      />\\n\\n    </div>\\n    <div class=\\\"note__comments\\\">\\n      <div>\\n        <Shared::DataDisplay::BetaIcon @iconName=\\\"forum\\\" @size=\\\"small\\\" />\\n        <span class=\\\"note__comments__message-count\\\">\\n          {{@messagesCount}}\\n        </span>\\n      </div>\\n      <span class=\\\"note__comments__id\\\">\\n        #{{@noteId}}\\n      </span>\\n      <p class=\\\"note__comments__date\\\">\\n        {{this.formatedUpdatedAt}}\\n      </p>\\n    </div>\\n  </div>\\n</LinkTo>\\n', { moduleName: 'client/legacy/pods/components/collaboration/note/note-card/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-note-empty\\\">\\n  <Shared::DataDisplay::BetaIcon @iconName=\\\"forum\\\" @size=\\\"custom\\\" class=\\\"c-note-empty__icon\\\" />\\n  <h1 class=\\\"c-note-empty__title\\\">\\n    Notes\\n  </h1>\\n  <p class=\\\"c-note-empty__description\\\">\\n    You have no notes\\n  </p>\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/collaboration/note/note-empty/template.hbs' });\n","import type MessageModel from 'client/data/models/message';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { next } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { capitalize } from '@ember/string';\nimport { classNames } from '@ember-decorators/component';\nimport GlimmerComponent from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype CollaborationNoteNotePanelComponentArgs = {\n  isUpdate: boolean;\n  messages: Promise<MessageModel[]>;\n  noteId: string;\n  title: string;\n  author: string;\n  teamName: string;\n  archiveNoteAction: (noteId: string) => void;\n  setNoteTitleAction: (newTitle: string) => void;\n  setNoteRead: () => void;\n  mentionables: Array<unknown>;\n  sendMessageAction: (content: string, title: string) => void;\n  onClickOutside: () => void;\n};\n\n@validateArguments\n@classNames('note-panel')\nexport default class CollaborationNoteNotePanelComponent extends GlimmerComponent<CollaborationNoteNotePanelComponentArgs> {\n  @service currentUser: CurrentUserService;\n  @service tracker: TrackerService;\n\n  static propTypes = {\n    isUpdate: PropTypes.bool,\n    messages: PropTypes.array,\n    noteId: PropTypes.string,\n    title: PropTypes.string,\n    author: PropTypes.string.isRequired,\n    teamName: PropTypes.string.isRequired,\n    archiveNoteAction: PropTypes.func,\n    setNoteTitleAction: PropTypes.func,\n    setNoteRead: PropTypes.func,\n    mentionables: PropTypes.array.isRequired,\n    sendMessageAction: PropTypes.func.isRequired,\n    onClickOutside: PropTypes.func.isRequired,\n  };\n\n  @tracked inputValue: string = null;\n  @tracked titleInput: string = null;\n  @tracked messages: MessageModel[] = null;\n  chatInputId: string;\n  titleInputId: string;\n\n  constructor(owner: unknown, args: CollaborationNoteNotePanelComponentArgs) {\n    super(owner, args);\n\n    if (this.args.isUpdate) {\n      next(() => {\n        if (this.isDestroyed || this.isDestroying) {\n          return;\n        }\n        this.args.setNoteRead();\n      });\n    }\n    void this.load();\n    this.titleInput = this.args.title;\n    this.chatInputId = `chat-${guidFor(this)}`;\n    this.titleInputId = `title-${guidFor(this)}`;\n  }\n\n  get showMessages() {\n    return this.messages !== null;\n  }\n\n  @action\n  async load() {\n    this.messages = await this.args.messages;\n  }\n\n  @action\n  didInsert() {\n    this.scrollToBottom();\n  }\n\n  get extraActions() {\n    return [\n      {\n        name: 'Archive note',\n        onClick: () => this.args.archiveNoteAction(this.args.noteId),\n        isDanger: true,\n      },\n    ];\n  }\n\n  @action\n  onSubmit(content: string) {\n    // TODO: If the server takes long time to answer and we try to add a message,\n    //       this condition will be valid and another note will be created.\n    //       Fix this on v1.1.\n    const titleInput = this.titleInput || '';\n\n    this.args.sendMessageAction(content, titleInput);\n    this.scrollToBottom();\n  }\n\n  @action\n  updateTitle() {\n    document.querySelector<HTMLInputElement>(`#${this.titleInputId}`).blur();\n\n    if (this.args.title !== this.titleInput) {\n      if (this.args.isUpdate) {\n        this.args.setNoteTitleAction(this.titleInput);\n      }\n    }\n  }\n\n  get teamName() {\n    if (this.messages.length) {\n      return this.args.teamName;\n    }\n\n    return capitalize(this.currentUser.team.name);\n  }\n\n  get author() {\n    if (this.messages.length) {\n      return this.args.author;\n    }\n\n    return this.currentUser?.fullName;\n  }\n\n  scrollToBottom() {\n    // Source: https://stackoverflow.com/a/270628/978690\n    const element = document.querySelector('.js-beta-right-panel-body-scroll');\n    element.scrollTop = element.scrollHeight;\n  }\n\n  @action\n  focus() {\n    if (this.args.isUpdate) {\n      this.focusOn(this.chatInputId);\n    } else {\n      this.focusOn(this.titleInputId);\n    }\n  }\n\n  focusOn(selectorId: string) {\n    document.querySelector<HTMLInputElement>(`#${selectorId}`)?.focus();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.showMessages}}\\n  <Shared::BetaRightPanel\\n    @close={{@onClickOutside}}\\n    @extraActions={{if @isUpdate this.extraActions}}\\n    @headerClass=\\\"c-note-panel__separator\\\"\\n    ...attributes\\n  >\\n    <:title>\\n      <div class=\\\"c-note-panel__header\\\">\\n        <div class=\\\"c-note-panel__header__title\\\">\\n          <Shared::BetaInput\\n            id={{this.titleInputId}}\\n            class=\\\"c-note-panel__title\\\"\\n            @value={{this.titleInput}}\\n            @placeholder=\\\"Untitled\\\"\\n            @inputClass=\\\"c-note-panel__title\\\"\\n            @onEnter={{this.updateTitle}}\\n            @onFocusOut={{this.updateTitle}}\\n            @noBorderWithButton={{true}}\\n            {{did-insert this.focus}}\\n          />\\n\\n        </div>\\n        <div class=\\\"c-note-panel__header__title\\\">\\n          <h4 class=\\\"c-note-panel__header__subtitle\\\">\\n            by\\n            {{this.author}}\\n            --\\n            {{this.teamName}}\\n          </h4>\\n        </div>\\n      </div>\\n    </:title>\\n\\n    <:default>\\n      <Feature::Chat::Thread\\n        class=\\\"c-note-panel__thread\\\"\\n        @messages={{this.messages}}\\n        {{did-insert this.scrollToBottom}}\\n        {{did-update this.scrollToBottom this.messages}}\\n      >\\n        <:no-message>\\n          <div class=\\\"note-centered-text note-centered-text--messages\\\">\\n            <div>\\n              <Shared::DataDisplay::BetaIcon\\n                @iconName=\\\"forum\\\"\\n                @size=\\\"custom\\\"\\n                class=\\\"note-centered-text__icon\\\"\\n              />\\n              <h1>\\n                Write your message\\n              </h1>\\n              <p>\\n                Give it a title, write some text and press Enter to send.\\n                <br />\\n                Use @ mention to target a specific user.\\n              </p>\\n            </div>\\n          </div>\\n        </:no-message>\\n      </Feature::Chat::Thread>\\n    </:default>\\n\\n    <:footer>\\n      <Feature::Chat::Input\\n        id={{this.chatInputId}}\\n        class=\\\"c-note-panel__input\\\"\\n        @submitAction={{this.onSubmit}}\\n        @mentionables={{@mentionables}}\\n        {{did-insert this.focus}}\\n        data-test-note-panel-footer\\n      >\\n        <:mentionable-item as |user|>\\n          <Picture::AvatarWithName @user={{user}} />\\n        </:mentionable-item>\\n      </Feature::Chat::Input>\\n    </:footer>\\n  </Shared::BetaRightPanel>\\n{{else}}\\n  <Shared::BetaRightPanel\\n    @close={{@onClickOutside}}\\n    @extraActions={{if @isUpdate this.extraActions}}\\n    @headerClass=\\\"c-note-panel__separator\\\"\\n    ...attributes\\n  >\\n    <div class=\\\"note-loader-container\\\">\\n      <Layout::LayoutLoader @type=\\\"data\\\" />\\n    </div>\\n  </Shared::BetaRightPanel>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/collaboration/note/note-panel/template.hbs' });\n","import { action } from '@ember/object';\nimport { alias, not } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class CollectionSettingsScopeComponent extends Component {\n  @service('business/scope') scopeBusinessService;\n  @service currentUser;\n\n  @alias('args.scope.collection.filterableFields') filterableFields;\n  @alias('args.scope.filter') filter;\n  @not('args.scope.canDiscardChanges') disableDiscard;\n  @not('args.scope.isValidData') disableSave;\n\n  @action\n  discardScopeChanges() {\n    return this.args.scope.discardChanges();\n  }\n\n  @action\n  async saveScopeChanges(callback) {\n    await this.scopeBusinessService.saveScope(this.args.scope);\n    callback();\n  }\n\n  @action\n  createFilter(args) {\n    return this.store.createFragment('fragment-filter', args);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"collection-settings-actions\\\">\\n  <Shared::Button::BetaButton\\n    @type=\\\"secondary\\\"\\n    @text=\\\"Discard\\\"\\n    @action={{this.discardScopeChanges}}\\n    @disabled={{this.disableDiscard}}\\n    @async={{false}}\\n    class=\\\"c-collection-list-header__action\\\"\\n    data-test-collection-settings-scope-discard\\n  />\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @text=\\\"Save\\\"\\n    @action={{this.saveScopeChanges}}\\n    @disabled={{this.disableSave}}\\n    data-test-for-button=\\\"save\\\"\\n    class=\\\"c-collection-list-header__action\\\"\\n    data-test-collection-settings-scope-save\\n  />\\n\\n</Shared::PortalContent>\\n\\n<LayoutDetail::LayoutDetailBodySettings\\n  @collection={{@scope.collection}}\\n  @mainContainerClass=\\\"l-overlay__sidepage--scroll\\\"\\n  ...attributes\\n>\\n  <div class=\\\"c-scope\\\">\\n    <div class=\\\"c-scope__header\\\">\\n      <div class=\\\"c-scope__header-title\\\">\\n        Filter all data of\\n        {{@scope.collection.displayNamePluralLowerCase}}\\n      </div>\\n      <div class=\\\"c-scope__header-subtitle\\\">\\n        Scopes allow you to pre-filter all incoming data of this collection and all its segments.\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName=\\\"info\\\"\\n          @size=\\\"micro\\\"\\n          @class=\\\"c-beta-icon--hoverable\\\"\\n          @id=\\\"settings-scopes-variables\\\"\\n        />\\n\\n        <Shared::Feedback::BetaTooltip\\n          @targetId=\\\"settings-scopes-variables\\\"\\n          @class=\\\"c-scope__tooltip\\\"\\n          @hideDelay={{250}}\\n          @side=\\\"top\\\"\\n        >\\n          <div>\\n            For a static filter, enter your static value:\\n            <span class=\\\"c-shared-feedback-beta-tooltip__code\\\">\\n              Germany\\n            </span>\\n            .\\n          </div>\\n          <div class=\\\"c-shared-feedback-beta-tooltip__section\\\">\\n            For a dynamic filter, click on the {} button to reference the current user, for\\n            instance:\\n          </div>\\n          <div>\\n            <span class=\\\"c-shared-feedback-beta-tooltip__code\\\">\\n              \\\\{{currentUser.email}}\\n            </span>\\n            would refer to\\n            <span class=\\\"c-shared-feedback-beta-tooltip__value\\\">\\n              {{this.currentUser.email}}\\n            </span>\\n            .\\n          </div>\\n          <div class=\\\"c-shared-feedback-beta-tooltip__section\\\">\\n            <span class=\\\"c-shared-feedback-beta-tooltip__code\\\">\\n              \\\\{{currentUser.team.name}}\\n            </span>\\n            would refer to\\n            <span class=\\\"c-shared-feedback-beta-tooltip__value\\\">\\n              {{this.currentUser.team.name}}\\n            </span>\\n            .\\n          </div>\\n          <div>\\n            For more details, check out\\n            <a\\n              class=\\\"c-shared-feedback-beta-tooltip__link\\\"\\n              href=\\\"https://docs.forestadmin.com/user-guide/collections/scopes#dynamic-variables\\\"\\n              target=\\\"_blank\\\"\\n              rel=\\\"noopener noreferrer\\\"\\n            >\\n              our documentation\\n            </a>\\n            .\\n          </div>\\n        </Shared::Feedback::BetaTooltip>\\n      </div>\\n    </div>\\n\\n    <BetaFilter::Form\\n      @fields={{this.filterableFields}}\\n      @scrollToBottom={{false}}\\n      @initAfterClearAll={{true}}\\n      @filter={{this.filter}}\\n      @createFilter={{this.createFilter}}\\n      @showApply={{false}}\\n      @showDiscard={{false}}\\n      @insidePopup={{false}}\\n      @canClearNew={{true}}\\n      @withVariables={{true}}\\n      @templatingHelper={{@scope.templatingHelper}}\\n    />\\n  </div>\\n</LayoutDetail::LayoutDetailBodySettings>\\n', { moduleName: 'client/legacy/pods/components/collection-settings/scope/template.hbs' });\n","import type ProjectModel from 'client/data/models/project';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport ColorUtils, { getColorFromTheme } from 'client/utils/color-utils';\n\ninterface ColorThemeComponentArgs {\n  project: ProjectModel;\n}\n\nexport default class ColorThemeComponent extends Component<ColorThemeComponentArgs> {\n  @service('shared/state/user-preference') private userPreferenceState: UserPreferenceState;\n  @service('event-bus') private eventBus: EventBusService;\n\n  constructor(owner: unknown, args: ColorThemeComponentArgs) {\n    super(owner, args);\n\n    this.initializeTheme();\n    this.eventBus.on(EventBusEventsEnum.UserPreferenceManagerThemeChanged, this.initializeTheme);\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.eventBus.off(EventBusEventsEnum.UserPreferenceManagerThemeChanged, this.initializeTheme);\n  }\n\n  @action\n  initializeTheme() {\n    const primaryColor =\n      this.args.project.primaryColorOrDefault || getColorFromTheme('--accent-600');\n    ColorUtils.setColorPrimaryVariantsOnElement(\n      document.body,\n      primaryColor,\n      this.userPreferenceState.isDarkTheme,\n    );\n  }\n}\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tagName } from '@ember-decorators/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('')\nexport default class ColumnSettingsMenuComponent extends Component {\n  @service store;\n  @service errorHandler;\n  @service toastr;\n\n  propTypes = {\n    classPosition: PropTypes.string,\n    show: PropTypes.func.isRequired,\n    hide: PropTypes.func.isRequired,\n    modelName: PropTypes.string.isRequired,\n    segmentId: PropTypes.string,\n    columns: PropTypes.arrayOf(PropTypes.object).isRequired,\n  };\n\n  @action\n  async toggleVisibility(column) {\n    try {\n      if (column.get('isVisible')) {\n        await this.hide(column);\n        this.toastr.perform('success', `${column.field.displayName} field is now hidden.`);\n      } else {\n        await this.show(column);\n        this.toastr.perform('success', `${column.field.displayName} field is now visible.`);\n      }\n    } catch (reason) {\n      this.errorHandler.handleRequestFailure(\n        reason,\n        `${column.field.displayName} field visibility update failed`,\n      );\n    }\n    return false;\n  }\n\n  @action\n  reorderColumns(reorderedColumns) {\n    this.columns.forEach((column) => {\n      column.position = reorderedColumns.indexOf(column);\n    });\n\n    this.store\n      .layoutBatchUpdate(this.modelName, this.columns)\n      .then(() => this.toastr.perform('success', 'Fields reordered.'))\n      .catch((reason) => {\n        this.errorHandler.handleRequestFailure(reason, 'Columns reordering failed');\n      });\n  }\n}\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { classNameBindings, classNames, tagName } from '@ember-decorators/component';\n\nimport Column from 'client/data/models/column';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('li')\n@classNames('c-column-settings-menu-item')\n@classNameBindings('column.isVisible::c-column-settings-menu-item--visibility-off')\nexport default class ColumnSettingsMenuItemComponent extends Component {\n  propTypes = {\n    column: PropTypes.instanceOf(Column).isRequired,\n    toggleVisibility: PropTypes.func.isRequired,\n  };\n\n  @action\n  toggleVisibilityAction(event) {\n    event.stopPropagation();\n    this.toggleVisibility(this.column);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<i\\n  {{on \\'click\\' this.toggleVisibilityAction}}\\n  class=\\\"material-icons c-column-settings-menu-item__icon\\\"\\n  role=\\\"button\\\"\\n>\\n  {{if @column.isVisible \\'visibility\\' \\'visibility_off\\'}}\\n</i>\\n<span class=\\\"c-column-settings-menu-item__name\\\">\\n  {{@column.field.displayName}}\\n</span>\\n', { moduleName: 'client/legacy/pods/components/column-settings-menu/item/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsMenu\\n  @rows={{@columns}}\\n  @reorderRows={{this.reorderColumns}}\\n  @groupName={{@groupName}}\\n  @toggleVisibility={{this.toggleVisibility}}\\n  class={{this.classPosition}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/column-settings-menu/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport Field from 'client/data/models/field';\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class ConditionalFormattingComponent extends Component {\n  @argument(Field) field;\n\n  @service store;\n\n  modes = [\n    {\n      label: 'Auto',\n      value: 'auto',\n    },\n    {\n      label: 'Custom',\n      value: 'custom',\n    },\n  ];\n\n  get isSwitchedOn() {\n    return !!this.args.field.conditionalFormatting?.isSwitchedOn;\n  }\n\n  set isSwitchedOn(value) {\n    const { field } = this.args;\n\n    if (value && !field.conditionalFormatting) {\n      field.conditionalFormatting = this.store.createFragment('conditional-formatting');\n    }\n    field.conditionalFormatting.isSwitchedOn = value;\n  }\n\n  @action\n  setMode(mode) {\n    this.args.field.conditionalFormatting.mode = mode;\n  }\n\n  @action\n  addRule() {\n    const {\n      field: { conditionalFormatting },\n    } = this.args;\n\n    // NOTICE: if already one, clone display and color from previous one.\n    if (conditionalFormatting.rules.length) {\n      const previous = conditionalFormatting.rules.lastObject;\n      conditionalFormatting.rules.createFragment({\n        displayType: previous.displayType,\n        color: previous.color,\n      });\n    } else {\n      conditionalFormatting.rules.createFragment();\n    }\n  }\n\n  @action\n  removeRule(rule) {\n    this.args.field.conditionalFormatting.rules.removeObject(rule);\n  }\n\n  @action\n  addDefaultRule() {\n    this.args.field.conditionalFormatting.defaultRule =\n      this.store.createFragment('conditional-rule');\n  }\n\n  @action\n  removeDefaultRule() {\n    this.args.field.conditionalFormatting.defaultRule = null;\n  }\n\n  @action\n  clearRules() {\n    const {\n      field: { conditionalFormatting },\n    } = this.args;\n\n    conditionalFormatting.rules.clear();\n    if (conditionalFormatting.defaultRule) {\n      conditionalFormatting.defaultRule = null;\n    }\n\n    if (conditionalFormatting.shouldAutoFillMissingValues) {\n      conditionalFormatting.shouldAutoFillMissingValues = false;\n    }\n  }\n}\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport {\n  ConditionalRuleSchema,\n  OPERATORS_FOR_CONDITIONAL_RULE_PER_TYPE,\n} from 'client/data/models/conditional-rule';\nimport Field from 'client/data/models/field';\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { findOperatorFromDisplayName } from 'client/utils/condition-utils';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\n@validateArguments\nexport default class ConditionalFormattingRuleComponent extends Component {\n  @argument(optional(Field)) field;\n  @argument(ConditionalRuleSchema) rule;\n  @argument(Function) removeRule;\n  @argument(optional(Boolean)) default;\n\n  displayOptions = ['badge', 'font'];\n\n  constructor(...args) {\n    super(...args);\n\n    this.initializeOperator();\n  }\n\n  get valueComponent() {\n    const { field, rule } = this.args;\n\n    if (field && field.type === 'Number' && field.isUsingAlteredValues) {\n      return 'form/form-string';\n    }\n\n    return rule.valueComponent;\n  }\n\n  get operators() {\n    const { field } = this.args;\n\n    if (field && field.type) {\n      // NOTICE: handle field type Number as String field type.\n      if (field.type === 'Number' && field.isUsingAlteredValues) {\n        return OPERATORS_FOR_CONDITIONAL_RULE_PER_TYPE.String;\n      }\n      return OPERATORS_FOR_CONDITIONAL_RULE_PER_TYPE[field.type];\n    }\n\n    return [];\n  }\n\n  get operatorDisplay() {\n    const {\n      rule: { operator },\n    } = this.args;\n    return operator?.displayName;\n  }\n\n  set operatorDisplay(value) {\n    const {\n      field: { type },\n      rule,\n    } = this.args;\n\n    // NOTICE: if date type and switch from date to number or inverse, set value to null.\n    if (type === 'Date') {\n      const isOldOperatorNumber =\n        findOperatorFromDisplayName(rule.operator)?.valueType === 'Number';\n      const isNewOperatorNumber = findOperatorFromDisplayName(value)?.valueType === 'Number';\n\n      if (isOldOperatorNumber !== isNewOperatorNumber) {\n        this.valueDisplay = null;\n      }\n    }\n\n    rule.operator = { ...this.operators.find((operator) => operator.displayName === value) };\n  }\n\n  get valueDisplay() {\n    const {\n      rule: { value },\n    } = this.args;\n    return value;\n  }\n\n  set valueDisplay(value) {\n    const { rule } = this.args;\n    rule.value = value;\n  }\n\n  @action\n  remove() {\n    const { rule, removeRule } = this.args;\n\n    removeRule(rule);\n  }\n\n  @action\n  onDisplayChange(value) {\n    const { rule } = this.args;\n    rule.displayType = value;\n  }\n\n  async initializeOperator() {\n    if (!this.args.default && !this.args.rule.operator) {\n      await waitForNextRunLoop();\n      this.args.rule.operator = { ...this.operators[0] };\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-conditional-rule\\\">\\n  <div class=\\\"l-conditional-rule-condition\\\">\\n    {{#if @default}}\\n      <span class=\\\"c-conditional-rule__default\\\">DEFAULT</span>\\n    {{else}}\\n      <Shared::BetaSelect\\n        @namePath=\\\"displayName\\\"\\n        @options={{this.operators}}\\n        @value={{this.operatorDisplay}}\\n        @valuePath=\\\"displayName\\\"\\n        class=\\\"c-conditional-rule__operator\\\"\\n      />\\n\\n      {{#if (and @rule.operator @rule.operatorNeedsValue)}}\\n        {{component\\n          this.valueComponent\\n          field=@field\\n          value=this.valueDisplay\\n          operator=@rule.operator.displayName\\n          class=\\'c-conditional-rule__value\\'\\n        }}\\n      {{/if}}\\n    {{/if}}\\n  </div>\\n\\n  <div class=\\\"l-conditional-rule-display\\\">\\n    <Shared::BetaSelect\\n      @onChange={{this.onDisplayChange}}\\n      @options={{this.displayOptions}}\\n      @value={{@rule.displayType}}\\n      class=\\\"c-conditional-rule__display\\\"\\n    />\\n    <Shared::ColorPicker\\n      @color={{@rule.color}}\\n      @onChange={{fn (mut @rule.color)}}\\n      class=\\\"c-conditional-rule__color-picker\\\"\\n    />\\n    <span class=\\\"c-conditional-rule__separator\\\"></span>\\n    {{#if (eq @rule.displayType \\'badge\\')}}\\n      <Shared::DataDisplay::BetaBadge @color={{@rule.color}} @value=\\\"Sample\\\" />\\n    {{else}}\\n      <Shared::DataDisplay::FontDisplay @color={{@rule.color}} @value=\\\"Sample\\\" />\\n    {{/if}}\\n    <Shared::Button::BetaButton\\n      @action={{this.remove}}\\n      @async={{false}}\\n      @iconName=\\\"close\\\"\\n      @type=\\\"link-tertiary\\\"\\n      @underline={{false}}\\n      class=\\\"c-conditional-rule__remove\\\"\\n      data-test-remove-rule={{true}}\\n    />\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/conditional-formatting/rule/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-conditional-formatting__header\\\">\\n  <Shared::BetaLabel\\n    @label=\\\"Conditional formatting\\\"\\n    @description=\\\"Conditional formatting lets you to create rules which modify the way your data is displayed when certain conditions are met.\\\"\\n    class=\\\"c-conditional-formatting__description\\\"\\n  />\\n  <Shared::Form::Toggle\\n    @value={{this.isSwitchedOn}}\\n    @onChange={{fn (mut this.isSwitchedOn)}}\\n    class=\\\"c-conditional-formatting__switch-button\\\"\\n    data-test-switch-for=\\\"conditional-formatting\\\"\\n  />\\n</div>\\n{{#if this.isSwitchedOn}}\\n  <Shared::Form::Tabs\\n    @items={{this.modes}}\\n    @selected={{@field.conditionalFormatting.mode}}\\n    @onSelect={{this.setMode}}\\n    class=\\\"c-conditional-formatting__tabs\\\"\\n  />\\n  <div class=\\\"l-conditional-formatting__mode-description\\\">\\n    {{#if (eq @field.conditionalFormatting.mode \\'auto\\')}}\\n      <span>\\n        The \\\"Auto\\\" setting displays each distinct value in a random-colored badge like this:\\n      </span>\\n      <Shared::DataDisplay::BetaBadge\\n        @value=\\\"Sample\\\"\\n        @color=\\\"info\\\"\\n        class=\\\"c-conditional-formatting__sample-badge\\\"\\n      />\\n    {{else}}\\n      <span>\\n        The \\\"Custom\\\" setting allows you to add rules to control how your data is displayed.\\n      </span>\\n    {{/if}}\\n  </div>\\n  {{#if (eq @field.conditionalFormatting.mode \\'custom\\')}}\\n    <div\\n      class=\\\"l-conditional-formatting__rules-table\\\"\\n      data-test-l-conditional-formatting__rules-table\\n    >\\n      <div class=\\\"l-conditional-formatting__column-wrapper\\\">\\n        <div\\n          class=\\\"c-conditional-formatting__column-header c-conditional-formatting__column-header-condition\\\"\\n        >\\n          Condition\\n          <Shared::DataDisplay::BetaIcon\\n            @iconName=\\\"info\\\"\\n            @size=\\\"micro\\\"\\n            @class=\\\"c-beta-icon--hoverable\\\"\\n            @id=\\\"c-conditional-formatting__tooltip\\\"\\n          />\\n          <Shared::Feedback::BetaTooltip\\n            @targetId=\\\"c-conditional-formatting__tooltip\\\"\\n            @hideDelay={{250}}\\n            @side=\\\"top\\\"\\n          >\\n            First matched condition applies. If the value is altered (using \\\"Alter values\\\" option),\\n            rules apply on the displayed value.\\n          </Shared::Feedback::BetaTooltip>\\n        </div>\\n        <span\\n          class=\\\"c-conditional-formatting__column-header c-conditional-formatting__column-header-display\\\"\\n        >\\n          Display\\n        </span>\\n      </div>\\n      {{#if @field.conditionalFormatting.rules.length}}\\n        {{#each @field.conditionalFormatting.rules as |rule|}}\\n          <ConditionalFormatting::Rule\\n            @rule={{rule}}\\n            @field={{@field}}\\n            @removeRule={{this.removeRule}}\\n          />\\n        {{/each}}\\n      {{/if}}\\n      {{#if @field.conditionalFormatting.defaultRule}}\\n        <ConditionalFormatting::Rule\\n          @rule={{@field.conditionalFormatting.defaultRule}}\\n          @removeRule={{this.removeDefaultRule}}\\n          @default={{true}}\\n        />\\n      {{/if}}\\n      {{#unless\\n        (or @field.conditionalFormatting.rules.length @field.conditionalFormatting.defaultRule)\\n      }}\\n        <span class=\\\"c-conditional-formatting__no-rules\\\">\\n          No rule yet.\\n        </span>\\n      {{/unless}}\\n      <div class=\\\"l-conditional-formatting__actions\\\">\\n        <Shared::Button::BetaButton\\n          @type=\\\"link-primary\\\"\\n          @text=\\\"Add a rule\\\"\\n          @iconName=\\\"add\\\"\\n          @underline={{false}}\\n          @noPadding={{true}}\\n          @size=\\\"small\\\"\\n          @action={{this.addRule}}\\n          class=\\\"c-conditional-formatting__add-rule-button\\\"\\n          data-test-add-rule={{true}}\\n        />\\n        {{#unless @field.conditionalFormatting.defaultRule}}\\n          <Shared::Button::BetaButton\\n            @type=\\\"link-secondary-light\\\"\\n            @text=\\\"Add a default rule\\\"\\n            @iconName=\\\"add\\\"\\n            @underline={{false}}\\n            @noPadding={{true}}\\n            @size=\\\"small\\\"\\n            @action={{this.addDefaultRule}}\\n            data-test-add-default-rule={{true}}\\n          />\\n        {{/unless}}\\n        <Shared::BetaLabel\\n          @label=\\\"Auto for missing value\\\"\\n          @position=\\\"right\\\"\\n          @textClass=\\\"c-conditional-formatting__autofill-text\\\"\\n          class=\\\"c-conditional-formatting__autofill-toggle\\\"\\n          data-test-auto-fill-missing-values={{true}}\\n        >\\n          <Shared::Form::Toggle\\n            @value={{@field.conditionalFormatting.shouldAutoFillMissingValues}}\\n            @onChange={{fn (mut @field.conditionalFormatting.shouldAutoFillMissingValues)}}\\n          />\\n        </Shared::BetaLabel>\\n        {{#if\\n          (or @field.conditionalFormatting.rules.length @field.conditionalFormatting.defaultRule)\\n        }}\\n          <Shared::Button::BetaButton\\n            @type=\\\"link-secondary-light\\\"\\n            @text=\\\"Clear all\\\"\\n            @iconName=\\\"close\\\"\\n            @underline={{false}}\\n            @noPadding={{true}}\\n            @size=\\\"small\\\"\\n            @action={{this.clearRules}}\\n            class=\\\"c-conditional-formatting__clear-rules-button\\\"\\n            data-test-clear-rules={{true}}\\n          />\\n        {{/if}}\\n      </div>\\n    </div>\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/conditional-formatting/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { argument, oneOf, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class ConfigurationCardComponent extends Component {\n  @argument(oneOf('error', 'success', 'empty')) type;\n  @argument(String) title;\n  @argument(optional(String)) icon;\n  @argument(optional(String)) class;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-configuration-card {{@class}}\\\" ...attributes>\\n  <div class=\\\"c-configuration-card__header\\\">\\n    <div class=\\\"c-configuration-card__square c-configuration-card__square--{{@type}}\\\">\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName={{or\\n          @icon\\n          (if (eq @type \\'error\\') \\'error\\' (if (eq @type \\'success\\') \\'check_circle\\'))\\n        }}\\n        class=\\\"c-configuration-card__svg--{{@type}}\\\"\\n      />\\n    </div>\\n    <p class=\\\"c-configuration-card__title\\\">\\n      {{@title}}\\n    </p>\\n  </div>\\n  <div class=\\\"c-configuration-card__content\\\">\\n    {{yield}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/configuration-card/template.hbs' });\n","import { action } from '@ember/object';\nimport { alias, readOnly } from '@ember/object/computed';\nimport { guidFor } from '@ember/object/internals';\nimport { addObserver } from '@ember/object/observers';\nimport { service } from '@ember/service';\nimport Model from '@ember-data/model';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { didCancel, task } from 'ember-concurrency';\nimport window from 'ember-window-mock';\n\nimport Collection from 'client/data/models/collection';\nimport Field from 'client/data/models/field';\nimport Segment from 'client/data/models/segment';\nimport ViewList from 'client/data/models/view-list';\nimport validateArguments from 'client/decorators/validate';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport { isDeleteHasManyAvailable, isDissociateHasManyAvailable } from 'client/utils/action-utils';\nimport { pauseFor, waitForNextRunLoop } from 'client/utils/ember-promise';\nimport RecordsContext from 'client/utils/liana-records/records-context';\nimport NestedField from 'client/utils/nested/field';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport ResizableColumnsState from 'client/utils/resizable-columns-state';\n\n@validateArguments\nexport default class DataDisplayBetaCollectionListComponent extends Component {\n  @service abilities;\n  @service awsCodeDownloader;\n  /** @private @readonly @type {import('client/legacy/services/beta-collection-list-communicator').default} */\n  @service betaCollectionListCommunicator;\n  /** @private @readonly @type {import('client/legacy/services/business/collection').default} */\n  @service('business/collection') businessCollectionService;\n  @service currentUser;\n  @service('feature/action/internal-business/custom-action') customActionService;\n  @service eventBus;\n  @service lianaFeatures;\n  @service lianaSession;\n  @service router;\n  @service store;\n  /** @type {import('client/features/client-record/services/feature').default} */\n  @service('feature/client-record') clientRecordFeature;\n\n  static propTypes = {\n    // Requires either modelToFetch or recordsContext\n    modelToFetch: PropTypes.oneOfType([\n      PropTypes.instanceOf(NestedField),\n      PropTypes.instanceOf(Field),\n      PropTypes.instanceOf(Collection),\n      PropTypes.instanceOf(Segment),\n    ]),\n    recordsContext: PropTypes.instanceOf(RecordsContext),\n    betaCollectionListId: PropTypes.string,\n    canEditRecordsPerPage: PropTypes.bool,\n    deactivateCurrentSegment: PropTypes.func,\n    error: PropTypes.shape({ type: PropTypes.string }),\n    filterLocation: PropTypes.string,\n    isSummaryViewSection: PropTypes.bool,\n    hasCreateButton: PropTypes.bool,\n    hasActions: PropTypes.bool,\n    hasHeader: PropTypes.bool,\n    hasHeaderEditLayoutButton: PropTypes.bool,\n    hasFiltersButton: PropTypes.bool,\n    hasSearchbar: PropTypes.bool,\n    hasSegmentsListDisabled: PropTypes.bool,\n    hasSideMenu: PropTypes.bool,\n    isEditMode: PropTypes.bool,\n    onQueryParametersChange: PropTypes.func,\n    onRecordsFetched: PropTypes.func,\n    onRowClick: PropTypes.func,\n    onSegmentChange: PropTypes.func,\n    onSelectedRecordsChange: PropTypes.func,\n    openCreateRecord: PropTypes.func,\n    openDuplicateRecord: PropTypes.func,\n    record: PropTypes.oneOfType([PropTypes.instanceOf(Model), PropTypes.instanceOf(Object)]),\n    showMore: PropTypes.func,\n    shouldSelectOnRowClick: PropTypes.bool,\n    shouldDisablePerformanceTracking: PropTypes.bool,\n    // The viewList argument is used when you want to display something else than the default view\n    smartView: PropTypes.instanceOf(ViewList),\n    // The componentName is ONLY FOR smart view editor, which build temp component name\n    componentName: PropTypes.string,\n    segmentsList: PropTypes.arrayOf(PropTypes.instanceOf(Segment)),\n    shouldPreventChangeSelectedRecord: PropTypes.func,\n    resizableColumnsState: PropTypes.instanceOf(ResizableColumnsState),\n  };\n\n  oldModelToFetch;\n  localFilterLocation = `${guidFor(this)}-filter-location`;\n  hasActionsBeenSetup = false;\n  lastMainViewId;\n  /** @type {import('client/utils/liana-records/records-context').default} */\n  @tracked recordsContext;\n  @tracked enabledCustomActions = [];\n\n  constructor(...args) {\n    super(...args);\n    this.handleSetupCollectionList();\n    if (this.args.recordsContext) {\n      // eslint-disable-next-line ember/no-observers\n      addObserver(this, 'args.recordsContext', async () => {\n        await waitForNextRunLoop();\n\n        if (this.recordsContext !== this.args.recordsContext) {\n          await this.updateRecordsContext();\n        }\n      });\n    } else {\n      const argumentsToWatch = [\n        'modelToFetch',\n        'modelToFetch.mainView.id',\n        'record',\n        'smartView',\n        'componentName',\n      ];\n      this.onArgumentChange = (argumentToWatch) => async () => {\n        const mainView = argumentToWatch.includes('mainView')\n          ? await this.args.collection?.mainView\n          : null;\n        if (argumentToWatch.includes('mainView') && mainView?.id === this.lastMainViewId) return;\n        if (argumentToWatch === 'modelToFetch' && this.args.modelToFetch === this.oldModelToFetch)\n          return;\n        if (this.args.modelToFetch?.isDestroying || this.args.modelToFetch?.isDestroyed) return;\n        this.lastMainViewId = mainView?.id;\n\n        if (\n          this.args.modelToFetch !== this.oldModelToFetch\n          || this.args.record !== this.recordsContext?.parentRecord\n          || (this.args.smartView && this.args.smartView !== this.recordsContext?.viewList)\n          || (!this.args.smartView\n            && this.recordsContext?.viewList?.id !== this.args.modelToFetch?.mainView?.get('id'))\n          || this.args.componentName\n        ) {\n          this.handleSetupCollectionList();\n        }\n      };\n      argumentsToWatch.forEach((argumentToWatch) =>\n        // eslint-disable-next-line ember/no-observers\n        addObserver(this, `args.${argumentToWatch}`, this.onArgumentChange(argumentToWatch)),\n      );\n    }\n\n    if (this.args.betaCollectionListId) {\n      this.betaCollectionListCommunicator.addListenerOnRefresh(\n        this.args.betaCollectionListId,\n        this.onRefresh,\n      );\n      this.betaCollectionListCommunicator.addListenerOnTriggerSmartAction(\n        this.args.betaCollectionListId,\n        this.triggerSmartAction,\n      );\n      this.betaCollectionListCommunicator.addListenerOnDeleteRecords(\n        this.args.betaCollectionListId,\n        this.deleteRecords,\n      );\n      this.betaCollectionListCommunicator.addListenerOnExport(\n        this.args.betaCollectionListId,\n        this.exportRecords,\n      );\n    }\n  }\n\n  willDestroy() {\n    super.willDestroy();\n\n    if (this.args.betaCollectionListId) {\n      this.betaCollectionListCommunicator.removeListenerOnRefresh(\n        this.args.betaCollectionListId,\n        this.onRefresh,\n      );\n      this.betaCollectionListCommunicator.removeListenerOnTriggerSmartAction(\n        this.args.betaCollectionListId,\n        this.triggerSmartAction,\n      );\n      this.betaCollectionListCommunicator.removeListenerOnDeleteRecords(\n        this.args.betaCollectionListId,\n        this.deleteRecords,\n      );\n      this.betaCollectionListCommunicator.removeListenerOnExport(\n        this.args.betaCollectionListId,\n        this.exportRecords,\n      );\n    }\n\n    this.betaCollectionListCommunicator.removeListenerOnRefreshAll(\n      this.field || this.collection,\n      this.onRefreshAll,\n    );\n  }\n\n  @readOnly('recordsContext.viewList.isSmart') isSmartView;\n  @alias('collection.restrictedToSegments') isRestrictedToSegments;\n\n  get displayNamePlural() {\n    return this.field?.displayName || this.collection?.displayNamePluralLowerCase;\n  }\n\n  get collection() {\n    return (\n      this.args.recordsContext?.collection\n      || this.businessCollectionService.getCollection(this.args.modelToFetch)\n    );\n  }\n\n  get segment() {\n    return (\n      this.args.recordsContext?.segment\n      || this.businessCollectionService.getSegment(this.args.modelToFetch)\n    );\n  }\n\n  get field() {\n    return (\n      this.args.recordsContext?.field\n      || this.businessCollectionService.getField(this.args.modelToFetch)\n    );\n  }\n\n  get isHasManyCollection() {\n    return this.businessCollectionService.isHasManyCollection(this.field || this.collection);\n  }\n\n  get canCreate() {\n    return this.currentUser.canAddCollection(this.recordsContext.collection);\n  }\n\n  get cannotAccessSmartView() {\n    return this.abilities.cannot('access to smartView');\n  }\n\n  get cannotAccessLiveQuery() {\n    return this.abilities.cannot('access to liveQuery');\n  }\n\n  get cannotAccessScope() {\n    return this.abilities.cannot('access to scopes');\n  }\n\n  get isDisplayingSearchExtendedButton() {\n    return (\n      !this.isHasManyCollection\n      && !this.recordsContext.isSearchExtended\n      && !!this.recordsContext.search\n    );\n  }\n\n  get isLiveQuerySegment() {\n    return !!this.segment?.query;\n  }\n\n  get isScopeConfigured() {\n    return (\n      !!this.collection?.scope\n      && (!this.isHasManyCollection || this.lianaFeatures.isApplicationWideScopesAvailable)\n    );\n  }\n\n  get filterDefaultOperator() {\n    return !this.lianaFeatures.isGenericFiltersAvailable ? this.segment?.filter?.operator : null;\n  }\n\n  get isSwitchFilterOperatorDisabled() {\n    return (\n      !this.lianaFeatures.isGenericFiltersAvailable && !!this.segment?.filter?.conditions?.length\n    );\n  }\n\n  get shouldDisplayActionsDropdown() {\n    // TODO migrate to use action-service shouldDisplayActionsButton\n    return (\n      this.recordsContext\n      && ((this.recordsContext.selectedRecordsCount === 0\n        && this.currentUser.canExportCollection(this.recordsContext.collection))\n        || (this.recordsContext.selectedRecordsCount > 0\n          && (this.currentUser.canDeleteCollection(this.recordsContext.collection)\n            || this.currentUser.canAddCollection(this.recordsContext.collection)\n            || (this.field\n              && (isDissociateHasManyAvailable(\n                { currentUser: this.currentUser, lianaFeatures: this.lianaFeatures },\n                this.field,\n              )\n                || isDeleteHasManyAvailable(\n                  { currentUser: this.currentUser, lianaFeatures: this.lianaFeatures },\n                  this.field,\n                )))))\n        || this.recordsContext.collection.customActionsOrderedForUser?.any((smartAction) =>\n          smartAction.isAllowedForSelectedRecordsCount(this.recordsContext.selectedRecordsCount),\n        ))\n    );\n  }\n\n  @action\n  async deleteRecords(records, withSelect = true) {\n    await this.businessCollectionService.deleteRecords(this.recordsContext, records, withSelect);\n    this.recordsContext.resetSelectedRecords();\n    await this.triggerOnSelectedRecordsChange();\n\n    this.eventBus.trigger(EventBusEventsEnum.RefreshWorkspaceQueryParameters);\n  }\n\n  @action\n  async setupActions() {\n    if (this.args.hasHeader) {\n      this.enabledCustomActions = this.collection?.isEmbedded\n        ? []\n        : await this.customActionService.getEnabledCustomActions(\n            this.recordsContext.collection.customActionsOrderedForUser,\n            this.recordsContext.selectedRecords,\n          );\n    }\n    this.hasActionsBeenSetup = true;\n  }\n\n  @action\n  async dissociateRecords(records, withSelect = true) {\n    await this.businessCollectionService.deleteRecords(\n      this.recordsContext,\n      records,\n      withSelect,\n      true,\n    );\n  }\n\n  @action\n  async handleRowClick(index, shouldOpenInNewTab, record) {\n    if (this.args.shouldPreventChangeSelectedRecord?.()) return;\n\n    const recordPath = this.clientRecordFeature.getRecordPath(this.recordsContext.collection);\n    if (this.args.shouldSelectOnRowClick) {\n      if (\n        this.recordsContext.selectedRecords.length !== 1\n        || this.recordsContext.selectedRecords.firstObject !== record\n      ) {\n        this.recordsContext.resetSelectedRecords();\n        this.recordsContext.selectedRecords.pushObject(record);\n        this.recordsContext.areAllRecordsSelected = false;\n        this.triggerOnSelectedRecordsChange();\n      }\n    } else if (this.args.onRowClick) {\n      this.args.onRowClick(index, shouldOpenInNewTab, record);\n    } else if (shouldOpenInNewTab) {\n      window.open(\n        this.router.urlFor(\n          recordPath,\n          this.recordsContext.collection.shareableId,\n          this.recordsContext.collection.shareableId,\n          record.id,\n        ),\n      );\n    } else {\n      const routeParameters = [\n        this.recordsContext.collection.shareableId,\n        ...(this.router.currentRouteName.startsWith('project.rendering.data.collection')\n          ? []\n          : [this.recordsContext.collection.shareableId]),\n        record.id,\n      ];\n\n      this.router.transitionTo(recordPath, ...routeParameters);\n    }\n  }\n\n  @action\n  selectAllRecords() {\n    this.businessCollectionService.selectAllRecords(this.recordsContext);\n\n    this.triggerOnSelectedRecordsChange();\n  }\n\n  @action\n  unselectAllRecords() {\n    this.businessCollectionService.unselectAllRecords(this.recordsContext);\n\n    this.triggerOnSelectedRecordsChange();\n  }\n\n  @action\n  async sortByColumn(column, order) {\n    this.businessCollectionService.sortByColumn(this.recordsContext, column, order);\n\n    this.args.onSortingFieldNameChange?.(column.field.fieldName);\n    this.args.onSortingOrderChange?.(order);\n\n    await this.handleFetchRecords({ currentPage: 1 });\n  }\n\n  @action\n  async switchToDefaultListView() {\n    return this.businessCollectionService.switchToDefaultListView(this.recordsContext);\n  }\n\n  @action\n  async triggerSmartAction(smartAction, records, values, skipRefresh = false) {\n    return this.businessCollectionService.triggerSmartAction(\n      this.recordsContext,\n      smartAction,\n      records,\n      values,\n      skipRefresh,\n    );\n  }\n\n  @action\n  exportRecords() {\n    return this.businessCollectionService.exportRecords(this.recordsContext);\n  }\n\n  @action\n  async updateColumn(column) {\n    const columnIsVisible = await this.businessCollectionService.updateColumn(\n      this.recordsContext,\n      column,\n    );\n    if (columnIsVisible) {\n      await this.handleFetchRecords();\n    }\n    return columnIsVisible;\n  }\n\n  @action\n  async enableSearchExtended() {\n    this.args.onSearchExtendedChange?.(true);\n    return this.handleFetchRecords({ isSearchExtended: true });\n  }\n\n  @action\n  onToggleRow(...records) {\n    this.businessCollectionService.onToggleRow(this.recordsContext, ...records);\n    this.triggerOnSelectedRecordsChange();\n  }\n\n  @action\n  onRefresh(params) {\n    return this.handleFetchRecords(params);\n  }\n\n  @action\n  onRefreshAll() {\n    return this.handleFetchRecords(undefined, false);\n  }\n\n  @action\n  computeIsRecordSelect(record) {\n    if (this.recordsContext.isRecordExcluded(record)) {\n      return false;\n    }\n    if (this.recordsContext.areAllRecordsSelected) {\n      return true;\n    }\n    return this.recordsContext.isRecordSelected(record);\n  }\n\n  // Helper methods for Smart Views\n  @action\n  async addCondition(condition, skipRefresh) {\n    this.recordsContext.viewListConditions.pushObject(condition);\n\n    if (!skipRefresh) {\n      await this.handleFetchRecords(undefined);\n    }\n  }\n\n  @action\n  async removeCondition(condition, skipRefresh) {\n    condition.unloadRecord();\n    this.recordsContext.viewListConditions.removeObject(condition);\n\n    if (!skipRefresh) {\n      await this.handleFetchRecords(undefined);\n    }\n  }\n\n  @action\n  handleFilter(filter, search) {\n    return this.handleFetchRecords({\n      currentPage: 1,\n      filter,\n      ...(search !== undefined && search !== this.recordsContext.search ? { search } : {}),\n    });\n  }\n\n  @action\n  handleSearch(search) {\n    return this.handleFetchRecords({ currentPage: 1, search });\n  }\n\n  @action\n  async handleSegmentChange(segmentId) {\n    if (this.args.shouldPreventChangeSelectedRecord?.()) return;\n\n    const segment = (segmentId && this.store.peekRecord('segment', segmentId)) || null;\n    this.args.onSegmentChange?.(segment);\n    if (this.args.recordsContext) {\n      await this.handleFetchRecords({\n        segment,\n        selectedRecords: [],\n        ...this.businessCollectionService.getDefaultSorting(\n          segment || this.recordsContext.collection,\n        ),\n      });\n    }\n  }\n\n  @action\n  handleRefresh() {\n    return this.handleFetchRecords({ currentPage: this.recordsContext.currentPage });\n  }\n\n  @action\n  async fetchRecordsOnArgsChange(element, [filter, search]) {\n    if (!this.recordsContext) return;\n\n    if (\n      this.collection === this.recordsContext.collection\n      && this.segment === this.recordsContext.segment\n      && (this.recordsContext.filter !== filter || this.recordsContext.search !== search)\n    ) {\n      // Without this Ember throw an error about a double update of currentPage in the same computation for an unknown reason\n      await pauseFor();\n\n      await this.handleFetchRecords({\n        filter,\n        search,\n        currentPage: 1,\n      });\n    }\n  }\n\n  async handleFetchRecords(params = {}, shouldCheckForTracking = true) {\n    const collection = this.collection || this.recordsContext?.collection;\n    try {\n      await this.fetchRecords.perform(params, shouldCheckForTracking);\n    } catch (error) {\n      if (didCancel(error)) {\n        console.debug('fetchRecords has been cancelled for collection', collection?.name);\n        return;\n      }\n      console.error('Error while fetching records', error);\n      throw error;\n    }\n  }\n\n  fetchRecords = task({ restartable: true }, async (params = {}, shouldCheckForTracking = true) => {\n    await this.businessCollectionService.fetchRecords.perform(\n      this.recordsContext,\n      params,\n      shouldCheckForTracking,\n      {\n        onRecordsFetched: this.args.onRecordsFetched,\n        onSelectedRecordsChange: () => this.triggerOnSelectedRecordsChange(),\n        onPageChange: this.args.onPageChange,\n      },\n    );\n  });\n\n  async fetchRecordsIfNecessary() {\n    if (this.lianaSession.isAuthenticated()) {\n      await this.onRefresh();\n    } else {\n      this.lianaSession.on('authenticationSucceeded', () => this.onRefresh());\n    }\n  }\n\n  // This action is added only to patch a strange issue when updating the view option\n  // in the WS collection component: the recordsContext observer is not triggered and\n  // thus the view is not live updated.\n  // Hopefully this will become unnecessary when upgrading Ember or removing observers.\n  @action\n  async handleRecordsContextUpdate() {\n    if (this.args.recordsContext?.viewList === this.recordsContext?.viewList) return;\n\n    await this.updateRecordsContext();\n  }\n\n  async updateRecordsContext() {\n    if (this.isDestroying || this.isDestroyed) return;\n    if (!this.args.recordsContext) return;\n\n    await this.handleSetupCollectionList();\n  }\n\n  async handleSetupCollectionList() {\n    const { collection } = this;\n    try {\n      await this.setupCollectionList.perform();\n    } catch (error) {\n      if (didCancel(error)) {\n        console.debug('setupCollectionList has been cancelled for collection', collection?.name);\n        return;\n      }\n      throw error;\n    }\n  }\n\n  setupCollectionList = task({ restartable: true }, async () => {\n    if (!this.collection && !this.args.recordsContext) return;\n    if (this.args.recordsContext && this.args.recordsContext === this.recordsContext) return;\n\n    if (this.oldModelToFetch) {\n      this.betaCollectionListCommunicator.removeListenerOnRefreshAll(\n        this.oldModelToFetch,\n        this.onRefreshAll,\n      );\n    }\n\n    const newModelToFetch = this.args.modelToFetch || this.field || this.collection;\n    this.betaCollectionListCommunicator.addListenerOnRefreshAll(newModelToFetch, this.onRefreshAll);\n    this.oldModelToFetch = newModelToFetch;\n\n    if (!this.args.recordsContext) {\n      // Reset the records count before executing long process\n      this.args.onRecordsFetched?.({ recordsCount: null });\n    }\n\n    const sortingParameters = this.args.sortingFieldName\n      ? [{ fieldName: this.args.sortingFieldName, order: this.args.sortingOrder }]\n      : null;\n\n    await waitForNextRunLoop();\n    // Initialize the recordsContext with what we have in argument\n    // so especially every url query parameter we could have from a controller\n\n    this.recordsContext =\n      this.args.recordsContext\n      || this.businessCollectionService.createRecordState({\n        ...this.args,\n        ...(sortingParameters ? { sortingParameters } : {}),\n        view: this.args.smartView,\n        listComponentName: this.args.componentName,\n      });\n\n    if (!this.recordsContext.listComponentName) {\n      this.lastMainViewId = (await this.collection?.mainView)?.id;\n      await this.businessCollectionService.loadSmartView(this.recordsContext);\n    }\n\n    if (!this.recordsContext.records?.length) {\n      this.fetchRecordsIfNecessary();\n    }\n\n    if (!this.hasActionsBeenSetup) {\n      await this.setupActions();\n    }\n  });\n\n  async triggerOnSelectedRecordsChange() {\n    this.args.onSelectedRecordsChange?.({\n      selectedRecordsCount: this.recordsContext.selectedRecordsCount,\n      selectedRecords: this.recordsContext.selectedRecords,\n      areAllRecordsSelected: this.recordsContext.areAllRecordsSelected,\n      selectedRecordsContext: this.recordsContext.getSelectedQuery(),\n      recordsContext: this.recordsContext,\n    });\n    await this.setupActions();\n  }\n}\n","import type { FilterAggregator } from 'client/data/models/filter';\nimport type { FilterAttributes } from 'client/data/models/fragment-filter';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Model from 'client/data/models/abstract-model';\nimport CollectionModel from 'client/data/models/collection';\nimport CustomActionModel from 'client/data/models/custom-action';\nimport FieldModel from 'client/data/models/field';\nimport FilterModel from 'client/data/models/filter';\nimport FilterFragment from 'client/data/models/fragment-filter';\nimport SegmentModel from 'client/data/models/segment';\nimport validateArguments from 'client/decorators/validate';\nimport NestedCollection from 'client/utils/nested/collection';\nimport NestedField from 'client/utils/nested/field';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface DataDisplayBetaCollectionListHeaderComponentArgs {\n  areAllRecordsSelected?: boolean;\n  collection: CollectionModel | NestedCollection;\n  createRecord?: () => unknown;\n  deleteRecords?: (recordsToDelete: ClientRecordModel[]) => Promise<void>;\n  enabledCustomActions?: CustomActionModel[];\n  filter?: FilterModel | FilterFragment;\n  filterDefaultOperator?: FilterAggregator;\n  filterDisableSwitchOperator?: boolean;\n  filterLocation?: string;\n  createFilter?: (filter: FilterAttributes) => FilterModel | FilterFragment;\n  field?: FieldModel | NestedField;\n  hasCreateButton?: boolean;\n  hasActions?: boolean;\n  shouldShowWorklows?: boolean;\n  hasEditLayoutButton?: boolean;\n  hasFiltersButton?: boolean;\n  hasRoundedTop?: boolean;\n  hasSideMenu?: boolean;\n  hasSearchbar?: boolean;\n  hasSegmentsListDisabled?: boolean;\n  onExport?: () => Promise<void>;\n  onFilter?: (filter: FilterFragment | FilterModel, search: string) => Promise<void>;\n  onRefresh?: () => Promise<void>;\n  onSearch?: (search: string) => Promise<void>;\n  openDuplicateRecord?: (recordToDuplicate: ClientRecordModel) => Promise<void>;\n  onSegmentChange?: (segment: SegmentModel | null) => Promise<void>;\n  recordsCount?: number;\n  search?: string;\n  selectedRecords?: ClientRecordModel[];\n  selectedRecordsCount?: number;\n  segment?: SegmentModel;\n  segmentsList?: SegmentModel[];\n  shouldDisplayActionsDropdown?: boolean;\n  triggerSmartAction?: (smartAction: CustomActionModel) => Promise<void>;\n}\n\n@validateArguments\nexport default class DataDisplayBetaCollectionListHeaderComponent extends Component<DataDisplayBetaCollectionListHeaderComponentArgs> {\n  @service declare lianaFeatures: LianaFeaturesService;\n\n  static propTypes = {\n    areAllRecordsSelected: PropTypes.bool,\n    collection: PropTypes.oneOfType([\n      PropTypes.instanceOf(CollectionModel),\n      PropTypes.instanceOf(NestedCollection),\n    ]).isRequired,\n    createRecord: PropTypes.func,\n    deleteRecords: PropTypes.func,\n    enabledCustomActions: PropTypes.arrayOf(PropTypes.instanceOf(CustomActionModel)),\n    filter: PropTypes.oneOfType([\n      PropTypes.instanceOf(FilterModel),\n      PropTypes.instanceOf(FilterFragment),\n    ]),\n    filterDefaultOperator: PropTypes.oneOf(['and', 'or']),\n    filterDisableSwitchOperator: PropTypes.bool,\n    filterLocation: PropTypes.string,\n    createFilter: PropTypes.func,\n    field: PropTypes.oneOfType([\n      PropTypes.instanceOf(FieldModel),\n      PropTypes.instanceOf(NestedField),\n    ]),\n    hasCreateButton: PropTypes.bool,\n    hasActions: PropTypes.bool,\n    shouldShowWorklows: PropTypes.bool,\n    hasEditLayoutButton: PropTypes.bool,\n    hasFiltersButton: PropTypes.bool,\n    hasRoundedTop: PropTypes.bool,\n    hasSideMenu: PropTypes.bool,\n    hasSearchbar: PropTypes.bool,\n    hasSegmentsListDisabled: PropTypes.bool,\n    onExport: PropTypes.func,\n    onFilter: PropTypes.func,\n    onRefresh: PropTypes.func,\n    onSearch: PropTypes.func,\n    openDuplicateRecord: PropTypes.func,\n    onSegmentChange: PropTypes.func,\n    recordsCount: PropTypes.number,\n    search: PropTypes.string,\n    selectedRecords: PropTypes.arrayOf(PropTypes.instanceOf(Model)),\n    selectedRecordsCount: PropTypes.number,\n    segment: PropTypes.instanceOf(SegmentModel),\n    segmentsList: PropTypes.arrayOf(PropTypes.instanceOf(SegmentModel)),\n    shouldDisplayActionsDropdown: PropTypes.bool,\n    triggerSmartAction: PropTypes.func,\n    shouldPreventActionTrigger: PropTypes.func,\n  };\n\n  @tracked searchValue = this.args.search;\n\n  @action\n  handleApplyFilter(filter: FilterFragment | FilterModel) {\n    return this.args.onFilter(filter, this.searchValue);\n  }\n\n  get filterableFields() {\n    return !this.args.field || this.lianaFeatures.isFilterOnRelatedDataAvailable\n      ? this.args.collection.filterableFields\n      : this.args.collection.filterableFieldsWithoutRelationships;\n  }\n\n  get isFilterable() {\n    if (!this.args.collection.isFilterable) return false;\n    return this.args.field ? this.lianaFeatures.isFilterOnRelatedDataAvailable : true;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaHeader\\n  @hasRoundedTop={{@hasRoundedTop}}\\n  @hasSideMenu={{@hasSideMenu}}\\n  @isLayoutEditorButtonHidden={{not @hasEditLayoutButton}}\\n  @title={{or @title @field.displayName @collection.displayNameWithEmoji}}\\n  @onTitleClick={{@onTitleClick}}\\n  ...attributes\\n>\\n  <:left-buttons>\\n    {{yield to=\\'before-left\\'}}\\n    {{#if @segmentsList.length}}\\n      <Dropdown::BetaDropdownSearch\\n        @items={{@segmentsList}}\\n        @hasEmptyOption={{not @collection.isRestrictedToSegments}}\\n        @emptyOptionLabel=\\\"All\\\"\\n        @onSelect={{@onSegmentChange}}\\n        @selectedItemId={{or @segment.id null}}\\n        @disabled={{@hasSegmentsListDisabled}}\\n        class=\\\"c-beta-collection-list-header__segment-selector\\\"\\n        data-test-beta-collection-list-header-segments\\n      />\\n    {{/if}}\\n    {{yield to=\\'after-left\\'}}\\n  </:left-buttons>\\n  <:search-and-filter>\\n    {{yield to=\\'before-center\\'}}\\n    {{#unless @isEditMode}}\\n      {{#if (and @hasSearchbar @collection.isSearchable)}}\\n        <Shared::BetaSearchBar\\n          @placeholder={{if\\n            @recordsCount\\n            (concat\\n              \\'Search within \\'\\n              (format-number-to-locale @recordsCount)\\n              \\' \\'\\n              (if\\n                @field\\n                (lowercase-text @field.displayName)\\n                (display-name-pluralize\\n                  @collection.displayNameLowerCase\\n                  @collection.displayNamePluralLowerCase\\n                  @recordsCount\\n                )\\n              )\\n              \\'...\\'\\n            )\\n          }}\\n          @searchFunction={{@onSearch}}\\n          @searchValue={{one-way this.searchValue}}\\n          @onChange={{fn (mut this.searchValue)}}\\n          class=\\\"c-beta-collection-list-header__search-bar\\\"\\n          data-beta-collection-list-searchbar\\n        />\\n      {{/if}}\\n      {{#if (and @hasFiltersButton this.isFilterable)}}\\n        <BetaFilter::Button\\n          @applyFilter={{this.handleApplyFilter}}\\n          @defaultOperator={{@filterDefaultOperator}}\\n          @disableSwitchOperator={{@filterDisableSwitchOperator}}\\n          @fieldsFilterable={{this.filterableFields}}\\n          @filter={{@filter}}\\n          @filterLocation={{@filterLocation}}\\n          @createFilter={{@createFilter}}\\n          @class={{get-classes-with-modifiers\\n            \\'c-beta-collection-list-header__action\\'\\n            without-searchbar=(not @hasSearchbar)\\n          }}\\n          data-beta-collection-list-filters\\n        />\\n      {{/if}}\\n    {{/unless}}\\n    {{yield to=\\'after-center\\'}}\\n  </:search-and-filter>\\n\\n  <:right-buttons>\\n    {{yield to=\\'before-right\\'}}\\n    {{#unless @collection.isEmbedded}}\\n      <Shared::Button::BetaButton\\n        @action={{@onRefresh}}\\n        @async={{false}}\\n        @iconName=\\\"refresh\\\"\\n        @type=\\\"secondary\\\"\\n        data-beta-collection-list-header-refresh-button\\n      />\\n    {{/unless}}\\n    <Dropdown::BetaDropdownActions\\n      @shouldDisplayActionDropdown={{(and @hasActions @shouldDisplayActionsDropdown)}}\\n      @shouldDisplayWorkflowDropdown={{@shouldShowWorklows}}\\n      @areAllRecordsSelected={{@areAllRecordsSelected}}\\n      @collection={{@collection}}\\n      @segment={{@segment}}\\n      @customActions={{or @collection.customActionsOrderedForUser (array)}}\\n      @enabledCustomActions={{@enabledCustomActions}}\\n      @deleteRecords={{@deleteRecords}}\\n      @isDeletable={{and (not @field) (current-user \\'canDeleteCollection\\' @collection)}}\\n      @isDuplicable={{and (not @field) (current-user \\'canAddCollection\\' @collection)}}\\n      @isListView={{true}}\\n      @openDuplicateRecord={{@openDuplicateRecord}}\\n      @selectedRecordsArray={{@selectedRecords}}\\n      @selectedRecordsCount={{@selectedRecordsCount}}\\n      @shouldPreventOpen={{@shouldPreventActionTrigger}}\\n      @triggerCustomAction={{@triggerSmartAction}}\\n      data-beta-collection-list-header-actions\\n    >\\n      {{#if (and (current-user \\'canExportCollection\\' @collection) (eq @selectedRecordsCount 0))}}\\n        <Form::Dropdown::Action\\n          @name={{concat \\'Export \\' @collection.displayNamePluralLowerCase}}\\n          @onClick={{@onExport}}\\n          data-beta-collection-list-header-action-export\\n        />\\n      {{/if}}\\n      {{#if (and @field @selectedRecordsCount)}}\\n        <Dropdown::BetaDropdownActions::DissociateAction\\n          @field={{@field}}\\n          @onDissociate={{fn @dissociateRecords @selectedRecords true}}\\n          data-beta-collection-list-header-action-dissociate\\n        />\\n        <Dropdown::BetaDropdownActions::DeleteAction\\n          @field={{@field}}\\n          @onDelete={{fn @deleteRecords @selectedRecords}}\\n          @onAfterDelete={{this.afterDeleteRecords}}\\n          @parentRecord={{@model.record}}\\n          @selectedRecords={{this.selectedRecords}}\\n          @selectedRecordsContext={{this.selectedRecordsContext}}\\n          data-beta-collection-list-header-action-delete\\n        />\\n      {{/if}}\\n    </Dropdown::BetaDropdownActions>\\n\\n    {{#if (and @hasCreateButton @createRecord)}}\\n      <Shared::Button::BetaButton\\n        @action={{@createRecord}}\\n        @async={{false}}\\n        @iconName=\\\"add\\\"\\n        @type=\\\"primary\\\"\\n        title=\\\"Create a new {{@collection.displayNameLowerCase}}\\\"\\n        data-beta-collection-list-header-create\\n      />\\n    {{/if}}\\n\\n    {{yield to=\\'after-right\\'}}\\n  </:right-buttons>\\n</BetaHeader>\\n', { moduleName: 'client/legacy/pods/components/data-display/beta-collection-list/header/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-beta-collection-list\\\"\\n  ...attributes\\n  {{did-update this.fetchRecordsOnArgsChange @filter @search}}\\n  {{did-update this.handleRecordsContextUpdate @recordsContext}}\\n  data-beta-collection-list\\n>\\n  {{#if (and @hasHeader this.recordsContext)}}\\n    <DataDisplay::BetaCollectionList::Header\\n      @areAllRecordsSelected={{this.recordsContext.areAllRecordsSelected}}\\n      @collection={{or this.recordsContext.collection this.collection}}\\n      @field={{this.recordsContext.field}}\\n      @createRecord={{if this.canCreate @openCreateRecord}}\\n      @deleteRecords={{this.deleteRecords}}\\n      @dissociateRecords={{this.dissociateRecords}}\\n      @enabledCustomActions={{this.enabledCustomActions}}\\n      @filter={{this.recordsContext.filter}}\\n      @filterDefaultOperator={{this.filterDefaultOperator}}\\n      @filterDisableSwitchOperator={{this.isSwitchFilterOperatorDisabled}}\\n      @filterLocation={{or @filterLocation this.localFilterLocation}}\\n      @createFilter={{this.businessCollectionService.createFilter}}\\n      @hasCreateButton={{@hasCreateButton}}\\n      @hasActions={{@hasActions}}\\n      @shouldShowWorklows={{@shouldShowWorklows}}\\n      @hasEditLayoutButton={{@hasHeaderEditLayoutButton}}\\n      @hasFiltersButton={{and @hasFiltersButton (not this.field.isEmbedded)}}\\n      @hasRoundedTop={{true}}\\n      @hasSideMenu={{@hasSideMenu}}\\n      @hasSearchbar={{and @hasSearchbar (not this.field.isEmbedded)}}\\n      @hasSegmentsListDisabled={{@hasSegmentsListDisabled}}\\n      @onExport={{this.exportRecords}}\\n      @onFilter={{this.handleFilter}}\\n      @onRefresh={{this.handleRefresh}}\\n      @onSearch={{this.handleSearch}}\\n      @openDuplicateRecord={{@openDuplicateRecord}}\\n      @onSegmentChange={{this.handleSegmentChange}}\\n      @onTitleClick={{@onTitleClick}}\\n      @recordsCount={{this.recordsContext.recordsCount}}\\n      @search={{this.recordsContext.search}}\\n      @selectedRecords={{this.recordsContext.selectedRecords}}\\n      @selectedRecordsCount={{this.recordsContext.selectedRecordsCount}}\\n      @segment={{this.recordsContext.segment}}\\n      @segmentsList={{or @segmentsList @collection.segmentsVisibleSorted}}\\n      @shouldDisplayActionsDropdown={{this.shouldDisplayActionsDropdown}}\\n      @shouldPreventActionTrigger={{@shouldPreventChangeSelectedRecord}}\\n      @title={{@title}}\\n      @triggerSmartAction={{this.triggerSmartAction}}\\n    >\\n      <:before-left>{{yield to=\\'header-before-left\\'}}</:before-left>\\n      <:after-left>{{yield to=\\'header-after-left\\'}}</:after-left>\\n      <:before-center>{{yield to=\\'header-before-center\\'}}</:before-center>\\n      <:after-center>{{yield to=\\'header-after-center\\'}}</:after-center>\\n      <:before-right>{{yield to=\\'header-before-right\\'}}</:before-right>\\n      <:after-right>{{yield to=\\'header-after-right\\'}}</:after-right>\\n    </DataDisplay::BetaCollectionList::Header>\\n    {{yield to=\\'below-header\\'}}\\n  {{/if}}\\n  <div class=\\\"l-beta-collection-list-body\\\">\\n    {{#let (or @componentName this.recordsContext.listComponentName) as |componentName|}}\\n      {{#if (and this.recordsContext.viewList componentName)}}\\n        {{#let (component componentName) as |CustomViewListComponent|}}\\n          <CustomViewListComponent\\n            @addCondition={{this.addCondition}}\\n            @areAllRecordsSelected={{this.recordsContext.areAllRecordsSelected}}\\n            @canEdit={{and\\n              @canEditRecordsPerPage\\n              (not this.recordsContext.field.nestedOrReferencedCollection.isEmbedded)\\n            }}\\n            @collection={{this.recordsContext.collection}}\\n            @columns={{if\\n              this.recordsContext.segment.hasColumnsConfiguration\\n              this.recordsContext.segment.columnsOrdered\\n              this.recordsContext.collection.columnsOrdered\\n            }}\\n            @columnsVisible={{this.recordsContext.columns}}\\n            @computeIsRecordSelect={{this.computeIsRecordSelect}}\\n            @creatable={{if @openCreateRecord true false}}\\n            @currentPage={{one-way this.recordsContext.currentPage}}\\n            @currentPageSelectedRecords={{this.recordsContext.selectedRecords}}\\n            @deleteRecords={{this.deleteRecords}}\\n            @displayNamePlural={{this.displayNamePlural}}\\n            @displaySearchExtendedButton={{this.isDisplayingSearchExtendedButton}}\\n            @enableSearchExtended={{this.enableSearchExtended}}\\n            @error={{or @error this.recordsContext.error}}\\n            @fetchRecords={{perform this.fetchRecords}}\\n            @filterLocation={{if @hasHeader this.localFilterLocation @filterLocation}}\\n            @filters={{this.recordsContext.filter.conditions}}\\n            @filter={{this.recordsContext.filter}}\\n            @onFilter={{this.handleFilter}}\\n            @isCurrentPageSelected={{this.recordsContext.isCurrentPageSelected}}\\n            @isEditMode={{@isEditMode}}\\n            @isEmbedded={{this.recordsContext.field.nestedOrReferencedCollection.isEmbedded}}\\n            @isLoading={{this.recordsContext.isLoading}}\\n            @isNumberOfPagesDeactivated={{this.recordsContext.isCountDeactivated}}\\n            @isNumberOfPagesLoading={{this.recordsContext.isCountLoading}}\\n            @isSection={{@isSummaryViewSection}}\\n            @numberOfPages={{this.recordsContext.numberOfPages}}\\n            @onRowClick={{this.handleRowClick}}\\n            @onToggleRow={{this.onToggleRow}}\\n            @openCreateRecord={{@openCreateRecord}}\\n            @parentRecord={{this.recordsContext.parentRecord}}\\n            @records={{this.recordsContext.records}}\\n            @recordsCount={{this.recordsContext.recordsCount}}\\n            @removeCondition={{this.removeCondition}}\\n            @searchValue={{this.recordsContext.search}}\\n            @segmentId={{this.recordsContext.segment.id}}\\n            @selectAllRecords={{this.selectAllRecords}}\\n            @selectedRecordsCount={{this.recordsContext.selectedRecordsCount}}\\n            @showMore={{@showMore}}\\n            @sortBy={{this.sortByColumn}}\\n            @sortedField={{this.recordsContext.sortField}}\\n            @sortedFieldOrder={{this.recordsContext.sortingOrder}}\\n            @triggerCustomAction={{this.triggerSmartAction}}\\n            @unselectAllRecords={{this.unselectAllRecords}}\\n            @updateColumn={{this.updateColumn}}\\n            @viewList={{this.recordsContext.viewList}}\\n            @withNoBorderTop={{true}}\\n            @shouldPreventChangeSelectedRecord={{@shouldPreventChangeSelectedRecord}}\\n            @resizableColumnsState={{@resizableColumnsState}}\\n            class={{if this.recordsContext.viewList.isReact \\'l-smart-view-react-container\\'}}\\n            data-beta-collection-list-view={{componentName}}\\n          />\\n        {{/let}}\\n      {{else if this.recordsContext.error}}\\n        <Layout::LayoutError @error={{this.recordsContext.error}} data-beta-collection-list-error />\\n      {{else}}\\n        <Layout::LayoutLoader @type=\\\"data\\\" data-beta-collection-list-loader />\\n      {{/if}}\\n    {{/let}}\\n  </div>\\n\\n  {{#unless this.recordsContext.isLoading}}\\n    <RenderingTracker @recordsContext={{this.recordsContext}} />\\n  {{/unless}}\\n\\n  {{#unless @componentName}}\\n    {{#if (and this.cannotAccessSmartView this.isSmartView)}}\\n      <Modal::ModalUpgradeToPaidPlan\\n        @cancel={{this.switchToDefaultListView}}\\n        @featureName=\\\"smartViews\\\"\\n        @description=\\\"This view uses a premium feature that has been configured in development environment or during a trial period.\\\"\\n        data-beta-collection-list-modal-upgrade=\\\"smart-view\\\"\\n      />\\n    {{else if (and this.isLiveQuerySegment this.cannotAccessLiveQuery)}}\\n      <Modal::ModalUpgradeToPaidPlan\\n        @cancel={{@deactivateCurrentSegment}}\\n        @featureName=\\\"liveQuery\\\"\\n        @hideCancel={{this.isRestrictedToSegments}}\\n        @description=\\\"This view uses a premium feature that has been configured in development environment or during a trial period.\\\"\\n        data-beta-collection-list-modal-upgrade=\\\"live-query\\\"\\n      />\\n    {{else if (and this.isScopeConfigured this.cannotAccessScope)}}\\n      <Modal::ModalUpgradeToPaidPlan\\n        @cancel={{(do-nothing-function)}}\\n        @featureName=\\\"scopes\\\"\\n        @hideCancel={{true}}\\n        @description=\\\"This view uses Scopes premium feature that has been configured in development environment or during a trial period.\\\"\\n        data-beta-collection-list-modal-upgrade=\\\"scopes\\\"\\n      />\\n    {{/if}}\\n  {{/unless}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/data-display/beta-collection-list/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div ...attributes class=\\\"c-branch-origin\\\">\\n  {{#if @branch.originEnvironment}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{if @branch.closedAt \\'merge\\' \\'subdirectory_arrow_right\\'}}\\n    />\\n    <span class=\\\"c-branch-origin__based\\\">\\n      {{if @branch.closedAt \\'In\\' \\'Based on\\'}}\\n    </span>\\n    <Shared::DataDisplay::FontDisplay\\n      @color={{@branch.originEnvironment.badgeColor}}\\n      @value={{concat \\'[\\' @branch.originEnvironment.name \\']\\'}}\\n    />\\n  {{else}}\\n    ⚠️ No origin set\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/data-display/branch-origin/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Model from '@ember-data/model';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport Collection from 'client/data/models/collection';\nimport Field from 'client/data/models/field';\nimport creationFormHandler from 'client/decorators/creation-form-handler';\nimport validateArguments from 'client/decorators/validate';\nimport NestedCollection from 'client/utils/nested/collection';\nimport NestedField from 'client/utils/nested/field';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@creationFormHandler\n@validateArguments\nexport default class DataDisplayRecordCreateEditModalComponent extends Component {\n  static propTypes = {\n    onRecordSaved: PropTypes.func.isRequired,\n    onCloseModal: PropTypes.func.isRequired,\n    parentRecord: PropTypes.instanceOf(Model),\n    field: PropTypes.oneOfType([PropTypes.instanceOf(Field), PropTypes.instanceOf(NestedField)]),\n    collection: PropTypes.oneOfType([\n      PropTypes.instanceOf(Collection),\n      PropTypes.instanceOf(NestedCollection),\n    ]),\n    record: PropTypes.instanceOf(Model),\n    isRecordEdition: PropTypes.bool,\n  };\n\n  @service eventBus;\n  @service recordDuplicator;\n  @service collectionState;\n  @service('feature/client-record') clientRecordFeature;\n\n  @tracked _hasFormErrors = false;\n\n  constructor(...args) {\n    super(...args);\n\n    this.instantiateRecord({\n      collection: this.args.collection,\n      field: this.args.field,\n      parentRecord: this.args.parentRecord,\n      record: this.args.isRecordEdition ? this.args.record : null,\n      recordToDuplicate: this.args.isRecordEdition ? null : this.args.record,\n      isRecordEdition: this.args.isRecordEdition,\n    });\n  }\n\n  @action\n  cancel() {\n    if (this.args.isRecordEdition && !this?.formToDisplay?.isBelongsToCreation) {\n      this.args.record.rollbackAttributes();\n      this.args.record.rollbackRelationships('belongsTo');\n      this.args.onCloseModal();\n    } else {\n      this.cancelLastRecordCreation();\n      if (!this.formToDisplay) {\n        this.args.onCloseModal();\n      }\n    }\n  }\n\n  @action\n  async save() {\n    if (this.args.isRecordEdition && !this?.formToDisplay?.isBelongsToCreation) {\n      const isRecordEdited = await this.clientRecordFeature.upsertRecord(this.args.record);\n      if (isRecordEdited) {\n        this.args.onRecordSaved();\n      }\n    } else {\n      const isRecordCreated = await this._createRecord();\n\n      if (isRecordCreated) {\n        this.eventBus.trigger('recordCreated');\n        if (!this.formToDisplay && !this.isRecordEdition) {\n          this.args.onRecordSaved();\n        }\n      }\n    }\n  }\n\n  @action\n  closeModal() {\n    const sure = window.confirm(\n      `Closing the ${\n        this.args.isRecordEdition ? 'edition' : 'creation'\n      } modal will discard any unsaved changes.`,\n    );\n\n    if (sure) {\n      this.closeRecordCreation();\n      this.args.onCloseModal();\n    }\n  }\n\n  @action\n  handleFormValidityChange(hasErrors) {\n    this._hasFormErrors = hasErrors;\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.collectionState.currentRecord = null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.formToDisplay.record}}\\n  <Shared::BetaModal\\n    @onClose={{this.closeModal}}\\n    @title=\\\"{{if\\n      this.formToDisplay.record.isNew\\n      \\'Create a new\\'\\n      \\'Edit a\\'\\n    }} {{this.formToDisplay.displayName}}\\\"\\n    class=\\\"c-record-view-create-edit-modal\\\"\\n    data-test-record-view-create-edit-modal\\n    ...attributes\\n  >\\n    <div class=\\\"l-record-view-create-edit-modal-content\\\">\\n      <DataDisplay::Record::Details\\n        @collection={{this.formToDisplay.collection}}\\n        @contextConfiguration={{hash createNewBelongsTo=this.createNewBelongsTo}}\\n        @disableNested={{false}}\\n        @parentCollection={{this.formToDisplay.field.collection}}\\n        @parentRecord={{this.formToDisplay.parentRecord}}\\n        @prefilledRows={{this.formToDisplay.prefilledRows}}\\n        @record={{this.formToDisplay.record}}\\n        @rows={{if\\n          this.formToDisplay.record.isNew\\n          this.formToDisplay.collection.viewCreate.visibleRowCreates\\n          this.formToDisplay.collection.viewEdit.visiblePlainRows\\n        }}\\n        @onFormValidityChange={{this.handleFormValidityChange}}\\n        data-test-record-view-create-edit-modal-details\\n      />\\n\\n      <div class=\\\"l-record-view-create-edit-modal-content__buttons\\\">\\n        <Shared::Button::BetaButton\\n          @action={{this.cancel}}\\n          @async={{false}}\\n          @text=\\\"Cancel\\\"\\n          @type=\\\"secondary\\\"\\n          class=\\\"c-record-view-create-edit-modal__cancel-button\\\"\\n          data-test-record-view-create-edit-modal-cancel\\n        />\\n        <Shared::Button::BetaButton\\n          @action={{this.save}}\\n          @async={{true}}\\n          @withoutCallback={{true}}\\n          @disabled={{this._hasFormErrors}}\\n          @text=\\\"{{if\\n            this.formToDisplay.record.isNew\\n            \\'Create\\'\\n            \\'Edit\\'\\n          }} {{this.formToDisplay.displayName}}\\\"\\n          @type=\\\"primary\\\"\\n          class=\\\"c-record-view-create-edit-modal__create-button\\\"\\n          data-test-record-view-create-edit-modal-save\\n        />\\n      </div>\\n    </div>\\n  </Shared::BetaModal>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/data-display/record/create-edit-modal/template.hbs' });\n","import { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport Model from '@ember-data/model';\nimport Component from '@glimmer/component';\nimport { TrackedSet } from 'tracked-built-ins';\n\nimport Collection from 'client/data/models/collection';\nimport Field from 'client/data/models/field';\nimport { any, argument, arrayOf, oneOfType, optional, shape } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport NestedCollection from 'client/utils/nested/collection';\nimport NestedField from 'client/utils/nested/field';\n\n@validateArguments\nexport default class DataDisplayRecordDetailsComponent extends Component {\n  @argument(Model) record;\n  @argument(oneOfType([Collection, NestedCollection])) collection;\n  @argument(arrayOf(shape({ field: oneOfType([Field, NestedField]) }))) rows;\n\n  @argument(optional(arrayOf(shape({ field: Field })))) prefilledRows;\n  @argument(optional(Model)) parentRecord;\n  @argument(optional(oneOfType([Collection, NestedCollection]))) parentCollection;\n  @argument(optional(Boolean)) readMode;\n  @argument(optional(Boolean)) disableNested;\n  @argument(optional(any())) contextConfiguration;\n\n  _invalidFields = new TrackedSet();\n\n  get elementId() {\n    return guidFor(this);\n  }\n\n  get hasAnyFieldError() {\n    return this._invalidFields.size > 0;\n  }\n\n  @action\n  handleFieldValidityChange(fieldName, isValid) {\n    if (isValid) {\n      this._invalidFields.delete(fieldName);\n    } else {\n      this._invalidFields.add(fieldName);\n    }\n  }\n\n  @action\n  resetFieldErrors() {\n    this._invalidFields.clear();\n  }\n\n  @action\n  notifyFormValidity() {\n    this.args.onFormValidityChange?.(this.hasAnyFieldError);\n  }\n\n  @action\n  scrollToTop() {\n    const element = document.getElementById(this.elementId);\n    element.parentElement.scrollTop = 0;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<section\\n  id={{this.elementId}}\\n  {{did-update this.scrollToTop @record}}\\n  {{did-insert this.notifyFormValidity}}\\n  {{did-update this.resetFieldErrors @record}}\\n  {{did-update this.notifyFormValidity this.hasAnyFieldError}}\\n  data-test-view-edit-details\\n  ...attributes\\n>\\n  {{#each @rows as |row|}}\\n    <Form::FormValue\\n      @displayName={{row.field.displayNameTitlize}}\\n      @readMode={{@readMode}}\\n      @isReadOnly={{or row.field.isReadOnly @disabled}}\\n      @disableNested={{@disableNested}}\\n      @formClass={{unless @compactDisplay \\'l-dmb\\'}}\\n      @labelPosition={{if @compactDisplay \\'browser-extension\\' \\'top\\'}}\\n      @field={{row.field}}\\n      @parentCollection={{@parentCollection}}\\n      @parentRecord={{@parentRecord}}\\n      @collection={{@collection}}\\n      @record={{@record}}\\n      @isPrefilledValue={{array-contains @prefilledRows row}}\\n      @contextConfiguration={{@contextConfiguration}}\\n      @height={{250}}\\n      @onFieldValidityChange={{this.handleFieldValidityChange}}\\n    />\\n  {{/each}}\\n</section>\\n', { moduleName: 'client/legacy/pods/components/data-display/record/details/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  @type={{or @type \\'primary\\'}}\\n  @text={{@text}}\\n  @onClick={{@onClick}}\\n  disabled={{@isDisabled}}\\n  class={{get-classes-with-modifiers \\'c-summary-view-button\\' build-mode=@isEditMode}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/data-display/record/summary/button/template.hbs' });\n","import type { Router } from '@ember/routing';\nimport type CollectionModel from 'client/data/models/collection';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type FieldModel from 'client/data/models/field';\nimport type SummaryViewFragment from 'client/data/models/summary-view';\nimport type SummaryViewItemFragment from 'client/data/models/summary-view-item';\nimport type SummaryViewItemDataFragment from 'client/data/models/summary-view-item-data';\nimport type SummaryViewSectionFragment from 'client/data/models/summary-view-section';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type StoreService from 'client/legacy/services/store';\nimport type SummaryViewStateService from 'client/legacy/services/summary-view-state';\nimport type { AbilitiesService } from 'ember-can';\nimport type { FragmentArray } from 'ember-data-model-fragments/attributes';\nimport type { GridHTMLElement, GridStackNode } from 'gridstack';\n\nimport { action, set } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { didCancel, restartableTask, timeout } from 'ember-concurrency';\nimport window from 'ember-window-mock';\nimport { TrackedSet } from 'tracked-built-ins';\n\nimport { SummaryViewItemTypeEnum } from 'client/data/models/summary-view-item';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\n// NOTICE: Find by id using depth first search.\nfunction findById(\n  parent: SummaryViewFragment | SummaryViewSectionFragment | SummaryViewItemFragment,\n  data: SummaryViewSectionFragment[] | SummaryViewItemFragment[],\n  id: string,\n): {\n  parent: SummaryViewFragment | SummaryViewSectionFragment | SummaryViewItemFragment;\n  item: SummaryViewSectionFragment | SummaryViewItemFragment | SummaryViewItemDataFragment;\n} | null {\n  for (let i = 0; i < data.length; i += 1) {\n    if (data.objectAt(i)._id === id) {\n      return { parent, item: data.objectAt(i) };\n    }\n\n    if (data.objectAt(i).children && data.objectAt(i).children.length) {\n      const result = findById(data.objectAt(i), data.objectAt(i).children, id);\n\n      if (result !== null) {\n        return result;\n      }\n    }\n  }\n\n  return null;\n}\n\ninterface DataDisplayRecordSummaryComponentArgs {\n  model: { collection: CollectionModel };\n  isReadMode: boolean;\n  segmentId: string;\n  customActions: CustomActionModel[];\n  workflows: WorkflowModel[];\n  enabledCustomActions: CustomActionModel[];\n  triggerCustomAction: (customAction: CustomActionModel) => Promise<void>;\n  onFormValidityChange?: (hasErrors: boolean) => void;\n}\n\nexport default class DataDisplayRecordSummaryComponent extends Component<DataDisplayRecordSummaryComponentArgs> {\n  @service private router: Router;\n  @service private summaryViewState: SummaryViewStateService;\n  @service private store: StoreService;\n  @service private abilities: AbilitiesService;\n  @service private currentUser: CurrentUserService;\n  @service private errorHandler: ErrorHandlerService;\n  @service('feature/workspace') private workspaceFeature: WorkspaceFeatureService;\n\n  @tracked public isDraggingSection = false;\n  @tracked public isHoveringTrash = false;\n  @tracked public isDraggingNewField = false;\n  @tracked public isDraggingNewCustomAction = false;\n  @tracked public isDraggingField = false;\n\n  _invalidFields = new TrackedSet<string>();\n\n  sectionsSorting = ['parameters.posX', 'parameters.posY'];\n\n  get isEditableGrid() {\n    return this.currentUser.canEditLayout && this.currentUser.editMode;\n  }\n\n  get isStaticGrid() {\n    return !this.isEditableGrid;\n  }\n\n  get summaryData() {\n    const summaryData = this.args.model?.collection?.viewEdit?.summaryView;\n    return summaryData || this.store.createFragment('summary-view');\n  }\n\n  get cannotAccessSummaryView() {\n    return this.abilities.cannot('access to summaryView');\n  }\n\n  get isSummaryViewConfigured() {\n    return this.summaryData?.sections?.length > 0;\n  }\n\n  get fields() {\n    return this.args.model?.collection?.viewEditFields;\n  }\n\n  get sectionsOrdered() {\n    return this.summaryData?.sections?.sortBy(...this.sectionsSorting);\n  }\n\n  get hasAnyFieldError() {\n    return this._invalidFields.size > 0;\n  }\n\n  get shouldDisplayWorkspaceBanner() {\n    return (\n      this.currentUser.canEditLayout\n      && this.summaryData?.sections?.length > 0\n      && this.workspaceFeature.getIsWorkspaceOnRecordFeatureActivated()\n    );\n  }\n\n  @action\n  handleFieldValidityChange(fieldName: string, isValid: boolean) {\n    if (isValid) {\n      this._invalidFields.delete(fieldName);\n    } else {\n      this._invalidFields.add(fieldName);\n    }\n  }\n\n  @action\n  resetFieldErrors() {\n    this._invalidFields.clear();\n  }\n\n  @action\n  notifyFormValidity() {\n    this.args.onFormValidityChange?.(this.hasAnyFieldError);\n  }\n\n  constructor(owner: unknown, args: DataDisplayRecordSummaryComponentArgs) {\n    super(owner, args);\n\n    this.summaryViewState.dragStartFieldAction = this.onDragStartField;\n    this.summaryViewState.dragEndFieldAction = this.onDragEndField;\n    this.summaryViewState.dragStartCustomAction = this.onDragStartCustomAction;\n    this.summaryViewState.dragEndCustomAction = this.onDragEndCustomAction;\n\n    this.summaryViewState.fields = this.fields;\n    this.summaryViewState.customActions = this.args.customActions;\n    this.summaryViewState.workflows = this.args.workflows;\n  }\n\n  willDestroy() {\n    super.willDestroy();\n\n    this.summaryViewState.dragStartFieldAction = null;\n    this.summaryViewState.dragEndFieldAction = null;\n    this.summaryViewState.dragStartCustomAction = null;\n    this.summaryViewState.dragEndCustomAction = null;\n\n    this.summaryViewState.fields = null;\n    this.summaryViewState.customActions = null;\n    this.summaryViewState.workflows = null;\n  }\n\n  @action\n  async addFirstSection() {\n    this.currentUser.editMode = true;\n    if (this.currentUser.editMode) await this.addNewSection();\n  }\n\n  @action\n  async onGridChange(event: Event, sectionsData: GridStackNode[]) {\n    if (this.isDestroyed || this.isDestroying || this.isStaticGrid) {\n      return;\n    }\n\n    // NOTICE: set sectionsData to null if we remove an element on the grid.\n    if (!sectionsData) {\n      return;\n    }\n\n    const { summaryData } = this;\n\n    sectionsData.forEach((currentSection) => {\n      const { x, y, w: width, h: height } = currentSection;\n      const sectionElement = currentSection.el.querySelector('.summary-section');\n      const sectionId = sectionElement.attributes.getNamedItem('sectionId').value;\n      const section = summaryData.sections.findBy('_id', sectionId);\n\n      set(section.parameters, 'posX', x);\n      set(section.parameters, 'posY', y);\n      set(section.parameters, 'width', width);\n      set(section.parameters, 'height', height);\n    });\n    await this.saveSummaryView();\n  }\n\n  @action\n  async removeSectionItem(itemId: string) {\n    if (!itemId || this.isStaticGrid) {\n      return;\n    }\n\n    const { summaryData } = this;\n    const { parent } = findById(summaryData, summaryData.sections, itemId) as {\n      parent: SummaryViewSectionFragment;\n    };\n    const sectionItems = parent.children.rejectBy('_id', itemId);\n\n    if (sectionItems.length === 0) {\n      const { parent: granParent } = findById(summaryData, summaryData.sections, parent._id) as {\n        parent: SummaryViewSectionFragment;\n      };\n\n      const grandParentItems = granParent.children.rejectBy('_id', parent._id);\n\n      granParent.children = grandParentItems as FragmentArray<'summary-view-item'>;\n    }\n\n    parent.children = sectionItems as FragmentArray<'summary-view-item'>;\n    await this.saveSummaryView();\n  }\n\n  @action\n  async onDropSectionItem(\n    sectionId: string,\n    isNew: boolean,\n    parentItemId: string,\n    itemId: string,\n    newItemIndex: number,\n    itemName: string,\n    itemType: Exclude<SummaryViewItemTypeEnum, SummaryViewItemTypeEnum.HorizontalList>,\n  ) {\n    if (this.isStaticGrid) return;\n\n    const { summaryData } = this;\n    const section = summaryData.sections.findBy('_id', sectionId);\n    const newChild = {\n      data: {\n        name: itemName,\n      },\n      type: itemType,\n    };\n\n    // NOTICE: Add a new horizontal section\n    if (isNew) {\n      const newHorizontalList = {\n        children: [newChild],\n        type: SummaryViewItemTypeEnum.HorizontalList,\n      };\n\n      section.children.createFragment(newHorizontalList);\n      await this.saveSummaryView();\n      return;\n    }\n\n    if (newItemIndex === -1) {\n      console.debug('SummaryView: Adding at index -1 is not allowed');\n      return;\n    }\n\n    const horizontalList = (section.children.findBy('_id', parentItemId)\n      || findById(summaryData, summaryData.sections, parentItemId)\n        .item) as SummaryViewItemFragment<SummaryViewItemTypeEnum.HorizontalList>;\n\n    if (newItemIndex > horizontalList.children.length) {\n      console.debug('SummaryView: Adding at index greater than children is not allowed');\n      return;\n    }\n\n    if (horizontalList?.children?.findBy('_id', itemId)) {\n      await this.removeSectionItem(itemId);\n    }\n\n    const newSummaryViewItem = this.store.createFragment(\n      'summary-view-item',\n      newChild,\n    ) as SummaryViewItemFragment<typeof itemType>;\n    horizontalList.children.insertAt(newItemIndex, newSummaryViewItem);\n\n    await this.saveSummaryView();\n  }\n\n  @action\n  onStartDraggingSectionItem() {\n    this.isDraggingField = true;\n  }\n\n  @action\n  async onStopDraggingSectionItem(itemId: string) {\n    this.isDraggingField = false;\n\n    if (this.isHoveringTrash) {\n      await this.removeSectionItem(itemId);\n      this.isHoveringTrash = false;\n    }\n  }\n\n  @action\n  onDragSectionStart() {\n    if (this.isDestroyed || this.isDestroying) {\n      return;\n    }\n\n    this.isDraggingSection = true;\n  }\n\n  @action\n  async onDragSectionStop(event: DragEvent) {\n    if (this.isDestroyed || this.isDestroying || this.isStaticGrid) {\n      return;\n    }\n\n    this.isDraggingSection = false;\n\n    if (this.isHoveringTrash) {\n      const sectionElement = (event.target as HTMLElement).querySelector('.summary-section');\n      const sectionId = sectionElement.attributes.getNamedItem('sectionId').value;\n\n      // NOTICE: Ensure this code is executed after the re-ordering of the items.\n      await waitForNextRunLoop();\n\n      const { summaryData } = this;\n      const newSections = summaryData.sections.rejectBy('_id', sectionId);\n\n      summaryData.sections = newSections as FragmentArray<'summary-view-section'>;\n      await this.saveSummaryView();\n\n      this.isHoveringTrash = false;\n    }\n  }\n\n  @action\n  async updateSectionTitle(sectionId: string, newTitle: string) {\n    const section = this.summaryData.sections.findBy('_id', sectionId);\n\n    section.title = newTitle;\n    await this.saveSummaryView();\n  }\n\n  @action\n  trashHover(isHover: boolean) {\n    this.isHoveringTrash = isHover;\n  }\n\n  @action\n  async goToFieldSettings() {\n    await this.router.transitionTo('project.rendering.data.collection.settings.fields');\n  }\n\n  @action\n  onDragStartField() {\n    this.isDraggingNewField = true;\n  }\n\n  @action\n  onDragEndField() {\n    this.isDraggingNewField = false;\n  }\n\n  @action\n  onDragStartCustomAction() {\n    this.isDraggingNewCustomAction = true;\n  }\n\n  @action\n  onDragEndCustomAction() {\n    this.isDraggingNewCustomAction = false;\n  }\n\n  @action\n  async onCustomActionClicked(customActionName: string) {\n    const customAction = this.args.customActions.findBy('name', customActionName);\n    return this.args.triggerCustomAction(customAction);\n  }\n\n  @action\n  async onDropped(event: DragEvent, previousWidget: GridStackNode, newWidget: GridStackNode) {\n    if (this.isStaticGrid) return;\n\n    const { x, y, el } = newWidget;\n    const fieldId = el.getAttribute('fieldId');\n    const field = this.summaryViewState.fields.findBy('id', fieldId);\n    const grid = document.querySelector<GridHTMLElement>(\n      '.view-edit-summary .grid-stack',\n    ).gridstack;\n\n    // To use gridstack native drag and drop feature for an outer element (and drop it anywhere on\n    // the grid) we did not find a better solution than removing the dragged in element and adding\n    // a new section element with the given coordinates.\n    grid.removeWidget(el);\n\n    // The following \"waitForNextRunLoop\" avoids concurrency between all operations.\n    await waitForNextRunLoop();\n\n    await this.addNewSection(field, x, y);\n  }\n\n  async addNewSection(field?: FieldModel, posX?: number, posY?: number) {\n    const { summaryData } = this;\n    const children = [];\n\n    if (field) {\n      const type = field.referenceModel\n        ? SummaryViewItemTypeEnum.HasMany\n        : SummaryViewItemTypeEnum.HasManyEmbedded;\n      children.push({\n        type,\n        data: {\n          name: field.fieldName,\n        },\n      });\n    }\n\n    summaryData.sections.createFragment({\n      title: children.firstObject ? field.displayName : 'New Section',\n      parameters: {\n        posX: posX ?? 0,\n        posY: posY ?? 0,\n        width: field ? 3 : 2,\n        height: field ? 5 : 4,\n      },\n      children,\n    });\n\n    await this.saveSummaryView();\n  }\n\n  async saveSummaryView() {\n    try {\n      await this.saveSummaryViewTask.perform();\n    } catch (error) {\n      if (didCancel(error)) {\n        console.debug('SummaryView: Save task was canceled');\n        return;\n      }\n      this.errorHandler.handleRequestFailure(error as Error, 'Error while saving the summary view');\n      throw error;\n    }\n  }\n\n  @action\n  async handleClickCreateWorkspaceFromSummary() {\n    const { collection } = this.args.model;\n    const workspace = collection.rendering.workspaces.find(\n      (ws) => ws.collectionId === collection.id,\n    );\n\n    if (workspace?.components.length > 0) {\n      const hasAcceptedTheConditionsAndWantsToReplaceExistingWorkflow = window.confirm(\n        'A Workspace already exists for this collection. Clicking OK will overwrite it.',\n      );\n\n      if (!hasAcceptedTheConditionsAndWantsToReplaceExistingWorkflow) {\n        return;\n      }\n    }\n\n    await this.workspaceFeature.createWorkspaceFromSummary(collection, workspace);\n  }\n\n  saveSummaryViewTask = restartableTask(async () => {\n    await timeout(500);\n\n    const { viewEdit } = this.args.model.collection;\n    viewEdit.summaryView = this.summaryData;\n    await viewEdit.save();\n  });\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type FieldModel from 'client/data/models/field';\nimport type SummaryViewItemFragment from 'client/data/models/summary-view-item';\nimport type SummaryViewItemDataFragment from 'client/data/models/summary-view-item-data';\nimport type DataDisplayRecordSummaryComponent from 'client/legacy/pods/components/data-display/record/summary/component';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\ninterface DataDisplayRecordSummaryCustomActionButtonComponentArgs {\n  data: SummaryViewItemDataFragment;\n  children: SummaryViewItemFragment[];\n  fieldName: string;\n  model: { collection: CollectionModel };\n  fields: FieldModel[];\n  record: ClientRecordModel;\n  isReadMode: boolean;\n  isEditMode: boolean;\n  dropdownParent: string;\n  customActions: CustomActionModel[];\n  enabledCustomActions: CustomActionModel[];\n  onCustomActionClicked: DataDisplayRecordSummaryComponent['onCustomActionClicked'];\n}\n\nexport default class DataDisplayRecordSummaryCustomActionButtonComponent extends Component<DataDisplayRecordSummaryCustomActionButtonComponentArgs> {\n  get customAction() {\n    return this.args.customActions?.findBy('name', this.args.data?.name);\n  }\n\n  get isDisabled() {\n    return (\n      this.args.isEditMode\n      || !this.args.isReadMode\n      || !this.args.enabledCustomActions.any(({ id }) => id === this.customAction?.id)\n      || !this.customAction?.isUserAllowed\n    );\n  }\n\n  @action\n  async handleClick() {\n    const name = this.args.data?.name;\n\n    if (!this.isDisabled && this.args.onCustomActionClicked) {\n      await this.args.onCustomActionClicked(name);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<DataDisplay::Record::Summary::Button\\n  @type={{or this.customAction.buttonTypeOrDefault \\'primary\\'}}\\n  @text={{this.customAction.displayName}}\\n  @onClick={{this.handleClick}}\\n  disabled={{this.isDisabled}}\\n  data-test-record-summary-custom-action-button={{@data.name}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/data-display/record/summary/custom-action-button/template.hbs' });\n","import type FieldModel from 'client/data/models/field';\nimport type SummaryViewItemDataFragment from 'client/data/models/summary-view-item-data';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Component from '@glimmer/component';\n\nexport interface DataDisplayRecordSummaryFieldComponentArgs {\n  data: SummaryViewItemDataFragment;\n  fields: FieldModel[];\n  isReadMode: boolean;\n  record: ClientRecordModel;\n  onFieldValidityChange?: (fieldName: string, isValid: boolean) => void;\n}\n\nexport default class DataDisplayRecordSummaryFieldComponent extends Component<DataDisplayRecordSummaryFieldComponentArgs> {\n  get field() {\n    const fieldName = this.args.data?.name;\n    return this.args.fields.findBy('fieldName', fieldName);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"summary-field\\\" ...attributes>\\n  {{! TODO: remove when the clean is done on the backend }}\\n  {{#if this.field}}\\n    <Form::FormValue\\n      @displayName={{this.field.displayNameTitlize}}\\n      @field={{this.field}}\\n      @collection={{this.field.collection}}\\n      @record={{@record}}\\n      @readMode={{@isReadMode}}\\n      @isReadOnly={{this.field.isReadOnly}}\\n      @onFieldValidityChange={{@onFieldValidityChange}}\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/data-display/record/summary/field/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-summary-view-has-many-empty\\\">\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName=\\\"visibility_off\\\"\\n    @class=\\\"c-summary-view-has-many-empty__icon\\\"\\n    @size=\\\"large\\\"\\n  />\\n  <p class=\\\"c-summary-view-has-many-empty__text\\\">\\n    Turn off layout editor to visualize your data in this section.\\n  </p>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/data-display/record/summary/has-many-empty/template.hbs' });\n","import type { AnyFunction } from '@ember/object/-private/types';\nimport type CollectionModel from 'client/data/models/collection';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type FieldModel from 'client/data/models/field';\nimport type SummaryViewItemFragment from 'client/data/models/summary-view-item';\nimport type { SummaryViewItemTypeEnum } from 'client/data/models/summary-view-item';\nimport type DataDisplayRecordSummaryComponent from 'client/legacy/pods/components/data-display/record/summary/component';\nimport type { SortableEvent, SortableOptions } from 'sortablejs';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport Sortable from 'sortablejs';\n\ntype OmitFirstArg<F> = F extends (\n  x: string,\n  arg1: infer P1,\n  arg2: infer P2,\n  arg3: infer P3,\n  arg4: infer P4,\n  arg5: infer P5,\n  arg6: infer P6,\n) => infer R\n  ? (arg1: P1, arg2: P2, arg3: P3, arg4: P4, arg5: P5, arg6: P6) => R\n  : F;\n\ninterface DataDisplayRecordSummaryHorizontalListComponentArgs {\n  children: SummaryViewItemFragment[];\n  customActions: CustomActionModel[];\n  enabledCustomActions: CustomActionModel[];\n  fields: FieldModel[];\n  isEditMode: boolean;\n  isHoveringTrash: boolean;\n  isReadMode: boolean;\n  isNew: boolean;\n  itemId: string;\n  model: { collection: CollectionModel };\n  onCustomActionClicked: AnyFunction;\n  onDropSectionItem: OmitFirstArg<DataDisplayRecordSummaryComponent['onDropSectionItem']>;\n  onSectionItemDelete: DataDisplayRecordSummaryComponent['removeSectionItem'];\n  onStartDraggingSectionItem: DataDisplayRecordSummaryComponent['onStartDraggingSectionItem'];\n  onStopDraggingSectionItem: DataDisplayRecordSummaryComponent['onStopDraggingSectionItem'];\n}\n\nexport default class DataDisplayRecordSummaryHorizontalListComponent extends Component<DataDisplayRecordSummaryHorizontalListComponentArgs> {\n  private sortable: Sortable = null;\n\n  willDestroy() {\n    super.willDestroy();\n\n    this.sortable?.destroy();\n  }\n\n  @action\n  handleDidInsertSortable(element: HTMLElement) {\n    this.sortable = Sortable.create(element, {\n      group: {\n        name: 'horizontal-list-sortable',\n        put: true,\n      },\n      draggable: '.connectedSortable',\n      ghostClass: 'sortable-placeholder',\n      disabled: !this.args.isEditMode,\n      direction: 'horizontal',\n      onAdd: this.onUpdate as SortableOptions['onAdd'],\n      onRemove: this.onRemove as SortableOptions['onRemove'],\n      onUpdate: this.onUpdate as SortableOptions['onUpdate'],\n      onStart: this.onStart as SortableOptions['onStart'],\n      onEnd: this.onStop as SortableOptions['onEnd'],\n      forceFallback: true,\n    });\n  }\n\n  @action\n  handleDidUpdateEditMode() {\n    this.sortable.option('disabled', !this.args.isEditMode);\n  }\n\n  @action\n  async onRemove(event: SortableEvent) {\n    if (this.args.isHoveringTrash) {\n      return;\n    }\n\n    const itemId = event.item.getAttribute('data-item-id');\n\n    await this.args.onSectionItemDelete(itemId);\n  }\n\n  @action\n  async onUpdate(event: SortableEvent) {\n    if (this.args.isHoveringTrash) {\n      event.item.remove();\n      return;\n    }\n\n    if (event.from === event.to && event.oldIndex === event.newIndex - 1) {\n      return;\n    }\n\n    const { newIndex } = event;\n    const itemId = event.item.getAttribute('data-item-id');\n    const itemName = event.item.getAttribute('data-item-name');\n    const itemType = event.item.getAttribute('data-item-type') as Exclude<\n      SummaryViewItemTypeEnum,\n      SummaryViewItemTypeEnum.HorizontalList\n    >;\n    const parentId = event.item.parentElement.getAttribute('data-item-id');\n\n    event.item.remove();\n\n    if (parentId || this.args.isNew) {\n      await this.args.onDropSectionItem(\n        this.args.isNew,\n        parentId,\n        itemId,\n        newIndex,\n        itemName,\n        itemType,\n      );\n    }\n  }\n\n  @action\n  onStart() {\n    this.args.onStartDraggingSectionItem();\n  }\n\n  @action\n  async onStop(event: SortableEvent) {\n    const itemId = event.item.getAttribute('data-item-id');\n\n    await this.args.onStopDraggingSectionItem(itemId);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{shared/get-classes-with-modifiers\\n    \\'c-data-display-record-summary-horizontal-list\\'\\n    read=@isReadMode\\n    edit=(not @isReadMode)\\n    build-mode=@isEditMode\\n  }}\\n  data-test-data-display-record-summary-horizontal-list\\n  {{did-update this.handleDidUpdateEditMode @isEditMode}}\\n  ...attributes\\n>\\n  <ul\\n    class=\\\"l-data-display-record-summary-horizontal-list-sortable\\\"\\n    data-test-data-display-record-summary-horizontal-list-sortable\\n    data-item-id={{@itemId}}\\n    {{did-insert this.handleDidInsertSortable}}\\n  >\\n    {{#each @children as |child|}}\\n      <li\\n        class=\\\"c-data-display-record-summary-horizontal-list__item ui-state-default connectedSortable\\\"\\n        data-item-id={{child._id}}\\n        data-item-name={{child.data.name}}\\n        data-item-type={{child.componentName}}\\n        data-summary-horizontal-list-item\\n      >\\n        {{component\\n          child.componentName\\n          data=child.data\\n          children=child.children\\n          fieldName=child.data.name\\n          sectionId=@sectionId\\n          model=@model\\n          fields=@fields\\n          record=@model.record\\n          isReadMode=@isReadMode\\n          isEditMode=@isEditMode\\n          dropdownParent=\\'.view-edit-summary__content__scroll > .grid-stack\\'\\n          customActions=@customActions\\n          workflows=@workflows\\n          enabledCustomActions=@enabledCustomActions\\n          onCustomActionClicked=@onCustomActionClicked\\n          onFieldValidityChange=@onFieldValidityChange\\n        }}\\n      </li>\\n    {{/each}}\\n  </ul>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/data-display/record/summary/horizontal-list/template.hbs' });\n","import type { AnyFunction } from '@ember/object/-private/types';\nimport type RouterService from '@ember/routing/router-service';\nimport type CollectionModel from 'client/data/models/collection';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type FieldModel from 'client/data/models/field';\nimport type SummaryViewItemFragment from 'client/data/models/summary-view-item';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport { SummaryViewItemTypeEnum } from 'client/data/models/summary-view-item';\nimport ResizableColumnsState from 'client/utils/resizable-columns-state';\n\ninterface DataDisplayRecordSummarySectionComponentArgs {\n  sectionId: string;\n  title: string;\n  children: SummaryViewItemFragment[];\n  model: { collection: CollectionModel };\n  fields: FieldModel[];\n  customActions: CustomActionModel[];\n  workflows: WorkflowModel[];\n  enabledCustomActions: CustomActionModel[];\n  segmentId: string;\n  triggerCustomAction: (action: CustomActionModel) => void;\n  onSectionItemDelete: AnyFunction;\n  onDropSectionItem: AnyFunction;\n  goToFieldSettings: AnyFunction;\n  updateSectionTitle: (title: string) => void;\n  onCustomActionClicked: AnyFunction;\n  onStartDraggingSectionItem: AnyFunction;\n  onStopDraggingSectionItem: AnyFunction;\n  isReadMode: boolean;\n  isEditMode: boolean;\n  isDraggingNewField: boolean;\n  isDraggingNewCustomAction: boolean;\n  isHoveringTrash: boolean;\n}\n\nexport default class DataDisplayRecordSummarySectionComponent extends Component<DataDisplayRecordSummarySectionComponentArgs> {\n  @service private router: RouterService;\n  @service private localStorage: LocalStorageService;\n  @service private lianaSession: LianaSessionService;\n\n  @tracked private isTitleEdit = false;\n  @tracked public titleInputValue = '';\n  @tracked public resizableColumnsState: ResizableColumnsState | null = null;\n\n  constructor(owner: unknown, args: DataDisplayRecordSummarySectionComponentArgs) {\n    super(owner, args);\n\n    this.titleInputValue = this.args.title;\n    if (this.isRelatedData) {\n      this.resizableColumnsState = new ResizableColumnsState(\n        this.localStorage,\n        this.lianaSession.rendering.id,\n        {\n          type: 'summaryView',\n          fieldName: this.fieldName,\n          summaryViewComponentId: this.args.sectionId,\n        },\n      );\n    }\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    window.removeEventListener('resize', this.hideSomeSectionHeaderActionsIfNeeded);\n  }\n\n  get fieldName() {\n    return this.args.children?.firstObject?.data?.name;\n  }\n\n  get isHasMany() {\n    return this.args.children?.firstObject?.componentName === SummaryViewItemTypeEnum.HasMany;\n  }\n\n  get isEmbedded() {\n    return (\n      this.args.children?.firstObject?.componentName === SummaryViewItemTypeEnum.HasManyEmbedded\n    );\n  }\n\n  get isRelatedData() {\n    return this.isEmbedded || this.isHasMany;\n  }\n\n  get field() {\n    return this.args.fields?.findBy('fieldName', this.fieldName);\n  }\n\n  @action\n  handleDidInsert() {\n    this.hideSomeSectionHeaderActionsIfNeeded();\n    window.addEventListener('resize', this.hideSomeSectionHeaderActionsIfNeeded);\n  }\n\n  @action\n  toggleTitleEdit() {\n    if (this.isTitleEdit) {\n      if (this.titleInputValue !== this.args.title) {\n        this.args.updateSectionTitle(this.titleInputValue);\n      }\n\n      this.isTitleEdit = false;\n    } else {\n      this.isTitleEdit = true;\n    }\n  }\n\n  @action\n  handleOpenCreateRecord() {\n    void this.router.transitionTo(\n      this.isEmbedded\n        ? 'project.rendering.data.collection.list.view-edit.view-has-many-embedded.create'\n        : 'project.rendering.data.collection.list.view-edit.view-has-many.create',\n    );\n  }\n\n  @action\n  redirectToRelatedData() {\n    if (this.isHasMany) {\n      return this.redirectToViewHasMany();\n    }\n    if (this.isEmbedded) {\n      return this.redirectToViewHasManyEmbedded();\n    }\n    throw new Error('Invalid call to redirectToRelatedData (no relatedData).');\n  }\n\n  async redirectToViewHasMany() {\n    await this.router.transitionTo(\n      'project.rendering.data.collection.list.view-edit.view-has-many',\n      this.field.rowEdit.id,\n    );\n  }\n\n  async redirectToViewHasManyEmbedded() {\n    await this.router.transitionTo(\n      'project.rendering.data.collection.list.view-edit.view-has-many-embedded',\n      this.field.rowEdit.id,\n    );\n  }\n\n  @action\n  hideSomeSectionHeaderActionsIfNeeded() {\n    const section = document.getElementById(this.args.sectionId);\n    if (!section) return;\n\n    const filterText = section.getElementsByClassName(\n      'c-beta-filter-button__text',\n    )[0] as HTMLElement;\n    const filter = section.getElementsByClassName('c-beta-filter-button')[0] as HTMLElement;\n    const searchBar = section.getElementsByClassName('c-beta-search-bar')[0] as HTMLElement;\n\n    if (filterText) filterText.style.display = section.offsetWidth < 400 ? 'none' : 'block';\n    if (filter) filter.style.display = section.offsetWidth < 200 ? 'none' : 'flex';\n    if (searchBar) searchBar.style.display = section.offsetWidth < 200 ? 'none' : 'flex';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"summary-section\\\"\\n  sectionId={{@sectionId}}\\n  ...attributes\\n  {{did-insert this.handleDidInsert}}\\n>\\n  {{#if (and this.isRelatedData (not (is-layout-editor)))}}\\n    <DataDisplay::BetaCollectionList\\n      @resizableColumnsState={{this.resizableColumnsState}}\\n      @hasActions={{true}}\\n      @hasFiltersButton={{true}}\\n      @hasHeader={{true}}\\n      @hasSearchbar={{true}}\\n      @isSummaryViewSection={{true}}\\n      @modelToFetch={{this.field}}\\n      @onRecordsFetched={{this.onRecordsFetched}}\\n      @onTitleClick={{this.redirectToRelatedData}}\\n      @openCreateRecord={{this.handleOpenCreateRecord}}\\n      @record={{@model.record}}\\n      @showMore={{this.redirectToRelatedData}}\\n      @title={{capitalize-text @title}}\\n    />\\n  {{else}}\\n    <div class=\\\"summary-section-header\\\">\\n      {{#if (is-layout-editor)}}\\n        {{#if this.isTitleEdit}}\\n          <div class=\\\"summary-section-header__title-input\\\">\\n            <Shared::BetaInput\\n              @autofocus={{true}}\\n              @iconClass=\\\"c-beta-input__icon--success summary-section-header__title-input-icon\\\"\\n              @iconName=\\\"check\\\"\\n              @onClickIcon={{this.toggleTitleEdit}}\\n              @onEnter={{this.toggleTitleEdit}}\\n              @type=\\\"text\\\"\\n              @value={{this.titleInputValue}}\\n            />\\n          </div>\\n        {{else}}\\n          <h1 class=\\\"summary-section-header__title\\\">{{~@title~}}</h1>\\n          <a\\n            class=\\\"summary-section-header__edit-icon\\\"\\n            href=\\\"#\\\"\\n            role=\\\"button\\\"\\n            {{on \\'click\\' this.toggleTitleEdit}}\\n          >\\n            <Shared::DataDisplay::BetaIcon @iconName=\\\"create\\\" @size=\\\"tiny\\\" />\\n          </a>\\n        {{/if}}\\n        <div\\n          class={{get-classes-with-modifiers\\n            \\'summary-section-header__handle\\'\\n            invisible=this.isTitleEdit\\n          }}\\n        >\\n          <Shared::DataDisplay::BetaIcon @iconName=\\\"drag_handle\\\" @size=\\\"tiny\\\" />\\n        </div>\\n      {{else}}\\n        <h1 class=\\\"summary-section-header__title\\\">{{~@title~}}</h1>\\n      {{/if}}\\n    </div>\\n\\n    <div\\n      class=\\\"summary-section__content\\n        {{if this.isRelatedData \\'summary-section__content--has-many\\'}}\\\"\\n      data-test-summary-view-section-content={{@title}}\\n    >\\n      <div class=\\\"section-drop-zone\\\">\\n        {{#if this.isRelatedData}}\\n          <DataDisplay::Record::Summary::HasManyEmpty />\\n        {{else}}\\n          {{#each @children as |child|}}\\n            <DataDisplay::Record::Summary::HorizontalList\\n              @children={{child.children}}\\n              @customActions={{@customActions}}\\n              @workflows={{@workflows}}\\n              @enabledCustomActions={{@enabledCustomActions}}\\n              @fields={{@fields}}\\n              @isEditMode={{@isEditMode}}\\n              @isHoveringTrash={{@isHoveringTrash}}\\n              @isReadMode={{@isReadMode}}\\n              @itemId={{child._id}}\\n              @model={{@model}}\\n              @onCustomActionClicked={{@onCustomActionClicked}}\\n              @onDropSectionItem={{@onDropSectionItem}}\\n              @onSectionItemDelete={{@onSectionItemDelete}}\\n              @onStartDraggingSectionItem={{@onStartDraggingSectionItem}}\\n              @onStopDraggingSectionItem={{@onStopDraggingSectionItem}}\\n              @sectionId={{@sectionId}}\\n              @onFieldValidityChange={{@onFieldValidityChange}}\\n            />\\n          {{/each}}\\n          <DataDisplay::Record::Summary::HorizontalList\\n            @customActions={{@customActions}}\\n            @workflows={{@workflows}}\\n            @enabledCustomActions={{@enabledCustomActions}}\\n            @fields={{@fields}}\\n            @isEditMode={{@isEditMode}}\\n            @isHoveringTrash={{@isHoveringTrash}}\\n            @isNew={{true}}\\n            @isReadMode={{@isReadMode}}\\n            @model={{@model}}\\n            @onCustomActionClicked={{@onCustomActionClicked}}\\n            @onDropSectionItem={{@onDropSectionItem}}\\n            @onSectionItemDelete={{@onSectionItemDelete}}\\n            @onStartDraggingSectionItem={{@onStartDraggingSectionItem}}\\n            @onStopDraggingSectionItem={{@onStopDraggingSectionItem}}\\n            @sectionId={{@sectionId}}\\n            @onFieldValidityChange={{@onFieldValidityChange}}\\n          />\\n        {{/if}}\\n      </div>\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/data-display/record/summary/section/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"view-edit-summary\\\"\\n  {{did-insert this.notifyFormValidity}}\\n  {{did-update this.resetFieldErrors @model.record}}\\n  {{did-update this.notifyFormValidity this.hasAnyFieldError}}\\n  ...attributes\\n>\\n  {{#if this.shouldDisplayWorkspaceBanner}}\\n    <div\\n      class=\\\"c-view-edit-summary__workspace-banner\\\"\\n      data-test-summary-view-banner-create-workspace\\n    >\\n      Workspaces replace Summary Views. Build richer record pages with access to related records,\\n      more layout options, and analytics.\\n      <Shared::Button\\n        @text=\\\"Create Workspace\\\"\\n        @type=\\\"ghost-orange\\\"\\n        @onClick={{this.handleClickCreateWorkspaceFromSummary}}\\n        @size=\\\"small\\\"\\n        data-test-summary-view-banner-create-workspace-button\\n      />\\n    </div>\\n  {{/if}}\\n  <div class=\\\"view-edit-summary__content\\\">\\n    <GridStack::Layout\\n      @options={{hash\\n        cellHeight=80\\n        column=5\\n        margin=10\\n        animate=(is-layout-editor)\\n        handle=\\'.summary-section-header__handle\\'\\n        dragOut=true\\n        disableOneColumnMode=true\\n        resizable=(hash handles=\\'se,sw,nw,ne\\')\\n        acceptWidgets=\\'.js-draggable-section\\'\\n        dragInOptions=(hash dragInElementsSelector=\\'.js-draggable-section\\')\\n      }}\\n      @onDropped={{this.onDropped}}\\n      @onChange={{this.onGridChange}}\\n      @onDragStart={{this.onDragSectionStart}}\\n      @onDragStop={{this.onDragSectionStop}}\\n      @isStatic={{this.isStaticGrid}}\\n    >\\n      {{#if this.isSummaryViewConfigured}}\\n        {{#each this.sectionsOrdered as |section|}}\\n          <GridStack::Item\\n            @options={{hash\\n              x=section.parameters.posX\\n              y=section.parameters.posY\\n              w=section.parameters.width\\n              h=section.parameters.height\\n            }}\\n            @id={{section._id}}\\n          >\\n            <DataDisplay::Record::Summary::Section\\n              @sectionId={{section._id}}\\n              @title={{section.title}}\\n              @children={{section.children}}\\n              @model={{@model}}\\n              @fields={{this.fields}}\\n              @isReadMode={{@isReadMode}}\\n              @isEditMode={{this.currentUser.editMode}}\\n              @isDraggingNewField={{this.isDraggingNewField}}\\n              @customActions={{@customActions}}\\n              @workflows={{@workflows}}\\n              @enabledCustomActions={{@enabledCustomActions}}\\n              @isDraggingNewCustomAction={{this.isDraggingNewCustomAction}}\\n              @isHoveringTrash={{this.isHoveringTrash}}\\n              @segmentId={{@segmentId}}\\n              @triggerCustomAction={{@triggerCustomAction}}\\n              @onSectionItemDelete={{this.removeSectionItem}}\\n              @onDropSectionItem={{fn this.onDropSectionItem section._id}}\\n              @goToFieldSettings={{this.goToFieldSettings}}\\n              @updateSectionTitle={{fn this.updateSectionTitle section._id}}\\n              @onCustomActionClicked={{this.onCustomActionClicked}}\\n              @onStartDraggingSectionItem={{this.onStartDraggingSectionItem}}\\n              @onStopDraggingSectionItem={{this.onStopDraggingSectionItem}}\\n              @onFieldValidityChange={{this.handleFieldValidityChange}}\\n            />\\n          </GridStack::Item>\\n        {{/each}}\\n      {{else}}\\n        <div class=\\\"l-view-edit-summary\\\">\\n          <div class=\\\"l-view-edit-summary__empty-state\\\">\\n            <Shared::DataDisplay::BetaIcon\\n              @iconName=\\\"edit\\\"\\n              class=\\\"c-view-edit-summary__empty-state-icon\\\"\\n            />\\n            <h1 class=\\\"c-view-edit-summary__empty-state-title\\\">\\n              Ready to be configured!\\n            </h1>\\n            {{#if this.currentUser.canEditLayout}}\\n              <p class=\\\"c-view-edit-summary__empty-state-subtitle\\\">\\n                Drag your first section\\n                <br />\\n                or\\n                <br />\\n                <Shared::Button::BetaButton\\n                  @type=\\\"editor\\\"\\n                  @text=\\\"Add one\\\"\\n                  @action={{this.addFirstSection}}\\n                  @async={{false}}\\n                  class=\\\"c-view-edit-summary__empty-state-button\\\"\\n                />\\n              </p>\\n            {{/if}}\\n          </div>\\n        </div>\\n      {{/if}}\\n    </GridStack::Layout>\\n  </div>\\n\\n  {{#if (or this.isDraggingSection this.isDraggingField)}}\\n    <DataDisplay::Record::Summary::TrashZone\\n      @onHoverAction={{this.trashHover}}\\n      class=\\\"l-view-edit-summary__trash-zone\\\"\\n    />\\n  {{/if}}\\n\\n  {{#if this.cannotAccessSummaryView}}\\n    <Modal::ModalUpgradeToPaidPlan\\n      @cancel={{route-action \\'goToRouteDetails\\'}}\\n      @featureName=\\\"summaryView\\\"\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/data-display/record/summary/template.hbs' });\n","import { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport { isFirefox } from 'client/utils/browser-utils';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface DataDisplayRecordSummaryTrashZoneComponentArgs {\n  onHoverAction: (isHover: boolean) => void;\n}\n\n@validateArguments\nexport default class DataDisplayRecordSummaryTrashZoneComponent extends Component<DataDisplayRecordSummaryTrashZoneComponentArgs> {\n  static propTypes = {\n    onHoverAction: PropTypes.func.isRequired,\n  };\n\n  @tracked public isHover = false;\n  public readonly trashId = guidFor(this);\n\n  constructor(owner: unknown, args: DataDisplayRecordSummaryTrashZoneComponentArgs) {\n    super(owner, args);\n\n    // There is an issue on firefox preventing form the mouseenter and mouseleave to works fine\n    if (isFirefox()) {\n      document.addEventListener('mousemove', this.handleDomMouseMove);\n    }\n  }\n\n  willDestroy() {\n    super.willDestroy();\n\n    if (isFirefox()) {\n      document.removeEventListener('mousemove', this.handleDomMouseMove);\n    }\n  }\n\n  @action\n  mouseEnterIcon() {\n    this.isHover = true;\n    this.args.onHoverAction(true);\n  }\n\n  @action\n  mouseLeaveIcon() {\n    this.isHover = false;\n    this.args.onHoverAction(false);\n  }\n\n  @action\n  dragEnterIcon(event: Event) {\n    event.preventDefault();\n    this.mouseEnterIcon();\n  }\n\n  @action\n  dragLeaveIcon(event: MouseEvent) {\n    event.preventDefault();\n    this.mouseLeaveIcon();\n  }\n\n  @action\n  handleDomMouseMove(event: MouseEvent) {\n    // This function is just here to fix an issue on Firefox\n    const element = document.getElementById(this.trashId);\n    if (!element) return;\n\n    const boudingClientRect = element.getBoundingClientRect();\n    if (\n      boudingClientRect.left < event.clientX\n      && event.clientX < boudingClientRect.right\n      && boudingClientRect.top < event.clientY\n      && event.clientY < boudingClientRect.bottom\n    ) {\n      this.mouseEnterIcon();\n    } else if (this.isHover) {\n      this.mouseLeaveIcon();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers \\'c-trash-zone\\' hover=this.isHover}}\\n  {{on \\'mouseenter\\' this.mouseEnterIcon}}\\n  {{on \\'mouseleave\\' this.mouseLeaveIcon}}\\n  {{on \\'dragenter\\' this.dragEnterIcon}}\\n  {{on \\'dragleave\\' this.dragLeaveIcon}}\\n  ...attributes\\n  id={{this.trashId}}\\n>\\n  <Shared::DataDisplay::BetaIcon @iconName=\\\"delete\\\" @size=\\\"custom\\\" class=\\\"c-trash-zone__icon\\\" />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/data-display/record/summary/trash-zone/template.hbs' });\n","import type SummaryViewItemDataFragment from 'client/data/models/summary-view-item-data';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface DataDisplayRecordSummaryCustomActionButtonComponentArgs {\n  data: SummaryViewItemDataFragment;\n  record: ClientRecordModel;\n  isReadMode: boolean;\n  isEditMode: boolean;\n  workflows: WorkflowModel[];\n}\n\nexport default class DataDisplayRecordSummaryCustomActionButtonComponent extends Component<DataDisplayRecordSummaryCustomActionButtonComponentArgs> {\n  @service('feature/workflow')\n  private readonly workflowFeature: WorkflowFeatureService;\n\n  get workflow() {\n    return this.args.workflows?.findBy('id', this.args.data?.name);\n  }\n\n  get isDisabled() {\n    return this.args.isEditMode || !this.args.isReadMode;\n  }\n\n  @action\n  async triggerWorkflow() {\n    await this.workflowFeature.startWorkflow(this.workflow, this.args.record);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<DataDisplay::Record::Summary::Button\\n  @text={{this.workflow.name}}\\n  @onClick={{this.triggerWorkflow}}\\n  disabled={{this.isDisabled}}\\n  data-test-record-summary-workflow-button={{@data.name}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/data-display/record/summary/workflow-button/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { bool, equal, not, or } from '@ember/object/computed';\nimport { classNames } from '@ember-decorators/component';\n\nimport Collection from 'client/data/models/collection';\nimport Column from 'client/data/models/column';\nimport Field from 'client/data/models/field';\nimport ViewList from 'client/data/models/view-list';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-table-view')\nexport default class DataDisplayTableViewComponent extends Component {\n  propTypes = {\n    collection: PropTypes.oneOfType([\n      PropTypes.instanceOf(Collection).isRequired,\n      PropTypes.instanceOf(Field).isRequired,\n    ]).isRequired,\n    displayNameSingular: PropTypes.string,\n    displayNamePlural: PropTypes.string,\n    viewList: PropTypes.instanceOf(ViewList),\n    columns: PropTypes.arrayOf(PropTypes.instanceOf(Column)),\n    columnsVisible: PropTypes.arrayOf(PropTypes.instanceOf(Column)),\n    openCreateRecord: PropTypes.func,\n    sortedField: PropTypes.instanceOf(Field),\n    sortedFieldOrder: PropTypes.string,\n    records: PropTypes.oneOfType([PropTypes.array, PropTypes.object]),\n    selectAllRecords: PropTypes.func,\n    areAllRecordsSelected: PropTypes.bool,\n    selectedRecordsCount: PropTypes.number,\n    segmentId: PropTypes.string,\n    searchValue: PropTypes.string,\n    recordsCount: PropTypes.number,\n    currentPage: PropTypes.number,\n    numberOfPages: PropTypes.number,\n    fethRecords: PropTypes.func,\n    deleteRecords: PropTypes.func,\n    sortBy: PropTypes.func,\n    triggerCustomAction: PropTypes.func,\n    updateColumn: PropTypes.func,\n    canEdit: PropTypes.bool.isRequired,\n    onRowClick: PropTypes.func,\n    enableSearchExtended: PropTypes.func,\n    displaySearchExtendedButton: PropTypes.bool,\n    isLoading: PropTypes.bool.isRequired,\n    isSection: PropTypes.bool,\n    disableSorting: PropTypes.bool,\n    disableFiltering: PropTypes.bool,\n    filterLocation: PropTypes.string,\n    isEmbedded: PropTypes.bool,\n    withNoBorderTop: PropTypes.bool,\n    error: PropTypes.shape({\n      type: PropTypes.string.isRequired,\n    }),\n    showMore: PropTypes.func,\n    onToggleRow: PropTypes.func,\n    isNumberOfPagesDeactivated: PropTypes.bool,\n    isNumberOfPagesLoading: PropTypes.bool,\n    isEditMode: PropTypes.bool,\n    shouldPreventChangeSelectedRecord: PropTypes.func,\n  };\n\n  segmentId = null;\n  @equal('recordsCount', 0) recordsCountIsZero;\n  @not('records.length') recordsIsEmpty;\n  @or('recordsCountIsZero', 'recordsIsEmpty') hasNoRecords;\n  @bool('searchValue') isSearch;\n\n  @computed('error', 'hasNoRecords', 'isLoading')\n  get displayList() {\n    return this.isLoading || this.error || !this.hasNoRecords;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @error}}\\n  <Layout::LayoutError @error={{@error}} data-test-data-display-table-view-error />\\n{{else if this.displayList}}\\n  <DataDisplay::Table::TableFrame\\n    @areAllRecordsSelected={{@areAllRecordsSelected}}\\n    @collection={{@collection}}\\n    @columns={{@columns}}\\n    @resizableColumnsState={{@resizableColumnsState}}\\n    @columnsVisible={{@columnsVisible}}\\n    @computeIsRecordSelect={{@computeIsRecordSelect}}\\n    @disableFiltering={{@disableFiltering}}\\n    @disableSorting={{@disableSorting}}\\n    @filterLocation={{@filterLocation}}\\n    @isCurrentPageSelected={{@isCurrentPageSelected}}\\n    @isEditMode={{@isEditMode}}\\n    @isEmbedded={{@isEmbedded}}\\n    @isLoading={{@isLoading}}\\n    @isSection={{@isSection}}\\n    @onRowClick={{@onRowClick}}\\n    @onToggleRow={{@onToggleRow}}\\n    @records={{@records}}\\n    @searchValue={{@searchValue}}\\n    @segmentId={{this.segmentId}}\\n    @selectAllRecords={{@selectAllRecords}}\\n    @sortBy={{@sortBy}}\\n    @sortedField={{@sortedField}}\\n    @sortedFieldOrder={{@sortedFieldOrder}}\\n    @updateColumn={{@updateColumn}}\\n    @unselectAllRecords={{@unselectAllRecords}}\\n    @withNoBorderTop={{@withNoBorderTop}}\\n    @shouldPreventChangeSelectedRecord={{@shouldPreventChangeSelectedRecord}}\\n    @filter={{@filter}}\\n    @onFilter={{@onFilter}}\\n  />\\n{{else if this.hasNoRecords}}\\n  <Layout::LayoutCollectionEmpty\\n    @collection={{@collection}}\\n    @creatable={{@creatable}}\\n    @displayName={{@displayNamePlural}}\\n    @displaySearchExtendedButton={{@displaySearchExtendedButton}}\\n    @enableSearchExtended={{@enableSearchExtended}}\\n    @filters={{@filters}}\\n    @isSection={{@isSection}}\\n    @openCreateRecord={{@openCreateRecord}}\\n    @searchValue={{@searchValue}}\\n    @segmentId={{this.segmentId}}\\n  />\\n{{/if}}\\n\\n<DataDisplay::Table::TableFooter\\n  @canEdit={{@canEdit}}\\n  @collection={{@collection}}\\n  @currentPage={{@currentPage}}\\n  @disablePagination={{@isEmbedded}}\\n  @shouldHidePaginator={{or @error this.hasNoRecords}}\\n  @displayNamePlural={{@displayNamePlural}}\\n  @displayNameSingular={{@displayNameSingular}}\\n  @displaySearchExtendedButton={{@displaySearchExtendedButton}}\\n  @enableSearchExtended={{@enableSearchExtended}}\\n  @fetchRecords={{@fetchRecords}}\\n  @isLoading={{@isLoading}}\\n  @isNumberOfPagesDeactivated={{@isNumberOfPagesDeactivated}}\\n  @isNumberOfPagesLoading={{@isNumberOfPagesLoading}}\\n  @isSearch={{this.isSearch}}\\n  @numberOfPages={{@numberOfPages}}\\n  @records={{@records}}\\n  @recordsCount={{@recordsCount}}\\n  @selectedRecordsCount={{@selectedRecordsCount}}\\n  @showMore={{@showMore}}\\n  @viewList={{@viewList}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/data-display/table-view/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tagName } from '@ember-decorators/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Collection, { SortingOrderEnum } from 'client/data/models/collection';\nimport Column from 'client/data/models/column';\nimport FieldModel from 'client/data/models/field';\nimport validateArguments from 'client/decorators/validate';\nimport NestedField from 'client/utils/nested/field';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport ResizableColumnsState from 'client/utils/resizable-columns-state';\nimport { WidgetDisplayTypeEnum } from 'client/utils/widgets';\n\nexport const COLUMN_MIN_WIDTH = 62;\nexport const COLUMN_RESIZER_WIDTH = 4;\n\n@validateArguments\n@tagName('')\nexport default class DataDisplayTableTableColumnHeaderComponent extends Component {\n  @service store;\n  @service eventBus;\n  @service lianaFeatures;\n  @service lianaSession;\n  @service router;\n\n  constructor(...args) {\n    super(...args);\n\n    this.propTypes = {\n      column: PropTypes.oneOfType([PropTypes.instanceOf(Column), PropTypes.object]).isRequired,\n      collection: PropTypes.oneOfType([\n        PropTypes.instanceOf(Collection),\n        PropTypes.instanceOf(FieldModel),\n        PropTypes.instanceOf(NestedField),\n      ]).isRequired,\n      resizableColumnsState: PropTypes.instanceOf(ResizableColumnsState),\n      segmentId: PropTypes.string,\n      sortedField: PropTypes.oneOfType([\n        PropTypes.instanceOf(FieldModel),\n        PropTypes.instanceOf(NestedField),\n      ]),\n      sortedFieldOrder: PropTypes.oneOf(Object.values(SortingOrderEnum)),\n      sort: PropTypes.func,\n      disableSorting: PropTypes.bool,\n      disableFiltering: PropTypes.bool,\n      withNoBorderTop: PropTypes.bool,\n      filterLocation: PropTypes.string,\n      isFirst: PropTypes.bool.isRequired,\n      isEditMode: PropTypes.bool,\n    };\n  }\n\n  order = null;\n\n  didReceiveAttrs() {\n    super.didReceiveAttrs();\n    this.initializeOrder();\n  }\n\n  isFilterMenuVisible = false;\n  @tracked isResizing = false;\n\n  @computed(\n    'lianaSession.currentEnvironment',\n    'column.field.{isBelongsTo,isJson,isSortable,isVirtual,referenceDisplayField}',\n    'disableFiltering',\n    'disableSorting',\n    'lianaFeatures',\n  )\n  get sortingDisabled() {\n    const { referenceDisplayField } = this.column.field;\n\n    if (referenceDisplayField && referenceDisplayField.get('isVirtual')) {\n      return true;\n    }\n\n    if (this.column.field.isJson) {\n      return true;\n    }\n\n    if (\n      this.column.field.isBelongsTo &&\n      // NOTICE: We use disableFiltering property to detect that this table view is built in a\n      //         \"Related Data\" context, because \"Related Data\" does not have the filters feature.\n      this.disableFiltering\n      && !this.lianaFeatures.isFeatureCompatible(\n        'hasManySortingOnReferences',\n        this.lianaSession.currentEnvironment,\n      )\n    ) {\n      return true;\n    }\n\n    return this.disableSorting || !this.column.field.isSortable;\n  }\n\n  @computed(\n    'collection.filterableFieldsWithoutRelationships',\n    'lianaSession.currentEnvironment',\n    'column.field.filterActivated',\n    'disableFiltering',\n    'filterLocation',\n    'lianaFeatures',\n  )\n  get filteringDisabled() {\n    const isDisabled = this.disableFiltering || !this.column.field.filterActivated;\n    if (isDisabled) {\n      return true;\n    }\n\n    let isFilterable = true;\n    if (this.filterLocation) {\n      // Filters on has-many are operational only from the agent version that integrates the\n      // application-wide scope.\n      const filterableFields = this.collection.filterableFieldsWithoutRelationships;\n      const supportScopes = this.lianaFeatures.isFeatureCompatible(\n        'applicationWideScopes',\n        this.lianaSession.currentEnvironment,\n      );\n\n      isFilterable = supportScopes || filterableFields.includes(this.column.field);\n    }\n\n    return !isFilterable;\n  }\n\n  get filterPopupAnchorId() {\n    return `${this.elementId}-filter-popup-anchor`;\n  }\n\n  @computed('column.field')\n  get isNotEmbeddedField() {\n    return this.column.field instanceof FieldModel;\n  }\n\n  @action\n  openSettings() {\n    this.router.transitionTo(\n      'project.rendering.data.collection.settings.general',\n      this.column.field.referenceModel.id,\n    );\n  }\n\n  @computed('column.field.widgetDisplay.name')\n  get hasWidgetNumber() {\n    return [WidgetDisplayTypeEnum.Price, WidgetDisplayTypeEnum.Percentage].includes(\n      this.column.field.widgetDisplay?.name,\n    );\n  }\n\n  @action\n  sortAction(order) {\n    if (this.sortingDisabled) {\n      return false;\n    }\n\n    if (order) {\n      this.set('order', this.order === order ? null : order);\n    } else {\n      this.toggleOrder();\n    }\n    this.sort(this.column, this.order);\n    return true;\n  }\n\n  @action\n  showFilterMenu() {\n    this.eventBus.trigger('quickFilter', this.column.field, this.filterLocation);\n  }\n\n  initializeOrder() {\n    if (this.disableSorting) {\n      return;\n    }\n\n    let columnOrder;\n\n    if (this.sortedFieldOrder && this.sortedField?.fieldName === this.column?.field.fieldName) {\n      columnOrder = this.sortedFieldOrder;\n    }\n\n    if (!columnOrder) {\n      // NOTICE: Manual sorting field (selected by the user).\n      if (\n        this.sortedField\n        && this.column\n        && this.sortedField.fieldName === this.column.field.fieldName\n      ) {\n        columnOrder = this.sortedField.order || 'descending';\n      } else if (!this.sortedField) {\n        let hasSegmentSortingField = false;\n\n        // NOTICE: Segment default sorting field.\n        if (this.segmentId) {\n          const segment = this.store.peekRecord('segment', this.segmentId);\n          hasSegmentSortingField = segment?.defaultSortingFieldOrder && segment.defaultSortingField;\n          if (\n            hasSegmentSortingField\n            && segment.defaultSortingField?.fieldName === this.column.field.fieldName\n          ) {\n            columnOrder = segment.defaultSortingFieldOrder;\n          }\n        }\n\n        // NOTICE: Collection default sorting field.\n        if (\n          !hasSegmentSortingField\n          && this.collection.defaultSortingField\n          && this.collection.defaultSortingField.fieldName === this.column.field.fieldName\n        ) {\n          columnOrder = this.collection.defaultSortingOrder;\n        }\n      }\n    }\n\n    this.set('order', columnOrder || null);\n  }\n\n  toggleOrder() {\n    this.set(\n      'order',\n      this.order === null || this.order === SortingOrderEnum.Ascending\n        ? SortingOrderEnum.Descending\n        : SortingOrderEnum.Ascending,\n    );\n\n    return this.order;\n  }\n\n  get resizableColumnName() {\n    return this.column.field.fieldName;\n  }\n\n  @action\n  onMouseDownHandler({ target, pageX }) {\n    this.columnElement = target.closest('th');\n    this.tableWidth = this.columnElement.closest('table').offsetWidth;\n    this.initialCursorPosition = pageX;\n    this.initialColumnWidth = this.columnElement.offsetWidth;\n    this.isResizing = true;\n\n    document.addEventListener('mousemove', this.onMouseMoveHandler);\n    document.addEventListener('mouseup', this.onMouseUpHandler);\n  }\n\n  @action\n  onMouseMoveHandler({ pageX }) {\n    const columnOffset = pageX - this.initialCursorPosition;\n\n    const newColWidth = this.initialColumnWidth + columnOffset;\n    if (newColWidth < COLUMN_MIN_WIDTH) return;\n\n    this.columnElement.style.setProperty('--beta-table-column-width', `${newColWidth}px`);\n\n    // recalculate the width of the table\n    this.eventBus.trigger('updateTableWidth', { tableWidth: this.tableWidth, columnOffset });\n  }\n\n  @action\n  onMouseUpHandler() {\n    document.removeEventListener('mousemove', this.onMouseMoveHandler);\n    document.removeEventListener('mouseup', this.onMouseUpHandler);\n    this.isResizing = false;\n\n    this.resizableColumnsState.set(this.resizableColumnName, this.columnElement.clientWidth);\n    this.resizableColumnsState.writeToLocalStorage();\n  }\n\n  @action\n  onDoubleClickOnResizerHandler() {\n    this.resizableColumnsState.remove(this.resizableColumnName);\n    this.resizableColumnsState.writeToLocalStorage();\n    this.eventBus.trigger(`${this.resizableColumnsState.localStorageKey}:recalculateTableWidth`);\n  }\n\n  @action\n  handleDidInsert(element) {\n    this.columnElement = element.parentNode;\n    const columnStateValue = this.resizableColumnsState?.get(this.resizableColumnName);\n\n    if (columnStateValue) {\n      this.columnElement.style.setProperty(\n        '--beta-table-column-width',\n        `${columnStateValue + COLUMN_RESIZER_WIDTH}px`,\n        // `${columnStateValue}px`,\n      );\n    }\n  }\n\n  willDestroyElement() {\n    super.willDestroyElement();\n    document.removeEventListener('mousemove', this.onMouseMoveHandler);\n    document.removeEventListener('mouseup', this.onMouseUpHandler);\n\n    this.columnElement = null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<th\\n  class=\\\"c-table-column-header {{@class}}\\\"\\n  data-test-column-header={{this.resizableColumnName}}\\n  ...attributes\\n>\\n  <span\\n    class={{get-classes-with-modifiers\\n      \\'c-table-column-header__content\\'\\n      no-border-top=@withNoBorderTop\\n    }}\\n    {{!-- class=\\\"c-table-column-header__content\\n    {{if @withNoBorderTop \\'c-table-column-header__content--no-border-top\\'}}\\\" --}}\\n  >\\n    {{#if (and (not this.sortingDisabled) this.order)}}\\n      <DataDisplay::Table::TableSortArrow\\n        @order={{this.order}}\\n        @class=\\\"c-table-column-header__sort\\\"\\n        @sort={{this.sortAction}}\\n        @isFirst={{@isFirst}}\\n        data-test-column-header-sort-button\\n      />\\n    {{/if}}\\n\\n    <span\\n      class={{get-classes-with-modifiers\\n        \\'c-table-column-header__display-name\\'\\n        sortable=(unless this.sortingDisabled true)\\n        widget-number=this.hasWidgetNumber\\n        first=@isFirst\\n      }}\\n      {{on \\'click\\' (fn this.sortAction null)}}\\n      role=\\\"button\\\"\\n      data-test-column-header-name\\n    >\\n      {{@column.field.displayName}}\\n    </span>\\n\\n    {{#if @isEditMode}}\\n      {{#if this.isNotEmbeddedField}}\\n        <Button::SettingsButton::FieldSettingsButton\\n          @field={{@column.field}}\\n          data-test-column-header-settings-button\\n        />\\n      {{/if}}\\n    {{else}}\\n      {{#unless this.filteringDisabled}}\\n        <i\\n          id={{this.filterPopupAnchorId}}\\n          class={{get-classes-with-modifiers\\n            \\'material-icons c-table-column-header__filter\\'\\n            no-sort=this.sortingDisabled\\n            active=this.isFilterMenuVisible\\n          }}\\n          {{on \\'click\\' this.showFilterMenu}}\\n          role=\\\"button\\\"\\n          data-test-column-header-filter-button\\n        >\\n          filter_list\\n        </i>\\n      {{/unless}}\\n    {{/if}}\\n  </span>\\n  <div\\n    class=\\\"c-table-column-header__resizer\\\"\\n    {{! template-lint-disable no-pointer-down-event-binding no-invalid-interactive }}\\n    {{on \\'mousedown\\' this.onMouseDownHandler}}\\n    {{on \\'dblclick\\' this.onDoubleClickOnResizerHandler}}\\n    {{did-insert this.handleDidInsert}}\\n    data-test-column-header-resizer\\n  >\\n    <div\\n      class={{get-classes-with-modifiers\\n        \\'c-table-column-header__separator\\'\\n        is-resizing=this.isResizing\\n      }}\\n    ></div>\\n  </div>\\n</th>\\n', { moduleName: 'client/legacy/pods/components/data-display/table/table-column-header/template.hbs' });\n","import { computed, defineProperty } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { isNone } from '@ember/utils';\nimport Model from '@ember-data/model';\nimport Component from '@glimmer/component';\n\nimport Collection from 'client/data/models/collection';\nimport Field from 'client/data/models/field';\nimport { argument, optional, shape } from 'client/decorators/argument';\n\nexport default class DataDisplayTableTableColumnComponent extends Component {\n  @service widgetsManager;\n\n  @argument(Collection) collection;\n  @argument(Model) record;\n  @argument(\n    shape({\n      field: Field,\n      type: String,\n      isPrice: Boolean,\n      collection: Collection,\n      attributeNameWithRelationships: String,\n    }),\n  )\n  column;\n\n  @argument(Function) onCloseEditInline;\n\n  @argument(optional(String)) searchMatch;\n  @argument(optional(Boolean)) isEmbedded;\n  @argument(optional(String)) segmentId;\n\n  @alias('args.column.field') field;\n\n  constructor(...args) {\n    super(...args);\n\n    this.defineDynamicProperties();\n  }\n\n  defineDynamicProperties() {\n    defineProperty(\n      this,\n      'value',\n      alias(`args.record.${this.args.column.attributeNameWithRelationships}`),\n    );\n\n    if (this.args.isEmbedded) {\n      defineProperty(this, 'label', alias('value'));\n    } else {\n      defineProperty(\n        this,\n        'label',\n        computed('args.record', 'field.mappingValues.@each.{label,value}', 'value', {\n          get() {\n            return this.field.getDisplayedValue(this.args.record);\n          },\n          set(key, value) {\n            return this.field.setDisplayedValue(this.args.record, value);\n          },\n        }),\n      );\n    }\n  }\n\n  get isNone() {\n    return isNone(this.label);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @column.isEditing}}\\n  <EditInline\\n    @field={{this.field}}\\n    @forceInsideField={{eq this.field.collection.columnsVisibleOrdered.length 1}}\\n    @isEditing={{@column.isEditing}}\\n    @onClose={{@onCloseEditInline}}\\n    @record={{@record}}\\n    ...attributes\\n  />\\n{{/if}}\\n\\n{{#if (or (not this.isNone) this.field.widgetDisplay.widget.shouldRenderNullValues)}}\\n  <Widgets::Widget\\n    @type=\\\"display-column\\\"\\n    @widgetConfiguration={{this.field.widgetDisplay}}\\n    @field={{this.field}}\\n    @value={{this.value}}\\n    @label={{this.label}}\\n    @searchMatch={{@searchMatch}}\\n    @segmentId={{@segmentId}}\\n    ...attributes\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/data-display/table/table-column/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { equal, or } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nimport config from 'client/config/environment';\nimport Collection from 'client/data/models/collection';\nimport Field from 'client/data/models/field';\nimport ViewList from 'client/data/models/view-list';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nconst { maxRecordsPerPage } = config.APP;\n\nexport default class DataDisplayTableTableFooterComponent extends Component {\n  @service toastr;\n  @service tracker;\n  @service currentUser;\n  @service errorHandler;\n\n  propTypes = {\n    collection: PropTypes.oneOfType([\n      PropTypes.instanceOf(Collection).isRequired,\n      PropTypes.instanceOf(Field).isRequired,\n    ]).isRequired,\n    displayNameSingular: PropTypes.string,\n    displayNamePlural: PropTypes.string,\n    records: PropTypes.oneOfType([PropTypes.array, PropTypes.object]),\n    selectedRecordsCount: PropTypes.number.isRequired,\n    recordsCount: PropTypes.number,\n    isSearch: PropTypes.bool,\n    currentPage: PropTypes.number,\n    numberOfPages: PropTypes.number,\n    viewList: PropTypes.instanceOf(ViewList),\n    fetchRecords: PropTypes.func,\n    enableSearchExtended: PropTypes.func,\n    canEdit: PropTypes.bool.isRequired,\n    isLoading: PropTypes.bool.isRequired,\n    displaySearchExtendedButton: PropTypes.bool,\n    disablePagination: PropTypes.bool,\n    showMore: PropTypes.func,\n    isNumberOfPagesDeactivated: PropTypes.bool,\n    isNumberOfPagesLoading: PropTypes.bool,\n  };\n\n  maxRecordsPerPage = maxRecordsPerPage;\n  selectedRecordsCount = null;\n  isSearch = false;\n  @or('isSearch', 'searchValue') isSearchOrDefault;\n  @equal('collection.paginationType', 'cursor') paginationCursor;\n  @or('selectedRecordsCount', 'selectedRecords.length') selectedRecordsCountOrDefault;\n\n  @computed('collection.displayNameLowerCase', 'displayNamePlural', 'displayNameSingular')\n  get displayNameSingularOrDefault() {\n    return this.displayNameSingular || this.displayNamePlural\n      ? this.displayNameSingular\n      : this.collection.displayNameLowerCase;\n  }\n\n  @computed(\n    'collection.{displayNameLowerCase,displayNamePluralLowerCase}',\n    'displayNamePlural',\n    'displayNameSingular',\n  )\n  get displayNamePluralOrDefault() {\n    return this.displayNameSingular || this.displayNamePlural\n      ? this.displayNamePlural\n      : this.collection.displayNamePluralLowerCase;\n  }\n\n  @computed('currentPage')\n  get canPrevious() {\n    return Number.parseInt(this.currentPage, 10) - 1 > 0;\n  }\n\n  @computed('currentPage', 'numberOfPages', 'records.length', 'viewList.recordsPerPage')\n  get canNext() {\n    return (\n      Number.parseInt(this.currentPage, 10) + 1 <= this.numberOfPages\n      || (!this.numberOfPages && this.records.length >= this.viewList?.recordsPerPage)\n    );\n  }\n\n  @computed('paginationCursor')\n  get canSelect() {\n    return !this.paginationCursor;\n  }\n\n  @computed('records.firstObject.id')\n  get firstRecordId() {\n    return this.records?.firstObject?.id;\n  }\n\n  @computed('records.lastObject.id')\n  get lastRecordId() {\n    return this.records?.lastObject?.id;\n  }\n\n  @action\n  onLeaveEditMode() {\n    if (!this.currentUser.editMode && this.viewList?.hasDirtyAttributes) {\n      this.updateRecordPerPage();\n    }\n  }\n\n  @action\n  fetchPage(params) {\n    return this._fetchPage(params);\n  }\n\n  @action\n  previousPage() {\n    if (this.canPrevious) {\n      const currentPage = Number.parseInt(this.currentPage, 10) - 1;\n      if (this.paginationCursor) {\n        this._fetchPage({ endingBefore: this.firstRecordId, currentPage });\n      } else {\n        this._fetchPage({\n          currentPage,\n          page: parseInt(this.currentPage, 10) - 1,\n        });\n      }\n    }\n  }\n\n  @action\n  nextPage() {\n    if (this.canNext) {\n      const currentPage = Number.parseInt(this.currentPage, 10) + 1;\n      if (this.paginationCursor) {\n        this._fetchPage({ startingAfter: this.lastRecordId, currentPage });\n      } else {\n        this._fetchPage({\n          currentPage,\n          page: parseInt(this.currentPage, 10) + 1,\n        });\n      }\n    }\n  }\n\n  @action\n  selectPage(pageNumber) {\n    return (\n      this.canSelect\n      && this._fetchPage({\n        currentPage: parseInt(pageNumber, 10),\n        page: parseInt(pageNumber, 10),\n      })\n    );\n  }\n\n  async updateRecordPerPage() {\n    try {\n      await waitForNextRunLoop();\n      await this.viewList.save();\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error, 'Records per page update failed');\n      return;\n    }\n    await this.fetchRecords({ currentPage: 1 });\n  }\n\n  _fetchPage(params) {\n    if (params.page) {\n      this.set('currentPage', params.page);\n    } else if (params.startingAfter) {\n      this.set('currentPage', this.currentPage + 1);\n    } else if (params.endingBefore) {\n      this.set('currentPage', this.currentPage - 1);\n    }\n\n    this.fetchRecords(params);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-table-footer\\\"\\n  {{did-update this.onLeaveEditMode this.currentUser.editMode}}\\n  data-test-data-display-table-footer\\n>\\n  {{#if @isLoading}}\\n    <div class=\\\"c-table-footer__loader\\\"></div>\\n  {{else}}\\n    <div class=\\\"c-table-footer__show-more\\\">\\n      {{#if @showMore}}\\n        <span role=\\\"button\\\" data-test-table-footer-show-more {{on \\'click\\' @showMore}}>Show more...</span>\\n      {{/if}}\\n    </div>\\n\\n    <div class=\\\"c-table-footer__pagination\\\">\\n      {{#unless (or @shouldHidePaginator @disablePagination)}}\\n        <Shared::BetaPaginator\\n          @back={{this.previousPage}}\\n          @currentPage={{@currentPage}}\\n          @next={{this.nextPage}}\\n          @selectPage={{if this.canSelect this.selectPage}}\\n          @numberOfPages={{@numberOfPages}}\\n          @isNumberOfPagesDeactivated={{@isNumberOfPagesDeactivated}}\\n          @isNumberOfPagesLoading={{@isNumberOfPagesLoading}}\\n          @isNextButtonDisabled={{not this.canNext}}\\n        />\\n      {{/unless}}\\n    </div>\\n\\n    <div class=\\\"c-table-footer__collection-parent\\\">\\n      {{#if (and @canEdit this.currentUser.editMode (not @disablePagination))}}\\n        <Shared::BetaLabel\\n          class=\\\"c-table-footer__page-editor-label\\\"\\n          @label=\\\"records per page\\\"\\n          @position=\\\"right\\\"\\n          data-test-data-display-table-footer-records-per-page\\n        >\\n          <Shared::BetaInput\\n            @class=\\\"c-table-footer__page-editor-input\\\"\\n            @kind=\\\"editor\\\"\\n            @max={{this.maxRecordsPerPage}}\\n            @min={{1}}\\n            @noNumberHelper={{true}}\\n            @type=\\\"number\\\"\\n            @value={{@viewList.recordsPerPage}}\\n            @size=\\\"sm\\\"\\n          />\\n        </Shared::BetaLabel>\\n      {{else}}\\n        {{#if @recordsCount}}\\n          <span class=\\\"c-table-footer__search-result-count\\\">\\n            {{format-number-to-locale @recordsCount}}\\n          </span>\\n          <span\\n            class=\\\"c-table-footer__search-result-collection\\\"\\n            data-test-table-footer-records-count\\n          >\\n            {{display-name-pluralize\\n              this.displayNameSingularOrDefault\\n              this.displayNamePluralOrDefault\\n              @recordsCount\\n            }}\\n            {{#if @isSearchOrDefault}}\\n              found\\n            {{/if}}\\n\\n            {{#if this.selectedRecordsCountOrDefault}}\\n              →\\n              {{format-number-to-locale this.selectedRecordsCountOrDefault}}\\n              selected\\n            {{/if}}\\n          </span>\\n        {{/if}}\\n\\n        {{#if @displaySearchExtendedButton}}\\n          <span class=\\\"c-table-footer__separator\\\">\\n            |\\n          </span>\\n          <Shared::Button::BetaButton\\n            @action={{@enableSearchExtended}}\\n            @async={{false}}\\n            @text=\\\"Try an extended search\\\"\\n            @type=\\\"link-primary\\\"\\n            @underline={{false}}\\n            class=\\\"c-table-footer__enable-advance-search\\\"\\n          />\\n        {{/if}}\\n      {{/if}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/data-display/table/table-footer/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { next } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { tagName } from '@ember-decorators/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport Collection, { SortingOrderEnum } from 'client/data/models/collection';\nimport FieldModel from 'client/data/models/field';\nimport { argument, arrayOf, oneOf, oneOfType, optional, shape } from 'client/decorators/argument';\nimport { COLUMN_RESIZER_WIDTH } from 'client/legacy/pods/components/data-display/table/table-column-header/component';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport NestedCollection from 'client/utils/nested/collection';\nimport NestedField from 'client/utils/nested/field';\nimport ResizableColumnsState from 'client/utils/resizable-columns-state';\n\nconst columnsShape = arrayOf(\n  shape({\n    field: oneOfType([FieldModel, NestedField]),\n    isVisible: Boolean,\n    position: Number,\n  }),\n);\n\n@tagName('')\nexport default class DataDisplayTableTableFrameComponent extends Component {\n  @service lianaFeatures;\n  @service lianaSession;\n  /** @type {import('@ember-data/store').default} */\n  @service store;\n  /** @type {import('client/legacy/services/event-bus').default} */\n  @service eventBus;\n\n  /** @type {import('client/features/client-record/services/feature').default} */\n  @service('feature/client-record') clientRecordFeature;\n\n  @argument(oneOfType([Collection, FieldModel, NestedField, NestedCollection])) collection;\n  @argument(Boolean) isLoading;\n\n  @argument(optional(Boolean)) areAllRecordsSelected;\n  @argument(optional(columnsShape)) columns;\n  @argument(optional(columnsShape)) columnsVisible;\n  @argument(optional(Function)) computeIsRecordSelect;\n  @argument(optional(Boolean)) disableFiltering;\n  @argument(optional(Boolean)) disableSorting;\n  @argument(optional(String)) filterLocation;\n  @argument(optional(Boolean)) isCurrentPageSelected;\n  @argument(optional(Boolean)) isEditMode;\n  @argument(optional(Boolean)) isEmbedded;\n  @argument(optional(Boolean)) isSection;\n  @argument(optional(Function)) onRowClick;\n  @argument(optional(Function)) onToggleRow;\n  @argument(optional(arrayOf(Object))) records;\n  @argument(optional(String)) searchValue;\n  @argument(optional(String)) segmentId;\n  @argument(optional(Function)) selectAllRecords;\n  @argument(optional(Function)) shouldPreventChangeSelectedRecord;\n  @argument(optional(Function)) unselectAllRecords;\n  @argument(optional(Function)) sortBy;\n  @argument(optional(oneOfType([FieldModel, NestedField]))) sortedField;\n  @argument(optional(oneOf(...Object.values(SortingOrderEnum)))) sortedFieldOrder;\n  @argument(optional(Function)) updateColumn;\n  @argument(optional(Boolean)) withNoBorderTop;\n  @argument(optional(oneOfType([ResizableColumnsState]))) resizableColumnsState;\n\n  @tracked isTableFixed = false;\n\n  inside = true;\n  resizableColumnKey = null;\n\n  init(...args) {\n    super.init(...args);\n    this.initDefaultWidgets();\n    this.eventBus.on('editModeDeactivated', this.hideColumnSettingsMenu);\n  }\n\n  didUpdateAttrs() {\n    super.didUpdateAttrs();\n    this.initDefaultWidgets();\n  }\n\n  @computed('isCollectionVirtual', 'isSelectAllRecordsFeatureCompatible')\n  get selectRelatedActions() {\n    const relatedActions = [];\n    if (!this.isCollectionVirtual) {\n      relatedActions.push({ name: 'Select current page only', action: 'select-current-page-only' });\n      if (this.isSelectAllRecordsFeatureCompatible) {\n        relatedActions.unshift({ name: 'Select all records', action: 'select-all-records' });\n      }\n    }\n    return relatedActions;\n  }\n\n  @computed(\n    'areAllRecordsSelected',\n    'computeIsRecordSelect',\n    'isCurrentPageSelected',\n    'records.@each.isSelected',\n  )\n  get isCurrentPageSelectedOrDefault() {\n    if (this.isCurrentPageSelected !== undefined) return this.isCurrentPageSelected;\n\n    // This code won't be used except by smart views.\n    // TODO: Make sure smart view doesn't use it before deleting it\n    if (!this.records || !this.records.length) {\n      return false;\n    }\n    if (this.areAllRecordsSelected && this.records.every((record) => !record.get('isSelected'))) {\n      return null;\n    }\n    return (\n      this.records.every((record) => record.get('isSelected'))\n      || (this.records.every((record) => !record.get('isSelected')) ? false : null)\n    );\n  }\n\n  set isCurrentPageSelectedOrDefault(value) {\n    this.setSelectCurrentPage(value);\n    return value;\n  }\n\n  @computed('collection.isSmart')\n  get isCollectionVirtual() {\n    return this.collection.isSmart;\n  }\n\n  @computed('lianaSession.currentEnvironment', 'lianaFeatures')\n  get isSelectAllRecordsFeatureCompatible() {\n    const environment = this.lianaSession.currentEnvironment;\n    return this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.TableViewSelectAllRecords,\n      environment,\n    );\n  }\n\n  @computed('columnsInfo', 'isLoading')\n  get displayLoading() {\n    return this.isLoading || !this.columnsInfo;\n  }\n\n  @action\n  toggleShowColumnSettingsMenu() {\n    this.toggleProperty('showColumnSettingsMenu');\n  }\n\n  @action\n  hideColumnSettingsMenu() {\n    this.set('showColumnSettingsMenu', false);\n  }\n\n  @action\n  async showColumn(column) {\n    column.set('isVisible', true);\n    await this.updateColumn(column);\n  }\n\n  @action\n  async hideColumn(column) {\n    column.set('isVisible', false);\n    await this.updateColumn(column);\n  }\n\n  @action\n  handleSelectRelatedAction(actionName) {\n    if (this.shouldPreventChangeSelectedRecord?.()) return false;\n\n    switch (actionName) {\n      case 'select-all-records':\n        return this.setSelectAllRecords();\n      case 'select-current-page-only':\n        return this.setSelectCurrentPage(true);\n      default:\n        throw new Error('Action provided to \"handleSelectRelatedAction\" is invalid');\n    }\n  }\n\n  get parentId() {\n    return guidFor(this);\n  }\n\n  @action\n  scrollToLeft() {\n    const element = document.querySelector(`#${this.parentId}`);\n    if (element) {\n      element.scrollLeft = 0;\n    }\n  }\n\n  @computed('columnsVisible')\n  get columnsInfo() {\n    return DataDisplayTableTableFrameComponent.computeColumnsInfo(this.columnsVisible);\n  }\n\n  @computed(\n    'collection.viewEdit.summaryView.sections.length',\n    'isEmbedded',\n    'lianaSession.currentProject',\n  )\n  get recordPath() {\n    if (this.isEmbedded) {\n      return null;\n    }\n    return this.clientRecordFeature.getRecordLink(this.collection);\n  }\n\n  // NOTICE: For performance, precompute all necessary columns information once to prevent the\n  //         job to be done for each line of table.\n  static computeColumnsInfo(columns) {\n    return columns.map(({ field }) => {\n      const isPrice = field.widgetEdit?.name === 'price';\n      const { attributeNameWithRelationships } = field;\n\n      return {\n        type: field.type,\n        isPrice,\n        collection: field.referenceModel,\n        field,\n        attributeNameWithRelationships,\n      };\n    });\n  }\n\n  setSelectCurrentPage(isCurrentPageSelected) {\n    if (this.unselectAllRecords && (!isCurrentPageSelected || this.areAllRecordsSelected)) {\n      this.unselectAllRecords();\n      return;\n    }\n\n    if (this.records) {\n      const getIsSelected = this.computeIsRecordSelect || ((record) => record.isSelected);\n      const recordsToToggle = [];\n      this.records.forEach((record) => {\n        if (getIsSelected(record) !== isCurrentPageSelected) {\n          if (!this.computeIsRecordSelect) {\n            record.set('isSelected', isCurrentPageSelected);\n          }\n\n          recordsToToggle.push(record);\n        }\n      });\n      this.onToggleRow?.(...recordsToToggle);\n    }\n  }\n\n  setSelectAllRecords() {\n    if (this.records) {\n      this.setSelectCurrentPage(true);\n      if (this.selectAllRecords) this.selectAllRecords();\n    }\n  }\n\n  /**\n   * @private\n   */\n  initDefaultWidgets() {\n    next(() => {\n      if (this.isDestroyed || this.isDestroying) return;\n      this.columnsInfo.forEach((column) => {\n        column.field.ensureWidgetDefaults();\n      });\n    });\n  }\n\n  @action\n  updateTableWidth(precedentTableWidth, columnOffset = 0) {\n    const tableContainer = document.getElementById(this.parentId);\n    if (!tableContainer) return;\n    const tableContainerWidth = tableContainer.offsetWidth;\n\n    // when there is a gap between the table and the container,\n    // we fill it with the last column\n    if (precedentTableWidth + columnOffset < tableContainerWidth) {\n      const columns = this.tableElement.querySelectorAll('th');\n\n      let sumWithoutLastCol = 0;\n      for (let index = 0; index < columns.length - 1; index += 1) {\n        const element = columns[index];\n        sumWithoutLastCol += element.clientWidth;\n      }\n      const lastColumn = columns[columns.length - 1];\n      lastColumn.style.setProperty(\n        '--beta-table-column-width',\n        `${tableContainerWidth - sumWithoutLastCol}px`,\n      );\n\n      this.tableElement.style.setProperty('width', `${tableContainerWidth}px`);\n      return;\n    }\n    this.tableElement.style.setProperty('width', `${precedentTableWidth + columnOffset}px`);\n  }\n\n  @action\n  async calculateTableWidth() {\n    // exclude the checkbox column\n    const tableColumns = this.tableElement.querySelectorAll('th:not(:first-child)');\n\n    // we need to reset these before calculating the table width\n    this.tableElement.style.removeProperty('width');\n    this.isTableFixed = false;\n    tableColumns.forEach((column, index) => {\n      const columnStateValue = this.resizableColumnsState?.get(\n        this.columnsVisible[index]?.field.fieldName,\n      );\n\n      if (!columnStateValue) column.style.removeProperty('--beta-table-column-width');\n    });\n\n    await waitForNextRunLoop();\n\n    let tableWidth = 0;\n    tableColumns.forEach((column, index) => {\n      const columnStateValue = this.resizableColumnsState?.get(\n        this.columnsVisible[index]?.field.fieldName,\n      );\n      if (columnStateValue) {\n        tableWidth += columnStateValue;\n        column.style.setProperty('--beta-table-column-width', `${columnStateValue}px`);\n        return;\n      }\n      tableWidth += column.clientWidth + COLUMN_RESIZER_WIDTH;\n      column.style.setProperty('--beta-table-column-width', `${column.clientWidth}px`);\n    });\n\n    this.updateTableWidth(tableWidth);\n\n    this.isTableFixed = true;\n  }\n\n  @action\n  async handleTableInserted(tableElement) {\n    this.tableElement = tableElement;\n\n    window.addEventListener('resize', this._handleResize);\n\n    this.eventBus.on('recalculateTableWidth', this.calculateTableWidth);\n    this.eventBus.on('updateTableWidth', this.updateTableWidth);\n\n    if (this.resizableColumnsState?.localStorageKey) {\n      // Keep track of the current value of the resizable column key,\n      // because this value changes when the user switches between collections\n      // and it is updated before the call to willDestroyElement\n      this.resizableColumnKey = this.resizableColumnsState?.localStorageKey;\n      this.eventBus.on(\n        `${this.resizableColumnKey}:recalculateTableWidth`,\n        this.calculateTableWidth,\n      );\n    }\n\n    return this.handleTableUpdate();\n  }\n\n  @action\n  async handleTableUpdate() {\n    await this.calculateTableWidth();\n  }\n\n  @action\n  _handleResize() {\n    this.updateTableWidth(this.tableElement.offsetWidth);\n  }\n\n  willDestroyElement() {\n    super.willDestroyElement();\n    this.tableElement = null;\n    window.removeEventListener('resize', this._handleResize);\n    this.eventBus.off('recalculateTableWidth', this.calculateTableWidth);\n    this.eventBus.off('updateTableWidth', this.updateTableWidth);\n    this.eventBus.off('editModeDeactivated', this.hideColumnSettingsMenu);\n    if (this.resizableColumnKey) {\n      this.eventBus.off(\n        `${this.resizableColumnKey}:recalculateTableWidth`,\n        this.calculateTableWidth,\n      );\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  id={{this.parentId}}\\n  {{did-update this.scrollToLeft @columns}}\\n  class=\\\"l-table-frame-container {{if this.displayLoading \\'l-table-frame-container--no-scroll\\'}}\\\"\\n>\\n  {{! template-lint-disable table-groups }}\\n  <table\\n    class={{get-classes-with-modifiers\\n      \\'c-table-frame\\'\\n      loading=this.displayLoading\\n      fixed=this.isTableFixed\\n    }}\\n    {{did-insert this.handleTableInserted}}\\n    {{did-update this.handleTableUpdate @records @columnsVisible}}\\n    data-test-table-view\\n  >\\n    <thead class=\\\"l-table-frame-headers\\\">\\n      <tr class=\\\"l-table-frame-headers-line\\\">\\n        <th\\n          class=\\\"c-table-frame__header c-table-frame__header--select-all\\\"\\n          role=\\\"button\\\"\\n          scope=\\\"col\\\"\\n        >\\n          <div\\n            class=\\\"c-table-frame__checkbox-select-all\\n              {{if @withNoBorderTop \\'c-table-frame__checkbox-select-all--no-border-top\\'}}\\\"\\n          >\\n            <div class=\\\"l-table-frame-checkbox-select-all\\\">\\n              {{#if (and @isEditMode (not @isEmbedded))}}\\n                <Button::SettingsButton\\n                  @action={{this.toggleShowColumnSettingsMenu}}\\n                  @icon=\\\"low_priority\\\"\\n                />\\n                {{#if this.showColumnSettingsMenu}}\\n                  <XDropdown\\n                    @onClickAction={{this.toggleShowColumnSettingsMenu}}\\n                    @onLeaveAction={{this.hideColumnSettingsMenu}}\\n                  >\\n                    <ColumnSettingsMenu\\n                      @columns={{@columns}}\\n                      @hide={{this.hideColumn}}\\n                      @groupName=\\\"table-frame-headers\\\"\\n                      @modelName=\\\"column\\\"\\n                      @segmentId={{@segmentId}}\\n                      @show={{this.showColumn}}\\n                      @classPosition=\\\"l-table-frame-checkbox-select-all__settings-dropdown\\\"\\n                    />\\n                  </XDropdown>\\n                {{/if}}\\n              {{else}}\\n                <Dropdown::DropdownCheckbox\\n                  @dropdownActions={{this.selectRelatedActions}}\\n                  @triggerDropdownAction={{this.handleSelectRelatedAction}}\\n                  @value={{this.isCurrentPageSelectedOrDefault}}\\n                  @shouldPreventClick={{@shouldPreventChangeSelectedRecord}}\\n                  data-test-table-frame-select-all-checkbox\\n                />\\n              {{/if}}\\n            </div>\\n          </div>\\n        </th>\\n\\n        {{#each this.columnsVisible as |column index|}}\\n          {{#if column.field.type}}\\n            <DataDisplay::Table::TableColumnHeader\\n              @class=\\\"c-table-frame__header\\\"\\n              @collection={{@collection}}\\n              @column={{column}}\\n              @resizableColumnsState={{@resizableColumnsState}}\\n              @disableFiltering={{or @disableFiltering @isEmbedded}}\\n              @disableSorting={{@disableSorting}}\\n              @filterLocation={{@filterLocation}}\\n              @isEditMode={{@isEditMode}}\\n              @isFirst={{eq index 0}}\\n              @segmentId={{@segmentId}}\\n              @sort={{@sortBy}}\\n              @sortedField={{@sortedField}}\\n              @sortedFieldOrder={{@sortedFieldOrder}}\\n              @withNoBorderTop={{@withNoBorderTop}}\\n              data-test-table-view-column-header={{index}}\\n            />\\n          {{/if}}\\n        {{/each}}\\n      </tr>\\n    </thead>\\n    {{#if this.displayLoading}}\\n      <Shared::DataDisplay::Table::Loader\\n        class=\\\"l-table-frame-body\\\"\\n        @hasCheckbox={{true}}\\n        @columnsCount={{this.columnsVisible.length}}\\n      />\\n    {{else}}\\n      <tbody class=\\\"l-table-frame-body\\\">\\n        {{#each @records as |record index|}}\\n          <DataDisplay::Table::TableLine\\n            @collection={{@collection}}\\n            @columnsInfo={{this.columnsInfo}}\\n            @computeIsRecordSelect={{@computeIsRecordSelect}}\\n            @isEditMode={{@isEditMode}}\\n            @index={{index}}\\n            @isEmbedded={{@isEmbedded}}\\n            @isLoading={{@isLoading}}\\n            @onRowClick={{@onRowClick}}\\n            @onToggleRow={{@onToggleRow}}\\n            @record={{record}}\\n            @recordPath={{this.recordPath}}\\n            @searchValue={{@searchValue}}\\n            @segmentId={{@segmentId}}\\n            @filter={{@filter}}\\n            @onFilter={{@onFilter}}\\n            @shouldPreventChangeSelectedRecord={{@shouldPreventChangeSelectedRecord}}\\n            data-test-table-view-line={{index}}\\n          />\\n        {{/each}}\\n      </tbody>\\n    {{/if}}\\n  </table>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/data-display/table/table-frame/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type CollectionFeatureService from 'client/features/collection/services/feature';\nimport type ClipboardService from 'client/legacy/services/clipboard';\nimport type ContextMenuService from 'client/legacy/services/context-menu';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type { OperatorValue } from 'client/utils/operators';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport CollectionModel from 'client/data/models/collection';\nimport FieldModel from 'client/data/models/field';\nimport FilterModel from 'client/data/models/filter';\nimport { ClientRecordModel, META_FIELD } from 'client/utils/collection-creator/model';\nimport NestedCollection from 'client/utils/nested/collection';\nimport NestedField from 'client/utils/nested/field';\nimport { CommonOperatorDisplayNameEnum } from 'client/utils/operators/types';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport { namespace } from 'client/utils/string-utils';\n\ninterface Args {\n  record: ClientRecordModel;\n  collection: CollectionModel | FieldModel | NestedCollection;\n  columnsInfo: Array<{\n    type: unknown;\n    isPrice: boolean;\n    collection: CollectionModel | NestedCollection;\n    field: FieldModel | NestedField;\n    attributeNameWithRelationships: string;\n  }>;\n  isEditMode?: boolean;\n  isEmbedded?: boolean;\n  isLoading?: boolean;\n  index?: number;\n  onRowClick?: (index: number, onNewTab: boolean, record: ClientRecordModel) => void;\n  onToggleRow?: (record: ClientRecordModel) => void;\n  recordPath?: string;\n  segmentId?: string;\n  shouldPreventChangeSelectedRecord?: () => boolean;\n  computeIsRecordSelect?: (record: ClientRecordModel) => boolean;\n  searchValue?: string;\n  onFilter?: (filter: FilterModel) => void;\n  filter?: FilterModel;\n}\n\ninterface ColumnInfo {\n  value: string | number | boolean;\n  isEditing: boolean;\n  searchMatch?: string;\n  type: unknown;\n  isPrice: boolean;\n  collection: CollectionModel | NestedCollection;\n  field: FieldModel | NestedField;\n  attributeNameWithRelationships: string;\n}\n\nclass CColumnInfo implements ColumnInfo {\n  value: string | number | boolean;\n  // we create a new class because we need this to be tracked\n  @tracked\n  isEditing: boolean;\n\n  searchMatch?: string;\n  type: unknown;\n  isPrice: boolean;\n  collection: CollectionModel | NestedCollection;\n  field: FieldModel | NestedField;\n  attributeNameWithRelationships: string;\n\n  constructor(columnInfo: ColumnInfo) {\n    this.value = columnInfo.value;\n    this.isEditing = columnInfo.isEditing;\n    this.searchMatch = columnInfo.searchMatch;\n    this.type = columnInfo.type;\n    this.isPrice = columnInfo.isPrice;\n    this.collection = columnInfo.collection;\n    this.field = columnInfo.field;\n    this.attributeNameWithRelationships = columnInfo.attributeNameWithRelationships;\n  }\n}\n\nexport default class DataDisplayTableTableLineComponent extends Component<Args> {\n  static propTypes = {\n    record: PropTypes.instanceOf(ClientRecordModel).isRequired,\n    collection: PropTypes.oneOfType([\n      PropTypes.instanceOf(CollectionModel),\n      PropTypes.instanceOf(FieldModel),\n      PropTypes.instanceOf(NestedCollection),\n    ]).isRequired,\n    columnsInfo: PropTypes.arrayOf(\n      PropTypes.shape({\n        type: PropTypes.any,\n        isPrice: PropTypes.bool,\n        collection: PropTypes.oneOfType([\n          PropTypes.instanceOf(CollectionModel),\n          PropTypes.instanceOf(NestedCollection),\n        ]),\n        field: PropTypes.oneOfType([\n          PropTypes.instanceOf(FieldModel),\n          PropTypes.instanceOf(NestedField),\n        ]),\n        attributeNameWithRelationships: PropTypes.string,\n      }),\n    ),\n    isEditMode: PropTypes.bool,\n    isEmbedded: PropTypes.bool,\n    isLoading: PropTypes.bool,\n    index: PropTypes.number,\n    onRowClick: PropTypes.func,\n    onToggleRow: PropTypes.func,\n    recordPath: PropTypes.string,\n    segmentId: PropTypes.string,\n    shouldPreventChangeSelectedRecord: PropTypes.func,\n    searchValue: PropTypes.string,\n    onFilter: PropTypes.func,\n    filter: PropTypes.instanceOf(FilterModel),\n  };\n\n  @service('context-menu') private contextMenuService: ContextMenuService;\n  @service private clipboard: ClipboardService;\n  @service private currentUser: CurrentUserService;\n  @service private router: RouterService;\n  @service('feature/collection') private collectionFeatureService: CollectionFeatureService;\n\n  @tracked columnsLoaded: Array<CColumnInfo> | null = null;\n  @tracked mouseDownAt: number;\n  @tracked recordDetailsLink: string;\n\n  constructor(owner: unknown, args: Args) {\n    super(owner, args);\n    const { columnsInfo, collection, record, recordPath } = this.args;\n\n    if (!this.args.isEmbedded && record.id) {\n      this.recordDetailsLink = this.router.urlFor(\n        recordPath,\n        (collection as CollectionModel).shareableId,\n        (collection as CollectionModel).shareableId,\n        record.id,\n        {\n          queryParams: this.router.currentRoute.queryParams,\n        },\n      );\n    }\n\n    if (columnsInfo) {\n      this.loadColumns();\n    }\n  }\n\n  isTypeEditableInline(field: FieldModel) {\n    return (\n      field.isString\n      || field.isNumber\n      || field.isDate\n      || field.isDateonly\n      || field.isBoolean\n      || field.isEnumSimple\n      || field.isUuid\n      || field.widgetEdit.widget.editInlineValueOnLeftClick\n    );\n  }\n\n  @action\n  loadColumns() {\n    const columns = this.args.columnsInfo.map((columnInfo) => {\n      const { attributeNameWithRelationships } = columnInfo;\n      const searchMatches = this.args.record.get(\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        `${namespace(META_FIELD, '-')}.decorators.search`,\n      ) as string | undefined;\n      const data: { value: string | number | boolean; isEditing: boolean; searchMatch?: string } = {\n        value: this.args.record[attributeNameWithRelationships] as string | number | boolean,\n        isEditing: false,\n      };\n\n      if (\n        searchMatches\n        && searchMatches.includes((columnInfo.field as FieldModel).get('fieldName'))\n      ) {\n        data.searchMatch = this.args.searchValue;\n      }\n\n      return new CColumnInfo({ ...columnInfo, ...data });\n    });\n\n    this.columnsLoaded = columns;\n  }\n\n  @action\n  toggleRecordSelection(value: unknown, event: Event) {\n    if (this.args.shouldPreventChangeSelectedRecord?.()) return;\n\n    if (!this.args.computeIsRecordSelect) {\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-ignore\n      this.args.record.isSelected = !this.args.record.isSelected;\n    }\n\n    this.onSelectChange(value, event);\n  }\n\n  @action\n  onCloseEditInline(index: number) {\n    this.columnsLoaded.objectAt(index).isEditing = false;\n  }\n\n  @action\n  leftClickHandler(index: number, event: Event) {\n    const { field } = this.columnsLoaded.objectAt(index);\n    const isTypeCompatible = this.isTypeEditableInline(field as FieldModel);\n    const isEditable =\n      isTypeCompatible\n      && !field.isReadOnly\n      && this.currentUser.canEditCollection(this.args.collection as CollectionModel)\n      && field.widgetEdit.widget.editInlineValueOnLeftClick;\n    if (isEditable) {\n      event.stopPropagation();\n      this.columnsLoaded.objectAt(index).isEditing = true;\n    }\n  }\n\n  @action\n  contextMenuHandler(index: number, event: Event) {\n    const { field, value } = this.columnsLoaded.objectAt(index);\n    const isTypeCompatible = this.isTypeEditableInline(field as FieldModel);\n    const isNotEditable =\n      field.isReadOnly\n      || !this.currentUser.canEditCollection(this.args.collection as CollectionModel);\n    const items = [];\n\n    if (isTypeCompatible) {\n      items.push(\n        {\n          label: 'Edit',\n          disabled: isNotEditable,\n          action: () => {\n            this.columnsLoaded.objectAt(index).isEditing = true;\n          },\n        },\n        {\n          label: 'Copy',\n          action: async () => {\n            await this.clipboard.copyToClipboard(\n              value as string,\n              `${field.displayNameTitlize} copied to clipboard.`,\n            );\n          },\n        },\n      );\n      if ((field as FieldModel).filterActivated && !field.isDate) {\n        items.push({\n          label: `Filter on ${field.getDisplayedValue(this.args.record) as string}`,\n          action: () => {\n            const newCondition = {\n              operator: CommonOperatorDisplayNameEnum.Is,\n              value: value as OperatorValue,\n              fieldName: field.fieldName,\n            };\n\n            if (!this.args.filter || this.args.filter.conditions.length === 0) {\n              const filter = this.collectionFeatureService.createFilter(\n                this.args.collection as CollectionModel,\n                { conditions: [newCondition] },\n              );\n              this.args.onFilter(filter);\n              return;\n            }\n\n            const sameFieldCondition = this.args.filter.conditions.find(\n              (condition) => condition.fieldName === field.fieldName,\n            );\n            if (sameFieldCondition && this.args.filter.conditions.length === 1) {\n              this.args.filter.operator = 'or';\n            }\n            this.collectionFeatureService.addFilterCondition(this.args.filter, newCondition);\n            this.args.onFilter(this.args.filter);\n          },\n        });\n      }\n    }\n\n    if (!field.isRelationship && items.length > 0) {\n      this.contextMenuService.addSection({\n        sectionLabel: 'field',\n        items,\n      });\n    } else {\n      event.preventDefault();\n    }\n  }\n\n  @action\n  onSelectChange(value: unknown, event: Event) {\n    // NOTICE: stop propagation for not triggering parent click\n    event.stopPropagation();\n    this.args.onToggleRow?.(this.args.record);\n  }\n\n  @action\n  onMouseDown() {\n    this.mouseDownAt = Date.now();\n  }\n\n  @action\n  onClick(event: KeyboardEvent) {\n    if (Date.now() - this.mouseDownAt > 250 || (event.target as HTMLElement)?.closest('a')) {\n      return;\n    }\n\n    const onNewTab = event.metaKey || event.ctrlKey;\n    if (this.args.onRowClick) {\n      this.args.onRowClick(this.args.index, onNewTab, this.args.record);\n    } else {\n      this.onRowClickDefault(onNewTab);\n    }\n  }\n\n  onRowClickDefault(onNewTab: boolean) {\n    if (onNewTab) {\n      window.open(this.recordDetailsLink);\n    } else {\n      void this.router.transitionTo(this.recordDetailsLink);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let\\n  (if\\n    @computeIsRecordSelect\\n    (compute (fn (optional @computeIsRecordSelect) @record))\\n    @record.isSelected\\n  )\\n  as |isSelected|\\n}}\\n  <tr\\n    class=\\\"c-table-line\\n      {{if isSelected \\'c-table-line--selected\\'}}\\n      {{if @isLoading \\'c-table-line--hidden\\'}}\\\"\\n    {{! template-lint-disable no-pointer-down-event-binding }}\\n    {{on \\'mousedown\\' this.onMouseDown}}\\n    {{on \\'click\\' this.onClick}}\\n    role=\\\"button\\\"\\n    data-test-table-line={{@index}}\\n    data-dd-action-name=\\\"Clicking on table row number {{@index}}\\\"\\n    {{did-update this.loadColumns @columnsInfo}}\\n    ...attributes\\n  >\\n    {{! template-lint-disable no-nested-interactive }}\\n    <td\\n      class=\\\"c-table-line__checkbox\\\"\\n      role=\\\"checkbox\\\"\\n      aria-checked={{isSelected}}\\n      data-test-table-line-checkbox-container\\n      {{on \\'click\\' (fn this.toggleRecordSelection (not isSelected))}}\\n    >\\n      <Form::BetaCheckbox\\n        @class={{concat\\n          \\'c-table-line__checkbox-input \\'\\n          (if @isEditMode \\'c-table-line__checkbox-input--hidden\\')\\n        }}\\n        @defaultValue={{false}}\\n        @onChange={{this.onSelectChange}}\\n        @small={{true}}\\n        @value={{isSelected}}\\n        @hasNullState={{false}}\\n        @shouldPreventClick={{@shouldPreventChangeSelectedRecord}}\\n        data-test-table-line-checkbox\\n      />\\n    </td>\\n\\n    {{#each this.columnsLoaded as |column index|}}\\n      {{#if column.type}}\\n        <td\\n          class=\\\"c-table-line__column\\\"\\n          role=\\\"button\\\"\\n          {{on \\'click\\' (fn this.leftClickHandler index)}}\\n          {{on \\'contextmenu\\' (fn this.contextMenuHandler index)}}\\n        >\\n          <DataDisplay::Table::TableColumn\\n            @collection={{column.collection}}\\n            @column={{column}}\\n            @onCloseEditInline={{fn this.onCloseEditInline index}}\\n            @isEmbedded={{@isEmbedded}}\\n            @record={{@record}}\\n            @searchMatch={{column.searchMatch}}\\n            @segmentId={{@segmentId}}\\n            data-test-table-line-column={{index}}\\n            data-test-table-line-column-name={{column.field.fieldName}}\\n          />\\n        </td>\\n      {{/if}}\\n    {{/each}}\\n  </tr>\\n{{/let}}\\n', { moduleName: 'client/legacy/pods/components/data-display/table/table-line/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { SortingOrderEnum } from 'client/data/models/collection';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class DataDisplayTableTableSortArrowComponent extends Component {\n  propTypes = {\n    order: PropTypes.oneOf([...Object.values(SortingOrderEnum), null]).isRequired,\n    sort: PropTypes.func.isRequired,\n    isFirst: PropTypes.bool,\n  };\n\n  get isDesc() {\n    return this.args.order === SortingOrderEnum.Descending || this.args.order === null;\n  }\n\n  get orderOrDefault() {\n    return this.args.order || SortingOrderEnum.Descending;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<i\\n  class={{get-classes-with-modifiers \\'c-table-sort-arrow\\' first=@isFirst desc=this.isDesc}}\\n  data-test-data-display-table-sort-arrow\\n  data-test-data-display-table-sort-arrow-desc={{this.isDesc}}\\n  data-test-data-display-table-sort-arrow-asc={{not this.isDesc}}\\n  role=\\\"button\\\"\\n  {{on \\'click\\' (fn @sort (if this.isDesc \\'ascending\\' \\'descending\\'))}}\\n  ...attributes\\n>\\n  arrow_upward\\n</i>\\n', { moduleName: 'client/legacy/pods/components/data-display/table/table-sort-arrow/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let (generate-guid) as |componentId|}}\\n  <div\\n    class=\\\"c-data-display-with-tooltip\\\"\\n    id={{componentId}}\\n    data-test-data-display-with-tooltip\\n    ...attributes\\n  >\\n\\n    {{yield}}\\n\\n    {{#if (and @displayTooltip (not (eq @displayTooltip \\'\\')))}}\\n      <Shared::Feedback::BetaTooltip @targetId={{componentId}} @side={{or @side \\'left\\'}}>\\n        {{@displayTooltip}}\\n      </Shared::Feedback::BetaTooltip>\\n    {{/if}}\\n  </div>\\n{{/let}}\\n', { moduleName: 'client/legacy/pods/components/data-display/with-tooltip/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\n\nimport Collection from 'client/data/models/collection';\nimport SegmentModel from 'client/data/models/segment';\nimport { MissingRequiredPropertyError, WrongPropertyValueError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n// eslint-disable-next-line ember/require-tagless-components\nexport default class DropdownBetaDropdownActionsComponent extends Component {\n  @service recordDuplicator;\n  @service router;\n  /** @type {import('client/features/action/services/internal-business/availability')} */\n  @service('feature/action/internal-business/availability') actionService;\n\n  /** @type {import('client/legacy/services/documentation-link-getter').default} */\n  @service documentationLinkGetter;\n\n  propTypes = {\n    shouldDisplayActionDropdown: PropTypes.bool,\n    shouldDisplayWorkflowDropdown: PropTypes.bool,\n    customActions: PropTypes.arrayOf(PropTypes.object).isRequired,\n    enabledCustomActions: PropTypes.arrayOf(PropTypes.object),\n    collection: PropTypes.instanceOf(Collection).isRequired,\n    segment: PropTypes.instanceOf(SegmentModel),\n    isEditMode: PropTypes.bool,\n    isListView: PropTypes.bool,\n    selectedRecordsArray: PropTypes.arrayOf(PropTypes.object),\n    areAllRecordsSelected: PropTypes.bool,\n    selectedRecordsCount: PropTypes.number,\n    selectedRecord: PropTypes.object,\n    isDuplicable: PropTypes.bool,\n    isDeletable: PropTypes.bool,\n    triggerCustomAction: PropTypes.func.isRequired,\n    disableActionRestrictedToSegment: PropTypes.func,\n    deleteRecords: PropTypes.func,\n    buttonSize: PropTypes.string,\n    openDuplicateRecord: PropTypes.func,\n    shouldPreventOpen: PropTypes.func,\n  };\n\n  get dropdownId() {\n    return `${guidFor(this)}-smart-actions-tooltip-target`;\n  }\n\n  @computed('collection.customActionsOrderedWithHidden.length', 'isEditMode')\n  get isDisabled() {\n    return this.isEditMode && !this.collection.customActionsOrderedWithHidden?.length;\n  }\n\n  @computed('selectedRecordsArray.[]', 'selectedRecord', 'isListView')\n  get singleRecordSelected() {\n    if (this.isListView) {\n      return this.selectedRecordsArray.length === 1 ? this.selectedRecordsArray[0] : null;\n    }\n    return this.selectedRecord;\n  }\n\n  @computed('collection')\n  get collectionName() {\n    return this.collection.get('displayNameLowerCase');\n  }\n\n  @computed('selectedRecordsCount', 'selectedRecordsArray.[]', 'selectedRecord')\n  get selectedActionsCount() {\n    if (this.selectedRecord) {\n      return 1;\n    }\n    if (this.selectedRecordsCount) {\n      return this.selectedRecordsCount;\n    }\n    return this.selectedRecordsArray.length;\n  }\n\n  @computed('shouldDisplayActionDropdown')\n  get isActionButtonDisplayed() {\n    return this.shouldDisplayActionDropdown !== false;\n  }\n\n  get smartActionsDocumentationLink() {\n    return this.documentationLinkGetter.getDocumentationLink('smart actions');\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    this.isEditMode = this.isEditMode ?? false;\n    this.isListView = this.isListView ?? false;\n\n    if (this.isListView && !this.selectedRecordsArray) {\n      throw new MissingRequiredPropertyError('selectedRecordsArray');\n    }\n\n    if (this.isListView && !Array.isArray(this.selectedRecordsArray)) {\n      throw new WrongPropertyValueError('selectedRecordsArray', this.selectedRecordsArray);\n    }\n\n    if (!this.isListView && !this.selectedRecord) {\n      throw new MissingRequiredPropertyError('selectedRecord');\n    }\n\n    if (!this.collection) {\n      throw new MissingRequiredPropertyError('collection');\n    }\n\n    if (!this.customActions) {\n      throw new MissingRequiredPropertyError('customActions');\n    }\n\n    if (!this.triggerCustomAction) {\n      throw new MissingRequiredPropertyError('triggerCustomAction');\n    }\n  }\n\n  @action\n  async duplicateRecord() {\n    if (!this.singleRecordSelected) {\n      throw new Error('No record selected for duplication.');\n    }\n\n    if (this.openDuplicateRecord) {\n      this.openDuplicateRecord(this.singleRecordSelected);\n    } else {\n      await this.recordDuplicator.duplicate(this.collection, this.singleRecordSelected);\n      this.router.transitionTo(\n        'project.rendering.data.collection.list.view-create.details',\n        this.collection?.id,\n        this.collection?.id,\n      );\n    }\n  }\n\n  @action\n  deleteSelectedRecords() {\n    return this.deleteRecords(this.selectedRecordsArray);\n  }\n\n  @action\n  triggerAction(customAction, event) {\n    if (customAction.isDisabled) {\n      event.stopPropagation();\n    }\n\n    return this.triggerCustomAction(customAction);\n  }\n\n  @action\n  isActionDisplayed(customAction) {\n    return !(\n      customAction.isHidden\n      || (this.selectedActionsCount && customAction.isGlobal)\n      || (!this.selectedActionsCount && !customAction.isGlobal)\n    );\n  }\n\n  /**\n   * @param {import('client/data/models/custom-action').default} customAction\n   * @returns {boolean}\n   */\n  @action\n  isActionDisabled(customAction) {\n    return !this.actionService.isActionEnabled(customAction, {\n      enabledCustomActions: this.enabledCustomActions,\n      selectedRecordsCount: this.selectedActionsCount,\n      areAllRecordsSelected: this.areAllRecordsSelected,\n      disabled: this.disableActionRestrictedToSegment?.(customAction),\n    });\n  }\n}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Model from '@ember-data/model';\nimport Component from '@glimmer/component';\n\nimport Field from 'client/data/models/field';\nimport { argument, arrayOf, oneOfType, optional } from 'client/decorators/argument';\nimport { isDeleteHasManyAvailable } from 'client/utils/action-utils';\nimport RecordsContext from 'client/utils/liana-records/records-context';\nimport NestedField from 'client/utils/nested/field';\n\nexport default class DropdownBetaDropdownActionsDeleteActionComponent extends Component {\n  @service currentUser;\n  @service lianaFeatures;\n  @service('feature/client-record') clientRecordFeature;\n  @service('business/collection') collectionBusiness;\n\n  @argument(oneOfType([Field, NestedField])) field;\n  @argument(Model) parentRecord;\n  @argument(arrayOf(Model)) selectedRecords;\n  @argument(Number) selectedRecordsCount;\n  @argument(optional(Function)) onAfterDelete;\n  @argument(optional(RecordsContext)) recordsContext;\n\n  get isDeleteActionAvailable() {\n    return isDeleteHasManyAvailable(\n      {\n        currentUser: this.currentUser,\n        lianaFeatures: this.lianaFeatures,\n      },\n      this.args.field,\n    );\n  }\n\n  @action\n  async delete() {\n    const recordsContext =\n      this.args.recordsContext\n      || this.collectionBusiness.createRecordState({\n        modelToFetch: this.args.field,\n        record: this.args.parentRecord,\n        selectedRecords: this.args.selectedRecords,\n      });\n    const isSuccess = await this.clientRecordFeature.bulkDeleteRecords(\n      recordsContext,\n      this.args.selectedRecords,\n      true,\n      false,\n    );\n\n    if (isSuccess) {\n      await this.args.onAfterDelete?.();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isDeleteActionAvailable}}\\n  <Form::Dropdown::Action\\n    @name={{concat\\n      \\'Delete the \\'\\n      (display-name-pluralize\\n        @field.nestedOrReferencedCollection.displayNameLowerCase\\n        @field.nestedOrReferencedCollection.displayNamePluralLowerCase\\n        @selectedRecords.length\\n      )\\n    }}\\n    @isDanger={{true}}\\n    @onClick={{or @onDelete this.delete}}\\n    data-test-action-button=\\\"delete\\\"\\n    ...attributes\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/dropdown/beta-dropdown-actions/delete-action/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Model from '@ember-data/model';\nimport Component from '@glimmer/component';\n\nimport Field from 'client/data/models/field';\nimport { argument, arrayOf, oneOfType, optional } from 'client/decorators/argument';\nimport { isDissociateHasManyAvailable } from 'client/utils/action-utils';\nimport RecordsContext from 'client/utils/liana-records/records-context';\nimport NestedField from 'client/utils/nested/field';\n\nexport default class DropdownBetaDropdownActionsDissociateActionComponent extends Component {\n  @service currentUser;\n  @service('feature/client-record') clientRecordFeature;\n  @service('business/collection') collectionBusiness;\n\n  @argument(oneOfType([Field, NestedField])) field;\n  @argument(Model) parentRecord;\n  @argument(arrayOf(Model)) selectedRecords;\n  @argument(optional(RecordsContext)) recordsContext;\n  @argument(optional(Function)) onAfterDissociate;\n\n  get isDissociateActionAvailable() {\n    return (\n      isDissociateHasManyAvailable({ currentUser: this.currentUser }, this.args.field)\n      && this.args.field.isDissociateDisplayed\n    );\n  }\n\n  @action\n  async dissociate() {\n    const recordsContext =\n      this.args.recordsContext\n      || this.collectionBusiness.createRecordState({\n        modelToFetch: this.args.field,\n        record: this.args.parentRecord,\n        selectedRecords: this.args.selectedRecords,\n      });\n    const isSuccess = await this.clientRecordFeature.bulkDeleteRecords(\n      recordsContext,\n      this.args.selectedRecords,\n      true,\n      true,\n    );\n\n    if (isSuccess) {\n      await this.args.onAfterDissociate?.();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isDissociateActionAvailable}}\\n  <Form::Dropdown::Action\\n    @name=\\\"Dissociate the relationship\\\"\\n    @isDanger={{true}}\\n    @onClick={{or @onDissociate this.dissociate}}\\n    data-test-action-button=\\\"dissociate\\\"\\n    ...attributes\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/dropdown/beta-dropdown-actions/dissociate-action/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type ActionFeatureService from 'client/features/action/services/feature';\nimport type { ReorderParameters } from 'client/features/folder/services/internal-business/reorder-handler';\nimport type { SortableEvent } from 'sortablejs';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport CustomActionModel from 'client/data/models/custom-action';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  customActions: Array<CustomActionModel>;\n}\n\n@validateArguments\nexport default class DropdownBetaDropdownActionsEditableActionsComponent extends Component<Args> {\n  static readonly propTypes = {\n    customActions: PropTypes.arrayOf(PropTypes.instanceOf(CustomActionModel)),\n  };\n\n  @service private router: RouterService;\n  @service('feature/action') private actionFeatureService: ActionFeatureService;\n\n  @action\n  transitionToSettings(customAction: CustomActionModel) {\n    this.router.transitionTo(\n      'project.rendering.data.collection.settings.actions.details',\n      customAction.name,\n    );\n  }\n\n  @action\n  async toggleVisibility(customAction: CustomActionModel) {\n    this.actionFeatureService.toggleVisibility(customAction);\n  }\n\n  @action\n  async reorderSmartActions(_event: SortableEvent, parameters: ReorderParameters) {\n    this.actionFeatureService.reorderActions(this.args.customActions, parameters);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::EditableList\\n  @items={{@customActions}}\\n  @nameProperty=\\\"displayName\\\"\\n  @onToggleVisibility={{this.toggleVisibility}}\\n  @visibilityProperty=\\\"isVisible\\\"\\n  @onRedirectToSettings={{this.transitionToSettings}}\\n  @onReorder={{this.reorderSmartActions}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/dropdown/beta-dropdown-actions/editable-actions/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isDisabled}}\\n  <Shared::Feedback::BetaTooltip\\n    @targetId={{this.dropdownId}}\\n    @hideDelay={{250}}\\n    @side=\\\"left\\\"\\n    class=\\\"c-beta-dropdown-actions__tooltip\\\"\\n  >\\n    No Smart action available yet.\\n    <br />\\n\\n    Learn how to\\n    <a\\n      class=\\\"c-shared-feedback-beta-tooltip__link\\\"\\n      href={{this.smartActionsDocumentationLink}}\\n      rel=\\\"noopener noreferrer\\\"\\n      target=\\\"_blank\\\"\\n    >\\n      {{\\'create one\\'~}}\\n    </a>\\n    {{~\\'.\\'}}\\n  </Shared::Feedback::BetaTooltip>\\n{{/if}}\\n\\n<div class=\\\"c-beta-dropdown-actions-container\\\">\\n  {{#if this.isActionButtonDisplayed}}\\n    <Form::Dropdown\\n      @id={{this.dropdownId}}\\n      @shouldPreventOpen={{@shouldPreventOpen}}\\n      data-test-beta-dropdown-actions\\n    >\\n      <:triggerer as |toggleDropdown|>\\n        <Shared::Button\\n          @type={{if @isEditMode \\'editor\\' \\'secondary\\'}}\\n          @text=\\\"Actions\\\"\\n          @size={{@buttonSize}}\\n          @onClick={{toggleDropdown}}\\n          @mustStopPropagation={{false}}\\n          disabled={{this.isDisabled}}\\n          data-test-dropdown-actions-button\\n        />\\n      </:triggerer>\\n      <:content>\\n        {{#unless this.isDisabled}}\\n          {{#if @isEditMode}}\\n            <Dropdown::BetaDropdownActions::EditableActions\\n              @customActions={{@collection.customActionsOrderedWithHidden}}\\n            />\\n          {{else}}\\n            {{#each @customActions as |customAction|}}\\n              {{#if (compute (fn this.isActionDisplayed customAction))}}\\n                <Form::Dropdown::Action\\n                  @name={{customAction.displayName}}\\n                  @onClick={{fn this.triggerAction customAction}}\\n                  @isDisabled={{compute\\n                    (fn this.isActionDisabled customAction this.enabledCustomActions)\\n                  }}\\n                  @isDanger={{eq customAction.buttonType \\'danger\\'}}\\n                  @dataTestActionName={{customAction.name}}\\n                />\\n              {{/if}}\\n            {{/each}}\\n            <Feature::Inbox::AssignAction\\n              @selectedRecord={{this.singleRecordSelected}}\\n              @collection={{@collection}}\\n              @segment={{@segment}}\\n            />\\n            {{#unless (and @isListView (not @selectedRecordsCount))}}\\n              {{#if @isDuplicable}}\\n                <Form::Dropdown::Action\\n                  @name={{concat \\'Duplicate \\' (unless @isListView this.collectionName)}}\\n                  @isDisabled={{gt this.selectedActionsCount 1}}\\n                  @onClick={{this.duplicateRecord}}\\n                  data-test-dropdown-actions-duplicate\\n                />\\n              {{/if}}\\n              {{#if @isDeletable}}\\n                <Form::Dropdown::Action\\n                  @name={{concat\\n                    \\'Delete \\'\\n                    (if @areAllRecordsSelected \\'all \\')\\n                    (unless @isListView this.collectionName)\\n                  }}\\n                  @isDanger={{true}}\\n                  @onClick={{this.deleteSelectedRecords}}\\n                  data-test-dropdown-actions-delete\\n                />\\n              {{/if}}\\n            {{/unless}}\\n            {{yield}}\\n          {{/if}}\\n        {{/unless}}\\n      </:content>\\n    </Form::Dropdown>\\n  {{/if}}\\n\\n  <Feature::Workflow::Dropdown\\n    @collection={{this.collection}}\\n    @segment={{@segment}}\\n    @selectedRecord={{this.singleRecordSelected}}\\n    @buttonSize={{@buttonSize}}\\n    @isEditMode={{@isEditMode}}\\n    @shouldShowWorklows={{@shouldDisplayWorkflowDropdown}}\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dropdown/beta-dropdown-actions/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Arguments {\n  items: Array<{ id: string | number; name: string }>;\n  onSelect: (itemId: string | number | null) => void;\n  selectedItemId?: string | number;\n  disabled?: boolean;\n  hasEmptyOption?: boolean;\n  emptyOptionLabel?: string;\n  hideEmptyOptionFromList?: boolean;\n}\n\n@validateArguments\nexport default class DropdownBetaDropdownSearchComponent extends Component<Arguments> {\n  static readonly propTypes = {\n    items: PropTypes.arrayOf(\n      PropTypes.shape({\n        id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), // it's required but it can be null\n        name: PropTypes.string.isRequired,\n      }),\n    ).isRequired,\n    onSelect: PropTypes.func.isRequired,\n    selectedItemId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n    disabled: PropTypes.bool,\n    hasEmptyOption: PropTypes.bool,\n    emptyOptionLabel: PropTypes.string,\n    hideEmptyOptionFromList: PropTypes.bool,\n  };\n\n  @tracked search = '';\n\n  get itemsWithEmptyOption() {\n    return [\n      ...(this.args.hasEmptyOption ? [{ id: null, name: this.args.emptyOptionLabel || '-' }] : []),\n      ...this.args.items,\n    ];\n  }\n\n  get filteredItems() {\n    return this.itemsWithEmptyOption.filter(({ id, name }) => {\n      if (this.args.hideEmptyOptionFromList && id === null) {\n        return false;\n      }\n      return name.toLowerCase().includes(this.search);\n    });\n  }\n\n  get currentSelectedName() {\n    return (\n      this.itemsWithEmptyOption.find(({ id }) => id === (this.args.selectedItemId ?? null))?.name\n      || ''\n    );\n  }\n\n  @action\n  handleHide() {\n    this.search = '';\n  }\n\n  @action\n  handleSearch(searchValue: string) {\n    this.search = searchValue?.toLowerCase() || '';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Form::Dropdown @onHide={{this.handleHide}} @disabled={{@disabled}} as |showDropdown|>\\n  <Shared::Button::BetaButton\\n    @type=\\\"secondary\\\"\\n    @text={{this.currentSelectedName}}\\n    @isIconAfterText={{true}}\\n    @iconClass=\\\"c-beta-dropdown-search__button-icon\\\"\\n    @iconName=\\\"arrow_drop_down\\\"\\n    @disabled={{@disabled}}\\n    class=\\\"c-beta-dropdown-search__button\\\"\\n    data-test-beta-dropdown-search-button\\n    ...attributes\\n  />\\n  {{#if showDropdown}}\\n    <Form::Dropdown::Content\\n      @mustAlignLeft={{true}}\\n      class=\\\"c-beta-dropdown-search__content\\\"\\n      data-test-beta-dropdown-search-content\\n    >\\n      <Shared::BetaSearchBar\\n        @searchFunction={{this.handleSearch}}\\n        @searchOnInput={{true}}\\n        @transparent={{true}}\\n        data-test-beta-dropdown-search-search-bar\\n        class=\\\"c-beta-dropdown-search__search-bar\\\"\\n        {{autofocus nestedSelector=\\'.js-beta-search-bar-input\\'}}\\n        {{on \\'click\\' (prevent-default (stop-propagation (do-nothing-function)))}}\\n      />\\n      {{#each this.filteredItems as |item|}}\\n        <li class=\\\"c-beta-dropdown-search__item\\\">\\n          <button\\n            class=\\\"c-beta-dropdown-search__item-button\\n              {{if (eq item.id @selectedItemId) \\'c-beta-dropdown-search__item-button--selected\\'}}\\\"\\n            type=\\\"button\\\"\\n            data-test-beta-dropdown-search-item-button={{item.name}}\\n            {{on \\'click\\' (fn @onSelect item.id)}}\\n          >\\n            <span class=\\\"c-beta-dropdown-search__item-text\\\" title={{item.name}}>\\n              {{item.name}}\\n            </span>\\n            {{#if (eq item.id @selectedItemId)}}\\n              <Shared::DataDisplay::BetaIcon\\n                @size=\\\"small\\\"\\n                @iconName=\\\"check\\\"\\n                data-test-beta-dropdown-search-item-icon={{item.name}}\\n              />\\n            {{/if}}\\n          </button>\\n        </li>\\n      {{/each}}\\n    </Form::Dropdown::Content>\\n  {{/if}}\\n</Form::Dropdown>\\n', { moduleName: 'client/legacy/pods/components/dropdown/beta-dropdown-search/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class DropdownBetaDropdownSmartViewsComponent extends Component {\n  @service store;\n  @service errorHandler;\n\n  propTypes = {\n    model: PropTypes.object.isRequired,\n    removeCondition: PropTypes.func,\n    editSmartView: PropTypes.func,\n  };\n\n  get currentSmartViewName() {\n    const smartViews = this.args.model.viewListsSorted;\n    if (smartViews[0]) {\n      return smartViews[0].get('name');\n    }\n    return '';\n  }\n\n  @action\n  async reorderViews(newOrderViews) {\n    const collection = this.args.model;\n    const [firstSmartView] = collection.viewListsSorted;\n\n    if (newOrderViews[0].get('id') !== firstSmartView.id) {\n      this.store\n        .peekAll('condition')\n        .filter((condition) => condition.get('smartView.content'))\n        .forEach((condition) => {\n          condition.destroyRecord();\n          this.args.removeCondition?.(condition, true);\n        });\n    }\n    const smartViews = await collection.viewLists;\n    await this.store.layoutBatchReorder(smartViews, newOrderViews, 'viewList');\n  }\n\n  @action\n  dragStarted(smartView) {\n    smartView.set('isDragging', true);\n  }\n\n  @action\n  dragStopped(smartView) {\n    smartView.set('isDragging', false);\n  }\n\n  @action\n  onClick(event) {\n    event.stopPropagation();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Form::Dropdown class=\\\"c-beta-dropdown-smart-views-container\\\" ...attributes as |showDropdown|>\\n  <Shared::Button::BetaButton\\n    @type=\\\"editor\\\"\\n    @text={{this.currentSmartViewName}}\\n    @iconName=\\\"format_list_bulleted\\\"\\n    title=\\\"Change layout\\\"\\n  />\\n  {{#if showDropdown}}\\n    <Form::Dropdown::Content\\n      class=\\\"c-beta-dropdown-smart-views\\\"\\n      {{sortable-group groupName=\\'smartViews\\' onChange=this.reorderViews}}\\n      data-test-smart-views\\n    >\\n      {{#each @model.viewListsSorted as |smartView|}}\\n        <div>\\n          <li\\n            {{sortable-item\\n              groupName=\\'smartViews\\'\\n              model=smartView\\n              onDragStart=this.dragStarted\\n              onDragStop=this.dragStopped\\n            }}\\n            class=\\\"c-beta-dropdown-smart-view\\n              {{if smartView.isDragging \\'c-beta-dropdown-smart-view--dragging\\'}}\\\"\\n            data-test-smart-view-item={{smartView.name}}\\n          >\\n            <span class=\\\"c-beta-dropdown-smart-view__name\\\">\\n              {{smartView.name}}\\n            </span>\\n            {{#if (and smartView.isSmart @editSmartView)}}\\n              <Shared::DataDisplay::BetaIcon\\n                @size=\\\"custom\\\"\\n                @iconName=\\\"edit\\\"\\n                class=\\\"c-beta-dropdown-smart-view__right-icon c-beta-dropdown-smart-view__right-icon--as-button\\\"\\n                role=\\\"button\\\"\\n                data-test-smart-view-item-icon\\n                {{on \\'click\\' (fn @editSmartView smartView)}}\\n              />\\n            {{/if}}\\n          </li>\\n        </div>\\n      {{/each}}\\n    </Form::Dropdown::Content>\\n  {{/if}}\\n</Form::Dropdown>\\n', { moduleName: 'client/legacy/pods/components/dropdown/beta-dropdown-smart-views/template.hbs' });\n","import Component from '@ember/component';\nimport { service } from '@ember/service';\n\nexport default class DropdownDropdownActionsComponent extends Component {\n  @service currentUser;\n\n  showDropdown = false;\n  buttonSize = 'normal';\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Form::Dropdown as |showDropdown|>\\n  <Shared::Button::BetaButton\\n    @type={{if this.currentUser.editMode \\'editor\\' \\'secondary\\'}}\\n    @text=\\\"Actions\\\"\\n    @size={{@buttonSize}}\\n  />\\n\\n  {{#if showDropdown}}\\n    <Form::Dropdown::Content>\\n      {{yield}}\\n    </Form::Dropdown::Content>\\n  {{/if}}\\n</Form::Dropdown>\\n', { moduleName: 'client/legacy/pods/components/dropdown/dropdown-actions/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { isFunction } from 'lodash';\n\nimport { WrongPropertyValueError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class DropdownDropdownCheckboxComponent extends Component {\n  propTypes = {\n    value: PropTypes.bool,\n    dropdownActions: PropTypes.array,\n    triggerDropdownAction: PropTypes.func,\n    shouldPreventClick: PropTypes.func,\n  };\n\n  @alias('dropdownActions.length') dropdownActionsCount;\n\n  visible = false;\n\n  init(...args) {\n    super.init(...args);\n    if (this.dropdownActions && !Array.isArray(this.dropdownActions)) {\n      throw new WrongPropertyValueError('dropdownActions', this.dropdownActions);\n    }\n    if (this.triggerDropdownAction && !isFunction(this.triggerDropdownAction)) {\n      throw new WrongPropertyValueError('triggerDropdownAction', this.triggerDropdownAction);\n    }\n  }\n\n  @action\n  triggerAction(dropdownAction) {\n    this.triggerDropdownAction(dropdownAction);\n  }\n\n  @action\n  onShow() {\n    this.visible = true;\n  }\n\n  @action\n  onHide() {\n    this.visible = false;\n  }\n\n  @action\n  onChange(value, event) {\n    // NOTICE: stop event bubbling on BetaDropdown, disabling its click event\n    //         thus, it does not display itself on change\n    if (!this.visible) {\n      event.stopPropagation();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Form::Dropdown\\n  @onShow={{this.onShow}}\\n  @onHide={{this.onHide}}\\n  class=\\\"c-dropdown-checkbox\\\"\\n  as |showDropdown|\\n>\\n  <Form::BetaCheckbox\\n    @value={{@value}}\\n    @small={{true}}\\n    @onChange={{this.onChange}}\\n    @shouldPreventClick={{@shouldPreventClick}}\\n    data-test-dropdown-checkbox\\n  />\\n  {{#if (gt this.dropdownActionsCount 1)}}\\n    <i class=\\\"material-icons c-dropdown-checkbox__arrowdown\\\" role=\\\"button\\\">\\n      arrow_drop_down\\n    </i>\\n  {{/if}}\\n  {{#if (and showDropdown (gt this.dropdownActionsCount 1))}}\\n    <Form::Dropdown::Content @mustAlignLeft={{true}} class=\\\"c-dropdown-checkbox__actions\\\">\\n      {{#each @dropdownActions as |dropdownAction|}}\\n        <Form::Dropdown::Action\\n          @name={{dropdownAction.name}}\\n          @onClick={{fn this.triggerAction dropdownAction.action}}\\n          @dataTestActionName={{dropdownAction.name}}\\n        />\\n      {{/each}}\\n    </Form::Dropdown::Content>\\n  {{/if}}\\n</Form::Dropdown>\\n', { moduleName: 'client/legacy/pods/components/dropdown/dropdown-checkbox/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\n\n@classNames('l-dropdown-menu')\n@classNameBindings('disabled:l-dropdown-menu--disabled')\nexport default class DropdownDropdownMenuComponent extends Component {\n  content = null;\n\n  register(content) {\n    this.set('content', content);\n  }\n\n  show() {\n    if (this.disabled) {\n      return;\n    }\n\n    if (this.content) {\n      this.content.show();\n    }\n  }\n\n  @action\n  hide() {\n    if (this.content) {\n      this.content.hide();\n    }\n  }\n}\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { classNames } from '@ember-decorators/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('dropdown-menu-content')\nexport default class DropdownDropdownMenuDropdownMenuContentComponent extends Component {\n  propTypes = {\n    dropdown: PropTypes.object.isRequired,\n    styleModifier: PropTypes.string,\n    contentClass: PropTypes.string,\n  };\n\n  display = false;\n\n  didInsertElement(...args) {\n    super.didInsertElement(...args);\n\n    this.dropdown.register(this);\n  }\n\n  @action\n  hideAction() {\n    this.hide();\n  }\n\n  show() {\n    if (!this.display) {\n      this.set('display', true);\n    }\n  }\n\n  hide() {\n    if (this.display) {\n      this.set('display', false);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.display}}\\n  <div\\n    class=\\\"l-dropdown-menu-content\\n      {{@contentClass}}\\n      {{if @styleModifier (concat \\' l-dropdown-menu-content--\\' @styleModifier)}}\\\"\\n    {{forest-on-click-outside this.hideAction}}\\n  >\\n    {{yield}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/dropdown/dropdown-menu/dropdown-menu-content/template.hbs' });\n","import Component from '@ember/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class DropdownDropdownMenuDropdownMenuTriggerComponent extends Component {\n  propTypes = {\n    dropdown: PropTypes.object.isRequired,\n  };\n\n  click() {\n    this.dropdown.show();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{yield this}}\\n', { moduleName: 'client/legacy/pods/components/dropdown/dropdown-menu/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-database-credentials-wont-leave-browser ...attributes>\\n  Your database credentials never leave your browser and are solely used to generate environment\\n  variables for the next step, so they are never exposed.\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/documentation/reference-guide/how-it-works#data-privacy\\\"\\n    @text=\\\"Learn how Forest Admin has been designed with privacy in mind\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @noPadding={{true}}\\n    @onClick={{(fn\\n      @trackBubbleEvent \\'Top bubble database credentials\\' \\'Privacy By Design Link Clicked\\'\\n    )}}\\n    @isInline={{true}}\\n    @punctuation=\\\".\\\"\\n    data-test-link-to-privacy\\n  />\\n\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/database-credentials-wont-leave-browser/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-deploy-on-google-cloud-platform ...attributes>\\n  Refer to our\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/documentation/how-tos/setup/deploy-your-admin-backend-with-google-cloud-platform\\\"\\n    @text=\\\"deployment guide on Google Cloud Platform\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @noPadding={{true}}\\n    @onClick={{(fn @trackBubbleEvent \\'Deploy on Google Cloud Platform\\' \\'Documentation Link\\')}}\\n    @punctuation=\\\".\\\"\\n    @isInline={{true}}\\n    data-test-link-to-google-cloud-platform-documentation\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/deploy-on-google-cloud-platform/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-deploy-on-heroku ...attributes>\\n  Refer to our\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/documentation/how-tos/setup/deploy-to-production-on-heroku\\\"\\n    @text=\\\"deployment guide on Heroku\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @noPadding={{true}}\\n    @onClick={{(fn @trackBubbleEvent \\'Deploy on Heroku\\' \\'Documentation Link\\')}}\\n    @punctuation=\\\".\\\"\\n    @isInline={{true}}\\n    data-test-link-to-heroku-documentation\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/deploy-on-heroku/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-deploy-on-ubuntu ...attributes>\\n  Refer to our\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/documentation/how-tos/setup/deploy-to-production-to-ubuntu-server\\\"\\n    @text=\\\"deployment guide on Ubuntu Server\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @noPadding={{true}}\\n    @onClick={{(fn @trackBubbleEvent \\'Deploy on Ubuntu\\' \\'Documentation Link\\')}}\\n    @punctuation=\\\".\\\"\\n    @isInline={{true}}\\n    data-test-link-to-ubuntu-documentation\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/deploy-on-ubuntu/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-heroku-environment-variables ...attributes>\\n  In the Settings tab of your dashboard, you can add environment variables. Refer to our\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/documentation/how-tos/setup/deploy-to-production-on-heroku\\\"\\n    @text=\\\"deployment guide on Heroku\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @noPadding={{true}}\\n    @onClick={{(fn @trackBubbleEvent \\'Heroku Environment Variables\\' \\'Documentation Link\\')}}\\n    @punctuation=\\\".\\\"\\n    @isInline={{true}}\\n    data-test-link-to-heroku-documentation\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/heroku-environment-variables/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-how-it-works-agent-node-js ...attributes>\\n  The environment variables are used to authenticate all requests made to your admin backend.\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/developer-guide-agents-nodejs/getting-started/how-it-works\\\"\\n    @text=\\\"Learn more\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @noPadding={{true}}\\n    @onClick={{(fn\\n      @trackBubbleEvent\\n      \\'Top bubble agent configure environment variables node js\\'\\n      \\'Learn more Link Clicked\\'\\n    )}}\\n    @punctuation=\\\".\\\"\\n    @isInline={{true}}\\n    data-test-link-to-how-it-works\\n  />\\n\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/how-it-works-agent-node-js/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-i-am-using-mongo-atlas ...attributes>\\n  Follow\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://www.mongodb.com/docs/atlas/driver-connection/?tck=docs_driver_nodejs\\\"\\n    @text=\\\"this tutorial\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @isInline={{true}}\\n    @noPadding={{true}}\\n    {{event-on-click \\'Mongo Atlas Credentials Tutorial Clicked\\'}}\\n    data-test-link-to-tutorial\\n  />\\n  to find those credentials.\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-am-using-mongo-atlas/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-i-dont-have-a-local-app ...attributes>\\n  Use one of\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/documentation/how-tos/databases/use-a-demo-database\\\"\\n    @text=\\\"our demo databases\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @isInline={{true}}\\n    @noPadding={{true}}\\n    @onClick={{(fn @trackBubbleEvent \\\"I don\\'t have a local app\\\" \\'Demo Database Link\\')}}\\n    data-test-link-to-demo-database\\n  />\\n  to install Forest Admin.\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-dont-have-a-local-app/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-i-dont-know-how-to-setup-my-database ...attributes>\\n  To setup your database, please follow\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/documentation/how-tos/setup/connecting-forest-admin-to-your-database-forest-cloud\\\"\\n    @text=\\\"this guide\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @isInline={{true}}\\n    @noPadding={{true}}\\n    @punctuation=\\\".\\\"\\n    @onClick={{(fn\\n      @trackBubbleEvent \\\"I don\\'t know how to setup my database\\\" \\'Setup database documentation link\\'\\n    )}}\\n    data-test-link-to-doc\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-dont-know-how-to-setup-my-database/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-i-dont-know-odm-orm ...attributes>\\n\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://medium.com/spidernitt/orm-and-odm-a-brief-introduction-369046ec57eb\\\"\\n    @text=\\\"Read the definition\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @isInline={{true}}\\n    @noPadding={{true}}\\n    @punctuation=\\\",\\\"\\n    @onClick={{(fn @trackBubbleEvent \\\"I don\\'t know what an ORM/ODM is\\\" \\'ORM/ODM Medium Link\\')}}\\n    data-test-link-to-medium\\n  />\\n  or install with our framework agnostic process.\\n\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-dont-know-odm-orm/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-i-dont-use-environment-variables ...attributes>\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/woodshop/how-tos/configure-environment-variables/nodejs-express-projects\\\"\\n    @text=\\\"Read this guide\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @noPadding={{true}}\\n    @onClick={{(fn @trackBubbleEvent \\'No Environment Variables\\' \\'Link\\')}}\\n    @punctuation=\\\",\\\"\\n    @isInline={{true}}\\n    data-test-link-to-community\\n  />\\n  to use Dotenv.\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-dont-use-environment-variables/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-i-dont-want-caching-rails ...attributes>\\n  You can use\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/documentation/how-tos/maintain/upgrade-notes-rails/upgrade-to-v6#setup-a-static-clientid\\\"\\n    @text=\\\"a static ClientID\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @isInline={{true}}\\n    @noPadding={{true}}\\n    @onClick={{(fn @trackBubbleEvent \\\"I don\\'t want to enable caching\\\" \\'Static ClientId Link\\')}}\\n    data-test-link-to-client-id\\n  />\\n  for Forest Admin to work.\\n\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-dont-want-caching-rails/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-i-got-an-error-running-this-command ...attributes>\\n  Read\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/documentation/how-tos/setup/troubleshooting\\\"\\n    @text=\\\"our troubleshooting page\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @isInline={{true}}\\n    @noPadding={{true}}\\n    @onClick={{(fn\\n      @trackBubbleEvent \\'I get an error when I run this command\\' \\'Troubleshooting Link\\'\\n    )}}\\n    data-test-link-to-troubleshooting\\n  />\\n  or get help on the\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://community.forestadmin.com/\\\"\\n    @text=\\\"Forest Admin community forum\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @isInline={{true}}\\n    @noPadding={{true}}\\n    @onClick={{(fn @trackBubbleEvent \\'I get an error when I run this command\\' \\'Community Link\\')}}\\n    @punctuation=\\\".\\\"\\n    data-test-link-to-community\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-got-an-error-running-this-command/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-i-need-database ...attributes>\\n  Get started easily with one of\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/documentation/how-tos/databases/use-a-demo-database\\\"\\n    @text=\\\"our demo databases\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @isInline={{true}}\\n    @noPadding={{true}}\\n    @onClick={{(fn @trackBubbleEvent \\\"I don\\'t have a database\\\" \\'Demo Database Link\\')}}\\n    @punctuation=\\\".\\\"\\n    data-test-link-to-demo-database\\n  />\\n\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-need-database/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-i-need-help ...attributes>\\n  You can reach out to\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://community.forestadmin.com\\\"\\n    @text=\\\"our community forum\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @noPadding={{true}}\\n    @onClick={{(fn @trackBubbleEvent \\'I need help\\' \\'Community Link\\')}}\\n    @punctuation=\\\",\\\"\\n    @isInline={{true}}\\n    data-test-link-to-community\\n  />\\n  managed by our tech team, or\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/\\\"\\n    @text=\\\"read the documentation\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @noPadding={{true}}\\n    @onClick={{(fn @trackBubbleEvent \\'I need help\\' \\'Documentation Link\\')}}\\n    @punctuation=\\\".\\\"\\n    @isInline={{true}}\\n    data-test-link-to-documentation\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-need-help/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-i-want-to-install-forest-admin-locally ...attributes>\\n  To install Forest Admin locally, you can choose the advanced setup in\\n  <Shared::Navigation::BetaLinkTo\\n    @routeName=\\\"project.onboarding.hosting\\\"\\n    @text=\\\"our installation methods.\\\"\\n    @type=\\\"inherit\\\"\\n    @isInline={{true}}\\n    @noPadding={{true}}\\n    data-test-link-to-hosting\\n  />\\n\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-want-to-install-forest-admin-locally/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-i-want-to-ip-whitelist ...attributes>\\n  To only allow IP from Forest Admin, please follow\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/documentation/how-tos/setup/forest-admin-ip-white-listing\\\"\\n    @text=\\\"this guide\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @isInline={{true}}\\n    @noPadding={{true}}\\n    @punctuation=\\\".\\\"\\n    @onClick={{(fn\\n      @trackBubbleEvent \\'To only allow IP from Forest Admin, you can check this guide\\'\\n    )}}\\n    data-test-link-to-doc\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/i-want-to-ip-whitelist/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div data-dynamic-onboarding-bubbles-content-nothing-happens ...attributes>\\n  Restart your server. If the problem persists, get help on\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://community.forestadmin.com/\\\"\\n    @text=\\\"the Community Forum\\\"\\n    @target=\\\"_blank\\\"\\n    @type=\\\"inherit\\\"\\n    @noPadding={{true}}\\n    @onClick={{(fn @trackBubbleEvent \\'Nothing happens\\' \\'Community Link\\')}}\\n    @punctuation=\\\".\\\"\\n    @isInline={{true}}\\n    data-test-link-to-community-forum\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/bubbles-content/nothing-happens/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument, arrayOf, optional, shape } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n/**\n * @enum {shape}\n */\nexport const datasourcesType = arrayOf(\n  shape({\n    title: String,\n    logoUrl: String,\n    logoUrlDark: optional(String),\n    tooltips: optional(String),\n    category: optional(String),\n    isWaitingList: optional(Boolean),\n  }),\n);\n\n@validateArguments\nexport default class DynamicOnboardingDatasourcePickerComponent extends Component {\n  @argument(Function) onSelectDatasource;\n  @argument(datasourcesType) datasources;\n\n  @tracked\n  items = [];\n\n  constructor(...args) {\n    super(...args);\n\n    this.updateInternalDataSources();\n  }\n\n  @action\n  updateInternalDataSources() {\n    this.items = (this.args.datasources || []).map((datasource) => ({\n      datasource,\n      isLoading: false,\n    }));\n  }\n\n  @action\n  onClick(clickedItem) {\n    this.items = this.items.map((item) => ({\n      ...item,\n      isLoading: !item.datasource.isSynchronous && item.datasource === clickedItem.datasource,\n    }));\n\n    this.args.onSelectDatasource(clickedItem.datasource);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-dynamic-onboarding-datasource-picker\\\"\\n  data-test-datasource-picker\\n  {{did-update this.updateInternalDataSources @datasources}}\\n  ...attributes\\n>\\n  {{#each this.items as |item|}}\\n    <BetaCard\\n      @logoUrl={{item.datasource.logoUrl}}\\n      @logoUrlDark={{if item.datasource.logoUrlDark item.datasource.logoUrlDark}}\\n      @title={{item.datasource.title}}\\n      @tooltips={{item.datasource.tooltips}}\\n      @category={{item.datasource.category}}\\n      @onClick={{fn this.onClick item}}\\n      @isWaitingList={{item.datasource.isWaitingList}}\\n      @isLoading={{item.isLoading}}\\n      data-test-datasource-for={{item.datasource.title}}\\n    />\\n  {{/each}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/datasource-picker/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class DynamicOnboardingDualPickerComponent extends Component {\n  @tracked selectedPanel = null;\n\n  static propTypes = {\n    title: PropTypes.string.isRequired,\n    onSelectPanel: PropTypes.func.isRequired,\n    backButtonText: PropTypes.string,\n    onGoBack: PropTypes.func,\n  };\n\n  @action\n  setSelectedPanel(selectedPanel) {\n    if (this.selectedPanel === selectedPanel) {\n      this.args.onSelectPanel(selectedPanel);\n    }\n    this.selectedPanel = selectedPanel;\n  }\n}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class DynamicOnboardingDualPickerPanelComponent extends Component {\n  @tracked isHovering = false;\n\n  @service assetMap;\n  @service('shared/state/user-preference') userPreferenceState;\n\n  static propTypes = {\n    isSelected: PropTypes.bool,\n    imgName: PropTypes.string.isRequired,\n    imgFolder: PropTypes.string.isRequired,\n    onClickAction: PropTypes.func.isRequired,\n  };\n\n  get theme() {\n    return this.userPreferenceState.theme;\n  }\n\n  get isSelected() {\n    return this.isHovering || this.args.isSelected;\n  }\n\n  get assetSrc() {\n    let path = `/img/${this.args.imgFolder}/${this.theme}/${this.args.imgName}`;\n    if (this.isSelected) path += '-hover';\n    path += '.svg';\n\n    return this.assetMap.resolve(path);\n  }\n\n  @action\n  setHover(isHovering) {\n    this.isHovering = isHovering;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-dynamic-onboarding-dual-picker-panel\\\"\\n  {{on \\'mouseenter\\' (fn this.setHover true)}}\\n  {{on \\'mouseleave\\' (fn this.setHover false)}}\\n>\\n  <img\\n    class=\\\"c-dynamic-onboarding-dual-picker-panel__img\\n      {{if this.isSelected \\'c-dynamic-onboarding-dual-picker-panel__img--active\\'}}\\\"\\n    src={{this.assetSrc}}\\n    alt={{@imgName}}\\n  />\\n  {{yield}}\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @text=\\\"Get started\\\"\\n    @action={{@onClickAction}}\\n    @async={{true}}\\n    @withoutCallback={{true}}\\n    @size=\\\"extra-large\\\"\\n    class=\\\"c-dynamic-onboarding-dual-picker-panel__btn\\n      {{if this.isSelected \\'c-dynamic-onboarding-dual-picker-panel__btn--active\\'}}\\\"\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/dual-picker/panel/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-dynamic-onboarding-dual-picker\\\" data-test-dual-picker>\\n  <div class=\\\"c-dynamic-onboarding-dual-picker__title\\\">\\n    {{@title}}\\n  </div>\\n  {{#if @onGoBack}}\\n    <Shared::Button::BetaButton\\n      @type=\\\"link-primary\\\"\\n      @text={{@backButtonText}}\\n      @action={{@onGoBack}}\\n      @async={{false}}\\n      @withoutCallback={{true}}\\n      @iconName=\\\"arrow_back\\\"\\n      @size=\\\"extra-large\\\"\\n      @isIconAfterText={{false}}\\n      class=\\\"c-dynamic-onboarding-dual-picker__back-button\\\"\\n      data-test-dual-picker-back-button\\n    />\\n  {{/if}}\\n\\n  <div class=\\\"c-dynamic-onboarding-dual-picker__container\\\">\\n    <div\\n      {{on \\'click\\' (fn this.setSelectedPanel \\'left\\')}}\\n      class=\\\"c-dynamic-onboarding-dual-picker__panel-wrapper\\\"\\n      role=\\\"button\\\"\\n      data-test-dual-picker-left-panel\\n    >\\n      {{yield (eq this.selectedPanel \\'left\\') to=\\'left-panel\\'}}\\n    </div>\\n\\n    <div\\n      class={{if\\n        (eq this.selectedPanel \\'left\\')\\n        \\'c-dynamic-onboarding-dual-picker__left-panel-active\\'\\n      }}\\n    ></div>\\n    <hr class=\\\"c-dynamic-onboarding-dual-picker__separator\\\" />\\n    <div\\n      class={{if\\n        (eq this.selectedPanel \\'right\\')\\n        \\'c-dynamic-onboarding-dual-picker__right-panel-active\\'\\n      }}\\n    ></div>\\n\\n    <div\\n      {{on \\'click\\' (fn this.setSelectedPanel \\'right\\')}}\\n      class=\\\"c-dynamic-onboarding-dual-picker__panel-wrapper\\\"\\n      role=\\\"button\\\"\\n      data-test-dual-picker-right-panel\\n    >\\n      {{yield (eq this.selectedPanel \\'right\\') to=\\'right-panel\\'}}\\n    </div>\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/dual-picker/template.hbs' });\n","import { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class DynamicOnboardingFrameworkInstructionsPanelComponent extends Component {\n  @service('shared/state/user-preference') userPreferenceState;\n  @service assetMap;\n\n  static propTypes = {\n    selectedPanel: PropTypes.shape({\n      name: PropTypes.string.isRequired,\n      title: PropTypes.string.isRequired,\n      imgFolder: PropTypes.string.isRequired,\n      contentTitle: PropTypes.string.isRequired,\n      contentDescription: PropTypes.shape({ text: PropTypes.string.isRequired }).isRequired,\n      datasources: PropTypes.arrayOf(\n        PropTypes.shape({\n          title: PropTypes.string.isRequired,\n          logoUrl: PropTypes.string.isRequired,\n          logoUrlDark: PropTypes.string,\n        }).isRequired,\n      ).isRequired,\n    }).isRequired,\n    backButtonText: PropTypes.string.isRequired,\n    onGoBack: PropTypes.func.isRequired,\n    imgAfterContent: PropTypes.bool,\n  };\n\n  get assetSrc() {\n    return this.assetMap.resolve(\n      `/img/${this.args.selectedPanel.imgFolder}/${this.userPreferenceState.theme}/${this.args.selectedPanel.name}-hover.svg`,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-framework-instructions-panel\\\">\\n  <div class=\\\"c-framework-instructions-panel__header\\\">\\n    <div class=\\\"c-framework-instructions-panel__header-title\\\">\\n      {{@selectedPanel.title}}\\n    </div>\\n    <Shared::Button::BetaButton\\n      @type=\\\"link-primary\\\"\\n      @text={{@backButtonText}}\\n      @action={{@onGoBack}}\\n      @async={{false}}\\n      @withoutCallback={{true}}\\n      @iconName=\\\"arrow_back\\\"\\n      @size=\\\"extra-large\\\"\\n      @isIconAfterText={{false}}\\n      class=\\\"c-framework-instructions-panel__header-back-button\\\"\\n    />\\n  </div>\\n\\n  <div class=\\\"c-framework-instructions-panel__content\\\">\\n    {{#unless @imgAfterContent}}\\n      <img\\n        class=\\\"c-framework-instructions-panel__img\\\"\\n        src={{this.assetSrc}}\\n        alt={{@selectedPanel.name}}\\n      />\\n    {{/unless}}\\n    <DynamicOnboarding::InstructionsPanel\\n      @title={{@selectedPanel.contentTitle}}\\n      @pretitle=\\\"Step 2 of 3\\\"\\n      @helpBubbleContent={{@selectedPanel.contentDescription}}\\n      class=\\\"c-framework-instructions-panel__instructions\\\"\\n    >\\n      <DynamicOnboarding::DatasourcePicker\\n        @datasources={{@selectedPanel.datasources}}\\n        @onSelectDatasource={{@onSelectDatasource}}\\n      />\\n    </DynamicOnboarding::InstructionsPanel>\\n    {{#if @imgAfterContent}}\\n      <img\\n        class=\\\"c-framework-instructions-panel__img\\\"\\n        src={{this.assetSrc}}\\n        alt={{@selectedPanel.name}}\\n      />\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/framework-instructions-panel/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class DynamicOnboardingFrameworkPanelComponent extends Component {\n  @service assetMap;\n  @service('shared/state/user-preference') userPreferenceState;\n\n  static propTypes = {\n    title: PropTypes.string.isRequired,\n    description: PropTypes.string.isRequired,\n    datasources: PropTypes.arrayOf(\n      PropTypes.shape({\n        title: PropTypes.string.isRequired,\n        logoUrl: PropTypes.string.isRequired,\n        logoUrlDark: PropTypes.string,\n      }).isRequired,\n    ).isRequired,\n  };\n\n  @action\n  getIconPath(logoUrl) {\n    return this.assetMap.resolve(`/img/onboarding/${logoUrl}`);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-framework-panel\\\">\\n  <span class=\\\"c-framework-panel__title\\\">\\n    {{@title}}\\n  </span>\\n  <span class=\\\"c-framework-panel__description\\\">\\n    {{@description}}\\n  </span>\\n</div>\\n{{#let (generate-guid) as |frameworksId|}}\\n  <div id={{frameworksId}} class=\\\"c-framework-panel__frameworks\\\">\\n    {{#each @datasources as |datasource|}}\\n      {{#unless datasource.isSuggestNewOne}}\\n        <div class=\\\"c-framework-panel__logo-container\\\" id={{datasource.title}}>\\n          <img\\n            class=\\\"c-framework-panel__logo\\\"\\n            src={{compute\\n              (fn\\n                this.getIconPath\\n                (if this.userPreferenceState.isDarkTheme datasource.logoUrlDark datasource.logoUrl)\\n              )\\n            }}\\n            alt={{datasource.title}}\\n          />\\n          <Shared::Feedback::BetaTooltip @targetId={{datasource.title}} @side=\\\"bottom\\\">\\n            {{datasource.title}}\\n          </Shared::Feedback::BetaTooltip>\\n        </div>\\n      {{/unless}}\\n    {{/each}}\\n  </div>\\n{{/let}}\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/framework-panel/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { argument, oneOfType, optional, shape } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n/**\n * @enum {shape}\n */\nexport const ContentTypes = {\n  text: shape({ text: String }),\n  component: shape({ componentName: String }),\n};\n\n@validateArguments\nexport default class DynamicOnboardingInstructionsPanelComponent extends Component {\n  @argument(String) title;\n  @argument(optional(oneOfType(Object.values(ContentTypes)))) helpBubbleContent;\n\n  // NOTICE: Potentially used to send Help Bubble Link Clicked event\n  @argument(optional(Function)) trackBubbleEvent;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-instructions-panel\\\" data-instructions-panel ...attributes>\\n\\n  <header class=\\\"c-instructions-panel__header\\\">\\n    <div class=\\\"c-instructions-panel__title\\\">\\n      {{@title}}\\n    </div>\\n  </header>\\n\\n  <div class=\\\"c-instructions-panel__main-bubble\\\">\\n    <Feedback::BetaHelpBubble\\n      @helpBubbleContent={{@helpBubbleContent}}\\n      @trackBubbleEvent={{@trackBubbleEvent}}\\n    />\\n  </div>\\n\\n  {{! inner component is yield to be customizable }}\\n  <div class=\\\"c-instructions-panel__container\\\">\\n    {{yield}}\\n  </div>\\n\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/instructions-panel/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\nconst defaultValidator = () => null;\n\n@validateArguments\nexport default class DynamicOnboardingIntegrationFormsApplicationUrlComponent extends Component {\n  @tracked value;\n\n  @argument(String) defaultApplicationUrl;\n  @argument(Function) setApplicationUrl;\n  @argument(Function) onSubmit;\n  @argument(optional(String)) applicationUrl;\n  @argument(optional(Function)) customValidator;\n\n  constructor(...args) {\n    super(...args);\n\n    this.customValidator = this.args.customValidator || defaultValidator;\n\n    // NOTICE: Needed to make it work\n    this.sendUserInput(this.args.applicationUrl || this.args.defaultApplicationUrl);\n  }\n\n  get error() {\n    if (!this.value) {\n      return { message: 'Please enter the URL of your application' };\n    }\n\n    return this.customValidator(this.value);\n  }\n\n  @action\n  sendUserInput(newValue) {\n    this.value = newValue?.trim();\n    if (!this.error) {\n      this.args.setApplicationUrl(this.value);\n    } else {\n      this.args.setApplicationUrl(null);\n    }\n  }\n\n  @action\n  /**\n   * @param {Event} event\n   */\n  onFormSubmit(event) {\n    event.preventDefault();\n    if (!this.error) {\n      this.args.onSubmit();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<form\\n  class=\\\"c-integration-forms-application-url\\\"\\n  {{on \\'submit\\' this.onFormSubmit}}\\n  data-test-dynamic-onboarding-integration-form-application-url\\n  ...attributes\\n>\\n  <div class=\\\"c-integration-forms-application-url__content\\\">\\n    <Shared::BetaLabel\\n      @label=\\\"Enter the URL of your application\\\"\\n      @isError={{(bool this.error)}}\\n      @errorMessage={{this.error.message}}\\n      data-test-input-for=\\\"api-endpoint\\\"\\n      class=\\\"c-integration-forms-application-url__label\\\"\\n    >\\n      <Shared::BetaInput\\n        @placeholder={{@defaultApplicationUrl}}\\n        @value={{this.value}}\\n        @onInput={{fn this.sendUserInput this.value}}\\n        @state={{(if this.error \\'error\\')}}\\n        data-test-input-for=\\\"application-url\\\"\\n      />\\n    </Shared::BetaLabel>\\n  </div>\\n\\n  {{#if this.error.moreHttpsInformation}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"info\\\"\\n      @style=\\\"minimal\\\"\\n      @canHide={{false}}\\n      class=\\\"c-integration-forms-application-url__error\\\"\\n      data-test-notification-https-is-necessary\\n    >\\n      You can find more information about\\n      <Shared::Navigation::BetaLinkTo\\n        @href=\\\"https://docs.forestadmin.com/documentation/how-tos/setup/why-https-is-necessary-even-locally\\\"\\n        @text=\\\"why HTTPS is necessary\\\"\\n        @target=\\\"_blank\\\"\\n        @type=\\\"inherit\\\"\\n        @noPadding={{true}}\\n        {{!-- @onClick={{(fn @trackBubbleEvent \\'why HTTPS is necessary\\' \\'HTTPS Link\\')}} --}}\\n        @punctuation=\\\".\\\"\\n        @isInline={{true}}\\n        data-test-link-to-documentation-https\\n      />\\n\\n    </Shared::Feedback::Notification::NotificationInApp>\\n  {{/if}}\\n\\n  {{! template-lint-disable require-input-label }}\\n  <input type=\\\"submit\\\" class=\\\"c-integration-forms-application-url__submit\\\" />\\n\\n</form>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/forms/application-url/template.hbs' });\n","import type { SshKeys } from 'client/features/cloud/services/feature';\nimport type { SSHErrors } from 'client/legacy/pods/components/dynamic-onboarding/integration/forms/database-credentials/ssh-mode/component';\nimport type {\n  ConnectionMethod,\n  RawCredentials,\n} from 'client/utils/onboarding/database-credentials';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport { DatabaseTypeEnum } from 'client/utils/database';\nimport DatabaseCredentials, {\n  ALLOWED_PROTOCOLS_BY_TYPE,\n  ALL_SUPPORTED_PROTOCOLS,\n} from 'client/utils/onboarding/database-credentials';\nimport DatabaseCredentialsCloud from 'client/utils/onboarding/database-credentials-cloud';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport { DNS_HOST_REGEX, IP_ADDRESS_REGEX } from 'client/utils/regex';\nimport { isUrlValid } from 'client/utils/url-utils';\n\n// Regex to validate a URI (with capture groups for each part of the URI)\n// eg: https://regex101.com/r/poW14q/1\n// eslint-disable-next-line sonarjs/slow-regex, sonarjs/empty-string-repetition\nconst uriRegexp =\n  /^([a-z][a-z0-9+.-]*):\\/\\/(?:([^:@]+):(.+)@)?([^:/]+)(?::(\\d+))?(?:\\/([^?]*?))?(?:\\?(.*))?$/;\n\ntype DynamicOnboardingIntegrationFormsDatabaseCredentialsComponentArgs = {\n  onSubmit: () => void;\n  defaultCredentials: RawCredentials;\n  setDatabaseCredentials: (credentials: DatabaseCredentials) => void;\n  showValidationErrors: boolean;\n  customValidator: (credentials: DatabaseCredentials) => Record<string, string | boolean>;\n  defaultDisplayURI: boolean;\n  isCloudOnboarding: boolean;\n  deploymentError: string;\n  configuration: { skipStrictProtocolCheck: boolean };\n  fetchSshKeysForFullHostedAgent: () => Promise<SshKeys>;\n  title: string;\n};\n\n@validateArguments\nexport default class DynamicOnboardingIntegrationFormsDatabaseCredentialsComponent extends Component<DynamicOnboardingIntegrationFormsDatabaseCredentialsComponentArgs> {\n  static propTypes = {\n    onSubmit: PropTypes.func,\n    defaultCredentials: PropTypes.object.isRequired,\n    setDatabaseCredentials: PropTypes.func.isRequired,\n    showValidationErrors: PropTypes.bool.isRequired,\n    customValidator: PropTypes.func,\n    defaultDisplayURI: PropTypes.bool,\n    isCloudOnboarding: PropTypes.bool,\n    deploymentError: PropTypes.string,\n    configuration: PropTypes.object,\n    fetchSshKeysForFullHostedAgent: PropTypes.func,\n    title: PropTypes.string,\n  };\n\n  tabItems = [\n    { displayText: 'Form', value: 'form', iconName: 'format_list_bulleted' },\n    { displayText: 'Connection URI', value: 'URI', iconName: 'link' },\n  ];\n\n  sshFormErrors: SSHErrors = {};\n\n  @tracked databaseCredentials: DatabaseCredentials;\n  get defaultTab() {\n    return this.databaseCredentials.connectionMethod;\n  }\n\n  get supportsSSHConnection() {\n    return this.args.isCloudOnboarding && !this.isMongoSrvDatabase;\n  }\n\n  get tlsEncryptionMode() {\n    return this.args.isCloudOnboarding && !this.isMongoDatabase;\n  }\n\n  get isMongoDatabase() {\n    return this.databaseCredentials.type === DatabaseTypeEnum.MongoDB;\n  }\n\n  get isMongoSrvDatabase() {\n    return this.isMongoDatabase && this.databaseCredentials.useSRV;\n  }\n\n  get requiresSchema() {\n    return [DatabaseTypeEnum.Postgresql, DatabaseTypeEnum.MicrosoftSQLServer].includes(\n      this.databaseCredentials.type,\n    );\n  }\n\n  get sslOptions() {\n    return [\n      { label: 'Prefer TLS', value: 'preferred' },\n      { label: 'Disable TLS', value: 'disabled' },\n      { label: 'Require TLS', value: 'required' },\n      ...(this.databaseCredentials.type === DatabaseTypeEnum.Postgresql\n        ? [{ label: 'Require TLS & Verify certificate', value: 'verify' }]\n        : []),\n    ];\n  }\n\n  get displayedErrors() {\n    return this.args.showValidationErrors ? this.errors : null;\n  }\n\n  get isEmptyDatabaseError() {\n    return /Empty database/i.test(this.args.deploymentError);\n  }\n\n  // eslint-disable-next-line sonarjs/cognitive-complexity\n  get errors() {\n    const { connectionURI } = this.databaseCredentials;\n\n    const errors = this.args.customValidator?.(this.databaseCredentials) ?? {};\n\n    // Check mandatory fields\n    ['type', 'host', 'databaseName', 'connectionURI'].forEach((field) => {\n      if (!this.databaseCredentials[field]) errors[field] = 'This field is required';\n    });\n\n    // Check host\n    if (\n      this.databaseCredentials.host\n      && [IP_ADDRESS_REGEX, DNS_HOST_REGEX].every(\n        (regex) => !regex.test(this.databaseCredentials.host),\n      )\n    ) {\n      errors.host = 'Host is not valid';\n    }\n\n    // Check port\n    if (this.databaseCredentials.port && !/^\\d+$/.test(this.databaseCredentials.port)) {\n      errors.port = 'Port must be a number';\n    }\n\n    // Check URI\n    if (connectionURI && isUrlValid(connectionURI)) {\n      const protocols = ALLOWED_PROTOCOLS_BY_TYPE[this.databaseCredentials.type];\n      const protocol = connectionURI.split('://')[0];\n\n      if (!this.args.configuration?.skipStrictProtocolCheck && !protocols.includes(protocol))\n        errors.connectionURI = `URI protocol must be one of: ${protocols.join(', ')}`;\n      else if (\n        this.args.configuration?.skipStrictProtocolCheck\n        && !ALL_SUPPORTED_PROTOCOLS.includes(protocol)\n      )\n        errors.connectionURI = `URI protocol must be one of: ${ALL_SUPPORTED_PROTOCOLS.join(', ')}`;\n      else if (!this.databaseCredentials.databaseName)\n        errors.connectionURI = 'Database name is missing';\n      else if (errors.host) errors.connectionURI = errors.host;\n    } else if (connectionURI && !uriRegexp.test(connectionURI)) {\n      errors.connectionURI = 'URI is not correct';\n    }\n\n    // Check the SSH errors\n    if (Object.keys(this.sshFormErrors).length) errors.ssh = true;\n\n    return Object.keys(errors).length ? errors : null;\n  }\n\n  constructor(\n    owner: unknown,\n    args: DynamicOnboardingIntegrationFormsDatabaseCredentialsComponentArgs,\n  ) {\n    super(owner, args);\n    // `connectionMethod` may already be set if the user pressed the \"back\" button\n    const connectionMethod = this.args.defaultDisplayURI ? 'URI' : 'form';\n\n    let rawCredentials: RawCredentials;\n    if (this.args.defaultCredentials instanceof DatabaseCredentials) {\n      rawCredentials = this.args.defaultCredentials.toRawCredentials();\n      rawCredentials.connectionMethod ??= connectionMethod;\n    } else {\n      rawCredentials = {\n        connectionMethod,\n        ...this.args.defaultCredentials,\n      } as RawCredentials;\n    }\n\n    this.databaseCredentials = this.args.isCloudOnboarding\n      ? new DatabaseCredentialsCloud(rawCredentials)\n      : new DatabaseCredentials(rawCredentials);\n\n    // NOTICE: Needed to make it work\n    this.sendUserInput();\n  }\n\n  @action\n  sendUserInput() {\n    if (this.errors) {\n      this.args.setDatabaseCredentials(null);\n    } else {\n      this.args.setDatabaseCredentials(this.databaseCredentials);\n    }\n  }\n\n  @action\n  onChangeSshCredentials(sshCredentials: DatabaseCredentialsCloud['ssh'], formErrors: SSHErrors) {\n    (this.databaseCredentials as DatabaseCredentialsCloud).ssh = sshCredentials;\n    this.sshFormErrors = formErrors;\n    this.sendUserInput();\n  }\n\n  @action\n  onFormSubmit(event: Event) {\n    event.preventDefault();\n    if (!this.errors) {\n      this.args.onSubmit();\n    }\n  }\n\n  @action\n  onChangeConnectionUriDisplay(selectedTab: ConnectionMethod) {\n    this.databaseCredentials.connectionMethod = selectedTab;\n    this.sendUserInput();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Feedback::Notification::NotificationInApp\\n  @state=\\\"warning\\\"\\n  @messageTitle=\\\"Attention needed\\\"\\n  class=\\\"c-integration-forms-database-credentials-deployment-error\\\"\\n  data-test-integration-forms-database-credentials-notification-warning\\n>\\n  <p>\\n    {{! Displays raw text or html}}\\n    {{! template-lint-disable no-triple-curlies }}\\n    {{{@deploymentError}}}\\n  </p>\\n</Shared::Feedback::Notification::NotificationInApp>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/forms/database-credentials/deployment-error/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @tlsEncryptionMode}}\\n  <Shared::BetaLabel\\n    @label=\\\"TLS mode\\\"\\n    data-test-input-for=\\\"tlsMode\\\"\\n    class=\\\"c-integration-forms-database-credentials__label\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{@options}}\\n      @value={{@databaseCredentials.sslMode}}\\n      @onChange={{@onChange}}\\n      @namePath=\\\"label\\\"\\n      @valuePath=\\\"value\\\"\\n    />\\n  </Shared::BetaLabel>\\n{{else}}\\n  <Shared::BetaLabel\\n    @label=\\\"Encryption\\\"\\n    @textClass=\\\"c-integration-forms-database-credentials__checkbox-label\\\"\\n    data-test-input-for=\\\"ssl\\\"\\n    class=\\\"c-integration-forms-database-credentials__checkbox-container\\\"\\n  >\\n    <:after-label>\\n      <Shared::Feedback::BetaInfoTooltip>\\n        Check this box if your database only accepts a secure SSL connection.\\n      </Shared::Feedback::BetaInfoTooltip>\\n    </:after-label>\\n    <:default>\\n      <div class=\\\"c-integration-forms-database-credentials__checkbox-row\\\">\\n        <Form::BetaCheckbox\\n          @value={{@databaseCredentials.useSSL}}\\n          @defaultValue={{false}}\\n          @onChange={{@onChange}}\\n        />\\n        <span class=\\\"c-integration-forms-database-credentials__checkbox-description\\\">Use SSL</span>\\n      </div>\\n    </:default>\\n  </Shared::BetaLabel>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/forms/database-credentials/encryption-mode/template.hbs' });\n","import type { SshKeys } from 'client/features/cloud/services/feature';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type DatabaseCredentialsCloud from 'client/utils/onboarding/database-credentials-cloud';\nimport type { SSHProperties } from 'client/utils/onboarding/database-credentials-cloud';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nconst EMPTY_ERRORS = Object.freeze({});\nexport type SSHErrors = Omit<SSHProperties, 'port'> & { port?: string };\n\nexport type DynamicOnboardingIntegrationFormsDatabaseCredentialsSshModeComponentArgs = {\n  sshCredentials: DatabaseCredentialsCloud['ssh'];\n  showValidationErrors: boolean;\n  onChangeSshCredentials: (\n    sshCredentials: DatabaseCredentialsCloud['ssh'],\n    errors: SSHErrors,\n  ) => void;\n  fetchSshKeys: () => Promise<SshKeys>;\n};\n\n@validateArguments\nexport default class DynamicOnboardingIntegrationFormsDatabaseCredentialsSshModeComponent extends Component<DynamicOnboardingIntegrationFormsDatabaseCredentialsSshModeComponentArgs> {\n  static propTypes = {\n    sshCredentials: PropTypes.object.isRequired,\n    showValidationErrors: PropTypes.bool.isRequired,\n    onChangeSshCredentials: PropTypes.func.isRequired,\n    fetchSshKeys: PropTypes.func.isRequired,\n  };\n\n  @service declare lianaSession: LianaSessionService;\n\n  @tracked isFetchingKeys = true;\n  sshCredentials: DatabaseCredentialsCloud['ssh'];\n\n  constructor(\n    owner: unknown,\n    args: DynamicOnboardingIntegrationFormsDatabaseCredentialsSshModeComponentArgs,\n  ) {\n    super(owner, args);\n    this.sshCredentials = this.args.sshCredentials;\n    // set the default values\n    if (!this.sshCredentials.port) this.sshCredentials.port = 22;\n\n    if (this.sshCredentials.publicKey) {\n      // keys are already fetched, it's occurring when the user switch to connection URI form\n      this.isFetchingKeys = false;\n    } else {\n      this.fetchKeys();\n    }\n  }\n\n  get suffix() {\n    return ` ${this.lianaSession.currentEnvironment.name}@forest-admin-${this.lianaSession.currentProject.name}`;\n  }\n\n  get displayedErrors() {\n    return this.args.showValidationErrors ? this.errors : EMPTY_ERRORS;\n  }\n\n  get errors() {\n    const errors: Omit<SSHProperties, 'port'> & { port?: string } = { ...EMPTY_ERRORS };\n    const { host, isEnabled, port } = this.sshCredentials;\n\n    if (!isEnabled) return errors;\n\n    // All these fields are required\n    ['host', 'port', 'username'].forEach((field) => {\n      if (!this.sshCredentials[field]) errors[field] = 'This field is required';\n    });\n    // The host must be publicly accessible\n    if (host === 'localhost' || host === '127.0.0.1' || host === '::1') {\n      errors.host = 'Server must be publicly accessible.';\n    }\n    if (/^(.*?):\\/\\//.test(host)) {\n      errors.host = 'Should not contain a protocol.';\n    }\n\n    if (!/^\\d+$/.test(port?.toString())) errors.port = 'Port must be a number';\n\n    return errors;\n  }\n\n  // not async method because we don't want to block the rendering\n  // when the keys are fetched from the server we will update the component\n  fetchKeys() {\n    this.isFetchingKeys = true;\n    // fetchSshKeys never throw an error because\n    // the error will be displayed by the toastr service\n    this.args\n      .fetchSshKeys()\n      ?.then((keys) => {\n        // has an error that will be displayed by the toast service\n        if (!keys) return;\n        this.sshCredentials.privateKey = keys.private;\n        this.sshCredentials.publicKey = keys.public;\n        this.isFetchingKeys = false;\n        this.onChange();\n      })\n      .catch((error) => {\n        throw error;\n      });\n  }\n\n  @action\n  onChange() {\n    this.args.onChangeSshCredentials(this.sshCredentials, this.errors);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-integration-forms-database-credentials__advanced-options__ssh\\\">\\n  <Shared::BetaLabel\\n    data-test-label-for=\\\"ssh\\\"\\n    class=\\\"c-integration-forms-database-credentials__label c-integration-forms-database-credentials__advanced-options__ssh__switch__label\\\"\\n  >\\n    <div class=\\\"c-integration-forms-database-credentials__advanced-options__ssh__row\\\">\\n      <Shared::Form::Toggle\\n        @value={{this.sshCredentials.isEnabled}}\\n        @onChange={{chain-fn (fn (mut this.sshCredentials.isEnabled)) this.onChange}}\\n        data-test-input-for=\\\"ssh-switch-button\\\"\\n        class=\\\"c-integration-forms-database-credentials__label\\\"\\n      />\\n      <span\\n        class=\\\"c-integration-forms-database-credentials__advanced-options__ssh__switch__right-label\\\"\\n      >\\n        Connect via SSH\\n      </span>\\n    </div>\\n  </Shared::BetaLabel>\\n\\n  {{#if this.sshCredentials.isEnabled}}\\n    <section\\n      class=\\\"c-integration-forms-database-credentials__advanced-options__ssh__container\\\"\\n      data-test-form-for=\\\"ssh-enabled\\\"\\n    >\\n      <div class=\\\"c-integration-forms-database-credentials__advanced-options__ssh__row\\\">\\n        <Shared::BetaLabel\\n          @label=\\\"Server host\\\"\\n          @isRequired={{true}}\\n          @isError={{(bool this.displayedErrors.host)}}\\n          @errorMessage={{this.displayedErrors.host}}\\n          data-test-label-for=\\\"ssh-host\\\"\\n          class=\\\"c-integration-forms-database-credentials__label c-integration-forms-database-credentials__advanced-options__ssh__row__host\\\"\\n        >\\n          <:default>\\n            <Shared::BetaInput\\n              @placeholder=\\\"my-ssh-host-address.com\\\"\\n              @value={{one-way this.sshCredentials.host}}\\n              @state={{(if this.displayedErrors.host \\'error\\')}}\\n              @onChange={{chain-fn (fn (mut this.sshCredentials.host)) this.onChange}}\\n            />\\n          </:default>\\n        </Shared::BetaLabel>\\n\\n        <Shared::BetaLabel\\n          @label=\\\"Port\\\"\\n          @isError={{(bool this.displayedErrors.port)}}\\n          @errorMessage={{this.displayedErrors.port}}\\n          @isRequired={{true}}\\n          data-test-label-for=\\\"ssh-port\\\"\\n          class=\\\"c-integration-forms-database-credentials__label c-integration-forms-database-credentials__advanced-options__ssh__row__port\\\"\\n        >\\n          <:default>\\n            <Shared::BetaInput\\n              @placeholder=\\\"22\\\"\\n              @state={{(if this.displayedErrors.port \\'error\\')}}\\n              @value={{one-way this.sshCredentials.port}}\\n              @onChange={{chain-fn (fn (mut this.sshCredentials.port)) this.onChange}}\\n              data-test-input-for=\\\"ssh-port\\\"\\n            />\\n          </:default>\\n        </Shared::BetaLabel>\\n      </div>\\n\\n      <div class=\\\"c-integration-forms-database-credentials__advanced-options__ssh__row\\\">\\n        <Shared::BetaLabel\\n          @label=\\\"Username\\\"\\n          @isError={{(bool this.displayedErrors.username)}}\\n          @errorMessage={{this.displayedErrors.username}}\\n          @isRequired={{true}}\\n          data-test-label-for=\\\"ssh-username\\\"\\n          class=\\\"c-integration-forms-database-credentials__label c-integration-forms-database-credentials__advanced-options__ssh__row__username\\\"\\n        >\\n          <:default>\\n            <Shared::BetaInput\\n              @placeholder=\\\"root\\\"\\n              @state={{(if this.displayedErrors.username \\'error\\')}}\\n              @value={{one-way this.sshCredentials.username}}\\n              @onChange={{chain-fn (fn (mut this.sshCredentials.username)) this.onChange}}\\n            />\\n          </:default>\\n        </Shared::BetaLabel>\\n      </div>\\n\\n      <div class=\\\"c-integration-forms-database-credentials__advanced-options__ssh__row\\\">\\n        <Shared::BetaLabel\\n          @label={{if\\n            this.sshCredentials.privateKey\\n            \\'Add your public key to the authorized_keys file on your server\\'\\n            \\'Your public key should be in the authorized_keys file on your server\\'\\n          }}\\n          data-test-label-for=\\\"ssh-public-key\\\"\\n          @isError={{(bool this.displayedErrors.publicKey)}}\\n          @errorMessage={{this.displayedErrors.publicKey}}\\n          class=\\\"c-integration-forms-database-credentials__label c-integration-forms-database-credentials__advanced-options__ssh__row__public-key\\\"\\n        >\\n          {{#if this.isFetchingKeys}}\\n            <Shared::DataDisplay::BetaHighlight\\n              @code=\\\"Your public key are currently being generated...\\\"\\n              @language=\\\"bash\\\"\\n              class=\\\"c-integration-forms-database-credentials__advanced-options__ssh__row__public-key--is-fetching\\\"\\n              data-test-input-for=\\\"ssh-public-key\\\"\\n            />\\n          {{else}}\\n            <Shared::DataDisplay::BetaHighlight\\n              @code={{concat this.sshCredentials.publicKey this.suffix}}\\n              @language=\\\"bash\\\"\\n              @preventOverflow={{true}}\\n            />\\n          {{/if}}\\n        </Shared::BetaLabel>\\n      </div>\\n    </section>\\n\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/forms/database-credentials/ssh-mode/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! template-lint-disable template-length }}\\n<form\\n  class=\\\"c-integration-forms-database-credentials\\\"\\n  {{on \\'change\\' this.sendUserInput}}\\n  {{on \\'submit\\' this.onFormSubmit}}\\n  data-test-integration-forms-database-credentials\\n  ...attributes\\n>\\n\\n  {{#if @isCloudOnboarding}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"info\\\"\\n      @canHide={{false}}\\n      @messageTitle=\\\"IP Whitelist\\\"\\n      data-test-notification-ip-whitelist\\n    >\\n      If your database restricts certain IPs, add\\n      <b>35.180.175.97</b>\\n      to the allowed list.\\n    </Shared::Feedback::Notification::NotificationInApp>\\n  {{/if}}\\n\\n  <Shared::Form::SelectCards\\n    @options={{this.tabItems}}\\n    @value={{this.defaultTab}}\\n    @onChange={{this.onChangeConnectionUriDisplay}}\\n    @namePath=\\\"displayText\\\"\\n    @valuePath=\\\"value\\\"\\n    @columnCount={{2}}\\n    class=\\\"c-integration-forms-database-credentials__selector\\\"\\n  />\\n\\n  <div class=\\\"c-integration-forms-database-credentials__container\\\">\\n    {{#if (eq this.databaseCredentials.connectionMethod \\'form\\')}}\\n      <div class=\\\"c-integration-forms-database-credentials__row\\\">\\n        <Shared::BetaLabel\\n          @label=\\\"Host\\\"\\n          @autocomplete=\\\"url\\\"\\n          @isRequired={{true}}\\n          @isError={{(bool this.displayedErrors.host)}}\\n          @errorMessage={{this.displayedErrors.host}}\\n          data-test-input-for=\\\"host\\\"\\n          class=\\\"c-integration-forms-database-credentials__label c-integration-forms-database-credentials__host-label\\\"\\n        >\\n          <:after-label>\\n            {{#if this.isMongoDatabase}}\\n              <Shared::Feedback::BetaInfoTooltip @tooltipSide=\\\"top\\\">\\n                If you\\'re using MongoDB Atlas, the host looks like cluster0.abcd0.mongodb.net\\n              </Shared::Feedback::BetaInfoTooltip>\\n            {{/if}}\\n          </:after-label>\\n          <:default>\\n            <Shared::BetaInput\\n              @placeholder={{(if\\n                @configuration.host.placeholder\\n                @configuration.host.placeholder\\n                \\'mydb.xxx.us-east-1.rds.amazonaws.com\\'\\n              )}}\\n              @onChange={{this.sendUserInput}}\\n              @state={{(if this.displayedErrors.host \\'error\\')}}\\n              @value={{this.databaseCredentials.host}}\\n              {{autofocus nestedSelector=\\'.c-beta-input\\'}}\\n            />\\n          </:default>\\n        </Shared::BetaLabel>\\n        <Shared::BetaLabel\\n          @label=\\\"Port\\\"\\n          data-test-input-for=\\\"port\\\"\\n          @isError={{(bool this.displayedErrors.port)}}\\n          @errorMessage={{this.displayedErrors.port}}\\n          class=\\\"c-integration-forms-database-credentials__label c-integration-forms-database-credentials__port-label\\\"\\n        >\\n          <Shared::BetaInput\\n            @placeholder={{@defaultCredentials.port}}\\n            @value={{this.databaseCredentials.port}}\\n            @state={{(if this.displayedErrors.port \\'error\\')}}\\n            @onChange={{this.sendUserInput}}\\n            @disabled={{this.databaseCredentials.useSRV}}\\n          />\\n        </Shared::BetaLabel>\\n      </div>\\n\\n      <div class=\\\"c-integration-forms-database-credentials__row\\\">\\n        <Shared::BetaLabel\\n          @label=\\\"User\\\"\\n          @isRequired={{(bool @configuration.username.isRequired)}}\\n          data-test-input-for=\\\"username\\\"\\n          @isError={{(bool this.displayedErrors.username)}}\\n          @errorMessage={{this.displayedErrors.username}}\\n          class=\\\"c-integration-forms-database-credentials__label\\\"\\n        >\\n          <Shared::BetaInput\\n            @placeholder=\\\"root\\\"\\n            @autocomplete=\\\"username\\\"\\n            @value={{this.databaseCredentials.username}}\\n            @state={{(if this.displayedErrors.username \\'error\\')}}\\n            @onChange={{this.sendUserInput}}\\n          />\\n        </Shared::BetaLabel>\\n        <Shared::BetaLabel\\n          @label=\\\"Password\\\"\\n          @isRequired={{(bool @configuration.password.isRequired)}}\\n          data-test-input-for=\\\"password\\\"\\n          @isError={{(bool this.displayedErrors.password)}}\\n          @errorMessage={{this.displayedErrors.password}}\\n          class=\\\"c-integration-forms-database-credentials__label\\\"\\n        >\\n          <Shared::BetaInput\\n            @type=\\\"password\\\"\\n            @placeholder=\\\"••••••\\\"\\n            @autocomplete=\\\"new-password\\\"\\n            @value={{this.databaseCredentials.password}}\\n            @state={{(if this.displayedErrors.password \\'error\\')}}\\n            @onChange={{this.sendUserInput}}\\n          />\\n        </Shared::BetaLabel>\\n      </div>\\n\\n      <div class=\\\"c-integration-forms-database-credentials__row\\\">\\n        <Shared::BetaLabel\\n          @label=\\\"Database\\\"\\n          @isRequired={{true}}\\n          @isError={{(bool this.displayedErrors.databaseName)}}\\n          @errorMessage={{this.displayedErrors.databaseName}}\\n          data-test-input-for=\\\"databaseName\\\"\\n          class=\\\"c-integration-forms-database-credentials__label\\\"\\n        >\\n          <Shared::BetaInput\\n            @placeholder=\\\"Name\\\"\\n            @value={{this.databaseCredentials.databaseName}}\\n            @state={{(if this.displayedErrors.databaseName \\'error\\')}}\\n            @onChange={{this.sendUserInput}}\\n          />\\n        </Shared::BetaLabel>\\n      </div>\\n\\n      <div class=\\\"c-integration-forms-database-credentials__advanced-options\\\">\\n        <div class=\\\"c-integration-forms-database-credentials__advanced-options__row\\\">\\n\\n          <DynamicOnboarding::Integration::Forms::DatabaseCredentials::EncryptionMode\\n            @options={{this.sslOptions}}\\n            @databaseCredentials={{this.databaseCredentials}}\\n            @onChange={{this.sendUserInput}}\\n            @tlsEncryptionMode={{this.tlsEncryptionMode}}\\n          />\\n\\n          {{#if this.isMongoDatabase}}\\n            <Shared::BetaLabel\\n              @label=\\\"SRV\\\"\\n              @textClass=\\\"c-integration-forms-database-credentials__checkbox-label\\\"\\n              data-test-input-for=\\\"srv\\\"\\n              class=\\\"c-integration-forms-database-credentials__checkbox-container\\\"\\n            >\\n              <:after-label>\\n                <Shared::Feedback::BetaInfoTooltip>\\n                  Check this box if a single hostname that resolves to multiple host names from a\\n                  DNS.\\n                </Shared::Feedback::BetaInfoTooltip>\\n              </:after-label>\\n              <:default>\\n                <div class=\\\"c-integration-forms-database-credentials__checkbox-row\\\">\\n                  <Form::BetaCheckbox\\n                    @value={{this.databaseCredentials.useSRV}}\\n                    @defaultValue={{false}}\\n                    @onChange={{this.sendUserInput}}\\n                  />\\n                  <span class=\\\"c-integration-forms-database-credentials__checkbox-description\\\">\\n                    Use SRV\\n                  </span>\\n                </div>\\n              </:default>\\n            </Shared::BetaLabel>\\n\\n            <Shared::BetaLabel\\n              @label=\\\"Authentication database (authSource)\\\"\\n              data-test-input-for=\\\"authSource\\\"\\n              class=\\\"c-integration-forms-database-credentials__auth-source\\\"\\n            >\\n              <:after-label>\\n                <Shared::Feedback::BetaInfoTooltip>\\n                  Specify the database name associated with the user\\'s credentials.\\n                </Shared::Feedback::BetaInfoTooltip>\\n              </:after-label>\\n              <:default>\\n                <Shared::BetaInput\\n                  @value={{this.databaseCredentials.authSource}}\\n                  @onChange={{this.sendUserInput}}\\n                />\\n              </:default>\\n            </Shared::BetaLabel>\\n          {{else if this.requiresSchema}}\\n            <Shared::BetaLabel\\n              @label=\\\"Schema\\\"\\n              data-test-input-for=\\\"schema\\\"\\n              class=\\\"c-integration-forms-database-credentials__schema\\\"\\n            >\\n              <:after-label>\\n                <Shared::Feedback::BetaInfoTooltip @targetId=\\\"schema-label\\\" @side=\\\"top\\\">\\n                  If your database is stored under a custom schema, specify its name here.\\n                </Shared::Feedback::BetaInfoTooltip>\\n              </:after-label>\\n              <:default>\\n                <Shared::BetaInput\\n                  @placeholder=\\\"public\\\"\\n                  @value={{this.databaseCredentials.schema}}\\n                  @onChange={{this.sendUserInput}}\\n                />\\n              </:default>\\n            </Shared::BetaLabel>\\n          {{/if}}\\n        </div>\\n        {{#if this.supportsSSHConnection}}\\n          <div class=\\\"c-integration-forms-database-credentials__advanced-options__row\\\">\\n            <DynamicOnboarding::Integration::Forms::DatabaseCredentials::SshMode\\n              @sshCredentials={{this.databaseCredentials.ssh}}\\n              @showValidationErrors={{@showValidationErrors}}\\n              @onChangeSshCredentials={{this.onChangeSshCredentials}}\\n              @fetchSshKeys={{@fetchSshKeysForFullHostedAgent}}\\n            />\\n          </div>\\n        {{/if}}\\n\\n        {{#if @isCloudOnboarding}}\\n          {{#if @deploymentError}}\\n            <DynamicOnboarding::Integration::Forms::DatabaseCredentials::DeploymentError\\n              @deploymentError={{@deploymentError}}\\n              @isEmptyDatabaseError={{this.isEmptyDatabaseError}}\\n            />\\n          {{/if}}\\n        {{/if}}\\n      </div>\\n\\n      {{! template-lint-disable require-input-label }}\\n      <input type=\\\"submit\\\" class=\\\"c-integration-forms-database-credentials__submit\\\" />\\n    {{/if}}\\n\\n    {{#if (eq this.databaseCredentials.connectionMethod \\'URI\\')}}\\n      <div class=\\\"c-integration-forms-database-credentials__row\\\">\\n        <Shared::BetaLabel\\n          @label=\\\"Database Connection URI\\\"\\n          @isRequired={{true}}\\n          @isError={{(bool this.displayedErrors.connectionURI)}}\\n          @errorMessage={{this.displayedErrors.connectionURI}}\\n          data-test-input-for=\\\"connectionURI\\\"\\n          class=\\\"c-integration-forms-database-credentials__label\\\"\\n        >\\n          <Shared::BetaInput\\n            @label=\\\"Database Connection URI\\\"\\n            @value={{this.databaseCredentials.connectionURI}}\\n            @state={{(if this.displayedErrors.connectionURI \\'error\\')}}\\n            @onChange={{this.sendUserInput}}\\n            @placeholder=\\\"{{this.databaseCredentials.type}}://username:password@{{this.databaseCredentials.host}}:{{this.databaseCredentials.port}}/databaseName\\\"\\n            {{autofocus nestedSelector=\\'.c-beta-input\\'}}\\n          />\\n        </Shared::BetaLabel>\\n      </div>\\n\\n      {{#if @isCloudOnboarding}}\\n        <DynamicOnboarding::Integration::Forms::DatabaseCredentials::EncryptionMode\\n          @options={{this.sslOptions}}\\n          @databaseCredentials={{this.databaseCredentials}}\\n          @onChange={{this.sendUserInput}}\\n          @tlsEncryptionMode={{this.tlsEncryptionMode}}\\n        />\\n\\n        {{#if this.supportsSSHConnection}}\\n          <div class=\\\"c-integration-forms-database-credentials__row\\\">\\n            <DynamicOnboarding::Integration::Forms::DatabaseCredentials::SshMode\\n              @sshCredentials={{this.databaseCredentials.ssh}}\\n              @showValidationErrors={{@showValidationErrors}}\\n              @onChangeSshCredentials={{this.onChangeSshCredentials}}\\n              @fetchSshKeys={{@fetchSshKeysForFullHostedAgent}}\\n            />\\n          </div>\\n        {{/if}}\\n\\n        {{#if @deploymentError}}\\n          <DynamicOnboarding::Integration::Forms::DatabaseCredentials::DeploymentError\\n            @deploymentError={{@deploymentError}}\\n            @isEmptyDatabaseError={{this.isEmptyDatabaseError}}\\n          />\\n        {{/if}}\\n      {{/if}}\\n    {{/if}}\\n  </div>\\n\\n</form>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/forms/database-credentials/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class DynamicOnboardingIntegrationFormsEnvironmentNameComponent extends Component {\n  static propTypes = {\n    setEnvironmentName: PropTypes.func.isRequired,\n    onSubmit: PropTypes.func.isRequired,\n    environmentName: PropTypes.string.isRequired,\n    isNameAvailable: PropTypes.bool.isRequired,\n    isLoading: PropTypes.bool.isRequired,\n  };\n\n  @tracked value;\n\n  constructor(...args) {\n    super(...args);\n\n    this.value = this.args.environmentName;\n\n    this.sendUserInput();\n  }\n\n  get error() {\n    if (!this.value) {\n      return 'Please enter a name for your environment.';\n    }\n\n    if (!this.args.isNameAvailable && !this.args.isLoading) {\n      return 'This name is not available. Please choose another one.';\n    }\n\n    return null;\n  }\n\n  @action\n  sendUserInput() {\n    if (this.value !== this.args.environmentName && this.value) {\n      this.args.setEnvironmentName(this.value);\n    }\n  }\n\n  /**\n   * @param {Event} event\n   */\n  @action\n  onFormSubmit(event) {\n    event.preventDefault();\n\n    if (!this.error && !this.args.isLoading) {\n      this.args.onSubmit();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<form\\n  class=\\\"c-integration-forms-environment-name\\\"\\n  {{on \\'submit\\' this.onFormSubmit}}\\n  data-test-dynamic-onboarding-integration-form-environment-name\\n  ...attributes\\n>\\n  <div class=\\\"c-integration-forms-environment-name__content\\\">\\n    <Shared::BetaLabel\\n      @label=\\\"Choose a name\\\"\\n      data-test-input-for=\\\"api-endpoint\\\"\\n      class=\\\"c-integration-forms-environment-name__label\\\"\\n    >\\n      <Shared::BetaInput\\n        @value={{this.value}}\\n        @onInput={{this.sendUserInput}}\\n        data-test-input-for=\\\"environment-name\\\"\\n      />\\n    </Shared::BetaLabel>\\n  </div>\\n\\n  {{#if @isLoading}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"loading\\\"\\n      @style=\\\"minimal\\\"\\n      @canHide={{false}}\\n      class=\\\"c-integration-forms-environment-name__notification\\\"\\n      data-test-notification-loading\\n    >\\n      Checking availability…\\n    </Shared::Feedback::Notification::NotificationInApp>\\n  {{else}}\\n    {{#if this.error}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"error\\\"\\n        @style=\\\"minimal\\\"\\n        @canHide={{false}}\\n        class=\\\"c-integration-forms-environment-name__notification\\\"\\n        data-test-notification-error\\n      >\\n        {{this.error}}\\n      </Shared::Feedback::Notification::NotificationInApp>\\n    {{else}}\\n      {{#if @isNameAvailable}}\\n        <Shared::Feedback::Notification::NotificationInApp\\n          @state=\\\"success\\\"\\n          @style=\\\"minimal\\\"\\n          @canHide={{false}}\\n          class=\\\"c-integration-forms-environment-name__notification\\\"\\n          data-test-notification-success\\n        >\\n          Environment name is available.\\n        </Shared::Feedback::Notification::NotificationInApp>\\n      {{/if}}\\n    {{/if}}\\n  {{/if}}\\n\\n  {{! template-lint-disable require-input-label }}\\n  <input type=\\\"submit\\\" class=\\\"c-integration-forms-environment-name__submit\\\" />\\n\\n</form>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/forms/environment-name/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n/**\n * @typedef {{\n *   value: string,\n *   displayText: string\n *   imageUrl?: string\n * }} SelectorItem\n */\n\n@validateArguments\nexport default class DynamicOnboardingIntegrationFormsSelectorComponent extends Component {\n  static propTypes = {\n    title: PropTypes.string,\n    items: PropTypes.arrayOf(\n      PropTypes.shape({\n        value: PropTypes.string.isRequired,\n        displayText: PropTypes.string.isRequired,\n        imageUrl: PropTypes.string,\n        iconName: PropTypes.string,\n      }),\n    ).isRequired,\n    defaultValue: PropTypes.string,\n    onSelectValue: PropTypes.func,\n  };\n\n  @tracked value = this.args.defaultValue;\n\n  @action\n  onSelect(value) {\n    this.value = value;\n    this.args.onSelectValue(value);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-integration-forms-selector\\\"\\n  {{did-insert (fn this.onSelect this.value)}}\\n  ...attributes\\n>\\n  {{#if @title}}\\n    <h2 class=\\\"c-integration-forms-selector__title\\\">\\n      {{@title}}\\n    </h2>\\n  {{/if}}\\n\\n  <Shared::Form::SelectCards\\n    @options={{@items}}\\n    @value={{this.value}}\\n    @onChange={{this.onSelect}}\\n    @namePath=\\\"displayText\\\"\\n    @valuePath=\\\"value\\\"\\n    @columnCount={{@items.length}}\\n  />\\n\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/forms/selector/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Phase::Launch::ProjectDeploying ...attributes />\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/wrapper/admin-panel-generation/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<DynamicOnboarding::Integration::Forms::ApplicationUrl\\n  @defaultApplicationUrl={{@componentArguments.defaultApplicationUrl}}\\n  @setApplicationUrl={{@componentArguments.setApplicationUrl}}\\n  @applicationUrl={{@componentArguments.applicationUrl}}\\n  @customValidator={{@componentArguments.customValidator}}\\n  @onSubmit={{@componentArguments.onSubmit}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/wrapper/application-url/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<DynamicOnboarding::Integration::Forms::DatabaseCredentials\\n  @defaultCredentials={{@componentArguments.defaultCredentials}}\\n  @setDatabaseCredentials={{@componentArguments.setDatabaseCredentials}}\\n  @isCloudOnboarding={{@componentArguments.isCloudOnboarding}}\\n  @deploymentError={{@componentArguments.deploymentError}}\\n  @configuration={{@componentArguments.configuration}}\\n  @customValidator={{@componentArguments.customValidator}}\\n  @defaultDisplayURI={{@componentArguments.defaultDisplayURI}}\\n  @showValidationErrors={{@componentArguments.showValidationErrors}}\\n  @fetchSshKeysForFullHostedAgent={{@componentArguments.fetchSshKeysForFullHostedAgent}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/wrapper/database-credentials/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div ...attributes>\\n  <Shared::DataDisplay::BetaVariables\\n    @variables={{@componentArguments.variables}}\\n    @title={{@componentArguments.title}}\\n  />\\n  {{#if @componentArguments.banner}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"warning\\\"\\n      @canHide={{false}}\\n      @message={{@componentArguments.banner}}\\n      data-test-notification-banner\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/wrapper/display-variables/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<DynamicOnboarding::Integration::Forms::EnvironmentName\\n  @setEnvironmentName={{@componentArguments.setEnvironmentName}}\\n  @environmentName={{@componentArguments.environmentName}}\\n  @onSubmit={{@componentArguments.onSubmit}}\\n  @isLoading={{@componentArguments.isLoading}}\\n  @isNameAvailable={{@componentArguments.isNameAvailable}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/wrapper/environment-name/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::DataDisplay::BetaHighlightMultiple\\n  @snippets={{@componentArguments.snippets}}\\n  @title={{@componentArguments.title}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/wrapper/highlight-multiple/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-dynamic-onboarding-wrapper-highlight-tabs\\\" ...attributes>\\n  {{#if @componentArguments.selector}}\\n    <span class=\\\"c-dynamic-onboarding-wrapper-highlight-tabs__title\\\">\\n      {{@componentArguments.highlight.title}}\\n    </span>\\n    <ul class=\\\"c-dynamic-onboarding-wrapper-highlight-tabs__items\\\">\\n      {{#each @componentArguments.selector.items as |item|}}\\n        {{#let item.value item.displayText as |value label|}}\\n          <li\\n            class=\\\"c-dynamic-onboarding-wrapper-highlight-tabs__item\\n              {{if\\n                (eq @componentArguments.selector.defaultValue value)\\n                (concat \\'c-dynamic-onboarding-wrapper-highlight-tabs__item--active\\')\\n                \\'c-dynamic-onboarding-wrapper-highlight-tabs__item--inactive\\'\\n              }}\\\"\\n            {{on \\'click\\' (fn @componentArguments.selector.onSelectValue value)}}\\n            role=\\\"button\\\"\\n          >\\n            {{label}}\\n          </li>\\n        {{/let}}\\n      {{/each}}\\n    </ul>\\n  {{/if}}\\n\\n  {{#if @componentArguments.highlight}}\\n    <Shared::DataDisplay::BetaHighlight\\n      @language={{@componentArguments.highlight.language}}\\n      @code={{@componentArguments.highlight.code}}\\n      @isCommandLine={{@componentArguments.highlight.isCommandLine}}\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/wrapper/highlight-tabs/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::DataDisplay::BetaHighlight\\n  @title={{@componentArguments.title}}\\n  @language={{@componentArguments.language}}\\n  @code={{@componentArguments.code}}\\n  @isCommandLine={{@componentArguments.isCommandLine}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/wrapper/highlight/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-dynamic-onboarding-wrapper-selector-with-highlight-tabs\\\" ...attributes>\\n  {{#if @componentArguments.selector}}\\n    <DynamicOnboarding::Integration::Forms::Selector\\n      @title={{@componentArguments.selector.title}}\\n      @items={{@componentArguments.selector.items}}\\n      @defaultValue={{@componentArguments.selector.defaultValue}}\\n      @onSelectValue={{@componentArguments.selector.onSelectValue}}\\n    />\\n  {{/if}}\\n\\n  <DynamicOnboarding::Integration::Wrapper::HighlightTabs\\n    @componentArguments={{hash\\n      selector=@componentArguments.tabsSelector\\n      highlight=@componentArguments.highlight\\n    }}\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/wrapper/selector-with-highlight-tabs/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-dynamic-onboarding-wrapper-selector-with-highlights\\\" ...attributes>\\n  {{#if @componentArguments.selector}}\\n    <DynamicOnboarding::Integration::Forms::Selector\\n      @title={{@componentArguments.selector.title}}\\n      @items={{@componentArguments.selector.items}}\\n      @defaultValue={{@componentArguments.selector.defaultValue}}\\n      @onSelectValue={{@componentArguments.selector.onSelectValue}}\\n    />\\n  {{/if}}\\n\\n  {{#if @componentArguments.highlightMultiple}}\\n    <Shared::DataDisplay::BetaHighlightMultiple\\n      @title={{@componentArguments.highlightMultiple.title}}\\n      @snippets={{@componentArguments.highlightMultiple.snippets}}\\n    />\\n  {{else if @componentArguments.highlight}}\\n    <Shared::DataDisplay::BetaHighlight\\n      @title={{@componentArguments.highlight.title}}\\n      @language={{@componentArguments.highlight.language}}\\n      @code={{@componentArguments.highlight.code}}\\n      @isCommandLine={{@componentArguments.highlight.isCommandLine}}\\n    />\\n  {{/if}}\\n\\n</div>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/wrapper/selector-with-highlights/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<DynamicOnboarding::Integration::Forms::Selector\\n  @title={{@componentArguments.title}}\\n  @items={{@componentArguments.items}}\\n  @defaultValue={{@componentArguments.defaultValue}}\\n  @onSelectValue={{@componentArguments.onSelectValue}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/integration/wrapper/selector/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class DynamicOnboardingModalsSuggestDatasourceComponent extends Component {\n  static propTypes = {\n    onClose: PropTypes.func.isRequired,\n    onChange: PropTypes.func.isRequired,\n    onSuggest: PropTypes.func.isRequired,\n  };\n\n  @tracked _datasourceName;\n\n  @action\n  onChange(datasourceName) {\n    this._datasourceName = datasourceName.trim();\n    this.args.onChange(this._datasourceName);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @title=\\\"Suggest a new datasource!\\\"\\n  @onClose={{@onClose}}\\n  @contentClass=\\\"c-onboarding-suggest-datasource-modal\\\"\\n  @noCloseButton={{true}}\\n>\\n  <div\\n    class=\\\"c-onboarding-suggest-datasource-modal__content c-onboarding-suggest-datasource-modal__content--normal\\\"\\n  >\\n    <span>\\n      At Forest Admin, we are doing our best to integrate with the most datasources. Feel free to\\n      suggest our next integration and we will notify you when it\\'s released.\\n    </span>\\n\\n    <br />\\n    <span>Our next datasource should be...</span>\\n    <Shared::BetaInput\\n      @maxLength={{45}}\\n      @onChange={{this.onChange}}\\n      @placeholder=\\\"Your datasource\\\"\\n      class=\\\"c-onboarding-suggest-datasource-modal__input\\\"\\n      data-test-onboarding-suggest-datasource-modal-input\\n    />\\n  </div>\\n  <div class=\\\"c-onboarding-suggest-datasource-modal__buttons\\\">\\n    <Shared::Button::BetaButton\\n      @action={{@onClose}}\\n      @async={{false}}\\n      @text=\\\"Cancel\\\"\\n      @type=\\\"secondary\\\"\\n      class=\\\"c-onboarding-suggest-datasource-modal__button\\\"\\n    />\\n    <Shared::Button::BetaButton\\n      @action={{@onSuggest}}\\n      @disabled={{not this._datasourceName}}\\n      @async={{false}}\\n      @text=\\\"Suggest datasource\\\"\\n      @type=\\\"primary\\\"\\n      class=\\\"c-onboarding-suggest-datasource-modal__button\\\"\\n    />\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/modals/suggest-datasource/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @title={{concat \\'⏱ \\' @title \\' support is coming soon\\'}}\\n  @onClose={{@onClose}}\\n  @contentClass=\\\"c-onboarding-waiting-list-modal\\\"\\n  @noCloseButton={{true}}\\n>\\n  <div class=\\\"c-onboarding-waiting-list-modal__content\\\">\\n    <span>Your help would let us ship it faster.</span>\\n    <br />\\n    <span>Would you agree to join our beta tester team?</span>\\n  </div>\\n  <div class=\\\"c-onboarding-waiting-list-modal__buttons\\\">\\n    <Shared::Button::BetaButton\\n      @action={{@onClose}}\\n      @async={{false}}\\n      @text=\\\"Not this time\\\"\\n      @type=\\\"secondary\\\"\\n      class=\\\"c-onboarding-waiting-list-modal__button\\\"\\n    />\\n    <Shared::Button::BetaButton\\n      @action={{@onAccept}}\\n      @async={{false}}\\n      @text=\\\"Yes, I want to help\\\"\\n      @type=\\\"primary\\\"\\n      @iconName=\\\"arrow_forward\\\"\\n      @isIconAfterText={{true}}\\n      class=\\\"c-onboarding-waiting-list-modal__button\\\"\\n    />\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/dynamic-onboarding/modals/waiting-list/template.hbs' });\n","import type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type CollectionStateService from 'client/legacy/services/collection-state';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport FieldModel from 'client/data/models/field';\nimport validateArguments from 'client/decorators/validate';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { EventBusClientRecordEventsEnum } from 'client/legacy/services/event-bus';\nimport { getFirstErrorDetail } from 'client/utils/ember-error-util';\nimport { KEY, isKey } from 'client/utils/keyboard';\nimport NestedField from 'client/utils/nested/field';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nconst TABLE_CELL_EDITED_CLASS = '.c-table-line__column';\n\ninterface EditInlineComponentArgs {\n  field: FieldModel | NestedField;\n  isEditing: boolean;\n  onClose: () => void;\n  record: ClientRecordModel;\n  forceInsideField?: boolean;\n  isDisabled?: boolean;\n}\n\n@validateArguments\nexport default class EditInlineComponent extends Component<EditInlineComponentArgs> {\n  static propTypes = {\n    field: PropTypes.oneOfType([\n      PropTypes.instanceOf(FieldModel),\n      PropTypes.instanceOf(NestedField),\n    ]).isRequired,\n    forceInsideField: PropTypes.bool,\n    isEditing: PropTypes.bool.isRequired,\n    onClose: PropTypes.func.isRequired,\n    isDisabled: PropTypes.bool,\n    record: PropTypes.object.isRequired,\n  };\n\n  @service('feature/notification') private notificationFeature: NotificationFeatureService;\n  @service private collectionState: CollectionStateService;\n  @service private eventBus: EventBusService;\n\n  @tracked private isSaving = false;\n\n  @tracked tableCellElement: HTMLElement = null;\n\n  constructor(owner: unknown, args: EditInlineComponentArgs) {\n    super(owner, args);\n\n    this.collectionState.currentRecord = this.args.record;\n  }\n\n  get isDisabled() {\n    return this.isSaving || !!this.args.isDisabled;\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.unregisterListener();\n  }\n\n  @action\n  registerListener(element: HTMLElement) {\n    this.tableCellElement = element.closest(TABLE_CELL_EDITED_CLASS);\n    window.addEventListener('keydown', this.escapeHandler, true);\n  }\n\n  @action\n  unregisterListener() {\n    window.removeEventListener('keydown', this.escapeHandler, true);\n    this.collectionState.currentRecord = null;\n    this.tableCellElement = null;\n  }\n\n  @action\n  closeAction() {\n    this.close();\n  }\n\n  @action\n  clickOutside(event: MouseEvent) {\n    event.stopPropagation();\n    event.preventDefault();\n    if (!this.isDisabled) {\n      this.close();\n    }\n  }\n\n  @action\n  async save() {\n    if (this.args.record.hasDirtyAttributes) {\n      this.isSaving = true;\n      const toastId = this.notificationFeature.createToastr(ToastrTypeEnum.Loading, 'Updating', {\n        duration: 0,\n      });\n\n      try {\n        let recordToSave = this.args.record;\n        while (recordToSave?.parent) {\n          recordToSave = recordToSave.parent;\n        }\n        await recordToSave.save();\n        this.notificationFeature.updateToastr(\n          ToastrTypeEnum.Success,\n          `Field ${this.args.field.displayName} successfully updated.`,\n          toastId,\n        );\n        this.eventBus.trigger(EventBusClientRecordEventsEnum.RecordEdited, recordToSave);\n        this.close();\n      } catch (error) {\n        const errorMessage =\n          getFirstErrorDetail(error)\n          || (typeof error === 'object' && 'message' in error && (error.message as string))\n          || 'unexpected error';\n        this.notificationFeature.updateToastr(\n          ToastrTypeEnum.Error,\n          `Updating field ${this.args.field.displayName} failed: ${errorMessage}`,\n          toastId,\n        );\n      }\n\n      this.isSaving = false;\n    }\n  }\n\n  @action\n  onClick(event: MouseEvent) {\n    event.stopPropagation();\n  }\n\n  close() {\n    // NOTICE: The rollback attribute is performed there because reverting\n    //         the value on modal destroy doesn't reflect the rollback in the UI.\n    this.args.record.rollbackAttributes();\n    if (!this.isDestroying && !this.isDestroyed) {\n      this.args.onClose();\n    }\n  }\n\n  @action\n  escapeHandler(event: KeyboardEvent) {\n    if (isKey(KEY.ESCAPE, event)) {\n      event.stopPropagation();\n      event.preventDefault();\n      if (!this.isDisabled) {\n        this.close();\n      }\n    }\n  }\n}\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { next } from '@ember/runloop';\nimport window from 'ember-window-mock';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\nconst POPUP_SCREEN_BOUNDS_SPACING = 8;\n\nexport default class EditInlineContainerComponent extends Component {\n  propTypes = {\n    forceInsideField: PropTypes.bool,\n    targetCell: PropTypes.object,\n  };\n\n  forceInsideField = false;\n\n  didInsertElement(...args) {\n    super.didInsertElement(...args);\n\n    this._computePositionAndSize();\n  }\n\n  didRender(...args) {\n    super.didRender(...args);\n\n    next(() => this._keepInViewport());\n  }\n\n  willDestroyElement(...args) {\n    super.willDestroyElement(...args);\n\n    document.documentElement.style.setProperty('--edit-inline-width', '0px');\n    document.documentElement.style.setProperty('--edit-inline-top-position', '0px');\n    document.documentElement.style.setProperty('--edit-inline-left-position', '0px');\n  }\n\n  @action\n  resize() {\n    this._computePositionAndSize();\n  }\n\n  _computePositionAndSize() {\n    if (!this.targetCell) {\n      return;\n    }\n\n    const { top, left, width } = this.targetCell.getBoundingClientRect();\n\n    if (this.forceInsideField) {\n      document.documentElement.style.setProperty('--edit-inline-width', `${width}px`);\n    }\n\n    document.documentElement.style.setProperty('--edit-inline-top-position', `${top}px`);\n    document.documentElement.style.setProperty('--edit-inline-left-position', `${left}px`);\n  }\n\n  _keepInViewport() {\n    const { innerWidth } = window;\n\n    if (this.element) {\n      const containerBounds = this.element.getBoundingClientRect();\n      const rightOverflow = containerBounds.right - innerWidth;\n\n      if (rightOverflow > 0) {\n        document.documentElement.style.setProperty(\n          '--edit-inline-left-position',\n          `${containerBounds.left - rightOverflow + POPUP_SCREEN_BOUNDS_SPACING}px`,\n        );\n      } else if (containerBounds.left < 0) {\n        document.documentElement.style.setProperty(\n          '--edit-inline-left-position',\n          `${-containerBounds.left + POPUP_SCREEN_BOUNDS_SPACING}px`,\n        );\n      }\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{yield this.resize}}\\n', { moduleName: 'client/legacy/pods/components/edit-inline/container/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed, defineProperty } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { later } from '@ember/runloop';\nimport { tagName } from '@ember-decorators/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Field from 'client/data/models/field';\nimport { MissingRequiredPropertyError, WrongPropertyValueError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport { WidgetEditTypeEnum } from 'client/utils/widgets';\n\nconst allowedWidgets = [\n  WidgetEditTypeEnum.TextInput,\n  WidgetEditTypeEnum.NumberInput,\n  WidgetEditTypeEnum.Dropdown,\n  WidgetEditTypeEnum.DatePicker,\n  WidgetEditTypeEnum.BooleanEditor,\n  WidgetEditTypeEnum.PriceEditor,\n  WidgetEditTypeEnum.AssigneeEditor,\n];\n\n@tagName('')\nexport default class EditInlineFormComponent extends Component {\n  propTypes = {\n    closeAction: PropTypes.func.isRequired,\n    field: PropTypes.instanceOf(Field).isRequired,\n    isDisabled: PropTypes.bool.isRequired,\n    onChangeAction: PropTypes.func,\n    saveAction: PropTypes.func.isRequired,\n    record: PropTypes.object.isRequired,\n  };\n\n  errorMessage = null;\n  isSubmitted = false;\n  @tracked _hasErrors = false;\n  @tracked _hasWidgetError = false;\n  @alias('field.widgetEdit') widgetConfiguration;\n\n  @computed('_hasErrors', '_hasWidgetError', 'onChangeAction')\n  get hasError() {\n    if (this.onChangeAction) {\n      later(() => this.onChangeAction(), 0);\n    }\n\n    return this._hasErrors || this._hasWidgetError;\n  }\n\n  @computed('hasError', 'isSubmitted')\n  get shouldDisplayError() {\n    return this.hasError && this.isSubmitted;\n  }\n\n  @computed('field.attributeName')\n  get isFieldId() {\n    return this.field.attributeName === 'id';\n  }\n\n  @computed('isFieldId', 'record.{hasDirtyAttributes,id}', 'shouldDisplayError', 'value')\n  get isSaveDisabled() {\n    if (this.isFieldId) {\n      return `${this.value}` === `${this.record.id}`;\n    }\n\n    return this.shouldDisplayError || !this.record.hasDirtyAttributes;\n  }\n\n  @computed(\n    'field.widgetEdit.name',\n    'field.{isBoolean,isDate,isDateonly,isEnumSimple,isNumber,isString,type}',\n  )\n  get inputType() {\n    if (allowedWidgets.includes(this.field.widgetEdit?.name)) {\n      return this.field.widgetEdit.name;\n    }\n\n    if (this.field.isNumber) return WidgetEditTypeEnum.NumberInput;\n    if (this.field.isDate || this.field.isDateonly) return WidgetEditTypeEnum.DatePicker;\n    if (this.field.isBoolean) return WidgetEditTypeEnum.BooleanEditor;\n    if (this.field.isEnumSimple) return WidgetEditTypeEnum.Dropdown;\n\n    return WidgetEditTypeEnum.TextInput;\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    if (!this.closeAction) {\n      throw new MissingRequiredPropertyError('closeAction');\n    }\n\n    if (!this.field) {\n      throw new MissingRequiredPropertyError('field');\n    }\n\n    if ([null, undefined].includes(this.isDisabled)) {\n      throw new MissingRequiredPropertyError('isDisabled');\n    }\n\n    if (typeof this.isDisabled !== 'boolean') {\n      throw new WrongPropertyValueError('isDisabled', this.isDisabled);\n    }\n\n    if (!this.record) {\n      throw new MissingRequiredPropertyError('record');\n    }\n\n    if (typeof this.record !== 'object') {\n      throw new WrongPropertyValueError('record', this.record);\n    }\n\n    if (!this.saveAction) {\n      throw new MissingRequiredPropertyError('saveAction');\n    }\n\n    let { attributeName } = this.field;\n\n    if (attributeName === 'id') {\n      attributeName = 'forest-id';\n    }\n\n    defineProperty(this, 'value', alias(`record.${attributeName}`));\n  }\n\n  @action\n  clearInput() {\n    this.set('value', '');\n  }\n\n  @action\n  discard() {\n    this.closeAction();\n  }\n\n  @action\n  async save() {\n    this.set('isSubmitted', true);\n    if (!this.hasError) {\n      await this.saveAction();\n    }\n  }\n\n  @action\n  handleWidgetError(error) {\n    this._hasWidgetError = !!error;\n  }\n\n  @action\n  handleValueChange(newValue) {\n    this.set('value', newValue);\n    this._hasErrors = this.computeHasErrors();\n  }\n\n  getMessageFromErrors(attributeName, displayName) {\n    const errors = this.record.errors ? this.record.errors.content : undefined;\n\n    if (!errors) {\n      return null;\n    }\n\n    const firstError = errors.find((recordError) => recordError.attribute === attributeName);\n\n    if (firstError) {\n      return `${displayName} ${firstError.message}`;\n    }\n\n    return null;\n  }\n\n  computeHasErrors() {\n    const { attributeName, displayName } = this.field;\n\n    if (attributeName === 'id') {\n      return false;\n    }\n\n    if (!this.record.validate({ only: [attributeName] })) {\n      this.set('errorMessage', this.getMessageFromErrors(attributeName, displayName));\n      return true;\n    }\n\n    this.set('errorMessage', null);\n    return false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<form {{on \\'submit\\' this.save}} class=\\\"c-edit-inline-form\\\">\\n  {{#if (eq this.inputType \\'boolean editor\\')}}\\n    <div class=\\\"c-edit-inline-form__field c-edit-inline-form__boolean-wrapper\\\">\\n      <Widgets::Edit::BooleanEditor::WidgetLayout\\n        @field={{@field}}\\n        @widgetConfiguration={{this.widgetConfiguration}}\\n        @value={{this.value}}\\n        @disabled={{@isDisabled}}\\n        @onChange={{this.handleValueChange}}\\n        class=\\\"c-edit-inline-form__field\\\"\\n      />\\n    </div>\\n  {{else if (eq this.inputType \\'price editor\\')}}\\n    <div class=\\\"c-edit-inline-form__field c-edit-inline-form__price-wrapper\\\">\\n      <Widgets::Edit::PriceEditor::WidgetLayout\\n        @field={{@field}}\\n        @widgetConfiguration={{this.widgetConfiguration}}\\n        @value={{this.value}}\\n        @disabled={{@isDisabled}}\\n        @onChange={{this.handleValueChange}}\\n      />\\n    </div>\\n  {{else if (eq this.inputType \\'text editor\\')}}\\n    <Shared::BetaInput\\n      class=\\\"c-edit-inline-form__field\\\"\\n      @autofocus={{true}}\\n      @iconClass=\\\"c-edit-inline-form__field-icon\\\"\\n      @inputClass={{concat\\n        \\'c-edit-inline-form__field-input\\'\\n        (if this.shouldDisplayError \\' c-edit-inline-form__field-input--error\\')\\n      }}\\n      @value={{this.value}}\\n      @placeholder=\\\"Enter a value\\\"\\n      @type=\\\"text\\\"\\n      @iconName=\\\"cancel\\\"\\n      @onChange={{this.handleValueChange}}\\n      @onClickIcon={{this.clearInput}}\\n      @disabled={{@isDisabled}}\\n    />\\n  {{else}}\\n    <Widgets::Widget\\n      @type=\\\"edit\\\"\\n      @widgetConfiguration={{@field.widgetEdit}}\\n      @field={{@field}}\\n      @value={{this.value}}\\n      @isReadOnly={{@isDisabled}}\\n      @onChange={{this.handleValueChange}}\\n      @onErrorChange={{this.handleWidgetError}}\\n      class=\\\"c-edit-inline-form__field\\\"\\n      ...attributes\\n    />\\n  {{/if}}\\n\\n  <Shared::SaveButton\\n    @onSave={{this.save}}\\n    @isDisabled={{or this.isSaveDisabled @isDisabled}}\\n    @async={{false}}\\n    @buttonClass=\\\"c-edit-inline-form__save-button c-edit-inline-form__button\\\"\\n    data-test-save={{true}}\\n  />\\n\\n  <Shared::Button::BetaButton\\n    @type=\\\"secondary\\\"\\n    @text=\\\"Discard\\\"\\n    @action={{this.discard}}\\n    @size=\\\"normal\\\"\\n    @disabled={{@isDisabled}}\\n    @async={{false}}\\n    data-test-discard={{true}}\\n    class=\\\"c-edit-inline-form__button\\\"\\n  />\\n</form>\\n\\n{{#if this.shouldDisplayError}}\\n  <span class=\\\"c-edit-inline-form__field-error\\\">\\n    {{this.errorMessage}}\\n  </span>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/edit-inline/form/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @isEditing}}\\n  {{! template-lint-disable no-invalid-interactive }}\\n  <div\\n    class=\\\"c-edit-inline\\\"\\n    {{did-insert this.registerListener}}\\n    {{will-destroy this.unregisterListener}}\\n    {{on \\'click\\' this.onClick}}\\n    ...attributes\\n  >\\n\\n    <Shared::PortalContent @for=\\\"edit-inline\\\">\\n      <div {{on \\'mouseup\\' this.clickOutside}} class=\\\"c-edit-inline__overlay\\\" role=\\\"button\\\">\\n      </div>\\n      <EditInline::Container\\n        @onEscape={{this.clickOutside}}\\n        @forceInsideField={{@forceInsideField}}\\n        @targetCell={{this.tableCellElement}}\\n        class={{concat\\n          \\'c-edit-inline__container\\'\\n          (if @forceInsideField \\' c-edit-inline__container--force-inside\\')\\n        }}\\n        as |resizeAction|\\n      >\\n        <EditInline::Form\\n          @closeAction={{this.closeAction}}\\n          @saveAction={{this.save}}\\n          @onChangeAction={{resizeAction}}\\n          @field={{@field}}\\n          @record={{@record}}\\n          @isDisabled={{this.isDisabled}}\\n        />\\n      </EditInline::Container>\\n    </Shared::PortalContent>\\n  </div>\\n  {{! template-lint-enable no-invalid-interactive }}\\n\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/edit-inline/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Environment from 'client/data/models/environment';\nimport { argument, arrayOf, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class EnvironmentSettingsDetailsComponent extends Component {\n  @service router;\n  @service currentUser;\n  @service('feature/modal') modalService;\n  @service lianaSession;\n  @service('feature/cloud') cloudService;\n  @service('feature/cloud/state') cloudState;\n\n  @argument(Environment) environment;\n  @argument(arrayOf(Environment)) projectEnvironments;\n  @argument(optional(Function)) updateBreadcrumb;\n  @argument(optional(Function)) continueDeploy;\n  @argument(optional(Function)) refreshData;\n  @argument(optional(Object)) defaultEnvironment;\n  @argument(optional(Boolean)) hasNoRolesEnabled;\n  @argument(optional(String)) environmentSecretKey;\n\n  @tracked environmentName = this.args.environment.name;\n\n  get isSectionDeleteCanBeDisplayed() {\n    return !this.args.environment.isNew && !this.args.environment.isProduction;\n  }\n\n  get isSectionProductionCanBeDisplayed() {\n    return (\n      !this.args.environment.isFullHostedAgent\n      && this.currentUser.canSetTheEnvironmentAsProduction\n      && !this.args.environment.isNew\n      && !this.args.environment.areRolesDisabled\n    );\n  }\n\n  get isSectionSetOriginCanBeDisplayed() {\n    return (\n      !this.args.environment.isFullHostedAgent\n      && this.currentUser.canSetBranchOrigin\n      && !this.args.environment.isNew\n    );\n  }\n\n  @action\n  async restartFullHostedAgent() {\n    this.modalService.open('feature/cloud/wait-for-synchronization-modal', {\n      mustDisableClose: true,\n    });\n  }\n\n  @action\n  goToEnvironmentList() {\n    this.router.transitionTo('project.project-settings.environments');\n  }\n}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Environment from 'client/data/models/environment';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class EnvironmentSettingsDetailsSectionsDeleteComponent extends Component {\n  static propTypes = {\n    environment: PropTypes.instanceOf(Environment).isRequired,\n    defaultEnvironment: PropTypes.instanceOf(Environment),\n  };\n\n  @service htmlSanitizer;\n  @service toastr;\n  @service router;\n  @service lianaSession;\n\n  @tracked owner = null;\n\n  get ownerFullName() {\n    return this.owner && this.owner.fullName;\n  }\n\n  get isDefaultEnvironment() {\n    return this.args.environment.id === this.args.defaultEnvironment?.id;\n  }\n\n  get canDeleteEnvironment() {\n    return (\n      !this.args.environment.isNew\n      && !this.args.environment.isProduction\n      && !this.isDefaultEnvironment\n    );\n  }\n\n  constructor(...args) {\n    super(...args);\n\n    this.args.environment.owner.then((owner) => {\n      this.owner = owner;\n    });\n  }\n\n  get dangerZoneDescription() {\n    return this.args.environment.isRemote\n      ? 'Deleting this environment will permanently remove any branch pushed on it.'\n      : htmlSafe(\n          `Deleting this environment will also permanently remove <b>all branches of ${this.htmlSanitizer.escapeText(\n            this.ownerFullName,\n          )}</b>.`,\n        );\n  }\n\n  @action\n  deleteEnvironment() {\n    this.args.environment\n      .destroyRecord()\n      .then(() => {\n        this.toastr.perform('success', 'Environment deleted.');\n        this.router.transitionTo('project.project-settings.environments');\n      })\n      .catch(() => {\n        this.toastr.perform('error', 'Environment deletion failed.');\n      });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout::Section\\n  @isDangerZone={{true}}\\n  @description={{this.dangerZoneDescription}}\\n>\\n  {{#if this.isDefaultEnvironment}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"info\\\"\\n      @canHide={{false}}\\n      @class=\\\"c-environment-settings-details__notification\\\"\\n    >\\n      This is the default environment of your project. It cannot be deleted.\\n    </Shared::Feedback::Notification::NotificationInApp>\\n  {{/if}}\\n\\n  {{#if this.canDeleteEnvironment}}\\n    <Feature::CriticalActionConfirmation::Button\\n      @buttonText=\\\"Delete environment\\\"\\n      @entityName={{@environment.name}}\\n      @warningMessage=\\\"You are about to delete the “{{@environment.name}}” environment.\\\"\\n      @cancelText=\\\"Cancel\\\"\\n      @onConfirm={{this.deleteEnvironment}}\\n      data-test-delete-button\\n    />\\n  {{/if}}\\n</Shared::BetaSettingsLayout::Section>\\n', { moduleName: 'client/legacy/pods/components/environment-settings-details/sections/delete/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Environment from 'client/data/models/environment';\nimport validateArguments from 'client/decorators/validate';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class EnvironmentSettingsDetailsSectionsGeneralComponent extends Component {\n  static propTypes = {\n    environment: PropTypes.instanceOf(Environment).isRequired,\n    environmentName: PropTypes.string,\n    updateBreadcrumbAndRoute: PropTypes.func,\n    continueDeploy: PropTypes.func,\n    projectEnvironments: PropTypes.arrayOf(PropTypes.instanceOf(Environment)).isRequired,\n    hasNoRolesEnabled: PropTypes.bool,\n    environmentSecretKey: PropTypes.string,\n  };\n\n  @service toastr;\n  @service router;\n  @service errorHandler;\n  @service currentUser;\n  @service lianaSession;\n  @service lianaFeatures;\n\n  @tracked warnUserOnApiEndpointChanged = false;\n  @tracked giveUserInstructionOnApiEndpointChangesSaved = false;\n\n  get isSaveButtonDisabled() {\n    return !this.args.environment.hasDirtyAttributes;\n  }\n\n  get isNameInputDisabled() {\n    return this.args.environment.isProduction || this.args.environment.isDevelopment;\n  }\n\n  get isNotConfigured() {\n    return this.args.environmentSecretKey && !this.args.environment.isActive;\n  }\n\n  get renderingCopierAvailableEnvironments() {\n    return this.args.projectEnvironments.filter(\n      (environment) => environment.id !== this.args.environment.id,\n    );\n  }\n\n  get additionalCommand() {\n    let command;\n\n    if (this.args.environment.lianaName === 'forest-rails') {\n      command = 'rails forest:clear';\n    } else {\n      command = false;\n    }\n\n    return this.isNoApplicationUrlCompatible && command;\n  }\n\n  get isNoApplicationUrlCompatible() {\n    return this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.NoApplicationUrl,\n      this.args.environment,\n    );\n  }\n\n  @action\n  updateEnvironment(callback) {\n    const hasNameChanged = !!this.args.environment.changedAttributes()?.name;\n    const hasEndpointChanged = !!this.args.environment.changedAttributes()?.apiEndpoint;\n\n    const promise = this.args.environment\n      .save()\n      .then(() => {\n        if (hasNameChanged && !(this.isDestroying || this.isDestroyed)) {\n          this.environmentName = this.args.environment.name;\n          this.args.updateBreadcrumbAndRoute(this.args.environment.name);\n        }\n\n        this.giveUserInstructionOnApiEndpointChangesSaved = hasEndpointChanged;\n        this.warnUserOnApiEndpointChanged = false;\n\n        this.toastr.perform('success', 'Environment successfully updated.');\n      })\n      .catch((reason) => {\n        const message = reason?.errors?.[0]?.detail || 'unexpected error.';\n        this.toastr.perform('error', `${this.args.environment.name} update failed: ${message}`);\n      });\n\n    callback(promise);\n  }\n\n  @action\n  onValidateNewEnvironmentUrl(newEnvironmentUrl) {\n    if (this.args.environment.apiEndpoint !== newEnvironmentUrl) {\n      this.args.environment.apiEndpoint = newEnvironmentUrl;\n      this.warnUserOnApiEndpointChanged = true;\n      this.giveUserInstructionOnApiEndpointChangesSaved = false;\n    }\n  }\n\n  @action\n  clearState() {\n    this.warnUserOnApiEndpointChanged = false;\n    this.giveUserInstructionOnApiEndpointChangesSaved = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout::Section\\n  {{did-insert this.clearState}}\\n  @title=\\\"Environment details\\\"\\n  @displayDraftTag={{@environment.isInactive}}\\n  @colorDraftTag={{@environment.badgeColor}}\\n  @description=\\\"Edit or delete this environment.\\\"\\n>\\n  <:header-buttons>\\n    {{#if (and @environment.isInactive @continueDeploy (not @environment.isDevelopment))}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @text=\\\"Deploy\\\"\\n        @action={{(fn @continueDeploy @environment.id)}}\\n        @isIconAfterText={{true}}\\n        data-test-continue-deploy\\n      />\\n    {{/if}}\\n\\n    <Button::BetaSaveDiscardButtons\\n      @isSaveDisabled={{this.isSaveButtonDisabled}}\\n      @discard={{this.clearState}}\\n      @entityName=\\\"environment\\\"\\n      @entity={{@environment}}\\n      @save={{this.updateEnvironment}}\\n      @fullWidth={{false}}\\n      @withMarginBottom={{false}}\\n    />\\n  </:header-buttons>\\n\\n  <:default>\\n    {{#if this.isNotConfigured}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"warning\\\"\\n        @canHide={{false}}\\n        @class=\\\"c-environment-settings-details__notification c-environment-settings-details__notification--spaced\\\"\\n      >\\n        You need to finish deploying your environment\\n        {{@environmentName}}\\n        to see it live. If you need help, check\\n        <Shared::Navigation::BetaLinkTo\\n          @href=\\\"https://docs.forestadmin.com/\\\"\\n          @text=\\\"our documentation\\\"\\n          @target=\\\"_blank\\\"\\n          @type=\\\"inherit\\\"\\n          @size=\\\"large\\\"\\n          @isInline={{true}}\\n          @noPadding={{true}}\\n        />\\n        or reach out on the community forum.\\n        <Shared::Navigation::BetaLinkTo\\n          @href=\\\"https://community.forestadmin.com/\\\"\\n          @text=\\\"Forest Admin community forum\\\"\\n          @target=\\\"_blank\\\"\\n          @type=\\\"inherit\\\"\\n          @size=\\\"large\\\"\\n          @isInline={{true}}\\n          @noPadding={{true}}\\n          @punctuation=\\\".\\\"\\n        />\\n      </Shared::Feedback::Notification::NotificationInApp>\\n    {{/if}}\\n\\n    {{#if (and @hasNoRolesEnabled @environment.isActive)}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"warning\\\"\\n        @canHide={{false}}\\n        @class=\\\"c-environment-settings-details__notification\\\"\\n        data-test-has-no-roles-enabled\\n      >\\n        No roles have been enabled for this environment yet. As a result, it is not usable for now.\\n        <br />\\n        To start using it, enable 1 or more role(s) from the\\n        <i>\\n          Roles\\n        </i>\\n        tab.\\n      </Shared::Feedback::Notification::NotificationInApp>\\n    {{/if}}\\n\\n    <Shared::BetaLabel\\n      @label=\\\"Name of the environment\\\"\\n      class=\\\"c-environment-settings-details__input\\\"\\n      data-test-input-for=\\\"name\\\"\\n    >\\n      <Shared::BetaInput @value={{@environment.name}} @disabled={{this.isNameInputDisabled}} />\\n    </Shared::BetaLabel>\\n\\n    {{#if @environment.isFullHostedAgent}}\\n      <Shared::BetaLabel\\n        @label=\\\"Admin backend URL\\\"\\n        class=\\\"c-environment-settings-details__input\\\"\\n        data-test-input-for=\\\"url\\\"\\n      >\\n        <Shared::BetaInput\\n          @value={{@environment.apiEndpoint}}\\n          @disabled={{@environment.isFullHostedAgent}}\\n        />\\n\\n      </Shared::BetaLabel>\\n    {{else}}\\n      {{! Edit environment }}\\n      <Shared::BetaLabel\\n        @label=\\\"Admin backend URL\\\"\\n        class=\\\"c-environment-settings-details__input\\\"\\n        data-test-input-for=\\\"url\\\"\\n      >\\n        <Shared::BetaInputLocked\\n          @value={{@environment.apiEndpoint}}\\n          @onValidate={{this.onValidateNewEnvironmentUrl}}\\n        >\\n          <:input-edition>\\n            <Shared::Feedback::Notification::NotificationInApp\\n              @state=\\\"warning\\\"\\n              @canHide={{false}}\\n              @class=\\\"c-environment-settings-details__notification c-environment-settings-details__notification--spaced\\\"\\n              data-test-notification-warning-url-impact\\n            >\\n              Updating this URL can impact the connectivity to your server and will require further\\n              actions from you. Please do it with care.\\n            </Shared::Feedback::Notification::NotificationInApp>\\n          </:input-edition>\\n\\n          <:input-reading>\\n            {{#if this.giveUserInstructionOnApiEndpointChangesSaved}}\\n              <Shared::Feedback::Notification::NotificationInApp\\n                @state=\\\"warning\\\"\\n                @canHide={{false}}\\n                @class=\\\"c-environment-settings-details__notification c-environment-settings-details__notification--spaced\\\"\\n                data-test-notification-warning-instruction\\n              >\\n\\n                {{#if this.isNoApplicationUrlCompatible}}\\n                  {{#if this.additionalCommand}}\\n                    {{! In this case the command is enough no need to restart the server }}\\n                    <Shared::DataDisplay::BetaHighlight\\n                      @title=\\\"To make sure the connection to your server stays active, execute this command :\\\"\\n                      @language=\\\"bash\\\"\\n                      @code={{this.additionalCommand}}\\n                      @isCommandLine={{true}}\\n                    />\\n                  {{else}}\\n                    {{! The user must restart the server to sync the new URL }}\\n                    To make sure the connection to your server stays active, please restart your\\n                    server.\\n                  {{/if}}\\n                {{else}}\\n                  {{! All agents version must update the url environment variable and restart their server }}\\n                  To make sure the connection to your server stays active, update your environment\\n                  variables as well and then restart your server.\\n                {{/if}}\\n\\n              </Shared::Feedback::Notification::NotificationInApp>\\n            {{else if this.warnUserOnApiEndpointChanged}}\\n              <Shared::Feedback::Notification::NotificationInApp\\n                @state=\\\"info\\\"\\n                @canHide={{false}}\\n                @class=\\\"c-environment-settings-details__notification c-environment-settings-details__notification--spaced\\\"\\n                data-test-notification-info-save-to-perform-change\\n              >\\n\\n                You need to save your changes to take them into account.\\n\\n              </Shared::Feedback::Notification::NotificationInApp>\\n            {{/if}}\\n          </:input-reading>\\n        </Shared::BetaInputLocked>\\n\\n      </Shared::BetaLabel>\\n    {{/if}}\\n\\n    {{#if @environmentSecretKey}}\\n      <Shared::BetaLabel\\n        @label=\\\"Environment secret (FOREST_ENV_SECRET)\\\"\\n        data-test-input-for=\\\"secretKey\\\"\\n        class=\\\"c-environment-settings-details__input\\\"\\n      >\\n        <Shared::BetaInput\\n          @value={{@environmentSecretKey}}\\n          @inputClass=\\\"c-environment-settings-details__secret-key-input\\\"\\n          @readOnly={{true}}\\n          @copyable={{true}}\\n        />\\n      </Shared::BetaLabel>\\n    {{/if}}\\n\\n    {{#if @environment.lianaVersion}}\\n      <Shared::BetaLabel\\n        @label=\\\"Agent Version\\\"\\n        data-test-input-for=\\\"lianaVersion\\\"\\n        class=\\\"c-environment-settings-details__input c-environment-settings-details__input--half\\\"\\n      >\\n        <Shared::BetaInput @value={{@environment.lianaVersion}} @disabled={{true}} />\\n      </Shared::BetaLabel>\\n    {{/if}}\\n  </:default>\\n</Shared::BetaSettingsLayout::Section>\\n', { moduleName: 'client/legacy/pods/components/environment-settings-details/sections/general/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport Environment from 'client/data/models/environment';\nimport validateArguments from 'client/decorators/validate';\nimport { HttpError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport tryGetBody from 'client/utils/try-get-body';\n\n@validateArguments\nexport default class EnvironmentSettingsDetailsSectionsSetAsProductionComponent extends Component {\n  static propTypes = {\n    environment: PropTypes.instanceOf(Environment).isRequired,\n    environmentName: PropTypes.string.isRequired,\n    refreshData: PropTypes.func.isRequired,\n  };\n\n  @service toastr;\n  @service router;\n  @service serverFetch;\n  @service lianaSession;\n  @service errorHandler;\n\n  @action\n  async setAsProductionEnvironment(newProductionEnvironmentId) {\n    const response = await this.serverFetch.fetch('/api/projects/change-production', {\n      method: 'POST',\n      body: JSON.stringify({ newProductionEnvironmentId }),\n    });\n    if (response.ok) {\n      this.toastr.perform('success', 'Environment successfully set as production.');\n      this.args.refreshData();\n    } else {\n      this.errorHandler.handleRequestFailure(\n        new HttpError(response, await tryGetBody(response)),\n        'Failed to set this environment as production',\n      );\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout::Section\\n  @title=\\\"Set as production\\\"\\n  @description=\\\"The production environment is where your live data is used. This is your main environment and all your branches (old and new) will be based on it.\\\"\\n>\\n  {{#if @environment.isDevelopment}}\\n    <p\\n      class=\\\"c-environment-settings-details__set-as-origin__description--danger\\\"\\n      data-test-set-production-development-message\\n    >\\n      This environment is not a\\n      <strong>\\n        remote\\n      </strong>\\n      environment.\\n    </p>\\n  {{else if @environment.isProduction}}\\n    <p\\n      class=\\\"c-environment-settings-details__set-as-origin__description--danger\\\"\\n      data-test-set-production-already-message\\n    >\\n      This environment is your production environment.\\n    </p>\\n  {{else if (not @environment.currentBranch.originEnvironment.isProduction)}}\\n    <p\\n      class=\\\"c-environment-settings-details__set-as-origin__description--danger\\\"\\n      data-test-set-production-no-reference-orgigin\\n    >\\n      You can only set as production an environment which has production as its origin.\\n    </p>\\n  {{else if @environment.isInactive}}\\n    <p\\n      class=\\\"c-environment-settings-details__set-as-origin__description--danger\\\"\\n      data-test-set-production-inactive\\n    >\\n      This environment is still in draft mode. It must complete its deployment setup before it can\\n      be set as production.\\n    </p>\\n  {{else}}\\n    <div data-test-set-production-default-message>\\n      <p class=\\\"c-environment-settings-details__set-as-origin__description\\\">\\n        This will set\\n        <strong>\\n          {{@environmentName}}\\n        </strong>\\n        as your production environment.\\n      </p>\\n      <p class=\\\"c-environment-settings-details__set-as-origin__description--danger\\\">\\n        <strong>\\n          Warning\\n        </strong>\\n        : All your current branches will be rebased on it.\\n      </p>\\n    </div>\\n  {{/if}}\\n  <Feature::CriticalActionConfirmation::Button\\n    @buttonText=\\\"Set as production\\\"\\n    @entityName={{@environmentName}}\\n    @warningMessage=\\\"You are about to set “{{@environmentName}}” as your production environment.\\\"\\n    @cancelText=\\\"Cancel\\\"\\n    @onConfirm={{fn this.setAsProductionEnvironment @environment.id}}\\n    @disabled={{or\\n      @environment.isProduction\\n      @environment.isDevelopment\\n      (not @environment.currentBranch.originEnvironment.isProduction)\\n      @environment.isInactive\\n    }}\\n    class=\\\"c-environment-settings-details__set-as-origin__button\\\"\\n    data-test-set-production-button\\n  />\\n</Shared::BetaSettingsLayout::Section>\\n', { moduleName: 'client/legacy/pods/components/environment-settings-details/sections/set-as-production/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Environment from 'client/data/models/environment';\nimport { HttpError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport tryGetBody from 'client/utils/try-get-body';\n\nexport default class EnvironmentSettingsDetailsSectionsSetOriginComponent extends Component {\n  static propTypes = {\n    environment: PropTypes.instanceOf(Environment).isRequired,\n    projectEnvironments: PropTypes.arrayOf(PropTypes.instanceOf(Environment)).isRequired,\n    environmentSecretKey: PropTypes.string.isRequired,\n    refreshData: PropTypes.func.isRequired,\n  };\n\n  @service toastr;\n  @service serverFetch;\n  @service lianaSession;\n  @service errorHandler;\n\n  @tracked originName = this.args.environment.currentBranch?.originEnvironment?.get('name');\n\n  get environmentDevelomentCantSetOrigin() {\n    return this.args.environment.isDevelopment && !this.originName;\n  }\n\n  get originOptions() {\n    return this.args.projectEnvironments\n      .filter(\n        (environment) =>\n          environment.type !== 'development'\n          && environment.id !== this.args.environment.id\n          && !this._isCyclicOriginTree(environment),\n      )\n      .map((environment) => environment.name);\n  }\n\n  _isCyclicOriginTree(environment) {\n    let { currentBranch } = environment;\n    const ancestors = [this.args.environment?.currentBranch?.id, currentBranch?.id];\n\n    currentBranch = currentBranch?.originEnvironment?.get('currentBranch');\n    let originId = currentBranch?.id;\n    while (originId && !ancestors.includes(originId)) {\n      ancestors.push(originId);\n      currentBranch = currentBranch?.originEnvironment?.get('currentBranch');\n      originId = currentBranch?.id;\n    }\n\n    return Boolean(originId);\n  }\n\n  @action\n  async setOrigin(environmentName) {\n    const response = await this.serverFetch.fetch('/api/branches/set-origin', {\n      method: 'POST',\n      headers: { 'forest-secret-key': this.args.environmentSecretKey },\n      body: JSON.stringify({ originEnvironmentName: environmentName }),\n    });\n\n    if (response.ok) {\n      this.toastr.perform('success', 'New origin successfully set.');\n      this.args.refreshData();\n    } else {\n      this.errorHandler.handleRequestFailure(\n        new HttpError(response, await tryGetBody(response)),\n        'Failed to set new origin',\n      );\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout::Section\\n  @title=\\\"Set origin\\\"\\n  @description=\\\"The origin is the environment on which this environment will be based. The push CLI command will push the changes of this environment to this origin.\\\"\\n>\\n  {{#if @environment.isProduction}}\\n    <p\\n      class=\\\"c-environment-settings-details__set-as-origin__description--danger\\\"\\n      data-test-select-origin-danger-message\\n    >\\n      You cannot set origin on Production environment\\n    </p>\\n  {{else if this.environmentDevelomentCantSetOrigin}}\\n    <p\\n      class=\\\"c-environment-settings-details__set-as-origin__description--danger\\\"\\n      data-test-select-origin-no-current-branch-message\\n    >\\n      You must have a current branch, on your environment, before switch origin.\\n      <br />\\n      Please use\\n      <strong>forest switch</strong>, or\\n      <strong>forest branch</strong>.\\n    </p>\\n  {{else}}\\n    <p\\n      class=\\\"c-environment-settings-details__set-as-origin__description\\\"\\n      data-test-select-origin-choose-message\\n    >\\n      Choose the origin environment\\n    </p>\\n  {{/if}}\\n  <Shared::BetaSelect\\n    @value={{this.originName}}\\n    @options={{this.originOptions}}\\n    @onChange={{this.setOrigin}}\\n    @disabled={{or @environment.isProduction this.environmentDevelomentCantSetOrigin}}\\n    @class=\\\"c-environment-settings-details__input\\\"\\n    data-test-select-origin-options\\n  />\\n</Shared::BetaSettingsLayout::Section>\\n', { moduleName: 'client/legacy/pods/components/environment-settings-details/sections/set-origin/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout @onClose={{this.goToEnvironmentList}}>\\n  <EnvironmentSettingsDetails::Sections::General\\n    @environment={{@environment}}\\n    @environmentName={{this.environmentName}}\\n    @updateBreadcrumbAndRoute={{@updateBreadcrumbAndRoute}}\\n    @continueDeploy={{@continueDeploy}}\\n    @projectEnvironments={{@projectEnvironments}}\\n    @hasNoRolesEnabled={{@hasNoRolesEnabled}}\\n    @environmentSecretKey={{@environmentSecretKey}}\\n  />\\n\\n  {{#if (or this.isSectionSetOriginCanBeDisplayed this.isSectionProductionCanBeDisplayed)}}\\n    <Shared::ContentSeparator @withSideMargin={{true}} class=\\\"c-beta-setting-layout-separator\\\" />\\n  {{/if}}\\n\\n  {{#if this.isSectionSetOriginCanBeDisplayed}}\\n    <EnvironmentSettingsDetails::Sections::SetOrigin\\n      @environment={{@environment}}\\n      @projectEnvironments={{@projectEnvironments}}\\n      @environmentSecretKey={{@environmentSecretKey}}\\n      @refreshData={{@refreshData}}\\n    />\\n  {{/if}}\\n\\n  {{#if this.isSectionProductionCanBeDisplayed}}\\n    <EnvironmentSettingsDetails::Sections::SetAsProduction\\n      @environment={{@environment}}\\n      @environmentName={{this.environmentName}}\\n      @refreshData={{@refreshData}}\\n    />\\n  {{/if}}\\n\\n  {{#if this.isSectionDeleteCanBeDisplayed}}\\n    <EnvironmentSettingsDetails::Sections::Delete\\n      @environment={{@environment}}\\n      @defaultEnvironment={{@defaultEnvironment}}\\n    />\\n  {{/if}}\\n\\n  {{#if @environment.isFullHostedAgent}}\\n    <Shared::ContentSeparator @withSideMargin={{true}} class=\\\"c-beta-setting-layout-separator\\\" />\\n    <Shared::BetaSettingsLayout::Section\\n      @title=\\\"Agent management\\\"\\n      @description=\\\"Manage your Forest Admin hosted agent.\\\"\\n    >\\n      <p class=\\\"c-project-cloud-settings__refresh-full-hosted-agent-description\\\">\\n        This will update your agent, according to your databases schema.\\n      </p>\\n      <Shared::Button\\n        @text=\\\"Sync database schema\\\"\\n        @type=\\\"ghost\\\"\\n        @iconName=\\\"sync\\\"\\n        @onClick={{this.restartFullHostedAgent}}\\n        @disabled={{this.cloudState.isAgentRestarting}}\\n        @isLoading={{this.cloudState.isAgentRestarting}}\\n        data-test-cloud-restart-agent\\n      />\\n    </Shared::BetaSettingsLayout::Section>\\n    <Shared::ContentSeparator @withSideMargin={{true}} class=\\\"c-beta-setting-layout-separator\\\" />\\n    <Shared::BetaSettingsLayout::Section @title=\\\"Data\\\" @description=\\\"Manage your databases\\\">\\n      <Feature::Cloud::Datasources\\n        @datasources={{@datasources}}\\n        @restartFullHostedAgent={{this.restartFullHostedAgent}}\\n      />\\n    </Shared::BetaSettingsLayout::Section>\\n  {{/if}}\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/components/environment-settings-details/template.hbs' });\n","import Component from '@ember/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class ErrorScreenComponent extends Component {\n  propTypes = {\n    iconName: PropTypes.string.isRequired,\n    onContinueAction: PropTypes.func.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-mobile-error\\\">\\n  <div class=\\\"c-error\\\">\\n    <div>\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName={{@iconName}}\\n        @size=\\\"custom\\\"\\n        class=\\\"c-error__illustration\\\"\\n        data-test-error-screen-illustration\\n      />\\n      {{yield}}\\n      <p class=\\\"c-error__continue\\\">\\n        <span {{on \\'click\\' @onContinueAction}} role=\\\"button\\\" data-test-error-screen-button>\\n          Continue anyway\\n        </span>\\n      </p>\\n    </div>\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/error-screen/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-explorer-record-details-header-buttons\\\" ...attributes>\\n  {{#if @readMode}}\\n    {{#if (current-user \\'canEditCollection\\' @collection)}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @text=\\\"Edit\\\"\\n        @action={{@onEdit}}\\n        class=\\\"c-explorer-record-details-header-buttons__save\\\"\\n        data-test-explorer-record-details-header-buttons-edit\\n      />\\n    {{/if}}\\n    {{#unless @collection.isEmbedded}}\\n      <Shared::Navigation::BetaLinkTo\\n        @displayAsButton={{true}}\\n        @type=\\\"secondary\\\"\\n        @text=\\\"Go to record\\\"\\n        @iconName=\\\"arrow_forward\\\"\\n        @isIconAfterText={{true}}\\n        @routeName={{@recordLink}}\\n        @routeParameters={{array @collection.shareableId @record.id}}\\n        class=\\\"c-explorer-record-details-header-buttons__go-to-record\\\"\\n        data-test-explorer-record-details-header-buttons-go-to\\n      />\\n    {{/unless}}\\n  {{else}}\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @text={{if\\n        @record.isNew\\n        (concat \\'Create a new \\' (word-singularize (lowercase-text @collection.displayName)))\\n        \\'Save changes\\'\\n      }}\\n      @action={{@onSave}}\\n      @async={{true}}\\n      class=\\\"c-explorer-record-details-header-buttons__save\\\"\\n      data-test-explorer-record-details-header-buttons-save\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @text={{if @record.isNew \\'Cancel\\' \\'Discard changes\\'}}\\n      @action={{@onDiscard}}\\n      @async={{false}}\\n      class=\\\"c-explorer-record-details-header-buttons__discard\\\"\\n      data-test-explorer-record-details-header-buttons-discard\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/explorer/record-details-header-buttons/template.hbs' });\n","import { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { debounce } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport config from 'client/config/environment';\nimport { ERROR_PAGE_TOO_FAR } from 'client/config/errors';\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport ExplorerRecordsColumn from 'client/utils/explorer/explorer-records-column-class';\n\nconst { maxRecordsPerPage } = config.APP;\n\n@validateArguments\nexport default class ExplorerRecordsListComponent extends Component {\n  @service relatedRecordsManager;\n\n  @argument(ExplorerRecordsColumn) explorerColumn;\n  @argument(Function) onFilteringOutSelectedColumn;\n  @argument(Function) toggleVisibility;\n  @argument(Boolean) shouldScroll;\n\n  @tracked searchValue = '';\n\n  maxRecordsPerPage = maxRecordsPerPage;\n\n  constructor(...args) {\n    super(...args);\n\n    if (!this.args.explorerColumn.editor) {\n      this.fetchRecords();\n    }\n  }\n\n  get elementId() {\n    return `${guidFor(this)}-records-list`;\n  }\n\n  get canNext() {\n    // In case the records count is not available, the '>' button\n    // will be disabled when the number of records displayed in the page is less than the recordsPerPage setting\n    return (\n      this.args.explorerColumn.recordsPerPage\n      === this.args.explorerColumn.recordsContext.records?.length\n    );\n  }\n\n  @action\n  async fetchRecords() {\n    const { explorerColumn } = this.args;\n\n    if (explorerColumn.field.referenceModel) {\n      await this.relatedRecordsManager.getRecords.perform(explorerColumn.recordsContext);\n\n      if (explorerColumn.recordsContext.isCurrentPageTooFar) {\n        explorerColumn.recordsContext.error = {\n          type: ERROR_PAGE_TOO_FAR,\n          options: {\n            currentPage: explorerColumn.recordsContext.currentPage,\n            onClick: this.fetchPreviousPage,\n          },\n        };\n      }\n    } else {\n      explorerColumn.recordsContext.records = explorerColumn.parentRecord.get(\n        explorerColumn.field.attributeName,\n      );\n      explorerColumn.recordsContext.isLoading = false;\n    }\n  }\n\n  @action\n  fetchPreviousPage() {\n    this.args.explorerColumn.recordsContext.currentPage -= 1;\n    return this.fetchRecords();\n  }\n\n  @action\n  fetchNextPage() {\n    this.args.explorerColumn.recordsContext.currentPage += 1;\n    return this.fetchRecords();\n  }\n\n  @action\n  async applySearchAndFilter(filter, search) {\n    const { explorerColumn } = this.args;\n    explorerColumn.recordsContext.filter = filter || null;\n    explorerColumn.recordsContext.search = search;\n    this.searchValue = search;\n\n    await this.fetchRecords();\n\n    if (!explorerColumn.recordsContext.records.includes(explorerColumn.selectedRecord)) {\n      this.args.onFilteringOutSelectedColumn(explorerColumn);\n    }\n  }\n\n  @action\n  updateRecordsPerPage() {\n    debounce(this, this.updateExplorerConfiguration, this.args.checkDebounce ?? 1000);\n  }\n\n  updateExplorerConfiguration() {\n    this.args.explorerColumn.save();\n  }\n\n  @action\n  scrollToThisColumn() {\n    const element = document.getElementById(this.elementId);\n    element.scrollIntoView({ behavior: 'smooth', block: 'end' });\n  }\n\n  @action\n  selectPage(pageNumber) {\n    this.args.explorerColumn.recordsContext.currentPage = pageNumber;\n    return this.fetchRecords();\n  }\n}\n","import { action } from '@ember/object';\nimport { sort } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport { displayNamePluralize } from 'client/shared/helpers/display-name-pluralize';\nimport { formatNumberToLocale } from 'client/shared/helpers/format-number-to-locale';\nimport ExplorerDisplayField from 'client/utils/explorer/explorer-display-field-class';\nimport ExplorerRecordsColumn from 'client/utils/explorer/explorer-records-column-class';\n\nexport default class ExplorerRecordsListHeaderComponent extends Component {\n  @service('feature/client-record') clientRecordFeature;\n  // Used in the template\n  @service('business/collection') businessCollectionService;\n\n  @argument(Function) applySearchAndFilter;\n  @argument(Function) toggleVisibility;\n  @argument(Function) onRecordAdded;\n  @argument(ExplorerRecordsColumn) explorerColumn;\n  @argument(optional(String)) searchValue;\n\n  @tracked showDisplayFieldNamesSettingsMenu = false;\n  @tracked fields;\n  @tracked isAddingRecord = false;\n  @tracked isCreatingRecord = false;\n  @tracked recordToAdd = false;\n  @tracked prefilledRows = null;\n\n  fieldsSorting = ['position', 'field.displayName'];\n\n  @sort('fields', 'fieldsSorting') fieldsSorted;\n\n  get searchPlaceholder() {\n    const { recordsCount, field } = this.args.explorerColumn;\n    if (recordsCount) {\n      const fieldDisplayName = displayNamePluralize([\n        field.displayNameLowerCase,\n        field.displayNamePluralLowerCase,\n        recordsCount,\n      ]);\n      return `Search within ${formatNumberToLocale(recordsCount)} ${fieldDisplayName}...`;\n    }\n    return null;\n  }\n\n  constructor(...args) {\n    super(...args);\n\n    const { displayFieldNames } = this.args.explorerColumn;\n\n    const displayFieldNamesOrDefault = displayFieldNames || [];\n\n    const nestedPlainFieldsSorted = this.args.explorerColumn.field.nestedPlainFields.sort(\n      (fieldA, fieldB) => {\n        const compare =\n          displayFieldNamesOrDefault.indexOf(fieldB.fieldName)\n          - displayFieldNamesOrDefault.indexOf(fieldA.fieldName);\n        return compare || fieldA.displayName.localeCompare(fieldB.displayName);\n      },\n    );\n\n    this.fields = nestedPlainFieldsSorted.map(\n      (field, position) =>\n        new ExplorerDisplayField({\n          explorerColumn: this.args.explorerColumn,\n          field,\n          position,\n        }),\n    );\n  }\n\n  @action\n  onRecordCreated() {\n    this.isCreatingRecord = false;\n    this.args.onRecordAdded();\n  }\n\n  @action\n  toggleShowDisplayFieldNamesSettingsMenu() {\n    this.showDisplayFieldNamesSettingsMenu = !this.showDisplayFieldNamesSettingsMenu;\n  }\n\n  @action\n  hideShowDisplayFieldNamesSettingsMenu() {\n    this.showDisplayFieldNamesSettingsMenu = false;\n  }\n\n  @action\n  toggleDisplayField(explorerDisplayField) {\n    explorerDisplayField.isVisible = !explorerDisplayField.isVisible;\n    this._saveDisplayFieldNames();\n  }\n\n  @action\n  reorderDisplayFieldNames(reorderedFields, draggedField) {\n    this.fieldsSorted.forEach((field) => {\n      field.position = reorderedFields.indexOf(field);\n    });\n\n    this._saveDisplayFieldNames(draggedField.isVisible);\n  }\n\n  @action\n  openAddExistingRecordModal() {\n    this.isAddingRecord = true;\n  }\n\n  @action\n  closeAddExistingRecordModal() {\n    this.isAddingRecord = false;\n    this.recordToAdd = null;\n  }\n\n  @action\n  async addExistingRecord() {\n    const { parentRecord, field } = this.args.explorerColumn;\n    await this.clientRecordFeature.addRecordToAssociation(parentRecord, field, this.recordToAdd);\n\n    this.args.onRecordAdded();\n\n    this.closeAddExistingRecordModal();\n  }\n\n  _saveDisplayFieldNames(shouldSave = true) {\n    this.args.explorerColumn.displayFieldNames = this.fieldsSorted\n      .filterBy('isVisible')\n      .map((explorerField) => explorerField.field.fieldName);\n\n    if (!shouldSave) return;\n    this.args.explorerColumn.save();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-records-list-header\\\">\\n  {{#let (get (current-user) \\'editMode\\') as |isEditMode|}}\\n    {{#if isEditMode}}\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName={{if @explorerColumn.isVisible \\'visibility\\' \\'visibility_off\\'}}\\n        class=\\\"c-records-list-header__icon\\n          {{unless @explorerColumn.isVisible \\'c-records-list-header__icon--disabled\\'}}\\\"\\n        data-test-explorer-records-list-header-visibility\\n        {{on \\'click\\' (fn @toggleVisibility @explorerColumn)}}\\n      />\\n      <Button::SettingsButton\\n        @action={{this.toggleShowDisplayFieldNamesSettingsMenu}}\\n        @class=\\\"c-records-list-header__icon\\\"\\n        @icon=\\\"low_priority\\\"\\n        @size=\\\"large\\\"\\n        data-test-explorer-records-list-header-display-fields-settings\\n      />\\n\\n      {{#if this.showDisplayFieldNamesSettingsMenu}}\\n        <XDropdown\\n          @class=\\\"l-records-list-header-settings-menu-container\\\"\\n          @onClickAction={{this.toggleShowDisplayFieldNamesSettingsMenu}}\\n          @onLeaveAction={{this.hideShowDisplayFieldNamesSettingsMenu}}\\n        >\\n          <Shared::BetaSettingsMenu\\n            @groupName=\\\"records-list-header\\\"\\n            @reorderRows={{this.reorderDisplayFieldNames}}\\n            @rows={{this.fieldsSorted}}\\n            @toggleVisibility={{this.toggleDisplayField}}\\n            class=\\\"c-records-list-header__settings-menu\\\"\\n          />\\n        </XDropdown>\\n      {{/if}}\\n    {{else if (not @explorerColumn.field.isEmbedded)}}\\n      <BetaFilter::Button\\n        @appliedSearchValue={{@explorerColumn.recordsContext.search}}\\n        @applyFilter={{@applySearchAndFilter}}\\n        @fieldsFilterable={{@explorerColumn.field.referenceModel.filterableFields}}\\n        @filter={{@explorerColumn.recordsContext.filter}}\\n        @createFilter={{this.businessCollectionService.createFilter}}\\n        @isCompact={{true}}\\n        @searchPlaceholder={{this.searchPlaceholder}}\\n        @searchValue={{@searchValue}}\\n        @onSearchValueChange={{@onSearchValueChange}}\\n        @withSearch={{true}}\\n        data-test-filter-button\\n      />\\n    {{/if}}\\n\\n    <span class=\\\"c-records-list-header__title\\\" data-test-records-list-header-title>\\n      {{capitalize-text @explorerColumn.field.displayName}}\\n    </span>\\n\\n    {{#unless (or isEditMode @explorerColumn.field.isReadOnly)}}\\n      <Button::BetaCreateHasManyButton\\n        @addExistingRecord={{this.openAddExistingRecordModal}}\\n        @collection={{@explorerColumn.field.nestedOrReferencedCollection}}\\n        @createNewRecord={{fn (mut this.isCreatingRecord) true}}\\n        @size=\\\"small\\\"\\n        class=\\\"c-records-list-header__plus-button\\\"\\n      />\\n    {{/unless}}\\n  {{/let}}\\n</div>\\n\\n{{#if this.isAddingRecord}}\\n  <Shared::BetaModal\\n    @contentClass=\\\"c-records-list-header-modal\\\"\\n    @onClose={{this.closeAddExistingRecordModal}}\\n    @title=\\\"Add existing {{singularize @explorerColumn.field.referenceModel.displayNameLowerCase}}\\\"\\n    data-test-explorer-records-list-header-modal\\n  >\\n    <div class=\\\"l-records-list-header-modal-content\\\">\\n      <BetaForm::AddExistingRecord\\n        @field={{@explorerColumn.field}}\\n        @onChange={{fn (mut this.recordToAdd)}}\\n        data-test-explorer-records-list-header-search-input\\n      />\\n\\n      <div class=\\\"l-records-list-header-modal-content__buttons\\\">\\n        <Shared::Button::BetaButton\\n          @action={{this.closeAddExistingRecordModal}}\\n          @async={{false}}\\n          @text=\\\"Cancel\\\"\\n          @type=\\\"secondary\\\"\\n          class=\\\"c-records-list-header-modal__cancel-button\\\"\\n          data-test-explorer-records-list-header-cancel\\n        />\\n        <Shared::Button::BetaButton\\n          @action={{this.addExistingRecord}}\\n          @async={{false}}\\n          @disabled={{not this.recordToAdd}}\\n          @text=\\\"Add selection\\\"\\n          @type=\\\"primary\\\"\\n          class=\\\"c-records-list-header-modal__add-existing-button\\\"\\n          data-test-explorer-records-list-header-add\\n        />\\n      </div>\\n    </div>\\n  </Shared::BetaModal>\\n{{else if this.isCreatingRecord}}\\n  <DataDisplay::Record::CreateEditModal\\n    @field={{@explorerColumn.field}}\\n    @parentRecord={{@explorerColumn.parentRecord}}\\n    @onRecordSaved={{this.onRecordCreated}}\\n    @onCloseModal={{fn (mut this.isCreatingRecord) false}}\\n    data-test-explorer-records-list-header-modal\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/explorer/records-list/header/template.hbs' });\n","import { action, get } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport { any, argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { getDisplayedLinkValue } from 'client/shared/helpers/get-displayed-link-value';\nimport ExplorerRecordsColumn from 'client/utils/explorer/explorer-records-column-class';\nimport { namespace } from 'client/utils/string-utils';\n\n@validateArguments\nexport default class ExplorerRecordsListItemComponent extends Component {\n  @argument(ExplorerRecordsColumn) explorerColumn;\n  @argument(any()) record;\n\n  get primaryDisplayFieldValue() {\n    const displayFieldNameWithNamespace =\n      this.args.explorerColumn.displayFieldNamesWithNamespace.firstObject;\n    const fieldFound = this.args.explorerColumn.field.nestedPlainFields.find((field) =>\n      [namespace(field.fieldName, '-'), field.fieldName].includes(displayFieldNameWithNamespace),\n    );\n\n    return fieldFound?.referenceModel\n      ? getDisplayedLinkValue([fieldFound, this.args.record])\n      : `${get(this.args.record, displayFieldNameWithNamespace)}`;\n  }\n\n  get extraDisplayFields() {\n    const extraDisplayFieldNames = this.args.explorerColumn.displayFieldNames?.slice(1);\n\n    const { fields } = this.args.explorerColumn.row.field.nestedOrReferencedCollection;\n    return (\n      extraDisplayFieldNames?.map((displayFieldName) =>\n        fields.find((field) => field.fieldName === displayFieldName),\n      ) || null\n    );\n  }\n\n  @action\n  computeLabel(field) {\n    return field.getDisplayedValue(this.args.record);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Form::Dropdown::Action\\n  @name=\\\"View record details\\\"\\n  @onClick={{fn @explorerColumn.onNameClick @explorerColumn @record null}}\\n  data-test-explorer-records-list-item-hover-actions-details\\n/>\\n<Dropdown::BetaDropdownActions::DissociateAction\\n  @onAfterDissociate={{@afterDeleteRecords}}\\n  @field={{@explorerColumn.field}}\\n  @parentRecord={{@explorerColumn.parentRecord}}\\n  @selectedRecords={{array @record}}\\n  data-test-explorer-records-list-item-hover-actions-dissociate\\n/>\\n<Dropdown::BetaDropdownActions::DeleteAction\\n  @onAfterDelete={{@afterDeleteRecords}}\\n  @field={{@explorerColumn.field}}\\n  @parentRecord={{@explorerColumn.parentRecord}}\\n  @selectedRecords={{array @record}}\\n  data-test-explorer-records-list-item-hover-actions-delete\\n/>\\n', { moduleName: 'client/legacy/pods/components/explorer/records-list/item/hover-actions/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<SideMenu::Item\\n  @name={{this.primaryDisplayFieldValue}}\\n  @size=\\\"small\\\"\\n  @onClick={{if\\n    @explorerColumn.hasRelatedDataVisible\\n    (fn @explorerColumn.onClick @explorerColumn @record)\\n  }}\\n  @onNameClick={{fn @explorerColumn.onNameClick @explorerColumn @record}}\\n  @hoverActionsComponent={{component\\n    \\'explorer/records-list/item/hover-actions\\'\\n    explorerColumn=@explorerColumn\\n    record=@record\\n    afterDeleteRecords=@afterDeleteRecords\\n  }}\\n  @currentWhenCondition={{eq @explorerColumn.selectedRecord @record}}\\n  class=\\\"c-explorer-records-list-item\\\"\\n  ...attributes\\n>\\n  {{#each this.extraDisplayFields as |extraDisplayField|}}\\n    <Widgets::Widget\\n      @type=\\\"display-row\\\"\\n      @widgetConfiguration={{extraDisplayField.widgetDisplay}}\\n      @field={{extraDisplayField}}\\n      @value={{get @record extraDisplayField.attributeName}}\\n      @label={{compute (fn this.computeLabel extraDisplayField)}}\\n      @class=\\\"c-explorer-records-list-item__extra-info\\\"\\n      @record={{@record}}\\n    />\\n  {{/each}}\\n</SideMenu::Item>\\n', { moduleName: 'client/legacy/pods/components/explorer/records-list/item/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<SideMenu::Section\\n  @header={{component\\n    \\'explorer/records-list/header\\'\\n    applySearchAndFilter=this.applySearchAndFilter\\n    toggleVisibility=@toggleVisibility\\n    explorerColumn=@explorerColumn\\n    searchValue=this.searchValue\\n    onRecordAdded=this.fetchRecords\\n    onSearchValueChange=(fn (mut this.searchValue))\\n  }}\\n  @noMargin={{true}}\\n  @size=\\\"small\\\"\\n  class=\\\"c-records-list__header\\\"\\n  id={{this.elementId}}\\n  {{did-insert (if @shouldScroll this.scrollToThisColumn (do-nothing-function))}}\\n>\\n  <div class=\\\"c-records-list\\\" ...attributes>\\n    {{#if (get (current-user) \\'editMode\\')}}\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName=\\\"visibility_off\\\"\\n        @size=\\\"custom\\\"\\n        class=\\\"c-records-list__editor-icon\\\"\\n        data-test-explorer-records-list-editor-icon\\n      />\\n      <span class=\\\"c-records-list__editor-text\\\" data-test-explorer-records-list-editor-text>\\n        Turn off layout editor to visualize your data in this section.\\n      </span>\\n    {{else}}\\n      <div class=\\\"l-records-list-container\\\">\\n        <div\\n          class=\\\"l-records-list-loader-container\\n            {{unless\\n              @explorerColumn.recordsContext.isLoading\\n              \\'l-records-list-loader-container--hidden\\'\\n            }}\\\"\\n        >\\n          <Shared::Feedback::BetaLoader\\n            class=\\\"c-records-list__loader\\\"\\n            data-test-records-list-loader\\n          />\\n          <span class=\\\"c-records-list__loading-text\\\" data-test-records-list-loading-text>\\n            We’re loading your data\\n          </span>\\n        </div>\\n\\n        {{#unless @explorerColumn.recordsContext.isLoading}}\\n          {{#each @explorerColumn.recordsContext.records as |record|}}\\n            <Explorer::RecordsList::Item\\n              @afterDeleteRecords={{this.fetchRecords}}\\n              @explorerColumn={{@explorerColumn}}\\n              @record={{record}}\\n              data-test-records-list-item={{get\\n                record\\n                @explorerColumn.displayFieldNamesWithNamespace.firstObject\\n              }}\\n            />\\n          {{else}}\\n            {{#if @explorerColumn.recordsContext.error}}\\n              <Layout::LayoutError\\n                @error={{@explorerColumn.recordsContext.error}}\\n                @withNoBackground={{true}}\\n              />\\n            {{else}}\\n              {{#if @explorerColumn.field.referenceModel.iconOrDefault}}\\n                <Shared::DataDisplay::BetaIcon\\n                  @class=\\\"c-records-list__empty-icon\\\"\\n                  @iconName={{if\\n                    (or @explorerColumn.recordsContext.filter @explorerColumn.recordsContext.search)\\n                    \\'search\\'\\n                    @explorerColumn.field.referenceModel.iconOrDefault\\n                  }}\\n                  @size=\\\"custom\\\"\\n                  data-test-records-list-empty-icon\\n                />\\n              {{/if}}\\n              <span class=\\\"c-records-list__empty-text\\\" data-test-records-list-empty-text>\\n                {{#if\\n                  (or @explorerColumn.recordsContext.filter @explorerColumn.recordsContext.search)\\n                }}\\n                  No\\n                  {{capitalize-text @explorerColumn.field.displayName}}\\n                  match your search or filters.\\n                {{else}}\\n                  There are no\\n                  {{capitalize-text @explorerColumn.field.displayName}}\\n                  yet.\\n                {{/if}}\\n              </span>\\n            {{/if}}\\n          {{/each}}\\n        {{/unless}}\\n      </div>\\n    {{/if}}\\n  </div>\\n\\n  {{#unless @explorerColumn.field.isEmbedded}}\\n    <div class=\\\"c-records-list-pagination\\\">\\n      {{#if (get (current-user) \\'editMode\\')}}\\n        <Shared::BetaLabel\\n          class=\\\"c-records-list-pagination__input-label\\\"\\n          @label=\\\"Records\\\"\\n          @position=\\\"left\\\"\\n          data-test-explorer-records-list-pagination-editor-label\\n        >\\n          <Shared::BetaInput\\n            @class=\\\"c-records-list-pagination__input\\\"\\n            @kind=\\\"editor\\\"\\n            @max={{this.maxRecordsPerPage}}\\n            @min={{1}}\\n            @noNumberHelper={{true}}\\n            @onChange={{this.updateRecordsPerPage}}\\n            @type=\\\"number\\\"\\n            @value={{@explorerColumn.recordsPerPage}}\\n            data-test-explorer-records-list-pagination-editor-input\\n          />\\n        </Shared::BetaLabel>\\n      {{else}}\\n        {{#unless @explorerColumn.recordsContext.isLoading}}\\n          <Shared::BetaPaginator\\n            @back={{this.fetchPreviousPage}}\\n            @currentPage={{@explorerColumn.recordsContext.currentPage}}\\n            @next={{this.fetchNextPage}}\\n            @numberOfPages={{@explorerColumn.recordsContext.numberOfPages}}\\n            @isNumberOfPagesDeactivated={{not @explorerColumn.recordsContext.numberOfPages}}\\n            @isNextButtonDisabled={{not this.canNext}}\\n            @selectPage={{this.selectPage}}\\n            class=\\\"c-records-list-pagination__paginator\\\"\\n            data-test-explorer-records-list-pagination\\n          />\\n\\n          {{#if @explorerColumn.recordsContext.recordsCount}}\\n            <span class=\\\"c-records-list-pagination__records-count\\\">\\n              {{@explorerColumn.recordsContext.recordsCount}}\\n              {{word-pluralize \\'record\\' @explorerColumn.recordsContext.recordsCount}}\\n            </span>\\n          {{/if}}\\n        {{/unless}}\\n      {{/if}}\\n    </div>\\n  {{/unless}}\\n</SideMenu::Section>\\n', { moduleName: 'client/legacy/pods/components/explorer/records-list/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport ExplorerRelationshipsColumn from 'client/utils/explorer/explorer-relationships-column-class';\n\n@validateArguments\nexport default class ExplorerRelatedDataSectionComponent extends Component {\n  @service store;\n  @service errorHandler;\n\n  @argument(ExplorerRelationshipsColumn) explorerColumn;\n  @argument(Function) toggleVisibility;\n  @argument(Boolean) shouldScroll;\n  @argument(Boolean) isCreate;\n\n  get elementId() {\n    return `${guidFor(this)}-related-data`;\n  }\n\n  @computed(\n    'args.explorerColumn.referenceModel.viewCreate.rowCreatesRelatedData',\n    'args.explorerColumn.referenceModel.viewEdit.rowEditsRelatedData',\n    'args.isCreate',\n  )\n  get hasManyRows() {\n    if (this.args.isCreate) {\n      return this.args.explorerColumn.referenceModel.viewCreate.rowCreatesRelatedData;\n    }\n    return this.args.explorerColumn.referenceModel.viewEdit.rowEditsRelatedData;\n  }\n\n  get rows() {\n    return this.hasManyRows?.map((row) => row.explorerRow);\n  }\n\n  @action\n  async reorderRowsAction(rowsReordered) {\n    const targetModelName = this.isCreate ? 'row-create' : 'row-edit';\n\n    this.rows.forEach((explorerRow) => {\n      const position = rowsReordered.indexOf(explorerRow);\n      if (position > -1) {\n        explorerRow.position = position;\n        explorerRow.createExplorerConfigurationIfNecessary();\n      }\n    });\n    if (this.hasManyRows.some((row) => row.hasDirtyAttributes)) {\n      try {\n        await this.store.layoutBatchUpdate(targetModelName, this.hasManyRows);\n      } catch (reason) {\n        this.errorHandler.handleRequestFailure(reason, 'Reordering failed');\n      }\n    }\n  }\n\n  @action\n  scrollToThisColumn() {\n    const element = document.getElementById(this.elementId);\n    element.scrollIntoView({ behavior: 'smooth', block: 'end' });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<SideMenu::Section\\n  @sectionTitle=\\\"Related Data\\\"\\n  @size=\\\"small\\\"\\n  id={{this.elementId}}\\n  class=\\\"c-explorer-related-data-section__header\\\"\\n  {{did-insert (if @shouldScroll this.scrollToThisColumn (do-nothing-function))}}\\n>\\n  <div class=\\\"l-explorer-related-data-section-container\\\">\\n    <RelatedDataMenu\\n      @groupName=\\\"explorer-related-data-menu-{{@explorerColumn.referenceModel.name}}\\\"\\n      @reorderRowsAction={{this.reorderRowsAction}}\\n      @rows={{this.rows}}\\n      @toggleVisibility={{@toggleVisibility}}\\n      @onClick={{fn @explorerColumn.onClick @explorerColumn}}\\n      @selectedItem={{@explorerColumn.selectedItem}}\\n      class=\\\"c-explorer-related-data-section\\\"\\n    />\\n  </div>\\n</SideMenu::Section>\\n', { moduleName: 'client/legacy/pods/components/explorer/related-data-section/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { classNames } from '@ember-decorators/component';\n\nimport emberErrorUtil from 'client/utils/ember-error-util';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nconst { getFirstErrorDetail } = emberErrorUtil;\n\n@classNames('access-denied')\nexport default class FeedbackAccessDeniedComponent extends Component {\n  @service currentUser;\n  @service session;\n  @service serverFetch;\n  @service toastr;\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n\n  propTypes = {\n    projectId: PropTypes.string.isRequired,\n    environmentId: PropTypes.string.isRequired,\n  };\n\n  @computed('currentUser.permissions.[]')\n  get canCreateAnIPRuleRequest() {\n    return this.currentUser.can('createIPRuleRequest');\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    if (this.canCreateAnIPRuleRequest) {\n      this._requestAccess();\n    }\n  }\n\n  @action\n  requestAccess() {\n    return this._requestAccess();\n  }\n\n  @action\n  close() {\n    this.currentOrganization.transitionToProjectsIndex();\n  }\n\n  _requestAccess() {\n    return this.serverFetch\n      .fetch(`/api/project/${this.projectId}/environment/${this.environmentId}/ip-rule-request`, {\n        method: 'POST',\n      })\n      .then((response) => {\n        if (response.ok) {\n          return this.toastr.perform('success', 'Access requested.');\n        }\n        if (response.bodyUsed) {\n          return response.json().then((error) => {\n            this.toastr.perform('error', `Access request failed: ${getFirstErrorDetail(error)}`);\n          });\n        }\n        return this.toastr.perform('error', `Access request failed: ${response.statusText}`);\n      })\n      .catch((error) => {\n        this.toastr.perform('error', `Access request failed: ${getFirstErrorDetail(error)}`);\n      });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaIconButton @icon=\\\"close\\\" class=\\\"access-denied__close\\\" {{on \\'click\\' this.close}} />\\n\\n<div class=\\\"access-denied__content\\\">\\n  <div class=\\\"access-denied__logo\\\"></div>\\n  <img class=\\\"access-denied__logo\\\" src=\\\"/img/logo.svg\\\" alt=\\\"Forest Admin\\\" />\\n  <img class=\\\"access-denied__safe-img\\\" src=\\\"/img/ip-whitelist/safe.svg\\\" alt=\\\"Safe\\\" />\\n  <h1 class=\\\"access-denied__title\\\">Access to this project denied</h1>\\n  <div class=\\\"access-denied__text\\\">\\n    We have detected you are attempting to access your account from the following IP address:\\n  </div>\\n  <div class=\\\"access-denied__text access-denied__text--highlighted\\\">\\n    {{this.session.ipRejected}}\\n  </div>\\n  {{#if this.canCreateAnIPRuleRequest}}\\n    <div class=\\\"access-denied__text\\\">\\n      <p data-test-input-for=\\\"access-denied-admin-text\\\">\\n        Please check your email for instructions on allowing this IP address to access your account.\\n      </p>\\n    </div>\\n  {{else}}\\n    <div class=\\\"access-denied__text\\\">\\n      You are not allowed to connect from this IP address.\\n    </div>\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @isImportant={{true}}\\n      @size=\\\"large\\\"\\n      @text=\\\"Request access\\\"\\n      @action={{this.requestAccess}}\\n      @async={{false}}\\n      class=\\\"access-denied__button\\\"\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/feedback/access-denied/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { classNames } from '@ember-decorators/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport { MissingRequiredPropertyError, WrongPropertyValueError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-beta-bubble-button')\n@validateArguments\nexport default class FeedbackBetaBubbleButtonComponent extends Component {\n  static propTypes = {\n    type: PropTypes.oneOf(['primary', 'secondary']).isRequired,\n    action: PropTypes.func.isRequired,\n    /** The button's [material icon's name](https://fonts.google.com/icons). Either `iconName` or `image` is required. */\n    iconName: PropTypes.string,\n    /** The button's `img` tag's `src` attribute . Either `iconName` or `image` is required. */\n    image: PropTypes.string,\n    /** The button's `img` tag's `alt` attribute. */\n    imageAlt: PropTypes.string,\n  };\n\n  @computed('type')\n  get typeClass() {\n    return `c-beta-bubble-button__button--${this.type}`;\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    if (!this.type) {\n      throw new MissingRequiredPropertyError('type');\n    }\n    if (!['primary', 'secondary'].includes(this.type)) {\n      throw new WrongPropertyValueError('type', this.type);\n    }\n    if (!this.iconName && !this.image) {\n      throw new MissingRequiredPropertyError(['iconName', 'image']);\n    }\n  }\n\n  click() {\n    this.action();\n  }\n}\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Legacy/Feedback/BetaBubbleButton',\n  component: 'Feedback::BetaBubbleButton',\n  args: {\n    ...getDefaultRequiredArgs('Feedback::BetaBubbleButton'),\n    iconName: 'park',\n  },\n};\n\nexport const BetaBubbleButton = storyCreator('Feedback::BetaBubbleButton');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<button class=\\\"c-beta-bubble-button__button {{this.typeClass}}\\\" type=\\\"button\\\" data-test-beta-bubble>\\n  {{#if @iconName}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{@iconName}}\\n      class=\\\"c-beta-bubble-button__button-icon\\\"\\n    />\\n  {{else}}\\n    <img class=\\\"c-beta-bubble-button__button-image\\\" src={{@image}} alt={{@imageAlt}} />\\n  {{/if}}\\n</button>\\n\\n{{#if (has-block)}}\\n  <div class=\\\"c-beta-bubble-button__content\\\">\\n    {{yield}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/feedback/beta-bubble-button/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { argument, oneOfType, optional, shape } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n/**\n * @enum {shape}\n */\nexport const ContentTypes = {\n  text: shape({ text: String }),\n  component: shape({ componentName: String }),\n};\n\n@validateArguments\nexport default class FeedbackBetaHelpBubbleComponent extends Component {\n  @argument(optional(oneOfType(Object.values(ContentTypes)))) helpBubbleContent;\n\n  // NOTICE: Potentially used to send Help Bubble Link Clicked event\n  @argument(optional(Function)) trackBubbleEvent;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-help-bubble\\\" data-beta-help-bubble ...attributes>\\n\\n  <div class=\\\"c-help-bubble__content\\\" data-beta-help-bubble__content>\\n    {{#if @helpBubbleContent.text}}\\n      {{! Display raw text or html}}\\n      {{! template-lint-disable no-triple-curlies }}\\n      {{{@helpBubbleContent.text}}}\\n    {{else if @helpBubbleContent.componentName}}\\n      {{! Display custom component}}\\n      {{#let (component @helpBubbleContent.componentName) as |CustomHelpBubble|}}\\n        <CustomHelpBubble @trackBubbleEvent={{@trackBubbleEvent}} data-beta-help-bubble__custom />\\n      {{/let}}\\n    {{else}}\\n      {{! Display whatever you want}}\\n      {{yield}}\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/feedback/beta-help-bubble/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class FeedbackBetaHelpCenterComponent extends Component {\n  @argument(String) title;\n  @argument(optional(String)) description;\n  @argument(optional(Array)) topics;\n\n  // NOTICE: Potentially used to send Help Bubble Opened event\n  @argument(optional(Function)) trackBubbleEventOpened;\n  // NOTICE: Potentially used to send Help Bubble Link Clicked event\n  @argument(optional(Function)) trackBubbleEvent;\n\n  @tracked displayedAnswerIndex = null;\n  @tracked firstDisplay = true;\n\n  @action\n  onQuestionClick(index) {\n    this.firstDisplay = false;\n    if (this.displayedAnswerIndex === index) {\n      this.displayedAnswerIndex = null;\n    } else {\n      this.displayedAnswerIndex = index;\n      // NOTICE: Send Help Bubble Opened event\n      if (this.args.trackBubbleEventOpened) {\n        this.args.trackBubbleEventOpened(this.args.topics[index].question);\n      }\n    }\n  }\n\n  @action\n  closeAnswer() {\n    this.displayedAnswerIndex = null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-help-center\\\"\\n  data-beta-help-center\\n  {{did-update this.closeAnswer @topics}}\\n  ...attributes\\n>\\n  <header class=\\\"c-help-center__header\\\">\\n    <h3 class=\\\"c-help-center__title\\\" data-beta-help-title>{{@title}}</h3>\\n    {{#if @description}}\\n      <p class=\\\"c-help-center__description\\\" data-beta-help-description>{{@description}}</p>\\n    {{/if}}\\n  </header>\\n\\n  {{#each @topics as |topic index|}}\\n\\n    <div class=\\\"c-help-center__qa-container\\\" data-beta-help-center-container>\\n\\n      {{#let topic.question topic.answer as |question answer|}}\\n\\n        <button\\n          class=\\\"c-help-center__question\\\"\\n          {{on \\'click\\' (fn this.onQuestionClick index)}}\\n          type=\\\"button\\\"\\n          data-beta-help-center-question\\n        >\\n          {{question}}\\n        </button>\\n\\n        <div\\n          class=\\\"c-help-center__answer\\n            {{if\\n              (eq this.displayedAnswerIndex index)\\n              \\'c-help-center__answer--visible\\'\\n              \\'c-help-center__answer--hidden\\'\\n            }}\\n            {{if this.firstDisplay \\'c-help-center__answer--initial\\'}}\\\"\\n          data-beta-help-center-answer\\n        >\\n          <Feedback::BetaHelpBubble\\n            @helpBubbleContent={{answer}}\\n            @trackBubbleEvent={{@trackBubbleEvent}}\\n            class=\\\"c-help-center__answer-bubble\\\"\\n          />\\n        </div>\\n      {{/let}}\\n\\n    </div>\\n\\n  {{/each}}\\n\\n</div>\\n', { moduleName: 'client/legacy/pods/components/feedback/beta-help-center/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { argument, oneOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class FeedbackBetaStatusLabelComponent extends Component {\n  @argument(oneOf('loading', 'error', 'warning', 'success', 'info')) type;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<span\\n  ...attributes\\n  class=\\\"c-beta-status-label c-beta-status-label--{{@type}}\\\"\\n  data-test-status-label={{@type}}\\n>\\n  {{#if (eq @type \\'loading\\')}}\\n    <Shared::Feedback::BetaLoader class=\\\"c-beta-status-label__loader\\\" @type=\\\"info\\\" />\\n  {{else if (eq @type \\'success\\')}}\\n    <i class=\\\"material-icons c-beta-status-label__icon\\\">\\n      check_circle\\n    </i>\\n  {{else if (eq @type \\'error\\')}}\\n    <i class=\\\"material-icons c-beta-status-label__icon\\\">\\n      error\\n    </i>\\n  {{else if (eq @type \\'warning\\')}}\\n    <i class=\\\"material-icons c-beta-status-label__icon\\\">\\n      report_problem\\n    </i>\\n  {{else if (eq @type \\'info\\')}}\\n    <i class=\\\"material-icons c-beta-status-label__icon\\\">\\n      info\\n    </i>\\n  {{/if}}\\n  {{yield}}\\n</span>\\n', { moduleName: 'client/legacy/pods/components/feedback/beta-status-label/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class FeedbackHelperContainerComponent extends Component {\n  @argument(String) bubbleButtonText;\n  @argument(optional(Boolean)) isFullPage;\n\n  @tracked displayingHelper = false;\n\n  @action\n  showHelper() {\n    this.displayingHelper = true;\n  }\n\n  @action\n  closeHelper() {\n    this.displayingHelper = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-helper-container {{if @isFullPage \\'c-helper-container--full-page\\'}}\\\" ...attributes>\\n  {{yield}}\\n</div>\\n\\n{{#if this.displayingHelper}}\\n  <Shared::BetaModal @onClose={{this.closeHelper}} @blockClass=\\\"c-helper-popup\\\">\\n    <div class=\\\"c-helper-popup__container\\\" ...attributes>\\n      {{yield}}\\n    </div>\\n  </Shared::BetaModal>\\n{{/if}}\\n\\n<Feedback::BetaBubbleButton\\n  @type=\\\"secondary\\\"\\n  @iconName=\\\"help_outline\\\"\\n  @action={{this.showHelper}}\\n  @class=\\\"c-helper-container-button\\\"\\n  data-test-help-button\\n>\\n  {{@bubbleButtonText}}\\n</Feedback::BetaBubbleButton>\\n', { moduleName: 'client/legacy/pods/components/feedback/helper-container/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport Environment from 'client/data/models/environment';\nimport Team from 'client/data/models/team';\nimport User from 'client/data/models/user';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class FeedbackLimitationsPopupUpgradeComponent extends Component {\n  @service router;\n\n  static propTypes = {\n    titleText: PropTypes.string.isRequired,\n    bodyText: PropTypes.string.isRequired,\n    isUserAdmin: PropTypes.bool.isRequired,\n    administrators: PropTypes.arrayOf(PropTypes.instanceOf(User)).isRequired,\n    displayEnvironmentPicker: PropTypes.bool.isRequired,\n    displayTeamPicker: PropTypes.bool.isRequired,\n    currentEnvironment: PropTypes.instanceOf(Environment).isRequired,\n    currentTeam: PropTypes.instanceOf(Team).isRequired,\n    switchEnvironment: PropTypes.func.isRequired,\n    switchTeam: PropTypes.func.isRequired,\n    accessibleEnvironments: PropTypes.arrayOf(PropTypes.instanceOf(Environment)),\n    accessibleTeams: PropTypes.arrayOf(PropTypes.instanceOf(Team)),\n  };\n\n  @action\n  goToBillingUpgradePage() {\n    this.router.transitionTo('project.project-settings.billing.manage-your-plan');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Modal::ModalWindow class=\\\"c-limitation-popup__container\\\" @hasCustomSize={{true}}>\\n  <h1 class=\\\"c-limitation-popup__title\\\">\\n    {{@titleText}}\\n  </h1>\\n  <div class=\\\"c-limitation-popup__text\\\">\\n    <p>\\n      {{@bodyText}}\\n    </p>\\n    {{#if @isUserAdmin}}\\n      <p>\\n        You can find more information about our premium features\\n        <Shared::Navigation::BetaLinkTo\\n          @type=\\\"primary\\\"\\n          @target=\\\"_blank\\\"\\n          @href=\\\"https://www.forestadmin.com/premium\\\"\\n          @underline={{false}}\\n          @text=\\\"here.\\\"\\n          @size=\\\"normal\\\"\\n          @noPadding={{true}}\\n          class=\\\"c-limitation-popup__link\\\"\\n          data-test-popup-upgrade-premium-link\\n        />\\n      </p>\\n    {{/if}}\\n  </div>\\n  <div class=\\\"c-limitation-popup__footer\\\">\\n    {{#if @isUserAdmin}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @text=\\\"Upgrade\\\"\\n        @action={{this.goToBillingUpgradePage}}\\n        @async={{false}}\\n        class=\\\"c-limitation-popup__button\\\"\\n      />\\n    {{else}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        class=\\\"c-limitation-popup__info\\\"\\n        @state=\\\"info\\\"\\n        @canHide={{false}}\\n      >\\n        You can reach:\\n        <ul class=\\\"c-limitation-popup__admin-list\\\">\\n          {{#each @administrators as |administrator|}}\\n            <li class=\\\"c-limitation-popup__admin-list-item\\\">\\n              {{administrator.firstName}}\\n              {{administrator.lastName}}\\n              -\\n              <Shared::Navigation::BetaLinkTo\\n                @type=\\\"info\\\"\\n                @text=\\\"{{administrator.email}} \\\"\\n                @href=\\\"mailto:{{administrator.email}}\\\"\\n                @iconName=\\\"open_in_new\\\"\\n                @isIconAfterText={{true}}\\n                @size=\\\"small\\\"\\n                @iconClass=\\\"c-limitation-popup__link-icon\\\"\\n                @noPadding={{true}}\\n                @underline={{false}}\\n              />\\n            </li>\\n          {{/each}}\\n        </ul>\\n      </Shared::Feedback::Notification::NotificationInApp>\\n      <LinkToProjects\\n        @type=\\\"primary\\\"\\n        @iconName=\\\"arrow_back\\\"\\n        @text=\\\"Back to projects list\\\"\\n        @class=\\\"c-limitation-popup__back-to-projects\\\"\\n      />\\n    {{/if}}\\n  </div>\\n  {{#if @displayEnvironmentPicker}}\\n    <div class=\\\"c-limitation-popup__environments\\\">\\n      <Shared::BetaLabel\\n        @label=\\\"Switch to another environment\\\"\\n        @position=\\\"top\\\"\\n        class=\\\"c-limitation-popup__environments-label\\\"\\n      >\\n        <Shared::BetaSelect\\n          @options={{@accessibleEnvironments}}\\n          @namePath=\\\"name\\\"\\n          @onChange={{@switchEnvironment}}\\n          @value={{@currentEnvironment.name}}\\n          @hideCurrentValue={{true}}\\n          data-test-popup-upgrade-environment-picker\\n        />\\n      </Shared::BetaLabel>\\n    </div>\\n  {{else if @displayTeamPicker}}\\n    <div class=\\\"c-limitation-popup__environments\\\">\\n      <Shared::BetaLabel\\n        @label=\\\"Switch to another team\\\"\\n        @position=\\\"top\\\"\\n        class=\\\"c-limitation-popup__environments-label\\\"\\n      >\\n        <Shared::BetaSelect\\n          @options={{@accessibleTeams}}\\n          @namePath=\\\"name\\\"\\n          @onChange={{@switchTeam}}\\n          @value={{@currentTeam.name}}\\n          @hideCurrentValue={{true}}\\n          data-test-popup-upgrade-team-picker\\n        />\\n      </Shared::BetaLabel>\\n    </div>\\n  {{/if}}\\n</Modal::ModalWindow>\\n', { moduleName: 'client/legacy/pods/components/feedback/limitations/popup-upgrade/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { alias, and, reads } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport config from 'client/config/environment';\nimport Rendering from 'client/data/models/rendering';\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class FeedbackNotificationNotificationBarComponent extends Component {\n  @service currentUser;\n  /** @type {import('client/legacy/services/liana-session').default} */\n  @service lianaSession;\n  @service router;\n  @service lianaFeatures;\n\n  @argument(Rendering) rendering;\n  @argument(optional(Boolean)) isLiveDemoRendering;\n  @argument(optional(Boolean)) isLiveDemoUser;\n\n  @tracked showDeployChangesModal = false;\n\n  @reads('args.rendering.environment') environment;\n  @alias('environment.isProduction') isEnvironmentProduction;\n  @alias('environment.isRemote') isEnvironmentRemote;\n  @alias('environment.isDevelopment') isEnvironmentDevelopment;\n  @alias('lianaSession.currentProject.productionEnvironment') productionEnvironment;\n  @alias('lianaSession.currentProject.isPlanLimitationWarning') isProjectLimitationReached;\n  @alias('lianaSession.currentProject.isFullHostedProject') isFullHostedProject;\n  @alias('environment.currentBranch.originEnvironment.isProduction') isBranchOriginReference;\n  @and('isEnvironmentProduction', 'isProjectLimitationReached') isLimitationStatusDisplayed;\n  @alias('environment.currentBranch') currentBranch;\n\n  get liveDemoGetStartedUrl() {\n    return `https://${config.APP.defaultDomain}${this.router.urlFor('authentication.signup')}`;\n  }\n\n  @computed('isEnvironmentProduction', 'router.currentRouteName')\n  get isEnvironmentBannerDisplayed() {\n    return (\n      this.router.currentRouteName.startsWith('project.rendering') && !this.isEnvironmentProduction\n    );\n  }\n\n  @computed(\n    'currentUser.permissions.[]',\n    'environment.layoutChangesCount',\n    'isEnvironmentProduction',\n    'isFullHostedProject',\n  )\n  get isDeployLayoutChangesDisplayed() {\n    return (\n      !this.isFullHostedProject\n      && !this.isEnvironmentProduction\n      && this.environment.layoutChangesCount\n      && this.currentUser.can('pushBranch')\n    );\n  }\n\n  @computed(\n    'args.isLiveDemoRendering',\n    'isEnvironmentBannerDisplayed',\n    'isLimitationStatusDisplayed',\n  )\n  get isNotificationBarEnabled() {\n    return (\n      this.args.isLiveDemoRendering\n      || this.isLimitationStatusDisplayed\n      || this.isEnvironmentBannerDisplayed\n    );\n  }\n\n  @computed('environment.lianaName', 'environment.lianaVersion')\n  get hasReachedEndOfLife() {\n    return this.lianaFeatures.hasReachedEndOfLife(this.environment);\n  }\n\n  @computed('environment.lianaName', 'environment.lianaVersion')\n  get endOfLifeMessage() {\n    return this.lianaFeatures.getEndOfLifeMessage(this.environment);\n  }\n\n  @computed('environment.lianaName')\n  get linkDocumentationAgentUpgrade() {\n    return this.lianaFeatures.getLinkDocumentationAgentUpgrade(this.environment.lianaName);\n  }\n\n  @computed('lianaSession.supportsOpenIdConnect', 'environment.apiEndpoint')\n  get isDeprecatedForChrome92() {\n    return (\n      this.environment.apiEndpoint.startsWith('http://') && !this.lianaSession.supportsOpenIdConnect\n    );\n  }\n\n  @computed('isDeprecatedForChrome92', 'hasReachedEndOfLife')\n  get isDeprecated() {\n    return this.isDeprecatedForChrome92 || this.hasReachedEndOfLife;\n  }\n\n  @computed('isLimitationStatusDisplayed', 'args.isLiveDemoRendering', 'environment.stage')\n  get modifier() {\n    if (this.isLimitationStatusDisplayed) {\n      return 'danger';\n    }\n    if (this.args.isLiveDemoRendering) {\n      return 'info';\n    }\n    return this.environment.stage;\n  }\n\n  @computed('isEnvironmentDevelopment', 'isFullHostedProject')\n  get hideDWO() {\n    return Boolean(this.isEnvironmentDevelopment && this.isFullHostedProject);\n  }\n\n  @action\n  openDeployChangesToProductionModal() {\n    this.showDeployChangesModal = true;\n  }\n\n  @action\n  closeDeployChangesToProductionModal() {\n    this.showDeployChangesModal = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isDeprecated}}\\n  <div\\n    class=\\\"c-notification c-notification--danger js-notification-bar\\\"\\n    data-test-notification-bar-deprecated\\n  >\\n    {{#if this.isDeprecatedForChrome92}}\\n      <span class=\\\"c-notification__message\\\" data-test-notification-bar-deprecated-message>\\n        The agent version you are running IS NO LONGER supported. Please upgrade.\\n        <a\\n          href=\\\"https://community.forestadmin.com/t/may-2021-agent-upgrade-to-latest-major-version-required/2435\\\"\\n          target=\\\"_blank\\\"\\n          class=\\\"c-notification__link c-notification__link--warning\\\"\\n          rel=\\\"noopener noreferrer\\\"\\n          data-test-notification-bar-learn-more\\n        >\\n          Learn more\\n        </a>\\n      </span>\\n    {{else}}\\n      <span class=\\\"c-notification__message\\\" data-test-notification-bar-deprecated-message>\\n        {{this.endOfLifeMessage}}\\n        {{#if this.currentUser.canEditProject}}\\n          <a\\n            href={{this.linkDocumentationAgentUpgrade}}\\n            target=\\\"_blank\\\"\\n            class=\\\"c-notification__link c-notification__link--danger\\\"\\n            rel=\\\"noopener noreferrer\\\"\\n            data-test-notification-bar-learn-more\\n          >\\n            Learn more\\n          </a>\\n        {{else}}\\n          Please contact your project\\'s admin.\\n        {{/if}}\\n      </span>\\n    {{/if}}\\n  </div>\\n{{/if}}\\n\\n{{#if this.isNotificationBarEnabled}}\\n  <div\\n    class=\\\"c-notification c-notification--{{this.modifier}} js-notification-bar\\\"\\n    data-test-notification-bar\\n  >\\n    {{#if @isLiveDemoRendering}}\\n      <div class=\\\"c-notification__message\\\" data-test-notification-bar-message>\\n        You are currently viewing a Forest Admin live demo application.\\n        {{#if @isLiveDemoUser}}\\n          <span class=\\\"c-notification__message-text\\\">\\n            To install Forest Admin on your own application:\\n          </span>\\n          <a\\n            href={{this.liveDemoGetStartedUrl}}\\n            class=\\\"c-notification__get-started\\\"\\n            data-test-notification-bar-get-started\\n          >\\n            Get started\\n          </a>\\n        {{/if}}\\n      </div>\\n    {{else if this.isLimitationStatusDisplayed}}\\n      <span class=\\\"c-notification__message\\\" data-test-notification-bar-message>\\n        You\\'ve reached your current plan\\'s limitations. Please\\n        {{#if this.currentUser.canEditProject}}\\n          <LinkTo\\n            @route=\\\"project.project-settings.billing.upgrade\\\"\\n            class=\\\"c-notification__link c-notification__link--{{this.modifier}}\\\"\\n          >\\n            upgrade here\\n          </LinkTo>\\n        {{else}}\\n          contact your project\\'s admin\\n        {{/if}}\\n        to keep using Forest Admin.\\n      </span>\\n    {{else if this.isEnvironmentBannerDisplayed}}\\n      {{#if this.productionEnvironment.isActive}}\\n        <div\\n          class=\\\"c-notification__message c-notification__message--with-right-button\\\"\\n          data-test-notification-bar-message\\n        >\\n          <i class=\\\"c-notification__message-icon\\\">\\n            error\\n          </i>\\n          <span class=\\\"c-notification__message-text\\\">\\n            Currently on\\n          </span>\\n          <span class=\\\"c-notification__message-environment\\\">\\n            {{this.environment.name}}\\n          </span>\\n          {{#unless this.hideDWO}}\\n            {{#if this.currentBranch}}\\n              {{#if this.isEnvironmentDevelopment}}\\n                <span class=\\\"c-notification__message-environment\\\">\\n                  ({{this.currentBranch.name}})\\n                </span>\\n              {{/if}}\\n              <span class=\\\"c-notification__message-text\\\">\\n                with\\n              </span>\\n              <span class=\\\"c-notification__message-changes\\\">\\n                <i class=\\\"c-notification__message-icon\\\">\\n                  change_history\\n                </i>\\n                {{or this.environment.layoutChangesCount 0}}\\n                {{word-pluralize \\'change\\' this.environment.layoutChangesCount}}\\n              </span>\\n              <span class=\\\"c-notification__message-text\\\">\\n                and\\n              </span>\\n              <span class=\\\"c-notification__message-changes\\\">\\n                <i class=\\\"c-notification__message-icon\\\">\\n                  track_changes\\n                </i>\\n                {{or this.environment.pushedBranchesCount 0}}\\n                {{word-pluralize \\'branch\\' this.environment.pushedBranchesCount}}\\n              </span>\\n              <span class=\\\"c-notification__message-text\\\">\\n                pushed.\\n              </span>\\n            {{else}}\\n              <span class=\\\"c-notification__message-text\\\">\\n                (no current branch).\\n              </span>\\n            {{/if}}\\n          {{/unless}}\\n        </div>\\n        <div class=\\\"c-notification__after-message\\\">\\n          {{#if this.isDeployLayoutChangesDisplayed}}\\n            <span class=\\\"c-notification__deploy-to-production\\\">\\n              <Shared::Button::BetaButton\\n                @type=\\\"link-inherit\\\"\\n                @text=\\\"{{if this.isBranchOriginReference \\'Deploy\\' \\'Push\\'}} to {{if\\n                  this.environment.currentBranch.originEnvironment\\n                  this.environment.currentBranch.originEnvironment.name\\n                  \\'origin\\'\\n                }}\\\"\\n                @action={{this.openDeployChangesToProductionModal}}\\n                data-test-notification-bar-button\\n              />\\n            </span>\\n          {{/if}}\\n        </div>\\n      {{else}}\\n        <div class=\\\"c-notification__message\\\" data-test-notification-bar-message>\\n          <span>Currently running Forest Admin on {{this.environment.name}} environment.</span>\\n          {{#if this.currentUser.canEditProject}}\\n            <span class=\\\"c-notification__deploy-to-production\\\">\\n              <Shared::Button::BetaButton\\n                @type=\\\"link-inherit\\\"\\n                @text=\\\"Deploy to production\\\"\\n                @action={{@deployToProduction}}\\n                @class=\\\"c-notification__link\\\"\\n                data-test-notification-bar-button\\n              />\\n            </span>\\n          {{/if}}\\n        </div>\\n      {{/if}}\\n    {{/if}}\\n  </div>\\n{{/if}}\\n\\n{{#if this.showDeployChangesModal}}\\n  <Modal::ModalDeployLayoutChanges\\n    @environmentId={{@rendering.environment.id}}\\n    @closeAction={{this.closeDeployChangesToProductionModal}}\\n    @originEnvironmentName={{@rendering.environment.currentBranch.originEnvironment.name}}\\n    @isOriginEnvironmentReference={{@rendering.environment.currentBranch.originEnvironment.isProduction}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/feedback/notification/notification-bar/template.hbs' });\n","import type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type NotificationFeatureState from 'client/features/notification/state';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class FeedbackToastrComponent extends Component {\n  @service('feature/notification/state') declare notificationState: NotificationFeatureState;\n  @service('feature/notification')\n  declare notificationBusinessService: NotificationFeatureService;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.notificationState.toastrItemsVisible}}\\n  <div class=\\\"c-toastr-container\\\" ...attributes>\\n    {{#each this.notificationState.toastrItemsVisible key=\\'id\\' as |toast|}}\\n      <Feedback::Toastr::ToastrItem\\n        data-toaster\\n        @id={{toast.id}}\\n        @type={{toast.type}}\\n        @message={{toast.message}}\\n        @isHTML={{toast.isHTML}}\\n        @duration={{toast.duration}}\\n        @removeToast={{this.notificationBusinessService.removeToastr}}\\n        @onCloseCallback={{toast.onCloseCallback}}\\n        @onAutoClosed={{toast.onAutoClosed}}\\n        @componentName={{toast.componentName}}\\n        @componentOptions={{toast.componentOptions}}\\n        @groupCount={{toast.groupCount}}\\n      />\\n    {{/each}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/feedback/toastr/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\n@classNames('c-toastr-container')\nexport default class FeedbackToastrToastrContainerComponent extends Component {}\n","import { alias } from '@ember/object/computed';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class FeedbackToastrToastrItemPerformanceWarnerComponent extends Component {\n  static propTypes = {\n    message: PropTypes.oneOfType([\n      PropTypes.string,\n      PropTypes.shape({ toHTML: PropTypes.func.isRequired }).isRequired,\n    ]),\n    options: PropTypes.shape({\n      label: PropTypes.string,\n      link: PropTypes.string,\n      onLinkClick: PropTypes.func,\n      iconEnd: PropTypes.string,\n      punctuationEnd: PropTypes.string,\n    }),\n  };\n\n  @alias('args.options.label') label;\n  @alias('args.options.link') link;\n  @alias('args.options.onLinkClick') onLinkClick;\n  @alias('args.options.iconEnd') iconEnd;\n  @alias('args.options.punctuationEnd') punctuationEnd;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-toastr-item-performance-warner\\\">\\n  {{! Display raw text or html}}\\n  {{! template-lint-disable no-triple-curlies }}\\n  {{{@message}}}\\n  {{#if this.label}}\\n    <Shared::Navigation::BetaLinkTo\\n      @type=\\\"inherit\\\"\\n      @displayAsButton={{false}}\\n      @text={{this.label}}\\n      @href={{this.link}}\\n      @onClick={{fn (optional this.onLinkClick)}}\\n      @target=\\\"_blank\\\"\\n      @textClass=\\\"c-toastr-item-performance-warner__text--bold\\\"\\n      @preventDefault={{not (bool this.link)}}\\n      @punctuation={{this.punctuationEnd}}\\n      data-test-link\\n    />\\n  {{/if}}\\n  {{#if this.iconEnd}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{this.iconEnd}}\\n      class=\\\"c-toastr-item-performance-warner__icon\\\"\\n      data-test-icon\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/feedback/toastr/toastr-item-performance-warner/template.hbs' });\n","/* eslint-disable ember/no-component-lifecycle-hooks */\nimport Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { equal } from '@ember/object/computed';\nimport { cancel } from '@ember/runloop';\nimport { buildWaiter } from '@ember/test-waiters';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nconst TOAST_TYPES = ['error', 'success', 'warning', 'info', 'loading'];\nconst waiter = buildWaiter('sliding-out-animation-waiter');\n\n@validateArguments\n// eslint-disable-next-line ember/require-tagless-components\nexport default class FeedbackToastrToastrItemComponent extends Component {\n  static propTypes = {\n    id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,\n    type: PropTypes.oneOf(TOAST_TYPES).isRequired,\n    message: PropTypes.oneOfType([\n      PropTypes.string,\n      PropTypes.shape({ toHTML: PropTypes.func.isRequired }),\n    ]).isRequired,\n    isHTML: PropTypes.bool,\n    duration: PropTypes.number.isRequired,\n    removeToast: PropTypes.func.isRequired,\n    onCloseCallback: PropTypes.func,\n    onAutoClosed: PropTypes.func,\n    componentName: PropTypes.string,\n    componentOptions: PropTypes.object,\n    groupCount: PropTypes.number,\n  };\n\n  autoClosingTask = null;\n  isClosing = false;\n  lastFrameDate = null;\n  remainingDuration = null;\n  isTimerPaused = false;\n  _waiterToken = null;\n  @equal('type', 'loading') isLoadingToast;\n\n  @computed('duration', 'remainingDuration')\n  get loadingBarWidth() {\n    if (this.duration === 0) return '0';\n    return `${(100 * this.remainingDuration) / this.duration}%`;\n  }\n\n  @computed('groupCount')\n  get isGroup() {\n    return this.groupCount > 1;\n  }\n\n  @computed('type')\n  get typeClassName() {\n    return `c-toastr-item--${this.type}`;\n  }\n\n  @computed('type')\n  get iconName() {\n    switch (this.type) {\n      case 'error':\n        return 'error';\n      case 'success':\n        return 'check_circle';\n      case 'warning':\n        return 'report_problem';\n      case 'info':\n        return 'info';\n      default:\n        return '';\n    }\n  }\n\n  didInsertElement(...args) {\n    super.didInsertElement(...args);\n    this.awaitAndClose();\n  }\n\n  didUpdateAttrs() {\n    super.didUpdateAttrs();\n    this.awaitAndClose();\n  }\n\n  willDestroyElement() {\n    super.willDestroyElement();\n    this.cleanAutoClosingTask();\n    this.element.removeEventListener('animationend', this._handleAnimationEnd);\n  }\n\n  awaitAndClose() {\n    if (this.autoClosingTask) {\n      this.cleanAutoClosingTask();\n    }\n\n    // 1ms (2ms for errors) used in tests\n    if (this.duration > 2) {\n      this.set('remainingDuration', this.duration);\n      // NOTICE: _waiterToken is made only for tests purpose: a toast will be really settled\n      //  when its sliding out transition will be done.\n      this._waiterToken = waiter.beginAsync();\n      requestAnimationFrame(this.updateRemainingDuration.bind(this));\n    }\n  }\n\n  updateRemainingDuration(time) {\n    if (this.lastFrameDate === null) {\n      this.lastFrameDate = time;\n    }\n\n    const timeSinceLastFrame = time - this.lastFrameDate;\n    if (!this.isTimerPaused) {\n      this.set('remainingDuration', this.remainingDuration - timeSinceLastFrame);\n    }\n    this.lastFrameDate = time;\n\n    if (this.remainingDuration > 0) {\n      requestAnimationFrame(this.updateRemainingDuration.bind(this));\n      return;\n    }\n\n    if (this.element) {\n      this.element.addEventListener('animationend', this._handleAnimationEnd);\n\n      if (this.onAutoClosed) {\n        this.onAutoClosed(this.id);\n      }\n    }\n    this.set('isClosing', true);\n  }\n\n  @action\n  _handleAnimationEnd() {\n    this.removeToast(this.id);\n    waiter.endAsync(this._waiterToken);\n  }\n\n  cleanAutoClosingTask() {\n    this.element.removeEventListener('animationend', this.animationendListener);\n    cancel(this.autoClosingTask);\n    this.autoClosingTask = null;\n    this.set('isClosing', false);\n  }\n\n  @action\n  close(event) {\n    event.stopPropagation();\n    this.removeToast(this.id);\n\n    if (this.onCloseCallback) {\n      this.onCloseCallback(this.id);\n    }\n  }\n\n  @action\n  pauseTimer() {\n    this.isTimerPaused = true;\n  }\n\n  @action\n  unpauseTimer() {\n    this.isTimerPaused = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{concat this.typeClassName \\' c-toastr-item\\' (if this.isClosing \\' c-toastr-item--closing\\')}}\\n  {{on \\'mouseenter\\' this.pauseTimer}}\\n  {{on \\'mouseleave\\' this.unpauseTimer}}\\n>\\n  {{#if this.isLoadingToast}}\\n    <Shared::Feedback::BetaLoader class=\\\"c-toastr-item__loader\\\" @type=\\\"secondary\\\" />\\n  {{else}}\\n    <Shared::DataDisplay::BetaIcon @iconName={{this.iconName}} class=\\\"c-toastr-item__type-icon\\\" />\\n  {{/if}}\\n  <div class=\\\"c-toastr-item__text-and-number\\\">\\n    <div class=\\\"c-toastr-item__text\\\">\\n      {{#if @componentName}}\\n        {{component @componentName message=@message options=@componentOptions}}\\n      {{else if @isHTML}}\\n        {{! Display raw text or html}}\\n        {{! template-lint-disable no-triple-curlies }}\\n        {{{@message}}}\\n      {{else}}\\n        {{@message}}\\n      {{/if}}\\n    </div>\\n    {{#if this.isGroup}}\\n      <div class=\\\"c-toastr-item__number-badge\\\">\\n        <Shared::DataDisplay::NumberBadge @count={{@groupCount}} />\\n      </div>\\n    {{/if}}\\n  </div>\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName=\\\"close\\\"\\n    class=\\\"c-toastr-item__close-icon\\\"\\n    role=\\\"button\\\"\\n    {{on \\'click\\' this.close}}\\n  />\\n  <div\\n    class=\\\"c-toastr-item__loading-bar\\\"\\n    style={{html-safe (concat \\'width: \\' this.loadingBarWidth \\';\\')}}\\n  />\\n\\n</div>\\n', { moduleName: 'client/legacy/pods/components/feedback/toastr/toastr-item/template.hbs' });\n","import type { WidgetFileSizeEnum } from 'client/data/models/widget-configuration-file-viewer';\n\nimport { isNone } from '@ember/utils';\nimport { tracked } from '@glimmer/tracking';\n\nimport FileTypeUtils from 'client/utils/file-type';\n\nexport default class FileDataObject {\n  @tracked canLoadImage = true;\n  @tracked _isLoading: boolean;\n  @tracked url: string;\n  @tracked label: string;\n  @tracked blobUrl: string;\n  @tracked size: WidgetFileSizeEnum;\n\n  constructor({\n    url,\n    label,\n    blobUrl,\n    size,\n  }: {\n    url: string;\n    label: string;\n    blobUrl: string;\n    size: WidgetFileSizeEnum;\n  }) {\n    this.url = url;\n    this.label = label;\n    this.blobUrl = blobUrl;\n    this.size = size;\n  }\n\n  get labelFormatted() {\n    if (isNone(this.label)) {\n      return null;\n    }\n\n    if (FileTypeUtils.isBase64Prefixed(this.label)) {\n      return FileTypeUtils.getNameFromBase64(this.label) ?? '[base64 content]';\n    }\n\n    return this.label;\n  }\n\n  get isBase64() {\n    return this.url ? FileTypeUtils.isBase64String(this.url) : false;\n  }\n\n  get isLargeBase64() {\n    return (\n      this.isBase64\n      && FileTypeUtils.isFileTooBigForPreview(FileTypeUtils.getSizeFromBase64(this.url || ''))\n    );\n  }\n\n  get isBase64NotPrefixed() {\n    return this.isBase64 && !FileTypeUtils.isBase64Prefixed(this.url);\n  }\n\n  get isBase64Prefixed() {\n    return this.url ? FileTypeUtils.isBase64Prefixed(this.url) : false;\n  }\n\n  get isPdfOrInvalidPicture() {\n    return this.isPdf || !this.canLoadImage;\n  }\n\n  get isLoading() {\n    if (this._isLoading !== undefined) {\n      return this._isLoading;\n    }\n    return !this.isPdf;\n  }\n\n  set isLoading(value) {\n    this._isLoading = value;\n  }\n\n  get isValidData() {\n    return this.url\n      ? FileTypeUtils.isValidUrl(this.url) || FileTypeUtils.isValidBase64(this.url)\n      : null;\n  }\n\n  get isImage() {\n    return this.url ? FileTypeUtils.isImageOrUrlForImage(this.url) : false;\n  }\n\n  get isPdf() {\n    return this.url ? FileTypeUtils.isPdfOrUrlForPdf(this.url) : false;\n  }\n\n  get isSafe() {\n    if (!this.url) return false;\n    if (FileTypeUtils.isUrlAbsolute(this.url)) return true;\n    if (FileTypeUtils.isSafeBase64(this.url)) return true;\n    const name = FileTypeUtils.getNameFromBase64(this.url);\n    return name ? FileTypeUtils.isSafeByExtension(this.url, name) : false;\n  }\n\n  get canPreview() {\n    if (!this.url) return false;\n    if (\n      FileTypeUtils.isUrlAbsolute(this.url)\n      && (FileTypeUtils.isUrlForImage(this.url) || FileTypeUtils.isUrlForPdf(this.url))\n    ) {\n      return true;\n    }\n    if (FileTypeUtils.isSafeBase64(this.url)) return true;\n    const name = FileTypeUtils.getNameFromBase64(this.url);\n    return name ? FileTypeUtils.isSafeByExtension(this.url, name) : false;\n  }\n\n  get isUndetermined() {\n    return !this.isImage && !this.isPdf;\n  }\n\n  get hasKnownImageMimeType() {\n    return this.url ? FileTypeUtils.isCorrectMimeType(this.url, 'image/') : false;\n  }\n\n  get shouldTryAsImage() {\n    return (\n      this.isUndetermined && this.canLoadImage && !this.canPreview && !this.hasKnownImageMimeType\n    );\n  }\n\n  get fileName() {\n    return FileTypeUtils.getNameFromBase64(this.url) || 'file';\n  }\n\n  get base64Type() {\n    if (!this.url || !FileTypeUtils.isBase64Prefixed(this.url)) {\n      return undefined;\n    }\n\n    let mimeType = FileTypeUtils.getMimeTypeFromBase64(this.url);\n    if (mimeType === 'application/octet-stream') {\n      const name = FileTypeUtils.getNameFromBase64(this.url);\n      if (name) {\n        mimeType = FileTypeUtils.getMimeTypeFromExtension(name) || mimeType;\n      }\n    }\n    return FileTypeUtils.getPreviewMimeType(mimeType);\n  }\n\n  get isTextPreviewable() {\n    const type = this.base64Type;\n    return type === 'text/plain' || type === 'text/csv' || type === 'application/json';\n  }\n\n  get textContent() {\n    if (!this.url || !FileTypeUtils.isBase64Prefixed(this.url)) {\n      return '';\n    }\n\n    try {\n      const base64 = this.url.substring(this.url.search(/base64,/i) + 7);\n      return decodeURIComponent(escape(atob(base64)));\n    } catch {\n      return '';\n    }\n  }\n}\n","import { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { run, scheduleOnce } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { isNone } from '@ember/utils';\nimport Component from '@glimmer/component';\n\nimport { argument, arrayOf, oneOf, optional, shape } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class FormAceEditorComponent extends Component {\n  @service('shared/state/user-preference') userPreferenceState;\n\n  @argument(oneOf('javascript', 'sql', 'handlebars', 'css')) mode;\n  @argument(Function) onUpdate;\n\n  @argument(optional(oneOf('xcode', 'dracula'))) theme;\n  @argument(optional(String)) code;\n  @argument(optional(Boolean)) showInvisibles;\n  @argument(optional(Boolean)) useSoftTabs;\n  @argument(optional(Boolean)) useWorker;\n  @argument(optional(Number)) lines;\n  @argument(optional(Number)) minLines;\n  @argument(optional(Number)) maxLines;\n  @argument(optional(Function)) suggestCompletions;\n  @argument(optional(Function)) enableSnippets;\n  @argument(optional(Function)) enableLiveAutocompletion;\n  @argument(optional(Function)) enableBasicAutocompletion;\n  @argument(optional(Function)) onReady;\n  @argument(\n    optional(\n      arrayOf(\n        shape({\n          type: String,\n          row: Number,\n          text: optional(String),\n        }),\n      ),\n    ),\n  )\n  annotations;\n\n  _silenceUpdates = false;\n\n  willDestroy(...args) {\n    super.willDestroy(...args);\n\n    this.editor.destroy();\n    this.editor.container.remove();\n  }\n\n  static _getTheme(themeName) {\n    return `ace/theme/${themeName}`;\n  }\n\n  static _getMode(modeName) {\n    return `ace/mode/${modeName}`;\n  }\n\n  get fullMode() {\n    return FormAceEditorComponent._getMode(this.args.mode);\n  }\n\n  get fullTheme() {\n    if (this.args.theme) {\n      return FormAceEditorComponent._getTheme(this.args.theme);\n    }\n\n    const theme = this.userPreferenceState.isDarkTheme ? 'dracula' : 'xcode';\n    return FormAceEditorComponent._getTheme(theme);\n  }\n\n  get aceEditorId() {\n    return `ace-editor-${guidFor(this)}`;\n  }\n\n  static getOrDefault(property, defaultValue) {\n    return isNone(property) ? defaultValue : property;\n  }\n\n  _withUpdatesSilenced(callback) {\n    const previous = this._silenceUpdates;\n    try {\n      this._silenceUpdates = true;\n      callback();\n    } finally {\n      this._silenceUpdates = previous;\n    }\n  }\n\n  _buildCompleters() {\n    if (this.args.suggestCompletions) {\n      return [\n        {\n          getCompletions: (editor, session, position, prefix, callback) => {\n            callback(null, this.args.suggestCompletions(editor, session, position, prefix));\n          },\n        },\n        ...this.editor.completers,\n      ];\n    }\n    return this.editor.completers || [];\n  }\n\n  _initEditorSetValue() {\n    const originalSetValue = this.editor.setValue;\n    this.editor.setValue = (...args) => {\n      const update = this.args.onUpdate;\n\n      // Ace implements document.setValue by first removing and then inserting,\n      // so silence regular updates here, and instead call update directly\n      this._withUpdatesSilenced(() => {\n        originalSetValue.call(this.editor, ...args);\n      });\n\n      if (update && !this._silenceUpdates) {\n        run(() => update(this.editor.getSession().getValue()));\n      }\n    };\n  }\n\n  _initSessionOnChange(session) {\n    session.on('change', () => {\n      if (this.args.onUpdate && !this._silenceUpdates) {\n        run(() => this.args.onUpdate(session.getValue()));\n      }\n    });\n  }\n\n  @action\n  initAceEditor() {\n    this.editor = ace.edit(document.getElementById(this.aceEditorId), {\n      mode: this.fullMode,\n      theme: this.fullTheme,\n      showInvisibles: FormAceEditorComponent.getOrDefault(this.args.showInvisibles, true),\n      enableBasicAutocompletion: FormAceEditorComponent.getOrDefault(\n        this.args.enableBasicAutocompletion,\n        true,\n      ),\n      enableLiveAutocompletion: FormAceEditorComponent.getOrDefault(\n        this.args.enableLiveAutocompletion,\n        true,\n      ),\n      enableSnippets: FormAceEditorComponent.getOrDefault(this.args.enableSnippets, true),\n    });\n\n    this.editor.$blockScrolling = Infinity;\n    this.editor.completers = this._buildCompleters();\n    this.updateEditorAccordingToArguments();\n\n    if (this.args.useWorker) {\n      this.editor.session.setUseWorker(this.args.useWorker || false);\n    }\n\n    this._initEditorSetValue();\n    this._initSessionOnChange(this.editor.getSession());\n\n    if (this.args.onReady) {\n      this.args.onReady(this.editor, this.createSession);\n    }\n  }\n\n  _updateEditorRenderer() {\n    this.editor.renderer.updateFull(true);\n  }\n\n  @action\n  updateEditorAccordingToArguments() {\n    const { code } = this.args;\n    this._withUpdatesSilenced(() => {\n      const optionHasChanged = (newValue, oldValue) => !isNone(newValue) && oldValue !== newValue;\n      const setLinesOption = (lineArgumentName, value) =>\n        !isNone(value) && this.editor.setOption(lineArgumentName, value);\n\n      if (optionHasChanged(this.fullTheme, this._oldTheme)) {\n        this.editor.setOption('theme', this.fullTheme);\n      }\n      if (isNone(code) || optionHasChanged(code, this.editor.getValue())) {\n        this.editor.setValue(code ?? '', -1);\n      }\n      if (optionHasChanged(this.args.annotations, this._oldAnnotations)) {\n        this.editor.session.setAnnotations(this.args.annotations);\n      }\n\n      setLinesOption('minLines', this.args.minLines || this.args.lines);\n      setLinesOption('maxLines', this.args.maxLines || this.args.lines);\n\n      this._oldTheme = this.fullTheme;\n      this._oldAnnotations = this.args.annotations;\n\n      scheduleOnce('render', this, this._updateEditorRenderer);\n    });\n  }\n\n  @action\n  createSession(code, mode, useWorker = true) {\n    const fullMode = FormAceEditorComponent._getMode(mode);\n    const session = ace.createEditSession(code, fullMode);\n    session.setTabSize(FormAceEditorComponent.getOrDefault(this.args.tabSize, 2));\n    session.setUseSoftTabs(FormAceEditorComponent.getOrDefault(this.args.useSoftTabs, true));\n    session.setUseWorker(useWorker);\n    this._initSessionOnChange(session);\n\n    return session;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-ace-editor-container\\\" ...attributes>\\n  <pre\\n    id={{this.aceEditorId}}\\n    class=\\\"c-ace-editor {{@editorClass}}\\\"\\n    data-test-ace-editor\\n    {{did-insert this.initAceEditor}}\\n    {{did-update\\n      this.updateEditorAccordingToArguments\\n      @code\\n      @lines\\n      @minLines\\n      @maxLines\\n      @annotations\\n      @theme\\n    }}\\n  >\\n  </pre>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/form/ace-editor/template.hbs' });\n","import { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { run } from '@ember/runloop';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport { pauseFor, waitForNextRunLoop } from 'client/utils/ember-promise';\nimport { KEY, isCtrlPlusKeyPressed } from 'client/utils/keyboard';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport AbstractTemplatingHelper, {\n  type AutoCompleteItem,\n} from 'client/utils/templating-helper/abstract-templating-helper';\n\nfunction getClosingBracketIndex(suffixInput: string) {\n  const closingBracketIndex = suffixInput.indexOf('}}');\n  const firstOpeningBracketInSuffixIndex = suffixInput.indexOf('{{');\n  if (\n    closingBracketIndex >= firstOpeningBracketInSuffixIndex\n    && (firstOpeningBracketInSuffixIndex !== -1 || closingBracketIndex === -1)\n  ) {\n    return -1;\n  }\n  return closingBracketIndex;\n}\n\nfunction computeNewInputValue({\n  shouldIncludeClosingTag,\n  isExpectingSingleVariable,\n  autoCompleteItem,\n  inputValue,\n  autoCompleteEndIndex,\n  autoCompleteStartIndex,\n  newValue,\n}: {\n  shouldIncludeClosingTag: boolean;\n  isExpectingSingleVariable: boolean;\n  autoCompleteItem: AutoCompleteItem;\n  inputValue: string;\n  autoCompleteEndIndex: number;\n  autoCompleteStartIndex: number;\n  newValue: string;\n}) {\n  let newInputSuffix = shouldIncludeClosingTag ? '}}' : '';\n  newInputSuffix += autoCompleteItem.isCustomInput ? autoCompleteItem.customInputPlaceholder : '';\n  newInputSuffix += inputValue.substring(autoCompleteEndIndex);\n  const newInputValue = `${inputValue.substring(\n    0,\n    autoCompleteStartIndex,\n  )}${newValue}${newInputSuffix}`;\n\n  const selectionStart =\n    autoCompleteStartIndex\n    + newValue.length\n    - (shouldIncludeClosingTag ? 2 : 0)\n    + (autoCompleteItem.hasVariables || isExpectingSingleVariable || autoCompleteItem.isCustomInput\n      ? 0\n      : 2);\n  const selectionEnd =\n    selectionStart\n    + (autoCompleteItem.isCustomInput ? autoCompleteItem.customInputPlaceholder.length : 0);\n\n  return { value: newInputValue, selectionStart, selectionEnd };\n}\n\ninterface Args {\n  onChange: (value: string) => void;\n  templatingHelper: AbstractTemplatingHelper;\n  value: string;\n  placeholder: string;\n  disabled: boolean;\n  expectedType: string;\n  isExpectingSingleVariable: boolean;\n  onFocus?: (event: Event) => void;\n}\n\n@validateArguments\nexport default class FormAutocompleteInputComponent extends Component<Args> {\n  static propTypes = {\n    onChange: PropTypes.func.isRequired,\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    templatingHelper: PropTypes.instanceOf(AbstractTemplatingHelper).isRequired,\n    value: PropTypes.string,\n    placeholder: PropTypes.string,\n    disabled: PropTypes.bool,\n    expectedType: PropTypes.string,\n    isExpectingSingleVariable: PropTypes.bool,\n    onFocus: PropTypes.func,\n  };\n\n  @tracked autoCompleteItems: AutoCompleteItem[] = null;\n  lastSelectionStart = 0;\n\n  get inputId() {\n    return guidFor(this);\n  }\n\n  get options() {\n    return (\n      this.autoCompleteItems?.map((autoCompleteItem) => {\n        return {\n          id: guidFor(autoCompleteItem.value),\n          name: autoCompleteItem.label,\n          value: autoCompleteItem,\n        };\n      }) || []\n    );\n  }\n\n  get isCustomInput() {\n    return this.autoCompleteItems?.length === 1 && this.autoCompleteItems[0].isCustomInput;\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    document.removeEventListener('selectionchange', this.handleSelectorChange);\n  }\n\n  @action\n  async handleDidInsert(event: Event) {\n    if (this.args.isExpectingSingleVariable) {\n      document.addEventListener('selectionchange', this.handleSelectorChange);\n      const shouldIncludeStartingBrackets = !this.args.value?.startsWith('{{');\n      const shouldIncludeEndingBrackets = !this.args.value?.endsWith('}}');\n      const updatedValue = `${shouldIncludeStartingBrackets ? '{{' : ''}${this.args.value || ''}${\n        shouldIncludeEndingBrackets ? '}}' : ''\n      }`;\n\n      await waitForNextRunLoop();\n      if (updatedValue !== this.args.value) {\n        this.args.onChange(updatedValue);\n      }\n\n      await waitForNextRunLoop();\n\n      const input = document.getElementById(this.inputId) as HTMLInputElement;\n      if (!input) return;\n\n      if (input.selectionStart < 2 || input.selectionStart > updatedValue.length - 2) {\n        input.selectionStart = updatedValue.length - 2;\n        input.selectionEnd = input.selectionStart;\n        input.focus();\n      }\n      this.handleFocus(event);\n    }\n  }\n\n  @action\n  handleSelectorChange() {\n    const input = document.getElementById(this.inputId) as HTMLInputElement;\n    if (this.args.isExpectingSingleVariable) {\n      ['selectionStart', 'selectionEnd'].forEach((selectionProperty) => {\n        if (input[selectionProperty] < 2) {\n          input[selectionProperty] = 2;\n        } else if (input[selectionProperty] > input.value.length - 2) {\n          input[selectionProperty] = input.value.length - 2;\n        }\n      });\n    }\n    if (input.selectionStart !== this.lastSelectionStart) {\n      this.computeAutoCompleteItems(input, input.value);\n    }\n  }\n\n  @action\n  handleFocus(event: Event) {\n    if (!this.autoCompleteItems || this.autoCompleteItems.length === 0) {\n      const input = document.getElementById(this.inputId) as HTMLInputElement;\n      this.computeAutoCompleteItems(input, input.value);\n    }\n\n    this.args.onFocus?.(event);\n  }\n\n  @action\n  async handleKeyDown(event: KeyboardEvent) {\n    const input = document.getElementById(this.inputId) as HTMLInputElement;\n    if (\n      [KEY.UP_ARROW, KEY.DOWN_ARROW, KEY.ENTER].includes(event.key)\n      && this.autoCompleteItems?.length > 0\n    ) {\n      // In this case we want to prevent the default behaviour which is to move the cursor at the end or the beginning of the input\n      event.preventDefault();\n    } else if (\n      [KEY.LEFT_ARROW, KEY.BACKSPACE].includes(event.key)\n      && this.args.isExpectingSingleVariable\n      && input.selectionStart <= 2\n    ) {\n      event.preventDefault();\n    } else if (\n      [KEY.RIGHT_ARROW, KEY.DELETE].includes(event.key)\n      && this.args.isExpectingSingleVariable\n      && input.selectionStart >= this.args.value.length - 2\n    ) {\n      event.preventDefault();\n    } else if ([KEY.LEFT_ARROW, KEY.RIGHT_ARROW].includes(event.key)) {\n      // Run later to have the selectionStart updated\n      await pauseFor(10);\n      this.handleSelectorChange();\n    } else if (isCtrlPlusKeyPressed(event, KEY.SPACE)) {\n      this.computeAutoCompleteItems(\n        event.target as HTMLInputElement,\n        (event.target as HTMLInputElement).value,\n      );\n    }\n  }\n\n  @action\n  handleInput(event: InputEvent, inputValue: string) {\n    run(() => this.computeAutoCompleteItems(event.target as HTMLInputElement, inputValue));\n  }\n\n  @action\n  handleSelectValue(autoCompleteItem: AutoCompleteItem) {\n    const newValue =\n      autoCompleteItem.hasVariables && !autoCompleteItem.isCustomInput\n        ? `${autoCompleteItem.value}.`\n        : autoCompleteItem.value;\n    const input = document.getElementById(this.inputId) as HTMLInputElement;\n    const inputValue = input.value;\n    const prefixInput = inputValue.substring(0, this.lastSelectionStart);\n    const suffixInput = inputValue.substring(this.lastSelectionStart);\n    const autoCompleteStartIndex = prefixInput.lastIndexOf('{{') + 2;\n\n    if (autoCompleteStartIndex === -1) {\n      // This should not be possible normally\n      console.error(`Could not trigger autocompletion with string ${inputValue}`);\n      return;\n    }\n\n    let autoCompleteEndIndex: number = null;\n    const indexOfClosingAutoComplete = getClosingBracketIndex(suffixInput);\n    let shouldIncludeClosingTag = false;\n    if (indexOfClosingAutoComplete !== -1) {\n      autoCompleteEndIndex = indexOfClosingAutoComplete + this.lastSelectionStart;\n    } else {\n      autoCompleteEndIndex = this.lastSelectionStart;\n      shouldIncludeClosingTag = true;\n    }\n\n    const { value, selectionStart, selectionEnd } = computeNewInputValue({\n      autoCompleteEndIndex,\n      autoCompleteItem,\n      autoCompleteStartIndex,\n      inputValue,\n      newValue,\n      shouldIncludeClosingTag,\n      isExpectingSingleVariable: this.args.isExpectingSingleVariable,\n    });\n\n    this.lastSelectionStart = selectionStart;\n    input.value = value;\n    input.selectionStart = selectionStart;\n    input.selectionEnd = selectionEnd;\n\n    // This is a trick to make sure the browser scroll to the selection\n    input.blur();\n    input.focus();\n\n    const changeEvent = new Event('change');\n    input.dispatchEvent(changeEvent);\n\n    this.computeAutoCompleteItems(input, value);\n\n    if (\n      this.autoCompleteItems?.length === 1\n      && !autoCompleteItem.isCustomInput\n      && !autoCompleteItem.canBeUsedWithoutVariables\n      && !value.includes(`.${this.autoCompleteItems[0].label}.`)\n      && !value.includes(`{{${this.autoCompleteItems[0].label}.`)\n    ) {\n      this.handleSelectValue(this.autoCompleteItems[0]);\n      return;\n    }\n    // Here we are checking that the templating helper does not propose\n    // '.' at the end if there is no belongsTo proposed after\n    if (\n      this.args.expectedType === 'BelongsTo'\n      && this.autoCompleteItems?.length === 0\n      && !newValue.endsWith('.selectedRecord')\n      && newValue.includes('.selectedRecord')\n      && newValue.endsWith('.')\n    ) {\n      input.value =\n        value.slice(0, value.lastIndexOf('.')) + value.slice(value.lastIndexOf('.') + 1);\n\n      input.dispatchEvent(changeEvent);\n    }\n  }\n\n  @action\n  handleHideDropdown() {\n    this.autoCompleteItems = null;\n  }\n\n  computeAutoCompleteItems(input: HTMLInputElement, inputValue: string) {\n    const { selectionStart } = input;\n    this.lastSelectionStart = selectionStart;\n\n    const prefixInput = inputValue.substring(0, selectionStart);\n    const suffixInput = inputValue.substring(selectionStart);\n    let newValue = inputValue;\n\n    // Add the closing brackets if missing\n    const closingBracketIndex = getClosingBracketIndex(suffixInput);\n    if (prefixInput.endsWith('{{') && closingBracketIndex === -1) {\n      newValue = `${prefixInput}}}${suffixInput}`;\n    }\n\n    const openingBracketIndex = prefixInput.lastIndexOf('{{');\n    if (openingBracketIndex >= 0 && openingBracketIndex > prefixInput.lastIndexOf('}}')) {\n      // Trigger autocomplete\n      const autoCompletePrefix = prefixInput.substring(openingBracketIndex + 2);\n      const autoCompleteItems = this.args.templatingHelper.autoComplete(\n        autoCompletePrefix,\n        this.args.expectedType,\n      );\n\n      // Do not display autocomplete items if the current autoComplete is a valid value\n      // It's the case for example for belongsTo field, they can be used as is\n      this.autoCompleteItems = autoCompleteItems?.some(\n        (autoCompleteItem) =>\n          autoCompleteItem.value === autoCompletePrefix\n          && autoCompleteItem.canBeUsedWithoutVariables\n          && !autoCompleteItem.isCustomInput,\n      )\n        ? null\n        : autoCompleteItems;\n    } else {\n      this.autoCompleteItems = null;\n    }\n\n    if (newValue !== inputValue) {\n      input.value = newValue;\n      input.selectionStart = selectionStart;\n      input.selectionEnd = selectionStart;\n      const changeEvent = new Event('change');\n      input.dispatchEvent(changeEvent);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let (component (if @isTextarea \\'shared/beta-textarea\\' \\'shared/beta-input\\')) as |InputComponent|}}\\n  <InputComponent\\n    @inputId={{this.inputId}}\\n    @type=\\\"text\\\"\\n    @value={{one-way @value}}\\n    @onInput={{this.handleInput}}\\n    @onChange={{@onChange}}\\n    @onKeyDown={{this.handleKeyDown}}\\n    @onClick={{this.handleSelectorChange}}\\n    @disabled={{@disabled}}\\n    @placeholder={{@placeholder}}\\n    @onBlur={{@onBlur}}\\n    @onFocus={{this.handleFocus}}\\n    data-test-form-autocomplete-input\\n    {{did-insert this.handleDidInsert}}\\n    ...attributes\\n  />\\n{{/let}}\\n\\n{{#if (and (gt this.autoCompleteItems.length 0) (not this.isCustomInput))}}\\n  <Form::BetaSelect::DropdownContent\\n    @inputId={{this.inputId}}\\n    @currentValue={{this.autoCompleteValue}}\\n    @onHideDropdown={{this.handleHideDropdown}}\\n    @onSelectValue={{this.handleSelectValue}}\\n    @options={{this.options}}\\n    data-test-form-autocomplete-input-dropdown\\n  >\\n    <:before-item as |optionValue|>\\n      {{yield optionValue to=\\'before-item\\'}}\\n    </:before-item>\\n  </Form::BetaSelect::DropdownContent>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/form/autocomplete-input/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { bool } from '@ember/object/computed';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\n\nimport { argument, oneOf, optional } from 'client/decorators/argument';\n\n/**\n * @enum {string}\n */\nexport const CheckboxTypes = {\n  primary: 'primary',\n  danger: 'danger',\n};\n\n@classNames('c-beta-checkbox')\n@classNameBindings(\n  'disabled:c-beta-checkbox--disabled',\n  'readMode:c-beta-checkbox--readMode',\n  'small:c-beta-checkbox--small',\n  'stateClassName',\n)\nexport default class FormBetaCheckboxComponent extends Component {\n  @argument(optional(oneOf(...Object.values(CheckboxTypes)))) type;\n  @argument(optional(Boolean)) value;\n  @argument(optional(Function)) onChange;\n  @argument(optional(Boolean)) disabled;\n  @argument(optional(Boolean)) readMode;\n  @argument(optional(Boolean)) small;\n  @argument(optional(Boolean)) defaultValue;\n  @argument(optional(Boolean)) hasNullState;\n  @argument(optional(Function)) shouldPreventClick;\n\n  @bool('value') isOn;\n\n  @computed('hasNullState', 'value')\n  get isOff() {\n    return this.hasNullState === false ? !this.value : this.value === false;\n  }\n\n  @computed('type', 'isOff', 'isOn')\n  get stateClassName() {\n    const type = this.type || CheckboxTypes.primary;\n    const classes = [`c-beta-checkbox--${type}`];\n\n    if (this.isOn) {\n      classes.push(`c-beta-checkbox--on c-beta-checkbox--${type}-on`);\n    } else if (this.isOff) {\n      classes.push(`c-beta-checkbox--off c-beta-checkbox--${type}-off`);\n    }\n\n    return classes.join(' ');\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    if (this.defaultValue !== undefined && [undefined, null].includes(this.value)) {\n      this.set('value', this.defaultValue);\n    }\n  }\n\n  didInsertElement(...args) {\n    super.didInsertElement(...args);\n    this.element.addEventListener('click', this.onClick);\n  }\n\n  @action\n  onClick(event) {\n    event.preventDefault();\n\n    if (this.shouldPreventClick?.()) {\n      event.stopImmediatePropagation();\n      return false;\n    }\n\n    if (this.disabled || this.readMode) {\n      return false;\n    }\n\n    this.toggleProperty('value');\n\n    if (this.onChange) {\n      this.onChange(this.value, event);\n    }\n\n    return true;\n  }\n\n  willDestroyElement() {\n    super.willDestroyElement();\n    this.element.removeEventListener('click', this.onClick);\n  }\n}\n","import { storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Legacy/Form/BetaCheckbox',\n  component: 'Form::BetaCheckbox',\n  argTypes: {\n    defaultValue: {\n      type: 'boolean',\n      description: 'The checkboxes default value, used when `value` is `null` or `undefined`.',\n      table: {\n        category: 'Properties',\n      },\n    },\n    disabled: {\n      type: 'boolean',\n      description: 'Sets the checkbox in a disabled state and disables click.',\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: false,\n        },\n      },\n    },\n    readMode: {\n      type: 'boolean',\n      description: 'Sets the checkbox in a read-only state and disables click',\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: false,\n        },\n      },\n    },\n    small: {\n      type: 'boolean',\n      description: 'Draws the checkbox smaller.',\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: false,\n        },\n      },\n    },\n    value: {\n      type: 'boolean',\n      description: 'The checkboxes value.',\n      table: {\n        category: 'Properties',\n      },\n    },\n    onChange: {\n      type: 'function',\n      description: 'Called on the checkboxes `click` event.',\n      table: {\n        category: 'Actions',\n      },\n    },\n  },\n  args: {},\n};\n\nexport const BetaCheckbox = storyCreator('Form::BetaCheckbox');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<i class=\\\"material-icons c-beta-checkbox__content {{if @small \\'c-beta-checkbox__content--small\\'}}\\\">\\n  {{#if this.isOn}}\\n    check\\n  {{else if (not this.isOff)}}\\n    remove\\n  {{/if}}\\n</i>\\n\\n<Input\\n  @type=\\\"checkbox\\\"\\n  @checked={{this.value}}\\n  disabled={{or @disabled @readMode}}\\n  class=\\\"c-beta-checkbox__input\\\"\\n  aria-label=\\\"checkbox\\\"\\n/>\\n', { moduleName: 'client/legacy/pods/components/form/beta-checkbox/template.hbs' });\n","import type PopupPositionerSharedBusinessService from 'client/shared/services/popup-positioner';\n\nimport { action } from '@ember/object';\nimport { debounce } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { KEY } from 'client/utils/keyboard';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface DropdownOption {\n  value: unknown;\n  name: string;\n  id: string;\n  disabled: boolean;\n  title: string;\n  icon: string;\n}\n\ninterface FormBetaSelectDropdownContentArgs {\n  inputId: string;\n  onHideDropdown: (event: Event) => void;\n  currentValue: unknown;\n  defaultItem: DropdownOption;\n  defaultOption: string;\n  options: Array<DropdownOption>;\n  isLoading: boolean;\n  mustHideCurrentValue: boolean;\n  shouldCapitalizeOptionName: boolean;\n  hasMultipleValues: boolean;\n  hasSearchInput: boolean;\n  isRightAligned: boolean;\n  emptyText: string;\n  searchPlaceholder: string;\n  onSelectDefault: () => void;\n  onSelectValue: (value: unknown, disabled: boolean, event: Event) => void;\n  onSearchValueChange: (value: string) => void;\n  dropdownWidth: number;\n  isOptionsNotMapped: boolean;\n  hasTitle: boolean;\n}\n\n// FIXME: add @validateArguments and fix legacy tests\nexport default class FormBetaSelectDropdownContentComponent extends Component<FormBetaSelectDropdownContentArgs> {\n  // FIXME: validate\n  static propTypes = {\n    inputId: PropTypes.string.isRequired,\n    onHideDropdown: PropTypes.func.isRequired,\n    currentValue: PropTypes.any,\n    defaultItem: PropTypes.object,\n    defaultOption: PropTypes.string,\n    options: PropTypes.arrayOf(\n      PropTypes.shape({\n        value: PropTypes.any,\n        name: PropTypes.string,\n        id: PropTypes.string,\n        disabled: PropTypes.bool,\n        title: PropTypes.string,\n        icon: PropTypes.string,\n      }),\n    ),\n    isLoading: PropTypes.bool,\n    mustHideCurrentValue: PropTypes.bool,\n    shouldCapitalizeOptionName: PropTypes.bool,\n    hasMultipleValues: PropTypes.bool,\n    hasSearchInput: PropTypes.bool,\n    isRightAligned: PropTypes.bool,\n    emptyText: PropTypes.string,\n    searchPlaceholder: PropTypes.string,\n    onSelectDefault: PropTypes.func,\n    onSelectValue: PropTypes.func,\n    onSearchValueChange: PropTypes.func,\n    dropdownWidth: PropTypes.number,\n    isOptionsNotMapped: PropTypes.bool,\n    hasTitle: PropTypes.bool,\n  };\n\n  @service('shared/popup-positioner') private popupPositioner: PopupPositionerSharedBusinessService;\n\n  @tracked public selectedItem: DropdownOption = null;\n\n  willDestroy() {\n    super.willDestroy();\n    document.removeEventListener('keyup', this.onKeyUp);\n  }\n\n  get inputElement() {\n    return document.getElementById(this.args.inputId);\n  }\n\n  get inputSearchId() {\n    return `${this.args.inputId}__search`;\n  }\n\n  get dropdownWidth() {\n    return this.args.dropdownWidth || this.inputElement?.offsetWidth;\n  }\n\n  @action\n  onKeyUp(event: KeyboardEvent) {\n    event.stopPropagation();\n\n    switch (event.key) {\n      case KEY.DOWN_ARROW:\n        return this.selectNextItem();\n      case KEY.UP_ARROW:\n        return this.selectPreviousItem();\n      case KEY.ESCAPE:\n        return this.args.onHideDropdown(event);\n      case KEY.ENTER:\n        if (this.selectedItem === this.args.defaultItem && this.args.defaultItem !== undefined) {\n          return this.args.onSelectDefault();\n        }\n        return this.args.onSelectValue(\n          this.args.isOptionsNotMapped ? this.selectedItem : this.selectedItem?.value,\n          this.selectedItem?.disabled,\n          event,\n        );\n      default:\n        return null;\n    }\n  }\n\n  selectNextItem() {\n    const index = this.args.options.indexOf(this.selectedItem);\n    if (index === -1 && !this.selectedItem && this.args.defaultOption) {\n      this.selectedItem = this.args.defaultItem;\n    } else if (index + 1 < this.args.options.length) {\n      this.selectedItem = this.args.options.objectAt(index + 1);\n    }\n\n    this.scrollToElement();\n  }\n\n  selectPreviousItem() {\n    if (!this.selectedItem) {\n      return;\n    }\n\n    const index = this.args.options.indexOf(this.selectedItem);\n    if (index > 0) {\n      this.selectedItem = this.args.options.objectAt(index - 1);\n    } else if (index === 0 && this.args.defaultOption) {\n      this.selectedItem = this.args.defaultItem;\n    }\n    this.scrollToElement();\n  }\n\n  scrollToElement() {\n    if (!this.selectedItem) {\n      return;\n    }\n\n    const element = document.getElementById(this.selectedItem.id);\n    if (element) {\n      element.scrollIntoView({ block: 'nearest' });\n    }\n  }\n\n  @action\n  initDropdownPositionObserversAndEventListeners(dropdownElement: HTMLElement) {\n    document.addEventListener('keyup', this.onKeyUp);\n\n    this.popupPositioner.positionPopupBelowElement(\n      this as Component<unknown>,\n      dropdownElement,\n      this.inputElement,\n      {\n        visibilityVariable: '--form-beta-select-dropdown-content-visibility',\n        widthVariable: '--form-beta-select-dropdown-content-width',\n        topVariable: '--form-beta-select-dropdown-content-margin-top',\n        leftVariable: '--form-beta-select-dropdown-content-margin-left',\n        shouldMatchTargetWidth: !this.args.dropdownWidth,\n      },\n    );\n\n    this.handleUpdateOptions();\n\n    if (this.args.hasSearchInput) {\n      this.selectSearch();\n    }\n  }\n\n  @action\n  handleDebounceSearchValueChanged(value: string) {\n    debounce(this, this.args.onSearchValueChange, value, 300, false);\n  }\n\n  @action\n  handleUpdateOptions() {\n    if (\n      (!this.args.defaultItem || this.args.defaultItem !== this.selectedItem)\n      && !this.args.options?.includes(this.selectedItem)\n    ) {\n      this.selectedItem = this.args.defaultItem || this.args.options?.[0];\n    }\n  }\n\n  @action\n  selectSearch() {\n    const element = document.getElementById(this.inputSearchId);\n    if (element && document.activeElement !== element) {\n      element.focus();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"dropdown\\\">\\n  {{! template-lint-disable no-invalid-interactive }}\\n  <ul\\n    class=\\\"c-form-beta-select-dropdown-content js-form-beta-select-dropdown-content\\\"\\n    {{on \\'click\\' (stop-propagation)}}\\n    {{forest-on-click-outside @onHideDropdown exceptSelector=(concat \\'#\\' @inputId)}}\\n    {{did-insert this.initDropdownPositionObserversAndEventListeners}}\\n    {{did-update this.handleUpdateOptions @options}}\\n    data-test-form-beta-select-dropdown-content\\n    ...attributes\\n  >\\n    {{#if @hasSearchInput}}\\n      <li\\n        class=\\\"c-form-beta-select-dropdown-content__list-search\\\"\\n        {{on \\'click\\' this.selectSearch}}\\n        role=\\\"button\\\"\\n        data-test-beta-select-search\\n      >\\n        <Shared::BetaInput\\n          @value={{one-way @searchValue}}\\n          @onChange={{this.handleDebounceSearchValueChanged}}\\n          @id={{this.inputSearchId}}\\n          @placeholder={{@searchPlaceholder}}\\n          @hasPrefixPadding={{true}}\\n          @autofocus={{true}}\\n          class=\\\"c-form-beta-select-dropdown-content__list-search-input\\\"\\n          data-test-form-beta-select-dropdown-content-search-input\\n        >\\n          <:input-prefix>\\n            <Shared::DataDisplay::BetaIcon\\n              @iconName=\\\"search\\\"\\n              @size=\\\"custom\\\"\\n              class=\\\"c-form-beta-select-dropdown-content__list-search-icon\\\"\\n            />\\n          </:input-prefix>\\n        </Shared::BetaInput>\\n      </li>\\n    {{/if}}\\n\\n    {{#if @hasTitle}}\\n      <li\\n        class=\\\"c-form-beta-select-dropdown-content__title\\\"\\n        data-test-form-beta-select-dropdown-content-title\\n      >\\n        {{yield to=\\'title\\'}}\\n      </li>\\n    {{/if}}\\n\\n    {{#if @defaultOption}}\\n      <li\\n        id={{@defaultItem.id}}\\n        class={{get-classes-with-modifiers\\n          \\'c-form-beta-select-dropdown-content__item\\'\\n          hover=(eq this.selectedItem.id @defaultItem.id)\\n        }}\\n        {{on \\'click\\' (stop-propagation (prevent-default @onSelectDefault))}}\\n        {{on \\'mousemove\\' (fn (mut this.selectedItem) @defaultItem)}}\\n        role=\\\"button\\\"\\n        data-test-form-beta-select-dropdown-content-item-default\\n      >\\n        {{#if (has-block \\'before-item-default-option\\')}}\\n          {{yield to=\\'before-item-default-option\\'}}\\n        {{/if}}\\n        <span\\n          class=\\\"c-form-beta-select-dropdown-content__item-name\\\"\\n          data-test-form-beta-select-dropdown-content-item-name\\n        >\\n          {{@defaultOption}}\\n        </span>\\n        {{#if (and @hasMultipleValues (not @currentValue.length))}}\\n          <i\\n            class=\\\"material-icons c-form-beta-select-dropdown-content__item-icon\\\"\\n            data-test-form-beta-select-dropdown-content-item-selected-icon\\n          >\\n            done\\n          </i>\\n        {{/if}}\\n      </li>\\n    {{else if (and (not @options.length) (not @isLoading))}}\\n      <li\\n        class=\\\"c-form-beta-select-dropdown-content__item c-form-beta-select-dropdown-content__item--empty\\\"\\n        {{on \\'click\\' @onHideDropdown}}\\n        data-test-form-beta-select-dropdown-content-empty-text\\n      >\\n        {{or @emptyText \\'No results found.\\'}}\\n      </li>\\n    {{/if}}\\n    {{#each @options as |option index|}}\\n      {{#let\\n        (if\\n          @hasMultipleValues\\n          (array-contains @currentValue option.value)\\n          (if @isOptionsNotMapped (eq option @currentValue) (eq option.value @currentValue))\\n        )\\n        (eq this.selectedItem option)\\n        as |isCurrentOptionSelected isHovered|\\n      }}\\n        {{#unless (and isCurrentOptionSelected @mustHideCurrentValue)}}\\n\\n          <li\\n            id={{option.id}}\\n            role=\\\"button\\\"\\n            class={{get-classes-with-modifiers\\n              \\'c-form-beta-select-dropdown-content__item\\'\\n              selected=isCurrentOptionSelected\\n              disabled=option.disabled\\n              hover=isHovered\\n            }}\\n            {{on\\n              \\'click\\'\\n              (stop-propagation\\n                (prevent-default\\n                  (if\\n                    @isOptionsNotMapped\\n                    (fn @onSelectValue option)\\n                    (fn @onSelectValue option.value option.disabled)\\n                  )\\n                )\\n              )\\n            }}\\n            {{on \\'mousemove\\' (fn (mut this.selectedItem) option)}}\\n            title={{option.title}}\\n            data-test-form-beta-select-dropdown-content-item={{stringify\\n              (if (is-empty option.name) index option.name)\\n            }}\\n            data-test-form-beta-select-dropdown-content-item-value={{option.value}}\\n            data-test-form-beta-select-dropdown-content-item-index={{index}}\\n            data-test-form-beta-select-dropdown-content-item-disabled={{option.disabled}}\\n            data-test-form-beta-select-dropdown-content-item-selected={{isCurrentOptionSelected}}\\n            data-test-form-beta-select-dropdown-content-item-hover={{isHovered}}\\n          >\\n            {{#if @hasCustomItemRenderer}}\\n              {{yield option to=\\'item-renderer\\'}}\\n            {{else}}\\n              {{#if option.icon}}\\n                <Shared::DataDisplay::BetaIcon\\n                  @iconName={{option.icon}}\\n                  @size=\\\"small\\\"\\n                  class=\\\"c-form-beta-select-dropdown-content__item-left-icon\\\"\\n                  data-test-form-beta-select-dropdown-content-item-icon\\n                />\\n              {{else if (has-block \\'before-item\\')}}\\n                {{yield option.value to=\\'before-item\\'}}\\n              {{/if}}\\n              <span\\n                class=\\\"c-form-beta-select-dropdown-content__item-name\\\"\\n                data-test-form-beta-select-dropdown-content-item-name\\n              >\\n                {{if @shouldCapitalizeOptionName (capitalize-text option.name) option.name}}\\n              </span>\\n              {{#if (and @hasMultipleValues isCurrentOptionSelected)}}\\n                <i\\n                  class=\\\"material-icons c-form-beta-select-dropdown-content__item-icon\\\"\\n                  data-test-form-beta-select-dropdown-content-item-selected-icon\\n                >\\n                  done\\n                </i>\\n              {{/if}}\\n            {{/if}}\\n          </li>\\n        {{/unless}}\\n      {{/let}}\\n    {{/each}}\\n    {{#if @isLoading}}\\n      <li\\n        class=\\\"c-form-beta-select-dropdown-content__item c-form-beta-select-dropdown-content__item--loader\\\"\\n      >\\n        <Shared::Feedback::BetaLoader\\n          class=\\\"c-form-beta-select-dropdown-content__loader\\\"\\n          data-test-form-beta-select-dropdown-content-loader\\n        />\\n      </li>\\n    {{/if}}\\n  </ul>\\n  {{! template-lint-enable no-invalid-interactive }}\\n</Shared::PortalContent>\\n', { moduleName: 'client/legacy/pods/components/form/beta-select/dropdown-content/template.hbs' });\n","import type ClipboardService from 'client/legacy/services/clipboard';\n\nimport { action } from '@ember/object';\nimport { later } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport config from 'client/config/environment';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport enum CopyStyleEnum {\n  Default = 'default',\n  Icon = 'icon',\n}\n\nexport enum CopyColorEnum {\n  Subtle = 'subtle',\n}\n\ninterface Arguments {\n  value: string;\n  size?: 'auto';\n  insideInput?: boolean;\n  afterCopy?: () => void;\n  style?: CopyStyleEnum;\n  copyText?: string;\n  isLeftAligned?: boolean;\n  disableAbsolutePosition?: boolean;\n  color?: CopyColorEnum;\n}\n\n@validateArguments\nexport default class FormCopyComponent extends Component<Arguments> {\n  static propTypes = {\n    value: PropTypes.string,\n    insideInput: PropTypes.bool,\n    afterCopy: PropTypes.func,\n    style: PropTypes.oneOf(Object.values(CopyStyleEnum)),\n    copyText: PropTypes.string,\n    isLeftAligned: PropTypes.bool,\n    disableAbsolutePosition: PropTypes.bool,\n    color: PropTypes.oneOf(Object.values(CopyColorEnum)),\n    size: PropTypes.oneOf(['auto']),\n  };\n\n  @service private clipboard: ClipboardService;\n\n  @tracked isCopied: boolean = null;\n\n  formCopyTimout = config.APP.formCopyTimout || 2000;\n\n  get copyTextOrDefault() {\n    return this.args.copyText || 'copy';\n  }\n\n  get hasAlreadyBeenCopied() {\n    return this.isCopied !== null;\n  }\n\n  get styleOrDefault() {\n    return this.args.style || CopyStyleEnum.Default;\n  }\n\n  get styleClassName() {\n    return `c-beta-copy__copied--${this.styleOrDefault}`;\n  }\n\n  get iconSize() {\n    return this.args.size === 'auto' ? 'inherit' : 'normal';\n  }\n\n  @action\n  async copyAction() {\n    await this.clipboard.copyToClipboard(this.args.value);\n\n    this.isCopied = true;\n\n    this.args.afterCopy?.();\n\n    later(() => {\n      this.isCopied = false;\n    }, this.formCopyTimout);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers \\'c-beta-copy\\' @size @color inside-input=@insideInput}}\\n  ...attributes\\n>\\n\\n  <div\\n    {{on \\'click\\' this.copyAction}}\\n    class={{get-classes-with-modifiers\\n      \\'c-beta-copy__button\\'\\n      copy=true\\n      hidden=this.isCopied\\n      animation=this.hasAlreadyBeenCopied\\n      left-aligned=@isLeftAligned\\n      no-absolute=@disableAbsolutePosition\\n    }}\\n    role=\\\"button\\\"\\n  >\\n    {{#if (eq this.styleOrDefault \\'icon\\')}}\\n      <Shared::DataDisplay::BetaIcon @iconName=\\\"content_copy\\\" @size={{this.iconSize}} />\\n    {{else}}\\n      <span class=\\\"c-beta-copy__button-text\\\">\\n        {{this.copyTextOrDefault}}\\n      </span>\\n    {{/if}}\\n  </div>\\n\\n  {{#if this.hasAlreadyBeenCopied}}\\n    <div\\n      {{on \\'click\\' this.copyAction}}\\n      class={{get-classes-with-modifiers\\n        \\'c-beta-copy__button\\'\\n        copied=true\\n        hidden=(not this.isCopied)\\n        animation=this.hasAlreadyBeenCopied\\n      }}\\n      role=\\\"button\\\"\\n    >\\n      <span class=\\\"c-beta-copy__copied {{this.styleClassName}}\\\">\\n        copied\\n      </span>\\n      <i class=\\\"c-beta-copy__button-icon\\\">\\n        check\\n      </i>\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/form/copy/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<li\\n  class={{get-classes-with-modifiers\\n    \\'c-beta-dropdown-action\\'\\n    danger=@isDanger\\n    disabled=@isDisabled\\n    editable=@isEditable\\n    dragging=@isDragging\\n  }}\\n  {{on \\'click\\' (if (or @isDisabled (not @onClick)) (do-nothing-function) @onClick)}}\\n  role=\\\"button\\\"\\n  data-test-action-name={{@dataTestActionName}}\\n  ...attributes\\n>\\n  {{#if @hasVisibilityIcon}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{if @isVisible \\'visibility\\' \\'visibility_off\\'}}\\n      class=\\\"c-beta-dropdown-action__action-visibility\\n        {{unless @isVisible \\'c-beta-dropdown-action__action-visibility--disabled\\'}}\\n        \\\"\\n      {{on \\'click\\' @toggleVisibility}}\\n    />\\n  {{/if}}\\n  {{#if @icon}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{@icon}}\\n      class={{get-classes-with-modifiers\\n        \\'c-beta-dropdown-action__icon\\'\\n        danger=@isDangerIcon\\n        disabled=@isDisabledIcon\\n        editable=@isEditableIcon\\n        dragging=@isDraggingIcon\\n      }}\\n    />\\n  {{/if}}\\n\\n  <span class=\\\"c-beta-dropdown-action__action-text\\\">\\n    {{@name}}\\n  </span>\\n  {{#if @tooltipMessage}}\\n    <Shared::Feedback::BetaInfoTooltip @tooltipSide={{@tooltipSide}}>\\n      {{@tooltipMessage}}\\n    </Shared::Feedback::BetaInfoTooltip>\\n  {{/if}}\\n\\n  {{yield}}\\n</li>\\n', { moduleName: 'client/legacy/pods/components/form/dropdown/action/template.hbs' });\n","import type EventBusService from 'client/legacy/services/event-bus';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { next } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport validateArguments from 'client/decorators/validate';\nimport { KEY, isKey } from 'client/utils/keyboard';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type FormDropdownComponentArgs = {\n  id?: string;\n  onShow?: () => void;\n  onHide?: () => void;\n  disabled?: boolean;\n  shouldPreventOpen?: () => boolean;\n  openOnTop?: boolean;\n  contentFullWidth?: boolean;\n  contentClassOverride?: string;\n};\n\n@validateArguments\n/**\n * This component is used to display a list of actions/buttons/other components dropping down from a single button.\n * (ex: the list of Smart Actions when clicking on the 'Actions' button.\n */\nexport default class FormDropdownComponent extends Component<FormDropdownComponentArgs> {\n  public static propTypes = {\n    onShow: PropTypes.func,\n    onHide: PropTypes.func,\n    disabled: PropTypes.bool,\n    shouldPreventOpen: PropTypes.func,\n    openOnTop: PropTypes.bool,\n    contentFullWidth: PropTypes.bool,\n    contentClassOverride: PropTypes.string,\n  };\n\n  @service eventBus: EventBusService;\n  @tracked showDropdown = false;\n\n  public readonly elementId: string;\n\n  constructor(owner: unknown, args: FormDropdownComponentArgs) {\n    super(owner, args);\n\n    this.elementId = this.args.id || guidFor(this);\n  }\n\n  @action\n  toggleDropdown(event: Event) {\n    event?.stopPropagation();\n\n    if (this.args.disabled || this.args.shouldPreventOpen?.()) {\n      return;\n    }\n\n    if (event) {\n      this.eventBus.trigger('inputClick', event);\n    }\n    if (this.showDropdown) {\n      // This event is triggered much faster than ember events.\n      // ex: click function inside an @ember/component\n      // To avoid the dropdown hide action to be triggered before the action inside is triggered\n      // we just delay the hide a little bit.\n      next(() => this.hide());\n    } else {\n      this.show();\n    }\n  }\n\n  @action\n  hide() {\n    this.showDropdown = false;\n    this.detachHandlers();\n    this.args.onHide?.();\n  }\n\n  show() {\n    this.showDropdown = true;\n    this.attachHandlers();\n    this.args.onShow?.();\n  }\n\n  detachHandlers() {\n    window.removeEventListener('keyup', this.onEscape);\n  }\n\n  attachHandlers() {\n    window.addEventListener('keyup', this.onEscape);\n  }\n\n  @action\n  onEscape(event: KeyboardEvent) {\n    if (isKey(KEY.ESCAPE, event)) {\n      this.hide();\n    }\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.detachHandlers();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<ul\\n  class=\\\"c-beta-dropdown-content\\n    {{if @mustAlignLeft \\'c-beta-dropdown-content--align-left\\'}}\\n    {{if @noPadding \\'c-beta-dropdown-content--no-padding\\'}}\\n    {{if @fullWidth \\'c-beta-dropdown-content--full-width\\'}}\\n    {{if @openOnTop \\'c-beta-dropdown-content--render-on-top\\'}}\\n    \\\"\\n  data-test-beta-dropdown-content\\n  ...attributes\\n>\\n  {{yield}}\\n</ul>\\n', { moduleName: 'client/legacy/pods/components/form/dropdown/content/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-beta-dropdown\\\"\\n  role=\\\"button\\\"\\n  {{on \\'click\\' (if (has-block \\'triggerer\\') (do-nothing-function) this.toggleDropdown)}}\\n  {{forest-on-click-outside this.hide exceptSelector=\\'.container,.easepick-wrapper\\'}}\\n  ...attributes\\n  id={{this.elementId}}\\n>\\n  {{#if (has-block \\'content\\')}}\\n    {{yield this.toggleDropdown to=\\'triggerer\\'}}\\n\\n    {{#if this.showDropdown}}\\n      <Form::Dropdown::Content\\n        @fullWidth={{@contentFullWidth}}\\n        @openOnTop={{@openOnTop}}\\n        class={{@contentClassOverride}}\\n        {{on \\'click\\' this.hide}}\\n      >\\n        {{yield this.hide to=\\'content\\'}}\\n      </Form::Dropdown::Content>\\n    {{/if}}\\n  {{else}}\\n    {{! Deprecated, use `content` and `trigger` blocks}}\\n    {{yield this.showDropdown}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/form/dropdown/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { or } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tagName } from '@ember-decorators/component';\n\nimport { argument, optional } from 'client/decorators/argument';\n\n@tagName('')\nexport default class FormEditInlineComponent extends Component {\n  @argument(String) label;\n  @argument(optional(String)) value;\n  @argument(optional(String)) realName = '';\n  @argument(optional(String)) emptyValueText = '';\n  @argument(optional(String)) placeholder;\n  @argument(optional(Boolean)) isTitle = false;\n  @argument(optional(Boolean)) isEditMode = false;\n  @argument(optional(Function)) setEditMode;\n  /** @type {import('app/services/html-sanitizer').default} */\n  @service htmlSanitizer;\n\n  @or('value', 'emptyValueText')\n  readModeValue;\n\n  @computed('htmlSanitizer', 'label', 'realName')\n  get computedLabel() {\n    if (!this.realName) return this.label;\n\n    return `${this.htmlSanitizer.escapeText(\n      this.label,\n    )} <span class=\"c-beta-edit-inline__real-name\">${this.htmlSanitizer.escapeText(\n      this.realName,\n    )}</span>`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-edit-inline {{@class}}\\\" ...attributes>\\n  <Shared::BetaLabel\\n    class=\\\"c-beta-edit-inline__label\\\"\\n    @label={{this.computedLabel}}\\n    data-test-edit-in-line-label\\n  >\\n    {{#if @isEditMode}}\\n      <Shared::BetaInput\\n        @value={{@value}}\\n        @placeholder={{@placeholder}}\\n        data-test-edit-in-line-edit-input\\n      />\\n    {{else}}\\n      <span\\n        class=\\\"c-beta-edit-inline__read-mode-text\\n          {{unless this.value \\'c-beta-edit-inline__read-mode-text--empty-state\\'}}\\n          {{if this.isTitle \\'c-beta-edit-inline__read-mode-text--title\\'}}\\\"\\n        data-test-edit-in-line-read-input\\n      >\\n        {{this.readModeValue}}\\n      </span>\\n    {{/if}}\\n  </Shared::BetaLabel>\\n\\n  {{#unless (or @isEditMode @isDisabled)}}\\n    <Shared::Button::BetaButton\\n      @type=\\\"link-secondary-light\\\"\\n      @underline={{false}}\\n      @iconName=\\\"edit\\\"\\n      @action={{fn @setEditMode true}}\\n      @noPadding={{true}}\\n      @size=\\\"small\\\"\\n      class=\\\"c-beta-edit-inline__edit-mode-switch\\\"\\n      data-test-edit-mode-switch={{true}}\\n    />\\n  {{/unless}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/form/edit-inline/template.hbs' });\n","import type AddressFinderService from 'client/legacy/services/business/address-finder';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { debounce } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface FormAddressSuggestionArgs {\n  value: string | null;\n  onChange: (value: string) => void;\n  disabled?: boolean;\n  debounceTime?: number;\n  placeholder?: string;\n}\n\n@validateArguments\nexport default class FormFormAddressSuggestionComponent extends Component<FormAddressSuggestionArgs> {\n  static propTypes = {\n    value: PropTypes.string,\n    onChange: PropTypes.func.isRequired,\n    disabled: PropTypes.bool,\n    placeholder: PropTypes.string,\n  };\n\n  @service('business/address-finder') declare addressFinder: AddressFinderService;\n\n  @tracked inputId = `${guidFor(this)}__input`;\n  @tracked suggestions: string[] | null = null;\n  @tracked isLoading = false;\n\n  @tracked lastSearchValue = '';\n\n  get emptyOptionsText() {\n    return !this.lastSearchValue ? 'Type something to start searching for an address...' : null;\n  }\n\n  @action\n  async handleSearchValueChange(searchValue: string) {\n    if (searchValue === this.lastSearchValue) return;\n    if (!searchValue || searchValue === this.args.value) {\n      if (!searchValue) {\n        this.lastSearchValue = null;\n        this.isLoading = false;\n      }\n\n      this.suggestions = null;\n      return;\n    }\n\n    this.isLoading = true;\n    this.lastSearchValue = searchValue;\n    this.args.onChange(searchValue);\n    // eslint-disable-next-line @typescript-eslint/unbound-method\n    debounce(this.handleSearch, this.args.debounceTime || 500);\n  }\n\n  @action\n  async handleSearch() {\n    if (!this.lastSearchValue) return;\n\n    this.suggestions = await this.addressFinder.findAddresses(this.lastSearchValue);\n    this.isLoading = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSelectSearch\\n  @value={{@value}}\\n  @options={{this.suggestions}}\\n  @disabled={{@disabled}}\\n  @onChange={{@onChange}}\\n  @onSearchValueChange={{this.handleSearchValueChange}}\\n  @onCancelSearch={{this.handleSearchValueChange}}\\n  @isLoadingOptions={{this.isLoading}}\\n  @emptyText={{this.emptyOptionsText}}\\n  @inputId={{@inputId}}\\n  @placeholder={{@placeholder}}\\n  data-test-form-address-suggestion\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/form/form-address-suggestion/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\n\nexport default class FormFormArrayComponent extends Component {\n  @alias('value') values;\n\n  @action\n  addValue(value) {\n    if (!this.values) {\n      this.set('values', []);\n    }\n\n    const valueToPush = value === '__NULL__' ? null : value;\n\n    this.set('values', [...this.values.toArray(), valueToPush]);\n    this.onChange?.(this.values);\n  }\n\n  @action\n  removeValue(value, index) {\n    this.values.removeAt(index);\n    this.set('values', [...this.values.toArray()]);\n    this.onChange?.(this.values);\n    return false;\n  }\n\n  @action\n  reorderValue(values) {\n    this.values = values;\n    this.onChange?.(this.values);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaInputList\\n  @values={{this.values}}\\n  @type={{this.type}}\\n  @reorderable={{@reorderable}}\\n  @allowDuplicate={{@allowDuplicate}}\\n  @allowEmptyValue={{@allowEmptyValue}}\\n  @placeholder={{@placeholder}}\\n  @onAddValue={{this.addValue}}\\n  @onRemoveValue={{this.removeValue}}\\n  @onReorderValue={{this.reorderValue}}\\n  @disabled={{@disabled}}\\n  @min={{@min}}\\n  @max={{@max}}\\n  @step={{@step}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/form/form-array/template.hbs' });\n","import { isArray } from '@ember/array';\nimport Component from '@ember/component';\nimport { computed } from '@ember/object';\n\nimport Collection from 'client/data/models/collection';\nimport Field from 'client/data/models/field';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class FormFormBaseComponent extends Component {\n  static propTypes = {\n    field: PropTypes.instanceOf(Field),\n    type: PropTypes.string,\n    parentCollection: PropTypes.instanceOf(Collection),\n    label: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),\n    parentRecord: PropTypes.object,\n    record: PropTypes.object,\n    value: PropTypes.any,\n    dropdownParent: PropTypes.any,\n    operator: PropTypes.any,\n    isReadOnly: PropTypes.bool,\n    cannotSearchInBelongsTo: PropTypes.bool,\n    disableNested: PropTypes.bool,\n  };\n\n  @computed('field.type', 'type')\n  get expectedTypeNotCasted() {\n    return this.field?.type || this.type;\n  }\n\n  @computed('expectedTypeNotCasted')\n  get expectedType() {\n    return typeof this.expectedTypeNotCasted === 'string'\n      ? this.expectedTypeNotCasted\n      : JSON.stringify(this.expectedTypeNotCasted);\n  }\n\n  @computed('expectedTypeNotCasted')\n  get isExpectingArray() {\n    return isArray(this.expectedTypeNotCasted);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! The \\\"form-base\\\" component is never used in \\\"display\\\" mode. }}\\n{{! It means that \\\"readMode\\\" is useless and should always be false. }}\\n{{! It will be removed in a near future. }}\\n{{#if (or (eq this.expectedType \\'Date\\') (eq this.expectedType \\'Dateonly\\'))}}\\n  <Form::FormDate\\n    @value={{@value}}\\n    @readMode={{false}}\\n    @isDateOnly={{eq this.expectedType \\'Dateonly\\'}}\\n    @disabled={{@isReadOnly}}\\n    @isValid={{@isValid}}\\n    @onChange={{@onChange}}\\n  />\\n{{else if (eq this.expectedType \\'Boolean\\')}}\\n  <Form::FormSelectBool @value={{@value}} @label={{@label}} @onChange={{@onChange}} />\\n{{else if (eq this.expectedType \\'Enum\\')}}\\n  <Form::FormEnum\\n    @value={{@value}}\\n    @label={{@label}}\\n    @readMode={{false}}\\n    @disabled={{@isReadOnly}}\\n    @field={{@field}}\\n    @onChange={{@onChange}}\\n  />\\n{{else if (eq this.expectedType \\'Number\\')}}\\n  <Form::FormNumber\\n    @value={{@value}}\\n    @label={{@label}}\\n    @readMode={{false}}\\n    @disabled={{@isReadOnly}}\\n    @isValid={{@isValid}}\\n    @onChange={{@onChange}}\\n  />\\n{{else if (eq this.expectedType \\'String\\')}}\\n  <Form::FormString\\n    @value={{@value}}\\n    @label={{@label}}\\n    @readMode={{false}}\\n    @disabled={{@isReadOnly}}\\n    @isValid={{@isValid}}\\n    @onChange={{@onChange}}\\n  />\\n{{else if (eq this.expectedType \\'Uuid\\')}}\\n  <Form::FormUuid\\n    @value={{@value}}\\n    @label={{@label}}\\n    @readMode={{false}}\\n    @disabled={{@isReadOnly}}\\n    @isValid={{@isValid}}\\n    @onChange={{@onChange}}\\n  />\\n{{else if (eq this.expectedType \\'Time\\')}}\\n  <Widgets::Edit::TimeInput::WidgetLayout\\n    @value={{@value}}\\n    @label={{@label}}\\n    @field={{@field}}\\n    @widgetConfiguration={{@field.widgetEdit}}\\n    @onChange={{@onChange}}\\n    @disabled={{@isReadOnly}}\\n  />\\n{{else if (eq this.expectedType \\'[\\\"Enum\\\"]\\')}}\\n  <Widgets::Edit::MultipleSelect::WidgetLayout\\n    @disabled={{@isReadOnly}}\\n    @value={{@value}}\\n    @label={{@label}}\\n    @field={{@field}}\\n    @onChange={{@onChange}}\\n  />\\n{{else if this.isExpectingArray}}\\n  <Form::FormArray\\n    @value={{@value}}\\n    @type={{if (eq this.expectedType \\'[\\\"Number\\\"]\\') \\'number\\' \\'text\\'}}\\n    @onChange={{@onChange}}\\n    @disabled={{@isReadOnly}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/form/form-base/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\n// eslint-disable-next-line ember/require-tagless-components\nexport default class FormFormBelongsToInlineComponent extends Component {\n  static propTypes = {\n    onChange: PropTypes.func,\n  };\n\n  @action\n  onValueChanged(value) {\n    this.onChange?.(value);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#each @field.referenceModel.fields as |referenceField|}}\\n  <Form::FormValue\\n    @displayName={{or @displayName referenceField.displayNameTitlize}}\\n    @collection={{@field.referenceModel}}\\n    @record={{@record}}\\n    @field={{referenceField}}\\n    @readMode={{@readMode}}\\n    @isReadOnly={{true}}\\n    @formClass=\\\"l-dmb\\\"\\n    @labelClass={{@labelClass}}\\n    @widgetConfiguration={{@widgetConfiguration}}\\n    @shouldHideSettingsButton={{@shouldHideSettingsButton}}\\n    @shouldHideDescription={{@shouldHideDescription}}\\n    @onChange={{this.onValueChanged}}\\n  />\\n{{/each}}\\n', { moduleName: 'client/legacy/pods/components/form/form-belongs-to-inline/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport {\n  attributeBindings,\n  classNameBindings,\n  classNames,\n  tagName,\n} from '@ember-decorators/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('button')\n@classNames('c-form-boolean')\n@classNameBindings(\n  'classNameWithModificator',\n  'readMode:c-form-boolean--read-only',\n  'disabled:c-form-boolean--disabled',\n)\n@attributeBindings('inputId:id', 'disabled', 'type')\n@validateArguments\nexport default class FormFormBooleanComponent extends Component {\n  static propTypes = {\n    onChange: PropTypes.func,\n  };\n\n  disableNull = false;\n  type = 'button';\n\n  @computed('modificatorName')\n  get classNameWithModificator() {\n    return `c-form-boolean--${this.modificatorName}`;\n  }\n\n  @computed('checked', 'disableNull')\n  get modificatorName() {\n    if (this.checked === null || this.checked === undefined || this.checked === 'null') {\n      return 'not-set';\n    }\n    return Boolean(this.checked === true || this.checked === 'true');\n  }\n\n  click(event) {\n    event.stopPropagation();\n    if (this.readMode || this.disabled) {\n      return;\n    }\n\n    if (this.disableNull) {\n      this.toggleProperty('checked');\n    } else if (this.checked === null || this.checked === 'null') {\n      this.set('checked', true);\n    } else if (this.checked === true || this.checked === 'true') {\n      this.set('checked', false);\n    } else {\n      this.set('checked', null);\n    }\n\n    if (this.onChange) {\n      this.onChange(this.checked);\n    }\n  }\n}\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\n\nimport Field from 'client/data/models/field';\nimport dateFormatting from 'client/decorators/date-formatting';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@dateFormatting\nexport default class FormFormDateComponent extends Component {\n  propTypes = {\n    field: PropTypes.instanceOf(Field),\n    value: PropTypes.date,\n    readMode: PropTypes.bool,\n    disabled: PropTypes.bool,\n  };\n\n  @computed('field', 'readMode')\n  get widgetConfiguration() {\n    return this.field?.[this.readMode ? 'widgetDisplay' : 'widgetField'];\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @readMode}}\\n  {{#if @value}}\\n    <p class=\\\"c-row-value\\\">\\n      {{moment-format @value this.dateFormat}}\\n    </p>\\n  {{else}}\\n    <p class=\\\"c-row-value c-row-value--disabled\\\">\\n      -\\n    </p>\\n  {{/if}}\\n{{else}}\\n  <Shared::BetaInputDate\\n    @value={{@value}}\\n    @disabled={{@disabled}}\\n    @isDateOnly={{this.argsIsDateOnly}}\\n    @format={{this.dateFormat}}\\n    @onChange={{@onChange}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/form/form-date/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { readOnly } from '@ember/object/computed';\nimport { tagName } from '@ember-decorators/component';\n\nimport ColorUtils from 'client/utils/color-utils';\n\n@tagName('')\nexport default class FormFormEnumComponent extends Component {\n  @readOnly('field.enums') enumValues;\n  @readOnly('field.mappingValues') mappingValues;\n\n  @computed('value', 'enumValues.length')\n  get colorEnumValue() {\n    if (this.value) {\n      let index = 0;\n      const colorsCount = this.enumValues?.length || 1;\n      const colors = ColorUtils.predefinedRandomColors(colorsCount);\n\n      if (this.enumValues?.length) {\n        index = this.enumValues.findIndex((enumValue) => enumValue === this.value);\n      }\n\n      return colors[index];\n    }\n    return null;\n  }\n\n  @computed('enumValues', 'mappingValues.@each.{label,value}', 'value')\n  get options() {\n    const currentValue = this.value;\n    const values = this.enumValues;\n\n    const mappingValues = this.mappingValues || values.map((value) => ({ label: value, value }));\n\n    const options = [];\n    values.forEach((value) => {\n      const labelValue = mappingValues.findBy('value', value);\n      const label = labelValue ? labelValue.label : value;\n      options.pushObject({\n        label,\n        value,\n      });\n    });\n\n    if (!values.includes(currentValue)) {\n      const labelValue = mappingValues.findBy('value', currentValue);\n      const label = labelValue ? labelValue.label : currentValue;\n      if (label) {\n        options.pushObject({\n          label,\n          value: currentValue,\n          disabled: true,\n        });\n      }\n    }\n    return options;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @readMode}}\\n  {{#if @label}}\\n    <Shared::DataDisplay::BetaBadge\\n      @value={{@label}}\\n      @color={{this.colorEnumValue}}\\n      @class={{@class}}\\n      data-test-beta-badge\\n    />\\n  {{else}}\\n    <p class=\\\"c-row-value c-row-value--disabled {{@class}}\\\">\\n      -\\n    </p>\\n  {{/if}}\\n{{else}}\\n  <Shared::BetaSelect\\n    @options={{this.options}}\\n    @value={{@value}}\\n    @disabled={{@disabled}}\\n    @onChange={{@onChange}}\\n    @namePath=\\\"label\\\"\\n    @valuePath=\\\"value\\\"\\n    @disabledPath=\\\"disabled\\\"\\n    @defaultOption=\\\"Select a value\\\"\\n    @class={{@class}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/form/form-enum/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { tagName } from '@ember-decorators/component';\n\n@tagName('')\nexport default class FormFormNumberComponent extends Component {\n  @computed('value')\n  get isValuePresent() {\n    return this.value || this.value === 0;\n  }\n\n  @computed('value')\n  get isNumber() {\n    return !Number.isNaN(Number.parseFloat(this.value)) && Number.isFinite(this.value);\n  }\n\n  @computed('isNumber', 'isValuePresent')\n  get inputType() {\n    // NOTICE: Hack to ensure that UUIDs fields badly detected as \"Number\" fields by the agent are\n    //         well displayed in forms.\n    return !this.isValuePresent || this.isNumber ? 'number' : null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @readMode}}\\n  {{#if this.isValuePresent}}\\n    <p class=\\\"c-row-value {{@class}}\\\">\\n      {{@label}}\\n    </p>\\n  {{else}}\\n    <p class=\\\"c-row-value c-row-value--disabled {{@class}}\\\">\\n      -\\n    </p>\\n  {{/if}}\\n{{else}}\\n  <Shared::BetaInput\\n    @disabled={{@disabled}}\\n    @type={{this.inputType}}\\n    @value={{@value}}\\n    @state={{if (eq @isValid false) \\'error\\'}}\\n    @onChange={{@onChange}}\\n    @class={{@class}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/form/form-number/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { classNames } from '@ember-decorators/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('radio-input')\nexport default class FormFormRadioComponent extends Component {\n  propTypes = {\n    defaultOption: PropTypes.string,\n    onSelect: PropTypes.func.isRequired,\n  };\n\n  radioValue = null;\n\n  didReceiveAttrs() {\n    super.didReceiveAttrs();\n    this.set('radioValue', this.defaultOption);\n  }\n\n  @action\n  updateRadioValue(option) {\n    this.set('radioValue', option);\n    this.onSelect(option);\n  }\n}\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('radio-input__row')\nexport default class FormFormRadioRowComponent extends Component {\n  propTypes = {\n    option: PropTypes.string.isRequired,\n    title: PropTypes.string.isRequired,\n    description: PropTypes.string.isRequired,\n    radioInput: PropTypes.object.isRequired,\n  };\n\n  didReceiveAttrs() {\n    super.didReceiveAttrs();\n\n    const { radioValue, updateRadioValue } = this.radioInput;\n\n    this.set('radioValue', radioValue);\n    this.set('updateRadioValue', updateRadioValue);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<input\\n  id={{@option}}\\n  class=\\\"radio-input__row__input\\\"\\n  type=\\\"radio\\\"\\n  checked={{eq this.radioValue @option}}\\n  {{on \\'click\\' (fn this.updateRadioValue @option)}}\\n/>\\n<label class=\\\"radio-input__row__label\\\" for={{@option}}>\\n  <div class=\\\"radio-input__row__label__title\\\">\\n    {{@title}}\\n  </div>\\n  <div class=\\\"radio-input__row__label__description\\\">\\n    {{@description}}\\n  </div>\\n</label>\\n', { moduleName: 'client/legacy/pods/components/form/form-radio/row/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{yield (hash radioValue=this.radioValue updateRadioValue=this.updateRadioValue)}}\\n', { moduleName: 'client/legacy/pods/components/form/form-radio/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSelect\\n  @value={{@value}}\\n  @options={{array true false}}\\n  @onChange={{@onChange}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/form/form-select-bool/template.hbs' });\n","import Component from '@ember/component';\nimport { tagName } from '@ember-decorators/component';\n\n@tagName('')\nexport default class FormFormStringComponent extends Component {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @readMode}}\\n  {{#if @label}}\\n    <p class=\\\"c-row-value {{@class}}\\\">\\n      {{@label}}\\n    </p>\\n  {{else}}\\n    <p class=\\\"c-row-value c-row-value--disabled {{@class}}\\\">\\n      -\\n    </p>\\n  {{/if}}\\n{{else}}\\n  <Shared::BetaInput\\n    @value={{@value}}\\n    @disabled={{@disabled}}\\n    @state={{if (eq @isValid false) \\'error\\'}}\\n    @onChange={{@onChange}}\\n    @class={{@class}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/form/form-string/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { isUuid } from 'client/utils/uuid-utils';\n\nexport default class FormFormUuidComponent extends Component {\n  get isError() {\n    return this.args.isValid === false || (this.args.value && !isUuid(this.args.value));\n  }\n\n  get state() {\n    return this.isError ? 'error' : undefined;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @readMode}}\\n  {{#if @label}}\\n    <p class=\\\"c-row-value\\\" data-test-form-uuid-value ...attributes>\\n      {{@label}}\\n    </p>\\n  {{else}}\\n    <p class=\\\"c-row-value c-row-value--disabled\\\" data-test-form-uuid-value ...attributes>\\n      -\\n    </p>\\n  {{/if}}\\n{{else}}\\n  <Shared::BetaInput\\n    @value={{@value}}\\n    @disabled={{@disabled}}\\n    @state={{this.state}}\\n    @onChange={{@onChange}}\\n    data-test-form-uuid-input\\n    ...attributes\\n  />\\n  {{#if this.isError}}\\n    <span class=\\\"c-beta-label__error\\\" data-test-form-uuid-error>\\n      Not a valid UUID\\n    </span>\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/form/form-uuid/template.hbs' });\n","import { action } from '@ember/object';\nimport { next } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Model from '@ember-data/model';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport CollectionModel from 'client/data/models/collection';\nimport FieldModel from 'client/data/models/field';\nimport WidgetConfigurationFragment from 'client/data/models/widget-configuration';\nimport validateArguments from 'client/decorators/validate';\nimport NestedCollection from 'client/utils/nested/collection';\nimport NestedField from 'client/utils/nested/field';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport { namespace } from 'client/utils/string-utils';\nimport { WidgetEditTypeEnum } from 'client/utils/widgets';\n\n@validateArguments\nexport default class FormFormValueComponent extends Component {\n  @service currentUser;\n  @service lianaFeatures;\n\n  static propTypes = {\n    onChange: PropTypes.func,\n    record: PropTypes.instanceOf(Model),\n    dropdownParent: PropTypes.string,\n    field: PropTypes.oneOfType([\n      PropTypes.instanceOf(NestedField),\n      PropTypes.instanceOf(FieldModel),\n    ]).isRequired,\n    isUsedInSmartAction: PropTypes.bool,\n    readMode: PropTypes.bool,\n    labelClass: PropTypes.string,\n    formClass: PropTypes.string,\n    widgetConfiguration: PropTypes.instanceOf(WidgetConfigurationFragment),\n    shouldHideSettingsButton: PropTypes.bool,\n    shouldHideDescription: PropTypes.bool,\n    displayName: PropTypes.oneOfType([PropTypes.string, PropTypes.htmlSafe]),\n    isPrefilledValue: PropTypes.bool,\n    height: PropTypes.number,\n    isReadOnly: PropTypes.bool,\n    disableNested: PropTypes.bool,\n    isSmartAction: PropTypes.bool,\n    parentRecord: PropTypes.instanceOf(Model),\n    parentCollection: PropTypes.oneOfType([\n      PropTypes.instanceOf(CollectionModel),\n      PropTypes.instanceOf(NestedCollection),\n    ]),\n    operator: PropTypes.string,\n    contextConfiguration: PropTypes.object,\n    setFormLoadingState: PropTypes.func,\n    handleSearchQuery: PropTypes.func,\n  };\n\n  @tracked cannotSearchInBelongsTo = false;\n  @tracked _hasWidgetError = false;\n\n  constructor(...args) {\n    super(...args);\n\n    this.defineDefaultValue();\n  }\n\n  get isValid() {\n    return !this._hasWidgetError && (this.args.record?.isValid || !this.errorMessage);\n  }\n\n  get errorMessage() {\n    const attributeName =\n      this.args.field.attributeName === 'id'\n        ? namespace(this.args.field.fieldName, '-')\n        : this.args.field.attributeName;\n    return this.args.record?.errors?.get(attributeName)?.firstObject?.message?.firstObject;\n  }\n\n  get label() {\n    return this.args.field.getDisplayedValue(this.args.record);\n  }\n\n  set label(value) {\n    return this.args.field.setDisplayedValue(this.args.record, value);\n  }\n\n  get valueAttributeName() {\n    const attributeName =\n      this.args.field.attributeName === 'id'\n        ? namespace(this.args.field.fieldName, '-')\n        : this.args.field.attributeName;\n    return this._isAttributeNameWithRelationshipsRequired()\n      ? this.args.field.attributeNameWithRelationships\n      : attributeName;\n  }\n\n  get value() {\n    if (this.args.isUsedInSmartAction) {\n      return this.args.value;\n    }\n\n    return this.args.record?.[this.valueAttributeName];\n  }\n\n  set value(newValue) {\n    if (!this.args.isUsedInSmartAction) {\n      this.args.record?.set(this.valueAttributeName, newValue);\n    }\n  }\n\n  get fieldToRedirectTo() {\n    if (\n      this.currentUser.editMode\n      && this.args.field.collection\n      && !(this.args.field instanceof NestedField)\n    ) {\n      return this.args.field;\n    }\n    return null;\n  }\n\n  _isAttributeNameWithRelationshipsRequired() {\n    const { isBelongsTo } = this.args.field;\n    // FIXME: This rule is super weird: why only three widgets require to use\n    //        attributeNameWithRelationships (which looks like the \"normal\" attribute)?\n    return (\n      isBelongsTo\n      && ([\n        WidgetEditTypeEnum.Dropdown,\n        WidgetEditTypeEnum.RadioButton,\n        WidgetEditTypeEnum.BelongsToTypeahead,\n        WidgetEditTypeEnum.PolymorphicBelongsToTypeahead,\n      ].includes(this.args.field.widgetEdit?.widget?.name)\n        || !this.args.field.widgetEdit)\n    );\n  }\n\n  @action\n  defineDefaultValue() {\n    // NOTICE: Only set the default value in creation and Smart Action forms.\n    const isCreate = this.args.record?.isNew;\n    // NOTICE: Do not set default value if current record is duplicated\n    //         (see `record-duplicator` service).\n    const isDuplicated = this.args.record?.isDuplicated;\n\n    if (\n      this.args.field?.defaultValue !== null\n      && this.args.field?.defaultValue !== undefined\n      && (isCreate || this.args.isUsedInSmartAction)\n      && !this.value\n      && !isDuplicated\n    ) {\n      next(() => {\n        let { value } = this;\n        if (this.args.field.type === 'Boolean') {\n          if (this.args.field.defaultValue === 'true') {\n            value = true;\n          } else if (this.args.field.defaultValue === 'false') {\n            value = false;\n          } else if (typeof this.args.field.defaultValue === 'boolean') {\n            // Smart actions hooks can actually send a boolean type instead of a string.\n            value = this.args.field.defaultValue;\n          }\n        } else if (this.args.field.isJson || this.args.field.isArray) {\n          try {\n            value = JSON.parse(this.args.field.defaultValue);\n          } catch (error) {\n            console.error(error);\n          }\n        } else if (\n          this.args.field.type === 'Number'\n          && typeof this.args.field.defaultValue === 'string'\n        ) {\n          value = Number(this.args.field.defaultValue.replace(',', '.'));\n        } else {\n          value = this.args.field.defaultValue;\n        }\n\n        this.onValueChanged(value);\n      });\n    }\n\n    if (this.args.field.isBelongsTo && !this.args.field.referenceModel?.searchEnabled) {\n      this.cannotSearchInBelongsTo = true;\n    }\n  }\n\n  @action\n  handleWidgetError(error) {\n    this._hasWidgetError = !!error;\n  }\n\n  @action\n  notifyValidityChange() {\n    this.args.onFieldValidityChange?.(this.args.field?.fieldName, this.isValid);\n  }\n\n  @action\n  onValueChanged(newValue) {\n    this.value = newValue;\n    this.args.onChange?.(newValue);\n  }\n\n  willDestroy() {\n    super.willDestroy(...arguments);\n    this.args.onFieldValidityChange?.(this.args.field?.fieldName, true);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-update this.defineDefaultValue @record}}\\n{{did-update this.notifyValidityChange this.isValid}}\\n\\n{{#if @field.isInlineBelongsToField}}\\n  <Form::FormBelongsToInline\\n    data-test-input-for={{@field.fieldName}}\\n    @field={{@field}}\\n    @record={{@record}}\\n    @readMode={{@readMode}}\\n    @labelClass={{@labelClass}}\\n    @formClass={{@formClass}}\\n    @widgetConfiguration={{@widgetConfiguration}}\\n    @shouldHideSettingsButton={{@shouldHideSettingsButton}}\\n    @shouldHideDescription={{@shouldHideDescription}}\\n    @displayName={{@displayName}}\\n    @onChange={{this.onValueChanged}}\\n    ...attributes\\n  />\\n{{else}}\\n  {{#let (generate-guid) as |inputId|}}\\n    <Shared::BetaLabel\\n      @label={{@displayName}}\\n      @description={{unless @shouldHideDescription @field.description}}\\n      @isRequired={{and @field.isRequired (not @readMode)}}\\n      @isError={{eq this.isValid false}}\\n      @disabled={{or (and @field.isReadOnly (not @readMode)) @isPrefilledValue}}\\n      @errorMessage={{this.errorMessage}}\\n      @textClass={{@labelClass}}\\n      @position={{@labelPosition}}\\n      @for={{inputId}}\\n      class=\\\"{{@formClass}} {{if (eq this.isValid false) \\'c-beta-label--danger\\'}}\\\"\\n      data-test-input-for={{@field.fieldName}}\\n      ...attributes\\n    >\\n      <:after-label>\\n        {{#if (and (not @shouldHideSettingsButton) this.fieldToRedirectTo)}}\\n          <Button::SettingsButton::FieldSettingsButton\\n            @field={{this.fieldToRedirectTo}}\\n            class=\\\"c-beta-label__field-settings-button\\\"\\n          />\\n        {{/if}}\\n      </:after-label>\\n      <:default>\\n        {{#if @isPrefilledValue}}\\n          <Shared::BetaInput\\n            @value={{get-displayed-link-value @field @record}}\\n            @disabled={{true}}\\n            @inputId={{inputId}}\\n          />\\n        {{else if @readMode}}\\n          <Widgets::Widget\\n            @type=\\\"display-row\\\"\\n            @widgetConfiguration={{or @widgetConfiguration @field.widgetDisplay}}\\n            @height={{@height}}\\n            @field={{@field}}\\n            @value={{this.value}}\\n            @label={{this.label}}\\n            @record={{@record}}\\n            class=\\\"c-widget--scrollable\\\"\\n          />\\n        {{else}}\\n          <Widgets::Widget\\n            @type=\\\"edit\\\"\\n            @value={{this.value}}\\n            @label={{this.label}}\\n            @readMode={{@readMode}}\\n            @isReadOnly={{or @isReadOnly @field.isReadOnly}}\\n            @cannotSearch={{this.cannotSearchInBelongsTo}}\\n            @widgetConfiguration={{or @widgetConfiguration @field.widgetEdit}}\\n            @field={{@field}}\\n            @record={{@record}}\\n            @disableNested={{@disableNested}}\\n            @parentRecord={{@parentRecord}}\\n            @parentCollection={{@parentCollection}}\\n            @dropdownParent={{@dropdownParent}}\\n            @operator={{@operator}}\\n            @isValid={{this.isValid}}\\n            @contextConfiguration={{@contextConfiguration}}\\n            @setFormLoadingState={{@setFormLoadingState}}\\n            @inputId={{inputId}}\\n            @handleSearchQuery={{@handleSearchQuery}}\\n            @onChange={{this.onValueChanged}}\\n            @onErrorChange={{this.handleWidgetError}}\\n          />\\n        {{/if}}\\n      </:default>\\n    </Shared::BetaLabel>\\n  {{/let}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/form/form-value/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument, optional, shape } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class GridStackItemComponent extends Component {\n  /** @type {import('node_modules/gridstack/dist/gridstack').GridStack} */\n  _grid;\n\n  @argument(\n    optional(\n      shape({\n        x: optional(Number),\n        y: optional(Number),\n        w: optional(Number),\n        h: optional(Number),\n      }),\n    ),\n  )\n  options;\n\n  @argument(optional(String)) id;\n\n  @tracked isGridStackItemLoaded = false;\n\n  /**\n   * @param {HTMLDivElement} element\n   */\n  @action\n  initElement(element) {\n    this._grid = element.parentElement.gridstack;\n\n    if (!this._grid) {\n      throw new Error(\n        'Grid not found, the element GridStack::Item must be used directly inside a GridStack::Layout',\n      );\n    }\n\n    this._grid.addWidget(element, this._getOptions());\n\n    this.isGridStackItemLoaded = true;\n  }\n\n  /**\n   * @param {HTMLDivElement} element\n   */\n  @action\n  updateElement(element) {\n    this._grid.update(element, this._getOptions());\n  }\n\n  /**\n   * @param {HTMLDivElement} element\n   */\n  @action\n  willDestroyElement(element) {\n    if (this._grid) {\n      this._grid.removeWidget(element, true);\n    }\n  }\n\n  _getOptions() {\n    const { id, options } = this.args;\n    return { ...options, id };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"grid-stack-item\\\"\\n  id={{@id}}\\n  {{did-insert this.initElement}}\\n  {{did-update this.updateElement @options}}\\n  {{will-destroy this.willDestroyElement}}\\n  ...attributes\\n>\\n  <div class=\\\"grid-stack-item-content\\\">\\n    {{yield this.isGridStackItemLoaded}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/grid-stack/item/template.hbs' });\n","import { action } from '@ember/object';\nimport { scheduleOnce } from '@ember/runloop';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { GridStack } from 'gridstack';\n\nimport { argument, oneOfType, optional, shape } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\nfunction valueOrDefault(value, defaultValue) {\n  return value === undefined || value === null ? defaultValue : value;\n}\n\n@validateArguments\nexport default class GridStackLayoutComponent extends Component {\n  /** @type {import('gridstack').GridStack} */\n  _grid;\n\n  @tracked\n  initialized = false;\n\n  @argument(\n    optional(\n      shape({\n        cellHeight: optional(Number),\n        column: optional(Number),\n        marginTop: optional(Number),\n        marginBottom: optional(Number),\n        marginLeft: optional(Number),\n        marginRight: optional(Number),\n        margin: optional(Number),\n        animate: optional(Boolean),\n        handle: optional(String),\n        disableOneColumnMode: optional(Boolean),\n        acceptWidgets: optional(oneOfType([String, Function])),\n        float: optional(Boolean),\n        dragInOptions: optional(\n          shape({\n            dragInElementsSelector: String,\n            appendTo: optional(String),\n            helper: optional(String),\n            handle: optional(String),\n            start: optional(Function),\n            stop: optional(Function),\n          }),\n        ),\n      }),\n    ),\n  )\n  options;\n\n  @argument(optional(Function)) onAdded;\n  @argument(optional(Function)) onChange;\n  @argument(optional(Function)) onDisable;\n  @argument(optional(Function)) onDrag;\n  @argument(optional(Function)) onDragStart;\n  @argument(optional(Function)) onDragStop;\n  @argument(optional(Function)) onDropped;\n  @argument(optional(Function)) onEnable;\n  @argument(optional(Function)) onRemoved;\n  @argument(optional(Function)) onResize;\n  @argument(optional(Function)) onResizeStart;\n  @argument(optional(Function)) onResizeStop;\n\n  @argument(optional(Boolean)) enableResize;\n  @argument(optional(Boolean)) enableMove;\n  @argument(optional(Boolean)) isStatic;\n\n  /**\n   * @param {HTMLDivElement} element\n   */\n  @action\n  initElement(element) {\n    this._grid = GridStack.init(this._generateOptions(), element);\n    if (this.args.options?.dragInOptions) {\n      GridStack.setupDragIn(\n        this.args.options.dragInOptions.dragInElementsSelector,\n        this.args.options.dragInOptions,\n      );\n    }\n    this.initialized = true;\n  }\n\n  @action\n  childrenInserted() {\n    this._grid.on('change', this._onGridEvent(this.args.onChange));\n    this._grid.on('added', this._onGridEvent(this.args.onAdded));\n    this._grid.on('disable', this._onGridEvent(this.args.onDisable));\n    this._grid.on('drag', this._onGridEvent(this.args.onDrag));\n    this._grid.on('dragstart', this._onGridEvent(this.args.onDragStart));\n    this._grid.on('dragstop', this._onGridEvent(this.args.onDragStop));\n    this._grid.on('dropped', this._onGridEvent(this.args.onDropped));\n    this._grid.on('enable', this._onGridEvent(this.args.onEnable));\n    this._grid.on('removed', this._onGridEvent(this.args.onRemoved));\n    this._grid.on('resize', this._onGridEvent(this.args.onResize));\n    this._grid.on('resizestart', this._onGridEvent(this.args.onResizeStart));\n    this._grid.on('resizestop', this._onGridEvent(this.args.onResizeStop));\n  }\n\n  @action\n  async updateElement() {\n    if (\n      (this.args.options?.minRow && this._grid.getRow() < this.args.options.minRow)\n      || (this.args.options?.maxRow && this._grid.getRow() > this.args.options.maxRow)\n      || (this.args.options?.row && this._grid.getRow() !== this.args.options.row)\n      || (this.args.options?.column && this._grid.getColumn() !== this.args.options?.column)\n    ) {\n      const element = this._grid.el;\n      this.initialized = false;\n\n      await waitForNextRunLoop();\n      this._grid.destroy(false);\n      this.initElement(element);\n    } else if (this._grid) {\n      this._grid.enableResize(valueOrDefault(this.args.enableResize, true));\n      this._grid.enableMove(valueOrDefault(this.args.enableMove, true));\n      this._grid.setStatic(valueOrDefault(this.args.isStatic, false));\n    }\n  }\n\n  @action\n  willDestroyElement() {\n    if (this._grid) {\n      this._grid.destroy(false);\n      this._grid = undefined;\n    }\n  }\n\n  /**\n   * @param {() => void} callback\n   */\n  _onGridEvent(callback) {\n    return (...args) => {\n      if (callback) {\n        scheduleOnce('actions', this, callback, ...args);\n      }\n    };\n  }\n\n  _generateOptions() {\n    return {\n      float: false,\n      ...this.args.options,\n      disableResize: !valueOrDefault(this.args.enableResize, true),\n      disableDrag: !valueOrDefault(this.args.enableMove, true),\n      staticGrid: valueOrDefault(this.args.isStatic, false),\n      auto: false,\n    };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"grid-stack\\\"\\n  {{did-insert this.initElement}}\\n  {{did-update\\n    this.updateElement\\n    @isStatic\\n    @enableResize\\n    @enableMove\\n    @options.column\\n    @options.minRow\\n    @options.maxRow\\n    @options.row\\n  }}\\n  {{will-destroy this.willDestroyElement}}\\n  ...attributes\\n>\\n  {{#if this.initialized}}\\n    {{yield}}\\n  {{/if}}\\n</div>\\n{{#if this.initialized}}\\n  <hr class=\\\"grid-stack__children-end\\\" {{did-insert this.childrenInserted}} />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/grid-stack/layout/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { tagName } from '@ember-decorators/component';\n\n@tagName('')\nexport default class IncrementForComponent extends Component {\n  @computed('times')\n  get numOfTimes() {\n    const times = Number.parseInt(this.times, 10);\n    return new Array(times);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! template-lint-disable no-unused-block-params }}\\n{{#each this.numOfTimes as |time|}}\\n  {{yield}}\\n{{/each}}\\n{{! template-lint-enable no-unused-block-params }}\\n', { moduleName: 'client/legacy/pods/components/increment-for/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { classNames } from '@ember-decorators/component';\n\n// eslint-disable-next-line ember/no-mixins\nimport SmartViewMixin from 'client/legacy/mixins/smart-view-mixin';\n\n@classNames('c-mixpanel')\nexport default class IntegrationIntegrationMixpanelListComponent extends Component.extend(\n  SmartViewMixin,\n) {\n  currentRecord = null;\n\n  @action\n  showDetails(record) {\n    if (this.currentRecord === record) {\n      this.set('currentRecord', null);\n    } else {\n      this.set('currentRecord', record);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @records.length}}\\n  {{#each @records as |record|}}\\n    <div\\n      class=\\\"c-timeline-card {{if (eq this.currentRecord.id record.id) \\'c-timeline-card--is-open\\'}}\\\"\\n    >\\n      <a\\n        {{on \\'click\\' (fn this.showDetails record)}}\\n        href=\\\"#\\\"\\n        class=\\\"c-timeline-card__card\\n          {{if (eq this.currentRecord.id record.id) \\'c-timeline-card__card--is-open\\'}}\\\"\\n      >\\n        <div class=\\\"l-timeline-card__left\\\">\\n          <div class=\\\"c-timeline-card__date\\\">\\n            <img class=\\\"c-timeline-card__clock-icon\\\" src=\\\"/img/icon--clock.svg\\\" alt=\\\"Clock\\\" />\\n            <small class=\\\"c-timeline-card__event-date\\\">\\n              {{moment-from-now record.forest-date locale=\\'en-US\\'}}\\n            </small>\\n          </div>\\n          <div class=\\\"l-timeline-card__event-text\\\">\\n            <p class=\\\"c-timeline-card__event-text\\\">\\n              <span class=\\\"c-timeline-card__text-highlight\\\">\\n                {{record.forest-event}}\\n              </span>\\n              has been triggered\\n            </p>\\n          </div>\\n        </div>\\n        <div class=\\\"l-timeline-card__right\\\">\\n          {{#if (eq this.currentRecord.id record.id)}}\\n            <div class=\\\"c-timeline-card__minus-icon\\\">\\n              <img src=\\\"/img/icon--minus.svg\\\" alt=\\\"Minus\\\" />\\n            </div>\\n          {{else}}\\n            <div class=\\\"c-timeline-card__plus-icon\\\">\\n              <img src=\\\"/img/icon--plus.svg\\\" alt=\\\"Plus\\\" />\\n            </div>\\n          {{/if}}\\n        </div>\\n        <div\\n          class=\\\"l-timeline-card__content\\n            {{if (eq this.currentRecord.id record.id) \\'l-timeline-card__content--is-open\\'}}\\\"\\n        >\\n          <div class=\\\"c-timeline-card__row\\\">\\n            <p\\n              class=\\\"c-timeline-card__label\\n                {{unless record.forest-country \\'c-timeline-card__label--disabled\\'}}\\\"\\n            >\\n              Country\\n            </p>\\n            <p class=\\\"c-timeline-card__value\\\">\\n              {{record.forest-country}}\\n            </p>\\n          </div>\\n          <div class=\\\"c-timeline-card__row\\\">\\n            <p\\n              class=\\\"c-timeline-card__label\\n                {{unless record.forest-city \\'c-timeline-card__label--disabled\\'}}\\\"\\n            >\\n              City\\n            </p>\\n            <p class=\\\"c-timeline-card__value\\\">\\n              {{record.forest-city}}\\n            </p>\\n          </div>\\n          <div class=\\\"c-timeline-card__row\\\">\\n            <p\\n              class=\\\"c-timeline-card__label\\n                {{unless record.forest-browser \\'c-timeline-card__label--disabled\\'}}\\\"\\n            >\\n              Browser\\n            </p>\\n            <p class=\\\"c-timeline-card__value\\\">\\n              {{record.forest-browser}}\\n            </p>\\n          </div>\\n          <div class=\\\"c-timeline-card__row\\\">\\n            <p\\n              class=\\\"c-timeline-card__label\\n                {{unless record.forest-browserVersion \\'c-timeline-card__label--disabled\\'}}\\\"\\n            >\\n              Browser version\\n            </p>\\n            <p class=\\\"c-timeline-card__value\\\">\\n              {{record.forest-browserVersion}}\\n            </p>\\n          </div>\\n          <div class=\\\"c-timeline-card__row\\\">\\n            <p\\n              class=\\\"c-timeline-card__label\\n                {{unless record.forest-os \\'c-timeline-card__label--disabled\\'}}\\\"\\n            >\\n              OS\\n            </p>\\n            <p class=\\\"c-timeline-card__value\\\">\\n              {{record.forest-os}}\\n            </p>\\n          </div>\\n          <div class=\\\"c-timeline-card__row\\\">\\n            <p\\n              class=\\\"c-timeline-card__label\\n                {{unless record.forest-osVersion \\'c-timeline-card__label--disabled\\'}}\\\"\\n            >\\n              OS version\\n            </p>\\n            <p class=\\\"c-timeline-card__value\\\">\\n              {{record.forest-osVersion}}\\n            </p>\\n          </div>\\n          <div class=\\\"c-timeline-card__row\\\">\\n            <p\\n              class=\\\"c-timeline-card__label\\n                {{unless record.forest-plan \\'c-timeline-card__label--disabled\\'}}\\\"\\n            >\\n              Plan\\n            </p>\\n            <p class=\\\"c-timeline-card__value\\\">\\n              {{record.forest-plan}}\\n            </p>\\n          </div>\\n        </div>\\n      </a>\\n    </div>\\n  {{/each}}\\n{{else}}\\n  <div class=\\\"c-integration-mixpanel-list-empty\\\">\\n    <div class=\\\"c-timeline-card__empty\\\">\\n      <Shared::DataDisplay::BetaIcon @iconName=\\\"🌍\\\" class=\\\"l-dmb\\\" />\\n      <h1 class=\\\"l-hmb\\\">\\n        No Mixpanel Events\\n      </h1>\\n      <p>\\n        There are no events yet.\\n      </p>\\n    </div>\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/integration/integration-mixpanel-list/template.hbs' });\n","import Component from '@glimmer/component';\n\nexport default class InterfaceCustomDomainPanelComponent extends Component {\n  get domainPlaceholder() {\n    const domainHint = this.args.project.name.replace(/\\s+/g, '-').toLowerCase();\n    return `e.g. admin.${domainHint}.com`;\n  }\n\n  get dnsEntry() {\n    const { domain } = this.args.customDomain;\n\n    let dnsEntry = domain ? domain.split('.').slice(0, -2).join('.') : '<your_domain>';\n    dnsEntry += ' IN CNAME app.forestadmin.com.';\n\n    return dnsEntry;\n  }\n\n  get corsValue() {\n    const { domain } = this.args.customDomain;\n    if (!domain) {\n      return null;\n    }\n\n    return `http://${domain},https://${domain}`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @title=\\\"Custom domain\\\"\\n  @onClose={{@close}}\\n  @validateAction={{@save}}\\n  @validateText=\\\"Save custom domain\\\"\\n  @hideCancel={{true}}\\n>\\n  <div class=\\\"c-interface-custom-domain-panel\\\">\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"warning\\\"\\n      @message=\\\"Forest Admin does not support applications that have a wildcard certificate on the same domain on another Heroku app.\\\"\\n      @canHide={{false}}\\n    />\\n\\n    <Shared::BetaLabel\\n      @label=\\\"Domain name\\\"\\n      @description=\\\"Choose your custom domain name to access Forest Admin\\\"\\n      class=\\\"c-interface-custom-domain-panel__name\\\"\\n    >\\n      <Shared::BetaInput\\n        @value={{@customDomain.domain}}\\n        @placeholder={{this.domainPlaceholder}}\\n        data-test-input-for=\\\"domain-name\\\"\\n      />\\n    </Shared::BetaLabel>\\n\\n    {{#if @customDomain.dnsRecord}}\\n      <Shared::ContentSeparator @withSideMargin={{false}} />\\n\\n      <Shared::BetaLabel\\n        @label=\\\"DNS Configuration\\\"\\n        class=\\\"c-interface-custom-domain-panel__dns\\\"\\n        @description=\\\"Add two CNAME records to your DNS. Do not delete these records, as they are required to update the certificate regularly.\\\"\\n      >\\n\\n        <div class=\\\"c-interface-custom-domain-panel__dns-container\\\">\\n          <Shared::BetaInput\\n            @readOnly={{true}}\\n            @copyable={{true}}\\n            @value={{this.dnsEntry}}\\n            data-test-input-for=\\\"dns-entry\\\"\\n          />\\n\\n          <Shared::BetaInput\\n            @readOnly={{true}}\\n            @copyable={{true}}\\n            @value={{@customDomain.dnsRecord}}\\n            data-test-input-for=\\\"dns-record-entry\\\"\\n          />\\n        </div>\\n      </Shared::BetaLabel>\\n\\n      <Shared::BetaLabel\\n        @label=\\\"CORS Configuration\\\"\\n        class=\\\"c-interface-custom-domain-panel__cors\\\"\\n        @description=\\\"Add the value to the environment variable CORS_ORIGINS\\\"\\n      >\\n        <Shared::BetaInput\\n          @readOnly={{true}}\\n          @copyable={{true}}\\n          @value={{this.corsValue}}\\n          @placeholder=\\\"Enter your domain name first\\\"\\n          data-test-input-for=\\\"cors-configuration\\\"\\n        />\\n      </Shared::BetaLabel>\\n    {{/if}}\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/interface/custom-domain-panel/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { bind, next } from '@ember/runloop';\nimport { isEmpty, isPresent } from '@ember/utils';\nimport { classNames, tagName } from '@ember-decorators/component';\n\n@tagName('div')\n@classNames('jsoneditor-component')\nexport default class JsonEditorComponent extends Component {\n  editor = null;\n  json = null;\n  mode = 'tree';\n  modes = null;\n  change = null;\n  onChange = null;\n  error = null;\n\n  search = false;\n  history = true;\n  name = 'JSONEditor';\n  indentation = 4;\n  _updating = false;\n  showMenu = false;\n\n  @computed(\n    '_change',\n    '_error',\n    'change',\n    'error',\n    'history',\n    'indentation',\n    'mode',\n    'modes',\n    'name',\n    'search',\n    'showMenu',\n  )\n  get options() {\n    const props = {\n      history: this.history,\n      indentation: this.indentation,\n      mode: this.mode,\n      modes: this.modes,\n      name: this.name,\n      search: this.search,\n      enableTransform: false,\n      mainMenuBar: this.showMenu,\n\n      // https://balinterdi.com/blog/ember-dot-run-dot-bind/\n      // assign internal change function to jsoneditor onChange\n      onChange: bind(this, this._change),\n\n      // assign internal error function to jsoneditor onError\n      onError: bind(this, this._error),\n    };\n\n    // set nodes if none passed in\n    const modes = ['code'];\n    props.modes = isPresent(props.modes) ? props.modes : modes;\n\n    return props;\n  }\n\n  async didInsertElement(...args) {\n    super.didInsertElement(...args);\n    const { default: JSONEditor } = await import('jsoneditor');\n\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n\n    const editor = new JSONEditor(this.element, this.options, this.json);\n\n    if (this.expand) {\n      editor.expandAll();\n    }\n\n    this.set('editor', editor);\n  }\n\n  didUpdateAttrs() {\n    super.didUpdateAttrs();\n    if (!this._updating && this.editor) {\n      this.editor.updateText(this.json ? JSON.stringify(this.json, null, 4) : '{}');\n    }\n  }\n\n  willDestroyElement() {\n    super.willDestroyElement();\n    this.editor?.destroy();\n    this.editor = null;\n  }\n\n  _error(error) {\n    const json = this.editor.getText();\n\n    if (json === '') {\n      this._update(null);\n    } else if (this.error) {\n      this.error(error);\n    }\n  }\n\n  /**\n  Change event handler.\n  Triggers `change()` which is user defined\n  */\n  _change() {\n    if (isEmpty(this.editor)) {\n      return;\n    }\n\n    try {\n      const json = this.editor.get();\n      this._update(json);\n    } catch (error) {\n      this._error(error);\n    }\n  }\n\n  _update(newValue) {\n    this._updating = true;\n    this.set('json', newValue);\n\n    // Trigger Change event\n    const change = this.onChange || this.change;\n    if (change) {\n      change(this.json);\n    }\n    next(() => {\n      this._updating = false;\n    });\n  }\n}\n","import Component from '@ember/component';\nimport { service } from '@ember/service';\nimport { tagName } from '@ember-decorators/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('')\nexport default class LayoutDetailLayoutDetailBodySettingsComponent extends Component {\n  @service lianaFeatures;\n\n  propTypes = {\n    collection: PropTypes.object.isRequired,\n    newDesign: PropTypes.bool,\n  };\n\n  newDesign = false;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @newDesign}}\\n  <div class=\\\"l-layout-detail-body-settings\\\">\\n    {{yield}}\\n  </div>\\n{{else}}\\n  <div class=\\\"l-overlay-sidepage__body\\\">\\n    <div\\n      class=\\\"l-overlay__sidepage__main l-overlay__sidepage__main--within-settings\\n        {{@mainContainerClass}}\\\"\\n    >\\n      {{yield}}\\n    </div>\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/layout-detail/layout-detail-body-settings/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { filterBy, sort } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tagName } from '@ember-decorators/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('')\nexport default class LayoutDetailLayoutDetailBodyComponent extends Component {\n  @service currentUser;\n  @service router;\n  @service store;\n\n  propTypes = {\n    hasClose: PropTypes.bool,\n    isNew: PropTypes.bool,\n    model: PropTypes.any,\n    showSideMenu: PropTypes.bool,\n    recordIdentifier: PropTypes.string,\n    currentSegmentId: PropTypes.string,\n  };\n\n  hasManySorting = ['position:asc', 'field.fieldName:asc'];\n\n  @sort('hasManyRows', 'hasManySorting') sortedHasManyRows;\n  @filterBy('sortedHasManyRows', 'isVisible', true) sortedHasManyRowsVisible;\n\n  @computed('isNew')\n  get viewType() {\n    return this.isNew ? 'view-create' : 'view-edit';\n  }\n\n  @computed('viewType')\n  get routeDetail() {\n    return `project.rendering.data.collection.list.${this.viewType}.details`;\n  }\n\n  @computed('currentUser.editMode', 'hasManyRows.length', 'sortedHasManyRowsVisible.length')\n  get showHasManyRows() {\n    return Boolean(\n      this.sortedHasManyRowsVisible.length\n        || (this.currentUser.editMode && this.hasManyRows.length),\n    );\n  }\n\n  @computed(\n    'isNew',\n    'model.collection.viewCreate.rowCreates.[]',\n    'model.collection.viewCreate.rowCreatesRelatedData',\n    'model.collection.viewEdit.rowEdits.[]',\n    'model.collection.viewEdit.rowEditsRelatedData',\n  )\n  get hasManyRows() {\n    if (this.isNew) {\n      return this.model.collection.viewCreate.rowCreatesRelatedData;\n    }\n    return this.model.collection.viewEdit.rowEditsRelatedData;\n  }\n\n  @computed('model.collection.integrations.[]', 'isNew')\n  get integrations() {\n    if (this.isNew || !this.model) {\n      return [];\n    }\n    return this.model.collection.integrations.sort();\n  }\n\n  @computed('integrations.length', 'showHasManyRows', 'showSideMenu')\n  get showMenu() {\n    const showSideMenu = this.showSideMenu ?? true;\n    return showSideMenu && (this.showHasManyRows || this.integrations.length > 0);\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    this.hasClose = this.hasClose ?? true;\n    this.isNew = this.isNew ?? false;\n    this.model = this.model ?? null;\n  }\n\n  @action\n  toggleVisibility(row) {\n    row.toggleProperty('isVisible');\n    row.save();\n  }\n\n  @action\n  reorderRowsAction(rowsReordered) {\n    const targetModelName = this.isNew ? 'row-create' : 'row-edit';\n    this.store.layoutBatchReorder(this.hasManyRows, rowsReordered, targetModelName);\n  }\n\n  @action\n  closeAction() {\n    this.router.transitionTo('project.rendering.data.collection.list');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-layout-details-body l-overlay-sidepage__body\\\">\\n  {{#if this.showMenu}}\\n    <SideMenu data-test-layout-detail-body-side-menu>\\n      {{#if this.showHasManyRows}}\\n        <SideMenu::Section @sectionTitle=\\\"Related Data\\\" @size=\\\"small\\\">\\n          <RelatedDataMenu\\n            @reorderRowsAction={{this.reorderRowsAction}}\\n            @groupName=\\\"layout-detail-related-data-menu\\\"\\n            @rows={{this.hasManyRows}}\\n            @linkTargetEmbedded=\\\"project.rendering.data.collection.list.{{this.viewType}}.view-has-many-embedded\\\"\\n            @linkTarget=\\\"project.rendering.data.collection.list.{{this.viewType}}.view-has-many\\\"\\n            @currentSegmentId={{@currentSegmentId}}\\n            @toggleVisibility={{this.toggleVisibility}}\\n            class=\\\"c-side-menu__list\\\"\\n          />\\n        </SideMenu::Section>\\n      {{/if}}\\n\\n      {{#each this.integrations as |integration|}}\\n        <SideMenu::Section @sectionTitle={{integration}} @size=\\\"small\\\">\\n          <SideMenu::IntegrationList\\n            @integration={{integration}}\\n            @model={{this.model}}\\n            @segmentId={{@currentSegmentId}}\\n          />\\n        </SideMenu::Section>\\n      {{/each}}\\n\\n      {{#if this.hasClose}}\\n        <div class=\\\"l-layout-details-body-close-section\\\">\\n          <Shared::Button::BetaButton\\n            @type=\\\"secondary\\\"\\n            @text=\\\"Close\\\"\\n            @action={{this.closeAction}}\\n            @async={{false}}\\n            class=\\\"c-layout-details-body__button-close\\\"\\n          />\\n        </div>\\n      {{/if}}\\n    </SideMenu>\\n  {{/if}}\\n\\n  <div class=\\\"l-overlay__sidepage__main\\\">\\n    {{yield}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/layout-detail/layout-detail-body/template.hbs' });\n","import Component from '@ember/component';\nimport { tagName } from '@ember-decorators/component';\n\n@tagName('')\nexport default class LayoutDetailLayoutDetailOverlayComponent extends Component {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-overlay\\\" id=\\\"details\\\">\\n  <div class=\\\"l-overlay__mask\\\"></div>\\n  <div class=\\\"l-overlay__sidepage l-overlay__sidepage--large\\\">\\n    {{yield}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/layout-detail/layout-detail-overlay/template.hbs' });\n","import { alias } from '@ember/object/computed';\n\nimport { any, argument, optional, shape } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport AnimationComponent from 'client/legacy/abstract-components/animation-component';\n\n@validateArguments\nexport default class LayoutLayoutAnimationComponent extends AnimationComponent {\n  @argument(String) title;\n  @argument(optional(any())) description;\n  @argument(optional(Boolean)) withNoBackground;\n  @argument(\n    shape({\n      introEndFrame: Number,\n      endFrame: Number,\n      filename: String,\n    }),\n  )\n  animation;\n\n  @alias('args.animation') currentAnimation;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-layout-animation {{if @withNoBackground \\'c-layout-animation--no-background\\'}}\\\"\\n  {{did-insert this.initAnimation}}\\n  ...attributes\\n>\\n  <div class=\\\"c-layout-animation__animation {{this.lottieContainerClassSelector}}\\\"></div>\\n  <h1 class=\\\"c-layout-animation__title\\\" data-test-layout-animation-title>\\n    {{@title}}\\n  </h1>\\n  <span class=\\\"c-layout-animation__description\\\" data-test-layout-animation-description>\\n    {{@description}}\\n    {{yield}}\\n  </span>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/layout/layout-animation/template.hbs' });\n","import { computed } from '@ember/object';\n\nimport Collection from 'client/data/models/collection';\nimport Condition from 'client/data/models/fragment-condition';\nimport { argument, arrayOf, oneOfType, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport AnimationComponent from 'client/legacy/abstract-components/animation-component';\nimport NestedCollection from 'client/utils/nested/collection';\n\n@validateArguments\nexport default class LayoutLayoutCollectionEmptyComponent extends AnimationComponent {\n  @argument(oneOfType([Collection, NestedCollection])) collection;\n\n  @argument(optional(String)) segmentId;\n  @argument(optional(arrayOf(Condition))) filters;\n  @argument(optional(String)) searchValue;\n  @argument(optional(Function)) openCreateRecord;\n  @argument(optional(Function)) enableSearchExtended;\n  @argument(optional(Boolean)) isSection;\n  @argument(optional(Boolean)) displaySearchExtendedButton;\n  @argument(optional(String)) displayName;\n\n  @computed('args.collection.pluralizedDisplayName', 'args.displayName')\n  get displayNamePlural() {\n    return this.args.displayName || this.args.collection.pluralizedDisplayName;\n  }\n\n  @computed('args.collection.displayNamePluralLowerCase', 'args.displayName')\n  get displayNamePluralLowerCase() {\n    return this.args.displayName?.toLowerCase() || this.args.collection.displayNamePluralLowerCase;\n  }\n\n  currentAnimation = {\n    introEndFrame: 50,\n    endFrame: 290,\n    filename: 'error_no_match.json',\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-layout-collection-empty {{if @isSection \\'c-layout-collection-empty--section\\'}}\\\"\\n  ...attributes\\n  {{did-insert this.initAnimation}}\\n>\\n  <div class=\\\"c-layout-collection-empty__animation {{this.lottieContainerClassSelector}}\\\"></div>\\n\\n  {{#if @searchValue}}\\n    <h1 class=\\\"c-layout-collection-empty__title\\\">\\n      No\\n      {{this.displayNamePlural}}\\n      match your search\\n    </h1>\\n    <span class=\\\"c-layout-collection-empty__description\\\">\\n      Nothing found for « {{@searchValue}} »\\n    </span>\\n\\n    {{#if @displaySearchExtendedButton}}\\n      <Shared::Button::BetaButton\\n        @action={{@enableSearchExtended}}\\n        @text=\\\"Try an extended search\\\"\\n        @type=\\\"link-primary\\\"\\n        @underline={{false}}\\n        class=\\\"c-layout-collection-empty__action\\\"\\n      />\\n    {{/if}}\\n  {{else if @filters.length}}\\n    <h1 class=\\\"c-layout-collection-empty__title\\\">\\n      No\\n      {{this.displayNamePlural}}\\n      match your filters\\n    </h1>\\n    <span class=\\\"c-layout-collection-empty__description\\\">\\n      Nothing found\\n    </span>\\n  {{else if @segmentId}}\\n    <h1 class=\\\"c-layout-collection-empty__title\\\">\\n      No\\n      {{this.displayNamePlural}}\\n      match the segment\\n    </h1>\\n    <span class=\\\"c-layout-collection-empty__description\\\">\\n      Nothing found\\n    </span>\\n  {{else}}\\n    <h1 class=\\\"c-layout-collection-empty__title\\\" data-test-layout-collection-empty-title>\\n      No\\n      {{this.displayNamePlural}}\\n    </h1>\\n    <span class=\\\"c-layout-collection-empty__description\\\">\\n      There are no\\n      {{this.displayNamePluralLowerCase}}\\n      yet.\\n    </span>\\n\\n    {{#if (and @openCreateRecord (not @isSection))}}\\n      <Shared::Button::BetaButton\\n        @action={{@openCreateRecord}}\\n        @async={{false}}\\n        @regular={{false}}\\n        @text=\\\"Create the first one\\\"\\n        @type=\\\"primary\\\"\\n        class=\\\"c-layout-collection-empty__action\\\"\\n        data-test-layout-layout-collection-empty-create-button\\n      />\\n    {{/if}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/layout/layout-collection-empty/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tagName } from '@ember-decorators/component';\n\nimport {\n  ERROR_ACCESS_RESOURCE_FORBIDDEN,\n  ERROR_NOT_FOUND,\n  ERROR_UNEXPECTED_DATA,\n  ERROR_UNEXPECTED_LAYOUT,\n  ERROR_UNREACHABLE_DATA,\n} from 'client/config/errors';\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nconst ERRORS_TO_ANIMATIONS = {\n  ERROR_PAGE_TOO_FAR: (options) => ({\n    title: `Page ${options.currentPage} doesn't exist.`,\n    actionText: 'Get back to previous page',\n    onClickAction: options.onClick,\n    animationDetail: {\n      introEndFrame: 37,\n      endFrame: 217,\n      filename: 'error_not_found.json',\n    },\n  }),\n  ERROR_RETURNED_DATA: (options) => ({\n    title: 'The request to your server either failed or returned invalid data.',\n    description: 'Please check your console logs to get more information.',\n    animationDetail: {\n      introEndFrame: 60,\n      endFrame: 120,\n      filename: 'error_unexpected_data.json',\n    },\n    actionText: options.isFullHostedProject ? 'Try to synchronize the database structure.' : null,\n    onClickAction: () => options.router.transitionTo('project.project-settings.environments'),\n  }),\n  ERROR_SENT_DATA: () => ({\n    title: 'Your request seems invalid. Please contact your administrator.',\n    description: 'Please check your console logs to get more information.',\n    animationDetail: {\n      introEndFrame: 60,\n      endFrame: 120,\n      filename: 'error_unexpected_data.json',\n    },\n  }),\n  ERROR_NO_PRIMARY_KEY: () => ({\n    title: 'This collection does not have a primary key',\n    description:\n      'Collections without at least one primary key cannot be browsed nor edited. They can be used in charts though.',\n    animationDetail: {\n      introEndFrame: 60,\n      endFrame: 120,\n      filename: 'error_unexpected_data.json',\n    },\n  }),\n  ERROR_UNEXPECTED_DATA: () => ({\n    title: 'Your server encountered an error',\n    description: 'Please check your server logs for more information.',\n    animationDetail: {\n      introEndFrame: 60,\n      endFrame: 120,\n      filename: 'error_unexpected_data.json',\n    },\n  }),\n  ERROR_UNEXPECTED_LAYOUT: () => ({\n    title: 'Our server encountered an error',\n    description: 'An unexpected error occurred.',\n    animationDetail: {\n      introEndFrame: 60,\n      endFrame: 120,\n      filename: 'error_unexpected_layout.json',\n    },\n  }),\n  ERROR_UNKNOWN: () => ({\n    title: 'An error occurred',\n    description: 'Please try again or contact us if the problem persists.',\n    animationDetail: {\n      introEndFrame: 60,\n      endFrame: 120,\n      filename: 'error_unexpected_layout.json',\n    },\n  }),\n  ERROR_UNREACHABLE_DATA: () => ({\n    title: 'Cannot reach your data',\n    description:\n      'Your server may be down or your database connection broken.<br />Please check your server logs for more information.',\n    animationDetail: {\n      introEndFrame: 40,\n      endFrame: 84,\n      filename: 'error_unreachable_data.json',\n    },\n  }),\n  ERROR_ACCESS_RECORD_FORBIDDEN: () => ({\n    title: 'Record access forbidden',\n    description: \"You don't have access to the details of this record.\",\n    animationDetail: {\n      introEndFrame: 60,\n      endFrame: 80,\n      filename: 'error_access_record_forbidden.json',\n    },\n  }),\n  ERROR_ACCESS_RESOURCE_FORBIDDEN: (options) => ({\n    title: 'Resource access forbidden',\n    description: options.description,\n    animationDetail: {\n      introEndFrame: 60,\n      endFrame: 80,\n      filename: 'error_access_record_forbidden.json',\n    },\n  }),\n  ERROR_ACCESS_COLLECTION_FORBIDDEN: () => ({\n    title: 'Data access forbidden',\n    description:\n      \"Your role doesn't grant you permission to view the data of this collection.<br>\"\n      + 'Please contact the admin of this project.',\n    animationDetail: {\n      introEndFrame: 60,\n      endFrame: 80,\n      filename: 'error_access_record_forbidden.json',\n    },\n  }),\n  ERROR_CREATE_RECORD_FORBIDDEN: () => ({\n    title: 'Record creation forbidden',\n    description: \"You don't have right to create a new record.\",\n    animationDetail: {\n      introEndFrame: 60,\n      endFrame: 80,\n      filename: 'error_access_record_forbidden.json',\n    },\n  }),\n  ERROR_NOT_FOUND: (options) => ({\n    title: `${options.target} cannot be found`,\n    animationDetail: {\n      introEndFrame: 37,\n      endFrame: 217,\n      filename: 'error_not_found.json',\n    },\n  }),\n  ERROR_ENVIRONMENT_DISABLED: (options) => ({\n    title: `The ${options.roleName} role does not have access to this environment.`,\n    description: '<strong>Enable it in the left menu</strong> to start setting permissions.',\n    animationDetail: {\n      introEndFrame: 60,\n      endFrame: 80,\n      filename: 'error_access_record_forbidden.json',\n    },\n  }),\n  ERROR_NO_ENVIRONMENT_AVAILABLE: () => ({\n    title: 'Access forbidden',\n    description:\n      'You don’t have access to any environment.<br>'\n      + 'You can create a development environment in the Environments settings.<br>'\n      + 'If you’re not a developer, please contact the admin of this project.<br>',\n    animationDetail: {\n      introEndFrame: 60,\n      endFrame: 80,\n      filename: 'error_access_record_forbidden.json',\n    },\n  }),\n  ERROR_REDIRECTION_LOOP: () => ({\n    title: 'Failed to redirect to HTTP',\n    description: `\n      In order to reach your development server, we need to temporarily redirect you out of the secure version of the app.<br/>\n      Your browser is preventing us to do so.<br/><br/>\n\n      If using Firefox's \"HTTPS-Only mode\" or a privacy extension, please add an exception for this site.\n    `,\n    animationDetail: {\n      introEndFrame: 60,\n      endFrame: 120,\n      filename: 'error_unexpected_layout.json',\n    },\n  }),\n  ERROR_UNAUTHORIZED: () => ({\n    title: 'Unauthorized',\n    description: `Your session token seems invalid. Try to refresh your page or to reconnect.`,\n    animationDetail: {\n      introEndFrame: 60,\n      endFrame: 120,\n      filename: 'error_unexpected_layout.json',\n    },\n  }),\n};\n\n// NOTICE: Errors that need the \"contact us\" part\nconst ERRORS_WITH_CONTACT_US = [\n  ERROR_UNEXPECTED_DATA,\n  ERROR_UNEXPECTED_LAYOUT,\n  ERROR_UNREACHABLE_DATA,\n];\n\n@tagName('')\nexport default class LayoutLayoutErrorComponent extends Component {\n  @service abilities;\n  @service router;\n  @service lianaSession;\n\n  propTypes = {\n    error: PropTypes.shape({\n      type: PropTypes.string.isRequired,\n      options: PropTypes.shape({\n        target: PropTypes.string,\n      }),\n    }).isRequired,\n  };\n\n  @computed('error.{options,type}', 'lianaSession.currentEnvironment.isFullHostedAgent')\n  get currentError() {\n    const errorBuilder =\n      ERRORS_TO_ANIMATIONS[this.error?.type] || ERRORS_TO_ANIMATIONS.ERROR_UNKNOWN;\n    return errorBuilder({\n      ...this.error.options,\n      router: this.router,\n      isFullHostedProject: this.lianaSession.currentEnvironment?.isFullHostedAgent,\n    });\n  }\n\n  @computed('abilities', 'error.type')\n  get displayContactUs() {\n    return (\n      this.abilities.cannot('access to whiteLabel')\n      && ERRORS_WITH_CONTACT_US.includes(this.error.type)\n    );\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    if (!this.error) {\n      throw new MissingRequiredPropertyError('error');\n    }\n\n    if (\n      this.error.type === ERROR_NOT_FOUND\n      && (!this.error.options || !this.error.options.target)\n    ) {\n      throw new MissingRequiredPropertyError('error.options.target');\n    }\n\n    if (\n      this.error.type === ERROR_ACCESS_RESOURCE_FORBIDDEN\n      && (!this.error.options || !this.error.options.description)\n    ) {\n      throw new MissingRequiredPropertyError('error.options.description');\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let\\n  (if\\n    this.currentError.actionText\\n    (component\\n      \\'shared/button/beta-button\\'\\n      type=\\'link-primary\\'\\n      text=this.currentError.actionText\\n      action=this.currentError.onClickAction\\n      underline=false\\n    )\\n    (html-safe this.currentError.description)\\n  )\\n  as |description|\\n}}\\n  <Layout::LayoutAnimation\\n    @title={{this.currentError.title}}\\n    @description={{description}}\\n    @animation={{this.currentError.animationDetail}}\\n    @withNoBackground={{@withNoBackground}}\\n    data-test-layout-error={{@error.type}}\\n    ...attributes\\n  >\\n    {{yield}}\\n    {{#if this.displayContactUs}}\\n      <span class=\\\"c-layout-error__contact-us\\\">\\n        If the error persists, please\\n        <a\\n          class=\\\"c-layout-error__link\\\"\\n          href=\\\"https://community.forestadmin.com/\\\"\\n          target=\\\"_blank\\\"\\n          rel=\\\"noopener noreferrer\\\"\\n        >\\n          {{~\\'let us know\\'~}}\\n        </a>.\\n      </span>\\n    {{/if}}\\n  </Layout::LayoutAnimation>\\n{{/let}}\\n', { moduleName: 'client/legacy/pods/components/layout/layout-error/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\n@classNames('l-overlay__sidepage__footer')\nexport default class LayoutLayoutFooterComponent extends Component {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-layout-list-empty {{if @isSection \\'c-layout-list-empty--section\\'}}\\\" ...attributes>\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName={{@icon}}\\n    @size=\\\"custom\\\"\\n    class=\\\"c-layout-list-empty__icon\\\"\\n  />\\n  <h1 class=\\\"c-layout-list-empty__title\\\">{{@title}}</h1>\\n  {{#if @text}}\\n    <span class=\\\"c-layout-list-empty__description\\\">\\n      {{! template-lint-disable no-triple-curlies }}\\n      {{{@text}}}\\n    </span>\\n  {{/if}}\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/layout/layout-list-empty/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\n@classNames('c-layout-list-sections')\nexport default class LayoutLayoutListSectionsComponent extends Component {}\n","import Component from '@ember/component';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-layout-list-sections-item')\n@classNameBindings('isActive:c-layout-list-sections-item--active')\nexport default class LayoutLayoutListSectionsItemComponent extends Component {\n  propTypes = {\n    action: PropTypes.func.isRequired,\n    isActive: PropTypes.bool,\n  };\n\n  click() {\n    this.action();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @iconName}}\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName={{@iconName}}\\n    class=\\\"c-layout-list-sections-item__icon\\\"\\n  />\\n{{/if}}\\n<span class=\\\"c-layout-list-sections-item__name\\\">\\n  {{@name}}\\n</span>\\n', { moduleName: 'client/legacy/pods/components/layout/layout-list-sections/item/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-layout-list-sections__content\\\">\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/layout/layout-list-sections/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { argument, oneOf, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\nconst LOADERS_TO_ANIMATIONS = {\n  project: () => {\n    const quotes = [\n      {\n        sentence:\n          'I was a beach boy, and I believe I learned my songs from the birds of the Brazilian forest.',\n        author: 'Antonio Carlos Jobim',\n      },\n      {\n        sentence: 'A forest of these trees is a spectacle too much for one man to see.',\n        author: 'David Douglas',\n      },\n      {\n        sentence:\n          'When the oak is felled the whole forest echoes with its fall, but a hundred acorns are sown in silence by an unnoticed breeze.',\n        author: 'Thomas Carlyle',\n      },\n      {\n        sentence:\n          \"I grew up in a forest. It's like a room. It's protected. Like a cathedral… it is a place between heaven and earth.\",\n        author: 'Anselm Kiefer',\n      },\n      { sentence: 'A forest bird never wants a cage.', author: 'Henrik Ibsen' },\n      {\n        sentence: \"Adapt or perish, now as ever, is nature's inexorable imperative.\",\n        author: 'H. G. Wells',\n      },\n      {\n        sentence: 'Today I have grown taller from walking with the trees.',\n        author: 'Karle Wilson Baker',\n      },\n      {\n        sentence: 'A multitude of small delights constitutes happiness.',\n        author: 'Charles Baudelaire',\n      },\n      {\n        sentence:\n          'Green is the prime color of the world, and that from which its loveliness arises.',\n        author: 'Pedro Calderon de la Barca',\n      },\n      {\n        sentence: 'Adopt the pace of nature. Her secret is patience.',\n        author: 'Ralph Waldo Emerson',\n      },\n      {\n        sentence: \"Even if one tree falls down it wouldn't affect the entire forest.\",\n        author: 'Chen Shui-bian',\n      },\n      {\n        sentence: 'Autumn is a second spring when every leaf is a flower.',\n        author: 'Albert Camus',\n      },\n      { sentence: 'Nothing is art if it does not come from nature.', author: 'Antoni Gaudi' },\n      {\n        sentence:\n          'If the tongue had not been framed for articulation, man would still be a beast in the forest.',\n        author: 'Ralph Waldo Emerson',\n      },\n      {\n        sentence: 'Save the elephants, and then you save the forest - and then you save yourself.',\n        author: 'Mark Shand',\n      },\n      {\n        sentence:\n          'A single tree in the tropical forest in the south of Mexico has more different species than some European countries.',\n        author: 'Carlos Salinas de Gortari',\n      },\n    ];\n\n    const index = Math.floor(Math.random() * quotes.length);\n    const quote = quotes[index];\n    return {\n      title: quote.sentence,\n      description: quote.author,\n      animationDetail: {\n        introEndFrame: 0,\n        endFrame: 780,\n        filename: 'loader_project.json',\n      },\n    };\n  },\n  rendering: () => ({\n    title: 'Your project is being configured.',\n    description:\n      'This page will be reloaded automatically when the operation is completed, the process can take up to one minute.',\n    animationDetail: {\n      introEndFrame: 0,\n      endFrame: 121,\n      filename: 'loader_rendering.json',\n    },\n  }),\n  data: () => ({\n    title: \"Wait, we're loading your data\",\n    description: 'Relax and take a deep breath.',\n    animationDetail: {\n      introEndFrame: 28,\n      endFrame: 68,\n      filename: 'loader_data.json',\n    },\n  }),\n  adminPanelGeneration: () => ({\n    title: 'Forest Admin is building your admin panel.',\n    description: 'This process can take up to one minute and you will be automatically redirected.',\n    animationDetail: {\n      introEndFrame: 0,\n      endFrame: 121,\n      filename: 'loader_rendering.json',\n    },\n  }),\n  loading: () => ({\n    title: 'Loading...',\n    animationDetail: {\n      introEndFrame: 28,\n      endFrame: 68,\n      filename: 'loader_data.json',\n    },\n  }),\n};\n\n@validateArguments\nexport default class LayoutLayoutLoaderComponent extends Component {\n  @argument(oneOf(...Object.keys(LOADERS_TO_ANIMATIONS))) type;\n  @argument(optional(Boolean)) withNoBackground;\n\n  get currentLoader() {\n    return LOADERS_TO_ANIMATIONS[this.args.type]();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Layout::LayoutAnimation\\n  @title={{this.currentLoader.title}}\\n  @description={{this.currentLoader.description}}\\n  @animation={{this.currentLoader.animationDetail}}\\n  @withNoBackground={{@withNoBackground}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/layout/layout-loader/template.hbs' });\n","import { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport AnimationComponent from 'client/legacy/abstract-components/animation-component';\n\n@validateArguments\nexport default class LayoutLayoutProjectEmptyComponent extends AnimationComponent {\n  @argument(optional(String)) searchValue;\n\n  currentAnimation = {\n    introEndFrame: 50,\n    endFrame: 290,\n    filename: 'error_no_match.json',\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-layout-collection-empty {{if @isSection \\'c-layout-collection-empty--section\\'}}\\\"\\n  {{did-insert this.initAnimation}}\\n  ...attributes\\n>\\n  <div class=\\\"c-layout-collection-empty__animation {{this.lottieContainerClassSelector}}\\\"></div>\\n\\n  <h1 class=\\\"c-layout-collection-empty__title\\\">\\n    No projects match your search\\n  </h1>\\n  <span class=\\\"c-layout-collection-empty__description\\\">\\n    Nothing found for «&nbsp;{{@searchValue}}&nbsp;»\\n  </span>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/layout/layout-project-empty/template.hbs' });\n","import { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { argument, oneOf, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { TYPES } from 'client/shared/components/button/beta-button/component';\n\n@validateArguments\nexport default class LinkToProjectsComponent extends Component {\n  @argument(String) text;\n  @argument(optional(String)) class;\n  @argument(optional(String)) iconName;\n  @argument(oneOf(...TYPES)) type;\n\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.currentOrganization.model.isPersonal}}\\n  <Shared::Navigation::BetaLinkTo\\n    @type={{@type}}\\n    @underline={{false}}\\n    @iconName={{@iconName}}\\n    @isIconAfterText={{false}}\\n    @text={{@text}}\\n    @routeName=\\\"projects\\\"\\n    @regular={{false}}\\n    class={{@class}}\\n  />\\n{{else}}\\n  <Shared::Navigation::BetaLinkTo\\n    @type={{@type}}\\n    @underline={{false}}\\n    @iconName={{@iconName}}\\n    @isIconAfterText={{false}}\\n    @text={{@text}}\\n    @routeName=\\\"projects\\\"\\n    @queryParams={{hash organization=this.currentOrganization.model.name}}\\n    @regular={{false}}\\n    class={{@class}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/link-to-projects/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport CollectionModel from 'client/data/models/collection';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class LinkToRecordsComponent extends Component {\n  propTypes = {\n    recordIds: PropTypes.array.isRequired, // isRequired\n    // Cant be required due to async resources\n    collection: PropTypes.instanceOf(CollectionModel),\n    forceDisableLink: PropTypes.bool,\n    linkClassName: PropTypes.string,\n    target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top'], PropTypes.string),\n  };\n\n  @service currentUser;\n  @service lianaSession;\n  /** @type {import('client/features/client-record/services/feature').default} */\n  @service('feature/client-record') clientRecordFeature;\n\n  @tracked recordPath = 'project.rendering.data.collection.list.view-edit.details';\n\n  @action\n  updateRecordPath() {\n    if (this.args.collection && !this.args.forceDisableLink) {\n      // NOTICE: Compute the recordPath to redirect to details or summary when the view is available\n      this.recordPath = this.clientRecordFeature.getRecordPath(this.args.collection);\n    }\n  }\n\n  get linkClassNameDisabled() {\n    return this.args.linkClassName\n      ? this.args.linkClassName\n          .split(' ')\n          .filter(Boolean)\n          .map((className) => `${className}--disabled`)\n          .join(' ')\n      : '';\n  }\n\n  get onSingleRecord() {\n    return this.args.recordIds?.length === 1;\n  }\n\n  get onSeveralRecords() {\n    return this.args.recordIds?.length > 1;\n  }\n\n  get firstRecordId() {\n    return this.args.recordIds[0];\n  }\n\n  get filter() {\n    return JSON.stringify({\n      type: 'or',\n      conditions: this.args.recordIds.map((id) => ({\n        fieldName: this.args.collection.get('primaryKey'),\n        operator: 'is',\n        value: id,\n      })),\n    });\n  }\n\n  get linkImpossible() {\n    return (\n      this.args.forceDisableLink\n      || !this.args.collection?.get('displayNameLowerCase')\n      || !this.currentUser.canBrowseCollection(this.args.collection)\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-link-to-record\\\"\\n  {{did-insert this.updateRecordPath}}\\n  {{did-update this.updateRecordPath @collection}}\\n  ...attributes\\n>\\n\\n  {{#if this.linkImpossible}}\\n    <span\\n      class=\\\"{{@linkClassName}} {{this.linkClassNameDisabled}}\\\"\\n      data-test-link-to-record-link-impossible\\n    >\\n      {{yield this.onSingleRecord false}}\\n    </span>\\n  {{else if this.onSingleRecord}}\\n    <LinkTo\\n      @route={{this.recordPath}}\\n      @models={{array @collection.shareableId @collection.shareableId this.firstRecordId}}\\n      target={{@target}}\\n      class={{@linkClassName}}\\n      data-test-link-to-record-link\\n    >\\n      {{yield true true}}\\n    </LinkTo>\\n  {{else if this.onSeveralRecords}}\\n    <LinkTo\\n      @route=\\\"project.rendering.data.collection.list.index\\\"\\n      @model={{@collection.shareableId}}\\n      @query={{hash filter=this.filter}}\\n      target={{@target}}\\n      class={{@linkClassName}}\\n      data-test-link-to-record-link\\n    >\\n      {{yield false true}}\\n    </LinkTo>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/link-to-records/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-migration-form\\\" ...attributes>\\n  <h1 class=\\\"c-migration-form__title\\\" data-test-migration-title>\\n    {{@title}}\\n  </h1>\\n  <p class=\\\"c-migration-form__description\\\" data-test-migration-description>\\n    {{yield}}\\n  </p>\\n\\n  <div class=\\\"l-migration-form-button-wrapper\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @text=\\\"Back\\\"\\n      @async={{false}}\\n      @action={{@backAction}}\\n      class=\\\"c-migration-form__button\\\"\\n      title=\\\"Back\\\"\\n      data-test-go-back\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @text=\\\"Start migration process\\\"\\n      @async={{false}}\\n      @action={{@nextAction}}\\n      @disabled={{@disableStartMigration}}\\n      class=\\\"c-migration-form__button\\\"\\n      id=\\\"migration-forms-start-migration\\\"\\n      title=\\\"Start migration process\\\"\\n      data-test-go-next\\n    />\\n    {{#if @showTooltip}}\\n      <Shared::Feedback::BetaTooltip\\n        @targetId=\\\"migration-forms-start-migration\\\"\\n        @isAlwaysShown={{true}}\\n        @side=\\\"bottom\\\"\\n      >\\n        Please upgrade all your environments to the latest Agent version to start the migration.\\n      </Shared::Feedback::BetaTooltip>\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/migration/forms/intro/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-migration-helpers-intro\\\" ...attributes>\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/migration/helpers/intro/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<p class=\\\"c-migration-helpers-paragraph\\\" ...attributes>\\n  {{yield \\'c-migration-helpers-paragraph__important\\'}}\\n</p>\\n', { moduleName: 'client/legacy/pods/components/migration/helpers/paragraph/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-migration-helpers-section\\\" ...attributes>\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/migration/helpers/section/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<h2 class=\\\"c-migration-helpers-title\\\" ...attributes>\\n  {{@title}}\\n</h2>\\n', { moduleName: 'client/legacy/pods/components/migration/helpers/title/template.hbs' });\n","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class ModalExportsFromToComponent extends Component {\n  static propTypes = {\n    onClose: PropTypes.func.isRequired,\n    exports: PropTypes.func.isRequired,\n    title: PropTypes.string.isRequired,\n  };\n\n  dateFormat = 'L';\n\n  @tracked from;\n  // Tricks because we only need the YYYY-MM-DD part of the ISO date (only import for this default value)\n  @tracked to = new Date().toISOString().split('T')[0];\n\n  get disableButton() {\n    return !this.from || !this.to || this.from > this.to;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @title={{@title}}\\n  @onClose={{@onClose}}\\n  @noCloseButton={{false}}\\n  @contentClass=\\\"c-export-modal-from-to\\\"\\n  data-test-export-modal-from-to\\n  ...attributes\\n>\\n  <div class=\\\"c-export-modal-from-to__body\\\">\\n    <div class=\\\"c-export-modal-from-to__text\\\" data-test-export-modal-from-to-yield>\\n      {{yield}}\\n    </div>\\n    <div class=\\\"c-export-modal-from-to__date-range\\\">\\n      <p>From</p>\\n      <div class=\\\"c-export-modal-from-to__date-input\\\">\\n        <Shared::BetaInputDate\\n          @value={{this.from}}\\n          @isDateOnly={{true}}\\n          @format={{this.dateFormat}}\\n          @maxDate={{this.to}}\\n          @rangeEnd={{this.to}}\\n          @rangeStart={{this.from}}\\n          data-test-export-input-from\\n        />\\n      </div>\\n      <p>to</p>\\n      <div class=\\\"c-export-modal-from-to__date-input\\\">\\n        <Shared::BetaInputDate\\n          @value={{this.to}}\\n          @isDateOnly={{true}}\\n          @format={{this.dateFormat}}\\n          @minDate={{this.from}}\\n          @rangeStart={{this.from}}\\n          @rangeEnd={{this.to}}\\n          data-test-export-input-to\\n        />\\n      </div>\\n    </div>\\n  </div>\\n  <div class=\\\"c-export-modal-from-to__footer\\\">\\n    <div class=\\\"c-export-modal-from-to__footer--cancel\\\">\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @disabled={{false}}\\n        @action={{@onClose}}\\n        @async={{false}}\\n        @text=\\\"Cancel\\\"\\n        data-test-export-cancel-button\\n      />\\n    </div>\\n    <div class=\\\"c-export-modal-from-to__footer--export\\\">\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @text=\\\"Export\\\"\\n        @async={{false}}\\n        @disabled={{this.disableButton}}\\n        @action={{fn @exports this.from this.to}}\\n        class=\\\"c-export-modal-from-to__validate-button\\\"\\n        data-test-export-export-button\\n      />\\n    </div>\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/modal-exports-from-to/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type FolderModel from 'client/data/models/folder';\nimport type FolderChildNestedDocument from 'client/data/models/folder-child';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport { KEY } from 'client/utils/keyboard';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Arguments {\n  onClose: () => void;\n}\n\n@validateArguments\nexport default class ModalGlobalSearchComponent extends Component<Arguments> {\n  static propTypes = {\n    onClose: PropTypes.func.isRequired,\n  };\n\n  @service('feature/folder') private folderFeatureService: FolderFeatureService;\n  @service private router: RouterService;\n\n  @tracked public selectedItem: HTMLElement;\n  @tracked public searchValue = '';\n\n  constructor(owner: unknown, args: Arguments) {\n    super(owner, args);\n\n    document.addEventListener('keydown', this._onKeyDown);\n    this.router.on('routeWillChange', this.args.onClose);\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    document.removeEventListener('keydown', this._onKeyDown);\n    this.selectedItem = null;\n    this.router.off('routeWillChange', this.args.onClose);\n  }\n\n  public get mainFolder() {\n    return this.folderFeatureService.getMainFolder();\n  }\n\n  getAllLinkItems(extraSelector = '') {\n    return document.querySelectorAll<HTMLElement>(\n      `.js-modal-global-search-items [data-navigation-beta-side-menu-item-link]${extraSelector}`,\n    );\n  }\n\n  selectItem(item: HTMLElement) {\n    if (!item) {\n      this.selectedItem = null;\n      return;\n    }\n\n    const items = this.getAllLinkItems('[data-is-selected]');\n    items.forEach((itemToUpdate) => itemToUpdate.removeAttribute('data-is-selected'));\n\n    item.setAttribute('data-is-selected', 'true');\n    this.selectedItem = item;\n  }\n\n  @action\n  selectFirstItem() {\n    const items = this.getAllLinkItems();\n    this.selectItem(items[0]);\n  }\n\n  @action\n  public getChildren(container: FolderModel | FolderChildNestedDocument) {\n    return this.folderFeatureService.getChildrenMatchingSearch(container, this.searchValue);\n  }\n\n  @action\n  public _onKeyDown(event: KeyboardEvent) {\n    switch (event.key) {\n      case KEY.ESCAPE:\n        this.args.onClose();\n        break;\n      case KEY.ENTER:\n        this.openCurrentItem();\n        break;\n      case KEY.UP_ARROW:\n        this.selectNextItem(-1);\n        break;\n      case KEY.DOWN_ARROW:\n        this.selectNextItem();\n        break;\n      default:\n        break;\n    }\n  }\n\n  @action\n  public async handleInput() {\n    await waitForNextRunLoop();\n    this.selectFirstItem();\n  }\n\n  selectNextItem(step?: number) {\n    this.selectItem(this.getNextItem(step));\n    ModalGlobalSearchComponent.scrollElementIntoView(this.selectedItem);\n  }\n\n  private getNextItem(step = 1) {\n    const items = [...this.getAllLinkItems().values()];\n    const currentIndex = items.indexOf(this.selectedItem);\n    if (currentIndex === -1) return items[0];\n\n    return items.at((currentIndex + step) % items.length);\n  }\n\n  openCurrentItem() {\n    this.selectedItem?.click();\n    this.args.onClose();\n  }\n\n  static scrollElementIntoView(item: HTMLElement) {\n    item?.scrollIntoView({ behavior: 'smooth', block: 'nearest' });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Modal::ModalWindow\\n  @onClickOutside={{@onClose}}\\n  @hasCustomSize={{true}}\\n  class=\\\"c-modal-global-search\\\"\\n  data-test-modal-global-search\\n  ...attributes\\n>\\n  <div class=\\\"l-modal-global-search-header\\\">\\n    <label class=\\\"l-modal-global-search-header__search\\\">\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName=\\\"search\\\"\\n        class=\\\"c-modal-global-search__search-icon\\\"\\n        data-test-modal-global-search-icon\\n      />\\n      <Input\\n        @type=\\\"text\\\"\\n        @value={{this.searchValue}}\\n        autocomplete=\\\"off\\\"\\n        placeholder=\\\"Jump to…\\\"\\n        class=\\\"c-modal-global-search__input\\\"\\n        data-test-modal-global-search-input\\n        {{autofocus}}\\n        {{on \\'input\\' this.handleInput}}\\n      />\\n    </label>\\n    <Shared::BetaIconButton\\n      @color=\\\"secondary-disabled\\\"\\n      @icon=\\\"close\\\"\\n      @size=\\\"medium\\\"\\n      class=\\\"c-modal-global-search__close\\\"\\n      data-test-modal-global-search-close\\n      {{on \\'click\\' @onClose}}\\n    />\\n  </div>\\n  <div\\n    class=\\\"l-modal-global-search-items js-modal-global-search-items\\\"\\n    data-test-modal-global-search-items\\n    {{did-insert this.selectFirstItem}}\\n  >\\n    <Navigation::BetaSideMenu::Section>\\n      {{#if this.mainFolder}}\\n        <Feature::Folder\\n          @item={{this.mainFolder}}\\n          @getChildren={{this.getChildren}}\\n          @isEditable={{true}}\\n          @isDraggable={{false}}\\n          @inSingleBlock={{true}}\\n        />\\n      {{/if}}\\n    </Navigation::BetaSideMenu::Section>\\n  </div>\\n</Modal::ModalWindow>\\n', { moduleName: 'client/legacy/pods/components/modal-global-search/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tagName } from '@ember-decorators/component';\nimport { queryManager } from 'ember-apollo-client';\n\nimport { MissingRequiredPropertyError, WrongPropertyValueError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('')\nexport default class ModalModalDeployLayoutChangesComponent extends Component {\n  constructor(...args) {\n    super(...args);\n\n    this.propTypes = {\n      closeAction: PropTypes.func.isRequired,\n      environmentId: PropTypes.string.isRequired,\n      originEnvironmentName: PropTypes.string.isRequired,\n      isOriginEnvironmentReference: PropTypes.bool.isRequired,\n    };\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    if (!this.closeAction) {\n      throw new MissingRequiredPropertyError('closeAction');\n    }\n\n    if (typeof this.closeAction !== 'function') {\n      throw new WrongPropertyValueError('closeAction', this.closeAction);\n    }\n\n    if (!this.environmentId) {\n      throw new MissingRequiredPropertyError('environmentId');\n    }\n\n    if (typeof this.environmentId !== 'string') {\n      throw new WrongPropertyValueError('environmentId', this.environmentId);\n    }\n  }\n\n  @service toastr;\n  @service serverFetch;\n  @service errorHandler;\n  /**\n   * ⚠ ember-apollo-client provides this @queryManager\n   * BUT there is a bug with this library on overwritten routes\n   * The code from here: https://github.com/ember-graphql/ember-apollo-client/blob/v4.0.2/addon/-private/apollo/setup-hooks.js\n   * is not returning the promise from the original function, leading\n   * to bugs when beforeModel is asynchronous on a route.\n   */\n  @queryManager() apollo;\n\n  async getSecretKey() {\n    const responseEnvSecret = await this.serverFetch.fetch(\n      `/api/environments/${this.environmentId}/secretKey`,\n      { method: 'GET' },\n      true,\n    );\n\n    const { secretKey } = await responseEnvSecret.json();\n    return secretKey;\n  }\n\n  @action\n  async deployChangesToProduction() {\n    try {\n      const secretKey = await this.getSecretKey();\n\n      await this.serverFetch.fetch(\n        '/api/environments/deploy',\n        {\n          method: 'POST',\n          credentials: 'include',\n          headers: {\n            'forest-secret-key': secretKey,\n          },\n        },\n        true,\n      );\n\n      this.closeAction();\n      this.toastr.perform('success', 'Your changes will be deployed within a few seconds');\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error, 'Deployment failed');\n    }\n  }\n\n  @action\n  async pushChangesToOrigin() {\n    try {\n      const secretKey = await this.getSecretKey();\n\n      await this.serverFetch.fetch(\n        '/api/branches/push',\n        {\n          method: 'POST',\n          credentials: 'include',\n          body: JSON.stringify({ secretKey }),\n          headers: {\n            'forest-secret-key': secretKey,\n          },\n        },\n        true,\n      );\n      this.closeAction();\n      this.toastr.perform('success', 'Your changes will be pushed within a few seconds');\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error, 'Push failed');\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @onClose={{@closeAction}}\\n  @blockClass=\\\"c-modal-deploy-layout-changes__block\\\"\\n  @title=\\\"CONFIRM {{if @isOriginEnvironmentReference \\'Deploy\\' \\'Push\\'}} to {{if\\n    @originEnvironmentName\\n    @originEnvironmentName\\n    \\'origin\\'\\n  }}\\\"\\n  @validateAction={{if\\n    @isOriginEnvironmentReference\\n    this.deployChangesToProduction\\n    this.pushChangesToOrigin\\n  }}\\n  @validateText=\\\"{{if @isOriginEnvironmentReference \\'Deploy\\' \\'Push\\'}} this layout to {{if\\n    @originEnvironmentName\\n    @originEnvironmentName\\n    \\'origin\\'\\n  }}\\\"\\n>\\n  <div class=\\\"c-modal-deploy-layout-changes__content\\\">\\n    <Shared::Feedback::Notification::NotificationInApp @state=\\\"warning\\\" @canHide={{false}}>\\n      Before\\n      {{if @isOriginEnvironmentReference \\'deploying\\' \\'pushing\\'}}, make sure you have already\\n      {{if @isOriginEnvironmentReference \\'deployed\\' \\'pushed\\'}}\\n      any necessary changes of your admin backend and database(s).\\n    </Shared::Feedback::Notification::NotificationInApp>\\n    <div class=\\\"c-modal-deploy-layout-changes__advice\\\">\\n      {{if @isOriginEnvironmentReference \\'Deploy\\' \\'Push\\'}}\\n      to\\n      {{if @originEnvironmentName @originEnvironmentName \\'origin\\'}}\\n      will permanently replace its current layout by this one.\\n    </div>\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/modal/modal-deploy-layout-changes/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { PromiseObject } from 'client/utils/ember-promise';\n\n@validateArguments\nexport default class ModalModalUpgradeToPaidPlanComponent extends Component {\n  /** @type {import('client/legacy/services/toastr').default} */\n  @service toastr;\n  /** @type {import('client/legacy/services/current-user').default} */\n  @service currentUser;\n  /** @type {import('client/legacy/services/plan-service').default} */\n  @service planService;\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n\n  @argument(String) featureName;\n  @argument(Function) cancel;\n  @argument(optional(String)) description;\n  @argument(optional(Boolean)) hideCancel;\n\n  get defaultOrDescription() {\n    return (\n      this.args.description\n      ?? 'This feature has already been configured in development environments or during a trial period.'\n    );\n  }\n\n  get hideModalCancel() {\n    return this.args.hideCancel ?? false;\n  }\n\n  get requiredPlan() {\n    return this.planService.findFirstPlanWithFeature(this.args.featureName);\n  }\n\n  get requiredPlanDisplayName() {\n    return PromiseObject.create({\n      promise: this.requiredPlan?.then((plan) => plan?.displayName),\n    });\n  }\n\n  @action\n  displayWarningMessage() {\n    return this.toastr.perform(\n      'warning',\n      'Please contact an admin of your project for a plan upgrade.',\n    );\n  }\n\n  @action\n  async redirectToBilling() {\n    const requiredPlan = await this.requiredPlan;\n\n    this.router.transitionTo('project.project-settings.billing.upgrade', {\n      queryParams: {\n        plan: requiredPlan.type,\n      },\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-modal\\\" data-test-modal-upgrade-to-paid-plan={{@featureName}} ...attributes>\\n  <div class=\\\"l-modal__frame\\\">\\n    <div class=\\\"l-modal__content\\\">\\n      <div class=\\\"c-upgrade-to-paid-plan\\\">\\n        <div class=\\\"c-upgrade-to-paid-plan__icon-container\\\">\\n          <Shared::DataDisplay::BetaIcon\\n            @class=\\\"c-upgrade-to-paid-plan__icon\\\"\\n            @iconName=\\\"block\\\"\\n            @size=\\\"normal\\\"\\n            @isFaIcon={{true}}\\n          />\\n        </div>\\n\\n        <div class=\\\"c-upgrade-to-paid-plan__title\\\">\\n          You need to upgrade to the\\n          <b>\\n            {{this.requiredPlanDisplayName.content}}\\n            plan\\n          </b>\\n          to unlock this feature for all your environments\\n        </div>\\n\\n        <div class=\\\"c-upgrade-to-paid-plan__description\\\">\\n          {{this.defaultOrDescription}}\\n        </div>\\n\\n        <div class=\\\"c-upgrade-to-paid-plan__buttons\\\">\\n          {{#unless this.hideModalCancel}}\\n            <Shared::Button::BetaButton\\n              @type=\\\"secondary\\\"\\n              @text=\\\"Upgrade Later\\\"\\n              @size=\\\"large\\\"\\n              @textClass=\\\"c-upgrade-to-paid-plan__button-text\\\"\\n              @action={{@cancel}}\\n              data-test-button=\\\"cancel-upgrade\\\"\\n              data-test-modal-upgrade-to-paid-plan-cancel\\n            />\\n          {{/unless}}\\n\\n          <Shared::Button::BetaButton\\n            @type=\\\"primary\\\"\\n            @text=\\\"Upgrade to {{this.requiredPlanDisplayName.content}}\\\"\\n            @size=\\\"large\\\"\\n            @action={{if\\n              this.currentUser.canEditProject\\n              this.redirectToBilling\\n              this.displayWarningMessage\\n            }}\\n            @async={{false}}\\n            data-test-button=\\\"upgrade-plan\\\"\\n          />\\n        </div>\\n      </div>\\n    </div>\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/modal/modal-upgrade-to-paid-plan/template.hbs' });\n","import { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport Component from '@glimmer/component';\nimport window from 'ember-window-mock';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class ModalModalWindowComponent extends Component {\n  @argument(optional(Function)) onClickOutside;\n  @argument(optional(String)) clickOutsideClass;\n  @argument(optional(Boolean)) hasCloseButton;\n  // NOTICE: Necessary to lock events in the portaled modal;\n  //         Should be used with Glimmer components inside of the modal\n  //         as Ember Components handle their events on their own\n  @argument(optional(Boolean)) stopPropagation;\n  @argument(optional(Boolean)) hasCustomSize;\n  @argument(optional(Boolean)) isScrollable;\n  @argument(optional(Boolean)) closeOnEscape;\n\n  get overlayId() {\n    return `modal-window-overlay-${guidFor(this)}`;\n  }\n\n  get isScrollableOrDefault() {\n    return this.args.isScrollable === undefined ? true : this.args.isScrollable;\n  }\n\n  constructor(...args) {\n    super(...args);\n\n    window.addEventListener('keyup', this.onKeyUp);\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    window.removeEventListener('keyup', this.onKeyUp);\n  }\n\n  @action\n  closeOnClickOutsideModal(event) {\n    const { onClickOutside, stopPropagation } = this.args;\n    if (stopPropagation) {\n      event.stopPropagation();\n    }\n    if (onClickOutside && event.target.id === this.overlayId) {\n      onClickOutside(event);\n    }\n  }\n\n  @action\n  onKeyUp(event) {\n    if (this.args.closeOnEscape && event.key === 'Escape' && this.args.onClickOutside) {\n      this.args.onClickOutside(event);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for={{or @portal \\'modal\\'}}>\\n  {{! template-lint-disable no-nested-interactive no-action no-action-modifiers }}\\n  <div\\n    {{! template-lint-disable no-pointer-down-event-binding }}\\n    {{on \\'mousedown\\' this.closeOnClickOutsideModal}}\\n    id={{this.overlayId}}\\n    class=\\\"l-modal-window\\n      {{if this.isScrollableOrDefault \\'l-modal-window__scrollable\\'}}\\n      {{@clickOutsideClass}}\\\"\\n    role=\\\"button\\\"\\n    data-test-modal-window-click-outside\\n  >\\n    <div class=\\\"{{@blockClass}} l-modal-window__block\\\">\\n      {{#if @hasCloseButton}}\\n        <span\\n          {{on \\'click\\' (optional @onClickOutside)}}\\n          class=\\\"c-modal-window-close-button\\\"\\n          role=\\\"button\\\"\\n          data-test-modal-window-click-outside-button\\n        >\\n        </span>\\n      {{/if}}\\n      <div class=\\\"c-modal-window {{if @hasCustomSize \\'c-modal-window--custom-size\\'}}\\\" ...attributes>\\n        {{yield}}\\n      </div>\\n    </div>\\n  </div>\\n  {{! template-lint-enable no-nested-interactive }}\\n</Shared::PortalContent>\\n', { moduleName: 'client/legacy/pods/components/modal/modal-window/template.hbs' });\n","import type { SafeString } from '@ember/template/-private/handlebars';\nimport type { ModelCustomizationTypeEnum } from 'client/data/models/model-customization';\nimport type ModelCustomizationService from 'client/legacy/services/model-customization-service';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { ActionTypeEnum } from 'client/data/models/custom-action';\nimport ModelCustomizationModel from 'client/data/models/model-customization';\nimport { ModelCustomizationConfigurationActionTypeEnum } from 'client/data/models/model-customization-configuration-action';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype ConfigurationType = {\n  label: string | SafeString;\n  value: string;\n  disabled: boolean;\n};\n\nexport interface ModelCustomizationActionConfigurationArgs {\n  modelCustomization: ModelCustomizationModel<ModelCustomizationTypeEnum.Action>;\n}\n\n@validateArguments\nexport default class ModelCustomizationActionComponent extends Component<ModelCustomizationActionConfigurationArgs> {\n  @service declare store: StoreService;\n  @service declare modelCustomizationService: ModelCustomizationService;\n\n  static propTypes = {\n    modelCustomization: PropTypes.instanceOf(ModelCustomizationModel).isRequired,\n  };\n\n  scopes = [\n    {\n      label: 'Single',\n      value: ActionTypeEnum.Single,\n    },\n    {\n      label: 'Bulk',\n      value: ActionTypeEnum.Bulk,\n    },\n    {\n      label: 'Global',\n      value: ActionTypeEnum.Global,\n    },\n  ];\n\n  get types(): ConfigurationType[] {\n    return [\n      {\n        label: 'Update record',\n        value: ModelCustomizationConfigurationActionTypeEnum.UpdateRecord,\n        disabled:\n          !this.modelCustomizationService.isUpdateRecordCustomActionsAvailable\n          || this.args.modelCustomization.configuration.scope === ActionTypeEnum.Global,\n      },\n      {\n        label: 'API',\n        value: ModelCustomizationConfigurationActionTypeEnum.Webhook,\n        disabled: !this.modelCustomizationService.isWebhookCustomActionsAvailable,\n      },\n    ];\n  }\n\n  get configurationComponent() {\n    return `model-customization/action/${this.args.modelCustomization.configuration.type}`;\n  }\n\n  @action\n  checkType() {\n    const actionType = this.types.find(\n      (type) => type.value === this.args.modelCustomization.configuration.type,\n    );\n    if (actionType?.disabled) {\n      this.selectType(\n        this.types.find((type) => !type.disabled)\n          .value as ModelCustomizationConfigurationActionTypeEnum,\n      );\n    }\n  }\n\n  @action\n  selectType(type: ModelCustomizationConfigurationActionTypeEnum) {\n    if (type === this.args.modelCustomization.configuration.type) return;\n\n    this.args.modelCustomization.configuration =\n      this.modelCustomizationService.getConfigurationFromType(type, this.args.modelCustomization);\n\n    this.modelCustomizationService.initConfiguration(this.args.modelCustomization.configuration);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @modelCustomization}}\\n\\n  <Form::EditInline\\n    @label=\\\"Name\\\"\\n    @value={{@modelCustomization.name}}\\n    @isEditMode={{and @isEditMode @isCreateMode}}\\n    @isTitle={{true}}\\n    @isDisabled={{true}}\\n    {{autofocus nestedSelector=(if @isCreateMode \\'.c-beta-input\\' \\'\\')}}\\n    data-test-model-customization-action-name\\n  />\\n\\n  <Shared::BetaLabel @label=\\\"Scope\\\" class=\\\"c-model-customization-action__scope\\\">\\n    <:after-label>\\n      <Shared::Feedback::BetaInfoTooltip>\\n        <dl>\\n          <dt class=\\\"c-model-customization-action__term\\\">Single</dt>\\n          <dd class=\\\"c-model-customization-action__definition\\\">action is triggered on 1 record</dd>\\n          <dt class=\\\"c-model-customization-action__term\\\">Bulk</dt>\\n          <dd class=\\\"c-model-customization-action__definition\\\">action is triggered on 1+ record(s)</dd>\\n          <dt class=\\\"c-model-customization-action__term\\\">Global</dt>\\n          <dd class=\\\"c-model-customization-action__definition\\\">\\n            action is triggered on all records matching the current segment and search\\n          </dd>\\n        </dl>\\n      </Shared::Feedback::BetaInfoTooltip>\\n    </:after-label>\\n    <:default>\\n      <Shared::BetaSelect\\n        @value={{@modelCustomization.configuration.scope}}\\n        @onChange={{this.checkType}}\\n        @defaultValue={{get this.scopes \\'0\\'}}\\n        @options={{this.scopes}}\\n        @namePath=\\\"label\\\"\\n        @valuePath=\\\"value\\\"\\n        data-test-model-customization-action-scope\\n      />\\n    </:default>\\n  </Shared::BetaLabel>\\n  {{#let @modelCustomization.configuration as |configuration|}}\\n    <div class=\\\"c-model-customization-action__configuration\\\" ...attributes>\\n      <Shared::Form::Tabs\\n        @items={{this.types}}\\n        @selected={{configuration.type}}\\n        @onSelect={{this.selectType}}\\n        @isFullWidth={{@isLeftLabel}}\\n        @color=\\\"success\\\"\\n        data-test-model-customization-action-type\\n      />\\n\\n      <div class=\\\"c-model-customization-action__configuration_configuration\\\">\\n        {{#let (component this.configurationComponent) as |ConfigurationComponent|}}\\n          <ConfigurationComponent\\n            @configuration={{@modelCustomization.configuration.configuration}}\\n            @isEditMode={{@isEditMode}}\\n            data-test-model-customization-action-configuration\\n          />\\n        {{/let}}\\n\\n      </div>\\n    </div>\\n  {{/let}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/model-customization/action/template.hbs' });\n","import type ModelCustomizationService from 'client/legacy/services/model-customization-service';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport ModelCustomizationConfigurationActionUpdateRecordFragment from 'client/data/models/model-customization-configuration-action-update-record';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface ModelCustomizationActionConfigurationUpdateRecordArgs {\n  configuration: ModelCustomizationConfigurationActionUpdateRecordFragment;\n}\n\n@validateArguments\nexport default class ModelCustomizationActionUpdateRecordComponent extends Component<ModelCustomizationActionConfigurationUpdateRecordArgs> {\n  static propTypes = {\n    configuration: PropTypes.instanceOf(ModelCustomizationConfigurationActionUpdateRecordFragment)\n      .isRequired,\n  };\n\n  @service declare store: StoreService;\n  @service declare modelCustomizationService: ModelCustomizationService;\n\n  get selectedFields() {\n    return this.args.configuration.fields;\n  }\n\n  get fieldsAvailableForAction() {\n    return this.modelCustomizationService.fieldsAvailableForActionUpdateRecord(\n      this.args.configuration,\n    );\n  }\n\n  /**\n   * we don't want to allow to add more fields than what is available\n   * we exclude deprecated fields as those could appear in the saved config\n   * but not in the fields available for action\n   */\n  get canAddFields() {\n    return (\n      this.args.configuration.fields.filter((field) => !field.isDeprecated).length\n      < this.fieldsAvailableForAction.length\n    );\n  }\n\n  @action\n  addField() {\n    const firstNotIncluded = this.fieldsAvailableForAction.find(\n      (field) =>\n        !this.selectedFields.find((fieldElement) => fieldElement.fieldName === field.fieldName),\n    );\n    if (!firstNotIncluded) return;\n\n    this.args.configuration.fields.pushObject(\n      this.modelCustomizationService.getUpdateRecordActionField(firstNotIncluded.fieldName),\n    );\n  }\n\n  @action\n  removeField(index: number) {\n    this.args.configuration.fields.removeAt(index);\n  }\n}\n","import Component from '@glimmer/component';\n\nimport ModelCustomizationConfigurationActionUpdateRecordFieldFragment from 'client/data/models/model-customization-configuration-action-update-record-field';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface ModelCustomizationActionConfigurationUpdateRecordDeprecatedFieldArgs {\n  selectedField: ModelCustomizationConfigurationActionUpdateRecordFieldFragment;\n  index: number;\n  removeField: (index: number) => void;\n}\n\n@validateArguments\nexport default class ModelCustomizationActionUpdateRecordDeprecatedFieldComponent extends Component<ModelCustomizationActionConfigurationUpdateRecordDeprecatedFieldArgs> {\n  static propTypes = {\n    selectedField: PropTypes.instanceOf(\n      ModelCustomizationConfigurationActionUpdateRecordFieldFragment,\n    ),\n    index: PropTypes.number.isRequired,\n    removeField: PropTypes.func.isRequired,\n  };\n\n  get deprecatedFieldName() {\n    return this.args.selectedField.fieldName;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-configuration-update-record-action-deprecated-field\\\" ...attributes>\\n  <Shared::BetaLabel @label=\\\"Field\\\" class=\\\"c-configuration-update-record-action-field__label\\\">\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"error\\\"\\n      @style=\\\"default\\\"\\n      @canHide={{false}}\\n      class=\\\"c-configuration-update-record-action-deprecated-field__notification\\\"\\n      data-test-notification-deprecated-field\\n    >\\n      The field\\n      <strong>\\\"{{this.deprecatedFieldName}}\\\"</strong>\\n      doesn\\'t exist anymore in this collection: please\\n      <Shared::Button::BetaButton\\n        @withoutCallback={{true}}\\n        @text=\\\"click here to remove it\\\"\\n        @textClass=\\\"c-configuration-update-record-action-deprecated-field__link-remove\\\"\\n        @type=\\\"link-inherit\\\"\\n        @action={{fn @removeField @index}}\\n        data-test-delete-deprecated-field\\n      />\\n      before saving.\\n    </Shared::Feedback::Notification::NotificationInApp>\\n  </Shared::BetaLabel>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/model-customization/action/update-record/deprecated-field/template.hbs' });\n","import type FieldModel from 'client/data/models/field';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport ModelCustomizationConfigurationActionUpdateRecordFieldFragment from 'client/data/models/model-customization-configuration-action-update-record-field';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface ModelCustomizationActionConfigurationUpdateRecordFieldArgs {\n  selectedField: ModelCustomizationConfigurationActionUpdateRecordFieldFragment;\n  fieldsAvailableForAction: Array<FieldModel>;\n  index: number;\n  removeField: (index: number) => void;\n}\n\n@validateArguments\nexport default class ModelCustomizationActionUpdateRecordFieldComponent extends Component<ModelCustomizationActionConfigurationUpdateRecordFieldArgs> {\n  static propTypes = {\n    selectedField: PropTypes.instanceOf(\n      ModelCustomizationConfigurationActionUpdateRecordFieldFragment,\n    ),\n    fieldsAvailableForAction: PropTypes.arrayOf(PropTypes.instanceOf(Object)).isRequired,\n    index: PropTypes.number.isRequired,\n    removeField: PropTypes.func.isRequired,\n  };\n\n  get collectionField() {\n    return this.args.selectedField.referenceField;\n  }\n\n  get widgetConfiguration() {\n    return this.collectionField.widgetEdit;\n  }\n\n  get updateToLabel() {\n    return `Update to ${this.collectionField.isRequired ? '*' : ' '}`;\n  }\n\n  get hasFieldSelected() {\n    return Boolean(this.args.selectedField);\n  }\n\n  @action changed(newFieldName: string) {\n    this.args.selectedField.fieldName = newFieldName;\n    this.args.selectedField.value = null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-configuration-update-record-action-field\\\" ...attributes>\\n  <Shared::BetaLabel @label=\\\"Field\\\" class=\\\"c-configuration-update-record-action-field__label\\\">\\n    <Shared::BetaSelect\\n      @options={{@fieldsAvailableForAction}}\\n      @withSearchInput={{true}}\\n      @onChange={{this.changed}}\\n      @namePath=\\\"displayName\\\"\\n      @valuePath=\\\"fieldName\\\"\\n      @disabledPath=\\\"disabled\\\"\\n      @value={{one-way @selectedField.fieldName}}\\n      @placeholder=\\\"Select a field\\\"\\n      data-test-beta-select-field={{@index}}\\n    />\\n  </Shared::BetaLabel>\\n  {{#if this.hasFieldSelected}}\\n    <Shared::BetaLabel\\n      @label={{this.updateToLabel}}\\n      class=\\\"c-configuration-update-record-action-field__update-to-label\\\"\\n    />\\n    <Widgets::Widget\\n      @value={{@selectedField.value}}\\n      @type=\\\"edit\\\"\\n      @cannotSearch={{false}}\\n      @widgetConfiguration={{this.widgetConfiguration}}\\n      @field={{@selectedField.referenceField}}\\n      @disableNested={{true}}\\n      @onChange={{fn (mut @selectedField.value)}}\\n      class=\\\"c-configuration-update-record-action-field__widget\\\"\\n      data-test-beta-widget-field={{@index}}\\n    />\\n  {{/if}}\\n  <Shared::Button::BetaButton\\n    @withoutCallback={{true}}\\n    @iconName=\\\"delete\\\"\\n    @type=\\\"link-secondary\\\"\\n    @action={{fn @removeField @index}}\\n    class=\\\"c-configuration-update-record-action-field__trash-button\\\"\\n    data-test-beta-button-remove-field={{@index}}\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/model-customization/action/update-record/field/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-configuration-update-record-action\\\" ...attributes>\\n  <div class=\\\"c-configuration-update-record-action__fields\\\">\\n    {{#each this.selectedFields as |selectedField index|}}\\n      {{#if selectedField.isDeprecated}}\\n        <ModelCustomization::Action::UpdateRecord::DeprecatedField\\n          @selectedField={{selectedField}}\\n          @index={{index}}\\n          @removeField={{this.removeField}}\\n        />\\n      {{else}}\\n        <ModelCustomization::Action::UpdateRecord::Field\\n          @selectedField={{selectedField}}\\n          @index={{index}}\\n          @fieldsAvailableForAction={{this.fieldsAvailableForAction}}\\n          @removeField={{this.removeField}}\\n        />\\n      {{/if}}\\n    {{/each}}\\n  </div>\\n  <div\\n    id=\\\"c-configuration-update-record-action__button-wrapper\\\"\\n    class=\\\"c-configuration-update-record-action__button-wrapper\\\"\\n  >\\n    {{#unless this.canAddFields}}\\n      <Shared::Feedback::BetaTooltip\\n        @side=\\\"top\\\"\\n        @targetId=\\\"c-configuration-update-record-action__button-wrapper\\\"\\n      >\\n        No more fields eligible for action\\n      </Shared::Feedback::BetaTooltip>\\n    {{/unless}}\\n    <Shared::Button::BetaButton\\n      @withoutCallback={{true}}\\n      @type=\\\"editor\\\"\\n      @disabled={{not this.canAddFields}}\\n      @text=\\\"Add a field\\\"\\n      @action={{this.addField}}\\n      @class=\\\"c-configuration-update-record-action__button\\\"\\n      data-test-beta-button-add-field\\n    />\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/model-customization/action/update-record/template.hbs' });\n","import type { Integration } from 'client/data/models/model-customization-configuration-action-webhook';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport ModelCustomizationConfigurationActionWebhookFragment from 'client/data/models/model-customization-configuration-action-webhook';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype IntegrationElement = {\n  label: string;\n  logoUrl: string;\n  logoUrlDark: string;\n  value: Integration;\n};\n\nexport interface ModelCustomizationActionConfigurationWebhookArgs {\n  configuration: ModelCustomizationConfigurationActionWebhookFragment;\n  isEditMode?: boolean;\n}\n\n@validateArguments\nexport default class ModelCustomizationActionWebhookComponent extends Component<ModelCustomizationActionConfigurationWebhookArgs> {\n  static propTypes = {\n    configuration: PropTypes.instanceOf(ModelCustomizationConfigurationActionWebhookFragment)\n      .isRequired,\n    isEditMode: PropTypes.bool,\n  };\n\n  @service assetMap;\n  @service('shared/state/user-preference') userPreferenceState: UserPreferenceState;\n\n  integrations: IntegrationElement[] = [\n    {\n      label: 'Zapier',\n      logoUrl: 'zapier-light.svg',\n      logoUrlDark: 'zapier-dark.svg',\n      value: 'zapier',\n    },\n    {\n      label: 'Make',\n      logoUrl: 'make-light.svg',\n      logoUrlDark: 'make-dark.svg',\n      value: 'make',\n    },\n    {\n      label: 'n8n',\n      logoUrl: 'n8n-light.svg',\n      logoUrlDark: 'n8n-dark.svg',\n      value: 'n8n',\n    },\n    {\n      label: 'Other',\n      logoUrl: 'other-light.svg',\n      logoUrlDark: 'other-dark.svg',\n      value: 'webhook',\n    },\n  ];\n\n  @action\n  getIconPath(logoUrl: string) {\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-member-access\n    return this.assetMap.resolve(`/img/integration/${logoUrl}`);\n  }\n\n  @action\n  onSelect(value: Integration) {\n    this.args.configuration.integration = value;\n  }\n\n  get urlPlaceholder(): string {\n    if (this.args.configuration.integration === 'zapier') {\n      return 'https://hooks.zapier.com/hooks/catch/123456/abcde/';\n    }\n    if (this.args.configuration.integration === 'n8n') {\n      return 'https://user.app.n8n.cloud/webhook/123456/abcde/';\n    }\n    if (this.args.configuration.integration === 'make') {\n      return 'https://hooks.eu1.make.com/abcde/';\n    }\n\n    return 'https://example.com/webhook';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-configuration-webhook-action\\\" ...attributes>\\n  <Shared::BetaLabel @label=\\\"Integration\\\" class=\\\"c-configuration-webhook-action__label_integration\\\">\\n    {{#let (generate-guid) as |integrationId|}}\\n      <div id={{integrationId}} class=\\\"c-configuration-webhook-action__integration\\\">\\n        {{#each this.integrations as |integration|}}\\n          <div\\n            id={{integration.label}}\\n            class=\\\"c-configuration-webhook-action__logo-container\\n              {{if\\n                (eq @configuration.integration integration.value)\\n                \\'c-configuration-webhook-action__logo-container--selected\\'\\n              }}\\\"\\n            {{on \\'click\\' (fn this.onSelect integration.value)}}\\n            role=\\\"button\\\"\\n            data-test-model-customization-configuration-action-webhook-integration={{integration.value}}\\n          >\\n            <img\\n              class=\\\"c-configuration-webhook-action__logo\\\"\\n              src={{compute\\n                (fn\\n                  this.getIconPath\\n                  (if\\n                    this.userPreferenceState.isDarkTheme integration.logoUrlDark integration.logoUrl\\n                  )\\n                )\\n              }}\\n              alt={{integration.label}}\\n            />\\n            <Shared::Feedback::BetaTooltip @targetId={{integration.label}} @side=\\\"bottom\\\">\\n              {{integration.label}}\\n            </Shared::Feedback::BetaTooltip>\\n          </div>\\n        {{/each}}\\n      </div>\\n    {{/let}}\\n  </Shared::BetaLabel>\\n\\n  <Form::EditInline\\n    @label=\\\"API endpoint URL\\\"\\n    @placeholder={{this.urlPlaceholder}}\\n    @value={{@configuration.url}}\\n    @isEditMode={{@isEditMode}}\\n    class=\\\"c-configuration-webhook-action__url\\\"\\n    data-test-model-customization-configuration-action-webhook-endpoint\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/model-customization/action/webhook/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-navigation-avatar {{if @isActive \\'c-navigation-avatar--active\\'}} \\\"\\n  data-test-navigation-avatar\\n  ...attributes\\n>\\n  {{#if @src}}\\n    <img\\n      src={{@src}}\\n      srcset={{@srcset}}\\n      alt={{@text}}\\n      class=\\\"c-navigation-avatar__image\\\"\\n      data-test-navigation-avatar-image\\n    />\\n  {{/if}}\\n  {{@text}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/avatar/template.hbs' });\n","import { getOwner } from '@ember/application';\nimport Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { gt } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\n\nimport { argument, optional } from 'client/decorators/argument';\n\n@classNames('c-beta-breadcrumb')\n@classNameBindings(\n  'showBreadcrumb:c-beta-breadcrumb--visible',\n  'isInsideHeader:c-beta-breadcrumb--inside-header',\n)\nexport default class NavigationBetaBreadcrumbComponent extends Component {\n  @service router;\n\n  @argument(optional(Boolean))\n  isInsideHeader = false;\n\n  @gt('breadcrumbs.length', 1)\n  showBreadcrumb;\n\n  @computed('router.{currentRoute,currentURL}')\n  get routeInfos() {\n    const routeInfos = [];\n\n    let routeInfo = this.router.currentRoute;\n    while (routeInfo) {\n      routeInfos.push(routeInfo);\n\n      routeInfo = routeInfo.parent;\n    }\n    return routeInfos.reverse();\n  }\n\n  @computed('routeInfos.[]')\n  get pathNames() {\n    return this.routeInfos.map((routeInfo) => routeInfo.name);\n  }\n\n  @computed('routeInfos.[]')\n  get controllers() {\n    const owner = getOwner(this);\n    return this.routeInfos.map((routeInfo) => owner.lookup(`controller:${routeInfo.name}`));\n  }\n\n  @computed('routeInfos.[]')\n  get routes() {\n    const owner = getOwner(this);\n    return this.routeInfos.map((routeInfo) => owner.lookup(`route:${routeInfo.name}`));\n  }\n\n  @computed('controllers.@each.breadcrumb', 'pathNames.[]', 'routeInfos', 'routes')\n  get breadcrumbs() {\n    const defaultPaths = this.pathNames;\n    let breadcrumbs = [];\n\n    function defineStep(currentSteps, index) {\n      return (newStep) =>\n        currentSteps.push({\n          displayName: newStep.displayName,\n          link: newStep.link || defaultPaths[index],\n          isClickable: !!newStep.isClickable,\n          param: newStep.param,\n          queryParams: newStep.queryParams,\n          isFirst: false,\n          isLast: false,\n        });\n    }\n\n    for (let i = 0; i < this.controllers.length; i += 1) {\n      const controllerBreadcrumb = this.controllers[i].get('breadcrumb');\n      const routeBreadcrumb = this.routes[i].get('breadcrumb');\n      const breadcrumb = routeBreadcrumb || controllerBreadcrumb;\n      if (!isEmpty(breadcrumb)) {\n        const breadcrumbParts = Array.isArray(breadcrumb) ? breadcrumb : [breadcrumb];\n\n        breadcrumbs = []; // NOTICE: Breadcrumb only on last controller so far.\n        breadcrumbParts.forEach(defineStep(breadcrumbs, i));\n      }\n    }\n\n    if (!isEmpty(breadcrumbs)) {\n      const lastIndex = breadcrumbs.length - 1;\n      breadcrumbs[0].isFirst = true;\n      breadcrumbs[lastIndex].isLast = true;\n    }\n\n    return breadcrumbs;\n  }\n\n  @action\n  close() {\n    if (this.closeAction) {\n      this.closeAction();\n    }\n  }\n}\n","import Controller from '@ember/controller';\nimport { compileTemplate } from '@ember/template-compilation';\nimport { getStoryTemplate } from 'stories/story-creator';\n\nimport { injectRoutedController } from '../../../../../../stories/helpers';\n\nexport default {\n  title: 'Legacy/Navigation/BetaBreadcrumb',\n  component: 'Navigation::BetaBreadcrumb',\n  parameters: {\n    previewTabs: {\n      'storybook/docs/panel': { hidden: true },\n    },\n  },\n  argTypes: {\n    breadcrumb: {\n      type: 'object',\n      description:\n        \"This is a mock of the controller's `breadcrumb` method. An dummy `storybook` route has been added.\",\n      table: {\n        category: 'Mocks',\n      },\n    },\n    isInsideHeader: {\n      type: 'boolean',\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: false },\n      },\n    },\n  },\n  args: {\n    breadcrumb: [\n      {\n        displayName: 'Clickable',\n        link: 'storybook',\n        isClickable: true,\n      },\n      {\n        displayName: 'Clickable 2',\n        link: 'storybook',\n        isClickable: true,\n      },\n      {\n        displayName: 'Not clickable',\n      },\n    ],\n  },\n};\n\nexport const BetaBreadcrumb = (args) => {\n  const templateCode = getStoryTemplate('Navigation::BetaBreadcrumb', args);\n  return {\n    templateCode,\n    template: compileTemplate(templateCode),\n    context: {\n      ...args,\n      injectRoutedController: injectRoutedController(\n        class BreadcrumbController extends Controller {\n          get breadcrumb() {\n            return args.breadcrumb;\n          }\n        },\n      ),\n    },\n  };\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-breadcrumb__sections\\\">\\n  {{#if this.showBreadcrumb}}\\n    {{#each this.breadcrumbs as |breadcrumb|}}\\n      <div class=\\\"c-beta-breadcrumb__section\\\">\\n        {{#unless breadcrumb.isFirst}}\\n          <i class=\\\"c-beta-breadcrumb__separator\\\">\\n            navigate_next\\n          </i>\\n        {{/unless}}\\n        {{#if (or breadcrumb.isLast (not breadcrumb.isClickable))}}\\n          <span\\n            class={{concat\\n              \\'c-beta-breadcrumb__link\\'\\n              (if breadcrumb.isLast \\' c-beta-breadcrumb__link--last\\')\\n              (unless\\n                (or breadcrumb.isClickable breadcrumb.isLast)\\n                \\' c-beta-breadcrumb__link--not-clickable\\'\\n              )\\n            }}\\n          >\\n            {{breadcrumb.displayName}}\\n          </span>\\n        {{else}}\\n          {{#if breadcrumb.param}}\\n            <LinkTo\\n              @route={{breadcrumb.link}}\\n              @model={{breadcrumb.param}}\\n              @query={{or breadcrumb.queryParams (hash)}}\\n              class=\\\"c-beta-breadcrumb__link\\\"\\n              data-test-breadcrumb-for={{breadcrumb.displayName}}\\n            >\\n              {{breadcrumb.displayName}}\\n            </LinkTo>\\n          {{else}}\\n            <LinkTo\\n              @route={{breadcrumb.link}}\\n              @query={{or breadcrumb.queryParams (hash)}}\\n              class=\\\"c-beta-breadcrumb__link\\\"\\n              data-test-breadcrumb-for={{breadcrumb.displayName}}\\n            >\\n              {{breadcrumb.displayName}}\\n            </LinkTo>\\n          {{/if}}\\n        {{/if}}\\n      </div>\\n    {{/each}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-breadcrumb/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { classNames } from '@ember-decorators/component';\nimport window from 'ember-window-mock';\n\nimport { KEY, isKey } from 'client/utils/keyboard';\n\n@classNames('c-beta-context-menu')\nexport default class NavigationBetaContextMenuComponent extends Component {\n  @service('context-menu') contextMenuService;\n  @service('router') router;\n  event = null;\n  isActive = false;\n  _contextMenuListener = null;\n  _escapeListener = null;\n  @reads('contextMenuService.sections') sections;\n\n  init(...args) {\n    super.init(...args);\n    this._registerContextMenuListener();\n  }\n\n  willDestroyElement(...args) {\n    super.willDestroyElement(...args);\n    this._unregisterContextMenuListener();\n    this._unregisterEscapeListener();\n  }\n\n  @action\n  close() {\n    this.closeModal();\n  }\n\n  @action\n  insideContextMenuHandler(event) {\n    event.preventDefault();\n  }\n\n  @action\n  outsideContextMenuHandler(event) {\n    event.preventDefault();\n    this.closeModal();\n  }\n\n  closeModal() {\n    this.set('isActive', false);\n    this._unBlockHighlight();\n    this.contextMenuService.flushSections();\n    this._unregisterEscapeListener();\n  }\n\n  contextMenuHandler(event) {\n    if (this.contextMenuService?.sections?.length > 0) {\n      this.set('event', event);\n      this.set('isActive', true);\n      this._blockHighlight();\n      this._registerEscapeListener();\n      event.preventDefault();\n    }\n  }\n\n  _registerContextMenuListener() {\n    this.set('_contextMenuListener', this.contextMenuHandler.bind(this));\n    window.addEventListener('contextmenu', this._contextMenuListener);\n  }\n\n  _unregisterContextMenuListener() {\n    window.removeEventListener('contextmenu', this._contextMenuListener);\n  }\n\n  escapeHandler(event) {\n    if (isKey(KEY.ESCAPE, event)) {\n      this.closeModal();\n    }\n  }\n\n  _registerEscapeListener() {\n    this.set('_escapeListener', this.escapeHandler.bind(this));\n    window.addEventListener('keydown', this._escapeListener);\n  }\n\n  _unregisterEscapeListener() {\n    window.removeEventListener('keydown', this._escapeListener);\n  }\n\n  _blockHighlight() {\n    document.body.classList.add('l-application--block-highlight');\n  }\n\n  _unBlockHighlight() {\n    document.body.classList.remove('l-application--block-highlight');\n  }\n}\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\n\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-beta-context-menu-item')\n@classNameBindings('isDisabled:c-beta-context-menu-item--disabled')\nexport default class NavigationBetaContextMenuItemComponent extends Component {\n  propTypes = {\n    closeAction: PropTypes.func.isRequired,\n    item: PropTypes.object.isRequired,\n  };\n\n  @computed('item.{action,disabled}')\n  get isDisabled() {\n    if (!this.item.action) {\n      return true;\n    }\n\n    if (typeof this.item.disabled === 'function') {\n      return this.item.disabled();\n    }\n\n    return this.item.disabled;\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    if ([null, undefined].includes(this.closeAction)) {\n      throw new MissingRequiredPropertyError('closeAction');\n    }\n\n    if ([null, undefined].includes(this.item)) {\n      throw new MissingRequiredPropertyError('item');\n    }\n  }\n\n  click() {\n    if (!this.item.disabled) {\n      this.item.action();\n      this.closeAction();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{@item.label}}\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-context-menu/item/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-beta-context-menu-list')\nexport default class NavigationBetaContextMenuListComponent extends Component {\n  propTypes = {\n    closeAction: PropTypes.func.isRequired,\n    sections: PropTypes.arrayOf(PropTypes.object.isRequired),\n  };\n\n  init(...args) {\n    super.init(...args);\n\n    if ([null, undefined].includes(this.closeAction)) {\n      throw new MissingRequiredPropertyError('closeAction');\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#each this.sections as |section|}}\\n  <div class=\\\"c-beta-context-menu-list__section\\\">\\n    {{#unless (eq this.sections.length 1)}}\\n      <span class=\\\"c-beta-context-menu-list__label\\\">\\n        {{section.sectionLabel}}\\n      </span>\\n    {{/unless}}\\n    {{#each section.items as |item|}}\\n      <Navigation::BetaContextMenu::Item\\n        @item={{item}}\\n        @closeAction={{this.closeAction}}\\n        data-test-navigation-beta-context-menu-list-item={{item.label}}\\n      />\\n    {{/each}}\\n  </div>\\n{{/each}}\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-context-menu/list/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\nimport window from 'ember-window-mock';\n\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nconst POPUP_SCREEN_BOUNDS_SPACING = '16px';\n\n@classNames('c-beta-context-menu-popup')\nexport default class NavigationBetaContextMenuPopupComponent extends Component {\n  propTypes = {\n    event: PropTypes.object.isRequired,\n    sections: PropTypes.arrayOf(PropTypes.object.isRequired),\n    closeAction: PropTypes.func.isRequired,\n  };\n\n  init(...args) {\n    super.init(...args);\n\n    if ([null, undefined].includes(this.event)) {\n      throw new MissingRequiredPropertyError('event');\n    }\n\n    if ([null, undefined].includes(this.closeAction)) {\n      throw new MissingRequiredPropertyError('closeAction');\n    }\n  }\n\n  didInsertElement(...args) {\n    super.didInsertElement(...args);\n    this._targetPointer();\n    this._keepInViewport();\n  }\n\n  willDestroyElement(...args) {\n    super.willDestroyElement(...args);\n    this.closeAction();\n  }\n\n  _keepInViewport() {\n    const { innerHeight, innerWidth } = window;\n    const { right, bottom } = this.element.getBoundingClientRect();\n    const xDiff = right - innerWidth;\n    const yDiff = bottom - innerHeight;\n\n    // NOTICE: out of the screen from right\n    if (xDiff > 0) {\n      this.element.style.left = `calc(${this.element.style.left} - ${xDiff}px - ${POPUP_SCREEN_BOUNDS_SPACING})`;\n    }\n\n    // NOTICE: out of the screen from bottom\n    if (yDiff > 0) {\n      this.element.style.top = `calc(${this.element.style.top} - ${yDiff}px - ${POPUP_SCREEN_BOUNDS_SPACING})`;\n    }\n  }\n\n  _targetPointer() {\n    const { clientX, clientY } = this.event;\n\n    this.element.style.top = `${clientY}px`;\n    this.element.style.left = `${clientX}px`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::BetaContextMenu::List @closeAction={{@closeAction}} @sections={{@sections}} />\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-context-menu/popup/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isActive}}\\n  <Navigation::BetaContextMenu::Popup\\n    @event={{this.event}}\\n    @sections={{this.sections}}\\n    @closeAction={{this.close}}\\n    @oncontextmenu={{this.insideContextMenuHandler}}\\n    @class=\\\"c-beta-context-menu__popup\\\"\\n  />\\n  <div\\n    {{on \\'click\\' this.close}}\\n    {{on \\'contextmenu\\' this.outsideContextMenuHandler}}\\n    class=\\\"c-beta-context-menu__overlay\\\"\\n    role=\\\"button\\\"\\n  >\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-context-menu/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { alias, and } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { queryManager } from 'ember-apollo-client';\n\nimport Environment from 'client/data/models/environment';\nimport Organization from 'client/data/models/organization';\nimport Rendering from 'client/data/models/rendering';\nimport { any, argument, arrayOf, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { ITEM_SHAPE } from 'client/legacy/pods/components/navigation/beta-global-navigation-bar/navigation-menu/component';\n\nconst ABSOLUTE_URL_DETECTOR = /^[a-z0-9]+:\\/\\//i;\n\n@validateArguments\nexport default class NavigationBetaGlobalNavigationBarComponent extends Component {\n  @service tracker;\n  @service lianaSession;\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  /** @type {import('client/legacy/services/current-user').default} */\n  @service currentUser;\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n\n  /**\n   * ⚠ ember-apollo-client provides this @queryManager\n   * BUT there is a bug with this library on overwritten routes\n   * The code from here: https://github.com/ember-graphql/ember-apollo-client/blob/v4.0.2/addon/-private/apollo/setup-hooks.js\n   * is not returning the promise from the original function, leading\n   * to bugs when beforeModel is asynchronous on a route.\n   */\n  @queryManager() apollo;\n\n  @argument(optional(Environment)) environment;\n  @argument(optional(Rendering)) rendering;\n  @argument(optional(Boolean)) trackNotifications;\n  @argument(optional(Boolean)) isSettings;\n  @argument(optional(Boolean)) hideSignLink;\n  @argument(optional(any())) signQueryParams;\n  @argument(optional(Function)) transitionToProjects;\n  @argument(optional(Function)) transitionToSettings;\n  @argument(optional(Boolean)) isOrganizationSettings;\n  @argument(optional(String)) settingsTitle;\n  @argument(optional(arrayOf(Organization))) organizations;\n  @argument(optional(arrayOf(ITEM_SHAPE))) navigationItems;\n  @argument(optional(Function)) onCloseFallback;\n  @argument(optional(String)) closeUrl;\n\n  isHelpMenuVisible = false;\n  sessionStorageKeyForPreviousRoute = 'previousRouteBeforeSettings';\n  @and('currentUser.canEditLayout', 'environment.isDevelopment') isResourceButtonVisible;\n  @alias('currentUser.model.isSsoAccountOnly') isUserSsoOnlyAccount;\n  @tracked isShowingConfirmationPopup = false;\n  @tracked isShowingOrganizationList = true;\n\n  @computed('args.closeUrl')\n  get securedCloseUrl() {\n    if (!this.args.closeUrl || ABSOLUTE_URL_DETECTOR.test(this.args.closeUrl)) {\n      return undefined;\n    }\n\n    return this.args.closeUrl;\n  }\n\n  @action\n  openConfirmationPopup() {\n    this.isShowingConfirmationPopup = true;\n    this.isShowingOrganizationList = false;\n  }\n\n  @action\n  closeConfirmationPopup() {\n    this.isShowingConfirmationPopup = false;\n    this.isShowingOrganizationList = true;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-beta-global-navigation-bar-organization\\n    {{if @interaction \\'c-beta-global-navigation-bar-organization__pointer\\'}}\\\"\\n  data-test-beta-global-navigation-bar-organizations\\n>\\n  <Picture::PictureOrganization\\n    @organization={{@currentOrganization}}\\n    class=\\\"c-beta-global-navigation-bar-organization__avatar\\\"\\n  />\\n  {{#if @settingsTitle}}\\n    <div class=\\\"c-beta-global-navigation-bar-organization__info\\\">\\n      <span class=\\\"c-beta-global-navigation-bar-organization__name\\\">\\n        {{@settingsTitle}}\\n      </span>\\n    </div>\\n  {{else if @isUserSsoOnlyAccount}}\\n    <div class=\\\"c-beta-global-navigation-bar-organization__info\\\">\\n      <span class=\\\"c-beta-global-navigation-bar-organization__name\\\">\\n        {{@currentOrganization.name}}\\n      </span>\\n    </div>\\n  {{else}}\\n    <div class=\\\"c-beta-global-navigation-bar-organization__info\\\">\\n      <span class=\\\"c-beta-global-navigation-bar-organization__name\\\">\\n        {{@currentOrganization.name}}\\n      </span>\\n    </div>\\n    <div class=\\\"c-beta-global-navigation-bar-organization__chevrons\\\">\\n      {{#if @isActive}}\\n        <div class=\\\"c-beta-global-navigation-bar-organization__chevrons\\\">\\n          <i class=\\\"material-icons\\\">\\n            arrow_drop_up\\n          </i>\\n        </div>\\n      {{else}}\\n        <div class=\\\"c-beta-global-navigation-bar-organization__chevrons\\\">\\n          <i class=\\\"material-icons\\\">\\n            arrow_drop_down\\n          </i>\\n        </div>\\n      {{/if}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-global-navigation-bar/current-organization/template.hbs' });\n","import { computed } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport { any, argument, arrayOf, oneOfType, optional, shape } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n/**\n * @typedef {{\n *  route: string;\n *  models?: Array<string|number>\n *  query?: Record<string, string|number>\n *  dataTestLink?: string\n * }} NavigationItem\n */\nexport const ITEM_SHAPE = shape({\n  route: String,\n  models: optional(arrayOf(oneOfType([String, Number]))),\n  query: optional(any()),\n  dataTestLink: optional(String),\n});\n\n@validateArguments\nexport default class NavigationBetaGlobalNavigationBarNavigationMenuComponent extends Component {\n  /** @type {NavigationItem} */\n  @argument(arrayOf(ITEM_SHAPE)) items;\n  /** @type {Record<string, string>} */\n  @argument(optional(any())) query;\n\n  @computed('args.items.[]', 'args.query')\n  get augmentedItems() {\n    return this.args.items?.map((item) => ({\n      ...item,\n      query: {\n        ...(this.args.query || {}),\n        ...(item.query || {}),\n      },\n    }));\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<nav class=\\\"c-global-navigation-bar-navigation-menu\\\">\\n  <ul class=\\\"c-global-navigation-bar-navigation-menu__items\\\">\\n    {{#each this.augmentedItems as |item|}}\\n      <li class=\\\"c-global-navigation-bar-navigation-menu__item\\\">\\n        <LinkTo\\n          class=\\\"c-global-navigation-bar-navigation-menu__item-link\\\"\\n          @route={{item.route}}\\n          @models={{item.models}}\\n          @query={{or item.query (hash)}}\\n          data-test-link={{item.dataTestLink}}\\n        >\\n          {{item.text}}\\n        </LinkTo>\\n      </li>\\n    {{/each}}\\n  </ul>\\n</nav>\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-global-navigation-bar/navigation-menu/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport Organization from 'client/data/models/organization';\nimport { argument, arrayOf, optional } from 'client/decorators/argument';\n\nexport default class NavigationBetaGlobalNavigationBarOrganizationListComponent extends Component {\n  @argument(optional(arrayOf(Organization))) organizations;\n  @argument(Function) openNewOrganizationModal;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-organization-list__scrollable\\\">\\n  {{#each @organizations as |organization|}}\\n    <Organization::Card @organization={{organization}} @onClick={{@onClick}} />\\n  {{/each}}\\n</div>\\n<Shared::Button::BetaButton\\n  @type=\\\"primary\\\"\\n  @text=\\\"New Organization\\\"\\n  @action={{@openNewOrganizationModal}}\\n  @async={{false}}\\n  @size=\\\"large\\\"\\n  class=\\\"c-new-organization__button\\\"\\n  data-test-new-organization-button\\n/>\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-global-navigation-bar/organization-list/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-global-navigation-bar\\\" ...attributes>\\n  <div class=\\\"c-beta-global-navigation-bar__row\\\">\\n    {{#if @settingsTitle}}\\n      <Navigation::BetaGlobalNavigationBar::CurrentOrganization\\n        @currentOrganization={{this.currentOrganization.model}}\\n        @settingsTitle={{@settingsTitle}}\\n      />\\n    {{else if this.isUserSsoOnlyAccount}}\\n      <Navigation::BetaGlobalNavigationBar::CurrentOrganization\\n        @currentOrganization={{this.currentOrganization.model}}\\n        @isUserSsoOnlyAccount={{this.isUserSsoOnlyAccount}}\\n      />\\n    {{else if @organizations}}\\n      <Dropdown::DropdownMenu @class=\\\"c-beta-global-navigation-bar__organizations\\\" as |dropdown|>\\n        <Dropdown::DropdownMenu::DropdownMenuTrigger @dropdown={{dropdown}}>\\n          <Navigation::BetaGlobalNavigationBar::CurrentOrganization\\n            @isActive={{dropdown.content.display}}\\n            @currentOrganization={{this.currentOrganization.model}}\\n            @interaction={{true}}\\n          />\\n        </Dropdown::DropdownMenu::DropdownMenuTrigger>\\n        <Dropdown::DropdownMenu::DropdownMenuContent\\n          @dropdown={{dropdown}}\\n          @contentClass=\\\"c-beta-global-navigation-bar__organizations-content\\\"\\n        >\\n          {{#if this.isShowingOrganizationList}}\\n            <Navigation::BetaGlobalNavigationBar::OrganizationList\\n              @organizations={{@organizations}}\\n              @openNewOrganizationModal={{this.openConfirmationPopup}}\\n              @onClick={{dropdown.hide}}\\n            />\\n          {{/if}}\\n        </Dropdown::DropdownMenu::DropdownMenuContent>\\n      </Dropdown::DropdownMenu>\\n    {{else}}\\n      <img\\n        class=\\\"c-beta-global-navigation-bar__forest-logo\\\"\\n        src={{or @customDomainPictureUrl \\'/img/logo.svg\\'}}\\n        alt=\\\"Forest Admin\\\"\\n      />\\n    {{/if}}\\n\\n    <div class=\\\"c-beta-global-navigation-bar__right\\\">\\n      {{#if this.currentUser.model}}\\n        <BetaUserDropdown\\n          @transitionToSettings={{@transitionToSettings}}\\n          @transitionToProjects={{@transitionToProjects}}\\n          @environment={{@environment}}\\n          @rendering={{@rendering}}\\n          @disableInteraction={{@disableInteraction}}\\n          @isSettings={{@isSettings}}\\n        />\\n      {{else if (not @hideSignLink)}}\\n        <div class=\\\"c-beta-global-navigation-bar__sign-in\\\">\\n          {{if @showSignUp \\\"Don\\'t have an account yet?\\\" \\'Already have an account?\\'}}\\n          <Shared::Navigation::BetaLinkTo\\n            @type=\\\"primary\\\"\\n            @text={{if @showSignUp \\'Sign up\\' \\'Sign in\\'}}\\n            @routeName={{if @showSignUp \\'authentication.signup\\' \\'authentication.login\\'}}\\n            @queryParams={{@signQueryParams}}\\n            class=\\\"c-beta-global-navigation-bar__sign-in-link\\\"\\n          />\\n        </div>\\n      {{/if}}\\n    </div>\\n  </div>\\n  {{#if @isSettings}}\\n    <div class=\\\"c-beta-global-navigation-bar__row c-beta-global-navigation-bar__row--menu\\\">\\n      {{#if @navigationItems}}\\n        <Navigation::BetaGlobalNavigationBar::NavigationMenu\\n          class=\\\"c-beta-global-navigation-bar__navigation\\\"\\n          @items={{@navigationItems}}\\n          @query={{hash close=this.securedCloseUrl}}\\n        />\\n      {{/if}}\\n      {{#if this.securedCloseUrl}}\\n        <a\\n          href={{this.securedCloseUrl}}\\n          role=\\\"button\\\"\\n          class=\\\"c-beta-global-navigation-bar__close-link\\\"\\n        >\\n          <i class=\\\"c-beta-global-navigation-bar__close\\\" data-test-navigation-close>\\n            close\\n          </i>\\n        </a>\\n      {{else if @onCloseFallback}}\\n        <i\\n          class=\\\"c-beta-global-navigation-bar__close\\\"\\n          {{on \\'click\\' @onCloseFallback}}\\n          role=\\\"button\\\"\\n          data-test-navigation-close\\n        >\\n          close\\n        </i>\\n      {{/if}}\\n    </div>\\n  {{/if}}\\n  {{#if this.isShowingConfirmationPopup}}\\n    <NewOrganizationModal @closePopup={{this.closeConfirmationPopup}} />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-global-navigation-bar/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport window from 'ember-window-mock';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nconst SIDE_MENU_MINIMUM_WIDTH_IN_PIXEL = 180;\nconst SIDE_MENU_MAXIMUM_RATIO = 1 / 3;\n\n@validateArguments\nexport default class NavigationBetaSideMenuComponent extends Component {\n  @service eventBus;\n\n  static propTypes = {\n    onSetSideMenuWidth: PropTypes.func,\n    sideMenuWidth: PropTypes.number,\n    title: PropTypes.string,\n  };\n\n  @action\n  async resizeSideMenu(event) {\n    if (event?.clientX) {\n      this.setWidth(this.calculateWidth(event.clientX));\n    }\n  }\n\n  calculateWidth(mousePositionX) {\n    const sideMenuLeftPosition = this.sideMenuElement.getBoundingClientRect().left;\n\n    return Math.min(\n      window.innerWidth * SIDE_MENU_MAXIMUM_RATIO,\n      Math.max(SIDE_MENU_MINIMUM_WIDTH_IN_PIXEL, mousePositionX - sideMenuLeftPosition),\n    );\n  }\n\n  @action\n  setWidth(sideMenuWidth) {\n    this.sideMenuElement.style.setProperty('--beta-side-menu-width', `${sideMenuWidth}px`);\n    this.resizeHandleElement.style.setProperty(\n      '--beta-side-menu-resize-handle-left',\n      `${sideMenuWidth - 2.5}px`,\n    );\n    this.args.onSetSideMenuWidth(sideMenuWidth);\n  }\n\n  @action\n  handleMouseUp() {\n    if (!this.args.onSetSideMenuWidth) return;\n    document.removeEventListener('mouseup', this.handleMouseUp);\n    document.removeEventListener('mousemove', this.resizeSideMenu);\n    this.eventBus.trigger('recalculateTableWidth');\n  }\n\n  @action\n  handleMouseDown() {\n    if (!this.args.onSetSideMenuWidth) return;\n    document.addEventListener('mouseup', this.handleMouseUp);\n    document.addEventListener('mousemove', this.resizeSideMenu);\n  }\n\n  @action\n  initSideMenuResizing(resizeHandleElement) {\n    if (!this.args.onSetSideMenuWidth) return;\n    this.resizeHandleElement = resizeHandleElement;\n\n    [this.sideMenuElement] = document.getElementsByClassName('c-beta-side-menu');\n    if (this.args.sideMenuWidth) {\n      this.setWidth(this.args.sideMenuWidth);\n    }\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    document.removeEventListener('mouseup', this.handleMouseUp);\n    document.removeEventListener('mousemove', this.resizeSideMenu);\n    this.resizeHandleElement = null;\n    this.sideMenuElement = null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-side-menu-header\\\" data-test-beta-side-menu-header ...attributes>\\n  {{#if @title}}\\n    <div class=\\\"l-beta-side-menu-header-title\\\">\\n      <span class=\\\"c-beta-side-menu-header__title\\\" data-test-beta-side-menu-header-text>\\n        {{@title}}\\n      </span>\\n    </div>\\n  {{/if}}\\n  {{#if @onToggleSideMenuVisibility}}\\n    <button\\n      class=\\\"c-beta-side-menu-header__hide-button\\\"\\n      data-test-beta-side-menu-header-hide-button\\n      type=\\\"button\\\"\\n      {{on \\'click\\' @onToggleSideMenuVisibility}}\\n    >\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName={{if @isHidden \\'last_page\\' \\'first_page\\'}}\\n        @size=\\\"small\\\"\\n      />\\n    </button>\\n  {{/if}}\\n\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-side-menu/header/template.hbs' });\n","import type CollectionModel from 'client/data/models/collection';\nimport type DashboardModel from 'client/data/models/dashboard';\nimport type FolderModel from 'client/data/models/folder';\nimport type InboxModel from 'client/data/models/inbox';\nimport type SegmentModel from 'client/data/models/segment';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport CssClassHelper from 'client/utils/css-class-helper';\nimport { pauseFor } from 'client/utils/ember-promise';\n\ninterface Args {\n  isFoldedByDefault?: boolean;\n  isEditable?: boolean;\n  isItemInEditMode?: boolean;\n  isVisible?: boolean;\n  isDisabled?: boolean;\n  isActive?: boolean;\n  isFoldable?: boolean;\n  icon?: string;\n  iconSize?: string;\n  iconColor?: string;\n  iconClass?: string;\n  iconToDisplay?: string;\n  onClick?: () => void;\n  onFoldItem?: (isFolded: boolean) => void;\n  notificationCount?: number;\n  route?: string;\n  routeParameters?: string;\n  item?:\n    | WorkspaceModel\n    | CollectionModel\n    | SegmentModel\n    | FolderModel\n    | DashboardModel\n    | InboxModel;\n  canContainChildren?: boolean;\n}\n\nexport default class NavigationBetaSideMenuItemComponent extends Component<Args> {\n  @service currentUser: CurrentUserService;\n\n  @tracked isDraggingInsideThisElement: boolean = false;\n  @tracked isFolded = this.args.isFoldedByDefault || false;\n\n  get isItemInEditMode() {\n    return (\n      Boolean(this.args.isEditable) && (this.args.isItemInEditMode || this.currentUser.editMode)\n    );\n  }\n\n  get activeClass() {\n    return this.isItemInEditMode\n      ? 'c-beta-side-menu-item--editor-active'\n      : 'c-beta-side-menu-item--active';\n  }\n\n  get itemClasses() {\n    return new CssClassHelper('c-beta-side-menu-item')\n      .addModifier('visibility-off', this.args.isVisible === false)\n      .addModifier('disabled', Boolean(this.args.isDisabled))\n      .addModifier('editor', Boolean(this.isItemInEditMode))\n      .addModifier('clickable', Boolean(this.args.onClick))\n      .addModifier('active', Boolean(this.args.isActive) && !this.isItemInEditMode)\n      .addModifier('editor-active', Boolean(this.args.isActive) && this.isItemInEditMode)\n      .generateClasses();\n  }\n\n  get hasVisibilitySettings() {\n    return typeof this.args.isVisible === 'boolean';\n  }\n\n  get iconToDisplay() {\n    if (this.hasVisibilitySettings && this.isItemInEditMode) {\n      return this.args.isVisible ? 'visibility' : 'visibility_off';\n    }\n    return this.args.icon;\n  }\n\n  get shouldDisplaySubitems() {\n    return !this.isFolded;\n  }\n\n  @action\n  handleDragEnter() {\n    this.isDraggingInsideThisElement = true;\n  }\n\n  @action\n  async handleDragLeave() {\n    await pauseFor(500);\n    this.isDraggingInsideThisElement = false;\n  }\n\n  @action\n  onIsFoldedByDefaultChange() {\n    // We fold the subitems only based on the user's choice unless he lands on a subitem while navigating.\n    this.isFolded = this.args.isFoldedByDefault;\n  }\n\n  @action\n  handleClickFold() {\n    this.isFolded = !this.isFolded;\n    this.args.onFoldItem?.(this.isFolded);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @route}}\\n  <Navigation::LinkToWithClick\\n    @route={{@route}}\\n    @models={{get-link-to-models @routeParameters}}\\n    @query={{or @query (hash)}}\\n    @current-when={{@isActive}}\\n    @activeClass=\\\"{{@activeClass}} js-navigation-beta-side-menu-item-link-active\\\"\\n    @disabled={{@isDisabled}}\\n    @onClick={{@onClick}}\\n    @shouldReplace={{@shouldReplace}}\\n    data-navigation-beta-side-menu-item-link\\n    data-navigation-beta-side-menu-item-link-active={{or @isActive false}}\\n    data-test-navigation-beta-side-menu-item-content-container\\n    ...attributes\\n    as |isLinkActive|\\n  >\\n    {{yield isLinkActive}}\\n  </Navigation::LinkToWithClick>\\n{{else}}\\n  <div\\n    role=\\\"button\\\"\\n    {{on \\'click\\' @onClick}}\\n    data-test-navigation-beta-side-menu-item-content-container\\n    ...attributes\\n  >\\n    {{yield false}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-side-menu/item/content-container/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let (concat \\'beta-side-menu-item-content-\\' (generate-guid)) as |tooltipTargetId|}}\\n  <div\\n    class=\\\"c-beta-side-menu-item-content\\\"\\n    data-test-beta-side-menu-item-content\\n    ...attributes\\n    id={{tooltipTargetId}}\\n  >\\n    {{#if @icon}}\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName={{@icon}}\\n        @size=\\\"custom\\\"\\n        class={{get-classes-with-modifiers\\n          \\'c-beta-side-menu-item-content__icon\\'\\n          with-fold-icon=@isFoldable\\n        }}\\n        data-test-beta-side-menu-item-content-icon\\n      />\\n    {{/if}}\\n\\n    {{#if @isFoldable}}\\n      {{#if @onClickFold}}\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName={{if @isFolded \\'chevron_right\\' \\'expand_more\\'}}\\n          @size=\\\"custom\\\"\\n          @class=\\\"c-beta-side-menu-item-content__subitems-folding-icon\\\"\\n          {{on \\'click\\' (prevent-default (stop-propagation @onClickFold))}}\\n          data-test-beta-side-menu-item-content-folding-icon\\n        />\\n      {{else}}\\n        <div class=\\\"c-beta-side-menu-item-content__shift-folding-icon\\\"></div>\\n      {{/if}}\\n    {{/if}}\\n\\n    <span\\n      class=\\\"c-beta-side-menu-item-content__name\\\"\\n      title={{@name}}\\n      data-test-beta-side-menu-item-content-name={{@name}}\\n      id=\\\"{{tooltipTargetId}}__text\\\"\\n    >\\n      {{@name}}\\n    </span>\\n\\n    <div class=\\\"l-beta-side-menu-item-content-right-actions\\\">\\n      {{#unless @isVisibilityHidden}}\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName={{if @isVisible \\'visibility\\' \\'visibility_off\\'}}\\n          @size=\\\"custom\\\"\\n          class=\\\"c-beta-side-menu-item-content__visibility-icon\\\"\\n          data-test-beta-side-menu-item-content-visibility-icon\\n          {{on \\'click\\' (prevent-default (stop-propagation @onClickVisibility))}}\\n        />\\n      {{/unless}}\\n      {{#unless @isSettingsHidden}}\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName=\\\"settings\\\"\\n          @size=\\\"custom\\\"\\n          class=\\\"c-beta-side-menu-item-content__settings-icon\\\"\\n          data-test-beta-side-menu-item-content-settings-icon\\n          {{on \\'click\\' (prevent-default (stop-propagation @onClickSettings))}}\\n        />\\n      {{/unless}}\\n\\n      {{#if @isDraggable}}\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName=\\\"drag_indicator\\\"\\n          @size=\\\"custom\\\"\\n          @class=\\\"c-beta-side-menu-item-content__drag-icon\\\"\\n          data-test-beta-side-menu-item-content-drag-icon\\n        />\\n      {{/if}}\\n\\n      {{yield to=\\'content-right\\'}}\\n    </div>\\n  </div>\\n\\n  {{#if (is-text-truncated (concat \\'#\\' tooltipTargetId \\'__text\\'))}}\\n    <Shared::Feedback::BetaTooltip @targetId={{tooltipTargetId}} @hideDelay={{250}} @side=\\\"right\\\">\\n      {{@name}}\\n    </Shared::Feedback::BetaTooltip>\\n  {{/if}}\\n\\n{{/let}}\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-side-menu/item/content/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs } from 'stories/story-creator';\n\nexport default {\n  title: 'Navigation/BetaSideMenu/Item',\n  component: 'Navigation::BetaSideMenu::Item',\n  args: getDefaultRequiredArgs('Navigation::BetaSideMenu::Item'),\n};\n\nexport const Section = () => ({\n  template: hbs`\n    <Navigation::BetaSideMenu>\n      <Navigation::BetaSideMenu::Section\n        @title=\"My Section Title\"\n      >\n        <Navigation::BetaSideMenu::Item\n          @name=\"Foldable\"\n          @route=\"project\"\n          @icon=\"👤\"\n          @isFoldable={{true}}\n          @isFoldedByDefault={{true}}\n        >\n          <Navigation::BetaSideMenu::Item\n            @name=\"My Sub Item Name 1\"\n            @icon=\"👤\"\n            @route=\"project\"\n          />\n          <Navigation::BetaSideMenu::Item\n            @name=\"Onboarding requests 2\"\n            @icon=\"👤\"\n            @route=\"project\"\n          />\n        </Navigation::BetaSideMenu::Item>\n        <Navigation::BetaSideMenu::Item\n          @name=\"Folder only\"\n          @icon=\"👤\"\n          @isFoldable={{true}}\n          @isFoldedByDefault={{true}}\n        >\n          <Navigation::BetaSideMenu::Item\n            @name=\"My Sub Item Name 1\"\n            @icon=\"👤\"\n            @route=\"project\"\n          />\n          <Navigation::BetaSideMenu::Item\n            @name=\"Onboarding requests 2\"\n            @icon=\"👤\"\n            @route=\"project\"\n          />\n        </Navigation::BetaSideMenu::Item>\n        <Navigation::BetaSideMenu::Item\n          @name=\"Active\"\n          @icon=\"👤\"\n          @route=\"project\"\n          @isFoldable={{false}}\n          @isActive={{true}}\n        />\n        <Navigation::BetaSideMenu::Item\n          @name=\"Edit Mode\"\n          @icon=\"👤\"\n          @route=\"project\"\n          @isFoldable={{false}}\n          @isEditable={{true}}\n          @isItemInEditMode={{true}}\n          @isActive={{false}}\n        />\n        <Navigation::BetaSideMenu::Item\n          @name=\"Edit Mode Draggable\"\n          @icon=\"👤\"\n          @route=\"project\"\n          @isFoldable={{false}}\n          @isEditable={{true}}\n          @isItemInEditMode={{true}}\n          @isActive={{false}}\n          @groupName=\"TestMe\"\n        />\n        <Navigation::BetaSideMenu::Item\n          @name=\"Edit Mode Active\"\n          @icon=\"👤\"\n          @route=\"project\"\n          @isFoldable={{false}}\n          @isEditable={{true}}\n          @isItemInEditMode={{true}}\n          @isActive={{true}}\n          @groupName=\"TestMe\"\n        />\n        <Navigation::BetaSideMenu::Item\n          @name=\"Edit Mode With Visibility On\"\n          @icon=\"👤\"\n          @route=\"project\"\n          @isVisible={{true}}\n          @isFoldable={{false}}\n          @isEditable={{true}}\n          @isItemInEditMode={{true}}\n          @isActive={{false}}\n          @groupName=\"TestMe\"\n        />\n        <Navigation::BetaSideMenu::Item\n          @name=\"Edit Mode With Visibility On & Active\"\n          @icon=\"👤\"\n          @route=\"project\"\n          @isVisible={{true}}\n          @isFoldable={{false}}\n          @isEditable={{true}}\n          @isItemInEditMode={{true}}\n          @isActive={{true}}\n          @groupName=\"TestMe\"\n        />\n        <Navigation::BetaSideMenu::Item\n          @name=\"Edit Mode With Visibility Off\"\n          @icon=\"👤\"\n          @route=\"project\"\n          @isVisible={{false}}\n          @isFoldable={{false}}\n          @isEditable={{true}}\n          @isItemInEditMode={{true}}\n          @isActive={{true}}\n          @groupName=\"TestMe\"\n        />\n        <Navigation::BetaSideMenu::Item\n          @name=\"Disabled\"\n          @icon=\"👤\"\n          @route=\"project\"\n          @isFoldable={{false}}\n          @isDisabled={{true}}\n          @isActive={{true}}\n          @groupName=\"TestMe\"\n        />\n      </Navigation::BetaSideMenu::Section>\n    </Navigation::BetaSideMenu>\n  `,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  {{! class need to be static to allow drag and drop }}\\n  class=\\\"l-beta-side-menu-container\\\"\\n  data-test-beta-side-menu-item={{@name}}\\n  data-test-beta-side-menu-item-disabled={{@isDisabled}}\\n  {{did-update this.onIsFoldedByDefaultChange @isFoldedByDefault}}\\n  {{on \\'dragenter\\' this.handleDragEnter}}\\n  {{on \\'dragleave\\' this.handleDragLeave}}\\n  {{on \\'drop\\' this.handleDragLeave}}\\n  ...attributes\\n>\\n  <Navigation::BetaSideMenu::Item::ContentContainer\\n    @route={{@route}}\\n    @routeParameters={{@routeParameters}}\\n    @query={{@query}}\\n    @isActive={{@isActive}}\\n    @activeClass={{this.activeClass}}\\n    @isDisabled={{@isDisabled}}\\n    @onClick={{@onClick}}\\n    @shouldReplace={{@shouldReplace}}\\n    class={{this.itemClasses}}\\n    data-test-beta-side-menu-item-link\\n    tabindex={{if @isDisabled -1 0}}\\n    as |isLinkActive|\\n  >\\n    <Navigation::BetaSideMenu::Item::Content\\n      @icon={{unless @isIconHidden @icon}}\\n      @name={{@name}}\\n      @onClickIcon={{@onClickIcon}}\\n      @onClickSettings={{@onClickSettings}}\\n      @isSettingsHidden={{or (not this.isItemInEditMode) (not @onClickSettings)}}\\n      @isVisibilityHidden={{or (not this.isItemInEditMode) (not @onClickVisibility)}}\\n      @isFoldable={{@isFoldable}}\\n      @isFolded={{this.isFolded}}\\n      @isVisible={{@isVisible}}\\n      @isDraggable={{and @isDraggable this.isItemInEditMode (default-to @isDraggable true)}}\\n      @onClickFold={{if @isFoldable this.handleClickFold}}\\n      @onClickVisibility={{@onClickVisibility}}\\n      @isFolder={{this.isFolder}}\\n      data-test-beta-side-menu-item-link-content\\n    >\\n      <:content-right>\\n        {{yield isLinkActive to=\\'content-right\\'}}\\n      </:content-right>\\n    </Navigation::BetaSideMenu::Item::Content>\\n  </Navigation::BetaSideMenu::Item::ContentContainer>\\n\\n  {{#if (and (has-block) this.shouldDisplaySubitems)}}\\n    <div\\n      class={{get-classes-with-modifiers\\n        \\'l-beta-side-menu-container__sub-items\\'\\n        with-children=(and @canContainChildren this.isDraggingInsideThisElement)\\n      }}\\n    >\\n      {{yield}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-side-menu/item/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs } from 'stories/story-creator';\n\nexport default {\n  title: 'Navigation/BetaSideMenu/Section',\n  component: 'Navigation::BetaSideMenu::Section',\n  args: getDefaultRequiredArgs('Navigation::BetaSideMenu::Section'),\n};\n\nexport const Section = () => ({\n  template: hbs`\n    <Navigation::BetaSideMenu>\n      <Navigation::BetaSideMenu::Section\n        @title=\"My Section Title\"\n      >\n        <Navigation::BetaSideMenu::Item\n          @name=\"My Item Name\"\n          @route=\"project\"\n        />\n      </Navigation::BetaSideMenu::Section>\n      <Navigation::BetaSideMenu::Section\n        @title=\"Other Section Title\"\n      >\n        <Navigation::BetaSideMenu::Item\n          @name=\"My Item Name\"\n          @route=\"project\"\n        />\n      </Navigation::BetaSideMenu::Section>\n    </Navigation::BetaSideMenu>\n  `,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-side-menu-section\\\" data-test-beta-side-menu-section={{@title}} ...attributes>\\n  {{#if @title}}\\n    <span class=\\\"c-beta-side-menu-section__title\\\" data-test-beta-side-menu-section-title>\\n      {{@title}}\\n    </span>\\n  {{/if}}\\n\\n  {{#if @tooltip}}\\n    <Shared::Feedback::BetaTooltip @side=\\\"right\\\">{{@tooltip}}</Shared::Feedback::BetaTooltip>\\n  {{/if}}\\n\\n  <div class=\\\"l-beta-side-menu-section-content\\\">\\n    {{yield}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-side-menu/section/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-beta-side-menu {{if @isHidden \\'c-beta-side-menu--hidden\\'}}\\\"\\n  data-test-beta-side-menu\\n  ...attributes\\n>\\n  {{#if (or @title @onToggleSideMenuVisibility (has-block \\'header\\'))}}\\n    <Navigation::BetaSideMenu::Header\\n      @onToggleSideMenuVisibility={{@onToggleSideMenuVisibility}}\\n      @title={{@title}}\\n      @isHidden={{@isHidden}}\\n    >\\n      {{yield to=\\'header\\'}}\\n    </Navigation::BetaSideMenu::Header>\\n  {{/if}}\\n  <div class=\\\"l-beta-side-menu-content\\\">\\n    {{yield}}\\n  </div>\\n  <div\\n    class=\\\"c-beta-side-menu__resize-handle\\\"\\n    {{did-insert this.initSideMenuResizing}}\\n    {{! template-lint-disable no-pointer-down-event-binding no-invalid-interactive }}\\n    {{on \\'mousedown\\' this.handleMouseDown}}\\n    data-test-beta-side-menu-resize-handle\\n  ></div>\\n\\n  {{#if (has-block \\'footer\\')}}\\n    <div class=\\\"l-beta-side-menu-footer\\\">\\n      {{~yield to=\\'footer\\'~}}\\n    </div>\\n  {{/if}}\\n\\n  {{#if @displayBranding}}\\n    <SideMenu::SideMenuBranding />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/beta-side-menu/template.hbs' });\n","import { action, set } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport { pathToRenderingBuilder } from 'client/data/models/rendering';\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class NavigationComponent extends Component {\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  /** @type {import('client/legacy/services/current-user').default} */\n  @service currentUser;\n  @service lianaSession;\n  @service lianaSessionOidc;\n  @service redirection;\n  @service routeHistory;\n  @service router;\n  @service store;\n  @service('feature/folder') folderFeature;\n\n  @argument(Boolean) hasCollaborationNotification;\n\n  @tracked openDropdowns = {};\n  AVATAR_SIZE = 32;\n\n  @alias('lianaSession.rendering') rendering;\n  @alias('lianaSession.currentEnvironment') environment;\n  @alias('lianaSession.currentProject') project;\n  @alias('lianaSession.currentOrganization') organization;\n  @alias('lianaSession.currentTeam') team;\n\n  get shouldShowHelp() {\n    return (\n      this.currentUser.canEditLayout\n      && this.environment?.isDevelopment\n      && !this.project.isFullHostedProject\n    );\n  }\n\n  get lastRendering() {\n    return this.isProjectSettings\n      ? this.routeHistory.getLastRenderingPage(this.project.name)\n      : null;\n  }\n\n  get environmentName() {\n    return this.lastRendering?.params[1] || this.environment?.name;\n  }\n\n  get teamName() {\n    return this.lastRendering?.params[2] || this.team?.name;\n  }\n\n  get shouldShowProjectSettings() {\n    const { currentRouteName } = this.router;\n    return (\n      this.currentUser.canEditProject\n      && ![\n        'project.onboarding.hosting',\n        'project.onboarding.stack',\n        'project.onboarding.framework',\n        'project.onboarding.orm',\n        'project.onboarding.integration',\n        'project.onboarding.review',\n      ].includes(currentRouteName)\n      && !this.isProjectSettings\n    );\n  }\n\n  get isProjectSettings() {\n    return this.router.currentRouteName.startsWith('project.project-settings');\n  }\n\n  get gravatarUrl() {\n    return `https://www.gravatar.com/avatar/${window.md5(this.currentUser.model.email)}?d=blank`;\n  }\n\n  get userAvatarSrc() {\n    return `${this.gravatarUrl}&s=${this.AVATAR_SIZE}`;\n  }\n\n  get userAvatarSrcset() {\n    return [1, 1.5, 2]\n      .map((resolution) => `${this.gravatarUrl}&s=${this.AVATAR_SIZE * resolution} ${resolution}x`)\n      .join(',');\n  }\n\n  @action\n  isActiveSection(section) {\n    if (section.name === 'Data') {\n      return (\n        this.router.currentRouteName.includes('data')\n        || this.router.currentRouteName.includes('workspace')\n        || this.router.currentRouteName.includes('inbox')\n        || this.router.currentRouteName.includes('dashboard')\n      );\n    }\n    if (section.name === 'Collaboration') {\n      return (\n        this.router.currentRouteName.includes(section.path)\n        && !this.router.currentRouteName.includes('inbox')\n      );\n    }\n\n    return this.router.currentRouteName.startsWith(section.path);\n  }\n\n  @action\n  openDropdown(path) {\n    set(this.openDropdowns, path, {});\n  }\n\n  @action\n  closeDropdown(path) {\n    set(this.openDropdowns, path, null);\n  }\n\n  @action\n  async switchEnvironment(environment) {\n    if (environment.id !== this.environment.id) {\n      this.lianaSession.disableLogin();\n      await this.lianaSessionOidc.invalidateAll();\n      this.redirection.redirectToHref(\n        pathToRenderingBuilder(\n          this.lianaSession.currentProject.name,\n          environment.name,\n          this.rendering.team.name,\n        ),\n      );\n    }\n  }\n\n  @action\n  async switchTeam(team) {\n    if (team.id !== this.team.id) {\n      this.lianaSession.disableLogin();\n      await this.lianaSessionOidc.invalidateAll();\n      const path = pathToRenderingBuilder(this.project.name, this.environment.name, team.name);\n      this.redirection.redirectToHref(path);\n    }\n  }\n\n  @action\n  transitionTo(route) {\n    this.openDropdowns = {};\n    this.router.transitionTo(route);\n  }\n\n  @action\n  async handleSwitchProject() {\n    this.closeDropdown('project');\n    await this.currentOrganization.transitionToProjectsIndex();\n  }\n}\n","import { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport Component from '@glimmer/component';\nimport { isEqual } from 'lodash';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n/**\n * @typedef {{\n *     displayName: string;\n *     link: string;\n *     params: string[];\n *     isFirst: boolean;\n *     isLast: boolean;\n *     queryParams?: Record<string, string>;\n *   }} BreadcrumbItem\n */\n\n@validateArguments\nexport default class NavigationDataViewBreadcrumbComponent extends Component {\n  @service routeHistory;\n  @service store;\n  @service router;\n\n  /** @type {boolean} */\n  @argument(optional(Boolean))\n  isNewDesign;\n\n  static checkExistingBreadcrumb = (historyBreadcrumbs, displayName, link) =>\n    historyBreadcrumbs.any(\n      (historyItem) => historyItem.displayName === displayName && historyItem.link === link,\n    );\n\n  @computed('args.isNewDesign', 'dataViewHistory.firstObject', 'historyBreadcrumbs', 'store')\n  get defaultBreadcrumbs() {\n    let rootDisplayText;\n    const defaultBreadcrumbs = [];\n    const firstHistoryItem = this.dataViewHistory?.firstObject;\n\n    const routesToIgnore = [\n      'project.rendering.data.collection.list',\n      'project.rendering.data.collection.list.index',\n      'project.rendering.dashboard.view',\n    ];\n    if (isEmpty(firstHistoryItem) || routesToIgnore.includes(firstHistoryItem.routeName)) {\n      return defaultBreadcrumbs;\n    }\n    const collection = NavigationDataViewBreadcrumbComponent.isViewHasManyRoute(firstHistoryItem)\n      ? this.store.peekRecord('collection', firstHistoryItem.params[4])\n      : this.store.peekRecord('collection', firstHistoryItem.params[3]);\n\n    if (!collection) {\n      return defaultBreadcrumbs;\n    }\n\n    const record =\n      firstHistoryItem.params[5]\n      && this.store.peekRecord(collection.emberModelName, firstHistoryItem.params[5]);\n\n    // TODO: to delete once isPreviewingNewUI is deleted\n    rootDisplayText = this.args.isNewDesign\n      ? collection.displayNameWithEmoji\n      : collection.pluralizedDisplayName;\n\n    if (!this.args.isNewDesign) {\n      const segment = this.getSegmentIfAny(firstHistoryItem);\n\n      if (segment) {\n        rootDisplayText += ` (${segment.name})`;\n      }\n    }\n    const collectionListLink = 'project.rendering.data.collection.list.index';\n    if (\n      !NavigationDataViewBreadcrumbComponent.checkExistingBreadcrumb(\n        this.historyBreadcrumbs,\n        rootDisplayText,\n        collectionListLink,\n      )\n    ) {\n      defaultBreadcrumbs.push({\n        displayName: rootDisplayText,\n        link: collectionListLink,\n        params: NavigationDataViewBreadcrumbComponent.getCollectionParams(firstHistoryItem),\n        queryParams: firstHistoryItem.queryParams,\n        isFirst: true,\n        isLast: false,\n      });\n    }\n\n    if (\n      NavigationDataViewBreadcrumbComponent.isDataViewRoute(firstHistoryItem)\n      && (NavigationDataViewBreadcrumbComponent.isRelatedDataRoute(firstHistoryItem)\n        || NavigationDataViewBreadcrumbComponent.isCreateEditShowRoute(firstHistoryItem))\n    ) {\n      const recordDisplayName = NavigationDataViewBreadcrumbComponent.getRecordDisplayName(\n        collection,\n        record,\n      );\n      const collectionDetailsLink = 'project.rendering.data.collection.list.view-edit.details';\n      if (\n        !NavigationDataViewBreadcrumbComponent.checkExistingBreadcrumb(\n          this.historyBreadcrumbs,\n          recordDisplayName,\n          collectionDetailsLink,\n        )\n      ) {\n        defaultBreadcrumbs.push({\n          displayName: recordDisplayName,\n          link: collectionDetailsLink,\n          params: NavigationDataViewBreadcrumbComponent.getModelParams(firstHistoryItem),\n          queryParams: firstHistoryItem.queryParams,\n          isFirst: false,\n          isLast: false,\n        });\n      }\n    }\n\n    return defaultBreadcrumbs;\n  }\n\n  @computed('dataViewHistory.[]')\n  get historyBreadcrumbs() {\n    const breadcrumbs = [];\n\n    this.dataViewHistory.forEach((historyItem) => {\n      if (historyItem.modelDisplayName) {\n        breadcrumbs.push({\n          displayName: historyItem.modelDisplayName,\n          link: historyItem.routeName,\n          params: historyItem.params,\n          isFirst: false,\n          isLast: false,\n          queryParams: historyItem.queryParams,\n        });\n      }\n    });\n\n    return breadcrumbs;\n  }\n\n  @computed('dataViewHistory', 'defaultBreadcrumbs', 'historyBreadcrumbs')\n  get breadcrumbs() {\n    const breadcrumbs = [...this.defaultBreadcrumbs, ...this.historyBreadcrumbs];\n\n    if (breadcrumbs.length > 0) {\n      breadcrumbs[0].isFirst = true;\n      breadcrumbs[breadcrumbs.length - 1].isLast = true;\n    }\n\n    return breadcrumbs;\n  }\n\n  @computed('routeHistory.history.[]')\n  get dataViewHistory() {\n    let history = [...this.routeHistory.history];\n\n    if (isEmpty(history)) {\n      return [];\n    }\n\n    const historyStartIndex = this.getStartIndexFromHistory(history);\n    if (historyStartIndex < 0) {\n      return [];\n    }\n\n    history = history.slice(historyStartIndex, history.length);\n    NavigationDataViewBreadcrumbComponent.prepareAndCleanHistory(history);\n    NavigationDataViewBreadcrumbComponent.removeLoops(history);\n    return history;\n  }\n\n  @action\n  close() {\n    this.closeAction();\n  }\n\n  static prepareAndCleanHistory(history) {\n    if (!history) {\n      return;\n    }\n\n    let i = 0;\n\n    while (history[i]) {\n      const current = history[i];\n      const next = history[i + 1];\n\n      if (next) {\n        const wasUpdated = NavigationDataViewBreadcrumbComponent._cleanHistoryDependingOnNextRoute(\n          current,\n          next,\n          history,\n          i,\n        );\n        i += wasUpdated ? 0 : 1;\n      } else {\n        if (NavigationDataViewBreadcrumbComponent.isCreateEditShowRoute(current)) {\n          NavigationDataViewBreadcrumbComponent.handleShowCreateEditRoute(history, current, i);\n        }\n        i += 1;\n      }\n    }\n  }\n\n  static _cleanHistoryDependingOnNextRoute(current, next, history, index) {\n    const isNextRouteCreate = NavigationDataViewBreadcrumbComponent.isCreateEditShowRoute(next);\n\n    const isCreateRouteToDelete =\n      // check for create route without HasMany\n      (!isNextRouteCreate\n        && NavigationDataViewBreadcrumbComponent.isCreateWithoutHasManyRoute(current, next)) ||\n      // remove consecutive creation routes that are not last or non data creation route that are not last\n      (isNextRouteCreate\n        && (!NavigationDataViewBreadcrumbComponent.isLast(history, index + 1)\n          || NavigationDataViewBreadcrumbComponent.isCreateEditShowRoute(current))) ||\n      // remove belongsTo creation routes that are not last\n      (!NavigationDataViewBreadcrumbComponent.isLast(history, index + 1)\n        && NavigationDataViewBreadcrumbComponent.isCreateNewBelongsToRoute(current));\n\n    const isDataViewRoute =\n      !isNextRouteCreate && NavigationDataViewBreadcrumbComponent.isDataViewRoute(current);\n    const isNotDisplayedHistory =\n      NavigationDataViewBreadcrumbComponent.haveSameRouteName(current, next)\n      || NavigationDataViewBreadcrumbComponent.isRelatedDataRoute(current)\n      || NavigationDataViewBreadcrumbComponent.isCreateEditShowRoute(current);\n    const isDataRouteToDelete =\n      NavigationDataViewBreadcrumbComponent.haveSameParams(current, next)\n      || (NavigationDataViewBreadcrumbComponent.haveSameModel(current, next)\n        && isNotDisplayedHistory);\n    const shouldKeep =\n      NavigationDataViewBreadcrumbComponent.isLast(history, index + 1)\n      && next.routeName.includes('.view-has-many')\n      && next.routeName.endsWith('.create')\n      && current.routeName.includes('.view-has-many')\n      && current.routeName.endsWith('.index');\n\n    const isNextRouteCollectionSettings =\n      NavigationDataViewBreadcrumbComponent.isCollectionSettings(next);\n    const isCollectionSettingsRoute =\n      NavigationDataViewBreadcrumbComponent.isCollectionSettings(current);\n\n    const shouldDelete =\n      isCreateRouteToDelete\n      || (isDataViewRoute && isDataRouteToDelete && !shouldKeep)\n      || (isNextRouteCollectionSettings && isCollectionSettingsRoute);\n\n    if (shouldDelete) {\n      history.splice(index, 1);\n    }\n    return shouldDelete;\n  }\n\n  static isLast(history, index) {\n    return history.length - 1 === index;\n  }\n\n  static removeLoops(history) {\n    if (!history) {\n      return;\n    }\n\n    let i = 1;\n    while (history[i]) {\n      const index = NavigationDataViewBreadcrumbComponent.isAlreadyPresent(history, history[i]);\n      if (index > -1 && index < i) {\n        history.splice(index, i - index);\n        i = index;\n      } else {\n        i += 1;\n      }\n    }\n  }\n\n  static isAlreadyPresent(history, historyItem) {\n    return history.findIndex(\n      (currentItem) =>\n        currentItem.modelDisplayName === historyItem.modelDisplayName\n        && NavigationDataViewBreadcrumbComponent.haveSameModel(currentItem, historyItem),\n    );\n  }\n\n  static isCollectionSettings(historyItem) {\n    return historyItem.routeName.includes('.collection.settings');\n  }\n\n  static isCreateEditShowRoute(historyItem) {\n    return (\n      historyItem.routeName.includes('.view-edit')\n      && (historyItem.routeName.includes('.create')\n        || historyItem.routeName.includes('.show')\n        || historyItem.routeName.includes('.edit'))\n    );\n  }\n\n  static isCreateWithoutHasManyRoute(currentHistoryItem, nextHistoryItem) {\n    return (\n      currentHistoryItem.routeName.includes('.view-create')\n      && !nextHistoryItem.routeName.includes('.view-create')\n    );\n  }\n\n  static isCreateNewBelongsToRoute(historyItem) {\n    return historyItem.routeName.includes('.view-create.new-belongs-to');\n  }\n\n  static isRelatedDataRoute(historyItem) {\n    return (\n      historyItem.routeName.includes('.view-has-many')\n      || historyItem.routeName.includes('.integration')\n    );\n  }\n\n  static isViewHasManyRoute(historyItem) {\n    return historyItem.routeName.includes('.view-has-many');\n  }\n\n  static isCollaborationRoute(historyItem) {\n    return historyItem.routeName.includes('.collaboration');\n  }\n\n  static isChartRoute(historyItem) {\n    return historyItem.routeName.includes('.analytics');\n  }\n\n  static isDataViewRoute(historyItem) {\n    return (\n      historyItem.routeName.includes('.view-edit') || historyItem.routeName.includes('.view-create')\n    );\n  }\n\n  static isCollectionOrCollectionSettingsRoute(historyItem) {\n    return (\n      historyItem.routeName.includes('.collection.list')\n      || historyItem.routeName.includes('.collection.settings')\n    );\n  }\n\n  static isDashboardRoute(historyItem) {\n    return historyItem.routeName.includes('.dashboard.view');\n  }\n\n  isStartingItem(item) {\n    return this.args.isNewDesign\n      ? NavigationDataViewBreadcrumbComponent.isCollectionOrCollectionSettingsRoute(item)\n          || NavigationDataViewBreadcrumbComponent.isDashboardRoute(item)\n      : NavigationDataViewBreadcrumbComponent.isDataViewRoute(item);\n  }\n\n  static handleShowCreateEditRoute(history, historyItem, index) {\n    if (historyItem.routeName.includes('create')) {\n      NavigationDataViewBreadcrumbComponent.handleCreationRoute(history, historyItem, index);\n    } else {\n      NavigationDataViewBreadcrumbComponent.handleShowRoute(historyItem);\n    }\n  }\n\n  static handleCreationRoute(history, historyItem, index) {\n    if (NavigationDataViewBreadcrumbComponent.isChartRoute(historyItem)) {\n      historyItem.modelDisplayName = 'Add chart';\n    } else if (NavigationDataViewBreadcrumbComponent.isCollaborationRoute(historyItem)) {\n      historyItem.modelDisplayName = 'Create note';\n    } else if (history[index - 1]) {\n      const previous = history[index - 1];\n\n      if (previous) {\n        historyItem.modelDisplayName = `Create ${previous.modelDisplayName}`;\n      }\n    }\n  }\n\n  static handleShowRoute(historyItem) {\n    if (NavigationDataViewBreadcrumbComponent.isCollaborationRoute(historyItem)) {\n      const noteId = historyItem.params[6];\n      historyItem.modelDisplayName = `Note #${noteId}`;\n    } else {\n      const chartId = historyItem.params[6];\n      historyItem.modelDisplayName = `Chart #${chartId}`;\n    }\n  }\n\n  static haveSameParams(current, next) {\n    return isEqual(current.params, next.params);\n  }\n\n  static haveSameModel(current, next) {\n    return isEqual(\n      NavigationDataViewBreadcrumbComponent.getModelParams(current),\n      NavigationDataViewBreadcrumbComponent.getModelParams(next),\n    );\n  }\n\n  static haveSameRouteName(current, next) {\n    return (\n      NavigationDataViewBreadcrumbComponent.getBaseRoutePurpose(current)\n      === NavigationDataViewBreadcrumbComponent.getBaseRoutePurpose(next)\n    );\n  }\n\n  static stopHistoryAt(historyItem) {\n    return (\n      [\n        'project.rendering.data.collection.list.index',\n        'project.rendering.dashboard.view.index',\n      ].includes(historyItem.routeName)\n      || historyItem.routeName.startsWith('project.rendering.data.collection.settings')\n    );\n  }\n\n  getStartIndexFromHistory(routeHistory) {\n    if (isEmpty(routeHistory)) {\n      return -1;\n    }\n\n    let historyStartIndex = routeHistory.length - 1;\n    let historyItem = routeHistory[historyStartIndex];\n\n    while (historyItem && this.isStartingItem(historyItem)) {\n      historyStartIndex -= 1;\n\n      if (NavigationDataViewBreadcrumbComponent.stopHistoryAt(historyItem)) {\n        break;\n      }\n\n      historyItem = routeHistory[historyStartIndex];\n    }\n\n    return historyStartIndex + 1;\n  }\n\n  getSegmentIfAny(historyItem) {\n    let segment;\n\n    if (historyItem.queryParams && historyItem.queryParams.segmentId) {\n      segment = this.store.peekRecord('segment', historyItem.queryParams.segmentId);\n    }\n\n    return segment;\n  }\n\n  static getRecordDisplayName(collection, record) {\n    if (!collection || !record) {\n      return '';\n    }\n\n    const displayFieldName = collection.displayFieldWithNamespace;\n\n    return displayFieldName === 'id'\n      ? `#${record.get(displayFieldName)}`\n      : record.get(displayFieldName);\n  }\n\n  static _getParams(historyItem, size) {\n    if (isEmpty(historyItem) && isEmpty(historyItem.params)) {\n      return [];\n    }\n\n    return historyItem.params.slice(0, size);\n  }\n\n  static getCollectionParams(historyItem) {\n    return NavigationDataViewBreadcrumbComponent._getParams(historyItem, 4);\n  }\n\n  static getModelParams(historyItem) {\n    const endIndex = historyItem.routeName.includes('.view-create') ? 5 : 6;\n    return NavigationDataViewBreadcrumbComponent._getParams(historyItem, endIndex);\n  }\n\n  static getBaseRoutePurpose(historyItem) {\n    if (isEmpty(historyItem) && isEmpty(historyItem.routeName)) {\n      return [];\n    }\n\n    return historyItem.routeName.split('.').slice(0, 7).join('.');\n  }\n}\n","import { action } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { guidFor } from '@ember/object/internals';\nimport { debounce } from '@ember/runloop';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class NavigationDataViewBreadcrumbItemComponent extends Component {\n  static propTypes = {\n    breadcrumb: PropTypes.shape({\n      displayName: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.date])\n        .isRequired,\n      svgIcon: PropTypes.string,\n      isLast: PropTypes.bool,\n      isFirst: PropTypes.bool,\n    }),\n    isNewDesign: PropTypes.bool,\n  };\n\n  willDestroy(...args) {\n    super.willDestroy(...args);\n    window.removeEventListener('resize', this.debouncedOverflowCheck);\n  }\n\n  @tracked displayTooltip = false;\n  @reads('args.breadcrumb.isFirst') isFirst;\n  @reads('args.breadcrumb.isLast') isLast;\n\n  get componentId() {\n    return guidFor(this);\n  }\n\n  @action\n  initOverflowListener() {\n    this.checkOverflow();\n    window.addEventListener('resize', this.debouncedOverflowCheck);\n  }\n\n  @action\n  debouncedOverflowCheck() {\n    debounce(this, this.checkOverflow, 400);\n  }\n\n  checkOverflow() {\n    const element = document.getElementById(this.componentId);\n    const children = element?.children;\n    if (children && children.length > 1) {\n      const textNode = children[1];\n      this.displayTooltip = textNode.offsetWidth < textNode.scrollWidth;\n    } else {\n      this.displayTooltip = false;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  id={{this.componentId}}\\n  class=\\\"c-breadcrumb-section {{unless @isNewDesign \\'c-breadcrumb-section--old-design\\'}} \\\"\\n  {{did-insert this.initOverflowListener}}\\n  data-test-data-view-breadcrumb-item\\n  data-test-data-view-breadcrumb-item-last={{this.isLast}}\\n  ...attributes\\n>\\n  {{#unless this.isFirst}}\\n    <span class=\\\"c-breadcrumb-section__separator\\\" data-test-data-view-breadcrumb-item-separator>\\n      {{#if @isNewDesign}}\\n        /\\n      {{else}}\\n        <Shared::DataDisplay::BetaIcon @iconName=\\\"chevron_right\\\" @size=\\\"tiny\\\" />\\n      {{/if}}\\n    </span>\\n  {{/unless}}\\n  <LinkTo\\n    @route={{@breadcrumb.link}}\\n    @models={{or @breadcrumb.params (array)}}\\n    @query={{or @breadcrumb.queryParams (hash)}}\\n    disabled={{this.isLast}}\\n    class=\\\"c-breadcrumb-section__link js-breadcrumb-item\\\"\\n    data-test-data-view-breadcrumb-item-link\\n  >\\n    {{#if @breadcrumb.svgIcon}}\\n      <Shared::Svg @src={{@breadcrumb.svgIcon}} class=\\\"c-breadcrumb-section__link-icon\\\" />\\n    {{/if}}\\n\\n    {{@breadcrumb.displayName}}\\n    {{#if this.displayTooltip}}\\n      <Shared::Feedback::BetaTooltip @position=\\\"bottom\\\" @class=\\\"c-breadcrumb-section__tooltip\\\">\\n        {{@breadcrumb.displayName}}\\n      </Shared::Feedback::BetaTooltip>\\n    {{/if}}\\n  </LinkTo>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/data-view-breadcrumb/item/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-data-view-breadcrumb {{unless @isNewDesign \\'c-data-view-breadcrumb--old-design\\'}}\\\"\\n  ...attributes\\n>\\n  <div class=\\\"c-data-view-breadcrumb__sections\\\">\\n    {{#let (or @breadcrumbs this.breadcrumbs) as |breadcrumbs|}}\\n      {{#each breadcrumbs as |breadcrumb|}}\\n        <Navigation::DataViewBreadcrumb::Item\\n          @breadcrumb={{breadcrumb}}\\n          @isNewDesign={{@isNewDesign}}\\n        />\\n      {{/each}}\\n    {{/let}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/data-view-breadcrumb/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-navigation-dropdown-container\\\" data-test-navigation-dropdown-container ...attributes>\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/dropdown-container/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Clickable\\n  @href={{@href}}\\n  @route={{@route}}\\n  @model={{@model}}\\n  @models={{@models}}\\n  @onClick={{if @isActive (do-nothing-function) @onClick}}\\n  class=\\\"c-navigation-dropdown-item\\n    {{if\\n      @isActive\\n      (concat \\'c-navigation-dropdown-item--active\\' (if @isEnvironment \\'-environment\\'))\\n    }}\\n    {{if @isEnvironment \\'c-navigation-dropdown-item--environment\\'}}\\n    {{if @initials \\'c-navigation-dropdown-item--initials\\'}}\\n    \\\"\\n  data-test-navigation-dropdown-item\\n  ...attributes\\n>\\n  {{#if @image}}\\n    <img\\n      src={{@image}}\\n      alt={{@text}}\\n      class=\\\"c-navigation-dropdown-item__image\\\"\\n      data-test-navigation-dropdown-item-image\\n    />\\n  {{else if @icon}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{@icon}}\\n      class=\\\"c-navigation-dropdown-item__icon\\n        {{if @isDanger \\'c-navigation-dropdown-item__icon--danger\\'}}\\\"\\n      data-test-navigation-dropdown-item-icon\\n    />\\n  {{else if @initials}}\\n    <Navigation::Avatar\\n      @text={{@initials}}\\n      @isActive={{@isActive}}\\n      class=\\\"c-navigation-dropdown-item__avatar\\\"\\n      data-test-navigation-dropdown-item-avatar\\n    />\\n  {{/if}}\\n  <div class=\\\"c-navigation-dropdown-item__text\\\" data-test-navigation-dropdown-item-text>\\n    {{@text}}\\n  </div>\\n  {{#if @hasToggle}}\\n    <Shared::Form::Toggle\\n      @value={{@toggleValue}}\\n      @onChange={{@onChangeToggleValue}}\\n      data-test-navigation-dropdown-item-switch\\n    />\\n  {{else if @rightIcon}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{@rightIcon}}\\n      class=\\\"c-navigation-dropdown-item__icon\\\"\\n      data-test-navigation-dropdown-item-right-icon\\n    />\\n  {{/if}}\\n</Shared::Clickable>\\n', { moduleName: 'client/legacy/pods/components/navigation/dropdown/item/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-navigation-dropdown-section\\\" data-test-navigation-dropdown-section ...attributes>\\n  {{#if @header}}\\n    <span\\n      class=\\\"c-navigation-dropdown-section__header\\\"\\n      data-test-navigation-dropdown-section-header\\n    >\\n      {{@header}}\\n    </span>\\n  {{/if}}\\n  <div class=\\\"c-navigation-dropdown-section__content\\\" data-test-navigation-dropdown-section-content>\\n    {{yield}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/dropdown/section/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @isOpen}}\\n  <div class=\\\"c-navigation-dropdown\\\" data-test-navigation-dropdown ...attributes>\\n    {{yield}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/navigation/dropdown/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::Dropdown\\n  @isOpen={{@isOpen}}\\n  {{forest-on-click-outside @onClose}}\\n  class=\\\"c-navigation-help-dropdown\\\"\\n  data-test-navigation-help-dropdown\\n  ...attributes\\n>\\n  <Navigation::Dropdown::Section>\\n    <Navigation::Dropdown::Item\\n      @text=\\\"Setup guide\\\"\\n      @icon=\\\"school\\\"\\n      @href=\\\"https://docs.forestadmin.com/user-guide/\\\"\\n      @onClick={{@onClose}}\\n      data-test-navigation-help-dropdown-setup-guide\\n    />\\n    <Navigation::Dropdown::Item\\n      @text=\\\"Documentation\\\"\\n      @icon=\\\"book\\\"\\n      @href=\\\"https://docs.forestadmin.com/\\\"\\n      @onClick={{@onClose}}\\n      data-test-navigation-help-dropdown-documentation\\n    />\\n    <Navigation::Dropdown::Item\\n      @text=\\\"Our community\\\"\\n      @icon=\\\"message\\\"\\n      @href=\\\"https://community.forestadmin.com\\\"\\n      @onClick={{@onClose}}\\n      data-test-navigation-help-dropdown-community\\n    />\\n  </Navigation::Dropdown::Section>\\n</Navigation::Dropdown>\\n', { moduleName: 'client/legacy/pods/components/navigation/help-dropdown/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { any, argument, arrayOf, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class NavigationIconButtonComponent extends Component {\n  @argument(String) icon;\n  @argument(String) tooltip;\n  @argument(optional(Boolean)) hasNotification;\n  @argument(optional(Boolean)) isEditable;\n  @argument(optional(Function)) onClick;\n  @argument(optional(String)) route;\n  @argument(optional(arrayOf(any()))) models;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Clickable\\n  @route={{@route}}\\n  @models={{@models}}\\n  @activeClass=\\\"c-navigation-icon-button--active\\\"\\n  @onClick={{@onClick}}\\n  @isActive={{@isActive}}\\n  class=\\\"c-navigation-icon-button {{if @isEditable \\'c-navigation-icon-button--editable\\'}} \\\"\\n  ...attributes\\n>\\n  <Shared::DataDisplay::BetaIcon @iconName={{@icon}} class=\\\"c-navigation-icon-button__icon\\\" />\\n  {{#if @hasNotification}}\\n    <span class=\\\"c-navigation-icon-button__notification\\\"></span>\\n  {{/if}}\\n  <Shared::Feedback::BetaTooltip @side=\\\"right\\\">\\n    {{@tooltip}}\\n  </Shared::Feedback::BetaTooltip>\\n</Shared::Clickable>\\n', { moduleName: 'client/legacy/pods/components/navigation/icon-button/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\n\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface NavigationLinkToWithClickComponentArgs {\n  id?: string;\n  'current-when'?: boolean | string;\n  onClick?: (event: MouseEvent) => void;\n  route: string;\n  models?: unknown[];\n  activeClass?: string;\n  disabled?: boolean;\n  query?: Record<string, unknown>;\n}\n\nexport default class NavigationLinkToWithClickComponent extends Component<NavigationLinkToWithClickComponentArgs> {\n  @service private router: RouterService;\n\n  public linkId = this.args.id || `${guidFor(this)}-link`;\n  private _onClickHandler: (event: MouseEvent) => void;\n\n  constructor(owner: unknown, args: NavigationLinkToWithClickComponentArgs) {\n    super(owner, args);\n\n    this._onClickHandler = (event: MouseEvent) => {\n      if (this.linkElement?.contains(event.target as Node)) {\n        this.args.onClick?.(event);\n      }\n    };\n\n    document.addEventListener('click', this._onClickHandler);\n  }\n\n  willDestroy() {\n    super.willDestroy();\n\n    document.removeEventListener('click', this._onClickHandler);\n  }\n\n  get linkElement() {\n    return document.getElementById(this.linkId);\n  }\n\n  get isActive() {\n    return typeof this.args['current-when'] === 'boolean'\n      ? this.args['current-when']\n      : // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        this.router.isActive(this.args.route, ...(this.args.models || []), {\n          queryParams: this.args.query || {},\n        });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{~\\'\\'~}}\\n<LinkTo\\n  @route={{@route}}\\n  @models={{or @models (array)}}\\n  @query={{or @query (hash)}}\\n  @current-when={{@current-when}}\\n  @activeClass={{@activeClass}}\\n  @disabled={{@disabled}}\\n  @replace={{@shouldReplace}}\\n  data-test-navigation-link-to-with-click\\n  data-test-navigation-link-to-with-click-active={{eq @current-when true}}\\n  ...attributes\\n  id={{this.linkId}}\\n>\\n  {{~yield this.isActive~}}\\n</LinkTo>\\n{{~\\'\\'~}}\\n', { moduleName: 'client/legacy/pods/components/navigation/link-to-with-click/template.hbs' });\n","import Component from '@ember/component';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-navigation-menu')\n@classNameBindings('isNested:c-navigation-menu--nested')\nexport default class NavigationNavigationMenuComponent extends Component {\n  propTypes = {\n    items: PropTypes.arrayOf(PropTypes.object).isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-navigation-menu-items\\\">\\n  {{#each @items as |item|}}\\n    {{#unless item.isHidden}}\\n      <LinkTo\\n        @route={{item.link}}\\n        @models={{if item.linkModel (array item.linkModel) (array)}}\\n        @query={{or item.queryParams (hash)}}\\n        @activeClass=\\\"c-navigation-menu__item--active\\\"\\n        @current-when={{item.currentWhen}}\\n        class=\\\"c-navigation-menu__item\\\"\\n        data-test-navigation-menu-item={{item.label}}\\n      >\\n        <span class=\\\"c-navigation-menu__item-label\\\">\\n          {{item.label}}\\n        </span>\\n      </LinkTo>\\n    {{/unless}}\\n  {{/each}}\\n</div>\\n\\n<div class=\\\"c-navigation-menu__actions\\\">\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/navigation-menu/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-navigation-project-button {{if @isHidden \\'c-navigation-project-button--hidden\\'}} \\\"\\n  ...attributes\\n>\\n  <img\\n    role=\\\"button\\\"\\n    src={{or @project.pictureUrl \\'/img/logo.svg\\'}}\\n    alt={{@project.name}}\\n    class=\\\"c-navigation-project-button__image\\\"\\n  />\\n  <i class=\\\"c-navigation-project-button__arrow\\\">arrow_drop_down</i>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/project/button/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::Dropdown\\n  @isOpen={{@isOpen}}\\n  {{forest-on-click-outside @onClose}}\\n  class=\\\"c-navigation-project-dropdown\\\"\\n  data-test-navigation-project-dropdown\\n  ...attributes\\n>\\n  <Navigation::Dropdown::Section\\n    @header=\\\"Project\\\"\\n    data-test-navigation-project-dropdown-section=\\\"project\\\"\\n  >\\n    <div class=\\\"c-navigation-project-dropdown__project\\\">\\n      {{#if @project.pictureUrl}}\\n        <img\\n          src={{@project.pictureUrl}}\\n          alt={{@project.name}}\\n          class=\\\"c-navigation-project-dropdown__image\\\"\\n          data-test-navigation-project-dropdown-project-picture\\n        />\\n      {{else}}\\n        <span\\n          class=\\\"c-navigation-project-dropdown__initials\\\"\\n          data-test-navigation-project-dropdown-project-initials\\n        >\\n          {{@project.initials}}\\n        </span>\\n      {{/if}}\\n      <span\\n        class=\\\"c-navigation-project-dropdown__name\\\"\\n        data-test-navigation-project-dropdown-project-name\\n      >\\n        {{@project.name}}\\n      </span>\\n    </div>\\n  </Navigation::Dropdown::Section>\\n  <Navigation::Dropdown::Section data-test-navigation-project-dropdown-section=\\\"settings\\\">\\n    {{#if @shouldShowProjectSettings}}\\n      <Navigation::Dropdown::Item\\n        @text=\\\"Project settings\\\"\\n        @icon=\\\"settings\\\"\\n        @onClick={{fn @transitionTo \\'project.project-settings\\'}}\\n        data-test-navigation-project-dropdown-project-settings\\n      />\\n    {{/if}}\\n    <Navigation::Dropdown::Item\\n      @text=\\\"Switch project\\\"\\n      @icon=\\\"swap_horiz\\\"\\n      @onClick={{@onSwitchProject}}\\n      data-test-navigation-project-dropdown-project-switch\\n    />\\n  </Navigation::Dropdown::Section>\\n  {{#unless (or (eq @project.accessibleEnvironments.length 0) @isProjectSettings)}}\\n    <Navigation::Dropdown::Section\\n      @header=\\\"Environments\\\"\\n      class=\\\"c-navigation-project-dropdown__environments\\\"\\n      data-test-navigation-project-dropdown-section=\\\"environments\\\"\\n    >\\n      {{#each @project.accessibleNonTestEnvironments as |environment|}}\\n        <Navigation::Dropdown::Item\\n          @isEnvironment={{true}}\\n          @text={{environment.name}}\\n          @isActive={{eq @environment.name environment.name}}\\n          @onClick={{fn @switchEnvironment environment}}\\n          data-test-navigation-project-dropdown-environment={{environment.name}}\\n        />\\n      {{/each}}\\n\\n      <Feature::Environment::TestEnvironmentSelector @onSelect={{@switchEnvironment}} />\\n    </Navigation::Dropdown::Section>\\n  {{/unless}}\\n</Navigation::Dropdown>\\n', { moduleName: 'client/legacy/pods/components/navigation/project/dropdown/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-navigation\\\" data-test-navigation ...attributes>\\n  <Navigation::DropdownContainer>\\n    <Navigation::Project::Dropdown\\n      @environment={{this.environment}}\\n      @isOpen={{this.openDropdowns.project}}\\n      @isProjectSettings={{this.isProjectSettings}}\\n      @project={{this.project}}\\n      @shouldShowProjectSettings={{this.shouldShowProjectSettings}}\\n      @switchEnvironment={{this.switchEnvironment}}\\n      @transitionTo={{this.transitionTo}}\\n      @onClose={{fn this.closeDropdown \\'project\\'}}\\n      @onSwitchProject={{this.handleSwitchProject}}\\n      data-test-navigation-project-dropdown\\n    />\\n    <Navigation::Project::Button\\n      @project={{this.project}}\\n      @isHidden={{this.openDropdowns.project}}\\n      {{on \\'click\\' (fn this.openDropdown \\'project\\')}}\\n      data-test-navigation-project-button\\n    />\\n  </Navigation::DropdownContainer>\\n  <div\\n    class=\\\"c-navigation__main-links\\\"\\n    {{sortable-group\\n      groupName=\\'main-links\\'\\n      disabled=(not this.currentUser.editMode)\\n      onChange=(route-action \\'reorderRenderingSections\\')\\n    }}\\n  >\\n    {{#each this.rendering.sectionsDecoratedVisible as |section|}}\\n      <Navigation::IconButton\\n        @tooltip={{section.name}}\\n        @icon={{section.icon}}\\n        @hasNotification={{and (eq section.name \\'Collaboration\\') @hasCollaborationNotification}}\\n        @route={{section.path}}\\n        @models={{array this.environmentName this.teamName}}\\n        @isEditable={{this.currentUser.editMode}}\\n        @isActive={{(this.isActiveSection section)}}\\n        {{sortable-item groupName=\\'main-links\\' model=section}}\\n        data-test-navigation-rendering-section={{section.name}}\\n      />\\n    {{/each}}\\n  </div>\\n  {{#if this.shouldShowHelp}}\\n    <Navigation::DropdownContainer>\\n      <Navigation::HelpDropdown\\n        @isOpen={{this.openDropdowns.help}}\\n        @onClose={{fn this.closeDropdown \\'help\\'}}\\n        data-test-navigation-help-dropdown\\n      />\\n      <Navigation::IconButton\\n        @icon=\\\"lightbulb_outlined\\\"\\n        @onClick={{fn this.openDropdown \\'help\\'}}\\n        @tooltip=\\\"Help\\\"\\n        data-test-navigation-help-button\\n      />\\n    </Navigation::DropdownContainer>\\n  {{/if}}\\n\\n  <Feature::Cloud::CustomizationHelp::NavigationButton />\\n  <Feature::Cloud::SynchronizeButton />\\n\\n  <Navigation::DropdownContainer>\\n    <Navigation::User::Dropdown\\n      @isOpen={{this.openDropdowns.user}}\\n      @onClose={{fn this.closeDropdown \\'user\\'}}\\n      @currentUser={{this.currentUser}}\\n      @userAvatarSrc={{this.userAvatarSrc}}\\n      @userAvatarSrcset={{this.userAvatarSrcset}}\\n      @currentTeam={{this.team}}\\n      @teams={{this.currentUser.model.teamsOrderByName}}\\n      @switchTeam={{this.switchTeam}}\\n      @organization={{this.organization}}\\n      data-test-navigation-user-dropdown\\n    />\\n    <Navigation::User::Button\\n      @user={{this.currentUser.model}}\\n      @userAvatarSrc={{this.userAvatarSrc}}\\n      @userAvatarSrcset={{this.userAvatarSrcset}}\\n      @team={{this.team}}\\n      {{on \\'click\\' (fn this.openDropdown \\'user\\')}}\\n      data-test-navigation-user-button\\n    />\\n  </Navigation::DropdownContainer>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-navigation-user-button\\\" ...attributes>\\n  <Navigation::Avatar\\n    @text={{@user.initials}}\\n    @src={{@userAvatarSrc}}\\n    @srcset={{@userAvatarSrcset}}\\n    class=\\\"c-navigation-user-button__user\\\"\\n  />\\n  <Navigation::Avatar\\n    @text={{@team.initials}}\\n    @isActive={{true}}\\n    class=\\\"c-navigation-user-button__team\\\"\\n  />\\n  <i class=\\\"c-navigation-user-button__arrow\\\">\\n    arrow_drop_down\\n  </i>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/navigation/user/button/template.hbs' });\n","import type AuthenticationFeatureService from 'client/features/authentication/services/feature';\nimport type UserPreferenceManagerSharedBusinessService from 'client/shared/services/user-preference-manager';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { LayoutThemeEnum } from 'client/shared/states/user-preference';\n\nexport default class NavigationNavigationMenuComponent extends Component {\n  @service('feature/authentication')\n  private authenticationFeatureService: AuthenticationFeatureService;\n\n  @service('shared/state/user-preference') public userPreferenceState: UserPreferenceState;\n  @service('shared/user-preference-manager')\n  private userPreferenceManager: UserPreferenceManagerSharedBusinessService;\n\n  @action\n  handleToggleDarkMode(isDarkTheme: boolean) {\n    this.userPreferenceManager.setTheme(isDarkTheme ? LayoutThemeEnum.Dark : LayoutThemeEnum.Light);\n  }\n\n  @action\n  async logout() {\n    await this.authenticationFeatureService.logout();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::Dropdown\\n  @isOpen={{@isOpen}}\\n  {{forest-on-click-outside @onClose}}\\n  class=\\\"c-navigation-user-dropdown\\\"\\n  data-test-navigation-user-dropdown\\n  ...attributes\\n>\\n  <Navigation::Dropdown::Section data-test-navigation-user-dropdown-section=\\\"user\\\">\\n    <div class=\\\"c-navigation-user-dropdown__user\\\">\\n      <Navigation::Avatar\\n        @text={{@currentUser.model.initials}}\\n        @src={{@userAvatarSrc}}\\n        @srcset={{@userAvatarSrcset}}\\n        class=\\\"c-navigation-user-dropdown__user-avatar\\\"\\n        data-test-navigation-user-dropdown-user-avatar\\n      />\\n      <div>\\n        <div\\n          class=\\\"c-navigation-user-dropdown__user-name\\\"\\n          data-test-navigation-user-dropdown-user-name\\n        >\\n          {{@currentUser.model.fullName}}\\n        </div>\\n        <div\\n          class=\\\"c-navigation-user-dropdown__user-email\\\"\\n          data-test-navigation-user-dropdown-user-email\\n        >\\n          {{@currentUser.model.email}}\\n        </div>\\n      </div>\\n    </div>\\n    <Navigation::Dropdown::Item\\n      @icon=\\\"brightness_3\\\"\\n      @text=\\\"Night Mode\\\"\\n      @hasToggle={{true}}\\n      @toggleValue={{this.userPreferenceState.isDarkTheme}}\\n      @onChangeToggleValue={{this.handleToggleDarkMode}}\\n      @onClick={{fn this.handleToggleDarkMode (not this.userPreferenceState.isDarkTheme)}}\\n      data-test-navigation-user-dropdown-night-mode\\n    />\\n  </Navigation::Dropdown::Section>\\n  <Navigation::Dropdown::Section @header=\\\"Teams\\\" data-test-navigation-user-dropdown-section=\\\"teams\\\">\\n    <Navigation::Dropdown::Item\\n      @initials={{@currentTeam.initials}}\\n      @text={{@currentTeam.name}}\\n      @isActive={{true}}\\n      data-test-navigation-user-dropdown-team\\n    />\\n    {{#if (gt @teams.length 1)}}\\n      <Navigation::Dropdown\\n        @isOpen={{@isOpen.teams}}\\n        {{forest-on-click-outside (fn (mut @isOpen.teams) null)}}\\n        class=\\\"c-navigation-user-dropdown__teams\\\"\\n        data-test-navigation-user-dropdown-teams-dropdown\\n      >\\n        <Navigation::Dropdown::Section @header=\\\"Teams\\\">\\n          {{#each @teams as |team|}}\\n            <Navigation::Dropdown::Item\\n              @initials={{team.initials}}\\n              @text={{team.name}}\\n              @isActive={{eq @currentTeam.id team.id}}\\n              @onClick={{fn @switchTeam team}}\\n              data-test-navigation-user-dropdown-team={{team.name}}\\n            />\\n          {{/each}}\\n        </Navigation::Dropdown::Section>\\n      </Navigation::Dropdown>\\n      <Navigation::Dropdown::Item\\n        @icon=\\\"swap_horiz\\\"\\n        @text=\\\"Switch Team\\\"\\n        @rightIcon=\\\"chevron_right\\\"\\n        @onClick={{fn (mut @isOpen.teams) true}}\\n        data-test-navigation-user-dropdown-switch-team\\n      />\\n    {{/if}}\\n  </Navigation::Dropdown::Section>\\n  {{#unless @currentUser.model.isLiveDemo}}\\n    <Navigation::Dropdown::Section data-test-navigation-user-dropdown-section=\\\"settings\\\">\\n      <Navigation::Dropdown::Item\\n        @icon=\\\"settings\\\"\\n        @text=\\\"Account Settings\\\"\\n        @route=\\\"user-settings.index\\\"\\n        data-test-navigation-user-dropdown-account-settings\\n      />\\n      {{#if @organization.canAccessOrganizationSettings}}\\n        <Navigation::Dropdown::Item\\n          @icon=\\\"business\\\"\\n          @text=\\\"Organization Settings\\\"\\n          @route=\\\"organization.settings\\\"\\n          @model={{@organization.name}}\\n          data-test-navigation-user-dropdown-organization-settings\\n        />\\n      {{/if}}\\n    </Navigation::Dropdown::Section>\\n  {{/unless}}\\n  <Navigation::Dropdown::Section data-test-navigation-user-dropdown-section=\\\"logout\\\">\\n    <Navigation::Dropdown::Item\\n      @icon=\\\"logout\\\"\\n      @text=\\\"Log out\\\"\\n      @isDanger={{true}}\\n      @onClick={{this.logout}}\\n      data-test-navigation-user-dropdown-section-logout-item\\n    />\\n  </Navigation::Dropdown::Section>\\n</Navigation::Dropdown>\\n', { moduleName: 'client/legacy/pods/components/navigation/user/dropdown/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class NewOrganizationModalComponent extends Component {\n  @argument(Function) closePopup;\n\n  /** @type {import('client/legacy/services/organization-service').default} */\n  @service organizationService;\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n  @service toastr;\n  @service store;\n\n  @tracked isValidName = false;\n  @tracked isChecking = false;\n\n  organizationName = '';\n  @tracked errorMessage = '';\n\n  @action\n  async createOrganization() {\n    const organization = await this.store.createRecord('organization', {\n      name: this.organizationName,\n    });\n    try {\n      await organization.save();\n      this.toastr.perform(\n        'success',\n        `The organization ${this.organizationName} has been successfully created.`,\n      );\n      this.args.closePopup();\n      await this.router.transitionTo('projects', {\n        queryParams: { organization: organization.name },\n      });\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      this.toastr.perform('error', 'Error on organization creation.');\n    }\n  }\n\n  @action\n  async checkNewName() {\n    this.isChecking = true;\n    if (!`${this.organizationName}`.trim()) {\n      this.errorMessage = 'Organization name cannot be empty.';\n      this.isValidName = false;\n      this.isChecking = false;\n      return;\n    }\n\n    let result;\n    const previousName = this.organizationName;\n    try {\n      result = await this.organizationService.checkIfNameIsAvailable(this.organizationName);\n      if (previousName !== this.organizationName) {\n        return;\n      }\n      this.isValidName = true;\n      this.isChecking = false;\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (e) {\n      if (previousName !== this.organizationName) {\n        return;\n      }\n      this.isValidName = false;\n      this.isChecking = false;\n    }\n    if (!result) {\n      this.errorMessage = 'You cannot choose this organization name.';\n      this.isValidName = false;\n      this.isChecking = false;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @title=\\\"Create a new organization\\\"\\n  @onClose={{@closePopup}}\\n  @contentClass=\\\"c-new-organization-beta-modal\\\"\\n  data-test-organization-modal\\n>\\n  <div class=\\\"l-new-organization-beta-modal-content\\\">\\n    <Shared::BetaLabel\\n      @label=\\\"Organization name\\\"\\n      @important={{true}}\\n      @textClass=\\\"c-new-organization-beta-modal__description\\\"\\n      class=\\\"c-beta-transfer-popup__confirmation-input\\\"\\n    >\\n      <Shared::BetaInput\\n        @value={{this.organizationName}}\\n        @onChange={{this.checkNewName}}\\n        @class=\\\"c-new-organization-beta-modal__input\\\"\\n        data-test-new-organization-input\\n      />\\n      <div class=\\\"c-new-organization-beta-modal__status\\\">\\n        {{#if this.isChecking}}\\n          <Feedback::BetaStatusLabel @type=\\\"loading\\\">\\n            Loading ...\\n          </Feedback::BetaStatusLabel>\\n        {{else if this.isValidName}}\\n          <Feedback::BetaStatusLabel @type=\\\"success\\\" data-test-organization-success-message>\\n            Organization name available\\n          </Feedback::BetaStatusLabel>\\n        {{else if this.errorMessage}}\\n          <Feedback::BetaStatusLabel @type=\\\"error\\\" data-test-organization-error-message>\\n            {{this.errorMessage}}\\n          </Feedback::BetaStatusLabel>\\n        {{/if}}\\n      </div>\\n    </Shared::BetaLabel>\\n    <Shared::Button\\n      @type=\\\"primary\\\"\\n      @text=\\\"Create Organization\\\"\\n      @onClick={{this.createOrganization}}\\n      @size=\\\"large\\\"\\n      disabled={{not this.isValidName}}\\n      class=\\\"c-new-organization-beta-modal__button\\\"\\n      data-test-validate={{true}}\\n      data-test-create-organization-button\\n    />\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/new-organization-modal/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\nimport { MissingRequiredPropertyError, WrongPropertyValueError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nconst STATES = ['success', 'warning', 'danger', 'info'];\n\n@classNames('c-onboarding-sensor')\nexport default class OnboardingSensorComponent extends Component {\n  propTypes = {\n    text: PropTypes.string,\n    state: PropTypes.oneOf(STATES).isRequired,\n  };\n\n  init(...args) {\n    super.init(...args);\n\n    if (!this.state) {\n      throw new MissingRequiredPropertyError('state');\n    }\n    if (!STATES.includes(this.state)) {\n      throw new WrongPropertyValueError('state', this.state);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-onboarding-sensor__sensor c-onboarding-sensor__sensor--{{@state}}\\\"></div>\\n<span class=\\\"c-onboarding-sensor__text\\\">\\n  {{#if (has-block)}}\\n    {{yield}}\\n  {{else}}\\n    {{@text}}\\n  {{/if}}\\n</span>\\n', { moduleName: 'client/legacy/pods/components/onboarding-sensor/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class OnboardingHeaderComponent extends Component {\n  static propTypes = {\n    title: PropTypes.string.isRequired,\n    heading: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n    headingAlign: PropTypes.oneOf(['center', 'left', 'right']),\n  };\n\n  get headingAlign() {\n    return this.args.headingAlign || 'center';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<header class=\\\"c-onboarding-header\\\" ...attributes>\\n  <h1 class=\\\"c-onboarding-header__title\\\">{{@title}}</h1>\\n  {{#if @heading}}\\n    {{#if (is-array @heading)}}\\n      {{#each @heading as |heading|}}\\n        <p class=\\\"c-onboarding-header__heading c-onboarding-header__heading--{{this.headingAlign}}\\\">\\n          {{heading}}\\n        </p>\\n      {{/each}}\\n    {{else}}\\n      <p class=\\\"c-onboarding-header__heading c-onboarding-header__heading--{{this.headingAlign}}\\\">\\n        {{@heading}}\\n      </p>\\n    {{/if}}\\n  {{/if}}\\n</header>\\n', { moduleName: 'client/legacy/pods/components/onboarding/header/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feedback::HelperContainer @bubbleButtonText=\\\"Installation tips\\\" ...attributes>\\n  {{yield}}\\n</Feedback::HelperContainer>\\n', { moduleName: 'client/legacy/pods/components/onboarding/helper-container/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class OnboardingOnboardingContainerComponent extends Component {\n  @argument(optional(Boolean)) showNavigationBar;\n  @argument(optional(String)) customDomainPictureUrl;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-onboarding-container\\\" ...attributes>\\n  {{#if @showNavigationBar}}\\n    <Navigation::BetaGlobalNavigationBar\\n      @disableInteraction={{true}}\\n      @hideSignLink={{true}}\\n      @customDomainPictureUrl={{@customDomainPictureUrl}}\\n    />\\n  {{/if}}\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/onboarding/onboarding-container/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\n@classNames('c-onboarding-splitter')\nexport default class OnboardingOnboardingSplitterComponent extends Component {}\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\n\nimport { MissingRequiredPropertyError, WrongPropertyValueError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-onboarding-splitter-panel')\n@classNameBindings('positionClass')\nexport default class OnboardingOnboardingSplitterPanelComponent extends Component {\n  propTypes = {\n    position: PropTypes.oneOf(['left', 'right']).isRequired,\n    closeHeader: PropTypes.bool,\n    showSignUp: PropTypes.bool,\n    hideSignLink: PropTypes.bool,\n    customDomainPictureUrl: PropTypes.string,\n    close: PropTypes.func,\n    displayNavigationBar: PropTypes.bool,\n    signQueryParams: PropTypes.object,\n  };\n\n  displayNavigationBar = true;\n\n  @computed('position')\n  get positionClass() {\n    return `c-onboarding-splitter-panel--${this.position}`;\n  }\n\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  @service currentUser;\n\n  init(...args) {\n    super.init(...args);\n\n    if (!this.position) {\n      throw new MissingRequiredPropertyError('position');\n    }\n    if (!['left', 'right'].includes(this.position)) {\n      throw new WrongPropertyValueError('position', this.position);\n    }\n    if (this.closeHeader && !this.close) {\n      throw new MissingRequiredPropertyError('close');\n    }\n  }\n\n  @action\n  async transitionToProjects() {\n    await this.currentOrganization.transitionToProjectsIndex();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (eq @position \\'left\\')}}\\n  {{yield}}\\n{{else}}\\n  {{#if @closeHeader}}\\n    <div class=\\\"c-onboarding-splitter-panel__header\\\">\\n      <i\\n        class=\\\"c-onboarding-splitter-panel__close\\\"\\n        {{on \\'click\\' @close}}\\n        data-test-close=\\\"true\\\"\\n        role=\\\"button\\\"\\n      >\\n        close\\n      </i>\\n    </div>\\n  {{else if this.displayNavigationBar}}\\n    <Navigation::BetaGlobalNavigationBar\\n      @transitionToProjects={{this.transitionToProjects}}\\n      @transitionToSettings={{action-link-to \\'user-settings\\'}}\\n      @disableInteraction={{true}}\\n      @hideSignLink={{@hideSignLink}}\\n      @showSignUp={{@showSignUp}}\\n      @customDomainPictureUrl={{@customDomainPictureUrl}}\\n      @signQueryParams={{@signQueryParams}}\\n    />\\n  {{/if}}\\n  <div class=\\\"c-onboarding-splitter-panel__content\\\">\\n    {{yield}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/onboarding/onboarding-splitter/panel/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-onboarding-teammate-invited\\\">\\n  <Onboarding::Header\\n    @title=\\\"Invitation sent successfully!\\\"\\n    class=\\\"c-onboarding-teammate-invited__header\\\"\\n  />\\n\\n  <h2 class=\\\"c-onboarding-teammate-invited__name\\\">{{@name}}</h2>\\n  <p class=\\\"c-onboarding-teammate-invited__content\\\">\\n    was successfully invited to join Forest Admin. Make sure they check their emails!\\n  </p>\\n\\n  <hr class=\\\"c-onboarding-teammate-invited__separator\\\" />\\n\\n  <dl class=\\\"c-onboarding-teammate-invited__link-section\\\">\\n    <dt class=\\\"c-onboarding-teammate-invited__content\\\">\\n      In the meantime, you can discover all the power of Forest Admin with our live demo.\\n    </dt>\\n    <dd class=\\\"c-onboarding-teammate-invited__link-container\\\">\\n      <Shared::Navigation::BetaLinkTo\\n        @text=\\\"Go to our live demo\\\"\\n        @type=\\\"info\\\"\\n        @size=\\\"large\\\"\\n        @href=\\\"https://app.forestadmin.com/livedemo\\\"\\n        @target=\\\"_blank\\\"\\n        class=\\\"c-onboarding-teammate-invited__link\\\"\\n        {{event-on-click \\'Live Demo Link Clicked\\'}}\\n      />\\n    </dd>\\n  </dl>\\n  <dl class=\\\"c-onboarding-teammate-invited__link-section\\\">\\n    <dt class=\\\"c-onboarding-teammate-invited__content\\\">Or you can explore the Forest Admin use cases</dt>\\n    <dd class=\\\"c-onboarding-teammate-invited__link-container\\\">\\n      <Shared::Navigation::BetaLinkTo\\n        @text=\\\"Explore Forest Admin use cases\\\"\\n        @type=\\\"info\\\"\\n        @size=\\\"large\\\"\\n        @href=\\\"https://www.forestadmin.com/usecases\\\"\\n        @target=\\\"_blank\\\"\\n        class=\\\"c-onboarding-teammate-invited__link\\\"\\n        {{event-on-click \\'Use Cases Link Clicked\\'}}\\n      />\\n    </dd>\\n  </dl>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/onboarding/teammate-invited/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! template-lint-disable no-invalid-interactive }}\\n<div class=\\\"l-organization-card\\\" {{on \\'click\\' (or @onClick (do-nothing-function))}}>\\n  {{#if @organization.isPersonal}}\\n    <LinkTo\\n      @route=\\\"projects\\\"\\n      @query={{hash organization=null}}\\n      class=\\\"c-organization-card\\\"\\n      data-test-organization-card={{@organization.name}}\\n    >\\n      <Picture::PictureOrganization\\n        @organization={{@organization}}\\n        class=\\\"c-organization-card__avatar\\\"\\n      />\\n      <div class=\\\"c-organization-card__information\\\">\\n        <div class=\\\"c-organization-card__name\\\">\\n          {{@organization.name}}\\n        </div>\\n      </div>\\n    </LinkTo>\\n  {{else}}\\n    <LinkTo\\n      @route=\\\"projects\\\"\\n      @query={{hash organization=@organization.name}}\\n      class=\\\"c-organization-card\\\"\\n      data-test-organization-card={{@organization.name}}\\n    >\\n      <Picture::PictureOrganization\\n        @organization={{@organization}}\\n        class=\\\"c-organization-card__avatar\\\"\\n      />\\n      <div class=\\\"c-organization-card__information\\\">\\n        <div class=\\\"c-organization-card__name\\\">\\n          {{@organization.name}}\\n        </div>\\n      </div>\\n    </LinkTo>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/organization/card/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport EnvironmentIncompatibleModel from 'client/data/models/environment-incompatible';\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class OrganizationIncompatibleEnvironmentsComponent extends Component {\n  @argument(arrayOf(EnvironmentIncompatibleModel)) environments;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<ConfigurationCard @type=\\\"error\\\" @title=\\\"You can’t configure Single Sign-On/SAML\\\" ...attributes>\\n  <p class=\\\"c-incompatible-environments__content\\\">\\n    To enable SSO for your organization, all the environments of all its projects must have a liana\\n    of\\n    <strong>\\n      version 7 or above\\n    </strong>\\n    for\\n    <em>\\n      forest-express\\n    </em>\\n    ,\\n    <strong>\\n      version 6 or above\\n    </strong>\\n    for\\n    <em>\\n      forest-rails\\n    </em>\\n    .\\n  </p>\\n  <p class=\\\"c-incompatible-environments__content\\\">\\n    This requirement is currently not met for the following projects/environments:\\n  </p>\\n  <ul class=\\\"c-incompatible-environments__list\\\">\\n    {{#each @environments as |environment|}}\\n      <li class=\\\"c-incompatible-environments__environment\\\">\\n        <i class=\\\"material-icons c-incompatible-environments__icon\\\">\\n          folder_open\\n        </i>\\n        Project:\\n        <strong>\\n          {{environment.project.name}}\\n        </strong>\\n        - Environment:\\n        <strong>\\n          {{environment.name}}\\n        </strong>\\n        ({{environment.lianaName}}\\n        {{environment.lianaVersion}})\\n      </li>\\n    {{/each}}\\n  </ul>\\n  <Shared::Navigation::BetaLinkTo\\n    @href=\\\"https://docs.forestadmin.com/documentation/how-tos/maintain\\\"\\n    @target=\\\"_blank\\\"\\n    @text=\\\"View documentation\\\"\\n    @type=\\\"info\\\"\\n    @displayAsButton={{true}}\\n    @size=\\\"normal\\\"\\n  />\\n</ConfigurationCard>\\n', { moduleName: 'client/legacy/pods/components/organization/incompatible-environments/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport OrganizationModel from 'client/data/models/organization';\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport normalizeString from 'client/utils/normalize-string';\n\n@validateArguments\nexport default class OrganizationModalAddOwnerComponent extends Component {\n  @argument(Function) onClose;\n  @argument(OrganizationModel) organization;\n  /** @type {import('@ember/array').default<import('client/data/models/user').default>} */\n  @alias('args.organization.users') users;\n\n  /** @type {import('client/legacy/services/toastr').default} */\n  @service toastr;\n  /** @type {import('client/legacy/services/tracker').default} */\n  @service tracker;\n\n  /** @type {import('client/data/models/user').default} */\n  @tracked value;\n  @tracked searchValue;\n\n  @computed('users.@each.{email,fullName}', 'searchValue')\n  get filteredUsers() {\n    return this.users\n      .filter((user) => user.permissionLevel !== 'owner')\n      .filter(\n        (user) =>\n          !this.searchValue\n          || normalizeString(user.fullName).includes(normalizeString(this.searchValue))\n          || normalizeString(user.email).includes(normalizeString(this.searchValue)),\n      )\n      .sortBy('fullName')\n      .map((user) => ({\n        user,\n        label: `${user.fullName} - ${user.email}`,\n      }));\n  }\n\n  @action\n  async add(callback) {\n    try {\n      /** @type {import('@ember/array').default<import('client/data/models/user').default>} */\n      const currentOwners = await this.args.organization.get('owners');\n\n      currentOwners.addObject(this.value);\n\n      this.args.organization.owners = currentOwners;\n      await this.args.organization.save();\n      this.toastr.perform(\n        'success',\n        `The user ${this.value.fullName} has been successfully added to the list of owners.`,\n      );\n      this.args.onClose();\n    } catch (error) {\n      this.tracker.captureException(error);\n      console.error(error);\n      this.toastr.perform('error', 'An error occurred when saving the modifications');\n      await this.args.organization.owners.removeObject(this.value);\n    } finally {\n      await this.args.organization.owners.reload();\n      if (callback) {\n        callback();\n      }\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Modal::ModalWindow\\n  @onClickOutside={{@onClose}}\\n  @hasCloseButton={{true}}\\n  class=\\\"c-organization-modal-add-owner\\\"\\n  data-test-add-new-organization-owner-modal={{true}}\\n>\\n  <form {{on \\'submit\\' this.add}}>\\n    <div class=\\\"c-organization-modal-add-owner__header\\\">\\n      <div class=\\\"c-organization-modal-add-owner__title\\\">\\n        Add a new owner\\n      </div>\\n    </div>\\n    <div class=\\\"c-organization-modal-add-owner__content\\\">\\n      <Shared::BetaLabel\\n        class=\\\"c-organization-modal-add-owner__label\\\"\\n        @label=\\\"Enter name or email address\\\"\\n      >\\n        <Shared::BetaSelectSearch\\n          @options={{this.filteredUsers}}\\n          @namePath=\\\"label\\\"\\n          @valuePath=\\\"user\\\"\\n          @searchValue={{this.searchValue}}\\n          @value={{this.value}}\\n          @class=\\\"c-organization-modal-add-owner__input\\\"\\n        />\\n      </Shared::BetaLabel>\\n    </div>\\n    <div class=\\\"c-organization-modal-add-owner__footer\\\">\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @text=\\\"Cancel\\\"\\n        @action={{@onClose}}\\n        @async={{false}}\\n        class=\\\"c-organization-modal-add-owner__footer-button\\\"\\n      />\\n\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @text=\\\"Add\\\"\\n        @action={{this.add}}\\n        @async={{true}}\\n        @disabled={{not this.value}}\\n        class=\\\"c-organization-modal-add-owner__footer-button\\\"\\n      />\\n    </div>\\n  </form>\\n</Modal::ModalWindow>\\n', { moduleName: 'client/legacy/pods/components/organization/modal-add-owner/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class OrganizationModalRemoveOwnerComponent extends Component {\n  @argument(Function) onRemoveOwners;\n  @argument(Function) onCancel;\n  @argument(Number) selectedCount;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @title=\\\"Remove owner\\\"\\n  @validateText=\\\"Remove\\\"\\n  @validateType=\\\"danger\\\"\\n  @validateAction={{@onRemoveOwners}}\\n  @cancelText=\\\"Cancel\\\"\\n  @onClose={{@onCancel}}\\n  @contentClass=\\\"c-organization-modal-remove-owner\\\"\\n>\\n  <div class=\\\"c-organization-modal-remove-owner__content\\\">\\n    {{#if (eq @selectedCount 1)}}\\n      <p class=\\\"c-organization-modal-remove-owner__paragraph\\\">\\n        You’re about to remove 1 owner from organization owners. This user will\\n        <strong>\\n          continue to have administrator\\'s rights\\n        </strong>\\n        on each project of the organization.\\n      </p>\\n    {{else}}\\n      <p class=\\\"c-organization-modal-remove-owner__paragraph\\\">\\n        You’re about to remove\\n        {{@selectedCount}}\\n        owners from organization owners. These users will\\n        <strong>\\n          continue to have administrator\\'s rights\\n        </strong>\\n        on each project of the organization.\\n      </p>\\n    {{/if}}\\n    <p\\n      class=\\\"c-organization-modal-remove-owner__paragraph c-organization-modal-remove-owner__paragraph--confirm\\\"\\n    >\\n      Please confirm to proceed.\\n    </p>\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/organization/modal-remove-owner/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport UserModel from 'client/data/models/user';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  user: UserModel;\n  size: 'default' | 'small' | 'medium';\n}\n\n@validateArguments\nexport default class PictureAvatarWithNameComponent extends Component<Args> {\n  static propTypes = {\n    user: PropTypes.instanceOf(UserModel),\n    size: PropTypes.oneOf(['default', 'small', 'medium']),\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers \\'c-picture-avatar-with-name\\' (or @size \\'default\\')}}\\n  ...attributes\\n>\\n  <Picture::PictureAvatar\\n    @class={{get-classes-with-modifiers \\'c-picture-avatar-with-name__picture\\' (or @size \\'default\\')}}\\n    @email={{@user.email}}\\n    @initials={{@user.initials}}\\n  />\\n\\n  {{#if (has-block)}}\\n    {{yield}}\\n  {{else}}\\n    {{@user.fullName}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/picture/avatar-with-name/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n/* global md5 */\n\nconst OPTIMAL_SIZE = 40;\n\n@validateArguments\nexport default class PicturePictureAvatarComponent extends Component {\n  @argument(optional(String)) initials;\n  @argument(optional(String)) email;\n  @argument(optional(Number)) size;\n  @argument(optional(String)) alt;\n  @argument(optional(String)) title;\n\n  @tracked imageError = false;\n\n  get src() {\n    const emailHash = md5(this.args.email);\n    return `https://www.gravatar.com/avatar/${emailHash}?s=${OPTIMAL_SIZE}&d=404`;\n  }\n\n  get srcset() {\n    const emailHash = md5(this.args.email);\n    return [1, 1.5, 2]\n      .map(\n        (resolution) =>\n          `https://www.gravatar.com/avatar/${emailHash}?s=${\n            OPTIMAL_SIZE * resolution\n          }&d=404 ${resolution}x`,\n      )\n      .join(',');\n  }\n\n  @action\n  onImageError() {\n    this.imageError = true;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (and @email (not this.imageError))}}\\n  <img\\n    {{on \\'error\\' this.onImageError}}\\n    src={{this.src}}\\n    srcset={{this.srcset}}\\n    alt=\\\"User avatar\\\"\\n    title={{@title}}\\n    height={{@size}}\\n    width={{@size}}\\n    class={{concat @class \\' c-picture-avatar-image\\'}}\\n  />\\n{{else}}\\n  {{#if @initials}}\\n    <div class=\\\"c-picture-avatar-initials {{@class}}\\\">\\n      {{@initials}}\\n    </div>\\n  {{else}}\\n    <div class=\\\"c-picture-avatar-image--null\\\"></div>\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/picture/picture-avatar/template.hbs' });\n","import type WhiteLabelService from 'client/legacy/services/white-label';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport OrganizationModel from 'client/data/models/organization';\nimport { PromiseObject } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface PictureOrganizationArgs {\n  organization: OrganizationModel;\n  pictureClass?: string;\n}\n\nexport default class PicturePictureOrganizationComponent extends Component<PictureOrganizationArgs> {\n  @service private whiteLabel: WhiteLabelService;\n\n  @tracked hasError = false;\n\n  static propTypes = {\n    organization: PropTypes.instanceOf(OrganizationModel).isRequired,\n    pictureClass: PropTypes.string,\n  };\n\n  get pictureUrl() {\n    if (this.args.organization.pictureUrl) {\n      return PromiseObject.create({ promise: Promise.resolve(this.args.organization.pictureUrl) });\n    }\n\n    return PromiseObject.create({\n      promise: this.whiteLabel.getPictureUrl().then((url) => {\n        if (url) {\n          return url;\n        }\n\n        return '/img/logo.svg';\n      }),\n    });\n  }\n\n  @action\n  onImageError() {\n    this.hasError = true;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<img\\n  {{on \\'error\\' this.onImageError}}\\n  alt=\\\"Organization avatar\\\"\\n  src={{this.pictureUrl.content}}\\n  class=\\\"c-picture-organization__avatar {{@pictureClass}}\\\"\\n  role=\\\"button\\\"\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/picture/picture-organization/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\n\nimport ColorUtils from 'client/utils/color-utils';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class PicturePictureProjectComponent extends Component {\n  propTypes = {\n    project: PropTypes.object.isRequired,\n    pictureClass: PropTypes.string,\n  };\n\n  didInsertElement(...args) {\n    super.didInsertElement(...args);\n    const primaryColor = this.project.primaryColorOrDefault;\n    ColorUtils.setColorPrimaryVariantsOnElement(this.element, primaryColor);\n  }\n\n  @action\n  onImageError() {\n    this.set('hasError', true);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (and @project.pictureUrl (not this.hasError))}}\\n  <img\\n    {{on \\'error\\' this.onImageError}}\\n    alt=\\\"Project avatar\\\"\\n    src={{@project.pictureUrl}}\\n    class=\\\"l-auth__avatar {{@pictureClass}}\\\"\\n    role=\\\"button\\\"\\n  />\\n{{else}}\\n  <div class=\\\"c-project-letter l-auth__avatar l-picture__company {{@pictureClass}}\\\">\\n    {{first-letter @project.name}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/picture/picture-project/template.hbs' });\n","import type Router from 'client/router';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { pluralize } from 'ember-inflector';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface PlanLimitBannerArgs {\n  limitValue: number;\n  limitedEntity: string;\n}\n\nexport default class PlanLimitBannerComponent extends Component<PlanLimitBannerArgs> {\n  static propTypes = {\n    limitValue: PropTypes.number.isRequired,\n    limitedEntity: PropTypes.string.isRequired,\n  };\n\n  @service router: Router;\n\n  get numberGrantedEntity(): string {\n    return this.args.limitValue > 1 ? this.entityPlural : this.args.limitedEntity;\n  }\n\n  get entityPlural(): string {\n    return pluralize(this.args.limitedEntity);\n  }\n\n  @action\n  async upgradePlan() {\n    await this.router.transitionTo('project.project-settings.billing.manage-your-plan');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Feedback::Notification::NotificationInApp\\n  @state=\\\"warning\\\"\\n  @canHide={{false}}\\n  @class=\\\"c-plan-limit-banner\\\"\\n  @iconClass=\\\"c-plan-limit-banner__text\\\"\\n  @contentClass=\\\"c-plan-limit-banner__content\\\"\\n  data-test-notification=\\\"{{@limitedEntity}}-limit-reached\\\"\\n>\\n  <span class=\\\"c-plan-limit-banner__text\\\">\\n    You have reached the\\n    {{@limitValue}}\\n    {{this.numberGrantedEntity}}\\n    limit. Please upgrade to add additional\\n    {{this.entityPlural}}.\\n  </span>\\n  <Shared::Button::BetaButton\\n    @type=\\\"warning\\\"\\n    @text=\\\"Upgrade your plan\\\"\\n    @action={{this.upgradePlan}}\\n    @async={{true}}\\n    @withoutCallback={{true}}\\n    data-test-button=\\\"validate-upgrade\\\"\\n  />\\n</Shared::Feedback::Notification::NotificationInApp>\\n', { moduleName: 'client/legacy/pods/components/plan-limit-banner/template.hbs' });\n","import type AssetMapService from 'asset-map-resolver/services/asset-map';\nimport type PlanModel from 'client/data/models/plan';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type PlanService from 'client/legacy/services/plan-service';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { EnvironmentsFeaturesEnum } from 'client/data/models/plan';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface PreviewLayoutPreviewComponentArgs {\n  features: string[];\n  titlePrefix: string;\n  titleHighlight: string;\n  titleSuffix?: string;\n  imageName?: string;\n  illustrationComponentName?: string;\n  featureName: EnvironmentsFeaturesEnum;\n  cancelDisplay?: boolean;\n  cancelRedirect?: () => void;\n  small?: boolean;\n  isInsideSettings?: boolean;\n  featureCallbackRoute?: string;\n  featureParams?: string;\n}\n\n@validateArguments\nexport default class PreviewLayoutPreviewComponent extends Component<PreviewLayoutPreviewComponentArgs> {\n  @service private assetMap: AssetMapService;\n  @service private planService: PlanService;\n  @service private lianaSession: LianaSessionService;\n\n  static propTypes = {\n    features: PropTypes.arrayOf(PropTypes.string).isRequired,\n    titlePrefix: PropTypes.string.isRequired,\n    titleHighlight: PropTypes.string.isRequired,\n    titleSuffix: PropTypes.string,\n    imageName: PropTypes.string,\n    illustrationComponentName: PropTypes.string,\n    featureName: PropTypes.oneOf(Object.values(EnvironmentsFeaturesEnum)).isRequired,\n    cancelDisplay: PropTypes.bool,\n    cancelRedirect: PropTypes.func,\n    small: PropTypes.bool,\n    isInsideSettings: PropTypes.bool,\n    featureCallbackRoute: PropTypes.string,\n    featureParams: PropTypes.string,\n  };\n\n  @tracked private lowestPlanHavingFeature: PlanModel | null | undefined;\n\n  constructor(owner: unknown, args: PreviewLayoutPreviewComponentArgs) {\n    super(owner, args);\n\n    void this.loadRequiredPlan();\n  }\n\n  get isSelfHostedAgent() {\n    return !this.lianaSession.currentEnvironment.isFullHostedAgent;\n  }\n\n  get titlePrefixWithSpace() {\n    const titlePrefix = this.args.titlePrefix || '';\n    if (!titlePrefix || titlePrefix.lastIndexOf(' ') === titlePrefix.length - 1) {\n      return titlePrefix;\n    }\n\n    return `${titlePrefix} `;\n  }\n\n  get spacedTitleSuffix() {\n    let titleSuffix = this.args.titleSuffix || '';\n    if (titleSuffix.length > 1 && titleSuffix.indexOf(' ') !== 0) {\n      titleSuffix = ` ${titleSuffix}`;\n    }\n\n    return titleSuffix;\n  }\n\n  get tryInDevelopment() {\n    return `try in development ${this.args.featureName}`;\n  }\n\n  get displayTrialNote() {\n    return `display trial note ${this.args.featureName}`;\n  }\n\n  get imagePath() {\n    return this.assetMap.resolve(`/img/preview/${this.args.imageName}.png`);\n  }\n\n  get planDisplayName() {\n    return this.lowestPlanHavingFeature?.displayName;\n  }\n\n  private async loadRequiredPlan() {\n    this.lowestPlanHavingFeature =\n      (await this.planService.findFirstPlanWithFeature(this.args.featureName)) || null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-preview-feature {{if @isInsideSettings \\'c-preview-feature--inside-settings\\' \\'\\'}}\\\"\\n  data-test-preview-layout-preview={{@featureName}}\\n  ...attributes\\n>\\n  {{#if @cancelDisplay}}\\n    <Shared::Navigation::Link\\n      @type=\\\"forest-primary\\\"\\n      @href=\\\"#\\\"\\n      @iconName=\\\"close\\\"\\n      @onClick={{@cancelRedirect}}\\n      class=\\\"c-preview-feature__cancel\\\"\\n    />\\n  {{/if}}\\n\\n  <div class=\\\"c-preview-feature__content {{if @small \\'c-preview-feature__content--no-margin\\'}}\\\">\\n    {{#if (and (can this.tryInDevelopment) this.isSelfHostedAgent)}}\\n      <div class=\\\"c-preview-feature__info\\\">\\n        This Premium feature is now free on non-Production environments.\\n      </div>\\n    {{/if}}\\n\\n    <h3 class=\\\"c-preview-feature__title\\\">\\n      {{~this.titlePrefixWithSpace~}}\\n      <span class=\\\"c-preview-feature__title-highlight\\\">\\n        {{~@titleHighlight~}}\\n      </span>\\n      {{~this.spacedTitleSuffix~}}\\n    </h3>\\n\\n    <ul class=\\\"c-preview-feature__list\\\">\\n      {{#each @features as |feature|}}\\n        <li class=\\\"c-preview-feature__item\\\">\\n          <Shared::DataDisplay::BetaIcon\\n            @iconName=\\\"check\\\"\\n            @size=\\\"small\\\"\\n            class=\\\"c-preview-feature__item-bullet\\\"\\n          />\\n          {{feature}}\\n        </li>\\n      {{/each}}\\n    </ul>\\n\\n    <div class=\\\"c-preview-feature__buttons\\\">\\n      <Feature::CustomizationCenter::UpgradeButton\\n        @type=\\\"forest-primary\\\"\\n        @abilityName={{@featureName}}\\n        @featureCallbackRoute={{@featureCallbackRoute}}\\n        @featureCallback={{@featureCallback}}\\n        @featureParams={{@featureParams}}\\n        class=\\\"c-preview-feature__button\\\"\\n      />\\n    </div>\\n\\n    {{#if (and (can this.displayTrialNote) this.isSelfHostedAgent)}}\\n      <div class=\\\"c-preview-feature__note\\\">\\n        *This feature is available for free on non-Production environments. Upgrading to the\\n        {{this.planDisplayName}}\\n        plan will be required to use it on Production.\\n      </div>\\n    {{/if}}\\n  </div>\\n\\n  <div\\n    class=\\\"c-preview-feature__image-block\\n      {{if @illustrationComponentName \\'c-preview-feature__image-block--component\\'}}\\\"\\n  >\\n    {{#if @illustrationComponentName}}\\n      {{component @illustrationComponentName}}\\n    {{else}}\\n      <img\\n        class=\\\"c-preview-feature__image {{if @small \\'c-preview-feature__image--no-margin\\'}}\\\"\\n        src={{this.imagePath}}\\n        alt=\\\"preview\\\"\\n      />\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/preview/layout-preview/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class PreviewPermissionsPreviewComponent extends Component {\n  @argument(optional(Boolean)) isSmallSize;\n\n  previewSections = ['Smart actions permissions', 'Collections permissions'];\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-permissions-preview\\\" data-test-roles-settings-index-preview>\\n  {{#each this.previewSections as |sectionTitle|}}\\n    <div\\n      class=\\\"c-permissions-preview__section\\n        {{if @isSmallSize \\'c-permissions-preview__section--small\\'}}\\\"\\n    >\\n      <h2\\n        class=\\\"c-permissions-preview__title\\n          {{if @isSmallSize \\'c-permissions-preview__title--small\\'}}\\\"\\n      >\\n        {{sectionTitle}}\\n      </h2>\\n      <div\\n        class=\\\"c-permissions-preview__table\\n          {{if @isSmallSize \\'c-permissions-preview__table--small\\'}}\\\"\\n      >\\n        <IncrementFor @times={{3}}>\\n          <div\\n            class=\\\"c-permissions-preview__table-item\\n              {{if @isSmallSize \\'c-permissions-preview__table-item--small\\'}}\\\"\\n          >\\n            <div\\n              class=\\\"c-permissions-preview__placeholder\\n                {{if @isSmallSize \\'c-permissions-preview__placeholder--small\\'}}\\\"\\n            ></div>\\n            <i\\n              class=\\\"c-permissions-preview__check-mark\\n                {{if @isSmallSize \\'c-permissions-preview__check-mark--small\\'}}\\\"\\n            >\\n              check\\n            </i>\\n          </div>\\n        </IncrementFor>\\n      </div>\\n    </div>\\n  {{/each}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/preview/permissions-preview/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class PreviewPreviewActivityLogComponent extends Component {\n  static propTypes = {\n    featureParams: PropTypes.string,\n    featureCallbackRoute: PropTypes.string.isRequired,\n  };\n\n  features = [\n    'Accountability at every stage',\n    'Search your activity logs',\n    'Extensive filtering options for in-depth auditing',\n  ];\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"activityLogs\\\"\\n  @features={{this.features}}\\n  @titlePrefix=\\\"Follow the trail of modifications on any item with\\\"\\n  @titleHighlight=\\\"Activity Log\\\"\\n  @imageName=\\\"activity-log\\\"\\n  @featureCallbackRoute={{@featureCallbackRoute}}\\n  @featureParams={{@featureParams}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/preview/preview-activity-log/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class PreviewPreviewAnalyticsComponent extends Component {\n  @validateArguments\n  static propTypes = {\n    featureParams: PropTypes.string.isRequired,\n  };\n\n  features = [\n    'Monitor KPIs at a record level',\n    'Identify changing behaviors',\n    'Detect trends and anticipate needs',\n  ];\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"recordDashboard\\\"\\n  @features={{this.features}}\\n  @titlePrefix=\\\"Give your team data analysis superpowers with\\\"\\n  @titleHighlight=\\\"Analytics at a record level\\\"\\n  @imageName=\\\"analytics-per-record\\\"\\n  @featureCallbackRoute=\\\"project.rendering.data.collection.list.view-edit.analytics\\\"\\n  @featureParams={{@featureParams}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/preview/preview-analytics/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class PreviewPreviewExplorerComponent extends Component {\n  static propTypes = {\n    featureParams: PropTypes.string.isRequired,\n  };\n\n  features = [\n    'Navigate through your related collections seamlessly',\n    'Browse and edit records directly from the Explorer View',\n  ];\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"explorer\\\"\\n  @features={{this.features}}\\n  @titlePrefix=\\\"Browse your data and act on the fly with the\\\"\\n  @titleHighlight=\\\"Explorer View\\\"\\n  @imageName=\\\"explorer\\\"\\n  @cancelDisplay={{false}}\\n  @featureCallbackRoute=\\\"project.rendering.data.collection.list.view-edit.explorer\\\"\\n  @featureParams={{@featureParams}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/preview/preview-explorer/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class PreviewPreviewLiveQueryChartComponent extends Component {\n  static propTypes = {\n    featureParams: PropTypes.string.isRequired,\n    featureCallbackRoute: PropTypes.string.isRequired,\n  };\n\n  features = [\n    'Display your data in an easy and flexible interface',\n    'Easily peek inside your database using our query editor',\n    'Display your data visually',\n  ];\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"liveQuery\\\"\\n  @features={{this.features}}\\n  @titlePrefix=\\\"Type\\\"\\n  @titleHighlight=\\\"Live Queries\\\"\\n  @titleSuffix=\\\"and get charts\\\"\\n  @imageName=\\\"live-query-chart\\\"\\n  @small={{true}}\\n  @featureCallbackRoute={{@featureCallbackRoute}}\\n  @featureParams={{@featureParams}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/preview/preview-live-query-chart/template.hbs' });\n","import Component from '@glimmer/component';\n\nexport default class PreviewPreviewMultipleDashboardsComponent extends Component {\n  features = [\n    \"Track KPIs and monitor your business' health\",\n    'Easily summarize all your key metrics',\n    'Create dedicated Dashboards for your different needs',\n  ];\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"multipleDashboards\\\"\\n  @features={{this.features}}\\n  @titlePrefix=\\\"Unleash your team\\'s productivity with\\\"\\n  @titleHighlight=\\\"Dashboards\\\"\\n  @imageName=\\\"multiple-dashboards\\\"\\n  @featureCallbackRoute=\\\"project.rendering.dashboard.new\\\"\\n/>\\n', { moduleName: 'client/legacy/pods/components/preview/preview-multiple-dashboards/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class PreviewPreviewMultipleRolesComponent extends Component {\n  static propTypes = {\n    cancelRedirect: PropTypes.func.isRequired,\n  };\n\n  features = [\n    'Manage permissions for groups of users sharing the same role',\n    'Define the read/write permissions of a Collection for each Role',\n    'Restrict a Smart Action to a selected role',\n  ];\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"multipleRoles\\\"\\n  @features={{this.features}}\\n  @titlePrefix=\\\"Stay in control of your operational permissions with\\\"\\n  @titleHighlight=\\\"Roles\\\"\\n  @illustrationComponentName=\\\"preview/permissions-preview\\\"\\n  @cancelDisplay={{true}}\\n  @cancelRedirect={{@cancelRedirect}}\\n  @featureCallbackRoute=\\\"project.project-settings.roles.create\\\"\\n/>\\n', { moduleName: 'client/legacy/pods/components/preview/preview-multiple-roles/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class PreviewPreviewNotesComponent extends Component {\n  static propTypes = {\n    featureParams: PropTypes.string,\n    featureCallbackRoute: PropTypes.string.isRequired,\n  };\n\n  features = [\n    'Tag teammates, leave notes',\n    'Communicate directly within Forest Admin',\n    'Keep your team up-to-date',\n  ];\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"collaboration\\\"\\n  @features={{this.features}}\\n  @titlePrefix=\\\"Empower your team to\\\"\\n  @titleHighlight=\\\"Collaborate\\\"\\n  @imageName=\\\"notes\\\"\\n  @featureCallbackRoute={{@featureCallbackRoute}}\\n  @featureParams={{@featureParams}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/preview/preview-notes/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class PreviewPreviewScopeComponent extends Component {\n  static propTypes = {\n    featureParams: PropTypes.string.isRequired,\n  };\n\n  features = [\n    \"Display only data relevant to the current user's geographical context (country, city, etc.)\",\n    \"Display only data relevant to the current user or user's team\",\n    'Use Query mode for unlimited filtering possibilities',\n  ];\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"scopes\\\"\\n  @features={{this.features}}\\n  @titlePrefix=\\\"Use\\\"\\n  @titleHighlight=\\\"Scopes\\\"\\n  @titleSuffix=\\\"to restrict the data your user have access to\\\"\\n  @imageName=\\\"scope\\\"\\n  @featureCallbackRoute=\\\"project.rendering.data.collection.settings.scope\\\"\\n  @featureParams={{@featureParams}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/preview/preview-scope/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class PreviewPreviewSegmentLiveQueryComponent extends Component {\n  static propTypes = {\n    featureParams: PropTypes.string,\n  };\n\n  features = [\n    'Flexible, easy to use interface',\n    'Easily peek inside your database using our query editor',\n  ];\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"liveQuery\\\"\\n  @features={{this.features}}\\n  @titlePrefix=\\\"Type\\\"\\n  @titleHighlight=\\\"Live Queries\\\"\\n  @titleSuffix=\\\"to segment your data\\\"\\n  @imageName=\\\"live-query-segment\\\"\\n  @small={{true}}\\n  @isInsideSettings={{true}}\\n  @featureCallbackRoute=\\\"project.rendering.data.collection.settings.segments\\\"\\n  @featureParams={{@featureParams}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/preview/preview-segment-live-query/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class PreviewPreviewSmartChartComponent extends Component {\n  static propTypes = {\n    featureParams: PropTypes.string.isRequired,\n    featureCallbackRoute: PropTypes.string.isRequired,\n  };\n\n  features = [\n    'Load any charting library you need',\n    'Your data, your code: possibilities are endless',\n    'You fully control your chart display',\n  ];\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"smartCharts\\\"\\n  @features={{this.features}}\\n  @titlePrefix=\\\"Get exactly the chart you want with\\\"\\n  @titleHighlight=\\\"Smart Charts\\\"\\n  @imageName=\\\"smart-charts\\\"\\n  @small={{true}}\\n  @featureCallbackRoute={{@featureCallbackRoute}}\\n  @featureParams={{@featureParams}}\\n  data-test-preview-smart-chart\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/preview/preview-smart-chart/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class PreviewPreviewSmartViewComponent extends Component {\n  static propTypes = {\n    featureParams: PropTypes.string.isRequired,\n  };\n\n  features = [\n    'Boost productivity by extending our basic table view',\n    'Showcase your data the way you want it',\n    'Create your own view using JS, HTML, and CSS',\n  ];\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"smartViews\\\"\\n  @features={{this.features}}\\n  @titlePrefix=\\\"Display your data in a way that makes sense for your business with\\\"\\n  @titleHighlight=\\\"Smart Views\\\"\\n  @imageName=\\\"smart-view\\\"\\n  @featureCallbackRoute=\\\"project.rendering.data.collection.settings.views\\\"\\n  @featureParams={{@featureParams}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/preview/preview-smart-view/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class PreviewPreviewSummaryViewComponent extends Component {\n  static propTypes = {\n    featureParams: PropTypes.string.isRequired,\n  };\n\n  features = [\n    'Tailor your admin panel to your operational needs.',\n    'Take advantage of a 360° view of all your key/critical data.',\n    \"Increase your business team's efficiency.\",\n  ];\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"summaryView\\\"\\n  @features={{this.features}}\\n  @titlePrefix=\\\"See all your important data at a glance with\\\"\\n  @titleHighlight=\\\"Summary Views\\\"\\n  @imageName=\\\"summary-view\\\"\\n  @featureCallbackRoute=\\\"project.rendering.data.collection.list.view-edit.summary.index\\\"\\n  @featureParams={{@featureParams}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/preview/preview-summary-view/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class PreviewPreviewTeamsComponent extends Component {\n  static propTypes = {\n    cancelRedirect: PropTypes.func.isRequired,\n  };\n\n  features = [\n    'Keep control over who has access to which content among your organization',\n    \"Personalize your admin interface according to your business unit's requirements\",\n    'Spend less time managing permissions and keeping your data safe',\n  ];\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::LayoutPreview\\n  @featureName=\\\"teams\\\"\\n  @features={{this.features}}\\n  @titlePrefix=\\\"Tailor your admin interface to your team\\'s needs with\\\"\\n  @titleHighlight=\\\"Team-based Permissions\\\"\\n  @imageName=\\\"multiple-teams\\\"\\n  @cancelDisplay={{true}}\\n  @cancelRedirect={{@cancelRedirect}}\\n  @featureCallbackRoute=\\\"project.project-settings.teams\\\"\\n/>\\n', { moduleName: 'client/legacy/pods/components/preview/preview-teams/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { classNames } from '@ember-decorators/component';\n\n@classNames('l-project-card')\nexport default class ProjectCardComponent extends Component {\n  isHover = false;\n\n  @computed('project.name')\n  get urlProjectRendering() {\n    return `/${encodeURIComponent(this.project.name)}`;\n  }\n\n  @computed('project.name')\n  get urlProjectSettings() {\n    return `/${encodeURIComponent(this.project.name)}/settings`;\n  }\n\n  @action\n  mouseEnterIcon() {\n    this.set('isHover', true);\n  }\n\n  @action\n  mouseLeaveIcon() {\n    this.set('isHover', false);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-project-global\\\" data-test-project={{@project.name}}>\\n  {{#if @project.canEdit}}\\n    <div class=\\\"c-project-global__admin\\\">\\n      <ProjectSettingsMenu\\n        @project={{@project}}\\n        @projectSettings={{this.urlProjectSettings}}\\n        class=\\\"c-project-global__menu\\\"\\n      />\\n    </div>\\n  {{/if}}\\n\\n  <a\\n    href={{this.urlProjectRendering}}\\n    class=\\\"c-project-card\\\"\\n    {{on \\'mouseenter\\' this.mouseEnterIcon}}\\n    {{on \\'mouseleave\\' this.mouseLeaveIcon}}\\n  >\\n    <div class=\\\"project-information\\\">\\n      <Picture::PictureProject @project={{@project}} class=\\\"c-project-card__avatar\\\" />\\n      <div class=\\\"l-project-card-name-container\\\">\\n        <p class=\\\"c-project-card__name\\\">\\n          {{@project.name}}\\n        </p>\\n      </div>\\n    </div>\\n    <Shared::DataDisplay::BetaIcon\\n      @class=\\\"c-project-card__arrow-forward\\\"\\n      @iconName=\\\"arrow_forward\\\"\\n      @isMaterialIcon={{true}}\\n      @size=\\\"small\\\"\\n    />\\n  </a>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/project-card/template.hbs' });\n","import type CurrentUserService from 'client/legacy/services/current-user';\nimport type DocumentationLinkGetterService from 'client/legacy/services/documentation-link-getter';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Branch from 'client/data/models/branch';\nimport Project from 'client/data/models/project';\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\ninterface ProjectEnvironmentsBranchesComponentArgs {\n  project: Project;\n  branchesSearched: Branch[];\n  searchBranch: () => unknown;\n  createBranch: (branchName: string, branchOrigin: string) => Promise<boolean>;\n}\n\n@validateArguments\nexport default class ProjectEnvironmentsBranchesComponent extends Component<ProjectEnvironmentsBranchesComponentArgs> {\n  @service documentationLinkGetter: DocumentationLinkGetterService;\n  @service serverFetch: ServerFetchService;\n  @service currentUser: CurrentUserService;\n\n  @argument(Project) project: Project;\n  @argument(arrayOf(Branch)) branchesSearched: Branch[];\n  @argument(Function) searchBranch;\n\n  @tracked isCreationModalDisplayed = false;\n\n  get devWorkflowDocumentationLink() {\n    return this.documentationLinkGetter.getDocumentationLink(\n      'development workflow',\n      this.args.project.defaultEnvironment.lianaName,\n    );\n  }\n\n  get origins() {\n    return this.args.project.remoteEnvironments\n      .filter((environment) => environment.isActive)\n      .map((environment) => environment.name);\n  }\n\n  get isCreateBranchDisabled() {\n    return !this.currentUser.model.developmentEnvironment;\n  }\n\n  @action\n  displayCreationModal() {\n    this.isCreationModalDisplayed = true;\n  }\n\n  @action\n  closeCreationModal() {\n    this.isCreationModalDisplayed = false;\n  }\n}\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\n\ninterface ProjectEnvironmentsBranchesCreateModalArgs {\n  closeModal: () => unknown;\n  origins: string[];\n  createBranch: (branchName: string, branchOrigin: string) => Promise<boolean>;\n}\n\n@validateArguments\nexport default class ProjectEnvironmentsBranchesCreateModal extends Component<ProjectEnvironmentsBranchesCreateModalArgs> {\n  @tracked selectedOrigin: string = null;\n  @tracked name: string = null;\n\n  get isCreationDisabled() {\n    return !this.selectedOrigin || !this.name;\n  }\n\n  reset() {\n    this.selectedOrigin = null;\n    this.name = null;\n    this.args.closeModal();\n  }\n\n  @action\n  async createBranch(callback: () => void) {\n    if (await this.args.createBranch(this.name, this.selectedOrigin)) {\n      this.reset();\n    }\n\n    callback();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @title=\\\"Create a new branch\\\"\\n  @onClose={{@closeModal}}\\n  class=\\\"c-create-branch-modal\\\"\\n  data-test-create-branch-modal\\n>\\n  <div class=\\\"c-create-branch-modal__input-container\\\">\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"info\\\"\\n      @message=\\\"You are about to create a branch for your development environment\\\"\\n    />\\n    <Shared::BetaLabel @label=\\\"Name\\\">\\n      <Shared::BetaInput\\n        @value={{this.name}}\\n        @placeholder=\\\"Branch name\\\"\\n        data-test-create-branch-modal-name\\n      />\\n    </Shared::BetaLabel>\\n    <Shared::BetaLabel @label=\\\"Origin\\\">\\n      <Shared::BetaSelect\\n        @value={{this.selectedOrigin}}\\n        @options={{@origins}}\\n        @placeholder=\\\"Select branch origin\\\"\\n        data-test-create-branch-modal-origin\\n      />\\n    </Shared::BetaLabel>\\n  </div>\\n  <div class=\\\"c-create-branch-modal__footer\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @action={{@closeModal}}\\n      @async={{false}}\\n      @text=\\\"Cancel\\\"\\n      class=\\\"c-create-branch-modal__footer--cancel\\\"\\n      data-test-create-branch-modal-cancel\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @disabled={{this.isCreationDisabled}}\\n      @action={{this.createBranch}}\\n      @text=\\\"Create\\\"\\n      data-test-create-branch-modal-create\\n    />\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/project-environments-branches/modals/create-branch/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout::Section\\n  @title=\\\"Branches\\\"\\n  @description=\\\"Branches allow you to develop new features in Forest Admin.\\\"\\n>\\n  <:header-buttons>\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @text=\\\"Create a new branch\\\"\\n      @action={{this.displayCreationModal}}\\n      @isIconAfterText={{true}}\\n      @async={{false}}\\n      @disabled={{this.isCreateBranchDisabled}}\\n      data-test-create-new-branch\\n    />\\n  </:header-buttons>\\n\\n  <:default>\\n    {{#if @project.branches.length}}\\n      <Shared::DataDisplay::BetaDisplayList\\n        @items={{@branchesSearched}}\\n        @header={{component\\n          \\'shared/data-display/beta-display-list/search-bar\\'\\n          searchFunction=@searchBranch\\n          placeholder=\\'Search for branch\\'\\n        }}\\n        @emptyState={{(html-safe\\n          \\'<span class=\\\"c-environments-branches__branch-empty-state\\\" data-test-branch-empty-state=true>No branch found</Shared::DataDisplay::BetaDisplayList>\\'\\n        )}}\\n        @class=\\\"c-environments-branches__branch-list\\\"\\n        data-test-list=\\\"branches\\\"\\n        as |branch|\\n      >\\n        <span class=\\\"c-environments-branches__branch-name\\\" data-test-branch-name={{true}}>\\n          {{branch.name}}\\n        </span>\\n        <span class=\\\"c-environments-branches__branch-based-on\\\" data-test-branch-based-on={{true}}>\\n          <DataDisplay::BranchOrigin @branch={{branch}} />\\n        </span>\\n        <span class=\\\"c-environments-branches__branch-owner\\\" data-test-branch-owner={{true}}>\\n          {{branch.environment.owner.fullName}}\\n        </span>\\n      </Shared::DataDisplay::BetaDisplayList>\\n      <span class=\\\"c-environments__v-spacer\\\"></span>\\n    {{else}}\\n      <span class=\\\"c-environments__no-branch-yet\\\" data-test-no-branch-yet-state=\\\"true\\\">\\n        You don’t have any branch yet.\\n      </span>\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"info\\\"\\n        @canHide={{false}}\\n        @class=\\\"c-environments-branches__branch-commands-container\\\"\\n      >\\n        <span class=\\\"c-environments-branches__branch-commands-title\\\">\\n          A branch is a development layout based on your Production environment\\'s layout.\\n        </span>\\n      </Shared::Feedback::Notification::NotificationInApp>\\n      <span class=\\\"c-environments__branch-title\\\">\\n        Creating a new branch\\n      </span>\\n      <span class=\\\"c-environments__branch-introduction\\\">\\n        Got a new feature to develop? Create a branch!\\n      </span>\\n      <Shared::DataDisplay::BetaCode\\n        class=\\\"c-environments__beta-code\\\"\\n        @code=\\\"forest branch my-new-feature --origin the-origin-environment\\\"\\n        @oneLineCommand={{true}}\\n      />\\n    {{/if}}\\n    <span class=\\\"c-environments__branch-documentation\\\">\\n      Any questions regarding branches in Forest Admin?\\n      <a\\n        class=\\\"c-environments__branch-documentation-link\\\"\\n        href={{this.devWorkflowDocumentationLink}}\\n        target=\\\"_blank\\\"\\n        rel=\\\"noopener noreferrer\\\"\\n        data-test-documentation-link-branches\\n      >\\n        Read our developer workflow documentation\\n      </a>\\n    </span>\\n    {{#if this.isCreationModalDisplayed}}\\n      <ProjectEnvironmentsBranches::Modals::CreateBranch\\n        @closeModal={{this.closeCreationModal}}\\n        @origins={{this.origins}}\\n        @createBranch={{@createBranch}}\\n      />\\n    {{/if}}\\n  </:default>\\n</Shared::BetaSettingsLayout::Section>\\n', { moduleName: 'client/legacy/pods/components/project-environments-branches/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class ProjectSettingsMenuComponent extends Component {\n  propTypes = {\n    project: PropTypes.object.isRequired,\n    projectSettings: PropTypes.string.isRequired,\n    hideMenu: PropTypes.string.isRequired,\n  };\n\n  display = false;\n\n  @action\n  show() {\n    if (!this.display) {\n      this.set('display', true);\n    }\n  }\n\n  @action\n  hideAction() {\n    this.hide();\n  }\n\n  hide() {\n    if (this.display) {\n      this.set('display', false);\n    }\n  }\n\n  @computed('project.name')\n  get urlProjectSettings() {\n    return `/${encodeURIComponent(this.project.name)}/settings`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-project-menu\\\" data-test-project-settings-menu>\\n  <i\\n    class=\\\"material-icons c-project-menu__dropdown\\\"\\n    role=\\\"button\\\"\\n    {{on \\'click\\' this.show}}\\n    data-test-project-settings-menu-button={{@project.name}}\\n  >\\n    more_vert\\n  </i>\\n  {{#if this.display}}\\n    <div\\n      class=\\\"c-project-settings-menu\\\"\\n      data-test-project-settings-menu-content={{@project.name}}\\n      {{forest-on-click-outside this.hideAction}}\\n    >\\n      <div class=\\\"c-project-settings-menu__containers\\\">\\n        <span class=\\\"c-project-settings-menu__name\\\">\\n          {{@project.name}}\\n        </span>\\n      </div>\\n      <a class=\\\"c-project-settings-menu__containers\\\" href={{this.urlProjectSettings}}>\\n        <i\\n          class=\\\"material-icons c-project-settings-menu__containers-icon c-project-settings-menu__containers-icon-settings\\\"\\n          aria-hidden=\\\"true\\\"\\n        >\\n          settings\\n        </i>\\n        <span class=\\\"c-project-settings-menu__containers-text\\\">\\n          Settings\\n        </span>\\n      </a>\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/project-settings-menu/template.hbs' });\n","import type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport InvoiceModel from 'client/data/models/invoice';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface InvoicesSectionArgs {\n  invoices: InvoiceModel[];\n}\n\n@validateArguments\nexport default class ProjectSettingsInvoicesSectionComponent extends Component<InvoicesSectionArgs> {\n  static propTypes = {\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n    invoices: PropTypes.arrayOf(PropTypes.instanceOf(InvoiceModel)),\n  };\n\n  @service private serverFetch: ServerFetchService;\n  @service private errorHandler: ErrorHandlerService;\n\n  @tracked public activePage = 1;\n\n  private rowsPerPage = 6;\n\n  @action\n  async generatePdfLink(invoiceId: string) {\n    try {\n      const fetchResponse = await this.serverFetch.fetch(\n        `/api/invoices/${invoiceId}/pdf-link`,\n        {\n          method: 'GET',\n        },\n        true,\n      );\n\n      const { quadernoPdfLink } = (await fetchResponse.json()) as { quadernoPdfLink: string };\n\n      // Open a link to the document (it downloads it)\n      window.open(quadernoPdfLink, '_blank');\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Invoice PDF');\n    }\n  }\n\n  // Local pagination due to the low amount of data\n\n  get totalCount() {\n    return this.args.invoices.length;\n  }\n\n  // I needed to do this trick using the one-way on BetaNewPaginator was still producing some side effect due to the usage of increment in the component\n  get currentPage() {\n    return this.activePage;\n  }\n\n  get totalPages() {\n    return Math.ceil(this.totalCount / this.rowsPerPage);\n  }\n\n  get currentInvoices() {\n    return this.args.invoices\n      .toArray()\n      .sort((a, b) => new Date(b.month).getTime() - new Date(a.month).getTime())\n      .slice((this.activePage - 1) * this.rowsPerPage, this.activePage * this.rowsPerPage);\n  }\n\n  @action\n  accessPage(pageNumber: number) {\n    if (pageNumber < 1) return;\n    if (pageNumber > this.totalPages) return;\n\n    this.activePage = pageNumber;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-settings-billing-invoices\\\" ...attributes data-test-invoices>\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"Invoices\\\"\\n    @description=\\\"Find your invoices per month.\\\"\\n  >\\n    <div class=\\\"c-settings-billing-invoices__container\\\">\\n      <Shared::BetaTable\\n        @columns={{array \\'Month\\' \\'Amount\\' \\'\\' \\'Status\\' \\'\\'}}\\n        @columnsClass=\\\"c-settings-billing-invoices__column-header\\\"\\n        @rows={{this.currentInvoices}}\\n        @alignColumnLeft={{true}}\\n        class=\\\"c-settings-billing-invoices__table\\\"\\n        data-test-invoices-table\\n        as |RowColumn invoice|\\n      >\\n        <RowColumn\\n          data-test-row-column=\\\"Month\\\"\\n          class=\\\"c-settings-billing-invoices__column c-settings-billing-invoices__column--month\\\"\\n        >\\n          {{! Example date format is April 2023 }}\\n          {{moment-format invoice.month \\'MMMM YYYY\\'}}\\n        </RowColumn>\\n        <RowColumn\\n          data-test-row-column=\\\"Amount\\\"\\n          class=\\\"c-settings-billing-invoices__column c-settings-billing-invoices__column--amount\\\"\\n        >\\n          {{invoice.formattedAmount}}\\n\\n        </RowColumn>\\n        {{! Empty Column }}\\n        <RowColumn data-test-row-column=\\\"Empty\\\" class=\\\"c-settings-billing-invoices__column\\\" />\\n        <RowColumn\\n          data-test-row-column=\\\"Status\\\"\\n          class=\\\"c-settings-billing-invoices__column c-settings-billing-invoices__column--status\\\"\\n        >\\n          <Shared::DataDisplay::BetaBadge\\n            @value={{invoice.status}}\\n            @color={{invoice.statusColor}}\\n          />\\n        </RowColumn>\\n        <RowColumn\\n          data-test-row-column=\\\"Pdf Links\\\"\\n          class=\\\"c-settings-billing-invoices__column c-settings-billing-invoices__column--link\\\"\\n        >\\n          {{#if invoice.quadernoPdfLinkAvailable}}\\n            <Shared::Button::BetaButton\\n              @type=\\\"link-primary-forest\\\"\\n              @underline={{false}}\\n              @size=\\\"small\\\"\\n              @text=\\\"View invoice\\\"\\n              @action={{(fn this.generatePdfLink invoice.id)}}\\n              @async={{true}}\\n              @withoutCallback={{true}}\\n              data-test-button=\\\"generate-pdf-link\\\"\\n            />\\n\\n          {{/if}}\\n        </RowColumn>\\n      </Shared::BetaTable>\\n\\n      <Shared::BetaNewPaginator\\n        @currentPage={{one-way this.currentPage}}\\n        @numberOfPages={{this.totalPages}}\\n        @accessPage={{this.accessPage}}\\n        @itemsType=\\\"invoice\\\"\\n        @numberOfItems={{@invoices.length}}\\n        @numberOfItemsInCurrentPage={{this.currentInvoices.length}}\\n        data-test-beta-new-paginator\\n      />\\n    </div>\\n\\n  </Shared::BetaSettingsLayout::Section>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/project-settings/invoices-section/template.hbs' });\n","import type ScimService from 'client/legacy/services/scim-service';\nimport type ToastrService from 'client/legacy/services/toastr';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { getFirstErrorDetail } from 'client/utils/ember-error-util';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface ProvisioningSectionArgs {\n  onChange: () => void;\n  hasScimToken: boolean;\n  goToBillingUpgradePage: () => Promise<void>;\n}\n\n@validateArguments\nexport default class ProjectSettingsProvisioningSectionComponent extends Component<ProvisioningSectionArgs> {\n  static propTypes = {\n    onChange: PropTypes.func,\n    hasScimToken: PropTypes.bool.isRequired,\n    goToBillingUpgradePage: PropTypes.func.isRequired,\n  };\n\n  @service private scimService: ScimService;\n  @service private toastr: ToastrService;\n\n  @tracked public scimTokenValue: string = null;\n  @tracked public isShowingDisablePopup = false;\n\n  get isScimFeatureUnavailable() {\n    return !this.scimService.isFeatureAvailableOnCurrentProject;\n  }\n\n  @action\n  openConfirmationPopup() {\n    this.isShowingDisablePopup = true;\n  }\n\n  @action\n  closeConfirmationPopup() {\n    this.isShowingDisablePopup = false;\n  }\n\n  @action\n  public async toggleProvisioning() {\n    try {\n      if (!this.args.hasScimToken) {\n        const token = await this.scimService.generateScimToken();\n        this.scimTokenValue = token;\n      } else {\n        await this.scimService.deleteScimToken();\n        this.scimTokenValue = null;\n      }\n\n      this.args.onChange();\n      this.toastr.perform(ToastrTypeEnum.Success, `User provisioning status updated successfully.`);\n    } catch (error) {\n      this.toastr.perform(\n        ToastrTypeEnum.Error,\n        getFirstErrorDetail(error as Error) || 'unexpected error',\n      );\n    }\n    this.closeConfirmationPopup();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @title=\\\"Disable SCIM provisioning and delete token?\\\"\\n  @onClose={{@closePopup}}\\n  @contentClass=\\\"c-disable-scim-modal\\\"\\n  data-test-disable-scim-modal\\n>\\n  <div class=\\\"c-disable-scim-modal__text\\\" data-test-disable-scim-text>\\n    Deleting provisioning token will prevent your identity provider from managing users on this\\n    project. It will not affect any user data.\\n  </div>\\n\\n  <div class=\\\"c-disable-scim-modal__buttons\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @text=\\\"Cancel\\\"\\n      @action={{@closePopup}}\\n      data-test-action=\\\"cancel\\\"\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"danger\\\"\\n      @text=\\\"Disable\\\"\\n      @action={{@action}}\\n      data-test-action=\\\"disable\\\"\\n    />\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/project-settings/provisioning-section/disable-scim-modal/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-settings-security-provisioning\\\" ...attributes data-test-provisioning>\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"User provisioning\\\"\\n    @locked={{this.isScimFeatureUnavailable}}\\n  >\\n    <:description as |inputClass|>\\n      <span class={{inputClass}}>\\n        Create, update or delete users directly from your Identity Provider. Check out our\\n        <Shared::Navigation::BetaLinkTo\\n          @type=\\\"primary\\\"\\n          @href=\\\"https://docs.forestadmin.com/user-guide/project-settings/security-tab#user-provisioning-scim\\\"\\n          @target=\\\"_blank\\\"\\n          @text=\\\"documentation\\\"\\n          @underline={{false}}\\n          @noPadding={{true}}\\n          @iconName=\\\"open_in_new\\\"\\n          @isIconAfterText={{true}}\\n          class={{inputClass}}\\n        />\\n      </span>\\n\\n      {{#if this.isScimFeatureUnavailable}}\\n        <Shared::Button\\n          @type=\\\"primary\\\"\\n          @text=\\\"Upgrade\\\"\\n          @onClick={{@goToBillingUpgradePage}}\\n          class=\\\"c-settings-security-provisioning__upgrade\\\"\\n          data-test-provisioning-unavailable-upgrade\\n        />\\n      {{/if}}\\n\\n    </:description>\\n\\n    <:default>\\n      {{#if @hasScimToken}}\\n        <Shared::Button\\n          @type=\\\"danger\\\"\\n          @text=\\\"Disable and delete token\\\"\\n          @onClick={{this.openConfirmationPopup}}\\n          class=\\\"c-settings-security-feature-toggle\\\"\\n          data-test-provisioning-disable-button\\n        />\\n      {{else}}\\n        <Shared::Button\\n          @type=\\\"primary\\\"\\n          @text=\\\"Enable and generate token\\\"\\n          @onClick={{this.toggleProvisioning}}\\n          class=\\\"c-settings-security-feature-toggle\\\"\\n          disabled={{this.isScimFeatureUnavailable}}\\n          data-test-provisioning-enable-button\\n        />\\n\\n      {{/if}}\\n\\n      <Shared::BetaLabel\\n        @label=\\\"SCIM Token\\\"\\n        class=\\\"c-settings-security-provisioning\\\"\\n        as |inputClass|\\n      >\\n        <div class=\\\"c-settings-security-provisioning__action-container\\\">\\n          {{#if @hasScimToken}}\\n\\n            {{#if this.scimTokenValue}}\\n              <div class=\\\"c-settings-security-provisioning__information\\\">\\n                <Shared::BetaInput\\n                  @kind=\\\"code\\\"\\n                  @copyable={{true}}\\n                  @copyableWithIcon={{true}}\\n                  @readOnly={{true}}\\n                  @value={{this.scimTokenValue}}\\n                  @inputClass={{inputClass}}\\n                  data-test-provisioning-display-token\\n                />\\n\\n                <Shared::Feedback::Notification::NotificationInApp\\n                  @state=\\\"warning\\\"\\n                  @message=\\\"This value is only displayed once and will not be accessible later.\\\"\\n                  @canHide={{false}}\\n                  @class={{(concat\\n                    inputClass \\' c-settings-security-provisioning__input-additional-info\\'\\n                  )}}\\n                />\\n              </div>\\n            {{else}}\\n              <div class=\\\"c-settings-security-provisioning__information\\\">\\n                <Shared::BetaInput\\n                  @kind=\\\"code\\\"\\n                  @copyable={{false}}\\n                  @disabled={{true}}\\n                  @readOnly={{true}}\\n                  @value=\\\"SCIM token already issued for this project.\\\"\\n                  @inputClass={{inputClass}}\\n                  data-test-provisioning-token-already-issue\\n                />\\n\\n                {{! template-lint-disable template-length }}\\n                <Shared::BetaLabel::Text\\n                  @label=\\\"To disable your token and generate a new one, simply disable SCIM provisioning and re-enable it.\\\"\\n                  @textClass={{(concat\\n                    inputClass \\' c-settings-security-provisioning__input-additional-info\\'\\n                  )}}\\n                  data-test-provisioning-token-already-issue-text\\n                />\\n              </div>\\n            {{/if}}\\n\\n          {{else}}\\n\\n            <Shared::BetaInput\\n              @kind=\\\"code\\\"\\n              @copyable={{false}}\\n              @disabled={{true}}\\n              @readOnly={{true}}\\n              @value=\\\"Switch on SCIM provisioning to generate your token.\\\"\\n              @inputClass={{inputClass}}\\n              class=\\\"c-settings-security-provisioning__information\\\"\\n              data-test-provisioning-generate-your-token\\n            />\\n\\n          {{/if}}\\n        </div>\\n      </Shared::BetaLabel>\\n\\n    </:default>\\n  </Shared::BetaSettingsLayout::Section>\\n\\n  {{#if this.isShowingDisablePopup}}\\n    <ProjectSettings::ProvisioningSection::DisableScimModal\\n      @closePopup={{this.closeConfirmationPopup}}\\n      @action={{this.toggleProvisioning}}\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/project-settings/provisioning-section/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport OrganizationModel from 'client/data/models/organization';\nimport Project from 'client/data/models/project';\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport normalizeString from 'client/utils/normalize-string';\n\n@validateArguments\nexport default class ProjectsListComponent extends Component {\n  @argument(Boolean) canCreateProject;\n  @argument(OrganizationModel) organization;\n  @argument(arrayOf(Project)) projects;\n\n  @tracked search = null;\n\n  get filteredProjects() {\n    if (this.search === null) {\n      return this.args.projects.sortBy('name');\n    }\n\n    const normalizedSearch = normalizeString(this.search);\n\n    return this.args.projects\n      .filter((project) => normalizeString(project.name).includes(normalizedSearch))\n      .sortBy('name');\n  }\n\n  @action\n  submitSearch(searchValue) {\n    this.search = searchValue ? searchValue.trim() : null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-projects\\\">\\n  <div class=\\\"c-projects__action-buttons\\\">\\n    <Shared::BetaSearchBar\\n      @searchFunction={{this.submitSearch}}\\n      @placeholder=\\\"Search project...\\\"\\n      @searchOnInput={{true}}\\n      class=\\\"c-projects__search-bar\\\"\\n      {{autofocus nestedSelector=\\'.c-beta-search-bar__input\\'}}\\n    />\\n    {{#if @canCreateProject}}\\n      <Shared::Navigation::BetaLinkTo\\n        @type=\\\"primary\\\"\\n        @size=\\\"large\\\"\\n        @text=\\\"New Project\\\"\\n        @routeName=\\\"projects.create\\\"\\n        @routeParameters={{array \\'introduction\\' 1}}\\n        @displayAsButton={{true}}\\n        class=\\\"c-projects--add\\\"\\n        data-test-link=\\\"createProject\\\"\\n      />\\n    {{/if}}\\n  </div>\\n\\n  <div class=\\\"c-projects__list\\\" data-test-projects>\\n    {{#if @loading}}\\n      <Layout::LayoutLoader @type=\\\"project\\\" />\\n    {{else}}\\n      {{#each this.filteredProjects as |project|}}\\n        <ProjectCard @project={{project}} />\\n      {{else}}\\n        {{#if this.search}}\\n          <Layout::LayoutProjectEmpty @searchValue={{this.search}} />\\n        {{else}}\\n          <div class=\\\"c-projects__empty\\\">\\n            Your organization doesn’t have any projects yet.\\n          </div>\\n          {{#if @canCreateProject}}\\n            <div class=\\\"c-projects__empty\\\">\\n              <Shared::Navigation::BetaLinkTo\\n                @type=\\\"primary\\\"\\n                @text=\\\"Create a project\\\"\\n                @routeName=\\\"projects.create\\\"\\n                @routeParameters={{array \\'introduction\\' 1}}\\n                class=\\\"c-projects__empty-link\\\"\\n                data-test-link=\\\"createProject\\\"\\n              />\\n              or transfer an existing one from projects settings.\\n            </div>\\n          {{/if}}\\n        {{/if}}\\n      {{/each}}\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/projects-list/template.hbs' });\n","import { computed } from '@ember/object';\nimport { filterBy, sort } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class RelatedDataMenuComponent extends Component {\n  @service currentUser;\n\n  constructor(owner, args) {\n    super(owner, args);\n\n    this.groupName = `${this.args.groupName}-${this.currentUser.editMode ? 'edit' : 'read'}`;\n  }\n\n  hasManySorting = ['position:asc', 'field.fieldName:asc'];\n\n  @sort('args.rows', 'hasManySorting') sortedHasManyRows;\n  @filterBy('sortedHasManyRows', 'isVisible', true) sortedHasManyRowsVisible;\n\n  @computed('currentUser.editMode', 'sortedHasManyRows', 'sortedHasManyRowsVisible')\n  get sortedHasManyRowsDisplayed() {\n    if (this.currentUser.editMode) {\n      return this.sortedHasManyRows;\n    }\n    return this.sortedHasManyRowsVisible;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  ...attributes\\n  {{sortable-group\\n    groupName=this.groupName\\n    onChange=@reorderRowsAction\\n    disabled=(not this.currentUser.editMode)\\n  }}\\n  class=\\\"c-related-data-menu\\\"\\n>\\n  {{#each this.sortedHasManyRowsDisplayed as |item|}}\\n    {{#if this.currentUser.editMode}}\\n      <SideMenu::ItemEdit\\n        @name={{item.field.displayNameTitlize}}\\n        @linkTarget={{if item.isArrayOfDocuments @linkTargetEmbedded @linkTarget}}\\n        @linkParam={{item.id}}\\n        @segmentId={{@currentSegmentId}}\\n        @isVisible={{item.isVisible}}\\n        @isDragging={{item.isDragging}}\\n        @sortableModel={{item}}\\n        @isSettingsHidden={{true}}\\n        @onClick={{if @onClick (fn (optional @onClick) item)}}\\n        @onClickIcon={{fn @toggleVisibility item}}\\n        @currentWhenCondition={{eq @selectedItem.id item.id}}\\n        @iconEditorColor={{true}}\\n        @size=\\\"small\\\"\\n        @groupName={{this.groupName}}\\n        class=\\\"c-related-data-menu__item\\\"\\n      />\\n    {{else}}\\n      <SideMenu::Item\\n        @name={{item.field.displayNameTitlize}}\\n        @icon={{if item.isArrayOfDocuments \\'database\\' item.field.referenceModel.iconOrDefault}}\\n        @currentWhenCondition={{eq @selectedItem.id item.id}}\\n        @onClick={{if @onClick (fn (optional @onClick) item)}}\\n        @linkTarget={{if item.isArrayOfDocuments @linkTargetEmbedded @linkTarget}}\\n        @linkParam={{item.id}}\\n        @segmentId={{@currentSegmentId}}\\n        @size=\\\"small\\\"\\n        class=\\\"c-related-data-menu__item\\\"\\n      />\\n    {{/if}}\\n  {{/each}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/related-data-menu/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class RenderingTrackerComponent extends Component {\n  @service eventBus;\n\n  @action\n  stopInterfaceTracking() {\n    this.eventBus.trigger('endOfInterfaceLoading', {\n      recordsContext: this.args.recordsContext,\n      time: Date.now(),\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<span {{did-insert this.stopInterfaceTracking}} {{did-update this.stopInterfaceTracking}}></span>\\n', { moduleName: 'client/legacy/pods/components/rendering-tracker/template.hbs' });\n","import Component from '@ember/component';\nimport { tagName } from '@ember-decorators/component';\n\n@tagName('')\nexport default class RightPanelBodyComponent extends Component {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  id={{@id}}\\n  class=\\\"l-overlay__sidepage__content\\n    {{unless @noScroll \\'l-overlay__sidepage--scroll\\'}}\\n    {{unless @noPadding \\'l-dpa\\'}}\\n    {{@extraClasses}}\\\"\\n>\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/right-panel-body/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { tagName } from '@ember-decorators/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\n@tagName('')\nexport default class RightPanelFooterComponent extends Component {\n  static propTypes = {\n    actionButtonType: PropTypes.string,\n    save: PropTypes.func,\n    delete: PropTypes.func,\n    default: PropTypes.string,\n    pending: PropTypes.string,\n    close: PropTypes.func,\n    buttonDeleteTitle: PropTypes.string,\n    buttonCancelTitle: PropTypes.string,\n  };\n\n  default = 'Save';\n  pending = 'Saving…';\n\n  @computed('buttonDeleteTitle')\n  get titleAlert() {\n    return this.buttonDeleteTitle || 'Delete';\n  }\n\n  @computed('buttonCancelTitle')\n  get titleSecond() {\n    return this.buttonCancelTitle || 'Close';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-overlay__sidepage__footer\\\">\\n  {{#if @close}}\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @text={{this.titleSecond}}\\n      @action={{@close}}\\n      @async={{false}}\\n      data-test-right-panel-close-button={{true}}\\n    />\\n  {{/if}}\\n\\n  <div>\\n    {{#if @delete}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"danger\\\"\\n        @text={{this.titleAlert}}\\n        @action={{@delete}}\\n        class=\\\"c-right-panel-footer__delete-button\\\"\\n      />\\n    {{/if}}\\n\\n    {{#if this.save}}\\n      <Shared::Button::BetaButton\\n        @type={{@actionButtonType}}\\n        @text={{this.default}}\\n        @action={{@save}}\\n        @disabled={{@disableSave}}\\n        data-test-right-panel-save-button={{true}}\\n      />\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/right-panel-footer/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class RightPanelHeaderComponent extends Component {\n  static propTypes = {\n    title: PropTypes.string,\n    cancelAction: PropTypes.func,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-right-panel-header\\\" ...attributes>\\n  <div class=\\\"c-right-panel-header__content\\\">\\n    {{#if @title}}\\n      <h1 class=\\\"c-right-panel-header__title\\\">\\n        {{@title}}\\n      </h1>\\n    {{/if}}\\n    {{yield}}\\n  </div>\\n  {{#if @cancelAction}}\\n    <Shared::BetaIconButton\\n      @icon=\\\"close\\\"\\n      @size=\\\"medium\\\"\\n      class=\\\"c-beta-right-panel__close\\\"\\n      data-test-right-panel-header-cancel-button\\n      {{on \\'click\\' @cancelAction}}\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/right-panel-header/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class RightPanelComponent extends Component {\n  static propTypes = {\n    sidepageClass: PropTypes.string,\n    onClickOutside: PropTypes.func,\n  };\n\n  @action\n  handleClickOutside(event) {\n    event.stopPropagation();\n    event.preventDefault();\n    this.args.onClickOutside?.(event);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"l-overlay\\\"\\n  {{on-click-outside\\n    this.handleClickOutside\\n    exceptSelector=\\'.l-portal,[data-toaster],.js-form-beta-select-dropdown-content\\'\\n  }}\\n  ...attributes\\n>\\n  <div class=\\\"l-overlay__sidepage l-overlay__sidepage--medium {{@sidepageClass}}\\\">\\n    {{yield}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/right-panel/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport Role from 'client/data/models/role';\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class RolesFormComponent extends Component {\n  @argument(Role) role;\n  @argument(Function) save;\n  @argument(optional(Boolean)) isCreate;\n  @argument(optional(String)) headerButtonClass;\n\n  get isSaveButtonDisabled() {\n    const { role } = this.args;\n    const isInvalid = !role.name;\n\n    return role.isNew ? isInvalid : !role.hasDirtyAttributes || isInvalid;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout::Section\\n  @title={{@sectionTitle}}\\n  @description={{@sectionDescription}}\\n  ...attributes\\n>\\n  <:header-buttons>\\n    <Button::BetaSaveDiscardButtons\\n      @entity={{@role}}\\n      @entityName=\\\"role\\\"\\n      @isCreate={{@isCreate}}\\n      @isSaveDisabled={{this.isSaveButtonDisabled}}\\n      @isDiscardVisible={{and (not @isCreate) @role.hasDirtyAttributes}}\\n      @save={{@save}}\\n    />\\n  </:header-buttons>\\n  <:default>\\n    <Shared::BetaLabel\\n      @label=\\\"Role name\\\"\\n      class=\\\"c-role-form__input\\\"\\n      data-test-input-for=\\\"role-name\\\"\\n    >\\n      <Shared::BetaInput @value={{@role.name}} @placeholder=\\\"My role\\\" />\\n    </Shared::BetaLabel>\\n    {{yield}}\\n  </:default>\\n</Shared::BetaSettingsLayout::Section>\\n', { moduleName: 'client/legacy/pods/components/roles/form/template.hbs' });\n","import { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Environment from 'client/data/models/environment';\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport watchCopyPermissionsFinished from 'client/gql/utils/watch-copy-permissions-finished';\n\nexport default class RolesModalCopyPermissionsComponent extends Component {\n  @argument(arrayOf(Environment)) environments;\n  @argument(Function) onClose;\n\n  @service apollo;\n  @service errorHandler;\n  @service lianaSession;\n  @service serverFetch;\n  @service toastr;\n  @service currentUser;\n\n  @tracked fromEnvironment = null;\n  @tracked toEnvironment = null;\n\n  get isCopyButtonEnabled() {\n    return !!this.fromEnvironment && !!this.toEnvironment;\n  }\n\n  get destinationEnvironments() {\n    if (this.fromEnvironment) {\n      return this.args.environments.filter((environment) => environment !== this.fromEnvironment);\n    }\n    return this.args.environments;\n  }\n\n  @action\n  handleChangeFromEnvironment(fromEnvironment) {\n    this.fromEnvironment = fromEnvironment;\n    this.toEnvironment = null;\n  }\n\n  @action\n  async copyPermissions(callback) {\n    const project = this.lianaSession.currentProject;\n    const options = { from: this.fromEnvironment.id, to: this.toEnvironment.id };\n\n    try {\n      const toastId = guidFor({});\n\n      const subscriptionCallback = (params) => {\n        if (params.error) {\n          this.toastr.update('error', `Copy roles permissions failed: ${params.message}`, toastId, {\n            duration: 0,\n          });\n        } else {\n          this.toastr.update(\n            'success',\n            `Roles have successfully been copied from ${this.fromEnvironment.name} to ${this.toEnvironment.name}, please refresh your browser.`,\n            toastId,\n            {\n              duration: 0,\n            },\n          );\n        }\n      };\n\n      const subscription = await watchCopyPermissionsFinished(\n        this.apollo,\n        Number(project.id),\n        Number(this.currentUser.id),\n        subscriptionCallback,\n      );\n\n      const response = await this.serverFetch.fetch(\n        `/api/projects/${project.id}/roles/copy-permissions`,\n        {\n          method: 'POST',\n          body: JSON.stringify(options),\n        },\n      );\n\n      if (!response.ok) {\n        subscription.apolloUnsubscribe();\n        throw await response.json();\n      } else {\n        this.toastr.perform(\n          'loading',\n          'Copying permissions... This can take up to a few minutes. You will receive an email confirmation when it’s done.',\n          {\n            id: toastId,\n            duration: 0,\n          },\n        );\n\n        callback();\n        return this.args.onClose();\n      }\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error, 'Copy roles permissions failed');\n\n      return callback();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @onClose={{@onClose}}\\n  @cancelText=\\\"Cancel\\\"\\n  @validateAction={{this.copyPermissions}}\\n  @validateText=\\\"Copy\\\"\\n  @title=\\\"Copy role permissions across environments\\\"\\n  @blockClass=\\\"c-modal-copy-permissions\\\"\\n  @validateDisabled={{not this.isCopyButtonEnabled}}\\n  data-test-modal-copy-permissions\\n  ...attributes\\n>\\n  <div class=\\\"c-modal-copy-permissions__content\\\">\\n    <span class=\\\"c-modal-copy-permissions__subtitle\\\">Copy all role permissions...</span>\\n    <Shared::BetaLabel @label=\\\"From\\\" class=\\\"c-modal-copy-permissions__input\\\">\\n      <Shared::BetaSelect\\n        @value={{one-way this.fromEnvironment}}\\n        @onChange={{this.handleChangeFromEnvironment}}\\n        @namePath=\\\"name\\\"\\n        @options={{@environments}}\\n        @placeholder=\\\"Select an environment to copy from\\\"\\n        @withSearchInput={{false}}\\n        data-test-modal-copy-permissions-from\\n      />\\n    </Shared::BetaLabel>\\n    <Shared::BetaLabel @label=\\\"To\\\" class=\\\"c-modal-copy-permissions__input\\\">\\n      <Shared::BetaSelect\\n        @value={{one-way this.toEnvironment}}\\n        @onChange={{fn (mut this.toEnvironment)}}\\n        @namePath=\\\"name\\\"\\n        @options={{this.destinationEnvironments}}\\n        @placeholder=\\\"Select an environment to copy to\\\"\\n        @withSearchInput={{false}}\\n        @disabled={{not this.fromEnvironment}}\\n        data-test-modal-copy-permissions-to\\n      />\\n    </Shared::BetaLabel>\\n    {{#if this.isCopyButtonEnabled}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"warning\\\"\\n        @canHide={{false}}\\n        class=\\\"c-modal-copy-permissions__notification\\\"\\n        data-test-warning-notification\\n      >\\n        All permissions of\\n        <span class=\\\"c-modal-copy-permissions__bold\\\">{{this.toEnvironment.name}}</span>\\n        will be overridden. This applies to\\n        <span class=\\\"c-modal-copy-permissions__bold\\\">all roles</span>.\\n      </Shared::Feedback::Notification::NotificationInApp>\\n    {{/if}}\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/roles/modal-copy-permissions/template.hbs' });\n","import type DefaultPermissionsActionPermissionsFragment from 'client/data/models/default-permissions-action-permissions';\nimport type FilterSmartActionPermissionFragment from 'client/data/models/fragment-filter-smart-action-permission';\nimport type SmartActionPermissionsFragment from 'client/data/models/smart-action-permissions';\n\nimport { action } from '@ember/object';\n\nimport AbstractRolesPermissionsTableComponent from 'client/legacy/pods/components/roles/permissions/table/component';\n\nexport interface RolesPermissionsActionsComponentArgs {\n  isInEditMode: boolean;\n  saveChanges: () => void;\n  displayAll: boolean;\n}\n\ntype OnChangeValue = { value: boolean; filter?: FilterSmartActionPermissionFragment };\n\nexport default abstract class AbstractRolesPermissionsActionsComponent<\n  T extends RolesPermissionsActionsComponentArgs,\n> extends AbstractRolesPermissionsTableComponent<T> {\n  @action\n  onChangeRequireApproval(\n    permission: DefaultPermissionsActionPermissionsFragment | SmartActionPermissionsFragment,\n    { value }: OnChangeValue,\n  ) {\n    permission.triggerRequiresApproval = value;\n\n    this.args.saveChanges();\n  }\n\n  @action\n  onChangeTrigger(\n    permission: DefaultPermissionsActionPermissionsFragment | SmartActionPermissionsFragment,\n    { value }: OnChangeValue,\n  ) {\n    permission.triggerAction = value;\n\n    this.args.saveChanges();\n  }\n\n  @action\n  onChangeUserApproval(\n    permission: DefaultPermissionsActionPermissionsFragment | SmartActionPermissionsFragment,\n    { value }: OnChangeValue,\n  ) {\n    permission.userApprovalAction = value;\n\n    this.args.saveChanges();\n  }\n\n  @action\n  onChangeSelfApproval(\n    permission: DefaultPermissionsActionPermissionsFragment | SmartActionPermissionsFragment,\n    { value }: OnChangeValue,\n  ) {\n    permission.selfApprovalEnabled = value;\n\n    this.args.saveChanges();\n  }\n}\n","import { action } from '@ember/object';\n\nimport { argument, arrayOf, optional, shape } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { ColumnHeader } from 'client/legacy/pods/components/roles/permissions/column-header/component';\nimport { collectionPermissionsColumnHeader } from 'client/legacy/pods/components/roles/permissions/default-collection-permissions/component';\nimport AbstractPermissionsTable from 'client/legacy/pods/components/roles/permissions/table/component';\n\nexport const COLLECTIONS_PERMISSIONS_DISPLAY_LIMIT = 10;\nconst COLLECTIONS_DEFAULT_PERMISSIONS_COLUMNS = [\n  'Read (list)',\n  'Read (details)',\n  'Create',\n  'Update',\n  'Delete',\n  'Export',\n];\nconst COLLECTIONS_PERMISSIONS_COLUMNS = ['Collection', ...COLLECTIONS_DEFAULT_PERMISSIONS_COLUMNS];\n\nexport const COLLECTIONS_PERMISSIONS_DETAILS_ROUTE_POSTFIX = 'collections';\n\nconst formattedPermissionValidator = shape({\n  collectionName: String,\n  browseEnabled: Boolean,\n  readEnabled: Boolean,\n  editEnabled: Boolean,\n  addEnabled: Boolean,\n  deleteEnabled: Boolean,\n  exportEnabled: Boolean,\n});\n\nconst collectionPermissionsKeys = [\n  'browseEnabled',\n  'readEnabled',\n  'editEnabled',\n  'addEnabled',\n  'deleteEnabled',\n  'exportEnabled',\n];\n\n@validateArguments\nexport default class RolesPermissionsCollectionsComponent extends AbstractPermissionsTable {\n  @argument(arrayOf(formattedPermissionValidator)) permissions;\n  @argument(optional(Boolean)) displayAll;\n  @argument(optional(Boolean)) isInEditMode;\n  @argument(optional(Boolean)) sticky;\n  @argument(optional(Function)) saveChanges;\n\n  constructor(...args) {\n    super(...args);\n    this.collectionsPermissionsColumns = COLLECTIONS_PERMISSIONS_COLUMNS;\n    this.collectionDefaultPermissionsColumns = COLLECTIONS_DEFAULT_PERMISSIONS_COLUMNS;\n    this.permissionsDisplayLimit = COLLECTIONS_PERMISSIONS_DISPLAY_LIMIT;\n    this.detailsRouteNamePostfix = COLLECTIONS_PERMISSIONS_DETAILS_ROUTE_POSTFIX;\n  }\n\n  getCollectionPermissions(collectionName) {\n    return this.args.permissions.find((permission) => permission.collectionName === collectionName);\n  }\n\n  get permissionsEditColumns() {\n    const getActionName = (permissionName) =>\n      this.isPermissionAllowedForEveryPermissionName(permissionName)\n        ? 'Deselect all'\n        : 'Select all';\n    return [\n      new ColumnHeader({ name: 'Collection' }),\n      ...collectionPermissionsColumnHeader.map(({ name, permissionName }) => {\n        return new ColumnHeader({\n          name,\n          permissionName,\n          triggerDropdownAction: this.togglePermissionValue,\n          getActionName,\n        });\n      }),\n    ];\n  }\n\n  @action\n  togglePermissionValue(permissionName) {\n    super.togglePermissionValue(permissionName);\n\n    this.args.saveChanges();\n  }\n\n  @action\n  toggleAllPermissions(collectionName) {\n    const collectionPermissions = this.getCollectionPermissions(collectionName);\n    const newValue = !collectionPermissionsKeys.every(\n      (collectionPermissionKey) => collectionPermissions[collectionPermissionKey],\n    );\n    collectionPermissionsKeys.forEach((collectionPermissionKey) => {\n      collectionPermissions[collectionPermissionKey] = newValue;\n    });\n\n    this.args.saveChanges();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @isInEditMode}}\\n  <span class=\\\"c-permissions-collection-name\\\" role=\\\"button\\\" {{on \\'click\\' (fn @onClick @name)}}>\\n    {{@name}}\\n  </span>\\n{{else}}\\n  {{@name}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/roles/permissions/collections/name/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<@RowColumn data-test-row-column=\\\"list\\\">\\n  <Roles::Permissions::Value\\n    @value={{@row.browseEnabled}}\\n    @isInEditMode={{@isInEditMode}}\\n    @onChange={{@saveChanges}}\\n    @isLeftAligned={{@isFirstColumnLeftAligned}}\\n  />\\n</@RowColumn>\\n<@RowColumn data-test-row-column=\\\"details\\\">\\n  <Roles::Permissions::Value\\n    @value={{@row.readEnabled}}\\n    @isInEditMode={{@isInEditMode}}\\n    @onChange={{@saveChanges}}\\n  />\\n</@RowColumn>\\n<@RowColumn data-test-row-column=\\\"create\\\">\\n  <Roles::Permissions::Value\\n    @value={{@row.addEnabled}}\\n    @isInEditMode={{@isInEditMode}}\\n    @onChange={{@saveChanges}}\\n  />\\n</@RowColumn>\\n<@RowColumn data-test-row-column=\\\"update\\\">\\n  <Roles::Permissions::Value\\n    @value={{@row.editEnabled}}\\n    @isInEditMode={{@isInEditMode}}\\n    @onChange={{@saveChanges}}\\n  />\\n</@RowColumn>\\n<@RowColumn data-test-row-column=\\\"delete\\\">\\n  <Roles::Permissions::Value\\n    @value={{@row.deleteEnabled}}\\n    @isInEditMode={{@isInEditMode}}\\n    @onChange={{@saveChanges}}\\n  />\\n</@RowColumn>\\n<@RowColumn data-test-row-column=\\\"export\\\">\\n  <Roles::Permissions::Value\\n    @value={{@row.exportEnabled}}\\n    @isInEditMode={{@isInEditMode}}\\n    @onChange={{@saveChanges}}\\n  />\\n</@RowColumn>\\n', { moduleName: 'client/legacy/pods/components/roles/permissions/collections/row/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaTable\\n  @columns={{if @isInEditMode this.permissionsEditColumns this.collectionsPermissionsColumns}}\\n  @columnComponent={{if @isInEditMode \\'roles/permissions/column-header\\'}}\\n  @rows={{@permissions}}\\n  @limit={{this.limit}}\\n  @showMoreOptions={{this.showMoreOptions}}\\n  @embedded={{@embedded}}\\n  @sticky={{@sticky}}\\n  @isFirstColumnLeftAligned={{true}}\\n  ...attributes\\n  as |RowColumn row|\\n>\\n  <RowColumn @shouldCapitalize={{true}} data-test-row-column=\\\"name\\\">\\n    <Roles::Permissions::Collections::Name\\n      @name={{row.collectionName}}\\n      @onClick={{this.toggleAllPermissions}}\\n      @isInEditMode={{@isInEditMode}}\\n    />\\n  </RowColumn>\\n  <Roles::Permissions::Collections::Row\\n    @row={{row}}\\n    @isInEditMode={{@isInEditMode}}\\n    @RowColumn={{RowColumn}}\\n    @saveChanges={{@saveChanges}}\\n  />\\n</Shared::BetaTable>\\n', { moduleName: 'client/legacy/pods/components/roles/permissions/collections/template.hbs' });\n","/* eslint max-classes-per-file: \"off\" */\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\nexport class ColumnHeader {\n  @tracked parentClass;\n  name: string;\n  permissionName: string;\n  triggerDropdownAction;\n  shouldActionBeDisabled: () => boolean;\n  getActionName: (permissionName: string) => string;\n\n  constructor({\n    name,\n    permissionName,\n    triggerDropdownAction,\n    shouldActionBeDisabled,\n    getActionName,\n  }: {\n    name: string;\n    permissionName?: string;\n    triggerDropdownAction?: (permissionName: string) => void;\n    shouldActionBeDisabled?: () => boolean;\n    getActionName?: (permissionName: string) => string;\n  }) {\n    this.name = name;\n    this.permissionName = permissionName;\n    this.getActionName = getActionName;\n    this.shouldActionBeDisabled = shouldActionBeDisabled;\n    this.triggerDropdownAction = () => triggerDropdownAction(permissionName);\n  }\n\n  get isActionDisabled() {\n    return this.shouldActionBeDisabled ? this.shouldActionBeDisabled() : false;\n  }\n\n  get actionName() {\n    return this.getActionName ? this.getActionName(this.permissionName) : '';\n  }\n}\n\ninterface RolesPermissionsColumnHeaderAttributes {\n  column: ColumnHeader;\n}\n\n@validateArguments\nexport default class RolesPermissionsColumnHeaderComponent extends Component<RolesPermissionsColumnHeaderAttributes> {\n  @argument(ColumnHeader) column;\n\n  @action\n  toggleParentClass() {\n    this.args.column.parentClass = this.args.column.parentClass\n      ? ''\n      : 'c-beta-table-header-column--focused';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @column.actionName}}\\n  <Form::Dropdown\\n    @onShow={{this.toggleParentClass}}\\n    @onHide={{this.toggleParentClass}}\\n    class=\\\"c-permissions-column-header__dropdown\\\"\\n    data-test-column-header-dropdown\\n    ...attributes\\n    as |showDropdown|\\n  >\\n    {{@column.name}}\\n    <i class=\\\"material-icons c-permissions-column-header__arrow\\\" role=\\\"button\\\">\\n      arrow_drop_down\\n    </i>\\n    {{#if showDropdown}}\\n      <Form::Dropdown::Content class=\\\"c-permissions-column-header__actions\\\">\\n        <Form::Dropdown::Action\\n          @name={{@column.actionName}}\\n          @onClick={{@column.triggerDropdownAction}}\\n          @isDisabled={{@column.isActionDisabled}}\\n          class=\\\"c-permissions-column-header__action\\\"\\n          data-test-column-header-dropdown-action\\n        />\\n      </Form::Dropdown::Content>\\n    {{/if}}\\n  </Form::Dropdown>\\n{{else}}\\n  {{@column.name}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/roles/permissions/column-header/template.hbs' });\n","import type CollectionPermissionsFragment from 'client/data/models/collection-permissions';\nimport type { CollectionPermissionsAttributes } from 'client/data/models/collection-permissions';\n\nimport validateArguments from 'client/decorators/validate';\nimport {\n  COLLECTIONS_PERMISSIONS_DETAILS_ROUTE_POSTFIX,\n  COLLECTIONS_PERMISSIONS_DISPLAY_LIMIT,\n} from 'client/legacy/pods/components/roles/permissions/collections/component';\nimport { ColumnHeader } from 'client/legacy/pods/components/roles/permissions/column-header/component';\nimport AbstractRolesPermissionsTableComponent from 'client/legacy/pods/components/roles/permissions/table/component';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport const collectionPermissionsColumnHeader: Array<{\n  name: string;\n  permissionName: keyof CollectionPermissionsAttributes;\n}> = [\n  {\n    name: 'Read (list)',\n    permissionName: 'browseEnabled',\n  },\n  {\n    name: 'Read (details)',\n    permissionName: 'readEnabled',\n  },\n  {\n    name: 'Create',\n    permissionName: 'addEnabled',\n  },\n  {\n    name: 'Update',\n    permissionName: 'editEnabled',\n  },\n  {\n    name: 'Delete',\n    permissionName: 'deleteEnabled',\n  },\n  {\n    name: 'Export',\n    permissionName: 'exportEnabled',\n  },\n];\n\ninterface RolesPermissionsDefaultCollectionPermissionsAttributes {\n  defaultPermissions: CollectionPermissionsAttributes;\n  isInEditMode: boolean;\n  saveChanges: () => void;\n  permissions: CollectionPermissionsFragment[];\n  displayAll: boolean;\n}\n\n@validateArguments\nexport default class RolesPermissionsDefaultCollectionPermissionsComponent extends AbstractRolesPermissionsTableComponent<RolesPermissionsDefaultCollectionPermissionsAttributes> {\n  static propTypes = {\n    defaultPermissions: PropTypes.shape({\n      browseEnabled: PropTypes.bool,\n      readEnabled: PropTypes.bool,\n      editEnabled: PropTypes.bool,\n      addEnabled: PropTypes.bool,\n      deleteEnabled: PropTypes.bool,\n      exportEnabled: PropTypes.bool,\n    }).isRequired,\n    isInEditMode: PropTypes.bool,\n    saveChanges: PropTypes.func,\n    displayAll: PropTypes.bool,\n  };\n\n  collectionDefaultPermissionsColumns: string[];\n  permissionsDisplayLimit: number = COLLECTIONS_PERMISSIONS_DISPLAY_LIMIT;\n  detailsRouteNamePostfix: string = COLLECTIONS_PERMISSIONS_DETAILS_ROUTE_POSTFIX;\n\n  constructor(owner: unknown, args: RolesPermissionsDefaultCollectionPermissionsAttributes) {\n    super(owner, args);\n    this.collectionDefaultPermissionsColumns = collectionPermissionsColumnHeader.map(\n      ({ name }) => name,\n    );\n  }\n\n  get defaultPermissionsEditColumns() {\n    return collectionPermissionsColumnHeader.map(({ name, permissionName }) => {\n      return new ColumnHeader({\n        name,\n        permissionName,\n        triggerDropdownAction: this.togglePermissionValue,\n      });\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaTable\\n  @columns={{if\\n    @isInEditMode\\n    this.defaultPermissionsEditColumns\\n    this.collectionDefaultPermissionsColumns\\n  }}\\n  @columnComponent={{if @isInEditMode \\'roles/permissions/column-header\\'}}\\n  @rows={{array @defaultPermissions}}\\n  @isFirstColumnLeftAligned={{true}}\\n  class=\\\"c-role-environment-permissions__table\\\"\\n  ...attributes\\n  as |RowColumn row|\\n>\\n  <Roles::Permissions::Collections::Row\\n    @row={{row}}\\n    @isInEditMode={{@isInEditMode}}\\n    @RowColumn={{RowColumn}}\\n    @saveChanges={{@saveChanges}}\\n    @isFirstColumnLeftAligned={{true}}\\n  />\\n</Shared::BetaTable>\\n', { moduleName: 'client/legacy/pods/components/roles/permissions/default-collection-permissions/template.hbs' });\n","import type { DefaultPermissionsActionPermissionsAttributes } from 'client/data/models/default-permissions-action-permissions';\n\nimport validateArguments from 'client/decorators/validate';\nimport AbstractRolesPermissionsActionsComponent from 'client/legacy/pods/components/roles/permissions/actions/component';\nimport { ColumnHeader } from 'client/legacy/pods/components/roles/permissions/column-header/component';\nimport {\n  SMART_ACTIONS_PERMISSIONS_DETAILS_ROUTE_POSTFIX,\n  SMART_ACTIONS_PERMISSIONS_DISPLAY_LIMIT,\n} from 'client/legacy/pods/components/roles/permissions/smart-actions/component';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport const actionsColumnHeader: Array<{\n  name: string;\n  permissionName: keyof DefaultPermissionsActionPermissionsAttributes;\n}> = [\n  {\n    name: 'Trigger',\n    permissionName: 'triggerEnabled',\n  },\n  {\n    name: 'Require approval',\n    permissionName: 'approvalRequired',\n  },\n  {\n    name: 'Approve',\n    permissionName: 'userApprovalEnabled',\n  },\n  {\n    name: 'Self approve',\n    permissionName: 'selfApprovalEnabled',\n  },\n];\ninterface RolesPermissionsDefaultSmartActionPermissionsArguments {\n  defaultPermissions: DefaultPermissionsActionPermissionsAttributes;\n  isInEditMode: boolean;\n  saveChanges: () => void;\n  displayAll: boolean;\n}\n\n@validateArguments\nexport default class RolesPermissionsDefaultSmartActionPermissionsComponent extends AbstractRolesPermissionsActionsComponent<RolesPermissionsDefaultSmartActionPermissionsArguments> {\n  static propTypes = {\n    defaultPermissions: PropTypes.shape({\n      triggerAction: PropTypes.bool,\n      triggerRequiresApproval: PropTypes.bool,\n      userApprovalEnabled: PropTypes.bool,\n      selfApprovalEnabled: PropTypes.bool,\n    }).isRequired,\n    isInEditMode: PropTypes.bool,\n    saveChanges: PropTypes.func,\n    displayAll: PropTypes.bool,\n  };\n\n  smartActionsDefaultPermissionsColumns: string[] = actionsColumnHeader.map(({ name }) => name);\n  permissionsDisplayLimit: number = SMART_ACTIONS_PERMISSIONS_DISPLAY_LIMIT;\n  detailsRouteNamePostfix: string = SMART_ACTIONS_PERMISSIONS_DETAILS_ROUTE_POSTFIX;\n\n  get defaultPermissionsEditColumns() {\n    return actionsColumnHeader.map(({ name, permissionName }) => {\n      return new ColumnHeader({\n        name,\n        permissionName,\n        triggerDropdownAction: this.togglePermissionValue,\n      });\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaTable\\n  @columns={{if\\n    @isInEditMode\\n    this.defaultPermissionsEditColumns\\n    this.smartActionsDefaultPermissionsColumns\\n  }}\\n  @columnComponent={{if @isInEditMode \\'roles/permissions/column-header\\'}}\\n  @rows={{array @defaultPermissions}}\\n  @isFirstColumnLeftAligned={{true}}\\n  class=\\\"c-role-environment-permissions__table\\\"\\n  data-test-roles-permissions-default-smart-action-permissions\\n  ...attributes\\n  as |RowColumn row|\\n>\\n  <Roles::Permissions::SmartActions::Row\\n    @row={{row}}\\n    @isInEditMode={{@isInEditMode}}\\n    @RowColumn={{RowColumn}}\\n    @onChangeTrigger={{this.onChangeTrigger}}\\n    @onChangeRequireApproval={{this.onChangeRequireApproval}}\\n    @onChangeUserApproval={{this.onChangeUserApproval}}\\n    @onChangeSelfApproval={{this.onChangeSelfApproval}}\\n    @isDefaultPermissions={{true}}\\n    data-test-roles-permissions-default-smart-action-permissions-row\\n  />\\n</Shared::BetaTable>\\n', { moduleName: 'client/legacy/pods/components/roles/permissions/default-smart-action-permissions/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Roles::Permissions::Section\\n  @title=\\\"{{capitalize-text @name}}{{if @pluralName \\'s\\'}} permissions\\\"\\n  ...attributes\\n>\\n  <:header-buttons>\\n    {{#if @permissions}}\\n      {{#if (not-eq @mode \\'edit\\')}}\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @text=\\\"Edit\\\"\\n          @action={{@goOnEditMode}}\\n          data-test-for-button=\\\"edit\\\"\\n        />\\n      {{else}}\\n        <Shared::Navigation::BetaLinkTo\\n          @type=\\\"secondary\\\"\\n          @text=\\\"Back\\\"\\n          @iconName=\\\"arrow_back\\\"\\n          @isIconAfterText={{false}}\\n          @routeName=\\\"project.project-settings.roles.details.environment-permissions\\\"\\n          data-test-for-button=\\\"back\\\"\\n        />\\n      {{/if}}\\n    {{/if}}\\n  </:header-buttons>\\n  <:default>\\n    {{#if @permissions}}\\n      {{yield}}\\n    {{else}}\\n      <div class=\\\"c-role-environment-permissions__empty-content\\\">\\n        No\\n        {{@name}}\\n        yet.\\n      </div>\\n    {{/if}}\\n  </:default>\\n</Roles::Permissions::Section>\\n', { moduleName: 'client/legacy/pods/components/roles/permissions/permissions-details/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout::SectionForTable\\n  @title={{@title}}\\n  @linkRouteName={{@editPermissionsRouteName}}\\n  @linkQueryParams={{hash mode=\\'edit\\'}}\\n  @linkTitle=\\\"Edit permissions\\\"\\n  data-test-role-permissions-section-for-table\\n  ...attributes\\n>\\n  <:header-buttons>\\n    {{yield to=\\'header-buttons\\'}}\\n  </:header-buttons>\\n  <:default>\\n    {{yield}}\\n  </:default>\\n</Shared::BetaSettingsLayout::SectionForTable>\\n', { moduleName: 'client/legacy/pods/components/roles/permissions/section/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport CollectionEnvironmentModel from 'client/data/models/collection-environment';\nimport { any, argument, arrayOf, optional, shape } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport AbstractRolesPermissionsActionsComponent from 'client/legacy/pods/components/roles/permissions/actions/component';\nimport { ColumnHeader } from 'client/legacy/pods/components/roles/permissions/column-header/component';\n\nexport const SMART_ACTIONS_PERMISSIONS_DISPLAY_LIMIT = 10;\nconst SMART_ACTIONS_PERMISSIONS_COLUMNS = ['Smart Action', 'Collection', 'Trigger'];\nconst SMART_ACTIONS_PERMISSIONS_COLUMNS_WITH_APPROVAL = [\n  ...SMART_ACTIONS_PERMISSIONS_COLUMNS,\n  'Require approval',\n  'Approve',\n  'Self Approve',\n];\nexport const SMART_ACTIONS_PERMISSIONS_DETAILS_ROUTE_POSTFIX = 'smart-actions';\n\nconst formattedPermissionValidator = shape({\n  permission: shape({\n    smartActionName: String,\n    collectionName: String,\n\n    triggerAction: Boolean,\n    triggerCondition: optional(any()),\n\n    triggerRequiresApproval: Boolean,\n    approvalRequiredCondition: optional(any()),\n\n    userApprovalEnabled: Boolean,\n    userApprovalCondition: optional(any()),\n\n    selfApprovalEnabled: Boolean,\n  }),\n  collection: optional(CollectionEnvironmentModel),\n});\n\n@validateArguments\nexport default class RolesPermissionsSmartActionsComponent extends AbstractRolesPermissionsActionsComponent {\n  @service abilities;\n  /** @type {import('client/legacy/services/role-condition-service').default} */\n  @service roleConditionService;\n\n  @argument(arrayOf(formattedPermissionValidator)) permissions;\n  @argument(optional(Boolean)) displayAll;\n  @argument(optional(Boolean)) isInEditMode;\n  @argument(optional(Function)) saveChanges;\n\n  constructor(...args) {\n    super(...args);\n    if (this.abilities.can('access to approval')) {\n      this.smartActionsPermissionsColumns = SMART_ACTIONS_PERMISSIONS_COLUMNS_WITH_APPROVAL;\n    } else {\n      this.smartActionsPermissionsColumns = SMART_ACTIONS_PERMISSIONS_COLUMNS;\n    }\n    this.permissionsDisplayLimit = SMART_ACTIONS_PERMISSIONS_DISPLAY_LIMIT;\n    this.detailsRouteNamePostfix = SMART_ACTIONS_PERMISSIONS_DETAILS_ROUTE_POSTFIX;\n  }\n\n  @computed('args.permissions')\n  get permissionList() {\n    return this.args.permissions.map(({ permission }) => permission);\n  }\n\n  @action\n  shouldGlobalSelfApproveBeDisabled() {\n    // NOTICE: approvalRequired means that triggerEnabled is true\n    return (\n      !this.isPermissionAllowedForEveryPermissionName('userApprovalEnabled')\n      || !this.isPermissionAllowedForEveryPermissionName('triggerRequiresApproval')\n    );\n  }\n\n  get permissionsEditColumns() {\n    const getActionName = (permissionName) =>\n      this.isPermissionAllowedForEveryPermissionName(permissionName)\n        ? 'Deselect all'\n        : 'Select all';\n\n    const canAccessToApproval = this.abilities.can('access to approval');\n\n    const columns = [\n      new ColumnHeader({ name: 'Smart Action' }),\n      new ColumnHeader({ name: 'Collection' }),\n      new ColumnHeader({\n        name: 'Trigger',\n        permissionName: 'triggerAction',\n        triggerDropdownAction: this.togglePermissionValue,\n        getActionName,\n      }),\n    ];\n    if (canAccessToApproval) {\n      columns.push(\n        new ColumnHeader({\n          name: 'Require approval',\n          permissionName: 'triggerRequiresApproval',\n          triggerDropdownAction: this.togglePermissionValue,\n          getActionName,\n        }),\n        new ColumnHeader({\n          name: 'Approve',\n          permissionName: 'userApprovalAction',\n          triggerDropdownAction: this.togglePermissionValue,\n          getActionName,\n        }),\n        new ColumnHeader({\n          name: 'Self Approve',\n          permissionName: 'selfApprovalAction',\n          triggerDropdownAction: this.togglePermissionValue,\n          shouldActionBeDisabled: this.shouldGlobalSelfApproveBeDisabled,\n          getActionName,\n        }),\n      );\n    }\n    return columns;\n  }\n\n  @action\n  createUserApprovalCondition(permission, args) {\n    return this.roleConditionService.createUserApprovalCondition(permission, args);\n  }\n\n  @action\n  createApprovalRequiredCondition(permission, args) {\n    return this.roleConditionService.createApprovalRequiredCondition(permission, args);\n  }\n\n  @action\n  createTriggerCondition(permission, args) {\n    return this.roleConditionService.createTriggerCondition(permission, args);\n  }\n\n  @action\n  togglePermissionValue(permissionName) {\n    super.togglePermissionValue(permissionName);\n    this.args.saveChanges();\n  }\n\n  @action\n  onChangeRequireApproval(permission, { value, filter }) {\n    if (value) {\n      permission.approvalRequiredCondition = filter;\n    }\n    super.onChangeRequireApproval(permission, { value, filter });\n  }\n\n  @action\n  onChangeTrigger(permission, { value, filter }) {\n    if (value) {\n      permission.triggerCondition = filter;\n    }\n    super.onChangeTrigger(permission, { value, filter });\n  }\n\n  @action\n  onChangeUserApproval(permission, { value, filter }) {\n    if (value) {\n      permission.userApprovalCondition = filter;\n    }\n    super.onChangeUserApproval(permission, { value, filter });\n  }\n}\n","import type { FilterSmartActionPermissionAttributes } from 'client/data/models/fragment-filter-smart-action-permission';\nimport type SmartActionPermissionsFragment from 'client/data/models/smart-action-permissions';\nimport type RoleConditionService from 'client/legacy/services/role-condition-service';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class RolesPermissionsSmartActionsRowComponent extends Component {\n  @service roleConditionService: RoleConditionService;\n\n  @action\n  createUserApprovalCondition(\n    permission: SmartActionPermissionsFragment,\n    args: FilterSmartActionPermissionAttributes,\n  ) {\n    return this.roleConditionService.createUserApprovalCondition(permission, args);\n  }\n\n  @action\n  createApprovalRequiredCondition(\n    permission: SmartActionPermissionsFragment,\n    args: FilterSmartActionPermissionAttributes,\n  ) {\n    return this.roleConditionService.createApprovalRequiredCondition(permission, args);\n  }\n\n  @action\n  createTriggerCondition(\n    permission: SmartActionPermissionsFragment,\n    args: FilterSmartActionPermissionAttributes,\n  ) {\n    return this.roleConditionService.createTriggerCondition(permission, args);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{yield to=\\'row-permissions-actions\\'}}\\n{{#let\\n  (if @isDefaultPermissions @row @row.permission) (cannot \\'access to approval\\')\\n  as |rowPermission cannotAccessApproval|\\n}}\\n  <@RowColumn data-test-row-column=\\\"trigger\\\">\\n    <Roles::Permissions::SmartActions::Value\\n      @value={{rowPermission.triggerAction}}\\n      @filter={{rowPermission.triggerCondition}}\\n      @createFilter={{fn this.createTriggerCondition rowPermission}}\\n      @clearFilter={{fn this.roleConditionService.clearTriggerCondition rowPermission}}\\n      @showDiscard={{false}}\\n      @isInEditMode={{@isInEditMode}}\\n      @fields={{@row.filterableFields}}\\n      @onChange={{fn @onChangeTrigger rowPermission}}\\n      @isDefaultPermissions={{@isDefaultPermissions}}\\n    />\\n  </@RowColumn>\\n  {{#if (or @isDefaultPermissions (not cannotAccessApproval))}}\\n    <@RowColumn data-test-row-column=\\\"trigger-requires-approval\\\">\\n      <Roles::Permissions::SmartActions::Value\\n        @value={{rowPermission.triggerRequiresApproval}}\\n        @filter={{rowPermission.approvalRequiredCondition}}\\n        @createFilter={{fn this.createApprovalRequiredCondition rowPermission}}\\n        @clearFilter={{fn this.roleConditionService.clearApprovalRequiredCondition rowPermission}}\\n        @showDiscard={{false}}\\n        @isInEditMode={{@isInEditMode}}\\n        @onChange={{fn @onChangeRequireApproval rowPermission}}\\n        @fields={{@row.filterableFields}}\\n        @isDefaultPermissions={{@isDefaultPermissions}}\\n        @disabled={{cannotAccessApproval}}\\n      />\\n    </@RowColumn>\\n    <@RowColumn data-test-row-column=\\\"approve\\\">\\n      <Roles::Permissions::SmartActions::Value\\n        @value={{rowPermission.userApprovalEnabled}}\\n        @filter={{rowPermission.userApprovalCondition}}\\n        @createFilter={{fn this.createUserApprovalCondition rowPermission}}\\n        @clearFilter={{fn this.roleConditionService.clearUserApprovalCondition rowPermission}}\\n        @showDiscard={{false}}\\n        @isInEditMode={{@isInEditMode}}\\n        @onChange={{fn @onChangeUserApproval rowPermission}}\\n        @fields={{@row.filterableFields}}\\n        @isDefaultPermissions={{@isDefaultPermissions}}\\n        @disabled={{cannotAccessApproval}}\\n      />\\n    </@RowColumn>\\n    <@RowColumn data-test-row-column=\\\"self-approve\\\">\\n      <Roles::Permissions::SmartActions::Value\\n        @isDefaultPermissions={{@isDefaultPermissions}}\\n        @value={{rowPermission.selfApprovalEnabled}}\\n        @isInEditMode={{@isInEditMode}}\\n        @disabled={{or\\n          cannotAccessApproval\\n          (not (and rowPermission.triggerRequiresApproval rowPermission.userApprovalEnabled))\\n        }}\\n        @onChange={{fn @onChangeSelfApproval rowPermission}}\\n      />\\n    </@RowColumn>\\n  {{/if}}\\n{{/let}}\\n', { moduleName: 'client/legacy/pods/components/roles/permissions/smart-actions/row/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaTable\\n  @columns={{if @isInEditMode this.permissionsEditColumns this.smartActionsPermissionsColumns}}\\n  @columnComponent={{if @isInEditMode \\'roles/permissions/column-header\\'}}\\n  @rows={{@permissions}}\\n  @limit={{this.limit}}\\n  @showMoreOptions={{this.showMoreOptions}}\\n  @embedded={{@embedded}}\\n  @sticky={{@sticky}}\\n  @isFirstColumnLeftAligned={{true}}\\n  class=\\\"c-smart-actions\\\"\\n  ...attributes\\n  as |RowColumn row|\\n>\\n  <RowColumn @shouldCapitalize={{true}} data-test-row-column=\\\"smartActionName\\\">\\n    {{row.permission.smartActionName}}\\n  </RowColumn>\\n  <RowColumn class=\\\"c-smart-actions__collection-name\\\" data-test-row-column=\\\"collectionName\\\">\\n    {{row.permission.collectionName}}\\n  </RowColumn>\\n  <Roles::Permissions::SmartActions::Row\\n    @row={{row}}\\n    @onChangeTrigger={{this.onChangeTrigger}}\\n    @onChangeRequireApproval={{this.onChangeRequireApproval}}\\n    @onChangeUserApproval={{this.onChangeUserApproval}}\\n    @onChangeSelfApproval={{this.onChangeSelfApproval}}\\n    @isInEditMode={{@isInEditMode}}\\n    @RowColumn={{RowColumn}}\\n    @isDefaultPermissions={{false}}\\n  />\\n</Shared::BetaTable>\\n', { moduleName: 'client/legacy/pods/components/roles/permissions/smart-actions/template.hbs' });\n","import type FilterSmartActionPermissionFragment from 'client/data/models/fragment-filter-smart-action-permission';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport Component from '@glimmer/component';\n\nimport FieldEnvironmentModel from 'client/data/models/field-environment';\nimport validateArguments from 'client/decorators/validate';\nimport filterToText from 'client/utils/filter-to-text';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport truncateText from 'client/utils/truncate-text';\n\nconst MAX_SIZE = 80;\n\nexport type RolePermissionsSmartActionsValueArgs = {\n  filter: FilterSmartActionPermissionFragment;\n  value: boolean;\n  disabled: boolean;\n  fields?: FieldEnvironmentModel[];\n  onChange: (values: { filter: FilterSmartActionPermissionFragment; value: boolean }) => void;\n  createFilter: (args) => FilterSmartActionPermissionFragment;\n  clearFilter: () => void;\n};\n\n@validateArguments\nexport default class RolesPermissionsSmartActionsValueComponent extends Component<RolePermissionsSmartActionsValueArgs> {\n  static propTypes = {\n    filter: PropTypes.object,\n    value: PropTypes.bool.isRequired,\n    disabled: PropTypes.bool,\n    onChange: PropTypes.func,\n    isInEditMode: PropTypes.bool,\n    createFilter: PropTypes.func,\n    clearFilter: PropTypes.func,\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n    fields: PropTypes.arrayOf(PropTypes.instanceOf(FieldEnvironmentModel)),\n  };\n\n  value: boolean;\n\n  constructor(owner, args: RolePermissionsSmartActionsValueArgs) {\n    super(owner, args);\n    this.value = this.args.value;\n  }\n\n  get text() {\n    return filterToText(this.args.filter);\n  }\n\n  get truncatedText() {\n    return truncateText(this.text, MAX_SIZE);\n  }\n\n  get textId() {\n    return guidFor(this);\n  }\n\n  @action\n  onValueChange(newValue: boolean) {\n    this.value = newValue;\n    if (this.args.onChange) {\n      this.args.onChange({ filter: this.args.filter, value: newValue });\n    }\n  }\n\n  @action\n  applyFilter(filter: FilterSmartActionPermissionFragment) {\n    if (this.args.filter && !filter && this.args.clearFilter) {\n      this.args.clearFilter();\n    }\n\n    if (this.args.onChange) {\n      this.args.onChange({ filter, value: this.value });\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<span\\n  class=\\\"c-roles-permissions-smart-actions-value\\\"\\n  data-test-roles-permissions-smart-actions-value\\n  ...attributes\\n>\\n  {{#if @isInEditMode}}\\n    <Form::BetaCheckbox\\n      @value={{@value}}\\n      @small={{true}}\\n      @disabled={{@disabled}}\\n      @onChange={{this.onValueChange}}\\n      @class=\\\"c-roles-permissions-smart-actions-value__checkbox\\\"\\n      data-test-roles-permissions-smart-actions-value-checkbox\\n    />\\n\\n    {{#unless @isDefaultPermissions}}\\n      {{#if (and @fields.length @createFilter)}}\\n        <BetaFilter::Button\\n          @fieldsFilterable={{@fields}}\\n          @filter={{@filter}}\\n          @applyFilter={{this.applyFilter}}\\n          @saveOnApply={{false}}\\n          @createFilter={{@createFilter}}\\n          @clearFilter={{@clearFilter}}\\n          @discardOnHide={{true}}\\n          @showDiscard={{@showDiscard}}\\n          @isCompact={{true}}\\n          @disabled={{not @value}}\\n          @applyText=\\\"Save\\\"\\n          class=\\\"c-roles-permissions-smart-actions-value__filter\\\"\\n        />\\n      {{/if}}\\n    {{/unless}}\\n  {{else}}\\n    {{#if @value}}\\n      {{#if @filter.conditions.length}}\\n        <code\\n          class=\\\"c-roles-permissions-smart-actions-value__code\\\"\\n          id={{this.textId}}\\n          data-test-condition-text\\n        >\\n          {{this.truncatedText}}\\n        </code>\\n\\n        <Shared::Feedback::BetaTooltip @side=\\\"bottom\\\" @targetId={{this.textId}}>\\n          {{this.text}}\\n        </Shared::Feedback::BetaTooltip>\\n      {{else}}\\n        <i\\n          class=\\\"c-roles-permissions-smart-actions-value__check\\\"\\n          data-test-roles-permissions-smart-actions-value-check\\n        >\\n          check\\n        </i>\\n      {{/if}}\\n    {{else}}\\n      <i\\n        class=\\\"c-roles-permissions-smart-actions-value__dash\\\"\\n        data-test-roles-permissions-smart-actions-value-empty\\n      >\\n        horizontal_rule\\n      </i>\\n    {{/if}}\\n  {{/if}}\\n</span>\\n', { moduleName: 'client/legacy/pods/components/roles/permissions/smart-actions/value/template.hbs' });\n","import type CollectionPermissionsFragment from 'client/data/models/collection-permissions';\nimport type SmartActionPermissionsFragment from 'client/data/models/smart-action-permissions';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\ninterface RolesPermissionsAbstractPermissionsTableAttributes {\n  permissions?: Array<CollectionPermissionsFragment | SmartActionPermissionsFragment>;\n  displayAll: boolean;\n}\n\nexport default abstract class AbstractRolesPermissionsTableComponent<\n  T extends RolesPermissionsAbstractPermissionsTableAttributes,\n> extends Component<T> {\n  abstract permissionsDisplayLimit: number;\n  abstract detailsRouteNamePostfix: string;\n\n  get limit() {\n    // If displayAll is enabled the limit is not set\n    return !this.args.displayAll && this.permissionsDisplayLimit;\n  }\n\n  // To be overridden by child classes if needed\n  get permissionList() {\n    return this.args.permissions;\n  }\n\n  get showMoreOptions() {\n    return {\n      display: !this.args.displayAll && this.permissionList.length > this.permissionsDisplayLimit,\n      routeName: `project.project-settings.roles.details.environment-permissions.${this.detailsRouteNamePostfix}`,\n      routeParameters: [],\n    };\n  }\n\n  isPermissionAllowedForEveryPermissionName(permissionName: string) {\n    return this.permissionList.every((permission) => permission[permissionName]);\n  }\n\n  setValueToPermission(permissionName: string, isEnabled: boolean) {\n    this.permissionList.forEach((permission) => {\n      permission[permissionName] = isEnabled;\n    });\n  }\n\n  @action\n  togglePermissionValue(permissionName: string) {\n    const newValue = !this.isPermissionAllowedForEveryPermissionName(permissionName);\n    this.setValueToPermission(permissionName, newValue);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @isInEditMode}}\\n  <Form::BetaCheckbox\\n    @value={{@value}}\\n    @small={{true}}\\n    @disabled={{@disabled}}\\n    @onChange={{@onChange}}\\n    @class={{get-classes-with-modifiers\\n      \\'c-roles-permissions-value-checkbox\\'\\n      left-aligned=@isLeftAligned\\n    }}\\n    ...attributes\\n  />\\n{{else}}\\n  {{#if @value}}\\n    <i class=\\\"c-roles-permissions-value__check\\\" ...attributes>\\n      check\\n    </i>\\n  {{else}}\\n    <i class=\\\"c-roles-permissions-value__dash\\\">horizontal_rule</i>\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/roles/permissions/value/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { waitForPromise } from '@ember/test-waiters';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport SamlConfigurationModel from 'client/data/models/saml-configuration';\nimport { argument, optional } from 'client/decorators/argument';\n\nexport default class SamlConfigurationManualComponent extends Component {\n  @argument(optional(Boolean)) disableEndpoint;\n  @argument(optional(SamlConfigurationModel)) samlConfiguration;\n  @argument(Function) onSave;\n\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  /** @type {import('@ember-data/store').default} */\n  @service store;\n  /** @type {import('client/legacy/services/toastr').default} */\n  @service toastr;\n  /** @type {import('client/legacy/services/saml-flow').default} */\n  @service samlFlow;\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n\n  @tracked certificates = this.args.samlConfiguration?.certificates || [];\n  @tracked loginUrl = this.args.samlConfiguration?.loginUrl || '';\n  @tracked logoutUrl = this.args.samlConfiguration?.logoutUrl || '';\n\n  @action\n  importData() {\n    const input = document.getElementsByClassName('c-manual-input-configuration__file-upload')[0];\n    input.value = null;\n    input.click();\n  }\n\n  @action\n  async onFileChange(event) {\n    const files = Array.from(event.target.files);\n    [this.file] = files;\n    const certificate = await this.getCertificateFromFile(this.file);\n    this.certificates = this.certificates.concat([certificate]);\n  }\n\n  @action\n  deleteCertificate(content) {\n    this.certificates = this.certificates.filter((x) => x !== content);\n  }\n\n  toBase64 = (file) =>\n    waitForPromise(\n      new Promise((resolve, reject) => {\n        const reader = new FileReader();\n        reader.readAsDataURL(file);\n        reader.onload = () => resolve(reader.result);\n        reader.onerror = (error) => reject(error);\n      }),\n    );\n\n  async getCertificateFromFile(file) {\n    const base64File = await this.toBase64(file);\n    const base64StringFile = base64File.split('base64,')[1];\n    return decodeURIComponent(escape(atob(base64StringFile)))\n      .replace(/-----BEGIN CERTIFICATE-----\\s/, '')\n      .replace(/\\s-----END CERTIFICATE-----/, '');\n  }\n\n  @computed('certificates.length', 'loginUrl', 'logoutUrl')\n  get isSaveButtonDisabled() {\n    return !this.certificates?.length || !this.loginUrl;\n  }\n\n  @action\n  cancel(callback) {\n    if (this.args.samlConfiguration) {\n      this.certificates = this.args.samlConfiguration.certificates;\n      this.loginUrl = this.args.samlConfiguration.loginUrl;\n      this.logoutUrl = this.args.samlConfiguration.logoutUrl;\n      this.args.samlConfiguration.rollbackAttributes();\n      callback();\n    } else {\n      this.router.transitionTo(\n        'organization.settings.security.choose-configuration',\n        this.currentOrganization.model.name,\n      );\n    }\n  }\n\n  @action\n  async saveEdit(callback) {\n    this.args.samlConfiguration.certificates = this.certificates;\n    const savePromise = this.args.onSave(this.args.samlConfiguration);\n    callback(savePromise);\n    await savePromise;\n  }\n\n  @computed(\n    'args.samlConfiguration.certificates.length',\n    'args.samlConfiguration.hasDirtyAttributes',\n    'certificates.length',\n  )\n  get disableSaveButton() {\n    return (\n      this.certificates?.length === this.args.samlConfiguration.certificates?.length\n      && !this.args.samlConfiguration.hasDirtyAttributes\n    );\n  }\n\n  @action\n  cancelEdit() {\n    this.certificates = this.args.samlConfiguration.certificates;\n    this.args.samlConfiguration.rollbackAttributes();\n  }\n\n  @computed(\n    'args.samlConfiguration.certificates.length',\n    'args.samlConfiguration.{loginUrl,logoutUrl}',\n    'certificates.{length,loginUrl,logoutUrl}',\n    'loginUrl',\n    'logoutUrl',\n  )\n  get disableCancel() {\n    if (!this.args.samlConfiguration) {\n      return false;\n    }\n    return (\n      this.certificates?.length === this.args.samlConfiguration?.certificates?.length\n      && this.certificates.join(',') === this.args.samlConfiguration.certificates.join(',')\n      && this.loginUrl === this.args.samlConfiguration.loginUrl\n      && this.logoutUrl === this.args.samlConfiguration.logoutUrl\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-manual-input-configuration\\\" ...attributes>\\n  <Shared::BetaLabel\\n    @label=\\\"Login endpoint\\\"\\n    @textClass=\\\"c-manual-input-configuration__description\\\"\\n    class=\\\"c-manual-input-configuration__input-section\\\"\\n    @isRequired={{true}}\\n    data-test-manual-configuration-login\\n  >\\n    <Shared::BetaInput\\n      @placeholder=\\\"e.g: auth.mycompany.com/login\\\"\\n      @value={{this.loginUrl}}\\n      @disabled={{or @disableEndpoint false}}\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Logout endpoint\\\"\\n    @textClass=\\\"c-manual-input-configuration__description\\\"\\n    class=\\\"c-manual-input-configuration__input-section\\\"\\n    data-test-manual-configuration-logout\\n  >\\n    <Shared::BetaInput\\n      @placeholder=\\\"e.g: auth.mycompany.com/logout\\\"\\n      @value={{this.logoutUrl}}\\n      @disabled={{or @disableEndpoint false}}\\n    />\\n  </Shared::BetaLabel>\\n  <div class=\\\"c-manual-input-configuration__description\\\">\\n    Certificate *\\n  </div>\\n  <div class=\\\"c-manual-input-configuration__configuration-card\\\" data-test-configuration-card-manual>\\n    <div class=\\\"c-manual-input-configuration__configuration-card-header\\\">\\n      <p class=\\\"c-manual-input-configuration__configuration-card-certificate\\\">\\n        Certificate\\n      </p>\\n    </div>\\n    {{#if this.certificates}}\\n      {{#each this.certificates as |certificate|}}\\n        <div class=\\\"c-manual-input-configuration__file\\\">\\n          <p class=\\\"c-manual-input-configuration__configuration-card-certificate\\\">\\n            {{substring certificate start=0 end=10}}... ...{{slice certificate start=-10}}\\n          </p>\\n          {{#unless @samlConfiguration.enabled}}\\n            <Shared::Button::BetaButton\\n              @type=\\\"danger-outline\\\"\\n              @text=\\\"Delete\\\"\\n              @action={{fn this.deleteCertificate certificate}}\\n              @async={{false}}\\n              data-test-action=\\\"delete\\\"\\n            />\\n          {{/unless}}\\n        </div>\\n      {{/each}}\\n    {{/if}}\\n    <div class=\\\"c-manual-input-configuration__configuration-card-button\\\">\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @text=\\\"Add a certificate\\\"\\n        @action={{this.importData}}\\n        @async={{false}}\\n        data-test-manual-input-configuration-logout\\n      />\\n    </div>\\n  </div>\\n  {{! template-lint-disable require-input-label }}\\n  <input\\n    class=\\\"c-manual-input-configuration__file-upload\\\"\\n    type=\\\"file\\\"\\n    onChange={{this.onFileChange}}\\n    accept=\\\".pem\\\"\\n  />\\n  {{#unless @samlConfiguration.enabled}}\\n    <SamlConfiguration::TestCancelButtons\\n      @samlConfiguration={{@samlConfiguration}}\\n      @samlConfigurationData={{hash\\n        loginUrl=this.loginUrl\\n        logoutUrl=this.logoutUrl\\n        certificates=this.certificates\\n      }}\\n      @cancel={{this.cancel}}\\n      @disableCancel={{this.disableCancel}}\\n      @isSaveButtonDisabled={{this.isSaveButtonDisabled}}\\n    />\\n  {{/unless}}\\n  {{#if @samlConfiguration.enabled}}\\n    <SamlConfiguration::Options\\n      @samlConfiguration={{@samlConfiguration}}\\n      class=\\\"c-manual-input-configuration__options\\\"\\n      data-test-options\\n    />\\n  {{/if}}\\n  {{#if @samlConfiguration.enabled}}\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @text=\\\"Save\\\"\\n      @action={{this.saveEdit}}\\n      @disabled={{this.disableSaveButton}}\\n      data-test-action=\\\"save edit\\\"\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @text=\\\"Cancel\\\"\\n      @action={{this.cancelEdit}}\\n      @async={{false}}\\n      data-test-action=\\\"cancel edit\\\"\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/saml-configuration/manual/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport SamlConfigurationModel from 'client/data/models/saml-configuration';\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class SamlConfigurationOptionsComponent extends Component {\n  @argument(SamlConfigurationModel) samlConfiguration;\n  @argument(optional(Function)) onChange;\n\n  @action\n  changeOption(value) {\n    this.args.samlConfiguration.allowIdpInitiatedLogin = value;\n\n    if (this.args.onChange) {\n      this.args.onChange(this.args.samlConfiguration);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-saml-configuration-options\\\" ...attributes>\\n  <h2 class=\\\"c-saml-configuration-options__title\\\">Options</h2>\\n\\n  <label class=\\\"c-saml-configuration-options__switch-label\\\">\\n    <span class=\\\"c-saml-configuration-options__switch-container\\\">\\n      <Shared::Form::Toggle\\n        @value={{@samlConfiguration.allowIdpInitiatedLogin}}\\n        @onChange={{this.changeOption}}\\n        class=\\\"c-saml-configuration-options__switch\\\"\\n        data-saml-configuration-options-allowIdpInitiatedLogin-switch\\n      />\\n    </span>\\n\\n    <span class=\\\"c-saml-configuration-options__label-description\\\">\\n      Enable Identity Provider initiated login\\n    </span>\\n  </label>\\n\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"warning\\\"\\n    @contentClass=\\\"c-saml-configuration-options__notification-text\\\"\\n    class=\\\"c-saml-configuration-options__notification\\\"\\n  >\\n    Enabling this option opens the possibility of a\\n    <Shared::Navigation::BetaLinkTo\\n      @type=\\\"warning\\\"\\n      @href=\\\"https://cheatsheetseries.owasp.org/cheatsheets/SAML_Security_Cheat_Sheet.html#unsolicited-response-ie-idp-initiated-sso-considerations-for-service-providers\\\"\\n      @target=\\\"_blank\\\"\\n      @text=\\\"Login CSRF attack\\\"\\n      class=\\\"c-saml-configuration-options__notification-link\\\"\\n    />. Make sure you understand the risks before enabling IdP-Initiated SSO\\n  </Shared::Feedback::Notification::NotificationInApp>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/saml-configuration/options/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport SamlConfigurationModel from 'client/data/models/saml-configuration';\nimport { any, argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class SamlConfigurationTestCancelButtonsComponent extends Component {\n  @argument(any()) samlConfigurationData;\n  @argument(Function) cancel;\n  @argument(optional(Boolean)) isSaveButtonDisabled;\n  @argument(optional(Boolean)) disableCancel;\n  @argument(optional(SamlConfigurationModel)) samlConfiguration;\n\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  /** @type {import('client/legacy/services/organization-service').default} */\n  @service organizationService;\n  /** @type {import('@ember-data/store').default} */\n  @service store;\n  /** @type {import('client/legacy/services/toastr').default} */\n  @service toastr;\n  /** @type {import('client/legacy/services/saml-flow').default} */\n  @service samlFlow;\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n  @service errorHandler;\n\n  toBase64 = (file) =>\n    new Promise((resolve, reject) => {\n      const reader = new FileReader();\n      reader.readAsDataURL(file);\n      reader.onload = () => resolve(reader.result);\n      reader.onerror = (error) => reject(error);\n    });\n\n  @action\n  async saveAndTestConfiguration() {\n    const organization = this.currentOrganization.model;\n    if (this.args.samlConfiguration) {\n      if (this.args.samlConfigurationData.metadataEndpoint) {\n        await this.args.samlConfiguration.set(\n          'metadataEndpoint',\n          this.args.samlConfigurationData.metadataEndpoint,\n        );\n      } else {\n        await this.args.samlConfiguration.setProperties({\n          loginUrl: this.args.samlConfigurationData.loginUrl,\n          logoutUrl: this.args.samlConfigurationData.logoutUrl,\n          certificates: this.args.samlConfigurationData.certificates,\n        });\n      }\n      return this.saveConfiguration(this.args.samlConfiguration, organization.name);\n    }\n    const issuer = this.organizationService.generateEntityId(organization.name);\n    const samlConfiguration = await this.store.createRecord(\n      'samlConfiguration',\n      this.args.samlConfigurationData.metadataFile\n        ? {\n            metadataFile: await this.toBase64(this.args.samlConfigurationData.metadataFile),\n            issuer,\n          }\n        : { ...this.args.samlConfigurationData, issuer },\n    );\n    await samlConfiguration.set(\n      'organization',\n      this.store.peekRecord('organization', organization.id),\n    );\n    return this.saveConfiguration(samlConfiguration, organization.name);\n  }\n\n  /**\n   * @param {{\n   *  samlConfiguration: Array<import('client/app/models/saml-configuration').default>\n   *  organizationName: string;\n   * }} params\n   */\n  @action\n  async saveConfiguration(samlConfiguration, organizationName) {\n    try {\n      await samlConfiguration.save();\n      await this.samlFlow.initiateLogin(organizationName, {\n        destinationUrl: 'organization.settings.security',\n        isTest: true,\n      });\n      return this.toastr.perform('success', 'Your configuration has been saved.');\n    } catch (error) {\n      samlConfiguration.rollbackAttributes();\n      this.errorHandler.handleRequestFailure(\n        error,\n        'An error occurred while saving your configuration',\n      );\n      return this.router.transitionTo('organization.settings.security', organizationName);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-saml-configuration-test-cancel-buttons\\\" ...attributes>\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @text=\\\"Test configuration\\\"\\n    @disabled={{or @isSaveButtonDisabled false}}\\n    @action={{this.saveAndTestConfiguration}}\\n    class=\\\"c-saml-configuration-test-cancel-buttons__test\\\"\\n    data-test-action=\\\"save\\\"\\n  />\\n  <Shared::Button::BetaButton\\n    @type=\\\"secondary\\\"\\n    @text=\\\"Cancel\\\"\\n    @action={{@cancel}}\\n    @disabled={{or @disableCancel false}}\\n    class=\\\"c-saml-configuration-test-cancel-buttons__cancel\\\"\\n    data-test-action=\\\"cancel\\\"\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/saml-configuration/test-cancel-buttons/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { not } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport SamlConfigurationModel from 'client/data/models/saml-configuration';\nimport { argument, optional } from 'client/decorators/argument';\n\nexport default class SamlConfigurationXmlEndpointComponent extends Component {\n  @argument(optional(Boolean)) uploadMetadata;\n  @argument(optional(Boolean)) disableEndpoint;\n  @argument(optional(SamlConfigurationModel)) samlConfiguration;\n  @argument(Function) onSave;\n\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n  @service store;\n  @service toastr;\n  /** @type {import('client/legacy/services/saml-flow').default} */\n  @service samlFlow;\n\n  @tracked file = null;\n  @tracked metadataEndpoint = this.args.samlConfiguration?.metadataEndpoint || '';\n\n  @not('args.samlConfiguration.hasDirtyAttributes') disableSaveCancel;\n\n  @computed('metadataEndpoint')\n  get isAddMetadataButtonDisabled() {\n    return !!this.metadataEndpoint;\n  }\n\n  @computed('file')\n  get isInputDisabled() {\n    return !!this.file;\n  }\n\n  @computed('file', 'metadataEndpoint')\n  get isSaveButtonDisabled() {\n    return !this.file && !this.metadataEndpoint;\n  }\n\n  @action\n  cancel(callback) {\n    if (this.args.samlConfiguration) {\n      this.metadataEndpoint = this.args.samlConfiguration.metadataEndpoint;\n      callback();\n    } else {\n      this.router.transitionTo(\n        'organization.settings.security.choose-configuration',\n        this.currentOrganization.model.name,\n      );\n    }\n  }\n\n  @action\n  onFileChange(event) {\n    const files = Array.from(event.target.files);\n    [this.file] = files;\n  }\n\n  @action\n  importData() {\n    const input = document.getElementsByClassName('c-xml-configuration__file-upload')[0];\n    input.value = null;\n    input.click();\n  }\n\n  @action\n  deleteFile() {\n    this.file = null;\n  }\n\n  @computed('args.samlConfiguration.metadataEndpoint', 'metadataEndpoint')\n  get disableCancel() {\n    if (!this.args.samlConfiguration) {\n      return false;\n    }\n    return this.metadataEndpoint === this.args.samlConfiguration.metadataEndpoint;\n  }\n\n  @action\n  async saveEdit(callback) {\n    const savePromise = this.args.onSave(this.args.samlConfiguration);\n    callback(savePromise);\n    await savePromise;\n  }\n\n  @action\n  cancelEdit() {\n    this.args.samlConfiguration.rollbackAttributes();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-xml-configuration\\\" ...attributes>\\n  {{#if @uploadMetadata}}\\n    <div class=\\\"c-xml-configuration__description\\\">\\n      Upload a metadata XML\\n    </div>\\n    <div class=\\\"c-xml-configuration__configuration-card\\\" data-test-upload-metadata-xml-table>\\n      <div class=\\\"c-xml-configuration__configuration-card-header\\\">\\n        XML\\n      </div>\\n      {{#if this.file}}\\n        <div class=\\\"c-xml-configuration__file\\\">\\n          <div class=\\\"c-xml-configuration__file-name\\\">\\n            {{this.file.name}}\\n          </div>\\n          <div class=\\\"c-xml-configuration__file-delete\\\">\\n            <Shared::Button::BetaButton\\n              @type=\\\"danger-outline\\\"\\n              @text=\\\"Delete\\\"\\n              @action={{this.deleteFile}}\\n              @async={{false}}\\n            />\\n          </div>\\n        </div>\\n      {{/if}}\\n      <div class=\\\"c-xml-configuration__configuration-card-button\\\">\\n        <Shared::Button::BetaButton\\n          @type=\\\"secondary\\\"\\n          @text=\\\"Add a metadata XML\\\"\\n          @action={{this.importData}}\\n          @async={{false}}\\n          @disabled={{this.isAddMetadataButtonDisabled}}\\n          data-test-action=\\\"upload file\\\"\\n        />\\n      </div>\\n    </div>\\n    <div class=\\\"c-xml-configuration__separator\\\" data-test-separator>\\n      <span class=\\\"c-xml-configuration__separator-line\\\"></span>\\n      <p class=\\\"c-xml-configuration__separator-text\\\">\\n        OR\\n      </p>\\n      <span class=\\\"c-xml-configuration__separator-line\\\"></span>\\n    </div>\\n  {{/if}}\\n  <div class=\\\"c-xml-configuration__input-section\\\">\\n    <Shared::BetaLabel\\n      @label=\\\"Metadata XML Endpoint\\\"\\n      @textClass=\\\"c-xml-configuration__description\\\"\\n      class=\\\"c-xml-configuration__input-section\\\"\\n      data-test-metadata-endpoint-label\\n    >\\n      <Shared::BetaInput\\n        @placeholder=\\\"e.g: auth.mycompany.com/file.xml\\\"\\n        @value={{this.metadataEndpoint}}\\n        @disabled={{or @disableEndpoint this.file}}\\n      />\\n      {{#if @disableEndpoint}}\\n        <div class=\\\"c-xml-configuration__disable-message\\\" data-test-disable-message>\\n          In order to update this configuration, disable it and configure a new one.\\n        </div>\\n      {{/if}}\\n    </Shared::BetaLabel>\\n  </div>\\n\\n  {{#if @samlConfiguration.enabled}}\\n    <SamlConfiguration::Options\\n      @samlConfiguration={{@samlConfiguration}}\\n      class=\\\"c-xml-configuration__options\\\"\\n      data-test-options\\n    />\\n\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @text=\\\"Save\\\"\\n      @action={{this.saveEdit}}\\n      @disabled={{this.disableSaveCancel}}\\n      data-test-action=\\\"save edit\\\"\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @text=\\\"Cancel\\\"\\n      @action={{this.cancelEdit}}\\n      @async={{false}}\\n      @disabled={{this.disableSaveCancel}}\\n      data-test-action=\\\"cancel edit\\\"\\n    />\\n  {{else}}\\n    <SamlConfiguration::TestCancelButtons\\n      @samlConfiguration={{@samlConfiguration}}\\n      @isSaveButtonDisabled={{and (not this.metadataEndpoint) (not this.file)}}\\n      @samlConfigurationData={{if\\n        this.metadataEndpoint\\n        (hash metadataEndpoint=this.metadataEndpoint)\\n        (hash metadataFile=this.file)\\n      }}\\n      @cancel={{this.cancel}}\\n      @disableCancel={{this.disableCancel}}\\n    />\\n  {{/if}}\\n  {{! template-lint-disable require-input-label }}\\n  <input\\n    class=\\\"c-xml-configuration__file-upload\\\"\\n    type=\\\"file\\\"\\n    onChange={{this.onFileChange}}\\n    accept=\\\".xml\\\"\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/saml-configuration/xml-endpoint/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { equal } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport Segment from 'client/data/models/segment';\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport { uuidv1 } from 'client/utils/uuid-utils';\n\n@validateArguments\nexport default class SegmentSettingsDetailsComponent extends Component {\n  @service errorHandler;\n  @service lianaFeatures;\n  @service lianaSession;\n  @service router;\n  @service store;\n  @service toastr;\n  @service('shared/capabilities') capabilitiesService;\n  @service('shared/state/user-preference') userPreferenceState;\n  @service('feature/folder') folderFeatureService;\n\n  @argument(Segment) segment;\n  @argument(optional(String)) selectedMode;\n  @argument(Function) onSelectedModeChange;\n  @argument(optional(Function)) onDiscard;\n  @argument(optional(Function)) onNameEditModeChange;\n  @argument(optional(Boolean)) isNameEditMode;\n\n  queryTypes = [\n    { label: 'Simple', value: 'simple' },\n    { label: 'Query', value: 'query' },\n  ];\n\n  @equal('mode', 'query') isLiveQuerySelected;\n\n  @computed(\n    'args.segment.collection.rendering.environment',\n    'capabilitiesService.agentCapabilities.canUseNativeQuery',\n    'lianaFeatures',\n    'lianaSession.currentEnvironment',\n    'model.rendering.environment.id',\n  )\n  get isLiveQuerySupported() {\n    return (\n      this.lianaFeatures.isFeatureCompatible(\n        FeaturesEnum.SegmentLiveQuery,\n        this.lianaSession.currentEnvironment,\n      ) || this.capabilitiesService.agentCapabilities.canUseNativeQuery\n    );\n  }\n\n  get canUseNativeQuery() {\n    return this.capabilitiesService.agentCapabilities.canUseNativeQuery;\n  }\n\n  @computed(\n    'args.segment.connectionName',\n    'capabilitiesService.agentCapabilities.canUseNativeQuery',\n    'nativeQueryConnections',\n  )\n  get isConnectionNameEmpty() {\n    const isValidConnectionName = this.nativeQueryConnections\n      .toArray()\n      .find(({ name }) => name === this.args.segment.connectionName);\n\n    return (\n      this.capabilitiesService.agentCapabilities.canUseNativeQuery\n      && (!isValidConnectionName || !this.args.segment.connectionName)\n    );\n  }\n\n  get nativeQueryConnections() {\n    return this.store.peekAll('native-query-connection');\n  }\n\n  @computed(\n    'args.segment.filter.{isValidData,conditions}',\n    'args.segment.{name,query}',\n    'isConnectionNameEmpty',\n    'mode',\n  )\n  get isValidSegment() {\n    const { segment } = this.args;\n    if (!segment.name) {\n      return false;\n    }\n\n    if (segment.isSmart) {\n      return true;\n    }\n\n    if (this.mode === 'query') {\n      return !!segment.query && !this.isConnectionNameEmpty;\n    }\n\n    if (!segment.filter?.conditions?.length) {\n      return false;\n    }\n\n    return segment.filter?.isValidData;\n  }\n\n  get editorTheme() {\n    return this.userPreferenceState.isDarkTheme ? 'dracula' : 'neo';\n  }\n\n  @computed('args.segment.hasColumnsConfiguration')\n  get hasColumnsConfiguration() {\n    return this.args.segment.hasColumnsConfiguration;\n  }\n\n  set hasColumnsConfiguration(value) {\n    if (value) {\n      const columns = this.args.segment.collection.columns.map((column) =>\n        this.store.createRecord('column', {\n          id: uuidv1(),\n          field: column.field,\n          isVisible: column.isVisible,\n          position: column.position,\n        }),\n      );\n      this.args.segment.set('columns', columns);\n    } else {\n      this.args.segment.set('columns', []);\n    }\n    this.args.segment.set('hasColumnsConfiguration', value);\n  }\n\n  @action\n  handleModeChange(mode) {\n    this.args.onSelectedModeChange(mode);\n    if (mode === 'simple' && !this.args.segment?.filter) {\n      const condition = this.store.createFragment('fragment-condition');\n      const filter = this.store.createFragment('fragment-filter', { conditions: [condition] });\n      this.args.segment.set('filter', filter);\n    } else if (mode === 'query') {\n      this.args.segment.connectionName =\n        this.nativeQueryConnections.length === 1\n          ? this.nativeQueryConnections.firstObject.name\n          : null;\n    }\n  }\n\n  @action\n  createFilter(args) {\n    return this.store.createFragment('fragment-filter', args);\n  }\n\n  @computed('args.segment.filter', 'args.selectedMode')\n  get mode() {\n    if (this.args.selectedMode) return this.args.selectedMode;\n    return this.args.segment?.filter ? 'simple' : 'query';\n  }\n\n  @action\n  async deleteSegment() {\n    const { segment } = this.args;\n\n    try {\n      await segment.destroyRecord();\n      await this.folderFeatureService.removeSegmentFromCollectionSubChildren(segment);\n      this.toastr.perform('success', `Segment ${segment.name} deleted.`);\n      this.router.transitionTo('project.rendering.data.collection.settings.segments');\n    } catch (error) {\n      segment.rollbackAttributes();\n      this.errorHandler.handleRequestFailure(error, 'Segment deletion failed:');\n    }\n  }\n\n  @action\n  async save(callback) {\n    const { segment, onNameEditModeChange } = this.args;\n\n    if (this.mode === 'query') {\n      if (segment.filter !== null) {\n        segment.set('filter', null);\n      }\n    } else if (segment.query !== null) {\n      segment.set('query', null);\n      segment.set('connectionName', null);\n    }\n\n    const isCreation = segment.isNew;\n    const changedAttributes = segment.changedAttributes();\n    const nameHasChanged = 'name' in changedAttributes;\n\n    try {\n      await segment.save();\n\n      if (isCreation) {\n        this.router.transitionTo(\n          'project.rendering.data.collection.settings.segments.details',\n          segment.name,\n        );\n\n        await this.folderFeatureService.addSegmentToCollectionSubChildren(segment);\n      }\n      this.toastr.perform(\n        'success',\n        `Segment ${segment.name} successfully ${isCreation ? 'created' : 'updated'}.`,\n      );\n\n      onNameEditModeChange?.(false);\n      if (nameHasChanged) {\n        const url = this.router.currentURL;\n        this.router.location.replaceURL(\n          `${url.slice(0, url.lastIndexOf('/'))}/${encodeURIComponent(segment.name)}`,\n        );\n      }\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(\n        error,\n        `${segment.name} ${isCreation ? 'creation' : 'update'} failed`,\n      );\n    }\n\n    callback();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaSettingsCard\\n  @entity={{@segment}}\\n  @entityName=\\\"segment\\\"\\n  @save={{this.save}}\\n  @discard={{@onDiscard}}\\n  @isSaveDisabled={{not this.isValidSegment}}\\n  class=\\\"c-segment-settings-details\\\"\\n  data-test-segment-settings-details\\n>\\n  <BetaSettingsCard::Section @title=\\\"Segment Settings\\\">\\n    <div class=\\\"c-segment-settings-details__name-icon\\\">\\n      <Shared::BetaLabel\\n        @label=\\\"Icon\\\"\\n        @for=\\\"icon\\\"\\n        class=\\\"c-segment-settings-details__icon\\\"\\n        data-test-segment-settings-details-icon\\n      >\\n        <:after-label>\\n          <Shared::Feedback::BetaInfoTooltip @tooltipSide=\\\"bottom\\\">\\n            This icon will only be displayed when separated from collection\\n          </Shared::Feedback::BetaInfoTooltip>\\n        </:after-label>\\n        <:default>\\n          <Shared::BetaEmojiPicker\\n            @value={{@segment.icon}}\\n            @onChange={{fn (mut @segment.icon)}}\\n            @placeholder={{@segment.collection.iconOrDefault}}\\n            @popoverFullWidth={{false}}\\n            @withClearButton={{true}}\\n          />\\n        </:default>\\n      </Shared::BetaLabel>\\n\\n      <Form::EditInline\\n        @label=\\\"Name\\\"\\n        @value={{@segment.name}}\\n        @isEditMode={{or @segment.isNew @isNameEditMode}}\\n        @setEditMode={{@onNameEditModeChange}}\\n        @isTitle={{true}}\\n        @isDisabled={{@segment.isSmart}}\\n        data-test-segment-settings-details-name\\n        class=\\\"c-segment-settings-details__name\\\"\\n      />\\n    </div>\\n  </BetaSettingsCard::Section>\\n\\n  <BetaSettingsCard::Section @title=\\\"Segment Filtering\\\">\\n    {{#if @segment.isSmart}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"info\\\"\\n        @canHide={{false}}\\n        @message=\\\"This segment is a Smart Segment. The only way to modify its name and conditions is to edit the specific code you added to customize your Forest Admin integration.\\\"\\n      />\\n    {{else}}\\n      {{#if this.isLiveQuerySupported}}\\n        <Shared::Form::Tabs\\n          @items={{this.queryTypes}}\\n          @selected={{or this.mode this.defaultMode}}\\n          @onSelect={{this.handleModeChange}}\\n        />\\n      {{/if}}\\n\\n      {{#if (eq this.mode \\'simple\\')}}\\n        <BetaFilter::Form\\n          @filter={{@segment.filter}}\\n          @createFilter={{this.createFilter}}\\n          @fields={{@segment.collection.filterableFields}}\\n          @showApply={{false}}\\n          @showDiscard={{true}}\\n          @initAfterClearAll={{true}}\\n          @noPadding={{true}}\\n          @templatingHelper={{@segment.templatingHelper}}\\n        />\\n      {{else if (eq this.mode \\'query\\')}}\\n        {{#if (can \\'access to liveQuery\\')}}\\n          {{#if this.canUseNativeQuery}}\\n            <Shared::BetaLabel\\n              @label=\\\"Native query connection\\\"\\n              @position=\\\"left\\\"\\n              class=\\\"c-segment-settings-details__label\\\"\\n              data-test-chart-form-query-connection\\n            >\\n              <Shared::BetaSelect\\n                @options={{this.nativeQueryConnections}}\\n                @namePath=\\\"name\\\"\\n                @valuePath=\\\"name\\\"\\n                @value={{@segment.connectionName}}\\n                class=\\\"c-segment-settings-details__input\\\"\\n                data-test-chart-form-query-connection-select\\n              />\\n            </Shared::BetaLabel>\\n          {{/if}}\\n          <Shared::BetaLabel @label=\\\"Query\\\">\\n            <Form::AceEditor\\n              @code={{@segment.query}}\\n              @mode=\\\"sql\\\"\\n              @onUpdate={{fn (mut @segment.query)}}\\n            />\\n          </Shared::BetaLabel>\\n        {{else}}\\n          <Preview::PreviewSegmentLiveQuery />\\n        {{/if}}\\n      {{/if}}\\n    {{/if}}\\n  </BetaSettingsCard::Section>\\n\\n  <BetaSettingsCard::Section>\\n    {{#unless (and this.isLiveQuerySelected (cannot \\'access to liveQuery\\'))}}\\n      <div class=\\\"l-segment-settings-details-sort-container\\\">\\n        <Shared::BetaLabel @label=\\\"Sorting field\\\" class=\\\"c-segment-settings-details__sort\\\">\\n          <Shared::BetaSelect\\n            @value={{@segment.defaultSortingField}}\\n            @defaultOption=\\\" \\\"\\n            @options={{@segment.collection.sortingFields}}\\n            @namePath=\\\"displayName\\\"\\n          />\\n        </Shared::BetaLabel>\\n\\n        <Shared::BetaLabel @label=\\\"Order\\\" class=\\\"c-segment-settings-details__order\\\">\\n          <Shared::BetaSelect\\n            @value={{@segment.defaultSortingFieldOrder}}\\n            @defaultOption=\\\" \\\"\\n            @options={{array \\'ascending\\' \\'descending\\'}}\\n          />\\n        </Shared::BetaLabel>\\n      </div>\\n    {{/unless}}\\n\\n    <Shared::BetaLabel\\n      @label=\\\"Independent columns configuration\\\"\\n      @description=\\\"The table view layout of this segment can be configured independently of its parent\\'s collection table view.\\\"\\n      @position=\\\"right\\\"\\n      class=\\\"c-segment-settings-details__columns-configuration\\\"\\n    >\\n      <Form::BetaCheckbox @value={{this.hasColumnsConfiguration}} @defaultValue={{false}} />\\n    </Shared::BetaLabel>\\n  </BetaSettingsCard::Section>\\n\\n  {{#if (and (not @segment.isNew) @segment.isManual)}}\\n    <BetaSettingsCard::Section>\\n      <Button::BetaDeleteButton\\n        @entityName={{@segment.name}}\\n        @description=\\\"You are about to DELETE the segment “{{@segment.name}}”. This operation is irreversible. If you are sure you want to delete this segment,\\\"\\n        @delete={{this.deleteSegment}}\\n      />\\n    </BetaSettingsCard::Section>\\n  {{/if}}\\n</BetaSettingsCard>\\n', { moduleName: 'client/legacy/pods/components/segment-settings-details/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type ActionApprovalModel from 'client/data/models/action-approval';\nimport type ApprovalsFiltersState from 'client/legacy/services/state/approvals/filters';\nimport type ApprovalUIService from 'client/legacy/services/ui/approvals/approval-ui-service';\nimport type NotesUIService from 'client/legacy/services/ui/notes/notes-ui-service';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport RenderingModel from 'client/data/models/rendering';\nimport resizableSideMenu from 'client/decorators/resizable-side-menu';\nimport validateArguments from 'client/decorators/validate';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport { SideMenuItemsEnum } from 'client/utils/last-side-menu-width';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  approval: ActionApprovalModel;\n  rendering: RenderingModel;\n}\n\n@validateArguments\n@resizableSideMenu(SideMenuItemsEnum.Collaboration)\nexport default class SideMenuCollaborationComponent extends Component<Args> {\n  static propTypes = {\n    rendering: PropTypes.instanceOf(RenderingModel).isRequired,\n  };\n\n  @service('state/approvals/filters') approvalsFilters: ApprovalsFiltersState;\n  @service('ui/approvals/approval-ui-service') approvalUIService: ApprovalUIService;\n  @service('ui/notes/notes-ui-service') notesUIService: NotesUIService;\n  @service private router: RouterService;\n\n  private containerElement: HTMLElement | null = null;\n\n  constructor(owner: unknown, properties?: Args) {\n    super(owner, properties);\n\n    this.router.on('routeDidChange', this.handleRouteDidChange);\n\n    void this.notesUIService.loadCounts(this.args.rendering?.id);\n  }\n\n  get queryParamsForCreated() {\n    return {\n      ...this.approvalsFilters.created,\n      page: 1,\n    };\n  }\n\n  get queryParamsForToReview() {\n    return {\n      ...this.approvalsFilters['to-review'],\n      page: 1,\n    };\n  }\n\n  get queryParamsForWarning() {\n    return {\n      ...this.approvalsFilters.warning,\n      page: 1,\n    };\n  }\n\n  get queryParamsForHistory() {\n    return {\n      ...this.approvalsFilters.history,\n      page: 1,\n    };\n  }\n\n  @action\n  handleDidInsert(element?: HTMLElement) {\n    this.containerElement = element || this.containerElement;\n\n    if (this.isDestroying || this.isDestroyed || !this.containerElement) return;\n\n    const activeItem =\n      this.containerElement.querySelector('[data-navigation-beta-side-menu-item-link-active]')\n      || this.containerElement.querySelector('.js-navigation-beta-side-menu-item-link-active');\n\n    if (!activeItem && !this.router.currentRouteName?.includes('inbox')) {\n      const sideMenu = this.containerElement.querySelector<HTMLLinkElement>(\n        '[data-collaboration-side-menu-default] [data-navigation-beta-side-menu-item-link]',\n      );\n      sideMenu?.click();\n    }\n  }\n\n  @action\n  async handleRouteDidChange(transition: Transition) {\n    if (\n      transition.to.name === 'project.rendering.collaboration'\n      || transition.to.name === 'project.rendering.collaboration.index'\n    ) {\n      await waitForNextRunLoop();\n      this.handleDidInsert();\n      void this.notesUIService.loadCounts(this.args.rendering?.id);\n    }\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.router.off('routeDidChange', this.handleRouteDidChange);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::BetaSideMenu\\n  @displayBranding={{true}}\\n  @onSetSideMenuWidth={{this.handleSetSideMenuWidthInStorage}}\\n  @sideMenuWidth={{this.lastSideMenuWidth}}\\n  ...attributes\\n  {{did-insert this.handleDidInsert}}\\n>\\n  {{#let\\n    (or (cannot \\'access to approval\\') @rendering.environment.isDevelopment)\\n    as |isApprovalDisabled|\\n  }}\\n    {{#if (can \\'view collaboration\\')}}\\n      <Navigation::BetaSideMenu::Section @title=\\\"Notes\\\">\\n        <Navigation::BetaSideMenu::Item\\n          @name=\\\"Created\\\"\\n          @icon=\\\"📝\\\"\\n          @route=\\\"project.rendering.collaboration.messages.created\\\"\\n          @shouldReplace={{true}}\\n          @notificationCount={{this.notesUIService.notesCreatedCount}}\\n          data-collaboration-side-menu-default={{isApprovalDisabled}}\\n        >\\n          <:content-right>\\n            <Shared::DataDisplay::NumberBadge\\n              @count={{this.notesUIService.notesCreatedCount}}\\n              @shouldNotify={{false}}\\n            />\\n          </:content-right>\\n        </Navigation::BetaSideMenu::Item>\\n\\n        <Navigation::BetaSideMenu::Item\\n          @name=\\\"Mentions\\\"\\n          @icon=\\\"💬\\\"\\n          @route=\\\"project.rendering.collaboration.messages.mentions\\\"\\n          @shouldReplace={{true}}\\n          @notificationCount={{this.notesUIService.notesMentionedCount}}\\n        >\\n          <:content-right>\\n            <Shared::DataDisplay::NumberBadge\\n              @count={{this.notesUIService.notesMentionedCount}}\\n              @shouldNotify={{false}}\\n            />\\n          </:content-right>\\n        </Navigation::BetaSideMenu::Item>\\n      </Navigation::BetaSideMenu::Section>\\n    {{/if}}\\n\\n    <Navigation::BetaSideMenu::Section\\n      @title=\\\"Approvals\\\"\\n      @tooltip={{(if\\n        @rendering.environment.isDevelopment\\n        \\'Only available in remote/production environments\\'\\n        (if (cannot \\'access to approval\\') \\'Upgrade plan to enjoy approval feature\\')\\n      )}}\\n    >\\n      <Navigation::BetaSideMenu::Item\\n        @name=\\\"Created\\\"\\n        @icon=\\\"☑️\\\"\\n        @route=\\\"project.rendering.collaboration.approvals\\\"\\n        @routeParameters=\\\"created\\\"\\n        @query={{this.queryParamsForCreated}}\\n        @isDisabled={{isApprovalDisabled}}\\n      >\\n        <:content-right>\\n          <Shared::DataDisplay::NumberBadge\\n            @count={{or this.approvalUIService.totalCountCreated 0}}\\n            @shouldNotify={{false}}\\n            @limitCount={{99}}\\n          />\\n        </:content-right>\\n      </Navigation::BetaSideMenu::Item>\\n\\n      <Navigation::BetaSideMenu::Item\\n        @name=\\\"To review\\\"\\n        @icon=\\\"👁️\\\"\\n        @route=\\\"project.rendering.collaboration.approvals\\\"\\n        @routeParameters=\\\"to-review\\\"\\n        @query={{this.queryParamsForToReview}}\\n        @isDisabled={{isApprovalDisabled}}\\n        data-collaboration-side-menu-default={{not isApprovalDisabled}}\\n      >\\n        <:content-right>\\n          <Shared::DataDisplay::NumberBadge\\n            @count={{or this.approvalUIService.totalCountToReview 0}}\\n            {{! We could watch for changes in there to determine warn state }}\\n            @shouldNotify={{true}}\\n            @limitCount={{99}}\\n          />\\n        </:content-right>\\n      </Navigation::BetaSideMenu::Item>\\n\\n      {{#if this.approvalUIService.showWarningTab}}\\n        <Navigation::BetaSideMenu::Item\\n          @name=\\\"Warnings\\\"\\n          @icon=\\\"⚠️\\\"\\n          @route=\\\"project.rendering.collaboration.approvals\\\"\\n          @routeParameters=\\\"warning\\\"\\n          @query={{this.queryParamsForWarning}}\\n          @isDisabled={{isApprovalDisabled}}\\n        >\\n          <:content-right>\\n            <Shared::DataDisplay::NumberBadge\\n              @count={{or this.approvalUIService.totalCountWarning 0}}\\n              @shouldNotify={{true}}\\n              @limitCount={{99}}\\n            />\\n          </:content-right>\\n        </Navigation::BetaSideMenu::Item>\\n\\n      {{/if}}\\n      <Navigation::BetaSideMenu::Item\\n        @name=\\\"History\\\"\\n        @icon=\\\"🕙\\\"\\n        @route=\\\"project.rendering.collaboration.approvals\\\"\\n        @routeParameters=\\\"history\\\"\\n        @query={{this.queryParamsForHistory}}\\n        @isDisabled={{isApprovalDisabled}}\\n      />\\n    </Navigation::BetaSideMenu::Section>\\n  {{/let}}\\n</Navigation::BetaSideMenu>\\n', { moduleName: 'client/legacy/pods/components/side-menu/collaboration/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-side-menu')\nexport default class SideMenuComponent extends Component {\n  propTypes = {\n    displayBranding: PropTypes.bool,\n  };\n\n  didInsertElement(...args) {\n    super.didInsertElement(...args);\n\n    const selectedItemToScrollTo = this.element.getElementsByClassName(\n      'c-side-menu-item--active',\n    )[0];\n    if (selectedItemToScrollTo) {\n      selectedItemToScrollTo.scrollIntoView({ block: 'nearest' });\n    }\n  }\n}\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\n\nimport SchemaUtils from 'client/utils/schema-utils';\n\nexport default class SideMenuIntegrationListComponent extends Component {\n  @computed('fieldsIntegration.length', 'fieldsIntegrationHasMany.length')\n  get hasDetail() {\n    return this.fieldsIntegration?.length > this.fieldsIntegrationHasMany?.length;\n  }\n\n  @computed('integration', 'model.collection.fields.[]')\n  get fieldsIntegration() {\n    return this.model.collection.fields.filter(\n      (field) => field.get('integration') === this.integration,\n    );\n  }\n\n  @computed('fieldsIntegration.[]')\n  get fieldsIntegrationHasMany() {\n    return this.fieldsIntegration.filter((field) => SchemaUtils.isHasMany(field));\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.hasDetail}}\\n  <SideMenu::Item\\n    @name=\\\"Details\\\"\\n    @icon={{this.fieldsIntegration.firstObject.referenceModel.iconOrDefault}}\\n    @linkTarget=\\\"project.rendering.data.collection.list.view-edit.integration\\\"\\n    @linkParam={{array @model.collection.shareableId @model.record.id @integration}}\\n    @segmentId={{@segmentId}}\\n    @size=\\\"small\\\"\\n  />\\n{{/if}}\\n\\n{{#each this.fieldsIntegrationHasMany as |field|}}\\n  <SideMenu::Item\\n    @name={{field.displayName}}\\n    @icon={{field.referenceModel.iconOrDefault}}\\n    @linkTarget=\\\"project.rendering.data.collection.list.view-edit.view-has-many\\\"\\n    @linkParam={{array @model.collection.shareableId @model.record.id field.rowEdit.id}}\\n    @segmentId={{@segmentId}}\\n    @size=\\\"small\\\"\\n  />\\n{{/each}}\\n', { moduleName: 'client/legacy/pods/components/side-menu/integration-list/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { tagName } from '@ember-decorators/component';\n\n@tagName('')\nexport default class SideMenuItemEditComponent extends Component {\n  isSettingsHidden = false;\n  size = null;\n\n  @computed('currentWhenCondition', 'isDisabled', 'isDragging', 'isVisible', 'linkDisabled')\n  get itemEditClasses() {\n    const classes = ['c-side-menu-item-edit'];\n\n    if (this.isDragging) classes.push('c-side-menu-item-edit--dragging');\n    if (!this.isVisible) classes.push('c-side-menu-item-edit--visibility-off');\n    if (this.linkDisabled) classes.push('c-side-menu-item-edit--disabled');\n    if (this.currentWhenCondition) classes.push('c-side-menu-item-edit--active');\n\n    return classes.join(' ');\n  }\n\n  @action\n  onClickIconAction(event) {\n    event.preventDefault();\n    event.stopPropagation();\n    if (this.onClickIcon) {\n      this.onClickIcon();\n    }\n  }\n\n  @action\n  onClickSettingsAction() {\n    this.onClickSettings();\n  }\n\n  @action\n  itemDragStarted() {\n    this.set('isDragging', true);\n  }\n\n  @action\n  itemDragStopped() {\n    this.set('isDragging', false);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#unless @isIconHidden}}\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName={{@iconName}}\\n    class=\\\"c-side-menu-item-edit__icon\\n      {{if @linkDisabled \\'c-side-menu-item-edit__icon--disabled\\'}}\\n      {{unless @iconEditorColor \\'c-side-menu-item-edit__icon--inherited-color\\'}}\\n      \\\"\\n    @size={{@size}}\\n    {{on \\'click\\' (if @linkDisabled (do-nothing-function) @onClickIconAction)}}\\n    data-test-side-menu-item-visible\\n  />\\n{{/unless}}\\n\\n{{#let (concat \\'side-menu-item-edit-content-\\' (generate-guid)) as |tooltipTargetId|}}\\n  <span\\n    id={{tooltipTargetId}}\\n    class=\\\"c-side-menu-item-edit__name\\n      {{if @linkDisabled \\'c-side-menu-item-edit__name--disabled\\'}}\\n      {{if @isIconHidden \\'c-side-menu-item-edit__name--shifted\\'}}\\n      {{if @size (concat \\'c-side-menu-item-edit__name--\\' @size)}}\\\"\\n  >\\n    {{@name}}\\n  </span>\\n  {{#unless @isSettingsHidden}}\\n    <Button::SettingsButton\\n      @action={{@onClickSettings}}\\n      @class=\\\"c-side-menu-item-edit__right-icon\\\"\\n      data-test-side-menu-item-settings\\n    />\\n  {{/unless}}\\n\\n  {{#if (is-text-truncated (concat \\'#\\' tooltipTargetId))}}\\n    <Shared::Feedback::BetaTooltip @targetId={{tooltipTargetId}} @hideDelay={{250}} @side=\\\"right\\\">\\n      {{@name}}\\n    </Shared::Feedback::BetaTooltip>\\n  {{/if}}\\n{{/let}}\\n', { moduleName: 'client/legacy/pods/components/side-menu/item-edit/content/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  {{sortable-item\\n    groupName=@groupName\\n    model=@sortableModel\\n    distance=10\\n    onDragStart=this.itemDragStarted\\n    onDragStop=this.itemDragStopped\\n  }}\\n>\\n  <div class={{this.itemEditClasses}} data-test-side-menu-item={{@name}}>\\n    {{#if @linkTarget}}\\n      <LinkTo\\n        @route={{@linkTarget}}\\n        @models={{get-link-to-models @linkParam}}\\n        @query={{or @query (hash)}}\\n        @current-when={{or @linkCurrentWhen @linkTarget}}\\n        class=\\\"c-side-menu-item-edit__link\\\"\\n        @activeClass=\\\"c-side-menu-item-edit__link--active\\\"\\n        @disabled={{@linkDisabled}}\\n      >\\n        <SideMenu::ItemEdit::Content\\n          @isIconHidden={{@isIconHidden}}\\n          @onClickIconAction={{this.onClickIconAction}}\\n          @size={{@size}}\\n          @iconName={{if @onClickIcon (if @isVisible \\'visibility\\' \\'visibility_off\\') @iconName}}\\n          @linkDisabled={{@linkDisabled}}\\n          @iconEditorColor={{@iconEditorColor}}\\n          @name={{@name}}\\n          @isSettingsHidden={{@isSettingsHidden}}\\n          @onClickSettings={{@onClickSettings}}\\n        />\\n      </LinkTo>\\n    {{else}}\\n      <div\\n        class=\\\"c-side-menu-item-edit__link\\n          {{unless @onClick \\'c-side-menu-item-edit__link--disabled\\'}}\\n          {{if @currentWhenCondition \\'c-side-menu-item-edit__link--active\\'}}\\n          {{if (eq @size \\'small\\') \\'c-side-menu-item-edit__link--small\\'}}\\\"\\n        {{on \\'click\\' @onClick}}\\n        role=\\\"button\\\"\\n      >\\n        <SideMenu::ItemEdit::Content\\n          @isIconHidden={{@isIconHidden}}\\n          @onClickIconAction={{this.onClickIconAction}}\\n          @size={{@size}}\\n          @iconName={{if @isVisible \\'visibility\\' \\'visibility_off\\'}}\\n          @linkDisabled={{@linkDisabled}}\\n          @iconEditorColor={{@iconEditorColor}}\\n          @name={{@name}}\\n          @isSettingsHidden={{@isSettingsHidden}}\\n          @onClickSettings={{@onClickSettings}}\\n        />\\n\\n        {{#if @onClick}}\\n          <Shared::DataDisplay::BetaIcon\\n            @size=\\\"custom\\\"\\n            @iconName=\\\"navigate_next\\\"\\n            class=\\\"c-side-menu-item-edit__right-icon\\\"\\n          />\\n        {{/if}}\\n      </div>\\n    {{/if}}\\n    {{yield}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/side-menu/item-edit/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { classNames } from '@ember-decorators/component';\n\nimport { any, argument, arrayOf, optional, shape } from 'client/decorators/argument';\n\n@classNames('l-side-menu-item-container')\nexport default class SideMenuItemComponent extends Component {\n  @argument(String) name;\n  @argument(optional(String)) icon;\n  @argument(optional(Function)) onClick;\n  @argument(optional(String)) size = null;\n\n  // Used by the mixin\n  @argument(optional(any())) linkParam;\n  @argument(optional(String)) segmentId;\n\n  // If @linkTarget is specifieds, those arguments are used\n  @argument(optional(String)) badge;\n  @argument(optional(Boolean)) hasButton;\n  @argument(optional(Boolean)) hideArrow;\n  @argument(optional(Boolean)) leftSpaced;\n  @argument(optional(Boolean)) isNotificationWarn = false;\n  @argument(optional(Boolean)) linkCurrentWhen;\n  @argument(optional(String)) linkTarget;\n  @argument(optional(Number)) notificationCount;\n\n  // Otherwise those one are used\n  @argument(optional(Boolean)) currentWhenCondition;\n  @argument(optional(Function)) onNameClick;\n  @argument(\n    optional(\n      arrayOf(\n        shape({\n          name: String,\n          action: Function,\n          isDisabled: optional(Boolean),\n        }),\n      ),\n    ),\n  )\n  secondaryActions;\n\n  @computed('notificationCount')\n  get hasNotificationCount() {\n    return this.notificationCount !== null && this.notificationCount !== undefined;\n  }\n\n  get tooltipTargetId() {\n    return `.js-tooltip-target-${this.elementId}`;\n  }\n\n  @computed('name', 'tooltipTargetId')\n  get displayTooltip() {\n    const element = document.getElementById(this.tooltipTargetId);\n    // Display tooltip on truncated name\n    return element.offsetWidth < element.scrollWidth;\n  }\n\n  @computed('currentWhenCondition', 'linkCurrentWhen', 'linkTarget')\n  get currentWhen() {\n    return this.currentWhenCondition || this.linkCurrentWhen || this.linkTarget;\n  }\n\n  @action\n  clickAction() {\n    if (this.onClick) {\n      this.onClick();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @icon}}\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName={{@icon}}\\n    @size={{@size}}\\n    @class=\\\"c-side-menu-item__icon {{if @size (concat \\'c-side-menu-item__icon--\\' @size)}}\\\"\\n  />\\n{{/if}}\\n\\n<span\\n  id={{@tooltipTargetId}}\\n  class=\\\"c-side-menu-item__name\\n    {{if @size (concat \\'c-side-menu-item__name--\\' @size)}}\\n    {{if @onClick \\'c-side-menu-item__name--clickable\\'}}\\\"\\n  title={{@name}}\\n  role=\\\"button\\\"\\n  data-test-side-menu-item-content-link\\n  {{on \\'click\\' (or @onClick (do-nothing-function))}}\\n>\\n  {{@name}}\\n</span>\\n{{#if @displayTooltip}}\\n  <Shared::Feedback::BetaTooltip @targetId={{@tooltipTargetId}} @hideDelay={{250}} @side=\\\"right\\\">\\n    {{@name}}\\n  </Shared::Feedback::BetaTooltip>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/side-menu/item/content/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div {{on \\'click\\' this.clickAction}} data-test-side-menu-item={{@name}} role=\\\"button\\\">\\n  {{#if @linkTarget}}\\n    <LinkTo\\n      @route={{@linkTarget}}\\n      @models={{get-link-to-models @linkParam}}\\n      @query={{or @query (hash)}}\\n      @current-when={{this.currentWhen}}\\n      @activeClass={{if\\n        @hasButton\\n        \\'c-side-menu-item--active-with-button\\'\\n        \\'c-side-menu-item--active\\'\\n      }}\\n      @disabled={{@disabled}}\\n      class=\\\"c-side-menu-item\\n        {{if @hasButton \\'c-side-menu-item--with-button\\' \\'c-side-menu-item--classic\\'}}\\n        {{if @disabled \\'c-side-menu-item--disabled\\'}}\\n        {{if (eq @size \\'small\\') \\'c-side-menu-item--small\\'}}\\\"\\n      data-test-side-menu-item-link\\n    >\\n      <div class=\\\"l-side-menu-item-content-container\\\">\\n        <SideMenu::Item::Content\\n          @size={{@size}}\\n          @icon={{@icon}}\\n          @name={{@name}}\\n          @tooltipTargetId={{this.tooltipTargetId}}\\n          @displayTooltip={{this.displayTooltip}}\\n        />\\n        {{#if this.hasNotificationCount}}\\n          <Shared::DataDisplay::NumberBadge\\n            @count={{this.notificationCount}}\\n            @shouldNotify={{this.isNotificationWarn}}\\n          />\\n        {{else if @badge}}\\n          <span class=\\\"c-side-menu-item__badge\\\">\\n            {{@badge}}\\n          </span>\\n        {{/if}}\\n      </div>\\n    </LinkTo>\\n\\n    {{yield}}\\n  {{else}}\\n    <div\\n      class={{get-classes-with-modifiers\\n        \\'c-side-menu-item\\'\\n        disabled=(not @onClick)\\n        active=@currentWhenCondition\\n        small=(eq @size \\'small\\')\\n        left-spaced=@leftSpaced\\n      }}\\n    >\\n      <div class=\\\"l-side-menu-item-content-container\\\">\\n        <SideMenu::Item::Content\\n          @size={{@size}}\\n          @icon={{@icon}}\\n          @name={{@name}}\\n          @tooltipTargetId={{this.tooltipTargetId}}\\n          @displayTooltip={{this.displayTooltip}}\\n          @onClick={{@onNameClick}}\\n        />\\n\\n        <div class=\\\"l-side-menu-item-right\\\">\\n          {{#if @hoverActionsComponent}}\\n            <Form::Dropdown class=\\\"c-side-menu-item__secondary-actions\\\" as |showDropdown|>\\n              <Shared::DataDisplay::BetaIcon\\n                @iconName=\\\"more_horiz\\\"\\n                @class=\\\"\\n                  c-side-menu-item__secondary-actions-trigger\\n                  {{if showDropdown \\'c-side-menu-item__secondary-actions-trigger--locked\\'}}\\n                \\\"\\n                data-test-side-menu-item-dropdown-trigger\\n              />\\n\\n              {{#if showDropdown}}\\n                <Form::Dropdown::Content\\n                  class=\\\"c-side-menu-item__secondary-actions-menu\\\"\\n                  data-test-side-menu-item-dropdown-menu\\n                >\\n                  {{@hoverActionsComponent}}\\n                </Form::Dropdown::Content>\\n              {{/if}}\\n            </Form::Dropdown>\\n          {{/if}}\\n\\n          {{#if (and @onClick (not @hideArrow))}}\\n            <Shared::DataDisplay::BetaIcon\\n              @size=\\\"custom\\\"\\n              @iconName=\\\"navigate_next\\\"\\n              class=\\\"c-side-menu-item__right-icon\\\"\\n            />\\n          {{/if}}\\n        </div>\\n      </div>\\n\\n      {{yield}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/side-menu/item/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @actionIcon}}\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName={{@actionIcon}}\\n    @size=\\\"tiny\\\"\\n    class=\\\"c-side-menu-section__action-icon\\\"\\n  />\\n{{/if}}\\n<span>\\n  {{@actionName}}\\n</span>\\n', { moduleName: 'client/legacy/pods/components/side-menu/section/action-button/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-side-menu-section\\n    {{if @size (concat \\'c-side-menu-section--\\' @size)}}\\n    {{if @noMargin \\'c-side-menu-section--no-margin\\'}}\\\"\\n  data-test-side-menu-section={{@sectionTitle}}\\n  ...attributes\\n>\\n  {{#if @tooltip}}\\n    <Shared::Feedback::BetaTooltip @side=\\\"right\\\">{{@tooltip}}</Shared::Feedback::BetaTooltip>\\n  {{/if}}\\n  <div\\n    class={{get-classes-with-modifiers\\n      \\'c-side-menu-section__content\\'\\n      no-background=@noBackground\\n      small=(eq @size \\'small\\')\\n    }}\\n  >\\n    {{#unless @isHeaderHidden}}\\n      {{#if @header}}\\n        {{@header}}\\n      {{else}}\\n        <span class=\\\"c-side-menu-section__title\\\">\\n          {{@sectionTitle}}\\n        </span>\\n      {{/if}}\\n      {{#if (and @enableAction (or @isActionAlwaysVisible (get (current-user) \\'editMode\\')))}}\\n        {{#if @action}}\\n          <Shared::Clickable @onClick={{@action}} class=\\\"c-side-menu-section__action\\\">\\n            <SideMenu::Section::ActionButton\\n              @actionIcon={{@actionIcon}}\\n              @actionName={{@actionName}}\\n            />\\n          </Shared::Clickable>\\n        {{else}}\\n          <LinkTo\\n            @route={{@actionTarget}}\\n            @current-when={{@actionTarget}}\\n            @activeClass=\\\"c-side-menu-section__action--active\\\"\\n            class=\\\"c-side-menu-section__action\\n              {{unless @isActionAlwaysVisible \\'c-side-menu-section__action--editor-mode\\'}}\\\"\\n            data-test-side-menu-section-button={{@actionTarget}}\\n          >\\n            <SideMenu::Section::ActionButton\\n              @actionIcon={{@actionIcon}}\\n              @actionName={{@actionName}}\\n            />\\n          </LinkTo>\\n        {{/if}}\\n      {{/if}}\\n    {{/unless}}\\n  </div>\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/side-menu/section/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (cannot \\'access to whiteLabel\\')}}\\n  <p class=\\\"c-side-menu-branding\\\" ...attributes>\\n    Made with\\n    <i class=\\\"material-icons c-side-menu-branding__icon\\\">\\n      favorite\\n    </i>\\n    by Forest Admin\\n  </p>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/side-menu/side-menu-branding/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-side-menu__content\\\">\\n  {{yield}}\\n</div>\\n{{#if @displayBranding}}\\n  <SideMenu::SideMenuBranding />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/side-menu/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class SidePanelComponent extends Component {\n  propTypes = {\n    closeAction: PropTypes.func.isRequired,\n    hideOverlay: PropTypes.bool,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-sidepanel\\\">\\n\\n  <div\\n    class=\\\"c-sidepanel__container\\\"\\n    {{forest-on-click-outside\\n      @closeAction\\n      exceptSelector=(concat\\n        @exceptSelector\\n        \\',.pcr-app,#portal-for-dropdown,#portal-for-modal,#portal-for-widget-modal,#portal-for-chat-mentionables\\'\\n      )\\n      eventType=\\'mousedown\\'\\n    }}\\n  >\\n    <div class=\\\"c-sidepanel__header\\\">\\n      {{@title}}\\n    </div>\\n    <img\\n      {{on \\'click\\' @closeAction}}\\n      class=\\\"c-sidepanel__close-button\\\"\\n      src=\\\"/img/side-panel/icon--time.svg\\\"\\n      alt=\\\"close-button\\\"\\n      role=\\\"button\\\"\\n    />\\n    {{yield}}\\n  </div>\\n\\n</div>\\n\\n{{#unless @hideOverlay}}\\n  <div class=\\\"c-sidepanel__overlay\\\"></div>\\n{{/unless}}\\n', { moduleName: 'client/legacy/pods/components/side-panel/template.hbs' });\n","import { action } from '@ember/object';\nimport { equal, not, readOnly } from '@ember/object/computed';\nimport { next } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport Chart from 'client/data/models/chart';\nimport ViewList from 'client/data/models/view-list';\nimport { argument, oneOfType, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { hashFromObject } from 'client/utils/hash-utils';\nimport { isMac } from 'client/utils/keyboard';\nimport { switchFramework } from 'client/utils/smart-view-editor-utils';\n\n@validateArguments\nexport default class SmartEditorComponent extends Component {\n  @service currentUser;\n  @service eventBus;\n  @service lianaFeatures;\n  @service routeHistory;\n  @service router;\n  @service smartCodeRegister;\n  @service store;\n  @service toastr;\n\n  @argument(oneOfType([ViewList, Chart])) record;\n  @argument(Function) save;\n  @argument(optional(Function)) afterRunCode;\n  @argument(optional(Function)) AutoCompleteHelperClass;\n  @argument(optional(Boolean)) shouldNotRunCodeOnStart;\n  @argument(optional(Boolean)) hideTemplate;\n  @argument(optional(Boolean)) hideComponent;\n  @argument(optional(Boolean)) hideStyle;\n  @argument(optional(Boolean)) hideSettings;\n\n  @tracked currentTab = 'component';\n  @tracked isDisplayingSettings = false;\n  @tracked temporaryRegistryIndex = 0;\n  @tracked runningRecordComponentCodeHash;\n\n  @not('isDisplayingSettings') isDisplayingCode;\n  @equal('currentTab', 'template') isTemplate;\n  @equal('currentTab', 'component') isComponent;\n  @equal('currentTab', 'style') isStyle;\n  @readOnly('args.record.isReact') isReact;\n\n  constructor(...args) {\n    super(...args);\n\n    if (this.args.AutoCompleteHelperClass) {\n      this._autoCompleteHelper = new this.args.AutoCompleteHelperClass(this, this.args.record);\n    }\n\n    if (\n      this.args.record?.registryName\n      && this.args.record?.registryName.length !== this.args.record?.registryNameBase.length\n    ) {\n      this.temporaryRegistryIndex = Number.parseInt(\n        this.args.record.registryName.substring(this.args.record.registryNameBase.length),\n        10,\n      );\n    }\n    if (!this.args.record.allowJavascript) {\n      this.currentTab = 'template';\n    }\n\n    this._sessions = {};\n\n    if (!this.args.shouldNotRunCodeOnStart) {\n      this.runCode();\n    }\n\n    next(() => {\n      this.currentUser.editMode = true;\n    });\n    this.eventBus.on('editModeDeactivated', this, this.exitSmartEditor);\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    if (this.mouseMoveListener) {\n      document.removeEventListener('mousemove', this.mouseMoveListener);\n    }\n    if (this.mouseUpListener) {\n      document.removeEventListener('mouseup', this.mouseUpListener);\n    }\n\n    this.eventBus.off('editModeDeactivated', this, this.exitSmartEditor);\n  }\n\n  get entityName() {\n    return this.args.record instanceof Chart ? 'chart' : 'smart view';\n  }\n\n  get shortcutForPlatform() {\n    return isMac() ? '⌘S' : 'Ctrl+S';\n  }\n\n  get currentCode() {\n    if (this.isTemplate) {\n      return this.args.record.handlebars || '';\n    }\n    if (this.isComponent) {\n      return this.args.record.component || '';\n    }\n    return this.args.record.style || '';\n  }\n\n  set currentCode(value) {\n    if (this.isTemplate) {\n      this.args.record.handlebars = value;\n    } else if (this.isComponent) {\n      this.args.record.component = value;\n    } else {\n      this.args.record.style = value;\n    }\n    return value;\n  }\n\n  get currentMode() {\n    if (this.isTemplate) {\n      return 'handlebars';\n    }\n    if (this.isComponent) {\n      return 'javascript';\n    }\n    return 'css';\n  }\n\n  get currentSession() {\n    const mode = this.currentMode;\n    if (!this._sessions[mode]) {\n      // eslint-disable-next-line ember/no-side-effects\n      this._sessions[mode] = this.createSession(this.currentCode, mode);\n    }\n    return this._sessions[mode];\n  }\n\n  @action\n  initializeEditor(editor, createSession) {\n    this._createSession = createSession;\n\n    const self = this;\n    const addCommand = (name, key, exec) =>\n      editor.commands.addCommand({\n        name,\n        bindKey: {\n          win: `Ctrl-${key}`,\n          mac: `Command-${key}`,\n          sender: 'editor|cli',\n        },\n        exec,\n      });\n\n    addCommand('saveFile', 'S', () => self.runAndSave());\n    addCommand('runFile', 'E', () => self.runCode());\n    addCommand('copyLine', 'C', () => self.copyOrCutLineOrSelection('copy'));\n    addCommand('cutLine', 'X', () => self.copyOrCutLineOrSelection('cut'));\n\n    editor.setSession(this.currentSession);\n\n    this.editor = editor;\n  }\n\n  @action\n  onMouseDown() {\n    this.isResizing = true;\n\n    this.mouseMoveListener = (event) => this.resizeEditor(event);\n    document.addEventListener('mousemove', this.mouseMoveListener);\n    this.mouseUpListener = (event) => this.onMouseUp(event);\n    document.addEventListener('mouseup', this.mouseUpListener);\n  }\n\n  @action\n  autoComplete(editor, session, position, prefix) {\n    return this._autoCompleteHelper.autoComplete(editor, session, position, prefix);\n  }\n\n  @action\n  updateCode(value) {\n    this.currentCode = value;\n  }\n\n  @action\n  selectTab(tab) {\n    this.currentTab = tab;\n    this.isDisplayingSettings = false;\n\n    this.editor.setSession(this.currentSession);\n    this.editor.focus();\n  }\n\n  @action\n  toggleSettingsView() {\n    this.isDisplayingSettings = !this.isDisplayingSettings;\n  }\n\n  onMouseUp() {\n    if (this.mouseMoveListener) {\n      document.removeEventListener('mousemove', this.mouseMoveListener);\n      this.mouseMoveListener = null;\n    }\n    if (this.mouseUpListener) {\n      document.removeEventListener('mouseup', this.mouseUpListener);\n      this.mouseUpListener = null;\n    }\n    this.isResizing = false;\n  }\n\n  resizeEditor(event) {\n    if (event.clientX === 0 && event.clientY === 0) {\n      this.elementRightPosition = null;\n      return;\n    }\n    const [element] = document.getElementsByClassName('js-smart-editor-left-panel');\n    if (event.pageX < 150) {\n      element.style.minWidth = 0;\n      element.style.maxWidth = 0;\n    } else {\n      const widthWindow = window.innerWidth;\n      const percent = (event.pageX / widthWindow) * 100;\n      element.style.minWidth = `${percent}%`;\n      element.style.maxWidth = `${percent}%`;\n    }\n  }\n\n  async _buildTemplate(oldTempComponentName, tempComponentName) {\n    if (this.args.record.handlebars) {\n      await this.smartCodeRegister.unregisterTemplate(oldTempComponentName);\n      await this.smartCodeRegister.registerTemplate(tempComponentName, this.args.record.handlebars);\n    }\n  }\n\n  async _buildStyle(oldTempComponentName, tempComponentName) {\n    if (this.args.record.style) {\n      await this.smartCodeRegister.unregisterStyle(oldTempComponentName);\n      await this.smartCodeRegister.registerStyle(tempComponentName, this.args.record.style);\n    }\n  }\n\n  async _buildComponent(oldTempComponentName, tempComponentName) {\n    if (this.args.record.allowJavascript && this.args.record.component) {\n      await this.smartCodeRegister.unregisterComponent(oldTempComponentName);\n      await this.smartCodeRegister.registerComponent(tempComponentName, this.args.record.component);\n    }\n  }\n\n  get nextTemporaryRegistryName() {\n    return `${this.args.record.registryNameBase}${this.temporaryRegistryIndex + 1}`;\n  }\n\n  get currentTemporaryRegistryName() {\n    return `${this.args.record.registryNameBase}${this.temporaryRegistryIndex}`;\n  }\n\n  get isCurrentTemporaryRegistryNameRunning() {\n    return !!this.runningRecordComponentCodeHash;\n  }\n\n  static getRecordComponentCodeHash(record) {\n    return hashFromObject({\n      templateCode: record.templateCode,\n      component: record.component,\n      style: record.style,\n    });\n  }\n\n  async loadCurrentTemporaryComponent() {\n    await this._buildTemplate(this.currentTemporaryRegistryName, this.nextTemporaryRegistryName);\n    await this._buildStyle(this.currentTemporaryRegistryName, this.nextTemporaryRegistryName);\n    await this._buildComponent(this.currentTemporaryRegistryName, this.nextTemporaryRegistryName);\n\n    this.temporaryRegistryIndex += 1;\n    this.runningRecordComponentCodeHash = SmartEditorComponent.getRecordComponentCodeHash(\n      this.args.record,\n    );\n  }\n\n  get isCurrentRecordRunning() {\n    const currentCode = SmartEditorComponent.getRecordComponentCodeHash(this.args.record);\n    return this.runningRecordComponentCodeHash === currentCode;\n  }\n\n  @action\n  async runCode(callback) {\n    let isCompileSuccessful;\n    try {\n      await this.loadCurrentTemporaryComponent();\n\n      if (this.args.afterRunCode) {\n        this.args.afterRunCode();\n      }\n\n      isCompileSuccessful = true;\n    } catch (error) {\n      console.error(error);\n      this.toastr.perform('error', error.message);\n      isCompileSuccessful = false;\n    }\n\n    if (callback) {\n      callback();\n    }\n\n    return isCompileSuccessful;\n  }\n\n  @action\n  async switchFramework(framework) {\n    switchFramework(this.args.record, framework);\n    this.selectTab('component');\n    this.isDisplayingSettings = true;\n  }\n\n  copyOrCutLineOrSelection(editorAction) {\n    if (this.editor.getSelectedText() && this.editor.getSelectedText().length) {\n      document.execCommand(editorAction);\n    } else {\n      this.editor.selection.selectLine();\n      document.execCommand(editorAction);\n    }\n  }\n\n  async saveAndSetRegistryName() {\n    await this.args.save();\n    this.args.record.registryName = this.currentTemporaryRegistryName;\n  }\n\n  @action\n  async runAndSave(callback) {\n    const isCompileSuccessful = await this.runCode();\n    if (isCompileSuccessful) {\n      await this.saveAndSetRegistryName();\n    }\n\n    if (callback) {\n      callback();\n    }\n\n    return null;\n  }\n\n  createSession(code, mode) {\n    return this._createSession(code, mode, mode !== 'javascript');\n  }\n\n  exitSmartEditor() {\n    const lastRouteVisited = this.routeHistory.getPreviousRoute();\n    const isCollectionSmartViewEditor =\n      this.router.currentRouteName === 'project.rendering.data.collection.list.smart-view-editor';\n\n    // NOTICE: Handle the case where user has refreshed the page in the smart view editor\n    if (isCollectionSmartViewEditor && lastRouteVisited?.routeName === 'start') {\n      this.routeHistory.flushFrom(-1);\n\n      return this.router.transitionTo(\n        'project.rendering.data.collection.settings.views.details',\n        this.router.currentRoute.params.smart_view_name,\n      );\n    }\n\n    if (lastRouteVisited && lastRouteVisited.routeName !== 'start') {\n      return this.router.transitionTo(lastRouteVisited.routeName, ...lastRouteVisited.params, {\n        queryParams: lastRouteVisited.queryParams,\n      });\n    }\n\n    const paths = this.router.currentRouteName.split('.');\n    paths.pop();\n    const previousRoute = paths.join('.');\n    return this.router.transitionTo(previousRoute);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-smart-editor\\\">\\n  <BetaHeader @isBuilder={{true}} @hasSideMenu={{true}}>\\n    <:right-buttons>\\n      <Button::BetaSaveDiscardButtons\\n        @entity={{@record}}\\n        @entityName={{this.entityName}}\\n        @save={{this.runAndSave}}\\n        @discard={{this.runCode}}\\n        @isCreate={{@record.isNew}}\\n        @fullWidth={{false}}\\n        @withMarginBottom={{false}}\\n        @isSaveDisabled={{not @record.hasDirtyAttributes}}\\n        @size=\\\"normal\\\"\\n        @saveText=\\\"Save ({{this.shortcutForPlatform}})\\\"\\n      />\\n      <Shared::Button::BetaButton\\n        @type=\\\"editor\\\"\\n        @text=\\\"Preview\\\"\\n        @iconName=\\\"play_arrow\\\"\\n        @action={{this.runCode}}\\n        @disabled={{this.isCurrentRecordRunning}}\\n        data-test-smart-editor-run\\n      />\\n    </:right-buttons>\\n  </BetaHeader>\\n\\n  <div class=\\\"l-smart-editor-body\\\">\\n    <div class=\\\"l-smart-editor-body__editor js-smart-editor-left-panel\\\">\\n      <div class=\\\"c-smart-editor__tabs\\\">\\n        {{#unless (or @hideTemplate this.isReact)}}\\n          <span\\n            class=\\\"c-navigation-menu__item\\n              {{if (and this.isDisplayingCode this.isTemplate) \\'c-navigation-menu__item--active\\'}}\\\"\\n            {{on \\'click\\' (fn this.selectTab \\'template\\')}}\\n            role=\\\"button\\\"\\n            data-test-smart-editor-template-tab\\n          >\\n            <span class=\\\"c-navigation-menu__item-label\\\">\\n              Template\\n            </span>\\n          </span>\\n        {{/unless}}\\n        {{#unless @hideComponent}}\\n          <span\\n            class=\\\"c-navigation-menu__item\\n              {{if (and this.isDisplayingCode this.isComponent) \\'c-navigation-menu__item--active\\'}}\\\"\\n            {{on \\'click\\' (fn this.selectTab \\'component\\')}}\\n            role=\\\"button\\\"\\n            data-test-smart-editor-component-tab\\n          >\\n            <span class=\\\"c-navigation-menu__item-label\\\">\\n              Component\\n            </span>\\n          </span>\\n        {{/unless}}\\n        {{#unless @hideStyle}}\\n          <span\\n            class=\\\"c-navigation-menu__item\\n              {{if (and this.isDisplayingCode this.isStyle) \\'c-navigation-menu__item--active\\'}}\\\"\\n            {{on \\'click\\' (fn this.selectTab \\'style\\')}}\\n            role=\\\"button\\\"\\n            data-test-smart-editor-style-tab\\n          >\\n            <span class=\\\"c-navigation-menu__item-label\\\">\\n              Style\\n            </span>\\n          </span>\\n        {{/unless}}\\n\\n        <div class=\\\"l-navigation-menu-right-buttons\\\">\\n          {{#unless @hideSettings}}\\n            <i\\n              class=\\\"c-smart-editor__settings-button\\n                {{if this.isDisplayingSettings \\'c-smart-editor__settings-button--active\\'}}\\\"\\n              role=\\\"button\\\"\\n              {{on \\'click\\' this.toggleSettingsView}}\\n              data-test-smart-editor-settings-tab\\n            >\\n              settings\\n            </i>\\n          {{/unless}}\\n        </div>\\n      </div>\\n\\n      {{#if this.isDisplayingSettings}}\\n        <div class=\\\"c-smart-editor__settings\\\">\\n          {{@settings}}\\n        </div>\\n      {{/if}}\\n      <div class=\\\"c-smart-editor__editor-container\\\">\\n        <Form::AceEditor\\n          @code={{this.currentCode}}\\n          @mode={{this.currentMode}}\\n          @useSoftTabs={{true}}\\n          @showInvisibles={{true}}\\n          @enableDefaultAutocompletion={{true}}\\n          @onUpdate={{this.updateCode}}\\n          @onReady={{this.initializeEditor}}\\n          @suggestCompletions={{this.autoComplete}}\\n          @useWorker={{false}}\\n          @editorClass=\\\"c-smart-editor__ace-inner\\\"\\n          class=\\\"c-smart-editor__ace\\\"\\n          data-test-smart-editor\\n        />\\n      </div>\\n    </div>\\n    {{! template-lint-disable no-pointer-down-event-binding }}\\n    <div\\n      class=\\\"c-smart-editor__resizer\\\"\\n      {{on \\'mousedown\\' this.onMouseDown}}\\n      role=\\\"button\\\"\\n      data-test-smart-editor-resizer\\n    >\\n      <div class=\\\"c-smart-editor__resizer-holder\\\">\\n        <span class=\\\"c-smart-editor__resizer-dot\\\"></span>\\n        <span class=\\\"c-smart-editor__resizer-dot\\\"></span>\\n        <span class=\\\"c-smart-editor__resizer-dot\\\"></span>\\n      </div>\\n    </div>\\n\\n    <div class=\\\"l-smart-editor-body__preview\\\">\\n      {{#if this.isCurrentTemporaryRegistryNameRunning}}\\n        {{yield this.currentTemporaryRegistryName}}\\n      {{/if}}\\n    </div>\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/smart-editor/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport ViewList from 'client/data/models/view-list';\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport AutoCompleteSmartViewEditorHelper from 'client/utils/auto-complete-smart-view-helper';\n\n@validateArguments\nexport default class SmartViewEditorWithPreviewComponent extends Component {\n  @argument(ViewList) smartView;\n  @argument(Function) save;\n\n  constructor(...args) {\n    super(...args);\n\n    this.AutoCompleteSmartViewEditorHelper = AutoCompleteSmartViewEditorHelper;\n  }\n}\n","import Component from '@glimmer/component';\n\nimport { TYPES } from 'client/config/smart-view';\n\nexport default class SmartViewEditorWithPreviewSettingsComponent extends Component {\n  optionsSmartViewTypes = TYPES;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<h2 class=\\\"c-smart-editor__settings-title\\\">\\n  Smart View Settings\\n</h2>\\n\\n<Shared::BetaLabel @label=\\\"Number of records displayed\\\" class=\\\"c-smart-editor__settings-label\\\">\\n  <Shared::BetaInput\\n    @type=\\\"number\\\"\\n    @value={{@smartView.recordsPerPage}}\\n    data-test-smart-view-number-of-records\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel @label=\\\"Framework\\\" class=\\\"c-smart-editor__settings-label\\\">\\n  <Shared::BetaSelect\\n    @value={{@smartView.currentFramework}}\\n    @options={{this.optionsSmartViewTypes}}\\n    @namePath=\\\"name\\\"\\n    @valuePath=\\\"value\\\"\\n    @onChange={{@switchFramework}}\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/smart-view-editor-with-preview/settings/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<SmartEditor\\n  @AutoCompleteHelperClass={{this.AutoCompleteSmartViewEditorHelper}}\\n  @hideComponent={{not @smartView.allowJavascript}}\\n  @record={{@smartView}}\\n  @save={{@save}}\\n  @settings={{component\\n    \\'smart-view-editor-with-preview/settings\\'\\n    smartView=@smartView\\n    switchFramework=this.switchFramework\\n  }}\\n  as |tempComponentName|\\n>\\n  <div class=\\\"collectionList__content\\\" data-test-smart-view-container>\\n    <DataDisplay::BetaCollectionList\\n      @componentName={{tempComponentName}}\\n      @hasEditMode={{true}}\\n      @modelToFetch={{@smartView.collection}}\\n      @openCreateRecord={{if\\n        @smartView.collection\\n        (action-link-to\\n          \\'project.rendering.data.collection.list.view-create.details\\'\\n          (array @smartView.collection.shareableId)\\n        )\\n      }}\\n      @smartView={{@smartView}}\\n    />\\n  </div>\\n</SmartEditor>\\n', { moduleName: 'client/legacy/pods/components/smart-view-editor-with-preview/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { not } from '@ember/object/computed';\nimport { guidFor } from '@ember/object/internals';\nimport { cancel, debounce, next } from '@ember/runloop';\nimport { classNameBindings, classNames, tagName } from '@ember-decorators/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('span')\n@classNames('c-typeahead-field')\n@classNameBindings('isWriteEnabled:c-typeahead-field--relative')\n@validateArguments\nexport default class TypeaheadFieldComponent extends Component {\n  static propTypes = {\n    onChange: PropTypes.func,\n    isCrossIconHidden: PropTypes.bool,\n  };\n\n  @tracked lastSearchValue = null;\n  @tracked shouldHideSuggestions = false;\n\n  inputId = guidFor(this);\n  @not('disabled') isWriteEnabled;\n\n  @action\n  handleDidInsert() {\n    // To handle the case when there is an initial value.\n    this.lastSearchValue = this.searchValue;\n  }\n\n  @action\n  async clickSuggestion(suggestion) {\n    this.onValueChange(suggestion);\n\n    if (typeof this.onClickSuggestion === 'function') {\n      await this.onClickSuggestion(suggestion);\n\n      next(() => {\n        this.lastSearchValue = this.searchValue;\n      });\n    } else {\n      this.resetSuggestions();\n    }\n\n    this.shouldHideSuggestions = true;\n  }\n\n  @action\n  suggest() {\n    if (this.lastSearchValue === this.searchValue) return;\n\n    if (this.shouldPreventSearch?.()) {\n      this.set('searchValue', this.lastSearchValue);\n      return;\n    }\n\n    this.lastSearchValue = this.searchValue;\n    // NOTICE: if the search is empty\n    if (!this.searchValue) {\n      if (this.searchDebounced) {\n        cancel(this.searchDebounced);\n        this.set('searchDebounced', null);\n      }\n\n      this.set('isLoading', false);\n      this.onValueChange(null);\n      this.resetSuggestions();\n      this.sendSearchAction('');\n      return;\n    }\n\n    if (this.minLength && this.searchValue?.length < this.minLength) {\n      return;\n    }\n\n    this.set('isLoading', true);\n    this.resetSuggestions();\n    const searchDebounced = debounce(\n      this,\n      this.sendSearchAction,\n      this.searchValue,\n      this.debounceTime || 1000,\n    );\n    this.set('searchDebounced', searchDebounced);\n  }\n\n  @action\n  clear() {\n    if (this.shouldPreventSearch?.()) {\n      return;\n    }\n    this.sendSearchAction('');\n    this.set('searchValue', null);\n\n    this.onValueChange(null);\n    this.set('isLoading', false);\n    this.resetSuggestions();\n  }\n\n  @action\n  hideDropdown() {\n    if (!this.isDestroyed && !this.isDestroying) {\n      this.resetSuggestions();\n    }\n  }\n\n  resetSuggestions() {\n    this.set('suggestions', []);\n    this.onSuggestionsChange?.([]);\n  }\n\n  async sendSearchAction(value) {\n    this.lastSearchValue = value;\n\n    if (!value) {\n      await this.onEmptySearch?.();\n      this.shouldHideSuggestions = false;\n      return;\n    }\n\n    try {\n      await this.search(value);\n      this.shouldHideSuggestions = false;\n    } finally {\n      if (!this.isDestroyed && !this.isDestroying) {\n        this.set('isLoading', false);\n      }\n    }\n  }\n\n  onValueChange(value) {\n    if (value !== this.value) {\n      this.set('value', value);\n\n      if (this.onChange) {\n        this.onChange(this.value);\n      }\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (and @suggestions.length (not this.shouldHideSuggestions))}}\\n  <Form::BetaSelect::DropdownContent\\n    @currentValue={{@value}}\\n    @inputId={{this.inputId}}\\n    @isLoading={{this.isLoading}}\\n    @onHideDropdown={{this.hideDropdown}}\\n    @onSelectValue={{this.clickSuggestion}}\\n    @options={{@suggestions}}\\n    @isOptionsNotMapped={{true}}\\n    @hasCustomItemRenderer={{true}}\\n  >\\n    <:item-renderer as |option|>\\n      {{yield option}}\\n    </:item-renderer>\\n  </Form::BetaSelect::DropdownContent>\\n{{/if}}\\n\\n{{#if this.isLoading}}\\n  <Shared::Feedback::BetaLoader class=\\\"c-typeahead-field__loader\\\" />\\n{{/if}}\\n\\n{{#if (and (not this.isLoading) this.searchValue (not @isCrossIconHidden))}}\\n  <span\\n    role=\\\"button\\\"\\n    class=\\\"c-typeahead-field__clear\\\"\\n    {{on \\'click\\' this.clear}}\\n    data-test-typeahead-field-clear-button\\n  >\\n    <i class=\\\"material-icons\\\">\\n      close\\n    </i>\\n  </span>\\n{{/if}}\\n\\n<Shared::BetaInput\\n  @placeholder={{@inputPlaceholder}}\\n  @value={{this.searchValue}}\\n  @disabled={{@disabled}}\\n  @onChange={{this.suggest}}\\n  @inputId={{this.inputId}}\\n  @inputClass=\\\"c-typeahead-field__input {{if\\n    (and this.searchValue (eq this.searchValue this.value))\\n    \\'c-typeahead-field__input--selected\\'\\n  }} {{@inputClass}}\\\"\\n  @onFocus={{@onFocusInput}}\\n  @iconName={{@iconName}}\\n  @iconClass={{@iconClass}}\\n  @onClickIcon={{@onClickIcon}}\\n  @iconId={{@iconId}}\\n  data-test-typeahead-field-input\\n  {{did-insert this.handleDidInsert}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/typeahead-field/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { PermissionLevelEnum } from 'client/data/models/invitation';\nimport Project from 'client/data/models/project';\nimport Role from 'client/data/models/role';\nimport Team from 'client/data/models/team';\nimport User from 'client/data/models/user';\nimport { argument, arrayOf, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport tryGetBody from 'client/utils/try-get-body';\n\n@validateArguments\nexport default class UserSettingsDetailsComponent extends Component {\n  @service toastr;\n  @service currentUser;\n  @service router;\n  /** @type {import('client/legacy/services/tracker').default} */\n  @service tracker;\n  /** @type {import('app/services/server-fetch').default} */\n  @service serverFetch;\n\n  @argument(User) user;\n  @argument(Project) project;\n  @argument(arrayOf(Team)) availableProjectTeams;\n  @argument(arrayOf(Role)) availableProjectRoles;\n  @argument(optional(Boolean)) readOnly = false;\n\n  permissionLevelsList = Object.values(PermissionLevelEnum);\n\n  get isCurrentUser() {\n    return this.args.user.id === this.currentUser.id;\n  }\n\n  get userDetails() {\n    return [\n      { key: 'Name', value: this.args.user.fullName },\n      { key: 'Email address', value: this.args.user.email },\n      {\n        key: 'Date joined',\n        value: this.args.user.createdAt.toLocaleDateString('en-US', {\n          year: 'numeric',\n          month: 'short',\n          day: 'numeric',\n        }),\n      },\n    ];\n  }\n\n  get sortedRoles() {\n    return this.args.availableProjectRoles.sort((a, b) => a.name?.localeCompare(b.name));\n  }\n\n  // NOTICE: The following computed property calculate the list of teams available for a the user\n  //         (availableTeams = availableProjectTeams - existing user teams)\n  get availableProjectTeamsForUser() {\n    const existingUserTeams = this.args.user.teams.filter((team) => !team.inEditState);\n    return this.args.availableProjectTeams\n      .filter((projectTeam) => !existingUserTeams.mapBy('name').includes(projectTeam.name))\n      .sort((a, b) => a.name?.localeCompare(b.name));\n  }\n\n  get isSaveButtonDisabled() {\n    return !this.args.user.hasDirtyAttributes && !this.args.user.hasDirtyRelationships;\n  }\n\n  get isDiscardButtonVisible() {\n    return (\n      this.args.user.hasDirtyAttributes\n      || this.args.user.hasDirtyRelationships\n      || this.args.user.teams.any((team) => team.inEditState)\n    );\n  }\n\n  get isUserInEveryTeam() {\n    return (\n      this.args.user.teams.filter((team) => !team.isBlocked).length\n      === this.args.availableProjectTeams.length\n    );\n  }\n\n  get isUserInOnlyOneTeam() {\n    return this.args.user.teams.length === 1;\n  }\n\n  resetInEditState() {\n    this.args.user.teams.forEach((team) => {\n      team.set('inEditState', false);\n    });\n    this.args.user.tags.forEach((tag) => {\n      tag.set('inEditState', false);\n    });\n  }\n\n  @action\n  saveChanges(callback) {\n    this.resetInEditState();\n\n    const promise = this.args.user\n      .save()\n      .then(async () => {\n        const { user } = this.args;\n        // We load here the user role permissions if not done yet.\n        if (user.role && !user.role.permissions) {\n          await user.role.reload();\n        }\n        this.resetInEditState();\n        this.toastr.perform('success', 'User successfully updated.');\n      })\n      .catch((reason) => {\n        const message = reason?.errors?.[0]?.detail || 'unexpected error.';\n        this.toastr.perform('error', `${this.args.user.fullName} update failed: ${message}`);\n      });\n\n    callback(promise);\n  }\n\n  @action\n  async removeUser() {\n    try {\n      const response = await this.serverFetch.fetch(\n        `/api/projects/${this.args.project.id}/users/${this.args.user.id}`,\n        {\n          method: 'DELETE',\n        },\n      );\n\n      if (!response.ok) {\n        throw await tryGetBody(response);\n      }\n\n      this.toastr.perform('success', 'User deleted.');\n      await this.router.transitionTo('project.project-settings.users');\n    } catch (reason) {\n      const error = reason?.errors?.[0] || reason;\n\n      this.tracker.captureException(error);\n      const message = error?.detail || 'unexpected error.';\n      console.error(message, error);\n      this.toastr.perform('error', `User deletion failed: ${message}`);\n    }\n  }\n\n  @action\n  goToUsersList() {\n    this.router.transitionTo('project.project-settings.users');\n  }\n\n  @action\n  rollbackChanges() {\n    this.args.user.rollbackAttributes();\n    this.args.user.rollbackRelationships();\n\n    this.resetInEditState();\n  }\n\n  @action\n  addToTeam() {\n    // NOTICE: Since this component is using a proxy to edit the user teams affiliations\n    //         the following code find the first team the user doesn't belongs to and\n    //         duplicates it using it's name to avoid editing user.teams directly\n    const firstTeamAvailable = this.args.availableProjectTeams.find(\n      (projectTeam) => !this.args.user.teams.mapBy('name').includes(projectTeam.name),\n    );\n\n    firstTeamAvailable.set('inEditState', true);\n    this.args.user.teams.pushObject(firstTeamAvailable);\n  }\n\n  @action\n  removeUserTeam(userTeamToRemove) {\n    this.args.user.teams.removeObject(userTeamToRemove);\n  }\n\n  @action\n  editUserTeam(userTeamToEdit) {\n    userTeamToEdit.set('inEditState', true);\n  }\n\n  @action\n  updateTeam(index, newTeam) {\n    this.args.user.teams.replace(index, 1, [newTeam]);\n    newTeam.set('inEditState', true);\n  }\n\n  @action\n  addATag() {\n    this.args.user.get('tags').createFragment();\n    this.args.user.tags.lastObject.set('inEditState', true);\n  }\n\n  @action\n  removeATag(tagToBeRemovedIndex) {\n    this.args.user.tags.removeAt(tagToBeRemovedIndex);\n  }\n\n  @action\n  editATag(tagToBeEdited) {\n    tagToBeEdited.set('inEditState', true);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout @onClose={{this.goToUsersList}}>\\n  <div class=\\\"c-user-settings-details__save-button\\\">\\n    <Button::BetaSaveDiscardButtons\\n      @isSaveDisabled={{this.isSaveButtonDisabled}}\\n      @entity={{@user}}\\n      @save={{this.saveChanges}}\\n      @isDiscardVisible={{this.isDiscardButtonVisible}}\\n      @discard={{this.rollbackChanges}}\\n      data-test-save-discard-buttons\\n    />\\n  </div>\\n\\n  <Shared::BetaSettingsLayout::Section>\\n    {{#if @project.hasScimToken}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"warning\\\"\\n        @canHide={{false}}\\n        @class=\\\"c-environment-settings-details__notification\\\"\\n      >\\n        As you have a third-party provisioning service enabled on this project, changes made here\\n        will not be synchronized with your provider. Any change made directly on the third-party\\n        provisioning service will override these settings.\\n      </Shared::Feedback::Notification::NotificationInApp>\\n    {{/if}}\\n  </Shared::BetaSettingsLayout::Section>\\n\\n  <Shared::BetaSettingsLayout::Section @title=\\\"User details\\\">\\n    <Shared::DataDisplay::BetaDisplayList\\n      @items={{this.userDetails}}\\n      data-test-list-for=\\\"details\\\"\\n      as |userDetailsRow|\\n    >\\n      <div class=\\\"c-user-details__cell-key\\\">\\n        <span class=\\\"c-user-settings-details__cell-text\\\">\\n          {{userDetailsRow.key}}\\n        </span>\\n      </div>\\n      <div class=\\\"c-user-details__cell-value\\\">\\n        <span class=\\\"c-user-settings-details__cell-text\\\">\\n          {{userDetailsRow.value}}\\n        </span>\\n      </div>\\n    </Shared::DataDisplay::BetaDisplayList>\\n  </Shared::BetaSettingsLayout::Section>\\n\\n  <Shared::BetaSettingsLayout::Section @title=\\\"Teams\\\">\\n    <Shared::DataDisplay::BetaDisplayList\\n      @header={{component \\'shared/data-display/beta-display-list/header\\' titles=(array \\'Team\\' \\'\\')}}\\n      @items={{@user.teams}}\\n      @footer={{unless\\n        (or this.isUserInEveryTeam @readOnly)\\n        (component\\n          \\'shared/data-display/beta-display-list/footer\\'\\n          text=\\'Add to a team\\'\\n          iconName=\\'add\\'\\n          onButtonClick=this.addToTeam\\n        )\\n      }}\\n      @noPadding={{true}}\\n      data-test-list-for=\\\"teams\\\"\\n      as |userTeam index|\\n    >\\n      <div\\n        class=\\\"c-user-teams__cell-team {{if userTeam.inEditState \\'c-user-teams__cell-team--edit\\'}}\\\"\\n      >\\n        {{#if userTeam.inEditState}}\\n          <Shared::BetaSelect\\n            @value={{userTeam}}\\n            @options={{this.availableProjectTeamsForUser}}\\n            @namePath=\\\"name\\\"\\n            @class=\\\"c-user-teams__cell-dropdown\\\"\\n            @onChange={{fn this.updateTeam index}}\\n          />\\n        {{else}}\\n          <span class=\\\"c-user-settings-details__cell-text\\\">\\n            {{userTeam.name}}\\n          </span>\\n        {{/if}}\\n      </div>\\n      <div class=\\\"c-user-teams__cell-buttons\\\">\\n        {{#unless (or this.isUserInEveryTeam userTeam.inEditState)}}\\n          <i\\n            class=\\\"material-icons c-user-settings-details__edit-icon\\\"\\n            role=\\\"button\\\"\\n            onClick={{fn this.editUserTeam userTeam}}\\n            data-test-for-button=\\\"edit\\\"\\n          >\\n            create\\n          </i>\\n        {{/unless}}\\n        {{#unless this.isUserInOnlyOneTeam}}\\n          <i\\n            class=\\\"material-icons c-user-settings-details__delete-icon\\\"\\n            role=\\\"button\\\"\\n            onClick={{fn this.removeUserTeam userTeam}}\\n            data-test-for-button=\\\"delete\\\"\\n          >\\n            close\\n          </i>\\n        {{/unless}}\\n      </div>\\n    </Shared::DataDisplay::BetaDisplayList>\\n  </Shared::BetaSettingsLayout::Section>\\n\\n  <Shared::BetaSettingsLayout::Section @title=\\\"User role\\\">\\n    <Shared::BetaLabel @label=\\\"Select a role\\\" class=\\\"c-user-settings-details__role-input\\\">\\n      <Shared::BetaSelect\\n        @defaultOption=\\\"\\\"\\n        @defaultValue={{null}}\\n        @value={{@user.role}}\\n        @options={{this.sortedRoles}}\\n        @namePath=\\\"name\\\"\\n        @disabled={{@readOnly}}\\n      />\\n    </Shared::BetaLabel>\\n  </Shared::BetaSettingsLayout::Section>\\n\\n  <Shared::BetaSettingsLayout::Section @title=\\\"User permissions\\\">\\n    <Shared::BetaLabel\\n      @label=\\\"Select a permission level\\\"\\n      class=\\\"c-user-settings-details__permission-level-input\\\"\\n    >\\n      <Shared::BetaSelect\\n        @value={{@user.permissionLevel}}\\n        @options={{this.permissionLevelsList}}\\n        @capitalizeValues={{true}}\\n        @disabled={{@readOnly}}\\n      />\\n    </Shared::BetaLabel>\\n  </Shared::BetaSettingsLayout::Section>\\n\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"User tags\\\"\\n    @description=\\\"User tags allow you to organize users into cross-functional groups, which can be used with a variety of features (scopes, etc.)\\\"\\n  >\\n    <UserTags\\n      @tags={{@user.tags}}\\n      @addATag={{this.addATag}}\\n      @editATag={{this.editATag}}\\n      @removeATag={{this.removeATag}}\\n      @readOnly={{@readOnly}}\\n    />\\n  </Shared::BetaSettingsLayout::Section>\\n\\n  {{#unless (or this.isCurrentUser @readOnly)}}\\n    <Shared::BetaSettingsLayout::Section\\n      @isDangerZone={{true}}\\n      @description=\\\"Removing this user will remove it permanently from the project.\\\"\\n    >\\n      <Feature::CriticalActionConfirmation::Button\\n        @buttonText=\\\"Remove user\\\"\\n        @entityName={{@user.email}}\\n        @warningMessage=\\\"You are about to remove “{{@user.fullName}}” from this project along with its relations to teams.\\\"\\n        @cancelText=\\\"Cancel\\\"\\n        @onConfirm={{this.removeUser}}\\n        data-test-remove-user\\n      />\\n    </Shared::BetaSettingsLayout::Section>\\n  {{/unless}}\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/components/user-settings-details/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport ApplicationToken from 'client/data/models/application-token';\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class UserSettingsViewApplicationTokensComponent extends Component {\n  @service router;\n\n  @argument(arrayOf(ApplicationToken)) applicationTokens;\n\n  get hasApplicationTokens() {\n    return Boolean(\n      this.args.applicationTokens\n        && this.args.applicationTokens.filter((token) => !token.isNew).length,\n    );\n  }\n\n  @action\n  generateToken() {\n    this.router.transitionTo('user-settings.application-tokens.generate');\n  }\n}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport Component from '@glimmer/component';\n\nimport ApplicationToken from 'client/data/models/application-token';\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class UserSettingsViewApplicationTokensDetailsComponent extends Component {\n  /** @type {import('app/models/application-token').default} */\n  @argument(ApplicationToken) applicationToken;\n\n  /** @type {import('app/services/toastr').default} */\n  @service toastr;\n\n  /** @type {import('@ember/routing/router').default} */\n  @service router;\n\n  get description() {\n    if (this.args.applicationToken.token) {\n      return htmlSafe(`\n        <p>Copy this token into your terminal to authenticate yourself when using a Forest Admin CLI.</p>\n        <p>This token can also be used to authenticate without being prompt by setting the environment variable FOREST_AUTH_TOKEN.</p>\n      `);\n    }\n    return undefined;\n  }\n\n  /**\n   * @returns {Array<{\n   *  name: string;\n   *  value: string;\n   *  type?: 'date'|'copyable';\n   *  warning?: string}\n   * >}\n   */\n  get properties() {\n    return [\n      {\n        name: 'Name',\n        value: this.args.applicationToken.name,\n      },\n      ...(this.args.applicationToken.token\n        ? [\n            {\n              name: 'Access token',\n              value: this.args.applicationToken.token,\n              warning: 'This value is only displayed once and will not be accessible later.',\n              type: 'copyable',\n            },\n          ]\n        : []),\n      {\n        name: 'Created',\n        value: this.args.applicationToken.createdAt,\n        type: 'date',\n      },\n      ...(this.args.applicationToken.lastUsed\n        ? [\n            {\n              name: 'Last used',\n              value: this.args.applicationToken.lastUsed,\n              type: 'date',\n            },\n          ]\n        : [\n            {\n              name: 'Last used',\n              value: 'Never',\n            },\n          ]),\n      ...(this.args.applicationToken.expiresAt\n        ? [\n            {\n              name: 'Expiration',\n              value: this.args.applicationToken.expiresAt,\n              type: 'date',\n            },\n          ]\n        : [\n            {\n              name: 'Expiration',\n              value: 'Never',\n            },\n          ]),\n      {\n        name: 'Organization name',\n        value: this.args.applicationToken.organization?.get('name') || '-',\n      },\n    ];\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    if (\n      !this.args.applicationToken.isDestroying\n      && !this.args.applicationToken.isDestroyed\n      && !this.args.applicationToken.isDeleted\n    ) {\n      this.args.applicationToken.token = undefined;\n    }\n  }\n\n  @action\n  async deleteToken() {\n    try {\n      await this.args.applicationToken.destroyRecord();\n      this.router.transitionTo('user-settings');\n      this.toastr.perform('success', 'The application token has been successfully deleted.');\n    } catch (e) {\n      console.debug(e);\n      this.toastr.perform('error', 'An error occurred when deleting your token.');\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout class=\\\"user-settings-application-tokens-details\\\">\\n  <Shared::BetaSettingsLayout::Section @title=\\\"Token details\\\" @description={{this.description}}>\\n    <Shared::DataDisplay::BetaDisplayList @items={{this.properties}} as |property|>\\n      <div class=\\\"user-settings-application-tokens-details__item\\\">\\n        <span class=\\\"user-settings-application-tokens-details__item__meta\\\">\\n          <span class=\\\"user-settings-application-tokens-details__item__meta__name\\\">\\n            {{property.name}}\\n          </span>\\n        </span>\\n        <span\\n          class=\\\"user-settings-application-tokens-details__item__value\\\"\\n          data-test-property={{property.name}}\\n        >\\n          {{#if (eq property.type \\'date\\')}}\\n            {{moment-from-now property.value locale=\\'en-US\\'}}\\n          {{else if (eq property.type \\'copyable\\')}}\\n            <Shared::BetaInput @copyable={{true}} @readOnly={{true}} @value={{property.value}} />\\n          {{else}}\\n            {{property.value}}\\n          {{/if}}\\n          {{#if property.warning}}\\n            <Shared::Feedback::Notification::NotificationInApp\\n              @state=\\\"warning\\\"\\n              @message={{property.warning}}\\n              @canHide={{false}}\\n              class=\\\"user-settings-application-tokens-details__item__value__warning\\\"\\n            />\\n          {{/if}}\\n        </span>\\n      </div>\\n    </Shared::DataDisplay::BetaDisplayList>\\n  </Shared::BetaSettingsLayout::Section>\\n  <Shared::BetaSettingsLayout::Section\\n    @isDangerZone={{true}}\\n    @description=\\\"Deleting a token will revoke access rights to any application using it\\\"\\n    @dangerClass=\\\"l-general-settings__danger-section\\\"\\n  >\\n    <Feature::CriticalActionConfirmation::Button\\n      @buttonText=\\\"Delete token\\\"\\n      @entityName={{@applicationToken.name}}\\n      @warningMessage=\\\"You are about to revoke access right to any application using the token “{{@applicationToken.name}}”\\\"\\n      @cancelText=\\\"Cancel\\\"\\n      @onConfirm={{this.deleteToken}}\\n      data-test-delete-application-token\\n    />\\n  </Shared::BetaSettingsLayout::Section>\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/components/user-settings-view/application-tokens/details/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport ApplicationToken from 'client/data/models/application-token';\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class UserSettingsViewApplicationTokensGenerateComponent extends Component {\n  @argument(ApplicationToken) applicationToken;\n  @argument(optional(Boolean)) autoGenerate;\n  @argument(Boolean) connectedWithSso;\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n\n  /** @type {import('@ember/routing/router').default} */\n  @service router;\n\n  @tracked\n  hasError;\n\n  /** @public @returns {boolean} */\n  get isInvalidName() {\n    return !this.args.applicationToken.name || !this.args.applicationToken.name.trim();\n  }\n\n  @action\n  /**\n   * @param {() => void} [callback]\n   */\n  async save(callback) {\n    this.hasError = false;\n    try {\n      await this.args.applicationToken.save();\n      this.router.transitionTo(\n        'user-settings.application-tokens.details',\n        this.args.applicationToken,\n      );\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (e) {\n      this.hasError = true;\n    } finally {\n      if (callback) {\n        callback();\n      }\n    }\n  }\n\n  @action\n  async didInsert() {\n    if (this.args.autoGenerate) {\n      await this.save();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout {{did-insert this.didInsert}}>\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"Token details\\\"\\n    @description=\\\"Please enter a name to generate a token.\\\"\\n  >\\n    <Button::BetaSaveDiscardButtons\\n      @entityName=\\\"token\\\"\\n      @isCreate={{true}}\\n      @isSaveDisabled={{this.isInvalidName}}\\n      @isDiscardVisible={{false}}\\n      @save={{this.save}}\\n    />\\n    {{#if this.hasError}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"error\\\"\\n        @message=\\\"An error occurred when creating the token\\\"\\n        @canHide={{false}}\\n        class=\\\"application-token-generate__notification\\\"\\n      />\\n    {{/if}}\\n    <Shared::BetaLabel\\n      @label=\\\"Token name\\\"\\n      class=\\\"application-token-generate__label\\\"\\n      @isRequired={{true}}\\n      data-test-input-for=\\\"token-name\\\"\\n    >\\n      <Shared::BetaInput\\n        @value={{@applicationToken.name}}\\n        @class=\\\"application-token-generate__input\\\"\\n        @state={{if this.isInvalidName undefined \\'success\\'}}\\n      />\\n    </Shared::BetaLabel>\\n    {{#if @connectedWithSso}}\\n      <div class=\\\"application-token-generate__with-sso\\\">\\n        This token will be added to the organization\\n        {{this.currentOrganization.model.name}}\\n      </div>\\n    {{/if}}\\n  </Shared::BetaSettingsLayout::Section>\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/components/user-settings-view/application-tokens/generate/template.hbs' });\n","import { action } from '@ember/object';\nimport { filterBy } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport ApplicationToken from 'client/data/models/application-token';\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class UserSettingsViewApplicationTokensListComponent extends Component {\n  @service router;\n\n  @argument(arrayOf(ApplicationToken)) applicationTokens;\n\n  /** @type {Array<import('app/models/application-token').default} */\n  @filterBy('args.applicationTokens', 'isNew', false) savedApplicationTokens;\n\n  @action\n  transitionToGenerate() {\n    this.router.transitionTo('user-settings.application-tokens.generate');\n  }\n\n  @action\n  transitionToDetails(token) {\n    this.router.transitionTo('user-settings.application-tokens.details', token);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"application-tokens-list-header\\\">\\n  <div class=\\\"application-tokens-list-header__cell\\\">\\n    Token name\\n  </div>\\n  <div class=\\\"application-tokens-list-header__cell application-tokens-list-header__cell--creation\\\">\\n    Creation date\\n  </div>\\n  <div\\n    class=\\\"application-tokens-list-header__cell application-tokens-list-header__cell--expiration\\\"\\n  >\\n    Expiration date\\n  </div>\\n  <div\\n    class=\\\"application-tokens-list-header__cell application-tokens-list-header__cell--organization\\\"\\n  >\\n    Organization name\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/user-settings-view/application-tokens/list/header/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::DataDisplay::BetaDisplayList\\n  @items={{this.savedApplicationTokens}}\\n  @header={{component \\'user-settings-view/application-tokens/list/header\\'}}\\n  @footer={{component\\n    \\'shared/data-display/beta-display-list/footer\\'\\n    text=\\'Generate a new token\\'\\n    iconName=\\'add\\'\\n    onButtonClick=this.transitionToGenerate\\n  }}\\n  @onItemClick={{this.transitionToDetails}}\\n  as |applicationToken|\\n>\\n  <div class=\\\"user-settings-view__application-tokens__list__item\\\">\\n    <span class=\\\"user-settings-view__application-tokens__list__item__name\\\">\\n      {{applicationToken.name}}\\n    </span>\\n    <span class=\\\"user-settings-view__application-tokens__list__item__created-at\\\">\\n      Created\\n      <time\\n        datetime={{moment-format applicationToken.createdAt outputFormat=\\'YYYY-MM-DDTHH:mm:ssZ\\'}}\\n      >\\n        {{moment-from-now applicationToken.createdAt locale=\\'en-US\\'}}\\n      </time>\\n    </span>\\n    <span class=\\\"user-settings-view__application-tokens__list__item__expires-at\\\">\\n      {{#if applicationToken.expiresAt}}\\n        {{#if (is-after applicationToken.expiresAt (now))}}\\n          Expires\\n          <time\\n            datetime={{moment-format\\n              applicationToken.expiresAt\\n              outputFormat=\\'YYYY-MM-DDTHH:mm:ssZ\\'\\n            }}\\n          >\\n            {{moment-from-now applicationToken.expiresAt locale=\\'en-US\\'}}\\n          </time>\\n        {{else}}\\n          Expired\\n          <time\\n            datetime={{moment-format\\n              applicationToken.expiresAt\\n              outputFormat=\\'YYYY-MM-DDTHH:mm:ssZ\\'\\n            }}\\n          >\\n            {{moment-from-now applicationToken.expiresAt locale=\\'en-US\\'}}\\n          </time>\\n        {{/if}}\\n      {{else}}\\n        -\\n      {{/if}}\\n    </span>\\n    <span class=\\\"user-settings-view__application-tokens__list__item__organization\\\">\\n      {{#if applicationToken.organization.name}}\\n        {{applicationToken.organization.name}}\\n      {{else}}\\n        -\\n      {{/if}}\\n    </span>\\n  </div>\\n</Shared::DataDisplay::BetaDisplayList>\\n', { moduleName: 'client/legacy/pods/components/user-settings-view/application-tokens/list/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.hasApplicationTokens}}\\n  <UserSettingsView::ApplicationTokens::List @applicationTokens={{@applicationTokens}} />\\n{{else}}\\n  <span class=\\\"user-settings-view__application-tokens__no-application-tokens\\\">\\n    You have no application token yet.\\n  </span>\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @text=\\\"Generate a token\\\"\\n    @action={{this.generateToken}}\\n    class=\\\"user-settings-view__application-tokens__no-application-tokens__link\\\"\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/user-settings-view/application-tokens/template.hbs' });\n","import { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport ApplicationToken from 'client/data/models/application-token';\nimport UserRecoveryCode from 'client/data/models/user-recovery-code';\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class UserSettingsViewComponent extends Component {\n  @service currentUser;\n\n  @argument(arrayOf(ApplicationToken)) applicationTokens;\n  @argument(arrayOf(UserRecoveryCode)) userRecoveryCodes;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout>\\n  {{#if this.currentUser.model.hasPassword}}\\n    <Shared::BetaSettingsLayout::Section\\n      @title=\\\"Two-factor authentication (2FA)\\\"\\n      @description=\\\"Two-factor authentication adds an additional layer of security to your account by requiring more than just a password to login.\\\"\\n    >\\n      <UserSettingsView::TwoFactorAuthentication @userRecoveryCodes={{@userRecoveryCodes}} />\\n    </Shared::BetaSettingsLayout::Section>\\n    <Shared::ContentSeparator @withSideMargin={{true}} />\\n  {{/if}}\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"Application tokens\\\"\\n    @description=\\\"Application tokens allow you to grant access to Forest CLI without a manual login.\\\"\\n  >\\n    <UserSettingsView::ApplicationTokens @applicationTokens={{@applicationTokens}} />\\n  </Shared::BetaSettingsLayout::Section>\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/components/user-settings-view/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport UserRecoveryCode from 'client/data/models/user-recovery-code';\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class UserSettingsViewTwoFactorAuthenticationComponent extends Component {\n  @service router;\n  @service currentUser;\n  @service recoveryCodesService;\n  @service toastr;\n\n  @argument(arrayOf(UserRecoveryCode))\n  userRecoveryCodes;\n\n  @computed('args.userRecoveryCodes.length')\n  get numberUserRecoveryCodes() {\n    return this.args.userRecoveryCodes.length;\n  }\n\n  @tracked displayConfirmDisable = false;\n\n  @action\n  setupTwoFactorAuthentication() {\n    this.router.transitionTo('user-settings.two-factor-authentication.instructions');\n  }\n\n  @action\n  displayRecoveryCodes() {\n    this.router.transitionTo('user-settings.two-factor-authentication.recovery-codes');\n  }\n\n  @action\n  async generateRecoveryCodes(callback) {\n    try {\n      await this.recoveryCodesService.generateNewRecoveryCodes(false);\n      this.goToRecoveryPage();\n    } catch (error) {\n      this.toastr.perform('error', error);\n    }\n    callback();\n  }\n\n  goToRecoveryPage() {\n    this.router.transitionTo('user-settings.two-factor-authentication.recovery-codes');\n  }\n\n  @action\n  showConfirmDisable(callback) {\n    this.displayConfirmDisable = true;\n    return callback();\n  }\n\n  @action\n  hideConfirmDisable(callback) {\n    this.displayConfirmDisable = false;\n    return callback();\n  }\n}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class UserSettingsViewTwoFactorAuthenticationConfirmDisableComponent extends Component {\n  @service router;\n  @service serverFetch;\n  @service toastr;\n  @service currentUser;\n  @service errorHandler;\n\n  @argument(Function) close;\n\n  @action\n  async disable2fa(callback) {\n    try {\n      await this.serverFetch.fetch(\n        `/api/users/${this.currentUser.model.id}/2fa/disable`,\n        {\n          method: 'PUT',\n          credentials: 'include',\n        },\n        true,\n      );\n      this.toastr.perform('success', '2FA has been disabled');\n\n      this.currentUser.model.set('twoFactorAuthenticationActive', false);\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error, 'Failed to disable 2FA');\n    } finally {\n      this.args.close(callback);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @title=\\\"Disable two-factor authentication?\\\"\\n  @onClose={{@close}}\\n  @contentClass=\\\"two-factor-authentication-confirm-disable\\\"\\n>\\n  <div class=\\\"two-factor-authentication-confirm-disable__body\\\">\\n    <p>\\n      Disabling two-factor authentication will remove an important security layer. Your recovery\\n      codes will be obsolete. Are you sure to continue?\\n    </p>\\n  </div>\\n\\n  <div class=\\\"two-factor-authentication-confirm-disable__footer\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @text=\\\"Cancel\\\"\\n      @action={{@close}}\\n      data-test-2fa-cancel-disable\\n      class=\\\"two-factor-authentication-confirm-disable__footer__button\\\"\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"danger\\\"\\n      @text=\\\"Disable\\\"\\n      @action={{this.disable2fa}}\\n      class=\\\"two-factor-authentication-confirm-disable__footer__button\\\"\\n      data-test-2fa-confirm-disable\\n    />\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/user-settings-view/two-factor-authentication/confirm-disable/template.hbs' });\n","import { computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nexport default class UserSettingsViewTwoFactorAuthenticationInstructionsComponent extends Component {\n  @service assetMap;\n  @service('shared/state/user-preference') userPreferenceState;\n\n  @computed('assetMap', 'userPreferenceState.theme')\n  get instruction1Src() {\n    return this.assetMap.resolve(\n      `/img/two-factor-authentication/2FA-instructions-1-${this.userPreferenceState.theme}.svg`,\n    );\n  }\n\n  @computed('assetMap', 'userPreferenceState.theme')\n  get instruction2Src() {\n    return this.assetMap.resolve(\n      `/img/two-factor-authentication/2FA-instructions-2-${this.userPreferenceState.theme}.svg`,\n    );\n  }\n\n  @computed('assetMap', 'userPreferenceState.theme')\n  get instruction3Src() {\n    return this.assetMap.resolve(\n      `/img/two-factor-authentication/2FA-instructions-3-${this.userPreferenceState.theme}.svg`,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout>\\n  <div class=\\\"two-factor-authentication-instructions\\\">\\n    <div class=\\\"two-factor-authentication-instructions__title\\\">\\n      Enabling Two-factor Authentication\\n    </div>\\n    <div class=\\\"two-factor-authentication-instructions__description\\\">\\n      Two-factor authentication adds an additional layer of security to your account by requiring\\n      more than just a password to log in.\\n    </div>\\n\\n    <div class=\\\"two-factor-authentication-instructions__container\\\">\\n      <div class=\\\"two-factor-authentication-instructions__column\\\">\\n        <img\\n          class=\\\"two-factor-authentication-instructions__instruction\\\"\\n          src={{this.instruction1Src}}\\n          alt=\\\"Login form\\\"\\n        />\\n        <div class=\\\"two-factor-authentication-instructions__instruction\\\">\\n          When you sign in, you\\'ll enter your username and password, as usual.\\n        </div>\\n      </div>\\n      <div class=\\\"two-factor-authentication-instructions__column\\\">\\n        <img\\n          class=\\\"two-factor-authentication-instructions__instruction\\\"\\n          src={{this.instruction2Src}}\\n          alt=\\\"Additional login form for the 2nd factor\\\"\\n        />\\n        <div class=\\\"two-factor-authentication-instructions__instruction\\\">\\n          Then, using a two-factor authentication app, you\\'ll retrieve an additional code to verify\\n          your identity.\\n        </div>\\n      </div>\\n      <div class=\\\"two-factor-authentication-instructions__column\\\">\\n        <img\\n          class=\\\"two-factor-authentication-instructions__instruction\\\"\\n          src={{this.instruction3Src}}\\n          alt=\\\"Forest Admin application\\\"\\n        />\\n        <div class=\\\"two-factor-authentication-instructions__instruction\\\">\\n          Once you enter the code on the website, you\\'ll be logged in.\\n        </div>\\n      </div>\\n    </div>\\n\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @text=\\\"Set up two-factor authentication\\\"\\n      @action={{route-action \\'transitionToSetup\\'}}\\n      class=\\\"two-factor-authentication-instructions__button\\\"\\n    />\\n  </div>\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/components/user-settings-view/two-factor-authentication/instructions/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport UserRecoveryCode from 'client/data/models/user-recovery-code';\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class UserSettingsViewTwoFactorAuthenticationRecoveryCodesComponent extends Component {\n  /** @type {import('client/legacy/services/clipboard').default} */\n  @service clipboard;\n  /** @type {import('client/legacy/services/download').default} */\n  @service('download') downloadService;\n  @service recoveryCodesService;\n\n  @argument(arrayOf(UserRecoveryCode))\n  userRecoveryCodes;\n\n  @argument(Function)\n  generateNewRecoveryCodes;\n\n  @computed('args.userRecoveryCodes.[]', 'recoveryCodesService')\n  get formattedCodes() {\n    return this.recoveryCodesService.formattedCodes(this.args.userRecoveryCodes);\n  }\n\n  @tracked canContinue = false;\n\n  @action\n  async copy(callback) {\n    this.canContinue = true;\n    await this.clipboard.copyToClipboard(this.formattedCodes.join('\\n'));\n    callback();\n  }\n\n  @action\n  download(callback) {\n    this.canContinue = true;\n    this.downloadService.downloadContentAsFile(\n      this.formattedCodes.join('\\n'),\n      'text/plain',\n      'recovery-codes.txt',\n    );\n    callback();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"recovery-codes\\\">\\n  <div class=\\\"recovery-codes__header--text\\\">\\n    <div class=\\\"recovery-codes__header--text__title\\\">\\n      Recovery codes\\n    </div>\\n    <div class=\\\"recovery-codes__header--text__description\\\">\\n      Recovery codes are used to access your account in the event you cannot receive two-factor\\n      authentication codes.\\n    </div>\\n  </div>\\n  <div class=\\\"recovery-codes__body\\\">\\n    <ul class=\\\"recovery-codes__body__recovery-codes\\\">\\n      {{#each this.formattedCodes as |code|}}\\n        <li>\\n          {{~code~}}\\n        </li>\\n      {{/each}}\\n    </ul>\\n\\n    <div class=\\\"recovery-codes__body__actions\\\">\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @text=\\\"Download\\\"\\n        @iconName=\\\"get_app\\\"\\n        @isSubmittable={{false}}\\n        @action={{this.download}}\\n        data-test-name=\\\"download\\\"\\n      />\\n\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @text=\\\"Copy\\\"\\n        @iconName=\\\"content_copy\\\"\\n        @isSubmittable={{false}}\\n        @action={{this.copy}}\\n        data-test-name=\\\"copy\\\"\\n      />\\n    </div>\\n\\n    <div class=\\\"recovery-codes__body__advice\\\">\\n      <p>\\n        <strong>\\n          Treat your recovery codes with the same level of attention as you would with your\\n          password!\\n        </strong>\\n      </p>\\n      <p>\\n        We recommend saving them with a password manager or a secured note.\\n      </p>\\n    </div>\\n    <div class=\\\"recovery-codes__body__title\\\">\\n      Generate new recovery codes\\n    </div>\\n    <div class=\\\"recovery-codes__body__description\\\">\\n      When you generate new recovery codes, you must download or print the new codes. Your old codes\\n      won\\'t work anymore.\\n    </div>\\n    <div class=\\\"recovery-codes__body__button\\\">\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @text=\\\"Generate new codes\\\"\\n        @action={{@generateNewRecoveryCodes}}\\n        data-test-name=\\\"generate new codes\\\"\\n      />\\n    </div>\\n  </div>\\n\\n  <div class=\\\"recovery-codes__footer\\\">\\n    <Shared::Navigation::BetaLinkTo\\n      @type=\\\"primary\\\"\\n      @text=\\\"Back to settings\\\"\\n      @routeName=\\\"user-settings\\\"\\n      @size=\\\"small\\\"\\n      @noPadding={{true}}\\n      data-test-link=\\\"back-settings-link\\\"\\n    />\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/user-settings-view/two-factor-authentication/recovery-codes/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument, arrayOf, shape } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class UserSettingsViewTwoFactorAuthenticationSetupComponent extends Component {\n  /** @type {import('@ember/routing/router').default} */\n  @service router;\n  @service serverFetch;\n  @service toastr;\n  @service currentUser;\n  @service errorHandler;\n\n  @argument(\n    shape({\n      generatedQrCode: String,\n      recoveryCodes: arrayOf(Object),\n    }),\n  )\n  registration;\n\n  @tracked isRecoveryCodesStep = true;\n  @tracked timeBasedOneTimePassword = null;\n  @tracked hasError = false;\n\n  @action\n  showNextStep(callback) {\n    this.isRecoveryCodesStep = false;\n    callback();\n  }\n\n  @action\n  async confirmRegistration(callback) {\n    try {\n      await this.serverFetch.fetch(\n        `/api/users/${this.currentUser.get('id')}/2fa/confirm-registration`,\n        {\n          method: 'POST',\n          credentials: 'include',\n          body: JSON.stringify({ timeBasedOneTimePassword: this.timeBasedOneTimePassword }),\n        },\n        true,\n      );\n\n      this.toastr.perform('success', '2FA has been enabled');\n\n      this.currentUser.model.set('twoFactorAuthenticationActive', true);\n      this.router.transitionTo('user-settings');\n    } catch (error) {\n      this.hasError = true;\n      this.timeBasedOneTimePassword = null;\n      this.errorHandler.handleRequestFailure(error, 'Unable to confirm 2FA registration');\n    } finally {\n      callback();\n    }\n  }\n}\n","import { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class UserSettingsViewTwoFactorAuthenticationSetupRecoveryCodesComponent extends Component {\n  /** @type {import('client/legacy/services/clipboard').default} */\n  @service clipboard;\n  /** @type {import('client/legacy/services/download').default} */\n  @service('download') downloadService;\n  @service recoveryCodesService;\n\n  @argument(arrayOf(Object))\n  recoveryCodes;\n\n  @argument(Function)\n  next;\n\n  @computed('args.recoveryCodes', 'recoveryCodesService')\n  get formattedCodes() {\n    return this.recoveryCodesService.formattedCodes(this.args.recoveryCodes);\n  }\n\n  @tracked canContinue = false;\n\n  @action\n  async copy(callback) {\n    this.canContinue = true;\n    await this.clipboard.copyToClipboard(this.formattedCodes.join('\\n'));\n    callback();\n  }\n\n  @action\n  download(callback) {\n    this.canContinue = true;\n    this.downloadService.downloadContentAsFile(\n      this.formattedCodes.join('\\n'),\n      'text/plain',\n      'recovery-codes.txt',\n    );\n    callback();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"two-factor-authentication-setup\\\">\\n  <div class=\\\"two-factor-authentication-setup__header\\\">\\n    <div class=\\\"two-factor-authentication-setup__header--step\\\">\\n      <div class=\\\"two-factor-authentication-setup__header--step__circle\\\">\\n        <span class=\\\"two-factor-authentication-setup__header--step__count\\\">\\n          1\\n        </span>\\n      </div>\\n    </div>\\n    <div class=\\\"two-factor-authentication-setup__header--text\\\">\\n      <div class=\\\"two-factor-authentication-setup__header--text__title\\\">\\n        Recovery codes\\n      </div>\\n      <div class=\\\"two-factor-authentication-setup__header--text__description\\\">\\n        Recovery codes are used to access your account in the event you cannot receive two-factor\\n        authentication codes.\\n      </div>\\n    </div>\\n  </div>\\n  <div class=\\\"two-factor-authentication-setup__body\\\">\\n    <ul class=\\\"two-factor-authentication-setup__body__recovery-codes\\\">\\n      {{#each this.formattedCodes as |code|}}\\n        <li>\\n          {{code}}\\n        </li>\\n      {{/each}}\\n    </ul>\\n\\n    <div class=\\\"two-factor-authentication-setup__body__actions\\\">\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @text=\\\"Download\\\"\\n        @iconName=\\\"get_app\\\"\\n        @isSubmittable={{false}}\\n        @action={{this.download}}\\n        data-test-name=\\\"download\\\"\\n      />\\n\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @text=\\\"Copy\\\"\\n        @iconName=\\\"content_copy\\\"\\n        @isSubmittable={{false}}\\n        @action={{this.copy}}\\n        data-test-name=\\\"copy\\\"\\n      />\\n    </div>\\n\\n    <div class=\\\"two-factor-authentication-setup__body__advice\\\">\\n      <p>\\n        <strong>\\n          Treat your recovery codes with the same level of attention as you would with your\\n          password!\\n        </strong>\\n      </p>\\n      <p>\\n        We recommend saving them with a password manager or a secured note.\\n      </p>\\n    </div>\\n  </div>\\n\\n  <div class=\\\"two-factor-authentication-setup__footer\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @text=\\\"Next\\\"\\n      @disabled={{not this.canContinue}}\\n      @action={{@next}}\\n      data-test-name=\\\"next\\\"\\n    />\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/user-settings-view/two-factor-authentication/setup/recovery-codes/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout>\\n  {{#if this.isRecoveryCodesStep}}\\n    <UserSettingsView::TwoFactorAuthentication::Setup::RecoveryCodes\\n      @recoveryCodes={{@registration.recoveryCodes}}\\n      @next={{this.showNextStep}}\\n    />\\n  {{else}}\\n    <form class=\\\"two-factor-authentication-setup\\\">\\n      <div class=\\\"two-factor-authentication-setup__header\\\">\\n        <div class=\\\"two-factor-authentication-setup__header--step\\\">\\n          <div class=\\\"two-factor-authentication-setup__header--step__circle\\\">\\n            <span class=\\\"two-factor-authentication-setup__header--step__count\\\">\\n              2\\n            </span>\\n          </div>\\n        </div>\\n        <div class=\\\"two-factor-authentication-setup__header--text\\\">\\n          <div class=\\\"two-factor-authentication-setup__header--text__title\\\">\\n            Scan this QR code with your app\\n          </div>\\n          <div class=\\\"two-factor-authentication-setup__header--text__description\\\">\\n            Scan the image below with the two-factor authentication app on your phone.\\n          </div>\\n        </div>\\n      </div>\\n      <div class=\\\"two-factor-authentication-setup__body\\\">\\n        <div class=\\\"two-factor-authentication-setup__body--qrcode-container\\\">\\n          <img\\n            src={{@registration.generatedQrCode}}\\n            class=\\\"two-factor-authentication-setup__body--qrcode-container__qrcode\\\"\\n            alt=\\\"Two-factor authentication QR code\\\"\\n          />\\n        </div>\\n        <div class=\\\"two-factor-authentication-setup__body--confirm\\\">\\n          <div class=\\\"two-factor-authentication-setup__body--confirm__label\\\">\\n            Enter the six-digit code from the application\\n          </div>\\n          <Shared::BetaInput\\n            @type=\\\"text\\\"\\n            @kindClassName=\\\"two-factor-authentication-setup__body--confirm__input\\\"\\n            @placeholder=\\\"123456\\\"\\n            @value={{this.timeBasedOneTimePassword}}\\n            @maxLength={{6}}\\n            @state={{if (eq this.hasError true) \\'error\\'}}\\n          />\\n          {{#if this.hasError}}\\n            <p class=\\\"two-factor-authentication-setup__body--confirm__error\\\">\\n              Supplied two-factor authentication code is invalid.\\n            </p>\\n          {{/if}}\\n          <Shared::Button::BetaButton\\n            @type=\\\"primary\\\"\\n            @text=\\\"Enable two-factor authentication\\\"\\n            @disabled={{not (eq this.timeBasedOneTimePassword.length 6)}}\\n            @action={{this.confirmRegistration}}\\n            @buttonType=\\\"submit\\\"\\n            class=\\\"two-factor-authentication-setup__body--confirm__button\\\"\\n          />\\n        </div>\\n      </div>\\n    </form>\\n  {{/if}}\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/components/user-settings-view/two-factor-authentication/setup/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.currentUser.model.twoFactorAuthenticationActive}}\\n  <div class=\\\"two-factor-authentication\\\">\\n    <Shared::DataDisplay::BetaIcon\\n      @class=\\\"two-factor-authentication__check-icon\\\"\\n      @iconName=\\\"check_circle\\\"\\n    />\\n    <p class=\\\"two-factor-authentication__state\\\">\\n      Two-factor authentication is currently\\n      <strong>\\n        enabled.\\n      </strong>\\n    </p>\\n    <Shared::Button::BetaButton\\n      @type=\\\"danger-outline\\\"\\n      @size=\\\"small\\\"\\n      @text=\\\"Disable two-factor authentication\\\"\\n      @action={{this.showConfirmDisable}}\\n      class=\\\"two-factor-authentication__disable-button\\\"\\n    />\\n  </div>\\n  <Shared::ContentSeparator />\\n  {{#if this.numberUserRecoveryCodes}}\\n    <div class=\\\"two-factor-authentication__is-available\\\">\\n      <Shared::DataDisplay::BetaIcon\\n        @class=\\\"two-factor-authentication__check-icon\\\"\\n        @iconName=\\\"check_circle\\\"\\n      />\\n      <p class=\\\"two-factor-authentication__state\\\">\\n        You have\\n        <span class=\\\"two-factor-authentication__recovery-code__bold\\\">\\n          {{this.numberUserRecoveryCodes}}\\n          recovery codes available\\n        </span>\\n        for use.\\n      </p>\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @text=\\\"View codes\\\"\\n        @action={{this.displayRecoveryCodes}}\\n        class=\\\"two-factor-authentication__view-codes\\\"\\n        data-test-name=\\\"view\\\"\\n      />\\n    </div>\\n  {{else}}\\n    <div class=\\\"two-factor-authentication__recovery-code\\\">\\n      <Shared::DataDisplay::BetaIcon\\n        @class=\\\"two-factor-authentication__danger-icon\\\"\\n        @iconName=\\\"warning\\\"\\n      />\\n      <p class=\\\"two-factor-authentication\\\">\\n        You don\\'t have recovery codes anymore\\n      </p>\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @text=\\\"Generate new recovery codes\\\"\\n        @action={{this.generateRecoveryCodes}}\\n        class=\\\"two-factor-authentication__view-codes\\\"\\n        data-test-name=\\\"generate\\\"\\n      />\\n    </div>\\n  {{/if}}\\n{{else}}\\n  <span class=\\\"two-factor-authentication__disabled\\\">\\n    You have not setup a two-factor authentication yet.\\n  </span>\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @text=\\\"Enable two-factor authentication\\\"\\n    @action={{this.setupTwoFactorAuthentication}}\\n    class=\\\"two-factor-authentication__disabled__link\\\"\\n  />\\n{{/if}}\\n{{#if this.displayConfirmDisable}}\\n  <UserSettingsView::TwoFactorAuthentication::ConfirmDisable @close={{this.hideConfirmDisable}} />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/user-settings-view/two-factor-authentication/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::DataDisplay::BetaDisplayList\\n  @header={{component\\n    \\'shared/data-display/beta-display-list/header\\'\\n    titles=(array \\'Tag key\\' \\'Tag value\\' \\'\\')\\n  }}\\n  @items={{@tags}}\\n  @footer={{component\\n    \\'shared/data-display/beta-display-list/footer\\'\\n    text=\\'Add a tag\\'\\n    iconName=\\'add\\'\\n    onButtonClick=@addATag\\n  }}\\n  @noPadding={{true}}\\n  data-test-list-for=\\\"tags\\\"\\n  as |userTag index|\\n>\\n  <div class=\\\"c-user-tags__cell-key {{if userTag.inEditState \\'c-user-tags__cell-key--edit\\'}}\\\">\\n    {{#if userTag.inEditState}}\\n      <Shared::BetaInput\\n        @value={{userTag.key}}\\n        @placeholder=\\\"key\\\"\\n        @state={{if (eq userTag.key \\'\\') \\'error\\'}}\\n        @autofocus={{true}}\\n        @class=\\\"c-user-tags__cell-input\\\"\\n        data-test-for-input=\\\"key\\\"\\n      />\\n    {{else}}\\n      <span class=\\\"c-user-settings-details__cell-text\\\" data-test-for-span=\\\"key\\\">\\n        {{userTag.key}}\\n      </span>\\n    {{/if}}\\n  </div>\\n  <div class=\\\"c-user-tags__cell-value {{if userTag.inEditState \\'c-user-tags__cell-value--edit\\'}}\\\">\\n    {{#if userTag.inEditState}}\\n      <Shared::BetaInput\\n        @value={{userTag.value}}\\n        @placeholder=\\\"value\\\"\\n        @state={{if (eq userTag.value \\'\\') \\'error\\'}}\\n        @class=\\\"c-user-tags__cell-input\\\"\\n        data-test-for-input=\\\"value\\\"\\n      />\\n    {{else}}\\n      <span class=\\\"c-user-settings-details__cell-text\\\" data-test-for-span=\\\"value\\\">\\n        {{userTag.value}}\\n      </span>\\n    {{/if}}\\n  </div>\\n  <div class=\\\"c-user-tags__cell-buttons\\\">\\n    {{#unless userTag.inEditState}}\\n      <i\\n        {{on \\'click\\' (fn @editATag userTag)}}\\n        class=\\\"material-icons c-user-settings-details__edit-icon\\\"\\n        role=\\\"button\\\"\\n        data-test-for-button=\\\"edit\\\"\\n      >\\n        create\\n      </i>\\n    {{/unless}}\\n    <i\\n      {{on \\'click\\' (fn @removeATag index)}}\\n      class=\\\"material-icons c-user-settings-details__delete-icon\\\"\\n      role=\\\"button\\\"\\n      data-test-for-button=\\\"delete\\\"\\n    >\\n      close\\n    </i>\\n  </div>\\n</Shared::DataDisplay::BetaDisplayList>\\n', { moduleName: 'client/legacy/pods/components/user-tags/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport UserInvitationProject from 'client/data/models/user-invitation-project';\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class UsersSettingsAddTagModalComponent extends Component {\n  @argument(arrayOf(UserInvitationProject)) userInvitations;\n  @argument(Function) onClose;\n  @argument(Function) onAddTag;\n\n  @tracked key = null;\n  @tracked value = null;\n\n  get isUpdateDisabled() {\n    return !this.key || !this.value;\n  }\n\n  @action\n  addTag(callback) {\n    if (!this.isUpdateDisabled) {\n      callback(\n        this.args.onAddTag({\n          tags: [{ key: this.key, value: this.value }],\n          userInvitations: this.args.userInvitations,\n        }),\n      );\n    } else {\n      callback(false);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @title=\\\"Add tag\\\"\\n  @onClose={{@onClose}}\\n  @contentClass=\\\"c-users-settings-add-tag-modal\\\"\\n>\\n  <div class=\\\"c-users-settings-add-tag-modal__content\\\">\\n    <p class=\\\"c-users-settings-add-tag-modal__explanation\\\">\\n      Add a tag to the selected\\n      <strong>\\n        {{#if (eq @userInvitations.length 1)}}\\n          1 user\\n        {{else}}\\n          {{@userInvitations.length}}\\n          users\\n        {{/if}}\\n      </strong>\\n    </p>\\n\\n    <div class=\\\"c-users-settings-add-tag-modal__fields\\\">\\n      <Shared::BetaLabel @label=\\\"Key\\\" class=\\\"c-users-settings-add-tag-modal__label\\\">\\n        <Shared::BetaInput\\n          @value={{this.key}}\\n          @placeholder=\\\"Key\\\"\\n          class=\\\"c-users-settings-add-tag-modal__input\\\"\\n          data-test-key-input\\n        />\\n      </Shared::BetaLabel>\\n      <Shared::BetaLabel @label=\\\"Value\\\" class=\\\"c-users-settings-add-tag-modal__label\\\">\\n        <Shared::BetaInput\\n          @value={{this.value}}\\n          @placeholder=\\\"Value\\\"\\n          class=\\\"c-users-settings-add-tag-modal__input\\\"\\n          data-test-value-input\\n        />\\n      </Shared::BetaLabel>\\n    </div>\\n  </div>\\n\\n  <div class=\\\"c-users-settings-add-tag-modal__footer\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @disabled={{false}}\\n      @action={{@onClose}}\\n      @async={{false}}\\n      @text=\\\"Cancel\\\"\\n      data-test-add-tag-cancel-button\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @disabled={{this.isUpdateDisabled}}\\n      @action={{this.addTag}}\\n      @text=\\\"Add a tag\\\"\\n      data-test-add-tag-send-button\\n    />\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/users-settings/add-tag-modal/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport RoleModel from 'client/data/models/role';\nimport UserInvitationProject from 'client/data/models/user-invitation-project';\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport normalizeString from 'client/utils/normalize-string';\n\n@validateArguments\nexport default class UsersSettingsEditRoleModalComponent extends Component {\n  @argument(arrayOf(UserInvitationProject)) userInvitations;\n  @argument(Function) onClose;\n  @argument(Function) onUpdateRole;\n  @argument(arrayOf(RoleModel)) roles;\n\n  @tracked selectedRoleId = null;\n  @tracked searchedValue = null;\n\n  constructor(...args) {\n    super(...args);\n\n    if (this.args.userInvitations) {\n      const roles = new Set(this.args.userInvitations.map((user) => user.roleName));\n      if (roles.size === 1) {\n        const role = this.args.roles.find(\n          (oneRole) => oneRole.name === this.args.userInvitations[0].roleName,\n        );\n        this.selectedRoleId = role.id;\n      }\n    }\n  }\n\n  get title() {\n    if (this.args.userInvitations.length === 1) {\n      return \"Edit user's role\";\n    }\n\n    return \"Edit users' roles\";\n  }\n\n  get actionTitle() {\n    if (this.args.userInvitations.length === 1) {\n      return 'Update 1 user';\n    }\n\n    return `Update ${this.args.userInvitations.length} users`;\n  }\n\n  get isUpdateDisabled() {\n    return !this.selectedRoleId;\n  }\n\n  get inputPlaceHolder() {\n    const roles = new Set(this.args.userInvitations.map((user) => user.roleName));\n\n    if (roles.size > 1) {\n      return 'Multiple roles selected';\n    }\n\n    return null;\n  }\n\n  get filteredRoles() {\n    const searched = normalizeString(this.searchedValue);\n\n    if (!searched) {\n      return this.args.roles;\n    }\n    return this.args.roles.filter((role) => {\n      return normalizeString(role.name).includes(searched);\n    });\n  }\n\n  @action\n  updateRole(callback) {\n    if (this.selectedRoleId) {\n      const role = this.args.roles.find((oneRole) => oneRole.id === this.selectedRoleId);\n      callback(\n        this.args.onUpdateRole({\n          role,\n          userInvitations: this.args.userInvitations,\n        }),\n      );\n    } else {\n      callback(false);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @title={{this.title}}\\n  @onClose={{@onClose}}\\n  @contentClass=\\\"c-users-settings-edit-role-modal\\\"\\n>\\n  <div class=\\\"c-users-settings-edit-role-modal__content\\\">\\n    <p class=\\\"c-users-settings-edit-role-modal__explanation\\\">\\n      You are about to edit the role of\\n      <strong>\\n        {{#if (eq @userInvitations.length 1)}}\\n          1 user\\n        {{else}}\\n          {{@userInvitations.length}}\\n          users\\n        {{/if}}\\n      </strong>\\n    </p>\\n\\n    <Shared::BetaLabel @label=\\\"Select a role\\\" class=\\\"c-users-settings-edit-role-modal__label\\\">\\n      <Shared::BetaSelectSearch\\n        @class=\\\"c-users-settings-edit-role-modal__input\\\"\\n        @value={{this.selectedRoleId}}\\n        @searchValue={{this.searchedValue}}\\n        @options={{this.filteredRoles}}\\n        @placeholder={{this.inputPlaceHolder}}\\n        @namePath=\\\"name\\\"\\n        @valuePath=\\\"id\\\"\\n      />\\n    </Shared::BetaLabel>\\n  </div>\\n\\n  <div class=\\\"c-users-settings-edit-role-modal__footer\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @disabled={{false}}\\n      @action={{@onClose}}\\n      @async={{false}}\\n      @text=\\\"Cancel\\\"\\n      data-test-edit-role-cancel-button\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @disabled={{this.isUpdateDisabled}}\\n      @action={{this.updateRole}}\\n      @text={{this.actionTitle}}\\n      data-test-edit-role-send-button\\n    />\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/users-settings/edit-role-modal/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { PermissionLevelEnum } from 'client/data/models/invitation';\nimport RoleModel from 'client/data/models/role';\nimport TeamModel from 'client/data/models/team';\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { EMAIL_REGEX } from 'client/utils/regex';\n\nconst WORDS_SELECTOR_REGEXP = /[^,;\\s]+/g;\n\nfunction extractEmailListFromText(inviteEmailsText) {\n  const possibleEmails = inviteEmailsText.match(WORDS_SELECTOR_REGEXP) || [];\n\n  const validEmails =\n    possibleEmails.filter((emailCandidate) => EMAIL_REGEX.test(emailCandidate)) || [];\n\n  return possibleEmails.length !== validEmails.length\n    ? {\n        validEmails: null,\n        incorrectEmails: possibleEmails.filter((email) => !validEmails.includes(email)),\n      }\n    : { validEmails };\n}\n\n@validateArguments\nexport default class UsersSettingsInvitationModalComponent extends Component {\n  @argument(Function) close;\n  @argument(Function) inviteUsers;\n  @argument(arrayOf(RoleModel)) roles;\n  @argument(arrayOf(TeamModel)) teams;\n\n  @tracked hasInvalidEmails = false;\n  @tracked selectedTeam = null;\n  @tracked selectedRole = null;\n  @tracked selectedPermissionLevel = PermissionLevelEnum.User;\n  @tracked inviteEmailsText = '';\n  @tracked shouldDisplayTagsTable = false;\n  @tracked selectedTags = [];\n\n  @service toastr;\n\n  permissionLevels = Object.values(PermissionLevelEnum);\n\n  @computed('areTagsValid', 'inviteEmailsText', 'selectedRole', 'selectedTeam')\n  get isInviteButtonDisabled() {\n    return !this.inviteEmailsText || !this.selectedTeam || !this.selectedRole || !this.areTagsValid;\n  }\n\n  @computed('selectedTags.@each.{key,value}')\n  get areTagsValid() {\n    if (!this.selectedTags.length) return true;\n    return this.selectedTags.every(\n      (tag) => tag.key !== null && tag.key !== '' && tag.value !== null && tag.value !== '',\n    );\n  }\n\n  @action\n  async invite(callback) {\n    const { validEmails: allEmails, incorrectEmails } = extractEmailListFromText(\n      this.inviteEmailsText,\n    );\n    if (allEmails) {\n      this.hasInvalidEmails = false;\n\n      const emails = [...new Set(allEmails)];\n\n      return callback(\n        this.args.inviteUsers({\n          emails,\n          permissionLevel: this.selectedPermissionLevel,\n          team: this.selectedTeam,\n          role: this.selectedRole,\n          tags: this.selectedTags,\n        }),\n      );\n    }\n    this.hasInvalidEmails = true;\n    this.toastr.perform(\n      'error',\n      `You may have done a mistake, the following email${\n        incorrectEmails.length === 1 ? ' is' : 's are'\n      } incorrect: ${incorrectEmails.join(', ')}`,\n    );\n    return callback(false);\n  }\n\n  @action\n  toggleTagsTable() {\n    this.shouldDisplayTagsTable = !this.shouldDisplayTagsTable;\n  }\n\n  @action\n  addATag() {\n    const newTag = {\n      key: null,\n      value: null,\n      inEditState: true,\n    };\n    this.selectedTags.pushObject(newTag);\n  }\n\n  @action\n  removeATag(tagToBeRemovedIndex) {\n    this.selectedTags.removeAt(tagToBeRemovedIndex);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @title=\\\"Invite users\\\"\\n  @onClose={{@close}}\\n  @contentClass=\\\"c-users-settings-invitation-modal\\\"\\n>\\n  <div class=\\\"c-users-settings-invitation-modal__input-container\\\">\\n    {{#if this.hasInvalidEmails}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @canHide={{false}}\\n        @state=\\\"error\\\"\\n        @message=\\\"Some emails are not valid.\\\"\\n        class=\\\"c-users-settings-invitation-modal__error-banner\\\"\\n      />\\n    {{/if}}\\n\\n    <Shared::BetaLabel\\n      @label=\\\"Email addresses\\\"\\n      @textClass={{if this.hasInvalidEmails \\'c-users-settings-invitation-modal__email--error\\'}}\\n      class=\\\"c-users-settings-invitation-modal__email\\\"\\n    >\\n      <Shared::BetaTextarea\\n        @value={{this.inviteEmailsText}}\\n        @resizable={{false}}\\n        @state={{unless this.hasInvalidEmails \\'empty\\' \\'error\\'}}\\n        @placeholder=\\\"Enter emails separated by commas, new lines or paste a spreadsheet column\\\"\\n        class=\\\"c-users-settings-invitation-modal__email--input\\\"\\n        data-test-invitation-email\\n      />\\n    </Shared::BetaLabel>\\n\\n    <div class=\\\"c-users-settings-invitation-modal__dropdowns\\\">\\n      <Shared::BetaLabel @label=\\\"Team\\\" class=\\\"c-users-settings-invitation-modal__team\\\">\\n        <Shared::BetaSelect\\n          @value={{this.selectedTeam}}\\n          @options={{@teams}}\\n          @capitalizeValues={{false}}\\n          @withSearchInput={{true}}\\n          @placeholder=\\\"Select Team\\\"\\n          @namePath=\\\"name\\\"\\n          class=\\\"c-users-settings-invitation-modal__search-input\\\"\\n          data-test-invitation-team\\n        />\\n      </Shared::BetaLabel>\\n      <Shared::BetaLabel @label=\\\"Role\\\" class=\\\"c-users-settings-invitation-modal__team\\\">\\n        <Shared::BetaSelect\\n          @value={{this.selectedRole}}\\n          @options={{@roles}}\\n          @capitalizeValues={{false}}\\n          @withSearchInput={{true}}\\n          @placeholder=\\\"Select Role\\\"\\n          @namePath=\\\"name\\\"\\n          class=\\\"c-users-settings-invitation-modal__search-input\\\"\\n          data-test-invitation-role\\n        />\\n      </Shared::BetaLabel>\\n      <Shared::BetaLabel\\n        @label=\\\"Permission Level\\\"\\n        class=\\\"c-users-settings-invitation-modal__permission-level\\\"\\n      >\\n        <Shared::BetaSelect\\n          class=\\\"c-users-settings-invitation-modal__search-input\\\"\\n          @value={{this.selectedPermissionLevel}}\\n          @options={{this.permissionLevels}}\\n          @capitalizeValues={{true}}\\n          data-test-invitation-permission-level\\n        />\\n      </Shared::BetaLabel>\\n    </div>\\n    <div class=\\\"c-users-settings-invitation-modal__tags-bar\\\">\\n      <button\\n        class=\\\"c-users-settings-invitation-modal__tags-bar--button\\\"\\n        {{on \\'click\\' this.toggleTagsTable}}\\n        type=\\\"button\\\"\\n      >\\n        <i\\n          class={{concat\\n            \\'material-icons c-connect-database-form-advanced-options-bar__icon\\'\\n            (if\\n              this.shouldDisplayTagsTable\\n              \\' c-connect-database-form-advanced-options-bar__icon--rotate-right\\'\\n            )\\n          }}\\n        >\\n          keyboard_arrow_down\\n        </i>\\n      </button>\\n      <button\\n        class=\\\"c-users-settings-invitation-modal__tags-bar--button\\\"\\n        {{on \\'click\\' this.toggleTagsTable}}\\n        type=\\\"button\\\"\\n      >\\n        <span class=\\\"c-users-settings-invitation-modal__tags-bar--text\\\">\\n          User tags (optional)\\n        </span>\\n      </button>\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName=\\\"info\\\"\\n        @size=\\\"small\\\"\\n        @class=\\\"c-beta-icon--hoverable\\\"\\n        @id=\\\"c-users-settings-invitation-modal__tags-bar\\\"\\n      />\\n      <Shared::Feedback::BetaTooltip\\n        @targetId=\\\"c-users-settings-invitation-modal__tags-bar\\\"\\n        @hideDelay={{250}}\\n        @side=\\\"top\\\"\\n      >\\n        Tags allow you to add attributes to the invited users for scoping purposes\\n      </Shared::Feedback::BetaTooltip>\\n      <span class=\\\"c-connect-database-form-advanced-options-bar__separator\\\"></span>\\n    </div>\\n    {{#if this.shouldDisplayTagsTable}}\\n      <div class=\\\"c-users-settings-invitation-modal__tags\\\">\\n        <UserTags\\n          @tags={{this.selectedTags}}\\n          @addATag={{this.addATag}}\\n          @removeATag={{this.removeATag}}\\n        />\\n      </div>\\n    {{/if}}\\n  </div>\\n  <div class=\\\"c-users-settings-invitation-modal__footer\\\">\\n    <div class=\\\"c-users-settings-invitation-modal__footer--cancel\\\">\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @disabled={{false}}\\n        @action={{@close}}\\n        @async={{false}}\\n        @text=\\\"Cancel\\\"\\n        data-test-invitation-cancel-button\\n      />\\n    </div>\\n    <div class=\\\"c-invite-users__footer__invite\\\">\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @disabled={{this.isInviteButtonDisabled}}\\n        @action={{this.invite}}\\n        @text=\\\"Invite\\\"\\n        data-test-invitation-send-button\\n      />\\n    </div>\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/users-settings/invitation-modal/template.hbs' });\n","/* eslint-disable max-classes-per-file */\nimport { action, computed } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport UserInvitationProject from 'client/data/models/user-invitation-project';\nimport { argument, arrayOf } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport normalizeString from 'client/utils/normalize-string';\n\nclass Item {\n  @tracked isSelected;\n  @tracked tag;\n\n  constructor({ tag, isSelected }) {\n    this.tag = tag;\n    this.isSelected = isSelected;\n  }\n}\n\n@validateArguments\nexport default class UsersSettingsRemoveTagsModalComponent extends Component {\n  @argument(arrayOf(UserInvitationProject)) userInvitations;\n  @argument(Function) onClose;\n  @argument(Function) onRemoveTags;\n\n  @computed('args.userInvitations')\n  get tagList() {\n    const allTags = this.args.userInvitations\n      .map((user) => user.tags)\n      .reduce((accumulator, tags) => {\n        if (!tags || !tags.length) {\n          return accumulator;\n        }\n        return [...accumulator, ...tags];\n      }, []);\n\n    const uniqueTags = new Map(allTags.map((tag) => [`[${tag.key}][${tag.value}]`, tag]));\n\n    return Array.from(uniqueTags.values())\n      .sort((a, b) => {\n        return (\n          normalizeString(a.key).localeCompare(normalizeString(b.key))\n          || normalizeString(a.value).localeCompare(normalizeString(b.value))\n        );\n      })\n      .map((tag) => new Item({ isSelected: false, tag }));\n  }\n\n  @computed('tagList.@each.isSelected')\n  get selectedTags() {\n    return this.tagList.filter((item) => item.isSelected).map((item) => item.tag);\n  }\n\n  @computed('selectedTags.length')\n  get isUpdateDisabled() {\n    return !this.selectedTags.length;\n  }\n\n  @action\n  removeTags(callback) {\n    if (!this.isUpdateDisabled) {\n      callback(\n        this.args.onRemoveTags({\n          tags: this.selectedTags,\n          userInvitations: this.args.userInvitations,\n        }),\n      );\n    } else {\n      callback(false);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @title=\\\"Remove tags\\\"\\n  @onClose={{@onClose}}\\n  @contentClass=\\\"c-users-settings-remove-tags-modal\\\"\\n>\\n  <div class=\\\"c-users-settings-remove-tags-modal__content\\\">\\n    <p class=\\\"c-users-settings-remove-tags-modal__explanation\\\">\\n      Select the tags you want to remove from the\\n      <strong>\\n        {{#if (eq @userInvitations.length 1)}}\\n          selected user\\n        {{else}}\\n          {{@userInvitations.length}}\\n          selected users\\n        {{/if}}\\n      </strong>\\n    </p>\\n\\n    <Shared::BetaLabel @label=\\\"Tags\\\" />\\n    <ul class=\\\"c-users-settings-remove-tags-modal__tags\\\">\\n      {{#each this.tagList as |item|}}\\n        <li\\n          class=\\\"c-users-settings-remove-tags-modal__tag\\n            {{if item.isSelected \\'c-users-settings-remove-tags-modal__tag--selected\\'}}\\\"\\n        >\\n          <label\\n            class=\\\"c-users-settings-remove-tags-modal__tag-label\\\"\\n            data-test-tag={{item.tag.key}}\\n          >\\n            <Form::BetaCheckbox\\n              @value={{item.isSelected}}\\n              @class=\\\"c-users-settings-remove-tags-modal__checkbox\\\"\\n              @small={{true}}\\n              @type=\\\"danger\\\"\\n              data-test-checkbox={{item.tag.key}}\\n            />\\n            {{item.tag.key}}:\\n            {{item.tag.value}}\\n          </label>\\n        </li>\\n      {{/each}}\\n      {{#unless this.tagList.length}}\\n        <li class=\\\"c-users-settings-remove-tags-modal__empty\\\">\\n          {{#if (eq @userInvitations.length 1)}}\\n            No tags found for the selected user.\\n          {{else}}\\n            No tags found for the selected users.\\n          {{/if}}\\n        </li>\\n      {{/unless}}\\n    </ul>\\n  </div>\\n\\n  <div class=\\\"c-users-settings-remove-tags-modal__footer\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @disabled={{false}}\\n      @action={{@onClose}}\\n      @async={{false}}\\n      @text=\\\"Cancel\\\"\\n      data-test-remove-tags-cancel-button\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"danger\\\"\\n      @disabled={{this.isUpdateDisabled}}\\n      @action={{this.removeTags}}\\n      @text=\\\"Remove\\\"\\n      data-test-remove-tags-send-button\\n    />\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/users-settings/remove-tags-modal/template.hbs' });\n","// eslint-disable-next-line max-classes-per-file\nimport { action, computed } from '@ember/object';\nimport { or } from '@ember/object/computed';\nimport { debounce } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport RoleModel from 'client/data/models/role';\nimport UserInvitationProject from 'client/data/models/user-invitation-project';\nimport { argument, arrayOf, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\nclass Row {\n  @tracked item;\n  @tracked isSelected;\n\n  constructor({ item, isSelected }) {\n    this.item = item;\n    this.isSelected = isSelected;\n  }\n}\n@validateArguments\nexport default class UsersSettingsTableComponent extends Component {\n  /** @type {import('@ember-data/store').default} */\n  @service store;\n  /** @type {import('client/legacy/services/business/collection')} */\n  @service('business/collection') businessCollectionService;\n\n  @argument(arrayOf(RoleModel)) roles;\n  @argument(Function) exportPermissions;\n  @argument(Function) exportUsersHistory;\n  @argument(Boolean) hasOnlyDevelopmentEnvironment;\n  @argument(optional(Boolean)) isUserProvisioningDisablingEdition = false;\n  @argument(Function) openInvitationModal;\n  @argument(optional(Boolean)) disableInviteButton;\n  @argument(Function) search;\n  @argument(Boolean) isLoading;\n  @argument(Function) cancelInvitations;\n  @argument(arrayOf(UserInvitationProject)) items;\n  @argument(Number) pageCount;\n  @argument(Number) currentPage;\n  @argument(Number) itemsCount;\n  @argument(Function) editRole;\n  @argument(Function) addTag;\n  @argument(Function) copyInvitationLink;\n\n  @tracked searchValue = '';\n  @tracked filter = null;\n  @tracked isLoadingSearch = false;\n  /** @type {Array<import('client/data/models/field').default>} */\n  @tracked fields;\n\n  constructor(...args) {\n    super(...args);\n\n    const roles = (this.args.roles || []).map((role) => role.name);\n    this.fields = [\n      this.store.createRecord('field', {\n        displayName: 'Email address',\n        fieldName: 'email',\n        type: 'String',\n      }),\n      this.store.createRecord('field', {\n        displayName: 'Full name',\n        fieldName: 'fullName',\n        type: 'String',\n      }),\n      this.store.createRecord('field', {\n        displayName: 'Permission level',\n        fieldName: 'permissionLevel',\n        type: 'Enum',\n        enums: ['Admin', 'Editor', 'User', 'Developer'],\n      }),\n      this.store.createRecord('field', {\n        displayName: 'Role',\n        type: 'Enum',\n        fieldName: 'roleName',\n        enums: roles,\n      }),\n      this.store.createRecord('field', {\n        displayName: 'Tags value',\n        fieldName: 'tagValues',\n        type: 'String',\n      }),\n      this.store.createRecord('field', {\n        displayName: 'Teams',\n        fieldName: 'teams',\n        type: 'String',\n      }),\n    ];\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.unloadFields();\n  }\n\n  unloadFields() {\n    if (this.fields) {\n      this.fields\n        .filter((field) => !field.isDestroying && !field.isDestroyed)\n        .forEach((field) => field.unloadRecord());\n    }\n    this.fields = null;\n  }\n\n  @or('args.isLoading', 'isLoadingSearch') isLoadingSomething;\n\n  @action\n  async onCancelInvitations() {\n    await this.args.cancelInvitations(this.selectedInvitations.map((row) => row.item));\n  }\n\n  @computed('rows.@each.isSelected')\n  get selectedRows() {\n    return this.rows.filter((row) => row.isSelected);\n  }\n\n  @computed('selectedRows')\n  get selectedInvitations() {\n    return this.selectedRows.filter((row) => row.item.isInvitation);\n  }\n\n  @computed('selectedRows')\n  get selectedItems() {\n    return this.selectedRows.map((row) => row.item);\n  }\n\n  @computed('rows')\n  get allInvitations() {\n    return this.rows.filter((row) => row.item.isInvitation);\n  }\n\n  @computed('args.items')\n  get rows() {\n    return this.args.items.map((currentItem) => new Row({ item: currentItem, isSelected: false }));\n  }\n\n  @computed('allInvitations.length', 'args.isLoading', 'selectedInvitations.length')\n  get checkboxValue() {\n    return (\n      !this.args.isLoading\n      && this.allInvitations.length !== 0\n      && this.allInvitations.length === this.selectedInvitations.length\n    );\n  }\n\n  set checkboxValue(value) {\n    this.rows.forEach((row) => {\n      row.isSelected = value;\n    });\n    return value;\n  }\n\n  @action\n  accessPage(pageNumber) {\n    if (pageNumber < 1) return;\n    if (pageNumber > this.args.pageCount) return;\n    this.args.search({\n      filter: this.filter,\n      search: this.searchValue,\n      page: pageNumber,\n    });\n  }\n\n  @action\n  applyFilter(filter) {\n    this.filter = filter;\n    this.searchItems();\n  }\n\n  @action\n  debounceSearch(searchValue) {\n    this.searchValue = searchValue;\n    this.isLoadingSearch = true;\n    debounce(this, this.searchItems, 500);\n  }\n\n  @action\n  searchItems() {\n    this.args.search({\n      filter: this.filter,\n      search: this.searchValue,\n      page: 1,\n    });\n    this.isLoadingSearch = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-users-settings-table\\\" ...attributes>\\n  <div class=\\\"l-users-settings-table__buttons\\\">\\n    <div class=\\\"l-users-settings-table__buttons--left\\\">\\n      <Shared::BetaSearchBar\\n        @searchOnInput={{true}}\\n        @searchFunction={{this.debounceSearch}}\\n        @searchValue={{this.searchValue}}\\n        @onChange={{fn (mut this.searchValue)}}\\n        @placeholder=\\\"Search users...\\\"\\n        @class=\\\"l-users-settings-table__buttons--search\\\"\\n        data-test-list-search-user={{true}}\\n      />\\n      <BetaFilter::Button\\n        @fieldsFilterable={{this.fields}}\\n        @applyFilter={{this.applyFilter}}\\n        @filter={{this.filter}}\\n        @createFilter={{this.businessCollectionService.createFilter}}\\n        @context=\\\"settings\\\"\\n        class=\\\"l-users-settings-table__buttons--filter\\\"\\n        data-test-list-filter-user\\n      />\\n    </div>\\n    <div class=\\\"l-users-settings-table__buttons--right\\\">\\n      {{#if this.selectedRows.length}}\\n        <Form::Dropdown\\n          class=\\\"l-users-settings-table__buttons--actions\\\"\\n          data-test-manage-users-menu\\n          as |showDropdown|\\n        >\\n          <Shared::Button::BetaButton\\n            @type=\\\"secondary\\\"\\n            @action={{this.showHideDropdownActions}}\\n            @async={{false}}\\n            @text=\\\"Actions\\\"\\n            @iconName=\\\"keyboard_arrow_down\\\"\\n            @isIconAfterText={{true}}\\n            class=\\\"c-actions-user-invitation__buttons\\\"\\n          />\\n          {{#if showDropdown}}\\n            <Form::Dropdown::Content>\\n              <Form::Dropdown::Action\\n                @name=\\\"Edit role\\\"\\n                @icon=\\\"supervisor_account\\\"\\n                @onClick={{fn @editRole this.selectedItems}}\\n                data-test-edit-role\\n              />\\n\\n              <Form::Dropdown::Action\\n                @name=\\\"Add tag\\\"\\n                @icon=\\\"label_outlined\\\"\\n                @onClick={{fn @addTag this.selectedItems}}\\n                data-test-add-tag\\n              />\\n\\n              <Form::Dropdown::Action\\n                @name=\\\"Remove tag\\\"\\n                @icon=\\\"label_off_outlined\\\"\\n                @isDangerIcon={{true}}\\n                @onClick={{fn @removeTags this.selectedItems}}\\n                data-test-remove-tags\\n              />\\n\\n              {{#if (and (eq this.selectedItems.length 1) (eq this.selectedInvitations.length 1))}}\\n                <Form::Dropdown::Action\\n                  @name=\\\"Copy invitation link\\\"\\n                  @icon=\\\"content_copy\\\"\\n                  @onClick={{fn @copyInvitationLink this.selectedItems}}\\n                  data-test-copy-invitation-link\\n                />\\n              {{/if}}\\n\\n              {{#if this.selectedInvitations.length}}\\n                <Form::Dropdown::Action\\n                  @name=\\\"Delete invitations\\\"\\n                  @icon=\\\"close\\\"\\n                  @isDangerIcon={{true}}\\n                  @onClick={{this.onCancelInvitations}}\\n                  data-test-cancel-invitations\\n                />\\n              {{/if}}\\n            </Form::Dropdown::Content>\\n          {{/if}}\\n        </Form::Dropdown>\\n      {{/if}}\\n\\n      <Form::Dropdown\\n        class=\\\"l-users-settings-table__buttons--actions\\\"\\n        data-test-export-menu\\n        as |showDropdown|\\n      >\\n        <Shared::Button::BetaButton\\n          @type=\\\"secondary\\\"\\n          @action={{this.showHideExportsActions}}\\n          @async={{false}}\\n          @text=\\\"Exports\\\"\\n          @iconName=\\\"keyboard_arrow_down\\\"\\n          @isIconAfterText={{true}}\\n          class=\\\"c-actions-user-invitation__buttons\\\"\\n        />\\n        {{#if showDropdown}}\\n          <Form::Dropdown::Content>\\n\\n            {{#let @hasOnlyDevelopmentEnvironment as |exportDisabled|}}\\n              <Form::Dropdown::Action\\n                @name=\\\"Export user permissions\\\"\\n                @icon=\\\"supervisor_account\\\"\\n                @onClick={{@exportPermissions}}\\n                id=\\\"export-user-permissions\\\"\\n                data-test-export-permissions-menu-action\\n              />\\n              {{#if exportDisabled}}\\n                <Shared::Feedback::BetaTooltip @targetId=\\\"export-user-permissions\\\" @side=\\\"bottom\\\">\\n                  Your project needs to be deployed before you can export user permissions.\\n                </Shared::Feedback::BetaTooltip>\\n              {{/if}}\\n            {{/let}}\\n\\n            <Form::Dropdown::Action\\n              @name=\\\"Export users history\\\"\\n              @icon=\\\"manage_search\\\"\\n              @onClick={{@exportUsersHistory}}\\n              data-test-export-users-history-menu-action\\n            />\\n          </Form::Dropdown::Content>\\n        {{/if}}\\n      </Form::Dropdown>\\n\\n      <div id=\\\"invite\\\">\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @disabled={{@disableInviteButton}}\\n          @action={{@openInvitationModal}}\\n          @async={{false}}\\n          @text=\\\"Invite\\\"\\n          @iconName=\\\"add\\\"\\n          @iconClass=\\\"l-users-settings-table-buttons--invite\\\"\\n          data-test-invite-button\\n        />\\n      </div>\\n      {{#if @hasOnlyDevelopmentEnvironment}}\\n        <Shared::Feedback::BetaTooltip @targetId=\\\"invite\\\" @side=\\\"bottom\\\">\\n          You cannot invite new people until your project is deployed.\\n        </Shared::Feedback::BetaTooltip>\\n      {{/if}}\\n      {{#if @isUserProvisioningDisablingEdition}}\\n        <Shared::Feedback::BetaTooltip @targetId=\\\"invite\\\" @side=\\\"bottom\\\">\\n          This action can only be done from your Identity Provider.\\n        </Shared::Feedback::BetaTooltip>\\n      {{/if}}\\n    </div>\\n  </div>\\n\\n  <UsersTableWithPagination\\n    @items={{this.rows}}\\n    @emptyState={{(html-safe\\n      (concat\\n        \\'<span class=\\\"c-items-paginated-table__empty-state\\\">No user found matching your query.</span>\\'\\n      )\\n    )}}\\n    @currentPage={{@currentPage}}\\n    @numberOfPages={{@pageCount}}\\n    @checkboxValue={{this.checkboxValue}}\\n    @isUserProvisioningDisablingEdition={{@isUserProvisioningDisablingEdition}}\\n    @accessPage={{this.accessPage}}\\n    @numberOfItems={{@itemsCount}}\\n    @numberOfItemsInCurrentPage={{this.rows.length}}\\n    @isLoading={{this.isLoadingSomething}}\\n    data-test-items-paginated-table-for=\\\"user\\\"\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/users-settings/table/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class UsersTableWithPaginationComponent extends Component {\n  @argument(Array) items;\n  @argument(optional(Function)) onItemClick;\n  @argument(Number) currentPage;\n  @argument(Number) numberOfPages;\n  @argument(Function) accessPage;\n  @argument(Number) numberOfItems;\n  @argument(Number) numberOfItemsInCurrentPage;\n  // FIXME: to use named yield with ember 3.28\n  @argument(optional(Object)) header;\n  @argument(optional(Object)) footer;\n  @argument(optional(Object)) emptyState;\n  @argument(Boolean) checkboxValue;\n  @argument(optional(Boolean)) isUserProvisioningDisablingEdition = false;\n  @argument(optional(Boolean)) isLoading;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-users-table-with-pagination\\\" ...attributes>\\n  {{#if (and (not @numberOfItemsInCurrentPage) (not @isLoading) @emptyState)}}\\n    {{@emptyState}}\\n  {{else}}\\n    {{#if @isUserProvisioningDisablingEdition}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"warning\\\"\\n        @canHide={{false}}\\n        @class=\\\"c-users-table-with-pagination__notification\\\"\\n      >\\n        As you have a third-party provisioning service enabled on this project, changing user\\n        settings here will not be synchronized with your provider. Any change made directly on the\\n        third-party provisioning service will override this setting.\\n      </Shared::Feedback::Notification::NotificationInApp>\\n    {{/if}}\\n    <Shared::BetaTable\\n      @isLoading={{@isLoading}}\\n      @columns={{array \\'Name\\' \\'Permission level\\' \\'Role\\' \\'Teams\\' \\'Tags\\'}}\\n      @rows={{@items}}\\n      @alignColumnLeft={{true}}\\n      @checkbox={{true}}\\n      @sticky={{true}}\\n      @checkboxValue={{@checkboxValue}}\\n      @rowClass=\\\"c-users-table-with-pagination__table-row\\\"\\n      class=\\\"c-users-table-with-pagination__table\\\"\\n      data-test-user-invitation-table\\n      as |RowColumn userInvitation|\\n    >\\n      <RowColumn\\n        data-test-row-column=\\\"Checkbox\\\"\\n        class=\\\"c-users-table-with-pagination__column c-users-table-with-pagination__column--checkbox\\\"\\n      >\\n        <Form::BetaCheckbox\\n          @value={{userInvitation.isSelected}}\\n          @defaultValue={{false}}\\n          @small={{true}}\\n          @onChange={{fn (mut userInvitation.isSelected)}}\\n          data-test-user-invitation-checkbox\\n        />\\n      </RowColumn>\\n      <RowColumn\\n        data-test-row-column=\\\"Name\\\"\\n        class=\\\"c-users-table-with-pagination__column c-users-table-with-pagination__column--name\\\"\\n        role=\\\"button\\\"\\n      >\\n        {{#if userInvitation.item.isInvitation}}\\n          <div class=\\\"c-users-table-with-pagination__email\\\">\\n            {{userInvitation.item.email}}\\n          </div>\\n          <div class=\\\"c-users-table-with-pagination__invitation-pending\\\">\\n            pending\\n          </div>\\n        {{else}}\\n          {{#if userInvitation.item.isBlocked}}\\n            <div class=\\\"c-users-table-with-pagination__fullname\\\">\\n              {{userInvitation.item.fullName}}\\n              <span class=\\\"c-users-table-with-pagination__blocked\\\">\\n                blocked\\n              </span>\\n            </div>\\n            <div class=\\\"c-users-table-with-pagination__email\\\">\\n              {{userInvitation.item.email}}\\n            </div>\\n          {{else}}\\n            <div class=\\\"c-users-table-with-pagination__fullname\\\">\\n              {{userInvitation.item.fullName}}\\n            </div>\\n            <div class=\\\"c-users-table-with-pagination__email\\\">\\n              {{userInvitation.item.email}}\\n            </div>\\n          {{/if}}\\n          <LinkTo\\n            @route=\\\"project.project-settings.users.details\\\"\\n            @model={{userInvitation.item.userId}}\\n            class=\\\"c-users-table-with-pagination__cell-link\\\"\\n            data-test-users-table-with-pagination-name-link\\n          />\\n        {{/if}}\\n      </RowColumn>\\n      <RowColumn\\n        data-test-row-column=\\\"Permission level\\\"\\n        class=\\\"c-users-table-with-pagination__column c-users-table-with-pagination__column--permission-level\\\"\\n        role=\\\"button\\\"\\n      >\\n        <div\\n          class=\\\"c-users-table-with-pagination__permission-level c-users-table-with-pagination__permission-level--{{userInvitation.item.permissionLevel}}\\\"\\n        >\\n          {{capitalize-text userInvitation.item.permissionLevel}}\\n        </div>\\n        {{#if userInvitation.item.isUser}}\\n          <LinkTo\\n            @route=\\\"project.project-settings.users.details\\\"\\n            @model={{userInvitation.item.userId}}\\n            class=\\\"c-users-table-with-pagination__cell-link\\\"\\n          />\\n        {{/if}}\\n      </RowColumn>\\n      <RowColumn\\n        data-test-row-column=\\\"Role\\\"\\n        class=\\\"c-users-table-with-pagination__column c-users-table-with-pagination__column--role\\\"\\n        role=\\\"button\\\"\\n      >\\n        <div class=\\\"c-users-table-with-pagination__role-name\\\">\\n          {{capitalize-text userInvitation.item.roleName}}\\n        </div>\\n        {{#if userInvitation.item.isUser}}\\n          <LinkTo\\n            @route=\\\"project.project-settings.users.details\\\"\\n            @model={{userInvitation.item.userId}}\\n            class=\\\"c-users-table-with-pagination__cell-link\\\"\\n          />\\n        {{/if}}\\n      </RowColumn>\\n      <RowColumn\\n        data-test-row-column=\\\"Teams list\\\"\\n        class=\\\"c-users-table-with-pagination__column c-users-table-with-pagination__column--teams\\\"\\n        role=\\\"button\\\"\\n      >\\n        {{#each userInvitation.item.teamsList as |team|}}\\n          <div class=\\\"c-users-table-with-pagination__team\\\">\\n            {{team}}\\n          </div>\\n        {{/each}}\\n        {{#if userInvitation.item.isUser}}\\n          <LinkTo\\n            @route=\\\"project.project-settings.users.details\\\"\\n            @model={{userInvitation.item.userId}}\\n            class=\\\"c-users-table-with-pagination__cell-link\\\"\\n          />\\n        {{/if}}\\n      </RowColumn>\\n      <RowColumn\\n        data-test-row-column=\\\"Tags list\\\"\\n        class=\\\"c-users-table-with-pagination__column c-users-table-with-pagination__column--tags\\\"\\n        role=\\\"button\\\"\\n      >\\n        {{#each userInvitation.item.tagsList as |tag|}}\\n          <div class=\\\"c-users-table-with-pagination__tag\\\">\\n            {{tag}}\\n          </div>\\n        {{/each}}\\n        {{#if userInvitation.item.isUser}}\\n          <LinkTo\\n            @route=\\\"project.project-settings.users.details\\\"\\n            @model={{userInvitation.item.userId}}\\n            class=\\\"c-users-table-with-pagination__cell-link\\\"\\n          />\\n        {{/if}}\\n      </RowColumn>\\n    </Shared::BetaTable>\\n    <Shared::BetaNewPaginator\\n      @currentPage={{@currentPage}}\\n      @numberOfPages={{@numberOfPages}}\\n      @accessPage={{@accessPage}}\\n      @itemsType=\\\"user\\\"\\n      @numberOfItems={{@numberOfItems}}\\n      @numberOfItemsInCurrentPage={{@numberOfItemsInCurrentPage}}\\n      data-test-beta-new-paginator\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/users-table-with-pagination/template.hbs' });\n","import { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport config from 'client/config/environment';\nimport {\n  DEFAULT_COMPONENT_SNIPPET,\n  DEFAULT_REACT_COMPONENT_SNIPPET,\n  TYPES,\n} from 'client/config/smart-view';\nimport ViewList from 'client/data/models/view-list';\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { switchFramework } from 'client/utils/smart-view-editor-utils';\n\n@validateArguments\nexport default class ViewSettingsDetailsComponent extends Component {\n  optionsSmartViewTypes = TYPES;\n\n  @service errorHandler;\n  @service router;\n  @service('feature/smart-features') smartFeaturesService;\n  @service toastr;\n\n  @argument(ViewList) smartView;\n\n  @alias('args.smartView.collection') collection;\n\n  get maxRecordsPerPage() {\n    return config.APP.maxRecordsPerPage;\n  }\n\n  get isInvalid() {\n    const smartViewWithSameName = this.collection?.viewLists\n      .filter((view) => view !== this.args.smartView)\n      .findBy('name', this.args.smartView.name?.trim());\n    return (\n      !this.args.smartView.name?.trim()\n      || !!smartViewWithSameName\n      || (!this.args.smartView.allowJavascript && this.args.smartView.isReact)\n    );\n  }\n\n  @action\n  async delete() {\n    const { collection } = this;\n    const { smartView } = this.args;\n\n    try {\n      await smartView.destroyRecord();\n      this.redirect(collection);\n      this.toastr.perform('success', `Smart View ${smartView.name} deleted.`);\n    } catch (error) {\n      smartView.rollbackAttributes();\n      this.errorHandler.handleRequestFailure(error, 'Smart View deletion failed:');\n    }\n  }\n\n  @action\n  async save(callback) {\n    const { smartView } = this.args;\n\n    if (smartView.name === 'table') {\n      this.toastr.perform('error', 'Cannot use \"table\" reserved name for a new Smart View');\n      return;\n    }\n\n    await this.smartFeaturesService.saveSmartView(smartView, false, callback);\n  }\n\n  @action\n  discard() {\n    const { smartView } = this.args;\n\n    smartView.rollbackAttributes();\n    this.toastr.perform('success', `Smart View ${smartView.name} changes discarded.`);\n  }\n\n  @action\n  switchFramework(framework) {\n    switchFramework(this.args.smartView, framework);\n  }\n\n  @action\n  edit() {\n    this.router.transitionTo(\n      'project.rendering.data.collection.list.smart-view-editor',\n      this.args.smartView.name,\n    );\n  }\n\n  @action\n  handleAllowJavascriptChange(allowJavascript) {\n    this.args.smartView.allowJavascript = allowJavascript;\n\n    if (allowJavascript) {\n      this.args.smartView.componentCode = this.args.smartView.isReact\n        ? DEFAULT_REACT_COMPONENT_SNIPPET\n        : DEFAULT_COMPONENT_SNIPPET;\n    } else {\n      this.args.smartView.s3Versions.component = null;\n    }\n  }\n\n  redirect({ viewLists }) {\n    const viewList = viewLists.filter((view) => view.isSmart && !view.isDeleted)[0];\n    if (viewList) {\n      this.redirectToDetails(viewList.name);\n    } else {\n      this.router.transitionTo('project.rendering.data.collection.settings.views');\n    }\n  }\n\n  redirectToDetails(smartViewName) {\n    this.router.transitionTo(\n      'project.rendering.data.collection.settings.views.details',\n      smartViewName,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaSettingsCard\\n  @entity={{@smartView}}\\n  @entityName=\\\"Smart View\\\"\\n  @save={{this.save}}\\n  @discard={{this.discard}}\\n  @isSaveDisabled={{this.isInvalid}}\\n>\\n  <BetaSettingsCard::Section @title=\\\"Smart View Settings\\\">\\n    <Shared::BetaLabel @label=\\\"Display name\\\" @isRequired={{@smartView.isNew}} class=\\\"l-dmb\\\">\\n      <Shared::BetaInput\\n        @value={{@smartView.name}}\\n        @disabled={{not @smartView.isNew}}\\n        data-test-view-settings-details-name\\n      />\\n    </Shared::BetaLabel>\\n\\n    {{#if @smartView.isNew}}\\n      <Shared::BetaLabel @label=\\\"Framework\\\" class=\\\"l-dmb\\\">\\n        <Shared::BetaSelect\\n          @value={{one-way @smartView.currentFramework}}\\n          @options={{this.optionsSmartViewTypes}}\\n          @namePath=\\\"name\\\"\\n          @valuePath=\\\"value\\\"\\n          @onChange={{this.switchFramework}}\\n        />\\n      </Shared::BetaLabel>\\n    {{/if}}\\n\\n    <Shared::BetaLabel @label=\\\"Records Per Page\\\" class=\\\"l-dmb\\\">\\n      <Shared::BetaInput\\n        @value={{@smartView.recordsPerPage}}\\n        @type=\\\"number\\\"\\n        @min={{0}}\\n        @max={{this.maxRecordsPerPage}}\\n        data-test-view-settings-details-records\\n      />\\n    </Shared::BetaLabel>\\n\\n    {{#if @smartView.isReact}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"warning\\\"\\n        @canHide={{false}}\\n        @message=\\\"React smart views requires to allow javascript.\\\"\\n        class=\\\"c-view-settings-details__react-warning\\\"\\n        data-test-view-settings-details-react-warning\\n      />\\n    {{/if}}\\n    <Shared::AllowJsToggle\\n      @allowJavascript={{@smartView.allowJavascript}}\\n      @onAllowJavascriptChange={{this.handleAllowJavascriptChange}}\\n      @target=\\\"view\\\"\\n      class=\\\"c-view-settings-details__allow-js-toggle\\\"\\n    />\\n\\n    <Shared::Button::BetaButton\\n      @type=\\\"editor\\\"\\n      @text=\\\"Edit this Smart View\\\"\\n      @action={{this.edit}}\\n      @async={{false}}\\n      @disabled={{this.isInvalid}}\\n    />\\n  </BetaSettingsCard::Section>\\n  {{#if (and (not @smartView.isNew) @smartView.isSmart)}}\\n    <BetaSettingsCard::Section>\\n      <Button::BetaDeleteButton\\n        @entityName={{@smartView.name}}\\n        @description=\\\"You are about to DELETE the smart view “{{@smartView.name}}”. This operation is irreversible. If you are sure you want to delete this Smart View,\\\"\\n        @delete={{this.delete}}\\n        data-test-view-settings-details-delete\\n      />\\n    </BetaSettingsCard::Section>\\n  {{/if}}\\n</BetaSettingsCard>\\n', { moduleName: 'client/legacy/pods/components/view-settings-details/template.hbs' });\n","import type CustomActionModel from 'client/data/models/custom-action';\nimport type FieldModel from 'client/data/models/field';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type SummaryViewStateService from 'client/legacy/services/summary-view-state';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class VisualBuilderComponent extends Component {\n  @service('summary-view-state') summaryViewState: SummaryViewStateService;\n  @tracked fields: FieldModel[] = null;\n  @tracked relatedData: FieldModel[] = null;\n  @tracked customActions: CustomActionModel[] = null;\n  @tracked workflows: WorkflowModel[] = null;\n\n  get rawFields() {\n    return this.summaryViewState.fields;\n  }\n\n  @action\n  fillPanel() {\n    const { rawFields } = this;\n\n    if (!rawFields) {\n      return;\n    }\n\n    const relatedData = rawFields.filter((field) => this.isHasManyFieldOrIntegration(field));\n    this.relatedData = relatedData;\n\n    const fields = rawFields.reject(this.isHasManyFieldOrIntegration);\n    this.fields = fields;\n\n    const customActions = this.summaryViewState?.customActions;\n    this.customActions = customActions;\n\n    const workflows = this.summaryViewState?.workflows;\n    this.workflows = workflows;\n  }\n\n  isHasManyFieldOrIntegration(field: FieldModel) {\n    return field.rowEdit?.isRelatedData || !!field.integration;\n  }\n}\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport Sortable from 'sortablejs';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class VisualBuilderDraggableItemComponent extends Component {\n  static propTypes = {\n    items: PropTypes.arrayOf(PropTypes.object),\n    type: PropTypes.string.isRequired,\n    dragStartAction: PropTypes.func.isRequired,\n    dragEndAction: PropTypes.func.isRequired,\n  };\n\n  sortable = null;\n\n  @action\n  handleDidInsert(element) {\n    this.sortable = Sortable.create(element, {\n      group: {\n        name: 'draggable-item',\n        put: false,\n        pull: 'clone',\n      },\n      draggable: '.visual-builder-sortable-item',\n      handle: '.draggable-handle',\n      sort: false,\n      forceFallback: true,\n      onStart: this.args.dragStartAction,\n      onEnd: this.args.dragEndAction,\n    });\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.sortable?.destroy();\n  }\n\n  @action\n  itemName(item) {\n    if (this.args.type === 'data-display/record/summary/workflow-button') return item.id;\n    if (this.args.type === 'data-display/record/summary/field') return item.fieldName;\n    return item.name;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<ul class=\\\"visual-builder-fields\\\" {{did-insert this.handleDidInsert}} ...attributes>\\n  {{#each @items as |item|}}\\n    <li\\n      class=\\\"ui-state-default visual-builder-sortable-item draggable-handle connectedSortable\\\"\\n      data-item-name={{this.itemName item}}\\n      data-item-type={{@type}}\\n    >\\n      <div class=\\\"l-visual-builder__list__item\\\">\\n        {{#if (eq @type \\'data-display/record/summary/field\\')}}\\n          {{item.displayName}}\\n        {{else}}\\n          {{item.name}}\\n        {{/if}}\\n      </div>\\n    </li>\\n  {{/each}}\\n</ul>\\n', { moduleName: 'client/legacy/pods/components/visual-builder/draggable-item/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-visual-builder\\\"\\n  {{did-insert this.fillPanel}}\\n  {{did-update\\n    this.fillPanel\\n    this.summaryViewState.fields\\n    this.summaryViewState.customActions\\n    this.summaryViewState.workflows\\n  }}\\n>\\n  <div class=\\\"l-visual-builder__title\\\">\\n    <h1>\\n      Visual Builder\\n    </h1>\\n  </div>\\n\\n  <div class=\\\"l-sidebar__scroll l-visual-builder__scroll\\\">\\n    <VisualBuilder::VisualBuilderItem @label=\\\"Formatting\\\" @isEnabled={{true}}>\\n      <div class=\\\"js-draggable-section c-visual-builder__draggable-section\\\" gs-w=\\\"2\\\" gs-h=\\\"4\\\">\\n        <div class=\\\"l-visual-builder__list__item\\\">\\n          Section\\n        </div>\\n      </div>\\n    </VisualBuilder::VisualBuilderItem>\\n\\n    <VisualBuilder::VisualBuilderItem\\n      @label=\\\"Fields\\\"\\n      @isEnabled={{this.fields.length}}\\n      data-test-visual-builder-fields-section\\n    >\\n      <VisualBuilder::DraggableItem\\n        @items={{this.fields}}\\n        @type=\\\"data-display/record/summary/field\\\"\\n        @dragStartAction={{this.summaryViewState.dragStartFieldAction}}\\n        @dragEndAction={{this.summaryViewState.dragEndFieldAction}}\\n        data-test-visual-builder-field\\n      />\\n    </VisualBuilder::VisualBuilderItem>\\n\\n    <VisualBuilder::VisualBuilderItem @label=\\\"Related Data\\\" @isEnabled={{this.relatedData.length}}>\\n      {{#each this.relatedData as |field|}}\\n        <div\\n          class=\\\"js-draggable-section c-visual-builder__draggable-section\\\"\\n          gs-w=\\\"3\\\"\\n          gs-h=\\\"5\\\"\\n          fieldId={{field.id}}\\n        >\\n          <div class=\\\"l-visual-builder__list__item\\\">\\n            {{field.displayName}}\\n          </div>\\n        </div>\\n      {{/each}}\\n    </VisualBuilder::VisualBuilderItem>\\n\\n    <VisualBuilder::VisualBuilderItem\\n      @label=\\\"Actions\\\"\\n      @isEnabled={{this.customActions.length}}\\n      data-test-visual-builder-actions-section\\n    >\\n      <VisualBuilder::DraggableItem\\n        @items={{this.customActions}}\\n        @type=\\\"data-display/record/summary/custom-action-button\\\"\\n        @dragStartAction={{this.summaryViewState.dragStartCustomAction}}\\n        @dragEndAction={{this.summaryViewState.dragEndCustomAction}}\\n        data-test-visual-builder-action\\n      />\\n    </VisualBuilder::VisualBuilderItem>\\n    <VisualBuilder::VisualBuilderItem\\n      @label=\\\"Workflows\\\"\\n      @isEnabled={{this.workflows.length}}\\n      data-test-visual-builder-actions-section\\n    >\\n      <VisualBuilder::DraggableItem\\n        @items={{this.workflows}}\\n        @type=\\\"data-display/record/summary/workflow-button\\\"\\n        @dragStartAction={{this.summaryViewState.dragStartCustomAction}}\\n        @dragEndAction={{this.summaryViewState.dragEndCustomAction}}\\n        data-test-visual-builder-action\\n      />\\n    </VisualBuilder::VisualBuilderItem>\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/visual-builder/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { tagName } from '@ember-decorators/component';\nimport { GridStack } from 'gridstack';\n\n@tagName('')\nexport default class VisualBuilderVisualBuilderItemComponent extends Component {\n  isOpen = false;\n\n  didRender(...args) {\n    super.didRender(...args);\n    // GridStack is tagging the draggable in objects only when they are rendered.\n    // So we need to call this method every time the appropriate components are\n    // visible to make them draggable in.\n    const gridStackDraggableSections = document.getElementsByClassName('js-draggable-section');\n    if (gridStackDraggableSections?.length > 0) {\n      GridStack.setupDragIn('.js-draggable-section', {\n        revert: 'invalid',\n        scroll: true,\n        appendTo: '.c-project-rendering__main-container',\n        helper: 'clone',\n        handle: '.l-visual-builder__list__item',\n      });\n    }\n  }\n\n  @action\n  toggleSection() {\n    this.toggleProperty('isOpen');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"l-visual-builder__item {{unless @isEnabled \\'l-visual-builder__item--disabled\\'}}\\\"\\n  ...attributes\\n>\\n  <div class=\\\"l-visual-builder__section\\\" role=\\\"button\\\" {{on \\'click\\' this.toggleSection}}>\\n    <span class=\\\"l-visual-builder__item-name\\\">\\n      {{@label}}\\n    </span>\\n    {{#if @isEnabled}}\\n      {{#if this.isOpen}}\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName=\\\"arrow_drop_down\\\"\\n          @size=\\\"custom\\\"\\n          class=\\\"l-visual-builder__item-icon\\\"\\n        />\\n      {{else}}\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName=\\\"arrow_right\\\"\\n          @size=\\\"custom\\\"\\n          class=\\\"l-visual-builder__item-icon\\\"\\n        />\\n      {{/if}}\\n    {{/if}}\\n  </div>\\n  {{#if this.isOpen}}\\n    <div class=\\\"l-visual-builder__list\\\">\\n      {{yield}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/visual-builder/visual-builder-item/template.hbs' });\n","import { computed } from '@ember/object';\nimport Model from '@ember-data/model';\nimport moment from 'moment';\n\nimport { argument, arrayOf, oneOfType, optional } from 'client/decorators/argument';\nimport dateFormatting from 'client/decorators/date-formatting';\nimport validateArguments from 'client/decorators/validate';\nimport AbstractWidgetColumnLayout from 'client/legacy/pods/components/widgets/abstract-widget-column-layout';\nimport ColorUtils from 'client/utils/color-utils';\nimport checkCondition from 'client/utils/condition-checking';\n\n@dateFormatting\n@validateArguments\nexport default class AbstractConditionalFormattingColumnLayout extends AbstractWidgetColumnLayout {\n  @argument(\n    optional(\n      oneOfType([\n        null,\n        Date,\n        String,\n        Number,\n        Boolean,\n        Model,\n        arrayOf(oneOfType([null, Date, String, Number, Boolean])),\n      ]),\n    ),\n  )\n  value;\n\n  @computed('args.field.{enums,mappingValues,isEnum,isUsingAlteredValues}')\n  get enums() {\n    if (this.args.field.isUsingAlteredValues) {\n      return this.args.field.mappingValues.map((enumValue) => enumValue.value);\n    }\n    if (this.args.field.isEnum) {\n      return this.args.field.enums;\n    }\n\n    return [];\n  }\n\n  @computed('enums.length', 'args.field.conditionalFormatting.mode')\n  get colorMap() {\n    if (this.args.field.conditionalFormatting.mode === 'auto') {\n      const colors = ColorUtils.predefinedRandomColors(this.enums.length);\n\n      return this.enums.reduce(\n        (previous, current, index) => ({\n          ...previous,\n          [current]: colors[index],\n        }),\n        {},\n      );\n    }\n    return [];\n  }\n\n  @computed(\n    'dateFormat',\n    'args.field.type',\n    'args.field.widgetDisplay.parameters.format',\n    'args.label',\n    'args.value',\n  )\n  get formattedValue() {\n    let { value } = this.args;\n\n    // NOTICE: handle date format\n    if (this.args.field.type === 'Date' || this.args.field.type === 'Dateonly') {\n      value = moment(value, this.dateFormat);\n    } else if (this.args.field.type === 'Number') {\n      value = parseFloat(value, 10);\n    }\n\n    return value;\n  }\n\n  @computed('formattedValue', 'args.field.type', 'colorMap')\n  get colorEnumValue() {\n    let value = this.formattedValue;\n\n    // for Moment objects recast to string with correct format\n    if (value && value._isAMomentObject) {\n      value = value.format(value._f);\n    }\n\n    if (value in this.colorMap) {\n      return this.colorMap[value];\n    }\n    if (this.args.field.type === 'Number' && Number.isInteger(value)) {\n      return ColorUtils.predefinedColorForIndex(Math.abs(value));\n    }\n\n    return ColorUtils.randomColorBasedOnString(`${value}`);\n  }\n\n  @computed('formattedValue', 'args.field.{type,mappingValues,isUsingAlteredValues}')\n  get mappedFormattedValue() {\n    if (this.args.field.type !== 'Enum' && this.args.field.isUsingAlteredValues) {\n      const mapped = this.args.field.mappingValues.find(\n        (enumValue) => enumValue.value === this.formattedValue,\n      );\n      if (mapped) {\n        return mapped.label;\n      }\n    }\n\n    return this.formattedValue;\n  }\n\n  @computed('args.field.{type,isUsingAlteredValues}')\n  get type() {\n    // NOTICE: handle field type Number as String field type.\n    let { type } = this.args.field;\n    if (this.args.field.isUsingAlteredValues && type === 'Number') {\n      type = 'String';\n    }\n\n    return type;\n  }\n\n  // NOTICE: value is needed for recomputing, do not remove it even if not used in the scope\n  @computed(\n    'args.field.conditionalFormatting.defaultRule.{color,displayType}',\n    'args.field.conditionalFormatting.{shouldAutoFillMissingValues,mode,rules}',\n    'args.{type,value}',\n    'colorEnumValue',\n    'mappedFormattedValue',\n  )\n  get conditionalFormatting() {\n    if (this.args.field.conditionalFormatting) {\n      if (this.args.field.conditionalFormatting.mode === 'auto') {\n        return {\n          displayType: 'badge',\n          color: this.colorEnumValue,\n        };\n      }\n      if (this.args.field.conditionalFormatting.mode === 'custom') {\n        let data = null;\n        let conditionAlreadyApplied = false;\n\n        this.args.field.conditionalFormatting.rules.forEach((rule) => {\n          const operator = rule.operator.displayName;\n          if (\n            !conditionAlreadyApplied\n            && checkCondition(this.args.type, operator, this.mappedFormattedValue, rule.value)\n          ) {\n            data = {\n              displayType: rule.displayType,\n              color: rule.color,\n            };\n            conditionAlreadyApplied = true;\n          }\n        });\n\n        if (!conditionAlreadyApplied && this.args.field.conditionalFormatting.defaultRule) {\n          data = {\n            displayType: this.args.field.conditionalFormatting.defaultRule.displayType,\n            color: this.args.field.conditionalFormatting.defaultRule.color,\n          };\n          conditionAlreadyApplied = true;\n        }\n\n        if (\n          !conditionAlreadyApplied\n          && this.args.field.conditionalFormatting.shouldAutoFillMissingValues\n        ) {\n          data = {\n            displayType: 'badge',\n            color: ColorUtils.randomColorBasedOnString(`${this.args.value}`),\n          };\n        }\n\n        return data;\n      }\n    }\n\n    return null;\n  }\n}\n","import { computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport Field from 'client/data/models/field';\nimport { any, argument, oneOfType, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class AbstractWidgetColumnLayout extends Component {\n  /** @type {import('client/legacy/services/value-highlighter').default} */\n  @service valueHighlighter;\n\n  @argument(oneOfType([Field, Object])) field;\n  @argument(optional(String)) searchMatch;\n\n  @argument(any()) value;\n  @argument(any()) label;\n\n  @computed('args.{label,searchMatch}', 'valueHighlighter')\n  get valueLimited() {\n    return this.valueHighlighter.computeValueLimited({\n      label: this.args.label,\n      searchMatch: this.args.searchMatch,\n    });\n  }\n\n  @computed('args.label')\n  get isNumber() {\n    return (\n      !Number.isNaN(Number.parseFloat(this.args.label))\n      && Number.isFinite(Number.parseFloat(this.args.label))\n    );\n  }\n\n  @computed(\n    'args.{label,searchMatch}',\n    'getLang',\n    'isNumber',\n    'locale.currentLocale',\n    'valueHighlighter',\n  )\n  get valueWithHighlight() {\n    return this.valueHighlighter.computeValueWithHighlight({\n      label: this.args.label,\n      searchMatch: this.args.searchMatch,\n    });\n  }\n}\n","import Component from '@ember/component';\nimport { tagName } from '@ember-decorators/component';\n\n@tagName('')\nexport default class WidgetsDisplayAddressViewerWidgetLayoutComponent extends Component {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @label}}\\n  <p class=\\\"c-row-value\\\" data-test-display-widget-layout-address-viewer-for={{@field.fieldName}}>\\n    {{@label}}\\n  </p>\\n  <Widgets::ValueCopier @value={{@label}} @field={{@field}} />\\n{{else}}\\n  <p class=\\\"c-row-value c-row-value--disabled\\\">\\n    -\\n  </p>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/address-viewer/widget-layout/template.hbs' });\n","import { computed } from '@ember/object';\n\nimport AbstractWidgetColumnLayout from 'client/legacy/pods/components/widgets/abstract-widget-column-layout';\n\nexport default class WidgetsDisplayArrayWidgetColumnLayoutComponent extends AbstractWidgetColumnLayout {\n  @computed('args.label.[]', 'args.label.toArray')\n  get firstValues() {\n    if (this.args.label?.length > 5) {\n      return `${this.args.label.slice(0, 5).join(', ')},...`;\n    }\n\n    const label = this.args.label?.toArray ? this.args.label.toArray() : this.args.label;\n\n    return label?.join(', ');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @value}}\\n  [{{this.firstValues}}]\\n{{else}}\\n  []\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/array/widget-column-layout/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { classNameBindings, classNames, tagName } from '@ember-decorators/component';\n\nimport Field from 'client/data/models/field';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('span')\n@classNames('c-array')\n@classNameBindings('value::c-array--empty')\nexport default class WidgetsDisplayArrayWidgetLayoutComponent extends Component {\n  propTypes = {\n    value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),\n    label: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),\n    field: PropTypes.instanceOf(Field).isRequired,\n    searchMatch: PropTypes.string,\n  };\n\n  @computed('label')\n  get labelArrayFormated() {\n    if (this.label) {\n      return this.label.join(', ');\n    }\n    return '';\n  }\n\n  @computed('value')\n  get valueArrayFormated() {\n    if (this.value) {\n      return this.value.join(', ');\n    }\n    return '';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @value}}\\n  [\\n  {{this.labelArrayFormated}}\\n  ]\\n{{else}}\\n  <p class=\\\"c-row-value c-row-value--disabled\\\">\\n    -\\n  </p>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/array/widget-layout/template.hbs' });\n","import type EmberArray from '@ember/array';\n\nimport validateArguments from 'client/decorators/validate';\nimport AbstractWidgetColumnLayout from 'client/legacy/pods/components/widgets/abstract-widget-column-layout';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  value: EmberArray<string>;\n}\n\n@validateArguments\nexport default class WidgetsDisplayAssigneeArrayWidgetColumnLayoutComponent extends AbstractWidgetColumnLayout {\n  static propTypes = {\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n    value: PropTypes.arrayOf(PropTypes.string).isRequired,\n  };\n\n  private get getValue(): Array<string> {\n    return (this.args as Args).value?.toArray() || [];\n  }\n\n  get additionalAssignees(): string {\n    if (this.getValue.length <= 2) return '';\n    return `+${this.getValue.length - 2}`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-widget-column-display-assignee-array\\\" ...attributes>\\n  <Assignee @email={{get this.getValue 0}} @variant=\\\"picture\\\" />\\n  {{#if (get this.getValue 1)}}\\n    <Assignee @email={{get this.getValue 1}} @variant=\\\"picture\\\" />\\n    <div class=\\\"c-widget-column-display-assignee-array__number\\\" data-test-additionnal-assignees>\\n      {{this.additionalAssignees}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/assignee-array/widget-column-layout/template.hbs' });\n","import type EmberArray from '@ember/array';\n\nimport validateArguments from 'client/decorators/validate';\nimport AbstractWidgetColumnLayout from 'client/legacy/pods/components/widgets/abstract-widget-column-layout';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  value: EmberArray<string>;\n}\n\n@validateArguments\nexport default class WidgetsDisplayAssigneeArrayWidgetLayoutComponent extends AbstractWidgetColumnLayout {\n  static propTypes = {\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n    value: PropTypes.arrayOf(PropTypes.string).isRequired,\n  };\n\n  get getValue(): Array<string> {\n    return (this.args as Args).value?.toArray() || [];\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-widget-summary-display-assignee-array\\\" ...attributes>\\n  {{#each this.getValue as |email|}}\\n    <Assignee\\n      @email={{email}}\\n      @variant=\\\"full\\\"\\n      class=\\\"c-widget-summary-display-assignee-array__picture\\\"\\n    />\\n  {{/each}}\\n</div>\\n<Widgets::ValueCopier @value={{this.copiableValues}} @field={{@field}} />\\n', { moduleName: 'client/legacy/pods/components/widgets/display/assignee-array/widget-layout/template.hbs' });\n","import validateArguments from 'client/decorators/validate';\nimport AbstractWidgetColumnLayout from 'client/legacy/pods/components/widgets/abstract-widget-column-layout';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class WidgetsDisplayAssigneeWidgetColumnLayoutComponent extends AbstractWidgetColumnLayout {\n  static propTypes = {\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n    value: PropTypes.string.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-widget-column-display-assignee\\\">\\n  <Assignee @email={{@value}} @variant=\\\"picture\\\" />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/assignee/widget-column-layout/template.hbs' });\n","import validateArguments from 'client/decorators/validate';\nimport AbstractWidgetColumnLayout from 'client/legacy/pods/components/widgets/abstract-widget-column-layout';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class WidgetsDisplayAssigneeWidgetLayoutComponent extends AbstractWidgetColumnLayout {\n  static propTypes = {\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access\n    value: PropTypes.string.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Assignee @email={{@value}} @variant=\\\"full\\\" />\\n', { moduleName: 'client/legacy/pods/components/widgets/display/assignee/widget-layout/template.hbs' });\n","import { service } from '@ember/service';\nimport Model from '@ember-data/model';\nimport Component from '@glimmer/component';\n\nimport Field from 'client/data/models/field';\nimport validateArguments from 'client/decorators/validate';\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport { getLinkValueToDisplay } from 'client/utils/reference-field-utils';\n\n@validateArguments\nexport default class WidgetsDisplayBelongsToWidgetColumnLayoutComponent extends Component {\n  static propTypes = {\n    value: PropTypes.instanceOf(Model).isRequired,\n    field: PropTypes.instanceOf(Field).isRequired,\n    segmentId: PropTypes.string,\n  };\n\n  @service router;\n  @service currentUser;\n  @service lianaSession;\n  @service store;\n\n  /** @type {import('client/features/client-record/services/feature').default} */\n  @service('feature/client-record') clientRecordFeature;\n\n  get collection() {\n    return (\n      this.args.field?.referenceModel\n      || (this.args.value && getCollectionFromRecord(this.args.value))\n    );\n  }\n\n  get display() {\n    return getLinkValueToDisplay(this.collection, this.args.value);\n  }\n\n  get canRead() {\n    return this.args.value && this.currentUser.canReadCollection(this.collection);\n  }\n\n  get routeParameters() {\n    return this.router.currentRouteName.startsWith('project.rendering.data.collection')\n      ? [this.collection.shareableId, this.args.value?.id]\n      : [this.collection.shareableId, this.collection.shareableId, this.args.value?.id];\n  }\n\n  get recordPath() {\n    return this.clientRecordFeature.getRecordPath(this.collection);\n  }\n\n  click(event) {\n    if (event.target !== this.element) {\n      event.stopPropagation();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (and @value.id this.canRead)}}\\n  <Shared::Navigation::BetaLinkTo\\n    @type=\\\"info\\\"\\n    @text={{this.display}}\\n    @routeName={{this.recordPath}}\\n    @routeParameters={{this.routeParameters}}\\n    @underline={{false}}\\n    class=\\\"c-widget-column-display-belongs-to__link\\\"\\n    data-test-widget-display-belongs-to-column-layout\\n    data-dd-action-name=\\\"Click on BelongsTo column widget for {{@field.fieldName}}\\\"\\n  />\\n{{else}}\\n  {{this.display}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/belongs-to/widget-column-layout/template.hbs' });\n","import { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\nimport { getLinkValueToDisplay } from 'client/utils/reference-field-utils';\n\nexport default class WidgetsDisplayBelongsToWidgetLayoutComponent extends Component {\n  @service currentUser;\n  @service router;\n  @service lianaSession;\n\n  /** @type {import('client/features/client-record/services/feature').default} */\n  @service('feature/client-record') clientRecordFeature;\n\n  constructor(...args) {\n    super(...args);\n\n    this.recordPath = this.clientRecordFeature.getRecordPath(this.collection);\n  }\n\n  get collection() {\n    return (\n      this.args.field?.referenceModel\n      || (this.args.value && getCollectionFromRecord(this.args.value))\n    );\n  }\n\n  get canReadReferenceModel() {\n    return this.currentUser.canReadCollection(this.collection);\n  }\n\n  get belongsToRecord() {\n    return this.args.record?.[this.args.field.attributeNameWithRelationships];\n  }\n\n  get displayedText() {\n    return getLinkValueToDisplay(this.collection, this.belongsToRecord);\n  }\n\n  get routeParameters() {\n    if (this.router.currentRouteName.startsWith('responsive.browser-extension'))\n      return [\n        {\n          project_name: this.lianaSession.currentProject.name,\n        },\n        {\n          environment_name: this.lianaSession.rendering?.environment.name,\n          team_name: this.lianaSession.rendering?.team.name,\n        },\n        {\n          collection_id: this.collection.shareableId,\n        },\n        {\n          edit_collection_id: this.collection.shareableId,\n          record_id: this.belongsToRecord.id,\n        },\n      ];\n\n    return this.router.currentRouteName.startsWith('project.rendering.data.collection')\n      ? [this.collection.shareableId, this.belongsToRecord.id]\n      : [this.collection.shareableId, this.collection.shareableId, this.belongsToRecord.id];\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.belongsToRecord}}\\n  {{#if this.canReadReferenceModel}}\\n    <Shared::Navigation::BetaLinkTo\\n      @type=\\\"info\\\"\\n      @routeName={{this.recordPath}}\\n      @routeParameters={{this.routeParameters}}\\n      @text={{this.displayedText}}\\n      @size=\\\"small\\\"\\n      @noPadding={{true}}\\n      @underline={{false}}\\n      class=\\\"{{@class}} c-row-belongs-to__read-link\\\"\\n      data-dd-action-name=\\\"Click on BelongsTo widget for {{@field.fieldName}}\\\"\\n    />\\n  {{else}}\\n    <p class=\\\"c-row-value {{@class}}\\\" data-test-layout-belongs-to-cant-read>\\n      {{this.displayedText}}\\n    </p>\\n  {{/if}}\\n  <Widgets::ValueCopier @value={{this.displayedText}} @field={{@field}} />\\n{{else}}\\n  <p class=\\\"c-row-value c-row-value--disabled {{@class}}\\\">\\n    -\\n  </p>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/belongs-to/widget-layout/template.hbs' });\n","import AbstractWidgetColumnLayout from 'client/legacy/pods/components/widgets/abstract-widget-column-layout';\n\nexport default class WidgetsDisplayBooleanCheckboxWidgetColumnLayoutComponent extends AbstractWidgetColumnLayout {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Form::FormBoolean @checked={{@value}} @readMode={{true}} ...attributes />\\n', { moduleName: 'client/legacy/pods/components/widgets/display/boolean-checkbox/widget-column-layout/template.hbs' });\n","import AbstractWidgetColumnLayout from 'client/legacy/pods/components/widgets/abstract-widget-column-layout';\n\nexport default class WidgetsDisplayBooleanCheckboxWidgetLayoutComponent extends AbstractWidgetColumnLayout {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Form::FormBoolean\\n  @checked={{@value}}\\n  @readMode={{true}}\\n  data-test-display-widget-layout-boolean-checkbox-for={{@field.fieldName}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/boolean-checkbox/widget-layout/template.hbs' });\n","import { action } from '@ember/object';\n\nimport AbstractWidgetColumnLayout from 'client/legacy/pods/components/widgets/abstract-widget-column-layout';\n\nconst REGEX_COLOR_WITHOUT_HASHTAG = /^[A-Fa-f0-9]{6}$/;\nconst REGEX_COLOR_WITH_HASHTAG = /^#[A-Fa-f0-9]{6}$/;\n\nexport default class WidgetsDisplayColorViewerWidgetColumnLayoutComponent extends AbstractWidgetColumnLayout {\n  get colorCode() {\n    if (REGEX_COLOR_WITHOUT_HASHTAG.test(this.args.value)) {\n      return `#${this.args.value}`;\n    }\n    if (REGEX_COLOR_WITH_HASHTAG.test(this.args.value)) {\n      return this.args.value;\n    }\n    return null;\n  }\n\n  @action\n  setColor(element) {\n    if (element?.style) {\n      element.style.setProperty('--c-widget-display-color-viewer', this.colorCode);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-widget-column-display-color-viewer\\\"\\n  {{did-insert this.setColor}}\\n  {{did-update this.setColor @value}}\\n  data-test-widgets-display-color-viewer-column-layout\\n  ...attributes\\n></div>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/color-viewer/widget-column-layout/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\n@classNames('c-row-color-picker')\nexport default class WidgetsDisplayColorViewerWidgetLayoutComponent extends Component {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaInputColor @isDisabled={{true}} @value={{@value}} />\\n', { moduleName: 'client/legacy/pods/components/widgets/display/color-viewer/widget-layout/template.hbs' });\n","import { argument, oneOfType, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport AbstractConditionalFormattingColumnLayout from 'client/legacy/pods/components/widgets/abstract-conditional-formatting-column-layout';\n\n@validateArguments\nexport default class WidgetsDisplayDateWidgetColumnLayoutComponent extends AbstractConditionalFormattingColumnLayout {\n  @argument(optional(Boolean)) disabled;\n  @argument(oneOfType([null, Date, String])) value;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @value}}\\n  {{#if this.conditionalFormatting}}\\n    {{#if (eq this.conditionalFormatting.displayType \\'badge\\')}}\\n      <Shared::DataDisplay::BetaBadge\\n        @value={{moment-format @value this.dateFormat}}\\n        @color={{this.conditionalFormatting.color}}\\n        ...attributes\\n      />\\n    {{else}}\\n      <Shared::DataDisplay::FontDisplay\\n        @value={{moment-format @value this.dateFormat}}\\n        @color={{this.conditionalFormatting.color}}\\n        ...attributes\\n      />\\n    {{/if}}\\n  {{else}}\\n    {{moment-format @value this.dateFormat}}\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/date/widget-column-layout/template.hbs' });\n","import { argument, oneOfType, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport AbstractConditionalFormattingColumnLayout from 'client/legacy/pods/components/widgets/abstract-conditional-formatting-column-layout';\n\n@validateArguments\nexport default class WidgetsDisplayDateWidgetLayoutComponent extends AbstractConditionalFormattingColumnLayout {\n  @argument(optional(oneOfType([null, Date, String]))) value;\n\n  @argument(optional(Boolean)) disabled;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div ...attributes>\\n  {{#if @value}}\\n    {{#if this.conditionalFormatting}}\\n      {{#if (eq this.conditionalFormatting.displayType \\'badge\\')}}\\n        <Shared::DataDisplay::BetaBadge\\n          @value={{moment-format @value this.dateFormat}}\\n          @color={{this.conditionalFormatting.color}}\\n        />\\n      {{else}}\\n        <Shared::DataDisplay::FontDisplay\\n          @value={{moment-format @value this.dateFormat}}\\n          @color={{this.conditionalFormatting.color}}\\n        />\\n      {{/if}}\\n    {{else}}\\n      <p class=\\\"c-row-value\\\" data-test-display-widget-layout-date-for={{@field.fieldName}}>\\n        {{moment-format @value this.dateFormat}}\\n      </p>\\n    {{/if}}\\n  {{else}}\\n    <p class=\\\"c-row-value c-row-value--disabled\\\">\\n      -\\n    </p>\\n  {{/if}}\\n</div>\\n{{#if (not-eq (moment-format @value this.dateFormat) \\'Invalid date\\')}}\\n  <Widgets::ValueCopier @value={{moment-format @value this.dateFormat}} @field={{@field}} />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/date/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel @label=\\\"Format\\\" ...attributes>\\n  <div class=\\\"c-date-display-format-description\\\">\\n    Format following the syntax from\\n    <a\\n      href=\\\"https://momentjs.com/docs/#/displaying/format/\\\"\\n      rel=\\\"noopener noreferrer\\\"\\n      target=\\\"_blank\\\"\\n    >\\n      moment.js\\n    </a>\\n  </div>\\n  <Shared::BetaInput\\n    @value={{@widgetConfiguration.parameters.format}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.format) null}}\\n    @placeholder=\\\"DD/MM/YYYY HH:mm:ss\\\"\\n    data-test-widget-display-date-widget-settings-format\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/date/widget-settings/template.hbs' });\n","import type FieldModel from 'client/data/models/field';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { namespace } from 'client/utils/string-utils';\n\ninterface WidgetsDisplayEmbeddedDocumentWidgetLayoutComponentArgs {\n  value: ClientRecordModel;\n  field: FieldModel;\n}\n\nexport default class WidgetsDisplayEmbeddedDocumentWidgetLayoutComponent extends Component<WidgetsDisplayEmbeddedDocumentWidgetLayoutComponentArgs> {\n  @service declare store: StoreService;\n\n  get nestedRecord() {\n    return (\n      this.args.value\n      || this.store.createFragment(namespace(this.args.field.embeddedCollectionName, '-'))\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<section\\n  class=\\\"l-view__element l-overlay__embedded--document l-dpl\\\"\\n  data-test-display-widget-layout-embedded-document-for={{@field.fieldName}}\\n>\\n  <DataDisplay::Record::Details\\n    @collection={{@field.nestedOrReferencedCollection}}\\n    @record={{this.nestedRecord}}\\n    @rows={{@field.nestedOrReferencedCollection.viewEdit.visibleRowEdits}}\\n    @disableNested={{false}}\\n    @parentCollection={{@field.collection}}\\n    @parentRecord={{@record}}\\n    @readMode={{true}}\\n  />\\n</section>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/embedded-document/widget-layout/template.hbs' });\n","import type FieldModel from 'client/data/models/field';\nimport type WidgetConfigurationFragment from 'client/data/models/widget-configuration';\nimport type DownloadService from 'client/legacy/services/download';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type { WidgetDisplayTypeEnum } from 'client/utils/widgets';\n\nimport { isArray } from '@ember/array';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { cached, tracked } from '@glimmer/tracking';\n\nimport FileDataObject from 'client/legacy/pods/components/file-data-object';\nimport FileTypeUtils from 'client/utils/file-type';\n\ninterface WidgetsDisplayFileViewerComponentArgs {\n  field: FieldModel;\n  widgetConfiguration: WidgetConfigurationFragment<WidgetDisplayTypeEnum.FileViewer>;\n  value: string | string[];\n  label: string | string[];\n}\n\nexport default class WidgetsDisplayFileViewerComponent extends Component<WidgetsDisplayFileViewerComponentArgs> {\n  @service download: DownloadService;\n  @service errorHandler: ErrorHandlerService;\n\n  @tracked selectedData: FileDataObject | null = null;\n\n  willDestroy() {\n    super.willDestroy();\n\n    this.selectedData = null;\n  }\n\n  get prefix() {\n    return this.args.widgetConfiguration?.parameters?.prefix;\n  }\n\n  get size() {\n    return this.args.widgetConfiguration?.parameters?.size;\n  }\n\n  get fileWidth() {\n    return this.args.widgetConfiguration?.parameters?.width;\n  }\n\n  get fileHeight() {\n    return this.args.widgetConfiguration?.parameters?.height;\n  }\n\n  get allowRotation() {\n    return this.args.widgetConfiguration?.parameters?.allowRotation;\n  }\n\n  get allowZoom() {\n    return this.args.widgetConfiguration?.parameters?.allowZoom;\n  }\n\n  get isMultiple() {\n    return this.args.field?.isArray;\n  }\n\n  get hasValue() {\n    return this.dataArray.length;\n  }\n\n  get values(): string[] {\n    const { value } = this.args;\n    if (!value) {\n      return [];\n    }\n    return isArray(value) ? (value as string[]) : [value];\n  }\n\n  get labels(): string[] {\n    const { label } = this.args;\n    if (!label) {\n      return [];\n    }\n    return isArray(label) ? (label as string[]) : [label];\n  }\n\n  @cached\n  get dataArray() {\n    const { prefix, values, labels } = this;\n\n    return values.map((value, index) => {\n      const label = labels.objectAt(index);\n      const url = prefix ? `${prefix}${value}` : value;\n      let blobUrl: string;\n\n      if (url && FileTypeUtils.isValidBase64(url)) {\n        try {\n          blobUrl = FileTypeUtils.createObjectUrl(url);\n        } catch (error) {\n          this.errorHandler.handleError(\n            error as Error,\n            'Error displaying one of your file. Please reach your web logs to get more information',\n          );\n        }\n      }\n\n      return new FileDataObject({\n        label,\n        url,\n        blobUrl,\n        size: this.size,\n      });\n    });\n  }\n\n  get selectedIndex() {\n    if (!this.selectedData) {\n      return -1;\n    }\n\n    return this.dataArray.indexOf(this.selectedData);\n  }\n\n  @action\n  onImageLoaded(data: FileDataObject) {\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n\n    data.isLoading = false;\n  }\n\n  @action\n  onImageError(data: FileDataObject) {\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n\n    data.canLoadImage = false;\n    data.isLoading = false;\n  }\n\n  @action\n  zoomInImage(data: FileDataObject, event: MouseEvent) {\n    return this.zoomIn(event, data);\n  }\n\n  @action\n  zoomOutImage() {\n    this.selectedData = null;\n  }\n\n  @action\n  downloadData(data: FileDataObject) {\n    this.download.downloadBlobUrlAsFile(data.blobUrl, data.fileName);\n  }\n\n  zoomIn(event: MouseEvent, data: FileDataObject) {\n    event.stopPropagation();\n    event.preventDefault();\n\n    this.selectedData = data;\n    return false;\n  }\n}\n","import type FileDataObject from 'client/legacy/pods/components/file-data-object';\nimport type DownloadService from 'client/legacy/services/download';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { later } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport validateArguments from 'client/decorators/validate';\nimport FileTypeUtils from 'client/utils/file-type';\nimport { KEY } from 'client/utils/keyboard';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface WidgetsDisplayFileViewerImagePopupComponentArgs {\n  dataArray: FileDataObject[];\n  openIndex: number;\n  onClose: () => void;\n  withRotation: boolean;\n  withZoom: boolean;\n  isMultiple: boolean;\n}\n\n@validateArguments\nexport default class WidgetsDisplayFileViewerImagePopupComponent extends Component<WidgetsDisplayFileViewerImagePopupComponentArgs> {\n  @service download: DownloadService;\n\n  static propTypes = {\n    dataArray: PropTypes.arrayOf(\n      PropTypes.shape({\n        label: PropTypes.string.isRequired,\n        url: PropTypes.string.isRequired,\n      }),\n    ).isRequired,\n    openIndex: PropTypes.number,\n    onClose: PropTypes.func.isRequired,\n    withRotation: PropTypes.bool.isRequired,\n    withZoom: PropTypes.bool.isRequired,\n    isMultiple: PropTypes.bool.isRequired,\n  };\n\n  @tracked currentIndex = 0;\n  @tracked rotation = 0;\n  @tracked closed = false;\n  @tracked isLoading = true;\n  @tracked isImageLoaded = false;\n\n  private _originalWidth: number;\n  private _originalHeight: number;\n  private _originalMaxHeight: number;\n  private _originalMaxWidth: number;\n\n  _resizeListener: () => void;\n\n  get currentData() {\n    const index = this.currentIndex;\n    return index || index === 0 ? this.args.dataArray.objectAt(index) : null;\n  }\n\n  get currentIndexDisplay() {\n    return this.currentIndex + 1;\n  }\n\n  get currentElementId() {\n    return guidFor(this);\n  }\n\n  get imageId() {\n    return `${this.currentElementId}__image`;\n  }\n\n  get imageContainerId() {\n    return `${this.currentElementId}__image-container`;\n  }\n\n  get isRotated() {\n    return !!(this.rotation % 180);\n  }\n\n  constructor(owner: unknown, args: WidgetsDisplayFileViewerImagePopupComponentArgs) {\n    super(owner, args);\n\n    this.currentIndex = this.args.openIndex || 0;\n    document.addEventListener('keyup', this._onKeyUp);\n  }\n\n  willDestroy() {\n    super.willDestroy();\n\n    if (this._resizeListener) {\n      window.removeEventListener('resize', this._resizeListener);\n    }\n    document.removeEventListener('keyup', this._onKeyUp);\n  }\n\n  @action\n  close() {\n    this._close();\n  }\n\n  @action\n  onImageLoaded() {\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n\n    this.isLoading = false;\n    this.isImageLoaded = true;\n\n    if (!this._resizeListener) {\n      this._resizeListener = () => this.resize();\n      window.addEventListener('resize', this._resizeListener);\n    }\n\n    const width = this.imageElement.offsetWidth;\n    const height = this.imageElement.offsetHeight;\n\n    this.updateOriginalProperties(width, height);\n    if (FileTypeUtils.isUrlForSvg(this.currentData.url)) {\n      this.handleSvgWidth();\n    }\n  }\n\n  @action\n  onImageError() {\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n\n    this.isLoading = false;\n    this.currentData.canLoadImage = false;\n  }\n\n  @action\n  rotateLeft() {\n    this.updateRotation(-90);\n  }\n\n  @action\n  rotateRight() {\n    this.updateRotation(90);\n  }\n\n  @action\n  previous() {\n    this._previous();\n  }\n\n  @action\n  next() {\n    this._next();\n  }\n\n  @action\n  downloadData() {\n    this.download.downloadBlobUrlAsFile(this.currentData.blobUrl, this.currentData.fileName);\n  }\n\n  get imageElement() {\n    return document.getElementById(this.imageId) as HTMLImageElement;\n  }\n\n  get imageContainerElement() {\n    return document.getElementById(this.imageContainerId);\n  }\n\n  @action\n  _onKeyUp(event: KeyboardEvent) {\n    switch (event.key) {\n      case KEY.RIGHT_ARROW:\n        return this._next();\n      case KEY.LEFT_ARROW:\n        return this._previous();\n      case KEY.ESCAPE:\n        return this._close();\n      default:\n        return null;\n    }\n  }\n\n  _close() {\n    this.closed = true;\n    later(() => this.args.onClose(), 500);\n  }\n\n  _previous() {\n    if (this.currentIndex === 0) {\n      return;\n    }\n\n    this.resetState();\n    this.currentIndex -= 1;\n  }\n\n  _next() {\n    if (this.currentIndex + 1 === this.args.dataArray?.length) {\n      return;\n    }\n\n    this.resetState();\n    this.currentIndex += 1;\n  }\n\n  resetState() {\n    const { imageElement, imageContainerElement: containerElement } = this;\n\n    this.isLoading = true;\n    this.isImageLoaded = false;\n    this.rotation = 0;\n\n    if (!imageElement || !containerElement) {\n      return;\n    }\n    imageElement.style.setProperty('--image-popup-rotation', '0deg');\n    containerElement.style.setProperty('--image-popup-container-height', null);\n    containerElement.style.setProperty('--image-popup-container-width', null);\n    imageElement.style.setProperty('--image-popup-margin-left', '0');\n    imageElement.style.setProperty('--image-popup-margin-right', '0');\n    imageElement.style.setProperty('--image-popup-margin-bottom', '0');\n    imageElement.style.setProperty('--image-popup-margin-top', '0');\n  }\n\n  resize() {\n    const { imageElement, imageContainerElement: containerElement } = this;\n\n    let width = imageElement.offsetWidth;\n    let height = imageElement.offsetHeight;\n    if (this.rotation % 180) {\n      const newWidth = imageElement.offsetHeight;\n      const oldWidth = Number.parseInt(\n        containerElement.style.getPropertyValue('--image-popup-container-width'),\n        10,\n      );\n      const ratio = newWidth / oldWidth;\n\n      width = this._originalWidth * ratio;\n      height = this._originalHeight * ratio;\n    }\n    this.updateOriginalProperties(width, height);\n    this.updateSize();\n  }\n\n  updateSize() {\n    const { imageElement, imageContainerElement: containerElement } = this;\n\n    const width = imageElement.offsetWidth;\n    const height = imageElement.offsetHeight;\n\n    if (FileTypeUtils.isUrlForSvg(this.currentData.url)) {\n      this.handleSvgWidth();\n      return;\n    }\n\n    if (this.rotation % 180) {\n      const ratio = this._originalWidth / this._originalHeight;\n      const newHeight1 = Math.min(imageElement.naturalWidth, this._originalMaxHeight);\n      const newWidth1 = newHeight1 / ratio;\n      const newWidth2 = Math.min(imageElement.naturalHeight, this._originalMaxWidth);\n      const newHeight2 = newWidth2 * ratio;\n\n      const newHeight = Math.min(newHeight1, newHeight2);\n      const newWidth = Math.min(newWidth1, newWidth2);\n\n      containerElement.style.setProperty('--image-popup-container-height', `${newHeight + 1}px`);\n      containerElement.style.setProperty('--image-popup-container-width', `${newWidth + 1}px`);\n      if (height > width) {\n        const margin = (width - height) / 2;\n        imageElement.style.setProperty('--image-popup-margin-top', `${margin}px`);\n        imageElement.style.setProperty('--image-popup-margin-bottom', `${margin}px`);\n      } else {\n        const margin = (height - width) / 2;\n        imageElement.style.setProperty('--image-popup-margin-left', `${margin}px`);\n        imageElement.style.setProperty('--image-popup-margin-right', `${margin}px`);\n      }\n    } else {\n      containerElement.style.setProperty(\n        '--image-popup-container-height',\n        `${this._originalHeight + 1}px`,\n      );\n      containerElement.style.setProperty(\n        '--image-popup-container-width',\n        `${this._originalWidth + 1}px`,\n      );\n      imageElement.style.setProperty('--image-popup-margin-left', '0');\n      imageElement.style.setProperty('--image-popup-margin-right', '0');\n      imageElement.style.setProperty('--image-popup-margin-bottom', '0');\n      imageElement.style.setProperty('--image-popup-margin-top', '0');\n    }\n  }\n\n  updateOriginalProperties(width: number, height: number) {\n    const containerElement = this.imageContainerElement;\n    if (!containerElement) {\n      return;\n    }\n\n    this._originalWidth = width;\n    this._originalHeight = height;\n\n    const computedStyle = getComputedStyle(containerElement);\n    this._originalMaxHeight = Number.parseInt(computedStyle.maxHeight, 10);\n    this._originalMaxWidth = Number.parseInt(computedStyle.maxWidth, 10);\n  }\n\n  updateRotation(amount: number) {\n    const { imageElement, imageContainerElement: containerElement } = this;\n    const rotation = this.rotation + amount;\n    this.rotation = rotation;\n\n    if (!containerElement.style.getPropertyValue('--image-popup-container-height')) {\n      containerElement.style.setProperty(\n        '--image-popup-container-width',\n        `${containerElement.offsetWidth}px`,\n      );\n      containerElement.style.setProperty(\n        '--image-popup-container-height',\n        `${containerElement.offsetHeight}px`,\n      );\n    }\n\n    imageElement.style.setProperty('--image-popup-rotation', `${rotation}deg`);\n    this.updateSize();\n  }\n\n  handleSvgWidth() {\n    const containerElement = this.imageContainerElement;\n\n    if (this.rotation % 180) {\n      containerElement.style.setProperty(\n        '--image-popup-container-width',\n        `${this._originalMaxWidth}px`,\n      );\n    } else {\n      containerElement.style.setProperty(\n        '--image-popup-container-width',\n        `${this._originalMaxHeight}px`,\n      );\n    }\n    containerElement.style.removeProperty('--image-popup-container-height');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"widget-modal\\\">\\n  <div class=\\\"c-image-popup {{if this.closed \\'c-image-popup--fade-out\\'}}\\\">\\n    <div class=\\\"c-image-popup__container\\\" {{forest-on-click-outside this.close}}>\\n      <div class=\\\"l-image-popup-header\\\">\\n        <span class=\\\"c-image-popup__title\\\">\\n          {{this.currentData.labelFormatted}}\\n        </span>\\n        <i {{on \\'click\\' this.close}} class=\\\"material-icons c-image-popup__close\\\" role=\\\"button\\\">\\n          close\\n        </i>\\n      </div>\\n\\n      <div class=\\\"l-image-popup-content\\\">\\n        <div class=\\\"l-image-popup-content__left\\\">\\n          {{#if (or (not this.currentData.isSafe) this.currentData.isPdfOrInvalidPicture)}}\\n            <div class=\\\"c-image-popup__error\\\" title={{this.currentData.url}}>\\n              {{#if\\n                (or\\n                  (not this.currentData.isSafe)\\n                  (and this.currentData.isPdf this.currentData.isValidData)\\n                )\\n              }}\\n                <i class=\\\"material-icons c-image-popup__error-icon\\\">\\n                  visibility_off\\n                </i>\\n                <span class=\\\"c-image-popup__error-text\\\">\\n                  The preview is not available for this type of file\\n                </span>\\n              {{else}}\\n                <i\\n                  class=\\\"material-icons c-image-popup__error-icon c-image-popup__error-icon--error\\\"\\n                >\\n                  report_problem\\n                </i>\\n                <span class=\\\"c-image-popup__error-text\\\">\\n                  {{#if this.currentData.isBase64NotPrefixed}}\\n                    Missing prefix to base64 data\\n                  {{else if (or this.currentData.isBase64 this.currentData.isBase64Prefixed)}}\\n                    Content error\\n                  {{else if (not this.currentData.isValidData)}}\\n                    Wrong URL\\n                  {{else}}\\n                    File error\\n                  {{/if}}\\n                </span>\\n              {{/if}}\\n              {{#if this.currentData.isSafe}}\\n                <Shared::Navigation::BetaLinkTo\\n                  @type=\\\"primary\\\"\\n                  @href={{this.currentData.url}}\\n                  @text={{this.currentData.labelFormatted}}\\n                  @target=\\\"_blank\\\"\\n                  @textClass=\\\"c-image-popup__link-text\\\"\\n                  class=\\\"c-image-popup__link\\\"\\n                />\\n              {{else}}\\n                <Shared::Button::BetaButton\\n                  @type=\\\"link-primary\\\"\\n                  @text={{this.currentData.labelFormatted}}\\n                  @textClass=\\\"c-image-popup__link-text\\\"\\n                  @action={{this.downloadData}}\\n                  class=\\\"c-image-popup__link\\\"\\n                />\\n              {{/if}}\\n            </div>\\n          {{else if this.isLoading}}\\n            <div class=\\\"c-image-popup__loader\\\">\\n              <Shared::Feedback::BetaLoader class=\\\"c-image-popup__loader-icon\\\" />\\n              <span class=\\\"c-image-popup__loader-text\\\">\\n                Your image is loading…\\n              </span>\\n            </div>\\n          {{/if}}\\n\\n          {{#unless this.currentData.isPdfOrInvalidPicture}}\\n            <div\\n              id={{this.imageContainerId}}\\n              class=\\\"c-image-popup__image-container\\n                {{if @withRotation \\'c-image-popup__image-container--with-actions\\'}}\\\"\\n            >\\n              <img\\n                {{on \\'error\\' this.onImageError}}\\n                {{on \\'load\\' this.onImageLoaded}}\\n                id={{this.imageId}}\\n                src={{this.currentData.url}}\\n                alt={{this.currentData.labelFormatted}}\\n                class=\\\"c-image-popup__image\\n                  {{if this.isLoading \\'c-image-popup__image--loading\\'}}\\n                  {{if this.isRotated \\'c-image-popup__image--rotated\\'}}\\\"\\n              />\\n            </div>\\n          {{/unless}}\\n        </div>\\n\\n        {{#if (or @withRotation @withZoom)}}\\n          <div class=\\\"l-image-popup-content__right\\\">\\n            {{#if @isMultiple}}\\n              <div class=\\\"c-image-popup__carousel-navigation\\\">\\n                <Shared::Button::BetaButton\\n                  @type=\\\"link-primary\\\"\\n                  @underline={{false}}\\n                  @iconName=\\\"arrow_back\\\"\\n                  @disabled={{eq this.currentIndex 0}}\\n                  @action={{this.previous}}\\n                />\\n                <span class=\\\"c-image-popup__carousel-info\\\">\\n                  {{this.currentIndexDisplay}}\\n                  /\\n                  {{this.dataArray.length}}\\n                </span>\\n                <Shared::Button::BetaButton\\n                  @type=\\\"link-primary\\\"\\n                  @underline={{false}}\\n                  @iconName=\\\"arrow_forward\\\"\\n                  @disabled={{eq this.currentIndexDisplay this.dataArray.length}}\\n                  @action={{this.next}}\\n                />\\n              </div>\\n            {{/if}}\\n            {{#unless this.currentData.isPdf}}\\n              <div class=\\\"c-image-popup__zoom-wrapper\\\">\\n                {{#if (and @withZoom this.isImageLoaded)}}\\n                  <Widgets::Display::FileViewer::ZoomPopup\\n                    @imageId={{this.imageId}}\\n                    @rotation={{this.rotation}}\\n                    class=\\\"c-image-popup__zoom-container\\\"\\n                  />\\n                {{else}}\\n                  <div class=\\\"c-image-popup__zoom-placeholder\\\"></div>\\n                {{/if}}\\n              </div>\\n              {{#if @withRotation}}\\n                <div class=\\\"l-image-popup-actions\\\">\\n                  <div class=\\\"l-image-popup-actions__button\\\">\\n                    <Shared::Button::BetaButton\\n                      @type=\\\"secondary\\\"\\n                      @iconName=\\\"replay\\\"\\n                      @action={{this.rotateLeft}}\\n                      @async={{false}}\\n                      @disabled={{not this.isImageLoaded}}\\n                      class=\\\"c-image-popup__action\\\"\\n                    />\\n                    <span class=\\\"c-image-popup__action-text\\\">\\n                      Rotate Left\\n                    </span>\\n                  </div>\\n                  <div class=\\\"l-image-popup-actions__button\\\">\\n                    <Shared::Button::BetaButton\\n                      @type=\\\"secondary\\\"\\n                      @iconName=\\\"replay\\\"\\n                      @action={{this.rotateRight}}\\n                      @async={{false}}\\n                      @disabled={{not this.isImageLoaded}}\\n                      class=\\\"c-image-popup__action c-image-popup__action--rotate-right\\\"\\n                    />\\n                    <span class=\\\"c-image-popup__action-text\\\">\\n                      Rotate Right\\n                    </span>\\n                  </div>\\n                </div>\\n              {{/if}}\\n            {{/unless}}\\n          </div>\\n        {{/if}}\\n      </div>\\n    </div>\\n  </div>\\n</Shared::PortalContent>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/file-viewer/image-popup/template.hbs' });\n","import { action } from '@ember/object';\n\nimport Field from 'client/data/models/field';\nimport WidgetConfiguration from 'client/data/models/widget-configuration';\nimport validateArguments from 'client/decorators/validate';\nimport FileViewer from 'client/legacy/pods/components/widgets/display/file-viewer/component';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class WidgetsDisplayFileViewerWidgetColumnLayoutComponent extends FileViewer {\n  static propTypes = {\n    value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),\n    label: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),\n    field: PropTypes.instanceOf(Field).isRequired,\n    widgetConfiguration: PropTypes.instanceOf(WidgetConfiguration),\n  };\n\n  @action\n  handleClick(event: MouseEvent) {\n    return this.zoomIn(event, this.dataArray.firstObject);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! template-lint-disable no-nested-interactive }}\\n<div\\n  class={{shared/get-classes-with-modifiers\\n    \\'c-column-file-viewer\\'\\n    no-value=(not this.hasValue)\\n    multiple=this.isMultiple\\n  }}\\n  role=\\\"button\\\"\\n  {{on \\'click\\' this.handleClick}}\\n  ...attributes\\n>\\n  {{#if this.dataArray.length}}\\n    {{#if this.isMultiple}}\\n      <div class=\\\"c-column-file-viewer__multiple c-column-file-viewer__multiple--1\\\"></div>\\n      <div class=\\\"c-column-file-viewer__multiple c-column-file-viewer__multiple--2\\\"></div>\\n    {{/if}}\\n\\n    {{#each this.dataArray as |data index|}}\\n      {{#if (eq index 0)}}\\n        {{#if (and data.isSafe data.isLoading (not data.isPdfOrInvalidPicture))}}\\n          <i\\n            {{on \\'click\\' (fn this.zoomInImage data)}}\\n            class=\\\"material-icons c-column-file-viewer__icon c-column-file-viewer__icon--loader\\\"\\n            role=\\\"button\\\"\\n          >\\n            image\\n          </i>\\n        {{/if}}\\n\\n        {{#if (not data.isSafe)}}\\n          <Shared::Button::BetaButton\\n            @type=\\\"link-primary\\\"\\n            @iconName=\\\"file_download\\\"\\n            @isIconAfterText={{false}}\\n            @iconClass=\\\"c-column-file-viewer__link-icon\\\"\\n            @action={{fn this.downloadData data}}\\n            class=\\\"c-column-file-viewer__link\\\"\\n          />\\n        {{else if (and this.isMultiple data.isPdfOrInvalidPicture)}}\\n          <i\\n            class=\\\"material-icons c-column-file-viewer__icon\\\"\\n            {{on \\'click\\' (fn this.zoomInImage data)}}\\n            role=\\\"button\\\"\\n          >\\n            {{if data.isImage \\'broken_image\\' \\'insert_drive_file\\'}}\\n          </i>\\n        {{else if data.isPdfOrInvalidPicture}}\\n          <Shared::Navigation::BetaLinkTo\\n            @type=\\\"primary\\\"\\n            @href={{or data.blobUrl data.url}}\\n            @target=\\\"_blank\\\"\\n            @iconName={{if data.isImage \\'broken_image\\' \\'insert_drive_file\\'}}\\n            @isIconAfterText={{false}}\\n            @iconClass=\\\"c-column-file-viewer__link-icon\\\"\\n            class=\\\"c-column-file-viewer__link\\\"\\n          />\\n        {{else}}\\n          <img\\n            {{on \\'error\\' (fn this.onImageError data)}}\\n            {{on \\'load\\' (fn this.onImageLoaded data)}}\\n            {{on \\'click\\' (fn this.zoomInImage data)}}\\n            id={{concat this.elementId \\'__image\\'}}\\n            src={{data.url}}\\n            class=\\\"c-column-file-viewer__image\\n              {{if data.isLoading \\'c-column-file-viewer__image--hidden\\'}}\\\"\\n            alt={{data.value}}\\n            role=\\\"button\\\"\\n          />\\n        {{/if}}\\n      {{/if}}\\n    {{/each}}\\n  {{/if}}\\n\\n  {{#if this.selectedData}}\\n    <Widgets::Display::FileViewer::ImagePopup\\n      @openIndex={{this.selectedIndex}}\\n      @dataArray={{this.dataArray}}\\n      @onClose={{this.zoomOutImage}}\\n      @withRotation={{this.allowRotation}}\\n      @withZoom={{this.allowZoom}}\\n      @isMultiple={{this.isMultiple}}\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/file-viewer/widget-column-layout/template.hbs' });\n","import Field from 'client/data/models/field';\nimport WidgetConfiguration from 'client/data/models/widget-configuration';\nimport validateArguments from 'client/decorators/validate';\nimport FileViewer from 'client/legacy/pods/components/widgets/display/file-viewer/component';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class WidgetsDisplayFileViewerWidgetLayoutComponent extends FileViewer {\n  static propTypes = {\n    value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),\n    label: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),\n    field: PropTypes.instanceOf(Field).isRequired,\n    widgetConfiguration: PropTypes.instanceOf(WidgetConfiguration),\n  };\n\n  get sizeOrDefault() {\n    return this.size || 'medium';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-file-viewer\\\" ...attributes>\\n  {{#if @value}}\\n    {{#each this.dataArray as |data|}}\\n      <div class=\\\"l-file-viewer-item\\\">\\n        {{#if data.isValidData}}\\n          {{#if data.isSafe}}\\n            <Shared::Navigation::BetaLinkTo\\n              @type=\\\"primary\\\"\\n              @iconName=\\\"open_in_new\\\"\\n              @isIconAfterText={{false}}\\n              @href={{or data.blobUrl data.url}}\\n              @target=\\\"_blank\\\"\\n              @textClass=\\\"c-file-viewer__item-link-text\\\"\\n              class=\\\"c-file-viewer__item-link\\\"\\n            />\\n          {{else}}\\n            <Shared::Navigation::BetaLinkTo\\n              @type=\\\"primary\\\"\\n              @iconName=\\\"file_download\\\"\\n              @isIconAfterText={{false}}\\n              @textClass=\\\"c-file-viewer__item-link-text\\\"\\n              @onClick={{fn this.downloadData data}}\\n              class=\\\"c-file-viewer__item-link\\\"\\n            />\\n          {{/if}}\\n        {{/if}}\\n        {{#if (not data.isValidData)}}\\n          <div\\n            class=\\\"c-file-viewer__placeholder c-file-viewer__placeholder--{{this.sizeOrDefault}}\\\"\\n          >\\n            <i class=\\\"material-icons c-file-viewer__placeholder-icon\\\" title={{data.label}}>\\n              {{if data.isImage \\'broken_image\\' \\'report_problem\\'}}\\n            </i>\\n            <span class=\\\"c-file-viewer__placeholder-text\\\">\\n              {{#if data.isBase64NotPrefixed}}\\n                Missing prefix to base64 data\\n              {{else if (or data.isBase64 data.isBase64Prefixed)}}\\n                Content error\\n              {{else}}\\n                Wrong URL\\n              {{/if}}\\n            </span>\\n          </div>\\n        {{else if (or data.isImage data.shouldTryAsImage)}}\\n          {{#if data.isLoading}}\\n            <div\\n              class=\\\"c-file-viewer__loader\\\"\\n              role=\\\"button\\\"\\n              {{on \\'click\\' (fn this.zoomInImage data)}}\\n            >\\n              <Shared::Feedback::BetaLoader class=\\\"c-file-viewer__loader-icon\\\" />\\n              <span class=\\\"c-file-viewer__loader-text\\\">\\n                Your image is loading…\\n              </span>\\n            </div>\\n          {{/if}}\\n\\n          {{#if data.canLoadImage}}\\n            <img\\n              src={{data.url}}\\n              alt={{data.labelFormatted}}\\n              width={{this.fileWidth}}\\n              height={{this.fileHeight}}\\n              class=\\\"c-file-viewer__image c-file-viewer__image--{{this.sizeOrDefault}}\\n                {{if data.isLoading \\'c-file-viewer__image--hide\\'}}\\\"\\n              {{on \\'load\\' (fn this.onImageLoaded data)}}\\n              {{on \\'error\\' (fn this.onImageError data)}}\\n              {{on \\'click\\' (fn this.zoomInImage data)}}\\n              role=\\\"button\\\"\\n            />\\n          {{else}}\\n            <div\\n              class=\\\"c-file-viewer__placeholder c-file-viewer__placeholder--{{this.sizeOrDefault}}\\\"\\n            >\\n              <i class=\\\"material-icons c-file-viewer__placeholder-icon\\\" title={{data.label}}>\\n                broken_image\\n              </i>\\n              <span class=\\\"c-file-viewer__placeholder-text\\\">\\n                {{#if (or data.isBase64 data.isBase64Prefixed)}}\\n                  Content error\\n                {{else}}\\n                  Wrong URL\\n                {{/if}}\\n              </span>\\n            </div>\\n          {{/if}}\\n        {{else}}\\n          {{#if data.isLargeBase64}}\\n            <div\\n              class=\\\"c-file-viewer__placeholder c-file-viewer__placeholder--{{this.sizeOrDefault}}\\\"\\n            >\\n              <i class=\\\"material-icons c-file-viewer__placeholder-icon\\\" title={{data.label}}>\\n                visibility_off\\n              </i>\\n              <span class=\\\"c-file-viewer__placeholder-text\\\">\\n                Preview not available for large files\\n              </span>\\n            </div>\\n          {{else if (and data.canPreview data.isTextPreviewable)}}\\n            <pre\\n              class=\\\"c-file-viewer__text-content c-file-viewer__object--{{this.sizeOrDefault}}\\\"\\n            >{{data.textContent}}</pre>\\n          {{else if data.canPreview}}\\n            <object\\n              type={{data.base64Type}}\\n              width={{this.fileWidth}}\\n              height={{this.fileHeight}}\\n              data={{or data.blobUrl data.url}}\\n              class=\\\"c-file-viewer__object c-file-viewer__object--{{this.sizeOrDefault}}\\\"\\n            >\\n              <i class=\\\"material-icons c-file-viewer__icon\\\" title={{data.label}}>\\n                broken_image\\n              </i>\\n            </object>\\n          {{else}}\\n            <div\\n              class=\\\"c-file-viewer__placeholder c-file-viewer__placeholder--{{this.sizeOrDefault}}\\\"\\n            >\\n              <span class=\\\"c-file-viewer__placeholder-text\\\">\\n                Preview not available this type of file\\n              </span>\\n            </div>\\n          {{/if}}\\n        {{/if}}\\n      </div>\\n    {{/each}}\\n  {{else}}\\n    <p\\n      class=\\\"c-row-value c-row-value--disabled\\\"\\n      data-test-display-widget-layout-file-viewer-empty-for={{@field.fieldName}}\\n    >\\n      -\\n    </p>\\n  {{/if}}\\n\\n  {{#if this.selectedData}}\\n    <Widgets::Display::FileViewer::ImagePopup\\n      @openIndex={{this.selectedIndex}}\\n      @dataArray={{this.dataArray}}\\n      @onClose={{this.zoomOutImage}}\\n      @withRotation={{this.allowRotation}}\\n      @withZoom={{this.allowZoom}}\\n      @isMultiple={{this.isMultiple}}\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/file-viewer/widget-layout/template.hbs' });\n","import { action } from '@ember/object';\nimport { alias, equal } from '@ember/object/computed';\nimport Component from '@glimmer/component';\n\nimport Field from 'client/data/models/field';\nimport WidgetConfiguration from 'client/data/models/widget-configuration';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class WidgetsDisplayFileViewerWidgetSettingsComponent extends Component {\n  propTypes = {\n    field: PropTypes.instanceOf(Field).isRequired,\n    widgetConfiguration: PropTypes.instanceOf(WidgetConfiguration).isRequired,\n    displayErrors: PropTypes.bool,\n  };\n\n  @alias('args.widgetConfiguration.parameters.prefix') prefix;\n  @alias('args.widgetConfiguration.parameters.size') size;\n  @alias('args.widgetConfiguration.parameters.width') width;\n  @alias('args.widgetConfiguration.parameters.height') height;\n  @alias('args.widgetConfiguration.parameters.allowRotation') allowRotation;\n  @alias('args.widgetConfiguration.parameters.allowZoom') allowZoom;\n  @equal('size', 'custom') isCustom;\n\n  sizes = [\n    {\n      label: 'Small',\n      value: 'small',\n    },\n    {\n      label: 'Medium',\n      value: 'medium',\n    },\n    {\n      label: 'Large',\n      value: 'large',\n    },\n    {\n      label: 'Custom',\n      value: 'custom',\n    },\n  ];\n\n  @action\n  onSizeChange() {\n    if (!this.isCustom) {\n      this.width = undefined;\n      this.height = undefined;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-file-viewer-settings\\\" ...attributes>\\n  <Shared::BetaLabel\\n    @label=\\\"Allow rotation (image only)\\\"\\n    class=\\\"c-file-viewer-settings__input\\\"\\n    data-test-input-for=\\\"allow-rotation\\\"\\n  >\\n    <Shared::Form::Toggle @value={{this.allowRotation}} @onChange={{fn (mut this.allowRotation)}} />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Allow zoom (image only)\\\"\\n    class=\\\"c-file-viewer-settings__input\\\"\\n    data-test-input-for=\\\"allow-zoom\\\"\\n  >\\n    <Shared::Form::Toggle @value={{this.allowZoom}} @onChange={{fn (mut this.allowZoom)}} />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Prefix\\\"\\n    class=\\\"c-file-viewer-settings__input\\\"\\n    data-test-input-for=\\\"prefix\\\"\\n  >\\n    <Shared::BetaInput\\n      @value={{this.prefix}}\\n      @placeholder=\\\"https://aws.s3/my-folder/\\\"\\n      @onEmpty={{fn (mut this.prefix) null}}\\n    />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel\\n    @label=\\\"Preview size\\\"\\n    class=\\\"c-file-viewer-settings__input\\\"\\n    data-test-input-for=\\\"size\\\"\\n  >\\n    <Shared::BetaSelect\\n      @options={{this.sizes}}\\n      @namePath=\\\"label\\\"\\n      @valuePath=\\\"value\\\"\\n      @value={{this.size}}\\n      @state={{if @displayErrors (if this.size \\'success\\' \\'error\\')}}\\n      @onChange={{this.onSizeChange}}\\n    />\\n  </Shared::BetaLabel>\\n\\n  {{#if this.isCustom}}\\n    <Shared::BetaLabel\\n      @label=\\\"Preview width (px)\\\"\\n      class=\\\"c-file-viewer-settings__input\\\"\\n      data-test-input-for=\\\"width\\\"\\n    >\\n      <Shared::BetaInput\\n        @type=\\\"number\\\"\\n        @value={{this.width}}\\n        @state={{if @displayErrors (if this.width \\'success\\' \\'error\\')}}\\n      />\\n    </Shared::BetaLabel>\\n\\n    <Shared::BetaLabel\\n      @label=\\\"Preview height (px)\\\"\\n      class=\\\"c-file-viewer-settings__input\\\"\\n      data-test-input-for=\\\"height\\\"\\n    >\\n      <Shared::BetaInput\\n        @type=\\\"number\\\"\\n        @value={{this.height}}\\n        @state={{if @displayErrors (if this.height \\'success\\' \\'error\\')}}\\n      />\\n    </Shared::BetaLabel>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/file-viewer/widget-settings/template.hbs' });\n","import { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface WidgetsDisplayFileViewerZoomPopupComponentArgs {\n  imageId: string;\n  rotation: number;\n  onZoomAppear: () => void;\n  onZoomDisappear: () => void;\n}\n\ntype EventHandler<E extends HTMLElementEventMap[keyof HTMLElementEventMap]> = (\n  this: HTMLElement,\n  ev: E,\n) => void;\n\n@validateArguments\nexport default class WidgetsDisplayFileViewerZoomPopupComponent extends Component<WidgetsDisplayFileViewerZoomPopupComponentArgs> {\n  static propTypes = {\n    imageId: PropTypes.string.isRequired,\n    rotation: PropTypes.number.isRequired,\n    onZoomAppear: PropTypes.func,\n    onZoomDisappear: PropTypes.func,\n  };\n\n  @tracked public displayZoom = false;\n  private oldRotation: number = null;\n  private imageRotation: number = null;\n  private lens: HTMLElement | null = null;\n  private _zoom = 1.5;\n  private _zoomMax = 20;\n  private _zoomMin = 1.1;\n  private _margin = 0;\n  private _imageElementListeners: {\n    name: keyof HTMLElementEventMap;\n    listener: EventHandler<HTMLElementEventMap[keyof HTMLElementEventMap]>;\n  }[] = [];\n\n  private _lensListeners: {\n    name: keyof HTMLElementEventMap;\n    listener: EventHandler<HTMLElementEventMap[keyof HTMLElementEventMap]>;\n  }[] = [];\n\n  private _zoomContainerWidth = 0;\n  private _zoomContainerHeight = 0;\n  private _imageElementWidthWithRotation = 0;\n  private _imageElementHeightWithRotation = 0;\n  private _imageElementLeft = 0;\n  private _imageElementTop = 0;\n  private _imageElementWidth = 0;\n  private _imageElementHeight = 0;\n  private _imageElementScreenPositionLeft = 0;\n  private _imageElementScreenPositionTop = 0;\n  private _lensWidth = 0;\n  private _lensHeight = 0;\n  private _lensLeft = 0;\n  private _lensTop = 0;\n  private lensClientX = 0;\n  private lensClientY = 0;\n  private _dragElement: HTMLElement = null;\n  @tracked public imageElement: HTMLElement;\n  private zoomImageElement: HTMLElement;\n  private zoomContainerElement: HTMLElement;\n\n  private _resizeListener: (this: Window, event: HTMLElementEventMap['resize']) => void;\n  private _createLensHandler: EventHandler<MouseEvent>;\n  private _updateRotation: EventHandler<TransitionEvent>;\n\n  private get containerId() {\n    return guidFor(this);\n  }\n\n  private get lensId() {\n    return `${this.containerId}__lens`;\n  }\n\n  public get zoomContainerId() {\n    return `${this.containerId}__container`;\n  }\n\n  public get zoomImageId() {\n    return `${this.containerId}__image`;\n  }\n\n  private initZoomProperties() {\n    this._zoomMin = Math.max(\n      this._zoomContainerWidth / this._imageElementWidthWithRotation,\n      this._zoomContainerHeight / this._imageElementHeightWithRotation,\n      1.1,\n    );\n    this._zoomMin = Math.ceil(this._zoomMin * 10) / 10;\n    this._zoom = Math.max(this._zoom, this._zoomMin);\n  }\n\n  private initImageElementProperties() {\n    this._zoomContainerWidth = this.zoomContainerElement.offsetWidth;\n    this._zoomContainerHeight = this.zoomContainerElement.offsetHeight;\n\n    const imageBoundingRect = this.imageElement.getBoundingClientRect();\n    this._imageElementLeft = 0;\n    this._imageElementTop = 0;\n\n    this._imageElementWidth = this.imageElement.offsetWidth;\n    this._imageElementHeight = this.imageElement.offsetHeight;\n    this._imageElementWidthWithRotation =\n      this.args.rotation % 180 ? this.imageElement.offsetHeight : this.imageElement.offsetWidth;\n    this._imageElementHeightWithRotation =\n      this.args.rotation % 180 ? this.imageElement.offsetWidth : this.imageElement.offsetHeight;\n    this._imageElementScreenPositionLeft = imageBoundingRect.left;\n    this._imageElementScreenPositionTop = imageBoundingRect.top;\n    this.initZoomProperties();\n\n    this.updateMargin();\n    if (!this._createLensHandler) {\n      this._createLensHandler = (event: MouseEvent) => this.createOrDestroyLens(event);\n      this.imageElement.addEventListener('click', this._createLensHandler);\n    }\n    if (!this._updateRotation) {\n      this._updateRotation = (event: TransitionEvent) => {\n        if (event.propertyName !== 'transform') {\n          return;\n        }\n\n        const oldCenterLeft = this._lensLeft + this._lensWidth / 2;\n        const oldCenterTop = this._lensTop + this._lensHeight / 2;\n        const percentLeft = oldCenterLeft / this._imageElementWidthWithRotation;\n        const percentTop = oldCenterTop / this._imageElementHeightWithRotation;\n\n        this.initImageElementProperties();\n\n        if (!this.displayZoom) {\n          return;\n        }\n\n        this._lensWidth = Math.round(this._zoomContainerWidth / this._zoom);\n        this._lensHeight = Math.round(this._zoomContainerHeight / this._zoom);\n        this.lens.style.width = `${this._lensWidth}px`;\n        this.lens.style.height = `${this._lensHeight}px`;\n\n        let centerLeft;\n        let centerTop;\n        if (90 + this.oldRotation === this.args.rotation) {\n          centerLeft = (1 - percentTop) * this._imageElementWidthWithRotation;\n          centerTop = percentLeft * this._imageElementHeightWithRotation;\n        } else {\n          centerLeft = percentTop * this._imageElementWidthWithRotation;\n          centerTop = (1 - percentLeft) * this._imageElementHeightWithRotation;\n        }\n        this._lensLeft = centerLeft - this._lensWidth / 2;\n        this._lensTop = centerTop - this._lensHeight / 2;\n\n        this.moveLensAtNewPosition();\n        this.updateZoomImage();\n        this.lens.classList.remove('c-zoom-popup-lens--hidden');\n        this.zoomImageElement.classList.remove('c-zoom-popup__image--hidden');\n      };\n      this.imageElement.addEventListener('transitionend', this._updateRotation);\n    }\n    if (!this._resizeListener) {\n      this._resizeListener = () => {\n        if (!this.displayZoom) {\n          return;\n        }\n\n        const oldWidth = this._imageElementWidthWithRotation;\n        const oldCenterLeft = this._lensLeft + this._lensWidth / 2;\n        const oldCenterTop = this._lensTop + this._lensHeight / 2;\n        const percentLeft = oldCenterLeft / this._imageElementWidthWithRotation;\n        const percentTop = oldCenterTop / this._imageElementHeightWithRotation;\n\n        this.initImageElementProperties();\n\n        const ratioResize = this._imageElementWidthWithRotation / oldWidth;\n        this._zoom /= ratioResize;\n        this._lensWidth = Math.round(this._zoomContainerWidth / this._zoom);\n        this._lensHeight = Math.round(this._zoomContainerHeight / this._zoom);\n        this.lens.style.width = `${this._lensWidth}px`;\n        this.lens.style.height = `${this._lensHeight}px`;\n\n        const centerLeft = percentLeft * this._imageElementWidthWithRotation;\n        const centerTop = percentTop * this._imageElementHeightWithRotation;\n\n        this._lensLeft = centerLeft - this._lensWidth / 2;\n        this._lensTop = centerTop - this._lensHeight / 2;\n        this.moveLensAtNewPosition();\n        this.updateZoomImage();\n      };\n      window.addEventListener('resize', this._resizeListener);\n    }\n  }\n\n  private updateMargin() {\n    this._margin =\n      this.args.rotation % 180\n        ? (this._zoom * this._imageElementHeight - this._zoom * this._imageElementWidth) / 2\n        : 0;\n  }\n\n  private createOrDestroyLens(mouseEvent: MouseEvent) {\n    if (this.lens) {\n      this.destroyLens();\n    } else {\n      this.createLens(mouseEvent);\n    }\n  }\n\n  private createLens(mouseEvent: MouseEvent) {\n    const mouseX = mouseEvent.clientX;\n    const mouseY = mouseEvent.clientY;\n\n    this.lens = document.createElement('div');\n    this.lens.id = this.lensId;\n    this.lens.draggable = true;\n    this.lens.className = 'c-zoom-popup-lens';\n\n    let width = this._zoomContainerWidth / this._zoom;\n    let height = this._zoomContainerHeight / this._zoom;\n\n    if (\n      width > this._imageElementWidthWithRotation\n      || height > this._imageElementHeightWithRotation\n    ) {\n      if (this._imageElementWidthWithRotation < this._imageElementHeightWithRotation) {\n        const ratio = this._zoomContainerWidth / this._zoomContainerHeight;\n        width = this._imageElementWidthWithRotation / this._zoom;\n        height = width * ratio;\n      } else {\n        const ratio = this._zoomContainerHeight / this._zoomContainerWidth;\n        height = this._imageElementHeightWithRotation / this._zoom;\n        width = height * ratio;\n      }\n    }\n\n    const imageContainerLeft = this._imageElementScreenPositionLeft - this._imageElementLeft;\n    const imageContainerTop = this._imageElementScreenPositionTop - this._imageElementTop;\n    const left = mouseX - imageContainerLeft - width / 2;\n    const top = mouseY - imageContainerTop - height / 2;\n\n    this._lensWidth = width;\n    this._lensHeight = height;\n    this._lensLeft = left;\n    this._lensTop = top;\n\n    this.lens.style.width = `${width}px`;\n    this.lens.style.height = `${height}px`;\n    this.moveLensAtNewPosition();\n\n    this._dragElement = this.lens.cloneNode(true) as HTMLElement;\n    this._dragElement.classList.add('c-zoom-popup-lens--dragged-content');\n\n    this.addEventListener(this.imageElement, 'wheel', (event: WheelEvent) => this.zoomInOut(event));\n    this.addEventListener(this.lens, 'wheel', (event: WheelEvent) => this.zoomInOut(event));\n    this.addEventListener(this.lens, 'dragover', this._handleLensDragOver);\n    this.addEventListener(this.lens, 'drag', this._handleLensDrag);\n    this.addEventListener(this.lens, 'dragstart', this._handleLensDragStart);\n    this.addEventListener(this.lens, 'dragend', this._handleLensDragEnd);\n    this.addEventListener(this.lens, 'drop', (event: Event) => event.preventDefault());\n\n    this.imageElement.parentNode.appendChild(this.lens);\n\n    this.updateZoomImage();\n    this.displayZoom = true;\n    this.imageElement.style.cursor = 'zoom-out';\n    this.args.onZoomAppear?.();\n  }\n\n  @action\n  private _handleLensDragEnd() {\n    document.body.removeChild(this._dragElement);\n    this.lens.classList.remove('c-zoom-popup-lens--dragged');\n    this.imageElement.style.cursor = 'zoom-out';\n  }\n\n  @action\n  private _handleLensDragStart(event: DragEvent) {\n    event.dataTransfer.setData('text', 'foo');\n    this.lens.classList.add('c-zoom-popup-lens--dragged');\n    this.imageElement.style.cursor = 'grabbing';\n    document.body.appendChild(this._dragElement);\n    event.dataTransfer.setDragImage(this._dragElement, 0, 0);\n  }\n\n  @action\n  private _handleLensDrag(event: DragEvent) {\n    if (!event.clientX && !event.clientY) {\n      return this.moveLens({ clientX: this.lensClientX, clientY: this.lensClientY });\n    }\n    return this.moveLens(event);\n  }\n\n  @action\n  private _handleLensDragOver(event: DragEvent) {\n    this.lensClientX = event.clientX;\n    this.lensClientY = event.clientY;\n    event.preventDefault();\n  }\n\n  @action\n  public onRotationChange() {\n    if (this.lens) {\n      this.lens.classList.add('c-zoom-popup-lens--hidden');\n      this.zoomImageElement.classList.add('c-zoom-popup__image--hidden');\n    }\n    this.oldRotation = this.imageRotation || 0;\n    this.imageRotation = this.args.rotation;\n    this.zoomImageElement.style.setProperty('--image-rotation', `${this.imageRotation}deg`);\n  }\n\n  @action\n  handleDidInsert() {\n    this.imageElement = document.getElementById(this.args.imageId);\n    this.zoomImageElement = document.getElementById(this.zoomImageId);\n    this.zoomContainerElement = document.getElementById(this.zoomContainerId);\n\n    this.initImageElementProperties();\n    this.imageElement.style.cursor = 'zoom-in';\n  }\n\n  @action\n  public handleWillDestroy() {\n    if (this.lens) {\n      this.destroyLens();\n    }\n    if (this.imageElement) {\n      this.imageElement.style.cursor = null;\n    }\n    this.imageElement.removeEventListener('click', this._createLensHandler);\n    this.imageElement.removeEventListener('transitionend', this._updateRotation);\n    window.removeEventListener('resize', this._resizeListener);\n\n    this.imageElement = null;\n    this.zoomImageElement = null;\n    this.zoomContainerElement = null;\n  }\n\n  private destroyLens() {\n    this.displayZoom = false;\n    if (this.imageElement) {\n      this.imageElement.style.cursor = 'zoom-in';\n    }\n    this.lens.parentNode.removeChild(this.lens);\n\n    this._imageElementListeners.forEach(({ name, listener }) =>\n      this.imageElement.removeEventListener(name, listener),\n    );\n    this._lensListeners.forEach(({ name, listener }) =>\n      this.lens.removeEventListener(name, listener),\n    );\n\n    this._dragElement = null;\n    this.lens = null;\n    this.args.onZoomDisappear?.();\n  }\n\n  private zoomInOut(event: WheelEvent) {\n    const delta = event.deltaY > 0 ? 0.1 : -0.1;\n\n    this._zoom = Math.round((this._zoom + delta) * 10) / 10;\n\n    if (this._zoom > this._zoomMax) {\n      this._zoom = this._zoomMax;\n    } else if (this._zoom < this._zoomMin) {\n      this._zoom = this._zoomMin;\n    } else {\n      const oldLensWidth = this._lensWidth;\n      const oldLensHeight = this._lensHeight;\n\n      this._lensWidth = Math.round(this._zoomContainerWidth / this._zoom);\n      this._lensHeight = Math.round(this._zoomContainerHeight / this._zoom);\n      this._lensLeft += (oldLensWidth - this._lensWidth) / 2;\n      this._lensTop += (oldLensHeight - this._lensHeight) / 2;\n\n      this.lens.style.width = `${this._lensWidth}px`;\n      this.lens.style.height = `${this._lensHeight}px`;\n      this.updateMargin();\n      this.moveLensAtNewPosition();\n\n      this.updateZoomImage();\n    }\n  }\n\n  private moveLens(mouseEvent: { clientX: number; clientY: number }) {\n    const mouseX = mouseEvent.clientX;\n    const mouseY = mouseEvent.clientY;\n    if (mouseX === 0 && mouseY === 0) {\n      return;\n    }\n    const parentLeftOnScreen = this._imageElementScreenPositionLeft - this._imageElementLeft;\n    const parentTopOnScreen = this._imageElementScreenPositionTop - this._imageElementTop;\n    this._lensLeft = mouseX - parentLeftOnScreen - this._lensWidth / 2;\n    this._lensTop = mouseY - parentTopOnScreen - this._lensHeight / 2;\n\n    this.moveLensAtNewPosition();\n    this.updateZoomImage();\n  }\n\n  private moveLensAtNewPosition() {\n    const endLeftLens = this._lensLeft + this._lensWidth;\n    const endLeftImage = this._imageElementWidthWithRotation + this._imageElementLeft;\n    if (endLeftLens > endLeftImage) {\n      this._lensLeft = this._imageElementWidthWithRotation - this._lensWidth;\n    } else if (this._lensLeft < 0) {\n      this._lensLeft = 0;\n    }\n\n    const endTopLens = this._lensTop + this._lensHeight;\n    const endTopImage = this._imageElementHeightWithRotation + this._imageElementTop;\n    if (endTopLens > endTopImage) {\n      this._lensTop = this._imageElementHeightWithRotation - this._lensHeight;\n    } else if (this._lensTop < 0) {\n      this._lensTop = 0;\n    }\n\n    this.lens.style.left = `${this._lensLeft}px`;\n    this.lens.style.top = `${this._lensTop}px`;\n  }\n\n  private updateZoomImage() {\n    this.zoomImageElement.style.width = `${Math.round(this._zoom * this._imageElementWidth)}px`;\n    this.zoomImageElement.style.height = `${Math.round(this._zoom * this._imageElementHeight)}px`;\n    this.zoomImageElement.style.left = `${\n      this._margin - Math.round(this._zoom * this._lensLeft)\n    }px`;\n    this.zoomImageElement.style.top = `${-this._margin - Math.round(this._zoom * this._lensTop)}px`;\n  }\n\n  private addEventListener<EventName extends keyof HTMLElementEventMap>(\n    element: HTMLElement,\n    eventName: EventName,\n    eventHandler: EventHandler<HTMLElementEventMap[EventName]>,\n  ) {\n    element.addEventListener(eventName, eventHandler);\n\n    if (element === this.imageElement) {\n      this._imageElementListeners.push({\n        name: eventName,\n        listener: eventHandler as EventHandler<HTMLElementEventMap[keyof HTMLElementEventMap]>,\n      });\n    } else {\n      this._lensListeners.push({\n        name: eventName,\n        listener: eventHandler as EventHandler<HTMLElementEventMap[keyof HTMLElementEventMap]>,\n      });\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-zoom-popup\\\" data-test-widgets-display-file-viewer-zoom-popup ...attributes>\\n  <div\\n    id={{this.zoomContainerId}}\\n    class=\\\"c-zoom-popup__container\\\"\\n    {{did-update this.onRotationChange @rotation}}\\n    {{did-insert this.handleDidInsert}}\\n    {{will-destroy this.handleWillDestroy}}\\n  >\\n    <img\\n      id={{this.zoomImageId}}\\n      src={{this.imageElement.src}}\\n      class=\\\"c-zoom-popup__image {{unless this.displayZoom \\'c-zoom-popup__image--hidden\\'}}\\\"\\n      alt=\\\"zoom\\\"\\n    />\\n\\n    {{#unless this.displayZoom}}\\n      <div class=\\\"c-zoom-popup__placeholder\\\">\\n        <i class=\\\"material-icons c-zoom-popup__placeholder-icon\\\">\\n          zoom_in\\n        </i>\\n        <span class=\\\"c-zoom-popup__placeholder-text\\\">\\n          Click inside the picture to zoom\\n        </span>\\n      </div>\\n    {{/unless}}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/file-viewer/zoom-popup/template.hbs' });\n","import { computed } from '@ember/object';\nimport { readOnly } from '@ember/object/computed';\n\nimport AbstractWidgetColumnLayout from 'client/legacy/pods/components/widgets/abstract-widget-column-layout';\nimport { jsonFieldToString } from 'client/utils/string-utils';\n\nexport default class WidgetsDisplayJsonWidgetColumnLayoutComponent extends AbstractWidgetColumnLayout {\n  @readOnly('args.field.isJson') isTypeJson;\n  @readOnly('args.field.isEmbedded') isEmbedded;\n\n  @computed('args.value', 'isEmbedded', 'isTypeJson')\n  get valueDisplayed() {\n    const valueDisplayed = jsonFieldToString(\n      this.args.value,\n      this.isTypeJson || this.isEmbedded,\n      false,\n    );\n    if (valueDisplayed.length > 80) {\n      return `${valueDisplayed.substring(0, 80)}…`;\n    }\n    return valueDisplayed;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @value}}\\n  {{this.valueDisplayed}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/json/widget-column-layout/template.hbs' });\n","import { readOnly } from '@ember/object/computed';\nimport Component from '@glimmer/component';\n\nimport { jsonFieldToString } from 'client/utils/string-utils';\n\nexport default class WidgetsDisplayJsonWidgetLayoutComponent extends Component {\n  @readOnly('args.field.isJson') isTypeJson;\n  @readOnly('args.field.isEmbedded') isEmbedded;\n\n  get jsonToDisplay() {\n    return jsonFieldToString(this.args.value, this.isTypeJson || this.isEmbedded);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaTextarea\\n  @value={{this.jsonToDisplay}}\\n  @resizable={{true}}\\n  rows={{10}}\\n  disabled={{true}}\\n  class={{@class}}\\n  data-test-display-widget-layout-json-for={{@field.fieldName}}\\n  @height={{@height}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/json/widget-layout/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tagName } from '@ember-decorators/component';\n\nimport Field from 'client/data/models/field';\nimport WidgetConfiguration from 'client/data/models/widget-configuration';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('')\nexport default class WidgetsDisplayLinkWidgetColumnLayoutComponent extends Component {\n  /** @type {import('client/legacy/services/value-highlighter').default} */\n  @service valueHighlighter;\n\n  propTypes = {\n    value: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array]),\n    label: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array]),\n    field: PropTypes.instanceOf(Field).isRequired,\n    widgetConfiguration: PropTypes.instanceOf(WidgetConfiguration).isRequired,\n    searchMatch: PropTypes.string,\n  };\n\n  @alias('widgetConfiguration.parameters.title') title;\n\n  @computed('title', 'valueLimited')\n  get displayedText() {\n    return this.title || this.valueLimited;\n  }\n\n  @computed('label', 'searchMatch', 'valueHighlighter')\n  get valueLimited() {\n    return this.valueHighlighter.computeValueLimited({\n      label: this.label,\n      searchMatch: this.searchMatch,\n    });\n  }\n\n  @computed('widgetConfiguration.parameters.targetSelf')\n  get target() {\n    return this.widgetConfiguration?.parameters?.targetSelf ? '_self' : '_blank';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @value}}\\n  <Shared::Navigation::BetaLinkTo\\n    @type=\\\"primary\\\"\\n    @href={{@value}}\\n    @target={{this.target}}\\n    @text={{this.displayedText}}\\n    @size=\\\"small\\\"\\n    @underline={{false}}\\n    class={{@class}}\\n    data-dd-action-name=\\\"Click on link column widget for {{@field.fieldName}}\\\"\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/link/widget-column-layout/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { tagName } from '@ember-decorators/component';\n\nimport Field from 'client/data/models/field';\nimport WidgetConfiguration from 'client/data/models/widget-configuration';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('')\nexport default class WidgetsDisplayLinkWidgetLayoutComponent extends Component {\n  propTypes = {\n    value: PropTypes.string,\n    label: PropTypes.string.isRequired,\n    field: PropTypes.instanceOf(Field).isRequired,\n    widgetConfiguration: PropTypes.instanceOf(WidgetConfiguration).isRequired,\n  };\n\n  @alias('widgetConfiguration.parameters.title') title;\n\n  @computed('title', 'value')\n  get displayedText() {\n    return this.title || this.value;\n  }\n\n  @computed('widgetConfiguration.parameters.targetSelf')\n  get target() {\n    return this.widgetConfiguration?.parameters?.targetSelf ? '_self' : '_blank';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @value}}\\n  <Shared::Navigation::BetaLinkTo\\n    @type=\\\"primary\\\"\\n    @size=\\\"small\\\"\\n    @noPadding={{true}}\\n    @underline={{false}}\\n    @href={{@value}}\\n    @target={{this.target}}\\n    @text={{this.displayedText}}\\n    class={{@class}}\\n    data-dd-action-name=\\\"Click on link widget for {{@field.fieldName}}\\\"\\n  />\\n  <Widgets::ValueCopier @value={{this.value}} @field={{@field}} />\\n{{else}}\\n  <p class=\\\"c-row-value c-row-value--disabled {{@class}}\\\">\\n    -\\n  </p>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/link/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel\\n  @label=\\\"Title\\\"\\n  @description=\\\"Display the following title instead of the link\\\"\\n  ...attributes\\n>\\n  <Shared::BetaInput\\n    @value={{one-way @widgetConfiguration.parameters.title}}\\n    @onChange={{fn (mut @widgetConfiguration.parameters.title)}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.title) null}}\\n    data-test-widget-link-label\\n  />\\n</Shared::BetaLabel>\\n<Shared::BetaLabel @label=\\\"Target\\\" @description=\\\"Open the link in the same tab\\\" ...attributes>\\n  <Shared::Form::Toggle\\n    @value={{one-way @widgetConfiguration.parameters.targetSelf}}\\n    @onChange={{fn (mut @widgetConfiguration.parameters.targetSelf)}}\\n    data-test-widget-link-target\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/link/widget-settings/template.hbs' });\n","import { isArray } from '@ember/array';\nimport Component from '@ember/component';\nimport { computed } from '@ember/object';\n\nimport Field from 'client/data/models/field';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class WidgetsDisplayMapWidgetColumnLayoutComponent extends Component {\n  propTypes = {\n    value: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array]),\n    label: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array]),\n    field: PropTypes.instanceOf(Field).isRequired,\n  };\n\n  @computed('label')\n  get labelFormatted() {\n    if (isArray(this.label)) {\n      return JSON.stringify(this.label);\n    }\n    return this.label;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{this.labelFormatted}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/map/widget-column-layout/template.hbs' });\n","import { isArray } from '@ember/array';\nimport Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { run } from '@ember/runloop';\nimport { tagName } from '@ember-decorators/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Field from 'client/data/models/field';\nimport WidgetConfiguration from 'client/data/models/widget-configuration';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('')\nexport default class WidgetsDisplayMapWidgetLayoutComponent extends Component {\n  propTypes = {\n    value: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array]),\n    field: PropTypes.instanceOf(Field).isRequired,\n    widgetConfiguration: PropTypes.instanceOf(WidgetConfiguration),\n  };\n\n  dragging = false;\n  scrollWheelZoom = false;\n  tileUrl = '//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';\n  tileAttribution = 'Map data © <a href=\"http://openstreetmap.org\">OpenStreetMap</a> contributors';\n  @alias('widgetConfiguration.parameters.reverseCoordinates') isReverse;\n  @tracked shouldDisplay = false;\n\n  @computed('value', 'isReverse')\n  get latitude() {\n    return this.getCoordinate(true);\n  }\n\n  @computed('value', 'isReverse')\n  get longitude() {\n    return this.getCoordinate(false);\n  }\n\n  @computed('latitude', 'longitude')\n  get location() {\n    return [this.latitude, this.longitude];\n  }\n\n  // Display map later, to prevent wrong sizing in GridStack summary view\n  @action\n  initDisplayTimeout() {\n    run(() => {\n      this.shouldDisplay = true;\n    });\n  }\n\n  getCoordinate(latitude) {\n    const reverseIndex = latitude ? 1 : 0;\n    const basicIndex = latitude ? 0 : 1;\n    const index = this.isReverse ? reverseIndex : basicIndex;\n    if (!this.value) {\n      return null;\n    }\n\n    let coordinateNotParsed;\n    let coordinate;\n    if (isArray(this.value)) {\n      coordinateNotParsed = this.value.toArray()[index];\n      coordinate = Number(coordinateNotParsed);\n    } else {\n      try {\n        coordinateNotParsed = this.value.split(',')[index];\n        coordinate = Number(coordinateNotParsed);\n      } catch (error) {\n        console.error(`Unexpected Map ${latitude ? 'latitude' : 'longitude'} format:`, error);\n        return null;\n      }\n    }\n\n    if (Number.isNaN(coordinate)) {\n      console.error(\n        `Unexpected Map ${latitude ? 'latitude' : 'longitude'} format:`,\n        coordinateNotParsed,\n      );\n    }\n\n    return coordinate;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div {{did-insert this.initDisplayTimeout}} ...attributes>\\n  {{#if this.shouldDisplay}}\\n    {{#if this.longitude}}\\n      <LeafletMap\\n        @lat={{this.latitude}}\\n        @lng={{this.longitude}}\\n        @zoom={{12}}\\n        @dragging={{this.dragging}}\\n        @class={{this.class}}\\n        @scrollWheelZoom={{this.scrollWheelZoom}}\\n        as |layers|\\n      >\\n        <layers.tile @url={{this.tileUrl}} @attribution={{this.tileAttribution}} />\\n        <layers.marker @location={{this.location}} as |marker|>\\n          <marker.popup>\\n            latitude:\\n            {{this.latitude}}, longitude:\\n            {{this.longitude}}\\n          </marker.popup>\\n        </layers.marker>\\n      </LeafletMap>\\n    {{else}}\\n      <LeafletMap\\n        @lat={{0}}\\n        @lng={{0}}\\n        @zoom={{1}}\\n        @dragging={{this.dragging}}\\n        @class={{this.class}}\\n        @scrollWheelZoom={{this.scrollWheelZoom}}\\n        data-test-display-widget-layout-map-for={{@field.fieldName}}\\n      >\\n        <TileLayer @url={{this.tileUrl}} @attribution={{this.tileAttribution}} />\\n      </LeafletMap>\\n    {{/if}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/map/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel @label=\\\"Reverse coordinates\\\" ...attributes>\\n  <Form::BetaCheckbox @value={{@widgetConfiguration.parameters.reverseCoordinates}} />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/map/widget-settings/template.hbs' });\n","import AbstractWidgetColumnLayout from 'client/legacy/pods/components/widgets/abstract-widget-column-layout';\n\nexport default class WidgetsDisplayMultiLineTextWidgetColumnLayoutComponent extends AbstractWidgetColumnLayout {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{this.valueLimited}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/multi-line-text/widget-column-layout/template.hbs' });\n","import Component from '@glimmer/component';\n\nexport default class WidgetsDisplayMultiLineTextWidgetLayoutComponent extends Component {\n  get labelFormatted() {\n    return this.args.label && (this.args.field.isJson || this.args.field.isArray)\n      ? JSON.stringify(this.args.label, null, 2)\n      : this.args.label;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @label}}\\n  <p\\n    class=\\\"c-row-value c-row-value--multiline {{@class}}\\\"\\n    data-test-display-widget-layout-multi-line-text-for={{@field.fieldName}}\\n    ...attributes\\n  >\\n    {{~this.labelFormatted~}}\\n  </p>\\n  <Widgets::ValueCopier @value={{this.labelFormatted}} @field={{@field}} />\\n{{else}}\\n  <p class=\\\"c-row-value c-row-value--disabled {{@class}}\\\" ...attributes>\\n    -\\n  </p>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/multi-line-text/widget-layout/template.hbs' });\n","import type WidgetConfigurationFragment from 'client/data/models/widget-configuration';\nimport type { WidgetDisplayTypeEnum } from 'client/utils/widgets';\n\nimport { isNone } from '@ember/utils';\n\nimport AbstractConditionalFormattingColumnLayout from 'client/legacy/pods/components/widgets/abstract-conditional-formatting-column-layout';\n\ntype AbstractNumberDisplayWidgetArgs = {\n  widgetConfiguration: WidgetConfigurationFragment<WidgetDisplayTypeEnum.Number>;\n  label: string;\n};\n\nexport default class AbstractNumberDisplayWidget extends AbstractConditionalFormattingColumnLayout {\n  declare args: AbstractNumberDisplayWidgetArgs;\n\n  get formattedNumber() {\n    const decimalPlaces = this.args.widgetConfiguration?.parameters?.decimalPlaces;\n\n    if (!isNone(decimalPlaces) && this.isNumber)\n      return Number(this.args.label).toFixed(decimalPlaces);\n    return this.args.label;\n  }\n}\n","import { computed } from '@ember/object';\n\nimport AbstractNumberDisplayWidget from 'client/legacy/pods/components/widgets/display/number/abstract-number-display-widget';\n\nexport default class WidgetsDisplayNumberWidgetColumnLayoutComponent extends AbstractNumberDisplayWidget {\n  get valueWithHighlight() {\n    return this.valueHighlighter.computeValueWithHighlight({\n      label: this.formattedNumber,\n      searchMatch: this.args.searchMatch,\n    });\n  }\n\n  @computed('valueWithHighlight')\n  get isValuePresent() {\n    return this.valueWithHighlight || this.valueWithHighlight === 0;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isValuePresent}}\\n  {{#if this.conditionalFormatting}}\\n    {{#if (eq this.conditionalFormatting.displayType \\'badge\\')}}\\n      <Shared::DataDisplay::BetaBadge\\n        @value={{this.valueWithHighlight}}\\n        @color={{this.conditionalFormatting.color}}\\n      />\\n    {{else}}\\n      <Shared::DataDisplay::FontDisplay\\n        @value={{this.valueWithHighlight}}\\n        @color={{this.conditionalFormatting.color}}\\n      />\\n    {{/if}}\\n  {{else}}\\n    {{this.valueWithHighlight}}\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/number/widget-column-layout/template.hbs' });\n","import { computed } from '@ember/object';\n\nimport AbstractNumberDisplayWidget from 'client/legacy/pods/components/widgets/display/number/abstract-number-display-widget';\n\nexport default class WidgetsDisplayNumberWidgetLayoutComponent extends AbstractNumberDisplayWidget {\n  @computed('args.label')\n  get isLabelPresent() {\n    return this.args.label || this.args.label === 0;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isLabelPresent}}\\n  {{#if this.conditionalFormatting}}\\n    {{#if (eq this.conditionalFormatting.displayType \\'badge\\')}}\\n      <Shared::DataDisplay::BetaBadge\\n        @value={{this.formattedNumber}}\\n        @color={{this.conditionalFormatting.color}}\\n      />\\n    {{else}}\\n      <Shared::DataDisplay::FontDisplay\\n        @value={{this.formattedNumber}}\\n        @color={{this.conditionalFormatting.color}}\\n      />\\n    {{/if}}\\n  {{else}}\\n    <p\\n      class=\\\"c-row-value {{@class}}\\\"\\n      data-test-display-widget-layout-number-for={{@field.fieldName}}\\n    >\\n      {{this.formattedNumber}}\\n    </p>\\n  {{/if}}\\n  <Widgets::ValueCopier @value={{this.formattedNumber}} @field={{@field}} />\\n{{else}}\\n  <p\\n    class=\\\"c-row-value c-row-value--disabled {{@class}}\\\"\\n    data-test-display-widget-layout-number-disabled-for={{@field.fieldName}}\\n  >\\n    -\\n  </p>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/number/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel @label=\\\"Decimal places\\\" class=\\\"l-field-setting\\\">\\n  <Shared::BetaInput\\n    @value={{one-way @widgetConfiguration.parameters.decimalPlaces}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.decimalPlaces) null}}\\n    @onChange={{fn (mut @widgetConfiguration.parameters.decimalPlaces)}}\\n    @type=\\\"number\\\"\\n    @min={{0}}\\n    @max={{20}}\\n    @step={{1}}\\n    @pattern=\\\"^[0-9]{0,2}$\\\"\\n    @shouldEnforcePatternDuringInput={{true}}\\n    data-test-widget-display-number-widget-settings-decimalPlaces\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/number/widget-settings/template.hbs' });\n","import { computed } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport AbstractConditionalFormattingColumnLayout from 'client/legacy/pods/components/widgets/abstract-conditional-formatting-column-layout';\nimport { formatNumberToPercentage } from 'client/shared/helpers/format-number-to-percentage';\n\nexport default class WidgetsDisplayPercentageWidgetColumnLayoutComponent extends AbstractConditionalFormattingColumnLayout {\n  @service valueHighlighter;\n  @service locale;\n\n  @computed('valueWithHighlight')\n  get isValuePresent() {\n    return this.valueWithHighlight || this.valueWithHighlight === 0;\n  }\n\n  @computed('args.{label,searchMatch}', 'locale.currentLocale', 'valueHighlighter')\n  get valueWithHighlightInPercentage() {\n    return this.valueHighlighter.computeValueWithHighlight({\n      label: formatNumberToPercentage(this.args.label, this.locale.currentLocale),\n      searchMatch: this.args.searchMatch,\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isValuePresent}}\\n  <div class=\\\"c-widget-column-display-percentage\\\">\\n    {{#if this.conditionalFormatting}}\\n      {{#if (eq this.conditionalFormatting.displayType \\'badge\\')}}\\n        <Shared::DataDisplay::BetaBadge\\n          @value={{this.valueWithHighlightInPercentage}}\\n          @color={{this.conditionalFormatting.color}}\\n        />\\n      {{else}}\\n        <Shared::DataDisplay::FontDisplay\\n          @value={{this.valueWithHighlightInPercentage}}\\n          @color={{this.conditionalFormatting.color}}\\n        />\\n      {{/if}}\\n    {{else}}\\n      {{this.valueWithHighlightInPercentage}}\\n    {{/if}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/percentage/widget-column-layout/template.hbs' });\n","import { computed } from '@ember/object';\n\nimport AbstractConditionalFormattingColumnLayout from 'client/legacy/pods/components/widgets/abstract-conditional-formatting-column-layout';\n\nexport default class WidgetsDisplayPercentageWidgetLayoutComponent extends AbstractConditionalFormattingColumnLayout {\n  @computed('args.value')\n  get isValuePresent() {\n    return this.args.value || this.args.value === 0;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isValuePresent}}\\n  {{#if this.conditionalFormatting}}\\n    {{#if (eq this.conditionalFormatting.displayType \\'badge\\')}}\\n      <Shared::DataDisplay::BetaBadge\\n        @value={{format-number-to-percentage @label}}\\n        @color={{this.conditionalFormatting.color}}\\n      />\\n    {{else}}\\n      <Shared::DataDisplay::FontDisplay\\n        @value={{format-number-to-percentage @label}}\\n        @color={{this.conditionalFormatting.color}}\\n      />\\n    {{/if}}\\n  {{else}}\\n    <p\\n      class=\\\"c-row-value {{@class}}\\\"\\n      data-test-display-widget-layout-number-for={{@field.fieldName}}\\n    >\\n      {{format-number-to-percentage @label}}\\n    </p>\\n  {{/if}}\\n  <Widgets::ValueCopier @value={{format-number-to-percentage @label}} @field={{@field}} />\\n{{else}}\\n  <p class=\\\"c-row-value c-row-value--disabled {{@class}}\\\">\\n    -\\n  </p>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/percentage/widget-layout/template.hbs' });\n","import AbstractWidgetColumnLayout from 'client/legacy/pods/components/widgets/abstract-widget-column-layout';\n\nexport default class WidgetsDisplayPointWidgetColumnLayoutComponent extends AbstractWidgetColumnLayout {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{this.valueLimited}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/point/widget-column-layout/template.hbs' });\n","import { isArray } from '@ember/array';\nimport Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { tagName } from '@ember-decorators/component';\n\n@tagName('')\nexport default class WidgetsDisplayPointWidgetLayoutComponent extends Component {\n  @computed('value')\n  get coordinateX() {\n    if (!this.value) {\n      return null;\n    }\n\n    if (isArray(this.value)) {\n      return parseFloat(this.value.toArray()[0]);\n    }\n\n    if (typeof this.value !== 'string') {\n      return null;\n    }\n\n    try {\n      return parseFloat(this.value.split(',')[0]);\n    } catch (error) {\n      console.error('Unexpected Point coordinateX format:', error);\n      return null;\n    }\n  }\n\n  @computed('value')\n  get coordinateY() {\n    if (!this.value) {\n      return null;\n    }\n\n    if (isArray(this.value)) {\n      return parseFloat(this.value.toArray()[1]);\n    }\n\n    if (typeof this.value !== 'string') {\n      return null;\n    }\n\n    try {\n      return parseFloat(this.value.split(',')[1]);\n    } catch (error) {\n      console.error('Unexpected Point coordinateY format:', error);\n      return null;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-widget-display-point\\\" data-test-display-widget-layout-point-for={{@field.fieldName}}>\\n  <div class=\\\"c-form__field-point\\\">\\n    <p data-test-display-widget-layout-point-x>\\n      <span class=\\\"c-row-value\\\">\\n        x:\\n      </span>\\n      {{this.coordinateX}}\\n    </p>\\n    <p data-test-display-widget-layout-point-y>\\n      <span class=\\\"c-row-value\\\">\\n        y:\\n      </span>\\n      {{this.coordinateY}}\\n    </p>\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/point/widget-layout/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport priceFormatter from 'client/utils/price-formatter';\n\nexport default class AbstractPriceViewer extends Component {\n  @service locale;\n  @computed('value')\n  get valueIsNumber() {\n    return this.value !== null && !Number.isNaN(this.value);\n  }\n\n  @computed('field.widgetDisplay', 'locale.currentLocale', 'value', 'widgetConfiguration')\n  get priceFormated() {\n    return priceFormatter.format(\n      this.value,\n      this.widgetConfiguration || this.field.widgetDisplay,\n      this.locale.currentLocale,\n    );\n  }\n}\n","import { tagName } from '@ember-decorators/component';\n\nimport AbstractPriceViewer from 'client/legacy/pods/components/widgets/display/price-viewer/abstract-price-viewer-component';\n\n@tagName('')\nexport default class WidgetsDisplayPriceViewerWidgetColumnLayoutComponent extends AbstractPriceViewer {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.valueIsNumber}}\\n  <div class=\\\"c-widget-column-display-price-viewer\\\">\\n    {{this.priceFormated}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/price-viewer/widget-column-layout/template.hbs' });\n","import { tagName } from '@ember-decorators/component';\n\nimport AbstractPriceViewer from 'client/legacy/pods/components/widgets/display/price-viewer/abstract-price-viewer-component';\n\n@tagName('')\nexport default class WidgetsDisplayPriceViewerWidgetLayoutComponent extends AbstractPriceViewer {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.valueIsNumber}}\\n  <p class=\\\"c-row-value\\\" data-test-display-widget-layout-price-viewer-for={{@field.fieldName}}>\\n    {{this.priceFormated}}\\n  </p>\\n{{else}}\\n  <p class=\\\"c-row-value c-row-value--disabled\\\">\\n    -\\n  </p>\\n{{/if}}\\n<Widgets::ValueCopier @value={{this.priceFormated}} @field={{@field}} />\\n', { moduleName: 'client/legacy/pods/components/widgets/display/price-viewer/widget-layout/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport CURRENCIES from 'client/utils/currencies';\n\nexport default class WidgetsDisplayPriceViewerWidgetSettingsComponent extends Component {\n  get currencies() {\n    return CURRENCIES;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel @label=\\\"Currency\\\" class=\\\"l-field-setting\\\">\\n  <Shared::BetaSelect\\n    @placeholder=\\\"Select a currency\\\"\\n    @value={{@widgetConfiguration.parameters.currency}}\\n    @options={{this.currencies}}\\n    @namePath=\\\"label\\\"\\n    @valuePath=\\\"code\\\"\\n    @withSearchInput={{true}}\\n    data-test-widgets-display-price-viewer-widget-settings-currency\\n  />\\n</Shared::BetaLabel>\\n<Shared::BetaLabel @label=\\\"Base\\\">\\n  <Shared::BetaSelect\\n    @placeholder=\\\"Select a base\\\"\\n    @value={{@widgetConfiguration.parameters.base}}\\n    @options={{array \\'Unit\\' \\'Cents\\'}}\\n    @defaultOption=\\\"Select a base\\\"\\n    data-test-widgets-display-price-viewer-widget-settings-base\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/price-viewer/widget-settings/template.hbs' });\n","import AbstractWidgetColumnLayout from 'client/legacy/pods/components/widgets/abstract-widget-column-layout';\n\nexport default class WidgetsDisplayRichTextViewerWidgetColumnLayoutComponent extends AbstractWidgetColumnLayout {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{this.valueLimited}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/rich-text-viewer/widget-column-layout/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { bool } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { tagName } from '@ember-decorators/component';\n\nimport Field from 'client/data/models/field';\nimport WidgetConfiguration from 'client/data/models/widget-configuration';\nimport { argument } from 'client/decorators/argument';\n\n@tagName('')\nexport default class WidgetsDisplayRichTextViewerWidgetLayoutComponent extends Component {\n  /** @type {import('app/services/html-sanitizer').default} */\n  @service htmlSanitizer;\n\n  @argument(Field) field;\n  @argument(WidgetConfiguration) widgetConfiguration;\n\n  _scriptElements = [];\n  isLoading = true;\n  @bool('value') hasValue;\n  /** @type {boolean} */\n  @bool('widgetConfiguration.parameters.allowJavascript') allowJavascript;\n\n  _sourceScriptCounter = 0;\n\n  @computed('allowJavascript', 'htmlSanitizer', 'value')\n  get safeValue() {\n    if (this.allowJavascript) {\n      return htmlSafe(this.value);\n    }\n\n    return htmlSafe(this.htmlSanitizer.sanitizeRichText(this.value));\n  }\n\n  _appendScriptElement(scriptElement) {\n    this._scriptElements.push(scriptElement);\n    document.head.appendChild(scriptElement);\n  }\n\n  static _createScriptElement(customerScript) {\n    const scriptElement = document.createElement('script');\n    scriptElement.type = 'text/javascript';\n    scriptElement.integrity = customerScript.integrity;\n    scriptElement.crossOrigin = customerScript.crossOrigin;\n\n    if (customerScript.src) {\n      scriptElement.src = customerScript.src;\n    } else {\n      scriptElement.appendChild(document.createTextNode(customerScript.innerText));\n    }\n\n    return scriptElement;\n  }\n\n  _insertCodeScripts(sourceScripts) {\n    sourceScripts.forEach((sourceScript) => {\n      const elementCreated =\n        WidgetsDisplayRichTextViewerWidgetLayoutComponent._createScriptElement(sourceScript);\n      this._appendScriptElement(elementCreated);\n    });\n  }\n\n  _loadSourceScript(sourceScript) {\n    return new Promise((resolve, reject) => {\n      const scriptCreated =\n        WidgetsDisplayRichTextViewerWidgetLayoutComponent._createScriptElement(sourceScript);\n\n      scriptCreated.onload = resolve;\n      scriptCreated.onerror = reject;\n\n      this._appendScriptElement(scriptCreated);\n    });\n  }\n\n  async _injectScriptElements() {\n    if (!this.allowJavascript) return;\n\n    this._removeScriptElements();\n\n    const domParser = new DOMParser().parseFromString(htmlSafe(this.value), 'text/html');\n    const scriptElements = domParser.getElementsByTagName('script');\n    const scripts = Array.from(scriptElements);\n\n    const sourceScripts = scripts.filter((script) => script.src);\n    const codeScripts = scripts.filter((script) => !script.src);\n\n    try {\n      await Promise.all(sourceScripts.map((sourceScript) => this._loadSourceScript(sourceScript)));\n    } catch (event) {\n      console.error(\n        `[forest] 🌳🌳🌳 Could not load script ${event.target.src} from field ${this.field.fieldName}, your code is certainly unstable`,\n      );\n    }\n    this._insertCodeScripts(codeScripts);\n  }\n\n  _removeScriptElements() {\n    if (!this.allowJavascript) return;\n\n    this._scriptElements.forEach((scriptElement) => {\n      document.head.removeChild(scriptElement);\n    });\n\n    this._scriptElements = [];\n  }\n\n  @action\n  updateScripts() {\n    this._injectScriptElements();\n  }\n\n  willDestroyElement(...args) {\n    super.willDestroyElement(...args);\n    this._removeScriptElements();\n  }\n\n  async init(...args) {\n    super.init(...args);\n    await this._injectScriptElements();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div {{did-update this.updateScripts @value}}>\\n  {{#if @value}}\\n    <div\\n      class=\\\"c-row-value c-widget-layout-rich-text {{@class}}\\\"\\n      data-test-display-widget-layout-rich-text-viewer-for={{@field.fieldName}}\\n    >\\n      {{this.safeValue}}\\n    </div>\\n  {{else}}\\n    <div class=\\\"c-row-value c-row-value--disabled {{@class}}\\\">\\n      -\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/rich-text-viewer/widget-layout/template.hbs' });\n","import type WidgetConfigurationFragment from 'client/data/models/widget-configuration';\nimport type { WidgetDisplayTypeEnum } from 'client/utils/widgets';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\n\ninterface Arguments {\n  widgetConfiguration: WidgetConfigurationFragment<WidgetDisplayTypeEnum.RichText>;\n}\n\n@validateArguments\nexport default class WidgetsDisplayRichTextViewerWidgetSettingsComponent extends Component<Arguments> {\n  @tracked displayConfirmationModal = false;\n\n  get allowJavascript() {\n    return this.args.widgetConfiguration.parameters.allowJavascript;\n  }\n\n  set allowJavascript(value) {\n    this.args.widgetConfiguration.parameters.allowJavascript = value;\n  }\n\n  @action\n  handleAlowJavascriptChange(value: boolean) {\n    this.allowJavascript = value;\n  }\n\n  @action\n  cancel() {\n    this.displayConfirmationModal = false;\n    this.allowJavascript = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"rich-text-viewer-settings\\\">\\n  <Shared::AllowJsToggle\\n    @allowJavascript={{this.allowJavascript}}\\n    @onAllowJavascriptChange={{this.handleAlowJavascriptChange}}\\n    @target=\\\"field\\\"\\n    class=\\\"rich-text-viewer-settings__allow-js-toggle\\\"\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/display/rich-text-viewer/widget-settings/template.hbs' });\n","import AbstractConditionalFormattingColumnLayout from 'client/legacy/pods/components/widgets/abstract-conditional-formatting-column-layout';\n\nexport default class WidgetsDisplayTextWidgetColumnLayoutComponent extends AbstractConditionalFormattingColumnLayout {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.valueLimited}}\\n  {{#if this.conditionalFormatting}}\\n    {{#if (eq this.conditionalFormatting.displayType \\'badge\\')}}\\n      <Shared::DataDisplay::BetaBadge\\n        @value={{this.valueLimited}}\\n        @color={{this.conditionalFormatting.color}}\\n      />\\n    {{else}}\\n      <Shared::DataDisplay::FontDisplay\\n        @value={{this.valueLimited}}\\n        @color={{this.conditionalFormatting.color}}\\n      />\\n    {{/if}}\\n  {{else}}\\n    {{this.valueLimited}}\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/text/widget-column-layout/template.hbs' });\n","import AbstractConditionalFormattingColumnLayout from 'client/legacy/pods/components/widgets/abstract-conditional-formatting-column-layout';\n\nexport default class WidgetsDisplayTextWidgetLayoutComponent extends AbstractConditionalFormattingColumnLayout {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (or @label (eq @label 0) (eq @label false))}}\\n  {{#if this.conditionalFormatting}}\\n    {{#if (eq this.conditionalFormatting.displayType \\'badge\\')}}\\n      <Shared::DataDisplay::BetaBadge\\n        @value={{@label}}\\n        @color={{this.conditionalFormatting.color}}\\n      />\\n    {{else}}\\n      <Shared::DataDisplay::FontDisplay\\n        @value={{@label}}\\n        @color={{this.conditionalFormatting.color}}\\n      />\\n    {{/if}}\\n  {{else}}\\n    <p class=\\\"c-row-value {{@class}}\\\" data-test-display-widget-layout-text-for={{@field.fieldName}}>\\n      {{@label}}\\n    </p>\\n  {{/if}}\\n{{else}}\\n  <p class=\\\"c-row-value c-row-value--disabled {{@class}}\\\">\\n    -\\n  </p>\\n{{/if}}\\n<Widgets::ValueCopier @value={{@value}} @field={{@field}} />\\n', { moduleName: 'client/legacy/pods/components/widgets/display/text/widget-layout/template.hbs' });\n","import Component from '@ember/component';\nimport { tagName } from '@ember-decorators/component';\n\n@tagName('')\nexport default class WidgetsDisplayTimeWidgetLayoutComponent extends Component {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @value}}\\n  <p class=\\\"c-row-value\\\" data-test-display-widget-layout-time-for={{@field.fieldName}}>\\n    {{@value}}\\n  </p>\\n  <Widgets::ValueCopier @value={{@value}} @field={{@field}} />\\n{{else}}\\n  <p class=\\\"c-row-value c-row-value--disabled\\\">\\n    -\\n  </p>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/display/time/widget-layout/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { tagName } from '@ember-decorators/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('')\n@validateArguments\nexport default class WidgetsEditAddressEditorWidgetLayoutComponent extends Component {\n  static propTypes = {\n    onChange: PropTypes.func,\n  };\n\n  @action\n  onValueChanged(value) {\n    this.value = value;\n\n    if (this.onChange) {\n      this.onChange(value);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Form::FormAddressSuggestion\\n  @value={{one-way @value}}\\n  @disabled={{@disabled}}\\n  @onChange={{this.onValueChanged}}\\n  @inputId={{@inputId}}\\n  @placeholder={{@field.widgetEdit.parameters.placeholder}}\\n  data-test-edit-widget-layout-address-editor-for={{@field.fieldName}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/address-editor/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel @label=\\\"Placeholder\\\">\\n  <Shared::BetaInput\\n    @value={{@widgetConfiguration.parameters.placeholder}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.placeholder) null}}\\n    data-test-widget-edit-address-editor-widget-settings-placeholder\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/address-editor/widget-settings/template.hbs' });\n","import type { WidgetConfigurationAssigneeEditorAttributes } from 'client/data/models/widget-configuration-assignee-editor';\n\nimport Component from '@glimmer/component';\n\nimport FieldModel from 'client/data/models/field';\nimport WidgetConfigurationFragment from 'client/data/models/widget-configuration';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  value: string | null | string[];\n  field: FieldModel;\n  debounceTime?: number;\n  widgetConfiguration?: WidgetConfigurationAssigneeEditorAttributes;\n  disabled?: boolean;\n  onChange?: (value: string | string[]) => void;\n}\n\n@validateArguments\nexport default class WidgetsEditAssigneeEditorWidgetLayoutComponent extends Component<Args> {\n  static propTypes = {\n    field: PropTypes.instanceOf(FieldModel).isRequired,\n    value: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),\n    widgetConfiguration: PropTypes.instanceOf(WidgetConfigurationFragment),\n    debounceTime: PropTypes.number,\n    disabled: PropTypes.bool,\n    onChange: PropTypes.func,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-widget-assignee-editor\\\" ...attributes>\\n  <Assignee::Search\\n    @value={{@value}}\\n    @placeholder={{@widgetConfiguration.parameters.placeholder}}\\n    @multipleValues={{@field.isArray}}\\n    @disabled={{@disabled}}\\n    @onChange={{@onChange}}\\n    data-test-edit-widget-layout-dropdown-for={{@field.fieldName}}\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/assignee-editor/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel\\n  @label=\\\"Placeholder\\\"\\n  data-test-widget-edit-assignee-editor-widget-settings-placeholder\\n>\\n  <Shared::BetaInput\\n    @value={{@widgetConfiguration.parameters.placeholder}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.placeholder) null}}\\n    data-test-widget-edit-assignee-editor-widget-placeholder-settings-input\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/assignee-editor/widget-settings/template.hbs' });\n","import Component from '@ember/component';\nimport { computed, defineProperty } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tagName } from '@ember-decorators/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport { PromiseArray } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport {\n  addQueryContext,\n  addQueryPagination,\n  addQueryScope,\n  addQuerySearch,\n} from 'client/utils/query-utils';\nimport { getLinkValueToDisplay } from 'client/utils/reference-field-utils';\n\n@tagName('')\n@validateArguments\nexport default class WidgetsEditBelongstoDropdownWidgetLayoutComponent extends Component {\n  static propTypes = {\n    onChange: PropTypes.func,\n  };\n\n  @service abilities;\n  @service lianaFeatures;\n  @service lianaSession;\n  @service store;\n\n  @alias('field.referenceModel.scope') scope;\n\n  @computed('readMode', 'field.referenceModel')\n  get options() {\n    if (this.readMode) {\n      return [];\n    }\n    return this.getOptions();\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    this.defineDynamicProperties();\n  }\n\n  getOptions() {\n    const query = {};\n    addQueryScope(\n      { abilities: this.abilities, lianaFeatures: this.lianaFeatures },\n      query,\n      this.field.referenceModel,\n    );\n    // NOTICE: Limit to 100 records to prevent time consuming queries.\n    addQueryPagination(query, 1, 100);\n\n    // HACK: Forces the API permissions to consider this call as a \"search to edit\" and let the\n    //       users have a working belongsTo select if the referenced collection is hidden.\n    addQuerySearch(query, '');\n\n    addQueryContext(query, {\n      relationship: 'BelongsTo',\n      field: this.field.fieldName,\n      collection: this.field.collection?.name,\n      recordId: this.record?.id,\n    });\n    const promise = this.store.query(this.field.referenceModelName, query).then((records) =>\n      records.map((record) => ({\n        name: getLinkValueToDisplay(this.field.referenceModel, record),\n        value: record,\n      })),\n    );\n    return PromiseArray.create({ promise });\n  }\n\n  defineDynamicProperties() {\n    defineProperty(\n      this,\n      'fieldValue',\n      computed(\n        `record.${this.field.attributeNameWithRelationships}`,\n        'field.{attributeNameWithRelationships,referenceModel,customActionValue,customAction.content}',\n        'options.[]',\n        {\n          get() {\n            const isCustomActionFormField = !!this.field.customAction?.content;\n            if (isCustomActionFormField && this.field.customActionValue) {\n              const selectedOption = this.options.find(\n                (option) => option.value.id === `${this.field.customActionValue}`,\n              );\n              return selectedOption ? selectedOption.value : null;\n            }\n\n            const record = this.get(`record.${this.field.attributeNameWithRelationships}`);\n            return record || null;\n          },\n          set(key, value) {\n            const isCustomActionFormField = !!this.field?.customAction?.content;\n            let destination;\n            if (isCustomActionFormField) {\n              destination = 'field.customActionValue';\n            } else {\n              destination = `record.${this.field.attributeNameWithRelationships}`;\n            }\n\n            this.set(destination, isCustomActionFormField ? value.get('id') : value);\n            return value;\n          },\n        },\n      ),\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSelect\\n  @value={{this.fieldValue}}\\n  @disabled={{@disabled}}\\n  @options={{this.options}}\\n  @valuePath=\\\"value\\\"\\n  @namePath=\\\"name\\\"\\n  @inputId={{@inputId}}\\n  @class={{@class}}\\n  @onChange={{@onChange}}\\n  @defaultOption=\\\"-\\\"\\n  data-test-edit-widget-layout-belongsto-dropdown-for={{@field.fieldName}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/belongsto-dropdown/widget-layout/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport Model from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { singularize } from 'ember-inflector';\n\nimport CollectionModel from 'client/data/models/collection';\nimport Field from 'client/data/models/field';\nimport { any, argument, optional } from 'client/decorators/argument';\nimport LimitedValueWidgetLayout from 'client/legacy/pods/components/widgets/edit/limited-value/widget-layout/component';\nimport { getLinkValueToDisplay, getOptionValueToDisplay } from 'client/utils/reference-field-utils';\n\nexport default class WidgetsEditBelongstoTypeaheadWidgetLayoutComponent extends LimitedValueWidgetLayout {\n  @service currentUser;\n  @service router;\n  @service store;\n  @service lianaSession;\n\n  /** @type {import('client/features/client-record/services/feature').default} */\n  @service('feature/client-record') clientRecordFeature;\n\n  @argument(Field) field;\n  @argument(optional(Model)) record;\n  @argument(optional(any())) value;\n  @argument(optional(Boolean)) disableNested;\n  @argument(optional(Function)) onChange;\n  @argument(optional(CollectionModel)) polymorphicReferenceModel;\n\n  @tracked referencedRecord = null;\n  @tracked searchValue = null;\n\n  dropdownParent = null;\n\n  getLinkValueToDisplay = getLinkValueToDisplay;\n  getOptionValueToDisplay = getOptionValueToDisplay;\n\n  get context() {\n    return {\n      relationship: 'BelongsTo',\n      field: this.field.fieldName,\n      collection: this.field.collection?.name,\n      recordId: this.record?.id,\n    };\n  }\n\n  @computed('field.referenceModel', 'polymorphicReferenceModel')\n  get referenceModel() {\n    return this.polymorphicReferenceModel || this.field.referenceModel;\n  }\n\n  @computed('currentUser', 'disableNested', 'referenceModel')\n  get disableCreation() {\n    return !this.currentUser.canAddCollection(this.referenceModel) || this.disableNested;\n  }\n\n  @computed('field.displayName')\n  get placeholder() {\n    return `Link to an existing ${singularize(this.field.displayName.toLowerCase())}…`;\n  }\n\n  async init(...args) {\n    await super.init(...args);\n\n    this.recordPath = this.clientRecordFeature.getRecordPath(this.referenceModel);\n\n    const from = this.router.currentRouteName?.includes('.summary.') ? 'summary' : 'details';\n    this.from = from;\n\n    await this.fetchReferencedRecord();\n  }\n\n  async fetchReferencedRecord() {\n    const isCustomActionFormField = !!this.field.customAction?.content;\n    if (isCustomActionFormField && this.field.customActionValue) {\n      // Retrieve record from cache or server\n      this.referencedRecord = await this.store.findRecord(\n        this.field.referenceModelName,\n        this.field.customActionValue,\n      );\n    } else {\n      this.referencedRecord = this.record?.[this.field.attributeNameWithRelationships];\n    }\n\n    this.searchValue = this.getLinkValueToDisplay(this.referenceModel, this.referencedRecord);\n  }\n\n  @computed('field.customAction.content', 'field.customActionValue', 'value.id')\n  get fieldValue() {\n    const isCustomActionFormField = !!this.field.customAction?.content;\n\n    return isCustomActionFormField && this.field.customActionValue\n      ? this.field.customActionValue\n      : this.value?.id || null;\n  }\n\n  set fieldValue(value) {\n    const isCustomActionFormField = !!this.field.customAction?.content;\n    if (isCustomActionFormField) {\n      this.field.customActionValue = value?.get('id');\n    } else {\n      this.set('value', value);\n    }\n\n    if (value instanceof Model) {\n      this.searchValue = this.getOptionValueToDisplay(this.referenceModel, value);\n      return value.get('id');\n    }\n\n    return value;\n  }\n\n  @action\n  async searchBelongsTo(value) {\n    // To make the search correctly we need to work on the context directly,\n    // otherwise it creates a filter instead of a global search\n    this.recordsContext.search = value;\n\n    await this.fetchValues();\n  }\n\n  @action\n  toggleNewRecordPanel() {\n    this.toggleProperty('showNewRecordPanel');\n  }\n\n  @action\n  async customActionValueChange() {\n    await this.fetchReferencedRecord();\n  }\n\n  @action\n  async recomputeContext() {\n    this.initializeRecordsContext();\n  }\n}\n","import { getOwner } from '@ember/application';\nimport { on } from '@ember/object/evented';\nimport { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Widgets/Edit/BelongstoTypeahead/WidgetLayout',\n  component: 'Widgets::Edit::BelongstoTypeahead::WidgetLayout',\n  args: {\n    ...getDefaultRequiredArgs('Widgets::Edit::BelongstoTypeahead::WidgetLayout'),\n    contextConfiguration: { createNewBelongsTo: () => {} },\n  },\n};\n\nfunction createField() {\n  return on('init', function () {\n    this.value = null;\n    this.field = getOwner(this).lookup('service:store').createRecord('field', {\n      id: 'field-id',\n      fieldName: 'field-name',\n      widgetEdit: {},\n    });\n  });\n}\n\nexport const Default = storyCreator('Widgets::Edit::BelongstoTypeahead::WidgetLayout');\n\nexport function usdFRLocale() {\n  return {\n    template: hbs`\n      <Widgets::Edit::BelongstoTypeahead::WidgetLayout\n        @field={{this.field}}\n        @value={{this.value}}\n        @onChange={{fn (mut this.value)}}\n      />\n    `,\n    context: {\n      createField: createField(),\n    },\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-update this.customActionValueChange @field.customActionValue @value}}\\n{{#if (or @disabled @cannotSearch)}}\\n  <Shared::BetaInput\\n    @value={{this.searchValue}}\\n    @disabled={{true}}\\n    @inputId={{@inputId}}\\n    @class={{@class}}\\n    data-test-edit-widget-layout-belongsto-typeahead-for={{@field.fieldName}}\\n  />\\n  {{#if @cannotSearch}}\\n    <p class=\\\"row-belongsto__reason-disabled\\\">\\n      The search on the referenced collection is not authorized.\\n    </p>\\n  {{/if}}\\n{{else}}\\n  <div\\n    class=\\\"c-row-belongs-to {{@class}}\\\"\\n    data-test-edit-widget-layout-belongsto-typeahead-for={{@field.fieldName}}\\n  >\\n    {{#let (unique-id) (or this.disableCreation this.isLoading) as |idLink shouldHideCreationLink|}}\\n      <TypeaheadField\\n        @value={{this.fieldValue}}\\n        @search={{this.searchBelongsTo}}\\n        @readMode={{@readMode}}\\n        @suggestions={{this.referenceValues}}\\n        @searchValue={{this.searchValue}}\\n        @isLoading={{this.isLoading}}\\n        @disableNested={{@disableNested}}\\n        @inputPlaceholder={{this.placeholder}}\\n        @dropdownParent={{@dropdownParent}}\\n        @inputId={{@inputId}}\\n        @isCrossIconHidden={{true}}\\n        @inputClass=\\\"c-row-belongs-to__input {{unless\\n          this.disableCreation\\n          \\'c-row-belongs-to__input--with-link\\'\\n        }}\\\"\\n        @class=\\\"c-row-belongs-to__input-container\\\"\\n        @disabled={{@disabled}}\\n        @debounceTime={{@debounceTime}}\\n        @onChange={{@onChange}}\\n        @iconName={{if shouldHideCreationLink null \\'add_circle\\'}}\\n        @iconClass=\\\"c-row-belongs-to__link-icon\\\"\\n        @iconId={{idLink}}\\n        @onClickIcon={{if\\n          @contextConfiguration.createNewBelongsTo\\n          (fn (optional @contextConfiguration.createNewBelongsTo) @field @polymorphicReferenceModel)\\n          (action-link-to\\n            (concat\\n              \\'project.rendering.data.collection.list.view-\\'\\n              (if @record.isNew \\'create\\' \\'edit\\')\\n              \\'.new-belongs-to\\'\\n            )\\n            @field.id\\n            (hash\\n              queryParams=(hash\\n                from=this.from\\n                polymorphic=(if\\n                  @polymorphicReferenceModel.name @polymorphicReferenceModel.name null\\n                )\\n              )\\n            )\\n          )\\n        }}\\n        {{did-insert this.recomputeContext}}\\n        {{did-update this.recomputeContext this.polymorphicReferenceModel}}\\n        as |suggestion|\\n      >\\n        {{display-field this.referenceModel suggestion}}\\n      </TypeaheadField>\\n\\n      {{#unless shouldHideCreationLink}}\\n        <Shared::Feedback::BetaTooltip @targetId={{idLink}} @side=\\\"left\\\">\\n          Create a new\\n          {{word-singularize (lowercase-text @field.displayName)}}\\n        </Shared::Feedback::BetaTooltip>\\n      {{/unless}}\\n    {{/let}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/belongsto-typeahead/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Widgets::Edit::LimitedValue::WidgetSettings\\n  @field={{@field}}\\n  @widgetConfiguration={{@widgetConfiguration}}\\n  @displayErrors={{@displayErrors}}\\n  @isUsingAlteredValues={{@isUsingAlteredValues}}\\n  @isLeftLabel={{@isLeftLabel}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/belongsto-typeahead/widget-settings/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport FieldModel from 'client/data/models/field';\nimport validateArguments from 'client/decorators/validate';\nimport NestedField from 'client/utils/nested/field';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type WidgetsEditBooleanEditorWidgetLayoutArgs = {\n  value: boolean | null | undefined;\n  disabled?: boolean;\n  inputId?: string;\n  field: FieldModel | NestedField;\n};\n\n@validateArguments\nexport default class WidgetsEditBooleanEditorWidgetLayoutComponent extends Component<WidgetsEditBooleanEditorWidgetLayoutArgs> {\n  static propTypes = {\n    value: PropTypes.oneOf([undefined, null, true, false]),\n    disabled: PropTypes.bool,\n    inputId: PropTypes.string,\n    field: PropTypes.oneOfType([\n      PropTypes.instanceOf(FieldModel),\n      PropTypes.instanceOf(NestedField),\n    ]).isRequired,\n    onChange: PropTypes.func,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Form::FormBoolean\\n  @checked={{@value}}\\n  @disabled={{@disabled}}\\n  @disableNull={{@field.isRequired}}\\n  @inputId={{@inputId}}\\n  @onChange={{@onChange}}\\n  data-test-edit-widget-layout-boolean-editor-for={{@field.fieldName}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/boolean-editor/widget-layout/template.hbs' });\n","import { isArray } from '@ember/array';\nimport EmberObject, { action, computed } from '@ember/object';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\n\nimport { argument, oneOfType, optional } from 'client/decorators/argument';\nimport LimitedValueWidgetLayout from 'client/legacy/pods/components/widgets/edit/limited-value/widget-layout/component';\n\nconst MAX_LENGTH_VERTICAL = 8;\n\n@classNames('c-checkboxes')\n@classNameBindings('displayVertically:c-checkboxes--vertical')\nexport default class WidgetsEditCheckboxesWidgetLayoutComponent extends LimitedValueWidgetLayout {\n  @argument(optional(oneOfType([EmberObject, String, Number, Array]))) value;\n\n  @action\n  toggleValue(selectedValue) {\n    const { value } = this;\n\n    if (isArray(value)) {\n      if (value.includes(selectedValue)) {\n        value.removeObject(selectedValue);\n      } else {\n        value.pushObject(selectedValue);\n      }\n    } else {\n      this.set('value', [selectedValue]);\n    }\n\n    this.selectValue(this.value);\n  }\n\n  @computed('optionsToDisplay', 'optionsToDisplay.length')\n  get displayVertically() {\n    return this.optionsToDisplay?.length < MAX_LENGTH_VERTICAL;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#each this.optionsToDisplay as |option|}}\\n  <Shared::BetaLabel\\n    @label={{option.label}}\\n    @position=\\\"right\\\"\\n    @textClass=\\\"c-checkboxes__label-text {{if\\n      this.displayVertically\\n      \\'c-checkboxes__label-text--vertical\\'\\n    }}\\\"\\n    class=\\\"c-checkboxes__label {{if this.displayVertically \\'c-checkboxes__label--vertical\\'}}\\\"\\n    as |inputClassName|\\n  >\\n    <Form::BetaCheckbox\\n      @value={{array-contains @value option.value}}\\n      @onChange={{fn this.toggleValue option.value}}\\n      @class={{inputClassName}}\\n      @disabled={{or @disabled option.disabled}}\\n      data-test-edit-widget-layout-checkboxes-for={{concat @field.fieldName \\'-\\' option.value}}\\n    />\\n  </Shared::BetaLabel>\\n{{/each}}\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/checkboxes/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Widgets::Edit::LimitedValue::WidgetSettings\\n  @field={{@field}}\\n  @widgetConfiguration={{@widgetConfiguration}}\\n  @displayErrors={{@displayErrors}}\\n  @isUsingAlteredValues={{@isUsingAlteredValues}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/checkboxes/widget-settings/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { tagName } from '@ember-decorators/component';\n\nimport FieldModel from 'client/data/models/field';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('')\n@validateArguments\nexport default class WidgetsEditColorEditorWidgetLayoutComponent extends Component {\n  static propTypes = {\n    onChange: PropTypes.func,\n    value: PropTypes.string,\n    field: PropTypes.instanceOf(FieldModel).isRequired,\n  };\n\n  @action\n  onValueChange(value) {\n    this.set('value', value);\n\n    if (this.onChange) {\n      this.onChange(value);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-row-color-picker\\\" ...attributes>\\n  <Shared::BetaInputColor\\n    @disabled={{@disabled}}\\n    @onChange={{this.onValueChange}}\\n    @value={{@value}}\\n    @inputId={{@inputId}}\\n    @placeholder={{@field.widgetEdit.parameters.placeholder}}\\n    @isOpacityDisabled={{(not @field.widgetEdit.parameters.enableOpacity)}}\\n    @colors={{@field.widgetEdit.parameters.quickPalette}}\\n    data-test-edit-widget-layout-color-editor-for={{@field.fieldName}}\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/color-editor/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel @label=\\\"Placeholder\\\" data-test-widget-color-editor-widget-settings-placeholder>\\n  <Shared::BetaInput\\n    @value={{@widgetConfiguration.parameters.placeholder}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.placeholder) null}}\\n    data-test-widget-color-editor-widget-settings-placeholder-input\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel\\n  @label=\\\"Enable opacity selection\\\"\\n  @description=\\\"Allow to select colors with an alpha channel.\\\"\\n  data-test-input-for=\\\"enable-opacity\\\"\\n  data-test-widgets-color-editor-widget-settings-enable-opacity\\n>\\n  <Shared::Form::Toggle\\n    @value={{@widgetConfiguration.parameters.enableOpacity}}\\n    @onChange={{fn (mut @widgetConfiguration.parameters.enableOpacity)}}\\n    data-test-widgets-color-editor-widget-settings-enable-opacity-button\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel\\n  @label=\\\"Quick color palette\\\"\\n  @description=\\\"Display a predefined list of colors for quick selection.\\\"\\n  data-test-input-for=\\\"quick-palette\\\"\\n  data-test-widgets-color-editor-widget-settings-quick-palette\\n>\\n  <Form::FormArray\\n    @value={{@widgetConfiguration.parameters.quickPalette}}\\n    @type=\\\"string\\\"\\n    @placeholder=\\\"Type a color code\\\"\\n    @reorderable={{true}}\\n    @allowDuplicate={{false}}\\n    @allowEmptyValue={{false}}\\n    @onChange={{fn (mut @widgetConfiguration.parameters.quickPalette)}}\\n    data-test-widgets-color-editor-widget-settings-quick-palette-input\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/color-editor/widget-settings/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport Field from 'client/data/models/field';\nimport WidgetConfiguration from 'client/data/models/widget-configuration';\nimport { argument, oneOfType, optional } from 'client/decorators/argument';\nimport dateFormatting from 'client/decorators/date-formatting';\nimport validateArguments from 'client/decorators/validate';\nimport NestedField from 'client/utils/nested/field';\n\n@dateFormatting\n@validateArguments\nexport default class WidgetsEditDateEditorWidgetLayoutComponent extends Component {\n  @argument(oneOfType([Field, NestedField])) field;\n  @argument(WidgetConfiguration) widgetConfiguration;\n  @argument(optional(oneOfType([Date, String]))) value;\n  @argument(optional(Boolean)) disabled;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaInputDate\\n  @value={{@value}}\\n  @disabled={{@disabled}}\\n  @isDateOnly={{this.argsIsDateOnly}}\\n  @format={{this.dateFormat}}\\n  @inputId={{@inputId}}\\n  @placeholder={{@widgetConfiguration.parameters.placeholder}}\\n  @minDate={{@widgetConfiguration.parameters.minDate}}\\n  @maxDate={{@widgetConfiguration.parameters.maxDate}}\\n  @onChange={{@onChange}}\\n  @onErrorChange={{@onErrorChange}}\\n  data-test-edit-widget-layout-date-editor-for={{@field.fieldName}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/date-editor/widget-layout/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport FieldModel from 'client/data/models/field';\nimport WidgetConfigurationFragment from 'client/data/models/widget-configuration';\nimport dateFormatting from 'client/decorators/date-formatting';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@dateFormatting\n@validateArguments\nexport default class WidgetsEditDateEditorWidgetSettingsComponent extends Component {\n  static propTypes = {\n    field: PropTypes.instanceOf(FieldModel).isRequired,\n    widgetConfiguration: PropTypes.instanceOf(WidgetConfigurationFragment),\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel data-test-input-for=\\\"format\\\" @label=\\\"Format\\\">\\n  <div class=\\\"c-format-description\\\">\\n    Format following the syntax from\\n    <a\\n      href=\\\"https://momentjs.com/docs/#/displaying/format/\\\"\\n      rel=\\\"noopener noreferrer\\\"\\n      target=\\\"_blank\\\"\\n    >\\n      moment.js\\n    </a>\\n  </div>\\n  <Shared::BetaInput\\n    @value={{@widgetConfiguration.parameters.format}}\\n    @placeholder=\\\"DD/MM/YYYY HH:mm:ss\\\"\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.format) null}}\\n    data-test-widget-edit-date-widget-settings-format\\n  />\\n</Shared::BetaLabel>\\n<Shared::BetaLabel data-test-input-for=\\\"placeholder\\\" @label=\\\"Placeholder\\\">\\n  <Shared::BetaInput\\n    @value={{@widgetConfiguration.parameters.placeholder}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.placeholder) null}}\\n    data-test-widget-edit-date-widget-settings-placeholder\\n  />\\n</Shared::BetaLabel>\\n<Shared::BetaLabel data-test-input-for=\\\"minDate\\\" @label=\\\"Minimum date\\\">\\n  <Shared::BetaInputDate\\n    @value={{@widgetConfiguration.parameters.minDate}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.minDate) null}}\\n    @maxDate={{@widgetConfiguration.parameters.maxDate}}\\n    @format={{or @widgetConfiguration.parameters.format this.dateFormat}}\\n    data-test-widget-edit-date-widget-settings-minDate\\n  />\\n</Shared::BetaLabel>\\n<Shared::BetaLabel data-test-input-for=\\\"maxDate\\\" @label=\\\"Maximum date\\\">\\n  <Shared::BetaInputDate\\n    @value={{@widgetConfiguration.parameters.maxDate}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.maxDate) null}}\\n    @minDate={{@widgetConfiguration.parameters.minDate}}\\n    @format={{or @widgetConfiguration.parameters.format this.dateFormat}}\\n    data-test-widget-edit-date-widget-settings-maxDate\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/date-editor/widget-settings/template.hbs' });\n","import type { WidgetEditLimitedValueWidgetLayoutComponentArgs } from 'client/legacy/pods/components/widgets/edit/limited-value/widget-layout/component';\n\nimport EmberObject from '@ember/object';\n\nimport validateArguments from 'client/decorators/validate';\nimport LimitedValueWidgetLayout from 'client/legacy/pods/components/widgets/edit/limited-value/widget-layout/component';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type WidgetEditDropdownWidgetArgs = WidgetEditLimitedValueWidgetLayoutComponentArgs & {\n  value?: EmberObject | string | number | Array<unknown> | boolean | object;\n  isWorkspace?: boolean;\n  isExpectingContext?: boolean;\n};\n\n@validateArguments\nexport default class WidgetsEditDropdownWidgetLayoutComponent extends LimitedValueWidgetLayout {\n  public static propTypes = {\n    ...LimitedValueWidgetLayout.propTypes,\n    value: PropTypes.oneOfType([\n      PropTypes.instanceOf(EmberObject),\n      PropTypes.string,\n      PropTypes.number,\n      PropTypes.array,\n      PropTypes.bool,\n      PropTypes.object,\n    ]),\n  };\n\n  public declare value: WidgetEditDropdownWidgetArgs['value'];\n  public declare isWorkspace: WidgetEditDropdownWidgetArgs['isWorkspace'];\n  public declare isExpectingContext: WidgetEditDropdownWidgetArgs['isExpectingContext'];\n\n  get defaultOption() {\n    if (!this.widgetConfiguration.isConfigured && this.isWorkspace) {\n      return 'This component is not configured yet.';\n    }\n    if (this.isExpectingContext) {\n      return 'This component will display once its context is set.';\n    }\n    if (this.isDynamicSearch) return null;\n\n    return ' ';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let\\n  (component (if this.isSearchable \\'shared/beta-select-search\\' \\'shared/beta-select\\'))\\n  as |SelectComponent|\\n}}\\n  <SelectComponent\\n    @options={{this.optionsToDisplay}}\\n    @value={{@value}}\\n    @defaultValue={{null}}\\n    @defaultOption={{one-way this.defaultOption}}\\n    @placeholder={{@widgetConfiguration.parameters.placeholder}}\\n    @namePath=\\\"label\\\"\\n    @valuePath=\\\"value\\\"\\n    @disabledPath=\\\"disabled\\\"\\n    @multipleValues={{this.multipleValues}}\\n    @disabled={{this.isDropdownDisabled}}\\n    @searchValue={{this.searchValue}}\\n    @onFirstDropdownDisplay={{this.searchIfReference}}\\n    @onCancelSearch={{this.searchIfReference}}\\n    @information={{this.information}}\\n    @onOpen={{this.forceRefresh}}\\n    @enableLocalFilterAndHighlighter={{this.enableLocalFilterAndHighlighter}}\\n    @onChange={{this.selectValue}}\\n    @onSearchValueChange={{this.onSearchValueChange}}\\n    @inputId={{@inputId}}\\n    @handleSearchQuery={{@handleSearchQuery}}\\n    @isLoadingOptions={{this.isLoadingOptions}}\\n    data-test-edit-widget-layout-dropdown-for={{@field.fieldName}}\\n    ...attributes\\n  />\\n{{/let}}\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/dropdown/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Widgets::Edit::LimitedValue::WidgetSettings\\n  @field={{@field}}\\n  @widgetConfiguration={{@widgetConfiguration}}\\n  @displayErrors={{@displayErrors}}\\n  @isUsingAlteredValues={{@isUsingAlteredValues}}\\n  @isLeftLabel={{@isLeftLabel}}\\n  ...attributes\\n>\\n  <:after-settings as |styleParameters|>\\n    <Shared::BetaLabel\\n      @label=\\\"Placeholder\\\"\\n      @position={{styleParameters.labelPosition}}\\n      class=\\\"c-edit-dropdown-widget-settings__label {{styleParameters.labelClass}}\\\"\\n    >\\n      <Shared::BetaInput\\n        @value={{one-way @widgetConfiguration.parameters.placeholder}}\\n        @placeholder=\\\"No placeholder\\\"\\n        @onChange={{fn (mut @widgetConfiguration.parameters.placeholder)}}\\n        class={{styleParameters.inputClass}}\\n      />\\n    </Shared::BetaLabel>\\n    <Shared::BetaLabel\\n      @label=\\\"Enable search\\\"\\n      @description=\\\"Allow typing in your search to filter through values (recommended for long list).\\\"\\n      @position={{styleParameters.labelPosition}}\\n      class=\\\"c-edit-dropdown-widget-settings__label {{styleParameters.labelClass}}\\\"\\n      data-test-input-for=\\\"enable-search\\\"\\n      data-test-widgets-edit-dropdown-widget-settings-enable-search\\n    >\\n      <Shared::Form::Toggle\\n        @value={{or @widgetConfiguration.parameters.isSearchable false}}\\n        @onChange={{fn (mut @widgetConfiguration.parameters.isSearchable)}}\\n        class=\\\"c-edit-dropdown-widget-settings__switch-button\\\"\\n        data-test-widgets-edit-dropdown-widget-settings-enable-search-button\\n      />\\n    </Shared::BetaLabel>\\n  </:after-settings>\\n</Widgets::Edit::LimitedValue::WidgetSettings>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/dropdown/widget-settings/template.hbs' });\n","import Component from '@ember/component';\nimport { service } from '@ember/service';\nimport { tagName } from '@ember-decorators/component';\n\nimport { namespace } from 'client/utils/string-utils';\n\n@tagName('')\nexport default class WidgetsEditEmbeddedDocumentEditorWidgetLayoutComponent extends Component {\n  @service store;\n\n  init(...args) {\n    super.init(...args);\n\n    this.nestedRecord =\n      this.value || this.store.createFragment(namespace(this.field.embeddedCollectionName, '-'));\n\n    if (!this.value) {\n      // Initialize the value only when a nested field is set\n      const oldSet = this.nestedRecord.set.bind(this.nestedRecord);\n      this.nestedRecord.set = (key, value) => {\n        const result = oldSet(key, value);\n        if (!this.value) {\n          this.onChange(this.nestedRecord);\n        }\n        return result;\n      };\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<section\\n  class=\\\"l-view__element l-overlay__embedded--document l-dpl\\\"\\n  data-test-display-widget-layout-embedded-document-for={{@field.fieldName}}\\n>\\n  <DataDisplay::Record::Details\\n    @disabled={{@disabled}}\\n    @collection={{@field.nestedOrReferencedCollection}}\\n    @record={{this.nestedRecord}}\\n    @rows={{@field.nestedOrReferencedCollection.viewEdit.visibleRowEdits}}\\n    @disableNested={{false}}\\n    @parentCollection={{@field.collection}}\\n    @parentRecord={{@record}}\\n    @readMode={{false}}\\n  />\\n</section>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/embedded-document-editor/widget-layout/template.hbs' });\n","/* eslint-disable ember/require-tagless-components */\nimport Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-file-picker-add-button')\n@classNameBindings(\n  '_isDragOver:c-file-picker-add-button--is-drag-over',\n  '_isDragOverError:c-file-picker-add-button--is-drag-over-error',\n)\nexport default class WidgetsEditFilePickerAddButtonComponent extends Component {\n  propTypes = {\n    onDrop: PropTypes.func.isRequired,\n    filesExtensions: PropTypes.arrayOf(PropTypes.string),\n    filesSizeLimit: PropTypes.number,\n    filesCountLimit: PropTypes.number,\n    isMultiple: PropTypes.bool,\n  };\n\n  _isDragOver = false;\n  get addOneOrMoreFiles() {\n    if (this.filesCountLimit > 1) return `Add up to ${this.filesCountLimit} files`;\n    if (this.isMultiple && !this.filesCountLimit) return `Add files`;\n    return 'Add a file';\n  }\n\n  get dropZoneText() {\n    if (this.isMultiple && (!this.filesCountLimit || this.filesCountLimit > 1))\n      return 'or drop them here';\n    return 'or drop it here';\n  }\n\n  get filesExtensionsToString() {\n    if (this.filesExtensions?.length > 30) return null;\n    return this.filesExtensions?.join(', ');\n  }\n\n  @computed('filesSizeLimit')\n  get filesSizeLimitInBytes() {\n    return (this.filesSizeLimit || 0) * 1000 * 1000;\n  }\n\n  dragOver(event) {\n    this.preventDefaultAndStopPropagation(event);\n    this.updateDragOver(event);\n  }\n\n  dragEnter(event) {\n    this.preventDefaultAndStopPropagation(event);\n    this.updateDragOver(event);\n  }\n\n  dragLeave(event) {\n    this.preventDefaultAndStopPropagation(event);\n    this.resetDragOver();\n  }\n\n  dragEnd(event) {\n    this.preventDefaultAndStopPropagation(event);\n    this.resetDragOver();\n  }\n\n  drop(event) {\n    this.preventDefaultAndStopPropagation(event);\n    this.resetDragOver();\n\n    const { files } = event.dataTransfer;\n    const validFiles = [];\n    const invalidFiles = [];\n    Array.from(files).forEach((file) => {\n      if (this.isValidType(file)) {\n        validFiles.pushObject(file);\n      } else {\n        invalidFiles.pushObject(file);\n      }\n    });\n    this.onDrop(validFiles, invalidFiles);\n  }\n\n  resetDragOver() {\n    this.set('_isDragOverError', false);\n    this.set('_isDragOver', false);\n  }\n\n  updateDragOver(event) {\n    if (!this.isValid(event)) {\n      this.set('_isDragOverError', true);\n    } else {\n      this.set('_isDragOver', true);\n    }\n  }\n\n  preventDefaultAndStopPropagation(event) {\n    event.preventDefault();\n    event.stopPropagation();\n  }\n\n  isValid(event) {\n    const item = event.dataTransfer?.items[0];\n\n    if (!item) {\n      return false;\n    }\n\n    return item.kind === 'file' && this.isValidType(item);\n  }\n\n  isValidType(file) {\n    const type = file.type || file.name?.split('.').lastObject;\n    return (\n      !type\n      || !this.filesExtensions\n      || this.filesExtensions.any((fileExtension) => type.includes(fileExtension))\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-file-picker-add-button-description\\\">\\n  {{#if this._isDragOverError}}\\n    <span\\n      class=\\\"c-file-picker-add-button__error\\\"\\n      data-test-widgets-edit-file-picker-add-button-error\\n    >\\n      Unauthorized file format\\n    </span>\\n  {{else}}\\n    <i class=\\\"material-icons c-file-picker-add-button__icon\\\">\\n      attach_file\\n    </i>\\n    <span class=\\\"c-file-picker-add-button__link\\\">\\n      {{this.addOneOrMoreFiles}}\\n    </span>\\n    <span class=\\\"c-file-picker-add-button__drop-text\\\">\\n      &nbsp;{{this.dropZoneText}}\\n    </span>\\n  {{/if}}\\n</div>\\n{{#unless this._isDragOverError}}\\n  <span class=\\\"c-file-picker-add-button__limitations\\\">\\n    {{#if this.filesExtensionsToString}}\\n      allowed files:\\n      {{this.filesExtensionsToString}}\\n    {{/if}}\\n    {{#if this.filesSizeLimitInBytes}}\\n      up to\\n      {{number-to-human-size this.filesSizeLimitInBytes}}\\n    {{/if}}\\n  </span>\\n{{/unless}}\\n<div\\n  class=\\\"c-file-picker-add-button__overlay\\n    {{if this._isDragOver \\'c-file-picker-add-button__overlay--hover\\'}}\\\"\\n  data-test-file-picker-add-button-overlay\\n></div>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/file-picker/add-button/template.hbs' });\n","/* eslint-disable ember/require-tagless-components */\nimport { isArray } from '@ember/array';\nimport Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\n\nimport validateArguments from 'client/decorators/validate';\nimport { PromiseArray } from 'client/utils/ember-promise';\nimport FileTypeUtils from 'client/utils/file-type';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport readWebApiFile from 'client/utils/read-web-api-file';\n\n/* global md5 */\n\n@validateArguments\nexport default class WidgetsEditFilePickerComponent extends Component {\n  propTypes = {\n    value: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.string]),\n    prefix: PropTypes.string,\n    disabled: PropTypes.bool,\n    filesExtensions: PropTypes.arrayOf(PropTypes.string),\n    filesSizeLimit: PropTypes.number,\n    filesCountLimit: PropTypes.number,\n    isMultiple: PropTypes.bool,\n    onChange: PropTypes.func,\n    skipConfirm: PropTypes.bool,\n  };\n\n  localFiles = null;\n  uploadModalOpen = false;\n\n  get inputId() {\n    return this.argsInputId || `${guidFor(this)}-input`;\n  }\n\n  @computed('prefix', 'value.[]')\n  get files() {\n    if (!this.value) {\n      return PromiseArray.create({ promise: Promise.resolve([]) });\n    }\n\n    this.setInputFileLoading(true);\n\n    const prefix = this.prefix || '';\n    const values = isArray(this.value) ? this.value : [this.value];\n    const base64Values = values.map((value) => {\n      const dataWithPrefix = `${prefix}${value}`;\n      if (FileTypeUtils.isValidUrl(dataWithPrefix)) {\n        return (\n          FileTypeUtils.getDataFromUrl(dataWithPrefix)\n            .then((data) => {\n              // Store the match between value (url) and data to retrieve it\n              // when removing an item from the values\n              this.updateDataToUrl(data, value);\n              if (data?.opaqueResp) {\n                return {\n                  ...data,\n                  dataType: 'URL',\n                  originalValue: value, // Store original URL to retrieve it when removing\n                };\n              }\n              return data;\n            })\n            // If the data from URL cannot be retrieved, it behaves like a basic string\n            .catch(() => value)\n        );\n      }\n      return dataWithPrefix;\n    });\n    return PromiseArray.create({\n      promise: Promise.all(base64Values).finally(() => {\n        this.setInputFileLoading(false);\n      }),\n    });\n  }\n\n  @computed('dataToFileName', 'files.content.[]')\n  get filesMapped() {\n    let promise;\n    if (!this.dataToFileName) {\n      promise = this.files.then((files) =>\n        files.map((fieldFile, index) => ({\n          name: `File ${index + 1}`,\n          data: fieldFile,\n        })),\n      );\n    } else {\n      promise = this.files.then((files) =>\n        files.map((fieldFile, index) => {\n          const md5FieldFile = md5(fieldFile);\n          return {\n            name: this.dataToFileName[md5FieldFile] || `File ${index + 1}`,\n            data: fieldFile,\n          };\n        }),\n      );\n    }\n\n    return PromiseArray.create({ promise });\n  }\n\n  @computed('filesExtensions')\n  get filesExtensionsForInput() {\n    return this.filesExtensions\n      ? this.filesExtensions.map((fileExtension) => `.${fileExtension}`).join(',')\n      : null;\n  }\n\n  @computed('filesExtensions.toArray')\n  get filesExtensionsForButton() {\n    if (!this.filesExtensions) {\n      return null;\n    }\n\n    const filesExtensions = this.filesExtensions.toArray\n      ? this.filesExtensions.toArray()\n      : [...this.filesExtensions];\n    if (filesExtensions.includes('jpg')) {\n      filesExtensions.pushObject('jpeg');\n    }\n    return filesExtensions;\n  }\n\n  @action\n  openUploadModalChange(event) {\n    this.openUploadModalAction(event.target.files);\n  }\n\n  @action\n  setInputFileLoading(state) {\n    // This function is not set by record edition yet\n    if (this.setFormLoadingState) {\n      this.setFormLoadingState(state);\n    }\n  }\n\n  @action\n  handleClickFilePickerButton(e) {\n    e.preventDefault();\n    document.getElementById(this.inputId)?.click();\n  }\n\n  @action\n  openUploadModalAction(files, invalidFiles) {\n    const filesLength = files.length + (invalidFiles ? invalidFiles.length : 0);\n    if (filesLength === 1 && invalidFiles && invalidFiles.length && !files.length) {\n      this.set('wrongFileTypes', true);\n    } else {\n      this.set('wrongFileTypes', false);\n    }\n\n    this._editedFileData = null;\n    if (this.isMultiple && invalidFiles && filesLength > 1) {\n      files.pushObjects(invalidFiles);\n    }\n\n    this.set('isUpload', true);\n    this.openUploadModal(files);\n  }\n\n  @action\n  closeUploadModal() {\n    this.set('uploadModalOpen', false);\n    this.set('multipleUploadModalOpen', false);\n    this.set('localFiles', null);\n    const input = document.getElementById(this.inputId);\n    input.value = null;\n  }\n\n  @action\n  setFields(files, callback) {\n    this.updateDataToFileName(files);\n    const datas = files.map((file) => file.get('data'));\n    if (!this.value) {\n      this.set('value', datas);\n    } else {\n      this.value.pushObjects(datas);\n    }\n    this.closeUploadModal();\n    callback();\n    this.onChange?.(this.value);\n  }\n\n  @action\n  setField(file, fileData, callback) {\n    this.updateDataToFileName([{ name: file.name, data: fileData }]);\n\n    if (this.isMultiple) {\n      if (!this.value) {\n        this.set('value', [fileData]);\n      } else {\n        const index = this._editedFileData ? this.value.indexOf(this._editedFileData) : -1;\n        if (index !== -1) {\n          this.value.replace(index, 1, [fileData]);\n        } else {\n          this.value.pushObject(fileData);\n        }\n      }\n    } else {\n      this.set('value', fileData);\n    }\n    this.closeUploadModal();\n    callback?.();\n    this.onChange?.(this.value);\n  }\n\n  // TODO: As is, if the file picker contains several time the same value, removing one\n  // will remove all. Fixing this would probably require a full refactoring of the component\n  @action\n  removeFile(file, event) {\n    event.preventDefault();\n    event.stopPropagation();\n\n    if (this.isMultiple) {\n      // Determine what value to remove from this.value\n      let valueToRemove;\n      const md5Hash = md5(file.data);\n      const dataToUrlPath = `dataToUrl.${md5Hash}`;\n\n      // Case 1: Opaque URL response - use originalValue stored in the object\n      if (file.data?.originalValue) {\n        valueToRemove = file.data.originalValue;\n      }\n      // Case 2: Regular URL - use dataToUrl mapping\n      else if (this.get(dataToUrlPath)) {\n        valueToRemove = this.get(dataToUrlPath);\n      }\n      // Case 3: Direct value (base64, etc) - use file.data as-is\n      else {\n        valueToRemove = file.data;\n      }\n\n      // Remove from value array\n      this.value.removeObject(valueToRemove);\n\n      // Clean up dataToFileName mapping\n      if (this.get(`dataToFileName.${md5Hash}`)) {\n        this.set(`dataToFileName.${md5Hash}`, undefined);\n      }\n\n      // Clean up dataToUrl mapping\n      if (this.get(dataToUrlPath)) {\n        this.set(dataToUrlPath, undefined);\n      }\n    } else {\n      this.set('dataToFileName', null);\n      this.set('value', null);\n    }\n\n    this.onChange?.(this.value);\n  }\n\n  @action\n  editFile(file) {\n    this._editedFileData = file.data;\n    this.set('isUpload', false);\n    this.openUploadModal([file]);\n  }\n\n  async openUploadModal(files) {\n    if (!files || !files.length) {\n      return;\n    }\n\n    this.set('localFiles', files);\n    if (this.skipConfirm && files.length === 1) {\n      await this.setField(files[0], await readWebApiFile(files[0], true));\n    } else if (files.length > 1 && this.isMultiple) {\n      this.set('multipleUploadModalOpen', true);\n    } else {\n      this.set('uploadModalOpen', true);\n    }\n  }\n\n  updateDataToFileName(files) {\n    if (!this.dataToFileName) {\n      this.set('dataToFileName', {});\n    }\n    files.forEach((file) => this.set(`dataToFileName.${md5(file.data)}`, file.name));\n  }\n\n  // This is used to keep the match between URL stored in DB and there values used through `files`\n  // Without it we would not be able to remove the given URL from the values\n  updateDataToUrl(data, url) {\n    if (!this.dataToUrl) {\n      this.set('dataToUrl', {});\n    }\n    this.set(`dataToUrl.${md5(data)}`, url);\n  }\n}\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-file-picker-file-list')\nexport default class WidgetsEditFilePickerFileListComponent extends Component {\n  propTypes = {\n    files: PropTypes.arrayOf(PropTypes.string).isRequired,\n    removeFile: PropTypes.func.isRequired,\n    editFile: PropTypes.func.isRequired,\n    disabled: PropTypes.bool,\n  };\n\n  // NOTICE: Because of the parent label, when we click on the following tags the input is\n  // triggered. We need to stop the propagation of the click event to fix that.\n  click() {\n    return false;\n  }\n}\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { classNames } from '@ember-decorators/component';\n\nimport FileTypeUtils from 'client/utils/file-type';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-file-picker-file-list-item')\nexport default class WidgetsEditFilePickerFileListItemComponent extends Component {\n  propTypes = {\n    index: PropTypes.number.isRequired,\n    file: PropTypes.object.isRequired,\n    removeFile: PropTypes.func.isRequired,\n    editFile: PropTypes.func.isRequired,\n    disabled: PropTypes.bool,\n  };\n\n  isValidImage = true;\n  @alias('file.data') data;\n\n  @computed('data', 'file.name')\n  get name() {\n    return FileTypeUtils.getName(this.data) ?? this.file.name;\n  }\n\n  @computed('data.name', 'file.type')\n  get type() {\n    return FileTypeUtils.getTypeOrDefault(this.data, this.file.type);\n  }\n\n  @computed('data')\n  get size() {\n    return FileTypeUtils.getSize(this.data);\n  }\n\n  @computed('data')\n  get isImage() {\n    return FileTypeUtils.isImage(this.data);\n  }\n\n  @action\n  onImageError() {\n    this.set('isValidImage', false);\n  }\n\n  @action\n  none() {\n    return false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (and this.isImage this.isValidImage)}}\\n  <img\\n    {{on \\'click\\' (fn (if @disabled this.none @editFile) @file)}}\\n    {{on \\'error\\' this.onImageError}}\\n    alt=\\\"preview\\\"\\n    src={{this.data}}\\n    class=\\\"c-file-picker-file-list-item__preview\\n      {{if @disabled \\'c-file-picker-file-list-item__preview--disabled\\'}}\\\"\\n    role=\\\"button\\\"\\n  />\\n{{else}}\\n  <i\\n    class=\\\"material-icons c-file-picker-file-list-item__preview\\n      {{if @disabled \\'c-file-picker-file-list-item__preview--disabled\\'}}\\\"\\n    {{on \\'click\\' (fn (if @disabled this.none @editFile) @file)}}\\n    role=\\\"button\\\"\\n  >\\n    insert_drive_file\\n  </i>\\n{{/if}}\\n<span\\n  {{on \\'click\\' (fn (if @disabled this.none @editFile) @file)}}\\n  class=\\\"c-file-picker-file-list-item__name\\n    {{if @disabled \\'c-file-picker-file-list-item__name--disabled\\'}}\\\"\\n  role=\\\"button\\\"\\n  data-test-file-picker-file-list-item-overlay\\n>\\n  {{this.name}}\\n</span>\\n<span class=\\\"c-file-picker-file-list-item__info\\\">\\n  {{or this.type \\'unknown file type\\'}}\\n  {{#if this.size}} - {{number-to-human-size this.size roundAmount=1}} {{/if}}\\n</span>\\n\\n{{#unless @disabled}}\\n  <i\\n    class=\\\"material-icons c-file-picker-file-list-item__icon\\\"\\n    {{on \\'click\\' (fn @removeFile @file)}}\\n    role=\\\"button\\\"\\n    data-test-widgets-file-picker-file-list-item-remove-button\\n  >\\n    close\\n  </i>\\n{{/unless}}\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/file-picker/file-list/item/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#each @files as |file index|}}\\n  <Widgets::Edit::FilePicker::FileList::Item\\n    @index={{index}}\\n    @file={{file}}\\n    @removeFile={{@removeFile}}\\n    @editFile={{@editFile}}\\n    @disabled={{@disabled}}\\n  />\\n{{/each}}\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/file-picker/file-list/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<i class=\\\"material-icons c-upload-modal-preview__error-icon\\\">\\n  visibility_off\\n</i>\\n<span class=\\\"c-upload-modal-preview__error-description\\\">\\n  {{yield}}\\n</span>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/file-picker/modal-error/template.hbs' });\n","/* eslint-disable ember/require-tagless-components */\nimport Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { or } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nimport { PromiseObject } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport readWebApiFile from 'client/utils/read-web-api-file';\nimport UploadedFile from 'client/utils/uploaded-file';\n\nexport default class WidgetsEditFilePickerMultipleUploadModalComponent extends Component {\n  propTypes = {\n    onClose: PropTypes.func.isRequired,\n    files: PropTypes.instanceOf(FileList).isRequired,\n    onUseButtonClicked: PropTypes.func.isRequired,\n    isUpload: PropTypes.bool.isRequired,\n    filesExtensions: PropTypes.arrayOf(PropTypes.string),\n    filesSizeLimit: PropTypes.number,\n    filesCountLimit: PropTypes.number,\n    currentNumberOfFiles: PropTypes.number.isRequired,\n  };\n\n  @service lianaFeatures;\n  @service lianaSession;\n\n  @or('isLoading', 'tooMuchFiles', 'isNotSupportedType', 'isTooBig') disableButton;\n\n  @computed('fileObjects.@each.isNotSupportedType')\n  get isNotSupportedType() {\n    return this.fileObjects.any((file) => file.get('isNotSupportedType'));\n  }\n\n  @computed('fileObjects.@each.isTooBig')\n  get isTooBig() {\n    return this.fileObjects.any((file) => file.get('isTooBig'));\n  }\n\n  @computed('filesSizeLimit')\n  get limitSize() {\n    return (this.filesSizeLimit || 0) * 1000 * 1000;\n  }\n\n  @computed('totalNumberOfFiles', 'filesCountLimit')\n  get tooMuchFiles() {\n    return this.filesCountLimit && this.filesCountLimit < this.totalNumberOfFiles;\n  }\n\n  @computed('tooMuchFiles', 'totalNumberOfFiles', 'filesCountLimit')\n  get textButton() {\n    if (this.tooMuchFiles) {\n      return `Files limit exceeded (${this.totalNumberOfFiles}/${this.filesCountLimit})`;\n    }\n    return 'Use these files';\n  }\n\n  @computed('fileObjects.@each.isLoading')\n  get isLoading() {\n    return this.fileObjects.any((file) => file.get('isLoading'));\n  }\n\n  @computed('currentNumberOfFiles', 'fileObjects.length')\n  get totalNumberOfFiles() {\n    return Number(this.currentNumberOfFiles) + Number(this.fileObjects?.length || 0);\n  }\n\n  @computed('files', 'lianaFeatures', 'lianaSession.currentEnvironment')\n  get fileObjects() {\n    const useNamedUploads = this.lianaFeatures.isFeatureCompatible(\n      'uploadsWithFilename',\n      this.lianaSession.currentEnvironment,\n    );\n    const { limitSize, filesExtensions } = this;\n\n    return Array.from(this.files).map((file) =>\n      UploadedFile.create({\n        dataPromise: PromiseObject.create({ promise: readWebApiFile(file, useNamedUploads) }),\n        isImage: file.type.includes('image/'),\n        name: file.name,\n        limitSize,\n        filesExtensions,\n      }),\n    );\n  }\n\n  @action\n  removeFile(file) {\n    this.fileObjects.removeObject(file);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @onClose={{@onClose}}\\n  @contentClass=\\\"c-multiple-upload-modal__modal-content\\\"\\n  @title=\\\"Upload files\\\"\\n  @portal=\\\"widget-modal\\\"\\n  @stopPropagation={{true}}\\n>\\n  <div class=\\\"c-multiple-upload-modal-content\\\">\\n    <div class=\\\"c-multiple-upload-modal-content__body\\\">\\n      {{#each this.fileObjects as |file|}}\\n        <div class=\\\"c-multiple-upload-modal-item\\\">\\n          <div\\n            class=\\\"c-multiple-upload-modal-item__preview\\n              {{if file.isImage \\'c-multiple-upload-modal-item__preview--image\\'}}\\n              {{if\\n                (or file.isTooBig file.isNotSupportedType)\\n                \\'c-multiple-upload-modal-item__preview--error\\'\\n              }}\\\"\\n          >\\n            {{#if (or file.isTooBig file.isNotSupportedType)}}\\n              <Shared::DataDisplay::BetaIcon\\n                @iconName=\\\"error_outline\\\"\\n                class=\\\"c-multiple-upload-modal-item__preview-icon\\\"\\n              />\\n              <span class=\\\"c-multiple-upload-modal-item__preview-error-name\\\">\\n                {{if file.isTooBig \\'File too big\\' \\'File type not supported\\'}}\\n              </span>\\n              {{#if file.isTooBig}}\\n                <span class=\\\"c-multiple-upload-modal-item__preview-error-description\\\">\\n                  (max:\\n                  {{number-to-human-size this.limitSize}})\\n                </span>\\n              {{/if}}\\n            {{else if file.isLoading}}\\n              <div class=\\\"c-multiple-upload-modal-item__preview-overlay\\\"></div>\\n              <Shared::Feedback::BetaLoader />\\n            {{else}}\\n              <div class=\\\"c-multiple-upload-modal-item__preview-overlay\\\"></div>\\n              {{#if file.isImage}}\\n                <img\\n                  class=\\\"c-multiple-upload-modal-item__preview-image\\\"\\n                  alt=\\\"preview\\\"\\n                  src={{file.data}}\\n                />\\n              {{else}}\\n                <i class=\\\"material-icons c-multiple-upload-modal-item__preview-file-icon\\\">\\n                  insert_drive_file\\n                </i>\\n                <span class=\\\"c-multiple-upload-modal-item__preview-file-type\\\">\\n                  {{file.type}}\\n                  file\\n                </span>\\n              {{/if}}\\n            {{/if}}\\n            <i\\n              {{on \\'click\\' (fn this.removeFile file)}}\\n              class=\\\"material-icons c-multiple-upload-modal-item__close\\n                {{if file.isImage \\'c-multiple-upload-modal-item__close--white\\'}}\\\"\\n              role=\\\"button\\\"\\n            >\\n              close\\n            </i>\\n          </div>\\n          <div class=\\\"c-multiple-upload-modal-item__filename\\\">\\n            {{file.name}}\\n          </div>\\n          <div class=\\\"c-multiple-upload-modal-item__size\\\">\\n            {{number-to-human-size file.size roundAmount=1}}\\n          </div>\\n        </div>\\n      {{/each}}\\n    </div>\\n    <div class=\\\"c-multiple-upload-modal-content__footer\\\">\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @text={{this.textButton}}\\n        @async={{true}}\\n        @disabled={{this.disableButton}}\\n        @action={{fn @onUseButtonClicked this.fileObjects}}\\n        class=\\\"c-multiple-upload-modal-content__validate-button\\\"\\n      />\\n    </div>\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/file-picker/multiple-upload-modal/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#unless @disabled}}\\n  <div class=\\\"l-file-picker-file-input\\\">\\n    <Widgets::Edit::FilePicker::AddButton\\n      @onDrop={{this.openUploadModalAction}}\\n      @filesExtensions={{this.filesExtensionsForButton}}\\n      @filesSizeLimit={{@filesSizeLimit}}\\n      @filesCountLimit={{@filesCountLimit}}\\n      @isMultiple={{@isMultiple}}\\n      {{on \\'click\\' this.handleClickFilePickerButton}}\\n      data-test-file-picker-add-button\\n    />\\n    <input\\n      id={{this.inputId}}\\n      {{on \\'change\\' this.openUploadModalChange}}\\n      type=\\\"file\\\"\\n      class=\\\"c-file-picker__hidden-file-input\\\"\\n      accept={{this.filesExtensionsForInput}}\\n      multiple={{@isMultiple}}\\n      data-test-file-picker-input\\n    />\\n  </div>\\n  {{#if this.wrongFileTypes}}\\n    <div class=\\\"c-file-picker__error-file-type\\\">\\n      <i class=\\\"material-icons c-file-picker__error-file-type-icon\\\">\\n        cancel\\n      </i>\\n      <span class=\\\"c-file-picker__error-file-type-text\\\">\\n        Unauthorized file format\\n      </span>\\n    </div>\\n  {{/if}}\\n{{/unless}}\\n\\n<Widgets::Edit::FilePicker::FileList\\n  @files={{this.filesMapped}}\\n  @removeFile={{this.removeFile}}\\n  @editFile={{this.editFile}}\\n  @disabled={{@disabled}}\\n  @class={{concat\\n    \\'c-file-picker__file-list\\'\\n    (unless @disabled \\' c-file-picker__file-list--space-before\\')\\n  }}\\n/>\\n\\n{{#if this.multipleUploadModalOpen}}\\n  <Widgets::Edit::FilePicker::MultipleUploadModal\\n    @files={{this.localFiles}}\\n    @onClose={{this.closeUploadModal}}\\n    @onUseButtonClicked={{this.setFields}}\\n    @filesExtensions={{this.filesExtensionsForButton}}\\n    @filesSizeLimit={{@filesSizeLimit}}\\n    @filesCountLimit={{@filesCountLimit}}\\n    @currentNumberOfFiles={{this.filesMapped.length}}\\n  />\\n{{/if}}\\n\\n{{#if this.uploadModalOpen}}\\n  <Widgets::Edit::FilePicker::UploadModal\\n    @files={{this.localFiles}}\\n    @onClose={{this.closeUploadModal}}\\n    @onUseButtonClicked={{this.setField}}\\n    @isUpload={{this.isUpload}}\\n    @filesSizeLimit={{@filesSizeLimit}}\\n    @filesCountLimit={{@filesCountLimit}}\\n    @currentNumberOfFiles={{this.filesMapped.length}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/file-picker/template.hbs' });\n","/* eslint-disable ember/require-tagless-components */\nimport Component from '@ember/component';\nimport { action, computed, defineProperty } from '@ember/object';\nimport { alias, equal } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { classNames } from '@ember-decorators/component';\nimport { tracked } from '@glimmer/tracking';\nimport Cropper from 'cropperjs';\n\nimport { numberToHumanSize } from 'client/shared/helpers/number-to-human-size';\nimport { PromiseObject } from 'client/utils/ember-promise';\nimport FileTypeUtils from 'client/utils/file-type';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport readWebApiFile from 'client/utils/read-web-api-file';\n\n// Maps file extensions to MIME types for files the browser reports as\n// application/octet-stream (e.g. .md on macOS Chrome).\nconst OCTET_STREAM_EXTENSION_MAP = {\n  md: 'text/markdown',\n  markdown: 'text/markdown',\n};\n\n// MIME types that browsers cannot natively render in <object> but can\n// be displayed as plain text.\nconst PREVIEW_MIME_MAP = {\n  'text/markdown': 'text/plain',\n};\n\n// File extensions whose content can safely be displayed as text.\nconst SAFE_TEXT_EXTENSIONS = new Set(['md', 'markdown']);\n\nconst ROTATION_90 = Math.PI / 2;\nconst CROPPER_DEFAULT_CONFIG = {\n  previewClass: '.cropper-preview',\n  cropperContainer: '.cropper-container > img',\n  crop: null,\n  viewMode: 0,\n  dragMode: 'crop',\n  responsive: true,\n  center: true,\n  checkCrossOrigin: true,\n  background: true,\n  modal: true,\n  guides: true,\n  highlight: true,\n  autoCrop: true,\n  autoCropArea: 0.8,\n  dragDrop: true,\n  movable: true,\n  resizable: true,\n  zoomable: true,\n  zoomOnWheel: true,\n  zoomOnTouch: true,\n  cropBoxMovable: true,\n  cropBoxResizable: true,\n  toggleDragModeOnDblclick: true,\n  rotateable: true,\n  minContainerWidth: 200,\n  minContainerHeight: 100,\n  minCropBoxWidth: 0,\n  minCropBoxHeight: 0,\n  build: null,\n  built: null,\n  dragStart: null,\n  dragMove: null,\n  dragEnd: null,\n  zoomin: null,\n  zoomout: null,\n  ready: null,\n  data: null,\n};\n\n@classNames('c-upload-modal')\nexport default class WidgetsEditFilePickerUploadModalComponent extends Component {\n  propTypes = {\n    onClose: PropTypes.func.isRequired,\n    files: PropTypes.instanceOf(FileList).isRequired,\n    onUseButtonClicked: PropTypes.func.isRequired,\n    isUpload: PropTypes.bool.isRequired,\n    filesSizeLimit: PropTypes.number,\n    filesCountLimit: PropTypes.number,\n    currentNumberOfFiles: PropTypes.number.isRequired,\n  };\n\n  @service lianaFeatures;\n  @service lianaSession;\n\n  copperConfiguration = {\n    cropperContainer: '.js-image-preview',\n    zoomOnWheel: false,\n    minCropBoxWidth: 50,\n    minCropBoxHeight: 50,\n    aspectRatio: NaN,\n  };\n\n  @tracked cropper;\n\n  _currentBlobUrl = null;\n\n  @computed('data', 'file.name')\n  get name() {\n    return FileTypeUtils.getName(this.data || '') ?? this.file.name;\n  }\n\n  @computed('data')\n  get size() {\n    return FileTypeUtils.getSize(this.data || '');\n  }\n\n  @computed('data')\n  get type() {\n    return FileTypeUtils.getTypeOrDefault(this.data || '', '');\n  }\n\n  @computed('data', 'file.name')\n  get fullType() {\n    let mimeType = FileTypeUtils.getMimeTypeFromBase64(this.data || '');\n    if (mimeType === 'application/octet-stream' && this.file?.name) {\n      const ext = this.file.name.split('.').pop()?.toLowerCase();\n      mimeType = (ext && OCTET_STREAM_EXTENSION_MAP[ext]) || mimeType;\n    }\n    return PREVIEW_MIME_MAP[mimeType] || mimeType;\n  }\n\n  @computed('fullType')\n  get isTextPreviewable() {\n    const type = this.fullType;\n    return type === 'text/plain' || type === 'text/csv' || type === 'application/json';\n  }\n\n  @computed('data')\n  get textContent() {\n    if (!this.data || !FileTypeUtils.isBase64Prefixed(this.data)) return '';\n    try {\n      const base64 = this.data.substring(this.data.search(/base64,/i) + 7);\n      return decodeURIComponent(escape(atob(base64)));\n    } catch {\n      return '';\n    }\n  }\n\n  @computed('data')\n  get previewUrl() {\n    return this._buildPreviewUrl(this.data);\n  }\n\n  _buildPreviewUrl(data) {\n    if (this._currentBlobUrl) {\n      URL.revokeObjectURL(this._currentBlobUrl);\n      this._currentBlobUrl = null;\n    }\n\n    if (data && FileTypeUtils.isValidBase64(data)) {\n      try {\n        const blobUrl = FileTypeUtils.createObjectUrl(data);\n        this._currentBlobUrl = blobUrl;\n        return blobUrl;\n      } catch {\n        return data;\n      }\n    }\n    return data;\n  }\n\n  @computed('data.dataType')\n  get isImageAvailable() {\n    return this.data?.dataType !== 'URL';\n  }\n\n  @computed('size')\n  get isFileTooBigForPreview() {\n    return FileTypeUtils.isFileTooBigForPreview(this.size);\n  }\n\n  @computed('filesSizeLimit')\n  get limitSize() {\n    return (this.filesSizeLimit || 0) * 1000 * 1000;\n  }\n\n  @computed('limitSize', 'size')\n  get isFileTooBig() {\n    return this.limitSize && this.limitSize < this.size;\n  }\n\n  @computed('currentNumberOfFiles', 'filesCountLimit', 'isUpload')\n  get tooMuchFiles() {\n    return (\n      this.filesCountLimit && this.currentNumberOfFiles >= this.filesCountLimit && this.isUpload\n    );\n  }\n\n  @computed('isLoading', 'isFileTooBig', 'croppingModeActive', 'tooMuchFiles')\n  get disableButton() {\n    return Boolean(\n      this.isLoading || this.tooMuchFiles || (!this.croppingModeActive && this.isFileTooBig),\n    );\n  }\n\n  @computed('croppingModeActive', 'isFileTooBig', 'isUpload', 'limitSize', 'tooMuchFiles')\n  get textButton() {\n    if (this.tooMuchFiles) {\n      return 'Files limit exceeded';\n    }\n    if (this.croppingModeActive) {\n      return 'Crop this image';\n    }\n    if (this.isFileTooBig) {\n      return `File too big (up to ${numberToHumanSize([this.limitSize], {})})`;\n    }\n\n    return this.isUpload ? 'Use this file' : 'Update this file';\n  }\n\n  get croppingModeActive() {\n    return !!this.cropper;\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    const file = this.files[0];\n    if (this.isUpload) {\n      const useNamedUploads = this.lianaFeatures.isFeatureCompatible(\n        'uploadsWithFilename',\n        this.lianaSession.currentEnvironment,\n      );\n\n      this.set(\n        'dataPromise',\n        PromiseObject.create({ promise: readWebApiFile(file, useNamedUploads) }),\n      );\n      defineProperty(this, 'data', alias('dataPromise.content'));\n      defineProperty(this, 'isLoading', equal('dataPromise.isPending', true));\n      defineProperty(\n        this,\n        'isSafe',\n        computed('data', 'file.name', function () {\n          if (!this.data) return false;\n          if (FileTypeUtils.isSafeBase64(this.data)) return true;\n          // Fallback: when MIME is application/octet-stream, check file extension\n          if (this.data.startsWith('data:application/octet-stream') && this.file?.name) {\n            const ext = this.file.name.split('.').pop()?.toLowerCase();\n            return ext ? SAFE_TEXT_EXTENSIONS.has(ext) : false;\n          }\n          return false;\n        }),\n      );\n      this.set('isImage', file.type.includes('image/'));\n      this.set('isPdf', this.type === 'pdf');\n    } else {\n      this.set('data', file.data);\n      this.set('isImage', FileTypeUtils.isImage(file.data));\n      this.set('isPdf', FileTypeUtils.isPdf(file.data));\n      this.set('isLoading', false);\n      this.set('isSafe', FileTypeUtils.isSafeBase64(file.data));\n    }\n\n    this.set('file', file);\n  }\n\n  willDestroyElement(...args) {\n    super.willDestroyElement(...args);\n    if (this._currentBlobUrl) {\n      URL.revokeObjectURL(this._currentBlobUrl);\n      this._currentBlobUrl = null;\n    }\n    this.cropper?.destroy();\n  }\n\n  toggleCropper() {\n    if (this.cropper) {\n      this.cropper.destroy();\n      this.cropper = null;\n      return;\n    }\n\n    const properties = {\n      ...CROPPER_DEFAULT_CONFIG,\n      ...this.copperConfiguration,\n    };\n\n    properties.preview = properties.previewClass;\n    delete properties.previewClass;\n\n    const image = document.querySelector(properties.cropperContainer);\n    this.cropper = new Cropper(image, properties);\n  }\n\n  getCroppedImage(type) {\n    const imageCropped = this.cropper.getCroppedCanvas();\n    return imageCropped.toDataURL(type);\n  }\n\n  @action\n  rotateLeftAction() {\n    if (!this.isImage) {\n      return;\n    }\n    this.rotateLeft();\n  }\n\n  @action\n  rotateRightAction() {\n    if (!this.isImage) {\n      return;\n    }\n    this.rotateRight();\n  }\n\n  @action\n  toggleCropperAction() {\n    if (!this.isImage) {\n      return;\n    }\n    this.toggleCropper();\n  }\n\n  @action\n  cropAction() {\n    const newData = this.getCroppedImage(this.fullType);\n    this._setImage(newData);\n    this.toggleCropper();\n  }\n\n  @action\n  onImageError() {\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n\n    this.set('cantPreviewImage', true);\n  }\n\n  _setImage(data) {\n    this.set('data', data);\n  }\n\n  _rotate(clockwise) {\n    const canvas = document.createElement('canvas');\n    const context = canvas.getContext('2d');\n\n    const image = new Image();\n    image.src = this.data;\n    image.onload = () => {\n      const { width, height } = image;\n      canvas.width = height;\n      canvas.height = width;\n\n      const rotation = clockwise ? ROTATION_90 : -ROTATION_90;\n      const translation = clockwise ? [canvas.width, 0] : [0, canvas.height];\n      context.translate(...translation);\n      context.rotate(rotation);\n      context.drawImage(image, 0, 0);\n\n      const newData = canvas.toDataURL(this.fullType);\n      this._setImage(newData);\n    };\n  }\n\n  rotateLeft() {\n    this._rotate(false);\n  }\n\n  rotateRight() {\n    this._rotate(true);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaModal\\n  @onClose={{@onClose}}\\n  @contentClass=\\\"c-upload-modal__modal-content\\\"\\n  @title=\\\"Upload files\\\"\\n  @portal=\\\"widget-modal\\\"\\n  @stopPropagation={{true}}\\n>\\n  <div class=\\\"c-upload-modal-content\\\">\\n    <div class=\\\"c-upload-modal-content__body\\\">\\n      <div class=\\\"c-upload-modal-preview\\\">\\n        {{#if this.isLoading}}\\n          <Shared::Feedback::BetaLoader />\\n        {{else}}\\n          {{#if this.isImage}}\\n            {{#if this.cantPreviewImage}}\\n              <div class=\\\"c-upload-modal-preview__image-error\\\">\\n                <Widgets::Edit::FilePicker::ModalError>\\n                  The preview is not available for this type of file.\\n                </Widgets::Edit::FilePicker::ModalError>\\n              </div>\\n            {{else}}\\n              <img\\n                {{on \\'error\\' this.onImageError}}\\n                class=\\\"c-upload-modal-preview__image js-image-preview\\\"\\n                alt=\\\"preview\\\"\\n                src={{this.data}}\\n                data-test-file-picker-upload-modal-image\\n              />\\n            {{/if}}\\n          {{else}}\\n            {{#if this.isFileTooBigForPreview}}\\n              <div class=\\\"c-upload-modal-preview__other-type\\\">\\n                <Widgets::Edit::FilePicker::ModalError>\\n                  The preview is not available for large files.\\n                </Widgets::Edit::FilePicker::ModalError>\\n              </div>\\n            {{else if (and this.isSafe this.isTextPreviewable)}}\\n              <pre\\n                class=\\\"c-upload-modal-preview__other-type c-upload-modal-preview__text-content\\\"\\n                data-test-file-picker-upload-modal-text-preview\\n              >{{this.textContent}}</pre>\\n            {{else if this.isSafe}}\\n              <object\\n                class=\\\"c-upload-modal-preview__other-type\\\"\\n                type={{this.fullType}}\\n                data={{this.previewUrl}}\\n              >\\n                <Widgets::Edit::FilePicker::ModalError>\\n                  The preview is not available for this type of file.\\n                </Widgets::Edit::FilePicker::ModalError>\\n              </object>\\n            {{else}}\\n              <div class=\\\"c-upload-modal-preview__other-type\\\">\\n                <Widgets::Edit::FilePicker::ModalError>\\n                  The preview is not available for this type of file.\\n                </Widgets::Edit::FilePicker::ModalError>\\n              </div>\\n            {{/if}}\\n          {{/if}}\\n        {{/if}}\\n      </div>\\n      <div class=\\\"c-upload-modal-filename\\\">{{this.name}}</div>\\n      {{#if this.size}}\\n        <div class=\\\"c-upload-modal-size\\\">{{number-to-human-size this.size roundAmount=1}}</div>\\n      {{/if}}\\n      {{#if this.isImage}}\\n        <div class=\\\"l-upload-modal-actions\\\">\\n          <div class=\\\"l-upload-modal-actions__button\\\">\\n            <Shared::Button::BetaButton\\n              @type=\\\"secondary\\\"\\n              @iconName=\\\"replay\\\"\\n              @action={{this.rotateLeftAction}}\\n              @async={{false}}\\n              @disabled={{or this.croppingModeActive this.cantPreviewImage}}\\n              class=\\\"c-upload-modal-content__action\\\"\\n            />\\n            <span class=\\\"c-upload-modal-content__action-text\\\">\\n              Rotate Left\\n            </span>\\n          </div>\\n          <div class=\\\"l-upload-modal-actions__button\\\">\\n            <Shared::Button::BetaButton\\n              @type=\\\"secondary\\\"\\n              @iconName=\\\"replay\\\"\\n              @action={{this.rotateRightAction}}\\n              @async={{false}}\\n              @disabled={{or this.croppingModeActive this.cantPreviewImage}}\\n              class=\\\"c-upload-modal-content__action c-upload-modal-content__action--rotate-right\\\"\\n              data-test-file-picker-upload-modal-rotate-right\\n            />\\n            <span class=\\\"c-upload-modal-content__action-text\\\">\\n              Rotate Right\\n            </span>\\n          </div>\\n          <div class=\\\"l-upload-modal-actions__button\\\">\\n            <Shared::Button::BetaButton\\n              @type=\\\"secondary\\\"\\n              @iconName=\\\"crop\\\"\\n              @action={{this.toggleCropperAction}}\\n              @async={{false}}\\n              @disabled={{this.cantPreviewImage}}\\n              class=\\\"c-upload-modal-content__action\\\"\\n              data-test-file-picker-upload-modal-crop-mode\\n            />\\n            <span class=\\\"c-upload-modal-content__action-text\\\">\\n              {{if this.croppingModeActive \\'Cancel Crop\\' \\'Crop\\'}}\\n            </span>\\n          </div>\\n        </div>\\n      {{/if}}\\n    </div>\\n    {{#if this.isImageAvailable}}\\n      <div class=\\\"c-upload-modal-content__footer\\\">\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @text={{this.textButton}}\\n          class={{concat\\n            \\'c-upload-modal-content__validate-button\\'\\n            (if this.croppingModeActive \\' c-upload-modal-content__validate-button--crop\\')\\n          }}\\n          @async={{not this.croppingModeActive}}\\n          @disabled={{this.disableButton}}\\n          @action={{fn\\n            (if this.croppingModeActive this.cropAction @onUseButtonClicked)\\n            this.file\\n            this.data\\n          }}\\n          data-test-file-picker-upload-modal-validate-button\\n        />\\n      </div>\\n    {{/if}}\\n  </div>\\n</Shared::BetaModal>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/file-picker/upload-modal/template.hbs' });\n","import Component from '@ember/component';\nimport { alias } from '@ember/object/computed';\n\nimport Field from 'client/data/models/field';\nimport WidgetConfiguration from 'client/data/models/widget-configuration';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class WidgetsEditFilePickerWidgetLayoutComponent extends Component {\n  propTypes = {\n    value: PropTypes.string,\n    field: PropTypes.instanceOf(Field).isRequired,\n    widgetConfiguration: PropTypes.instanceOf(WidgetConfiguration).isRequired,\n    onChange: PropTypes.func,\n  };\n\n  @alias('widgetConfiguration.parameters.prefix') prefix;\n  @alias('widgetConfiguration.parameters.filesExtensions') filesExtensions;\n  @alias('widgetConfiguration.parameters.filesSizeLimit') filesSizeLimit;\n  @alias('widgetConfiguration.parameters.filesCountLimit') filesCountLimit;\n  @alias('field.isArray') isMultiple;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Widgets::Edit::FilePicker\\n  @prefix={{this.prefix}}\\n  @value={{@value}}\\n  @disabled={{@disabled}}\\n  @filesExtensions={{this.filesExtensions}}\\n  @filesSizeLimit={{this.filesSizeLimit}}\\n  @filesCountLimit={{this.filesCountLimit}}\\n  @isMultiple={{this.isMultiple}}\\n  @setFormLoadingState={{this.setFormLoadingState}}\\n  @argsInputId={{@inputId}}\\n  @onChange={{@onChange}}\\n  data-test-edit-widget-layout-file-picker-for={{@field.fieldName}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/file-picker/widget-layout/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { classNames } from '@ember-decorators/component';\n\nimport Field from 'client/data/models/field';\nimport WidgetConfiguration from 'client/data/models/widget-configuration';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-file-picker-widget-setting')\nexport default class WidgetsEditFilePickerWidgetSettingsComponent extends Component {\n  propTypes = {\n    field: PropTypes.instanceOf(Field).isRequired,\n    widgetConfiguration: PropTypes.instanceOf(WidgetConfiguration).isRequired,\n  };\n\n  @alias('widgetConfiguration.parameters.prefix') prefix;\n  @alias('widgetConfiguration.parameters.filesExtensions') filesExtensions;\n  @alias('widgetConfiguration.parameters.filesSizeLimit') filesSizeLimit;\n  @alias('widgetConfiguration.parameters.filesCountLimit') filesCountLimit;\n\n  @computed('_hasLimitedFilesExtensions', 'filesExtensions.length')\n  get hasLimitedFilesExtensions() {\n    if (this._hasLimitedFilesExtensions) {\n      return this._hasLimitedFilesExtensions;\n    }\n    return !!this.filesExtensions;\n  }\n\n  set hasLimitedFilesExtensions(value) {\n    this._hasLimitedFilesExtensions = value;\n    this.set('filesExtensions', value ? [] : null);\n    return value;\n  }\n\n  @action\n  addExtension(extension) {\n    if (!extension) {\n      return;\n    }\n\n    const extensionWithDot = extension.startsWith('.') ? extension.substring(1) : extension;\n    if (!this.filesExtensions.includes(extensionWithDot)) {\n      this.filesExtensions.pushObject(extensionWithDot);\n    }\n  }\n\n  @action\n  removeExtension(extension) {\n    this.filesExtensions.removeObject(extension);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel\\n  @label=\\\"Prefix\\\"\\n  class=\\\"c-file-picker-widget-setting__label\\\"\\n  data-test-prefix={{true}}\\n>\\n  <Shared::BetaInput\\n    @value={{this.prefix}}\\n    @placeholder=\\\"https://aws.s3/my-folder/\\\"\\n    @onEmpty={{fn (mut this.prefix) null}}\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel\\n  @label=\\\"Allow specific file extensions\\\"\\n  @position=\\\"left\\\"\\n  class=\\\"c-file-picker-widget-setting__label c-file-picker-widget-setting__label--space-before\\\"\\n  data-test-has-limited-file-extensions={{true}}\\n>\\n  <Shared::Form::Toggle\\n    @value={{this.hasLimitedFilesExtensions}}\\n    @onChange={{fn (mut this.hasLimitedFilesExtensions)}}\\n    class=\\\"c-file-picker-widget-setting__switch\\\"\\n  />\\n</Shared::BetaLabel>\\n\\n{{#if (and @displayErrors (is-array this.filesExtensions) (not this.filesExtensions.length))}}\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"error\\\"\\n    @message=\\\"You must add at least one value.\\\"\\n    @canHide={{false}}\\n    class=\\\"c-file-picker-widget-setting__extensions\\\"\\n  />\\n{{/if}}\\n\\n{{#if this.hasLimitedFilesExtensions}}\\n  <Shared::BetaInputList\\n    @placeholder=\\\"Enter an extension {{\\'\\\"jpg\\\"\\'}} then press enter or {{\\'\\\"Add value\\\"\\'}}\\\"\\n    @values={{this.filesExtensions}}\\n    @onAddValue={{this.addExtension}}\\n    @onRemoveValue={{this.removeExtension}}\\n    @allowDuplicate={{false}}\\n    @class=\\\"c-file-picker-widget-setting__extensions\\\"\\n    data-test-file-extensions-list={{true}}\\n  />\\n{{/if}}\\n\\n<Shared::BetaLabel\\n  @label=\\\"Maximum files size\\\"\\n  @description=\\\"Accept files up to the following size limit in Mb.\\\"\\n  class=\\\"c-file-picker-widget-setting__label c-file-picker-widget-setting__label--space-before\\\"\\n  data-test-filesSizeLimit={{true}}\\n>\\n  <Shared::BetaInput @value={{this.filesSizeLimit}} @type=\\\"number\\\" />\\n</Shared::BetaLabel>\\n\\n{{#if this.field.isArray}}\\n  <Shared::BetaLabel\\n    @label=\\\"Maximum files\\\"\\n    @description=\\\"Accept files up to the following limit.\\\"\\n    class=\\\"c-file-picker-widget-setting__label c-file-picker-widget-setting__label--space-before\\\"\\n    data-test-filesCountLimit={{true}}\\n  >\\n    <Shared::BetaInput @value={{this.filesCountLimit}} @type=\\\"number\\\" />\\n  </Shared::BetaLabel>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/file-picker/widget-settings/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\n\nimport Field from 'client/data/models/field';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class WidgetsEditInputArrayWidgetLayoutComponent extends Component {\n  propTypes = {\n    value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),\n    field: PropTypes.instanceOf(Field).isRequired,\n    onChange: PropTypes.func,\n  };\n\n  @alias('value') values;\n\n  @computed('field.isArrayOfIntegers')\n  get type() {\n    return this.field?.isArrayOfIntegers ? 'number' : 'text';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Form::FormArray\\n  @value={{this.values}}\\n  @type={{this.type}}\\n  @placeholder={{@field.widgetEdit.parameters.placeholder}}\\n  @reorderable={{@field.widgetEdit.parameters.enableReorder}}\\n  @allowDuplicate={{@field.widgetEdit.parameters.allowDuplicate}}\\n  @allowEmptyValue={{@field.widgetEdit.parameters.allowEmptyValue}}\\n  @min={{@field.widgetEdit.parameters.min}}\\n  @max={{@field.widgetEdit.parameters.max}}\\n  @step={{@field.widgetEdit.parameters.step}}\\n  @onChange={{@onChange}}\\n  @disabled={{@disabled}}\\n  @inputId={{@inputId}}\\n  data-test-edit-widget-layout-input-array-for={{@field.fieldName}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/input-array/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel @label=\\\"Placeholder\\\" data-test-widget-edit-input-array-widget-placeholder>\\n  <Shared::BetaInput\\n    @value={{@widgetConfiguration.parameters.placeholder}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.placeholder) null}}\\n    data-test-widget-edit-input-array-widget-placeholder-input\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel\\n  @label=\\\"Enable reordering\\\"\\n  @description=\\\"Allow value reordering by drag&drop.\\\"\\n  data-test-input-for=\\\"enable-reordering\\\"\\n  data-test-widgets-edit-input-array-widget-settings-enable-reordering\\n>\\n  <Shared::Form::Toggle\\n    @value={{@widgetConfiguration.parameters.enableReorder}}\\n    @onChange={{fn (mut @widgetConfiguration.parameters.enableReorder)}}\\n    data-test-widgets-edit-input-array-widget-settings-enable-reordering-button\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel\\n  @label=\\\"Allow duplicate values\\\"\\n  @description=\\\"Allow users to input duplicate values.\\\"\\n  data-test-input-for=\\\"allow-duplicate\\\"\\n  data-test-widgets-edit-input-array-widget-settings-allow-duplicate\\n>\\n  <Shared::Form::Toggle\\n    @value={{@widgetConfiguration.parameters.allowDuplicate}}\\n    @onChange={{fn (mut @widgetConfiguration.parameters.allowDuplicate)}}\\n    data-test-widgets-edit-input-array-widget-settings-allow-duplicate-button\\n  />\\n</Shared::BetaLabel>\\n\\n{{#if @field.isArrayOfIntegers}}\\n  <Shared::BetaLabel data-test-widgets-edit-input-array-widget-settings-min @label=\\\"Minimum value\\\">\\n    <Shared::BetaInput\\n      @type=\\\"number\\\"\\n      @value={{@widgetConfiguration.parameters.min}}\\n      @onEmpty={{fn (mut @widgetConfiguration.parameters.min) null}}\\n      data-test-widgets-edit-input-array-widget-settings-min-input\\n    />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel @label=\\\"Maximum value\\\" data-test-widgets-edit-input-array-widget-settings-max>\\n    <Shared::BetaInput\\n      @type=\\\"number\\\"\\n      @value={{@widgetConfiguration.parameters.max}}\\n      @onEmpty={{fn (mut @widgetConfiguration.parameters.max) null}}\\n      data-test-widgets-edit-input-array-widget-settings-max-input\\n    />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel data-test-widgets-edit-input-array-widget-settings-step @label=\\\"Step\\\">\\n    <Shared::BetaInput\\n      @type=\\\"number\\\"\\n      @value={{@widgetConfiguration.parameters.step}}\\n      @onEmpty={{fn (mut @widgetConfiguration.parameters.step) null}}\\n      data-test-widgets-edit-input-array-widget-settings-step-input\\n    />\\n  </Shared::BetaLabel>\\n{{else}}\\n  <Shared::BetaLabel\\n    @label=\\\"Allow empty values\\\"\\n    @description=\\\"Allow users to input empty strings.\\\"\\n    data-test-input-for=\\\"allow-empty\\\"\\n    data-test-widgets-edit-input-array-widget-settings-allow-empty\\n  >\\n    <Shared::Form::Toggle\\n      @value={{@widgetConfiguration.parameters.allowEmptyValue}}\\n      @onChange={{fn (mut @widgetConfiguration.parameters.allowEmptyValue)}}\\n      data-test-widgets-edit-input-array-widget-settings-allow-empty-button\\n    />\\n  </Shared::BetaLabel>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/input-array/widget-settings/template.hbs' });\n","import { or, readOnly } from '@ember/object/computed';\nimport Component from '@glimmer/component';\nimport FragmentArray from 'ember-data-model-fragments/array/fragment';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport FieldModel from 'client/data/models/field';\nimport validateArguments from 'client/decorators/validate';\nimport { normalizeDataForEmbedded } from 'client/utils/collection-creator/model';\nimport NestedField from 'client/utils/nested/field';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport { jsonFieldToString } from 'client/utils/string-utils';\n\n@validateArguments\nexport default class WidgetsEditJsonCodeEditorWidgetLayoutComponent extends Component {\n  static propTypes = {\n    onChange: PropTypes.func.isRequired,\n    field: PropTypes.oneOfType([\n      PropTypes.instanceOf(FieldModel),\n      PropTypes.instanceOf(NestedField),\n    ]).isRequired,\n    value: PropTypes.any,\n  };\n\n  @readOnly('args.field.isJson') isTypeJson;\n  @readOnly('args.field.isEmbedded') isEmbedded;\n\n  @or('isTypeJson', 'isEmbedded') isJson;\n\n  get jsonToDisplay() {\n    return jsonFieldToString(this.args.value, this.isJson);\n  }\n\n  get jsonToEdit() {\n    if (this.args.value instanceof Fragment) {\n      return this.args.value.rawData;\n    }\n    if (this.args.value instanceof FragmentArray) {\n      return this.args.value.mapBy('rawData');\n    }\n    // NOTICE: If the file type is JSON but the value has a String type we'll try to cast it into\n    //         JSON. A usecase for this scenario is Smart Action form JSON field with a default\n    //         JSON value (but serialized as String).\n    if (this.isJson && typeof this.args.value !== 'string') {\n      return this.args.value;\n    }\n\n    try {\n      return JSON.parse(this.args.value);\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      return this.args.value;\n    }\n  }\n\n  set jsonToEdit(value) {\n    try {\n      if (this.args.value instanceof FragmentArray || this.args.field?.isEmbeddedHasMany) {\n        this.args.onChange(\n          value\n            && value.map((item) =>\n              normalizeDataForEmbedded(this.args.field.nestedCollection, item),\n            ),\n        );\n        return value;\n      }\n      if (this.args.value instanceof Fragment || this.args.field?.isEmbeddedBelongsTo) {\n        this.args.onChange(\n          value && normalizeDataForEmbedded(this.args.field.nestedCollection, value),\n        );\n        return value;\n      }\n\n      const newValue = this.isJson ? value : JSON.stringify(value);\n      this.args.onChange(newValue);\n      return value;\n    } catch (error) {\n      console.error('Error parsing JSON', error);\n      return value;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @disabled}}\\n  <Shared::BetaTextarea\\n    @value={{this.jsonToDisplay}}\\n    @resizable={{true}}\\n    rows={{10}}\\n    disabled={{true}}\\n    class={{@class}}\\n    data-test-edit-widget-layout-json-code-editor-disabled-for={{@field.fieldName}}\\n  />\\n{{else}}\\n  <div\\n    class=\\\"json-editor-code {{@class}}\\\"\\n    data-test-edit-widget-layout-json-code-editor-for={{@field.fieldName}}\\n  >\\n    <JsonEditor\\n      @name={{@field.fieldName}}\\n      @json={{this.jsonToEdit}}\\n      @mode=\\\"code\\\"\\n      @inputId={{@inputId}}\\n    />\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/json-code-editor/widget-layout/template.hbs' });\n","import type MutableArray from '@ember/array/mutable';\nimport type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type WidgetConfigurationDateFragment from 'client/data/models/widget-configuration-date';\nimport type WidgetConfigurationDropdownFragment from 'client/data/models/widget-configuration-dropdown';\nimport type WidgetConfigurationLimitedValueFragment from 'client/data/models/widget-configuration-limited-value';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaServerFetchService from 'client/legacy/services/liana-server-fetch';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type WidgetTemplatingHelper from 'client/utils/templating-helper/widget-templating-helper';\nimport type { Widgets } from 'client/utils/widgets';\nimport type { AbilitiesService } from 'ember-can';\n\nimport { isArray } from '@ember/array';\nimport Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { debounce } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { isNone } from '@ember/utils';\nimport Model from '@ember-data/model';\nimport { tracked } from '@glimmer/tracking';\nimport { isNumber, isString } from 'lodash';\nimport moment from 'moment';\n\nimport Field from 'client/data/models/field';\nimport WidgetConfiguration from 'client/data/models/widget-configuration';\nimport WorkspaceComponentOptionsDropdownNestedDocument from 'client/data/models/workspace-component-options-dropdown';\nimport validateArguments from 'client/decorators/validate';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport { OPERATOR_CONTAINS, OPERATOR_IS } from 'client/utils/condition-utils';\nimport { DEFAULT_DATE_FORMAT } from 'client/utils/dates-default-format-variables';\nimport RecordsContext from 'client/utils/liana-records/records-context';\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport serializeQueryParameters from 'client/utils/serialize-query-parameters';\nimport { denamespace } from 'client/utils/string-utils';\nimport CurrentRecordTemplatingHelper from 'client/utils/templating-helper/current-record-templating-helper';\nimport { WidgetEditTypeEnum } from 'client/utils/widgets';\n\nexport async function retrieveValuesFromPath(\n  realPath: string,\n  fetchAbortSignal: AbortSignal,\n  context: unknown,\n  {\n    errorHandler,\n    lianaServerFetch,\n  }: {\n    errorHandler: ErrorHandlerService;\n    lianaServerFetch: LianaServerFetchService;\n  },\n) {\n  const url = new URL(`https://test.me${realPath}`);\n\n  if (context) {\n    const serialized = serializeQueryParameters({ context }, false);\n    const searchParams = new URLSearchParams(serialized);\n\n    searchParams.forEach((value, key) => {\n      url.searchParams.append(key, value);\n    });\n  }\n\n  const pathAndQueryString = `${url.pathname}${url.search}`;\n\n  try {\n    return await lianaServerFetch.fetch(pathAndQueryString, {\n      method: 'GET',\n      signal: fetchAbortSignal,\n    });\n  } catch (error) {\n    errorHandler.handleRequestFailure(error as Error, 'Retrieving dropdown values failed');\n    return null;\n  }\n}\n\nexport type WidgetEditLimitedValueWidgetLayoutComponentArgs = {\n  record: Model;\n  field: Field | Record<string, unknown>;\n  widgetConfiguration: WidgetConfiguration | WorkspaceComponentOptionsDropdownNestedDocument;\n  disabled?: boolean;\n  value?: Value;\n  onChange?: (value: Value) => void;\n  handleSearchQuery?: (\n    field: Field | Record<string, unknown>,\n    searchValue: string,\n  ) => Promise<void>;\n  polymorphicReferenceModel?: CollectionModel;\n};\n\nexport type Option = {\n  label: string | number;\n  value: string | number | boolean | Model;\n  disabled?: boolean;\n};\n\nexport type Value = string | number | (string | number)[] | Model;\n\n@validateArguments\n// TODO refactor to Glimmer component or tagless component along with all children\n/* eslint-disable ember/no-component-lifecycle-hooks, ember/classic-decorator-hooks, ember/require-tagless-components */\nexport default class WidgetsEditLimitedValueWidgetLayoutComponent<\n  TWidgetName extends Widgets = Widgets,\n> extends Component<WidgetEditLimitedValueWidgetLayoutComponentArgs> {\n  @service private store: StoreService;\n  @service private abilities: AbilitiesService;\n  @service private eventBus: EventBusService;\n  @service private errorHandler: ErrorHandlerService;\n  @service private lianaFeatures: LianaFeaturesService;\n  @service private lianaSession: LianaSession;\n  @service private lianaServerFetch: LianaServerFetchService;\n  @service private tracker: TrackerService;\n  @service('feature/client-record') private clientRecordFeature: ClientRecordFeatureService;\n\n  public static propTypes = {\n    record: PropTypes.instanceOf(Model),\n    handleSearchQuery: PropTypes.func,\n    field: PropTypes.oneOfType([PropTypes.instanceOf(Field), PropTypes.object]),\n    widgetConfiguration: PropTypes.oneOfType([\n      PropTypes.instanceOf(WidgetConfiguration),\n      PropTypes.instanceOf(WorkspaceComponentOptionsDropdownNestedDocument),\n    ]),\n  };\n\n  @tracked referenceValues: MutableArray<Model> = null;\n  @tracked dynamicValues: string[] = null;\n  @tracked recordsContext: RecordsContext<typeof this.context> = null;\n\n  fetchAbortSignal = new AbortController().signal;\n\n  @tracked searchValue: string;\n\n  public record: Model;\n  public field: Field;\n  public widgetConfiguration: WidgetConfiguration<TWidgetName>;\n  @tracked private declare isLoadingOptions;\n  private declare lastSearchValue: string | null;\n  public declare disabled: boolean;\n  public declare value: Value;\n  private declare savedLabels: Record<string | number, string>;\n  public declare polymorphicReferenceModel: CollectionModel;\n  public declare onChange: (value: Value) => void;\n  public declare handleSearchQuery?: (\n    field: Field | Record<string, unknown>,\n    searchValue: string,\n  ) => Promise<void>;\n\n  private hasLoadedBelongsTo = false;\n\n  @alias('field.enums') enumValues: (string | number)[];\n  @alias('widgetConfiguration.parameters.isSearchable') isSearchable: boolean;\n\n  get multipleValues() {\n    return isArray(this.field?.type);\n  }\n\n  get parameters() {\n    return this.widgetConfiguration?.parameters as WidgetConfigurationLimitedValueFragment;\n  }\n\n  @computed('parameters.static.optionValues', 'parameters.static.options.[]')\n  get values(): (string | number | boolean)[] {\n    return this.parameters?.static?.optionValues;\n  }\n\n  get path(): string {\n    return this.parameters?.dynamic?.smart?.realPath;\n  }\n\n  get enableLocalFilterAndHighlighter() {\n    return !(this.field?.isBelongsTo || this.isDynamicSearch);\n  }\n\n  get context() {\n    try {\n      return {\n        record: {\n          type: denamespace(\n            (this.record.constructor as unknown as { modelName: string }).modelName,\n            '-',\n          ),\n          id: this.record.id,\n        },\n      };\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      return null;\n    }\n  }\n\n  get query() {\n    return {\n      ...this.recordsContext.getQuery(),\n      searchToEdit: true,\n    };\n  }\n\n  @computed(\n    'field.{isBelongsTo,referenceModel}',\n    'parameters.dynamic.simple.actOnCollection',\n    'store',\n    'widgetConfiguration.parameters.dynamic.simple.actOnCollection',\n  )\n  get referenceModel(): CollectionModel {\n    return this.field?.isBelongsTo\n      ? this.field.referenceModel\n      : this.parameters?.dynamic?.simple?.actOnCollection;\n  }\n\n  @computed(\n    '(this.parameters).dynamic.simple.actOnField',\n    'field.isBelongsTo',\n    'parameters.dynamic.simple.actOnField',\n    'referenceModel.displayFieldOrPrimaryField',\n    'widgetConfiguration.parameters.dynamic.simple.actOnField',\n    'polymorphicReferenceModel',\n  )\n  get referenceField() {\n    return this.field?.isBelongsTo\n      ? this.referenceModel.displayFieldOrPrimaryField\n      : this.parameters?.dynamic?.simple?.actOnField;\n  }\n\n  @computed('referenceField.attributeName')\n  get referenceFieldAttributeName() {\n    return this.referenceField?.attributeName || 'id';\n  }\n\n  @computed('referenceField.fieldName')\n  get referenceFieldName() {\n    return this.referenceField?.fieldName || 'id';\n  }\n\n  @computed(\n    'disabled',\n    'field.isReadOnly',\n    'referenceModel.searchEnabled',\n    'widgetConfiguration.isConfigured',\n  )\n  get isDropdownDisabled() {\n    if (this.field?.isReadOnly || this.disabled) {\n      return true;\n    }\n\n    if (this.referenceModel) {\n      return !this.referenceModel?.searchEnabled;\n    }\n    return false;\n  }\n\n  @computed('referenceModel.searchEnabled')\n  get information() {\n    if (this.referenceModel) {\n      if (!this.referenceModel?.searchEnabled) {\n        return 'The search on the referenced collection is not authorized.';\n      }\n    }\n    return null;\n  }\n\n  @computed('dynamicValues', 'enumValues.length', 'field.isReadOnly', 'path', 'values.length')\n  get possibleValues(): (string | number | boolean)[] {\n    if (this.values?.length > 0) {\n      return this.enumValues?.length > 0\n        ? this.values.filter((value) => this.enumValues.includes(value as string | number))\n        : this.values;\n    }\n    if (!this.path || this.field?.isReadOnly) {\n      return this.enumValues || [];\n    }\n    return this.dynamicValues || [];\n  }\n\n  @computed(\n    'currentlyAvailableMappingValues',\n    'field.mappingValues.length',\n    'parameters.static.mappingValues.length',\n    'possibleValues',\n    'savedLabels',\n  )\n  get mappingValues() {\n    return [\n      ...this.currentlyAvailableMappingValues,\n      ...this.possibleValues.map((value) => ({ label: `${value}`, value })).toArray(),\n    ];\n  }\n\n  get currentlyAvailableMappingValues() {\n    return [\n      ...(this.field?.mappingValues?.toArray() || []),\n      ...(this.parameters?.static?.mappingValues?.toArray() || []),\n    ];\n  }\n\n  @computed(\n    'field.{mappingValues,type}',\n    'mappingValues',\n    'multipleValues',\n    'parameters.static.mappingValues',\n    'possibleValues',\n    'savedLabels',\n    'value',\n  )\n  get options(): Array<Option> {\n    const currentValue = this.value;\n    const currentValues: (string | number)[] =\n      (this.multipleValues\n        ? (currentValue as (string | number)[])\n        : [currentValue as string | number]) || [];\n    const currentValuesDisabled = [];\n\n    const options: Array<Option> = [];\n    this.possibleValues.forEach((value) => {\n      const labelValue = this.mappingValues.findBy('value', value);\n      const label = labelValue\n        ? labelValue.label\n        : this.savedLabels[value as string | number] || `${value}`;\n      options.pushObject({\n        label,\n        value,\n      });\n    });\n\n    currentValues.forEach((value) => {\n      if (!this.possibleValues.includes(value)) {\n        currentValuesDisabled.push(value);\n      }\n    });\n\n    currentValuesDisabled.forEach((valueDisabled: string | number) => {\n      const labelValue = this.mappingValues.findBy('value', valueDisabled);\n      const label = labelValue\n        ? labelValue.label\n        : this.savedLabels[valueDisabled] || valueDisabled;\n      if (label) {\n        options.pushObject({\n          label,\n          value: valueDisabled,\n          disabled: true,\n        });\n      }\n    });\n\n    return options;\n  }\n\n  getDateFormattedOptionLabel(referenceField: FieldModel, value: string | number) {\n    const format =\n      (referenceField.widgetDisplay?.parameters as WidgetConfigurationDateFragment)?.format\n      || DEFAULT_DATE_FORMAT;\n\n    return moment(value).format(format);\n  }\n\n  @computed(\n    'field.{isArray,isArrayOfIntegers,isBelongsTo,isNumber}',\n    'referenceField.{isDateonly,type}',\n    'referenceFieldAttributeName',\n    'referenceValues',\n  )\n  get referenceOptions(): Option[] {\n    if (!this.referenceValues) return null;\n\n    const values = this.referenceValues.reduce<Option[]>((accumulator, referenceValue) => {\n      const { referenceField } = this;\n      let referenceValueLabel: string | number = referenceValue.get(\n        this.referenceFieldAttributeName as keyof typeof referenceValue,\n      ) as string | number;\n\n      if (\n        !isNone(referenceValueLabel)\n        && !accumulator.find((option) => option.value === referenceValueLabel)\n      ) {\n        let value: Value = referenceValueLabel;\n        if (this.field?.isBelongsTo) {\n          value = referenceValue;\n        } else if (this.field?.isArrayOfIntegers || this.field?.isNumber) {\n          // NOTICE: In the case of array of integers using number ids, the given\n          // `referenceValues` does not give a `forest-id` as a number but a string.\n          value = Number(referenceValueLabel);\n        } else if (referenceField?.isDate || referenceField?.isDateonly) {\n          referenceValueLabel = this.getDateFormattedOptionLabel(\n            referenceField,\n            referenceValueLabel,\n          );\n        }\n\n        accumulator.push({\n          label: referenceValueLabel,\n          value,\n        });\n      }\n      return accumulator;\n    }, []);\n    // NOTICE: Concatenate the current value to the found options.\n    const { value } = this;\n    const currentValues = this.field?.isArray\n      ? (value as (string | number)[])\n      : [value as string | number | Model];\n\n    currentValues?.forEach((currentValue) => {\n      if (currentValue && !values.find((option) => option.value === currentValue)) {\n        values.push({\n          label: this.field?.isBelongsTo\n            ? ((currentValue as Model).get(this.referenceFieldAttributeName as keyof Model) as\n                | string\n                | number)\n            : (currentValue as string | number),\n          value: currentValue,\n        });\n      }\n    });\n    return values;\n  }\n\n  @computed('field.{isArray,isBelongsTo}', 'referenceFieldAttributeName', 'value')\n  get referenceDefaultOption(): Option[] {\n    const { value } = this;\n    if (!value || this.field?.isArray) {\n      return [];\n    }\n    const label = this.field?.isBelongsTo\n      ? (value as Model).get(this.referenceFieldAttributeName as keyof typeof value)\n      : (value as string | number);\n\n    return [\n      {\n        label: label as string | number,\n        value: value as string | number | Model,\n      },\n    ];\n  }\n\n  @computed(\n    'field.isBelongsTo',\n    'options',\n    'referenceDefaultOption',\n    'referenceModel',\n    'referenceOptions.isFulfilled',\n    'searchValue',\n    'value',\n  )\n  get optionsToDisplay() {\n    if (this.referenceModel) {\n      // NOTICE: If the record has a current reference value, set the default option to prevent\n      //         bad value display in the select, until the options have been retrieved.\n      if (this.value && !this.referenceOptions) {\n        return this.referenceDefaultOption;\n      }\n      return this.referenceOptions || [];\n    }\n    return this.options;\n  }\n\n  async init() {\n    super.init();\n    this.initializeRecordsContext();\n    this.eventBus.on('workspace.context.changed', this.handleWorkspaceContextChanged);\n    this.savedLabels = {};\n\n    if (\n      ![\n        WidgetEditTypeEnum.BelongsToTypeahead,\n        WidgetEditTypeEnum.PolymorphicBelongsToTypeahead,\n      ].includes(this.widgetConfiguration.name as WidgetEditTypeEnum)\n    ) {\n      await this.fetchValues();\n    }\n  }\n\n  willDestroyElement() {\n    super.willDestroyElement();\n\n    this.eventBus.off('workspace.context.changed', this.handleWorkspaceContextChanged);\n  }\n\n  @action\n  saveSelectedLabels(value: Value) {\n    if (Array.isArray(value)) {\n      value.forEach((val) => {\n        const label = this.currentlyAvailableMappingValues.findBy('value', val)?.label;\n        if (label) this.savedLabels[val] = label;\n      });\n    }\n  }\n\n  @action\n  selectValue(value: Value) {\n    this.saveSelectedLabels(value);\n    if (this.field) {\n      // This line will be deleted by a refactor next week (this is deprecated but needed until  the refactor is released)\n      this.set('field.isDirty' as keyof this, true);\n    }\n    this.onChange?.(value);\n  }\n\n  @action\n  searchIfReference() {\n    return this.fetchValues();\n  }\n\n  get isDynamicSearch(): boolean {\n    return (\n      (this.widgetConfiguration.parameters as WidgetConfigurationDropdownFragment)?.searchType\n        === 'dynamic' && Boolean(this.handleSearchQuery)\n    );\n  }\n\n  @action\n  async onSearchValueChange() {\n    if (this.searchValue === this.lastSearchValue) return;\n    this.lastSearchValue = this.searchValue;\n\n    if (this.searchValue !== null && this.referenceModel?.searchEnabled) {\n      debounce(this, this.updateSearchQuery, 500, false);\n    }\n    if (this.isDynamicSearch) {\n      await this.handleSearch(this.field, this.searchValue);\n    }\n  }\n\n  @action\n  async handleSearch(field: FieldModel, searchValue: string) {\n    this.isLoadingOptions = true;\n    await this.handleSearchQuery(field, searchValue);\n    if (this.lastSearchValue === searchValue) this.isLoadingOptions = false;\n  }\n\n  async updateSearchQuery() {\n    const fieldId = this.referenceField?.id;\n    const fieldType = this.referenceField?.type;\n\n    const operator = (fieldType === 'Number' ? OPERATOR_IS : OPERATOR_CONTAINS).displayName;\n    const filter = this.store.createRecord('filter', {\n      conditions: [{ operator, fieldId, value: this.searchValue }],\n    });\n\n    this.recordsContext.filter = filter;\n    await this.fetchValues();\n  }\n\n  @action\n  async handleWorkspaceContextChanged(workspaceComponentOptions) {\n    if (workspaceComponentOptions !== this.widgetConfiguration) {\n      return;\n    }\n\n    await this.fetchValues();\n  }\n\n  @action\n  async forceRefresh() {\n    if (CurrentRecordTemplatingHelper.isUsingTemplatingKey(this.parameters?.dynamic)) {\n      this.referenceValues = null;\n      await this.fetchValues();\n    }\n  }\n\n  initializeRecordsContext() {\n    if (!this.referenceModel) return;\n    this.recordsContext = new RecordsContext({\n      project: this.lianaSession.currentProject,\n      collection: this.referenceModel,\n      currentPage: 1,\n      columns: [{ field: this.referenceField }],\n      viewList: { recordsPerPage: 100 },\n      search: this.searchValue,\n      context: this.context,\n      nonEditableFilter: this.parameters?.dynamic?.simple?.filter,\n      shouldApplyScopes:\n        this.abilities.can('access to scopes', null, null)\n        && !this.lianaFeatures.isFeatureCompatible(\n          FeaturesEnum.ApplicationWideScopes,\n          this.lianaSession.currentEnvironment,\n        ),\n      isGenericFiltersAvailable: this.lianaFeatures.isFeatureCompatible(\n        FeaturesEnum.GenericFilters,\n        this.lianaSession.currentEnvironment,\n      ),\n    });\n  }\n\n  private async loadBelongsToForConditions() {\n    if (this.hasLoadedBelongsTo) return;\n    this.hasLoadedBelongsTo = true;\n\n    if (\n      this.parameters?.templatingHelper\n      && 'getBelongsToFieldsTreeToFetch' in this.parameters.templatingHelper\n      && this.record\n      && this.parameters?.dynamic?.simple?.filter?.templatingKeys?.length\n    ) {\n      await this.clientRecordFeature.fetchRecordAndRequiredBelongsTo(\n        (this.parameters?.templatingHelper as WidgetTemplatingHelper).getBelongsToFieldsTreeToFetch(\n          this.parameters?.dynamic?.simple?.filter?.templatingKeys,\n        ),\n        getCollectionFromRecord(this.record as ClientRecordModel),\n        this.record,\n        null,\n        false,\n      );\n    }\n  }\n\n  async fetchValues() {\n    await this.loadBelongsToForConditions();\n\n    if (this.referenceModel) {\n      this.referenceValues = await this.store.query(this.referenceModel.emberModelName, this.query);\n    }\n    if (this.path) {\n      try {\n        const response = await retrieveValuesFromPath(\n          this.parameters?.dynamic?.smart?.realPath,\n          this.fetchAbortSignal,\n          this.context,\n          {\n            errorHandler: this.errorHandler,\n            lianaServerFetch: this.lianaServerFetch,\n          },\n        );\n        const jsonResponse = (await response?.json()) as { data: unknown };\n        const isBadData: boolean =\n          !jsonResponse\n          || !jsonResponse.data\n          || !isArray(jsonResponse.data)\n          || (jsonResponse.data as unknown[]).any((value) => !isString(value) && !isNumber(value));\n\n        this.dynamicValues = isBadData ? [] : (jsonResponse.data as string[]);\n      } catch (error) {\n        this.tracker.captureException(error as Error);\n        this.dynamicValues = [];\n      }\n    }\n  }\n}\n","import { isArray } from '@ember/array';\nimport Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { alias, or } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tagName } from '@ember-decorators/component';\nimport { isNumber, isString } from 'lodash';\n\nimport Field from 'client/data/models/field';\nimport WidgetConfiguration from 'client/data/models/widget-configuration';\nimport { REGEX_PATH_URL } from 'client/data/models/widget-configuration-limited-value-dynamic-smart';\nimport WorkspaceComponentOptionsDropdownNestedDocument from 'client/data/models/workspace-component-options-dropdown';\nimport { argument, oneOfType, optional } from 'client/decorators/argument';\nimport { retrieveValuesFromPath } from 'client/legacy/pods/components/widgets/edit/limited-value/widget-layout/component';\n\n@tagName('')\nexport default class WidgetsEditLimitedValueWidgetSettingsComponent extends Component {\n  @service errorHandler;\n  @service lianaServerFetch;\n  @service store;\n\n  @argument(optional(oneOfType([Field, Object]))) field;\n  @argument(optional(Boolean)) displayErrors;\n  @argument(optional(Boolean)) isUsingAlteredValues;\n  @argument(optional(Boolean)) withSearchOption;\n  @argument(oneOfType([WidgetConfiguration, WorkspaceComponentOptionsDropdownNestedDocument]))\n  widgetConfiguration;\n\n  modes = [\n    {\n      label: 'Static',\n      value: 'static',\n    },\n    {\n      label: 'Dynamic',\n      value: 'dynamic',\n    },\n  ];\n\n  dynamicModes = [\n    {\n      label: 'Simple',\n      value: 'simple',\n    },\n    {\n      label: 'Smart',\n      value: 'smart',\n    },\n  ];\n\n  exampleApiResponse = JSON.stringify(\n    {\n      data: ['Created', 'Deleted'],\n    },\n    null,\n    2,\n  );\n\n  fetchAbortSignal = new AbortController().signal;\n\n  @or('field.isEnum', 'field.isUsingAlteredValues') hasLimitedValue;\n  @alias('widgetConfiguration.parameters.static.values') values;\n  @alias('widgetConfiguration.parameters.dynamic.smart.path') path;\n  @alias('widgetConfiguration.parameters.isSearchable') isSearchable;\n  @alias('widgetConfiguration.parameters.dynamic.simple.filter') filter;\n  @alias('widgetConfiguration.parameters.dynamic.simple.actOnCollection') actOnCollection;\n  @alias('widgetConfiguration.parameters.dynamic.simple.actOnField') actOnField;\n\n  @computed('store')\n  get collections() {\n    return this.store\n      .peekAll('collection')\n      .filterBy('onlyForRelationships', false)\n      .sortBy('displayName');\n  }\n\n  @computed('collections')\n  get collectionOptions() {\n    return this.collections.filterBy('searchEnabled', true);\n  }\n\n  @computed(\n    'actOnCollection.filterableFields',\n    'field.isBelongsTo',\n    'field.referenceModel.filterableFields',\n  )\n  get filterableFields() {\n    if (this.field?.isBelongsTo) return this.field.referenceModel.filterableFields;\n    return this.actOnCollection?.filterableFields || [];\n  }\n\n  @computed('actOnCollection', 'collections', 'field.type', 'filterableFields')\n  get fieldOptions() {\n    if (!this.actOnCollection) return [];\n    const fieldType = Array.isArray(this.field?.type) ? this.field.type[0] : this.field?.type;\n    const fieldsFiltered = this.filterableFields.filterBy('isRelationship', false) || [];\n\n    return fieldType ? fieldsFiltered.filterBy('type', fieldType) : fieldsFiltered;\n  }\n\n  @computed('widgetConfiguration.parameters.static')\n  get selectedMode() {\n    return this.widgetConfiguration?.parameters?.static ? 'static' : 'dynamic';\n  }\n\n  @computed('widgetConfiguration.parameters.dynamic.smart')\n  get dynamicSelectedMode() {\n    return this.widgetConfiguration?.parameters?.dynamic?.smart ? 'smart' : 'simple';\n  }\n\n  @computed('widgetConfiguration.parameters.static')\n  get isStatic() {\n    return !!this.widgetConfiguration?.parameters?.static;\n  }\n\n  @computed('widgetConfiguration.parameters.dynamic.smart')\n  get isSmart() {\n    return !!this.widgetConfiguration?.parameters?.dynamic?.smart;\n  }\n\n  @computed('actOnCollection', 'actOnField')\n  get isDynamicSimpleValid() {\n    return !!(this.actOnCollection && this.actOnField);\n  }\n\n  @computed('field.mappingValues.@each.{label,value}', 'field.{enums,isEnum,isUsingAlteredValues}')\n  get enumValues() {\n    let enumValues = [];\n    if (this.field?.isUsingAlteredValues) {\n      enumValues = this.field.mappingValues;\n    } else if (this.field?.isEnum) {\n      enumValues = this.field\n        .get('enums')\n        .map((enumValue) => ({ value: enumValue, label: enumValue }));\n    }\n\n    return enumValues;\n  }\n\n  @computed('field.type')\n  get valueType() {\n    const type = this.field?.type;\n    if (type === 'Number' || (isArray(type) && type.objectAt(0) === 'Number')) {\n      return 'number';\n    }\n    return 'text';\n  }\n\n  @computed('apiResponse')\n  get apiResponseString() {\n    return this.apiResponse ? JSON.stringify(this.apiResponse, null, 2) : '';\n  }\n\n  @computed('apiResponseString')\n  get apiResponseRows() {\n    const nbRows = this.apiResponseString.split('\\n').length;\n    return nbRows > 10 ? 10 : nbRows;\n  }\n\n  @computed('apiResponse.data.length')\n  get isCorrectlyFormated() {\n    if (!this.apiResponse) {\n      return false;\n    }\n\n    if (!this.apiResponse.data) {\n      return false;\n    }\n\n    if (!isArray(this.apiResponse.data)) {\n      return false;\n    }\n\n    if (!this.apiResponse.data.length) {\n      return false;\n    }\n\n    const isBadData = this.apiResponse.data.any((value) => !isString(value) && !isNumber(value));\n    return !isBadData;\n  }\n\n  @computed('path')\n  get isPathValid() {\n    return REGEX_PATH_URL.test(this.path);\n  }\n\n  @computed('status.code')\n  get isStatusOk() {\n    return this.status?.code === 200;\n  }\n\n  @computed('status.code', 'isStatusOk', 'isCorrectlyFormated')\n  get apiEndpointInputState() {\n    if (this.status?.code === undefined || this.status?.code === null) {\n      return null;\n    }\n\n    return this.isStatusOk && this.isCorrectlyFormated ? 'success' : 'error';\n  }\n\n  @action\n  createFilter() {\n    const condition = this.store.createFragment('fragment-condition');\n    const filter = this.store.createFragment('fragment-filter', { conditions: [condition] });\n    this.set('filter', filter);\n    return filter;\n  }\n\n  @action\n  deleteFilter() {\n    this.set('filter', null);\n  }\n\n  @action\n  toggleValue(value) {\n    let { values } = this;\n    if (!values) {\n      values = [];\n      this.set('values', values);\n    }\n    if (values.includes(value)) {\n      values.removeObject(value);\n    } else {\n      values.pushObject(value);\n    }\n  }\n\n  @action\n  verify(callback) {\n    return retrieveValuesFromPath(\n      this.widgetConfiguration?.parameters?.dynamic?.smart?.realPath,\n      this.fetchAbortSignal,\n      null,\n      this,\n    )\n      .then(async (response) => {\n        this.set('status', { code: response.status, text: response.statusText });\n        this.set('apiResponse', await response.json());\n      })\n      .finally(() => callback());\n  }\n\n  @action\n  addValue(value) {\n    if (!this.values) {\n      this.set('values', []);\n    }\n\n    this.values.pushObject(value);\n  }\n\n  @action\n  removeValue(value) {\n    this.values.removeObject(value);\n  }\n\n  @action\n  reorderValue(values) {\n    this.values.clear().pushObjects(values);\n  }\n\n  @action\n  selectMode(newMode) {\n    if (newMode === 'static') {\n      this.set('widgetConfiguration.parameters.static', {});\n      this.set('widgetConfiguration.parameters.dynamic', null);\n      this.set('apiResponse', null);\n      this.set('status', null);\n      this.initValues();\n    } else {\n      this.set('widgetConfiguration.parameters.static', null);\n      this.set('widgetConfiguration.parameters.dynamic', { simple: {} });\n    }\n  }\n\n  @action\n  selectDynamicMode(newMode) {\n    if (newMode === 'simple') {\n      this.set('widgetConfiguration.parameters.dynamic.simple', {\n        actOnCollectionId: null,\n        actOnFieldId: null,\n        filter: null,\n      });\n      this.set('widgetConfiguration.parameters.dynamic.smart', null);\n    } else {\n      this.set('widgetConfiguration.parameters.dynamic.smart', {});\n      this.set('widgetConfiguration.parameters.dynamic.simple', null);\n    }\n  }\n\n  initValues() {\n    if (!this.values && this.enumValues?.length) {\n      const values = this.enumValues.map((enumValue) => enumValue.value);\n      this.set('values', values);\n    } else if (!this.values) {\n      this.set('values', []);\n    }\n  }\n\n  clearNonExistingValues() {\n    if (!this.values) return;\n\n    const valuesToRemove = [];\n    if (this.field?.isEnum) {\n      this.values.forEach((value) => {\n        if (!this.enumValues.findBy('value', value)) {\n          valuesToRemove.pushObject(value);\n        }\n      });\n    }\n    this.values.removeObjects(valuesToRemove);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#unless @isBelongsTo}}\\n  {{#if (and @displayErrors (not @isDynamicSimpleValid))}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"error\\\"\\n      @message=\\\"You must select a collection and field.\\\"\\n      @canHide={{false}}\\n      @class=\\\"l-limited-value-widget-settings-field-selection__error\\\"\\n    />\\n  {{/if}}\\n  <Shared::BetaLabel\\n    @label=\\\"Collection\\\"\\n    @position={{@styleParameters.labelPosition}}\\n    class=\\\"l-limited-value-widget-settings-field-selection__label {{@styleParameters.labelClass}}\\\"\\n    data-test-widgets-edit-limited-value-widget-settings-collection\\n  >\\n    <Shared::BetaSelect\\n      @value={{@actOnCollection}}\\n      @options={{@collectionOptions}}\\n      @placeholder=\\\"Select a collection\\\"\\n      @onChange={{fn (mut @actOnCollection)}}\\n      @iconPath=\\\"iconOrDefault\\\"\\n      @namePath=\\\"singularizedDisplayName\\\"\\n      @enableLocalFilterAndHighlighter={{true}}\\n      @withSearchInput={{true}}\\n      class={{or\\n        @styleParameters.inputClass\\n        \\'l-limited-value-widget-settings-field-selection__input\\'\\n      }}\\n      data-test-widgets-edit-limited-value-widget-settings-collection-select\\n    />\\n  </Shared::BetaLabel>\\n  <Shared::BetaLabel\\n    @label=\\\"Field\\\"\\n    @position={{@styleParameters.labelPosition}}\\n    class=\\\"l-limited-value-widget-settings-field-selection__label {{@styleParameters.labelClass}}\\\"\\n    data-test-widgets-edit-limited-value-widget-settings-field\\n  >\\n    <Shared::BetaSelect\\n      @value={{@actOnField}}\\n      @options={{@fieldOptions}}\\n      @placeholder=\\\"Select a field\\\"\\n      @onChange={{fn (mut @actOnField)}}\\n      @namePath=\\\"displayName\\\"\\n      @disabled={{not @actOnCollection}}\\n      @enableLocalFilterAndHighlighter={{true}}\\n      @withSearchInput={{true}}\\n      class={{or\\n        @styleParameters.inputClass\\n        \\'l-limited-value-widget-settings-field-selection__input\\'\\n      }}\\n      data-test-widgets-edit-limited-value-widget-settings-field-select\\n    />\\n  </Shared::BetaLabel>\\n{{/unless}}\\n{{#if @filter}}\\n  {{#if (and @displayErrors (not @filter.isValidData))}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"error\\\"\\n      @message=\\\"Your filter conditions seem to be incomplete.\\\"\\n      @canHide={{false}}\\n    />\\n  {{/if}}\\n\\n  <BetaFilter::Form\\n    @filter={{@filter}}\\n    @createFilter={{@createFilter}}\\n    @fields={{@filterableFields}}\\n    @showApply={{false}}\\n    @showDiscard={{true}}\\n    @canClearNew={{true}}\\n    @onClearAll={{@deleteFilter}}\\n    @templatingHelper={{@templatingHelper}}\\n    data-test-widgets-edit-limited-value-widget-settings-filter-form\\n  />\\n{{else}}\\n  <Shared::Button::BetaButton\\n    @type=\\\"secondary\\\"\\n    @text=\\\"Add a filter\\\"\\n    @iconName=\\\"filter_list\\\"\\n    @action={{@createFilter}}\\n    @iconClass=\\\"c-limited-value-widget-settings__add-filter-icon\\\"\\n    @disabled={{unless @isBelongsTo (not @actOnField)}}\\n    class=\\\"c-limited-value-widget-settings__add-filter\\\"\\n    data-test-input-for=\\\"add-filter\\\"\\n    data-test-widgets-edit-limited-value-widget-settings-add-filter\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/limited-value/widget-settings/dynamic/simple/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (and @displayErrors (not @path.length))}}\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"error\\\"\\n    @message=\\\"The path must not be empty.\\\"\\n    @class=\\\"c-limited-value-widget-settings__required\\\"\\n    @canHide={{false}}\\n  />\\n{{/if}}\\n\\n<Shared::BetaLabel\\n  @label=\\\"Dataset URL\\\"\\n  @position={{@styleParameters.labelPosition}}\\n  class=\\\"c-limited-value-widget-settings__label {{@styleParameters.labelClass}}\\\"\\n  data-test-widgets-edit-limited-value-widget-settings-dataset-url\\n>\\n  <:after-label>\\n    {{#if @templatingHelper}}\\n      <Feature::Workspace::ComponentConfiguration::TemplatingInfoTooltip />\\n    {{/if}}\\n  </:after-label>\\n  <:default>\\n    <form class=\\\"c-limited-value-widget-settings__api-endpoint {{@styleParameters.inputClass}}\\\">\\n      {{#if @templatingHelper}}\\n        <Form::AutocompleteInput\\n          @value={{@path}}\\n          @onChange={{fn (mut @path)}}\\n          @placeholder=\\\"/api/my-dataset\\\"\\n          @state={{@apiEndpointInputState}}\\n          @templatingHelper={{@templatingHelper}}\\n          @expectedType=\\\"String\\\"\\n          class=\\\"c-limited-value-widget-settings__api-endpoint-input\\\"\\n          data-test-widgets-edit-limited-value-widget-settings-dataset-url-input\\n        />\\n      {{else}}\\n        <Shared::BetaInput\\n          @value={{@path}}\\n          @placeholder=\\\"/api/my-dataset\\\"\\n          @onSubmit={{@verify}}\\n          @class=\\\"c-limited-value-widget-settings__api-endpoint-input\\\"\\n          @state={{@apiEndpointInputState}}\\n          data-test-widgets-edit-limited-value-widget-settings-dataset-url-input\\n        />\\n      {{/if}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @action={{@verify}}\\n        @text=\\\"Verify\\\"\\n        @disabled={{not @isPathValid}}\\n        class=\\\"c-limited-value-widget-settings__api-verify-button\\\"\\n        data-test-widgets-edit-limited-value-widget-settings-dataset-url-verify\\n      />\\n    </form>\\n  </:default>\\n</Shared::BetaLabel>\\n\\n{{#if (and @status (not @isStatusOk))}}\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"error\\\"\\n    @message=\\\"Cannot reach the configured route ({{@status.code}} {{@status.text}}).\\\"\\n    @class=\\\"c-limited-value-widget-settings__api-response-error\\\"\\n    @canHide={{false}}\\n  />\\n{{else if (and this.isStatusOk (not this.isCorrectlyFormated))}}\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"error\\\"\\n    @message=\\\"Incorrect API response format.\\\"\\n    @class=\\\"c-limited-value-widget-settings__api-response-error\\\"\\n    @canHide={{false}}\\n  />\\n{{/if}}\\n\\n<Shared::BetaLabel\\n  @label=\\\"Received API response format\\\"\\n  class=\\\"c-limited-value-widget-settings__api-response\\\"\\n  data-test-widgets-edit-limited-value-widget-settings-api-response\\n>\\n  <:after-label>\\n    <Shared::Feedback::BetaInfoTooltip @tooltipSide=\\\"top\\\">\\n      <label class=\\\"c-limited-value-widget-settings__tooltip-container\\\">\\n        <span class=\\\"c-limited-value-widget-settings__tooltip-label\\\">\\n          The expected response format is:\\n        </span>\\n        <textarea\\n          class=\\\"c-limited-value-widget-settings__api-response-input c-limited-value-widget-settings__api-response-input--tooltip\\\"\\n          spellcheck=\\\"false\\\"\\n          disabled={{true}}\\n          rows={{6}}\\n        >\\n          {{~@exampleApiResponse~}}\\n        </textarea>\\n      </label>\\n    </Shared::Feedback::BetaInfoTooltip>\\n  </:after-label>\\n  <:default>\\n    <Shared::BetaTextarea\\n      @value={{@apiResponseString}}\\n      @state={{if @isCorrectlyFormated \\'success\\' \\'error\\'}}\\n      readonly={{true}}\\n      rows={{@apiResponseRows}}\\n      class=\\\"c-limited-value-widget-settings__api-response-input {{@styleParameters.inputClass}}\\\"\\n      data-test-widgets-edit-limited-value-widget-settings-api-response-input\\n    />\\n  </:default>\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/limited-value/widget-settings/dynamic/smart/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @hasLimitedValue}}\\n  {{#if (and @displayErrors (not @values.length))}}\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"error\\\"\\n      @message=\\\"You must select at least one value.\\\"\\n      @class=\\\"c-limited-value-widget-settings__required\\\"\\n      @canHide={{false}}\\n    />\\n  {{/if}}\\n  <Shared::BetaLabel\\n    @label=\\\"Content values\\\"\\n    @position={{@styleParameters.labelPosition}}\\n    class=\\\"c-limited-value-widget-settings__label {{@styleParameters.labelClass}}\\\"\\n  />\\n\\n  {{#each @enumValues as |enumValue|}}\\n    <Shared::BetaLabel\\n      @label={{enumValue.label}}\\n      class=\\\"c-limited-value-widget-settings__switch-label\\\"\\n    >\\n      <Shared::Form::Toggle\\n        @value={{array-contains @values enumValue.value}}\\n        @onChange={{fn @toggleValue enumValue.value}}\\n        @class=\\\"c-limited-value-widget-settings__switch-button\\\"\\n      />\\n    </Shared::BetaLabel>\\n  {{/each}}\\n{{else}}\\n  <Shared::BetaLabel\\n    @label=\\\"Content values\\\"\\n    @position={{@styleParameters.labelPosition}}\\n    class=\\\"c-limited-value-widget-settings__label {{@styleParameters.labelClass}}\\\"\\n    data-test-input-for=\\\"content-value\\\"\\n    data-test-widgets-edit-limited-value-widget-settings-content-values\\n  >\\n    {{#if (and @displayErrors (not @values.length))}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"error\\\"\\n        @message=\\\"You must at least enter one value.\\\"\\n        @class=\\\"c-limited-value-widget-settings__required\\\"\\n        @canHide={{false}}\\n      />\\n    {{/if}}\\n    <Shared::BetaInputList\\n      @values={{@values}}\\n      @onAddValue={{@addValue}}\\n      @onRemoveValue={{@removeValue}}\\n      @onReorderValue={{@reorderValue}}\\n      @reorderable={{true}}\\n      @type={{@valueType}}\\n      @allowDuplicate={{false}}\\n      @allowEmptyValue={{false}}\\n      class={{@styleParameters.inputClass}}\\n      data-test-widgets-edit-limited-value-widget-settings-content-values-input\\n    />\\n  </Shared::BetaLabel>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/limited-value/widget-settings/static/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let\\n  (if\\n    @isLeftLabel\\n    (hash\\n      labelPosition=\\'left\\'\\n      labelClass=\\'c-limited-value-widget-settings__label--left\\'\\n      inputClass=\\'c-limited-value-widget-settings__input\\'\\n    )\\n  )\\n  as |styleParameters|\\n}}\\n  <div class=\\\"c-limited-value-widget-settings\\\" ...attributes>\\n    {{#unless @field.isBelongsTo}}\\n      <Shared::BetaLabel\\n        @label=\\\"Type\\\"\\n        @disabled={{true}}\\n        @position={{styleParameters.labelPosition}}\\n        class=\\\"c-limited-value-widget-settings__label {{styleParameters.labelClass}}\\\"\\n        data-test-input-for=\\\"content-type\\\"\\n        data-test-widgets-edit-limited-value-widget-settings-type\\n      >\\n        <Shared::Form::Tabs\\n          @class=\\\"c-limited-value-widget-settings__tabs\\\"\\n          @items={{this.modes}}\\n          @selected={{this.selectedMode}}\\n          @onSelect={{this.selectMode}}\\n          @isFullWidth={{@isLeftLabel}}\\n          @color=\\\"secondary\\\"\\n          class={{styleParameters.inputClass}}\\n          data-test-widgets-edit-limited-value-widget-settings-type-tabs\\n        />\\n      </Shared::BetaLabel>\\n    {{/unless}}\\n\\n    {{#if this.isStatic}}\\n      <Widgets::Edit::LimitedValue::WidgetSettings::Static\\n        @hasLimitedValue={{this.hasLimitedValue}}\\n        @displayErrors={{@displayErrors}}\\n        @values={{this.values}}\\n        @enumValues={{this.enumValues}}\\n        @toggleValue={{this.toggleValue}}\\n        @updateIsValid={{this.updateIsValid}}\\n        @valueType={{this.valueType}}\\n        @addValue={{this.addValue}}\\n        @removeValue={{this.removeValue}}\\n        @reorderValue={{this.reorderValue}}\\n        @styleParameters={{styleParameters}}\\n      />\\n    {{else}}\\n      {{#unless @field.isBelongsTo}}\\n        <Shared::BetaLabel\\n          @label=\\\"Values\\\"\\n          @tagName=\\\"div\\\"\\n          @position={{styleParameters.labelPosition}}\\n          class=\\\"c-limited-value-widget-settings__label {{styleParameters.labelClass}}\\\"\\n          data-test-widgets-edit-limited-value-widget-settings-values\\n        >\\n          <Shared::Form::Tabs\\n            @items={{this.dynamicModes}}\\n            @selected={{this.dynamicSelectedMode}}\\n            @onSelect={{this.selectDynamicMode}}\\n            @isFullWidth={{@isLeftLabel}}\\n            @color=\\\"secondary\\\"\\n            class=\\\"c-limited-value-widget-settings__tabs c-limited-value-widget-settings__tabs--marged\\n              {{styleParameters.inputClass}}\\\"\\n            data-test-widgets-edit-limited-value-widget-settings-values-tabs\\n          />\\n        </Shared::BetaLabel>\\n      {{/unless}}\\n      {{#if this.isSmart}}\\n        <Widgets::Edit::LimitedValue::WidgetSettings::Dynamic::Smart\\n          @exampleApiResponse={{this.exampleApiResponse}}\\n          @displayErrors={{@displayErrors}}\\n          @path={{this.path}}\\n          @verify={{this.verify}}\\n          @apiEndpointInputState={{this.apiEndpointInputState}}\\n          @isPathValid={{this.isPathValid}}\\n          @status={{this.status}}\\n          @isStatusOk={{this.isStatusOk}}\\n          @apiResponseString={{this.apiResponseString}}\\n          @apiResponseRows={{this.apiResponseRows}}\\n          @isCorrectlyFormated={{this.isCorrectlyFormated}}\\n          @templatingHelper={{@widgetConfiguration.templatingHelper}}\\n          @styleParameters={{styleParameters}}\\n        />\\n      {{else}}\\n        <Widgets::Edit::LimitedValue::WidgetSettings::Dynamic::Simple\\n          @isBelongsTo={{@field.isBelongsTo}}\\n          @displayErrors={{@displayErrors}}\\n          @isDynamicSimpleValid={{this.isDynamicSimpleValid}}\\n          @actOnCollection={{this.actOnCollection}}\\n          @collectionOptions={{this.collectionOptions}}\\n          @actOnField={{this.actOnField}}\\n          @fieldOptions={{this.fieldOptions}}\\n          @filter={{this.filter}}\\n          @filterableFields={{this.filterableFields}}\\n          @deleteFilter={{this.deleteFilter}}\\n          @createFilter={{this.createFilter}}\\n          @styleParameters={{styleParameters}}\\n          @templatingHelper={{@widgetConfiguration.templatingHelper}}\\n        />\\n      {{/if}}\\n    {{/if}}\\n    {{yield styleParameters to=\\'after-settings\\'}}\\n  </div>\\n{{/let}}\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/limited-value/widget-settings/template.hbs' });\n","import Component from '@ember/component';\nimport { tagName } from '@ember-decorators/component';\n\n@tagName('')\nexport default class WidgetsEditMultipleSelectWidgetLayoutComponent extends Component {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSelect\\n  @value={{@value}}\\n  @options={{if @field.isUsingAlteredValues @field.mappingValues @field.enums}}\\n  @namePath={{if @field.isUsingAlteredValues \\'label\\'}}\\n  @valuePath={{if @field.isUsingAlteredValues \\'value\\'}}\\n  @multipleValues={{true}}\\n  @inputId={{@inputId}}\\n  @disabled={{@disabled}}\\n  @onChange={{@onChange}}\\n  data-test-edit-widget-layout-multiple-select-for={{@field.fieldName}}\\n  data-test-widgets-edit-multiple-select-widget-layout={{@field.fieldName}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/multiple-select/widget-layout/template.hbs' });\n","import Component from '@ember/component';\nimport { tagName } from '@ember-decorators/component';\n\n@tagName('')\nexport default class WidgetsEditNumberInputWidgetLayoutComponent extends Component {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaInput\\n  @value={{@value}}\\n  @type=\\\"number\\\"\\n  @disabled={{@disabled}}\\n  @class={{@class}}\\n  @onChange={{@onChange}}\\n  @inputId={{@inputId}}\\n  @placeholder={{@field.widgetEdit.parameters.placeholder}}\\n  @min={{@field.widgetEdit.parameters.min}}\\n  @max={{@field.widgetEdit.parameters.max}}\\n  @step={{@field.widgetEdit.parameters.step}}\\n  data-test-edit-widget-number-input-for={{@field.fieldName}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/number-input/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel\\n  @label=\\\"Placeholder\\\"\\n  data-test-widget-edit-number-input-widget-settings-placeholder\\n>\\n  <Shared::BetaInput\\n    @value={{@widgetConfiguration.parameters.placeholder}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.placeholder) null}}\\n    data-test-widget-edit-number-input-widget-settings-placeholder-input\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel data-test-widget-edit-number-input-widget-settings-min @label=\\\"Min value\\\">\\n  <Shared::BetaInput\\n    @type=\\\"number\\\"\\n    @value={{@widgetConfiguration.parameters.min}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.min) null}}\\n    data-test-widget-edit-number-input-widget-settings-min-input\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel @label=\\\"Max value\\\" data-test-widget-edit-number-input-widget-settings-max>\\n  <Shared::BetaInput\\n    @type=\\\"number\\\"\\n    @value={{@widgetConfiguration.parameters.max}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.max) null}}\\n    data-test-widget-edit-number-input-widget-settings-max-input\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel data-test-widget-edit-number-input-widget-settings-step @label=\\\"Step\\\">\\n  <Shared::BetaInput\\n    @type=\\\"number\\\"\\n    @value={{@widgetConfiguration.parameters.step}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.step) null}}\\n    data-test-widget-edit-number-input-widget-settings-step-input\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/number-input/widget-settings/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { tagName } from '@ember-decorators/component';\nimport { isArray } from 'lodash';\n\n@tagName('')\nexport default class WidgetsEditPointEditorWidgetLayoutComponent extends Component {\n  @computed('value')\n  get coordinateX() {\n    return this._getCoordinate('x');\n  }\n\n  set coordinateX(xValue) {\n    this.setValue(`${xValue},${this.coordinateY}`);\n\n    return xValue;\n  }\n\n  @computed('value')\n  get coordinateY() {\n    return this._getCoordinate('y');\n  }\n\n  set coordinateY(yValue) {\n    this.setValue(`${this.coordinateX},${yValue}`);\n\n    return yValue;\n  }\n\n  _getCoordinate(type) {\n    if (!this.value) {\n      return null;\n    }\n\n    const index = type === 'x' ? 0 : 1;\n    if (isArray(this.value)) {\n      return parseFloat(this.value.toArray()[index]);\n    }\n\n    try {\n      return parseFloat(this.value.split(',')[index]);\n    } catch (error) {\n      console.error(`Unexpected Point coordinate${type.toUpperCase()} format:`, error);\n      return null;\n    }\n  }\n\n  setValue(newValue) {\n    if (this.value === newValue) {\n      return;\n    }\n\n    this.set('value', newValue);\n    this.onChange?.(this.value);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-form__field-point\\\"\\n  data-test-edit-widget-layout-point-editor-for={{@field.fieldName}}\\n  ...attributes\\n>\\n  <Shared::BetaLabel @label=\\\"X\\\" class=\\\"u-1-3 l-mb\\\">\\n    <Shared::BetaInput\\n      @type=\\\"number\\\"\\n      @value={{this.coordinateX}}\\n      @disabled={{@disabled}}\\n      @inputId={{@inputId}}\\n      data-test-edit-widget-layout-point-editor-for=\\\"{{@field.fieldName}}-x\\\"\\n    />\\n  </Shared::BetaLabel>\\n\\n  <Shared::BetaLabel @label=\\\"Y\\\" class=\\\"u-1-3\\\">\\n    <Shared::BetaInput\\n      @type=\\\"number\\\"\\n      @value={{this.coordinateY}}\\n      @disabled={{@disabled}}\\n      data-test-edit-widget-layout-point-editor-for=\\\"{{@field.fieldName}}-y\\\"\\n    />\\n  </Shared::BetaLabel>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/point-editor/widget-layout/template.hbs' });\n","import type FieldModel from 'client/data/models/field';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\n\ninterface Arguments {\n  record: ClientRecordModel;\n  field: FieldModel;\n  // value is the record of which the polymorphic record is belonging to\n  value: ClientRecordModel;\n  disableNested: boolean;\n}\n\nexport default class WidgetsEditPolymorphicBelongstoTypeaheadWidgetLayoutComponent extends Component<Arguments> {\n  @service declare lianaSession: LianaSessionService;\n\n  @tracked referenceModelName = this.args.value && getCollectionFromRecord(this.args.value)?.name;\n  // eslint-disable-next-line ember/no-tracked-properties-from-args\n  @tracked value = this.args.value;\n\n  get referenceModel() {\n    return this.lianaSession.rendering.collections.findBy('name', this.referenceModelName);\n  }\n\n  @action\n  onReferenceModelChange() {\n    this.value = null;\n    this.args.record[this.args.field.attributeNameWithRelationships] = null;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-polymorphic-belongsto-typeahead__container\\\">\\n  <Shared::BetaSelect\\n    @value={{this.referenceModelName}}\\n    @options={{@field.referenceModels}}\\n    @valuePath=\\\"name\\\"\\n    @namePath=\\\"displayName\\\"\\n    @disabled={{@disabled}}\\n    @onChange={{this.onReferenceModelChange}}\\n    @class=\\\"c-polymorphic-belongsto-typeahead__select\\\"\\n    data-test-widgets-edit-polymorphic-belongsto-typeahead-widget-layout-beta-select\\n  />\\n  <Widgets::Edit::BelongstoTypeahead::WidgetLayout\\n    @field={{@field}}\\n    @record={{@record}}\\n    @value={{this.value}}\\n    @polymorphicReferenceModel={{this.referenceModel}}\\n    @disabled={{or (not this.referenceModelName) @disabled}}\\n    @inputId={{@inputId}}\\n    @disableNested={{@disableNested}}\\n    @onChange={{@onChange}}\\n    @widgetConfiguration={{@widgetConfiguration}}\\n    @contextConfiguration={{@contextConfiguration}}\\n    @class=\\\"c-polymorphic-belongsto-typeahead__typeahead\\\"\\n    data-test-widgets-edit-polymorphic-belongsto-typeahead-widget-layout-widget-belongsto-typeahead\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/polymorphic-belongsto-typeahead/widget-layout/template.hbs' });\n","import type WidgetConfigurationFragment from 'client/data/models/widget-configuration';\nimport type LocaleService from 'client/legacy/services/locale';\nimport type { WidgetEditTypeEnum } from 'client/utils/widgets';\n\nimport Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport { tagName } from '@ember-decorators/component';\n\nimport Field from 'client/data/models/field';\nimport { argument, oneOfType, optional } from 'client/decorators/argument';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport priceFormatter from 'client/utils/price-formatter';\n\n@tagName('')\nexport default class WidgetsEditPriceEditorWidgetLayoutComponent extends Component {\n  @service locale: LocaleService;\n\n  @argument(Field) field: Field;\n  @argument(optional(Boolean)) disabled = false;\n  @argument(optional(oneOfType([String, Number]))) value = 0;\n  @argument(optional(Function)) onChange: (value: number) => void;\n  @argument(optional(String)) inputId: string;\n\n  hasFocus = false;\n  editablePrice = this.value;\n\n  get priceEditorId() {\n    return guidFor(this);\n  }\n\n  get prefixId() {\n    return `${this.priceEditorId}-prefix`;\n  }\n\n  get suffixId() {\n    return `${this.priceEditorId}-suffix`;\n  }\n\n  get prefix() {\n    const formattedExample = priceFormatter.format(\n      0,\n      this.field.widgetEdit as WidgetConfigurationFragment<WidgetEditTypeEnum.PriceEditor>,\n      this.locale.currentLocale,\n    );\n    return formattedExample.replace(/0.*$/, '');\n  }\n\n  get hasPrefix() {\n    return Boolean(this.prefix);\n  }\n\n  get suffix() {\n    const formattedExample = priceFormatter.format(\n      0,\n      this.field.widgetEdit as WidgetConfigurationFragment<WidgetEditTypeEnum.PriceEditor>,\n      this.locale.currentLocale,\n    );\n    return formattedExample.replace(/^.*0+/, '');\n  }\n\n  get hasSuffix() {\n    return Boolean(this.suffix);\n  }\n\n  @action\n  handlePrefixSuffixChange() {\n    const suffixElement = document.getElementById(this.suffixId);\n    const prefixElement = document.getElementById(this.prefixId);\n    const inputElement = document.getElementById(this.priceEditorId);\n\n    inputElement?.style.setProperty('--suffix-width', `${suffixElement?.offsetWidth}px`);\n    inputElement?.style.setProperty('--prefix-width', `${prefixElement?.offsetWidth}px`);\n  }\n\n  @action\n  handleValueChange(newPrice: number) {\n    const price: number = priceFormatter.isCents(this.field.widgetEdit)\n      ? parseInt((newPrice * 100).toFixed(0), 10)\n      : newPrice;\n    this.set('value', price);\n\n    this.onChange(price);\n\n    this.set('editablePrice', this.computeEditablePrice());\n  }\n\n  @action\n  handleFocus() {\n    this.set('hasFocus', true);\n  }\n\n  @action\n  handleBlur() {\n    this.set('hasFocus', false);\n    this.set('editablePrice', this.computeEditablePrice());\n  }\n\n  @action\n  handleDidUpdate() {\n    this.set('editablePrice', this.computeEditablePrice());\n  }\n\n  @action\n  async handleDidInsert() {\n    this.set('editablePrice', this.computeEditablePrice());\n    await waitForNextRunLoop();\n    this.handlePrefixSuffixChange();\n  }\n\n  computeEditablePrice() {\n    const amount = priceFormatter.getAmount(this.field.widgetEdit, this.value);\n\n    if (typeof amount === 'number' && !this.hasFocus) {\n      return amount.toFixed(2);\n    }\n\n    return amount;\n  }\n}\n","import { getOwner } from '@ember/application';\nimport { on } from '@ember/object/evented';\nimport { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Legacy/Widgets/Edit/PriceEditor/WidgetLayout',\n  component: 'Widgets::Edit::PriceEditor::WidgetLayout',\n  argTypes: {\n    disabled: {\n      type: 'boolean',\n      description: \"The `input` tag's `disabled` attribute.\",\n      table: {\n        category: 'Properties',\n      },\n    },\n    value: {\n      type: 'number',\n      description: \"The input's value.\",\n      table: {\n        category: 'Properties',\n      },\n    },\n    onChange: {\n      type: 'function',\n      description: \"Called on the input's `change` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n  },\n  args: {},\n};\n\nfunction createField(currency = 'USD') {\n  return on('init', function () {\n    this.value = 45.56;\n    this.field = getOwner(this)\n      .lookup('service:store')\n      .createRecord('field', {\n        id: 'field-id',\n        fieldName: 'field-name',\n        widgetEdit: {\n          name: 'price editor',\n          parameters: {\n            currency,\n            step: 0.01,\n          },\n        },\n      });\n  });\n}\n\nfunction setLocale(locale) {\n  return on('init', function () {\n    const localeService = getOwner(this).lookup('service:locale');\n    localeService.currentLocale = locale;\n  });\n}\n\nexport function usd() {\n  return {\n    template: hbs`\n      <Widgets::Edit::PriceEditor::WidgetLayout\n        @field={{this.field}}\n        @value={{this.value}}\n        @onChange={{fn (mut this.value)}}\n      />\n    `,\n    context: {\n      createField: createField('USD'),\n      setLocale: setLocale('en-us'),\n    },\n  };\n}\n\nexport function usdDisabled() {\n  return {\n    template: hbs`\n      <Widgets::Edit::PriceEditor::WidgetLayout\n        @field={{this.field}}\n        @value={{this.value}}\n        @onChange={{fn (mut this.value)}}\n        @disabled={{true}}\n      />\n    `,\n    context: {\n      createField: createField('USD'),\n      setLocale: setLocale('en-us'),\n    },\n  };\n}\n\nexport function usdFRLocale() {\n  return {\n    template: hbs`\n      <Widgets::Edit::PriceEditor::WidgetLayout\n        @field={{this.field}}\n        @value={{this.value}}\n        @onChange={{fn (mut this.value)}}\n      />\n    `,\n    context: {\n      createField: createField('USD'),\n      setLocale: setLocale('fr-fr'),\n    },\n  };\n}\n\nexport function eur() {\n  return {\n    template: hbs`\n      <Widgets::Edit::PriceEditor::WidgetLayout\n        @field={{this.field}}\n        @value={{this.value}}\n        @onChange={{fn (mut this.value)}}\n      />\n    `,\n    context: {\n      createField: createField('EUR'),\n      setLocale: setLocale('fr-fr'),\n    },\n  };\n}\nexport function eurDisabled() {\n  return {\n    template: hbs`\n      <Widgets::Edit::PriceEditor::WidgetLayout\n        @field={{this.field}}\n        @value={{this.value}}\n        @onChange={{fn (mut this.value)}}\n        @disabled={{true}}\n      />\n    `,\n    context: {\n      createField: createField('EUR'),\n      setLocale: setLocale('fr-fr'),\n    },\n  };\n}\n\nexport function cadUSLocale() {\n  return {\n    template: hbs`\n      <Widgets::Edit::PriceEditor::WidgetLayout\n        @field={{this.field}}\n        @value={{this.value}}\n        @onChange={{fn (mut this.value)}}\n      />\n    `,\n    context: {\n      createField: createField('CAD'),\n      setLocale: setLocale('en-us'),\n    },\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaInput\\n  @disabled={{@disabled}}\\n  @type=\\\"number\\\"\\n  @value={{one-way this.editablePrice}}\\n  @inputId={{@inputId}}\\n  @min={{@field.widgetEdit.parameters.min}}\\n  @max={{@field.widgetEdit.parameters.max}}\\n  @step={{@field.widgetEdit.parameters.step}}\\n  @placeholder={{@field.widgetEdit.parameters.placeholder}}\\n  @onChange={{this.handleValueChange}}\\n  @onFocus={{this.handleFocus}}\\n  @onBlur={{this.handleBlur}}\\n  @hasSuffixPadding={{true}}\\n  @hasPrefixPadding={{true}}\\n  id={{this.priceEditorId}}\\n  class={{get-classes-with-modifiers\\n    \\'c-price-editor\\'\\n    with-prefix=this.hasPrefix\\n    with-suffix=this.hasSuffix\\n  }}\\n  data-test-edit-widget-layout-price-editor-for={{@field.fieldName}}\\n  {{did-insert this.handleDidInsert}}\\n  {{did-update this.handleDidUpdate @value}}\\n  {{did-update this.handlePrefixSuffixChange this.prefix this.suffix}}\\n  ...attributes\\n>\\n  <:input-prefix>\\n    {{#if this.hasPrefix}}\\n      <div\\n        id={{this.prefixId}}\\n        class=\\\"c-price-editor__unit c-price-editor__unit--prefix\\n          {{if this.hasFocus \\'c-price-editor__unit--focus\\'}}\\n          {{if @disabled \\'c-price-editor__unit--disabled\\'}}\\\"\\n        data-test-price-editor-prefix\\n      >\\n        {{this.prefix}}\\n      </div>\\n    {{/if}}\\n  </:input-prefix>\\n  <:input-suffix>\\n    {{#if this.hasSuffix}}\\n      <div\\n        id={{this.suffixId}}\\n        class=\\\"c-price-editor__unit c-price-editor__unit--suffix\\n          {{if this.hasFocus \\'c-price-editor__unit--focus\\'}}\\n          {{if @disabled \\'c-price-editor__unit--disabled\\'}}\\\"\\n        data-test-price-editor-suffix\\n      >\\n        {{this.suffix}}\\n      </div>\\n    {{/if}}\\n  </:input-suffix>\\n</Shared::BetaInput>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/price-editor/widget-layout/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport CURRENCIES from 'client/utils/currencies';\n\nexport default class WidgetsEditPriceEditorWidgetSettingsComponent extends Component {\n  get currencies() {\n    return CURRENCIES;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel\\n  @label=\\\"Currency\\\"\\n  class=\\\"l-field-setting\\\"\\n  data-test-widgets-edit-price-editor-widget-settings-currency\\n>\\n  <Shared::BetaSelect\\n    @placeholder=\\\"Select a currency\\\"\\n    @value={{@widgetConfiguration.parameters.currency}}\\n    @options={{this.currencies}}\\n    @namePath=\\\"label\\\"\\n    @valuePath=\\\"code\\\"\\n    @withSearchInput={{true}}\\n    data-test-widgets-edit-price-editor-widget-settings-currency-select\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel @label=\\\"Base\\\" data-test-widgets-edit-price-editor-widget-settings-base>\\n  <Shared::BetaSelect\\n    @placeholder=\\\"Select a base\\\"\\n    @value={{@widgetConfiguration.parameters.base}}\\n    @options={{array \\'Unit\\' \\'Cents\\'}}\\n    data-test-widgets-edit-price-editor-widget-settings-base-select\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel\\n  @label=\\\"Placeholder\\\"\\n  data-test-widgets-edit-price-editor-widget-settings-placeholder\\n>\\n  <Shared::BetaInput\\n    @value={{@widgetConfiguration.parameters.placeholder}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.placeholder) null}}\\n    data-test-widgets-edit-price-editor-widget-settings-placeholder-input\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel data-test-widgets-edit-price-editor-widget-settings-min @label=\\\"Min value\\\">\\n  <Shared::BetaInput\\n    @type=\\\"number\\\"\\n    @value={{@widgetConfiguration.parameters.min}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.min) null}}\\n    data-test-widgets-edit-price-editor-widget-settings-min-input\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel @label=\\\"Max value\\\" data-test-widgets-edit-price-editor-widget-settings-max>\\n  <Shared::BetaInput\\n    @type=\\\"number\\\"\\n    @value={{@widgetConfiguration.parameters.max}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.max) null}}\\n    data-test-widgets-edit-price-editor-widget-settings-max-input\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel data-test-widgets-edit-price-editor-widget-settings-step @label=\\\"Step\\\">\\n  <Shared::BetaInput\\n    @type=\\\"number\\\"\\n    @value={{@widgetConfiguration.parameters.step}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.step) null}}\\n    data-test-widgets-edit-price-editor-widget-settings-step-input\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/price-editor/widget-settings/template.hbs' });\n","import { computed } from '@ember/object';\n\nimport { argument, oneOfType, optional } from 'client/decorators/argument';\nimport LimitedValueWidgetLayout from 'client/legacy/pods/components/widgets/edit/limited-value/widget-layout/component';\n\nconst MAX_VERTICAL = 8;\nexport default class WidgetsEditRadioButtonWidgetLayoutComponent extends LimitedValueWidgetLayout {\n  @argument(optional(oneOfType([String, Number, Boolean, Object]))) value;\n\n  @computed('optionsToDisplay.length')\n  get displayType() {\n    return this.optionsToDisplay?.length < MAX_VERTICAL ? 'vertical' : 'grid';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRadioButton\\n  @options={{this.optionsToDisplay}}\\n  @value={{@value}}\\n  @namePath=\\\"label\\\"\\n  @valuePath=\\\"value\\\"\\n  @disabledPath=\\\"disabled\\\"\\n  @display={{this.displayType}}\\n  @disabled={{@disabled}}\\n  @onChange={{@onChange}}\\n  data-test-edit-widget-layout-radio-button-for={{@field.fieldName}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/radio-button/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Widgets::Edit::LimitedValue::WidgetSettings\\n  @field={{@field}}\\n  @widgetConfiguration={{@widgetConfiguration}}\\n  @displayErrors={{@displayErrors}}\\n  @isUsingAlteredValues={{@isUsingAlteredValues}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/radio-button/widget-settings/template.hbs' });\n","import type FieldModel from 'client/data/models/field';\nimport type { WidgetConfigurationRichTextAttributes } from 'client/data/models/widget-configuration-rich-text';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type HtmlSanitizerService from 'client/legacy/services/html-sanitizer';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { tagName } from '@ember-decorators/component';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport Quill from 'quill';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport { ImageFormat } from 'client/utils/quill/quill-common';\nimport { YouTubeFormat } from 'client/utils/quill/quill-format-youtube';\n\ninterface Args {\n  value: string | null;\n  field: FieldModel;\n  debounceTime?: number;\n  disabled?: boolean;\n  readMode?: boolean;\n  widgetConfiguration: WidgetConfigurationRichTextAttributes;\n  onChange?: (value: string | string[]) => void;\n}\n\n@tagName('')\nexport default class WidgetsEditRichTextWidgetLayoutComponent extends Component<Args> {\n  @service htmlSanitizer: HtmlSanitizerService;\n  @service('feature/notification') businessNotification: NotificationFeatureService;\n\n  @tracked quillHistoryStackUndo: number;\n  @tracked quillHistoryStackRedo: number;\n  @tracked showYouTubeModal = false;\n\n  quill: Quill;\n  private youTubeUrlCallback: ((url: string) => void) | null = null;\n\n  textareaId: string;\n  toolbarId: string;\n\n  constructor(owner: unknown, args: Args) {\n    super(owner, args);\n\n    this.textareaId = `textarea-${guidFor(this)}`;\n    // Comment this line to have the native definition\n    this.toolbarId = `toolbar-${guidFor(this)}`;\n  }\n\n  get textarea(): HTMLElement {\n    return document.querySelector(`#${this?.textareaId}`);\n  }\n\n  get getCleanText(): string {\n    const html = this.quill.getSemanticHTML();\n    if (\n      this.textarea?.innerText.trim().length\n      || html?.includes('<img src=')\n      || html?.includes('<iframe')\n    ) {\n      return this.htmlSanitizer\n        .sanitizeRichText(html.trim())\n        .replaceAll(/<div><\\/div>|<div\\/>|\\n/g, '<br/>');\n    }\n\n    return null;\n  }\n\n  private setValueToEditor() {\n    this.quill.setContents(this.quill.clipboard.convert({ html: this.args.value }));\n  }\n\n  @action async valueUpdated() {\n    if (this.getCleanText !== this.args.value) {\n      // if we are here, then the value has been changed from outside the editor\n      // for instance from an action hook\n      // we push the new value to the editor\n      await waitForNextRunLoop();\n      this.setValueToEditor();\n    }\n  }\n\n  @action\n  async initQuill() {\n    await waitForNextRunLoop();\n    ImageFormat.error = (text: string) =>\n      this.businessNotification.createToastr(ToastrTypeEnum.Error, text);\n\n    YouTubeFormat.requestVideoUrl = (onConfirm: (url: string) => void) => {\n      this.youTubeUrlCallback = onConfirm;\n      this.showYouTubeModal = true;\n    };\n\n    this.quill = new Quill(this.textarea, {\n      modules: {\n        toolbar: `#${this.toolbarId}`,\n        autolink: true,\n        resize: true,\n        history: {\n          delay: 1000,\n          maxStack: 50,\n        },\n      },\n      placeholder:\n        (this.args.field.widgetEdit.parameters as WidgetConfigurationRichTextAttributes).placeholder\n        || this.args.widgetConfiguration?.placeholder,\n      theme: 'forest-rich-text',\n    });\n\n    this.setValueToEditor();\n    this.quill.on('text-change', () => {\n      if (this.args.onChange) this.args.onChange(this.getCleanText);\n      this.quillHistoryStackUndo = this.quill.history.stack.undo.length;\n      this.quillHistoryStackRedo = this.quill.history.stack.redo.length;\n    });\n  }\n\n  get safeValue() {\n    return htmlSafe(this.htmlSanitizer.sanitizeRichText(this.args.value));\n  }\n\n  // ==================\n  // UNDO / REDO\n  // WARNING: due to quill.setContent we have an initial change register in the history.stack.undo\n  // ==================\n\n  @action\n  undo() {\n    if (this.quill.history.stack.undo.length > 1) this.quill?.history.undo();\n  }\n\n  @action\n  redo() {\n    if (this.quill.history.stack.redo.length > 0) this.quill?.history.redo();\n  }\n\n  get canUndo() {\n    return this.quillHistoryStackUndo > 1;\n  }\n\n  get canRedo() {\n    return this.quillHistoryStackRedo > 0;\n  }\n\n  @action\n  handleYouTubeConfirm(url: string) {\n    this.youTubeUrlCallback?.(url);\n    this.showYouTubeModal = false;\n    this.youTubeUrlCallback = null;\n  }\n\n  @action\n  handleYouTubeCancel() {\n    this.showYouTubeModal = false;\n    this.youTubeUrlCallback = null;\n  }\n}\n","import { on } from '@ember/object/evented';\nimport { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Legacy/Widgets/Edit/RichText/WidgetLayout',\n  component: 'Widgets::Edit::RichText::WidgetLayout',\n  argTypes: {\n    value: {\n      type: 'string',\n      description: 'The value of the rich text editor',\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: '',\n        },\n      },\n    },\n  },\n  args: {},\n};\nfunction createValue() {\n  return on('init', function () {\n    this.value =\n      \"<p>Foo <b>bar</b>. Hello <a href='https://www.forestadmin.com'>Forest</a>!</p><p><i>Italic text</i></p>\";\n  });\n}\nexport function Base() {\n  return {\n    template: hbs`\n      <Widgets::Edit::RichText::WidgetLayout\n        @value={{this.value}}\n      />\n    `,\n    context: {\n      createValue: createValue(),\n    },\n  };\n}\n\nexport function Disabled() {\n  return {\n    template: hbs`\n      <Widgets::Edit::RichText::WidgetLayout\n        @disabled={{true}}\n        @value={{this.value}}\n      />\n    `,\n    context: {\n      createValue: createValue(),\n    },\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-widget-edit-rich-text\\\" ...attributes>\\n  {{#if @disabled}}\\n    <div class=\\\"c-widget-edit-rich-text__fake-input\\\" data-test-widget-edit-rich-text-fake-input>\\n      {{this.safeValue}}\\n    </div>\\n  {{else}}\\n    {{! Toolbar }}\\n    {{#if this.toolbarId}}\\n      <Widgets::Edit::RichText::WidgetLayout::Toolbar\\n        @toolbarId={{this.toolbarId}}\\n        @undo={{this.undo}}\\n        @redo={{this.redo}}\\n        @canUndo={{this.canUndo}}\\n        @canRedo={{this.canRedo}}\\n      />\\n    {{/if}}\\n\\n    <div\\n      id={{this.textareaId}}\\n      class={{get-classes-with-modifiers\\n        \\'c-widget-edit-rich-text__textarea\\'\\n        focussed=this.quill.hasFocus\\n      }}\\n      data-test-edit-widget-layout-rich-text\\n      {{did-insert this.initQuill}}\\n      {{did-update this.valueUpdated @value}}\\n    />\\n  {{/if}}\\n\\n  {{#if this.showYouTubeModal}}\\n    <Feature::Modal::Internal::ModalWindow\\n      @onClose={{this.handleYouTubeCancel}}\\n      @portal=\\\"modal-feature\\\"\\n    >\\n      <Shared::Form::YoutubeUrlModal\\n        @onConfirm={{this.handleYouTubeConfirm}}\\n        @onCancel={{this.handleYouTubeCancel}}\\n      />\\n    </Feature::Modal::Internal::ModalWindow>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/rich-text/widget-layout/template.hbs' });\n","import Component from '@glimmer/component';\n\ninterface Args {\n  toolbarId: string;\n  undo: () => void;\n  redo: () => void;\n  canUndo: boolean;\n  canRedo: boolean;\n}\n\n// eslint-disable-next-line ember/no-empty-glimmer-component-classes\nexport default class WidgetsEditRichTextWidgetLayoutComponent extends Component<Args> {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! Quill toolbar in here }}\\n<div id={{@toolbarId}} class=\\\"c-widget-edit-rich-text-toolbar ql-toolbar ql-snow\\\" ...attributes>\\n  {{#let (get-classes-with-modifiers \\'c-widget-edit-rich-text-toolbar__item\\' @size) as |itemClass|}}\\n\\n    {{! Add font size dropdown }}\\n    <div class=\\\"c-widget-edit-rich-text-toolbar__group\\\">\\n      <button\\n        type=\\\"button\\\"\\n        class={{concat \\'ql-bold \\' itemClass}}\\n        aria-pressed=\\\"false\\\"\\n        aria-label=\\\"bold\\\"\\n        title=\\\"Bold\\\"\\n        data-test-action-bold\\n      />\\n\\n      <button\\n        type=\\\"button\\\"\\n        class={{concat \\'ql-italic \\' itemClass}}\\n        aria-pressed=\\\"false\\\"\\n        aria-label=\\\"italic\\\"\\n        title=\\\"Italic\\\"\\n        data-test-action-italic\\n      />\\n\\n      <button\\n        type=\\\"button\\\"\\n        class={{concat \\'ql-strike \\' itemClass}}\\n        aria-pressed=\\\"false\\\"\\n        aria-label=\\\"strike\\\"\\n        title=\\\"Strike-through\\\"\\n        data-test-action-strike\\n      />\\n\\n      <button\\n        type=\\\"button\\\"\\n        class={{concat \\'ql-link \\' itemClass}}\\n        aria-pressed=\\\"false\\\"\\n        aria-label=\\\"link\\\"\\n        title=\\\"Insert link\\\"\\n        data-test-action-link\\n      />\\n\\n      <button\\n        type=\\\"button\\\"\\n        class={{concat \\'ql-video \\' itemClass}}\\n        aria-pressed=\\\"false\\\"\\n        aria-label=\\\"video\\\"\\n        title=\\\"Insert video\\\"\\n        data-test-action-video\\n      />\\n    </div>\\n\\n    <span class=\\\"c-widget-edit-rich-text-toolbar__separator\\\" />\\n\\n    <div class=\\\"c-widget-edit-rich-text-toolbar__group\\\">\\n      {{! template-lint-disable require-input-label }}\\n      <select class=\\\"ql-header\\\" title=\\\"Text style\\\">\\n        <option value=\\\"1\\\"></option>\\n        <option value=\\\"2\\\"></option>\\n        <option value=\\\"3\\\"></option>\\n        <option value=\\\"4\\\"></option>\\n        <option selected=\\\"selected\\\"></option>\\n      </select>\\n\\n      <button\\n        type=\\\"button\\\"\\n        class={{concat \\'ql-blockquote \\' itemClass}}\\n        aria-pressed=\\\"false\\\"\\n        title=\\\"Blockquote\\\"\\n        aria-label=\\\"blockquote\\\"\\n        data-test-action-blockquote\\n      />\\n\\n      <button\\n        type=\\\"button\\\"\\n        class={{concat \\'ql-code-block \\' itemClass}}\\n        aria-pressed=\\\"false\\\"\\n        title=\\\"Code block\\\"\\n        aria-label=\\\"code-block\\\"\\n        data-test-action-code-block\\n      />\\n\\n      <button\\n        type=\\\"button\\\"\\n        class={{concat \\'ql-list \\' itemClass}}\\n        aria-pressed=\\\"false\\\"\\n        value=\\\"bullet\\\"\\n        title=\\\"Bullet list\\\"\\n        aria-label=\\\"list: bullet\\\"\\n        data-test-action-list-bullet\\n      />\\n\\n      <button\\n        type=\\\"button\\\"\\n        class={{concat \\'ql-list \\' itemClass}}\\n        aria-pressed=\\\"false\\\"\\n        value=\\\"ordered\\\"\\n        title=\\\"Numbered list\\\"\\n        aria-label=\\\"list: ordered\\\"\\n        data-test-action-list-ordered\\n      />\\n\\n      <button\\n        type=\\\"button\\\"\\n        class={{concat \\'ql-indent \\' itemClass}}\\n        aria-pressed=\\\"false\\\"\\n        value=\\\"-1\\\"\\n        title=\\\"Decrease indent\\\"\\n        aria-label=\\\"indent: -1\\\"\\n        data-test-action-indent-decrease\\n      />\\n\\n      <button\\n        type=\\\"button\\\"\\n        class={{concat \\'ql-indent \\' itemClass}}\\n        aria-pressed=\\\"false\\\"\\n        value=\\\"+1\\\"\\n        title=\\\"Increase indent\\\"\\n        aria-label=\\\"indent: +1\\\"\\n        data-test-action-indent-increase\\n      />\\n    </div>\\n\\n    <span class=\\\"c-widget-edit-rich-text-toolbar__separator\\\" />\\n\\n    <div class=\\\"c-widget-edit-rich-text-toolbar__group\\\">\\n      <button\\n        type=\\\"button\\\"\\n        disabled={{not @canUndo}}\\n        {{on \\'click\\' @undo}}\\n        class={{concat \\'ql-undo \\' itemClass}}\\n        aria-pressed=\\\"false\\\"\\n        aria-label=\\\"undo\\\"\\n        title=\\\"Undo\\\"\\n        data-test-action-undo\\n      />\\n\\n      <button\\n        type=\\\"button\\\"\\n        disabled={{not @canRedo}}\\n        {{on \\'click\\' @redo}}\\n        class={{concat \\'ql-redo \\' itemClass}}\\n        aria-pressed=\\\"false\\\"\\n        aria-label=\\\"redo\\\"\\n        title=\\\"Redo\\\"\\n        data-test-action-redo\\n      />\\n    </div>\\n\\n  {{/let}}\\n\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/rich-text/widget-layout/toolbar/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel @label=\\\"Placeholder\\\" data-test-widget-edit-rich-text-widget-settings-placeholder>\\n  <Shared::BetaInput\\n    @value={{@widgetConfiguration.parameters.placeholder}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.placeholder) null}}\\n    data-test-widget-edit-rich-text-widget-settings-placeholder-input\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/rich-text/widget-settings/template.hbs' });\n","import Component from '@ember/component';\nimport { tagName } from '@ember-decorators/component';\n\n@tagName('')\nexport default class WidgetsEditTextAreaEditorWidgetLayoutComponent extends Component {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaTextarea\\n  @value={{@value}}\\n  @onChange={{@onChange}}\\n  id={{@inputId}}\\n  disabled={{@disabled}}\\n  placeholder={{@field.widgetEdit.parameters.placeholder}}\\n  rows={{@field.widgetEdit.parameters.height}}\\n  class={{@class}}\\n  data-test-edit-widget-layout-text-area-editor-for={{@field.fieldName}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/text-area-editor/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel\\n  @label=\\\"Placeholder\\\"\\n  data-test-widget-edit-text-area-editor-widget-settings-placeholder\\n>\\n  <Shared::BetaInput\\n    @value={{@widgetConfiguration.parameters.placeholder}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.placeholder) null}}\\n    data-test-widget-edit-text-area-editor-widget-settings-placeholder-input\\n  />\\n</Shared::BetaLabel>\\n\\n<Shared::BetaLabel\\n  @label=\\\"Height (number of rows)\\\"\\n  data-test-widget-edit-text-area-editor-widget-settings-height\\n>\\n  <Shared::BetaInput\\n    @value={{@widgetConfiguration.parameters.height}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.height) null}}\\n    @type=\\\"number\\\"\\n    @min={{1}}\\n    @step={{1}}\\n    data-test-widget-edit-text-area-editor-widget-settings-height-input\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/text-area-editor/widget-settings/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { tagName } from '@ember-decorators/component';\n\n@tagName('')\nexport default class WidgetsEditTextEditorWidgetLayoutComponent extends Component {\n  @computed('field.isArray', 'value')\n  get stringValue() {\n    if (this.field.isArray && this.value) {\n      return this.value.toArray().join(',');\n    }\n\n    return this.value;\n  }\n\n  set stringValue(value) {\n    if (this.field.isArray) {\n      const values = value ? value.split(',').map((part) => part.trim()) : [];\n\n      this.set('value', values);\n    } else {\n      this.set('value', value);\n    }\n\n    this.onChange(this.value);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaInput\\n  @value={{this.stringValue}}\\n  @disabled={{@disabled}}\\n  @state={{if (eq this.isValid false) \\'error\\'}}\\n  @class={{this.class}}\\n  @inputId={{@inputId}}\\n  @placeholder={{@field.widgetEdit.parameters.placeholder}}\\n  data-test-edit-widget-layout-text-editor-for={{@field.fieldName}}\\n  ...attributes\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/text-editor/widget-layout/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaLabel @label=\\\"Placeholder\\\">\\n  <Shared::BetaInput\\n    @value={{@widgetConfiguration.parameters.placeholder}}\\n    @onEmpty={{fn (mut @widgetConfiguration.parameters.placeholder) null}}\\n    data-test-widget-edit-text-editor-widget-settings-placeholder\\n  />\\n</Shared::BetaLabel>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/text-editor/widget-settings/template.hbs' });\n","import Component from '@ember/component';\nimport { tagName } from '@ember-decorators/component';\n\n@tagName('')\nexport default class WidgetsEditTimeInputWidgetLayoutComponent extends Component {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaInput\\n  @disabled={{@disabled}}\\n  @type=\\\"time\\\"\\n  @value={{@value}}\\n  @onChange={{@onChange}}\\n  @inputId={{@inputId}}\\n  data-test-edit-widget-layout-time-input-for={{@field.fieldName}}\\n/>\\n', { moduleName: 'client/legacy/pods/components/widgets/edit/time-input/widget-layout/template.hbs' });\n","import Component from '@glimmer/component';\n\ntype Args = {\n  value: unknown;\n};\nexport default class WidgetsValueCopier extends Component<Args> {\n  get hasCopiableValue() {\n    return Boolean(this.copiableValue);\n  }\n\n  get copiableValue() {\n    return this.args.value?.toString();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.hasCopiableValue}}\\n  <Form::Copy\\n    @value={{this.copiableValue}}\\n    @style=\\\"icon\\\"\\n    @size=\\\"auto\\\"\\n    @color=\\\"subtle\\\"\\n    @insideInput={{false}}\\n    class=\\\"c-widgets-value-copier\\\"\\n    data-dd-action-name=\\\"Copy field `{{@field.fieldName}}` of `{{@field.collection.name}}`\\\"\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/components/widgets/value-copier/template.hbs' });\n","import type ApplicationInstance from '@ember/application/instance';\nimport type DocumentationLinkGetterService from 'client/legacy/services/documentation-link-getter';\nimport type WidgetsManagerService from 'client/legacy/services/widgets-manager';\n\nimport { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport Field from 'client/data/models/field';\nimport WidgetConfiguration from 'client/data/models/widget-configuration';\nimport { any, argument, oneOf, oneOfType, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\nenum WidgetLayoutEnum {\n  DisplayColumn = 'display-column',\n  DisplayRow = 'display-row',\n  Edit = 'edit',\n}\n\ntype Args = {\n  field: Field;\n  value: unknown;\n  label: string;\n  contextConfiguration: unknown;\n  searchMatch: string;\n  handleSearchQuery: () => void | Promise<void>;\n  segmentId: string;\n  type: WidgetLayoutEnum;\n  setFormLoadingState: () => void | Promise<void>;\n  widgetConfiguration: WidgetConfiguration;\n};\n\n@validateArguments\nexport default class WidgetsWidgetComponent extends Component<Args> {\n  @argument(oneOfType([Field, Object])) field;\n  @argument(any()) value;\n  @argument(any()) label;\n  @argument(any()) contextConfiguration;\n  @argument(optional(String)) searchMatch;\n  @argument(optional(Function)) handleSearchQuery;\n  @argument(optional(String)) segmentId;\n  @argument(oneOf('display-column', 'display-row', 'edit')) type;\n  @argument(optional(Function)) setFormLoadingState;\n  @argument(optional(WidgetConfiguration)) widgetConfiguration;\n\n  @service widgetsManager: WidgetsManagerService;\n  @service documentationLinkGetter: DocumentationLinkGetterService;\n  _isBeingInitialized = false;\n\n  constructor(owner: ApplicationInstance, args: Args) {\n    super(owner, args);\n\n    void this.handleWidgetChange();\n  }\n\n  @computed(\n    '(this.args.field).widgetDisplay.widget',\n    'args.field.id',\n    'args.field.widgetDisplay.widget',\n    'args.widgetConfiguration.widget',\n  )\n  get currentDisplayWidget() {\n    return this.args.widgetConfiguration?.widget || this.args.field.widgetDisplay?.widget;\n  }\n\n  @computed(\n    '(this.args.field).widgetEdit.widget',\n    'args.field.displayWidget.name',\n    'args.field.id',\n    'args.field.widgetEdit.widget',\n    'args.widgetConfiguration.widget',\n  )\n  get currentEditWidget() {\n    return this.args.widgetConfiguration?.widget || this.args.field.widgetEdit?.widget;\n  }\n\n  @computed(\n    '(this.args.field).{areWidgetsInitialized,fieldName}',\n    'args.field.{areWidgetsInitialized,fieldName}',\n    'args.{type,widgetConfiguration}',\n    'currentDisplayWidget.{displayColumnLayoutComponent,displayRowLayoutComponent}',\n    'currentEditWidget.editLayoutComponent',\n  )\n  get componentName() {\n    try {\n      switch (this.args.type) {\n        case 'display-column':\n          return this.currentDisplayWidget.displayColumnLayoutComponent;\n        case 'display-row':\n          return this.currentDisplayWidget.displayRowLayoutComponent;\n        case 'edit':\n          return this.currentEditWidget.editLayoutComponent;\n        default:\n          throw new Error(`Unknown widget type: ${this.args.type}`);\n      }\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      if (this.args.field.areWidgetsInitialized) {\n        console.warn(\n          `The \"${\n            this.args.field.fieldName\n          }\" field configuration did not allow to display something. Please refer to the documentation ${this.documentationLinkGetter.getDocumentationLink()} or contact our support team at https://community.forestadmin.com.`,\n        );\n      }\n      return '';\n    }\n  }\n\n  @action\n  async handleWidgetChange() {\n    if (this._isBeingInitialized) return;\n\n    // ensureWidgetDefaults is called every time widgetEdit and widgetDisplay are updated so calling it will retrigger handleWidgetChange\n    // so we need to ignore those call until the set of the default widgets is done\n    this._isBeingInitialized = true;\n\n    await waitForNextRunLoop();\n    await this.args.field?.ensureWidgetDefaults();\n    this._isBeingInitialized = false;\n  }\n\n  get isCopiable() {\n    return this.args.type === WidgetLayoutEnum.DisplayRow && this.currentDisplayWidget?.isCopiable;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  ...attributes\\n  {{did-update this.handleWidgetChange @field.widgetEdit @field.widgetDisplay}}\\n  class=\\\"c-widget\\\"\\n  data-dd-action-name=\\\"Click on widget for `{{@field.fieldName}}` of `{{@field.collection.name}}`\\\"\\n>\\n\\n  <div class={{get-classes-with-modifiers \\'c-widget__wrapper\\' copiable=this.isCopiable}}>\\n    {{component\\n      this.componentName\\n      field=@field\\n      value=@value\\n      label=@label\\n      searchMatch=@searchMatch\\n      segmentId=@segmentId\\n      disabled=(or @isReadOnly @field.isReadOnly)\\n      cannotSearch=@cannotSearch\\n      record=@record\\n      disableNested=@disableNested\\n      parentRecord=@parentRecord\\n      parentCollection=@parentCollection\\n      dropdownParent=@dropdownParent\\n      isValid=@isValid\\n      contextConfiguration=@contextConfiguration\\n      setFormLoadingState=@setFormLoadingState\\n      widgetConfiguration=@widgetConfiguration\\n      inputId=@inputId\\n      height=@height\\n      handleSearchQuery=@handleSearchQuery\\n      onChange=@onChange\\n      onErrorChange=@onErrorChange\\n      hasCopyButton=this.hasCopyButton\\n    }}\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/widgets/widget/template.hbs' });\n","import type { WorkspaceAutogeneratedTemplate } from 'client/configuration/workspace-autogenerated-template';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\nimport type BusinessCollectionService from 'client/legacy/services/business/collection';\nimport type WorkspaceAutogeneratorBusinessService from 'client/legacy/services/business/workspace-autogenerator';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport {\n  WORKSPACE_GRID_CELL_HEIGHT,\n  WORKSPACE_GRID_CELL_WIDTH,\n} from 'client/config/workspace-configuration';\nimport { WORKSPACE_AUTOGENERATED_TEMPLATES } from 'client/configuration/workspace-autogenerated-template';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\ninterface TemplateWorkspace {\n  template: WorkspaceAutogeneratedTemplate;\n  workspace: WorkspaceModel;\n}\n\nexport interface WorkspaceAutogenerationArgs {\n  isFirstWorkspace?: boolean;\n  onCloseAutogeneration: () => void;\n}\n\nexport default class WorkspaceAutogenerationComponent extends Component<WorkspaceAutogenerationArgs> {\n  @service('feature/client-record') private clientRecordFeature: ClientRecordFeatureService;\n  @service('business/collection') private businessCollectionService: BusinessCollectionService;\n  @service() private segmentTracker: SegmentTrackerService;\n  @service('business/workspace-autogenerator')\n  private workspaceAutogeneratorService: WorkspaceAutogeneratorBusinessService;\n\n  @service('business/workspace-manager') private workspaceManager: WorkspaceManagerService;\n\n  @tracked isDisplayingSurvey = false;\n  @tracked selectedTemplateWorkspace: TemplateWorkspace;\n\n  public readonly templateWorkspaces: TemplateWorkspace[];\n\n  constructor(owner: unknown, args: WorkspaceAutogenerationArgs) {\n    super(owner, args);\n\n    const collection = this.workspaceAutogeneratorService.getBestDemoCollection();\n\n    this.templateWorkspaces = WORKSPACE_AUTOGENERATED_TEMPLATES.filter((template) =>\n      this.workspaceAutogeneratorService.meetsTemplateRequirement(collection, template),\n    ).map((template) => ({\n      template,\n      workspace: this.workspaceAutogeneratorService.createWorkspaceFromTemplate(\n        template,\n        collection,\n      ),\n    }));\n\n    // eslint-disable-next-line @typescript-eslint/no-floating-promises\n    this.handleSelectTemplate(this.templateWorkspaces.firstObject);\n\n    window.addEventListener('resize', this.handleDidInsertPreview);\n  }\n\n  get workspaceId() {\n    return guidFor(this);\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n\n    this.templateWorkspaces.forEach((templateWorkspace) => {\n      if (\n        !templateWorkspace.workspace\n        || templateWorkspace.workspace?.isDestroying\n        || templateWorkspace.workspace?.isDestroyed\n      )\n        return;\n      if (templateWorkspace.workspace?.isNew) {\n        templateWorkspace.workspace.unloadRecord();\n      } else {\n        const component = this.workspaceAutogeneratorService.getEntryPointComponentFromWorkspace(\n          templateWorkspace.workspace,\n        );\n        component.options.recordsContext = null;\n      }\n    });\n    window.removeEventListener('resize', this.handleDidInsertPreview);\n  }\n\n  @action\n  async handleSelectTemplate(templateWorkspace: TemplateWorkspace) {\n    this.selectedTemplateWorkspace = templateWorkspace;\n    const componentToPrefill: WorkspaceComponentModel<\n      WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n    > = this.workspaceAutogeneratorService.getEntryPointComponentFromWorkspace(\n      templateWorkspace.workspace,\n    );\n\n    if (componentToPrefill && !componentToPrefill?.selectedRecord) {\n      componentToPrefill.options.recordsContext = this.businessCollectionService.createRecordState({\n        modelToFetch: componentToPrefill.options.collection,\n        nonEditableFilter: componentToPrefill.options.filter,\n        isKeepingSelectedRecordsOnRefresh: true,\n      });\n      await waitForNextRunLoop();\n      await this.businessCollectionService.fetchRecords.perform(\n        componentToPrefill.options.recordsContext,\n        null,\n        false,\n      );\n      const record = componentToPrefill.options.recordsContext.records?.firstObject;\n      if (record) {\n        componentToPrefill.options.recordsContext.selectedRecords.pushObject(record);\n        componentToPrefill.selectedRecord =\n          await this.clientRecordFeature.fetchRecordAndRequiredBelongsTo(\n            componentToPrefill.belongsToFieldsTreeToFetch,\n            componentToPrefill.options.collection,\n            record,\n          );\n      }\n    }\n  }\n\n  @action\n  handleDidInsertPreview() {\n    const element: HTMLElement = document.querySelector(`#${this.workspaceId}`);\n    if (!element) return;\n\n    const normalWidth = 64 * WORKSPACE_GRID_CELL_WIDTH + 32;\n    const normalHeight = 32 * WORKSPACE_GRID_CELL_HEIGHT + 32;\n    const scale = Math.min(element.offsetWidth / normalWidth, element.offsetHeight / normalHeight);\n    element.style.setProperty('--workspace-grid-scale', `${scale}`);\n  }\n\n  @action\n  handleSkip() {\n    this.isDisplayingSurvey = true;\n    this.segmentTracker.trackAutogeneratedWorkspacesSkipped();\n  }\n\n  @action\n  async handleSubmitSurvey(surveyResponse: string) {\n    this.segmentTracker.trackAutogeneratedWorkspacesSurveyAnswered(surveyResponse);\n    await this.createWorkspaceOrClose();\n  }\n\n  @action\n  handleBackSurvey() {\n    this.isDisplayingSurvey = false;\n  }\n\n  @action\n  async handleSkipSurvey() {\n    this.segmentTracker.trackAutogeneratedWorkspacesSurveySkipped();\n    await this.createWorkspaceOrClose();\n  }\n\n  @action\n  async handleCreateWorkspace() {\n    await this.workspaceManager.createAutogeneratedWorkspace(\n      this.selectedTemplateWorkspace.workspace,\n    );\n  }\n\n  private async createWorkspaceOrClose() {\n    if (this.args.isFirstWorkspace) {\n      await this.workspaceManager.createEmptyWorkspace();\n    } else {\n      this.args.onCloseAutogeneration();\n    }\n  }\n}\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport interface WorkspaceAutogenerationSurveyArgs {\n  onSubmitSurvey: (surveyResponse: string) => Promise<void>;\n  onSkip: () => Promise<void>;\n  onBack: () => Promise<void>;\n}\n\nexport default class WorkspaceAutogenerationSurveyComponent extends Component<WorkspaceAutogenerationSurveyArgs> {\n  @tracked selectedSurveyChoice: string | null = null;\n  @tracked describedPain: string | null = null;\n\n  get surveyChoices() {\n    return [\n      'I already know how workspaces work.',\n      'I want to learn about workspaces by myself.',\n      'The suggested workspaces weren’t very inspiring.',\n      'I prefer to start from a clean slate.',\n    ];\n  }\n\n  get isValidSurvey(): boolean {\n    return (\n      !!this.selectedSurveyChoice && (this.selectedSurveyChoice !== 'other' || !!this.describedPain)\n    );\n  }\n\n  @action\n  handleSelectSurveyChoice(surveyChoice: string) {\n    this.selectedSurveyChoice = surveyChoice;\n  }\n\n  @action\n  handleSubmitSurvey() {\n    return this.args.onSubmitSurvey(\n      this.selectedSurveyChoice === 'other' ? this.describedPain : this.selectedSurveyChoice,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<h2 class=\\\"c-workspace-autogeneration__title\\\" data-test-workspace-autogeneration-survey-title>\\n  Help us improve!\\n</h2>\\n<span\\n  class=\\\"c-workspace-autogeneration__description\\\"\\n  data-test-workspace-autogeneration-survey-description\\n>\\n  Sorry to hear our autogeneration feature didn’t help you. May we ask you why?\\n</span>\\n\\n{{#each this.surveyChoices as |surveyChoice|}}\\n  <span\\n    class=\\\"c-workspace-autogeneration-survey-choice\\\"\\n    role=\\\"button\\\"\\n    data-is-selected={{eq this.selectedSurveyChoice surveyChoice}}\\n    data-test-workspace-autogeneration-survey-choice={{surveyChoice}}\\n    {{on \\'click\\' (fn this.handleSelectSurveyChoice surveyChoice)}}\\n  >\\n    {{surveyChoice}}\\n  </span>\\n{{/each}}\\n<span\\n  class=\\\"c-workspace-autogeneration-survey-choice\\\"\\n  role=\\\"button\\\"\\n  data-is-selected={{eq this.selectedSurveyChoice \\'other\\'}}\\n  data-test-workspace-autogeneration-survey-choice=\\\"other\\\"\\n  {{on \\'click\\' (fn this.handleSelectSurveyChoice \\'other\\')}}\\n>\\n  Other (please describe)\\n</span>\\n\\n{{#if (eq this.selectedSurveyChoice \\'other\\')}}\\n  <Shared::BetaTextarea\\n    @value={{one-way this.describedPain}}\\n    @onChange={{fn (mut this.describedPain)}}\\n    @placeholder=\\\"Please let us know why you skipped and how we can improve...\\\"\\n    class=\\\"c-workspace-autogeneration-survey-describe-choice\\\"\\n    data-test-workspace-autogeneration-survey-choice-explained\\n  />\\n{{/if}}\\n\\n<div class=\\\"c-workspace-autogeneration__buttons\\\">\\n  <Shared::Button::BetaButton\\n    @type=\\\"secondary\\\"\\n    @text=\\\"Back\\\"\\n    @async={{false}}\\n    @size=\\\"normal\\\"\\n    @action={{@onBack}}\\n    data-test-workspace-autogeneration-survey-button-back\\n  />\\n  <Shared::Button::BetaButton\\n    @type=\\\"link-tertiary\\\"\\n    @text=\\\"I don’t want to answer\\\"\\n    @async={{false}}\\n    @size=\\\"normal\\\"\\n    @action={{@onSkip}}\\n    class=\\\"c-workspace-autogeneration-survey-skip-button\\\"\\n    data-test-workspace-autogeneration-survey-button-skip\\n  />\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @text=\\\"Send\\\"\\n    @async={{false}}\\n    @disabled={{not this.isValidSurvey}}\\n    @size=\\\"normal\\\"\\n    @action={{this.handleSubmitSurvey}}\\n    data-test-workspace-autogeneration-survey-button-send\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/workspace/autogeneration/survey/template.hbs' });\n","import type { WorkspaceCompomentAutogeneratedTemplate } from 'client/configuration/workspace-autogenerated-template';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\ninterface WorkspaceAutogenerationTemplatePickerItemArgs {\n  component: WorkspaceCompomentAutogeneratedTemplate;\n  containerWidth: number;\n  containerHeight: number;\n  inTabs?: boolean;\n}\n\nexport default class WorkspaceAutogenerationTemplatePickerItemComponent extends Component<WorkspaceAutogenerationTemplatePickerItemArgs> {\n  @action\n  initPositionAndSize(element: HTMLElement) {\n    const cssVarNamePrefix = '--workspace-autogeneration-template-picker-item';\n    element.style.setProperty(`${cssVarNamePrefix}-x`, `${this.args.component.displaySettings.x}`);\n    element.style.setProperty(`${cssVarNamePrefix}-y`, `${this.args.component.displaySettings.y}`);\n    element.style.setProperty(\n      `${cssVarNamePrefix}-width`,\n      `${this.args.component.displaySettings.width}`,\n    );\n    element.style.setProperty(\n      `${cssVarNamePrefix}-height`,\n      `${this.args.component.displaySettings.height}`,\n    );\n\n    if (this.args.containerHeight && this.args.containerWidth) {\n      element.style.setProperty(\n        `${cssVarNamePrefix}-container-height`,\n        `${this.args.containerHeight - 2}`,\n      );\n      element.style.setProperty(\n        `${cssVarNamePrefix}-container-width`,\n        `${this.args.containerWidth - 2}`,\n      );\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let (eq @component.type \\'section\\') (eq @component.type \\'tabs\\') as |isSection isTabs|}}\\n  <div\\n    class={{get-classes-with-modifiers\\n      \\'c-workspace-autogeneration-template-picker-item\\'\\n      section=isSection\\n      in-tabs=@inTabs\\n    }}\\n    data-test-workspace-autogeneration-template-picker-item={{@component.type}}\\n    data-test-workspace-autogeneration-template-picker-item-linked-to={{@component.linkedTo}}\\n    data-test-workspace-autogeneration-template-picker-item-value={{@component.value}}\\n    ...attributes\\n    {{did-insert this.initPositionAndSize}}\\n  >\\n    {{#unless isSection}}\\n      <span\\n        class={{get-classes-with-modifiers\\n          \\'c-workspace-autogeneration-template-picker-item__type\\'\\n          tabs=isTabs\\n        }}\\n      >\\n        {{@component.type}}\\n      </span>\\n    {{/unless}}\\n\\n    {{#if (or isTabs isSection)}}\\n      <Workspace::Autogeneration::TemplatePicker::Items\\n        @inTabs={{isTabs}}\\n        @components={{or @component.tabs.firstObject.components @component.components}}\\n        @containerWidth={{@component.displaySettings.width}}\\n        @containerHeight={{@component.displaySettings.height}}\\n      />\\n    {{/if}}\\n  </div>\\n{{/let}}\\n', { moduleName: 'client/legacy/pods/components/workspace/autogeneration/template-picker/item/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#each @components as |component|}}\\n  <Workspace::Autogeneration::TemplatePicker::Item\\n    @inTabs={{@inTabs}}\\n    @component={{component}}\\n    @containerHeight={{@containerHeight}}\\n    @containerWidth={{@containerWidth}}\\n  />\\n{{/each}}\\n', { moduleName: 'client/legacy/pods/components/workspace/autogeneration/template-picker/items/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-workspace-autogeneration-template-picker\\\"\\n  data-test-workspace-autogeneration-template-picker\\n  ...attributes\\n>\\n  <Workspace::Autogeneration::TemplatePicker::Items @components={{@template.template.components}} />\\n</div>\\n', { moduleName: 'client/legacy/pods/components/workspace/autogeneration/template-picker/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-workspace-autogeneration\\\" data-test-workspace-autogeneration ...attributes>\\n  <Card class=\\\"c-workspace-autogeneration__card\\\">\\n    {{#if this.isDisplayingSurvey}}\\n      <Workspace::Autogeneration::Survey\\n        @onSubmitSurvey={{this.handleSubmitSurvey}}\\n        @onSkip={{this.handleSkipSurvey}}\\n        @onBack={{this.handleBackSurvey}}\\n      />\\n    {{else}}\\n      <h2 class=\\\"c-workspace-autogeneration__title\\\" data-test-workspace-autogeneration-title>\\n        Pick a workspace that you like\\n      </h2>\\n      {{#if @isFirstWorkspace}}\\n        <span\\n          class=\\\"c-workspace-autogeneration__description\\\"\\n          data-test-workspace-autogeneration-top-description\\n        >\\n          Since this is your first time, we’ve generated a few workspace examples for you: Pick one\\n          that inspires you!\\n        </span>\\n      {{/if}}\\n      <div class=\\\"c-workspace-autogeneration__main\\\">\\n        <div class=\\\"c-workspace-autogeneration__templates\\\">\\n          {{#each this.templateWorkspaces as |templateWorkspace|}}\\n            <div\\n              role=\\\"button\\\"\\n              {{on \\'click\\' (fn this.handleSelectTemplate templateWorkspace)}}\\n              class={{get-classes-with-modifiers\\n                \\'c-workspace-autogeneration__template\\'\\n                selected=(eq templateWorkspace this.selectedTemplateWorkspace)\\n              }}\\n              data-test-workspace-autogeneration-template={{templateWorkspace.template.name}}\\n            >\\n              <Workspace::Autogeneration::TemplatePicker @template={{templateWorkspace.template}} />\\n            </div>\\n          {{/each}}\\n        </div>\\n        <Workspace\\n          @workspace={{this.selectedTemplateWorkspace.workspace}}\\n          @isEditDisabled={{true}}\\n          class=\\\"c-workspace-autogeneration__preview\\\"\\n          data-test-workspace-autogeneration-preview\\n          id={{this.workspaceId}}\\n          {{did-insert this.handleDidInsertPreview}}\\n        />\\n      </div>\\n      <span\\n        class=\\\"c-workspace-autogeneration__description\\\"\\n        data-test-workspace-autogeneration-bottom-description\\n      >\\n        Don’t worry, you can always edit or even delete them later. The idea is to\\n        <span class=\\\"c-workspace-autogeneration__description-important\\\">get you inspired!</span>\\n      </span>\\n      <div class=\\\"c-workspace-autogeneration__buttons\\\">\\n        <Shared::Button::BetaButton\\n          @type=\\\"link-tertiary\\\"\\n          @underline={{true}}\\n          @text=\\\"Skip\\\"\\n          @async={{false}}\\n          @size=\\\"normal\\\"\\n          @action={{this.handleSkip}}\\n          data-test-workspace-autogeneration-button-skip\\n        />\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @underline={{false}}\\n          @text=\\\"Add\\\"\\n          @async={{false}}\\n          @size=\\\"normal\\\"\\n          @action={{this.handleCreateWorkspace}}\\n          data-test-workspace-autogeneration-button-add\\n        />\\n      </div>\\n    {{/if}}\\n  </Card>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/workspace/autogeneration/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-workspace-component-empty-state\\\"\\n  data-test-workspace-component-empty-state\\n  ...attributes\\n>\\n  <Workspace::Panel::ComponentToDrag\\n    @componentType={{@component.type}}\\n    @imagePath={{@component.imagePath}}\\n    @isStatic={{true}}\\n    class=\\\"c-workspace-component-empty-state__image\\\"\\n    data-test-workspace-component-empty-state-image\\n  />\\n  <span\\n    class=\\\"c-workspace-component-empty-state__description\\\"\\n    data-test-workspace-component-empty-state-description\\n  >\\n    {{#if @text}}\\n      {{@text}}\\n    {{else if @component.isConfigured}}\\n      This component will display when a record from its source component is selected.\\n    {{else}}\\n      This component is not configured yet.\\n    {{/if}}\\n  </span>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/workspace/component-empty-state/template.hbs' });\n","import type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type { WorkspaceComponentOptionsRegistry } from 'client/data/models/workspace-component-options';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type WorkspaceFeatureState from 'client/features/workspace/state';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport workspaceComponentConfiguration from 'client/config/workspace-component-configuration';\nimport {\n  WORKSPACE_GRID_CELL_HEIGHT,\n  WORKSPACE_GRID_CELL_WIDTH,\n  WORKSPACE_GRID_MAX_HEIGHT,\n  WORKSPACE_GRID_MAX_WIDTH,\n} from 'client/config/workspace-configuration';\nimport WorkspaceModel from 'client/data/models/workspace';\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { pauseFor } from 'client/utils/ember-promise';\n\ninterface WorkspaceArgs {\n  workspace: WorkspaceModel;\n  isEditDisabled?: boolean;\n  isFullScreen?: boolean;\n  onQueryParametersChange?: (queryParameters: Record<string, unknown>) => void;\n}\n\n@validateArguments\nexport default class WorkspaceComponent extends Component<WorkspaceArgs> {\n  @service private currentUser: CurrentUserService;\n  @service private eventBus: EventBusService;\n  @service('business/workspace-manager') private workspaceManager: WorkspaceManagerService;\n  @service('feature/workspace/state') private workspaceState: WorkspaceFeatureState;\n  @service('feature/workspace') private workspaceFeatureService: WorkspaceFeatureService;\n\n  @argument(WorkspaceModel) workspace: WorkspaceModel;\n  @argument(optional(Boolean)) isEditDisabled: boolean;\n\n  maxWidth = WORKSPACE_GRID_MAX_WIDTH;\n  maxHeight = WORKSPACE_GRID_MAX_HEIGHT;\n  wrapper: HTMLElement | null;\n  paintTimer: number | null;\n  isFirstTimeInTheRightDraggingZone = true;\n  shouldScroll = false;\n\n  private readonly minScale = 0.5;\n  private readonly maxScale = 3;\n  private readonly editModeScale = 0.7;\n  private scaleBeforeEditMode = 1;\n  @tracked scale = 1;\n\n  componentSections = {\n    'Layout & Guidance': {\n      tooltip: 'Components to design your workspace in an intuitive way',\n      components: [\n        workspaceComponentConfiguration.section,\n        workspaceComponentConfiguration.tabs,\n        workspaceComponentConfiguration.text,\n        workspaceComponentConfiguration.link,\n        workspaceComponentConfiguration['horizontal-divider'],\n        workspaceComponentConfiguration['vertical-divider'],\n      ],\n    },\n    Source: {\n      tooltip: 'Components to set the context of your workspace',\n      components: [\n        workspaceComponentConfiguration.search,\n        workspaceComponentConfiguration.collection,\n        workspaceComponentConfiguration.inbox,\n        workspaceComponentConfiguration.dropdown,\n        workspaceComponentConfiguration['date-picker'],\n        workspaceComponentConfiguration.toggle,\n        workspaceComponentConfiguration.input,\n      ],\n    },\n    'Data & Actions': {\n      tooltip: 'Components to interact with your data',\n      components: [\n        workspaceComponentConfiguration.field,\n        workspaceComponentConfiguration.action,\n        workspaceComponentConfiguration.workflow,\n      ],\n    },\n    Analytics: {\n      tooltip: 'Components to visualize your data',\n      components: [workspaceComponentConfiguration.chart, workspaceComponentConfiguration.metabase],\n    },\n    Advanced: {\n      components: [workspaceComponentConfiguration.smart],\n    },\n  };\n\n  constructor(owner: unknown, args: WorkspaceArgs) {\n    super(owner, args);\n\n    this.args.workspace.components.forEach((workspaceComponent) => {\n      workspaceComponent.options ??=\n        {} as WorkspaceComponentOptionsRegistry[typeof workspaceComponent.type];\n    });\n    this.eventBus.on('editModeActivated', this.handleEditModeActivated);\n    this.eventBus.on('editModeDeactivated', this.handleEditModeDeactivated);\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.eventBus.off('editModeActivated', this.handleEditModeActivated);\n    this.eventBus.off('editModeDeactivated', this.handleEditModeDeactivated);\n  }\n\n  get editMode() {\n    return this.currentUser.editMode && !this.args.isEditDisabled;\n  }\n\n  get isDisplayingConfigurationPanel() {\n    return !!this.workspaceManager.getSelectedComponent(this.args.workspace);\n  }\n\n  get requiredWidth() {\n    let requiredWidth = 0;\n    this.args.workspace.rootComponents.forEach(({ displaySettings: { x, width } }) => {\n      requiredWidth = requiredWidth > x + width ? requiredWidth : x + width;\n    });\n    return requiredWidth * WORKSPACE_GRID_CELL_WIDTH;\n  }\n\n  get requiredHeight() {\n    let requiredHeight = 0;\n    this.args.workspace.rootComponents.forEach(({ displaySettings: { y, height } }) => {\n      requiredHeight = requiredHeight > y + height ? requiredHeight : y + height;\n    });\n    return requiredHeight * WORKSPACE_GRID_CELL_HEIGHT;\n  }\n\n  get workspaceWidth() {\n    return this.editMode ? Math.max(this.maxWidth, this.requiredWidth) : this.requiredWidth;\n  }\n\n  get workspaceHeight() {\n    return this.editMode ? Math.max(this.maxHeight, this.requiredHeight) : this.requiredHeight;\n  }\n\n  get numberOfColumns() {\n    return this.workspaceWidth / WORKSPACE_GRID_CELL_WIDTH;\n  }\n\n  get scaleStep() {\n    return this.scale < 1 ? 0.05 : 0.1;\n  }\n\n  @action\n  async handleDidInsert() {\n    // If there are no components yet, do not autozoom\n    if (!this.args.workspace.components.length) return;\n    this.computeScale();\n  }\n\n  @action\n  handleDidUpdate() {\n    this.computeScale();\n  }\n\n  @action\n  handleZoomIn() {\n    this.scale += this.scaleStep;\n    this.updateScaleCssProperty();\n    this.workspaceFeatureService.saveZoomScale(this.args.workspace.id, this.scale);\n  }\n\n  @action\n  handleZoomOut() {\n    this.scale -= this.scaleStep;\n    this.updateScaleCssProperty();\n    this.workspaceFeatureService.saveZoomScale(this.args.workspace.id, this.scale);\n  }\n\n  @action\n  handleZoomReset() {\n    this.scale = 1;\n    this.updateScaleCssProperty();\n    this.workspaceFeatureService.saveZoomScale(this.args.workspace.id, this.scale);\n  }\n\n  ensureScaleLimits() {\n    this.scale = Math.max(this.minScale, Math.min(this.scale, this.maxScale));\n  }\n\n  @action\n  async handleSelectComponent(component: WorkspaceComponentModel, event: Event) {\n    // If the click was on a resize handle, we don't want to change the component selection.\n    if (\n      event?.target instanceof HTMLElement\n      && (event.target.classList?.contains('ui-resizable-handle')\n        || (event.target.lastChild instanceof HTMLElement\n          && event.target.lastChild.classList?.contains('ui-resizable-handle')))\n    ) {\n      return;\n    }\n\n    await this.workspaceManager.setSelectedComponent(component);\n  }\n\n  @action\n  handleDragStop() {\n    this.isFirstTimeInTheRightDraggingZone = true;\n    this.shouldScroll = false;\n  }\n\n  @action\n  handleMouseEnterScrollZone(side: 'left' | 'right' | 'top' | 'bottom') {\n    if (!this.wrapper) {\n      this.wrapper = document.querySelector('.js-workspace-grid-wrapper');\n    }\n\n    const isNewComponent = this.workspaceState.draggedComponent?.classList.contains(\n      'js-workspace-grid-component',\n    );\n    if (!this.workspaceState.isResizingOrDragging) return;\n\n    if (isNewComponent && side === 'right' && this.isFirstTimeInTheRightDraggingZone) {\n      this.isFirstTimeInTheRightDraggingZone = false;\n      return;\n    }\n\n    this.shouldScroll = true;\n    const step = 80;\n    const factor = ['top', 'left'].includes(side) ? -1 : 1;\n    const [x, y] = ['top', 'bottom'].includes(side) ? [0, factor * step] : [factor * step, 0];\n    this.scroll(x, y);\n  }\n\n  @action\n  handleMouseLeaveScrollZone() {\n    this.shouldScroll = false;\n  }\n\n  scroll(stepX: number, stepY: number) {\n    if (!this.shouldScroll) return;\n\n    if (this.paintTimer) {\n      window.cancelAnimationFrame(this.paintTimer);\n    }\n\n    const paintTimer = window.requestAnimationFrame(async () => {\n      if (\n        this.paintTimer !== paintTimer\n        || !this.workspaceState.isResizingOrDragging\n        || !this.shouldScroll\n      )\n        return;\n\n      const targetScrollLeft = this.wrapper.scrollLeft + stepX;\n      const targetScrollTop = this.wrapper.scrollTop + stepY;\n      this.wrapper.scrollBy({\n        left: stepX,\n        top: stepY,\n        behavior: 'smooth',\n      });\n\n      await this.waitForScrollEnd(Date.now(), targetScrollLeft, targetScrollTop);\n      if (this.paintTimer !== paintTimer) return;\n\n      this.paintTimer = null;\n      this.scroll(stepX, stepY);\n    });\n\n    this.paintTimer = paintTimer;\n  }\n\n  async waitForScrollEnd(startingTime: number, targetScrollLeft, targetScrollTop) {\n    // To avoid infinite wait we wait for max 100ms\n    if (startingTime + 100 < Date.now()) return;\n    if (this.wrapper.scrollLeft === targetScrollLeft && this.wrapper.scrollTop === targetScrollTop)\n      return;\n\n    await pauseFor(5);\n    await this.waitForScrollEnd(startingTime, targetScrollLeft, targetScrollTop);\n  }\n\n  updateScaleCssProperty() {\n    this.ensureScaleLimits();\n    document.body.style.setProperty('--workspace-grid-scale', `${this.scale}`);\n  }\n\n  @action\n  private handleEditModeActivated() {\n    this.scaleBeforeEditMode = this.scale;\n    this.scale = Math.min(this.editModeScale, this.scaleBeforeEditMode);\n    this.updateScaleCssProperty();\n  }\n\n  @action\n  private handleEditModeDeactivated() {\n    this.scale = this.scaleBeforeEditMode;\n    this.updateScaleCssProperty();\n  }\n\n  private computeScale() {\n    if (this.editMode) {\n      this.scaleBeforeEditMode = this.workspaceFeatureService.getZoomScale(this.args.workspace.id);\n      this.scale = Math.min(this.editModeScale, this.scaleBeforeEditMode);\n      this.updateScaleCssProperty();\n      return;\n    }\n\n    this.scale = this.workspaceFeatureService.getZoomScale(this.args.workspace.id);\n    this.updateScaleCssProperty();\n  }\n}\n","import type WorkspaceModel from 'client/data/models/workspace';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type WorkspaceTabFragment from 'client/data/models/workspace-tab';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type WorkspaceFeatureState from 'client/features/workspace/state';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type StoreService from 'client/legacy/services/store';\nimport type { DDDragInOpt, GridStack, GridStackNode, GridStackOptions } from 'gridstack';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport {\n  WORKSPACE_GRID_CELL_HEIGHT,\n  WORKSPACE_GRID_CELL_WIDTH,\n} from 'client/config/workspace-configuration';\nimport { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport { UnknownWorkspaceError } from 'client/features/workspace/errors';\n\ninterface WorkspaceGridArgs {\n  width: number;\n  height: number;\n  workspace: WorkspaceModel;\n  container?: WorkspaceTabFragment;\n  components: WorkspaceComponentModel[];\n  onSelectComponent: (\n    component: WorkspaceComponentModel<undefined | WorkspaceComponentTypeEnum> | null,\n    event?: Event,\n  ) => void;\n  onDragStop?: (event?: Event) => void;\n  onDrag?: (event?: Event) => void;\n}\n\nexport default class WorkspaceGridComponent extends Component<WorkspaceGridArgs> {\n  @service declare currentUser: CurrentUserService;\n  @service declare errorHandler: ErrorHandlerService;\n  @service declare lianaSession: LianaSession;\n  @service declare segmentTracker: SegmentTrackerService;\n  @service declare store: StoreService;\n  @service('business/workspace-manager') declare workspaceManager: WorkspaceManagerService;\n  @service('feature/workspace/state') public workspaceState: WorkspaceFeatureState;\n  @service('feature/workspace') public workspaceFeature: WorkspaceFeatureService;\n\n  @tracked wrapper: HTMLElement | null;\n  @tracked components: WorkspaceComponentModel[] = [];\n  @tracked currentWorkspace: WorkspaceModel;\n\n  constructor(owner: unknown, args: WorkspaceGridArgs) {\n    super(owner, args);\n\n    this.currentWorkspace = this.args.workspace;\n  }\n\n  get workspaceGridId() {\n    return guidFor(this);\n  }\n\n  get numberOfColumns() {\n    return this.args.width / WORKSPACE_GRID_CELL_WIDTH;\n  }\n\n  get numberOfRows() {\n    return this.args.height / WORKSPACE_GRID_CELL_HEIGHT;\n  }\n\n  get gridstackOptions(): GridStackOptions & {\n    dragIn?: string;\n    dragInOptions?: DDDragInOpt & {\n      start?: (event: Event) => void;\n      stop?: () => void;\n      dragInElementsSelector: string;\n    };\n  } {\n    const dragInStart = this.currentUser.editMode\n      ? (event: Event) => this.workspaceFeature.startResizingOrDragging(event)\n      : null;\n    const dragInStop = this.currentUser.editMode ? () => this.handleDragStop() : null;\n    return {\n      acceptWidgets: this.args.container\n        ? (element: Element) =>\n            !element.hasAttribute('data-is-container')\n            && element.classList.contains('js-workspace-grid-component')\n        : '.js-workspace-grid-component',\n      alwaysShowResizeHandle: false,\n      animate: true,\n      cellHeight: WORKSPACE_GRID_CELL_HEIGHT,\n      column: this.numberOfColumns,\n      minRow: this.numberOfRows,\n      maxRow: this.numberOfRows,\n      disableOneColumnMode: true,\n      // The 2 following properties are deprecated ! It should be replaced by the public API\n      dragIn: this.currentUser.editMode ? '.js-workspace-grid-component' : null,\n      dragInOptions: {\n        dragInElementsSelector: '.js-workspace-grid-panel .js-workspace-grid-component',\n        appendTo: '.grid-stack',\n        helper: 'clone',\n        handle: '.js-workspace-grid-component',\n        start: dragInStart,\n        stop: dragInStop,\n      },\n      draggable: { handle: '.grid-stack-item', scroll: false },\n      float: true,\n      handle: '.grid-stack-item',\n      margin: 0,\n      resizable: { autoHide: true, handles: 'n,ne,e,se,s,sw,w,nw' },\n    };\n  }\n\n  get selectedComponent(): WorkspaceComponentModel | null {\n    return this.workspaceManager.getSelectedComponent(this.args.workspace);\n  }\n\n  get isDragDisabled() {\n    return (\n      this.selectedComponent?.hasDirtyAttributes\n      || this.args.workspace.components.any((component) => component.isImpacted)\n    );\n  }\n\n  @action\n  async handleDidInsert() {\n    await this.fixCollision();\n    this.components = this.args.components.toArray\n      ? this.args.components.toArray()\n      : [...this.args.components];\n  }\n\n  @action\n  async handleComponentsUpdate() {\n    if (this.isDestroyed || this.isDestroying) return;\n    // Do not modify the grid if the components did not change\n    if (\n      this.components.length === this.args.components.length\n      && this.components.every((component) => this.args.components.includes(component))\n    )\n      return;\n\n    const gridStackElement = document.querySelector(`#${this.workspaceGridId} .grid-stack`);\n\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    const grid = gridStackElement?.gridstack as GridStack;\n\n    let shouldResetWrapperPosition = false;\n    // To prevent any strange behavior, we need to clean up the gridstack items before adding the new ones.\n    if (this.args.workspace !== this.currentWorkspace) {\n      shouldResetWrapperPosition = true;\n      grid?.removeAll(true);\n      this.currentWorkspace = this.args.workspace;\n    } else {\n      const componentsToRemove = this.components.filter(\n        (component) => !this.args.components.includes(component),\n      );\n      componentsToRemove.forEach((component) => {\n        const element = document.getElementById(component.id);\n        if (element) {\n          grid?.removeWidget(element, true);\n        }\n      });\n    }\n\n    await this.fixCollision();\n\n    this.components = this.args.components.toArray\n      ? this.args.components.toArray()\n      : [...this.args.components];\n\n    try {\n      grid?.column(this.numberOfColumns, 'none');\n    } catch (error) {\n      this.errorHandler.handleSilentError(\n        new UnknownWorkspaceError(\n          this.args.workspace,\n          error as Error,\n          'Error while settings grid column',\n        ),\n      );\n    }\n    this.setWorkspaceSize();\n\n    if (shouldResetWrapperPosition) {\n      this.resetWrapperScrollPosition();\n    }\n  }\n\n  @action\n  setWorkspaceSize() {\n    const workspaceGridElement: HTMLElement = document.getElementById(this.workspaceGridId);\n    if (!workspaceGridElement) return;\n\n    workspaceGridElement.style.setProperty(\n      '--workspace-grid-cell-width',\n      `${WORKSPACE_GRID_CELL_WIDTH}px`,\n    );\n    workspaceGridElement.style.setProperty('--workspace-grid-width', `${this.args.width}px`);\n    workspaceGridElement.style.setProperty('--workspace-grid-height', `${this.args.height}px`);\n  }\n\n  @action\n  handleDragStop() {\n    this.workspaceFeature.stopResizingOrDragging();\n\n    this.args.onDragStop?.();\n  }\n\n  @action\n  async handleDropped(_, previousWidget: GridStackNode | null, newWidget: GridStackNode) {\n    const { grid, el, h: height, w: width, x, y } = newWidget;\n    grid.removeWidget(el, true, false);\n\n    if (previousWidget) {\n      await this.moveWorkspaceComponentFromContainer(newWidget);\n      return;\n    }\n\n    const type = el.attributes.getNamedItem('data-workspace-type')\n      .value as WorkspaceComponentTypeEnum;\n    const options =\n      type === WorkspaceComponentTypeEnum.Divider\n        ? { direction: el.attributes.getNamedItem('data-workspace-variant').value }\n        : {};\n    const newComponentNumber = this.workspaceManager.getNumberOfComponentsFromType(\n      this.args.workspace.components,\n      type,\n    );\n    const newComponent: WorkspaceComponentModel<typeof type> = this.store.createRecord(\n      'workspace-component',\n      {\n        name: `${type}${newComponentNumber}`,\n        type,\n        displaySettings: { x, y, width, height },\n        workspace: this.args.workspace,\n        options,\n      },\n    );\n\n    const componentsToSave = [newComponent];\n    if (this.args.container) {\n      this.args.container.componentIds.pushObject(newComponent.id);\n      componentsToSave.push(this.args.container.workspaceComponent);\n    }\n\n    this.components.pushObject(newComponent);\n\n    try {\n      await this.store.layoutBatchUpdate('workspace-component', componentsToSave);\n      this.args.onSelectComponent(newComponent);\n\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n      this.segmentTracker.trackWorkspaceComponentAdded(\n        this.lianaSession.currentProject.id,\n        this.args.workspace.id,\n        newComponent.type,\n      );\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Could not save the component');\n    }\n  }\n\n  @action\n  async handleChange(_, components: GridStackNode[]) {\n    if (!components) return;\n\n    const changedComponents = components\n      .map(({ id, x, y, w, h }) => {\n        const displaySettings = { x, y, width: w, height: h };\n        const component: WorkspaceComponentModel = this.store.peekRecord('workspace-component', id);\n        if (!component || component.displaySettings.isEqualProps(displaySettings)) {\n          return null;\n        }\n        component.displaySettings.setProperties(displaySettings);\n        return component;\n      })\n      .filter(Boolean);\n\n    if (changedComponents.length === 0) {\n      return;\n    }\n\n    try {\n      await this.store.layoutBatchUpdate('workspace-component', changedComponents, [\n        'displaySettings',\n      ]);\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Workspace components update failed');\n    }\n  }\n\n  async moveWorkspaceComponentFromContainer(widget: GridStackNode) {\n    const component = this.store.peekRecord('workspace-component', widget.id);\n\n    const componentsToUpdate: WorkspaceComponentModel[] = [component];\n    component.displaySettings.setProperties({\n      x: widget.x,\n      y: widget.y,\n      width: widget.w,\n      height: widget.h,\n    });\n\n    if (component.container) {\n      componentsToUpdate.push(component.container.workspaceComponent);\n      component.container.componentIds.removeObject(component.id);\n    }\n\n    if (this.args.container) {\n      componentsToUpdate.push(this.args.container.workspaceComponent);\n      this.args.container.componentIds.pushObject(component.id);\n    }\n\n    this.components.pushObject(component);\n\n    await this.store.layoutBatchUpdate('workspace-component', componentsToUpdate);\n  }\n\n  resetWrapperScrollPosition() {\n    if (!this.wrapper) {\n      this.wrapper = document.querySelector('.js-workspace-grid-wrapper');\n      if (!this.wrapper) return;\n    }\n    this.wrapper.scrollTop = 0;\n    this.wrapper.scrollLeft = 0;\n  }\n\n  async fixCollision() {\n    const container = this.args.container || this.args.workspace;\n    if (container.isCollisionFixed) return;\n\n    container.isCollisionFixed = true;\n    await this.workspaceManager.fixComponentsCollision(this.args.components);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  id={{this.workspaceGridId}}\\n  class=\\\"c-workspace-grid\\n    {{if (is-layout-editor) \\'c-workspace-grid--build-mode\\'}}\\n    js-workspace-grid\\\"\\n  data-test-workspace-grid\\n  {{did-insert this.handleDidInsert}}\\n  ...attributes\\n>\\n  <GridStack::Layout\\n    @options={{this.gridstackOptions}}\\n    @onDropped={{this.handleDropped}}\\n    @onChange={{this.handleChange}}\\n    @onDrag={{@onDrag}}\\n    @onDragStart={{this.workspaceFeature.startResizingOrDragging}}\\n    @onDragStop={{this.handleDragStop}}\\n    @onResizeStart={{this.workspaceFeature.startResizingOrDragging}}\\n    @onResizeStop={{this.workspaceFeature.stopResizingOrDragging}}\\n    @onRemoved={{this.handleDragStop}}\\n    @isStatic={{not (is-layout-editor)}}\\n    class=\\\"c-workspace-grid__canvas\\\"\\n    data-test-workspace-grid-canvas\\n    {{did-insert this.setWorkspaceSize}}\\n    {{did-update this.handleComponentsUpdate @components}}\\n    {{did-update this.setWorkspaceSize @width @height}}\\n  >\\n    {{#each this.components as |component|}}\\n      {{#if (or (is-layout-editor) component.shouldDisplay)}}\\n        <GridStack::Item\\n          @id={{component.id}}\\n          @options={{hash\\n            locked=true\\n            x=component.displaySettings.x\\n            y=component.displaySettings.y\\n            w=component.displaySettings.width\\n            h=component.displaySettings.height\\n            minH=component.minHeight\\n            maxH=component.maxHeight\\n            minW=component.minWidth\\n            maxW=component.maxWidth\\n            resizeHandles=component.resizeHandles\\n            noMove=this.isDragDisabled\\n          }}\\n          class=\\\"js-workspace-grid-component c-workspace-grid__item\\n            {{if (is-layout-editor) \\'c-workspace-grid__item--build-mode\\'}}\\\"\\n          data-is-impacted={{component.isImpacted}}\\n          data-is-hovered-in-confirmation-panel={{component.isHoveredInConfirmationPanel}}\\n          data-is-container={{component.isContainer}}\\n          data-resizing-or-dragging={{this.workspaceState.isResizingOrDragging}}\\n          data-selected={{eq component this.selectedComponent}}\\n          data-component-name={{component.editedName}}\\n          data-test-workspace-grid-item={{component.id}}\\n          {{on\\n            \\'click\\'\\n            (if\\n              (is-layout-editor)\\n              (stop-propagation (fn (optional @onSelectComponent) component))\\n              (do-nothing-function)\\n            )\\n          }}\\n          as |isGridStackItemLoaded|\\n        >\\n          <Feature::Workspace::ComponentRenderer\\n            @component={{component}}\\n            @isBuilder={{(is-layout-editor)}}\\n            @isGridStackItemLoaded={{isGridStackItemLoaded}}\\n            @onSelectComponent={{@onSelectComponent}}\\n            @onDrag={{@onDrag}}\\n            @onDragStop={{@onDragStop}}\\n            @onQueryParametersChange={{@onQueryParametersChange}}\\n            class=\\\"c-workspace-grid__component-renderer\\\"\\n            data-test-workspace-grid-rendered-item={{component.id}}\\n          />\\n        </GridStack::Item>\\n      {{/if}}\\n    {{/each}}\\n  </GridStack::Layout>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/workspace/grid/template.hbs' });\n","import { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class WorkspacePanelComponentToDragComponent extends Component {\n  @service assetMap;\n  @service('shared/state/user-preference') userPreferenceState;\n\n  @argument(String) componentType;\n  @argument(String) imagePath;\n  @argument(optional(String)) label;\n\n  get srcImage() {\n    return this.assetMap.resolve(\n      `/img/workspace/${this.args.imagePath}-${this.userPreferenceState.theme}.svg`,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-workspace-panel-component-to-drag js-workspace-grid-component\\n    {{if @isStatic \\'c-workspace-panel-component-to-drag--static\\'}}\\\"\\n  data-test-feature-workspace-component-configuration-to-drag={{or @label @componentType}}\\n  ...attributes\\n>\\n  <img\\n    src={{this.srcImage}}\\n    alt={{or @label @componentType}}\\n    class=\\\"c-workspace-panel-component-to-drag__image\\\"\\n    draggable=\\\"false\\\"\\n    data-test-feature-workspace-component-configuration-to-drag-image\\n  />\\n  <span\\n    class=\\\"c-workspace-panel-component-to-drag__text\\\"\\n    data-test-feature-workspace-component-configuration-to-drag-text\\n  >\\n    {{or @label @componentType}}\\n  </span>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/workspace/panel/component-to-drag/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport WorkspaceComponentModel, {\n  WorkspaceComponentTypeEnum,\n  isWorkspaceComponentType,\n} from 'client/data/models/workspace-component';\nimport WorkspaceTabFragment from 'client/data/models/workspace-tab';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface WorkspacePanelImpactedComponentsConfirmationArgs {\n  workspaceComponent: WorkspaceComponentModel;\n  container?: WorkspaceTabFragment;\n  isDelete: boolean;\n  onCancel: () => void;\n  onConfirm: () => void;\n}\n\n@validateArguments\nexport default class WorkspacePanelImpactedComponentsConfirmationComponent extends Component<WorkspacePanelImpactedComponentsConfirmationArgs> {\n  static propTypes = {\n    workspaceComponent: PropTypes.instanceOf(WorkspaceComponentModel).isRequired,\n    container: PropTypes.instanceOf(WorkspaceTabFragment),\n    isDelete: PropTypes.bool,\n    onCancel: PropTypes.func.isRequired,\n    onConfirm: PropTypes.func.isRequired,\n  };\n\n  get appliedOn() {\n    if (this.args.container) {\n      return this.args.container.components.flatMap((component) => component.appliedOn);\n    }\n\n    return isWorkspaceComponentType(this.args.workspaceComponent, WorkspaceComponentTypeEnum.Tabs)\n      ? [\n          ...this.args.workspaceComponent.appliedOn,\n          ...this.args.workspaceComponent.options.components.flatMap(\n            (component) => component.appliedOn,\n          ),\n        ]\n      : [...this.args.workspaceComponent.appliedOn];\n  }\n\n  get componentsInsideContainer() {\n    if (this.args.container) {\n      return this.args.container.components;\n    }\n    return this.args.workspaceComponent.isContainer\n      && 'components' in this.args.workspaceComponent.options\n      ? this.args.workspaceComponent.options.components\n      : [];\n  }\n\n  get containerName() {\n    if (this.args.container && this.args.container instanceof WorkspaceTabFragment) {\n      return 'tab';\n    }\n    return this.args.workspaceComponent.type === WorkspaceComponentTypeEnum.Tabs\n      ? 'Tabs component'\n      : 'component';\n  }\n\n  @action\n  setIsImpacted(isImpacted = true) {\n    [...this.appliedOn, ...this.componentsInsideContainer].forEach((impactedComponent) => {\n      impactedComponent.isImpacted = isImpacted;\n      impactedComponent.isHoveredInConfirmationPanel = false;\n    });\n  }\n\n  @action\n  handleConfirm() {\n    this.setIsImpacted(false);\n    this.args.onConfirm();\n  }\n\n  @action\n  handleCancel() {\n    this.setIsImpacted(false);\n    this.args.onCancel();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-workspace-panel-impacted-components-confirmation\\\"\\n  data-test-workspace-panel-impacted-components-confirmation\\n  {{did-insert (fn this.setIsImpacted true)}}\\n  {{will-destroy (fn this.setIsImpacted false)}}\\n  ...attributes\\n>\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"warning\\\"\\n    @canHide={{false}}\\n    @message=\\\"This component is used by other components\\\"\\n    data-test-workspace-panel-impacted-components-confirmation-notification\\n  />\\n\\n  {{#if this.componentsInsideContainer}}\\n    <span\\n      class=\\\"c-workspace-panel-impacted-components-confirmation__description\\\"\\n      data-test-workspace-panel-impacted-components-confirmation-delete-by-tabs-description\\n    >\\n      Deleting this\\n      {{this.containerName}}\\n      will delete the following components:\\n    </span>\\n    <ul class=\\\"c-workspace-panel-impacted-components-confirmation__components\\\">\\n      {{#each this.componentsInsideContainer as |workspaceComponentImpacted|}}\\n        <li\\n          class=\\\"c-workspace-panel-impacted-components-confirmation__component\\\"\\n          role=\\\"tooltip\\\"\\n          data-test-workspace-panel-impacted-components-confirmation-component-delete-by-container={{workspaceComponentImpacted.name}}\\n          {{on \\'mousemove\\' (fn (mut workspaceComponentImpacted.isHoveredInConfirmationPanel) true)}}\\n          {{on\\n            \\'mouseleave\\'\\n            (fn (mut workspaceComponentImpacted.isHoveredInConfirmationPanel) false)\\n          }}\\n        >\\n          {{workspaceComponentImpacted.name}}\\n        </li>\\n      {{/each}}\\n    </ul>\\n  {{/if}}\\n\\n  {{#if this.appliedOn}}\\n    <span\\n      class=\\\"c-workspace-panel-impacted-components-confirmation__description\\\"\\n      data-test-workspace-panel-impacted-components-confirmation-description\\n    >\\n      {{if @isDelete \\'Deleting\\' \\'Editing\\'}}\\n      {{if this.componentsInsideContainer \\'the previous components\\' \\'this component\\'}}\\n      will impact the following components:\\n    </span>\\n    <ul class=\\\"c-workspace-panel-impacted-components-confirmation__components\\\">\\n      {{#each this.appliedOn as |workspaceComponentImpacted|}}\\n        <li\\n          class=\\\"c-workspace-panel-impacted-components-confirmation__component\\\"\\n          role=\\\"tooltip\\\"\\n          data-test-workspace-panel-impacted-components-confirmation-component-impacted={{workspaceComponentImpacted.name}}\\n          {{on \\'mousemove\\' (fn (mut workspaceComponentImpacted.isHoveredInConfirmationPanel) true)}}\\n          {{on\\n            \\'mouseleave\\'\\n            (fn (mut workspaceComponentImpacted.isHoveredInConfirmationPanel) false)\\n          }}\\n        >\\n          {{workspaceComponentImpacted.name}}\\n        </li>\\n      {{/each}}\\n    </ul>\\n  {{/if}}\\n\\n  <span class=\\\"c-workspace-panel-impacted-components-confirmation__confirmation-label\\\">\\n    {{if @isDelete \\'Are you sure you want to delete it?\\' \\'Are you sure you want to continue?\\'}}\\n  </span>\\n  <div class=\\\"l-workspace-panel-impacted-components-confirmation-buttons\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @text=\\\"Cancel\\\"\\n      @async={{false}}\\n      @action={{this.handleCancel}}\\n      data-test-workspace-panel-impacted-components-confirmation-cancel\\n    />\\n    <Shared::Button::BetaButton\\n      @type={{if @isDelete \\'danger\\' \\'primary\\'}}\\n      @text={{if @isDelete \\'Delete\\' \\'Continue\\'}}\\n      @async={{true}}\\n      @action={{this.handleConfirm}}\\n      @withoutCallback={{true}}\\n      data-test-workspace-panel-impacted-components-confirmation-continue\\n    />\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/components/workspace/panel/impacted-components-confirmation/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel\\n  @title={{@title}}\\n  @extraActions={{@extraActions}}\\n  @close={{@close}}\\n  @isCustomPositioning={{true}}\\n  class=\\\"c-workspace-panel\\\"\\n  data-test-workspace-panel\\n  ...attributes\\n>\\n  <:title>\\n    {{yield to=\\'title\\'}}\\n  </:title>\\n  <:default>\\n    {{yield}}\\n  </:default>\\n</Shared::BetaRightPanel>\\n', { moduleName: 'client/legacy/pods/components/workspace/panel/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"workspace-header-right-buttons\\\" @isOptional={{true}}>\\n  <Shared::ToggableIcon\\n    @icon=\\\"/img/icons/zoom-in.svg\\\"\\n    @alt=\\\"zoom-in\\\"\\n    disabled={{gte this.scale this.maxScale}}\\n    {{on \\'click\\' this.handleZoomIn}}\\n    data-test-workspace-view-zoom-in\\n  />\\n  <Shared::ToggableIcon\\n    @icon=\\\"/img/icons/zoom-out.svg\\\"\\n    @alt=\\\"zoom-out\\\"\\n    disabled={{lte this.scale this.minScale}}\\n    {{on \\'click\\' this.handleZoomOut}}\\n    data-test-workspace-view-zoom-out\\n  />\\n  <Shared::ToggableIcon\\n    @icon=\\\"/img/icons/zoom-auto.svg\\\"\\n    @alt=\\\"zoom-auto\\\"\\n    disabled={{eq this.scale 1}}\\n    {{on \\'click\\' this.handleZoomReset}}\\n    data-test-workspace-view-zoom-reset\\n  />\\n</Shared::PortalContent>\\n\\n<div\\n  class={{get-classes-with-modifiers \\'c-workspace\\' full-screen=@isFullScreen}}\\n  {{did-insert this.handleDidInsert}}\\n  {{did-update this.handleDidUpdate @workspace.id}}\\n  data-test-feature-workspace\\n  ...attributes\\n>\\n  <div class=\\\"c-workspace__canvas-wrapper js-workspace-grid-wrapper\\\">\\n    {{#if this.editMode}}\\n      <div\\n        class=\\\"c-workspace__canvas-scroller c-workspace__canvas-scroller--left\\\"\\n        {{on \\'mouseenter\\' (fn this.handleMouseEnterScrollZone \\'left\\')}}\\n        {{on \\'mouseleave\\' this.handleMouseLeaveScrollZone}}\\n        data-test-workspace-scroller-zone=\\\"left\\\"\\n      ></div>\\n      <div\\n        class=\\\"c-workspace__canvas-scroller c-workspace__canvas-scroller--right\\\"\\n        {{on \\'mouseenter\\' (fn this.handleMouseEnterScrollZone \\'right\\')}}\\n        {{on \\'mouseleave\\' this.handleMouseLeaveScrollZone}}\\n        data-test-workspace-scroller-zone=\\\"right\\\"\\n      ></div>\\n      <div\\n        class=\\\"c-workspace__canvas-scroller c-workspace__canvas-scroller--top\\\"\\n        {{on \\'mouseenter\\' (fn this.handleMouseEnterScrollZone \\'top\\')}}\\n        {{on \\'mouseleave\\' this.handleMouseLeaveScrollZone}}\\n        data-test-workspace-scroller-zone=\\\"top\\\"\\n      ></div>\\n      <div\\n        class=\\\"c-workspace__canvas-scroller c-workspace__canvas-scroller--bottom\\\"\\n        {{on \\'mouseenter\\' (fn this.handleMouseEnterScrollZone \\'bottom\\')}}\\n        {{on \\'mouseleave\\' this.handleMouseLeaveScrollZone}}\\n        data-test-workspace-scroller-zone=\\\"bottom\\\"\\n      ></div>\\n    {{/if}}\\n    <Workspace::Grid\\n      @workspace={{@workspace}}\\n      @components={{@workspace.rootComponents}}\\n      @onDragStop={{this.handleDragStop}}\\n      @onSelectComponent={{this.handleSelectComponent}}\\n      @onQueryParametersChange={{@onQueryParametersChange}}\\n      @width={{this.workspaceWidth}}\\n      @height={{this.workspaceHeight}}\\n      class=\\\"c-workspace__grid\\\"\\n    />\\n  </div>\\n  {{#if this.editMode}}\\n    <Workspace::Panel\\n      @title=\\\"Add a component\\\"\\n      class=\\\"js-workspace-grid-panel c-workspace__panel\\n        {{if this.isDisplayingConfigurationPanel \\'c-workspace__panel--hidden\\'}}\\\"\\n      data-test-workspace-grid-panel\\n    >\\n      {{! This panel is not rendered conditionally as it is completely static and as gridstack needs\\n      it to allow dragging in components. Otherwise, once you add a component, you can\\'t add another one }}\\n      {{#each-in this.componentSections as |section content|}}\\n        <Shared::BetaRightPanel::Section\\n          @title={{section}}\\n          @isSectionFoldable={{true}}\\n          @isFoldedByDefault={{false}}\\n        >\\n          <:after-title>\\n            {{#if content.tooltip}}\\n              <Shared::Feedback::BetaInfoTooltip @tooltipSide=\\\"top\\\">\\n                {{content.tooltip}}\\n              </Shared::Feedback::BetaInfoTooltip>\\n            {{/if}}\\n          </:after-title>\\n          <:default>\\n            <div class=\\\"c-workspace__panel-components grid-stack-items\\\">\\n              {{#each content.components as |component|}}\\n                <Workspace::Panel::ComponentToDrag\\n                  @componentType={{component.type}}\\n                  @imagePath={{component.imagePath}}\\n                  @label={{component.label}}\\n                  draggable=\\\"true\\\"\\n                  gs-w={{or component.defaultWidth 1}}\\n                  gs-h={{or component.defaultHeight 1}}\\n                  gs-locked=\\\"true\\\"\\n                  data-workspace-type={{component.type}}\\n                  data-workspace-variant={{component.variant}}\\n                  data-is-container={{component.isContainer}}\\n                />\\n              {{/each}}\\n            </div>\\n          </:default>\\n        </Shared::BetaRightPanel::Section>\\n      {{/each-in}}\\n    </Workspace::Panel>\\n    {{yield}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/components/workspace/template.hbs' });\n","import Component from '@ember/component';\nimport { next } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport { MissingRequiredPropertyError, WrongPropertyValueError } from 'client/utils/errors';\nimport { KEY, isKey } from 'client/utils/keyboard';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class XDropdownComponent extends Component {\n  propTypes = {\n    onClickAction: PropTypes.func.isRequired,\n    onLeaveAction: PropTypes.func.isRequired,\n    buttonSize: PropTypes.string,\n  };\n\n  @service eventBus;\n\n  init(...args) {\n    super.init(...args);\n\n    if (!this.onClickAction) {\n      throw new MissingRequiredPropertyError('onClickAction');\n    }\n\n    if (typeof this.onClickAction !== 'function') {\n      throw new WrongPropertyValueError('onClickAction', this.onClickAction);\n    }\n\n    if (!this.onLeaveAction) {\n      throw new MissingRequiredPropertyError('onLeaveAction');\n    }\n\n    if (typeof this.onLeaveAction !== 'function') {\n      throw new WrongPropertyValueError('onLeaveAction', this.onLeaveAction);\n    }\n\n    this.boundOnKeyUp = this.onKeyUp.bind(this);\n  }\n\n  didInsertElement(...args) {\n    super.didInsertElement(...args);\n    next(this, 'attachClickHandler');\n    next(this, 'attachEscapeHandler');\n  }\n\n  attachClickHandler() {\n    window.addEventListener('click', this.onLeaveAction);\n  }\n\n  /**\n   * @param {KeyboardEvent} event\n   */\n  onKeyUp(event) {\n    if (isKey(KEY.ESCAPE, event)) {\n      this.onLeaveAction();\n    }\n  }\n\n  attachEscapeHandler() {\n    window.addEventListener('keyup', this.boundOnKeyUp);\n  }\n\n  click(event) {\n    event.stopPropagation();\n\n    this.eventBus.trigger('inputClick', event);\n    this.onClickAction();\n  }\n\n  willDestroyElement(...args) {\n    super.willDestroyElement(...args);\n    window.removeEventListener('click', this.onLeaveAction);\n    window.removeEventListener('keyup', this.boundOnKeyUp);\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { ERROR_UNEXPECTED_LAYOUT } from 'client/config/errors';\nimport ForbiddenLoginResourceAccessError from 'client/data/adapters/errors/forbidden-login-resource-access-error';\nimport UnauthorizedIpAddressError from 'client/data/adapters/errors/unauthorized-ip-address-error';\nimport RedirectionLoop from 'client/utils/errors/redirection-error';\n\nexport default class ErrorRoute extends Route {\n  @service errorHandler;\n\n  setupController(controller, error) {\n    if (error instanceof UnauthorizedIpAddressError) {\n      this.errorHandler.handleSilentError(error);\n      controller.set('isUnauthorizedIp', true);\n      controller.set('error', error);\n      controller.set('projectId', error.projectId);\n      controller.set('environmentId', error.environmentId);\n    } else if (\n      error instanceof ForbiddenLoginResourceAccessError\n      || error instanceof RedirectionLoop\n    ) {\n      this.errorHandler.handleSilentError(error);\n      controller.set('error', error);\n    } else {\n      const unknownLayoutError = this.errorHandler.makeUnknownLayoutError(error);\n      this.errorHandler.handleSilentError(unknownLayoutError, {\n        type: ERROR_UNEXPECTED_LAYOUT,\n      });\n      controller.set('error', { type: ERROR_UNEXPECTED_LAYOUT });\n    }\n\n    super.setupController(controller, error);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isUnauthorizedIp}}\\n  <Feedback::AccessDenied @projectId={{this.projectId}} @environmentId={{this.environmentId}} />\\n{{else}}\\n  <Layout::LayoutError @error={{this.error}} />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/error/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class GoogleAuthRedirectRoute extends Route {\n  /** @type {import('client/legacy/services/google-authorization').default} */\n  @service googleAuthorization;\n  @service googleAuthenticationService;\n\n  async beforeModel() {\n    const params = await this.googleAuthorization.sendGoogleTokenToIframeOrReturnIt();\n    if (params) {\n      if (params.eventName === 'google-signed-in') {\n        await this.googleAuthenticationService.signIn({ token: params.token, callback: () => {} });\n      } else {\n        await this.googleAuthenticationService.signUp({ token: params.token, callback: () => {} });\n      }\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{outlet}}\\n', { moduleName: 'client/legacy/pods/google-auth-redirect/template.hbs' });\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class GoogleAuthenticationRoute extends Route {\n  /** @type {import('client/legacy/services/google-authorization')} */\n  @service googleAuthorization;\n\n  @action\n  loginWithGoogle() {\n    return this.googleAuthorization.login();\n  }\n\n  @action\n  signInWithGoogle() {\n    return this.googleAuthorization.signUp();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Authentication::IframeMessageReceiver\\n  @googleLoginAction={{route-action \\'loginWithGoogle\\'}}\\n  @googleSignUpAction={{route-action \\'signInWithGoogle\\'}}\\n/>\\n', { moduleName: 'client/legacy/pods/google-authentication/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class IndexRoute extends Route {\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  /** @type {import('client/legacy/services/forest-session').default} */\n  @service session;\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n\n  async beforeModel(transition, ...args) {\n    super.beforeModel(...args);\n    if (!this.session.isAuthenticated) {\n      return this.router.transitionTo('authentication.login');\n    }\n    return this.currentOrganization.transitionPostLoginToLastVisitedOrganizationProjects();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('', { moduleName: 'client/legacy/pods/index/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type CurrentUserService from 'client/legacy/services/current-user';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class InvitationRoute extends Route {\n  @service router: RouterService;\n  @service currentUser: CurrentUserService;\n\n  async model(params: { secret: string }) {\n    if (this.currentUser.model) {\n      await this.router.transitionTo('authentication.invitation', {\n        queryParams: { invitation: params.secret },\n      });\n    } else {\n      await this.router.transitionTo('authentication.signup', {\n        queryParams: { invitation: params.secret },\n      });\n    }\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { detectLiveDemoUrl } from 'client/utils/livedemo';\n\nexport default class LivedemoRoute extends Route {\n  @service session;\n  @service router;\n\n  async beforeModel(params) {\n    if (!this.session.isAuthenticated) {\n      await this.session.authenticate('authenticator:jwt-livedemo');\n    }\n\n    const renderingUrl = detectLiveDemoUrl(params.to.params.livedemo_name);\n\n    if (renderingUrl) {\n      this.router.transitionTo(renderingUrl);\n    } else {\n      this.session.invalidate({ saveCurrentUrlForLogin: false });\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Layout::LayoutLoader @type=\\\"project\\\" />\\n', { moduleName: 'client/legacy/pods/loading/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class LoginRoute extends Route {\n  @service router: RouterService;\n\n  async beforeModel() {\n    await this.router.transitionTo('authentication.login.sso');\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class LoginRoute extends Route {\n  @service router: RouterService;\n\n  queryParams = {\n    invitation: {},\n  };\n\n  async model({ invitation }: { invitation: string }) {\n    await this.router.transitionTo('authentication.login', { queryParams: { invitation } });\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type CurrentOrganizationService from 'client/legacy/services/current-organization';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class NewProjectRoute extends Route {\n  @service router: RouterService;\n  @service currentOrganization: CurrentOrganizationService;\n\n  async beforeModel() {\n    await this.router.transitionTo('projects.create', 'introduction', 1);\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class OidcConfirmSuccessRoute extends Route {\n  @service session;\n\n  beforeModel(transition, ...args) {\n    this.session.requireAuthentication(transition, 'authentication.login');\n    return super.beforeModel(transition, ...args);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::BetaGlobalNavigationBar @settingsTitle=\\\"OpenID Connect CLI tool\\\" />\\n\\n<div class=\\\"device-confirm-success\\\">\\n  <i class=\\\"device-confirm-success__icon\\\">\\n    check_circle\\n  </i>\\n  <p class=\\\"device-confirm-success__message\\\">\\n    You are now logged in to the CLI tool.\\n  </p>\\n  <p class=\\\"device-confirm-success__message\\\">\\n    You can close this window.\\n  </p>\\n</div>\\n', { moduleName: 'client/legacy/pods/oidc/confirm-success/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nexport default class OidcConfirmController extends Controller {\n  queryParams = ['user_code'];\n\n  /** @private @readonly @type {import('../../../services/oidc/device-flow').default} */\n  @service('oidc/deviceFlow') oidcDeviceFlow;\n  @service router;\n\n  @action\n  async confirm(userCode) {\n    await this.oidcDeviceFlow.confirm(userCode);\n    this.router.transitionTo('oidc.confirm-success');\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class OidcConfirmRoute extends Route {\n  @service serverFetch;\n  @service session;\n\n  async beforeModel(transition) {\n    if (this.session.isAuthenticated) {\n      const response = await this.serverFetch.fetch('/api/sessions/mine', { method: 'GET' });\n      if (response.status === 204) return super.beforeModel(transition);\n      await this.session.invalidate();\n    }\n\n    this.session.requireAuthentication(transition, 'authentication.login');\n    return super.beforeModel(transition);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::BetaGlobalNavigationBar @settingsTitle=\\\"OpenID Connect CLI tool\\\" />\\n\\n<div class=\\\"c-device-confirm__container\\\">\\n  <Authentication::Oidc::DeviceConfirmForm\\n    @initialUserCode={{this.user_code}}\\n    @onSubmitCode={{this.confirm}}\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/oidc/confirm/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class OrganizationProjectsRoute extends Route {\n  @service router: RouterService;\n\n  async beforeModel(transition: Transition) {\n    await this.router.transitionTo('projects', {\n      queryParams: { organization: transition.to.params.organizationName },\n    });\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport enforceWhiteLabel from 'client/decorators/enforce-white-label';\n\n@enforceWhiteLabel()\nexport default class OrganizationRoute extends Route {\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  /** @type {import('../../services/forest-session').default} */\n  @service session;\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n  /** @type {import('../../services/authenticationRedirectionService').default} */\n  @service authenticationRedirectionService;\n  /** @type {import('../../services/store').default} */\n  @service store;\n  /** @type {import('../../services/toastr').default} */\n  @service toastr;\n\n  /**\n   * @param {*} transition\n   * @param  {...any} args\n   * @returns {any}\n   */\n  beforeModel(transition, ...args) {\n    this.session.requireAuthentication(transition, 'authentication.login');\n    return super.beforeModel(transition, ...args);\n  }\n\n  /**\n   * @param {{\n   *  organization_name?: string;\n   * }} params\n   * @returns {Promise<{\n   *  organizations: Array<import('client/app/models/organization').default>\n   *  currentOrganization: import('client/app/models/organization').default\n   * }>}\n   */\n  async model(params) {\n    const allOrganizations = await this.store.findAll('organization');\n    const organizations = allOrganizations.filter((organization) => !organization.isPersonal);\n\n    const searchedOrganization = params.organization_name.trim().toLowerCase();\n    const currentOrganization = allOrganizations.find(\n      (organization) => organization.name.trim().toLowerCase() === searchedOrganization,\n    );\n\n    if (currentOrganization) {\n      // Need to know if we have access to the associated resources\n      const organization = await this.store.findRecord('organization', currentOrganization.id, {\n        reload: true,\n      });\n      this.currentOrganization.define(organization);\n\n      if (this.session.isConnectedWithSso()) {\n        // sso cookie is used to remember the name and the logo of the last visited organization\n        window.Cookies.set('sso', {\n          organizationName: currentOrganization.name,\n          organizationPictureUrl: currentOrganization.pictureUrl,\n        });\n      }\n    }\n\n    return {\n      organizations,\n      currentOrganization,\n    };\n  }\n\n  afterModel(model, transition) {\n    const redirectTarget = this.authenticationRedirectionService.useRedirectTarget();\n    if (redirectTarget) {\n      // In some cases we would need to redirect the user even if he is not in the organization\n      // For example, when he is invited to a project\n      this.router.transitionTo(redirectTarget);\n    } else if (!model?.currentOrganization) {\n      this.toastr.perform(\n        'warning',\n        'You have been redirected to your personal space, as you do not have access to the requested organization.',\n      );\n      transition.abort();\n      this.currentOrganization.transitionToProjectsIndex();\n    }\n  }\n}\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class OrganizationSettingsController extends Controller {\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n\n  @alias('model.close') closeUrl;\n\n  @action\n  onClose() {\n    this.currentOrganization.transitionToProjectsIndex();\n  }\n\n  @computed('currentOrganization.model.{isSsoAvailable,name}')\n  get navigationItems() {\n    const navItems = [\n      {\n        route: 'organization.settings.overview',\n        models: [this.currentOrganization.model.name],\n        text: 'Overview',\n      },\n      {\n        route: 'organization.settings.ownership',\n        models: [this.currentOrganization.model.name],\n        text: 'Owners',\n      },\n    ];\n\n    if (this.currentOrganization.model.isSsoAvailable) {\n      navItems.push({\n        route: 'organization.settings.security',\n        models: [this.currentOrganization.model.name],\n        text: 'Security',\n      });\n    }\n    return navItems;\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class OrganizationSettingsIndexRoute extends Route {\n  @service router;\n\n  beforeModel(transition) {\n    this.router.replaceWith('organization.settings.overview', {\n      queryParams: transition.to.queryParams,\n    });\n  }\n}\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\n/**\n * @param {string} path\n * @param {string} previousName\n * @param {string} newName\n */\nfunction replaceOrganizationNameInPath(path, previousName, newName) {\n  if (!path) {\n    return path;\n  }\n\n  return `${path}`.replace(\n    `/organization/${encodeURIComponent(previousName)}/`,\n    `/organization/${encodeURIComponent(newName)}/`,\n  );\n}\nexport default class OrganizationSettingsOverviewController extends Controller {\n  /** @type {import('client/data/models/organization').default} */\n  @alias('model.organization') organization;\n  /** @type {string} */\n  @alias('model.close') closeUrl;\n\n  /** @type {import('client/legacy/services/toastr').default} */\n  @service toastr;\n  /** @type {import('client/legacy/services/tracker').default} */\n  @service tracker;\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  /** @type {import('client/legacy/services/organization-service').default} */\n  @service organizationService;\n\n  @action\n  async saveName(name) {\n    const previousName = this.organization.name;\n    this.organization.set('name', name);\n    if (await this.save()) {\n      this.currentOrganization.define(this.organization);\n      await this.router.replaceWith(this.router.currentRouteName, name, {\n        queryParams: {\n          close: replaceOrganizationNameInPath(this.closeUrl, previousName, name),\n        },\n      });\n    }\n  }\n\n  @action\n  async savePicture(url) {\n    this.organization.set('pictureUrl', url || null);\n    await this.save();\n  }\n\n  @action\n  async checkNewName(name) {\n    if (!name || !`${name}`.trim()) {\n      throw new Error('The organization name cannot be empty');\n    }\n\n    let result;\n    try {\n      result = await this.organizationService.checkIfNameIsAvailable(name);\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (e) {\n      throw new Error('An error occurred while checking name availability');\n    }\n\n    if (!result) {\n      throw new Error('The organization name is not available');\n    }\n  }\n\n  @action\n  async cancelEdition() {\n    this.organization.rollbackAttributes();\n  }\n\n  @action\n  async deleteOrganization() {\n    return this.organization\n      .destroyRecord()\n      .then(() => {\n        this.toastr.perform('success', 'Organization deleted');\n        this.router.transitionTo('projects');\n      })\n      .catch((reason) => {\n        const message =\n          reason?.errors?.[0]?.detail\n          || 'An unexpected error occurred when deleting the organization';\n        this.toastr.perform('error', message);\n      });\n  }\n\n  /**\n   * @returns {Promise<void>}\n   */\n  async save() {\n    try {\n      await this.organization.save();\n      return true;\n    } catch (error) {\n      this.organization.rollbackAttributes();\n      this.tracker.captureException(error);\n      this.toastr.perform('error', 'An error occurred when saving the organization');\n      return false;\n    }\n  }\n}\n","import Route from '@ember/routing/route';\n\nexport default class OrganizationSettingsOverviewRoute extends Route {\n  async model() {\n    const { currentOrganization } = this.modelFor('organization');\n    const { close } = this.modelFor('organization.settings');\n\n    return { organization: currentOrganization, close };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaSettings::MainSection @title=\\\"Overview\\\" @class=\\\"l-organization-settings-overview\\\">\\n  <BetaSettings::Section @title=\\\"Organization name\\\" @targetInputId=\\\"organization-name-input\\\">\\n    <BetaSettings::Input\\n      @inputId=\\\"organization-name-input\\\"\\n      @value={{this.organization.name}}\\n      @checkValue={{this.checkNewName}}\\n      @checkingText=\\\"Checking that the name is available...\\\"\\n      @successText=\\\"Organization name available\\\"\\n      @onSave={{this.saveName}}\\n    />\\n  </BetaSettings::Section>\\n\\n  <BetaSettings::Section @title=\\\"Organization Logo\\\" @targetInputId=\\\"organization-picture-input\\\">\\n    <div class=\\\"l-organization-settings-overview__picture-container\\\">\\n      <Picture::PictureOrganization\\n        @organization={{this.organization}}\\n        class=\\\"l-organization-settings-overview__picture\\\"\\n      />\\n      <span class=\\\"l-organization-settings-overview__picture-description\\\">\\n        JPG, GIF, SVG or PNG. Recommended size 80x80 px.\\n      </span>\\n    </div>\\n    <BetaSettings::Input\\n      @inputId=\\\"organization-picture-input\\\"\\n      @value={{this.organization.pictureUrl}}\\n      @onSave={{this.savePicture}}\\n    />\\n  </BetaSettings::Section>\\n\\n  <BetaSettings::Section\\n    @title=\\\"Delete Organization\\\"\\n    @targetInputId=\\\"organization-delete-input\\\"\\n    @showDelimiter={{false}}\\n  >\\n    <div class=\\\"l-organization-settings-overview__button-row\\\">\\n      <div class=\\\"l-organization-settings-overview__button-text\\\">\\n        Close your organization and delete all associated data\\n      </div>\\n      <Feature::CriticalActionConfirmation::Button\\n        @buttonText=\\\"Delete organization\\\"\\n        @entityName={{this.organization.name}}\\n        @warningMessage=\\\"You are about to delete the “{{this.organization.name}}” organization.\\\"\\n        @cancelText=\\\"Cancel\\\"\\n        @onConfirm={{this.deleteOrganization}}\\n        data-test-delete-button\\n      />\\n    </div>\\n  </BetaSettings::Section>\\n</BetaSettings::MainSection>\\n', { moduleName: 'client/legacy/pods/organization/settings/overview/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed, set } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport { DEFAULT_DATEONLY_FORMAT } from 'client/utils/dates-default-format-variables';\n\nexport default class OrganizationSettingsOwnershipController extends Controller {\n  /** @type {import('client/data/models/organization').default} */\n  @alias('model.organization') organization;\n  /** @type {import('@ember/array').default<import('client/data/models/user').default>} */\n  @alias('model.owners') owners;\n\n  @tracked displayAddModal = false;\n  @tracked displayRemoveModal = false;\n\n  dateFormat = DEFAULT_DATEONLY_FORMAT;\n\n  /** @type {import('client/legacy/services/current-user').default} */\n  @service currentUser;\n  /** @type {import('client/legacy/services/toastr').default} */\n  @service toastr;\n  /** @type {import('client/legacy/services/tracker').default} */\n  @service tracker;\n\n  @computed('owners', 'owners.[]', 'owners.@each.fullName')\n  get sortedOwners() {\n    return this.owners.sortBy('fullName', 'email', 'id');\n  }\n\n  @computed('currentUser.model.id', 'sortedOwners.[]')\n  get lines() {\n    return this.sortedOwners.map((owner) => ({\n      selected: false,\n      selectable: this.currentUser.model.id !== owner.id,\n      owner,\n    }));\n  }\n\n  @computed('lines', 'lines.@each.selected')\n  get selectedCount() {\n    return this.lines.filter((line) => line.selected).length;\n  }\n\n  @computed('selectedCount')\n  get hasSelection() {\n    return this.selectedCount > 0;\n  }\n\n  @action\n  confirmRemoval() {\n    this.displayRemoveModal = true;\n  }\n\n  @action\n  hideRemoveModal() {\n    this.displayRemoveModal = false;\n  }\n\n  @action\n  async removeOwners(callback) {\n    try {\n      const lineCount = this.lines.length;\n\n      this.organization.owners = this.lines\n        .filter((line) => !line.selected)\n        .map((line) => line.owner);\n\n      const selectedCount = lineCount - this.organization.owners.length;\n\n      await this.organization.save();\n      this.toastr.perform(\n        'success',\n        selectedCount === 1\n          ? 'One user has been successfully removed from the list of owners.'\n          : `${selectedCount} users have been successfully removed from the list of owners.`,\n      );\n      this.displayRemoveModal = false;\n    } catch (e) {\n      this.toastr.perform('error', 'An error occurred when saving the modifications');\n      this.tracker.captureException(e);\n      console.error(e);\n\n      this.organization.rollbackAttributes();\n    } finally {\n      callback();\n\n      set(this.model, 'owners', await this.organization.owners.reload());\n    }\n  }\n\n  @action\n  openAddModal() {\n    this.displayAddModal = true;\n  }\n\n  @action\n  closeAddModal() {\n    this.displayAddModal = false;\n  }\n}\n","import Route from '@ember/routing/route';\n\nexport default class OrganizationSettingsOwnershipRoute extends Route {\n  async model() {\n    const { currentOrganization } = this.modelFor('organization');\n    const owners = await currentOrganization.get('owners');\n\n    return { organization: currentOrganization, owners };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaSettings::MainSection @class=\\\"l-organization-settings-ownership\\\" @title=\\\"Owners\\\">\\n  <BetaSettings::Section\\n    @class=\\\"l-organization-settings-ownership\\\"\\n    @title=\\\"Owners\\\"\\n    @description=\\\"Owners have access to the organization settings\\\"\\n    @showDelimiter={{false}}\\n  >\\n    <div class=\\\"l-organization-settings-ownership__actions\\\">\\n      <Shared::Button::BetaButton\\n        @text={{if (eq this.selectedCount 1) \\'Remove owner\\' \\'Remove owners\\'}}\\n        @type=\\\"secondary\\\"\\n        @action={{this.confirmRemoval}}\\n        @async={{false}}\\n        class=\\\"l-organization-settings-ownership__action\\n          {{if this.hasSelection \\'l-organization-settings-ownership__action--visible\\'}}\\\"\\n        data-test-action=\\\"removeOwners\\\"\\n      />\\n      <Shared::Button::BetaButton\\n        @text=\\\"Add a new owner\\\"\\n        @type=\\\"primary\\\"\\n        @action={{this.openAddModal}}\\n        @async={{false}}\\n        @iconName=\\\"add\\\"\\n        class=\\\"l-organization-settings-ownership__action l-organization-settings-ownership__action--visible\\\"\\n        data-test-action=\\\"addOwner\\\"\\n      />\\n    </div>\\n    <Shared::BetaTable\\n      @columns={{array \\'\\' \\'\\' \\'User\\' \\'Email\\' \\'Added\\'}}\\n      @rows={{this.lines}}\\n      @alignColumnLeft={{true}}\\n      class=\\\"l-organization-settings-ownership__table\\\"\\n      data-test-migration-batch-users-section-table\\n      as |RowColumn line|\\n    >\\n      <RowColumn data-test-row-column=\\\"Checkbox\\\">\\n        {{#if line.selectable}}\\n          <Form::BetaCheckbox\\n            @value={{line.selected}}\\n            @defaultValue={{false}}\\n            @class=\\\"l-organization-settings-ownership__checkbox\\\"\\n          />\\n        {{/if}}\\n      </RowColumn>\\n      <RowColumn data-test-row-column=\\\"Avatar\\\">\\n        <Picture::PictureAvatar\\n          @class=\\\"l-organization-settings-ownership__avatar\\\"\\n          @email={{line.owner.email}}\\n          @initials={{line.owner.initials}}\\n          @size={{40}}\\n        />\\n      </RowColumn>\\n      <RowColumn data-test-row-column=\\\"User\\\">\\n        <span class=\\\"l-organization-settings-ownership__user\\\">\\n          {{line.owner.fullName}}\\n        </span>\\n      </RowColumn>\\n      <RowColumn data-test-row-column=\\\"Email\\\">\\n        <span class=\\\"l-organization-settings-ownership__email\\\">\\n          {{line.owner.email}}\\n        </span>\\n      </RowColumn>\\n      <RowColumn data-test-row-column=\\\"Added\\\">\\n        <time\\n          class=\\\"l-organization-settings-ownership__added\\\"\\n          datetime={{moment-format line.owner.ownerSince}}\\n        >\\n          {{moment-format line.owner.ownerSince this.dateFormat}}\\n        </time>\\n      </RowColumn>\\n    </Shared::BetaTable>\\n  </BetaSettings::Section>\\n</BetaSettings::MainSection>\\n{{#if this.displayAddModal}}\\n  <Organization::ModalAddOwner\\n    @onClose={{this.closeAddModal}}\\n    @organization={{this.organization}}\\n  />\\n{{/if}}\\n{{#if this.displayRemoveModal}}\\n  <Organization::ModalRemoveOwner\\n    @selectedCount={{this.selectedCount}}\\n    @onCancel={{this.hideRemoveModal}}\\n    @onRemoveOwners={{this.removeOwners}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/organization/settings/ownership/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class OrganizationSettingsRoute extends Route {\n  @service session;\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  @service store;\n\n  queryParams = {\n    close: {\n      refreshModel: false,\n    },\n  };\n\n  beforeModel(transition, ...args) {\n    this.session.requireAuthentication(transition, 'authentication.login');\n\n    // NOTICE: User that can't access organization settings are redirected.\n    if (!this.currentOrganization.model.canAccessOrganizationSettings) {\n      this.currentOrganization.transitionToProjectsIndex();\n    }\n\n    return super.beforeModel(transition, ...args);\n  }\n\n  /**\n   * @param {{\n   *  close?: string;\n   * }} params\n   * @returns {Promise<{\n   *  organization: import('client/app/models/organization').default\n   * }>}\n   */\n  async model(params) {\n    const organization = await this.store.findRecord(\n      'organization',\n      this.currentOrganization.model.id,\n      { reload: true },\n    );\n    return {\n      currentOrganization: organization,\n      close: params.close,\n    };\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type CurrentOrganizationService from 'client/legacy/services/current-organization';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nexport default class OrganizationSettingsSecurityChooseConfigurationController extends Controller {\n  @service private router: RouterService;\n  @service private currentOrganization: CurrentOrganizationService;\n\n  @action\n  async goToPreviousRoute() {\n    await this.router.transitionTo(\n      'organization.settings.security',\n      this.currentOrganization.model.name,\n    );\n  }\n}\n","import Route from '@ember/routing/route';\n\nexport default class OrganizationSettingsSecurityChooseConfigurationRoute extends Route {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaSettings::MainSection @title=\\\"Security\\\" @class=\\\"l-organization-settings-security\\\">\\n  <BetaSettings::Section\\n    @title=\\\"Single Sign-On / SAML\\\"\\n    @description=\\\"Fully control your team members’ access to Forest Admin\\\"\\n    @showDelimiter={{false}}\\n  >\\n    <Authentication::SingleSignOn::ConfigurationMethod @cancel={{this.goToPreviousRoute}} />\\n  </BetaSettings::Section>\\n</BetaSettings::MainSection>\\n', { moduleName: 'client/legacy/pods/organization/settings/security/choose-configuration/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport { getFirstErrorDetail, isEmberError } from 'client/utils/ember-error-util';\n\nexport default class OrganizationSettingsSecurityIndexController extends Controller {\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n  /** @type {import('client/legacy/services/toastr').default} */\n  @service toastr;\n  /** @type {import('../../services/forest-session').default} */\n  @service session;\n  /** @type {import('client/legacy/services/tracker').default} */\n  @service tracker;\n\n  @alias('model.samlConfiguration') samlConfiguration;\n  @alias('model.organization') organization;\n  @alias('model.environmentsIncompatible') environmentsIncompatible;\n\n  @tracked isShowingDisablePopup = false;\n  @tracked hideEditConfiguration = true;\n\n  @action\n  async configureSingleSignOn() {\n    return this.router.transitionTo(\n      'organization.settings.security.choose-configuration',\n      this.organization.name,\n    );\n  }\n\n  @action\n  async enableSSO() {\n    await this.samlConfiguration.set('enabled', true);\n    await this.saveConfiguration();\n  }\n\n  @action\n  async newConfiguration() {\n    await this.deleteConfiguration();\n  }\n\n  @action\n  showHideConfiguration(callback) {\n    this.hideEditConfiguration = !this.hideEditConfiguration;\n    callback();\n  }\n\n  @computed('hideEditConfiguration')\n  get editConfigurationText() {\n    if (this.hideEditConfiguration) {\n      return 'Edit configuration';\n    }\n    return 'Hide configuration';\n  }\n\n  @action\n  openConfirmationPopup() {\n    this.isShowingDisablePopup = true;\n  }\n\n  @action\n  closeConfirmationPopup() {\n    this.isShowingDisablePopup = false;\n  }\n\n  @action\n  async deleteConfiguration() {\n    return this.samlConfiguration.destroyRecord().then(async () => {\n      this.toastr.perform('success', 'Saml configuration deleted.');\n      await window.Cookies.remove('sso');\n      this.isShowingDisablePopup = false;\n      this.send('refreshModel');\n    });\n  }\n\n  @action\n  async deleteConfigurationAndSignOut() {\n    await this.deleteConfiguration();\n    return this.session.invalidate({ saveCurrentUrlForLogin: false });\n  }\n\n  @computed('samlConfiguration.isSsoCorrectlyConfigured')\n  get samlConfigurationError() {\n    return this.samlConfiguration && !this.samlConfiguration.isSsoCorrectlyConfigured;\n  }\n\n  @computed('samlConfiguration.metadataEndpoint')\n  get samlConfigurationType() {\n    if (this.samlConfiguration.metadataEndpoint) {\n      return 'xmlEndpoint';\n    }\n    return 'manual';\n  }\n\n  @computed('environmentsIncompatible.length', 'samlConfiguration.enabled')\n  get hasEnvironmentsIncompatible() {\n    return this.environmentsIncompatible.length && !this.samlConfiguration?.enabled;\n  }\n\n  @action\n  async saveConfiguration() {\n    try {\n      await this.samlConfiguration.save();\n      this.toastr.perform('success', 'Configuration saved');\n    } catch (e) {\n      this.tracker.captureException(e);\n      const message = isEmberError(e)\n        ? getFirstErrorDetail(e)\n        : 'An unexpected error occurred while saving the configuration';\n      this.toastr.perform('error', message);\n      this.samlConfiguration.rollbackAttributes();\n    }\n  }\n}\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\n\nexport default class OrganizationSettingsSecurityIndexRoute extends Route {\n  @action\n  refreshModel() {\n    this.refresh();\n  }\n\n  async model() {\n    const { currentOrganization } = this.modelFor('organization');\n\n    const [samlConfiguration, environmentsIncompatible] = await Promise.all([\n      currentOrganization.get('samlConfiguration'),\n      currentOrganization.get('environmentsIncompatibleWithSaml'),\n    ]);\n\n    return {\n      organization: currentOrganization,\n      samlConfiguration,\n      environmentsIncompatible,\n    };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaSettings::MainSection @title=\\\"Security\\\" @class=\\\"l-organization-settings-security\\\">\\n  <BetaSettings::Section\\n    @title=\\\"Single Sign-On / SAML\\\"\\n    @description=\\\"Fully control your team members’ access to Forest Admin\\\"\\n    @showDelimiter={{false}}\\n  >\\n    {{#if this.hasEnvironmentsIncompatible}}\\n      <Organization::IncompatibleEnvironments @environments={{this.environmentsIncompatible}} />\\n    {{else if this.samlConfigurationError}}\\n      <ConfigurationCard\\n        @title=\\\"Your configuration could not be verified.\\\"\\n        @type=\\\"error\\\"\\n        @icon=\\\"sms_failed\\\"\\n        class=\\\"c-beta-settings__configuration-card\\\"\\n      >\\n        <p class=\\\"c-beta-settings__content c-beta-settings__content--margin\\\">\\n          It appears your configuration failed. Please check your configuration details or try\\n          another configuration.\\n        </p>\\n        <div class=\\\"c-beta-settings__configuration-card-buttons\\\">\\n          <Shared::Button::BetaButton\\n            @type=\\\"info\\\"\\n            @text={{this.editConfigurationText}}\\n            @action={{this.showHideConfiguration}}\\n            class=\\\"c-beta-settings__configuration-card-first-button\\\"\\n          />\\n          <Shared::Button::BetaButton\\n            @type=\\\"secondary\\\"\\n            @text=\\\"New configuration\\\"\\n            @action={{this.newConfiguration}}\\n          />\\n        </div>\\n      </ConfigurationCard>\\n      {{#unless this.hideEditConfiguration}}\\n        {{#if (eq this.samlConfigurationType \\'manual\\')}}\\n          <SamlConfiguration::Manual\\n            @samlConfiguration={{this.samlConfiguration}}\\n            @onSave={{this.saveConfiguration}}\\n            data-test-saml-configuration-manual-edit\\n          />\\n        {{else}}\\n          <SamlConfiguration::XmlEndpoint\\n            @samlConfiguration={{this.samlConfiguration}}\\n            @organization={{this.organization}}\\n            @onSave={{this.saveConfiguration}}\\n            data-test-saml-configuration-xml-endpoint-edit\\n          />\\n        {{/if}}\\n      {{/unless}}\\n    {{else if (and this.samlConfiguration this.samlConfiguration.enabled)}}\\n      <div class=\\\"c-beta-settings__configuration-disable\\\">\\n        <ConfigurationCard\\n          @title=\\\"Single Sign-On is Active\\\"\\n          @type=\\\"success\\\"\\n          class=\\\"c-beta-settings__configuration-card\\\"\\n          data-test-configuration-enabled\\n        >\\n          <p class=\\\"c-beta-settings__content\\\">\\n            All users from this organization are logging in using Single Sign-On.\\n          </p>\\n        </ConfigurationCard>\\n        <Shared::Button::BetaButton\\n          @type=\\\"danger-outline\\\"\\n          @text=\\\"Disable Single Sign-On\\\"\\n          @async={{false}}\\n          @action={{this.openConfirmationPopup}}\\n          data-test-action=\\\"open disable modal\\\"\\n        />\\n      </div>\\n      <div class=\\\"c-beta-settings__configuration-edit\\\">\\n        {{#if (eq this.samlConfigurationType \\'manual\\')}}\\n          <SamlConfiguration::Manual\\n            @disableEndpoint={{true}}\\n            @samlConfiguration={{this.samlConfiguration}}\\n            @onSave={{this.saveConfiguration}}\\n            data-test-saml-configuration-manual\\n          />\\n        {{else}}\\n          <SamlConfiguration::XmlEndpoint\\n            @disableEndpoint={{true}}\\n            @samlConfiguration={{this.samlConfiguration}}\\n            @organization={{this.organization}}\\n            @onSave={{this.saveConfiguration}}\\n            data-test-saml-configuration-xml-endpoint\\n          />\\n        {{/if}}\\n      </div>\\n    {{else if this.samlConfiguration}}\\n      <ConfigurationCard\\n        @title=\\\"Your configuration is complete.\\\"\\n        @icon=\\\"playlist_add_check\\\"\\n        @type=\\\"success\\\"\\n        class=\\\"c-beta-settings__configuration-card\\\"\\n        data-test-configuration-completed\\n      >\\n        <p class=\\\"c-beta-settings__content c-beta-settings__content--margin\\\">\\n          You need to enable it in order to allow users from this organization to log in using\\n          Single Sign-On.\\n        </p>\\n        <div class=\\\"c-beta-settings__configuration-card-buttons\\\">\\n          <Shared::Button::BetaButton\\n            @type=\\\"info\\\"\\n            @text=\\\"Enable Single Sign-On\\\"\\n            @action={{this.enableSSO}}\\n            data-test-action=\\\"enable sso\\\"\\n            class=\\\"c-beta-settings__configuration-card-first-button\\\"\\n          />\\n          <Shared::Button::BetaButton\\n            @type=\\\"secondary\\\"\\n            @text={{this.editConfigurationText}}\\n            @action={{this.showHideConfiguration}}\\n            data-test-action=\\\"edit configuration\\\"\\n          />\\n        </div>\\n      </ConfigurationCard>\\n      {{#unless this.hideEditConfiguration}}\\n        {{#if (eq this.samlConfigurationType \\'manual\\')}}\\n          <SamlConfiguration::Manual\\n            @samlConfiguration={{this.samlConfiguration}}\\n            @onSave={{this.saveConfiguration}}\\n            data-test-saml-configuration-manual-edit\\n          />\\n        {{else}}\\n          <SamlConfiguration::XmlEndpoint\\n            @samlConfiguration={{this.samlConfiguration}}\\n            @organization={{this.organization}}\\n            @onSave={{this.saveConfiguration}}\\n            data-test-saml-configuration-xml-endpoint-edit\\n          />\\n        {{/if}}\\n      {{/unless}}\\n    {{else}}\\n      <div class=\\\"c-beta-settings-button__row\\\">\\n        <div class=\\\"c-beta-settings-button__text\\\" data-test-no-saml-configuration>\\n          There is currently no SSO/SAML configured.\\n        </div>\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @text=\\\"Configure Single Sign-On\\\"\\n          @action={{this.configureSingleSignOn}}\\n          @size=\\\"large\\\"\\n          data-test-saml-configuration-button\\n        />\\n      </div>\\n    {{/if}}\\n  </BetaSettings::Section>\\n</BetaSettings::MainSection>\\n\\n{{#if this.isShowingDisablePopup}}\\n  <Authentication::SingleSignOn::DisableSsoModal\\n    @closePopup={{this.closeConfirmationPopup}}\\n    @action={{this.deleteConfigurationAndSignOut}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/organization/settings/security/index/template.hbs' });\n","import Route from '@ember/routing/route';\n\nexport default class OrganizationSettingsSecurityManualInputConfigurationRoute extends Route {\n  async model() {\n    const { currentOrganization } = this.modelFor('organization');\n\n    return { organization: currentOrganization };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaSettings::MainSection @title=\\\"Security\\\" @class=\\\"l-organization-settings-security\\\">\\n  <BetaSettings::Section\\n    @title=\\\"Single Sign-On / SAML\\\"\\n    @description=\\\"Fully control your team members’ access to Forest Admin\\\"\\n    @showDelimiter={{false}}\\n  >\\n    <Authentication::SingleSignOn::ManualInputConfiguration />\\n  </BetaSettings::Section>\\n</BetaSettings::MainSection>\\n', { moduleName: 'client/legacy/pods/organization/settings/security/manual-input-configuration/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class OrganizationSettingsSecurityRoute extends Route {\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  @service router;\n\n  beforeModel() {\n    if (!this.currentOrganization.model.isSsoAvailable) {\n      this.router.replaceWith('organization.settings.overview');\n    }\n  }\n\n  async model() {\n    const { currentOrganization } = this.modelFor('organization');\n\n    return { organization: currentOrganization };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{outlet}}\\n', { moduleName: 'client/legacy/pods/organization/settings/security/template.hbs' });\n","import Route from '@ember/routing/route';\n\nexport default class OrganizationSettingsSecurityXmlConfigurationRoute extends Route {\n  async model() {\n    const { currentOrganization } = this.modelFor('organization');\n\n    return { organization: currentOrganization };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaSettings::MainSection @title=\\\"Security\\\" @class=\\\"l-organization-settings-security\\\">\\n  <BetaSettings::Section\\n    @title=\\\"Single Sign-On / SAML\\\"\\n    @description=\\\"Fully control your team members’ access to Forest Admin\\\"\\n    @showDelimiter={{false}}\\n  >\\n    <div class=\\\"c-xml-configuration__title\\\" data-test-sso-xml-configuration>\\n      Configure Single Sign-On\\n    </div>\\n    <SamlConfiguration::XmlEndpoint @uploadMetadata={{true}} />\\n  </BetaSettings::Section>\\n</BetaSettings::MainSection>\\n', { moduleName: 'client/legacy/pods/organization/settings/security/xml-configuration/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-organization-settings\\\">\\n  <Navigation::BetaGlobalNavigationBar\\n    @isSettings={{true}}\\n    @settingsTitle=\\\"Organization settings\\\"\\n    @transitionToSettings={{action-link-to \\'user-settings\\'}}\\n    @navigationItems={{this.navigationItems}}\\n    @closeUrl={{this.closeUrl}}\\n    @onCloseFallback={{this.onClose}}\\n  />\\n  <div class=\\\"l-organization-settings__scroll\\\">\\n    <div class=\\\"l-organization-settings__container\\\">\\n      {{outlet}}\\n    </div>\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/organization/settings/template.hbs' });\n","import { getOwner } from '@ember/application';\nimport Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport { queryManager } from 'ember-apollo-client';\n\nimport watchCollaborationNotification from 'client/gql/utils/watch-collaboration-notification';\nimport { PromiseObject } from 'client/utils/ember-promise';\nimport { isRenderingLiveDemo } from 'client/utils/livedemo';\n\nexport default class ProjectController extends Controller {\n  @service router;\n  @service currentUser;\n  @service lianaSession;\n  @service store;\n\n  /**\n   * ⚠ ember-apollo-client provides this @queryManager\n   * BUT there is a bug with this library on overwritten routes\n   * The code from here: https://github.com/ember-graphql/ember-apollo-client/blob/v4.0.2/addon/-private/apollo/setup-hooks.js\n   * is not returning the promise from the original function, leading\n   * to bugs when beforeModel is asynchronous on a route.\n   */\n  @queryManager() apollo;\n\n  @tracked hasCollaborationNotification = false;\n\n  @alias('model') project;\n  @alias('lianaSession.rendering') rendering;\n  @alias('currentUser.model.isLiveDemo') isLiveDemoUser;\n  @computed('router.currentRouteName')\n  get targetRoute() {\n    const owner = getOwner(this);\n    const { currentRouteName } = this.router;\n    return owner.lookup(`route:${currentRouteName}`);\n  }\n\n  @computed('project')\n  get trial() {\n    return PromiseObject.create({\n      promise: this.project.get('trial'),\n    });\n  }\n\n  @computed(\n    'lianaSession.currentEnvironment.isActive',\n    'router.currentRouteName',\n    'targetRoute.{hideGlobalNavigation,noEnvsAvailable}',\n  )\n  get disableNotificationBar() {\n    return (\n      this.targetRoute.noEnvsAvailable\n      || !this.lianaSession.currentEnvironment?.isActive\n      || this.router.currentRouteName.startsWith('project.onboarding')\n    );\n  }\n\n  setupCollaborationNotification() {\n    watchCollaborationNotification(\n      this.apollo,\n      this.project.defaultEnvironment.id,\n      this.currentUser.id,\n      (event) => {\n        this.hasCollaborationNotification = !!event.count;\n      },\n    );\n  }\n\n  @action\n  async deployToProduction() {\n    const environments = await this.project.get('environments');\n\n    let environmentProduction = environments.findBy('type', 'production');\n    // TODO: Handle already deployed Production env in project.onboarding.deployment before model !!\n    if (!environmentProduction) {\n      environmentProduction = await this.store\n        .createRecord('environment', {\n          project: this.project,\n          name: 'Production',\n          type: 'production',\n        })\n        .save();\n    }\n\n    this.router.transitionTo('project.onboarding.deployment', {\n      queryParams: { environmentId: environmentProduction.id },\n    });\n  }\n\n  @action\n  async continueDeploy(environmentId) {\n    this.router.transitionTo('project.onboarding.deployment', {\n      queryParams: { environmentId },\n    });\n  }\n\n  @computed('router.currentURL')\n  get isLiveDemoRendering() {\n    return isRenderingLiveDemo(this.router.currentURL);\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport getTeamNameToRedirectTo from 'client/utils/get-team-name-to-redirect-to';\n\nexport default class ProjectEnvironmentRoute extends Route {\n  @service currentUser;\n  @service localStorage;\n  @service router;\n\n  async beforeModel(...args) {\n    super.beforeModel(...args);\n\n    const project = this.modelFor('project');\n    const environmentName = this.paramsFor('project.environment').environment_name;\n\n    return this.router.replaceWith(\n      'project.rendering',\n      environmentName,\n      await getTeamNameToRedirectTo(\n        { currentUser: this.currentUser, localStorage: this.localStorage },\n        project.name,\n      ),\n    );\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport getTeamNameToRedirectTo from 'client/utils/get-team-name-to-redirect-to';\n\nexport default class ProjectIndexRoute extends Route {\n  @service currentUser;\n  @service router;\n  @service localStorage;\n\n  async beforeModel(...args) {\n    super.beforeModel(...args);\n\n    const project = this.modelFor('project');\n    const { accessibleEnvironments, defaultEnvironment } = project;\n    const isProjectSetup = await project.isSetup;\n    const noAccessibleEnvironment = !accessibleEnvironments?.length > 0;\n\n    if (isProjectSetup && noAccessibleEnvironment) {\n      return this.router.replaceWith('project.no-environments-available');\n    }\n\n    return this.router.replaceWith(\n      'project.rendering',\n      ProjectIndexRoute._getEnvironmentNameToRedirectTo(\n        accessibleEnvironments,\n        defaultEnvironment,\n        isProjectSetup,\n      ),\n      await getTeamNameToRedirectTo(\n        { currentUser: this.currentUser, localStorage: this.localStorage },\n        project.name,\n      ),\n    );\n  }\n\n  static _getEnvironmentNameToRedirectTo(\n    accessibleEnvironments,\n    defaultEnvironment,\n    isProjectSetup,\n  ) {\n    const isDefaultEnvironmentAccessible = accessibleEnvironments.find(\n      (environment) => environment.id === defaultEnvironment.id,\n    );\n    return isDefaultEnvironmentAccessible || !isProjectSetup\n      ? defaultEnvironment.name\n      : accessibleEnvironments[0].name;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Layout::LayoutLoader @type=\\\"project\\\" />\\n', { moduleName: 'client/legacy/pods/project/loading/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nimport { ERROR_NO_ENVIRONMENT_AVAILABLE } from 'client/config/errors';\n\nexport default class ProjectNoEnvironmentsAvailableController extends Controller {\n  @service router;\n\n  @alias('model.project') project;\n  @alias('model.canAccessSettings') canAccessSettings;\n\n  error = {\n    type: ERROR_NO_ENVIRONMENT_AVAILABLE,\n  };\n\n  @action\n  redirectToEnvironmentsSettings() {\n    this.router.transitionTo('project.project-settings.environments', this.project.name);\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nexport default class ProjectNoEnvironmentsAvailableRoute extends Route {\n  @service currentUser;\n\n  constructor(...args) {\n    super(...args);\n\n    this.noEnvsAvailable = true;\n  }\n\n  model() {\n    const project = this.modelFor('project');\n\n    const canAccessSettings = this.currentUser.can('createEnvironment');\n\n    return hash({\n      project,\n      canAccessSettings,\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Layout::LayoutError @error={{this.error}}>\\n  {{#if this.canAccessSettings}}\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @text=\\\"Go to Environments settings\\\"\\n      @action={{this.redirectToEnvironmentsSettings}}\\n      @async={{false}}\\n      class=\\\"c-no-environments-available__go-to-settings-button\\\"\\n      data-test-no-environments-available-go-to-settings-button\\n    />\\n  {{/if}}\\n</Layout::LayoutError>\\n', { moduleName: 'client/legacy/pods/project/no-environments-available/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectNotFoundRoute extends Route {\n  @service router;\n\n  beforeModel(...args) {\n    super.beforeModel(...args);\n    console.error('URL not found');\n    this.router.transitionTo('project');\n  }\n}\n","import Controller, { inject as controller } from '@ember/controller';\n\nexport default class ProjectOnboardingController extends Controller {\n  @controller('project.onboarding.integration') integrationController;\n  @controller('project.onboarding.deployment') deploymentController;\n\n  reset() {\n    this.integrationController?.reset();\n    this.deploymentController?.reset();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Database @project={{this.model.project}} />\\n', { moduleName: 'client/legacy/pods/project/onboarding/default/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type CustomApolloService from 'client/legacy/services/apollo';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\nimport type DatabaseCredentials from 'client/utils/onboarding/database-credentials';\n\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport { queryManager } from 'ember-apollo-client';\nimport window from 'ember-window-mock';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport watchEnvironmentUpdateEnded from 'client/gql/utils/watch-environment-update-ended';\nimport AbstractOnboardingStepsController from 'client/legacy/abstract-controllers/abstract-onboarding-steps-controller';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport { REGEX_HTTPS_URL } from 'client/utils/regex';\n\nconst ONBOARDING_PHASE = 'deployment';\n\nexport default class ProjectOnboardingDeploymentController extends AbstractOnboardingStepsController {\n  @service router: RouterService;\n\n  @service currentUser: CurrentUserService;\n\n  @service localStorage: LocalStorageService;\n\n  @service lianaFeatures: LianaFeaturesService;\n  /**\n   * ⚠ ember-apollo-client provides this @queryManager\n   * BUT there is a bug with this library on overwritten routes\n   * The code from here: https://github.com/ember-graphql/ember-apollo-client/blob/v4.0.2/addon/-private/apollo/setup-hooks.js\n   * is not returning the promise from the original function, leading\n   * to bugs when beforeModel is asynchronous on a route.\n   */\n  @queryManager() apollo: CustomApolloService;\n\n  // Public alias - Can be use in step definition\n  @alias('model.isMultipleDatabasesProject') public isMultipleDatabasesProject;\n  // NOTICE: AbstractOnboardingStepsController required properties\n  @alias('model.currentEnvironment') public currentEnvironment: EnvironmentModel;\n  // NOTICE: Should not automate transition after successful connection to the agent\n  automateCheckAgentTransition = false;\n\n  // Public tracked - Can be use in step definition\n  @tracked public environmentName: string;\n  @tracked public isCheckingEnvironmentName = false;\n  @tracked public isEnvironmentNameAvailable = true;\n\n  private userFeedBackToastrId: string = null;\n  private subscriptionWatchEnvironmentUpdateEnded: { apolloUnsubscribe: () => void } = null;\n\n  willDestroy() {\n    super.willDestroy();\n    this.unsubscribeEvent();\n  }\n\n  unsubscribeEvent() {\n    if (this.subscriptionWatchEnvironmentUpdateEnded !== null) {\n      this.subscriptionWatchEnvironmentUpdateEnded.apolloUnsubscribe();\n    }\n  }\n\n  get onboardingTrackingInformation() {\n    return {\n      screen: this.currentStepKey,\n      phase: ONBOARDING_PHASE,\n      environmentType: this.currentEnvironment.type,\n      environmentName: this.currentEnvironment.name,\n      architecture: this.project.architecture,\n      agent: this.project.agent,\n      projectId: this.project.id,\n      projectName: this.project.name,\n    };\n  }\n\n  // ===================\n  // GENERAL\n  // ===================\n\n  override get currentStepNumber() {\n    if (this.currentStepKey === this.lastStep) return 1;\n\n    return this.currentStepIndex + 1;\n  }\n\n  override get maxStepNumber() {\n    if (this.currentStepKey === this.lastStep) return 1;\n\n    return this.stepsKeys.length - 1;\n  }\n\n  // ===================\n  // ACTIONS\n  // ===================\n\n  @action\n  async onGoBack() {\n    if (this.currentStepKey !== this.defaultStep) {\n      this.currentStepKey = this.stepsKeys[this.currentStepIndex - 1];\n    } else {\n      await this.router.transitionTo('project.project-settings.environments', this.project.name);\n    }\n  }\n\n  async _handleDeploymentEnded() {\n    this.unsubscribeEvent();\n    const environments = await this.project.environments;\n\n    // We redirect the user to the data only in the case\n    // of a first deployment in production or remote, because\n    // this is the only case where we create a default role\n    const redirectToData = environments.filter((e) => e.isProduction || e.isRemote).length === 1;\n\n    // NOTICE: Inform user about successful configuration\n    this.toastr.perform(ToastrTypeEnum.Success, 'Your new environment is now configured!', {\n      duration: 0,\n    });\n\n    if (redirectToData) {\n      await this.currentUser.model.teams;\n      window.location.href = this.router.urlFor(\n        'project.rendering',\n        this.project.name,\n        this.currentEnvironment.name,\n        this.currentUser.model.teams.firstObject.name,\n      );\n    } else {\n      // QUESTION: Redirect to project.project-settings.roles.index instead?\n      window.location.href = this.router.urlFor(\n        'project.project-settings.environments',\n        this.project.name,\n      );\n    }\n  }\n\n  @action\n  async onGoNext(skipped = false) {\n    // Launch hooks beforeNext\n    if (this.currentStep.beforeNext) {\n      const result = await this.currentStep.beforeNext(this, skipped);\n      if (result === false) {\n        // Cancelling going next\n        return;\n      }\n    }\n\n    // Transition to next step\n    if (this.currentStepKey === this.lastStep) {\n      await this._handleDeploymentEnded();\n    } else {\n      this.currentStepKey = this.stepsKeys[this.currentStepIndex + 1];\n    }\n  }\n\n  // ===================\n  // ApplicationUrl\n  // ===================\n  @action\n  setApplicationUrl(applicationUrl: string) {\n    this.applicationUrl = applicationUrl;\n  }\n\n  async beforeNextApplicationUrl() {\n    return this.tryBeforeNext(async () => {\n      // Send segment event\n      this.segmentTracker.trackDeploymentApplicationURLSubmitted(\n        this.flow,\n        this.onboardingTrackingInformation,\n      );\n\n      // Update environment apiEndpoint\n      this.currentEnvironment.apiEndpoint = this.applicationUrl;\n      await this.currentEnvironment.save();\n    }, \"Error while updating your application's url\");\n  }\n\n  validateUrl(url: string) {\n    if (!REGEX_HTTPS_URL.test(url)) {\n      return {\n        message:\n          'The url must be a valid HTTPS address (https://backoffice.remote-secured-domain.com) for security purposes',\n        moreHttpsInformation: true,\n      };\n    }\n\n    return null;\n  }\n\n  // ===================\n  // Environment name\n  // ===================\n  @action\n  async setEnvironmentName(environmentName: string) {\n    this.environmentName = environmentName;\n    await this.checkEnvironmentName(environmentName);\n  }\n\n  async checkEnvironmentName(environmentName: string) {\n    if (environmentName === this.currentEnvironment.name) {\n      this.isCheckingEnvironmentName = false;\n      this.isEnvironmentNameAvailable = true;\n\n      return;\n    }\n\n    this.isCheckingEnvironmentName = true;\n\n    try {\n      const environments = await this.project.get('environments');\n      const names = environments.map((environment) => environment.name);\n\n      // Preventing race conditions\n      if (this.environmentName === environmentName) {\n        this.isEnvironmentNameAvailable = !names.includes(environmentName);\n        this.isCheckingEnvironmentName = false;\n      }\n    } catch (error) {\n      this.toastr.perform(ToastrTypeEnum.Error, 'Error while checking the environment name', {\n        duration: 0,\n      });\n      this.tracker.captureException(error as Error);\n      console.error('Error while getting the environments', error);\n    }\n  }\n\n  async beforeNextEnvironmentName() {\n    return this.tryBeforeNext(async () => {\n      this.currentEnvironment.name = this.environmentName;\n      await this.currentEnvironment.save();\n\n      this.segmentTracker.trackDeploymentEnvironmentNameSubmitted(\n        this.flow,\n        this.onboardingTrackingInformation,\n      );\n    }, 'Error while checking the environment name');\n  }\n\n  // ===================\n  // Database Credentials\n  // ===================\n  @action\n  setDatabaseCredentials(databaseCredentials: DatabaseCredentials) {\n    this.temporaryDatabaseCredentials = databaseCredentials;\n  }\n\n  async beforeNextDatabaseCredentials(skipped: boolean) {\n    if (!(await super.beforeNextDatabaseCredentials(skipped))) {\n      return false;\n    }\n\n    const onboardingInformation = {\n      ...this.onboardingTrackingInformation,\n      databaseType: this.project.databaseType,\n    };\n\n    if (this.databaseCredentials) {\n      this.segmentTracker.trackDeploymentDatabaseCredentialsSubmitted(\n        this.flow,\n        this.databaseCredentials.formatForSegment(),\n        onboardingInformation,\n      );\n    } else {\n      this.segmentTracker.trackDeploymentDatabaseCredentialsSkipped(\n        this.flow,\n        onboardingInformation,\n      );\n    }\n\n    return true;\n  }\n\n  // ===================\n  // Apollo environment events\n  // ===================\n  @action\n  async subscribesEnvironmentEvents() {\n    const { id: environmentId } = this.currentEnvironment;\n\n    this.subscriptionWatchEnvironmentUpdateEnded = await watchEnvironmentUpdateEnded(\n      this.apollo,\n      environmentId,\n      this.onEnvironmentUpdateEnded.bind(this),\n    );\n  }\n\n  async onEnvironmentUpdateEnded() {\n    await this.currentEnvironment.reload();\n\n    if (this.currentEnvironment.isActive && this.isAgentResponding) {\n      this.userFeedBackToastrId = this.toastr.update(\n        ToastrTypeEnum.Success,\n        `Your ${this.currentEnvironment.type} environment has been successfully synchronized and the connection has been established! You can move to your admin panel once you have copied all environment variables.`,\n        this.userFeedBackToastrId,\n      );\n    } else {\n      this.userFeedBackToastrId = this.toastr.update(\n        ToastrTypeEnum.Success,\n        `Your ${this.currentEnvironment.type} environment has been successfully synchronized! We are now checking your connection.`,\n        this.userFeedBackToastrId,\n      );\n    }\n  }\n\n  // ===================\n  // HELPER\n  // ===================\n\n  get databaseConnectionString() {\n    if (!this.databaseCredentials && !this.project.databaseType) {\n      return 'protocol://username:password@host:port/databaseName?param1=value1&..';\n    }\n\n    if (!this.databaseCredentials && this.project.databaseType) {\n      return `${this.project.databaseType}://username:password@host:port/databaseName?param1=value1&..`;\n    }\n\n    return this.databaseCredentials.connectionURIEncoded;\n  }\n\n  get allEnvironmentsSupportsNoApplicationUrl() {\n    return this.lianaFeatures.allEnvironmentsAreFeatureCompatible(\n      FeaturesEnum.NoApplicationUrl,\n      // All environments with lianaVersion defined\n      // Example: currently deployed environment doesn't have any lianaVersion yet\n      this.project.environments.filter((environment) => Boolean(environment.lianaVersion)),\n    );\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { queryManager } from 'ember-apollo-client';\n\nimport getProjectDatabaseDialect from 'client/gql/utils/get-project-database-dialect';\nimport { generateDeploymentFlow } from 'client/legacy/pods/project/onboarding/flows';\nimport { MULTIPLE_DATABASES } from 'client/utils/database';\n\nexport default class ProjectOnboardingDeploymentRoute extends Route {\n  queryParams = {\n    environmentId: {\n      refreshModel: true,\n    },\n  };\n\n  /** @type {import('@ember/routing/router').default} */\n  @service router;\n\n  /** @type {import('client/legacy/services/server-fetch').default} */\n  @service serverFetch;\n\n  /** @type {import('client/legacy/services/segment-tracker').default} */\n  @service segmentTracker;\n  @service errorHandler;\n\n  @queryManager() apollo;\n\n  titleToken = 'Deploy your project';\n\n  async beforeModel(transition) {\n    super.beforeModel(transition);\n\n    const { project } = this.modelFor('project.onboarding');\n\n    const environments = await project.get('environments');\n    // Find current environment\n    const currentEnvironment = environments.findBy('id', transition.to.queryParams.environmentId);\n\n    if (!currentEnvironment) {\n      transition.abort();\n    }\n  }\n\n  async _fetchEnvironnementSecretKey(environnementId) {\n    try {\n      const response = await this.serverFetch.fetch(\n        `/api/environments/${environnementId}/secretKey`,\n        {\n          method: 'GET',\n        },\n        true,\n      );\n\n      const body = await response.json();\n\n      return body.secretKey;\n    } catch (e) {\n      this.errorHandler.handleSilentError(e);\n      return null;\n    }\n  }\n\n  async model(params) {\n    const { project } = this.modelFor('project.onboarding');\n\n    const { environments } = project;\n    // Find current environment\n    const currentEnvironment = environments.findBy('id', params.environmentId);\n\n    // Find current flow using project architecture and currentEnvironment type\n    const flow = generateDeploymentFlow({ project, environment: currentEnvironment });\n\n    const environmentSecretKey = await this._fetchEnvironnementSecretKey(currentEnvironment.id);\n\n    const projectDatabaseDialect = await getProjectDatabaseDialect(this.apollo, project.id);\n\n    // Transform dedicated flow\n    const stepsKeys = Object.keys(flow.steps);\n\n    return {\n      flow,\n      project,\n      stepsKeys,\n      defaultStep: stepsKeys[0],\n      lastStep: stepsKeys.slice(-1)[0],\n      environmentSecretKey,\n      currentEnvironment,\n      isMultipleDatabasesProject: projectDatabaseDialect?.toLowerCase() === MULTIPLE_DATABASES,\n    };\n  }\n\n  afterModel(model) {\n    super.afterModel(model);\n\n    const { project, currentEnvironment } = model;\n    this.segmentTracker.trackDeploymentFlowStarted({\n      projectId: project.id,\n      projectName: project.name,\n      agent: project.agent,\n      architecture: project.architecture,\n      environmentType: currentEnvironment.type,\n    });\n  }\n\n  async setupController(deploymentController, model) {\n    await super.setupController(deploymentController, model);\n\n    // NOTICE: Default step is the first one\n    let currentStep = model.defaultStep;\n\n    deploymentController.environmentName = model.currentEnvironment.name;\n\n    // NOTICE: Set the right URL params\n    await this.router.replaceWith('project.onboarding.deployment', {\n      queryParams: {\n        step: currentStep,\n        environmentId: model.currentEnvironment.id,\n      },\n    });\n  }\n\n  resetController(deploymentController, isExiting) {\n    if (isExiting) {\n      deploymentController.resetCheckAgentEndpointRunner();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Layout\\n  @isDeployment={{true}}\\n  @phase={{this.phase}}\\n  @title={{this.title}}\\n  @pretitle={{concat \\'Step \\' this.currentStepNumber \\' of \\' this.maxStepNumber}}\\n  @helpBubbleContent={{this.helpBubbleContent}}\\n  @trackBubbleEvent={{this.trackBubbleEventLinkClicked}}\\n  @showLocalNetworkPermissionNotification={{this.showLocalNetworkPermissionNotification}}\\n  @showLocalNetworkPermissionDeniedError={{this.showLocalNetworkPermissionDeniedError}}\\n  @currentOrigin={{this.currentOrigin}}\\n>\\n  <:default>\\n    {{did-insert this.subscribesEnvironmentEvents}}\\n    {{did-insert this.shouldCheckAgentEndpoint}}\\n    {{did-update this.shouldCheckAgentEndpoint this.currentStepKey}}\\n\\n    {{! We want to display any type of IntegrationComponent }}\\n    {{#let (component this.integrationComponent.componentName) as |CustomIntegrationComponent|}}\\n      <CustomIntegrationComponent\\n        @componentArguments={{this.integrationComponent.componentArguments}}\\n        data-instructions-panel-integration-component\\n      />\\n    {{/let}}\\n  </:default>\\n\\n  <:bottom>\\n    <Feature::Onboarding::Layout::Footer\\n      @nextState={{this.nextState}}\\n      @onNext={{this.onGoNext}}\\n      @onRequestPermission={{this.onRequestLocalhostPermission}}\\n      @canBack={{true}}\\n      @onBack={{this.onGoBack}}\\n      @canSkip={{this.canSkip}}\\n      @onSkip={{this.onGoSkip}}\\n    >\\n      <Feature::Onboarding::NeedHelpLink />\\n    </Feature::Onboarding::Layout::Footer>\\n  </:bottom>\\n</Feature::Onboarding::Layout>\\n', { moduleName: 'client/legacy/pods/project/onboarding/deployment/template.hbs' });\n","import type { HelpBubble } from 'client/legacy/pods/project/onboarding/flows/common';\n\nimport { APPLICATION_URL_STEP_NAME } from 'client/legacy/pods/project/onboarding/flows/common';\n\nexport const buildINeedHelpBubble = (steps?: string[]): HelpBubble => ({\n  steps,\n  question: 'I need help.',\n  answer: {\n    componentName: 'dynamic-onboarding/bubbles-content/i-need-help',\n  },\n});\n\n/**\n * Steps is set to [APPLICATION_URL_STEP_NAME] by default\n */\nexport const buildIDonTKnowWhereToFindThatURL = (\n  steps: string[] = [APPLICATION_URL_STEP_NAME],\n): HelpBubble => ({\n  steps,\n  question: \"I don't know where to find that URL.\",\n  answer: {\n    text: 'This is the URL where you access your application locally.',\n  },\n});\n\n/**\n * Steps is set to [APPLICATION_URL_STEP_NAME] by default\n */\nexport const buildIDonTHaveALocalApp = (\n  steps: string[] | undefined = [APPLICATION_URL_STEP_NAME],\n): HelpBubble => ({\n  steps,\n  question: \"I don't have any local app.\",\n  answer: {\n    componentName: 'dynamic-onboarding/bubbles-content/i-dont-have-a-local-app',\n  },\n});\n\nexport const buildIWantToInstallForestAdminLocally = (\n  steps?: string[] | undefined,\n): HelpBubble => ({\n  steps,\n  question: 'I want to install Forest Admin locally.',\n  answer: {\n    componentName: 'dynamic-onboarding/bubbles-content/i-want-to-install-forest-admin-locally',\n  },\n});\n\nexport const buildIGotAnErrorRunningThisCommand = (steps?: string[] | undefined): HelpBubble => ({\n  steps,\n  question: 'I get an error when I run this command.',\n  answer: {\n    componentName: 'dynamic-onboarding/bubbles-content/i-got-an-error-running-this-command',\n  },\n});\n\nexport const buildIDontKnowHowToSetupMyDatabase = (steps?: string[] | undefined): HelpBubble => ({\n  steps,\n  question: \"I don't know how to setup my database.\",\n  answer: {\n    componentName: 'dynamic-onboarding/bubbles-content/i-dont-know-how-to-setup-my-database',\n  },\n});\n\nexport const buildIWantToIpWhitelist = (steps?: string[] | undefined): HelpBubble => ({\n  steps,\n  question: 'I want to add Forest Admin to the IP whitelist for my database.',\n  answer: {\n    componentName: 'dynamic-onboarding/bubbles-content/i-want-to-ip-whitelist',\n  },\n});\n","import type { ProjectArchitectureEnum } from 'client/data/models/project';\nimport type AbstractOnboardingStepsController from 'client/legacy/abstract-controllers/abstract-onboarding-steps-controller';\nimport type OnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\nimport type { AgentsEnum } from 'client/utils/agent';\nimport type { DatabaseTypeEnum } from 'client/utils/database';\nimport type DatabaseCredentials from 'client/utils/onboarding/database-credentials';\n\nimport config from 'client/config/environment';\n\nexport const APPLICATION_URL_STEP_NAME = 'Application URL';\nexport const START_YOUR_SERVER_STEP_NAME = 'Start your server';\nexport const CREDENTIALS_STEP_NAME = 'Credentials';\nexport const INSTALL_FOREST_PACKAGE_STEP_NAME = 'Install Forest package';\nexport const INITIALIZE_FOREST_ADMIN_STEP_NAME = 'Initialize Forest Admin';\nexport const ENVIRONMENT_VARIABLES_STEP_NAME = 'Environment variables';\n\nexport type VariableDefinition = {\n  name: string;\n  value: string | unknown;\n  iconName?: string;\n  description?: string;\n};\n\n/**\n * You can use HTML in the text version.\n */\nexport type HelpBubbleContent =\n  | {\n      text: string;\n    }\n  | { componentName: string };\n\nexport type HelpBubble = {\n  /**\n   * This array refer to step.name that display the help bubble\n   *\n   * NOTICE: no steps defined, displayed in all steps\n   */\n  steps?: string[];\n  question: string;\n  answer: HelpBubbleContent;\n};\n\nexport type OnboardingStep<TController> = {\n  /**\n   * Used to create breadcrumb step name\n   */\n  name: string;\n\n  /**\n   * Used to display main title name\n   */\n  title: string;\n\n  /**\n   * Used to display the content of the main bubble (under the title)\n   */\n  helpBubbleContent: HelpBubbleContent;\n\n  /**\n   * Used to display the step content. It can be one of the following wrapper already implemented to respond to a variety of steps use cases.\n   *\n   * All components available are defined under:\n   * app/pods/components/dynamic-onboarding/integration/wrapper/\n   */\n  component:\n    | 'highlight'\n    | 'highlight-multiple'\n    | 'selector'\n    | 'selector-with-highlights'\n    | 'selector-with-highlight-tabs'\n    | 'highlight-tabs'\n    | 'application-url'\n    | 'database-credentials'\n    | 'display-variables'\n    | 'admin-panel-generation'\n    | 'environment-name';\n\n  /**\n   * Used to create the connection between controller data logic and template component arguments. componentArguments is an object with keys for each arguments needed by the component.\n   */\n  componentArguments?: Record<string, unknown>;\n\n  /**\n   * Used to enable next button, it's useful to add logic. Default value is true\n   */\n  canGoNext?: boolean | ((controller: TController) => boolean);\n\n  /**\n   * Used to enable back button, it's useful to add logic. Default value is true\n   */\n  canGoBack?: boolean | ((controller: TController) => boolean);\n\n  /**\n   * Used to add custom logic before going to next step. The implementation must be in the controller to use the power of ember (tracked, ect) and to test it.\n   */\n  beforeNext?: (\n    controller: TController,\n    skipped: boolean,\n  ) => Promise<boolean | void> | boolean | void;\n\n  /**\n   * Used to add skip behavior. Default value is false, if set to true it will add the skip button\n   */\n  isSkippable?: boolean;\n\n  /**\n   * Used to add IsAgentRunning behavior. (it tries to call the agent on <apiEndpoint>/forest)\n   */\n  checkIsAgentRunning?: boolean;\n};\n\nexport type OnboardingFlowBase = {\n  /**\n   * Used as datasource Title within the tiles (Framework screen) and on AcceptWaitingList\n   */\n  title: string;\n\n  /**\n   * Used to display category within the tiles\n   */\n  category: string;\n\n  tooltips?: string;\n\n  logoUrl: string;\n  logoUrlDark: string;\n};\n\nexport type OnboardingFlow<TController> = OnboardingFlowBase & {\n  /**\n   * Technical used as flowName (in route queryParams) and Used to fulfil review:flow\n   * @deprecated to remove and merge with flow -> flowName to avoid too many time the same info\n   */\n  name: string;\n\n  /**\n   *  Used when a datasource has been chosen to fullfil project:agent\n   */\n  agent: AgentsEnum;\n\n  /**\n   * Used when a datasource has been chosen to fullfil project:architecture\n   */\n  architecture: `${ProjectArchitectureEnum}`;\n\n  /**\n   * Used when a datasource has been chosen to fullfil project:flow\n   * Mainly for BI usages\n   */\n  flow: string;\n\n  /**\n   * Used all steps for a given flow\n   */\n  steps: Record<string, OnboardingStep<TController>>;\n\n  /**\n   * Used to display the content of the helps bubble for all steps (right panel)\n   */\n  helpCentersContent: Array<HelpBubble>;\n\n  /**\n   * Populate project.databaseType\n   */\n  databaseType?: `${DatabaseTypeEnum}`;\n\n  /**\n   * Internal\n   */\n  type?: string;\n};\n\nexport type OnboardingRedirection = OnboardingFlowBase & {\n  switchDatasourcesList: string;\n};\n\nexport type OnboardingFallback = OnboardingFlowBase & {\n  fallbackToHostingChoices: true;\n};\n\nexport type OnboardingWaitingList = OnboardingFlowBase & {\n  isWaitingList: boolean;\n  isSynchronous: true;\n};\n\nexport type OnboardingSuggestNewOne = OnboardingFlowBase & {\n  isSuggestNewOne: boolean;\n  isSynchronous: true;\n};\n\n// eslint-disable-next-line @typescript-eslint/consistent-type-imports\ntype RawCredentials = import('client/utils/onboarding/database-credentials').RawCredentials;\ntype DatasourceCredentialsStepOptions = {\n  defaultDisplayURI?: boolean;\n  isSkippable?: boolean;\n  helpBubbleContent?: HelpBubbleContent;\n  isCloudOnboarding?: boolean;\n  customValidator?: (creds: DatabaseCredentials) => Record<string, string>;\n  configuration?: Record<string, unknown>;\n};\n\n/**\n * Build steps object from array of OnboardingStep\n */\nexport const buildStepsFromArray = <TController>(\n  arrayOfOrderedSteps: OnboardingStep<TController>[],\n) =>\n  arrayOfOrderedSteps.reduce<Record<string, OnboardingStep<TController>>>((acc, step) => {\n    acc[step.name] = step;\n    return acc;\n  }, {});\n\n// ===================\n// Generic steps\n// ===================\n\nexport const createStepApplicationUrl = <TController extends AbstractOnboardingStepsController>({\n  defaultApplicationUrl = 'http://localhost:3000',\n  title = 'What is your local application URL?',\n  helpBubbleContent = {\n    text: 'We use this URL to generate the right instructions in the next installation steps.',\n  },\n} = {}): OnboardingStep<TController> => ({\n  name: APPLICATION_URL_STEP_NAME,\n  title,\n  helpBubbleContent,\n  component: 'application-url',\n  componentArguments: {\n    setApplicationUrl: (controller: TController) => controller.setApplicationUrl.bind(controller),\n    applicationUrl: (controller: TController) => controller.currentEnvironment.apiEndpoint,\n    defaultApplicationUrl,\n    onSubmit: (controller: TController) => controller.onGoNext.bind(controller),\n    customValidator: (controller: TController) => controller.validateUrl.bind(controller),\n  },\n  canGoNext: (controller: TController) => !!controller.applicationUrl,\n  beforeNext: async (controller: TController) => controller.beforeNextApplicationUrl(),\n  isSkippable: false,\n});\n\nconst shouldUseSpecialHost = <TController extends AbstractOnboardingStepsController>(\n  controller: TController,\n): boolean => {\n  return (\n    (controller as unknown as OnboardingIntegrationController).installation === 'docker'\n    && !navigator.platform.includes('Linux')\n  );\n};\n\nexport const createStepDatasourceCredentials = <\n  TController extends AbstractOnboardingStepsController,\n>(\n  defaultCredentials: RawCredentials,\n  {\n    defaultDisplayURI = false,\n    isSkippable = true,\n    customValidator = null,\n    configuration = {},\n    helpBubbleContent = {\n      componentName: 'dynamic-onboarding/bubbles-content/database-credentials-wont-leave-browser',\n    },\n  }: DatasourceCredentialsStepOptions = {},\n): OnboardingStep<TController> => ({\n  name: CREDENTIALS_STEP_NAME,\n  title: 'Connect your database',\n  helpBubbleContent,\n  component: 'database-credentials',\n  componentArguments: {\n    setDatabaseCredentials: (controller: TController) =>\n      controller.setDatabaseCredentials.bind(controller),\n    defaultCredentials: (controller: TController) =>\n      controller.databaseCredentials || {\n        ...defaultCredentials,\n        host: shouldUseSpecialHost(controller) ? 'host.docker.internal' : defaultCredentials.host,\n      },\n    onSubmit: (controller: TController) => controller.onGoNext.bind(controller),\n    showValidationErrors: (controller: TController) => controller.showCredentialValidationErrors,\n    defaultDisplayURI,\n    isCloudOnboarding: false,\n    customValidator: () => customValidator,\n    configuration,\n  },\n  canGoNext: (controller: TController) =>\n    Boolean(!controller.showCredentialValidationErrors || controller.temporaryDatabaseCredentials),\n  beforeNext: async (controller: TController, skipped: boolean) =>\n    controller.beforeNextDatabaseCredentials(skipped),\n  isSkippable,\n});\n\nexport const createStepDatasourceCredentialsCloud = <\n  TController extends AbstractOnboardingStepsController,\n>(\n  defaultCredentials: RawCredentials,\n  options: DatasourceCredentialsStepOptions = {},\n): OnboardingStep<TController> => {\n  options.isSkippable = false;\n\n  const step = createStepDatasourceCredentials<TController>(defaultCredentials, options);\n\n  // override the step to make a the cloud onboarding step\n  step.componentArguments.isCloudOnboarding = true;\n  step.componentArguments.deploymentError = (controller: OnboardingIntegrationController) =>\n    controller.deploymentError;\n  step.componentArguments.fetchSshKeysForFullHostedAgent = (controller: TController) =>\n    controller.fetchSshKeysForFullHostedAgent.bind(controller);\n  return step;\n};\n\n// ===================\n// Helpers\n// ===================\n\nexport const isNotForestProductionServer =\n  config.APP.apiServerHost !== 'https://api.forestadmin.com';\n","import type { RawCredentials } from 'client/utils/onboarding/database-credentials';\n\nimport { mariaDbDefaultCredentials } from 'client/legacy/pods/project/onboarding/flows/databases/maria-db';\nimport { microsoftSqlDefaultCredentials } from 'client/legacy/pods/project/onboarding/flows/databases/microsoft-sql';\nimport { mongoDbDefaultCredentials } from 'client/legacy/pods/project/onboarding/flows/databases/mongo-db';\nimport { mySqlDefaultCredentials } from 'client/legacy/pods/project/onboarding/flows/databases/my-sql';\nimport { postgresSqlDefaultCredentials } from 'client/legacy/pods/project/onboarding/flows/databases/postgres-sql';\nimport { DatabaseTypeEnum } from 'client/utils/database';\nimport objectMap from 'client/utils/object-map';\n\nconst defaultDatabaseCredentials: Record<DatabaseTypeEnum, RawCredentials> = {\n  [DatabaseTypeEnum.Postgresql]: postgresSqlDefaultCredentials,\n  [DatabaseTypeEnum.MariaDB]: mariaDbDefaultCredentials,\n  [DatabaseTypeEnum.MicrosoftSQLServer]: microsoftSqlDefaultCredentials,\n  [DatabaseTypeEnum.MySQL]: mySqlDefaultCredentials,\n  [DatabaseTypeEnum.MongoDB]: mongoDbDefaultCredentials,\n};\n\nconst defaultCloudDatabaseCredentials = objectMap<DatabaseTypeEnum, RawCredentials>(\n  defaultDatabaseCredentials,\n  (value) => ({\n    ...value,\n    host: '',\n  }),\n);\n\nexport default defaultCloudDatabaseCredentials;\n","import type { OnboardingFlow } from 'client/legacy/pods/project/onboarding/flows/common';\nimport type OnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\nimport type { RawCredentials } from 'client/utils/onboarding/database-credentials';\n\nimport { helpCentersContent } from 'client/legacy/pods/project/onboarding/flows/installation/microservice/microservice-common';\nimport { DatabaseTypeEnum } from 'client/utils/database';\n\nconst mariaDbDefaultCredentials: RawCredentials = {\n  type: DatabaseTypeEnum.MariaDB,\n  host: 'localhost',\n  port: '3306',\n  username: null,\n  password: null,\n  databaseName: null,\n  useSSL: false,\n};\n\nconst mariaDbMinimalFlow: Pick<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'title' | 'logoUrl' | 'logoUrlDark' | 'databaseType'\n> = {\n  title: 'MariaDB',\n  logoUrl: 'mariadb-light.svg',\n  logoUrlDark: 'mariadb-dark.svg',\n  databaseType: 'mariadb',\n};\n\nconst mariaDbDefaultFlow: Omit<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'steps' | 'agent' | 'architecture'\n> = {\n  ...mariaDbMinimalFlow,\n  name: 'MariaDB',\n  category: 'Database',\n  flow: 'mariadb',\n  helpCentersContent,\n};\n\nexport { mariaDbMinimalFlow, mariaDbDefaultFlow, mariaDbDefaultCredentials };\n","import type { OnboardingFlow } from 'client/legacy/pods/project/onboarding/flows/common';\nimport type OnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\nimport type { RawCredentials } from 'client/utils/onboarding/database-credentials';\n\nimport { helpCentersContent } from 'client/legacy/pods/project/onboarding/flows/installation/microservice/microservice-common';\nimport { DatabaseTypeEnum } from 'client/utils/database';\n\nconst microsoftSqlDefaultCredentials: RawCredentials = {\n  type: DatabaseTypeEnum.MicrosoftSQLServer,\n  host: 'localhost',\n  port: '1433',\n  username: null,\n  password: null,\n  databaseName: null,\n  useSSL: false,\n  schema: 'dbo',\n};\n\nconst microsoftSqlMinimalFlow: Pick<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'title' | 'logoUrl' | 'logoUrlDark' | 'databaseType'\n> = {\n  title: 'MicrosoftSQL',\n  logoUrl: 'mssql-light.svg',\n  logoUrlDark: 'mssql-dark.svg',\n  databaseType: 'mssql',\n};\n\nconst microsoftSqlDefaultFlow: Omit<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'steps' | 'agent' | 'architecture'\n> = {\n  ...microsoftSqlMinimalFlow,\n  name: 'MicrosoftSQL',\n  category: 'Database',\n  flow: 'microsoftsql',\n  helpCentersContent,\n};\n\nexport { microsoftSqlMinimalFlow, microsoftSqlDefaultFlow, microsoftSqlDefaultCredentials };\n","export default {\n  isSuggestNewOne: true,\n  title: \"Don't see your database?\",\n  logoUrl: 'suggest-datasource-light.svg',\n  logoUrlDark: 'suggest-datasource-dark.svg',\n  category: 'Let us know!',\n  isSynchronous: true,\n};\n","import type { OnboardingFlow } from 'client/legacy/pods/project/onboarding/flows/common';\nimport type OnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\nimport type { RawCredentials } from 'client/utils/onboarding/database-credentials';\nimport type DatabaseCredentials from 'client/utils/onboarding/database-credentials';\n\nimport { CREDENTIALS_STEP_NAME } from 'client/legacy/pods/project/onboarding/flows/common';\nimport { helpCentersContent } from 'client/legacy/pods/project/onboarding/flows/installation/microservice/microservice-common';\nimport { DatabaseTypeEnum } from 'client/utils/database';\n\nconst mongoAtlasDefaultCredentials: RawCredentials = {\n  type: DatabaseTypeEnum.MongoDB,\n  host: null,\n  port: null,\n  username: null,\n  password: null,\n  databaseName: null,\n  useSSL: true,\n  useSRV: true,\n  authSource: null,\n};\n\nconst mongoAtlasMinimalFlow: Pick<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'title' | 'logoUrl' | 'logoUrlDark' | 'databaseType'\n> = {\n  title: 'MongoDB Atlas',\n  logoUrl: 'mongodb-atlas-light.svg',\n  logoUrlDark: 'mongodb-atlas-dark.svg',\n  databaseType: 'mongodb',\n};\n\nconst mongoAtlasDefaultFlow: Omit<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'steps' | 'agent' | 'architecture'\n> = {\n  ...mongoAtlasMinimalFlow,\n  name: 'MongoDB Atlas',\n  category: 'Cloud database',\n  flow: 'mongodb-atlas',\n  helpCentersContent: [\n    ...helpCentersContent,\n    {\n      steps: [CREDENTIALS_STEP_NAME],\n      question: \"I can't find my credentials Mongo Atlas.\",\n      answer: {\n        componentName: 'dynamic-onboarding/bubbles-content/i-am-using-mongo-atlas',\n      },\n    },\n  ],\n};\n\nconst ATLAS_CONNECTION_URI_EXAMPLE =\n  'Example of MongoDB Atlas URI: mongodb+srv://<username>:<password>@clustername.mongodb.net/databaseName?retryWrites=true&w=majority';\n\nconst mongoAtlasCredentialsValidator = (databaseCredentials: DatabaseCredentials) => {\n  const errorsDisplayed: { host?: string; connectionURI?: string } = {};\n\n  if (!/^[a-zA-Z0-9-_.]+\\.mongodb(-dev)?\\.net$/.test(databaseCredentials.host)) {\n    errorsDisplayed.host = 'Atlas host looks like: clustername.mongodb.net';\n    errorsDisplayed.connectionURI = ATLAS_CONNECTION_URI_EXAMPLE;\n  }\n\n  return ['username', 'password'].reduce((errors, field) => {\n    if (!databaseCredentials[field]) {\n      errors[field] = 'This field is required';\n      errors.connectionURI = ATLAS_CONNECTION_URI_EXAMPLE;\n    }\n    return errors;\n  }, errorsDisplayed);\n};\n\nexport {\n  mongoAtlasMinimalFlow,\n  mongoAtlasDefaultFlow,\n  mongoAtlasDefaultCredentials,\n  mongoAtlasCredentialsValidator,\n};\n","import type { OnboardingFlow } from 'client/legacy/pods/project/onboarding/flows/common';\nimport type OnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\nimport type { RawCredentials } from 'client/utils/onboarding/database-credentials';\n\nimport { CREDENTIALS_STEP_NAME } from 'client/legacy/pods/project/onboarding/flows/common';\nimport { helpCentersContent } from 'client/legacy/pods/project/onboarding/flows/installation/microservice/microservice-common';\nimport { DatabaseTypeEnum } from 'client/utils/database';\n\nconst mongoDbDefaultCredentials: RawCredentials = {\n  type: DatabaseTypeEnum.MongoDB,\n  host: 'localhost',\n  port: '27017',\n  username: null,\n  password: null,\n  databaseName: null,\n  useSSL: false,\n  useSRV: false,\n  authSource: null,\n};\n\nconst mongoDbMinimalFlow: Pick<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'title' | 'logoUrl' | 'logoUrlDark' | 'databaseType'\n> = {\n  title: 'MongoDB',\n  logoUrl: 'mongodb-light.svg',\n  logoUrlDark: 'mongodb-dark.svg',\n  databaseType: 'mongodb',\n};\n\nconst mongoDbDefaultFlow: Omit<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'steps' | 'agent' | 'architecture'\n> = {\n  ...mongoDbMinimalFlow,\n  name: 'MongoDB',\n  category: 'Database',\n  flow: 'mongodb',\n  helpCentersContent: [\n    ...helpCentersContent,\n    {\n      steps: [CREDENTIALS_STEP_NAME],\n      question: \"I am using Mongo Atlas and I can't find my credentials.\",\n      answer: {\n        componentName: 'dynamic-onboarding/bubbles-content/i-am-using-mongo-atlas',\n      },\n    },\n  ],\n};\n\nexport { mongoDbMinimalFlow, mongoDbDefaultFlow, mongoDbDefaultCredentials };\n","import type { OnboardingFlow } from 'client/legacy/pods/project/onboarding/flows/common';\nimport type OnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\nimport type { RawCredentials } from 'client/utils/onboarding/database-credentials';\n\nimport { helpCentersContent } from 'client/legacy/pods/project/onboarding/flows/installation/microservice/microservice-common';\nimport { DatabaseTypeEnum } from 'client/utils/database';\n\nconst mySqlDefaultCredentials: RawCredentials = {\n  type: DatabaseTypeEnum.MySQL,\n  host: 'localhost',\n  port: '3306',\n  username: null,\n  password: null,\n  databaseName: null,\n  useSSL: false,\n};\n\nconst mySqlMinimalFlow: Pick<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'title' | 'logoUrl' | 'logoUrlDark' | 'databaseType'\n> = {\n  title: 'MySQL',\n  logoUrl: 'mysql-light.svg',\n  logoUrlDark: 'mysql-dark.svg',\n  databaseType: 'mysql',\n};\n\nconst mySqlDefaultFlow: Omit<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'steps' | 'agent' | 'architecture'\n> = {\n  ...mySqlMinimalFlow,\n  name: 'MySQL',\n  category: 'Database',\n  flow: 'mysql',\n  helpCentersContent,\n};\n\nexport { mySqlMinimalFlow, mySqlDefaultFlow, mySqlDefaultCredentials };\n","import type { OnboardingFlow } from 'client/legacy/pods/project/onboarding/flows/common';\nimport type OnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\nimport type { RawCredentials } from 'client/utils/onboarding/database-credentials';\n\nimport { helpCentersContent } from 'client/legacy/pods/project/onboarding/flows/installation/microservice/microservice-common';\nimport { DatabaseTypeEnum } from 'client/utils/database';\n\nconst postgresSqlDefaultCredentials: RawCredentials = {\n  type: DatabaseTypeEnum.Postgresql,\n  host: 'localhost',\n  port: '5432',\n  username: null,\n  password: null,\n  databaseName: null,\n  useSSL: false,\n  schema: 'public',\n};\n\nconst postgresSqlMinimalFlow: Pick<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'title' | 'logoUrl' | 'logoUrlDark' | 'databaseType'\n> = {\n  title: 'PostgreSQL',\n  logoUrl: 'postgres-light.svg',\n  logoUrlDark: 'postgres-dark.svg',\n  databaseType: 'postgres',\n};\n\nconst postgresSqlDefaultFlow: Omit<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'steps' | 'agent' | 'architecture'\n> = {\n  ...postgresSqlMinimalFlow,\n  name: 'PostgreSQL',\n  category: 'Database',\n  flow: 'postgresql',\n  helpCentersContent,\n};\n\nexport { postgresSqlMinimalFlow, postgresSqlDefaultFlow, postgresSqlDefaultCredentials };\n","import type { OnboardingFlow } from 'client/legacy/pods/project/onboarding/flows/common';\nimport type OnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\nimport type { RawCredentials } from 'client/utils/onboarding/database-credentials';\n\nimport { helpCentersContent } from 'client/legacy/pods/project/onboarding/flows/installation/microservice/microservice-common';\nimport { DATABASE_DEFAULT_VALUES } from 'client/utils/database';\n\nexport const supabaseDefaultCredentials: RawCredentials = {\n  ...DATABASE_DEFAULT_VALUES.postgres,\n  username: 'postgres',\n  databaseName: 'postgres',\n  useSSL: true,\n  schema: 'public',\n};\n\nexport const supabaseMinimalFlow: Pick<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'title' | 'logoUrl' | 'logoUrlDark' | 'databaseType'\n> = {\n  title: 'Supabase',\n  logoUrl: 'supabase-light.svg',\n  logoUrlDark: 'supabase-dark.svg',\n  databaseType: 'postgres',\n};\n\nexport const supabaseDefaultFlow: Omit<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'steps' | 'agent' | 'architecture'\n> = {\n  ...supabaseMinimalFlow,\n  name: 'Supabase',\n  category: 'Database',\n  flow: 'supabase',\n  helpCentersContent,\n};\n","import type EnvironmentModel from 'client/data/models/environment';\nimport type ProjectModel from 'client/data/models/project';\nimport type OnboardingDeploymentController from 'client/legacy/pods/project/onboarding/deployment/controller';\nimport type {\n  HelpBubble,\n  OnboardingStep,\n  VariableDefinition,\n} from 'client/legacy/pods/project/onboarding/flows/common';\n\nimport config from 'client/config/environment';\nimport {\n  APPLICATION_URL_STEP_NAME,\n  ENVIRONMENT_VARIABLES_STEP_NAME,\n  createStepApplicationUrl,\n  isNotForestProductionServer,\n} from 'client/legacy/pods/project/onboarding/flows/common';\nimport { buildINeedHelpBubble } from 'client/legacy/pods/project/onboarding/flows/common-bubbles';\nimport { AgentsEnum } from 'client/utils/agent';\nimport generateAuthSecret from 'client/utils/secret-key-generator';\n\nexport type DeploymentIntegrationStep = OnboardingStep<OnboardingDeploymentController>;\n\nexport const ENVIRONMENT_NAME_STEP_NAME = 'Environment name';\n\nexport const createDeploymentStepApplicationUrl = (deploymentType: string) =>\n  createStepApplicationUrl<OnboardingDeploymentController>({\n    defaultApplicationUrl: 'https://yourdomain.com',\n    title: `Deploy your admin backend to ${deploymentType}`,\n    helpBubbleContent: {\n      text: `First, deploy your admin backend to ${deploymentType} and provide the URL to access it. It must be in HTTPS to work.`,\n    },\n  });\n\nexport function createDeploymentStepEnvironmentName(): DeploymentIntegrationStep {\n  return {\n    name: ENVIRONMENT_NAME_STEP_NAME,\n    title: 'Choose a name for your environment',\n    component: 'environment-name',\n    componentArguments: {\n      setEnvironmentName: (controller: OnboardingDeploymentController) =>\n        controller.setEnvironmentName.bind(controller),\n      isNameAvailable: (controller: OnboardingDeploymentController) =>\n        controller.isEnvironmentNameAvailable,\n      isLoading: (controller: OnboardingDeploymentController) =>\n        controller.isCheckingEnvironmentName,\n      environmentName: (controller: OnboardingDeploymentController) => controller.environmentName,\n      onSubmit: (controller: OnboardingDeploymentController) =>\n        controller.onGoNext.bind(controller),\n    },\n    helpBubbleContent: {\n      text: 'This name is used to identify your environment.',\n    },\n    beforeNext: (controller: OnboardingDeploymentController) =>\n      controller.beforeNextEnvironmentName(),\n    canGoNext: (controller: OnboardingDeploymentController) =>\n      !controller.isCheckingEnvironmentName && controller.isEnvironmentNameAvailable,\n  };\n}\n\nexport const createDeploymentStepSetEnvironmentVariablesAndRestartYourServer = (\n  makeGenerateEnvironmentVariables: (\n    controller: OnboardingDeploymentController,\n  ) => VariableDefinition[],\n): DeploymentIntegrationStep => {\n  return {\n    name: ENVIRONMENT_VARIABLES_STEP_NAME,\n    title: 'Configure your environment variables',\n    helpBubbleContent: {\n      componentName: 'dynamic-onboarding/bubbles-content/how-it-works-agent-node-js',\n    },\n    component: 'display-variables',\n    componentArguments: {\n      title: 'Add these environment variables to your project',\n      variables: makeGenerateEnvironmentVariables,\n      banner: 'Your server must be restarted after setting your environment variables.',\n    },\n    canGoNext: (controller: OnboardingDeploymentController) =>\n      Boolean(controller.currentEnvironment.isActive) && controller.isAgentResponding,\n    checkIsAgentRunning: true,\n  };\n};\nexport function generateHelpCentersContent({ project }: { project: ProjectModel }): HelpBubble[] {\n  return [\n    {\n      steps: [APPLICATION_URL_STEP_NAME],\n      question: 'I want to deploy on Heroku.',\n      answer: {\n        componentName: 'dynamic-onboarding/bubbles-content/deploy-on-heroku',\n      },\n    },\n\n    {\n      steps: [APPLICATION_URL_STEP_NAME],\n      question: 'I want to deploy on Ubuntu Server.',\n      answer: {\n        componentName: 'dynamic-onboarding/bubbles-content/deploy-on-ubuntu',\n      },\n    },\n\n    {\n      steps: [APPLICATION_URL_STEP_NAME],\n      question: \"I don't know where to find that URL.\",\n      answer: {\n        text: 'This is the URL where you access your application online.',\n      },\n    },\n\n    {\n      steps: [APPLICATION_URL_STEP_NAME],\n      question: 'I want to deploy on Google Cloud Platform.',\n      answer: {\n        componentName: 'dynamic-onboarding/bubbles-content/deploy-on-google-cloud-platform',\n      },\n    },\n\n    {\n      steps: [ENVIRONMENT_VARIABLES_STEP_NAME],\n      question: \"I've set my environment variables but nothing happens.\",\n      answer: {\n        componentName: 'dynamic-onboarding/bubbles-content/nothing-happens',\n      },\n    },\n\n    ...([AgentsEnum.NodeJS, AgentsEnum.ExpressMongoose, AgentsEnum.ExpressSequelize].includes(\n      project.agent as AgentsEnum,\n    )\n      ? [\n          {\n            steps: [ENVIRONMENT_VARIABLES_STEP_NAME],\n            question: 'I don’t use environment variables in my project.',\n            answer: {\n              componentName: 'dynamic-onboarding/bubbles-content/i-dont-use-environment-variables',\n            },\n          } as HelpBubble,\n        ]\n      : []),\n\n    {\n      steps: [ENVIRONMENT_VARIABLES_STEP_NAME],\n      question: 'I’m using Heroku and I don’t find where I can do that.',\n      answer: {\n        componentName: 'dynamic-onboarding/bubbles-content/heroku-environment-variables',\n      },\n    },\n\n    buildINeedHelpBubble(),\n  ];\n}\n\nfunction generateApplicationUrl({\n  project,\n  environment,\n  allEnvironmentsSupportsNoApplicationUrl,\n}: {\n  project: ProjectModel;\n  environment: EnvironmentModel;\n  allEnvironmentsSupportsNoApplicationUrl: boolean;\n}) {\n  let name: string;\n\n  // NOTICE: When all environments from the project support the feature\n  // we should not display it at all\n  if (allEnvironmentsSupportsNoApplicationUrl) {\n    return [];\n  }\n\n  switch (project.agent) {\n    case AgentsEnum.RubyOnRails:\n      name = 'FOREST_APPLICATION_URL';\n      break;\n    case AgentsEnum.NodeJS:\n      name = 'FOREST_AGENT_URL';\n      break;\n    default:\n      name = 'APPLICATION_URL';\n  }\n\n  return [\n    {\n      name,\n      value: environment.apiEndpoint,\n    },\n  ];\n}\n\nfunction generateDevVariables({ project }: { project: ProjectModel }): VariableDefinition[] {\n  if (isNotForestProductionServer) {\n    return [\n      {\n        name: project.agent === AgentsEnum.NodeJS ? 'FOREST_SERVER_URL' : 'FOREST_URL',\n        value: config.APP.apiServerHost,\n      },\n      {\n        name: 'NODE_TLS_REJECT_UNAUTHORIZED',\n        value: '0',\n      },\n    ];\n  }\n\n  return [];\n}\n\nfunction generateNodeVariables({\n  project,\n  environment,\n}: {\n  project: ProjectModel;\n  environment: EnvironmentModel;\n}) {\n  if (\n    [AgentsEnum.NodeJS, AgentsEnum.ExpressMongoose, AgentsEnum.ExpressSequelize].includes(\n      project.agent as AgentsEnum,\n    )\n  ) {\n    return [\n      {\n        name: 'NODE_ENV',\n        value: environment.type === 'production' ? 'production' : 'staging',\n      },\n    ];\n  }\n\n  return [];\n}\n\nexport function generateEnvironmentVariables(\n  controller: OnboardingDeploymentController,\n): VariableDefinition[] {\n  const generationParams = {\n    project: controller.project,\n    environment: controller.currentEnvironment,\n    allEnvironmentsSupportsNoApplicationUrl: controller.allEnvironmentsSupportsNoApplicationUrl,\n  };\n  return [\n    { name: 'FOREST_ENV_SECRET', value: controller.environmentSecretKey },\n    { name: 'FOREST_AUTH_SECRET', value: generateAuthSecret() },\n    ...generateApplicationUrl(generationParams),\n    ...generateDevVariables(generationParams),\n    ...generateNodeVariables(generationParams),\n  ];\n}\n","import type EnvironmentModel from 'client/data/models/environment';\n\nimport { buildStepsFromArray } from 'client/legacy/pods/project/onboarding/flows/common';\nimport {\n  createDeploymentStepApplicationUrl,\n  createDeploymentStepEnvironmentName,\n  createDeploymentStepSetEnvironmentVariablesAndRestartYourServer,\n  generateEnvironmentVariables,\n} from 'client/legacy/pods/project/onboarding/flows/deployment/common-deployment';\n\nexport default function createInAppSteps({ environment }: { environment: EnvironmentModel }) {\n  return buildStepsFromArray([\n    createDeploymentStepEnvironmentName(),\n    createDeploymentStepApplicationUrl(environment.type),\n    createDeploymentStepSetEnvironmentVariablesAndRestartYourServer(generateEnvironmentVariables),\n  ]);\n}\n","import type EnvironmentModel from 'client/data/models/environment';\nimport type ProjectModel from 'client/data/models/project';\nimport type OnboardingDeploymentController from 'client/legacy/pods/project/onboarding/deployment/controller';\nimport type { OnboardingFlow } from 'client/legacy/pods/project/onboarding/flows/common';\n\nimport { generateHelpCentersContent } from 'client/legacy/pods/project/onboarding/flows/deployment/common-deployment';\nimport createInAppSteps from 'client/legacy/pods/project/onboarding/flows/deployment/in-app-deployment';\nimport createMicroserviceSteps from 'client/legacy/pods/project/onboarding/flows/deployment/microservice-deployment';\n\nexport default function generateFlow({\n  project,\n  environment,\n}: {\n  project: ProjectModel;\n  environment: EnvironmentModel;\n}): Pick<\n  OnboardingFlow<OnboardingDeploymentController>,\n  'architecture' | 'type' | 'helpCentersContent' | 'steps'\n> {\n  return {\n    architecture: project.architecture,\n    type: environment.type,\n    helpCentersContent: generateHelpCentersContent({ project }),\n    steps:\n      project.architecture === 'in-app'\n        ? createInAppSteps({ environment })\n        : createMicroserviceSteps({ project, environment }),\n  };\n}\n","import type EnvironmentModel from 'client/data/models/environment';\nimport type ProjectModel from 'client/data/models/project';\nimport type OnboardingDeploymentController from 'client/legacy/pods/project/onboarding/deployment/controller';\n\nimport {\n  buildStepsFromArray,\n  createStepDatasourceCredentials,\n} from 'client/legacy/pods/project/onboarding/flows/common';\nimport {\n  createDeploymentStepApplicationUrl,\n  createDeploymentStepEnvironmentName,\n  createDeploymentStepSetEnvironmentVariablesAndRestartYourServer,\n  generateEnvironmentVariables,\n} from 'client/legacy/pods/project/onboarding/flows/deployment/common-deployment';\nimport { DATABASE_DEFAULT_VALUES, DatabaseTypeEnum } from 'client/utils/database';\n\nexport function generateMicroServiceEnvironmentVariables(\n  controller: OnboardingDeploymentController,\n) {\n  const environmentVariables = generateEnvironmentVariables(controller);\n\n  // NOTICE: we need to handle multiple databases setup\n  // described here https://docs.forestadmin.com/documentation/how-tos/databases/add-new-databases\n\n  if (controller.isMultipleDatabasesProject) {\n    environmentVariables.pushObject({\n      name: 'DATABASE_URL',\n      value: '',\n      iconName: 'info',\n      description:\n        'We noticed you are using several databases: you will need to add one environment variable per database url (the names should match the ones from your .env file). https://docs.forestadmin.com/documentation/how-tos/databases/add-new-databases',\n    });\n  } else {\n    environmentVariables.push({\n      name: 'DATABASE_URL',\n      value: controller.databaseConnectionString,\n      iconName: 'info',\n      description: `This environment variable is the connection string for your ${controller.currentEnvironment.type} database.`,\n    });\n  }\n\n  if (controller.databaseCredentials?.useSSL) {\n    environmentVariables.pushObject({\n      name: 'DATABASE_SSL',\n      value: 'true',\n    });\n  }\n\n  if (controller.databaseCredentials?.schema) {\n    environmentVariables.pushObject({\n      name: 'DATABASE_SCHEMA',\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n      value: controller.databaseCredentials.schema,\n    });\n  }\n\n  return environmentVariables;\n}\nexport default function createMicroserviceSteps({\n  environment,\n  project,\n}: {\n  project: ProjectModel;\n  environment: EnvironmentModel;\n}) {\n  return buildStepsFromArray([\n    createDeploymentStepEnvironmentName(),\n    createDeploymentStepApplicationUrl(environment.type),\n    createStepDatasourceCredentials<OnboardingDeploymentController>(\n      // NOTICE: Some project doesn't have databaseType set so fallback to default Postgresql config\n      DATABASE_DEFAULT_VALUES[project.databaseType || DatabaseTypeEnum.Postgresql],\n    ),\n    createDeploymentStepSetEnvironmentVariablesAndRestartYourServer(\n      generateMicroServiceEnvironmentVariables,\n    ),\n  ]);\n}\n","import type { OnboardingIntegrationStep } from 'client/legacy/pods/project/onboarding/flows/installation/common-installation';\nimport type { RawCredentialsCloud } from 'client/utils/onboarding/database-credentials-cloud';\n\nimport {\n  buildStepsFromArray,\n  createStepDatasourceCredentialsCloud,\n} from 'client/legacy/pods/project/onboarding/flows/common';\n\nexport const WAITING_STEP_NAME = 'Deploying your project…' as const;\nexport const createWaitingStep = (): OnboardingIntegrationStep => ({\n  name: WAITING_STEP_NAME,\n  title: WAITING_STEP_NAME,\n  helpBubbleContent: {\n    text: 'Hang on, we’re almost there! Without Forest Admin, you would have spent months of building.',\n  },\n  component: 'admin-panel-generation',\n  canGoNext: false,\n  canGoBack: false,\n});\n\nconst helpBubbleContent = {\n  text: 'All you have to do is to enter your database credentials to see the magic happen!',\n};\n\nexport function commonValidator(creds: RawCredentialsCloud) {\n  if (creds.ssh?.isEnabled) return null; // No localhost check is needed through ssh\n  const msg = 'Database must be publicly accessible.';\n  return creds.host === 'localhost' || creds.host === '127.0.0.1' || creds.host === '::1'\n    ? { host: msg, connectionURI: msg }\n    : null;\n}\n\nexport const createCloudSteps = (flowCredentials: RawCredentialsCloud) =>\n  buildStepsFromArray([\n    createStepDatasourceCredentialsCloud(flowCredentials, {\n      customValidator: commonValidator,\n      helpBubbleContent,\n    }),\n    createWaitingStep(),\n  ]);\n","import type OnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\nimport type { RawCredentialsCloud } from 'client/utils/onboarding/database-credentials-cloud';\n\nimport {\n  type OnboardingFlow,\n  buildStepsFromArray,\n  createStepDatasourceCredentialsCloud,\n} from 'client/legacy/pods/project/onboarding/flows/common';\nimport {\n  buildIDontKnowHowToSetupMyDatabase,\n  buildINeedHelpBubble,\n  buildIWantToInstallForestAdminLocally,\n  buildIWantToIpWhitelist,\n} from 'client/legacy/pods/project/onboarding/flows/common-bubbles';\nimport {\n  mariaDbDefaultCredentials,\n  mariaDbDefaultFlow,\n} from 'client/legacy/pods/project/onboarding/flows/databases/maria-db';\nimport {\n  microsoftSqlDefaultCredentials,\n  microsoftSqlDefaultFlow,\n} from 'client/legacy/pods/project/onboarding/flows/databases/microsoft-sql';\nimport {\n  mongoAtlasDefaultCredentials,\n  mongoAtlasDefaultFlow,\n} from 'client/legacy/pods/project/onboarding/flows/databases/mongo-atlas';\nimport {\n  mongoDbDefaultCredentials,\n  mongoDbDefaultFlow,\n} from 'client/legacy/pods/project/onboarding/flows/databases/mongo-db';\nimport {\n  mySqlDefaultCredentials,\n  mySqlDefaultFlow,\n} from 'client/legacy/pods/project/onboarding/flows/databases/my-sql';\nimport {\n  postgresSqlDefaultCredentials,\n  postgresSqlDefaultFlow,\n} from 'client/legacy/pods/project/onboarding/flows/databases/postgres-sql';\nimport {\n  supabaseDefaultCredentials,\n  supabaseDefaultFlow,\n} from 'client/legacy/pods/project/onboarding/flows/databases/supabase';\nimport {\n  commonValidator,\n  createCloudSteps,\n  createWaitingStep,\n} from 'client/legacy/pods/project/onboarding/flows/installation/cloud/common';\nimport { AgentsEnum } from 'client/utils/agent';\n\nconst genericCloudHelpCentersContent = [\n  buildINeedHelpBubble(),\n  buildIDontKnowHowToSetupMyDatabase(),\n  buildIWantToIpWhitelist(),\n  buildIWantToInstallForestAdminLocally(),\n];\n\nconst mariaDbCloudFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  ...mariaDbDefaultFlow,\n  name: `${mariaDbDefaultFlow.name}Cloud`,\n  architecture: 'cloud',\n  agent: AgentsEnum.NodeJS,\n  steps: createCloudSteps({ ...mariaDbDefaultCredentials, host: '' }),\n  helpCentersContent: genericCloudHelpCentersContent,\n};\n\nconst microsoftSqlCloudFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  ...microsoftSqlDefaultFlow,\n  name: `${microsoftSqlDefaultFlow.name}Cloud`,\n  architecture: 'cloud',\n  agent: AgentsEnum.NodeJS,\n  steps: createCloudSteps({ ...microsoftSqlDefaultCredentials, host: '' }),\n  helpCentersContent: genericCloudHelpCentersContent,\n};\n\nconst mySqlCloudFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  ...mySqlDefaultFlow,\n  name: `${mySqlDefaultFlow.name}Cloud`,\n  architecture: 'cloud',\n  agent: AgentsEnum.NodeJS,\n  steps: createCloudSteps({ ...mySqlDefaultCredentials, host: '' }),\n  helpCentersContent: genericCloudHelpCentersContent,\n};\n\nconst postgresSqlCloudFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  ...postgresSqlDefaultFlow,\n  name: `${postgresSqlDefaultFlow.name}Cloud`,\n  architecture: 'cloud',\n  agent: AgentsEnum.NodeJS,\n  steps: createCloudSteps({ ...postgresSqlDefaultCredentials, host: '' }),\n  helpCentersContent: genericCloudHelpCentersContent,\n};\n\nconst supabaseCloudFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  ...supabaseDefaultFlow,\n  name: `${supabaseDefaultFlow.name}Cloud`,\n  architecture: 'cloud',\n  agent: AgentsEnum.NodeJS,\n  steps: buildStepsFromArray([\n    createStepDatasourceCredentialsCloud(\n      { ...supabaseDefaultCredentials, useSSL: false },\n      {\n        customValidator: (creds: RawCredentialsCloud) => {\n          if (!creds.host.includes('pooler')) {\n            const msg = `Please use the 'Transaction pooler' connection string.`;\n            return { host: msg, connectionURI: msg };\n          }\n\n          return commonValidator(creds);\n        },\n      },\n    ),\n    createWaitingStep(),\n  ]),\n  helpCentersContent: genericCloudHelpCentersContent,\n};\n\nconst mongoDbCloudFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  ...mongoDbDefaultFlow,\n  name: `${mongoDbDefaultFlow.name}Cloud`,\n  architecture: 'cloud',\n  agent: AgentsEnum.NodeJS,\n  steps: createCloudSteps({ ...mongoDbDefaultCredentials, host: '' }),\n  helpCentersContent: genericCloudHelpCentersContent,\n};\n\nconst mongoAtlasCloudFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  ...mongoAtlasDefaultFlow,\n  name: `${mongoAtlasDefaultFlow.name}Cloud`,\n  architecture: 'cloud',\n  agent: AgentsEnum.NodeJS,\n  steps: createCloudSteps({ ...mongoAtlasDefaultCredentials, host: '' }),\n  helpCentersContent: genericCloudHelpCentersContent,\n};\n\nconst cloudFlows = [\n  postgresSqlCloudFlow,\n  mySqlCloudFlow,\n  mariaDbCloudFlow,\n  microsoftSqlCloudFlow,\n  supabaseCloudFlow,\n  mongoDbCloudFlow,\n  mongoAtlasCloudFlow,\n];\n\nexport default cloudFlows;\n","import type { OnboardingStep } from 'client/legacy/pods/project/onboarding/flows/common';\nimport type OnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\n\nimport { START_YOUR_SERVER_STEP_NAME } from 'client/legacy/pods/project/onboarding/flows/common';\n\nexport type OnboardingIntegrationStep = OnboardingStep<OnboardingIntegrationController>;\n\nexport const createStepStartYourServerSimple = ({\n  generateInstructions = 'npm start',\n  bubbleText = 'The command below will start your Forest Admin server and launch your first admin panel. 🚀\\n Run it to see your admin panel in action!',\n  title = 'Execute this command in your terminal',\n}: {\n  generateInstructions?: string | ((c?: OnboardingIntegrationController) => string);\n  bubbleText?: string;\n  title?: string;\n} = {}): OnboardingIntegrationStep => {\n  return {\n    name: START_YOUR_SERVER_STEP_NAME,\n    title: 'Create your first admin panel!',\n    helpBubbleContent: {\n      text: bubbleText,\n    },\n    component: 'highlight',\n    componentArguments: {\n      title,\n      language: 'bash',\n      code: generateInstructions,\n      isCommandLine: true,\n    },\n    canGoNext: (controller) =>\n      Boolean(controller.currentEnvironment.isActive) && controller.isAgentResponding,\n    checkIsAgentRunning: true,\n  };\n};\n\nexport const createStepStartYourServerMultiple = (\n  generateSnippets:\n    | {\n        code: string;\n        title: string;\n        language: string;\n        isCommandLine: boolean;\n      }[]\n    | ((c?: OnboardingIntegrationController) => {\n        code: string;\n        title: string;\n        language: string;\n        isCommandLine: boolean;\n      }[]),\n  generateTitle?: string,\n): OnboardingIntegrationStep => {\n  return {\n    name: START_YOUR_SERVER_STEP_NAME,\n    title: 'Create your first admin panel!',\n    helpBubbleContent: {\n      text: 'The commands below will start your Forest Admin server and launch your first admin panel. 🚀\\n Run it to see your admin panel in action!',\n    },\n    component: 'highlight-multiple',\n    componentArguments: {\n      title: generateTitle || 'Execute these commands in your terminal',\n      snippets: generateSnippets,\n    },\n    canGoNext: (controller) =>\n      Boolean(controller.currentEnvironment.isActive) && controller.isAgentResponding,\n    checkIsAgentRunning: true,\n  };\n};\n","import type {\n  HelpBubbleContent,\n  OnboardingFlow,\n  VariableDefinition,\n} from 'client/legacy/pods/project/onboarding/flows/common';\nimport type { OnboardingIntegrationStep } from 'client/legacy/pods/project/onboarding/flows/installation/common-installation';\nimport type OnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\n\nimport config from 'client/config/environment';\nimport { ProjectArchitectureEnum } from 'client/data/models/project';\nimport {\n  ENVIRONMENT_VARIABLES_STEP_NAME,\n  INITIALIZE_FOREST_ADMIN_STEP_NAME,\n  INSTALL_FOREST_PACKAGE_STEP_NAME,\n  buildStepsFromArray,\n  createStepApplicationUrl,\n  isNotForestProductionServer,\n} from 'client/legacy/pods/project/onboarding/flows/common';\nimport {\n  buildIDonTHaveALocalApp,\n  buildIDonTKnowWhereToFindThatURL,\n  buildINeedHelpBubble,\n} from 'client/legacy/pods/project/onboarding/flows/common-bubbles';\nimport { createStepStartYourServerSimple } from 'client/legacy/pods/project/onboarding/flows/installation/common-installation';\nimport {\n  getJsMongooseCode,\n  getTsMongooseCode,\n} from 'client/legacy/pods/project/onboarding/flows/installation/in-app/agent-nodejs/get-mongoose-code';\nimport {\n  getJsSequelizeCode,\n  getTsSequelizeCode,\n} from 'client/legacy/pods/project/onboarding/flows/installation/in-app/agent-nodejs/get-sequelize-code';\nimport {\n  getJsSQLCode,\n  getTsSQLCode,\n} from 'client/legacy/pods/project/onboarding/flows/installation/in-app/agent-nodejs/get-sql-code';\nimport { AgentsEnum } from 'client/utils/agent';\nimport generateAuthSecret from 'client/utils/secret-key-generator';\n\nconst makeGenerateEnvironmentVariables =\n  (additionalVariables: VariableDefinition[] = []) =>\n  (controller: OnboardingIntegrationController) => {\n    const environmentVariables = [\n      { name: 'FOREST_ENV_SECRET', value: controller.environmentSecretKey },\n      { name: 'FOREST_AUTH_SECRET', value: generateAuthSecret() },\n      ...additionalVariables,\n    ];\n\n    if (isNotForestProductionServer) {\n      environmentVariables.pushObject({\n        name: 'FOREST_SERVER_URL',\n        value: config.APP.apiServerHost,\n      });\n      environmentVariables.pushObject({ name: 'NODE_TLS_REJECT_UNAUTHORIZED', value: '0' });\n    }\n\n    return environmentVariables;\n  };\n\nconst createStepForestAdminPackage = (\n  installPackageInstruction: string,\n): OnboardingIntegrationStep => ({\n  name: INSTALL_FOREST_PACKAGE_STEP_NAME,\n  title: 'Install your Forest Admin agent',\n  helpBubbleContent: {\n    text: 'This will install the Forest Admin package in your environment, necessary to create the admin backend.',\n  },\n  component: 'selector-with-highlights',\n  componentArguments: {\n    selector: (controller: OnboardingIntegrationController) => ({\n      items: [\n        { value: 'npm', displayText: 'Npm', imageUrl: '/img/onboarding/npm.png' },\n        { value: 'yarn', displayText: 'Yarn', imageUrl: '/img/onboarding/yarn.png' },\n      ],\n      defaultValue: controller.installation || 'npm',\n      onSelectValue: controller.onInstallationModeSelected.bind(controller),\n    }),\n    highlight: (controller: OnboardingIntegrationController) => ({\n      title: 'Add the Forest Admin agent and datasource package to your project',\n      language: 'bash',\n      isCommandLine: true,\n      code: `${\n        controller.installation === 'yarn' ? 'yarn add' : 'npm install'\n      } ${installPackageInstruction}`,\n    }),\n  },\n\n  beforeNext: async (controller) => controller.beforeNextInstallation(),\n});\n\nconst createStepInitializeForestAdmin = (\n  generatedInitializeCodes: { javascript: string; typescript: string },\n  { helpBubbleContent }: { helpBubbleContent?: HelpBubbleContent } = {},\n): OnboardingIntegrationStep => ({\n  name: INITIALIZE_FOREST_ADMIN_STEP_NAME,\n  title: 'Initialize Forest Admin',\n  helpBubbleContent: helpBubbleContent || {\n    text: 'These few lines have to be inserted at the top of your main application file, usually app.js or index.js.',\n  },\n  component: 'highlight-tabs',\n  componentArguments: {\n    selector: (controller: OnboardingIntegrationController) => ({\n      items: [\n        { value: 'javascript', displayText: 'JavaScript' },\n        { value: 'typescript', displayText: 'TypeScript' },\n      ],\n      defaultValue: controller.programmingLanguage || 'javascript',\n      onSelectValue: controller.onProgrammingLanguageSelected.bind(controller),\n    }),\n    highlight: (controller: OnboardingIntegrationController) => ({\n      title: 'Add those lines to your main application file',\n      language: 'typescript',\n      code: generatedInitializeCodes[controller.programmingLanguage || 'javascript'],\n    }),\n  },\n});\n\nconst createStepConfigureEnvironmentVariables = (\n  additionalVariables: VariableDefinition[],\n): OnboardingIntegrationStep => ({\n  name: ENVIRONMENT_VARIABLES_STEP_NAME,\n  title: 'Configure your environment variables',\n  helpBubbleContent: {\n    componentName: 'dynamic-onboarding/bubbles-content/how-it-works-agent-node-js',\n  },\n  component: 'display-variables',\n  componentArguments: {\n    title: 'Add these environment variables to your project',\n    variables: makeGenerateEnvironmentVariables(additionalVariables),\n  },\n});\n\nexport const createNodeJSIntegrationSteps = (\n  installPackageInstruction: string,\n  initializeCode: { javascript: string; typescript: string },\n  {\n    additionalVariables = [],\n    initializeForestAdminHelpBubbleContent,\n  }: {\n    additionalVariables?: VariableDefinition[];\n    initializeForestAdminHelpBubbleContent?: HelpBubbleContent;\n  } = {},\n) =>\n  buildStepsFromArray([\n    createStepApplicationUrl(),\n    createStepForestAdminPackage(installPackageInstruction),\n    createStepInitializeForestAdmin(initializeCode, {\n      helpBubbleContent: initializeForestAdminHelpBubbleContent,\n    }),\n    createStepConfigureEnvironmentVariables(additionalVariables),\n    createStepStartYourServerSimple({\n      generateInstructions: (controller: OnboardingIntegrationController) =>\n        `${controller.installation || 'npm'} start`,\n      bubbleText:\n        'Your need to restart your server to see your admin panel in action! 🚀 The following command is probably the one you need but your project might have its own specificities.',\n      title: 'Start your server by executing a command such as',\n    }),\n  ]);\nconst helpCentersContent = [\n  buildINeedHelpBubble(),\n  buildIDonTKnowWhereToFindThatURL(),\n  buildIDonTHaveALocalApp(),\n];\n\nconst createNodeJSFlowBase = (\n  frameworkName: string,\n  title: string,\n  architecture = ProjectArchitectureEnum.InApp,\n): Omit<\n  OnboardingFlow<OnboardingIntegrationController>,\n  'steps' | 'flow' | 'helpCentersContent'\n> => ({\n  title,\n  name: `${frameworkName} / ${title}`,\n  category: 'JavaScript / Node.js',\n  agent: AgentsEnum.NodeJS,\n  architecture,\n  logoUrl: `${title.toLocaleLowerCase()}-light.svg`,\n  logoUrlDark: `${title.toLocaleLowerCase()}-dark.svg`,\n});\n\nconst createNodeJSFlow = (\n  frameworkName: string,\n): Record<string, OnboardingFlow<OnboardingIntegrationController>> => {\n  const upperCaseFrameworkName = frameworkName.charAt(0).toUpperCase() + frameworkName.substring(1);\n\n  const additionalVariables = [\n    {\n      name: 'DATABASE_URL',\n      value:\n        'Set this value to your current database connection string (protocol://username:password@host:port/databaseName?param1=value1&..)',\n    },\n  ];\n\n  return {\n    sequelize: {\n      ...createNodeJSFlowBase(frameworkName, 'Sequelize'),\n      flow: `${frameworkName} / datasource-sequelize`,\n      steps: createNodeJSIntegrationSteps(`@forestadmin/agent @forestadmin/datasource-sequelize`, {\n        javascript: getJsSequelizeCode(upperCaseFrameworkName),\n        typescript: getTsSequelizeCode(upperCaseFrameworkName),\n      }),\n      helpCentersContent,\n    },\n\n    mongoose: {\n      ...createNodeJSFlowBase(frameworkName, 'Mongoose'),\n      flow: `${frameworkName} / datasource-mongoose`,\n      logoUrl: `mongoose-light.png`,\n      logoUrlDark: `mongoose-dark.png`,\n      steps: createNodeJSIntegrationSteps(`@forestadmin/agent @forestadmin/datasource-mongoose`, {\n        javascript: getJsMongooseCode(upperCaseFrameworkName),\n        typescript: getTsMongooseCode(upperCaseFrameworkName),\n      }),\n      helpCentersContent,\n    },\n\n    sql: {\n      ...createNodeJSFlowBase(frameworkName, 'SQL'),\n      title: `SQL database`,\n      flow: `${frameworkName} / datasource-sql`,\n      steps: createNodeJSIntegrationSteps(\n        `@forestadmin/agent @forestadmin/datasource-sql`,\n        {\n          javascript: getJsSQLCode(upperCaseFrameworkName),\n          typescript: getTsSQLCode(upperCaseFrameworkName),\n        },\n        {\n          additionalVariables,\n        },\n      ),\n      helpCentersContent,\n    },\n\n    prisma: {\n      ...createNodeJSFlowBase(frameworkName, 'Prisma'),\n      flow: `${frameworkName} / datasource-sql (Prisma)`,\n      steps: createNodeJSIntegrationSteps(\n        `@forestadmin/agent @forestadmin/datasource-sql`,\n        {\n          javascript: getJsSQLCode(upperCaseFrameworkName),\n          typescript: getTsSQLCode(upperCaseFrameworkName),\n        },\n\n        {\n          additionalVariables,\n          initializeForestAdminHelpBubbleContent: {\n            text: `\n            These few lines have to be inserted at the top of your main application file, usually app.js or index.js.\n            </br>\n            </br>\n            <em><b>Using Prisma with Forest Admin is only done through a direct connection with your database.</b> This means that <a class=\"c-help-bubble__content__link\" href=\"https://www.prisma.io/docs/concepts/components/prisma-client/middleware\">Prisma middlewares</a> won't be executed.</em>\n            `,\n          },\n        },\n      ),\n      helpCentersContent,\n    },\n\n    typeORM: {\n      ...createNodeJSFlowBase(frameworkName, 'TypeORM'),\n      flow: `${frameworkName} / datasource-sql (TypeORM)`,\n      steps: createNodeJSIntegrationSteps(\n        `@forestadmin/agent @forestadmin/datasource-sql`,\n        {\n          javascript: getJsSQLCode(upperCaseFrameworkName),\n          typescript: getTsSQLCode(upperCaseFrameworkName),\n        },\n        {\n          additionalVariables,\n          initializeForestAdminHelpBubbleContent: {\n            text: `\n            These few lines have to be inserted at the top of your main application file, usually app.js or index.js.\n            </br>\n            </br>\n            <em><b>Using TypeORM with Forest Admin is only done through a direct connection with your database.</b> This means that <a class=\"c-help-bubble__content__link\" target=\"_blank\" href=\"https://typeorm.io/listeners-and-subscribers\">TypeORM listeners and subscribers</a> won't be executed.</em>\n            `,\n          },\n        },\n      ),\n      helpCentersContent,\n    },\n  };\n};\n\nexport default createNodeJSFlow;\n","import { isNotForestProductionServer } from 'client/legacy/pods/project/onboarding/flows/common';\n\nexport function getJsMongooseCode(frameworkName: string) {\n  return `\nrequire('dotenv').config();\n\nconst { createAgent } = require('@forestadmin/agent');\nconst { createMongooseDataSource } = require('@forestadmin/datasource-mongoose');\n// Retrieve your mongoose connection\nconst connection = require('./mongoose-models');\n\n// Create your Forest Admin agent\n// This must be called BEFORE all other middleware on the app\ncreateAgent({\n  authSecret: process.env.FOREST_AUTH_SECRET,\n  envSecret: process.env.FOREST_ENV_SECRET,\n  isProduction: process.env.NODE_ENV === 'production',\n  ${isNotForestProductionServer ? 'forestServerUrl: process.env.FOREST_SERVER_URL,' : ''}\n})\n  // Create your Mongoose datasource\n  .addDataSource(createMongooseDataSource(connection))\n  // Replace \"my${frameworkName}App\" by your ${frameworkName} application\n  .mountOn${frameworkName}(my${frameworkName}App)\n  .start();\n`;\n}\nexport function getTsMongooseCode(frameworkName: string) {\n  if (frameworkName !== 'NestJs')\n    return `\nimport 'dotenv/config';\n\nimport { createAgent } from '@forestadmin/agent';\nimport { createMongooseDataSource } from '@forestadmin/datasource-mongoose';\n\n// Retrieve your mongoose connection\nimport connection from './mongoose-models';\n\n// Create your Forest Admin agent\n// This must be called BEFORE all other middleware on the app\ncreateAgent({\n  authSecret: process.env.FOREST_AUTH_SECRET,\n  envSecret: process.env.FOREST_ENV_SECRET,\n  isProduction: process.env.NODE_ENV === 'production',\n  typingsPath: './typings.ts',\n  typingsMaxDepth: 5,\n  ${isNotForestProductionServer ? 'forestServerUrl: process.env.FOREST_SERVER_URL,' : ''}\n})\n  // Create your Mongoose datasource\n  .addDataSource(createMongooseDataSource(connection))\n  // Replace \"my${frameworkName}App\" by your ${frameworkName} application\n  .mountOn${frameworkName}(my${frameworkName}App)\n  .start();`;\n\n  return `\nimport 'dotenv/config';\n\nimport { createAgent } from '@forestadmin/agent';\nimport { createMongooseDataSource } from '@forestadmin/datasource-mongoose';\n\nimport { Module } from '@nestjs/common';\nimport { NestFactory } from '@nestjs/core';\n\n// Retrieve your mongoose connection\nimport connection from './mongoose-models';\n\n@Module({ imports: [], controllers: [], providers: [] })\nclass AppModule {}\n\n(async () => {\n  const agent = createAgent({\n    authSecret: process.env.FOREST_AUTH_SECRET,\n    envSecret: process.env.FOREST_ENV_SECRET,\n    isProduction: process.env.NODE_ENV === 'production',\n    typingsPath: './typings.ts',\n    typingsMaxDepth: 5,\n    ${isNotForestProductionServer ? 'forestServerUrl: process.env.FOREST_SERVER_URL,' : ''}\n  })\n  // Create your Mongoose datasource\n  .addDataSource(createMongooseDataSource(connection));\n\n  const app = await NestFactory.create(AppModule, { logger: false });\n  await agent.mountOnNestJs(app).start();\n  await app.listen(3000);\n})();`;\n}\n","import { isNotForestProductionServer } from 'client/legacy/pods/project/onboarding/flows/common';\n\nexport function getJsSequelizeCode(frameworkName: string) {\n  return `\nrequire('dotenv').config();\n\nconst { createAgent } = require('@forestadmin/agent');\nconst { createSequelizeDataSource } = require('@forestadmin/datasource-sequelize');\n// Retrieve your sequelize instance\nconst sequelizeInstance = require('./models');\n\n// Create your Forest Admin agent\n// This must be called BEFORE all other middleware on the app\ncreateAgent({\n  authSecret: process.env.FOREST_AUTH_SECRET,\n  envSecret: process.env.FOREST_ENV_SECRET,\n  isProduction: process.env.NODE_ENV === 'production',\n  ${isNotForestProductionServer ? 'forestServerUrl: process.env.FOREST_SERVER_URL,' : ''}\n})\n  // Create your Sequelize datasource\n  .addDataSource(createSequelizeDataSource(sequelizeInstance))\n  // Replace \"my${frameworkName}App\" by your ${frameworkName} application\n  .mountOn${frameworkName}(my${frameworkName}App)\n  .start();\n`;\n}\nexport function getTsSequelizeCode(frameworkName: string) {\n  if (frameworkName !== 'NestJs')\n    return `\nimport 'dotenv/config';\n\nimport { createAgent } from '@forestadmin/agent';\nimport { createSequelizeDataSource } from '@forestadmin/datasource-sequelize';\n\n// Retrieve your sequelize instance\nimport sequelizeInstance from'./models';\n\n// Create your Forest Admin agent\n// This must be called BEFORE all other middleware on the app\ncreateAgent({\n  authSecret: process.env.FOREST_AUTH_SECRET,\n  envSecret: process.env.FOREST_ENV_SECRET,\n  isProduction: process.env.NODE_ENV === 'production',\n  typingsPath: './typings.ts',\n  typingsMaxDepth: 5,\n  ${isNotForestProductionServer ? 'forestServerUrl: process.env.FOREST_SERVER_URL,' : ''}\n})\n  // Create your Sequelize datasource\n  .addDataSource(createSequelizeDataSource(sequelizeInstance))\n  // Replace \"my${frameworkName}App\" by your ${frameworkName} application\n  .mountOn${frameworkName}(my${frameworkName}App)\n  .start();\n`;\n\n  return `\nimport 'dotenv/config';\n\nimport { createAgent } from '@forestadmin/agent';\nimport { createSequelizeDataSource } from '@forestadmin/datasource-sequelize';\n\nimport { Module } from '@nestjs/common';\nimport { NestFactory } from '@nestjs/core';\n\n// Retrieve your sequelize instance\nimport sequelizeInstance from'./models';\n\n@Module({ imports: [], controllers: [], providers: [] })\nclass AppModule {}\n\n(async () => {\n  const agent = createAgent({\n    authSecret: process.env.FOREST_AUTH_SECRET,\n    envSecret: process.env.FOREST_ENV_SECRET,\n    isProduction: process.env.NODE_ENV === 'production',\n    typingsPath: './typings.ts',\n    typingsMaxDepth: 5,\n    ${isNotForestProductionServer ? 'forestServerUrl: process.env.FOREST_SERVER_URL,' : ''}\n  })\n  // Create your Sequelize datasource\n  .addDataSource(createSequelizeDataSource(sequelizeInstance));\n\n  const app = await NestFactory.create(AppModule, { logger: false });\n  await agent.mountOnNestJs(app).start();\n  await app.listen(3000);\n})();`;\n}\n","import { isNotForestProductionServer } from 'client/legacy/pods/project/onboarding/flows/common';\n\nexport function getJsSQLCode(frameworkName: string) {\n  return `\nrequire('dotenv').config();\n\nconst { createAgent } = require('@forestadmin/agent');\nconst { createSqlDataSource } = require('@forestadmin/datasource-sql');\n\n// Create your Forest Admin agent\n// This must be called BEFORE all other middleware on the app\ncreateAgent({\n  authSecret: process.env.FOREST_AUTH_SECRET,\n  envSecret: process.env.FOREST_ENV_SECRET,\n  isProduction: process.env.NODE_ENV === 'production',\n  ${isNotForestProductionServer ? 'forestServerUrl: process.env.FOREST_SERVER_URL,' : ''}\n})\n  // Create your SQL datasource\n  .addDataSource(createSqlDataSource(process.env.DATABASE_URL))\n  // Replace \"my${frameworkName}App\" by your ${frameworkName} application\n  .mountOn${frameworkName}(my${frameworkName}App)\n  .start();\n`;\n}\nexport function getTsSQLCode(frameworkName: string) {\n  if (frameworkName !== 'NestJs')\n    return `\nimport 'dotenv/config';\n\nimport { createAgent } from '@forestadmin/agent';\nimport { createSqlDataSource } from '@forestadmin/datasource-sql';\n\n// Create your Forest Admin agent\n// This must be called BEFORE all other middleware on the app\ncreateAgent({\n  authSecret: process.env.FOREST_AUTH_SECRET,\n  envSecret: process.env.FOREST_ENV_SECRET,\n  isProduction: process.env.NODE_ENV === 'production',\n  typingsPath: './typings.ts',\n  typingsMaxDepth: 5,\n  ${isNotForestProductionServer ? 'forestServerUrl: process.env.FOREST_SERVER_URL,' : ''}\n})\n  // Create your SQL datasource\n  .addDataSource(createSqlDataSource(process.env.DATABASE_URL))\n  // Replace \"my${frameworkName}App\" by your ${frameworkName} application\n  .mountOn${frameworkName}(my${frameworkName}App)\n  .start();\n`;\n\n  return `\nimport 'dotenv/config';\n\nimport { createAgent } from '@forestadmin/agent';\nimport { createSqlDataSource } from '@forestadmin/datasource-sql';\n\nimport { Module } from '@nestjs/common';\nimport { NestFactory } from '@nestjs/core';\n\n@Module({ imports: [], controllers: [], providers: [] })\nclass AppModule {}\n\n(async () => {\n  const agent = createAgent({\n    authSecret: process.env.FOREST_AUTH_SECRET,\n    envSecret: process.env.FOREST_ENV_SECRET,\n    isProduction: process.env.NODE_ENV === 'production',\n    typingsPath: './typings.ts',\n    typingsMaxDepth: 5,\n    ${isNotForestProductionServer ? 'forestServerUrl: process.env.FOREST_SERVER_URL,' : ''}\n  })\n  // Create your SQL datasource\n  .addDataSource(createSqlDataSource(process.env.DATABASE_URL));\n\n  const app = await NestFactory.create(AppModule, { logger: false });\n  await agent.mountOnNestJs(app).start();\n  await app.listen(3000);\n})();`;\n}\n","import createNodeJSFlow from 'client/legacy/pods/project/onboarding/flows/installation/in-app/agent-nodejs/common-agent-nodejs';\nimport railsFlow from 'client/legacy/pods/project/onboarding/flows/installation/in-app/rails';\n\nconst {\n  sequelize: koaSequelizeFlow,\n  mongoose: koaMongooseFlow,\n  sql: koaSqlFlow,\n  prisma: koaPrismaFlow,\n  typeORM: koaTypeORMFlow,\n} = createNodeJSFlow('koa');\nconst {\n  sequelize: expressSequelizeFlow,\n  mongoose: expressMongooseFlow,\n  sql: expressSqlFlow,\n  prisma: expressPrismaFlow,\n  typeORM: expressTypeORMFlow,\n} = createNodeJSFlow('express');\nconst {\n  sequelize: fastifySequelizeFlow,\n  mongoose: fastifyMongooseFlow,\n  sql: fastifySqlFlow,\n  prisma: fastifyPrismaFlow,\n  typeORM: fastifyTypeORMFlow,\n} = createNodeJSFlow('fastify');\nconst {\n  sequelize: nestJsSequelizeFlow,\n  mongoose: nestJsMongooseFlow,\n  sql: nestJsSqlFlow,\n  prisma: nestPrismaFlow,\n  typeORM: nestTypeORMFlow,\n} = createNodeJSFlow('nestJs');\n\nconst inAppFlows = {\n  expressSequelizeFlow,\n  expressMongooseFlow,\n  expressPrismaFlow,\n  expressTypeORMFlow,\n  expressSqlFlow,\n  koaMongooseFlow,\n  koaSequelizeFlow,\n  koaPrismaFlow,\n  koaTypeORMFlow,\n  koaSqlFlow,\n  fastifyMongooseFlow,\n  fastifySequelizeFlow,\n  fastifyPrismaFlow,\n  fastifyTypeORMFlow,\n  fastifySqlFlow,\n  nestJsSequelizeFlow,\n  nestJsMongooseFlow,\n  nestPrismaFlow,\n  nestTypeORMFlow,\n  nestJsSqlFlow,\n  railsFlow,\n};\n\nexport default inAppFlows;\n","import type {\n  HelpBubble,\n  OnboardingFlow,\n} from 'client/legacy/pods/project/onboarding/flows/common';\nimport type { OnboardingIntegrationStep } from 'client/legacy/pods/project/onboarding/flows/installation/common-installation';\nimport type OnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\n\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\nimport {\n  START_YOUR_SERVER_STEP_NAME,\n  buildStepsFromArray,\n  createStepApplicationUrl,\n  isNotForestProductionServer,\n} from 'client/legacy/pods/project/onboarding/flows/common';\nimport {\n  buildIDonTHaveALocalApp,\n  buildIDonTKnowWhereToFindThatURL,\n  buildIGotAnErrorRunningThisCommand,\n  buildINeedHelpBubble,\n} from 'client/legacy/pods/project/onboarding/flows/common-bubbles';\nimport { createStepStartYourServerSimple } from 'client/legacy/pods/project/onboarding/flows/installation/common-installation';\nimport { AgentsEnum } from 'client/utils/agent';\n\nconst stepApplicationUrl = createStepApplicationUrl();\n\nconst stepAddGem: OnboardingIntegrationStep = {\n  name: 'AddGems',\n  title: 'Add to your Gemfile the following gems',\n  helpBubbleContent: {\n    text: 'This will add the gems necessary for Forest Admin to work properly.',\n  },\n  component: 'highlight',\n  componentArguments: {\n    title: 'Add these lines to your Gemfile',\n    language: 'bash',\n    code: `gem \"forest_admin_rails\"\ngem \"forest_admin_agent\"\ngem \"forest_admin_datasource_toolkit\"\ngem \"forest_admin_datasource_active_record\"\ngem \"forest_admin_datasource_customizer\"`,\n    isCommandLine: false,\n  },\n};\n\nconst stepInstallGem: OnboardingIntegrationStep = {\n  name: 'Install',\n  title: 'Install the gems',\n  helpBubbleContent: {\n    text: 'This command will install the forest admin gems.',\n  },\n  component: 'highlight',\n  componentArguments: {\n    title: \"Run this command in your app's repository\",\n    language: 'bash',\n    code: 'bundle install',\n    isCommandLine: true,\n  },\n  isSkippable: false,\n};\n\nconst stepSetupEnvVariables: OnboardingIntegrationStep = {\n  name: 'Env',\n  title: 'Setup environment variables',\n  helpBubbleContent: {\n    text: 'This command will setup the necessary environment variables for your project.',\n  },\n  component: 'highlight',\n  componentArguments: {\n    title: \"Run this command in your app's repository\",\n    language: 'bash',\n    code: (controller: OnboardingIntegrationController) => {\n      let command = `rails g forest_admin_rails:install ${controller.environmentSecretKey}`;\n\n      if (isNotForestProductionServer) {\n        const forestUrlEnv = `FOREST_SERVER_URL=${config.APP.apiServerHost}`;\n        command = `${forestUrlEnv} ${command}`;\n      }\n\n      return command;\n    },\n    isCommandLine: true,\n  },\n  isSkippable: false,\n};\n\nconst generateStartYourServerInstructions = () => {\n  let command = 'rails server';\n  if (isNotForestProductionServer) {\n    const forestUrlEnv = `FOREST_SERVER_URL=${config.APP.apiServerHost}`;\n    command = `${forestUrlEnv} ${command}`;\n\n    const currentHost = window.location.host;\n    if (!/.*\\.forestadmin\\.com$/g.exec(currentHost)) {\n      const corsEnv = `CORS_ORIGINS=${currentHost}`;\n      command = `${corsEnv} ${command}`;\n    }\n  }\n  return command;\n};\n\nconst stepStartYourServer = createStepStartYourServerSimple({\n  generateInstructions: generateStartYourServerInstructions,\n});\n\nconst helpCentersContent: HelpBubble[] = [\n  buildINeedHelpBubble(),\n  buildIDonTHaveALocalApp(),\n  buildIDonTKnowWhereToFindThatURL(),\n  buildIGotAnErrorRunningThisCommand(['Add gem', START_YOUR_SERVER_STEP_NAME, 'Caching']),\n  {\n    steps: ['Add gem'],\n    question: 'I want to edit the Gemfile by hand.',\n    answer: {\n      text: 'You can also edit your Gemfile, add the gem and run “bundle install”.',\n    },\n  },\n  {\n    steps: ['Caching'],\n    question: \"I don't want to enable caching.\",\n    answer: {\n      componentName: 'dynamic-onboarding/bubbles-content/i-dont-want-caching-rails',\n    },\n  },\n];\n\nconst railsFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  title: 'Ruby on Rails',\n  name: 'Ruby on Rails',\n  category: 'Ruby',\n  agent: AgentsEnum.RubyOnRails,\n  flow: 'rails',\n  logoUrl: 'rails-light.png',\n  logoUrlDark: 'rails-dark.png',\n  architecture: 'in-app',\n  steps: buildStepsFromArray([\n    stepApplicationUrl,\n    stepAddGem,\n    stepInstallGem,\n    stepSetupEnvVariables,\n    stepStartYourServer,\n  ]),\n  helpCentersContent,\n};\n\nexport default railsFlow;\n","import type AbstractOnboardingStepsController from 'client/legacy/abstract-controllers/abstract-onboarding-steps-controller';\nimport type { OnboardingFlow } from 'client/legacy/pods/project/onboarding/flows/common';\n\nimport cloudFlows from 'client/legacy/pods/project/onboarding/flows/installation/cloud';\nimport inAppFlows from 'client/legacy/pods/project/onboarding/flows/installation/in-app';\nimport microserviceFlows from 'client/legacy/pods/project/onboarding/flows/installation/microservice';\n\nconst flows = [cloudFlows, inAppFlows, microserviceFlows].flatMap(\n  Object.values,\n) as OnboardingFlow<AbstractOnboardingStepsController>[];\n\nexport default flows;\n","import type { OnboardingFlow } from 'client/legacy/pods/project/onboarding/flows/common';\nimport type OnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\n\nimport {\n  mariaDbDefaultCredentials,\n  mariaDbDefaultFlow,\n} from 'client/legacy/pods/project/onboarding/flows/databases/maria-db';\nimport {\n  microsoftSqlDefaultCredentials,\n  microsoftSqlDefaultFlow,\n} from 'client/legacy/pods/project/onboarding/flows/databases/microsoft-sql';\nimport {\n  mongoAtlasCredentialsValidator,\n  mongoAtlasDefaultCredentials,\n  mongoAtlasDefaultFlow,\n} from 'client/legacy/pods/project/onboarding/flows/databases/mongo-atlas';\nimport {\n  mongoDbDefaultCredentials,\n  mongoDbDefaultFlow,\n} from 'client/legacy/pods/project/onboarding/flows/databases/mongo-db';\nimport {\n  mySqlDefaultCredentials,\n  mySqlDefaultFlow,\n} from 'client/legacy/pods/project/onboarding/flows/databases/my-sql';\nimport {\n  postgresSqlDefaultCredentials,\n  postgresSqlDefaultFlow,\n} from 'client/legacy/pods/project/onboarding/flows/databases/postgres-sql';\nimport {\n  supabaseDefaultCredentials,\n  supabaseDefaultFlow,\n} from 'client/legacy/pods/project/onboarding/flows/databases/supabase';\nimport { createForestCLIIntegrationSteps } from 'client/legacy/pods/project/onboarding/flows/installation/microservice/microservice-common';\nimport { AgentsEnum } from 'client/utils/agent';\n\nconst mariaDbFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  ...mariaDbDefaultFlow,\n  architecture: 'microservice',\n  agent: AgentsEnum.NodeJS,\n  steps: createForestCLIIntegrationSteps(mariaDbDefaultCredentials, true),\n};\n\nconst microsoftSqlFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  ...microsoftSqlDefaultFlow,\n  architecture: 'microservice',\n  agent: AgentsEnum.NodeJS,\n  steps: createForestCLIIntegrationSteps(microsoftSqlDefaultCredentials, true),\n};\n\nconst mongoDbFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  ...mongoDbDefaultFlow,\n  architecture: 'microservice',\n  agent: AgentsEnum.NodeJS,\n  steps: createForestCLIIntegrationSteps(mongoDbDefaultCredentials, false),\n};\n\nconst mySqlFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  ...mySqlDefaultFlow,\n  architecture: 'microservice',\n  agent: AgentsEnum.NodeJS,\n  steps: createForestCLIIntegrationSteps(mySqlDefaultCredentials, true),\n};\n\nconst postgresSqlFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  ...postgresSqlDefaultFlow,\n  architecture: 'microservice',\n  agent: AgentsEnum.NodeJS,\n  steps: createForestCLIIntegrationSteps(postgresSqlDefaultCredentials, true),\n};\n\nconst supabaseFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  ...supabaseDefaultFlow,\n  architecture: 'microservice',\n  agent: AgentsEnum.NodeJS,\n  steps: createForestCLIIntegrationSteps(supabaseDefaultCredentials, true),\n};\n\nconst mongoAtlasFlow: OnboardingFlow<OnboardingIntegrationController> = {\n  ...mongoAtlasDefaultFlow,\n  architecture: 'microservice',\n  agent: AgentsEnum.NodeJS,\n  steps: createForestCLIIntegrationSteps(\n    mongoAtlasDefaultCredentials,\n    false,\n    mongoAtlasCredentialsValidator,\n    {\n      host: {\n        placeholder: 'clustername.mongodb.net',\n      },\n      username: {\n        isRequired: true,\n      },\n      password: {\n        isRequired: true,\n      },\n    },\n  ),\n};\n\nconst microserviceFlows = {\n  mariaDbFlow,\n  microsoftSqlFlow,\n  mongoDbFlow,\n  mySqlFlow,\n  postgresSqlFlow,\n  supabaseFlow,\n  mongoAtlasFlow,\n};\n\nexport default microserviceFlows;\n","import type { OnboardingIntegrationStep } from 'client/legacy/pods/project/onboarding/flows/installation/common-installation';\nimport type OnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\nimport type { RawCredentials } from 'client/utils/onboarding/database-credentials';\nimport type DatabaseCredentials from 'client/utils/onboarding/database-credentials';\n\nimport config from 'client/config/environment';\nimport {\n  CREDENTIALS_STEP_NAME,\n  START_YOUR_SERVER_STEP_NAME,\n  buildStepsFromArray,\n  createStepDatasourceCredentials,\n  isNotForestProductionServer,\n} from 'client/legacy/pods/project/onboarding/flows/common';\nimport { buildINeedHelpBubble } from 'client/legacy/pods/project/onboarding/flows/common-bubbles';\nimport { createStepStartYourServerMultiple } from 'client/legacy/pods/project/onboarding/flows/installation/common-installation';\n\nconst extraCommandLumberjacks = () =>\n  isNotForestProductionServer\n    ? `FOREST_URL=\"${config.APP.apiServerHost}\" NODE_TLS_REJECT_UNAUTHORIZED=0 `\n    : '';\n\n// ===================\n// Install CLI\n// ===================\nconst dockerCliForestCommand = (controller: OnboardingIntegrationController) => {\n  let extraCommandEnvVar = '';\n\n  // NOTICE: for lumberjacks developers\n  if (isNotForestProductionServer) {\n    extraCommandEnvVar += `-e FOREST_URL=\"${config.APP.apiServerHost}\" -e NODE_TLS_REJECT_UNAUTHORIZED=0 --add-host=api.development.forestadmin.com:host-gateway `;\n  }\n\n  // NOTICE: is linux localhost hosted database\n  if (\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n    ['localhost', '127.0.0.1'].includes(controller.databaseCredentials?.host)\n    && navigator.platform.includes('Linux')\n  ) {\n    extraCommandEnvVar += '--network host ';\n  }\n\n  return `~/.forest.d:/usr/src/cli/.forest.d -e TOKEN_PATH=\"/usr/src/cli\" ${extraCommandEnvVar}forestadmin/toolbelt `;\n};\n\nconst generateInstallToolbeltInstructions = (controller: OnboardingIntegrationController) => {\n  if (controller.installation === 'docker') {\n    return [\n      {\n        title: 'Download the docker image',\n        code: 'docker pull forestadmin/toolbelt',\n        language: 'bash',\n        isCommandLine: true,\n      },\n      {\n        title: 'Log in to Forest Admin',\n        code: `docker run --rm --init -it -v ${dockerCliForestCommand(controller)}login`,\n        language: 'bash',\n        isCommandLine: true,\n      },\n    ];\n  }\n\n  return [\n    {\n      title: 'Install the Forest CLI',\n      code: `${\n        controller.installation === 'yarn' ? 'yarn global add' : 'npm install -g'\n      } forest-cli@latest -s`,\n      language: 'bash',\n      isCommandLine: true,\n    },\n    {\n      title: 'Log in to Forest Admin',\n      code: `${extraCommandLumberjacks()}forest login`,\n      language: 'bash',\n      isCommandLine: true,\n    },\n  ];\n};\n\nexport const createStepInstallCLI = (): OnboardingIntegrationStep => ({\n  name: 'Install CLI',\n  title: 'Install the Forest Admin CLI',\n  helpBubbleContent: {\n    text: 'Installing this tool will help you to generate your own admin backend connected to your database. You will be redirected to validate a code that is displayed both in the CLI and on a browser.',\n  },\n  component: 'selector-with-highlights',\n  componentArguments: {\n    selector: (controller: OnboardingIntegrationController) => ({\n      items: [\n        { value: 'npm', displayText: 'Npm', imageUrl: '/img/onboarding/npm.png' },\n        { value: 'yarn', displayText: 'Yarn', imageUrl: '/img/onboarding/yarn.png' },\n        { value: 'docker', displayText: 'Docker', imageUrl: '/img/onboarding/docker.png' },\n      ],\n      defaultValue: controller.installation || 'npm',\n      onSelectValue: controller.onInstallationModeSelected.bind(controller),\n    }),\n    highlightMultiple: (controller: OnboardingIntegrationController) => ({\n      title: 'Execute this command in your terminal',\n      snippets: generateInstallToolbeltInstructions(controller),\n    }),\n  },\n\n  beforeNext: async (controller) => controller.beforeNextInstallation(),\n  canGoNext: true,\n});\n\n// ===================\n// Create Project with Toolbelt\n// ===================\n\nconst generateCreateProjectToolbeltCode = (\n  controller: OnboardingIntegrationController,\n  isRelational: boolean,\n) => {\n  // NOTICE: When databaseCredentials is null the user has skipped the credentials step\n  const { schema, useSSL } = controller.databaseCredentials || {};\n\n  const optionsGenerate = [\n    ['applicationHost', 'localhost'],\n    ['applicationPort', '3310'],\n    ['language', controller.programmingLanguage || 'javascript'],\n    ['databaseConnectionURL', controller.databaseConnectionString],\n    ['databaseSchema', schema],\n  ];\n\n  const booleanOptionsGenerate = [['databaseSSL', useSSL]];\n\n  const stringifiedOptions = optionsGenerate\n    // NOTICE: Remove unset values (e.g schema when not required).\n    .filter(([, value]) => value)\n    .map(([key, value]) => `--${key} \"${value}\"`)\n    .join(' ');\n\n  const stringifiedBooleanOptions = booleanOptionsGenerate\n    // NOTICE: Remove unset values\n    .filter(([, value]) => value)\n    .map(([key]) => `--${key}`)\n    .join(' ');\n\n  const command = `projects:create:${isRelational ? 'sql' : 'nosql'}`;\n  if (controller.installation === 'docker') {\n    if (controller.terminalTechnology === 'cmd') {\n      return `docker run --rm --init -it -v \"%cd%\":/usr/src/app -v ${dockerCliForestCommand(\n        controller,\n      )}${command} \"${controller.project.name}\" ${stringifiedOptions} ${stringifiedBooleanOptions}`;\n    }\n    return `docker run --rm --init -it -v \\${PWD}:/usr/src/app -v ${dockerCliForestCommand(\n      controller,\n    )}${command} \"${controller.project.name}\" ${stringifiedOptions} ${stringifiedBooleanOptions}`;\n  }\n\n  return `${extraCommandLumberjacks()}forest ${command} \"${\n    controller.project.name\n  }\" ${stringifiedOptions} ${stringifiedBooleanOptions}`;\n};\n\nconst generateCreateProjectToolbeltOsSelector = (controller: OnboardingIntegrationController) => {\n  if (controller.installation === 'docker') {\n    return {\n      title: 'What are you using?',\n      items: [\n        {\n          value: 'bash',\n          // \\u00a0 is a non-breaking space\n          displayText: 'Mac, Linux, Windows\\u00a0PowerShell',\n        },\n        {\n          value: 'cmd',\n          displayText: 'Windows CMD',\n        },\n      ],\n      defaultValue: 'bash',\n      onSelectValue: controller.onTerminalTechnologySelected.bind(controller),\n    };\n  }\n\n  return null;\n};\n\nconst generateCreateProjectToolbeltLanguageSelector = (\n  controller: OnboardingIntegrationController,\n) => ({\n  items: [\n    { value: 'javascript', displayText: 'JavaScript' },\n    { value: 'typescript', displayText: 'TypeScript' },\n  ],\n  defaultValue: controller.programmingLanguage || 'javascript',\n  onSelectValue: controller.onProgrammingLanguageSelected.bind(controller),\n});\n\nexport const createStepGenerateYourApp = (isRelational: boolean): OnboardingIntegrationStep => ({\n  name: 'Generate your app',\n  title: 'Generate your admin backend',\n  helpBubbleContent: {\n    text: 'These commands will generate a new admin backend with all the files required and install all the dependencies.',\n  },\n  component: 'selector-with-highlight-tabs',\n  componentArguments: {\n    selector: generateCreateProjectToolbeltOsSelector,\n    tabsSelector: generateCreateProjectToolbeltLanguageSelector,\n    highlight: (controller: OnboardingIntegrationController) => ({\n      code: generateCreateProjectToolbeltCode(controller, isRelational),\n      language: 'bash',\n      isCommandLine: true,\n      title: 'Execute this command in your terminal',\n    }),\n  },\n  canGoNext: (controller: OnboardingIntegrationController) =>\n    Boolean(controller.currentEnvironment.apiEndpoint),\n});\n\n// ===================\n// Start your server\n// ===================\nexport const generateStartYourServerInstructions = (\n  controller: OnboardingIntegrationController,\n) => {\n  if (controller.installation === 'docker') {\n    return [\n      {\n        code: `cd \"${controller.project.name}\"`,\n        title: 'Change the current working directory',\n        language: 'bash',\n        isCommandLine: true,\n      },\n      {\n        code: `docker-compose up --build`,\n        title: START_YOUR_SERVER_STEP_NAME,\n        language: 'bash',\n        isCommandLine: true,\n      },\n    ];\n  }\n\n  return [\n    {\n      title: 'Change the current working directory',\n      language: 'bash',\n      code: `cd \"${controller.project.name}\"`,\n      isCommandLine: true,\n    },\n    {\n      title: 'Install dependencies',\n      language: 'bash',\n      code: `${controller.installation === 'yarn' ? 'yarn' : 'npm'} install -s`,\n      isCommandLine: true,\n    },\n    {\n      code: `${extraCommandLumberjacks()}${controller.installation || 'npm'} ${\n        controller.installation === 'yarn' ? '' : 'run '\n      }start:watch`,\n      title: START_YOUR_SERVER_STEP_NAME,\n      language: 'bash',\n      isCommandLine: true,\n    },\n  ];\n};\n\n// ===================\n// createForestCLIIntegrationSteps\n// ===================\n\nexport const createForestCLIIntegrationSteps = (\n  flowCredentials: RawCredentials,\n  isRelational: boolean,\n  credentialsCustomValidator?: (creds: DatabaseCredentials) => Record<string, string>,\n  configuration?: Record<string, unknown>,\n) =>\n  buildStepsFromArray([\n    createStepInstallCLI(),\n    createStepDatasourceCredentials(flowCredentials, {\n      customValidator: credentialsCustomValidator,\n      configuration,\n    }),\n    createStepGenerateYourApp(isRelational),\n    createStepStartYourServerMultiple(generateStartYourServerInstructions),\n  ]);\n\n/**\n * Shared help center between all microservice flows\n * @type {import('../../common').HelpBubble[]}\n */\nexport const helpCentersContent = [\n  buildINeedHelpBubble(),\n  {\n    steps: [CREDENTIALS_STEP_NAME],\n    question: \"I don't have a database.\",\n    answer: {\n      componentName: 'dynamic-onboarding/bubbles-content/i-need-database',\n    },\n  },\n  {\n    steps: [CREDENTIALS_STEP_NAME],\n    question: \"I don't want to provide my credentials now.\",\n    answer: {\n      text: \"We don't store the credentials. You can always skip this step and use the CLI to setup your database connection.\",\n    },\n  },\n  {\n    steps: [CREDENTIALS_STEP_NAME],\n    question: 'I have a remote database.',\n    answer: {\n      text: 'Forest Admin works with remote databases! Enter your remote database credentials here.', // SSL usages hints ?\n    },\n  },\n];\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Framework @project={{this.model.project}} />\\n', { moduleName: 'client/legacy/pods/project/onboarding/framework/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Hosting @project={{this.model.project}} />\\n', { moduleName: 'client/legacy/pods/project/onboarding/hosting/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type CloudFeatureService from 'client/features/cloud/services/feature';\nimport type CustomApolloService from 'client/legacy/services/apollo';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type StoreService from 'client/legacy/services/store';\nimport type DatabaseCredentials from 'client/utils/onboarding/database-credentials';\nimport type DatabaseCredentialsCloud from 'client/utils/onboarding/database-credentials-cloud';\n\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport { queryManager } from 'ember-apollo-client';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport watchEnvironmentUpdateEnded from 'client/gql/utils/watch-environment-update-ended';\nimport watchLumberEncounteredError from 'client/gql/utils/watch-lumber-encountered-error';\nimport watchLumberSucceed from 'client/gql/utils/watch-lumber-succeed';\nimport AbstractOnboardingStepsController from 'client/legacy/abstract-controllers/abstract-onboarding-steps-controller';\nimport { AgentsEnum } from 'client/utils/agent';\nimport { REGEX_HTTPS_OR_LOCALHOST_URL } from 'client/utils/regex';\n\nconst ONBOARDING_PHASE = 'integration';\n\nexport default class ProjectOnboardingIntegrationController extends AbstractOnboardingStepsController {\n  @service router: RouterService;\n\n  @service('feature/cloud') declare cloudService: CloudFeatureService;\n\n  @service currentUser: CurrentUserService;\n  @service store: StoreService;\n\n  /**\n   * ⚠ ember-apollo-client provides this @queryManager\n   * BUT there is a bug with this library on overwritten routes\n   * The code from here: https://github.com/ember-graphql/ember-apollo-client/blob/v4.0.2/addon/-private/apollo/setup-hooks.js\n   * is not returning the promise from the original function, leading\n   * to bugs when beforeModel is asynchronous on a route.\n   */\n\n  @queryManager() apollo: CustomApolloService;\n\n  // NOTICE: AbstractOnboardingStepsController required properties\n  @alias('model.project.defaultEnvironment') public currentEnvironment: EnvironmentModel;\n  // NOTICE: Should automate transition after successful connection to the agent\n  automateCheckAgentTransition = true;\n\n  // Public tracked - Can be use in step definition\n  @tracked public installation: string;\n  @tracked public terminalTechnology: string;\n  @tracked public programmingLanguage: 'javascript' | 'typescript';\n  @tracked public deploymentError: string | undefined;\n\n  userFeedBackToastrId: string = null;\n  subscriptionWatchEnvironmentUpdateEnded: { apolloUnsubscribe: () => void } = null;\n  subscriptionWatchLumberError: { apolloUnsubscribe: () => void } = null;\n  subscriptionWatchLumberSucceed: { apolloUnsubscribe: () => void } = null;\n\n  willDestroy() {\n    super.willDestroy();\n    this.unsubscribeEvents();\n  }\n\n  unsubscribeEvents() {\n    if (this.subscriptionWatchEnvironmentUpdateEnded !== null) {\n      this.subscriptionWatchEnvironmentUpdateEnded.apolloUnsubscribe();\n    }\n    if (this.subscriptionWatchLumberError !== null) {\n      this.subscriptionWatchLumberError.apolloUnsubscribe();\n    }\n    if (this.subscriptionWatchLumberSucceed !== null) {\n      this.subscriptionWatchLumberSucceed.apolloUnsubscribe();\n    }\n\n    this.cloudService.unsubscribeToRestartEvents('OnboardingIntegrationController');\n    this.cloudService.unsubscribeToDeployFailedEvent();\n    this.cloudService.clearNotification();\n  }\n\n  get onboardingTrackingInformation() {\n    return {\n      screen: this.currentStepKey,\n      phase: ONBOARDING_PHASE,\n      projectId: this.project.id,\n      projectName: this.project.name,\n    };\n  }\n\n  get isCloudFlow() {\n    return this.flow.architecture === 'cloud';\n  }\n\n  get showStepCounter() {\n    // Only show step counter for Cloud; hide for in-app and standalone (microservice)\n    return this.isCloudFlow;\n  }\n\n  @action\n  async onGoBack() {\n    // If we're not on the default step, just go to the previous step.\n    if (this.currentStepKey !== this.defaultStep) {\n      this.currentStepKey = this.stepsKeys[this.currentStepIndex - 1];\n      return;\n    }\n\n    // Cloud flow goes straight to default\n    if (\n      this.project.architecture === 'cloud'\n      || this.project.architecture === 'microservice'\n      || this.project.databaseType\n    ) {\n      await this.router.transitionTo('project.onboarding.default');\n      return;\n    }\n\n    if (this.project.agent === AgentsEnum.RubyOnRails) {\n      await this.router.transitionTo('project.onboarding.stack');\n      return;\n    }\n\n    await this.router.transitionTo('project.onboarding.orm');\n  }\n\n  @action\n  async onGoNext(skipped = false) {\n    // Launch hooks beforeNext\n    if (this.currentStep.beforeNext) {\n      const result = await this.currentStep.beforeNext(this, skipped);\n      if (result === false) {\n        // Cancelling going\n        return;\n      }\n    }\n\n    // Transition to next step\n    if (this.currentStepKey === this.lastStep) {\n      // NOTICE: Needed to avoid being redirected to review page on a schema change after a successful onboarding\n      this.unsubscribeEvents();\n      await this.router.transitionTo('project.onboarding.review', this.project.name);\n\n      // NOTICE: Inform user about successful configuration\n      this.toastr.perform(ToastrTypeEnum.Success, 'Your admin panel is now configured!', {\n        duration: 0,\n      });\n    } else {\n      this.currentStepKey = this.stepsKeys[this.currentStepIndex + 1];\n\n      // for human readability make index start at 1\n      this.segmentTracker.trackInitializationNextStepTriggered(\n        this.flow,\n        this.currentStepIndex + 1,\n        this.onboardingTrackingInformation,\n      );\n    }\n  }\n\n  // ===================\n  // Installation Mode\n  // ===================\n  @action\n  onInstallationModeSelected(value: string) {\n    if (this.installation !== value) {\n      this.installation = value;\n      this.resetCredentialsForm();\n    }\n  }\n\n  async beforeNextInstallation() {\n    // Update project installation\n    this.project.installation = this.installation;\n    await this.project.save();\n  }\n\n  // ===================\n  // ApplicationUrl\n  // ===================\n  /**\n   * @param {string} applicationUrl\n   */\n  @action\n  setApplicationUrl(applicationUrl: string) {\n    this.applicationUrl = applicationUrl;\n  }\n\n  async beforeNextApplicationUrl() {\n    return this.tryBeforeNext(async () => {\n      // Send segment event\n      this.segmentTracker.trackApplicationURLSubmitted(\n        this.flow,\n        this.onboardingTrackingInformation,\n      );\n\n      // Update environment apiEndpoint\n      this.currentEnvironment.apiEndpoint = this.applicationUrl;\n      await this.currentEnvironment.save();\n    }, \"Error while updating your application's url\");\n  }\n\n  validateUrl(url: string) {\n    if (!REGEX_HTTPS_OR_LOCALHOST_URL.test(url)) {\n      return {\n        message:\n          'The url must be localhost (http://localhost[:port]) or a valid HTTPS address (https://my-local-secured-domain.com) for security purposes',\n        moreHttpsInformation: true,\n      };\n    }\n\n    return null;\n  }\n\n  // ===================\n  // Database Credentials\n  // ===================\n  @action\n  setDatabaseCredentials(databaseCredentials: DatabaseCredentials) {\n    this.temporaryDatabaseCredentials = databaseCredentials;\n  }\n\n  async beforeNextDatabaseCredentials(skipped: boolean) {\n    if (!(await super.beforeNextDatabaseCredentials(skipped))) {\n      return false;\n    }\n\n    let shouldContinue = true;\n\n    if (this.databaseCredentials) {\n      this.segmentTracker.trackDatabaseCredentialsSubmitted(\n        this.flow,\n        this.databaseCredentials.formatForSegment(),\n        this.onboardingTrackingInformation,\n      );\n    } else {\n      this.segmentTracker.trackDatabaseCredentialsSkipped(\n        this.flow,\n        this.onboardingTrackingInformation,\n      );\n    }\n\n    if (this.isCloudFlow) {\n      shouldContinue = await this.cloudService.createFullHostedAgent(\n        this.databaseCredentials as DatabaseCredentialsCloud,\n      );\n    }\n\n    return shouldContinue;\n  }\n\n  // ===================\n  // Docker - TerminalTechnology\n  // ===================\n  @action\n  onTerminalTechnologySelected(value: string) {\n    this.terminalTechnology = value;\n  }\n\n  // ===================\n  // Code - ProgrammingLanguage\n  // ===================\n  @action\n  onProgrammingLanguageSelected(value: 'javascript' | 'typescript') {\n    this.segmentTracker.trackInitializationCodeLanguageChanged(\n      this.flow,\n      this.onboardingTrackingInformation,\n      { from: this.programmingLanguage || 'javascript', to: value },\n    );\n    this.programmingLanguage = value;\n  }\n\n  // ===================\n  // Apollo environment events\n  // ===================\n  @action\n  async subscribesEnvironmentEvents() {\n    const { id: environmentId } = this.currentEnvironment;\n\n    this.subscriptionWatchEnvironmentUpdateEnded = await watchEnvironmentUpdateEnded(\n      this.apollo,\n      environmentId,\n      this.onEnvironmentUpdateEnded.bind(this),\n    );\n\n    if (this.flow.architecture === 'microservice') {\n      this.subscriptionWatchLumberSucceed = await watchLumberSucceed(\n        this.apollo,\n        this.project.name,\n        this.onLumberSucceed.bind(this),\n      );\n\n      this.subscriptionWatchLumberError = await watchLumberEncounteredError(\n        this.apollo,\n        this.project.name,\n        this.onLumberEncounteredError.bind(this),\n      );\n    }\n\n    if (this.flow.architecture === 'cloud') {\n      await this.cloudService.subscribeToRestartEvents('OnboardingIntegrationController', {\n        restartEnded: this.onEnded.bind(this),\n        restartFailed: this.onFullHostedEventFail.bind(this),\n      });\n\n      await this.cloudService.subscribeToDeployFailedEvent(this.onFullHostedEventFail.bind(this));\n    }\n  }\n\n  async onEnvironmentUpdateEnded() {\n    await this.currentEnvironment.reload();\n\n    if (this.currentEnvironment.isActive && this.isAgentResponding && !this.isCorsError) {\n      await this.onGoNext();\n    } else {\n      this.userFeedBackToastrId = this.toastr.update(\n        ToastrTypeEnum.Success,\n        'Your admin panel has been successfully synchronized! We are now checking your connection.',\n        this.userFeedBackToastrId,\n      );\n    }\n  }\n\n  async onLumberSucceed() {\n    // NOTICE: Needed to update defaultEnvironment application URL and enable transition to next step\n    await this.currentEnvironment.reload();\n\n    // NOTICE: Automate transition to next step for lumber/toolbelt install\n    if (this.currentStepIndex === this.stepsKeys.length - 2) {\n      await this.onGoNext();\n\n      this.userFeedBackToastrId = this.toastr.update(\n        ToastrTypeEnum.Success,\n        'Your project has been successfully generated you can now start your server following the given instructions.',\n        this.userFeedBackToastrId,\n        { duration: 0 },\n      );\n    }\n  }\n\n  onLumberEncounteredError({\n    code,\n    command,\n    message,\n  }: {\n    code: string;\n    command: string;\n    message: string;\n  }) {\n    switch (code) {\n      case 'database_empty':\n      case 'database_authentication_error':\n        console.error('Lumber Install Error:', command, code);\n\n        this.userFeedBackToastrId = this.toastr.update(\n          ToastrTypeEnum.Error,\n          message,\n          this.userFeedBackToastrId,\n          { duration: 0 },\n        );\n        break;\n      default:\n        console.error('Lumber Install Unexpected Error:', command, code, message);\n\n        this.userFeedBackToastrId = this.toastr.update(\n          ToastrTypeEnum.Error,\n          'You have encountered an unexpected error during your project creation. For more help you can create a new post on https://community.forestadmin.com/',\n          this.userFeedBackToastrId,\n          { duration: 0 },\n        );\n    }\n  }\n\n  async onEnded() {\n    // We need to reload the user and role to properly handle full hosted role creation\n    const user = this.currentUser.model;\n    await user.reload();\n\n    await this.store.findRecord('role', user.roleId);\n\n    // we normally subscribe to these events in pods/project/route.js\n    // but we need to do it also here because the beforeModel hook is not called after the onboarding\n    // and the project is not considered as \"cloud\" until the end of the onboarding.\n    await this.cloudService.displayToastersOnRestartEvents();\n\n    await this.onGoNext();\n  }\n\n  async onFullHostedEventFail(error?: string) {\n    this.deploymentError = error;\n    await this.onGoBack();\n    const mainPanel = document.querySelector('.c-feature-onboarding-layout__scroll-content');\n\n    if (mainPanel?.scrollHeight) {\n      mainPanel.scrollTop = mainPanel.scrollHeight;\n    }\n  }\n\n  // ===================\n  // HELPER\n  // ===================\n\n  get databaseConnectionString() {\n    return this.databaseCredentials ? this.databaseCredentials.connectionURIEncoded : null;\n  }\n\n  resetCredentialsForm() {\n    this.temporaryDatabaseCredentials = null;\n    this.databaseCredentials = null;\n    this.showCredentialValidationErrors = false;\n    this.deploymentError = undefined;\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type ProjectModel from 'client/data/models/project';\nimport type { OnboardingFlow } from 'client/legacy/pods/project/onboarding/flows/common';\nimport type ProjectOnboardingIntegrationController from 'client/legacy/pods/project/onboarding/integration/controller';\nimport type { DatabaseTypeEnum } from 'client/utils/database';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport displayHubspotLiveChat from 'client/decorators/display-hubspot-live-chat';\nimport flows from 'client/legacy/pods/project/onboarding/flows/installation';\nimport { WAITING_STEP_NAME } from 'client/legacy/pods/project/onboarding/flows/installation/cloud/common';\n\ntype Model = {\n  flow: OnboardingFlow<ProjectOnboardingIntegrationController>;\n  project: ProjectModel;\n  stepsKeys: string[];\n  defaultStep: string;\n  lastStep: string;\n  environmentSecretKey: string;\n};\n\n@displayHubspotLiveChat()\nexport default class ProjectOnboardingIntegrationRoute extends Route {\n  @service router: RouterService;\n\n  async beforeModel(transition: Transition) {\n    // On hard reload, default behavior was to force user back to hosting.\n    // Exception: allow reloading the Cloud waiting step (\"Deploying your project…\").\n    if (!transition.from) {\n      const step = transition.to?.queryParams?.step;\n      if (step === WAITING_STEP_NAME) {\n        return super.beforeModel(transition);\n      }\n\n      await this.router.replaceWith('project.onboarding.hosting');\n      return;\n    }\n    return super.beforeModel(transition);\n  }\n\n  async model(): Promise<Model | null> {\n    const { project, environmentSecretKey } = this.modelFor('project.onboarding') as {\n      project: ProjectModel;\n      environmentSecretKey: string;\n    };\n\n    // NOTICE: Nothing specified back to hosting choice\n    if (!project.flow) {\n      await this.router.transitionTo('project.onboarding.hosting');\n      return null;\n    }\n\n    // Find current flow using params (when transiting from framework) or context (refresh or coming back into onboarding)\n    const flow =\n      flows.find(\n        (onboardingFlow) =>\n          onboardingFlow.architecture === project.architecture\n          && onboardingFlow.flow === project.flow,\n      )\n      || flows.find(\n        (onboardingFlow) =>\n          onboardingFlow.architecture === project.architecture\n          && project.flow.startsWith(onboardingFlow.flow),\n      );\n\n    // NOTICE: If the flow doesn't exist back to hosting choice\n    if (!flow) {\n      await this.router.transitionTo('project.onboarding.hosting');\n      return null;\n    }\n\n    const stepsKeys = Object.keys(flow.steps);\n\n    return {\n      flow,\n      project,\n      stepsKeys,\n      defaultStep: stepsKeys[0],\n      lastStep: stepsKeys.slice(-1)[0],\n      environmentSecretKey,\n    };\n  }\n\n  async setupController(\n    integrationController: ProjectOnboardingIntegrationController,\n    model: Model,\n  ) {\n    super.setupController(integrationController, model, null);\n\n    // NOTICE: Set previous potential installation\n    integrationController.installation = model.project.installation;\n\n    // NOTICE: Preserve existing step from URL (e.g. hard reload on waiting step),\n    // otherwise default to the first step\n    const existingQueryParams = this.router.currentRoute?.queryParams || {};\n    const currentStep = (existingQueryParams.step as string) || model.defaultStep;\n\n    // NOTICE: Set the right URL params\n    await this.router.replaceWith('project.onboarding.integration', {\n      queryParams: {\n        step: currentStep,\n      },\n    });\n\n    // NOTICE: we make sure that any saved credentials use the new databaseType\n    // which is not input by the user but taken from the flow selection\n    if (integrationController.databaseCredentials)\n      integrationController.databaseCredentials.type = model.flow.databaseType as DatabaseTypeEnum;\n  }\n\n  resetController(\n    integrationController: ProjectOnboardingIntegrationController,\n    isExiting: boolean,\n  ) {\n    if (isExiting) {\n      integrationController.resetCheckAgentEndpointRunner();\n      integrationController.unsubscribeEvents();\n      integrationController.resetCredentialsForm();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Layout\\n  @phase={{this.phase}}\\n  @title={{this.title}}\\n  @pretitle={{if\\n    this.showStepCounter\\n    (concat \\'Step \\' this.currentStepNumber \\' of \\' this.maxStepNumber)\\n    \\'\\'\\n  }}\\n  @helpBubbleContent={{this.helpBubbleContent}}\\n  @trackBubbleEvent={{this.trackBubbleEventLinkClicked}}\\n  @showLocalNetworkPermissionNotification={{this.showLocalNetworkPermissionNotification}}\\n  @showLocalNetworkPermissionDeniedError={{this.showLocalNetworkPermissionDeniedError}}\\n  @currentOrigin={{this.currentOrigin}}\\n>\\n  <:default>\\n    {{did-insert this.subscribesEnvironmentEvents}}\\n    {{did-insert this.shouldCheckAgentEndpoint}}\\n    {{did-update this.shouldCheckAgentEndpoint this.currentStepKey}}\\n\\n    {{! We want to display any type of IntegrationComponent }}\\n    {{#let (component this.integrationComponent.componentName) as |CustomIntegrationComponent|}}\\n      <CustomIntegrationComponent\\n        @componentArguments={{this.integrationComponent.componentArguments}}\\n        data-instructions-panel-integration-component\\n      />\\n    {{/let}}\\n  </:default>\\n\\n  <:bottom>\\n    <Feature::Onboarding::Layout::Footer\\n      @nextState={{this.nextState}}\\n      @onNext={{this.onGoNext}}\\n      @onRequestPermission={{this.onRequestLocalhostPermission}}\\n      @canBack={{this.canGoBack}}\\n      @onBack={{this.onGoBack}}\\n      @canSkip={{this.canSkip}}\\n      @onSkip={{this.onGoSkip}}\\n    >\\n      <Feature::Onboarding::NeedHelpLink />\\n    </Feature::Onboarding::Layout::Footer>\\n\\n  </:bottom>\\n</Feature::Onboarding::Layout>\\n', { moduleName: 'client/legacy/pods/project/onboarding/integration/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Orm @project={{this.model.project}} />\\n', { moduleName: 'client/legacy/pods/project/onboarding/orm/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type { ProjectOnboardingReviewRouteModel } from 'client/legacy/pods/project/onboarding/review/route';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nexport default class ProjectOnboardingReviewController extends Controller {\n  @service router: RouterService;\n  @service('feature/notification') businessNotification: NotificationFeatureService;\n\n  declare model: ProjectOnboardingReviewRouteModel;\n\n  @action\n  preventLeaving() {\n    this.router.on('routeWillChange', this._onRouteWillChange.bind(this));\n  }\n\n  @action async goNext() {\n    try {\n      await this.router.replaceWith('project', this.model.project.name).followRedirects();\n    } catch (e) {\n      // the route project.index redirects asynchronously to rendering, leading to transitionAborted here\n      if ((e as { message: string }).message === 'TransitionAborted') return;\n      throw e;\n    }\n  }\n\n  // ===================\n  // Handling transition\n  // ===================\n  _onRouteWillChange(transition: Transition) {\n    if (\n      transition.from?.name === 'project.onboarding.review'\n      && [\n        'project.onboarding',\n        'project.onboarding.hosting',\n        'project.onboarding.stack',\n        'project.onboarding.framework',\n        'project.onboarding.orm',\n        'project.onboarding.integration',\n      ].includes(transition.to.name)\n    ) {\n      // Notice: Inform user to pursue its journey\n      this.businessNotification.createToastr(\n        ToastrTypeEnum.Warning,\n        'Please submit a review to access your Admin Panel.',\n      );\n\n      void transition.abort();\n    }\n  }\n}\n","import type ProjectModel from 'client/data/models/project';\nimport type OnboardingFeatureService from 'client/features/onboarding/services/feature';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport type ProjectOnboardingReviewRouteModel = {\n  collectionsCount: number | null;\n  project: ProjectModel;\n};\n\nexport default class ProjectOnboardingReviewRoute extends Route<ProjectOnboardingReviewRouteModel> {\n  @service('feature/onboarding') onboardingService: OnboardingFeatureService;\n\n  async model() {\n    let collectionsCount: number | null = null;\n    try {\n      collectionsCount = await this.onboardingService.collectionsCount();\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (e) {\n      // it does not matter\n    }\n    return {\n      collectionsCount,\n      project: this.modelFor('project') as ProjectModel,\n    };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-insert this.preventLeaving}}\\n<Feature::Onboarding::Phase::Launch::Review\\n  @collectionsCount={{this.model.collectionsCount}}\\n  @flowName={{this.model.project.flow}}\\n  @goNext={{this.goNext}}\\n/>\\n', { moduleName: 'client/legacy/pods/project/onboarding/review/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type GuestModel from 'client/data/models/guest';\nimport type ProjectModel from 'client/data/models/project';\nimport type ProjectOnboardingController from 'client/legacy/pods/project/onboarding/controller';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport enforceProtocol from 'client/decorators/enforce-protocol';\nimport enforceWhiteLabel from 'client/decorators/enforce-white-label';\nimport { WAITING_STEP_NAME } from 'client/legacy/pods/project/onboarding/flows/installation/cloud/common';\n\ntype ProjectOnboardingModel = {\n  project: ProjectModel;\n  guest: GuestModel | null;\n  environmentSecretKey: string | null;\n};\n\n@enforceWhiteLabel()\n@enforceProtocol({ secure: true })\nexport default class ProjectOnboardingRoute extends Route<ProjectOnboardingModel> {\n  @service private currentUser: CurrentUserService;\n  @service private router: RouterService;\n  @service private serverFetch: ServerFetchService;\n  @service store: StoreService;\n  @service private errorHandler: ErrorHandlerService;\n\n  public readonly titleToken = 'Create a project';\n  public readonly HOSTING_ROUTE = 'project.onboarding.hosting' as const;\n  public readonly INTEGRATION_ROUTE = 'project.onboarding.integration' as const;\n  public readonly REVIEW_ROUTE = 'project.onboarding.review' as const;\n  public readonly DEPLOYMENT_ROUTE = 'project.onboarding.deployment' as const;\n\n  async beforeModel(transition: Transition): Promise<unknown> {\n    // Preserve user position on specific steps when hard reloading\n    if (this.isHardReload(transition) && !this.isAllowedHardReloadTarget(transition)) {\n      const project = this.modelFor('project') as ProjectModel;\n      return this.router.replaceWith(this.HOSTING_ROUTE, project.name);\n    }\n\n    const project = this.modelFor('project') as ProjectModel;\n    if (project.defaultEnvironment.isActive) {\n      // Allow direct access to deployment when env is active\n      if (transition.to?.name === this.DEPLOYMENT_ROUTE) return super.beforeModel(transition);\n\n      const hasReview = Boolean(await project.get('review'));\n      if (hasReview) return this.router.replaceWith('project', project.name);\n\n      if (transition.to?.name !== this.REVIEW_ROUTE) {\n        return this.router.replaceWith(this.REVIEW_ROUTE, project.name);\n      }\n    }\n\n    // If user lands on the base onboarding route (index), redirect to the first step (hosting)\n    if (\n      transition.to?.name === 'project.onboarding'\n      || transition.to?.name === 'project.onboarding.index'\n    ) {\n      return this.router.replaceWith(this.HOSTING_ROUTE, project.name);\n    }\n\n    return super.beforeModel(transition);\n  }\n\n  async model(): Promise<ProjectOnboardingModel> {\n    const project = this.modelFor('project') as ProjectModel;\n\n    const [environmentSecretKey, guest] = await Promise.all([\n      this.fetchEnvironmentSecretKey(project.defaultEnvironment.id),\n      this.store.queryRecord('guest', { userId: this.currentUser.model?.id }).catch(() => null),\n    ]);\n\n    return { project, guest, environmentSecretKey };\n  }\n\n  setupController(\n    controller: ProjectOnboardingController,\n    model: ProjectOnboardingModel,\n    transition: Transition,\n  ): void {\n    super.setupController(controller, model, transition);\n\n    // prevent child controllers to keep their state when doing a new onboarding\n    controller.reset?.();\n  }\n\n  private isHardReload(transition: Transition): boolean {\n    return !transition.from;\n  }\n\n  private isIntegrationWaitingTarget(transition: Transition): boolean {\n    const toName = transition.to?.name;\n    const step = transition.to?.queryParams?.step as string | undefined;\n    return toName === this.INTEGRATION_ROUTE && step === WAITING_STEP_NAME;\n  }\n\n  private isAllowedHardReloadTarget(transition: Transition): boolean {\n    const toName = transition.to?.name || '';\n    return (\n      toName === this.HOSTING_ROUTE\n      || toName.startsWith(this.DEPLOYMENT_ROUTE)\n      || toName === this.REVIEW_ROUTE\n      || this.isIntegrationWaitingTarget(transition)\n    );\n  }\n\n  private async fetchEnvironmentSecretKey(environmentId: number | string): Promise<string | null> {\n    try {\n      const response = await this.serverFetch.fetch(\n        `/api/environments/${environmentId}/secretKey`,\n        { method: 'GET' },\n        true,\n      );\n\n      const body = await response.json();\n\n      return (body as { secretKey: string }).secretKey;\n    } catch (e) {\n      this.errorHandler.handleSilentError(e as Error);\n      return null;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Stack @project={{this.model.project}} />\\n', { moduleName: 'client/legacy/pods/project/onboarding/stack/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{outlet}}\\n', { moduleName: 'client/legacy/pods/project/onboarding/template.hbs' });\n","import type BillingModel from 'client/data/models/billing';\nimport type { BillingUIServiceModel } from 'client/legacy/services/ui/project-settings/billing-ui-service';\n\nimport Controller from '@ember/controller';\n\n// Only needed by preventLeavingWithoutSaving\nexport default class ProjectProjectSettingsBillingEditCompanyController extends Controller {\n  declare model: BillingUIServiceModel;\n\n  public readonly breadcrumb = [\n    {\n      displayName: 'Billing',\n      link: 'project.project-settings.billing',\n      isClickable: true,\n    },\n    {\n      displayName: 'Edit company details',\n      isClickable: false,\n    },\n  ];\n\n  get billing(): BillingModel {\n    return this.model.billing;\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type EmberRouter from '@ember/routing/router';\nimport type { ProjectSettingsBillingRouteModel } from 'client/legacy/pods/project/project-settings/billing/route';\nimport type BillingUIService from 'client/legacy/services/ui/project-settings/billing-ui-service';\nimport type { BillingUIServiceModel } from 'client/legacy/services/ui/project-settings/billing-ui-service';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving<typeof ProjectProjectSettingsBillingEditCompanyRoute>('billing')\nexport default class ProjectProjectSettingsBillingEditCompanyRoute extends Route<BillingUIServiceModel> {\n  @service('ui/project-settings/billing-ui-service') declare billingUIService: BillingUIService;\n  @service declare router: EmberRouter;\n\n  async model() {\n    return this.billingUIService.model(\n      this.modelFor('project.project-settings.billing') as ProjectSettingsBillingRouteModel,\n    );\n  }\n\n  async afterModel(model: BillingUIServiceModel, transition: Transition) {\n    await super.afterModel(model, transition);\n\n    await this.billingUIService.afterModel(model);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Billing::BillingEditCompanyPage @billing={{this.model.billing}} />\\n', { moduleName: 'client/legacy/pods/project/project-settings/billing/edit/company/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Layout::LayoutLoader @type=\\\"loading\\\" />\\n', { moduleName: 'client/legacy/pods/project/project-settings/billing/edit/payment-loading/template.hbs' });\n","import type { BillingUIServiceModel } from 'client/legacy/services/ui/project-settings/billing-ui-service';\n\nimport Controller from '@ember/controller';\n\n// Only needed by preventLeavingWithoutSaving\nexport default class ProjectProjectSettingsBillingEditPaymentController extends Controller {\n  declare model: BillingUIServiceModel;\n\n  public readonly breadcrumb = [\n    {\n      displayName: 'Billing',\n      link: 'project.project-settings.billing',\n      isClickable: true,\n    },\n    {\n      displayName: 'Edit payment details',\n      isClickable: false,\n    },\n  ];\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type EmberRouter from '@ember/routing/router';\nimport type { ProjectSettingsBillingRouteModel } from 'client/legacy/pods/project/project-settings/billing/route';\nimport type BillingUIService from 'client/legacy/services/ui/project-settings/billing-ui-service';\nimport type { BillingUIServiceModel } from 'client/legacy/services/ui/project-settings/billing-ui-service';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving<typeof ProjectProjectSettingsBillingEditPaymentRoute>('billing')\nexport default class ProjectProjectSettingsBillingEditPaymentRoute extends Route<BillingUIServiceModel> {\n  @service('ui/project-settings/billing-ui-service') declare billingUIService: BillingUIService;\n  @service declare router: EmberRouter;\n\n  async model() {\n    return this.billingUIService.model(\n      this.modelFor('project.project-settings.billing') as ProjectSettingsBillingRouteModel,\n    );\n  }\n\n  async afterModel(model: BillingUIServiceModel, transition: Transition) {\n    await super.afterModel(model, transition);\n\n    await this.billingUIService.afterModel(model);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Billing::BillingEditPaymentPage\\n  @billing={{this.model.billing}}\\n  @stripeContext={{this.model.stripeContext}}\\n/>\\n', { moduleName: 'client/legacy/pods/project/project-settings/billing/edit/payment/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsBillingEditRoute extends Route {\n  @service router: RouterService;\n\n  public async beforeModel(transition: Transition) {\n    if (transition.to.name === 'project.project-settings.billing.edit.index') {\n      await this.router.transitionTo('project.project-settings.billing');\n    }\n  }\n}\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias, reads } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { capitalize } from '@ember/string';\nimport { pluralize } from 'ember-inflector';\nimport moment from 'moment';\n\nimport { PlanTypesEnum, PlanUnitsEnum } from 'client/data/models/plan';\n\nexport default class ProjectProjectSettingsBillingIndexController extends Controller {\n  /** @type {import('client/legacy/services/subscription-service').default} */\n  @service subscriptionService;\n  /** @type {import('client/legacy/services/liana-session').default} */\n  @service lianaSession;\n  @service router;\n\n  @reads('model.billing') billing;\n  @reads('model.plans') plans;\n  @alias('model.trial') trial;\n\n  // NOTICE: If billing contains an email field, it means that Stripe info (company and card)\n  //         has been fulfilled.\n  @reads('model.billing.email') hasPaymentDetails;\n\n  @alias('model.billing.subscription') subscription;\n  @alias('lianaSession.currentProject') project;\n\n  @alias('project.users.length') usersCount;\n\n  @reads('model.invoices') invoices;\n\n  @computed\n  get beginningOfTheMonth() {\n    return moment().startOf('month');\n  }\n\n  @computed('plans')\n  get starterPlan() {\n    return this.plans.find((plan) => plan.type === PlanTypesEnum.Starter);\n  }\n\n  @computed('billing.currentPlan.type', 'billing.isTrial', 'plans')\n  get currentOrTriedPlan() {\n    return (\n      (this.billing.isTrial\n        && this.plans.find((plan) => plan.type === this.billing.currentPlan?.type && !plan.isTrial))\n      || this.billing.currentPlan\n    );\n  }\n\n  @computed(\n    'beginningOfTheMonth',\n    'billing.currentPlan.unit',\n    'billing.{activitiesThisMonth,estimatedMonthlyPrice,isCommunity,isEnterprise,isPlus,isStarter,isTrial,isYearly,renewalDate}',\n    'currentOrTriedPlan.displayName',\n    'starterPlan.displayName',\n    'subscription.{commitment,paymentFrequency,renewalPlannedAt}',\n    'usersCount',\n  )\n  get billingDetails() {\n    const premiumFeatureText = () =>\n      `All ${capitalize(this.currentOrTriedPlan.displayName)} features`;\n\n    const monthlyFeeValue = this.billing.estimatedMonthlyPrice\n      ? `$ ${this.billing.estimatedMonthlyPrice}`\n      : `Free${this.billing.isTrial ? ' (Trial)' : ''}`;\n\n    const totalUsersValue = pluralize(this.usersCount, 'user');\n    const activitiesValues = pluralize(this.billing.activitiesThisMonth, 'activity');\n\n    const detailsOptions = {\n      monthlyFee: { key: 'Monthly fee', value: monthlyFeeValue },\n      commitment: {\n        key: 'Commitment',\n        value: `${this.subscription ? capitalize(this.subscription.commitment) : null}`,\n      },\n      paymentFrequency: {\n        key: 'Payment frequency',\n        value: `${\n          this.subscription?.paymentFrequency\n            ? capitalize(this.subscription?.paymentFrequency)\n            : null\n        }`,\n      },\n      renewalDate: { key: 'Renewal Date', value: `${this.billing.renewalDate}` },\n      totalUsers: { key: 'Total users', value: totalUsersValue },\n      activities: {\n        key: `Total activities since ${moment(this.beginningOfTheMonth).format('LL')}`,\n        value: activitiesValues,\n      },\n      premiumFeatures: { key: 'Features', value: premiumFeatureText() },\n    };\n\n    const details = [];\n\n    if (this.billing.isEnterprise) {\n      if (this.subscription?.renewalPlannedAt) {\n        details.push(detailsOptions.renewalDate);\n      }\n    } else {\n      details.push(detailsOptions.monthlyFee);\n\n      if (!this.billing.isCommunity && !this.billing.isTrial) {\n        details.push(detailsOptions.commitment);\n        if (detailsOptions.paymentFrequency.value) {\n          details.push(detailsOptions.paymentFrequency);\n        }\n      }\n\n      if (this.billing.isYearly) {\n        details.push(detailsOptions.renewalDate);\n      }\n    }\n\n    details.push(detailsOptions.totalUsers);\n\n    if (this.billing.currentPlan?.unit === PlanUnitsEnum.Activity) {\n      details.push(detailsOptions.activities);\n    }\n\n    if (!this.billing.isEnterprise) {\n      details.push(detailsOptions.premiumFeatures);\n    }\n\n    return details;\n  }\n\n  @action\n  goToManageYourPlan() {\n    this.router.transitionTo('project.project-settings.billing.manage-your-plan');\n  }\n\n  @action\n  async startTrial(trialPlan, realPlan) {\n    await this.subscriptionService.startTrial(this.project, trialPlan, realPlan);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout @class=\\\"l-billing-layout\\\">\\n  {{#if this.billing.isFree}}\\n    <Billing::BillingPlans\\n      @billing={{this.billing}}\\n      @plans={{this.plans}}\\n      @project={{this.project}}\\n      @trial={{this.trial}}\\n      @startTrial={{this.startTrial}}\\n    />\\n  {{/if}}\\n\\n  {{#unless this.billing.isWithoutPlan}}\\n    <Shared::ContentSeparator @withSideMargin={{true}} />\\n\\n    <Shared::BetaSettingsLayout::Section\\n      @title=\\\"Billing details\\\"\\n      @description=\\\"Find here details about your current plan and what\\'s included.\\\"\\n    >\\n      {{#if this.billing.isPaying}}\\n        <div class=\\\"l-billing-details__header\\\">\\n          <Billing::CurrentPlanTag @billing={{this.billing}} @plans={{this.plans}} />\\n          {{#unless this.billing.isEnterprise}}\\n            <Shared::Navigation::Link\\n              @type=\\\"forest-primary\\\"\\n              @text=\\\"Manage your plan\\\"\\n              @iconName=\\\"settings\\\"\\n              @onClick={{this.goToManageYourPlan}}\\n              data-test-button=\\\"manage-your-plan\\\"\\n            />\\n          {{/unless}}\\n        </div>\\n      {{/if}}\\n\\n      <Shared::DataDisplay::BetaDisplayList\\n        @items={{this.billingDetails}}\\n        @noPadding={{true}}\\n        data-test-list-for=\\\"details\\\"\\n        as |billingDetailsRow|\\n      >\\n        <div class=\\\"c-billing-details__cell-key\\\">\\n          <span class=\\\"c-billing-details__cell-text\\\">\\n            {{billingDetailsRow.key}}\\n          </span>\\n        </div>\\n        <div class=\\\"c-billing-details__cell-value\\\">\\n          <span class=\\\"c-billing-details__cell-text\\\">\\n            {{billingDetailsRow.value}}\\n          </span>\\n        </div>\\n      </Shared::DataDisplay::BetaDisplayList>\\n\\n      {{#if this.billing.isEnterprise}}\\n        <Shared::Feedback::Notification::NotificationInApp\\n          @state=\\\"info\\\"\\n          @message=\\\"Please refer to your custom contract for more details.\\\"\\n          @canHide={{false}}\\n          @contentClass=\\\"c-billing-details__notification-text\\\"\\n          @iconClass=\\\"c-billing-details__notification-icon\\\"\\n          @class=\\\"c-billing-details__notification\\\"\\n        />\\n      {{/if}}\\n    </Shared::BetaSettingsLayout::Section>\\n  {{/unless}}\\n\\n  {{#if (and this.billing.isPaying this.hasPaymentDetails)}}\\n    <Shared::ContentSeparator @withSideMargin={{true}} />\\n\\n    <Shared::BetaSettingsLayout::Section\\n      @title=\\\"Customer and payment details\\\"\\n      @description=\\\"Find your details about registration and payment.\\\"\\n    >\\n      <div class=\\\"c-billing-customer-payment-details\\\">\\n        <div class=\\\"c-billing-customer-payment-details__block\\\">\\n          <p class=\\\"c-billing-customer-payment-details__title\\\">\\n            Account registered to:\\n          </p>\\n          <Billing::BillingCompanyDetailsSummary @billing={{this.billing}} />\\n        </div>\\n        <div class=\\\"c-billing-customer-payment-details__block\\\">\\n          <p class=\\\"c-billing-customer-payment-details__title\\\">\\n            Payment details:\\n          </p>\\n          <Billing::BillingPaymentDetailsSummary\\n            @billing={{this.billing}}\\n            @editDetailsRouteName=\\\"project.project-settings.billing.edit.payment\\\"\\n          />\\n        </div>\\n      </div>\\n    </Shared::BetaSettingsLayout::Section>\\n  {{/if}}\\n\\n  {{#if this.invoices}}\\n    <Shared::ContentSeparator />\\n\\n    <ProjectSettings::InvoicesSection @invoices={{this.invoices}} />\\n  {{/if}}\\n\\n  {{#unless this.billing.isEnterprise}}\\n    <Shared::ContentSeparator />\\n    <Billing::BillingFooter @size=\\\"regular\\\" />\\n  {{/unless}}\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/project/project-settings/billing/index/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsBillingManageYourPlanController extends Controller {\n  /** @type {import('client/legacy/services/subscription-service').default} */\n  @service subscriptionService;\n  /** @type {import('client/legacy/services/liana-session').default} */\n  @service lianaSession;\n  @service router;\n\n  @reads('model.billing') billing;\n  @reads('model.plans') plans;\n\n  @computed\n  get breadcrumb() {\n    return [\n      {\n        displayName: 'Billing',\n        link: 'project.project-settings.billing',\n        isClickable: true,\n      },\n      {\n        displayName: 'Manage your plan',\n      },\n    ];\n  }\n\n  @action\n  goToBillingPage() {\n    this.router.transitionTo('project.project-settings.billing');\n  }\n\n  @action\n  async startTrial(trialPlan, realPlan) {\n    await this.subscriptionService.startTrial(\n      this.lianaSession.currentProject,\n      trialPlan,\n      realPlan,\n    );\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsBillingManageYourPlanRoute extends Route {\n  @service router;\n\n  afterModel(model, transition) {\n    super.afterModel(model, transition);\n    // NOTICE: Redirect if currently on a free/enterprise plan.\n    if (model.billing.get('isCommunity') || model.billing.get('isEnterprise')) {\n      this.router.transitionTo('project.project-settings.billing.index');\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout\\n  @class=\\\"l-manage-your-plan\\\"\\n  @noPadding={{true}}\\n  @onClose={{this.goToBillingPage}}\\n>\\n  <Billing::BillingPlans\\n    @billing={{this.billing}}\\n    @plans={{this.plans}}\\n    @project={{this.lianaSession.currentProject}}\\n    @startTrial={{this.startTrial}}\\n  />\\n  <Shared::ContentSeparator />\\n  <Billing::BillingFooter class=\\\"l-manage-your-plan__footer\\\" size=\\\"regular\\\" />\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/project/project-settings/billing/manage-your-plan/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n/**\n * @typedef {{\n *  billing: import('client/data/models/billing').default,\n *  plans: import('client/data/models/plan').default[],\n *  invoices: import('client/data/models/invoice').default[],\n * }} ProjectSettingsBillingRouteModel\n */\n\nexport default class ProjectProjectSettingsBillingRoute extends Route {\n  @service currentUser;\n  @service router;\n  @service store;\n\n  beforeModel() {\n    if (this.currentUser.isLoaded && !this.currentUser.can('updateBilling')) {\n      this.router.replaceWith('project.project-settings');\n    }\n  }\n\n  async model() {\n    /** @type {import('../route').ProjectSettingsRouteModel} */\n    const { project } = this.modelFor('project.project-settings');\n\n    const [billing, plans, invoices, trial] = await Promise.all([\n      project.get('billingDetailed'),\n      this.store.findAll('plan'),\n      project.invoices,\n      project.trial,\n    ]);\n\n    return {\n      billing,\n      plans,\n      invoices,\n      trial,\n    };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{outlet}}\\n', { moduleName: 'client/legacy/pods/project/project-settings/billing/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Layout::LayoutLoader @type=\\\"loading\\\" />\\n', { moduleName: 'client/legacy/pods/project/project-settings/billing/upgrade-loading/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport { SubscriptionCommitmentsEnum } from 'client/data/models/subscription';\n\nexport default class ProjectProjectSettingsBillingUpgradeController extends Controller {\n  @service routeHistory;\n  @service store;\n  @service lianaSession;\n  /** @type {import('client/legacy/services/ui/project-settings/billing-ui-service').default} */\n  @service('ui/project-settings/billing-ui-service') billingUIService;\n\n  /** @type {import( '@ember/routing/router-service').default} */\n  @service router;\n  /** @type {import('client/legacy/services/tracker').default} */\n  @service tracker;\n\n  queryParams = [\n    'requestedFeature',\n    'requestedFeatureParams',\n    'requestedFeatureCallbackRoute',\n    'plan',\n    'commitment',\n  ];\n\n  /** @type {import('../../../../../../models/billing').default')} */\n  @alias('model.billing') billing;\n  @alias('model.plans') plans;\n  /** @type {import('client/legacy/services/stripe-service').stripeContext} */\n  @alias('model.stripeContext') stripeContext;\n  @alias('lianaSession.currentProject') project;\n  @alias('project.users.length') usersCount;\n\n  @tracked isTermsAgreed = false;\n  @tracked plan = 'starter';\n  @tracked commitment = SubscriptionCommitmentsEnum.Yearly;\n  @tracked requestedFeature = null;\n\n  @tracked\n  showBillingForm = false;\n\n  @tracked\n  showCardForm = false;\n\n  @computed('routeHistory.history.lastObject')\n  get breadcrumb() {\n    const breadcrumb = [\n      {\n        displayName: 'Billing',\n        link: 'project.project-settings.billing',\n        isClickable: true,\n      },\n    ];\n    const previousRoute = this.routeHistory.getPreviousRoute();\n    if (\n      previousRoute\n      && previousRoute.routeName === 'project.project-settings.billing.manage-your-plan'\n    ) {\n      breadcrumb.push({\n        displayName: 'Manage your plan',\n        link: 'project.project-settings.billing.manage-your-plan',\n        isClickable: true,\n      });\n    }\n\n    breadcrumb.push({\n      displayName: 'Upgrade',\n    });\n    return breadcrumb;\n  }\n\n  // NOTICE: If the user is allowed to choose the commitment, the selectedCommitment initial value\n  //         is equal to the to the queryParams. Else it's equal to the current commitment.\n  @computed('billing.isAllowedToChooseCommitment', 'billing.subscription.commitment', 'commitment')\n  get selectedCommitment() {\n    return this.billing.isAllowedToChooseCommitment\n      ? this.commitment\n      : this.billing.subscription.commitment;\n  }\n\n  set selectedCommitment(value) {\n    this.commitment = value;\n  }\n\n  @computed('plan', 'plans')\n  get chosenPlan() {\n    return this.plans.find((plan) => plan.type === this.plan && !plan.isTrial && plan.isActive);\n  }\n\n  @action\n  async upgradeToPlan(callback) {\n    try {\n      await this.billingUIService.upgradeToPlan({\n        billing: this.billing,\n        project: this.project,\n        chosenPlan: this.chosenPlan,\n        chosenCommitment: this.selectedCommitment,\n        editPaymentDetails: this.showCardForm,\n        stripeContext: this.model.stripeContext,\n        postUpgradeUrl: this.postUpgradeUrl,\n      });\n    } finally {\n      if (callback) {\n        callback();\n      }\n    }\n  }\n\n  get postUpgradeUrl() {\n    if (this.requestedFeature) {\n      let params = [];\n      if (this.requestedFeatureParams) {\n        params = this.requestedFeatureParams.split(',');\n      }\n\n      return this.router.urlFor(this.requestedFeatureCallbackRoute, ...params);\n    }\n    return this.router.urlFor('project.project-settings.billing.index');\n  }\n\n  @action\n  redirectToPricing() {\n    window.open('https://www.forestadmin.com/pricing', '_blank', 'noopener');\n  }\n\n  @action\n  goToBillingPage() {\n    this.router.transitionTo('project.project-settings.billing');\n  }\n\n  @action\n  onClickEditDetails() {\n    this.showCardForm = true;\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { PlanTypesEnum } from 'client/data/models/plan';\nimport { SubscriptionCommitmentsEnum } from 'client/data/models/subscription';\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving('billing')\nexport default class ProjectProjectSettingsBillingUpgradeRoute extends Route {\n  /**\n   * @type {import('client/legacy/services/stripe-service').default}\n   */\n  @service stripeService;\n  @service router;\n\n  async model() {\n    const model = this.modelFor('project.project-settings.billing');\n    return {\n      ...model,\n      stripeContext: await this.stripeService.generateStripeContext(model.billing.id),\n    };\n  }\n\n  afterModel(model, transition) {\n    super.afterModel(model, transition);\n\n    const selectedPlan =\n      transition.to.queryParams && transition.to.queryParams.plan\n        ? transition.to.queryParams.plan\n        : PlanTypesEnum.Starter;\n\n    const selectedCommitment =\n      transition.to.queryParams && transition.to.queryParams.commitment\n        ? transition.to.queryParams.commitment\n        : SubscriptionCommitmentsEnum.Yearly;\n\n    // NOTICE: Also redirect for inconsistent queryParams\n    if (\n      ![PlanTypesEnum.Starter, PlanTypesEnum.Plus].includes(selectedPlan)\n      || !Object.values(SubscriptionCommitmentsEnum).includes(selectedCommitment)\n      || (selectedPlan === PlanTypesEnum.Starter\n        && (model.billing.get('isPlus') || model.billing.get('isEnterprise'))\n        && !model.billing.isTrial)\n      || (selectedPlan === PlanTypesEnum.Plus && model.billing.get('isEnterprise'))\n    ) {\n      this.router.transitionTo('project.project-settings.billing.index');\n    }\n  }\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n    controller.set('showBillingForm', !model.email);\n    controller.set('showCardForm', !model.billing.hasCardNumber);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout\\n  @onClose={{this.goToBillingPage}}\\n  @noPadding={{true}}\\n  class=\\\"l-billing-upgrade\\\"\\n>\\n  {{#if this.showBillingForm}}\\n    <Shared::BetaSettingsLayout::Section\\n      @title=\\\"Company details\\\"\\n      @description=\\\"This information will appear on your bill.\\\"\\n      @size=\\\"small\\\"\\n    >\\n      <Billing::BillingCompanyDetailsForm @billing={{this.billing}} />\\n    </Shared::BetaSettingsLayout::Section>\\n\\n    <Shared::ContentSeparator />\\n\\n    <Shared::BetaSettingsLayout::Section\\n      @title=\\\"Payment details\\\"\\n      @description=\\\"We use Stripe to process your payment.\\\"\\n      @size=\\\"small\\\"\\n    >\\n      {{#if this.showCardForm}}\\n        <Billing::BillingStripePayment @paymentElements={{this.stripeContext.elements}} />\\n      {{else}}\\n        <Billing::BillingPaymentDetailsSummary\\n          @billing={{this.billing}}\\n          @onClickEditDetails={{this.onClickEditDetails}}\\n        />\\n      {{/if}}\\n    </Shared::BetaSettingsLayout::Section>\\n  {{else}}\\n    <div class=\\\"l-billing-upgrade-with-payment-details\\\">\\n      <div class=\\\"c-billing-upgrade-card l-billing-upgrade-with-payment-details__card\\\">\\n        <div class=\\\"l-billing-upgrade-with-payment-details__card-section\\\">\\n          <p class=\\\"l-billing-upgrade-with-payment-details__card-title\\\">\\n            Account registered to\\n          </p>\\n          <Billing::BillingCompanyDetailsSummary @billing={{this.billing}} />\\n        </div>\\n        <div class=\\\"l-billing-upgrade-with-payment-details__card-section\\\">\\n          <p class=\\\"l-billing-upgrade-with-payment-details__card-title\\\">\\n            Payment details\\n          </p>\\n          <Billing::BillingPaymentDetailsSummary\\n            @billing={{this.billing}}\\n            @editDetailsRouteName=\\\"project.project-settings.billing.edit.payment\\\"\\n          />\\n        </div>\\n      </div>\\n      <div class=\\\"c-billing-upgrade-card l-billing-upgrade-with-payment-details__card\\\">\\n        <Billing::BillingOrderSummary\\n          @isTermsAgreed={{this.isTermsAgreed}}\\n          @plan={{this.chosenPlan}}\\n          @upgradeToPlan={{this.upgradeToPlan}}\\n          @isAllowedToChooseCommitment={{this.billing.isAllowedToChooseCommitment}}\\n          @selectedCommitment={{this.selectedCommitment}}\\n          @activitiesCount={{this.billing.activitiesThisMonth}}\\n          @seatsCount={{this.usersCount}}\\n        />\\n      </div>\\n    </div>\\n  {{/if}}\\n  <Shared::ContentSeparator />\\n  <Billing::BillingFooter @size=\\\"small\\\" />\\n</Shared::BetaSettingsLayout>\\n\\n{{#if this.showBillingForm}}\\n  <div class=\\\"c-billing-upgrade-card l-billing-upgrade__card\\\">\\n    <Billing::BillingOrderSummary\\n      @isTermsAgreed={{this.isTermsAgreed}}\\n      @plan={{this.chosenPlan}}\\n      @upgradeToPlan={{this.upgradeToPlan}}\\n      @isAllowedToChooseCommitment={{this.billing.isAllowedToChooseCommitment}}\\n      @selectedCommitment={{this.selectedCommitment}}\\n      @activitiesCount={{this.billing.activitiesThisMonth}}\\n      @seatsCount={{this.usersCount}}\\n    />\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/project-settings/billing/upgrade/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsController extends Controller {\n  @service abilities;\n  @service('feature/mcp-server') mcpServerFeature;\n  @service currentUser;\n  @service routeHistory;\n  @service router;\n\n  @alias('model.project') project;\n  @alias('model.isSecurityEnabled') isSecurityEnabled;\n\n  @computed(\n    'abilities',\n    'currentUser.permissions.[]',\n    'isSecurityEnabled',\n    'project.premiumWhiteLabel',\n  )\n  get menuItems() {\n    const items = [\n      {\n        label: 'General',\n        link: 'project.project-settings.general',\n        isEnabled: this.currentUser.can('removeProject'),\n      },\n      {\n        label: 'Interface',\n        link: 'project.project-settings.interface',\n        isEnabled:\n          this.abilities.can('access to whiteLabel') && this.currentUser.can('removeProject'),\n      },\n      {\n        label: 'Connectors',\n        link: 'project.project-settings.connectors',\n        isEnabled: this.mcpServerFeature.canCreateMcpServer(),\n      },\n      {\n        label: 'Environments',\n        link: 'project.project-settings.environments',\n        isEnabled: this.currentUser.can('createEnvironment'),\n      },\n      {\n        label: 'Teams',\n        link: 'project.project-settings.teams',\n        isEnabled: this.currentUser.can('updateTeam'),\n      },\n      {\n        label: 'Users',\n        link: 'project.project-settings.users',\n        isEnabled: this.currentUser.can('removeProjectUser'),\n      },\n      {\n        label: 'Roles',\n        link: 'project.project-settings.roles',\n        isEnabled: this.currentUser.can('createRole'),\n      },\n      {\n        label: 'Billing',\n        link: 'project.project-settings.billing',\n        isEnabled: this.currentUser.can('updateBilling'),\n      },\n      {\n        label: 'Security',\n        link: 'project.project-settings.security',\n        isEnabled: this.isSecurityEnabled && this.currentUser.can('removeProject'),\n      },\n    ];\n\n    return items.filter((item) => item.isEnabled);\n  }\n\n  @action\n  closeProjectSettings() {\n    const lastRenderingPage = this.routeHistory.getLastRenderingPage(this.project.name);\n    if (lastRenderingPage) {\n      return this.router.transitionTo(lastRenderingPage.routeName, ...lastRenderingPage.params, {\n        queryParams: lastRenderingPage.queryParams,\n      });\n    }\n    return this.router.transitionTo('project');\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type DatasourceModel from 'client/data/models/datasource';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsEnvironmentsDetailsDatasourcesController extends Controller {\n  @service private declare lianaSession: LianaSessionService;\n  @service private declare router: RouterService;\n  declare model: {\n    environment: EnvironmentModel;\n    datasource: DatasourceModel;\n  };\n\n  @action\n  async onClose() {\n    await this.router.transitionTo('project.project-settings.environments');\n  }\n\n  get breadcrumb() {\n    return [\n      {\n        displayName: 'Environments',\n        link: 'project.project-settings.environments',\n        isClickable: true,\n      },\n      {\n        displayName: this.lianaSession.currentEnvironment.name,\n        link: `project.project-settings.environments.details`,\n        params: this.lianaSession.currentEnvironment,\n        isClickable: true,\n      },\n      {\n        displayName: 'Databases',\n        link: `project.project-settings.environments.details`,\n        params: this.lianaSession.currentEnvironment,\n        isClickable: true,\n      },\n      {\n        displayName: this.model.datasource.name,\n      },\n    ];\n  }\n}\n","import type DatasourceModel from 'client/data/models/datasource';\nimport type EnvironmentModel from 'client/data/models/environment';\n\nimport Route from '@ember/routing/route';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving<typeof ProjectProjectSettingsEnvironmentsDetailsDatasourceRoute>(\n  'datasource',\n)\nexport default class ProjectProjectSettingsEnvironmentsDetailsDatasourceRoute extends Route {\n  model(params: { editing_datasource_name: string }) {\n    const { datasources, environment } = this.modelFor(\n      'project.project-settings.environments.details',\n    ) as {\n      datasources: DatasourceModel[];\n      environment: EnvironmentModel;\n    };\n    return {\n      environment,\n      datasource: datasources.find(\n        (datasource) => datasource.name.toString() === params.editing_datasource_name.toString(),\n      ),\n      singleDatasource: datasources.length === 1,\n    };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Cloud::ProjectCloudSettings\\n  @datasource={{this.model.datasource}}\\n  @environment={{this.model.environment}}\\n  @singleDatasource={{this.model.singleDatasource}}\\n  @onClose={{this.onClose}}\\n  data-test-project-cloud-settings\\n/>\\n', { moduleName: 'client/legacy/pods/project/project-settings/environments/details/databases/template.hbs' });\n","import Controller, { inject as controller } from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias, readOnly } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsEnvironmentsDetailsController extends Controller {\n  @controller('project') projectController;\n\n  @service environmentsWithoutEnabledRoles;\n  @service router;\n\n  @alias('model.environment') environment;\n  @readOnly('model.project.defaultEnvironment') defaultEnvironment;\n  @readOnly('model.project.availableEnvironments') projectEnvironments;\n  @readOnly('model.environmentSecretKey') environmentSecretKey;\n  @readOnly('model.error') error;\n\n  @computed('environment.name', 'model.environment.name')\n  get breadcrumb() {\n    return [\n      {\n        displayName: 'Environments',\n        link: 'project.project-settings.environments',\n        isClickable: true,\n      },\n      {\n        displayName: this.environment.name,\n      },\n    ];\n  }\n\n  get environmentsWithoutRolesEnabled() {\n    return this.environmentsWithoutEnabledRoles.getAll();\n  }\n\n  @action\n  updateBreadcrumbAndRoute(newEnvironmentName) {\n    this.set('environmentName', newEnvironmentName);\n    this.router.replaceWith(this.router.currentRouteName, newEnvironmentName);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.environment}}\\n  <EnvironmentSettingsDetails\\n    @environment={{this.environment}}\\n    @datasources={{this.model.datasources}}\\n    @projectEnvironments={{this.projectEnvironments}}\\n    @updateBreadcrumbAndRoute={{this.updateBreadcrumbAndRoute}}\\n    @continueDeploy={{this.projectController.continueDeploy}}\\n    @defaultEnvironment={{this.defaultEnvironment}}\\n    @refreshData={{route-action \\'refreshProjectRoute\\'}}\\n    @environmentSecretKey={{this.environmentSecretKey}}\\n    @hasNoRolesEnabled={{array-of-objects-contains\\n      this.environmentsWithoutRolesEnabled\\n      \\'id\\'\\n      this.environment.id\\n    }}\\n  />\\n{{else}}\\n  <Layout::LayoutError @error={{this.error}} />\\n{{/if}}\\n\\n', { moduleName: 'client/legacy/pods/project/project-settings/environments/details/index/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport { ERROR_ACCESS_RECORD_FORBIDDEN, ERROR_NOT_FOUND } from 'client/config/errors';\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving('environment')\nexport default class ProjectProjectSettingsEnvironmentsDetailsRoute extends Route {\n  @service lianaSession;\n  @service serverFetch;\n  @service errorHandler;\n\n  _onUnloadEvent = null;\n\n  async model(params) {\n    const { project } = this.modelFor('project.projectSettings');\n    const environment = project.environments.findBy('name', params.editing_environment_name);\n\n    let error;\n    let environmentSecretKey = null;\n    if (!environment) {\n      error = {\n        type: ERROR_NOT_FOUND,\n        options: { target: `Environment \"${params.editing_environment_name}\"` },\n      };\n    } else {\n      try {\n        const response = await this.serverFetch.fetch(\n          `/api/environments/${environment.id}/secretKey`,\n          { method: 'GET' },\n          true,\n        );\n        environmentSecretKey = await response.json();\n      } catch (e) {\n        this.errorHandler.handleSilentError(e);\n        error = {\n          type: ERROR_ACCESS_RECORD_FORBIDDEN,\n          options: { target: `Environment \"${params.editing_environment_name}\"` },\n        };\n      }\n    }\n    const datasources = await environment.datasources;\n\n    return hash({\n      project,\n      environment,\n      datasources,\n      error,\n      defaultEnvironment: project.defaultEnvironment,\n      environmentSecretKey: environmentSecretKey?.secretKey,\n    });\n  }\n}\n","import type EmberArray from '@ember/array';\nimport type RouterService from '@ember/routing/router-service';\nimport type BranchModel from 'client/data/models/branch';\nimport type { AgentTypeEnum } from 'client/data/models/environment';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type ProjectModel from 'client/data/models/project';\nimport type TeamModel from 'client/data/models/team';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type DocumentationLinkGetterService from 'client/legacy/services/documentation-link-getter';\nimport type EnvironmentsWithoutEnabledRolesService from 'client/legacy/services/environments-without-enabled-roles';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type PlanService from 'client/legacy/services/plan-service';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Controller, { inject as controller } from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport emberErrorUtil from 'client/utils/ember-error-util';\nimport chooseNewName from 'client/utils/onboarding/choose-new-name';\nimport { createIncludesCaseInsensitive } from 'client/utils/string-utils';\n\nexport default class ProjectProjectSettingsEnvironmentsIndexController extends Controller {\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-ignore\n  @controller('project') projectController;\n\n  @service declare store: StoreService;\n  @service private declare environmentsWithoutEnabledRoles: EnvironmentsWithoutEnabledRolesService;\n  @service private declare router: RouterService;\n  @service private declare planService: PlanService;\n  @service private declare documentationLinkGetter: DocumentationLinkGetterService;\n  @service private serverFetch: ServerFetchService;\n  @service private lianaSession: LianaSessionService;\n  @service('feature/notification') private businessNotification: NotificationFeatureService;\n\n  @alias('model.devEnvironment') devEnvironment: EnvironmentModel;\n  @alias('model.environments') environments: EmberArray<EnvironmentModel>;\n  @alias('model.project') project: ProjectModel;\n  @alias('model.team') team: TeamModel;\n\n  declare model: {\n    project?: ProjectModel;\n    environments?: EnvironmentModel[];\n    devEnvironment?: EnvironmentModel;\n    defaultEnvironment?: EnvironmentModel;\n  };\n\n  branchesSearched: BranchModel[];\n\n  get devWorkflowDocumentationLink() {\n    return this.documentationLinkGetter.getDocumentationLink('development workflow');\n  }\n\n  @computed('environments.@each.{isProduction,isActive}')\n  get hasProduction() {\n    return this.environments.any((environment) => environment.isProduction && environment.isActive);\n  }\n\n  @computed('environments.@each.isRemote')\n  get hasRemoteEnvironment() {\n    return this.environments.any((environment) => environment.isRemote && environment.isActive);\n  }\n\n  @computed('devEnvironment')\n  get hasDevelopmentEnvironment() {\n    return Boolean(this.devEnvironment);\n  }\n\n  get environmentsWithoutRolesEnabled() {\n    return this.environmentsWithoutEnabledRoles.getAll();\n  }\n\n  @computed('planService.currentPlan.maxRemoteEnvironments')\n  get remoteEnvironmentLimit() {\n    return this.planService.currentPlan?.maxRemoteEnvironments;\n  }\n\n  @computed('environments.length', 'planService.currentPlan.maxRemoteEnvironments')\n  get hasReachedMaxRemoteEnvironments() {\n    return (\n      this.planService.currentPlan?.maxRemoteEnvironments !== null\n      && this.environments.filter((environment) => environment.isRemote).length\n        >= this.planService.currentPlan?.maxRemoteEnvironments\n    );\n  }\n\n  @action\n  testEnvironmentDocLink(agentType: AgentTypeEnum) {\n    return this.documentationLinkGetter.getDocumentationLink('test environment', agentType);\n  }\n\n  @action\n  async createRemoteEnvironment() {\n    const environments = await this.project.get('environments');\n\n    const names = environments.map((environment) => environment.name);\n\n    const environmentRemote = await this.store\n      .createRecord('environment', {\n        project: this.project,\n        type: 'remote',\n        name: chooseNewName({\n          currentNames: names,\n          prefix: 'remote',\n          separator: '-',\n        }),\n      })\n      .save();\n\n    await this.router.transitionTo('project.onboarding.deployment', {\n      queryParams: { environmentId: environmentRemote.id },\n    });\n  }\n\n  @action\n  async transitionToEnvironmentDetails(environment: EnvironmentModel) {\n    await this.router.transitionTo(\n      'project.project-settings.environments.details',\n      environment.name,\n    );\n  }\n\n  @action\n  async transitionToEnvironmentDetailsFromBranch(branch: BranchModel) {\n    await this.router.transitionTo(\n      'project.project-settings.environments.details',\n      branch.environment.name,\n    );\n  }\n\n  @action\n  searchBranch(search: string) {\n    const includesSearchValue = createIncludesCaseInsensitive(search);\n    const branchesSearched = this.project.branches.filter(\n      (branch) =>\n        includesSearchValue(branch.name)\n        || includesSearchValue(branch.environment.get('owner').get('fullName')),\n    );\n    this.set('branchesSearched', branchesSearched);\n  }\n\n  setFromCookie() {\n    window.Cookies.set('from', {\n      projectName: this.project.name,\n    });\n  }\n\n  @action\n  shouldDisplayRolesIssue(environmentId) {\n    return this.environmentsWithoutRolesEnabled.some(\n      (environments) => environments.id === environmentId,\n    );\n  }\n\n  async getDevEnvSecretKey() {\n    const secretResponse = await this.serverFetch.fetch(\n      `/api/environments/${this.devEnvironment.id}/secretKey`,\n      { method: 'GET' },\n    );\n\n    if (!secretResponse.ok) {\n      const errors: unknown = await secretResponse.json();\n\n      this.businessNotification.createToastr(\n        ToastrTypeEnum.Error,\n        emberErrorUtil.getFirstErrorDetail(errors),\n      );\n\n      return false;\n    }\n\n    return (await secretResponse.json()) as { secretKey: string };\n  }\n\n  async reloadEnvAndBranches() {\n    await this.project.branches.reload();\n    await this.devEnvironment.reload();\n    if (this.lianaSession.currentEnvironment === this.devEnvironment) {\n      // Used to avoir strange behavior and crashes\n      this.lianaSession.invalidate();\n    }\n  }\n\n  @action\n  async createBranch(branchName: string, originName: string) {\n    const environmentSecretKey = await this.getDevEnvSecretKey();\n\n    if (!environmentSecretKey) return false;\n\n    const response = await this.serverFetch.fetch('/api/branches/', {\n      method: 'POST',\n      headers: { 'forest-secret-key': environmentSecretKey?.secretKey },\n      body: JSON.stringify({ originName, branchName }),\n    });\n\n    if (!response.ok) {\n      const errors: unknown = await response.json();\n\n      this.businessNotification.createToastr(\n        ToastrTypeEnum.Error,\n        `Error while creating branch: ${emberErrorUtil.getFirstErrorDetail(errors)}`,\n      );\n\n      return false;\n    }\n\n    this.businessNotification.createToastr(\n      ToastrTypeEnum.Success,\n      'New branch successfully created.',\n    );\n\n    await this.reloadEnvAndBranches();\n\n    return true;\n  }\n}\n","import type EmberArray from '@ember/array';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type ProjectModel from 'client/data/models/project';\nimport type ProjectProjectSettingsEnvironmentsIndexController from 'client/legacy/pods/project/project-settings/environments/index/controller';\n\nimport Route from '@ember/routing/route';\nimport { hash } from 'rsvp';\n\nfunction isVisible(environment: EnvironmentModel) {\n  return !environment.isDeleted && !environment.isNew && !environment.isDevelopment;\n}\n\nfunction isDevelopmentVisible(environment: EnvironmentModel) {\n  return !environment.isDeleted && !environment.isNew && environment.isDevelopment;\n}\n\nexport type ProjectProjectSettingsEnvironmentsIndexRouteModel = {\n  project: ProjectModel;\n  devEnvironment: EnvironmentModel;\n  environments: EmberArray<EnvironmentModel>;\n};\n\nexport default class ProjectProjectSettingsEnvironmentsIndexRoute extends Route {\n  async model(): Promise<ProjectProjectSettingsEnvironmentsIndexRouteModel> {\n    const { project } = this.modelFor('project.project-settings') as { project: ProjectModel };\n\n    await project.get('users');\n\n    const devEnvironment = project.ownEnvironments.find((environment) =>\n      isDevelopmentVisible(environment),\n    );\n    const environments = project.environments\n      .filter((environment) => isVisible(environment))\n      .sort((e1, e2) => {\n        const compareIsDevelopment = +e1.isDevelopment - +e2.isDevelopment;\n        if (compareIsDevelopment) return compareIsDevelopment;\n        const compareStagePriority = +e1.stagePriority - +e2.stagePriority;\n        if (compareStagePriority) return compareStagePriority;\n        return e1.name.localeCompare(e2.name);\n      });\n\n    return hash({\n      project,\n      devEnvironment,\n      environments,\n    });\n  }\n\n  setupController(\n    controller: ProjectProjectSettingsEnvironmentsIndexController,\n    model: ProjectProjectSettingsEnvironmentsIndexRouteModel,\n  ) {\n    super.setupController(controller, model, null);\n\n    void controller.set('branchesSearched', model.project.branches);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! template-lint-disable template-length }}\\n<Shared::BetaSettingsLayout>\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"Environments\\\"\\n    @description=\\\"Add, edit or delete environments of this project.\\\"\\n  >\\n    <:header-buttons>\\n      {{#if this.project.isSelfHostedProject}}\\n        {{#if this.hasProduction}}\\n          <Shared::Button::BetaButton\\n            @type=\\\"primary\\\"\\n            @text=\\\"Add a new environment\\\"\\n            @action={{this.createRemoteEnvironment}}\\n            @disabled={{this.hasReachedMaxRemoteEnvironments}}\\n            @isIconAfterText={{true}}\\n            data-test-deploy-to-remote={{true}}\\n          />\\n        {{else if (or this.hasRemoteEnvironment this.hasReachedMaxRemoteEnvironments)}}\\n          <Shared::Button::BetaButton\\n            @type=\\\"primary\\\"\\n            @text=\\\"Deploy to production\\\"\\n            @action={{this.projectController.deployToProduction}}\\n            @isIconAfterText={{true}}\\n            data-test-deploy-to-production={{true}}\\n          />\\n        {{else}}\\n          <Form::Dropdown class=\\\"c-environments__dropdown-container\\\" as |showDropdown|>\\n            <Shared::Button::BetaButton\\n              @type=\\\"primary\\\"\\n              @text=\\\"Deploy\\\"\\n              @iconName=\\\"keyboard_arrow_down\\\"\\n              @isIconAfterText={{true}}\\n              class=\\\"c-environments__dropdown-button\\\"\\n              data-test-dropdown-button={{true}}\\n            />\\n            {{#if showDropdown}}\\n              <Form::Dropdown::Content class=\\\"c-environments__dropdown-actions\\\">\\n                <Form::Dropdown::Action\\n                  @name=\\\"Deploy to production\\\"\\n                  @onClick={{this.projectController.deployToProduction}}\\n                  data-test-dropdown-action-deploy-to-production={{true}}\\n                />\\n                <Form::Dropdown::Action\\n                  @name=\\\"Deploy to a remote environment first\\\"\\n                  @onClick={{this.createRemoteEnvironment}}\\n                  data-test-dropdown-action-deploy-to-remote={{true}}\\n                />\\n              </Form::Dropdown::Content>\\n            {{/if}}\\n          </Form::Dropdown>\\n        {{/if}}\\n      {{/if}}\\n    </:header-buttons>\\n\\n    <:default>\\n      {{#if (not this.hasProduction)}}\\n        <Shared::Feedback::Notification::NotificationInApp\\n          @state=\\\"warning\\\"\\n          @canHide={{false}}\\n          @class=\\\"c-environments__notification\\\"\\n          @contentClass=\\\"c-environments__notification-content\\\"\\n          data-test-notification=\\\"deploy-to-production\\\"\\n        >\\n          <span>\\n            Your admin panel is not live yet. Deploy it to production!\\n          </span>\\n        </Shared::Feedback::Notification::NotificationInApp>\\n      {{else if this.hasReachedMaxRemoteEnvironments}}\\n        <PlanLimitBanner\\n          @limitValue={{this.remoteEnvironmentLimit}}\\n          @limitedEntity=\\\"remote environment\\\"\\n        />\\n      {{/if}}\\n\\n      {{#if this.environments.length}}\\n        <Shared::DataDisplay::BetaDisplayList\\n          @items={{this.environments}}\\n          @onItemClick={{this.transitionToEnvironmentDetails}}\\n          data-test-list=\\\"environments\\\"\\n          as |environment|\\n        >\\n          <div class=\\\"c-environments__environments\\\">\\n\\n            <div class=\\\"c-environments__environment-name\\\">\\n              <Shared::DataDisplay::BetaBadge\\n                @color={{environment.badgeColor}}\\n                @style={{if environment.isInactive \\'dashed\\'}}\\n                data-test-environment-badge={{environment.id}}\\n              >\\n                {{#if environment.areRolesDisabled}}\\n                  <div\\n                    id=\\\"environment-{{environment.id}}\\\"\\n                    data-test-environment-test={{environment.id}}\\n                  >\\n                    <Shared::DataDisplay::BetaIcon\\n                      @iconName=\\\"code\\\"\\n                      @size=\\\"tiny\\\"\\n                      @verticalCentered={{true}}\\n                      @class=\\\"c-environments__test-icon\\\"\\n                    />\\n                    <Shared::Feedback::BetaTooltip\\n                      @tooltipSide=\\\"right\\\"\\n                      @targetId=\\\"environment-{{environment.id}}\\\"\\n                      @hideDelay={{400}}\\n                      @spacing={{20}}\\n                    >\\n                      <span data-test-environment-test-tooltip={{environment.id}}>\\n                        This is a\\n                        {{#if environment.lianaName}}\\n                          <Shared::Navigation::BetaLinkTo\\n                            @type=\\\"primary\\\"\\n                            @text=\\\"test environment\\\"\\n                            @href={{compute (fn this.testEnvironmentDocLink environment.lianaName)}}\\n                            @isInline={{true}}\\n                            @size=\\\"custom\\\"\\n                            @target=\\\"blank\\\"\\n                            @class=\\\"c-environments__test-link\\\"\\n                            data-test-environment-test-tooltip-link={{environment.id}}\\n                          />\\n                        {{else}}\\n                          test environment\\n                        {{/if}}\\n                        where roles have been disabled\\n                      </span>\\n                    </Shared::Feedback::BetaTooltip>\\n                  </div>\\n                  {{environment.name}}\\n                {{else}}\\n                  {{environment.name}}\\n                {{/if}}\\n              </Shared::DataDisplay::BetaBadge>\\n            </div>\\n\\n            <div class=\\\"c-environments__environment-endpoint\\\">\\n              <span class=\\\"c-environments__environment-endpoint-text\\\">\\n                {{(if environment.isInactive \\'Draft\\')}}\\n                {{(if (and environment.apiEndpoint environment.isInactive) \\' | \\')}}\\n                {{environment.apiEndpoint}}\\n              </span>\\n            </div>\\n\\n            <div class=\\\"c-environments__environment-additional\\\">\\n              {{! I\\'m super frustrated to use this syntax (compute fn...) due to a block-indentation linting issue }}\\n\\n              {{#if environment.isBlocked}}\\n                <span class=\\\"c-environments__environment-blocked\\\" data-test-remote-blocked>\\n                  <i class=\\\"material-icons c-environments__icon-blocked\\\">\\n                    report_problem\\n                  </i>\\n                  Blocked\\n                </span>\\n              {{else if environment.isInactive}}\\n                <Shared::Button::BetaButton\\n                  @type=\\\"success-outline\\\"\\n                  @text=\\\"Deploy\\\"\\n                  @action={{(fn this.projectController.continueDeploy environment.id)}}\\n                  @isIconAfterText={{true}}\\n                  data-test-continue-deploy\\n                />\\n              {{else if (compute (fn this.shouldDisplayRolesIssue environment.id))}}\\n                <span class=\\\"c-environments__environment-no-role\\\">\\n                  <i class=\\\"material-icons c-environments__icon\\\">\\n                    report_problem\\n                  </i>\\n                  0 roles enabled\\n                </span>\\n              {{else if (and (not environment.isProduction) environment.currentBranch)}}\\n                <DataDisplay::BranchOrigin\\n                  @branch={{environment.currentBranch}}\\n                  data-test-branch-origin\\n                />\\n              {{/if}}\\n            </div>\\n\\n          </div>\\n        </Shared::DataDisplay::BetaDisplayList>\\n      {{/if}}\\n    </:default>\\n\\n  </Shared::BetaSettingsLayout::Section>\\n\\n  {{#if this.project.isSelfHostedProject}}\\n    <Shared::ContentSeparator @withSideMargin={{true}} class=\\\"c-beta-setting-layout-separator\\\" />\\n\\n    <Shared::BetaSettingsLayout::Section @title=\\\"Development environment\\\" @description=\\\"\\\">\\n      {{#if this.hasDevelopmentEnvironment}}\\n        <Shared::DataDisplay::BetaDisplayList\\n          @items={{array this.devEnvironment}}\\n          @onItemClick={{this.transitionToEnvironmentDetails}}\\n          data-test-list=\\\"dev-environments\\\"\\n          as |environment|\\n        >\\n          <div class=\\\"c-environments__environments\\\">\\n            <div class=\\\"c-environments__environment-name\\\">\\n              <Shared::DataDisplay::BetaBadge\\n                @value=\\\"Development\\\"\\n                @color={{environment.badgeColor}}\\n                @style={{if environment.isInactive \\'dashed\\'}}\\n              />\\n            </div>\\n\\n            <div class=\\\"c-environments__environment-endpoint\\\">\\n              <span class=\\\"c-environments__environment-endpoint-text\\\">\\n                {{(if environment.isInactive \\'Draft\\')}}\\n                {{(if (and environment.apiEndpoint environment.isInactive) \\' | \\')}}\\n                {{environment.apiEndpoint}}\\n              </span>\\n            </div>\\n\\n            <div class=\\\"c-environments__environment-additional\\\">\\n              {{#if (compute (fn this.shouldDisplayRolesIssue environment.id))}}\\n                <span class=\\\"c-environments__environment-no-role\\\">\\n                  <i class=\\\"material-icons c-environments__icon\\\">\\n                    report_problem\\n                  </i>\\n                  0 roles enabled\\n                </span>\\n              {{else if environment.currentBranch}}\\n                <span class=\\\"c-environments__current-development-branch\\\" data-test-current-branch>\\n                  current branch ({{environment.currentBranch.name}})\\n                </span>\\n              {{/if}}\\n            </div>\\n          </div>\\n        </Shared::DataDisplay::BetaDisplayList>\\n        <span class=\\\"c-environments__v-spacer\\\"></span>\\n      {{else}}\\n        <span class=\\\"c-environments__no-branch-yet\\\" data-test-no-dev-environment-yet-state=\\\"true\\\">\\n          You don\\'t have a development environment yet.\\n        </span>\\n        <span class=\\\"c-environments__branch-title\\\">\\n          Create your development environment\\n        </span>\\n        <span class=\\\"c-environments__branch-introduction\\\">\\n          We\\'ve developed a CLI tool to help you seamlessly control your layout (UI) as you develop.\\n        </span>\\n        <span class=\\\"c-environments__branch-steps\\\">\\n          1. Install forest-cli\\n        </span>\\n        <Shared::DataDisplay::BetaCode\\n          class=\\\"c-environments__beta-code\\\"\\n          @code=\\\"npm install forest-cli -g\\\"\\n          @oneLineCommand={{true}}\\n        />\\n        <span class=\\\"c-environments__branch-steps\\\">\\n          2. Initialize your setup\\n        </span>\\n        <Shared::DataDisplay::BetaCode\\n          class=\\\"c-environments__beta-code\\\"\\n          @code=\\\"forest init\\\"\\n          @oneLineCommand={{true}}\\n        />\\n      {{/if}}\\n      <span class=\\\"c-environments__branch-documentation\\\">\\n        Any questions regarding development in Forest Admin?\\n        <a\\n          class=\\\"c-environments__branch-documentation-link\\\"\\n          href={{this.devWorkflowDocumentationLink}}\\n          target=\\\"_blank\\\"\\n          rel=\\\"noopener noreferrer\\\"\\n          data-test-documentation-link\\n        >\\n          Read our developer workflow documentation\\n        </a>\\n      </span>\\n    </Shared::BetaSettingsLayout::Section>\\n    <Shared::ContentSeparator @withSideMargin={{true}} class=\\\"c-beta-setting-layout-separator\\\" />\\n    <ProjectEnvironmentsBranches\\n      @project={{this.project}}\\n      @branchesSearched={{this.branchesSearched}}\\n      @searchBranch={{this.searchBranch}}\\n      @createBranch={{this.createBranch}}\\n    />\\n  {{/if}}\\n\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/project/project-settings/environments/index/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsEnvironmentsRoute extends Route {\n  @service currentUser;\n  @service environmentsWithoutEnabledRoles;\n  @service router;\n\n  beforeModel() {\n    if (this.currentUser.isLoaded && !this.currentUser.can('createEnvironment')) {\n      this.router.replaceWith('project.project-settings');\n    }\n  }\n\n  async model() {\n    const { project } = this.modelFor('project.project-settings');\n    // Here we init the environmentsWithoutEnabledRoles value.\n    // No server call is done if this value is in cache.\n    await this.environmentsWithoutEnabledRoles.query({ project });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{outlet}}\\n', { moduleName: 'client/legacy/pods/project/project-settings/environments/template.hbs' });\n","/* eslint-disable ember/no-mixins */\nimport Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nimport { getFirstErrorDetail, isEmberError } from 'client/utils/ember-error-util';\nimport localesList from 'client/utils/locales-list';\nimport timezonesList from 'client/utils/timezones-list';\n\nexport default class ProjectProjectSettingsGeneralController extends Controller {\n  @service store;\n  @service locale;\n  @service timezone;\n  @service errorHandler;\n  /** @type {import('client/legacy/services/tracker').default} */\n  @service tracker;\n  /** @type {import('client/legacy/services/current-organization').default} */\n  @service currentOrganization;\n  @service projectExistenceChecker;\n  @service toastr;\n  @service currentUser;\n\n  domainFieldValue = null;\n  timezonesList = timezonesList;\n  localesList = localesList;\n  selectedOrganization = null;\n  @alias('model.project') project;\n  @alias('model.organizations') allOrganizations;\n  @alias('model.project.organization') organization;\n\n  init(...args) {\n    super.init(...args);\n    this.personalOrganization = this.currentOrganization.personalOrganization;\n    this.selectedOrganization = this.currentOrganization.model;\n  }\n\n  @computed('allOrganizations', 'personalOrganization', 'project.organizationId')\n  get organizations() {\n    const teamOrganizations = this.allOrganizations.sortBy('name');\n\n    return [this.personalOrganization, ...teamOrganizations].filter(\n      (organization) => organization.isPersonal || organization.get('isOwner'),\n    );\n  }\n\n  @computed('project.billing')\n  get isYearlyCommittedProject() {\n    return this.project.billing.get('isYearlyCommittedProject');\n  }\n\n  @computed('organization.isOwner', 'project.organizationId')\n  get canTransferOwnership() {\n    return !this.project.organizationId || this.organization?.get('isOwner');\n  }\n\n  @action\n  saveChanges(callback) {\n    const promise = this.project\n      .save()\n      .then(() => this.timezone.setProjectTimezone(this.project.get('timezone') || ''))\n      .then(() => this.locale.set('currentLocale', this.project.localeOrDefault))\n      .then(() => this.send('refreshUrlIfNeeded'))\n      .then(() => {\n        this.toastr.perform('success', `${this.project.name} updated.`);\n      })\n      .catch((reason) => {\n        this.errorHandler.handleRequestFailure(reason, `${this.project.name} update failed`);\n      });\n\n    callback(promise);\n  }\n\n  @action\n  discardChanges() {\n    this.project.rollbackAttributes();\n    this.toastr.perform('success', `${this.project.name} changes discarded.`);\n  }\n\n  @action\n  async deleteProject() {\n    try {\n      await this.project.destroyRecord();\n      this.toastr.perform('success', 'Project deleted.');\n      this.currentOrganization.transitionToProjectsIndex();\n    } catch (error) {\n      this.toastr.perform('error', getFirstErrorDetail(error));\n    }\n  }\n\n  @action\n  async changeOwnership() {\n    const newOrganization = this.selectedOrganization.isPersonal ? null : this.selectedOrganization;\n    this.project.set('organization', newOrganization);\n    this.project.set('organizationId', newOrganization?.id || null);\n\n    try {\n      await this.project.save();\n      if (!newOrganization) {\n        this.toastr.perform('success', 'Your project is now linked to your personal space.');\n        this.currentOrganization.definePersonalOrganization();\n      } else {\n        this.toastr.perform(\n          'success',\n          `Your project is now linked to ${newOrganization.name}'s organization.`,\n        );\n        this.currentOrganization.define(newOrganization);\n      }\n    } catch (error) {\n      if (isEmberError(error)) {\n        this.toastr.perform('error', getFirstErrorDetail(error), { duration: 0 });\n        console.warn(error);\n      } else {\n        this.tracker.captureException(error);\n        console.error(error);\n        this.toastr.perform('error', 'An unexpected error occurred');\n      }\n    }\n  }\n\n  @action\n  checkProjectExistenceAction(projectName) {\n    return this.projectExistenceChecker.checkProjectExistence(projectName);\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsGeneralRoute extends Route {\n  @service currentUser;\n  @service router;\n  @service store;\n\n  beforeModel() {\n    if (this.currentUser.isLoaded && !this.currentUser.can('removeProject')) {\n      this.router.replaceWith('project.project-settings');\n    }\n  }\n\n  async model() {\n    const [{ project }, allOrganizations] = await Promise.all([\n      this.modelFor('project.project-settings'),\n      this.store.findAll('organization'),\n    ]);\n\n    const organizations = allOrganizations.filter((organization) => !organization.isPersonal);\n\n    return {\n      project,\n      organizations,\n    };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout>\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"General settings\\\"\\n    @description=\\\"Manage and configure your project.\\\"\\n  >\\n    <div class=\\\"l-general-settings\\\">\\n      <Button::BetaSaveDiscardButtons\\n        @save={{this.saveChanges}}\\n        @entity={{this.project}}\\n        @isSaveDisabled={{not this.project.hasDirtyAttributes}}\\n      />\\n      <Shared::BetaLabel @label=\\\"Your project name\\\" class=\\\"l-general-settings__input-first\\\">\\n        <CheckExistenceInput\\n          @value={{this.project.name}}\\n          @placeholder=\\\"Project name\\\"\\n          @checkExistenceFunction={{this.checkProjectExistenceAction}}\\n        />\\n      </Shared::BetaLabel>\\n\\n      <Shared::BetaLabel\\n        @label=\\\"Timezone\\\"\\n        @description=\\\"Configure a unique time zone for all of your project users regardless of their current location using our time zone feature. Set to auto by default.\\\"\\n        class=\\\"l-general-settings__input\\\"\\n        @descriptionClass=\\\"l-general-settings__input__description\\\"\\n      >\\n        <Shared::BetaSelect\\n          @value={{this.project.timezone}}\\n          @defaultValue={{null}}\\n          @options={{this.timezonesList}}\\n          @valuePath=\\\"value\\\"\\n          @namePath=\\\"name\\\"\\n        />\\n      </Shared::BetaLabel>\\n\\n      <Shared::BetaLabel\\n        @label=\\\"Locale\\\"\\n        @description=\\\"Configure a unique locale for all of your project users regardless of their current browser locale. Set to auto by default.\\\"\\n        class=\\\"l-general-settings__input\\\"\\n        @descriptionClass=\\\"l-general-settings__input__description\\\"\\n      >\\n        <Shared::BetaSelect\\n          @value={{this.project.locale}}\\n          @defaultValue={{null}}\\n          @options={{this.localesList}}\\n          @valuePath=\\\"value\\\"\\n          @namePath=\\\"name\\\"\\n        />\\n      </Shared::BetaLabel>\\n    </div>\\n  </Shared::BetaSettingsLayout::Section>\\n  <Shared::ContentSeparator @withSideMargin={{true}} />\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"Transfer ownership\\\"\\n    @description=\\\"Transfer your project to an organization.\\\"\\n  >\\n    {{#if this.canTransferOwnership}}\\n      <Shared::BetaLabel @label=\\\"Organization\\\" class=\\\"l-general-settings__input-first\\\">\\n        <Shared::BetaSelect\\n          @value={{this.selectedOrganization}}\\n          @options={{this.organizations}}\\n          @namePath=\\\"longNameOrDefault\\\"\\n          data-test-transfer-ownership-selectbox\\n        />\\n      </Shared::BetaLabel>\\n\\n      <Feature::CriticalActionConfirmation::Button\\n        @buttonText=\\\"Transfer ownership\\\"\\n        @entityName={{this.project.name}}\\n        @warningMessage=\\\"Enter your project name ({{this.project.name}}) below to confirm you want to permanently transfer its ownership to “{{this.selectedOrganization.name}}”.\\\"\\n        @cancelText=\\\"Cancel\\\"\\n        @onConfirm={{this.changeOwnership}}\\n        @disabled={{eq this.selectedOrganization this.currentOrganization.model}}\\n        data-test-confirmation-button=\\\"ownership\\\"\\n        class=\\\"l-general-settings__transfer-ownership-button\\\"\\n      />\\n    {{/if}}\\n  </Shared::BetaSettingsLayout::Section>\\n  <Shared::BetaSettingsLayout::Section\\n    @isDangerZone={{true}}\\n    @description=\\\"Delete this project. This action cannot be undone. Please be certain.\\\"\\n    @dangerClass=\\\"l-general-settings__danger-section\\\"\\n  >\\n    {{#if this.isYearlyCommittedProject}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"warning\\\"\\n        @canHide={{false}}\\n        @messageTitle=\\\"Your project has an active subscription.\\\"\\n        class=\\\"l-general-settings__delete-project-warning\\\"\\n        data-test-notification=\\\"delete-warning\\\"\\n      >\\n        You cannot delete the project before the end of a yearly commitment. Please\\n        <Shared::ContactUsLink\\n          @subject=\\\"Project deletion\\\"\\n          @message=\\\"\\nHello, I would like to end my subscription and delete my project before the end of the yearly commitment.\\n\\nRegards\\\"\\n        />\\n        to end the subscription before its term.\\n      </Shared::Feedback::Notification::NotificationInApp>\\n\\n    {{/if}}\\n    <Feature::CriticalActionConfirmation::Button\\n      @buttonText=\\\"Delete project\\\"\\n      @modalTitle=\\\"Confirm delete project\\\"\\n      @entityName={{this.project.name}}\\n      @warningMessage=\\\"You are about to delete the “{{this.project.name}}” project.\\\"\\n      @cancelText=\\\"Cancel\\\"\\n      @onConfirm={{this.deleteProject}}\\n      @disabled={{this.isYearlyCommittedProject}}\\n      data-test-confirmation-button=\\\"project\\\"\\n    />\\n  </Shared::BetaSettingsLayout::Section>\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/project/project-settings/general/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsInterfaceController extends Controller {\n  @service errorHandler;\n  @service store;\n  @service toastr;\n\n  isCustomDomainPanelOpen = false;\n\n  @alias('model.project') project;\n  @alias('model.customDomain') customDomain;\n\n  @computed('customDomain.domain')\n  get hasACustomDomain() {\n    const { domain } = this.customDomain;\n    return !!domain && domain.length !== 0;\n  }\n\n  @action\n  async saveCustomDomain(callback) {\n    try {\n      if (this.customDomain.domain) {\n        await this.customDomain.save();\n        this.set('isCustomDomainPanelOpen', true);\n      } else {\n        await this._destroyCustomDomain();\n        this.set('isCustomDomainPanelOpen', false);\n      }\n\n      this.toastr.perform('success', `Project ${this.project.name} saved.`);\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error, `Project ${this.project.name} update failed:`);\n    }\n\n    callback();\n  }\n\n  @action\n  async destroyCustomDomain() {\n    try {\n      await this._destroyCustomDomain();\n\n      this.set('isCustomDomainPanelOpen', false);\n      this.toastr.perform('success', 'Custom domain removed.');\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error, 'Custom domain deletion failed:');\n    }\n  }\n\n  @action\n  async saveChanges(callback) {\n    try {\n      await this.project.save();\n\n      this.toastr.perform('success', `Project ${this.project.name} saved.`);\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error, `Project ${this.project.name} update failed:`);\n    }\n\n    callback();\n  }\n\n  @action\n  discardChanges() {\n    const { project } = this.model;\n    project.rollbackAttributes();\n    this.toastr.perform('success', ` Project ${project.name} changes discarded.`);\n  }\n\n  @action\n  openCustomDomainPanel() {\n    if (!this.customDomain) {\n      const newDomain = this.store.createRecord('customDomain');\n      const { project } = this.model;\n      project.set('customDomain', newDomain);\n\n      this.set('customDomain', newDomain);\n    }\n\n    this.set('isCustomDomainPanelOpen', true);\n  }\n\n  @action\n  closeCustomDomainPanel() {\n    if (this.customDomain?.isNew) {\n      this._destroyCustomDomain();\n    } else if (this.customDomain.hasDirtyAttributes) {\n      this.customDomain.rollbackAttributes();\n    }\n\n    this.set('isCustomDomainPanelOpen', false);\n  }\n\n  async _destroyCustomDomain() {\n    await this.customDomain.destroyRecord();\n    this.set('customDomain', null);\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'whiteLabel',\n  redirectionIfFeatureNotActivated: 'project.project-settings.general',\n})\nexport default class ProjectProjectSettingsInterfaceRoute extends Route {\n  @service currentUser;\n  @service router;\n\n  beforeModel() {\n    if (this.currentUser.get('isLoaded') && !this.currentUser.can('removeProject')) {\n      this.router.replaceWith('project.project-settings');\n    }\n  }\n\n  async model() {\n    const { project } = this.modelFor('project.project-settings');\n    const customDomain = await project.customDomain;\n\n    return hash({\n      project,\n      customDomain,\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isCustomDomainPanelOpen}}\\n  <Interface::CustomDomainPanel\\n    @project={{this.model.project}}\\n    @customDomain={{this.customDomain}}\\n    @close={{this.closeCustomDomainPanel}}\\n    @save={{this.saveCustomDomain}}\\n  />\\n{{/if}}\\n\\n<Shared::BetaSettingsLayout>\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"Interface settings\\\"\\n    @description=\\\"Configure and manage the UI of your admin panel.\\\"\\n  >\\n    <:header-buttons>\\n      <Button::BetaSaveDiscardButtons\\n        @isSaveDisabled={{not this.project.hasDirtyAttributes}}\\n        @entity={{this.project}}\\n        @save={{this.saveChanges}}\\n        @discard={{this.discardChanges}}\\n      />\\n    </:header-buttons>\\n\\n    <:default>\\n      <Shared::BetaLabel @label=\\\"Primary color\\\">\\n        <Shared::BetaInputColor\\n          @value={{this.model.project.primaryColorOrDefault}}\\n          @onChange={{fn (mut this.model.project.primaryColor)}}\\n        />\\n      </Shared::BetaLabel>\\n\\n      <div class=\\\"c-settings-interface-picture-input\\\">\\n        <img\\n          src={{or this.project.pictureUrl \\'/img/navigation/logo-default.svg\\'}}\\n          {{on \\'error\\' (set-fallback-image-source \\'/img/navigation/logo-default.svg\\')}}\\n          class=\\\"c-settings-interface-picture-input__picture\\\"\\n          alt=\\\"Company\\\"\\n        />\\n        <Shared::BetaLabel @label=\\\"Project logo\\\" class=\\\"c-settings-interface-picture-input__input\\\">\\n          <Shared::BetaInput\\n            @placeholder=\\\"e.g www.mywebsite.com/mylogo.png\\\"\\n            @value={{this.project.pictureUrl}}\\n          />\\n        </Shared::BetaLabel>\\n      </div>\\n    </:default>\\n  </Shared::BetaSettingsLayout::Section>\\n\\n  <Shared::ContentSeparator @withSideMargin={{true}} />\\n\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"Custom domain\\\"\\n    @description=\\\"Access your Forest Admin project using your own domain.\\\"\\n  >\\n    {{#if (and this.customDomain (not this.customDomain.isNew))}}\\n      <div class=\\\"c-interface-settings-custom-domain\\\" data-test-interface-custom-domain-row>\\n        <Shared::DataDisplay::BetaIcon\\n          @size=\\\"custom\\\"\\n          @iconName=\\\"language\\\"\\n          @class=\\\"c-interface-settings-custom-domain__icon\\\"\\n          data-test-interface-custom-domain-row-icon\\n        />\\n\\n        <span\\n          class=\\\"c-interface-settings-custom-domain__name\\\"\\n          data-test-interface-custom-domain-row-name\\n        >\\n          {{this.customDomain.domain}}\\n        </span>\\n\\n        <Shared::DataDisplay::BetaIcon\\n          @size=\\\"custom\\\"\\n          @iconName=\\\"settings\\\"\\n          @class=\\\"c-interface-settings-custom-domain__settings\\\"\\n          data-test-interface-custom-domain-row-settings\\n          data-test-custom-domain-configure-button\\n          {{on \\'click\\' this.openCustomDomainPanel}}\\n        />\\n      </div>\\n\\n      <Shared::Button::BetaButton\\n        @type=\\\"link-danger\\\"\\n        @text=\\\"Delete custom domain\\\"\\n        @underline={{false}}\\n        @noPadding={{true}}\\n        @async={{false}}\\n        @action={{this.destroyCustomDomain}}\\n        class=\\\"c-settings-interface-delete-custom-domain\\\"\\n      />\\n    {{else}}\\n      <span class=\\\"c-settings-interface-no-custom-domain\\\">\\n        There is no custom domain configured yet\\n      </span>\\n      <Shared::Button::BetaButton\\n        @size=\\\"large\\\"\\n        @type=\\\"link-primary\\\"\\n        @text=\\\"Configure a custom domain\\\"\\n        @underline={{false}}\\n        @noPadding={{true}}\\n        @action={{this.openCustomDomainPanel}}\\n        @async={{false}}\\n        class=\\\"c-settings-interface-configure-custom-domain\\\"\\n        data-test-custom-domain-configure-button\\n      />\\n    {{/if}}\\n  </Shared::BetaSettingsLayout::Section>\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/project/project-settings/interface/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nimport { EVERYTHING_ALLOWED, NOTHING_ALLOWED } from 'client/utils/copy-role-permissions-from';\n\nexport default class ProjectProjectSettingsRolesCreateController extends Controller {\n  @service errorHandler;\n  @service environmentsWithoutEnabledRoles;\n  @service lianaSession;\n  @service router;\n  @service toastr;\n\n  @alias('model.project') project;\n  @alias('model.roles') existingRoles;\n  @alias('model.project.users') users;\n\n  breadcrumb = [\n    {\n      displayName: 'Roles',\n      link: 'project.project-settings.roles',\n      isClickable: true,\n    },\n    {\n      displayName: 'New role',\n    },\n  ];\n\n  get existingRolesNames() {\n    return this.existingRoles\n      ? this.existingRoles\n          .map((role) => role.name)\n          .filter((name) => name !== undefined)\n          .sort()\n      : [];\n  }\n\n  @computed('existingRolesNames')\n  get copyPermissionsFromOptions() {\n    return [EVERYTHING_ALLOWED, NOTHING_ALLOWED, ...this.existingRolesNames];\n  }\n\n  @computed('users.@each.isSelectedForThisNewRole')\n  get numberOfSelectedUsers() {\n    return this.users.filter((user) => !!user.isSelectedForThisNewRole).length;\n  }\n\n  @action\n  onChangeCopyPermissionsFrom(value) {\n    const { initializePermissionsFrom } = this.role;\n    const roleToCopyFrom = this.existingRoles ? this.existingRoles.findBy('name', value) : null;\n\n    initializePermissionsFrom.roleId = roleToCopyFrom ? roleToCopyFrom.id : null;\n    initializePermissionsFrom.everythingAllowed = roleToCopyFrom\n      ? null\n      : value === EVERYTHING_ALLOWED;\n  }\n\n  @action\n  async createRole(callback) {\n    try {\n      const role = await this.role.save();\n      await Promise.all(\n        this.users.map(async (user) => {\n          if (user.isSelectedForThisNewRole) {\n            user.role = this.role;\n            await user.save();\n            user.set('isSelectedForThisNewRole', null);\n          }\n        }),\n      );\n      // We need to force the refetch of the environmentsWithoutEnabledRoles value here as the\n      // role creation action can affect its value.\n      await this.environmentsWithoutEnabledRoles.query({\n        project: this.lianaSession.currentProject,\n        forceRefetch: true,\n      });\n      this.toastr.perform('success', 'Role created successfully');\n      this.router.transitionTo('project.project-settings.roles.details.index', role.name);\n    } catch (reason) {\n      this.errorHandler.handleRequestFailure(reason, 'An error occurred when creating the role');\n      callback();\n    }\n  }\n\n  @action\n  goToRolesList() {\n    this.router.transitionTo('project.project-settings.roles');\n  }\n\n  @action\n  toggleUserSelection(user) {\n    user.set('isSelectedForThisNewRole', !user.isSelectedForThisNewRole);\n  }\n}\n","/* eslint-disable ember/no-controller-access-in-routes */\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\nimport { EVERYTHING_ALLOWED } from 'client/utils/copy-role-permissions-from';\n\n@preventLeavingWithoutSaving()\n@featureAccessAndPreviewRedirection({\n  featureName: 'multipleRoles',\n  redirectionIfFeatureNotActivated: 'project.project-settings.roles.preview',\n})\nexport default class ProjectProjectSettingsRolesCreateRoute extends Route {\n  @service store;\n\n  model() {\n    const project = this.modelFor('project');\n\n    return hash({\n      project,\n      roles: project.roles,\n    });\n  }\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    const role = {\n      project: model.project,\n      initializePermissionsFrom: { roleId: null, everythingAllowed: true },\n    };\n    controller.set('role', this.store.createRecord('role', role));\n    controller.set('copyPermissionsFrom', EVERYTHING_ALLOWED);\n  }\n\n  willTransition() {\n    // To clean empty role when leaving the page without having filled the name.\n    if (this.controller.role.isNew) {\n      this.removeRole();\n    }\n  }\n\n  mustPreventLeaving(transition) {\n    return (\n      transition.to.name !== 'project.project-settings.roles.details.index'\n      && (this.controller.role.name || this.controller.numberOfSelectedUsers > 0)\n    );\n  }\n\n  onLeavingWithoutSaving() {\n    this.removeRole();\n    this.controller.users.forEach((user) => {\n      user.isSelectedForThisNewRole = null;\n    });\n  }\n\n  removeRole() {\n    this.controller.role.unloadRecord();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout @onClose={{this.goToRolesList}}>\\n  <Roles::Form\\n    @sectionTitle=\\\"Create role\\\"\\n    @role={{this.role}}\\n    @save={{this.createRole}}\\n    @isCreate={{true}}\\n  >\\n    <Shared::BetaLabel @label=\\\"Copy permissions from:\\\" class=\\\"c-roles-create__copy-permissions\\\">\\n      <Shared::BetaSelect\\n        @options={{this.copyPermissionsFromOptions}}\\n        @value={{this.copyPermissionsFrom}}\\n        @withSearchInput={{true}}\\n        @onChange={{this.onChangeCopyPermissionsFrom}}\\n        data-test-copy-from-select\\n      />\\n    </Shared::BetaLabel>\\n\\n    <div class=\\\"c-roles-create__user-title\\\">\\n      <div>\\n        Assign this role to user(s):\\n      </div>\\n      <div>\\n        <span class=\\\"c-roles-create__users-number\\\">\\n          {{format-number-to-locale this.numberOfSelectedUsers}}\\n        </span>\\n        {{word-pluralize \\'user\\' this.numberOfSelectedUsers}}\\n        assigned\\n      </div>\\n    </div>\\n\\n    <Shared::DataDisplay::ItemsPaginatedTable\\n      @itemType=\\\"user\\\"\\n      @onItemClick={{this.toggleUserSelection}}\\n      as |currentPageUser|\\n    >\\n      <div class=\\\"c-items-paginated-table__cell-name\\\">\\n        <Form::BetaCheckbox\\n          @value={{currentPageUser.isSelectedForThisNewRole}}\\n          @defaultValue={{false}}\\n          @small={{true}}\\n          @readMode={{true}}\\n          {{! Trick because the whole line is clickable }}\\n          @class=\\\"c-roles-create__checkbox\\\"\\n        />\\n        <span class=\\\"c-items-paginated-table__name c-items-paginated-table__text\\\">\\n          {{currentPageUser.fullName}}\\n        </span>\\n      </div>\\n      <div class=\\\"c-items-paginated-table__cell-email\\\">\\n        <span class=\\\"c-items-paginated-table__text\\\">\\n          {{currentPageUser.email}}\\n        </span>\\n      </div>\\n      <div class=\\\"c-items-paginated-table__cell-permission-level\\\">\\n        {{#if (and currentPageUser.role currentPageUser.isSelectedForThisNewRole)}}\\n          <div class=\\\"c-roles-create__warning-message\\\">\\n            <i class=\\\"material-icons c-roles-create__warning-icon\\\">\\n              report_problem\\n            </i>\\n            <span>\\n              Current role will be replaced\\n            </span>\\n          </div>\\n        {{else}}\\n          <span class=\\\"c-items-paginated-table__text\\\">\\n            {{currentPageUser.role.name}}\\n          </span>\\n        {{/if}}\\n      </div>\\n    </Shared::DataDisplay::ItemsPaginatedTable>\\n\\n    <Shared::Feedback::Notification::NotificationInApp\\n      @state=\\\"info\\\"\\n      @canHide={{false}}\\n      @class=\\\"c-roles-create__notification\\\"\\n    >\\n      Roles can be assigned to users later from the\\n      <i>\\n        Users\\n      </i>\\n      tab.\\n    </Shared::Feedback::Notification::NotificationInApp>\\n  </Roles::Form>\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/project/project-settings/roles/create/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Layout::LayoutLoader @type=\\\"data\\\" />\\n', { moduleName: 'client/legacy/pods/project/project-settings/roles/details-loading/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectProjectSettingsRolesDetailsEditController extends Controller {\n  @service errorHandler;\n  @service router;\n  @service toastr;\n\n  @alias('model.role') role;\n  @alias('model.project') project;\n  @alias('model.project.invitations') invitations;\n  @tracked displayRoleCannotBeDeletedModal = false;\n\n  @computed('roleName')\n  get breadcrumb() {\n    return [\n      {\n        displayName: 'Roles',\n        link: 'project.project-settings.roles',\n        isClickable: true,\n      },\n      {\n        displayName: this.roleName,\n        link: 'project.project-settings.roles.details.index',\n        isClickable: true,\n        param: this.roleName,\n      },\n      {\n        displayName: 'Edit',\n      },\n    ];\n  }\n\n  @computed('invitations', 'role.id')\n  get isAssignedToInvitations() {\n    return this.invitations.any((invitation) => invitation.role?.id === this.role.id);\n  }\n\n  @computed('isAssignedToInvitations', 'role.name')\n  get warningDescription() {\n    if (this.isAssignedToInvitations) {\n      return `All the invitations with the \"${this.role.name}\" role will be canceled`;\n    }\n    return `Removing the \"${this.role.name}\" role will permanently remove it.`;\n  }\n\n  @action\n  goToRolesList() {\n    this.router.transitionTo('project.project-settings.roles');\n  }\n\n  @action\n  async updateRole(callback) {\n    try {\n      await this.role.save();\n      this.toastr.perform('success', 'Role updated successfully');\n\n      this.set('roleName', this.role.name);\n\n      const { currentURL } = this.router;\n      const secondLastURLParamsIndex = currentURL.lastIndexOf('/', currentURL.lastIndexOf('/') - 1);\n      this.router.location.replaceURL(\n        `${currentURL.substring(0, secondLastURLParamsIndex)}/${encodeURIComponent(\n          this.role.name,\n        )}/edit`,\n      );\n    } catch (reason) {\n      this.errorHandler.handleRequestFailure(reason, 'Impossible to update the role');\n    }\n    return callback();\n  }\n\n  handleDeleteRoleError(error) {\n    const errorDetail = error?.errors?.[0];\n    if (errorDetail.status === 422) {\n      this.set('displayRoleCannotBeDeletedModal', true);\n    } else {\n      this.errorHandler.handleRequestFailure(error, 'Role deletion failed');\n    }\n  }\n\n  @action\n  async deleteRole() {\n    try {\n      await this.role.destroyRecord();\n      await this.model.project.invitations.reload();\n      this.toastr.perform('success', 'Role deleted.');\n      this.router.transitionTo('project.project-settings.roles');\n    } catch (error) {\n      this.role.rollbackAttributes();\n      this.handleDeleteRoleError(error);\n    }\n  }\n\n  @action\n  closeRoleCannotBeDeletedModal() {\n    this.set('displayRoleCannotBeDeletedModal', false);\n  }\n}\n","import Route from '@ember/routing/route';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving('role')\nexport default class ProjectProjectSettingsRolesDetailsEditRoute extends Route {\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    if (controller.role) {\n      controller.set('roleName', controller.role.name);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout @onClose={{this.goToRolesList}}>\\n  <Roles::Form\\n    @sectionTitle=\\\"Role details\\\"\\n    @sectionDescription=\\\"Edit or delete this role.\\\"\\n    @role={{this.role}}\\n    @save={{this.updateRole}}\\n  />\\n  <Shared::BetaSettingsLayout::Section\\n    @isDangerZone={{true}}\\n    @description=\\\"Removing this role will permanently remove it.\\\"\\n  >\\n    <Feature::CriticalActionConfirmation::Button\\n      @buttonText=\\\"Delete role\\\"\\n      @entityName={{this.role.name}}\\n      @warningMessage={{this.warningDescription}}\\n      @cancelText=\\\"Cancel\\\"\\n      @onConfirm={{this.deleteRole}}\\n      data-test-delete-button\\n      class=\\\"l-general-settings__transfer-ownership-button\\\"\\n    />\\n  </Shared::BetaSettingsLayout::Section>\\n</Shared::BetaSettingsLayout>\\n\\n{{#if this.displayRoleCannotBeDeletedModal}}\\n  <Shared::BetaModal\\n    @title=\\\"This role cannot be deleted\\\"\\n    @onClose={{this.closeRoleCannotBeDeletedModal}}\\n    @contentClass=\\\"c-delete-role-modal\\\"\\n  >\\n    <div class=\\\"c-delete-role-modal__content\\\">\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @state=\\\"warning\\\"\\n        @message=\\\"Some user(s) are still assigned to this role: you can\\'t delete it yet!\\\"\\n      />\\n    </div>\\n    <div class=\\\"c-delete-role-modal__footer\\\">\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @size=\\\"large\\\"\\n        @isImportant={{true}}\\n        @text=\\\"OK\\\"\\n        @action={{this.closeRoleCannotBeDeletedModal}}\\n        class=\\\"c-delete-role-modal__confirm-button\\\"\\n      />\\n    </div>\\n  </Shared::BetaModal>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/project-settings/roles/details/edit/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport RolePermissionsDetailsController from 'client/legacy/abstract-controllers/role-permissions-details-controller';\n\nexport default class ProjectProjectSettingsRolesDetailsEnvironmentPermissionsCollectionsController extends RolePermissionsDetailsController {\n  @service segmentTracker;\n\n  get breadcrumb() {\n    return [\n      ...this.partialBreadcrumb,\n      {\n        displayName: 'Collections permissions',\n      },\n    ];\n  }\n\n  @action\n  async saveDefaultPermissions() {\n    this.segmentTracker.trackDefaultCollectionPermissionsEdited(this.role.project.id);\n\n    try {\n      await this.role.save();\n      this.toastr.perform(\n        'success',\n        `${this.role.name} collections default permissions updated successfully.`,\n      );\n    } catch (reason) {\n      this.errorHandler.handleRequestFailure(\n        reason,\n        `${this.role.name} role permissions update failed`,\n      );\n    }\n  }\n}\n","import RolePermissionsDetailsRoute from 'client/legacy/abstract-routes/role-permissions-details-route';\n\nexport default class ProjectProjectSettingsRolesDetailsEnvironmentPermissionsCollectionsRoute extends RolePermissionsDetailsRoute {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.disabled}}\\n  <Layout::LayoutError @error={{this.error}} />\\n{{else}}\\n  <Roles::Permissions::PermissionsDetails\\n    @name=\\\"Default collections\\\"\\n    @mode={{this.mode}}\\n    @permissions={{this.defaultPermissions}}\\n    @goOnEditMode={{this.goOnEditMode}}\\n    data-test-projects-settings-roles-details-environment-permissions-collection-default-permissions\\n  >\\n    <Roles::Permissions::DefaultCollectionPermissions\\n      @defaultPermissions={{this.defaultPermissions.collectionPermissions}}\\n      @isInEditMode={{eq this.mode \\'edit\\'}}\\n      @saveChanges={{this.saveDefaultPermissions}}\\n    />\\n  </Roles::Permissions::PermissionsDetails>\\n\\n  <Roles::Permissions::Section @title=\\\"Collections permissions\\\">\\n    <Roles::Permissions::Collections\\n      @permissions={{this.collectionsPermissions}}\\n      @displayAll={{true}}\\n      @sticky={{true}}\\n      @isInEditMode={{eq this.mode \\'edit\\'}}\\n      @saveChanges={{this.saveChanges}}\\n      data-test-projects-settings-roles-details-environment-permissions-collection-permissions\\n    />\\n  </Roles::Permissions::Section>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/project-settings/roles/details/environment-permissions/collections/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { alias, sort } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nimport { getRouteInfo } from 'client/utils/route-utils';\n\nexport default class ProjectProjectSettingsRolesDetailsEnvironmentPermissionsController extends Controller {\n  constructor(...args) {\n    super(...args);\n    this.environmentsSorting = ['environment.isProduction:desc', 'environment.name:asc'];\n  }\n\n  @service router;\n  @service environmentsWithoutEnabledRoles;\n  @service errorHandler;\n  @service lianaSession;\n  @service toastr;\n\n  @alias('model.role') role;\n  @alias('model.error') error;\n  @alias('model.currentEnvironment.name') currentEnvironmentName;\n  @sort('role.permissions.environments', 'environmentsSorting') environmentsPermissions;\n\n  get isInEditMode() {\n    const routeInfo = getRouteInfo(this.router.currentRoute, this.router.currentRouteName);\n    return routeInfo.queryParams?.mode === 'edit';\n  }\n\n  @action\n  goToRolesList() {\n    this.router.transitionTo('project.project-settings.roles.index');\n  }\n\n  @action\n  async toggleEnvironment(environmentPermissions, value) {\n    environmentPermissions.enabled = value;\n\n    try {\n      await this.role.save();\n      this.toastr.perform('success', `${this.role.name} role permissions updated successfully.`);\n      // We need to force the refetch of the environmentsWithoutEnabledRoles value here as the\n      // toggle environment action can affect its value.\n      await this.environmentsWithoutEnabledRoles.query({\n        project: this.lianaSession.currentProject,\n        forceRefetch: true,\n      });\n    } catch (reason) {\n      this.errorHandler.handleRequestFailure(\n        reason,\n        `${this.role.name} role permissions update failed`,\n      );\n    }\n  }\n}\n","import { computed } from '@ember/object';\n\nimport { ERROR_ENVIRONMENT_DISABLED } from 'client/config/errors';\nimport RolePermissionsController from 'client/legacy/abstract-controllers/role-permissions-controller';\n\nexport default class ProjectProjectSettingsRolesDetailsEnvironmentPermissionsIndexController extends RolePermissionsController {\n  @computed('role.name')\n  get breadcrumb() {\n    return [\n      {\n        displayName: 'Roles',\n        link: 'project.project-settings.roles.index',\n        isClickable: true,\n      },\n      {\n        displayName: this.role.name,\n      },\n    ];\n  }\n\n  @computed('permissions.enabled')\n  get disabled() {\n    return !this.permissions?.enabled;\n  }\n\n  @computed('role.name')\n  get error() {\n    return { type: ERROR_ENVIRONMENT_DISABLED, options: { roleName: this.role.name } };\n  }\n}\n","import Route from '@ember/routing/route';\n\nexport default class ProjectProjectSettingsRolesDetailsEnvironmentPermissionsIndexRoute extends Route {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.disabled}}\\n  <Layout::LayoutError @error={{this.error}} />\\n{{else}}\\n  <Roles::Permissions::Section\\n    @title=\\\"Default smart actions permissions\\\"\\n    @editPermissionsRouteName=\\\"project.project-settings.roles.details.environment-permissions.smart-actions\\\"\\n    data-test-for-block=\\\"default-actions\\\"\\n  >\\n    <Roles::Permissions::DefaultSmartActionPermissions\\n      @defaultPermissions={{this.defaultPermissions.actionPermissions}}\\n    />\\n  </Roles::Permissions::Section>\\n\\n  <Roles::Permissions::Section\\n    @title=\\\"Smart actions permissions\\\"\\n    @editPermissionsRouteName={{if\\n      this.smartActionsPermissions\\n      \\'project.project-settings.roles.details.environment-permissions.smart-actions\\'\\n    }}\\n    data-test-for-block=\\\"smart-actions\\\"\\n  >\\n    {{#if this.smartActionsPermissions}}\\n      <Roles::Permissions::SmartActions\\n        @permissions={{this.smartActionsPermissions}}\\n        @sticky={{true}}\\n      />\\n    {{else}}\\n      <div class=\\\"c-role-environment-permissions__empty-content\\\">\\n        No smart action yet.\\n      </div>\\n    {{/if}}\\n  </Roles::Permissions::Section>\\n\\n  <Roles::Permissions::Section\\n    @title=\\\"Default collections permissions\\\"\\n    @editPermissionsRouteName=\\\"project.project-settings.roles.details.environment-permissions.collections\\\"\\n    data-test-for-block=\\\"default-collections\\\"\\n  >\\n    <Roles::Permissions::DefaultCollectionPermissions\\n      @defaultPermissions={{this.defaultPermissions.collectionPermissions}}\\n    />\\n  </Roles::Permissions::Section>\\n\\n  <Roles::Permissions::Section\\n    @title=\\\"Collections permissions\\\"\\n    @editPermissionsRouteName={{if\\n      this.collectionsPermissions\\n      \\'project.project-settings.roles.details.environment-permissions.collections\\'\\n    }}\\n    data-test-for-block=\\\"collections\\\"\\n  >\\n    {{#if this.collectionsPermissions}}\\n      <Roles::Permissions::Collections\\n        @permissions={{this.collectionsPermissions}}\\n        @sticky={{true}}\\n        @defaultPermissions={{this.defaultPermissions}}\\n      />\\n    {{else}}\\n      <div class=\\\"c-role-environment-permissions__empty-content\\\">\\n        No collection yet.\\n      </div>\\n    {{/if}}\\n  </Roles::Permissions::Section>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/project-settings/roles/details/environment-permissions/index/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport { ERROR_NOT_FOUND } from 'client/config/errors';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\n\nexport default class ProjectProjectSettingsRolesDetailsEnvironmentPermissionsRoute extends Route {\n  /**\n   * @type {import('client/legacy/services/liana-features').default}\n   */\n  @service lianaFeatures;\n\n  async model(params) {\n    let error;\n    const parentModel = this.modelFor('project.project-settings.roles.details');\n\n    const currentEnvironment = parentModel.project.environments.find(\n      (environment) => environment.name === params.role_environment_name,\n    );\n\n    if (!currentEnvironment) {\n      error = {\n        type: ERROR_NOT_FOUND,\n        options: { target: `Environment \"${params.role_environment_name}\"` },\n      };\n    }\n\n    const collections = this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.ConditionalCustomAction,\n      currentEnvironment,\n    )\n      ? await currentEnvironment.get('collections')\n      : [];\n\n    return hash({\n      ...parentModel,\n      environments: parentModel.project.environments,\n      currentEnvironment,\n      collections,\n      error,\n    });\n  }\n}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport RolePermissionsDetailsController from 'client/legacy/abstract-controllers/role-permissions-details-controller';\n\nexport default class ProjectProjectSettingsRolesDetailsEnvironmentPermissionsSmartActionsController extends RolePermissionsDetailsController {\n  @service segmentTracker;\n\n  get breadcrumb() {\n    return [\n      ...this.partialBreadcrumb,\n      {\n        displayName: 'Smart actions permissions',\n      },\n    ];\n  }\n\n  @action\n  async saveDefaultPermissions() {\n    this.segmentTracker.trackDefaultActionPermissionsEdited(this.role.project.id);\n\n    try {\n      await this.role.save();\n      this.toastr.perform(\n        'success',\n        `${this.role.name} smart actions default permissions updated successfully.`,\n      );\n    } catch (reason) {\n      this.errorHandler.handleRequestFailure(\n        reason,\n        `${this.role.name} role permissions update failed`,\n      );\n    }\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type RoleFeatureService from 'client/features/role/services/feature';\nimport type { RoleModelWithCollectionsAndEnvironment } from 'client/features/role/services/internal-business/permissions-handler';\n\nimport { service } from '@ember/service';\n\nimport RolePermissionsDetailsRoute from 'client/legacy/abstract-routes/role-permissions-details-route';\n\nexport default class ProjectProjectSettingsRolesDetailsEnvironmentPermissionsSmartActionsRoute extends RolePermissionsDetailsRoute {\n  @service('feature/role') private roleFeature: RoleFeatureService;\n\n  async model(params: object, transition: Transition) {\n    const model = (await super.model(params, transition)) as RoleModelWithCollectionsAndEnvironment;\n    const { role, collections, currentEnvironment } = model;\n\n    return this.roleFeature.loadRequiredModelsForEnvironmentPermissionsSmartActions(\n      role,\n      collections,\n      currentEnvironment,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.disabled}}\\n  <Layout::LayoutError @error={{this.error}} />\\n{{else if this.isLoading}}\\n  <div class=\\\"c-role-environment-permissions-smart-action__loader-container\\\">\\n    <Shared::Feedback::BetaLoader class=\\\"c-role-environment-permissions-smart-action__loader\\\" />\\n  </div>\\n{{else}}\\n  <Roles::Permissions::PermissionsDetails\\n    @name=\\\"Default smart actions\\\"\\n    @mode={{this.mode}}\\n    @permissions={{this.defaultPermissions}}\\n    @goOnEditMode={{this.goOnEditMode}}\\n    data-test-projects-settings-roles-details-environment-permissions-action-default-permissions\\n  >\\n    <Roles::Permissions::DefaultSmartActionPermissions\\n      @defaultPermissions={{this.defaultPermissions.actionPermissions}}\\n      @isInEditMode={{eq this.mode \\'edit\\'}}\\n      @saveChanges={{this.saveDefaultPermissions}}\\n    />\\n  </Roles::Permissions::PermissionsDetails>\\n\\n  <Roles::Permissions::Section @title=\\\"Smart actions permissions\\\">\\n    <Roles::Permissions::SmartActions\\n      @permissions={{this.model.smartActionsPermissions}}\\n      @displayAll={{true}}\\n      @sticky={{true}}\\n      @isInEditMode={{eq this.mode \\'edit\\'}}\\n      @saveChanges={{this.saveChanges}}\\n      data-test-projects-settings-roles-details-environment-permissions-action-permissions\\n    />\\n  </Roles::Permissions::Section>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/project-settings/roles/details/environment-permissions/smart-actions/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout::Header @onClose={{this.goToRolesList}} />\\n\\n{{#unless this.error}}\\n  <div class=\\\"c-role-environment-permissions__header\\\">\\n    <div class=\\\"c-role-environment-permissions__header-title\\\">\\n      Role\\n    </div>\\n    <div class=\\\"c-role-environment-permissions__header-row\\\">\\n      <span class=\\\"c-role-environment-permissions__header-role-name\\\">\\n        {{this.role.name}}\\n      </span>\\n      <Shared::Navigation::BetaLinkTo\\n        @type=\\\"primary\\\"\\n        @routeName=\\\"project.project-settings.roles.details.edit\\\"\\n        @routeParameters={{array this.role.name}}\\n        @text=\\\"Edit\\\"\\n        @underline={{false}}\\n        class=\\\"c-role-environment-permissions__link\\\"\\n        data-test-role-edit-link\\n      />\\n    </div>\\n  </div>\\n  <div class=\\\"c-role-environment-permissions__body\\\">\\n    <SideMenu class=\\\"c-role-environment-permissions__side-menu\\\">\\n      <SideMenu::Section @sectionTitle=\\\"Environments\\\">\\n        {{#each this.environmentsPermissions as |environmentPermissions|}}\\n          <SideMenu::Item\\n            @name={{environmentPermissions.environment.name}}\\n            @linkTarget=\\\"project.project-settings.roles.details.environment-permissions.index\\\"\\n            @linkParam={{environmentPermissions.environment.name}}\\n            @class=\\\"c-role-environment-permissions__side-menu-item\\\"\\n            @hasButton={{true}}\\n            @currentWhenCondition={{eq\\n              this.currentEnvironmentName\\n              environmentPermissions.environment.name\\n            }}\\n            data-test-environment-selector={{true}}\\n          >\\n            <div\\n              id={{concat environmentPermissions.environment.name \\'-toggle\\'}}\\n              class=\\\"c-role-environment-permissions__environment-toggle\\\"\\n            >\\n              <Shared::Form::Toggle\\n                @value={{environmentPermissions.enabled}}\\n                @onChange={{fn this.toggleEnvironment environmentPermissions}}\\n                @disabled={{this.isInEditMode}}\\n                data-test-environment-toggle\\n              />\\n            </div>\\n            <Shared::Feedback::BetaTooltip\\n              @targetId={{concat environmentPermissions.environment.name \\'-toggle\\'}}\\n              @side=\\\"top\\\"\\n              @class=\\\"c-role-environment-permissions__tooltip\\\"\\n            >\\n              {{#if environmentPermissions.enabled}}\\n                Users with this role will\\n                <br />\\n                have access to this environment.\\n              {{else}}\\n                Users with this role won\\'t\\n                <br />\\n                have access to this environment.\\n              {{/if}}\\n            </Shared::Feedback::BetaTooltip>\\n          </SideMenu::Item>\\n        {{/each}}\\n      </SideMenu::Section>\\n    </SideMenu>\\n    <div class=\\\"c-role-environment-permissions__body-content\\\">\\n      {{outlet}}\\n    </div>\\n  </div>\\n{{else}}\\n  <Layout::LayoutError @error={{this.error}} />\\n{{/unless}}\\n', { moduleName: 'client/legacy/pods/project/project-settings/roles/details/environment-permissions/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport { ERROR_NOT_FOUND } from 'client/config/errors';\nimport sortByTwoKeys from 'client/utils/sort-by-two-keys';\n\nexport default class ProjectProjectSettingsRolesDetailsIndexRoute extends Route {\n  @service router;\n\n  model() {\n    const parentModel = this.modelFor('project.project-settings.roles.details');\n    // If the user has no elligible environment he isn't redirected and gets an error\n    const error = {\n      type: ERROR_NOT_FOUND,\n      options: { target: 'Production or remote environments' },\n    };\n    return hash({ ...parentModel, error });\n  }\n\n  redirect(model) {\n    // By default, select production or first remote.\n    const targetEnvironment = model.project.environments\n      .filter((environment) => !environment.isDevelopment && environment.isActive)\n      .sort(\n        sortByTwoKeys({\n          firstKey: 'isProduction',\n          isFirstKeyInDescendingOrder: true,\n          secondKey: 'name',\n        }),\n      ).firstObject;\n\n    if (targetEnvironment) {\n      this.router.transitionTo(\n        'project.project-settings.roles.details.environment-permissions',\n        targetEnvironment.name,\n      );\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Layout::LayoutError @error={{this.model.error}} />\\n', { moduleName: 'client/legacy/pods/project/project-settings/roles/details/index/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport { ERROR_NOT_FOUND } from 'client/config/errors';\n\nexport default class ProjectProjectSettingsRolesDetailsRoute extends Route {\n  @service('shared/capabilities') capabilitiesService;\n\n  async beforeModel() {\n    await this.capabilitiesService.fetchCapabilities();\n  }\n\n  async model(params) {\n    const { project } = this.modelFor('project.project-settings');\n    const role = project.roles.find((roleFound) => roleFound.name === params.role_name);\n\n    let error;\n    if (!role) {\n      error = {\n        type: ERROR_NOT_FOUND,\n        options: { target: `Role \"${params.role_name}\"` },\n      };\n    }\n    // Only load permissions on details page\n    if (!role.permissions) {\n      await role.reload();\n    }\n\n    await project.invitations;\n\n    return hash({\n      role,\n      project,\n      error,\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.model.role}}\\n  {{outlet}}\\n{{else}}\\n  <Layout::LayoutError @error={{this.model.error}} />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/project-settings/roles/details/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { alias, sort } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport { createIncludesCaseInsensitive } from 'client/utils/string-utils';\n\nexport default class ProjectProjectSettingsRolesIndexController extends Controller {\n  rolesSortingParameter = ['name:asc'];\n  previewSections = ['Smart action permissions', 'Collection permissions'];\n\n  @service lianaSession;\n  @service planService;\n  @service router;\n\n  @alias('model.project') project;\n  @alias('project.roles') roles;\n  @sort('rolesSearched', 'rolesSortingParameter') rolesSearchedAndSorted;\n\n  @tracked shouldShowCopyPermissionModal = false;\n\n  get isRolesFeatureAvailable() {\n    return this.project.hasProductionOrRemote;\n  }\n\n  get hasMoreThanOneRemoteEnvironment() {\n    return this.project.remoteEnvironments.length > 1;\n  }\n\n  get isCopyRolesPermissionsAllowed() {\n    return this.hasMoreThanOneRemoteEnvironment;\n  }\n\n  get roleLimit() {\n    return this.planService.currentPlan?.maxRoles;\n  }\n\n  get hasReachedMaxRoles() {\n    return (\n      this.planService.currentPlan?.maxRoles !== null\n      && this.roles.length >= this.planService.currentPlan?.maxRoles\n      && !this.model.project.hasPremiumUnlimitedRolesPrivilege\n    );\n  }\n\n  @action\n  transitionToRoleDetails(role) {\n    this.router.transitionTo('project.project-settings.roles.details.index', role.name);\n  }\n\n  @action\n  searchRole(search) {\n    const includesSearchValue = createIncludesCaseInsensitive(search);\n    const rolesSearched = this.roles.filter((role) => includesSearchValue(role.name));\n    this.set('rolesSearched', rolesSearched);\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsRolesIndexRoute extends Route {\n  @service currentUser;\n  @service router;\n\n  beforeModel() {\n    if (this.currentUser.isLoaded && !this.currentUser.can('createRole')) {\n      this.router.replaceWith('project.project-settings');\n    }\n  }\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n    controller.set('rolesSearched', model.project.roles);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout>\\n  <Shared::BetaSettingsLayout::Section @title=\\\"Roles\\\" @description=\\\"Add, edit or delete roles\\\">\\n    <:header-buttons>\\n      {{#if this.isCopyRolesPermissionsAllowed}}\\n        <Form::Dropdown>\\n          <:triggerer as |toggleDropdown|>\\n            <Shared::Button::BetaButton\\n              {{on \\'click\\' toggleDropdown}}\\n              @type=\\\"secondary\\\"\\n              @async={{false}}\\n              @text=\\\"Actions\\\"\\n              data-test-actions-button\\n            />\\n          </:triggerer>\\n          <:content>\\n            <Form::Dropdown::Action\\n              @name=\\\"Copy roles permissions across environments\\\"\\n              @onClick={{fn (mut this.shouldShowCopyPermissionModal) true}}\\n              @dataTestActionName=\\\"copy-permissions-action\\\"\\n            />\\n          </:content>\\n        </Form::Dropdown>\\n      {{/if}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @text=\\\"Create a new role\\\"\\n        @action={{action-link-to \\'project.project-settings.roles.create\\'}}\\n        @disabled={{this.hasReachedMaxRoles}}\\n        data-test-create-button={{true}}\\n      />\\n    </:header-buttons>\\n\\n    <:default>\\n      <div class=\\\"c-roles-settings\\\">\\n        {{#unless this.isRolesFeatureAvailable}}\\n          <Shared::Feedback::Notification::NotificationInApp\\n            @canHide={{false}}\\n            @state=\\\"warning\\\"\\n            @message=\\\"You cannot create a role until your project has been deployed remotely.\\\"\\n            class=\\\"c-roles-settings__notification\\\"\\n            data-test-notification=\\\"role-creation-disabled-without-remote\\\"\\n          />\\n          <div class=\\\"c-roles-settings__preview\\\">\\n            <Preview::PermissionsPreview />\\n          </div>\\n        {{else}}\\n          {{#if this.hasReachedMaxRoles}}\\n            <PlanLimitBanner @limitValue={{this.roleLimit}} @limitedEntity=\\\"role\\\" />\\n          {{/if}}\\n          {{#if this.roles}}\\n            <Shared::DataDisplay::BetaDisplayList\\n              @items={{this.rolesSearchedAndSorted}}\\n              @header={{component\\n                \\'shared/data-display/beta-display-list/search-bar\\'\\n                searchFunction=this.searchRole\\n                placeholder=\\'Search for roles...\\'\\n              }}\\n              @onItemClick={{this.transitionToRoleDetails}}\\n              data-test-item=\\\"roles-list\\\"\\n              as |role|\\n            >\\n              <div class=\\\"c-roles-settings__roles\\\">\\n\\n                <div class=\\\"c-roles-settings__role-name\\\">\\n                  {{role.name}}\\n                </div>\\n\\n                <div class=\\\"c-roles-settings__role-additional\\\">\\n                  {{#if role.isBlocked}}\\n                    <span class=\\\"c-roles-settings__role-blocked\\\" data-test-role-blocked>\\n                      <i class=\\\"material-icons c-roles-settings__icon-blocked\\\">\\n                        report_problem\\n                      </i>\\n                      Blocked\\n                    </span>\\n                  {{/if}}\\n                </div>\\n              </div>\\n            </Shared::DataDisplay::BetaDisplayList>\\n          {{else}}\\n            <div class=\\\"c-roles-settings__empty\\\">\\n              <span class=\\\"c-roles-settings__empty-content\\\">\\n                No role yet.\\n              </span>\\n              <Shared::Navigation::BetaLinkTo\\n                @type=\\\"primary\\\"\\n                @text=\\\"Create your first\\\"\\n                @routeName=\\\"project.project-settings.roles.create\\\"\\n                @size=\\\"small\\\"\\n                @noPadding={{true}}\\n                data-test-link=\\\"empty-roles-link\\\"\\n              />\\n            </div>\\n          {{/if}}\\n        {{/unless}}\\n      </div>\\n    </:default>\\n  </Shared::BetaSettingsLayout::Section>\\n  {{#if this.shouldShowCopyPermissionModal}}\\n    <Roles::ModalCopyPermissions\\n      @onClose={{fn (mut this.shouldShowCopyPermissionModal) false}}\\n      @environments={{this.project.remoteEnvironments}}\\n    />\\n  {{/if}}\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/project/project-settings/roles/index/template.hbs' });\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'multipleRoles',\n  redirectionIfFeatureActivated: 'project.project-settings.roles.create',\n})\nexport default class ProjectProjectSettingsRolesPreviewRoute extends Route {\n  titleToken = 'Premium Feature';\n\n  @service router;\n\n  @action\n  redirectTo() {\n    this.router.transitionTo('project.project-settings.roles');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::PreviewMultipleRoles @cancelRedirect={{route-action \\'redirectTo\\'}} />\\n', { moduleName: 'client/legacy/pods/project/project-settings/roles/preview/template.hbs' });\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\n/**\n * @typedef {{\n *  project: import('client/data/models/project').default,\n *  hasOnlyDevelopmentEnvironment: boolean,\n *  isIpWhitelistEnabled: boolean,\n *  isTwoFactorEnabled: boolean,\n *  isAutoLogoutEnabled: boolean,\n *  isSecurityEnabled: boolean,\n * }} ProjectSettingsRouteModel\n */\n\nexport default class ProjectProjectSettingsRoute extends Route {\n  @service abilities;\n  @service currentUser;\n  @service lianaFeatures;\n  @service lianaSession;\n  @service router;\n  @service store;\n\n  titleToken = 'Settings';\n  settingsDisplayName = 'Project Settings';\n  isSettings = true;\n\n  beforeModel(transition) {\n    // NOTICE: User that can't access to project settings are redirected.\n    if (this.currentUser.isLoaded && !this.currentUser.canEditProject) {\n      this.router.transitionTo('project.rendering.dashboard');\n    }\n\n    this.comeFrom = transition.to.name;\n  }\n\n  async model() {\n    const project = this.modelFor('project');\n\n    // We just want to be sure to have the last version of the project\n    // and not the one from the rendering\n    await project.reload();\n\n    const environments = await project.get('environments');\n    const hasOnlyDevelopmentEnvironment = !environments\n      .filter((environment) => !environment.isDevelopment)\n      .some((environment) => environment.isActive);\n\n    // NOTICE: this is temporary, this way we can choose to who we enable the feature.\n    const isIpWhitelistAvailable = this.lianaFeatures.isFeatureCompatible(\n      'ipWhitelist',\n      project.defaultEnvironment,\n    );\n    const isTwoFactorAvailable = this.lianaFeatures.isFeatureCompatible(\n      'twoFactorAuthentication',\n      project.defaultEnvironment,\n    );\n    const isUserProvisioningAvailable = this.abilities.can('access to userProvisioning');\n\n    const isAutoLogoutEnabled = this.abilities.can('access to autoLogout');\n    const isIpWhitelistEnabled =\n      isIpWhitelistAvailable && this.abilities.can('access to ipWhitelist');\n    const isTwoFactorEnabled =\n      isTwoFactorAvailable && this.abilities.can('access to twoFactorAuthentication');\n\n    // NOTICE: To avoid a lot of request to retrieve the roles of each user\n    //         We retrieve the roles before retrieving the users.\n    //         To avoid issue on invitation, we also need to load the teams\n    await Promise.all([\n      project.roles,\n      project.teams,\n\n      // Notice: To get organization serialized when doing modification on project\n      project.get('organization'),\n    ]);\n\n    // In case the user arrived directly on the project settings,\n    // we need teams and rendering to display the navigation menu\n    if (!this.lianaSession.rendering.sections?.length) {\n      const rendering = await this.store.queryRecord('rendering', {\n        projectName: project.name,\n        environmentName: this.lianaSession.currentEnvironment.name,\n        teamName: this.lianaSession.rendering.team.name,\n      });\n      this.lianaSession.currentRenderingId = rendering.id;\n    }\n\n    return hash({\n      project,\n      hasOnlyDevelopmentEnvironment,\n      isIpWhitelistEnabled,\n      isTwoFactorEnabled,\n      isAutoLogoutEnabled,\n      isUserProvisioningAvailable,\n      isSecurityEnabled:\n        isAutoLogoutEnabled\n        || isIpWhitelistEnabled\n        || isTwoFactorEnabled\n        || isUserProvisioningAvailable\n        || false,\n    });\n  }\n\n  @action\n  willTransition(transition) {\n    this.comeFrom = transition.to.name;\n  }\n\n  @action\n  didTransition() {\n    // eslint-disable-next-line ember/no-controller-access-in-routes\n    const allowedSettingPages = this.controller.menuItems;\n    const [comeFrom] = /([\\w-]+\\.){2}[\\w-]+/.exec(this.comeFrom);\n    if (!allowedSettingPages.find(({ link }) => link === comeFrom)) {\n      const [firstAvailableSettingPage] = allowedSettingPages;\n      this.comeFrom = firstAvailableSettingPage.link;\n      this.router.replaceWith(firstAvailableSettingPage.link);\n    }\n  }\n}\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { filterBy, readOnly, sort } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport { is409Error } from 'client/utils/ember-error-util';\n\nexport default class ProjectProjectSettingsSecurityController extends Controller {\n  @service errorHandler;\n  @service lianaFeatures;\n  @service router;\n  @service store;\n  @service toastr;\n\n  @readOnly('model.isIpWhitelistEnabled') isIpWhitelistAccessible;\n  @readOnly('model.isAutoLogoutEnabled') isAutoLogoutAccessible;\n  @readOnly('model.isTwoFactorEnabled') isTwoFactorAccessible;\n  @readOnly('model.isUserProvisioningAvailable') isUserProvisioningAccessible;\n  @readOnly('model.project') project;\n  @readOnly('model.myIp') myIp;\n\n  @tracked ruleName;\n  @tracked ruleValue;\n\n  rulesSorting = ['name'];\n  @filterBy('project.ipWhitelistRules', 'isDeleted', false) ipWhitelistRules;\n  @sort('ipWhitelistRules', 'rulesSorting') sortedIpWhitelistRules;\n\n  @computed(\n    'project.environments.@each.hasDirtyAttributes',\n    'project.hasDirtyAttributes',\n    'project.ipWhitelistRules.@each.{hasDirtyAttributes,isDeleted}',\n  )\n  get isSaveDisabled() {\n    return (\n      !this.project.hasDirtyAttributes\n      && !this.project.environments.any((environment) => environment.hasDirtyAttributes)\n      && !this.project.ipWhitelistRules?.any((rule) => rule.hasDirtyAttributes || rule.isDeleted)\n    );\n  }\n\n  @computed('project.inactiveDurationBeforeLogout')\n  get useAutoLogout() {\n    return !!this.project.inactiveDurationBeforeLogout;\n  }\n\n  // Prevent the Form::Toggle to override our computed property\n  set useAutoLogout(value) {\n    return value;\n  }\n\n  @computed('ruleName', 'ruleValue')\n  get hasNotRuleFieldsFilled() {\n    return !this.ruleName || !this.ruleValue;\n  }\n\n  @computed('lianaFeatures', 'project.environments.[]')\n  get hasEnvironmentsWithOidc() {\n    return this.project.environments.any((environment) =>\n      this.lianaFeatures.isFeatureCompatible(FeaturesEnum.OpenIdConnect, environment),\n    );\n  }\n\n  @computed('project.environments.[]')\n  get environmentsSelected() {\n    return this.project.environments.filter(\n      ({ twoFactorAuthenticationEnabled }) => twoFactorAuthenticationEnabled,\n    );\n  }\n\n  @computed('project.environments.[]')\n  get availableEnvironments() {\n    return this.project.environments.filter(\n      ({ isBlocked, lianaVersion }) => !isBlocked && lianaVersion,\n    );\n  }\n\n  @action\n  async addRule(callback) {\n    if (this.hasNotRuleFieldsFilled) return;\n\n    try {\n      const ruleValue = this.ruleValue.trim().replace(/ *- */, ' - ');\n\n      const ipUtils = await import('ip-utils');\n      const { isValid, reason } = ipUtils.checkRule(ruleValue);\n\n      if (!isValid) {\n        this.toastr.perform('error', `IP rule addition failed: ${reason}`);\n        return;\n      }\n\n      this.store.createRecord('ipWhitelistRule', {\n        project: this.project,\n        name: this.ruleName,\n        value: ruleValue,\n      });\n\n      this.ruleName = '';\n      this.ruleValue = '';\n    } finally {\n      callback?.();\n    }\n  }\n\n  @action\n  deleteRule(ruleToDelete) {\n    ruleToDelete.deleteRecord();\n  }\n\n  @action\n  toggleTwoFactorAuthentication(_environments, currentEnvironnement) {\n    currentEnvironnement.toggleProperty('twoFactorAuthenticationEnabled');\n  }\n\n  @action\n  onAutoLogoutEnabledChange(isAutoLogoutEnabled) {\n    this.useAutoLogout = isAutoLogoutEnabled;\n    this.project.set('inactiveDurationBeforeLogout', isAutoLogoutEnabled ? 60 : 0);\n  }\n\n  @action\n  async saveChanges(callback) {\n    if (this.project.useIpWhitelist && !(await this._isCurrentInWhitelist())) {\n      this.toastr.perform(\n        'error',\n        `You must be in the whitelist to save it. Your IP is '${this.myIp}'.`,\n      );\n      callback();\n      return;\n    }\n\n    await this._saveIpWhitelistChanges();\n    await this._saveTwoFactorChanges();\n\n    try {\n      if (this.project.hasDirtyAttributes) {\n        await this.project.save();\n        this.toastr.perform('success', `Project ${this.project.name} saved.`);\n      }\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error, 'Project save failed:');\n    }\n\n    callback();\n  }\n\n  @action\n  reloadProject() {\n    this.project.reload();\n  }\n\n  @action\n  discardChanges() {\n    this.project.ipWhitelistRules?.forEach((rule) => rule.rollbackAttributes());\n    this.project.environments.forEach((environment) => environment?.rollbackAttributes());\n    this.project.rollbackAttributes();\n  }\n\n  async _isCurrentInWhitelist() {\n    const rules = this.ipWhitelistRules.map((item) => ({ name: item.name, value: item.value }));\n\n    const ipUtils = await import('ip-utils');\n\n    return ipUtils.contain(rules, this.myIp);\n  }\n\n  async _saveIpWhitelistChanges() {\n    const promises = [];\n\n    this.project.ipWhitelistRules.forEach((rule) => {\n      if (rule.isDeleted || rule.hasDirtyAttributes) {\n        promises.push(rule.save());\n      }\n    });\n\n    try {\n      await Promise.all(promises);\n      if (promises.length) {\n        this.toastr.perform('success', 'IP Whitelisting settings saved.');\n      }\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error, 'IP Whitelisting save failed:');\n    }\n  }\n\n  async _saveTwoFactorChanges() {\n    const environmentsSaving = [];\n    this.project.environments.forEach((environment) => {\n      if (environment.hasDirtyAttributes) {\n        environmentsSaving.push(environment.save());\n      }\n    });\n\n    try {\n      await Promise.all(environmentsSaving);\n      if (environmentsSaving.length) {\n        this.toastr.perform('success', 'Two Factor settings saved.');\n      }\n    } catch (error) {\n      if (is409Error(error)) {\n        this.toastr.perform(\n          'error',\n          'Please contact support@forestadmin.com to disable or edit the two factor authentication configuration.',\n        );\n      } else {\n        this.errorHandler.handleRequestFailure(error, 'Two factor authentication save failed:');\n      }\n    }\n  }\n\n  /**\n   * User provisioning - SCIM\n   */\n\n  @action\n  async goToBillingUpgradePage() {\n    await this.router.transitionTo('project.project-settings.billing.manage-your-plan');\n  }\n}\n","import { set } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving()\nexport default class ProjectProjectSettingsSecurityRoute extends Route {\n  @service currentUser;\n  @service router;\n  @service store;\n  @service toastr;\n\n  titleToken = 'Settings';\n\n  beforeModel() {\n    const model = this.modelFor('project.project-settings');\n\n    if (\n      (this.currentUser.isLoaded && !this.currentUser.can('updateProject'))\n      || !model.isSecurityEnabled\n    ) {\n      this.toastr.perform('error', 'Access forbidden');\n      this.router.replaceWith('project.project-settings.general');\n    }\n  }\n\n  async model() {\n    const model = this.modelFor('project.project-settings');\n\n    if (model.isIpWhitelistAccessible) {\n      await model.project.ipWhitelistRules;\n    }\n\n    const myIpRecord = await this.store.queryRecord('ip', {});\n    set(model, 'myIp', myIpRecord.ip);\n\n    return model;\n  }\n\n  mustPreventLeaving() {\n    // eslint-disable-next-line ember/no-controller-access-in-routes\n    return !this.controller.isSaveDisabled;\n  }\n\n  onLeavingWithoutSaving() {\n    // eslint-disable-next-line ember/no-controller-access-in-routes\n    this.controller.discardChanges();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout>\\n  <Shared::BetaSettingsLayout::Section>\\n    <Button::BetaSaveDiscardButtons\\n      @isSaveDisabled={{this.isSaveDisabled}}\\n      @entity={{this.project}}\\n      @save={{this.saveChanges}}\\n      @discard={{this.discardChanges}}\\n    />\\n  </Shared::BetaSettingsLayout::Section>\\n  <Shared::ContentSeparator @withSideMargin={{true}} />\\n  {{#if this.isIpWhitelistAccessible}}\\n    <Shared::BetaSettingsLayout::Section\\n      @title=\\\"IP Whitelist\\\"\\n      @description=\\\"Configure your IP Whitelisting settings to restrict access exclusively to authorized IP and bring your security to a whole new level.\\\"\\n    >\\n      <Shared::Form::Toggle\\n        @value={{this.project.useIpWhitelist}}\\n        @onChange={{fn (mut this.project.useIpWhitelist)}}\\n        class=\\\"c-settings-security-feature-toggle\\\"\\n      />\\n\\n      {{#if this.project.useIpWhitelist}}\\n        <div class=\\\"c-settings-security-ip-inputs\\\">\\n          <Shared::BetaLabel\\n            @label=\\\"IP Name\\\"\\n            class=\\\"c-settings-security-ip-inputs__name\\\"\\n            data-test-ip-name\\n          >\\n            <Shared::BetaInput\\n              @placeholder=\\\"e.g. &quot;Office&quot;, &quot;New York&quot;\\\"\\n              @value={{this.ruleName}}\\n            />\\n          </Shared::BetaLabel>\\n          <Shared::BetaLabel\\n            @label=\\\"IP Address / Range\\\"\\n            class=\\\"c-settings-security-ip-inputs__ip\\\"\\n            data-test-ip-value\\n          >\\n            <Shared::BetaInput\\n              @placeholder=\\\"e.g. &quot;10.0.0.1&quot;, &quot;100.0.0.1 - 100.0.0.35&quot;, &quot;123.12.34.0/24&quot;\\\"\\n              @value={{this.ruleValue}}\\n              @onEnter={{this.addRule}}\\n            />\\n          </Shared::BetaLabel>\\n        </div>\\n\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @text=\\\"Add IP\\\"\\n          @action={{this.addRule}}\\n          @disabled={{this.hasNotRuleFieldsFilled}}\\n          @async={{true}}\\n          class=\\\"c-settings-security-add-ip-button\\\"\\n          data-test-add-ip-button\\n        />\\n\\n        {{#if this.sortedIpWhitelistRules.length}}\\n          <Shared::DataDisplay::BetaDisplayList\\n            @items={{this.sortedIpWhitelistRules}}\\n            class=\\\"c-settings-security-ip-whitelist-rules\\\"\\n            data-test-ip-rules-list\\n            as |item|\\n          >\\n            <span class=\\\"c-settings-security-ip-whitelist-rules__name\\\" data-test-ip-rules-item-name>\\n              {{item.name}}\\n            </span>\\n            <span\\n              class=\\\"c-settings-security-ip-whitelist-rules__rule\\\"\\n              data-test-ip-rules-item-value\\n            >\\n              {{item.value}}\\n            </span>\\n            <Shared::DataDisplay::BetaIcon\\n              @iconName=\\\"delete\\\"\\n              class=\\\"c-settings-security-ip-whitelist-rules__delete\\\"\\n              data-test-ip-rules-item-delete\\n              {{on \\'click\\' (fn this.deleteRule item)}}\\n            />\\n          </Shared::DataDisplay::BetaDisplayList>\\n        {{/if}}\\n      {{/if}}\\n    </Shared::BetaSettingsLayout::Section>\\n\\n    <Shared::ContentSeparator @withSideMargin={{true}} />\\n  {{/if}}\\n\\n  {{#if this.isTwoFactorAccessible}}\\n    <Shared::BetaSettingsLayout::Section\\n      @title=\\\"Two-factor Authentication\\\"\\n      @description=\\\"Configure your Two-factor Authentication to add and extra layer of security using a access code only the user will have access to.\\\"\\n    >\\n      <Shared::Form::Toggle\\n        @value={{this.project.useTwoFactorAuthentication}}\\n        @onChange={{fn (mut this.project.useTwoFactorAuthentication)}}\\n        class=\\\"c-settings-security-feature-toggle\\\"\\n      />\\n\\n      {{#if this.project.useTwoFactorAuthentication}}\\n        {{#if this.hasEnvironmentsWithOidc}}\\n          <Shared::Feedback::Notification::NotificationInApp\\n            @state=\\\"warning\\\"\\n            @canHide={{false}}\\n            class=\\\"c-settings-security-2fa-warning\\\"\\n          >\\n            Note that users who sign up using third-parties (Google, OneLogin,..)\\n            <strong>\\n              will not be required to have a 2FA setup\\n            </strong>\\n            . Please make sure you enforce 2FA on those third-parties as well to be fully covered.\\n          </Shared::Feedback::Notification::NotificationInApp>\\n        {{/if}}\\n\\n        <Shared::BetaLabel\\n          @label=\\\"Environments\\\"\\n          @description=\\\"Environments where the Two-factor Authentication will be active.\\\"\\n          class=\\\"c-settings-security-selected-environments\\\"\\n        >\\n          <Shared::BetaSelectSearch\\n            @multipleValues={{true}}\\n            @options={{this.availableEnvironments}}\\n            @value={{one-way this.environmentsSelected}}\\n            @placeholder=\\\"Select one or multiple environments\\\"\\n            @onChange={{this.toggleTwoFactorAuthentication}}\\n            @namePath=\\\"name\\\"\\n            @customBlockList={{true}}\\n          >\\n            <:selected-item-list as |options removeValue|>\\n              <Shared::DataDisplay::BetaDisplayList\\n                @items={{options}}\\n                class=\\\"c-settings-security-2fa-environments-list\\\"\\n                as |option index|\\n              >\\n                <Shared::DataDisplay::BetaBadge\\n                  @value={{option.value.name}}\\n                  @color={{option.value.badgeColor}}\\n                />\\n                <Shared::DataDisplay::BetaIcon\\n                  @iconName=\\\"delete\\\"\\n                  class=\\\"c-settings-security-2fa-environments-list__delete\\\"\\n                  {{on\\n                    \\'click\\'\\n                    (prevent-default (stop-propagation (fn removeValue option.value index)))\\n                  }}\\n                />\\n              </Shared::DataDisplay::BetaDisplayList>\\n            </:selected-item-list>\\n          </Shared::BetaSelectSearch>\\n        </Shared::BetaLabel>\\n      {{/if}}\\n    </Shared::BetaSettingsLayout::Section>\\n\\n    <Shared::ContentSeparator @withSideMargin={{true}} />\\n  {{/if}}\\n\\n  {{#if this.isAutoLogoutAccessible}}\\n    <Shared::BetaSettingsLayout::Section\\n      @title=\\\"Auto-logout\\\"\\n      @description=\\\"The auto logout feature automatically logs you out if your login session has become inactive for long periods of time.\\\"\\n    >\\n      <Shared::Form::Toggle\\n        @value={{this.useAutoLogout}}\\n        @onChange={{this.onAutoLogoutEnabledChange}}\\n        class=\\\"c-settings-security-feature-toggle\\\"\\n      />\\n\\n      {{#if this.useAutoLogout}}\\n        <Shared::BetaLabel\\n          @label=\\\"Auto-logout duration (Default : 60min)\\\"\\n          class=\\\"c-settings-security-auto-logout-duration\\\"\\n        >\\n          <Shared::BetaSelect\\n            @value={{this.project.inactiveDurationBeforeLogout}}\\n            @options={{array\\n              (hash value=1 name=\\'1 minute\\')\\n              (hash value=2 name=\\'2 minutes\\')\\n              (hash value=3 name=\\'3 minutes\\')\\n              (hash value=10 name=\\'10 minutes\\')\\n              (hash value=30 name=\\'30 minutes\\')\\n              (hash value=60 name=\\'1 hour\\')\\n              (hash value=120 name=\\'2 hours\\')\\n              (hash value=180 name=\\'3 hours\\')\\n              (hash value=240 name=\\'4 hours\\')\\n              (hash value=300 name=\\'5 hours\\')\\n              (hash value=600 name=\\'10 hours\\')\\n              (hash value=1440 name=\\'24 hours\\')\\n            }}\\n            @namePath=\\\"name\\\"\\n            @valuePath=\\\"value\\\"\\n          />\\n        </Shared::BetaLabel>\\n      {{/if}}\\n    </Shared::BetaSettingsLayout::Section>\\n\\n    <Shared::ContentSeparator @withSideMargin={{true}} />\\n  {{/if}}\\n\\n  {{#if this.isUserProvisioningAccessible}}\\n    <ProjectSettings::ProvisioningSection\\n      @onChange={{this.reloadProject}}\\n      @hasScimToken={{this.project.hasScimToken}}\\n      @goToBillingUpgradePage={{this.goToBillingUpgradePage}}\\n    />\\n  {{/if}}\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/project/project-settings/security/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { filterBy } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsTeamsCreateController extends Controller {\n  @service errorHandler;\n  @service router;\n  @service toastr;\n\n  breadcrumb = [\n    {\n      displayName: 'Teams',\n      link: 'project.project-settings.teams',\n      isClickable: true,\n    },\n    {\n      displayName: 'New team',\n    },\n  ];\n\n  // NOTE: As the current new team is also added to the store, we need to remove\n  //       it from the teams list for the layout copier\n  @filterBy('model.teams', 'isNew', false) teams;\n\n  @action\n  onBreadcrumbClose() {\n    this.router.transitionTo('project.project-settings.teams');\n  }\n\n  @action\n  createTeam(callback) {\n    return this.team\n      .save()\n      .then((team) => {\n        this.toastr.perform('success', 'Team created successfully');\n        this.router.transitionTo('project.project-settings.teams.details', team.id);\n      })\n      .catch((reason) => {\n        this.errorHandler.handleRequestFailure(\n          reason,\n          `Impossible to create the team \"${this.team.name}\"`,\n        );\n        callback();\n      });\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving('team')\nexport default class ProjectProjectSettingsTeamsCreateRoute extends Route {\n  @service currentUser;\n  @service router;\n  @service store;\n\n  beforeModel() {\n    // NOTE: Here we first check for the user permissions\n    if (this.currentUser.isLoaded && !this.currentUser.can('updateTeam')) {\n      this.router.replaceWith('project.project-settings');\n    }\n  }\n\n  model() {\n    const { project } = this.modelFor('project.project-settings');\n    const teams = project.queryRecords('teams');\n\n    return hash({ project, teams });\n  }\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    controller.set('team', this.store.createRecord('team', { project: model.project }));\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout @onClose={{this.onBreadcrumbClose}}>\\n  <div class=\\\"c-teams-settings-create__save-button\\\">\\n    <Button::BetaSaveDiscardButtons\\n      @isCreate={{true}}\\n      @isSaveDisabled={{not this.team.name}}\\n      @entity={{this.team}}\\n      @entityName=\\\"team\\\"\\n      @save={{this.createTeam}}\\n    />\\n  </div>\\n\\n  <Shared::BetaSettingsLayout::Section @title=\\\"Basic settings\\\">\\n    <Shared::BetaLabel\\n      @label=\\\"Team name\\\"\\n      class=\\\"c-teams-settings__input\\\"\\n      data-test-input-for=\\\"name\\\"\\n    >\\n      <Shared::BetaInput @value={{this.team.name}} @placeholder=\\\"My team\\\" />\\n    </Shared::BetaLabel>\\n  </Shared::BetaSettingsLayout::Section>\\n\\n  {{#if this.teams.length}}\\n    <Shared::BetaSettingsLayout::Section\\n      @title=\\\"Layout\\\"\\n      @description=\\\"The layout is what the user will see. It’s the user interface.\\\"\\n    >\\n      <div class=\\\"c-teams-settings__layout-copier\\\">\\n        <Shared::BetaLabel\\n          @label=\\\"Copy the layout from another team\\\"\\n          class=\\\"c-teams-settings__input\\\"\\n        >\\n          <div class=\\\"l-deployment\\\">\\n            <Shared::BetaSelect\\n              @options={{this.teams}}\\n              @value={{this.team.fromTeamId}}\\n              @valuePath=\\\"id\\\"\\n              @namePath=\\\"name\\\"\\n              @defaultOption=\\\"Select a team\\\"\\n              @class=\\\"l-deployment__select\\\"\\n            />\\n          </div>\\n        </Shared::BetaLabel>\\n      </div>\\n    </Shared::BetaSettingsLayout::Section>\\n  {{/if}}\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/project/project-settings/teams/create/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport { hash } from 'rsvp';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving('team')\nexport default class ProjectProjectSettingsTeamsDetailsRoute extends Route {\n  @service('feature/team') teamFeatureService;\n  @service currentUser;\n  @service router;\n  @service store;\n  @tracked team;\n\n  beforeModel() {\n    if (this.currentUser.isLoaded && !this.currentUser.can('updateTeam')) {\n      this.router.replaceWith('project.project-settings');\n    }\n  }\n\n  get breadcrumb() {\n    return this.teamFeatureService.getBreadcrumb(this.team);\n  }\n\n  async model(params) {\n    const { project, team: currentUserTeam } = this.modelFor('project.project-settings');\n    const team = await this.store.findRecord('team', params.team_id);\n    this.team = team;\n    const teamsList = project.queryRecords('teams');\n\n    return hash({\n      currentUserTeam,\n      team,\n      teamsList,\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Team::Details @team={{this.model.team}} @teamsList={{this.model.teamsList}} />\\n', { moduleName: 'client/legacy/pods/project/project-settings/teams/details/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsTeamsIndexController extends Controller {\n  @service planService;\n  @service router;\n\n  @alias('model.project.teams') teams;\n\n  get teamLimit() {\n    return this.planService.currentPlan?.maxTeams;\n  }\n\n  get hasReachedMaxTeams() {\n    return (\n      this.planService.currentPlan?.maxTeams !== null\n      && this.teams.length >= this.planService.currentPlan?.maxTeams\n      && !this.model.project.hasPremiumUnlimitedTeamsPrivilege\n    );\n  }\n\n  @action\n  onTeamClick(team) {\n    this.router.transitionTo('project.project-settings.teams.details', team.id);\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\n/**\n * The preview screen has been removed because it's now possible to have\n * the right to create some amount of teams, depending on the plan.\n */\nexport default class ProjectProjectSettingsTeamsIndexRoute extends Route {\n  @service currentUser;\n  @service router;\n\n  beforeModel() {\n    if (this.currentUser.isLoaded && !this.currentUser.can('updateTeam')) {\n      this.router.replaceWith('project.project-settings');\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout>\\n  <Shared::BetaSettingsLayout::Section\\n    @title=\\\"Teams\\\"\\n    @description=\\\"Add, edit or delete teams of this project.\\\"\\n  >\\n    <:header-buttons>\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @text=\\\"Create a new team\\\"\\n        @action={{action-link-to \\'project.project-settings.teams.create\\'}}\\n        @disabled={{this.hasReachedMaxTeams}}\\n        data-test-create-button={{true}}\\n      />\\n    </:header-buttons>\\n\\n    <:default>\\n      {{#if this.hasReachedMaxTeams}}\\n        <PlanLimitBanner @limitValue={{this.teamLimit}} @limitedEntity=\\\"team\\\" />\\n      {{/if}}\\n\\n      <Shared::DataDisplay::ItemsPaginatedTable\\n        @itemType=\\\"team\\\"\\n        @projectToSearchTeams={{this.model.project}}\\n        @onItemClick={{this.onTeamClick}}\\n        as |team|\\n      >\\n        <div class=\\\"c-teams-settings__teams\\\">\\n\\n          <div class=\\\"c-teams-settings__team-name\\\">\\n            {{team.name}}\\n          </div>\\n\\n          <div class=\\\"c-teams-settings__team-additional\\\">\\n            {{#if team.isBlocked}}\\n              <span class=\\\"c-teams-settings__team-blocked\\\" data-test-team-blocked>\\n                <i class=\\\"material-icons c-teams-settings__icon-blocked\\\">\\n                  report_problem\\n                </i>\\n                Blocked\\n              </span>\\n            {{/if}}\\n          </div>\\n\\n          <div class=\\\"c-items-paginated-table__cell-users\\\">\\n            <span class=\\\"c-items-paginated-table__text\\\">\\n              {{team.usersCount}}\\n              {{word-pluralize \\'user\\' team.usersCount}}\\n            </span>\\n          </div>\\n        </div>\\n      </Shared::DataDisplay::ItemsPaginatedTable>\\n    </:default>\\n  </Shared::BetaSettingsLayout::Section>\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/project/project-settings/teams/index/template.hbs' });\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'teams',\n  redirectionIfFeatureActivated: 'project.project-settings.teams',\n})\nexport default class ProjectProjectSettingsTeamsPreviewRoute extends Route {\n  titleToken = 'Premium Feature';\n\n  @service router;\n\n  @action\n  redirectTo() {\n    this.router.transitionTo('project.project-settings.teams');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::PreviewTeams\\n  @isPaying={{this.model.billing.isPaying}}\\n  @cancelRedirect={{route-action \\'redirectTo\\'}}\\n/>\\n', { moduleName: 'client/legacy/pods/project/project-settings/teams/preview/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaHeader\\n  @title=\\\"Project Settings\\\"\\n  @isLayoutEditorButtonHidden={{true}}\\n  @menuItems={{this.menuItems}}\\n>\\n  <:right-buttons>\\n    <Shared::BetaIconButton\\n      @icon=\\\"close\\\"\\n      data-test-controller-project-settings-close-button\\n      {{on \\'click\\' this.closeProjectSettings}}\\n    />\\n  </:right-buttons>\\n</BetaHeader>\\n\\n<div class=\\\"l-project-settings-content\\\">\\n  {{outlet}}\\n</div>\\n', { moduleName: 'client/legacy/pods/project/project-settings/template.hbs' });\n","import Controller from '@ember/controller';\nimport { computed } from '@ember/object';\nimport { alias, readOnly } from '@ember/object/computed';\n\nexport default class ProjectProjectSettingsUsersDetailsController extends Controller {\n  @readOnly('model.error') error;\n  @alias('model.user') user;\n  @alias('model.project') project;\n  @alias('model.currentTeam') currentTeam;\n  @alias('model.availableProjectTeams') availableProjectTeams;\n  @alias('model.availableProjectRoles') availableProjectRoles;\n\n  @computed('user.fullName')\n  get breadcrumb() {\n    return [\n      {\n        displayName: 'Users',\n        link: 'project.project-settings.users',\n        isClickable: true,\n      },\n      {\n        displayName: this.user.fullName,\n      },\n    ];\n  }\n}\n","import Route from '@ember/routing/route';\nimport { hash } from 'rsvp';\n\nimport { ERROR_NOT_FOUND } from 'client/config/errors';\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving('user')\nexport default class ProjectProjectSettingsUsersDetailsRoute extends Route {\n  async model(params) {\n    const { project } = this.modelFor('project.project-settings');\n    const users = await project.get('users');\n    const user = users.findBy('id', params.user_id);\n    // NOTICE: We must load the user teams that are needed in the component user-settings-details.\n    await user.get('teams');\n\n    let error;\n    if (!user) {\n      error = {\n        type: ERROR_NOT_FOUND,\n        options: { target: `User #${params.user_id}` },\n      };\n    }\n\n    const availableProjectTeams = await project.queryRecords('teams', {});\n    const availableProjectRoles = await project.get('roles');\n\n    return hash({\n      user,\n      project,\n      availableProjectTeams: availableProjectTeams.filter((team) => !team.isBlocked),\n      availableProjectRoles: availableProjectRoles.filter((role) => !role.isBlocked),\n      error,\n    });\n  }\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    // NOTICE: Reset inEditState of availableProjectTeams\n    model.availableProjectTeams.forEach((team) => team.set('inEditState', false));\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.user}}\\n  <UserSettingsDetails\\n    @user={{this.user}}\\n    @project={{this.project}}\\n    @availableProjectTeams={{this.availableProjectTeams}}\\n    @availableProjectRoles={{this.availableProjectRoles}}\\n    @readOnly={{this.readOnly}}\\n  />\\n{{else}}\\n  <Layout::LayoutError @error={{this.error}} />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/project-settings/users/details/template.hbs' });\n","import { A } from '@ember/array';\nimport Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias, sort } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport Team from 'client/data/models/team';\nimport { argument, optional } from 'client/decorators/argument';\nimport batchDeleteInvitations from 'client/utils/batch-delete-invitations';\nimport { getFirstErrorDetail, isEmberError } from 'client/utils/ember-error-util';\n\nconst PAGE_SIZE = 25;\n\n/**\n * @param {Array<import('client/data/models/user-invitation-project').default>} userInvitations\n */\nfunction extractUserIds(userInvitations) {\n  return userInvitations\n    .filter((userInvitation) => userInvitation.isUser)\n    .map((userInvitation) => userInvitation.userId);\n}\n\n/**\n * @param {Array<import('client/data/models/user-invitation-project').default>} userInvitations\n */\nfunction extractInvitationIds(userInvitations) {\n  return userInvitations\n    .filter((userInvitation) => userInvitation.isInvitation)\n    .map((userInvitation) => userInvitation.invitationId);\n}\n\nexport default class ProjectProjectSettingsUsersIndexController extends Controller {\n  /** @type {import('client/legacy/services/forest-session').default} */\n  @service session;\n  /** @type {import('client/legacy/services/error-handler').default} */\n  @service errorHandler;\n  /** @type {import('client/services/lianaSession').default} */\n  @service lianaSession;\n  /** @type {import('client/legacy/services/server-fetch').default} */\n  @service serverFetch;\n  /** @type {import('client/legacy/services/toastr').default} */\n  @service toastr;\n  /** @type {import('client/legacy/services/plan-service').default} */\n  @service planService;\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n  /** @type {import('client/legacy/services/tracker').default} */\n  @service tracker;\n  /** @type {import('client/legacy/services/segment-tracker').default} */\n  @service segmentTracker;\n  /** @type {import('client/legacy/services/store').default} */\n  @service store;\n  /** @type {import('client/legacy/services/clipboard').default} */\n  @service clipboard;\n  /** @type {import('client/legacy/services/custom-domain').default} */\n  @service customDomain;\n  /** @type {import('client/legacy/services/timezone').default} */\n  @service timezone;\n\n  @argument(optional(Team)) teamToRestrictUsersSearch; // Optional when looking for users.\n\n  inviteEmailsText = '';\n  invitationsSortingParameter = ['id:desc'];\n  @tracked displayInvitationModal = false;\n  @tracked displayEditRoleModal = false;\n  @tracked displayAddTagModal = false;\n  @tracked displayRemoveTagsModal = false;\n  @tracked displayingExportModal = false;\n  @tracked selectedUserInvitations = [];\n\n  @alias('model.project') project;\n  @alias('model.statistics') statistics;\n  @alias('model.project.teams') teams;\n  @alias('model.project.roles') roles;\n  @alias('model.hasOnlyDevelopmentEnvironment') hasOnlyDevelopmentEnvironment;\n  @alias('model.showScimBanner') showScimBanner;\n  @sort('model.project.invitations', 'invitationsSortingParameter') invitations;\n\n  @tracked selectedTags = A();\n  @tracked filter = null;\n  @tracked isLoading = true;\n  @tracked userInvitations = [];\n\n  @tracked searchParams = { page: 1 };\n\n  onModelReceived() {\n    this.search({ page: 1 });\n  }\n\n  @computed('teams.[]')\n  get availableTeams() {\n    return this.teams.filter((team) => !team.isBlocked);\n  }\n\n  @computed('roles')\n  get availableRoles() {\n    return this.roles.filter((role) => !role.isBlocked);\n  }\n\n  @computed('planService.currentPlan.maxUsers')\n  get userLimit() {\n    return this.planService.currentPlan?.maxUsers;\n  }\n\n  @computed('planService.currentPlan.maxUsers', 'statistics.totalUsers', 'totalProjectUsers')\n  get hasReachedMaxUsers() {\n    return (\n      this.planService.currentPlan?.maxUsers\n      && this.totalProjectUsers >= this.planService.currentPlan?.maxUsers\n    );\n  }\n\n  @computed('statistics.{numberInvitations,numberUsers}')\n  get totalProjectUsers() {\n    return this.statistics.numberUsers + this.statistics.numberInvitations;\n  }\n\n  @computed('allItemsCount')\n  get pageCount() {\n    return Math.ceil(this.allItemsCount / PAGE_SIZE) || 1;\n  }\n\n  @computed('userInvitations.meta.count')\n  get allItemsCount() {\n    return this.userInvitations?.meta?.count || 1;\n  }\n\n  @computed('project.hasScimToken')\n  get isUserProvisioningDisablingEdition() {\n    return this.project.hasScimToken || false;\n  }\n\n  @action\n  async inviteUsers({ emails, permissionLevel, team, role, tags }) {\n    const invitations = this.createBulkInvitations({\n      emails,\n      permissionLevel,\n      team,\n      role,\n      tags,\n    });\n\n    try {\n      await this.store.bulkCreate('invitation', invitations);\n\n      this.segmentTracker.trackInvitationFormCompleted({\n        projectName: this.project.name,\n        projectId: this.project.id,\n        permissionLevel,\n      });\n\n      this.toastr.perform(\n        'success',\n        `Invitation${invitations.length > 1 ? 's' : ''} successfully sent.`,\n      );\n      this.closeInvitationModal();\n\n      await this.model.project.statistics.reload();\n      this.search({ page: 1 });\n    } catch (reason) {\n      console.error(reason);\n      this.tracker.captureException(reason);\n      const message = (reason.errors && reason.errors[0]?.detail) || 'unexpected error.';\n\n      this.toastr.perform('error', `Invitation failed: ${message}`);\n    }\n  }\n\n  @action\n  async cancelInvitations(userInvitations) {\n    const invitationIds = extractInvitationIds(userInvitations);\n\n    this.isLoading = true;\n\n    await batchDeleteInvitations(\n      {\n        serverFetch: this.serverFetch,\n        toastr: this.toastr,\n        errorHandler: this.errorHandler,\n      },\n      invitationIds,\n      this.project.id,\n    );\n\n    await Promise.all([this.project.statistics.reload(), this.search(this.searchParams)]);\n  }\n\n  @action\n  async search({ search, filter, page }) {\n    this.isLoading = true;\n    this.searchParams = { search, filter, page };\n    const queryParams = { page: { number: page, size: PAGE_SIZE } };\n\n    if (search) {\n      queryParams.search = search;\n    }\n\n    if (filter) {\n      queryParams.filters = filter.queryFilter;\n    }\n\n    const currentPageItems = await this.project.queryRecords('userInvitationProjects', queryParams);\n    this.isLoading = false;\n    this.userInvitations = currentPageItems || [];\n  }\n\n  @action\n  async exportPermissions() {\n    try {\n      const environmentId = parseInt(this.lianaSession.currentEnvironment?.id, 10);\n\n      await this.serverFetch.fetch(\n        `/api/environments/${environmentId}/export-permissions`,\n        {\n          method: 'POST',\n          credentials: 'include',\n        },\n        true,\n      );\n\n      this.toastr.perform('success', 'You will receive the export by email in a few minutes.');\n    } catch (error) {\n      this.tracker.captureException(error);\n      const message = (isEmberError(error) && getFirstErrorDetail(error)) || 'Unexpected error';\n\n      this.toastr.perform('error', `Failed to export permissions: ${message}`);\n    }\n  }\n\n  @action\n  openInvitationModal() {\n    this.displayInvitationModal = true;\n  }\n\n  @action\n  closeInvitationModal() {\n    this.displayInvitationModal = false;\n  }\n\n  @action\n  closeEditRoleModal() {\n    this.displayEditRoleModal = false;\n  }\n\n  @action\n  closeAddTagModal() {\n    this.displayAddTagModal = false;\n  }\n\n  @action\n  closeRemoveTagsModal() {\n    this.displayRemoveTagsModal = false;\n  }\n\n  @action\n  showEditRole(userInvitations) {\n    this.selectedUserInvitations = userInvitations;\n    this.displayEditRoleModal = true;\n  }\n\n  @action\n  showAddTag(userInvitations) {\n    this.selectedUserInvitations = userInvitations;\n    this.displayAddTagModal = true;\n  }\n\n  @action\n  showRemoveTags(userInvitations) {\n    this.selectedUserInvitations = userInvitations;\n    this.displayRemoveTagsModal = true;\n  }\n\n  /**\n   * @param {{\n   *  userInvitations: Array<import('client/data/models/user-invitation-project').default>\n   *  role: import('client/data/models/role').default\n   * }}\n   */\n  @action\n  async editRole({ userInvitations, role }) {\n    try {\n      await this.serverFetch.fetch(\n        `/api/projects/${this.project.id}/user-invitation-projects/edit-role`,\n        {\n          method: 'POST',\n          body: JSON.stringify({\n            roleId: role.id,\n            invitationIds: extractInvitationIds(userInvitations),\n            userIds: extractUserIds(userInvitations),\n          }),\n        },\n      );\n      this.displayEditRoleModal = false;\n      this.toastr.perform(\n        'success',\n        `Role ${role.name} successfully assigned to ${userInvitations.length} user${\n          userInvitations.length === 1 ? '' : 's'\n        }.`,\n      );\n      await this.search(this.searchParams);\n      await this.project.reload();\n      await this.project.get('users').reload();\n    } catch (e) {\n      console.error(e);\n      this.tracker.captureException(e);\n\n      const message =\n        (isEmberError(e) && getFirstErrorDetail(e))\n        || `There was an error assigning the role ${role.name} to ${userInvitations.length} user${\n          userInvitations.length === 1 ? '' : 's'\n        }.`;\n\n      this.toastr.perform('error', message);\n    }\n  }\n\n  @action\n  async addTag({ tags, userInvitations }) {\n    try {\n      await this.serverFetch.fetch(\n        `/api/projects/${this.project.id}/user-invitation-projects/add-tags`,\n        {\n          method: 'POST',\n          body: JSON.stringify({\n            tags,\n            invitationIds: extractInvitationIds(userInvitations),\n            userIds: extractUserIds(userInvitations),\n          }),\n        },\n      );\n      this.displayAddTagModal = false;\n      this.toastr.perform(\n        'success',\n        `Tag${tags.length === 1 ? '' : 's'} successfully assigned to ${\n          userInvitations.length\n        } user${userInvitations.length === 1 ? '' : 's'}.`,\n      );\n      await this.search(this.searchParams);\n      await this.project.reload();\n      await this.project.get('users').reload();\n    } catch (e) {\n      console.error(e);\n      this.tracker.captureException(e);\n\n      const message =\n        (isEmberError(e) && getFirstErrorDetail(e))\n        || `There was an error assigning ${tags.length === 1 ? 'the tag' : 'tags'} to ${\n          userInvitations.length\n        } user${userInvitations.length === 1 ? '' : 's'}.`;\n\n      this.toastr.perform('error', message);\n    }\n  }\n\n  @action\n  async removeTags({ tags, userInvitations }) {\n    try {\n      await this.serverFetch.fetch(\n        `/api/projects/${this.project.id}/user-invitation-projects/remove-tags`,\n        {\n          method: 'POST',\n          body: JSON.stringify({\n            tags,\n            invitationIds: extractInvitationIds(userInvitations),\n            userIds: extractUserIds(userInvitations),\n          }),\n        },\n      );\n      this.displayRemoveTagsModal = false;\n      this.toastr.perform(\n        'success',\n        `Tag${tags.length === 1 ? '' : 's'} successfully removed from ${\n          userInvitations.length\n        } user${userInvitations.length === 1 ? '' : 's'}.`,\n      );\n      await this.search(this.searchParams);\n      await this.project.reload();\n      await this.project.get('users').reload();\n    } catch (e) {\n      console.error(e);\n      this.tracker.captureException(e);\n\n      const message =\n        (isEmberError(e) && getFirstErrorDetail(e))\n        || `There was an error removing ${tags.length === 1 ? 'the tag' : 'tags'} from ${\n          userInvitations.length\n        } user${userInvitations.length === 1 ? '' : 's'}.`;\n\n      this.toastr.perform('error', message);\n    }\n  }\n\n  @action\n  async copyInvitationLink(userInvitations) {\n    const [userInvitation] = userInvitations;\n    await this.clipboard.copyToClipboard(\n      `https://${this.customDomain.currentDomain}/invitation/${userInvitation.invitationSecret}`,\n    );\n    this.segmentTracker.trackInvitationLinkCopied(this.project.id, this.project.name);\n  }\n\n  createBulkInvitations({ emails, permissionLevel, team, role, tags }) {\n    // NOTICE: Remove duplicates\n    return emails.map((email) =>\n      this.store.createRecord('invitation', {\n        email,\n        permissionLevel,\n        team,\n        role,\n        tags,\n      }),\n    );\n  }\n\n  @action\n  openExportModal() {\n    this.displayingExportModal = true;\n  }\n\n  @action\n  closeExportModal() {\n    this.displayingExportModal = false;\n  }\n\n  @action\n  async exportsUsersHistory(from, to) {\n    const timezone = this.timezone.getTimezone(this.lianaSession.currentEnvironment);\n\n    try {\n      await this.serverFetch.fetch(\n        `/api/projects/${this.project.id}/export-admin-history`,\n        {\n          method: 'POST',\n          credentials: 'include',\n          body: JSON.stringify({ from, to, timezone }),\n        },\n        true,\n      );\n\n      this.toastr.perform('success', 'You will receive the export by email in a few minutes.');\n    } catch (error) {\n      this.tracker.captureException(error);\n      const message = (isEmberError(error) && getFirstErrorDetail(error)) || 'Unexpected error';\n\n      this.toastr.perform('error', `Failed to export users history: ${message}`);\n    } finally {\n      this.closeExportModal();\n    }\n  }\n}\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsUsersIndexRoute extends Route {\n  @service currentUser;\n  @service router;\n\n  beforeModel() {\n    if (this.currentUser.isLoaded && !this.currentUser.can('removeProjectUser')) {\n      this.router.replaceWith('project.project-settings');\n    }\n  }\n\n  async model() {\n    const model = this.modelFor('project.project-settings');\n    const statistics = await model.project.get('statistics').reload();\n\n    return {\n      showScimBanner:\n        (model.isUserProvisioningAvailable\n          && this.currentUser.can('removeProject')\n          && !model.project.hasScimToken)\n        || false,\n      ...model,\n      statistics,\n    };\n  }\n\n  @action\n  didTransition() {\n    // eslint-disable-next-line ember/no-controller-access-in-routes\n    const selectedRole = this.controller.get('selectedRole');\n\n    // This prevents an errored selectedRole value on deleted roles\n    if (\n      selectedRole\n      && (selectedRole.isDestroyed || selectedRole.isDestroying || selectedRole.isDeleted)\n    ) {\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      this.controller.set('selectedRole', null);\n    }\n  }\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    controller.onModelReceived();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout>\\n  {{#if this.displayInvitationModal}}\\n    <UsersSettings::InvitationModal\\n      @close={{this.closeInvitationModal}}\\n      @inviteUsers={{this.inviteUsers}}\\n      @roles={{this.availableRoles}}\\n      @teams={{this.availableTeams}}\\n    />\\n  {{/if}}\\n\\n  {{#if this.displayEditRoleModal}}\\n    <UsersSettings::EditRoleModal\\n      @onClose={{this.closeEditRoleModal}}\\n      @roles={{this.roles}}\\n      @onUpdateRole={{this.editRole}}\\n      @userInvitations={{this.selectedUserInvitations}}\\n    />\\n  {{/if}}\\n\\n  {{#if this.displayAddTagModal}}\\n    <UsersSettings::AddTagModal\\n      @onClose={{this.closeAddTagModal}}\\n      @onAddTag={{this.addTag}}\\n      @userInvitations={{this.selectedUserInvitations}}\\n    />\\n  {{/if}}\\n\\n  {{#if this.displayRemoveTagsModal}}\\n    <UsersSettings::RemoveTagsModal\\n      @onClose={{this.closeRemoveTagsModal}}\\n      @onRemoveTags={{this.removeTags}}\\n      @userInvitations={{this.selectedUserInvitations}}\\n    />\\n  {{/if}}\\n\\n  {{#if this.displayingExportModal}}\\n    {{#if (can \\'access to adminHistory\\')}}\\n      <ModalExportsFromTo\\n        @title=\\\"Export your users history\\\"\\n        @onClose={{this.closeExportModal}}\\n        @exports={{this.exportsUsersHistory}}\\n      >\\n        <p>To export your users history, please select a date range.</p>\\n        <p>You will receive the export by email.</p>\\n      </ModalExportsFromTo>\\n    {{else}}\\n      <Modal::ModalUpgradeToPaidPlan\\n        @description=\\\"Admin history feature provides a detailed export of all users\\' permission updates.\\\"\\n        @featureName=\\\"adminHistory\\\"\\n        @cancel={{this.closeExportModal}}\\n      />\\n    {{/if}}\\n  {{/if}}\\n\\n  {{#if (and this.hasReachedMaxUsers (not this.hasOnlyDevelopmentEnvironment))}}\\n    <PlanLimitBanner @limitValue={{this.userLimit}} @limitedEntity=\\\"user\\\" />\\n  {{/if}}\\n\\n  <Shared::BetaSettingsLayout::Section @title=\\\"Users\\\" @size=\\\"large\\\">\\n    {{#if this.showScimBanner}}\\n      <Shared::Feedback::Notification::NotificationInApp\\n        @canHide={{true}}\\n        @state=\\\"info\\\"\\n        class=\\\"l-users__scim-banner\\\"\\n      >\\n        <div class=\\\"l-users__scim-banner__content\\\">\\n          <div>\\n            SCIM provisioning - which lets you automatically manage users through your Identity\\n            Provider - is available in the\\n            <strong>&nbsp;Security tab</strong>.\\n          </div>\\n          <Shared::Navigation::BetaLinkTo\\n            @type=\\\"info\\\"\\n            @text=\\\"Check it out\\\"\\n            @routeName=\\\"project.project-settings.security\\\"\\n          />\\n        </div>\\n      </Shared::Feedback::Notification::NotificationInApp>\\n    {{/if}}\\n\\n    <UsersSettings::Table\\n      @roles={{this.roles}}\\n      @exportPermissions={{this.exportPermissions}}\\n      @exportUsersHistory={{this.openExportModal}}\\n      @hasOnlyDevelopmentEnvironment={{this.hasOnlyDevelopmentEnvironment}}\\n      @isUserProvisioningDisablingEdition={{this.isUserProvisioningDisablingEdition}}\\n      @editRole={{this.showEditRole}}\\n      @addTag={{this.showAddTag}}\\n      @removeTags={{this.showRemoveTags}}\\n      @copyInvitationLink={{this.copyInvitationLink}}\\n      @openInvitationModal={{this.openInvitationModal}}\\n      @disableInviteButton={{or\\n        this.hasReachedMaxUsers\\n        this.hasOnlyDevelopmentEnvironment\\n        this.isUserProvisioningDisablingEdition\\n      }}\\n      @cancelInvitations={{this.cancelInvitations}}\\n      @search={{this.search}}\\n      @items={{this.userInvitations}}\\n      @currentPage={{this.searchParams.page}}\\n      @itemsCount={{this.allItemsCount}}\\n      @pageCount={{this.pageCount}}\\n      @isLoading={{this.isLoading}}\\n    />\\n  </Shared::BetaSettingsLayout::Section>\\n\\n  <Feature::AiUser::Page />\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/legacy/pods/project/project-settings/users/index/template.hbs' });\n","import { service } from '@ember/service';\n\nimport RestrictedSectionAccessRoute from 'client/legacy/abstract-routes/restricted-section-access-route';\n\nexport default class ProjectRenderingActivityRoute extends RestrictedSectionAccessRoute {\n  @service router;\n\n  beforeModel() {\n    this.router.transitionTo('project.rendering.reports.activity.index');\n  }\n}\n","import type { Router } from '@ember/routing';\nimport type ActionApprovalModel from 'client/data/models/action-approval';\nimport type ActionFeatureService from 'client/features/action/services/feature';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type ApprovalsFiltersState from 'client/legacy/services/state/approvals/filters';\nimport type StoreService from 'client/legacy/services/store';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type ApprovalUIService from 'client/legacy/services/ui/approvals/approval-ui-service';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport { isEqual } from 'lodash';\nimport moment from 'moment';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { getFirstErrorDetail, isEmberError } from 'client/utils/ember-error-util';\n\nexport class ApprovalFilter {\n  label: string;\n  configuration: {\n    name: string;\n    placeholder?: string;\n    multipleValues?: boolean;\n    withSearchInput?: boolean;\n    options?: unknown;\n    namePath?: string;\n    valuePath?: string;\n    overrideSearch?: (search: string) => unknown[];\n  };\n\n  @tracked value: unknown;\n\n  constructor({\n    label,\n    configuration,\n    value,\n  }: {\n    label: string;\n    configuration: ApprovalFilter['configuration'];\n    value: unknown;\n  }) {\n    this.label = label;\n    this.configuration = configuration;\n    this.value = value;\n  }\n}\n\nexport default class ProjectRenderingCollaborationApprovalsController extends Controller {\n  @service session: ForestSessionService;\n  @service lianaSession: LianaSession;\n  @service serverFetch: ServerFetchService;\n  @service router: Router;\n  @service toastr: ToastrService;\n  @service tracker: TrackerService;\n  @service store: StoreService;\n  @service('state/approvals/filters') approvalsFilters: ApprovalsFiltersState;\n  @service('ui/approvals/approval-ui-service') approvalUIService: ApprovalUIService;\n  @service('feature/action') actionFeatureService: ActionFeatureService;\n\n  queryParams = [\n    'page',\n    'actionNames',\n    'teams',\n    'requesters',\n    'creationDateStart',\n    'creationDateEnd',\n    'closingDateStart',\n    'closingDateEnd',\n  ];\n\n  @tracked page = 0;\n  // Filters\n  @tracked actionNames: string[] = [];\n  @tracked teams: number[] = [];\n  @tracked requesters: number[] = [];\n  @tracked creationDateStart: string = null;\n  @tracked creationDateEnd: string = null;\n  @tracked closingDateStart: string = null;\n  @tracked closingDateEnd: string = null;\n\n  @tracked isLoading = false;\n\n  @alias('model.approvalsCount') approvalsCount: number;\n  @alias('model.approvals') approvals: ActionApprovalModel[];\n  @alias('model.state') state: 'created' | 'to-review' | 'history' | 'warning';\n  @alias('model.approvalsPerPage') approvalsPerPage: number;\n  @alias('model.filterOptions.availableActionNames') availableActionNames?: string[];\n  @alias('model.filterOptions.availableTeams') availableTeams?: number[];\n  @alias('model.filterOptions.availableRequesters') availableRequesters?: {\n    internalId: number;\n    email: string;\n  }[];\n\n  get isHistoryList() {\n    return this.state === 'history';\n  }\n\n  get currentPage() {\n    return this.page ? this.page : 1;\n  }\n\n  get title() {\n    switch (this.state) {\n      case 'created':\n        return 'Created';\n      case 'to-review':\n        return 'To Review';\n      case 'history':\n        return 'History';\n      case 'warning':\n        return 'Warnings';\n      default:\n        return null;\n    }\n  }\n\n  get subTitle() {\n    if (this.isHistoryList) return undefined;\n\n    return `${this.approvalsCount} ${this.subtitleText}`;\n  }\n\n  private get subtitleText() {\n    switch (this.state) {\n      case 'created':\n        return 'pending approval requests';\n      case 'to-review':\n        return 'requests to approve or decline';\n      case 'warning':\n        return 'requests require immediate action';\n      default:\n        return null;\n    }\n  }\n\n  get beyondLastHistoryPage() {\n    return this.isHistoryList && !this.approvals.length && this.currentPage > 1;\n  }\n\n  get emptyStateSubtitle() {\n    switch (this.state) {\n      case 'created':\n        return 'No approval request';\n      case 'to-review':\n        return 'No approval requests to review';\n      case 'history':\n        if (this.beyondLastHistoryPage)\n          return `No approval request history beyond page ${this.currentPage - 1}`;\n        return 'No past approval requests';\n      default:\n        return null;\n    }\n  }\n\n  get isNextButtonDisabled() {\n    return this.isHistoryList && this.approvals.length < this.approvalUIService.APPROVALS_PER_PAGE;\n  }\n\n  get numberOfPages(): number | undefined {\n    if (this.isHistoryList) return undefined;\n\n    return Math.ceil(this.approvalsCount / this.approvalsPerPage);\n  }\n\n  @action\n  async openDetails(approval: ActionApprovalModel) {\n    const okToExit = await this.actionFeatureService.cancelAction();\n    if (okToExit) {\n      if (!approval.isBeingPerformed)\n        return this.router\n          .transitionTo('project.rendering.collaboration.approvals.details', approval.id)\n          .followRedirects();\n    }\n\n    return Promise.resolve();\n  }\n\n  @action\n  async exportApprovalLogs(from: string, to: string) {\n    try {\n      await this.serverFetch.fetch(\n        `/api/action-approvals/export-approvals`,\n        {\n          method: 'POST',\n          credentials: 'include',\n          body: JSON.stringify({\n            from: moment(from).startOf('day').toISOString(),\n            to: moment(to).endOf('day').toISOString(),\n          }),\n          headers: {\n            'forest-rendering-id': `${this.lianaSession.currentRenderingId}`,\n            // TODO forest-project-id & forest-environment-id should be removed\n            'forest-project-id': this.lianaSession.currentProject?.id,\n            'forest-environment-id': this.lianaSession.rendering?.environment?.id,\n          },\n        },\n        true,\n      );\n\n      this.toastr.perform(\n        ToastrTypeEnum.Success,\n        'You will receive the export by email in a few minutes.',\n      );\n    } catch (error) {\n      this.tracker.captureException(error as Error);\n      const message = (isEmberError(error) && getFirstErrorDetail(error)) || 'Unexpected error';\n\n      this.toastr.perform(ToastrTypeEnum.Error, `Failed to export approvals: ${message}`);\n    }\n  }\n\n  // --- PAGINATION ---\n\n  @action\n  accessPage(pageNumber: number) {\n    if (pageNumber < 1) return;\n    if (pageNumber > this.numberOfPages) return;\n\n    this.page = pageNumber;\n  }\n\n  @action\n  back() {\n    if (this.page > 1) {\n      this.page -= 1;\n    }\n  }\n\n  @action\n  next() {\n    if (this.page < this.numberOfPages || this.isHistoryList) {\n      this.page += 1;\n    }\n  }\n\n  @action\n  applyFilters({\n    Action,\n    Team,\n    Requester,\n    'Creation date': creationDate,\n    'Closing date': closingDate,\n  }: {\n    Action?: string[];\n    Team?: number[];\n    Requester?: string[];\n    'Creation date'?: { from: string; to: string };\n    'Closing date'?: { from: string; to: string };\n  }) {\n    if (Action) this.actionNames = Action;\n    if (Team) this.teams = Team;\n\n    if (Requester) {\n      this.requesters = Requester.map(\n        (requesterEmail) =>\n          this.availableRequesters?.find(({ email }) => requesterEmail === email)?.internalId,\n      ).filter(Boolean);\n    }\n\n    if (creationDate) {\n      this.creationDateStart = creationDate.from;\n      this.creationDateEnd = creationDate.to;\n    }\n\n    if (closingDate) {\n      this.closingDateStart = closingDate.from;\n      this.closingDateEnd = closingDate.to;\n    }\n\n    this.savingFilters();\n  }\n\n  @action\n  discardFilters() {\n    this.resetFilters();\n    this.savingFilters();\n  }\n\n  @action\n  async refresh() {\n    this.isLoading = true;\n    this.model = await this.approvalUIService.model(this);\n    this.isLoading = false;\n  }\n\n  // TODO: add the reset when we add a new filter type\n  @action\n  resetFilters() {\n    /**\n     * Due to ember sticky query params, clearing filters should set the query param values to null or empty array\n     * If not, shared links will be \"persistent\" even after switching between approval states\n     */\n    this.actionNames = [];\n    this.teams = [];\n    this.requesters = [];\n\n    this.creationDateStart = null;\n    this.creationDateEnd = null;\n\n    this.closingDateStart = null;\n    this.closingDateEnd = null;\n  }\n\n  private savingFilters() {\n    const newFilters = {\n      teams: this.teams,\n      actionNames: this.actionNames,\n      requesters: this.requesters,\n      creationDateStart: this.creationDateStart,\n      creationDateEnd: this.creationDateEnd,\n      closingDateStart: this.closingDateStart,\n      closingDateEnd: this.closingDateEnd,\n    };\n\n    // Only save and reset page when there's actually new filters\n    if (isEqual(this.approvalsFilters[this.state], newFilters)) return;\n\n    this.approvalsFilters[this.state] = newFilters;\n\n    // We should reset page when applying new filters\n    this.page = 1;\n  }\n\n  get filters(): ApprovalFilter[] {\n    if (['to-review', 'warning'].includes(this.state))\n      return [this.actionsFilter, this.teamsFilter, this.requestersFilter, this.creationDateFilter];\n\n    if (this.state === 'created')\n      return [this.actionsFilter, this.teamsFilter, this.creationDateFilter];\n\n    return [this.creationDateFilter, this.closingDateFilter];\n  }\n\n  get actionsFilter() {\n    return new ApprovalFilter({\n      label: 'Action',\n      configuration: {\n        name: 'dropdown',\n        placeholder: 'Select an action',\n        multipleValues: true,\n        withSearchInput: true,\n        options: this.availableActionNames,\n      },\n      value: [...this.actionNames],\n    });\n  }\n\n  get teamsFilter() {\n    const teamsOptions = this.store\n      .peekAll('team')\n      .filter(\n        ({ id }) =>\n          this.availableTeams?.some((teamId) => `${teamId}` === id)\n          || this.teams?.some((teamId) => `${teamId}` === id), // We want to keep teams that are no longer available within filters\n      )\n      .map(({ id, name }) => ({ id: Number(id), name }));\n\n    return new ApprovalFilter({\n      label: 'Team',\n      configuration: {\n        name: 'dropdown',\n        placeholder: 'Select a team',\n        multipleValues: true,\n        withSearchInput: true,\n        namePath: 'name',\n        valuePath: 'id',\n        options: teamsOptions,\n      },\n      value: [...this.teams],\n    });\n  }\n\n  get requestersFilter() {\n    return new ApprovalFilter({\n      label: 'Requester',\n      configuration: {\n        name: 'users',\n        placeholder: 'Search for a user',\n        // Local search to overcome to many issues with assignee\n        overrideSearch: (search: string) =>\n          (\n            (search\n              ? this.availableRequesters?.filter(({ email }) => email?.includes(search))\n              : this.availableRequesters) || []\n          )\n            .slice(0, 10)\n            .map(({ email }) => ({ email, fullNameAndEmail: email })),\n      },\n      value: this.requesters.map(\n        (id) => this.availableRequesters?.find(({ internalId }) => id === internalId)?.email,\n      ),\n    });\n  }\n\n  get creationDateFilter() {\n    return new ApprovalFilter({\n      label: 'Creation date',\n      configuration: {\n        name: 'date',\n      },\n      value: {\n        from: this.creationDateStart ? `${this.creationDateStart}` : null,\n        to: this.creationDateEnd ? `${this.creationDateEnd}` : null,\n      },\n    });\n  }\n\n  get closingDateFilter() {\n    return {\n      label: 'Closing date',\n      configuration: {\n        name: 'date',\n      },\n      value: {\n        from: this.closingDateStart ? `${this.closingDateStart}` : null,\n        to: this.closingDateEnd ? `${this.closingDateEnd}` : null,\n      },\n    };\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type ActionApprovalModel from 'client/data/models/action-approval';\nimport type ActionApprovalService from 'client/legacy/services/action-approval-service';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectRenderingCollaborationApprovalsDetailsController extends Controller {\n  @service router: RouterService;\n  @service actionApprovalService: ActionApprovalService;\n  @service eventBus: EventBusService;\n\n  @tracked displayApproveReasonModal = false;\n  @tracked displayRejectReasonModal = false;\n\n  @alias('model.actionApproval') actionApproval: ActionApprovalModel;\n\n  @action\n  async approve() {\n    // Send the chat message if any\n    this.triggerEventChatSendMessage();\n    await this.actionApprovalService.approve(this.actionApproval);\n  }\n\n  @action\n  async reject() {\n    // Send the chat message if any\n    this.triggerEventChatSendMessage();\n    await this.actionApprovalService.reject(this.actionApproval);\n  }\n\n  @action\n  async sendApprovalMessage(messageContent: string) {\n    await this.actionApprovalService.createApprovalMessage({\n      messageContent,\n      approval: this.actionApproval,\n    });\n  }\n\n  @action\n  async archiveApprovalWarning() {\n    // Send the chat message if any\n    this.triggerEventChatSendMessage();\n    await this.actionApprovalService.resolveApprovalWarning(this.actionApproval, 'failed');\n  }\n\n  @action\n  async ignoreApprovalWarning() {\n    // Send the chat message if any\n    this.triggerEventChatSendMessage();\n    await this.actionApprovalService.resolveApprovalWarning(this.actionApproval, 'ignore');\n  }\n\n  @action\n  async closeDetails() {\n    await this.router.transitionTo('project.rendering.collaboration.approvals').followRedirects();\n  }\n\n  private triggerEventChatSendMessage() {\n    this.eventBus.trigger('chat.sendMessage');\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type ActionApprovalModel from 'client/data/models/action-approval';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ApprovalStateType } from 'client/legacy/services/ui/approvals/approval-ui-service';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { ActionApprovalStatusEnum } from 'client/data/models/action-approval';\n\ntype Model = {\n  actionApproval: ActionApprovalModel;\n};\n\nconst APPROVAL_STATUS_TO_STATES: Record<ActionApprovalStatusEnum, ApprovalStateType[]> = {\n  [ActionApprovalStatusEnum.Approved]: ['history'],\n  [ActionApprovalStatusEnum.Rejected]: ['history'],\n  [ActionApprovalStatusEnum.Failed]: ['history'],\n  [ActionApprovalStatusEnum.Warning]: ['warning'],\n  // Important to leave the to-review state in the first position as it will be used to redirect\n  [ActionApprovalStatusEnum.InProgress]: ['to-review', 'created'],\n  [ActionApprovalStatusEnum.Pending]: ['to-review', 'created'],\n};\n\nexport default class ProjectRenderingCollaborationApprovalsDetailsRoute extends Route<\n  {\n    actionApproval: ActionApprovalModel;\n    error?: Error;\n  },\n  { approval_id: string }\n> {\n  @service store: StoreService;\n  @service router: RouterService;\n\n  async model({ approval_id: approvalId }: { approval_id: string }) {\n    // NOTICE: This is required to query the inputs\n    // for obvious performance reason we only load inputs on single GET\n    const actionApproval = await this.store.findRecord('action-approval', approvalId, {\n      reload: true,\n    });\n\n    return {\n      actionApproval,\n    };\n  }\n\n  async afterModel(model: Model, transition: Transition) {\n    const { state } = transition.to.parent.params as { state: ApprovalStateType };\n\n    if (!APPROVAL_STATUS_TO_STATES[model.actionApproval.status].includes(state)) {\n      await this.router.transitionTo(\n        'project.rendering.collaboration.approvals.details',\n        APPROVAL_STATUS_TO_STATES[model.actionApproval.status][0],\n        model.actionApproval.id,\n      );\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<SidePanel\\n  @title=\\\"Approval details\\\"\\n  @closeButton={{true}}\\n  @closeAction={{this.closeDetails}}\\n  @exceptSelector=\\\".js-close-detail-exception\\\"\\n>\\n  {{#if this.actionApproval}}\\n    <Collaboration::Approval::Details\\n      @actionApproval={{this.actionApproval}}\\n      @approve={{this.approve}}\\n      @reject={{this.reject}}\\n      @failed={{this.archiveApprovalWarning}}\\n      @ignore={{this.ignoreApprovalWarning}}\\n      @sendMessageAction={{this.sendApprovalMessage}}\\n    />\\n  {{else}}\\n    <Collaboration::CollaborationApprovalEmptyState @subtitle=\\\"Not found\\\" />\\n  {{/if}}\\n</SidePanel>\\n', { moduleName: 'client/legacy/pods/project/rendering/collaboration/approvals/details/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type ProjectRenderingCollaborationApprovalsController from 'client/legacy/pods/project/rendering/collaboration/approvals/controller';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\nimport type ApprovalUIService from 'client/legacy/services/ui/approvals/approval-ui-service';\nimport type {\n  ApprovalRouteParamsType,\n  ApprovalsUIServiceModel,\n} from 'client/legacy/services/ui/approvals/approval-ui-service';\n\nimport { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { EnvironmentsFeaturesEnum } from 'client/data/models/plan';\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: EnvironmentsFeaturesEnum.Approval,\n  redirectionIfFeatureNotActivated: 'project.rendering.collaboration.messages',\n})\nexport default class ProjectRenderingCollaborationApprovalsRoute extends Route<\n  ApprovalsUIServiceModel,\n  ApprovalRouteParamsType\n> {\n  queryParams = {\n    page: {\n      refreshModel: true,\n    },\n    actionNames: {\n      refreshModel: true,\n    },\n    teams: {\n      refreshModel: true,\n    },\n    requesters: {\n      refreshModel: true,\n    },\n    creationDateStart: {\n      refreshModel: true,\n    },\n    creationDateEnd: {\n      refreshModel: true,\n    },\n    closingDateStart: {\n      refreshModel: true,\n    },\n    closingDateEnd: {\n      refreshModel: true,\n    },\n  };\n\n  @service router: RouterService;\n\n  @service store: StoreService;\n\n  @service lianaSession: LianaSessionService;\n\n  @service('ui/approvals/approval-ui-service') approvalUIService: ApprovalUIService;\n\n  async beforeModel(transition: Transition) {\n    await super.beforeModel(transition);\n    // transition.to.name is project.rendering.collaboration.approvals.index\n    const { state } = transition.to.parent.params;\n\n    if (\n      transition.to.parent.name === 'project.rendering.collaboration.approvals'\n      && !['created', 'to-review', 'history', 'warning'].includes(state)\n    ) {\n      return this.router.transitionTo('project.rendering.collaboration.approvals', 'history');\n    }\n\n    // Doesn't allow development environment\n    if (this.lianaSession.currentEnvironment?.isDevelopment)\n      return this.router.transitionTo('project.rendering.collaboration.messages');\n\n    return Promise.resolve();\n  }\n\n  async model(params: ApprovalRouteParamsType) {\n    // Delegate to UI service\n    return this.approvalUIService.model(params);\n  }\n\n  async afterModel(model: ApprovalsUIServiceModel) {\n    // We have the real approvalsCount when using history and we encounter an issue with sticky params with the following transition\n    if (model.state !== 'history' && model.approvalsCount && !model.approvals.length) {\n      await this.router.transitionTo({ queryParams: { page: 1 } });\n    }\n  }\n\n  @action\n  loading(transition: Transition) {\n    if (\n      !transition.to.name.endsWith('approvals.details')\n      && !transition.from?.name.endsWith('approvals.details')\n    ) {\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      const controller = this.controllerFor(\n        this.routeName,\n      ) as ProjectRenderingCollaborationApprovalsController;\n\n      controller.isLoading = true;\n\n      transition.promise.finally(() => {\n        controller.isLoading = false;\n      });\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Collaboration::CollaborationLayout>\\n  {{outlet}}\\n\\n  <Collaboration::CollaborationHeader\\n    @title={{this.title}}\\n    @subtitle={{this.subTitle}}\\n    data-test-controller-project-rendering-collaboration-approvals-header\\n  >\\n    <:right-buttons>\\n\\n      <Shared::Button::BetaButton\\n        @type=\\\"ghost\\\"\\n        @iconName=\\\"refresh\\\"\\n        @withoutCallback={{true}}\\n        @action={{this.refresh}}\\n      />\\n\\n      {{#if this.isHistoryList}}\\n        <Collaboration::Approval::Export @exportApprovalLogs={{this.exportApprovalLogs}} />\\n      {{/if}}\\n\\n      {{#if this.filters}}\\n        <Collaboration::Approval::Filters\\n          @filters={{this.filters}}\\n          @applyFilters={{this.applyFilters}}\\n          @discardFilters={{this.discardFilters}}\\n        />\\n      {{/if}}\\n\\n    </:right-buttons>\\n  </Collaboration::CollaborationHeader>\\n\\n  {{#if this.isLoading}}\\n    <Layout::LayoutLoader @type=\\\"data\\\" />\\n  {{else if (or this.approvals this.beyondLastHistoryPage)}}\\n    <div class=\\\"l-collaboration-content\\\">\\n      {{#if this.approvals}}\\n        {{component\\n          (concat \\'collaboration/approval/action-approvals/\\' this.state)\\n          openDetails=this.openDetails\\n          approvals=this.approvals\\n        }}\\n      {{else}}\\n        <Collaboration::CollaborationApprovalEmptyState @subtitle={{this.emptyStateSubtitle}} />\\n      {{/if}}\\n    </div>\\n\\n    <div class=\\\"l-collaboration-content__footer\\\">\\n      <Shared::BetaPaginator\\n        @currentPage={{one-way this.currentPage}}\\n        @numberOfPages={{this.numberOfPages}}\\n        @selectPage={{this.accessPage}}\\n        @isNextButtonDisabledEvenIfUnlimited={{this.isNextButtonDisabled}}\\n        @back={{this.back}}\\n        @next={{this.next}}\\n        data-test-beta-new-paginator\\n      />\\n    </div>\\n  {{else}}\\n    <Collaboration::CollaborationApprovalEmptyState @subtitle={{this.emptyStateSubtitle}} />\\n  {{/if}}\\n\\n</Collaboration::CollaborationLayout>\\n', { moduleName: 'client/legacy/pods/project/rendering/collaboration/approvals/template.hbs' });\n","import type ApprovalUIService from 'client/legacy/services/ui/approvals/approval-ui-service';\n\nimport Controller from '@ember/controller';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingCollaborationController extends Controller {\n  @service('ui/approvals/approval-ui-service') approvalUIService: ApprovalUIService;\n}\n","import Component from '@ember/component';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\n@classNames('c-sidepanel-title', 'c-sidepanel-title--box-shadow')\n@classNameBindings('boxShadow:c-sidepanel-title--box-shadow')\nexport default class SidePanelTitle extends Component {\n  static propTypes = {\n    boxShadow: PropTypes.bool,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Collaboration::CollaborationHeader\\n  @title=\\\"Collaboration\\\"\\n  data-test-controller-project-rendering-collaboration-header\\n/>\\n', { moduleName: 'client/legacy/pods/project/rendering/collaboration/index/template.hbs' });\n","import type { Router } from '@ember/routing';\nimport type CurrentOrganizationService from 'client/legacy/services/current-organization';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type RouteHistoryService from 'client/legacy/services/route-history';\nimport type SessionService from 'ember-simple-auth/services/session';\n\nimport Controller from '@ember/controller';\nimport { service } from '@ember/service';\n\nimport config from 'client/config/environment';\n\nexport default class ProjectRenderingCollaborationMessagesController extends Controller {\n  @service public readonly router: Router;\n  @service public readonly currentOrganization: CurrentOrganizationService;\n  @service public readonly routeHistory: RouteHistoryService;\n  @service public readonly session: SessionService;\n  @service public readonly lianaSession: LianaSessionService;\n  @service public readonly currentUser: CurrentUserService;\n\n  get apiBaseUrl() {\n    return `${config.APP.apiServerHost}/api`;\n  }\n}\n","import Route from '@ember/routing/route';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'collaboration',\n  redirectionIfFeatureNotActivated: 'project.rendering.collaboration.messages.preview',\n})\nexport default class ProjectRenderingCollaborationMessagesCreatedRoute extends Route {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{!\\n  Empty template - React MFE handles all content\\n  This route exists only for Ember routing, not for rendering\\n}}\\n', { moduleName: 'client/legacy/pods/project/rendering/collaboration/messages/created/template.hbs' });\n","import Route from '@ember/routing/route';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'collaboration',\n  redirectionIfFeatureNotActivated: 'project.rendering.collaboration.messages.preview',\n  redirectionIfFeatureActivated: 'project.rendering.collaboration.messages.created',\n})\nexport default class ProjectRenderingCollaborationMessagesIndexRoute extends Route {}\n","import Route from '@ember/routing/route';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'collaboration',\n  redirectionIfFeatureNotActivated: 'project.rendering.collaboration.messages.preview',\n})\nexport default class ProjectRenderingCollaborationMessagesMentionsRoute extends Route {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{!\\n  Empty template - React MFE handles all content\\n  This route exists only for Ember routing, not for rendering\\n}}\\n', { moduleName: 'client/legacy/pods/project/rendering/collaboration/messages/mentions/template.hbs' });\n","import Route from '@ember/routing/route';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'collaboration',\n  redirectionIfFeatureActivated: 'project.rendering.collaboration.index',\n})\nexport default class ProjectRenderingCollaborationMessagesPreviewRoute extends Route {\n  titleToken = 'Premium Feature';\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{!\\n  Empty template - React MFE handles all content\\n  This route exists only for Ember routing, not for rendering\\n}}\\n', { moduleName: 'client/legacy/pods/project/rendering/collaboration/messages/preview/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<MicroFrontend::ReactHost\\n  @mfe=\\\"notes-listing-mfe\\\"\\n  @props={{hash\\n    token=this.session.data.authenticated.token\\n    projectId=this.lianaSession.currentProject.id\\n    environmentId=this.lianaSession.currentEnvironment.id\\n    renderingId=this.lianaSession.currentRenderingId\\n    teamId=this.lianaSession.currentTeam.id\\n    userId=this.currentUser.id\\n    apiBaseUrl=this.apiBaseUrl\\n    projectName=this.lianaSession.currentProject.name\\n    teamName=this.lianaSession.currentTeam.name\\n    environmentName=this.lianaSession.currentEnvironment.name\\n  }}\\n/>\\n', { moduleName: 'client/legacy/pods/project/rendering/collaboration/messages/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport { TeamDeactivatableFeatureEnum } from 'client/data/models/team';\nimport RestrictedSectionAccessRoute from 'client/legacy/abstract-routes/restricted-section-access-route';\n\nexport default class ProjectRenderingCollaborationRoute extends RestrictedSectionAccessRoute {\n  titleToken = 'Collaboration';\n\n  @service router;\n  @service('feature/team') teamFeatureService;\n\n  @action\n  goToRendering() {\n    this.router.transitionTo('project.rendering');\n  }\n\n  beforeModel(transition) {\n    super.beforeModel(transition);\n\n    let restrictedFeature = transition.to?.name?.match(/(message|inbox)/)?.[0];\n    if (restrictedFeature === 'message') {\n      restrictedFeature = TeamDeactivatableFeatureEnum.Collaboration;\n    }\n\n    if (restrictedFeature) {\n      this.teamFeatureService.redirectToAccessibleCollaborationFeature(restrictedFeature);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-insert this.approvalUIService.loadTotalCounts}}\\n<Shared::PortalContent @for=\\\"project-side-menu\\\">\\n  <SideMenu::Collaboration\\n    @rendering={{this.model.rendering}}\\n    class=\\\"l-project-rendering-view__side-menu\\\"\\n  />\\n</Shared::PortalContent>\\n\\n<div class=\\\"l-project-rendering-view__content\\\">\\n  {{outlet}}\\n</div>\\n', { moduleName: 'client/legacy/pods/project/rendering/collaboration/template.hbs' });\n","import { getOwner } from '@ember/application';\nimport Controller, { inject as controller } from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { later } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport { pathToRenderingBuilder } from 'client/data/models/rendering';\nimport { KEY, isCommandPlusKeyPressed } from 'client/utils/keyboard';\nimport { getSettingsRoute, isSettingsRoute } from 'client/utils/route-utils';\n\nexport default class ProjectRenderingController extends Controller {\n  @controller('application') appController;\n\n  @service collectionsManager;\n  @service segment;\n  /** @type {import('client/legacy/services/segment-tracker').default} */\n  @service segmentTracker;\n  @service currentUser;\n  @service eventBus;\n  @service lianaSession;\n  @service lianaSessionOidc;\n  @service router;\n  /** @type {import('client/legacy/services/liana-session').default} */\n  @service session;\n  @service redirection;\n  @service store;\n\n  isNotificationBarEnabled = false;\n  refreshTrialCount = 0;\n  showEnvironmentSwitch = false;\n  /** @type {import('client/data/models/notification').default} */\n  notification;\n  /** @type {boolean} */\n  hideLoginPopup;\n  @tracked isModalSearchDisplayed = false;\n\n  /** @type {import('client/data/models/rendering').default} */\n  @alias('model.rendering') rendering;\n  @alias('model.user') user;\n  @alias('rendering.environment.isProduction') isEnvironmentProduction;\n  @alias('lianaSession.currentProject') project;\n  @alias('project.isPlanLimitationBlocked') isProjectLimitationReached;\n  @alias('session.ipRejected') displayAccessDenied;\n  @alias('project.billing.currentPlan.maxUsers') currentPlanSeatsLimitations;\n\n  init(...args) {\n    super.init(...args);\n    this.eventBus.on('openGlobalSearchModal', this.handleOpenGlobalSearchModal);\n  }\n\n  willDestroyElement() {\n    super.willDestroyElement();\n    this.eventBus.off('openGlobalSearchModal', this.handleOpenGlobalSearchModal);\n  }\n\n  @action\n  handleOpenGlobalSearchModal() {\n    if (this.isDestroyed || this.isDestroying) return;\n\n    this.isModalSearchDisplayed = true;\n  }\n\n  @computed('router.currentRouteName')\n  get isSettingsRoute() {\n    return isSettingsRoute(this, this.router.currentRouteName);\n  }\n\n  @computed('isSettingsRoute', 'router.currentRouteName')\n  get settingsDisplayName() {\n    const settingsRoute = getSettingsRoute(this, this.router.currentRouteName);\n    return settingsRoute && settingsRoute.settingsDisplayName;\n  }\n\n  @computed('router.currentRouteName')\n  get targetRoute() {\n    const owner = getOwner(this);\n    const { currentRouteName } = this.router;\n    return owner.lookup(`route:${currentRouteName}`);\n  }\n\n  @computed('isEnvironmentProduction', 'isNotificationBarEnabled')\n  get marginTopClass() {\n    if (this.isNotificationBarEnabled || !this.isEnvironmentProduction) {\n      if (this.isEnvironmentProduction) {\n        return 'l-notification';\n      }\n      if (!this.isNotificationBarEnabled) {\n        return 'l-indicator';\n      }\n      return 'l-indicator-and-notification';\n    }\n    return '';\n  }\n\n  @computed(\n    'isProjectLimitationReached',\n    'isProjectSettingsRoute',\n    'rendering.environment.isBlocked',\n    'rendering.team.isBlocked',\n    'user.isBlocked',\n    'user.role.isBlocked',\n  )\n  get displayUpgradePopup() {\n    const isBlocked =\n      this.user.isBlocked\n      || this.rendering.environment.isBlocked\n      || this.user.role?.isBlocked\n      || this.rendering.team.isBlocked;\n    return isBlocked || (this.isProjectLimitationReached && !this.isProjectSettingsRoute);\n  }\n\n  @computed('isUserAdmin')\n  get upgradePopupTitle() {\n    if (this.isUserAdmin) {\n      return \"You've reached the current plan's limitations\";\n    }\n    return \"You can't access this project\";\n  }\n\n  @computed(\n    'isUserAdmin',\n    'rendering.environment.isBlocked',\n    'user.isBlocked',\n    'user.role.isBlocked',\n  )\n  get upgradePopupBody() {\n    if (this.isUserAdmin) {\n      let blockedElement;\n      if (this.user.isBlocked) blockedElement = 'users';\n      else if (this.rendering.environment.isBlocked) blockedElement = 'environments';\n      else if (this.user.role?.isBlocked) blockedElement = 'roles';\n      else blockedElement = 'teams';\n      return `You have more ${blockedElement} than allowed in your plan. Please upgrade to recover access.`;\n    }\n    return \"Please, ask your project's admin to upgrade his subscription to the next plan.\";\n  }\n\n  @computed(\n    'model.accessibleEnvironments.length',\n    'rendering.environment.isBlocked',\n    'user.isBlocked',\n  )\n  get displayEnvironmentPicker() {\n    return (\n      this.model.accessibleEnvironments.length > 0\n      && this.rendering.environment.isBlocked\n      && !this.user.isBlocked\n    );\n  }\n\n  @computed(\n    'displayEnvironmentPicker',\n    'model.accessibleTeams.length',\n    'rendering.team.isBlocked',\n    'user.role.isBlocked',\n    'user.isBlocked',\n  )\n  get displayTeamPicker() {\n    return (\n      this.model.accessibleTeams.length > 0\n      && this.rendering.team.isBlocked\n      && !this.displayEnvironmentPicker\n      && !this.user.role?.isBlocked\n      && !this.user.isBlocked\n    );\n  }\n\n  @computed('rendering.collectionsSorted.@each.onlyForRelationships')\n  get collections() {\n    return this.rendering.collectionsSorted.filter(\n      (collection) => collection.get('onlyForRelationships') === false,\n    );\n  }\n\n  @computed('router.currentRouteName')\n  get isProjectSettingsRoute() {\n    return this.router.currentRouteName.includes('project.project-settings');\n  }\n\n  @computed('router.currentRouteName')\n  get isDataRoute() {\n    return this.router.currentRouteName.includes('project.rendering.data');\n  }\n\n  @computed('rendering.hasNoCollections', 'isDataRoute')\n  get hideCollectionsNavigation() {\n    return this.rendering.hasNoCollections && this.isDataRoute;\n  }\n\n  @computed('target.url')\n  get authenticatedToLiana() {\n    return !this.target?.url.includes('/login');\n  }\n\n  @computed('lianaSession.currentProject.id', 'projects.[]')\n  get otherProjects() {\n    return this.projects.filter((project) => project.id !== this.lianaSession.currentProject.id);\n  }\n\n  @computed('currentUser.editMode')\n  get editModeClass() {\n    // eslint-disable-next-line ember/no-get\n    return this.get('currentUser.editMode') ? 'primary' : 'secondary';\n  }\n\n  get hideContentWhileLoading() {\n    return (\n      this.isComputingRendering\n      || (!this.lianaSession.isAuthenticated() && this.rendering.isComputing)\n    );\n  }\n\n  get isComputingRendering() {\n    if (\n      this.rendering.environment?.apiEndpoint\n      && this.rendering.isComputing\n      && this.lianaSession.isAuthenticated()\n    ) {\n      later(() => {\n        const hadNoCollections = this.store.peekAll('collection').length === 0;\n\n        this.store.findRecord('rendering', this.rendering.id, { reload: true }).then(async () => {\n          if (this.rendering.hasCollections) {\n            if (hadNoCollections) {\n              await this.collectionsManager.registerNewCollections(this.rendering);\n            }\n            this.targetRoute.refresh();\n          } else {\n            this.incrementProperty('refreshTrialCount');\n          }\n        });\n      }, 5000);\n      return true;\n    }\n    return false;\n  }\n\n  @computed('hideLoginPopup', 'lianaSession.loginDisabled')\n  get showLoginPopup() {\n    return !this.hideLoginPopup && !this.lianaSession.loginDisabled;\n  }\n\n  @computed('user.permissionLevel')\n  get isUserAdmin() {\n    return this.user.permissionLevel === 'admin';\n  }\n\n  @action\n  hideProjectSettingsMenu() {\n    this.set('showEnvironmentSwitch', false);\n  }\n\n  @action\n  toggleProjectSettingsMenu() {\n    this.toggleProperty('showEnvironmentSwitch');\n  }\n\n  @action\n  hideUserSettingsMenu() {\n    this.set('showUserSettingsMenu', false);\n  }\n\n  @action\n  toggleUserSettingsMenu() {\n    this.toggleProperty('showUserSettingsMenu');\n  }\n\n  @action\n  hideNavigationMenu() {\n    this.set('showNavigationMenu', false);\n  }\n\n  @action\n  toggleNavigationMenu() {\n    this.toggleProperty('showNavigationMenu');\n  }\n\n  initEventListeners() {\n    document.addEventListener('keydown', this._onKeyDown);\n  }\n\n  destroyEventListeners() {\n    document.removeEventListener('keydown', this._onKeyDown);\n  }\n\n  @action\n  _onKeyDown(event) {\n    if (isCommandPlusKeyPressed(event, KEY.KEY_K)) {\n      event.preventDefault();\n      this.isModalSearchDisplayed = true;\n    }\n  }\n\n  @action\n  async switchEnvironment(environment) {\n    if (environment.name !== this.rendering.environment.name) {\n      this.lianaSession.disableLogin();\n      await this.lianaSessionOidc.invalidateAll();\n      const renderingUrl = pathToRenderingBuilder(\n        this.lianaSession.currentProject.name,\n        environment.name,\n        this.rendering.team.name,\n      );\n      this.redirection.redirectToHref(renderingUrl);\n    }\n  }\n\n  @action\n  async switchTeam(team) {\n    if (team.name !== this.rendering.team.name) {\n      this.lianaSession.disableLogin();\n      await this.lianaSessionOidc.invalidateAll();\n      const renderingUrl = pathToRenderingBuilder(\n        this.project.name,\n        this.rendering.environment.name,\n        team.name,\n      );\n      this.redirection.redirectToHref(renderingUrl);\n    }\n  }\n}\n","import type RenderingModel from 'client/data/models/rendering';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nexport default class ProjectRenderingDashboardController extends Controller {\n  @service('feature/folder') private folderFeatureService: FolderFeatureService;\n\n  @service('shared/state/user-preference') public userPreferenceState: UserPreferenceState;\n\n  declare model: {\n    rendering: RenderingModel;\n  };\n\n  get rendering() {\n    return this.model.rendering;\n  }\n\n  get hasDashboards() {\n    return this.rendering.hasDashboards;\n  }\n\n  @action\n  onDarkModeEnabledChange() {\n    const computedStyle = getComputedStyle(document.body);\n    window.Chart.defaults.global.defaultFontColor = computedStyle.getPropertyValue(\n      '--color-beta-on-surface_light',\n    );\n  }\n}\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDashboardIndexController extends Controller {\n  @service currentUser;\n  @service router;\n\n  @action\n  handleCreateFirstDashboard() {\n    this.currentUser.editMode = true;\n    if (this.currentUser.editMode) this.router.transitionTo('project.rendering.dashboard.new');\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDashboardIndexRoute extends Route {\n  @service router;\n\n  beforeModel() {\n    const { rendering } = this.modelFor('project.rendering');\n    const dashboard = rendering.get('dashboardsSorted.firstObject');\n\n    if (dashboard) {\n      this.router.transitionTo('project.rendering.dashboard.view', dashboard.id);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaEmptyState\\n  @imageIdentifier=\\\"dashboard\\\"\\n  @textButton=\\\"Create your first Dashboard\\\"\\n  @onClickButton={{this.handleCreateFirstDashboard}}\\n  @shouldHideButton={{not this.currentUser.canEditLayout}}\\n>\\n  Dashboard is where you will create charts to monitor your KPIs\\n</BetaEmptyState>\\n', { moduleName: 'client/legacy/pods/project/rendering/dashboard/index/template.hbs' });\n","import type DashboardFeatureService from 'client/features/dashboard/services/feature';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectRenderingDashboardNewController extends Controller {\n  @service('feature/dashboard')\n  private dashboardFeatureService: DashboardFeatureService;\n\n  @tracked name: string | null = null;\n  @tracked icon: string | null = null;\n\n  @action\n  public async createDashboard() {\n    if (!this.name) {\n      return;\n    }\n\n    const dashboard = await this.dashboardFeatureService.createDashboard({\n      name: this.name,\n      icon: this.icon,\n    });\n\n    if (dashboard) {\n      this.name = null;\n      this.icon = null;\n    }\n  }\n}\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'multipleDashboards',\n  redirectionIfFeatureNotActivated: 'project.rendering.dashboard.preview',\n})\nexport default class ProjectRenderingDashboardNewRoute extends Route {\n  @service abilities;\n  @service currentUser;\n  @service router;\n  @service store;\n  @service toastr;\n  @service('feature/dashboard') featureDashboards;\n\n  beforeModel(transition) {\n    super.beforeModel(transition);\n    const { rendering } = this.modelFor('project.rendering');\n\n    if (!this.currentUser.get('canEditLayout')) {\n      const dashboard = rendering.get('dashboardsSorted.firstObject');\n      if (dashboard) {\n        this.router.transitionTo('project.rendering.dashboard.view', dashboard.id);\n      } else {\n        this.router.transitionTo('project.rendering.dashboard.index');\n      }\n    }\n  }\n\n  model() {\n    const { rendering } = this.modelFor('project.rendering');\n    return hash({ rendering });\n  }\n\n  @action\n  discardChanges() {\n    // eslint-disable-next-line ember/no-controller-access-in-routes\n    const controller = this.controllerFor(this.routeName);\n\n    controller.set('name', null);\n    controller.set('icon', null);\n    this.router.transitionTo('project.rendering.dashboard');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailOverlay>\\n  <BetaHeader\\n    @hasSideMenu={{true}}\\n    @title=\\\"Create a new dashboard\\\"\\n    data-test-controller-dashboard-header\\n  />\\n\\n  <div class=\\\"l-content\\\">\\n    <div class=\\\"l-content__wrap\\\">\\n      <div class=\\\"l-content__main l-content--scroll l-dpa\\\">\\n        <Shared::BetaLabel @label=\\\"Dashboard name\\\" class=\\\"l-dmb\\\">\\n          <Shared::BetaInput\\n            @placeholder=\\\"Name\\\"\\n            @value={{this.name}}\\n            data-test-controller-dashboard-input-name\\n          />\\n        </Shared::BetaLabel>\\n\\n        <Shared::BetaLabel @label=\\\"Dashboard icon\\\" class=\\\"l-dmb\\\">\\n          <Shared::BetaEmojiPicker\\n            @value={{this.icon}}\\n            @onChange={{fn (mut this.icon)}}\\n            data-test-controller-dashboard-emoji-picker\\n          />\\n        </Shared::BetaLabel>\\n      </div>\\n\\n      <div class=\\\"l-content__footer\\\">\\n        <Shared::Button::BetaButton\\n          @type=\\\"secondary\\\"\\n          @text=\\\"Discard\\\"\\n          @action={{route-action \\'discardChanges\\'}}\\n          @async={{false}}\\n        />\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @action={{this.createDashboard}}\\n          @text=\\\"Create\\\"\\n        />\\n      </div>\\n    </div>\\n  </div>\\n</LayoutDetail::LayoutDetailOverlay>\\n', { moduleName: 'client/legacy/pods/project/rendering/dashboard/new/template.hbs' });\n","import Controller from '@ember/controller';\n\nexport default class ProjectRenderingDashboardPreviewController extends Controller {}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'multipleDashboards',\n  redirectionIfFeatureActivated: 'project.rendering.dashboard.new',\n})\nexport default class ProjectRenderingDashboardPreviewRoute extends Route {\n  @service currentUser;\n  @service router;\n\n  titleToken = 'Premium Feature';\n\n  afterModel(...args) {\n    const { rendering } = this.modelFor('project.rendering');\n\n    if (!this.currentUser.get('canEditLayout')) {\n      const dashboard = rendering.get('dashboardsSorted.firstObject');\n      return this.router.transitionTo('project.rendering.dashboard.view', dashboard.id);\n    }\n\n    return super.afterModel(...args);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::PreviewMultipleDashboards />\\n', { moduleName: 'client/legacy/pods/project/rendering/dashboard/preview/template.hbs' });\n","import Route from '@ember/routing/route';\n\nexport default class ProjectRenderingDashboardRoute extends Route {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.hasDashboards}}\\n  <div class=\\\"l-project-rendering-view__content\\\">\\n    <div\\n      {{did-insert this.onDarkModeEnabledChange}}\\n      {{did-update this.onDarkModeEnabledChange this.userPreferenceState.darkModeEnabled}}\\n    ></div>\\n    {{outlet}}\\n  </div>\\n{{else}}\\n  {{outlet}}\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/rendering/dashboard/template.hbs' });\n","import ChartController from 'client/legacy/abstract-controllers/chart-controller';\n\nexport default class ProjectRenderingDashboardViewChartCreateController extends ChartController {}\n","import type Controller from '@ember/controller';\nimport type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type DashboardModel from 'client/data/models/dashboard';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\nimport { v1 as uuidv1 } from 'uuid';\n\nimport ChartRoute from 'client/legacy/abstract-routes/chart-route';\n\nexport default class ProjectRenderingDashboardViewChartCreateRoute extends ChartRoute {\n  @service private currentUser: CurrentUserService;\n  @service private router: RouterService;\n  // FIXME: Migrate ChartRoute to TypeScript to be able to pass those properties as private/protected\n  @service declare eventBus: EventBusService;\n  @service store: StoreService;\n\n  beforeModel() {\n    this.currentUser.editMode = true;\n  }\n\n  model() {\n    const chart = this.store.createRecord('chart', {\n      id: uuidv1(),\n      dashboard: (\n        this.modelFor('project.rendering.dashboard.view') as { dashboard: DashboardModel }\n      ).dashboard,\n      allowJavascript: false,\n    });\n\n    return hash({\n      chart,\n      rendering: chart.dashboard?.rendering,\n    });\n  }\n\n  setupController(controller: Controller, model, transition: Transition) {\n    super.setupController(controller, model, transition);\n\n    this.eventBus.on('editModeDeactivated', this.closeModal);\n  }\n\n  @action\n  closeModal() {\n    const { dashboard } = this.modelFor('project.rendering.dashboard.view') as {\n      dashboard: DashboardModel;\n    };\n    void this.router.transitionTo('project.rendering.dashboard.view', dashboard.get('id'));\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel @title=\\\"Add a new chart\\\" @close={{route-action \\'closeModal\\'}}>\\n  <Chart::ChartForm\\n    @chart={{this.chart}}\\n    @saveChart={{route-action \\'saveChart\\' this.chart}}\\n    @featureCallbackRoute=\\\"project.rendering.dashboard.view.chart.create\\\"\\n  />\\n</Shared::BetaRightPanel>\\n', { moduleName: 'client/legacy/pods/project/rendering/dashboard/view/chart/create/template.hbs' });\n","import ChartController from 'client/legacy/abstract-controllers/chart-controller';\n\nexport default class ProjectRenderingDashboardViewChartEditController extends ChartController {}\n","import type Controller from '@ember/controller';\nimport type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type ChartModel from 'client/data/models/chart';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport ChartRoute from 'client/legacy/abstract-routes/chart-route';\n\nexport default class ProjectRenderingDashboardViewChartEditRoute extends ChartRoute {\n  @service private currentUser: CurrentUserService;\n  @service private router: RouterService;\n\n  // FIXME: Migrate ChartRoute to TypeScript to be able to pass those properties as private/protected\n  @service declare eventBus: EventBusService;\n  @service store: StoreService;\n\n  beforeModel() {\n    this.currentUser.editMode = true;\n  }\n\n  model(params: { chart_id: string }) {\n    const chart = this.store.peekRecord('chart', params.chart_id);\n\n    if (chart) {\n      return hash({\n        chart,\n        rendering: chart.dashboard?.rendering,\n      });\n    }\n\n    void this.router.transitionTo('project.rendering.dashboard.view');\n    return null;\n  }\n\n  setupController(controller: Controller, model, transition: Transition) {\n    super.setupController(controller, model, transition);\n\n    this.eventBus.on('editModeDeactivated', this.closeModal);\n  }\n\n  @action\n  closeModal() {\n    const { chart } = this.modelFor(this.routeName) as { chart: ChartModel };\n    void this.router.transitionTo('project.rendering.dashboard.view', chart.dashboard?.id);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel\\n  @title=\\\"Chart {{this.chart.name}} settings\\\"\\n  @close={{route-action \\'closeModal\\'}}\\n  @extraActions={{array\\n    (hash name=\\'Delete chart\\' onClick=(route-action \\'destroyChart\\' this.chart) isDanger=true)\\n  }}\\n>\\n  <Chart::ChartForm\\n    @chart={{this.chart}}\\n    @saveChart={{route-action \\'saveChart\\' this.chart}}\\n    @featureCallbackRoute=\\\"project.rendering.dashboard.view.chart.edit\\\"\\n  />\\n</Shared::BetaRightPanel>\\n', { moduleName: 'client/legacy/pods/project/rendering/dashboard/view/chart/edit/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport SmartChartEditorRoute from 'client/legacy/abstract-routes/smart-chart-editor-route';\n\nexport default class ProjectRenderingDashboardViewChartSmartEditRoute extends SmartChartEditorRoute {\n  @service router;\n\n  @action\n  onCloseNavigationBar() {\n    const { chart } = this.modelFor(this.routeName);\n    return this.router.transitionTo('project.rendering.dashboard.view', chart.dashboard.id);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"application-view-overlay\\\">\\n  <SmartEditor\\n    @record={{this.smartChart}}\\n    @save={{route-action \\'saveChart\\' this.smartChart}}\\n    @AutoCompleteHelperClass={{this.AutoCompleteViewHelper}}\\n    @hideSettings={{true}}\\n    @hideComponent={{not this.smartChart.allowJavascript}}\\n    as |tempComponentName|\\n  >\\n    {{component tempComponentName}}\\n  </SmartEditor>\\n</Shared::PortalContent>\\n', { moduleName: 'client/legacy/pods/project/rendering/dashboard/view/chart/smart-edit/template.hbs' });\n","import { isArray } from '@ember/array';\nimport Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias, not } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDashboardViewController extends Controller {\n  /** @type {import('client/legacy/services/current-user').default} */\n  @service currentUser;\n  /** @type {import('client/legacy/services/event-bus').default} */\n  @service eventBus;\n  /** @type {import('client/legacy/services/plan-service').default} */\n  @service planService;\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n  @service lianaSession;\n\n  @alias('model.rendering') rendering;\n  @alias('rendering.environment') environment;\n  @alias('lianaSession.currentProject.billing') billing;\n  @not('isFirstDashboard') isNotFirstDashboard;\n\n  @computed('dashboard', 'rendering.firstDashboard')\n  get isFirstDashboard() {\n    return this.dashboard === this.rendering.firstDashboard;\n  }\n\n  get dashboard() {\n    return this.model.dashboard;\n  }\n\n  get charts() {\n    return this.dashboard.chartsSorted.filter((chart) => !chart.isNew);\n  }\n\n  @action\n  goToFirstDashboard() {\n    this.router.transitionTo('project.rendering.dashboard.index');\n  }\n\n  @action\n  addChart() {\n    this.currentUser.editMode = true;\n    if (this.currentUser.editMode)\n      this.router.transitionTo('project.rendering.dashboard.view.chart.create');\n  }\n\n  @action\n  editChart(chart) {\n    this.router.transitionTo('project.rendering.dashboard.view.chart.edit', chart.id);\n  }\n\n  @action\n  handleRefresh() {\n    if (!isArray(this.dashboard?.charts)) {\n      return;\n    }\n    this.eventBus.trigger('chart.refresh');\n  }\n}\n","import { service } from '@ember/service';\n\nimport ChartRoute from 'client/legacy/abstract-routes/chart-route';\n\nexport default class ProjectRenderingDashboardViewRoute extends ChartRoute {\n  @service activityTracker;\n  @service toastr;\n  @service router;\n  @service lianaSession;\n  @service store;\n\n  beforeModel() {\n    const { rendering } = this.modelFor('project.rendering');\n    const firstDashboard = rendering.dashboardsSorted.firstObject;\n\n    if (!this.lianaSession.currentProject.premiumMultipleDashboards) {\n      if (firstDashboard) {\n        this.router.transitionTo('project.rendering.dashboard.view', firstDashboard.id);\n      } else {\n        this.router.transitionTo('project.rendering.dashboard.index');\n      }\n    }\n  }\n\n  model(params) {\n    const { rendering } = this.modelFor('project.rendering');\n    const dashboard = this.store.peekRecord('dashboard', params.dashboard_id);\n\n    if (!dashboard) {\n      const firstDashboard = rendering.dashboardsSorted.firstObject;\n      this.toastr.perform('error', 'Dashboard not found.');\n      return this.router.transitionTo('project.rendering.dashboard.view', firstDashboard.id);\n    }\n\n    return {\n      rendering,\n      dashboard,\n    };\n  }\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    this.activityTracker.trackDashboard({\n      rendering: model.rendering,\n      dashboard: model.dashboard,\n    });\n  }\n\n  titleToken() {\n    const model = this.modelFor(this.routeName);\n    return model.dashboard.get('name');\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type DashboardModel from 'client/data/models/dashboard';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type { Promise as RsvpPromise } from 'rsvp';\n\nimport { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\ninterface RouteModel {\n  dashboard: DashboardModel;\n}\n\nexport default class ProjectRenderingDashboardViewSettingsRoute extends Route {\n  @service private errorHandler: ErrorHandlerService;\n  @service private router: RouterService;\n  @service private toastr: ToastrService;\n  @service('feature/folder') private folderFeature: FolderFeatureService;\n\n  @action\n  discardChanges() {\n    (this.modelFor(this.routeName) as RouteModel).dashboard.rollbackAttributes();\n    void this.router.transitionTo('project.rendering.dashboard.view');\n  }\n\n  @action\n  saveChanges(callback: (promise: RsvpPromise<unknown>) => void) {\n    const { dashboard } = this.modelFor(this.routeName) as RouteModel;\n\n    callback(\n      dashboard\n        .save()\n        .then(() => {\n          this.toastr.perform(ToastrTypeEnum.Success, 'Dashboard successfully updated.');\n          void this.router.transitionTo('project.rendering.dashboard.view');\n        })\n        .catch((error) => {\n          this.errorHandler.handleRequestFailure(error as Error, `${dashboard.name} update failed`);\n        }),\n    );\n  }\n\n  @action\n  async deleteDashboard() {\n    const { dashboard } = this.modelFor(this.routeName) as RouteModel;\n\n    const dashboardId = dashboard.id;\n    try {\n      await dashboard.destroyRecord();\n      await this.folderFeature.removeChildFromFolder(dashboardId);\n      this.toastr.perform(ToastrTypeEnum.Success, 'Dashboard deleted.');\n      void this.router.transitionTo('project.rendering.dashboard');\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Dashboard deletion failed');\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailOverlay>\\n  <BetaHeader\\n    @title=\\\"Dashboard settings\\\"\\n    @hasSideMenu={{true}}\\n    data-test-controller-dashboard-view-settings-header\\n  />\\n\\n  <div class=\\\"l-content\\\">\\n    <div class=\\\"l-content__wrap\\\">\\n      <div class=\\\"l-content__main l-content--scroll l-dpa\\\">\\n        <Shared::BetaLabel @label=\\\"Dashboard name\\\" class=\\\"l-dmb\\\">\\n          <Shared::BetaInput @placeholder=\\\"Name\\\" @value={{this.model.dashboard.name}} />\\n        </Shared::BetaLabel>\\n\\n        <Shared::BetaLabel @label=\\\"Dashboard icon\\\" class=\\\"l-dmb\\\">\\n          <Shared::BetaEmojiPicker\\n            @value={{this.model.dashboard.iconOrDefault}}\\n            @onChange={{fn (mut this.model.dashboard.icon)}}\\n            data-test-controller-dashboard-view-settings-header-emoji-picker\\n          />\\n        </Shared::BetaLabel>\\n\\n        <Feature::CriticalActionConfirmation::Button\\n          @buttonText=\\\"Delete dashboard\\\"\\n          @entityName={{this.model.dashboard.name}}\\n          @warningMessage=\\\"You are about to delete the “{{this.model.dashboard.name}}” dashboard.\\\"\\n          @cancelText=\\\"Cancel\\\"\\n          @onConfirm={{route-action \\'deleteDashboard\\'}}\\n          data-test-delete-button\\n        />\\n      </div>\\n\\n      <div class=\\\"l-content__footer\\\">\\n        <Shared::Button::BetaButton\\n          @type=\\\"secondary\\\"\\n          @text=\\\"Discard\\\"\\n          @action={{route-action \\'discardChanges\\'}}\\n          @async={{false}}\\n        />\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @text=\\\"Save changes\\\"\\n          @action={{route-action \\'saveChanges\\'}}\\n        />\\n      </div>\\n    </div>\\n  </div>\\n</LayoutDetail::LayoutDetailOverlay>\\n', { moduleName: 'client/legacy/pods/project/rendering/dashboard/view/settings/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{outlet}}\\n\\n<BetaHeader\\n  @hasSideMenu={{true}}\\n  @title={{this.model.dashboard.displayNameWithEmoji}}\\n  data-test-controller-dashboard-view-header\\n>\\n  <:right-buttons>\\n    {{#if this.currentUser.editMode}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"editor\\\"\\n        @text=\\\"Add a new chart\\\"\\n        @action={{this.addChart}}\\n        @async={{false}}\\n        data-test-controller-dashboard-view-header-add-new-chart\\n      />\\n    {{else}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @iconName=\\\"refresh\\\"\\n        @async={{false}}\\n        @action={{this.handleRefresh}}\\n        data-test-project-rendering-dashboard-view-refresh-button\\n      />\\n    {{/if}}\\n  </:right-buttons>\\n</BetaHeader>\\n\\n<div class=\\\"l-content l-content--scroll c-dashboard-view__grid\\\" id=\\\"content\\\">\\n  {{#if this.error}}\\n    <Layout::LayoutError @error={{this.error}} />\\n  {{else}}\\n    {{#if this.charts.length}}\\n      <Chart::ChartGrid\\n        @dashboardId={{this.model.dashboard.id}}\\n        @charts={{this.charts}}\\n        @isEditMode={{this.currentUser.editMode}}\\n        @editChartAction={{this.editChart}}\\n      />\\n    {{else}}\\n      <div class=\\\"l-dashboard-view-empty-container\\\">\\n        <div class=\\\"c-dashboard-view__empty\\\">\\n          <Shared::DataDisplay::BetaIcon\\n            @iconName=\\\"waving_hand\\\"\\n            @size=\\\"custom\\\"\\n            class=\\\"c-dashboard-view__empty-icon\\\"\\n          />\\n          <h1 class=\\\"l-hmb\\\">\\n            Salute\\n            {{this.currentUser.firstName}}\\n          </h1>\\n          <p>\\n            The dashboard allows you to keep\\n            <br />\\n            all of your key metrics within reach.\\n          </p>\\n          {{#if (and this.currentUser.isLayoutEditorEnabled this.currentUser.canEditLayout)}}\\n            <Shared::Button::BetaButton\\n              @type=\\\"editor\\\"\\n              @text=\\\"Set up your first chart\\\"\\n              @action={{this.addChart}}\\n              @async={{false}}\\n              class=\\\"c-dashboard-view__empty-start-button\\\"\\n            />\\n          {{else}}\\n            {{#if this.currentUser.isLayoutEditorDisabled}}\\n              <p>\\n                Create a branch to enable layout editing.\\n              </p>\\n            {{/if}}\\n          {{/if}}\\n        </div>\\n      </div>\\n    {{/if}}\\n  {{/if}}\\n</div>\\n\\n{{#if (and this.isNotFirstDashboard (cannot \\'access to multipleDashboards\\'))}}\\n  <Modal::ModalUpgradeToPaidPlan\\n    @cancel={{this.goToFirstDashboard}}\\n    @featureName=\\\"multipleDashboards\\\"\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/rendering/dashboard/view/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { ERROR_NOT_FOUND } from 'client/config/errors';\n\nexport default class ProjectRenderingDataCollectionErrorRoute extends Route {\n  @service lianaSession;\n\n  setupController(controller, error) {\n    super.setupController(controller, error);\n\n    let errorContext = { type: ERROR_NOT_FOUND, options: { target: 'This collection' } };\n\n    if (error.type) {\n      errorContext = { type: error.type };\n    }\n\n    controller.set('error', errorContext);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Layout::LayoutError @error={{this.error}} />\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection-error/template.hbs' });\n","import Controller from '@ember/controller';\n\nexport default class ProjectRenderingDataCollectionController extends Controller {}\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type { ErrorType } from 'client/config/errors';\nimport type CollectionModel from 'client/data/models/collection';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type FieldModel from 'client/data/models/field';\nimport type FilterModel from 'client/data/models/filter';\nimport type ViewListModel from 'client/data/models/view-list';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type ActionAvailabilityInternalBusinessService from 'client/features/action/services/internal-business/availability';\nimport type BetaCollectionListCommunicatorService from 'client/legacy/services/beta-collection-list-communicator';\nimport type CollectionBusinessService from 'client/legacy/services/business/collection';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type RouteHistoryService from 'client/legacy/services/route-history';\nimport type StoreService from 'client/legacy/services/store';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type RecordsContext from 'client/utils/liana-records/records-context';\nimport type ResizableColumnsState from 'client/utils/resizable-columns-state';\n\nimport Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { EventBusClientRecordEventsEnum } from 'client/legacy/services/event-bus';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\nimport { updateQueryParameters } from 'client/utils/url-utils';\n\nexport default class ProjectRenderingDataCollectionListIndexController extends Controller {\n  @service private betaCollectionListCommunicator: BetaCollectionListCommunicatorService;\n  @service public currentUser: CurrentUserService;\n  @service private eventBus: EventBusService;\n  @service('route-history') private routeHistory: RouteHistoryService;\n  @service private lianaFeatures: LianaFeaturesService;\n  @service private lianaSession: LianaSessionService;\n  @service private router: RouterService;\n  @service store: StoreService;\n  @service private toastr: ToastrService;\n  @service('business/collection') public businessCollectionService: CollectionBusinessService;\n  @service('feature/action/internal-business/availability')\n  private actionService: ActionAvailabilityInternalBusinessService;\n\n  @tracked collectionListInteractionId: string;\n\n  @tracked searchValue = '';\n  @tracked showCustomActionsMenu = false;\n  @tracked recordsContext: RecordsContext;\n  @tracked error?: Error | { type: ErrorType };\n  @tracked isForbidden = false;\n  @tracked resizableColumnsState: ResizableColumnsState;\n\n  hasEventListeners = false;\n\n  constructor(properties?: object) {\n    super(properties);\n\n    this.collectionListInteractionId = this.betaCollectionListCommunicator.generateInteractionId();\n    this.eventBus.on(\n      EventBusClientRecordEventsEnum.RecordCreated,\n      this.fetchRecordsAfterUpdateIfNecessary,\n    );\n    this.eventBus.on(\n      EventBusClientRecordEventsEnum.RecordEdited,\n      this.fetchRecordsAfterUpdateIfNecessary,\n    );\n  }\n\n  get queryParameters() {\n    const sort = this.businessCollectionService.getDefaultSortingFieldNameWithOrderPrefix(\n      this.recordsContext?.sortField as FieldModel,\n      this.recordsContext.sortingOrder,\n    );\n    const defaultSort =\n      this.recordsContext?.segment?.defaultSortingFieldName\n      || this.collection?.defaultSortingFieldName;\n    return {\n      filter:\n        this.recordsContext?.filter\n        && JSON.stringify(this.recordsContext?.filter.toJSON({ forApi: true })),\n      page: this.recordsContext?.currentPage > 1 ? this.recordsContext?.currentPage : undefined,\n      search: this.recordsContext?.search,\n      segmentId: this.recordsContext?.segment?.id,\n      searchExtended: this.recordsContext?.isSearchExtended ? 'true' : undefined,\n      sort: sort === defaultSort ? undefined : sort,\n    };\n  }\n\n  get collection() {\n    return this.model as CollectionModel;\n  }\n\n  get rendering() {\n    return this.lianaSession.rendering;\n  }\n\n  get environment() {\n    return this.rendering?.environment;\n  }\n\n  get project() {\n    return this.lianaSession.currentProject;\n  }\n\n  get billing() {\n    return this.project?.billing;\n  }\n\n  get isRestrictedToSegments() {\n    return this.collection?.restrictedToSegments;\n  }\n\n  get hasFilterableFields() {\n    return this.collection?.filterableFields?.length > 0;\n  }\n\n  get isBrowsingListIndex() {\n    return this.router.currentRouteName.startsWith('project.rendering.data.collection.list.index');\n  }\n\n  @computed('collection', 'recordsContext.filter')\n  get filter() {\n    const filter =\n      this.recordsContext?.filter?.clone()\n      || this.store.createRecord('filter', { filteredCollection: this.collection });\n    if (filter.conditions.length) {\n      void filter.save();\n    }\n    return filter;\n  }\n\n  get disableSwitchOperator() {\n    return !this.isGenericFiltersAvailable && !!this.currentSegment?.filter?.conditions?.length;\n  }\n\n  get hasBatchDelete() {\n    return this.currentUser.canDeleteCollection(this.collection);\n  }\n\n  get buttonExportTitle() {\n    return `Export ${this.collection.displayNamePluralLowerCase}`;\n  }\n\n  get cannotActivateNewExport() {\n    return !this.lianaFeatures.isFeatureCompatible(FeaturesEnum.ImportCsv, this.environment);\n  }\n\n  get canCreate() {\n    return this.currentUser.canAddCollection(this.collection);\n  }\n\n  get buttonCreateTitle() {\n    return `Create a new ${this.collection.displayNameLowerCase}`;\n  }\n\n  get canCreateSegment() {\n    return this.currentUser.editMode && !this.recordsContext.segment;\n  }\n\n  get shouldDisplayActionsButton() {\n    // In edit mode the button is always visible\n    // if no custom actions are defined, a link on how to create one is shown\n    if (this.currentUser.editMode) return true;\n    return this.actionService.isAnyActionAvailable(\n      this.collection,\n      this.recordsContext.selectedRecordsCount,\n    );\n  }\n\n  get isDuplicable() {\n    return this.currentUser.canAddCollection(this.collection);\n  }\n\n  get canExport() {\n    return (\n      this.currentUser.canExportCollection(this.collection)\n      && !this.recordsContext.selectedRecordsCount\n    );\n  }\n\n  get currentSegment() {\n    if (this.recordsContext.segment) {\n      const { segment } = this.recordsContext;\n      if (segment?.isManual && segment.query) {\n        // NOTICE: Deactivate the Segment Live Query feature if the project has not the premium\n        //         feature active anymore\n        if (!this.lianaSession.currentProject.premiumLiveQuery) {\n          this.toastr.perform(\n            ToastrTypeEnum.Warning,\n            \"The Live Query segment feature has been deactivated, the segment won't return the expected records.\",\n          );\n        }\n      }\n      return segment;\n    }\n    return null;\n  }\n\n  get isRestrictedToSegment() {\n    return Boolean(this.currentSegment?.collection?.restrictedToSegments);\n  }\n\n  get isGenericFiltersAvailable() {\n    return this.lianaFeatures.isFeatureCompatible(FeaturesEnum.GenericFilters);\n  }\n\n  get isFilterButtonDisplayed() {\n    return this.hasFilterableFields;\n  }\n\n  get visibleSegments() {\n    const items: { id: string | null; name: string }[] = [];\n    if (!this.isRestrictedToSegments) {\n      items.push({ id: null, name: 'All' });\n    }\n    items.push(...this.collection.segmentsVisibleSorted.map(({ id, name }) => ({ id, name })));\n    return items;\n  }\n\n  @action\n  async handleQueryParametersChange() {\n    if (!this.recordsContext) return;\n\n    const params = {\n      project_name: this.lianaSession.currentProject?.name,\n      environment_name: this.lianaSession.currentEnvironment?.name,\n      team_name: this.lianaSession.currentTeam?.name,\n      collection_id: this.collection?.shareableId,\n    };\n    const fakeTransition = {\n      to: {\n        name: 'project.rendering.data.collection.list.index',\n        params,\n        paramNames: ['project_name', 'environment_name', 'team_name', 'collection_id'],\n        queryParams: this.queryParameters,\n      },\n    };\n    updateQueryParameters(this.queryParameters as unknown as Record<string, string>, true);\n\n    await waitForNextRunLoop();\n    this.routeHistory.setCurrentRoute(\n      this.model as Record<string, unknown>,\n      fakeTransition as unknown as Transition,\n    );\n  }\n\n  @action\n  async handleCreateRecord() {\n    await this.router.transitionTo(\n      'project.rendering.data.collection.list.view-create.details',\n      this.collection.shareableId,\n    );\n  }\n\n  @action\n  applyFilter(filter: FilterModel) {\n    this.betaCollectionListCommunicator.refresh(this.collectionListInteractionId, {\n      currentPage: 1,\n      filter: filter?.clone(),\n      search: this.searchValue,\n    });\n  }\n\n  // TODO: Review async usage and need for a return statement.\n  @action\n  async deleteRecords(records: ClientRecordModel[]) {\n    this.betaCollectionListCommunicator.deleteRecords(this.collectionListInteractionId, records);\n  }\n\n  @action\n  async triggerAction(customAction: CustomActionModel) {\n    this.betaCollectionListCommunicator.triggerSmartAction(\n      this.collectionListInteractionId,\n      customAction,\n    );\n  }\n\n  @action\n  downloadCurrentRecords() {\n    this.betaCollectionListCommunicator.export(this.collectionListInteractionId);\n  }\n\n  @action\n  triggerSearch(search: string, callback?: () => void) {\n    this.betaCollectionListCommunicator.refresh(this.collectionListInteractionId, {\n      search,\n      currentPage: 1,\n    });\n    callback?.();\n  }\n\n  @action\n  triggerRefresh() {\n    this.betaCollectionListCommunicator.refresh(this.collectionListInteractionId, {\n      currentPage: this.recordsContext.currentPage,\n    });\n  }\n\n  @action\n  deactivateCurrentSegment() {\n    if (!this.collection.restrictedToSegments) {\n      this.betaCollectionListCommunicator.refresh(this.collectionListInteractionId, {\n        segment: null,\n      });\n    }\n  }\n\n  @action\n  outdatedLianaToastr() {\n    this.toastr.perform(\n      ToastrTypeEnum.Warning,\n      'You have to upgrade to the latest Agent version to use the new CSV export.',\n    );\n  }\n\n  @action\n  toggleCustomActionsMenu() {\n    this.showCustomActionsMenu = !this.showCustomActionsMenu;\n  }\n\n  @action\n  hideCustomActionsMenu() {\n    this.showCustomActionsMenu = false;\n  }\n\n  @action\n  async redirectToCreate() {\n    await this.router.transitionTo(\n      'project.rendering.data.collection.list.view-create.details',\n      this.collection.id,\n    );\n  }\n\n  @action\n  async openSmartViewEditor(smartView: ViewListModel) {\n    await this.router.transitionTo(\n      'project.rendering.data.collection.list.smart-view-editor',\n      smartView.name,\n    );\n  }\n\n  @action\n  handleSelectSegment(segmentId: string | null) {\n    const segment = segmentId && this.store.peekRecord('segment', segmentId);\n    this.betaCollectionListCommunicator.refresh(this.collectionListInteractionId, {\n      currentPage: 1,\n      sortingParameters: this.businessCollectionService.getDefaultSorting(\n        segment || this.collection,\n      ),\n      segment,\n    });\n  }\n\n  @action\n  async saveAsSegment() {\n    const conditions = [\n      ...this.filter.conditions.toArray(),\n      ...(this.currentSegment?.filter?.conditions.toArray() || []),\n    ].map((condition) => condition.clone());\n    const filter = this.store.createFragment('fragment-filter', {\n      type: this.filter.type,\n      conditions,\n    });\n    const segment = this.store.createRecord('segment', {\n      position: this.collection.segmentPositionsMax + 1,\n      filter,\n    });\n    this.collection.segments.pushObject(segment);\n\n    await this.router.transitionTo('project.rendering.data.collection.settings.segments.create');\n  }\n\n  @action\n  disableActionRestrictedToSegment(customAction: CustomActionModel) {\n    return (\n      customAction.segments?.length\n      && (!this.recordsContext.segment\n        || (this.recordsContext.segment\n          && !customAction.segments.isAny('id', this.recordsContext.segment.id)))\n    );\n  }\n\n  reset() {\n    this.searchValue = '';\n    this.error = undefined;\n\n    this.removeListeners();\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    this.removeListeners();\n    this.eventBus.off(\n      EventBusClientRecordEventsEnum.RecordCreated,\n      this.fetchRecordsAfterUpdateIfNecessary,\n    );\n    this.eventBus.off(\n      EventBusClientRecordEventsEnum.RecordEdited,\n      this.fetchRecordsAfterUpdateIfNecessary,\n    );\n  }\n\n  @action\n  refreshAllRecords(record: ClientRecordModel) {\n    const collection = getCollectionFromRecord(record);\n    if (collection === this.collection) {\n      this.betaCollectionListCommunicator.refreshAll(this.collection);\n    }\n  }\n\n  initializeListeners() {\n    this.eventBus.on('recordCreated', this.refreshAllRecords);\n    this.hasEventListeners = true;\n  }\n\n  removeListeners() {\n    if (this.hasEventListeners) {\n      this.eventBus.off('recordCreated', this.refreshAllRecords);\n      this.hasEventListeners = false;\n    }\n  }\n\n  @action\n  fetchRecordsAfterUpdateIfNecessary() {\n    if (this.router.currentRouteName === 'project.rendering.data.collection.list.index') return;\n\n    if (this.recordsContext?.segment || this.searchValue) {\n      this.recordsContext.records = null;\n      this.recordsContext.recordsCount = null;\n    }\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type CollectionModel from 'client/data/models/collection';\nimport type ActionFeatureService from 'client/features/action/services/feature';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type ProjectRenderingDataCollectionListIndexController from 'client/legacy/pods/project/rendering/data/collection/list/index/controller';\nimport type CollectionBusinessService from 'client/legacy/services/business/collection';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\nimport type StoreService from 'client/legacy/services/store';\nimport type RouteTransitionHandlerSharedBusinessService from 'client/shared/services/route-transition-handler';\n\nimport { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { ERROR_ACCESS_RECORD_FORBIDDEN } from 'client/config/errors';\nimport { pauseFor } from 'client/utils/ember-promise';\nimport { AccessCollectionForbidden } from 'client/utils/errors/collection-errors';\nimport ResizableColumnsState from 'client/utils/resizable-columns-state';\nimport { getRouteInfo } from 'client/utils/route-utils';\n\nexport default class ProjectRenderingDataCollectionListRoute extends Route<CollectionModel> {\n  @service('feature/client-record') private clientRecordFeature: ClientRecordFeatureService;\n  @service private currentUser: CurrentUserService;\n  @service private localStorage: LocalStorageService;\n  @service private router: RouterService;\n  @service('feature/action') private customActionService: ActionFeatureService;\n  @service('feature/folder') private folderFeature: FolderFeatureService;\n  @service('shared/route-transition-handler')\n  private routeTransitionHandler: RouteTransitionHandlerSharedBusinessService;\n\n  @service('business/collection') public businessCollectionService: CollectionBusinessService;\n\n  @service store: StoreService;\n\n  private hasSubscribedToRouteWillChange = false;\n\n  // HOOKS\n  async afterModel(collection: CollectionModel, transition: Transition) {\n    await super.afterModel(collection, transition);\n\n    const isCollectionListHidden = !this.currentUser.canBrowseCollection(collection);\n\n    if (isCollectionListHidden) {\n      throw new AccessCollectionForbidden();\n    }\n\n    this.subscribeToRouteWillChange();\n\n    await this.customActionService.attemptActionIntent(transition, collection);\n  }\n\n  async setupController(\n    controller: ProjectRenderingDataCollectionListIndexController,\n    collection: CollectionModel,\n    transition: Transition,\n  ) {\n    super.setupController(controller, collection, transition);\n\n    if (!controller.recordsContext || controller.recordsContext.collection !== collection) {\n      const segmentId =\n        transition.to.queryParams?.segmentId\n        || (collection.isRestrictedToSegments\n          && this.folderFeature.getDefaultSegmentForCollection(collection)?.id);\n      const queryParams =\n        transition.from?.name\n        === 'project.rendering.data.collection.list.view-edit.view-has-many.index'\n          ? { segmentId }\n          : { ...(transition.to.queryParams || {}), segmentId };\n\n      controller.recordsContext = this.clientRecordFeature.buildStateFromQueryParams(\n        collection,\n        queryParams,\n      );\n    } else if (transition.to.queryParams?.segmentId !== controller.recordsContext.segment?.id) {\n      controller.recordsContext.segment = collection.segments.findBy(\n        'id',\n        transition.to.queryParams?.segmentId,\n      );\n      controller.recordsContext.currentPage = 1;\n      controller.recordsContext.sortingParameters =\n        this.businessCollectionService.getDefaultSorting(\n          controller.recordsContext.segment || collection,\n        );\n      controller.recordsContext.records = null;\n    }\n    controller.searchValue = controller.recordsContext.search || '';\n\n    controller.initializeListeners();\n\n    if (!this.currentUser.canBrowseCollection(collection)) {\n      // NOTICE: Prevent any action below a Record detail page if the collection list is not set as\n      //         visible.\n      controller.isForbidden = true;\n      controller.error = { type: ERROR_ACCESS_RECORD_FORBIDDEN };\n      return;\n    }\n\n    const resizableColumnsState = new ResizableColumnsState(\n      this.localStorage,\n      collection.rendering.id,\n      {\n        type: 'collection',\n        collectionName: collection.name,\n      },\n    );\n    controller.resizableColumnsState = resizableColumnsState;\n  }\n\n  async redirect(collection: CollectionModel, transition: Transition) {\n    if (\n      transition.to.queryParams?.segmentId\n      || !collection.restrictedToSegments\n      || ![\n        'project.rendering.data.collection.list',\n        'project.rendering.data.collection.list.index',\n      ].includes(transition.to.name)\n    ) {\n      return;\n    }\n\n    await this.transitionToFirstSegment(collection);\n  }\n\n  resetController(\n    controller: ProjectRenderingDataCollectionListIndexController,\n    isExiting: boolean,\n  ) {\n    controller.reset();\n    if (isExiting) {\n      this.unsubscribeToRouteWillChange();\n    }\n  }\n\n  async willTransition(transition: Transition) {\n    const handled = await this.routeTransitionHandler.handleWillTransition(transition);\n    if (handled) return false;\n\n    if (\n      (transition.to.name === 'project.rendering.data.collection.list.index'\n        && transition.from?.name === 'project.rendering.data.collection.list.index')\n      || !transition.to.name.startsWith('project.rendering.data.collection.list')\n    ) {\n      this.clientRecordFeature.clearRecordsInCache();\n    }\n\n    if (transition.to.name === 'project.rendering.data.collection.list.index') {\n      const collection = (await this.modelFor(this.routeName)) as CollectionModel;\n      this.store.cancelExistingQueries(\n        collection.emberModelName,\n        'Leaving route, request not needed anymore',\n      );\n    }\n\n    return undefined;\n  }\n\n  // Custom Methods\n  private unsubscribeToRouteWillChange() {\n    if (this.hasSubscribedToRouteWillChange) {\n      this.router.off('routeWillChange', this.handleRouteWillChange);\n      this.hasSubscribedToRouteWillChange = false;\n    }\n  }\n\n  // FIXME: Make it private once the tests have been migrated\n  public subscribeToRouteWillChange() {\n    this.router.on('routeWillChange', this.handleRouteWillChange);\n    this.hasSubscribedToRouteWillChange = true;\n  }\n\n  @action\n  private handleRouteWillChange(transition: Transition) {\n    // eslint-disable-next-line ember/no-controller-access-in-routes\n    const controller = this.controller as ProjectRenderingDataCollectionListIndexController;\n    if (!controller || !controller.collection) {\n      return;\n    }\n    if (!transition.from) {\n      return;\n    }\n\n    // For an unknown reason sometimes the `routeWillChange` event is called after\n    // the transition really happened. So we need to check that the query currently\n    // running is actually not the current one.\n    // This happen all the times on restrictedToSegment collection and clicking on the collection.\n    const fromRouteInfo = getRouteInfo(transition.from, 'project.rendering.data.collection');\n    const toRouteInfo = getRouteInfo(transition.to, 'project.rendering.data.collection');\n    const fromCollectionId = fromRouteInfo?.params.collection_id;\n    const toCollectionId = toRouteInfo?.params.collection_id;\n    if (\n      fromCollectionId !== toCollectionId\n      || (toRouteInfo?.queryParams.segmentId || '')\n        !== (controller.recordsContext?.segment?.id || '')\n    ) {\n      if (\n        toRouteInfo\n        && fromCollectionId === toCollectionId\n        && transition.to.name === 'project.rendering.data.collection.list.index'\n      ) {\n        controller.handleSelectSegment(toRouteInfo.queryParams.segmentId);\n      }\n      // NOTICE: Cancel currently running query on the current collection if any\n      this.store.cancelExistingQueries(\n        controller.collection.emberModelName,\n        'Leaving route, request not needed anymore',\n      );\n    }\n  }\n\n  private async transitionToFirstSegment(collection: CollectionModel) {\n    const segmentId: string = this.folderFeature.getDefaultSegmentForCollection(collection)?.id;\n    if (!segmentId) {\n      return null;\n    }\n\n    await pauseFor(100);\n    return this.router.transitionTo({ queryParams: { segmentId } });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-insert this.handleQueryParametersChange}}\\n{{did-update this.handleQueryParametersChange this.queryParameters}}\\n\\n{{#if this.isForbidden}}\\n  <Layout::LayoutError @error={{this.error}} />\\n{{else}}\\n  <BetaHeader\\n    @hasSideMenu={{true}}\\n    @title={{this.collection.displayNameWithEmoji}}\\n    data-test-controller-project-rendering-data-collection-list-header\\n  >\\n    <:left-buttons>\\n      {{#unless (eq this.collection.segmentsVisibleSorted.length 0)}}\\n        <Dropdown::BetaDropdownSearch\\n          @items={{this.visibleSegments}}\\n          @onSelect={{this.handleSelectSegment}}\\n          @selectedItemId={{or this.recordsContext.segment.id null}}\\n          class=\\\"c-collection-list-header__segment-selector\\\"\\n          data-test-controller-project-rendering-data-collection-list-dropdown-segments\\n        />\\n      {{/unless}}\\n    </:left-buttons>\\n    <:search-and-filter>\\n      {{#unless this.currentUser.editMode}}\\n        {{#if this.collection.isSearchable}}\\n          <Shared::BetaSearchBar\\n            @placeholder={{if\\n              this.recordsContext.recordsCount\\n              (concat\\n                \\'Search within \\'\\n                (format-number-to-locale this.recordsContext.recordsCount)\\n                \\' \\'\\n                (display-name-pluralize\\n                  this.collection.displayNameLowerCase\\n                  this.collection.displayNamePluralLowerCase\\n                  this.recordsContext.recordsCount\\n                )\\n                \\'...\\'\\n              )\\n            }}\\n            @searchFunction={{this.triggerSearch}}\\n            @searchValue={{this.searchValue}}\\n            @onChange={{fn (mut this.searchValue)}}\\n            @shouldAutoFocus={{this.isBrowsingListIndex}}\\n            @parametersToWatchRetriggeringFocus={{if\\n              this.isBrowsingListIndex\\n              (array (or this.recordsContext.segment this.collection.shareableId) this.page)\\n              null\\n            }}\\n            class=\\\"c-collection-list-header__search-bar\\\"\\n            data-test-controller-project-rendering-data-collection-list-search-bar\\n            data-test-search-bar\\n          />\\n        {{/if}}\\n\\n        {{#if this.isFilterButtonDisplayed}}\\n          <BetaFilter::Button\\n            @applyFilter={{this.applyFilter}}\\n            @fieldsFilterable={{this.collection.filterableFields}}\\n            @filter={{this.filter}}\\n            @createFilter={{this.businessCollectionService.createFilter}}\\n            class=\\\"c-collection-list-header__action\\\"\\n            data-test-controller-project-rendering-data-collection-list-filter-button\\n            data-test-filter-button\\n          />\\n        {{/if}}\\n      {{/unless}}\\n    </:search-and-filter>\\n\\n    <:right-buttons>\\n      {{#if this.currentUser.editMode}}\\n        {{#if this.filter.conditions.length}}\\n          <Shared::Button::BetaButton\\n            @action={{this.saveAsSegment}}\\n            @async={{false}}\\n            @text=\\\"Save as a new segment\\\"\\n            @type=\\\"editor\\\"\\n            class=\\\"c-collection-list-header__action\\\"\\n            data-test-controller-project-rendering-data-collection-list-save-as-new-segment\\n            data-test-save-as-segment\\n          />\\n        {{/if}}\\n        {{#if this.collection.hasSmartViews}}\\n          <Dropdown::BetaDropdownSmartViews\\n            @editSmartView={{this.openSmartViewEditor}}\\n            @model={{this.collection}}\\n            @removeCondition={{route-action \\'removeCondition\\'}}\\n            class=\\\"c-collection-list-header__action\\\"\\n            data-test-controller-project-rendering-data-collection-list-smart-views\\n            data-test-dropdown-smart-views\\n          />\\n        {{/if}}\\n      {{else}}\\n        <Shared::Button::BetaButton\\n          @action={{this.triggerRefresh}}\\n          @async={{false}}\\n          @iconName=\\\"refresh\\\"\\n          @type=\\\"secondary\\\"\\n          class=\\\"c-collection-list-header__action\\\"\\n          data-test-controller-project-rendering-data-collection-list-refresh\\n          data-test-refresh-button\\n        />\\n      {{/if}}\\n\\n      <Dropdown::BetaDropdownActions\\n        @shouldDisplayActionDropdown={{this.shouldDisplayActionsButton}}\\n        @areAllRecordsSelected={{this.recordsContext.areAllRecordsSelected}}\\n        @collection={{this.recordsContext.collection}}\\n        @segment={{this.recordsContext.segment}}\\n        @customActions={{this.recordsContext.collection.customActionsOrderedForUser}}\\n        @enabledCustomActions={{this.recordsContext.collection.customActionsOrderedForUser}}\\n        @deleteRecords={{this.deleteRecords}}\\n        @disableActionRestrictedToSegment={{this.disableActionRestrictedToSegment}}\\n        @isDeletable={{this.hasBatchDelete}}\\n        @isDuplicable={{this.isDuplicable}}\\n        @isEditMode={{this.currentUser.editMode}}\\n        @isListView={{true}}\\n        @selectedRecordsArray={{this.recordsContext.selectedRecords}}\\n        @selectedRecordsCount={{this.recordsContext.selectedRecordsCount}}\\n        @triggerCustomAction={{this.triggerAction}}\\n        class=\\\"c-collection-list-header__action\\\"\\n        data-test-controller-project-rendering-data-collection-list-dropdown-actions\\n        data-test-dropdown-actions\\n      >\\n        {{#if this.canExport}}\\n          <Form::Dropdown::Action\\n            @name={{this.buttonExportTitle}}\\n            @onClick={{if\\n              this.cannotActivateNewExport\\n              this.outdatedLianaToastr\\n              this.downloadCurrentRecords\\n            }}\\n            data-test-dropdown-actions-export\\n          />\\n        {{/if}}\\n      </Dropdown::BetaDropdownActions>\\n\\n      {{#unless this.currentUser.editMode}}\\n        {{#if this.canCreate}}\\n          <Shared::Button::BetaButton\\n            @action={{this.redirectToCreate}}\\n            @async={{false}}\\n            @iconClass=\\\"c-collection-list-header__add-button-icon\\\"\\n            @iconName=\\\"add\\\"\\n            @text=\\\"Add\\\"\\n            @textClass=\\\"c-collection-list-header__add-button-text\\\"\\n            @type=\\\"primary\\\"\\n            class=\\\"c-collection-list-header__add-button c-collection-list-header__action\\\"\\n            title={{this.buttonCreateTitle}}\\n            data-test-controller-project-rendering-data-collection-list-add\\n            data-test-create-record\\n          />\\n        {{/if}}\\n      {{/unless}}\\n    </:right-buttons>\\n  </BetaHeader>\\n\\n  <div class=\\\"collectionList__content\\\">\\n    <DataDisplay::BetaCollectionList\\n      @canEditRecordsPerPage={{true}}\\n      @recordsContext={{this.recordsContext}}\\n      @resizableColumnsState={{this.resizableColumnsState}}\\n      @betaCollectionListId={{this.collectionListInteractionId}}\\n      @deactivateCurrentSegment={{this.deactivateCurrentSegment}}\\n      @isEditMode={{this.currentUser.editMode}}\\n      @openCreateRecord={{if this.canCreate this.handleCreateRecord}}\\n    />\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/index/template.hbs' });\n","import Route from '@ember/routing/route';\n\nexport default class ProjectRenderingDataCollectionListRoute extends Route {\n  queryParams = {\n    segmentId: {\n      refreshModel: false,\n    },\n  };\n\n  async titleToken() {\n    const collection = await this.modelFor(this.routeName);\n    return `Data ‣ ${collection.pluralizedDisplayName}`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Button::BetaSaveDiscardButtons\\n  @entity={{this.smartView}}\\n  @save={{this.save}}\\n  @discard={{this.discard}}\\n  @fullWidth={{false}}\\n  @withMarginBottom={{false}}\\n  @isSaveDisabled={{not this.smartView.hasDirtyAttributes}}\\n  @size=\\\"normal\\\"\\n/>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/smart-view-editor/actions/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionListSmartViewEditorController extends Controller {\n  @service('feature/smart-features') smartFeaturesService;\n  titleToken = 'Smart Views Editor';\n\n  @alias('model') smartView;\n\n  @action\n  async save(callback = null) {\n    if (!this.smartView.hasDirtyAttributes) {\n      return null;\n    }\n\n    await this.smartFeaturesService.saveSmartView(this.smartView, true, callback);\n\n    return this.smartView;\n  }\n\n  discard() {\n    this.smartView.rollbackAttributes();\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'smartViews',\n  redirectionIfFeatureNotActivated: 'project.rendering.data.collection.settings.views.preview',\n})\n@preventLeavingWithoutSaving('smartView', { shouldResetEditModeOnAbort: true })\nexport default class ProjectRenderingDataCollectionListSmartViewEditorRoute extends Route {\n  @service awsCodeDownloader;\n  @service currentUser;\n  @service router;\n\n  settingsDisplayName = 'Smart View Editor';\n  titleToken = 'Smart View Editor';\n  isSettings = true;\n\n  model(params) {\n    const smartViewName = params.smart_view_name;\n\n    const collection = this.modelFor('project.rendering.data.collection');\n    return collection.viewLists\n      .then((viewLists) => viewLists.findBy('name', smartViewName))\n      .then(async (smartView) => {\n        if (smartView && !smartView.isNew) {\n          await this.awsCodeDownloader.download(smartView);\n        }\n        return smartView;\n      });\n  }\n\n  afterModel(smartView, transition) {\n    if (!smartView) {\n      this.router.transitionTo('project.rendering.data.collection.list');\n      return;\n    }\n\n    super.afterModel(smartView, transition);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"application-view-overlay\\\">\\n  <SmartViewEditorWithPreview @smartView={{this.smartView}} @save={{this.save}} />\\n</Shared::PortalContent>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/smart-view-editor/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionListViewCreateController extends Controller {\n  @service currentUser;\n  @service router;\n\n  @alias('model.collection') collection;\n  @alias('model.record') record;\n\n  @computed('collection.displayNameLowerCase')\n  get title() {\n    return `Create a new ${this.collection.displayNameLowerCase}`;\n  }\n\n  @computed('collection.displayName', 'title')\n  get breadcrumb() {\n    return [\n      {\n        displayName: this.collection.displayName,\n        link: 'project.rendering.data.collection.list',\n        isClickable: true,\n      },\n      {\n        displayName: this.title,\n      },\n    ];\n  }\n\n  detailsRoutes = [\n    'project.rendering.data.collection.list.view-create.details',\n    'project.rendering.data.collection.list.view-create.new-belongs-to',\n    'project.rendering.data.collection.list.view-create.view-has-many',\n    'project.rendering.data.collection.list.view-create.view-has-many-embedded',\n  ];\n\n  @computed('currentTab')\n  get isDetailsSelected() {\n    return this.currentTab === 'details';\n  }\n\n  @computed(\n    'collection.viewCreate.rowCreatesRelatedData',\n    'currentUser.editMode',\n    'detailsRoutes',\n    'router.currentRouteName',\n  )\n  get menuItems() {\n    const relatedDataRowCreates = this.collection.viewCreate.rowCreatesRelatedData;\n    const relatedDataRowCreatesToDisplay = this.currentUser.editMode\n      ? relatedDataRowCreates\n      : relatedDataRowCreates.filter((row) => row.isVisible && row.isRelatedData);\n    const firstRelatedData = relatedDataRowCreatesToDisplay.firstObject;\n\n    return [\n      {\n        label: 'Details',\n        link: 'project.rendering.data.collection.list.view-create.details',\n        enabled: true,\n      },\n      {\n        label: 'Related data',\n        link: firstRelatedData?.isArrayOfDocuments\n          ? 'project.rendering.data.collection.list.view-create.view-has-many-embedded'\n          : 'project.rendering.data.collection.list.view-create.view-has-many',\n        linkModel: firstRelatedData?.id,\n        currentWhen: this.router.currentRouteName.startsWith(\n          'project.rendering.data.collection.list.view-create.view-has-many',\n        ),\n        enabled: relatedDataRowCreatesToDisplay.length > 0,\n      },\n    ].filter((menuItem) => menuItem.enabled);\n  }\n\n  @action\n  selectTab(tabName) {\n    this.set('currentTab', tabName);\n  }\n\n  init(...args) {\n    super.init(...args);\n    this.set('currentTab', 'details');\n  }\n}\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectRenderingDataCollectionListViewCreateDetailsController extends Controller {\n  @tracked _hasFormErrors = false;\n\n  @action\n  handleFormValidityChange(hasErrors) {\n    this._hasFormErrors = hasErrors;\n  }\n\n  @service currentUser;\n  @service router;\n\n  @alias('model.collection.viewCreate') viewCreate;\n  @alias('viewCreate.plainRows') plainRows;\n  @alias('viewCreate.visibleRowCreates') visibleRowCreates;\n\n  @computed('model.collection.displayNameLowerCase')\n  get panelTitle() {\n    return `Create a new ${this.model?.collection?.displayNameLowerCase}`;\n  }\n\n  @action\n  hideRowCreateSettingsMenuEditMode() {\n    if (!this.currentUser.editMode) {\n      this.set('showRowCreateSettingsMenu', false);\n    }\n  }\n\n  @action\n  cancel() {\n    if (this.model.record) {\n      this.model.record.rollbackAttributes();\n    }\n    this.router.transitionTo(\n      'project.rendering.data.collection.list',\n      this.model.collection.shareableId,\n    );\n  }\n\n  @action\n  showRowCreate(rowCreate) {\n    rowCreate.set('isVisible', true);\n    rowCreate.save();\n  }\n\n  @action\n  hideRowCreate(rowCreate) {\n    rowCreate.set('isVisible', false);\n    rowCreate.save();\n  }\n\n  @action\n  toggleShowRowCreateSettingsMenu() {\n    this.toggleProperty('showRowCreateSettingsMenu');\n  }\n\n  @action\n  hideRowCreateSettingsMenu() {\n    this.set('showRowCreateSettingsMenu', false);\n  }\n}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport RenderingRoute from 'client/legacy/abstract-routes/rendering-route';\n\nexport default class ProjectRenderingDataCollectionListViewCreateDetailsRoute extends RenderingRoute {\n  @service lianaSession;\n  @service router;\n\n  /** @type {import('client/features/client-record/services/feature').default} */\n  @service('feature/client-record') clientRecordFeature;\n\n  @action\n  async willTransition(transition) {\n    const handled = await super.willTransition(transition);\n    if (handled) return;\n\n    // FIXME willTransition should only handle transition abort logic.\n    // teardown logic should go in deactivate hook\n\n    const controller = this.controllerFor(this.routeName);\n    const { record } = controller;\n\n    if (record) {\n      record.rollbackAttributes();\n    }\n  }\n\n  @action\n  async saveNewRecord() {\n    const model = this.modelFor(this.routeName);\n    const { collection, record } = model;\n\n    const recordCreated = await this.clientRecordFeature.upsertRecord(record, {\n      shouldUpdateRelationshipsAfterCreation: true,\n    });\n\n    if (!recordCreated) return;\n\n    this.router.transitionTo(\n      this.clientRecordFeature.getRecordLink(collection),\n      collection.shareableId,\n      record.id,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<RightPanelBody>\\n  <div class=\\\"l-list-view-create-details__title-container\\\">\\n    <h4 class=\\\"c-list-view-create-details__title\\\" data-test-list-view-create-details-title>\\n      Record details\\n    </h4>\\n    <Shared::PortalFor\\n      @name=\\\"view-details-editor\\\"\\n      class={{unless\\n        (get (current-user) \\'editMode\\')\\n        \\'c-list-view-create-details__editor--hidden\\'\\n        \\'c-list-view-create-details__editor\\'\\n      }}\\n      data-test-list-view-create-details-editor\\n    />\\n  </div>\\n  <DataDisplay::Record::Details\\n    @collection={{this.model.collection}}\\n    @record={{this.model.record}}\\n    @rows={{this.visibleRowCreates}}\\n    @onFormValidityChange={{this.handleFormValidityChange}}\\n  />\\n</RightPanelBody>\\n\\n<Layout::LayoutFooter>\\n  <Shared::Button @type=\\\"ghost\\\" @text=\\\"Discard\\\" @onClick={{this.cancel}} data-test-discard-button />\\n  <Shared::Button\\n    @type=\\\"primary\\\"\\n    @onClick={{route-action \\'saveNewRecord\\'}}\\n    @text=\\\"Create\\\"\\n    disabled={{this._hasFormErrors}}\\n    data-test-create-button\\n  />\\n</Layout::LayoutFooter>\\n\\n<Shared::PortalContent @for=\\\"view-details-editor\\\">\\n  <Button::SettingsButton\\n    @action={{this.toggleShowRowCreateSettingsMenu}}\\n    @size=\\\"large\\\"\\n    @class=\\\"c-settings-button--inside-header\\\"\\n    @icon=\\\"low_priority\\\"\\n  />\\n  {{#if this.showRowCreateSettingsMenu}}\\n    <XDropdown\\n      @onClickAction={{this.toggleShowRowCreateSettingsMenu}}\\n      @onLeaveAction={{this.hideRowCreateSettingsMenu}}\\n    >\\n      <ColumnSettingsMenu\\n        @classPosition=\\\"l-list-view-create-details__settings-dropdown\\\"\\n        @columns={{this.plainRows}}\\n        @groupName=\\\"view-create-details\\\"\\n        @modelName=\\\"row-create\\\"\\n        @hide={{this.hideRowCreate}}\\n        @show={{this.showRowCreate}}\\n      />\\n    </XDropdown>\\n  {{/if}}\\n</Shared::PortalContent>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-create/details/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { filterBy } from '@ember/object/computed';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectRenderingDataCollectionListViewCreateNewBelongsToController extends Controller {\n  @tracked _hasFormErrors = false;\n\n  @action\n  handleFormValidityChange(hasErrors) {\n    this._hasFormErrors = hasErrors;\n  }\n\n  @filterBy('rows', 'isVisible', true) visibleRows;\n  queryParams = ['polymorphic'];\n\n  @computed('model.collection', 'model.field.{isPolymorphic,referenceModel}')\n  get sourceCollection() {\n    return this.model.field.isPolymorphic ? this.model.collection : this.model.field.referenceModel;\n  }\n\n  @computed('model.collection.displayNameLowerCase')\n  get panelTitle() {\n    return `Create a new ${this.model?.collection?.displayNameLowerCase}`;\n  }\n\n  @computed(\n    'model.field.referenceModel.displayNameLowerCase',\n    'sourceCollection.displayNameLowerCase',\n  )\n  get panelSubtitle() {\n    return `Create a new ${this.sourceCollection?.displayNameLowerCase}`;\n  }\n\n  @computed(\n    'model.field.referenceModel.viewCreate.rowCreates.[]',\n    'sourceCollection.viewCreate.rowCreates',\n  )\n  get hasManyRows() {\n    return this.sourceCollection.viewCreate.rowCreates\n      .filter((rowEdit) => !rowEdit.get('displayAsRow'))\n      .sortBy('field.displayName');\n  }\n\n  @computed(\n    'hasManyRows',\n    'model.field.referenceModel.viewCreate.rowCreates.@each.position',\n    'sourceCollection.viewCreate.rowCreates',\n    'sourceCollectionviewCreate.rowCreates',\n  )\n  get rows() {\n    return this.sourceCollection.viewCreate.rowCreates\n      .filter((rowEdit) => !rowEdit.get('field.integration') && !this.hasManyRows.includes(rowEdit))\n      .sortBy('position');\n  }\n}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport ViewEditRelationshipCreateRoute from 'client/legacy/abstract-routes/view-edit-relationship-create-route';\n\nexport default class ProjectRenderingDataCollectionListViewCreateNewBelongsToRoute extends ViewEditRelationshipCreateRoute {\n  @service router;\n  @service store;\n  @service('feature/client-record') clientRecordFeature;\n\n  async model(params) {\n    // jshint sub: true\n    const fieldId = params.field_id;\n    const parentModel = this.modelFor('project.rendering.data.collection.list.view-create.details');\n    const polymorphicModelName = params.polymorphic;\n\n    const field = await this.store.findRecord('field', fieldId);\n    if (polymorphicModelName) {\n      const collection = await this.store.findRecord('collection', polymorphicModelName);\n\n      const newRecord = this.store.createRecord(collection?.emberModelName);\n\n      return hash({\n        collection,\n        parentRecord: parentModel.record,\n        record: newRecord,\n        field,\n      });\n    }\n\n    const newRecord = this.store.createRecord(field.get('referenceModel.emberModelName'));\n\n    return hash({\n      collection: parentModel.collection,\n      parentRecord: parentModel.record,\n      record: newRecord,\n      field,\n    });\n  }\n\n  @action\n  async save(callback) {\n    const model = this.modelFor(this.routeName);\n    const { record, parentRecord, field } = model;\n\n    const isRecordValid = await this.clientRecordFeature.validateRecord(record);\n\n    if (isRecordValid) {\n      parentRecord[field.attributeNameWithRelationships] = record;\n      await this.router.transitionTo('project.rendering.data.collection.list.view-create.details');\n    }\n\n    callback();\n  }\n\n  @action\n  cancel() {\n    const model = this.modelFor(this.routeName);\n    const { record } = model;\n\n    record.rollbackAttributes();\n    this.router.transitionTo('project.rendering.data.collection.list.view-create.details');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-overlay__sidepage__content l-overlay__sidepage--scroll l-dpa\\\">\\n  <DataDisplay::Record::Details\\n    @collection={{this.sourceCollection}}\\n    @record={{this.model.record}}\\n    @rows={{this.visibleRows}}\\n    @disableNested={{true}}\\n    @parentRecord={{this.model.parentRecord}}\\n    @parentCollection={{this.model.collection}}\\n    @prefilledRows={{this.prefilledRows}}\\n    @onFormValidityChange={{this.handleFormValidityChange}}\\n  />\\n</div>\\n\\n<Layout::LayoutFooter>\\n  <Shared::Button::BetaButton\\n    @type=\\\"secondary\\\"\\n    @action={{route-action \\'cancel\\'}}\\n    @text=\\\"Cancel\\\"\\n    @async={{false}}\\n  />\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @action={{route-action \\'save\\'}}\\n    @text=\\\"Create\\\"\\n    @disabled={{this._hasFormErrors}}\\n  />\\n</Layout::LayoutFooter>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-create/new-belongs-to/template.hbs' });\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\nimport { CreateRecordForbidden } from 'client/utils/errors/collection-errors/index';\n\n@preventLeavingWithoutSaving('record')\nexport default class ProjectRenderingDataCollectionListViewCreateRoute extends Route {\n  @service currentUser;\n  @service recordDuplicator;\n  @service store;\n\n  model(params) {\n    const collection = this.store\n      .peekAll('collection')\n      .find(\n        ({ id, shareableId }) =>\n          id === params.create_collection_id || shareableId === params.create_collection_id,\n      );\n\n    const record =\n      this.recordDuplicator.get('record')\n      || this.store.createRecord(collection.get('emberModelName'));\n\n    this.recordDuplicator.set('record', null);\n\n    return hash({\n      collection,\n      record,\n    });\n  }\n\n  afterModel(model, transition) {\n    const showCreate = this.currentUser.canAddCollection(model.collection);\n\n    if (!showCreate) {\n      throw new CreateRecordForbidden();\n    }\n\n    return super.afterModel(model, transition);\n  }\n\n  @action\n  reorderRows(newOrderRowCreates) {\n    const model = this.modelFor(this.routeName);\n    const rows = model.collection.get('viewCreate.rowCreates');\n\n    rows.forEach((row) => {\n      const position = newOrderRowCreates.indexOf(row);\n      if (position > -1) {\n        row.set('position', position);\n\n        if (row.get('hasDirtyAttributes')) {\n          row.save();\n        }\n      }\n    });\n  }\n\n  shouldIgnorePreventLeavingForTransition(transition) {\n    // NOTICE: ignore transition with rendering.data.collection.list.view-create\n    return transition.to.name.includes('project.rendering.data.collection.list.view-create');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailOverlay>\\n  <BetaHeader\\n    @hasSideMenu={{true}}\\n    @menuItems={{this.menuItems}}\\n    data-test-controller-project-rendering-data-collection-list-view-create-header\\n  >\\n    <:search-and-filter as |portalClass|>\\n      <Shared::PortalFor\\n        @name=\\\"view-create-search-and-filter\\\"\\n        class={{portalClass}}\\n        data-test-controller-project-rendering-data-collection-list-view-create-header-search-and-filter-portal\\n      />\\n    </:search-and-filter>\\n    <:right-buttons as |portalClass|>\\n      <Shared::PortalFor\\n        @name=\\\"view-create-actions\\\"\\n        class={{portalClass}}\\n        data-test-controller-project-rendering-data-collection-list-view-create-header-actions-portal\\n      />\\n    </:right-buttons>\\n  </BetaHeader>\\n\\n  {{outlet}}\\n</LayoutDetail::LayoutDetailOverlay>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-create/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport { singularize } from 'ember-inflector';\n\nexport default class ProjectRenderingDataCollectionListViewCreateViewHasManyEmbeddedCreateController extends Controller {\n  @tracked _hasFormErrors = false;\n\n  @action\n  handleFormValidityChange(hasErrors) {\n    this._hasFormErrors = hasErrors;\n  }\n\n  @service errorHandler;\n  @service router;\n  @service toastr;\n\n  transitionToAfterAction =\n    'project.rendering.data.collection.list.view-create.view-has-many-embedded';\n\n  @alias('model.row.field') field;\n\n  @computed('model.collection.displayNameLowerCase')\n  get panelTitle() {\n    return `Create a new ${this.model.collection.displayNameLowerCase}`;\n  }\n\n  @computed('field.displayName')\n  get panelSubtitle() {\n    return `Create a new ${singularize(this.field.displayName)}`;\n  }\n\n  @action\n  async create(callback) {\n    this.model.records.pushObject(this.newNestedRecord);\n    this.router.transitionTo(this.transitionToAfterAction);\n\n    callback();\n  }\n\n  @action\n  cancel() {\n    this.router.transitionTo(this.transitionToAfterAction);\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { namespace } from 'client/utils/string-utils';\n\nexport default class ProjectRenderingDataCollectionListViewCreateViewHasManyEmbeddedCreateRoute extends Route {\n  @service store;\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    controller.set(\n      'newNestedRecord',\n      this.store.createFragment(namespace(model.row.field.embeddedCollectionName, '-')),\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailBody @model={{this.model}} @isNew={{true}}>\\n  <RightPanelBody>\\n    <DataDisplay::Record::Details\\n      @collection={{this.field.nestedOrReferencedCollection}}\\n      @record={{this.newNestedRecord}}\\n      @rows={{this.field.nestedOrReferencedCollection.viewCreate.visibleRowCreates}}\\n      @disableNested={{false}}\\n      @parentCollection={{this.field.collection}}\\n      @parentRecord={{this.model.parentRecord}}\\n      @onFormValidityChange={{this.handleFormValidityChange}}\\n    />\\n  </RightPanelBody>\\n\\n  <Layout::LayoutFooter>\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @text=\\\"Cancel\\\"\\n      @action={{this.cancel}}\\n      @async={{false}}\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @text=\\\"Create\\\"\\n      @action={{this.create}}\\n      @disabled={{this._hasFormErrors}}\\n    />\\n  </Layout::LayoutFooter>\\n</LayoutDetail::LayoutDetailBody>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many-embedded/create/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias, not } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport { pluralize } from 'ember-inflector';\n\nexport default class ProjectRenderingDataCollectionListViewCreateViewHasManyEmbeddedIndexController extends Controller {\n  @service betaCollectionListCommunicator;\n\n  @tracked betaCollectionListId = this.betaCollectionListCommunicator.generateInteractionId();\n  @tracked selectedRecordsCount = 0;\n\n  @alias('model.row.field') field;\n  @not('model.row.field.isReadOnly') actionsEnabled;\n\n  @computed('model.collection.displayNameLowerCase')\n  get panelTitle() {\n    return `Create a new ${this.model.collection.displayNameLowerCase}`;\n  }\n\n  @computed('field.displayNameTitlize')\n  get panelSubtitle() {\n    return pluralize(this.field.displayNameTitlize);\n  }\n\n  @action\n  handleDeleteEmbeddedDocuments() {\n    return this.betaCollectionListCommunicator.deleteRecords(this.betaCollectionListId);\n  }\n\n  @action\n  handleSelectedRecordsChange({ selectedRecordsCount }) {\n    this.selectedRecordsCount = selectedRecordsCount;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"view-create-actions\\\">\\n  {{#if this.actionsEnabled}}\\n    {{#if this.selectedRecordsCount}}\\n      <Dropdown::DropdownActions class=\\\"c-collection-list-header__action\\\">\\n        {{#if this.selectedRecordsCount}}\\n          <Form::Dropdown::Action\\n            @isDanger={{true}}\\n            @name=\\\"Remove\\\"\\n            @onClick={{this.handleDeleteEmbeddedDocuments}}\\n          />\\n        {{/if}}\\n      </Dropdown::DropdownActions>\\n    {{/if}}\\n\\n    <Shared::Button::BetaButton\\n      @action={{route-action \\'transitionToCreationForm\\'}}\\n      @async={{false}}\\n      @text=\\\"Create a new {{word-singularize (lowercase-text this.field.displayName)}}\\\"\\n      @type=\\\"secondary\\\"\\n      class=\\\"c-collection-list-header__action\\\"\\n    />\\n  {{/if}}\\n</Shared::PortalContent>\\n<LayoutDetail::LayoutDetailBody @isNew={{true}} @model={{this.model}}>\\n  <RightPanelBody @noPadding={{true}} @noScroll={{true}}>\\n    <DataDisplay::BetaCollectionList\\n      @betaCollectionListId={{this.betaCollectionListId}}\\n      @record={{this.model.parentRecord}}\\n      @modelToFetch={{this.field}}\\n      @onSelectedRecordsChange={{this.handleSelectedRecordsChange}}\\n      @openCreateRecord={{unless\\n        this.field.isReadOnly\\n        (action-link-to\\n          \\'project.rendering.data.collection.list.view-create.view-has-many-embedded.create\\'\\n        )\\n      }}\\n    />\\n  </RightPanelBody>\\n</LayoutDetail::LayoutDetailBody>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many-embedded/index/template.hbs' });\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nexport default class ProjectRenderingDataCollectionListViewCreateViewHasManyEmbeddedRoute extends Route {\n  @service router;\n  @service store;\n\n  model(params) {\n    const rowId = params.row_create_id;\n    const parentModel = this.modelFor('project.rendering.data.collection.list.view-create');\n\n    const row = this.store.peekRecord('rowCreate', rowId);\n    const fieldName = row.get('field.attributeName');\n    return hash({\n      collection: parentModel.collection,\n      record: parentModel.record,\n      records: parentModel.record.get(fieldName),\n      row,\n      parentRecord: parentModel.record,\n    });\n  }\n\n  @action\n  transitionToCreationForm() {\n    this.router.transitionTo(\n      'project.rendering.data.collection.list.view-create.view-has-many-embedded.create',\n    );\n  }\n}\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { equal } from '@ember/object/computed';\nimport { singularize } from 'ember-inflector';\n\nexport default class ProjectRenderingDataCollectionListViewCreateViewHasManyAddController extends Controller {\n  @equal('selectedValue', null) selectedValueEmpty;\n\n  @computed('model.collection.displayName')\n  get recordIdentifier() {\n    return `Create a new ${this.model.collection.displayName}`;\n  }\n\n  @computed('model.row.field.displayName')\n  get panelTitle() {\n    return `Add an existing ${singularize(this.model.row.field.displayName)}`;\n  }\n\n  @action\n  addToRecords(callback) {\n    this.send('addAssociatedRecord', this.selectedValue, callback);\n  }\n}\n","import Route from '@ember/routing/route';\n\nexport default class ProjectRenderingDataCollectionListViewCreateViewHasManyAddRoute extends Route {\n  setupController(controller, model) {\n    controller.set('selectedValue', null);\n    super.setupController(controller, model);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailBody @model={{@model}} @isNew={{true}}>\\n  <RightPanelBody>\\n    <BetaForm::AddExistingRecord\\n      @field={{@model.row.field}}\\n      @onChange={{fn (mut this.selectedValue)}}\\n    />\\n  </RightPanelBody>\\n\\n  <Layout::LayoutFooter>\\n    <Shared::Button::BetaButton\\n      @type=\\\"secondary\\\"\\n      @text=\\\"Cancel\\\"\\n      @action={{route-action \\'cancel\\'}}\\n      @async={{false}}\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @action={{this.addToRecords}}\\n      @text=\\\"Add\\\"\\n      @disabled={{this.selectedValueEmpty}}\\n    />\\n  </Layout::LayoutFooter>\\n</LayoutDetail::LayoutDetailBody>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many/add/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectRenderingDataCollectionListViewCreateViewHasManyCreateController extends Controller {\n  @tracked _hasFormErrors = false;\n\n  @action\n  handleFormValidityChange(hasErrors) {\n    this._hasFormErrors = hasErrors;\n  }\n\n  @alias('model.row.field.referenceModel.viewCreate') viewCreate;\n  @alias('viewCreate.plainRows') plainRows;\n  @alias('viewCreate.visibleRowCreates') visibleRowCreates;\n\n  @computed('model.collection.displayNameLowerCase')\n  get recordIdentifier() {\n    return `Create a new ${this.model.collection.displayNameLowerCase}`;\n  }\n\n  @computed('model.row.field.referenceModel.displayNameLowerCase')\n  get panelTitle() {\n    return `Create a new ${this.model.row.field.referenceModel.displayNameLowerCase}`;\n  }\n}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport ViewEditRelationshipCreateRoute from 'client/legacy/abstract-routes/view-edit-relationship-create-route';\n\nexport default class ProjectRenderingDataCollectionListViewCreateViewHasManyCreateRoute extends ViewEditRelationshipCreateRoute {\n  @service store;\n  @service router;\n  @service('feature/client-record') clientRecordFeature;\n  @service('shared/route-transition-handler') routeTransitionHandler;\n\n  shouldRecordBeDeleted = true;\n\n  model() {\n    const parentModel = this.modelFor(\n      'project.rendering.data.collection.list.view-create.view-has-many',\n    );\n\n    const newRecord = this.store.createRecord(\n      parentModel.row.get('field.referenceModel.emberModelName'),\n    );\n\n    return hash({\n      collection: parentModel.collection,\n      parentRecord: parentModel.record,\n      row: parentModel.row,\n      record: newRecord,\n      field: parentModel.row.field,\n    });\n  }\n\n  @action\n  async willTransition(transition) {\n    const handled = await this.routeTransitionHandler.handleWillTransition(transition);\n    if (handled) return false;\n\n    const model = this.modelFor(this.routeName);\n    if (model.record && this.shouldRecordBeDeleted) {\n      model.record.rollbackAttributes();\n    }\n    this.shouldRecordBeDeleted = true;\n    return true;\n  }\n\n  @action\n  async saveNewRecord() {\n    const model = this.modelFor(this.routeName);\n\n    const isRecordValid = this.clientRecordFeature.validateRecord(model.record);\n    if (!isRecordValid) return;\n\n    await this.clientRecordFeature.addRecordToAssociation(\n      model.parentRecord,\n      model.field,\n      model.record,\n    );\n    this.shouldRecordBeDeleted = false;\n    this.router.transitionTo('project.rendering.data.collection.list.view-create.view-has-many');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailBody @model={{@model}} @isNew={{true}}>\\n  <RightPanelBody>\\n    <DataDisplay::Record::Details\\n      @collection={{@model.row.field.referenceModel}}\\n      @record={{@model.record}}\\n      @rows={{this.visibleRowCreates}}\\n      @disableNested={{true}}\\n      @prefilledRows={{this.prefilledRows}}\\n      @onFormValidityChange={{this.handleFormValidityChange}}\\n    />\\n  </RightPanelBody>\\n  <Layout::LayoutFooter>\\n    <Shared::Button @type=\\\"ghost\\\" @text=\\\"Cancel\\\" @onClick={{route-action \\'cancel\\'}} />\\n    <Shared::Button\\n      @type=\\\"primary\\\"\\n      @onClick={{route-action \\'saveNewRecord\\'}}\\n      @text=\\\"Create\\\"\\n      disabled={{this._hasFormErrors}}\\n    />\\n  </Layout::LayoutFooter>\\n</LayoutDetail::LayoutDetailBody>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many/create/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionListViewCreateViewHasManyIndexController extends Controller {\n  @service currentUser;\n\n  recordsPerPage = 20;\n  @alias('model.row.field.referenceModel.displayName') displayName;\n  @alias('model.row.field') field;\n  @alias('field.referenceModel.tableView') tableView;\n  @alias('field.referenceModel.columnsOrdered') columns;\n  @alias('field.referenceModel.columnsVisibleOrdered') columnsVisible;\n\n  @computed('model.collection.displayNameLowerCase')\n  get panelTitle() {\n    return `Create a new ${this.model.collection.displayNameLowerCase}`;\n  }\n\n  @computed('records.length', 'recordsPerPage')\n  get numberOfPages() {\n    return Math.ceil(this.records.length / this.recordsPerPage);\n  }\n\n  @computed('records.@each.isSelected')\n  get selectedRecords() {\n    if (!this.records) {\n      return [];\n    }\n    return this.records.filterBy('isSelected');\n  }\n\n  @computed(\n    'currentUser',\n    'model.collection.collectionPermissions.addEnabled',\n    'model.row.field.isReadOnly',\n  )\n  get actionsEnabled() {\n    return (\n      this.currentUser.canAddCollection(this.model.collection) && !this.model.row.field.isReadOnly\n    );\n  }\n\n  @computed('currentUser', 'model.row.field.referenceModel.collectionPermissions.addEnabled')\n  get showCreateActionInActionMenu() {\n    return this.currentUser.canAddCollection(this.model.row.field.referenceModel);\n  }\n\n  @action\n  removeAssociations() {\n    this.records.removeObjects(this.selectedRecords);\n  }\n}\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionListViewCreateViewHasManyIndexRoute extends Route {\n  @service router;\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    controller.set(\n      'records',\n      model.record.get(model.row.get('field.attributeNameWithRelationships')),\n    );\n    controller.set('currentPage', 1);\n  }\n\n  @action\n  add() {\n    this.router.transitionTo(\n      'project.rendering.data.collection.list.view-create.view-has-many.add',\n    );\n  }\n\n  @action\n  create() {\n    this.router.transitionTo(\n      'project.rendering.data.collection.list.view-create.view-has-many.create',\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"view-create-actions\\\">\\n  {{#if this.selectedRecords.length}}\\n    <Dropdown::DropdownActions class=\\\"c-collection-list-header__action\\\">\\n      <Form::Dropdown::Action\\n        @isDanger={{true}}\\n        @name=\\\"Remove\\\"\\n        @onClick={{this.removeAssociations}}\\n      />\\n    </Dropdown::DropdownActions>\\n  {{/if}}\\n\\n  {{#unless @model.row.field.integration}}\\n    {{#if this.actionsEnabled}}\\n      <Button::BetaCreateHasManyButton\\n        @addExistingRecord={{route-action \\'add\\'}}\\n        @collection={{this.field.referenceModel}}\\n        @createNewRecord={{route-action \\'create\\'}}\\n        class=\\\"c-collection-list-header__action\\\"\\n      />\\n    {{/if}}\\n  {{/unless}}\\n</Shared::PortalContent>\\n<LayoutDetail::LayoutDetailBody @isNew={{true}} @model={{@model}}>\\n  <RightPanelBody @noPadding={{true}} @noScroll={{true}}>\\n    <DataDisplay::TableView\\n      @canEdit={{false}}\\n      @collection={{this.field.referenceModel}}\\n      @columns={{this.columns}}\\n      @columnsVisible={{this.columnsVisible}}\\n      @currentPage={{this.currentPage}}\\n      @deleteRecords={{route-action \\'deleteRecords\\'}}\\n      @disableFiltering={{true}}\\n      @disableSorting={{true}}\\n      @displayNamePlural={{this.field.displayName}}\\n      @isLoading={{false}}\\n      @numberOfPages={{this.numberOfPages}}\\n      @openCreateRecord={{if\\n        (and this.actionsEnabled this.showCreateActionInActionMenu)\\n        (action-link-to \\'project.rendering.data.collection.list.view-create.view-has-many.create\\')\\n      }}\\n      @onRowClick={{(do-nothing-function)}}\\n      @records={{this.records}}\\n      @recordsCount={{@recordsCount}}\\n      @sortedField={{@sortedField}}\\n      @updateColumn={{route-action \\'updateColumn\\'}}\\n      @viewList={{@viewList}}\\n      @withNoBorderTop={{true}}\\n    />\\n  </RightPanelBody>\\n</LayoutDetail::LayoutDetailBody>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-create/view-has-many/index/template.hbs' });\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nexport default class ProjectRenderingDataCollectionListViewCreateViewHasManyRoute extends Route {\n  @service router;\n  @service store;\n  @service('feature/client-record') clientRecordFeature;\n\n  model(params) {\n    // jshint sub: true\n    const rowId = params.row_create_id;\n    const parentModel = this.modelFor('project.rendering.data.collection.list.view-create');\n\n    const row = this.store.peekRecord('rowCreate', rowId);\n    return hash({\n      collection: parentModel.collection,\n      record: parentModel.record,\n      row,\n    });\n  }\n\n  @action\n  async addAssociatedRecord(associatedRecord, callback) {\n    const model = this.modelFor(this.routeName);\n\n    const { record } = model;\n\n    await this.clientRecordFeature.addRecordToAssociation(\n      record,\n      model.row.get('field'),\n      associatedRecord,\n    );\n\n    callback(\n      this.router.transitionTo('project.rendering.data.collection.list.view-create.view-has-many'),\n    );\n  }\n\n  @action\n  cancel() {\n    this.router.transitionTo('project.rendering.data.collection.list.view-create.view-has-many');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailOverlay>\\n  <BetaHeader @menuItems={{(array)}} />\\n  <LayoutDetail::LayoutDetailBody @showSideMenu={{false}}>\\n    <Layout::LayoutLoader @type=\\\"data\\\" />\\n  </LayoutDetail::LayoutDetailBody>\\n</LayoutDetail::LayoutDetailOverlay>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit-loading/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectRenderingDataCollectionListViewEditActivityIndexController extends Controller {\n  @service abilities;\n  @service router;\n\n  queryParams = ['activitiesPage'];\n\n  @tracked searchValue;\n\n  get canAccessToActivityLogs() {\n    return this.abilities.can('access to activityLogs');\n  }\n\n  get record() {\n    return this.model.record;\n  }\n\n  get collection() {\n    return this.model.collection;\n  }\n\n  @action\n  goToDetails() {\n    this.router.transitionTo('project.rendering.data.collection.list.view-edit.details');\n  }\n\n  @action\n  async searchFunction(value) {\n    this.searchValue = value;\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'activityLogs',\n  redirectionIfFeatureNotActivated:\n    'project.rendering.data.collection.list.view-edit.activity.preview',\n})\nexport default class ProjectRenderingDataCollectionListViewEditActivityIndexRoute extends Route {\n  @service segment;\n  @service lianaSession;\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    this.segment.trackEvent('Access Activity', {\n      collectionId: model.collection?.id,\n      collectionName: model.collection?.singularizedDisplayName,\n      recordId: model.record?.id,\n      teamId: this.lianaSession.currentTeam?.id,\n    });\n  }\n\n  resetController(controller, isExiting) {\n    if (isExiting) {\n      controller.searchValue = null;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"view-edit-search-and-filter\\\">\\n  {{#if this.canAccessToActivityLogs}}\\n    <Shared::BetaSearchBar\\n      @searchFunction={{this.searchFunction}}\\n      @placeholder=\\\"Search for activities...\\\"\\n      class=\\\"c-beta-search-bar--flexible\\\"\\n    />\\n  {{/if}}\\n</Shared::PortalContent>\\n\\n<Feature::ActivityLog::ActivityLogBrowser\\n  @page={{this.activitiesPage}}\\n  @searchValue={{this.searchValue}}\\n  @cancel={{this.goToDetails}}\\n  @collectionNameLowerCase={{this.model.collection.displayNameLowerCase}}\\n  @collection={{this.collection}}\\n  @record={{this.record}}\\n/>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/activity/index/template.hbs' });\n","import Route from '@ember/routing/route';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'activityLogs',\n  redirectionIfFeatureActivated: 'project.rendering.data.collection.list.view-edit.activity',\n})\nexport default class ProjectRenderingDataCollectionListViewEditActivityPreviewRoute extends Route {\n  titleToken = 'Premium Feature';\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    if (model.collection && model.record) {\n      controller.featureParams = `${model.collection.shareableId},${model.collection.shareableId},${model.record.id}`;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::PreviewActivityLog\\n  @featureCallbackRoute=\\\"project.rendering.data.collection.list.view-edit.activity\\\"\\n  @featureParams={{this.featureParams}}\\n/>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/activity/preview/template.hbs' });\n","import Route from '@ember/routing/route';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'recordDashboard',\n  redirectionIfFeatureActivated: 'project.rendering.data.collection.list.view-edit.analytics',\n})\nexport default class ProjectRenderingDataCollectionListViewEditAnalyticsPreviewRoute extends Route {\n  titleToken = 'Premium Feature';\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    if (model.collection && model.record) {\n      controller.featureParams = `${model.collection.shareableId},${model.collection.shareableId},${model.record.id}`;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::PreviewAnalytics @featureParams={{this.featureParams}} />\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/preview/template.hbs' });\n","import ChartController from 'client/legacy/abstract-controllers/chart-controller';\n\nexport default class ProjectRenderingDataCollectionListViewEditAnalyticsViewChartCreateController extends ChartController {}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\nimport { v1 as uuidv1 } from 'uuid';\n\nimport ChartRoute from 'client/legacy/abstract-routes/chart-route';\n\nexport default class ProjectRenderingDataCollectionListViewEditAnalyticsViewChartCreateRoute extends ChartRoute {\n  @service router;\n  @service store;\n\n  model() {\n    const analyticsModel = this.modelFor(\n      'project.rendering.data.collection.list.view-edit.analytics',\n    );\n    const viewEdit = analyticsModel.collection.get('viewEdit');\n\n    const chart = this.store.createRecord('chart', {\n      id: uuidv1(),\n      viewEdit,\n      allowJavascript: false,\n    });\n    chart.recordId = analyticsModel.record.get('id');\n    return hash({\n      chart,\n      rendering: analyticsModel.collection.get('rendering'),\n    });\n  }\n\n  @action\n  closeModal() {\n    this.router.transitionTo('project.rendering.data.collection.list.view-edit.analytics');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel @title=\\\"Add a new chart\\\" @close={{route-action \\'closeModal\\'}}>\\n  <Chart::ChartForm\\n    @sidepageClass=\\\"l-overlay__sidepage--inRecord\\\"\\n    @chart={{this.chart}}\\n    @saveChart={{route-action \\'saveChart\\' this.chart}}\\n    @mustDisableSimple={{true}}\\n    @featureCallbackRoute=\\\"project.rendering.data.collection.list.view-edit.analytics.view.chart.create\\\"\\n  />\\n</Shared::BetaRightPanel>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/chart/create/template.hbs' });\n","import ChartController from 'client/legacy/abstract-controllers/chart-controller';\n\nexport default class ProjectRenderingDataCollectionListViewEditAnalyticsViewChartEditController extends ChartController {}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport ChartRoute from 'client/legacy/abstract-routes/chart-route';\n\nexport default class ProjectRenderingDataCollectionListViewEditAnalyticsViewChartEditRoute extends ChartRoute {\n  @service router;\n  @service store;\n\n  model(params) {\n    const chart = this.store.peekRecord('chart', params.chart_id);\n    if (chart) {\n      const analyticsModel = this.modelFor(\n        'project.rendering.data.collection.list.view-edit.analytics',\n      );\n\n      return hash({\n        chart,\n        rendering: analyticsModel.collection.get('rendering'),\n      });\n    }\n    this.router.transitionTo('project.rendering.data.collection.list.view-edit.analytics');\n    return null;\n  }\n\n  @action\n  closeModal() {\n    this.router.transitionTo('project.rendering.data.collection.list.view-edit.analytics');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaRightPanel\\n  @title=\\\"Chart {{this.chart.name}} settings\\\"\\n  @close={{route-action \\'closeModal\\'}}\\n  @extraActions={{array\\n    (hash name=\\'Delete chart\\' onClick=(route-action \\'destroyChart\\' this.chart) isDanger=true)\\n  }}\\n>\\n  <Chart::ChartForm\\n    @sidepageClass=\\\"l-overlay__sidepage--inRecord\\\"\\n    @chart={{this.chart}}\\n    @saveChart={{route-action \\'saveChart\\' this.chart}}\\n    @mustDisableSimple={{true}}\\n    @featureCallbackRoute=\\\"project.rendering.data.collection.list.view-edit.analytics.view.chart.edit\\\"\\n  />\\n</Shared::BetaRightPanel>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/chart/edit/template.hbs' });\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport SmartChartEditorRoute from 'client/legacy/abstract-routes/smart-chart-editor-route';\n\nexport default class ProjectRenderingDataCollectionListViewEditAnalyticsViewChartSmartEditRoute extends SmartChartEditorRoute {\n  @service router;\n\n  async model(params, transition) {\n    const { chart } = await super.model(params, transition);\n\n    const parentModel = this.modelFor(\n      'project.rendering.data.collection.list.view-edit.analytics.view',\n    );\n\n    return { ...parentModel, chart };\n  }\n\n  @action\n  onCloseNavigationBar() {\n    return this.router.transitionTo('project.rendering.data.collection.list.view-edit.analytics');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"application-view-overlay\\\">\\n  <SmartEditor\\n    @hideComponent={{not this.smartChart.allowJavascript}}\\n    @record={{this.smartChart}}\\n    @save={{route-action \\'saveChart\\' this.smartChart}}\\n    @AutoCompleteHelperClass={{this.AutoCompleteViewHelper}}\\n    @hideSettings={{true}}\\n    as |tempComponentName|\\n  >\\n    {{component tempComponentName record=this.model.record}}\\n  </SmartEditor>\\n</Shared::PortalContent>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/chart/smart-edit/template.hbs' });\n","import Controller from '@ember/controller';\nimport { alias, sort } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectRenderingDataCollectionListViewEditAnalyticsViewController extends Controller {\n  @service currentUser;\n  /** @type {import('client/legacy/services/plan-service').default} */\n  @service planService;\n  /** @type {import('@ember/routing').Router} */\n  @service router;\n\n  @tracked isLoading = true;\n\n  @alias('model.environment') environment;\n  @alias('model.billing') billing;\n\n  chartSorting = ['x', 'y'];\n\n  @sort('charts', 'chartSorting') chartsOrdered;\n\n  get charts() {\n    return this.model.collection.viewEdit.charts.filter((chart) => !chart.get('isNew'));\n  }\n}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\nimport ChartRoute from 'client/legacy/abstract-routes/chart-route';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'recordDashboard',\n  redirectionIfFeatureNotActivated:\n    'project.rendering.data.collection.list.view-edit.analytics.preview',\n})\nexport default class ProjectRenderingDataCollectionListViewEditAnalyticsViewRoute extends ChartRoute {\n  @service currentUser;\n  @service eventBus;\n  @service router;\n  @service segment;\n  @service lianaSession;\n\n  setupController(controller, model) {\n    controller.set('isLoading', true);\n    super.setupController(controller, model);\n\n    this.segment.trackEvent('Access Record Analytics', {\n      collectionId: model.collection?.id,\n      collectionName: model.collection?.singularizedDisplayName,\n      recordId: model.record?.id,\n      teamId: this.lianaSession.currentTeam?.id,\n    });\n\n    this.fetchStats();\n  }\n\n  @action\n  addChart() {\n    this.set('currentUser.editMode', true);\n    this.router.transitionTo(\n      'project.rendering.data.collection.list.view-edit.analytics.view.chart.create',\n    );\n  }\n\n  @action\n  editChart(chart) {\n    this.router.transitionTo(\n      'project.rendering.data.collection.list.view-edit.analytics.view.chart.edit',\n      chart.get('id'),\n    );\n  }\n\n  @action\n  goToRouteDetails() {\n    this.router.transitionTo('project.rendering.data.collection.list.view-edit.details');\n  }\n\n  fetchStats() {\n    const model = this.modelFor(this.routeName);\n    const { charts } = model.collection.viewEdit;\n    const recordId = model.record.id;\n    const controller = this.controllerFor(this.routeName);\n\n    charts.forEach((chart) => {\n      chart.recordId = recordId;\n    });\n\n    this.eventBus.trigger('chart.refresh');\n\n    controller.isLoading = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"view-edit-actions\\\">\\n  {{#if (and this.currentUser.editMode (can \\'access to recordDashboard\\'))}}\\n    <Shared::Button::BetaButton\\n      @type=\\\"editor\\\"\\n      @text=\\\"Add chart\\\"\\n      @action={{route-action \\'addChart\\'}}\\n      @async={{false}}\\n    />\\n  {{/if}}\\n</Shared::PortalContent>\\n\\n{{outlet}}\\n\\n<div class=\\\"c-analytics-view\\\">\\n  {{#if this.isLoading}}\\n    <Layout::LayoutLoader @type=\\\"data\\\" />\\n  {{else}}\\n    {{#if this.chartsOrdered.length}}\\n      <Chart::ChartGrid\\n        @isEditMode={{this.currentUser.editMode}}\\n        @charts={{this.chartsOrdered}}\\n        @editChartAction={{route-action \\'editChart\\'}}\\n        @record={{this.model.record}}\\n      />\\n    {{else}}\\n      <Layout::LayoutListEmpty\\n        @icon=\\\"dashboard\\\"\\n        @title=\\\"No Charts\\\"\\n        @text=\\\"You haven\\'t setup any charts yet.\\\"\\n      >\\n        {{#if this.currentUser.canEditLayout}}\\n          <Shared::Button::BetaButton\\n            @type=\\\"editor\\\"\\n            @text=\\\"Create your first chart\\\"\\n            @action={{route-action \\'addChart\\'}}\\n            @async={{false}}\\n            class=\\\"c-analytics-view__create-button\\\"\\n          />\\n        {{/if}}\\n      </Layout::LayoutListEmpty>\\n    {{/if}}\\n  {{/if}}\\n</div>\\n\\n{{#if (cannot \\'access to recordDashboard\\')}}\\n  <Modal::ModalUpgradeToPaidPlan\\n    @cancel={{route-action \\'goToRouteDetails\\'}}\\n    @featureName=\\\"recordDashboard\\\"\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/analytics/view/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<RightPanelBody @extraClasses=\\\"l-overlay__sidepage__content--premium-feature\\\">\\n  <div class=\\\"note-loader-container\\\">\\n    <Layout::LayoutLoader @type=\\\"data\\\" />\\n  </div>\\n</RightPanelBody>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/index-loading/template.hbs' });\n","import Controller from '@ember/controller';\nimport { alias, filterBy, sort } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionListViewEditCollaborationIndexController extends Controller {\n  @service activityTracker;\n  @service toastr;\n  isLoading = false;\n  mentionables = null;\n  openedNote = null;\n  selectedNoteId = null;\n  @alias('model.environment') environment;\n  @alias('model.billing') billing;\n  @sort('model.notes', 'noteSorting') notesSorted;\n  @filterBy('notesSorted', 'isNew', false) notesToDisplay;\n\n  init(...args) {\n    super.init(...args);\n    this.set('noteSorting', ['createdAt:desc']);\n  }\n}\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { alias, reads } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectRenderingDataCollectionListViewEditCollaborationIndexCreateController extends Controller {\n  @service activityTracker;\n  @service currentUser;\n  @service tracker;\n  @service router;\n  @service toastr;\n\n  @alias('model') note;\n  @reads('note.recordId') recordId;\n  @reads('note.collection') collection;\n  @tracked mentionables = [];\n\n  @action\n  async createNoteAction(message, noteTitle) {\n    this.note.title = noteTitle || 'Untitled';\n    this.note.description = message;\n\n    try {\n      await this.note.save();\n\n      this.activityTracker.trackWrite({\n        action: 'createNote',\n        label: 'left a note on',\n        collection: this.note.collection,\n        recordIds: [this.note.recordId],\n      });\n\n      this.router.transitionTo(\n        'project.rendering.data.collection.list.view-edit.collaboration.index.show',\n        this.note.id,\n      );\n    } catch (error) {\n      this.tracker.captureException(error);\n      this.toastr.perform('error', 'An error occurred during the note creation.');\n    }\n  }\n\n  @action\n  handleCloseNote() {\n    this.router.transitionTo(\n      'project.rendering.data.collection.list.view-edit.collaboration.index',\n    );\n  }\n}\n","import { A } from '@ember/array';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionListViewEditCollaborationIndexCreateRoute extends Route {\n  @service currentUser;\n  @service store;\n\n  model() {\n    const modelParent = this.modelFor(\n      'project.rendering.data.collection.list.view-edit.collaboration.index',\n    );\n    const currentUser = this.store.peekRecord('user', this.currentUser.id);\n\n    return this.store.createRecord('note', {\n      author: currentUser,\n      team: this.currentUser.team,\n      collection: modelParent.collection,\n      recordId: modelParent.record.get('id'),\n      messagesCount: 1,\n      isUserAllRead: true,\n      messages: A([]),\n    });\n  }\n\n  setupController(controller, model, ...args) {\n    super.setupController(controller, model, ...args);\n    const modelParent = this.modelFor(\n      'project.rendering.data.collection.list.view-edit.collaboration.index',\n    );\n\n    return modelParent.project\n      .get('teams')\n      .then(() => modelParent.collection.get('mentionables'))\n      .then((mentionables) => controller.set('mentionables', mentionables));\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Collaboration::Note::NotePanel\\n  @messages={{readonly this.model.messages}}\\n  @title={{readonly this.model.title}}\\n  @author={{readonly this.currentUser.fullName}}\\n  @teamName={{readonly this.currentUser.team.name}}\\n  @mentionables={{readonly this.mentionables}}\\n  @sendMessageAction={{this.createNoteAction}}\\n  @onClickOutside={{this.handleCloseNote}}\\n/>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/index/create/template.hbs' });\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'collaboration',\n  redirectionIfFeatureNotActivated:\n    'project.rendering.data.collection.list.view-edit.collaboration.preview',\n})\nexport default class ProjectRenderingDataCollectionListViewEditCollaborationIndexRoute extends Route {\n  @service router;\n  @service segment;\n  @service lianaSession;\n\n  model() {\n    const model = this.modelFor('project.rendering.data.collection.list.view-edit');\n    return model.collection.queryRecords('notes', { recordId: model.record.id }).then((notes) => ({\n      project: model.project,\n      collection: model.collection,\n      record: model.record,\n      notes,\n      environment: model.environment,\n      billing: model.billing,\n    }));\n  }\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    this.segment.trackEvent('Access Collaboration', {\n      collectionId: model.collection?.id,\n      collectionName: model.collection?.singularizedDisplayName,\n      recordId: model.record?.id,\n      teamId: this.lianaSession.currentTeam?.id,\n    });\n  }\n\n  @action\n  newNote() {\n    this.router.transitionTo(\n      'project.rendering.data.collection.list.view-edit.collaboration.index.create',\n    );\n  }\n\n  @action\n  goToRouteDetails() {\n    this.router.transitionTo('project.rendering.data.collection.list.view-edit.details');\n  }\n}\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport { next } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectRenderingDataCollectionListViewEditCollaborationIndexShowController extends Controller {\n  @service activityTracker;\n  @service currentUser;\n  @service router;\n  @service store;\n  @service tracker;\n  @service toastr;\n\n  @reads('model.recordId') recordId;\n  @reads('model.collection') collection;\n\n  @tracked mentionables = [];\n\n  @action\n  setNoteRead() {\n    this.set('model.isUserAllRead', true);\n  }\n\n  @action\n  setNoteTitle(title) {\n    this.set('model.title', title || 'Untitled');\n\n    return this.model.save().catch((error) => {\n      this.tracker.captureException(error);\n      this.toastr.perform('error', 'An error occurred while saving the title.');\n    });\n  }\n\n  @action\n  createMessageAction(messageContent) {\n    const currentUser = this.store.peekRecord('user', this.currentUser.id);\n    const newMessage = this.store.createRecord('message', {\n      messageContent,\n      note: this.model,\n      author: currentUser,\n    });\n    return newMessage\n      .save()\n      .then(() =>\n        this.activityTracker.trackWrite({\n          action: 'createMessage',\n          label: 'left a message on',\n          collection: this.collection,\n          recordIds: [this.recordId],\n        }),\n      )\n      .then(() => {\n        // NOTICE: The run next prevents a weird error on message save.\n        next(() => this.model.incrementProperty('messagesCount'));\n      })\n      .catch((error) => {\n        this.tracker.captureException(error);\n        this.toastr.perform('error', 'An error occurred while sending the message.');\n      });\n  }\n\n  @action\n  async archiveNote() {\n    if (this.model.isNewNote) {\n      return;\n    }\n\n    try {\n      await this.model.destroyRecord();\n      this.activityTracker.trackWrite({\n        action: 'deleteNote',\n        label: 'deleted a note on',\n        collection: this.collection,\n        recordIds: [this.recordId],\n      });\n      this.toastr.perform('success', 'The note has successfully been archived.');\n      this.handleCloseNote();\n    } catch (error) {\n      this.tracker.captureException(error);\n      this.toastr.perform('error', 'An error occurred while archiving the note.');\n    }\n  }\n\n  @action\n  handleCloseNote() {\n    this.router.transitionTo(\n      'project.rendering.data.collection.list.view-edit.collaboration.index',\n    );\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionListViewEditCollaborationIndexShowRoute extends Route {\n  @service store;\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n    const modelParent = this.modelFor(\n      'project.rendering.data.collection.list.view-edit.collaboration.index',\n    );\n\n    if (!model.get('isUserAllRead')) {\n      const notification = this.store.peekRecord('notification', 1);\n      if (notification) {\n        notification.decrementProperty('count');\n      }\n    }\n\n    return modelParent.project\n      .get('teams')\n      .then(() => modelParent.collection.get('mentionables'))\n      .then((mentionables) => controller.set('mentionables', mentionables));\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Collaboration::Note::NotePanel\\n  @messages={{readonly this.model.messages}}\\n  @isUpdate={{true}}\\n  @title={{readonly this.model.title}}\\n  @author={{readonly this.model.author.fullName}}\\n  @teamName={{readonly this.model.team.name}}\\n  @mentionables={{readonly this.mentionables}}\\n  @setNoteRead={{this.setNoteRead}}\\n  @setNoteTitleAction={{this.setNoteTitle}}\\n  @sendMessageAction={{this.createMessageAction}}\\n  @archiveNoteAction={{this.archiveNote}}\\n  @onClickOutside={{this.handleCloseNote}}\\n/>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/index/show/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"view-edit-actions\\\">\\n  {{#if (can \\'access to collaboration\\')}}\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @text=\\\"Create a note\\\"\\n      @action={{route-action \\'newNote\\'}}\\n      @async={{false}}\\n    />\\n  {{/if}}\\n</Shared::PortalContent>\\n\\n{{outlet}}\\n\\n<RightPanelBody @extraClasses=\\\"l-overlay__sidepage__content--premium-feature\\\">\\n  {{#if this.notesToDisplay.length}}\\n    {{#each this.notesToDisplay as |note|}}\\n      <Collaboration::Note::NoteCard\\n        @noteId={{readonly note.id}}\\n        @collectionId={{readonly note.collection.shareableId}}\\n        @recordId={{readonly note.recordId}}\\n        @author={{readonly note.author.fullName}}\\n        @authorEmail={{readonly note.author.email}}\\n        @authorInitials={{readonly note.author.initials}}\\n        @title={{readonly note.title}}\\n        @teamName={{readonly note.team.name}}\\n        @content={{readonly note.description}}\\n        @updatedAt={{readonly note.lastMessageAt}}\\n        @isUserAllRead={{readonly note.isUserAllRead}}\\n        @messagesCount={{readonly note.messagesCount}}\\n      />\\n    {{/each}}\\n  {{else}}\\n    <Collaboration::Note::NoteEmpty>\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @text=\\\"Create a note\\\"\\n        @action={{route-action \\'newNote\\'}}\\n        @async={{false}}\\n      />\\n    </Collaboration::Note::NoteEmpty>\\n  {{/if}}\\n</RightPanelBody>\\n\\n{{#if (cannot \\'access to collaboration\\')}}\\n  <Modal::ModalUpgradeToPaidPlan\\n    @cancel={{route-action \\'goToRouteDetails\\'}}\\n    @featureName=\\\"collaboration\\\"\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/index/template.hbs' });\n","import Route from '@ember/routing/route';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'collaboration',\n  redirectionIfFeatureActivated: 'project.rendering.data.collection.list.view-edit.collaboration',\n})\nexport default class ProjectRenderingDataCollectionListViewEditCollaborationPreviewRoute extends Route {\n  titleToken = 'Premium Feature';\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    if (model.collection && model.record) {\n      controller.featureParams = `${model.collection.shareableId},${model.collection.shareableId},${model.record.id}`;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::PreviewNotes\\n  @featureCallbackRoute=\\\"project.rendering.data.collection.list.view-edit.collaboration\\\"\\n  @featureParams={{this.featureParams}}\\n/>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/collaboration/preview/template.hbs' });\n","import { getOwner } from '@ember/application';\nimport Controller from '@ember/controller';\nimport { computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nimport { ERROR_NOT_FOUND } from 'client/config/errors';\n\nexport default class ProjectRenderingDataCollectionListViewEditController extends Controller {\n  @service abilities;\n  @service currentUser;\n  @service eventBus;\n  @service router;\n\n  detailsRoutes = [\n    'project.rendering.data.collection.list.view-edit.belongs-to-embedded-view',\n    'project.rendering.data.collection.list.view-edit.details',\n    'project.rendering.data.collection.list.view-edit.integration',\n    'project.rendering.data.collection.list.view-edit.new-belongs-to',\n    'project.rendering.data.collection.list.view-edit.view-has-many',\n    'project.rendering.data.collection.list.view-edit.view-has-many-embedded',\n  ];\n\n  @alias('model.environment') environment;\n  @alias('model.segment.id') currentSegmentId;\n\n  @computed('router.currentRouteName')\n  get currentController() {\n    const owner = getOwner(this);\n    return owner.lookup(`controller:${this.router.currentRouteName}`);\n  }\n\n  @computed('router.currentRouteName')\n  get isSummaryView() {\n    return this.router.currentRouteName.startsWith(\n      'project.rendering.data.collection.list.view-edit.summary',\n    );\n  }\n\n  @computed('detailsRoutes', 'isIntegrationDetails', 'isSummaryView', 'router.currentRouteName')\n  get showSideMenu() {\n    if (this.isIntegrationDetails) return false;\n\n    const { currentRouteName } = this.router;\n    const matchCurrentRoute = (routeName) => currentRouteName.startsWith(routeName);\n    return this.detailsRoutes.some(matchCurrentRoute) || this.isSummaryView;\n  }\n\n  @computed(\n    'currentController.recordIdentifier',\n    'model.collection.displayFieldWithNamespace',\n    'model.record.id',\n  )\n  get recordIdentifier() {\n    if (this.currentController !== this && this.currentController?.recordIdentifier) {\n      return this.currentController.recordIdentifier;\n    }\n\n    const fieldName = this.model.collection.displayFieldWithNamespace;\n\n    return this.model.record?.[fieldName] && fieldName !== 'id'\n      ? this.model.record[fieldName]\n      : `#${this.model.record?.id}`;\n  }\n\n  @computed('router.currentRouteName')\n  get isIntegrationDetails() {\n    return (\n      this.router.currentRouteName\n      === 'project.rendering.data.collection.list.view-edit.details-integration'\n    );\n  }\n\n  @computed(\n    'currentSegmentId',\n    'detailsRoutes',\n    'environment.isFullHostedAgent',\n    'isIntegrationDetails',\n    'workspaceFeature.isCollectionWorkspaceAvailableFromConfig',\n  )\n  get menuItems() {\n    const detailsLink = `project.rendering.data.collection.list.view-edit.details${\n      this.isIntegrationDetails ? '-integration' : ''\n    }`;\n    return [\n      {\n        label: 'Summary',\n        link: 'project.rendering.data.collection.list.view-edit.summary',\n        currentWhen: 'project.rendering.data.collection.list.view-edit.summary',\n        queryParams: { segmentId: this.currentSegmentId },\n        enabled: !this.isIntegrationDetails,\n      },\n      {\n        label: 'Workspace',\n        link: 'project.rendering.data.collection.list.view-edit.workspace',\n        currentWhen: 'project.rendering.data.collection.list.view-edit.workspace',\n        queryParams: { segmentId: this.currentSegmentId },\n        enabled: this.abilities.can('access workspaceOnRecord'),\n      },\n      {\n        label: 'Details',\n        link: detailsLink,\n        currentWhen: this.isIntegrationDetails ? detailsLink : this.detailsRoutes.join(' '),\n        queryParams: { segmentId: this.currentSegmentId },\n        enabled: true,\n      },\n      {\n        label: 'Explorer',\n        link: 'project.rendering.data.collection.list.view-edit.explorer',\n        currentWhen: 'project.rendering.data.collection.list.view-edit.explorer',\n        queryParams: { segmentId: this.currentSegmentId },\n        enabled: true,\n      },\n      {\n        label: 'Activity',\n        link: 'project.rendering.data.collection.list.view-edit.activity',\n        currentWhen: 'project.rendering.data.collection.list.view-edit.activity',\n        queryParams: { segmentId: this.currentSegmentId },\n        enabled: !this.isIntegrationDetails && this.abilities.can('view activityLogs'),\n      },\n      {\n        label: 'Collaboration',\n        link: 'project.rendering.data.collection.list.view-edit.collaboration',\n        currentWhen: 'project.rendering.data.collection.list.view-edit.collaboration',\n        queryParams: { segmentId: this.currentSegmentId },\n        enabled: !this.isIntegrationDetails && this.abilities.can('view collaboration'),\n      },\n      {\n        label: 'Analytics',\n        link: 'project.rendering.data.collection.list.view-edit.analytics',\n        currentWhen: 'project.rendering.data.collection.list.view-edit.analytics',\n        queryParams: { segmentId: this.currentSegmentId },\n        enabled: !this.isIntegrationDetails && !this.environment.isFullHostedAgent,\n      },\n    ].filter((menuItem) => menuItem.enabled);\n  }\n\n  listenToRecordDeletedEvent() {\n    this.eventBus.on('recordDeleted', (recordId) => {\n      const { collection, record } = this.model;\n      if (recordId !== this.model.record.id) {\n        return;\n      }\n      this.set('model.error', {\n        type: ERROR_NOT_FOUND,\n        options: { target: `${collection.displayName} #${record.id}` },\n      });\n    });\n  }\n}\n","import Controller, { inject as controller } from '@ember/controller';\nimport { computed } from '@ember/object';\nimport { filterBy, reads } from '@ember/object/computed';\n\nexport default class ProjectRenderingDataCollectionListViewEditDetailsIntegrationController extends Controller {\n  @controller('project.rendering.data.collection.list') listViewController;\n\n  enableDelete = false;\n  readMode = true;\n\n  menuItems = [\n    {\n      label: 'Details',\n      link: 'project.rendering.data.collection.list.view-edit.details-integration',\n    },\n  ];\n\n  @reads('listViewController.viewList') viewList;\n  @filterBy('plainRows', 'isVisible', true) visibleRowEdits;\n\n  @computed('model.collection.{displayFieldWithNamespace,displayName}', 'model.record.id')\n  get recordIdentifier() {\n    const collectionName = this.model.collection.displayName;\n    const fieldName = this.model.collection.displayFieldWithNamespace;\n\n    if (this.get(`model.record.${fieldName}`) && fieldName !== 'id') {\n      return `${collectionName} - ${this.model.record[fieldName]}`;\n    }\n    return `${collectionName} #${this.model.record.id}`;\n  }\n\n  @computed('model.collection.viewEdit.rowEdits.@each.position')\n  get plainRows() {\n    return this.model.collection.viewEdit.rowEdits.sortBy('position');\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport { ERROR_NOT_FOUND } from 'client/config/errors';\n\nexport default class ProjectRenderingDataCollectionListViewEditDetailsIntegrationRoute extends Route {\n  @service store;\n\n  model(params) {\n    const viewEditModel = this.modelFor('project.rendering.data.collection.list.view-edit');\n    const { record } = viewEditModel;\n    const collection = this.store\n      .peekAll('collection')\n      .find(\n        ({ id, shareableId }) =>\n          id === params.integrationCollection || shareableId === params.integrationCollection,\n      );\n\n    return this.store\n      .queryRecord(\n        'collection',\n        {\n          recordId: record.id,\n          objectId: params.objectId,\n        },\n        { reload: true },\n      )\n      .then((freshRecord) => {\n        const project = this.modelFor('project');\n\n        return hash({\n          project,\n          collection,\n          record: freshRecord,\n        });\n      })\n      .catch((error) => {\n        console.error('[forest] 🌳🌳🌳 Unexpected error in integration details view: ', error);\n        return hash({\n          collection,\n          recordId: params.objectId,\n          error: {\n            type: ERROR_NOT_FOUND,\n            options: {\n              target: `${collection.displayName} #${params.objectId}`,\n            },\n          },\n        });\n      });\n  }\n\n  setupController(controller, model) {\n    controller.set('showCustomActionsMenu', false);\n    super.setupController(controller, model);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<RightPanelBody>\\n  <DataDisplay::Record::Details\\n    @collection={{this.model.collection}}\\n    @record={{this.model.record}}\\n    @rows={{this.visibleRowEdits}}\\n    @readMode={{this.readMode}}\\n  />\\n</RightPanelBody>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/details-integration/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias, not } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport RSVP from 'rsvp';\n\nimport { is404Error } from 'client/utils/ember-error-util';\n\nexport default class ProjectRenderingDataCollectionListViewEditDetailsController extends Controller {\n  @service currentUser;\n  @service('feature/action/internal-business/custom-action') customActionService;\n  @service eventBus;\n  /** @type {import('client/features/action/services/internal-business/availability').default} */\n  @service('feature/action/internal-business/availability') actionService;\n\n  currentActivityLogPage = 1;\n  readMode = true;\n  @tracked enabledCustomActions = [];\n  @tracked _hasFormErrors = false;\n\n  getActivityLogQuery() {\n    this.set('activityLogQuery', {\n      'filter[collectionId]': this.collection.id,\n      'filter[resourceId]': this.model.record.id,\n    });\n\n    this.updateQueryForPagination();\n\n    return this.activityLogQuery;\n  }\n\n  updateQueryForPagination() {\n    if (this.currentActivityLogPage) {\n      this.set('activityLogQuery.page[number]', this.currentActivityLogPage);\n    }\n  }\n\n  @alias('model.collection') collection;\n  @alias('collection.viewEdit') viewEdit;\n  @not('currentUser.editMode') displayHeaderButtons;\n\n  get shouldDisplayActionsButton() {\n    return this.actionService.isAnyActionAvailable(this.collection, 1);\n  }\n\n  @alias('collection.customActionsOrderedForUser') customActionsForCurrentRecordAndUser;\n\n  @computed('collection.collectionPermissions.deleteEnabled', 'currentUser')\n  get enableDelete() {\n    return this.currentUser.canDeleteCollection(this.collection);\n  }\n\n  @computed('collection.collectionPermissions.editEnabled', 'currentUser')\n  get canEdit() {\n    return this.currentUser.canEditCollection(this.collection);\n  }\n\n  @computed('currentTab')\n  get isDetailsSelected() {\n    return this.currentTab === 'details';\n  }\n\n  @computed('currentTab')\n  get isActivityLogSelected() {\n    return this.currentTab === 'activityLog';\n  }\n\n  @computed('collection.integrations', 'currentTab')\n  get isIntegrationSelected() {\n    return this.collection.integrations.indexOf(this.currentTab) > -1;\n  }\n\n  @computed('collection.collectionPermissions.addEnabled', 'currentUser')\n  get enableDuplicate() {\n    return this.currentUser.canAddCollection(this.collection);\n  }\n\n  @action\n  cancel() {\n    if (this.model?.record) {\n      this.model.record.rollbackAttributes();\n      this.model.record.rollbackRelationships('belongsTo');\n    }\n    if (!this.readMode) {\n      this.set('readMode', true);\n    }\n  }\n\n  @action\n  showViewEdit() {\n    this.set('readMode', false);\n  }\n\n  @action\n  showRowEdit(rowEdit) {\n    rowEdit.set('isVisible', true);\n    rowEdit.save();\n  }\n\n  @action\n  hideRowEdit(rowEdit) {\n    rowEdit.set('isVisible', false);\n    rowEdit.save();\n  }\n\n  @action\n  toggleShowRowEditSettingsMenu() {\n    this.toggleProperty('showRowEditSettingsMenu');\n  }\n\n  @action\n  hideRowEditSettingsMenu() {\n    this.set('showRowEditSettingsMenu', false);\n  }\n\n  @action\n  async triggerAction(customAction) {\n    const { success, isApproval } = await this.customActionService.triggerCustomAction(\n      customAction,\n      [this.model.record],\n      null,\n    );\n\n    if (success && !isApproval) {\n      await this.refreshRecord();\n    }\n  }\n\n  @action\n  handleFormValidityChange(hasErrors) {\n    this._hasFormErrors = hasErrors;\n  }\n\n  @action\n  applyChanges(callback) {\n    this.send('applyEditChanges', async (error) => {\n      if (error) {\n        return callback(RSVP.resolve());\n      }\n\n      this.set('readMode', true);\n      this.enabledCustomActions = await this.customActionService.getEnabledCustomActions(\n        this.collection.customActionsOrderedForUser,\n        [this.model.record],\n      );\n      return callback(RSVP.resolve());\n    });\n  }\n\n  async refreshRecord() {\n    const recordId = this.model.record.id;\n    try {\n      await this.model.record.reload();\n    } catch (error) {\n      if (is404Error(error)) {\n        this.eventBus.trigger('recordDeleted', recordId);\n      }\n    }\n    this.enabledCustomActions = await this.customActionService.getEnabledCustomActions(\n      this.collection.customActionsOrderedForUser,\n      [this.model.record],\n    );\n  }\n}\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport resetRecordReadMode from 'client/decorators/reset-record-read-mode';\n\n@resetRecordReadMode\nexport default class ProjectRenderingDataCollectionListViewEditDetailsRoute extends Route {\n  @service('feature/action/internal-business/custom-action') customAction;\n  @service router;\n  @service lianaSession;\n\n  async setupController(controller, model, transition) {\n    super.setupController(controller, model);\n    if (model.record) {\n      controller.enabledCustomActions = await this.customAction.getEnabledCustomActions(\n        model.collection.customActionsOrderedForUser,\n        [model.record],\n      );\n      controller.readMode =\n        transition.from?.name !== 'project.rendering.data.collection.list.view-edit.new-belongs-to';\n    }\n  }\n\n  @action\n  hideField(field) {\n    const model = this.modelFor(this.routeName);\n    model.get('viewEdit.rowEdits').removeObject(field.rowEdit);\n    model.get('viewEdit.content').save();\n  }\n\n  @action\n  showField(field) {\n    const model = this.modelFor(this.routeName);\n    model.get('viewEdit.rowEdits').pushObject(field.rowEdit);\n    model.get('viewEdit.content').save();\n  }\n\n  @action\n  selectTab() {\n    this.router.transitionTo('project.rendering.data.collection.list.view-edit.has-many');\n  }\n\n  @action\n  triggerCustomAction(...args) {\n    return this.customAction.triggerCustomAction(...args);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<RightPanelBody @extraClasses=\\\"l-overlay__sidepage__content--view-edit\\\">\\n  <div class=\\\"l-list-view-edit-details__title-container\\\">\\n    <h4 class=\\\"c-list-view-edit-details__title\\\" data-test-list-view-edit-details-title>\\n      Record details\\n    </h4>\\n    <Shared::PortalFor\\n      @name=\\\"view-details-editor\\\"\\n      class={{unless\\n        (get (current-user) \\'editMode\\')\\n        \\'c-list-view-edit-details__editor--hidden\\'\\n        \\'c-list-view-edit-details__editor\\'\\n      }}\\n      data-test-list-view-edit-details-editor\\n    />\\n  </div>\\n  <DataDisplay::Record::Details\\n    @collection={{this.collection}}\\n    @record={{this.model.record}}\\n    @rows={{this.viewEdit.visiblePlainRows}}\\n    @readMode={{this.readMode}}\\n    @onFormValidityChange={{this.handleFormValidityChange}}\\n  />\\n</RightPanelBody>\\n\\n<Shared::PortalContent @for=\\\"view-edit-actions\\\">\\n  {{#if this.displayHeaderButtons}}\\n    {{#if this.readMode}}\\n      <Dropdown::BetaDropdownActions\\n        @class=\\\"c-collection-list-header__action\\\"\\n        @shouldDisplayActionDropdown={{this.shouldDisplayActionsButton}}\\n        @isEditMode={{this.currentUser.editMode}}\\n        @customActions={{this.customActionsForCurrentRecordAndUser}}\\n        @enabledCustomActions={{this.enabledCustomActions}}\\n        @collection={{this.model.collection}}\\n        @segment={{this.model.segment}}\\n        @selectedRecord={{this.model.record}}\\n        @isDuplicable={{this.enableDuplicate}}\\n        @isDeletable={{this.enableDelete}}\\n        @deleteRecords={{route-action \\'deleteRecord\\'}}\\n        @triggerCustomAction={{this.triggerAction}}\\n        data-test-list-view-edit-details-actions-button\\n      />\\n\\n      {{#if this.canEdit}}\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @text=\\\"Edit\\\"\\n          @action={{this.showViewEdit}}\\n          @async={{false}}\\n          class=\\\"c-collection-list-header__action\\\"\\n          data-test-for-button=\\\"edit-record\\\"\\n        />\\n      {{/if}}\\n    {{else}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @text=\\\"Cancel\\\"\\n        @action={{this.cancel}}\\n        @async={{false}}\\n        class=\\\"c-collection-list-header__action\\\"\\n        data-test-for-button=\\\"cancel-edit-record\\\"\\n      />\\n      <Shared::SaveButton\\n        @onSave={{this.applyChanges}}\\n        @isDisabled={{this._hasFormErrors}}\\n        @buttonClass=\\\"c-collection-list-header__action\\\"\\n        data-test-for-button=\\\"save-edit-record\\\"\\n      />\\n    {{/if}}\\n  {{/if}}\\n</Shared::PortalContent>\\n\\n<Shared::PortalContent @for=\\\"view-details-editor\\\">\\n  <Button::SettingsButton\\n    @action={{this.toggleShowRowEditSettingsMenu}}\\n    @size=\\\"large\\\"\\n    @class=\\\"c-settings-button--inside-header\\\"\\n    @icon=\\\"low_priority\\\"\\n  />\\n  {{#if this.showRowEditSettingsMenu}}\\n    <XDropdown\\n      @onClickAction={{this.toggleShowRowEditSettingsMenu}}\\n      @onLeaveAction={{this.hideRowEditSettingsMenu}}\\n    >\\n      <ColumnSettingsMenu\\n        @classPosition=\\\"l-list-view-edit-details__settings-dropdown\\\"\\n        @columns={{this.viewEdit.plainRows}}\\n        @groupName=\\\"view-edit-details\\\"\\n        @modelName=\\\"row-edit\\\"\\n        @hide={{this.hideRowEdit}}\\n        @show={{this.showRowEdit}}\\n      />\\n    </XDropdown>\\n  {{/if}}\\n</Shared::PortalContent>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/details/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { next } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport creationFormHandler from 'client/decorators/creation-form-handler';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport { getRecordIdentifier } from 'client/shared/helpers/get-record-identifier';\nimport ExplorerRecordsColumn from 'client/utils/explorer/explorer-records-column-class';\nimport ExplorerRelationshipsColumn from 'client/utils/explorer/explorer-relationships-column-class';\n\n@creationFormHandler\nexport default class ProjectRenderingDataCollectionListViewEditExplorerIndexController extends Controller {\n  @service currentUser;\n  @service eventBus;\n  @service errorHandler;\n  @service lianaFeatures;\n  @service lianaSession;\n  @service documentationLinkGetter;\n  @service router;\n  @service toastr;\n  /** @type {import('client/features/client-record/services/feature').default} */\n  @service('feature/client-record') clientRecordFeature;\n\n  @alias('model.collection') collection;\n  @alias('model.record') record;\n\n  @tracked displayedColumns = [];\n  @tracked displayedEditorColumns = [];\n  @tracked readMode = true;\n  @tracked isTransitioningColumnType = false;\n\n  @computed('currentUser.editMode', 'displayedColumns', 'displayedEditorColumns')\n  get columns() {\n    return this.currentUser.editMode ? this.displayedEditorColumns : this.displayedColumns;\n  }\n\n  get recordLinkOfFormToDisplay() {\n    return this.formToDisplay && !this.formToDisplay.field.isEmbedded\n      ? this.clientRecordFeature.getRecordLink(this.formToDisplay.field.referenceModel)\n      : null;\n  }\n\n  get titleOfFormToDisplay() {\n    if (this.formToDisplay?.record?.isNew) {\n      return `Create a new ${this.formToDisplay.field.nestedOrReferencedCollection.displayNameLowerCase}`;\n    }\n\n    return `${getRecordIdentifier([\n      this.formToDisplay.field.nestedOrReferencedCollection,\n      this.formToDisplay.record,\n    ])}`;\n  }\n\n  get isGenericFiltersAvailable() {\n    return this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.GenericFilters,\n      this.lianaSession.currentEnvironment,\n    );\n  }\n\n  get relationshipsDocumentationLink() {\n    return this.documentationLinkGetter.getDocumentationLink('relationships');\n  }\n\n  initializeExplorer() {\n    if (\n      this.displayedColumns.firstObject?.referenceModel !== this.collection\n      || this.lastRecordId !== this.record?.id\n    ) {\n      this.lastRecordId = this.record.id;\n      this.setupFirstDisplayedColumns();\n    }\n\n    this.eventBus.on('editModeActivated', this.setupEditorColumnsFromReadColumns);\n  }\n\n  setupFirstDisplayedColumns() {\n    this.displayedColumns = [];\n    this._addReadRelatedDataColumn(this.collection, this.record);\n\n    if (this.currentUser.editMode) {\n      this.setupFirstDisplayedEditorColumns();\n    }\n  }\n\n  setupFirstDisplayedEditorColumns() {\n    this.isTransitioningColumnType = true;\n    this.displayedEditorColumns = [];\n    this._addEditorRelatedDataColumn(this.collection);\n\n    if (\n      this.displayedEditorColumns.length === 1\n      && (this.displayedEditorColumns.firstObject.hasRelatedDataVisible\n        || this.displayedEditorColumns.firstObject.hasSingleRelatedData)\n    ) {\n      const column = this.displayedEditorColumns.firstObject;\n      const row = this.displayedEditorColumns.firstObject.hasRelatedDataVisible\n        ? column.relatedDataRowsVisible.firstObject.explorerRow\n        : column.relatedDataRows.firstObject.explorerRow;\n      this.addEditorRecordsColumn(column, row);\n    }\n\n    next(() => {\n      this.isTransitioningColumnType = false;\n    });\n  }\n\n  @action\n  setupEditorColumnsFromReadColumns() {\n    this.isTransitioningColumnType = true;\n\n    this.displayedEditorColumns = this.displayedColumns.map((column) =>\n      column.type === 'records'\n        ? new ExplorerRecordsColumn({\n            row: column.row,\n            editor: true,\n            isGenericFiltersAvailable: this.isGenericFilter,\n          })\n        : new ExplorerRelationshipsColumn({\n            selectedItem: column.selectedItem,\n            referenceModel: column.referenceModel,\n            onClick: this.addEditorRecordsColumn,\n            editor: true,\n          }),\n    );\n\n    const column = this.displayedEditorColumns.lastObject;\n    if (!column) {\n      this.setupFirstDisplayedEditorColumns();\n    } else if (column.type === 'records') {\n      const hasAlreadyThisColumnOpened = this.displayedEditorColumns.some(\n        (editorColumn) => editorColumn.referenceModel === column.field.referenceModel,\n      );\n      if (column.hasRelatedData && !hasAlreadyThisColumnOpened) {\n        this._addEditorRelatedDataColumn(column.field.referenceModel);\n      }\n    } else if (column.hasSingleRelatedDataVisible) {\n      this.addEditorRecordsColumn(column, column.relatedDataRowsVisible.firstObject.explorerRow);\n    }\n\n    next(() => {\n      this.isTransitioningColumnType = false;\n    });\n  }\n\n  _flushColumnsAfterIndex(propertyName, index) {\n    this[propertyName] = this[propertyName].slice(0, index + 1);\n  }\n\n  _flushEditorColumnsAfterIndex(index) {\n    this._flushColumnsAfterIndex('displayedEditorColumns', index);\n  }\n\n  _flushReadColumnsAfterIndex(index) {\n    this._flushColumnsAfterIndex('displayedColumns', index);\n  }\n\n  _addRelatedDataColumn(columnsPropertyName, collection, onClick, extraParameters) {\n    const column = new ExplorerRelationshipsColumn({\n      referenceModel: collection,\n      onClick,\n      ...extraParameters,\n    });\n    if (!column.isEmpty) {\n      this[columnsPropertyName].pushObject(column);\n    }\n\n    if (column.hasSingleRelatedDataVisible) {\n      onClick(column, column.relatedDataRowsVisible.firstObject.explorerRow);\n    }\n  }\n\n  _addReadRelatedDataColumn(collection, record) {\n    this._addRelatedDataColumn('displayedColumns', collection, this.addReadRecordsColumn, {\n      parentRecord: record,\n    });\n  }\n\n  _addEditorRelatedDataColumn(collection) {\n    this._addRelatedDataColumn('displayedEditorColumns', collection, this.addEditorRecordsColumn, {\n      editor: true,\n    });\n  }\n\n  _addRecordsColumn(\n    columnsPropertyName,\n    explorerColumn,\n    item,\n    recordsColumnParameters,\n    canAddColumn = true,\n  ) {\n    const parentColumnIndex = this[columnsPropertyName].indexOf(explorerColumn);\n\n    // This means there was 2 fast clicks and this column does not exist anymore\n    if (parentColumnIndex < 0 || !canAddColumn) {\n      return null;\n    }\n\n    // Only change the column if the column is not already open\n    if (explorerColumn.selectedItem !== item) {\n      this._flushColumnsAfterIndex(columnsPropertyName, parentColumnIndex);\n      this[columnsPropertyName][parentColumnIndex].selectedItem = item;\n\n      const column = new ExplorerRecordsColumn({\n        ...recordsColumnParameters,\n        isGenericFiltersAvailable: this.isGenericFiltersAvailable,\n      });\n      this[columnsPropertyName].pushObject(column);\n      return column;\n    }\n\n    return null;\n  }\n\n  @action\n  addEditorRecordsColumn(explorerColumn, item) {\n    const { row } = item;\n\n    const canAddColumn =\n      (item.isVisible || explorerColumn.hasSingleRelatedData)\n      && !this.displayedEditorColumns.some((column) => column.field === row.field);\n    const column = this._addRecordsColumn(\n      'displayedEditorColumns',\n      explorerColumn,\n      item,\n      { row, editor: true },\n      canAddColumn,\n    );\n\n    if (column?.hasRelatedData && item.isVisible) {\n      this._addEditorRelatedDataColumn(row.field.referenceModel);\n    }\n  }\n\n  @action\n  addReadRelatedDataColumn(explorerColumn, record) {\n    const parentColumnIndex = this.displayedColumns.indexOf(explorerColumn);\n\n    // This means there was 2 fast clicks and this column does not exist anymore\n    if (parentColumnIndex < 0) {\n      return;\n    }\n\n    const collection = explorerColumn.field.referenceModel;\n\n    if (explorerColumn.selectedRecord !== record) {\n      this._flushReadColumnsAfterIndex(parentColumnIndex);\n      explorerColumn.selectedRecord = record;\n\n      this._addReadRelatedDataColumn(collection, record);\n    }\n  }\n\n  @action\n  async addReadRecordsColumn(explorerColumn, item) {\n    const { row } = item;\n\n    this._addRecordsColumn('displayedColumns', explorerColumn, item, {\n      parentRecord: explorerColumn.parentRecord,\n      row,\n      onClick: this.addReadRelatedDataColumn,\n      onNameClick: this.displayRecordDetails,\n    });\n  }\n\n  @action\n  displayRecordDetails(explorerColumn, record, event = null) {\n    if (!explorerColumn.field.isEmbedded) {\n      record.reload();\n    }\n    this.formToDisplay = {\n      field: explorerColumn.field,\n      record,\n      parentRecord: explorerColumn.parentRecord,\n    };\n    this.collectionState.currentRecord = this.formToDisplay.record;\n    event?.stopPropagation();\n  }\n\n  @action\n  hideRecordDetails() {\n    this.closeRecordCreation();\n    this.readMode = true;\n  }\n\n  @action\n  onFilteringOutSelectedColumn(column) {\n    column.selectedRecord = null;\n\n    const columnIndex = this.displayedColumns.indexOf(column);\n    this._flushReadColumnsAfterIndex(columnIndex);\n\n    this.hideRecordDetails();\n  }\n\n  @action\n  async toggleVisibility(row) {\n    row.isVisible = !row.isVisible;\n    row.save();\n\n    if (!row.isVisible) {\n      this._handleRowHiding();\n    }\n    this._openNewColumnsIfNecessary();\n  }\n\n  @action\n  goToRecordDetails() {\n    this.router.transitionTo('project.rendering.data.collection.list.view-edit.details');\n  }\n\n  @action\n  switchToEditMode() {\n    this.readMode = false;\n  }\n\n  @action\n  async saveRecord(callback) {\n    // If it's a belongs to record creation use the CreationFormHandler.saveRecord\n    if (this.formsQueue.length) {\n      await this._createRecord();\n      callback();\n      return;\n    }\n\n    const recordToSave = this.formToDisplay.field.isEmbedded\n      ? this.formToDisplay.parentRecord\n      : this.formToDisplay.record;\n    const recordEdited = await this.clientRecordFeature.upsertRecord(recordToSave);\n\n    this.readMode = !!recordEdited;\n\n    callback();\n  }\n\n  @action\n  async discardRecord() {\n    // If it's a belongs to record creation use the CreationFormHandler.saveRecord\n    if (this.formsQueue.length) {\n      await this.cancelLastRecordCreation();\n      return;\n    }\n\n    this.formToDisplay.record.rollbackAttributes();\n    this.formToDisplay.record.rollbackRelationships();\n\n    this.readMode = true;\n  }\n\n  _openNewColumnsIfNecessary() {\n    const lastEditorColumn = this.displayedEditorColumns.lastObject;\n    if (lastEditorColumn?.shouldDisplayNextColumn) {\n      if (lastEditorColumn.type === 'records') {\n        this._addEditorRelatedDataColumn(lastEditorColumn.row.field.referenceModel);\n      } else {\n        this.addEditorRecordsColumn(\n          lastEditorColumn,\n          lastEditorColumn.relatedDataRows.firstObject.explorerRow,\n        );\n      }\n    }\n\n    const lastReadColumn = this.displayedColumns.lastObject;\n    if (lastReadColumn?.shouldDisplayNextColumn) {\n      this.addReadRecordsColumn(\n        lastReadColumn,\n        lastReadColumn.relatedDataRowsVisible.firstObject.explorerRow,\n      );\n    } else if (!lastReadColumn && this.displayedEditorColumns.firstObject?.hasRelatedDataVisible) {\n      this.setupFirstDisplayedColumns();\n    }\n  }\n\n  _handleRowHiding() {\n    const lastValidEditorColumnIndex = this.displayedEditorColumns.findIndex(\n      (column) => column.mustDeleteNextColumns,\n    );\n    if (lastValidEditorColumnIndex >= 0) {\n      this._flushEditorColumnsAfterIndex(lastValidEditorColumnIndex);\n    }\n\n    const firstInvalidReadColumnIndex = this.displayedColumns.findIndex(\n      (column) => column.mustBeDeleted,\n    );\n    if (firstInvalidReadColumnIndex >= 0) {\n      this._flushReadColumnsAfterIndex(firstInvalidReadColumnIndex - 1);\n      const lastValidReadColumn = this.displayedColumns.lastObject;\n\n      // Unselect the record/item as the columns on the right are no displayed anymore\n      if (lastValidReadColumn?.selectedItem) {\n        lastValidReadColumn.selectedItem = null;\n      } else if (lastValidReadColumn?.selectedRecord) {\n        lastValidReadColumn.selectedRecord = null;\n      }\n    }\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'explorer',\n  redirectionIfFeatureNotActivated:\n    'project.rendering.data.collection.list.view-edit.explorer.preview',\n})\nexport default class ProjectRenderingDataCollectionListViewEditExplorerIndexRoute extends Route {\n  @service segment;\n  @service lianaSession;\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    this.segment.trackEvent('Access Explorer', {\n      collectionId: model.collection?.id,\n      collectionName: model.collection?.singularizedDisplayName,\n      recordId: model.record?.id,\n      teamId: this.lianaSession.currentTeam?.id,\n    });\n\n    controller.initializeExplorer();\n  }\n\n  resetController(controller, isExiting) {\n    if (isExiting) {\n      controller.formToDisplay = null;\n      controller.formsQueue = [];\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-explorer\\\">\\n  {{#each this.columns as |column|}}\\n    {{#if (eq column.type \\'relatedData\\')}}\\n      {{#if column.shouldDisplay}}\\n        <SideMenu>\\n          <Explorer::RelatedDataSection\\n            @isCreate={{false}}\\n            @explorerColumn={{column}}\\n            @toggleVisibility={{this.toggleVisibility}}\\n            @shouldScroll={{not this.isTransitioningColumnType}}\\n          />\\n        </SideMenu>\\n      {{/if}}\\n    {{else}}\\n      <SideMenu class=\\\"c-explorer__records-list\\\">\\n        <Explorer::RecordsList\\n          @explorerColumn={{column}}\\n          @onFilteringOutSelectedColumn={{this.onFilteringOutSelectedColumn}}\\n          @toggleVisibility={{this.toggleVisibility}}\\n          @shouldScroll={{not this.isTransitioningColumnType}}\\n        />\\n      </SideMenu>\\n    {{/if}}\\n  {{else}}\\n    <Shared::Feedback::BetaFeedback\\n      @type=\\\"info\\\"\\n      @iconName=\\\"explore\\\"\\n      @title=\\\"There is no related data to explore\\\"\\n      class=\\\"c-explorer__empty-state\\\"\\n    >\\n      {{#if this.currentUser.canEditLayout}}\\n        Please make sure your relationships are properly set up. If you need any help on how to add\\n        relationships, check out\\n        <a\\n          href={{this.relationshipsDocumentationLink}}\\n          target=\\\"_blank\\\"\\n          rel=\\\"noopener noreferrer\\\"\\n          class=\\\"c-beta-feedback__description-link\\\"\\n        >\\n          our documentation\\n        </a>.\\n      {{/if}}\\n    </Shared::Feedback::BetaFeedback>\\n  {{/each}}\\n</div>\\n\\n{{#if this.formToDisplay}}\\n  <Shared::BetaRightPanel\\n    @title={{this.titleOfFormToDisplay}}\\n    @close={{this.hideRecordDetails}}\\n    class=\\\"c-explorer-details\\\"\\n  >\\n    <:header>\\n      <Explorer::RecordDetailsHeaderButtons\\n        @recordLink={{this.recordLinkOfFormToDisplay}}\\n        @collection={{this.formToDisplay.field.nestedOrReferencedCollection}}\\n        @record={{this.formToDisplay.record}}\\n        @readMode={{this.readMode}}\\n        @onEdit={{this.switchToEditMode}}\\n        @onSave={{this.saveRecord}}\\n        @onDiscard={{this.discardRecord}}\\n      />\\n    </:header>\\n    <:default>\\n      <Shared::BetaRightPanel::Section @title=\\\"Record details\\\">\\n        <DataDisplay::Record::Details\\n          @collection={{this.formToDisplay.field.nestedOrReferencedCollection}}\\n          @record={{this.formToDisplay.record}}\\n          @rows={{if\\n            this.formToDisplay.record.isNew\\n            this.formToDisplay.field.nestedOrReferencedCollection.viewCreate.visibleRowCreates\\n            this.formToDisplay.field.nestedOrReferencedCollection.viewEdit.visiblePlainRows\\n          }}\\n          @prefilledRows={{this.formToDisplay.prefilledRows}}\\n          @readMode={{this.readMode}}\\n          @disableNested={{false}}\\n          @contextConfiguration={{hash createNewBelongsTo=this.createNewBelongsTo}}\\n          class=\\\"c-explorer-details__content\\\"\\n        />\\n      </Shared::BetaRightPanel::Section>\\n    </:default>\\n  </Shared::BetaRightPanel>\\n{{/if}}\\n\\n{{#if (cannot \\'access to explorer\\')}}\\n  <Modal::ModalUpgradeToPaidPlan @cancel={{this.goToRecordDetails}} @featureName=\\\"explorer\\\" />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/explorer/index/template.hbs' });\n","import Route from '@ember/routing/route';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'explorer',\n  redirectionIfFeatureActivated: 'project.rendering.data.collection.list.view-edit.explorer',\n})\nexport default class ProjectRenderingDataCollectionListViewEditExplorerPreviewRoute extends Route {\n  titleToken = 'Premium Feature';\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    if (model.collection && model.record) {\n      controller.featureParams = `${model.collection.shareableId},${model.collection.shareableId},${model.record.id}`;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::PreviewExplorer @featureParams={{this.featureParams}} />\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/explorer/preview/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionListViewEditIndexRoute extends Route {\n  @service lianaSession;\n  @service router;\n\n  /** @type {import('client/features/client-record/services/feature').default} */\n  @service('feature/client-record') clientRecordFeature;\n\n  beforeModel() {\n    const collection = this.modelFor('project.rendering.data.collection');\n    const recordLink = this.clientRecordFeature.getRecordLink(collection);\n    this.router.transitionTo(recordLink);\n  }\n}\n","import Controller from '@ember/controller';\nimport { computed } from '@ember/object';\n\nimport SchemaUtils from 'client/utils/schema-utils';\n\nexport default class ProjectRenderingDataCollectionListViewEditIntegrationController extends Controller {\n  @computed('model.integration')\n  get panelSubtitle() {\n    return `${this.model.integration} Details`;\n  }\n\n  @computed('model.integration', 'model.collection.fields.[]')\n  get fieldsIntegration() {\n    return this.model.collection.fields.filter(\n      (field) => field.get('integration') === this.model.integration,\n    );\n  }\n\n  @computed('fieldsIntegration.[]')\n  get fieldsIntegrationSimple() {\n    return this.fieldsIntegration.filter((field) => !SchemaUtils.isHasMany(field));\n  }\n}\n","import Route from '@ember/routing/route';\nimport { hash } from 'rsvp';\n\nexport default class ProjectRenderingDataCollectionListViewEditIntegrationRoute extends Route {\n  model(params) {\n    const parentModel = this.modelFor('project.rendering.data.collection.list.view-edit');\n\n    let record;\n    if (params.integration === 'intercom') {\n      // TODO: Do not hardcode the Intercom field to retrieve.\n      record = parentModel.record.get('forest-intercom_attributes');\n    } else {\n      // NOTICE: Close.io integration case.\n      ({ record } = parentModel);\n    }\n\n    return hash({\n      collection: parentModel.collection,\n      record: parentModel.record,\n      project: parentModel.project,\n      recordChild: record,\n      integration: params.integration,\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<RightPanelBody @extraClasses=\\\"l-overlay__sidepage__content--view-edit\\\">\\n  {{#each this.fieldsIntegrationSimple as |field|}}\\n    <Form::FormValue\\n      @displayName={{field.displayNameTitlize}}\\n      @record={{this.model.recordChild}}\\n      @field={{field}}\\n      @parent={{@parent}}\\n      @readMode={{true}}\\n      @isReadOnly={{field.isReadOnly}}\\n      @formClass=\\\"l-dmb\\\"\\n    />\\n  {{/each}}\\n</RightPanelBody>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/integration/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { filterBy } from '@ember/object/computed';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectRenderingDataCollectionListViewEditNewBelongsToController extends Controller {\n  @tracked prefilledRow = null;\n  @tracked _hasFormErrors = false;\n\n  @action\n  handleFormValidityChange(hasErrors) {\n    this._hasFormErrors = hasErrors;\n  }\n\n  queryParams = ['from', 'polymorphic'];\n  from = 'details';\n  @filterBy('rows', 'isVisible', true) visibleRows;\n\n  @computed('model.collection', 'model.field.{isPolymorphic,referenceModel}')\n  get sourceCollection() {\n    return this.model.field.isPolymorphic ? this.model.collection : this.model.field.referenceModel;\n  }\n\n  @computed('sourceCollection.displayNameLowerCase')\n  get panelSubtitle() {\n    return `Create a new ${this.sourceCollection.displayNameLowerCase}`;\n  }\n\n  @computed('polymorphicCollection.viewCreate.rowCreates', 'sourceCollection.viewCreate.rowCreates')\n  get hasManyRows() {\n    return this.sourceCollection.viewCreate.rowCreates\n      .filter((rowEdit) => !rowEdit.get('displayAsRow'))\n      .sortBy('field.displayName');\n  }\n\n  @computed('hasManyRows', 'sourceCollection.viewCreate.rowCreates.@each.position')\n  get rows() {\n    return this.sourceCollection.viewCreate.rowCreates\n      .filter((rowEdit) => !rowEdit.get('field.integration') && !this.hasManyRows.includes(rowEdit))\n      .sortBy('position');\n  }\n}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport ViewEditRelationshipCreateRoute from 'client/legacy/abstract-routes/view-edit-relationship-create-route';\n\nexport default class ProjectRenderingDataCollectionListViewEditNewBelongsToRoute extends ViewEditRelationshipCreateRoute {\n  @service routeHistory;\n  @service router;\n  @service store;\n  @service('feature/client-record') clientRecordFeature;\n\n  async model(params) {\n    // jshint sub: true\n    const parentModel = this.modelFor('project.rendering.data.collection.list.view-edit');\n    const fieldId = params.field_id;\n    const field = await this.store.findRecord('field', fieldId);\n    const polymorphicModelName = params.polymorphic;\n\n    if (polymorphicModelName) {\n      const collection = await this.store.findRecord('collection', polymorphicModelName);\n      const newRecord = this.store.createRecord(collection?.emberModelName);\n\n      return hash({\n        // The collection cannot be removed as it is used by reset-record-read-mode decorator\n        collection,\n        parentCollection: parentModel.collection,\n        parentRecord: parentModel.record,\n        record: newRecord,\n        field,\n      });\n    }\n\n    const newRecord = this.store.createRecord(field?.referenceModel?.emberModelName);\n\n    return hash({\n      // The collection cannot be removed as it is used by reset-record-read-mode decorator\n      collection: parentModel.collection,\n      parentCollection: parentModel.collection,\n      parentRecord: parentModel.record,\n      record: newRecord,\n      field,\n    });\n  }\n\n  _transitionToPreviousPage() {\n    const previousRoute = this.routeHistory.getPreviousRoute();\n    this.router.transitionTo(previousRoute.routeName);\n  }\n\n  _transitionToUpdatedParent(record, id) {\n    const previousRoute = this.routeHistory.getPreviousRoute();\n    const fromController = this.controllerFor(previousRoute.routeName);\n    fromController.set('model.record', record);\n\n    // NOTICE: update records list, and add updated parent\n    const listRouteName = 'project.rendering.data.collection.list';\n    const listController = this.controllerFor(listRouteName);\n    if (listController.records) {\n      listController.set('records', [...listController.records.toArray(), record]);\n    }\n\n    this.router.transitionTo(previousRoute.routeName, {\n      ...fromController.model,\n      record_id: id, // NOTICE: transition to correct url (new id)\n      edit_collection_id: fromController.model.collection.name,\n    });\n  }\n\n  // NOTICE: first we unload the parentRecord if exists,\n  // then we force a fetch from the server where it has been created/updated\n  // be aware here fk is pk and record and parentRecord are directly linked\n  _retrieveParentRecord() {\n    const model = this.modelFor(this.routeName);\n    // NOTICE: remove parent from list\n    this.store.unloadRecord(model.parentRecord);\n    // NOTICE: reload record with new child id\n    return this.store.findRecord(model.parentCollection.emberModelName, model.record.id, {\n      reload: true,\n    });\n  }\n\n  @action\n  async save(callback) {\n    const model = this.modelFor(this.routeName);\n    const { record } = model;\n\n    const recordSaved = await this.clientRecordFeature.upsertRecord(record);\n\n    if (recordSaved) {\n      let parentRecord;\n      if (model.field.get('foreignAndPrimaryKey')) {\n        // NOTICE: retrieve parent record saved from server\n        parentRecord = await this._retrieveParentRecord();\n      } else {\n        const relName = model.field.get('attributeNameWithRelationships');\n        model.parentRecord.set(relName, recordSaved);\n        parentRecord = model.parentRecord;\n      }\n\n      if (model.field.get('foreignAndPrimaryKey')) {\n        this._transitionToUpdatedParent(parentRecord, model.record.id);\n      } else {\n        this._transitionToPreviousPage();\n      }\n    }\n\n    callback();\n  }\n\n  @action\n  cancel() {\n    const model = this.modelFor(this.routeName);\n    const { record } = model;\n\n    record.rollbackAttributes();\n    this._transitionToPreviousPage();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-overlay__sidepage__content l-overlay__sidepage--scroll l-dpa\\\">\\n  <DataDisplay::Record::Details\\n    @collection={{this.sourceCollection}}\\n    @record={{this.model.record}}\\n    @rows={{this.visibleRows}}\\n    @prefilledRows={{this.prefilledRows}}\\n    @disableNested={{true}}\\n    @parentCollection={{this.model.parentCollection}}\\n    @parentRecord={{this.model.parentRecord}}\\n    @onFormValidityChange={{this.handleFormValidityChange}}\\n  />\\n</div>\\n\\n<Layout::LayoutFooter>\\n  <Shared::Button::BetaButton\\n    @type=\\\"secondary\\\"\\n    @text=\\\"Cancel\\\"\\n    @action={{route-action \\'cancel\\'}}\\n    @async={{false}}\\n  />\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @text=\\\"Create\\\"\\n    @action={{route-action \\'save\\'}}\\n    @disabled={{this._hasFormErrors}}\\n  />\\n</Layout::LayoutFooter>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/new-belongs-to/template.hbs' });\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\nimport { hash } from 'rsvp';\n\nimport { AccessRecordForbidden } from 'client/utils/errors/collection-errors';\n\nexport default class ProjectRenderingDataCollectionListViewEditRoute extends Route {\n  @service betaCollectionListCommunicator;\n  @service currentUser;\n  @service eventBus;\n  @service toastr;\n  @service lianaSession;\n  @service router;\n  @service routeHistory;\n  @service store;\n  @service('feature/client-record') clientRecordFeature;\n  @service('shared/route-transition-handler') routeTransitionHandler;\n\n  async model(params, transition) {\n    if (!this.lianaSession.isAuthenticated()) {\n      await this._authenticationSucceeded();\n    }\n\n    const recordId = params.record_id;\n    const collectionId = params.edit_collection_id;\n    const segmentId = transition.to.queryParams && transition.to.queryParams.segmentId;\n    const paramsRouteCollection = this.paramsFor('project.rendering.data.collection');\n    const collections = this.store.peekAll('collection');\n    const collectionForList = collections.find(\n      ({ id, shareableId }) =>\n        shareableId === paramsRouteCollection.collection_id\n        || id === paramsRouteCollection.collection_id,\n    );\n    const collection = collections.find(\n      ({ id, shareableId }) => shareableId === collectionId || id === collectionId,\n    );\n    const segment = (await collection.segments).find(({ id }) => id === segmentId?.toString());\n\n    if (!this.currentUser.canReadCollection(collection)) {\n      throw new AccessRecordForbidden();\n    }\n\n    const { rendering } = this.modelFor('project.rendering');\n    const modelHash = {\n      environment: rendering.get('environment'),\n      project: this.lianaSession.currentProject,\n      billing: this.lianaSession.currentProject.billing,\n      collection,\n      collectionForList,\n      segment,\n    };\n\n    return this.clientRecordFeature\n      .fetchRecord(collection, { id: recordId }, null, false)\n      .then((record) =>\n        hash({\n          ...modelHash,\n          record,\n        }),\n      )\n      .catch((error) => {\n        console.error('[forest] 🌳🌳🌳 Unexpected error in details view: ', error);\n\n        return hash({\n          collection,\n          recordId,\n          error,\n        });\n      });\n  }\n\n  afterModel(model) {\n    const canBrowse = this.currentUser.canBrowseCollection(model.collection);\n    const canRead = this.currentUser.canReadCollection(model.collection);\n\n    if (!canBrowse && !canRead) {\n      throw new AccessRecordForbidden();\n    }\n  }\n\n  /**\n   * @private\n   */\n  _authenticationSucceeded() {\n    return new Promise((resolve) => {\n      this.lianaSession.on('authenticationSucceeded', resolve);\n    });\n  }\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    controller.listenToRecordDeletedEvent();\n  }\n\n  @action\n  // eslint-disable-next-line consistent-return\n  async willTransition(transition) {\n    const handled = await this.routeTransitionHandler.handleWillTransition(transition);\n    if (handled) return false;\n    const model = this.modelFor(this.routeName);\n\n    // NOTICE: Do not rollbackAttributes if the user switch to the hasMany or integration tab.\n    const { record } = model;\n    if (\n      record\n      && transition.to.name.indexOf('project.rendering.data.collection.list.view-edit') !== 0\n    ) {\n      if (record.get('hasDirtyAttributes')) {\n        const sure = window.confirm(\n          `All the changes you made to this ${model.collection.get(\n            'displayNameLowerCase',\n          )} will be canceled, are you sure to continue?`,\n        );\n        if (!sure) {\n          return transition.abort();\n        }\n      }\n      record.rollbackAttributes();\n      record.rollbackRelationships('belongsTo');\n    }\n  }\n\n  afterSave(collection, record, controller) {\n    this.toastr.perform(\n      'success',\n      `${collection.get('displayName')} ${record.get(\n        collection.get('displayFieldWithNamespace'),\n      )} updated.`,\n    );\n    controller.set('showRecordViewEdit', false);\n  }\n\n  redirectToUpdatedRecord(controller, record) {\n    const currentRoute = this.router.currentRouteName;\n    this.router.replaceWith(currentRoute, {\n      ...controller.model,\n      record_id: record.newPk,\n      edit_collection_id: controller.model.collection.shareableId,\n    });\n  }\n\n  @action\n  async applyEditChanges(callback) {\n    const model = this.modelFor(this.routeName);\n    const { collection, record } = model;\n\n    const displayFieldName = collection.displayFieldWithNamespace;\n    const hasDisplayedFieldChanged = !!record.changedAttributes()[displayFieldName];\n    const savedRecord = await this.clientRecordFeature.upsertRecord(record);\n    if (savedRecord) {\n      // eslint-disable-next-line ember/no-controller-access-in-routes\n      this.controller.set('showRecordViewEdit', false);\n\n      // If the display field name value changed propagate to left panel and breadcrumb\n      if (hasDisplayedFieldChanged) {\n        // Update recordIdentifier to keep the left panel record name updated\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.controller.notifyPropertyChange('recordIdentifier');\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.routeHistory.updateLastHistoryItemDisplayName(this.controller.recordIdentifier);\n      }\n      if (typeof record.newPk !== 'undefined') {\n        // handle zero\n        // eslint-disable-next-line ember/no-controller-access-in-routes\n        this.redirectToUpdatedRecord(this.controller, record);\n\n        // NOTICE need to reload the list for correctly setting ember internals\n        this.betaCollectionListCommunicator.refreshAll(collection);\n      }\n\n      return callback();\n    }\n    return callback(true);\n  }\n\n  @action\n  async deleteRecord(callback) {\n    const model = this.modelFor(this.routeName);\n    const { collection, record } = model;\n\n    const isSuccess = await this.clientRecordFeature.deleteRecord(record);\n\n    if (isSuccess) {\n      const breadCrumbItems = document.getElementsByClassName('js-breadcrumb-item');\n\n      if (breadCrumbItems && breadCrumbItems.length > 1) {\n        const previousItem = breadCrumbItems[breadCrumbItems.length - 2];\n        previousItem.click();\n      } else {\n        this.router.transitionTo('project.rendering.data.collection.list', collection.shareableId);\n      }\n    }\n\n    callback?.();\n  }\n}\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport { resolve } from 'rsvp';\n\nimport { is404Error } from 'client/utils/ember-error-util';\n\nexport default class ProjectRenderingDataCollectionListViewEditSummaryIndexController extends Controller {\n  @service abilities;\n  @service betaCollectionListCommunicator;\n  @service currentUser;\n  @service('feature/action/internal-business/custom-action') customActionService;\n  @service eventBus;\n  @service store;\n  @service toastr;\n  /** @type {import('client/features/action/services/internal-business/availability').default} */\n  @service('feature/action/internal-business/availability') actionService;\n\n  readMode = true;\n  @tracked enabledCustomActions = [];\n  @tracked _hasFormErrors = false;\n\n  @alias('model.collection') collection;\n\n  get shouldDisplayActionsButton() {\n    return this.actionService.isAnyActionAvailable(this.collection, 1);\n  }\n\n  @alias('collection.customActionsOrdered') customActionsForCurrentRecord;\n  @alias('collection.customActionsOrderedForUser') customActionsForCurrentRecordAndUser;\n\n  @computed('collection.collectionPermissions.deleteEnabled', 'currentUser')\n  get enableDelete() {\n    return this.currentUser.canDeleteCollection(this.collection);\n  }\n\n  get workflows() {\n    return this.collection.get('workflows');\n  }\n\n  @computed('currentUser.editMode')\n  get displayHeaderButtons() {\n    return !this.currentUser.editMode && this.abilities.can('access summaryView');\n  }\n\n  @computed('collection.collectionPermissions.addEnabled', 'currentUser')\n  get enableDuplicate() {\n    return this.currentUser.canAddCollection(this.collection);\n  }\n\n  @computed('collection.collectionPermissions.editEnabled', 'currentUser')\n  get canEdit() {\n    return this.currentUser.canEditCollection(this.collection);\n  }\n\n  @action\n  toggleCustomActionsMenu() {\n    this.toggleProperty('showCustomActionsMenu');\n  }\n\n  @action\n  hideCustomActionsMenu() {\n    this.set('showCustomActionsMenu', false);\n  }\n\n  @action\n  showViewEdit() {\n    this.set('readMode', false);\n  }\n\n  @action\n  cancel() {\n    this.set('readMode', true);\n    if (this.model?.record) {\n      this.model.record.rollbackAttributes();\n      this.model.record.rollbackRelationships('belongsTo');\n    }\n  }\n\n  @action\n  handleFormValidityChange(hasErrors) {\n    this._hasFormErrors = hasErrors;\n  }\n\n  @action\n  applyChanges(callback) {\n    this.send('applyEditChanges', async (error) => {\n      if (error) {\n        return callback(resolve());\n      }\n\n      this.set('readMode', true);\n      this.enabledCustomActions = await this.customActionService.getEnabledCustomActions(\n        this.collection.customActionsOrdered,\n        [this.model.record],\n      );\n      return callback(resolve());\n    });\n  }\n\n  @action\n  async triggerAction(customAction, records, contextForRecords) {\n    const { success, isApproval } = await this.customActionService.triggerCustomAction(\n      customAction,\n      records || [this.model.record],\n      null,\n      true,\n      contextForRecords,\n    );\n\n    if (success && !isApproval) {\n      // NOTICE: Refresh the current record if the Smart Action is triggered on it.\n      await this.refreshRecord(customAction);\n    }\n\n    return { success, isApproval };\n  }\n\n  async refreshRecord() {\n    const recordId = this.model.record.id;\n    try {\n      await this.model.record.reload();\n    } catch (error) {\n      if (is404Error(error)) {\n        this.eventBus.trigger('recordDeleted', recordId);\n      }\n    }\n\n    this.enabledCustomActions = await this.customActionService.getEnabledCustomActions(\n      this.collection.customActionsOrdered,\n      [this.model.record],\n    );\n  }\n}\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\nimport resetRecordReadMode from 'client/decorators/reset-record-read-mode';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'summaryView',\n  redirectionIfFeatureNotActivated:\n    'project.rendering.data.collection.list.view-edit.summary.preview',\n})\n@resetRecordReadMode\nexport default class ProjectRenderingDataCollectionListViewEditSummaryIndexRoute extends Route {\n  @service activityTracker;\n  @service currentUser;\n  @service('feature/action/internal-business/custom-action') customAction;\n  @service lianaSession;\n  @service router;\n\n  async setupController(controller, model) {\n    super.setupController(controller, model);\n\n    if (model.record) {\n      controller.enabledCustomActions = await this.customAction.getEnabledCustomActions(\n        model.collection.customActionsOrdered,\n        [model.record],\n      );\n    }\n  }\n\n  @action\n  goToRouteDetails() {\n    this.router.transitionTo('project.rendering.data.collection.list.view-edit.details');\n  }\n\n  @action\n  triggerCustomAction(...args) {\n    return this.customAction.triggerCustomAction(...args);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"view-edit-actions\\\">\\n  {{#if this.displayHeaderButtons}}\\n    {{#if this.readMode}}\\n      <Dropdown::BetaDropdownActions\\n        @class=\\\"c-collection-list-header__action\\\"\\n        @shouldDisplayActionDropdown={{this.shouldDisplayActionsButton}}\\n        @isEditMode={{this.currentUser.editMode}}\\n        @customActions={{this.customActionsForCurrentRecordAndUser}}\\n        @enabledCustomActions={{this.enabledCustomActions}}\\n        @collection={{this.model.collection}}\\n        @segment={{this.model.segment}}\\n        @selectedRecord={{this.model.record}}\\n        @isDuplicable={{this.enableDuplicate}}\\n        @isDeletable={{this.enableDelete}}\\n        @deleteRecords={{route-action \\'deleteRecord\\'}}\\n        @triggerCustomAction={{this.triggerAction}}\\n      />\\n\\n      {{#if this.canEdit}}\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @text=\\\"Edit\\\"\\n          @action={{this.showViewEdit}}\\n          @async={{false}}\\n          class=\\\"c-collection-list-header__action\\\"\\n          data-test-for-button=\\\"edit-record\\\"\\n        />\\n      {{/if}}\\n    {{else}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @text=\\\"Cancel\\\"\\n        @action={{this.cancel}}\\n        @async={{false}}\\n        class=\\\"c-collection-list-header__action\\\"\\n        data-test-for-button=\\\"cancel-edit-record\\\"\\n      />\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @text=\\\"Save\\\"\\n        @action={{this.applyChanges}}\\n        @disabled={{this._hasFormErrors}}\\n        class=\\\"c-collection-list-header__action\\\"\\n        data-test-for-button=\\\"save-edit-record\\\"\\n      />\\n    {{/if}}\\n  {{/if}}\\n</Shared::PortalContent>\\n<DataDisplay::Record::Summary\\n  @model={{this.model}}\\n  @isReadMode={{this.readMode}}\\n  @segmentId={{this.model.segment.id}}\\n  @customActions={{this.customActionsForCurrentRecord}}\\n  @workflows={{this.workflows}}\\n  @triggerCustomAction={{this.triggerAction}}\\n  @enabledCustomActions={{this.enabledCustomActions}}\\n  @onFormValidityChange={{this.handleFormValidityChange}}\\n/>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/summary/index/template.hbs' });\n","import Route from '@ember/routing/route';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'summaryView',\n  redirectionIfFeatureActivated: 'project.rendering.data.collection.list.view-edit.summary.index',\n})\nexport default class ProjectRenderingDataCollectionListViewEditSummaryPreviewRoute extends Route {\n  titleToken = 'Premium Feature';\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    if (model.collection && model.record) {\n      controller.featureParams = `${model.collection.shareableId},${model.collection.shareableId},${model.record.id}`;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::PreviewSummaryView @featureParams={{this.featureParams}} />\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/summary/preview/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailOverlay>\\n  {{#if (and this.model.record (not this.model.error))}}\\n    <BetaHeader\\n      @hasSideMenu={{not (and this.isSummaryView this.currentUser.editMode)}}\\n      @menuItems={{this.menuItems}}\\n      data-test-controller-project-rendering-data-collection-list-view-edit-header\\n    >\\n      <:search-and-filter as |portalClass|>\\n        <Shared::PortalFor\\n          @name=\\\"view-edit-search-and-filter\\\"\\n          class={{portalClass}}\\n          data-test-controller-project-rendering-data-collection-list-view-edit-header-search-and-filter-portal\\n        />\\n      </:search-and-filter>\\n      <:right-buttons as |portalClass|>\\n        <Shared::PortalFor\\n          @name=\\\"view-edit-actions\\\"\\n          class={{portalClass}}\\n          data-test-controller-project-rendering-data-collection-list-view-edit-header-actions-portal\\n        />\\n        <Shared::PortalFor @name=\\\"workspace-header-right-buttons\\\" />\\n      </:right-buttons>\\n    </BetaHeader>\\n\\n    <LayoutDetail::LayoutDetailBody\\n      @model={{this.model}}\\n      @isNew={{false}}\\n      @reorderRows=\\\"reorderRows\\\"\\n      @hasClose={{false}}\\n      @showSideMenu={{this.showSideMenu}}\\n      @recordIdentifier={{this.recordIdentifier}}\\n      @currentSegmentId={{this.currentSegmentId}}\\n    >\\n      {{outlet}}\\n    </LayoutDetail::LayoutDetailBody>\\n  {{else}}\\n    <Layout::LayoutError @error={{this.model.error}} />\\n  {{/if}}\\n</LayoutDetail::LayoutDetailOverlay>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport { singularize } from 'ember-inflector';\n\nexport default class ProjectRenderingDataCollectionListViewEditViewHasManyEmbeddedCreateController extends Controller {\n  @service errorHandler;\n  @service router;\n  @service toastr;\n\n  @tracked _hasFormErrors = false;\n\n  newNestedRecord;\n\n  transitionToAfterAction =\n    'project.rendering.data.collection.list.view-edit.view-has-many-embedded';\n\n  @action\n  handleFormValidityChange(hasErrors) {\n    this._hasFormErrors = hasErrors;\n  }\n\n  @alias('model.row.field') field;\n\n  @computed('field.displayName')\n  get panelSubtitle() {\n    return `Create a new ${singularize(this.field.displayName)}`;\n  }\n\n  get nestedRecords() {\n    return this.model.record[this.model.row.field.attributeName];\n  }\n\n  @action\n  async create(callback) {\n    this.model.record[this.model.row.field.attributeName] ||= [];\n    this.nestedRecords.pushObject(this.newNestedRecord);\n\n    try {\n      await this.model.record.save();\n      this.toastr.perform('success', `${this.field.displayName} created.`);\n      this.router.transitionTo(this.transitionToAfterAction);\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error, `${this.field.displayName} creation failed:`);\n    }\n\n    callback();\n  }\n\n  @action\n  cancel() {\n    this.router.transitionTo(this.transitionToAfterAction);\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { namespace } from 'client/utils/string-utils';\n\nexport default class ProjectRenderingDataCollectionListViewEditViewHasManyEmbeddedCreateRoute extends Route {\n  @service store;\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    controller.set(\n      'newNestedRecord',\n      this.store.createFragment(namespace(model.row.field.embeddedCollectionName, '-')),\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<RightPanelBody @extraClasses=\\\"l-overlay__sidepage__content--view-edit\\\">\\n  <DataDisplay::Record::Details\\n    @collection={{this.field.nestedOrReferencedCollection}}\\n    @record={{this.newNestedRecord}}\\n    @rows={{this.field.nestedOrReferencedCollection.viewCreate.visibleRowCreates}}\\n    @disableNested={{false}}\\n    @parentCollection={{this.field.collection}}\\n    @parentRecord={{this.record}}\\n    @onFormValidityChange={{this.handleFormValidityChange}}\\n  />\\n</RightPanelBody>\\n\\n<Layout::LayoutFooter>\\n  <Shared::Button::BetaButton\\n    @type=\\\"secondary\\\"\\n    @text=\\\"Cancel\\\"\\n    @action={{this.cancel}}\\n    @async={{false}}\\n  />\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @text=\\\"Create\\\"\\n    @action={{this.create}}\\n    @disabled={{this._hasFormErrors}}\\n  />\\n</Layout::LayoutFooter>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-embedded/create/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { tracked } from '@glimmer/tracking';\nimport { singularize } from 'ember-inflector';\n\nexport default class ProjectRenderingDataCollectionListViewEditViewHasManyEmbeddedEditController extends Controller {\n  @tracked _hasFormErrors = false;\n\n  @action\n  handleFormValidityChange(hasErrors) {\n    this._hasFormErrors = hasErrors;\n  }\n\n  @alias('model.row.field') field;\n\n  @computed('field.displayName')\n  get panelSubtitle() {\n    return `Edit ${singularize(this.field.displayName)}`;\n  }\n\n  @action\n  cancel() {\n    this.send('cancelTransition');\n  }\n\n  @action\n  applyChanges(callback) {\n    this.send('editAndTransition', callback);\n  }\n}\n","import EmberObject, { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionListViewEditViewHasManyEmbeddedEditRoute extends Route {\n  @service('feature/client-record') clientRecordFeature;\n  @service router;\n\n  fieldName = null;\n\n  model(params) {\n    return EmberObject.create({\n      recordIndex: parseInt(params.record_index, 10),\n    });\n  }\n\n  setupController(controller, model) {\n    const recordIndex = model.get('recordIndex');\n    const parentModel = this.modelFor(\n      'project.rendering.data.collection.list.view-edit.view-has-many-embedded',\n    );\n    const fieldName = parentModel.row.get('field.attributeName');\n    const innerRecords = parentModel.record.get(fieldName);\n    const innerRecord = innerRecords.objectAt(recordIndex);\n\n    this.set('fieldName', fieldName);\n    super.setupController(controller, parentModel);\n    controller.set('nestedRecord', innerRecord);\n  }\n\n  @action\n  cancelTransition() {\n    this.router.transitionTo(\n      'project.rendering.data.collection.list.view-edit.view-has-many-embedded',\n    );\n  }\n\n  @action\n  async editAndTransition(callback) {\n    const parentModel = this.modelFor(\n      'project.rendering.data.collection.list.view-edit.view-has-many-embedded',\n    );\n    // eslint-disable-next-line ember/no-controller-access-in-routes\n    const controller = this.controllerFor(this.routeName);\n\n    const isUpdated = await this.clientRecordFeature.updateEmbeddedRelationship(\n      parentModel.parentRecord,\n      parentModel.row.field,\n      controller.nestedRecord,\n    );\n\n    if (isUpdated) {\n      await parentModel.parentRecord.reload();\n      await parentModel.record.reload();\n      this.router.transitionTo(\n        'project.rendering.data.collection.list.view-edit.view-has-many-embedded',\n      );\n    }\n\n    callback();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<RightPanelBody @extraClasses=\\\"l-overlay__sidepage__content--view-edit\\\">\\n  <DataDisplay::Record::Details\\n    @collection={{this.field.nestedOrReferencedCollection}}\\n    @record={{this.nestedRecord}}\\n    @rows={{this.field.nestedOrReferencedCollection.viewEdit.visibleRowEdits}}\\n    @disableNested={{false}}\\n    @parentCollection={{this.field.collection}}\\n    @parentRecord={{this.model.parentRecord}}\\n    @onFormValidityChange={{this.handleFormValidityChange}}\\n  />\\n</RightPanelBody>\\n\\n<Layout::LayoutFooter>\\n  <Shared::Button::BetaButton\\n    @type=\\\"secondary\\\"\\n    @text=\\\"Cancel\\\"\\n    @action={{this.cancel}}\\n    @async={{false}}\\n  />\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @text=\\\"Apply changes\\\"\\n    @action={{this.applyChanges}}\\n    @disabled={{this._hasFormErrors}}\\n  />\\n</Layout::LayoutFooter>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-embedded/edit/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias, not } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport { pluralize } from 'ember-inflector';\n\nexport default class ProjectRenderingDataCollectionListViewEditViewHasManyEmbeddedIndexController extends Controller {\n  @service betaCollectionListCommunicator;\n  @service lianaFeatures;\n  @service toastr;\n\n  @tracked betaCollectionListId = this.betaCollectionListCommunicator.generateInteractionId();\n  @tracked selectedRecordsCount = 0;\n\n  @alias('model.row.field') field;\n  @alias('model.records') records;\n  @alias('model.records.length') recordsCount;\n  @not('model.row.field.isReadOnly') actionsEnabled;\n\n  @computed('field.displayNameTitlize')\n  get panelSubtitle() {\n    return pluralize(this.field.displayNameTitlize);\n  }\n\n  @action\n  handleDeleteEmbeddedDocuments() {\n    return this.betaCollectionListCommunicator.deleteRecords(this.betaCollectionListId);\n  }\n\n  @action\n  handleRowClick(recordIndex) {\n    const { environment } = this.model.collection.rendering;\n    const isRelatedHasManyEditable = this.lianaFeatures.isFeatureCompatible(\n      'relatedHasManyEditable',\n      environment,\n    );\n\n    if (isRelatedHasManyEditable) {\n      this.send('transitionToEditForm', recordIndex);\n    } else {\n      this.toastr.perform(\n        'error',\n        'Update the Agent `forest-express-mongoose` to >=2.5.0 to enable edition.',\n      );\n    }\n  }\n\n  @action\n  handleSelectedRecordsChange({ selectedRecordsCount }) {\n    this.selectedRecordsCount = selectedRecordsCount;\n  }\n}\n","import type Controller from '@ember/controller';\nimport type Transition from '@ember/routing/-private/transition';\nimport type CollectionModel from 'client/data/models/collection';\nimport type ProjectModel from 'client/data/models/project';\nimport type RowEditModel from 'client/data/models/row-edit';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport ResizableColumnsState from 'client/utils/resizable-columns-state';\n\nexport interface ProjectRenderingDataCollectionListViewEditViewHasManyEmbeddedIndexRouteModel {\n  collection: CollectionModel;\n  record: ClientRecordModel;\n  records: ClientRecordModel[];\n  project: ProjectModel;\n  row: RowEditModel;\n  parentRecord: ClientRecordModel;\n}\n\nexport default class ProjectRenderingDataCollectionListViewEditViewHasManyEmbeddedIndexRoute extends Route {\n  @service localStorage: LocalStorageService;\n  @service lianaSession: LianaSessionService;\n\n  async setupController(\n    controller: Controller & { resizableColumnsState: ResizableColumnsState },\n    model: ProjectRenderingDataCollectionListViewEditViewHasManyEmbeddedIndexRouteModel,\n    transition: Transition,\n  ) {\n    super.setupController(controller, model, transition);\n\n    const columnsState = new ResizableColumnsState(\n      this.localStorage,\n      this.lianaSession.rendering.id,\n      {\n        type: 'relatedData',\n        fieldName: model.row.field.attributeName,\n      },\n    );\n\n    controller.set('resizableColumnsState', columnsState);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"view-edit-actions\\\">\\n  {{#if this.actionsEnabled}}\\n    {{#if this.selectedRecordsCount}}\\n      <Dropdown::DropdownActions class=\\\"c-collection-list-header__action\\\">\\n        <Form::Dropdown::Action\\n          @isDanger={{true}}\\n          @name=\\\"Remove{{if this.areAllRecordsSelected \\' all\\'}}\\\"\\n          @onClick={{this.handleDeleteEmbeddedDocuments}}\\n        />\\n      </Dropdown::DropdownActions>\\n    {{/if}}\\n\\n    <Shared::Button::BetaButton\\n      @action={{route-action \\'transitionToCreationForm\\'}}\\n      @async={{false}}\\n      @text=\\\"Create a new {{word-singularize (lowercase-text this.field.displayName)}}\\\"\\n      @type=\\\"primary\\\"\\n      class=\\\"c-collection-list-header__action\\\"\\n    />\\n  {{/if}}\\n</Shared::PortalContent>\\n<RightPanelBody @noPadding={{true}} @noScroll={{true}}>\\n  <DataDisplay::BetaCollectionList\\n    @betaCollectionListId={{this.betaCollectionListId}}\\n    @resizableColumnsState={{this.resizableColumnsState}}\\n    @record={{this.model.parentRecord}}\\n    @modelToFetch={{this.field}}\\n    @onSelectedRecordsChange={{this.handleSelectedRecordsChange}}\\n    @onRowClick={{this.handleRowClick}}\\n    @openCreateRecord={{unless\\n      this.field.isReadOnly\\n      (action-link-to\\n        \\'project.rendering.data.collection.list.view-edit.view-has-many-embedded.create\\'\\n      )\\n    }}\\n  />\\n</RightPanelBody>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-embedded/index/template.hbs' });\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nexport default class ProjectRenderingDataCollectionListViewEditViewHasManyEmbeddedRoute extends Route {\n  @service router;\n  @service store;\n\n  model(params) {\n    const rowId = params.row_edit_id;\n    const parentModel = this.modelFor('project.rendering.data.collection.list.view-edit');\n\n    const row = this.store.peekRecord('rowEdit', rowId);\n    const fieldName = row.get('field.attributeName');\n    return hash({\n      collection: parentModel.collection,\n      record: parentModel.record,\n      records: parentModel.record.get(fieldName),\n      project: parentModel.project,\n      row,\n      parentRecord: parentModel.record,\n    });\n  }\n\n  @action\n  transitionToCreationForm() {\n    this.router.transitionTo(\n      'project.rendering.data.collection.list.view-edit.view-has-many-embedded.create',\n    );\n  }\n\n  @action\n  transitionToEditForm(recordIndex) {\n    this.router.transitionTo(\n      'project.rendering.data.collection.list.view-edit.view-has-many-embedded.edit',\n      recordIndex,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Layout::LayoutLoader @type=\\\"data\\\" />\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many-loading/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { equal } from '@ember/object/computed';\nimport { singularize } from 'ember-inflector';\n\nexport default class ProjectRenderingDataCollectionListViewEditViewHasManyAddController extends Controller {\n  @equal('selectedValue', null) selectedValueEmpty;\n\n  @computed('model.collection.displayName', 'model.row.field.displayName')\n  get panelTitle() {\n    return `Add an existing ${singularize(this.model.row.field.displayName)}`;\n  }\n\n  @action\n  addToRecords(callback) {\n    this.send('saveRecordWithAssociation', this.selectedValue, callback);\n  }\n}\n","import Route from '@ember/routing/route';\n\nexport default class ProjectRenderingDataCollectionListViewEditViewHasManyAddRoute extends Route {\n  setupController(controller, model) {\n    controller.set('selectedValue', null);\n    super.setupController(controller, model);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<RightPanelBody @extraClasses=\\\"l-overlay__sidepage__content--view-edit\\\">\\n  <BetaForm::AddExistingRecord\\n    @field={{this.model.row.field}}\\n    @onChange={{fn (mut this.selectedValue)}}\\n  />\\n</RightPanelBody>\\n\\n<Layout::LayoutFooter>\\n  <Shared::Button::BetaButton\\n    @type=\\\"secondary\\\"\\n    @text=\\\"Cancel\\\"\\n    @action={{route-action \\'cancel\\'}}\\n    @async={{false}}\\n    data-test-cancel={{true}}\\n  />\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @text=\\\"Add\\\"\\n    @action={{this.addToRecords}}\\n    @disabled={{this.selectedValueEmpty}}\\n    data-test-add={{true}}\\n  />\\n</Layout::LayoutFooter>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many/add/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias, filterBy } from '@ember/object/computed';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectRenderingDataCollectionListViewEditViewHasManyCreateController extends Controller {\n  @tracked prefilledRow = null;\n  @tracked _hasFormErrors = false;\n\n  @action\n  handleFormValidityChange(hasErrors) {\n    this._hasFormErrors = hasErrors;\n  }\n\n  @alias('model.parentRecord') parentRecord;\n  @alias('model.parentCollection') parentCollection;\n  @alias('model.record') record;\n  @alias('model.row') row;\n  @alias('model.field') field;\n  @alias('model.newRecord') newRecord;\n\n  @filterBy('rows', 'isVisible', true) visibleRows;\n\n  @computed('field.referenceModel.displayNameLowerCase')\n  get panelTitle() {\n    return `Create a new ${this.field.referenceModel.displayNameLowerCase}`;\n  }\n\n  @computed('hasManyRows', 'field.referenceModel.viewCreate.rowCreates.@each.position')\n  get rows() {\n    return this.field.referenceModel.viewCreate.rowCreates\n      .filter((rowCreate) => !rowCreate.field?.integration && !this.hasManyRows.includes(rowCreate))\n      .sortBy('position');\n  }\n\n  @computed(\n    'field.refenrenceModel.viewCreate.rowCreates.[]',\n    'field.referenceModel.viewCreate.rowCreates',\n  )\n  get hasManyRows() {\n    return this.field.referenceModel.viewCreate.rowCreates\n      .filter((rowEdit) => !rowEdit.displayAsRow)\n      .sortBy('field.displayName');\n  }\n}\n","import { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport ViewEditRelationshipCreateRoute from 'client/legacy/abstract-routes/view-edit-relationship-create-route';\n\nexport default class ProjectRenderingDataCollectionListViewEditViewHasManyCreateRoute extends ViewEditRelationshipCreateRoute {\n  @service store;\n  @service('feature/client-record') clientRecordFeature;\n  @service('shared/route-transition-handler') routeTransitionHandler;\n\n  model() {\n    const model = this.modelFor('project.rendering.data.collection.list.view-edit.view-has-many');\n    const parentModel = this.modelFor('project.rendering.data.collection.list.view-edit');\n    const record = this.store.createRecord(model.row.get('field.referenceModel.emberModelName'));\n\n    return hash({\n      parentRecord: parentModel.record,\n      // The collection cannot be removed as it is used by reset-record-read-mode decorator\n      collection: parentModel.collection,\n      parentCollection: parentModel.collection,\n      record,\n      row: model.row,\n      field: model.row.field,\n    });\n  }\n\n  @action\n  // eslint-disable-next-line consistent-return\n  async willTransition(transition) {\n    const handled = await this.routeTransitionHandler.handleWillTransition(transition);\n    if (handled) return false;\n\n    const model = this.modelFor(this.routeName);\n    if (model.record) {\n      model.record.rollbackAttributes();\n    }\n  }\n\n  @action\n  async saveNewRecord(callback) {\n    const model = this.modelFor(this.routeName);\n    const { record } = model;\n\n    const recordSaved = await this.clientRecordFeature.upsertRecord(record);\n\n    if (recordSaved) {\n      this.send('saveRecordWithAssociation', recordSaved, callback);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<RightPanelBody @extraClasses=\\\"l-overlay__sidepage__content--view-edit\\\">\\n  <DataDisplay::Record::Details\\n    @collection={{this.field.referenceModel}}\\n    @record={{this.record}}\\n    @rows={{this.visibleRows}}\\n    @prefilledRows={{this.prefilledRows}}\\n    @disableNested={{true}}\\n    @parentCollection={{this.parentCollection}}\\n    @parentRecord={{this.parentRecord}}\\n    @onFormValidityChange={{this.handleFormValidityChange}}\\n  />\\n</RightPanelBody>\\n<Layout::LayoutFooter>\\n  <Shared::Button @type=\\\"ghost\\\" @text=\\\"Cancel\\\" @onClick={{route-action \\'cancel\\'}} />\\n  <Shared::Button\\n    @type=\\\"primary\\\"\\n    @text=\\\"Create\\\"\\n    @onClick={{route-action \\'saveNewRecord\\'}}\\n    disabled={{this._hasFormErrors}}\\n  />\\n</Layout::LayoutFooter>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many/create/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type FilterModel from 'client/data/models/filter';\nimport type FilterFragment from 'client/data/models/fragment-filter';\nimport type RowEditModel from 'client/data/models/row-edit';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type ActionCustomActionInternalBusinessService from 'client/features/action/services/internal-business/custom-action';\nimport type BetaCollectionListCommunicatorService from 'client/legacy/services/beta-collection-list-communicator';\nimport type CollectionBusinessService from 'client/legacy/services/business/collection';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type RouteHistoryService from 'client/legacy/services/route-history';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type RelatedRecordsContext from 'client/utils/liana-records/related-records-context';\nimport type NestedField from 'client/utils/nested/field';\nimport type ResizableColumnsState from 'client/utils/resizable-columns-state';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport CollectionModel from 'client/data/models/collection';\nimport FieldModel from 'client/data/models/field';\nimport { EventBusClientRecordEventsEnum } from 'client/legacy/services/event-bus';\nimport { canEditRelationshipField } from 'client/utils/action-utils';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport { updateQueryParameters } from 'client/utils/url-utils';\n\nexport default class ProjectRenderingDataCollectionListViewEditViewHasManyIndexController extends Controller {\n  @service private betaCollectionListCommunicator: BetaCollectionListCommunicatorService;\n  @service private currentUser: CurrentUserService;\n  @service private eventBus: EventBusService;\n  @service('route-history') private routeHistory: RouteHistoryService;\n  @service('feature/action/internal-business/custom-action')\n  private customActionService: ActionCustomActionInternalBusinessService;\n\n  @service('business/collection') public businessCollectionService: CollectionBusinessService;\n\n  @tracked public searchValue = '';\n  @tracked enabledCustomActions: CustomActionModel[] = [];\n  @tracked collectionListInteractionId: string;\n  @tracked public recordsContext: RelatedRecordsContext;\n  @tracked public filter: FilterModel | FilterFragment;\n  @tracked public resizableColumnsState: ResizableColumnsState;\n\n  constructor(properties?: object) {\n    super(properties);\n\n    this.collectionListInteractionId = this.betaCollectionListCommunicator.generateInteractionId();\n    this.eventBus.on(\n      EventBusClientRecordEventsEnum.RecordRelationshipEdited,\n      this.handleRecordRelationshipEdited,\n    );\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.eventBus.off(\n      EventBusClientRecordEventsEnum.RecordRelationshipEdited,\n      this.handleRecordRelationshipEdited,\n    );\n  }\n\n  get queryParameters() {\n    const sort = this.businessCollectionService.getDefaultSortingFieldNameWithOrderPrefix(\n      this.recordsContext?.sortField as FieldModel,\n      this.recordsContext?.sortingOrder,\n    );\n    const defaultSort = this.field?.nestedOrReferencedCollection?.defaultSortingFieldName;\n    return {\n      filter:\n        this.recordsContext?.filter\n        && JSON.stringify(this.recordsContext?.filter.toJSON({ forApi: true })),\n      page: this.recordsContext?.currentPage > 1 ? this.recordsContext?.currentPage : undefined,\n      search: this.recordsContext?.search,\n      searchExtended: this.recordsContext?.isSearchExtended ? 'true' : undefined,\n      sort: sort === defaultSort ? undefined : sort,\n    };\n  }\n\n  get isMixpanelIntegration() {\n    return this.field?.integration === 'mixpanel';\n  }\n\n  public get field() {\n    return this.recordsContext?.field;\n  }\n\n  public get displayNamePluralLowerCase() {\n    return this.field?.nestedOrReferencedCollection?.displayNamePluralLowerCase;\n  }\n\n  public get columnsVisible() {\n    return this.field?.nestedOrReferencedCollection?.columnsVisibleOrdered;\n  }\n\n  public get hasFilterableFields() {\n    return this.field?.nestedOrReferencedCollection?.filterableFieldsWithoutRelationships?.length;\n  }\n\n  public get customActionsAvailable() {\n    return this.field?.nestedOrReferencedCollection instanceof CollectionModel\n      ? this.field?.nestedOrReferencedCollection?.customActionsOrderedForUser\n      : [];\n  }\n\n  get filterLocation() {\n    return `related-data-filter-for-${this.field?.nestedOrReferencedCollection.singularizedDisplayName}`;\n  }\n\n  get filterableFields() {\n    return this.field?.nestedOrReferencedCollection.filterableFields;\n  }\n\n  get showCreateActionInActionMenu() {\n    return this.currentUser.canAddCollection(this.field?.nestedOrReferencedCollection);\n  }\n\n  get deleteEnabled() {\n    return this.currentUser.canDeleteCollection(this.field?.nestedOrReferencedCollection);\n  }\n\n  get actionsEnabled() {\n    return canEditRelationshipField({ currentUser: this.currentUser }, this.field);\n  }\n\n  get canExport() {\n    return (\n      this.currentUser.canExportCollection(this.field?.nestedOrReferencedCollection)\n      && !this.field?.isVirtual\n      && !this.recordsContext?.selectedRecordsCount\n    );\n  }\n\n  get updateEnabled() {\n    return (\n      this.currentUser.canEditCollection(this.recordsContext?.field.collection)\n      && !this.field?.isReadOnly\n    );\n  }\n\n  get shouldDisplayActionsDropdown() {\n    return (\n      this.actionsEnabled\n      || this.customActionsAvailable\n      || (!this.recordsContext.field.integration && this.canExport)\n    );\n  }\n\n  @action\n  submitSearch(searchValue: string) {\n    let search = searchValue ? searchValue.trim() : searchValue;\n    search = search === '' ? null : search;\n\n    this.betaCollectionListCommunicator.refresh(this.collectionListInteractionId, {\n      search,\n      currentPage: 1,\n    });\n  }\n\n  @action\n  refresh() {\n    this.betaCollectionListCommunicator.refresh(this.collectionListInteractionId, {\n      currentPage: 1,\n    });\n  }\n\n  @action\n  async triggerAction(smartAction: CustomActionModel) {\n    this.betaCollectionListCommunicator.triggerSmartAction(\n      this.collectionListInteractionId,\n      smartAction,\n    );\n  }\n\n  @action\n  applyFilter(filter: FilterModel) {\n    void filter?.save();\n    this.betaCollectionListCommunicator.refresh(this.collectionListInteractionId, {\n      filter: filter?.clone(),\n      search: this.searchValue,\n      currentPage: 1,\n    });\n  }\n\n  @action\n  async afterDeleteRecords() {\n    this.betaCollectionListCommunicator.refreshAll(this.field);\n  }\n\n  @action\n  downloadRecords() {\n    this.betaCollectionListCommunicator.export(this.collectionListInteractionId);\n  }\n\n  @action\n  async onSelectedRecordsChange() {\n    if (this.field instanceof FieldModel) {\n      this.enabledCustomActions = await this.customActionService.getEnabledCustomActions(\n        this.field?.referenceModel.customActionsOrderedForUser,\n        this.recordsContext?.selectedRecords,\n      );\n    }\n  }\n\n  @action\n  async handleQueryParametersChange() {\n    if (!this.recordsContext) return;\n\n    const [, projectName, environmentName, teamName, , collectionId] =\n      window.location.pathname.split('/');\n    const params = {\n      project_name: decodeURIComponent(projectName),\n      environment_name: decodeURIComponent(environmentName),\n      team_name: decodeURIComponent(teamName),\n      collection_id: decodeURIComponent(collectionId),\n      edit_collection_id: (this.field?.collection as CollectionModel).shareableId,\n      record_id: this.recordsContext?.parentRecord.id,\n      row_edit_id: (this.model as { row: RowEditModel }).row.id,\n    };\n    const fakeTransition = {\n      to: {\n        name: 'project.rendering.data.collection.list.view-edit.view-has-many.index',\n        params,\n        paramNames: [\n          'project_name',\n          'environment_name',\n          'team_name',\n          'collection_id',\n          'edit_collection_id',\n          'record_id',\n          'row_edit_id',\n        ],\n        queryParams: this.queryParameters,\n      },\n    };\n    updateQueryParameters(this.queryParameters as unknown as Record<string, string>, true);\n\n    await waitForNextRunLoop();\n    this.routeHistory.setCurrentRoute(\n      this.model as Record<string, unknown>,\n      fakeTransition as unknown as Transition,\n    );\n  }\n\n  @action\n  handleRecordRelationshipEdited({\n    parentRecord,\n    field,\n  }: {\n    parentRecord: ClientRecordModel;\n    field: FieldModel | NestedField;\n  }) {\n    if (this.field === field && this.recordsContext?.parentRecord === parentRecord) {\n      this.recordsContext.isLoading = true;\n      this.recordsContext.records = null;\n      this.betaCollectionListCommunicator.refreshAll(this.field);\n    }\n  }\n}\n","/* eslint-disable ember/no-controller-access-in-routes */\nimport type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type CollectionModel from 'client/data/models/collection';\nimport type ProjectModel from 'client/data/models/project';\nimport type RowEditModel from 'client/data/models/row-edit';\nimport type ViewListModel from 'client/data/models/view-list';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\nimport type ProjectRenderingDataCollectionListViewEditViewHasManyIndexController from 'client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many/index/controller';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\nimport type StoreService from 'client/legacy/services/store';\nimport type RouteTransitionHandlerSharedBusinessService from 'client/shared/services/route-transition-handler';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { UnknownFetchViewListError } from 'client/features/collection/errors';\nimport { ManagedError } from 'client/utils/errors';\nimport ResizableColumnsState from 'client/utils/resizable-columns-state';\n\ninterface ProjectRenderingDataCollectionListViewEditViewHasManyIndexRouteModel {\n  collection: CollectionModel;\n  record: ClientRecordModel;\n  project: ProjectModel;\n  row: RowEditModel;\n  hasError?: boolean;\n  viewList?: ViewListModel;\n  recordsPerPage?: number;\n}\n\nexport default class ProjectRenderingDataCollectionListViewEditViewHasManyIndexRoute extends Route<ProjectRenderingDataCollectionListViewEditViewHasManyIndexRouteModel> {\n  @service private errorHandler: ErrorHandlerService;\n  @service private router: RouterService;\n  @service store: StoreService;\n  @service private localStorage: LocalStorageService;\n  @service('shared/route-transition-handler')\n  private routeTransitionHandler: RouteTransitionHandlerSharedBusinessService;\n\n  @service('feature/client-record') private clientRecordFeature: ClientRecordFeatureService;\n\n  async model() {\n    const model = this.modelFor(\n      'project.rendering.data.collection.list.view-edit.view-has-many',\n    ) as {\n      collection: CollectionModel;\n      record: ClientRecordModel;\n      project: ProjectModel;\n      row: RowEditModel;\n    };\n\n    try {\n      const viewList = await model.row?.field?.referenceModel?.mainViewWithColumnsRetrieved;\n      return {\n        ...model,\n        viewList,\n        recordsPerPage: viewList.recordsPerPage || 20,\n      };\n    } catch (error) {\n      const sentError =\n        error instanceof ManagedError\n          ? error\n          : new UnknownFetchViewListError(error as Error, 'Fetching view list error');\n      this.errorHandler.handleSilentError(sentError);\n      return {\n        ...model,\n        hasError: true,\n      };\n    }\n  }\n\n  setupController(\n    controller: ProjectRenderingDataCollectionListViewEditViewHasManyIndexController,\n    model: ProjectRenderingDataCollectionListViewEditViewHasManyIndexRouteModel,\n    transition: Transition,\n  ) {\n    super.setupController(controller, model, transition);\n\n    if (\n      !controller.recordsContext\n      || controller.recordsContext.field !== model.row.field\n      || controller.recordsContext.parentRecord !== model.record\n    ) {\n      controller.searchValue = transition.to.queryParams?.search;\n      controller.recordsContext = this.clientRecordFeature.buildStateFromQueryParams(\n        model.row.field,\n        model.record,\n        transition.to?.queryParams,\n      );\n    } else {\n      controller.searchValue = controller.recordsContext.search;\n    }\n\n    controller.filter =\n      controller.recordsContext?.filter?.clone()\n      || this.store.createRecord('filter', {\n        filteredCollection: controller.recordsContext.field.nestedOrReferencedCollection,\n      });\n    if (controller.filter.conditions.length) {\n      void controller.filter.save();\n    }\n\n    const resizableColumnsState = new ResizableColumnsState(\n      this.localStorage,\n      model.row.field.referenceModel.rendering.id,\n      {\n        type: 'relatedData',\n        fieldName: model.row.field.referenceModel.name,\n      },\n    );\n    controller.resizableColumnsState = resizableColumnsState;\n  }\n\n  @action\n  add() {\n    void this.router.transitionTo(\n      'project.rendering.data.collection.list.view-edit.view-has-many.add',\n    );\n  }\n\n  @action\n  create() {\n    void this.router.transitionTo(\n      'project.rendering.data.collection.list.view-edit.view-has-many.create',\n    );\n  }\n\n  @action\n  async willTransition(transition: Transition) {\n    const handled = await this.routeTransitionHandler.handleWillTransition(transition);\n    if (handled) return false;\n    (\n      this.controller as ProjectRenderingDataCollectionListViewEditViewHasManyIndexController\n    ).searchValue = null;\n\n    return undefined;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-insert this.handleQueryParametersChange}}\\n{{did-update this.handleQueryParametersChange this.queryParameters}}\\n\\n<Shared::PortalContent @for=\\\"view-edit-search-and-filter\\\">\\n  <Shared::BetaSearchBar\\n    @placeholder={{if\\n      this.recordsContext.recordsCount\\n      (concat\\n        \\'Search within \\'\\n        (format-number-to-locale this.recordsContext.recordsCount)\\n        \\' \\'\\n        (lowercase-text this.recordsContext.field.displayName)\\n        \\'...\\'\\n      )\\n    }}\\n    @parametersToWatchRetriggeringFocus={{this.model}}\\n    @searchFunction={{this.submitSearch}}\\n    @searchValue={{one-way this.searchValue}}\\n    @onChange={{fn (mut this.searchValue)}}\\n    class=\\\"c-collection-list-header__action c-beta-search-bar--flexible\\\"\\n    data-test-controller-project-rendering-data-collection-list-view-edit-view-has-many-index-search\\n  />\\n  {{#if this.hasFilterableFields}}\\n    <BetaFilter::Button\\n      @applyFilter={{this.applyFilter}}\\n      @fieldsFilterable={{this.filterableFields}}\\n      @filter={{this.filter}}\\n      @filterLocation={{this.filterLocation}}\\n      @createFilter={{this.businessCollectionService.createFilter}}\\n      class=\\\"c-collection-list-header__action\\\"\\n      data-test-controller-project-rendering-data-collection-list-view-edit-view-has-many-index-filter\\n      data-test-related-data-filter-button\\n    />\\n  {{/if}}\\n</Shared::PortalContent>\\n\\n<Shared::PortalContent @for=\\\"view-edit-actions\\\">\\n  {{#unless this.isMixpanelIntegration}}\\n    {{#if (and this.currentUser.editMode this.recordsContext.field.referenceModel.hasSmartViews)}}\\n      <Dropdown::BetaDropdownSmartViews\\n        @model={{this.recordsContext.field.referenceModel}}\\n        class=\\\"c-collection-list-header__action\\\"\\n        data-test-controller-project-rendering-data-collection-list-view-edit-view-has-many-index-smart-views\\n      />\\n    {{/if}}\\n  {{/unless}}\\n\\n  <Shared::Button::BetaButton\\n    @action={{this.refresh}}\\n    @async={{false}}\\n    @iconName=\\\"refresh\\\"\\n    @type=\\\"secondary\\\"\\n    class=\\\"c-collection-list-header__action\\\"\\n    data-test-controller-project-rendering-data-collection-list-view-edit-view-has-many-index-refresh\\n    data-test-refresh-button\\n  />\\n\\n  <Dropdown::BetaDropdownActions\\n    @shouldDisplayActionDropdown={{this.shouldDisplayActionsDropdown}}\\n    @areAllRecordsSelected={{this.recordsContext.areAllRecordsSelected}}\\n    @collection={{this.recordsContext.collection}}\\n    @customActions={{this.customActionsAvailable}}\\n    @enabledCustomActions={{this.enabledCustomActions}}\\n    @isDeletable={{false}}\\n    @isDuplicable={{false}}\\n    @isEditMode={{false}}\\n    @isListView={{true}}\\n    @selectedRecordsArray={{this.recordsContext.selectedRecords}}\\n    @selectedRecordsCount={{this.recordsContext.selectedRecordsCount}}\\n    @triggerCustomAction={{this.triggerAction}}\\n    class=\\\"c-collection-list-header__action\\\"\\n    data-test-actions-button\\n    data-test-controller-project-rendering-data-collection-list-view-edit-view-has-many-index-actions\\n  >\\n    {{#if this.recordsContext.selectedRecordsCount}}\\n      <Dropdown::BetaDropdownActions::DissociateAction\\n        @field={{this.recordsContext.field}}\\n        @onAfterDissociate={{this.afterDeleteRecords}}\\n        @recordsContext={{this.recordsContext}}\\n        @parentRecord={{this.recordsContext.parentRecord}}\\n        @selectedRecords={{this.recordsContext.selectedRecords}}\\n        @selectedRecordsContext={{this.recordsContext.selectedRecordsContext}}\\n      />\\n      <Dropdown::BetaDropdownActions::DeleteAction\\n        @field={{this.recordsContext.field}}\\n        @onAfterDelete={{this.afterDeleteRecords}}\\n        @recordsContext={{this.recordsContext}}\\n        @parentRecord={{this.recordsContext.parentRecord}}\\n        @selectedRecords={{this.recordsContext.selectedRecords}}\\n        @selectedRecordsCount={{this.recordsContext.selectedRecordsCount}}\\n        @selectedRecordsContext={{this.recordsContext.selectedRecordsContext}}\\n      />\\n    {{/if}}\\n    {{#if this.canExport}}\\n      <Form::Dropdown::Action\\n        @name=\\\"Export {{this.displayNamePluralLowerCase}}\\\"\\n        @onClick={{this.downloadRecords}}\\n      />\\n    {{/if}}\\n  </Dropdown::BetaDropdownActions>\\n\\n  {{#unless this.recordsContext.field.integration}}\\n    {{#if this.updateEnabled}}\\n      <Button::BetaCreateHasManyButton\\n        @addExistingRecord={{route-action \\'add\\'}}\\n        @collection={{this.recordsContext.field.referenceModel}}\\n        @createNewRecord={{route-action \\'create\\'}}\\n        class=\\\"c-collection-list-header__action\\\"\\n        data-test-controller-project-rendering-data-collection-list-view-edit-view-has-many-index-create\\n      />\\n    {{/if}}\\n  {{/unless}}\\n</Shared::PortalContent>\\n\\n<RightPanelBody @noPadding={{true}} @noScroll={{not this.isMixpanelIntegration}}>\\n  {{#if this.isMixpanelIntegration}}\\n    <Integration::IntegrationMixpanelList @records={{this.records}} />\\n  {{else}}\\n    <DataDisplay::BetaCollectionList\\n      @betaCollectionListId={{this.collectionListInteractionId}}\\n      @resizableColumnsState={{this.resizableColumnsState}}\\n      @filterLocation={{this.filterLocation}}\\n      @isEditMode={{this.currentUser.editMode}}\\n      @recordsContext={{this.recordsContext}}\\n      @onSelectedRecordsChange={{this.onSelectedRecordsChange}}\\n      @openCreateRecord={{if\\n        (and this.updateEnabled this.showCreateActionInActionMenu)\\n        (action-link-to \\'project.rendering.data.collection.list.view-edit.view-has-many.create\\')\\n      }}\\n      data-test-project-rendering-data-collection-list-view-edit-view-has-many\\n    />\\n  {{/if}}\\n</RightPanelBody>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/list/view-edit/view-has-many/index/template.hbs' });\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nexport default class ProjectRenderingDataCollectionListViewEditViewHasManyRoute extends Route {\n  @service('feature/client-record') clientRecordFeature;\n  @service router;\n  @service store;\n\n  model(params) {\n    const rowId = params.row_edit_id;\n    const parentModel = this.modelFor('project.rendering.data.collection.list.view-edit');\n\n    const row = this.store.peekRecord('rowEdit', rowId);\n    return hash({\n      collection: parentModel.collection,\n      record: parentModel.record,\n      project: parentModel.project,\n      row,\n    });\n  }\n\n  @action\n  async saveRecordWithAssociation(associatedRecord, callback) {\n    const model = this.modelFor(this.routeName);\n\n    const { record } = model;\n    const field = model.row.get('field');\n\n    await this.clientRecordFeature.addRecordToAssociation(record, field, associatedRecord);\n\n    await this.router.transitionTo(\n      'project.rendering.data.collection.list.view-edit.view-has-many',\n    );\n\n    return callback?.();\n  }\n\n  @action\n  cancel() {\n    this.router.transitionTo('project.rendering.data.collection.list.view-edit.view-has-many');\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type CollectionModel from 'client/data/models/collection';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionRoute extends Route {\n  @service lianaSession: LianaSessionService;\n  @service router: RouterService;\n\n  model(params: { collection_id: string }) {\n    const collection = this.lianaSession.rendering.collections.find(\n      ({ id, shareableId }) => id === params.collection_id || shareableId === params.collection_id,\n    );\n    if (!collection) {\n      throw new Error('Collection not found');\n    }\n    return collection;\n  }\n\n  async afterModel(model: CollectionModel, transition: Transition) {\n    if (transition.to.name === 'project.rendering.data.collection.index') {\n      await this.router.transitionTo('project.rendering.data.collection.list', model.shareableId);\n    }\n  }\n}\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionSettingsActionsController extends Controller {\n  /** @type {import('client/legacy/services/model-customization-service').default} */\n  @service modelCustomizationService;\n\n  @alias('model.collection') collection;\n  @alias('model.modelCustomizations') modelCustomizations;\n\n  get enableActionCreateOrUpdate() {\n    return this.modelCustomizationService.canCreateOrUpdateModelCustomizations();\n  }\n\n  isNoCodeAction(customAction) {\n    return this.modelCustomizations\n      .toArray()\n      .some((modelCustomization) => modelCustomization.name === customAction.name);\n  }\n\n  @action\n  isNoCodeActionDisabled(modelCustomization) {\n    return (\n      !this.enableActionCreateOrUpdate\n      || !this.noCodeActions.filter((nocode) => nocode.name === modelCustomization.name).length\n    );\n  }\n\n  @computed('collection.customActions')\n  get smartActions() {\n    return this.collection.customActions.filter(\n      (customAction) => !this.isNoCodeAction(customAction),\n    );\n  }\n\n  @computed('collection.customActions')\n  get noCodeActions() {\n    return this.collection.customActions.filter((customAction) =>\n      this.isNoCodeAction(customAction),\n    );\n  }\n\n  @computed('noCodeActions.length', 'smartActions.length')\n  get isAnyActionDefined() {\n    return this.smartActions.length || this.noCodeActions.length;\n  }\n\n  get showCardCreateNewNoCodeAction() {\n    return (\n      !this.modelCustomizations.filter((modelCustomization) => modelCustomization.isNew).length\n      && !this.isAnyActionDefined\n      && this.enableActionCreateOrUpdate\n    );\n  }\n\n  get showNoActionDefinedYet() {\n    return !this.isAnyActionDefined && !this.enableActionCreateOrUpdate;\n  }\n}\n","import type ModelCustomizationModel from 'client/data/models/model-customization';\nimport type { ModelCustomizationTypeEnum } from 'client/data/models/model-customization';\nimport type ModelCustomizationUIService from 'client/legacy/services/ui/collection-settings/model-customization-ui-service';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionSettingsActionsCreateController extends Controller {\n  @alias('model.modelCustomization')\n  modelCustomization: ModelCustomizationModel<ModelCustomizationTypeEnum.Action>;\n\n  @service('ui/collection-settings/model-customization-ui-service')\n  declare modelCustomizationUIService: ModelCustomizationUIService;\n\n  @action\n  async saveModelCustomization() {\n    await this.modelCustomizationUIService.saveModelCustomization(this.modelCustomization);\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type ModelCustomizationModel from 'client/data/models/model-customization';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type ModelCustomizationService from 'client/legacy/services/model-customization-service';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { ModelCustomizationConfigurationActionTypeEnum } from 'client/data/models/model-customization-configuration-action';\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving<typeof ProjectRenderingDataCollectionSettingsActionsCreateRoute>(\n  'modelCustomization',\n  { shouldResetEditModeOnAbort: true },\n)\nexport default class ProjectRenderingDataCollectionSettingsActionsCreateRoute extends Route {\n  @service declare lianaSession: LianaSession;\n  @service declare store: StoreService;\n  @service declare modelCustomizationService: ModelCustomizationService;\n\n  model() {\n    const { collection } = this.modelFor('project.rendering.data.collection.settings.actions') as {\n      collection: CollectionModel;\n    };\n\n    const customizationFound = collection.modelCustomizations.find(\n      (customization) => customization.isNew,\n    );\n    const modelCustomization =\n      customizationFound\n      || this.store.createRecord('model-customization', {\n        collection,\n        type: 'action',\n        modelName: collection.name,\n        environment: this.lianaSession.currentEnvironment,\n      });\n\n    modelCustomization.configuration = this.modelCustomizationService.getConfigurationFromType(\n      ModelCustomizationConfigurationActionTypeEnum.UpdateRecord,\n      modelCustomization,\n    );\n    this.modelCustomizationService.initConfiguration(modelCustomization.configuration);\n    return {\n      modelCustomization,\n    };\n  }\n\n  onLeavingWithoutSaving() {\n    const model = this.modelFor(this.routeName) as { modelCustomization: ModelCustomizationModel };\n    model.modelCustomization.unloadRecord();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaSettingsCard\\n  @entity={{this.modelCustomization}}\\n  @entityName=\\\"action\\\"\\n  @save={{this.saveModelCustomization}}\\n  @isSaveDisabled={{not this.modelCustomization.isValidForSave}}\\n  @withoutCallback={{true}}\\n>\\n  <BetaSettingsCard::Section @title=\\\"Basic settings\\\">\\n    <ModelCustomization::Action\\n      @modelCustomization={{this.modelCustomization}}\\n      @isEditMode={{true}}\\n      @isCreateMode={{true}}\\n    />\\n\\n  </BetaSettingsCard::Section>\\n</BetaSettingsCard>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/actions/create/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type ModelCustomizationModel from 'client/data/models/model-customization';\nimport type ProjectModel from 'client/data/models/project';\nimport type RoleModel from 'client/data/models/role';\nimport type SegmentModel from 'client/data/models/segment';\nimport type UserModel from 'client/data/models/user';\nimport type { Model } from 'client/legacy/pods/project/rendering/data/collection/settings/actions/details/route';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type ModelCustomizationUIService from 'client/legacy/services/ui/collection-settings/model-customization-ui-service';\nimport type { AbilitiesService } from 'ember-can';\n\nimport Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias, filterBy } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { predefinedButtonTypeValues } from 'client/utils/color-utils';\n\nexport default class ProjectRenderingDataCollectionSettingsActionsDetailsController extends Controller {\n  @service declare abilities: AbilitiesService;\n  @service declare errorHandler: ErrorHandlerService;\n  @service declare toastr: ToastrService;\n  @service declare router: RouterService;\n  @service('ui/collection-settings/model-customization-ui-service')\n  declare modelCustomizationUIService: ModelCustomizationUIService;\n\n  declare model: Model;\n\n  @alias('model.currentAction') declare currentAction: CustomActionModel;\n  @alias('model.modelCustomization') declare modelCustomization: ModelCustomizationModel;\n  @alias('model.roles') declare roles: RoleModel[];\n  @alias('model.users') declare users: UserModel[];\n  @alias('model.error') declare error: Error;\n  @alias('model.project') declare project: ProjectModel;\n\n  @filterBy('model.segments', 'isNew', false) declare segments: SegmentModel[];\n\n  @tracked isDisplayNameEditMode = false;\n\n  @computed('currentAction.isGlobal', 'segments.length')\n  get showSegmentSelection() {\n    return !this.currentAction?.isGlobal && this.segments?.length;\n  }\n\n  @action\n  discardChanges() {\n    this.isDisplayNameEditMode = false;\n    this.currentAction.rollbackAttributes();\n    this.currentAction.rollbackRelationships();\n    this.modelCustomization?.rollbackAttributes();\n    this.modelCustomization?.rollbackRelationships();\n    return this.toastr.perform(ToastrTypeEnum.Success, 'Smart Actions changes discarded.');\n  }\n\n  @action\n  async saveAction() {\n    await this.modelCustomizationUIService.saveModelCustomization(this.modelCustomization);\n\n    try {\n      await this.currentAction.save();\n\n      this.isDisplayNameEditMode = false;\n      if (!this.modelCustomization) {\n        this.toastr.perform(ToastrTypeEnum.Success, 'Smart Actions successfully updated.');\n      }\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(\n        error as Error,\n        `${this.currentAction.displayName} update failed`,\n      );\n    }\n  }\n\n  @computed(\n    'currentAction.{hasDirtyAttributes,hasDirtyRelationships}',\n    'modelCustomization.{hasDirtyAttributes,hasDirtyRelationships}',\n  )\n  get entity() {\n    return [this.currentAction, this.modelCustomization];\n  }\n\n  @action\n  async deleteModelCustomization() {\n    try {\n      await this.modelCustomization.destroyRecord();\n      this.toastr.perform(\n        ToastrTypeEnum.Success,\n        `Action ${this.modelCustomization.name} deleted.`,\n      );\n      await this.router.transitionTo('project.rendering.data.collection.settings.actions');\n    } catch (error) {\n      this.modelCustomization.rollbackAttributes();\n      this.errorHandler.handleRequestFailure(error as Error, 'Action deletion failed:');\n    }\n  }\n\n  get smartActionPermissionRouteParams(): string[] {\n    return [this.project.name, this.model.role.name, this.model.environment.name];\n  }\n\n  get segmentsHaveDifferentConnectionNames(): boolean {\n    const segmentsWithConnection = this.currentAction.segments.filter(\n      (segment) => segment.connectionName != null,\n    );\n\n    if (segmentsWithConnection.length > 1) {\n      const firstConnectionName = segmentsWithConnection[0].connectionName;\n      return !segmentsWithConnection.every(\n        (segment) => segment.connectionName === firstConnectionName,\n      );\n    }\n\n    return false;\n  }\n\n  get segmentConnectionNameWarningMessage(): string | null {\n    if (!this.segmentsHaveDifferentConnectionNames) {\n      return null;\n    }\n\n    const segmentsWithConnection = this.currentAction.segments.filter(\n      (segment) => segment.connectionName != null,\n    );\n\n    const connectionMap = new Map<string, string[]>();\n    segmentsWithConnection.forEach((segment) => {\n      const connName = segment.connectionName!;\n      if (!connectionMap.has(connName)) {\n        connectionMap.set(connName, []);\n      }\n      connectionMap.get(connName)!.push(segment.name);\n    });\n\n    const parts: string[] = [];\n    connectionMap.forEach((segmentNames, connectionName) => {\n      segmentNames.forEach((segmentName) => {\n        parts.push(`\"${segmentName}\" comes from \"${connectionName}\"`);\n      });\n    });\n\n    return `Live query segments from different connections cannot be selected (${parts.join(\n      ', ',\n    )}). Please select segments from the same connection.`;\n  }\n\n  get isSaveDisabled(): boolean {\n    // Only disable save if there is a modelCustomization and it is not valid for save\n    if (this.modelCustomization && !this.modelCustomization.isValidForSave) {\n      return true;\n    }\n\n    // Check if all segments with connectionName have the same connectionName\n    return !!this.segmentsHaveDifferentConnectionNames;\n  }\n\n  get buttonTypeOptions() {\n    return predefinedButtonTypeValues;\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type { ErrorType } from 'client/config/errors';\nimport type CollectionModel from 'client/data/models/collection';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type ModelCustomizationModel from 'client/data/models/model-customization';\nimport type { ModelCustomizationTypeEnum } from 'client/data/models/model-customization';\nimport type ProjectModel from 'client/data/models/project';\nimport type RoleModel from 'client/data/models/role';\nimport type SegmentModel from 'client/data/models/segment';\nimport type UserModel from 'client/data/models/user';\nimport type ProjectRenderingDataCollectionSettingsActionsDetailsController from 'client/legacy/pods/project/rendering/data/collection/settings/actions/details/controller';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaSession from 'client/legacy/services/liana-session';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport { ERROR_NOT_FOUND } from 'client/config/errors';\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\ntype Error = { type: ErrorType; options: { target: string } };\n\nexport type Model = {\n  currentAction: CustomActionModel;\n  modelCustomization: ModelCustomizationModel<ModelCustomizationTypeEnum>;\n  roles: RoleModel[];\n  segments: SegmentModel[];\n  users: UserModel[];\n  environment: EnvironmentModel;\n  canEditProject: boolean;\n  role: RoleModel;\n  error: Error;\n  project: ProjectModel;\n};\n@preventLeavingWithoutSaving<typeof ProjectRenderingDataCollectionSettingsActionsDetailsRoute>(\n  null,\n  { shouldResetEditModeOnAbort: true },\n)\nexport default class ProjectRenderingDataCollectionSettingsActionsDetailsRoute extends Route {\n  @service declare currentUser: CurrentUserService;\n  @service declare lianaSession: LianaSession;\n  declare controller: ProjectRenderingDataCollectionSettingsActionsDetailsController;\n\n  async model(params: { action_name: string }): Promise<Model> {\n    const project = this.lianaSession.currentProject;\n    const { roles } = project;\n    const { collection, modelCustomizations } = this.modelFor(\n      'project.rendering.data.collection.settings.actions',\n    ) as { collection: CollectionModel; modelCustomizations: ModelCustomizationModel[] };\n\n    const currentAction = collection.customActions.find(\n      (customAction) => customAction.name === params.action_name,\n    );\n    const modelCustomization = modelCustomizations.find(\n      (customization) => customization.name === currentAction.name,\n    );\n\n    let error: Error;\n    if (!currentAction) {\n      error = {\n        type: ERROR_NOT_FOUND,\n        options: { target: `Action \"${params.action_name}\"` },\n      };\n    }\n\n    return hash({\n      currentAction,\n      modelCustomization,\n      roles,\n      segments: collection.segments,\n      users: collection.rendering.team.users,\n      environment: this.lianaSession.currentEnvironment,\n      canEditProject: this.currentUser.canEditProject,\n      role: this.currentUser.model.role,\n      error,\n      project,\n    });\n  }\n\n  setupController(\n    controller: ProjectRenderingDataCollectionSettingsActionsDetailsController,\n    model: Model,\n    transition: Transition,\n  ) {\n    super.setupController(controller, model, transition);\n    controller.isDisplayNameEditMode = false;\n  }\n\n  mustPreventLeaving() {\n    // eslint-disable-next-line ember/no-controller-access-in-routes\n    return this.controller.entity.some((entity) => entity?.hasDirtyAttributes);\n  }\n\n  onLeavingWithoutSaving() {\n    // eslint-disable-next-line ember/no-controller-access-in-routes\n    return this.controller.discardChanges();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! template-lint-disable template-length }}\\n{{#if this.currentAction}}\\n  <BetaSettingsCard\\n    @entity={{this.entity}}\\n    @save={{this.saveAction}}\\n    @discard={{this.discardChanges}}\\n    @isSaveDisabled={{this.isSaveDisabled}}\\n    @withoutCallback={{true}}\\n  >\\n    {{#if this.modelCustomization}}\\n      <BetaSettingsCard::Section @title=\\\"Basic settings\\\">\\n        <Shared::Feedback::Notification::NotificationInApp\\n          @state=\\\"info\\\"\\n          @message=\\\"These settings are shared across all your teams.\\\"\\n          class=\\\"c-settings-action-details__visibility-info\\\"\\n        />\\n        <ModelCustomization::Action\\n          @modelCustomization={{this.modelCustomization}}\\n          @isCreateMode={{false}}\\n          @isEditMode={{true}}\\n        />\\n      </BetaSettingsCard::Section>\\n    {{/if}}\\n    <BetaSettingsCard::Section @title=\\\"Layout settings\\\">\\n\\n      {{#if this.modelCustomization}}\\n        <Shared::Feedback::Notification::NotificationInApp\\n          @state=\\\"info\\\"\\n          @message=\\\"These settings are specific to the current layout.\\\"\\n          class=\\\"c-settings-action-details__visibility-info\\\"\\n        />\\n      {{/if}}\\n      <Form::EditInline\\n        @label=\\\"Display name for\\\"\\n        @realName={{this.currentAction.name}}\\n        @value={{this.currentAction.displayName}}\\n        @isEditMode={{this.isDisplayNameEditMode}}\\n        @setEditMode={{fn (mut this.isDisplayNameEditMode)}}\\n        @isTitle={{true}}\\n        @class=\\\"c-settings-action-details__name\\\"\\n        data-test-action-display-name\\n      />\\n\\n      <Shared::BetaLabel\\n        @label=\\\"Button type\\\"\\n        @position=\\\"top\\\"\\n        class=\\\"c-settings-action-details__button-type-container\\\"\\n      >\\n        <Shared::BetaSelectColor\\n          @value={{this.currentAction.buttonType}}\\n          @onSelectValue={{fn (mut this.currentAction.buttonType)}}\\n          @options={{this.buttonTypeOptions}}\\n          class=\\\"c-settings-action-details__button-type-container__selector\\\"\\n          data-test-collection-settings-action-details-type-selector\\n        />\\n      </Shared::BetaLabel>\\n\\n      <Shared::BetaLabel\\n        @label=\\\"Make Smart action visible\\\"\\n        @position=\\\"right\\\"\\n        class=\\\"c-settings-action-details__visibility-toggle\\\"\\n        data-test-action-visibility\\n      >\\n        <Shared::Form::Toggle\\n          @value={{this.currentAction.isVisible}}\\n          @onChange={{fn (mut this.currentAction.isVisible)}}\\n        />\\n      </Shared::BetaLabel>\\n\\n      {{#if (and (not this.currentAction.isUserAllowed) this.currentAction.isVisible)}}\\n        <Shared::Feedback::Notification::NotificationInApp\\n          @state=\\\"warning\\\"\\n          @canHide={{false}}\\n          class=\\\"c-settings-action-details__visibility-warning\\\"\\n          data-test-action-details-permission-warning-banner\\n        >\\n          This smart action is not allowed by your Role. It will not appear in the UI.\\n          {{#if this.model.canEditProject}}\\n            <Shared::Navigation::BetaLinkTo\\n              @type=\\\"inherit\\\"\\n              @routeName=\\\"project.project-settings.roles.details.environment-permissions.smart-actions\\\"\\n              @routeParameters={{this.smartActionPermissionRouteParams}}\\n              @queryParams={{hash mode=\\'edit\\'}}\\n              @text=\\\"Configure it here\\\"\\n              @textClass=\\\"c-settings-action-details__visibility-warning__link\\\"\\n              @punctuation=\\\".\\\"\\n              @noPadding={{true}}\\n              @isInline={{true}}\\n              data-test-action-details-permission-settings-link\\n            />\\n          {{/if}}\\n        </Shared::Feedback::Notification::NotificationInApp>\\n      {{/if}}\\n\\n      {{#if this.showSegmentSelection}}\\n        <Shared::BetaLabel\\n          @label=\\\"Only usable in the following segments\\\"\\n          class=\\\"c-settings-action-details__restriction\\\"\\n        >\\n          <Shared::BetaSelectSearch\\n            @multipleValues={{true}}\\n            @options={{this.segments}}\\n            @value={{this.currentAction.segments}}\\n            @namePath=\\\"name\\\"\\n            @disabled={{this.currentAction.isHidden}}\\n            @defaultOption=\\\"All segments\\\"\\n            @placeholder=\\\"Type to search for segments...\\\"\\n            @enableLocalFilterAndHighlighter={{true}}\\n          />\\n        </Shared::BetaLabel>\\n\\n        {{#if this.segmentConnectionNameWarningMessage}}\\n          <Shared::Feedback::Notification::NotificationInApp\\n            @state=\\\"warning\\\"\\n            @message={{this.segmentConnectionNameWarningMessage}}\\n            @canHide={{false}}\\n            class=\\\"c-settings-action-details__segment-connection-warning\\\"\\n          />\\n        {{/if}}\\n      {{/if}}\\n\\n      <Shared::BetaLabel\\n        @label=\\\"Ask for confirmation before executing the action\\\"\\n        @position=\\\"right\\\"\\n        class=\\\"c-settings-action-details__ask-confirmation\\\"\\n        data-test-action-ask-for-confirmation\\n      >\\n        <Form::BetaCheckbox @value={{this.currentAction.confirmation}} />\\n      </Shared::BetaLabel>\\n    </BetaSettingsCard::Section>\\n\\n    {{#if this.modelCustomization}}\\n      <BetaSettingsCard::Section>\\n        <Button::BetaDeleteButton\\n          @entityName={{this.modelCustomization.name}}\\n          @description=\\\"You are about to DELETE the action “{{this.modelCustomization.name}}”. This operation is irreversible. If you are sure you want to delete this action,\\\"\\n          @delete={{this.deleteModelCustomization}}\\n        />\\n      </BetaSettingsCard::Section>\\n    {{/if}}\\n  </BetaSettingsCard>\\n{{else}}\\n  <Layout::LayoutError @error={{this.error}} />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/actions/details/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\n\nexport default class ProjectRenderingDataCollectionSettingsActionsRoute extends Route {\n  /** @type {import('client/legacy/services/model-customization-service').default} */\n  @service modelCustomizationService;\n  @service router;\n\n  async model() {\n    const collection = this.modelFor('project.rendering.data.collection.settings');\n    return {\n      collection,\n      modelCustomizations: this.modelCustomizationService.canCreateOrUpdateModelCustomizations()\n        ? await collection.modelCustomizations\n        : [],\n    };\n  }\n\n  redirect(model, transition) {\n    if (transition.to.name === `${this.routeName}.index`) {\n      if (!isEmpty(model.collection.customActions)) {\n        const action = model.collection.customActions.sortBy('name').firstObject;\n        if (action) {\n          this.router.transitionTo(`${this.routeName}.details`, action.name);\n        } else {\n          this.router.transitionTo('project.rendering.data.collection.settings.general');\n        }\n      }\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailBodySettings @collection={{this.collection}} @newDesign={{true}}>\\n  <SideMenu>\\n    {{#if this.enableActionCreateOrUpdate}}\\n      <SideMenu::Section\\n        @sectionTitle=\\\"Actions\\\"\\n        @size=\\\"small\\\"\\n        @enableAction={{true}}\\n        @isActionAlwaysVisible={{true}}\\n        @actionTarget=\\\"project.rendering.data.collection.settings.actions.create\\\"\\n        @actionName=\\\"New\\\"\\n        @actionIcon=\\\"add\\\"\\n      >\\n        {{#each this.modelCustomizations as |modelCustomization|}}\\n          {{#unless modelCustomization.isNew}}\\n            <SideMenu::Item\\n              @name={{modelCustomization.name}}\\n              @linkTarget=\\\"project.rendering.data.collection.settings.actions.details\\\"\\n              @linkParam={{modelCustomization.name}}\\n              @disabled={{compute (fn this.isNoCodeActionDisabled modelCustomization)}}\\n              @size=\\\"small\\\"\\n              data-test-action-selector={{true}}\\n            />\\n          {{/unless}}\\n        {{/each}}\\n      </SideMenu::Section>\\n    {{/if}}\\n    {{#if this.smartActions.length}}\\n      <SideMenu::Section @sectionTitle=\\\"Smart Actions\\\" @size=\\\"small\\\">\\n        {{#each this.smartActions as |customAction|}}\\n          <SideMenu::Item\\n            @name={{customAction.displayName}}\\n            @linkTarget=\\\"project.rendering.data.collection.settings.actions.details\\\"\\n            @linkParam={{customAction.name}}\\n            @size=\\\"small\\\"\\n            data-test-smart-action-selector={{true}}\\n          />\\n        {{/each}}\\n      </SideMenu::Section>\\n    {{/if}}\\n  </SideMenu>\\n  {{#if this.showNoActionDefinedYet}}\\n    <Layout::LayoutListEmpty\\n      @icon=\\\"bolt\\\"\\n      @title=\\\"No Smart Action\\\"\\n      @text=\\\"This collection does not have any Smart Action yet.\\\"\\n    />\\n  {{else if this.showCardCreateNewNoCodeAction}}\\n    <ConfigurationCard\\n      @title=\\\"No action\\\"\\n      @icon=\\\"playlist_add\\\"\\n      @type=\\\"empty\\\"\\n      class=\\\"c-collection-settings-segments-empty-card\\\"\\n    >\\n      <p class=\\\"c-collection-settings-segments-empty-card__description\\\">\\n        You have no synchronized action yet.\\n      </p>\\n      <Shared::Navigation::BetaLinkTo\\n        @type=\\\"primary\\\"\\n        @displayAsButton={{true}}\\n        @text=\\\"Create your first action\\\"\\n        @routeName=\\\"project.rendering.data.collection.settings.actions.create\\\"\\n        class=\\\"c-collection-settings-segments-empty-card__create\\\"\\n      />\\n    </ConfigurationCard>\\n  {{else}}\\n    {{outlet}}\\n  {{/if}}\\n</LayoutDetail::LayoutDetailBodySettings>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/actions/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionSettingsController extends Controller {\n  @service currentUser;\n  @service lianaFeatures;\n  @service router;\n  @service('feature/workflow') workflowFeature;\n\n  currentTab = 'General';\n  @alias('model') collection;\n  @alias('collection.scope') scope;\n\n  settingsBreadcrumb = {\n    displayName: 'Settings',\n  };\n\n  @computed('router.currentRouteName')\n  get showHeaderActions() {\n    return this.router.currentRouteName.includes('scope');\n  }\n\n  get collectionBreadcrumb() {\n    return {\n      displayName: this.collection.pluralizedDisplayName,\n      link: 'project.rendering.data.collection.list',\n      isClickable: this.currentUser.canBrowseCollection(this.collection),\n    };\n  }\n\n  @computed('collectionBreadcrumb', 'settingsBreadcrumb')\n  get breadcrumb() {\n    return [this.collectionBreadcrumb, this.settingsBreadcrumb];\n  }\n\n  @computed('collection.rendering.environment', 'lianaFeatures')\n  get isScopesFeatureCompatible() {\n    return this.lianaFeatures.isFeatureCompatible(\n      'scopes',\n      this.collection?.rendering?.environment,\n    );\n  }\n\n  @computed('collection.isSmart', 'isScopesFeatureCompatible', 'workflowFeature.hasAccessToFeature')\n  get menuItems() {\n    return [\n      {\n        label: 'General',\n        link: 'project.rendering.data.collection.settings.general',\n      },\n      {\n        label: 'Fields',\n        link: 'project.rendering.data.collection.settings.fields',\n      },\n      {\n        label: 'Segments',\n        link: 'project.rendering.data.collection.settings.segments',\n      },\n      {\n        label: 'Actions',\n        link: 'project.rendering.data.collection.settings.actions',\n      },\n      {\n        label: 'Workflows',\n        link: 'project.rendering.data.collection.settings.workflows',\n      },\n      {\n        label: 'Smart Views',\n        link: 'project.rendering.data.collection.settings.views',\n      },\n      {\n        label: 'Scopes',\n        link: 'project.rendering.data.collection.settings.scope',\n        isHidden: this.collection.isSmart || !this.isScopesFeatureCompatible,\n      },\n    ].filter((item) => item.label !== 'Workflows' || this.workflowFeature.hasAccessToFeature);\n  }\n\n  @action\n  save(callback) {\n    this.send('saveProject', this.model, callback);\n  }\n}\n","import Controller from '@ember/controller';\nimport { computed } from '@ember/object';\nimport { alias, filter } from '@ember/object/computed';\n\nexport default class ProjectRenderingDataCollectionSettingsFieldsController extends Controller {\n  @alias('model') collection;\n\n  @computed('collection.fields')\n  get sortedFields() {\n    return this.collection.fields.sortBy('displayName');\n  }\n\n  @filter('sortedFields', (field) => {\n    return !field.reference;\n  })\n  normalFields;\n\n  @filter('sortedFields', (field) => {\n    return field.reference;\n  })\n  relationshipFields;\n\n  @computed('normalFields.[]', 'relationshipFields.[]')\n  get fieldsSections() {\n    return {\n      Fields: this.normalFields,\n      Relationships: this.relationshipFields,\n    };\n  }\n}\n","import Controller from '@ember/controller';\nimport EmberObject, { action, computed } from '@ember/object';\nimport { alias, or } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nimport { OPERATORS_FOR_CONDITIONAL_RULE_PER_TYPE } from 'client/data/models/conditional-rule';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport emberErrorUtil from 'client/utils/ember-error-util';\n\nconst { isEmberError, getFirstErrorDetail } = emberErrorUtil;\n\nexport default class ProjectRenderingDataCollectionSettingsFieldsDetailsController extends Controller {\n  @service widgetsManager;\n  @service lianaFeatures;\n  @service toastr;\n\n  displaySettingsErrors = false;\n  isDisplayNameEditMode = false;\n  isDescriptionEditMode = false;\n  displayEditWidgetSettings = false;\n  displayDisplayWidgetSettings = false;\n\n  @alias('model') field;\n  @alias('field.collection.rendering.environment') environment;\n  @alias('field.widgetEdit.widget.hasSettings') hasEditSettings;\n  @alias('field.widgetDisplay.widget.hasSettings') hasDisplaySettings;\n  @or('displayEditWidgetSettings', 'displayDisplayWidgetSettings') displayWidgetSettings;\n\n  @computed(\n    'displayDisplayWidgetSettings',\n    'displayEditWidgetSettings',\n    'hasDisplaySettings',\n    'hasEditSettings',\n  )\n  get hasWidgetSettings() {\n    return (\n      (this.displayEditWidgetSettings && this.hasEditSettings)\n      || (this.displayDisplayWidgetSettings && this.hasDisplaySettings)\n    );\n  }\n\n  @computed('field.typeForWidgets', 'widgetsManager')\n  get supportedEditWidgets() {\n    return this.widgetsForBetaSelect(\n      this.widgetsManager.getEditWidgetsFor(this.field.typeForWidgets),\n    );\n  }\n\n  @computed('field.typeForWidgets', 'widgetsManager')\n  get supportedDisplayWidgets() {\n    return this.widgetsForBetaSelect(\n      this.widgetsManager.getDisplayWidgetsFor(this.field.typeForWidgets),\n    );\n  }\n\n  @computed('field.widgetEdit.widget')\n  get currentEditWidget() {\n    return this.field.widgetEdit.widget;\n  }\n\n  set currentEditWidget(value) {\n    if (!this.field) {\n      return null;\n    }\n    if (!value) {\n      this.set('field.widgetEdit', null);\n      this.hideWidgetSettings();\n      return null;\n    }\n    if (value.name === this.field?.widgetEdit?.name) {\n      return value;\n    }\n\n    this.field.widgetEdit = this.widgetsManager.createWidgetConfiguration(this.field, value.name);\n\n    this.openEditWidgetSettings();\n\n    return value;\n  }\n\n  @computed('field.typeForWidgets', 'widgetsManager')\n  get showWidgetsSection() {\n    return this.widgetsManager.hasWidgetsAvailable(this.field.typeForWidgets);\n  }\n\n  @computed('field.widgetDisplay.widget')\n  get currentDisplayWidget() {\n    return this.field.widgetDisplay.widget;\n  }\n\n  set currentDisplayWidget(value) {\n    if (!this.field) {\n      return null;\n    }\n    if (!value) {\n      this.set('field.widgetDisplay', null);\n\n      this.hideWidgetSettings();\n      return null;\n    }\n    if (value.name === this.field?.widgetDisplay?.name) {\n      return value;\n    }\n\n    this.field.widgetDisplay = this.widgetsManager.createWidgetConfiguration(\n      this.field,\n      value.name,\n    );\n\n    this.openDisplayWidgetSettingsOnlyIfWidgetHasSettings();\n\n    return value;\n  }\n\n  @computed('displayDisplayWidgetSettings', 'field.{isRelationship,type,typeStringified}')\n  get isAlterValuesAvailable() {\n    return (\n      ['String', 'Number', 'Enum', '[\"String\"]', '[\"Number\"]', '[\"Enum\"]'].includes(\n        this.field?.typeStringified,\n      ) && !this.field?.isRelationship\n    );\n  }\n\n  @computed('field.{type,widgetDisplay.name,isBelongsTo}')\n  get isConditionalFormattingAvailable() {\n    const isAvailableForWidget = ['text', 'date', 'number', 'percentage'].includes(\n      this.field.widgetDisplay.name,\n    );\n    const isAvailableForType = Object.keys(OPERATORS_FOR_CONDITIONAL_RULE_PER_TYPE).includes(\n      this.field.type,\n    );\n    return isAvailableForWidget && isAvailableForType && !this.field.isBelongsTo;\n  }\n\n  @computed('field.mappingValues.@each.value')\n  get mappingValuesDuplicated() {\n    const mappingValuesDuplicated = [];\n    const valuesEncountered = [];\n\n    if (this.field?.mappingValues?.length) {\n      this.field.mappingValues.forEach((labelValue) => {\n        const { value } = labelValue;\n        if (valuesEncountered.includes(value)) {\n          mappingValuesDuplicated.push(value);\n        } else {\n          valuesEncountered.push(value);\n        }\n      });\n    }\n\n    return mappingValuesDuplicated;\n  }\n\n  @computed('field.mappingValues.@each.{label,value}', 'mappingValuesDuplicated.length')\n  get isMappingValueValid() {\n    if (this.mappingValuesDuplicated?.length > 0) {\n      return false;\n    }\n\n    if (this.field?.mappingValues?.length) {\n      return !this.field.mappingValues.any((labelValue) => !labelValue.label);\n    }\n\n    return true;\n  }\n\n  @computed('field.filterActivated')\n  get isFilterActivated() {\n    return Boolean(this.field.filterActivated);\n  }\n\n  set isFilterActivated(value) {\n    this.field.set('isFilterDisplayed', value);\n    return value;\n  }\n\n  @computed(\n    'environment',\n    'field.collection.isSmart',\n    'field.{canFilter,isFilterAvailableForType,isVirtual}',\n    'lianaFeatures',\n  )\n  get isFilterSwitchDisabled() {\n    const isVirtualFieldOnSimpleCollection = !this.field.collection.isSmart && this.field.isVirtual;\n    const isFilterOnSmartFieldAvailable = this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.FilterSmartField,\n      this.environment,\n    );\n    return (\n      !this.field.isFilterAvailableForType\n      || !this.field.canFilter\n      || (isVirtualFieldOnSimpleCollection && !isFilterOnSmartFieldAvailable)\n    );\n  }\n\n  @action\n  discardChanges(showToaster = true) {\n    this.field.rollbackAttributes();\n    this.field.rollbackRelationships();\n    if (!this.field.mappingValues || !this.field.mappingValues.length) {\n      this.field.set('isUsingAlteredValues', false);\n    }\n    this.set('displaySettingsErrors', false);\n    this.resetEditMode();\n    if (showToaster) {\n      return this.toastr.perform('success', 'Field changes discarded.');\n    }\n    return null;\n  }\n\n  @action\n  saveField(callback) {\n    if (\n      (!!this.field.widgetEdit && !this.field.widgetEdit.isConfigured)\n      || (!!this.field.widgetDisplay && !this.field.widgetDisplay.isConfigured)\n      || !this.isMappingValueValid\n    ) {\n      this.set('displaySettingsErrors', true);\n      if (!this.field.widgetEdit.isConfigured) {\n        this.send('openEditWidgetSettings');\n      } else {\n        this.send('openDisplayWidgetSettings');\n      }\n      return callback();\n    }\n\n    const { field } = this;\n    if (field.hasDirtyAttributes) {\n      // NOTICE: Silently keep original name if display name is empty.\n      if (!field.displayName) field.set('displayName', field.fieldName);\n\n      // NOTICE: reset or remove rules if conditional formatting is auto.\n      //         Cannot be done in the serialize hook for now as serialize\n      //         on fragment does not work yet with the new layout-patch-adapter.\n      if (field.conditionalFormatting) {\n        if (\n          !field.conditionalFormatting.isSwitchedOn\n          || (field.conditionalFormatting.mode !== 'auto'\n            && !(\n              field.conditionalFormatting.rules.length\n              || field.conditionalFormatting.defaultRule\n              || field.conditionalFormatting.shouldAutoFillMissingValues\n            ))\n        ) {\n          field.conditionalFormatting = null;\n        } else if (\n          field.conditionalFormatting.isSwitchedOn\n          && field.conditionalFormatting.mode === 'auto'\n          && (field.conditionalFormatting.rules.length\n            || field.conditionalFormatting.defaultRule\n            || field.conditionalFormatting.shouldAutoFillMissingValues)\n        ) {\n          field.conditionalFormatting.rules = [];\n          field.conditionalFormatting.defaultRule = null;\n          field.conditionalFormatting.shouldAutoFillMissingValues = false;\n        }\n      }\n\n      //  NOTICE: Save the field.\n      const promise = field\n        .save()\n        .then(() => {\n          this.set('displaySettingsErrors', false);\n          this.resetEditMode();\n          this.toastr.perform('success', `Field ${field.displayName} successfully updated.`);\n        })\n        .catch((reason) => {\n          if (isEmberError(reason)) {\n            const message = getFirstErrorDetail(reason) || 'unexpected error.';\n\n            this.toastr.perform('error', `${field.collection.name} update failed: ${message}`);\n          }\n        });\n\n      return callback(promise);\n    }\n\n    return callback();\n  }\n\n  @action\n  setDisplayNameEditMode() {\n    this.set('isDisplayNameEditMode', true);\n  }\n\n  @action\n  setDescriptionEditMode() {\n    this.set('isDescriptionEditMode', true);\n  }\n\n  @action\n  openEditWidgetSettings() {\n    if (!this.hasEditSettings) {\n      this.send('hideWidgetSettings');\n      return;\n    }\n\n    this.set('displayDisplayWidgetSettings', false);\n    this.set('displayEditWidgetSettings', true);\n  }\n\n  @action\n  openDisplayWidgetSettings() {\n    this.set('displayEditWidgetSettings', false);\n    this.set('displayDisplayWidgetSettings', true);\n  }\n\n  @action\n  openDisplayWidgetSettingsOnlyIfWidgetHasSettings() {\n    if (!this.hasDisplaySettings) {\n      this.send('hideWidgetSettings');\n      return;\n    }\n\n    this.openDisplayWidgetSettings();\n  }\n\n  @action\n  hideWidgetSettings() {\n    this.set('displayEditWidgetSettings', false);\n    this.set('displayDisplayWidgetSettings', false);\n  }\n\n  resetEditMode() {\n    this.set('isDisplayNameEditMode', false);\n    this.set('isDescriptionEditMode', false);\n  }\n\n  widgetsForBetaSelect(widgets) {\n    return widgets.map((widget) =>\n      EmberObject.create({\n        name: widget.label,\n        widget,\n      }),\n    );\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving('field', { shouldResetEditModeOnAbort: true })\nexport default class ProjectRenderingDataCollectionSettingsFieldsDetailsRoute extends Route {\n  @service currentUser;\n  @service router;\n\n  async model(params) {\n    const collection = this.modelFor('project.rendering.data.collection.settings.fields');\n    // NOTICE: Get current field thanks to `field_name` param.\n    /** @type {import('client/data/models/field').default} */\n    const field = collection.fields.find(\n      (collectionField) => collectionField.fieldName === params.field_name,\n    );\n\n    await field?.ensureWidgetDefaults();\n\n    return field;\n  }\n\n  redirect(field) {\n    if (!field) {\n      const collection = this.modelFor('project.rendering.data.collection.settings.fields');\n      const firstField = collection.fields.firstObject;\n      if (firstField) {\n        this.router.transitionTo(this.routeName, firstField.fieldName);\n      } else {\n        this.router.transitionTo('project.rendering.data.collection.settings.general');\n      }\n    }\n  }\n\n  onLeavingWithoutSaving() {\n    // eslint-disable-next-line ember/no-controller-access-in-routes\n    this.controller.send('discardChanges', false);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaSettingsCard @entity={{this.field}} @save={{this.saveField}} @discard={{this.discardChanges}}>\\n  <BetaSettingsCard::Section @title=\\\"Basic Settings\\\">\\n    <Form::EditInline\\n      @label=\\\"Display name for\\\"\\n      @realName={{this.field.fieldName}}\\n      @value={{this.field.displayName}}\\n      @isEditMode={{this.isDisplayNameEditMode}}\\n      @setEditMode={{this.setDisplayNameEditMode}}\\n      @isTitle={{true}}\\n      @class=\\\"c-settings-field-display-name\\\"\\n    />\\n    <Form::EditInline\\n      @label=\\\"Description\\\"\\n      @value={{this.field.description}}\\n      @isEditMode={{this.isDescriptionEditMode}}\\n      @setEditMode={{this.setDescriptionEditMode}}\\n      @emptyValueText=\\\"No description yet.\\\"\\n      @class=\\\"c-settings-field-description\\\"\\n    />\\n    <div class=\\\"l-settings-field-read-filter\\\">\\n      <Shared::BetaLabel\\n        @label=\\\"Read-only\\\"\\n        @position=\\\"right\\\"\\n        class=\\\"c-settings-field-read-only\\\"\\n        data-test-input-for=\\\"read-only\\\"\\n      >\\n        <Shared::Form::Toggle\\n          @value={{this.field.isReadOnly}}\\n          @onChange={{fn (mut this.field.isReadOnly)}}\\n        />\\n      </Shared::BetaLabel>\\n\\n      <Shared::BetaLabel\\n        @label=\\\"Filtering enabled\\\"\\n        @position=\\\"right\\\"\\n        class=\\\"c-settings-field-filtering\\\"\\n        data-test-input-for=\\\"filtering\\\"\\n      >\\n        <Shared::Form::Toggle\\n          @value={{this.isFilterActivated}}\\n          @onChange={{fn (mut this.isFilterActivated)}}\\n          @disabled={{this.isFilterSwitchDisabled}}\\n        />\\n      </Shared::BetaLabel>\\n    </div>\\n  </BetaSettingsCard::Section>\\n\\n  {{#if (and this.field.isRelationship (not this.field.isBelongsTo))}}\\n    <BetaSettingsCard::Section @title=\\\"Default actions\\\">\\n      <Shared::BetaLabel\\n        @label=\\\"Dissociate the relationship\\\"\\n        @position=\\\"right\\\"\\n        class=\\\"c-settings-field-read-only\\\"\\n      >\\n        <Shared::Form::Toggle\\n          @value={{this.field.isDissociateDisplayed}}\\n          @onChange={{fn (mut this.field.isDissociateDisplayed)}}\\n        />\\n      </Shared::BetaLabel>\\n    </BetaSettingsCard::Section>\\n  {{/if}}\\n\\n  {{#if this.showWidgetsSection}}\\n    <BetaSettingsCard::Section\\n      @title=\\\"Edit Settings\\\"\\n      @hasSettingsButton={{true}}\\n      @openSettings={{this.openEditWidgetSettings}}\\n      @disabledSettingsButton={{not this.hasEditSettings}}\\n    >\\n      <Shared::BetaLabel @label=\\\"Select edit widget\\\" class=\\\"l-settings-field-widget-picker-label\\\">\\n        <Shared::BetaSelect\\n          @placeholder=\\\"Select an edit widget...\\\"\\n          @value={{this.currentEditWidget}}\\n          @options={{this.supportedEditWidgets}}\\n          @namePath=\\\"name\\\"\\n          @valuePath=\\\"widget\\\"\\n          @disabled={{not this.supportedEditWidgets.length}}\\n        />\\n      </Shared::BetaLabel>\\n    </BetaSettingsCard::Section>\\n\\n    <BetaSettingsCard::Section\\n      @title=\\\"Display Settings\\\"\\n      @hasSettingsButton={{true}}\\n      @openSettings={{this.openDisplayWidgetSettings}}\\n    >\\n      <Shared::BetaLabel\\n        @label=\\\"Select display widget\\\"\\n        class=\\\"l-settings-field-widget-picker-label\\\"\\n      >\\n        <Shared::BetaSelect\\n          @placeholder=\\\"Select a display widget...\\\"\\n          @value={{this.currentDisplayWidget}}\\n          @options={{this.supportedDisplayWidgets}}\\n          @namePath=\\\"name\\\"\\n          @valuePath=\\\"widget\\\"\\n          @disabled={{not this.supportedDisplayWidgets.length}}\\n        />\\n      </Shared::BetaLabel>\\n    </BetaSettingsCard::Section>\\n  {{/if}}\\n</BetaSettingsCard>\\n\\n{{#if this.displayWidgetSettings}}\\n  <Shared::BetaRightPanel\\n    @title={{if this.displayEditWidgetSettings \\'Edit Settings\\' \\'Display Settings\\'}}\\n    @close={{this.hideWidgetSettings}}\\n  >\\n    <Shared::BetaRightPanel::Section @title=\\\"Widget\\\">\\n      {{#if this.hasWidgetSettings}}\\n        {{#let\\n          (if this.displayEditWidgetSettings this.field.widgetEdit this.field.widgetDisplay)\\n          as |widgetConfiguration|\\n        }}\\n          {{#let\\n            (component widgetConfiguration.widget.widgetSettingsComponent)\\n            as |WidgetSettingsComponent|\\n          }}\\n            <WidgetSettingsComponent\\n              @field={{this.field}}\\n              @widgetConfiguration={{widgetConfiguration}}\\n              @displayErrors={{this.displaySettingsErrors}}\\n              @shouldDisplayErrors={{this.displaySettingsErrors}}\\n              @isUsingAlteredValues={{this.field.isUsingAlteredValues}}\\n            />\\n          {{/let}}\\n        {{/let}}\\n      {{else}}\\n        <span class=\\\"c-settings-field-no-parametters-text\\\">\\n          This widget does not have any settings.\\n        </span>\\n      {{/if}}\\n    </Shared::BetaRightPanel::Section>\\n\\n    {{#if this.displayDisplayWidgetSettings}}\\n      <Shared::BetaRightPanel::Section @title=\\\"Options\\\">\\n        {{#if this.isAlterValuesAvailable}}\\n          <AlterValues\\n            @field={{this.field}}\\n            @mappingValuesDuplicated={{this.mappingValuesDuplicated}}\\n            @displaySettingsErrors={{this.displaySettingsErrors}}\\n          />\\n        {{/if}}\\n        {{#if this.isConditionalFormattingAvailable}}\\n          <ConditionalFormatting @field={{this.field}} />\\n        {{/if}}\\n        {{#if (not (or this.isAlterValuesAvailable this.isConditionalFormattingAvailable))}}\\n          <span class=\\\"c-settings-field-no-parametters-text\\\">\\n            This widget does not support any options.\\n          </span>\\n        {{/if}}\\n      </Shared::BetaRightPanel::Section>\\n    {{/if}}\\n  </Shared::BetaRightPanel>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/fields/details/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionSettingsFieldsRoute extends Route {\n  @service router;\n\n  redirect(model, transition) {\n    if (transition.to.name === `${this.routeName}.index`) {\n      // NOTICE: By default, select first field which is not a reference.\n      const field = model.fields.sortBy('hasReference', 'isHasMany', 'displayName').firstObject;\n      if (field) {\n        this.router.transitionTo(`${this.routeName}.details`, field.fieldName);\n      } else {\n        this.router.transitionTo('project.rendering.data.collection.settings.general');\n      }\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailBodySettings @collection={{this.collection}} @newDesign={{true}}>\\n  <SideMenu data-test-side-menu=\\\"fields\\\">\\n    {{#each-in this.fieldsSections as |section fields|}}\\n      {{#if fields.length}}\\n        <SideMenu::Section @sectionTitle={{section}} @size=\\\"small\\\">\\n          {{#each fields as |field|}}\\n            <SideMenu::Item\\n              @name={{or field.displayName field.fieldName}}\\n              @linkTarget=\\\"project.rendering.data.collection.settings.fields.details\\\"\\n              @linkParam={{field.fieldName}}\\n              @size=\\\"small\\\"\\n              @badge={{if field.isVirtual \\'Smart\\'}}\\n            />\\n          {{/each}}\\n        </SideMenu::Section>\\n      {{/if}}\\n    {{/each-in}}\\n  </SideMenu>\\n\\n  {{outlet}}\\n</LayoutDetail::LayoutDetailBodySettings>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/fields/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action, computed } from '@ember/object';\nimport { alias, not } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nimport SchemaUtils from 'client/utils/schema-utils';\n\nexport default class ProjectRenderingDataCollectionSettingsGeneralController extends Controller {\n  @service errorHandler;\n  @service lianaSession;\n  @service toastr;\n\n  possibleOrders = ['ascending', 'descending'];\n\n  @alias('model') collection;\n  @alias('collection.browseEnabled') disableSearchOnEditEnabledOption;\n  @alias('lianaSession.currentProject') project;\n  @not('collection.segments.length') hasNoSegments;\n\n  @computed('sortedFields.[]')\n  get fieldsAttribute() {\n    return this.sortedFields.filter(\n      (field) => SchemaUtils.isPlainField(field) || field.fieldName === 'id',\n    );\n  }\n\n  @computed('collection.fields.@each.field')\n  get sortedFields() {\n    return this.collection.fields.sortBy('displayName');\n  }\n\n  @computed('collection.errors.[]')\n  get errorMessages() {\n    return this.collection.errors.reduce((messages, { attribute, message }) => {\n      messages[attribute] = message.join(', ');\n      return messages;\n    }, {});\n  }\n\n  @action\n  discard() {\n    this.collection.rollbackAttributes();\n    this.collection.rollbackRelationships('belongsTo');\n  }\n\n  @action\n  async save(callback) {\n    const collectionName = this.collection.displayName\n      ? this.collection.displayName\n      : this.collection.displayNamePlural;\n\n    try {\n      if (this.collection.validate()) {\n        await this.collection.save();\n        this.toastr.perform('success', `${collectionName} updated.`);\n      }\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error, `${collectionName} update failed`);\n    }\n\n    callback();\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving('collection', { shouldResetEditModeOnAbort: true })\nexport default class ProjectRenderingDataCollectionSettingsGeneralRoute extends Route {\n  @service currentUser;\n\n  onLeavingWithoutSaving() {\n    // eslint-disable-next-line ember/no-controller-access-in-routes\n    this.controller.send('discard');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailBodySettings\\n  @collection={{this.collection}}\\n  @newDesign={{true}}\\n  class=\\\"c-collection-settings-general\\\"\\n>\\n  <BetaSettingsCard\\n    @entity={{this.collection}}\\n    @entityName=\\\"collection\\\"\\n    @save={{this.save}}\\n    @discard={{this.discard}}\\n  >\\n    <BetaSettingsCard::Section @title=\\\"Collection Settings\\\">\\n      <Shared::BetaLabel @label=\\\"Name\\\" class=\\\"c-collection-settings-general__label\\\">\\n        <Shared::BetaInput @value={{this.collection.name}} @disabled={{true}} />\\n      </Shared::BetaLabel>\\n\\n      <div\\n        class=\\\"l-collection-settings-general-display-name-container c-collection-settings-general__label\\\"\\n      >\\n        <Shared::BetaLabel\\n          @label=\\\"Display name (singular)\\\"\\n          @isError={{bool this.errorMessages.displayName}}\\n          @errorMessage=\\\"Display name singular and plural cannot both be blank.\\\"\\n          class=\\\"c-collection-settings-general__row-label\\\"\\n        >\\n          <Shared::BetaInput\\n            @state={{if this.errorMessages.displayName \\'error\\'}}\\n            @value={{this.collection.displayName}}\\n            data-test-collection-input-display-name\\n          />\\n        </Shared::BetaLabel>\\n\\n        <Shared::BetaLabel\\n          @label=\\\"Display name (plural)\\\"\\n          @isError={{bool this.errorMessages.displayNamePlural}}\\n          @errorMessage=\\\"Display name singular and plural cannot both be blank.\\\"\\n          class=\\\"c-collection-settings-general__row-label\\\"\\n        >\\n          <Shared::BetaInput\\n            @state={{if this.errorMessages.displayNamePlural \\'error\\'}}\\n            @value={{this.collection.displayNamePlural}}\\n            data-test-collection-input-display-name-plural\\n          />\\n        </Shared::BetaLabel>\\n      </div>\\n\\n      <Shared::BetaLabel @label=\\\"Icon\\\" class=\\\"c-collection-settings-general__label\\\">\\n        <Shared::BetaEmojiPicker\\n          @value={{this.collection.iconOrDefault}}\\n          @onChange={{fn (mut this.collection.icon)}}\\n          data-test-controller-project-rendering-data-collection-settings-general-emoji-picker\\n        />\\n      </Shared::BetaLabel>\\n\\n      <Shared::BetaLabel\\n        @label=\\\"Reference field\\\"\\n        @description=\\\"When a {{this.collection.displayNameLowerCase}} is referenced, I want to see the field…\\\"\\n        class=\\\"c-collection-settings-general__label\\\"\\n      >\\n        <Shared::BetaSelect\\n          @value={{this.collection.displayField}}\\n          @defaultOption=\\\" \\\"\\n          @options={{this.fieldsAttribute}}\\n          @namePath=\\\"displayName\\\"\\n        />\\n      </Shared::BetaLabel>\\n\\n      <div\\n        class=\\\"l-collection-settings-general-sort-container c-collection-settings-general__label\\\"\\n      >\\n        <Shared::BetaLabel @label=\\\"Sorting field\\\" class=\\\"c-collection-settings-general__row-label\\\">\\n          <Shared::BetaSelect\\n            @value={{this.collection.defaultSortingField}}\\n            @defaultOption=\\\" \\\"\\n            @options={{this.collection.sortingFields}}\\n            @namePath=\\\"displayName\\\"\\n          />\\n        </Shared::BetaLabel>\\n\\n        <Shared::BetaLabel @label=\\\"Order\\\" class=\\\"c-collection-settings-general__row-label\\\">\\n          <Shared::BetaSelect\\n            @value={{this.collection.defaultSortingOrder}}\\n            @defaultOption=\\\" \\\"\\n            @options={{this.possibleOrders}}\\n          />\\n        </Shared::BetaLabel>\\n      </div>\\n    </BetaSettingsCard::Section>\\n\\n    <BetaSettingsCard::Section>\\n      <Shared::BetaLabel\\n        @label=\\\"Access to records through Segments only\\\"\\n        @description=\\\"Users won\\'t be able to access all the collection records. Clicking on the collection will redirect to the first segment visible inside or the first one hidden inside otherwise.\\\"\\n        @position=\\\"right\\\"\\n        class=\\\"c-collection-settings-general__label\\\"\\n        data-test-collection-option\\n      >\\n        <Form::BetaCheckbox\\n          @value={{this.collection.restrictedToSegments}}\\n          @disabled={{this.hasNoSegments}}\\n        />\\n      </Shared::BetaLabel>\\n    </BetaSettingsCard::Section>\\n  </BetaSettingsCard>\\n</LayoutDetail::LayoutDetailBodySettings>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/general/template.hbs' });\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionSettingsRoute extends Route {\n  @service currentUser;\n  @service eventBus;\n  @service lianaFeatures;\n  @service routeHistory;\n  @service router;\n  @service store;\n\n  beforeModel() {\n    // NOTICE: User that can't edit the layout are redirected.\n    if (this.currentUser.isLoaded && !this.currentUser.canEditLayout) {\n      this.router.transitionTo('project.rendering.dashboard');\n    }\n  }\n\n  model() {\n    const paramCollectionId = this.paramsFor('project.rendering.data.collection').collection_id;\n    const collection = this.store\n      .peekAll('collection')\n      .find(({ id, shareableId }) => shareableId === paramCollectionId || id === paramCollectionId);\n\n    if (!collection) {\n      throw new Error('Collection not found');\n    }\n    return collection;\n  }\n\n  afterModel(model, transition) {\n    if (\n      !this.lianaFeatures.isFeatureCompatible('scopes', model.get('rendering.environment'))\n      && transition.to.name === 'project.rendering.data.collection.settings.scope.index'\n    ) {\n      this.router.transitionTo('project.rendering.data.collection.settings.general');\n    }\n  }\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    this.currentUser.editMode = true;\n    this.eventBus.on('editModeDeactivated', this.closeCollectionSettings);\n    this.on('deactivate', this.removeEditModeDeactivatedListener);\n  }\n\n  @action\n  removeEditModeDeactivatedListener() {\n    this.eventBus.off('editModeDeactivated', this.closeCollectionSettings);\n    this.off('deactivate', this.removeEditModeDeactivatedListener);\n  }\n\n  @action\n  closeCollectionSettings() {\n    const lastRenderingRouteBeforeSettings =\n      this.routeHistory.getLastRenderingRouteBeforeCollectionSettings();\n\n    const workflowEditorRoute = 'project.rendering.data.collection.workflow-editor';\n\n    if (\n      lastRenderingRouteBeforeSettings\n      && lastRenderingRouteBeforeSettings.routeName !== workflowEditorRoute\n    ) {\n      const { routeName, params, queryParams } = lastRenderingRouteBeforeSettings;\n      return this.router.transitionTo(routeName, ...params, { queryParams });\n    }\n\n    return this.router.transitionTo('project.rendering.data.collection.list');\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'scopes',\n  redirectionIfFeatureNotActivated: 'project.rendering.data.collection.settings.scope.preview',\n})\nexport default class ProjectRenderingDataCollectionSettingsScopeIndexRoute extends Route {\n  @service store;\n\n  titleToken = 'Scopes';\n\n  model() {\n    const collection = this.modelFor('project.rendering.data.collection.settings');\n    let scope = collection.get('scope');\n\n    if (!scope) {\n      scope = this.store.createFragment('fragment-scope', {\n        type: 'simple',\n      });\n      collection.scope = scope;\n    }\n\n    if (!scope.get('filter')) {\n      const filter = this.store.createFragment('fragment-filter', {\n        conditions: [],\n        type: 'and',\n      });\n\n      scope.set('filter', filter);\n    }\n\n    if (!scope.get('filter.conditions.length')) {\n      scope.filter.createCondition();\n    }\n\n    return {\n      scope,\n    };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<CollectionSettings::Scope @scope={{this.model.scope}} />\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/scope/index/template.hbs' });\n","import Controller from '@ember/controller';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionSettingsScopePreviewController extends Controller {\n  @service lianaSession;\n\n  @alias('lianaSession.currentProject') project;\n}\n","import Route from '@ember/routing/route';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'scopes',\n  redirectionIfFeatureActivated: 'project.rendering.data.collection.settings.scope',\n})\nexport default class ProjectRenderingDataCollectionSettingsScopePreviewRoute extends Route {\n  setupController(controller, collection) {\n    super.setupController(controller, collection);\n\n    controller.featureParams = `${collection.shareableId}`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailBodySettings @collection={{this.model}}>\\n  <Preview::PreviewScope\\n    @isPaying={{this.project.billing.isPaying}}\\n    @isProduction={{this.model.rendering.environment.isProduction}}\\n    @featureParams={{this.featureParams}}\\n  />\\n</LayoutDetail::LayoutDetailBodySettings>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/scope/preview/template.hbs' });\n","import Controller from '@ember/controller';\nimport { alias, filterBy, sort } from '@ember/object/computed';\n\nexport default class ProjectRenderingDataCollectionSettingsSegmentsController extends Controller {\n  @alias('model') collection;\n  @filterBy('collection.segments', 'isNew', false) segments;\n  @sort('segments', 'segmentsSortKey') sortedSegments;\n\n  @filterBy('sortedSegments', 'isManual') manualSegments;\n  @filterBy('sortedSegments', 'isSmart') smartSegments;\n\n  // NOTICE: This segments order make the \"Save as a new segment\" feature work properly.\n  segmentsSortKey = ['isNew:desc', 'position:asc'];\n}\n","import Controller from '@ember/controller';\nimport { alias } from '@ember/object/computed';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectRenderingDataCollectionSettingsSegmentsCreateController extends Controller {\n  @alias('model.segment') segment;\n\n  @tracked\n  selectedMode = null;\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving('segment', { shouldResetEditModeOnAbort: true })\nexport default class ProjectRenderingDataCollectionSettingsSegmentsCreateRoute extends Route {\n  @service store;\n\n  model() {\n    const collection = this.modelFor('project.rendering.data.collection.settings.segments');\n    const segmentFound = collection.segments.find((segment) => segment.isNew);\n    return {\n      segment:\n        segmentFound\n        || this.store.createRecord('segment', {\n          collection,\n          filter: this.store.createFragment('fragment-filter'),\n        }),\n    };\n  }\n\n  onLeavingWithoutSaving() {\n    this.modelFor(this.routeName).segment.unloadRecord();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<SegmentSettingsDetails\\n  @segment={{this.segment}}\\n  @selectedMode={{this.selectedMode}}\\n  @onSelectedModeChange={{fn (mut this.selectedMode)}}\\n/>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/segments/create/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectRenderingDataCollectionSettingsSegmentsDetailsController extends Controller {\n  @alias('model.segment') segment;\n  @alias('model.error') error;\n\n  @service toastr;\n\n  @tracked\n  selectedMode = null;\n\n  @tracked\n  isNameEditMode = false;\n\n  @action\n  handleDiscard() {\n    this.segment.rollbackAttributes();\n    this.segment.rollbackRelationship('defaultSortingField');\n\n    this.selectedMode = this.segment?.filter ? 'simple' : 'query';\n\n    return this.toastr.perform('success', 'Segment changes discarded.');\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { ERROR_NOT_FOUND } from 'client/config/errors';\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving('segment', { shouldResetEditModeOnAbort: true })\nexport default class ProjectRenderingDataCollectionSettingsSegmentsDetailsRoute extends Route {\n  @service currentUser;\n  @service router;\n\n  model(params) {\n    const collection = this.modelFor('project.rendering.data.collection.settings.segments');\n    const segmentFound = collection.segments.find(\n      (segment) => segment.name === params.segment_name,\n    );\n\n    if (!segmentFound) {\n      return {\n        error: {\n          type: ERROR_NOT_FOUND,\n          options: { target: `Segment \"${params.segment_name}\"` },\n        },\n      };\n    }\n\n    return { segment: segmentFound };\n  }\n\n  resetController(controller) {\n    controller.set('selectedMode', null);\n  }\n\n  redirect(segment) {\n    if (!segment) {\n      const collection = this.modelFor('project.rendering.data.collection.settings.segments');\n      const firstSegment = collection.segments.firstObject;\n      if (firstSegment) {\n        this.router.transitionTo(this.routeName, firstSegment.name);\n      } else {\n        this.router.transitionTo('project.rendering.data.collection.settings.segments');\n      }\n    }\n  }\n\n  onLeavingWithoutSaving() {\n    // eslint-disable-next-line ember/no-controller-access-in-routes\n    this.controller.handleDiscard();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.error}}\\n  <Layout::LayoutError @error={{this.error}} />\\n{{else}}\\n  <SegmentSettingsDetails\\n    @segment={{this.segment}}\\n    @selectedMode={{this.selectedMode}}\\n    @onSelectedModeChange={{fn (mut this.selectedMode)}}\\n    @isNameEditMode={{this.isNameEditMode}}\\n    @onNameEditModeChange={{fn (mut this.isNameEditMode)}}\\n    @onDiscard={{this.handleDiscard}}\\n  />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/segments/details/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionSettingsSegmentsRoute extends Route {\n  @service router;\n\n  redirect(collection, transition) {\n    if (transition.to.name === `${this.routeName}.index`) {\n      // NOTICE: By default, select first field which is not a reference.\n      const segment = collection.segments.sortBy('type', 'name').firstObject;\n      if (segment) {\n        this.router.transitionTo(`${this.routeName}.details`, segment.name);\n      }\n    }\n  }\n\n  setupController(controller, collection) {\n    super.setupController(controller, collection);\n\n    controller.featureParams = collection.shareableId;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailBodySettings @collection={{this.collection}} @newDesign={{true}}>\\n  <SideMenu data-test-side-menu=\\\"segments\\\">\\n    <SideMenu::Section\\n      @sectionTitle=\\\"Segments\\\"\\n      @size=\\\"small\\\"\\n      @isActionAlwaysVisible={{true}}\\n      @enableAction={{true}}\\n      @actionTarget=\\\"project.rendering.data.collection.settings.segments.create\\\"\\n      @actionName=\\\"New\\\"\\n      @actionIcon=\\\"add\\\"\\n    >\\n      {{#each this.manualSegments as |segment|}}\\n        <SideMenu::Item\\n          @name={{segment.name}}\\n          @linkTarget=\\\"project.rendering.data.collection.settings.segments.details\\\"\\n          @linkParam={{segment.name}}\\n          @size=\\\"small\\\"\\n        />\\n      {{/each}}\\n    </SideMenu::Section>\\n\\n    {{#if this.smartSegments.length}}\\n      <SideMenu::Section @sectionTitle=\\\"Smart Segments\\\" @size=\\\"small\\\">\\n        {{#each this.smartSegments as |segment|}}\\n          <SideMenu::Item\\n            @name={{segment.name}}\\n            @linkTarget=\\\"project.rendering.data.collection.settings.segments.details\\\"\\n            @linkParam={{segment.name}}\\n            @size=\\\"small\\\"\\n          />\\n        {{/each}}\\n      </SideMenu::Section>\\n    {{/if}}\\n  </SideMenu>\\n\\n  {{#unless this.collection.segments.length}}\\n    <ConfigurationCard\\n      @title=\\\"No segment\\\"\\n      @icon=\\\"playlist_add\\\"\\n      @type=\\\"empty\\\"\\n      class=\\\"c-collection-settings-segments-empty-card\\\"\\n      data-test-configuration-completed\\n    >\\n      <p class=\\\"c-collection-settings-segments-empty-card__description\\\">\\n        You haven\\'t setup any segment yet.\\n      </p>\\n      <Shared::Navigation::BetaLinkTo\\n        @type=\\\"primary\\\"\\n        @displayAsButton={{true}}\\n        @text=\\\"Create your first segment\\\"\\n        @routeName=\\\"project.rendering.data.collection.settings.segments.create\\\"\\n        class=\\\"c-collection-settings-segments-empty-card__create\\\"\\n      />\\n    </ConfigurationCard>\\n  {{/unless}}\\n  {{outlet}}\\n</LayoutDetail::LayoutDetailBodySettings>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/segments/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailOverlay>\\n  <BetaHeader\\n    @hasSideMenu={{true}}\\n    @menuItems={{this.menuItems}}\\n    data-test-controller-project-rendering-data-collection-settings-header\\n  >\\n    <:right-buttons>\\n      <Shared::PortalFor @name=\\\"collection-settings-actions\\\" />\\n    </:right-buttons>\\n  </BetaHeader>\\n\\n  {{outlet}}\\n</LayoutDetail::LayoutDetailOverlay>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/template.hbs' });\n","import Controller from '@ember/controller';\nimport { computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\n\nexport default class ProjectRenderingDataCollectionSettingsViewsController extends Controller {\n  @alias('model') collection;\n\n  @computed('collection.viewLists.@each.{isSmart,isDeleted,hasDirtyAttributes}')\n  get smartViews() {\n    return this.collection.viewLists.filter((view) => view.isSmart && !view.isDeleted);\n  }\n\n  @computed('smartViews')\n  get savedSmartViews() {\n    return this.smartViews.filter((view) => !view.isNew);\n  }\n}\n","import Controller from '@ember/controller';\nimport { alias } from '@ember/object/computed';\n\nexport default class ProjectRenderingDataCollectionSettingsViewsCreateController extends Controller {\n  @alias('model') smartView;\n}\n","/* eslint-disable ember/no-controller-access-in-routes */\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { DEFAULT_COMPONENT_SNIPPET, DEFAULT_TEMPLATE_SNIPPET } from 'client/config/smart-view';\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving('smartView', { shouldResetEditModeOnAbort: true })\nexport default class ProjectRenderingDataCollectionSettingsViewsCreateRoute extends Route {\n  @service currentUser;\n  @service store;\n  @service('shared/route-transition-handler') routeTransitionHandler;\n\n  async model() {\n    const collection = this.modelFor('project.rendering.data.collection.settings.views');\n    const viewLists = await collection.viewLists;\n    return this.store.createRecord('view-list', {\n      collection,\n      position: viewLists.length,\n      templateCode: DEFAULT_TEMPLATE_SNIPPET,\n      componentCode: DEFAULT_COMPONENT_SNIPPET,\n      allowJavascript: false,\n    });\n  }\n\n  // eslint-disable-next-line consistent-return\n  async willTransition(transition) {\n    const handled = await this.routeTransitionHandler.handleWillTransition(transition);\n    if (handled) return false; // To clean empty smart view when leaving the page without having filled the name.\n\n    if (\n      this.controller.smartView.isNew\n      && transition.to.name !== 'project.rendering.data.collection.list.smart-view-editor'\n    ) {\n      this.removeSmartView();\n    }\n  }\n\n  mustPreventLeaving(transition) {\n    return (\n      transition.to.name !== 'project.rendering.data.collection.settings.views.details'\n      && transition.to.name !== 'project.rendering.data.collection.list.smart-view-editor'\n      && !!this.controller.smartView.name\n    );\n  }\n\n  onLeavingWithoutSaving() {\n    this.removeSmartView();\n  }\n\n  removeSmartView() {\n    this.controller.smartView.deleteRecord();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<ViewSettingsDetails @smartView={{this.smartView}} />\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/views/create/template.hbs' });\n","import Controller from '@ember/controller';\nimport { alias } from '@ember/object/computed';\n\nexport default class ProjectRenderingDataCollectionSettingsViewsDetailsController extends Controller {\n  @alias('model.view') smartView;\n  @alias('model.error') error;\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { ERROR_NOT_FOUND } from 'client/config/errors';\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving('smartView', { shouldResetEditModeOnAbort: true })\nexport default class ProjectRenderingDataCollectionSettingsViewsDetailsRoute extends Route {\n  @service currentUser;\n\n  async model(params) {\n    const collection = this.modelFor('project.rendering.data.collection.settings.views');\n    const viewLists = await collection.viewLists;\n    const viewFound = viewLists\n      .filter((view) => view.isSmart && !view.isDeleted)\n      .find((view) => view.name === params.view_name);\n\n    if (!viewFound) {\n      return {\n        error: {\n          type: ERROR_NOT_FOUND,\n          options: { target: `Smart View \"${params.view_name}\"` },\n        },\n        view: null,\n      };\n    }\n    return { error: null, view: viewFound };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.error}}\\n  <Layout::LayoutError @error={{this.error}} />\\n{{else}}\\n  <ViewSettingsDetails @smartView={{this.smartView}} />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/views/details/template.hbs' });\n","import Controller from '@ember/controller';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionSettingsViewsPreviewController extends Controller {\n  @service lianaSession;\n\n  @alias('lianaSession.currentProject') project;\n}\n","import Route from '@ember/routing/route';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'smartViews',\n  redirectionIfFeatureActivated: 'project.rendering.data.collection.settings.views',\n})\nexport default class ProjectRenderingDataCollectionSettingsViewsPreviewRoute extends Route {\n  setupController(controller, collection) {\n    super.setupController(controller, collection);\n\n    controller.featureParams = `${collection.shareableId}`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::PreviewSmartView\\n  @isPaying={{this.project.billing.isPaying}}\\n  @isProduction={{this.model.rendering.environment.isProduction}}\\n  @featureParams={{this.featureParams}}\\n/>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/views/preview/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'smartViews',\n  redirectionIfFeatureNotActivated: 'project.rendering.data.collection.settings.views.preview',\n})\nexport default class ProjectRenderingDataCollectionSettingsViewsRoute extends Route {\n  titleToken = 'Smart Views';\n\n  @service router;\n\n  async redirect(collection, transition) {\n    if (transition.to.name !== `${this.routeName}.index`) {\n      return;\n    }\n    const viewLists = await collection.viewLists;\n    const viewList = viewLists.filter((view) => view.isSmart && !view.isDeleted)[0];\n    if (!viewList) {\n      return;\n    }\n    this.router.transitionTo(`${this.routeName}.details`, viewList.name);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailBodySettings @collection={{this.collection}} @newDesign={{true}}>\\n  {{#unless (can \\'preview smartViews\\')}}\\n    <SideMenu>\\n      <SideMenu::Section\\n        @sectionTitle=\\\"Smart Views\\\"\\n        @size=\\\"small\\\"\\n        @isActionAlwaysVisible={{true}}\\n        @enableAction={{true}}\\n        @actionTarget=\\\"project.rendering.data.collection.settings.views.create\\\"\\n        @actionName=\\\"New\\\"\\n        @actionIcon=\\\"add\\\"\\n        data-test-settings-views-list\\n      >\\n        {{#each this.savedSmartViews as |smartView index|}}\\n          <SideMenu::Item\\n            @name={{smartView.name}}\\n            @linkTarget=\\\"project.rendering.data.collection.settings.views.details\\\"\\n            @linkParam={{smartView.name}}\\n            @size=\\\"small\\\"\\n            data-test-settings-views-item={{index}}\\n          />\\n        {{/each}}\\n      </SideMenu::Section>\\n    </SideMenu>\\n    {{#if (eq this.smartViews.length 0)}}\\n      <ConfigurationCard\\n        @title=\\\"No Smart View\\\"\\n        @icon=\\\"playlist_add\\\"\\n        @type=\\\"success\\\"\\n        class=\\\"c-collection-settings-views-empty-card\\\"\\n        data-test-settings-views-empty-state\\n      >\\n        <p class=\\\"c-collection-settings-views-empty-card__description\\\">\\n          You haven\\'t setup any Smart View yet.\\n        </p>\\n        <Shared::Navigation::BetaLinkTo\\n          @type=\\\"primary\\\"\\n          @displayAsButton={{true}}\\n          @text=\\\"Create your first Smart View\\\"\\n          @routeName=\\\"project.rendering.data.collection.settings.views.create\\\"\\n          class=\\\"c-collection-settings-views-empty-card__create\\\"\\n          data-test-settings-views-empty-state-button\\n        />\\n      </ConfigurationCard>\\n    {{/if}}\\n  {{/unless}}\\n  {{outlet}}\\n</LayoutDetail::LayoutDetailBodySettings>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/views/template.hbs' });\n","import type { ErrorType } from 'client/config/errors';\nimport type CollectionModel from 'client/data/models/collection';\nimport type ModelCustomizationModel from 'client/data/models/model-customization';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaSession from 'client/legacy/services/liana-session';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { ERROR_NOT_FOUND } from 'client/config/errors';\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\ntype Error = { type: ErrorType; options: { target: string } };\n\nexport type Model = {\n  currentWorkflow: WorkflowModel;\n  error: Error;\n};\n\n@preventLeavingWithoutSaving<typeof ProjectRenderingDataCollectionSettingsWorkflowsDetailsRoute>(\n  null,\n  { shouldResetEditModeOnAbort: true },\n)\nexport default class ProjectRenderingDataCollectionSettingsWorkflowsDetailsRoute extends Route {\n  @service declare currentUser: CurrentUserService;\n  @service declare lianaSession: LianaSession;\n  currentWorkflow: WorkflowModel;\n\n  mustPreventLeaving() {\n    return Boolean(this.currentWorkflow?.hasDirtyAttributes);\n  }\n\n  beforeModel() {\n    this.currentWorkflow?.rollbackAttributes();\n  }\n\n  async model(params: { workflow_name: string }): Promise<Model> {\n    const { collection } = this.modelFor(\n      'project.rendering.data.collection.settings.workflows',\n    ) as { collection: CollectionModel; modelCustomizations: ModelCustomizationModel[] };\n\n    const currentWorkflow = collection.workflows.find(\n      (customWorkflow) => customWorkflow.name === decodeURIComponent(params.workflow_name),\n    );\n\n    let error: Error;\n    if (!currentWorkflow) {\n      error = {\n        type: ERROR_NOT_FOUND,\n        options: { target: `Workflow \"${params.workflow_name}\"` },\n      };\n    }\n    this.currentWorkflow = currentWorkflow;\n\n    return {\n      error,\n      currentWorkflow,\n    };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.model.error}}\\n  <Layout::LayoutError @error={{this.model.error}} />\\n{{else}}\\n  <Feature::Workflow::Update @workflow={{this.model.currentWorkflow}} />\\n{{/if}}\\n\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/workflows/details/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type CollectionModel from 'client/data/models/collection';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataCollectionSettingsWorkflowsRoute extends Route {\n  @service router: RouterService;\n  @service('feature/workflow') workflowFeature: WorkflowFeatureService;\n\n  async model() {\n    const collection = this.modelFor(\n      'project.rendering.data.collection.settings',\n    ) as CollectionModel;\n    const orderedWorkflows = collection.workflows.sortBy('position');\n\n    return {\n      collection,\n      orderedWorkflows,\n    };\n  }\n\n  async createNew(collection: CollectionModel) {\n    this.workflowFeature.handleOpenCreationModal(collection);\n  }\n\n  async redirect(model: { collection: CollectionModel }, transition: Transition) {\n    if (transition.to.name === `${this.routeName}.index`) {\n      const workflow = model.collection.workflows.firstObject;\n      if (workflow) {\n        await this.router.transitionTo(`${this.routeName}.details`, workflow.name);\n      }\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailBodySettings @collection={{this.model.collection}} @newDesign={{true}}>\\n  <SideMenu>\\n    <SideMenu::Section\\n      @sectionTitle=\\\"Workflows\\\"\\n      @size=\\\"small\\\"\\n      @isActionAlwaysVisible={{true}}\\n      @enableAction={{true}}\\n      @action={{route-action \\'createNew\\' this.model.collection}}\\n      @actionName=\\\"New\\\"\\n      @actionIcon=\\\"add\\\"\\n    >\\n      {{#each this.model.orderedWorkflows as |workflow|}}\\n        <SideMenu::Item\\n          @name={{workflow.name}}\\n          @linkTarget=\\\"project.rendering.data.collection.settings.workflows.details\\\"\\n          @linkParam={{workflow.name}}\\n          @size=\\\"small\\\"\\n          data-test-action-selector={{true}}\\n        />\\n      {{/each}}\\n    </SideMenu::Section>\\n  </SideMenu>\\n  {{outlet}}\\n</LayoutDetail::LayoutDetailBodySettings>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/collection/settings/workflows/template.hbs' });\n","import Controller from '@ember/controller';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingDataController extends Controller {\n  @service currentUser;\n  @service lianaSession;\n  @service router;\n  @service('feature/folder') folderFeature;\n\n  @alias('model') rendering;\n\n  get isSummaryView() {\n    return this.router.currentRouteName?.includes('.summary');\n  }\n\n  get hasVisibleItems() {\n    return (\n      this.folderFeature.getMainFolder().children.filter((child) => child.isVisible).length > 0\n    );\n  }\n\n  get numberOfCollectionsHidden() {\n    return this.folderFeature.getMainFolder().children.filter((child) => !child.isVisible).length;\n  }\n}\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { tracked } from '@glimmer/tracking';\n\nimport { pauseFor } from 'client/utils/ember-promise';\n\nexport default class ProjectRenderingDataIndexController extends Controller {\n  @tracked shouldDisplayTemplate = false;\n\n  @action\n  async handleDidInsert() {\n    this.shouldDisplayTemplate = false;\n    await pauseFor(500);\n    if (this.isDestroyed || this.isDestroying) return;\n    this.shouldDisplayTemplate = true;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-insert this.handleDidInsert}}\\n{{#if this.shouldDisplayTemplate}}\\n  <Feature::Folder::EmptyState />\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/rendering/data/index/template.hbs' });\n","import RestrictedSectionAccessRoute from 'client/legacy/abstract-routes/restricted-section-access-route';\n\nexport default class ProjectRenderingDataRoute extends RestrictedSectionAccessRoute {\n  async setupController(controller, model) {\n    super.setupController(controller, model.rendering);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if (and this.isSummaryView this.currentUser.editMode)}}\\n  <Shared::PortalContent @for=\\\"project-side-menu\\\">\\n    <VisualBuilder class=\\\"l-project-rendering-view__side-menu\\\" />\\n  </Shared::PortalContent>\\n{{/if}}\\n\\n<div class=\\\"l-project-rendering-view__content\\\">\\n  {{#if this.rendering.hasCollections}}\\n    {{#if this.hasVisibleItems}}\\n      {{outlet}}\\n    {{else}}\\n      <Feature::Folder::EmptyState />\\n    {{/if}}\\n  {{else}}\\n    <BetaEmptyState @iconName=\\\"warning\\\">\\n      Uh oh, no collections found.\\n      <br />\\n      The agent didn\\'t detect any collections.\\n      <br />\\n      Please ensure to have models declared in your project.\\n    </BetaEmptyState>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/legacy/pods/project/rendering/data/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingIndexRoute extends Route {\n  @service router;\n\n  beforeModel(transition) {\n    const { rendering } = this.modelFor('project.rendering');\n    const target =\n      rendering.get('sectionsDecoratedVisible.firstObject.path')\n      || 'project.rendering.reports.activity';\n\n    if (transition.to.name === 'project.rendering.index') {\n      this.router.transitionTo(target);\n    }\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport { ERROR_NOT_FOUND } from 'client/config/errors';\n\nexport default class ProjectRenderingNotFoundRoute extends Route {\n  @service router;\n\n  beforeModel() {\n    // TODO: Remove by the end of 2025\n    if (window.location.href.includes('/collaboration/inbox')) {\n      window.location.href = window.location.href.replace('/collaboration/inbox', '/inbox');\n    }\n  }\n\n  model() {\n    return {\n      error: {\n        type: ERROR_NOT_FOUND,\n        options: { target: 'URL' },\n      },\n    };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Layout::LayoutError @error={{this.model.error}} />\\n', { moduleName: 'client/legacy/pods/project/rendering/not-found/template.hbs' });\n","/* eslint-disable ember/no-controller-access-in-routes */\nimport type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type ProjectModel from 'client/data/models/project';\nimport type RenderingModel from 'client/data/models/rendering';\nimport type SegmentModel from 'client/data/models/segment';\nimport type TeamModel from 'client/data/models/team';\nimport type UserModel from 'client/data/models/user';\n// FIXME\nimport type ActionFeatureService from 'client/features/action/services/feature';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type ActionCustomActionInternalBusinessService from 'client/features/action/services/internal-business/custom-action';\nimport type AgentNotificationsFeatureService from 'client/features/agent-notifications/services/feature';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type ProjectRenderingController from 'client/legacy/pods/project/rendering/controller';\nimport type CustomApolloService from 'client/legacy/services/apollo';\nimport type AutoLogoutService from 'client/legacy/services/auto-logout';\nimport type CollectionsManagerService from 'client/legacy/services/collections-manager';\nimport type CurrentOrganizationService from 'client/legacy/services/current-organization';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type FaviconManagerService from 'client/legacy/services/favicon-manager';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\nimport type RedirectionService from 'client/legacy/services/redirection';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type WhiteLabelService from 'client/legacy/services/white-label';\nimport type WidgetsManagerService from 'client/legacy/services/widgets-manager';\nimport type CapabilitiesService from 'client/shared/services/capabilities';\nimport type EnvironmentSharedBusinessService from 'client/shared/services/environment';\nimport type RouteTransitionHandlerSharedBusinessService from 'client/shared/services/route-transition-handler';\nimport type ThirdPartySharedBusinessService from 'client/shared/services/third-party';\nimport type { AbilitiesService } from 'ember-can';\nimport type SegmentService from 'ember-cli-segment/services/segment';\n\nimport { action, computed } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { later } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { queryManager } from 'ember-apollo-client';\nimport window from 'ember-window-mock';\nimport { Promise as RsvpPromise } from 'rsvp';\n\nimport UnauthorizedIpAddressError from 'client/data/adapters/errors/unauthorized-ip-address-error';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport getLayoutChangesCount from 'client/gql/utils/get-layout-change-count';\nimport watchLayoutChangesCount from 'client/gql/utils/watch-layout-changes-count';\nimport { getApplicationInstance } from 'client/utils/ember/get-instance-utils';\nimport {\n  getFirstErrorDetail,\n  getFirstErrorName,\n  is403Error,\n  is404Error,\n} from 'client/utils/ember-error-util';\nimport { UserNotBelongingToTeamError } from 'client/utils/errors';\nimport EventListener from 'client/utils/event-listener';\nimport lastVisitedTeamStorageKey from 'client/utils/last-visited-team-storage-key';\nimport markPropertiesAsNotDirty from 'client/utils/model-utils';\nimport pageTitle from 'client/utils/page-title';\nimport { getNamedRouteParams } from 'client/utils/route-params';\nimport { getRouteInfo, isExitingTargetRoute } from 'client/utils/route-utils';\n\ntype Params = { team_name: string; environment_name: string };\ntype Model = {\n  rendering: RenderingModel;\n  user: UserModel;\n  administrators: UserModel[];\n  accessibleEnvironments: EnvironmentModel[];\n  accessibleTeams: TeamModel[];\n};\n\nexport default class ProjectRenderingRoute extends Route {\n  @service autoLogout: AutoLogoutService;\n  @service abilities: AbilitiesService;\n  @service collectionsManager: CollectionsManagerService;\n  @service currentOrganization: CurrentOrganizationService;\n  @service currentUser: CurrentUserService;\n  @service('feature/action/internal-business/custom-action')\n  customAction: ActionCustomActionInternalBusinessService;\n\n  @service errorHandler: ErrorHandlerService;\n  @service faviconManager: FaviconManagerService;\n  @service lianaSession: LianaSessionService;\n  @service localStorage: LocalStorageService;\n  @service redirection: RedirectionService;\n  @service serverFetch: ServerFetchService;\n  @service segment: SegmentService;\n  @service store: StoreService;\n  @service whiteLabel: WhiteLabelService;\n  @service widgetsManager: WidgetsManagerService;\n  @service toastr: ToastrService;\n  @service router: RouterService;\n  @service('shared/third-party') private thirdParty: ThirdPartySharedBusinessService;\n  @service('shared/capabilities') capabilitiesService: CapabilitiesService;\n  @service('shared/environment') environmentService: EnvironmentSharedBusinessService;\n  @service('feature/agent-notifications')\n  agentNotificationsFeature: AgentNotificationsFeatureService;\n\n  @service('feature/workflow') private workflowFeature: WorkflowFeatureService;\n  @service('feature/folder') private folderFeature: FolderFeatureService;\n  @service('feature/action') actionFeatureService: ActionFeatureService;\n  @service('shared/route-transition-handler')\n  routeTransitionHandler: RouteTransitionHandlerSharedBusinessService;\n\n  /**\n   * ⚠ ember-apollo-client provides this @queryManager\n   * BUT there is a bug with this library on overwritten routes\n   * The code from here: https://github.com/ember-graphql/ember-apollo-client/blob/v4.0.2/addon/-private/apollo/setup-hooks.js\n   * is not returning the promise from the original function, leading\n   * to bugs when beforeModel is asynchronous on a route.\n   */\n  @queryManager() apollo: CustomApolloService;\n  declare controller: ProjectRenderingController;\n\n  @computed('router.currentRouteName')\n  get targetRoute() {\n    const currentRouteName = this.router?.currentRouteName;\n    return getApplicationInstance(this).lookup(`route:${currentRouteName}`) as Route & {\n      disableLoading: boolean;\n    };\n  }\n\n  async beforeModel(transition: Transition) {\n    const project = this.modelFor('project') as ProjectModel;\n    const isOnboardingFinished = await project.isSetup;\n\n    if (!isOnboardingFinished) return this.router.transitionTo('project.onboarding', project.name);\n\n    return super.beforeModel(transition);\n  }\n\n  async model(params: Params): Promise<Model> {\n    const { lianaSession } = this;\n    const project = this.modelFor('project') as ProjectModel;\n    const userTeams = this.currentUser.model.teams;\n    const projectTeams = project.teams;\n    const availableTeams = projectTeams.filter((team) => !team.isBlocked);\n    const accessibleTeams = userTeams.filter((userTeam) => availableTeams.includes(userTeam));\n\n    if (!userTeams.any((team) => team.name === params.team_name)) {\n      // User is not part of the team, we will need to redirect him\n      throw new UserNotBelongingToTeamError({\n        teamName: params.team_name,\n        environmentName: params.environment_name,\n        projectName: project.name,\n        teamNameToRedirectTo: (accessibleTeams.firstObject || userTeams.firstObject)?.name,\n      });\n    }\n\n    const rendering = await this.loadRendering(project.name, params);\n\n    if (!rendering) return null;\n    const currentEnvironment =\n      rendering.environmentId && this.store.peekRecord('environment', rendering.environmentId);\n    if (currentEnvironment) rendering.environment = currentEnvironment;\n    else await rendering.loadEnvironment();\n\n    const currentTeam = rendering.teamId && this.store.peekRecord('team', rendering.teamId);\n    if (currentTeam) rendering.team = currentTeam;\n    else await rendering.loadTeam();\n\n    lianaSession.set('currentRenderingId', rendering.id);\n    this.localStorage.setItem(lastVisitedTeamStorageKey(project.name), rendering.team.name);\n\n    const user = await this.store.findRecord('user', this.currentUser.model?.id);\n\n    const administrators =\n      (rendering.environment?.isBlocked\n        || rendering.team?.isBlocked\n        || user.role?.isBlocked\n        || user.isBlocked)\n      && user.permissionLevel !== 'admin'\n        ? await project.administrators\n        : [];\n\n    this.currentUser.setCurrentUserPermissionLevelAndTeam(rendering.get('team'));\n    this.currentUser.setCurrentUserTags(user.get('tags'));\n    this.currentUser.setIsUsingAnEnvironmentWithoutRoles(rendering.environment.areRolesDisabled);\n\n    this.currentUser.setCurrentUserRolePermissions(\n      user.role?.permissions,\n      (currentEnvironment || rendering.environment).id,\n    );\n\n    await RsvpPromise.all([rendering.team?.renderings, this.widgetsManager.initWidgets()]);\n\n    void this.thirdParty.setupUserAndRendering();\n\n    return {\n      rendering,\n      user,\n      administrators,\n      accessibleEnvironments: project.nonBlockedAccessibleEnvironments,\n      accessibleTeams,\n    };\n  }\n\n  async afterModel({ rendering }: { rendering: RenderingModel }, transition: Transition) {\n    await super.afterModel(rendering, transition);\n\n    this.setCurrentUserIsLayoutEditorEnabled(rendering);\n\n    await Promise.all([\n      this.fetchLayoutChangesCounts(rendering),\n      (async () => {\n        await this.collectionsManager.registerNewCollections(rendering);\n        await this.capabilitiesService.fetchCapabilities(rendering.get('realCollections'));\n      })(),\n    ]);\n    const environment = rendering?.get('environment');\n\n    // Stop the transition to none active environment, warn the user and redirect to environments settings\n    if (!environment?.isActive) {\n      this.toastr.perform(\n        ToastrTypeEnum.Error,\n        `The \"${environment.name}\" environment configuration is unfinished. Check for the api endpoint as well as the variable in your server configuration and then restart your server.`,\n        { duration: 0 },\n      );\n      await this.router.transitionTo('project.project-settings.environments');\n      return;\n    }\n\n    // Use the same protocol as the endpoint of the liana.\n    if (environment?.apiEndpoint) {\n      const isSecureEndpoint = environment.apiEndpoint?.startsWith('https');\n      this.redirection.enforceProtocol(\n        {\n          secure: isSecureEndpoint || this.lianaSession.supportsOpenIdConnect,\n          fallbackToInsecure: !isSecureEndpoint,\n        },\n        transition,\n      );\n    }\n\n    // NOTICE: If the rendering is currently computing redirect to the rendering index.\n    // Project settings route is allowed during rendering computation.\n    if (\n      environment?.apiEndpoint\n      && rendering?.get('isComputing')\n      && !transition.to.name.startsWith('project.project-settings')\n    ) {\n      // TODO: fix Acceptance | Rendering > When a user is blocked > with a permission level of admin: he should see a blocking popup with an upgrade button\n\n      this.router.transitionTo('project.rendering.index');\n      return;\n    }\n\n    this.routeTransitionHandler.onWillTransition(this.okToExitIfActionPanelOpen.bind(this));\n    window.addEventListener('beforeunload', (ev) => this.okToExitIfActionPanelOpen.bind(this));\n\n    await this.initLiana(transition);\n  }\n\n  private handledPreventLeaving = false;\n\n  @action\n  async willTransition(transition: Transition) {\n    const okToExit = await this.okToExitIfActionPanelOpen(transition);\n    if (okToExit)\n      if (transition.to.name && !transition.to.name.includes('project.')) {\n        this.cleanRenderingContext();\n        this.environmentService.stopDisplayingToastersOnEnvironmentEvents();\n      }\n    return okToExit;\n  }\n\n  async okToExitIfActionPanelOpen(transition: Transition) {\n    const isExitingRendering = isExitingTargetRoute(\n      transition.from,\n      transition.to,\n      'project.rendering',\n    );\n    if (!this.handledPreventLeaving && isExitingRendering) {\n      // prevent the alert from showing multiple times\n      later(() => {\n        this.handledPreventLeaving = false;\n      }, 300);\n      this.handledPreventLeaving = true;\n\n      const okToExit = await this.actionFeatureService.cancelAction({ shouldAskUser: true });\n      if (!okToExit) {\n        await transition.abort();\n        return false;\n      }\n    }\n    return true;\n  }\n\n  async setupController(\n    controller: ProjectRenderingController & {\n      customDomainPictureUrl: string | null;\n      customDomainName: string | null;\n    },\n    model: { rendering: RenderingModel; user: UserModel },\n  ) {\n    super.setupController(controller, model, null);\n    const { environment } = model.rendering;\n\n    await this.whiteLabel.setupController(controller);\n    this.faviconManager.setFavicon(this.lianaSession.currentProject.pictureUrl, environment?.stage);\n\n    controller.set('showEnvironmentSwitch', false);\n    controller.initEventListeners();\n\n    const environmentId = parseInt(environment?.id, 10);\n    await this.environmentService.displayToastersOnEnvironmentEvents(environmentId);\n    await this.agentNotificationsFeature.subscribeToEvent();\n\n    const eventListener = new EventListener(\n      this.apollo,\n      this.lianaSession.currentProject,\n      this.currentUser,\n      this.router,\n    );\n    await eventListener.init();\n\n    if (this.lianaSession.currentProject.premiumCollaboration) {\n      await this.store.queryRecord('notification', { environmentId }).then((notification) => {\n        controller.set('notification', notification);\n      });\n    }\n  }\n\n  resetController(controller: ProjectRenderingController, isExiting: boolean) {\n    if (isExiting) {\n      controller.set('hideLoginPopup', false);\n      controller.destroyEventListeners();\n    }\n  }\n\n  @action\n  loading() {\n    // NOTICE: Disable loading during onboarding\n    return !this.targetRoute?.disableLoading;\n  }\n\n  @action\n  error(error: unknown, transition: Transition): boolean | Transition {\n    if (error instanceof UserNotBelongingToTeamError) {\n      // In case of SAML authentication, made through a redirection followed by\n      // a transitionTo, the window href does not have the right URL when\n      // evaluating this code: it still contains the saml-callback url\n      // instead of the url we are transitionning to.\n      // transition.intent.url does contain the correct URL in this case...\n      const namedRouteParams = getNamedRouteParams(transition.to);\n\n      namedRouteParams.set('team_name', error.teamNameToRedirectTo);\n      const url = this.router.urlFor(\n        transition.to.name,\n        ...(namedRouteParams.values() as unknown as [string, string, string, string]), // urlFor typing is wrong\n        { queryParams: transition.to.queryParams || {} },\n      );\n      this.redirection.redirectToHref(url);\n      return false;\n    }\n    if (is403Error(error) && !(error instanceof UnauthorizedIpAddressError)) {\n      // NOTICE: Use error message or fallback to old message\n      this.toastr.perform(\n        ToastrTypeEnum.Error,\n        getFirstErrorName(error) === 'UserNotAuthorizedOnProjectError'\n          ? `You don't have access to the \"${\n              (getRouteInfo(transition.to, this.routeName).params as Params).environment_name\n            }\" environment.`\n          : getFirstErrorDetail(error),\n      );\n      return this.currentOrganization.transitionToProjectsIndex();\n    }\n    if (is404Error(error)) {\n      console.error('Rendering not found');\n      return this.currentOrganization.transitionToProjectsIndex();\n    }\n    return true;\n  }\n\n  @action\n  async saveProject(project: ProjectModel, callback: (promise: RsvpPromise<unknown>) => void) {\n    const promises = [];\n\n    // Users\n    const saveDirtyUsers = project\n      .get('users')\n      .then(() => project.get('dirtyUsers').map((user) => user.save()));\n    promises.push(saveDirtyUsers);\n\n    // Teams\n    const saveDirtyTeams = project\n      .get('teams')\n      .then(() => project.get('dirtyTeams').map((team) => team.save()));\n    promises.push(saveDirtyTeams);\n\n    // Environments\n    const saveDirtyEnvironments = project\n      .get('environments')\n      .then(() => project.get('dirtyEnvironments').map((environment) => environment.save()));\n    promises.push(saveDirtyEnvironments);\n\n    // Billing\n    const billing = await project.billing;\n    if (billing.hasDirtyAttributes) {\n      promises.push(billing.save());\n    }\n\n    const promise = RsvpPromise.all(promises)\n      .then(() => {\n        // NOTICE: Be sure to have retrieved all hasMany associations before\n        //         project update.\n        if (project.get('hasDirtyAttributes')) {\n          return project.save();\n        }\n        return null;\n      })\n      .then(() => {\n        // No notification if there's nothing to do.\n        if (!promises.length) {\n          return;\n        }\n\n        this.toastr.perform(ToastrTypeEnum.Success, `${project.get('name')} updated.`);\n      })\n      .catch((reason: Error) => {\n        this.errorHandler.handleRequestFailure(reason, `${project.name} update failed`);\n      });\n\n    callback(promise);\n  }\n\n  @action\n  async updateSegmentVisibility(segment: SegmentModel) {\n    return segment.save().then(() => {\n      this.toastr.perform(ToastrTypeEnum.Success, 'Segment visibility updated.');\n    });\n  }\n\n  @action\n  didTransition() {\n    this.autoLogout.setupAutoLogout();\n  }\n\n  @action\n  triggerCustomAction(\n    ...args: Parameters<ActionCustomActionInternalBusinessService['triggerCustomAction']>\n  ) {\n    return this.customAction.triggerCustomAction(...args);\n  }\n\n  deactivate(transition: Transition) {\n    this.autoLogout.deactivate();\n    super.deactivate(transition);\n  }\n\n  async loadRendering(projectName: string, params: Params) {\n    const renderingInfo = {\n      projectName,\n      environmentName: params.environment_name,\n      teamName: params.team_name,\n    };\n\n    const [rendering, folders] = await Promise.all([\n      this.store.queryRecord('rendering', renderingInfo, { adapterOptions: { reload: true } }),\n      this.folderFeature.fetchFolders(renderingInfo),\n    ]);\n    await this.workflowFeature.fetchWorkflows(renderingInfo);\n\n    rendering.foldersWithMain = folders;\n\n    return rendering;\n  }\n\n  @action\n  private async initLiana(transition: Transition = null) {\n    this.lianaSession.setupSession();\n\n    const model = this.modelFor('project.rendering') as Model;\n    this.serverFetch.init();\n\n    if (!model?.rendering?.environment?.apiEndpoint) {\n      return;\n    }\n\n    if (transition) {\n      await this.transitionIfNotAuthorized(transition);\n    }\n  }\n\n  private async transitionIfNotAuthorized(transition: Transition) {\n    const { rendering } = this.modelFor(this.routeName) as Model;\n    const target =\n      rendering.sectionsDecoratedVisible?.firstObject?.path || 'project.rendering.reports.activity';\n\n    // NOTICE: User that can't edit the layout are redirected.\n    if (transition.to.name.includes('collection.settings') && !this.currentUser.canEditLayout) {\n      await this.router.transitionTo(target);\n      return;\n    }\n\n    // NOTICE: User that can't access to project settings are redirected.\n    if (transition.to.name.includes('projectSettings') && !this.currentUser.canEditProject) {\n      await this.router.transitionTo(target);\n    }\n  }\n\n  title(tokens) {\n    const project = this.lianaSession.currentProject;\n    const title = this.abilities.can('access to whiteLabel') && project.get('name');\n    return pageTitle(title, tokens);\n  }\n\n  setCurrentUserIsLayoutEditorEnabled(rendering: RenderingModel) {\n    const { canEditLayout } = this.currentUser;\n    const { currentBranch } = rendering.environment;\n    this.currentUser.set(\n      'isLayoutEditorEnabled',\n      canEditLayout && (!rendering.environment.isDevelopment || !!currentBranch),\n    );\n  }\n\n  cleanRenderingContext() {\n    this.controller.set('hideLoginPopup', true);\n    const model = this.modelFor(this.routeName) as Model;\n    this.collectionsManager.cleanExistingCollections(model.rendering);\n    this.lianaSession.set('currentRenderingId', null);\n  }\n\n  static setLayoutChangesCount(rendering: RenderingModel, count: number) {\n    // set layout changes and commit it to avoid the dirty attributes.\n    // apollo client transform 0 to an empty object ...\n    rendering.environment.layoutChangesCount = Number(count) || 0;\n    markPropertiesAsNotDirty(rendering.environment, ['layoutChangesCount']);\n  }\n\n  async getAndSetLayoutChanges(rendering: RenderingModel) {\n    const branchId = rendering.environment.currentBranch.id;\n    ProjectRenderingRoute.setLayoutChangesCount(\n      rendering,\n\n      await getLayoutChangesCount(this.apollo, branchId),\n    );\n\n    await watchLayoutChangesCount(this.apollo, branchId, (count: number) =>\n      ProjectRenderingRoute.setLayoutChangesCount(rendering, count),\n    );\n  }\n\n  async fetchLayoutChangesCounts(currentRendering: RenderingModel) {\n    const { environment } = currentRendering;\n\n    if (environment.isProduction) return;\n\n    if (!environment.currentBranch) return;\n\n    await this.getAndSetLayoutChanges(currentRendering);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-project-rendering\\\">\\n  {{#if this.displayAccessDenied}}\\n    <Feedback::AccessDenied\\n      @projectId={{readonly this.lianaSession.currentProject.id}}\\n      @environmentId={{readonly this.rendering.environment.id}}\\n    />\\n  {{/if}}\\n  {{#if this.displayUpgradePopup}}\\n    <Feedback::Limitations::PopupUpgrade\\n      @titleText={{this.upgradePopupTitle}}\\n      @bodyText={{this.upgradePopupBody}}\\n      @isUserAdmin={{this.isUserAdmin}}\\n      @administrators={{this.model.administrators}}\\n      @displayEnvironmentPicker={{this.displayEnvironmentPicker}}\\n      @displayTeamPicker={{this.displayTeamPicker}}\\n      @currentEnvironment={{this.rendering.environment}}\\n      @currentTeam={{this.rendering.team}}\\n      @switchEnvironment={{this.switchEnvironment}}\\n      @switchTeam={{this.switchTeam}}\\n      @accessibleEnvironments={{this.model.accessibleEnvironments}}\\n      @accessibleTeams={{this.model.accessibleTeams}}\\n    />\\n\\n  {{else}}\\n    {{#if this.showLoginPopup}}\\n      <Authentication::LianaLogin\\n        @rendering={{this.rendering}}\\n        @afterLogin={{route-action \\'initLiana\\'}}\\n      />\\n    {{/if}}\\n    {{#if this.isModalSearchDisplayed}}\\n      <ModalGlobalSearch @onClose={{fn (mut this.isModalSearchDisplayed) false}} />\\n    {{/if}}\\n\\n    <Shared::PortalFor\\n      @name=\\\"application-view-overlay\\\"\\n      class=\\\"c-project-rendering__application-view\\\"\\n    />\\n\\n    <div class=\\\"c-project-rendering__main-container\\\">\\n      {{#if this.hideContentWhileLoading}}\\n        {{#if this.lianaSession.isLoggedIn}}\\n          <Layout::LayoutLoader @type=\\\"rendering\\\" />\\n        {{/if}}\\n      {{else}}\\n        <div class=\\\"c-project-rendering__content\\\">\\n          <div class=\\\"l-project-rendering-view\\\">\\n            <Shared::PortalFor @name=\\\"project-side-menu\\\">\\n              <Feature::Folder::SideMenu class=\\\"l-project-rendering-view__side-menu\\\" />\\n            </Shared::PortalFor>\\n            {{outlet}}\\n          </div>\\n        </div>\\n      {{/if}}\\n    </div>\\n  {{/if}}\\n</div>\\n\\n<Feature::Newsletter />\\n', { moduleName: 'client/legacy/pods/project/rendering/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type RenderingModel from 'client/data/models/rendering';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type WorkspaceManagerBusinessService from 'client/legacy/services/business/workspace-manager';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectRenderingWorkspacesController extends Controller {\n  @service public currentUser: CurrentUserService;\n  @service private router: RouterService;\n  @service private segmentTracker: SegmentTrackerService;\n  @service('business/workspace-manager') private workspaceManager: WorkspaceManagerBusinessService;\n  @service('feature/folder') private folderFeatureService: FolderFeatureService;\n\n  declare model: {\n    rendering: RenderingModel;\n  };\n\n  @tracked public isAutogenerationDisplayed = false;\n\n  public get workspaces() {\n    return this.model.rendering.workspacesSorted;\n  }\n\n  public get hasWorkspaces() {\n    return this.model.rendering.hasWorkspaces;\n  }\n\n  public get inBuilderMode() {\n    return this.router.currentRouteName === 'project.rendering.workspaces.view.builder';\n  }\n\n  @action\n  public async handleCreateWorkspace() {\n    if (this.hasWorkspaces) {\n      await this.workspaceManager.createEmptyWorkspace();\n    } else {\n      this.isAutogenerationDisplayed = true;\n\n      this.segmentTracker.trackAutogeneratedWorkspaceButtonClicked(true);\n    }\n  }\n\n  @action\n  public handleDisplayAutogeneration() {\n    this.isAutogenerationDisplayed = true;\n\n    this.segmentTracker.trackAutogeneratedWorkspaceButtonClicked(!this.hasWorkspaces);\n  }\n\n  @action\n  public handleCloseAutogeneration() {\n    this.isAutogenerationDisplayed = false;\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingWorkspacesIndexRoute extends Route {\n  @service router;\n\n  beforeModel() {\n    const { rendering } = this.modelFor('project.rendering');\n    const firstWorkspace = rendering.workspacesSorted?.firstObject;\n    if (firstWorkspace) {\n      this.router.transitionTo('project.rendering.workspaces.view', firstWorkspace.id);\n    }\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingWorkspacesRoute extends Route {\n  @service lianaSession;\n  @service router;\n  @service segment;\n\n  titleToken = 'Workspaces';\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n    const { rendering } = model;\n\n    if (!rendering.hasWorkspaces) {\n      this.segment.trackEvent('No Workspace Displayed', {\n        projectId: this.lianaSession.currentProject.id,\n      });\n    }\n    this.router.on('routeDidChange', () => {\n      controller.isAutogenerationDisplayed = false;\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isAutogenerationDisplayed}}\\n  <Shared::PortalContent @for=\\\"project-side-menu\\\" />\\n  <Workspace::Autogeneration\\n    @isFirstWorkspace={{not this.hasWorkspaces}}\\n    @onCloseAutogeneration={{this.handleCloseAutogeneration}}\\n  />\\n{{else if this.hasWorkspaces}}\\n  <div class=\\\"l-project-rendering-view__content\\\">\\n    {{outlet}}\\n  </div>\\n{{else}}\\n  <Shared::PortalContent @for=\\\"project-side-menu\\\" />\\n\\n  <BetaEmptyState\\n    @imageIdentifier=\\\"workspace\\\"\\n    @textButton=\\\"Create your first Workspace\\\"\\n    @onClickButton={{this.handleCreateWorkspace}}\\n    @shouldHideButton={{not this.currentUser.canEditLayout}}\\n  >\\n    Workspaces is a place to build your own views, workflows, dashboards, ...\\n  </BetaEmptyState>\\n{{/if}}\\n', { moduleName: 'client/legacy/pods/project/rendering/workspaces/template.hbs' });\n","import Route from '@ember/routing/route';\n\nimport { ERROR_NOT_FOUND } from 'client/config/errors';\nimport { RecordNotFoundError } from 'client/utils/errors';\n\nexport default class ProjectRenderingWorkspacesViewErrorRoute extends Route {\n  setupController(controller, error) {\n    if (error instanceof RecordNotFoundError) {\n      controller.error = {\n        type: ERROR_NOT_FOUND,\n        options: { target: error.modelName },\n      };\n    } else {\n      controller.error = error;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Layout::LayoutError @error={{this.error}} data-test-workspace-view-layout-error />\\n', { moduleName: 'client/legacy/pods/project/rendering/workspaces/view-error/template.hbs' });\n","import type WorkspaceModel from 'client/data/models/workspace';\n\nimport AbstractWorkspaceConfigureComponentRoute from 'client/legacy/abstract-routes/abstract-workspace-configure-component-route';\n\nexport default class ProjectRenderingWorkspacesViewBuilderConfigureComponentRoute extends AbstractWorkspaceConfigureComponentRoute {\n  get noComponentRedirectionRoute() {\n    return 'project.rendering.workspaces.view.builder';\n  }\n\n  get workspace() {\n    const { workspace } = this.modelFor('project.rendering.workspaces.view.builder') as {\n      workspace: WorkspaceModel;\n    };\n    return workspace;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Workspace::ConfigureComponent @component={{@model}} />\\n', { moduleName: 'client/legacy/pods/project/rendering/workspaces/view/builder/configure-component/template.hbs' });\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingWorkspacesViewBuilderRoute extends Route {\n  @service currentUser;\n  @service eventBus;\n  @service router;\n  @service uiControl;\n\n  setupController(controller, model) {\n    super.setupController(controller, model);\n\n    this.currentUser.editMode = true;\n    this.eventBus.on('editModeDeactivated', this.exitBuilder);\n    this.one('deactivate', this.removeEditModeDeactivatedListener);\n  }\n\n  removeEditModeDeactivatedListener() {\n    this.eventBus.off('editModeDeactivated', this.exitBuilder);\n  }\n\n  @action\n  exitBuilder() {\n    this.router.transitionTo('project.rendering.workspaces.view');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Workspace @workspace={{this.model.workspace}} @isFullScreen={{true}}>\\n  {{outlet}}\\n</Workspace>\\n', { moduleName: 'client/legacy/pods/project/rendering/workspaces/view/builder/template.hbs' });\n","import type { Registry } from '@ember/service';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type BetaCollectionListCommunicatorService from 'client/legacy/services/beta-collection-list-communicator';\nimport type WorkspaceManagerBusinessService from 'client/legacy/services/business/workspace-manager';\nimport type ClipboardService from 'client/legacy/services/clipboard';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type SegmentService from 'ember-cli-segment/services/segment';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport getSelectedText from 'client/utils/get-selected-text';\nimport { KEY, isCommandPlusKeyPressed } from 'client/utils/keyboard';\nimport { regularTextPaste } from 'client/utils/paste-text-util';\n\nexport default class ProjectRenderingWorkspacesViewController extends Controller {\n  @service declare betaCollectionListCommunicator: BetaCollectionListCommunicatorService;\n  @service declare eventBus: EventBusService;\n  @service declare currentUser: CurrentUserService;\n  @service declare router: Registry['router'];\n  @service declare segment: SegmentService;\n  @service declare lianaSession: LianaSession;\n  @service declare clipboard: ClipboardService;\n  @service('business/workspace-manager') workspaceManager: WorkspaceManagerBusinessService;\n\n  declare model: { workspace: WorkspaceModel };\n  copyingComponentState = false;\n\n  get workspace() {\n    return this.model.workspace;\n  }\n\n  get isBuilder() {\n    return this.router.currentRouteName === 'project.rendering.workspaces.view.builder';\n  }\n\n  initEventListeners() {\n    // we don't want to handle copy paste if the browser doesn't support it\n    if (!navigator?.clipboard?.readText) {\n      return;\n    }\n    // eslint-disable-next-line @typescript-eslint/no-misused-promises\n    document.addEventListener('keydown', this.handleKeyDown);\n  }\n\n  destroyEventListeners() {\n    if (!navigator?.clipboard?.readText) {\n      return;\n    }\n    // eslint-disable-next-line @typescript-eslint/no-misused-promises\n    document.removeEventListener('keydown', this.handleKeyDown);\n  }\n\n  @action\n  async handleLayoutEditorClick() {\n    this.currentUser.editMode = !this.currentUser.editMode;\n    if (this.currentUser.editMode) {\n      await this.router.transitionTo('project.rendering.workspaces.view.builder');\n    }\n  }\n\n  @action\n  handleRefresh() {\n    this.eventBus.trigger(EventBusEventsEnum.WorkspaceRefresh);\n    this.model.workspace.components\n      .filterBy('type', WorkspaceComponentTypeEnum.Collection)\n      .forEach((component) => {\n        this.betaCollectionListCommunicator.refresh(\n          (component as WorkspaceComponentModel<WorkspaceComponentTypeEnum.Collection>).options\n            .collectionListId,\n          {\n            currentPage: 1,\n          },\n        );\n      });\n    this.segment.trackEvent('Workspace Refreshed', {\n      projectId: this.lianaSession.currentProject.id,\n      workspaceId: this.workspace.id,\n    });\n  }\n\n  @action\n  async handleKeyDown(event: KeyboardEvent) {\n    if (event.repeat) return;\n    if (!this.currentUser.editMode) return;\n\n    if (isCommandPlusKeyPressed(event, KEY.KEY_C) && !getSelectedText()) {\n      const copiedComponent = this.workspaceManager.getSelectedComponent(this.workspace);\n\n      if (!copiedComponent) {\n        return;\n      }\n\n      event.preventDefault();\n\n      await this.clipboard.copyToClipboard(\n        `ws-component/${this.workspace.id}/${copiedComponent.name}`,\n        `Component ${copiedComponent.name} copied`,\n        'Cannot copy component to clipboard.',\n      );\n    } else if (isCommandPlusKeyPressed(event, KEY.KEY_V) && !this.copyingComponentState) {\n      // The prevent default needs to be done before async code otherwise it won't work.\n      event.preventDefault();\n\n      const lastCopiedText = await this.clipboard.readTextFromClipboard();\n\n      if (lastCopiedText.startsWith('ws-component/')) {\n        const [workspaceId, workspaceComponentName] = lastCopiedText.split('/').slice(1);\n        const copiedComponent = this.lianaSession.rendering.workspaces\n          .findBy('id', workspaceId)\n          ?.components.findBy('name', workspaceComponentName);\n\n        if (!copiedComponent) return;\n\n        this.copyingComponentState = true;\n        await this.workspaceManager.duplicateComponent(copiedComponent, this.model.workspace);\n        this.copyingComponentState = false;\n      } else {\n        // We cannot redo the regular text paste after having prevented the default behavior, so we do it manually.\n        regularTextPaste(lastCopiedText);\n      }\n    }\n  }\n}\n","import type WorkspaceModel from 'client/data/models/workspace';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\nexport default class ProjectRenderingWorkspacesViewIndexController extends Controller {\n  @service private eventBus: EventBusService;\n  @service('feature/workspace') private workspaceFeature: WorkspaceFeatureService;\n\n  declare model: { workspace: WorkspaceModel };\n  hasEventListeners = false;\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.removeEventListeners();\n  }\n\n  initEventListeners() {\n    if (this.hasEventListeners) return;\n\n    this.eventBus.on(\n      EventBusEventsEnum.RefreshWorkspaceQueryParameters,\n      this.handleQueryParametersChange,\n    );\n    this.hasEventListeners = true;\n  }\n\n  removeEventListeners() {\n    if (this.hasEventListeners) {\n      this.eventBus.off(\n        EventBusEventsEnum.RefreshWorkspaceQueryParameters,\n        this.handleQueryParametersChange,\n      );\n      this.hasEventListeners = false;\n    }\n  }\n\n  @action\n  handleQueryParametersChange() {\n    this.workspaceFeature.updateQueryParameters(this.model.workspace);\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type ProjectRenderingWorkspacesViewIndexController from 'client/legacy/pods/project/rendering/workspaces/view/index/controller';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingWorkspacesViewIndexRoute extends Route {\n  @service('feature/workspace') private workspaceFeature: WorkspaceFeatureService;\n\n  setupController(\n    controller: ProjectRenderingWorkspacesViewIndexController,\n    model: { workspace: WorkspaceModel },\n    transition: Transition,\n  ) {\n    super.setupController(controller, model, transition);\n\n    controller.initEventListeners();\n  }\n\n  resetController(\n    controller: ProjectRenderingWorkspacesViewIndexController,\n    isExiting: boolean,\n    transition: Transition,\n  ) {\n    super.resetController(controller, isExiting, transition);\n\n    if (isExiting) {\n      controller.removeEventListeners();\n    }\n  }\n\n  afterModel(model: { workspace: WorkspaceModel }) {\n    this.workspaceFeature.setCurrentWorkspaceId(model.workspace.id);\n  }\n\n  deactivate(transition: Transition) {\n    this.workspaceFeature.setCurrentWorkspaceId(null);\n\n    super.deactivate(transition);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Workspace\\n  @onQueryParametersChange={{this.handleQueryParametersChange}}\\n  @workspace={{this.model.workspace}}\\n  data-test-workspace-view-index-read-mode-grid\\n/>\\n', { moduleName: 'client/legacy/pods/project/rendering/workspaces/view/index/template.hbs' });\n","/* eslint-disable consistent-return */\nimport type Transition from '@ember/routing/-private/transition';\nimport type RenderingModel from 'client/data/models/rendering';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type WorkspaceComponentOptionsFieldNestedDocument from 'client/data/models/workspace-component-options-field';\nimport type ActionFeatureService from 'client/features/action/services/feature';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\nimport type ProjectRenderingWorkspacesViewController from 'client/legacy/pods/project/rendering/workspaces/view/controller';\nimport type ActivityTrackerService from 'client/legacy/services/activity-tracker';\nimport type WorkspaceManagerService from 'client/legacy/services/business/workspace-manager';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type RouteTransitionHandlerSharedBusinessService from 'client/shared/services/route-transition-handler';\n\nimport { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\nimport { RecordNotFoundError } from 'client/utils/errors';\n\n@preventLeavingWithoutSaving<typeof ProjectRenderingWorkspacesViewRoute>()\nexport default class ProjectRenderingWorkspacesViewRoute extends Route<\n  {\n    rendering: RenderingModel;\n    workspace: WorkspaceModel;\n    error?: Error;\n  },\n  { workspace_id: string }\n> {\n  @service private activityTracker: ActivityTrackerService;\n  @service private lianaSession: LianaSession;\n  @service('business/workspace-manager') private workspaceManager: WorkspaceManagerService;\n  @service('feature/client-record') private clientRecordFeature: ClientRecordFeatureService;\n  @service('feature/action') actionFeatureService: ActionFeatureService;\n  @service('shared/route-transition-handler')\n  routeTransitionHandler: RouteTransitionHandlerSharedBusinessService;\n\n  async model({ workspace_id: workspaceId }: { workspace_id: string }, transition: Transition) {\n    const { rendering } = this.modelFor('project.rendering') as { rendering: RenderingModel };\n    const foundWorkspace = rendering.workspaces?.find((workspace) => workspace.id === workspaceId);\n\n    const error: Error | null = null;\n    if (foundWorkspace) {\n      await Promise.all(\n        foundWorkspace.components\n          ?.filter((component) => component.isCollection)\n          .map(\n            (collectionComponent) =>\n              'collection' in collectionComponent.options\n              && collectionComponent.options.filteredCollection?.viewLists,\n          ),\n      );\n\n      // We do not want to await for the activity log to be created to display the workspace\n      void this.activityTracker.trackWorkspace({\n        workspace: foundWorkspace,\n        rendering,\n      });\n    } else {\n      throw new RecordNotFoundError('Workspace');\n    }\n\n    await this.workspaceManager.buildAllContextFromQueryParameters(\n      foundWorkspace,\n      transition.to.queryParams,\n    );\n\n    return {\n      rendering,\n      workspace: foundWorkspace,\n      error,\n    };\n  }\n\n  setupController(\n    controller: ProjectRenderingWorkspacesViewController,\n    model: { rendering: RenderingModel; workspace: WorkspaceModel; error?: Error },\n    transition: Transition,\n  ) {\n    super.setupController(controller, model, transition);\n\n    controller.initEventListeners();\n  }\n\n  resetController(\n    controller: ProjectRenderingWorkspacesViewController,\n    isExiting: boolean,\n    transition: Transition,\n  ) {\n    super.resetController(controller, isExiting, transition);\n\n    if (isExiting) {\n      controller.copyingComponentState = false;\n      controller.destroyEventListeners();\n    }\n  }\n\n  mustPreventLeaving() {\n    const { workspace } = this.modelFor(this.routeName) as { workspace: WorkspaceModel };\n    return workspace.components.toArray().some((component) => {\n      const componentOptions = component?.options as WorkspaceComponentOptionsFieldNestedDocument;\n      return (\n        component.type === WorkspaceComponentTypeEnum.Field\n        && componentOptions?.isInEditMode\n        && (componentOptions?.recordToDisplay?.hasDirtyAttributes\n          || componentOptions?.recordToDisplay?.hasDirtyRelationships)\n      );\n    });\n  }\n\n  onLeavingWithoutSaving() {\n    const { workspace } = this.modelFor(this.routeName) as { workspace: WorkspaceModel };\n\n    workspace.components\n      .filter(\n        (component: WorkspaceComponentModel) =>\n          component.type === WorkspaceComponentTypeEnum.Field\n          && (component?.options as WorkspaceComponentOptionsFieldNestedDocument)?.isInEditMode,\n      )\n      .forEach((component) => {\n        const { recordToDisplay } =\n          component.options as WorkspaceComponentOptionsFieldNestedDocument;\n        recordToDisplay.rollbackAttributes();\n        recordToDisplay.rollbackRelationships();\n      });\n  }\n\n  @action\n  async willTransition(transition: Transition) {\n    const handled = await this.routeTransitionHandler.handleWillTransition(transition);\n    if (handled) return false;\n    const { from, to } = transition;\n    const { workspace } = this.modelFor(this.routeName) as { workspace: WorkspaceModel };\n\n    if (\n      (from?.name\n        && ['builder.index', 'builder.configure-component'].some(\n          (endRouteName) => from?.name.endsWith(endRouteName),\n        )) ||\n      // If currently on the first workspace, and clicking on the workspace tab icon, we should not reset the context.\n      (workspace === this.lianaSession.rendering.workspacesSorted?.firstObject\n        && to?.name === 'project.rendering.workspaces.index')\n    ) {\n      return;\n    }\n    workspace.components.forEach((component) => {\n      if ('resetReadMode' in component.options) component.options.resetReadMode();\n      component.resetContext(true, true);\n    });\n\n    this.clientRecordFeature.clearRecordsInCache();\n  }\n}\n","import type { Registry } from '@ember/service';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type WorkspaceManagerBusinessService from 'client/legacy/services/business/workspace-manager';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type SegmentService from 'ember-cli-segment/services/segment';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nexport default class ProjectRenderingWorkspacesViewSettingsController extends Controller {\n  @service private errorHandler: ErrorHandlerService;\n  @service private router: Registry['router'];\n  @service private segment: SegmentService;\n  @service private toastr: ToastrService;\n  @service private lianaSession: LianaSession;\n  @service('business/workspace-manager') private workspaceManager: WorkspaceManagerBusinessService;\n  @service('feature/folder') private folderFeature: FolderFeatureService;\n\n  declare model: { workspace: WorkspaceModel };\n\n  get workspace() {\n    return this.model.workspace;\n  }\n\n  async transitionToBuilder() {\n    await this.router.transitionTo('project.rendering.workspaces.view.builder');\n  }\n\n  @action\n  async discardChanges() {\n    this.workspace.rollbackAttributes();\n    await this.transitionToBuilder();\n  }\n\n  @action\n  async saveChanges() {\n    try {\n      await this.workspace.save();\n      this.toastr.perform(ToastrTypeEnum.Success, 'Workspace successfully updated.');\n      this.segment.trackEvent('Workspace Renamed', {\n        projectId: this.lianaSession.currentProject.id,\n        workspaceId: this.workspace.id,\n      });\n      await this.transitionToBuilder();\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(\n        error as Error,\n        `${this.workspace.name} update failed`,\n      );\n    }\n  }\n\n  @action\n  async delete() {\n    try {\n      const projectId = this.lianaSession.currentProject.id;\n      const workspaceId = this.workspace.id;\n      await this.workspace.destroyRecord();\n      await this.folderFeature.removeChildFromFolder(workspaceId);\n      this.toastr.perform(ToastrTypeEnum.Success, 'Workspace successfully deleted.');\n      this.segment.trackEvent('Workspace Deleted', {\n        projectId,\n        workspaceId: this.workspace.id,\n      });\n\n      // NOTICE: we expect the transtion to be aborted\n      //         because `project.rendering.workspaces.index` will redirect to the first workspace\n      this.router.transitionTo('project.rendering.workspaces.index').catch(() => {});\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(\n        error as Error,\n        `${this.workspace.name} deletion failed`,\n      );\n    }\n  }\n\n  @action\n  async duplicateWorkspace() {\n    const sure = window.confirm('Are you sure you want to duplicate this workspace?');\n    if (sure) {\n      await this.workspaceManager.duplicateWorkspace(this.workspace);\n    }\n  }\n}\n","import type Controller from '@ember/controller';\nimport type Transition from '@ember/routing/-private/transition';\nimport type { Registry } from '@ember/service';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving<typeof ProjectRenderingWorkspacesViewSettingsRoute>('workspace')\nexport default class ProjectRenderingWorkspacesViewSettingsRoute extends Route {\n  @service currentUser: CurrentUserService;\n  @service eventBus: EventBusService;\n  @service router: Registry['router'];\n\n  viewRoute = 'project.rendering.workspaces.view';\n\n  async redirect() {\n    if (!this.currentUser.editMode) {\n      await this.router.transitionTo(this.viewRoute);\n    }\n  }\n\n  setupController(controller: Controller, model: object, transition: Transition) {\n    super.setupController(controller, model, transition);\n    this.eventBus.on('editModeDeactivated', this.redirectToViewRoute);\n    this.one('deactivate', this.removeEditModeDeactivatedListener);\n  }\n\n  removeEditModeDeactivatedListener() {\n    this.eventBus.off('editModeDeactivated', this.redirectToViewRoute);\n  }\n\n  @action\n  async redirectToViewRoute() {\n    await this.router.transitionTo(this.viewRoute);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<LayoutDetail::LayoutDetailOverlay>\\n  <BetaHeader @title=\\\"Workspace settings\\\" @hasSideMenu={{true}} />\\n  <div class=\\\"l-content\\\">\\n    <div class=\\\"l-content__wrap\\\">\\n      <div class=\\\"l-content__main l-content--scroll l-dpa\\\">\\n        <Shared::BetaLabel @label=\\\"Workspace name\\\" class=\\\"l-dmb\\\">\\n          <Shared::BetaInput\\n            @placeholder=\\\"Name\\\"\\n            @value={{this.workspace.name}}\\n            @maxLength={{75}}\\n            @type=\\\"text\\\"\\n            data-test-workspace-view-settings-name-input\\n          />\\n        </Shared::BetaLabel>\\n        <Shared::BetaLabel @label=\\\"Workspace icon\\\" class=\\\"l-dmb\\\">\\n          <Shared::BetaEmojiPicker\\n            @value={{this.workspace.iconOrDefault}}\\n            @onChange={{fn (mut this.workspace.icon)}}\\n            data-test-workspace-view-settings-emoji-input\\n          />\\n        </Shared::BetaLabel>\\n        <Shared::Button\\n          @type=\\\"editor\\\"\\n          @text=\\\"Duplicate workspace\\\"\\n          @onClick={{this.duplicateWorkspace}}\\n          @async={{true}}\\n        />\\n        <Feature::CriticalActionConfirmation::Button\\n          @buttonText=\\\"Delete workspace\\\"\\n          @entityName={{this.workspace.name}}\\n          @warningMessage=\\\"You are about to delete the “{{this.workspace.name}}” workspace.\\\"\\n          @cancelText=\\\"Cancel\\\"\\n          @onConfirm={{this.delete}}\\n          data-test-delete-button\\n        />\\n      </div>\\n      <div class=\\\"l-content__footer\\\">\\n        <Shared::Button::BetaButton\\n          @type=\\\"secondary\\\"\\n          @text=\\\"Discard\\\"\\n          @action={{this.discardChanges}}\\n          @async={{false}}\\n        />\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @text=\\\"Save changes\\\"\\n          @action={{this.saveChanges}}\\n          @async={{false}}\\n        />\\n      </div>\\n    </div>\\n  </div>\\n</LayoutDetail::LayoutDetailOverlay>\\n', { moduleName: 'client/legacy/pods/project/rendering/workspaces/view/settings/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaHeader\\n  @hasSideMenu={{true}}\\n  @isBuilder={{this.isBuilder}}\\n  @title={{this.model.workspace.displayNameWithEmoji}}\\n  @onLayoutEditorClick={{this.handleLayoutEditorClick}}\\n>\\n  <:title-actions>\\n    {{#if this.currentUser.editMode}}\\n      <Shared::Navigation::BetaLinkTo\\n        @type=\\\"editor-light\\\"\\n        @iconName=\\\"edit\\\"\\n        @size=\\\"small\\\"\\n        @routeName=\\\"project.rendering.workspaces.view.settings\\\"\\n        class=\\\"c-workspace-view__edit-button\\\"\\n        data-test-workspace-view-edit-button\\n      />\\n    {{/if}}\\n  </:title-actions>\\n  <:right-buttons>\\n    <Shared::PortalFor @name=\\\"workspace-header-right-buttons\\\" />\\n\\n    {{#unless this.currentUser.editMode}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"secondary\\\"\\n        @iconName=\\\"refresh\\\"\\n        @async={{false}}\\n        @action={{this.handleRefresh}}\\n        data-test-workspace-view-refresh-button\\n      />\\n    {{/unless}}\\n  </:right-buttons>\\n</BetaHeader>\\n{{outlet}}\\n', { moduleName: 'client/legacy/pods/project/rendering/workspaces/view/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type FragmentRenderingSection from 'client/data/models/fragment-rendering-section';\nimport type ProjectModel from 'client/data/models/project';\nimport type RenderingModel from 'client/data/models/rendering';\nimport type CloudFeatureService from 'client/features/cloud/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type ProjectController from 'client/legacy/pods/project/controller';\nimport type CurrentOrganizationService from 'client/legacy/services/current-organization';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type DatadogService from 'client/legacy/services/datadog';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type FaviconManagerService from 'client/legacy/services/favicon-manager';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LocaleService from 'client/legacy/services/locale';\nimport type StoreService from 'client/legacy/services/store';\nimport type TimezoneService from 'client/legacy/services/timezone';\nimport type { HttpError } from 'client/utils/errors';\nimport type SegmentService from 'ember-cli-segment/services/segment';\n\nimport { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\nimport { isEqual } from 'lodash';\n\nimport UnauthorizedIpAddressError from 'client/data/adapters/errors/unauthorized-ip-address-error';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { isProjectLiveDemo } from 'client/utils/livedemo';\nimport getRouteInfo from 'client/utils/route-info-getter';\n\ntype Params = { project_name: string };\n\nexport default class ProjectRoute extends Route {\n  @service lianaSession: LianaSessionService;\n  @service router: RouterService;\n  @service session: ForestSessionService;\n  @service faviconManager: FaviconManagerService;\n  @service locale: LocaleService;\n  @service timezone: TimezoneService;\n  @service currentOrganization: CurrentOrganizationService;\n  @service store: StoreService;\n  @service errorHandler: ErrorHandlerService;\n  @service currentUser: CurrentUserService;\n  @service('feature/cloud') cloudService: CloudFeatureService;\n  @service segment: SegmentService;\n  @service('feature/notification') businessNotification: NotificationFeatureService;\n  @service datadog: DatadogService;\n\n  public async beforeModel(transition: Transition) {\n    // We don't want to await this because we don't want to block the transition\n    void this.datadog.setupProjectNameFromCustomDomain();\n\n    if (!this.session.isAuthenticated) {\n      // NOTICE: If an unauthenticated user tries to access directly to the Live Demo rendering\n      //         route, we just redirect him to the /livedemo route.\n      const { params: projectRouteParams = {} } = getRouteInfo(transition.to, 'project') || {};\n      if (isProjectLiveDemo(projectRouteParams.project_name)) {\n        return this.router.transitionTo('livedemo');\n      }\n      this.session.requireAuthenticationAndRedirectToCurrentUrl('authentication.login');\n      return null;\n    }\n\n    this.session.requireAuthentication(transition, 'authentication.login');\n    return super.beforeModel(transition);\n  }\n\n  async model(params: Params) {\n    const { lianaSession, locale, timezone } = this;\n\n    const projects = await this.store.query('project', { name: params.project_name });\n    if (!projects || !projects.length) {\n      const errorMessage = `Project ${params.project_name} not found.`;\n      console.error(errorMessage);\n      this.businessNotification.createToastr(ToastrTypeEnum.Error, errorMessage);\n      void this.currentOrganization.transitionToProjectsIndex();\n    }\n    const project = projects.firstObject;\n    const defaultRendering = project.defaultEnvironment.renderings.firstObject;\n\n    const defaultEnvironment =\n      defaultRendering.environmentId\n      && this.store.peekRecord('environment', defaultRendering.environmentId);\n    if (defaultEnvironment) defaultRendering.environment = defaultEnvironment;\n    else await defaultRendering.loadEnvironment();\n\n    const defaultTeam =\n      defaultRendering.teamId && this.store.peekRecord('team', defaultRendering.teamId);\n    if (defaultTeam) defaultRendering.team = defaultTeam;\n    else await defaultRendering.loadTeam();\n\n    lianaSession.set('currentProject', project);\n    locale.set('currentLocale', project.localeOrDefault);\n    timezone.setProjectTimezone(project.timezone);\n\n    lianaSession.set('currentRenderingId', defaultRendering.id);\n\n    await Promise.all([\n      this.currentOrganization.defineById(\n        project.organizationId || this.session.currentOrganizationId,\n      ),\n      this.store.queryRecord('user', {\n        id: this.currentUser.model?.id,\n        projectId: project.id,\n        include: 'role',\n      }),\n      project.billing,\n      project.environments,\n      project.teams,\n    ]);\n\n    await this.currentUser.model.teams;\n\n    return project;\n  }\n\n  async afterModel(project: ProjectModel, transition: Transition) {\n    await super.afterModel(project, transition);\n    this.toggleSegmentTrackingIfNeeded(project);\n\n    if (project.isFullHostedProject) {\n      await this.cloudService.displayToastersOnRestartEvents();\n    }\n  }\n\n  async setupController(controller: ProjectController, model: ProjectModel) {\n    super.setupController(controller, model, null);\n\n    this.faviconManager.setFavicon(model.pictureUrl);\n\n    controller.setupCollaborationNotification();\n  }\n\n  resetController() {\n    this.cloudService.stopDisplayingToastersOnRestartEvents();\n  }\n\n  clearRenderingContext() {\n    // @ts-expect-error will be removed in https://github.com/ForestAdmin/forestadmin/pull/3960\n    this.set('lianaSession.currentRenderingId', null);\n  }\n\n  @action\n  error(e) {\n    const error = e as HttpError;\n    if (\n      error\n      && error.errors\n      && error.errors[0]\n      && [403, 404].includes(error.errors[0].status)\n      && !(error instanceof UnauthorizedIpAddressError)\n    ) {\n      console.error(error);\n      this.businessNotification.createToastr(ToastrTypeEnum.Error, 'Project not found.');\n      return this.currentOrganization.transitionToProjectsIndex();\n    }\n    return true;\n  }\n\n  @action\n  async refreshUrlIfNeeded(...otherParams) {\n    // NOTICE: This refreshes URL on update on current project\n    const params = this.paramsFor(this.routeName) as Params;\n    const project = this.modelFor(this.routeName) as ProjectModel;\n\n    if (params.project_name === project.name) {\n      return;\n    }\n\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-argument\n    await this.router.replaceWith(this.router.currentRouteName, project.name, ...otherParams);\n  }\n\n  @action\n  async transitionToProjects() {\n    await this.currentOrganization.transitionToProjectsIndex();\n  }\n\n  @action\n  async refreshProjectRoute() {\n    // we reload the window when changing the prod env\n    // because the data has changed when the setAsProductionEnvironment method\n    // has been called. This is to prevent corrupted data.\n    window.location.reload();\n  }\n\n  @action\n  async reorderRenderingSections(sections: FragmentRenderingSection[]) {\n    try {\n      const { rendering } = this.modelFor('project.rendering') as { rendering: RenderingModel };\n\n      if (isEqual(sections, rendering.sectionsDecoratedOrderableVisible)) {\n        return;\n      }\n\n      if (sections.length === 0) {\n        throw new Error('Sections cannot be empty.');\n      }\n\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-ignore\n      rendering.sections = [\n        ...sections,\n        ...rendering.sectionsNonDraggable,\n        ...rendering.sectionsDeactivatedForTeam,\n      ];\n\n      await rendering.save();\n      this.businessNotification.createToastr(\n        ToastrTypeEnum.Success,\n        'The sections order has been saved successfully.',\n      );\n    } catch (e) {\n      const error = e as Error;\n      this.errorHandler.handleRequestFailure(error, 'Sections reordering failed');\n    }\n  }\n\n  private toggleSegmentTrackingIfNeeded(project: ProjectModel) {\n    if (project.thirdPartyServicesTrackingDisabled) {\n      this.segment.disable();\n      console.info('Forest Admin 🌲 Stop third-party services tracking.');\n    } else {\n      this.segment.enable();\n      console.info('Forest Admin 🌲 Start third-party services tracking.');\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<ColorTheme @project={{this.project}}>\\n  <div class=\\\"c-project\\\" id=\\\"global\\\">\\n    <div id=\\\"overlays\\\"></div>\\n\\n    {{#if this.trial.content}}\\n      <Feature::Billing::TrialNotificationBar\\n        @trial={{this.trial.content}}\\n        @project={{this.project}}\\n      />\\n    {{/if}}\\n\\n    {{#unless this.targetRoute.hideGlobalNavigation}}\\n      {{#unless this.disableNotificationBar}}\\n        <Feedback::Notification::NotificationBar\\n          @rendering={{this.rendering}}\\n          @isLiveDemoRendering={{this.isLiveDemoRendering}}\\n          @isLiveDemoUser={{this.isLiveDemoUser}}\\n          @deployToProduction={{this.deployToProduction}}\\n        />\\n      {{/unless}}\\n    {{/unless}}\\n\\n    {{#unless this.rendering.isComputing}}\\n      <Feature::Inbox::NotificationBar />\\n    {{/unless}}\\n\\n    <div class=\\\"c-project__menu-container\\\">\\n      {{#unless this.targetRoute.hideGlobalNavigation}}\\n        <Navigation @hasCollaborationNotification={{this.hasCollaborationNotification}} />\\n      {{/unless}}\\n\\n      <div class=\\\"c-project__page-container\\\">\\n        {{outlet}}\\n      </div>\\n\\n      <Feature::Workflow::WorkflowContainer />\\n      <Feature::WorkflowVisualizer::Container />\\n      <Feature::Modal::RightPanelContainer />\\n      <Feature::Action::ApprovalConfirmationModal />\\n    </div>\\n  </div>\\n</ColorTheme>\\n', { moduleName: 'client/legacy/pods/project/template.hbs' });\n","import type { ProjectsRouteModel } from 'client/legacy/pods/projects/index/route';\nimport type CurrentOrganizationService from 'client/legacy/services/current-organization';\n\nimport Controller from '@ember/controller';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class ProjectsController extends Controller {\n  @service currentOrganization: CurrentOrganizationService;\n\n  @tracked\n  model: ProjectsRouteModel;\n\n  @tracked\n  loading = true;\n\n  get organizations() {\n    const teamOrganizations = this.model.organizations.sortBy('name');\n\n    return [this.currentOrganization.personalOrganization, ...teamOrganizations];\n  }\n\n  get canCreateProject() {\n    return Boolean(\n      this.currentOrganization.model.isPersonal || this.currentOrganization.model.isOwner,\n    );\n  }\n}\n","import type ArrayProxy from '@ember/array/proxy';\nimport type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type OrganizationModel from 'client/data/models/organization';\nimport type ProjectModel from 'client/data/models/project';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type ProjectsController from 'client/legacy/pods/projects/index/controller';\nimport type AuthenticationRedirectionService from 'client/legacy/services/authentication-redirection-service';\nimport type CurrentOrganizationService from 'client/legacy/services/current-organization';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LianaSessionOidcService from 'client/legacy/services/liana-session-oidc';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport enforceWhiteLabel from 'client/decorators/enforce-white-label';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nexport type ProjectsRouteModel = {\n  organizations: OrganizationModel[];\n  projects: ArrayProxy<ProjectModel>;\n};\n\n@enforceWhiteLabel()\nexport default class ProjectsRoute extends Route {\n  @service store: StoreService;\n  @service private currentOrganization: CurrentOrganizationService;\n  @service private currentUser: CurrentUserService;\n  @service private lianaSessionOidc: LianaSessionOidcService;\n  @service private router: RouterService;\n  @service private session: ForestSessionService;\n  @service private authenticationRedirectionService: AuthenticationRedirectionService;\n  @service('feature/notification') private notificationService: NotificationFeatureService;\n\n  queryParams = {\n    organization: {\n      refreshModel: true,\n    },\n  };\n\n  async beforeModel(transition: Transition) {\n    this.session.requireAuthentication(transition, 'authentication.login');\n\n    await super.beforeModel(transition);\n\n    this.currentUser.team = null;\n  }\n\n  @action\n  loading(transition: Transition) {\n    // eslint-disable-next-line ember/no-controller-access-in-routes\n    const controller = this.controllerFor('projects.index') as ProjectsController;\n    controller.loading = true;\n    transition.promise.finally(() => {\n      controller.loading = false;\n    });\n  }\n\n  async model(params: { organization?: string }): Promise<ProjectsRouteModel> {\n    const allOrganizations = await this.store.findAll('organization');\n\n    const searchedOrganization = params.organization?.trim();\n\n    const selectedOrganization = allOrganizations.find(\n      (organization) => organization.name.trim() === searchedOrganization,\n    );\n\n    const projects = await this.store.query('project', {\n      organizationId: selectedOrganization?.id || null,\n    });\n\n    const organizations = allOrganizations.filter((organization) => !organization.isPersonal);\n\n    const model = { organizations, projects };\n\n    if (!searchedOrganization) {\n      this.currentOrganization.definePersonalOrganization();\n      return model;\n    }\n\n    if (!selectedOrganization) {\n      this.notificationService.createToastr(\n        ToastrTypeEnum.Warning,\n        'You have been redirected to your personal space, as you do not have access to the requested organization.',\n      );\n      this.currentOrganization.definePersonalOrganization();\n      await this.router.transitionTo({ queryParams: { organization: undefined } });\n      return model;\n    }\n\n    this.currentOrganization.define(selectedOrganization);\n\n    if (this.session.isConnectedWithSso()) {\n      // sso cookie is used to remember the name and the logo of the last visited organization\n      window.Cookies.set('sso', {\n        organizationName: selectedOrganization.name,\n        organizationPictureUrl: selectedOrganization.pictureUrl,\n      });\n    }\n\n    return model;\n  }\n\n  async afterModel(model: ProjectsRouteModel, transition: Transition) {\n    const redirectTarget = this.authenticationRedirectionService.useRedirectTarget();\n    if (redirectTarget) {\n      // In some cases we would need to redirect the user even if he is not in the organization\n      // For example, when he is invited to a project\n      await this.router.transitionTo(redirectTarget);\n    }\n\n    // NOTICE: Users with a single project, going to the root url of the app are\n    //         redirected to their single project rendering.\n    // eslint-disable-next-line ember/no-controller-access-in-routes\n    if (model.projects.get('length') === 1 && transition.to.queryParams.postLogin) {\n      const project = model.projects.get('firstObject');\n      await this.router.transitionTo('project', project.name);\n    }\n  }\n\n  setupController(\n    controller: ProjectsController,\n    model: ProjectsRouteModel,\n    transition: Transition,\n  ) {\n    super.setupController(controller, model, transition);\n    this.lianaSessionOidc.invalidateAll();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::BetaGlobalNavigationBar\\n  @transitionToSettings={{action-link-to \\'user-settings\\'}}\\n  @organizations={{this.organizations}}\\n/>\\n\\n<div class=\\\"l-projects-container\\\">\\n  <ProjectsList\\n    @canCreateProject={{this.canCreateProject}}\\n    @organization={{this.currentOrganization.model}}\\n    @projects={{this.model.projects}}\\n    @loading={{this.loading}}\\n  />\\n</div>\\n', { moduleName: 'client/legacy/pods/projects/index/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class LoginRoute extends Route {\n  @service router: RouterService;\n\n  async model() {\n    await this.router.transitionTo('authentication.reset-password');\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport {\n  ManagedError,\n  UnknownSamlAuthenticationError,\n  UnknownSamlCallbackParseQueryParamsError,\n} from 'client/utils/errors';\n\nexport default class SamlCallbackRoute extends Route {\n  /** @type {import('../../services/forest-session').default} */\n  @service session;\n  /** @type {import('../../services/logout-message').default} */\n  @service logoutMessage;\n  /** @type {import('../../services/tracker').default} */\n  @service tracker;\n  /** @type {import('../../services/redirection').default} */\n  @service redirection;\n  /** @type {import('../../services/custom-domain').default} */\n  @service customDomain;\n  /** @type {import('@ember/routing/router-service').default} */\n  @service router;\n  @service authenticationRedirectionService;\n  @service errorHandler;\n\n  /** @type {import('app/features/authentication/services/feature').default} */\n  @service('feature/authentication') authenticationFeatureService;\n\n  queryParams = [\n    'errorCode',\n    'errorMessage',\n    'errorName',\n    'code',\n    'organizationName',\n    'RelayState',\n  ];\n\n  async beforeModel(transition) {\n    const { errorCode, errorMessage, errorName, errorDestinationUrl, organizationName } =\n      transition.to.queryParams;\n\n    if (errorName) {\n      this.tracker.captureMessage(errorMessage, 'error');\n      console.error('Unable to complete the authentication with SSO', {\n        errorCode,\n        errorMessage,\n        errorName,\n        errorDestinationUrl,\n      });\n      this.logoutMessage.saveLogoutErrorMessage(\n        `Unable to complete the authentication with SSO: ${errorMessage || 'Unexpected error'}.`,\n      );\n      return errorDestinationUrl\n        ? this.router.transitionTo(errorDestinationUrl, organizationName)\n        : this.router.transitionTo('authentication.login.sso');\n    }\n\n    try {\n      await this.authenticationFeatureService.authenticateViaSaml(transition.to.queryParams?.code);\n    } catch (error) {\n      if (error instanceof ManagedError) {\n        this.errorHandler.handleSilentError(error, { transition });\n      } else {\n        this.errorHandler.handleSilentError(new UnknownSamlAuthenticationError(error), {\n          transition,\n        });\n      }\n      this.logoutMessage.saveLogoutErrorMessage(\n        `Unable to complete the authentication with SSO: ${error.message || 'Unexpected error'}.`,\n      );\n      return this.router.transitionTo('authentication.login.sso').followRedirects();\n    }\n\n    const redirectTarget = this.authenticationRedirectionService.useRedirectTarget();\n    if (redirectTarget) {\n      return this.router.transitionTo(redirectTarget);\n    }\n\n    let relayState = null;\n    try {\n      relayState = JSON.parse(decodeURIComponent(transition.to.queryParams?.RelayState));\n    } catch (error) {\n      const context = {\n        queryParams: transition.to.queryParams,\n      };\n      this.errorHandler.handleSilentError(\n        new UnknownSamlCallbackParseQueryParamsError(error, context),\n        { transition },\n      );\n      return this.router.transitionTo('authentication.login.sso').followRedirects();\n    }\n    const destinationUrl = decodeURI(relayState.destinationUrl); // 2 levels of decoding to support JSON in URI (filters)\n\n    const queryParams = {\n      queryParams: {\n        organization: relayState.organizationName,\n        postLogin: true,\n        ...(relayState.queryParams || {}),\n      },\n    };\n    if (destinationUrl.startsWith('https://')) {\n      const isValidDomain = destinationUrl.startsWith(`https://${this.customDomain.currentDomain}`);\n      if (isValidDomain) {\n        const url = new URL(destinationUrl);\n        url.searchParams.append('postLogin', '1');\n        return this.redirection.redirectToHref(url.href);\n      }\n\n      return this.router.transitionTo('projects', queryParams);\n    }\n\n    if (\n      !destinationUrl\n      || destinationUrl === 'undefined'\n      || destinationUrl === 'organization.projects'\n      || destinationUrl === 'authentication/login/sso'\n    ) {\n      return this.router.transitionTo('projects', queryParams);\n    }\n\n    if (destinationUrl.slice(0, 13) === 'organization.') {\n      return this.router.transitionTo(\n        destinationUrl,\n        queryParams.queryParams.organization,\n        queryParams,\n      );\n    }\n\n    return this.router.transitionTo(destinationUrl, queryParams);\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class SignupRoute extends Route {\n  @service router: RouterService;\n\n  async beforeModel() {\n    await this.router.transitionTo('authentication.signup');\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class LoginRoute extends Route {\n  @service router: RouterService;\n\n  async model(params: { token: string }) {\n    await this.router.transitionTo('authentication.update-password', { token: params.token });\n  }\n}\n","import Controller from '@ember/controller';\nimport { alias } from '@ember/object/computed';\n\nexport default class UserSettingsApplicationTokensDetailsController extends Controller {\n  /** @type {import('../../../../../models/application-token').default} */\n  @alias('model') applicationToken;\n\n  get breadcrumb() {\n    return [\n      {\n        displayName: 'Account settings',\n        link: 'user-settings',\n        isClickable: true,\n      },\n      {\n        displayName: 'Application tokens',\n        isClickable: false,\n      },\n      {\n        displayName: this.applicationToken.name,\n        isClickable: false,\n      },\n    ];\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class UserSettingsApplicationTokensDetailsRoute extends Route {\n  @service session;\n\n  beforeModel(transition, ...args) {\n    this.session.requireAuthentication(transition, 'authentication.login');\n    return super.beforeModel(transition, ...args);\n  }\n\n  // Minimal model hook to satisfy Ember's dynamic segment requirement\n  // MFE handles actual data loading via React Query\n  model(params) {\n    return { tokenId: params.token_id };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! Empty template - React MFE handles all content }}\\n', { moduleName: 'client/legacy/pods/user-settings/application-tokens/details/template.hbs' });\n","import Controller from '@ember/controller';\nimport { computed } from '@ember/object';\nimport { alias, bool } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class UserSettingsApplicationTokensGenerateController extends Controller {\n  /** @type {import('../../services/forest-session').default} */\n  @service session;\n\n  queryParams = ['generate'];\n\n  generate = false;\n\n  /** @type {import('../../../../../models/application-token').default} */\n  @alias('model') applicationToken;\n  /** @type {boolean} */\n  @bool('generate', 'true') mustAutoGenerate;\n\n  breadcrumb = [\n    {\n      displayName: 'Account settings',\n      link: 'user-settings',\n      isClickable: true,\n    },\n    {\n      displayName: 'Generate a new token',\n      link: 'user-settings.application-tokens.generate',\n      isClickable: false,\n    },\n  ];\n\n  @computed('session')\n  get connectedWithSso() {\n    return this.session.isConnectedWithSso();\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class UserSettingsApplicationTokensGenerateRoute extends Route {\n  /** @type {import('@ember-data/store').default} */\n  @service store;\n  @service session;\n\n  beforeModel(transition, ...args) {\n    this.session.requireAuthentication(transition, 'authentication.login');\n    this.session.ensureCurrentUserIsPopulated();\n    return super.beforeModel(transition, ...args);\n  }\n\n  /**\n   * @param {{\n   *   name?: string;\n   *   generate?: 'true'\n   * }} params\n   */\n  model(params) {\n    const token = this.store.createRecord('application-token');\n\n    if (params && params.name) {\n      token.set('name', params.name);\n    }\n\n    return token;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::BetaBreadcrumb />\\n<UserSettingsView::ApplicationTokens::Generate\\n  @applicationToken={{this.applicationToken}}\\n  @autoGenerate={{this.mustAutoGenerate}}\\n  @connectedWithSso={{this.connectedWithSso}}\\n/>\\n', { moduleName: 'client/legacy/pods/user-settings/application-tokens/generate/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! Empty template - React MFE handles all content }}\\n', { moduleName: 'client/legacy/pods/user-settings/application-tokens/new/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class UserSettingsApplicationTokensRoute extends Route {\n  @service session;\n  @service currentUser;\n\n  beforeModel(transition, ...args) {\n    this.session.requireAuthentication(transition, 'authentication.login');\n    this.session.ensureCurrentUserIsPopulated();\n    return super.beforeModel(transition, ...args);\n  }\n\n  model() {\n    return this.modelFor('user-settings');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{!\\n  Empty template - React MFE handles all content\\n  This route exists only for Ember routing, not for rendering\\n}}\\n', { moduleName: 'client/legacy/pods/user-settings/application-tokens/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\n\nimport config from 'client/config/environment';\n\nclass UserSettingsController extends Controller {\n  @service router;\n  @service currentOrganization;\n  @service routeHistory;\n  @service session;\n  @service lianaSession;\n  @service currentUser;\n\n  get apiBaseUrl() {\n    return `${config.APP.apiServerHost}/api`;\n  }\n\n  @action\n  onClose() {\n    const lastRouteBeforeAccountSettings = this.routeHistory.getLastRouteBeforeAccountSettings();\n\n    if (lastRouteBeforeAccountSettings) {\n      return this.routeHistory.transitsToHistoryRoute(lastRouteBeforeAccountSettings);\n    }\n\n    return this.currentOrganization.transitionToProjectsIndex();\n  }\n}\n\nexport default UserSettingsController;\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! Empty template - React MFE handles all content }}\\n', { moduleName: 'client/legacy/pods/user-settings/index/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class UserSettingsRoute extends Route {\n  @service currentUser;\n  /** @type {import('@ember-data/store').default} */\n  @service store;\n  @service session;\n  @service lianaSession;\n\n  beforeModel(transition, ...args) {\n    this.session.requireAuthentication(transition, 'authentication.login');\n    return super.beforeModel(transition, ...args);\n  }\n\n  async model() {\n    await this.store.findRecord('user', this.currentUser.get('id'), { reload: true });\n    const [userRecoveryCodes, applicationTokens] = await Promise.all([\n      this.store.findAll('userRecoveryCode'),\n      this.store.findAll('applicationToken'),\n    ]);\n    return { userRecoveryCodes, applicationTokens };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-user-settings\\\">\\n  <Navigation::BetaGlobalNavigationBar\\n    @settingsTitle=\\\"Account settings\\\"\\n    @isSettings={{true}}\\n    @onCloseFallback={{this.onClose}}\\n  />\\n\\n  <div class=\\\"c-user-settings__content\\\">\\n    <MicroFrontend::ReactHost\\n      @mfe=\\\"user-settings-mfe\\\"\\n      @props={{hash\\n        token=this.session.data.authenticated.token\\n        projectId=this.lianaSession.currentProject.id\\n        environmentId=this.lianaSession.currentEnvironment.id\\n        renderingId=this.lianaSession.currentRenderingId\\n        userId=this.currentUser.id\\n        apiBaseUrl=this.apiBaseUrl\\n      }}\\n    />\\n  </div>\\n</div>\\n', { moduleName: 'client/legacy/pods/user-settings/template.hbs' });\n","import Controller from '@ember/controller';\n\nexport default class UserSettingsTwoFactorAuthenticationInstructionsController extends Controller {\n  breadcrumb = [\n    {\n      displayName: 'Account settings',\n      link: 'user-settings',\n      isClickable: true,\n    },\n    {\n      displayName: 'Two-factor authentication',\n      link: 'user-settings.two-factor-authentication.instructions',\n      isClickable: false,\n    },\n  ];\n}\n","import { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class UserSettingsTwoFactorAuthenticationInstructionsRoute extends Route {\n  @service session;\n  /** @type {import('@ember/routing/router').default} */\n  @service router;\n\n  /** @type {import('client/legacy/services/current-user').default} */\n  @service currentUser;\n\n  beforeModel(transition, ...args) {\n    this.session.requireAuthentication(transition, 'authentication.login');\n\n    if (\n      !this.currentUser.model.hasPassword\n      || this.currentUser.model.twoFactorAuthenticationActive\n    ) {\n      this.router.transitionTo('user-settings');\n    }\n\n    return super.beforeModel(transition, ...args);\n  }\n\n  @action\n  transitionToSetup() {\n    this.router.transitionTo('user-settings.two-factor-authentication.setup');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! Empty template - React MFE handles all content }}\\n', { moduleName: 'client/legacy/pods/user-settings/two-factor-authentication/instructions/template.hbs' });\n","import Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\n\nexport default class UserSettingsTwoFactorAuthenticationRecoveryCodesController extends Controller {\n  /** @type {import('../../../../../models/user-recovery-code').default} */\n  @alias('model') userRecoveryCode;\n  @service serverFetch;\n  @service recoveryCodesService;\n  @service toastr;\n\n  get breadcrumb() {\n    return [\n      {\n        displayName: 'Account settings',\n        link: 'user-settings',\n        isClickable: true,\n      },\n      {\n        displayName: 'Recovery codes',\n        isClickable: false,\n      },\n    ];\n  }\n\n  @action\n  async generateNewRecoveryCodes(callback) {\n    try {\n      await this.recoveryCodesService.generateNewRecoveryCodes(true);\n    } catch (error) {\n      this.toastr.perform('error', error.message);\n    }\n    callback();\n  }\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class UserSettingsTwoFactorAuthenticationRecoveryCodesRoute extends Route {\n  /** @type {import('@ember-data/store').default} */\n  @service session;\n  @service store;\n\n  beforeModel(transition, ...args) {\n    this.session.requireAuthentication(transition, 'authentication.login');\n    return super.beforeModel(transition, ...args);\n  }\n\n  async model() {\n    const model = this.modelFor('user-settings');\n    return model.userRecoveryCodes;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! Empty template - React MFE handles all content }}\\n', { moduleName: 'client/legacy/pods/user-settings/two-factor-authentication/recovery-codes/template.hbs' });\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class UserSettingsTwoFactorAuthenticationRoute extends Route {\n  @service session;\n  @service currentUser;\n\n  beforeModel(transition, ...args) {\n    this.session.requireAuthentication(transition, 'authentication.login');\n    this.session.ensureCurrentUserIsPopulated();\n    return super.beforeModel(transition, ...args);\n  }\n\n  model() {\n    return this.modelFor('user-settings');\n  }\n}\n","import Controller from '@ember/controller';\nimport { alias } from '@ember/object/computed';\n\nexport default class UserSettingsTwoFactorAuthenticationSetupController extends Controller {\n  @alias('model') registration;\n\n  breadcrumb = [\n    {\n      displayName: 'Account settings',\n      link: 'user-settings',\n      isClickable: true,\n    },\n    {\n      displayName: 'Two-factor authentication',\n      link: 'user-settings.two-factor-authentication.setup',\n      isClickable: false,\n    },\n  ];\n}\n","import Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class UserSettingsTwoFactorAuthenticationSetupRoute extends Route {\n  /** @type {import('@ember/routing/router').default} */\n  @service router;\n  @service session;\n  /** @type {import('client/app/services/server-fetch').default} */\n  @service serverFetch;\n  /** @type {import('client/app/services/toastr').default} */\n  @service toastr;\n  /** @type {import('client/app/services/qrcode').default} */\n  @service qrcode;\n  /** @type {import('client/app/services/current-user').default} */\n  @service currentUser;\n  @service recoveryCodesService;\n  /** @type {import('client/app/services/tracker').default} */\n  @service tracker;\n\n  beforeModel(transition, ...args) {\n    this.session.requireAuthentication(transition, 'authentication.login');\n\n    if (\n      !this.currentUser.model.hasPassword\n      || this.currentUser.model.twoFactorAuthenticationActive\n    ) {\n      this.router.transitionTo('user-settings');\n    }\n\n    return super.beforeModel(transition, ...args);\n  }\n\n  async model() {\n    try {\n      const registration = await this.register();\n      const { recoveryCodes } = registration;\n\n      await this.recoveryCodesService.registerRecoveryCodes(recoveryCodes);\n      const generatedQrCode = await this.createQRCode(registration.twoFactorAuthenticationSecret);\n\n      return {\n        ...registration,\n        generatedQrCode,\n      };\n    } catch (error) {\n      this.tracker.captureException(error);\n      this.toastr.perform('error', 'Unable to activate the 2FA on your account.');\n    }\n\n    this.router.transitionTo('user-settings');\n    return null;\n  }\n\n  /**\n   * @private\n   * @returns {Promise<{ twoFactorAuthenticationSecret }>}\n   */\n  async register() {\n    const response = await this.serverFetch.fetch(\n      `/api/users/${this.currentUser.get('id')}/2fa/register`,\n      {\n        method: 'POST',\n        credentials: 'include',\n      },\n    );\n\n    if (!response.ok) {\n      throw new Error('Unable to register the 2FA');\n    }\n\n    return response.json();\n  }\n\n  async createQRCode(twoFactorAuthenticationSecret) {\n    const url = encodeURI(\n      `otpauth://totp/${this.currentUser.get(\n        'email',\n      )}?secret=${twoFactorAuthenticationSecret}&issuer=Forest Admin`,\n    );\n    return this.qrcode.toDataURL(url, { margin: 0 });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! Empty template - React MFE handles all content }}\\n', { moduleName: 'client/legacy/pods/user-settings/two-factor-authentication/setup/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! Empty template - React MFE handles all content }}\\n', { moduleName: 'client/legacy/pods/user-settings/two-factor-authentication/template.hbs' });\n","import type ActionApprovalModel from 'client/data/models/action-approval';\n// FIXME\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type ActionCustomActionInternalBusinessService from 'client/features/action/services/internal-business/custom-action';\nimport type ActivityTrackerService from 'client/legacy/services/activity-tracker';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type ApprovalUIService from 'client/legacy/services/ui/approvals/approval-ui-service';\n\nimport Service, { service } from '@ember/service';\n\nimport { ActionApprovalStatusEnum } from 'client/data/models/action-approval';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport { getFirstErrorData, getFirstErrorName } from 'client/utils/ember-error-util';\n\nexport default class ActionApprovalService extends Service {\n  @service activityTracker: ActivityTrackerService;\n  @service currentUser: CurrentUserService;\n  @service eventBus: EventBusService;\n  @service lianaSession: LianaSessionService;\n  @service serverFetch: ServerFetchService;\n  @service store: StoreService;\n  @service toastr: ToastrService;\n  @service tracker: TrackerService;\n  @service errorHandler: ErrorHandlerService;\n  @service('feature/action/internal-business/custom-action')\n  customActionService: ActionCustomActionInternalBusinessService;\n\n  @service('ui/approvals/approval-ui-service') approvalUIService: ApprovalUIService;\n\n  async approve(actionApproval: ActionApprovalModel) {\n    try {\n      actionApproval.isBeingPerformed = true;\n      // NOTICE: Ensure that actions are not yet approved or rejected before rejecting it, for a\n      //         better experience.\n      const actionApprovalRefreshed = await actionApproval.reload();\n\n      if (!actionApprovalRefreshed.canApprove) {\n        this.toastr.perform(\n          ToastrTypeEnum.Error,\n          \"You don't have the right to approve this action anymore.\",\n        );\n        return;\n      }\n\n      if (actionApprovalRefreshed.status !== 'pending') {\n        this.toastr.perform(\n          ToastrTypeEnum.Error,\n          `Action already ${actionApprovalRefreshed.status}.`,\n        );\n        return;\n      }\n\n      const { success, statusAlreadyUpdated, errorMessage } = (await this.executeAction(\n        actionApproval,\n      )) as {\n        success: boolean;\n        statusAlreadyUpdated?: boolean;\n        errorMessage?: string;\n      };\n\n      if (!success && !statusAlreadyUpdated) {\n        // Something goes wrong during execution put warning status\n        actionApproval.status = 'warning';\n        actionApproval.errorMessage = errorMessage;\n\n        await actionApproval.save();\n      }\n    } catch (error) {\n      this.tracker.captureException(error as Error);\n\n      this.toastr.perform(\n        ToastrTypeEnum.Error,\n        'An error occurred while checking the action approval status.',\n      );\n    } finally {\n      actionApproval.isBeingPerformed = false;\n    }\n  }\n\n  async reject(actionApproval: ActionApprovalModel) {\n    try {\n      // NOTICE: Ensure that actions are not yet approved or rejected before rejecting it, for a\n      //         better experience.\n      const actionApprovalRefreshed = await actionApproval.reload();\n\n      if (!actionApprovalRefreshed.canApprove && !actionApprovalRefreshed.isOrphaned) {\n        this.toastr.perform(\n          ToastrTypeEnum.Error,\n          \"You don't have the right to reject this action anymore.\",\n        );\n        return;\n      }\n\n      if (actionApprovalRefreshed.status !== 'pending') {\n        this.toastr.perform(\n          ToastrTypeEnum.Error,\n          `Action already ${actionApprovalRefreshed.status}.`,\n        );\n        return;\n      }\n\n      actionApproval.status = 'rejected';\n      await actionApproval.save();\n\n      await this.activityTracker.trackWrite({\n        action: 'rejectApproval',\n        label: `rejected the action \"${actionApproval.actionName}\"`,\n        collection: actionApproval.collection,\n        recordIds: actionApproval.recordIds,\n      });\n\n      // Update the counters accordingly\n      this.approvalUIService.updateToReviewCount(actionApproval.isRequestedByCurrentUser);\n    } catch (error) {\n      this.tracker.captureException(error as Error);\n\n      this.toastr.perform(\n        ToastrTypeEnum.Error,\n        'An error occurred while checking the action approval status.',\n      );\n    }\n  }\n\n  async createApprovalMessage({\n    messageContent,\n    approval,\n  }: {\n    messageContent: string;\n    approval: ActionApprovalModel;\n  }) {\n    const newMessage = this.store.createRecord('action-approvals-comment', {\n      comment: messageContent,\n      approval,\n      author: this.currentUser.model,\n    });\n    try {\n      await newMessage.save();\n    } catch (error) {\n      this.tracker.captureException(error as Error);\n      this.toastr.perform(\n        ToastrTypeEnum.Error,\n        'An error occurred while sending the approval message.',\n      );\n    }\n  }\n\n  async resolveApprovalWarning(\n    actionApproval: ActionApprovalModel,\n    resolveAction: 'ignore' | 'failed',\n  ) {\n    try {\n      const actionApprovalRefreshed = await actionApproval.reload();\n\n      if (!actionApprovalRefreshed.canApprove && !actionApprovalRefreshed.isOrphaned) {\n        this.toastr.perform(\n          ToastrTypeEnum.Error,\n          \"You don't have the right to update this action anymore.\",\n        );\n        return;\n      }\n\n      if (actionApprovalRefreshed.status !== 'warning') {\n        this.toastr.perform(\n          ToastrTypeEnum.Error,\n          `Action already ${actionApprovalRefreshed.status}.`,\n        );\n        return;\n      }\n\n      await this.resolveApproval(actionApprovalRefreshed, resolveAction);\n\n      const markAsFailed = resolveAction === 'failed';\n      actionApproval.status = markAsFailed\n        ? ActionApprovalStatusEnum.Failed\n        : ActionApprovalStatusEnum.Approved;\n\n      await this.trackResolveAction(markAsFailed, actionApproval);\n    } catch (error) {\n      this.errorHandler.handleError(\n        error as Error,\n        'An error occurred while checking the action approval status',\n      );\n    }\n  }\n\n  private async resolveApproval(actionApproval: ActionApprovalModel, resolveAction: string) {\n    await this.serverFetch.fetch(\n      `/api/action-approvals/${actionApproval.id}/resolve-warning`,\n      {\n        method: 'POST',\n        body: JSON.stringify({ action: resolveAction }),\n        headers: {\n          'forest-rendering-id': String(this.lianaSession.currentRenderingId),\n          'forest-project-id': this.lianaSession.currentProject?.id,\n          'forest-environment-id': this.lianaSession.rendering?.environment?.id,\n        },\n        credentials: 'include',\n      },\n      true,\n    );\n  }\n\n  private async trackResolveAction(markAsFailed: boolean, actionApproval: ActionApprovalModel) {\n    const { collection } = actionApproval;\n    const action = markAsFailed ? 'markApprovalAsFailed' : 'ignoreApprovalWarning';\n    const label = markAsFailed\n      ? `action \"${actionApproval.actionName}\" marked as failed after warning`\n      : `ignored warning on action \"${actionApproval.actionName}\"`;\n\n    await this.activityTracker.trackWrite({\n      recordIds: actionApproval.recordIds,\n      label,\n      action,\n      collection,\n    });\n\n    // Update the counters accordingly\n    await this.approvalUIService.updateWarningCount();\n  }\n\n  private async executeAction(actionApproval: ActionApprovalModel) {\n    try {\n      const { action } = actionApproval;\n      const { fields } = action;\n      const recordIds = actionApproval.recordIds.map((id) => ({ id }));\n\n      const valuesMap = {};\n      if (actionApproval.inputs) {\n        actionApproval.inputs.forEach((input) => {\n          if (input.value !== null && input.value !== undefined) {\n            valuesMap[input.name] = input.value;\n          }\n        });\n        fields.forEach((field) => {\n          // TODO: Replace this set. customActionValue is a tracked we don't need this extra shit\n          field.set('customActionValue', valuesMap[field.fieldName]);\n        });\n      }\n\n      return await this.customActionService.triggerCustomAction(\n        action,\n        recordIds,\n        valuesMap,\n        false,\n        {\n          isApproval: true,\n          signedApprovalRequest: actionApproval.signedApprovalRequest,\n          // Hooks ensure to execute actions just before or as soon as the execution occurred\n          beforeCustomActionExecution: this.beforeCustomActionExecution.bind(this, actionApproval),\n          afterCustomActionExecution: this.afterCustomActionExecution.bind(\n            this,\n            actionApproval,\n            action.name,\n          ),\n        },\n      );\n    } catch (error) {\n      if (getFirstErrorName(error) === 'ApprovalNotAllowedError') {\n        const { roleIdsAllowedToApprove } = getFirstErrorData<{\n          roleIdsAllowedToApprove: number[];\n        }>(error);\n\n        // Only updates roleIdsAllowedToApprove\n        actionApproval.status = 'pending';\n        actionApproval.roleIdsAllowedToApprove = roleIdsAllowedToApprove;\n        await actionApproval.save();\n\n        // Notice: prevent issue with store persistence\n        actionApproval.unloadRecord();\n\n        this.toastr.perform(\n          ToastrTypeEnum.Error,\n          \"You don't have permissions to approve this action anymore.\",\n        );\n\n        // Update the counters accordingly\n        this.approvalUIService.updateToReviewCountOnError();\n\n        // We don't want to update actionApproval again\n        return { success: false, statusAlreadyUpdated: true };\n      }\n\n      // Should never happen\n      return { success: false };\n    }\n  }\n\n  private async beforeCustomActionExecution(actionApproval: ActionApprovalModel) {\n    // Before executing the action let's put an in-progress status\n    actionApproval.status = ActionApprovalStatusEnum.InProgress;\n    await actionApproval.save();\n  }\n\n  private async afterCustomActionExecution(\n    actionApproval: ActionApprovalModel,\n    customActionName: string,\n  ) {\n    // Everything goes well approved status\n    actionApproval.status = ActionApprovalStatusEnum.Approved;\n    await actionApproval.save();\n\n    await this.activityTracker.trackWrite({\n      action: 'approveApproval',\n      label: `approved the action \"${customActionName}\"`,\n      collection: actionApproval.collection,\n      recordIds: actionApproval.recordIds,\n    });\n    this.eventBus.trigger(EventBusEventsEnum.SmartActionApprovalApproved, actionApproval);\n\n    // Update the counters accordingly\n    this.approvalUIService.updateToReviewCount(actionApproval.isRequestedByCurrentUser);\n  }\n}\n","import type ActivityLogsRequestModel from 'client/data/models/activity-logs-request';\nimport type { WorkflowLogs } from 'client/data/models/activity-logs-request';\nimport type CollectionModel from 'client/data/models/collection';\nimport type DashboardModel from 'client/data/models/dashboard';\nimport type InboxModel from 'client/data/models/inbox';\nimport type RenderingModel from 'client/data/models/rendering';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type NestedCollection from 'client/utils/nested/collection';\n\nimport { later } from '@ember/runloop';\nimport Service, { service } from '@ember/service';\n\nimport {\n  NoMoreRetryFailedToSaveActivityLogError,\n  UnknownFailedToSaveActivityLogError,\n} from 'client/utils/errors';\nimport { markPropertiesAsNotDirty } from 'client/utils/model-utils';\n\nexport type MinimumActivityLogPayload = {\n  action: string;\n  label?: string;\n  collection: CollectionModel | NestedCollection;\n  workflow?: WorkflowLogs;\n  inbox?: InboxModel;\n};\n\nexport default class ActivityTrackerService extends Service {\n  @service private store: StoreService;\n  @service private tracker: TrackerService;\n  @service private lianaSession: LianaSessionService;\n  @service private serverFetch: ServerFetchService;\n  @service private segmentTracker: SegmentTrackerService;\n  @service private errorHandler: ErrorHandlerService;\n\n  // NOTICE: The server does not send the object id in the response. To prevent an error, an\n  //         automatic id is set.\n  private currentId = 0;\n\n  private getNextId() {\n    this.currentId += 1;\n\n    return this.currentId;\n  }\n\n  async track(\n    activityLog: MinimumActivityLogPayload & {\n      type: string;\n      recordIds: string[] | number[];\n      timingRequest?: number;\n      timingInterface?: number;\n    },\n  ) {\n    const currentId = this.getNextId();\n    const {\n      type,\n      action,\n      label,\n      collection,\n      workflow,\n      inbox,\n      recordIds,\n      timingInterface,\n      timingRequest,\n    } = activityLog;\n\n    if (activityLog.collection) {\n      const rendering = (collection as CollectionModel).get('rendering');\n      const record = this.store.createRecord('activity-logs-request', {\n        id: currentId,\n        type,\n        action,\n        label,\n        rendering,\n        collection,\n        workflow,\n        inbox,\n        records: recordIds,\n        timingInterface,\n        timingRequest,\n        project: this.lianaSession.currentProject,\n        environment: this.lianaSession.currentEnvironment,\n      });\n\n      await this.trySaveActivityLog(record);\n\n      await this.trackFirstActivity();\n      return;\n    }\n    // NOTICE: If the collection is not found, no tracking is better than a crash for the end\n    //         user.\n    console.error('[forest] 🌳🌳🌳 Collection not found for the activity tracking.');\n    this.tracker.captureException(new Error('Activity Tracking Missed: Collection not found'));\n  }\n\n  async trackRead(\n    activity: MinimumActivityLogPayload & {\n      recordId?: string;\n      timingInterface?: number;\n      timingRequest?: number;\n    },\n  ) {\n    const { action, label, collection, recordId } = activity;\n    const recordIds = recordId ? [recordId] : null;\n    const activityLog = {\n      type: 'read',\n      action,\n      label,\n      collection,\n      recordIds,\n      timingInterface: activity.timingInterface,\n      timingRequest: activity.timingRequest,\n    };\n    return this.track(activityLog);\n  }\n\n  async trackDashboard(activity: {\n    rendering: RenderingModel;\n    dashboard: DashboardModel;\n    timingInterface: number;\n    timingRequest: number;\n  }) {\n    const { rendering, dashboard } = activity;\n    const currentId = this.getNextId();\n\n    const record = this.store.createRecord('activity-logs-request', {\n      id: currentId,\n      type: 'read',\n      action: 'dashboard',\n      rendering,\n      dashboard,\n      project: this.lianaSession.currentProject,\n      environment: rendering?.environment ?? this.lianaSession.currentEnvironment,\n    });\n    await this.trySaveActivityLog(record);\n\n    await this.trackFirstActivity();\n  }\n\n  async trackWorkspace(activity: { rendering: RenderingModel; workspace: WorkspaceModel }) {\n    const { rendering, workspace } = activity;\n    const currentId = this.getNextId();\n\n    const record = this.store.createRecord('activity-logs-request', {\n      id: currentId,\n      type: 'read',\n      action: 'workspace',\n      rendering,\n      workspace,\n      project: this.lianaSession.currentProject,\n      environment: rendering?.environment ?? this.lianaSession.currentEnvironment,\n    });\n\n    await this.trySaveActivityLog(record);\n    await this.trackFirstActivity();\n  }\n\n  async trackWrite(activity: MinimumActivityLogPayload & { recordIds: string[] | number[] }) {\n    const { action, label, collection, recordIds, workflow, inbox } = activity;\n    const activityLog = {\n      type: 'write',\n      action,\n      label,\n      collection,\n      recordIds,\n      workflow,\n      inbox,\n    };\n    return this.track(activityLog);\n  }\n\n  async trackFirstActivity() {\n    const environment = this.lianaSession.currentEnvironment;\n    if (environment && environment.firstActivityAt) {\n      return;\n    }\n\n    const { currentProject } = this.lianaSession;\n    await this.serverFetch.fetch(`/api/environments/${environment.id}/first-activity`, {\n      method: 'POST',\n      credentials: 'include',\n      headers: {\n        'forest-project-id': currentProject.id,\n        'forest-environment-id': environment.id,\n      },\n      body: JSON.stringify({ renderingId: this.lianaSession.currentRenderingId }),\n    });\n    environment.firstActivityAt = new Date();\n    markPropertiesAsNotDirty(environment, ['firstActivityAt']);\n\n    const deploymentInformation = {\n      projectId: currentProject.id,\n      projectName: currentProject.name,\n      agent: currentProject.agent,\n      architecture: currentProject.architecture,\n      databaseType: currentProject.databaseType,\n    };\n    if (environment.type === 'production' && !currentProject.deployedAt) {\n      /**\n       * project is considered deployed as soon as the first activity is recorded\n       */\n      currentProject.deployedAt = new Date();\n      this.segmentTracker.trackEnvironmentProductionDeployed(deploymentInformation);\n    }\n\n    if (!currentProject.initializedAt) {\n      /**\n       * Onboarding steps are considered completed as soon as the first activity is recorded\n       */\n\n      currentProject.initializedAt = new Date();\n      markPropertiesAsNotDirty(currentProject, ['initializedAt']);\n\n      this.segmentTracker.trackOnboardingStepsCompleted(deploymentInformation);\n    }\n  }\n\n  private async trySaveActivityLog(\n    activity: ActivityLogsRequestModel,\n    { retryAmount, retryTimeout } = { retryAmount: 5, retryTimeout: 500 },\n  ) {\n    try {\n      await this.lianaSession.waitUntilAuthenticated();\n      await activity.save();\n      activity?.unloadRecord();\n    } catch (error) {\n      if (retryAmount === 0) {\n        const wrappedError = new NoMoreRetryFailedToSaveActivityLogError(error as Error);\n        this.errorHandler.handleSilentError(wrappedError, {\n          retryAmount,\n          activityId: activity.id,\n          activity,\n          error,\n        });\n      } else {\n        const unknownError = new UnknownFailedToSaveActivityLogError(error as Error);\n        this.errorHandler.handleSilentError(unknownError, {\n          retryAmount,\n          activityId: activity.id,\n          activityType: activity.type,\n          activityLabel: activity.label,\n          activityAction: activity.action,\n        });\n\n        later(\n          async () =>\n            this.trySaveActivityLog(activity, {\n              retryAmount: retryAmount - 1,\n              retryTimeout: retryTimeout * 2,\n            }),\n          retryTimeout,\n        );\n      }\n    }\n  }\n}\n","import type ApplicationAdapter from 'client/data/adapters/application';\nimport type LianaServerFetchService from 'client/legacy/services/liana-server-fetch';\n\nimport Service, { service } from '@ember/service';\nimport { isString } from 'lodash';\n\nexport default class AjaxCallerService extends Service {\n  @service lianaServerFetch: LianaServerFetchService;\n\n  async call(\n    url: string,\n    method: 'OPTIONS' | 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH',\n    data: object | string = {},\n    adapter: ApplicationAdapter | null = null,\n  ) {\n    const stringData: string = data && !isString(data) ? JSON.stringify(data) : (data as string);\n    const options = {\n      method,\n      body: stringData,\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-ignore\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n      signal: adapter?.fetchAbortSignal,\n    };\n\n    return this.lianaServerFetch.fetch(url, options);\n  }\n}\n","import Service from '@ember/service';\nimport window from 'ember-window-mock';\n\nexport default class AnimationTransitionService extends Service {\n  public easeInQuad(timeRatio: number, changeInValue: number) {\n    return changeInValue * timeRatio * timeRatio;\n  }\n\n  public easeOutQuad(timeRatio: number, changeInValue: number) {\n    return -1 * changeInValue * timeRatio * (timeRatio - 2);\n  }\n\n  public easeInOutQuad(timeRatio: number, changeInValue: number) {\n    if (timeRatio < 1 / 2) {\n      return changeInValue * timeRatio * timeRatio;\n    }\n    return -1 * changeInValue * timeRatio * (timeRatio - 2);\n  }\n\n  private setNextValue(startTime: number, duration: number, callback: (timeRatio: number) => void) {\n    const dateNow = Date.now();\n    const timeRatio = Math.min(1, (dateNow - startTime) / duration);\n\n    callback(timeRatio);\n\n    if (timeRatio < 1) {\n      window.requestAnimationFrame(this.setNextValue.bind(this, startTime, duration, callback));\n    }\n  }\n\n  animate(duration: number, callback: (timeRatio: number) => void) {\n    this.setNextValue(Date.now(), duration, callback);\n  }\n}\n","import type ForestSessionService from 'client/legacy/services/forest-session';\nimport type SessionRefresh from 'client/legacy/services/session-refresh';\n\nimport { split } from '@apollo/client';\nimport { setContext } from '@apollo/client/link/context';\nimport { WebSocketLink } from '@apollo/client/link/ws';\nimport { getMainDefinition } from '@apollo/client/utilities';\nimport { service } from '@ember/service';\nimport ApolloService from 'ember-apollo-client/services/apollo';\n\nimport config from 'client/config/environment';\n\nexport default class CustomApolloService extends ApolloService {\n  @service declare session: ForestSessionService;\n  @service declare sessionRefresh: SessionRefresh;\n\n  link() {\n    const { subscriptionURL } = config.apollo;\n    const httpLink = super.link();\n    const wsLink = new WebSocketLink({\n      uri: subscriptionURL,\n      options: {\n        reconnect: true,\n      },\n      webSocketImpl: WebSocket,\n    });\n\n    const authLink = setContext(async () => {\n      await this.sessionRefresh.waitSessionRefreshIfNecessary();\n\n      const { token } = this.session.data.authenticated;\n\n      return {\n        headers: {\n          Authorization: `Bearer ${token}`,\n        },\n      };\n    });\n    const httpLinkWithAuth = authLink.concat(httpLink);\n\n    return split(\n      ({ query }) => {\n        const mainDefinition = getMainDefinition(query);\n        return (\n          mainDefinition.kind === 'OperationDefinition'\n          && mainDefinition.operation === 'subscription'\n        );\n      },\n      wsLink,\n      httpLinkWithAuth,\n    );\n  }\n}\n","import type FetchSharedBusinessService from 'client/shared/services/fetch';\n\nimport Service, { service } from '@ember/service';\n\nimport {\n  CorsAgentError,\n  FailedToFetchError,\n  HttpError,\n  UnreachableAgentError,\n} from 'client/utils/errors';\n\nexport default class ApplicationCheckerService extends Service {\n  @service('shared/fetch') private fetchService: FetchSharedBusinessService;\n\n  private async agentHealthcheck(apiEndpoint: string, noHeaders = false) {\n    const response = await this.fetchService.fetch(\n      `${apiEndpoint}${apiEndpoint.endsWith('/') ? '' : '/'}forest`,\n      {\n        method: 'GET',\n        ...(noHeaders\n          ? {}\n          : {\n              headers: {\n                Accept: 'application/json',\n                'Content-Type': 'application/json',\n              },\n            }),\n      },\n    );\n\n    if (response.status !== 204 && response.status !== 200) throw new HttpError(response);\n  }\n\n  // Check if the agent is reachable otherwise return an AgentUnreachableError\n  // Then check is the cors are valid otherwise return a CorsError\n  // Otherwise return null.\n  async checkAgent(apiEndpoint: string) {\n    if (this.isDestroyed || this.isDestroying) return null;\n\n    // NOTICE: Try to detect unreachable server\n    try {\n      await this.agentHealthcheck(apiEndpoint, true);\n    } catch (checkError) {\n      if (checkError instanceof FailedToFetchError)\n        return new UnreachableAgentError(checkError as Error);\n      return checkError;\n    }\n\n    // NOTICE: Try to detect CORS issue\n    try {\n      await this.agentHealthcheck(apiEndpoint, false);\n    } catch (checkError) {\n      if (checkError instanceof FailedToFetchError) return new CorsAgentError(checkError as Error);\n      return checkError;\n    }\n\n    return null;\n  }\n}\n","import type ArrayProxy from '@ember/array/proxy';\nimport type AssigneeModel from 'client/data/models/assignee';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport Service, { service } from '@ember/service';\nimport Dataloader from 'dataloader';\n\nimport { EMAIL_REGEX } from 'client/utils/regex';\n\nexport default class AssigneeFetcherService extends Service {\n  @service tracker: TrackerService;\n  @service store: StoreService;\n  @service lianaSession: LianaSession;\n  private loader: Dataloader<string, AssigneeModel>;\n\n  // eslint-disable-next-line ember/classic-decorator-hooks\n  init() {\n    super.init();\n    this.loader = new Dataloader(\n      async (emails: readonly string[]) => {\n        return this.queryAssignees(emails);\n      },\n      { cache: false, maxBatchSize: 10 },\n    );\n  }\n\n  async searchAssignees(search?: string): Promise<AssigneeModel[]> {\n    const results = await this.store.query('assignee', { search, projectId: this.projectId });\n    return results.toArray();\n  }\n\n  async fetchAssignee(email: string | null): Promise<AssigneeModel> | null {\n    if (!(email && email.match(EMAIL_REGEX))) return null;\n    const assignee = this.store.peekRecord('assignee', email);\n    if (assignee) return assignee;\n    return this.loader.load(email);\n  }\n\n  private get projectId(): string | null {\n    return this.lianaSession.currentProject?.id;\n  }\n\n  private async queryAssignees(emails: readonly string[]) {\n    let results: AssigneeModel[] = [];\n    try {\n      const queryResults: ArrayProxy<AssigneeModel> = await this.store.query('assignee', {\n        projectId: this.projectId,\n        emails,\n      });\n      results = queryResults.toArray();\n    } catch (e) {\n      const error = new Error(\n        `assigneeFetcher should be mocked in tests. Original error: ${JSON.stringify(e)}`,\n      );\n      this.tracker.captureException(error);\n      throw error;\n    }\n\n    // Dataloader expects to have the results in the same order as the query keys\n    // and with matching values even if the query did not find anything\n    return emails.map((email) => {\n      const assignee = results.find((result) => result.id === email);\n      if (assignee) {\n        // assignee serializer auto set foundInDB = true\n        return assignee;\n      }\n      const storedAssignee = this.store.peekRecord('assignee', email);\n      // This happens when a second identical request comes in before the first one has a chance to get the response\n      if (storedAssignee) return storedAssignee;\n      return this.store.createRecord('assignee', {\n        id: email,\n        foundInDB: false,\n      });\n    });\n  }\n}\n","import type { ServerFetchRequestInit } from 'client/legacy/services/liana-server-fetch';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type TimezoneService from 'client/legacy/services/timezone';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type FetchSharedBusinessService from 'client/shared/services/fetch';\n\nimport Service, { service } from '@ember/service';\n\nimport { HttpError } from 'client/utils/errors';\n\nexport default class AuthenticatedServerFetchService extends Service {\n  @service('shared/fetch') private fetchService: FetchSharedBusinessService;\n  @service private lianaSession: LianaSessionService;\n  @service private tracker: TrackerService;\n  @service private timezone: TimezoneService;\n\n  public async fetch(\n    fullUrl: string,\n    options: ServerFetchRequestInit = {\n      omitTimezone: false,\n    },\n  ) {\n    await this.lianaSession.waitRefreshIfNecessary();\n\n    if (!fullUrl) {\n      throw new Error('Url must not be empty');\n    }\n\n    const fullUrlWithTimezone = this.addTimeZone(fullUrl, options.omitTimezone);\n\n    // Avoid `omitTimezone` to be unnecessarily passsed to query\n    delete options.omitTimezone;\n\n    const optionsWithHeaders: RequestInit = {\n      ...options,\n      headers: {\n        Accept: 'application/json',\n        'Content-Type': 'application/json',\n        ...(options?.headers ? options.headers : {}),\n        ...(this.lianaSession.authToken\n          ? { Authorization: `Bearer ${this.lianaSession.authToken}` }\n          : {}),\n      },\n    };\n    if (this.lianaSession.isLoggedIn && optionsWithHeaders.credentials === undefined) {\n      optionsWithHeaders.credentials = 'include';\n    }\n\n    try {\n      return await this.fetchService.fetch(fullUrlWithTimezone, optionsWithHeaders);\n    } catch (error) {\n      if (error instanceof HttpError && error.status === 401) {\n        this.tracker.captureMessage('Agent logout: 401 (authenticated-server-fetch)', 'warning', {\n          data: error.body,\n        });\n        this.lianaSession.invalidate();\n      }\n\n      throw error;\n    }\n  }\n\n  /** Adds the timezone of the current user as a query parameter to an URL */\n  private addTimeZone(url: string, omitTimezone: boolean) {\n    if (omitTimezone) return url;\n\n    const parsedUrl = new URL(url);\n    parsedUrl.searchParams.append(\n      'timezone',\n      this.timezone.getTimezone(this.lianaSession.currentEnvironment),\n    );\n    return parsedUrl.toString();\n  }\n}\n","import Service from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport applicationStorageKey from 'client/utils/application-storage-key';\n\nexport default class AuthenticationRedirectionService extends Service {\n  setCurrentUrlRedirectTarget() {\n    const { pathname, search, hash } = window.location;\n    this.setRedirectTarget(`${pathname}${search}${hash}`);\n  }\n\n  deleteRedirectTarget() {\n    window.sessionStorage.removeItem(applicationStorageKey.SESSION_REDIRECT_TARGET_KEY);\n  }\n\n  getRedirectTarget() {\n    return window.sessionStorage.getItem(applicationStorageKey.SESSION_REDIRECT_TARGET_KEY);\n  }\n\n  setRedirectTarget(redirectTarget: string) {\n    window.sessionStorage.setItem(\n      applicationStorageKey.SESSION_REDIRECT_TARGET_KEY,\n      redirectTarget,\n    );\n  }\n\n  useRedirectTarget() {\n    const redirectTarget = this.getRedirectTarget();\n    if (redirectTarget) {\n      this.deleteRedirectTarget();\n    }\n    return redirectTarget;\n  }\n\n  deleteRedirectAccess() {\n    return window.sessionStorage.removeItem(applicationStorageKey.SESSION_REDIRECT_ACCESS_KEY);\n  }\n\n  getRedirectAccess() {\n    return window.sessionStorage.getItem(applicationStorageKey.SESSION_REDIRECT_ACCESS_KEY);\n  }\n\n  setRedirectAccess(redirectAccess: string) {\n    window.sessionStorage.setItem(\n      applicationStorageKey.SESSION_REDIRECT_ACCESS_KEY,\n      redirectAccess,\n    );\n  }\n\n  useRedirectAccess() {\n    const redirectAccess = this.getRedirectAccess();\n    if (redirectAccess) {\n      this.deleteRedirectAccess();\n    }\n    return redirectAccess;\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type DocumentService from 'client/legacy/services/document';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\nimport type ToastrService from 'client/legacy/services/toastr';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nconst LAST_ACTIVITY_TIMESTAMP_KEY = 'lastActivityTimestamp';\n\nexport default class AutoLogoutService extends Service {\n  @service lianaSession: LianaSessionService;\n  @service toastr: ToastrService;\n  @service document: DocumentService;\n  @service localStorage: LocalStorageService;\n  @service session: ForestSessionService;\n  @service router: RouterService;\n\n  pollId: number = null;\n\n  inactiveDurationBeforeLogout: number;\n  resetTimer: () => void;\n\n  constructor(...args: object[]) {\n    super(...args);\n    this.resetTimer = this.resetTimerImplementation.bind(this);\n  }\n\n  /**\n   * To be called on didTransition\n   */\n  setupAutoLogout() {\n    this.setupTimeoutDuration();\n    this.setupTimerReset();\n    this.setupCheckForTimeout();\n  }\n\n  private setupTimeoutDuration() {\n    const { inactiveDurationBeforeLogout } = this.lianaSession.currentProject;\n    this.set('inactiveDurationBeforeLogout', inactiveDurationBeforeLogout);\n  }\n\n  private setupTimerReset() {\n    this.document.addEventListener('mousemove', this.resetTimer, false);\n    this.document.addEventListener('keyup', this.resetTimer, false);\n\n    this.resetTimer();\n  }\n\n  private setupCheckForTimeout() {\n    this.stopAutoLogout();\n\n    // eslint-disable-next-line @typescript-eslint/no-misused-promises\n    const pollId = window.setInterval(this.checkForTimeoutAndLogoutIfNeeded, 1_000);\n\n    this.set('pollId', pollId);\n  }\n\n  private stopAutoLogout() {\n    if (this.pollId) {\n      window.clearInterval(this.pollId);\n      this.pollId = undefined;\n    }\n  }\n\n  @action\n  private async checkForTimeoutAndLogoutIfNeeded() {\n    if (this.lianaSession.isAuthenticated()) {\n      const durationSinceLastActivity = this.getDurationSinceLastActivity();\n\n      if (\n        this.inactiveDurationBeforeLogout\n        && durationSinceLastActivity >= this.inactiveDurationBeforeLogout\n      ) {\n        await this.logout();\n      }\n    }\n  }\n\n  private async logout(): Promise<void> {\n    this.lianaSession.invalidateAll();\n    // It will save the current URL for re-login\n    await this.session.invalidate();\n  }\n\n  /**\n   * To be called when a route is deactivated\n   */\n  deactivate() {\n    this.stopAutoLogout();\n    this.document.removeEventListener('mousemove', this.resetTimer, false);\n    this.document.removeEventListener('keyup', this.resetTimer, false);\n\n    const durationSinceLastActivity = this.getDurationSinceLastActivity();\n\n    if (\n      this.inactiveDurationBeforeLogout\n      && durationSinceLastActivity >= this.inactiveDurationBeforeLogout\n    ) {\n      this.toastr.perform(\n        ToastrTypeEnum.Success,\n        \"You've been automatically logged out from your session. Please log in to continue.\",\n      );\n    }\n  }\n\n  private getLastActivityTimestamp() {\n    return this.localStorage.getItem(LAST_ACTIVITY_TIMESTAMP_KEY) || Date.now();\n  }\n\n  private getDurationSinceLastActivity() {\n    const lastActivityTimestamp = this.getLastActivityTimestamp();\n    const lastActivityTime = Number(lastActivityTimestamp);\n    const currentTime = Date.now();\n\n    // Return the result in minutes\n    return Math.floor((currentTime - lastActivityTime) / 60_000);\n  }\n\n  private resetTimerImplementation() {\n    this.localStorage.setItem(LAST_ACTIVITY_TIMESTAMP_KEY, Date.now().toString());\n  }\n}\n","import type ChartModel from 'client/data/models/chart';\nimport type SmartViewCodeMigratorBusinessService from 'client/legacy/services/business/smart-view-code-migrator';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type HtmlSanitizerService from 'client/legacy/services/html-sanitizer';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type SmartCodeRegisterService from 'client/legacy/services/smart-code-register';\nimport type FetchSharedBusinessService from 'client/shared/services/fetch';\n\nimport Service, { service } from '@ember/service';\nimport { hashSettled } from 'rsvp';\n\nimport ViewListModel from 'client/data/models/view-list';\nimport { markPropertiesAsNotDirty } from 'client/utils/model-utils';\n\nexport default class AwsCodeDownloaderService extends Service {\n  @service private currentUser: CurrentUserService;\n  @service('shared/fetch') private fetchService: FetchSharedBusinessService;\n  @service private smartCodeRegister: SmartCodeRegisterService;\n  @service private segmentTracker: SegmentTrackerService;\n  @service('business/smart-view-code-migrator')\n  private smartViewCodeMigrator: SmartViewCodeMigratorBusinessService;\n\n  @service private htmlSanitizer: HtmlSanitizerService;\n\n  private _cache: Record<string, Promise<void>> = {};\n\n  public async download(model: ChartModel | ViewListModel) {\n    if (this._cache[model.id] !== undefined) {\n      await this._cache[model.id];\n      return;\n    }\n\n    this._cache[model.id] = this.downloadWithoutCache(model);\n    await this._cache[model.id];\n\n    delete this._cache[model.id];\n  }\n\n  private async downloadWithoutCache(model: ChartModel | ViewListModel) {\n    this.trackSmartViewChartDownloaded(model);\n\n    // If there is no s3Versions this mean the model does not exist yet on the back.\n    if (!model.s3Versions) {\n      await this.loadCode(model);\n      return;\n    }\n\n    await model.reload(); // NOTICE: Refresh the S3 signature (Expires).\n\n    const promises: { [key in 'template' | 'component' | 'style']?: Promise<string> } = {\n      template: this.fetchFile(model.templateUrl),\n      component: null,\n      style: null,\n    };\n\n    if (model.allowJavascript) {\n      promises.component = this.fetchFile(model.componentUrl);\n    }\n\n    if ('styleUrl' in model && model.styleUrl) {\n      promises.style = this.fetchFile(model.styleUrl);\n    }\n\n    const { template, component, style } = await hashSettled(promises);\n\n    if (this.isDestroyed || this.isDestroying) {\n      return;\n    }\n\n    if (model.allowJavascript && component && component.state === 'fulfilled' && component.value) {\n      if (AwsCodeDownloaderService.isAWSError(component.value)) {\n        throw new Error('Error retrieving component');\n      }\n      model.componentCode = component.value;\n    }\n\n    if (template && template.state === 'fulfilled' && template.value) {\n      if (AwsCodeDownloaderService.isAWSError(template.value)) {\n        throw new Error('Error retrieving template');\n      }\n      model.templateCode = model.allowJavascript\n        ? template.value\n        : this.htmlSanitizer.sanitizeTemplate(template.value);\n    }\n\n    if (style && style?.state === 'fulfilled' && style?.value) {\n      if (AwsCodeDownloaderService.isAWSError(style.value)) {\n        throw new Error('Error retrieving style');\n      }\n      (model as ChartModel).styleCode = style.value;\n    }\n\n    AwsCodeDownloaderService.markCodeAsNotDirty(model);\n    this.migrate(model);\n\n    if (model.hasDirtyAttributes && this.currentUser.model && this.currentUser.can('uploadView')) {\n      await model.save();\n    }\n\n    await this.loadCode(model);\n  }\n\n  async loadCode(model: ViewListModel | ChartModel) {\n    if (model.componentCode && model.allowJavascript) {\n      await this.smartCodeRegister.registerComponent(model.registryName, model.componentCode);\n    }\n\n    // Register the template.\n    if (model.templateCode) {\n      this.smartCodeRegister.registerTemplateOrStyle(model.registryName, model);\n    }\n\n    // Register the style.\n    if ('styleCode' in model && model.styleCode) {\n      this.smartCodeRegister.registerStyle(model.registryName, model.styleCode);\n    }\n  }\n\n  trackSmartViewChartDownloaded(model: ChartModel | ViewListModel) {\n    if (model instanceof ViewListModel) {\n      this.segmentTracker.trackSmartViewDownloaded({\n        smartViewId: model.id,\n        smartViewName: model.name,\n        collectionName: model.collection?.name,\n      });\n    } else {\n      this.segmentTracker.trackSmartChartDownloaded({\n        smartChartId: model.id,\n        smartChartName: model.name,\n        collectionName: model.parentCollection?.name,\n        dashboardId: model.dashboard?.id,\n      });\n    }\n  }\n\n  migrate(model: ViewListModel | ChartModel) {\n    this.smartViewCodeMigrator.migrate(model);\n    this.smartViewCodeMigrator.removeAllDeprecations(model);\n  }\n\n  static markCodeAsNotDirty(model: ViewListModel | ChartModel) {\n    const attributesToIgnore = ['componentCode', 'templateCode', 'styleCode'];\n    markPropertiesAsNotDirty(model, attributesToIgnore);\n  }\n\n  async fetchFile(url: string) {\n    const response = await this.fetchService.fetch(url, undefined, false);\n    return response.text();\n  }\n\n  static isAWSError(body: string) {\n    return body.startsWith('<?xml');\n  }\n}\n","import type { SmartModel } from 'client/legacy/services/business/smart-view-code-migrator';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type SessionRefreshService from 'client/legacy/services/session-refresh';\nimport type StoreService from 'client/legacy/services/store';\nimport type S3UploaderSharedBusinessService from 'client/shared/services/s3-uploader';\n\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\nimport { all } from 'rsvp';\n\nimport ChartModel from 'client/data/models/chart';\nimport WorkspaceComponentOptionsSmartNestedDocument from 'client/data/models/workspace-component-options-smart';\n\ntype UploadResponse = {\n  endPoint: string;\n  filename: string;\n  version: string;\n};\n\nexport default class AwsCodeUploaderService extends Service {\n  @service session: ForestSessionService;\n  @service store: StoreService;\n  @service lianaSession: LianaSessionService;\n  @service sessionRefresh: SessionRefreshService;\n  @service('shared/s3-uploader') s3uploaderService: S3UploaderSharedBusinessService;\n\n  static _getUploaderParameters(model: SmartModel) {\n    if (model instanceof WorkspaceComponentOptionsSmartNestedDocument) return null;\n\n    if (model instanceof ChartModel) {\n      return {\n        chartId: model?.id,\n        viewEditId: model?.viewEdit?.id,\n        dashboardId: model?.dashboard?.id,\n      };\n    }\n    return {\n      collectionId: model?.collection?.id,\n      viewListName: model?.name,\n    };\n  }\n\n  async _upload(model: SmartModel, filename: string, code: string): Promise<UploadResponse> {\n    await this.sessionRefresh.waitSessionRefreshIfNecessary();\n\n    return new Promise((resolve, reject) => {\n      const codeOrEmpty = code || '';\n      const file = new window.File([codeOrEmpty], filename);\n      const isChartModel = model instanceof ChartModel;\n      const signingUrl = `${isChartModel ? 'smart-chart' : 'view-lists'}-uploading-requests`;\n      const uploader = this.s3uploaderService.s3UploaderFactory(signingUrl);\n\n      uploader.on('didError', reject);\n      uploader.on('didUpload.withHeaders', ({ data, headers: responseHeaders }) => {\n        const uploadedURL = decodeURIComponent(data.querySelector('Location').textContent);\n        const endPoint = uploadedURL.substring(0, uploadedURL.lastIndexOf('/'));\n\n        resolve({\n          endPoint,\n          filename,\n          version: responseHeaders.get('x-amz-version-id'),\n        });\n      });\n\n      uploader\n        .upload(file, AwsCodeUploaderService._getUploaderParameters(model))\n        .catch(() => Promise.resolve());\n    });\n  }\n\n  _uploadTemplate(model: SmartModel) {\n    return this._upload(model, 'template.hbs', model.templateCode);\n  }\n\n  _uploadComponent(model: SmartModel) {\n    return this._upload(model, 'component.js', model.componentCode);\n  }\n\n  _uploadStyle(model: ChartModel) {\n    return this._upload(model, 'style.css', model.styleCode);\n  }\n\n  perform(model: Exclude<SmartModel, WorkspaceComponentOptionsSmartNestedDocument>) {\n    const isChartModel = model instanceof ChartModel;\n\n    const promises: Promise<UploadResponse>[] = [];\n\n    const shouldUpdate = (attribute: string) => model.isNew || model.changedAttributes()[attribute];\n\n    if (shouldUpdate('templateCode')) {\n      promises.push(this._uploadTemplate(model));\n    }\n    if (model.allowJavascript && shouldUpdate('componentCode')) {\n      promises.push(this._uploadComponent(model));\n    }\n\n    if (isChartModel && shouldUpdate('styleCode')) {\n      promises.push(this._uploadStyle(model));\n    }\n\n    return all(promises).then((results) => {\n      if (!model.s3Versions) {\n        model.s3Versions = this.store.createFragment('s3-versions', {});\n      }\n\n      const templateVersion = results?.findBy('filename', 'template.hbs')?.version;\n      const componentVersion = results?.findBy('filename', 'component.js')?.version;\n      const updateVersionIfNecessary = (\n        attribute: 'component' | 'template' | 'style',\n        version: string,\n      ) => (version ? model.s3Versions.set(attribute, version) : null);\n\n      updateVersionIfNecessary('template', templateVersion);\n      updateVersionIfNecessary('component', componentVersion);\n\n      if (isChartModel) {\n        const styleVersion = results?.findBy('filename', 'style.css')?.version;\n        updateVersionIfNecessary('style', styleVersion);\n      }\n    });\n  }\n}\n","import type FieldModel from 'client/data/models/field';\nimport type { FetchableModel } from 'client/legacy/services/business/collection';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { RecordsContextConstructorProperties } from 'client/utils/liana-records/records-context';\nimport type NestedCollection from 'client/utils/nested/collection';\n\nimport { assert } from '@ember/debug';\nimport { guidFor } from '@ember/object/internals';\nimport Service, { service } from '@ember/service';\n\nimport CollectionModel from 'client/data/models/collection';\nimport CustomActionModel from 'client/data/models/custom-action';\nimport SegmentModel from 'client/data/models/segment';\n\nconst getTriggerSmartActionEventName = (interactionId: string) =>\n  `trigger-smart-action-${interactionId}`;\nconst getDeleteRecordsEventName = (interactionId: string) => `delete-records-${interactionId}`;\nconst getRefreshEventName = (interactionId: string) => `refresh-${interactionId}`;\nconst getExportEventName = (interactionId: string) => `export-${interactionId}`;\nconst getSmartActionTriggeredEventName = (interactionId: string) =>\n  `smart-action-triggered-${interactionId}`;\n\nfunction getInteractionIdForCollection(collection?: { name: string }) {\n  return `beta-collection-list-collection-${collection?.name}`;\n}\n\nfunction getRefreshAllInteractionIds(modelToFetch: FetchableModel) {\n  if (!modelToFetch) return [];\n\n  const interactionIds: string[] = [];\n\n  try {\n    if (modelToFetch instanceof CollectionModel) {\n      interactionIds.push(getInteractionIdForCollection(modelToFetch));\n    } else if (modelToFetch instanceof SegmentModel) {\n      interactionIds.push(\n        getInteractionIdForCollection(modelToFetch.collection),\n        `beta-collection-list-segment-${modelToFetch.collection.name}-${modelToFetch.name}`,\n      );\n    } else if (modelToFetch.nestedOrReferencedCollection) {\n      interactionIds.push(\n        getInteractionIdForCollection(modelToFetch.nestedOrReferencedCollection),\n        `beta-collection-list-field-${modelToFetch.nestedOrReferencedCollection.name}-${modelToFetch.fieldName}`,\n      );\n    }\n  } catch (error) {\n    // There is a weird error in the tests where the relationships are unloaded and so ember throws an error here\n    console.error('Catched Error', error);\n  }\n\n  return interactionIds;\n}\n\nfunction validateInteractionId(interactionId: string) {\n  assert(\n    'The first parameter \"interactionId\" must be set in order to communicate with the right component',\n    !!interactionId && typeof interactionId === 'string',\n  );\n}\n\nfunction validateAddListenerArguments(\n  interactionId: string,\n  callback: (data: unknown) => void | Promise<void>,\n) {\n  validateInteractionId(interactionId);\n  assert(\n    'The second parameter of addListener... should always be a callback',\n    callback && callback instanceof Function,\n  );\n}\n\ntype GetEventNameFromInteractionId = (interactionId: string) => string;\ntype EventBusCallback = (\n  eventName: string,\n  callback: (data: unknown) => void | Promise<void>,\n) => void;\n\nfunction addOrRemoveListener(\n  eventBusCallback: EventBusCallback,\n  getEventNameFromInteractionId: GetEventNameFromInteractionId,\n  interactionId: string,\n  callback: (data: unknown) => void | Promise<void>,\n) {\n  validateAddListenerArguments(interactionId, callback);\n\n  const eventName = getEventNameFromInteractionId(interactionId);\n\n  eventBusCallback(eventName, callback);\n}\n\nexport default class BetaCollectionListCommunicatorService extends Service {\n  @service eventBus: EventBusService;\n\n  private addListener(\n    getEventNameFromInteractionId: GetEventNameFromInteractionId,\n    interactionId: string,\n    callback: (data: unknown) => void | Promise<void>,\n  ) {\n    addOrRemoveListener(\n      (...args) => this.eventBus.on(...args),\n      getEventNameFromInteractionId,\n      interactionId,\n      callback,\n    );\n  }\n\n  private removeListener(\n    getEventNameFromInteractionId: GetEventNameFromInteractionId,\n    interactionId: string,\n    callback: (data: unknown) => void | Promise<void>,\n  ) {\n    addOrRemoveListener(\n      (...args) => this.eventBus.off(...args),\n      getEventNameFromInteractionId,\n      interactionId,\n      callback,\n    );\n  }\n\n  private triggerEvent(\n    getEventNameFromInteractionId: GetEventNameFromInteractionId,\n    interactionId: string,\n    ...args: unknown[]\n  ) {\n    validateInteractionId(interactionId);\n\n    const eventName = getEventNameFromInteractionId(interactionId);\n    this.eventBus.trigger(eventName, ...args);\n  }\n\n  generateInteractionId() {\n    return guidFor({});\n  }\n\n  addListenerOnTriggerSmartAction(\n    interactionId: string,\n    callback: (data: unknown) => void | Promise<void>,\n  ) {\n    this.addListener(getTriggerSmartActionEventName, interactionId, callback);\n  }\n\n  removeListenerOnTriggerSmartAction(\n    interactionId: string,\n    callback: (data: unknown) => void | Promise<void>,\n  ) {\n    this.removeListener(getTriggerSmartActionEventName, interactionId, callback);\n  }\n\n  triggerSmartAction(interactionId: string, smartAction: CustomActionModel) {\n    assert(\n      'The second parameter of triggerSmartAction must be a smart action',\n      smartAction && smartAction instanceof CustomActionModel,\n    );\n    this.triggerEvent(getTriggerSmartActionEventName, interactionId, smartAction);\n  }\n\n  addListenerOnDeleteRecords(\n    interactionId: string,\n    callback: (data: unknown) => void | Promise<void>,\n  ) {\n    this.addListener(getDeleteRecordsEventName, interactionId, callback);\n  }\n\n  removeListenerOnDeleteRecords(\n    interactionId: string,\n    callback: (data: unknown) => void | Promise<void>,\n  ) {\n    this.removeListener(getDeleteRecordsEventName, interactionId, callback);\n  }\n\n  deleteRecords(interactionId: string, records: ClientRecordModel[]) {\n    this.triggerEvent(getDeleteRecordsEventName, interactionId, records);\n  }\n\n  addListenerOnExport(interactionId: string, callback: (data: unknown) => void | Promise<void>) {\n    this.addListener(getExportEventName, interactionId, callback);\n  }\n\n  removeListenerOnExport(interactionId: string, callback: (data: unknown) => void | Promise<void>) {\n    this.removeListener(getExportEventName, interactionId, callback);\n  }\n\n  export(interactionId: string) {\n    this.triggerEvent(getExportEventName, interactionId);\n  }\n\n  addListenerOnSmartActionTriggered(\n    collection: CollectionModel | NestedCollection,\n    callback: (data: unknown) => void | Promise<void>,\n  ) {\n    this.addListener(getSmartActionTriggeredEventName, collection.name, callback);\n  }\n\n  removeListenerOnSmartActionTriggered(\n    collection: CollectionModel | NestedCollection,\n    callback: (data: unknown) => void | Promise<void>,\n  ) {\n    this.removeListener(getSmartActionTriggeredEventName, collection.name, callback);\n  }\n\n  smartActionTriggered(smartAction: CustomActionModel) {\n    this.triggerEvent(\n      getSmartActionTriggeredEventName,\n      smartAction.collection.get('name'),\n      smartAction,\n    );\n  }\n\n  addListenerOnRefresh(interactionId: string, callback: (data: unknown) => void | Promise<void>) {\n    this.addListener(getRefreshEventName, interactionId, callback);\n  }\n\n  removeListenerOnRefresh(\n    interactionId: string,\n    callback: (data: unknown) => void | Promise<void>,\n  ) {\n    this.removeListener(getRefreshEventName, interactionId, callback);\n  }\n\n  refresh(interactionId: string, parameters?: Partial<RecordsContextConstructorProperties>) {\n    this.triggerEvent(getRefreshEventName, interactionId, parameters);\n  }\n\n  addListenerOnRefreshAll(\n    modelToListen: CollectionModel | SegmentModel | FieldModel,\n    callback: (data: unknown) => void | Promise<void>,\n  ) {\n    const interactionIds = getRefreshAllInteractionIds(modelToListen);\n    interactionIds.forEach((interactionId) => this.addListenerOnRefresh(interactionId, callback));\n  }\n\n  removeListenerOnRefreshAll(\n    modelToListen: CollectionModel | SegmentModel | FieldModel,\n    callback: (data: unknown) => void | Promise<void>,\n  ) {\n    const interactionIds = getRefreshAllInteractionIds(modelToListen);\n    interactionIds.forEach((interactionId) =>\n      this.removeListenerOnRefresh(interactionId, callback),\n    );\n  }\n\n  refreshAll(modelToRefresh: FetchableModel) {\n    const interactionIds = getRefreshAllInteractionIds(modelToRefresh);\n    interactionIds.forEach((interactionId) => this.refresh(interactionId));\n    this.eventBus.trigger('chart.refresh');\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type BillingModel from 'client/data/models/billing';\nimport type PlanModel from 'client/data/models/plan';\nimport type ProjectModel from 'client/data/models/project';\nimport type { SubscriptionCommitmentsEnum } from 'client/data/models/subscription';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\nimport type StripeService from 'client/legacy/services/stripe-service';\nimport type { StripeContext } from 'client/legacy/services/stripe-service';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type { BillingError } from 'client/utils/errors/billing-errors';\n\nimport Service, { service } from '@ember/service';\n\nimport {\n  getFirstErrorDetail,\n  getFirstErrorMeta,\n  isEmberError,\n} from 'client/utils/ember-error-util';\nimport {\n  BillingValidationError,\n  UnableToConfirmPaymentIntentError,\n  UnableToCreateSubscriptionError,\n  UnableToSaveBillingError,\n} from 'client/utils/errors/billing-errors';\n\nexport default class BillingService extends Service {\n  @service store: StoreService;\n  @service segmentTracker: SegmentTrackerService;\n  @service stripeService: StripeService;\n  @service tracker: TrackerService;\n  @service serverFetch: ServerFetchService;\n  @service router: RouterService;\n  @service errorHandler: ErrorHandlerService;\n\n  public async updatePaymentDetails(updateOptions: {\n    billing: BillingModel;\n    stripeContext: StripeContext;\n  }) {\n    const { billing, stripeContext } = updateOptions;\n    billing.defaultPaymentMethodId = await this.confirmPaymentIntent({\n      billing,\n      editPaymentDetails: true,\n      stripeContext,\n      returnUrl: 'https://app.forestadmin.com',\n    });\n\n    await this.saveBilling(billing);\n  }\n\n  async upgradeToPlan(upgradeOptions: {\n    billing: BillingModel;\n    project: ProjectModel;\n    chosenPlan: PlanModel;\n    chosenCommitment: SubscriptionCommitmentsEnum;\n    editPaymentDetails: boolean;\n    stripeContext: StripeContext;\n    returnUrl: string;\n  }): Promise<void> {\n    const { billing, chosenPlan, project, chosenCommitment } = upgradeOptions;\n    if (!billing.validate()) {\n      throw new BillingValidationError('Some of your billing information are missing or invalid');\n    }\n    // NOTICE this method is called once here to validate the billing details,\n    // especially the VAT number (with stripe, on the backend\n    await this.saveBilling(billing);\n\n    const isUpgradingFromFreePlan = !billing.isPaying;\n\n    const newPaymentMethodId = await this.confirmPaymentIntent({\n      billing,\n      editPaymentDetails: upgradeOptions.editPaymentDetails,\n      stripeContext: upgradeOptions.stripeContext,\n      returnUrl: upgradeOptions.returnUrl,\n    });\n\n    if (newPaymentMethodId) {\n      await this.updatePaymentMethod(billing, newPaymentMethodId);\n    }\n\n    await this.createSubscription({\n      plan: chosenPlan,\n      commitment: chosenCommitment,\n      billing,\n    });\n\n    this.trackPlanUpgradeEvents({\n      chosenPlan,\n      project,\n      isUpgradingFromFreePlan,\n    });\n\n    await this.reloadAfterUpgrade(project);\n  }\n\n  private async updatePaymentMethod(billing: BillingModel, newPaymentMethodId: unknown) {\n    try {\n      await this.serverFetch.fetch(\n        `/api/billings/${billing.id}/default-payment-method`,\n        {\n          method: 'POST',\n          body: JSON.stringify({ data: newPaymentMethodId }),\n        },\n        true,\n      );\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Failed to update payment method');\n      throw error;\n    }\n  }\n\n  private trackPlanUpgradeEvents(parameters: {\n    chosenPlan: PlanModel;\n    project: ProjectModel;\n    isUpgradingFromFreePlan: boolean;\n  }) {\n    const { chosenPlan, project, isUpgradingFromFreePlan } = parameters;\n\n    this.segmentTracker.trackUpgradePlan({\n      type: chosenPlan.type,\n    });\n\n    if (isUpgradingFromFreePlan) {\n      this.segmentTracker.trackCreditCardFormCompleted({\n        projectName: project.name,\n        projectId: Number(project.id),\n        planName: chosenPlan.displayName,\n        planId: Number(chosenPlan.id),\n      });\n    }\n  }\n\n  private async reloadAfterUpgrade(project: ProjectModel): Promise<void> {\n    await project.reload();\n\n    await Promise.all([\n      (project.get('billing') as unknown as { reload: () => void }).reload(),\n      (project.get('billingDetailed') as unknown as { reload: () => void }).reload(),\n    ]);\n  }\n\n  private async saveBilling(billing: BillingModel): Promise<void> {\n    try {\n      await billing.save();\n    } catch (e) {\n      this.trackError(e as Error);\n      if (\n        getFirstErrorDetail(e as Error) === 'Validation failed'\n        && getFirstErrorMeta<{ message: string }>(e as Error).message.includes('address_')\n      ) {\n        throw new BillingValidationError(\n          'Missing required customer information, please fill in all required fields before updating your payment details.',\n        );\n      }\n\n      throw this.transformApiError(\n        e as Error,\n        'Something went wrong while saving your billing information',\n        UnableToSaveBillingError,\n      );\n    }\n  }\n\n  private async confirmPaymentIntent({\n    billing,\n    editPaymentDetails,\n    stripeContext,\n    returnUrl,\n  }: {\n    billing: BillingModel;\n    editPaymentDetails: boolean;\n    stripeContext: StripeContext;\n    returnUrl: string;\n  }): Promise<string | null> {\n    if (!editPaymentDetails) {\n      return null;\n    }\n\n    try {\n      return await this.stripeService.confirmPaymentSetupIntent(\n        billing.addressCountry,\n        stripeContext,\n        returnUrl,\n      );\n    } catch (e) {\n      const error = e as Error;\n      this.trackError(e as Error);\n\n      throw new UnableToConfirmPaymentIntentError(\n        `Something went wrong while confirming your payment: ${error.message}`,\n      );\n    }\n  }\n\n  private async createSubscription({\n    plan,\n    commitment,\n    billing,\n  }: {\n    plan: PlanModel;\n    commitment: SubscriptionCommitmentsEnum;\n    billing: BillingModel;\n  }) {\n    const newSubscription = this.store.createRecord('subscription', {\n      plan,\n      commitment,\n      billing,\n    });\n\n    try {\n      await newSubscription.save();\n    } catch (e) {\n      this.trackError(e as Error);\n      throw this.transformApiError(\n        e as Error,\n        'Something went wrong while creating your subscription',\n        UnableToCreateSubscriptionError,\n      );\n    }\n  }\n\n  private trackError(error: Error) {\n    console.error(error.message, error);\n    this.tracker.captureException(error);\n  }\n\n  private transformApiError(\n    error: Error,\n    defaultMessage: string,\n    ErrorConstructor: new (message: string) => BillingError,\n  ): BillingError {\n    if (isEmberError(error)) {\n      return new ErrorConstructor(getFirstErrorDetail(error));\n    }\n\n    return new ErrorConstructor(defaultMessage);\n  }\n}\n","import type ErrorHandlerService from 'client/legacy/services/error-handler';\n\nimport Service, { service } from '@ember/service';\nimport { waitForPromise } from '@ember/test-waiters';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\nimport { loadExternalJavascript } from 'client/utils/smart-view-utils';\n\nconst addressFinderErrorPrefix = 'Address finder error';\n\ntype PredictionsAndStatus = {\n  predictions: Array<google.maps.places.AutocompletePrediction>;\n  status: google.maps.places.PlacesServiceStatus;\n};\n\nexport default class AddressFinderBusinessService extends Service {\n  @service declare errorHandler: ErrorHandlerService;\n\n  private googleService: google.maps.places.AutocompleteService;\n  private initializationPromise: Promise<void>;\n\n  constructor(properties?: object) {\n    super(properties);\n\n    this.initializationPromise = this.initializeAPI();\n  }\n\n  private async initializeAPI() {\n    await loadExternalJavascript(\n      `https://maps.googleapis.com/maps/api/js?key=${config.APP.googlePlaces.apiToken}&libraries=places`,\n    );\n\n    this.googleService = new window.google.maps.places.AutocompleteService();\n  }\n\n  async findAddresses(search: string): Promise<string[]> {\n    await this.initializationPromise;\n\n    const response = await waitForPromise<PredictionsAndStatus, Promise<PredictionsAndStatus>>(\n      new Promise((resolve) => {\n        this.googleService.getPlacePredictions(\n          {\n            input: search,\n          },\n          (predictions, status) => resolve({ predictions, status }),\n        );\n      }),\n    );\n\n    switch (response.status) {\n      case window.google.maps.places.PlacesServiceStatus.ZERO_RESULTS:\n        return [];\n      case window.google.maps.places.PlacesServiceStatus.OK:\n        return response.predictions?.map((prediction) => {\n          return prediction.description;\n        });\n      case window.google.maps.places.PlacesServiceStatus.INVALID_REQUEST:\n        return this.handleError('Invalid request');\n      case window.google.maps.places.PlacesServiceStatus.OVER_QUERY_LIMIT:\n        return this.handleError('Over query limit');\n      case window.google.maps.places.PlacesServiceStatus.REQUEST_DENIED:\n        return this.handleError('Request denied');\n      case window.google.maps.places.PlacesServiceStatus.UNKNOWN_ERROR:\n        return this.handleError('Unknown error');\n      default:\n        return [];\n    }\n  }\n\n  private handleError(message: string): string[] {\n    const error = new Error(message);\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n    this.errorHandler.handleError(error, addressFinderErrorPrefix);\n    return [];\n  }\n}\n","import type Application from '@ember/application';\nimport type Model from '@ember-data/model';\nimport type { SortingOrderEnum } from 'client/data/models/collection';\nimport type ColumnModel from 'client/data/models/column';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type FilterModel from 'client/data/models/filter';\nimport type FilterFragment from 'client/data/models/fragment-filter';\nimport type ViewListModel from 'client/data/models/view-list';\n// TODO fixme\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type ActionCustomActionInternalBusinessService from 'client/features/action/services/internal-business/custom-action';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\nimport type AwsCodeDownloaderService from 'client/legacy/services/aws-code-downloader';\nimport type BetaCollectionListCommunicatorService from 'client/legacy/services/beta-collection-list-communicator';\nimport type CsvExporterService from 'client/legacy/services/csv-exporter';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type RecordsManagerService from 'client/legacy/services/records-manager';\nimport type RelatedRecordsManagerService from 'client/legacy/services/related-records-manager';\nimport type StoreService from 'client/legacy/services/store';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { RecordsContextConstructorProperties } from 'client/utils/liana-records/records-context';\nimport type NestedCollection from 'client/utils/nested/collection';\nimport type { CustomAsyncHasMany } from 'custom/utils';\n\nimport { getOwner } from '@ember/application';\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport { task } from 'ember-concurrency';\nimport { chunk, identity, pickBy } from 'lodash';\n\nimport { ERROR_ACCESS_COLLECTION_FORBIDDEN, ERROR_PAGE_TOO_FAR } from 'client/config/errors';\nimport CollectionModel from 'client/data/models/collection';\nimport FieldModel from 'client/data/models/field';\nimport SegmentModel from 'client/data/models/segment';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport RecordsContext from 'client/utils/liana-records/records-context';\nimport RelatedRecordsContext from 'client/utils/liana-records/related-records-context';\nimport NestedField from 'client/utils/nested/field';\nimport { OPERATOR_IS_IN } from 'client/utils/operators';\nimport SchemaUtils from 'client/utils/schema-utils';\n\nexport type FetchableModel = NestedField | FieldModel | CollectionModel | SegmentModel;\n\ntype FetchRecordsHooks = {\n  onSelectedRecordsChange?: () => void;\n  onRecordsFetched?: (options: { recordsCount: number }) => void;\n  onPageChange?: (currentPage: number) => void;\n};\n\nexport default class CollectionBusinessService extends Service {\n  @service declare awsCodeDownloader: AwsCodeDownloaderService;\n  @service declare betaCollectionListCommunicator: BetaCollectionListCommunicatorService;\n  @service declare csvExporter: CsvExporterService;\n  @service('feature/action/internal-business/custom-action')\n  declare customActionService: ActionCustomActionInternalBusinessService;\n\n  @service declare lianaFeatures: LianaFeaturesService;\n  @service declare lianaSession: LianaSessionService;\n  @service declare relatedRecordsManager: RelatedRecordsManagerService;\n  @service declare recordsManager: RecordsManagerService;\n  @service declare store: StoreService;\n  @service declare toastr: ToastrService;\n  @service('feature/client-record') private clientRecordFeature: ClientRecordFeatureService;\n\n  getRelationshipParameters(modelToFetch: FetchableModel, record?: Model) {\n    return this.isHasManyCollection(modelToFetch)\n      ? {\n          parentCollectionName: modelToFetch.collection.name,\n          parentCollectionId: record?.id,\n          parentAssociationName: modelToFetch.fieldName,\n        }\n      : {};\n  }\n\n  isHasManyCollection(modelToFetch: FetchableModel): modelToFetch is FieldModel | NestedField {\n    return modelToFetch instanceof FieldModel || modelToFetch instanceof NestedField;\n  }\n\n  getCollection(modelToFetch: FetchableModel): CollectionModel | NestedCollection {\n    if (this.isHasManyCollection(modelToFetch)) {\n      return modelToFetch.nestedOrReferencedCollection;\n    }\n    return modelToFetch instanceof SegmentModel ? modelToFetch?.collection : modelToFetch;\n  }\n\n  getSegment(modelToFetch: FetchableModel) {\n    return modelToFetch instanceof SegmentModel ? modelToFetch : null;\n  }\n\n  getField(modelToFetch: FetchableModel) {\n    return modelToFetch instanceof NestedField || modelToFetch instanceof FieldModel\n      ? modelToFetch\n      : null;\n  }\n\n  getDefaultSortingFieldName(modelToFetch: FetchableModel) {\n    const collection = this.getCollection(modelToFetch);\n    const segment = this.getSegment(modelToFetch);\n    if (\n      this.isHasManyCollection(modelToFetch)\n      && collection instanceof CollectionModel\n      && collection.defaultSortingField?.isBelongsTo\n      && !this.lianaFeatures.isFeatureCompatible(\n        FeaturesEnum.HasManySortingOnReferences,\n        this.lianaSession.currentEnvironment,\n      )\n    ) {\n      return null;\n    }\n\n    return (\n      segment?.defaultSortingField?.fieldName\n      || (collection instanceof CollectionModel && collection.defaultSortingField?.fieldName)\n      || null\n    );\n  }\n\n  getDefaultSortingFieldNameWithOrderPrefix(\n    defaultSortingField: FieldModel,\n    defaultSortingOrder: SortingOrderEnum,\n  ) {\n    const prefix = defaultSortingOrder === 'ascending' ? '' : '-';\n\n    if (defaultSortingField?.get('fieldName')) {\n      if (SchemaUtils.isBelongsTo(defaultSortingField)) {\n        return `${prefix}${defaultSortingField.get('fieldName')}.${defaultSortingField.get(\n          'referenceSortingField',\n        )}`;\n      }\n      return `${prefix}${defaultSortingField.get('fieldName')}`;\n    }\n    return null;\n  }\n\n  getDefaultSortingOrder(modelToFetch: FetchableModel) {\n    const collection = this.getCollection(modelToFetch);\n    const segment = this.getSegment(modelToFetch);\n    return (\n      segment?.defaultSortingFieldOrder\n      || (collection instanceof CollectionModel && collection.defaultSortingOrder)\n    );\n  }\n\n  getDefaultSorting(modelToFetch: FetchableModel) {\n    const fieldName = this.getDefaultSortingFieldName(modelToFetch);\n    return fieldName\n      ? [\n          {\n            fieldName,\n            order: this.getDefaultSortingOrder(modelToFetch),\n          },\n        ]\n      : null;\n  }\n\n  createRecordState({\n    modelToFetch,\n    view,\n    record,\n    componentName,\n    sortingParameters,\n    ...args\n  }: {\n    modelToFetch: FetchableModel;\n    view?: ViewListModel | NestedCollection['mainView'];\n    record?: ClientRecordModel;\n    componentName?: string;\n  } & Omit<RecordsContextConstructorProperties, 'collection'>) {\n    const collection = this.getCollection(modelToFetch);\n    const segment = this.getSegment(modelToFetch);\n    // In case of a classic Collection, the default view will be loaded later\n    const viewList: ViewListModel | NestedCollection['mainView'] =\n      view\n      || (collection instanceof CollectionModel ? null : (collection.mainView as ViewListModel));\n\n    const recordsContextParameters: RecordsContextConstructorProperties = {\n      project: this.lianaSession.currentProject,\n      collection,\n      segment,\n      viewList,\n      relationshipParameters: this.getRelationshipParameters(modelToFetch, record),\n      isGenericFiltersAvailable: this.lianaFeatures.isGenericFiltersAvailable,\n      shouldApplyScopes:\n        !this.isHasManyCollection(modelToFetch)\n        && !this.lianaFeatures.isApplicationWideScopesAvailable,\n      sortingParameters: sortingParameters?.length\n        ? sortingParameters\n        : this.getDefaultSorting(modelToFetch),\n      ...args,\n      listComponentName: args.listComponentName,\n    };\n    return this.isHasManyCollection(modelToFetch)\n      ? new RelatedRecordsContext({\n          ...recordsContextParameters,\n          field: modelToFetch,\n          parentRecord: record,\n        })\n      : new RecordsContext(recordsContextParameters);\n  }\n\n  async getRecordsInCollectionOrSegment(\n    model: CollectionModel | SegmentModel,\n    recordIds: string[],\n    fieldsToFetch: FieldModel[] = [],\n    additionalFilters: (FilterModel | FilterFragment)[] = [],\n    recordsPerPageLimit = 50,\n  ) {\n    const collection = model instanceof SegmentModel ? model.collection : model;\n    const { primaryField } = collection;\n\n    const columns = [primaryField, ...fieldsToFetch].uniq().map((field) => ({ field }));\n\n    // Split recordIds into chunks to avoid hitting the limit of recordsPerPageLimit\n    // which can lead to error for large number of records (ex: 100)\n    const chunksOfRecordIds = chunk(recordIds, recordsPerPageLimit);\n\n    const fetchPromises = chunksOfRecordIds.map(async (chunkIds) =>\n      this.fetchChunkOfRecords(\n        collection,\n        chunkIds,\n        columns,\n        primaryField,\n        additionalFilters,\n        model,\n      ),\n    );\n\n    const resultsArray = await Promise.all(fetchPromises);\n\n    return resultsArray.flat();\n  }\n\n  private async fetchChunkOfRecords(\n    collection: CollectionModel,\n    chunkIds: string[],\n    columns: Array<{ field: FieldModel }>,\n    primaryField: FieldModel,\n    additionalFilters: (FilterModel | FilterFragment)[],\n    model: CollectionModel | SegmentModel,\n  ) {\n    const filter = this.store.createRecord('filter', {\n      aggregator: 'and',\n      conditions: [\n        {\n          fieldName: primaryField.fieldName,\n          operator: OPERATOR_IS_IN.displayName,\n          value: chunkIds,\n        },\n      ],\n      filters: additionalFilters\n        .filter(Boolean)\n        .map((additionalFilter) => additionalFilter.cloneFragment()),\n      filteredCollection: collection,\n    });\n\n    if (!filter.queryFilter) {\n      console.debug('Filter is invalid:', filter);\n      throw new Error('Could not filter data correctly');\n    }\n\n    const recordsContextToFetch = this.createRecordState({\n      modelToFetch: model,\n      columns,\n      filter,\n      isKeepingSelectedRecordsOnRefresh: true,\n      recordsPerPage: chunkIds.length,\n    });\n\n    await this.recordsManager.fetchRecordsList.perform(recordsContextToFetch);\n\n    if (recordsContextToFetch.error) {\n      throw recordsContextToFetch.error as Error;\n    }\n\n    return recordsContextToFetch.records?.toArray();\n  }\n\n  async loadSmartView(recordsState: RecordsContext) {\n    if (!recordsState.viewList) {\n      recordsState.viewList = (await recordsState.collection.mainView) as ViewListModel;\n      if (!recordsState.viewList) return;\n    }\n\n    const { viewList } = recordsState;\n    const container = getOwner(this) as Application;\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call\n    const componentResolved = container.hasRegistration(`component:${viewList.registryName}`);\n\n    if (!componentResolved) {\n      await this.awsCodeDownloader.download(viewList as ViewListModel);\n    }\n\n    recordsState.listComponentName = viewList.registryName;\n  }\n\n  async deleteRecords(\n    recordsState: RecordsContext,\n    records?: ClientRecordModel[],\n    withSelect = true,\n    mustDeleteOnlyAssociations = false,\n  ) {\n    const isSuccess = await this.clientRecordFeature.bulkDeleteRecords(\n      recordsState,\n      records,\n      withSelect,\n      mustDeleteOnlyAssociations,\n    );\n\n    if (isSuccess) {\n      await this.refreshAll(\n        (recordsState instanceof RelatedRecordsContext && recordsState.field)\n          || recordsState.segment\n          || (recordsState.collection as CollectionModel),\n      );\n    }\n\n    return isSuccess;\n  }\n\n  selectAllRecords(recordsState: RecordsContext) {\n    recordsState.areAllRecordsSelected = true;\n    const label = recordsState.selectedRecordsCount === 1 ? 'record' : 'records';\n    this.toastr.perform(\n      ToastrTypeEnum.Warning,\n      `${recordsState.selectedRecordsCount} ${label} selected`,\n    );\n  }\n\n  unselectAllRecords(recordsState: RecordsContext) {\n    recordsState.areAllRecordsSelected = false;\n    recordsState.selectedRecords.clear();\n    recordsState.excludedRecordIds.clear();\n  }\n\n  sortByColumn(recordsState: RecordsContext, column: ColumnModel, order: SortingOrderEnum) {\n    column.field.order = order;\n    recordsState.setParameters({\n      sortingParameters: [{ order, fieldName: column.field.fieldName }],\n    });\n  }\n\n  async switchToDefaultListView(recordsState: RecordsContext) {\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n    recordsState.viewList = await (recordsState.collection as CollectionModel).tableView;\n    recordsState.listComponentName = recordsState.viewList.registryName;\n  }\n\n  async triggerSmartAction(\n    recordsState: RecordsContext,\n    smartAction: CustomActionModel,\n    records?: ClientRecordModel[],\n    values?: Record<string, unknown>,\n    skipRefresh = false,\n  ) {\n    // NOTICE: \"records\" argument is here to enable Smart Action triggering from Smart Views.\n    //          If not provided, this function will use selected records from records context\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n    const { success, isApproval } = await this.customActionService.triggerCustomAction(\n      smartAction,\n      records || recordsState.selectedRecords,\n      values,\n      true,\n      recordsState.getSelectedQuery(),\n    );\n\n    if (success && !isApproval && !skipRefresh) {\n      await this.refreshAll(recordsState.collection as CollectionModel);\n      this.betaCollectionListCommunicator.smartActionTriggered(smartAction);\n    }\n\n    return true;\n  }\n\n  async exportRecords(recordsState: RecordsContext) {\n    const path =\n      recordsState instanceof RelatedRecordsContext\n        ? `/forest/${recordsState.field.collection.name}/${\n            (recordsState.parentRecord as Model).id\n          }/relationships/${recordsState.field.fieldName}.csv`\n        : `/forest/${recordsState.collection.name}.csv`;\n\n    const params = pickBy(\n      {\n        ...recordsState.getQuery(),\n        filename: recordsState.collection.displayNamePluralLowerCase,\n        header: recordsState.columns.map((column) => column?.field?.displayName).join(','),\n      },\n      identity,\n    );\n\n    await this.csvExporter.exportData(\n      recordsState.collection,\n      path,\n      params,\n      recordsState.recordsCount,\n    );\n  }\n\n  async updateColumn(recordsState: RecordsContext, column: ColumnModel) {\n    const isVisibleNow =\n      column.changedAttributes().isVisible && column.changedAttributes().isVisible[1] === true;\n\n    const columnSaved = await column.save();\n\n    return isVisibleNow && columnSaved.isVisible;\n  }\n\n  onToggleRow(recordsState: RecordsContext, ...records: ClientRecordModel[]) {\n    records.forEach((record) => {\n      if (recordsState.isRecordSelected(record)) {\n        recordsState.excludeRecord(record);\n      } else {\n        recordsState.selectRecord(record);\n      }\n    });\n  }\n\n  public fetchRecords = task(\n    async (\n      recordsState: RecordsContext,\n      params: Partial<RecordsContextConstructorProperties> = {},\n      shouldCheckForTracking = true,\n      hooks: FetchRecordsHooks = {},\n    ) => {\n      if (!recordsState) return;\n      if (recordsState.error?.type === ERROR_ACCESS_COLLECTION_FORBIDDEN) return;\n\n      if (params && Object.keys(params).length) {\n        if (params.currentPage && params.currentPage !== recordsState.currentPage) {\n          hooks.onPageChange?.(params.currentPage);\n        }\n\n        recordsState.setParameters(params);\n      }\n\n      if (!recordsState.isKeepingSelectedRecordsOnRefresh) {\n        recordsState.selectedRecords.clear();\n        recordsState.excludedRecordIds.clear();\n        recordsState.areAllRecordsSelected = false;\n        hooks.onSelectedRecordsChange?.();\n      }\n\n      if (recordsState instanceof RelatedRecordsContext) {\n        await this.relatedRecordsManager.getRecords.perform(recordsState);\n      } else {\n        await this.recordsManager.getRecords.perform(\n          recordsState,\n          shouldCheckForTracking && !!recordsState.shouldDisablePerformanceTracking,\n        );\n      }\n\n      hooks.onRecordsFetched?.({ recordsCount: recordsState.recordsCount });\n\n      if (recordsState.isCurrentPageTooFar) {\n        recordsState.error = {\n          type: ERROR_PAGE_TOO_FAR,\n          options: {\n            currentPage: recordsState.currentPage,\n            onClick: () =>\n              this.fetchRecords.perform(\n                recordsState,\n                { currentPage: recordsState.currentPage - 1 },\n                shouldCheckForTracking,\n                hooks,\n              ),\n          },\n        };\n      }\n    },\n  );\n\n  async refreshAll(modelToFetch: FetchableModel) {\n    this.betaCollectionListCommunicator.refreshAll(modelToFetch);\n  }\n\n  @action\n  createFilter(\n    args: Partial<{\n      type: 'and' | 'or';\n      filteredCollection: CollectionModel[];\n    }>,\n  ) {\n    return this.store.createRecord('filter', args);\n  }\n\n  getColumnsOrdered(columns: CustomAsyncHasMany<ColumnModel>) {\n    return columns.sortBy('position');\n  }\n\n  getColumnsVisibleOrdered(columns: CustomAsyncHasMany<ColumnModel>) {\n    return columns.filterBy('isVisible').sortBy('position');\n  }\n}\n","import type ScopeFragment from 'client/data/models/fragment-scope';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaServerFetchService from 'client/legacy/services/liana-server-fetch';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\nimport type ToastrService from 'client/legacy/services/toastr';\n\nimport Service, { service } from '@ember/service';\n\nimport { ScopeTypeEnum } from 'client/data/models/fragment-scope';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\n\nexport default class ScopeBusinessService extends Service {\n  @service currentUser: CurrentUserService;\n  @service errorHandler: ErrorHandlerService;\n  @service lianaFeatures: LianaFeaturesService;\n  @service lianaServerFetch: LianaServerFetchService;\n  @service lianaSession: LianaSession;\n  @service store: StoreService;\n  @service toastr: ToastrService;\n\n  public async saveScope(scope: ScopeFragment) {\n    if (scope?.isFlushed) {\n      const condition = this.store.createFragment('fragment-condition', {});\n      const filter = this.store.createFragment('fragment-filter', {\n        conditions: [condition],\n        type: 'and',\n      });\n\n      scope.type = ScopeTypeEnum.Simple;\n      scope.filter = filter;\n\n      scope.collection.set('scope', null);\n    }\n\n    // Persist scope modification\n    try {\n      await scope.collection.save();\n    } catch (reason: unknown) {\n      this.errorHandler.handleRequestFailure(reason as Error, 'Scope update failed');\n      return;\n    }\n\n    // Notify agent about the invalidation.\n    const environment = this.lianaSession.currentEnvironment;\n    const isCompatible = this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.ApplicationWideScopes,\n      environment,\n    );\n    if (isCompatible) {\n      try {\n        await this.lianaServerFetch.fetch('/forest/scope-cache-invalidation', {\n          method: 'POST',\n          headers: { 'Content-Type': 'application/json; charset=utf-8' },\n          body: JSON.stringify({ renderingId: this.lianaSession.currentRenderingId }),\n        });\n      } catch (reason) {\n        this.errorHandler.handleRequestFailure(\n          reason as Error,\n          'Failed to invalidate cache in agent',\n        );\n        return;\n      }\n    }\n\n    this.toastr.perform(ToastrTypeEnum.Success, 'Scope successfully updated.');\n  }\n}\n","import type AwsCodeDownloaderService from 'client/legacy/services/aws-code-downloader';\nimport type { SmartModel } from 'client/legacy/services/business/smart-view-code-migrator';\nimport type SmartViewCodeMigratorBusinessService from 'client/legacy/services/business/smart-view-code-migrator';\nimport type LianaServerFetchService from 'client/legacy/services/liana-server-fetch';\nimport type SmartCodeRegisterService from 'client/legacy/services/smart-code-register';\nimport type FetchSharedBusinessService from 'client/shared/services/fetch';\n\nimport Service, { service } from '@ember/service';\n\nimport WorkspaceComponentOptionsSmartNestedDocument from 'client/data/models/workspace-component-options-smart';\n\nexport default class SmartCodeLoaderBusinessService extends Service {\n  @service private awsCodeDownloader: AwsCodeDownloaderService;\n  @service('shared/fetch') private fetchService: FetchSharedBusinessService;\n  @service private lianaServerFetch: LianaServerFetchService;\n  @service private smartCodeRegister: SmartCodeRegisterService;\n  @service('business/smart-view-code-migrator')\n  private smartViewCodeMigrator: SmartViewCodeMigratorBusinessService;\n\n  private _componentToRegistryNameCache: Record<string, { iteration: number; name: string }> = {};\n\n  private async asyncFetchCodeFromAgent(url: string) {\n    const response = url.startsWith('http')\n      ? await this.fetchService.fetch(url)\n      : await this.lianaServerFetch.fetch(url, { method: 'GET', omitTimezone: true });\n    const text = await response.text();\n    if (!text) {\n      throw new Error(`Could not fetch code from ${url}, empty file returned`);\n    }\n    return text;\n  }\n\n  private getRegistryName(model: SmartModel) {\n    const registry = this._componentToRegistryNameCache[model.registryName];\n    return `${registry.name}-${registry.iteration}`;\n  }\n\n  private updateRegistry(model: SmartModel) {\n    if (!this._componentToRegistryNameCache[model.registryName]) {\n      this._componentToRegistryNameCache[model.registryName] = {\n        iteration: 0,\n        name: model.registryName,\n      };\n    }\n    const registry = this._componentToRegistryNameCache[model.registryName];\n    registry.iteration += 1;\n\n    return `${registry.name}-${registry.iteration}`;\n  }\n\n  private async createComponentFromCode(model: WorkspaceComponentOptionsSmartNestedDocument) {\n    this.smartViewCodeMigrator.migrate(model);\n\n    const registryName = this.updateRegistry(model);\n\n    if (model.componentCode) {\n      await this.smartCodeRegister.registerComponent(registryName, model.componentCode);\n    }\n\n    if (model.templateCode) {\n      this.smartCodeRegister.registerTemplate(registryName, model.templateCode);\n    }\n\n    if (model.styleCode) {\n      this.smartCodeRegister.registerStyle(registryName, model.styleCode);\n    }\n\n    return registryName;\n  }\n\n  private async loadCodeFromAgent(\n    model: WorkspaceComponentOptionsSmartNestedDocument,\n    shouldForceReload: boolean,\n  ) {\n    const promises: Promise<void>[] = [];\n    let hasBeenUpdated = false;\n    if (model.componentUrl && (!model.componentCode || shouldForceReload)) {\n      promises.push(\n        this.asyncFetchCodeFromAgent(model.componentUrl).then((code) => {\n          model.componentCode = code;\n        }),\n      );\n      hasBeenUpdated = true;\n    }\n    if (model.templateUrl && (!model.templateCode || shouldForceReload)) {\n      promises.push(\n        this.asyncFetchCodeFromAgent(model.templateUrl).then((code) => {\n          model.templateCode = code;\n        }),\n      );\n      hasBeenUpdated = true;\n    }\n    if (model.styleUrl && (!model.styleCode || shouldForceReload)) {\n      promises.push(\n        this.asyncFetchCodeFromAgent(model.styleUrl).then((code) => {\n          model.styleCode = code;\n        }),\n      );\n      hasBeenUpdated = true;\n    }\n\n    await Promise.all(promises);\n\n    return hasBeenUpdated ? this.createComponentFromCode(model) : this.getRegistryName(model);\n  }\n\n  async loadCode(model: SmartModel, shouldForceReload = false): Promise<string> {\n    if (model instanceof WorkspaceComponentOptionsSmartNestedDocument) {\n      return this.loadCodeFromAgent(model, shouldForceReload);\n    }\n    if (!model.templateCode || shouldForceReload) {\n      await this.awsCodeDownloader.download(model);\n    }\n    return model.registryName;\n  }\n}\n","import type WorkspaceComponentOptionsSmartNestedDocument from 'client/data/models/workspace-component-options-smart';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type ToastrService from 'client/legacy/services/toastr';\n\nimport Service, { service } from '@ember/service';\nimport { dasherize } from '@ember/string';\nimport { parse, transform } from 'ember-template-recast';\n\nimport config from 'client/config/environment';\nimport ChartModel from 'client/data/models/chart';\nimport ViewListModel from 'client/data/models/view-list';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport {\n  migrateComponentImport,\n  migrateComputedImports,\n  migrateJqueryImports,\n  migrateRunImports,\n  migrateServiceImports,\n  removeImportIfNotUsed,\n} from 'client/utils/private-smart-view-utils';\nimport { replaceOldRouteNamesByNewRouteNames } from 'client/utils/route-utils';\nimport createArgumentLessHelperParenLessInvocationASTPlugin from 'client/utils/smart-view/ast/argument-less-helper-paren-less-invocation-plugin';\nimport createEmberComponentSendActionASTPlugin from 'client/utils/smart-view/ast/ember-component-send-action-plugin';\nimport createLinkToPositionalArgumentsASTPlugin from 'client/utils/smart-view/ast/link-to-positional-arguments-plugin';\nimport createThisPropertyFallbackASTPlugin from 'client/utils/smart-view/ast/this-property-fallback-plugin';\nimport createWithHelperASTPlugin from 'client/utils/smart-view/ast/with-helper-plugin';\n\nexport type SmartModel = ChartModel | ViewListModel | WorkspaceComponentOptionsSmartNestedDocument;\n\nexport type HandleDeprecationErrorFunction = (\n  deprecationName: string,\n  deprecationLink: string,\n  errorMessage: string,\n) => void;\n\nexport default class SmartViewCodeMigratorBusinessService extends Service {\n  @service declare currentUser: CurrentUserService;\n  @service declare segmentTracker: SegmentTrackerService;\n  @service declare toastr: ToastrService;\n\n  private static migrateOldEmberImports(model: SmartModel) {\n    migrateComputedImports(model);\n    migrateRunImports(model);\n    if (model.componentCode?.includes(\"import Ember from 'ember';\")) {\n      migrateComponentImport(model);\n      migrateServiceImports(model);\n      migrateJqueryImports(model);\n\n      removeImportIfNotUsed(model, \"import Ember from 'ember';\\n\", 'Ember');\n    }\n  }\n\n  private static migrateImplicitInjection(model: SmartModel) {\n    const serviceNames = ['toastr', 'router', 'currentUser'];\n\n    const isUsingService = (serviceName: string) =>\n      model.componentCode?.includes(`this.${serviceName}`)\n      || model.templateCode?.includes(`this.${serviceName}`)\n      || model.componentCode?.includes(`this.get('${serviceName}')`)\n      || model.componentCode?.includes(`this.get('${serviceName}.`);\n    const isInjectingService = (serviceName: string) =>\n      model.componentCode?.includes(`@service ${serviceName}`)\n      || model.componentCode?.includes(`@service() ${serviceName}`)\n      || model.componentCode?.includes(`@service('${serviceName}')`)\n      || model.componentCode?.includes(`${serviceName}: service()`);\n    serviceNames.forEach((serviceName) => {\n      if (isUsingService(serviceName) && !isInjectingService(serviceName)) {\n        // Add import if necessary\n        if (\n          model.componentCode\n          && !model.componentCode.includes(`import { service } from '@ember/service';`)\n        ) {\n          model.componentCode = `import { service } from '@ember/service';\\n${model.componentCode}`;\n        }\n\n        // Add service injection\n        if (model.componentCode?.includes('Component.extend({')) {\n          model.componentCode = model.componentCode.replace(\n            'Component.extend({',\n            `Component.extend({\\n  ${serviceName}: service(),`,\n          );\n        } else {\n          model.componentCode = model.componentCode.replace(\n            ' extends Component {',\n            ` extends Component {\\n  @service ${serviceName};`,\n          );\n        }\n      }\n    });\n  }\n\n  private static migrateReactViews(model: SmartModel) {\n    const oldImport = `import WithEmberSupport from 'ember-react-components';`;\n    const newImport = `import WithEmberSupport from '@rewardops-forks/ember-react-components';`;\n    const newNewImport = `import WithEmberSupport from 'client/utils/react';`;\n\n    if (model.isReact) {\n      if (model.componentCode && model.componentCode.includes(oldImport)) {\n        model.componentCode = model.componentCode.replace(oldImport, newImport);\n      }\n      if (model.componentCode && model.componentCode.includes(newImport)) {\n        model.componentCode = model.componentCode.replace(newImport, newNewImport);\n      }\n    }\n  }\n\n  private handleSendAction(model: SmartModel) {\n    if (model.isReact) return;\n\n    if (model.componentCode?.includes('.sendAction(')) {\n      this.handleDeprecationError(\n        'ember-component.send-action',\n        'https://deprecations.emberjs.com/v3.x/#toc_ember-component-send-action',\n        `The sendAction function is deprecated.`,\n        model,\n      );\n    }\n  }\n\n  private handleDeprecationError(\n    deprecationName: string,\n    deprecationLink: string,\n    errorMessage: string,\n    model: SmartModel,\n  ) {\n    // Only display the end of support when we want to make it public\n    const endOfSupportDate = '1st of December';\n    const supportMessage = config.APP.shouldShowDeprecationToastr\n      ? ` The support will be drop the ${endOfSupportDate}.`\n      : '';\n    const fullErrorMessage = `${errorMessage} Please check the following link ${deprecationLink} to resolve this issue.${supportMessage}`;\n    console.error(fullErrorMessage);\n\n    let type: 'smart-chart' | 'smart-view' | 'smart-component';\n    let containerId: string;\n    let modelId: string = model.id;\n    if (model instanceof ChartModel) {\n      type = 'smart-chart';\n      containerId = model.dashboard?.id || model.parentCollection?.id;\n    } else if (model instanceof ViewListModel) {\n      type = 'smart-view';\n      containerId = model.collection?.id;\n    } else {\n      type = 'smart-component';\n      containerId = model.workspaceComponent.workspace?.id;\n      modelId = model.workspaceComponent.id;\n    }\n    this.segmentTracker.trackDeprecationUsage(deprecationName, type, containerId, modelId);\n\n    // Do not display the toastr for users as they can't migrate the code\n    if (\n      this.currentUser.model\n      && this.currentUser.can('uploadView')\n      && config.APP.shouldShowDeprecationToastr\n    ) {\n      this.toastr.perform(ToastrTypeEnum.Error, fullErrorMessage);\n    }\n  }\n\n  private handleStringPrototypeExtensions(model: SmartModel) {\n    const stringPrototypeExtensions = [\n      'camelize',\n      'decamelize',\n      'dasherize',\n      'underscore',\n      'classify',\n      'capitalize',\n    ];\n    stringPrototypeExtensions.forEach((extension) => {\n      if (model.componentCode?.includes(`.${extension}()`)) {\n        this.handleDeprecationError(\n          'ember-string.prototype-extensions',\n          'https://deprecations.emberjs.com/v3.x/#toc_ember-string-prototype_extensions',\n          `Using .${extension}() on a string is deprecated.`,\n          model,\n        );\n      }\n    });\n  }\n\n  private handleNativeComponentImports(model: SmartModel) {\n    const nativeComponents = ['checkbox', 'text-field', 'text-area'];\n    nativeComponents.forEach((nativeComponent) => {\n      if (model.componentCode?.includes(`@ember/component/${nativeComponent}`)) {\n        this.handleDeprecationError(\n          'ember.built-in-components.import',\n          'https://deprecations.emberjs.com/v3.x/#toc_ember-built-in-components-import',\n          `Importing \"@ember/component/${nativeComponent}\" is deprecated.`,\n          model,\n        );\n      }\n    });\n    if (model.componentCode?.includes(`@ember/routing/link-component`)) {\n      this.handleDeprecationError(\n        'ember.built-in-components.import',\n        'https://deprecations.emberjs.com/v3.x/#toc_ember-built-in-components-import',\n        `Importing \"@ember/routing/link-component\" is deprecated.`,\n        model,\n      );\n    }\n  }\n\n  private handleDeprecationsWithPlugins(model: SmartModel) {\n    if (!model.templateCode || model.isReact) return;\n\n    try {\n      const handleDeprecationError: HandleDeprecationErrorFunction = (...args) =>\n        this.handleDeprecationError(...args, model);\n      const astPlugins = [\n        createThisPropertyFallbackASTPlugin(),\n        createArgumentLessHelperParenLessInvocationASTPlugin(),\n        createLinkToPositionalArgumentsASTPlugin(handleDeprecationError),\n        createEmberComponentSendActionASTPlugin(handleDeprecationError),\n        createWithHelperASTPlugin(handleDeprecationError),\n      ];\n\n      let ast = parse(model.templateCode);\n      astPlugins.forEach((plugin) => {\n        const result = transform(ast, (env) => plugin(env));\n        model.templateCode = result.code;\n        ast = result.ast;\n      });\n    } catch (error) {\n      console.error('Template seems invalid', error);\n    }\n  }\n\n  private handleFunctionPrototypeExtensions(model: SmartModel) {\n    const functionPrototypeExtensions = ['on', 'observes', 'property'];\n    functionPrototypeExtensions.forEach((extension) => {\n      if (model.componentCode?.includes(`}.${extension}(`)) {\n        this.handleDeprecationError(\n          `ember-function.prototype-extensions.${extension}`,\n          `https://deprecations.emberjs.com/v3.x/#toc_function-prototype-extensions-${extension}`,\n          `Using .${extension}() on a function is deprecated.`,\n          model,\n        );\n      }\n    });\n  }\n\n  public removeAllDeprecations(model: SmartModel) {\n    SmartViewCodeMigratorBusinessService.migrateOldEmberImports(model);\n    SmartViewCodeMigratorBusinessService.migrateImplicitInjection(model);\n    SmartViewCodeMigratorBusinessService.migrateReactViews(model);\n\n    this.handleSendAction(model);\n    this.handleStringPrototypeExtensions(model);\n    this.handleNativeComponentImports(model);\n    this.handleFunctionPrototypeExtensions(model);\n    this.handleDeprecationsWithPlugins(model);\n  }\n\n  private migrateComponents(model: SmartModel) {\n    const migrator = {\n      template: model.templateCode,\n      migrateAngleBracketComponent(oldName: string, newName: string) {\n        this.template = this.template.replaceAll(\n          new RegExp(`(</?)${oldName}`, 'g'),\n          `$1${newName}`,\n        );\n        return this;\n      },\n      migrateMustacheComponent(oldName: string, newName: string) {\n        this.template = this.template.replaceAll(\n          new RegExp(`({{[/#]?)${oldName}`, 'g'),\n          `$1${newName}`,\n        );\n        return this;\n      },\n      migrateComponent(oldName: string, newName: string) {\n        this.migrateAngleBracketComponent(oldName, newName);\n        const oldNameMustache = oldName\n          .split('::')\n          .map((path) => dasherize(path))\n          .join('/');\n        const newNameMustache = newName\n          .split('::')\n          .map((path) => dasherize(path))\n          .join('/');\n        this.migrateMustacheComponent(oldNameMustache, newNameMustache);\n        return this;\n      },\n      getCodeMigrated() {\n        return this.template;\n      },\n    };\n\n    model.templateCode =\n      model.templateCode\n      && migrator\n        .migrateComponent('BetaCheckbox', 'Form::BetaCheckbox')\n        .migrateComponent('BetaLinkTo', 'Navigation::BetaLinkTo')\n        .migrateComponent('BetaBadge', 'DataDisplay::BetaBadge')\n        .migrateComponent('TableView', 'DataDisplay::TableView')\n        .migrateComponent('Table::TableFooter', 'DataDisplay::Table::TableFooter')\n        .migrateComponent('BetaSwitchButton', 'Shared::BetaSwitchButton')\n        .migrateComponent('Shared::BetaSwitchButton', 'Shared::Form::Toggle')\n        .migrateComponent('BetaInput', 'Shared::BetaInput')\n        .migrateComponent('BetaInputDate', 'Shared::BetaInputDate')\n        .migrateComponent('BetaInputColor', 'Shared::BetaInputColor')\n        .migrateComponent('BetaInputList', 'Shared::BetaInputList')\n        .migrateComponent('DataDisplay::BetaBadge', 'Shared::DataDisplay::BetaBadge')\n        .migrateComponent('DataDisplay::BetaIcon', 'Shared::DataDisplay::BetaIcon')\n        .migrateComponent('Button::BetaButton', 'Shared::Button::BetaButton')\n        .migrateComponent('BetaTextarea', 'Shared::BetaTextarea')\n        .migrateComponent('BetaSelect', 'Shared::BetaSelect')\n        .migrateComponent('BetaSelectSearch', 'Shared::BetaSelectSearch')\n        .migrateComponent('BetaRadioButton', 'Shared::BetaRadioButton')\n        .migrateComponent('BetaLabel', 'Shared::BetaLabel')\n        .migrateComponent('Navigation::BetaLinkTo', 'Shared::Navigation::BetaLinkTo')\n        .migrateComponent('BetaTable', 'Shared::BetaTable')\n        .getCodeMigrated();\n  }\n\n  private migrateRouteNames(model: SmartModel) {\n    const componentCode = model.componentCode?.replace('SmartViewMixin.default', 'SmartViewMixin');\n    model.componentCode =\n      componentCode\n      && replaceOldRouteNamesByNewRouteNames(\n        componentCode,\n        'Smart View Component is using outdated routes, we did the change for you',\n      );\n    model.templateCode =\n      model.templateCode\n      && replaceOldRouteNamesByNewRouteNames(\n        model.templateCode,\n        'Smart View Template is using outdated routes, we did the change for you',\n      );\n  }\n\n  public migrate(model: SmartModel) {\n    this.migrateComponents(model);\n    this.migrateRouteNames(model);\n  }\n}\n","import type {\n  WorkspaceAutogeneratedTemplate,\n  WorkspaceCompomentAutogeneratedTemplate,\n  WorkspaceLinkedToComponentAutogenerated,\n  WorkspaceSectionComponentAutogenerated,\n  WorkspaceTabsComponentAutogenerated,\n} from 'client/configuration/workspace-autogenerated-template';\nimport type { FilterAttributes } from 'client/data/models/fragment-filter';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type { WorkspaceComponentAttributes } from 'client/data/models/workspace-component';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type { WorkspaceTabAttributes } from 'client/data/models/workspace-tab';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { assert } from '@ember/debug';\nimport Service, { service } from '@ember/service';\nimport { camelize } from '@ember/string';\n\nimport { WORKSPACE_AUTOGENERATED_TEMPLATES } from 'client/configuration/workspace-autogenerated-template';\nimport CollectionModel from 'client/data/models/collection';\nimport FieldModel from 'client/data/models/field';\nimport { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport { WorkspaceOnRowClickEnum } from 'client/data/models/workspace-component-options-collection';\nimport { WorkspaceComponentOptionsLinkTypeEnum } from 'client/data/models/workspace-component-options-link';\nimport { WorkspaceComponentVisibilityTypeEnum } from 'client/data/models/workspace-component-visibility';\nimport { ChartTypeEnum } from 'client/decorators/model-chart';\nimport WorkspaceAutogeneratedTemplatingHelper from 'client/utils/templating-helper/workspace-autogenerated-templating-helper';\nimport { uuidv4 } from 'client/utils/uuid-utils';\n\nexport interface GeneratedTemplate {\n  icon?: string;\n  name: string;\n  components: WorkspaceComponentAttributes[];\n}\n\nexport default class WorkspaceAutogeneratorBusinessService extends Service {\n  @service() declare store: StoreService;\n\n  private isUsableHasMany(field: FieldModel) {\n    if (!field.isHasMany || !field.referenceModel) return false;\n\n    const fieldsReferencingCollection = field.referenceModel.fields.filter(\n      (referenceField) =>\n        referenceField.isBelongsTo\n        && referenceField.reference.startsWith(`${field.collection.name}.id`),\n    );\n    return fieldsReferencingCollection.length === 1;\n  }\n\n  public meetsTemplateRequirement(\n    collection: CollectionModel,\n    template: Partial<WorkspaceAutogeneratedTemplate>,\n  ): boolean {\n    if (\n      !template.requirements\n      || (!template.requirements.isRequiringBelongsTo && !template.requirements.isRequiringHasMany)\n    ) {\n      return true;\n    }\n\n    let hasMeetRequiringBelongsTo = !template.requirements.isRequiringBelongsTo;\n    let hasMeetRequiringHasMany = !template.requirements.isRequiringHasMany;\n\n    for (\n      let fieldIndex = 0;\n      fieldIndex < collection.fields.length\n      && (!hasMeetRequiringBelongsTo || !hasMeetRequiringHasMany);\n      fieldIndex += 1\n    ) {\n      const field = collection.fields.objectAt(fieldIndex);\n      if (field.isBelongsTo && !field.isPolymorphic) {\n        hasMeetRequiringBelongsTo = true;\n      } else if (this.isUsableHasMany(field)) {\n        hasMeetRequiringHasMany = true;\n      }\n    }\n\n    return hasMeetRequiringBelongsTo && hasMeetRequiringHasMany;\n  }\n\n  private getTemplateScoreForCollection(\n    collection: CollectionModel,\n    template: Partial<WorkspaceAutogeneratedTemplate>,\n  ): number {\n    if (!this.meetsTemplateRequirement(collection, template)) return 0;\n\n    let score = 100;\n    const fieldScores = this.getFieldsCategoryWithScore(collection.fields.toArray());\n    fieldScores.forEach((fieldScore) => {\n      if (fieldScore.fields.length) {\n        score += fieldScore.score;\n      }\n    });\n\n    return score;\n  }\n\n  private getScoreForCollection(collection: CollectionModel): number {\n    return WORKSPACE_AUTOGENERATED_TEMPLATES.reduce(\n      (actualScore, template) =>\n        actualScore + this.getTemplateScoreForCollection(collection, template),\n      0,\n    );\n  }\n\n  public getBestDemoCollection(): CollectionModel | null {\n    const collections = this.store.peekAll('collection');\n    const collectionScores = collections.map((collection) =>\n      this.getScoreForCollection(collection),\n    );\n    const maxScore = Math.max(...collectionScores);\n\n    return maxScore === 0 ? null : collections.objectAt(collectionScores.indexOf(maxScore));\n  }\n\n  private getFieldsCategoryWithScore(fields: FieldModel[]) {\n    const fieldsConditions: {\n      name: string;\n      score: number;\n      fields: FieldModel[];\n      metsCondition: (fieldNameNormalized: string, type: string) => boolean;\n    }[] = [\n      {\n        name: 'enum',\n        fields: [],\n        score: 6,\n        metsCondition: (fieldNameNormalized: string, type: string) => type === 'Enum',\n      },\n      {\n        name: 'firstName',\n        fields: [],\n        score: 5,\n        metsCondition: (fieldNameNormalized: string, type: string) =>\n          type === 'String' && fieldNameNormalized.includes('firstname'),\n      },\n      {\n        name: 'lastName',\n        fields: [],\n        score: 5,\n        metsCondition: (fieldNameNormalized: string, type: string) =>\n          type === 'String' && fieldNameNormalized.includes('lastname'),\n      },\n      {\n        name: 'email',\n        fields: [],\n        score: 3,\n        metsCondition: (fieldNameNormalized: string, type: string) =>\n          type === 'String' && fieldNameNormalized.includes('email'),\n      },\n      {\n        name: 'creationDate',\n        fields: [],\n        score: 2,\n        metsCondition: (fieldNameNormalized: string, type: string) =>\n          type === 'Date' && fieldNameNormalized.includes('creat'),\n      },\n      {\n        name: 'string',\n        fields: [],\n        score: 1,\n        metsCondition: (fieldNameNormalized: string, type: string) => type === 'String',\n      },\n      {\n        name: 'number',\n        fields: [],\n        score: 1,\n        metsCondition: (fieldNameNormalized: string, type: string) => type === 'Number',\n      },\n      {\n        name: 'date',\n        fields: [],\n        score: 1,\n        metsCondition: (fieldNameNormalized: string, type: string) => type === 'Date',\n      },\n    ];\n\n    fields.forEach((field) => {\n      const normalizedFieldName = field.fieldName.toLowerCase().replaceAll(/[ _-]/g, '');\n      for (let conditionIndex = 0; conditionIndex < fieldsConditions.length; conditionIndex += 1) {\n        const fieldCondition = fieldsConditions[conditionIndex];\n        if (\n          fieldCondition.metsCondition(normalizedFieldName, field.typeStringified)\n          && !field.reference\n        ) {\n          fieldCondition.fields.push(field);\n          break;\n        }\n      }\n    });\n\n    return fieldsConditions.map((fieldCondition) => ({\n      name: fieldCondition.name,\n      score: fieldCondition.score,\n      fields: fieldCondition.fields,\n    }));\n  }\n\n  public getBestDemoFields(collection: CollectionModel) {\n    const fieldScores = this.getFieldsCategoryWithScore(collection.fields.toArray());\n    const bestDemoFields = fieldScores.reduce<FieldModel[]>((fields, fieldScore) => {\n      if (fieldScore.fields.length > 0) {\n        return [...fields, fieldScore.fields.shift()];\n      }\n      return fields;\n    }, []);\n\n    if (bestDemoFields.length < 6) {\n      const candidateFieldScores = fieldScores.filter(\n        (fieldScore) =>\n          ['enum', 'string', 'number'].includes(fieldScore.name) && fieldScore.fields.length > 0,\n      );\n\n      let index = 0;\n      while (index < candidateFieldScores.length && bestDemoFields.length < 6) {\n        const candidateFieldScore = candidateFieldScores[index];\n        while (bestDemoFields.length < 6 && candidateFieldScore.fields.length > 0) {\n          bestDemoFields.push(candidateFieldScore.fields.shift());\n        }\n        index += 1;\n      }\n\n      bestDemoFields.push(...collection.fields.filter((field) => field.isBelongsTo));\n    }\n\n    return bestDemoFields;\n  }\n\n  public getBestBelongsToField(collection: CollectionModel) {\n    const scores = collection.fields.map((field) => {\n      if (field.isBelongsTo && !field.isPolymorphic) {\n        return this.getTemplateScoreForCollection(field.referenceModel, {});\n      }\n      return 0;\n    });\n    const maxScore = Math.max(...scores);\n    return maxScore === 0 ? null : collection.fields.objectAt(scores.indexOf(maxScore));\n  }\n\n  public getBestHasManyField(collection: CollectionModel) {\n    const scores = collection.fields.map((field) => {\n      if (this.isUsableHasMany(field)) {\n        const fieldsReferencingCollection = field.referenceModel.fields.filter(\n          (referenceField) =>\n            referenceField.isBelongsTo && referenceField.reference.startsWith(collection.name),\n        );\n        if (fieldsReferencingCollection.length !== 1) return 0;\n        return this.getTemplateScoreForCollection(field.referenceModel, {});\n      }\n      return 0;\n    });\n    const maxScore = Math.max(...scores);\n    return maxScore === 0 ? null : collection.fields.objectAt(scores.indexOf(maxScore));\n  }\n\n  private getCollectionFromLinkedTo(collectionOrField: CollectionModel | FieldModel | null) {\n    if (!collectionOrField) return null;\n\n    assert(\n      'linkedTo on \"collection\" component should be either a HasMany field or a Collection',\n      collectionOrField instanceof CollectionModel || collectionOrField instanceof FieldModel,\n    );\n\n    if (!(collectionOrField instanceof CollectionModel)) {\n      return collectionOrField.referenceModel;\n    }\n    return collectionOrField;\n  }\n\n  private generateChart(\n    component: WorkspaceLinkedToComponentAutogenerated,\n    templatingHelper: WorkspaceAutogeneratedTemplatingHelper,\n    generatedComponentsName: string[],\n  ): WorkspaceComponentAttributes<WorkspaceComponentTypeEnum.Chart>[] {\n    const collectionOrField = templatingHelper.getVariableValue(component.linkedTo) as\n      | CollectionModel\n      | FieldModel;\n    const collection = this.getCollectionFromLinkedTo(collectionOrField);\n    if (!collection) return [];\n\n    const baseChart: WorkspaceComponentAttributes<WorkspaceComponentTypeEnum.Chart> = {\n      id: uuidv4(),\n      name: this.getComponentName('chart', generatedComponentsName),\n      type: WorkspaceComponentTypeEnum.Chart,\n      options: {\n        name: `Number of ${collection.displayNamePluralLowerCase}`,\n        type: ChartTypeEnum.Value,\n        filter: null,\n        description: null,\n        aggregator: 'Count',\n        aggregateFieldName: null,\n        sourceCollectionId: collection.id,\n      },\n      displaySettings: component.displaySettings,\n      visibility: component.visibility || { type: WorkspaceComponentVisibilityTypeEnum.Always },\n    };\n\n    const enumField = collection.fields.find((field) => field.enums && field.enums.length);\n    if (enumField) {\n      baseChart.options.type = ChartTypeEnum.Pie;\n      baseChart.options.groupByFieldName = enumField.fieldName;\n      baseChart.options.name = `Repartition of ${enumField.displayNameLowerCase}`;\n      return [baseChart];\n    }\n\n    const dateField = collection.fields.find((field) => field.isDate || field.isDateonly);\n    if (dateField) {\n      baseChart.options.type = ChartTypeEnum.Line;\n      baseChart.options.groupByFieldName = dateField.fieldName;\n      baseChart.options.timeRange = 'Month';\n      baseChart.options.name = `Repartition of ${dateField.displayNameLowerCase} over the month`;\n      return [baseChart];\n    }\n\n    return [baseChart];\n  }\n\n  private generateSearchOrCollectionComponent(\n    component: WorkspaceLinkedToComponentAutogenerated & {\n      type: `${WorkspaceComponentTypeEnum.Search | WorkspaceComponentTypeEnum.Collection}`;\n    },\n    templatingHelper: WorkspaceAutogeneratedTemplatingHelper,\n    collectionComponentId: string,\n    generatedComponentsName: string[],\n  ): WorkspaceComponentAttributes[] {\n    const collectionOrField = templatingHelper.getVariableValue(component.linkedTo) as\n      | CollectionModel\n      | FieldModel;\n    const collection = this.getCollectionFromLinkedTo(collectionOrField);\n    if (!collection) return [];\n\n    let filter: FilterAttributes | null = null;\n\n    if (!(collectionOrField instanceof CollectionModel)) {\n      const revertField = collection.fields.find(\n        (field) => field.isBelongsTo && field.referenceModel === collectionOrField.collection,\n      );\n      const { primaryKey } = collectionOrField.collection;\n\n      filter = {\n        type: 'and',\n        conditions: [\n          {\n            fieldName: revertField.fieldName,\n            subFieldName: primaryKey,\n            embeddedFieldName: null,\n            operator: 'is',\n            value: `{{${camelize(\n              collectionOrField.collection.pluralizedDisplayName,\n            )}1.selectedRecord.${primaryKey}}}`,\n            context: null,\n          },\n        ],\n      };\n    }\n\n    return [\n      {\n        id: filter ? uuidv4() : collectionComponentId,\n        type: component.type as\n          | WorkspaceComponentTypeEnum.Search\n          | WorkspaceComponentTypeEnum.Collection,\n        name: this.getComponentName(\n          camelize(collection.pluralizedDisplayName),\n          generatedComponentsName,\n        ),\n        options: {\n          filter,\n          onRowClick: WorkspaceOnRowClickEnum.SelectARecord,\n          collectionId: collection.id,\n        },\n        displaySettings: component.displaySettings,\n        visibility: component.visibility || { type: WorkspaceComponentVisibilityTypeEnum.Always },\n      },\n    ];\n  }\n\n  private getComponentName(componentName: string, generatedComponentsName: string[]): string {\n    const sameNameComponents = generatedComponentsName.filter((name) =>\n      name.startsWith(componentName),\n    );\n    let newComponentNumber: number = sameNameComponents.length + 1;\n    const nameAlreadyExist = () =>\n      sameNameComponents.some((name) => name === `${componentName}${newComponentNumber}`);\n    while (nameAlreadyExist()) {\n      newComponentNumber += 1;\n    }\n    const name = `${componentName}${newComponentNumber}`;\n    generatedComponentsName.push(name);\n    return name;\n  }\n\n  private generateComponents(\n    component: WorkspaceCompomentAutogeneratedTemplate,\n    templatingHelper: WorkspaceAutogeneratedTemplatingHelper,\n    collectionComponentId: string,\n    generatedComponentsName: string[],\n  ): WorkspaceComponentAttributes[] {\n    switch (component.type) {\n      case 'collection':\n      case 'search':\n        return this.generateSearchOrCollectionComponent(\n          component as WorkspaceLinkedToComponentAutogenerated & {\n            type: `${WorkspaceComponentTypeEnum.Search | WorkspaceComponentTypeEnum.Collection}`;\n          },\n          templatingHelper,\n          collectionComponentId,\n          generatedComponentsName,\n        );\n      case 'section': {\n        const subComponents = (component as WorkspaceSectionComponentAutogenerated).components\n          .map((subComponent) =>\n            this.generateComponents(\n              subComponent,\n              templatingHelper,\n              collectionComponentId,\n              generatedComponentsName,\n            ),\n          )\n          .flat();\n        const section: WorkspaceComponentAttributes<WorkspaceComponentTypeEnum.Section> = {\n          id: uuidv4(),\n          name: this.getComponentName('section', generatedComponentsName),\n          type: WorkspaceComponentTypeEnum.Section,\n          options: { componentIds: subComponents.map((subComponent) => subComponent?.id) },\n          displaySettings: component.displaySettings,\n          visibility: component.visibility || { type: WorkspaceComponentVisibilityTypeEnum.Always },\n        };\n        return [section, ...subComponents];\n      }\n      case 'link':\n        return [\n          {\n            id: uuidv4(),\n            name: this.getComponentName('link', generatedComponentsName),\n            type: WorkspaceComponentTypeEnum.Link,\n            options: {\n              ...('value' in component && {\n                displayedText: templatingHelper.injectVariablesIntoStringWithoutValidation(\n                  component.value,\n                ) as string,\n              }),\n              shouldOpenInNewTab: true,\n              sourceWorkspaceComponentId: collectionComponentId,\n              urlType: WorkspaceComponentOptionsLinkTypeEnum.RedirectToRecord,\n              ...('fontSize' in component ? { fontSize: component.fontSize } : {}),\n              ...('textAlign' in component ? { textAlign: component.textAlign } : {}),\n            },\n            displaySettings: component.displaySettings,\n            visibility: component.visibility || {\n              type: WorkspaceComponentVisibilityTypeEnum.Always,\n            },\n          },\n        ];\n      case 'text':\n        return [\n          {\n            id: uuidv4(),\n            name: this.getComponentName('text', generatedComponentsName),\n            type: WorkspaceComponentTypeEnum.Text,\n            options: {\n              ...('value' in component && {\n                displayedText: templatingHelper.injectVariablesIntoStringWithoutValidation(\n                  component.value,\n                ) as string,\n                ...('fontSize' in component ? { fontSize: component.fontSize } : {}),\n                ...('textAlign' in component ? { textAlign: component.textAlign } : {}),\n              }),\n            },\n            displaySettings: component.displaySettings,\n            visibility: component.visibility || {\n              type: WorkspaceComponentVisibilityTypeEnum.Always,\n            },\n          },\n        ];\n      case 'chart':\n        return this.generateChart(component, templatingHelper, generatedComponentsName);\n      case 'field': {\n        const field = templatingHelper.getVariableValue(component.linkedTo) as FieldModel;\n        if (!field) return [];\n\n        assert('linkedTo on Field component should be a FieldModel', field instanceof FieldModel);\n        const options = component.linkedTo.startsWith('collection.belongsToField.')\n          ? {\n              templatedFieldPath: `${templatingHelper.belongsToField.fieldName}.${field.fieldName}`,\n            }\n          : { fieldName: field.fieldName };\n\n        return [\n          {\n            id: uuidv4(),\n            name: this.getComponentName(\n              `field-${camelize(field.fieldName)}`,\n              generatedComponentsName,\n            ),\n            type: WorkspaceComponentTypeEnum.Field,\n            options: {\n              ...options,\n              sourceWorkspaceComponentId: collectionComponentId,\n              widgetDisplay: ('widgetDisplay' in component && component.widgetDisplay) || null,\n              displayedLabel: ('displayedLabel' in component && component.displayedLabel) || null,\n            },\n            displaySettings: component.displaySettings,\n            visibility: component.visibility || {\n              type: WorkspaceComponentVisibilityTypeEnum.Always,\n            },\n          },\n        ];\n      }\n      case 'tabs': {\n        const subComponents: WorkspaceComponentAttributes[] = [];\n        const tabs: WorkspaceTabAttributes[] = (\n          component as WorkspaceTabsComponentAutogenerated\n        ).tabs.map((tab, position) => {\n          const components = tab.components\n            .map((subComponent) =>\n              this.generateComponents(\n                subComponent,\n                templatingHelper,\n                collectionComponentId,\n                generatedComponentsName,\n              ),\n            )\n            .flat();\n\n          subComponents.push(...components);\n          return {\n            name: templatingHelper.injectVariablesIntoStringWithoutValidation(tab.name) as string,\n            position,\n            componentIds: components.map((c) => c.id),\n            tabId: uuidv4(),\n          };\n        });\n\n        const tabsComponent: WorkspaceComponentAttributes<WorkspaceComponentTypeEnum.Tabs> = {\n          id: uuidv4(),\n          name: this.getComponentName('tabs', generatedComponentsName),\n          type: WorkspaceComponentTypeEnum.Tabs,\n          options: {\n            tabs,\n          },\n          displaySettings: component.displaySettings,\n          visibility: component.visibility || { type: WorkspaceComponentVisibilityTypeEnum.Always },\n        };\n\n        return [tabsComponent, ...subComponents];\n      }\n      default:\n        return [];\n    }\n  }\n\n  private generateJSONFromTemplate(\n    templateConfiguration: WorkspaceAutogeneratedTemplate,\n    collection: CollectionModel,\n  ): GeneratedTemplate {\n    const collectionComponentId = uuidv4();\n    const fields = this.getBestDemoFields(collection);\n    const belongsToField = this.getBestBelongsToField(collection);\n    const belongsToFieldReferenceFields = belongsToField\n      ? this.getBestDemoFields(belongsToField.referenceModel)\n      : [];\n    const hasManyField = this.getBestHasManyField(collection);\n\n    const templatingHelper = new WorkspaceAutogeneratedTemplatingHelper({\n      collection,\n      fields,\n      belongsToField,\n      belongsToFieldReferenceFields,\n      hasManyField,\n    });\n\n    const generatedComponentsName: string[] = [];\n\n    return {\n      icon: null,\n      name: templatingHelper.injectVariablesIntoStringWithoutValidation(\n        templateConfiguration.template.workspaceName,\n      ) as string,\n      components: templateConfiguration.template.components\n        .map((component) =>\n          this.generateComponents(\n            component,\n            templatingHelper,\n            collectionComponentId,\n            generatedComponentsName,\n          ),\n        )\n        .flat()\n        .filter(Boolean),\n    };\n  }\n\n  public createWorkspaceFromTemplate(\n    template: WorkspaceAutogeneratedTemplate,\n    collection: CollectionModel,\n  ): WorkspaceModel {\n    const workspaceAttributes = this.generateJSONFromTemplate(template, collection);\n    const { components, ...baseWorkspaceInfo } = workspaceAttributes;\n\n    return this.store.createRecord('workspace', {\n      ...baseWorkspaceInfo,\n      rendering: collection.rendering,\n      components: components.map((component) =>\n        this.store.createRecord('workspace-component', component),\n      ),\n    });\n  }\n\n  public getEntryPointComponentFromWorkspace(\n    workspace: WorkspaceModel,\n  ): WorkspaceComponentModel<\n    WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n  > {\n    return workspace.components.find(\n      (component) =>\n        [WorkspaceComponentTypeEnum.Collection, WorkspaceComponentTypeEnum.Search].includes(\n          component.type,\n        )\n        && 'filter' in component.options\n        && !component.options.filter,\n    ) as WorkspaceComponentModel<\n      WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n    >;\n  }\n}\n","import type { Registry } from '@ember/service';\nimport type { ModelAttributes } from '@ember-data/custom';\nimport type { WorkspaceComponentConfigurationType } from 'client/config/workspace-component-configuration';\nimport type CollectionModel from 'client/data/models/collection';\nimport type { DisplaySettingsAttributes } from 'client/data/models/display-settings';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type WorkspaceComponentOptionsActionNestedDocument from 'client/data/models/workspace-component-options-action';\nimport type { WorkspaceContainer } from 'client/data/models/workspace-component-options-container';\nimport type AbstractWorkspaceComponentOptionsContainerNestedDocument from 'client/data/models/workspace-component-options-container';\nimport type WorkspaceComponentOptionsSectionNestedDocument from 'client/data/models/workspace-component-options-section';\nimport type WorkspaceTabFragment from 'client/data/models/workspace-tab';\nimport type { WorkspaceTabAttributes } from 'client/data/models/workspace-tab';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type BusinessCollectionService from 'client/legacy/services/business/collection';\nimport type { FetchableModel } from 'client/legacy/services/business/collection';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type RelatedRecordsManagerService from 'client/legacy/services/related-records-manager';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type StoreService from 'client/legacy/services/store';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { RecordsContextConstructorProperties } from 'client/utils/liana-records/records-context';\nimport type RecordsContext from 'client/utils/liana-records/records-context';\nimport type RelatedRecordsContext from 'client/utils/liana-records/related-records-context';\nimport type { CurrentRecordSource } from 'client/utils/workspace/helper';\n\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\nimport { isObject } from 'lodash';\nimport moment from 'moment';\n\nimport workspaceComponentConfiguration from 'client/config/workspace-component-configuration';\nimport {\n  WORKSPACE_GRID_CELL_HEIGHT,\n  WORKSPACE_GRID_CELL_WIDTH,\n} from 'client/config/workspace-configuration';\nimport { SortingOrderEnum } from 'client/data/models/collection';\nimport { FolderTypeEnum } from 'client/data/models/folder-child';\nimport WorkspaceComponentModel, {\n  WorkspaceComponentTypeEnum,\n} from 'client/data/models/workspace-component';\nimport WorkspaceComponentOptionsTabsNestedDocument from 'client/data/models/workspace-component-options-tabs';\nimport { WorkspaceComponentVisibilityTypeEnum } from 'client/data/models/workspace-component-visibility';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport NestedCollection from 'client/utils/nested/collection';\n\nconst BODY_PADDING = 8;\nconst BODY_MARGIN = 8;\n\nexport const WORKSPACE_TOTAL_COLUMN_OF_PADDING_AND_MARGIN = Math.ceil(\n  (BODY_PADDING * 2 + BODY_MARGIN * 2) / WORKSPACE_GRID_CELL_WIDTH,\n);\nexport const WORKSPACE_TOTAL_ROW_OF_PADDING_AND_MARGIN = Math.ceil(\n  (BODY_PADDING * 2 + BODY_MARGIN * 2) / WORKSPACE_GRID_CELL_HEIGHT,\n);\n\nexport default class WorkspaceManagerBusinessService extends Service {\n  @service private errorHandler: ErrorHandlerService;\n  @service private eventBus: EventBusService;\n  @service private lianaSession: LianaSessionService;\n  @service private router: Registry['router'];\n  @service private relatedRecordsManager: RelatedRecordsManagerService;\n  @service private segmentTracker: SegmentTrackerService;\n  @service private store: StoreService;\n  @service private toastr: ToastrService;\n  @service('business/collection') private businessCollectionService: BusinessCollectionService;\n  @service('feature/client-record') private clientRecordFeature: ClientRecordFeatureService;\n  @service('feature/workspace') private workspaceFeature: WorkspaceFeatureService;\n\n  @service('feature/folder') private folderFeature: FolderFeatureService;\n\n  private static collectionPrimaryContextPropertiesInQueryParameters = [\n    'search',\n    'currentPage',\n    'areAllRecordsSelected',\n    'sortingFieldName',\n    'sortingOrder',\n    'segment',\n    'isSearchExtended',\n    'excludedRecordIds',\n  ];\n\n  private isColliding(\n    component: WorkspaceComponentModel,\n    possibleCollidingComponent: WorkspaceComponentModel,\n  ) {\n    const { x, y, endsX, endsY } = component.displaySettings;\n    const {\n      x: collidingX,\n      endsX: collidingEndsX,\n      y: collidingY,\n      endsY: collidingEndsY,\n    } = possibleCollidingComponent.displaySettings;\n    return (\n      ((x >= collidingX && x < collidingEndsX) || (collidingX >= x && collidingX < endsX))\n      && ((y >= collidingY && y < collidingEndsY) || (collidingY >= y && collidingY < endsY))\n    );\n  }\n\n  private getCollidingComponent(\n    component: WorkspaceComponentModel,\n    components: WorkspaceComponentModel[],\n  ) {\n    return components.find((componentColliding) => this.isColliding(component, componentColliding));\n  }\n\n  private async createWorkspace(workspace: WorkspaceModel) {\n    let workspaceIsCreated = false;\n    try {\n      workspace.position = this.lianaSession.rendering.workspaces.length;\n      await workspace.save();\n      workspaceIsCreated = true;\n\n      this.toastr.perform(ToastrTypeEnum.Success, 'New workspace successfully created.');\n      this.segmentTracker.trackWorkspaceCreated(workspace.id);\n      await this.router.transitionTo('project.rendering.workspaces.view.builder', workspace.id);\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Workspace creation failed');\n    }\n    return workspaceIsCreated;\n  }\n\n  public async fixComponentsCollision(components: WorkspaceComponentModel[]) {\n    const existingComponents = [components.firstObject];\n    components.slice(1).forEach((component) => {\n      let componentColliding = this.getCollidingComponent(component, existingComponents);\n      while (componentColliding) {\n        component.displaySettings.y = componentColliding.displaySettings.endsY;\n        componentColliding = this.getCollidingComponent(component, existingComponents);\n      }\n      existingComponents.push(component);\n    });\n\n    const componentsToUpdate = components.filter(\n      (component) => !!component.changedAttributes()?.displaySettings && !component.isNew,\n    );\n    if (componentsToUpdate.length > 0) {\n      await this.store.layoutBatchUpdate('workspace-component', componentsToUpdate, [\n        'displaySettings',\n      ]);\n    }\n  }\n\n  getSelectedComponent(workspace: WorkspaceModel): WorkspaceComponentModel | null {\n    if (\n      this.router.currentRoute.name\n      === 'project.rendering.workspaces.view.builder.configure-component'\n    ) {\n      const workspaceComponentId = this.router.currentRoute.params.component_id;\n      return workspace.components.findBy('id', workspaceComponentId);\n    }\n    return null;\n  }\n\n  async setSelectedComponent(workspaceComponent: WorkspaceComponentModel) {\n    const builderRoute = this.router.currentRoute.name.includes(\n      'project.rendering.data.collection.list.view-edit.workspace',\n    )\n      ? 'project.rendering.data.collection.list.view-edit.workspace'\n      : 'project.rendering.workspaces.view.builder';\n    if (workspaceComponent) {\n      await this.router.replaceWith(`${builderRoute}.configure-component`, workspaceComponent.id);\n    } else {\n      await this.router.replaceWith(builderRoute);\n    }\n  }\n\n  getNumberOfComponentsFromType(components: WorkspaceComponentModel[], type: string): number {\n    const sameTypeComponents = components.filter((component) => component.type === type);\n    let newComponentNumber: number = sameTypeComponents.length + 1;\n    while (sameTypeComponents.find(({ name }) => name === `${type}${newComponentNumber}`)) {\n      newComponentNumber += 1;\n    }\n    return newComponentNumber;\n  }\n\n  getRequiredWidth(workspaceContainer: WorkspaceContainer) {\n    return Math.max(\n      0,\n      ...workspaceContainer.components.map(\n        ({ displaySettings }) => displaySettings.width + displaySettings.x,\n      ),\n    );\n  }\n\n  getRequiredHeight(workspaceContainer: WorkspaceContainer) {\n    return Math.max(\n      0,\n      ...workspaceContainer.components.map(\n        ({ displaySettings }) => displaySettings.height + displaySettings.y,\n      ),\n    );\n  }\n\n  getGridWrapperMinWidth(\n    workspaceContainer: WorkspaceContainer,\n    type: WorkspaceComponentConfigurationType,\n    extraSize = 0,\n  ) {\n    return Math.max(\n      workspaceComponentConfiguration[type].minWidth,\n      this.getRequiredWidth(workspaceContainer)\n        + WORKSPACE_TOTAL_COLUMN_OF_PADDING_AND_MARGIN\n        + extraSize,\n    );\n  }\n\n  getGridWrapperMinHeight(\n    workspaceContainer: WorkspaceContainer,\n    type: WorkspaceComponentConfigurationType,\n    extraSize = 0,\n  ) {\n    return Math.max(\n      workspaceComponentConfiguration[type].minHeight,\n      this.getRequiredHeight(workspaceContainer)\n        + WORKSPACE_TOTAL_ROW_OF_PADDING_AND_MARGIN\n        + extraSize,\n    );\n  }\n\n  getGridWidth(workspaceContainer: WorkspaceContainer, extraSize = 0) {\n    return (\n      Math.max(\n        workspaceContainer.workspaceComponent.displaySettings.width\n          - WORKSPACE_TOTAL_COLUMN_OF_PADDING_AND_MARGIN\n          - extraSize,\n        this.getRequiredWidth(workspaceContainer),\n      ) * WORKSPACE_GRID_CELL_WIDTH\n    );\n  }\n\n  getGridHeight(workspaceContainer: WorkspaceContainer, extraSize = 0) {\n    return (\n      Math.max(\n        workspaceContainer.workspaceComponent.displaySettings.height\n          - WORKSPACE_TOTAL_ROW_OF_PADDING_AND_MARGIN\n          - extraSize,\n        this.getRequiredHeight(workspaceContainer),\n      ) * WORKSPACE_GRID_CELL_HEIGHT\n    );\n  }\n\n  public async deleteComponent(component: WorkspaceComponentModel) {\n    try {\n      const componentsToDelete: WorkspaceComponentModel[] = [];\n      const componentsToSave: WorkspaceComponentModel[] = [];\n\n      const { container, workspace } = component;\n\n      if (component.isContainer && 'components' in component.options) {\n        componentsToDelete.push(component, ...component.options.components);\n      } else {\n        componentsToDelete.push(component);\n      }\n\n      componentsToDelete.forEach((componentToDelete) => {\n        const componentsUsingDirectlyItsVisibility = workspace.components?.filter(\n          (filteredComponent) =>\n            filteredComponent.visibility?.type\n              === WorkspaceComponentVisibilityTypeEnum.WhenAnotherComponentIsVisible\n            && filteredComponent.visibility.componentId === componentToDelete.id,\n        );\n\n        // If the visibility of some components is based on a component that will be deleted, then we set their visibility to \"always\".\n        if (componentsUsingDirectlyItsVisibility?.length > 0) {\n          componentsUsingDirectlyItsVisibility.forEach((componentUsingDirectlyItsVisibility) => {\n            // We don't update the component if it will be deleted\n            if (!componentsToDelete.includes(componentUsingDirectlyItsVisibility)) {\n              componentUsingDirectlyItsVisibility.visibility.type =\n                WorkspaceComponentVisibilityTypeEnum.Always;\n              componentsToSave.push(componentUsingDirectlyItsVisibility);\n            }\n          });\n        }\n\n        componentToDelete.deleteRecord();\n      });\n      componentsToSave.push(...componentsToDelete);\n\n      // This needs to be done after the component has been deleted otherwise the component will be displayed inside the Workspace instead of the tab during a second\n      if (container) {\n        container.componentIds.removeObject(component.id);\n        componentsToSave.push(container.workspaceComponent);\n      }\n\n      await this.store.layoutBatchUpdate('workspace-component', componentsToSave);\n\n      const projectId = this.lianaSession.currentProject.id;\n      const workspaceId = workspace.id;\n\n      componentsToDelete.forEach((componentToDelete) => {\n        this.segmentTracker.trackWorkspaceComponentDeleted(\n          projectId,\n          workspaceId,\n          componentToDelete.type,\n        );\n      });\n\n      this.toastr.perform(\n        ToastrTypeEnum.Success,\n        `The component \"${component.name}\" has been successfully deleted.`,\n      );\n      return true;\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(\n        error as Error,\n        `\"${component.name}\" component deletion failed`,\n      );\n      return false;\n    }\n  }\n\n  public deleteContainerWithoutSaving(container: WorkspaceTabFragment) {\n    container.components.forEach((component) => {\n      component.deleteRecord();\n    });\n\n    container.tabsOptions.tabs.removeObject(container);\n  }\n\n  private getDeletedComponents(component: WorkspaceComponentModel) {\n    if (component.options instanceof WorkspaceComponentOptionsTabsNestedDocument) {\n      const { options } = component;\n      const originalState: WorkspaceTabAttributes[] = (\n        options.changedAttributes().tabs as [WorkspaceTabAttributes[], WorkspaceTabAttributes[]]\n      )?.[0];\n      if (originalState && originalState.length !== options.tabs.length) {\n        const deletedTabs = originalState.filter((tab) =>\n          options.tabs.every((existingTab) => existingTab.tabId !== tab.tabId),\n        );\n        return deletedTabs\n          .map((tab) => tab.componentIds)\n          .flat()\n          .map((componentId) => this.store.peekRecord('workspace-component', componentId));\n      }\n    }\n    return [];\n  }\n\n  private clearCollectionColumnsStateIfNeeded(component: WorkspaceComponentModel) {\n    if (\n      component.isCollection\n      && component.options.hasDirtyAttributes\n      && component.options.changedAttributes().collectionId?.length > 0\n    ) {\n      (\n        component as WorkspaceComponentModel<WorkspaceComponentTypeEnum.Collection>\n      ).options.resizableColumnsState.clear();\n    }\n  }\n\n  public async saveComponent(component: WorkspaceComponentModel) {\n    try {\n      const deletedComponents = this.getDeletedComponents(component);\n      this.clearCollectionColumnsStateIfNeeded(component);\n\n      await this.store.layoutBatchUpdate(\n        'workspace-component',\n        [component, ...component.appliedOn, ...deletedComponents],\n        ['name', 'options', 'visibility'],\n      );\n\n      this.toastr.perform(ToastrTypeEnum.Success, `Component ${component.name} edited.`);\n      if (component.isChart) {\n        this.eventBus.trigger('chart.saved', component.options);\n      }\n      component.resetContext(false);\n\n      this.segmentTracker.trackWorkspaceComponentEdited(\n        this.lianaSession.currentProject.id,\n        component.workspace.id,\n        component.type,\n      );\n\n      deletedComponents.forEach((innerComponent) => {\n        this.segmentTracker.trackWorkspaceComponentDeleted(\n          this.lianaSession.currentProject.id,\n          component.workspace.id,\n          innerComponent.type,\n        );\n      });\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(\n        error as Error,\n        `Component ${component.name} edition failed`,\n      );\n    }\n  }\n\n  static getContainerFromComponent(\n    component: WorkspaceComponentModel | null,\n  ): WorkspaceContainer | null {\n    if (!component) return null;\n\n    const { isContainer, container, isTabs, options } = component;\n\n    if (isContainer) {\n      return isTabs\n        ? (options as WorkspaceComponentOptionsTabsNestedDocument).selectedTab\n        : (options as WorkspaceComponentOptionsSectionNestedDocument);\n    }\n\n    return container || null;\n  }\n\n  _cloneComponentExcludingChildren(\n    component: WorkspaceComponentModel,\n    currentWorkspace: WorkspaceModel,\n    shouldResetDisplaySettings?: boolean,\n  ) {\n    const { isContainer, isTabs } = component;\n    const componentToJSON = component.toJSON();\n    delete componentToJSON.id;\n\n    const newComponentNumber = this.getNumberOfComponentsFromType(\n      currentWorkspace.components,\n      component.type,\n    );\n\n    if (isContainer) {\n      if (isTabs) {\n        (\n          componentToJSON.options as ModelAttributes<WorkspaceComponentOptionsTabsNestedDocument>\n        ).tabs.forEach((tab) => {\n          tab.componentIds = [];\n          delete tab.tabId;\n        });\n      } else {\n        (componentToJSON.options as unknown as WorkspaceContainer).componentIds = [];\n      }\n    } else {\n      const displaySettings = componentToJSON.displaySettings as DisplaySettingsAttributes;\n      if (shouldResetDisplaySettings) {\n        displaySettings.x = 0;\n        displaySettings.y = 0;\n      }\n    }\n\n    return this.store.createRecord('workspace-component', {\n      ...componentToJSON,\n      name: `${component.type}${newComponentNumber}`,\n      workspace: currentWorkspace,\n    });\n  }\n\n  _duplicateContainerChildComponents(\n    containerComponentWithoutChildren: WorkspaceComponentModel,\n    containerComponentToDuplicate: WorkspaceComponentModel,\n    currentWorkspace: WorkspaceModel,\n  ) {\n    const newChildComponents: WorkspaceComponentModel[] = [];\n    const { isTabs } = containerComponentToDuplicate;\n\n    if (isTabs) {\n      (\n        containerComponentToDuplicate.options as WorkspaceComponentOptionsTabsNestedDocument\n      ).tabs.forEach((tab, tabIndex) => {\n        tab.components.forEach((innerComponent) => {\n          const newInnerComponent = this._cloneComponentExcludingChildren(\n            innerComponent,\n            currentWorkspace,\n            false,\n          );\n          (\n            containerComponentWithoutChildren.options as WorkspaceComponentOptionsTabsNestedDocument\n          ).tabs\n            .objectAt(tabIndex)\n            .componentIds.pushObject(newInnerComponent.id);\n          newChildComponents.push(newInnerComponent);\n        });\n      });\n    } else {\n      (\n        containerComponentToDuplicate.options as AbstractWorkspaceComponentOptionsContainerNestedDocument\n      ).components.forEach((innerComponent) => {\n        const newInnerComponent = this._cloneComponentExcludingChildren(\n          innerComponent,\n          currentWorkspace,\n          false,\n        );\n        (containerComponentWithoutChildren.options as WorkspaceContainer).componentIds.pushObject(\n          newInnerComponent.id,\n        );\n        newChildComponents.push(newInnerComponent);\n      });\n    }\n    return newChildComponents;\n  }\n\n  async duplicateComponent(\n    componentToDuplicate: WorkspaceComponentModel,\n    currentWorkspace: WorkspaceModel,\n  ) {\n    const selectedComponent = this.getSelectedComponent(currentWorkspace);\n\n    // We want to avoid weird behavior when duplicating whereas the selected component has not been saved yet\n    if (selectedComponent?.hasDirtyAttributes) {\n      this.toastr.perform(\n        ToastrTypeEnum.Info,\n        'Please save the current component before duplicating or pasting.',\n      );\n      return;\n    }\n\n    const { isContainer } = componentToDuplicate;\n\n    const containerDestination =\n      !isContainer && WorkspaceManagerBusinessService.getContainerFromComponent(selectedComponent);\n    const containerSource =\n      WorkspaceManagerBusinessService.getContainerFromComponent(componentToDuplicate);\n\n    const newComponent = this._cloneComponentExcludingChildren(\n      componentToDuplicate,\n      currentWorkspace,\n      (containerSource || containerDestination) && containerSource !== containerDestination,\n    );\n\n    const componentsToSave = [newComponent];\n\n    if (isContainer) {\n      const newChildComponents = this._duplicateContainerChildComponents(\n        newComponent,\n        componentToDuplicate,\n        currentWorkspace,\n      );\n      componentsToSave.push(...newChildComponents);\n    }\n\n    if (containerDestination) {\n      containerDestination.componentIds.pushObject(newComponent.id);\n      await this.fixComponentsCollision(containerDestination.components);\n      componentsToSave.push(containerDestination.workspaceComponent);\n    } else {\n      await this.fixComponentsCollision(currentWorkspace.rootComponents);\n    }\n\n    try {\n      await this.store.layoutBatchUpdate('workspace-component', componentsToSave);\n      await this.setSelectedComponent(newComponent);\n\n      const newComponentElement = window.document.querySelector(\n        `[data-component-name=\"${\n          containerDestination ? containerDestination.workspaceComponent.name : newComponent.name\n        }\"]`,\n      );\n      newComponentElement?.scrollIntoView({ behavior: 'smooth', block: 'nearest' });\n\n      this.toastr.perform(\n        ToastrTypeEnum.Success,\n        `Component ${componentToDuplicate.name} successfully duplicated!`,\n      );\n\n      this.segmentTracker.trackWorkspaceComponentDuplicated(\n        this.lianaSession.currentProject.id,\n        currentWorkspace.id,\n        newComponent.id,\n      );\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Could not duplicate the component');\n    }\n  }\n\n  public renameComponent(component: WorkspaceComponentModel, newComponentName: string) {\n    const componentsToBeUpdated = component.appliedOn.filter((workspaceComponent) =>\n      workspaceComponent.templatingComponentNames.includes(component.name),\n    );\n    componentsToBeUpdated.forEach((workspaceComponent) =>\n      workspaceComponent.renameDependency(component.name, newComponentName),\n    );\n\n    component.name = newComponentName;\n  }\n\n  public async createEmptyWorkspace() {\n    return this.workspaceFeature.createWorkspace('My Workspace', null);\n  }\n\n  public async createAutogeneratedWorkspace(workspace: WorkspaceModel) {\n    const workspaceIsCreated = await this.createWorkspace(workspace);\n    if (workspaceIsCreated) {\n      this.segmentTracker.trackAutogeneratedWorkspacesAdded();\n      await this.folderFeature.addEntityToFolder(workspace.id, FolderTypeEnum.Workspace);\n    }\n  }\n\n  private findComponentIdByNameInList(\n    oldComponents: WorkspaceComponentModel[],\n    newComponents: WorkspaceComponentModel[],\n    componentId: string,\n  ) {\n    const { name } = oldComponents.find((c) => c.id === componentId);\n    return newComponents.find((c) => c.name === name).id;\n  }\n\n  private getContainerComponentIdsFromDuplicatedComponents(\n    oldComponents: WorkspaceComponentModel[],\n    newComponents: WorkspaceComponentModel[],\n    containerComponentIds: string[],\n  ) {\n    return containerComponentIds.map((componentId) => {\n      return this.findComponentIdByNameInList(oldComponents, newComponents, componentId);\n    });\n  }\n\n  private handleDuplicateContainerComponent(\n    oldComponents: WorkspaceComponentModel[],\n    newComponents: WorkspaceComponentModel[],\n    containerComponent: WorkspaceComponentModel,\n  ) {\n    if (containerComponent.isSection) {\n      const section =\n        containerComponent as WorkspaceComponentModel<WorkspaceComponentTypeEnum.Section>;\n      section.options.componentIds = this.getContainerComponentIdsFromDuplicatedComponents(\n        oldComponents,\n        newComponents,\n        section.options.componentIds,\n      );\n      return section.options;\n    }\n    const tabs = containerComponent as WorkspaceComponentModel<WorkspaceComponentTypeEnum.Tabs>;\n    tabs.options.tabs.forEach((tab) => {\n      tab.componentIds = this.getContainerComponentIdsFromDuplicatedComponents(\n        oldComponents,\n        newComponents,\n        tab.componentIds,\n      );\n    });\n    return tabs.options;\n  }\n\n  private duplicateAllComponents(oldWorkspace: WorkspaceModel, newWorkspace: WorkspaceModel) {\n    const oldComponents = oldWorkspace.components;\n    const oldComponentIds = oldComponents.map((component) => component.id);\n    const oldComponentIdToNewComponentMap: Record<string, WorkspaceComponentModel> = {};\n    const duplicatedComponents = oldComponents.map((component) => {\n      // Omit id to avoid duplicated ids between two workspace-components\n      const { id, ...newComponent } = component.toJSON();\n      const newComponentRecord = this.store.createRecord('workspace-component', {\n        ...newComponent,\n        workspace: newWorkspace,\n      });\n      oldComponentIdToNewComponentMap[id] = newComponentRecord;\n      return newComponentRecord;\n    });\n    duplicatedComponents.forEach((componentToReplace, index) => {\n      const { options } = componentToReplace;\n      if (componentToReplace.isContainer) {\n        componentToReplace.options = this.handleDuplicateContainerComponent(\n          oldComponents,\n          duplicatedComponents,\n          componentToReplace,\n        );\n      }\n      if (\n        componentToReplace.visibility?.type\n        === WorkspaceComponentVisibilityTypeEnum.WhenAnotherComponentIsVisible\n      ) {\n        const oldComponentId = componentToReplace.visibility.componentId;\n        componentToReplace.visibility.componentId =\n          oldComponentIdToNewComponentMap[oldComponentId].id;\n      }\n      // In this loop we are replacing the references to the old component ids with the new ones\n      Object.keys(options.toJSON()).forEach((key) => {\n        // Do not replace deep properties or id\n        if (key === 'id' || typeof options[key] === 'object') return;\n\n        if (oldComponentIds.find((id) => id === options[key])) {\n          duplicatedComponents[index].options[key] = this.findComponentIdByNameInList(\n            oldComponents,\n            duplicatedComponents,\n            options[key] as string,\n          );\n        }\n      });\n    });\n    return duplicatedComponents;\n  }\n\n  public async duplicateWorkspace(workspace: WorkspaceModel) {\n    try {\n      const newWorkspace = await this.workspaceFeature.createWorkspace(\n        `${workspace.name} (copy)`,\n        workspace.icon,\n      );\n      const duplicatedComponents = this.duplicateAllComponents(workspace, newWorkspace);\n      await this.store.layoutBatchUpdate('workspace-component', duplicatedComponents);\n      this.toastr.perform(ToastrTypeEnum.Success, 'Workspace successfully duplicated.');\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(error as Error, 'Could not duplicate the workspace.');\n    }\n  }\n\n  public async buildRecordsContextForWorkspaceComponentCollection(\n    workspaceComponent: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Collection>,\n    extraArguments: Partial<RecordsContextConstructorProperties> & {\n      sortingOrder?: SortingOrderEnum;\n      sortingFieldName?: string;\n    } & Partial<{ modelToFetch: FetchableModel }> = {},\n  ): Promise<RecordsContext> {\n    const {\n      collection,\n      filteredCollection,\n      segment,\n      relatedDataField,\n      filter,\n      columns,\n      sortingFieldName,\n      sortingOrder,\n      recordsPerPage,\n      view,\n      recordToDisplay,\n    } = workspaceComponent.options;\n\n    const modelToFetch = extraArguments.modelToFetch || relatedDataField || segment || collection;\n    const sortingParameters =\n      extraArguments.sortingFieldName || sortingFieldName\n        ? [\n            {\n              fieldName: extraArguments.sortingFieldName || sortingFieldName,\n              order: extraArguments.sortingOrder || sortingOrder,\n            },\n          ]\n        : null;\n\n    const recordsState = this.businessCollectionService.createRecordState({\n      modelToFetch,\n      nonEditableFilter: filter,\n      isKeepingSelectedRecordsOnRefresh: true,\n      columns,\n      ...(sortingParameters ? { sortingParameters } : {}),\n      recordsPerPage,\n      view: view || (await filteredCollection?.mainView),\n      record: recordToDisplay,\n      ...extraArguments,\n    });\n    if (filteredCollection instanceof NestedCollection) {\n      await this.relatedRecordsManager.getRecords.perform(recordsState as RelatedRecordsContext);\n    }\n    return recordsState;\n  }\n\n  private async buildSelectedRecordsContextFromQueryParameters(\n    workspaceComponent: WorkspaceComponentModel<\n      WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n    >,\n    queryParameters: Record<string, unknown> & { selectedRecords?: string[] },\n  ): Promise<ClientRecordModel[]> {\n    if (queryParameters.selectedRecords) {\n      const { filteredCollection: collection } = workspaceComponent.options;\n      const records = workspaceComponent.options.recordsContext?.records;\n      const selectedRecords =\n        queryParameters.selectedRecords.length === 1\n          ? await Promise.all(\n              queryParameters.selectedRecords.map((selectedRecordId) =>\n                this.clientRecordFeature.fetchRecordAndRequiredBelongsTo(\n                  workspaceComponent.belongsToFieldsTreeToFetch,\n                  collection,\n                  { id: selectedRecordId },\n                  records,\n                ),\n              ),\n            )\n          : await Promise.all(\n              queryParameters.selectedRecords.map((selectedRecordId) =>\n                this.clientRecordFeature.fetchRecord(collection, { id: selectedRecordId }, records),\n              ),\n            );\n      workspaceComponent.initializeSelectedRecords(selectedRecords);\n    }\n    return workspaceComponent.selectedRecords;\n  }\n\n  private buildSelectedValueContextFromQueryParameters(\n    workspaceComponent: WorkspaceComponentModel<\n      WorkspaceComponentTypeEnum.Dropdown | WorkspaceComponentTypeEnum.DatePicker\n    >,\n    queryParameters: Record<string, unknown> & { selectedRecords?: string[] },\n  ) {\n    if ('selectedValue' in queryParameters) {\n      workspaceComponent.initializeSelectedValue(queryParameters.selectedValue);\n    }\n  }\n\n  private async buildCollectionContextFromQueryParameters(\n    workspaceCollectionComponent: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Collection>,\n    queryParameters: Record<string, unknown> & { selectedRecords?: string[] } = {},\n  ) {\n    if (!workspaceCollectionComponent.options.filteredCollection) {\n      return null;\n    }\n    const argsToRecordsContext: Record<string, unknown> = {};\n    WorkspaceManagerBusinessService.collectionPrimaryContextPropertiesInQueryParameters.forEach(\n      (param) => {\n        if (param in queryParameters) {\n          argsToRecordsContext[param] = queryParameters[param];\n        }\n      },\n    );\n\n    const segment =\n      'segment' in queryParameters\n      && workspaceCollectionComponent.options.collection.segments.findBy(\n        'id',\n        queryParameters.segment as string,\n      );\n    if (\n      queryParameters.selectedRecords?.length\n      && (segment || workspaceCollectionComponent.options.segment)\n    ) {\n      try {\n        const recordsFromSegment =\n          await this.businessCollectionService.getRecordsInCollectionOrSegment(\n            segment || workspaceCollectionComponent.options.segment,\n            queryParameters.selectedRecords,\n          );\n        queryParameters.selectedRecords = recordsFromSegment.map((record) => record.id);\n      } catch (error) {\n        this.errorHandler.handleRequestFailure(\n          error as Error,\n          'Error while making sure the selected record are still present in the segment',\n        );\n      }\n    }\n\n    workspaceCollectionComponent.options.recordsContext =\n      await this.buildRecordsContextForWorkspaceComponentCollection(workspaceCollectionComponent, {\n        ...argsToRecordsContext,\n        ...('filter' in queryParameters && isObject(queryParameters.filter)\n          ? {\n              filter: this.store.createRecord('filter', {\n                ...queryParameters.filter,\n                filteredCollection: workspaceCollectionComponent.options.filteredCollection,\n              }),\n            }\n          : {}),\n        ...('segment' in queryParameters\n          ? {\n              segment,\n            }\n          : {}),\n      });\n    if (!workspaceCollectionComponent.options.recordsContext.areAllRecordsSelected) {\n      workspaceCollectionComponent.options.recordsContext.selectedRecords =\n        await this.buildSelectedRecordsContextFromQueryParameters(\n          workspaceCollectionComponent,\n          queryParameters,\n        );\n    }\n\n    return workspaceCollectionComponent.options.recordsContext;\n  }\n\n  public async buildSearchContextFromQueryParameters(\n    workspaceComponent: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Search>,\n    queryParameters: Record<string, unknown> & { selectedRecords?: string[] },\n  ) {\n    workspaceComponent.options.recordsContext =\n      this.buildRecordsContextForWorkspaceComponentSearch(workspaceComponent);\n\n    workspaceComponent.options.recordsContext.selectedRecords =\n      await this.buildSelectedRecordsContextFromQueryParameters(\n        workspaceComponent,\n        queryParameters,\n      );\n  }\n\n  public buildDatePickerContextFromQueryParameters(\n    workspaceComponent: WorkspaceComponentModel<WorkspaceComponentTypeEnum.DatePicker>,\n    queryParameters: Record<string, unknown> & { selectedValue?: string },\n  ) {\n    if ('selectedValue' in queryParameters) {\n      const formattedSelectedValue =\n        workspaceComponent.options.type === 'Date'\n          ? moment(queryParameters.selectedValue).toDate()\n          : queryParameters.selectedValue;\n      this.buildSelectedValueContextFromQueryParameters(workspaceComponent, {\n        selectedValue: formattedSelectedValue,\n      });\n    }\n  }\n\n  public async buildContextFromQueryParameters(\n    workspaceComponent: WorkspaceComponentModel,\n    queryParameters: Record<string, unknown> & { selectedRecords?: string[] },\n  ) {\n    switch (workspaceComponent.type) {\n      case WorkspaceComponentTypeEnum.Collection:\n        await this.buildCollectionContextFromQueryParameters(\n          workspaceComponent as WorkspaceComponentModel<WorkspaceComponentTypeEnum.Collection>,\n          queryParameters,\n        );\n        break;\n      case WorkspaceComponentTypeEnum.Search:\n        await this.buildSearchContextFromQueryParameters(\n          workspaceComponent as WorkspaceComponentModel<WorkspaceComponentTypeEnum.Search>,\n          queryParameters,\n        );\n        break;\n      case WorkspaceComponentTypeEnum.Dropdown:\n        this.buildSelectedValueContextFromQueryParameters(\n          workspaceComponent as WorkspaceComponentModel<WorkspaceComponentTypeEnum.Dropdown>,\n          queryParameters,\n        );\n        break;\n      case WorkspaceComponentTypeEnum.Tabs:\n        if ('tabIndex' in queryParameters) {\n          const workspaceComponentTabs =\n            workspaceComponent as WorkspaceComponentModel<WorkspaceComponentTypeEnum.Tabs>;\n          workspaceComponentTabs.options.selectedTab = workspaceComponentTabs.options.tabs.findBy(\n            'position',\n            Number(queryParameters.tabIndex),\n          );\n        }\n        break;\n      case WorkspaceComponentTypeEnum.Toggle:\n        if ('isToggled' in queryParameters) {\n          (\n            workspaceComponent as WorkspaceComponentModel<WorkspaceComponentTypeEnum.Toggle>\n          ).options.isToggled = Boolean(queryParameters.isToggled);\n        }\n        break;\n      case WorkspaceComponentTypeEnum.DatePicker:\n        this.buildDatePickerContextFromQueryParameters(\n          workspaceComponent as WorkspaceComponentModel<WorkspaceComponentTypeEnum.DatePicker>,\n          queryParameters,\n        );\n        break;\n      default:\n        break;\n    }\n  }\n\n  private async buildContextFromQueryParametersWithPrerequisitesIntern(\n    workspaceComponent: WorkspaceComponentModel,\n    queryParamsPerComponent: Record<string, Record<string, unknown>>,\n    componentsContextBuildPromise: { name: string; buildContextPromise: Promise<void> }[],\n  ) {\n    if (\n      'source' in workspaceComponent.options\n      && workspaceComponent.options.source\n      && !workspaceComponent.selectedRecord\n    ) {\n      const { source } = workspaceComponent.options;\n      const buildSourceContextPromise: Promise<void> =\n        componentsContextBuildPromise.find((item) => item.name === source.name)?.buildContextPromise\n        ?? this.buildContextFromQueryParametersWithPrerequisites(\n          source,\n          queryParamsPerComponent,\n          componentsContextBuildPromise,\n        );\n      await buildSourceContextPromise;\n    }\n\n    await this.buildContextFromQueryParameters(\n      workspaceComponent,\n      queryParamsPerComponent[workspaceComponent.name],\n    );\n  }\n\n  private async buildContextFromQueryParametersWithPrerequisites(\n    workspaceComponent: WorkspaceComponentModel | CurrentRecordSource,\n    queryParamsPerComponent: Record<string, Record<string, unknown>>,\n    componentsContextBuildPromise: { name: string; buildContextPromise: Promise<void> }[],\n  ) {\n    if (!(workspaceComponent instanceof WorkspaceComponentModel)) {\n      return;\n    }\n    if (componentsContextBuildPromise.some((item) => item.name === workspaceComponent.name)) {\n      return;\n    }\n\n    const buildContextPromise = this.buildContextFromQueryParametersWithPrerequisitesIntern(\n      workspaceComponent,\n      queryParamsPerComponent,\n      componentsContextBuildPromise,\n    );\n    componentsContextBuildPromise.push({ name: workspaceComponent.name, buildContextPromise });\n\n    await buildContextPromise;\n  }\n\n  public async buildAllContextFromQueryParameters(\n    workspace: WorkspaceModel,\n    queryParameters: Record<string, string>,\n  ) {\n    const queryParamsPerComponent: Record<string, Record<string, unknown>> = {};\n    Object.keys(queryParameters).forEach((queryParamName) => {\n      const [componentName, property] = queryParamName.split('.');\n      try {\n        queryParamsPerComponent[componentName] = {\n          ...(queryParamsPerComponent[componentName] || {}),\n          [property]: JSON.parse(queryParameters[queryParamName]) as unknown,\n        };\n      } catch (jsonParseError: unknown) {\n        console.error(`Error parsing query parameter ${queryParamName}:`, jsonParseError);\n      }\n    });\n\n    const componentsContextBuildPromise: { name: string; buildContextPromise: Promise<void> }[] =\n      [];\n    await Promise.all(\n      Object.keys(queryParamsPerComponent).map((componentName) => {\n        const workspaceComponent = workspace.components.findBy('name', componentName);\n        if (!workspaceComponent) return null;\n\n        return this.buildContextFromQueryParametersWithPrerequisites(\n          workspaceComponent,\n          queryParamsPerComponent,\n          componentsContextBuildPromise,\n        );\n      }),\n    );\n  }\n\n  public buildRecordsContextForWorkspaceComponentSearch(\n    component: WorkspaceComponentModel<WorkspaceComponentTypeEnum.Search>,\n  ) {\n    const { collection, segment, filter } = component.options;\n    const columns = collection.primaryField ? [{ field: collection.primaryField }] : [];\n\n    const displayField =\n      component.options.displayField || component.options.collection?.displayFieldOrPrimaryField;\n\n    if (displayField && collection.primaryField?.id !== displayField.id) {\n      columns.push({ field: displayField });\n    }\n\n    const sortingField = displayField?.isSortable ? displayField : collection.primaryField;\n\n    return this.businessCollectionService.createRecordState({\n      modelToFetch: segment || collection,\n      filter,\n      columns,\n      sortingParameters: [\n        { fieldName: sortingField?.fieldName, order: SortingOrderEnum.Ascending },\n      ],\n      recordsPerPage: 20,\n      relationshipParameters: {},\n      shouldApplyScopes: false,\n    });\n  }\n\n  private getNonEmbeddedSource(\n    component:\n      | WorkspaceComponentModel<\n          | WorkspaceComponentTypeEnum.Field\n          | WorkspaceComponentTypeEnum.Search\n          | WorkspaceComponentTypeEnum.Collection\n        >\n      | CurrentRecordSource,\n  ):\n    | WorkspaceComponentModel<\n        WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n      >\n    | CurrentRecordSource\n    | null {\n    if (!(component instanceof WorkspaceComponentModel)) {\n      return component;\n    }\n    if (\n      'source' in component.options\n      && component.options.source\n      && component.options.source.options.filteredCollection?.isEmbedded\n    ) {\n      return this.getNonEmbeddedSource(component.options.source);\n    }\n    return 'source' in component.options ? component.options.source : null;\n  }\n\n  public getFieldComponentsWithSameSource(workspace: WorkspaceModel, sourceComponentId: string) {\n    return workspace.components.filter(\n      (component) =>\n        component.type === WorkspaceComponentTypeEnum.Field\n        && this.getNonEmbeddedSource(\n          component as WorkspaceComponentModel<WorkspaceComponentTypeEnum.Field>,\n        )?.id === sourceComponentId,\n    ) as WorkspaceComponentModel<WorkspaceComponentTypeEnum.Field>[];\n  }\n\n  public toggleRelatedFieldsEditMode(\n    workspace: WorkspaceModel,\n    sourceComponentId: string,\n    value: boolean,\n  ) {\n    this.getFieldComponentsWithSameSource(workspace, sourceComponentId).forEach(\n      (fieldComponent) => {\n        fieldComponent.options.isInEditMode = value;\n      },\n    );\n  }\n\n  public getDirtyRecordsWithSameSource(workspace: WorkspaceModel, sourceComponentId: string) {\n    return this.getFieldComponentsWithSameSource(workspace, sourceComponentId).reduce(\n      (acc: ClientRecordModel[], fieldComponent) => {\n        let { recordToDisplay } = fieldComponent.options;\n        while (recordToDisplay?.parent) {\n          recordToDisplay = recordToDisplay.parent;\n        }\n\n        if (\n          !(recordToDisplay?.hasDirtyAttributes || recordToDisplay?.hasDirtyRelationships)\n          || acc.includes(recordToDisplay)\n        ) {\n          return acc;\n        }\n        acc.push(recordToDisplay);\n        return acc;\n      },\n      [],\n    );\n  }\n\n  private getLinkedEditActionComponent(\n    component: WorkspaceComponentModel<\n      WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n    >,\n  ) {\n    return component.workspace.components.find(\n      (workspaceComponent) =>\n        workspaceComponent.type === WorkspaceComponentTypeEnum.Action\n        && (workspaceComponent.options as WorkspaceComponentOptionsActionNestedDocument).editMode\n          === 'fields'\n        && (workspaceComponent.options as WorkspaceComponentOptionsActionNestedDocument)\n          .componentToSelectRecordFromId === component.id,\n    ) as WorkspaceComponentModel<WorkspaceComponentTypeEnum.Action>;\n  }\n\n  public shouldPreventChangingRecordWhileEditing(\n    component: WorkspaceComponentModel<\n      WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n    >,\n  ) {\n    const recordDirtyRelations = this.getDirtyRecordsWithSameSource(\n      component.workspace,\n      component.id,\n    );\n\n    return recordDirtyRelations.length > 0;\n  }\n\n  public preventChangingRecordWhileEditing(\n    component: WorkspaceComponentModel<\n      WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n    >,\n  ) {\n    const sure = window.confirm(\n      'Performing this action will discard any unsaved changes. Do you want to continue?',\n    );\n\n    if (sure) {\n      const fieldComponents = this.getFieldComponentsWithSameSource(\n        component.workspace,\n        component.id,\n      );\n\n      fieldComponents.forEach((fieldComponent) => {\n        const { recordToDisplay } = fieldComponent.options;\n\n        if (recordToDisplay?.hasDirtyAttributes || recordToDisplay?.hasDirtyRelationships) {\n          recordToDisplay.rollbackAttributes();\n          recordToDisplay.rollbackRelationships();\n        }\n        fieldComponent.options.isInEditMode = false;\n      });\n\n      const linkedEditActionComponent = this.getLinkedEditActionComponent(component);\n      linkedEditActionComponent.options.isRecordEdition = false;\n\n      return true;\n    }\n\n    return false;\n  }\n\n  public async verifySelectedRecordsAreInRecordsContext(\n    recordsContext: RecordsContext,\n    component:\n      | WorkspaceComponentModel<\n          | WorkspaceComponentTypeEnum.Collection\n          | WorkspaceComponentTypeEnum.Search\n          | WorkspaceComponentTypeEnum.Inbox\n        >\n      | CurrentRecordSource,\n    checkRecordsInRecordsContext = true,\n  ) {\n    if (!recordsContext || !component) {\n      return false;\n    }\n\n    if (!(component instanceof WorkspaceComponentModel)) {\n      return false;\n    }\n\n    const areAllSelectedRecordsInRecordsContext = component.selectedRecords?.every(\n      (selectedRecord) => recordsContext.records?.find((record) => record.id === selectedRecord.id),\n    );\n    if (\n      (checkRecordsInRecordsContext && areAllSelectedRecordsInRecordsContext)\n      || !(recordsContext.collection as CollectionModel).primaryField?.filterActivated\n    ) {\n      return false;\n    }\n\n    try {\n      const additionalFilters = [recordsContext.filter];\n      if ('filter' in component.options) {\n        additionalFilters.push(component.options.filter);\n      }\n\n      const records = await this.businessCollectionService.getRecordsInCollectionOrSegment(\n        recordsContext.segment || (recordsContext.collection as CollectionModel),\n        component.selectedRecords.map((record) => record.id),\n        [],\n        additionalFilters,\n      );\n\n      if (component.selectedRecords.length !== records.length) {\n        component.selectedRecords = [...records.toArray()];\n        component.options.recordsContext.selectedRecords = [...records.toArray()];\n        return true;\n      }\n      return false;\n    } catch (error) {\n      this.errorHandler.handleRequestFailure(\n        error as Error,\n        `Error while making sure the selected record are still present in the ${\n          recordsContext.segment ? 'segment' : 'collection'\n        }`,\n      );\n      return false;\n    }\n  }\n}\n","import type DocumentService from 'client/legacy/services/document';\nimport type ToastrService from 'client/legacy/services/toastr';\n\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nexport default class ClipboardService extends Service {\n  @service toastr: ToastrService;\n  @service document: DocumentService;\n\n  async copyToClipboard(\n    value: string,\n    successMessage = 'Content copied to the clipboard!',\n    errorMessage = 'Could not copy the value to the clipboard',\n  ): Promise<void> {\n    if (!value) {\n      this.toastr.perform(ToastrTypeEnum.Error, 'Could not copy the value to the clipboard');\n    } else {\n      try {\n        await navigator.clipboard.writeText(value);\n        if (successMessage) {\n          this.toastr.perform(ToastrTypeEnum.Success, successMessage);\n        }\n        // eslint-disable-next-line sonarjs/no-ignored-exceptions\n      } catch (error) {\n        this.toastr.perform(ToastrTypeEnum.Error, errorMessage);\n      }\n    }\n  }\n\n  async readTextFromClipboard(): Promise<string> {\n    try {\n      return await navigator.clipboard.readText();\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      this.toastr.perform(ToastrTypeEnum.Error, 'Could not read from the clipboard');\n      return '';\n    }\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type ActivityTrackerService from 'client/legacy/services/activity-tracker';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\nimport type TimezoneService from 'client/legacy/services/timezone';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport Service, { service } from '@ember/service';\n\nimport createAdapter from 'client/utils/collection-creator/adapter/basic-adapter';\nimport createModel from 'client/utils/collection-creator/model';\nimport createSerializer from 'client/utils/collection-creator/serializer/basic-serializer';\nimport { getApplicationInstance } from 'client/utils/ember/get-instance-utils';\n\nexport default class CollectionCreatorService extends Service {\n  @service() store: StoreService;\n  @service() activityTracker: ActivityTrackerService;\n  @service() lianaSession: LianaSessionService;\n  @service() lianaFeatures: LianaFeaturesService;\n  @service() toastr: ToastrService;\n  @service() tracker: TrackerService;\n  @service() timezone: TimezoneService;\n\n  // FIXME: Move to private once those tests has been updated\n  public collectionEmberNamesToIds: Record<string, string | number> = {};\n\n  register(collection: CollectionModel) {\n    this.collectionEmberNamesToIds[collection.emberModelName] = collection.id;\n\n    this.registerModel(collection);\n    this.registerAdapter(collection);\n    this.registerSerializer(collection);\n  }\n\n  registerModel(collection: CollectionModel) {\n    const model = createModel(collection, {\n      tracker: this.tracker,\n      collectionCreator: this,\n      lianaSession: this.lianaSession,\n    });\n    getApplicationInstance(this).register(`model:${collection.emberModelName}`, model);\n  }\n\n  registerAdapter(collection: CollectionModel) {\n    const adapter = createAdapter(collection);\n    getApplicationInstance(this).register(`adapter:${collection.emberModelName}`, adapter);\n  }\n\n  registerSerializer(collection: CollectionModel) {\n    const serializer = createSerializer(collection);\n    getApplicationInstance(this).register(`serializer:${collection.emberModelName}`, serializer);\n  }\n\n  findCollectionFromEmberName(modelName: string) {\n    const collectionId = this.collectionEmberNamesToIds[modelName];\n    return this.store.peekRecord('collection', collectionId);\n  }\n}\n","import type ApplicationInstance from '@ember/application/instance';\nimport type CollectionModel from 'client/data/models/collection';\n\nimport { getOwner } from '@ember/application';\nimport Service from '@ember/service';\n\nimport SchemaUtils from 'client/utils/schema-utils';\nimport { namespace } from 'client/utils/string-utils';\n\nexport default class CollectionRemoverService extends Service {\n  remove(collection?: CollectionModel) {\n    if (!collection) {\n      return;\n    }\n    this.removeModel(collection);\n    this.removeAdapter(collection);\n    this.removeSerializer(collection);\n  }\n\n  private removeModel(collection: CollectionModel) {\n    collection.fields.forEach((field) => {\n      if (\n        (SchemaUtils.isEmbeddedBelongsTo(field) && !SchemaUtils.isEmbeddedBelongsToDeep(field))\n        || SchemaUtils.isEmbeddedHasMany(field)\n      ) {\n        const embeddedCollectionName = namespace(field.embeddedCollectionName, '-');\n        this.applicationOwner.unregister(`model:${embeddedCollectionName}`);\n        this.applicationOwner.unregister(`serializer:${embeddedCollectionName}`);\n      }\n    });\n\n    this.applicationOwner.unregister(`model:${collection.emberModelName}`);\n  }\n\n  private removeAdapter(collection?: CollectionModel) {\n    this.applicationOwner.unregister(`adapter:${collection.emberModelName}`);\n  }\n\n  private removeSerializer(collection?: CollectionModel) {\n    this.applicationOwner.unregister(`serializer:${collection.emberModelName}`);\n  }\n\n  private get applicationOwner(): ApplicationInstance {\n    return getOwner(this) as ApplicationInstance;\n  }\n}\n","import type ApplicationInstance from '@ember/application/instance';\nimport type Route from '@ember/routing/route';\nimport type RouterService from '@ember/routing/router-service';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { getOwner } from '@ember/application';\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class CollectionStateService extends Service {\n  @service declare router: RouterService;\n\n  @tracked private _currentRecord: ClientRecordModel | null;\n\n  private get currentRecordFromRoute(): ClientRecordModel | null {\n    const owner = getOwner(this) as ApplicationInstance;\n    const currentRoute = owner.lookup(`route:${this.router.currentRouteName}`) as Route;\n    const currentModel = currentRoute?.modelFor(this.router.currentRouteName) as {\n      record: ClientRecordModel;\n    };\n    return currentModel?.record || null;\n  }\n\n  get currentRecord(): ClientRecordModel | null {\n    return this._currentRecord || this.currentRecordFromRoute || null;\n  }\n\n  set currentRecord(record: ClientRecordModel | null) {\n    this._currentRecord = record;\n  }\n}\n","import type RenderingModel from 'client/data/models/rendering';\nimport type CollectionCreatorService from 'client/legacy/services/collection-creator';\nimport type RelationshipsBinderService from 'client/legacy/services/relationships-binder';\n\nimport Service, { service } from '@ember/service';\n\nexport default class CollectionsCreatorService extends Service {\n  @service collectionCreator: CollectionCreatorService;\n  @service relationshipsBinder: RelationshipsBinderService;\n\n  register(rendering: RenderingModel) {\n    rendering.get('realCollections').forEach((collection) => {\n      this.collectionCreator.register(collection);\n    });\n\n    this.relationshipsBinder.bind(rendering);\n  }\n}\n","import type RenderingModel from 'client/data/models/rendering';\nimport type MockedAgentFeatureService from 'client/features/mocked-agent/services/feature';\nimport type CollectionsCreatorService from 'client/legacy/services/collections-creator';\nimport type CollectionsRemoverService from 'client/legacy/services/collections-remover';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport Service, { service } from '@ember/service';\n\nexport default class CollectionsManagerService extends Service {\n  @service collectionsCreator: CollectionsCreatorService;\n  @service collectionsRemover: CollectionsRemoverService;\n  @service lianaSession: LianaSessionService;\n  @service('feature/mocked-agent') private mockedAgentFeatureService: MockedAgentFeatureService;\n\n  async registerNewCollections(rendering: RenderingModel) {\n    this.collectionsRemover.removeAll(rendering);\n    this.collectionsCreator.register(rendering);\n    this.mockedAgentFeatureService.registerFakeAgent(rendering);\n  }\n\n  cleanExistingCollections(rendering: RenderingModel) {\n    this.collectionsRemover.remove(rendering);\n  }\n}\n","import type RenderingModel from 'client/data/models/rendering';\nimport type CollectionRemoverService from 'client/legacy/services/collection-remover';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nexport default class CollectionsRemoverService extends Service {\n  @service store: StoreService;\n  @service collectionRemover: CollectionRemoverService;\n\n  removeAll(newRendering: RenderingModel) {\n    const allCollections = this.store.peekAll('collection');\n\n    allCollections.forEach((collection) => {\n      if (collection.rendering?.id !== newRendering.get('id')) {\n        collection.unloadRecord();\n      }\n    });\n\n    allCollections.forEach((collection) => {\n      this.collectionRemover.remove(collection);\n    });\n  }\n\n  remove(rendering: RenderingModel) {\n    rendering.get('realCollections').forEach((collection) => {\n      this.collectionRemover.remove(collection);\n    });\n  }\n}\n","import Service from '@ember/service';\n\ntype ContextMenuItem = {\n  label: string;\n  disabled?: boolean;\n  action?: () => void | Promise<void>;\n};\n\ntype ContextMenuSection = {\n  sectionLabel: string;\n  items: ContextMenuItem[];\n};\n\nexport default class ContextMenuService extends Service {\n  sections: ContextMenuSection[] = [];\n\n  addSection(newSection: ContextMenuSection) {\n    if (newSection && newSection.items && newSection.items.length) {\n      this.sections.pushObject(newSection);\n    }\n  }\n\n  flushSections() {\n    this.set('sections', []);\n  }\n}\n","import type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nexport default class CopyLayoutRequesterService extends Service {\n  @service store: StoreService;\n  @service('feature/notification') notificationFeature: NotificationFeatureService;\n\n  // NOTICE: The server does not send the object id in the response. To prevent an error, an\n  //         automatic id is set.\n  currentId = 0;\n\n  async request(\n    type: 'team',\n    from: string,\n    to: string,\n    requesterEmail: string,\n    callback: () => void,\n  ) {\n    this.currentId += 1;\n\n    const deploymentRequest = {\n      id: this.currentId,\n      type,\n      from,\n      to,\n    };\n\n    try {\n      const deploymentRequestRecord = this.store.createRecord(\n        'deployment-request',\n        deploymentRequest,\n      );\n      await deploymentRequestRecord.save();\n      this.notificationFeature.createToastr(\n        ToastrTypeEnum.Success,\n        `The copy can take a few minutes. You will receive an email at ${requesterEmail} once completed.`,\n      );\n    } catch (error) {\n      console.error(error);\n    }\n    callback();\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type ActivityTrackerService from 'client/legacy/services/activity-tracker';\nimport type DownloadService from 'client/legacy/services/download';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaServerFetchService from 'client/legacy/services/liana-server-fetch';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type { RecordCallingContext } from 'client/utils/liana-records/records-context';\nimport type NestedCollection from 'client/utils/nested/collection';\nimport type { Dictionary } from 'lodash';\n\nimport { guidFor } from '@ember/object/internals';\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport emberErrorUtil from 'client/utils/ember-error-util';\nimport UrlUtils from 'client/utils/url-utils';\n\nexport default class CsvExporterService extends Service {\n  @service activityTracker: ActivityTrackerService;\n  @service download: DownloadService;\n  @service errorHandler: ErrorHandlerService;\n  @service lianaFeatures: LianaFeaturesService;\n  @service lianaServerFetch: LianaServerFetchService;\n  @service lianaSession: LianaSessionService;\n  @service('feature/notification') notificationFeature: NotificationFeatureService;\n\n  public async exportData(\n    collection: CollectionModel | NestedCollection,\n    path: string,\n    params: Dictionary<string | number | boolean | RecordCallingContext>,\n    recordsCount: number,\n  ) {\n    if (\n      this.lianaFeatures.isFeatureCompatible(\n        FeaturesEnum.ImportCsv,\n        this.lianaSession.currentEnvironment,\n      )\n    ) {\n      let message: string;\n      if (recordsCount) {\n        message =\n          recordsCount === 1\n            ? `this ${collection.displayNameLowerCase}`\n            : `all these ${recordsCount} ${collection.displayNamePluralLowerCase}`;\n      } else {\n        message = `all ${collection.displayNamePluralLowerCase}`;\n      }\n\n      if (window.confirm(`Are you sure you want to download ${message}?`)) {\n        const useSecure = this.lianaFeatures.isFeatureCompatible(\n          FeaturesEnum.ExportSecure,\n          this.lianaSession.currentEnvironment,\n        );\n\n        const queryString = UrlUtils.serializeContextGeneral({\n          ...params,\n          sessionToken: !useSecure ? this.lianaSession.authToken : undefined,\n        });\n\n        await this.query(`${path}?${queryString}`, collection);\n      }\n    } else {\n      this.notificationFeature.createToastr(\n        ToastrTypeEnum.Warning,\n        'You have to upgrade to the latest Agent version to use the new CSV export.',\n      );\n    }\n  }\n\n  private async query(path: string, collection: CollectionModel | NestedCollection) {\n    const collectionName = collection.pluralizedDisplayName;\n    const toastId = guidFor({});\n    this.notificationFeature.createToastr(\n      ToastrTypeEnum.Loading,\n      `Exporting ${collectionName}...`,\n      {\n        duration: 0,\n        id: toastId,\n      },\n    );\n\n    await this.lianaSession.waitRefreshIfNecessary();\n\n    try {\n      const response = await this.lianaServerFetch.fetch(path, {\n        credentials: this.lianaSession.supportsOpenIdConnect ? 'include' : 'omit',\n      });\n      if (response.status === 403) {\n        this.notificationFeature.updateToastr(\n          ToastrTypeEnum.Error,\n          'Export failed: Forbidden access.',\n          toastId,\n        );\n        return;\n      }\n\n      this.download.downloadContentAsFile(\n        await response.blob(),\n        'text/plain',\n        `${collectionName}.csv`,\n      );\n\n      this.notificationFeature.updateToastr(\n        ToastrTypeEnum.Success,\n        `${collectionName} successfully exported.`,\n        toastId,\n      );\n      await this.activityTracker.trackRead({\n        action: 'export',\n        collection,\n      });\n    } catch (error) {\n      this.errorHandler.handleSilentError(error as Error);\n\n      const errorMessage =\n        emberErrorUtil.getFirstErrorDetail(error)\n        || 'Unexpected error. Please check your Admin API server logs.';\n\n      this.notificationFeature.updateToastr(\n        ToastrTypeEnum.Error,\n        `Export failed: ${errorMessage}`,\n        toastId,\n      );\n    }\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type OrganizationModel from 'client/data/models/organization';\nimport type AuthenticationRedirectionService from 'client/legacy/services/authentication-redirection-service';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LastVisitedOrganizationService from 'client/legacy/services/last-visited-organization-service';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class CurrentOrganizationService extends Service {\n  @tracked private _model: OrganizationModel;\n\n  get model() {\n    if (!this._model) return this.personalOrganization;\n    return this._model;\n  }\n\n  set model(organization: OrganizationModel) {\n    this._model = organization;\n  }\n\n  /**\n   * organization is null when personalOrganization\n   */\n  get organization() {\n    return this._model?.isPersonal ? null : this._model;\n  }\n\n  readonly personalOrganization: OrganizationModel;\n\n  @service router: RouterService;\n  @service store: StoreService;\n  @service lastVisitedOrganizationService: LastVisitedOrganizationService;\n  @service session: ForestSessionService;\n  @service private authenticationRedirectionService: AuthenticationRedirectionService;\n\n  constructor(properties?: object) {\n    super(properties);\n\n    this.initialize();\n  }\n\n  initialize(): void {\n    this.store.pushPayload({\n      data: {\n        type: 'organizations',\n        id: 'personal-organization',\n        attributes: {\n          is_personal: true,\n          name: 'Personal space',\n          long_name: 'No organization (Personal space)',\n        },\n      },\n    });\n\n    this.set(\n      'personalOrganization',\n      this.store.peekRecord('organization', 'personal-organization'),\n    );\n  }\n\n  define(organization: OrganizationModel) {\n    if (organization) {\n      this._model = organization;\n    } else {\n      this._model = this.personalOrganization;\n    }\n\n    this.lastVisitedOrganizationService.defineLastVisitedOrganization(organization);\n  }\n\n  async defineById(organizationId: number | string) {\n    if (organizationId) {\n      const organization = await this.store.findRecord('organization', organizationId);\n      this.define(organization);\n    } else {\n      this.definePersonalOrganization();\n    }\n  }\n\n  definePersonalOrganization() {\n    this.define(this.personalOrganization);\n  }\n\n  transitionToProjectsIndex(postLogin?: boolean): Transition {\n    const queryParams = {\n      queryParams: {\n        postLogin,\n        organization: this.model.isPersonal ? undefined : this.model?.name,\n      },\n    };\n    return this.router.transitionTo('projects', queryParams);\n  }\n\n  async transitionPostLoginToLastVisitedOrganizationProjects() {\n    const redirectTarget = this.authenticationRedirectionService.useRedirectTarget();\n    if (redirectTarget) {\n      return this.router.transitionTo(redirectTarget);\n    }\n\n    if (this.session.isConnectedWithSso()) {\n      if (!this._model) {\n        await this.defineById(this.session.currentOrganizationId);\n      }\n      return this.router.transitionTo('projects', {\n        queryParams: { organization: this.model.name, postLogin: true },\n      });\n    }\n\n    const lastOrgId = this.lastVisitedOrganizationService.getLastVisitedOrganizationWithoutSso();\n    if (lastOrgId) {\n      const lastOrganization = await this.store.findRecord('organization', lastOrgId);\n      return this.router.transitionTo('projects', {\n        queryParams: { organization: lastOrganization.name, postLogin: true },\n      });\n    }\n\n    return this.transitionToProjectsIndex(true);\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type EnvironmentPermissionsFragment from 'client/data/models/environment-permissions';\nimport type RolePermissionsFragment from 'client/data/models/role-permissions';\nimport type SmartActionPermissionsFragment from 'client/data/models/smart-action-permissions';\nimport type TeamModel from 'client/data/models/team';\nimport type UserModel from 'client/data/models/user';\nimport type UserTagFragment from 'client/data/models/user-tag';\nimport type ActionFeatureService from 'client/features/action/services/feature';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type StoreService from 'client/legacy/services/store';\nimport type UserPreferenceManagerSharedBusinessService from 'client/shared/services/user-preference-manager';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\nimport type NestedCollection from 'client/utils/nested/collection';\n\nimport { deprecate } from '@ember/debug';\nimport { computed, defineProperty, get } from '@ember/object';\nimport { not } from '@ember/object/computed';\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport { PermissionLevelEnum } from 'client/data/models/invitation';\n\nconst USER_PROPERTIES = [\n  'email',\n  'firstName',\n  'lastName',\n  'fullName',\n  'id',\n  'isLiveDemo',\n  'nameOrEmail',\n  'permissions',\n  'permissionLevel',\n  'role',\n  'tags',\n];\n\nexport default class CurrentUserService extends Service {\n  @service private eventBus: EventBusService;\n  @service private segmentTracker: SegmentTrackerService;\n  @service private store: StoreService;\n  @service('shared/state/user-preference') private userPreferenceState: UserPreferenceState;\n  @service('shared/user-preference-manager')\n  private userPreferenceManager: UserPreferenceManagerSharedBusinessService;\n\n  @service('feature/action') actionFeatureService: ActionFeatureService;\n\n  /** @type {import('client/data/models/user').default} */\n  model: UserModel | null = null;\n\n  constructor(properties?: object) {\n    super(properties);\n\n    USER_PROPERTIES.forEach((userProperty) => {\n      const deprecationFunction = () =>\n        deprecate(\n          `currentUser.${userProperty} has been deprecated. Use currentUser.model.${userProperty} instead.`,\n          false,\n          {\n            id: `currentUser.${userProperty}`,\n            until: '3.0',\n            since: { available: '1.0.0' },\n            for: 'forestadmin',\n          },\n        );\n      // Use `currentUser.model.yourProperty` instead of `currentUser.yourProperty`\n      defineProperty(\n        this,\n        userProperty,\n        computed(`model.${userProperty}`, 'model', {\n          get() {\n            deprecationFunction();\n            // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n            return this.model?.[userProperty] as unknown;\n          },\n          set(key, value) {\n            deprecationFunction();\n            // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n            this.model[userProperty] = value;\n            return value;\n          },\n        }),\n      );\n    });\n  }\n\n  @tracked _editMode = false;\n  @tracked team: TeamModel | null = null;\n  @tracked _tags: UserTagFragment[] | null = null;\n  @tracked isUsingAnEnvironmentWithoutRoles = false;\n  @tracked currentEnvironmentRolePermissions: EnvironmentPermissionsFragment | null = null;\n  isLayoutEditorEnabled = false;\n  @not('isLayoutEditorEnabled') declare isLayoutEditorDisabled: boolean;\n\n  @computed('team')\n  get isLoaded() {\n    return this.team !== null;\n  }\n\n  @computed('permissions.[]')\n  get canEditLayout() {\n    return this.can('updateLayout');\n  }\n\n  @computed('permissions.[]')\n  get canEditProject() {\n    return this.can('editProject');\n  }\n\n  @computed('permissions.[]')\n  get canSetTheEnvironmentAsProduction() {\n    return this.can('changeProduction');\n  }\n\n  @computed('permissions.[]')\n  get canSetBranchOrigin() {\n    return this.can('setOrigin');\n  }\n\n  @computed('model.{firstName,lastName,username}')\n  get fullName(): string {\n    if (this.model?.firstName && this.model?.lastName) {\n      // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n      return `${this.model.firstName} ${this.model.lastName}`;\n    }\n    return this.model?.username;\n  }\n\n  /**\n   * This is only available in a project context (User Project information).\n   */\n  @computed('model.permissionLevel')\n  get isAdmin() {\n    return this.model?.permissionLevel === PermissionLevelEnum.Admin;\n  }\n\n  get editMode() {\n    return this._editMode;\n  }\n\n  set editMode(value) {\n    const okToExit = this.actionFeatureService.askUserIfOkToCloseCurrentActionForm();\n    if (okToExit) {\n      void this.actionFeatureService.cancelAction({ shouldAskUser: false });\n      this._editMode = value;\n      this.eventBus.trigger(value ? 'editModeActivated' : 'editModeDeactivated');\n    }\n  }\n\n  get tags() {\n    return this._tags;\n  }\n\n  populate(tokenData: { data: { data: object } }) {\n    if (tokenData) {\n      const currentUserData = tokenData.data.data;\n\n      const currentUserModel = this.store.push(\n        this.store.normalize('user', currentUserData),\n      ) as UserModel;\n      this.set('model', currentUserModel);\n\n      window.user = {\n        name: this.model?.fullName,\n        email: currentUserModel.email,\n      };\n    } else {\n      this.set('model', null);\n      this.set('team', null);\n      window.user = undefined;\n    }\n  }\n\n  setCurrentUserPermissionLevelAndTeam(team: TeamModel) {\n    if (team) this.team = team;\n\n    const currentUser = this.model;\n\n    if (currentUser && !currentUser.isLiveDemo) {\n      this.segmentTracker.identify(currentUser.id, currentUser.email, {\n        firstName: currentUser.firstName,\n        lastName: currentUser.lastName,\n        permissionLevel: currentUser.permissionLevel,\n        role: currentUser.permissionLevel,\n        createdAt: currentUser.createdAt?.toISOString(),\n      });\n    }\n  }\n\n  setIsUsingAnEnvironmentWithoutRoles(isUsingAnEnvironmentWithoutRoles: boolean) {\n    this.isUsingAnEnvironmentWithoutRoles = isUsingAnEnvironmentWithoutRoles;\n  }\n\n  setCurrentUserRolePermissions(permissions: RolePermissionsFragment, environmentId: string) {\n    if (permissions && permissions.environments) {\n      const currentEnvironmentPermissions = permissions.environments.find(\n        (environment) => environment.environmentId === Number(environmentId),\n      );\n      this.currentEnvironmentRolePermissions = currentEnvironmentPermissions || null;\n    }\n  }\n\n  setCurrentUserTags(tags: UserTagFragment[]) {\n    this._tags = tags;\n  }\n\n  can(action: string) {\n    const permissions = this.model?.permissions || [];\n    return permissions.includes(action);\n  }\n\n  getCollectionPermissions(collectionName: string) {\n    if (!this.currentEnvironmentRolePermissions) return null;\n\n    return this.currentEnvironmentRolePermissions.collections.find(\n      (permissions) => permissions.collectionName === collectionName,\n    );\n  }\n\n  getSmartActionPermissions(collectionName: string, actionName: string) {\n    const collectionPermissions = this.getCollectionPermissions(collectionName);\n\n    return (\n      collectionPermissions\n      && collectionPermissions.smartActions.find(\n        (permissions) => permissions.smartActionName === actionName,\n      )\n    );\n  }\n\n  _canExecutePermissionOnCollection(rolePermission: boolean) {\n    if (this.isUsingAnEnvironmentWithoutRoles) return true;\n\n    return rolePermission;\n  }\n\n  canAddCollection(collection: CollectionModel | NestedCollection) {\n    return this._canExecutePermissionOnCollection(\n      // eslint-disable-next-line ember/no-get\n      get(collection, 'collectionPermissions.addEnabled') as boolean,\n    );\n  }\n\n  canBrowseCollection(collection: CollectionModel | NestedCollection) {\n    return this._canExecutePermissionOnCollection(\n      // eslint-disable-next-line ember/no-get\n      get(collection, 'collectionPermissions.browseEnabled') as boolean,\n    );\n  }\n\n  canReadCollection(collection: CollectionModel | NestedCollection) {\n    return this._canExecutePermissionOnCollection(\n      // eslint-disable-next-line ember/no-get\n      get(collection, 'collectionPermissions.readEnabled') as boolean,\n    );\n  }\n\n  canDeleteCollection(collection: CollectionModel | NestedCollection) {\n    return this._canExecutePermissionOnCollection(\n      // eslint-disable-next-line ember/no-get\n      get(collection, 'collectionPermissions.deleteEnabled') as boolean,\n    );\n  }\n\n  canExportCollection(collection: CollectionModel | NestedCollection) {\n    if (!collection) {\n      return false;\n    }\n    return this._canExecutePermissionOnCollection(\n      // eslint-disable-next-line ember/no-get\n      get(collection, 'collectionPermissions.exportEnabled') as boolean,\n    );\n  }\n\n  canEditCollection(collection: CollectionModel | NestedCollection) {\n    return this._canExecutePermissionOnCollection(\n      // eslint-disable-next-line ember/no-get\n      get(collection, 'collectionPermissions.editEnabled') as boolean,\n    );\n  }\n\n  canTriggerSmartAction(smartActionPermissions?: SmartActionPermissionsFragment | null) {\n    if (this.isUsingAnEnvironmentWithoutRoles) return true;\n\n    return !!smartActionPermissions && smartActionPermissions.triggerEnabled;\n  }\n\n  canTriggerSmartActionWithApproval(\n    smartActionPermissions?: SmartActionPermissionsFragment | null,\n  ) {\n    // NOTE: Approvals aren't available on development environments\n    if (this.isUsingAnEnvironmentWithoutRoles) return false;\n\n    return (\n      !!smartActionPermissions\n      && smartActionPermissions.approvalRequired\n      && smartActionPermissions.triggerEnabled\n    );\n  }\n}\n","import type WhiteLabelModel from 'client/data/models/white-label';\nimport type StoreService from 'client/legacy/services/store';\nimport type WhiteLabelService from 'client/legacy/services/white-label';\n\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\nimport { PromiseObject } from 'client/utils/ember-promise';\n\nconst REGEX_DOMAIN = /.*:\\/\\/?([^/]+)/;\n\nexport default class CustomDomainService extends Service {\n  @service store: StoreService;\n  @service whiteLabel: WhiteLabelService;\n\n  get currentDomain() {\n    try {\n      return window.location.href.match(REGEX_DOMAIN)[1];\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      return config.APP.defaultDomain;\n    }\n  }\n\n  get isNotCustomDomain() {\n    return this.currentDomain === config.APP.defaultDomain;\n  }\n\n  get isCustomDomain() {\n    return !this.isNotCustomDomain;\n  }\n\n  private whiteLabelModel: WhiteLabelModel = undefined;\n  private customDomain: string;\n  private whiteLabelPromise: Promise<WhiteLabelModel> = null;\n\n  async getDecoration() {\n    if (this.isCustomDomain) {\n      if (this.whiteLabelPromise !== null) return this.whiteLabelPromise;\n\n      try {\n        if (this.currentDomain && this.customDomain !== this.currentDomain) {\n          this.whiteLabelPromise = this.store.queryRecord('white-label', {\n            domain: this.currentDomain,\n          });\n          this.whiteLabelModel = await this.whiteLabelPromise;\n          this.whiteLabelPromise = null;\n          this.customDomain = this.currentDomain;\n        }\n        return this.whiteLabelModel;\n      } catch (e) {\n        console.error(e);\n        return null;\n      }\n    }\n\n    return null;\n  }\n\n  get pictureUrl() {\n    return PromiseObject.create({\n      promise: this.whiteLabel.getPictureUrl().then((url) => {\n        if (url) {\n          return url;\n        }\n\n        return '/img/logo.svg';\n      }),\n    });\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\n\ninterface CioAnalytics {\n  identify: (id: string, traits?: Record<string, unknown>) => void;\n  track: (event: string, properties?: Record<string, unknown>) => void;\n  page: () => void;\n  reset: () => void;\n}\n\nconst CIO_CDN_HOST = 'https://cioanalytics.forestadmin.com';\n\nexport default class CustomerIoInAppService extends Service {\n  @service private readonly currentUser: CurrentUserService;\n  @service private readonly lianaSession: LianaSessionService;\n  @service private readonly router: RouterService;\n\n  private isInitialized = false;\n\n  willDestroy(): void {\n    super.willDestroy();\n    if (this.isInitialized) {\n      this.router.off('routeDidChange', this.handleRouteChange);\n    }\n  }\n\n  initialize(): void {\n    if (this.isInitialized) {\n      return;\n    }\n\n    if (!config.APP.customerIoWriteKey || !config.APP.customerIoSiteId) {\n      return;\n    }\n\n    this.loadSnippet(config.APP.customerIoWriteKey, config.APP.customerIoSiteId);\n    this.isInitialized = true;\n    this.router.on('routeDidChange', this.handleRouteChange);\n  }\n\n  private loadSnippet(writeKey: string, siteId: string): void {\n    const i = 'cioanalytics';\n    const windowRecord = window as unknown as Record<string, unknown>;\n    const existingAnalytics = windowRecord[i] || [];\n    windowRecord[i] = existingAnalytics;\n    const analytics = existingAnalytics as CioAnalytics & unknown[];\n\n    if ((analytics as { initialize?: boolean }).initialize) {\n      return;\n    }\n\n    if ((analytics as { invoked?: boolean }).invoked) {\n      console.error('Customer.io snippet included twice.');\n      return;\n    }\n\n    (analytics as { invoked?: boolean }).invoked = true;\n\n    const methods = [\n      'trackSubmit',\n      'trackClick',\n      'trackLink',\n      'trackForm',\n      'pageview',\n      'identify',\n      'reset',\n      'group',\n      'track',\n      'ready',\n      'alias',\n      'debug',\n      'page',\n      'once',\n      'off',\n      'on',\n      'addSourceMiddleware',\n      'addIntegrationMiddleware',\n      'setAnonymousId',\n      'addDestinationMiddleware',\n    ];\n\n    (analytics as { factory?: (method: string) => () => CioAnalytics & unknown[] }).factory =\n      function (method: string) {\n        return function (...args: unknown[]) {\n          args.unshift(method);\n          analytics.push(args);\n          return analytics;\n        };\n      };\n\n    for (const method of methods) {\n      (analytics as unknown as Record<string, unknown>)[method] = (\n        analytics as unknown as { factory: (method: string) => () => void }\n      ).factory(method);\n    }\n\n    (analytics as { load?: (key: string, options?: object) => void }).load = function (\n      key: string,\n      options?: object,\n    ) {\n      const script = document.createElement('script');\n      script.type = 'text/javascript';\n      script.async = true;\n      script.setAttribute('data-global-customerio-analytics-key', i);\n      script.src = `${CIO_CDN_HOST}/v1/analytics-js/snippet/${key}/analytics.min.js`;\n      const firstScript = document.getElementsByTagName('script')[0];\n      firstScript?.parentNode?.insertBefore(script, firstScript);\n      (analytics as { _writeKey?: string })._writeKey = key;\n      (analytics as { _loadOptions?: object })._loadOptions = options;\n    };\n\n    (analytics as { SNIPPET_VERSION?: string }).SNIPPET_VERSION = '4.15.3';\n    (analytics as { _cdn?: string })._cdn = CIO_CDN_HOST;\n\n    (analytics as unknown as { load: (key: string, options?: object) => void }).load(writeKey, {\n      integrations: {\n        'Customer.io In-App Plugin': {\n          siteId,\n          anonymousInApp: true,\n        },\n      },\n    });\n\n    (analytics as CioAnalytics).page();\n  }\n\n  private get analytics(): CioAnalytics | undefined {\n    const windowRecord = window as unknown as Record<string, CioAnalytics | undefined>;\n    return windowRecord.cioanalytics;\n  }\n\n  setupUser(): void {\n    if (!this.analytics) {\n      return;\n    }\n\n    const user = this.currentUser.model;\n    if (!user) {\n      return;\n    }\n\n    const team = this.lianaSession.currentTeam;\n    const project = this.lianaSession.currentProject;\n\n    this.analytics.identify(user.id, {\n      email: user.email,\n      first_name: user.firstName,\n      last_name: user.lastName,\n      created_at: user.createdAt\n        ? Math.floor(new Date(user.createdAt).getTime() / 1000)\n        : undefined,\n      team_id: team?.id,\n      team_name: team?.name,\n      project_id: project?.id,\n      project_name: project?.name,\n    });\n  }\n\n  @action\n  private handleRouteChange(): void {\n    if (!this.analytics) {\n      return;\n    }\n\n    this.analytics.page();\n  }\n\n  trackEvent(eventName: string, properties?: Record<string, unknown>): void {\n    if (!this.analytics) {\n      return;\n    }\n\n    this.analytics.track(eventName, properties);\n  }\n\n  reset(): void {\n    if (!this.analytics) {\n      return;\n    }\n\n    this.analytics.reset();\n  }\n}\n","import type { RumErrorEvent, RumErrorEventDomainContext } from '@datadog/browser-rum';\nimport type Transition from '@ember/routing/-private/transition';\nimport type { Registry } from '@ember/service';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type CustomDomainService from 'client/legacy/services/custom-domain';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type WhiteLabelService from 'client/legacy/services/white-label';\n\nimport { datadogRum } from '@datadog/browser-rum';\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\n\nimport config from 'client/config/environment';\nimport { AbortClientRecordAgentError } from 'client/features/client-record/errors';\n\ntype Level = 'fatal' | 'error' | 'warning' | 'log' | 'info' | 'debug' | 'critical';\n\nexport default class DatadogService extends Service {\n  @service private router: Registry['router'];\n  @service private currentUser: CurrentUserService;\n  @service private lianaSession: LianaSession;\n  @service private tracker: TrackerService;\n  @service private customDomain: CustomDomainService;\n  @service private whiteLabel: WhiteLabelService;\n\n  private isInitialized = false;\n  private stackedErrors: { error: Error; context: object }[] = [];\n  private stackedActions: { name: string; context: object }[] = [];\n  private stackedMessages: { message: string; level: Level; context: Record<string, unknown> }[] =\n    [];\n\n  initializeLibrary() {\n    if (!config.datadog.applicationId || !config.datadog.clientToken || this.isInitialized) return;\n\n    const allowedTracingUrls = [\n      `${config.APP.apiServerHost}/api/sessions/logout`,\n      `${config.APP.apiServerHost}/api/sessions/refresh`,\n      `${config.APP.apiServerHost}/api/sessions/mine`,\n      `${config.APP.apiServerHost}/oidc/auth`,\n      `${config.APP.apiServerHost}/oidc/device`,\n      `${config.APP.apiServerHost}/oidc/device/auth`,\n      `${config.APP.apiServerHost}/oidc/token`,\n      `${config.APP.apiServerHost}/oidc/reg`,\n      `${config.APP.apiServerHost}/oidc/jwks`,\n      `${config.APP.apiServerHost}/oidc/session/end`,\n      `${config.APP.apiServerHost}/oidc/.well-known/openid-configuration`,\n      (url: string) => url.includes('/2fa/register'),\n    ];\n    datadogRum.init({\n      site: 'datadoghq.com',\n      service: 'frontend',\n      sessionReplaySampleRate: 0,\n      trackViewsManually: true,\n      // Hide eveything in case the record screen is enabled (sessionReplaySampleRate)\n      defaultPrivacyLevel: 'mask',\n      useSecureSessionCookie: true,\n      allowedTracingUrls,\n      enableExperimentalFeatures: ['feature_flags'],\n      ...config.datadog,\n      beforeSend: (event, context) => {\n        if (event.type === 'error' && event.error?.monitored) {\n          const newEvent = { ...event, error: { ...event.error } };\n          delete newEvent.error.monitored;\n        }\n        return event.type === 'error'\n          && this.shouldIgnoreError(event, context as RumErrorEventDomainContext)\n          ? false\n          : true;\n      },\n    });\n\n    // Expose Datadog RUM instance for micro-frontends (MFEs)\n    // MFEs access Datadog via globalThis.DD_RUM since they can't share the npm import\n    (globalThis as { DD_RUM?: typeof datadogRum }).DD_RUM = datadogRum;\n\n    this.router.on('routeWillChange', this.onRouteWillChange);\n\n    datadogRum.setGlobalContextProperty('domain', this.customDomain.currentDomain);\n    // We don't know yet what is the project name so let's set it to a placeholder until we know\n    datadogRum.setGlobalContextProperty('project.name', '-');\n\n    this.isInitialized = true;\n    this.flushStackedEvents();\n  }\n\n  flushStackedEvents() {\n    this.stackedErrors.forEach(({ error, context }) => this.captureException(error, context));\n    this.stackedErrors = [];\n    this.stackedMessages.forEach(({ message, level, context }) =>\n      this.captureMessage(message, level, context),\n    );\n    this.stackedMessages = [];\n    this.stackedActions.forEach(({ name, context }) => this.captureAction(name, context));\n    this.stackedActions = [];\n  }\n\n  captureAction(name: string, context?: object) {\n    if (!this.isInitialized) this.stackedActions.push({ name, context });\n    datadogRum.addAction(name, context);\n  }\n\n  captureException(error: Error, context?: object) {\n    if (!this.isInitialized) this.stackedErrors.push({ error, context });\n    else datadogRum.addError(error, context);\n  }\n\n  captureMessage(message: string, level: Level, context: Record<string, unknown> = {}) {\n    if (!this.isInitialized) this.stackedMessages.push({ message, level, context });\n    else datadogRum.addError(new Error(message), { ...context, level });\n  }\n\n  setupUser() {\n    if (!this.isInitialized || !this.currentUser.model) return;\n\n    datadogRum.setUser({\n      id: this.currentUser.model.id,\n    });\n  }\n\n  setupGlobalContext() {\n    if (!this.isInitialized) return;\n\n    const {\n      currentProject: project,\n      currentEnvironment: environment,\n      rendering,\n      currentTeam,\n    } = this.lianaSession;\n    datadogRum.setGlobalContextProperty('project.id', project?.id);\n    datadogRum.setGlobalContextProperty('project.name', project?.name);\n    datadogRum.setGlobalContextProperty('environment.id', environment?.id);\n    datadogRum.setGlobalContextProperty('environment.name', environment?.name);\n    datadogRum.setGlobalContextProperty('environment.lianaName', environment?.lianaName);\n    datadogRum.setGlobalContextProperty('environment.lianaVersion', environment?.lianaVersion);\n    datadogRum.setGlobalContextProperty('environment.type', environment?.type);\n    datadogRum.setGlobalContextProperty(\n      'environment.hostedAgentType',\n      environment?.hostedAgentType,\n    );\n    datadogRum.setGlobalContextProperty('team.id', currentTeam?.id);\n    datadogRum.setGlobalContextProperty('rendering.id', rendering?.id);\n  }\n\n  async setupProjectNameFromCustomDomain() {\n    const projectName = await this.whiteLabel.getName();\n    if (projectName) {\n      await datadogRum.setGlobalContextProperty('project.name', projectName);\n    }\n  }\n\n  public addFeatureFlagEvaluation(featureKey: string, value: unknown) {\n    datadogRum.addFeatureFlagEvaluation(featureKey, value);\n  }\n\n  @action\n  onRouteWillChange(transition: Transition) {\n    try {\n      // When transitions are aborted, this function can be called with transition.to being null\n      // in some cases (hard to reproduce locally).\n      if (!transition.to) return;\n\n      let viewName = transition.to.name;\n      // In some cases (could not reproduce on local), the view name is actually the url which we don't want\n      if (viewName?.startsWith('/')) {\n        viewName = this.router.recognize(viewName)?.name || viewName;\n      }\n      datadogRum.startView(viewName);\n    } catch (e) {\n      // Errors in this function can silently break transitions in the app\n      this.tracker.captureException(e as Error);\n      console.error('Error in datadog service', e);\n    }\n  }\n\n  private shouldIgnoreError(event: RumErrorEvent, context: RumErrorEventDomainContext) {\n    return (\n      (context.error && context.error instanceof AbortClientRecordAgentError)\n      || (event?.error?.source === 'console'\n        && event?.error?.handling_stack?.includes('handleSilentError'))\n    );\n  }\n}\n","import Service from '@ember/service';\n\n/**\n * Service wrapper around the global document variable\n * in order to be able to unit test classes\n * This service meant to be completed\n */\nexport default class DocumentService extends Service {\n  addEventListener<K extends keyof DocumentEventMap>(\n    type: K,\n    listener: (this: Document, ev: DocumentEventMap[K]) => unknown,\n    options: boolean | AddEventListenerOptions,\n  ): void {\n    document.addEventListener(type, listener, options);\n  }\n\n  removeEventListener<K extends keyof DocumentEventMap>(\n    type: K,\n    listener: (this: Document, ev: DocumentEventMap[K]) => unknown,\n    options: boolean | AddEventListenerOptions,\n  ): void {\n    document.removeEventListener(type, listener, options);\n  }\n\n  createElement<K extends keyof HTMLElementTagNameMap>(\n    tagName: K,\n    options?: ElementCreationOptions,\n  ): HTMLElementTagNameMap[K] {\n    return document.createElement(tagName, options);\n  }\n\n  /**\n   * @deprecated\n   */\n  execCommand(commandId: string, showUI?: boolean, value?: string): boolean {\n    return document.execCommand(commandId, showUI, value);\n  }\n\n  get body(): HTMLElement {\n    return document.body;\n  }\n}\n","import type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport Service, { service } from '@ember/service';\n\nimport { AgentTypeEnum } from 'client/data/models/environment';\n\nexport type DocumentationVersion = 'v1' | 'php' | 'python' | 'nodejs' | 'ruby';\n\nexport type DocumentationPage =\n  | 'home'\n  | 'development workflow'\n  | 'relationships'\n  | 'smart actions'\n  | 'test environment';\n\nconst documentationVersionFromAgentType: Record<AgentTypeEnum, DocumentationVersion> = {\n  'forest-express-sequelize': 'v1',\n  'forest-express-mongoose': 'v1',\n  'forest-rails': 'v1',\n  'forest-laravel': 'v1',\n  'forest-integrations': 'v1',\n  'django-forestadmin': 'v1',\n  'agent-php': 'php',\n  'laravel-forestadmin': 'php',\n  'agent-python': 'python',\n  'forest-nodejs-agent': 'nodejs',\n  'agent-ruby': 'ruby',\n};\n\nconst documentationLinks: Record<DocumentationPage, { v1: string; v2: string; cloud: string }> = {\n  home: {\n    v1: '',\n    v2: '',\n    cloud: '',\n  },\n  'development workflow': {\n    v1: '/getting-started/development-workflow',\n    v2: '/deploying-to-production/development-workflow',\n    cloud: '', // no multi env in cloud\n  },\n  relationships: {\n    v1: '/reference-guide/relationships',\n    v2: '/agent-customization/relationships',\n    cloud: '/core-concepts/relationships',\n  },\n  'smart actions': {\n    v1: '/reference-guide/actions/create-and-manage-smart-actions',\n    v2: '/agent-customization/actions',\n    cloud: '/code-customization/actions',\n  },\n  'test environment': {\n    v1: '/reference-guide/how-it-works/developing-on-forest-admin/forest-cli-commands/environments-create',\n    v2: '/deploying-to-production/forest-cli-commands/environments-create',\n    cloud: '', // no multi env in cloud\n  },\n};\n\nexport default class DocumentationLinkGetterService extends Service {\n  @service lianaSession: LianaSessionService;\n\n  getDocumentationLink(page: DocumentationPage = 'home', agentType?: AgentTypeEnum): string {\n    const environment =\n      this.lianaSession.currentProject?.defaultEnvironment || this.lianaSession.currentEnvironment;\n\n    const documentationVersion = environment?.isFullHostedAgent\n      ? 'cloud'\n      : documentationVersionFromAgentType[\n          agentType || environment?.lianaName || AgentTypeEnum.NodejsV2\n        ] || 'nodejs';\n\n    switch (documentationVersion) {\n      case 'v1':\n        return `https://docs.forestadmin.com/documentation${documentationLinks[page].v1}`;\n      case 'cloud':\n        return `https://docs.forestadmin.com/cloud${documentationLinks[page].cloud}`;\n      default:\n        return `https://docs.forestadmin.com/developer-guide-agents-${documentationVersion}${documentationLinks[page].v2}`;\n    }\n  }\n}\n","import type DocumentService from 'client/legacy/services/document';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport Service, { service } from '@ember/service';\nimport windowMocked from 'ember-window-mock';\n\n// We need to have access to the real window object int this file (for events)\n\nexport default class DownloadService extends Service {\n  @service document: DocumentService;\n  @service tracker: TrackerService;\n\n  downloadContentAsFile(content: string | Blob, contentType: string, fileName: string) {\n    const blob = new Blob([content], { type: contentType });\n\n    const blobUrl = URL.createObjectURL(blob);\n\n    this.downloadBlobUrlAsFile(blobUrl, fileName);\n\n    URL.revokeObjectURL(blobUrl);\n  }\n\n  downloadBlobUrlAsFile(blobUrl: string, fileName: string) {\n    // Create a link element\n    const link = this.document.createElement('a');\n\n    // Set link's href to point to the Blob URL\n    link.href = blobUrl;\n    link.download = fileName;\n\n    // Append link to the body\n    this.document.body.appendChild(link);\n\n    // Dispatch click event on the link\n    // This is necessary as link.click() does not work on the latest firefox\n    link.dispatchEvent(\n      new MouseEvent('click', {\n        bubbles: true,\n        cancelable: true,\n        // eslint-disable-next-line no-restricted-globals\n        view: window,\n      }),\n    );\n\n    // Remove link from body\n    this.document.body.removeChild(link);\n  }\n\n  async openBlobUrlInAnotherTab(blobUrl: string) {\n    if (!/^data:/.test(blobUrl)) {\n      throw new Error('This file cannot be downloaded because of an invalid format.');\n    }\n\n    try {\n      const response = await fetch(blobUrl);\n      const fileURL = URL.createObjectURL(await response.blob());\n      windowMocked.open(fileURL, '_blank');\n    } catch (e) {\n      const error = e as Error;\n      console.error('Error while constructing the url', error);\n      this.tracker.captureException(error);\n\n      throw new Error('An error occurred while downloading the file.');\n    }\n  }\n}\n","import type EnvironmentModel from 'client/data/models/environment';\nimport type ProjectModel from 'client/data/models/project';\nimport type CustomApolloService from 'client/legacy/services/apollo';\n\nimport Service from '@ember/service';\nimport { queryManager } from 'ember-apollo-client';\n\nimport getEnvironmentsWithoutEnabledRolesQuery from 'client/gql/utils/get-environments-without-enabled-roles';\n\nexport default class EnvironmentsWithoutEnabledRolesService extends Service {\n  /**\n   * ⚠ ember-apollo-client provides this @queryManager\n   * BUT there is a bug with this library on overwritten routes\n   * The code from here: https://github.com/ember-graphql/ember-apollo-client/blob/v4.0.2/addon/-private/apollo/setup-hooks.js\n   * is not returning the promise from the original function, leading\n   * to bugs when beforeModel is asynchronous on a route.\n   */\n  @queryManager() apollo: CustomApolloService;\n  environmentsWithoutEnabledRoles: EnvironmentModel[];\n\n  constructor(properties?: object) {\n    super(properties);\n    this.environmentsWithoutEnabledRoles = [];\n  }\n\n  getAll() {\n    return this.environmentsWithoutEnabledRoles;\n  }\n\n  async query({\n    project,\n    forceRefetch = false,\n  }: {\n    project: ProjectModel;\n    forceRefetch?: boolean;\n  }) {\n    this.environmentsWithoutEnabledRoles = await getEnvironmentsWithoutEnabledRolesQuery(\n      this.apollo,\n      project.id,\n      forceRefetch,\n    );\n  }\n}\n","import type ToastrService from 'client/legacy/services/toastr';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type { AdapterError } from 'client/utils/ember-error-util';\n\nimport Service, { service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\n\nimport config from 'client/config/environment';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport {\n  CORSOrServerUnreachableFailedToFetchError,\n  FailedToFetchError,\n  ManagedError,\n  NoNetworkFailedToFetchError,\n  RequestTimeoutFailedToFetchError,\n  UnknownEmberDataFetchError,\n  UnknownFailedToFetchLayoutError,\n  UnknownInvalidJSONError,\n  UnknownLayoutError,\n} from 'client/utils/errors';\n\nexport enum NetworkErrorTypeEnum {\n  NoConnection = 'No connection',\n  ServerMisconfiguration = 'Server misconfiguration',\n  RequestTimeout = 'Request timeout',\n}\n\nexport default class ErrorHandlerService extends Service {\n  @service declare tracker: TrackerService;\n  @service declare toastr: ToastrService;\n\n  /**\n   * @deprecated Use handleError with a specific error instead\n   */\n  handleRequestFailure(\n    error: Error | AdapterError,\n    prefixErrorMessage: string,\n    shouldNotDiplayErrorMessage = false,\n  ) {\n    const customResponse =\n      'responseText' in error && typeof error.responseText === 'string' ? error.responseText : null;\n    const errorDetails = 'errors' in error ? error?.errors?.[0]?.detail : null;\n    const defaultError =\n      'status' in error && error?.status === 404 ? 'not found.' : 'unexpected error.';\n    const message = customResponse || errorDetails || defaultError;\n\n    if (!errorDetails) {\n      this.tracker.captureException(error);\n    }\n    console.error(error);\n\n    const suffixMessage = shouldNotDiplayErrorMessage ? '' : `: ${message}`;\n    this.toastr.perform(ToastrTypeEnum.Error, `${prefixErrorMessage}${suffixMessage}`);\n\n    return message;\n  }\n\n  handleError(error: Error, prefixErrorMessage: string, context?: object) {\n    this.handleSilentError(error, context);\n    this.toastr.perform(ToastrTypeEnum.Error, `${prefixErrorMessage}: ${error.message}`);\n  }\n\n  handleSilentError(error: Error, context?: object) {\n    const withErrorContext = { ...(context || {}), error };\n\n    this.tracker.captureException(error, withErrorContext);\n\n    console.error(error, isEmpty(context) ? undefined : context);\n\n    if (error instanceof ManagedError) error.flagAsMonitored();\n  }\n\n  isFailedToFetchError(error: Error) {\n    return (\n      (error instanceof TypeError\n        && [\n          'Failed to fetch',\n          'Load failed',\n          'NetworkError when attempting to fetch resource.',\n        ].includes(error.message))\n      || error instanceof FailedToFetchError\n    );\n  }\n\n  makeFailedToFetchError(\n    error: Error,\n    options: { url: string; type: string; options: Record<string, unknown>; duration: number },\n  ) {\n    const failedToFetchType = this.getFailedToFetchType(error as TypeError, options.duration);\n    switch (failedToFetchType) {\n      case NetworkErrorTypeEnum.NoConnection:\n        return new NoNetworkFailedToFetchError(error, options);\n      case NetworkErrorTypeEnum.RequestTimeout:\n        return new RequestTimeoutFailedToFetchError(error, options);\n      default:\n        return new CORSOrServerUnreachableFailedToFetchError(error, options);\n    }\n  }\n\n  makeUnknownLayoutError(error: Error): ManagedError {\n    if (error instanceof ManagedError) return error;\n\n    const matches = error.message.match(/Ember Data Request (.*) (.*) returned a (\\d+)/);\n    if (matches) {\n      return new UnknownEmberDataFetchError(error, {\n        method: matches[1],\n        url: matches[2],\n        status: matches[3],\n      });\n    }\n\n    if (this.isFailedToFetchError(error)) return new UnknownFailedToFetchLayoutError(error);\n\n    if (error?.message?.includes('is not valid JSON')) return new UnknownInvalidJSONError(error);\n\n    return new UnknownLayoutError(error);\n  }\n\n  getFailedToFetchType(error: TypeError, duration: number): NetworkErrorTypeEnum {\n    if (!navigator.onLine) return NetworkErrorTypeEnum.NoConnection;\n    if (duration >= config.APP.requestTimeout) return NetworkErrorTypeEnum.RequestTimeout;\n    return NetworkErrorTypeEnum.ServerMisconfiguration;\n  }\n}\n","import type { ShapeImpl } from 'bpmn-js/custom';\nimport type { ModdleElement } from 'bpmn-js/lib/BaseViewer';\nimport type ActionApprovalModel from 'client/data/models/action-approval';\nimport type CollectionModel from 'client/data/models/collection';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type FieldModel from 'client/data/models/field';\nimport type InboxModel from 'client/data/models/inbox';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type WorkspaceComponentOptionsNestedDocument from 'client/data/models/workspace-component-options';\nimport type { EndAssignmentReasonEnum } from 'client/features/inbox/services/internal-feature/workflow';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type RecordsContext from 'client/utils/liana-records/records-context';\nimport type NestedField from 'client/utils/nested/field';\nimport type { CurrentRecordSource } from 'client/utils/workspace/helper';\n\nimport Service from '@ember/service';\n\nimport evented from 'client/decorators/evented';\n\nexport enum EventBusEventsEnum {\n  WorkspaceContextChanged = 'workspace.context.changed',\n  WorkspaceRecordsOutOfCollectionOrSegment = 'workspace.records.out.of.collection.or.segment',\n  WorkspaceRefresh = 'workspace.refresh',\n  UserPreferenceManagerThemeChanged = 'user-preference-manager.theme.changed',\n  RefreshWorkspaceQueryParameters = 'refreshWorkspaceQueryParameters',\n  ResizeTableFrame = 'resizeTableFrame',\n  SmartActionApprovalApproved = 'smartAction.approval.approved',\n  SmartActionApprovalCreated = 'smartAction.approval.created',\n  SmartActionExecuted = 'smartAction.executed',\n  InboxAssignmentUpdated = 'inboxAssignment.updated',\n  CloseWorkflowInboxAssignment = 'workflow.inboxAssignment.close',\n  TeamPerformanceStateUpdated = 'teamPerformance.state.updated',\n  EndOfInterfaceLoading = 'endOfInterfaceLoading',\n  WorkspaceHideConfirmationRightPanel = 'workspace.hideConfirmationRightPanel',\n  WorkflowEditorItemPropertiesUpdated = 'workflowEditor.item.properties.updated',\n  WorkflowEditorOutgoingUpdated = 'workflowEditor.outgoing.updated',\n  WorkspaceOnRecordCreated = 'workspaceOnRecord.created',\n}\n\nexport enum EventBusClientRecordEventsEnum {\n  RecordCreated = 'recordCreated',\n  RecordEdited = 'recordEdited',\n  RecordDeleted = 'recordDeleted',\n  RecordRelationshipEdited = 'recordRelationshipEdited',\n}\n\nexport default class EventBusService extends evented<{\n  [EventBusEventsEnum.UserPreferenceManagerThemeChanged]: 'light' | 'dark';\n  [EventBusEventsEnum.WorkspaceContextChanged]: WorkspaceComponentOptionsNestedDocument;\n  [EventBusEventsEnum.SmartActionApprovalApproved]: ActionApprovalModel;\n  [EventBusEventsEnum.SmartActionApprovalCreated]: ActionApprovalModel;\n  [EventBusEventsEnum.SmartActionExecuted]: {\n    smartAction: CustomActionModel;\n    recordIds: string[];\n  };\n  [EventBusEventsEnum.InboxAssignmentUpdated]: { inbox: InboxModel };\n  [EventBusEventsEnum.TeamPerformanceStateUpdated]: void;\n  [EventBusEventsEnum.CloseWorkflowInboxAssignment]: {\n    workflowRunId: string;\n    reason: EndAssignmentReasonEnum;\n  };\n  [EventBusClientRecordEventsEnum.RecordCreated]: ClientRecordModel;\n  [EventBusClientRecordEventsEnum.RecordEdited]: ClientRecordModel;\n  [EventBusClientRecordEventsEnum.RecordRelationshipEdited]: {\n    parentRecord: ClientRecordModel;\n    field: FieldModel | NestedField;\n    record: unknown;\n  };\n  [EventBusClientRecordEventsEnum.RecordDeleted]: {\n    recordIds: string[];\n    collection: CollectionModel;\n  };\n  [EventBusEventsEnum.WorkspaceRecordsOutOfCollectionOrSegment]:\n    | WorkspaceComponentModel\n    | CurrentRecordSource;\n  [EventBusEventsEnum.EndOfInterfaceLoading]: { recordsContext: RecordsContext; time: number };\n  [EventBusEventsEnum.WorkflowEditorItemPropertiesUpdated]: ShapeImpl;\n  [EventBusEventsEnum.WorkflowEditorOutgoingUpdated]: ModdleElement;\n  [key: string]: unknown;\n}>(Service) {}\n","import type AssetMapService from 'asset-map-resolver/services/asset-map';\nimport type ForestEnvironmentSharedState from 'client/shared/states/forest-environment';\n\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nconst STAGES = [\n  'production',\n  'pre-production',\n  'staging',\n  'acceptance',\n  'sandbox',\n  'test',\n  'development',\n  'unknown',\n];\n\nexport default class FaviconManagerService extends Service {\n  @service assetMap: AssetMapService;\n  @service('shared/state/forest-environment')\n  forestEnvironmentSharedState: ForestEnvironmentSharedState;\n\n  faviconHref: string | null;\n  get favicon() {\n    return document.getElementById('favicon') as HTMLAnchorElement;\n  }\n\n  public async toggleDevMarker() {\n    return new Promise<void>((resolve) => {\n      if (!this.favicon) resolve();\n      if (this.forestEnvironmentSharedState.shouldShowDevMarker) {\n        const canvas = document.createElement('canvas');\n        const faviconSizePx = 64;\n        canvas.height = faviconSizePx;\n        canvas.width = faviconSizePx;\n\n        const ctx = canvas.getContext('2d');\n        const image = new Image(faviconSizePx, faviconSizePx);\n        image.onload = () => {\n          ctx.drawImage(image, 0, 0, faviconSizePx, faviconSizePx);\n          ctx.beginPath();\n          const size = 30;\n          ctx.moveTo(0, size);\n          ctx.lineTo(size, 0);\n          ctx.lineTo(0, 0);\n\n          ctx.closePath();\n          ctx.fillStyle = window\n            .getComputedStyle(document.body)\n            .getPropertyValue('--color-beta-on-surface-environment-development');\n          ctx.fill();\n          this.favicon.href = canvas.toDataURL();\n          resolve();\n        };\n        image.src = this.favicon.href;\n      } else {\n        this.favicon.href = this.faviconHref;\n        resolve();\n      }\n    });\n  }\n\n  private getFaviconHref(pictureUrl: string = null, stage: string = null) {\n    if (pictureUrl) return pictureUrl;\n    const type = stage && STAGES.includes(stage) ? `stage-${stage}` : 'default';\n    return this.assetMap.resolve(`/img/favicons/${type}.png`);\n  }\n\n  public setFavicon(pictureUrl: string = null, stage: string = null) {\n    if (this.favicon) {\n      this.faviconHref = this.getFaviconHref(pictureUrl, stage);\n      this.favicon.href = this.faviconHref;\n      void this.toggleDevMarker();\n    }\n  }\n}\n","import Service from '@ember/service';\nimport { saveAs } from 'file-saver';\n\nexport default class FileSaverService extends Service {\n  saveAs(blob: Blob | string, filename: string) {\n    saveAs(blob, filename);\n  }\n}\n","import type { AnyFunction } from '@ember/object/-private/types';\nimport type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\nimport type AuthenticationRedirectionService from 'client/legacy/services/authentication-redirection-service';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LogoutRedirectionService from 'client/legacy/services/logout-redirection-service';\nimport type RedirectionService from 'client/legacy/services/redirection';\nimport type ThirdPartySharedBusinessService from 'client/shared/services/third-party';\n\nimport { service } from '@ember/service';\nimport Session from 'ember-simple-auth/services/session';\n\nexport default class ForestSessionService extends Session {\n  @service router: RouterService;\n  @service currentUser: CurrentUserService;\n  @service('shared/third-party') thirdParty: ThirdPartySharedBusinessService;\n  @service redirection: RedirectionService;\n  @service authenticationRedirectionService: AuthenticationRedirectionService;\n  @service logoutRedirectionService: LogoutRedirectionService;\n\n  @service('feature/browser-extension/state')\n  browserExtensionState: BrowserExtensionFeatureState;\n\n  /**\n   * Checks whether the session is authenticated and if it is not, transitions\n   * to the specified route or invokes the specified callback.\n   * If a transition is in progress and is aborted, this method will save it in the\n   * session service's\n   * {{#crossLink \"SessionService/attemptedTransition:property\"}}{{/crossLink}}\n   * property so that  it can be retried after the session is authenticated. If\n   * the transition is aborted in Fastboot mode, the transition's target URL\n   * will be saved in a `ember_simple_auth-redirectTarget` cookie for use by the\n   * browser after authentication is complete.\n   * @param transition A transition that triggered the authentication requirement\n   *                                or null if the requirement originated independently\n   *                                of a transition\n   * @param routeOrCallback The route to transition to in case that the session\n   *                                          is not authenticated or a callback function\n   *                                          to invoke in that case\n   * @return {Boolean} true when the session is authenticated, false otherwise\n   * @public\n   */\n  requireAuthentication(transition: Transition, routeOrCallback: string | AnyFunction) {\n    if (!this.isAuthenticated) {\n      // TODO: intent does exist in transition runtime object but is private. to refactor\n      if ((transition as unknown as { intent: { url: string } })?.intent?.url) {\n        this.authenticationRedirectionService.setRedirectTarget(\n          (transition as unknown as { intent: { url: string } }).intent.url,\n        );\n      }\n    }\n\n    return super.requireAuthentication(transition, routeOrCallback);\n  }\n\n  /**\n   * Requires a route to be authenticated, and saves the current URL for future redirection\n   * Does not use the current transition (difference from requireAuthentication)\n   * @param routeOrCallback\n   */\n  requireAuthenticationAndRedirectToCurrentUrl(routeOrCallback: string | AnyFunction) {\n    if (!this.isAuthenticated) {\n      this.authenticationRedirectionService.setCurrentUrlRedirectTarget();\n    }\n\n    super.requireAuthentication(undefined, routeOrCallback);\n  }\n\n  /**\n   * This method is called whenever the session goes from being unauthenticated\n   * to being authenticated. If there is a transition that was previously\n   * intercepted by the\n   * {{#crossLink \"SessionService/requireAuthentication:method\"}}{{/crossLink}},\n   * it will retry it. If there is no such transition, the\n   * `ember_simple_auth-redirectTarget` cookie will be checked for a url that\n   * represents an attemptedTransition that was aborted in Fastboot mode,\n   * otherwise this action transitions to the specified\n   * routeAfterAuthentication.\n   * @method handleAuthentication\n   * @param routeAfterAuthentication The route to transition to\n   * @public\n   */\n  handleAuthentication(routeAfterAuthentication: string) {\n    this.ensureCurrentUserIsPopulated();\n\n    // redirection handling occurs on organization route\n    if (this.isConnectedWithSso()) return;\n\n    const ressourceTarget = this.authenticationRedirectionService.getRedirectAccess();\n    if (ressourceTarget) {\n      this.redirection.redirectToHref(ressourceTarget);\n      this.authenticationRedirectionService.deleteRedirectAccess();\n      return;\n    }\n\n    super.handleAuthentication(routeAfterAuthentication);\n  }\n\n  ensureCurrentUserIsPopulated() {\n    this.currentUser.populate(this.data?.authenticated?.tokenData);\n    void this.thirdParty.setupUserAndRendering();\n  }\n\n  get currentOrganizationId() {\n    return this.data?.authenticated?.tokenData?.organizationId;\n  }\n\n  isConnectedWithSso() {\n    return Boolean(this.data?.authenticated?.tokenData?.organizationId);\n  }\n\n  get refreshToken() {\n    return this.data?.authenticated?.refreshToken;\n  }\n\n  /**\n   * This method is called whenever the session goes from being authenticated to\n   * not being authenticated. __It reloads the Ember.js application__ by\n   * redirecting the browser to the specified route so that all in-memory data\n   * (such as Ember Data stores etc.) gets cleared.\n   * If the Ember.js application will be used in an environment where the users\n   * don't have direct access to any data stored on the client (e.g.\n   * [cordova](http://cordova.apache.org)) this action can be overridden to e.g.\n   * simply transition to the index route.\n   * @method handleInvalidation\n   * @param routeAfterInvalidation The route to transition to\n   */\n  public handleInvalidation(routeAfterInvalidation: string) {\n    this.currentUser.populate(undefined);\n    void this.thirdParty.setupUserAndRendering();\n\n    super.handleInvalidation(routeAfterInvalidation);\n  }\n\n  async invalidate(\n    options: { saveCurrentUrlForLogin?: boolean } = { saveCurrentUrlForLogin: true },\n  ) {\n    if (options?.saveCurrentUrlForLogin) {\n      this.authenticationRedirectionService.setCurrentUrlRedirectTarget();\n    } else {\n      this.authenticationRedirectionService.deleteRedirectTarget();\n    }\n\n    await super.invalidate();\n\n    this.logoutRedirectionService.redirectToLogoutUrlIfNecessary();\n  }\n\n  async invalidateAndSaveTransition(\n    targetUrl: string,\n    options?: { saveCurrentUrlForLogin?: boolean },\n  ) {\n    this.authenticationRedirectionService.setRedirectAccess(targetUrl);\n    await this.invalidate(options);\n  }\n\n  async waitUntilAuthenticated(): Promise<void> {\n    if (this.isAuthenticated) return;\n\n    await new Promise<void>((resolve) => {\n      const id = setInterval(() => {\n        if (this.isAuthenticated) {\n          clearInterval(id);\n          resolve();\n        }\n      }, 500);\n    });\n  }\n}\n","import type ApplicationInstance from '@ember/application/instance';\nimport type Transition from '@ember/routing/-private/transition';\nimport type GoogleJwtSignup from 'client/authenticators/google-jwt-signup';\nimport type { LoginErrorType } from 'client/features/authentication/services/internal-feature/login';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type GoogleAuthorizationService from 'client/legacy/services/google-authorization';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type ToastrService from 'client/legacy/services/toastr';\n\nimport { getOwner } from '@ember/application';\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { getFirstErrorDetail, isEmberError } from 'client/utils/ember-error-util';\nimport { AuthAlreadyInProgressError, UnknownGoogleSignupError } from 'client/utils/errors';\n\ninterface UnknownError {\n  json: { errors: [{ detail: string }] };\n}\n\nexport default class GoogleAuthenticationService extends Service {\n  @service googleAuthorization: GoogleAuthorizationService;\n  @service session: ForestSessionService;\n  @service segmentTracker: SegmentTrackerService;\n  @service currentUser: CurrentUserService;\n  @service toastr: ToastrService;\n  @service errorHandler: ErrorHandlerService;\n\n  async signUp({\n    invitationSecret,\n    token,\n    callback,\n  }: {\n    invitationSecret?: string;\n    token?: string;\n    // eslint-disable-next-line @typescript-eslint/no-explicit-any\n    callback: (...args: any[]) => Transition | Promise<any>;\n  }) {\n    try {\n      const authorizationCode: string =\n        token || (await this.googleAuthorization.triggerSignUpOnIframe());\n\n      await this.session.authenticate('authenticator:google-jwt-signup', {\n        invitationSecret,\n        authorizationCode,\n        withoutTorii: true,\n      });\n      this.segmentTracker.enable();\n      this.segmentTracker.identify(this.currentUser.model.id, this.currentUser.model.email, {\n        createdAt: new Date().toISOString(),\n      });\n      await callback({ userCreated: this.hasUserBeenCreated });\n    } catch (error) {\n      this.handleErrorNotification(error as Error);\n    }\n  }\n\n  async signIn({\n    invitationSecret,\n    token,\n    callback,\n    onError,\n  }: {\n    invitationSecret?: string;\n    token?: string;\n    callback: () => unknown | Promise<unknown>;\n    onError?: (error: LoginErrorType) => unknown;\n  }) {\n    try {\n      const authorizationCode = token || (await this.googleAuthorization.triggerLoginOnIframe());\n      await this.session.authenticate('authenticator:google-jwt', {\n        invitationSecret,\n        authorizationCode,\n        withoutTorii: true,\n      });\n      await callback();\n    } catch (e) {\n      const error = e as LoginErrorType;\n\n      if (error instanceof AuthAlreadyInProgressError) {\n        console.debug(error.message);\n        return;\n      }\n\n      if (error.message === 'TransitionAborted') return;\n\n      this.errorHandler.handleSilentError(error);\n\n      onError?.(error);\n    }\n  }\n\n  private handleErrorNotification(error: Error | UnknownError) {\n    let unknownErrorMessage: string = null;\n    if ((error as UnknownError).json?.errors?.[0]?.detail) {\n      unknownErrorMessage = (error as UnknownError).json.errors[0].detail;\n    } else if (isEmberError(error as Error)) {\n      unknownErrorMessage = getFirstErrorDetail(error as Error);\n    }\n    this.errorHandler.handleSilentError(\n      unknownErrorMessage ? new UnknownGoogleSignupError(unknownErrorMessage) : (error as Error),\n    );\n\n    if (\n      (error as Error).message === 'TransitionAborted'\n      || error.constructor.name === 'TransitionAbortedError'\n    ) {\n      console.warn('Transition error', error);\n    } else {\n      this.toastr.perform(\n        ToastrTypeEnum.Error,\n        `Invitation: ${unknownErrorMessage || 'unexpected error.'}`,\n      );\n    }\n  }\n\n  get hasUserBeenCreated(): boolean {\n    const owner: ApplicationInstance = getOwner(this) as ApplicationInstance;\n\n    const googleJwtSignup: GoogleJwtSignup = owner.lookup(\n      'authenticator:google-jwt-signup',\n    ) as GoogleJwtSignup;\n\n    return googleJwtSignup.userCreated;\n  }\n}\n","import type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport { action as bind } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\nimport {\n  AuthAlreadyInProgressError,\n  MissingUrlParamsEventNameGoogleAuthError,\n  MissingUrlParamsTokenGoogleAuthError,\n  OurselfMessageGoogleAuthError,\n} from 'client/utils/errors';\nimport tryParseJson from 'client/utils/try-parse-json';\n\nconst purpose = 'google-token-for-iframe';\nconst googleConfiguration = config.APP['google-oauth2'];\nconst SIGN_IN_EVENT_NAME = 'google-signed-in';\nconst SIGN_UP_EVENT_NAME = 'google-signed-up';\n\nexport type ActionName = 'google-sign-in' | 'google-sign-up';\ntype EventName = typeof SIGN_IN_EVENT_NAME | typeof SIGN_UP_EVENT_NAME;\n\n/**\n * This service allows to authenticate on Google\n *\n * For that the application needs to call `triggerLoginOnIframe` or `triggerSignUpOnIframe` which will\n * call `login` or `signup` FROM the iFrame.\n * The iframe will then open a new window to authenticate on Google. That window will redirect to\n * `google-auth-redirect` route which will get a google code and sent it to the iframe via a message.\n * The iframe will then communicate the token to its container using the `postMessage`.\n *\n * We need to execute the action from an iframe as Google is configured to return on `https://app.forestadmin.com` which can't work\n * with CustomDomain.\n */\nexport default class GoogleAuthorizationService extends Service {\n  @service private errorHandler: ErrorHandlerService;\n  @service private tracker: TrackerService;\n  private registrations: Partial<\n    Record<EventName, { resolve: (value: string) => void; reject: (e: Error) => void }>\n  > = {};\n\n  constructor(properties?: object) {\n    super(properties);\n\n    window.addEventListener('message', this.onMessage);\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n\n    window.removeEventListener('message', this.onMessage);\n  }\n\n  private authenticate(eventName: EventName) {\n    const url = 'https://accounts.google.com/o/oauth2/auth';\n    const queryParameters = new URLSearchParams({\n      redirect_uri: googleConfiguration.redirectUri,\n      client_id: googleConfiguration.clientId,\n      scope: googleConfiguration.scope,\n      access_type: googleConfiguration.accessType,\n      response_type: 'code',\n      flowName: 'GeneralOAuthFlow',\n      prompt: 'consent',\n      state: JSON.stringify({ eventName }),\n    });\n\n    window.open(`${url}?${queryParameters.toString()}`);\n\n    return new Promise((resolve) => {\n      window.addEventListener('message', (event: MessageEvent<string>) => {\n        // since we are listening for any messages, we ensure it is the correct one\n        // before resolving\n        const dataObj = tryParseJson<{ purpose: string; token: string }>(event.data);\n        if (dataObj && dataObj.purpose === purpose && dataObj.token) resolve(dataObj.token);\n      });\n    });\n  }\n\n  private async authenticateAndSendResponse(eventName: EventName) {\n    this.tracker.captureAction(`window.open ${eventName}`, { event: eventName });\n\n    const token = await this.authenticate(eventName);\n\n    const data = {\n      action: eventName,\n      authorization: token,\n      purpose,\n    };\n\n    this.tracker.captureAction(`window.open ${eventName}-done`, {\n      event: eventName,\n    });\n    window.parent.postMessage(JSON.stringify(data), '*');\n  }\n\n  private async getGoogleCredentialsFromIframe(\n    actionToSend: ActionName,\n    listenedAction: EventName,\n  ): Promise<string> {\n    const $iframe: HTMLIFrameElement = document.querySelector('.js-google-login-iframe');\n\n    $iframe.contentWindow.postMessage(JSON.stringify({ action: actionToSend }), '*');\n\n    return this.registerToNextMessageForAction(listenedAction);\n  }\n\n  @bind\n  private onMessage(event: MessageEvent<string>) {\n    const dataObj = tryParseJson<{ action: EventName; authorization: string; purpose: string }>(\n      event.data,\n    );\n\n    if (!dataObj) {\n      return;\n    }\n\n    // This happens when the iframe is closed and reopened again\n    // We check that the chain of message is not from ourselves\n    if (dataObj.authorization?.includes('\"action\":')) {\n      this.errorHandler.handleSilentError(new OurselfMessageGoogleAuthError(), {\n        message: event,\n      });\n      return;\n    }\n\n    if (\n      dataObj.action\n      && this.registrations[dataObj.action]\n      && dataObj.authorization\n      && dataObj.purpose === purpose\n    ) {\n      this.registrations[dataObj.action].resolve(dataObj.authorization);\n      delete this.registrations[dataObj.action];\n    }\n  }\n\n  private async registerToNextMessageForAction(action: EventName): Promise<string> {\n    if (this.registrations[action]) {\n      this.registrations[action].reject(new AuthAlreadyInProgressError());\n    }\n\n    return new Promise<string>((resolve, reject) => {\n      this.registrations[action] = { resolve, reject };\n    });\n  }\n\n  async signUp() {\n    // NOTICE: this has for effect to give a refresh token when we will exchange\n    //         the authorizationCode.\n    return this.authenticateAndSendResponse(SIGN_UP_EVENT_NAME);\n  }\n\n  async login() {\n    return this.authenticateAndSendResponse(SIGN_IN_EVENT_NAME);\n  }\n\n  async triggerLoginOnIframe() {\n    return this.getGoogleCredentialsFromIframe('google-sign-in', SIGN_IN_EVENT_NAME);\n  }\n\n  async triggerSignUpOnIframe() {\n    return this.getGoogleCredentialsFromIframe('google-sign-up', SIGN_UP_EVENT_NAME);\n  }\n\n  private get urlParams() {\n    const url = new URL(window.location as unknown as string);\n    const searchParameters = url.searchParams;\n    let eventName: EventName;\n    try {\n      eventName = (JSON.parse(searchParameters.get('state')) as { eventName: EventName }).eventName;\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (e) {\n      console.error('Cannot find eventName from callback url');\n    }\n    return {\n      token: searchParameters.get('code'),\n      eventName,\n    };\n  }\n\n  // This function is called in the google auth tab just after redirection at /google-auth-redirect\n  public async sendGoogleTokenToIframeOrReturnIt() {\n    const { urlParams } = this;\n    if (!urlParams?.eventName)\n      this.errorHandler.handleSilentError(new MissingUrlParamsEventNameGoogleAuthError());\n    if (!urlParams?.token)\n      this.errorHandler.handleSilentError(\n        new MissingUrlParamsTokenGoogleAuthError(urlParams?.eventName),\n      );\n    if (window.opener) {\n      // the purpose is there to ensure that the receiving iframe understands it as a google token\n      (window.opener as WindowProxy).postMessage(\n        JSON.stringify({ token: urlParams.token, purpose }),\n      );\n\n      window.close();\n    } else {\n      // the tab from which the auth was started was most likely closed before the\n      // end of the Google auth. We just return the token for the login process to continue within\n      // this tab/window #86c29p5a2\n      return urlParams;\n    }\n    return null;\n  }\n}\n","import type { AllowedAttribute, IOptions } from 'sanitize-html';\n\nimport Service from '@ember/service';\nimport sanitize from 'sanitize-html';\n\nimport { isValidYouTubeEmbedUrl } from 'client/utils/youtube-url-validator';\n\ntype AllowedAttributeRecord = Record<string, AllowedAttribute[]>;\ntype AllowedClassRecord = { [index: string]: boolean | Array<string | RegExp> };\ntype AllowedSchemesByTag = { [index: string]: string[] };\n\ntype HtmlSanitizerOptions = {\n  allowedTags?: string[];\n  allowedClasses?: AllowedClassRecord;\n  allowedAttributes?: AllowedAttributeRecord;\n  allowedSchemes?: string[];\n  allowedSchemesByTag?: AllowedSchemesByTag;\n};\n\nfunction mergeAllowedByTag<T = AllowedAttributeRecord | AllowedClassRecord | AllowedSchemesByTag>(\n  ...sources: T[]\n): T {\n  return sources.filter(Boolean).reduce(\n    (accumulator, source) =>\n      Object.entries(source).reduce((sourceAccumulator, [tag, allowed]) => {\n        if (Array.isArray(sourceAccumulator[tag]) && Array.isArray(allowed)) {\n          sourceAccumulator[tag] = Array.from(\n            new Set([...(sourceAccumulator[tag] as string[]), ...(allowed as string[])]),\n          );\n        } else if (Array.isArray(allowed)) {\n          sourceAccumulator[tag] = allowed;\n        }\n\n        return sourceAccumulator;\n      }, accumulator),\n    {},\n  ) as T;\n}\nconst TEXT_OPTIONS: IOptions = {\n  allowedTags: [],\n  allowedAttributes: {},\n};\n\nexport function sanitizeText(content: string | number) {\n  if (!content) {\n    return '';\n  }\n\n  return sanitize(content as string, TEXT_OPTIONS);\n}\n\nexport function escapeText(unsafe: string | number): string {\n  if (!unsafe) {\n    return '';\n  }\n\n  return `${unsafe}`\n    .replace(/&/g, '&amp;')\n    .replace(/</g, '&lt;')\n    .replace(/>/g, '&gt;')\n    .replace(/\"/g, '&quot;')\n    .replace(/'/g, '&#039;');\n}\n\nexport default class HtmlSanitizerService extends Service {\n  /**\n   * This function needs to be used when displaying HTML content entered by a user\n   * in order to avoid XSS for\n   * ⚠ SECURITY REASONS ⚠\n   * For instance, if someone enters some HTML containing a script tag,\n   * or a onload/onerror attribute, it can compromise users' accounts\n   *\n   * This function allows a lot of html tags to be used\n   */\n  sanitizeRichText(content: string | number, options?: HtmlSanitizerOptions): string {\n    if (!content) {\n      return '';\n    }\n\n    const RICH_TEXT_OPTIONS: IOptions = {\n      ...sanitize.defaults,\n\n      disallowedTagsMode: 'escape',\n\n      allowedSchemes: [...sanitize.defaults.allowedSchemes, 'data'],\n\n      allowedTags: [\n        ...sanitize.defaults.allowedTags,\n        ...(options?.allowedTags || []),\n        'img',\n        'del',\n        'iframe',\n      ],\n\n      allowedAttributes: mergeAllowedByTag(sanitize.defaults.allowedAttributes, {\n        '*': ['style', 'data-test-*', 'class'],\n\n        a: ['download'],\n\n        iframe: [\n          'src',\n          'width',\n          'height',\n          'frameborder',\n          'allowfullscreen',\n          'allow',\n          'class',\n          'referrerpolicy',\n        ],\n      }),\n\n      allowedSchemesByTag: mergeAllowedByTag(sanitize.defaults.allowedSchemesByTag, {\n        img: ['http', 'https', 'ftp', 'mailto', 'tel', 'data'],\n\n        iframe: ['https'],\n      }),\n\n      transformTags: {\n        iframe: (_tagName: string, attribs: Record<string, string>) => {\n          // Only YouTube embed URLs are allowed\n          if (!attribs.src || !isValidYouTubeEmbedUrl(attribs.src)) {\n            return { tagName: 'span', attribs: {} };\n          }\n\n          return {\n            tagName: 'iframe',\n            attribs: {\n              src: attribs.src,\n              width: attribs.width || '560',\n              height: attribs.height || '315',\n              frameborder: '0',\n              allowfullscreen: 'true',\n              allow: 'autoplay; clipboard-write; encrypted-media; picture-in-picture',\n              referrerpolicy: 'strict-origin-when-cross-origin',\n              ...(attribs.class ? { class: attribs.class } : {}),\n            },\n          };\n        },\n      },\n    };\n\n    const sanitizeOptions: IOptions = {\n      ...RICH_TEXT_OPTIONS,\n      allowedSchemesByTag: mergeAllowedByTag(\n        RICH_TEXT_OPTIONS.allowedSchemesByTag,\n        options?.allowedSchemesByTag,\n      ),\n      allowedAttributes: mergeAllowedByTag(\n        RICH_TEXT_OPTIONS.allowedAttributes,\n        options?.allowedAttributes,\n      ),\n      allowedClasses: mergeAllowedByTag(RICH_TEXT_OPTIONS.allowedClasses, options?.allowedClasses),\n    };\n\n    return sanitize(content as string, sanitizeOptions);\n  }\n\n  sanitizeTemplate(content: string): string {\n    return this.sanitizeRichText(content, {\n      allowedAttributes: { '*': ['class'] },\n      allowedTags: ['style'],\n    });\n  }\n\n  /**\n   * Use this function to make sure that some text content is NOT\n   * interpreted as HTML\n   *\n   * Html entities will still be transformed\n   *\n   * This function needs to be used when displaying text that we don't control\n   * inside HTML content in order to avoid XSS for\n   * ⚠ SECURITY REASONS ⚠\n   */\n  sanitizeText = sanitizeText;\n\n  /**\n   * Use this function to make sure that some text content is NOT\n   * interpreted as HTML at ALL\n   *\n   * Html entities will be escaped\n   *\n   * This function needs to be used when displaying text that we don't control\n   * inside HTML content in order to avoid XSS for\n   * ⚠ SECURITY REASONS ⚠\n   *\n   */\n  escapeText = escapeText;\n}\n","import Service from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\n\nexport default class HubspotLiveChatService extends Service {\n  addLiveChat() {\n    if (!config.APP.hubspotLiveChatUrl) {\n      return;\n    }\n    const currentLiveChatScript = document.querySelector('#hs-script-loader');\n    if (!currentLiveChatScript) {\n      const liveChatScript = document.createElement('script');\n      liveChatScript.type = 'text/javascript';\n      liveChatScript.id = 'hs-script-loader';\n      liveChatScript.async = true;\n      liveChatScript.defer = true;\n      liveChatScript.src = config.APP.hubspotLiveChatUrl;\n      document.head.append(liveChatScript);\n    } else {\n      window.HubSpotConversations?.widget.load({ widgetOpen: false });\n    }\n  }\n\n  removeLiveChat() {\n    window.HubSpotConversations?.widget.remove();\n  }\n}\n","import type CurrentUserService from 'client/legacy/services/current-user';\n\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\n\nexport default class JimoService extends Service {\n  @service private readonly currentUser: CurrentUserService;\n\n  private isInitialized = false;\n\n  initialize(): void {\n    if (this.isInitialized) {\n      return;\n    }\n\n    const projectId = config.APP.jimoProjectId;\n    if (!projectId) {\n      return;\n    }\n\n    if (window.jimo != null) {\n      this.isInitialized = true;\n      return;\n    }\n\n    window.jimo = [];\n    window.JIMO_PROJECT_ID = projectId;\n\n    const script = document.createElement('script');\n    script.type = 'text/javascript';\n    script.async = true;\n    script.src = 'https://undercity.usejimo.com/jimo-invader.js';\n    document.head.append(script);\n\n    this.isInitialized = true;\n  }\n\n  setupUser(): void {\n    if (!this.isInitialized) {\n      return;\n    }\n\n    const user = this.currentUser.model;\n    if (!user || !window.jimo) {\n      return;\n    }\n\n    window.jimo.push(['do', 'identify', [user.id]]);\n  }\n}\n","import type OrganizationModel from 'client/data/models/organization';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\n\nimport Service, { service } from '@ember/service';\n\nimport applicationStorageKey from 'client/utils/application-storage-key';\n\ntype LastVisitedOrganizationItem = { email: string; organizationId: string | number };\nexport default class LastVisitedOrganizationService extends Service {\n  @service localStorage: LocalStorageService;\n  @service session: ForestSessionService;\n  @service currentUser: CurrentUserService;\n\n  setLastVisitedOrganizationId(organizationId: string | number) {\n    if (this.currentUser?.model) {\n      this.localStorage.setItem(\n        applicationStorageKey.LOCAL_LAST_ORGANIZATION_WITHOUT_SSO_ID_KEY,\n        JSON.stringify({ organizationId, email: this.currentUser.model.email }),\n      );\n    }\n  }\n\n  deleteLastVisitedOrganizationId() {\n    this.localStorage.removeItem(applicationStorageKey.LOCAL_LAST_ORGANIZATION_WITHOUT_SSO_ID_KEY);\n  }\n\n  getLastVisitedOrganizationWithoutSso() {\n    const stringObject = this.localStorage.getItem(\n      applicationStorageKey.LOCAL_LAST_ORGANIZATION_WITHOUT_SSO_ID_KEY,\n    );\n\n    if (stringObject) {\n      const parsedData = JSON.parse(stringObject) as LastVisitedOrganizationItem;\n      return this.currentUser.model.email === parsedData.email ? parsedData.organizationId : null;\n    }\n\n    return null;\n  }\n\n  defineLastVisitedOrganization(organization: OrganizationModel) {\n    if (organization && !organization.isPersonal && !this.session.isConnectedWithSso()) {\n      this.setLastVisitedOrganizationId(organization.id);\n    } else if (organization && organization.isPersonal) {\n      this.deleteLastVisitedOrganizationId();\n    }\n  }\n\n  checkSsoAuthenticationSwitch() {\n    const lastOrgId = this.getLastVisitedOrganizationWithoutSso();\n    if (this.session.currentOrganizationId === Number(lastOrgId)) {\n      this.deleteLastVisitedOrganizationId();\n    }\n  }\n}\n","import type EnvironmentModel from 'client/data/models/environment';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type { SemVer } from 'semver';\n\nimport Service, { service } from '@ember/service';\nimport semver, { satisfies } from 'semver';\n\nimport { AgentTypeEnum } from 'client/data/models/environment';\n\nexport enum FeaturesEnum {\n  ImportCsv = 'importCsv',\n  TimezoneRegion = 'timezoneRegion',\n  SignWithGoogle = 'signWithGoogle',\n  LiveQuery = 'liveQuery',\n  SegmentLiveQuery = 'segmentLiveQuery',\n  RelatedHasManyEditable = 'relatedHasManyEditable',\n  SingleSmartActionValues = 'singleSmartActionValues',\n  HasManyDeletion = 'hasManyDeletion',\n  IpWhitelist = 'ipWhitelist',\n  ChartObjective = 'chartObjective',\n  ChartLeaderboard = 'chartLeaderboard',\n  DedicatedCountRequest = 'dedicatedCountRequest',\n  TwoFactorAuthentication = 'twoFactorAuthentication',\n  ExportSecure = 'exportSecure',\n  FilterTypeOrWithReferences = 'filterTypeOrWithReferences',\n  GenericFilters = 'genericFilters',\n  Scopes = 'scopes',\n  Healthcheck = 'healthcheck',\n  HasManySortingOnReferences = 'hasManySortingOnReferences',\n  TableViewSelectAllRecords = 'tableViewSelectAllRecords',\n  OpenIdConnect = 'openIdConnect',\n  Hooks = 'hooks',\n  FilterSmartField = 'filterSmartField',\n  FilterRelatedData = 'filterRelatedData',\n  RequestHeaderContext = 'requestHeaderContext',\n  FilterArrayIncludeAll = 'filterArrayIncludeAll',\n  UploadsWithFilename = 'uploadsWithFilename',\n  ApplicationWideScopes = 'applicationWideScopes',\n  GlobalBulkSmartActionHook = 'globalBulkSmartActionHook',\n  InverseOfSupport = 'inverseOfSupport',\n  NoApplicationUrl = 'noApplicationUrl',\n  TemplatingInChart = 'templatingInChart',\n  ConditionalCustomAction = 'conditionalCustomAction',\n  WebhookCustomActions = 'webhook-custom-actions',\n  UpdateRecordActions = 'update-record-actions',\n  MultipleSortingFields = 'multiple-sorting-fields',\n  Capabilities = 'capabilities',\n  PostHTTPMethodList = 'postHTTPMethodList',\n  QuarterlyTimeRange = 'QuarterlyTimeRange',\n}\ntype AgentVersion =\n  | `${number}.${number}.${number}`\n  | `${number}.${number}.${number}-beta.${number}`;\ntype AgentVersions = { [key in AgentTypeEnum]?: AgentVersion };\ntype AgentLinks = { [key in AgentTypeEnum]?: string };\ntype FeatureTable = {\n  name: FeaturesEnum;\n  minimalVersion: AgentVersions;\n};\n\nconst agentVersionsAlive: AgentVersions = {\n  'forest-express-sequelize': '9.0.0',\n  'forest-express-mongoose': '9.0.0',\n  'forest-rails': '8.0.0',\n  'django-forestadmin': '1.0.0',\n  'laravel-forestadmin': '1.0.0',\n  'agent-ruby': '1.0.0-beta.56',\n};\n\nconst agentVersionsSupported: AgentVersions = {\n  'forest-express-sequelize': '9.0.0',\n  'forest-express-mongoose': '9.0.0',\n  'forest-rails': '8.0.0',\n  'django-forestadmin': '2.0.0', // NOTICE: Will show a banner to all projects running this \"v1\" agent.\n  'laravel-forestadmin': '2.0.0', // NOTICE: Will show a banner to all projects running this \"v1\" agent.\n  'agent-ruby': '1.0.0-beta.56',\n};\n\nconst linkDocumentationAgentUpgrade: AgentLinks = {\n  'forest-express-sequelize':\n    'https://docs.forestadmin.com/documentation/how-tos/maintain/upgrade-notes-sql-mongodb',\n  'forest-express-mongoose':\n    'https://docs.forestadmin.com/documentation/how-tos/maintain/upgrade-notes-sql-mongodb',\n  'forest-rails': 'https://docs.forestadmin.com/documentation/how-tos/maintain/upgrade-notes-rails',\n  'django-forestadmin':\n    'https://docs.forestadmin.com/developer-guide-agents-python/getting-started/migrating',\n  'laravel-forestadmin':\n    'https://docs.forestadmin.com/developer-guide-agents-php/getting-started/migrating',\n};\n\nconst featureTables: Array<FeatureTable> = [\n  {\n    name: FeaturesEnum.ImportCsv,\n    minimalVersion: {\n      'forest-express-mongoose': '1.2.0',\n      'forest-express-sequelize': '1.3.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-rails': '1.7.0',\n      'forest-laravel': '0.1.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.TimezoneRegion,\n    minimalVersion: {\n      'forest-express-sequelize': '1.5.5',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-rails': '2.5.1',\n      'forest-express-mongoose': '5.6.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.SignWithGoogle,\n    minimalVersion: {\n      'forest-express-mongoose': '2.1.0',\n      'forest-express-sequelize': '2.1.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-rails': '2.1.0',\n      'forest-laravel': '0.2.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.LiveQuery,\n    minimalVersion: {\n      'forest-express-sequelize': '2.2.0',\n      'forest-rails': '2.2.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n    },\n  },\n  {\n    name: FeaturesEnum.SegmentLiveQuery,\n    minimalVersion: {\n      'forest-express-sequelize': '2.11.0',\n      'forest-rails': '2.7.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n    },\n  },\n  {\n    name: FeaturesEnum.RelatedHasManyEditable,\n    minimalVersion: {\n      'forest-express-mongoose': '2.5.0',\n      'forest-integrations': '0.0.1',\n      'forest-nodejs-agent': '0.0.1',\n    },\n  },\n  {\n    name: FeaturesEnum.SingleSmartActionValues,\n    minimalVersion: {\n      'forest-express-sequelize': '2.6.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '2.6.0',\n      'forest-rails': '2.6.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.HasManyDeletion,\n    minimalVersion: {\n      'forest-express-mongoose': '2.7.0',\n      'forest-express-sequelize': '2.7.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-rails': '2.5.0',\n      'forest-laravel': '0.3.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.IpWhitelist,\n    minimalVersion: {\n      'forest-express-mongoose': '2.8.1',\n      'forest-express-sequelize': '2.8.1',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-rails': '2.13.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.ChartObjective,\n    minimalVersion: {\n      'forest-express-sequelize': '2.12.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-rails': '2.15.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.ChartLeaderboard,\n    minimalVersion: {\n      'forest-express-sequelize': '2.12.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-rails': '2.15.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.DedicatedCountRequest,\n    minimalVersion: {\n      'forest-express-mongoose': '2.12.0',\n      'forest-express-sequelize': '2.14.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-rails': '2.11.0',\n      'forest-laravel': '0.5.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.TwoFactorAuthentication,\n    minimalVersion: {\n      'forest-express-mongoose': '2.13.0',\n      'forest-express-sequelize': '2.15.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-rails': '2.12.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.ExportSecure,\n    minimalVersion: {\n      'forest-express-sequelize': '3.0.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '3.0.0',\n      'forest-rails': '3.0.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.FilterTypeOrWithReferences,\n    minimalVersion: {\n      'forest-express-sequelize': '3.0.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '3.0.0',\n      'forest-rails': '3.1.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.GenericFilters,\n    minimalVersion: {\n      'forest-express-sequelize': '4.0.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '4.0.0',\n      'forest-rails': '4.0.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.Scopes,\n    minimalVersion: {\n      'forest-express-sequelize': '4.0.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '4.0.0',\n      'forest-rails': '4.0.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.Healthcheck,\n    minimalVersion: {\n      'forest-express-sequelize': '5.6.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '5.7.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.HasManySortingOnReferences,\n    minimalVersion: {\n      'forest-express-sequelize': '5.7.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '5.7.0',\n      'forest-rails': '4.2.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.TableViewSelectAllRecords,\n    minimalVersion: {\n      'forest-express-sequelize': '6.0.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '6.0.0',\n      'forest-rails': '5.0.0-beta.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.OpenIdConnect,\n    minimalVersion: {\n      'forest-express-sequelize': '7.0.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '7.0.0',\n      'forest-rails': '6.0.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.Hooks,\n    minimalVersion: {\n      'forest-express-sequelize': '6.6.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '6.6.0',\n      'forest-rails': '5.3.3',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.FilterSmartField,\n    minimalVersion: {\n      'forest-express-sequelize': '6.7.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '6.7.0',\n      'forest-rails': '6.2.0',\n      'forest-integrations': '0.0.1',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.FilterRelatedData,\n    minimalVersion: {\n      'forest-express-sequelize': '7.3.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '7.3.0',\n      'forest-rails': '4.0.0',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.RequestHeaderContext,\n    minimalVersion: {\n      'forest-express-sequelize': '8.0.0-beta.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '8.0.0-beta.0',\n    },\n  },\n  {\n    name: FeaturesEnum.FilterArrayIncludeAll,\n    minimalVersion: {\n      'forest-express-sequelize': '7.1.0',\n      'forest-nodejs-agent': '0.0.1',\n    },\n  },\n  {\n    name: FeaturesEnum.UploadsWithFilename,\n    minimalVersion: {\n      'forest-express-sequelize': '8.0.0-beta.0',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '8.0.0-beta.0',\n      'forest-rails': '7.0.0-beta.0',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.ApplicationWideScopes,\n    minimalVersion: {\n      'forest-express-sequelize': '8.0.0-beta.4',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '8.0.0-beta.1',\n      'forest-rails': '7.0.0-beta.5',\n      'django-forestadmin': '1.0.0',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.GlobalBulkSmartActionHook,\n    minimalVersion: {\n      'forest-rails': '7.0.0-beta.4',\n      'forest-express-sequelize': '8.0.0-beta.11',\n      'forest-nodejs-agent': '0.0.1',\n      'forest-express-mongoose': '8.0.0-beta.7',\n      'laravel-forestadmin': '0.0.1',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.InverseOfSupport,\n    minimalVersion: {\n      // Notice: TODO add mongoose\n      'forest-rails': '7.0.0',\n      'forest-express-sequelize': '8.0.6',\n      'forest-nodejs-agent': '0.0.1',\n    },\n  },\n  {\n    name: FeaturesEnum.NoApplicationUrl,\n    minimalVersion: {\n      'forest-rails': '7.7.0',\n      'forest-nodejs-agent': '0.0.1',\n      'laravel-forestadmin': '1.2.0',\n      'django-forestadmin': '1.4.0',\n      'agent-php': '0.0.1',\n      'agent-python': '0.0.1',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.TemplatingInChart,\n    minimalVersion: {\n      'forest-rails': '8.0.0-beta.1',\n      'forest-nodejs-agent': '1.4.0',\n      'forest-express-sequelize': '9.0.0',\n      'forest-express-mongoose': '9.0.0',\n      'agent-php': '0.0.1',\n      'agent-python': '1.0.0-beta.11',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.ConditionalCustomAction,\n    minimalVersion: {\n      'forest-rails': '8.0.0-beta.1',\n      'forest-nodejs-agent': '1.5.0',\n      'forest-express-sequelize': '9.2.0',\n      'forest-express-mongoose': '9.2.0',\n      'agent-php': '0.0.1',\n      'agent-python': '1.0.0-beta.11',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.MultipleSortingFields,\n    minimalVersion: {\n      'forest-rails': '8.3.0',\n      'forest-nodejs-agent': '1.40.0',\n      'agent-python': '1.8.0',\n      'agent-ruby': '1.0.0-beta.56',\n    },\n  },\n  {\n    name: FeaturesEnum.Capabilities,\n    minimalVersion: {\n      'agent-php': '1.18.0',\n      'agent-python': '1.17.0',\n      'agent-ruby': '1.0.0-beta.76',\n      'forest-nodejs-agent': '1.52.0',\n    },\n  },\n  {\n    name: FeaturesEnum.PostHTTPMethodList,\n    minimalVersion: {\n      'forest-rails': '9.10.0',\n    },\n  },\n  {\n    name: FeaturesEnum.QuarterlyTimeRange,\n    minimalVersion: {\n      'forest-nodejs-agent': '1.60.0',\n      'agent-python': '1.23.0',\n    },\n  },\n];\n\nexport default class LianaFeaturesService extends Service {\n  @service lianaSession: LianaSession;\n\n  private getLianaFeatureVersion(featureName: FeaturesEnum, environment: EnvironmentModel) {\n    const { lianaFeatures } = environment;\n    return lianaFeatures?.[featureName] as string | SemVer;\n  }\n\n  public featureMinimalVersion(featureName: FeaturesEnum, environment: EnvironmentModel) {\n    const feature: FeatureTable = featureTables.find((item) => item.name === featureName);\n    const { lianaName, lianaVersion } = environment;\n\n    if (!feature || !lianaName || !lianaVersion) {\n      return null;\n    }\n\n    const minimalVersion = feature.minimalVersion[lianaName];\n    return minimalVersion || null;\n  }\n\n  public isFeatureCompatible(\n    featureName: FeaturesEnum,\n    environment: EnvironmentModel = this.lianaSession.currentEnvironment,\n  ) {\n    if (!environment) {\n      return false;\n    }\n\n    const { lianaVersion } = environment;\n    const minimalVersion = this.featureMinimalVersion(featureName, environment);\n    return minimalVersion ? semver.gte(lianaVersion, minimalVersion) : false;\n  }\n\n  public isLianaFeatureCompatible(\n    featureName: FeaturesEnum,\n    environment: EnvironmentModel,\n    minimalVersion: string | SemVer,\n  ) {\n    const lianaFeatureVersion = this.getLianaFeatureVersion(featureName, environment);\n    return lianaFeatureVersion ? semver.gte(lianaFeatureVersion, minimalVersion) : false;\n  }\n\n  public isFeatureAvailable(featureName: FeaturesEnum, environment: EnvironmentModel) {\n    return (\n      !!this.getLianaFeatureVersion(featureName, environment)\n      || !!this.featureMinimalVersion(featureName, environment)\n    );\n  }\n\n  public allEnvironmentsAreFeatureCompatible(\n    featureName: FeaturesEnum,\n    environments: EnvironmentModel[],\n  ) {\n    return environments.every((environment) => this.isFeatureCompatible(featureName, environment));\n  }\n\n  public someEnvironmentsAreFeatureCompatible(\n    featureName: FeaturesEnum,\n    environments: EnvironmentModel[],\n  ) {\n    return environments.any((environment) => this.isFeatureCompatible(featureName, environment));\n  }\n\n  public get isGenericFiltersAvailable() {\n    return this.isFeatureCompatible(\n      FeaturesEnum.GenericFilters,\n      this.lianaSession.currentEnvironment,\n    );\n  }\n\n  public get isApplicationWideScopesAvailable() {\n    return this.isFeatureCompatible(\n      FeaturesEnum.ApplicationWideScopes,\n      this.lianaSession.currentEnvironment,\n    );\n  }\n\n  get isFilterOnRelatedDataAvailable() {\n    return this.isFeatureCompatible(\n      FeaturesEnum.FilterRelatedData,\n      this.lianaSession.currentEnvironment,\n    );\n  }\n\n  get isMultipleSortingFieldsAvailable() {\n    return this.isFeatureCompatible(\n      FeaturesEnum.MultipleSortingFields,\n      this.lianaSession.currentEnvironment,\n    );\n  }\n\n  get isCapabilitiesAvailable() {\n    return this.isFeatureCompatible(\n      FeaturesEnum.Capabilities,\n      this.lianaSession.currentEnvironment,\n    );\n  }\n\n  private isOlderThanAgentVersions(agentVersions: AgentVersions, environment: EnvironmentModel) {\n    const { lianaName, lianaVersion } = environment;\n\n    if (!lianaName || !lianaVersion) {\n      return false;\n    }\n\n    const minimalVersion: string = agentVersions[lianaName];\n    if (minimalVersion) {\n      return semver.lt(lianaVersion, minimalVersion);\n    }\n\n    return false;\n  }\n\n  public hasReachedEndOfLife(environment: EnvironmentModel) {\n    return this.isOlderThanAgentVersions(agentVersionsSupported, environment);\n  }\n\n  public getEndOfLifeMessage(environment: EnvironmentModel) {\n    if (!this.hasReachedEndOfLife(environment)) {\n      return null;\n    }\n\n    const { lianaVersion } = environment;\n    if (this.isOlderThanAgentVersions(agentVersionsAlive, environment)) {\n      return `FINAL REMINDER: without upgrade, YOUR PROJECT WILL STOP WORKING VERY SOON as it is running on an end-of-life agent version (v${lianaVersion}).`;\n    }\n    return `The agent version on which your project is running (v${lianaVersion}) will soon reach its end-of-life and needs to be upgraded.`;\n  }\n\n  public getLinkDocumentationAgentUpgrade(lianaName: string) {\n    if (!lianaName) {\n      return null;\n    }\n\n    return linkDocumentationAgentUpgrade[lianaName] as string;\n  }\n\n  public get canUseNewPolymorphicUpdateRelationshipFormat() {\n    const supportedRangeVersions = '>=8.3.2 <9 || >=9.3.4';\n\n    if (this.lianaSession.currentEnvironment.lianaName === AgentTypeEnum.Rails) {\n      return satisfies(this.lianaSession.currentEnvironment.lianaVersion, supportedRangeVersions);\n    }\n\n    return [AgentTypeEnum.RubyV2, AgentTypeEnum.PythonV2, AgentTypeEnum.PhpV2].includes(\n      this.lianaSession.currentEnvironment.lianaName,\n    );\n  }\n}\n","import type AuthenticatedServerFetchService from 'client/legacy/services/authenticated-server-fetch';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type PerformanceWarnerService from 'client/legacy/services/performance-warner';\n\nimport Service, { service } from '@ember/service';\n\nexport type ServerFetchRequestInit = RequestInit & {\n  headers?: Record<string, string>;\n  omitTimezone?: boolean;\n};\n\nexport default class LianaServerFetchService extends Service {\n  @service lianaSession: LianaSessionService;\n  @service authenticatedServerFetch: AuthenticatedServerFetchService;\n  @service performanceWarner: PerformanceWarnerService;\n\n  /**\n   * @param path Path on the liana, prefixed with '/'\n   * @param options fetch options\n   */\n  async fetch(\n    path: string,\n    options: ServerFetchRequestInit = { omitTimezone: false },\n  ): Promise<Response> {\n    await this.lianaSession.waitRefreshIfNecessary();\n\n    const url = this.convertPathToUrl(path);\n\n    return this.performanceWarner.handle(\n      this.authenticatedServerFetch.fetch(url, options),\n      path,\n      options,\n    );\n  }\n\n  async abortableFetch(path: string, options: ServerFetchRequestInit = { omitTimezone: false }) {\n    await this.lianaSession.waitRefreshIfNecessary();\n\n    const url = this.convertPathToUrl(path);\n\n    const controller = new AbortController();\n    const { signal } = controller;\n\n    return {\n      abort: () => controller.abort(),\n      ready: this.authenticatedServerFetch.fetch(url, { ...options, signal }),\n      signal,\n    };\n  }\n\n  /** Converts path to agent resource into absolute URL */\n  private convertPathToUrl(path: string) {\n    if (!path) {\n      throw new Error('Url must not be empty');\n    }\n\n    const endpoint = this.lianaSession.currentEnvironment?.apiEndpoint;\n    if (!endpoint) {\n      throw new Error('Missing required apiEndpoint');\n    }\n\n    const endpointWithoutEndingSlash = endpoint.endsWith('/') ? endpoint.slice(0, -1) : endpoint;\n    const pathWithoutStartingSlash = path.startsWith('/') ? path.slice(1) : path;\n    return `${endpointWithoutEndingSlash}/${pathWithoutStartingSlash}`;\n  }\n}\n","import type ProjectModel from 'client/data/models/project';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport { queryManager } from 'ember-apollo-client';\nimport window from 'ember-window-mock';\nimport moment from 'moment';\n\nimport config from 'client/config/environment';\nimport { pathToRenderingBuilder } from 'client/data/models/rendering';\nimport evented from 'client/decorators/evented';\nimport { default as getSessionTokenFromApollo } from 'client/gql/utils/get-session-token';\n\nexport default class LianaSessionLegacyService extends evented(Service) {\n  @service() private store: StoreService;\n  @service() private session: ForestSessionService;\n  @queryManager apollo;\n\n  @tracked public currentRenderingId: string | null = null;\n  @tracked public currentProject: ProjectModel | null = null;\n  private readonly localStorageName = 'forest_sessions_rendering_ids';\n  private readonly cookieName = 'forest_session_data';\n\n  // NOTICE: As newly set authentication cookies are accessible only after a page refresh,\n  //         Temporarily persist tokens after agent authentication to ensure authentication works\n  //         without page refresh.\n  @tracked private authenticatedMap: Record<string, string> = {};\n  @tracked private sessionInvalidatedEventListener: ((event: StorageEvent) => void) | null = null;\n\n  get rendering() {\n    if (this.currentRenderingId) {\n      return this.store.peekRecord('rendering', this.currentRenderingId);\n    }\n    return null;\n  }\n\n  public async getSessionToken() {\n    return getSessionTokenFromApollo(this.apollo);\n  }\n\n  get currentEnvironment() {\n    return this.rendering?.environment;\n  }\n\n  get currentTeam() {\n    return this.rendering?.team;\n  }\n\n  get authToken(): string | null {\n    const tokenFromCookie = window.Cookies.get(this.cookieName);\n    if (tokenFromCookie) {\n      return tokenFromCookie;\n    }\n\n    return (\n      this.authenticatedMap\n      && this.currentRenderingId\n      && this.authenticatedMap[this._getCurrentSessionCookiePath()]\n    );\n  }\n\n  get isLoggedIn() {\n    return !!this.authToken;\n  }\n\n  _getCurrentSessionCookiePath() {\n    // NOTICE: In test mode, set the cookies path to '/' to keep the authentication on testing urls.\n    return config.environment === 'test'\n      ? '/'\n      : this.rendering\n          && pathToRenderingBuilder(\n            this.currentProject.name,\n            this.currentEnvironment.name,\n            this.currentTeam.name,\n          );\n  }\n\n  setupSession() {\n    this.bindSessionInvalidatedEvent();\n  }\n\n  isAuthenticated() {\n    return !!this.authToken;\n  }\n\n  setLianaAuthToken(token: string) {\n    const { currentRenderingId } = this;\n    const rendering = this.store.peekRecord('rendering', currentRenderingId);\n    const secure = rendering && rendering.hasSecureEndpoint;\n    const cookiePath = this._getCurrentSessionCookiePath();\n\n    window.Cookies.set(this.cookieName, token, {\n      path: cookiePath,\n      secure,\n      expires: 14,\n    });\n\n    this.addCookiePathInLocalStorage(cookiePath);\n    this.authenticatedMap = { ...this.authenticatedMap, [cookiePath]: token };\n    this.trigger('authenticationSucceeded');\n  }\n\n  invalidate() {\n    const cookiePath = this._getCurrentSessionCookiePath();\n    const options = {\n      path: cookiePath,\n    };\n\n    window.Cookies.remove(this.cookieName, options);\n\n    this.removeCookiePathInLocalStorage(cookiePath);\n    this.sendSessionInvalidatedEventAndUnbind();\n  }\n\n  invalidateAll() {\n    const { localStorageName } = this;\n    const allRenderingIdentifiersInCookie = this.getRenderingSessionsSavedInCookie(true);\n\n    allRenderingIdentifiersInCookie.forEach((cookiePath) => {\n      window.Cookies.remove(this.cookieName, {\n        path: cookiePath,\n      });\n      this.removeCookiePathInLocalStorage(cookiePath);\n    });\n\n    localStorage.removeItem(localStorageName);\n    this.sendSessionInvalidatedEventAndUnbind();\n    this.authenticatedMap = {};\n  }\n\n  sendSessionInvalidatedEventAndUnbind() {\n    this.unbindSessionInvalidatedEvent();\n    this.trigger('invalidationSucceeded');\n    this.sendSessionInvalidatedEvent();\n  }\n\n  getRenderingSessionsSavedInCookie(retrieveRenderingsIfLocalStorageEmpty = false) {\n    const { localStorageName } = this;\n    const cookieRenderingIds = localStorage.getItem(localStorageName);\n    const localStorageEmpty = !cookieRenderingIds;\n\n    if (localStorageEmpty && retrieveRenderingsIfLocalStorageEmpty) {\n      // NOTICE: If the local storage has been cleaned manually, try to retrieve a maximum of\n      //         renderingIds for which we will try to clean the session cookie.\n      const renderingIds = this.store.peekAll('rendering').map((rendering) => rendering.id);\n\n      const { currentRenderingId } = this;\n      if (currentRenderingId && !renderingIds.includes(currentRenderingId)) {\n        renderingIds.push(currentRenderingId);\n      }\n\n      return renderingIds;\n    }\n\n    return cookieRenderingIds ? cookieRenderingIds.split(';') : [];\n  }\n\n  sendSessionInvalidatedEvent() {\n    localStorage.setItem('lianaSessionInvalidated', `${moment().valueOf()}`);\n  }\n\n  bindSessionInvalidatedEvent() {\n    const sessionInvalidatedEventListener = this.onSessionInvalidatedEvent.bind(this);\n\n    window.addEventListener('storage', sessionInvalidatedEventListener);\n    this.sessionInvalidatedEventListener = sessionInvalidatedEventListener;\n  }\n\n  unbindSessionInvalidatedEvent() {\n    window.removeEventListener('storage', this.sessionInvalidatedEventListener);\n  }\n\n  onSessionInvalidatedEvent(event: StorageEvent) {\n    if (event.key === 'lianaSessionInvalidated') {\n      this.unbindSessionInvalidatedEvent();\n      this.trigger('invalidationSucceeded');\n    }\n  }\n\n  addCookiePathInLocalStorage(identifier: string) {\n    const cookieRenderingIdentifiers = this.getRenderingSessionsSavedInCookie();\n\n    if (!cookieRenderingIdentifiers.includes(identifier)) {\n      cookieRenderingIdentifiers.push(identifier);\n      localStorage.setItem(this.localStorageName, cookieRenderingIdentifiers.join(';'));\n    }\n  }\n\n  removeCookiePathInLocalStorage(identifier: string) {\n    const cookieRenderingIdentifiers = this.getRenderingSessionsSavedInCookie();\n\n    if (cookieRenderingIdentifiers.includes(identifier)) {\n      cookieRenderingIdentifiers.removeObject(identifier);\n      localStorage.setItem(this.localStorageName, cookieRenderingIdentifiers.join(';'));\n    }\n\n    this.authenticatedMap = { ...this.authenticatedMap };\n    delete this.authenticatedMap[identifier];\n  }\n}\n","import { computed } from '@ember/object';\nimport Service from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport interface AuthenticatedLinkData {\n  apiEndpoint: string;\n  renderingId: number | string;\n  expiration?: Date;\n  expirationHandler?: number;\n  token?: string;\n  nextRefreshTimestampMs?: number;\n  refreshPromise?: Promise<unknown>;\n}\n\nexport default class LianaSessionOidcLinksService extends Service {\n  private authenticatedLianaLinks: Map<string, AuthenticatedLinkData> = new Map();\n\n  @tracked private internalVersion = 1;\n\n  /**\n   * This property is intended to change every time something changes in the list of\n   * links. Use it in computed properties to ensure that they are correctly\n   * re-computed when something changes\n   */\n  @computed('internalVersion')\n  public get linksVersion() {\n    return this.internalVersion;\n  }\n\n  public hasLink(renderingId: number | string): boolean {\n    return this.authenticatedLianaLinks.has(`${renderingId}`);\n  }\n\n  public getLink(renderingId: number | string): AuthenticatedLinkData {\n    return this.authenticatedLianaLinks.get(`${renderingId}`);\n  }\n\n  setLink(linkData: AuthenticatedLinkData) {\n    this.incrementVersion();\n    this.authenticatedLianaLinks.set(`${linkData.renderingId}`, linkData);\n  }\n\n  public deleteLink(renderingId: number | string) {\n    this.authenticatedLianaLinks.delete(`${renderingId}`);\n    this.incrementVersion();\n  }\n\n  public get allLinks() {\n    return Array.from(this.authenticatedLianaLinks.values());\n  }\n\n  private incrementVersion() {\n    this.internalVersion += 1;\n  }\n}\n","import type EmberError from '@ember/error';\nimport type AuthenticationFeatureService from 'client/features/authentication/services/feature';\nimport type ApplicationCheckerService from 'client/legacy/services/application-checker';\nimport type DatadogService from 'client/legacy/services/datadog';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type LianaSessionOidcLinksService from 'client/legacy/services/liana-session-oidc-links';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type SetTimeService from 'client/legacy/services/set-time';\nimport type StoreService from 'client/legacy/services/store';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type { ErrorBody } from 'client/utils/errors/authentication-error';\n\nimport { computed } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nimport evented from 'client/decorators/evented';\nimport {\n  getFirstErrorDetail,\n  getFirstErrorName,\n  isEmberError,\n} from 'client/utils/ember-error-util';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport {\n  AgentError,\n  FailedToFetchLianaSessionOidcError,\n  FailedToFetchServerSessionOidcError,\n  ForbiddenLianaSessionOidcError,\n  ManagedError,\n  TwoFactorLianaSessionOidcError,\n  UnauthorizedLianaSessionOidcError,\n  UnauthorizedServerSessionOidcError,\n  UnknownCheckAgentError,\n  UnknownLianaSessionOidcError,\n  UnknownNot200ResponseLianaSessionOidcError,\n  UnknownServerSessionOidcError,\n} from 'client/utils/errors';\nimport AuthenticationError from 'client/utils/errors/authentication-error';\nimport TwoFactorAuthenticationRequiredError from 'client/utils/errors/two-factor-authentication-required-error';\nimport UserForbiddenError from 'client/utils/errors/user-forbidden-error';\nimport tryGetBody from 'client/utils/try-get-body';\n\ninterface LianaAuthenticationResponse {\n  tokenData: { exp: number };\n  token?: string;\n  authorizationUrl?: string;\n  callbackUrl?: string;\n}\n\ninterface LianaAuthenticationResponseWithRendering extends LianaAuthenticationResponse {\n  renderingId: string | number;\n}\n\nasync function is2FARequiredError(response: Response) {\n  if (response?.status === 403) {\n    const clone = response.clone();\n    const error = (await clone.json()) as EmberError & { error_description?: string };\n    return (\n      (isEmberError(error) && getFirstErrorName(error) === 'TwoFactorAuthenticationRequiredError')\n      || error.error_description === 'Two factor authentication is required to access this project'\n    );\n  }\n\n  return false;\n}\n\nasync function isForbiddenError(response: Response) {\n  return response.status === 403;\n}\n\nexport default class LianaSessionOidcService extends evented(Service) {\n  @service private store: StoreService;\n  @service private setTime: SetTimeService;\n  @service private serverFetch: ServerFetchService;\n  @service private lianaSessionOidcLinks: LianaSessionOidcLinksService;\n  @service private applicationChecker: ApplicationCheckerService;\n  @service private tracker: TrackerService;\n  @service private errorHandler: ErrorHandlerService;\n  @service('feature/authentication')\n  private authenticationFeatureService: AuthenticationFeatureService;\n\n  @service private datadog: DatadogService;\n\n  @tracked currentRenderingId: string | number | null = null;\n  private readonly refreshLeewayInSeconds = 300;\n\n  @computed('currentRenderingId', 'store')\n  get rendering() {\n    if (this.currentRenderingId) {\n      return this.store.peekRecord('rendering', this.currentRenderingId);\n    }\n    return null;\n  }\n\n  public invalidate() {\n    this.removeAuthentication(this.currentRenderingId);\n  }\n\n  public invalidateAll() {\n    this.lianaSessionOidcLinks.allLinks.forEach(({ renderingId }) => {\n      this.removeAuthentication(renderingId);\n    });\n  }\n\n  /**\n   * Please keep lianaSessionOidcLinks.linksVersion in the list of watched values\n   * in order to be sure to correctly react to changes in logged in status\n   */\n  @computed('currentRenderingId', 'lianaSessionOidcLinks.linksVersion')\n  get isLoggedIn() {\n    return Boolean(\n      this.lianaSessionOidcLinks.linksVersion\n        && this.lianaSessionOidcLinks.getLink(this.currentRenderingId)?.token,\n    );\n  }\n\n  /**\n   * Please keep 'lianaSessionOidcLinks.linksVersion' in the list of watched properties\n   * in order to correctly react to changes in login status\n   */\n  @computed('currentRenderingId', 'isLoggedIn', 'lianaSessionOidcLinks.linksVersion')\n  get authToken() {\n    if (this.isLoggedIn) {\n      return this.lianaSessionOidcLinks.getLink(this.currentRenderingId).token;\n    }\n\n    return undefined;\n  }\n\n  setupSession() {}\n\n  public isAuthenticated() {\n    return this.isLoggedIn;\n  }\n\n  private addAuthentication({\n    renderingId,\n    apiEndpoint,\n    expiration,\n    token,\n  }: {\n    renderingId: number | string;\n    apiEndpoint: string;\n    expiration: Date;\n    token?: string;\n  }) {\n    const now = new Date();\n\n    if (expiration < now || this.isDestroyed) {\n      return;\n    }\n\n    const nextRefreshTimestampMs = expiration.getTime() - this.refreshLeewayInSeconds * 1e3;\n\n    this.datadog.captureAction('auth-check', {\n      expiration,\n      now,\n      nextRefreshTimestampMs,\n      nextRefreshPlannedAt: nextRefreshTimestampMs - now.getTime(),\n    });\n\n    this.lianaSessionOidcLinks.setLink({\n      apiEndpoint,\n      renderingId,\n      expiration,\n      nextRefreshTimestampMs,\n      expirationHandler: this.setTime.timeout(async () => {\n        await this.refreshAuthentication();\n      }, nextRefreshTimestampMs - now.getTime()),\n      token,\n    });\n  }\n\n  private removeAuthentication(renderingId: number | string) {\n    if (this.isDestroyed) {\n      return;\n    }\n\n    const params = this.lianaSessionOidcLinks.getLink(renderingId);\n\n    if (params) {\n      this.setTime.clearTimeout(params.expirationHandler);\n      this.lianaSessionOidcLinks.deleteLink(renderingId);\n    }\n  }\n\n  private async _requestAuthentication(\n    renderingId: string | number,\n  ): Promise<LianaAuthenticationResponseWithRendering> {\n    const lianaResponse = await this._requestLianaAuthentication(renderingId);\n\n    if (!lianaResponse) return undefined;\n\n    if (lianaResponse.authorizationUrl) {\n      const { authorizationUrl } = lianaResponse;\n      return this._requestServerAuthentication(authorizationUrl, renderingId);\n    }\n\n    return {\n      renderingId,\n      ...lianaResponse,\n    };\n  }\n\n  private async _requestLianaAuthentication(\n    renderingId: string | number,\n  ): Promise<LianaAuthenticationResponse> {\n    const { apiEndpoint } = this.rendering.environment;\n\n    let authenticationResponse: Response;\n\n    try {\n      authenticationResponse = await window.fetch(`${apiEndpoint}/forest/authentication`, {\n        method: 'POST',\n        mode: 'cors',\n        body: JSON.stringify({ renderingId }),\n        headers: {\n          'Content-Type': 'application/json; charset=utf-8',\n        },\n        redirect: 'follow',\n        credentials: 'include',\n      });\n\n      if (authenticationResponse.status !== 200) {\n        throw new AuthenticationError(\n          'An error occurred during the authentication process',\n          await tryGetBody(authenticationResponse),\n        );\n      }\n\n      return (await authenticationResponse.json()) as LianaAuthenticationResponse;\n    } catch (error) {\n      if (this.errorHandler.isFailedToFetchError(error as Error)) {\n        // Is the agent reachable, are the agent's cors ok?\n        let checkedAgentError = await this.applicationChecker.checkAgent(apiEndpoint);\n        if (!(checkedAgentError instanceof AgentError)) {\n          checkedAgentError = new UnknownCheckAgentError(error as Error);\n        }\n        this.errorHandler.handleSilentError(\n          new FailedToFetchLianaSessionOidcError(checkedAgentError as AgentError),\n          { renderingId, checkedAgentError, error },\n        );\n        throw checkedAgentError;\n      } else if (authenticationResponse?.status === 401) {\n        const wrappedError = new UnauthorizedLianaSessionOidcError(error as Error);\n        this.errorHandler.handleSilentError(wrappedError, {\n          renderingId,\n          responseBody: await tryGetBody(authenticationResponse),\n        });\n        return undefined;\n      } else if (await is2FARequiredError(authenticationResponse)) {\n        const twoFactorError = new TwoFactorLianaSessionOidcError(error as Error);\n        this.errorHandler.handleSilentError(twoFactorError, { renderingId });\n        throw new TwoFactorAuthenticationRequiredError();\n      } else if (error instanceof ManagedError) {\n        this.errorHandler.handleSilentError(error, { renderingId });\n        throw error;\n      } else if (error instanceof AuthenticationError) {\n        const responseBody = await tryGetBody(authenticationResponse);\n        const unknownError = new UnknownNot200ResponseLianaSessionOidcError(error as Error);\n        this.errorHandler.handleSilentError(unknownError, { responseBody, renderingId });\n        throw error;\n      } else {\n        const unknownError = new UnknownLianaSessionOidcError(error as Error);\n        this.errorHandler.handleSilentError(unknownError, { renderingId });\n        throw unknownError;\n      }\n    }\n  }\n\n  private async _requestServerAuthentication(\n    authorizationUrl: string,\n    renderingId: string | number,\n  ) {\n    let oidcResponse: Response;\n    try {\n      oidcResponse = await this.serverFetch.fetch(authorizationUrl, {\n        method: 'GET',\n        mode: 'cors',\n        redirect: 'follow',\n        headers: {\n          'Content-Type': 'application/json; charset=utf-8',\n        },\n        credentials: 'include',\n      });\n\n      if (oidcResponse.status !== 200) {\n        const body = await tryGetBody(oidcResponse);\n        throw new AuthenticationError(\n          'An error occurred during the authentication process',\n          body as ErrorBody,\n        );\n      }\n\n      const jsonOidcResponse = (await oidcResponse.json()) as LianaAuthenticationResponse;\n\n      if (jsonOidcResponse.callbackUrl) {\n        const lianaResponse = await this._callLianaCallback(jsonOidcResponse.callbackUrl);\n        return {\n          renderingId,\n          ...lianaResponse,\n        };\n      }\n\n      return {\n        renderingId,\n        ...jsonOidcResponse,\n      };\n    } catch (error) {\n      if (this.errorHandler.isFailedToFetchError(error as Error)) {\n        this.errorHandler.handleSilentError(\n          new FailedToFetchServerSessionOidcError(error as Error),\n          { renderingId },\n        );\n        throw error;\n      } else if (await is2FARequiredError(oidcResponse)) {\n        const twoFactorError = new TwoFactorLianaSessionOidcError(error as Error);\n        this.errorHandler.handleSilentError(twoFactorError, { renderingId });\n        throw new TwoFactorAuthenticationRequiredError();\n      } else if (oidcResponse?.status === 401) {\n        const wrappedError = new UnauthorizedServerSessionOidcError(error as Error);\n        this.errorHandler.handleSilentError(wrappedError, {\n          renderingId,\n          responseBody: await tryGetBody(oidcResponse),\n        });\n        return undefined;\n      } else if (error instanceof AuthenticationError) {\n        const responseBody = await tryGetBody(oidcResponse);\n        const unknownError = new UnknownNot200ResponseLianaSessionOidcError(error as Error);\n        this.errorHandler.handleSilentError(unknownError, { responseBody, renderingId });\n        throw error;\n      } else {\n        const unknownError = new UnknownServerSessionOidcError(error as Error);\n        this.errorHandler.handleSilentError(unknownError, { renderingId });\n        throw unknownError;\n      }\n    }\n  }\n\n  private async _callLianaCallback(\n    callbackUrl: string,\n  ): Promise<{ tokenData: { exp: number }; token?: string }> {\n    let callbackResponse: Response;\n\n    try {\n      callbackResponse = await fetch(callbackUrl, {\n        method: 'GET',\n        mode: 'cors',\n        headers: {\n          'Content-Type': 'application/json; charset=utf-8',\n        },\n        credentials: 'include',\n      });\n\n      if (callbackResponse.status !== 200) {\n        throw new AuthenticationError(\n          'An error occurred during the authentication callback process',\n          await tryGetBody(callbackResponse),\n        );\n      }\n\n      return (await callbackResponse.json()) as { tokenData: { exp: number }; token?: string };\n    } catch (error) {\n      if (this.errorHandler.isFailedToFetchError(error as Error)) {\n        // Is the agent reachable, are the agent's cors ok?\n        let checkedAgentError = await this.applicationChecker.checkAgent(callbackUrl);\n        if (!(checkedAgentError instanceof AgentError)) {\n          checkedAgentError = new UnknownCheckAgentError(error as Error);\n        }\n        this.errorHandler.handleSilentError(\n          new FailedToFetchLianaSessionOidcError(checkedAgentError as AgentError),\n          { checkedAgentError, error },\n        );\n        throw checkedAgentError;\n      } else if (await is2FARequiredError(callbackResponse)) {\n        const twoFactorError = new TwoFactorLianaSessionOidcError(error as Error);\n        this.errorHandler.handleSilentError(twoFactorError);\n        throw new TwoFactorAuthenticationRequiredError();\n      } else if (await isForbiddenError(callbackResponse)) {\n        const body = await tryGetBody(callbackResponse);\n        this.errorHandler.handleSilentError(new ForbiddenLianaSessionOidcError(error as Error));\n        throw new UserForbiddenError(getFirstErrorDetail(body));\n      } else if (error instanceof ManagedError) {\n        this.errorHandler.handleSilentError(error);\n        throw error;\n      } else if (error instanceof AuthenticationError) {\n        const responseBody = await tryGetBody(callbackResponse);\n        const unknownError = new UnknownNot200ResponseLianaSessionOidcError(error as Error);\n        this.errorHandler.handleSilentError(unknownError, { responseBody });\n        throw error;\n      } else {\n        const unknownError = new UnknownLianaSessionOidcError(error as Error);\n        this.errorHandler.handleSilentError(unknownError);\n        throw unknownError;\n      }\n    }\n  }\n\n  async authenticate() {\n    if (this.lianaSessionOidcLinks.getLink(this.currentRenderingId)) {\n      this.trigger('authenticationSucceeded');\n      return;\n    }\n\n    const isAuthenticated = await this.authenticateAndGetTokenFromLiana({\n      renderingId: this.currentRenderingId,\n    });\n    if (isAuthenticated) this.trigger('authenticationSucceeded');\n  }\n\n  private async refreshAuthentication() {\n    if (this.isDestroyed || this.isDestroying) return;\n\n    try {\n      const lianaLink = this.lianaSessionOidcLinks.getLink(this.currentRenderingId) || {\n        apiEndpoint: this.rendering.environment.apiEndpoint,\n        renderingId: this.currentRenderingId,\n      };\n\n      const refreshPromise = this.authenticateAndGetTokenFromLiana({\n        renderingId: this.currentRenderingId,\n      });\n\n      await waitForNextRunLoop();\n      this.lianaSessionOidcLinks.setLink({\n        ...lianaLink,\n        refreshPromise,\n      });\n\n      const isAuthenticated = await refreshPromise;\n\n      if (!isAuthenticated) {\n        throw new AuthenticationError('Unable to refresh the agent session');\n      }\n    } catch (error) {\n      if (this.isDestroyed || this.isDestroying) return;\n\n      console.warn('Error during agent session refresh', error);\n\n      this.invalidate();\n      throw error;\n    }\n  }\n\n  private async authenticateAndGetTokenFromLiana({\n    renderingId,\n  }: {\n    renderingId: string | number;\n  }) {\n    if (this.isDestroyed || this.isDestroying) return false;\n\n    const rendering = this.store.peekRecord('rendering', this.currentRenderingId);\n    const { apiEndpoint } = rendering.environment;\n\n    const authentication = await this._requestAuthentication(renderingId);\n\n    if (!authentication) {\n      await this.authenticationFeatureService.logout();\n      return false;\n    }\n\n    this.addAuthentication({\n      // We cannot use this.currentRenderingId here because\n      // this value could have changed between the requested authentication\n      // and this line (because it's asynchronous)\n      renderingId: authentication.renderingId,\n      apiEndpoint,\n      expiration: new Date(authentication.tokenData.exp * 1e3),\n      // With https connections, the token is not sent\n      // but directly set as an HTTP-ONLY cookie\n      token: authentication.token,\n    });\n\n    return true;\n  }\n\n  public async waitRefreshIfNecessary() {\n    const lianaLink = this.lianaSessionOidcLinks.getLink(this.currentRenderingId);\n\n    if (!lianaLink) {\n      await this.refreshAuthentication();\n      return;\n    }\n\n    // eslint-disable-next-line @typescript-eslint/no-misused-promises\n    if (lianaLink.refreshPromise) {\n      await lianaLink.refreshPromise;\n      return;\n    }\n\n    if (lianaLink?.nextRefreshTimestampMs && lianaLink.nextRefreshTimestampMs <= Date.now()) {\n      this.setTime.clearTimeout(lianaLink.expirationHandler);\n      await this.refreshAuthentication();\n    }\n  }\n}\n","import type ProjectModel from 'client/data/models/project';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaSessionLegacyService from 'client/legacy/services/liana-session-legacy';\nimport type LianaSessionOidcService from 'client/legacy/services/liana-session-oidc';\nimport type StoreService from 'client/legacy/services/store';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type SessionService from 'ember-simple-auth/services/session';\n\nimport { computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport evented from 'client/decorators/evented';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport { getFirstErrorDetail } from 'client/utils/ember-error-util';\n\nexport default class LianaSessionService extends evented(Service) {\n  @service private readonly lianaSessionLegacy: LianaSessionLegacyService;\n  @service private readonly lianaSessionOidc: LianaSessionOidcService;\n  @service private readonly store: StoreService;\n  @service private readonly session: SessionService;\n  @service private readonly toastr: ToastrService;\n  @service private readonly lianaFeatures: LianaFeaturesService;\n\n  @tracked private _currentRenderingId: string | null = null;\n  @tracked private _allowControlHeaders: string[] | null = null;\n  @tracked private _loginDisabled = false;\n\n  @tracked currentProject: ProjectModel | null = null;\n  @alias('currentProject.organization') currentOrganization;\n\n  supportsHeader(headerName: string): boolean {\n    if (this._allowControlHeaders) {\n      return (\n        this._allowControlHeaders.includes('*')\n        || this._allowControlHeaders.includes(headerName.toLowerCase())\n      );\n    }\n    return false;\n  }\n\n  @computed('_currentRenderingId')\n  get currentRenderingId() {\n    return this._currentRenderingId;\n  }\n\n  set currentRenderingId(renderingId: string) {\n    this._currentRenderingId = renderingId;\n    this.lianaSessionLegacy.currentRenderingId = renderingId;\n    this.lianaSessionLegacy.currentProject = this.currentProject;\n    this.lianaSessionOidc.currentRenderingId = renderingId;\n  }\n\n  @computed('currentRenderingId', 'store.{isDestroyed,isDestroying}')\n  get rendering() {\n    if (this.currentRenderingId && !this.store.isDestroyed && !this.store.isDestroying) {\n      return this.store.peekRecord('rendering', this.currentRenderingId);\n    }\n    return null;\n  }\n\n  @computed('rendering.environment')\n  get currentEnvironment() {\n    return this.rendering ? this.rendering.environment : null;\n  }\n\n  @computed('currentEnvironment.{lianaName,lianaVersion}')\n  get supportsOpenIdConnect() {\n    return (\n      this.currentEnvironment\n      && this.lianaFeatures.isFeatureCompatible(FeaturesEnum.OpenIdConnect, this.currentEnvironment)\n    );\n  }\n\n  constructor(properties?: object) {\n    super(properties);\n\n    this.lianaSessionLegacy.on('invalidationSucceeded', () => {\n      this.trigger('invalidationSucceeded');\n    });\n    this.lianaSessionLegacy.on('authenticationSucceeded', () => {\n      this.trigger('authenticationSucceeded');\n    });\n    this.lianaSessionOidc.on('authenticationSucceeded', () => {\n      this.trigger('authenticationSucceeded');\n    });\n  }\n\n  public invalidate() {\n    if (this.supportsOpenIdConnect) {\n      this.lianaSessionOidc.invalidate();\n    } else {\n      this.lianaSessionLegacy.invalidate();\n    }\n  }\n\n  @computed('rendering.team')\n  get currentTeam() {\n    return this.rendering?.team;\n  }\n\n  public invalidateAll() {\n    this.lianaSessionLegacy.invalidateAll();\n    this.lianaSessionOidc.invalidateAll();\n  }\n\n  public disableLogin() {\n    this._loginDisabled = true;\n  }\n\n  @computed('lianaSessionLegacy.authToken', 'lianaSessionOidc.authToken', 'supportsOpenIdConnect')\n  get authToken() {\n    if (this.supportsOpenIdConnect) {\n      return this.lianaSessionOidc.authToken;\n    }\n\n    return this.lianaSessionLegacy.authToken;\n  }\n\n  get isLoggedIn() {\n    if (this.supportsOpenIdConnect) {\n      return this.lianaSessionOidc.isLoggedIn;\n    }\n\n    return this.lianaSessionLegacy.isLoggedIn;\n  }\n\n  @computed('_loginDisabled')\n  get loginDisabled() {\n    return this._loginDisabled;\n  }\n\n  setupSession() {\n    if (this.supportsOpenIdConnect) {\n      this.lianaSessionOidc.setupSession();\n    } else {\n      this.lianaSessionLegacy.setupSession();\n    }\n  }\n\n  isAuthenticated() {\n    if (this.supportsOpenIdConnect) {\n      return this.lianaSessionOidc.isAuthenticated();\n    }\n\n    return this.lianaSessionLegacy.isAuthenticated();\n  }\n\n  invalidateForIp(error: Error) {\n    const errorDetail = getFirstErrorDetail(error);\n    const ip = errorDetail.match(/\\((.*)\\)/)[1];\n\n    this.session.set('ipRejected', ip);\n    this.invalidate();\n    this.toastr.perform(ToastrTypeEnum.Error, 'IP address rejected.');\n  }\n\n  async waitRefreshIfNecessary() {\n    if (this.supportsOpenIdConnect) {\n      await this.lianaSessionOidc.waitRefreshIfNecessary();\n    }\n  }\n\n  async waitUntilAuthenticated(): Promise<void> {\n    if (this.isAuthenticated()) {\n      return;\n    }\n\n    await new Promise((resolve) => {\n      this.one('authenticationSucceeded', () => {\n        resolve(undefined);\n      });\n    });\n  }\n}\n","import Service from '@ember/service';\n\n/**\n * Service wrapper around the local storage native service\n * in order to be able to unit test classes\n */\nexport default class LocalStorageService extends Service {\n  setItem(key: string, value: string) {\n    localStorage.setItem(key, value);\n  }\n\n  getItem(key: string) {\n    return localStorage.getItem(key);\n  }\n\n  removeItem(key: string) {\n    localStorage.removeItem(key);\n  }\n\n  clear() {\n    localStorage.clear();\n  }\n}\n","import { computed } from '@ember/object';\nimport Service, { service } from '@ember/service';\n\ntype MomentService = {\n  setLocale: (locale: string) => void;\n  locale: string;\n};\n\nexport default class LocaleService extends Service {\n  @service moment: MomentService;\n\n  _currentLocale: string = undefined;\n\n  @computed('_currentLocale')\n  get currentLocale() {\n    return this._currentLocale;\n  }\n\n  set currentLocale(value: string) {\n    this.set('_currentLocale', value);\n    this.setMomentLocale(value);\n  }\n\n  setMomentLocale(newLocale: string) {\n    const locale = newLocale.toLowerCase();\n    // NOTICE: Handle full locale example fr-FR => fr\n    const [lang, country] = locale.split('-');\n    if (country && lang === country) this.moment.setLocale(lang);\n    else this.moment.setLocale(locale);\n  }\n}\n","import type ModalFeatureService from 'client/features/modal/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\n\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport {\n  getFirstErrorDetail,\n  getFirstErrorName,\n  isEmberError,\n} from 'client/utils/ember-error-util';\n\nconst KEY = 'LogoutMessage';\n\nconst IGNORED_REASONS = ['InvalidRefreshTokenError'];\n\nexport default class LogoutMessageService extends Service {\n  @service localStorage: LocalStorageService;\n  @service('feature/modal') modalService: ModalFeatureService;\n  @service('feature/notification') notificationService: NotificationFeatureService;\n\n  saveLogoutMessage(responseBody: unknown) {\n    if (responseBody && isEmberError(responseBody)) {\n      const errorName = getFirstErrorName(responseBody);\n      const detail = getFirstErrorDetail(responseBody);\n\n      if (errorName && !IGNORED_REASONS.includes(errorName)) {\n        this.saveLogoutErrorMessage(detail);\n      }\n    }\n  }\n\n  saveLogoutErrorMessage(errorMessage: string) {\n    if (errorMessage) {\n      this.localStorage.setItem(KEY, errorMessage);\n    }\n  }\n\n  displayLastLogoutMessage(duration?: number) {\n    const duplicateSession = localStorage.getItem('duplicate_session');\n    if (duplicateSession) {\n      localStorage.removeItem('duplicate_session');\n      const componentPath = 'feature/authentication/duplicate-session-modal';\n\n      this.modalService.open(componentPath);\n    }\n\n    const lastError = this.localStorage.getItem(KEY);\n\n    if (lastError) {\n      this.notificationService.createToastr(ToastrTypeEnum.Warning, lastError, { duration });\n    }\n\n    this.localStorage.removeItem(KEY);\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\nimport type RedirectionService from 'client/legacy/services/redirection';\n\nimport Service, { service } from '@ember/service';\n\nconst LOGOUT_URL_KEY = 'LogoutRedirectionService_URL';\n\nexport default class LogoutRedirectionService extends Service {\n  @service redirection: RedirectionService;\n  @service router: RouterService;\n  @service localStorage: LocalStorageService;\n\n  public saveCurrentAsLogoutUrl() {\n    this.saveLogoutUrl(this.router.currentURL);\n  }\n\n  public saveLogoutUrl(logoutUrl: string) {\n    if (logoutUrl) {\n      this.localStorage.setItem(LOGOUT_URL_KEY, logoutUrl);\n    } else {\n      this.localStorage.removeItem(LOGOUT_URL_KEY);\n    }\n  }\n\n  public redirectToLogoutUrlIfNecessary() {\n    const redirectUrl = this.localStorage.getItem(LOGOUT_URL_KEY);\n\n    if (redirectUrl) {\n      this.localStorage.removeItem(LOGOUT_URL_KEY);\n      this.redirection.redirectToHref(redirectUrl);\n    }\n\n    return undefined;\n  }\n}\n","import type AssetMapService from 'asset-map-resolver/services/asset-map';\nimport type { LottiePlayer } from 'lottie-web';\n\nimport Service, { service } from '@ember/service';\n\nconst PATH_LOTTIE_ANIMATIONS = '/lottie-animations/';\n\nexport default class LottieService extends Service {\n  @service assetMap: AssetMapService;\n\n  private lottie: LottiePlayer | null = null;\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.lottie?.destroy();\n  }\n\n  async bindAnimation(container: HTMLElement, filename: string) {\n    if (!container) {\n      throw new Error('Lottie: No container provided');\n    }\n\n    if (!filename) {\n      throw new Error('Lottie: No filename provided');\n    }\n\n    this.lottie = this.lottie || ((await import('lottie-web')) as unknown as LottiePlayer);\n\n    if (this.isDestroying || this.isDestroyed) {\n      this.lottie?.destroy();\n      return null;\n    }\n\n    try {\n      const animationData = (await (\n        await fetch(this.assetMap.resolve(`${PATH_LOTTIE_ANIMATIONS}${filename}`), {\n          cache: 'force-cache',\n        })\n      ).json()) as unknown;\n      const animation = this.lottie.loadAnimation({\n        container,\n        renderer: 'svg',\n        loop: true,\n        autoplay: true,\n        animationData,\n      });\n      animation.setSubframe(false);\n\n      return animation;\n    } catch (error) {\n      console.debug('Lottie: Error loading animation', error);\n      return null;\n    }\n  }\n}\n","import type ModelCustomizationModel from 'client/data/models/model-customization';\nimport type ModelCustomizationConfigurationActionFragment from 'client/data/models/model-customization-configuration-action';\nimport type ModelCustomizationConfigurationActionUpdateRecordFragment from 'client/data/models/model-customization-configuration-action-update-record';\nimport type ModelCustomizationConfigurationActionUpdateRecordFieldFragment from 'client/data/models/model-customization-configuration-action-update-record-field';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport { ModelCustomizationConfigurationActionTypeEnum } from 'client/data/models/model-customization-configuration-action';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\n\nexport default class ModelCustomizationService extends Service {\n  @service lianaSession: LianaSession;\n  @service currentUser: CurrentUserService;\n  @service lianaFeatures: LianaFeaturesService;\n  @service store: StoreService;\n\n  get isUpdateRecordCustomActionsAvailable() {\n    return this.lianaFeatures.isFeatureAvailable(\n      FeaturesEnum.UpdateRecordActions,\n      this.lianaSession.currentEnvironment,\n    );\n  }\n\n  get isWebhookCustomActionsAvailable() {\n    return this.lianaFeatures.isFeatureAvailable(\n      FeaturesEnum.WebhookCustomActions,\n      this.lianaSession.currentEnvironment,\n    );\n  }\n\n  canCreateOrUpdateModelCustomizations() {\n    return Boolean(\n      (this.isUpdateRecordCustomActionsAvailable || this.isWebhookCustomActionsAvailable)\n        && this.currentUser.can('listModelCustomization'),\n    );\n  }\n\n  getUpdateRecordActionField(fieldName: string) {\n    return this.store.createFragment(\n      'model-customization-configuration-action-update-record-field',\n      { fieldName, value: null },\n    ) as ModelCustomizationConfigurationActionUpdateRecordFieldFragment;\n  }\n\n  getConfigurationFromType(\n    type: ModelCustomizationConfigurationActionTypeEnum,\n    modelCustomization: ModelCustomizationModel,\n  ) {\n    const actionTypeFragment = this.store.createFragment(\n      `model-customization-configuration-action-${type}`,\n      {},\n    );\n    return this.store.createFragment('model-customization-configuration-action', {\n      ...modelCustomization.configuration.toJSON(),\n      type,\n      configuration: actionTypeFragment.toJSON(),\n    }) as ModelCustomizationConfigurationActionFragment;\n  }\n\n  /**\n   * In case of update record action, we preselect a field from the collection\n   */\n  initConfiguration(configuration: ModelCustomizationConfigurationActionFragment) {\n    if (configuration.type === ModelCustomizationConfigurationActionTypeEnum.UpdateRecord) {\n      const config =\n        configuration.configuration as ModelCustomizationConfigurationActionUpdateRecordFragment;\n      if (this.fieldsAvailableForActionUpdateRecord(config).length)\n        config.fields.pushObject(\n          this.getUpdateRecordActionField(\n            this.fieldsAvailableForActionUpdateRecord(config)[0].fieldName,\n          ),\n        );\n    }\n  }\n\n  fieldsAvailableForActionUpdateRecord(\n    configuration: ModelCustomizationConfigurationActionUpdateRecordFragment,\n  ) {\n    const { collection } = configuration.parent;\n    return collection.fields\n      .filter(\n        (collectionField) =>\n          !collectionField.isReadOnly\n          && !collectionField.isVirtual\n          && !collectionField.isHasMany\n          && !collectionField.isBelongsTo,\n      )\n      .map((collectionField) => {\n        const { fieldName, displayName } = collectionField;\n        const disabled = Boolean(configuration.fields?.findBy('fieldName', fieldName));\n        return {\n          fieldName,\n          displayName,\n          disabled,\n        };\n      });\n  }\n}\n","import type ServerFetchService from 'client/legacy/services/server-fetch';\n\nimport Service, { service } from '@ember/service';\n\nexport default class OidcDeviceFlowService extends Service {\n  @service serverFetch: ServerFetchService;\n\n  public readonly numberOfChars = 8;\n\n  public async confirm(code: string) {\n    const searchParams = new URLSearchParams();\n    searchParams.append('user_code', code);\n    searchParams.append('confirm', 'yes');\n\n    const codeSubmitResponse = await this.serverFetch.fetch('/oidc/device', {\n      method: 'POST',\n      body: searchParams.toString(),\n      headers: {\n        'Content-Type': 'application/x-www-form-urlencoded',\n      },\n      redirect: 'follow',\n      credentials: 'include',\n    });\n\n    const codeSubmitResponseBody = (await codeSubmitResponse.json()) as {\n      error?: { error: string };\n    };\n\n    if (codeSubmitResponseBody.error) {\n      throw new Error(codeSubmitResponseBody.error.error);\n    }\n  }\n\n  public isUserCodeValidFormat(userCode: string): boolean {\n    return userCode && userCode.replace(/[/s-]/g, '').length === this.numberOfChars;\n  }\n}\n","import type ServerFetchService from 'client/legacy/services/server-fetch';\n\nimport Service, { service } from '@ember/service';\n\nimport tryGetBody from 'client/utils/try-get-body';\n\nexport default class OrganizationService extends Service {\n  @service serverFetch: ServerFetchService;\n\n  async checkIfNameIsAvailable(name: string): Promise<boolean> {\n    const response = await this.serverFetch.fetch(\n      `/api/organizations/check-name-availability?name=${encodeURIComponent(name)}`,\n      {\n        method: 'GET',\n      },\n    );\n\n    const body = await tryGetBody(response);\n\n    return typeof body === 'boolean' ? body : false;\n  }\n\n  generateEntityId(name: string): string {\n    return `forestadmin-${encodeURIComponent(name)}`;\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type { EmberRunTimer } from '@ember/runloop/types';\nimport type { SafeString } from '@ember/template/-private/handlebars';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport { cancel, later } from '@ember/runloop';\nimport Service, { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport window from 'ember-window-mock';\n\nimport { PermissionLevelEnum } from 'client/data/models/invitation';\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\ntype ToastType = {\n  message: string | SafeString;\n  onCloseCallback: () => void | Promise<void>;\n  iconEnd?: string;\n  label?: string;\n  link?: string;\n  onLinkClick?: () => void | Promise<void>;\n  duration: number;\n  punctuationEnd: string;\n};\n\nexport enum EventsEnum {\n  PerformanceWarnerClosed = 'PerformanceWarnerClosed',\n  PerformanceWarnerDisplayed = 'PerformanceWarnerDisplayed',\n  PerformanceWarnerReported = 'PerformanceWarnerReported',\n  PerformanceWarnerDocRead = 'PerformanceWarnerDocRead',\n}\n\nexport default class PerformanceWarnerService extends Service {\n  @service currentUser: CurrentUserService;\n  @service lianaSession: LianaSessionService;\n  @service serverFetch: ServerFetchService;\n  @service segmentTracker: SegmentTrackerService;\n  @service toastr: ToastrService;\n  @service tracker: TrackerService;\n  @service router: RouterService;\n\n  static AFFORDABLE_DELAY = 10000; // 10 seconds\n  static TOAST_ALREADY_CLOSED = 1;\n  static SLOWNESS_ALREADY_REPORTED = 7;\n\n  currentToastId: number = null;\n\n  /**\n   * Checks whether a request is of type GET\n   * FIXME: should be private\n   */\n  static isGetRequest(options: { method?: string }): boolean {\n    return options.method === 'GET' || [null, undefined].includes(options.method);\n  }\n\n  /**\n   * Checks whether a request is a chart request\n   * FIXME: should be private\n   */\n  static isChartRequest(path: string, options: { method?: string }): boolean {\n    return (\n      options.method === 'POST'\n      && (path.startsWith('/forest/stats') || path.startsWith('/forest/_internal/native_query'))\n    );\n  }\n\n  /**\n   * Checks whether a request is to retrieve customer's data\n   * FIXME: should be private\n   */\n  static isAgentRequest(path: string): boolean {\n    return path.includes('/forest');\n  }\n\n  /**\n   * Checks whether a request should be analysed by performanceWarner\n   * FIXME: should be private\n   */\n  static shouldHandleRequest(path: string, options: { method?: string }): boolean {\n    return (\n      PerformanceWarnerService.isAgentRequest(path)\n      && (PerformanceWarnerService.isGetRequest(options)\n        || PerformanceWarnerService.isChartRequest(path, options))\n    );\n  }\n\n  /**\n   * Checks if the user closed a performance toast, blocking them for 1 day\n   * FIXME: should be private\n   */\n  static shouldBlockFeature(): boolean {\n    return !!window.Cookies.get('performanceToastHidden');\n  }\n\n  /**\n   * Checks if the user already reported slowness, if yes, the option is blocked for 1 week\n   * FIXME: should be private\n   */\n  static hasAlreadyReportedSlowness(): boolean {\n    return !!window.Cookies.get('performanceToastReported');\n  }\n\n  /**\n   * Checks if the current route should be monitored\n   * FIXME: should be private\n   */\n  shouldCurrentRouteBeMonitored() {\n    const blackList = [\n      '.rendering.workspaces',\n      '.view-edit.activity',\n      '.rendering.dashboard',\n      'responsive.browser-extension.',\n    ];\n\n    return !blackList.some((blackListedRoute) =>\n      this.router.currentRouteName.includes(blackListedRoute),\n    );\n  }\n\n  /**\n   * Check whether a request should be analysed, analyses timing if applicable\n   */\n  public handle<T>(\n    requestPromise: Promise<T>,\n    path: string,\n    options: { method?: string },\n  ): Promise<T> {\n    if (\n      !this.lianaSession.currentProject?.features?.performanceWarner\n      || !this.lianaSession.currentEnvironment?.isProduction\n      || !this.shouldCurrentRouteBeMonitored()\n      || !PerformanceWarnerService.shouldHandleRequest(path, options)\n      || PerformanceWarnerService.shouldBlockFeature()\n    ) {\n      return requestPromise;\n    }\n\n    const newRequestId = this.startTimer(path, window.location.href);\n\n    return requestPromise.finally(() => {\n      this.callbackFunctionOnCallEnded(newRequestId, path, window.location.href);\n    });\n  }\n\n  /**\n   * Start a timer on a request\n   * FIXME: should be private\n   */\n  startTimer(route: string, url: string): number {\n    const newRequestId = later(async () => {\n      await this.callbackFunctionAfterDelay(newRequestId, route, url);\n    }, PerformanceWarnerService.AFFORDABLE_DELAY) as unknown as number;\n\n    return newRequestId;\n  }\n\n  /**\n   * Define the content of the toast to display, based on permission level\n   * FIXME: should be private\n   */\n  configureToast(\n    permissionLevel: PermissionLevelEnum,\n    requestId: number,\n    route: string,\n    url: string,\n  ): ToastType {\n    const defaultToastConfig = {\n      onCloseCallback: this.onToastClosedByCustomer.bind(this, route, url),\n      onLinkClick: this.onDocumentationRead.bind(this, route, url),\n      duration: 0,\n    };\n\n    switch (permissionLevel) {\n      case 'editor':\n      case 'admin':\n        return {\n          ...defaultToastConfig,\n          message: 'It takes more time than usual to retrieve your data. Have you tried ',\n          link: 'https://docs.forestadmin.com/user-guide/collections/performance',\n          label: 'these optimization tips',\n          punctuationEnd: '?',\n        };\n      case 'developer':\n        return {\n          ...defaultToastConfig,\n          message: 'It takes more time than usual to retrieve your data. Have you tried ',\n          link: 'https://docs.forestadmin.com/documentation/reference-guide/performance',\n          label: 'these optimization tips',\n          punctuationEnd: '?',\n        };\n      default:\n        if (this.lianaSession.currentProject.thirdPartyServicesTrackingDisabled) {\n          return {\n            ...defaultToastConfig,\n            onLinkClick: undefined,\n            message:\n              'It takes more time than usual to retrieve your data. We suggest you to contact your administrator to investigate this issue',\n            punctuationEnd: '.',\n          };\n        }\n\n        if (PerformanceWarnerService.hasAlreadyReportedSlowness()) {\n          return {\n            ...defaultToastConfig,\n            message: htmlSafe(\n              'It takes more time than usual to retrieve your data. <b>You have reported it to your administrator</b>',\n            ),\n            iconEnd: 'check_circle_outline',\n            onLinkClick: undefined,\n            punctuationEnd: '.',\n          };\n        }\n\n        return {\n          ...defaultToastConfig,\n          message: 'It takes more time than usual to retrieve your data.',\n          label: 'Report this to your administrator',\n          onLinkClick: this.onDelayReported.bind(this, requestId, route, url),\n          punctuationEnd: '?',\n        };\n    }\n  }\n\n  /**\n   * Function to be called once a request has terminated\n   * FIXME: should be private\n   */\n  callbackFunctionOnCallEnded(requestId: number, route: string, url: string) {\n    // We want to let the toast open if an action is possible, to let\n    // time to customers to interact with the toast\n    if (this.currentToastId === requestId) {\n      const toastContent = this.configureToast(\n        this.currentUser.model?.permissionLevel,\n        requestId,\n        route,\n        url,\n      );\n\n      this.toastr.update(ToastrTypeEnum.Warning, toastContent.message, requestId?.toString(), {\n        duration: 3000,\n        onCloseCallback: toastContent.onCloseCallback,\n        onAutoClosed: this.removeToast.bind(this),\n        componentName: 'feedback/toastr/toastr-item-performance-warner',\n        componentOptions: {\n          link: toastContent.link,\n          label: toastContent.label,\n          onLinkClick: toastContent.onLinkClick,\n          iconEnd: toastContent.iconEnd,\n          punctuationEnd: toastContent.punctuationEnd,\n        },\n      });\n    } else {\n      this.removeToast(requestId);\n      cancel(requestId as unknown as EmberRunTimer);\n    }\n  }\n\n  /**\n   * FIXME: should be private\n   * Function to be called once acceptable delay has elapsed\n   */\n  async callbackFunctionAfterDelay(requestId: number, route: string, url: string) {\n    if (this.currentToastId) {\n      return;\n    }\n\n    const toast = this.configureToast(\n      this.currentUser.model.permissionLevel,\n      requestId,\n      route,\n      url,\n    );\n\n    this.currentToastId = Number(\n      this.toastr.perform(ToastrTypeEnum.Warning, toast.message, {\n        id: requestId as unknown as string,\n        onCloseCallback: toast.onCloseCallback,\n        componentName: 'feedback/toastr/toastr-item-performance-warner',\n        componentOptions: {\n          link: toast.link,\n          label: toast.label,\n          onLinkClick: toast.onLinkClick,\n          iconEnd: toast.iconEnd,\n          punctuationEnd: toast.punctuationEnd,\n        },\n        duration: 0,\n      }),\n    );\n\n    await this.sendPerformanceEvent(EventsEnum.PerformanceWarnerDisplayed, route, url);\n  }\n\n  /**\n   * FIXME: should be private\n   */\n  async onDelayReported(toastId: number, route: string, url: string) {\n    window.Cookies.set('performanceToastReported', true as unknown as string, {\n      expires: PerformanceWarnerService.SLOWNESS_ALREADY_REPORTED,\n    });\n\n    const toastContent = this.configureToast(PermissionLevelEnum.User, toastId, route, url);\n\n    this.toastr.update(ToastrTypeEnum.Warning, toastContent.message, toastId?.toString(), {\n      onCloseCallback: toastContent.onCloseCallback,\n      componentName: 'feedback/toastr/toastr-item-performance-warner',\n      componentOptions: {\n        iconEnd: toastContent.iconEnd,\n        punctuationEnd: toastContent.punctuationEnd,\n      },\n    });\n\n    this.currentToastId = null;\n\n    await this.sendPerformanceEvent(EventsEnum.PerformanceWarnerReported, route, url);\n  }\n\n  /**\n   * FIXME: should be private\n   */\n  removeToast(toastId?: number | string) {\n    if (this.currentToastId && toastId === this.currentToastId) {\n      this.toastr.remove(this.currentToastId?.toString());\n      this.currentToastId = null;\n    }\n  }\n\n  /**\n   * FIXME: should be private\n   */\n  async onToastClosedByCustomer(route: string, url: string) {\n    window.Cookies.set('performanceToastHidden', true as unknown as string, {\n      expires: PerformanceWarnerService.TOAST_ALREADY_CLOSED,\n    });\n    this.currentToastId = null;\n    await this.sendPerformanceEvent(EventsEnum.PerformanceWarnerClosed, route, url);\n  }\n\n  /**\n   * FIXME: should be private\n   */\n  async sendPerformanceEvent(event: EventsEnum, route: string, url: string) {\n    if (event === EventsEnum.PerformanceWarnerReported) {\n      const { currentProject } = this.lianaSession;\n      const bodyInformation = {\n        route,\n        url,\n      };\n\n      try {\n        await this.serverFetch.fetch(\n          `/api/projects/${currentProject.id}/notify-slow-performances-to-admin`,\n          {\n            method: 'POST',\n            credentials: 'include',\n            body: JSON.stringify(bodyInformation),\n          },\n        );\n      } catch (e) {\n        const error = e as Error;\n        this.tracker.captureException(error);\n        console.error(error);\n      }\n    } else {\n      this.segmentTracker.trackPerformanceEvent(event, {\n        route,\n        url,\n        projectId: this.lianaSession.currentProject.id,\n        environmentId: this.lianaSession.currentEnvironment.id,\n        userId: this.currentUser.model.id,\n        userPermissionLevel: this.currentUser.model.permissionLevel,\n      });\n    }\n  }\n\n  /**\n   * FIXME: should be private\n   */\n  async onDocumentationRead(route: string, url: string) {\n    await this.sendPerformanceEvent(EventsEnum.PerformanceWarnerDocRead, route, url);\n  }\n}\n","import type PlanModel from 'client/data/models/plan';\nimport type { EnvironmentsFeaturesEnum } from 'client/data/models/plan';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport Service, { service } from '@ember/service';\n\nimport { PlanTypesEnum } from 'client/data/models/plan';\n\nconst TYPES_ORDER = [\n  PlanTypesEnum.Community,\n  PlanTypesEnum.Starter,\n  PlanTypesEnum.Grandfather,\n  PlanTypesEnum.Plus,\n  PlanTypesEnum.Enterprise,\n];\n\nexport default class PlanService extends Service {\n  @service() store: StoreService;\n  @service() lianaSession: LianaSessionService;\n\n  @alias('lianaSession.currentProject.billing.currentPlan') currentPlan: PlanModel;\n\n  @computed('lianaSession.rendering')\n  get rendering() {\n    return this.lianaSession.rendering;\n  }\n\n  async getSortedPossibleUpgrades() {\n    const plans = await this.store.findAll('plan');\n\n    return plans\n      .toArray()\n      .sort((plan1, plan2) => TYPES_ORDER.indexOf(plan1.type) - TYPES_ORDER.indexOf(plan2.type))\n      .filter(\n        (plan) => TYPES_ORDER.indexOf(plan.type) > TYPES_ORDER.indexOf(this.currentPlan.type),\n      );\n  }\n\n  async findFirstPlanWithFeature(featureName: EnvironmentsFeaturesEnum) {\n    const possibleUpgrades = await this.getSortedPossibleUpgrades();\n    const upgradesWithFeature = possibleUpgrades.filter(\n      (plan) => (plan.featuresEnvironmentsAll || []).includes(featureName) && !plan.isTrial,\n    );\n\n    return upgradesWithFeature[0] || null;\n  }\n\n  async findFirstPlanForUserCount(userCount: number) {\n    const possibleUpgrades = (await this.getSortedPossibleUpgrades()).filter(\n      (plan) => (!plan.maxUsers || plan.maxUsers > userCount) && !plan.isTrial,\n    );\n\n    if (!possibleUpgrades.length) {\n      return this.currentPlan;\n    }\n\n    return possibleUpgrades[0];\n  }\n\n  async getPlusPlans() {\n    const plans = await this.store.findAll('plan');\n\n    return plans.filter((plan) => plan.type === PlanTypesEnum.Plus);\n  }\n}\n","import type TrackerService from 'client/legacy/services/tracker';\n\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport config from 'client/config/environment';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\nexport default class PopupService extends Service {\n  private contentId: string = null;\n  @tracked public content: HTMLElement = null;\n  /**\n   * FIXME: should be private but public needed for testing\n   */\n  positionTop: string = null;\n  private positionRight: string = null;\n  private positionBottom: string = null;\n  private positionLeft: string = null;\n  private scrollEventListener: EventListener;\n  @service\n  private readonly tracker: TrackerService;\n\n  public async show(\n    contentId: string,\n    content: HTMLElement,\n    position: { top: number; right: number; bottom: number; left: number },\n    onPopupPositionSet: () => void | unknown = null,\n  ) {\n    // NOTICE: Hide the content of the previous popup\n    this.hide(this.contentId);\n    this.contentId = contentId;\n\n    this.positionTop = position.top ? `${position.top}px` : null;\n    this.positionRight = position.right ? `${position.right}px` : null;\n    this.positionBottom = position.bottom ? `${position.bottom}px` : null;\n    this.positionLeft = position.left ? `${position.left}px` : null;\n\n    this.content = content;\n\n    // NOTICE: Make it scroll with the scrollable parent view\n    const scrollableParent = document.getElementById('popup-scrollable-parent');\n    if (scrollableParent) {\n      const scrollInitial = scrollableParent.scrollTop;\n      this.scrollEventListener = () => {\n        this.positionTop = `${position.top + scrollInitial - scrollableParent.scrollTop}px`;\n      };\n      scrollableParent.addEventListener('scroll', this.scrollEventListener);\n    }\n\n    await waitForNextRunLoop();\n\n    const popupContainer = document.getElementsByClassName('c-popup')?.[0] as HTMLDivElement;\n\n    if (!popupContainer) {\n      if (!this.content) return;\n      if (config.nodeEnv === 'development') {\n        console.error('Popup container `c-popup` not found');\n      } else {\n        this.tracker.captureMessage('Popup container `c-popup` not found', 'warning', {\n          contentId,\n        });\n      }\n\n      return;\n    }\n\n    popupContainer.style.setProperty('--context-menu-popup-position-top', this.positionTop);\n    popupContainer.style.setProperty('--context-menu-popup-position-bottom', this.positionBottom);\n    popupContainer.style.setProperty('--context-menu-popup-position-left', this.positionLeft);\n    popupContainer.style.setProperty('--context-menu-popup-position-right', this.positionRight);\n\n    if (onPopupPositionSet) {\n      onPopupPositionSet();\n    }\n  }\n\n  public hide(contentId: string) {\n    if (this.contentId === contentId) {\n      this.forceHide();\n    }\n  }\n\n  public forceHide() {\n    this.content = null;\n    this.contentId = null;\n    const scrollableParent = document.getElementById('popup-scrollable-parent');\n    if (scrollableParent) {\n      scrollableParent.removeEventListener('scroll', this.scrollEventListener);\n    }\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type { EnvironmentsFeaturesEnum } from 'client/data/models/plan';\nimport type { PremiumFeatures } from 'client/data/models/project';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type PlanService from 'client/legacy/services/plan-service';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nexport default class PremiumFeatureUpgraderService extends Service {\n  @service('feature/notification') notificationFeature: NotificationFeatureService;\n  @service router: RouterService;\n  @service lianaSession: LianaSessionService;\n  @service currentUser: CurrentUserService;\n  @service planService: PlanService;\n  @service segmentTracker: SegmentTrackerService;\n\n  @action\n  public async upgradeToPremiumFeatureForFree(\n    premiumFeatureName: PremiumFeatures,\n    featureCallback: () => void,\n    featureCallbackRoute: string,\n  ) {\n    if (this.isPlanFreeAndUserIsNotAdmin()) {\n      return this.displayWarningMessage();\n    }\n\n    await this.setProjectFeature(premiumFeatureName);\n\n    if (featureCallback) {\n      return featureCallback();\n    }\n\n    return void this.router.transitionTo(featureCallbackRoute);\n  }\n\n  @action\n  public async upgradeToPremiumFeatureWithPaidPlan(\n    premiumFeatureName: PremiumFeatures,\n    featureCallback: (() => void) | undefined,\n    featureCallbackRoute: string,\n    featureParams: string | null,\n    featureName: EnvironmentsFeaturesEnum,\n  ) {\n    const project = this.getProject();\n\n    if (this.isPlanFreeAndUserIsNotAdmin()) {\n      return this.displayWarningMessage();\n    }\n\n    const billing = await project.billing;\n    if (billing.isPaying && billing.currentPlan?.featuresEnvironmentsAll?.includes(featureName)) {\n      try {\n        await this.setProjectFeature(premiumFeatureName);\n\n        if (featureCallback) {\n          return featureCallback();\n        }\n\n        return await this.router.transitionTo(featureCallbackRoute);\n        // eslint-disable-next-line sonarjs/no-ignored-exceptions\n      } catch (error) {\n        project.rollbackAttributes();\n        return this.notificationFeature.createToastr(\n          ToastrTypeEnum.Error,\n          'An error occurred during the feature activation.',\n        );\n      }\n    }\n\n    const upgradePlan = await this.planService.findFirstPlanWithFeature(featureName);\n\n    this.segmentTracker.trackUpgradeButtonClicked({\n      projectId: project.id,\n      projectName: project.name,\n      planId: upgradePlan.id,\n      planName: upgradePlan.displayName,\n      featureName,\n    });\n\n    return this.router.transitionTo('project.project-settings.billing.upgrade', {\n      queryParams: {\n        requestedFeature: premiumFeatureName,\n        requestedFeatureParams: featureParams\n          ? `${this.getBaseFeatureParams(featureCallbackRoute)},${featureParams}`\n          : this.getBaseFeatureParams(featureCallbackRoute),\n        requestedFeatureCallbackRoute: featureCallbackRoute,\n        plan: upgradePlan?.type,\n      },\n    });\n  }\n\n  private getProject() {\n    return this.lianaSession.currentProject;\n  }\n\n  private getBaseFeatureParams(featureCallbackRoute: string) {\n    const project = this.getProject();\n    const { currentEnvironment, currentTeam } = this.lianaSession;\n    return featureCallbackRoute.includes('rendering') && currentEnvironment && currentTeam\n      ? [project.name, currentEnvironment.name, currentTeam.name].join(',')\n      : project.name;\n  }\n\n  private setProjectFeature(premiumFeatureName: PremiumFeatures) {\n    const project = this.getProject();\n    project[premiumFeatureName] = new Date();\n    return project.save();\n  }\n\n  private isPlanFreeAndUserIsNotAdmin() {\n    const project = this.getProject();\n    const isPlanFree = project.billing.get('isCommunity');\n    const hasPermissionLevelAdmin = this.currentUser.get('canEditProject');\n\n    return isPlanFree && !hasPermissionLevelAdmin;\n  }\n\n  private displayWarningMessage() {\n    return this.notificationFeature.createToastr(\n      ToastrTypeEnum.Warning,\n      'Please contact an admin of your project for feature activation.',\n    );\n  }\n}\n","import type CustomApolloService from 'client/legacy/services/apollo';\n\nimport Service from '@ember/service';\nimport { queryManager } from 'ember-apollo-client';\n\nimport checkProjectExistence from 'client/gql/utils/check-project-existence';\n\nexport default class ProjectExistenceCheckerService extends Service {\n  /**\n   * ⚠ ember-apollo-client provides this @queryManager\n   * BUT there is a bug with this library on overwritten routes\n   * The code from here: https://github.com/ember-graphql/ember-apollo-client/blob/v4.0.2/addon/-private/apollo/setup-hooks.js\n   * is not returning the promise from the original function, leading\n   * to bugs when beforeModel is asynchronous on a route.\n   */\n  @queryManager() apollo: CustomApolloService;\n\n  checkProjectExistence(projectName: string) {\n    return checkProjectExistence(this.apollo, projectName);\n  }\n}\n","import type { QRCodeRenderersOptions, QRCodeSegment } from 'qrcode';\n\nimport Service from '@ember/service';\n/**\n * Class wrapper around the qrcode dependency, in order\n * to inject it\n */\nexport default class QRCodeService extends Service {\n  async toDataURL(text: string | QRCodeSegment[], options: QRCodeRenderersOptions) {\n    const qrcode = await import('qrcode');\n\n    return qrcode.toDataURL(text, options);\n  }\n}\n","import type AbstractModel from 'client/data/models/abstract-model';\nimport type CollectionModel from 'client/data/models/collection';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type Fragment from 'ember-data-model-fragments/fragment';\n\nimport Service, { service } from '@ember/service';\nimport { hash } from 'rsvp';\n\nimport { META_FIELD } from 'client/utils/collection-creator/model';\nimport FileTypeUtils from 'client/utils/file-type';\nimport { namespace } from 'client/utils/string-utils';\nimport { WidgetEditTypeEnum } from 'client/utils/widgets';\n\n// NOTICE: Do not prefill technical dates.\n// TODO: Improve this hardcoded code by introspecting the ORM to know which field is a technical\n//       date.\nconst FIELDS_NOT_TO_PREFILL = [\n  'forest-createdAt',\n  'forest-created_at',\n  'forest-updatedAt',\n  'forest-updated_at',\n  'forest-deletedAt',\n  'forest-deleted_at',\n  namespace(META_FIELD, '-'),\n];\n\nexport default class RecordDuplicatorService extends Service {\n  @service private store: StoreService;\n  @service private errorHandler: ErrorHandlerService;\n\n  public record: ClientRecordModel = null;\n\n  public async duplicate<ClientModel extends ClientRecordModel>(\n    collection: CollectionModel,\n    record: ClientModel,\n  ): Promise<ClientModel> {\n    const newRecord = this.store.createRecord(collection.emberModelName) as unknown as ClientModel;\n    const primaryKey = `forest-${collection.primaryKey}`;\n\n    const filesContent = await this.getFilesContent(collection, record);\n\n    const ModelClass = this.store.modelFor(\n      collection.emberModelName,\n    ) as unknown as typeof AbstractModel;\n    ModelClass.eachAttribute((attribute, attributeInfo) => {\n      if (FIELDS_NOT_TO_PREFILL.indexOf(attribute) === -1 && attribute !== primaryKey) {\n        if ((attributeInfo as { isFragment?: boolean }).isFragment) {\n          let attributeEmbedded =\n            (record.get(attribute) as unknown as Fragment)?.serialize() ?? null;\n          attributeEmbedded = this.prefixKeyWithForest(attributeEmbedded);\n          newRecord.set(attribute, attributeEmbedded);\n        } else if (filesContent[attribute]) {\n          newRecord.set(attribute, filesContent[attribute] ?? null);\n        } else {\n          let attributeValue = record.get(attribute);\n\n          if (attributeInfo.type === 'base') {\n            attributeValue = this.removeIdFromEmbedded(attributeValue);\n          }\n\n          newRecord.set(attribute, attributeValue);\n        }\n      }\n    });\n\n    newRecord.eachRelationship((name, relationship) => {\n      // NOTICE: Prefill only one-to-one relationships to keep the duplication simple.\n      if (relationship.kind === 'belongsTo') {\n        newRecord.set(name, record.get(name));\n      }\n    });\n\n    newRecord.set('isDuplicated', true);\n\n    this.record = newRecord;\n\n    return newRecord;\n  }\n\n  private prefixKeyWithForest<T>(embedded: T): T {\n    if (Array.isArray(embedded)) {\n      return (embedded as object[]).map((embeddedElement) =>\n        this.prefixKeyWithForest(embeddedElement),\n      ) as T;\n    }\n\n    if (embedded && typeof embedded === 'object') {\n      const embeddedPrefixed: Record<string, unknown> = {};\n      Object.keys(embedded).forEach((key) => {\n        embeddedPrefixed[`forest-${key}`] = this.prefixKeyWithForest(embedded[key]);\n      });\n      return embeddedPrefixed as T;\n    }\n\n    return embedded;\n  }\n\n  private removeIdFromEmbedded<T>(embedded: T): T {\n    if (Array.isArray(embedded)) {\n      return (embedded as unknown[]).map((embeddedElement) =>\n        this.removeIdFromEmbedded(embeddedElement),\n      ) as T;\n    }\n\n    if (!embedded || typeof embedded !== 'object') {\n      return embedded;\n    }\n\n    if ('_id' in embedded && embedded._id) {\n      delete embedded._id;\n    }\n\n    Object.keys(embedded).forEach((key) => {\n      this.removeIdFromEmbedded(embedded[key]);\n    });\n\n    return embedded;\n  }\n\n  private async getFilesContent(\n    collection: CollectionModel,\n    record: ClientRecordModel,\n  ): Promise<Record<string, string>> {\n    const fileFields = collection.fields.filter(\n      (field) => field.widgetEdit?.name === WidgetEditTypeEnum.FilePicker,\n    );\n\n    let fieldValues: Record<string, string> = {};\n    if (fileFields.length > 0) {\n      try {\n        fieldValues = await hash({\n          ...Object.fromEntries(\n            fileFields\n              .map(({ fieldName }) => namespace(fieldName, '-'))\n              .map((attribute) => {\n                const fieldValue = record.get(attribute as keyof ClientRecordModel);\n                return [\n                  attribute,\n                  fieldValue\n                    && (FileTypeUtils.getDataFromUrl(fieldValue as string) as Promise<string>),\n                ];\n              }),\n          ),\n        });\n      } catch (error) {\n        this.errorHandler.handleError(\n          error as Error,\n          'Error while fetching file content for record duplication',\n        );\n      }\n    }\n    return fieldValues;\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type ClientRecordFeatureService from 'client/features/client-record/services/feature';\nimport type ActivityTrackerService from 'client/legacy/services/activity-tracker';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type StoreService from 'client/legacy/services/store';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type CapabilitiesService from 'client/shared/services/capabilities';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type RecordsContext from 'client/utils/liana-records/records-context';\n\nimport Service, { service } from '@ember/service';\nimport { all, didCancel, task, timeout } from 'ember-concurrency';\n\nimport config from 'client/config/environment';\nimport { type ClientRecordAgentError } from 'client/features/client-record/errors';\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\nimport RelatedRecordsContext from 'client/utils/liana-records/related-records-context';\n\nconst INTERVAL_BETWEEN_LIST_AND_COUNT = config.APP.intervalBetweenListAndCount;\n\nexport default class RecordsManagerService extends Service {\n  @service protected activityTracker: ActivityTrackerService;\n  @service protected tracker: TrackerService;\n  @service protected eventBus: EventBusService;\n  @service protected store: StoreService;\n  @service protected errorHandler: ErrorHandlerService;\n  @service('shared/capabilities') protected capabilitiesService: CapabilitiesService;\n  @service('feature/client-record')\n  protected clientRecordFeatureService: ClientRecordFeatureService;\n\n  public fetchRecordsList = task(\n    async (recordsContext: RecordsContext, shouldDisablePerformanceTracking = false) => {\n      const startTimeInterface = Date.now();\n      let requestDuration: number;\n\n      let records: ClientRecordModel[] & { meta?: { count?: number } };\n      try {\n        // FIXME: Move all the logic inside the ClientRecordFeatureService\n        records = (await this.clientRecordFeatureService.fetchRecords(\n          recordsContext,\n        )) as unknown as ClientRecordModel[] & { meta?: { count?: number } };\n      } catch (error) {\n        if (didCancel(error)) {\n          console.debug(\n            'RecordsManager:fetchRecordsList task was canceled for collection:',\n            recordsContext.collection.name,\n          );\n        }\n        recordsContext.isLoading = false;\n        return;\n      } finally {\n        // eslint-disable-next-line sonarjs/no-dead-store\n        requestDuration = Date.now() - startTimeInterface;\n      }\n\n      recordsContext.error = null;\n      recordsContext.records = records;\n\n      // This is only used by smart collection\n      if (records?.meta?.count) {\n        recordsContext.recordsCount = records.meta.count;\n      }\n\n      this.eventBus.trigger('recordsFetched', records?.firstObject?.id);\n\n      if (!shouldDisablePerformanceTracking) {\n        this.registerPerformanceTracking(recordsContext, {\n          startTimeInterface,\n          requestDuration,\n        });\n      }\n\n      recordsContext.isLoading = false;\n    },\n  );\n\n  public getRecords = task(\n    async (recordsContext: RecordsContext, shouldDisablePerformanceTracking = false) => {\n      const { collection } = recordsContext;\n\n      recordsContext.error = null;\n      recordsContext.recordsCount = null;\n      recordsContext.records = null;\n\n      if (!recordsContext.search) {\n        recordsContext.isSearchExtended = false;\n      }\n\n      recordsContext.isLoading = true;\n\n      const promises = [];\n      const recordsListRetrieval = this.fetchRecordsList.perform(\n        recordsContext,\n        shouldDisablePerformanceTracking,\n      );\n      promises.push(recordsListRetrieval);\n\n      const useDedicatedCountRequest = !(collection as CollectionModel).isSmart;\n\n      if (useDedicatedCountRequest) {\n        // NOTICE: Run later to ensure that the records list request is sent first by the liana, as\n        //         the records display is the priority. The count is not mandatory information.\n        await timeout(INTERVAL_BETWEEN_LIST_AND_COUNT);\n        promises.push(this.fetchRecordsCount.perform(recordsContext));\n      }\n\n      await all(promises);\n    },\n  );\n\n  public fetchRecordsCount = task(async (recordsContext: RecordsContext) => {\n    try {\n      await this.clientRecordFeatureService.fetchRecordsCount(recordsContext);\n      return true;\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      return false;\n    }\n  });\n\n  protected registerPerformanceTracking(\n    recordsContext: RecordsContext,\n    {\n      startTimeInterface,\n      requestDuration,\n    }: { startTimeInterface: number; requestDuration: number },\n  ) {\n    this.eventBus.one(\n      EventBusEventsEnum.EndOfInterfaceLoading,\n      async (parameters: { recordsContext: RecordsContext; time: number }) => {\n        if (recordsContext !== parameters.recordsContext) {\n          return;\n        }\n\n        await this.trackListingActionAndPerformance(recordsContext, {\n          timingInterface: parameters.time - startTimeInterface,\n          timingRequest: requestDuration,\n        });\n      },\n    );\n  }\n\n  protected async trackListingActionAndPerformance(\n    recordsContext: RecordsContext,\n    { timingInterface, timingRequest }: { timingInterface?: number; timingRequest?: number },\n  ) {\n    const withFilters = Object.keys(recordsContext.genericFilter).length > 0;\n    const withSearch = !!recordsContext.search;\n\n    await this.trackActivityRead(recordsContext, {\n      timingInterface,\n      timingRequest,\n      withFilters,\n      withSearch,\n    });\n    this.trackAgentLatency(recordsContext, {\n      timingInterface,\n      timingRequest,\n      withFilters,\n      withSearch,\n    });\n  }\n\n  protected async trackActivityRead(\n    recordsContext: RecordsContext,\n    {\n      timingInterface,\n      timingRequest,\n      withFilters,\n      withSearch,\n    }: {\n      timingInterface?: number;\n      timingRequest?: number;\n      withFilters: boolean;\n      withSearch: boolean;\n    },\n  ) {\n    let action = 'index';\n    if (withSearch) {\n      action = 'search';\n    } else if (withFilters) {\n      action = 'filter';\n    }\n\n    await this.activityTracker.trackRead({\n      collection: recordsContext.collection,\n      action,\n      timingInterface,\n      timingRequest,\n    });\n  }\n\n  protected trackAgentLatency(\n    recordsContext: RecordsContext,\n    {\n      timingInterface,\n      timingRequest,\n      withFilters,\n      withSearch,\n    }: {\n      timingInterface?: number;\n      timingRequest?: number;\n      withFilters: boolean;\n      withSearch: boolean;\n    },\n  ) {\n    this.tracker.captureAgentLatency({\n      requestDuration: timingRequest,\n      layoutDuration: timingInterface,\n      httpCode: (recordsContext.error as ClientRecordAgentError)?.status ?? 200,\n      error: recordsContext.error as Error,\n      collectionName: recordsContext.collection.name,\n      segmentName: recordsContext.segment?.name,\n      segmentId: recordsContext.segment?.id,\n      DDSegmentIndex: `${recordsContext.segment?.name} - ${recordsContext.collection?.name}`,\n      fieldName:\n        recordsContext instanceof RelatedRecordsContext\n          ? recordsContext.field?.fieldName\n          : undefined,\n      withSearch,\n      withFilters,\n    });\n  }\n}\n","import type UserRecoveryCodeModel from 'client/data/models/user-recovery-code';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nexport default class RecoveryCodesServiceService extends Service {\n  @service private store: StoreService;\n  @service private serverFetch: ServerFetchService;\n  @service('feature/notification') private notificationFeature: NotificationFeatureService;\n\n  public formattedCodes(recoveryCodes: string[] | UserRecoveryCodeModel[]) {\n    return recoveryCodes.map((code: string | UserRecoveryCodeModel) =>\n      typeof code !== 'string'\n        ? code.recoveryCode.replace(/^(.{5})(.{5})$/, '$1-$2')\n        : code.replace(/^(.{5})(.{5})$/, '$1-$2'),\n    );\n  }\n\n  /**\n   * @private\n   */\n  // FIXME: This method should be private but is used in tests\n  async fetchNewUserRecoveryCodes() {\n    const response = await this.serverFetch.fetch('/api/user-recovery-codes/generate', {\n      method: 'POST',\n      credentials: 'include',\n    });\n\n    if (!response.ok) {\n      throw new Error('Unable to generate new recovery codes');\n    }\n    return response;\n  }\n\n  public async generateNewRecoveryCodes(hasUserRecoveryCodes: boolean) {\n    const response = await this.fetchNewUserRecoveryCodes();\n\n    if (hasUserRecoveryCodes) {\n      this.store.unloadAll('user-recovery-code');\n      this.notificationFeature.createToastr(ToastrTypeEnum.Success, 'New recovery codes available');\n    }\n\n    const recoveryCode = (await response.json()) as object;\n    this.store.pushPayload(recoveryCode);\n  }\n\n  public registerRecoveryCodes(recoveryCodes: UserRecoveryCodeModel[]) {\n    this.store.unloadAll('user-recovery-code');\n    const userRecoveryCodes = {\n      data: recoveryCodes.map((recoveryCode) => ({\n        type: 'user-recovery-codes',\n        id: recoveryCode.id,\n        attributes: { recovery_code: recoveryCode.recoveryCode },\n      })),\n    };\n    this.store.pushPayload(userRecoveryCodes);\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\n\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\nimport RedirectionLoop from 'client/utils/errors/redirection-error';\nimport transitionToUrl from 'client/utils/transition-to-url';\n\nconst LAST_INSECURE_REDIRECTION = 'lastInsecureRedirection';\n\n/**\n * Chrome and Firefox support accessing localhost on http from an HTTPS application\n * Chrome, starting from v92 will BLOCK access to localhost from insecure app (HTTP)\n * Safari (at least up to v14) requires the entire app to be under HTTP\n * @returns {boolean}\n */\nfunction supportsHttps() {\n  // User agents are not easy to parse,\n  // it seems that Safari is the only one that specifies a version\n  // just before the Safari version\n  return !/ Version\\/[^\\s]+ Safari\\/[^\\s]+$/.test(window.navigator.userAgent);\n}\n\nfunction needsOrSupportsSecure({\n  secure,\n  fallbackToInsecure,\n}: {\n  secure: boolean;\n  fallbackToInsecure: boolean;\n}) {\n  if (!fallbackToInsecure || !secure) {\n    return secure;\n  }\n\n  return supportsHttps();\n}\n\nexport default class RedirectionService extends Service {\n  @service private localStorage: LocalStorageService;\n  @service private router: RouterService;\n\n  /**\n   * Use this method if you need to call window.location.href\n   * in a service or component you need to unit test\n   * This method cannot be unit tested, but it can be injected\n   */\n  public redirectToHref(href: string) {\n    window.location.href = href;\n  }\n\n  /**\n   * Check if the user is using the desired protocol and redirect him otherwise.\n   * This methods checks for redirection loops and handles the error gracefully.\n   */\n  public enforceProtocol(\n    { secure, fallbackToInsecure }: { secure: boolean; fallbackToInsecure: boolean },\n    transition: Transition | undefined = undefined,\n  ) {\n    const needsSecure = needsOrSupportsSecure({ secure, fallbackToInsecure });\n    if (!this.shouldRedirect(needsSecure, transition)) {\n      this.localStorage.removeItem(LAST_INSECURE_REDIRECTION);\n      return;\n    }\n\n    // Avoid redirection loops caused by firefox HTTPS Only Mode & privacy extensions\n    if (!needsSecure) {\n      const now = new Date();\n      const lastRedirectionISO = this.localStorage.getItem(LAST_INSECURE_REDIRECTION);\n      const lastRedirection = new Date(lastRedirectionISO || '1970-01-01T00:00:00Z');\n      if (now.getTime() - lastRedirection.getTime() < 5 * 1000) {\n        throw new RedirectionLoop();\n      }\n\n      this.localStorage.setItem(LAST_INSECURE_REDIRECTION, now.toISOString());\n    }\n\n    this.redirectToProtocol(needsSecure, transition);\n  }\n\n  /**\n   * Check if there is a need to toggle between HTTP and HTTPS\n   */\n  private shouldRedirect(\n    wantSecure: boolean,\n    transition: (Transition & { isAborted?: boolean }) | undefined = undefined,\n  ) {\n    // @see https://github.com/ForestAdmin/forestadmin/blob/e96d1d/app/mixins/redirect-http-mixin.js#L8-L9\n    if (!wantSecure && transition?.to.name.includes('authentication.signup')) {\n      return false;\n    }\n\n    // The \"useSSL\" setting actually means \"allowSSL\".\n    // When true HTTPS is not mandatory, when false it is forbidden.\n    if (wantSecure && !config.APP.useSSL) {\n      return false;\n    }\n\n    const isSecure = window.location.protocol === 'https:';\n    return wantSecure !== isSecure && !transition?.isAborted;\n  }\n\n  /** Perform redirection between HTTP and HTTPS */\n  private redirectToProtocol(secure: boolean, transition: Transition | undefined = undefined) {\n    const href =\n      transition !== undefined\n        ? RedirectionService._transitionToUrl(this.router, transition, { ssl: secure })\n        : // eslint-disable-next-line sonarjs/no-nested-conditional\n          window.location.href.replace(/^https?:/, secure ? 'https:' : 'http:');\n\n    void transition?.abort();\n    window.location.replace(href);\n  }\n\n  /* Open a new tab with the given URL */\n  openNewTab(url: string): Window {\n    return window.open(url, '_blank');\n  }\n\n  /**\n   * @private\n   *  Wrap external dependency to help unit testing\n   */\n  // FIXME: Should be private but used in tests atm\n  static _transitionToUrl(\n    router: RouterService,\n    transition: Transition,\n    { ssl }: { ssl: boolean },\n  ) {\n    return transitionToUrl(router, transition, { ssl });\n  }\n}\n","import type ModelRegistry from '@ember-data/types/registries/model';\nimport type AbstractModel from 'client/data/models/abstract-model';\nimport type CollectionModel from 'client/data/models/collection';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport { getOptionValueToDisplay } from 'client/utils/reference-field-utils';\n\nconst isDisplayFieldId = (collection: CollectionModel) => {\n  const field = collection.get('displayField');\n  return ['id', '_id', 'uuid', undefined].includes(field?.fieldName);\n};\n\nexport default class ReferenceFieldService extends Service {\n  @service private store: StoreService;\n\n  async ensureRecordLoaded(\n    recordIds: string[] | number[],\n    collection: CollectionModel,\n  ): Promise<boolean> {\n    if (recordIds.length !== 1) return true;\n\n    try {\n      await this.store.findRecord(\n        collection.get('emberModelName') as unknown as keyof ModelRegistry,\n        recordIds[0],\n        {\n          adapterOptions: {\n            fields: { [collection.name]: collection.displayFieldNameOrPrimaryKey },\n          },\n        },\n      );\n      return true;\n    } catch {\n      return false;\n    }\n  }\n\n  getValueToDisplay(\n    recordIds: string[] | number[] | null | undefined,\n    collection: CollectionModel | null | undefined,\n  ): string | null {\n    if (!recordIds || !recordIds.length) return null;\n    if (!collection) return `(Deleted collection) #${recordIds.objectAt(0)}`;\n    if (recordIds.length > 1) return `View records (${recordIds.length})`;\n    if (isDisplayFieldId(collection)) return `#${recordIds[0]}`;\n\n    const record = this.store.peekRecord(\n      collection.get('emberModelName') as unknown as keyof ModelRegistry,\n      recordIds[0],\n    ) as AbstractModel | null;\n\n    if (!record) return null;\n\n    return getOptionValueToDisplay(collection, record);\n  }\n}\n","// eslint-disable-next-line forest-custom/dependency-rules\nimport type ClientRecordRelationshipStore from 'client/features/client-record/services/internal-business/relationship-store';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type RelatedRecordsContext from 'client/utils/liana-records/related-records-context';\n\nimport { service } from '@ember/service';\nimport { all, task } from 'ember-concurrency';\n\nimport config from 'client/config/environment';\nimport CollectionModel, { SortingOrderEnum } from 'client/data/models/collection';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport RecordsManagerService from 'client/legacy/services/records-manager';\nimport { pauseFor } from 'client/utils/ember-promise';\nimport NestedCollection from 'client/utils/nested/collection';\nimport { namespace } from 'client/utils/string-utils';\n\nconst INTERVAL_BETWEEN_LIST_AND_COUNT = config.APP.intervalBetweenListAndCount;\n\nexport default class RelatedRecordsManagerService extends RecordsManagerService {\n  @service private lianaSession: LianaSessionService;\n  @service private lianaFeatures: LianaFeaturesService;\n  // This service should not be able to call the relationship store directly\n  @service('feature/client-record/internal-business/relationship-store')\n  private clientRecordRelationshipStore: ClientRecordRelationshipStore;\n\n  fetchRecordsList = task(async (recordsContext: RelatedRecordsContext) => {\n    const startTimeInterface = Date.now();\n    let requestDuration: number;\n\n    try {\n      const records = (await this.clientRecordRelationshipStore.queryHasMany.perform(\n        recordsContext,\n      )) as ClientRecordModel[] & { meta?: { count?: number } };\n\n      if (!records) {\n        throw new Error('Cannot reach your data');\n      }\n\n      recordsContext.error = null;\n      recordsContext.records = records;\n\n      if (records.meta?.count) {\n        recordsContext.recordsCount = records.meta.count;\n      }\n    } catch (error) {\n      recordsContext.error = await this.clientRecordFeatureService.handleListingError(\n        error as Error,\n        'has-many',\n        { collection: recordsContext.collection },\n      );\n    } finally {\n      requestDuration = Date.now() - startTimeInterface;\n    }\n\n    this.registerPerformanceTracking(recordsContext, {\n      requestDuration,\n      startTimeInterface,\n    });\n\n    recordsContext.isLoading = false;\n  });\n\n  fetchRecordsCount = task(async (recordsContext: RelatedRecordsContext) => {\n    if (recordsContext.field.collection instanceof NestedCollection) return true;\n\n    try {\n      await this.clientRecordFeatureService.fetchRecordsCount(recordsContext);\n      return true;\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      return false;\n    }\n  });\n\n  public getRecords = task(async (recordsContext: RelatedRecordsContext) => {\n    const collectionReferenced = recordsContext.collection;\n\n    recordsContext.isLoading = true;\n    recordsContext.recordsCount = null;\n    recordsContext.records = null;\n\n    if (!recordsContext.parentRecord || !collectionReferenced) {\n      // NOTICE: If the record is missing or if the hasMany relationship model cannot be registered\n      //         inside Forest Admin, do not try to fetch the hasMany data.\n      recordsContext.isLoading = false;\n      return;\n    }\n\n    if (collectionReferenced.isEmbedded) {\n      let records = recordsContext.parentRecord[\n        recordsContext.field.attributeName\n      ] as ClientRecordModel[] & { sortBy?: (fieldName: string) => ClientRecordModel[] };\n      if (records && 'sortBy' in records && recordsContext.firstSortingParameter?.fieldName) {\n        records = records.sortBy(namespace(recordsContext.firstSortingParameter?.fieldName, '-'));\n        if (recordsContext.firstSortingParameter?.order === SortingOrderEnum.Descending) {\n          records = records.reverse();\n        }\n      }\n      recordsContext.records = records;\n      recordsContext.recordsCount = recordsContext.records?.length || 0;\n      recordsContext.isLoading = false;\n      return;\n    }\n\n    const environment = this.lianaSession.currentEnvironment;\n    const dedicatedCountRequest = this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.DedicatedCountRequest,\n      environment,\n    );\n    const useDedicatedCountRequest =\n      dedicatedCountRequest\n      && !recordsContext.field.isVirtual\n      && collectionReferenced instanceof CollectionModel\n      && !collectionReferenced.isSmart;\n\n    const promises = [];\n\n    promises.push(this.fetchRecordsList.perform(recordsContext));\n\n    if (useDedicatedCountRequest && recordsContext.isCountEnabled !== false) {\n      // NOTICE: Run later to ensure that the records list request is sent first by the liana, as\n      //         the records display is the priority. The count is not mandatory information.\n      await pauseFor(INTERVAL_BETWEEN_LIST_AND_COUNT);\n      promises.push(this.fetchRecordsCount.perform(recordsContext));\n    }\n\n    await all(promises);\n  });\n\n  protected override async trackActivityRead(\n    recordsContext: RelatedRecordsContext,\n    {\n      timingInterface,\n      timingRequest,\n      withFilters,\n      withSearch,\n    }: {\n      timingInterface?: number;\n      timingRequest?: number;\n      withFilters: boolean;\n      withSearch: boolean;\n    },\n  ) {\n    let label = `list relation \"${recordsContext.field.displayName}\"`;\n    if (withSearch && withFilters) {\n      label += ' with search and filter';\n    } else if (withSearch) {\n      label += ' with search';\n    } else if (withFilters) {\n      label += ' with filter';\n    }\n\n    await this.activityTracker.trackRead({\n      collection: recordsContext.collection,\n      action: 'listRelatedData',\n      label,\n      timingInterface,\n      timingRequest,\n      recordId: recordsContext.parentRecord?.id,\n    });\n  }\n}\n","import type ModelRegistry from '@ember-data/types/registries/model';\nimport type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type RenderingModel from 'client/data/models/rendering';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport { computed } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport { attr, belongsTo, hasMany } from '@ember-data/model';\n\nimport { getApplicationInstance, getModelClass } from 'client/utils/ember/get-instance-utils';\nimport SchemaUtils from 'client/utils/schema-utils';\nimport { namespace } from 'client/utils/string-utils';\n\nexport default class RelationshipsBinderService extends Service {\n  @service tracker: TrackerService;\n\n  public bind(rendering: RenderingModel) {\n    rendering.collections.forEach((collection) => {\n      this.setRelationshipsFor(collection);\n    });\n  }\n\n  private setRelationshipsFor(collection: CollectionModel) {\n    const modelName = collection.get('emberModelName');\n    const modelClass = this.modelClass(collection);\n    if (!modelClass) {\n      return;\n    }\n    const fields = {};\n\n    collection.get('fields').forEach((field) => {\n      if (!SchemaUtils.isRelationship(field)) return;\n      if (!field.get('referenceModels')) {\n        console.debug(\n          `Cannot register ${field.get('fieldName')} because ${field.get(\n            'referenceModelName',\n          )} model does not exists.`,\n        );\n        return;\n      }\n\n      const ref = this.reference(field) as keyof ModelRegistry;\n      if (!ref) {\n        return;\n      }\n\n      const attribute = RelationshipsBinderService.attribute(field);\n\n      if (!attribute) {\n        this.tracker.captureException(\n          new Error(`field ${field.id} badly returned by the forestadmin api`),\n        );\n        return;\n      }\n\n      if (collection.isEmbedded) {\n        fields[attribute] = attr('string');\n        fields[`${attribute}Fragment`] = computed(attribute, function () {\n          // eslint-disable-next-line @typescript-eslint/no-unsafe-return, ember/classic-decorator-no-classic-methods, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call\n          return this.get(`${attribute}.id`);\n        });\n      } else if (SchemaUtils.isBelongsTo(field)) {\n        const isIntegrationSmartRelationship = field.get('isVirtual') && !!field.get('integration');\n\n        // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n        // @ts-ignore\n        fields[attribute] = belongsTo(ref, {\n          async: isIntegrationSmartRelationship,\n          inverse: null,\n          polymorphic: field.isPolymorphic,\n        });\n      } else {\n        fields[attribute] = hasMany(ref, {\n          async: true,\n          // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n          // @ts-ignore\n          inverse: null,\n        });\n      }\n    });\n\n    const applicationInstance = getApplicationInstance(this);\n    applicationInstance.unregister(`model:${modelName}`);\n    applicationInstance.register(`model:${modelName}`, modelClass.extend(fields));\n  }\n\n  private modelClass(collection: CollectionModel) {\n    return getModelClass(this, collection.emberModelName);\n  }\n\n  private reference(field: FieldModel) {\n    if (field.isPolymorphic) {\n      // TODO: when migrating to ember-data v4.7 replace with `as` from polymorphic field\n      return 'polymorphic-client-model';\n    }\n\n    // Returns the reference only if the pointed model exists.\n    const refModelName = field.referenceModelName;\n    if (getApplicationInstance(this).hasRegistration(`model:${refModelName}`)) {\n      return refModelName;\n    }\n    console.debug(`Reference '${refModelName}' is not found.`);\n    return null;\n  }\n\n  private static attribute(field: FieldModel) {\n    return field?.fieldName ? namespace(field.fieldName, '-') : null;\n  }\n}\n","import type CollectionEnvironmentModel from 'client/data/models/collection-environment';\nimport type FieldEnvironmentModel from 'client/data/models/field-environment';\nimport type { FilterSmartActionPermissionAttributes } from 'client/data/models/fragment-filter-smart-action-permission';\nimport type SmartActionPermissions from 'client/data/models/smart-action-permissions';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\n\nexport default class RoleConditionService extends Service {\n  @service declare store: StoreService;\n\n  getFieldsFilterable(collection: CollectionEnvironmentModel): FieldEnvironmentModel[] {\n    if (collection?.isSmart) {\n      return [];\n    }\n\n    return collection?.fields.filter((field) => field.canFilter) || [];\n  }\n\n  @action\n  createTriggerCondition(\n    permission: SmartActionPermissions,\n    args: FilterSmartActionPermissionAttributes,\n  ) {\n    permission.triggerCondition = this.store.createFragment(\n      'fragment-filter-smart-action-permission',\n      args,\n    );\n\n    return permission.triggerCondition;\n  }\n\n  @action\n  clearTriggerCondition(permission: SmartActionPermissions) {\n    permission.triggerCondition?.clear();\n  }\n\n  @action\n  createApprovalRequiredCondition(\n    permission: SmartActionPermissions,\n    args: FilterSmartActionPermissionAttributes,\n  ) {\n    permission.approvalRequiredCondition = this.store.createFragment(\n      'fragment-filter-smart-action-permission',\n      args,\n    );\n\n    return permission.approvalRequiredCondition;\n  }\n\n  @action\n  clearApprovalRequiredCondition(permission: SmartActionPermissions) {\n    permission.approvalRequiredCondition?.clear();\n  }\n\n  @action\n  createUserApprovalCondition(\n    permission: SmartActionPermissions,\n    args: FilterSmartActionPermissionAttributes,\n  ) {\n    permission.userApprovalCondition = this.store.createFragment(\n      'fragment-filter-smart-action-permission',\n      args,\n    );\n\n    return permission.userApprovalCondition;\n  }\n\n  @action\n  clearUserApprovalCondition(permission: SmartActionPermissions) {\n    permission.userApprovalCondition?.clear();\n  }\n}\n","import type ApplicationInstance from '@ember/application/instance';\nimport type { Route } from '@ember/routing';\nimport type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type BillingModel from 'client/data/models/billing';\nimport type ChartModel from 'client/data/models/chart';\nimport type CollectionModel from 'client/data/models/collection';\nimport type DashboardModel from 'client/data/models/dashboard';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type FieldModel from 'client/data/models/field';\nimport type ProjectModel from 'client/data/models/project';\nimport type RowCreateModel from 'client/data/models/row-create';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n\nimport { getOwner } from '@ember/application';\nimport { computed } from '@ember/object';\nimport { reads } from '@ember/object/computed';\nimport Service, { service } from '@ember/service';\nimport { isEqual } from 'lodash';\n\nimport getRouteParams from 'client/utils/route-params';\n\ntype HistoryItem = {\n  modelDisplayName: string;\n  routeName: string;\n  params: string[];\n  queryParams?: Record<string, unknown>;\n};\n\nexport default class RouteHistoryService extends Service {\n  @service() store: StoreService;\n  @service() router: RouterService;\n\n  private readonly sessionStorageKey = 'forest-route-history';\n  private readonly maxHistoryLength = 100;\n  history: HistoryItem[] = [];\n\n  @reads('history.lastObject') private current: HistoryItem;\n\n  @computed('history.[]')\n  private get previous(): HistoryItem {\n    return this.history.objectAt(this.history.length - 2);\n  }\n\n  constructor(properties?: object) {\n    super(properties);\n\n    this.loadHistory();\n\n    this.router.on('routeDidChange', (transition) => {\n      const routeName = transition?.to?.name;\n      if (routeName) {\n        const route = (getOwner(this) as ApplicationInstance).lookup(`route:${routeName}`) as Route;\n        this.setCurrentRoute(route.modelFor(routeName) as Record<string, unknown>, transition);\n      }\n    });\n  }\n\n  private addRouteToHistory(historyItem: HistoryItem) {\n    const { maxHistoryLength, history } = this;\n\n    history.pushObject(historyItem);\n\n    if (history.get('length') > maxHistoryLength) {\n      history.shiftObject();\n    }\n  }\n\n  public updateLastHistoryItemDisplayName(newDisplayName: string) {\n    if (this.current?.modelDisplayName) {\n      this.current.modelDisplayName = newDisplayName;\n      // This spreads the change to the breadcrumb inner values\n      // eslint-disable-next-line ember/classic-decorator-no-classic-methods\n      this.notifyPropertyChange('history');\n    }\n  }\n\n  private getModelNameIfNeededForViewEdit(\n    historyItem: HistoryItem,\n    model: {\n      integration?: string;\n      record: ClientRecordModel;\n      collection: CollectionModel;\n    },\n  ) {\n    if (historyItem.routeName.includes('.view-has-many')) {\n      historyItem.modelDisplayName = this.store.peekRecord('row-edit', historyItem.params[6])?.field\n        .displayName;\n    } else if (historyItem.routeName.includes('.new-belongs-to')) {\n      historyItem.modelDisplayName = this.store.peekRecord('field', historyItem.params[6])\n        ?.displayName;\n    } else if (historyItem.routeName.includes('.integration')) {\n      historyItem.modelDisplayName = model.integration;\n    } else if (model.record) {\n      const displayFieldName = model.collection.get('displayFieldWithNamespace');\n      let modelDisplayName =\n        displayFieldName === 'id'\n          ? `#${model.record.get(displayFieldName)}`\n          : (model.record.get(displayFieldName as keyof ClientRecordModel) as string);\n      if (!modelDisplayName) {\n        modelDisplayName = `#${model.record.get('id')}`;\n      }\n      historyItem.modelDisplayName = modelDisplayName;\n    }\n  }\n\n  private getModelNameIfNeededForViewCreate(\n    historyItem: HistoryItem,\n    model: { field: FieldModel; row: RowCreateModel; collection: CollectionModel },\n  ) {\n    if (historyItem.routeName.includes('.new-belongs-to')) {\n      historyItem.modelDisplayName = `Create a new ${model.field?.displayName}`;\n    } else if (\n      historyItem.routeName.includes('.view-has-many.create')\n      || historyItem.routeName.includes('view-has-many-embedded.create')\n    ) {\n      historyItem.modelDisplayName = `Create a new ${model.row?.field?.displayName}`;\n    } else if (historyItem.routeName.includes('.view-has-many.add')) {\n      historyItem.modelDisplayName = `Add existing ${model.row?.field?.displayName}`;\n    } else if (historyItem.routeName.includes('.view-has-many')) {\n      historyItem.modelDisplayName = model.row?.field?.displayName;\n    } else if (historyItem.routeName.includes('.details')) {\n      historyItem.modelDisplayName = `Create a new ${model.collection?.displayNameLowerCase}`;\n    }\n  }\n\n  private getModelNameIfNeeded(historyItem: HistoryItem, model: Record<string, unknown>) {\n    if (!model) return;\n\n    if (historyItem.routeName.endsWith('.smart-edit')) {\n      historyItem.modelDisplayName = (model as { chart: ChartModel }).chart.name;\n    } else if (historyItem.routeName.includes('.view-edit')) {\n      this.getModelNameIfNeededForViewEdit(\n        historyItem,\n        model as {\n          environment: EnvironmentModel;\n          project: ProjectModel;\n          billing: BillingModel;\n          collection: CollectionModel;\n          collectionForList: CollectionModel;\n          segmentId: string;\n          record: ClientRecordModel;\n        },\n      );\n    } else if (historyItem.routeName.includes('.view-create')) {\n      this.getModelNameIfNeededForViewCreate(\n        historyItem,\n        model as { field: FieldModel; row: RowCreateModel; collection: CollectionModel },\n      );\n    } else if (historyItem.routeName.endsWith('.collection.list.index')) {\n      historyItem.modelDisplayName = model.displayNameWithEmoji as string;\n    } else if (historyItem.routeName.includes('.collection.settings')) {\n      historyItem.modelDisplayName = 'Settings';\n    } else if (historyItem.routeName.endsWith('.dashboard.view.index')) {\n      historyItem.modelDisplayName = (model.dashboard as DashboardModel).displayNameWithEmoji;\n    } else if (historyItem.routeName.endsWith('.collection.list.smart-view-editor')) {\n      historyItem.modelDisplayName = model.name as string;\n    }\n  }\n\n  public setCurrentRoute(model: Record<string, unknown>, transition: Transition) {\n    const params = getRouteParams(transition.to);\n    const { queryParams } = transition.to;\n    const historyItem: HistoryItem = {\n      modelDisplayName: '',\n      routeName: transition.to.name,\n      params,\n      queryParams,\n    };\n\n    this.getModelNameIfNeeded(historyItem, model);\n\n    const historyLength = this.history.length;\n    if (this.isDuplicate(historyItem)) {\n      this.flushFrom(historyLength - 1);\n    } else if (this.isGoingBack(historyItem)) {\n      if (this.history[historyLength - 3]?.routeName === 'start') {\n        // Removes last two entries\n        this.flushFrom(historyLength - 3);\n      } else {\n        // Only removes last one\n        this.flushFrom(historyLength - 2);\n      }\n    }\n    this.addRouteToHistory(historyItem);\n    this.saveHistory();\n  }\n\n  private sameAs(newHistoryItem: HistoryItem, propertyName: 'current' | 'previous') {\n    return (\n      this[propertyName]\n      && newHistoryItem.routeName === this[propertyName].routeName\n      && isEqual(newHistoryItem.params, this[propertyName].params)\n      && isEqual(newHistoryItem.queryParams, this[propertyName].queryParams)\n    );\n  }\n\n  private isDuplicate(newHistoryItem: HistoryItem) {\n    return this.sameAs(newHistoryItem, 'current');\n  }\n\n  private isGoingBack(newHistoryItem: HistoryItem) {\n    return this.sameAs(newHistoryItem, 'previous');\n  }\n\n  private loadHistory() {\n    const parsedHistory = JSON.parse(\n      sessionStorage.getItem(this.sessionStorageKey),\n    ) as HistoryItem[];\n    this.set('history', parsedHistory || []);\n  }\n\n  private saveHistory() {\n    const stringifiedHistory = JSON.stringify(this.history);\n    sessionStorage.setItem(this.sessionStorageKey, stringifiedHistory);\n  }\n\n  public flushFrom(index: number) {\n    if (index < 0) {\n      this.set('history', []);\n    } else {\n      this.history.splice(index, this.history.length);\n    }\n\n    this.saveHistory();\n  }\n\n  public getPreviousRoute() {\n    if (this.history.length - 2 > 0) {\n      return this.history[this.history.length - 2];\n    }\n    return null;\n  }\n\n  public getLastRenderingRouteBeforeCollectionSettings() {\n    let i = 2;\n\n    while (\n      this.history.length - i > 0\n      && (this.history[this.history.length - i].routeName.startsWith(\n        'project.rendering.data.collection.settings',\n      )\n        || !this.history[this.history.length - i].routeName.startsWith('project.rendering'))\n    ) {\n      i += 1;\n    }\n\n    if (this.history.length - i > 0) {\n      // We must flush the collection settings routes to be sure breadcrumbs will be well displayed.\n      this.flushFrom(this.history.length - i + 1);\n      // And then we return the last element of the history.\n      return this.history[this.history.length - 1];\n    }\n    return null;\n  }\n\n  public getLastRenderingPage(projectName: string) {\n    for (let i = this.history.length - 1; i >= 0; i -= 1) {\n      const historyItem = this.history[i];\n      if (\n        historyItem.routeName.startsWith('project.rendering')\n        && projectName === historyItem.params[0]\n      ) {\n        return historyItem;\n      }\n    }\n    return null;\n  }\n\n  public getLastRouteBeforeAccountSettings() {\n    for (let i = this.history.length - 1; i >= 0; i -= 1) {\n      const historyItem = this.history[i];\n      if (historyItem.routeName !== 'start' && !historyItem.routeName.startsWith('user-settings')) {\n        return historyItem;\n      }\n    }\n    return null;\n  }\n\n  public async transitsToHistoryRoute(historyRoute: HistoryItem) {\n    if (!historyRoute) {\n      return;\n    }\n\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    await this.router.transitionTo(historyRoute.routeName, ...historyRoute.params, {\n      queryParams: historyRoute.queryParams,\n    });\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type CurrentOrganizationService from 'client/legacy/services/current-organization';\nimport type CustomDomainService from 'client/legacy/services/custom-domain';\nimport type RedirectionService from 'client/legacy/services/redirection';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type ToastrService from 'client/legacy/services/toastr';\n\nimport Service, { service } from '@ember/service';\n\nexport default class SamlFlowService extends Service {\n  @service router: RouterService;\n  @service serverFetch: ServerFetchService;\n  @service redirection: RedirectionService;\n  @service toastr: ToastrService;\n  @service currentOrganization: CurrentOrganizationService;\n  @service customDomain: CustomDomainService;\n\n  async initiateLogin(\n    organizationName: string,\n    {\n      destinationUrl,\n      queryParams,\n      isTest,\n    }: {\n      destinationUrl?: string;\n      queryParams?: Record<string, string>;\n      isTest?: boolean;\n    } = {},\n  ) {\n    const relayState = encodeURIComponent(\n      JSON.stringify({\n        organizationName,\n        // 2 levels of encoding to support JSON in URI (filters)\n        destinationUrl: encodeURI(destinationUrl || this.router.currentURL),\n        queryParams,\n        test: isTest === true,\n        ...(this.customDomain.isCustomDomain\n          ? { customDomain: this.customDomain.currentDomain }\n          : {}),\n      }),\n    );\n\n    const response = await this.serverFetch.fetch(\n      `/api/saml/login?RelayState=${relayState}`,\n      {},\n      true,\n    );\n\n    const body = (await response.json()) as { loginUrl: string };\n\n    if (isTest) {\n      await this.currentOrganization.model.samlConfiguration;\n      this.redirection.redirectToHref(body.loginUrl);\n    } else {\n      this.redirection.redirectToHref(body.loginUrl);\n\n      // stay on loading page until IdP page is loaded\n      await this.router.transitionTo('/loading');\n    }\n  }\n}\n","import type LianaSession from 'client/legacy/services/liana-session';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type { AbilitiesService } from 'ember-can';\n\nimport Service, { service } from '@ember/service';\n\nexport default class ScimService extends Service {\n  @service private lianaSession: LianaSession;\n  @service private serverFetch: ServerFetchService;\n  @service private abilities: AbilitiesService;\n\n  public async deleteScimToken(): Promise<boolean> {\n    await this.serverFetch.fetch(\n      `/api/projects/${this.projectId}/scim-token`,\n      {\n        method: 'DELETE',\n      },\n      true,\n    );\n\n    return true;\n  }\n\n  async generateScimToken(): Promise<string> {\n    const response = await this.serverFetch.fetch(\n      `/api/projects/${this.projectId}/scim-token`,\n      {\n        method: 'POST',\n      },\n      true,\n    );\n\n    const { token } = (await response.json()) as unknown as { token: string };\n\n    return token;\n  }\n\n  public get isFeatureAvailableOnCurrentProject(): boolean {\n    return Boolean(this.abilities.can('access to userProvisioning', undefined, {}));\n  }\n\n  private get projectId(): string | null {\n    return this.lianaSession.currentProject?.id;\n  }\n}\n","import type { RequesterIdentifierEnum } from 'client/data/models/browser-extension-configuration';\nimport type { PermissionLevelEnum } from 'client/data/models/invitation';\nimport type PlanModel from 'client/data/models/plan';\nimport type { PlanTypesEnum } from 'client/data/models/plan';\nimport type ProjectModel from 'client/data/models/project';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type DatabaseCredentialsInfo from 'client/utils/onboarding/database-credentials';\nimport type SegmentService from 'ember-cli-segment/services/segment';\n\nimport Service, { service } from '@ember/service';\n\ntype OnboardingTrackingMinimalInformation = {\n  screen: string;\n  phase: string;\n  projectId: string;\n  projectName: string;\n};\n\ntype DeploymentTrackingMinimalInformation = Partial<OnboardingTrackingMinimalInformation> & {\n  environmentType: string;\n  environmentName: string;\n  architecture: string;\n  agent: string;\n};\n\ntype EnvironmentDeployedInformation = {\n  projectId: string;\n  projectName: string;\n  architecture: string;\n  agent: string;\n};\n\ntype Flow = { name: string; agent: string };\n\ntype FormattedDatabaseCredentialsInfo = ReturnType<DatabaseCredentialsInfo['formatForSegment']>;\nexport enum EventsEnum {\n  HelpBubbleOpened = 'Help Bubble Opened',\n  HelpBubbleLinkClicked = 'Help Bubble Link Clicked',\n  ArchitectureChosen = 'Architecture Chosen',\n  HostingChosen = 'Hosting chosen',\n  SuggestIntegrationFlowStarted = 'Suggest Integration Flow Started',\n  WaitingListDatasourceSubscribed = 'WaitingList Datasource Subscribed',\n  NewIntegrationSuggested = 'New Integration Suggested',\n  InitializationNextStepTriggered = 'Initialization Next Step Triggered',\n  DatabaseCredentialsSubmitted = 'Database Credentials Submitted',\n  StartNoCredentialsInBrowserFlow = 'Start No Credentials in Browser Flow', // Event name should be Database Credentials Skipped...\n  ApplicationURLSubmitted = 'Application URL Submitted',\n  EnvironmentNameSubmitted = 'Environment Name Submitted',\n  AuthenticationErrorEncountered = 'Authentication Error Encountered',\n  WorkspaceCreated = 'Workspace Created',\n  WorkspaceComponentAdded = 'Component Added',\n  WorkspaceComponentDuplicated = 'Component Duplicated',\n  WorkspaceComponentDeleted = 'Component Deleted',\n  WorkspaceComponentEdited = 'Component Edited',\n  InitializationCodeLanguageChanged = 'Initialization Code Language Changed',\n  SmartViewSelectAllWithFalseArgument = 'Smart View Select All With False Argument',\n  InvitationLinkCopied = 'Invitation Link Copied',\n  NocodeActionCreated = 'Nocode Action Created',\n  CloudCustomizationMenuAccessed = 'Cloud Customization Menu accessed',\n  DeprecationUsage = 'Deprecation Usage',\n  SmartViewDownloaded = 'Smart View Downloaded',\n  SmartChartDownloaded = 'Smart Chart Downloaded',\n  InboxCreated = 'New Inbox Created',\n  InboxUpdated = 'Inbox Updated',\n  InboxDeleted = 'Inbox Deleted',\n  InboxRecordAssigned = 'Inbox Record Assigned',\n  AssistUserMappingConfigUpdated = 'Assist User Mapping Config Updated',\n  ActionIntentExecuted = 'Action Intent Executed',\n  WorkflowCreated = 'Workflow Created',\n}\nenum GoogleAnalyticsEventsEnum {\n  SignupFormCompleted = 'Signup Form Completed',\n  InvitationFormCompleted = 'Invitation Form Completed',\n  EnvironmentProductionAccessed = 'Environment Production Accessed',\n  FreeTrialButtonClicked = 'Free Trial Button Clicked',\n  OnboardingStepsCompleted = 'Onboarding Steps Completed',\n  PhoneNumberProvided = 'Phone Number Provided',\n}\nenum DeploymentEventsEnum {\n  DatabaseCredentialsSubmitted = 'Deployment Database Credentials Submitted',\n  DatabaseCredentialsSkipped = 'Deployment Database Credentials Skipped',\n  ApplicationURLSubmitted = 'Deployment Application URL Submitted',\n  EnvironmentNameSubmitted = 'Deployment Environment Name Submitted',\n  DeploymentFlowStarted = 'Deployment Flow Started',\n}\nenum AutogeneratedWorkspaceEventsEnum {\n  Added = 'Autogenerated Workspaces Added',\n  Skipped = 'Autogenerated Workspaces Skipped',\n  SurveyAnswered = 'Autogenerated Workspaces Survey Answered',\n  SurveySkipped = 'Autogenerated Workspaces Survey Skipped',\n  ButtonClicked = 'Autogenerated Workspaces Button Clicked',\n}\n\nenum BillingEventsEnum {\n  CreditCardFormCompleted = 'Credit Card Form Completed',\n  UpgradePlan = 'Upgrade Plan',\n  UpgradeButtonClicked = 'Upgrade button clicked from preview',\n}\n\nenum DefaultPermissionsEnum {\n  DefaultActionPermissionsEdited = 'Default Action Permissions Edited',\n  DefaultCollectionPermissionsEdited = 'Default Collection Permissions Edited',\n}\n\nenum CustomizationCenterEventsEnum {\n  Opened = 'Customization Center Opened',\n  FolderCreation = 'Customization Center Folder Creation Started',\n  SegmentCreation = 'Customization Center Segment Creation Started',\n  ActionCreation = 'Customization Center Action Creation Started',\n  InboxCreation = 'Customization Center Inbox Creation Started',\n  WorkspaceCreation = 'Customization Center Workspace Creation Started',\n  DashboardCreation = 'Customization Center Dashboard Creation Started',\n  WorkflowCreation = 'Customization Center Workflow Creation Started',\n}\n\nexport default class SegmentTrackerService extends Service {\n  @service declare lianaSession: LianaSession;\n  @service declare segment: SegmentService;\n\n  enable() {\n    this.segment.enable();\n  }\n\n  identify(id: string | number, email: string, properties: object = {}) {\n    const data = {\n      id,\n      email,\n      ...properties,\n    };\n\n    this.segment.identifyUser(id, data);\n  }\n\n  /**\n   * Send tracking Event\n   */\n  trackOnboardingEvent(\n    eventName: string,\n    onboardingInformation:\n      | OnboardingTrackingMinimalInformation\n      | DeploymentTrackingMinimalInformation,\n    additionalProperties: Record<string, unknown> = {},\n  ) {\n    this.segment.trackEvent(eventName, {\n      ...onboardingInformation,\n      ...additionalProperties,\n    });\n  }\n\n  trackSignupFormCompleted() {\n    this.segment.trackEvent(GoogleAnalyticsEventsEnum.SignupFormCompleted);\n  }\n\n  trackOnboardingPhoneNumber(phoneNumber: string) {\n    this.segment.trackEvent(GoogleAnalyticsEventsEnum.PhoneNumberProvided, { phoneNumber });\n  }\n\n  /**\n   * The onboarding steps have been completed and the first activity log is recorded\n   */\n  trackOnboardingStepsCompleted(deploymentInformation: EnvironmentDeployedInformation) {\n    this.segment.trackEvent(\n      GoogleAnalyticsEventsEnum.OnboardingStepsCompleted,\n      deploymentInformation,\n    );\n  }\n\n  /**\n   *\n   * The project is considered deployed when and the first activity log is recorded in an environment of type production\n   */\n  trackEnvironmentProductionDeployed(deploymentInformation: EnvironmentDeployedInformation) {\n    this.segment.trackEvent(\n      GoogleAnalyticsEventsEnum.EnvironmentProductionAccessed,\n      deploymentInformation,\n    );\n  }\n\n  /**\n   * Send tracking Help Bubble Opened event\n   */\n  trackBubbleEventOpened(\n    bubbleName: string,\n    onboardingInformation: OnboardingTrackingMinimalInformation,\n  ) {\n    this.trackOnboardingEvent(EventsEnum.HelpBubbleOpened, onboardingInformation, {\n      bubbleName,\n    });\n  }\n\n  /**\n   * Send an event when the user upgrades the plan\n   */\n  trackUpgradePlan(properties: { type: PlanTypesEnum }) {\n    this.segment.trackEvent(BillingEventsEnum.UpgradePlan, { plan: properties.type });\n  }\n\n  /**\n   * Send an event when the user clicks on the upgrade button from the layout preview\n   */\n  trackUpgradeButtonClicked(properties: {\n    projectId: string;\n    projectName: string;\n    featureName: string;\n    planId: string;\n    planName: string;\n  }) {\n    this.segment.trackEvent(BillingEventsEnum.UpgradeButtonClicked, properties);\n  }\n\n  /**\n   * Send an event when the credit card form is completed and the project goes from free to paying.\n   */\n  trackCreditCardFormCompleted(properties: {\n    projectName: string;\n    projectId: number;\n    planName: string;\n    planId: number;\n  }) {\n    this.segment.trackEvent(BillingEventsEnum.CreditCardFormCompleted, properties);\n  }\n\n  /**\n   * Send tracking Help Bubble Link Clicked event\n   */\n  trackBubbleEventLinkClicked(\n    bubbleName: string,\n    link: string,\n    onboardingInformation: OnboardingTrackingMinimalInformation,\n  ) {\n    this.trackOnboardingEvent(EventsEnum.HelpBubbleLinkClicked, onboardingInformation, {\n      bubbleName,\n      link,\n    });\n  }\n\n  /**\n   * Send an event when an invitation is sent\n   */\n  trackInvitationFormCompleted({\n    projectName,\n    projectId,\n    permissionLevel,\n  }: {\n    projectId: number;\n    projectName: string;\n    permissionLevel: PermissionLevelEnum;\n  }) {\n    this.segment.trackEvent(GoogleAnalyticsEventsEnum.InvitationFormCompleted, {\n      projectName,\n      projectId,\n      permissionLevel,\n    });\n  }\n\n  /**\n   * Send tracking Architecture Chosen event\n   */\n  trackArchitectureChosen(\n    architectureName: string,\n    onboardingInformation: OnboardingTrackingMinimalInformation,\n  ) {\n    this.trackOnboardingEvent(EventsEnum.ArchitectureChosen, onboardingInformation, {\n      architectureName,\n    });\n  }\n\n  /**\n   * Send tracking Hosting Chosen event\n   */\n  trackHostingChosen(\n    hostingName: string,\n    onboardingInformation: OnboardingTrackingMinimalInformation,\n  ) {\n    this.trackOnboardingEvent(EventsEnum.HostingChosen, onboardingInformation, {\n      hostingName,\n    });\n  }\n\n  /**\n   * Send tracking Suggest Integration Flow Started event\n   */\n  trackSuggestIntegrationFlowStarted(onboardingInformation: OnboardingTrackingMinimalInformation) {\n    this.trackOnboardingEvent(EventsEnum.SuggestIntegrationFlowStarted, onboardingInformation);\n  }\n\n  /**\n   * Send tracking WaitingList Datasource Subscribed event\n   */\n  trackWaitingListDatasourceSubscribed(\n    datasource: string,\n    onboardingInformation: OnboardingTrackingMinimalInformation,\n  ) {\n    this.trackOnboardingEvent(EventsEnum.WaitingListDatasourceSubscribed, onboardingInformation, {\n      datasource,\n    });\n  }\n\n  /**\n   * Send tracking New Integration Suggested event\n   */\n  trackNewIntegrationSuggested(\n    suggestion: string,\n    onboardingInformation: OnboardingTrackingMinimalInformation,\n  ) {\n    this.trackOnboardingEvent(EventsEnum.NewIntegrationSuggested, onboardingInformation, {\n      suggestion,\n    });\n  }\n\n  /**\n   * Send tracking Initialization Next Step Triggered event\n   */\n  trackInitializationNextStepTriggered(\n    flow: Flow,\n    stepNumber: number,\n    onboardingInformation: OnboardingTrackingMinimalInformation,\n  ) {\n    this.trackOnboardingEvent(EventsEnum.InitializationNextStepTriggered, onboardingInformation, {\n      flow: flow.name,\n      agent: flow.agent,\n      stepNumber,\n    });\n  }\n\n  /**\n   * Send tracking Database Credentials Submitted event\n   */\n  trackDatabaseCredentialsSubmitted(\n    flow: Flow,\n    formattedCredentialsInfo: FormattedDatabaseCredentialsInfo,\n    onboardingInformation: OnboardingTrackingMinimalInformation,\n  ) {\n    this.trackOnboardingEvent(EventsEnum.DatabaseCredentialsSubmitted, onboardingInformation, {\n      flow: flow.name,\n      agent: flow.agent,\n      ...formattedCredentialsInfo,\n    });\n  }\n\n  /**\n   * Send an event when a free trial is started\n   */\n  trackFreeTrialButtonClicked({\n    featureName,\n    project,\n    plan,\n  }: {\n    project: ProjectModel;\n    plan: PlanModel;\n    featureName: string;\n  }) {\n    this.segment.trackEvent(GoogleAnalyticsEventsEnum.FreeTrialButtonClicked, {\n      featureName,\n      project,\n      plan,\n    });\n  }\n\n  /**\n   * Send tracking Database Credentials Skipped event\n   */\n  trackDatabaseCredentialsSkipped(\n    flow: Flow,\n    onboardingInformation: OnboardingTrackingMinimalInformation,\n  ) {\n    this.trackOnboardingEvent(EventsEnum.StartNoCredentialsInBrowserFlow, onboardingInformation, {\n      flow: flow.name,\n      agent: flow.agent,\n    });\n  }\n\n  /**\n   * Send tracking Application URL Submitted event\n   */\n  trackApplicationURLSubmitted(\n    flow: Flow,\n    onboardingInformation: OnboardingTrackingMinimalInformation,\n  ) {\n    this.trackOnboardingEvent(EventsEnum.ApplicationURLSubmitted, onboardingInformation, {\n      flow: flow.name,\n      agent: flow.agent,\n    });\n  }\n\n  /**\n   * Send tracking Database Credentials Submitted event\n   */\n  trackDeploymentDatabaseCredentialsSubmitted(\n    flow: Flow,\n    formattedCredentialsInfo: FormattedDatabaseCredentialsInfo,\n    onboardingInformation: OnboardingTrackingMinimalInformation,\n  ) {\n    this.trackOnboardingEvent(\n      DeploymentEventsEnum.DatabaseCredentialsSubmitted,\n      onboardingInformation,\n      {\n        flow: flow.name,\n        ...formattedCredentialsInfo,\n      },\n    );\n  }\n\n  /**\n   * Send tracking Database Credentials Skipped event\n   */\n  trackDeploymentDatabaseCredentialsSkipped(\n    flow: Flow,\n    onboardingInformation: DeploymentTrackingMinimalInformation,\n  ) {\n    this.trackOnboardingEvent(\n      DeploymentEventsEnum.DatabaseCredentialsSkipped,\n      onboardingInformation,\n      {\n        flow: flow.name,\n      },\n    );\n  }\n\n  /**\n   * Send tracking Application URL Submitted event\n   */\n  trackDeploymentApplicationURLSubmitted(\n    flow: Flow,\n    onboardingInformation: DeploymentTrackingMinimalInformation,\n  ) {\n    this.trackOnboardingEvent(DeploymentEventsEnum.ApplicationURLSubmitted, onboardingInformation, {\n      flow: flow.name,\n    });\n  }\n\n  /**\n   * Send tracking Application URL Submitted event\n   */\n  trackDeploymentEnvironmentNameSubmitted(\n    flow: Flow,\n    onboardingInformation: DeploymentTrackingMinimalInformation,\n  ) {\n    this.trackOnboardingEvent(\n      DeploymentEventsEnum.EnvironmentNameSubmitted,\n      onboardingInformation,\n      {\n        flow: flow.name,\n      },\n    );\n  }\n\n  trackDeploymentFlowStarted(deploymentInformation: DeploymentTrackingMinimalInformation) {\n    this.trackOnboardingEvent(DeploymentEventsEnum.DeploymentFlowStarted, deploymentInformation);\n  }\n\n  /**\n   * Send tracking Performance Warner Event\n   */\n  trackPerformanceEvent(\n    eventName: string,\n    requestInformation: {\n      projectId: number | string;\n      environmentId: number | string;\n      userId: number | string;\n      route: string;\n      url: string;\n      userPermissionLevel: string;\n    },\n  ) {\n    const { projectId, environmentId, userId, route, url, userPermissionLevel } =\n      requestInformation;\n\n    this.segment.trackEvent(eventName, {\n      projectId,\n      environmentId,\n      userId,\n      route,\n      url,\n      userPermissionLevel,\n    });\n  }\n\n  /**\n   * Send agent cors error\n   */\n  trackAgentCorsError(projectId: string | number, place: string) {\n    this.segment.trackEvent(EventsEnum.AuthenticationErrorEncountered, {\n      type: 'cors',\n      place,\n      projectId,\n    });\n  }\n\n  trackWorkspaceCreated(workspaceId: number | string) {\n    this.segment.trackEvent(EventsEnum.WorkspaceCreated, {\n      ...this.getContextVariable(),\n      workspaceId,\n    });\n  }\n\n  trackWorkspaceComponentAdded(\n    projectId: number | string,\n    workspaceId: string,\n    newComponentType: WorkspaceComponentTypeEnum,\n  ) {\n    this.segment.trackEvent(EventsEnum.WorkspaceComponentAdded, {\n      projectId,\n      workspaceId,\n      componentType: newComponentType,\n    });\n  }\n\n  trackWorkspaceComponentDuplicated(\n    projectId: number | string,\n    workspaceId: string,\n    componentId: string,\n  ) {\n    this.segment.trackEvent(EventsEnum.WorkspaceComponentDuplicated, {\n      projectId,\n      workspaceId,\n      componentId,\n    });\n  }\n\n  trackWorkspaceComponentDeleted(\n    projectId: number | string,\n    workspaceId: string,\n    newComponentType: WorkspaceComponentTypeEnum,\n  ) {\n    this.segment.trackEvent(EventsEnum.WorkspaceComponentDeleted, {\n      projectId,\n      workspaceId,\n      componentType: newComponentType,\n    });\n  }\n\n  trackWorkspaceComponentEdited(\n    projectId: number | string,\n    workspaceId: string,\n    newComponentType: WorkspaceComponentTypeEnum,\n  ) {\n    this.segment.trackEvent(EventsEnum.WorkspaceComponentEdited, {\n      projectId,\n      workspaceId,\n      componentType: newComponentType,\n    });\n  }\n\n  /**\n   * Send tracking Database Credentials Skipped event\n   */\n  trackInitializationCodeLanguageChanged(\n    flow: Flow,\n    onboardingInformation: OnboardingTrackingMinimalInformation,\n    selection: { from: string; to: string },\n  ) {\n    this.segment.trackEvent(EventsEnum.InitializationCodeLanguageChanged, {\n      flow: flow.name,\n      agent: flow.agent,\n      ...onboardingInformation,\n      ...selection,\n    });\n  }\n\n  private getContextVariable() {\n    return {\n      projectId: this.lianaSession.currentProject?.id,\n      environmentId: this.lianaSession.currentEnvironment?.id,\n      renderingId: this.lianaSession.currentRenderingId,\n    };\n  }\n\n  trackAutogeneratedWorkspacesAdded() {\n    this.segment.trackEvent(AutogeneratedWorkspaceEventsEnum.Added, this.getContextVariable());\n  }\n\n  trackAutogeneratedWorkspacesSkipped() {\n    this.segment.trackEvent(AutogeneratedWorkspaceEventsEnum.Skipped, this.getContextVariable());\n  }\n\n  trackAutogeneratedWorkspacesSurveyAnswered(answer: string) {\n    this.segment.trackEvent(AutogeneratedWorkspaceEventsEnum.SurveyAnswered, {\n      answer,\n      ...this.getContextVariable(),\n    });\n  }\n\n  trackAutogeneratedWorkspacesSurveySkipped() {\n    this.segment.trackEvent(\n      AutogeneratedWorkspaceEventsEnum.SurveySkipped,\n      this.getContextVariable(),\n    );\n  }\n\n  trackAutogeneratedWorkspaceButtonClicked(isFirstWorkspace: boolean) {\n    this.segment.trackEvent(AutogeneratedWorkspaceEventsEnum.ButtonClicked, {\n      isFirstWorkspace,\n      ...this.getContextVariable(),\n    });\n  }\n\n  trackSmartViewSelectAllWithFalseArgument() {\n    this.segment.trackEvent(EventsEnum.SmartViewSelectAllWithFalseArgument);\n  }\n\n  trackInvitationLinkCopied(projectId: string | number, projectName: string) {\n    this.segment.trackEvent(EventsEnum.InvitationLinkCopied, {\n      projectId,\n      projectName,\n    });\n  }\n\n  trackNocodeActionCreated(projectId: string | number, payload: object) {\n    this.segment.trackEvent(EventsEnum.NocodeActionCreated, {\n      projectId,\n      ...payload,\n    });\n  }\n\n  trackCloudCustomizationMenuAccessed() {\n    this.segment.trackEvent(EventsEnum.CloudCustomizationMenuAccessed, {\n      ...this.getContextVariable(),\n      projectName: this.lianaSession.currentProject?.name,\n      environmentName: this.lianaSession.currentEnvironment?.name,\n    });\n  }\n\n  trackDefaultActionPermissionsEdited(projectId: string | number) {\n    this.segment.trackEvent(DefaultPermissionsEnum.DefaultActionPermissionsEdited, {\n      projectId,\n    });\n  }\n\n  trackDefaultCollectionPermissionsEdited(projectId: string | number) {\n    this.segment.trackEvent(DefaultPermissionsEnum.DefaultCollectionPermissionsEdited, {\n      projectId,\n    });\n  }\n\n  trackDeprecationUsage(\n    deprecationName: string,\n    type: 'smart-chart' | 'smart-view' | 'smart-component',\n    containerId: string,\n    modelId: string,\n  ) {\n    this.segment.trackEvent(EventsEnum.DeprecationUsage, {\n      deprecationName,\n      type,\n      modelId,\n      containerId,\n      ...this.getContextVariable(),\n    });\n  }\n\n  trackSmartViewDownloaded({\n    smartViewId,\n    smartViewName,\n    collectionName,\n  }: {\n    smartViewId: string;\n    smartViewName: string;\n    collectionName: string;\n  }) {\n    this.segment.trackEvent(EventsEnum.SmartViewDownloaded, {\n      smartViewId,\n      smartViewName,\n      collectionName,\n      ...this.getContextVariable(),\n    });\n  }\n\n  trackSmartChartDownloaded({\n    smartChartId,\n    smartChartName,\n    collectionName,\n    dashboardId,\n  }: {\n    smartChartId: string;\n    smartChartName: string;\n    collectionName?: string;\n    dashboardId?: string;\n  }) {\n    this.segment.trackEvent(EventsEnum.SmartChartDownloaded, {\n      smartChartId,\n      smartChartName,\n      collectionName,\n      dashboardId,\n      ...this.getContextVariable(),\n    });\n  }\n\n  trackInboxCreated(inboxId: string) {\n    this.segment.trackEvent(EventsEnum.InboxCreated, {\n      ...this.getContextVariable(),\n      projectName: this.lianaSession.currentProject?.name,\n      inboxId,\n    });\n  }\n\n  trackInboxUpdated(inboxId: string) {\n    this.segment.trackEvent(EventsEnum.InboxUpdated, {\n      ...this.getContextVariable(),\n      projectName: this.lianaSession.currentProject?.name,\n      inboxId,\n    });\n  }\n\n  trackInboxDeleted(inboxId: string) {\n    this.segment.trackEvent(EventsEnum.InboxDeleted, {\n      ...this.getContextVariable(),\n      projectName: this.lianaSession.currentProject?.name,\n      inboxId,\n    });\n  }\n\n  trackInboxRecordAssigned(inboxId: string) {\n    this.segment.trackEvent(EventsEnum.InboxRecordAssigned, {\n      ...this.getContextVariable(),\n      projectName: this.lianaSession.currentProject?.name,\n      inboxId,\n    });\n  }\n\n  trackBrowserExtensionAssistUserMappingConfigUpdated(changedProps: {\n    identifier?: RequesterIdentifierEnum;\n    customIdentifierValue?: string;\n    autoSelect?: boolean;\n    numberOfCollections?: number;\n  }) {\n    this.segment.trackEvent(EventsEnum.AssistUserMappingConfigUpdated, {\n      ...this.getContextVariable(),\n      changedProps,\n    });\n  }\n\n  trackActionIntentExecution(actionName: string) {\n    this.segment.trackEvent(EventsEnum.ActionIntentExecuted, {\n      ...this.getContextVariable(),\n      actionName,\n    });\n  }\n\n  trackWorkflowCreated(params: {\n    projectId: string;\n    projectName: string;\n    workflowId: string;\n    workflowName: string;\n  }) {\n    this.segment.trackEvent(EventsEnum.WorkflowCreated, {\n      ...this.getContextVariable(),\n      ...params,\n    });\n  }\n\n  trackCustomizationCenterOpened() {\n    this.segment.trackEvent(CustomizationCenterEventsEnum.Opened, this.getContextVariable());\n  }\n\n  trackCustomizationCenterFolderCreation() {\n    this.segment.trackEvent(\n      CustomizationCenterEventsEnum.FolderCreation,\n      this.getContextVariable(),\n    );\n  }\n\n  trackCustomizationCenterSegmentCreation() {\n    this.segment.trackEvent(\n      CustomizationCenterEventsEnum.SegmentCreation,\n      this.getContextVariable(),\n    );\n  }\n\n  trackCustomizationCenterActionCreation() {\n    this.segment.trackEvent(\n      CustomizationCenterEventsEnum.ActionCreation,\n      this.getContextVariable(),\n    );\n  }\n\n  trackCustomizationCenterInboxCreation() {\n    this.segment.trackEvent(CustomizationCenterEventsEnum.InboxCreation, this.getContextVariable());\n  }\n\n  trackCustomizationCenterWorkspaceCreation() {\n    this.segment.trackEvent(\n      CustomizationCenterEventsEnum.WorkspaceCreation,\n      this.getContextVariable(),\n    );\n  }\n\n  trackCustomizationCenterDashboardCreation() {\n    this.segment.trackEvent(\n      CustomizationCenterEventsEnum.DashboardCreation,\n      this.getContextVariable(),\n    );\n  }\n\n  trackCustomizationCenterWorkflowCreation() {\n    this.segment.trackEvent(\n      CustomizationCenterEventsEnum.WorkflowCreation,\n      this.getContextVariable(),\n    );\n  }\n}\n","import type AuthenticationRedirectionService from 'client/legacy/services/authentication-redirection-service';\nimport type CurrentOrganizationService from 'client/legacy/services/current-organization';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type FileSaverService from 'client/legacy/services/file-saver';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LogoutMessageService from 'client/legacy/services/logout-message';\nimport type SamlFlowService from 'client/legacy/services/saml-flow';\nimport type SessionRefreshService from 'client/legacy/services/session-refresh';\nimport type FetchSharedBusinessService from 'client/shared/services/fetch';\nimport type { AdapterError } from 'client/utils/ember-error-util';\n\nimport { computed } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\nimport ForbiddenLoginResourceAccessError from 'client/data/adapters/errors/forbidden-login-resource-access-error';\nimport emberErrorUtil, { isEmberError } from 'client/utils/ember-error-util';\nimport { throwHttpErrorIfResponseNotOk } from 'client/utils/errors';\nimport extractFileNameFromContentDisposition from 'client/utils/extract-file-name-from-content-disposition';\nimport serializeQueryParameters from 'client/utils/serialize-query-parameters';\n\nconst { getFirstErrorDetail, getFirstErrorName, getFirstErrorMeta } = emberErrorUtil;\n\nfunction normalizeHeaders(headers: HeadersInit): HeadersInit {\n  if (!headers) {\n    return undefined;\n  }\n\n  return Object.entries(headers).reduce((currentHeaders, [name, value]: string[]) => {\n    currentHeaders[name.toLowerCase()] = value;\n    return currentHeaders;\n  }, {});\n}\n\nexport default class ServerFetchService extends Service {\n  @service private errorHandler: ErrorHandlerService;\n  @service private session: ForestSessionService;\n  @service private lianaSession: LianaSessionService;\n  @service private fileSaver: FileSaverService;\n  @service private sessionRefresh: SessionRefreshService;\n  @service private samlFlow: SamlFlowService;\n  @service private logoutMessage: LogoutMessageService;\n  @service private currentOrganization: CurrentOrganizationService;\n  @service private authenticationRedirectionService: AuthenticationRedirectionService;\n  @service('shared/fetch') private fetchService: FetchSharedBusinessService;\n\n  private apiEndpoint = config.APP.apiServerHost;\n  @computed(\n    'apiEndpoint',\n    'lianaSession.currentEnvironment.id',\n    'lianaSession.currentProject.id',\n    'lianaSession.currentRenderingId',\n    'session.data.authenticated.token',\n  )\n  private get headers() {\n    const token = this.session.data?.authenticated?.token;\n\n    return {\n      ...(token ? { authorization: `Bearer ${token}` } : {}),\n      'content-type': 'application/json; charset=utf-8',\n      ...(this.lianaSession.currentProject?.id\n        ? { 'forest-project-id': this.lianaSession.currentProject.id }\n        : {}),\n      ...(this.lianaSession.currentEnvironment?.id\n        ? { 'forest-environment-id': this.lianaSession.currentEnvironment.id }\n        : {}),\n      ...(this.lianaSession.currentRenderingId\n        ? { 'forest-rendering-id': this.lianaSession.currentRenderingId }\n        : {}),\n    };\n  }\n\n  private getURL(pathOrUrl: string, queryParams?: unknown): string {\n    const url = new URL(\n      pathOrUrl.match(/https?:\\/\\//) ? pathOrUrl : `${this.apiEndpoint}${pathOrUrl}`,\n    );\n\n    if (queryParams) {\n      const serialized = serializeQueryParameters(queryParams, false);\n      const searchParams = new URLSearchParams(serialized);\n\n      searchParams.forEach((value, key) => {\n        url.searchParams.append(key, value);\n      });\n    }\n\n    return url.toString();\n  }\n\n  async fetch(\n    pathOrUrl: string,\n    optionsWithQueryParams?: RequestInit & { queryParams?: unknown },\n    shouldThrowIfResponseIsNotOk = false,\n  ): Promise<Response> {\n    await this.sessionRefresh.waitSessionRefreshIfNecessary();\n    // Monkey patch if still not authenticated after a SessionRefresh\n    // WARNING: We don't want to do anything when doing SAML or Google login\n    if (!pathOrUrl.includes('/api/saml/login') && !pathOrUrl.includes('/api/sessions-google')) {\n      this.session.requireAuthenticationAndRedirectToCurrentUrl('authentication.login');\n    }\n\n    const { headers } = this;\n\n    const { queryParams, ...options } = optionsWithQueryParams || {};\n    const url = this.getURL(pathOrUrl, queryParams);\n\n    const normalizedOptions =\n      options && options.headers\n        ? {\n            ...options,\n            headers: {\n              ...headers,\n              ...normalizeHeaders(options.headers),\n            },\n          }\n        : options;\n\n    return this._fetch(\n      url,\n      { credentials: 'include', headers, ...normalizedOptions },\n      shouldThrowIfResponseIsNotOk,\n    );\n  }\n\n  async fetchFile(url: string) {\n    const response = await this.fetch(url, { method: 'GET' });\n    if (!response.ok) {\n      throw response as unknown as Error;\n    }\n\n    const filename = extractFileNameFromContentDisposition(\n      response.headers.get('content-disposition'),\n    );\n\n    const blob = await response.blob();\n\n    this.fileSaver.saveAs(blob, filename);\n  }\n\n  private async _fetch(\n    url: string,\n    options: RequestInit,\n    shouldThrowIfResponseIsNotOk: boolean,\n  ): Promise<Response> {\n    // NOTICE: Ensure secure authentication (using cookies) using credentials property.\n    const response = await this.fetchService.fetch(url, options, false);\n    // NOTICE: Manage redirection when the user tries to acces a ressource\n    //         which requires a different authentication from his current one.\n    if (response.ok) return response;\n    const error = (await response.clone().json()) as unknown;\n\n    if (isEmberError(error) && getFirstErrorName(error) === 'InvalidTokenForOrganizationError') {\n      await this.handleInvalidTokenForOrganizationError(error);\n    }\n\n    if (shouldThrowIfResponseIsNotOk) {\n      await throwHttpErrorIfResponseNotOk(response, options.method || 'GET');\n    }\n\n    return response;\n  }\n\n  private async handleInvalidTokenForOrganizationError(error: AdapterError) {\n    const ressourceTarget = this.authenticationRedirectionService.useRedirectAccess();\n    if (ressourceTarget) {\n      await this.currentOrganization.transitionToProjectsIndex();\n      return;\n    }\n\n    const { organizationName, resourceRequiresSso } = getFirstErrorMeta<{\n      organizationName: string;\n      resourceRequiresSso: boolean;\n    }>(error);\n\n    const redirectUrl = window.location.href;\n    if (organizationName && resourceRequiresSso) {\n      this.authenticationRedirectionService.deleteRedirectTarget();\n      await this.samlFlow.initiateLogin(organizationName, { destinationUrl: redirectUrl });\n    }\n\n    if (!resourceRequiresSso) {\n      this.logoutMessage.saveLogoutMessage(\n        new ForbiddenLoginResourceAccessError({\n          organizationName,\n          resourceRequiresSso,\n          message: getFirstErrorDetail(error),\n        }),\n      );\n      await this.session.invalidateAndSaveTransition(redirectUrl, {\n        saveCurrentUrlForLogin: false,\n      });\n    }\n  }\n}\n","import Service from '@ember/service';\n\nexport default class SessionRefreshService extends Service {\n  private nextSessionRefresh: number = null;\n  private refreshSessionCallback?: () => Promise<void> = null;\n  private sessionRefreshPromise?: Promise<void> = null;\n\n  // Doesn't seem to be used anymore\n  public get isSessionRefreshInProgress() {\n    return Boolean(this.sessionRefreshPromise);\n  }\n\n  setNextSessionRefresh(timestampMs: number, refreshSessionCallback: () => Promise<void>) {\n    this.nextSessionRefresh = timestampMs;\n    this.refreshSessionCallback = refreshSessionCallback;\n  }\n\n  cleanRefreshTokenSessionData() {\n    this.nextSessionRefresh = null;\n    this.sessionRefreshPromise = null;\n    this.refreshSessionCallback = null;\n  }\n\n  setSessionRefreshPromise(\n    promise: Promise<unknown>,\n    refreshSessionCallback?: () => Promise<void>,\n  ) {\n    this.refreshSessionCallback = refreshSessionCallback;\n    this.sessionRefreshPromise = promise\n      .then(() => {\n        this.sessionRefreshPromise = undefined;\n        // It could have changed in the meantime\n        if (this.refreshSessionCallback === refreshSessionCallback) {\n          this.refreshSessionCallback = undefined;\n        }\n      })\n      .catch((error) => {\n        this.sessionRefreshPromise = undefined;\n        throw error;\n      });\n  }\n\n  async waitSessionRefreshIfNecessary() {\n    if (\n      this.sessionRefreshPromise === null\n      && this.nextSessionRefresh\n      && this.nextSessionRefresh <= Date.now()\n      && this.refreshSessionCallback\n    ) {\n      await this.refreshSessionCallback();\n    } else if (this.sessionRefreshPromise !== null) {\n      await this.sessionRefreshPromise;\n    }\n  }\n}\n","import Service from '@ember/service';\nimport window from 'ember-window-mock';\n\nexport default class SetTimeService extends Service {\n  /**\n   * Use this method if you need to set a timeout\n   * in a service or component you need to unit test\n   * This method cannot be unit tested, but it can be injected\n   */\n  timeout(callback: () => unknown, time: number): number {\n    return window.setTimeout(callback, time);\n  }\n\n  clearTimeout(handle: number) {\n    window.clearTimeout(handle);\n  }\n}\n","import type ApplicationInstance from '@ember/application/instance';\nimport type EmberComponent from '@ember/component';\nimport type Component from '@glimmer/component';\nimport type { SmartModel } from 'client/legacy/services/business/smart-view-code-migrator';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\n\nimport { getOwner } from '@ember/application';\nimport { guidFor } from '@ember/object/internals';\nimport Service, { service } from '@ember/service';\nimport { waitForPromise } from '@ember/test-waiters';\nimport Ember from 'ember';\nimport window from 'ember-window-mock';\n\nimport { BuildSmartViewError } from 'client/features/smart-features/error';\n\nexport default class SmartCodeRegisterService extends Service {\n  @service private errorHandler: ErrorHandlerService;\n\n  private static getStyleIdFromName(name: string) {\n    return `smart_${name}_${guidFor(name)}`;\n  }\n\n  public registerTemplateOrStyle(name: string, smartView: SmartModel) {\n    if (smartView.isReact) {\n      return this.registerStyle(name, smartView.templateCode);\n    }\n    return this.registerTemplate(name, smartView.templateCode);\n  }\n\n  public registerStyle(name: string, style: string) {\n    try {\n      this.unregisterStyle(name);\n\n      const styleComputed = style;\n      const styleTag = document.createElement('style');\n      styleTag.id = SmartCodeRegisterService.getStyleIdFromName(name);\n      document.head.appendChild(styleTag);\n      styleTag.appendChild(document.createTextNode(styleComputed));\n    } catch (error) {\n      this.errorHandler.handleSilentError(new BuildSmartViewError(name, 'style', error as Error));\n    }\n  }\n\n  public registerTemplate(name: string, template: string) {\n    try {\n      this.unregisterTemplate(name);\n\n      const container = getOwner(this) as ApplicationInstance;\n      container.register(`template:components/${name}`, Ember.Handlebars.compile(template));\n      return true;\n    } catch (error) {\n      this.errorHandler.handleSilentError(\n        new BuildSmartViewError(name, 'template', error as Error),\n      );\n      return false;\n    }\n  }\n\n  public async registerComponent(name: string, code: string) {\n    const Babel = await waitForPromise(import('@babel/standalone'));\n\n    if (!Babel.availablePresets['env-plus']) {\n      Babel.registerPreset('env-plus', {\n        presets: [Babel.availablePresets.es2017],\n        plugins: [\n          [Babel.availablePlugins['proposal-decorators'], { legacy: true }],\n          [Babel.availablePlugins['proposal-class-properties'], { loose: true }],\n          Babel.availablePlugins['proposal-export-default-from'],\n          Babel.availablePlugins['transform-modules-amd'],\n        ],\n      });\n    }\n\n    const componentModuleName = `client/component/${name}`;\n    const componentLogic = Babel.transform(code, {\n      moduleIds: true,\n      moduleId: componentModuleName,\n      presets: ['env-plus', 'react'],\n    }).code;\n\n    // TODO: If possible, find a better way to implement it, this is hazardous.\n    try {\n      window.eval(componentLogic);\n\n      // eslint-disable-next-line @typescript-eslint/no-require-imports\n      const component = require(componentModuleName).default as EmberComponent | Component;\n\n      this.unregisterComponent(name);\n      const container = getOwner(this) as ApplicationInstance;\n      container.register(`component:${name}`, component, { singleton: false });\n      return true;\n    } catch (error) {\n      this.errorHandler.handleSilentError(\n        new BuildSmartViewError(name, 'component', error as Error),\n      );\n      return false;\n    }\n  }\n\n  public unregisterStyle(name: string) {\n    const element = document.getElementById(SmartCodeRegisterService.getStyleIdFromName(name));\n    if (element) {\n      element.parentNode.removeChild(element);\n    }\n  }\n\n  public unregisterTemplate(name: string) {\n    const container = getOwner(this) as ApplicationInstance;\n    container.unregister(`template:components/${name}`);\n  }\n\n  public unregisterComponent(name: string) {\n    const container = getOwner(this) as ApplicationInstance;\n    container.unregister(`component:${name}`);\n  }\n}\n","import type ChartModel from 'client/data/models/chart';\nimport type EnvironmentModel from 'client/data/models/environment';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaServerFetchService from 'client/legacy/services/liana-server-fetch';\nimport type { ServerFetchRequestInit } from 'client/legacy/services/liana-server-fetch';\nimport type TimezoneService from 'client/legacy/services/timezone';\nimport type CapabilitiesService from 'client/shared/services/capabilities';\n\nimport Service, { service } from '@ember/service';\n\nimport WorkspaceComponentOptionsChartNestedDocument from 'client/data/models/workspace-component-options-chart';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport { isEmberError } from 'client/utils/ember-error-util';\nimport { asyncRetry } from 'client/utils/ember-promise';\n\nexport default class StatTriggererService extends Service {\n  @service lianaFeatures: LianaFeaturesService;\n  @service lianaServerFetch: LianaServerFetchService;\n  @service timezone: TimezoneService;\n  @service('shared/capabilities') capabilitiesService: CapabilitiesService;\n\n  getData(\n    environment: EnvironmentModel,\n    chart: ChartModel | WorkspaceComponentOptionsChartNestedDocument,\n  ) {\n    if (this.lianaFeatures.isFeatureCompatible(FeaturesEnum.TemplatingInChart, environment)) {\n      const contextVariables: Record<string, unknown> = {};\n\n      if (\n        'templatingKeysWithExpectedType' in chart\n        && chart.templatingKeysWithExpectedType?.length\n      ) {\n        chart.templatingKeysWithExpectedType\n          // For security reasons, the current user values are directly computed in the agent, so not sent in this payload.\n          .filter(({ templatingKey }) => !templatingKey.startsWith('currentUser'))\n          .forEach(({ templatingKey, expectedType }) => {\n            const computedValue = chart.templatingHelper.injectVariablesIntoStringWithoutValidation(\n              `{{${templatingKey}}}`,\n              { expectedType },\n            );\n            contextVariables[templatingKey] = computedValue;\n          });\n      }\n      if (chart.recordId) {\n        contextVariables.recordId = chart.recordId;\n      }\n\n      return JSON.stringify({\n        ...chart.toJSON({ forAgentApi: true }),\n        // The following line is here only to ensure API chart are backwards-compatible (with `record_id` outside of the contextVariables).\n        ...(contextVariables.recordId ? { record_id: contextVariables.recordId } : {}),\n        contextVariables,\n      });\n    }\n\n    const params: Record<string, unknown> = {\n      type: chart.type,\n      collection: chart.sourceCollection?.name,\n      aggregate_field: chart.aggregateField?.fieldName,\n    };\n\n    if (!this.lianaFeatures.isFeatureCompatible(FeaturesEnum.ApplicationWideScopes, environment)) {\n      params.timezone = this.timezone.getTimezone(environment);\n    }\n\n    let groupByField = chart.groupByField?.fieldName;\n    if (chart.groupByField?.referenceModel) {\n      const displayField = chart.groupByField?.referenceModel?.displayField?.fieldName || 'id';\n      if (displayField) {\n        groupByField += `:${displayField}`;\n      }\n    }\n\n    if (chart.type === 'Leaderboard') {\n      params.label_field = chart.labelField?.fieldName;\n      params.relationship_field = chart.relationshipField?.fieldName;\n      params.limit = chart.limit;\n    }\n\n    if (chart.type === 'Line') {\n      params.group_by_date_field = groupByField;\n    } else {\n      params.group_by_field = groupByField;\n    }\n\n    params.aggregate = chart.aggregator || undefined;\n    params.time_range = chart.timeRange || undefined;\n    params.record_id = chart.recordId || undefined;\n    params.query = chart.query || undefined;\n\n    if (this.lianaFeatures.isFeatureCompatible(FeaturesEnum.GenericFilters, environment)) {\n      if (chart.filter) {\n        params.filters = JSON.stringify(chart.filter.queryFilter);\n      }\n    } else if (chart.filter) {\n      params.filterType = chart.filter.type;\n      params.filters = chart.filter.conditions.map((condition) => {\n        let field = condition.field.fieldName;\n\n        if (condition.subField?.fieldName) {\n          field += `:${condition.subField.fieldName}`;\n        } else if (condition.embeddedField?.fieldName) {\n          field += `:${condition.embeddedField.fieldName}`;\n        }\n\n        return {\n          field,\n          value: condition.valueString,\n        };\n      });\n    } else {\n      params.filters = [];\n    }\n\n    return JSON.stringify(params);\n  }\n\n  private getResolvedRoute(\n    chart: ChartModel | WorkspaceComponentOptionsChartNestedDocument,\n  ): string {\n    if (chart instanceof WorkspaceComponentOptionsChartNestedDocument && chart.apiRoute) {\n      return chart.templatingHelper.injectVariablesIntoStringWithoutValidation(chart.apiRoute, {\n        expectedType: 'String',\n      }) as string;\n    }\n\n    return chart.route;\n  }\n\n  async perform(environment: EnvironmentModel, chart: ChartModel, withRetries = false) {\n    const maxRetries = withRetries ? 4 : 0;\n    chart.set('errored', false);\n    chart.set('statErrors', null);\n\n    const route = this.getResolvedRoute(chart);\n\n    const options = {\n      method: 'POST',\n      body: this.getData(environment, chart),\n    };\n\n    try {\n      // NOTICE: Make multiple attempts to prevent chart permission issue\n      // maxRetries is only used at chart creation or edition\n      // in normal scenario it only make one call to the agent even if it fails\n      // This issue will be fix on every agent but people that does not use the fixed versions should still have a pleasant experience.\n      return await asyncRetry({\n        functionToRetried: async () => this._fetchLianaChart(route, options),\n        maxRetries,\n        getDelay: (remainingRetries) => {\n          // NOTICE:\n          // - 1st retry call after 1s\n          // - 2nd retry call after 3s\n          // - 3rd retry call after 6s\n          // - 4th retry call after 10s\n          return 1000 + (remainingRetries - maxRetries) * 1000;\n        },\n        shouldRetryOnError: (error) => {\n          return error.status === 403;\n        },\n      });\n    } catch (error) {\n      chart.set('errored', true);\n\n      if (isEmberError(error)) {\n        chart.set('statErrors', error.errors);\n      }\n    }\n\n    return undefined;\n  }\n\n  async _fetchLianaChart(route: string, options?: ServerFetchRequestInit) {\n    let finalRoute = route;\n    if (\n      finalRoute === '/forest/stats'\n      && this.capabilitiesService.agentCapabilities.canUseNativeQuery\n    ) {\n      finalRoute = '/forest/_internal/native_query';\n    }\n    const response = await this.lianaServerFetch.fetch(finalRoute, options);\n    return response.json() as Promise<unknown>;\n  }\n}\n","import type LianaSessionService from 'client/legacy/services/liana-session';\nimport type LocalStorageService from 'client/legacy/services/local-storage';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\ntype ApprovalState = 'created' | 'to-review' | 'warning' | 'history';\n\nexport default class ApprovalsFiltersState extends Service {\n  @service localStorage: LocalStorageService;\n  @service lianaSession: LianaSessionService;\n\n  @tracked private createdInMemory: Record<string, unknown> | null;\n  @tracked private toReviewInMemory: Record<string, unknown> | null;\n  @tracked private warningInMemory: Record<string, unknown> | null;\n  @tracked private historyInMemory: Record<string, unknown> | null;\n\n  constructor(properties?: object) {\n    super(properties);\n    this.createdInMemory = this.fetchFilters('created');\n    this.toReviewInMemory = this.fetchFilters('to-review');\n    this.warningInMemory = this.fetchFilters('warning');\n    this.historyInMemory = this.fetchFilters('history');\n  }\n\n  get created() {\n    return this.createdInMemory;\n  }\n\n  set created(filters: Record<string, unknown>) {\n    this.createdInMemory = filters;\n    this.saveFilters('created', filters);\n  }\n\n  get 'to-review'() {\n    return this.toReviewInMemory;\n  }\n\n  set 'to-review'(filters: Record<string, unknown>) {\n    this.toReviewInMemory = filters;\n    this.saveFilters('to-review', filters);\n  }\n\n  get warning() {\n    return this.warningInMemory;\n  }\n\n  set warning(filters: Record<string, unknown>) {\n    this.warningInMemory = filters;\n    this.saveFilters('warning', filters);\n  }\n\n  get history() {\n    return this.historyInMemory;\n  }\n\n  set history(filters: Record<string, unknown>) {\n    this.historyInMemory = filters;\n    this.saveFilters('history', filters);\n  }\n\n  @action\n  private fetchFilters(approvalState: ApprovalState) {\n    const key = `${this.lianaSession.currentEnvironment?.id}-${approvalState}`;\n    return JSON.parse(this.localStorage.getItem(key)) as Record<string, unknown>;\n  }\n\n  @action\n  private saveFilters(approvalState: ApprovalState, filters: Record<string, unknown>) {\n    const key = `${this.lianaSession.currentEnvironment?.id}-${approvalState}`;\n    this.localStorage.setItem(key, JSON.stringify(filters));\n  }\n}\n","/* eslint max-classes-per-file: \"off\" */\nimport { isArray } from '@ember/array';\nimport { assert } from '@ember/debug';\nimport { gte } from '@ember/object/computed';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport { isNone, isPresent } from '@ember/utils';\nimport Store from '@ember-data/store';\nimport FragmentRecordData from 'ember-data-model-fragments/record-data';\nimport { clone, isFunction } from 'lodash';\n\nimport config from 'client/config/environment';\nimport AbstractLayoutModel from 'client/data/models/abstract-layout-model';\nimport AbstractNestedDocumentModel from 'client/data/models/abstract-nested-document-model';\nimport {\n  deleteNestedAttributes,\n  getNestedDefaultValuePayload,\n  saveNestedAttributes,\n  unloadRecordNestedAttributes,\n} from 'client/data/utils/nested-document-utils';\nimport { ArrayAttributeType } from 'client/decorators/array';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport markPropertiesAsNotDirty, { commitRecord } from 'client/utils/model-utils';\nimport serializeQueryParameters from 'client/utils/serialize-query-parameters';\nimport { uuidv4 } from 'client/utils/uuid-utils';\n\nfunction internalModelFor(recordData) {\n  const store = recordData.storeWrapper._store;\n  if (gte('ember-data', '4.5.0')) {\n    return store._instanceCache._internalModelForResource(recordData.identifier);\n  }\n  return store._internalModelForResource(recordData.identifier);\n}\n\nfunction mergeArrays(a, b) {\n  if (b == null) {\n    return a;\n  }\n  if (a == null) {\n    return b;\n  }\n  return [...a, ...b];\n}\n\nclass ForestRecordData extends FragmentRecordData {\n  constructor(...args) {\n    super(...args);\n\n    this._originalBelongsTo = {};\n    this._originalHasMany = {};\n  }\n\n  didCommitHasMany() {\n    this._originalHasMany = {};\n  }\n\n  didCommitBelongsTo() {\n    this._originalBelongsTo = {};\n  }\n\n  fragmentPushData(data, calculateChange) {\n    // This method is stolen from ember-data-model-fragments\n    let changedFragmentKeys;\n\n    let dataToUse = data;\n    const subFragmentsToProcess = [];\n    if (dataToUse.attributes) {\n      // copy so that we don't mutate the caller's data\n      const attributes = { ...dataToUse.attributes };\n      dataToUse = { ...dataToUse, attributes };\n\n      // eslint-disable-next-line no-restricted-syntax\n      for (const [key, behavior] of Object.entries(this._fragmentBehavior)) {\n        const canonical = dataToUse.attributes[key];\n        if (canonical === undefined) {\n          // eslint-disable-next-line no-continue\n          continue;\n        }\n        // strip fragments from the attributes so the super call does not process them\n        delete dataToUse.attributes[key];\n\n        subFragmentsToProcess.push({ key, behavior, canonical, attributes });\n      }\n    }\n\n    // Wee need first the attributes to be setup before the fragment, to be able to access them (for polymorphic fragments for example)\n    const changedAttributeKeys = super.pushData(dataToUse, calculateChange);\n\n    if (dataToUse.attributes) {\n      const newCanonicalFragments = {};\n\n      subFragmentsToProcess.forEach(({ key, behavior, canonical }) => {\n        // The current value in case of a push is badly computed. This is the only change in that function compared to ember-data-model-fragments\n        let current;\n        if (key in this._fragmentsOrInFlight) {\n          current = this._fragmentsOrInFlight[key];\n        } else if (key in this._fragmentData) {\n          current = this._fragmentData[key];\n        } else {\n          current = this._getFragmentDefault(key);\n        }\n\n        newCanonicalFragments[key] = behavior.pushData(current, canonical);\n      });\n\n      if (calculateChange) {\n        changedFragmentKeys = this._changedFragmentKeys(newCanonicalFragments);\n      }\n\n      Object.assign(this._fragmentData, newCanonicalFragments);\n      // update fragment arrays\n      changedFragmentKeys?.forEach((key) => this._fragmentArrayCache[key]?.notify());\n    }\n\n    const changedKeys = mergeArrays(changedAttributeKeys, changedFragmentKeys);\n    if (gte('ember-data', '4.5.0') && changedKeys?.length > 0) {\n      internalModelFor(this).notifyAttributes(changedKeys);\n    }\n\n    this._updateChangedFragments?.();\n\n    // on ember-data 2.8 - 4.4, InternalModel.setupData will notify\n    return changedKeys || [];\n  }\n\n  pushData(data, calculateChange) {\n    const result = this.fragmentPushData(data, calculateChange);\n\n    this.didCommitHasMany();\n    this.didCommitBelongsTo();\n\n    return result;\n  }\n\n  rollbackAttributes() {\n    const result = super.rollbackAttributes();\n\n    if (this.onRollbackAttributes) {\n      this.onRollbackAttributes();\n    }\n\n    return result;\n  }\n\n  setDirtyBelongsTo(key, recordData) {\n    if (!(key in this._originalBelongsTo)) {\n      const belongsTo = this.getBelongsTo(key);\n      this._originalBelongsTo[key] = belongsTo?.data;\n    }\n    const result = super.setDirtyBelongsTo(key, recordData);\n    if (this.onSetDirtyBelongsTo) {\n      this.onSetDirtyBelongsTo(key, recordData);\n    }\n    return result;\n  }\n\n  pushToOriginalHasManyIfNeeded(key) {\n    if (!(key in this._originalHasMany)) {\n      const hasMany = this.getHasMany(key);\n      this._originalHasMany[key] =\n        (hasMany && hasMany.data && hasMany.data.map((item) => item.id)) || [];\n    }\n  }\n\n  setDirtyHasMany(key, recordData) {\n    this.pushToOriginalHasManyIfNeeded(key);\n    const result = super.setDirtyHasMany(key, recordData);\n    if (this.onSetDirtyHasMany) {\n      this.onSetDirtyHasMany(key, recordData);\n    }\n    return result;\n  }\n\n  addToHasMany(key, recordDatas, index) {\n    this.pushToOriginalHasManyIfNeeded(key);\n    const result = super.addToHasMany(key, recordDatas, index);\n    if (this.onSetDirtyHasMany) {\n      this.onSetDirtyHasMany(key, recordDatas);\n    }\n    return result;\n  }\n\n  removeFromHasMany(key, recordDatas) {\n    this.pushToOriginalHasManyIfNeeded(key);\n    const result = super.removeFromHasMany(key, recordDatas);\n    if (this.onSetDirtyHasMany) {\n      this.onSetDirtyHasMany(key, recordDatas);\n    }\n    return result;\n  }\n\n  didCommit(data) {\n    this._originalBelongsTo = {};\n    this._originalHasMany = {};\n\n    const result = super.didCommit(data);\n    if (this.onDidCommit) {\n      this.onDidCommit();\n    }\n    return result;\n  }\n\n  /** This function has been taken from ember-data-model-fragment.\n   *  We modified it a bit to pass the current record to `defaultValue`\n   */\n  getFragmentDataWithDefault(key, options, type) {\n    const data = this.fragmentData[key];\n    if (data !== undefined) {\n      return data;\n    }\n    if (typeof options.defaultValue === 'function') {\n      return options.defaultValue(this);\n    }\n    return super.getFragmentDataWithDefault(key, options, type);\n  }\n}\n\nexport default class StoreService extends Store {\n  @service activityTracker;\n  /** @type {import('./liana-server-fetch').default} */\n  @service lianaServerFetch;\n  /** @type {import('./liana-session').default} */\n  @service lianaSession;\n  /** @type {import('./liana-features').default} */\n  @service lianaFeatures;\n  // FIXME: this is forbidden\n  @service('feature/client-record/internal-business/crud-handler')\n  crudHandler;\n\n  async findRecordWithTracking(collection, recordId, parameters) {\n    const activity = {\n      action: 'read',\n      label: null,\n      collection,\n      recordId,\n      timingInterface: null,\n      timingRequest: null,\n    };\n    const record = await this.findRecord(collection.get('emberModelName'), recordId, parameters);\n    this.activityTracker.trackRead(activity);\n    return record;\n  }\n\n  cancelExistingQueries(modelName, reason) {\n    const adapter = this.adapterFor(this.modelFor(modelName).modelName);\n\n    if (isFunction(adapter.cancelQueries)) {\n      adapter.cancelQueries(reason);\n    }\n  }\n\n  async count(collection, query, recordId, relationship, { cancellable = true } = {}) {\n    const adapter = this.adapterFor(collection.get('emberModelName'));\n    const baseUrl = `/forest/${collection.get('name')}`;\n    const encodedRecordId = recordId && encodeURIComponent(recordId);\n    const isRelatedData = !!(encodedRecordId && relationship);\n    const path = isRelatedData\n      ? `/${encodedRecordId}/relationships/${relationship}/count`\n      : '/count';\n\n    let url = `${baseUrl}${path}`;\n    const parameters = clone(query);\n\n    // NOTICE: Delete unecessary query parameters for the count service.\n    Object.keys(parameters).forEach((key) => {\n      if (\n        ['sort', 'page[number]', 'page[size]', 'page'].includes(key)\n        || parameters[key] === undefined\n      ) {\n        delete parameters[key];\n      }\n      if (!parameters[key]) {\n        delete parameters[key];\n      }\n    });\n\n    const filtersForQuery = parameters.filters\n      ? { filters: JSON.stringify(parameters.filters) }\n      : {};\n\n    const options = {\n      method: 'GET',\n      signal: cancellable ? adapter?.fetchAbortSignal : undefined,\n      credentials: this.lianaSession.supportsOpenIdConnect ? 'include' : 'omit',\n    };\n\n    if (parameters && Object.keys(parameters).length > 0) {\n      const queryUrl = serializeQueryParameters({\n        ...parameters,\n        ...filtersForQuery,\n      });\n      if (\n        this.lianaFeatures.isFeatureCompatible(FeaturesEnum.PostHTTPMethodList)\n        && queryUrl.length > config.APP.maxUrlLengthForQueryParamsGETMethod\n        && !isRelatedData\n      ) {\n        options.method = 'POST';\n        options.body = JSON.stringify(parameters);\n        url = `${url.substring(0, url.lastIndexOf('/'))}/query/count`;\n      } else {\n        url += `?${queryUrl}`;\n      }\n    }\n\n    const response = await this.lianaServerFetch.fetch(url, { ...options });\n    const result = await response.json();\n    return result.meta?.count || result.count;\n  }\n\n  createRecordDataFor(type, id, clientId, storeWrapper) {\n    const identifier = this.identifierCache.getOrCreateRecordIdentifier({\n      type,\n      id,\n      lid: clientId,\n    });\n    return new ForestRecordData(identifier, storeWrapper);\n  }\n\n  createRecord(modelName, attributes) {\n    const modelClass = this.modelFor(modelName);\n    const attributesWithDefaultId = { ...(attributes || {}) };\n    if (\n      (modelClass.prototype instanceof AbstractLayoutModel\n        || modelClass.prototype instanceof AbstractNestedDocumentModel)\n      && !attributes?.id\n    ) {\n      attributesWithDefaultId.id = uuidv4();\n    }\n\n    Object.keys(attributesWithDefaultId).forEach((attributeName) => {\n      if (\n        attributesWithDefaultId[attributeName]\n        && modelClass.attributes.get(attributeName)?.type === ArrayAttributeType\n      ) {\n        attributesWithDefaultId[attributeName] = JSON.stringify(\n          attributesWithDefaultId[attributeName],\n        );\n      }\n    });\n\n    modelClass.nestedAttributes?.forEach(([propertyName, relationshipDefinition]) => {\n      if (\n        !(propertyName in attributesWithDefaultId)\n        && relationshipDefinition.options?.defaultValue\n      ) {\n        const value = getNestedDefaultValuePayload(relationshipDefinition, attributesWithDefaultId);\n        if (value) {\n          const type = this._getType(attributesWithDefaultId, value, relationshipDefinition);\n          attributesWithDefaultId[propertyName] = isArray(value)\n            ? value.map((item) => this.createRecord(type, item))\n            : this.createRecord(type, value);\n        }\n      }\n\n      if (\n        attributesWithDefaultId[propertyName]\n        && !isArray(attributesWithDefaultId[propertyName])\n        && !(attributesWithDefaultId[propertyName] instanceof AbstractNestedDocumentModel)\n      ) {\n        const type = this._getType(\n          attributesWithDefaultId,\n          attributesWithDefaultId[propertyName],\n          relationshipDefinition,\n        );\n        attributesWithDefaultId[propertyName] = this.createRecord(\n          type,\n          attributesWithDefaultId[propertyName],\n        );\n      } else if (\n        isArray(attributesWithDefaultId[propertyName])\n        && attributesWithDefaultId[propertyName].length\n        && attributesWithDefaultId[propertyName].some?.(\n          (item) => !(item instanceof AbstractNestedDocumentModel),\n        )\n      ) {\n        attributesWithDefaultId[propertyName] = attributesWithDefaultId[propertyName].map(\n          (item) => {\n            const type = this._getType(attributesWithDefaultId, item, relationshipDefinition);\n            return this.createRecord(type, item);\n          },\n        );\n      }\n    });\n\n    const record = super.createRecord(modelName, attributesWithDefaultId);\n    // There is an issue with Ember Data 3.27 where the attributes are ot set for the first record created for a type\n    if (\n      attributes\n      && Object.keys(attributes).length\n      && Object.keys(attributes).some(\n        (attributeName) => !isNone(attributes[attributeName]) && isNone(record[attributeName]),\n      )\n    ) {\n      Object.keys(attributes).forEach((attributeName) => {\n        if (!isNone(attributes[attributeName]) && isNone(record[attributeName])) {\n          record[attributeName] = attributes[attributeName];\n        }\n      });\n    }\n\n    return record;\n  }\n\n  async layoutBatchUpdate(modelName, records, fieldsToUpdate = []) {\n    assert(\n      \"You need to pass a model name to the store's layoutBatchUpdate method\",\n      isPresent(modelName),\n    );\n    assert(\n      `Please pass a dasherized string instead of ${modelName}`,\n      typeof modelName === 'string',\n    );\n\n    const _fieldsToUpdate =\n      fieldsToUpdate?.length > 0\n        ? fieldsToUpdate\n        : [\n            ...this.modelFor(modelName).attributes.keys(),\n            ...this.modelFor(modelName).nestedAttributes.map(([propertyName]) => propertyName),\n          ];\n    await this.adapterFor(modelName).layoutBatchUpdate(this, modelName, records, _fieldsToUpdate);\n    records.forEach((record) => markPropertiesAsNotDirty(record, _fieldsToUpdate));\n\n    return records;\n  }\n\n  adapterFor(modelName) {\n    const modelClass = this.modelFor(modelName);\n    return modelClass.prototype instanceof AbstractNestedDocumentModel\n      ? super.adapterFor('nested-document')\n      : super.adapterFor(modelName);\n  }\n\n  async saveRecord(record, options = {}) {\n    const result = await super.saveRecord(record, options);\n    await saveNestedAttributes(record);\n    return result;\n  }\n\n  async deleteRecord(record) {\n    const result = await super.deleteRecord(record);\n    await deleteNestedAttributes(record);\n    return result;\n  }\n\n  unloadRecord(record) {\n    unloadRecordNestedAttributes(record);\n    return super.unloadRecord(record);\n  }\n\n  layoutBatchReorder(items, itemsReordered, targetModelName) {\n    let hasDirtyAttributes = false;\n    items.forEach((item) => {\n      const position = itemsReordered.indexOf(item);\n      if (position > -1) {\n        item.position = position;\n        if (item.hasDirtyAttributes) {\n          hasDirtyAttributes = true;\n        }\n      }\n    });\n    if (hasDirtyAttributes) {\n      this.layoutBatchUpdate(targetModelName, items, ['position']).catch((reason) => {\n        this.errorHandler.handleRequestFailure(reason, 'Reordering failed');\n      });\n    }\n  }\n\n  async bulkCreate(modelName, records) {\n    assert(\n      \"You need to pass a model name to the store's createRecord method\",\n      isPresent(modelName),\n    );\n    assert(\n      `Please pass a dasherized string instead of ${modelName}`,\n      typeof modelName === 'string',\n    );\n\n    const serializedRecords = records\n      .map((record) => record.serialize({}))\n      .map((payload) => payload.data);\n\n    await this.adapterFor(modelName).bulkCreate(this, modelName, serializedRecords);\n    records.forEach((record) => commitRecord(record));\n\n    return records;\n  }\n\n  _push(data) {\n    if (!data.included) {\n      data.included = [];\n    }\n\n    if (data?.data) {\n      const shouldIgnoreDefaultValues = data?.shouldIgnoreDefaultValues;\n      const records = isArray(data.data) ? [...data.data] : [data.data];\n      records.push(...data.included);\n\n      records.forEach((record) => {\n        data.included.push(\n          ...this._getNestedIncluded(record, undefined, shouldIgnoreDefaultValues),\n        );\n      });\n    }\n\n    return super._push(data);\n  }\n\n  _getNestedIncluded(payload, payloadType, shouldIgnoreDefaultValues) {\n    if (!payload) return [];\n\n    const modelClass = this.modelFor(payloadType || payload.type);\n    const newIncluded = [];\n\n    modelClass.nestedAttributes?.forEach(([propertyName, relationshipDefinition]) => {\n      const relationshipPayload = this._getPropertyOrDefaultValue(\n        payload,\n        propertyName,\n        relationshipDefinition,\n        shouldIgnoreDefaultValues,\n      );\n\n      if (relationshipPayload) {\n        const { included, relationships } = this._getNestedIncludedDependingOnType(\n          payload,\n          relationshipPayload,\n          relationshipDefinition,\n          shouldIgnoreDefaultValues,\n        );\n        if (included.length) {\n          newIncluded.push(...included);\n          payload.relationships = {\n            ...(payload.relationships || {}),\n            [propertyName]: relationships,\n          };\n        }\n      } else if (!shouldIgnoreDefaultValues) {\n        payload.relationships = {\n          ...(payload.relationships || {}),\n          [propertyName]: {\n            data: null,\n          },\n        };\n      }\n    });\n\n    return newIncluded;\n  }\n\n  _getNestedIncludedDependingOnType(\n    payload,\n    relationshipPayload,\n    relationshipDefinition,\n    shouldIgnoreDefaultValues,\n  ) {\n    const included = [];\n    const relationships = {};\n\n    if (relationshipPayload) {\n      if (isArray(relationshipPayload)) {\n        relationships.data = [];\n\n        relationshipPayload.forEach((item) => {\n          const { included: nestedIncluded, relationshipsData: nestedRelationships } =\n            this._getNestedIncludedForRelationship(\n              payload,\n              relationshipDefinition,\n              item,\n              shouldIgnoreDefaultValues,\n            );\n          relationships.data.push(nestedRelationships);\n          included.push(...nestedIncluded);\n        });\n      } else {\n        const { included: nestedIncluded, relationshipsData: nestedRelationships } =\n          this._getNestedIncludedForRelationship(\n            payload,\n            relationshipDefinition,\n            relationshipPayload,\n            shouldIgnoreDefaultValues,\n          );\n        relationships.data = nestedRelationships;\n        included.push(...nestedIncluded);\n      }\n    }\n    return { included, relationships };\n  }\n\n  _getNestedIncludedForRelationship(\n    payload,\n    relationshipDefinition,\n    relationshipPayload,\n    shouldIgnoreDefaultValues,\n  ) {\n    const nestedIncluded = [];\n    const id = relationshipPayload.id || guidFor(relationshipPayload);\n    const type = this._getType(payload.attributes, relationshipPayload, relationshipDefinition);\n    const relationshipPayloadIncluded = {\n      id,\n      type,\n      attributes: relationshipPayload,\n    };\n    nestedIncluded.push(relationshipPayloadIncluded);\n    const relationshipsData = {\n      id,\n      type,\n    };\n\n    nestedIncluded.push(\n      ...this._getNestedIncluded(relationshipPayloadIncluded, type, shouldIgnoreDefaultValues),\n    );\n\n    return { included: nestedIncluded, relationshipsData };\n  }\n\n  _getPropertyOrDefaultValue(\n    payload,\n    propertyName,\n    relationshipDefinition,\n    shouldIgnoreDefaultValues,\n  ) {\n    if (payload.attributes && !(propertyName in payload.attributes) && !shouldIgnoreDefaultValues) {\n      const relationshipPayload = getNestedDefaultValuePayload(relationshipDefinition, {\n        id: payload.id,\n        ...payload.attributes,\n      });\n      payload.attributes[propertyName] = relationshipPayload;\n      return relationshipPayload;\n    }\n    return payload.attributes?.[propertyName];\n  }\n\n  _getType(payload, relationshipPayload, relationshipDefinition) {\n    return relationshipDefinition.meta?.options?.polymorphic\n      && relationshipDefinition.meta?.options?.type\n      && typeof relationshipDefinition.meta?.options?.type === 'function'\n      ? relationshipDefinition.meta?.options?.type(relationshipPayload, payload)\n      : relationshipDefinition.type;\n  }\n}\n","// NOTICE : this service is only there to encapsulate the stripe import, for testing purposes\nimport Service from '@ember/service';\n\nexport default class StripeImportService extends Service {\n  async importStripe() {\n    return import('@stripe/stripe-js');\n  }\n}\n","import type { Stripe, StripeElements } from '@stripe/stripe-js';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StripeImportService from 'client/legacy/services/stripe-import-service';\n\nimport Service, { service } from '@ember/service';\n\nimport config from 'client/config/environment';\n\nexport type StripeContext = {\n  stripejs: Stripe;\n  elements: StripeElements;\n};\n\nexport default class StripeService extends Service {\n  @service serverFetch: ServerFetchService;\n  @service stripeImportService: StripeImportService;\n\n  async generateStripeContext(billingId: string): Promise<StripeContext> {\n    const { loadStripe } = await this.stripeImportService.importStripe();\n    const stripejs = await loadStripe(config.APP.stripePublishableKey, { locale: 'en' });\n    return { stripejs, elements: await this.setupStripePaymentElements(billingId, stripejs) };\n  }\n\n  async confirmPaymentSetupIntent(\n    countryCode: string,\n    stripeContext: StripeContext,\n    returnUrl: string,\n  ) {\n    const { setupIntent, error } = await stripeContext.stripejs.confirmSetup({\n      elements: stripeContext.elements,\n      confirmParams: {\n        return_url: returnUrl,\n        payment_method_data: { billing_details: { address: { country: countryCode } } },\n      },\n      redirect: 'if_required',\n    });\n    if (error) {\n      throw new Error(error.message);\n    } else {\n      return String(setupIntent.payment_method);\n    }\n  }\n\n  private async setupStripePaymentElements(billingId: string, stripejs: Stripe) {\n    const response = await this.serverFetch.fetch(\n      `/api/billings/${billingId}/setup-intent`,\n      {\n        method: 'POST',\n      },\n      true,\n    );\n    const data = (await response.json()) as { clientSecret: string };\n    return stripejs.elements({\n      clientSecret: data.clientSecret,\n      loader: 'never',\n    });\n  }\n}\n","import type PlanModel from 'client/data/models/plan';\nimport type { EnvironmentsFeaturesEnum } from 'client/data/models/plan';\nimport type ProjectModel from 'client/data/models/project';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type PlanService from 'client/legacy/services/plan-service';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type StoreService from 'client/legacy/services/store';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport Service, { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { getFirstErrorDetail, isEmberError } from 'client/utils/ember-error-util';\n\nexport default class SubscriptionService extends Service {\n  @service store: StoreService;\n  @service toastr: ToastrService;\n  @service tracker: TrackerService;\n  @service segmentTracker: SegmentTrackerService;\n  @service lianaSession: LianaSessionService;\n  @service planService: PlanService;\n\n  async startTrial(\n    project: ProjectModel,\n    trialPlan: PlanModel,\n    realPlan: PlanModel,\n    featureName?: EnvironmentsFeaturesEnum,\n  ) {\n    const billing = await project.billing;\n    const oldSubscription = billing.subscription;\n\n    const newSubscription = this.store.createRecord('subscription', {\n      plan: trialPlan,\n      commitment: 'monthly',\n      billing,\n    });\n\n    try {\n      await newSubscription.save();\n      await project.reload();\n\n      this.segmentTracker.trackFreeTrialButtonClicked({\n        plan: trialPlan,\n        project,\n        featureName,\n      });\n\n      await Promise.all([project.billing.reload(), project.billingDetailed.reload()]);\n\n      this.toastr.perform(\n        ToastrTypeEnum.Success,\n        htmlSafe(`You have successfully started your ${trialPlan.trialDurationInDays}-day trial for the ${realPlan.displayName} Plan.\n      <br/>Please refresh your browser to benefit from this new plan.`),\n        { duration: 0 },\n      );\n    } catch (error: unknown) {\n      this.tracker.captureException(error as Error);\n      console.error('Error while starting the trial', error);\n\n      await newSubscription.destroyRecord();\n      billing.subscription = oldSubscription;\n\n      if (isEmberError(error as Error)) {\n        this.toastr.perform(ToastrTypeEnum.Error, getFirstErrorDetail(error as Error));\n      } else {\n        this.toastr.perform(ToastrTypeEnum.Error, 'An error occurred while starting the trial.');\n      }\n    }\n  }\n\n  async startPlusTrial(project: ProjectModel, featureName: EnvironmentsFeaturesEnum) {\n    const plans = await this.planService.getPlusPlans();\n    const trialPlan = plans.find((plan) => plan.isTrial);\n    const realPlan = plans.find((plan) => !plan.isTrial);\n\n    await this.startTrial(project, trialPlan, realPlan, featureName);\n  }\n}\n","import type { AnyFunction } from '@ember/object/-private/types';\nimport type CustomActionModel from 'client/data/models/custom-action';\nimport type FieldModel from 'client/data/models/field';\nimport type WorkflowModel from 'client/data/models/workflow';\n\nimport Service from '@ember/service';\n\nexport default class SummaryViewStateService extends Service {\n  fields: FieldModel[] | null = null;\n  customActions: CustomActionModel[] | null = null;\n  workflows: WorkflowModel[] | null = null;\n  dragStartSectionAction: AnyFunction | null = null;\n  dragEndSectionAction: AnyFunction | null = null;\n  dragStartFieldAction: AnyFunction | null = null;\n  dragEndFieldAction: AnyFunction | null = null;\n  dragStartCustomAction: AnyFunction | null = null;\n  dragEndCustomAction: AnyFunction | null = null;\n}\n","import type EnvironmentModel from 'client/data/models/environment';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaSession from 'client/legacy/services/liana-session';\n\nimport Service, { service } from '@ember/service';\nimport moment from 'moment-timezone';\n\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\n\nexport default class TimezoneService extends Service {\n  @service lianaFeatures: LianaFeaturesService;\n  @service lianaSession: LianaSession;\n\n  public setProjectTimezone(newTimezone: string) {\n    moment.tz.setDefault(newTimezone);\n  }\n\n  public getTimezone(environment: EnvironmentModel) {\n    const useTimezoneRegion = this.lianaFeatures.isFeatureCompatible(\n      FeaturesEnum.TimezoneRegion,\n      environment,\n    );\n\n    // NOTICE: return the time zone set manually in the project settings,\n    // or try to guess the user's time zone. In last resort default to UTC.\n    // For old agent return the time zone's offset, example: +02:00\n    return useTimezoneRegion ? moment().tz() || moment.tz.guess() || 'UTC' : moment().format('Z');\n  }\n\n  public getCurrentTimezone() {\n    return this.getTimezone(this.lianaSession.currentEnvironment);\n  }\n}\n","import type { SafeString } from '@ember/template/-private/handlebars';\nimport type { ToastrOption } from 'client/features/notification/services/feature';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type { ToastrTypeEnum } from 'client/features/notification/toastr-item';\n\nimport Service, { service } from '@ember/service';\n\nexport default class ToastrService extends Service {\n  @service('feature/notification')\n  declare notificationFeature: NotificationFeatureService;\n\n  /**\n   * @deprecated Use the NotificationFeatureService instead.\n   */\n  perform(type: ToastrTypeEnum, message: string | SafeString, option?: ToastrOption) {\n    return this.notificationFeature.createToastr(type, message, option);\n  }\n\n  /**\n   * @deprecated Use the NotificationFeatureService instead.\n   */\n  update(\n    type: ToastrTypeEnum,\n    message: string | SafeString,\n    id: string | null,\n    option?: ToastrOption,\n  ) {\n    return this.notificationFeature.updateToastr(type, message, id, option);\n  }\n\n  /**\n   * @deprecated Use the NotificationFeatureService instead.\n   */\n  remove(id: string) {\n    return this.notificationFeature.removeToastr(id);\n  }\n}\n","import type CurrentUserService from 'client/legacy/services/current-user';\nimport type DatadogService from 'client/legacy/services/datadog';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport Service, { service } from '@ember/service';\n\nexport default class TrackerService extends Service {\n  @service currentUser: CurrentUserService;\n  @service lianaSession: LianaSessionService;\n  @service datadog: DatadogService;\n\n  captureAction(name: string, context?: object) {\n    this.datadog.captureAction(name, context);\n  }\n\n  captureAgentLatency(options: {\n    requestDuration: number;\n    layoutDuration: number;\n    httpCode: number;\n    error?: Error;\n    collectionName: string;\n    segmentName?: string;\n    segmentId?: string;\n    fieldName?: string;\n    DDSegmentIndex?: string;\n    withSearch: boolean;\n    withFilters: boolean;\n  }) {\n    this.datadog.captureAction('agent-call', options);\n  }\n\n  captureException(error: Error, context?: object) {\n    this.datadog.captureException(error, context);\n  }\n\n  captureMessage(\n    message: string,\n    level: 'fatal' | 'error' | 'warning' | 'log' | 'info' | 'debug' | 'critical',\n    context?: Record<string, unknown>,\n  ) {\n    this.datadog.captureMessage(message, level, context);\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type { Registry } from '@ember/service';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\n/**\n * This service's ONLY purpose is to store UI state that needs to be accessed\n * and updated across multiple components\n */\nexport default class UiControlService extends Service {\n  @service eventBus: EventBusService;\n  @service router: Registry['router'];\n\n  @tracked isSideMenuHidden = false;\n\n  init() {\n    super.init();\n\n    this.router.on('routeDidChange', this.onChangeRoute);\n  }\n\n  willDestroy() {\n    this.router.off('routeDidChange', this.onChangeRoute);\n\n    super.willDestroy();\n  }\n\n  @action\n  private onChangeRoute(transition: Transition) {\n    const routeFrom = transition.from?.name;\n    const routeTo = transition.to.name;\n\n    if (!routeFrom) {\n      return;\n    }\n    const shouldOpenMenu = [\n      'project.rendering.data',\n      'project.rendering.dashboard',\n      'project.rendering.workspaces',\n    ]\n      .filter((tab) => routeTo.startsWith(tab)) // Navigating to one of these tabs..\n      .every((tab) => !routeFrom.startsWith(tab)); // ..from elsewhere..\n    if (shouldOpenMenu) this.isSideMenuHidden = false; // ..will cause to open the side-menu\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type ActionApprovalModel from 'client/data/models/action-approval';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport moment from 'moment';\n\nexport type ApprovalsUIServiceModel = {\n  approvalsCount: number;\n  approvals: ActionApprovalModel[];\n  state?: string;\n  approvalsPerPage: number;\n  filterOptions: {\n    availableActionNames?: string[];\n    availableTeams?: number[];\n    availableRequesters?: {\n      internalId: number;\n      email: string;\n    }[];\n  };\n};\n\nexport type ApprovalCountUIServiceModel = {\n  created?: number;\n  to_review?: number;\n  warning?: number;\n};\n\nexport type ApprovalStateType = 'created' | 'to-review' | 'history' | 'warning';\n\nexport type ApprovalRouteParamsType = {\n  state: ApprovalStateType;\n  page?: number;\n\n  actionNames?: string[];\n  teams?: number[];\n  requesters?: number[];\n\n  creationDateStart?: string;\n  creationDateEnd?: string;\n\n  closingDateStart?: string;\n  closingDateEnd?: string;\n};\n\nconst MAP_STATE_TO_TRACKED_COUNT = {\n  created: 'filteredCountCreated',\n  'to-review': 'filteredCountToReview',\n  warning: 'filteredCountWarning',\n};\n\nexport default class ApprovalUIService extends Service {\n  APPROVALS_PER_PAGE = 15;\n\n  @service declare router: RouterService;\n  @service declare tracker: TrackerService;\n  @service declare errorHandler: ErrorHandlerService;\n  @service declare serverFetch: ServerFetchService;\n  @service declare store: StoreService;\n  @service declare lianaSession: LianaSessionService;\n\n  @tracked filteredCountCreated: number = null;\n  @tracked filteredCountToReview: number = null;\n  @tracked filteredCountWarning: number = null;\n\n  @tracked totalCountCreated: number = null;\n  @tracked totalCountToReview: number = null;\n  @tracked totalCountWarning: number = null;\n\n  async model({\n    state,\n    page,\n    actionNames,\n    teams,\n    requesters,\n    creationDateStart,\n    creationDateEnd,\n    closingDateStart,\n    closingDateEnd,\n  }: ApprovalRouteParamsType): Promise<ApprovalsUIServiceModel> {\n    const pageNumber = Number.isNaN(page) || page < 1 ? 1 : page;\n\n    const queryParams = {\n      state,\n      number: pageNumber,\n      size: this.APPROVALS_PER_PAGE,\n      // Filters\n      ...(actionNames ? { actionNames } : {}),\n      ...(teams ? { teams } : {}),\n      ...(requesters ? { requesters } : {}),\n\n      ...(creationDateStart\n        ? { creationDateStart: moment(creationDateStart).startOf('day').toISOString() }\n        : {}),\n      ...(creationDateEnd\n        ? { creationDateEnd: moment(creationDateEnd).endOf('day').toISOString() }\n        : {}),\n\n      ...(closingDateStart\n        ? { closingDateStart: moment(closingDateStart).startOf('day').toISOString() }\n        : {}),\n      ...(closingDateEnd\n        ? { closingDateEnd: moment(closingDateEnd).endOf('day').toISOString() }\n        : {}),\n    };\n\n    try {\n      const approvals = await this.store.query('action-approval', queryParams);\n\n      return {\n        // Allow to update the counts when the query returns one\n        approvalsCount: this.setAndGetCurrentCountForState(\n          state,\n          // if this line is removed and replace by another count, the filtered count\n          // is not well updated in the UI but te state is right.\n          Number(approvals.get('meta.count')),\n        ),\n        approvals: approvals.toArray(),\n        state,\n        approvalsPerPage: this.APPROVALS_PER_PAGE,\n        filterOptions: {\n          availableActionNames: approvals.get('meta.actions') as string[],\n          availableTeams: approvals.get('meta.teams') as number[],\n          availableRequesters: approvals.get('meta.requesters') as {\n            internalId: number;\n            email: string;\n          }[],\n        },\n      };\n    } catch (e) {\n      this.errorHandler.handleRequestFailure(\n        e as Error,\n        'An error occurred while retrieving approvals',\n      );\n\n      // Return to an empty state\n      return {\n        approvalsCount: 0,\n        state,\n        approvals: [],\n        approvalsPerPage: this.APPROVALS_PER_PAGE,\n        filterOptions: {\n          availableActionNames: [],\n          availableTeams: [],\n          availableRequesters: [],\n        },\n      };\n    }\n  }\n\n  get showWarningTab() {\n    return this.totalCountWarning !== null && this.totalCountWarning > 0;\n  }\n\n  updateToReviewCount(isRequestedByCurrentUser = false) {\n    this.filteredCountToReview -= 1;\n    this.totalCountToReview -= 1;\n\n    if (isRequestedByCurrentUser) {\n      this.filteredCountCreated -= 1;\n      this.totalCountCreated -= 1;\n    }\n  }\n\n  async updateWarningCount() {\n    this.filteredCountWarning -= 1;\n    this.totalCountWarning -= 1;\n\n    if (!this.showWarningTab) {\n      await this.router.transitionTo('project.rendering.collaboration').followRedirects();\n    }\n  }\n\n  updateToReviewCountOnError() {\n    this.filteredCountToReview -= 1;\n    this.totalCountToReview -= 1;\n  }\n\n  @action\n  async loadTotalCounts() {\n    const { created = 0, to_review: toReview = 0, warning = 0 } = await this.fetchCounts();\n\n    this.totalCountCreated = created;\n    this.totalCountToReview = toReview;\n    this.totalCountWarning = warning;\n  }\n\n  private setAndGetCurrentCountForState(state: ApprovalStateType, value: number) {\n    const trackedCountName = MAP_STATE_TO_TRACKED_COUNT[state] as string;\n    if (!trackedCountName) return undefined;\n\n    if (value || value === 0) this[trackedCountName] = value;\n    return this[trackedCountName] as number;\n  }\n\n  private async fetchCounts(): Promise<ApprovalCountUIServiceModel> {\n    try {\n      const response = await this.serverFetch.fetch(\n        `/api/action-approvals/counts`,\n        {\n          method: 'GET',\n          headers: { 'Forest-Rendering-Id': `${this.lianaSession.currentRenderingId}` },\n        },\n        true,\n      );\n      const {\n        meta: { counts },\n      } = (await response.json()) as {\n        meta: { counts: ApprovalCountUIServiceModel };\n      };\n      return counts;\n    } catch (e) {\n      this.tracker.captureException(e as Error);\n      return {};\n    }\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type ModelCustomizationModel from 'client/data/models/model-customization';\nimport type CloudFeatureService from 'client/features/cloud/services/feature';\nimport type LianaSession from 'client/legacy/services/liana-session';\nimport type SegmentTrackerService from 'client/legacy/services/segment-tracker';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type EnvironmentSharedBusinessService from 'client/shared/services/environment';\n\nimport Service, { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { getFirstErrorDetail } from 'client/utils/ember-error-util';\n\nexport default class ModelCustomizationUIService extends Service {\n  @service private toastr: ToastrService;\n  @service private segmentTracker: SegmentTrackerService;\n  @service private lianaSession: LianaSession;\n  @service private router: RouterService;\n  @service('feature/cloud') private cloudService: CloudFeatureService;\n  @service('shared/environment') private environmentService: EnvironmentSharedBusinessService;\n\n  private userFeedBackToastrId: string = null;\n\n  async saveModelCustomization(modelCustomization: ModelCustomizationModel): Promise<void> {\n    if (!modelCustomization) return;\n\n    try {\n      const isNew = !!modelCustomization.isNew;\n      await this.handleAgentReload(isNew, modelCustomization);\n      if (modelCustomization.hasDirtyAttributes) await modelCustomization.save();\n\n      await this.handleModelCustomizationCreation(isNew, modelCustomization);\n    } catch (error) {\n      this.toastr.remove(this.userFeedBackToastrId);\n      this.toastr.perform(\n        ToastrTypeEnum.Error,\n        getFirstErrorDetail(error as Error) || 'unexpected error',\n      );\n    }\n  }\n\n  async onEnvironmentUpdateEnded() {\n    this.toastr.remove(this.userFeedBackToastrId);\n    this.cloudService.unsubscribeToRestartEvents('CollectionSettings');\n  }\n\n  private async handleModelCustomizationCreation(\n    isNew: boolean,\n    modelCustomization: ModelCustomizationModel,\n  ) {\n    if (isNew) {\n      this.segmentTracker.trackNocodeActionCreated(\n        this.lianaSession.currentProject.id,\n        modelCustomization.payloadForEvent,\n      );\n      await this.router.transitionTo('project.rendering.data.collection.settings.actions.index');\n    }\n  }\n\n  private async handleAgentReload(isNew: boolean, modelCustomization: ModelCustomizationModel) {\n    if (isNew || modelCustomization.requiresAgentReload) {\n      this.userFeedBackToastrId = this.toastr.perform(\n        ToastrTypeEnum.Loading,\n        `Action ${isNew ? 'created' : 'edited'}. Updating your admin panel...`,\n        {\n          duration: 0,\n        },\n      );\n\n      const handler = this.onEnvironmentUpdateEnded.bind(this);\n\n      if (this.lianaSession.currentEnvironment.isFullHostedAgent) {\n        await this.cloudService.subscribeToRestartEvents('CollectionSettings', {\n          restartEnded: handler,\n        });\n      } else {\n        await this.environmentService.onEnvironmentUpdateEnded(\n          'CollectionSettings',\n          handler,\n          Number(this.lianaSession.currentEnvironment.id),\n        );\n      }\n    }\n  }\n}\n","import type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport { action } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\ntype NoteCountKind = 'notes-created' | 'notes-mentioned';\n\ntype CountResponse = { count?: unknown };\n\nexport default class NotesUIService extends Service {\n  @service declare serverFetch: ServerFetchService;\n  @service declare tracker: TrackerService;\n  @service declare lianaSession: LianaSessionService;\n  @service declare session: ForestSessionService;\n\n  @tracked notesCreatedCount = 0;\n  @tracked notesMentionedCount = 0;\n\n  @action\n  async loadCounts(renderingId: string | number | null | undefined) {\n    if (!renderingId || !this.session.isAuthenticated) return;\n\n    const [created, mentioned] = await Promise.all([\n      this.fetchCount(renderingId, 'notes-created'),\n      this.fetchCount(renderingId, 'notes-mentioned'),\n    ]);\n\n    this.notesCreatedCount = created;\n    this.notesMentionedCount = mentioned;\n  }\n\n  private async fetchCount(renderingId: string | number, kind: NoteCountKind): Promise<number> {\n    try {\n      const response = await this.serverFetch.fetch(\n        `/api/renderings/${renderingId}/${kind}/count`,\n        { method: 'GET' },\n        true,\n      );\n      const payload = (await response.json()) as CountResponse;\n\n      return typeof payload.count === 'number' ? payload.count : 0;\n    } catch (error) {\n      this.tracker.captureException(error as Error);\n\n      return 0;\n    }\n  }\n}\n","import type { Router } from '@ember/routing';\nimport type BillingModel from 'client/data/models/billing';\nimport type PlanModel from 'client/data/models/plan';\nimport type ProjectModel from 'client/data/models/project';\nimport type { SubscriptionCommitmentsEnum } from 'client/data/models/subscription';\nimport type { ProjectSettingsBillingRouteModel } from 'client/legacy/pods/project/project-settings/billing/route';\nimport type BillingService from 'client/legacy/services/billing-service';\nimport type StripeService from 'client/legacy/services/stripe-service';\nimport type { StripeContext } from 'client/legacy/services/stripe-service';\nimport type ToastrService from 'client/legacy/services/toastr';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport Service, { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport window from 'ember-window-mock';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { getAllErrorDetails, isEmberError } from 'client/utils/ember-error-util';\nimport { BillingError, BillingValidationError } from 'client/utils/errors/billing-errors';\n\nexport type BillingUIServiceModel = {\n  billing: BillingModel;\n  stripeContext: StripeContext;\n};\n\nfunction getErrorMessage(error: Error): string {\n  if (isEmberError(error)) {\n    return getAllErrorDetails(error).join('\\n');\n  }\n\n  return 'An error occurred while updating your billing details.';\n}\n\nexport default class BillingUIService extends Service {\n  @service declare router: Router;\n  @service declare toastr: ToastrService;\n  @service declare tracker: TrackerService;\n  @service declare billingService: BillingService;\n  @service declare stripeService: StripeService;\n\n  async model(\n    projectSettingsBillingModel: ProjectSettingsBillingRouteModel,\n  ): Promise<BillingUIServiceModel> {\n    return {\n      billing: projectSettingsBillingModel.billing,\n      stripeContext: await this.stripeService.generateStripeContext(\n        projectSettingsBillingModel.billing.id,\n      ),\n    };\n  }\n\n  async afterModel(model: BillingUIServiceModel) {\n    if (model.billing.isFree) {\n      await this.router.transitionTo('project.project-settings.billing');\n    }\n  }\n\n  async updatePaymentDetails(billing: BillingModel, stripeContext: StripeContext) {\n    try {\n      await this.billingService.updatePaymentDetails({ billing, stripeContext });\n      await this.router.transitionTo('project.project-settings.billing');\n      this.toastr.perform(\n        ToastrTypeEnum.Success,\n        'Your payment details have been successfully updated.',\n      );\n    } catch (error) {\n      this.tracker.captureException(error as Error);\n      const message =\n        error instanceof BillingError ? error.message : getErrorMessage(error as Error);\n\n      this.toastr.perform(ToastrTypeEnum.Error, message, { duration: 0 });\n      if (error instanceof BillingValidationError) {\n        await this.router.transitionTo('project.project-settings.billing.edit.company');\n      }\n    }\n  }\n\n  async save(billing: BillingModel) {\n    if (!billing.validate()) {\n      this.toastr.perform(\n        ToastrTypeEnum.Error,\n        'Some of your billing information is missing or invalid.',\n      );\n      return;\n    }\n\n    try {\n      await billing.save();\n      await this.router.transitionTo('project.project-settings.billing');\n      this.toastr.perform(\n        ToastrTypeEnum.Success,\n        'Your billing details have been successfully updated.',\n      );\n    } catch (e) {\n      this.tracker.captureException(e as Error);\n\n      this.toastr.perform(ToastrTypeEnum.Error, getErrorMessage(e as Error), { duration: 0 });\n    }\n  }\n\n  async upgradeToPlan({\n    billing,\n    project,\n    chosenPlan,\n    chosenCommitment,\n    editPaymentDetails,\n    stripeContext,\n    postUpgradeUrl,\n  }: {\n    billing: BillingModel;\n    project: ProjectModel;\n    chosenPlan: PlanModel;\n    chosenCommitment: SubscriptionCommitmentsEnum;\n    editPaymentDetails: boolean;\n    stripeContext: StripeContext;\n    postUpgradeUrl: string;\n  }) {\n    try {\n      await this.billingService.upgradeToPlan({\n        billing,\n        project,\n        chosenPlan,\n        chosenCommitment,\n        editPaymentDetails,\n        stripeContext,\n        returnUrl: window.location.origin + postUpgradeUrl,\n      });\n\n      this.toastr.perform(\n        ToastrTypeEnum.Success,\n        htmlSafe(`You have been successfully upgraded to ${chosenPlan.displayName} Plan.\n      <br/>Please refresh your browser to enjoy all your newly unlocked features.`),\n        { duration: 0 },\n      );\n      await this.router.transitionTo(postUpgradeUrl);\n    } catch (error) {\n      if (!(error instanceof BillingError)) {\n        this.tracker.captureException(error as Error);\n        console.error('Error while upgrading to plan', error);\n      }\n\n      const message =\n        error instanceof BillingError\n          ? error.message\n          : 'An unexpected error occurred while upgrading the plan.';\n\n      this.toastr.perform(ToastrTypeEnum.Error, message, { duration: 0 });\n    }\n  }\n}\n","import type { SafeString } from '@ember/template/-private/handlebars';\nimport type HtmlSanitizerService from 'client/legacy/services/html-sanitizer';\n\nimport Service, { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\n\nconst LENGTH_MAX = 80;\nconst HIGHLIGHT_START = '<span class=\"c-column-highlight\">';\nconst HIGHLIGHT_END = '</span>';\n\nexport default class ValueHighlighterService extends Service {\n  @service htmlSanitizer: HtmlSanitizerService;\n\n  computeValueLimited({\n    label,\n    searchMatch,\n  }: {\n    label: string;\n    searchMatch: string;\n  }): SafeString | string {\n    let value: string | undefined;\n    let isLimited = false;\n\n    const labelAsString = [undefined, null].includes(label) ? label : `${label}`;\n    if (labelAsString) {\n      value = labelAsString;\n\n      if (value.length > LENGTH_MAX) {\n        value = value.slice(0, LENGTH_MAX);\n        isLimited = true;\n      }\n    }\n\n    if (searchMatch) {\n      return htmlSafe(\n        this.highlight({\n          label: labelAsString,\n          value,\n          isLimited,\n          searchMatch,\n        }),\n      );\n    }\n\n    if (isLimited) {\n      return `${value}…`;\n    }\n\n    return value;\n  }\n\n  computeValueWithHighlight({ label, searchMatch }: { label: string; searchMatch: string }) {\n    if (searchMatch) {\n      return htmlSafe(`${HIGHLIGHT_START}${this.htmlSanitizer.escapeText(label)}${HIGHLIGHT_END}`);\n    }\n\n    return label;\n  }\n\n  private highlight({\n    label,\n    searchMatch,\n    value,\n    isLimited,\n  }: {\n    label: string;\n    searchMatch: string;\n    value: string;\n    isLimited: boolean;\n  }): string {\n    const escapedSearchMatch = this.htmlSanitizer.escapeText(searchMatch);\n    const escapedValue = this.htmlSanitizer.escapeText(value);\n\n    const lastIndex = label.toLowerCase().lastIndexOf(searchMatch.toLowerCase());\n\n    const searchEscaped = escapedSearchMatch.replace(/[-[\\]{}()*+!<=:?./\\\\^$|#\\s,]/g, '\\\\$&');\n    const searchHighlight = new RegExp(searchEscaped, 'i');\n    let valueFormatted = escapedValue.replace(\n      searchHighlight,\n      (match) => `${HIGHLIGHT_START}${match}${HIGHLIGHT_END}`,\n    );\n\n    if (lastIndex + searchMatch.length > LENGTH_MAX) {\n      valueFormatted = `${valueFormatted}${HIGHLIGHT_START}…${HIGHLIGHT_END}`;\n    } else if (isLimited) {\n      valueFormatted = `${valueFormatted}…`;\n    }\n\n    return valueFormatted;\n  }\n}\n","import type Controller from '@ember/controller';\nimport type CustomDomainService from 'client/legacy/services/custom-domain';\nimport type FaviconManagerService from 'client/legacy/services/favicon-manager';\n\nimport Service, { service } from '@ember/service';\n\nimport pageTitle from 'client/utils/page-title';\n\nexport default class WhiteLabelService extends Service {\n  @service faviconManager: FaviconManagerService;\n  @service customDomain: CustomDomainService;\n\n  /**\n   * Use this in your route:\n   *  - declare a function title,\n   *  - call this function inside\n   */\n  async title(tokens: string[]) {\n    const title = await this.getFromCustomDomain('name');\n    return pageTitle(title, tokens);\n  }\n\n  /**\n   * Use this in your route:\n   *  - declare a function setupController\n   *  - call super.setupController\n   *  - call this function\n   */\n  async setupController(\n    controller: Controller & {\n      customDomainPictureUrl: string | null;\n      customDomainName: string | null;\n    },\n  ) {\n    const pictureUrl = await this.setupFavicon();\n    controller.set('customDomainPictureUrl', pictureUrl);\n    controller.set('customDomainName', await this.getFromCustomDomain('name'));\n  }\n\n  async setupFavicon() {\n    const pictureUrl = await this.getPictureUrl();\n    this.faviconManager.setFavicon(pictureUrl);\n    return pictureUrl;\n  }\n\n  private async getFromCustomDomain(key: 'pictureUrl' | 'primaryColor' | 'name') {\n    if (this.customDomain.isCustomDomain) {\n      const customDomain = await this.customDomain.getDecoration();\n      return customDomain && customDomain[key];\n    }\n\n    return null;\n  }\n\n  async getName() {\n    return this.getFromCustomDomain('name');\n  }\n\n  async getPictureUrl() {\n    return this.getFromCustomDomain('pictureUrl');\n  }\n\n  /**\n   * @returns {Promise<string>}\n   */\n  async getPrimaryColor() {\n    return this.getFromCustomDomain('primaryColor');\n  }\n}\n","import type Widget from 'client/data/models/widget';\n// eslint-disable-next-line ember/use-ember-data-rfc-395-imports\nimport type WidgetConfiguration from 'client/data/models/widget-configuration';\nimport type StoreService from 'client/legacy/services/store';\nimport type {\n  FilterableField,\n  WidgetDisplayTypeEnum,\n  WidgetEditTypeEnum,\n  Widgets,\n} from 'client/utils/widgets';\n// eslint-disable-next-line ember/use-ember-data-rfc-395-imports\nimport type DS from 'ember-data';\n\nimport { set } from '@ember/object';\nimport Service, { service } from '@ember/service';\nimport { isFunction } from 'lodash';\n\nimport {\n  WidgetTypeEnum,\n  getDefaultWidgetName,\n  getWidget,\n  getWidgets,\n  getWidgetsFor,\n  hasWidgets,\n  isWidgetInvalid,\n} from 'client/utils/widgets';\n\nexport default class WidgetsManagerService extends Service {\n  @service declare store: StoreService;\n\n  initWidgets() {\n    // NOTICE: Tests can fail if this line is removed, because records are instancied twice.\n    if (this.store.peekRecord('widget', 'point editor')) return null;\n    getWidgets().forEach((widget) => {\n      this.store.createRecord('widget', {\n        name: widget.name,\n        label: widget.label,\n        hasSettings: widget.hasSettings,\n        type: widget.type,\n        shouldDisplayInsideFilter: widget.shouldDisplayInsideFilter,\n        shouldRenderNullValues: widget.shouldRenderNullValues,\n        editInlineValueOnLeftClick: widget.editInlineValueOnLeftClick,\n      });\n    });\n    return this.findAll();\n  }\n\n  findAll(): DS.RecordArray<Widget> {\n    return this.store.peekAll('widget');\n  }\n\n  find(name: string) {\n    const widgets = this.findAll();\n    return widgets.find((widget) => widget.get('name') === name);\n  }\n\n  getEditWidgetsFor(type: string) {\n    return getWidgetsFor(type, WidgetTypeEnum.Edit).map((widget) => this.find(widget.name));\n  }\n\n  getDisplayWidgetsFor(type: string) {\n    return getWidgetsFor(type, WidgetTypeEnum.Display).map((widget) => this.find(widget.name));\n  }\n\n  hasWidgetsAvailable(type: string) {\n    return hasWidgets(type);\n  }\n\n  createWidgetConfiguration<WidgetName extends Widgets>(\n    field: FilterableField,\n    name: WidgetName,\n  ): WidgetConfiguration<WidgetName> {\n    const widget = getWidget(name);\n\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n    const parameters: object = isFunction(widget.defaultParameters)\n      ? widget.defaultParameters(field)\n      : widget.defaultParameters || {};\n\n    // fix an issue with default value in ember-data-model-fragments\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n    const wt: WidgetConfiguration<WidgetName> = this.store.createFragment('widget-configuration', {\n      name: widget.name,\n      parameters,\n    });\n    const widgetConfigurationWithDefaultValues = wt.toJSON();\n    return this.store.createFragment(\n      'widget-configuration',\n      widgetConfigurationWithDefaultValues,\n    ) as WidgetConfiguration<WidgetName>;\n  }\n\n  /**\n   * Get the default display or edit widget (see widgetType) for a field.\n   */\n  private getDefaultWidgetConfigurationFor<WT extends WidgetTypeEnum>(\n    field: FilterableField,\n    widgetType: WT,\n  ): WT extends WidgetTypeEnum.Display\n    ? WidgetConfiguration<WidgetDisplayTypeEnum>\n    : WidgetConfiguration<WidgetEditTypeEnum> {\n    // NOTICE: `type` fallbacks to `String` to avoid errors in case the backend returns\n    //         a wrong type in a smart field (e.g: `{fieldName: 'foo',type: 'bar'}`).\n    const fieldType = hasWidgets(field.typeForWidgets) ? field.typeForWidgets : 'String';\n    type ExpectedWidgetConfiguration = WT extends WidgetTypeEnum.Display\n      ? WidgetConfiguration<WidgetDisplayTypeEnum>\n      : WidgetConfiguration<WidgetEditTypeEnum>;\n    const defaultWidgetName = getDefaultWidgetName(fieldType, widgetType);\n\n    return this.createWidgetConfiguration(\n      field,\n      defaultWidgetName,\n    ) as unknown as ExpectedWidgetConfiguration;\n  }\n\n  private assignDefaultWidget(field: FilterableField, type: 'widgetEdit' | 'widgetDisplay') {\n    if (!field[type] || isWidgetInvalid(field, field[type])) {\n      set(\n        field,\n        type,\n        this.getDefaultWidgetConfigurationFor(\n          field,\n          type === 'widgetEdit' ? WidgetTypeEnum.Edit : WidgetTypeEnum.Display,\n        ) as WidgetConfiguration<undefined>,\n      );\n    }\n  }\n\n  /**\n   * Assign default widgets if no widgets have been specified\n   */\n  assignDefaultWidgets(field: FilterableField) {\n    // NOTICE: `hasMany` is currently the only one field type that has no widget.\n    if (field.typeForWidgets === 'hasMany') return;\n\n    this.assignDefaultWidget(field, 'widgetEdit');\n    this.assignDefaultWidget(field, 'widgetDisplay');\n  }\n}\n","import window from 'ember-window-mock';\n\nexport default class TestLocation {\n  constructor(...args) {\n    this._args = args;\n\n    this.implementation = 'test-location';\n    this._window = window;\n    this._states = [];\n  }\n\n  static create(...args) {\n    return new TestLocation(...args);\n  }\n\n  pushState(path) {\n    this._states.push(path);\n  }\n\n  onUpdateURL(callback) {\n    this.updateCallback = callback;\n  }\n\n  getURL() {\n    return this._currentURL || this._window.location.pathname;\n  }\n\n  formatURL(url) {\n    return url;\n  }\n\n  setURL(path) {\n    this._currentURL = path;\n    this.pushState(path);\n  }\n\n  replaceURL(newURL) {\n    this._currentURL = newURL;\n  }\n\n  handleURL(url) {\n    this._currentURL = url;\n    this.updateCallback(url);\n  }\n}\n","import type { ParsedModuleName } from 'ember-resolver';\n\nimport Resolver from 'ember-resolver';\n\nexport default class ForestResolver extends Resolver {\n  constructor(properties?: object) {\n    super(properties);\n\n    this.moduleNameLookupPatterns = [\n      this.dataLookupPattern,\n      this.sharedLookupPattern,\n      this.featuresLookupPattern,\n      this.routesLookupPattern,\n      this.legacyLookupPatterns,\n      ...this.moduleNameLookupPatterns,\n    ];\n  }\n\n  private getTypeFolder(type: string) {\n    // template type includes `components` in its full name\n    return type === 'template' ? 'components' : `${this.pluralize(type)}`;\n  }\n\n  private getFullNameWithoutType(fullName: string, type: string) {\n    return type === 'template' && fullName.startsWith('components/')\n      ? fullName.slice(11)\n      : fullName;\n  }\n\n  public dataLookupPattern(parsedModuleName: ParsedModuleName) {\n    if (!['model', 'serializer', 'transform', 'adapter'].includes(parsedModuleName.type))\n      return undefined;\n\n    return `${parsedModuleName.prefix}/data/${this.pluralize(parsedModuleName.type)}/${\n      parsedModuleName.fullNameWithoutType\n    }`;\n  }\n\n  public sharedLookupPattern(parsedModuleName: ParsedModuleName) {\n    if (\n      // Components' template are prefixed by \"components/\"\n      !parsedModuleName.fullNameWithoutType.startsWith('shared/')\n      && !parsedModuleName.fullNameWithoutType.startsWith('components/shared/')\n      && !['helper', 'modifier', 'service'].includes(parsedModuleName.type)\n    )\n      return undefined;\n\n    const fullNameWithoutType = this.getFullNameWithoutType(\n      parsedModuleName.fullNameWithoutType,\n      parsedModuleName.type,\n    );\n\n    if (\n      (parsedModuleName.type === 'template' || parsedModuleName.type === 'component')\n      && !fullNameWithoutType.startsWith('shared/')\n    )\n      return undefined;\n\n    let componentName = fullNameWithoutType.startsWith('shared/')\n      ? fullNameWithoutType.slice(7)\n      : fullNameWithoutType;\n    let { type } = parsedModuleName;\n    if (parsedModuleName.type === 'service' && componentName.startsWith('state/')) {\n      componentName = componentName.slice(6);\n      type = 'state';\n    }\n    const typeFolder = this.getTypeFolder(type);\n    return parsedModuleName.type === 'template' || parsedModuleName.type === 'component'\n      ? `${parsedModuleName.prefix}/shared/${typeFolder}/${componentName}/${parsedModuleName.type}`\n      : `${parsedModuleName.prefix}/shared/${typeFolder}/${componentName}`;\n  }\n\n  public featuresLookupPattern(parsedModuleName: ParsedModuleName) {\n    if (\n      // FIXME: To ease the migration we will not enforce the prefix of feature/ for now\n      // !parsedModuleName.fullNameWithoutType.startsWith('feature/')\n      !['component', 'template', 'service', 'state'].includes(parsedModuleName.type)\n    )\n      return undefined;\n\n    const fullNameWithoutType = this.getFullNameWithoutType(\n      parsedModuleName.fullNameWithoutType,\n      parsedModuleName.type,\n    );\n\n    if (!fullNameWithoutType.startsWith('feature/')) return undefined;\n\n    const [, featureName, ...otherModuleParts] =\n      fullNameWithoutType.startsWith('feature/') || fullNameWithoutType.startsWith('ui/')\n        ? fullNameWithoutType.split('/')\n        : `feature/${fullNameWithoutType}`.split('/');\n    const typeFolder = this.getTypeFolder(parsedModuleName.type);\n    const featurePrefix = `${parsedModuleName.prefix}/features/${featureName}/${typeFolder}`;\n\n    if (otherModuleParts.length === 0) {\n      return parsedModuleName.type === 'service'\n        ? `${featurePrefix}/feature`\n        : `${featurePrefix}/${parsedModuleName.type}`;\n    }\n    if (\n      otherModuleParts.length === 1\n      && otherModuleParts[0] === 'state'\n      && parsedModuleName.type === 'service'\n    ) {\n      return `${parsedModuleName.prefix}/features/${featureName}/state`;\n    }\n\n    const fullPath = `${featurePrefix}/${otherModuleParts.join('/')}`;\n    return parsedModuleName.type === 'component' || parsedModuleName.type === 'template'\n      ? `${fullPath}/${parsedModuleName.type}`\n      : fullPath;\n  }\n\n  public routesLookupPattern(parsedModuleName: ParsedModuleName) {\n    if (!['template', 'route', 'controller'].includes(parsedModuleName.type)) return undefined;\n\n    return `${parsedModuleName.prefix}/routes/${parsedModuleName.fullNameWithoutType}/${parsedModuleName.type}`;\n  }\n\n  public legacyLookupPatterns(parsedModuleName: ParsedModuleName) {\n    switch (parsedModuleName.type) {\n      case 'template':\n      case 'route':\n      case 'controller':\n        return `${parsedModuleName.prefix}/legacy/pods/${parsedModuleName.fullNameWithoutType}/${parsedModuleName.type}`;\n      case 'component':\n        return `${parsedModuleName.prefix}/legacy/pods/components/${parsedModuleName.fullNameWithoutType}/${parsedModuleName.type}`;\n      case 'service':\n      case 'helper':\n      case 'model':\n      case 'modifier':\n      case 'adapter':\n      case 'transform':\n      case 'serializer':\n      default:\n        return `${parsedModuleName.prefix}/legacy/${this.pluralize(parsedModuleName.type)}/${\n          parsedModuleName.fullNameWithoutType\n        }`;\n    }\n  }\n}\n","import EmberRouter from '@ember/routing/router';\n\nimport config from 'client/config/environment';\n\nexport default class Router extends EmberRouter {\n  location = config.locationType;\n  rootURL = config.rootURL;\n}\n\nRouter.map(function () {\n  this.route('index', { path: '/' });\n\n  this.route('livedemo', { path: 'livedemo/:livedemo_name' });\n  this.route('livedemo');\n\n  // NOTICE: This route is used by an iframe to log into google using the main forest domain\n  //         as redirect url. This allow to easily log into google with custom domains.\n  this.route('google-authentication');\n\n  this.route('saml-callback');\n\n  // NOTICE: Authenticated routes\n  this.route('new-project');\n\n  this.route('projects', function () {\n    this.route('create');\n    this.route('create', { path: '/create/:phase/:step' });\n  });\n\n  this.route('organization', { path: '/organization/:organization_name' }, function () {\n    this.route('projects');\n    this.route('settings', function () {\n      this.route('overview');\n      this.route('ownership');\n      this.route('security', function () {\n        this.route('configure');\n        this.route('choose-configuration');\n        this.route('xml-configuration');\n        this.route('manual-input-configuration');\n      });\n    });\n  });\n\n  this.route('project', { path: '/:project_name' }, function () {\n    this.route('onboarding', function () {\n      this.route('default');\n      this.route('hosting');\n      this.route('framework');\n      this.route('orm');\n      this.route('stack');\n      this.route('integration');\n      this.route('review');\n      this.route('deployment');\n    });\n\n    this.route('rendering', { path: '/:environment_name/:team_name' }, function () {\n      this.route('dashboard', function () {\n        this.route('new');\n        this.route('preview');\n        this.route('view', { path: ':dashboard_id' }, function () {\n          this.route('settings');\n          this.route('chart', function () {\n            this.route('create');\n            this.route('edit', { path: ':chart_id/edit' });\n            this.route('smart-edit', { path: ':chart_id/smart-edit' });\n          });\n        });\n      });\n      this.route('data', function () {\n        this.route('collection', { path: '/:collection_id' }, function () {\n          this.route('settings', function () {\n            this.route('general');\n            this.route('fields', function () {\n              this.route('details', { path: '/:field_name' });\n            });\n            this.route('segments', function () {\n              this.route('details', { path: '/:segment_name' });\n              this.route('create');\n            });\n            this.route('actions', function () {\n              this.route('create');\n              this.route('details', { path: '/:action_name' });\n            });\n            this.route('workflows', function () {\n              this.route('details', { path: '/:workflow_name' });\n            });\n            this.route('views', function () {\n              this.route('create');\n              this.route('details', { path: '/:view_name' });\n              this.route('preview');\n            });\n            this.route('scope', function () {\n              this.route('preview');\n            });\n          });\n\n          this.route('list', { path: '/index' }, function () {\n            this.route(\n              'view-create',\n              { path: '/record/:create_collection_id/create' },\n              function () {\n                this.route('details');\n                this.route('new-belongs-to', { path: '/new-belongs-to/:field_id' });\n                this.route('view-has-many', { path: '/has-many/:row_create_id' }, function () {\n                  this.route('create');\n                  this.route('add');\n                });\n                this.route('belongs-to-embedded-view', { path: '/fragment/:field_id' });\n                this.route(\n                  'view-has-many-embedded',\n                  {\n                    path: '/has-many-embedded/:row_create_id',\n                  },\n                  function () {\n                    this.route('create');\n                  },\n                );\n              },\n            );\n\n            this.route(\n              'view-edit',\n              { path: '/record/:edit_collection_id/:record_id' },\n              function () {\n                // eslint-disable-next-line ember/routes-segments-snake-case\n                this.route('details-integration', { path: '/:integrationCollection/:objectId' });\n                this.route('summary', function () {\n                  this.route('preview');\n                });\n                this.route('details');\n                this.route('explorer', function () {\n                  this.route('preview');\n                });\n                this.route('activity', function () {\n                  this.route('preview');\n                });\n                this.route('collaboration', function () {\n                  this.route('index', { path: '/' }, function () {\n                    this.route('create', { path: '/note/new' });\n                    this.route('show', { path: '/note/:note_id' });\n                  });\n                  this.route('preview');\n                });\n                this.route('analytics', function () {\n                  this.route('preview');\n                  this.route('view', { path: '/' }, function () {\n                    this.route('chart', function () {\n                      this.route('create');\n                      this.route('edit', { path: ':chart_id/edit' });\n                      this.route('smart-edit', { path: '/:chart_id/smart-edit' });\n                    });\n                  });\n                });\n                this.route('new-belongs-to', { path: '/new-belongs-to/:field_id' });\n                this.route('view-has-many', { path: '/has-many/:row_edit_id' }, function () {\n                  this.route('create');\n                  this.route('add');\n                });\n                this.route('integration', { path: '/integration/:integration' });\n                this.route('belongs-to-embedded-view', { path: '/fragment/:field_id' });\n                this.route(\n                  'view-has-many-embedded',\n                  {\n                    path: '/has-many-embedded/:row_edit_id',\n                  },\n                  function () {\n                    this.route('create');\n                    this.route('edit', { path: '/edit/:record_index' });\n                  },\n                );\n                this.route('workspace', function () {\n                  this.route('configure-component', { path: '/configure/:component_id' });\n                });\n              },\n            );\n            this.route('smart-view-editor', { path: '/smart-view-editor/:smart_view_name' });\n          });\n          this.route('workflow-editor', { path: '/workflow-editor/:workflow_name' });\n        });\n      });\n      this.route('reports', function () {\n        this.route('activity', function () {\n          this.route('preview');\n        });\n        this.route('team-performance', function () {\n          this.route('index', { path: '/' });\n          this.route('preview');\n        });\n      });\n      this.route('collaboration', function () {\n        this.route('messages', function () {\n          this.route('created');\n          this.route('mentions');\n          this.route('preview');\n        });\n        this.route('approvals', { path: '/approvals/:state' }, function () {\n          this.route('details', { path: '/details/:approval_id' });\n        });\n      });\n      this.route('folders', function () {\n        this.route('view', { path: ':folder_id' }, function () {\n          this.route('settings');\n        });\n      });\n      // old activity route redirect to reports/activity\n      this.route('activity');\n      this.route('not-found', { path: '/*path' });\n      this.route('workspaces', function () {\n        this.route('view', { path: '/:workspace_id' }, function () {\n          this.route('builder', function () {\n            this.route('configure-component', { path: '/configure/:component_id' });\n          });\n          this.route('settings');\n        });\n        this.route('view-error');\n      });\n      this.route('inbox', function () {\n        this.route('view', { path: ':inbox_id' }, function () {\n          this.route('backlog');\n          this.route('doing');\n          this.route('settings');\n          this.route('todo');\n        });\n        this.route('preview');\n      });\n    });\n\n    this.route('no-environments-available');\n\n    this.route('project-settings', { path: '/settings' }, function () {\n      this.route('general');\n      this.route('interface');\n      this.route('connectors', function () {\n        this.route('mcp-server', { path: '/mcp-server/:mcp_server_id' }, function () {\n          this.route('edit');\n        });\n        this.route('create-mcp-server');\n      });\n      this.route('environments', function () {\n        this.route('index', { path: '/' });\n        this.route('details', { path: '/details/:editing_environment_name' }, function () {\n          this.route('databases', { path: '/databases/:editing_datasource_name' });\n        });\n      });\n      this.route('teams', function () {\n        this.route('create');\n        this.route('preview');\n        this.route('details', { path: '/:team_id' });\n      });\n      this.route('users', function () {\n        this.route('index', { path: '/' });\n        this.route('details', { path: '/:user_id' });\n      });\n      this.route('billing', function () {\n        this.route('index', { path: '/' });\n        this.route('upgrade');\n        this.route('edit', function () {\n          this.route('company');\n          this.route('payment');\n        });\n        this.route('manage-your-plan');\n      });\n      this.route('security');\n      this.route('roles', function () {\n        this.route('index', { path: '/' });\n        this.route('create');\n        this.route('preview');\n        this.route('details', { path: '/:role_name' }, function () {\n          this.route('index', { path: '/' });\n          this.route('environment-permissions', { path: '/:role_environment_name' }, function () {\n            this.route('index', { path: '/' });\n            this.route('collections');\n            this.route('smart-actions');\n          });\n          this.route('edit');\n        });\n      });\n    });\n\n    this.route('environment', { path: '/:environment_name' });\n\n    this.route('not-found', { path: '/*' });\n  });\n  this.route('authentication-token');\n\n  // NOTICE: Public routes\n  this.route('invitation', { path: '/invitation/:secret' });\n  this.route('signup');\n  this.route('login');\n  this.route('login-sso');\n  this.route('reset-password');\n  this.route('update-password', { path: '/update-password/:token' });\n\n  this.route('oidc', function () {\n    this.route('confirm');\n    this.route('confirm-success');\n  });\n\n  // User Settings - React MFE handles routing internally\n  // Sub-routes declared for Ember compatibility, MFE uses URL to render content\n  this.route('user-settings', function () {\n    this.route('application-tokens', function () {\n      this.route('new');\n      this.route('details', { path: '/:token_id' });\n    });\n    this.route('two-factor-authentication', function () {\n      this.route('instructions');\n      this.route('setup');\n      this.route('recovery-codes');\n    });\n  });\n\n  this.route('google-auth-redirect');\n  this.route('mcp-oauth-redirect');\n  this.route('zendesk-oauth-redirect');\n\n  this.route('authentication', function () {\n    this.route('login', function () {\n      this.route('sso');\n    });\n    this.route('signup', function () {\n      this.route('sso');\n    });\n    this.route('invitation');\n    this.route('reset-password');\n    this.route('update-password', { path: '/update-password/:token' });\n  });\n\n  this.route('responsive', function () {\n    this.route('browser-extension', function () {\n      this.route('onboarding');\n      this.route('settings');\n      this.route('main', function () {\n        this.route('index', { path: '/' });\n      });\n    });\n  });\n\n  this.route('oauth', function () {\n    this.route('authorize');\n  });\n});\n","import type AuthenticationFeatureService from 'client/features/authentication/services/feature';\nimport type { AuthenticationRouteModel } from 'client/routes/authentication/route';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class AuthenticationRoute extends Route<AuthenticationRouteModel> {\n  @service('feature/authentication')\n  private authenticationFeatureService: AuthenticationFeatureService;\n\n  async afterModel({ invitation }: AuthenticationRouteModel) {\n    await this.authenticationFeatureService.redirectIfWrongUserConnected(invitation);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Layout::CardOnEmptyPage @scrollingWrapper={{true}}>\\n  <Feature::Authentication::Invitation @invitation={{this.model.invitation}} />\\n</Shared::Layout::CardOnEmptyPage>\\n', { moduleName: 'client/routes/authentication/invitation/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Layout::CardOnEmptyPage @scrollingWrapper={{true}}>\\n  <Feature::Authentication::Login::Form\\n    @defaultEmail={{this.model.email}}\\n    @invitation={{this.model.invitation}}\\n  />\\n</Shared::Layout::CardOnEmptyPage>\\n', { moduleName: 'client/routes/authentication/login/index/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type AuthenticationFeatureService from 'client/features/authentication/services/feature';\nimport type BrowserExtensionFeatureService from 'client/features/browser-extension/services/feature';\nimport type { AuthenticationRouteModel } from 'client/routes/authentication/route';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class LoginRoute extends Route<AuthenticationRouteModel> {\n  @service('feature/authentication')\n  private authenticationFeatureService: AuthenticationFeatureService;\n\n  @service('feature/browser-extension')\n  private browserExtensionService: BrowserExtensionFeatureService;\n\n  async beforeModel(transition: Transition) {\n    // when we are using the browser extension, we need to redirect to the home page of the extension\n    await this.browserExtensionService.redirectToHomeIfOutsideContext(transition);\n\n    this.authenticationFeatureService.displayLastLogoutMessage();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Layout::CardOnEmptyPage @scrollingWrapper={{true}}>\\n  <Feature::Authentication::Login::Sso @invitation={{this.model.invitation}} />\\n</Shared::Layout::CardOnEmptyPage>\\n', { moduleName: 'client/routes/authentication/login/sso/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Layout::CardOnEmptyPage @scrollingWrapper={{true}}>\\n  <Feature::Authentication::ResetPassword @defaultEmail={{this.model.email}} />\\n</Shared::Layout::CardOnEmptyPage>\\n', { moduleName: 'client/routes/authentication/reset-password/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type InvitationModel from 'client/data/models/invitation';\nimport type AuthenticationFeatureService from 'client/features/authentication/services/feature';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\nimport enforceProtocol from 'client/decorators/enforce-protocol';\nimport enforceWhiteLabel from 'client/decorators/enforce-white-label';\n\nexport interface AuthenticationRouteModel {\n  invitation?: InvitationModel;\n  email?: string;\n}\n\n@enforceProtocol({ secure: true })\n@enforceWhiteLabel()\nexport default class AuthenticationRoute extends Route<AuthenticationRouteModel> {\n  @service('feature/authentication')\n  private authenticationFeatureService: AuthenticationFeatureService;\n\n  @service store: StoreService;\n\n  queryParams = {\n    invitation: {\n      refreshModel: true,\n    },\n    email: {\n      refreshModel: true,\n    },\n  };\n\n  async beforeModel(transition: Transition) {\n    await this.authenticationFeatureService.redirectIfAlreadyAuthentified(transition.to.name);\n\n    if (window.location.protocol === 'http:' && config.APP.useSSL) {\n      window.location.href = window.location.href.replace('http', 'https');\n    }\n  }\n\n  async model(params: { invitation?: string; email?: string }): Promise<AuthenticationRouteModel> {\n    const invitation = await this.authenticationFeatureService.fetchInvitation(params.invitation);\n\n    return { invitation, email: params.email };\n  }\n\n  async afterModel({ invitation }: AuthenticationRouteModel, transition: Transition) {\n    await this.authenticationFeatureService.redirectAccordingToInvitation(\n      transition.to.name,\n      invitation,\n    );\n  }\n}\n","import type InvitationModel from 'client/data/models/invitation';\nimport type UserModel from 'client/data/models/user';\nimport type CustomDomainService from 'client/legacy/services/custom-domain';\nimport type StoreService from 'client/legacy/services/store';\nimport type { AuthenticationRouteModel } from 'client/routes/authentication/route';\nimport type FetchSharedBusinessService from 'client/shared/services/fetch';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport interface SignupRouteModel extends AuthenticationRouteModel {\n  user: UserModel;\n  invitation?: InvitationModel;\n  email?: string;\n  countryCode?: string;\n}\n\nexport default class AuthenticationRoute extends Route<SignupRouteModel> {\n  @service private customDomain: CustomDomainService;\n  @service store: StoreService;\n  @service('shared/fetch') private fetchService: FetchSharedBusinessService;\n\n  async model(): Promise<SignupRouteModel> {\n    const { invitation, email } = (await this.modelFor(\n      'authentication',\n    )) as AuthenticationRouteModel;\n\n    const user = this.store.createRecord('user', {\n      email: invitation?.email || email,\n      firstName: null,\n      lastName: null,\n      password: null,\n      invitationSecret: invitation?.secret,\n      // NOTICE: When a user signs up from an invitation only opt-out by default\n      // when using a custom domain\n      optOutMarketingFromApp: this.customDomain.isCustomDomain || false,\n    });\n\n    return { user, invitation, email, countryCode: await this.getCountryCodeFromIp() };\n  }\n\n  private async getCountryCodeFromIp() {\n    try {\n      const response = await this.fetchService.fetch('https://ipapi.co/json');\n      const { country_code } = (await response.json()) as { country_code: string };\n      return country_code ?? 'fr';\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      return 'fr';\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Layout::CardOnEmptyPage @scrollingWrapper={{true}}>\\n  <Feature::Authentication::SignUp::Form\\n    @invitation={{this.model.invitation}}\\n    @user={{this.model.user}}\\n    @countryCode={{this.model.countryCode}}\\n  />\\n</Shared::Layout::CardOnEmptyPage>\\n', { moduleName: 'client/routes/authentication/signup/index/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Layout::CardOnEmptyPage @scrollingWrapper={{true}}>\\n  <Feature::Authentication::SignUp::Sso @invitation={{this.model.invitation}} />\\n</Shared::Layout::CardOnEmptyPage>\\n', { moduleName: 'client/routes/authentication/signup/sso/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{outlet}}\\n{{! \\n  /!\\\\ Beware of not integrating this iframe in the application where it\\'s not necessary\\n  Including it at the root level of the application creates interferences with the JWT-Secured authenticator\\n  because all refresh events etc are replayed in the iframe\\n}}\\n<Authentication::IframeGoogleLogin @iframeClass=\\\"js-google-login-iframe\\\" />\\n', { moduleName: 'client/routes/authentication/template.hbs' });\n","import type AuthenticationFeatureService from 'client/features/authentication/services/feature';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class UpdatePasswordRoute extends Route {\n  @service('feature/authentication')\n  private authenticationFeatureService: AuthenticationFeatureService;\n\n  async model({ token }: { token: string }) {\n    await this.authenticationFeatureService.redirectIfWrongResetPasswordToken(token);\n\n    return { token };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Layout::CardOnEmptyPage @scrollingWrapper={{true}}>\\n  <Feature::Authentication::UpdatePassword @token={{this.model.token}} />\\n</Shared::Layout::CardOnEmptyPage>\\n', { moduleName: 'client/routes/authentication/update-password/template.hbs' });\n","import type McpServerFeatureService from 'client/features/mcp-server/services/feature';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\nexport interface McpOauthRedirectModel {\n  status: 'success' | 'error';\n  errorMessage?: string;\n}\n\nexport default class McpOauthRedirectRoute extends Route {\n  @service('feature/mcp-server')\n  private mcpServerFeature: McpServerFeatureService;\n\n  model(): McpOauthRedirectModel {\n    const url = new URL(window.location.href);\n    const code = url.searchParams.get('code');\n    const state = url.searchParams.get('state');\n    const error = url.searchParams.get('error');\n    const errorDescription = url.searchParams.get('error_description');\n\n    if (error) {\n      this.mcpServerFeature.handleOAuthError(state, error, errorDescription);\n\n      return { status: 'error', errorMessage: errorDescription || error };\n    }\n\n    if (code && state) {\n      this.mcpServerFeature.completeOAuthFlow(code, state);\n\n      return { status: 'success' };\n    }\n\n    return { status: 'error', errorMessage: 'Missing authorization code or state parameter' };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::OauthRedirectCard\\n  @status={{@model.status}}\\n  @successMessage=\\\"You have been successfully authenticated with the MCP server.\\\"\\n  @errorMessage={{@model.errorMessage}}\\n/>\\n', { moduleName: 'client/routes/mcp-oauth-redirect/template.hbs' });\n","import Controller from '@ember/controller';\n\nexport default class OauthAuthorizeController extends Controller {\n  queryParams = [\n    'environmentId',\n    'redirect_uri',\n    'state',\n    'client_id',\n    'code_challenge',\n    'code_challenge_method',\n    'resource',\n    'scope',\n    'response_type',\n  ];\n}\n","import type Transition from '@ember/routing/-private/transition';\nimport type { OauthAuthorizeArgs } from 'client/features/authentication/components/oauth/authorize/component';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type AuthenticationOauthInternalFeatureService from 'client/features/authentication/services/internal-feature/oauth';\nimport type ForestSessionService from 'client/legacy/services/forest-session';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class OauthAuthorizeRoute extends Route {\n  @service private session: ForestSessionService;\n\n  @service('feature/authentication/internal-feature/oauth')\n  private oauthService: AuthenticationOauthInternalFeatureService;\n\n  public beforeModel(transition: Transition) {\n    this.session.requireAuthenticationAndRedirectToCurrentUrl('authentication.login');\n\n    const params = transition.to?.queryParams;\n    if (!this.oauthService.validateParamsAndRedirectIfMissing(params)) {\n      return;\n    }\n\n    return super.beforeModel(transition);\n  }\n\n  async model(\n    _params: Record<string, string>,\n    transition: Transition,\n  ): Promise<OauthAuthorizeArgs> {\n    const { environmentId, ...oauthParams } = transition.to.queryParams;\n    const authorizeData = await this.oauthService.loadAuthorizeData(environmentId);\n\n    return {\n      oauthParams: oauthParams as unknown as OauthAuthorizeArgs['oauthParams'],\n      authorizeData,\n    };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Layout::CardOnEmptyPage @scrollingWrapper={{true}}>\\n  <Feature::Authentication::Oauth::Authorize\\n    @oauthParams={{this.model.oauthParams}}\\n    @authorizeData={{this.model.authorizeData}}\\n  />\\n</Shared::Layout::CardOnEmptyPage>\\n', { moduleName: 'client/routes/oauth/authorize/template.hbs' });\n","import CreateNewProjectRoute from 'client/routes/projects/create/route';\n\nexport default CreateNewProjectRoute;\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Wrapper\\n  @phase={{this.model.phase}}\\n  @step={{this.model.step}}\\n  @isFirstPersonalProject={{this.model.isFirstPersonalProject}}\\n/>\\n', { moduleName: 'client/routes/organization/projects/create/template.hbs' });\n","import Controller from '@ember/controller';\n\nexport default class ProjectProjectSettingsConnectorsCreateMcpServerController extends Controller {\n  public static readonly queryParams = ['connector'];\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type ProjectModel from 'client/data/models/project';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsConnectorsCreateMcpServerRoute extends Route {\n  @service private readonly router: RouterService;\n  @service('feature/mcp-server') private readonly mcpServerFeature: McpServerFeatureService;\n\n  async model() {\n    return this.modelFor('project') as ProjectModel;\n  }\n\n  beforeModel() {\n    const connector = this.router.currentRoute.queryParams.connector;\n    if (connector) {\n      this.mcpServerFeature.setIntegrationName(connector);\n    }\n  }\n\n  get breadcrumb() {\n    return [\n      {\n        displayName: 'MCP Servers',\n        link: 'project.project-settings.connectors',\n        isClickable: true,\n        isFirst: true,\n        isLast: false,\n      },\n      {\n        displayName: 'New MCP Server',\n        link: 'project.project-settings.connectors.create-mcp-server',\n        isClickable: false,\n        isFirst: false,\n        isLast: true,\n      },\n    ];\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::McpServer::Create />\\n', { moduleName: 'client/routes/project/project-settings/connectors/create-mcp-server/template.hbs' });\n","import type McpServerConfigModel from 'client/data/models/mcp-server-config';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'mcpServer',\n  redirectionIfFeatureNotActivated: 'project.project-settings.general',\n})\nexport default class ProjectProjectSettingsConnectorsRoute extends Route<McpServerConfigModel[]> {\n  @service('feature/mcp-server') private mcpServerFeature: McpServerFeatureService;\n\n  async beforeModel() {\n    await this.mcpServerFeature.ensureAccessToMcpServersPage();\n  }\n\n  async model() {\n    return this.mcpServerFeature.getMCPServers();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout\\n  class=\\\"c-feature-ai-project-settings-connectors\\\"\\n  data-test-project-settings-connectors-index\\n>\\n  <Feature::McpServer::Page @mcpServers={{this.model}} />\\n</Shared::BetaSettingsLayout>\\n', { moduleName: 'client/routes/project/project-settings/connectors/index/template.hbs' });\n","import type McpServerConfigModel from 'client/data/models/mcp-server-config';\n\nimport Route from '@ember/routing/route';\n\nexport default class ProjectProjectSettingsConnectorsMcpServerEditRoute extends Route {\n  get breadcrumb() {\n    return [\n      {\n        displayName: 'MCP Servers',\n        link: 'project.project-settings.connectors',\n        isClickable: true,\n      },\n      {\n        displayName: (this.modelFor(this.routeName) as McpServerConfigModel)?.serverName,\n        link: 'project.project-settings.connectors.mcp-server',\n        isClickable: true,\n      },\n      {\n        displayName: 'Edit',\n      },\n    ];\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::McpServer::Edit @mcpServer={{this.model}} />\\n', { moduleName: 'client/routes/project/project-settings/connectors/mcp-server/edit/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::McpServer::Details @mcpServer={{this.model}} />\\n', { moduleName: 'client/routes/project/project-settings/connectors/mcp-server/index/template.hbs' });\n","import type McpServerConfigModel from 'client/data/models/mcp-server-config';\nimport type McpServerFeatureService from 'client/features/mcp-server/services/feature';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsConnectorsMcpServerRoute extends Route<\n  McpServerConfigModel,\n  { mcp_server_id: string }\n> {\n  @service('feature/mcp-server') private mcpServerFeature: McpServerFeatureService;\n\n  async model({ mcp_server_id }: { mcp_server_id: string }) {\n    return this.mcpServerFeature.getMCPServerById(mcp_server_id);\n  }\n\n  get breadcrumb() {\n    return [\n      {\n        displayName: 'MCP Servers',\n        link: 'project.project-settings.connectors',\n        isClickable: true,\n      },\n      {\n        displayName: (this.modelFor(this.routeName) as McpServerConfigModel)?.serverName,\n      },\n    ];\n  }\n}\n","import type McpServerFeatureService from 'client/features/mcp-server/services/feature';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectProjectSettingsConnectorsRoute extends Route {\n  @service('feature/mcp-server') private mcpServerFeature: McpServerFeatureService;\n\n  async beforeModel() {\n    await this.mcpServerFeature.ensureAccessToMcpServersPage();\n  }\n}\n","import type WorkspaceModel from 'client/data/models/workspace';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\n\nimport { service } from '@ember/service';\n\nimport AbstractWorkspaceConfigureComponentRoute from 'client/legacy/abstract-routes/abstract-workspace-configure-component-route';\n\nexport default class ProjectRenderingDataCollectionListViewEditWorkspaceConfigureComponentRoute extends AbstractWorkspaceConfigureComponentRoute {\n  @service('feature/workspace') private workspaceFeature: WorkspaceFeatureService;\n\n  get noComponentRedirectionRoute() {\n    return 'project.rendering.data.collection.list.view-edit.workspace';\n  }\n\n  get workspace() {\n    const { workspace } = this.modelFor(\n      'project.rendering.data.collection.list.view-edit.workspace',\n    ) as {\n      workspace: WorkspaceModel;\n    };\n\n    return workspace;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Workspace::ConfigureComponent @component={{@model}} />\\n', { moduleName: 'client/routes/project/rendering/data/collection/list/view-edit/workspace/configure-component/template.hbs' });\n","import type Controller from '@ember/controller';\nimport type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type CollectionModel from 'client/data/models/collection';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type WorkspaceFeatureService from 'client/features/workspace/services/feature';\nimport type EventBusService from 'client/legacy/services/event-bus';\nimport type { AbilitiesService } from 'ember-can';\n\nimport { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\nexport interface ViewEditWorkspaceRouteModel {\n  collection: CollectionModel;\n  workspace: WorkspaceModel;\n  [key: string]: unknown;\n}\n\nexport default class ProjectRenderingDataCollectionListViewEditWorkspaceRoute extends Route {\n  @service private abilities: AbilitiesService;\n  @service private router: RouterService;\n  @service('feature/workspace') private workspaceFeature: WorkspaceFeatureService;\n\n  @service private eventBus: EventBusService;\n\n  beforeModel() {\n    if (this.abilities.cannot('access workspaceOnRecord')) {\n      void this.router.transitionTo('project.rendering.data.collection.list.view-edit');\n    }\n  }\n\n  async model(_, transition: Transition): Promise<ViewEditWorkspaceRouteModel> {\n    const model = (await this.modelFor('project.rendering.data.collection.list.view-edit')) as {\n      collection: CollectionModel;\n      [key: string]: unknown;\n    };\n\n    const workspace = await this.workspaceFeature.getWorkspaceForCollection(model.collection);\n\n    const queryParams = { ...transition.to.queryParams };\n\n    delete queryParams.segmentId;\n\n    await this.workspaceFeature.buildAllContextFromQueryParameters(workspace, queryParams);\n\n    return { ...model, workspace };\n  }\n\n  setupController(controller: Controller, model: ViewEditWorkspaceRouteModel) {\n    super.setupController(controller, model, null);\n    this.eventBus.on(\n      EventBusEventsEnum.WorkspaceOnRecordCreated,\n      this.handleWorkspaceOnRecordCreated,\n    );\n    this.one('deactivate', this.removeListener);\n  }\n\n  @action\n  private handleWorkspaceOnRecordCreated() {\n    this.refresh();\n  }\n\n  @action\n  private removeListener() {\n    this.eventBus.off(\n      EventBusEventsEnum.WorkspaceOnRecordCreated,\n      this.handleWorkspaceOnRecordCreated,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Workspace::PerRecord @collection={{this.model.collection}}>\\n  {{outlet}}\\n</Feature::Workspace::PerRecord>\\n', { moduleName: 'client/routes/project/rendering/data/collection/list/view-edit/workspace/template.hbs' });\n","import Controller from '@ember/controller';\n\nexport default class WorkflowEditorController extends Controller {\n  queryParams = ['isV1', 'subProcessId'];\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type CollectionModel from 'client/data/models/collection';\nimport type WorkflowModel from 'client/data/models/workflow';\nimport type WorkflowFeatureService from 'client/features/workflow/services/feature';\nimport type WorkflowEditorFeatureService from 'client/features/workflow-editor/services/feature';\nimport type ErrorHandlerService from 'client/legacy/services/error-handler';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { WorkflowEditorNotFoundError } from 'client/features/workflow-editor/errors';\n\ninterface Model {\n  workflow: WorkflowModel;\n  collection: CollectionModel;\n  bpmn: string | null;\n}\n\nexport default class ProjectRenderingDataCollectionWorkflowEditorRoute extends Route<Model> {\n  @service private errorHandler: ErrorHandlerService;\n  @service private router: RouterService;\n  @service('feature/workflow')\n  private workflowFeature: WorkflowFeatureService;\n\n  @service('feature/workflow-editor')\n  private workflowEditorFeature: WorkflowEditorFeatureService;\n\n  @service private lianaSession: LianaSessionService;\n\n  async model(params: { workflow_name: string }): Promise<Model> {\n    this.workflowEditorFeature.resetZoom();\n\n    const collection = this.modelFor('project.rendering.data.collection') as CollectionModel;\n\n    await this.workflowFeature.fetchWorkflows({\n      projectName: this.lianaSession.currentProject.name,\n      environmentName: this.lianaSession.rendering.environment.name,\n      teamName: this.lianaSession.rendering.team.name,\n    });\n\n    const workflow = collection.workflows.find(\n      (customWorkflow) => customWorkflow.name === decodeURIComponent(params.workflow_name),\n    );\n\n    if (!workflow) {\n      this.errorHandler.handleError(\n        new WorkflowEditorNotFoundError(params.workflow_name),\n        'Cannot access Workflow Editor',\n      );\n      void this.router.transitionTo(\n        'project.rendering.data.collection.settings.workflows.details',\n        collection.id,\n      );\n      return { workflow: null, collection, bpmn: null };\n    }\n\n    const bpmn = await this.workflowFeature.getBpmnFile(workflow);\n\n    return { workflow, collection, bpmn };\n  }\n\n  beforeModel() {\n    if (!this.workflowEditorFeature.canAccessRoute()) {\n      void this.router.transitionTo('project.rendering');\n    }\n  }\n\n  async titleToken() {\n    const { workflow } = (await this.modelFor(this.routeName)) as Model;\n    return `Workflow Editor ‣ ${workflow.name}`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::WorkflowEditor\\n  @bpmn={{this.model.bpmn}}\\n  @collection={{this.model.collection}}\\n  @workflow={{this.model.workflow}}\\n/>\\n', { moduleName: 'client/routes/project/rendering/data/collection/workflow-editor/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class FoldersIndexRoute extends Route {\n  @service private router: RouterService;\n\n  async beforeModel() {\n    void this.router.transitionTo('project.rendering.data');\n  }\n}\n","import type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingFoldersRoute extends Route {\n  @service private lianaSession: LianaSessionService;\n\n  async model() {\n    return {\n      rendering: this.lianaSession.rendering,\n    };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Folder::Page>\\n  <:body>\\n    {{outlet}}\\n  </:body>\\n</Feature::Folder::Page>\\n', { moduleName: 'client/routes/project/rendering/folders/template.hbs' });\n","import type Controller from '@ember/controller';\nimport type RouterService from '@ember/routing/router-service';\nimport type FolderModel from 'client/data/models/folder';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingFoldersViewIndexRoute extends Route {\n  @service private currentUser: CurrentUserService;\n  @service private eventBus: EventBusService;\n  @service private router: RouterService;\n  @service('feature/folder') private folderFeature: FolderFeatureService;\n\n  beforeModel() {\n    if (!this.currentUser.editMode) {\n      this.currentUser.editMode = true;\n    }\n  }\n\n  async model() {\n    const parentParams = this.paramsFor('project.rendering.folders.view') as { folder_id: string };\n\n    return this.folderFeature.loadRequireModelForFolder(parentParams.folder_id);\n  }\n\n  setupController(\n    controller: Controller & { folder?: FolderModel },\n    model: { folder: FolderModel },\n  ) {\n    super.setupController(controller, model, null);\n    this.eventBus.on('editModeDeactivated', this.redirectToRenderingData);\n    this.one('deactivate', this.removeEditModeDeactivatedListener);\n  }\n\n  removeEditModeDeactivatedListener() {\n    this.eventBus.off('editModeDeactivated', this.redirectToRenderingData);\n  }\n\n  @action\n  redirectToRenderingData() {\n    void this.router.transitionTo('project.rendering.data');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaHeader\\n  @hasSideMenu={{true}}\\n  @title={{this.model.folder.name}}\\n  @withoutMaxWidth={{true}}\\n  @variant=\\\"surface\\\"\\n>\\n  <:right-buttons>\\n    {{yield \\'c-beta-header__actions\\' to=\\'right-buttons\\'}}\\n  </:right-buttons>\\n</BetaHeader>\\n\\n<Feature::Folder::Page::View />\\n', { moduleName: 'client/routes/project/rendering/folders/view/index/template.hbs' });\n","import Route from '@ember/routing/route';\n\nexport default class ProjectRenderingFoldersViewRoute extends Route {\n  async model() {\n    return {};\n  }\n}\n","import type Controller from '@ember/controller';\nimport type RouterService from '@ember/routing/router-service';\nimport type FolderModel from 'client/data/models/folder';\nimport type FolderFeatureService from 'client/features/folder/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type EventBusService from 'client/legacy/services/event-bus';\n\nimport { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport preventLeavingWithoutSaving from 'client/decorators/prevent-leaving-without-saving';\n\n@preventLeavingWithoutSaving<typeof ProjectRenderingFoldersViewSettingsRoute>('folder')\nexport default class ProjectRenderingFoldersViewSettingsRoute extends Route {\n  @service private currentUser: CurrentUserService;\n  @service private eventBus: EventBusService;\n  @service private router: RouterService;\n  @service('feature/folder') private folderFeature: FolderFeatureService;\n\n  beforeModel() {\n    if (!this.currentUser.editMode) {\n      this.currentUser.editMode = true;\n    }\n  }\n\n  async model() {\n    const parentParams = this.paramsFor('project.rendering.folders.view') as { folder_id: string };\n\n    return this.folderFeature.loadRequireModelForFolder(parentParams.folder_id);\n  }\n\n  setupController(\n    controller: Controller & { folder?: FolderModel },\n    model: { folder: FolderModel },\n  ) {\n    super.setupController(controller, model, null);\n    this.eventBus.on('editModeDeactivated', this.redirectToRenderingData);\n    this.one('deactivate', this.removeEditModeDeactivatedListener);\n\n    void controller.set('folder', model.folder);\n  }\n\n  removeEditModeDeactivatedListener() {\n    this.eventBus.off('editModeDeactivated', this.redirectToRenderingData);\n  }\n\n  @action\n  async redirectToRenderingData() {\n    await this.router.transitionTo('project.rendering.data');\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaHeader\\n  @hasSideMenu={{true}}\\n  @title={{this.model.folder.name}}\\n  @withoutMaxWidth={{true}}\\n  @variant=\\\"surface\\\"\\n>\\n  <:right-buttons>\\n    {{yield \\'c-beta-header__actions\\' to=\\'right-buttons\\'}}\\n  </:right-buttons>\\n</BetaHeader>\\n\\n<Feature::Folder::Settings @folder={{this.model.folder}} />\\n\\n', { moduleName: 'client/routes/project/rendering/folders/view/settings/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{outlet}}\\n', { moduleName: 'client/routes/project/rendering/folders/view/template.hbs' });\n","import Route from '@ember/routing/route';\n\nimport { EnvironmentsFeaturesEnum } from 'client/data/models/plan';\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: EnvironmentsFeaturesEnum.Inbox,\n  redirectionIfFeatureActivated: 'project.rendering.collaboration',\n})\nexport default class ProjectRenderingInboxPreviewRoute extends Route {\n  titleToken = 'Premium Feature';\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Inbox::Preview />\\n', { moduleName: 'client/routes/project/rendering/inbox/preview/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-project-rendering-view__content\\\">\\n  {{outlet}}\\n</div>\\n', { moduleName: 'client/routes/project/rendering/inbox/template.hbs' });\n","import type Controller from '@ember/controller';\nimport type { ErrorType } from 'client/config/errors';\nimport type { InboxAccessForbiddenError, InboxNotFoundError } from 'client/features/inbox/errors';\n\nimport Route from '@ember/routing/route';\n\nexport default class ProjectRenderingInboxViewErrorRoute extends Route<\n  InboxNotFoundError | InboxAccessForbiddenError | Error\n> {\n  setupController(\n    controller: Controller & { error: { type: ErrorType; options?: { target: string } } | Error },\n    error: InboxNotFoundError | InboxAccessForbiddenError | Error,\n  ) {\n    controller.error = error;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Layout::LayoutError @error={{this.error}} data-test-inbox-view-error />\\n', { moduleName: 'client/routes/project/rendering/inbox/view-error/template.hbs' });\n","import type { InboxBacklogQueryParams } from 'client/features/inbox/services/feature';\n\nimport Controller from '@ember/controller';\n\nexport default class BacklogController extends Controller {\n  queryParams: Array<keyof InboxBacklogQueryParams> = [\n    'sort',\n    'states',\n    'startedProcessingAtBefore',\n    'startedProcessingAtAfter',\n    'assignees',\n    'unassigned',\n    'page',\n  ];\n}\n","import type InboxModel from 'client/data/models/inbox';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingInboxBacklogRoute extends Route<\n  { inbox: InboxModel; error?: Error },\n  { inbox_id: string }\n> {\n  @service('feature/inbox') private inboxFeatureService: InboxFeatureService;\n\n  async beforeModel() {\n    const { inbox } = this.modelFor('project.rendering.inbox.view') as {\n      inbox: InboxModel;\n    };\n    await this.inboxFeatureService.ensureBacklogAccess(inbox?.id);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Inbox::Backlog @inbox={{this.model.inbox}} />\\n', { moduleName: 'client/routes/project/rendering/inbox/view/backlog/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Inbox::DoingPage @inbox={{this.model.inbox}} />\\n', { moduleName: 'client/routes/project/rendering/inbox/view/doing/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingInboxViewIndexRoute extends Route<\n  unknown,\n  { inbox_id: string }\n> {\n  @service private router: RouterService;\n\n  async beforeModel() {\n    await this.router.transitionTo('project.rendering.inbox.view.todo');\n  }\n}\n","import type InboxModel from 'client/data/models/inbox';\nimport type InboxFeatureService from 'client/features/inbox/services/feature';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { EnvironmentsFeaturesEnum } from 'client/data/models/plan';\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: EnvironmentsFeaturesEnum.Inbox,\n  redirectionIfFeatureNotActivated: 'project.rendering.inbox.preview',\n})\nexport default class ProjectRenderingInboxViewRoute extends Route<\n  { inbox: InboxModel; error?: Error },\n  { inbox_id: string }\n> {\n  @service('feature/inbox') private inboxFeatureService: InboxFeatureService;\n\n  async model({ inbox_id }: { inbox_id: string }) {\n    return this.inboxFeatureService.loadRequiredModelsForInbox(inbox_id);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Inbox::Settings @inbox={{this.model.inbox}} />\\n', { moduleName: 'client/routes/project/rendering/inbox/view/settings/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaHeader\\n  @hasSideMenu={{true}}\\n  @title={{this.model.inbox.nameWithIcon}}\\n  data-test-controller-project-rendering-collaboration-inbox-header\\n>\\n  <:right-buttons>\\n    <Shared::PortalFor @name=\\\"inbox-backlog-filter-button\\\" />\\n  </:right-buttons>\\n</BetaHeader>\\n\\n{{outlet}}\\n', { moduleName: 'client/routes/project/rendering/inbox/view/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Inbox::ToDoPage @inbox={{this.model.inbox}} />\\n', { moduleName: 'client/routes/project/rendering/inbox/view/todo/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type TimezoneService from 'client/legacy/services/timezone';\nimport type TrackerService from 'client/legacy/services/tracker';\n\nimport Controller from '@ember/controller';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport emberErrorUtil from 'client/utils/ember-error-util';\n\nconst { getFirstErrorDetail, isEmberError } = emberErrorUtil;\n\nexport default class ProjectRenderingReportsActivityIndexController extends Controller {\n  @service currentUser: CurrentUserService;\n  @service lianaSession: LianaSessionService;\n  @service serverFetch: ServerFetchService;\n  @service('feature/notification') notificationBusinessService: NotificationFeatureService;\n  @service timezone: TimezoneService;\n  @service tracker: TrackerService;\n  @service router: RouterService;\n\n  collection = {\n    displayNameLowerCase: 'Activity',\n  };\n\n  queryParams = ['activitiesPage'];\n  @tracked displayingExportModal = false;\n  @tracked searchValue: string;\n\n  get canExportActivityLogs() {\n    return this.currentUser.can('exportActivityLogs');\n  }\n\n  @action\n  openExportModal() {\n    this.displayingExportModal = true;\n  }\n\n  @action\n  closeExportModal() {\n    this.displayingExportModal = false;\n  }\n\n  @action\n  async searchFunction(value: string) {\n    this.searchValue = value;\n  }\n\n  @action\n  async goToRendering() {\n    await this.router.transitionTo('project.rendering');\n  }\n\n  @action\n  async exportsActivities(from: string, to: string) {\n    const renderingId = this.lianaSession.currentRenderingId;\n\n    const timezone = this.timezone.getTimezone(this.lianaSession.currentEnvironment);\n\n    try {\n      await this.serverFetch.fetch(\n        `/api/rendering/${renderingId}/export-activity-logs`,\n        {\n          method: 'POST',\n          credentials: 'include',\n          body: JSON.stringify({ from, to, timezone }),\n        },\n        true,\n      );\n\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Success,\n        'You will receive the export by email in a few minutes.',\n      );\n    } catch (e) {\n      const error = e as Error;\n      this.tracker.captureException(error);\n      const message = (isEmberError(error) && getFirstErrorDetail(error)) || 'Unexpected error';\n      this.notificationBusinessService.createToastr(\n        ToastrTypeEnum.Error,\n        `Failed to export activities: ${message}`,\n      );\n    } finally {\n      this.closeExportModal();\n    }\n  }\n}\n","import type ProjectRenderingReportsActivityIndexController from 'client/routes/project/rendering/reports/activity/index/controller';\n\nimport Route from '@ember/routing/route';\n\nimport { EnvironmentsFeaturesEnum } from 'client/data/models/plan';\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: EnvironmentsFeaturesEnum.ActivityLogs,\n  redirectionIfFeatureNotActivated: 'project.rendering.reports.activity.preview',\n})\nexport default class ProjectRenderingReportsActivityIndexRoute extends Route {\n  resetController(controller: ProjectRenderingReportsActivityIndexController, isExiting: boolean) {\n    if (isExiting) {\n      controller.searchValue = null;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<BetaHeader @title=\\\"Activity\\\" data-test-controller-project-rendering-activity-index-header>\\n  <:search-and-filter>\\n    <Shared::BetaSearchBar\\n      @searchFunction={{this.searchFunction}}\\n      @placeholder=\\\"Search for activities...\\\"\\n      class=\\\"c-beta-search-bar--long\\\"\\n      data-test-controller-project-rendering-activity-index-header-search-bar\\n    />\\n  </:search-and-filter>\\n\\n  <:right-buttons>\\n    {{#if this.canExportActivityLogs}}\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @text=\\\"Export\\\"\\n        @action={{this.openExportModal}}\\n        @async={{false}}\\n        data-test-controller-project-rendering-activity-index-header-export-button\\n      />\\n    {{/if}}\\n  </:right-buttons>\\n</BetaHeader>\\n\\n{{#if this.displayingExportModal}}\\n  <ModalExportsFromTo\\n    @title=\\\"Export your activities\\\"\\n    @onClose={{this.closeExportModal}}\\n    @exports={{this.exportsActivities}}\\n  >\\n    <p>To export your activities, please select a date range.</p>\\n    <p>You will receive the export by email.</p>\\n  </ModalExportsFromTo>\\n{{/if}}\\n\\n<Feature::ActivityLog::ActivityLogBrowser\\n  @page={{this.activitiesPage}}\\n  @searchValue={{this.searchValue}}\\n  @cancel={{this.goToRendering}}\\n/>\\n', { moduleName: 'client/routes/project/rendering/reports/activity/index/template.hbs' });\n","import Route from '@ember/routing/route';\n\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: 'activityLogs',\n  redirectionIfFeatureActivated: 'project.rendering.reports.activity.index',\n})\nexport default class ProjectRenderingReportsActivityPreviewRoute extends Route {\n  titleToken = 'Premium Feature';\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Preview::PreviewActivityLog @featureCallbackRoute=\\\"project.rendering.reports.activity\\\" />\\n', { moduleName: 'client/routes/project/rendering/reports/activity/preview/template.hbs' });\n","import RestrictedSectionAccessRoute from 'client/legacy/abstract-routes/restricted-section-access-route';\n\nexport default class ProjectRenderingReportsActivityRoute extends RestrictedSectionAccessRoute {\n  titleToken = 'Activity';\n}\n","import type RouterService from '@ember/routing/router-service';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ProjectRenderingReportsIndexRoute extends Route {\n  @service private router: RouterService;\n  titleToken = 'Reports';\n\n  beforeModel() {\n    void this.router.transitionTo('project.rendering.reports.activity.index');\n  }\n}\n","import Route from '@ember/routing/route';\n\nexport default class ProjectRenderingReportsRoute extends Route {\n  titleToken = 'Reports';\n}\n","import Controller from '@ember/controller';\n\nexport const TEAM_PERFORMANCE_QUERY_PARAMETERS = [\n  'inboxIds',\n  'teamIds',\n  'assigneeIds',\n  'timePeriod',\n  'from',\n  'to',\n  'days',\n  'leaderboardSort[order]',\n  'leaderboardSort[by]',\n  'leaderboardPage',\n  'performanceActiveSection',\n  'performanceInterval',\n];\n\nexport default class TeamPerformanceController extends Controller {\n  queryParams = TEAM_PERFORMANCE_QUERY_PARAMETERS;\n}\n","import type RouterService from '@ember/routing/router-service';\nimport type TeamPerformanceFeatureService from 'client/features/team-performance/services/feature';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport { EnvironmentsFeaturesEnum } from 'client/data/models/plan';\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: EnvironmentsFeaturesEnum.TeamPerformance,\n  redirectionIfFeatureNotActivated: 'project.rendering.reports.team-performance.preview',\n})\nexport default class ProjectRenderingReportsTeamPerformanceIndexRoute extends Route {\n  @service('feature/team-performance')\n  private teamPerformanceFeature: TeamPerformanceFeatureService;\n\n  @service private router: RouterService;\n\n  titleToken = 'Team Performance';\n\n  async beforeModel() {\n    if (!this.teamPerformanceFeature.canUserAccessTeamPerformance()) {\n      await this.router.transitionTo('project.rendering.reports.activity');\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::TeamPerformance::Page />\\n', { moduleName: 'client/routes/project/rendering/reports/team-performance/index/template.hbs' });\n","import Route from '@ember/routing/route';\n\nimport { EnvironmentsFeaturesEnum } from 'client/data/models/plan';\nimport featureAccessAndPreviewRedirection from 'client/decorators/feature-access-and-preview-redirection';\n\n@featureAccessAndPreviewRedirection({\n  featureName: EnvironmentsFeaturesEnum.TeamPerformance,\n  redirectionIfFeatureActivated: 'project.rendering.reports.team-performance',\n})\nexport default class ProjectRenderingReportsTeamPerformancePreviewRoute extends Route {\n  titleToken = 'Preview Team Performance';\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::TeamPerformance::Preview />\\n', { moduleName: 'client/routes/project/rendering/reports/team-performance/preview/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Report::Page>\\n  {{outlet}}\\n</Feature::Report::Page>\\n', { moduleName: 'client/routes/project/rendering/reports/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type OnboardingFeatureService from 'client/features/onboarding/services/feature';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nimport colorUtils, { getColorFromTheme } from 'client/utils/color-utils';\n\nexport default class ProjectsCreateRoute extends Route {\n  @service('feature/onboarding') private onboardingService: OnboardingFeatureService;\n  @service private router: RouterService;\n\n  private isFirstPersonalProject: Promise<boolean>;\n\n  async beforeModel(transition: Transition) {\n    colorUtils.setColorPrimaryVariantsOnElement(document.body, getColorFromTheme('--accent-600'));\n\n    const phase = transition.to.params.phase || 'introduction';\n\n    this.isFirstPersonalProject = this.onboardingService.isFirstPersonalProject();\n    // Force restart to first step on hard reload (no previous route),\n    // but avoid redirect loop if already on the initial step.\n    if (!transition.from) {\n      const initialPhase = (await this.isFirstPersonalProject) ? 'introduction' : 'setup';\n      const currentPhase = transition.to.params.phase || initialPhase;\n      const currentStep = String(transition.to.params.step || '1');\n      if (currentPhase !== initialPhase || currentStep !== '1') {\n        await this.router.replaceWith(transition.to.name, initialPhase, '1');\n      }\n      return;\n    }\n\n    if (!(await this.isFirstPersonalProject) && phase === 'introduction') {\n      await this.router.replaceWith(transition.to.name, 'setup', '1');\n    }\n\n    if (!transition.to.params.step) {\n      await this.router.replaceWith(transition.to.name, phase, '1');\n    }\n  }\n\n  async model(params: { phase: string; step: number }) {\n    return {\n      phase: params.phase,\n      step: params.step,\n      isFirstPersonalProject: await this.isFirstPersonalProject,\n    };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::Onboarding::Wrapper\\n  @phase={{this.model.phase}}\\n  @step={{this.model.step}}\\n  @isFirstPersonalProject={{this.model.isFirstPersonalProject}}\\n/>\\n', { moduleName: 'client/routes/projects/create/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! Root page of assist: search for a record }}\\n<Feature::BrowserExtension::Pages::Search />\\n\\n{{! Stacked views, in front of the search page: selected record, details views, AI suggestions... }}\\n{{! Only the top view is visible, going back in navigation removes it }}\\n{{! Allow to keep the previous views in the exact same state when going back }}\\n<Feature::BrowserExtension::Views />\\n', { moduleName: 'client/routes/responsive/browser-extension/main/index/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type BrowserExtensionFeatureService from 'client/features/browser-extension/services/feature';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionAuthenticationRoutingService from 'client/features/browser-extension/services/internal-feature/authentication-routing';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionSearchInternalService from 'client/features/browser-extension/services/internal-feature/search';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ResponsiveBrowserExtensionMainRoute extends Route {\n  @service('feature/browser-extension') private feature: BrowserExtensionFeatureService;\n  @service private router: RouterService;\n\n  @service('feature/browser-extension/internal-feature/authentication-routing')\n  private settingsRoutingService: BrowserExtensionAuthenticationRoutingService;\n\n  @service('feature/browser-extension/state')\n  private state: BrowserExtensionFeatureState;\n\n  @service('feature/browser-extension/internal-feature/search')\n  private searchInternalService: BrowserExtensionSearchInternalService;\n\n  async beforeModel(transition: Transition) {\n    if (!this.state.isReadyToUseAssist) {\n      await this.settingsRoutingService.handleTransition(transition);\n    } else if (this.state.isAgentReachable) {\n      // don't wait for the crawling to finish because we want to open the side panel as soon as possible\n      void this.searchInternalService.triggerCrawling();\n    } else {\n      // if we fail to enable, we redirect to the settings page\n      // because they probably need to configure something\n      const enabled = await this.feature.enableAssist();\n      if (!enabled) await this.router.transitionTo('responsive.browser-extension.settings');\n    }\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionAuthenticationRoutingService from 'client/features/browser-extension/services/internal-feature/authentication-routing';\n// eslint-disable-next-line forest-custom/dependency-rules\nimport type BrowserExtensionSessionHandlerInternalService from 'client/features/browser-extension/services/internal-feature/session-handler';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ResponsiveBrowserExtensionHomeRoute extends Route {\n  @service('feature/browser-extension/internal-feature/session-handler')\n  private browserSessionService: BrowserExtensionSessionHandlerInternalService;\n\n  @service('feature/browser-extension/internal-feature/authentication-routing')\n  private readonly settingsRoutingService: BrowserExtensionAuthenticationRoutingService;\n\n  async beforeModel(transition: Transition) {\n    await this.settingsRoutingService.handleTransition(transition);\n  }\n\n  afterModel() {\n    this.browserSessionService.displaySsoLoginSuggestion();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Pages::Onboarding />\\n\\n<Feature::BrowserExtension::Shared::Footer />\\n', { moduleName: 'client/routes/responsive/browser-extension/onboarding/template.hbs' });\n","import type Transition from '@ember/routing/-private/transition';\nimport type RouterService from '@ember/routing/router-service';\nimport type BrowserExtensionFeatureService from 'client/features/browser-extension/services/feature';\n\nimport { action } from '@ember/object';\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ResponsiveBrowserExtensionRoute extends Route {\n  @service('feature/browser-extension')\n  private browserExtensionFeatureService: BrowserExtensionFeatureService;\n\n  @service\n  private router: RouterService;\n\n  async beforeModel(transition: Transition) {\n    await this.browserExtensionFeatureService.enableBrowserExtension();\n\n    if (\n      transition.to.name === 'responsive.browser-extension.index'\n      || transition.to.name === 'responsive.browser-extension'\n    ) {\n      await this.router.transitionTo('responsive.browser-extension.onboarding');\n    }\n  }\n\n  @action\n  async willTransition(transition: Transition) {\n    await this.browserExtensionFeatureService.prohibitTransitionOutsideContext(transition);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Layout::LayoutLoader @type=\\\"loading\\\" />\\n', { moduleName: 'client/routes/responsive/browser-extension/settings-loading/template.hbs' });\n","import type BrowserExtensionFeatureService from 'client/features/browser-extension/services/feature';\nimport type BrowserExtensionFeatureState from 'client/features/browser-extension/state';\n\nimport Route from '@ember/routing/route';\nimport { service } from '@ember/service';\n\nexport default class ResponsiveBrowserExtensionSettingsRoute extends Route {\n  @service('feature/browser-extension') private feature: BrowserExtensionFeatureService;\n  @service('feature/browser-extension/state') private state: BrowserExtensionFeatureState;\n\n  async beforeModel() {\n    // try to enable the browser extension search\n    // if we fail, an error will be displayed to the user\n    if (this.state.isAgentReachable) return;\n    await this.feature.enableAssist();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Feature::BrowserExtension::Pages::Settings />\\n', { moduleName: 'client/routes/responsive/browser-extension/settings/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-responsive-browser-extension\\\">\\n  <div class=\\\"l-responsive-browser-extension__content\\\">\\n    {{outlet}}\\n  </div>\\n</div>\\n', { moduleName: 'client/routes/responsive/browser-extension/template.hbs' });\n","import Route from '@ember/routing/route';\nimport window from 'ember-window-mock';\n\nimport tryParseJson from 'client/utils/try-parse-json';\n\nexport interface ZendeskOauthRedirectModel {\n  status: 'success' | 'error';\n  errorMessage?: string;\n}\n\ninterface ZendeskOAuthState {\n  s: string; // original CSRF state\n  o: string; // opener origin (Zendesk iframe)\n}\n\nexport default class ZendeskOauthRedirectRoute extends Route {\n  model(): ZendeskOauthRedirectModel {\n    const url = new URL(window.location.href);\n    const code = url.searchParams.get('code');\n    const rawState = url.searchParams.get('state');\n    const error = url.searchParams.get('error');\n    const errorDescription = url.searchParams.get('error_description');\n\n    const parsedState = rawState ? tryParseJson<ZendeskOAuthState>(rawState) : null;\n    const openerOrigin = parsedState ? parsedState.o : undefined;\n    const originalState = parsedState ? parsedState.s : rawState;\n\n    const payload = {\n      type: 'forest-oauth-callback',\n      issuedAt: Date.now(),\n      ...(error\n        ? { error: errorDescription || error, state: originalState }\n        : { code, state: originalState }),\n    };\n\n    // Send to opener via postMessage (cross-origin safe when targetOrigin is specified)\n    if (window.opener && openerOrigin) {\n      try {\n        window.opener.postMessage(payload, openerOrigin);\n      } catch {\n        // Cross-origin messaging blocked — user will need to retry\n      }\n    }\n\n    if (error) {\n      return { status: 'error', errorMessage: errorDescription || error };\n    }\n\n    if (code && rawState) {\n      return { status: 'success' };\n    }\n\n    return { status: 'error', errorMessage: 'Missing authorization code or state parameter' };\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::OauthRedirectCard\\n  @status={{@model.status}}\\n  @successMessage=\\\"You have been successfully authenticated with Zendesk. You can return to your previous window.\\\"\\n  @errorMessage={{@model.errorMessage}}\\n/>\\n', { moduleName: 'client/routes/zendesk-oauth-redirect/template.hbs' });\n","import AssetMapService from 'asset-map-resolver/services/asset-map';\n\nexport default AssetMapService;\n","import { getOwner } from '@ember/application';\nimport Base from 'ember-simple-auth/session-stores/base';\nimport window from 'ember-window-mock';\n\n/**\n  Session store that persists data in the browser's `localStorage` (see\n  {{#crossLink \"LocalStorageStore\"}}{{/crossLink}}) if that is available and in\n  also in a cookie (see {{#crossLink \"CookieStore\"}}{{/crossLink}}).\n\n  __This is the default store that Ember Simple Auth will use.__\n\n  __This session store does not work with FastBoot.__\n\n  @class ApplicationSessionStore\n  @extends BaseStore\n  @public\n*/\nexport default class ApplicationSessionStore extends Base {\n  /**\n    The `localStorage` key the store persists data in if `localStorage` is\n    available.\n\n    @property localStorageKey\n    @type String\n    @default 'ember_simple_auth-session'\n    @public\n  */\n  localStorageKey = 'ember_simple_auth-session';\n\n  constructor() {\n    super(...arguments);\n\n    const owner = getOwner(this);\n\n    // NOTICE: Whenever the LocalStorage is available we define it\n    const localStorageOptions = {\n      key: this.localStorageKey,\n    };\n\n    const localStorageStore = owner.lookup('session-store:local-storage');\n    localStorageStore.setProperties(localStorageOptions);\n\n    // NOTICE: It bounce back the sessionDataUpdated event to enable multi tab support\n    localStorageStore.on('sessionDataUpdated', ({ detail: data }) => {\n      this.trigger('sessionDataUpdated', data);\n    });\n\n    this._localStorageStore = localStorageStore;\n\n    // // NOTICE: Always define CookieStorage to fallback in case of https http switch\n    const cookieOptions = {\n      /**\n       * The domain to use for the cookie, e.g.,\n       * \"example.com\", \".example.com\" (which includes all subdomains) or\n       * \"subdomain.example.com\". If not explicitly set, the cookie domain defaults\n       * to the domain the session was authenticated on.\n       */\n      // NOTICE: Let null to handle custom domains\n      cookieDomain: null,\n\n      // NOTICE: The name of the cookie to use\n      cookieName: 'ember_simple_auth-session',\n\n      // NOTICE: The path to use for the cookie\n      cookiePath: '/',\n\n      // NOTICE: 8 days\n      cookieExpirationTime: 8 * 24 * 3_600,\n\n      // NOTICE: Insecure sites (http:) can't set cookies with the Secure directive\n      _secureCookies: () => {\n        return window.location.protocol === 'https:';\n      },\n\n      /**\n       * Allows servers to assert that a cookie ought not to be sent along with cross-site requests,\n       * which provides some protection against cross-site request forgery attacks (CSRF).\n       * Available options:\n       * - \"Strict\"\n       * - \"Lax\"\n       * - null\n       */\n      // NOTICE: Use Strict as it is restricted to a first-party (same-site context)\n      sameSite: 'Strict',\n    };\n\n    const cookieStorage = owner.lookup('session-store:cookie');\n    cookieStorage.setProperties(cookieOptions);\n\n    this._cookieStore = cookieStorage;\n  }\n\n  /**\n    Persists the `data` in the `localStorage` if it is available and in a cookie.\n\n    @method persist\n    @param {Object} data The data to persist\n    @return {Promise} A promise that resolves when the data has successfully been persisted and rejects otherwise.\n    @public\n  */\n  async persist(...args) {\n    try {\n      await this._localStorageStore.persist(...args);\n    } catch (e) {\n      console.debug('persist localstorage failed', e);\n    }\n\n    try {\n      await this._cookieStore.persist(...args);\n    } catch (e) {\n      console.debug('persist cookies failed', e);\n    }\n  }\n\n  /**\n    Returns all data currently stored in the in the cookie and try to use `localStorage` if the cookie is\n    outdate (caused by snoozing/sleeping tab issue).\n\n    WARNING: When we fallback to http (old agent version < v7) we are forced to use Cookies since `localStorage` is specific to the protocol\n    WARNING: This is not the optimal setup... We should use `localStorage` only but we still support edge case with switch between http/https\n\n    @method restore\n    @return {Ember.RSVP.Promise} A promise that resolves with the data currently persisted in the store when the data has been restored successfully and rejects otherwise.\n    @public\n  */\n  async restore() {\n    let cookieRestoreData;\n    try {\n      cookieRestoreData = await this._cookieStore.restore();\n    } catch (e) {\n      console.debug('restore cookies failed', e);\n    }\n\n    let localStorageRestoreData;\n    try {\n      localStorageRestoreData = await this._localStorageStore.restore();\n    } catch (e) {\n      console.debug('restore cookies failed', e);\n    }\n\n    // NOTICE: The localStorage read-only property of the window interface allows you to access a Storage object for the Document's origin\n    // The localStorage data is specific to the protocol of the document (it is not the same between http/https)\n\n    // NOTICE: Check that the LocalStorage is set\n    if (localStorageRestoreData?.authenticated?.exp !== undefined) {\n      return localStorageRestoreData;\n    }\n\n    // NOTICE: The rest of the time (so almost never) it uses the `CookieStore`\n    return cookieRestoreData;\n  }\n\n  /**\n    Clears the store by deleting the\n    {{#crossLink \"LocalStorageStore/key:property\"}}{{/crossLink}} from\n    `localStorage` if it is available and clear cookie.\n\n    @method clear\n    @return {Promise} A promise that resolves when the store has been cleared successfully and rejects otherwise.\n    @public\n  */\n  async clear() {\n    try {\n      await Promise.all([this._localStorageStore.clear(), this._cookieStore.clear()]);\n    } catch (e) {\n      console.debug('failed to clear session storage', e);\n    }\n  }\n}\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type ActivatableButtonColor =\n  | 'blue'\n  | 'orange'\n  | 'yellow'\n  | 'red'\n  | 'primary'\n  | 'purple'\n  | 'green';\n\ninterface ActivatableButtonArgs {\n  onClick: () => void;\n  text?: string;\n  isActive?: boolean;\n  color: ActivatableButtonColor;\n  hasError?: boolean;\n}\n\n@validateArguments\nexport default class ActivatableButtonComponent extends Component<ActivatableButtonArgs> {\n  static readonly propTypes = {\n    onClick: PropTypes.func.isRequired,\n    text: PropTypes.string,\n    isActive: PropTypes.bool,\n    color: PropTypes.oneOf(['blue', 'orange', 'yellow', 'red', 'primary', 'purple', 'green'])\n      .isRequired,\n    hasError: PropTypes.bool,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/ActivatableButton',\n  component: 'Shared::ActivatableButton',\n  args: {\n    ...getDefaultRequiredArgs('Shared::ActivatableButton'),\n    text: 'Button',\n  },\n};\n\nexport const ActivatableButton = storyCreator('Shared::ActivatableButton');\n\nexport const AllTypes = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: 100px repeat(4, 1fr); gap: 16px;\">\n      {{#each (array 'blue' 'orange' 'yellow' 'red' 'primary' 'purple' 'green') as |color|}}\n          <p style=\"color: var(--text-1)\">Color: {{color}}</p>\n          <Shared::ActivatableButton\n            @color={{color}}\n            @onClick={{fn (do-nothing-function)}}\n            @text=\"I am inactive\"\n            @isActive={{false}}\n          />\n          <Shared::ActivatableButton\n            @color={{color}}\n            @onClick={{fn (do-nothing-function)}}\n            @text=\"I am active\"\n            @isActive={{true}}\n          />\n          <Shared::ActivatableButton\n            @color={{color}}\n            @onClick={{fn (do-nothing-function)}}\n            @text=\"I am inactive\"\n            @isActive={{false}}\n            disabled={{true}}\n          />\n          <Shared::ActivatableButton\n            @color={{color}}\n            @onClick={{fn (do-nothing-function)}}\n            @text=\"I am active\"\n            @isActive={{true}}\n            disabled={{true}}\n          />\n    {{/each}}\n  </div>\n  `,\n});\n\nexport const ErrorState = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: 100px repeat(3, 1fr); gap: 16px;\">\n      <p style=\"color: var(--text-1)\">Normal</p>\n      <Shared::ActivatableButton\n        @color=\"primary\"\n        @onClick={{fn (do-nothing-function)}}\n        @text=\"Valid option\"\n        @hasError={{false}}\n      />\n      <Shared::ActivatableButton\n        @color=\"blue\"\n        @onClick={{fn (do-nothing-function)}}\n        @text=\"Valid option\"\n        @hasError={{false}}\n      />\n      <Shared::ActivatableButton\n        @color=\"green\"\n        @onClick={{fn (do-nothing-function)}}\n        @text=\"Valid option\"\n        @hasError={{false}}\n      />\n      <p style=\"color: var(--text-1)\">Error</p>\n      <Shared::ActivatableButton\n        @color=\"primary\"\n        @onClick={{fn (do-nothing-function)}}\n        @text=\"Choose an option name\"\n        @hasError={{true}}\n      />\n      <Shared::ActivatableButton\n        @color=\"blue\"\n        @onClick={{fn (do-nothing-function)}}\n        @text=\"Choose an option name\"\n        @hasError={{true}}\n      />\n      <Shared::ActivatableButton\n        @color=\"green\"\n        @onClick={{fn (do-nothing-function)}}\n        @text=\"Choose an option name\"\n        @hasError={{true}}\n      />\n    </div>\n  `,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Button\\n  @type={{concat \\'ghost-\\' @color}}\\n  @onClick={{@onClick}}\\n  @text={{@text}}\\n  @size=\\\"small\\\"\\n  @isActive={{@isActive}}\\n  @iconSize=\\\"small\\\"\\n  @iconName={{if @hasError \\'error_outline\\'}}\\n  class={{get-classes-with-modifiers \\'c-shared-activatable-button\\' error=@hasError}}\\n  data-has-error={{if @hasError \\'true\\'}}\\n  data-test-shared-activatable-button\\n  ...attributes\\n/>\\n', { moduleName: 'client/shared/components/activatable-button/template.hbs' });\n","import type ModalFeatureService from 'client/features/modal/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport interface AllowJsToggleArgs {\n  allowJavascript: boolean;\n  onAllowJavascriptChange: (value: boolean) => void;\n  target: 'field' | 'chart' | 'view';\n}\n\n@validateArguments\nexport default class AllowJsToggleComponent extends Component<AllowJsToggleArgs> {\n  static propTypes = {\n    allowJavascript: PropTypes.bool.isRequired,\n    onAllowJavascriptChange: PropTypes.func.isRequired,\n    target: PropTypes.oneOf(['field', 'chart', 'view']).isRequired,\n  };\n\n  @service('feature/modal')\n  private modalService: ModalFeatureService;\n\n  @action\n  private openModal() {\n    this.modalService.open('shared/allow-js-toggle/modal', {\n      onClose: () => {\n        this.cancel();\n      },\n      data: {\n        target: this.args.target,\n        onConfirm: () => {\n          this.closeModal();\n        },\n        onCancel: () => {\n          this.cancel();\n        },\n      },\n    });\n  }\n\n  @action\n  public closeModal() {\n    this.modalService.close();\n  }\n\n  @action\n  public didSwitch(value: boolean) {\n    this.args.onAllowJavascriptChange(value);\n\n    if (value) {\n      this.openModal();\n    }\n  }\n\n  @action\n  public cancel() {\n    this.args.onAllowJavascriptChange(false);\n    this.closeModal();\n  }\n}\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/AllowJsToggle/Modal',\n  component: 'Shared::AllowJsToggle::Modal',\n  args: {\n    ...getDefaultRequiredArgs('Shared::AllowJsToggle::Modal'),\n  },\n};\n\nexport const Modal = storyCreator('Shared::AllowJsToggle::Modal');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  class=\\\"c-shared-allow-js-toggle-modal\\\"\\n  @size=\\\"sm\\\"\\n  data-test-shared-allow-js-toggle-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header\\n    @title=\\\"Allow to execute JavaScript\\\"\\n    @noSeparator={{true}}\\n    data-test-shared-allow-js-toggle-modal-header\\n  />\\n  <Shared::Modal::Body>\\n    <div>\\n      <p class=\\\"c-shared-allow-js-toggle-modal__content\\\">\\n        By activating this option, you will\\n        <strong>\\n          deactivate security measures\\n        </strong>\\n        ensuring that malicious code cannot be executed on the user\\'s behalf (XSS).\\n      </p>\\n\\n      <p\\n        class=\\\"c-shared-allow-js-toggle-modal__content\\\"\\n        data-test-shared-allow-js-toggle-modal-content={{@data.target}}\\n      >\\n        It is imperative that this option is only activated on\\n        {{pluralize @data.target}}\\n        presenting content that your agent previously secured, by escaping all unwanted HTML special\\n        characters.\\n      </p>\\n    </div>\\n  </Shared::Modal::Body>\\n\\n  <Shared::Modal::ActionFooter\\n    @confirmType=\\\"danger\\\"\\n    @confirmText=\\\"I understand the risks\\\"\\n    @cancelText=\\\"Cancel\\\"\\n    @onConfirm={{@data.onConfirm}}\\n    @onCancel={{@data.onCancel}}\\n    data-test-shared-allow-js-toggle-modal-footer\\n  />\\n</Shared::Modal>\\n', { moduleName: 'client/shared/components/allow-js-toggle/modal/template.hbs' });\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/AllowJsToggle',\n  component: 'Shared::AllowJsToggle',\n  args: {\n    ...getDefaultRequiredArgs('Shared::AllowJsToggle'),\n  },\n};\n\nexport const AllowJsToggle = storyCreator('Shared::AllowJsToggle');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-shared-allow-js-toggle\\\" data-test-shared-allow-js-toggle ...attributes>\\n  <div class=\\\"c-shared-allow-js-toggle__form\\\">\\n    <Shared::BetaLabel\\n      @label=\\\"Allow to execute JavaScript\\\"\\n      @description=\\\"The content of this {{@target}} will not be sanitized, all HTML and JavaScript content will be interpreted.\\\"\\n      @textClass=\\\"c-shared-allow-js-toggle__label\\\"\\n    />\\n    <Shared::Form::Toggle\\n      @value={{@allowJavascript}}\\n      @onChange={{this.didSwitch}}\\n      data-test-switch-for=\\\"allow-javascript\\\"\\n    />\\n  </div>\\n\\n  <Shared::Feedback::Notification::NotificationInApp\\n    @state=\\\"warning\\\"\\n    class=\\\"c-shared-allow-js-toggle__notification\\\"\\n  >\\n    Activating this option requires that you\\n    <strong>\\n      correctly secure\\n    </strong>\\n    the content of this\\n    {{@target}}\\n    against Cross-Site-Scripting attacks (XSS).\\n  </Shared::Feedback::Notification::NotificationInApp>\\n</div>\\n\\n', { moduleName: 'client/shared/components/allow-js-toggle/template.hbs' });\n","import type PopupPositionerSharedBusinessService from 'client/shared/services/popup-positioner';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\nimport type { EmojiClickEvent } from 'emoji-picker-element/shared';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { Picker } from 'emoji-picker-element';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype BetaEmojiPickerComponentArgs = {\n  onChange?: (value: string, event: Event) => void;\n  value?: string | null;\n  placeholder?: string;\n  popoverFullWidth?: boolean;\n  popoverAlign?: 'left' | 'right';\n  withClearButton?: boolean;\n};\n\n@validateArguments\nexport default class BetaEmojiPickerComponent extends Component<BetaEmojiPickerComponentArgs> {\n  static propTypes = {\n    onChange: PropTypes.func,\n    value: PropTypes.string,\n    placeholder: PropTypes.string,\n    popoverFullWidth: PropTypes.bool,\n    popoverAlign: PropTypes.oneOf(['left', 'right']),\n    withClearButton: PropTypes.bool,\n  };\n\n  @service('shared/state/user-preference') private userPreferenceState: UserPreferenceState;\n  @service('shared/popup-positioner') private popupPositioner: PopupPositionerSharedBusinessService;\n\n  emojiPicker: Picker | null = null;\n  componentRef: HTMLElement | null = null;\n  portalTarget: HTMLElement | null = null;\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.removeEmojiPicker();\n  }\n\n  @action\n  handleDidInsert(element: HTMLElement) {\n    this.componentRef = element;\n    this.portalTarget = document.getElementById('portal-for-emoji-picker');\n  }\n\n  @action\n  handleClickOutside() {\n    this.removeEmojiPicker();\n  }\n\n  @action\n  handleFocus() {\n    this.initializeEmojiPicker();\n  }\n\n  @action\n  handleChange(event: EmojiClickEvent | null, clickEvent?: MouseEvent) {\n    this.removeEmojiPicker();\n    return this.args.onChange(event && event.detail.unicode, event || clickEvent);\n  }\n\n  private initializeEmojiPicker() {\n    if (!this.componentRef || this.emojiPicker || !this.portalTarget) {\n      return;\n    }\n\n    this.emojiPicker = new Picker();\n\n    this.emojiPicker.classList.add(\n      ...['c-beta-emoji-picker__picker', this.userPreferenceState.theme],\n    );\n    this.emojiPicker.setAttribute('data-test-beta-emoji-picker-picker', '');\n\n    this.portalTarget.appendChild(this.emojiPicker);\n\n    this.emojiPicker.addEventListener('emoji-click', this.handleChange);\n\n    this.popupPositioner.positionPopupBelowElement(this, this.emojiPicker, this.componentRef, {\n      topVariable: '--emoji-picker-top',\n      leftVariable: '--emoji-picker-left',\n      visibilityVariable: '--emoji-picker-visibility',\n      widthVariable: '--emoji-picker-width',\n      align: this.args.popoverAlign ?? 'left',\n      shouldMatchTargetWidth: this.args.popoverFullWidth ?? true,\n    });\n  }\n\n  private removeEmojiPicker() {\n    if (this.emojiPicker) {\n      this.portalTarget.removeChild(this.emojiPicker);\n      this.emojiPicker.removeEventListener('emoji-click', this.handleChange);\n      this.emojiPicker = null;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-beta-emoji-picker\\\"\\n  data-test-beta-emoji-picker\\n  {{forest-on-click-outside this.handleClickOutside exceptSelector=\\'.c-beta-emoji-picker__picker\\'}}\\n  {{did-insert this.handleDidInsert}}\\n  ...attributes\\n>\\n  <Shared::BetaInput\\n    @value={{@value}}\\n    @placeholder={{or @placeholder \\'Emoji\\'}}\\n    @onFocus={{this.handleFocus}}\\n    @readOnly={{true}}\\n    @iconName={{if @withClearButton \\'close\\'}}\\n    @onClickIcon={{fn this.handleChange null}}\\n    class=\\\"c-beta-emoji-picker__input\\\"\\n    data-test-beta-emoji-picker-input\\n  />\\n</div>\\n', { moduleName: 'client/shared/components/beta-emoji-picker/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<button\\n  type=\\\"button\\\"\\n  class=\\\"c-beta-icon-button c-beta-icon-button--{{or @color \\'secondary-medium\\'}}\\n    c-beta-icon-button--{{or @size \\'large\\'}}\\\"\\n  data-test-beta-icon-button\\n  ...attributes\\n>\\n  <Shared::DataDisplay::BetaIcon @iconName={{@icon}} @size=\\\"custom\\\" />\\n</button>\\n', { moduleName: 'client/shared/components/beta-icon-button/template.hbs' });\n","import { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport { REGEX_COLOR, REGEX_COLOR_WITH_ALPHA } from 'client/utils/color-utils';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype BetaInputColorComponentArgs = {\n  onChange?: (value: string, event: Event) => void;\n  value?: string | null;\n  defaultValue?: string;\n  isDisabled?: boolean;\n  isOpacityDisabled?: boolean;\n  colors?: string[];\n  inputId?: string;\n  placeholder?: string;\n};\n\n@validateArguments\nexport default class BetaInputColorComponent extends Component<BetaInputColorComponentArgs> {\n  static propTypes = {\n    onChange: PropTypes.func,\n    value: PropTypes.string,\n    defaultValue: PropTypes.string,\n    isDisabled: PropTypes.bool,\n    isOpacityDisabled: PropTypes.bool,\n    colors: PropTypes.arrayOf(PropTypes.string),\n    inputId: PropTypes.string,\n    placeholder: PropTypes.string,\n  };\n\n  get regexColor() {\n    return this.args.isOpacityDisabled ? REGEX_COLOR : REGEX_COLOR_WITH_ALPHA;\n  }\n\n  get colorPickerId() {\n    return this.args.inputId || `${guidFor(this)}-color-picker`;\n  }\n\n  get actualValue() {\n    if (this.isColorValid(this.args.value)) {\n      return this.args.value;\n    }\n\n    return this.actualDefaultValue;\n  }\n\n  get actualDefaultValue() {\n    if (this.isColorValid(this.args.defaultValue)) {\n      return this.args.defaultValue;\n    }\n\n    return null;\n  }\n\n  private isColorValid(color: string) {\n    return color && this.regexColor.test(color);\n  }\n\n  @action\n  showColorPicker() {\n    const element = document.getElementById(this.colorPickerId);\n    element.click();\n  }\n\n  @action\n  clearValue(event: Event) {\n    event.preventDefault();\n    event.stopPropagation();\n\n    const newValue = this.args.defaultValue ? this.actualDefaultValue : null;\n\n    if (this.args.onChange) {\n      this.args.onChange(newValue, event);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-input-color\\\" ...attributes data-test-beta-input-color>\\n\\n  <Shared::BetaInput\\n    @buttonPosition=\\\"left\\\"\\n    @disabled={{@isDisabled}}\\n    @readOnly={{true}}\\n    @value={{this.actualValue}}\\n    @placeholder={{@placeholder}}\\n    @iconName={{if (and @value (not @isDisabled)) \\'close\\'}}\\n    @onClickIcon={{this.clearValue}}\\n    class=\\\"c-beta-input-color__input\\\"\\n    data-test-beta-input-color-input\\n    {{on \\'click\\' this.showColorPicker}}\\n  >\\n    <:input-prefix>\\n      <Shared::ColorPicker\\n        @color={{this.actualValue}}\\n        @isDisabled={{@isDisabled}}\\n        @onChange={{@onChange}}\\n        @isOpacityDisabled={{@isOpacityDisabled}}\\n        @colors={{@colors}}\\n        @withInput={{true}}\\n        class=\\\"c-beta-input-color__picker\\\"\\n        id={{this.colorPickerId}}\\n        data-test-beta-input-color-picker\\n      />\\n    </:input-prefix>\\n  </Shared::BetaInput>\\n\\n</div>\\n', { moduleName: 'client/shared/components/beta-input-color/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { classNames } from '@ember-decorators/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-beta-input-date-calendar-container')\nexport default class BetaInputDateCalendarComponent extends Component {\n  propTypes = {\n    isDateOnly: PropTypes.bool.isRequired,\n    value: PropTypes.date,\n    minute: PropTypes.number,\n    hour: PropTypes.number,\n    second: PropTypes.number,\n    hideCalendar: PropTypes.func.isRequired,\n    deleteDate: PropTypes.func.isRequired,\n    updateHour: PropTypes.func,\n    updateMinute: PropTypes.func,\n    updateSecond: PropTypes.func,\n  };\n\n  isDateOnly = false;\n  displayFooter = false;\n\n  @action\n  hideCalendarAction(event) {\n    event.stopPropagation();\n    this.hideCalendar();\n  }\n\n  click(event) {\n    event.stopPropagation();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  {{on \\'click\\' this.hideCalendarAction}}\\n  class=\\\"l-beta-input-date-calendar-overlay\\\"\\n  role=\\\"button\\\"\\n>\\n</div>\\n{{! template-lint-disable no-pointer-down-event-binding no-invalid-interactive }}\\n<div\\n  class=\\\"c-beta-input-date-calendar\\\"\\n  {{on \\'mousedown\\' (stop-propagation)}}\\n  data-test-beta-input-date-calendar\\n>\\n  <div class=\\\"c-caret\\\"></div>\\n  <div class=\\\"c-beta-input-date-calendar__timestamp\\\">\\n    <div class=\\\"c-beta-input-date-calendar__calendar\\\"></div>\\n    <div class=\\\"c-beta-input-date-calendar__footer\\\">\\n      {{#unless @isDateOnly}}\\n        <div class=\\\"c-beta-input-date-calendar__time-wrapper\\\">\\n          <span class=\\\"c-beta-input-date-calendar__time\\\">\\n            Time\\n          </span>\\n          <Shared::BetaInput\\n            @value={{@hour}}\\n            @onChange={{@updateHour}}\\n            @type=\\\"number\\\"\\n            @min={{or @minHour 0}}\\n            @max={{or @maxHour 23}}\\n            @placeholder=\\\"HH\\\"\\n            class=\\\"c-beta-input-date-calendar__input c-beta-input-date-calendar__input--first\\\"\\n            {{on \\'keydown\\' (stop-propagation)}}\\n            data-test-beta-input-date-calendar-hours\\n          />\\n          <Shared::BetaInput\\n            @value={{@minute}}\\n            @onChange={{@updateMinute}}\\n            @type=\\\"number\\\"\\n            @min={{or @minMinute 0}}\\n            @max={{or @maxMinute 59}}\\n            @placeholder=\\\"mm\\\"\\n            class=\\\"c-beta-input-date-calendar__input c-beta-input-date-calendar__input--middle\\\"\\n            {{on \\'keydown\\' (stop-propagation)}}\\n            data-test-beta-input-date-calendar-minutes\\n          />\\n          <Shared::BetaInput\\n            @value={{@second}}\\n            @onChange={{@updateSecond}}\\n            @type=\\\"number\\\"\\n            @min={{or @minSecond 0}}\\n            @max={{or @maxSecond 59}}\\n            @placeholder=\\\"ss\\\"\\n            class=\\\"c-beta-input-date-calendar__input c-beta-input-date-calendar__input--last\\\"\\n            {{on \\'keydown\\' (stop-propagation)}}\\n            data-test-beta-input-date-calendar-seconds\\n          />\\n        </div>\\n      {{/unless}}\\n      <div class=\\\"c-beta-input-date-calendar__buttons\\\">\\n        <Shared::Button\\n          @type=\\\"ghost\\\"\\n          @text=\\\"Now\\\"\\n          @onClick={{@setToNow}}\\n          class=\\\"c-beta-input-date-calendar__now\\\"\\n          data-test-beta-input-date-calendar-now\\n          disabled={{not @canSetToNow}}\\n        />\\n        <Shared::Button\\n          @type=\\\"ghost\\\"\\n          @text=\\\"Clear\\\"\\n          @onClick={{@deleteDate}}\\n          class=\\\"c-beta-input-date-calendar__clear\\\"\\n          data-test-beta-input-date-calendar-clear\\n        />\\n      </div>\\n    </div>\\n  </div>\\n</div>\\n', { moduleName: 'client/shared/components/beta-input-date/calendar/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { next } from '@ember/runloop';\nimport { isNone } from '@ember/utils';\nimport { classNames } from '@ember-decorators/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\nimport { padStart } from 'lodash';\nimport moment from 'moment';\nimport Pikaday from 'pikaday';\n\nimport { argument, oneOfType, optional } from 'client/decorators/argument';\nimport {\n  DEFAULT_DATEONLY_FORMAT,\n  DEFAULT_DATE_FORMAT,\n} from 'client/utils/dates-default-format-variables';\nimport { getContainerOfPositionAbsoluteElement } from 'client/utils/dom-utils';\n\nconst MIN_YEAR = 1800;\nconst MAX_YEAR = 2200;\n\n/**\n * @param {Date | Moment | string} date\n * @returns {Date}\n */\nexport function transformDateIntoBrowsersTimezone(date) {\n  const momentValue = moment(date);\n\n  return new Date(momentValue.year(), momentValue.month(), momentValue.date());\n}\n\n/**\n * @param {Date | Moment | string} date\n * @returns {Date}\n */\nexport function transformDateIntoUsersTimezone(date, hours, minutes, seconds, milliseconds = 0) {\n  return moment([\n    date.getFullYear(),\n    date.getMonth(),\n    date.getDate(),\n    hours,\n    minutes,\n    seconds,\n    milliseconds,\n  ]).toDate();\n}\n\nfunction parseOptionalDate(value) {\n  if (value === null || value === undefined) {\n    return null;\n  }\n\n  // We trick pickaday to make it think we are in the browser's timezone, otherwise it\n  // does not work properly.\n  return transformDateIntoBrowsersTimezone(value);\n}\n\n@classNames('c-beta-input-date')\n// eslint-disable-next-line ember/require-tagless-components\nexport default class BetaInputDateComponent extends Component {\n  @argument(optional(oneOfType([Date, String])))\n  value;\n\n  @argument(optional(Boolean))\n  isDateOnly;\n\n  @argument(optional(Boolean))\n  disabled;\n\n  @argument(optional(String))\n  format;\n\n  @argument(optional(oneOfType([Date, String])))\n  rangeStart;\n\n  @argument(optional(oneOfType([Date, String])))\n  rangeEnd;\n\n  @argument(optional(oneOfType([Date, String])))\n  maxDate;\n\n  @argument(optional(oneOfType([Date, String])))\n  minDate;\n\n  @argument(optional(Function))\n  onErrorChange;\n\n  @tracked hour;\n  @tracked minute;\n  @tracked second;\n  @tracked _displayedText = null;\n  @tracked _isEditing = false;\n  @tracked _errorMessage = null;\n\n  @computed('elementId', 'inputId')\n  get inputContainerId() {\n    return `${this.elementId}__input`;\n  }\n\n  @computed('minDate')\n  get parsedMinDate() {\n    return parseOptionalDate(this.minDate);\n  }\n\n  @computed('maxDate')\n  get parsedMaxDate() {\n    return parseOptionalDate(this.maxDate);\n  }\n\n  @computed('rangeStart')\n  get parsedRangeStart() {\n    return parseOptionalDate(this.rangeStart);\n  }\n\n  @computed('rangeEnd')\n  get parsedRangeEnd() {\n    return parseOptionalDate(this.rangeEnd);\n  }\n\n  @computed('value')\n  get parsedValue() {\n    return parseOptionalDate(this.value);\n  }\n\n  @computed('hour')\n  get parsedHour() {\n    return Number.isNaN(this.hour) ? 0 : Number(this.hour);\n  }\n\n  @computed('minute')\n  get parsedMinute() {\n    return Number.isNaN(this.minute) ? 0 : Number(this.minute);\n  }\n\n  @computed('second')\n  get parsedSecond() {\n    return Number.isNaN(this.second) ? 0 : Number(this.second);\n  }\n\n  @computed('minDate', 'value')\n  get minHour() {\n    const minDateMoment = moment(this.minDate);\n    return this.minDate && moment(this.value)?.isSame(minDateMoment, 'day')\n      ? minDateMoment.hours()\n      : null;\n  }\n\n  @computed('minDate', 'minHour', 'value')\n  get minMinute() {\n    const minDateMoment = moment(this.minDate);\n    return !isNone(this.minHour) && moment(this.value)?.isSame(minDateMoment, 'hour')\n      ? minDateMoment.minutes()\n      : null;\n  }\n\n  @computed('minDate', 'minMinute', 'value')\n  get minSecond() {\n    const minDateMoment = moment(this.minDate);\n    return !isNone(this.minMinute) && moment(this.value)?.isSame(minDateMoment, 'minute')\n      ? minDateMoment.seconds()\n      : null;\n  }\n\n  @computed('maxDate', 'value')\n  get maxHour() {\n    const maxDateMoment = moment(this.maxDate);\n    return this.maxDate && moment(this.value)?.isSame(maxDateMoment, 'day')\n      ? maxDateMoment.hours()\n      : null;\n  }\n\n  @computed('maxDate', 'maxHour', 'value')\n  get maxMinute() {\n    const maxDateMoment = moment(this.maxDate);\n    return !isNone(this.maxHour) && moment(this.value)?.isSame(maxDateMoment, 'hour')\n      ? maxDateMoment.minutes()\n      : null;\n  }\n\n  @computed('maxDate', 'maxMinute', 'value')\n  get maxSecond() {\n    const maxDateMoment = moment(this.maxDate);\n    return !isNone(this.maxMinute) && moment(this.value)?.isSame(maxDateMoment, 'minute')\n      ? maxDateMoment.seconds()\n      : null;\n  }\n\n  get canSetToNow() {\n    return this.isDateWithinValidRange(new Date());\n  }\n\n  get effectiveFormat() {\n    return this.format || (this.isDateOnly ? DEFAULT_DATEONLY_FORMAT : DEFAULT_DATE_FORMAT);\n  }\n\n  @computed('value', '_displayedText', 'effectiveFormat')\n  get displayedText() {\n    if (this._displayedText !== null) {\n      return this._displayedText;\n    }\n    if (!this.value) return '';\n    return moment(this.value).format(this.effectiveFormat);\n  }\n\n  @action\n  handleInputFocus() {\n    this._isEditing = true;\n    this._errorMessage = null;\n    if (this._displayedText === null) {\n      this._displayedText = this.value ? moment(this.value).format(this.effectiveFormat) : '';\n    }\n  }\n\n  @action\n  handleInputChange(newValue) {\n    this._displayedText = newValue;\n    this._validateLive(newValue);\n  }\n\n  _clearError() {\n    this._displayedText = null;\n    this._errorMessage = null;\n    this.onErrorChange?.(null);\n  }\n\n  _validateLive(text) {\n    if (!text || text.trim() === '') {\n      this.onErrorChange?.(null);\n      return;\n    }\n\n    const parsed = this._parseInput(text);\n    const error = this._getValidationError(parsed);\n    this.onErrorChange?.(error || null);\n  }\n\n  @action\n  handleInputBlur() {\n    this._isEditing = false;\n    const text = this._displayedText;\n\n    if (!text || text.trim() === '') {\n      this._clearError();\n      this.changeValue(null);\n      this.syncPikaday(null);\n      return;\n    }\n\n    const parsed = this._parseInput(text);\n    const error = this._getValidationError(parsed);\n\n    if (error) {\n      this._errorMessage = error;\n      this.onErrorChange?.(error);\n      return;\n    }\n\n    this._clearError();\n\n    const dateValue = this.isDateOnly\n      ? parsed.toDate()\n      : transformDateIntoUsersTimezone(\n          parsed.toDate(),\n          parsed.hours(),\n          parsed.minutes(),\n          parsed.seconds(),\n        );\n    this.changeValue(this.castValue(dateValue));\n    this.syncPikaday(dateValue);\n  }\n\n  _parseInput(text) {\n    let parsed = moment(text, this.effectiveFormat, true);\n    if (parsed.isValid()) return parsed;\n\n    // Normalize dash separator to the locale/format expected separator\n    let normalizedText = text;\n    if (text.includes('-')) {\n      const expandedFormat = this.effectiveFormat.replace(\n        /LTS?|L{1,4}/g,\n        (token) => moment.localeData().longDateFormat(token) || token,\n      );\n      const localeSep = expandedFormat.replace(/[a-zA-Z\\s:]/g, '')[0];\n      if (localeSep && localeSep !== '-') {\n        normalizedText = text.replace(/-/g, localeSep);\n        parsed = moment(normalizedText, this.effectiveFormat, true);\n        if (parsed.isValid()) return parsed;\n      }\n    }\n\n    // Try ISO format (handles both dateOnly and dateTime with dash input)\n    parsed = moment(text, 'YYYY-MM-DD', true);\n    if (parsed.isValid()) return parsed;\n\n    // For dateTime fields, also accept locale date-only input (time defaults to 00:00:00)\n    if (!this.isDateOnly) {\n      parsed = moment(text, DEFAULT_DATEONLY_FORMAT, true);\n      if (parsed.isValid()) return parsed;\n\n      return moment(normalizedText, DEFAULT_DATEONLY_FORMAT, true);\n    }\n\n    return parsed;\n  }\n\n  _getValidationError(parsed) {\n    if (!parsed.isValid()) return 'Invalid date';\n\n    const date = parsed.toDate();\n    const year = date.getFullYear();\n    if (year < MIN_YEAR || year > MAX_YEAR) return 'Invalid date';\n    if (this.minDate && moment(this.minDate).isAfter(date)) return 'Minimum date reached';\n    if (this.maxDate && moment(this.maxDate).isBefore(date)) return 'Maximum date reached';\n\n    return null;\n  }\n\n  syncPikaday(dateValue) {\n    if (this.picker) {\n      this.picker.setDate(dateValue ? transformDateIntoBrowsersTimezone(dateValue) : null, true);\n      this.picker.draw(true);\n    }\n  }\n\n  @action\n  setToNow() {\n    if (this.canSetToNow) this.changeValue(new Date());\n  }\n\n  isDateWithinValidRange(date) {\n    const year = date.getFullYear();\n    if (year < MIN_YEAR || year > MAX_YEAR) return false;\n    if (this.maxDate && moment(this.maxDate).isBefore(date)) return false;\n    // eslint-disable-next-line sonarjs/prefer-single-boolean-return\n    if (this.minDate && moment(this.minDate).isAfter(date)) return false;\n    return true;\n  }\n\n  @action\n  deleteDate() {\n    this.changeValue(null);\n    this.destroyCalendar();\n  }\n\n  @action\n  toggleCalendar(event) {\n    event.preventDefault();\n    event.stopPropagation();\n    if (this.disabled) {\n      return;\n    }\n\n    if (this.isDisplayingCalendar) {\n      this.destroyCalendar();\n    } else {\n      this.displayCalendar();\n    }\n  }\n\n  @action\n  hideCalendar() {\n    this.destroyCalendar();\n  }\n\n  @action\n  updateHour() {\n    this.cleanTime('hour', this.hour);\n    this.updateValueWithNewTime();\n  }\n\n  @action\n  updateMinute() {\n    this.cleanTime('minute', this.minute);\n    this.updateValueWithNewTime();\n  }\n\n  @action\n  updateSecond() {\n    this.cleanTime('second', this.second);\n    this.updateValueWithNewTime();\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    this.initTime(this.value);\n    this.initValue(this.castValue(this.value));\n  }\n\n  willDestroy() {\n    super.willDestroy(...arguments);\n    this.onErrorChange?.(null);\n  }\n\n  getCalendarField() {\n    return document.getElementById(this.inputContainerId);\n  }\n\n  cleanTime(metric, value) {\n    const valueInteger = parseInt(value, 10);\n    if (Number.isNaN(valueInteger)) {\n      this.set(metric, '00');\n    } else {\n      this.set(metric, padStart(valueInteger, 2, '0'));\n    }\n  }\n\n  updateValueWithNewTime() {\n    if (this.castValue(this.value) instanceof Date) {\n      const momentDate = moment(this.value);\n      momentDate.set('hours', this.hour);\n      momentDate.set('minutes', this.minute);\n      momentDate.set('seconds', this.second);\n      this.changeValue(momentDate.toDate());\n    }\n  }\n\n  insertCalendar(calendarField, calendarContainer) {\n    const self = this;\n\n    const defaultDate =\n      this.parsedValue\n      || this.parsedRangeStart\n      || this.parsedRangeEnd\n      || (moment(this.minDate).isAfter(moment()) ? moment(this.minDate).toDate() : null)\n      || (moment(this.maxDate).isBefore(moment()) ? moment(this.maxDate).toDate() : null)\n      || new Date();\n\n    // Pickaday is buggy regarding the default displayed date\n    // It does not seem to use moment to retrieve the displayed month\n    const defaultDateTranslatedInTimezone = transformDateIntoBrowsersTimezone(defaultDate);\n\n    this.picker = new Pikaday({\n      container: calendarContainer,\n      field: calendarField,\n      bound: false,\n      format: this.format,\n      defaultDate: defaultDateTranslatedInTimezone,\n      yearRange: [MIN_YEAR, MAX_YEAR],\n      endRange: this.parsedRangeEnd,\n      startRange: this.parsedRangeStart,\n      maxDate: this.parsedMaxDate,\n      minDate: this.parsedMinDate,\n      onSelect() {\n        if (self.isDestroying || self.isDestroyed) return;\n\n        self.changeValue(\n          self.castValue(\n            transformDateIntoUsersTimezone(\n              this._d,\n              self.parsedHour,\n              self.parsedMinute,\n              self.parsedSecond,\n            ),\n          ),\n        );\n\n        self.updateConstraints();\n      },\n    });\n\n    this.picker.setDate(this.parsedValue);\n  }\n\n  displayCalendar() {\n    this.set('isDisplayingCalendar', true);\n  }\n\n  destroyCalendar() {\n    next(() => {\n      if (this.isDestroyed || this.isDestroying) {\n        return;\n      }\n\n      this.picker?.destroy();\n      this.picker = null;\n    });\n\n    this.set('isDisplayingCalendar', false);\n  }\n\n  @action\n  handleCalendarInserted(popoverComponent) {\n    if (this.isDestroyed || this.isDestroying) {\n      return;\n    }\n\n    const calendarField = this.getCalendarField();\n    const calendarContainer = popoverComponent.getElementsByClassName(\n      'c-beta-input-date-calendar__calendar',\n    )[0];\n    this.insertCalendar(calendarField, calendarContainer);\n\n    const popoverAnchor = this.element.getElementsByClassName('calendar-container')[0];\n    const inputDateCalendar = popoverComponent.getElementsByClassName(\n      'c-beta-input-date-calendar',\n    )[0];\n    inputDateCalendar.style.display = 'block';\n    const picker = popoverComponent.getElementsByClassName('c-beta-input-date-calendar')[0];\n    const pickerContainer = getContainerOfPositionAbsoluteElement(picker);\n\n    const caret = popoverComponent.getElementsByClassName('c-caret')[0];\n    const windowHeight = window.innerHeight;\n\n    const popoverAnchorBounding = popoverAnchor.getBoundingClientRect();\n    const scrollViewport = popoverAnchor.ownerDocument.defaultView;\n    const anchorPosition = {\n      top:\n        popoverAnchorBounding.top\n        + scrollViewport.scrollY\n        - pickerContainer.getBoundingClientRect().top,\n      left:\n        popoverAnchorBounding.left\n        + scrollViewport.scrollX\n        - pickerContainer.getBoundingClientRect().left,\n    };\n\n    let offsetX;\n    let top;\n\n    // NOTICE: If there is enough room below the field, set the popup below it, else above.\n    if (anchorPosition.top + picker.offsetHeight < windowHeight) {\n      offsetX = 8;\n      top = anchorPosition.top + 8;\n      caret.classList.add('c-caret--up', 'c-caret--top-right');\n    } else if (anchorPosition.top - picker.offsetHeight - calendarField.offsetHeight > 0) {\n      offsetX = 4;\n      top = anchorPosition.top - picker.offsetHeight - calendarField.offsetHeight - 8;\n      caret.classList.add('c-caret--down', 'c-caret--down-right');\n    } else {\n      // NOTICE: Not enough space to display on below or above the field.\n      offsetX = -35;\n      top = (windowHeight - picker.offsetHeight) / 2;\n      caret.classList.add('c-caret--hidden');\n    }\n    let left = anchorPosition.left + popoverAnchor.offsetWidth - picker.offsetWidth + offsetX;\n    if (left < 0) {\n      // in this case, we don't want the modal to be cropped on the left\n      caret.classList.remove('c-caret--top-right');\n      left = 0;\n    }\n    Object.assign(picker.style, {\n      top: `${top}px`,\n      left: `${left}px`,\n      visibility: 'visible',\n    });\n\n    popoverComponent.getElementsByClassName('c-beta-input-date-calendar')[0].style.opacity = '1';\n  }\n\n  @action\n  didUpdateComponent() {\n    this.initTime(this.castValue(this.value));\n    this.updateConstraints();\n\n    if (!this._isEditing && (this._errorMessage || this._displayedText !== null)) {\n      this._clearError();\n    }\n\n    this.picker?.setDate(this.parsedValue, true);\n  }\n\n  @action\n  updateConstraints() {\n    if (this.picker) {\n      this.picker.setMaxDate(this.parsedMaxDate);\n      this.picker.setMinDate(this.parsedMinDate);\n      this.picker.setStartRange(this.parsedRangeStart);\n      this.picker.setEndRange(this.parsedRangeEnd);\n      this.picker.draw(true);\n    }\n  }\n\n  changeValue(newValue) {\n    this._clearError();\n\n    const stringCurrentValue = this.value instanceof Date ? this.value.toISOString() : this.value;\n    const stringNewValue = newValue instanceof Date ? newValue.toISOString() : newValue;\n\n    if (stringCurrentValue !== stringNewValue) {\n      this.initValue(newValue);\n      this.onChange?.(newValue);\n    }\n  }\n\n  initValue(newValue) {\n    if (newValue?.toString() !== this.value?.toString()) {\n      // We check that the initial date was null/undefined\n      // and the selected date is the current date\n      const initAtCurrentTime = moment(0, 'HH').diff(moment(newValue), 'days') === 0 && !this.value;\n      this.set('value', newValue);\n\n      this.initTime(newValue, initAtCurrentTime);\n    }\n  }\n\n  initTime(value, atCurrentTime) {\n    if (!value) {\n      this.hour = '00';\n      this.minute = '00';\n      this.second = '00';\n\n      return;\n    }\n    if (atCurrentTime) {\n      const current = moment();\n      this.cleanTime('hour', current.hour());\n      this.cleanTime('minute', current.minute());\n      this.cleanTime('second', current.second());\n      this.updateValueWithNewTime();\n\n      return;\n    }\n\n    const parsedDate = moment(value);\n\n    const correctedHours = Math.min(\n      Math.max(!isNone(this.minHour) ? this.minHour : 0, parsedDate.hour()),\n      !isNone(this.maxHour) ? this.maxHour : 23,\n    );\n    this.hour = padStart(correctedHours, 2, '0');\n    if (parsedDate.hour() !== correctedHours) this.updateHour();\n\n    const correctedMinutes = Math.min(\n      Math.max(!isNone(this.minMinute) ? this.minMinute : 0, parsedDate.minute()),\n      !isNone(this.maxMinute) ? this.maxMinute : 59,\n    );\n    this.minute = padStart(correctedMinutes, 2, '0');\n    if (parsedDate.minute() !== correctedMinutes) this.updateMinute();\n\n    const correctedSeconds = Math.min(\n      Math.max(!isNone(this.minSecond) ? this.minSecond : 0, parsedDate.second()),\n      !isNone(this.maxSecond) ? this.maxSecond : 59,\n    );\n    this.second = padStart(correctedSeconds, 2, '0');\n    if (parsedDate.second() !== correctedSeconds) this.updateSecond();\n  }\n\n  castValue(value) {\n    if (!value) return value;\n\n    if (this.isDateOnly) {\n      if (value instanceof Date) {\n        const momentDate = moment(value);\n\n        const newYear = momentDate.year();\n        const newMonth = padStart(momentDate.month() + 1, 2, '0');\n        const newDay = padStart(momentDate.date(), 2, '0');\n\n        return `${newYear}-${newMonth}-${newDay}`;\n      }\n\n      return value;\n    }\n\n    if (value instanceof Date) return value;\n\n    return moment(value).toDate();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-input-date__input-wrapper\\\">\\n  <Shared::BetaInput\\n    @id={{this.inputContainerId}}\\n    @inputId={{@inputId}}\\n    @type=\\\"text\\\"\\n    @value={{readonly this.displayedText}}\\n    @onChange={{this.handleInputChange}}\\n    @onFocus={{this.handleInputFocus}}\\n    @onBlur={{this.handleInputBlur}}\\n    @disabled={{@disabled}}\\n    @placeholder={{@placeholder}}\\n    @inputClass=\\\"c-beta-input-date__input\\\"\\n    @state={{if this._errorMessage \\'error\\'}}\\n    {{did-update this.didUpdateComponent @rangeStart @rangeEnd @minDate @maxDate @value}}\\n    data-test-beta-input-date\\n  />\\n\\n  {{#unless @disabled}}\\n    <i\\n      {{on \\'click\\' this.toggleCalendar}}\\n      class=\\\"material-icons c-beta-input-date__icon\\\"\\n      role=\\\"button\\\"\\n      data-test-beta-input-date-icon\\n    >\\n      {{if this.isDisplayingCalendar \\'close\\' \\'date_range\\'}}\\n    </i>\\n  {{/unless}}\\n</div>\\n\\n{{#if this._errorMessage}}\\n  <span class=\\\"c-beta-input-date__error\\\" data-test-beta-input-date-error>\\n    {{this._errorMessage}}\\n  </span>\\n{{/if}}\\n\\n{{#if this.isDisplayingCalendar}}\\n  <div class=\\\"calendar-container\\\">\\n    <Shared::PortalContent @for=\\\"widget-modal\\\">\\n      <Shared::BetaInputDate::Calendar\\n        @isDateOnly={{@isDateOnly}}\\n        @value={{@value}}\\n        @minute={{this.minute}}\\n        @hour={{this.hour}}\\n        @second={{this.second}}\\n        @minHour={{this.minHour}}\\n        @minMinute={{this.minMinute}}\\n        @minSecond={{this.minSecond}}\\n        @maxHour={{this.maxHour}}\\n        @maxMinute={{this.maxMinute}}\\n        @maxSecond={{this.maxSecond}}\\n        @updateHour={{this.updateHour}}\\n        @updateMinute={{this.updateMinute}}\\n        @updateSecond={{this.updateSecond}}\\n        @hideCalendar={{this.hideCalendar}}\\n        @deleteDate={{this.deleteDate}}\\n        @setToNow={{this.setToNow}}\\n        @canSetToNow={{this.canSetToNow}}\\n        {{did-insert this.handleCalendarInserted}}\\n      />\\n    </Shared::PortalContent>\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/shared/components/beta-input-date/template.hbs' });\n","import { isArray } from '@ember/array';\nimport Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { not } from '@ember/object/computed';\nimport { isEmpty } from '@ember/utils';\nimport { classNames } from '@ember-decorators/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-beta-input-list')\nexport default class BetaInputListComponent extends Component {\n  propTypes = {\n    values: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),\n    type: PropTypes.oneOf(['text', 'number']),\n    disabled: PropTypes.bool,\n    onAddValue: PropTypes.func.isRequired,\n    onRemoveValue: PropTypes.func.isRequired,\n    onReorderValue: PropTypes.func,\n    reorderable: PropTypes.bool,\n    allowDuplicate: PropTypes.bool,\n    allowEmptyValue: PropTypes.bool,\n    placeholder: PropTypes.string,\n    min: PropTypes.number,\n    max: PropTypes.number,\n    step: PropTypes.number,\n  };\n\n  type = 'text';\n  reorderable = false;\n  allowDuplicate = true;\n  allowEmptyValue = false;\n  inputValue = null;\n  @not('allowDuplicate') doNotAllowDuplicate;\n\n  @computed('values', 'values.[]')\n  get valuesMapped() {\n    if (!this.values || !isArray(this.values)) {\n      return null;\n    }\n\n    return this.values.map((value) => ({ name: value, value }));\n  }\n\n  @computed('inputValue')\n  get value() {\n    return isEmpty(this.inputValue) ? null : this.inputValue;\n  }\n\n  @computed('disabled', 'value', 'doNotAllowDuplicate', 'allowEmptyValue', 'values.[]')\n  get isAddValueDisabled() {\n    if (this.disabled) return true;\n\n    // In some strange cases, values can be something else than an array\n    if (this.doNotAllowDuplicate && isArray(this.values) && this.values?.includes(this.value))\n      return true;\n\n    return Boolean(!this.allowEmptyValue && this.value === null);\n  }\n\n  @action\n  addValue() {\n    if (this.isAddValueDisabled) return;\n\n    const { value } = this;\n    this.set('inputValue', null);\n\n    this.onAddValue(value);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-beta-input-list-input-container\\\" data-test-beta-input-list>\\n  <Shared::BetaInput\\n    @value={{this.inputValue}}\\n    @type={{@type}}\\n    @class=\\\"c-beta-input-list__input\\\"\\n    @placeholder={{@placeholder}}\\n    @onEnter={{this.addValue}}\\n    @disabled={{@disabled}}\\n    @inputId={{@inputId}}\\n    @min={{@min}}\\n    @max={{@max}}\\n    @step={{@step}}\\n    data-test-beta-input-list-input\\n  >\\n    <:input-suffix>\\n      <Shared::Button::BetaButton\\n        @type=\\\"primary\\\"\\n        @iconName=\\\"add\\\"\\n        @async={{false}}\\n        @withInput={{true}}\\n        @action={{this.addValue}}\\n        @disabled={{this.isAddValueDisabled}}\\n        {{! If not specified, typing \\\"enter\\\" in the field will trigger the action (twice) }}\\n        {{! Behavior cannot be reproduced in tests (at least for now) }}\\n        @buttonType=\\\"button\\\"\\n        data-test-beta-input-list-add-button\\n      />\\n    </:input-suffix>\\n  </Shared::BetaInput>\\n</div>\\n\\n{{#if @values}}\\n  <Shared::DataDisplay::BetaList\\n    @class=\\\"c-beta-input-list__list\\\"\\n    @values={{this.valuesMapped}}\\n    @onRemove={{@onRemoveValue}}\\n    @onReorder={{@onReorderValue}}\\n    @readOnly={{@disabled}}\\n    @reorderable={{@reorderable}}\\n    data-test-beta-input-list-list\\n  />\\n{{/if}}\\n', { moduleName: 'client/shared/components/beta-input-list/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class BetaInputLockedComponent extends Component {\n  static propTypes = {\n    onValidate: PropTypes.func.isRequired,\n    value: PropTypes.string,\n    placeholder: PropTypes.string,\n    class: PropTypes.string,\n  };\n\n  @tracked isEditMode = false;\n  @tracked editionValue;\n\n  constructor(...args) {\n    super(...args);\n\n    this.initialize();\n  }\n\n  @action\n  initialize() {\n    // NOTICE: DO NOT CHANGE REAL VALUE !!! editionValue is sent to onValidate function\n    this.editionValue = this.args.value;\n  }\n\n  @action\n  cancel() {\n    this.isEditMode = false;\n    this.editionValue = this.args.value;\n  }\n\n  @action\n  validate() {\n    this.isEditMode = false;\n    this.args.onValidate(this.editionValue);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-input-locked\\\" {{did-update this.initialize @value}} ...attributes>\\n  {{#if this.isEditMode}}\\n    <div class=\\\"c-beta-input-locked__input-section\\\">\\n      <div class=\\\"c-beta-input-locked__input\\\">\\n        <Shared::BetaInput\\n          @placeholder={{@placeholder}}\\n          @value={{this.editionValue}}\\n          @inputClass={{@class}}\\n        />\\n      </div>\\n\\n      <Shared::Button::BetaButton\\n        @type=\\\"link-secondary-light\\\"\\n        @underline={{false}}\\n        @text=\\\"Cancel\\\"\\n        @action={{this.cancel}}\\n        @size=\\\"small\\\"\\n        class=\\\"c-beta-input-locked__button\\\"\\n        data-test-edit-mode-button-cancel\\n      />\\n      <Shared::Button::BetaButton\\n        @type=\\\"success-outline\\\"\\n        @underline={{false}}\\n        @text=\\\"Validate\\\"\\n        @action={{this.validate}}\\n        @size=\\\"small\\\"\\n        class=\\\"c-beta-input-locked__button\\\"\\n        data-test-edit-mode-button-validate\\n      />\\n    </div>\\n\\n    {{yield to=\\'input-edition\\'}}\\n  {{else}}\\n    <div class=\\\"c-beta-input-locked__input-section\\\">\\n      <div class=\\\"c-beta-input-locked__input\\\">\\n        <Shared::BetaInput @disabled={{true}} @value={{@value}} @inputClass={{@class}} />\\n      </div>\\n\\n      <Shared::Button::BetaButton\\n        @type=\\\"link-secondary-light\\\"\\n        @underline={{false}}\\n        @iconName=\\\"edit\\\"\\n        @action={{fn (mut this.isEditMode) true}}\\n        @noPadding={{true}}\\n        @size=\\\"small\\\"\\n        class=\\\"c-beta-input-locked__edit-mode-switch\\\"\\n        data-test-edit-mode-switch\\n      />\\n    </div>\\n\\n    {{yield to=\\'input-reading\\'}}\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/shared/components/beta-input-locked/template.hbs' });\n","/* eslint-disable sonarjs/no-hardcoded-passwords */\nimport { action, computed } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport { PASSWORD_REGEX } from 'client/utils/regex';\n\nconst FORMAT_BAD = /^.{8,}$/;\nconst FORMAT_LIGHT = /^(?=\\S*?[A-z])(?=\\S*?[0-9])\\S{8,}$/;\nconst FORMAT_GOOD = PASSWORD_REGEX;\nconst FORMAT_PERFECT = /^(?=\\S*?[A-Z])(?=\\S*?[a-z])(?=\\S*?[0-9])(?=\\S*?[^\\w*])\\S{8,}$/;\n\nconst PASSWORD_STRENGTHS = [\n  {\n    format: FORMAT_BAD,\n    strength: 25,\n    tip: 'Enter numbers and letters.',\n  },\n  {\n    format: FORMAT_LIGHT,\n    strength: 50,\n    tip: 'Use upper case and lower case letters.',\n  },\n  {\n    format: FORMAT_GOOD,\n    strength: 75,\n    tip: 'A special character would be perfect.',\n  },\n  {\n    format: FORMAT_PERFECT,\n    strength: 100,\n    tip: 'Perfect!',\n  },\n];\n\nexport default class BetaInputPasswordStrengthComponent extends Component {\n  @argument(optional(String)) value;\n  @argument(optional(String)) class;\n\n  passwordStrengths = PASSWORD_STRENGTHS;\n\n  @tracked iconVisibility = 'visibility';\n  @tracked passwordType = 'password';\n\n  @computed('args.value')\n  get strengthLevel() {\n    let index = 0;\n    for (; this.args.value && index < PASSWORD_STRENGTHS.length; index += 1) {\n      if (!PASSWORD_STRENGTHS[index].format.test(this.args.value)) {\n        break;\n      }\n    }\n    return index - 1;\n  }\n\n  @computed('strengthLevel')\n  get strength() {\n    return this.strengthLevel > -1 ? PASSWORD_STRENGTHS[this.strengthLevel].strength : 0;\n  }\n\n  @computed('args.value.length', 'strengthLevel')\n  get tip() {\n    if (this.strengthLevel === -1) {\n      return this.args.value?.length ? 'Enter 8 characters minimum.' : '';\n    }\n    return PASSWORD_STRENGTHS[this.strengthLevel].tip;\n  }\n\n  @computed('strength')\n  get strengthStatus() {\n    if (this.strength >= 75) {\n      return 'good';\n    }\n    if (this.strength >= 50) {\n      return 'warning';\n    }\n    return 'danger';\n  }\n\n  @action\n  toggleVisibility() {\n    if (this.passwordType === 'password') {\n      this.passwordType = 'text';\n      this.iconVisibility = 'visibility_off';\n    } else {\n      this.passwordType = 'password';\n      this.iconVisibility = 'visibility';\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-beta-input-password-strength\\\" ...attributes>\\n  <Shared::BetaInput\\n    @value={{@value}}\\n    @type={{this.passwordType}}\\n    @placeholder=\\\"••••••••••\\\"\\n    @autocomplete=\\\"password\\\"\\n    @iconName={{this.iconVisibility}}\\n    @onClickIcon={{this.toggleVisibility}}\\n    @iconClass=\\\"c-beta-input-password-strength-toogle-visibility\\\"\\n  />\\n\\n  {{#unless (or @hideStrength (not @value))}}\\n    <div class=\\\"c-beta-input-password-strength-indicator\\\">\\n      {{#each this.passwordStrengths as |passwordStrength|}}\\n        <div\\n          class=\\\"c-beta-input-password-strength-indicator__bar c-beta-input-password-strength-indicator__bar--{{this.strengthStatus}}\\n            {{if\\n              (gte this.strength passwordStrength.strength)\\n              \\'c-beta-input-password-strength-indicator__bar--filled\\'\\n            }}\\\"\\n        >\\n        </div>\\n      {{/each}}\\n    </div>\\n\\n    <span\\n      class=\\\"c-beta-input-password-strength-tip c-beta-input-password-strength-tip--{{this.strengthStatus}}\\\"\\n    >\\n      {{this.tip}}\\n    </span>\\n  {{/unless}}\\n</div>\\n', { moduleName: 'client/shared/components/beta-input-password-strength/template.hbs' });\n","/* eslint-disable @typescript-eslint/no-unsafe-call */\nimport type { Iti } from 'intl-tel-input';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport intlTelInput from 'intl-tel-input';\n\nimport validateArguments from 'client/decorators/validate';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type Args = {\n  phoneNumber: string;\n  countryCode: string;\n  onChange: (value: unknown) => void;\n};\n\n@validateArguments\nexport default class BetaInputPhoneComponent extends Component<Args> {\n  static propTypes = {\n    countryCode: PropTypes.string.isRequired,\n    onChange: PropTypes.func.isRequired,\n  };\n\n  private iti: Iti;\n\n  get input() {\n    return document.querySelector('#phone');\n  }\n\n  @action\n  async initialize(): Promise<void> {\n    await waitForNextRunLoop();\n\n    this.iti = intlTelInput(this.input as HTMLInputElement, {\n      initialCountry: this.args.countryCode,\n      strictMode: true,\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-ignore\n      loadUtils: () => import('intl-tel-input/utils'),\n    });\n    // eslint-disable-next-line @typescript-eslint/no-misused-promises\n    this.input.addEventListener('countrychange', async () => {\n      await waitForNextRunLoop();\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-ignore\n      this.iti._closeDropdown();\n      this.args.onChange(this.iti.getNumber());\n    });\n\n    this.input.addEventListener('input', (event) => {\n      if (event?.type === 'input') {\n        this.args.onChange(this.iti.getNumber());\n      }\n    });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-insert this.initialize}}\\n\\n<input\\n  id=\\\"phone\\\"\\n  type=\\\"tel\\\"\\n  class=\\\"c-beta-input c-beta-input--with-focus l-beta-input--md\\\"\\n  data-test-input-phone\\n/>\\n', { moduleName: 'client/shared/components/beta-input-phone/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { readOnly } from '@ember/object/computed';\nimport { isNone } from '@ember/utils';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\nimport window from 'ember-window-mock';\n\nimport { argument, oneOf, optional } from 'client/decorators/argument';\nimport AbstractBetaInput from 'client/legacy/abstract-components/abstract-beta-input';\nimport CssClassHelper from 'client/utils/css-class-helper';\n\n@classNames('l-beta-input')\n@classNameBindings('sizeClass')\nexport default class BetaInputComponent extends AbstractBetaInput {\n  @argument(optional(oneOf('basic', 'code', 'editor'))) kind = 'basic';\n  @argument(optional(Boolean)) copyable;\n  @argument(optional(String)) type;\n  @argument(optional(Number)) min;\n  @argument(optional(Number)) max;\n  @argument(optional(Number)) step;\n  @argument(optional(Function)) onPaste = () => {};\n  @argument(optional(Function)) onChange = () => {};\n  @argument(optional(Function)) onKeyUp = () => {};\n  @argument(optional(Function)) onKeyDown = () => {};\n  @argument(optional(Function)) onSubmit = () => {};\n  @argument(optional(Function)) onFocus = () => {};\n  @argument(optional(Function)) onFocusOut = () => {};\n  @argument(optional(Function)) onBlur = () => {};\n  @argument(optional(Function)) onEmpty = () => {};\n  @argument(optional(Function)) onWheel = () => {};\n  @argument(optional(String)) iconName;\n  @argument(optional(String)) iconClass;\n  @argument(optional(String)) inputClass;\n  @argument(optional(Boolean)) noNumberHelper;\n  @argument(optional(Boolean)) withoutFocus;\n  @argument(optional(String)) inputId;\n  @argument(optional(String)) pattern;\n  /**\n   * Pattern support depends on browser, and is usually not triggered before form submit.\n   * This forces to check that the pattern matches during user input and reject if not.\n   */\n  @argument(optional(Boolean)) shouldEnforcePatternDuringInput;\n  // This allows a number input having a min/max value to be cleared.\n  @argument(optional(Boolean)) canBeCleared;\n\n  lastInputValue = '';\n\n  @readOnly('min') minValue;\n  @readOnly('max') maxValue;\n\n  @computed(\n    'copyable',\n    'iconName',\n    'kind',\n    'leftIconName',\n    'noNumberHelper',\n    'size',\n    'state',\n    'withoutFocus',\n  )\n  get allClasses() {\n    return new CssClassHelper('c-beta-input')\n      .addModifier(this.kind)\n      .addModifier(this.state, !!this.state)\n      .addModifier('with-left-icon', !!this.leftIconName)\n      .addModifier('with-right-icon', !!this.iconName)\n      .addModifier('copyable', !!this.copyable)\n      .addModifier('no-number-helper', !!this.noNumberHelper)\n      .addModifier('with-focus', !this.withoutFocus)\n      .generateClasses();\n  }\n\n  get sizeClass() {\n    return `l-beta-input--${this.size || 'md'}`;\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    if (this.type === 'numberWithLeadingZero') {\n      this.set('type', 'tel');\n      this.set('numberOnly', true);\n      if (!this.pattern) {\n        this.set('pattern', '[0-9]*');\n      }\n    }\n  }\n\n  @computed('type', 'value', 'lastInputValue')\n  get displayedValue() {\n    // This prevents to remove automatically some numbers while typing, for instance when removing\n    // the \"2\" of \"10.02\", it should not display \"10\" but \"10.0\".\n    return this.type === 'number' && Number.parseFloat(this.lastInputValue) === this.value\n      ? this.lastInputValue\n      : this.value;\n  }\n\n  @action\n  handleValueUpdate() {\n    this.oldValue = this.value;\n  }\n\n  @action\n  handleInput(event) {\n    if (this.shouldEnforcePatternDuringInput && this.pattern) {\n      if (\n        !isNone(event.target.value)\n        && !event.target.value.toString().match(new RegExp(this.pattern))\n      ) {\n        event.target.value = this.oldValue;\n        return;\n      }\n    }\n\n    if (this.type === 'number') {\n      const parsedValue = this.getInputValueForNumber(event);\n      if (typeof parsedValue !== 'bigint' && isNaN(parsedValue)) return;\n\n      this.set('value', parsedValue);\n    } else {\n      this.set('value', event.target.value);\n    }\n\n    this.onInput?.(event, this.value, this.oldValue);\n    if (this.value !== this.oldValue) {\n      this.onChange?.(this.value, this.oldValue, event);\n    }\n\n    if (this.value === '' || this.value === null) {\n      this.onEmpty?.();\n    }\n\n    this.oldValue = this.value;\n  }\n\n  @action\n  handleChange(event) {\n    if (this.type !== 'number') {\n      super.handleChange(event);\n      return;\n    }\n    const parsedValue = this.getInputValueForNumber(event);\n    if (typeof parsedValue !== 'bigint' && isNaN(parsedValue)) return;\n\n    this.oldValue = this.value;\n    if (parsedValue !== this.oldValue) {\n      this.onChange?.(parsedValue, this.oldValue, event);\n    }\n  }\n\n  @action\n  didInsertElement(...args) {\n    if (this.type === 'number') {\n      this.set('lastInputValue', this.value);\n      this.set('value', this.computeNumberValue(this.value));\n    }\n\n    super.didInsertElement(...args);\n\n    this.testMe = (event) => {\n      if (event.target === this.element) {\n        event.stopPropagation();\n        event.preventDefault();\n        this.element.getElementsByTagName('input')[0].click();\n      }\n    };\n    this.element.addEventListener('click', this.testMe);\n  }\n\n  willDestroyElement() {\n    this.element.removeEventListener('click', this.testMe);\n\n    super.willDestroyElement();\n  }\n\n  @action\n  copy() {\n    const [input] = this.element.getElementsByTagName('input');\n    input.select();\n\n    try {\n      const successful = window.document.execCommand('copy');\n      this.set('copied', successful);\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      this.set('copied', false);\n    }\n  }\n\n  @action\n  handleWheel(event) {\n    // avoid scroll when using the mouse wheel on the input number\n    if (this.type === 'number') {\n      event.stopPropagation();\n    }\n\n    this.onWheel?.(event);\n  }\n\n  getFocusableElement() {\n    return this.element.getElementsByTagName('input')[0];\n  }\n\n  getInputValueForNumber(event) {\n    const { value } = event.target;\n\n    // While typing a decimal value (for instance \"10.\"), the event target value is strangely\n    // equal to an empty string. So for this use case, we don't use this value and simply return.\n    if (value === '' && event.data === '.') return NaN;\n\n    this.set('lastInputValue', value);\n\n    let parsedValue = this.computeNumberValue(value);\n    if (\n      (this.max || this.max === 0)\n      && parsedValue > this.max\n      && (!this.canBeCleared || !isNone(parsedValue))\n    ) {\n      parsedValue = this.max;\n    } else if (\n      (!this.canBeCleared || !isNone(parsedValue))\n      && (this.min || this.min === 0)\n      && parsedValue < this.min\n    ) {\n      parsedValue = this.min;\n    }\n\n    return parsedValue;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/BetaInput',\n  component: 'Shared::BetaInput',\n  argTypes: {\n    autofocus: {\n      type: 'boolean',\n      description: 'Automatically focuses the input.',\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: false },\n      },\n    },\n    copyable: {\n      type: 'boolean',\n      description: 'Adds a copy button inside the input to the right.',\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: false },\n      },\n    },\n    iconName: {\n      type: 'string',\n      description: \"The input's [material icon](https://fonts.google.com/icons) name.\",\n      table: {\n        category: 'Properties',\n      },\n    },\n    kind: {\n      type: 'string',\n      description: \"The input's type.\",\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: 'basic' },\n      },\n      options: ['basic', 'code', 'editor'],\n      control: { type: 'radio' },\n    },\n    value: {\n      type: 'string',\n      description: \"The input's value.\",\n      table: {\n        category: 'Properties',\n      },\n    },\n    noNumberHelper: {\n      type: 'boolean',\n      description:\n        'Hides the control arrows displayed by webkit browsers inside the input to the right.',\n      table: {\n        category: 'Properties',\n      },\n    },\n    state: {\n      type: 'string',\n      description: \"The input's state.\",\n      options: ['loading', 'empty', 'success', 'warning', 'error', 'info'],\n      control: { type: 'select' },\n      table: {\n        category: 'Properties',\n      },\n    },\n    autocomplete: {\n      type: 'string',\n      description: \"The `input` tag's `autocomplete` attribute.\",\n      table: {\n        category: 'HTML attributes',\n      },\n    },\n    disabled: {\n      type: 'boolean',\n      description: \"The `input` tag's `disabled` attribute.\",\n      table: {\n        category: 'HTML attributes',\n      },\n    },\n    inputId: {\n      type: 'string',\n      description: \"The `input` tag's `id` attribute.\",\n      table: {\n        category: 'HTML attributes',\n      },\n    },\n    max: {\n      type: 'number',\n      description: \"The `input` tag's `max` attribute.\",\n      table: {\n        category: 'HTML attributes',\n      },\n    },\n    maxLength: {\n      type: 'number',\n      description: \"The `input` tag's `maxlength` attribute.\",\n      table: {\n        category: 'HTML attributes',\n      },\n    },\n    min: {\n      type: 'number',\n      description: \"The `input` tag's `min` attribute.\",\n      table: {\n        category: 'HTML attributes',\n      },\n    },\n    pattern: {\n      type: 'string',\n      description: \"The `input` tag's `pattern` attribute.\",\n      table: {\n        category: 'HTML attributes',\n      },\n    },\n    placeholder: {\n      type: 'string',\n      description: \"The `input` tag's `placeholder` attribute.\",\n      table: {\n        category: 'HTML attributes',\n      },\n    },\n    readOnly: {\n      type: 'boolean',\n      description: \"The `input` tag's `readonly` attribute.\",\n      table: {\n        category: 'HTML attributes',\n      },\n    },\n    type: {\n      type: 'string',\n      description: \"The `input` tag's `type` attribute.\",\n      table: {\n        category: 'HTML attributes',\n      },\n    },\n    iconClass: {\n      type: 'string',\n      description: \"Added to the `i` tag containing the icon's `class` attribute.\",\n      table: {\n        category: 'HTML classes',\n      },\n    },\n    inputClass: {\n      type: 'string',\n      description: \"Added to the `input` tag's `class` attribute.\",\n      table: {\n        category: 'HTML classes',\n      },\n    },\n    onChange: {\n      type: 'function',\n      description: \"Called on the input's `change` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onClick: {\n      type: 'function',\n      description: \"Called on the input's `click` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onClickIcon: {\n      type: 'function',\n      description: \"Called on the icon's `click` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onEnter: {\n      type: 'function',\n      description: \"Called on the input's `keyup` event with the enter key.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onFocus: {\n      type: 'function',\n      description: \"Called on the input's `focus` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onInput: {\n      type: 'function',\n      description: \"Called on the input's `input` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onKeyPress: {\n      type: 'function',\n      description: \"Called on the input's `keypress` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onKeyUp: {\n      type: 'function',\n      description: \"Called on the input's `keyup` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onPaste: {\n      type: 'function',\n      description: \"Called on the input's `paste` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onSubmit: {\n      type: 'function',\n      description: \"Called on the input's `submit` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n  },\n  args: {\n    value: 'Forest Admin',\n  },\n};\n\nexport const Base = storyCreator('Shared::BetaInput');\n\nexport const AllTypes = () => ({\n  template: hbs`\n    <div style=\"display: flex; flex-direction: row; gap: 16px;\">\n      <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n        <Shared::BetaInput @placeholder=\"Small placeholder\" @size=\"sm\" /><br />\n        <Shared::BetaInput @placeholder=\"Medium placeholder\" @size=\"md\" /><br />\n        <Shared::BetaInput @placeholder=\"Large placeholder\" @size=\"lg\" /><br />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n        <Shared::BetaInput @value='Small' @placeholder=\"placeholder\" @size=\"sm\" /><br />\n        <Shared::BetaInput @value='Medium' @placeholder=\"placeholder\" @size=\"md\" /><br />\n        <Shared::BetaInput @value='Large' @placeholder=\"placeholder\" @size=\"lg\" /><br />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n        <Shared::BetaInput @value='Small' @state=\"error\" @size=\"sm\" /><br />\n        <Shared::BetaInput @value='Medium' @state=\"error\" @size=\"md\" /><br />\n        <Shared::BetaInput @value='Large' @state=\"error\" @size=\"lg\" /><br />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n        <Shared::BetaInput @value='Small' @state=\"warning\" @size=\"sm\" /><br />\n        <Shared::BetaInput @value='Medium' @state=\"warning\" @size=\"md\" /><br />\n        <Shared::BetaInput @value='Large' @state=\"warning\" @size=\"lg\" /><br />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n        <Shared::BetaInput @value='Small' @state=\"success\" @size=\"sm\" /><br />\n        <Shared::BetaInput @value='Medium' @state=\"success\" @size=\"md\" /><br />\n        <Shared::BetaInput @value='Large' @state=\"success\" @size=\"lg\" /><br />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n        <Shared::BetaInput @value='Small' @disabled={{true}} @size=\"sm\" /><br />\n        <Shared::BetaInput @value='Medium' @disabled={{true}} @size=\"md\" /><br />\n        <Shared::BetaInput @value='Large' @disabled={{true}} @size=\"lg\" /><br />\n      </div>\n    </div>\n  `,\n});\n\nexport const Kinds = () => ({\n  template: hbs`<Shared::BetaInput @value='Basic' /><br />\n<Shared::BetaInput @value='Code' @kind='code' /><br />\n<Shared::BetaInput @value='Editor' @kind='editor' />\n`,\n});\n\nexport const States = () => ({\n  template: hbs`<Shared::BetaInput @value='Default' /><br />\n<Shared::BetaInput @value='Success' @state='success' /><br />\n<Shared::BetaInput @value='Warning' @state='warning' /><br />\n<Shared::BetaInput @value='Error' @state='error' /><br />\n<Shared::BetaInput @value='Loading' @state='loading' />\n`,\n});\n\nexport const Disabled = () => ({\n  template: hbs`<Shared::BetaInput @value='Disabled' @disabled={{true}} />\n`,\n});\n\nexport const WithIcon = () => ({\n  template: hbs`<Shared::BetaInput @value='With icon' @iconName='park' />\n`,\n});\n\nexport const WithButton = () => ({\n  template: hbs`<Shared::BetaInput @value='With button'>\n  <:input-suffix>\n    <Shared::Button::BetaButton @text='Submit' @type='primary' @withInput={{true}} />\n  </:input-suffix>\n</Shared::BetaInput>\n`,\n});\n\nexport const WithCopy = () => ({\n  template: hbs`<Shared::BetaInput @value='With copy' @copyable={{true}} />\n`,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @leftIconName}}\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName={{@leftIconName}}\\n    @size=\\\"custom\\\"\\n    class=\\\"c-beta-input__icon c-beta-input__icon--left\\\"\\n    role=\\\"button\\\"\\n    {{on \\'click\\' (optional @onLeftIconClick) bubbles=false}}\\n    data-test-beta-input-left-icon\\n  />\\n{{else if (has-block \\'input-prefix\\')}}\\n  <span\\n    class={{get-classes-with-modifiers\\n      \\'c-beta-input__input-prefix\\'\\n      with-left-padding=@hasPrefixPadding\\n    }}\\n    data-test-beta-input-prefix\\n  >\\n    {{yield to=\\'input-prefix\\'}}\\n  </span>\\n{{/if}}\\n\\n<input\\n  id={{@inputId}}\\n  class=\\\"{{this.allClasses}} {{@inputClass}}\\\"\\n  value={{this.displayedValue}}\\n  placeholder={{@placeholder}}\\n  type={{@type}}\\n  autocomplete={{@autocomplete}}\\n  disabled={{@disabled}}\\n  maxLength={{@maxLength}}\\n  onPaste={{@onPaste}}\\n  readonly={{@readOnly}}\\n  min={{this.minValue}}\\n  max={{this.maxValue}}\\n  step={{this.step}}\\n  pattern={{@pattern}}\\n  lang={{if (eq @type \\'number\\') \\'fr-FR\\'}}\\n  {{on \\'input\\' this.handleInput}}\\n  {{on \\'click\\' this.handleClick}}\\n  {{on \\'submit\\' (optional @onSubmit)}}\\n  {{on \\'focus\\' (optional @onFocus)}}\\n  {{on \\'focusout\\' this.onFocusOut}}\\n  {{on \\'blur\\' (optional @onBlur)}}\\n  {{on \\'change\\' this.handleChange}}\\n  {{on \\'keyup\\' this.handleKeyUp}}\\n  {{on \\'wheel\\' this.handleWheel}}\\n  {{! template-lint-disable no-pointer-down-event-binding }}\\n  {{on \\'keydown\\' (optional @onKeyDown)}}\\n  {{did-update this.handleValueUpdate @value}}\\n  data-test-for-beta-input\\n  data-test-beta-input\\n/>\\n\\n{{#if (or @copyable @copyableWithIcon)}}\\n  <Form::Copy\\n    @style={{if @copyableWithIcon \\'icon\\' \\'default\\'}}\\n    @value={{this.value}}\\n    @insideInput={{true}}\\n    @disableAbsolutePosition={{true}}\\n    class=\\\"c-beta-input__copy\\\"\\n  />\\n{{else if (eq @state \\'loading\\')}}\\n  <Shared::Feedback::BetaLoader class=\\\"c-beta-input__loader\\\" />\\n{{else if @iconName}}\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName={{@iconName}}\\n    @size=\\\"custom\\\"\\n    id={{@iconId}}\\n    class=\\\"{{get-classes-with-modifiers\\n        \\'c-beta-input__icon\\'\\n        clickable=(or @onClickIcon false)\\n        filled=(or @filledIcon false)\\n      }}\\n      {{@iconClass}}\\\"\\n    role=\\\"button\\\"\\n    data-test-beta-input-right-icon\\n    {{on \\'click\\' (optional @onClickIcon) bubbles=false}}\\n  />\\n{{else if (eq @state \\'success\\')}}\\n  <i class=\\\"material-icons c-beta-input__icon c-beta-input__icon--success\\\">\\n    check_circle\\n  </i>\\n{{else if (eq @state \\'error\\')}}\\n  <i\\n    class=\\\"material-icons c-beta-input__icon c-beta-input__icon--error\\\"\\n    data-test-beta-input-error-state\\n  >\\n    error\\n  </i>\\n{{else if (eq @state \\'warning\\')}}\\n  <i class=\\\"material-icons c-beta-input__icon c-beta-input__icon--warning\\\">\\n    report_problem\\n  </i>\\n{{else if (has-block \\'input-suffix\\')}}\\n  <span\\n    class={{get-classes-with-modifiers\\n      \\'c-beta-input__input-suffix\\'\\n      with-right-padding=@hasSuffixPadding\\n    }}\\n  >\\n    {{yield to=\\'input-suffix\\'}}\\n  </span>\\n{{/if}}\\n', { moduleName: 'client/shared/components/beta-input/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport Field from 'client/data/models/field';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class BetaLabelComponent extends Component {\n  static propTypes = {\n    label: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.htmlSafe]),\n    description: PropTypes.string,\n    class: PropTypes.string,\n    textClass: PropTypes.string,\n    descriptionClass: PropTypes.string,\n    dataTestInputFor: PropTypes.oneOfType([PropTypes.string]),\n    important: PropTypes.bool,\n    disabled: PropTypes.bool,\n    position: PropTypes.oneOf(['top', 'left', 'right', 'browser-extension']),\n    isRequired: PropTypes.bool,\n    isError: PropTypes.oneOfType([PropTypes.bool]),\n    alwaysDisplayError: PropTypes.bool,\n    errorMessage: PropTypes.string,\n    fieldToRedirectTo: PropTypes.instanceOf(Field),\n    afterIcon: PropTypes.string,\n    afterIconTooltipId: PropTypes.string,\n    linkLabel: PropTypes.string,\n    routeName: PropTypes.string,\n    onClickLink: PropTypes.func,\n    multiline: PropTypes.bool,\n  };\n\n  get positionOrDefault() {\n    return this.args.position || 'top';\n  }\n\n  get displayLink() {\n    return this.args.linkLabel && (this.args.routeName || this.args.onClickLink);\n  }\n\n  @action\n  async onClickLink() {\n    try {\n      await this.args.onClickLink?.();\n    } catch (error) {\n      if (error.message === 'TransitionAborted') {\n        return;\n      }\n      throw error;\n    }\n  }\n}\n","import { storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/BetaLabel',\n  component: 'Shared::BetaLabel',\n  args: {\n    label: 'Test',\n  },\n};\n\nexport const BetaLabel = storyCreator('Shared::BetaLabel');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<label\\n  class={{get-classes-with-modifiers\\n    \\'c-beta-label\\'\\n    this.positionOrDefault\\n    important=@important\\n    disabled=@disabled\\n  }}\\n  for={{unless @disabled @for}}\\n  data-test-input-for={{@dataTestInputFor}}\\n  data-test-shared-beta-label\\n  ...attributes\\n>\\n  {{#if @label}}\\n    <div\\n      class={{get-classes-with-modifiers \\'c-beta-label__container\\' this.positionOrDefault}}\\n      data-test-shared-beta-label-text-container\\n    >\\n      <div class=\\\"l-beta-label-infos {{@textContainerClass}}\\\">\\n        <Shared::BetaLabel::Text\\n          @textClass={{@textClass}}\\n          @descriptionClass={{@descriptionClass}}\\n          @label={{@label}}\\n          @description={{@description}}\\n          @isRequired={{@isRequired}}\\n          @hasAfterLabel={{has-block \\'after-label\\'}}\\n          class={{get-classes-with-modifiers \\'c-beta-label__label\\' multiline=@multiline}}\\n          data-test-shared-beta-label-text\\n        >\\n          <:after-label>\\n            {{yield to=\\'after-label\\'}}\\n          </:after-label>\\n        </Shared::BetaLabel::Text>\\n      </div>\\n      {{#if this.displayLink}}\\n        <Shared::Navigation::BetaLinkTo\\n          @type=\\\"primary\\\"\\n          @text={{@linkLabel}}\\n          @underline={{false}}\\n          @routeName={{@routeName}}\\n          @onClick={{this.onClickLink}}\\n          data-test-shared-beta-label-link\\n        />\\n      {{/if}}\\n    </div>\\n  {{/if}}\\n\\n  {{yield}}\\n\\n  {{#if (or @alwaysDisplayError (and @isError @errorMessage))}}\\n    <span class=\\\"c-beta-label__error\\\" data-test-label-error>\\n      {{if @isError @errorMessage}}\\n    </span>\\n  {{/if}}\\n</label>\\n', { moduleName: 'client/shared/components/beta-label/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<span\\n  class=\\\"c-beta-label__label {{@textClass}}\\\"\\n  role=\\\"button\\\"\\n  data-test-beta-label-label\\n  ...attributes\\n>\\n  {{html-safe @label}}{{if @isRequired \\' *\\'}}\\n\\n  {{#if @hasAfterLabel}}\\n    <div class=\\\"c-beta-label__after-label\\\">\\n      {{yield to=\\'after-label\\'}}\\n    </div>\\n  {{/if}}\\n</span>\\n\\n{{#if @description}}\\n  <span\\n    class=\\\"c-beta-label__description {{@descriptionClass}}\\\"\\n    role=\\\"button\\\"\\n    data-test-beta-label-description\\n  >\\n    {{@description}}\\n  </span>\\n{{/if}}\\n', { moduleName: 'client/shared/components/beta-label/text/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport { argument, oneOf, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { SIZES, TYPES } from 'client/shared/components/button/beta-button/component';\nimport { KEY, isKey } from 'client/utils/keyboard';\n\n@validateArguments\nexport default class BetaModalComponent extends Component {\n  @argument(Function) onClose;\n  @argument(String) title;\n  @argument(optional(Boolean)) isTitleLeftAligned;\n  @argument(optional(String)) subtitle;\n  @argument(optional(String)) blockClass;\n  @argument(optional(String)) cancelText;\n  @argument(optional(String)) contentClass;\n  @argument(optional(Boolean)) noCloseButton;\n  @argument(optional(Boolean)) stopPropagation;\n  @argument(optional(Function)) validateAction;\n  @argument(optional(String)) validateText;\n  @argument(optional(oneOf(...TYPES))) validateType;\n  @argument(optional(Boolean)) validateDisabled;\n  @argument(optional(oneOf('expand', 'alignRight'))) footerStyle;\n  @argument(optional(Boolean)) showFooterBorder;\n  @argument(optional(oneOf(...SIZES))) buttonsSize;\n\n  constructor(...args) {\n    super(...args);\n\n    document.addEventListener('keyup', this.onKeyUp);\n  }\n\n  willDestroy() {\n    super.willDestroy();\n    document.removeEventListener('keyup', this.onKeyUp);\n  }\n\n  @action\n  onKeyUp(event) {\n    if (isKey(KEY.ESCAPE, event)) {\n      this.args.onClose();\n    }\n  }\n\n  @action\n  handleClose(event) {\n    const { onClose, stopPropagation } = this.args;\n    if (stopPropagation) {\n      event.stopPropagation();\n    }\n    if (typeof onClose === 'function') {\n      onClose(event);\n    }\n  }\n\n  get footerClass() {\n    const style = this.args.footerStyle || 'expand';\n\n    const showBorder = this.args.showFooterBorder === undefined ? true : this.args.showFooterBorder;\n\n    const borderStyle = showBorder ? 'border' : 'no-border';\n\n    return `c-beta-modal__footer--${style} c-beta-modal__footer--${borderStyle}`;\n  }\n}\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class BetaModalFooterWithStepsComponent extends Component {\n  static propTypes = {\n    onClickNextStep: PropTypes.func.isRequired,\n    onClickPreviousStep: PropTypes.func.isRequired,\n    isNextStepDisabled: PropTypes.bool.isRequired,\n    step: PropTypes.number.isRequired,\n    numberOfSteps: PropTypes.number.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-modal-footer-with-steps\\\">\\n  <span\\n    class=\\\"c-beta-modal-footer-with-steps__progress\\\"\\n    data-test-beta-modal-footer-with-steps-progress\\n  >\\n    Step\\n    {{@step}}\\n    of\\n    {{@numberOfSteps}}\\n  </span>\\n  <div class=\\\"c-beta-modal-footer-with-steps__buttons\\\">\\n    <Shared::Button::BetaButton\\n      @type=\\\"ghost\\\"\\n      @text=\\\"Back\\\"\\n      @action={{@onClickPreviousStep}}\\n      @async={{false}}\\n      @disabled={{eq @step 1}}\\n      data-test-beta-modal-footer-with-steps-back-button\\n    />\\n    <Shared::Button::BetaButton\\n      @type=\\\"primary\\\"\\n      @text={{if (eq @step @numberOfSteps) \\'Confirm\\' \\'Continue\\'}}\\n      @action={{@onClickNextStep}}\\n      @async={{true}}\\n      @withoutCallback={{true}}\\n      @disabled={{@isNextStepDisabled}}\\n      data-test-beta-modal-footer-with-steps-continue-button\\n    />\\n  </div>\\n</div>\\n', { moduleName: 'client/shared/components/beta-modal/footer-with-steps/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Modal::ModalWindow\\n  @onClickOutside={{@onClose}}\\n  @blockClass={{@blockClass}}\\n  @portal={{@portal}}\\n  @stopPropagation={{@stopPropagation}}\\n  @hasCustomSize={{true}}\\n  class=\\\"c-beta-modal {{@contentClass}}\\\"\\n  ...attributes\\n>\\n  <div\\n    class={{get-classes-with-modifiers\\n      \\'c-beta-modal-header\\'\\n      left=@isTitleLeftAligned\\n      no-title=(not @title)\\n    }}\\n  >\\n    <div class=\\\"c-beta-modal-header__title\\\" data-test-beta-modal-title>\\n      {{@title}}\\n    </div>\\n    {{#unless @noCloseButton}}\\n      <i\\n        {{on \\'click\\' this.handleClose}}\\n        class=\\\"material-icons c-beta-modal-header__close-icon\\\"\\n        role=\\\"button\\\"\\n        data-test-close={{true}}\\n        data-test-close-modal\\n      >\\n        close\\n      </i>\\n    {{/unless}}\\n    {{#if @subtitle}}\\n      <div class=\\\"c-beta-modal-header__subtitle\\\" data-test-beta-modal-header-subtitle>\\n        {{@subtitle}}\\n      </div>\\n    {{/if}}\\n  </div>\\n\\n  {{yield}}\\n  {{#if (and @validateAction @validateText)}}\\n    <div class=\\\"c-beta-modal__footer {{this.footerClass}}\\\">\\n      {{#if (and @onClose (not @hideCancel))}}\\n        <Shared::Button::BetaButton\\n          @async={{false}}\\n          @type=\\\"secondary\\\"\\n          @text={{if @cancelText @cancelText \\'cancel\\'}}\\n          @action={{@onClose}}\\n          @size={{or @buttonsSize \\'normal\\'}}\\n          class=\\\"c-beta-modal__footer-button\\\"\\n          data-test-cancel={{true}}\\n        />\\n      {{/if}}\\n\\n      <Shared::Button::BetaButton\\n        @type={{if @validateType @validateType \\'primary\\'}}\\n        @text={{@validateText}}\\n        @action={{@validateAction}}\\n        @disabled={{@validateDisabled}}\\n        @isLoading={{@validateIsLoading}}\\n        @size={{or @buttonsSize \\'normal\\'}}\\n        class=\\\"c-beta-modal__footer-button\\\"\\n        data-test-validate={{true}}\\n      />\\n    </div>\\n  {{/if}}\\n</Modal::ModalWindow>\\n', { moduleName: 'client/shared/components/beta-modal/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { displayNamePluralize } from 'client/shared/helpers/display-name-pluralize';\n\n@validateArguments\nexport default class BetaNewPaginatorComponent extends Component {\n  @argument(Number) currentPage;\n  @argument(Number) numberOfPages;\n  @argument(Function) accessPage;\n  @argument(String) itemsType;\n  @argument(Number) numberOfItems;\n  @argument(Number) numberOfItemsInCurrentPage;\n\n  get descriptionText() {\n    const textOfItemsInCurrentPage = displayNamePluralize([\n      this.args.itemsType,\n      `${this.args.itemsType}s`,\n      this.args.numberOfItemsInCurrentPage,\n    ]);\n\n    const textOfNumberOfItems = displayNamePluralize([\n      this.args.itemsType,\n      `${this.args.itemsType}s`,\n      this.args.numberOfItems,\n    ]);\n    return `Viewing ${this.args.numberOfItemsInCurrentPage} ${textOfItemsInCurrentPage} of ${this.args.numberOfItems} ${textOfNumberOfItems}`;\n  }\n\n  get numbersToDisplay() {\n    const numbers = [];\n\n    if (this.args.currentPage === 1) {\n      for (let i = 0; i < this.args.numberOfPages && i < 3; i += 1) {\n        numbers.push(this.args.currentPage + i);\n      }\n    } else if (this.args.currentPage === this.args.numberOfPages) {\n      for (let i = Math.min(3, this.args.numberOfPages); i > 0; i -= 1) {\n        numbers.push(this.args.currentPage - i + 1);\n      }\n    } else {\n      numbers.push(this.args.currentPage - 1);\n      numbers.push(this.args.currentPage);\n      numbers.push(this.args.currentPage + 1);\n    }\n    return numbers;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-new-beta-paginator\\\" ...attributes>\\n  <div class=\\\"c-new-beta-paginator__text\\\">\\n    {{this.descriptionText}}\\n  </div>\\n  <div class=\\\"c-new-beta-paginator__pages\\\">\\n    {{#let (eq @currentPage 1) as |isBackButtonDisabled|}}\\n      <div\\n        class=\\\"c-new-beta-paginator__pages--left\\\"\\n        {{on \\'click\\' (fn @accessPage (decrement @currentPage))}}\\n        role=\\\"button\\\"\\n      >\\n        <i\\n          class=\\\"material-icons c-new-beta-paginator__chevron c-new-beta-paginator__chevron--left\\n            {{if isBackButtonDisabled \\'c-new-beta-paginator__chevron--disabled\\'}}\\\"\\n          data-test-beta-paginator-previous\\n        >\\n          keyboard_arrow_left\\n        </i>\\n        <span\\n          class=\\\"c-new-beta-paginator__pages-indication\\n            {{if isBackButtonDisabled \\'c-new-beta-paginator__pages-indication--disabled\\'}}\\\"\\n          data-test-beta-paginator-previous-text\\n        >\\n          Previous\\n        </span>\\n      </div>\\n    {{/let}}\\n\\n    <div data-test-input-for=\\\"count\\\" class=\\\"c-new-beta-paginator__all-pages\\\">\\n      {{#each this.numbersToDisplay as |page|}}\\n        <div\\n          class=\\\"c-new-beta-paginator__page\\n            {{if (eq @currentPage page) \\'c-new-beta-paginator__page--selected\\'}}\\\"\\n          {{on \\'click\\' (fn @accessPage page)}}\\n          role=\\\"button\\\"\\n        >\\n          {{page}}\\n        </div>\\n      {{/each}}\\n    </div>\\n\\n    {{#let (eq @currentPage @numberOfPages) as |isNextButtonDisabled|}}\\n      <div\\n        class=\\\"c-new-beta-paginator__pages--right\\\"\\n        {{on \\'click\\' (fn @accessPage (increment @currentPage))}}\\n        role=\\\"button\\\"\\n      >\\n        <span\\n          class=\\\"c-new-beta-paginator__pages-indication\\n            {{if isNextButtonDisabled \\'c-new-beta-paginator__pages-indication--disabled\\'}}\\\"\\n          data-test-beta-paginator-next-text\\n        >\\n          Next\\n        </span>\\n        <i\\n          class=\\\"material-icons c-new-beta-paginator__chevron c-new-beta-paginator__chevron--right\\n            {{if isNextButtonDisabled \\'c-new-beta-paginator__chevron--disabled\\'}}\\\"\\n          data-test-beta-paginator-next\\n        >\\n          keyboard_arrow_right\\n        </i>\\n      </div>\\n    {{/let}}\\n  </div>\\n</div>\\n', { moduleName: 'client/shared/components/beta-new-paginator/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { KEY, isKey } from 'client/utils/keyboard';\n\n@validateArguments\nexport default class BetaPaginatorComponent extends Component {\n  @argument(Number) currentPage;\n  @argument(Function) back;\n  @argument(Function) next;\n  @argument(optional(Number)) numberOfPages;\n  @argument(optional(Function)) selectPage;\n  @argument(optional(Boolean)) isNumberOfPagesLoading;\n  @argument(optional(Boolean)) isNumberOfPagesDeactivated;\n  @argument(optional(Boolean)) isNextButtonDisabled;\n  @argument(optional(Boolean)) isNextButtonDisabledEvenIfUnlimited;\n\n  constructor(...args) {\n    super(...args);\n\n    this.currentPageInput = this.args.currentPage;\n  }\n\n  @tracked shouldDisplayInput = false;\n  @tracked currentPageInput;\n\n  get canSelect() {\n    return !!this.args.selectPage && this.args.numberOfPages > 1;\n  }\n\n  @action\n  showInput() {\n    this.shouldDisplayInput = true;\n    this.currentPageInput = this.args.currentPage;\n  }\n\n  @action\n  hideInput(shouldDiscard = false) {\n    if (\n      shouldDiscard === false\n      && this.args.currentPage !== this.currentPageInput\n      && this.currentPageInput > 0\n    ) {\n      this.args.selectPage(this.currentPageInput);\n    }\n\n    this.currentPageInput = this.args.currentPage;\n    this.shouldDisplayInput = false;\n  }\n\n  @action\n  onEnter(event) {\n    if (isKey(KEY.ENTER, event)) {\n      this.hideInput();\n    }\n\n    if (isKey(KEY.ESCAPE, event)) {\n      this.hideInput(true);\n    }\n  }\n\n  get shouldDisplayNumberOfPages() {\n    if (this.isUnlimited) return false;\n\n    return !this.args.isNumberOfPagesDeactivated;\n  }\n\n  get isUnlimited() {\n    return this.args.numberOfPages === undefined;\n  }\n\n  get canNotNext() {\n    if (this.args.isNextButtonDisabledEvenIfUnlimited) return true;\n    if (this.isUnlimited) return false;\n    return !!this.args.isNextButtonDisabled || this.args.currentPage === this.args.numberOfPages;\n  }\n\n  @action\n  setInputWidth(element) {\n    const BASE_LENGTH = 5;\n    const BASE_CHAR_WIDTH = 8;\n\n    element?.style.setProperty(\n      '--beta-paginator-input-width',\n      `${(this.args.numberOfPages.toString().length + BASE_LENGTH) * BASE_CHAR_WIDTH}px`,\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-paginator\\\" ...attributes>\\n  {{#let (eq @currentPage 1) as |isBackButtonDisabled|}}\\n    <div\\n      class=\\\"c-beta-paginator__left\\\"\\n      {{on \\'click\\' (if isBackButtonDisabled (do-nothing-function) @back)}}\\n      role=\\\"button\\\"\\n    >\\n      <i\\n        class=\\\"material-icons c-beta-paginator__chevron c-beta-paginator__chevron--left\\n          {{if isBackButtonDisabled \\'c-beta-paginator__chevron--disabled\\'}}\\\"\\n        data-test-beta-paginator-previous\\n        data-test-beta-paginator-previous-disabled={{isBackButtonDisabled}}\\n      >\\n        keyboard_arrow_left\\n      </i>\\n    </div>\\n  {{/let}}\\n\\n  <span class=\\\"c-beta-paginator__separator\\\"></span>\\n\\n  <div\\n    data-test-beta-paginator-page-info\\n    data-test-input-for=\\\"count\\\"\\n    class=\\\"c-beta-paginator__count {{if this.canSelect \\'c-beta-paginator__count--hover\\'}}\\\"\\n    role=\\\"button\\\"\\n    {{on \\'click\\' (if this.canSelect this.showInput (do-nothing-function))}}\\n  >\\n    {{#if this.shouldDisplayInput}}\\n      <Shared::BetaInput\\n        @type=\\\"number\\\"\\n        @min={{1}}\\n        @max={{@numberOfPages}}\\n        @value={{this.currentPageInput}}\\n        @onKeyDown={{this.onEnter}}\\n        @canBeCleared={{true}}\\n        @class=\\\"c-beta-paginator__count-input\\\"\\n        {{forest-on-click-outside (fn this.hideInput false)}}\\n        {{autofocus nestedSelector=\\'.c-beta-input\\'}}\\n        {{did-insert this.setInputWidth}}\\n        {{did-update this.setInputWidth @numberOfPages}}\\n        data-test-paginator-select-page-input\\n      />\\n    {{else}}\\n      {{format-number-to-locale @currentPage}}\\n    {{/if}}\\n\\n    {{#if this.shouldDisplayNumberOfPages}}\\n      {{#if @isNumberOfPagesLoading}}\\n        of ...\\n      {{else}}\\n        of\\n        {{format-number-to-locale @numberOfPages}}\\n      {{/if}}\\n    {{/if}}\\n  </div>\\n\\n  <span class=\\\"c-beta-paginator__separator\\\"></span>\\n  <div\\n    class=\\\"c-beta-paginator__right\\\"\\n    {{on \\'click\\' (if this.canNotNext (do-nothing-function) @next)}}\\n    role=\\\"button\\\"\\n  >\\n    <i\\n      class=\\\"material-icons c-beta-paginator__chevron c-beta-paginator__chevron--right\\n        {{if this.canNotNext \\'c-beta-paginator__chevron--disabled\\'}}\\\"\\n      data-test-beta-paginator-next\\n      data-test-beta-paginator-next-disabled={{this.canNotNext}}\\n    >\\n      keyboard_arrow_right\\n    </i>\\n  </div>\\n</div>\\n', { moduleName: 'client/shared/components/beta-paginator/template.hbs' });\n","import type ApplicationInstance from '@ember/application/instance';\n\nimport { action, get } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport { uuidv4 } from 'client/utils/uuid-utils';\n\nexport enum DisplayEnum {\n  Inline = 'inline',\n  Grid = 'grid',\n  Vertical = 'vertical',\n}\nexport enum CardVariantEnum {\n  Tall = 'tall',\n  Small = 'small',\n}\n\nexport type Args = {\n  options: Array<\n    { emoji: string; iconName: string; imageUrl: string; isRestricted?: boolean } & object\n  >;\n  namePath?: string;\n  descriptionPath?: string;\n  linkPath?: string;\n  iconPath?: string;\n  valuePath?: string;\n  disabledPath?: string;\n  value?: unknown;\n  onChange: (value: unknown) => void;\n  display: DisplayEnum;\n  disabled: boolean;\n  labelClass: string;\n  itemClass: string;\n  inputClass: string;\n  textClass: string;\n  forceDefaultValue: boolean;\n  name?: string;\n  columnCount: number;\n  multiple: boolean;\n  cardVariant?: 'tall';\n  type?: 'editor';\n  onHover?: (value: unknown) => void;\n  checkInputSize?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';\n};\n\n@validateArguments\nexport default class BetaRadioButtonComponent extends Component<Args> {\n  static propTypes = {\n    options: PropTypes.array.isRequired,\n    namePath: PropTypes.string,\n    descriptionPath: PropTypes.string,\n    valuePath: PropTypes.string,\n    disabledPath: PropTypes.string,\n    iconPath: PropTypes.string,\n    linkPath: PropTypes.string,\n    value: PropTypes.any,\n    onChange: PropTypes.func,\n    display: PropTypes.oneOf(Object.values(DisplayEnum)),\n    disabled: PropTypes.bool,\n    labelClass: PropTypes.string,\n    itemClass: PropTypes.string,\n    inputClass: PropTypes.string,\n    textClass: PropTypes.string,\n    forceDefaultValue: PropTypes.bool,\n    columnCount: PropTypes.number,\n    multiple: PropTypes.bool,\n    cardVariant: PropTypes.oneOf(Object.values(CardVariantEnum)),\n    type: PropTypes.oneOf(['editor']),\n    checkInputSize: PropTypes.oneOf(['extra-small', 'small', 'medium', 'large', 'extra-large']),\n    onHover: PropTypes.func,\n  };\n\n  constructor(owner: ApplicationInstance, args: Args) {\n    super(owner, args);\n    void this.initDefaultValue();\n  }\n\n  get name() {\n    return this.args.name || uuidv4();\n  }\n\n  get classBinding() {\n    return `c-beta-radio-button--${this.args.display || 'inline'}`;\n  }\n\n  get optionsMap() {\n    const { namePath, valuePath, disabledPath, descriptionPath, iconPath, linkPath } = this.args;\n    const optionsMap: {\n      name: string;\n      value: unknown;\n      disabled: boolean;\n      description?: string | null;\n      link?: string | null;\n      emoji?: string | null;\n      iconName?: string | null;\n      imageUrl?: string | null;\n      isRestricted?: boolean;\n    }[] = [];\n    this.args.options.forEach((option) => {\n      const name = get(option, namePath || 'name') as string;\n      const value = valuePath ? get(option, valuePath || 'value') : option;\n      const disabled = disabledPath ? get(option, disabledPath) : false;\n      const description = descriptionPath ? (get(option, descriptionPath) as string) : null;\n      const link = linkPath ? (get(option, linkPath) as string) : null;\n      const iconName = iconPath ? (get(option, iconPath) as string) : option.iconName;\n      const isRestricted = !!option.isRestricted;\n\n      optionsMap.push({\n        emoji: option.emoji,\n        iconName,\n        imageUrl: option.imageUrl,\n        name,\n        value,\n        disabled: !!disabled || !!this.args.disabled,\n        description,\n        link,\n        isRestricted,\n      });\n    });\n    return optionsMap;\n  }\n\n  get isGrid() {\n    return this.args.display === 'grid';\n  }\n\n  get isVertical() {\n    return this.args.display === 'vertical';\n  }\n\n  @action\n  async initDefaultValue() {\n    await waitForNextRunLoop();\n    if (this.args.forceDefaultValue || this.args.forceDefaultValue === undefined) {\n      const option = this.optionsMap.findBy('value', this.args.value);\n\n      if (!option && this.optionsMap.length) {\n        this.handleChange(this.optionsMap.objectAt(0).value);\n      }\n    }\n  }\n\n  @action\n  selectValue(value: unknown) {\n    this.handleChange(value);\n  }\n\n  handleChange(value: unknown) {\n    if (this.args.onChange) {\n      this.args.onChange(value);\n    }\n  }\n}\n","import { storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/BetaRadioButton',\n  component: 'Shared::BetaRadioButton',\n  args: {\n    // eslint-disable-next-line no-console\n    handeChange: console.log,\n    options: [\n      {\n        name: 'Good',\n        value: 2,\n      },\n      {\n        name: 'Fair',\n        value: 1,\n      },\n      {\n        name: 'Bad',\n        value: 0,\n      },\n    ],\n  },\n};\n\nexport const BetaRadioButton = storyCreator('Shared::BetaRadioButton');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-radio-button {{this.classBinding}}\\\" ...attributes>\\n  {{#each this.optionsMap as |option|}}\\n    <div class=\\\"c-beta-radio-button-item {{@itemClass}}\\\">\\n      <label\\n        class=\\\"c-beta-radio-button-item__label\\n          {{@labelClass}}\\n          {{if (and (eq option.value @value) @labelClass) (concat @labelClass \\'--active\\')}}\\n          {{if (and (not-eq option.value @value) @labelClass) (concat @labelClass \\'--inactive\\')}}\\n          {{if (and option.disabled @labelClass) (concat @labelClass \\'--disabled\\')}}\\n          {{if this.isGrid \\'c-beta-radio-button-item__label--as-grid\\'}}\\n          {{if this.isVertical \\'c-beta-radio-button-item__label--as-vertical\\'}}\\n          {{if option.disabled \\'c-beta-radio-button-item__label--disabled\\'}}\\\"\\n        for={{option.id}}\\n        data-test-option-value={{stringify option.value}}\\n      >\\n        <Shared::Form::RadioInput\\n          @active={{eq option.value @value}}\\n          @disabled={{option.disabled}}\\n          @inputClass={{@inputClass}}\\n          @onChange={{this.selectValue}}\\n          @value={{option.value}}\\n          @name={{this.name}}\\n        />\\n        <span class=\\\"c-beta-radio-button-item__name {{@textClass}}\\\">\\n          {{option.name}}\\n        </span>\\n      </label>\\n    </div>\\n  {{/each}}\\n  {{did-update this.initDefaultValue @value @options}}\\n</div>\\n', { moduleName: 'client/shared/components/beta-radio-button/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type Args = {\n  title: string;\n  isSectionFoldable?: boolean;\n  isFoldedByDefault?: boolean;\n};\n\n@validateArguments\nexport default class BetaRightPanelSectionComponent extends Component<Args> {\n  static propTypes = {\n    title: PropTypes.string.isRequired,\n    isSectionFoldable: PropTypes.bool,\n    isFoldedByDefault: PropTypes.bool,\n  };\n\n  @tracked isFolded = this.args.isFoldedByDefault ?? true;\n\n  willDestroy() {\n    super.willDestroy();\n    this.isFolded = true;\n  }\n\n  @action\n  toggleSectionFolding() {\n    this.isFolded = !this.isFolded;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/BetaRightPanel/Section',\n  component: 'Shared::BetaRightPanel::Section',\n  parameters: {\n    docs: {\n      description: {\n        component:\n          '<strong>Deprecated</strong>: Use <code>Shared::CollapsibleSidePanel</code> instead.',\n      },\n    },\n  },\n  argTypes: {\n    title: {\n      control: 'text',\n      required: true,\n      description: 'The title of the right panel section',\n      table: {\n        category: 'Properties',\n      },\n    },\n    isSectionFoldable: {\n      control: 'boolean',\n      description: 'When the right panel section can be folded',\n      table: {\n        category: 'Properties',\n      },\n    },\n  },\n  args: {\n    ...getDefaultRequiredArgs('Shared::BetaRightPanel::Section'),\n    title: 'Preview your database environment variables',\n    isSectionFoldable: false,\n  },\n};\n\nconst Template = (args) => ({\n  context: args,\n  template: hbs`\n    <Shared::BetaRightPanel::Section\n      @title={{this.title}}\n      @isSectionFoldable={{this.isSectionFoldable}}\n    >\n      <p>\n        Etiam euismod urna quis mi bibendum fermentum. In cursus a justo aliquam ornare. Sed libero justo, aliquam sit amet malesuada sit amet, porta sit amet est. Vestibulum id massa aliquet, lacinia mi quis, porta nulla. Nulla nec erat quis dui tempus consequat eget sit amet tellus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean aliquet molestie auctor. Fusce tincidunt, est nec pharetra ultrices, erat lorem convallis nulla, vitae volutpat augue nunc nec orci.\n      </p>\n    </Shared::BetaRightPanel::Section>\n  `,\n});\n\nexport const Section = Template.bind({});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-right-panel-section\\\" data-test-beta-right-panel-section={{@title}} ...attributes>\\n  <div\\n    class={{get-classes-with-modifiers\\n      \\'l-beta-right-panel-section-header\\'\\n      foldable=@isSectionFoldable\\n    }}\\n    role=\\\"button\\\"\\n    {{on \\'click\\' (if @isSectionFoldable this.toggleSectionFolding (do-nothing-function))}}\\n    data-test-beta-right-panel-section-header\\n  >\\n    <h3\\n      class=\\\"c-beta-right-panel-section__title\\\"\\n      data-test-beta-right-panel-section-title={{@title}}\\n    >\\n      {{@title}}\\n    </h3>\\n    {{yield to=\\'after-title\\'}}\\n\\n    <div class=\\\"l-beta-right-panel-section-header__right-actions\\\">\\n      {{#if @isSectionFoldable}}\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName={{if this.isFolded \\'chevron_right\\' \\'expand_more\\'}}\\n          @size=\\\"custom\\\"\\n          @class=\\\"c-beta-right-panel-section__folding-icon\\\"\\n          data-test-beta-right-panel-section-folding-icon\\n        />\\n      {{/if}}\\n      {{yield to=\\'header\\'}}\\n    </div>\\n  </div>\\n\\n  {{#unless (and @isSectionFoldable this.isFolded)}}\\n    {{yield}}\\n  {{/unless}}\\n</div>\\n', { moduleName: 'client/shared/components/beta-right-panel/section/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/BetaRightPanel',\n  component: 'Shared::BetaRightPanel',\n  parameters: {\n    docs: {\n      description: {\n        component:\n          '<strong>Deprecated</strong>: Use <code>Shared::CollapsibleSidePanel</code> instead.',\n      },\n    },\n  },\n  argTypes: {\n    title: {\n      control: 'text',\n      description: 'The title of the right panel',\n      table: {\n        category: 'Properties',\n      },\n    },\n    isCustomPositioning: {\n      control: 'boolean',\n      description: 'When the right panel should be positioned manually',\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: false },\n      },\n    },\n    extraActions: {\n      control: 'array',\n      description: 'The actions to display in the right panel header actions dropdown',\n      table: {\n        category: 'Properties',\n      },\n    },\n    onClose: {\n      control: 'function',\n      description: 'The action to call when the right panel is closed',\n      table: {\n        category: 'Actions',\n      },\n    },\n    headerClass: {\n      control: 'text',\n      description: 'The class of the right panel header',\n      table: {\n        category: 'HTML classes',\n      },\n    },\n  },\n  args: {\n    ...getDefaultRequiredArgs('Shared::BetaRightPanel'),\n    title: 'Configure your environment variables',\n    extraActions: [\n      {\n        name: 'Archive note',\n        onClick: () => {},\n        isDanger: true,\n      },\n    ],\n    headerClass: 'custom-header-class',\n    isCustomPositioning: false,\n    onClose: () => {},\n  },\n};\n\nconst Template = (args) => ({\n  context: args,\n  template: hbs`\n    <Shared::BetaRightPanel\n      @title={{this.title}}\n      @extraActions={{this.extraActions}}\n      @close={{this.onClose}}\n      @headerClass={{this.headerClass}}\n      @isCustomPositioning={{this.isCustomPositioning}}\n    >\n      <:default>\n        <Shared::BetaRightPanel::Section\n          @title=\"Preview your database environment variables\"\n          @isSectionFoldable={{true}}\n        >\n          <p>\n            Etiam euismod urna quis mi bibendum fermentum. In cursus a justo aliquam ornare. Sed libero justo, aliquam sit amet malesuada sit amet, porta sit amet est. Vestibulum id massa aliquet, lacinia mi quis, porta nulla. Nulla nec erat quis dui tempus consequat eget sit amet tellus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean aliquet molestie auctor. Fusce tincidunt, est nec pharetra ultrices, erat lorem convallis nulla, vitae volutpat augue nunc nec orci.\n          </p>\n        </Shared::BetaRightPanel::Section>\n      </:default>\n\n      <:footer>\n        <p>Footer content</p>\n      </:footer>\n    </Shared::BetaRightPanel>\n  `,\n});\n\nexport const CompleteExample = Template.bind({});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-beta-right-panel {{if @isCustomPositioning \\'c-beta-right-panel--custom-positioning\\'}}\\\"\\n  data-test-beta-right-panel\\n  {{forest-on-click-outside\\n    (optional @close)\\n    exceptSelector=\\'.pcr-app,#portal-for-modal-feature,#portal-for-dropdown,#portal-for-modal,#portal-for-widget-modal,#portal-for-chat-mentionables\\'\\n    eventType=\\'mousedown\\'\\n  }}\\n  ...attributes\\n>\\n  <div class=\\\"l-beta-right-panel-header {{@headerClass}}\\\" data-test-beta-right-panel-header>\\n    {{#if (and (not @title) (has-block \\'title\\'))}}\\n      {{yield to=\\'title\\'}}\\n    {{else}}\\n      <h2 class=\\\"c-beta-right-panel__title\\\" data-test-beta-right-panel-title={{@title}}>\\n        {{@title}}\\n      </h2>\\n    {{/if}}\\n    <div class=\\\"c-beta-right-panel__actions\\\">\\n      {{#if @extraActions}}\\n        <Form::Dropdown>\\n          <:triggerer as |toggleDropdown|>\\n            <Shared::BetaIconButton\\n              {{on \\'click\\' toggleDropdown}}\\n              @icon=\\\"more_horiz\\\"\\n              @size=\\\"medium\\\"\\n              class=\\\"c-beta-right-panel__extra-actions\\\"\\n              data-test-beta-right-panel-extra-actions\\n            />\\n          </:triggerer>\\n          <:content as |hideContent|>\\n            {{#each @extraActions as |extraAction|}}\\n              <Form::Dropdown::Action\\n                @icon={{extraAction.icon}}\\n                @name={{extraAction.name}}\\n                @onClick={{chain-fn extraAction.onClick hideContent}}\\n                @isDanger={{extraAction.isDanger}}\\n                @isDisabled={{extraAction.isDisabled}}\\n                @tooltipMessage={{extraAction.tooltipMessage}}\\n                @tooltipSide={{extraAction.tooltipSide}}\\n                data-test-beta-right-panel-extra-action={{extraAction.name}}\\n              />\\n            {{/each}}\\n          </:content>\\n        </Form::Dropdown>\\n      {{else}}\\n        {{yield to=\\'header\\'}}\\n      {{/if}}\\n      {{#if @close}}\\n        <Shared::BetaIconButton\\n          @icon=\\\"close\\\"\\n          @size=\\\"medium\\\"\\n          class=\\\"c-beta-right-panel__close\\\"\\n          data-test-beta-right-panel-close\\n          {{on \\'click\\' @close}}\\n        />\\n      {{/if}}\\n    </div>\\n  </div>\\n  <div\\n    class=\\\"l-beta-right-panel-body js-beta-right-panel-body-scroll\\\"\\n    data-test-beta-right-panel-body\\n  >\\n    {{yield}}\\n  </div>\\n  {{#if (has-block \\'footer\\')}}\\n    <div data-test-beta-right-panel-footer>\\n      {{yield to=\\'footer\\'}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/shared/components/beta-right-panel/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface BetaSearchBarComponentArgs {\n  searchFunction: (searchValue: string) => void | Promise<void>;\n  onChange?: (searchValue: string) => void;\n  searchValue?: string;\n  placeholder?: string;\n  transparent?: boolean;\n  searchOnInput?: boolean;\n  shouldAutoFocus?: boolean;\n  parametersToWatchRetriggeringFocus?: unknown;\n}\n\n@validateArguments\nexport default class BetaSearchBarComponent extends Component<BetaSearchBarComponentArgs> {\n  static propTypes = {\n    searchFunction: PropTypes.func.isRequired,\n    searchValue: PropTypes.string,\n    placeholder: PropTypes.string,\n    transparent: PropTypes.bool,\n    searchOnInput: PropTypes.bool,\n    shouldAutoFocus: PropTypes.bool,\n    parametersToWatchRetriggeringFocus: PropTypes.any,\n    onChange: PropTypes.func,\n  };\n\n  @tracked private currentSearchValue: string | null = null;\n  @tracked private localSearchValue: string | null = null;\n\n  get searchValue() {\n    return this.args.searchValue ?? this.localSearchValue;\n  }\n\n  set searchValue(value) {\n    this.localSearchValue = value;\n    this.args.onChange?.(value);\n  }\n\n  @action\n  handleWillDestroy(element: HTMLInputElement) {\n    element.blur();\n  }\n\n  @action\n  focusInput(element: HTMLInputElement) {\n    if (this.args.shouldAutoFocus) {\n      element.focus();\n    }\n  }\n\n  @action\n  search(event: Event) {\n    event?.preventDefault();\n    this.currentSearchValue = this.searchValue;\n    return this.args.searchFunction(this.searchValue);\n  }\n\n  @action\n  async searchOnInputAction(event: KeyboardEvent) {\n    this.searchValue = (event.target as HTMLInputElement).value;\n    if (this.args.searchOnInput) {\n      await this.search(event);\n    }\n  }\n\n  @action\n  async detectEmptySearch() {\n    if (!this.args.searchOnInput) return;\n\n    if (\n      this.searchValue === ''\n      && this.currentSearchValue\n      && this.currentSearchValue !== this.searchValue\n    ) {\n      await this.args.searchFunction('');\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-search-bar\\\" ...attributes>\\n  <i {{on \\'click\\' this.search}} class=\\\"material-icons c-beta-search-bar__icon\\\" role=\\\"button\\\">\\n    search\\n  </i>\\n  <form {{on \\'submit\\' this.search}} class=\\\"c-beta-search-bar__form\\\">\\n    <Input\\n      @type=\\\"search\\\"\\n      @value={{this.searchValue}}\\n      autocomplete=\\\"off\\\"\\n      placeholder={{or @placeholder \\'Search...\\'}}\\n      class=\\\"js-beta-search-bar-input c-beta-search-bar__input\\\"\\n      aria-label=\\\"search\\\"\\n      {{did-insert this.focusInput}}\\n      {{did-update this.focusInput @parametersToWatchRetriggeringFocus}}\\n      {{on \\'keyup\\' this.detectEmptySearch}}\\n      {{on \\'input\\' this.searchOnInputAction}}\\n      {{will-destroy this.handleWillDestroy}}\\n      data-test-beta-search-bar-input\\n    />\\n  </form>\\n  {{#if @isLoading}}\\n    <Shared::Feedback::BetaLoader class=\\\"c-beta-search-bar__loader\\\" />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/shared/components/beta-search-bar/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport { ButtonTypeEnum } from 'client/utils/color-utils';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type ColorOption = { text: string; color: ButtonTypeEnum };\n\nexport interface BetaSelectColorArgs {\n  value: ButtonTypeEnum;\n  options: ColorOption[];\n  onSelectValue: (value: string) => void;\n  defaultValue: typeof ButtonTypeEnum | null;\n  defaultOption?: string | null;\n  defaultOptionColor: ButtonTypeEnum;\n}\n\n@validateArguments\nexport default class BetaSelectColorComponent extends Component<BetaSelectColorArgs> {\n  static propTypes = {\n    value: PropTypes.oneOf(Object.values(ButtonTypeEnum)),\n    options: PropTypes.arrayOf(\n      PropTypes.shape({\n        text: PropTypes.string.isRequired,\n        color: PropTypes.oneOf(Object.values(ButtonTypeEnum)).isRequired,\n      }),\n    ),\n    defaultValue: PropTypes.string,\n    defaultOption: PropTypes.string,\n    defaultOptionColor: PropTypes.oneOf(Object.values(ButtonTypeEnum)),\n    onSelectValue: PropTypes.func.isRequired,\n  };\n}\n","import { getDefaultRequiredArgs, storyCreator } from '../../../../stories/story-creator';\nimport { ButtonTypeEnum } from '../../../utils/color-utils';\n\nexport default {\n  title: 'Shared/BetaSelectColor',\n  component: 'Shared::BetaSelectColor',\n  args: {\n    ...getDefaultRequiredArgs('Shared::BetaSelectColor'),\n    options: [\n      {\n        text: 'Primary',\n        color: ButtonTypeEnum.Primary,\n      },\n      {\n        text: 'Info',\n        color: ButtonTypeEnum.Info,\n      },\n      {\n        text: 'Danger',\n        color: ButtonTypeEnum.Danger,\n      },\n      {\n        text: 'Warning',\n        color: ButtonTypeEnum.Warning,\n      },\n      {\n        text: 'Neutral',\n        color: ButtonTypeEnum.Neutral,\n      },\n    ],\n    namePath: 'displayName',\n    valuePath: 'value',\n  },\n};\n\nexport const BetaSelectColor = storyCreator('Shared::BetaSelectColor');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSelect\\n  @value={{one-way @value}}\\n  @onChange={{@onSelectValue}}\\n  @defaultValue={{null}}\\n  @options={{@options}}\\n  @valuePath=\\\"color\\\"\\n  @namePath=\\\"text\\\"\\n  @placeholder=\\\"Select a color\\\"\\n  @defaultOption={{@defaultOption}}\\n  @capitalizeValues={{true}}\\n  class=\\\"c-beta-select-color\\\"\\n  data-test-beta-select-color\\n  ...attributes\\n>\\n  <:before-selected-item as |color|>\\n    {{#if @value}}\\n      <span\\n        class={{get-classes-with-modifiers \\'c-beta-select-color__dot\\' color \\'selected-dot\\'}}\\n        data-test-beta-selected-item-color-dot\\n      ></span>\\n    {{else if @defaultOption}}\\n      <span\\n        class={{get-classes-with-modifiers\\n          \\'c-beta-select-color__dot\\'\\n          @defaultOptionColor\\n          \\'selected-dot\\'\\n        }}\\n        data-test-beta-selected-item-color-dot\\n      ></span>\\n    {{/if}}\\n  </:before-selected-item>\\n  <:before-item-default-option>\\n    <span\\n      class={{get-classes-with-modifiers \\'c-beta-select-color__dot\\' @defaultOptionColor}}\\n      data-test-beta-select-color-dot\\n    ></span>\\n  </:before-item-default-option>\\n  <:before-item as |color|>\\n    <span\\n      class={{get-classes-with-modifiers \\'c-beta-select-color__dot\\' color}}\\n      data-test-beta-select-color-dot\\n    ></span>\\n  </:before-item>\\n</Shared::BetaSelect>\\n', { moduleName: 'client/shared/components/beta-select-color/template.hbs' });\n","import type PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\n\nimport { action, computed } from '@ember/object';\nimport { not } from '@ember/object/computed';\nimport { guidFor } from '@ember/object/internals';\nimport { next } from '@ember/runloop';\nimport { isNone } from '@ember/utils';\nimport { classNames } from '@ember-decorators/component';\n\nimport { any, argument, arrayOf, oneOf, optional } from 'client/decorators/argument';\nimport AbstractDropdownSelectComponent from 'client/legacy/abstract-components/dropdown-select-component';\n\n@classNames('c-beta-select-search')\nexport default class BetaSelectSearchComponent extends AbstractDropdownSelectComponent {\n  @argument(optional(String)) declare namePath;\n  @argument(optional(arrayOf(any()))) declare options;\n  @argument(optional(String)) declare titlePath;\n  @argument(optional(String)) declare valuePath;\n  @argument(optional(String)) declare disabledPath;\n  @argument(optional(any())) declare value;\n  @argument(optional(Function)) declare onChange;\n  @argument(optional(Function)) onFirstDropdownDisplay: () => Promise<void> = async () => {};\n  @argument(optional(Function)) onCancelSearch: () => void = async () => {};\n  @argument(optional(Function)) onClearSearch: () => void = async () => {};\n  @argument(optional(String)) declare placeholder: string;\n  @argument(optional(Boolean)) declare hideCurrentValue;\n  @argument(optional(Boolean)) declare multipleValues;\n  @argument(optional(String)) declare defaultOption;\n  @argument(optional(Boolean)) declare disabled;\n  @argument(optional(String)) declare classInput;\n  @argument(optional(String)) declare information;\n  @argument(optional(Boolean)) declare enableLocalFilterAndHighlighter;\n  @argument(optional(Boolean)) declare customBlockList;\n  @argument(optional(Function)) declare onSearchValueChange: () => void;\n  @argument(optional(Boolean)) declare isLoadingOptions: boolean;\n  @argument(optional(String)) declare emptyText;\n  @argument(optional(oneOf('success', 'error', 'warning', 'info', 'loading', 'empty')))\n  declare state;\n\n  // FIXME: Remove this block after migrating AbstractDropdownSelectComponent to Glimmer\n  // Arguments\n  private inputId?: string;\n\n  searchValue: string = null;\n  displayedOnce = false;\n\n  @not('disabled') canDisplayDropdown;\n\n  @computed('searchValue', 'singleValue', 'value', 'valuesSelected.firstObject.name')\n  get searchValueOrValue() {\n    if (this.singleValue && isNone(this.searchValue)) {\n      return this.valuesSelected?.firstObject?.name as string;\n    }\n    return this.searchValue;\n  }\n\n  set searchValueOrValue(value) {\n    if (this.singleValue) {\n      this.set('value', null);\n    }\n\n    this.set('searchValue', value);\n    if (!value) {\n      this.onClearSearch();\n    }\n    if (value && !this.isDropdownOpen) {\n      // FIXME: try to get rid of this async call in the setter\n      void this.displayDropdown();\n    }\n  }\n\n  @computed('isLoadingOptions', 'options.isFulfilled', '_isLoading')\n  get isLoading() {\n    return (\n      this.isLoadingOptions\n      || (this.options as unknown as PromiseProxyMixin<typeof this.options>)?.isFulfilled === false\n      || this._isLoading\n    );\n  }\n\n  get dropdownId() {\n    return `${guidFor(this)}__dropdown`;\n  }\n\n  @computed(\n    'enableLocalFilterAndHighlighter',\n    'isLoadingOptions',\n    'optionsMap',\n    'optionsMapWithHighlightSearch',\n  )\n  get optionsToDisplay() {\n    if (this.isLoadingOptions && !this.enableLocalFilterAndHighlighter) return [];\n    return this.enableLocalFilterAndHighlighter\n      ? this.optionsMapWithHighlightSearch\n      : this.optionsMap;\n  }\n\n  get inputIdOrDefault() {\n    return this.inputId || `${this.elementId}__input`;\n  }\n\n  @action\n  cancel(event: Event) {\n    if (this.singleValue && this.value) {\n      this.set('value', null);\n      this.notifyChange(null);\n    } else {\n      const input = document.getElementById(this.inputIdOrDefault);\n      next(() => input.focus());\n    }\n    this.set('searchValue', null);\n\n    this.onSearchValueChange();\n    this.onCancelSearch();\n\n    event.preventDefault();\n    event.stopPropagation();\n    return false;\n  }\n\n  @action\n  selectDefault(_event?: Event) {\n    if (this.multipleValues) {\n      if ((this.value as unknown[])?.length) {\n        (this.value as unknown[]).clear();\n        this.notifyChange(null);\n      }\n    } else if (this.value !== null) {\n      this.set('value', null);\n      this.notifyChange(null);\n    }\n  }\n\n  async displayDropdown(selectInputValue?: unknown) {\n    if (this.isDestroyed || this.isDestroying) {\n      return;\n    }\n    if (this.disabled || !this.canDisplayDropdown) {\n      return;\n    }\n\n    if (selectInputValue) {\n      const input = document.getElementById(this.inputIdOrDefault) as HTMLInputElement;\n      input.select();\n    }\n\n    if (!this.isDropdownOpen && !this.displayedOnce) {\n      this.set('displayedOnce', true);\n      await this.onFirstDropdownDisplay();\n    }\n\n    this.set('isDropdownOpen', true);\n  }\n\n  didInsertElement() {\n    super.didInsertElement();\n    document.addEventListener('focusin', this._handleFocusIn);\n  }\n\n  @action\n  _handleFocusIn(event: FocusEvent) {\n    if (\n      event.target !== document.getElementById(this.inputIdOrDefault)\n      && !document.getElementById(this.dropdownId)?.contains(event.target as Node)\n    ) {\n      this.hideDropdown(event);\n    }\n  }\n\n  willDestroyElement() {\n    document.removeEventListener('focusin', this._handleFocusIn);\n    super.willDestroyElement();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaInput\\n  @inputId={{this.inputIdOrDefault}}\\n  @inputClass={{@inputClass}}\\n  @class={{this.inputSelectorClass}}\\n  @value={{this.searchValueOrValue}}\\n  @placeholder={{this.placeholderOrDefaultOption}}\\n  @type=\\\"text\\\"\\n  @disabled={{@disabled}}\\n  @onClick={{fn this.showDropdown true}}\\n  @onFocus={{fn this.showDropdown false}}\\n  @onChange={{@onSearchValueChange}}\\n  @state={{@state}}\\n  data-test-beta-select-search\\n/>\\n\\n{{#if this.searchValueOrValue}}\\n  <span class=\\\"c-beta-select-search__cancel\\\" role=\\\"button\\\" {{on \\'click\\' this.cancel}}>\\n    <i class=\\\"material-icons c-beta-select-search__cancel-icon\\\" data-test-beta-select-search-cancel>\\n      {{if (and this.singleValue this.value (not this.isDropdownOpen)) \\'close\\' \\'cancel\\'}}\\n    </i>\\n  </span>\\n{{/if}}\\n\\n{{#if this.isDropdownOpen}}\\n  <Form::BetaSelect::DropdownContent\\n    @emptyText={{@emptyText}}\\n    @currentValue={{this.value}}\\n    @defaultItem={{this.defaultItem}}\\n    @defaultOption={{@defaultOption}}\\n    @inputId={{this.inputIdOrDefault}}\\n    @isLoading={{this.isLoading}}\\n    @mustHideCurrentValue={{this.hideCurrentValue}}\\n    @onHideDropdown={{this.hideDropdown}}\\n    @onSelectDefault={{this.selectDefault}}\\n    @onSelectValue={{this.selectValue}}\\n    @options={{this.optionsToDisplay}}\\n    @hasMultipleValues={{@multipleValues}}\\n    @hasCustomItemRenderer={{has-block \\'item-renderer\\'}}\\n    id={{this.dropdownId}}\\n  >\\n    <:item-renderer as |item|>\\n      {{yield item.value to=\\'item-renderer\\'}}\\n    </:item-renderer>\\n  </Form::BetaSelect::DropdownContent>\\n{{/if}}\\n\\n{{#if @information}}\\n  <div class=\\\"c-beta-select-search__information\\\">\\n    {{@information}}\\n  </div>\\n{{/if}}\\n\\n{{#if this.multipleValues}}\\n  {{#if this.valuesSelected.length}}\\n    {{#if @customBlockList}}\\n      {{yield this.valuesSelected this.deselectValue to=\\'selected-item-list\\'}}\\n    {{else if (has-block \\'before-item\\')}}\\n      <Shared::DataDisplay::BetaList\\n        @class=\\\"c-beta-select-search__selected-list\\\"\\n        @values={{this.valuesSelected}}\\n        @onRemove={{this.deselectValue}}\\n        @readOnly={{@disabled}}\\n        as |option|\\n      >\\n        {{yield option.value to=\\'before-item\\'}}\\n      </Shared::DataDisplay::BetaList>\\n    {{else}}\\n      <Shared::DataDisplay::BetaList\\n        @class=\\\"c-beta-select-search__selected-list\\\"\\n        @values={{this.valuesSelected}}\\n        @onRemove={{this.deselectValue}}\\n        @readOnly={{@disabled}}\\n      />\\n    {{/if}}\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/shared/components/beta-select-search/template.hbs' });\n","import type PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\n\nimport { isArray } from '@ember/array';\nimport { action, computed } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { capitalize } from '@ember/string';\nimport { classNames } from '@ember-decorators/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport AbstractDropdownSelectComponent, {\n  type OptionMap,\n} from 'client/legacy/abstract-components/dropdown-select-component';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\n@classNames('c-beta-select')\nexport default class BetaSelectComponent extends AbstractDropdownSelectComponent {\n  static propTypes = {\n    options: PropTypes.arrayOf(\n      PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object, PropTypes.bool]),\n    ),\n    disabledOptions: PropTypes.arrayOf(\n      PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.object, PropTypes.bool]),\n    ),\n    state: PropTypes.oneOf(['success', 'error', 'warning']),\n    size: PropTypes.oneOf(['sm', 'md', 'lg']),\n    iconPath: PropTypes.string,\n    namePath: PropTypes.string,\n    titlePath: PropTypes.string,\n    valuePath: PropTypes.string,\n    disabledPath: PropTypes.string,\n    value: PropTypes.any,\n    onChange: PropTypes.func,\n    placeholder: PropTypes.string,\n    hideCurrentValue: PropTypes.bool,\n    multipleValues: PropTypes.bool,\n    defaultOption: PropTypes.string,\n    defaultValue: PropTypes.any,\n    disabled: PropTypes.bool,\n    emptyText: PropTypes.string,\n    searchPlaceholder: PropTypes.string,\n    withSearchInput: PropTypes.bool,\n    capitalizeValues: PropTypes.bool,\n    isInlineMultipleValues: PropTypes.bool,\n    onSearchValueChange: PropTypes.func,\n    onSelectDefault: PropTypes.func,\n    withoutFocus: PropTypes.bool,\n  };\n\n  static defaultProps = {\n    placeholder: 'Select',\n    defaultValue: null,\n    emptyText: 'No value available.',\n    searchPlaceholder: 'Search...',\n  };\n\n  // FIXME: Remove this block after migrating AbstractDropdownSelectComponent to Glimmer\n  // Arguments\n  private inputId?: string;\n  private capitalizeValues?: boolean;\n  private withSearchInput?: boolean;\n  private onSearchValueChange?: (value: string) => void;\n  private isInlineMultipleValues?: boolean;\n  private onSelectDefault?: (value: string) => void;\n\n  get dropdownId() {\n    return this.inputId || `${guidFor(this)}__dropdown`;\n  }\n\n  @computed('_isLoading', 'options.isFulfilled')\n  get isLoading() {\n    return (\n      (this.options as unknown as PromiseProxyMixin<typeof this.options>)?.isFulfilled === false\n      || this._isLoading\n    );\n  }\n\n  @computed('optionsMap', 'value')\n  get selectedOption() {\n    return this.optionsMap.find((option) => option.value === this.value);\n  }\n\n  @computed('multipleValues', 'optionsMap', 'value')\n  get selectedOptions() {\n    return this.multipleValues && isArray(this.value as unknown[])\n      ? (this.value as unknown[]).map((value: unknown) =>\n          this.optionsMap.find((option) => option.value === value),\n        )\n      : [];\n  }\n\n  @computed('selectedOption.name')\n  get currentOptionName() {\n    return this.getNameToDisplayForOption(this.selectedOption);\n  }\n\n  @computed(\n    'currentOptionName',\n    'getNameToDisplayForOption',\n    'isInlineMultipleValues',\n    'multipleValues',\n    'selectedOption.name',\n    'selectedOptions',\n  )\n  get name() {\n    return this.isInlineMultipleValues && this.multipleValues\n      ? this.selectedOptions.map(this.getNameToDisplayForOption).join(', ')\n      : this.currentOptionName;\n  }\n\n  @computed('selectedOption.icon')\n  get icon() {\n    return this.selectedOption?.icon;\n  }\n\n  displayDropdown() {\n    if (this.disabled || this.isLoading) {\n      return;\n    }\n\n    this.isDropdownOpen = !this.isDropdownOpen;\n    this.searchValue = '';\n  }\n\n  @action\n  getNameToDisplayForOption(option: OptionMap) {\n    return this.capitalizeValues && option?.name\n      ? capitalize(option.name as string)\n      : option && option.name;\n  }\n\n  @action\n  handleSearchChange(value: string) {\n    this.searchValue = value;\n\n    if (this.withSearchInput && this.onSearchValueChange) {\n      this.onSearchValueChange(value);\n    }\n  }\n\n  @action\n  handleSelectDefault(event: MouseEvent) {\n    if (this.onSelectDefault) {\n      this.onSelectDefault(this.defaultOption);\n      this.removeDropdown(event);\n      return;\n    }\n    this.selectDefault(event);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nimport { storyCreator } from '../../../../stories/story-creator';\n\nexport default {\n  title: 'Shared/BetaSelect',\n  component: 'Shared::BetaSelect',\n  argTypes: {\n    options: [\n      {\n        displayName: 'Leia',\n        value: 'Woman',\n      },\n      {\n        displayName: 'Luke',\n        value: 'Man',\n      },\n    ],\n    namePath: 'displayName',\n    valuePath: 'value',\n  },\n};\n\nexport const BetaSelect = storyCreator('Shared::BetaSelect');\n\nconst Template = (args) => ({\n  context: args,\n  template: hbs`\n    <Shared::PortalFor @name=\"dropdown\" />\n    <Shared::BetaSelect\n      @value={{this.value}}\n      @placeholder={{this.placeholder}}\n      @options={{this.options}}\n      @namePath=\"displayName\"\n      @valuePath=\"value\"\n      @disabledPath=\"disabled\"\n      @iconPath={{this.iconPath}}\n      @onChange={{fn (mut this.value)}}\n      @multipleValues={{this.multipleValues}}\n      @isInlineMultipleValues={{this.isInlineMultipleValues}}\n      @state={{this.state}}\n      @disabled={{this.disabled}}\n      @size={{this.size}}\n      @withSearchInput={{this.withSearchInput}}\n    />\n  `,\n});\n\nconst options = [\n  {\n    displayName: 'Leia',\n    value: 'Woman',\n  },\n  {\n    displayName: 'Luke',\n    value: 'Man',\n  },\n  {\n    displayName: 'Chewbacca',\n    value: 'Wookie',\n  },\n];\n\nexport const MultiSelect = Template.bind({});\nMultiSelect.args = {\n  options,\n  multipleValues: true,\n};\n\nexport const MultiSelectInline = Template.bind({});\nMultiSelectInline.args = {\n  options,\n  multipleValues: true,\n  isInlineMultipleValues: true,\n};\n\nexport const ErrorState = Template.bind({});\nErrorState.args = {\n  options,\n  state: 'error',\n};\n\nexport const WarningState = Template.bind({});\nWarningState.args = {\n  options,\n  state: 'warning',\n};\n\nexport const SuccessState = Template.bind({});\nSuccessState.args = {\n  options,\n  state: 'success',\n};\n\nexport const Placeholder = Template.bind({});\nPlaceholder.args = {\n  value: null,\n  options,\n  placeholder: 'Select a character',\n};\n\nexport const Disabled = Template.bind({});\nDisabled.args = {\n  value: null,\n  options,\n  placeholder: 'Select a character',\n  disabled: true,\n};\n\nexport const WithSearch = Template.bind({});\nWithSearch.args = {\n  value: null,\n  options,\n  placeholder: 'Select a character',\n  disabled: true,\n  withSearchInput: true,\n};\n\nexport const AllTypes = (args) => {\n  return {\n    template: hbs`\n    <Shared::PortalFor @name=\"dropdown\" />\n    <div style=\"display: flex; flex-direction: row; gap: 8px;\">\n      <div style=\"display: flex; flex-direction: column; gap: 4px;\">\n        <Shared::BetaSelect @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @placeholder=\"Small placeholder\" @size=\"sm\" />\n        <Shared::BetaSelect @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @placeholder=\"Medium placeholder\" @size=\"md\" />\n        <Shared::BetaSelect @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @placeholder=\"Large placeholder\" @size=\"lg\" />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 4px;\">\n        <Shared::BetaSelect @value={{this.value}} @onChange={{fn (mut this.value)}} @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @placeholder=\"Small value\" @size=\"sm\" />\n        <Shared::BetaSelect @value={{this.value}} @onChange={{fn (mut this.value)}} @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @placeholder=\"Medium value\" @size=\"md\" />\n        <Shared::BetaSelect @value={{this.value}} @onChange={{fn (mut this.value)}} @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @placeholder=\"Large value\" @size=\"lg\" />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 4px;\">\n        <Shared::BetaSelect @value={{this.value}} @onChange={{fn (mut this.value)}} @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @withSearchInput={{true}} @placeholder=\"Small withSearchInput\" @size=\"sm\" />\n        <Shared::BetaSelect @value={{this.value}} @onChange={{fn (mut this.value)}} @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @withSearchInput={{true}} @placeholder=\"Medium withSearchInput\" @size=\"md\" />\n        <Shared::BetaSelect @value={{this.value}} @onChange={{fn (mut this.value)}} @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @withSearchInput={{true}} @placeholder=\"Large withSearchInput\" @size=\"lg\" />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 4px;\">\n        <Shared::BetaSelect @value={{this.value}} @onChange={{fn (mut this.value)}} @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @iconPath=\"icon\" @placeholder=\"Small with icon\" @size=\"sm\" />\n        <Shared::BetaSelect @value={{this.value}} @onChange={{fn (mut this.value)}} @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @iconPath=\"icon\" @placeholder=\"Medium with icon\" @size=\"md\" />\n        <Shared::BetaSelect @value={{this.value}} @onChange={{fn (mut this.value)}} @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @iconPath=\"icon\" @placeholder=\"Large with icon\" @size=\"lg\" />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 4px;\">\n        <Shared::BetaSelect @value={{this.value}} @onChange={{fn (mut this.value)}} @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @iconPath=\"icon\" @disabled={{true}} @placeholder=\"Small disabled\" @size=\"sm\" />\n        <Shared::BetaSelect @value={{this.value}} @onChange={{fn (mut this.value)}} @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @iconPath=\"icon\" @disabled={{true}} @placeholder=\"Medium disabled\" @size=\"md\" />\n        <Shared::BetaSelect @value={{this.value}} @onChange={{fn (mut this.value)}} @options={{this.options}} @namePath=\"displayName\" @valuePath=\"value\" @disabledPath=\"disabled\" @iconPath=\"icon\" @disabled={{true}} @placeholder=\"Large disabled\" @size=\"lg\" />\n      </div>\n    </div>\n    `,\n    context: args,\n  };\n};\nAllTypes.bind({});\nAllTypes.args = {\n  value: 'Man',\n  options: [\n    {\n      displayName: 'Leia',\n      value: 'Woman',\n      icon: 'favorite',\n    },\n    {\n      displayName: 'Luke',\n      value: 'Man',\n      icon: 'bolt',\n    },\n    {\n      displayName: 'Disabled one',\n      value: 'disable',\n      icon: 'face',\n      disabled: true,\n    },\n    {\n      displayName: 'Chewbacca',\n      value: 'Wookie',\n      icon: 'face',\n    },\n  ],\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaInput\\n  @placeholder={{this.placeholderOrDefaultOption}}\\n  @value={{this.name}}\\n  @readOnly={{true}}\\n  @disabled={{@disabled}}\\n  @iconName=\\\"expand_more\\\"\\n  @onClickIcon={{or @onClickIcon (fn this.showDropdown true)}}\\n  @iconId={{@iconId}}\\n  @state={{if this.isLoading \\'loading\\' @state}}\\n  @hasPrefixPadding={{true}}\\n  @hasSuffixPadding={{true}}\\n  @withoutFocus={{@withoutFocus}}\\n  @size={{@size}}\\n  @onClick={{fn this.showDropdown true}}\\n  id={{this.dropdownId}}\\n  class={{get-classes-with-modifiers\\n    \\'c-beta-select\\'\\n    with-prefix-icon=(or this.icon (has-block \\'before-selected-item\\'))\\n  }}\\n  data-test-disabled={{@disabled}}\\n  data-test-beta-select\\n  data-test-beta-select-input\\n>\\n  <:input-prefix>\\n    {{#if this.icon}}\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName={{this.icon}}\\n        @size=\\\"custom\\\"\\n        data-test-beta-select-selected-icon\\n      />\\n    {{/if}}\\n    {{yield this.value to=\\'before-selected-item\\'}}\\n  </:input-prefix>\\n</Shared::BetaInput>\\n\\n{{#if this.isDropdownOpen}}\\n  <Form::BetaSelect::DropdownContent\\n    @currentValue={{@value}}\\n    @defaultItem={{this.defaultItem}}\\n    @defaultOption={{@defaultOption}}\\n    @inputId={{this.dropdownId}}\\n    @isLoading={{this.isLoading}}\\n    @mustHideCurrentValue={{@hideCurrentValue}}\\n    @onHideDropdown={{this.hideDropdown}}\\n    @onSelectDefault={{this.handleSelectDefault}}\\n    @onSelectValue={{this.selectValue}}\\n    @options={{this.optionsMapWithHighlightSearch}}\\n    @shouldCapitalizeOptionName={{@capitalizeValues}}\\n    @hasMultipleValues={{@multipleValues}}\\n    @emptyText={{@emptyText}}\\n    @hasSearchInput={{@withSearchInput}}\\n    @searchPlaceholder={{@searchPlaceholder}}\\n    @onSearchValueChange={{this.handleSearchChange}}\\n  >\\n    <:before-item-default-option>\\n      {{yield to=\\'before-item-default-option\\'}}\\n    </:before-item-default-option>\\n    <:before-item as |optionValue|>\\n      {{yield optionValue to=\\'before-item\\'}}\\n    </:before-item>\\n  </Form::BetaSelect::DropdownContent>\\n{{/if}}\\n\\n{{#if (and @multipleValues (not @isInlineMultipleValues))}}\\n  {{#if this.valuesSelected.length}}\\n    <Shared::DataDisplay::BetaList\\n      @class=\\\"c-beta-select__selected-list\\\"\\n      @values={{this.valuesSelected}}\\n      @onRemove={{this.deselectValue}}\\n      @readOnly={{@disabled}}\\n    />\\n  {{/if}}\\n{{/if}}\\n', { moduleName: 'client/shared/components/beta-select/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface BetaSettingsLayoutDeleteSectionArgs {\n  title: string;\n  onDelete: () => void;\n  isDeleteDisabled?: boolean;\n  entityName: string;\n  warningMessage: string;\n}\n\n@validateArguments\nexport default class BetaSettingsLayoutDeleteSectionComponent extends Component<BetaSettingsLayoutDeleteSectionArgs> {\n  static propTypes = {\n    title: PropTypes.string.isRequired,\n    onDelete: PropTypes.func.isRequired,\n    entityName: PropTypes.string.isRequired,\n    warningMessage: PropTypes.string.isRequired,\n    isDeleteDisabled: PropTypes.bool,\n  };\n}\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/BetaSettingsLayout/DeleteSection',\n  component: 'Shared::BetaSettingsLayout::DeleteSection',\n  args: {\n    ...getDefaultRequiredArgs('Shared::BetaSettingsLayout::DeleteSection'),\n    title: 'Delete inbox',\n  },\n};\n\nexport const DeleteSection = storyCreator('Shared::BetaSettingsLayout::DeleteSection');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSettingsLayout::Section\\n  @title={{@title}}\\n  @description={{or @description \\'This action cannot be undone. Proceed with care.\\'}}\\n  @isDangerZone={{true}}\\n  class=\\\"c-shared-beta-settings-layout-delete-section\\\"\\n  data-test-shared-beta-settings-layout-delete-section\\n  ...attributes\\n>\\n  <Feature::CriticalActionConfirmation::Button\\n    @buttonText={{or @buttonTitle @title}}\\n    @entityName={{@entityName}}\\n    @warningMessage={{@warningMessage}}\\n    @cancelText=\\\"Cancel\\\"\\n    @onConfirm={{@onDelete}}\\n    @disabled={{@isDeleteDisabled}}\\n    data-test-shared-beta-settings-layout-delete-section-button\\n  />\\n</Shared::BetaSettingsLayout::Section>\\n', { moduleName: 'client/shared/components/beta-settings-layout/delete-section/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Navigation::BetaBreadcrumb />\\n\\n<Shared::DataDisplay::BetaIcon\\n  @iconName=\\\"close\\\"\\n  {{on \\'click\\' @onClose}}\\n  role=\\\"button\\\"\\n  class=\\\"c-beta-settings-layout-close-button\\\"\\n  data-test-close-button\\n  data-test-shared-beta-settings-layout-header-close-button\\n/>\\n', { moduleName: 'client/shared/components/beta-settings-layout/header/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface BetaSettingsLayoutSaveButtonArgs {\n  isSaveDisabled?: boolean;\n  onSave: () => void | Promise<void>;\n  onDiscard: () => void | Promise<void>;\n}\n\n@validateArguments\nexport default class BetaSettingsLayoutSaveButtonComponent extends Component<BetaSettingsLayoutSaveButtonArgs> {\n  static propTypes = {\n    isSaveDisabled: PropTypes.bool,\n    onSave: PropTypes.func.isRequired,\n    onDiscard: PropTypes.func.isRequired,\n  };\n}\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/BetaSettingsLayout/SaveButton',\n  component: 'Shared::BetaSettingsLayout::SaveButton',\n  args: {\n    ...getDefaultRequiredArgs('Shared::BetaSettingsLayout::SaveButton'),\n  },\n};\n\nexport const SaveButton = storyCreator('Shared::BetaSettingsLayout::SaveButton');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-shared-beta-settings-layout-save-button\\\"\\n  data-test-shared-beta-settings-layout-save-button\\n  ...attributes\\n>\\n  <Shared::Button\\n    @type=\\\"ghost\\\"\\n    @text=\\\"Discard\\\"\\n    @onClick={{@onDiscard}}\\n    disabled={{@isSaveDisabled}}\\n    data-test-shared-beta-settings-layout-save-button-discard\\n  />\\n  <Shared::Button\\n    @type=\\\"primary\\\"\\n    @text=\\\"Save changes\\\"\\n    @onClick={{@onSave}}\\n    disabled={{@isSaveDisabled}}\\n    data-test-shared-beta-settings-layout-save-button-save\\n  />\\n</div>\\n', { moduleName: 'client/shared/components/beta-settings-layout/save-button/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-shared-beta-settings-layout-section-for-table\\\"\\n  data-test-shared-beta-settings-layout-section-for-table\\n  ...attributes\\n>\\n  <div class=\\\"c-shared-beta-settings-layout-section-for-table__header\\\">\\n    <span\\n      class=\\\"c-shared-beta-settings-layout-section-for-table__header-title\\\"\\n      data-test-shared-beta-settings-layout-section-for-table-title\\n    >\\n      {{@title}}\\n    </span>\\n    {{#if (or @linkRouteName @onLinkClick)}}\\n      <Shared::Navigation::BetaLinkTo\\n        @type=\\\"primary\\\"\\n        @routeName={{@linkRouteName}}\\n        @queryParams={{@linkQueryParams}}\\n        @text={{@linkTitle}}\\n        @onClick={{@onLinkClick}}\\n        @underline={{false}}\\n        class=\\\"c-shared-beta-settings-layout-section-for-table__header-link\\\"\\n        data-test-shared-beta-settings-layout-section-for-table-link\\n      />\\n    {{/if}}\\n    <div\\n      class=\\\"c-shared-beta-settings-layout-section-for-table__header-actions\\\"\\n      data-test-shared-beta-settings-layout-section-for-table-actions\\n    >\\n      {{yield to=\\'header-buttons\\'}}\\n    </div>\\n  </div>\\n  <div\\n    class=\\\"c-shared-beta-settings-layout-section-for-table__content\\\"\\n    data-test-shared-beta-settings-layout-section-for-table-content\\n  >\\n    {{yield}}\\n  </div>\\n</div>\\n', { moduleName: 'client/shared/components/beta-settings-layout/section-for-table/template.hbs' });\n","import Component from '@ember/component';\nimport { tagName } from '@ember-decorators/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@tagName('')\n@validateArguments\nexport default class BetaSettingsLayoutSectionComponent extends Component {\n  static propTypes = {\n    description: PropTypes.oneOfType([PropTypes.string, PropTypes.htmlSafe]),\n    dangerClass: PropTypes.string,\n    title: PropTypes.string,\n    isDangerZone: PropTypes.bool,\n    isFooter: PropTypes.bool,\n    hasWideGap: PropTypes.bool,\n    size: PropTypes.oneOf(['small', 'regular', 'large']),\n    displayDraftTag: PropTypes.bool,\n    colorDraftTag: PropTypes.string,\n  };\n\n  init(...args) {\n    super.init(...args);\n\n    if (!this.size) {\n      this.size = 'regular';\n    }\n  }\n}\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/BetaSettingsLayout/Section',\n  component: 'Shared::BetaSettingsLayout::Section',\n  args: {\n    ...getDefaultRequiredArgs('Shared::BetaSettingsLayout::Section'),\n    title: 'My Title',\n    description: 'A really long description',\n  },\n};\n\nexport const Section = storyCreator(\n  'Shared::BetaSettingsLayout::Section',\n  `\n  <Shared::BetaLabel\n    @label=\"Collection\"\n    @for=\"inbox-collection\"\n    class=\"c-feature-inbox-settings__label\"\n  >\n    <Shared::BetaInput\n      @value=\"My Collection Name\"\n      @disabled={{true}}\n      name=\"inbox-collection\"\n      class=\"c-feature-inbox-settings__label\"\n    />\n  </Shared::BetaLabel>\n\n  <Shared::BetaLabel\n    @label=\"Segment\"\n    @for=\"inbox-segment\"\n    class=\"c-feature-inbox-settings__label\"\n  >\n    <Shared::BetaInput\n      @value=\"My Segment Name\"\n      @disabled={{true}}\n      name=\"inbox-segment\"\n      class=\"c-feature-inbox-settings__label\"\n    />\n  </Shared::BetaLabel>\n  `,\n);\n\nexport const SectionWithSaveButton = storyCreator(\n  'Shared::BetaSettingsLayout::Section',\n  `\n    <:after-title>\n      <Shared::BetaSettingsLayout::SaveButton\n        @onSave={{(do-nothing-function)}}\n        @onDiscard={{(do-nothing-function)}}\n        @isSaveDisabled={{false}}\n      />\n    </:after-title>\n  <:default>\n    <Shared::BetaLabel\n      @label=\"Collection\"\n      @for=\"inbox-collection\"\n      class=\"c-feature-inbox-settings__label\"\n    >\n      <Shared::BetaInput\n        @value=\"My Collection Name\"\n        @disabled={{true}}\n        name=\"inbox-collection\"\n        class=\"c-feature-inbox-settings__label\"\n      />\n    </Shared::BetaLabel>\n\n    <Shared::BetaLabel\n      @label=\"Segment\"\n      @for=\"inbox-segment\"\n      class=\"c-feature-inbox-settings__label\"\n    >\n      <Shared::BetaInput\n        @value=\"My Segment Name\"\n        @disabled={{true}}\n        name=\"inbox-segment\"\n        class=\"c-feature-inbox-settings__label\"\n      />\n    </Shared::BetaLabel>\n  </:default>\n  `,\n);\n\nexport const SectionWithCustomButton = storyCreator(\n  'Shared::BetaSettingsLayout::Section',\n  `\n    <:after-title>\n      <Shared::Button::BetaButton\n        @type=\"info\"\n        @text=\"Custom Button\"\n        @action={{(do-nothing-function)}}\n        style=\"margin-top: 20px;\"\n      />\n    </:after-title>\n  <:default>\n    <Shared::BetaLabel\n      @label=\"Collection\"\n      @for=\"inbox-collection\"\n      class=\"c-feature-inbox-settings__label\"\n    >\n      <Shared::BetaInput\n        @value=\"My Collection Name\"\n        @disabled={{true}}\n        name=\"inbox-collection\"\n        class=\"c-feature-inbox-settings__label\"\n      />\n    </Shared::BetaLabel>\n\n    <Shared::BetaLabel\n      @label=\"Segment\"\n      @for=\"inbox-segment\"\n      class=\"c-feature-inbox-settings__label\"\n    >\n      <Shared::BetaInput\n        @value=\"My Segment Name\"\n        @disabled={{true}}\n        name=\"inbox-segment\"\n        class=\"c-feature-inbox-settings__label\"\n      />\n    </Shared::BetaLabel>\n  </:default>\n  `,\n);\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @isDangerZone}}\\n  <Shared::ContentSeparator @withSideMargin={{true}} class=\\\"c-beta-setting-layout-separator\\\" />\\n{{/if}}\\n\\n<div\\n  class=\\\"c-beta-settings-layout-section c-beta-settings-layout-section--{{this.size}}\\\"\\n  data-test-section={{if @isDangerZone \\'Danger Zone\\' @title}}\\n  data-test-shared-beta-settings-layout-section\\n  ...attributes\\n>\\n  <div\\n    class=\\\"l-beta-settings-layout-section-info l-beta-settings-layout-section-info--{{this.size}}\\\"\\n  >\\n    <div class=\\\"l-beta-settings-layout-section-info__text\\\">\\n      <h1\\n        class=\\\"c-beta-settings-layout-section__title\\n          {{if @isDangerZone \\'c-beta-settings-layout-section__title--danger-zone\\'}}\\\"\\n        data-test-shared-beta-settings-layout-section-title\\n      >\\n        {{if (and @isDangerZone (not @title)) \\'Danger Zone\\' @title}}\\n\\n        {{#if @locked}}\\n          <Shared::DataDisplay::BetaIcon @iconName=\\\"lock\\\" />\\n        {{/if}}\\n\\n        {{#if @displayDraftTag}}\\n          <Shared::DataDisplay::BetaBadge\\n            @value=\\\"DRAFT\\\"\\n            @color={{@colorDraftTag}}\\n            @style=\\\"dashed\\\"\\n            class=\\\"c-beta-settings-layout-section__additional-tag\\\"\\n          />\\n        {{/if}}\\n      </h1>\\n      {{#if @description}}\\n        <span\\n          class=\\\"c-beta-settings-layout-section__description\\\"\\n          data-test-shared-beta-settings-layout-section-description\\n        >\\n          {{@description}}\\n        </span>\\n      {{/if}}\\n\\n      {{yield \\'c-beta-settings-layout-section__description\\' to=\\'description\\'}}\\n    </div>\\n    {{yield to=\\'after-title\\'}}\\n  </div>\\n\\n  <div\\n    class=\\\"{{get-classes-with-modifiers\\n        \\'l-beta-settings-layout-section-content\\'\\n        this.size\\n        danger-zone=@isDangerZone\\n        wide-gap=@hasWideGap\\n      }}\\n      {{if (and @isDangerZone @dangerClass) @dangerClass}}\\\"\\n  >\\n    {{#if (has-block \\'header-buttons\\')}}\\n      <div class=\\\"c-beta-settings-layout-section__header-buttons\\\">\\n        {{yield to=\\'header-buttons\\'}}\\n      </div>\\n    {{/if}}\\n    {{yield}}\\n  </div>\\n</div>\\n', { moduleName: 'client/shared/components/beta-settings-layout/section/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @onClose}}\\n  <Shared::BetaSettingsLayout::Header @onClose={{@onClose}} />\\n{{/if}}\\n\\n<div\\n  class={{get-classes-with-modifiers \\'c-beta-settings-layout\\' no-padding=@noPadding}}\\n  ...attributes\\n>\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/shared/components/beta-settings-layout/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nexport default class BetaSettingsMenuComponent extends Component {\n  @action\n  cancelBubbling(event) {\n    event.stopPropagation();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"l-beta-settings-menu\\\"\\n  {{sortable-group onChange=@reorderRows groupName=@groupName}}\\n  ...attributes\\n>\\n  {{! template-lint-disable no-invalid-interactive }}\\n  <ul class=\\\"c-beta-settings-menu\\\" {{on \\'click\\' (stop-propagation)}}>\\n    {{#each @rows as |row|}}\\n      {{#let (concat \\'beta-settings-menu-\\' (generate-guid)) as |tooltipTargetId|}}\\n        <li\\n          class=\\\"c-beta-settings-menu-item\\n            {{unless row.isVisible \\'c-beta-settings-menu-item--visibility-off\\'}}\\n            {{if row.isDisabled \\'c-beta-settings-menu-item--disabled\\'}}\\\"\\n          {{sortable-item model=row groupName=@groupName}}\\n        >\\n          <Shared::DataDisplay::BetaIcon\\n            @iconName={{if row.isVisible \\'visibility\\' \\'visibility_off\\'}}\\n            class=\\\"c-beta-settings-menu-item__icon js-beta-settings-menu-item-icon\\\"\\n            role=\\\"button\\\"\\n            {{on\\n              \\'click\\'\\n              (stop-propagation\\n                (if row.isDisabled (do-nothing-function) (fn @toggleVisibility row))\\n              )\\n            }}\\n            data-test-beta-settings-menu-item-icon\\n          />\\n          <span\\n            id={{tooltipTargetId}}\\n            class=\\\"c-beta-settings-menu-item__name\\\"\\n            {{sortable-handle}}\\n            data-test-beta-settings-menu-item={{row.field.displayName}}\\n          >\\n            {{row.field.displayName}}\\n          </span>\\n        </li>\\n        {{#if (is-text-truncated (concat \\'#\\' tooltipTargetId))}}\\n          <Shared::Feedback::BetaTooltip\\n            @targetId={{tooltipTargetId}}\\n            @hideDelay={{250}}\\n            @side=\\\"right\\\"\\n          >\\n            {{row.field.displayName}}\\n          </Shared::Feedback::BetaTooltip>\\n        {{/if}}\\n      {{/let}}\\n    {{/each}}\\n  </ul>\\n</div>\\n', { moduleName: 'client/shared/components/beta-settings-menu/template.hbs' });\n","import type { SortingOrderEnum } from 'client/data/models/collection';\n\nimport Component from '@glimmer/component';\n\ninterface Args {\n  columns: string[] | unknown[];\n  rows: unknown[];\n  columnComponent?: string;\n  columnSort?: { by: string; order: SortingOrderEnum };\n  columnsClass?: string;\n  rowClick?: () => void;\n  alignColumnLeft?: boolean;\n  isFirstColumnLeftAligned?: boolean;\n  embedded?: boolean;\n  sticky?: boolean;\n  isLoading?: boolean;\n  // Specific to users-table-with-pagination\n  checkbox?: boolean;\n  checkboxValue?: boolean;\n\n  // Check that the current row isn't over the given limit if any\n  limit?: number;\n\n  showMoreOptions?: {\n    routeName: string;\n    routeParameters?: unknown[];\n  };\n}\n\nexport default class BetaTableComponent extends Component<Args> {\n  get rowClick() {\n    return this.args.rowClick || (() => {});\n  }\n}\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport { SortingOrderEnum } from 'client/data/models/collection';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface BetaTableHeaderColumnComponentArgs {\n  onSort?: (sort: { order: SortingOrderEnum; by: string }) => void;\n  sortingField?: string;\n  isFirstColumnLeftAligned?: boolean;\n  alignColumnLeft?: boolean;\n  sticky?: boolean;\n  embedded?: boolean;\n  order?: SortingOrderEnum;\n}\n\n@validateArguments\nexport default class BetaTableHeaderColumnComponent extends Component<BetaTableHeaderColumnComponentArgs> {\n  static propTypes = {\n    onSort: PropTypes.func,\n    sortingField: PropTypes.string,\n    isFirstColumnLeftAligned: PropTypes.bool,\n    alignColumnLeft: PropTypes.bool,\n    sticky: PropTypes.bool,\n    embedded: PropTypes.bool,\n    order: PropTypes.oneOf(Object.values(SortingOrderEnum)),\n  };\n\n  @action\n  handleSort() {\n    if (this.args.onSort) {\n      const order =\n        !this.args.order || this.args.order === SortingOrderEnum.Ascending\n          ? SortingOrderEnum.Descending\n          : SortingOrderEnum.Ascending;\n\n      this.args.onSort({ order, by: this.args.sortingField });\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<th\\n  class={{get-classes-with-modifiers\\n    \\'c-beta-table-header-column\\'\\n    is-sortable=(or @onSort false)\\n    first-column-left-aligned=(or @isFirstColumnLeftAligned false)\\n    left-aligned=(or @alignColumnLeft false)\\n    embedded-table=@embedded\\n  }}\\n  role=\\\"button\\\"\\n  {{on \\'click\\' this.handleSort}}\\n  data-test-table-header-column\\n  ...attributes\\n>\\n  {{#if @order}}\\n    <Shared::DataDisplay::BetaIcon\\n      class={{get-classes-with-modifiers\\n        \\'c-beta-table-header-column__icon\\'\\n        descending=(eq @order \\'descending\\')\\n      }}\\n      @iconName=\\\"arrow_upward\\\"\\n      @size=\\\"custom\\\"\\n      data-test-table-header-column-icon\\n    />\\n  {{/if}}\\n\\n  {{yield}}\\n\\n</th>\\n', { moduleName: 'client/shared/components/beta-table/header-column/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<td\\n  class=\\\"{{get-classes-with-modifiers\\n      \\'c-beta-table-row-column\\'\\n      left-aligned=(eq @alignment \\'left\\')\\n      right-aligned=(eq @alignment \\'right\\')\\n      first-row=@isFirstRow\\n      capitalize=@shouldCapitalize\\n    }}\\n    {{@columnClass}}\\n    \\\"\\n  ...attributes\\n>\\n  {{yield}}\\n</td>\\n', { moduleName: 'client/shared/components/beta-table/row-column/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers \\'l-beta-table-container\\' scrollable=@isScrollable}}\\n  ...attributes\\n>\\n  {{! template-lint-disable table-groups }}\\n  <table\\n    class={{get-classes-with-modifiers\\n      \\'c-beta-table\\'\\n      embedded=@embedded\\n      sticky-header=@sticky\\n      scrollable=@isScrollable\\n    }}\\n  >\\n    <thead\\n      class=\\\"l-beta-table-headers {{if (or @sticky @embedded) \\'c-beta-table__header--sticky\\'}}\\\"\\n    >\\n      <tr class=\\\"l-beta-table-headers__line\\\">\\n        {{#if @checkbox}}\\n          <Shared::BetaTable::HeaderColumn class=\\\"c-beta-table-header-column--checkbox\\\">\\n            <Form::BetaCheckbox\\n              @value={{@checkboxValue}}\\n              @defaultValue={{false}}\\n              @small={{true}}\\n              data-test-migration-checkbox\\n            />\\n          </Shared::BetaTable::HeaderColumn>\\n        {{/if}}\\n        {{#each @columns as |column|}}\\n          {{#let\\n            (or column.name column) (or column.sortBy (or column.name column))\\n            as |columnName columnSortBy|\\n          }}\\n            <Shared::BetaTable::HeaderColumn\\n              class=\\\"{{concat @columnsClass \\'--\\' (dasherize columnName)}}\\n                {{column.parentClass}}\\n                {{@columnsClass}}\\n                \\\"\\n              @isFirstColumnLeftAligned={{@isFirstColumnLeftAligned}}\\n              @alignColumnLeft={{@alignColumnLeft}}\\n              @embedded={{@embedded}}\\n              @onSort={{column.onSort}}\\n              @order={{if (eq @columnSort.by columnSortBy) @columnSort.order null}}\\n              @sortingField={{columnSortBy}}\\n              data-test-table-header-column={{columnName}}\\n            >\\n              {{#if @columnComponent}}\\n                {{component @columnComponent column=column}}\\n              {{else}}\\n                {{columnName}}\\n              {{/if}}\\n            </Shared::BetaTable::HeaderColumn>\\n          {{/let}}\\n        {{/each}}\\n      </tr>\\n    </thead>\\n    {{#if @isLoading}}\\n      <Shared::DataDisplay::Table::Loader\\n        class=\\\"l-beta-table-body\\\"\\n        @rowsCount={{20}}\\n        @hasCheckbox={{@checkbox}}\\n        @columnsCount={{@columns.length}}\\n      />\\n    {{else}}\\n      <tbody class=\\\"l-beta-table-body\\\">\\n        {{#each @rows as |row index|}}\\n          {{! check that the current row isn\\'t over the given limit if any }}\\n          {{#unless (and @limit (gte index @limit))}}\\n            <tr\\n              role=\\\"button\\\"\\n              class=\\\"l-beta-table-body__line {{if @rowClass @rowClass}}\\\"\\n              {{on \\'click\\' (fn this.rowClick row)}}\\n              data-test-table-row={{index}}\\n            >\\n              {{yield\\n                (component\\n                  \\'shared/beta-table/row-column\\'\\n                  alignment=(if @alignColumnLeft \\'left\\')\\n                  isFirstRow=(eq index 0)\\n                )\\n                row\\n                index\\n              }}\\n            </tr>\\n          {{/unless}}\\n        {{/each}}\\n      </tbody>\\n    {{/if}}\\n\\n    {{#if @showMoreOptions.display}}\\n      <tfoot class=\\\"l-beta-table-footer\\\" data-test-table-footer>\\n        <tr class=\\\"l-beta-table-footer__line\\\">\\n          <td colspan={{@columns.length}} class=\\\"c-beta-table-row-column\\\">\\n            <Shared::Navigation::BetaLinkTo\\n              @type=\\\"primary\\\"\\n              @routeName={{@showMoreOptions.routeName}}\\n              @routeParameters={{@showMoreOptions.routeParameters}}\\n              @text=\\\"Show more...\\\"\\n              @underline={{false}}\\n              data-test-link=\\\"show-more-link\\\"\\n            />\\n          </td>\\n        </tr>\\n      </tfoot>\\n    {{/if}}\\n  </table>\\n</div>\\n', { moduleName: 'client/shared/components/beta-table/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { tagName } from '@ember-decorators/component';\n\nimport { argument, oneOf, optional } from 'client/decorators/argument';\nimport AbstractBetaInput from 'client/legacy/abstract-components/abstract-beta-input';\n\n@tagName('')\nexport default class BetaTextareaComponent extends AbstractBetaInput {\n  @argument(optional(String)) value;\n  @argument(optional(Boolean)) resizable = true;\n  @argument(optional(Number)) height;\n  @argument(optional(String)) inputId;\n  @argument(optional(oneOf('xs', 'sm', 'md', 'lg'))) size;\n  @argument(optional(Boolean)) autoGrow = false;\n\n  get currentElementId() {\n    return this.inputId || guidFor(this);\n  }\n\n  get currentElement() {\n    return document.getElementById(this.currentElementId);\n  }\n\n  @action\n  updateHeight() {\n    if (this.height) {\n      this.currentElement.style.setProperty('--beta-textarea-height', `${this.height}px`);\n    }\n  }\n\n  @computed('state')\n  get stateClassName() {\n    if (this.state) {\n      return `c-beta-textarea--${this.state}`;\n    }\n    return '';\n  }\n\n  @action\n  handleInput(event) {\n    this.set('value', event.target.value);\n\n    this.onInput?.(event, this.value, this.oldValue);\n\n    if (this.value !== this.oldValue) {\n      this.onChange?.(this.value, this.oldValue, event);\n    }\n\n    if (this.value === '') {\n      this.onEmpty?.();\n    }\n\n    this.oldValue = this.value;\n  }\n\n  @action\n  setAutoGrow() {\n    if (!this.autoGrow || CSS.supports('field-sizing', 'content')) return;\n\n    // Fallback for browsers that do not support field-sizing: content\n    const textarea = this.currentElement;\n\n    if (!textarea) return;\n\n    // Reset height to auto to correctly recalculate scrollHeight\n    this.currentElement.style.height = 'auto';\n    this.currentElement.style.height = `${textarea.scrollHeight}px`;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/BetaTextarea',\n  component: 'Shared::BetaTextarea',\n  argTypes: {\n    value: {\n      type: 'string',\n      description: \"The input's value.\",\n      table: {\n        category: 'Properties',\n      },\n    },\n    state: {\n      type: 'string',\n      description: \"The input's state.\",\n      options: ['loading', 'empty', 'success', 'warning', 'error', 'info'],\n      control: { type: 'select' },\n      table: {\n        category: 'Properties',\n      },\n    },\n    size: {\n      type: 'string',\n      description: \"The input's size.\",\n      options: ['xs', 'sm', 'md', 'lg'],\n      control: { type: 'select' },\n      table: {\n        category: 'Properties',\n      },\n    },\n    height: {\n      type: 'number',\n      description: \"The input's height.\",\n      table: {\n        category: 'Properties',\n      },\n    },\n    resizable: {\n      type: 'boolean',\n      description: 'Whether the input is resizable.',\n      table: {\n        category: 'Properties',\n      },\n    },\n    disabled: {\n      type: 'boolean',\n      description: \"The `input` tag's `disabled` attribute.\",\n      table: {\n        category: 'HTML attributes',\n      },\n    },\n    inputId: {\n      type: 'string',\n      description: \"The `input` tag's `id` attribute.\",\n      table: {\n        category: 'HTML attributes',\n      },\n    },\n    placeholder: {\n      type: 'string',\n      description: \"The `input` tag's `placeholder` attribute.\",\n      table: {\n        category: 'HTML attributes',\n      },\n    },\n    onChange: {\n      type: 'function',\n      description: \"Called on the input's `change` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onClick: {\n      type: 'function',\n      description: \"Called on the input's `click` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onClickIcon: {\n      type: 'function',\n      description: \"Called on the icon's `click` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onEnter: {\n      type: 'function',\n      description: \"Called on the input's `keyup` event with the enter key.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onFocus: {\n      type: 'function',\n      description: \"Called on the input's `focus` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onInput: {\n      type: 'function',\n      description: \"Called on the input's `input` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onKeyPress: {\n      type: 'function',\n      description: \"Called on the input's `keypress` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onKeyUp: {\n      type: 'function',\n      description: \"Called on the input's `keyup` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onPaste: {\n      type: 'function',\n      description: \"Called on the input's `paste` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    onSubmit: {\n      type: 'function',\n      description: \"Called on the input's `submit` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n  },\n  args: {\n    value: 'Forest Admin',\n  },\n};\n\nexport const Base = storyCreator('Shared::BetaTextarea');\n\nexport const AllTypes = () => ({\n  template: hbs`\n    <div style=\"display: flex; flex-direction: row; gap: 16px;\">\n      <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n        <Shared::BetaTextarea @placeholder=\"Extra Small placeholder\" @size=\"xs\" /><br />\n        <Shared::BetaTextarea @placeholder=\"Small placeholder\" @size=\"sm\" /><br />\n        <Shared::BetaTextarea @placeholder=\"Medium placeholder\" @size=\"md\" /><br />\n        <Shared::BetaTextarea @placeholder=\"Large placeholder\" @size=\"lg\" /><br />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n        <Shared::BetaTextarea @value='Extra Small' @placeholder=\"placeholder\" @size=\"xs\" /><br />\n        <Shared::BetaTextarea @value='Small' @placeholder=\"placeholder\" @size=\"sm\" /><br />\n        <Shared::BetaTextarea @value='Medium' @placeholder=\"placeholder\" @size=\"md\" /><br />\n        <Shared::BetaTextarea @value='Large' @placeholder=\"placeholder\" @size=\"lg\" /><br />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n        <Shared::BetaTextarea @value='Extra Small' @state=\"error\" @size=\"xs\" /><br />\n        <Shared::BetaTextarea @value='Small' @state=\"error\" @size=\"sm\" /><br />\n        <Shared::BetaTextarea @value='Medium' @state=\"error\" @size=\"md\" /><br />\n        <Shared::BetaTextarea @value='Large' @state=\"error\" @size=\"lg\" /><br />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n        <Shared::BetaTextarea @value='Extra Small' @state=\"warning\" @size=\"xs\" /><br />\n        <Shared::BetaTextarea @value='Small' @state=\"warning\" @size=\"sm\" /><br />\n        <Shared::BetaTextarea @value='Medium' @state=\"warning\" @size=\"md\" /><br />\n        <Shared::BetaTextarea @value='Large' @state=\"warning\" @size=\"lg\" /><br />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n        <Shared::BetaTextarea @value='Extra Small' @state=\"success\" @size=\"xs\" /><br />\n        <Shared::BetaTextarea @value='Small' @state=\"success\" @size=\"sm\" /><br />\n        <Shared::BetaTextarea @value='Medium' @state=\"success\" @size=\"md\" /><br />\n        <Shared::BetaTextarea @value='Large' @state=\"success\" @size=\"lg\" /><br />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n        <Shared::BetaTextarea @value='Extra Small' @state=\"info\" @size=\"xs\" /><br />\n        <Shared::BetaTextarea @value='Small' @state=\"info\" @size=\"sm\" /><br />\n        <Shared::BetaTextarea @value='Medium' @state=\"info\" @size=\"md\" /><br />\n        <Shared::BetaTextarea @value='Large' @state=\"info\" @size=\"lg\" /><br />\n      </div>\n      <div style=\"display: flex; flex-direction: column; gap: 8px;\">\n        <Shared::BetaTextarea @value='Extra Small' @disabled={{true}} @size=\"xs\" /><br />\n        <Shared::BetaTextarea @value='Small' @disabled={{true}} @size=\"sm\" /><br />\n        <Shared::BetaTextarea @value='Medium' @disabled={{true}} @size=\"md\" /><br />\n        <Shared::BetaTextarea @value='Large' @disabled={{true}} @size=\"lg\" /><br />\n      </div>\n    </div>\n  `,\n});\n\nexport const States = () => ({\n  template: hbs`<Shared::BetaTextarea @value='Default' /><br />\n<Shared::BetaTextarea @value='Success' @state='success' /><br />\n<Shared::BetaTextarea @value='Warning' @state='warning' /><br />\n<Shared::BetaTextarea @value='Error' @state='error' /><br />\n<Shared::BetaTextarea @value='Info' @state='info' />\n`,\n});\n\nexport const Disabled = () => ({\n  template: hbs`<Shared::BetaTextarea @value='Disabled' @disabled={{true}} />\n`,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<textarea\\n  {{did-insert this.updateHeight}}\\n  {{did-insert this.setAutoGrow}}\\n  {{did-update this.setAutoGrow @value}}\\n  {{did-update this.updateHeight @height}}\\n  id={{this.currentElementId}}\\n  value={{@value}}\\n  {{! disabled and placeholder can already be overriden by the splash attributes\\n    BUT until BetaInput has been refactored to work with splash attributes we need to keep them}}\\n  disabled={{@disabled}}\\n  placeholder={{@placeholder}}\\n  {{on \\'input\\' this.handleInput}}\\n  {{on \\'click\\' this.handleClick}}\\n  {{on \\'submit\\' (optional @onSubmit)}}\\n  {{on \\'focus\\' (optional @onFocus)}}\\n  {{on \\'blur\\' (optional @onBlur)}}\\n  {{on \\'change\\' this.handleChange}}\\n  {{on \\'paste\\' (optional @onPaste)}}\\n  {{on \\'keyup\\' this.handleKeyUp}}\\n  {{! template-lint-disable no-pointer-down-event-binding }}\\n  {{on \\'keydown\\' (optional @onKeyDown)}}\\n  class=\\\"{{this.stateClassName}}\\n    {{get-classes-with-modifiers\\n      \\'c-beta-textarea\\'\\n      (or @size \\'sm\\')\\n      no-resize=(eq @resizable false)\\n      height=@height\\n      autogrow=@autoGrow\\n    }}\\n    \\\"\\n  data-test-beta-textarea\\n  ...attributes\\n>\\n</textarea>\\n', { moduleName: 'client/shared/components/beta-textarea/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\ninterface SharedButtonSplitDropdownArgs {\n  onOpenDropdown: () => void;\n  onClickButton: () => void;\n  text: string;\n  isLoading?: boolean;\n  disabled?: boolean;\n  // For dropdown\n  dropdownOptions?: unknown[];\n  defaultOption?: unknown;\n  onSelectValue: (value: unknown) => void;\n  currentValue?: unknown;\n  onSelectDefault?: () => void;\n  isDropdownLoading?: boolean;\n}\n\nexport default class SharedButtonSplitDropdown extends Component<SharedButtonSplitDropdownArgs> {\n  @tracked isDropdownOpened = false;\n\n  @action\n  async handleClickDropdownButton() {\n    this.isDropdownOpened = !this.isDropdownOpened;\n    if (this.isDropdownOpened) {\n      this.args.onOpenDropdown();\n    }\n  }\n\n  @action\n  async handleHideDropdown() {\n    this.isDropdownOpened = false;\n  }\n}\n","import hbs from 'htmlbars-inline-precompile';\n\nexport default {\n  title: 'Shared/ButtonSplitDropdown',\n  component: 'Shared::ButtonSplitDropdown',\n  argTypes: {\n    text: {\n      type: {\n        name: 'string',\n        required: true,\n      },\n      description: 'Text displayed by the main button',\n      table: {\n        category: 'Properties',\n      },\n    },\n    disabled: {\n      type: {\n        name: 'boolean',\n        required: false,\n      },\n      description: 'Whether the button is disabled',\n      table: {\n        category: 'Properties',\n      },\n    },\n    isLoading: {\n      type: {\n        name: 'boolean',\n        required: false,\n      },\n      description: 'Whether the button is in a loading state',\n      table: {\n        category: 'Properties',\n      },\n    },\n    onClickButton: {\n      action: 'onClickButton',\n      description: 'Action to be called when the user click on the the main button',\n      table: {\n        category: 'Actions',\n      },\n    },\n    onOpenDropdown: {\n      action: 'onClickDropdown',\n      description: 'Action to be called when the users opens the dropdown',\n      table: {\n        category: 'Actions',\n      },\n    },\n    dropdownOptions: {\n      type: {\n        name: 'array',\n        required: false,\n      },\n      description: 'List of dropdown content items',\n      table: {\n        category: 'Properties',\n      },\n      defaultOption: {\n        type: {\n          name: 'any',\n          required: false,\n        },\n        description: 'Text or object for the default option',\n        table: {\n          category: 'Properties',\n        },\n      },\n      onSelectValue: {\n        action: 'onSelectValue',\n        description: 'Action to be called a dropdown item is clicked',\n        table: {\n          category: 'Actions',\n        },\n      },\n      currentValue: {\n        type: {\n          name: 'any',\n          required: false,\n        },\n        description: 'Selected item in the dropdown',\n        table: {\n          category: 'Properties',\n        },\n      },\n      onSelectDefault: {\n        action: 'onSelectDefault',\n        description: 'Action to be called when the default option is clicked',\n        table: {\n          category: 'Actions',\n        },\n      },\n      isDropdownLoading: {\n        type: {\n          name: 'boolean',\n          required: false,\n        },\n        description: 'Whether the dropdown is in a loading state',\n        table: {\n          category: 'Properties',\n        },\n      },\n    },\n  },\n};\n\nexport const CompleteExample = (args) => {\n  return {\n    template: hbs`\n      <Shared::PortalFor @name=\"dropdown\" />\n      <Shared::ButtonSplitDropdown\n        @text=\"Main button\"\n        @onClickButton={{(do-nothing-function)}}\n        @onOpenDropdown={{(do-nothing-function)}}\n        @dropdownOptions={{null}}\n        @onSelectValue={{(do-nothing-function)}}\n        @defaultOption={{'Default option'}}\n        @onSelectDefault={{(do-nothing-function)}}\n        @currentValue={{null}}\n      />\n`,\n    context: args,\n  };\n};\n\nexport const LoadingExample = (args) => {\n  return {\n    template: hbs`\n      <Shared::PortalFor @name=\"dropdown\" />\n      <Shared::ButtonSplitDropdown\n        @text=\"Main button\"\n        @onClickButton={{(do-nothing-function)}}\n        @onOpenDropdown={{(do-nothing-function)}}\n        @dropdownOptions={{null}}\n        @onSelectValue={{(do-nothing-function)}}\n        @defaultOption={{'Default option'}}\n        @onSelectDefault={{(do-nothing-function)}}\n        @currentValue={{null}}\n        @isLoading={{true}}\n        @isDropdownLoading={{true}}\n      />\n`,\n    context: args,\n  };\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let (generate-guid) as |dropdownId|}}\\n  <div class=\\\"c-shared-button-split-dropdown\\\" data-test-shared-button-split-dropdown ...attributes>\\n    <Shared::Button\\n      @text={{@text}}\\n      @onClick={{@onClickButton}}\\n      @isLoading={{@isLoading}}\\n      @isIconAfterText={{true}}\\n      disabled={{@disabled}}\\n      id={{dropdownId}}\\n      data-test-shared-button-split-dropdown-text-button\\n    >\\n      <Shared::BetaIconButton\\n        @icon={{if this.isDropdownOpened \\'chevron_right\\' \\'expand_more\\'}}\\n        @size=\\\"medium\\\"\\n        class=\\\"c-shared-button-split-dropdown__icon\\\"\\n        disabled={{@disabled}}\\n        {{on \\'click\\' (stop-propagation this.handleClickDropdownButton)}}\\n        data-test-shared-button-split-dropdown-icon\\n      />\\n    </Shared::Button>\\n  </div>\\n  {{#if this.isDropdownOpened}}\\n    <Form::BetaSelect::DropdownContent\\n      @options={{@dropdownOptions}}\\n      @onSelectValue={{chain-fn @onSelectValue this.handleHideDropdown}}\\n      @currentValue={{@currentValue}}\\n      @onSelectDefault={{@onSelectDefault}}\\n      @defaultOption={{@defaultOption}}\\n      @onHideDropdown={{this.handleHideDropdown}}\\n      @hasSearchInput={{false}}\\n      @hasTitle={{@hasTitle}}\\n      @emptyText={{@emptyText}}\\n      @hasCustomItemRenderer={{has-block \\'item-renderer\\'}}\\n      @isOptionsNotMapped={{has-block \\'item-renderer\\'}}\\n      @inputId={{dropdownId}}\\n      @isLoading={{@isDropdownLoading}}\\n      class={{@drownDownContentClass}}\\n    >\\n      <:title>\\n        {{yield to=\\'dropdown-title\\'}}\\n      </:title>\\n\\n      <:item-renderer as |option|>\\n        {{yield option to=\\'item-renderer\\'}}\\n      </:item-renderer>\\n    </Form::BetaSelect::DropdownContent>\\n  {{/if}}\\n{{/let}}\\n', { moduleName: 'client/shared/components/button-split-dropdown/template.hbs' });\n","import { action } from '@ember/object';\nimport { and } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { Promise } from 'rsvp';\n\nimport { HTMLSafeElement, argument, oneOf, oneOfType, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport CssClassHelper from 'client/utils/css-class-helper';\n\nexport const TYPES = [\n  'custom',\n  'danger',\n  'danger-outline',\n  'editor',\n  'editor-light',\n  'info',\n  'link-custom',\n  'link-danger',\n  'link-info',\n  'link-inherit',\n  'info-outline',\n  'link-primary',\n  'link-primary-forest',\n  'link-secondary',\n  'link-secondary-light',\n  'link-tertiary',\n  'link-warning',\n  'link-editor',\n  'primary',\n  'primary-outline',\n  'primary-forest',\n  'secondary',\n  'success',\n  'success-outline',\n  'warning',\n  'warning-outline',\n  'ghost',\n  'ghost-contrast',\n  'primary-contrast',\n];\nexport const SIZES = ['fit-width', 'extra-large', 'large', 'normal', 'small', 'tiny', 'custom'];\nexport const TEXT_ALIGNMENTS = ['left', 'center', 'right'];\n\n@validateArguments\nexport default class ButtonBetaButtonComponent extends Component {\n  @service assetMap;\n\n  @argument(oneOf(...TYPES)) type;\n  @argument(optional(Function)) action;\n  @argument(optional(oneOf(...SIZES))) size;\n  @argument(optional(oneOf(...TEXT_ALIGNMENTS))) textAlign;\n  @argument(optional(oneOfType([String, HTMLSafeElement]))) text;\n  @argument(optional(String)) textClass;\n  @argument(optional(String)) class;\n  @argument(optional(String)) iconName;\n  @argument(optional(String)) iconClass;\n  @argument(optional(String)) buttonType;\n  @argument(optional(Boolean)) async;\n  @argument(optional(Boolean)) disabled;\n  @argument(optional(Boolean)) isImportant;\n  @argument(optional(Boolean)) underline;\n  @argument(optional(Boolean)) isIconAfterText;\n  @argument(optional(Boolean)) withInput;\n  @argument(optional(Boolean)) noPadding;\n  @argument(optional(Boolean)) isSubmittable;\n  @argument(optional(Boolean)) isLoading;\n  @argument(optional(Boolean)) withoutCallback;\n  @argument(optional(Boolean)) isBold;\n  @argument(optional(Boolean)) shouldEnablePropagation;\n\n  @tracked _isLoading = false;\n  @and('isLink', 'args.isImportant') isImportantLink;\n\n  get isLink() {\n    const { type } = this.args;\n    return type.startsWith('link-');\n  }\n\n  get iconOnly() {\n    const { size, text } = this.args;\n    return !size && !text;\n  }\n\n  get sizeOrDefault() {\n    const { size } = this.args;\n    return size === 'custom' ? 'custom-size' : size || 'normal';\n  }\n\n  get buttonTypeOrDefault() {\n    const { buttonType, isSubmittable = true } = this.args;\n    return buttonType ?? (isSubmittable ? null : 'button');\n  }\n\n  get buttonClass() {\n    const { type, isImportant, withInput, noPadding, iconName, text, isIconAfterText } = this.args;\n    return new CssClassHelper('c-beta-button')\n      .addModifier(type)\n      .addModifier('link', type.startsWith('link-'))\n      .addModifier(this.sizeOrDefault)\n      .addModifier(`text-align-${this.args.textAlign || 'center'}`)\n      .addModifier('loading', !!this.isInLoadingState)\n      .addModifier('important', !!isImportant)\n      .addModifier('important-link', !!this.isImportantLink)\n      .addModifier(isIconAfterText ? 'icon-after' : 'icon-before', !!iconName && !!text)\n      .addModifier('with-input', !!withInput)\n      .addModifier('no-padding', !!noPadding)\n      .addModifier('icon-only', this.iconOnly)\n      .addModifier('bold', !!this.args.isBold)\n      .generateClasses();\n  }\n\n  get isUnderlined() {\n    const { underline } = this.args;\n    return underline ?? this.isLink;\n  }\n\n  get isAsync() {\n    const { async } = this.args;\n    return async ?? !this.isLink;\n  }\n\n  get isInLoadingState() {\n    const { isLoading } = this.args;\n    return this._isLoading || isLoading;\n  }\n\n  get iconClasses() {\n    const { isIconAfterText, iconClass, text } = this.args;\n    const betaButtonIconClasses = new CssClassHelper('c-beta-button__icon')\n      .addModifier(this.sizeOrDefault)\n      .addModifier(isIconAfterText ? 'right' : 'left', !!text)\n      .generateClasses();\n\n    return [betaButtonIconClasses, iconClass || ''].join(' ').trim();\n  }\n\n  get isCustomIcon() {\n    return this.args.iconName?.startsWith('custom:');\n  }\n\n  get customIconSource() {\n    const [, icon] = this.args.iconName.split('custom:', 2);\n    return this.assetMap.resolve(`/img/icons/${icon}.svg`);\n  }\n\n  @action\n  async onClick(event) {\n    const { action: onClick, disabled } = this.args;\n    if (this.isInLoadingState || disabled || typeof onClick !== 'function') {\n      return;\n    }\n    if (!this.args.shouldEnablePropagation) {\n      event.stopPropagation();\n    }\n    event.preventDefault();\n    if (this.isAsync) {\n      this._isLoading = true;\n      if (this.args.withoutCallback) {\n        await onClick();\n        this._isLoading = false;\n      } else {\n        onClick((result) =>\n          Promise.resolve(result).finally(() => {\n            if (this.isDestroying || this.isDestroyed) {\n              return;\n            }\n            this._isLoading = false;\n          }),\n        );\n      }\n      return;\n    }\n\n    onClick();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/Button/BetaButton',\n  component: 'Shared::Button::BetaButton',\n  argTypes: {\n    async: {\n      type: 'boolean',\n      description:\n        'On button click, calls the `action` action with a callback and set the button in loading state until the callback returns a resolved promise. Defaults to `false` for types starting with `link`, `true` otherwise.',\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: 'true/false',\n        },\n      },\n    },\n    disabled: {\n      type: 'boolean',\n      description: 'Sets the button in a disabled state and disables click.',\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: false,\n        },\n      },\n    },\n    isIconAfterText: {\n      type: 'boolean',\n      description: \"Move the button's icon after its text.\",\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: false,\n        },\n      },\n    },\n    iconName: {\n      type: 'string',\n      description: \"The button's [material icon's name](https://fonts.google.com/icons).\",\n      table: {\n        category: 'Properties',\n      },\n    },\n    isImportant: {\n      type: 'boolean',\n      description: \"Transforms the button's text to uppercase.\",\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: false,\n        },\n      },\n    },\n    isLoading: {\n      type: 'boolean',\n      description: 'Sets the button in a loading state ans disables click.',\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: false,\n        },\n      },\n    },\n    isSquare: {\n      type: 'boolean',\n      description: '?',\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: false,\n        },\n      },\n    },\n    isSubmittable: {\n      type: 'boolean',\n      description: 'Removes the `type=\"button\"` attribute.',\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: false,\n        },\n      },\n    },\n    noPadding: {\n      type: 'boolean',\n      description: \"Removes the button's padding\",\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: false,\n        },\n      },\n    },\n    size: {\n      type: 'string',\n      description: \"The button's size.\",\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: 'normal',\n        },\n      },\n      options: ['small', 'normal', 'large', 'extra-large'],\n      control: { type: 'radio' },\n    },\n    text: {\n      type: 'string',\n      description: \"The button's text.\",\n      table: {\n        category: 'Properties',\n      },\n    },\n    type: {\n      type: {\n        name: 'string',\n        required: true,\n      },\n      description: \"The button's type.\",\n      table: {\n        category: 'Properties',\n      },\n      options: [\n        'danger',\n        'danger-outline',\n        'editor',\n        'info',\n        'link-danger',\n        'info-outline',\n        'link-info',\n        'link-inherit',\n        'link-primary',\n        'link-primary-forest',\n        'link-secondary',\n        'link-secondary-light',\n        'link-tertiary',\n        'link-warning',\n        'primary',\n        'primary-forest',\n        'secondary',\n        'success',\n        'success-outline',\n        'warning',\n        'warning-outline',\n        'ghost',\n      ],\n      control: { type: 'select' },\n    },\n    underline: {\n      type: 'boolean',\n      description:\n        \"Underlines the button'text. Default to `true` for types starting with `link`, `false` otherwise.\",\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: 'true/false',\n        },\n      },\n    },\n    withInput: {\n      type: 'boolean',\n      description:\n        \"Changes the button's border radiuses to use it against the right side of an input.\",\n      table: {\n        category: 'Properties',\n        defaultValue: {\n          summary: false,\n        },\n      },\n    },\n    iconClass: {\n      type: 'string',\n      description: \"Added to the `i` tag containing the icon's `class` attribute.\",\n      table: {\n        category: 'HTML classes',\n      },\n    },\n    textClass: {\n      type: 'string',\n      description: \"Added to the `span` tag containing the text's `class` attribute.\",\n      table: {\n        category: 'HTML classes',\n      },\n    },\n    action: {\n      action: 'action',\n      type: 'function',\n      description: \"Called the button's `click` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n  },\n  args: {\n    text: 'Button',\n    type: 'primary',\n  },\n  parameters: {\n    docs: { iframeHeight: 200 },\n  },\n};\n\nexport const Types = () => ({\n  template: hbs`\n    <Shared::Button::BetaButton @text=\"Primary\" @type=\"primary\"/>\n    <Shared::Button::BetaButton @text=\"Link-primary\" @type=\"link-primary\"/>\n    <Shared::Button::BetaButton @text=\"Link-primary-forest\" @type=\"link-primary-forest\"/>\n    <br><br>\n    <Shared::Button::BetaButton @text=\"Secondary\" @type=\"secondary\"/>\n    <Shared::Button::BetaButton @text=\"Link-secondary\" @type=\"link-secondary\"/>\n    <Shared::Button::BetaButton @text=\"Link-secondary-light\" @type=\"link-secondary-light\"/>\n    <br><br>\n    <Shared::Button::BetaButton @text=\"Ghost\" @type=\"ghost\"/>\n    <br><br>\n    <Shared::Button::BetaButton @text=\"Link-tertiary\" @type=\"link-tertiary\"/>\n    <br><br>\n    <Shared::Button::BetaButton @text=\"Editor\" @type=\"editor\"/>\n    <Shared::Button::BetaButton @text=\"Link-editor\" @type=\"link-editor\"/>\n    <br><br>\n    <Shared::Button::BetaButton @text=\"Editor-light\" @type=\"editor-light\"/>\n    <br><br>\n    <Shared::Button::BetaButton @text=\"Success\" @type=\"success\"/>\n    <Shared::Button::BetaButton @text=\"Success-outline\" @type=\"success-outline\"/>\n    <br><br>\n    <Shared::Button::BetaButton @text=\"Info\" @type=\"info\"/>\n    <Shared::Button::BetaButton @text=\"Info-outline\" @type=\"info-outline\"/>\n    <Shared::Button::BetaButton @text=\"Link-info\" @type=\"link-info\"/>\n    <br><br>\n    <Shared::Button::BetaButton @text=\"Warning\" @type=\"warning\"/>\n    <Shared::Button::BetaButton @text=\"Warning-outline\" @type=\"warning-outline\"/>\n    <Shared::Button::BetaButton @text=\"Link-warning\" @type=\"link-warning\"/>\n    <br><br>\n    <Shared::Button::BetaButton @text=\"Danger\" @type=\"danger\"/>\n    <Shared::Button::BetaButton @text=\"Danger-outline\" @type=\"danger-outline\"/>\n    <Shared::Button::BetaButton @text=\"Link-danger\" @type=\"link-danger\"/>\n  `,\n});\n\nexport const Primary = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"small\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"small\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"small\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_back\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"normal\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @iconName=\"refresh\" /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"normal\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @iconName=\"refresh\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"normal\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_back\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @iconName=\"refresh\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_back\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"extra-large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"extra-large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"extra-large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"primary\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_back\" @disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const Secondary = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"small\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"small\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"small\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_back\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"normal\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @iconName=\"refresh\" /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"normal\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @iconName=\"refresh\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"normal\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_back\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @iconName=\"refresh\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_back\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"extra-large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"extra-large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"extra-large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"secondary\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_back\" @disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const Ghost = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"small\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"small\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"small\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"small\" @text=\"Button\" @iconName=\"arrow_back\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"normal\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @iconName=\"refresh\" /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"normal\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @iconName=\"refresh\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"normal\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"normal\" @text=\"Button\" @iconName=\"arrow_back\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @iconName=\"refresh\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"large\" @text=\"Button\" @iconName=\"arrow_back\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"extra-large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"extra-large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"extra-large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"ghost\" @size=\"extra-large\" @text=\"Button\" @iconName=\"arrow_back\" @disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const Editor = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"small\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"small\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"small\" @text=\"Button\" @iconName=\"edit\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"small\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"small\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"small\" @text=\"Button\" @iconName=\"edit\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"small\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"small\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"small\" @text=\"Button\" @iconName=\"edit\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"normal\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"normal\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"normal\" @text=\"Button\" @iconName=\"edit\" /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @iconName=\"refresh\" /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"normal\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"normal\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"normal\" @text=\"Button\" @iconName=\"edit\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @iconName=\"refresh\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"normal\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"normal\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"normal\" @text=\"Button\" @iconName=\"edit\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @iconName=\"refresh\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"large\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"large\" @text=\"Button\" @iconName=\"edit\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"large\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"large\" @text=\"Button\" @iconName=\"edit\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"large\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"large\" @text=\"Button\" @iconName=\"edit\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"extra-large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"extra-large\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"extra-large\" @text=\"Button\" @iconName=\"edit\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"extra-large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"extra-large\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"extra-large\" @text=\"Button\" @iconName=\"edit\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"extra-large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"extra-large\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor\" @size=\"extra-large\" @text=\"Button\" @iconName=\"edit\" @disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const EditorLight = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"small\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"small\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"small\" @text=\"Button\" @iconName=\"edit\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"small\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"small\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"small\" @text=\"Button\" @iconName=\"edit\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"small\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"small\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"small\" @text=\"Button\" @iconName=\"edit\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"normal\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"normal\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"normal\" @text=\"Button\" @iconName=\"edit\" /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @iconName=\"refresh\" /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"normal\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"normal\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"normal\" @text=\"Button\" @iconName=\"edit\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @iconName=\"refresh\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"normal\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"normal\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"normal\" @text=\"Button\" @iconName=\"edit\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @iconName=\"refresh\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"large\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"large\" @text=\"Button\" @iconName=\"edit\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"large\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"large\" @text=\"Button\" @iconName=\"edit\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"large\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"large\" @text=\"Button\" @iconName=\"edit\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"extra-large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"extra-large\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"extra-large\" @text=\"Button\" @iconName=\"edit\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"extra-large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"extra-large\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"extra-large\" @text=\"Button\" @iconName=\"edit\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"extra-large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"extra-large\" @text=\"Button\" @iconName=\"edit\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"editor-light\" @size=\"extra-large\" @text=\"Button\" @iconName=\"edit\" @disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const Success = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"small\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"small\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"small\" @text=\"Button\" @iconName=\"done\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"small\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"small\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"small\" @text=\"Button\" @iconName=\"done\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"small\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"small\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"small\" @text=\"Button\" @iconName=\"done\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"normal\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"normal\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"normal\" @text=\"Button\" @iconName=\"done\" /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @iconName=\"refresh\" /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"normal\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"normal\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"normal\" @text=\"Button\" @iconName=\"done\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @iconName=\"refresh\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"normal\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"normal\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"normal\" @text=\"Button\" @iconName=\"done\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @iconName=\"refresh\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"large\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"large\" @text=\"Button\" @iconName=\"done\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"large\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"large\" @text=\"Button\" @iconName=\"done\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"large\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"large\" @text=\"Button\" @iconName=\"done\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"extra-large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"extra-large\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"extra-large\" @text=\"Button\" @iconName=\"done\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"extra-large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"extra-large\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"extra-large\" @text=\"Button\" @iconName=\"done\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"extra-large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"extra-large\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success\" @size=\"extra-large\" @text=\"Button\" @iconName=\"done\" @disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const Info = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"small\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"small\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"small\" @text=\"Button\" @iconName=\"info\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"small\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"small\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"small\" @text=\"Button\" @iconName=\"info\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"small\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"small\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"small\" @text=\"Button\" @iconName=\"info\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"normal\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"normal\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"normal\" @text=\"Button\" @iconName=\"info\" /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @iconName=\"refresh\" /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"normal\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"normal\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"normal\" @text=\"Button\" @iconName=\"info\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @iconName=\"refresh\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"normal\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"normal\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"normal\" @text=\"Button\" @iconName=\"info\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @iconName=\"refresh\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"large\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"large\" @text=\"Button\" @iconName=\"info\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"large\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"large\" @text=\"Button\" @iconName=\"info\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"large\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"large\" @text=\"Button\" @iconName=\"info\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"extra-large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"extra-large\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"extra-large\" @text=\"Button\" @iconName=\"info\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"extra-large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"extra-large\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"extra-large\" @text=\"Button\" @iconName=\"info\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"extra-large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"extra-large\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info\" @size=\"extra-large\" @text=\"Button\" @iconName=\"info\" @disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const Warning = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"small\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"small\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"small\" @text=\"Button\" @iconName=\"warning\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"small\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"small\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"small\" @text=\"Button\" @iconName=\"warning\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"small\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"small\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"small\" @text=\"Button\" @iconName=\"warning\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"normal\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"normal\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"normal\" @text=\"Button\" @iconName=\"warning\" /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @iconName=\"refresh\" /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"normal\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"normal\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"normal\" @text=\"Button\" @iconName=\"warning\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @iconName=\"refresh\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"normal\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"normal\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"normal\" @text=\"Button\" @iconName=\"warning\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @iconName=\"refresh\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"large\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"large\" @text=\"Button\" @iconName=\"warning\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"large\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"large\" @text=\"Button\" @iconName=\"warning\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"large\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"large\" @text=\"Button\" @iconName=\"warning\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"extra-large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"extra-large\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"extra-large\" @text=\"Button\" @iconName=\"warning\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"extra-large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"extra-large\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"extra-large\" @text=\"Button\" @iconName=\"warning\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"extra-large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"extra-large\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning\" @size=\"extra-large\" @text=\"Button\" @iconName=\"warning\" @disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const Danger = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"small\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"small\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"small\" @text=\"Button\" @iconName=\"delete\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"small\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"small\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"small\" @text=\"Button\" @iconName=\"delete\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"small\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"small\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"small\" @text=\"Button\" @iconName=\"delete\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"normal\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"normal\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"normal\" @text=\"Button\" @iconName=\"delete\" /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @iconName=\"refresh\" /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"normal\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"normal\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"normal\" @text=\"Button\" @iconName=\"delete\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @iconName=\"refresh\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"normal\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"normal\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"normal\" @text=\"Button\" @iconName=\"delete\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @iconName=\"refresh\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"large\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"large\" @text=\"Button\" @iconName=\"delete\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"large\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"large\" @text=\"Button\" @iconName=\"delete\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"large\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"large\" @text=\"Button\" @iconName=\"delete\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"extra-large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"extra-large\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"extra-large\" @text=\"Button\" @iconName=\"delete\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"extra-large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"extra-large\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"extra-large\" @text=\"Button\" @iconName=\"delete\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"extra-large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"extra-large\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger\" @size=\"extra-large\" @text=\"Button\" @iconName=\"delete\" @disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const SuccessOutline = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"small\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"small\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"small\" @text=\"Button\" @iconName=\"done\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"small\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"small\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"small\" @text=\"Button\" @iconName=\"done\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"small\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"small\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"small\" @text=\"Button\" @iconName=\"done\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"normal\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"done\" /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @iconName=\"refresh\" /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"normal\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"done\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @iconName=\"refresh\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"normal\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"done\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @iconName=\"refresh\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"large\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"large\" @text=\"Button\" @iconName=\"done\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"large\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"large\" @text=\"Button\" @iconName=\"done\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"large\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"large\" @text=\"Button\" @iconName=\"done\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"extra-large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"done\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"extra-large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"done\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"extra-large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"success-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"done\" @disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const InfoOutline = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"small\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"small\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"small\" @text=\"Button\" @iconName=\"info\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"small\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"small\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"small\" @text=\"Button\" @iconName=\"info\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"small\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"small\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"small\" @text=\"Button\" @iconName=\"info\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"normal\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"info\" /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @iconName=\"refresh\" /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"normal\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"info\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @iconName=\"refresh\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"normal\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"info\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @iconName=\"refresh\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"large\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"large\" @text=\"Button\" @iconName=\"info\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"large\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"large\" @text=\"Button\" @iconName=\"info\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"large\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"large\" @text=\"Button\" @iconName=\"info\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"extra-large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"info\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"extra-large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"info\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"extra-large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"info-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"info\" @disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const WarningOutline = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"small\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"small\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"small\" @text=\"Button\" @iconName=\"warning\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"small\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"small\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"small\" @text=\"Button\" @iconName=\"warning\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"small\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"small\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"small\" @text=\"Button\" @iconName=\"warning\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"normal\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"warning\" /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @iconName=\"refresh\" /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"normal\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"warning\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @iconName=\"refresh\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"normal\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"warning\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @iconName=\"refresh\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"large\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"large\" @text=\"Button\" @iconName=\"warning\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"large\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"large\" @text=\"Button\" @iconName=\"warning\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"large\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"large\" @text=\"Button\" @iconName=\"warning\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"extra-large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"warning\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"extra-large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"warning\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"extra-large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"warning-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"warning\" @disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const DangerOutline = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"small\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"small\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"small\" @text=\"Button\" @iconName=\"delete\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"small\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"small\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"small\" @text=\"Button\" @iconName=\"delete\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"small\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"small\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"small\" @text=\"Button\" @iconName=\"delete\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"normal\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"delete\" /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @iconName=\"refresh\" /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"normal\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"delete\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @iconName=\"refresh\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"normal\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"normal\" @text=\"Button\" @iconName=\"delete\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @iconName=\"refresh\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"large\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"large\" @text=\"Button\" @iconName=\"delete\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"large\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"large\" @text=\"Button\" @iconName=\"delete\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"large\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"large\" @text=\"Button\" @iconName=\"delete\" @disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"extra-large\" @text=\"Button\" /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"delete\" /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"extra-large\" @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"delete\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"extra-large\" @text=\"Button\" @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @disabled={{true}} /></div>\n      <div><Shared::Button::BetaButton @type=\"danger-outline\" @size=\"extra-large\" @text=\"Button\" @iconName=\"delete\" @disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const WithIcon = () => ({\n  template: hbs`\n    <Shared::Button::BetaButton @text=\"Primary\" @type=\"primary\" @iconName=\"save\"/>\n    <Shared::Button::BetaButton @text=\"Secondary\" @type=\"secondary\" @iconName=\"settings\" @isIconAfterText={{true}}/>\n    <Shared::Button::BetaButton @text=\"Ghost\" @type=\"ghost\" @iconName=\"settings\"/>\n    <Shared::Button::BetaButton @text=\"Info\" @type=\"info\" @iconName=\"search\"/>\n    <Shared::Button::BetaButton @text=\"Success\" @type=\"success\" @iconName=\"done\" @isIconAfterText={{true}}/>\n    <Shared::Button::BetaButton @text=\"Warning\" @type=\"warning\" @iconName=\"warning\"/>\n    <Shared::Button::BetaButton @text=\"Danger\" @type=\"danger\" @iconName=\"delete\" @isIconAfterText={{true}}/>\n    <Shared::Button::BetaButton @text=\"Editor\" @type=\"editor\" @iconName=\"edit\"/>\n    <br><br>\n    <Shared::Button::BetaButton @text=\"Info-outline\" @type=\"info-outline\" @iconName=\"search\" @isIconAfterText={{true}}/>\n    <Shared::Button::BetaButton @text=\"Success-outline\" @type=\"success-outline\" @iconName=\"done\"/>\n    <Shared::Button::BetaButton @text=\"Warning-outline\" @type=\"warning-outline\" @iconName=\"warning\" @isIconAfterText={{true}}/>\n    <Shared::Button::BetaButton @text=\"Danger-outline\" @type=\"danger-outline\" @iconName=\"delete\"/>\n    <br><br>\n    <Shared::Button::BetaButton @text=\"Link-primary\" @type=\"link-primary\" @iconName=\"save\"/>\n    <Shared::Button::BetaButton @text=\"Link-secondary\" @type=\"link-secondary\" @iconName=\"settings\" @isIconAfterText={{true}}/>\n    <Shared::Button::BetaButton @text=\"Link-info\" @type=\"link-info\" @iconName=\"search\"/>\n    <Shared::Button::BetaButton @text=\"Link-warning\" @type=\"link-warning\" @iconName=\"warning\" @isIconAfterText={{true}}/>\n    <Shared::Button::BetaButton @text=\"Link-danger\" @type=\"link-danger\" @iconName=\"delete\"/>\n    <Shared::Button::BetaButton @text=\"Link-editor\" @type=\"link-editor\" @iconName=\"edit\"/>\n  `,\n});\n\nexport const WithInput = () => ({\n  template: hbs`\n    <div style=\"display: flex;\">\n      <Shared::BetaInput @withButton={{true}}/>\n      <Shared::Button::BetaButton @text=\"Submit\" @type=\"primary\" @withInput={{true}}/>\n    </div>\n  `,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<button\\n  class=\\\"{{this.buttonClass}} {{@class}}\\\"\\n  disabled={{@disabled}}\\n  aria-disabled={{@disabled}}\\n  type={{this.buttonTypeOrDefault}}\\n  {{on \\'click\\' this.onClick}}\\n  data-test-beta-button\\n  ...attributes\\n>\\n  {{#if @text}}\\n    <span\\n      class=\\\"c-beta-button__text\\n        {{@textClass}}\\n        {{if this.isUnderlined \\'c-beta-button__text--underline\\'}}\\\"\\n      data-test-beta-button-text\\n    >\\n      {{@text}}\\n    </span>\\n  {{/if}}\\n  {{#if @iconName}}\\n    {{#if this.isCustomIcon}}\\n      <img\\n        class={{this.iconClasses}}\\n        src={{this.customIconSource}}\\n        alt={{@iconName}}\\n        data-test-beta-button-custom-icon\\n      />\\n    {{else}}\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName={{@iconName}}\\n        @size={{@iconSize}}\\n        class={{this.iconClasses}}\\n        data-test-beta-button-icon\\n      />\\n    {{/if}}\\n  {{/if}}\\n\\n  {{#if this.isInLoadingState}}\\n    <Shared::Feedback::BetaLoader class=\\\"c-beta-button__loader\\\" data-test-beta-button-loader />\\n  {{/if}}\\n</button>\\n', { moduleName: 'client/shared/components/button/beta-button/template.hbs' });\n","import type { SafeString } from '@ember/template/-private/handlebars';\nimport type AssetMapService from 'asset-map-resolver/services/asset-map';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport enum ButtonTypeEnum {\n  Primary = 'primary',\n  Secondary = 'secondary',\n  ForestPrimary = 'forest-primary',\n  Info = 'info',\n  Success = 'success',\n  Warning = 'warning',\n  Danger = 'danger',\n  Ghost = 'ghost',\n  GhostPrimary = 'ghost-primary',\n  GhostPurple = 'ghost-purple',\n  GhostBlue = 'ghost-blue',\n  GhostRed = 'ghost-red',\n  GhostOrange = 'ghost-orange',\n  GhostYellow = 'ghost-yellow',\n  GhostGreen = 'ghost-green',\n  Editor = 'editor',\n\n  Custom = 'custom',\n}\n\nexport enum ButtonSizeEnum {\n  BrowserExtension = 'browser-extension',\n  Tiny = 'tiny',\n  Micro = 'micro',\n  Small = 'small',\n  Medium = 'medium',\n  Large = 'large',\n  ExtraLarge = 'extra-large',\n}\n\nexport interface SharedButtonArgs {\n  type?: ButtonTypeEnum;\n  size?: ButtonSizeEnum;\n  onClick: () => void | Promise<void>;\n  id?: string;\n  isLoading?: boolean;\n  iconName?: string;\n  text?: string | SafeString;\n  isIconAfterText?: boolean;\n  ellipseText?: boolean;\n  mustStopPropagation?: boolean;\n  isActive?: boolean;\n  iconSize?: 'micro' | 'tiny' | 'small' | 'normal' | 'large' | 'custom' | 'inherit';\n}\n\n@validateArguments\nexport default class SharedButtonComponent extends Component<SharedButtonArgs> {\n  static propTypes = {\n    type: PropTypes.oneOf(Object.values(ButtonTypeEnum)),\n    size: PropTypes.oneOf(Object.values(ButtonSizeEnum)),\n    onClick: PropTypes.func.isRequired,\n    id: PropTypes.string,\n    isLoading: PropTypes.bool,\n    iconName: PropTypes.string,\n    text: PropTypes.any,\n    isIconAfterText: PropTypes.bool,\n    ellipseText: PropTypes.bool,\n    mustStopPropagation: PropTypes.bool,\n    isActive: PropTypes.bool,\n    iconSize: PropTypes.oneOf(['micro', 'tiny', 'small', 'normal', 'large', 'custom', 'inherit']),\n  };\n\n  static defaultProps = {\n    isLoading: false,\n    isIconAfterText: false,\n    size: 'normal',\n    type: 'primary',\n    ellipseText: false,\n    mustStopPropagation: true,\n    isActive: false,\n  };\n\n  @service assetMap: AssetMapService;\n\n  public buttonId = this.args.id || guidFor(this);\n  @tracked private _isLoading = false;\n\n  get buttonElement() {\n    return document.getElementById(this.buttonId);\n  }\n\n  get isDisabled() {\n    return this.buttonElement?.hasAttribute('disabled');\n  }\n\n  get isInLoadingState() {\n    const { isLoading } = this.args;\n    return this._isLoading || isLoading;\n  }\n\n  get isCustomIcon() {\n    return this.args.iconName?.startsWith('custom:');\n  }\n\n  get customIconSource() {\n    const [, icon] = this.args.iconName.split('custom:', 2);\n    return this.assetMap.resolve(`/img/icons/${icon}.svg`);\n  }\n\n  get isIconOnly() {\n    return !!this.args.iconName && !this.args.text;\n  }\n\n  @action\n  async handleClick(event: Event) {\n    event?.preventDefault();\n\n    if (this.isInLoadingState || this.isDisabled || typeof this.args.onClick !== 'function') {\n      return;\n    }\n\n    if (this.args.mustStopPropagation ?? SharedButtonComponent.defaultProps.mustStopPropagation) {\n      event?.stopPropagation();\n    }\n\n    this._isLoading = true;\n    try {\n      await this.args.onClick();\n    } finally {\n      this._isLoading = false;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/Button',\n  component: 'Shared::Button',\n  args: {\n    ...getDefaultRequiredArgs('Shared::Button'),\n    text: 'Button',\n  },\n};\n\nexport const Button = storyCreator('Shared::Button');\n\nexport const Types = () => ({\n  template: hbs`\n    <Shared::Button @onClick={{(do-nothing-function)}} @text=\"Primary\" @type=\"primary\"/>\n    <br><br>\n    <Shared::Button @onClick={{(do-nothing-function)}} @text=\"Info\" @type=\"info\"/>\n    <br><br>\n    <Shared::Button @onClick={{(do-nothing-function)}} @text=\"Success\" @type=\"success\"/>\n    <br><br>\n    <Shared::Button @onClick={{(do-nothing-function)}} @text=\"Warning\" @type=\"warning\"/>\n    <br><br>\n    <Shared::Button @onClick={{(do-nothing-function)}} @text=\"Danger\" @type=\"danger\"/>\n    <br><br>\n    <Shared::Button @onClick={{(do-nothing-function)}} @text=\"Ghost\" @type=\"ghost\"/>\n    <br><br>\n    <Shared::Button @onClick={{(do-nothing-function)}} @text=\"Ghost Primary\" @type=\"ghost-primary\"/>\n    <br><br>\n    <Shared::Button @onClick={{(do-nothing-function)}} @text=\"Ghost Purple\" @type=\"ghost-purple\"/>\n    <br><br>\n    <Shared::Button @onClick={{(do-nothing-function)}} @text=\"Ghost Green\" @type=\"ghost-green\"/>\n    <br><br>\n    <Shared::Button @onClick={{(do-nothing-function)}} @text=\"Ghost Red\" @type=\"ghost-red\"/>\n  `,\n});\n\nexport const IsActiveButtons = () => ({\n  template: hbs`\n    <Shared::Button @type=\"ghost-primary\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isActive={{true}} />\n    <br/>\n    <br/>\n    <Shared::Button @type=\"ghost-primary\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Disabled Button\" @isActive={{true}} disabled={{true}} />\n    <br/>\n    <br/>\n    <Shared::Button @type=\"ghost-purple\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isActive={{true}} />\n    <br/>\n    <br/>\n    <Shared::Button @type=\"ghost-purple\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Disabled Button\" @isActive={{true}} disabled={{true}} />\n    <br/>\n    <br/>\n    <Shared::Button @type=\"ghost-success\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isActive={{true}} />\n    <br/>\n    <br/>\n    <Shared::Button @type=\"ghost-success\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Disabled Button\" @isActive={{true}} disabled={{true}} />\n    <br/>\n    <br/>\n    <Shared::Button @type=\"ghost-danger\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isActive={{true}} />\n    <br/>\n    <br/>\n    <Shared::Button @type=\"ghost-danger\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Disabled Button\" @isActive={{true}} disabled={{true}} />\n  `,\n});\n\nexport const Ghost = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button @type=\"ghost\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div><Shared::Button @type=\"ghost\" @iconName=\"refresh\" @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @iconName=\"refresh\" @isLoading={{true}} @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @iconName=\"refresh\" disabled={{true}} @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"ghost\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const Primary = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button @type=\"primary\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"primary\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"primary\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"primary\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div><Shared::Button @type=\"primary\" @iconName=\"refresh\" @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"primary\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @iconName=\"refresh\" @isLoading={{true}} @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"primary\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @iconName=\"refresh\" disabled={{true}} @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"primary\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"primary\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"primary\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"primary\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"primary\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"primary\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_forward\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"primary\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"arrow_back\" disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const Info = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button @type=\"info\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"info\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"info\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"info\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"info\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"info\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" /></div>\n      <div><Shared::Button @type=\"info\" @iconName=\"refresh\" @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"info\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @iconName=\"refresh\" @isLoading={{true}} @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"info\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @iconName=\"refresh\" disabled={{true}} @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"info\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"info\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"info\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"info\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"info\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"info\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"info\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"info\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"info\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"info\" disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const Success = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button @type=\"success\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"success\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"success\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"success\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"success\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"success\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" /></div>\n      <div><Shared::Button @type=\"success\" @iconName=\"refresh\" @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"success\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @iconName=\"refresh\" @isLoading={{true}} @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"success\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @iconName=\"refresh\" disabled={{true}} @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"success\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"success\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"success\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"success\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"success\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"success\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"success\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"success\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"success\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"done\" disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const Warning = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button @type=\"warning\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"warning\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"warning\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"warning\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" /></div>\n      <div><Shared::Button @type=\"warning\" @iconName=\"refresh\" @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"warning\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @iconName=\"refresh\" @isLoading={{true}} @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"warning\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @iconName=\"refresh\" disabled={{true}} @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"warning\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"warning\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"warning\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"warning\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"warning\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"warning\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"warning\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"warning\" disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n\nexport const Danger = () => ({\n  template: hbs`\n    <div style=\"display: grid; grid-template-columns: min-content min-content min-content min-content; grid-gap: 10px;\">\n      <div><Shared::Button @type=\"danger\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"danger\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"danger\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"small\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"danger\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" /></div>\n      <div><Shared::Button @type=\"danger\" @iconName=\"refresh\" @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"danger\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @iconName=\"refresh\" @isLoading={{true}} @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"danger\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"medium\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @iconName=\"refresh\" disabled={{true}} @onClick={{(do-nothing-function)}}/></div>\n      <div><Shared::Button @type=\"danger\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"danger\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"danger\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" disabled={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"danger\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" /></div>\n      <div></div>\n      <div><Shared::Button @type=\"danger\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} @isLoading={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isLoading={{true}} /></div>\n      <div></div>\n      <div><Shared::Button @type=\"danger\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" disabled={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" @isIconAfterText={{true}} disabled={{true}} /></div>\n      <div><Shared::Button @type=\"danger\" @size=\"extra-large\" @onClick={{(do-nothing-function)}} @text=\"Button\" @iconName=\"delete\" disabled={{true}} /></div>\n      <div></div>\n    </div>\n  `,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<button\\n  class={{get-classes-with-modifiers\\n    \\'c-shared-button\\'\\n    (or @type \\'primary\\')\\n    (concat (or @size \\'medium\\') (if this.isIconOnly \\'-icon-only\\' \\'\\'))\\n    loading=this.isInLoadingState\\n    icon-after-text=@isIconAfterText\\n    icon-before-text=(not @isIconAfterText)\\n  }}\\n  data-is-active={{@isActive}}\\n  data-test-shared-button\\n  type={{this.buttonTypeOrDefault}}\\n  {{on \\'click\\' this.handleClick}}\\n  ...attributes\\n>\\n  {{#if @text}}\\n    <span\\n      class={{get-classes-with-modifiers \\'c-shared-button__text\\' ellipse-text=@ellipseText}}\\n      data-test-shared-button-text\\n    >\\n      {{@text}}\\n    </span>\\n  {{/if}}\\n  {{#if (or @iconName this.isInLoadingState)}}\\n    {{#let\\n      (get-classes-with-modifiers\\n        \\'c-shared-button__icon\\'\\n        (or @size \\'medium\\')\\n        icon-only=this.isIconOnly\\n        loader=this.isInLoadingState\\n      )\\n      as |iconClasses|\\n    }}\\n      {{#if this.isInLoadingState}}\\n        <Shared::Feedback::BetaLoader\\n          @type=\\\"custom\\\"\\n          class={{iconClasses}}\\n          data-test-shared-button-loader\\n        />\\n      {{else if this.isCustomIcon}}\\n        <img\\n          class={{iconClasses}}\\n          src={{this.customIconSource}}\\n          alt={{@iconName}}\\n          data-test-shared-button-custom-icon\\n        />\\n      {{else}}\\n        <Shared::DataDisplay::BetaIcon\\n          @iconName={{@iconName}}\\n          @size={{or @iconSize \\'inherit\\'}}\\n          class={{iconClasses}}\\n          data-test-shared-button-icon\\n        />\\n      {{/if}}\\n    {{/let}}\\n  {{/if}}\\n  {{#if (has-block)}}\\n    <div class=\\\"c-shared-button__additional_content\\\">\\n      {{yield}}\\n    </div>\\n  {{/if}}\\n</button>\\n', { moduleName: 'client/shared/components/button/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @href}}\\n  <a\\n    href={{@href}}\\n    target=\\\"_blank\\\"\\n    rel=\\\"noopener noreferrer\\\"\\n    {{on \\'click\\' (optional @onClick)}}\\n    data-test-clickable\\n    ...attributes\\n  >\\n    {{yield}}\\n  </a>\\n{{else if @route}}\\n  {{! template-lint-disable no-unknown-arguments-for-builtin-components }}\\n  <Navigation::LinkToWithClick\\n    @route={{@route}}\\n    @models={{get-link-to-models (or @model @models)}}\\n    @activeClass={{@activeClass}}\\n    @onClick={{@onClick}}\\n    @current-when={{@isActive}}\\n    data-test-clickable\\n    ...attributes\\n  >\\n    {{yield}}\\n  </Navigation::LinkToWithClick>\\n{{else}}\\n  <div role=\\\"button\\\" {{on \\'click\\' (optional @onClick)}} data-test-clickable ...attributes>\\n    {{yield}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/shared/components/clickable/template.hbs' });\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/CloseButton',\n  component: 'Shared::CloseButton',\n  args: {\n    ...getDefaultRequiredArgs('Shared::CloseButton'),\n  },\n};\n\nexport const CloseButton = storyCreator('Shared::CloseButton');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<button class=\\\"c-shared-close-button\\\" data-test-shared-close-button ...attributes type=\\\"button\\\">\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName=\\\"close\\\"\\n    @size=\\\"custom\\\"\\n    class=\\\"c-shared-close-button__icon\\\"\\n  />\\n</button>\\n', { moduleName: 'client/shared/components/close-button/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from 'tracked-built-ins';\n\ninterface CollapsibleSectionArgs {\n  title: string;\n  isCollapsedByDefault?: boolean;\n}\n\nexport default class CollapsibleSectionComponent extends Component<CollapsibleSectionArgs> {\n  @tracked public isCollapsed = this.args.isCollapsedByDefault ?? false;\n\n  @action\n  public handleToggleSection(): void {\n    this.isCollapsed = !this.isCollapsed;\n  }\n}\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/CollapsibleSection',\n  component: 'Shared::CollapsibleSection',\n  args: {\n    title: 'Collapsible Section Title',\n    ...getDefaultRequiredArgs('Shared::CollapsibleSection'),\n  },\n};\n\nexport const CollapsibleSection = storyCreator('Shared::CollapsibleSection');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-shared-collapsible-section\\\"\\n  data-test-shared-collapsible-section\\n  data-test-shared-collapsible-section-is-collapsed={{this.isCollapsed}}\\n  ...attributes\\n>\\n  <h2\\n    class=\\\"c-shared-collapsible-section__title\\\"\\n    data-test-shared-collapsible-section-title\\n    role=\\\"button\\\"\\n    {{on \\'click\\' this.handleToggleSection}}\\n  >\\n    <Shared::DataDisplay::BetaIcon\\n      role=\\\"presentation\\\"\\n      @iconName={{if this.isCollapsed \\'expand_less\\' \\'expand_more\\'}}\\n      @size=\\\"custom\\\"\\n      class=\\\"c-shared-collapsible-section__collapse\\\"\\n      data-test-shared-collapsible-section-collapse\\n    />\\n    <span\\n      class=\\\"c-shared-collapsible-section__title-text\\\"\\n      data-test-shared-collapsible-section-title-text\\n    >\\n      {{@title}}\\n    </span>\\n\\n    <div class=\\\"c-shared-collapsible-section__right\\\">\\n      {{yield to=\\'header\\'}}\\n    </div>\\n  </h2>\\n  <div\\n    class={{get-classes-with-modifiers\\n      \\'c-shared-collapsible-section__body\\'\\n      collapsed=this.isCollapsed\\n    }}\\n    data-test-shared-collapsible-section-body\\n  >\\n    {{yield}}\\n  </div>\\n</div>\\n', { moduleName: 'client/shared/components/collapsible-section/template.hbs' });\n","import { action } from '@ember/object';\nimport { later } from '@ember/runloop';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\ninterface Args {\n  exceptSelector?: string;\n  onClose: () => void | Promise<void>;\n  collapsible?: boolean; // true by default\n  isCollapsed?: boolean;\n  onCollapse?: (isCollapsed: boolean) => void | Promise<void>;\n  onOpen?: () => void | Promise<void>;\n  openOnUpdate?: unknown; // open panel when changed\n}\n\nexport default class CollapsibleSidePanel extends Component<Args> {\n  isClickOutsideDisabled = false;\n  @tracked\n  _isCollapsed = false;\n\n  @tracked isDragging = false;\n\n  collapsibleElement: HTMLElement | null = null;\n  draggedImg: HTMLImageElement | null = null;\n  offsetY = 0;\n  offsetX = 0;\n\n  get isCollapsible() {\n    return this.args.collapsible !== false;\n  }\n\n  get isCollapsed() {\n    return this.args.isCollapsed === undefined ? this._isCollapsed : this.args.isCollapsed;\n  }\n\n  get exceptSelector() {\n    const baseExceptSelector = [\n      '.c-collapsible-side-panel__panel',\n      '.l-portal',\n      '[data-toaster]',\n      '.js-form-beta-select-dropdown-content',\n      '.pcr-app',\n      '#portal-for-dropdown',\n      '#portal-for-modal',\n      '#portal-for-widget-modal',\n      '#portal-for-chat-mentionables',\n    ];\n    if (this.args.exceptSelector) {\n      baseExceptSelector.push(this.args.exceptSelector);\n    }\n    return baseExceptSelector.join(',');\n  }\n\n  @action\n  onClickOutside() {\n    if (this.isClickOutsideDisabled) return;\n    if (!this.isCollapsible) {\n      void this.args.onClose();\n    } else if (!this.isCollapsed) {\n      this.collapse();\n    }\n  }\n\n  disableClickOutside() {\n    this.isClickOutsideDisabled = true;\n    later(() => {\n      this.isClickOutsideDisabled = false;\n    }, 100);\n  }\n\n  @action\n  collapse() {\n    this._isCollapsed = true;\n    void this.args.onCollapse?.(this._isCollapsed);\n  }\n\n  @action\n  open() {\n    void this.args.onOpen?.();\n    this._isCollapsed = false;\n\n    // fix the panel staying closed when changing panel content after a click\n    this.disableClickOutside();\n  }\n\n  @action\n  handleDidInsert(element: HTMLElement) {\n    this.collapsibleElement = element;\n  }\n\n  @action\n  handleDragStart(event: DragEvent) {\n    const boundingClientRect = this.collapsibleElement.getBoundingClientRect();\n    this.offsetX = boundingClientRect.right - event.x;\n    this.offsetY = event.y - boundingClientRect.top;\n    // 1x1 transparent pixel.  If we use a 0x0 image, Firefox\n    // would ignore it and fallback to the default.\n    this.draggedImg = new Image(1, 1);\n    this.draggedImg.src =\n      'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==';\n    document.body.appendChild(this.draggedImg);\n    this.draggedImg.style.opacity = '0';\n\n    event.dataTransfer.setDragImage(this.draggedImg, 0, 0);\n    event.dataTransfer.effectAllowed = 'move';\n    event.dataTransfer.dropEffect = 'move';\n    this.isDragging = true;\n\n    document.addEventListener('dragover', this.handleDrag);\n  }\n\n  @action\n  handleDrag(event: DragEvent) {\n    if (event.x === 0 || event.y === 0) return;\n\n    const notificationBar = document.querySelector<HTMLElement>('.js-notification-bar');\n    const top = Math.min(\n      Math.max(event.y - this.offsetY, 8 + (notificationBar?.offsetHeight || 0)),\n      window.innerHeight - this.collapsibleElement.offsetHeight - 8,\n    );\n    const right = Math.min(\n      Math.max(window.innerWidth - event.x - this.offsetX, 8),\n      window.innerWidth - this.collapsibleElement.offsetWidth - 8,\n    );\n    this.collapsibleElement.style.setProperty('--shared-collapsible-side-panel-top', `${top}px`);\n    this.collapsibleElement.style.setProperty(\n      '--shared-collapsible-side-panel-right',\n      `${right}px`,\n    );\n  }\n\n  @action\n  handleDragEnd() {\n    this.isDragging = false;\n    this.draggedImg?.remove();\n    document.removeEventListener('dragover', this.handleDrag);\n  }\n}\n","import Component from '@glimmer/component';\n\ntype Args = {\n  icon?: string;\n};\n\n// eslint-disable-next-line ember/no-empty-glimmer-component-classes\nexport default class CollapsibleSidePanelHeader extends Component<Args> {}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-collapsible-side-panel-header\\\" ...attributes>\\n  {{#if @icon}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{@icon}}\\n      class=\\\"c-collapsible-side-panel-header__icon\\\"\\n    />\\n  {{/if}}\\n\\n  {{#if (has-block \\'left\\')}}\\n    <span class=\\\"c-collapsible-side-panel-header__left\\\">\\n      {{yield to=\\'left\\'}}\\n    </span>\\n    <span>/</span>\\n  {{/if}}\\n\\n  <span class=\\\"c-collapsible-side-panel-header__right\\\">\\n    {{yield to=\\'right\\'}}\\n  </span>\\n</div>\\n', { moduleName: 'client/shared/components/collapsible-side-panel/header/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/CollapsibleSidePanel',\n  component: 'Shared::CollapsibleSidePanel',\n  args: {},\n  argTypes: {},\n};\n\nexport function Base() {\n  return {\n    template: hbs`\n      <Shared::CollapsibleSidePanel @onClose={{do-nothing-function}}>\n        <:header>\n          Title of the panel\n        </:header>\n        <:headerBottom>\n          Subtitle of the panel\n        </:headerBottom>\n        <:body>\n          Content of the panel\n        </:body>\n      </Shared::CollapsibleSidePanel>`,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#unless (and this.isCollapsible (not this.isDragging))}}\\n  <div\\n    class={{shared/get-classes-with-modifiers\\n      \\'c-collapsible-side-panel__overlay\\'\\n      dragging=this.isDragging\\n    }}\\n  />\\n{{/unless}}\\n<div\\n  class={{get-classes-with-modifiers\\n    \\'c-collapsible-side-panel__panel\\'\\n    collapsed=this.isCollapsed\\n    dragging=this.isDragging\\n  }}\\n  {{forest-on-click-outside\\n    this.onClickOutside\\n    exceptSelector=this.exceptSelector\\n    eventType=\\'mousedown\\'\\n  }}\\n  {{did-insert this.handleDidInsert}}\\n  {{did-update this.open @openOnUpdate}}\\n  draggable={{this.isCollapsed}}\\n  {{on \\'dragstart\\' this.handleDragStart}}\\n  {{on \\'dragend\\' this.handleDragEnd}}\\n  ...attributes\\n>\\n  <Shared::Header\\n    @closeButton={{true}}\\n    @onClose={{@onClose}}\\n    class=\\\"c-collapsible-side-panel__header\\\"\\n    data-test-collapsible-side-panel-header\\n  >\\n    <:left>\\n      {{#if this.isCollapsible}}\\n        <Shared::ToggleCollapseButton\\n          @isOpen={{not this.isCollapsed}}\\n          @onCollapse={{this.collapse}}\\n          @onOpen={{this.open}}\\n        />\\n      {{/if}}\\n    </:left>\\n    <:top>\\n      {{yield to=\\'header\\'}}\\n    </:top>\\n    <:bottom>\\n      {{yield to=\\'header-bottom\\'}}\\n    </:bottom>\\n  </Shared::Header>\\n\\n  <div class=\\\"c-collapsible-side-panel__content\\\">\\n    {{yield to=\\'body\\'}}\\n  </div>\\n\\n  {{#if (has-block \\'footer\\')}}\\n    <div class=\\\"c-collapsible-side-panel__footer\\\" data-test-collapsible-side-panel-footer>\\n      {{yield to=\\'footer\\'}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/shared/components/collapsible-side-panel/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport Pickr from '@simonwep/pickr';\n\nimport validateArguments from 'client/decorators/validate';\nimport ColorUtils, { REGEX_COLOR, REGEX_COLOR_WITH_ALPHA } from 'client/utils/color-utils';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype ColorPickerComponentArgs = {\n  onChange: (value: string) => void;\n  color: string | null;\n  isOpacityDisabled?: boolean;\n  isDisabled?: boolean;\n  colors?: string[];\n};\n@validateArguments\nexport default class ColorPickerComponent extends Component<ColorPickerComponentArgs> {\n  static propTypes = {\n    onChange: PropTypes.func,\n    color: PropTypes.string,\n    isOpacityDisabled: PropTypes.bool,\n    isDisabled: PropTypes.bool,\n    colors: PropTypes.arrayOf(PropTypes.string),\n  };\n\n  @tracked picker: Pickr;\n  @tracked colorPickerElement: HTMLElement;\n  @tracked latestColorPicked: string;\n\n  willDestroy() {\n    super.willDestroy();\n    this.picker?.destroyAndRemove();\n    this.colorPickerElement = null;\n  }\n\n  get regexColor() {\n    return this.args.isOpacityDisabled ? REGEX_COLOR : REGEX_COLOR_WITH_ALPHA;\n  }\n\n  get colorPicked(): string {\n    if (!this.isValidColor) return 'white';\n\n    if (this.args.color.startsWith('#')) {\n      return this.args.color;\n    }\n\n    return `#${this.args.color}`;\n  }\n\n  set colorPicked(value: string) {\n    const color = !value || value.startsWith('#') ? value : `#${value}`;\n    this.latestColorPicked = color;\n    this.args.onChange(color);\n  }\n\n  get isValidColor() {\n    return (\n      this.args.color\n      && typeof this.args.color === 'string'\n      && this.regexColor.test(this.args.color)\n    );\n  }\n\n  @action\n  async initializeColorPicker(element: HTMLElement) {\n    const portal = document.querySelector<HTMLElement>('#portal-for-color-picker');\n    this.colorPickerElement = element;\n    this.latestColorPicked = this.colorPicked;\n\n    this.updateColorOnElement();\n\n    if (this.args.isDisabled) return;\n    this.picker = Pickr.create({\n      el: element,\n      useAsButton: true,\n      // If the color picker is not attached to a specific element,\n      // it will be attached to the body, which causes issues with\n      // smart actions for instances, because clicking on something closes\n      // the form panel.\n      container: portal,\n      theme: 'classic',\n      default: this.colorPicked,\n      lockOpacity: Boolean(this.args.isOpacityDisabled),\n      appClass: 'l-color-picker',\n      position: 'bottom-start',\n      components: {\n        // Main components\n        preview: true,\n        opacity: !this.args.isOpacityDisabled,\n        hue: true,\n\n        // Input / output Options\n        interaction: {\n          hex: true,\n          rgba: true,\n          hsla: true,\n          hsva: true,\n          cmyk: true,\n          input: true,\n          cancel: false,\n          clear: false,\n          save: true,\n        },\n      },\n      swatches: this.args.colors || ColorUtils.colors,\n    });\n\n    this.picker.on('save', this.updateColorPicked);\n  }\n\n  @action\n  updateColorPicked(color: Pickr.HSVaColor) {\n    if (this.isDestroyed || this.isDestroying) return;\n\n    const value = color && color.toHEXA().toString();\n    if (value !== this.args.color) {\n      this.colorPicked = value;\n\n      this.updateColorOnElement();\n    }\n\n    this.picker?.hide();\n  }\n\n  @action\n  showColorPicker() {\n    if (this.args.isDisabled) return;\n    this.picker.show();\n  }\n\n  @action\n  updateColorOnElement() {\n    this.colorPickerElement.style.setProperty('--color-picker-color', this.colorPicked);\n  }\n\n  @action\n  handleDidUpdate() {\n    if (this.picker && this.colorPicked !== this.latestColorPicked) {\n      // This will reset the color picker\n      this.picker.setColor(this.colorPicked, true);\n      this.picker.applyColor(true);\n    }\n    this.updateColorOnElement();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nimport { storyCreator } from '../../../../stories/story-creator';\n\nexport default {\n  title: 'Shared/ColorPicker',\n  component: 'Shared::ColorPicker',\n  argTypes: {\n    color: {\n      type: 'string',\n      description: 'The color to display.',\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: false },\n      },\n    },\n    onChange: {\n      type: 'function',\n      description: \"Called on the input's `change` event.\",\n      table: {\n        category: 'Actions',\n      },\n    },\n    isOpacityDisabled: {\n      type: 'boolean',\n      description: 'Disables the opacity slider.',\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: false },\n      },\n    },\n    isDisabled: {\n      type: 'boolean',\n      description: 'Disables the input.',\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: false },\n      },\n    },\n    colors: {\n      type: 'array',\n      description: 'The colors to display in the palette.',\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: false },\n      },\n    },\n  },\n  args: {\n    color: '#FFAAAA',\n  },\n};\n\nexport const Base = storyCreator('Shared::ColorPicker');\n\nexport const NullColor = () => ({\n  template: hbs`<Shared::ColorPicker @color={{null}} />\n`,\n});\n\nexport const Disabled = () => ({\n  template: hbs`<Shared::ColorPicker @color=\"#FFAAAA\" @isDisabled={{true}} />\n`,\n});\n\nexport const DisabledNull = () => ({\n  template: hbs`<Shared::ColorPicker @color={{null}} @isDisabled={{true}} />\n`,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<button\\n  type=\\\"button\\\"\\n  class=\\\"c-color-picker\\n    {{if @isDisabled \\'c-color-picker--disabled\\'}}\\n    {{if @withInput \\'c-color-picker--with-input\\'}}\\\"\\n  ...attributes\\n  data-test-color-picker\\n  {{did-insert this.initializeColorPicker}}\\n  {{did-update this.handleDidUpdate @color}}\\n  {{on \\'click\\' this.showColorPicker}}\\n>\\n  {{#unless this.isValidColor}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName=\\\"format_color_reset\\\"\\n      class=\\\"c-color-picker__icon {{if @isDisabled \\'c-color-picker__icon--disabled\\'}}\\\"\\n      data-test-color-picker-icon\\n    />\\n  {{/unless}}\\n</button>\\n', { moduleName: 'client/shared/components/color-picker/template.hbs' });\n","/* eslint-disable sonarjs/pseudo-random */\nimport { action } from '@ember/object';\nimport { later } from '@ember/runloop';\nimport Component from '@glimmer/component';\n\nimport config from 'client/config/environment';\n\ninterface Args {\n  containerSelector: string;\n}\n\nexport default class SharedConfettiComponent extends Component<Args> {\n  private getPrimaryColorVariations(element: HTMLElement): string[] {\n    const computedStyle = getComputedStyle(element);\n    const primaryColor = computedStyle.getPropertyValue('--primary-600').trim();\n\n    const rgb = this.parseColor(primaryColor);\n\n    return [\n      this.adjustBrightness(rgb, 1.4),\n      this.adjustBrightness(rgb, 1.2),\n      `rgb(${rgb.r}, ${rgb.g}, ${rgb.b})`,\n      this.adjustBrightness(rgb, 0.8),\n      this.adjustBrightness(rgb, 0.6),\n    ];\n  }\n\n  private parseColor(color: string): { r: number; g: number; b: number } | null {\n    const trimmedColor = color.trim();\n\n    const hexResult = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(trimmedColor);\n    return {\n      r: parseInt(hexResult[1], 16),\n      g: parseInt(hexResult[2], 16),\n      b: parseInt(hexResult[3], 16),\n    };\n  }\n\n  private adjustBrightness(rgb: { r: number; g: number; b: number }, factor: number): string {\n    const r = Math.min(255, Math.max(0, Math.round(rgb.r * factor)));\n    const g = Math.min(255, Math.max(0, Math.round(rgb.g * factor)));\n    const b = Math.min(255, Math.max(0, Math.round(rgb.b * factor)));\n    return `rgb(${r}, ${g}, ${b})`;\n  }\n\n  @action\n  setupConfetti(element: HTMLElement) {\n    const confettiCount = 30;\n    const confettiContainer = document.createElement('div');\n    confettiContainer.className = 'c-shared-confetti__fullscreen';\n    document.body.appendChild(confettiContainer);\n\n    const cardElement = element.closest(this.args.containerSelector);\n    const rect = cardElement\n      ? cardElement.getBoundingClientRect()\n      : element.getBoundingClientRect();\n    const originX = rect.left + rect.width / 2;\n    const originY = rect.top + rect.height / 2;\n\n    const colors = this.getPrimaryColorVariations(element);\n\n    for (let i = 0; i < confettiCount; i++) {\n      const confetti = document.createElement('div');\n      confetti.className = 'c-shared-confetti__piece';\n\n      const angle = (Math.PI * 2 * i) / confettiCount + (Math.random() - 0.5) * 0.5;\n      const velocity = 200 + Math.random() * 300;\n      const deltaX = Math.cos(angle) * velocity;\n      const deltaY = Math.sin(angle) * velocity;\n\n      confetti.style.left = `${originX}px`;\n      confetti.style.top = `${originY}px`;\n      confetti.style.setProperty('--delta-x', `${deltaX}px`);\n      confetti.style.setProperty('--delta-y', `${deltaY}px`);\n\n      confetti.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];\n\n      confettiContainer.appendChild(confetti);\n    }\n\n    later(() => {\n      confettiContainer.remove();\n    }, config.APP.confettisTimeout);\n  }\n\n  @action\n  teardownConfetti() {\n    const existing = document.querySelector('.c-shared-confetti__fullscreen');\n    if (existing) {\n      existing.remove();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-shared-confetti\\\"\\n  {{did-insert this.setupConfetti}}\\n  {{will-destroy this.teardownConfetti}}\\n  data-test-workflow-congratulations\\n></div>\\n', { moduleName: 'client/shared/components/confetti/template.hbs' });\n","import type ContactService from 'client/shared/services/contact';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\ninterface ContactUsLinkArgs {\n  subject: string;\n  message?: string;\n  linkText: string;\n  isCustomLink?: boolean;\n  onClick?: () => void;\n}\n\nexport default class ContactUsLinkComponent extends Component<ContactUsLinkArgs> {\n  @service('shared/contact') contactService: ContactService;\n\n  get contactFormLink() {\n    const message = this.args.message ? `\\n\\n${this.args.message}` : '';\n    return this.contactService.getContactFormUrl(`Subject: ${this.args.subject}${message}`);\n  }\n\n  @action openLink() {\n    this.args.onClick?.();\n  }\n}\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/ContactUsLink',\n  component: 'Shared::ContactUsLink',\n  args: {\n    ...getDefaultRequiredArgs('Shared::ContactUsLink'),\n  },\n};\n\nexport const ContactUsLink = storyCreator('Shared::ContactUsLink');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<a\\n  class=\\\"c-shared-contact-us-link\\\"\\n  ...attributes\\n  href={{this.contactFormLink}}\\n  target=\\\"_blank\\\"\\n  rel=\\\"noopener noreferrer\\\"\\n  {{on \\'click\\' this.openLink}}\\n  data-test-shared-contact-us-link\\n>\\n  <span class={{get-classes-with-modifiers \\'c-shared-contact-us-link__text\\' custom=@isCustomLink}}>\\n    {{~or @linkText \\'contact us\\'~}}\\n  </span>{{~\\'\\'~}}\\n</a>{{~@punctuation}}\\n{{~\\'\\'~}}\\n', { moduleName: 'client/shared/components/contact-us-link/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type Args = {\n  withSideMargin?: boolean;\n};\n\n@validateArguments\nexport default class ContentSeparatorComponent extends Component<Args> {\n  static propTypes = {\n    withSideMargin: PropTypes.bool,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/ContentSeparator',\n  component: 'Shared::ContentSeparator',\n  argTypes: {\n    withSideMargin: {\n      type: {\n        name: 'boolean',\n      },\n      description: 'Add a margin on the left and right sides of the separator.',\n      table: {\n        category: 'Properties',\n      },\n    },\n  },\n  args: {\n    withSideMargin: false,\n  },\n};\n\nexport const CompleteExample = (args) => {\n  return {\n    context: args,\n    template: hbs`\n      <p>\n        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui nec nunc tincidunt tincidunt. Donec auctor, nunc nec lacinia\n      </p>\n      <Shared::ContentSeparator @withSideMargin={{this.withSideMargin}} />\n      <p>\n        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui nec nunc tincidunt tincidunt. Donec auctor, nunc nec lacinia\n      </p>\n    `,\n  };\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-content-separator {{if @withSideMargin \\'c-content-separator--with-side-margin\\'}}\\\"\\n  ...attributes\\n>\\n</div>\\n', { moduleName: 'client/shared/components/content-separator/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface DataBlockArgs {\n  title: string;\n}\n\n@validateArguments\nexport default class DataBlockComponent extends Component<DataBlockArgs> {\n  static propTypes = {\n    title: PropTypes.string.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/DataBlock',\n  component: 'Shared::DataBlock',\n  argTypes: {\n    title: {\n      type: {\n        name: 'string',\n        required: true,\n      },\n      description: 'The title of the data block',\n      table: {\n        category: 'Properties',\n      },\n    },\n    'header-actions': {\n      description: 'Named block for header actions',\n      table: {\n        category: 'Named Blocks',\n      },\n      control: {\n        type: null,\n      },\n    },\n    body: {\n      description: 'Named block for body',\n      table: {\n        category: 'Named Blocks',\n      },\n      control: {\n        type: null,\n      },\n    },\n  },\n  args: {\n    title: 'Overview',\n  },\n};\n\nexport const DataBlock = (args) => {\n  return {\n    context: args,\n    template: hbs`\n      <Shared::DataBlock @title={{this.title}}>\n        <:body>\n          <p>Content</p>\n        </:body>\n      </Shared::DataBlock>\n    `,\n  };\n};\n\nexport const DataBlockWithActions = (args) => {\n  return {\n    context: args,\n    template: hbs`\n      <Shared::DataBlock @title={{this.title}}>\n        <:header-actions>\n        <Shared::Button\n            @type=\"forest-primary\"\n            @text=\"Action #1\"\n            @onClick={{(do-nothing-function)}}\n          />\n\n          <Shared::Button\n            @type=\"primary\"\n            @text=\"Action #2\"\n            @onClick={{(do-nothing-function)}}\n          />\n        </:header-actions>\n        <:body>\n          <p>Body Yield</p>\n        </:body>\n      </Shared::DataBlock>\n    `,\n  };\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-shared-data-block\\\" data-test-shared-data-block={{@title}} ...attributes>\\n  <div class=\\\"c-shared-data-block__header\\\">\\n    <h3 class=\\\"c-shared-data-block__header-title\\\" data-test-shared-data-block-header-title>\\n      {{@title}}\\n    </h3>\\n    {{#if (has-block \\'header-actions\\')}}\\n      <div class=\\\"c-shared-data-block__header-actions\\\" data-test-shared-data-block-header-actions>\\n        {{yield to=\\'header-actions\\'}}\\n      </div>\\n    {{/if}}\\n  </div>\\n\\n  {{#if (has-block \\'body\\')}}\\n    <div class=\\\"c-shared-data-block__body\\\" data-test-shared-data-block-body>\\n      {{yield to=\\'body\\'}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/shared/components/data-block/template.hbs' });\n","import { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport { getColorFromTheme } from 'client/utils/color-utils';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n/**\n * @enum {string}\n */\nexport const BetaBadgeStyle = {\n  DEFAULT: 'solid',\n  DASHED: 'dashed',\n};\n\n@validateArguments\nexport default class DataDisplayBetaBadgeComponent extends Component {\n  static propTypes = {\n    value: PropTypes.oneOfType([PropTypes.htmlSafe, PropTypes.string, PropTypes.number]),\n    color: PropTypes.string,\n    style: PropTypes.oneOf(Object.values(BetaBadgeStyle)),\n    isNotUppercase: PropTypes.bool,\n    isNotHorizontallyCentered: PropTypes.bool,\n  };\n\n  get styleOrDefault() {\n    return this.args.style || BetaBadgeStyle.DEFAULT;\n  }\n\n  get containerElementId() {\n    return guidFor(this);\n  }\n\n  get containerElement() {\n    return document.getElementById(this.containerElementId);\n  }\n\n  get rgbColor() {\n    return getColorFromTheme(this.args.color);\n  }\n\n  @action\n  setColors() {\n    if (this.isDestroying || this.isDestroyed) return;\n    // NOTICE: Add a semi-transparent background color\n    const backgroundColor =\n      this.args.color === 'secondary' ? getColorFromTheme('--slate-100') : `${this.rgbColor}33`;\n    const borderColor =\n      this.args.color === 'secondary' ? getColorFromTheme('--slate-200') : this.rgbColor;\n\n    this.containerElement.style.setProperty('--badge-color', this.rgbColor);\n    this.containerElement.style.setProperty('--badge-background-color', backgroundColor);\n    this.containerElement.style.setProperty('--badge-border-color', borderColor);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { storyCreator } from 'stories/story-creator';\n\nimport { BADGE_COLORS, getColorFromTheme } from 'client/utils/color-utils';\n\nexport default {\n  title: 'Shared/DataDisplay/BetaBadge',\n  component: 'Shared::DataDisplay::BetaBadge',\n  argTypes: {\n    color: {\n      type: 'string',\n      description: \"The badge's color.\",\n      options: [\n        'danger',\n        'editor',\n        'info',\n        'primary',\n        'secondary',\n        'success',\n        'surface',\n        'warning',\n      ],\n      control: { type: 'select' },\n    },\n    value: {\n      type: 'string',\n      description: \"The badge's text.\",\n    },\n  },\n  args: {\n    value: 'Forest Admin',\n    color: 'primary',\n  },\n};\n\nexport const Base = storyCreator('Shared::DataDisplay::BetaBadge');\n\nexport const Colors = () => ({\n  template: hbs`\n    <Shared::DataDisplay::BetaBadge @value=\"Primary\" @color=\"primary\"/>\n    <Shared::DataDisplay::BetaBadge @value=\"Secondary\" @color=\"secondary\"/>\n    <Shared::DataDisplay::BetaBadge @value=\"Success\" @color=\"success\"/>\n    <Shared::DataDisplay::BetaBadge @value=\"Warning\" @color=\"warning\"/>\n    <Shared::DataDisplay::BetaBadge @value=\"Danger\" @color=\"danger\"/>\n    <Shared::DataDisplay::BetaBadge @value=\"Editor\" @color=\"editor\"/>\n    <Shared::DataDisplay::BetaBadge @value=\"Surface\" @color=\"surface\"/>\n  `,\n});\n\nexport const PredefinedColors = () => ({\n  context: {\n    colors: BADGE_COLORS.map((color) => ({\n      value: getColorFromTheme(color),\n      label: color,\n    })),\n  },\n  template: hbs`\n    {{#each this.colors as |color|}}\n      <Shared::DataDisplay::BetaBadge @value={{color.label}}  @color={{color.value}} />\n    {{/each}}\n  `,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<span\\n  id={{this.containerElementId}}\\n  class={{get-classes-with-modifiers\\n    \\'c-badge\\'\\n    this.styleOrDefault\\n    uppercase=(not @isNotUppercase)\\n    optical-correction=@opticalCorrection\\n    horizontally-centered=(not @isNotHorizontallyCentered)\\n  }}\\n  {{did-insert this.setColors @color}}\\n  {{did-update this.setColors @color @backgroundColor}}\\n  data-test-badge-color={{@color}}\\n  ...attributes\\n>\\n  {{#if (has-block)}}\\n    {{yield}}\\n  {{else}}\\n    {{@value}}\\n  {{/if}}\\n</span>\\n', { moduleName: 'client/shared/components/data-display/beta-badge/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type Args = {\n  code: string;\n  oneLineCommand: boolean;\n};\n\n@validateArguments\nexport default class DataDisplayBetaCodeComponent extends Component<Args> {\n  static propTypes = {\n    code: PropTypes.string.isRequired,\n    oneLineCommand: PropTypes.bool.isRequired,\n  };\n\n  get lines() {\n    return this.args.code.split('\\n');\n  }\n\n  get value() {\n    if (!this.args.oneLineCommand) {\n      return this.lines.join(' && ');\n    }\n    return this.args.code;\n  }\n}\n","import { storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/DataDisplay/BetaCode',\n  component: 'Shared::DataDisplay::BetaCode',\n  argTypes: {\n    code: {\n      type: {\n        name: 'string',\n        required: true,\n      },\n      description: 'The code to display.',\n      table: {\n        category: 'Properties',\n      },\n    },\n    oneLineCommand: {\n      type: {\n        name: 'boolean',\n        required: true,\n      },\n      description:\n        'On clicking on COPY when `false`, joins the lines with `&&` then copy to the clipboard. On clicking on COPY when `true`, copy to the clipboard as is.',\n      table: {\n        category: 'Properties',\n      },\n    },\n  },\n  args: {\n    code: 'npm install -g forest-cli',\n    oneLineCommand: true,\n  },\n};\n\nexport const BetaCode = storyCreator('Shared::DataDisplay::BetaCode');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"l-beta-code-container\\\" ...attributes>\\n  <div class=\\\"c-beta-code {{@class}}\\\">\\n    <ul class={{concat \\'c-beta-code__lines\\' (if @oneLineCommand \\' c-beta-code__lines--one-lined\\')}}>\\n      {{#if (has-block)}}\\n        {{yield}}\\n      {{else}}\\n        {{#each this.lines as |line|}}\\n          <li class=\\\"c-beta-code__line\\\">\\n            <span class=\\\"c-beta-code__line-normal\\\">\\n              {{~line~}}\\n            </span>\\n          </li>\\n        {{/each}}\\n      {{/if}}\\n    </ul>\\n  </div>\\n\\n  <Form::Copy @value={{this.value}} @insideInput={{true}} class=\\\"c-beta-code__copy\\\" />\\n</div>\\n', { moduleName: 'client/shared/components/data-display/beta-code/template.hbs' });\n","import Component from '@ember/component';\nimport { action } from '@ember/object';\nimport { bool } from '@ember/object/computed';\nimport { classNames } from '@ember-decorators/component';\n\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-beta-display-list')\nexport default class DataDisplayBetaDisplayListComponent extends Component {\n  propTypes = {\n    items: PropTypes.array.isRequired,\n    onItemClick: PropTypes.func,\n    header: PropTypes.component,\n    footer: PropTypes.component,\n    emptyState: PropTypes.component,\n    noPadding: PropTypes.bool,\n  };\n\n  @bool('onItemClick') isClickable;\n\n  init(...args) {\n    super.init(...args);\n\n    if (!this.items) {\n      throw new MissingRequiredPropertyError('items');\n    }\n  }\n\n  @action\n  onItemClickAction(item) {\n    return this.isClickable && this.onItemClick(item);\n  }\n}\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\nimport { isFunction } from 'lodash';\n\nimport { MissingRequiredPropertyError, WrongPropertyValueError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-beta-display-list-footer')\nexport default class DataDisplayBetaDisplayListFooterComponent extends Component {\n  propTypes = {\n    text: PropTypes.string.isRequired,\n    iconName: PropTypes.string.isRequired,\n    onButtonClick: PropTypes.func.isRequired,\n  };\n\n  init(...args) {\n    super.init(...args);\n\n    if (!this.text) {\n      throw new MissingRequiredPropertyError('text');\n    }\n\n    if (!this.iconName) {\n      throw new MissingRequiredPropertyError('iconName');\n    }\n\n    if (!this.onButtonClick) {\n      throw new MissingRequiredPropertyError('onButtonClick');\n    }\n\n    if (this.onButtonClick && !isFunction(this.onButtonClick)) {\n      throw new WrongPropertyValueError('onButtonClick', this.onButtonClick);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-beta-display-list-footer__button\\\"\\n  data-test-footer-button={{true}}\\n  {{on \\'click\\' @onButtonClick}}\\n  role=\\\"button\\\"\\n>\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName={{@iconName}}\\n    class=\\\"c-beta-display-list-footer__button-icon\\\"\\n  />\\n  <span class=\\\"c-beta-display-list-footer__button-label\\\">\\n    {{@text}}\\n  </span>\\n</div>\\n', { moduleName: 'client/shared/components/data-display/beta-display-list/footer/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class DataDisplayBetaDisplayListHeaderWithPaginationFilterButtonComponent extends Component {\n  @argument(Function) applyFilter;\n  @argument(Object) fields;\n  @argument(optional(Object)) filter;\n\n  @service popup;\n  @tracked isPopupVisible = false;\n\n  @computed('args.filter')\n  get hasCondition() {\n    return !isEmpty(this.args.filter);\n  }\n\n  @action\n  onFilterClick() {\n    if (this.isPopupVisible) {\n      this.hideFilterMenu();\n    } else {\n      this.isPopupVisible = true;\n    }\n  }\n\n  @action\n  onApplyFilterClick(filter) {\n    this.args.applyFilter(filter);\n    this.hideFilterMenu();\n  }\n\n  @action\n  resetFilter() {\n    this.args.applyFilter(null);\n  }\n\n  @action\n  hideFilterMenu() {\n    this.isPopupVisible = false;\n    this.popup.hide(this.elementId);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div ...attributes>\\n  {{#if this.hasCondition}}\\n    <div class=\\\"c-beta-display-list-header-filter-button__has-condition\\\">\\n      Role is\\n      {{@filter.name}}\\n      <i\\n        class=\\\"material-icons c-beta-display-list-header-filter-button__has-condition--icon\\\"\\n        role=\\\"button\\\"\\n        {{on \\'click\\' this.resetFilter}}\\n      >\\n        close\\n      </i>\\n    </div>\\n  {{else}}\\n    <XDropdown @onLeaveAction={{this.hideFilterMenu}} @onClickAction={{this.onFilterClick}}>\\n      <div\\n        id=\\\"c-beta-display-list-header-filter-button\\\"\\n        class=\\\"c-beta-display-list-header-filter-button\\n          {{if this.isPopupVisible \\' c-beta-display-list-header-filter-button--active\\'}}\\\"\\n      >\\n        <i class=\\\"material-icons c-beta-display-list-header-filter-button__icon\\\">\\n          filter_list\\n        </i>\\n        <span class=\\\"c-beta-display-list-header-filter-button__text\\\">\\n          Filter\\n        </span>\\n      </div>\\n    </XDropdown>\\n  {{/if}}\\n\\n  {{#if this.isPopupVisible}}\\n    <Shared::DataDisplay::BetaDisplayList::HeaderWithPagination::Filter::Popup\\n      @containerId={{this.elementId}}\\n      @parentElementId=\\\"c-beta-display-list-header-filter-button\\\"\\n      @hide={{this.hideFilterMenu}}\\n      @apply={{this.onApplyFilterClick}}\\n      @fields={{@fields}}\\n      @filter={{@filter}}\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/shared/components/data-display/beta-display-list/header-with-pagination/filter/button/template.hbs' });\n","import Component from '@ember/component';\nimport { computed } from '@ember/object';\nimport { next } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\nimport window from 'ember-window-mock';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-beta-display-list-header-filter__popup c-popup')\n@classNameBindings('isHidden:c-beta-display-list-header-filter__popup--hidden')\nexport default class DataDisplayBetaDisplayListHeaderWithPaginationFilterPopupComponent extends Component {\n  @service popup;\n\n  propTypes = {\n    parentElementId: PropTypes.string.isRequired,\n    containerId: PropTypes.string.isRequired,\n    scrollToBottom: PropTypes.bool,\n    hide: PropTypes.func.isRequired,\n  };\n\n  isHidden = true;\n\n  @computed('parentElementId')\n  get parentElement() {\n    return document.getElementById(this.parentElementId);\n  }\n\n  init(...args) {\n    super.init(...args);\n\n    this.set('currentFilterValue', this.filter);\n  }\n\n  didInsertElement(...args) {\n    super.didInsertElement(...args);\n    this.initPopupPosition();\n  }\n\n  initPopupPosition() {\n    if (!this.parentElementId) {\n      return;\n    }\n\n    const parentElementPosition = this.parentElement.getBoundingClientRect();\n    const margin = 8;\n\n    const windowWidth = window.innerWidth;\n    const position = {\n      top: parentElementPosition.bottom + margin,\n      right: windowWidth - parentElementPosition.right,\n    };\n\n    next(() => {\n      if (this.isDestroyed || this.isDestroying) {\n        return;\n      }\n      this.popup.show(this.containerId, this.element, position, () => this.set('isHidden', false));\n    });\n  }\n\n  click(event) {\n    event.stopPropagation();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-display-list-header-filter__form\\\">\\n  <div class=\\\"c-beta-display-list-header-filter__entries\\\">\\n    <div class=\\\"c-beta-display-list-header-filter__entry\\\">\\n      <span class=\\\"c-beta-display-list-header-filter__entry__where\\\">\\n        where\\n      </span>\\n      <Shared::BetaInput\\n        @value=\\\"Role\\\"\\n        @readOnly={{true}}\\n        @class=\\\"c-beta-display-list-header-filter__entry__value\\\"\\n      />\\n    </div>\\n    <div class=\\\"c-beta-display-list-header-filter__entry\\\">\\n      <span class=\\\"c-beta-display-list-header-filter__entry__is\\\">\\n        is\\n      </span>\\n      <Shared::BetaSelect\\n        @value={{this.currentFilterValue}}\\n        @options={{@fields}}\\n        @namePath=\\\"name\\\"\\n        @class=\\\"c-beta-display-list-header-filter__entry__value\\\"\\n        @placeholder=\\\"Select a field\\\"\\n        @withSearchInput={{true}}\\n      />\\n    </div>\\n  </div>\\n\\n  <Shared::Button::BetaButton\\n    @type=\\\"primary\\\"\\n    @underline={{false}}\\n    @text=\\\"Apply filter\\\"\\n    @disabled={{not this.currentFilterValue}}\\n    @action={{fn @apply this.currentFilterValue}}\\n    class=\\\"c-beta-display-list-header-filter__apply-filter\\\"\\n  />\\n</div>\\n', { moduleName: 'client/shared/components/data-display/beta-display-list/header-with-pagination/filter/popup/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-display-list__header-with-pagination\\\">\\n  <Shared::BetaSearchBar\\n    @searchOnInput={{true}}\\n    @searchFunction={{@searchFunction}}\\n    @searchValue={{@searchValue}}\\n    @onChange={{fn (mut @searchValue)}}\\n    @placeholder={{if @displayLoading \\'Search...\\' @placeholder}}\\n    class=\\\"c-beta-display-list__header-with-pagination__search-bar\\\"\\n    data-test-list-search-bar={{true}}\\n  />\\n  <div class=\\\"c-beta-display-list__header-with-pagination__right-panel\\\">\\n    {{#if @displayLoading}}\\n      {{#if @isFilterEnabled}}\\n        <div class=\\\"c-beta-display-list__header-with-pagination__filter__loader\\\"></div>\\n      {{/if}}\\n      <div class=\\\"c-beta-display-list__header-with-pagination__pagination__loader\\\"></div>\\n    {{else}}\\n      {{#if @isFilterEnabled}}\\n        <Shared::DataDisplay::BetaDisplayList::HeaderWithPagination::Filter::Button\\n          @fields={{@fields}}\\n          @applyFilter={{@applyFilter}}\\n          @filter={{@filter}}\\n        />\\n      {{/if}}\\n      <Shared::BetaPaginator\\n        @currentPage={{@currentPage}}\\n        @numberOfPages={{@numberOfPages}}\\n        @back={{@back}}\\n        @next={{@next}}\\n      />\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/shared/components/data-display/beta-display-list/header-with-pagination/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\nimport { MissingRequiredPropertyError, WrongPropertyValueError } from 'client/utils/errors';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-beta-display-list-header')\nexport default class DataDisplayBetaDisplayListHeaderComponent extends Component {\n  propTypes = {\n    titles: PropTypes.array.isRequired,\n  };\n\n  init(...args) {\n    super.init(...args);\n\n    if (!this.titles) {\n      throw new MissingRequiredPropertyError('titles');\n    }\n\n    if (this.titles && !Array.isArray(this.titles)) {\n      throw new WrongPropertyValueError('titles', this.titles);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#each @titles as |title index|}}\\n  <div class=\\\"c-beta-display-list-header__cell\\\" data-test-header-item={{index}}>\\n    {{title}}\\n  </div>\\n{{/each}}\\n', { moduleName: 'client/shared/components/data-display/beta-display-list/header/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-display-list-loader\\\">\\n  <IncrementFor @times={{or @pageSize 10}}>\\n    <div class=\\\"c-beta-display-list-loader__item\\\">\\n      <div class=\\\"c-beta-display-list-loader__item-bubble\\\"></div>\\n      <div\\n        class=\\\"c-beta-display-list-loader__item-info c-beta-display-list-loader__item-info--1\\\"\\n      ></div>\\n      <div\\n        class=\\\"c-beta-display-list-loader__item-info c-beta-display-list-loader__item-info--2\\\"\\n      ></div>\\n      <div\\n        class=\\\"c-beta-display-list-loader__item-info c-beta-display-list-loader__item-info--3\\\"\\n      ></div>\\n      <div\\n        class=\\\"c-beta-display-list-loader__item-info c-beta-display-list-loader__item-info--4\\\"\\n      ></div>\\n    </div>\\n  </IncrementFor>\\n\\n  <div class=\\\"c-beta-display-list-loader__overlay\\\"></div>\\n</div>\\n', { moduleName: 'client/shared/components/data-display/beta-display-list/loader/template.hbs' });\n","import Component from '@ember/component';\nimport { tagName } from '@ember-decorators/component';\n// import { argument, Action } from '@ember-decorators/argument';\n\n@tagName('')\nexport default class DataDisplayBetaDisplayListSearchBarComponent extends Component {\n  // @argument('string')\n  placeholder;\n\n  // @argument(Action)\n  searchFunction;\n\n  search = '';\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::BetaSearchBar\\n  @searchFunction={{@searchFunction}}\\n  @placeholder={{@placeholder}}\\n  @searchOnInput={{true}}\\n  class=\\\"c-beta-display-list-search-bar\\\"\\n  data-test-list-search-bar={{true}}\\n/>\\n', { moduleName: 'client/shared/components/data-display/beta-display-list/search-bar/template.hbs' });\n","import { storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/DataDisplay/BetaDisplayList',\n  component: 'Shared::DataDisplay::BetaDisplayList',\n  argTypes: {\n    items: {\n      type: { name: 'array', required: true },\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: false },\n      },\n    },\n    onItemClick: {\n      type: 'function',\n      table: {\n        category: 'Events',\n        defaultValue: { summary: false },\n      },\n    },\n    header: {\n      type: 'Component',\n      description: 'The component to display inside header (deprecated)',\n      table: {\n        category: 'Deprecated',\n      },\n    },\n    footer: {\n      type: 'Component',\n      description: 'The component to display inside footer (deprecated)',\n      table: {\n        category: 'Deprecated',\n      },\n    },\n    emptyState: {\n      type: 'Component',\n      description: 'The component to display inside emptyState (deprecated)',\n      table: {\n        category: 'Deprecated',\n      },\n    },\n    noPadding: {\n      type: 'boolean',\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: false },\n      },\n    },\n  },\n  args: {\n    items: [\n      {\n        email: 'vador@star.wars',\n        fullName: 'Darth Vador',\n      },\n      {\n        email: 'vador@star.wars',\n        fullName: 'Darth Vador',\n      },\n      {\n        email: 'vador@star.wars',\n        fullName: 'Darth Vador',\n      },\n      {\n        email: 'vador@star.wars',\n        fullName: 'Darth Vador',\n      },\n      {\n        email: 'vador@star.wars',\n        fullName: 'Darth Vador',\n      },\n      {\n        email: 'vador@star.wars',\n        fullName: 'Darth Vador',\n      },\n      {\n        email: 'vador@star.wars',\n        fullName: 'Darth Vador',\n      },\n      {\n        email: 'vador@star.wars',\n        fullName: 'Darth Vador',\n      },\n      {\n        email: 'vador@star.wars',\n        fullName: 'Darth Vador',\n      },\n      {\n        email: 'vador@star.wars',\n        fullName: 'Darth Vador',\n      },\n      {\n        email: 'vador@star.wars',\n        fullName: 'Darth Vador',\n      },\n    ],\n  },\n};\n\nexport const BetaDisplayList = storyCreator(\n  'Shared::DataDisplay::BetaDisplayList',\n  `\n      <:default as |item|>\n        <span class=\"c-settings-security-ip-whitelist-rules__name\">{{item.email}}</span>\n        <span class=\"c-settings-security-ip-whitelist-rules__rule\">{{item.fullName}}</span>\n      </:default>\n    `,\n);\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @header}}\\n  {{@header}}\\n{{/if}}\\n\\n{{#if @isLoading}}\\n  <Shared::DataDisplay::BetaDisplayList::Loader @pageSize={{@pageSize}} />\\n{{else}}\\n  {{#each @items as |item index|}}\\n    <div\\n      {{on \\'click\\' (fn this.onItemClickAction item)}}\\n      class=\\\"c-beta-display-list__item\\n        {{if this.isClickable \\'c-beta-display-list__item--clickable\\'}}\\n        {{if this.noPadding \\'c-beta-display-list__item--no-padding\\'}}\\\"\\n      role=\\\"button\\\"\\n      data-test-item={{index}}\\n    >\\n      {{yield item index}}\\n    </div>\\n  {{else}}\\n    {{#if @emptyState}}\\n      <div class=\\\"c-beta-display-list__item\\\">\\n        {{@emptyState}}\\n      </div>\\n    {{/if}}\\n  {{/each}}\\n{{/if}}\\n\\n{{#if @footer}}\\n  {{@footer}}\\n{{/if}}\\n', { moduleName: 'client/shared/components/data-display/beta-display-list/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n/**\n * @typedef {{\n *   title: string\n *   language: string\n *   code: string\n *   isCommandLine?: bool\n * }} BetaHighlightMultipleSnippet\n */\n\n@validateArguments\nexport default class DataDisplayBetaHighlightMultipleComponent extends Component {\n  static propTypes = {\n    snippets: PropTypes.arrayOf(\n      PropTypes.shape({\n        title: PropTypes.string.isRequired,\n        code: PropTypes.string.isRequired,\n        language: PropTypes.string.isRequired,\n        isCommandLine: PropTypes.bool,\n      }),\n    ).isRequired,\n    title: PropTypes.string.isRequired,\n  };\n}\n","import { storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/DataDisplay/BetaHighlightMultiple',\n  component: 'Shared::DataDisplay::BetaHighlightMultiple',\n  argTypes: {\n    snippets: {\n      type: { name: 'array', required: true },\n    },\n    title: {\n      type: { name: 'string', required: true },\n    },\n  },\n  args: {\n    title: 'My title',\n    snippets: [\n      {\n        title: 'First snippet',\n        code: 'yarn add --dev millenium-falcon',\n        language: 'bash',\n        isCommandLine: true,\n      },\n      {\n        title: 'Second snippet',\n        code: 'export class MyClass extends Component {}',\n        language: 'ts',\n      },\n      {\n        title: 'Third snippet',\n        code: `\n        <?php\n          $color = \"red\";\n          echo \"My car is \" . $color . \"<br>\";\n          echo \"My house is \" . $COLOR . \"<br>\";\n          echo \"My boat is \" . $coLOR . \"<br>\";\n        ?>`,\n        language: 'ts',\n      },\n    ],\n  },\n};\nexport const BetaHighlightMultiple = storyCreator('Shared::DataDisplay::BetaHighlightMultiple');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-data-display-beta-highlight-multiple\\\" ...attributes>\\n  <h1 class=\\\"c-data-display-beta-highlight-multiple__title\\\">{{@title}}</h1>\\n  <ol class=\\\"c-data-display-beta-highlight-multiple__list\\\">\\n    {{#each @snippets as |snippet|}}\\n      <li class=\\\"c-data-display-beta-highlight-multiple__snippet-container\\\">\\n        <Shared::DataDisplay::BetaHighlight\\n          @title={{snippet.title}}\\n          @language={{snippet.language}}\\n          @code={{snippet.code}}\\n          @isCommandLine={{snippet.isCommandLine}}\\n          class=\\\"c-data-display-beta-highlight-multiple__snippet\\\"\\n        />\\n      </li>\\n    {{/each}}\\n  </ol>\\n</div>\\n', { moduleName: 'client/shared/components/data-display/beta-highlight-multiple/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class DataDisplayBetaHighlightComponent extends Component {\n  @argument(optional(String)) title;\n  @argument(String) code;\n  @argument(String) language;\n  @argument(optional(Boolean)) isCommandLine;\n  @argument(optional(Boolean)) preventOverflow;\n  @argument(optional(Boolean)) wrapWords;\n\n  get copyValue() {\n    if (this.args.isCommandLine) {\n      return this.args.code\n        .trim()\n        .split('\\n')\n        .map((line) => line.trim())\n        .join(' && ');\n    }\n\n    return this.args.code.trim();\n  }\n\n  /**\n   * @param {HTMLElement} element\n   */\n  @action\n  async highlightElement(element) {\n    // Allow to update the code when the argument is updated\n    // since prismjs replaces the element in the DOM\n    element.innerHTML = this.args.code\n      ?.replace(/&/g, '&amp;')\n      ?.replace(/</g, '&lt;')\n      ?.replace(/>/g, '&gt;');\n\n    // Load core library\n    /** @type {{default: import('prismjs')}} */\n    const { default: Prism } = await import('prismjs/components/prism-core.min');\n    Prism.manual = true;\n\n    // Autoloader detects the language based on the class name and loads what is needed\n    await import('prismjs/plugins/autoloader/prism-autoloader.min');\n    Prism.plugins.autoloader.languages_path = `/assets/prismjs/components/`;\n\n    if (this.args.isCommandLine) {\n      await import('prismjs/plugins/command-line/prism-command-line.min');\n    }\n\n    // Plugin to clean the code\n    await import('prismjs/plugins/normalize-whitespace/prism-normalize-whitespace.min');\n    Prism.plugins.NormalizeWhitespace.setDefaults({\n      'remove-trailing': true,\n      'remove-indent': true,\n      'left-trim': true,\n      'right-trim': true,\n    });\n\n    Prism.highlightElement(element);\n  }\n}\n","import { storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/DataDisplay/BetaHighlight',\n  component: 'Shared::DataDisplay::BetaHighlight',\n  argTypes: {\n    title: {\n      type: { name: 'string', required: true },\n    },\n    code: {\n      type: { name: 'string', required: true },\n    },\n    language: {\n      type: { name: 'string', required: true },\n      options: ['bash', 'python', 'php', 'ts', 'html', 'sh', 'js'],\n      control: 'select',\n    },\n    isCommandLine: {\n      type: 'boolean',\n    },\n    preventOverflow: {\n      type: 'boolean',\n    },\n  },\n  args: {\n    title: 'My title',\n    code: \"const code = { super: 'code' };\",\n    language: 'ts',\n  },\n};\n\nexport const BetaHighlight = storyCreator('Shared::DataDisplay::BetaHighlight');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-highlight\\\" ...attributes>\\n  {{#if @title}}\\n    <span class=\\\"c-beta-highlight__title\\\">{{@title}}</span>\\n  {{/if}}\\n  <div class=\\\"c-beta-highlight__content\\\">\\n    <pre class={{if @isCommandLine \\'command-line\\'}} data-prompt=\\\"$\\\">\\n      <code\\n        class={{(concat\\n          \\'language-\\'\\n          @language\\n          \\' \\'\\n          (get-classes-with-modifiers\\n            \\'c-beta-highlight__code\\'\\n            break-words=(or @isCommandLine @preventOverflow)\\n            wrap-words=(or @wrapWords false)\\n          )\\n        )}}\\n        {{did-insert this.highlightElement}}\\n        {{did-update this.highlightElement @code @language @isCommandLine}}\\n        data-test-beta-highlight-content\\n      >\\n        {{~@code~}}\\n      </code>\\n    </pre>\\n    <Form::Copy @value={{this.copyValue}} @insideInput={{true}} class=\\\"c-beta-highlight__copy\\\" />\\n  </div>\\n</div>\\n', { moduleName: 'client/shared/components/data-display/beta-highlight/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport matIconList from 'client/shared/components/data-display/beta-icon/mat-icon-list';\nimport { isEmoji } from 'client/utils/emoji-utils';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nconst MOON_ICONS = [\n  'stripe',\n  'intercom',\n  'facebook',\n  'git',\n  'chrome',\n  'linkedin',\n  'edge',\n  'firefox',\n  'opera',\n];\nconst matIconsSet = new Set(matIconList);\n\n@validateArguments\nexport default class DataDisplayBetaIconComponent extends Component {\n  static propTypes = {\n    iconName: PropTypes.string.isRequired,\n    size: PropTypes.oneOf(['micro', 'tiny', 'small', 'normal', 'large', 'custom', 'inherit']),\n  };\n\n  get size() {\n    return this.args.size || 'normal';\n  }\n\n  get isEmoji() {\n    return isEmoji(this.args.iconName);\n  }\n\n  get isMoonIcon() {\n    return MOON_ICONS.includes(this.args.iconName);\n  }\n\n  get materialStyle() {\n    if (matIconsSet.has(this.args.iconName) || !/_(outlined|round)$/.test(this.args.iconName))\n      return {\n        iconName: this.args.iconName,\n        className: 'material-icons',\n      };\n\n    const [, iconName, className] = /^(.*)_(?<style>outlined|round)$/.exec(this.args.iconName);\n\n    return {\n      iconName,\n      className: `material-icons-${className}`,\n    };\n  }\n\n  get moonSizeClass() {\n    return this.args.size ? ` c-beta-icon__moon--${this.args.size}` : '';\n  }\n}\n","export default [\n  '10k',\n  '10mp',\n  '11mp',\n  '123',\n  '12mp',\n  '13mp',\n  '14mp',\n  '15mp',\n  '16mp',\n  '17mp',\n  '18mp',\n  '19mp',\n  '1k',\n  '1k_plus',\n  '1x_mobiledata',\n  '20mp',\n  '21mp',\n  '22mp',\n  '23mp',\n  '24mp',\n  '2k',\n  '2k_plus',\n  '2mp',\n  '30fps',\n  '30fps_select',\n  '360',\n  '3d_rotation',\n  '3g_mobiledata',\n  '3k',\n  '3k_plus',\n  '3mp',\n  '3p',\n  '4g_mobiledata',\n  '4g_plus_mobiledata',\n  '4k',\n  '4k_plus',\n  '4mp',\n  '5g',\n  '5k',\n  '5k_plus',\n  '5mp',\n  '60fps',\n  '60fps_select',\n  '6_ft_apart',\n  '6k',\n  '6k_plus',\n  '6mp',\n  '7k',\n  '7k_plus',\n  '7mp',\n  '8k',\n  '8k_plus',\n  '8mp',\n  '9k',\n  '9k_plus',\n  '9mp',\n  'abc',\n  'ac_unit',\n  'access_alarm',\n  'access_alarms',\n  'access_time',\n  'access_time_filled',\n  'accessibility',\n  'accessibility_new',\n  'accessible',\n  'accessible_forward',\n  'account_balance',\n  'account_balance_wallet',\n  'account_box',\n  'account_circle',\n  'account_tree',\n  'ad_units',\n  'adb',\n  'add',\n  'add_a_photo',\n  'add_alarm',\n  'add_alert',\n  'add_box',\n  'add_business',\n  'add_card',\n  'add_chart',\n  'add_circle',\n  'add_circle_outline',\n  'add_comment',\n  'add_ic_call',\n  'add_link',\n  'add_location',\n  'add_location_alt',\n  'add_moderator',\n  'add_photo_alternate',\n  'add_reaction',\n  'add_road',\n  'add_shopping_cart',\n  'add_task',\n  'add_to_drive',\n  'add_to_home_screen',\n  'add_to_photos',\n  'add_to_queue',\n  'addchart',\n  'adf_scanner',\n  'adjust',\n  'admin_panel_settings',\n  'ads_click',\n  'agriculture',\n  'air',\n  'airline_seat_flat',\n  'airline_seat_flat_angled',\n  'airline_seat_individual_suite',\n  'airline_seat_legroom_extra',\n  'airline_seat_legroom_normal',\n  'airline_seat_legroom_reduced',\n  'airline_seat_recline_extra',\n  'airline_seat_recline_normal',\n  'airline_stops',\n  'airlines',\n  'airplane_ticket',\n  'airplanemode_active',\n  'airplanemode_inactive',\n  'airplay',\n  'airport_shuttle',\n  'alarm',\n  'alarm_add',\n  'alarm_off',\n  'alarm_on',\n  'album',\n  'align_horizontal_center',\n  'align_horizontal_left',\n  'align_horizontal_right',\n  'align_vertical_bottom',\n  'align_vertical_center',\n  'align_vertical_top',\n  'all_inbox',\n  'all_inclusive',\n  'all_out',\n  'alt_route',\n  'alternate_email',\n  'analytics',\n  'anchor',\n  'android',\n  'animation',\n  'announcement',\n  'aod',\n  'apartment',\n  'api',\n  'app_blocking',\n  'app_registration',\n  'app_settings_alt',\n  'app_shortcut',\n  'approval',\n  'apps',\n  'apps_outage',\n  'architecture',\n  'archive',\n  'area_chart',\n  'arrow_back',\n  'arrow_back_ios',\n  'arrow_back_ios_new',\n  'arrow_circle_down',\n  'arrow_circle_left',\n  'arrow_circle_right',\n  'arrow_circle_up',\n  'arrow_downward',\n  'arrow_drop_down',\n  'arrow_drop_down_circle',\n  'arrow_drop_up',\n  'arrow_forward',\n  'arrow_forward_ios',\n  'arrow_left',\n  'arrow_right',\n  'arrow_right_alt',\n  'arrow_upward',\n  'art_track',\n  'article',\n  'aspect_ratio',\n  'assessment',\n  'assignment',\n  'assignment_ind',\n  'assignment_late',\n  'assignment_return',\n  'assignment_returned',\n  'assignment_turned_in',\n  'assistant',\n  'assistant_direction',\n  'assistant_photo',\n  'assured_workload',\n  'atm',\n  'attach_email',\n  'attach_file',\n  'attach_money',\n  'attachment',\n  'attractions',\n  'attribution',\n  'audio_file',\n  'audiotrack',\n  'auto_awesome',\n  'auto_awesome_mosaic',\n  'auto_awesome_motion',\n  'auto_delete',\n  'auto_fix_high',\n  'auto_fix_normal',\n  'auto_fix_off',\n  'auto_graph',\n  'auto_stories',\n  'autofps_select',\n  'autorenew',\n  'av_timer',\n  'baby_changing_station',\n  'back_hand',\n  'backpack',\n  'backspace',\n  'backup',\n  'backup_table',\n  'badge',\n  'bakery_dining',\n  'balance',\n  'balcony',\n  'ballot',\n  'bar_chart',\n  'batch_prediction',\n  'bathroom',\n  'bathtub',\n  'battery_0_bar',\n  'battery_1_bar',\n  'battery_2_bar',\n  'battery_3_bar',\n  'battery_4_bar',\n  'battery_5_bar',\n  'battery_6_bar',\n  'battery_alert',\n  'battery_charging_full',\n  'battery_full',\n  'battery_saver',\n  'battery_std',\n  'battery_unknown',\n  'beach_access',\n  'bed',\n  'bedroom_baby',\n  'bedroom_child',\n  'bedroom_parent',\n  'bedtime',\n  'bedtime_off',\n  'beenhere',\n  'bento',\n  'bike_scooter',\n  'biotech',\n  'blender',\n  'block',\n  'bloodtype',\n  'bluetooth',\n  'bluetooth_audio',\n  'bluetooth_connected',\n  'bluetooth_disabled',\n  'bluetooth_drive',\n  'bluetooth_searching',\n  'blur_circular',\n  'blur_linear',\n  'blur_off',\n  'blur_on',\n  'bolt',\n  'book',\n  'book_online',\n  'bookmark',\n  'bookmark_add',\n  'bookmark_added',\n  'bookmark_border',\n  'bookmark_remove',\n  'bookmarks',\n  'border_all',\n  'border_bottom',\n  'border_clear',\n  'border_color',\n  'border_horizontal',\n  'border_inner',\n  'border_left',\n  'border_outer',\n  'border_right',\n  'border_style',\n  'border_top',\n  'border_vertical',\n  'boy',\n  'branding_watermark',\n  'breakfast_dining',\n  'brightness_1',\n  'brightness_2',\n  'brightness_3',\n  'brightness_4',\n  'brightness_5',\n  'brightness_6',\n  'brightness_7',\n  'brightness_auto',\n  'brightness_high',\n  'brightness_low',\n  'brightness_medium',\n  'broken_image',\n  'browse_gallery',\n  'browser_not_supported',\n  'browser_updated',\n  'brunch_dining',\n  'brush',\n  'bubble_chart',\n  'bug_report',\n  'build',\n  'build_circle',\n  'bungalow',\n  'burst_mode',\n  'bus_alert',\n  'business',\n  'business_center',\n  'cabin',\n  'cable',\n  'cached',\n  'cake',\n  'calculate',\n  'calendar_month',\n  'calendar_today',\n  'calendar_view_day',\n  'calendar_view_month',\n  'calendar_view_week',\n  'call',\n  'call_end',\n  'call_made',\n  'call_merge',\n  'call_missed',\n  'call_missed_outgoing',\n  'call_received',\n  'call_split',\n  'call_to_action',\n  'camera',\n  'camera_alt',\n  'camera_enhance',\n  'camera_front',\n  'camera_indoor',\n  'camera_outdoor',\n  'camera_rear',\n  'camera_roll',\n  'cameraswitch',\n  'campaign',\n  'cancel',\n  'cancel_presentation',\n  'cancel_schedule_send',\n  'candlestick_chart',\n  'car_crash',\n  'car_rental',\n  'car_repair',\n  'card_giftcard',\n  'card_membership',\n  'card_travel',\n  'carpenter',\n  'cases',\n  'casino',\n  'cast',\n  'cast_connected',\n  'cast_for_education',\n  'castle',\n  'catching_pokemon',\n  'category',\n  'celebration',\n  'cell_tower',\n  'cell_wifi',\n  'center_focus_strong',\n  'center_focus_weak',\n  'chair',\n  'chair_alt',\n  'chalet',\n  'change_circle',\n  'change_history',\n  'charging_station',\n  'chat',\n  'chat_bubble',\n  'chat_bubble_outline',\n  'check',\n  'check_box',\n  'check_box_outline_blank',\n  'check_circle',\n  'check_circle_outline',\n  'checklist',\n  'checklist_rtl',\n  'checkroom',\n  'chevron_left',\n  'chevron_right',\n  'child_care',\n  'child_friendly',\n  'chrome_reader_mode',\n  'church',\n  'circle',\n  'circle_notifications',\n  'class',\n  'clean_hands',\n  'cleaning_services',\n  'clear',\n  'clear_all',\n  'close',\n  'close_fullscreen',\n  'closed_caption',\n  'closed_caption_disabled',\n  'closed_caption_off',\n  'cloud',\n  'cloud_circle',\n  'cloud_done',\n  'cloud_download',\n  'cloud_off',\n  'cloud_queue',\n  'cloud_sync',\n  'cloud_upload',\n  'co2',\n  'co_present',\n  'code',\n  'code_off',\n  'coffee',\n  'coffee_maker',\n  'collections',\n  'collections_bookmark',\n  'color_lens',\n  'colorize',\n  'comment',\n  'comment_bank',\n  'comments_disabled',\n  'commit',\n  'commute',\n  'compare',\n  'compare_arrows',\n  'compass_calibration',\n  'compost',\n  'compress',\n  'computer',\n  'confirmation_number',\n  'connect_without_contact',\n  'connected_tv',\n  'connecting_airports',\n  'construction',\n  'contact_mail',\n  'contact_page',\n  'contact_phone',\n  'contact_support',\n  'contactless',\n  'contacts',\n  'content_copy',\n  'content_cut',\n  'content_paste',\n  'content_paste_go',\n  'content_paste_off',\n  'content_paste_search',\n  'contrast',\n  'control_camera',\n  'control_point',\n  'control_point_duplicate',\n  'cookie',\n  'copy_all',\n  'copyright',\n  'coronavirus',\n  'corporate_fare',\n  'cottage',\n  'countertops',\n  'create',\n  'create_new_folder',\n  'credit_card',\n  'credit_card_off',\n  'credit_score',\n  'crib',\n  'crisis_alert',\n  'crop',\n  'crop_16_9',\n  'crop_3_2',\n  'crop_5_4',\n  'crop_7_5',\n  'crop_din',\n  'crop_free',\n  'crop_landscape',\n  'crop_original',\n  'crop_portrait',\n  'crop_rotate',\n  'crop_square',\n  'cruelty_free',\n  'css',\n  'currency_bitcoin',\n  'currency_exchange',\n  'currency_franc',\n  'currency_lira',\n  'currency_pound',\n  'currency_ruble',\n  'currency_rupee',\n  'currency_yen',\n  'currency_yuan',\n  'cyclone',\n  'dangerous',\n  'dark_mode',\n  'dashboard',\n  'dashboard_customize',\n  'data_array',\n  'data_exploration',\n  'data_object',\n  'data_saver_off',\n  'data_saver_on',\n  'data_thresholding',\n  'data_usage',\n  'date_range',\n  'deblur',\n  'deck',\n  'dehaze',\n  'delete',\n  'delete_forever',\n  'delete_outline',\n  'delete_sweep',\n  'delivery_dining',\n  'density_large',\n  'density_medium',\n  'density_small',\n  'departure_board',\n  'description',\n  'deselect',\n  'design_services',\n  'desktop_access_disabled',\n  'desktop_mac',\n  'desktop_windows',\n  'details',\n  'developer_board',\n  'developer_board_off',\n  'developer_mode',\n  'device_hub',\n  'device_thermostat',\n  'device_unknown',\n  'devices',\n  'devices_fold',\n  'devices_other',\n  'dialer_sip',\n  'dialpad',\n  'diamond',\n  'difference',\n  'dining',\n  'dinner_dining',\n  'directions',\n  'directions_bike',\n  'directions_boat',\n  'directions_boat_filled',\n  'directions_bus',\n  'directions_bus_filled',\n  'directions_car',\n  'directions_car_filled',\n  'directions_off',\n  'directions_railway',\n  'directions_railway_filled',\n  'directions_run',\n  'directions_subway',\n  'directions_subway_filled',\n  'directions_transit',\n  'directions_transit_filled',\n  'directions_walk',\n  'dirty_lens',\n  'disabled_by_default',\n  'disabled_visible',\n  'disc_full',\n  'discount',\n  'display_settings',\n  'dns',\n  'do_disturb',\n  'do_disturb_alt',\n  'do_disturb_off',\n  'do_disturb_on',\n  'do_not_disturb',\n  'do_not_disturb_alt',\n  'do_not_disturb_off',\n  'do_not_disturb_on',\n  'do_not_disturb_on_total_silence',\n  'do_not_step',\n  'do_not_touch',\n  'dock',\n  'document_scanner',\n  'domain',\n  'domain_add',\n  'domain_disabled',\n  'domain_verification',\n  'done',\n  'done_all',\n  'done_outline',\n  'donut_large',\n  'donut_small',\n  'door_back',\n  'door_front',\n  'door_sliding',\n  'doorbell',\n  'double_arrow',\n  'downhill_skiing',\n  'download',\n  'download_done',\n  'download_for_offline',\n  'downloading',\n  'drafts',\n  'drag_handle',\n  'drag_indicator',\n  'draw',\n  'drive_eta',\n  'drive_file_move',\n  'drive_file_move_rtl',\n  'drive_file_rename_outline',\n  'drive_folder_upload',\n  'dry',\n  'dry_cleaning',\n  'duo',\n  'dvr',\n  'dynamic_feed',\n  'dynamic_form',\n  'e_mobiledata',\n  'earbuds',\n  'earbuds_battery',\n  'east',\n  'edgesensor_high',\n  'edgesensor_low',\n  'edit',\n  'edit_attributes',\n  'edit_calendar',\n  'edit_location',\n  'edit_location_alt',\n  'edit_note',\n  'edit_notifications',\n  'edit_off',\n  'edit_road',\n  'egg',\n  'egg_alt',\n  'eject',\n  'elderly',\n  'elderly_woman',\n  'electric_bike',\n  'electric_car',\n  'electric_moped',\n  'electric_rickshaw',\n  'electric_scooter',\n  'electrical_services',\n  'elevator',\n  'email',\n  'emergency',\n  'emergency_recording',\n  'emergency_share',\n  'emoji_emotions',\n  'emoji_events',\n  'emoji_flags',\n  'emoji_food_beverage',\n  'emoji_nature',\n  'emoji_objects',\n  'emoji_people',\n  'emoji_symbols',\n  'emoji_transportation',\n  'engineering',\n  'enhanced_encryption',\n  'equalizer',\n  'error',\n  'error_outline',\n  'escalator',\n  'escalator_warning',\n  'euro',\n  'euro_symbol',\n  'ev_station',\n  'event',\n  'event_available',\n  'event_busy',\n  'event_note',\n  'event_repeat',\n  'event_seat',\n  'exit_to_app',\n  'expand',\n  'expand_circle_down',\n  'expand_less',\n  'expand_more',\n  'explicit',\n  'explore',\n  'explore_off',\n  'exposure',\n  'exposure_neg_1',\n  'exposure_neg_2',\n  'exposure_plus_1',\n  'exposure_plus_2',\n  'exposure_zero',\n  'extension',\n  'extension_off',\n  'face',\n  'face_retouching_natural',\n  'face_retouching_off',\n  'fact_check',\n  'factory',\n  'family_restroom',\n  'fast_forward',\n  'fast_rewind',\n  'fastfood',\n  'favorite',\n  'favorite_border',\n  'fax',\n  'featured_play_list',\n  'featured_video',\n  'feed',\n  'feedback',\n  'female',\n  'fence',\n  'festival',\n  'fiber_dvr',\n  'fiber_manual_record',\n  'fiber_new',\n  'fiber_pin',\n  'fiber_smart_record',\n  'file_copy',\n  'file_download',\n  'file_download_done',\n  'file_download_off',\n  'file_open',\n  'file_present',\n  'file_upload',\n  'filter',\n  'filter_1',\n  'filter_2',\n  'filter_3',\n  'filter_4',\n  'filter_5',\n  'filter_6',\n  'filter_7',\n  'filter_8',\n  'filter_9',\n  'filter_9_plus',\n  'filter_alt',\n  'filter_alt_off',\n  'filter_b_and_w',\n  'filter_center_focus',\n  'filter_drama',\n  'filter_frames',\n  'filter_hdr',\n  'filter_list',\n  'filter_list_off',\n  'filter_none',\n  'filter_tilt_shift',\n  'filter_vintage',\n  'find_in_page',\n  'find_replace',\n  'fingerprint',\n  'fire_extinguisher',\n  'fireplace',\n  'first_page',\n  'fit_screen',\n  'fitbit',\n  'fitness_center',\n  'flag',\n  'flag_circle',\n  'flaky',\n  'flare',\n  'flash_auto',\n  'flash_off',\n  'flash_on',\n  'flashlight_off',\n  'flashlight_on',\n  'flatware',\n  'flight',\n  'flight_class',\n  'flight_land',\n  'flight_takeoff',\n  'flip',\n  'flip_camera_android',\n  'flip_camera_ios',\n  'flip_to_back',\n  'flip_to_front',\n  'flood',\n  'flourescent',\n  'flutter_dash',\n  'fmd_bad',\n  'fmd_good',\n  'folder',\n  'folder_copy',\n  'folder_delete',\n  'folder_off',\n  'folder_open',\n  'folder_shared',\n  'folder_special',\n  'folder_zip',\n  'follow_the_signs',\n  'font_download',\n  'font_download_off',\n  'food_bank',\n  'forest',\n  'fork_left',\n  'fork_right',\n  'format_align_center',\n  'format_align_justify',\n  'format_align_left',\n  'format_align_right',\n  'format_bold',\n  'format_clear',\n  'format_color_fill',\n  'format_color_reset',\n  'format_color_text',\n  'format_indent_decrease',\n  'format_indent_increase',\n  'format_italic',\n  'format_line_spacing',\n  'format_list_bulleted',\n  'format_list_numbered',\n  'format_list_numbered_rtl',\n  'format_overline',\n  'format_paint',\n  'format_quote',\n  'format_shapes',\n  'format_size',\n  'format_strikethrough',\n  'format_textdirection_l_to_r',\n  'format_textdirection_r_to_l',\n  'format_underlined',\n  'fort',\n  'forum',\n  'forward',\n  'forward_10',\n  'forward_30',\n  'forward_5',\n  'forward_to_inbox',\n  'foundation',\n  'free_breakfast',\n  'free_cancellation',\n  'front_hand',\n  'fullscreen',\n  'fullscreen_exit',\n  'functions',\n  'g_mobiledata',\n  'g_translate',\n  'gamepad',\n  'games',\n  'garage',\n  'gavel',\n  'generating_tokens',\n  'gesture',\n  'get_app',\n  'gif',\n  'gif_box',\n  'girl',\n  'gite',\n  'golf_course',\n  'gpp_bad',\n  'gpp_good',\n  'gpp_maybe',\n  'gps_fixed',\n  'gps_not_fixed',\n  'gps_off',\n  'grade',\n  'gradient',\n  'grading',\n  'grain',\n  'graphic_eq',\n  'grass',\n  'grid_3x3',\n  'grid_4x4',\n  'grid_goldenratio',\n  'grid_off',\n  'grid_on',\n  'grid_view',\n  'group',\n  'group_add',\n  'group_off',\n  'group_remove',\n  'group_work',\n  'groups',\n  'h_mobiledata',\n  'h_plus_mobiledata',\n  'hail',\n  'handshake',\n  'handyman',\n  'hardware',\n  'hd',\n  'hdr_auto',\n  'hdr_auto_select',\n  'hdr_enhanced_select',\n  'hdr_off',\n  'hdr_off_select',\n  'hdr_on',\n  'hdr_on_select',\n  'hdr_plus',\n  'hdr_strong',\n  'hdr_weak',\n  'headphones',\n  'headphones_battery',\n  'headset',\n  'headset_mic',\n  'headset_off',\n  'healing',\n  'health_and_safety',\n  'hearing',\n  'hearing_disabled',\n  'heart_broken',\n  'height',\n  'help',\n  'help_center',\n  'help_outline',\n  'hevc',\n  'hexagon',\n  'hide_image',\n  'hide_source',\n  'high_quality',\n  'highlight',\n  'highlight_alt',\n  'highlight_off',\n  'hiking',\n  'history',\n  'history_edu',\n  'history_toggle_off',\n  'hive',\n  'hls',\n  'hls_off',\n  'holiday_village',\n  'home',\n  'home_max',\n  'home_mini',\n  'home_repair_service',\n  'home_work',\n  'horizontal_distribute',\n  'horizontal_rule',\n  'horizontal_split',\n  'hot_tub',\n  'hotel',\n  'hotel_class',\n  'hourglass_bottom',\n  'hourglass_disabled',\n  'hourglass_empty',\n  'hourglass_full',\n  'hourglass_top',\n  'house',\n  'house_siding',\n  'houseboat',\n  'how_to_reg',\n  'how_to_vote',\n  'html',\n  'http',\n  'https',\n  'hub',\n  'hvac',\n  'ice_skating',\n  'icecream',\n  'image',\n  'image_aspect_ratio',\n  'image_not_supported',\n  'image_search',\n  'imagesearch_roller',\n  'import_contacts',\n  'import_export',\n  'important_devices',\n  'inbox',\n  'incomplete_circle',\n  'indeterminate_check_box',\n  'info',\n  'input',\n  'insert_chart',\n  'insert_chart_outlined',\n  'insert_comment',\n  'insert_drive_file',\n  'insert_emoticon',\n  'insert_invitation',\n  'insert_link',\n  'insert_page_break',\n  'insert_photo',\n  'insights',\n  'install_desktop',\n  'install_mobile',\n  'integration_instructions',\n  'interests',\n  'interpreter_mode',\n  'inventory',\n  'inventory_2',\n  'invert_colors',\n  'invert_colors_off',\n  'ios_share',\n  'iron',\n  'iso',\n  'javascript',\n  'join_full',\n  'join_inner',\n  'join_left',\n  'join_right',\n  'kayaking',\n  'kebab_dining',\n  'key',\n  'key_off',\n  'keyboard',\n  'keyboard_alt',\n  'keyboard_arrow_down',\n  'keyboard_arrow_left',\n  'keyboard_arrow_right',\n  'keyboard_arrow_up',\n  'keyboard_backspace',\n  'keyboard_capslock',\n  'keyboard_command_key',\n  'keyboard_control_key',\n  'keyboard_double_arrow_down',\n  'keyboard_double_arrow_left',\n  'keyboard_double_arrow_right',\n  'keyboard_double_arrow_up',\n  'keyboard_hide',\n  'keyboard_option_key',\n  'keyboard_return',\n  'keyboard_tab',\n  'keyboard_voice',\n  'king_bed',\n  'kitchen',\n  'kitesurfing',\n  'label',\n  'label_important',\n  'label_off',\n  'lan',\n  'landscape',\n  'landslide',\n  'language',\n  'laptop',\n  'laptop_chromebook',\n  'laptop_mac',\n  'laptop_windows',\n  'last_page',\n  'launch',\n  'layers',\n  'layers_clear',\n  'leaderboard',\n  'leak_add',\n  'leak_remove',\n  'legend_toggle',\n  'lens',\n  'lens_blur',\n  'library_add',\n  'library_add_check',\n  'library_books',\n  'library_music',\n  'light',\n  'light_mode',\n  'lightbulb',\n  'line_axis',\n  'line_style',\n  'line_weight',\n  'linear_scale',\n  'link',\n  'link_off',\n  'linked_camera',\n  'liquor',\n  'list',\n  'list_alt',\n  'live_help',\n  'live_tv',\n  'living',\n  'local_activity',\n  'local_airport',\n  'local_atm',\n  'local_bar',\n  'local_cafe',\n  'local_car_wash',\n  'local_convenience_store',\n  'local_dining',\n  'local_drink',\n  'local_fire_department',\n  'local_florist',\n  'local_gas_station',\n  'local_grocery_store',\n  'local_hospital',\n  'local_hotel',\n  'local_laundry_service',\n  'local_library',\n  'local_mall',\n  'local_movies',\n  'local_offer',\n  'local_parking',\n  'local_pharmacy',\n  'local_phone',\n  'local_pizza',\n  'local_play',\n  'local_police',\n  'local_post_office',\n  'local_printshop',\n  'local_see',\n  'local_shipping',\n  'local_taxi',\n  'location_city',\n  'location_disabled',\n  'location_off',\n  'location_on',\n  'location_searching',\n  'lock',\n  'lock_clock',\n  'lock_open',\n  'lock_reset',\n  'login',\n  'logo_dev',\n  'logout',\n  'looks',\n  'looks_3',\n  'looks_4',\n  'looks_5',\n  'looks_6',\n  'looks_one',\n  'looks_two',\n  'loop',\n  'loupe',\n  'low_priority',\n  'loyalty',\n  'lte_mobiledata',\n  'lte_plus_mobiledata',\n  'luggage',\n  'lunch_dining',\n  'mail',\n  'mail_outline',\n  'male',\n  'man',\n  'manage_accounts',\n  'manage_history',\n  'manage_search',\n  'map',\n  'maps_home_work',\n  'maps_ugc',\n  'margin',\n  'mark_as_unread',\n  'mark_chat_read',\n  'mark_chat_unread',\n  'mark_email_read',\n  'mark_email_unread',\n  'mark_unread_chat_alt',\n  'markunread',\n  'markunread_mailbox',\n  'masks',\n  'maximize',\n  'media_bluetooth_off',\n  'media_bluetooth_on',\n  'mediation',\n  'medical_information',\n  'medical_services',\n  'medication',\n  'medication_liquid',\n  'meeting_room',\n  'memory',\n  'menu',\n  'menu_book',\n  'menu_open',\n  'merge',\n  'merge_type',\n  'message',\n  'mic',\n  'mic_external_off',\n  'mic_external_on',\n  'mic_none',\n  'mic_off',\n  'microwave',\n  'military_tech',\n  'minimize',\n  'minor_crash',\n  'miscellaneous_services',\n  'missed_video_call',\n  'mms',\n  'mobile_friendly',\n  'mobile_off',\n  'mobile_screen_share',\n  'mobiledata_off',\n  'mode',\n  'mode_comment',\n  'mode_edit',\n  'mode_edit_outline',\n  'mode_night',\n  'mode_of_travel',\n  'mode_standby',\n  'model_training',\n  'monetization_on',\n  'money',\n  'money_off',\n  'money_off_csred',\n  'monitor',\n  'monitor_heart',\n  'monitor_weight',\n  'monochrome_photos',\n  'mood',\n  'mood_bad',\n  'moped',\n  'more',\n  'more_horiz',\n  'more_time',\n  'more_vert',\n  'mosque',\n  'motion_photos_auto',\n  'motion_photos_off',\n  'motion_photos_on',\n  'motion_photos_pause',\n  'motion_photos_paused',\n  'mouse',\n  'move_down',\n  'move_to_inbox',\n  'move_up',\n  'movie',\n  'movie_creation',\n  'movie_filter',\n  'moving',\n  'mp',\n  'multiline_chart',\n  'multiple_stop',\n  'museum',\n  'music_note',\n  'music_off',\n  'music_video',\n  'my_location',\n  'nat',\n  'nature',\n  'nature_people',\n  'navigate_before',\n  'navigate_next',\n  'navigation',\n  'near_me',\n  'near_me_disabled',\n  'nearby_error',\n  'nearby_off',\n  'network_cell',\n  'network_check',\n  'network_locked',\n  'network_ping',\n  'network_wifi',\n  'network_wifi_1_bar',\n  'network_wifi_2_bar',\n  'network_wifi_3_bar',\n  'new_label',\n  'new_releases',\n  'newspaper',\n  'next_plan',\n  'next_week',\n  'nfc',\n  'night_shelter',\n  'nightlife',\n  'nightlight',\n  'nightlight_round',\n  'nights_stay',\n  'no_accounts',\n  'no_backpack',\n  'no_cell',\n  'no_crash',\n  'no_drinks',\n  'no_encryption',\n  'no_encryption_gmailerrorred',\n  'no_flash',\n  'no_food',\n  'no_luggage',\n  'no_meals',\n  'no_meeting_room',\n  'no_photography',\n  'no_sim',\n  'no_stroller',\n  'no_transfer',\n  'noise_aware',\n  'noise_control_off',\n  'nordic_walking',\n  'north',\n  'north_east',\n  'north_west',\n  'not_accessible',\n  'not_interested',\n  'not_listed_location',\n  'not_started',\n  'note',\n  'note_add',\n  'note_alt',\n  'notes',\n  'notification_add',\n  'notification_important',\n  'notifications',\n  'notifications_active',\n  'notifications_none',\n  'notifications_off',\n  'notifications_paused',\n  'numbers',\n  'offline_bolt',\n  'offline_pin',\n  'offline_share',\n  'ondemand_video',\n  'online_prediction',\n  'opacity',\n  'open_in_browser',\n  'open_in_full',\n  'open_in_new',\n  'open_in_new_off',\n  'open_with',\n  'other_houses',\n  'outbound',\n  'outbox',\n  'outdoor_grill',\n  'outlet',\n  'outlined_flag',\n  'output',\n  'padding',\n  'pages',\n  'pageview',\n  'paid',\n  'palette',\n  'pan_tool',\n  'pan_tool_alt',\n  'panorama',\n  'panorama_fish_eye',\n  'panorama_horizontal',\n  'panorama_horizontal_select',\n  'panorama_photosphere',\n  'panorama_photosphere_select',\n  'panorama_vertical',\n  'panorama_vertical_select',\n  'panorama_wide_angle',\n  'panorama_wide_angle_select',\n  'paragliding',\n  'park',\n  'party_mode',\n  'password',\n  'pattern',\n  'pause',\n  'pause_circle',\n  'pause_circle_filled',\n  'pause_circle_outline',\n  'pause_presentation',\n  'payment',\n  'payments',\n  'pedal_bike',\n  'pending',\n  'pending_actions',\n  'pentagon',\n  'people',\n  'people_alt',\n  'people_outline',\n  'percent',\n  'perm_camera_mic',\n  'perm_contact_calendar',\n  'perm_data_setting',\n  'perm_device_information',\n  'perm_identity',\n  'perm_media',\n  'perm_phone_msg',\n  'perm_scan_wifi',\n  'person',\n  'person_add',\n  'person_add_alt',\n  'person_add_alt_1',\n  'person_add_disabled',\n  'person_off',\n  'person_outline',\n  'person_pin',\n  'person_pin_circle',\n  'person_remove',\n  'person_remove_alt_1',\n  'person_search',\n  'personal_injury',\n  'personal_video',\n  'pest_control',\n  'pest_control_rodent',\n  'pets',\n  'phishing',\n  'phone',\n  'phone_android',\n  'phone_bluetooth_speaker',\n  'phone_callback',\n  'phone_disabled',\n  'phone_enabled',\n  'phone_forwarded',\n  'phone_in_talk',\n  'phone_iphone',\n  'phone_locked',\n  'phone_missed',\n  'phone_paused',\n  'phonelink',\n  'phonelink_erase',\n  'phonelink_lock',\n  'phonelink_off',\n  'phonelink_ring',\n  'phonelink_setup',\n  'photo',\n  'photo_album',\n  'photo_camera',\n  'photo_camera_back',\n  'photo_camera_front',\n  'photo_filter',\n  'photo_library',\n  'photo_size_select_actual',\n  'photo_size_select_large',\n  'photo_size_select_small',\n  'php',\n  'piano',\n  'piano_off',\n  'picture_as_pdf',\n  'picture_in_picture',\n  'picture_in_picture_alt',\n  'pie_chart',\n  'pie_chart_outline',\n  'pin',\n  'pin_drop',\n  'pin_end',\n  'pin_invoke',\n  'pinch',\n  'pivot_table_chart',\n  'pix',\n  'place',\n  'plagiarism',\n  'play_arrow',\n  'play_circle',\n  'play_circle_filled',\n  'play_circle_outline',\n  'play_disabled',\n  'play_for_work',\n  'play_lesson',\n  'playlist_add',\n  'playlist_add_check',\n  'playlist_add_check_circle',\n  'playlist_add_circle',\n  'playlist_play',\n  'playlist_remove',\n  'plumbing',\n  'plus_one',\n  'podcasts',\n  'point_of_sale',\n  'policy',\n  'poll',\n  'polyline',\n  'polymer',\n  'pool',\n  'portable_wifi_off',\n  'portrait',\n  'post_add',\n  'power',\n  'power_input',\n  'power_off',\n  'power_settings_new',\n  'precision_manufacturing',\n  'pregnant_woman',\n  'present_to_all',\n  'preview',\n  'price_change',\n  'price_check',\n  'print',\n  'print_disabled',\n  'priority_high',\n  'privacy_tip',\n  'private_connectivity',\n  'production_quantity_limits',\n  'psychology',\n  'public',\n  'public_off',\n  'publish',\n  'published_with_changes',\n  'punch_clock',\n  'push_pin',\n  'qr_code',\n  'qr_code_2',\n  'qr_code_scanner',\n  'query_builder',\n  'query_stats',\n  'question_answer',\n  'question_mark',\n  'queue',\n  'queue_music',\n  'queue_play_next',\n  'quickreply',\n  'quiz',\n  'r_mobiledata',\n  'radar',\n  'radio',\n  'radio_button_checked',\n  'radio_button_unchecked',\n  'railway_alert',\n  'ramen_dining',\n  'ramp_left',\n  'ramp_right',\n  'rate_review',\n  'raw_off',\n  'raw_on',\n  'read_more',\n  'real_estate_agent',\n  'receipt',\n  'receipt_long',\n  'recent_actors',\n  'recommend',\n  'record_voice_over',\n  'rectangle',\n  'recycling',\n  'redeem',\n  'redo',\n  'reduce_capacity',\n  'refresh',\n  'remember_me',\n  'remove',\n  'remove_circle',\n  'remove_circle_outline',\n  'remove_done',\n  'remove_from_queue',\n  'remove_moderator',\n  'remove_red_eye',\n  'remove_shopping_cart',\n  'reorder',\n  'repeat',\n  'repeat_on',\n  'repeat_one',\n  'repeat_one_on',\n  'replay',\n  'replay_10',\n  'replay_30',\n  'replay_5',\n  'replay_circle_filled',\n  'reply',\n  'reply_all',\n  'report',\n  'report_gmailerrorred',\n  'report_off',\n  'report_problem',\n  'request_page',\n  'request_quote',\n  'reset_tv',\n  'restart_alt',\n  'restaurant',\n  'restaurant_menu',\n  'restore',\n  'restore_from_trash',\n  'restore_page',\n  'reviews',\n  'rice_bowl',\n  'ring_volume',\n  'rocket',\n  'rocket_launch',\n  'roller_skating',\n  'roofing',\n  'room',\n  'room_preferences',\n  'room_service',\n  'rotate_90_degrees_ccw',\n  'rotate_90_degrees_cw',\n  'rotate_left',\n  'rotate_right',\n  'roundabout_left',\n  'roundabout_right',\n  'rounded_corner',\n  'route',\n  'router',\n  'rowing',\n  'rss_feed',\n  'rsvp',\n  'rtt',\n  'rule',\n  'rule_folder',\n  'run_circle',\n  'running_with_errors',\n  'rv_hookup',\n  'safety_check',\n  'safety_divider',\n  'sailing',\n  'sanitizer',\n  'satellite',\n  'satellite_alt',\n  'save',\n  'save_alt',\n  'save_as',\n  'saved_search',\n  'savings',\n  'scale',\n  'scanner',\n  'scatter_plot',\n  'schedule',\n  'schedule_send',\n  'schema',\n  'school',\n  'science',\n  'score',\n  'scoreboard',\n  'screen_lock_landscape',\n  'screen_lock_portrait',\n  'screen_lock_rotation',\n  'screen_rotation',\n  'screen_rotation_alt',\n  'screen_search_desktop',\n  'screen_share',\n  'screenshot',\n  'scuba_diving',\n  'sd',\n  'sd_card',\n  'sd_card_alert',\n  'sd_storage',\n  'search',\n  'search_off',\n  'security',\n  'security_update',\n  'security_update_good',\n  'security_update_warning',\n  'segment',\n  'select_all',\n  'self_improvement',\n  'sell',\n  'send',\n  'send_and_archive',\n  'send_time_extension',\n  'send_to_mobile',\n  'sensor_door',\n  'sensor_window',\n  'sensors',\n  'sensors_off',\n  'sentiment_dissatisfied',\n  'sentiment_neutral',\n  'sentiment_satisfied',\n  'sentiment_satisfied_alt',\n  'sentiment_very_dissatisfied',\n  'sentiment_very_satisfied',\n  'set_meal',\n  'settings',\n  'settings_accessibility',\n  'settings_applications',\n  'settings_backup_restore',\n  'settings_bluetooth',\n  'settings_brightness',\n  'settings_cell',\n  'settings_ethernet',\n  'settings_input_antenna',\n  'settings_input_component',\n  'settings_input_composite',\n  'settings_input_hdmi',\n  'settings_input_svideo',\n  'settings_overscan',\n  'settings_phone',\n  'settings_power',\n  'settings_remote',\n  'settings_suggest',\n  'settings_system_daydream',\n  'settings_voice',\n  'severe_cold',\n  'share',\n  'share_location',\n  'shield',\n  'shield_moon',\n  'shop',\n  'shop_2',\n  'shop_two',\n  'shopping_bag',\n  'shopping_basket',\n  'shopping_cart',\n  'shopping_cart_checkout',\n  'short_text',\n  'shortcut',\n  'show_chart',\n  'shower',\n  'shuffle',\n  'shuffle_on',\n  'shutter_speed',\n  'sick',\n  'sign_language',\n  'signal_cellular_0_bar',\n  'signal_cellular_4_bar',\n  'signal_cellular_alt',\n  'signal_cellular_alt_1_bar',\n  'signal_cellular_alt_2_bar',\n  'signal_cellular_connected_no_internet_0_bar',\n  'signal_cellular_connected_no_internet_4_bar',\n  'signal_cellular_no_sim',\n  'signal_cellular_nodata',\n  'signal_cellular_null',\n  'signal_cellular_off',\n  'signal_wifi_0_bar',\n  'signal_wifi_4_bar',\n  'signal_wifi_4_bar_lock',\n  'signal_wifi_bad',\n  'signal_wifi_connected_no_internet_4',\n  'signal_wifi_off',\n  'signal_wifi_statusbar_4_bar',\n  'signal_wifi_statusbar_connected_no_internet_4',\n  'signal_wifi_statusbar_null',\n  'signpost',\n  'sim_card',\n  'sim_card_alert',\n  'sim_card_download',\n  'single_bed',\n  'sip',\n  'skateboarding',\n  'skip_next',\n  'skip_previous',\n  'sledding',\n  'slideshow',\n  'slow_motion_video',\n  'smart_button',\n  'smart_display',\n  'smart_screen',\n  'smart_toy',\n  'smartphone',\n  'smoke_free',\n  'smoking_rooms',\n  'sms',\n  'sms_failed',\n  'snippet_folder',\n  'snooze',\n  'snowboarding',\n  'snowmobile',\n  'snowshoeing',\n  'soap',\n  'social_distance',\n  'sort',\n  'sort_by_alpha',\n  'sos',\n  'soup_kitchen',\n  'source',\n  'south',\n  'south_america',\n  'south_east',\n  'south_west',\n  'spa',\n  'space_bar',\n  'space_dashboard',\n  'spatial_audio',\n  'spatial_audio_off',\n  'spatial_tracking',\n  'speaker',\n  'speaker_group',\n  'speaker_notes',\n  'speaker_notes_off',\n  'speaker_phone',\n  'speed',\n  'spellcheck',\n  'splitscreen',\n  'spoke',\n  'sports',\n  'sports_bar',\n  'sports_baseball',\n  'sports_basketball',\n  'sports_cricket',\n  'sports_esports',\n  'sports_football',\n  'sports_golf',\n  'sports_gymnastics',\n  'sports_handball',\n  'sports_hockey',\n  'sports_kabaddi',\n  'sports_martial_arts',\n  'sports_mma',\n  'sports_motorsports',\n  'sports_rugby',\n  'sports_score',\n  'sports_soccer',\n  'sports_tennis',\n  'sports_volleyball',\n  'square',\n  'square_foot',\n  'ssid_chart',\n  'stacked_bar_chart',\n  'stacked_line_chart',\n  'stadium',\n  'stairs',\n  'star',\n  'star_border',\n  'star_border_purple500',\n  'star_half',\n  'star_outline',\n  'star_purple500',\n  'star_rate',\n  'stars',\n  'start',\n  'stay_current_landscape',\n  'stay_current_portrait',\n  'stay_primary_landscape',\n  'stay_primary_portrait',\n  'sticky_note_2',\n  'stop',\n  'stop_circle',\n  'stop_screen_share',\n  'storage',\n  'store',\n  'store_mall_directory',\n  'storefront',\n  'storm',\n  'straight',\n  'straighten',\n  'stream',\n  'streetview',\n  'strikethrough_s',\n  'stroller',\n  'style',\n  'subdirectory_arrow_left',\n  'subdirectory_arrow_right',\n  'subject',\n  'subscript',\n  'subscriptions',\n  'subtitles',\n  'subtitles_off',\n  'subway',\n  'summarize',\n  'superscript',\n  'supervised_user_circle',\n  'supervisor_account',\n  'support',\n  'support_agent',\n  'surfing',\n  'surround_sound',\n  'swap_calls',\n  'swap_horiz',\n  'swap_horizontal_circle',\n  'swap_vert',\n  'swap_vertical_circle',\n  'swipe',\n  'swipe_down',\n  'swipe_down_alt',\n  'swipe_left',\n  'swipe_left_alt',\n  'swipe_right',\n  'swipe_right_alt',\n  'swipe_up',\n  'swipe_up_alt',\n  'swipe_vertical',\n  'switch_access_shortcut',\n  'switch_access_shortcut_add',\n  'switch_account',\n  'switch_camera',\n  'switch_left',\n  'switch_right',\n  'switch_video',\n  'synagogue',\n  'sync',\n  'sync_alt',\n  'sync_disabled',\n  'sync_lock',\n  'sync_problem',\n  'system_security_update',\n  'system_security_update_good',\n  'system_security_update_warning',\n  'system_update',\n  'system_update_alt',\n  'tab',\n  'tab_unselected',\n  'table_bar',\n  'table_chart',\n  'table_restaurant',\n  'table_rows',\n  'table_view',\n  'tablet',\n  'tablet_android',\n  'tablet_mac',\n  'tag',\n  'tag_faces',\n  'takeout_dining',\n  'tap_and_play',\n  'tapas',\n  'task',\n  'task_alt',\n  'taxi_alert',\n  'temple_buddhist',\n  'temple_hindu',\n  'terminal',\n  'terrain',\n  'text_decrease',\n  'text_fields',\n  'text_format',\n  'text_increase',\n  'text_rotate_up',\n  'text_rotate_vertical',\n  'text_rotation_angledown',\n  'text_rotation_angleup',\n  'text_rotation_down',\n  'text_rotation_none',\n  'text_snippet',\n  'textsms',\n  'texture',\n  'theater_comedy',\n  'theaters',\n  'thermostat',\n  'thermostat_auto',\n  'thumb_down',\n  'thumb_down_alt',\n  'thumb_down_off_alt',\n  'thumb_up',\n  'thumb_up_alt',\n  'thumb_up_off_alt',\n  'thumbs_up_down',\n  'thunderstorm',\n  'time_to_leave',\n  'timelapse',\n  'timeline',\n  'timer',\n  'timer_10',\n  'timer_10_select',\n  'timer_3',\n  'timer_3_select',\n  'timer_off',\n  'tips_and_updates',\n  'tire_repair',\n  'title',\n  'toc',\n  'today',\n  'toggle_off',\n  'toggle_on',\n  'token',\n  'toll',\n  'tonality',\n  'topic',\n  'touch_app',\n  'tour',\n  'toys',\n  'track_changes',\n  'traffic',\n  'train',\n  'tram',\n  'transfer_within_a_station',\n  'transform',\n  'transgender',\n  'transit_enterexit',\n  'translate',\n  'travel_explore',\n  'trending_down',\n  'trending_flat',\n  'trending_up',\n  'trip_origin',\n  'try',\n  'tsunami',\n  'tty',\n  'tune',\n  'tungsten',\n  'turn_left',\n  'turn_right',\n  'turn_sharp_left',\n  'turn_sharp_right',\n  'turn_slight_left',\n  'turn_slight_right',\n  'turned_in',\n  'turned_in_not',\n  'tv',\n  'tv_off',\n  'two_wheeler',\n  'u_turn_left',\n  'u_turn_right',\n  'umbrella',\n  'unarchive',\n  'undo',\n  'unfold_less',\n  'unfold_more',\n  'unpublished',\n  'unsubscribe',\n  'upcoming',\n  'update',\n  'update_disabled',\n  'upgrade',\n  'upload',\n  'upload_file',\n  'usb',\n  'usb_off',\n  'vaccines',\n  'vape_free',\n  'vaping_rooms',\n  'verified',\n  'verified_user',\n  'vertical_align_bottom',\n  'vertical_align_center',\n  'vertical_align_top',\n  'vertical_distribute',\n  'vertical_split',\n  'vibration',\n  'video_call',\n  'video_camera_back',\n  'video_camera_front',\n  'video_file',\n  'video_label',\n  'video_library',\n  'video_settings',\n  'video_stable',\n  'videocam',\n  'videocam_off',\n  'videogame_asset',\n  'videogame_asset_off',\n  'view_agenda',\n  'view_array',\n  'view_carousel',\n  'view_column',\n  'view_comfy',\n  'view_comfy_alt',\n  'view_compact',\n  'view_compact_alt',\n  'view_cozy',\n  'view_day',\n  'view_headline',\n  'view_in_ar',\n  'view_kanban',\n  'view_list',\n  'view_module',\n  'view_quilt',\n  'view_sidebar',\n  'view_stream',\n  'view_timeline',\n  'view_week',\n  'vignette',\n  'villa',\n  'visibility',\n  'visibility_off',\n  'voice_chat',\n  'voice_over_off',\n  'voicemail',\n  'volcano',\n  'volume_down',\n  'volume_mute',\n  'volume_off',\n  'volume_up',\n  'volunteer_activism',\n  'vpn_key',\n  'vpn_key_off',\n  'vpn_lock',\n  'vrpano',\n  'wallpaper',\n  'warehouse',\n  'warning',\n  'warning_amber',\n  'wash',\n  'watch',\n  'watch_later',\n  'watch_off',\n  'water',\n  'water_damage',\n  'water_drop',\n  'waterfall_chart',\n  'waves',\n  'waving_hand',\n  'wb_auto',\n  'wb_cloudy',\n  'wb_incandescent',\n  'wb_iridescent',\n  'wb_shade',\n  'wb_sunny',\n  'wb_twilight',\n  'wc',\n  'web',\n  'web_asset',\n  'web_asset_off',\n  'webhook',\n  'weekend',\n  'west',\n  'whatsapp',\n  'whatshot',\n  'wheelchair_pickup',\n  'where_to_vote',\n  'widgets',\n  'wifi',\n  'wifi_1_bar',\n  'wifi_2_bar',\n  'wifi_calling',\n  'wifi_calling_3',\n  'wifi_channel',\n  'wifi_find',\n  'wifi_lock',\n  'wifi_off',\n  'wifi_password',\n  'wifi_protected_setup',\n  'wifi_tethering',\n  'wifi_tethering_error',\n  'wifi_tethering_off',\n  'window',\n  'wine_bar',\n  'woman',\n  'work',\n  'work_off',\n  'work_outline',\n  'workspace_premium',\n  'workspaces',\n  'wrap_text',\n  'wrong_location',\n  'wysiwyg',\n  'yard',\n  'youtube_searched_for',\n  'zoom_in',\n  'zoom_in_map',\n  'zoom_out',\n  'zoom_out_map',\n];\n","import { getDefaultRequiredArgs, storyCreator } from '../../../../../stories/story-creator';\n\nexport default {\n  title: 'Shared/DataDisplay/BetaIcon',\n  component: 'Shared::DataDisplay::BetaIcon',\n  args: {\n    ...getDefaultRequiredArgs('Shared::DataDisplay::BetaIcon'),\n    iconName: 'firefox',\n  },\n};\n\nexport const BetaIcon = storyCreator('Shared::DataDisplay::BetaIcon');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isEmoji}}\\n  <span class=\\\"c-beta-icon c-beta-icon--emoji {{@class}}\\\" translate=\\\"no\\\" ...attributes>\\n    {{@iconName}}\\n  </span>\\n{{else if this.isMoonIcon}}\\n  <i\\n    class=\\\"c-beta-icon c-beta-icon__moon icomoon icomoon-{{@iconName}}\\n      {{@class}}\\n      {{this.moonSizeClass}}\\n      \\\"\\n    data-test-beta-icon={{@iconName}}\\n    translate=\\\"no\\\"\\n    ...attributes\\n  >\\n  </i>\\n{{else}}\\n  <i\\n    class=\\\"{{this.materialStyle.className}}\\n      {{get-classes-with-modifiers\\n        \\'c-beta-icon\\'\\n        this.size\\n        vertical-centered=(or @verticalCentered false)\\n      }}\\n      {{@class}}\\\"\\n    id={{@id}}\\n    data-test-beta-icon={{@iconName}}\\n    translate=\\\"no\\\"\\n    ...attributes\\n  >\\n    {{this.materialStyle.iconName}}\\n  </i>\\n{{/if}}\\n', { moduleName: 'client/shared/components/data-display/beta-icon/template.hbs' });\n","import Component from '@ember/component';\nimport { classNames } from '@ember-decorators/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@classNames('c-beta-list')\n@validateArguments\nexport default class DataDisplayBetaListComponent extends Component {\n  static propTypes = {\n    values: PropTypes.arrayOf(\n      PropTypes.oneOfType([\n        PropTypes.shape({\n          name: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n          value: PropTypes.any,\n        }),\n        PropTypes.object,\n      ]),\n    ),\n    onRemove: PropTypes.func.isRequired,\n    onReorder: PropTypes.func,\n    onEdit: PropTypes.func,\n    readOnly: PropTypes.bool,\n    reorderable: PropTypes.bool,\n    isEditable: PropTypes.bool,\n    isButtonDisabled: PropTypes.bool,\n    icon: PropTypes.string,\n    valuePath: PropTypes.string,\n    placeholderPath: PropTypes.string,\n    buttonClass: PropTypes.string,\n    entryClass: PropTypes.string,\n  };\n}\n","import { storyCreator } from '../../../../../stories/story-creator';\n\nconst values = ['car', 'bike', 'truck'].map((value) => ({ name: value, value }));\n\nexport default {\n  title: 'Shared/DataDisplay/BetaList',\n  component: 'Shared::DataDisplay::BetaList',\n  args: {\n    values,\n  },\n};\n\nexport const BetaList = storyCreator('Shared::DataDisplay::BetaList');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let (generate-guid) as |groupName|}}\\n  <div {{sortable-group groupName=groupName onChange=@onReorder disabled=(not @reorderable)}}>\\n    {{#each @values as |value index|}}\\n      {{#let (if @valuePath value value.value) as |modelValue|}}\\n        <div\\n          class=\\\"{{if @isEditable \\'c-beta-list__entry-input\\' \\'c-beta-list__entry\\'}} {{@entryClass}}\\\"\\n          {{sortable-item model=modelValue groupName=groupName disabled=(not @reorderable)}}\\n          data-test-beta-list-item={{value.name}}\\n        >\\n          {{#if @reorderable}}\\n            <i class=\\\"material-icons c-beta-list__handle\\\" {{sortable-handle}}>\\n              drag_handle\\n            </i>\\n          {{/if}}\\n          {{#if (has-block)}}\\n            {{yield value}}\\n          {{/if}}\\n\\n          {{#if (and @isEditable (not @readOnly))}}\\n            <Shared::BetaInput\\n              @placeholder={{if @placeholderPath (get value @placeholderPath) value.name}}\\n              @value={{if @valuePath (get value @valuePath) value.name}}\\n              @onChange={{fn @onEdit value}}\\n              class=\\\"c-beta-list__input\\\"\\n              data-test-beta-list-item-input={{index}}\\n            />\\n          {{else}}\\n            {{#let\\n              (if @valuePath (get value @valuePath) value.name) (generate-guid)\\n              as |displayedValue valueId|\\n            }}\\n              <span\\n                id={{valueId}}\\n                class=\\\"c-beta-list__value\\\"\\n                data-test-beta-list-item-value={{value.name}}\\n              >\\n                {{displayedValue}}\\n              </span>\\n              <Shared::Feedback::BetaTooltip @targetId={{valueId}} @side=\\\"bottom\\\">\\n                <div class=\\\"c-beta-list__value-tooltip\\\">\\n                  {{displayedValue}}\\n                </div>\\n              </Shared::Feedback::BetaTooltip>\\n            {{/let}}\\n          {{/if}}\\n          {{#unless @readOnly}}\\n            <Shared::BetaIconButton\\n              @icon={{if @icon @icon \\'close\\'}}\\n              @size=\\\"medium\\\"\\n              class=\\\"c-beta-list__button {{@buttonClass}}\\\"\\n              disabled={{@isButtonDisabled}}\\n              {{on \\'click\\' (stop-propagation (fn @onRemove modelValue index))}}\\n              data-test-beta-list-beta-button\\n              data-test-beta-list-beta-button-index={{index}}\\n            />\\n          {{/unless}}\\n        </div>\\n      {{/let}}\\n    {{/each}}\\n  </div>\\n{{/let}}\\n', { moduleName: 'client/shared/components/data-display/beta-list/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\nimport toNameValueString from 'client/utils/to-name-value-string';\n\n/**\n * @typedef {{\n *   name: string\n *   value: string\n * }} BetaVariablesValues\n */\n\n@validateArguments\nexport default class DataDisplayBetaVariablesComponent extends Component {\n  static propTypes = {\n    variables: PropTypes.arrayOf(\n      PropTypes.shape({\n        name: PropTypes.string.isRequired,\n        value: PropTypes.string.isRequired,\n        iconName: PropTypes.string,\n        description: PropTypes.string,\n      }),\n    ).isRequired,\n    title: PropTypes.string.isRequired,\n  };\n\n  get variablesToNameValueString() {\n    return toNameValueString(this.args.variables);\n  }\n\n  @action\n  variableToNameValueString(variable) {\n    return toNameValueString([variable]);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-data-display-beta-variables\\\" ...attributes>\\n\\n  <h1 class=\\\"c-data-display-beta-variables__title\\\">{{@title}}</h1>\\n\\n  <div class=\\\"c-data-display-beta-variables__container\\\">\\n    <table class=\\\"c-data-display-beta-variables__table\\\">\\n      <colgroup>\\n        <col class=\\\"c-data-display-beta-variables__column--key\\\" />\\n        <col class=\\\"c-data-display-beta-variables__column--value\\\" />\\n        <col class=\\\"c-data-display-beta-variables__column--copy\\\" />\\n      </colgroup>\\n      <thead class=\\\"c-data-display-beta-variables__headers\\\">\\n        <th class=\\\"c-data-display-beta-variables__header\\\">\\n          Key\\n        </th>\\n        <th\\n          class=\\\"c-data-display-beta-variables__header c-data-display-beta-variables__header--value\\\"\\n        >\\n          Value\\n        </th>\\n        <th>\\n          <Form::Copy\\n            class=\\\"c-data-display-beta-variables__copy\\\"\\n            @value={{this.variablesToNameValueString}}\\n            @copyText=\\\"COPY ALL\\\"\\n          />\\n        </th>\\n      </thead>\\n      <tbody class=\\\"c-data-display-beta-variables__body\\\">\\n        {{#each @variables as |variable|}}\\n          <tr class=\\\"c-data-display-beta-variables__line\\\">\\n            <td\\n              class=\\\"c-data-display-beta-variables__cell c-data-display-beta-variables__cell--name\\\"\\n            >\\n              <Shared::BetaInput\\n                @inputClass=\\\"c-data-display-beta-variables__text\\\"\\n                @type=\\\"text\\\"\\n                @value={{variable.name}}\\n                @readOnly={{true}}\\n                class=\\\"c-data-display-beta-variables__input c-data-display-beta-variables__input--name\\\"\\n                data-test-display-beta-variables-key\\n              />\\n              {{#if variable.description}}\\n                <Shared::Feedback::BetaInfoTooltip\\n                  class=\\\"c-data-display-beta-variables__icon\\\"\\n                  @targetId=\\\"key-variables-tooltip\\\"\\n                  @tooltipSide=\\\"bottom\\\"\\n                  @iconSize=\\\"micro\\\"\\n                  data-test-display-tooltip\\n                >\\n                  {{variable.description}}\\n                </Shared::Feedback::BetaInfoTooltip>\\n              {{/if}}\\n            </td>\\n            <td\\n              class=\\\"c-data-display-beta-variables__cell c-data-display-beta-variables__cell--value\\\"\\n            >\\n              <Shared::BetaInput\\n                @inputClass=\\\"c-data-display-beta-variables__text\\\"\\n                @type=\\\"text\\\"\\n                @value={{variable.value}}\\n                @readOnly={{true}}\\n                class=\\\"c-data-display-beta-variables__input\\\"\\n                data-test-display-beta-variables-value\\n              />\\n            </td>\\n            <td class=\\\"c-data-display-beta-variables__copy-line\\\">\\n              <Form::Copy\\n                @style=\\\"icon\\\"\\n                @value={{compute (fn this.variableToNameValueString variable)}}\\n                data-test-display-beta-variables-copy\\n              />\\n            </td>\\n          </tr>\\n        {{/each}}\\n      </tbody>\\n\\n    </table>\\n\\n  </div>\\n</div>\\n', { moduleName: 'client/shared/components/data-display/beta-variables/template.hbs' });\n","import Component from '@glimmer/component';\nimport moment from 'moment';\n\nimport validateArguments from 'client/decorators/validate';\nimport conditionChecking from 'client/utils/condition-checking';\nimport { DateOperatorDisplayNameEnum } from 'client/utils/operators/types';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface Args {\n  value: Date;\n  relativeFormatWhen?: `${DateOperatorDisplayNameEnum}`;\n  formatterWhen?: (date: Date) => string;\n  formatterElse?: (date: Date) => string;\n}\n\n@validateArguments\nexport default class DataDisplayDateComponent extends Component<Args> {\n  static propTypes = {\n    value: PropTypes.date.isRequired,\n    relativeFormatWhen: PropTypes.oneOf(Object.values(DateOperatorDisplayNameEnum)),\n    formatterWhen: PropTypes.func,\n    formatterElse: PropTypes.func,\n  };\n\n  get formattedDate() {\n    const date = this.args.value;\n    return date && conditionChecking('Date', this.args.relativeFormatWhen, date)\n      ? this.formatterWhen(date)\n      : this.formatterElse(date);\n  }\n\n  formatterWhen(date: Date) {\n    return this.args.formatterWhen ? this.args.formatterWhen(date) : moment(date).fromNow();\n  }\n\n  formatterElse(date: Date) {\n    return this.args.formatterElse ? this.args.formatterElse(date) : moment(date).calendar();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<span class=\\\"c-data-display-date\\\" data-test-data-display-date ...attributes>\\n  {{this.formattedDate}}\\n</span>\\n', { moduleName: 'client/shared/components/data-display/date/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { argument, oneOfType, optional, shape } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport { getColorFromTheme } from 'client/utils/color-utils';\n\n@validateArguments\nexport default class DataDisplayFontDisplayComponent extends Component {\n  // NOTICE: support htmlsafe which is an object\n  @argument(optional(oneOfType([String, Number, shape()]))) value;\n  @argument(String) color;\n\n  get displayedValue() {\n    return this.args.value ?? 'Sample';\n  }\n\n  get rgbColor() {\n    const { color } = this.args;\n\n    return getColorFromTheme(color);\n  }\n\n  setColor(element, color) {\n    element.style.setProperty('--font-display-color', color);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<span\\n  {{did-insert this.setColor this.rgbColor}}\\n  {{did-update this.setColor this.rgbColor}}\\n  class=\\\"c-font-display\\\"\\n>\\n  {{this.displayedValue}}\\n</span>\\n', { moduleName: 'client/shared/components/data-display/font-display/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers \\'c-shared-data-display-icon-with-border\\' @size}}\\n  ...attributes\\n>\\n  <Shared::DataDisplay::BetaIcon @iconName={{@iconName}} @size={{@size}} />\\n</div>\\n', { moduleName: 'client/shared/components/data-display/icon-with-border/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport { alias } from '@ember/object/computed';\nimport { debounce } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport Project from 'client/data/models/project';\nimport Team from 'client/data/models/team';\nimport { argument, optional } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport StoreService from 'client/legacy/services/store';\n\n@validateArguments\nexport default class DataDisplayItemsPaginatedTableComponent extends Component {\n  @service store;\n\n  @argument(String) itemType;\n  @argument(optional(Project)) projectToSearchTeams; // Needed when looking for teams.\n  @argument(optional(Team)) teamToRestrictUsersSearch; // Optional when looking for users.\n  @argument(optional(Function)) onItemClick;\n  @argument(optional(Object)) filteredFields;\n  @argument(optional(Number)) searchDebounceTime;\n\n  @tracked searchValue = '';\n  @tracked filter = null;\n  @tracked isLoadingItems = true;\n  @tracked currentPage = 1;\n  @tracked currentPageItems = [];\n\n  constructor(...args) {\n    super(...args);\n    this.fetchItems();\n  }\n\n  @alias('currentPageItems.meta.count') currentPageItemsCount;\n\n  @computed('currentPageItemsCount')\n  get numberOfPages() {\n    return Math.ceil(this.currentPageItemsCount / 10) || 1;\n  }\n\n  @computed('args.{itemType,projectToSearchTeams,teamToRestrictUsersSearch}', 'store')\n  get querySpecifications() {\n    const { itemType, projectToSearchTeams, teamToRestrictUsersSearch } = this.args;\n\n    if (itemType === 'team') {\n      return { prefix: projectToSearchTeams, item: 'teams' };\n    }\n    if (teamToRestrictUsersSearch) {\n      return { prefix: teamToRestrictUsersSearch, item: 'users' };\n    }\n    return { prefix: this.store, item: 'user' };\n  }\n\n  @action\n  prevPage() {\n    if (this.currentPage === 1) return;\n\n    this.currentPage -= 1;\n    this.fetchItems();\n  }\n\n  @action\n  nextPage() {\n    if (this.currentPage === this.numberOfPages) return;\n\n    this.currentPage += 1;\n    this.fetchItems();\n  }\n\n  @action\n  applyFilter(filter) {\n    this.filter = filter;\n    this.currentPage = 1;\n    this.fetchItems();\n  }\n\n  @action\n  debounceSearch(searchValue) {\n    this.searchValue = searchValue;\n    debounce(this, this.searchItems, this.args.searchDebounceTime ?? 500);\n  }\n\n  searchItems() {\n    this.currentPage = 1;\n    this.fetchItems();\n  }\n\n  async fetchItems() {\n    this.isLoadingItems = true;\n    const queryParams = { page: { number: this.currentPage } };\n\n    if (this.searchValue) {\n      queryParams.search = this.searchValue;\n    }\n\n    if (this.filter) {\n      queryParams.filter = { roleId: this.filter.id };\n    }\n\n    const { prefix, item } = this.querySpecifications;\n    let currentPageItems;\n    if (prefix instanceof StoreService) {\n      currentPageItems = await prefix.query(item, queryParams);\n    } else {\n      currentPageItems = await prefix.queryRecords(item, queryParams);\n    }\n    this.isLoadingItems = false;\n    this.currentPageItems = currentPageItems;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::DataDisplay::BetaDisplayList\\n  @isLoading={{this.isLoadingItems}}\\n  @pageSize={{10}}\\n  @items={{this.currentPageItems}}\\n  @onItemClick={{@onItemClick}}\\n  @emptyState={{(html-safe\\n    (concat\\n      \\'<span class=\\\"c-items-paginated-table__empty-state\\\">No \\'\\n      @itemType\\n      \\' found matching your query.</span>\\'\\n    )\\n  )}}\\n  @header={{component\\n    \\'shared/data-display/beta-display-list/header-with-pagination\\'\\n    displayLoading=this.isLoadingItems\\n    searchFunction=this.debounceSearch\\n    searchValue=this.searchValue\\n    placeholder=(concat\\n      \\'Search within \\'\\n      (format-number-to-locale this.currentPageItemsCount)\\n      \\' \\'\\n      (word-pluralize @itemType this.currentPageItemsCount)\\n    )\\n    applyFilter=this.applyFilter\\n    currentPage=this.currentPage\\n    numberOfPages=this.numberOfPages\\n    back=this.prevPage\\n    next=this.nextPage\\n    isFilterEnabled=@filteredFields\\n    filter=this.filter\\n    fields=@filteredFields\\n  }}\\n  data-test-items-paginated-table-for={{@itemType}}\\n  as |currentPageItem|\\n>\\n  {{yield currentPageItem}}\\n</Shared::DataDisplay::BetaDisplayList>\\n', { moduleName: 'client/shared/components/data-display/items-paginated-table/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface DataDisplayNumberBadgeArgs {\n  count: Promise<number | string> | number | string;\n  limitCount: number;\n  shouldNotify: boolean;\n}\n\n@validateArguments\nexport default class DataDisplayNumberBadgeComponent extends Component<DataDisplayNumberBadgeArgs> {\n  static propTypes = {\n    count: PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Promise)]).isRequired,\n    limitCount: PropTypes.number,\n    shouldNotify: PropTypes.bool,\n    isActive: PropTypes.bool,\n  };\n\n  @tracked numberToDisplay: number | string = null;\n\n  constructor(owner: unknown, args: DataDisplayNumberBadgeArgs) {\n    super(owner, args);\n\n    // eslint-disable-next-line no-void\n    void this.computeNumberToDisplay();\n  }\n\n  get isLoading() {\n    return this.numberToDisplay === null;\n  }\n\n  get shouldBeNotifying() {\n    return this.args.shouldNotify && Number.parseInt(`${this.numberToDisplay}`, 10) > 0;\n  }\n\n  @action\n  async computeNumberToDisplay() {\n    const { limitCount } = this.args;\n    const count = await this.args.count;\n\n    this.numberToDisplay = null;\n    this.numberToDisplay =\n      limitCount !== undefined && limitCount < Number(count) ? `${limitCount}+` : count;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/DataDisplay/NumberBadge',\n  component: 'Shared::DataDisplay::NumberBadge',\n  args: {\n    ...getDefaultRequiredArgs('Shared::DataDisplay::NumberBadge'),\n    count: 12000,\n  },\n};\n\nconst loadingValue = Promise.resolve(null);\nexport const NumberBadge = () => ({\n  context: {\n    loadingValue,\n  },\n  template: hbs`\n    <Shared::DataDisplay::NumberBadge\n      @count={{12000}}\n      @shouldNotify={{true}}\n    />\n    <Shared::DataDisplay::NumberBadge\n      @count={{this.loadingValue}}\n      @shouldNotify={{true}}\n    />\n    <Shared::DataDisplay::NumberBadge\n      @count={{11}}\n      @shouldNotify={{false}}\n    />\n    <Shared::DataDisplay::NumberBadge\n      @count={{this.loadingValue}}\n      @shouldNotify={{false}}\n    />\n    <Shared::DataDisplay::NumberBadge\n      @count={{3}}\n      @isActive={{true}}\n    />\n    <Shared::DataDisplay::NumberBadge\n      @count={{this.loadingValue}}\n      @isActive={{true}}\n    />\n  `,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.isLoading}}\\n  <Shared::Feedback::BetaLoader\\n    @type=\\\"custom\\\"\\n    class={{get-classes-with-modifiers\\n      \\'c-shared-data-display-number-badge\\'\\n      notification=this.shouldBeNotifying\\n      active=@isActive\\n      loading=true\\n    }}\\n    data-test-shared-data-display-number-badge\\n    data-test-shared-data-display-number-badge-loader\\n    ...attributes\\n  />\\n{{else}}\\n  <span\\n    class={{get-classes-with-modifiers\\n      \\'c-shared-data-display-number-badge\\'\\n      notification=this.shouldBeNotifying\\n      active=@isActive\\n    }}\\n    data-test-shared-data-display-number-badge\\n    data-test-shared-data-display-number-badge-count\\n    {{did-update this.computeNumberToDisplay @count}}\\n    ...attributes\\n  >\\n    {{format-number-to-compact-locale this.numberToDisplay}}\\n  </span>\\n{{/if}}\\n', { moduleName: 'client/shared/components/data-display/number-badge/template.hbs' });\n","import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface DataDisplayTableLoaderArgs {\n  hasCheckbox?: boolean;\n  columnsCount?: number;\n  rowsCount?: number;\n}\n\n@validateArguments\nexport default class DataDisplayTableLoaderComponent extends Component<DataDisplayTableLoaderArgs> {\n  static propTypes = {\n    hasCheckbox: PropTypes.bool,\n    columnsCount: PropTypes.number,\n    rowsCount: PropTypes.number,\n  };\n\n  @tracked hasCheckbox: boolean;\n  @tracked columnsCount: number;\n  @tracked rowsCount: number;\n\n  constructor(owner: unknown, args: DataDisplayTableLoaderArgs) {\n    super(owner, args);\n\n    this.hasCheckbox = args.hasCheckbox ?? false;\n    this.columnsCount = args.columnsCount ?? 5;\n    this.rowsCount = args.rowsCount ?? 20;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<tbody class=\\\"c-table-loader\\\" data-test-data-display-table-loader ...attributes>\\n  <IncrementFor @times={{this.rowsCount}}>\\n    <tr class=\\\"c-table-loader__line\\\">\\n      {{#if this.hasCheckbox}}\\n        <td class=\\\"c-table-loader__line-bubble\\\"></td>\\n      {{/if}}\\n\\n      <IncrementFor @times={{this.columnsCount}}>\\n        <td class=\\\"c-table-loader__line-info\\\"></td>\\n      </IncrementFor>\\n    </tr>\\n  </IncrementFor>\\n\\n  <td colspan={{this.columnsCount}} class=\\\"c-table-loader__overlay\\\"></td>\\n</tbody>\\n', { moduleName: 'client/shared/components/data-display/table/loader/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface EditableListArgs<T> {\n  items: T[];\n  nameProperty: keyof T;\n  visibilityProperty: keyof T;\n  onToggleVisibility?: (item: T) => void;\n  onReorder?: () => void;\n  onRedirectToSettings?: () => void;\n}\n\n@validateArguments\nexport default class EditableListComponent<T> extends Component<EditableListArgs<T>> {\n  static readonly propTypes = {\n    items: PropTypes.array.isRequired,\n    nameProperty: PropTypes.string.isRequired,\n    onReorder: PropTypes.func,\n    visibilityProperty: PropTypes.string,\n    onToggleVisibility: PropTypes.func,\n    onRedirectToSettings: PropTypes.func,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/EditableList',\n  component: 'Shared::EditableList',\n  args: {\n    ...getDefaultRequiredArgs('Shared::EditableList'),\n  },\n  argsType: {\n    items: 'array',\n  },\n};\n\nexport const EditableList = storyCreator('Shared::EditableList');\n\nconst template = (args) => {\n  const items = [\n    { id: 1, type: 'data', name: 'Item 1', isVisible: true },\n    { id: 2, type: 'data', name: 'Item 2', isVisible: false },\n    { id: 3, type: 'data', name: 'Item 3', isVisible: true },\n  ];\n\n  const json = JSON.stringify(items, null, 2);\n\n  return {\n    template: hbs`\n    <div style=\"display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;\">\n      <p>Example data: <pre>{{this.json}}</pre></p>\n      <div>\n        <p>Basic behavior:</p>\n        <Shared::EditableList\n          @items={{this.items}}\n          @nameProperty=\"name\"\n        />\n      </div>\n\n      <div>\n        <p>With settings button:</p>\n        <Shared::EditableList\n          @items={{this.items}}\n          @nameProperty=\"name\"\n          @onRedirectToSettings={{(fn (do-nothing-function))}}\n        />\n      </div>\n\n      <div>\n        <p>With visibility toggles:</p>\n        <Shared::EditableList\n          @items={{this.items}}\n          @nameProperty=\"name\"\n          @visibilityProperty=\"isVisible\"\n          @onToggleVisibility={{(fn (do-nothing-function))}}\n        />\n      </div>\n\n      <div>\n        <p>When passing onReorder function:</p>\n        <Shared::EditableList\n          @items={{this.items}}\n          @nameProperty=\"name\"\n          @onReorder={{(fn (do-nothing-function))}}\n        />\n      </div>\n    </div>\n    `,\n    context: { ...args, items, json },\n  };\n};\n\nexport const AllUseCases = (args) => {\n  return template({ ...args });\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-shared-editable-list\\\"\\n  {{shared/sortablejs-group onChange=(optional @onReorder) disabled=(not @onReorder)}}\\n  data-test-shared-editable-list\\n  ...attributes\\n>\\n  {{#each @items as |item index|}}\\n    <li\\n      class=\\\"c-shared-editable-list__row\\\"\\n      {{shared/sortablejs-item item}}\\n      data-test-shared-editable-list-row={{index}}\\n    >\\n      {{#if @visibilityProperty}}\\n        {{#let (get item @visibilityProperty) as |isVisible|}}\\n          <Shared::DataDisplay::BetaIcon\\n            @iconName={{if isVisible \\'visibility\\' \\'visibility_off\\'}}\\n            class={{shared/get-classes-with-modifiers\\n              \\'c-shared-editable-list__row-visibility\\'\\n              hidden=(not isVisible)\\n            }}\\n            {{on \\'click\\' (stop-propagation (fn @onToggleVisibility item))}}\\n            data-test-shared-editable-list-row-visibility-icon\\n          />\\n          <span\\n            class={{shared/get-classes-with-modifiers\\n              \\'c-shared-editable-list__row-name\\'\\n              hidden=(not isVisible)\\n            }}\\n            data-test-shared-editable-list-row-name\\n          >\\n            {{get item @nameProperty}}\\n          </span>\\n        {{/let}}\\n      {{else}}\\n        <span class=\\\"c-shared-editable-list__row-name\\\" data-test-shared-editable-list-row-name>\\n          {{get item @nameProperty}}\\n        </span>\\n      {{/if}}\\n      {{#if @onRedirectToSettings}}\\n        <Button::SettingsButton\\n          @action={{fn @onRedirectToSettings item}}\\n          @noPositioning={{true}}\\n          class=\\\"c-shared-editable-list__row-settings\\\"\\n          data-test-shared-editable-list-row-settings-button\\n        />\\n      {{/if}}\\n    </li>\\n  {{/each}}\\n</div>\\n', { moduleName: 'client/shared/components/editable-list/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/EmptyState',\n  component: 'Shared::EmptyState',\n  argTypes: {\n    iconName: {\n      type: 'string',\n      description: 'The icon to display in the empty state.',\n      table: {\n        category: 'Properties',\n      },\n    },\n  },\n  args: {\n    iconName: 'info',\n  },\n};\n\nexport const EmptyState = function () {\n  return {\n    template: hbs`\n    <Shared::EmptyState\n      @iconName=\"info\"\n    >\n      <:title>\n        No Data Available\n      </:title>\n      <:description>\n        There is currently no data to display. Please check back later or contact support if you believe this is an error.\n      </:description>\n      <:footer>\n        <Shared::Button\n          @text=\"Contact Support\"\n          @onClick={{(do-nothing-function)}}\n          @type=\"primary\"\n          />\n      </:footer>\n    </Shared::EmptyState>\n      `,\n  };\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-shared-empty-state\\\" data-test-shared-empty-state ...attributes>\\n  <div class=\\\"c-shared-empty-state__icon\\\" data-test-shared-empty-state-icon>\\n    <Shared::DataDisplay::BetaIcon @iconName={{@iconName}} />\\n  </div>\\n  <div class=\\\"c-shared-empty-state__content\\\">\\n    <div class=\\\"c-shared-empty-state__title\\\" data-test-shared-empty-state-title>\\n      {{yield to=\\'title\\'}}\\n    </div>\\n    <div class=\\\"c-shared-empty-state__description\\\" data-test-shared-empty-state-description>\\n      {{yield to=\\'description\\'}}\\n    </div>\\n  </div>\\n  {{#if (has-block \\'footer\\')}}\\n    <div class=\\\"c-shared-empty-state__footer\\\" data-test-shared-empty-state-footer>\\n      {{yield to=\\'footer\\'}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/shared/components/empty-state/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-beta-feedback\\\" ...attributes>\\n  <div class=\\\"l-beta-feedback-title-container\\\">\\n    <Shared::DataDisplay::BetaIcon\\n      @size=\\\"inherit\\\"\\n      @iconName={{@iconName}}\\n      class=\\\"c-beta-feedback__title-icon c-beta-feedback__title-icon--{{@type}}\\\"\\n      data-test-beta-feedback-icon\\n    />\\n    <span class=\\\"c-beta-feedback__title-text\\\" data-test-beta-feedback-title>\\n      {{@title}}\\n    </span>\\n  </div>\\n\\n  <p class=\\\"c-beta-feedback__description\\\" data-test-beta-feedback-description>\\n    {{yield}}\\n  </p>\\n</div>\\n', { moduleName: 'client/shared/components/feedback/beta-feedback/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let (generate-guid) as |componentId|}}\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName=\\\"info\\\"\\n    @size={{or @iconSize \\'tiny\\'}}\\n    class=\\\"c-beta-info-tooltip\\\"\\n    id={{componentId}}\\n    data-test-beta-info-tooltip\\n    ...attributes\\n  />\\n  <Shared::Feedback::BetaTooltip @targetId={{componentId}} @side={{or @tooltipSide \\'top\\'}}>\\n    {{yield}}\\n  </Shared::Feedback::BetaTooltip>\\n{{/let}}\\n', { moduleName: 'client/shared/components/feedback/beta-info-tooltip/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype FeedbackBetaLoaderComponentArgs = {\n  type: 'primary' | 'secondary' | 'info' | 'custom';\n};\n\n@validateArguments\nexport default class FeedbackBetaLoaderComponent extends Component<FeedbackBetaLoaderComponentArgs> {\n  static propTypes = {\n    type: PropTypes.oneOf(['primary', 'secondary', 'info', 'custom']),\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<svg\\n  ...attributes\\n  class=\\\"c-beta-loader c-beta-loader--{{or @type \\'primary\\'}} {{@class}} {{this.classPosition}}\\\"\\n  width=\\\"40px\\\"\\n  height=\\\"40px\\\"\\n  xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n  viewBox=\\\"0 0 100 100\\\"\\n  preserveAspectRatio=\\\"xMidYMid\\\"\\n>\\n  <circle\\n    class=\\\"c-beta-loader__circle\\\"\\n    cx=\\\"50\\\"\\n    cy=\\\"50\\\"\\n    fill=\\\"none\\\"\\n    stroke-width=\\\"10\\\"\\n    r=\\\"35\\\"\\n    stroke-dasharray=\\\"164.93361431346415 56.97787143782138\\\"\\n    transform=\\\"rotate(305.844 50 50)\\\"\\n  >\\n    <animateTransform\\n      attributeName=\\\"transform\\\"\\n      type=\\\"rotate\\\"\\n      calcMode=\\\"linear\\\"\\n      values=\\\"0 50 50;360 50 50\\\"\\n      keyTimes=\\\"0;1\\\"\\n      dur=\\\"1s\\\"\\n      begin=\\\"0s\\\"\\n      repeatCount=\\\"indefinite\\\"\\n    ></animateTransform>\\n  </circle>\\n</svg>\\n', { moduleName: 'client/shared/components/feedback/beta-loader/template.hbs' });\n","import type { AlignedPlacement } from '@floating-ui/dom';\n\nimport { deprecate } from '@ember/debug';\nimport { action } from '@ember/object';\nimport { arrow, computePosition, flip, offset, shift } from '@floating-ui/dom';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport { pauseFor } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FeedbackBetaTooltipComponentArgs {\n  targetId?: string;\n  showDelay?: number;\n  hideDelay?: number;\n  spacing?: number;\n  side?: AlignedPlacement;\n  isAlwaysShown?: boolean;\n  text?: string;\n}\n\nconst TOOLTIP_CSS_VARIABLE_PREFIX = '--shared-feedback-beta-tooltip';\n\n@validateArguments\nexport default class FeedbackBetaTooltipComponent extends Component<FeedbackBetaTooltipComponentArgs> {\n  static propTypes = {\n    targetId: PropTypes.string,\n    showDelay: PropTypes.number,\n    hideDelay: PropTypes.number,\n    spacing: PropTypes.number,\n    side: PropTypes.oneOf([\n      'top',\n      'top-start',\n      'top-end',\n      'bottom',\n      'bottom-start',\n      'bottom-end',\n      'left',\n      'left-start',\n      'left-end',\n      'right',\n      'right-start',\n      'right-end',\n    ]),\n    isAlwaysShown: PropTypes.bool,\n    text: PropTypes.string,\n  };\n\n  static defaultProps = {\n    hideDelay: 100,\n    spacing: 0,\n    side: 'bottom' as AlignedPlacement,\n    isAlwaysShown: false,\n  };\n\n  private tooltipElement: HTMLElement = null;\n  private arrowElement: HTMLElement = null;\n  private parentElement: HTMLElement = null;\n  private targetElement: HTMLElement = null;\n  private isHoverTooltip = false;\n  private isDraggingTarget = false;\n  private isHoverTarget = false;\n\n  @tracked public isHidden = true;\n\n  willDestroy() {\n    super.willDestroy();\n\n    this.targetElement?.removeEventListener('mouseenter', this.displayTooltip);\n    this.targetElement?.removeEventListener('mouseleave', this.hideTooltip);\n    this.targetElement?.removeEventListener('dragstart', this.handleDragStart);\n    this.targetElement?.removeEventListener('drop', this.handleDragEnd);\n    this.targetElement?.removeEventListener('mousedown', this.handleDragStart);\n    this.targetElement?.removeEventListener('mouseup', this.handleDragEnd);\n  }\n\n  @action\n  async handleDidInsert(element: HTMLElement) {\n    this.tooltipElement = element;\n    this.arrowElement = element.querySelector('[data-tooltip-arrow]');\n    this.parentElement = element.parentElement;\n\n    if (this.args.targetId) {\n      deprecate(\n        '@targetId on Shared::Feedback::BetaTooltip is deprecated. Just place it in the element you want to target.',\n        true,\n        {\n          id: 'Shared::Feedback::BetaTooltip @target',\n          until: '1.0.0',\n          for: 'forestadmin',\n          since: { available: '0.0.1' },\n        },\n      );\n    }\n\n    await this.initializeTooltip();\n  }\n\n  async initializeTooltip(iteration = 0) {\n    const target = this.args.targetId\n      ? document.getElementById(this.args.targetId)\n      : this.parentElement;\n    if (!target || !(this.args.text || this.tooltipElement)) {\n      const mutationObserver = new MutationObserver(() => {\n        mutationObserver.disconnect();\n        void this.initializeTooltip(iteration + 1);\n      });\n      mutationObserver.observe(this.parentElement, { childList: true, subtree: true });\n      return;\n    }\n\n    this.targetElement = target;\n\n    await this.initializeDisplay();\n  }\n\n  async initializeDisplay() {\n    if (this.args.isAlwaysShown) {\n      await this.displayTooltip();\n      return;\n    }\n\n    this.targetElement.addEventListener('mouseenter', this.handleMouseEnterTarget);\n\n    this.targetElement.addEventListener('mouseleave', this.handleMouseLeaveTarget);\n    this.targetElement.addEventListener('mousedown', this.handleDragStart);\n    this.targetElement.addEventListener('mouseup', this.handleDragEnd);\n    this.targetElement.addEventListener('dragstart', this.handleDragStart);\n    this.targetElement.addEventListener('drop', this.handleDragEnd);\n  }\n\n  @action\n  async displayTooltip() {\n    if (this.isDraggingTarget) return;\n\n    this.isHidden = false;\n    await this.computeTooltipPosition();\n  }\n\n  @action\n  hideTooltip() {\n    if (\n      !this.isDraggingTarget\n      && (this.isHoverTarget || this.isHoverTooltip || this.args.isAlwaysShown)\n    )\n      return;\n\n    this.isHidden = true;\n  }\n\n  @action\n  async handleMouseEnterTarget() {\n    this.isHoverTarget = true;\n    if (this.args.showDelay) {\n      await pauseFor(this.args.showDelay);\n    }\n    if (this.isHoverTarget) {\n      await this.displayTooltip();\n    }\n  }\n\n  @action\n  async handleMouseLeaveTarget() {\n    this.isHoverTarget = false;\n    await pauseFor(this.args.hideDelay ?? FeedbackBetaTooltipComponent.defaultProps.hideDelay);\n    this.hideTooltip();\n  }\n\n  async computeTooltipPosition() {\n    const placement = this.args.side || FeedbackBetaTooltipComponent.defaultProps.side;\n\n    const { x, y, middlewareData } = await computePosition(\n      this.targetElement,\n      this.tooltipElement,\n      {\n        placement,\n        strategy: 'fixed',\n        middleware: [\n          offset(this.args.spacing ?? FeedbackBetaTooltipComponent.defaultProps.spacing),\n          flip(),\n          shift({ padding: 4 }),\n          arrow({ element: this.arrowElement }),\n        ],\n      },\n    );\n\n    this.tooltipElement.style.setProperty(`${TOOLTIP_CSS_VARIABLE_PREFIX}-top`, `${y}px`);\n    this.tooltipElement.style.setProperty(`${TOOLTIP_CSS_VARIABLE_PREFIX}-left`, `${x}px`);\n\n    const { x: arrowX, y: arrowY } = middlewareData.arrow;\n\n    const staticSide = {\n      top: 'bottom',\n      right: 'left',\n      bottom: 'top',\n      left: 'right',\n    }[placement.split('-')[0]];\n\n    this.arrowElement.style.setProperty(\n      `${TOOLTIP_CSS_VARIABLE_PREFIX}-arrow-left`,\n      arrowX != null ? `${arrowX}px` : '',\n    );\n    this.arrowElement.style.setProperty(\n      `${TOOLTIP_CSS_VARIABLE_PREFIX}-arrow-top`,\n      arrowY != null ? `${arrowY}px` : '',\n    );\n    this.arrowElement.style.setProperty(`${TOOLTIP_CSS_VARIABLE_PREFIX}-arrow-bottom`, '');\n    this.arrowElement.style.setProperty(`${TOOLTIP_CSS_VARIABLE_PREFIX}-arrow-right`, '');\n    this.arrowElement.style.setProperty(\n      `${TOOLTIP_CSS_VARIABLE_PREFIX}-arrow-${staticSide}`,\n      '-2.5px',\n    );\n  }\n\n  @action\n  handleDragStart() {\n    this.isDraggingTarget = true;\n    this.hideTooltip();\n  }\n\n  @action\n  handleDragEnd() {\n    this.isDraggingTarget = false;\n  }\n\n  @action\n  handleMouseEnter() {\n    this.isHoverTooltip = true;\n  }\n\n  @action\n  handleMouseLeave() {\n    this.isHoverTooltip = false;\n    this.hideTooltip();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"tooltip\\\">\\n  <div\\n    {{did-insert this.handleDidInsert}}\\n    class={{get-classes-with-modifiers \\'c-shared-feedback-beta-tooltip\\' hidden=this.isHidden}}\\n    data-test-shared-feedback-beta-tooltip\\n    ...attributes\\n    {{on \\'mouseenter\\' this.handleMouseEnter}}\\n    {{on \\'mouseleave\\' this.handleMouseLeave}}\\n  >\\n    <span class=\\\"c-shared-feedback-beta-tooltip__arrow\\\" data-tooltip-arrow></span>\\n    {{@text}}\\n    {{yield}}\\n  </div>\\n</Shared::PortalContent>\\n', { moduleName: 'client/shared/components/feedback/beta-tooltip/template.hbs' });\n","import Component from '@ember/component';\nimport { action, computed } from '@ember/object';\nimport { classNameBindings, classNames } from '@ember-decorators/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n/**\n * @readonly\n * @enum {string}\n */\nexport const NotificationStyle = {\n  DEFAULT: 'default',\n  MINIMAL: 'minimal',\n};\n\n/**\n * @readonly\n * @enum {string}\n */\nexport const NotificationState = {\n  Error: 'error',\n  Warning: 'warning',\n  Success: 'success',\n  Info: 'info',\n  Basic: 'basic',\n  Loading: 'loading',\n};\n\n@classNames('c-notification-in-app')\n@classNameBindings('stateClassName', 'isHidden:c-notification-in-app--hidden', 'styleClassName')\n@validateArguments\nexport default class FeedbackNotificationNotificationInAppComponent extends Component {\n  static propTypes = {\n    state: PropTypes.oneOf(Object.values(NotificationState)).isRequired,\n    style: PropTypes.oneOf(Object.values(NotificationStyle)),\n    messageTitle: PropTypes.string,\n    message: PropTypes.string,\n    onClose: PropTypes.func,\n    canHide: PropTypes.bool,\n    contentClass: PropTypes.string,\n    iconClass: PropTypes.string,\n  };\n\n  canHide = true;\n\n  @computed('state')\n  get stateClassName() {\n    return `c-notification-in-app--${this.state}`;\n  }\n\n  @computed('style')\n  get styleOrDefault() {\n    return this.style || NotificationStyle.DEFAULT;\n  }\n\n  @computed('state', 'styleOrDefault')\n  get styleClassName() {\n    return [\n      `c-notification-in-app--${this.styleOrDefault}-${this.state}`,\n      `c-notification-in-app--${this.styleOrDefault}`,\n    ].join(' ');\n  }\n\n  @computed('state', 'styleOrDefault')\n  get contentStyleClass() {\n    return [\n      `c-notification-in-app__text--${this.styleOrDefault}`,\n      `c-notification-in-app__text--${this.styleOrDefault}-${this.state}`,\n    ].join(' ');\n  }\n\n  @computed('state', 'styleOrDefault')\n  get iconStyleClass() {\n    return [\n      `c-notification-in-app__icon--${this.styleOrDefault}`,\n      `c-notification-in-app__icon--${this.styleOrDefault}-${this.state}`,\n    ].join(' ');\n  }\n\n  @computed('state')\n  get iconName() {\n    switch (this.state) {\n      case NotificationState.Error:\n        return 'cancel';\n      case NotificationState.Warning:\n        return 'report_problem';\n      case NotificationState.Success:\n        return 'check_circle';\n      case NotificationState.Info:\n        return 'info_outlined';\n      case NotificationState.Basic:\n      default:\n        return 'report';\n    }\n  }\n\n  @action\n  hide() {\n    this.set('isHidden', true);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#unless (eq @state \\'loading\\')}}\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName={{this.iconName}}\\n    class=\\\"c-notification-in-app__icon {{@iconClass}} {{this.iconStyleClass}}\\\"\\n  />\\n{{else}}\\n  <Shared::Feedback::BetaLoader\\n    @type=\\\"info\\\"\\n    class=\\\"c-notification-in-app__icon c-notification-in-app__icon--loading\\n      {{@iconClass}}\\n      {{this.iconStyleClass}}\\\"\\n  />\\n{{/unless}}\\n\\n<div class=\\\"c-notification-in-app__text-container\\\">\\n  {{#if @messageTitle}}\\n    <span\\n      class=\\\"c-notification-in-app__text-title {{@contentClass}} {{this.contentStyleClass}}\\\"\\n      data-test-feedback-notification-notification-in-app-title\\n    >\\n      {{@messageTitle}}\\n    </span>\\n  {{/if}}\\n\\n  <span\\n    class=\\\"c-notification-in-app__text {{@contentClass}} {{this.contentStyleClass}}\\\"\\n    data-test-feedback-notification-notification-in-app-message\\n  >\\n    {{#if (has-block)}}\\n      {{yield}}\\n    {{else}}\\n      {{@message}}\\n    {{/if}}\\n  </span>\\n</div>\\n\\n{{#if @canHide}}\\n  <i class=\\\"material-icons c-notification-in-app__hide\\\" {{on \\'click\\' this.hide}} role=\\\"button\\\">\\n    close\\n  </i>\\n{{/if}}\\n', { moduleName: 'client/shared/components/feedback/notification/notification-in-app/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport ColorUtils from 'client/utils/color-utils';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type FeedbackProgressBarArgs = {\n  max: number;\n  value: number;\n  color?: string;\n};\n\n@validateArguments\nexport default class FeedbackProgressBarComponent extends Component<FeedbackProgressBarArgs> {\n  static propTypes = {\n    max: PropTypes.number.isRequired,\n    value: PropTypes.number.isRequired,\n    color: PropTypes.string,\n  };\n\n  get primaryColor() {\n    return ColorUtils.colorOrDefault(this.args.color);\n  }\n\n  @action\n  handleReceiveAttrs(element: HTMLDivElement) {\n    const percentage = Math.min(100, (this.args.value / this.args.max) * 100);\n    const invertPercentage = 100 - percentage;\n    const endColor = ColorUtils.getGradientLastColor(this.primaryColor);\n\n    element.style.setProperty('--progress-bar-end-color', endColor);\n    element.style.setProperty('--progress-bar-invert-percentage', `${invertPercentage}%`);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/Feedback/ProgressBar',\n  component: 'Shared::Feedback::ProgressBar',\n  argTypes: {\n    max: {\n      type: {\n        name: 'number',\n        required: true,\n      },\n      description: 'The max value of the progress bar.',\n      table: {\n        category: 'Properties',\n      },\n    },\n    value: {\n      type: {\n        name: 'number',\n        required: true,\n      },\n      description:\n        'The value of the progress bar. Must be between 0 and `max`. If `max` is 100 and `value` is 50, the progress bar will be 50%.',\n      table: {\n        category: 'Properties',\n      },\n    },\n    color: {\n      type: {\n        name: 'string',\n      },\n      description: 'The color of the progress bar (used for the gradient).',\n      table: {\n        category: 'Properties',\n      },\n    },\n  },\n  args: {\n    max: 100,\n    value: 50,\n    color: '#719f11',\n  },\n};\n\nexport const CompleteExample = (args) => {\n  return {\n    context: args,\n    template: hbs`\n      <Shared::Feedback::ProgressBar @max={{this.max}} @value={{this.value}} @color={{this.color}} />\n    `,\n  };\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-progress-bar\\\"\\n  {{did-insert this.handleReceiveAttrs}}\\n  {{did-update this.handleReceiveAttrs @color @max @value}}\\n  ...attributes\\n>\\n  <div class=\\\"c-progress-bar__fill\\\"></div>\\n</div>\\n', { moduleName: 'client/shared/components/feedback/progress-bar/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport { argument } from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\n\n@validateArguments\nexport default class FeedbackTagInfoComponent extends Component {\n  @argument(String) text;\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<span id=\\\"tag-info\\\" class=\\\"c-tag-info\\\" data-test-tag-info>\\n  {{@text}}\\n  {{#if (has-block)}}\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName=\\\"info_outlined\\\"\\n      class=\\\"c-tag-info__icon\\\"\\n      data-test-tag-info-icon\\n    />\\n    <Shared::Feedback::BetaTooltip @hideDelay={{250}} @side=\\\"top\\\">\\n      {{yield}}\\n    </Shared::Feedback::BetaTooltip>\\n  {{/if}}\\n</span>\\n', { moduleName: 'client/shared/components/feedback/tag-info/template.hbs' });\n","import { guidFor } from '@ember/object/internals';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FilterDropdownArgs {\n  applyFilters: () => void;\n  discardFilters: () => void;\n}\n\n@validateArguments\nexport default class FilterDropdownComponent extends Component<FilterDropdownArgs> {\n  static propTypes = {\n    filtersCount: PropTypes.number,\n    applyFilters: PropTypes.func.isRequired,\n    discardFilters: PropTypes.func.isRequired,\n    isDiscardFiltersDisabled: PropTypes.bool,\n    isApplyFiltersDisabled: PropTypes.bool,\n  };\n\n  get elementId() {\n    return guidFor(this);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/Filter/Dropdown',\n  component: 'Shared::Filter::Dropdown',\n  args: {\n    ...getDefaultRequiredArgs('Shared::Filter::Dropdown'),\n  },\n};\n\nconst Template = (args) => ({\n  template: hbs`\n    <Shared::Filter::Dropdown\n      @applyFilters={{(do-nothing-function)}}\n      @discardFilters={{(do-nothing-function)}}\n      @buttonText={{this.buttonText}}\n    >\n      <:filter>\n        <Shared::BetaInput @label=\"Name\" @value={{this.name}} @onChange={{fn (mut this.name)}} />\n      </:filter>\n    </Shared::Filter::Dropdown>\n  `,\n  context: {\n    name: 'John Doe',\n    ...args,\n  },\n});\n\nexport const Base = Template.bind({});\nexport const WithCustomButtonText = Template.bind({});\nWithCustomButtonText.args = {\n  buttonText: 'A custom button name',\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Form::Dropdown\\n  @id={{this.elementId}}\\n  class=\\\"c-shared-filter-dropdown\\\"\\n  data-test-shared-filter-dropdown\\n  ...attributes\\n>\\n  <:triggerer as |toggleDropdown|>\\n    <Shared::Button\\n      @type=\\\"primary\\\"\\n      @text={{attune-name-with-count @filtersCount \\'Filter\\'}}\\n      @iconName=\\\"filter_list\\\"\\n      @size=\\\"small\\\"\\n      @onClick={{toggleDropdown}}\\n      data-test-shared-filter-dropdown-open-button\\n    />\\n  </:triggerer>\\n  <:content as |hide|>\\n    <div class=\\\"c-shared-filter-dropdown__layout\\\">\\n      <div class=\\\"c-shared-filter-dropdown__filters\\\">\\n        {{yield to=\\'filters\\'}}\\n      </div>\\n\\n      <div class=\\\"c-shared-filter-dropdown__footer\\\">\\n        <Shared::Button::BetaButton\\n          @type=\\\"secondary\\\"\\n          @text=\\\"Discard\\\"\\n          @action={{@discardFilters}}\\n          @withoutCallback={{true}}\\n          disabled={{@isDiscardFiltersDisabled}}\\n          data-test-shared-filter-dropdown-discard-button\\n        />\\n        <Shared::Button::BetaButton\\n          @type=\\\"primary\\\"\\n          @text=\\\"Apply filters\\\"\\n          @withoutCallback={{true}}\\n          @action={{chain-fn @applyFilters hide}}\\n          disabled={{@isApplyFiltersDisabled}}\\n          data-test-shared-filter-dropdown-apply-button\\n        />\\n      </div>\\n    </div>\\n  </:content>\\n</Form::Dropdown>\\n', { moduleName: 'client/shared/components/filter/dropdown/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FormCheckInputArgs {\n  size?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';\n  type?: 'editor';\n  value: unknown;\n  onChange: (value: unknown) => void;\n  isChecked: boolean;\n}\n\n@validateArguments\nexport default class FormCheckInputComponent extends Component<FormCheckInputArgs> {\n  static propTypes = {\n    size: PropTypes.oneOf(['extra-small', 'small', 'medium', 'large', 'extra-large']),\n    type: PropTypes.oneOf(['editor']),\n    value: PropTypes.any.isRequired,\n    onChange: PropTypes.func.isRequired,\n    isChecked: PropTypes.bool.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/Form/CheckInput',\n  component: 'Shared::Form::CheckInput',\n  args: {\n    ...getDefaultRequiredArgs('Shared::Form::CheckInput'),\n  },\n};\n\nexport const CheckInput = storyCreator('Shared::Form::CheckInput');\nexport const NotChecked = () => ({\n  template: hbs`<Shared::Form::CheckInput @value=\"mine\" @onChange={{fn (mut this.value)}} @isChecked={{eq this.value \"mine\"}} />`,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<input\\n  class={{get-classes-with-modifiers\\n    \\'c-shared-form-check-input\\'\\n    (or @size \\'medium\\')\\n    (if @type (concat \\'type-\\' @type) null)\\n  }}\\n  type=\\\"radio\\\"\\n  value={{@value}}\\n  checked={{@isChecked}}\\n  {{on \\'change\\' (fn @onChange @value)}}\\n  data-test-shared-form-check-input\\n  ...attributes\\n/>\\n\\n', { moduleName: 'client/shared/components/form/check-input/template.hbs' });\n","import type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport CollectionModel from 'client/data/models/collection';\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FormCreateCollectionItemArgs {\n  title: string;\n  confirmText?: string;\n  iconLabel?: string;\n  iconDefaultValue?: string;\n  nameLabel?: string;\n  namePlaceholder?: string;\n  withIcon?: boolean;\n  collection?: CollectionModel;\n  onCancel?: () => void;\n  onCreate: (parameters: { collection: CollectionModel; name: string; icon?: string }) => void;\n}\n\n@validateArguments\nexport default class FormCreateCollectionItemComponent extends Component<FormCreateCollectionItemArgs> {\n  static propTypes = {\n    title: PropTypes.string.isRequired,\n    confirmText: PropTypes.string,\n    iconLabel: PropTypes.string,\n    iconDefaultValue: PropTypes.string,\n    nameLabel: PropTypes.string,\n    namePlaceholder: PropTypes.string,\n    withIcon: PropTypes.bool,\n    onCancel: PropTypes.func,\n    onCreate: PropTypes.func.isRequired,\n    collection: PropTypes.instanceOf(CollectionModel),\n  };\n\n  @service lianaSession: LianaSessionService;\n\n  @tracked name: string | null = null;\n  // eslint-disable-next-line ember/no-tracked-properties-from-args\n  @tracked icon: string = this.args.iconDefaultValue;\n  @tracked collection: CollectionModel = this.args.collection || null;\n\n  private isValidField(field: string | null): boolean {\n    return field?.trim().length > 0;\n  }\n\n  get isConfirmDisabled() {\n    return (\n      !this.isValidField(this.name)\n      || !this.collection\n      || (this.args.withIcon && !this.isValidField(this.icon))\n    );\n  }\n\n  get availableCollections() {\n    return this.lianaSession.rendering?.collectionsAccessibleGlobally || [];\n  }\n\n  @action\n  handleCreate() {\n    if (this.isConfirmDisabled) {\n      return null;\n    }\n\n    return this.args.onCreate({\n      collection: this.collection,\n      name: this.name,\n      icon: this.args.withIcon ? this.icon : null,\n    });\n  }\n}\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/Form/CreateCollectionItem',\n  component: 'Shared::Form::CreateCollectionItem',\n  args: {\n    ...getDefaultRequiredArgs('Shared::Form::CreateCollectionItem'),\n  },\n};\n\nexport const CreateCollectionItem = storyCreator('Shared::Form::CreateCollectionItem');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  @size=\\\"sm\\\"\\n  class=\\\"c-shared-form-create-collection-item\\\"\\n  data-test-shared-form-create-collection-item-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header\\n    @title={{@title}}\\n    data-test-shared-form-create-collection-item-modal-header\\n  />\\n\\n  <Shared::Modal::Body\\n    class={{get-classes-with-modifiers\\n      \\'c-shared-form-create-collection-item__body\\'\\n      with-icon=@withIcon\\n    }}\\n    data-test-shared-form-create-collection-item-modal-body\\n  >\\n    {{#if @withIcon}}\\n      <Shared::BetaLabel\\n        @label={{or @iconLabel \\'Icon\\'}}\\n        @for=\\\"icon\\\"\\n        data-test-shared-form-create-collection-item-modal-form-icon-label\\n      >\\n        <Shared::BetaEmojiPicker\\n          @value={{this.icon}}\\n          @onChange={{fn (mut this.icon)}}\\n          @placeholder=\\\"Icon\\\"\\n          @popoverFullWidth={{false}}\\n          data-test-shared-form-create-collection-item-modal-form-emoji-picker\\n        />\\n      </Shared::BetaLabel>\\n    {{/if}}\\n\\n    <Shared::BetaLabel\\n      @label=\\\"Collection\\\"\\n      @for=\\\"name\\\"\\n      data-test-shared-form-create-collection-item-modal-form-collection-label\\n    >\\n      <Shared::BetaSelect\\n        @options={{this.availableCollections}}\\n        @iconPath=\\\"iconOrDefault\\\"\\n        @namePath=\\\"singularizedDisplayName\\\"\\n        @value={{one-way this.collection}}\\n        @onChange={{fn (mut this.collection)}}\\n        @withSearchInput={{true}}\\n        @placeholder=\\\"Select a collection\\\"\\n        @disabled={{if @collection true}}\\n        data-test-shared-form-create-collection-item-modal-form-collection\\n      />\\n    </Shared::BetaLabel>\\n\\n    <Shared::BetaLabel\\n      @label={{or @nameLabel \\'Name\\'}}\\n      @for=\\\"name\\\"\\n      data-test-shared-form-create-collection-item-modal-form-name-label\\n    >\\n      <Shared::BetaInput\\n        @value={{this.name}}\\n        @onChange={{fn (mut this.name)}}\\n        @onEnter={{this.handleCreate}}\\n        @placeholder={{or @namePlaceholder \\'Name\\'}}\\n        data-test-shared-form-create-collection-item-modal-form-name-input\\n      />\\n    </Shared::BetaLabel>\\n\\n  </Shared::Modal::Body>\\n\\n  <Shared::Modal::ActionFooter\\n    @confirmText={{or @confirmText \\'Create\\'}}\\n    @confirmType=\\\"editor\\\"\\n    @cancelText=\\\"Cancel\\\"\\n    @showCancelButton={{true}}\\n    @isConfirmDisabled={{this.isConfirmDisabled}}\\n    @onCancel={{@onCancel}}\\n    @onConfirm={{this.handleCreate}}\\n    data-test-shared-form-create-collection-item-modal-action-footer\\n  />\\n</Shared::Modal>\\n\\n', { moduleName: 'client/shared/components/form/create-collection-item-modal/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FormCreateNameAndIconModalArgs {\n  title: string;\n  confirmText?: string;\n  cancelText?: string;\n  iconLabel?: string;\n  iconPlaceholder?: string;\n  iconDefaultValue?: string;\n  nameLabel?: string;\n  namePlaceholder?: string;\n  onCancel?: () => void;\n  onCreate: (parameters: { name: string; icon: string }) => void;\n}\n\n@validateArguments\nexport default class FormCreateNameAndIconModalComponent extends Component<FormCreateNameAndIconModalArgs> {\n  static propTypes = {\n    title: PropTypes.string.isRequired,\n    confirmText: PropTypes.string,\n    cancelText: PropTypes.string,\n    iconLabel: PropTypes.string,\n    iconPlaceholder: PropTypes.string,\n    iconDefaultValue: PropTypes.string,\n    nameLabel: PropTypes.string,\n    namePlaceholder: PropTypes.string,\n    onCancel: PropTypes.func,\n    onCreate: PropTypes.func.isRequired,\n  };\n\n  @tracked name: string | null = null;\n  @tracked icon: string = this.args.iconDefaultValue ?? '📁';\n\n  private isValidField(field: string | null): boolean {\n    return field?.trim().length > 0;\n  }\n\n  get isConfirmDisabled() {\n    return !this.isValidField(this.name) || !this.isValidField(this.icon);\n  }\n\n  @action\n  handleCreate() {\n    if (this.isConfirmDisabled) {\n      return null;\n    }\n    return this.args.onCreate({ name: this.name, icon: this.icon });\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/Form/CreateNameAndIconModal',\n  component: 'Shared::Form::CreateNameAndIconModal',\n  argsTypes: {\n    title: {\n      displayName: 'Title',\n      table: {\n        category: 'properties',\n      },\n    },\n    iconLabel: {\n      displayName: 'Icon Label',\n      value: 'Icon',\n      table: {\n        category: 'properties',\n      },\n    },\n    iconPlaceholder: {\n      displayName: 'Icon Placeholder',\n      value: 'Select an icon',\n      table: {\n        category: 'properties',\n      },\n    },\n    iconDefaultValue: {\n      displayName: 'Icon Default Value',\n      value: '🌝',\n      table: {\n        category: 'properties',\n      },\n    },\n    nameLabel: {\n      displayName: 'Name Label',\n      value: 'Name',\n      table: {\n        category: 'properties',\n      },\n    },\n    namePlaceholder: {\n      displayName: 'Name Placeholder',\n      value: 'Enter a name',\n      table: {\n        category: 'properties',\n      },\n    },\n    confirmText: {\n      displayName: 'Confirm Text',\n      value: 'Create',\n      table: {\n        category: 'properties',\n      },\n    },\n    cancelText: {\n      displayName: 'Cancel Text',\n      value: 'Cancel',\n      table: {\n        category: 'properties',\n      },\n    },\n    onCreate: {\n      action: 'onCreate',\n      description: 'Action to save the icon and name',\n      table: {\n        category: 'Actions',\n      },\n    },\n    onClose: {\n      action: 'onCancel',\n      description: 'Action to close the modal',\n      table: {\n        category: 'Actions',\n      },\n    },\n  },\n  args: {\n    title: 'New Folder',\n  },\n};\n\nexport const CreateNameAndIconModal = (args) => {\n  return {\n    template: hbs`\n      <Shared::PortalFor @name=\"emoji-picker\" />\n      <Shared::Form::CreateNameAndIconModal\n        @title={{this.title}}\n        @iconLabel={{this.iconLabel}}\n        @iconPlaceholder={{this.iconPlaceholder}}\n        @iconDefaultValue={{this.iconDefaultValue}}\n        @nameLabel={{this.nameLabel}}\n        @namePlaceholder={{this.namePlaceholder}}\n        @confirmText={{this.confirmText}}\n        @cancelText={{this.cancelText}}\n        @onCreate={{(do-nothing-function)}}\n        @onCancel={{(do-nothing-function)}}\n      />\n    `,\n    context: args,\n  };\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  @size=\\\"sm\\\"\\n  class=\\\"c-shared-form-create-name-and-icon-modal\\\"\\n  data-test-shared-form-create-name-and-icon-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header\\n    @title={{@title}}\\n    data-test-shared-form-create-name-and-icon-modal-header\\n  />\\n\\n  <Shared::Modal::Body\\n    class=\\\"c-shared-form-create-name-and-icon-modal__body\\\"\\n    data-test-shared-form-create-name-and-icon-modal-body\\n  >\\n    <Shared::BetaLabel\\n      @label={{or @iconLabel \\'Icon\\'}}\\n      @for=\\\"icon\\\"\\n      data-test-shared-form-create-name-and-icon-modal-form-icon-label\\n    >\\n      <Shared::BetaEmojiPicker\\n        @value={{this.icon}}\\n        @onChange={{fn (mut this.icon)}}\\n        @placeholder={{or @iconPlaceholder \\'Icon\\'}}\\n        @popoverFullWidth={{false}}\\n        data-test-shared-form-create-name-and-icon-modal-form-emoji-picker\\n      />\\n    </Shared::BetaLabel>\\n\\n    <Shared::BetaLabel\\n      @label={{or @nameLabel \\'Name\\'}}\\n      @for=\\\"name\\\"\\n      data-test-shared-form-create-name-and-icon-modal-form-name-label\\n    >\\n      <Shared::BetaInput\\n        @value={{this.name}}\\n        @onChange={{fn (mut this.name)}}\\n        @onEnter={{this.handleCreate}}\\n        @placeholder={{or @namePlaceholder \\'Name\\'}}\\n        data-test-shared-form-create-name-and-icon-modal-form-name-input\\n        {{autofocus nestedSelector=\\'.c-beta-input\\'}}\\n      />\\n    </Shared::BetaLabel>\\n\\n  </Shared::Modal::Body>\\n\\n  <Shared::Modal::ActionFooter\\n    @confirmText={{or @confirmText \\'Create\\'}}\\n    @confirmType=\\\"editor\\\"\\n    @cancelText={{or @cancelText \\'Cancel\\'}}\\n    @showCancelButton={{true}}\\n    @isConfirmDisabled={{this.isConfirmDisabled}}\\n    @onCancel={{@onCancel}}\\n    @onConfirm={{this.handleCreate}}\\n    data-test-shared-form-create-name-and-icon-modal-action-footer\\n  />\\n</Shared::Modal>\\n\\n', { moduleName: 'client/shared/components/form/create-name-and-icon-modal/template.hbs' });\n","import type { RangeDate } from 'client/shared/components/form/date-range-picker/component';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport moment from 'moment-timezone';\n\nimport validateArguments from 'client/decorators/validate';\nimport { DEFAULT_DATEONLY_FORMAT } from 'client/utils/dates-default-format-variables';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface FormDateRangeArgs {\n  value: RangeDate | null;\n  onChange: (value: RangeDate | null) => void;\n}\n\n@validateArguments\nexport default class FormDateRangeComponent extends Component<FormDateRangeArgs> {\n  static propTypes = {\n    value: PropTypes.shape({\n      from: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.string]),\n      to: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.string]),\n    }),\n    onChange: PropTypes.func.isRequired,\n  };\n\n  @tracked shouldDisplayPicker = false;\n\n  get valueToDisplay() {\n    return this.args.value?.from && this.args.value?.to\n      ? `${\n          this.args.value.from ? moment(this.args.value.from).format(DEFAULT_DATEONLY_FORMAT) : ''\n        } to ${\n          this.args.value.to ? moment(this.args.value.to).format(DEFAULT_DATEONLY_FORMAT) : ''\n        }`\n      : null;\n  }\n\n  @action\n  onValueChange(value: { from: Date; to: Date } | null) {\n    this.args.onChange(value);\n    this.shouldDisplayPicker = false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/Form/DateRange',\n  component: 'Shared::Form::DateRangeInput',\n  argsType: {},\n  args: {\n    value: {\n      from: '2021-01-01',\n      to: '2021-01-31',\n    },\n    onChange: () => {},\n  },\n};\n\nexport const Base = () => ({\n  template: hbs`\n    <Shared::PortalFor @name=\"widget-modal\" />\n    <Shared::Form::DateRangeInput @value={{this.value}} @onChange={{fn (mut this.value)}} />\n  `,\n  context: {\n    value: {\n      from: '2021-01-01',\n      to: '2021-01-31',\n    },\n    onChange: () => {},\n  },\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#let (generate-guid) as |inputId|}}\\n  <Shared::BetaInput\\n    @value={{this.valueToDisplay}}\\n    @inputId={{inputId}}\\n    @iconName=\\\"date_range\\\"\\n    @placeholder={{or @placeholder \\'Select a date range\\'}}\\n    readonly={{true}}\\n    class=\\\"c-shared-form-date-range\\\"\\n    data-test-shared-form-date-range\\n    autocomplete=\\\"off\\\"\\n    {{on \\'click\\' (stop-propagation (fn (mut this.shouldDisplayPicker) true))}}\\n    ...attributes\\n  />\\n  {{#if this.shouldDisplayPicker}}\\n    <Shared::Form::DateRangePicker\\n      @triggererId={{inputId}}\\n      @value={{@value}}\\n      @onChange={{this.onValueChange}}\\n      {{forest-on-click-outside\\n        (fn (mut this.shouldDisplayPicker) false)\\n        exceptSelector=\\'.easepick-wrapper\\'\\n      }}\\n    />\\n  {{/if}}\\n{{/let}}\\n', { moduleName: 'client/shared/components/form/date-range-input/template.hbs' });\n","import type { IEventDetail } from '@easepick/core/dist/types';\nimport type PopupPositionerSharedBusinessService from 'client/shared/services/popup-positioner';\n\nimport { AmpPlugin } from '@easepick/amp-plugin';\nimport { easepick } from '@easepick/core';\nimport { DateTime } from '@easepick/datetime';\nimport { PresetPlugin } from '@easepick/preset-plugin';\nimport { RangePlugin } from '@easepick/range-plugin';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport moment from 'moment-timezone';\n\nimport validateArguments from 'client/decorators/validate';\nimport {\n  transformDateIntoBrowsersTimezone,\n  transformDateIntoUsersTimezone,\n} from 'client/shared/components/beta-input-date/component';\nimport { DEFAULT_DATEONLY_FORMAT } from 'client/utils/dates-default-format-variables';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nconst Easepick = easepick.create;\n\nexport interface RangeDate<DateType = Date | string> {\n  from?: DateType;\n  to?: DateType;\n}\n\ninterface FormDateRangePickerArgs {\n  value: RangeDate | null;\n  triggererId: string;\n  format?: string;\n  onChange: (value: RangeDate | null) => void;\n}\n\nconst STATIC_DATE_PICKER_CONFIG = {\n  css: ['/public/styles/easepick-calendar.css'],\n  format: DEFAULT_DATEONLY_FORMAT,\n  autoApply: false,\n  inline: true,\n  plugins: [AmpPlugin, RangePlugin, PresetPlugin],\n  AmpPlugin: {\n    dropdown: {\n      months: true,\n      years: true,\n    },\n  },\n  RangePlugin: {\n    tooltip: false,\n  },\n  PresetPlugin: {\n    position: 'right',\n  },\n  zIndex: 1000,\n  locale: {\n    cancel: 'Clear',\n  },\n};\n\n@validateArguments\nexport default class FormDateRangePickerComponent extends Component<FormDateRangePickerArgs> {\n  static propTypes = {\n    value: PropTypes.shape({\n      from: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.string]),\n      to: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.string]),\n    }),\n    triggererId: PropTypes.string.isRequired,\n    format: PropTypes.string,\n    onChange: PropTypes.func.isRequired,\n  };\n\n  @service('shared/popup-positioner') private popupPositioner: PopupPositionerSharedBusinessService;\n\n  private datePicker: easepick.Core;\n\n  @action\n  public async initializeDatePicker(element: HTMLElement) {\n    this.createDatePicker(element);\n\n    if (this.args.value?.from && this.args.value?.to) {\n      const startDate = transformDateIntoBrowsersTimezone(this.args.value.from);\n      const endDate = transformDateIntoBrowsersTimezone(this.args.value.to);\n      this.datePicker.setDateRange(startDate, endDate);\n      this.datePicker.gotoDate(startDate);\n    }\n\n    this.datePicker.show();\n\n    this.popupPositioner.positionPopupBelowElement(\n      this,\n      this.datePicker.ui.container,\n      document.getElementById(this.args.triggererId),\n      {\n        topVariable: '--form-date-range-picker-top',\n        leftVariable: '--form-date-range-picker-left',\n        visibilityVariable: '--form-date-range-picker-visibility',\n      },\n    );\n  }\n\n  private createDatePicker(element: HTMLElement) {\n    const date = new DateTime(moment().startOf('day').format('YYYY-MM-DD'));\n    const thisMonth = () => {\n      const d1 = date.clone();\n      d1.setDate(1);\n\n      const d2 = new Date(date.getFullYear(), date.getMonth() + 1, 0);\n\n      return [new DateTime(d1), new DateTime(d2)];\n    };\n\n    const lastMonth = () => {\n      const d1 = date.clone();\n      d1.setDate(1);\n      d1.setMonth(d1.getMonth() - 1);\n\n      const d2 = new Date(date.getFullYear(), date.getMonth(), 0);\n\n      return [new DateTime(d1), new DateTime(d2)];\n    };\n\n    const customPreset = {\n      Today: [date.clone(), date.clone()],\n      Yesterday: [date.clone().subtract(1, 'day'), date.clone().subtract(1, 'day')],\n      'Last 7 days': [date.clone().subtract(6, 'day'), date.clone()],\n      'Last 30 days': [date.clone().subtract(29, 'day'), date.clone()],\n      'This month': thisMonth(),\n      'Last month': lastMonth(),\n      'This quarter': [\n        new DateTime(moment(date.getTime()).startOf('quarter').format('YYYY-MM-DD')),\n        new DateTime(moment(date.getTime()).endOf('quarter').format('YYYY-MM-DD')),\n      ],\n      'This year': [\n        new DateTime(moment(date.getTime()).startOf('year').format('YYYY-MM-DD')),\n        new DateTime(moment(date.getTime()).endOf('year').format('YYYY-MM-DD')),\n      ],\n    };\n\n    this.datePicker = new Easepick({\n      ...STATIC_DATE_PICKER_CONFIG,\n      PresetPlugin: {\n        ...STATIC_DATE_PICKER_CONFIG.PresetPlugin,\n        customPreset,\n      },\n      element,\n      format: this.args.format || DEFAULT_DATEONLY_FORMAT,\n      setup: (picker) => {\n        picker.on('select', (event: IEventDetail & { detail: { start: Date; end: Date } | null }) =>\n          this.onValueChange(event.detail),\n        );\n        picker.on('click', (event: IEventDetail) => {\n          if (picker.isCancelButton(event.target)) {\n            this.onValueChange(null);\n          }\n        });\n      },\n    });\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.datePicker?.destroy();\n  }\n\n  @action\n  onValueChange(value: { start: Date; end: Date } | null) {\n    this.args.onChange(\n      value && {\n        from: transformDateIntoUsersTimezone(value.start, 0, 0, 0),\n        to: transformDateIntoUsersTimezone(value.end, 23, 59, 59, 999),\n      },\n    );\n  }\n}\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/Form/DateRangePicker',\n  component: 'Shared::Form::DateRangePicker',\n  args: {\n    ...getDefaultRequiredArgs('Shared::Form::DateRangePicker'),\n  },\n};\n\nexport const DateRangePicker = storyCreator('Shared::Form::DateRangePicker');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::PortalContent @for=\\\"widget-modal\\\">\\n  {{! Hidden element but required to place the calendar }}\\n  <div\\n    class=\\\"c-shared-form-date-range-picker\\\"\\n    data-test-shared-form-date-range-picker\\n    ...attributes\\n    {{did-insert this.initializeDatePicker}}\\n  >\\n  </div>\\n</Shared::PortalContent>\\n', { moduleName: 'client/shared/components/form/date-range-picker/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  ...attributes\\n  class={{concat\\n    (get-classes-with-modifiers\\n      \\'c-radio-input__circle\\'\\n      (if @active \\'active\\' \\'inactive\\')\\n      (if @disabled \\'disabled\\')\\n      (if @type (concat \\'type-\\' @type) null)\\n    )\\n    \\' \\'\\n    @inputClass\\n  }}\\n>\\n  <div\\n    class={{get-classes-with-modifiers\\n      \\'c-radio-input__bullet\\'\\n      (if @active \\'active\\' \\'inactive\\')\\n      (if @disabled \\'disabled\\')\\n    }}\\n  ></div>\\n</div>\\n\\n{{! template-lint-disable require-input-label }}\\n<input\\n  class=\\\"c-radio-input__input\\\"\\n  type=\\\"radio\\\"\\n  name={{@name}}\\n  value={{@value}}\\n  checked={{@active}}\\n  disabled={{@disabled}}\\n  {{on \\'change\\' (fn @onChange @value)}}\\n  data-test-shared-form-radio-input\\n/>\\n', { moduleName: 'client/shared/components/form/radio-input/template.hbs' });\n","import type AssetMapService from 'asset-map-resolver/services/asset-map';\n\nimport { action } from '@ember/object';\nimport { debounce } from '@ember/runloop';\nimport { service } from '@ember/service';\n\nimport BetaRadioButtonComponent from 'client/shared/components/beta-radio-button/component';\n\nexport default class FormRadioButtonComponent extends BetaRadioButtonComponent {\n  @service assetMap: AssetMapService;\n\n  get columnCount() {\n    if (!this.args.columnCount) return null;\n    return `column-count-${this.args.columnCount}`;\n  }\n\n  @action\n  getIconPath(logoUrl: string) {\n    return this.assetMap.resolve(logoUrl);\n  }\n\n  @action\n  handleOnHover(value: unknown) {\n    if (this.args.onHover) {\n      debounce(this, this.args.onHover, value, 125);\n    }\n  }\n}\n","import { compileTemplate } from '@ember/template-compilation';\nimport { getStoryTemplate } from 'stories/story-creator';\n\nimport matIconList from 'client/shared/components/data-display/beta-icon/mat-icon-list';\n\nconst DEFAULT_ARGS = {\n  options: [\n    { name: 'Option 1', value: 'option1', description: 'Description 1' },\n    { name: 'Option 2', value: 'option2', description: 'Description 2' },\n    { name: 'Option 3', value: 'option3', description: 'Description 3' },\n    { name: 'Option 4', value: 'option4', description: 'Description 4', disabled: true },\n  ],\n  value: 'option2',\n  namePath: 'name',\n  valuePath: 'value',\n  disabledPath: 'disabled',\n  descriptionPath: 'description',\n};\n\nexport default {\n  title: 'Shared/Form/SelectCards',\n  component: 'Shared::Form::SelectCards',\n  args: DEFAULT_ARGS,\n};\n\nconst getArgs = (args, mapOptions, newProps) => {\n  return {\n    ...DEFAULT_ARGS,\n    ...args,\n    value: {},\n    onChange: undefined,\n    options: DEFAULT_ARGS.options.map((option, index) => ({\n      ...option,\n      ...mapOptions(option, index),\n    })),\n    ...newProps,\n  };\n};\n\nexport const SelectCards = function (args) {\n  const fullArgs = {\n    ...DEFAULT_ARGS,\n    ...args,\n    value: {},\n    onChange: undefined,\n  };\n\n  const templateCode = getStoryTemplate('Shared::Form::SelectCards', fullArgs);\n  fullArgs.value = args.value || DEFAULT_ARGS.value;\n  return {\n    templateCode,\n    template: compileTemplate(templateCode),\n    context: fullArgs,\n  };\n};\n\nexport const withEmojis = function (args) {\n  const fullArgs = getArgs(args, (option, index) => ({\n    description: null,\n    emoji: ['😀', '😃', '😄', '😁'][index],\n  }));\n\n  const templateCode = getStoryTemplate('Shared::Form::SelectCards', fullArgs);\n  fullArgs.value = args.value || DEFAULT_ARGS.value;\n  return {\n    templateCode,\n    template: compileTemplate(templateCode),\n    context: fullArgs,\n  };\n};\n\nexport const withMaterialIcons = function (args) {\n  const fullArgs = getArgs(args, (option, index) => ({\n    description: null,\n    iconName: matIconList[index * 30],\n  }));\n\n  const templateCode = getStoryTemplate('Shared::Form::SelectCards', fullArgs);\n  fullArgs.value = args.value || DEFAULT_ARGS.value;\n  return {\n    templateCode,\n    template: compileTemplate(templateCode),\n    context: fullArgs,\n  };\n};\n\nexport const withImageAssets = function (args) {\n  const fullArgs = getArgs(args, (option, index) => ({\n    description: null,\n    imageUrl: ['mariadb.svg', 'fastify-light.svg', 'laravel-light.svg', 'nestjs-light.svg'].map(\n      (url) => `img/onboarding/${url}`,\n    )[index],\n  }));\n\n  const templateCode = getStoryTemplate('Shared::Form::SelectCards', fullArgs);\n  fullArgs.value = args.value || DEFAULT_ARGS.value;\n  return {\n    templateCode,\n    template: compileTemplate(templateCode),\n    context: fullArgs,\n  };\n};\n\nexport const noDecorations = function (args) {\n  const fullArgs = getArgs(args, () => ({\n    description: null,\n  }));\n  const templateCode = getStoryTemplate('Shared::Form::SelectCards', fullArgs);\n  fullArgs.value = args.value || DEFAULT_ARGS.value;\n  return {\n    templateCode,\n    template: compileTemplate(templateCode),\n    context: fullArgs,\n  };\n};\n\nexport const twoColumns = function (args) {\n  const fullArgs = getArgs(\n    args,\n    (option, index) => ({\n      description: null,\n      imageUrl: ['mariadb.svg', 'fastify-light.svg', 'laravel-light.svg', 'nestjs-light.svg'].map(\n        (url) => `img/onboarding/${url}`,\n      )[index],\n    }),\n    { columnCount: 2 },\n  );\n\n  const templateCode = getStoryTemplate('Shared::Form::SelectCards', fullArgs);\n  fullArgs.value = args.value || DEFAULT_ARGS.value;\n  return {\n    templateCode,\n    template: compileTemplate(templateCode),\n    context: fullArgs,\n  };\n};\n\nexport const threeColumns = function (args) {\n  const fullArgs = getArgs(\n    args,\n    (option, index) => ({\n      description: null,\n      emoji: ['😀', '😃', '😄', '😁'][index],\n    }),\n    { columnCount: 3 },\n  );\n  const templateCode = getStoryTemplate('Shared::Form::SelectCards', fullArgs);\n  fullArgs.value = args.value || DEFAULT_ARGS.value;\n  return {\n    templateCode,\n    template: compileTemplate(templateCode),\n    context: fullArgs,\n  };\n};\n\nexport const checkInput = function (args) {\n  const fullArgs = getArgs(\n    args,\n    (option, index) => ({\n      description: null,\n      emoji: ['😀', '😃', '😄', '😁'][index],\n    }),\n    { multiple: true },\n  );\n\n  const templateCode = getStoryTemplate('Shared::Form::SelectCards', fullArgs);\n  fullArgs.value = args.value || DEFAULT_ARGS.value;\n  return {\n    templateCode,\n    template: compileTemplate(templateCode),\n    context: fullArgs,\n  };\n};\n\nexport const cardVariantTall = function (args) {\n  const fullArgs = getArgs(\n    args,\n    (option, index) => ({\n      description: null,\n      emoji: ['😀', '😃', '😄', '😁'][index],\n    }),\n    { cardVariant: 'tall', columnCount: 3 },\n  );\n  const templateCode = getStoryTemplate('Shared::Form::SelectCards', fullArgs);\n  fullArgs.value = args.value || DEFAULT_ARGS.value;\n  return {\n    templateCode,\n    template: compileTemplate(templateCode),\n    context: fullArgs,\n  };\n};\n\nexport const cardVariantTallWithDesc = function (args) {\n  const fullArgs = getArgs(\n    args,\n    (option, index) => ({\n      iconName: matIconList[index * 30],\n    }),\n    { cardVariant: 'tall', columnCount: 3 },\n  );\n  const templateCode = getStoryTemplate('Shared::Form::SelectCards', fullArgs);\n  fullArgs.value = args.value || DEFAULT_ARGS.value;\n  return {\n    templateCode,\n    template: compileTemplate(templateCode),\n    context: fullArgs,\n  };\n};\n\nexport const disabled = function (args) {\n  const fullArgs = getArgs(\n    args,\n    (option, index) => ({\n      iconName: matIconList[index * 30],\n    }),\n    { cardVariant: 'tall', columnCount: 3, disabled: true },\n  );\n  const templateCode = getStoryTemplate('Shared::Form::SelectCards', fullArgs);\n  fullArgs.value = args.value || DEFAULT_ARGS.value;\n  return {\n    templateCode,\n    template: compileTemplate(templateCode),\n    context: fullArgs,\n  };\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers\\n    \\'c-shared-form-select-cards\\'\\n    (or @display \\'inline\\')\\n    this.columnCount\\n    (if @type (concat \\'type-\\' @type) null)\\n    (if @cardVariant (concat \\'variant-\\' @cardVariant) null)\\n  }}\\n  data-test-shared-form-select-cards\\n  ...attributes\\n>\\n  {{#each this.optionsMap as |option|}}\\n    {{#let (and @shouldHideDetails (not (eq option.value @value))) as |isDetailsHidden|}}\\n      <label\\n        class=\\\"{{get-classes-with-modifiers\\n            \\'c-shared-form-select-cards__item\\'\\n            @cardVariant\\n            disabled=option.disabled\\n            active=(eq option.value @value)\\n            inactive=(not-eq option.value @value)\\n            align-center=(or (not option.description) isDetailsHidden)\\n          }}\\n          {{@itemClass}}\\\"\\n        {{on \\'mouseenter\\' (fn this.handleOnHover option.value)}}\\n        {{on \\'mouseleave\\' (fn this.handleOnHover @value)}}\\n        data-test-shared-form-select-cards-item={{or option.name option.value}}\\n      >\\n        {{#let (or option.id (generate-guid)) as |optionId|}}\\n          {{#if option.iconName}}\\n            <div\\n              class={{get-classes-with-modifiers\\n                \\'c-shared-form-select-cards__item-icon\\'\\n                @display\\n                @cardVariant\\n                disabled=option.disabled\\n              }}\\n              data-test-shared-form-select-cards-item-material-icon\\n            >\\n              <Shared::DataDisplay::BetaIcon @iconName={{option.iconName}} @size=\\\"tiny\\\" />\\n            </div>\\n          {{/if}}\\n          {{#if option.imageUrl}}\\n            <img\\n              class={{get-classes-with-modifiers\\n                \\'c-shared-form-select-cards__item-image\\'\\n                @display\\n                @cardVariant\\n                disabled=option.disabled\\n              }}\\n              src={{compute (fn this.getIconPath option.imageUrl)}}\\n              alt={{option.name}}\\n              data-test-shared-form-select-cards-item-image\\n            />\\n          {{/if}}\\n          {{#if option.emoji}}\\n            <div\\n              class={{get-classes-with-modifiers\\n                \\'c-shared-form-select-cards__item-emoji\\'\\n                @display\\n                @cardVariant\\n                disabled=option.disabled\\n              }}\\n              data-test-shared-form-select-cards-item-emoji\\n            >\\n              {{option.emoji}}\\n            </div>\\n          {{/if}}\\n          <div\\n            class={{get-classes-with-modifiers\\n              \\'c-shared-form-select-cards__item-label\\'\\n              @cardVariant\\n              as-grid=this.isGrid\\n              as-vertical=this.isVertical\\n            }}\\n            for={{optionId}}\\n            data-test-option-value={{stringify option.value}}\\n          >\\n            <span\\n              class={{get-classes-with-modifiers\\n                \\'c-shared-form-select-cards__item-name\\'\\n                @textClass\\n                @cardVariant\\n                disabled=option.disabled\\n              }}\\n              data-test-shared-form-select-cards-item-name\\n            >\\n              <span data-test-shared-form-select-cards-item-name-text>\\n                {{option.name}}\\n              </span>\\n\\n              {{#if option.isRestricted}}\\n                <Shared::DataDisplay::BetaIcon\\n                  @iconName=\\\"lock\\\"\\n                  @size=\\\"tiny\\\"\\n                  @tooltipText=\\\"This feature is restricted\\\"\\n                  class=\\\"c-shared-form-select-cards__item-restricted\\\"\\n                  data-test-shared-form-select-cards-item-restricted\\n                />\\n              {{/if}}\\n            </span>\\n            {{#unless isDetailsHidden}}\\n              {{#if option.description}}\\n                <span\\n                  class={{get-classes-with-modifiers\\n                    \\'c-shared-form-select-cards__item-description\\'\\n                    @textClass\\n                    @cardVariant\\n                    disabled=option.disabled\\n                  }}\\n                  data-test-shared-form-select-cards-item-description\\n                >\\n                  {{option.description}}\\n                </span>\\n              {{/if}}\\n              {{#if option.link}}\\n                <Shared::Navigation::BetaLinkTo\\n                  class={{get-classes-with-modifiers\\n                    \\'c-shared-form-select-cards__item-link\\'\\n                    @textClass\\n                    disabled=option.disabled\\n                  }}\\n                  @type=\\\"primary\\\"\\n                  @href={{option.link}}\\n                  @target=\\\"_blank\\\"\\n                  @underline={{false}}\\n                  @iconName=\\\"east\\\"\\n                  @size=\\\"tiny\\\"\\n                  @text=\\\"Discover\\\"\\n                  data-test-shared-form-select-cards-item-link\\n                />\\n              {{/if}}\\n            {{/unless}}\\n          </div>\\n          <span\\n            class={{get-classes-with-modifiers\\n              \\'c-shared-form-select-cards__item-input\\'\\n              @cardVariant\\n              @textClass\\n              disabled=option.disabled\\n            }}\\n          >\\n            {{#if @multiple}}\\n              <Shared::Form::CheckInput\\n                @size={{(or @checkInputSize \\'medium\\')}}\\n                @value={{option.value}}\\n                @isChecked={{eq option.value @value}}\\n                @onChange={{this.selectValue}}\\n                @type={{@type}}\\n                disabled={{option.disabled}}\\n                id={{optionId}}\\n                name={{concat this.name \\'-\\' option.value}}\\n                data-test-shared-form-select-cards-item-input\\n              />\\n            {{else}}\\n              <Shared::Form::RadioInput\\n                @value={{option.value}}\\n                @active={{eq option.value @value}}\\n                @onChange={{this.selectValue}}\\n                @disabled={{option.disabled}}\\n                @type={{@type}}\\n                id={{optionId}}\\n                @name={{this.name}}\\n                data-test-shared-form-select-cards-item-input\\n                data-test-shared-form-select-cards-item-input-value={{option.value}}\\n              />\\n            {{/if}}\\n          </span>\\n        {{/let}}\\n      </label>\\n    {{/let}}\\n  {{/each}}\\n  {{did-update this.initDefaultValue @value @options}}\\n</div>\\n', { moduleName: 'client/shared/components/form/select-cards/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<ul class=\\\"c-beta-tabs c-beta-tabs--{{or @size \\'large\\'}}\\\" data-test-beta-tabs ...attributes>\\n  {{#each @items as |item|}}\\n    {{#let (or item.value item) (or item.label item) as |value label|}}\\n      {{#if item.disabled}}\\n        <li\\n          class=\\\"c-beta-tabs__item c-beta-tabs__item--disabled\\n            {{if @isFullWidth \\'c-beta-tabs__item--full-width\\'}}\\\"\\n        >\\n          {{label}}\\n        </li>\\n      {{else}}\\n        <li\\n          class=\\\"c-beta-tabs__item\\n            {{if @isFullWidth \\'c-beta-tabs__item--full-width\\'}}\\n            {{if\\n              (eq @selected value)\\n              (concat \\'c-beta-tabs__item--active-\\' (or @color \\'info\\'))\\n              \\'c-beta-tabs__item--inactive\\'\\n            }}\\\"\\n          {{on \\'click\\' (fn @onSelect value)}}\\n          role=\\\"button\\\"\\n          data-test-beta-tabs-option={{value}}\\n          data-test-beta-tabs-option-selected={{eq @selected value}}\\n        >\\n          {{label}}\\n        </li>\\n\\n      {{/if}}\\n\\n    {{/let}}\\n  {{/each}}\\n</ul>\\n', { moduleName: 'client/shared/components/form/tabs/template.hbs' });\n","import { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface BetaSwitchButtonArgs {\n  value?: boolean;\n  onChange: (value: boolean) => void;\n  disabled: boolean;\n  inactive: boolean;\n  size: 'sm' | 'md' | 'lg' | 'xl' | 'xxl';\n  inputId?: string;\n}\n\n@validateArguments\nexport default class BetaSwitchButtonComponent extends Component<BetaSwitchButtonArgs> {\n  static propTypes = {\n    value: PropTypes.bool,\n    onChange: PropTypes.func,\n    disabled: PropTypes.bool,\n    inactive: PropTypes.bool,\n    size: PropTypes.oneOf(['sm', 'md', 'lg', 'xl', 'xxl']),\n  };\n\n  get inputId() {\n    return this.args.inputId || guidFor(this);\n  }\n\n  get isOn() {\n    return !!this.args.value;\n  }\n\n  get isOff() {\n    return this.args.value === false;\n  }\n\n  @action\n  handleClick(event: MouseEvent) {\n    if (event.target instanceof HTMLInputElement) {\n      this.handleChange(event.target.checked);\n    } else {\n      event.preventDefault();\n      document.getElementById(this.inputId).click();\n    }\n    event.stopPropagation();\n  }\n\n  handleChange(value: boolean) {\n    if (this.args.disabled || this.args.inactive) {\n      return false;\n    }\n\n    this.args.onChange(value);\n\n    return false;\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/Form/Toggle',\n  component: 'Shared::Form::Toggle',\n  args: {\n    ...getDefaultRequiredArgs('Shared::Form::Toggle'),\n  },\n};\n\nexport const Toggle = (args) => ({\n  context: args,\n  template: hbs`<Shared::Form::Toggle\n    @value={{this.value}}\n    @onChange={{fn (mut this.value)}}\n  />`,\n});\n\nexport const AllTypes = (args) => ({\n  context: args,\n  template: hbs`\n  <div style=\"display: flex; flex-direction: column; gap:4px;\">\n    <div style=\"display: flex; flex-direction: row; gap: 10px;\">\n      <Shared::Form::Toggle\n        @value={{true}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"sm\"\n      />\n      <Shared::Form::Toggle\n        @value={{true}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"md\"\n      />\n      <Shared::Form::Toggle\n        @value={{true}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"lg\"\n      />\n      <Shared::Form::Toggle\n        @value={{true}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"xl\"\n      />\n      <Shared::Form::Toggle\n        @value={{true}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"xxl\"\n      />\n    </div>\n    <div style=\"display: flex; flex-direction: row; gap: 10px;\">\n      <Shared::Form::Toggle\n        @value={{false}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"sm\"\n      />\n      <Shared::Form::Toggle\n        @value={{false}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"md\"\n      />\n      <Shared::Form::Toggle\n        @value={{false}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"lg\"\n      />\n      <Shared::Form::Toggle\n        @value={{false}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"xl\"\n      />\n      <Shared::Form::Toggle\n        @value={{false}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"xxl\"\n      />\n    </div>\n    <div style=\"display: flex; flex-direction: row; gap: 10px;\">\n      <Shared::Form::Toggle\n        @disabled={{true}}\n        @value={{true}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"sm\"\n      />\n      <Shared::Form::Toggle\n        @disabled={{true}}\n        @value={{true}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"md\"\n      />\n      <Shared::Form::Toggle\n        @disabled={{true}}\n        @value={{true}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"lg\"\n      />\n      <Shared::Form::Toggle\n        @disabled={{true}}\n        @value={{true}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"xl\"\n      />\n      <Shared::Form::Toggle\n        @disabled={{true}}\n        @value={{true}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"xxl\"\n      />\n    </div>\n    <div style=\"display: flex; flex-direction: row; gap: 10px;\">\n      <Shared::Form::Toggle\n        @disabled={{true}}\n        @value={{false}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"sm\"\n      />\n      <Shared::Form::Toggle\n        @disabled={{true}}\n        @value={{false}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"md\"\n      />\n      <Shared::Form::Toggle\n        @disabled={{true}}\n        @value={{false}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"lg\"\n      />\n      <Shared::Form::Toggle\n        @disabled={{true}}\n        @value={{false}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"xl\"\n      />\n      <Shared::Form::Toggle\n        @disabled={{true}}\n        @value={{false}}\n        @onChange={{(do-nothing-function)}}\n        @size=\"xxl\"\n      />\n    </div>\n  </div>\n    `,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers\\n    \\'c-shared-form-toggle\\'\\n    (or @size \\'md\\')\\n    on=this.isOn\\n    off=this.isOff\\n    disabled=@disabled\\n    inactive=@inactive\\n  }}\\n  data-test-shared-form-toggle\\n  role=\\\"button\\\"\\n  ...attributes\\n  {{on \\'click\\' this.handleClick}}\\n>\\n  <span\\n    class={{get-classes-with-modifiers \\'c-shared-form-toggle__circle\\' on=this.isOn off=this.isOff}}\\n  >\\n  </span>\\n\\n  {{! template-lint-disable no-nested-interactive}}\\n  <input\\n    type=\\\"checkbox\\\"\\n    checked={{@value}}\\n    disabled={{@disabled}}\\n    id={{this.inputId}}\\n    class=\\\"c-shared-form-toggle__input\\\"\\n    {{on \\'click\\' this.handleClick}}\\n    data-test-shared-form-toggle-input\\n  />\\n</div>\\n', { moduleName: 'client/shared/components/form/toggle/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport { isValidYouTubeUrl } from 'client/utils/youtube-url-validator';\n\ninterface Args {\n  onConfirm: (url: string) => void;\n  onCancel?: () => void;\n}\n\nexport default class FormYoutubeUrlModalComponent extends Component<Args> {\n  @tracked url = '';\n  @tracked hasError = false;\n\n  get isConfirmDisabled(): boolean {\n    return !this.url?.trim();\n  }\n\n  get errorMessage(): string | null {\n    if (!this.hasError) return null;\n    return 'Invalid URL. Only YouTube URLs are accepted.';\n  }\n\n  @action\n  handleUrlChange(value: string): void {\n    this.url = value;\n    this.hasError = false;\n  }\n\n  @action\n  handleConfirm(): void {\n    const trimmedUrl = this.url?.trim();\n    if (!trimmedUrl) return;\n\n    if (!isValidYouTubeUrl(trimmedUrl)) {\n      this.hasError = true;\n      return;\n    }\n\n    this.args.onConfirm(trimmedUrl);\n  }\n\n  @action\n  handleCancel(): void {\n    this.args.onCancel?.();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  @size=\\\"sm\\\"\\n  class=\\\"c-shared-form-youtube-url-modal\\\"\\n  data-test-youtube-url-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header @title=\\\"Embed YouTube Video\\\" data-test-youtube-url-modal-header />\\n\\n  <Shared::Modal::Body\\n    class=\\\"c-shared-form-youtube-url-modal__body\\\"\\n    data-test-youtube-url-modal-body\\n  >\\n    <Shared::BetaLabel @label=\\\"YouTube URL\\\" @for=\\\"youtube-url\\\" data-test-youtube-url-modal-label>\\n      <Shared::BetaInput\\n        @value={{this.url}}\\n        @onChange={{this.handleUrlChange}}\\n        @onEnter={{this.handleConfirm}}\\n        @placeholder=\\\"https://www.youtube.com/watch?v=...\\\"\\n        @state={{if this.hasError \\'error\\'}}\\n        data-test-youtube-url-modal-input\\n        {{autofocus nestedSelector=\\'.c-beta-input\\'}}\\n      />\\n    </Shared::BetaLabel>\\n\\n    {{#if this.errorMessage}}\\n      <p class=\\\"c-shared-form-youtube-url-modal__error\\\" data-test-youtube-url-modal-error>\\n        {{this.errorMessage}}\\n      </p>\\n    {{/if}}\\n  </Shared::Modal::Body>\\n\\n  <Shared::Modal::ActionFooter\\n    @confirmText=\\\"Embed\\\"\\n    @confirmType=\\\"primary\\\"\\n    @cancelText=\\\"Cancel\\\"\\n    @showCancelButton={{true}}\\n    @isConfirmDisabled={{this.isConfirmDisabled}}\\n    @onCancel={{this.handleCancel}}\\n    @onConfirm={{this.handleConfirm}}\\n    data-test-youtube-url-modal-footer\\n  />\\n</Shared::Modal>\\n', { moduleName: 'client/shared/components/form/youtube-url-modal/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ntype Args = {\n  preTitle?: string;\n  description?: string;\n  noPadding?: boolean;\n  noSeparator?: boolean;\n  closeButton?: boolean;\n  shouldDisplayFullTitle?: boolean;\n  onClose?: () => void | Promise<void>;\n  size?: 'big' | 'normal';\n};\n\n@validateArguments\nexport default class BrowserExtensionSharedHeaderComponent extends Component<Args> {\n  static propTypes = {\n    preTitle: PropTypes.string,\n    description: PropTypes.string,\n    noPadding: PropTypes.bool,\n    noSeparator: PropTypes.bool,\n    closeButton: PropTypes.bool,\n    onClose: PropTypes.func,\n    size: PropTypes.string,\n    shouldDisplayFullTitle: PropTypes.bool,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/Header',\n  component: 'Shared::Header',\n  args: {\n    preTitle: undefined,\n    description: undefined,\n    noPadding: false,\n    noSeparator: false,\n    closeButton: true,\n    onClose: () => {},\n    size: 'normal',\n  },\n  argTypes: {\n    preTitle: {\n      type: 'string',\n      description: 'Display some text over the title',\n      table: {\n        category: 'Properties',\n      },\n    },\n    description: {\n      type: 'string',\n      description: 'Display some text below the title',\n      table: {\n        category: 'Properties',\n      },\n    },\n    noPadding: {\n      type: 'boolean',\n      description: 'Disable padding if true',\n      table: {\n        category: 'Properties',\n      },\n    },\n    noSeparator: {\n      type: 'boolean',\n      description: 'Disable separator if true',\n      table: {\n        category: 'Properties',\n      },\n    },\n    closeButton: {\n      type: 'boolean',\n      description: 'Display a close button if true',\n      table: {\n        category: 'Properties',\n      },\n    },\n    size: {\n      type: 'string',\n      description: 'size of the header',\n      table: {\n        category: 'Properties',\n      },\n      options: ['normal', 'big'],\n    },\n    onClose: {\n      action: 'onClose',\n      description: 'Action to close the modal',\n      table: {\n        category: 'Actions',\n      },\n    },\n  },\n};\n\nexport function Base(args) {\n  return {\n    template: hbs`<Shared::Header\n      @preTitle={{this.preTitle}}\n      @description={{this.description}}\n      @noSeparator={{this.noSeparator}}\n      @noPadding={{this.noPadding}}\n      @closeButton={{this.closeButton}}\n      @onClose={{this.onClose}}\n      @size={{this.size}}\n    >\n      <:top>Title of the page</:top>\n    </Shared::Header>`,\n    context: args,\n  };\n}\n\nexport function WithBackButton(args) {\n  return {\n    template: hbs`<Shared::Header\n      @preTitle={{this.preTitle}}\n      @description={{this.description}}\n      @noSeparator={{this.noSeparator}}\n      @noPadding={{this.noPadding}}\n      @size={{this.size}}\n    >\n      <:left>\n        <Shared::Button\n          @iconName=\"arrow_back\"\n          @type=\"ghost\"\n          @size=\"micro\"\n          @onClick={{fn (do-nothing-function)}}\n        />\n      </:left>\n      <:top>Title of the page</:top>\n    </Shared::Header>`,\n    context: args,\n  };\n}\n\nexport function WithActionButtons(args) {\n  return {\n    template: hbs`<Shared::Header\n      @preTitle={{this.preTitle}}\n      @description={{this.description}}\n      @noSeparator={{this.noSeparator}}\n      @noPadding={{this.noPadding}}\n      @size={{this.size}}\n    >\n      <:top>Title of the page</:top>\n      <:right>\n        <Shared::Button\n          @type=\"primary\"\n          @text=\"execute action\"\n          @onClick={{fn (do-nothing-function)}}\n        />\n        <Shared::Button\n          @type=\"ghost\"\n          @text=\"other action\"\n          @onClick={{fn (do-nothing-function)}}\n        />\n      </:right>\n    </Shared::Header>`,\n    context: args,\n  };\n}\n\nexport function WithActionButtonsDescriptionAndPreTitle(args) {\n  return {\n    template: hbs`<Shared::Header\n      @preTitle={{this.preTitle}}\n      @description={{this.description}}\n      @noSeparator={{this.noSeparator}}\n      @noPadding={{this.noPadding}}\n      @size={{this.size}}\n    >\n      <:left>\n        <Shared::Button\n          @iconName=\"info_outlined\"\n          @type=\"ghost\"\n          @size=\"micro\"\n          @onClick={{fn (do-nothing-function)}}\n        />\n      </:left>\n      <:top>Title of the page</:top>\n      <:right>\n        <Shared::Button\n          @type=\"primary\"\n          @text=\"execute action\"\n          @onClick={{fn (do-nothing-function)}}\n        />\n        <Shared::Button\n          @type=\"ghost\"\n          @text=\"other action\"\n          @onClick={{fn (do-nothing-function)}}\n        />\n      </:right>\n    </Shared::Header>`,\n    context: {\n      ...args,\n      description: 'description of the page',\n      preTitle: 'Step 1 of 3',\n      size: 'big',\n    },\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers\\n    \\'c-shared-header\\'\\n    no-padding=@noPadding\\n    no-separator=@noSeparator\\n    align-top=@description\\n    big=(eq @size \\'big\\')\\n  }}\\n  data-test-shared-header\\n  ...attributes\\n>\\n  {{#if (has-block \\'left\\')}}\\n    <div class=\\\"c-shared-header__left\\\">\\n      {{yield to=\\'left\\'}}\\n    </div>\\n  {{/if}}\\n  <div class=\\\"c-shared-header__middle\\\">\\n    {{#if @pretitle}}\\n      <p class=\\\"c-shared-header__pretitle\\\" data-test-shared-header-pretitle>\\n        {{@pretitle}}\\n      </p>\\n    {{/if}}\\n    <div\\n      class={{get-classes-with-modifiers \\'c-shared-header__top\\' full=@shouldDisplayFullTitle}}\\n      data-test-shared-header-title\\n    >\\n      {{yield to=\\'top\\'}}\\n    </div>\\n    {{#if @description}}\\n      <div class=\\\"c-shared-header__bottom\\\" data-test-shared-header-subtitle>\\n        {{@description}}\\n      </div>\\n    {{/if}}\\n  </div>\\n  {{#if (or (has-block \\'right\\') @closeButton)}}\\n    <div class=\\\"c-shared-header__right\\\">\\n      {{yield to=\\'right\\'}}\\n      {{#if @closeButton}}\\n        <Shared::Button\\n          @iconName=\\\"close\\\"\\n          @type=\\\"ghost\\\"\\n          @size=\\\"micro\\\"\\n          @onClick={{@onClose}}\\n          data-test-shared-header-close-button\\n        />\\n      {{/if}}\\n    </div>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/shared/components/header/template.hbs' });\n","import type PopupPositionerSharedBusinessService from 'client/shared/services/popup-positioner';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport enum ColorsEnum {\n  Primary = 'primary',\n  Green = 'green',\n  Yellow = 'yellow',\n  Orange = 'orange',\n  Red = 'red',\n  Purple = 'purple',\n  Blue = 'blue',\n}\n\ninterface InputWithColorPresetsArgs {\n  value: string;\n  color: ColorsEnum;\n  onTextChange: (value: string) => void;\n  onColorChange: (color: ColorsEnum) => void;\n  placeholder?: string;\n}\n\n@validateArguments\nexport default class InputWithColorPresetsComponent extends Component<InputWithColorPresetsArgs> {\n  static readonly propTypes = {\n    value: PropTypes.string,\n    color: PropTypes.oneOf<ColorsEnum>(Object.values(ColorsEnum)),\n    onTextChange: PropTypes.func.isRequired,\n    onColorChange: PropTypes.func.isRequired,\n    placeholder: PropTypes.string,\n  };\n\n  @service('shared/popup-positioner') private popupPositioner: PopupPositionerSharedBusinessService;\n\n  @tracked isShowingColorPicker = false;\n\n  get inputId() {\n    return guidFor(this);\n  }\n\n  get colorPickerId() {\n    return `${this.inputId}-color-picker`;\n  }\n\n  get colors(): ColorsEnum[] {\n    return Object.values(ColorsEnum);\n  }\n\n  @action\n  public async handleClickColorDot(event: MouseEvent) {\n    event.stopPropagation();\n    event.preventDefault();\n    this.isShowingColorPicker = true;\n\n    // wait for the color picker to be rendered\n    await waitForNextRunLoop();\n\n    const colorPickerElement = document.getElementById(this.colorPickerId);\n    const inputElement = document.getElementById(this.inputId);\n\n    this.popupPositioner.positionPopupBelowElement(\n      this as Component<unknown>,\n      colorPickerElement,\n      inputElement,\n      {\n        visibilityVariable: '--shared-input-with-color-preset-picker-visibility',\n        topVariable: '--shared-input-with-color-preset-picker-margin-top',\n        leftVariable: '--shared-input-with-color-preset-picker-margin-left',\n      },\n    );\n  }\n\n  @action\n  handlePickColor(color: ColorsEnum) {\n    this.args.onColorChange(color);\n    this.isShowingColorPicker = false;\n  }\n}\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/InputWithColorPresets',\n  component: 'Shared::InputWithColorPresets',\n  args: {\n    ...getDefaultRequiredArgs('Shared::InputWithColorPresets'),\n  },\n};\n\nexport const InputWithColorPresets = storyCreator('Shared::InputWithColorPresets');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-shared-input-with-color-presets\\\"\\n  data-test-shared-input-with-color-presets\\n  ...attributes\\n>\\n  <Shared::BetaInput\\n    @value={{@value}}\\n    @onChange={{@onTextChange}}\\n    @hasSuffixPadding={{true}}\\n    @placeholder={{@placeholder}}\\n    data-test-shared-input-with-color-presets-input\\n  >\\n    <:input-suffix>\\n      <div\\n        role=\\\"button\\\"\\n        class={{get-classes-with-modifiers\\n          \\'c-shared-input-with-color-presets__color-dot\\'\\n          (or @color \\'primary\\')\\n        }}\\n        id={{this.inputId}}\\n        {{on \\'click\\' this.handleClickColorDot}}\\n        data-test-shared-input-with-color-presets-selected-color-dot\\n      />\\n    </:input-suffix>\\n  </Shared::BetaInput>\\n\\n  {{#if this.isShowingColorPicker}}\\n    <Shared::PortalContent @for=\\\"dropdown\\\">\\n      <div\\n        class=\\\"c-shared-input-with-color-presets__color-picker\\\"\\n        id={{this.colorPickerId}}\\n        {{forest-on-click-outside (fn (mut this.isShowingColorPicker) false)}}\\n        data-test-shared-input-with-color-presets-color-picker\\n      >\\n        {{#each this.colors as |color|}}\\n          <div\\n            role=\\\"button\\\"\\n            class={{get-classes-with-modifiers\\n              \\'c-shared-input-with-color-presets__color-dot\\'\\n              color\\n            }}\\n            {{on \\'click\\' (fn this.handlePickColor color)}}\\n            data-test-shared-input-with-color-presets-color-picker-color-dot={{color}}\\n          ></div>\\n        {{/each}}\\n      </div>\\n    </Shared::PortalContent>\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/shared/components/input-with-color-presets/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs } from 'stories/story-creator';\n\nexport default {\n  component: 'Shared::Layout::CardOnEmptyPage',\n  args: {\n    ...getDefaultRequiredArgs('Shared::Layout::CardOnEmptyPage'),\n  },\n};\n\nexport const LayoutCardOnEmptyPage = (args) => {\n  return {\n    template: hbs`<Shared::Layout::CardOnEmptyPage>Content</Shared::Layout::CardOnEmptyPage>`,\n    context: args,\n  };\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class={{get-classes-with-modifiers \\'c-layout-card-on-empty-page\\' @size}} ...attributes>\\n  <Card\\n    class={{get-classes-with-modifiers\\n      \\'c-layout-card-on-empty-page__card\\'\\n      with-padding=(not @withoutPadding)\\n      fixed-max-height=@fixedMaxHeight\\n    }}\\n  >\\n    {{#if @scrollingWrapper}}\\n      <div class=\\\"c-layout-card-on-empty-page__scrolling-wrapper\\\">\\n        {{yield}}\\n      </div>\\n    {{else}}\\n      {{yield}}\\n    {{/if}}\\n  </Card>\\n</div>\\n', { moduleName: 'client/shared/components/layout/card-on-empty-page/template.hbs' });\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  component: 'Shared::Layout::FullPageTitleDescription',\n  args: {\n    ...getDefaultRequiredArgs('Shared::Layout::FullPageTitleDescription'),\n    title: 'My title',\n    description: 'My description',\n  },\n};\n\nexport const LayoutFullPageTitleDescription = storyCreator(\n  'Shared::Layout::FullPageTitleDescription',\n);\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class=\\\"c-layout-full-page-title-description\\\"\\n  data-test-shared-layout-full-page-title-description\\n  ...attributes\\n>\\n  <h2\\n    class=\\\"c-layout-full-page-title-description__title\\\"\\n    data-test-shared-layout-full-page-title-description-title\\n  >\\n    {{@title}}\\n  </h2>\\n  <div\\n    class=\\\"c-layout-full-page-title-description__message\\\"\\n    data-test-shared-layout-full-page-title-description-description\\n  >\\n    {{@message}}\\n  </div>\\n</div>\\n', { moduleName: 'client/shared/components/layout/full-page-title-description/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-layout-loading-data\\\" data-test-shared-layout-loading-data ...attributes>\\n  <Shared::Feedback::BetaLoader\\n    @type=\\\"primary\\\"\\n    class=\\\"c-layout-loading-data__loader\\\"\\n    data-test-shared-layout-loading-data-loader\\n  />\\n\\n  <Shared::Layout::FullPageTitleDescription\\n    @title=\\\"Your data is loading\\\"\\n    @message=\\\"Relax and take a deep breath.\\\"\\n    data-test-shared-layout-loading-data-text\\n  />\\n</div>\\n', { moduleName: 'client/shared/components/layout/loading-data/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal @size=\\\"xs\\\" data-test-shared-modal-simple class=\\\"c-shared-modal-simple\\\" ...attributes>\\n  <div class=\\\"c-shared-modal-simple__icon\\\">\\n    <Shared::DataDisplay::BetaIcon @iconName={{@iconName}} />\\n  </div>\\n  <div class=\\\"c-shared-modal-simple__content\\\">\\n    <div class=\\\"c-shared-modal-simple__title\\\" data-test-shared-modal-simple-title>\\n      {{yield to=\\'title\\'}}\\n    </div>\\n    <div class=\\\"c-shared-modal-simple__description\\\" data-test-shared-modal-simple-description>\\n      {{yield to=\\'description\\'}}\\n    </div>\\n  </div>\\n  <div class=\\\"c-shared-modal-simple__footer\\\">\\n    {{yield to=\\'footer\\'}}\\n  </div>\\n</Shared::Modal>\\n', { moduleName: 'client/shared/components/modal-simple/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport { ButtonTypeEnum } from 'client/shared/components/button/component';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type Args = {\n  confirmText: string;\n  confirmIconName?: string;\n  onConfirm: () => void;\n  isConfirmDisabled?: boolean;\n  cancelText?: string;\n  onCancel?: () => void;\n  isCancelDisabled?: boolean;\n  isLoading?: boolean;\n  confirmType: ButtonTypeEnum;\n  text?: string;\n};\n\n@validateArguments\nexport default class SharedModalActionFooterComponent extends Component<Args> {\n  public static propTypes = {\n    confirmType: PropTypes.oneOf(Object.values(ButtonTypeEnum)),\n    confirmText: PropTypes.string.isRequired,\n    confirmIconName: PropTypes.string,\n    onConfirm: PropTypes.func.isRequired,\n    isConfirmDisabled: PropTypes.bool,\n    isCancelDisabled: PropTypes.bool,\n    cancelText: PropTypes.string,\n    onCancel: PropTypes.func,\n    isLoading: PropTypes.bool,\n    text: PropTypes.string,\n  };\n\n  get showCancelButton() {\n    return Boolean(this.args.onCancel && this.args.cancelText);\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nimport { storyCreator } from '../../../../../stories/story-creator';\nimport { ButtonTypeEnum } from 'client/utils/color-utils';\n\nexport default {\n  title: 'Shared/Modal/ActionFooter',\n  component: 'Shared::Modal::ActionFooter',\n  args: {\n    confirmType: ButtonTypeEnum.Success,\n    confirmText: 'Confirm',\n    isConfirmDisabled: false,\n    cancelText: 'Cancel',\n    isCancelDisabled: false,\n    isLoading: false,\n  },\n  argTypes: {\n    confirmText: {\n      type: 'string',\n      description: 'The text of the confirm button',\n      table: {\n        category: 'Properties',\n      },\n    },\n    confirmType: {\n      type: 'string',\n      description: 'The type of the confirm button',\n      table: {\n        category: 'Properties',\n      },\n      options: Object.values(ButtonTypeEnum),\n      control: { type: 'select' },\n    },\n    confirmIconName: {\n      type: 'string',\n      description: 'The name of the icon to display on the confirm button',\n      table: {\n        category: 'Properties',\n      },\n    },\n    isConfirmDisabled: {\n      type: 'boolean',\n      description: 'Whether the confirm button should be disabled',\n      table: {\n        category: 'Properties',\n      },\n    },\n    onConfirm: {\n      action: 'onConfirm',\n      description: 'Action to be called when the user confirms the action',\n      table: {\n        category: 'Actions',\n      },\n    },\n    isLoading: {\n      type: 'boolean',\n      description: 'Whether the confirm button should be in a loading state',\n      table: {\n        category: 'Properties',\n      },\n    },\n    cancelText: {\n      type: 'string',\n      description: 'The text of the cancel button',\n      table: {\n        category: 'Properties',\n      },\n    },\n    onCancel: {\n      action: 'onCancel',\n      description: 'Action to be called when the user cancels the action',\n      table: {\n        category: 'Actions',\n      },\n    },\n    isCancelDisabled: {\n      type: 'boolean',\n      description: 'Whether the cancel button should be disabled',\n      table: {\n        category: 'Properties',\n      },\n    },\n    text: {\n      type: 'string',\n      description: 'The text of the footer',\n      table: {\n        category: 'Properties',\n      },\n    },\n  },\n};\n\nexport const Base = storyCreator('Shared::Modal::ActionFooter');\n\nexport function WithConfirmIcon(args) {\n  return {\n    template: hbs`<Shared::Modal::ActionFooter\n      @confirmText={{this.confirmText}}\n      @onConfirm={{this.onConfirm}}\n      @confirmType={{this.confirmType}}\n      @isConfirmDisabled={{this.isConfirmDisabled}}\n      @isLoading={{this.isLoading}}\n      @cancelText={{this.cancelText}}\n      @onCancel={{this.onCancel}}\n      @isCancelDisabled={{this.isCancelDisabled}}\n      @confirmIconName='arrow_right_alt'\n    />`,\n    context: args,\n  };\n}\n\nexport function ConfirmDanger(args) {\n  return {\n    template: hbs`<Shared::Modal::ActionFooter\n      @confirmText={{this.confirmText}}\n      @onConfirm={{this.onConfirm}}\n      @confirmType='danger'\n      @isConfirmDisabled={{this.isConfirmDisabled}}\n      @isLoading={{this.isLoading}}\n      @cancelText={{this.cancelText}}\n      @isCancelDisabled={{this.isCancelDisabled}}\n      @onCancel={{this.onCancel}}\n    />`,\n    context: args,\n  };\n}\n\nexport function WithoutCancelButton(args) {\n  return {\n    template: hbs`<Shared::Modal::ActionFooter\n      @confirmText={{this.confirmText}}\n      @onConfirm={{this.onConfirm}}\n      @isConfirmDisabled={{this.isConfirmDisabled}}\n      @isCancelDisabled={{this.isCancelDisabled}}\n      @isLoading={{this.isLoading}}\n    />`,\n    context: args,\n  };\n}\n\nexport function WithoutCancelDangerButton(args) {\n  return {\n    template: hbs`<Shared::Modal::ActionFooter\n      @confirmType='danger'\n      @confirmText={{this.confirmText}}\n      @onConfirm={{this.onConfirm}}\n      @isConfirmDisabled={{this.isConfirmDisabled}}\n      @isLoading={{this.isLoading}}\n    />`,\n    context: args,\n  };\n}\n\nexport function WithDisabledConfirmation(args) {\n  return {\n    template: hbs`<Shared::Modal::ActionFooter\n      @confirmText={{this.confirmText}}\n      @onConfirm={{this.onConfirm}}\n      @isConfirmDisabled={{true}}\n      @isLoading={{this.isLoading}}\n      @cancelText={{this.cancelText}}\n      @onCancel={{this.onCancel}}\n    />`,\n    context: args,\n  };\n}\n\nexport function WithDisabledCancel(args) {\n  return {\n    template: hbs`\n      <Shared::Modal::ActionFooter\n        @confirmText={{this.confirmText}}\n        @onConfirm={{this.onConfirm}}\n        @isConfirmDisabled={{this.isConfirmDisabled}}\n        @isLoading={{this.isLoading}}\n        @cancelText={{this.cancelText}}\n        @isCancelDisabled={{true}}\n        @onCancel={{this.onCancel}}\n      />\n    `,\n    context: args,\n  };\n}\n\nexport function WithText(args) {\n  return {\n    template: hbs`<Shared::Modal::ActionFooter\n      @text='Step 2 of 3'\n      @confirmText={{this.confirmText}}\n      @onConfirm={{this.onConfirm}}\n      @isConfirmDisabled={{this.isConfirmDisabled}}\n      @isLoading={{this.isLoading}}\n      @cancelText={{this.cancelText}}\n      @onCancel={{this.onCancel}}\n    />`,\n    context: args,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! Reference https://www.figma.com/file/hWgL6DteozZoHGbFPO2daf/DS24?node-id=1954%3A4042&mode=dev}}\\n<Shared::Modal::Footer\\n  class={{get-classes-with-modifiers \\'c-shared-modal-action-footer\\' full-width=@fullWidth}}\\n  data-test-modal-action-footer\\n  ...attributes\\n>\\n  {{#if @text}}\\n    <p class=\\\"c-shared-modal-action-footer__text\\\" data-test-modal-action-footer-text>{{@text}}</p>\\n  {{/if}}\\n\\n  {{#if this.showCancelButton}}\\n    <Shared::Button\\n      @type=\\\"ghost\\\"\\n      @size=\\\"medium\\\"\\n      @text={{@cancelText}}\\n      @onClick={{@onCancel}}\\n      disabled={{@isCancelDisabled}}\\n      class=\\\"c-shared-modal-action-footer__button\\\"\\n      data-test-modal-action-footer-cancel-button\\n    />\\n  {{/if}}\\n\\n  <Shared::Button\\n    @type={{(or @confirmType \\'primary\\')}}\\n    @size=\\\"medium\\\"\\n    @text={{@confirmText}}\\n    @iconName={{@confirmIconName}}\\n    @isIconAfterText={{true}}\\n    @onClick={{@onConfirm}}\\n    @isLoading={{@isLoading}}\\n    disabled={{@isConfirmDisabled}}\\n    class=\\\"c-shared-modal-action-footer__button\\\"\\n    data-test-modal-action-footer-action-button\\n  />\\n</Shared::Modal::Footer>\\n', { moduleName: 'client/shared/components/modal/action-footer/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-shared-modal-body\\\" data-test-shared-modal-body ...attributes>\\n  {{yield}}\\n</div>\\n\\n', { moduleName: 'client/shared/components/modal/body/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport enum ModalSizeEnum {\n  ExtraSmall = 'xs',\n  Small = 'sm',\n  Medium = 'md',\n  Large = 'lg',\n  Auto = 'auto',\n}\n\nexport type Args = {\n  size: ModalSizeEnum;\n};\n\n@validateArguments\nexport default class SharedModalComponent extends Component<Args> {\n  public static propTypes = {\n    size: PropTypes.oneOf(Object.values(ModalSizeEnum)),\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/Modal/Footer',\n  component: 'Shared::Modal::Footer',\n  args: {},\n  argTypes: {},\n};\n\nexport function Base(args) {\n  return {\n    template: hbs`<Shared::Modal::Footer>\n        Footer content\n    </Shared::Modal::Footer>`,\n    context: args,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! Reference https://www.figma.com/file/hWgL6DteozZoHGbFPO2daf/DS24?node-id=1954%3A4042&mode=dev}}\\n<footer class=\\\"c-shared-modal-footer\\\" ...attributes>\\n  {{yield}}\\n</footer>\\n', { moduleName: 'client/shared/components/modal/footer/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface ModalHeaderArgs {\n  title: string;\n  subtitle?: string;\n  noSeparator?: boolean;\n}\n\n@validateArguments\nexport default class ModalHeaderComponent extends Component<ModalHeaderArgs> {\n  public static propTypes = {\n    title: PropTypes.string.isRequired,\n    subtitle: PropTypes.string,\n    noSeparator: PropTypes.bool,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\n\nimport { storyCreator } from '../../../../../stories/story-creator';\n\nexport default {\n  title: 'Shared/Modal/Header',\n  component: 'Shared::Modal::Header',\n  args: {\n    title: 'Modal title',\n  },\n  argTypes: {\n    title: {\n      type: 'string',\n      description: 'The title to display in the modal.',\n      table: {\n        category: 'Properties',\n      },\n    },\n    subtitle: {\n      type: 'string',\n      description: 'The subtitle to display in the modal.',\n      table: {\n        category: 'Properties',\n      },\n    },\n    noSeparator: {\n      type: 'boolean',\n      description: 'Does no display the separator if true.',\n      table: {\n        category: 'Properties',\n      },\n    },\n  },\n};\n\nexport const Base = storyCreator('Shared::Modal::Header');\n\nexport function WithSubtitle() {\n  return {\n    template: hbs`<Shared::Modal::Header @title='Modal title' @subtitle='Here is a subtitle' />`,\n  };\n}\n\nexport function WithoutSeparator() {\n  return {\n    template: hbs`<Shared::Modal::Header @title='Modal title' @subtitle='Here is a subtitle' @noSeparator={{true}} />`,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! Reference https://www.figma.com/file/hWgL6DteozZoHGbFPO2daf/DS24?node-id=1954%3A4042&mode=dev}}\\n<Shared::Header\\n  @description={{@subtitle}}\\n  @noSeparator={{@noSeparator}}\\n  class=\\\"c-shared-modal-header\\\"\\n  data-test-shared-modal-header\\n  ...attributes\\n>\\n  <:top>{{@title}}</:top>\\n</Shared::Header>\\n\\n', { moduleName: 'client/shared/components/modal/header/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\n\nimport { storyCreator } from '../../../../../stories/story-creator';\n\nexport default {\n  title: 'Shared/Modal/SplitLayoutBody',\n  component: 'Shared::Modal::SplitLayoutBody',\n  args: {},\n  argTypes: {},\n};\n\nexport const Base = storyCreator('Shared::Modal::SplitLayoutBody');\n\nexport function WithContent() {\n  return {\n    template: hbs`\n      <Shared::Modal::SplitLayoutBody>\n        <:nav>\n          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui nec nunc tincidunt tincidunt. Donec auctor, nunc nec lacinia\n        </:nav>\n        <:content>\n          Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui nec nunc tincidunt tincidunt. Donec auctor, nunc nec lacinia\n        </:content>\n      </Shared::Modal::SplitLayoutBody>`,\n  };\n}\n\nexport function WithVeryLongContentToScroll() {\n  return {\n    template: hbs`\n      <Shared::Modal::SplitLayoutBody style=\"max-height:200px\">\n        <:nav>\n          Lorem ipsum dolor sit amet,<br />\n          consectetur adipiscing elit,<br />\n          sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<br />\n          Ut enim ad minim veniam,<br />\n          quis nostrud exercitation ullamco laboris<br />\n          nisi ut aliquip ex ea commodo consequat.<br />\n          Duis aute irure dolor in<br />\n          reprehenderit in voluptate velit esse cillum dolore eu<br />\n          fugiat nulla pariatur.<br />\n          Excepteur sint occaecat cupidatat non proident,<br />\n          sunt in culpa qui officia deserunt mollit anim id est laborum.\n\n        </:nav>\n        <:content>\n          <div>\n          Lorem ipsum dolor sit amet,<br />\n          consectetur adipiscing elit,<br />\n          sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.<br />\n          Ut enim ad minim veniam,<br />\n          quis nostrud exercitation ullamco laboris<br />\n          nisi ut aliquip ex ea commodo consequat.<br />\n          Duis aute irure dolor in<br />\n          reprehenderit in voluptate velit esse cillum dolore eu<br />\n          fugiat nulla pariatur.<br />\n          Excepteur sint occaecat cupidatat non proident,<br />\n          sunt in culpa qui officia deserunt mollit anim id est laborum.\n          </div>\n        </:content>\n      </Shared::Modal::SplitLayoutBody>`,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers \\'c-shared-modal-split-layout-body\\' no-padding=@noPadding}}\\n  data-test-shared-modal-split-layout-body\\n  ...attributes\\n>\\n  <div class=\\\"c-shared-modal-split-layout-body__container {{@containerClass}}\\\">\\n    <nav\\n      class=\\\"{{get-classes-with-modifiers\\n          \\'c-shared-modal-split-layout-body__nav\\'\\n          no-overflow=@noOverflow\\n          no-padding=@noPadding\\n        }}\\n        {{@navClass}}\\\"\\n      data-test-shared-modal-split-layout-body-nav\\n    >\\n      {{yield to=\\'nav\\'}}\\n    </nav>\\n    <div\\n      class=\\\"c-shared-modal-split-layout-body__content {{@contentClass}}\\\"\\n      data-test-shared-modal-split-layout-body-content\\n    >\\n      {{yield to=\\'content\\'}}\\n    </div>\\n  </div>\\n</div>\\n', { moduleName: 'client/shared/components/modal/split-layout-body/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/Modal',\n  component: 'Shared::Modal',\n  args: {},\n  argTypes: {\n    size: {\n      type: 'string',\n      description: 'The size of the modal',\n      table: {\n        category: 'Properties',\n      },\n      select: {\n        options: ['sm', 'lg'],\n      },\n    },\n    onClose: {\n      action: 'onClose',\n      description: 'Action to close the modal',\n      table: {\n        category: 'Actions',\n      },\n    },\n  },\n};\n\nexport const CompleteExample = (args) => {\n  return {\n    template: hbs`\n    {{! The components Portal and Feature::Modal::Window are added by the modalFeatureService}}\n    <Shared::PortalFor @name=\"modal\" />\n\n    <Feature::Modal::Internal::ModalWindow @onClose={{this.onClose}}>\n      <Shared::Modal @size={{this.size}}>\n        <Shared::Modal::Header @title=\"Modal title\" @subtitle=\"Here is a subtitle\" />\n        <Shared::Modal::SplitLayoutBody>\n          <:nav>\n            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui nec nunc tincidunt tincidunt. Donec auctor, nunc nec lacinia\n          </:nav>\n          <:content>\n            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec dui nec nunc tincidunt tincidunt. Donec auctor, nunc nec lacinia\n          </:content>\n        </Shared::Modal::SplitLayoutBody>\n        <Shared::Modal::ActionFooter\n          @confirmText=\"Confirm\"\n          @confirmType=\"success\"\n          @confirmIconName=\"east\"\n          @cancelText=\"Cancel\"\n          @onConfirm={{fn this.onClose}}\n          @onCancel={{fn this.onClose}}\n          @text=\"Step 1 of 2\"\n        />\n      </Shared::Modal>\n    </Feature::Modal::Internal::ModalWindow>`,\n    context: args,\n  };\n};\n\nexport const Small = (args) => {\n  return CompleteExample({ ...args, size: 'sm' });\n};\n\nexport const Large = (args) => {\n  return CompleteExample({ ...args, size: 'lg' });\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! \\n  Meant to be used with the modalFeatureService.open\\n  Use this component as the root element of your custom component to be displayed as a modal.\\n\\n  Typical usage:\\n  <Shared::Modal>\\n    <Shared::Modal::Header @title=\\\"Foo\\\" @subTitle=\\\"bar\\\"/>\\n    <Shared::Modal::Body>\\n      <p>Content</p>\\n    </Shared::Modal::Body>\\n  </Shared::Modal>\\n\\n  And then use the service to open this specific modal from your feature service\\n  this.modalFeatureService.open(\\'your-component-name\\', { onClose: this.onCloseModal  });\\n}}\\n<div\\n  class=\\\"c-shared-modal c-shared-modal--size-{{(or @size \\'default\\')}}\\\"\\n  data-test-shared-modal\\n  ...attributes\\n>\\n  {{yield}}\\n</div>\\n', { moduleName: 'client/shared/components/modal/template.hbs' });\n","import type { UpdateModalArgs } from 'client/shared/components/multi-step-modal/step/abstract-step-component';\n\nimport { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default abstract class AbstractMultiStepComponent<Args> extends Component<Args> {\n  @tracked public title = 'Loading';\n  @tracked public subtitle = '';\n  @tracked public isCurrentStepComplete = false;\n  @tracked public handleStep = null;\n\n  @action\n  updateModal(args: UpdateModalArgs) {\n    this.title = args.title;\n    this.subtitle = args.subtitle;\n    this.isCurrentStepComplete = args.isStepComplete;\n    this.handleStep = args.handleStep;\n  }\n}\n","import type ModalFeatureService from 'client/features/modal/services/feature';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface MultiStepModalArgs {\n  stepCount: number;\n  handleStep: (() => void | Promise<void>) | null;\n  isCurrentStepComplete: boolean;\n  confirmText?: string;\n}\n\n@validateArguments\nexport default class MultiStepModalComponent extends Component<MultiStepModalArgs> {\n  propTypes = {\n    stepCount: PropTypes.number.isRequired,\n    handleLastStep: PropTypes.func.isRequired,\n    isCurrentStepComplete: PropTypes.bool.isRequired,\n    confirmText: PropTypes.string,\n  };\n\n  @service('feature/modal') private modalFeature: ModalFeatureService;\n  @tracked public step = 1;\n\n  @action\n  handlePreviousStep() {\n    if (this.step === 1) {\n      this.modalFeature.close();\n    }\n    if (this.step > 1) {\n      this.step -= 1;\n    }\n  }\n\n  @action\n  async handleNextStep() {\n    if (!this.args.isCurrentStepComplete) throw new Error('Current step not complete');\n    if (this.step < this.args.stepCount) {\n      this.step += 1;\n    }\n    await this.args.handleStep?.();\n  }\n\n  get confirmText() {\n    return this.step === this.args.stepCount ? this.args.confirmText || 'Confirm' : 'Continue';\n  }\n\n  get stepPagination() {\n    return `Step ${this.step} of ${this.args.stepCount}`;\n  }\n}\n","import { action } from '@ember/object';\nimport { later } from '@ember/runloop';\nimport Component from '@glimmer/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport type UpdateModalArgs = {\n  title: string;\n  subtitle: string;\n  isStepComplete: boolean;\n  handleStep: (args: unknown) => void | Promise<void>;\n};\n\ninterface AbstractStepComponentArgs {\n  title: string;\n  subtitle: string;\n  isStepComplete: boolean;\n  handleStep: (args: unknown) => void | Promise<void>;\n  updateModal: (args: UpdateModalArgs) => void;\n}\n\nexport default abstract class AbstractStepComponent<OtherArgs> extends Component<\n  AbstractStepComponentArgs & OtherArgs\n> {\n  static propTypes = {\n    title: PropTypes.string,\n    subtitle: PropTypes.string,\n    isStepComplete: PropTypes.bool,\n    updateModal: PropTypes.func.isRequired,\n  };\n\n  abstract get isStepComplete(): boolean;\n\n  @action\n  updateModal() {\n    later(\n      () =>\n        this.args.updateModal({\n          title: this.args.title,\n          subtitle: this.args.subtitle,\n          isStepComplete: this.isStepComplete,\n          handleStep: this.args.handleStep,\n        }),\n      0,\n    );\n  }\n}\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/MultiStepModal/Step',\n  component: 'Shared::MultiStepModal::Step',\n  args: {\n    ...getDefaultRequiredArgs('Shared::MultiStepModal::Step'),\n  },\n};\n\nexport const Step = storyCreator('Shared::MultiStepModal::Step');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{did-insert @updateModal}}\\n{{did-update @updateModal @isStepComplete}}\\n\\n{{#if (has-block)}}\\n  <div class=\\\"c-shared-multi-step-modal-step\\\" data-test-shared-multi-step-modal-step ...attributes>\\n    {{yield}}\\n  </div>\\n{{/if}}\\n', { moduleName: 'client/shared/components/multi-step-modal/step/template.hbs' });\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/MultiStepModal',\n  component: 'Shared::MultiStepModal',\n  args: {\n    ...getDefaultRequiredArgs('Shared::MultiStepModal'),\n  },\n};\n\nexport const MultiStepModal = storyCreator('Shared::MultiStepModal');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<Shared::Modal\\n  @size=\\\"sm\\\"\\n  class={{get-classes-with-modifiers \\'c-shared-multi-step-modal\\' (concat \\'step-\\' this.step)}}\\n  data-test-shared-multi-step-modal\\n  ...attributes\\n>\\n  <Shared::Modal::Header @title={{@title}} @subtitle={{@subtitle}} />\\n  <Shared::Modal::Body class=\\\"c-shared-multi-step-modal__content\\\">\\n    {{#if (eq this.step 1)}}\\n      {{yield to=\\'step1\\'}}\\n    {{else if (eq this.step 2)}}\\n      {{yield to=\\'step2\\'}}\\n    {{else}}\\n      {{yield to=\\'step3\\'}}\\n    {{/if}}\\n  </Shared::Modal::Body>\\n\\n  <Shared::Modal::ActionFooter\\n    @confirmText={{this.confirmText}}\\n    @confirmType=\\\"primary\\\"\\n    @cancelText={{if (eq this.step 1) \\'Cancel\\' \\'Back\\'}}\\n    @isConfirmDisabled={{not @isCurrentStepComplete}}\\n    @onConfirm={{this.handleNextStep}}\\n    @onCancel={{this.handlePreviousStep}}\\n    @isCancelDisabled={{@isLoading}}\\n    @text={{this.stepPagination}}\\n  />\\n</Shared::Modal>\\n', { moduleName: 'client/shared/components/multi-step-modal/template.hbs' });\n","import { action, computed } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport {\n  HTMLSafeElement,\n  any,\n  argument,\n  oneOf,\n  oneOfType,\n  optional,\n} from 'client/decorators/argument';\nimport validateArguments from 'client/decorators/validate';\nimport {\n  SIZES,\n  TEXT_ALIGNMENTS,\n  TYPES,\n} from 'client/shared/components/button/beta-button/component';\nimport { defaultTo } from 'client/shared/helpers/default-to';\nimport CssClassHelper from 'client/utils/css-class-helper';\n\nexport const LINK_TYPES = [\n  'primary',\n  'info',\n  'secondary',\n  'secondary-light',\n  'danger',\n  'warning',\n  'tertiary',\n];\n\n@validateArguments\nexport default class NavigationBetaLinkToComponent extends Component {\n  @argument(oneOf(...TYPES, 'inherit', 'secondary-light', 'tertiary')) type;\n\n  @argument(optional(oneOfType([String, HTMLSafeElement])))\n  text;\n\n  @argument(optional(String)) iconName;\n  @argument(optional(String)) routeName;\n  @argument(optional(Array)) routeParameters;\n  @argument(any()) queryParams;\n  @argument(optional(String)) href;\n  @argument(optional(Boolean)) preventDefault;\n  @argument(optional(String)) punctuation;\n  @argument(optional(Boolean)) noPadding;\n  @argument(optional(Boolean)) underline;\n  @argument(optional(oneOfType([String, null]))) target;\n  @argument(optional(Boolean)) isIconAfterText;\n  @argument(optional(Boolean)) isLightText;\n  @argument(optional(String)) textClass;\n  @argument(optional(String)) iconClass;\n  @argument(optional(oneOf(...SIZES))) size;\n  @argument(optional(oneOf(...TEXT_ALIGNMENTS))) textAlign;\n  @argument(optional(Boolean)) isInline;\n\n  @argument(optional(Boolean)) displayAsButton;\n  @argument(optional(Function)) onClick;\n\n  defaultUnderline = true;\n  defaultIconAfterText = true;\n  defaultSize = 'normal';\n\n  @computed('args.{displayAsButton,underline}', 'defaultUnderline')\n  get underlineOrDefault() {\n    return defaultTo([this.args.underline, this.defaultUnderline && !this.args.displayAsButton]);\n  }\n\n  @computed('args.isIconAfterText', 'defaultIconAfterText')\n  get iconAfterTextOrDefault() {\n    return defaultTo([this.args.isIconAfterText, this.defaultIconAfterText]);\n  }\n\n  @computed('args.size', 'defaultSize')\n  get sizeOrDefault() {\n    return this.args.size === 'custom' ? 'custom-size' : this.args.size || this.defaultSize;\n  }\n\n  @computed(\n    'args.{displayAsButton,isInline,isLightText,noPadding,textAlign,type}',\n    'iconAfterTextOrDefault',\n    'sizeOrDefault',\n  )\n  get allClasses() {\n    return new CssClassHelper('c-beta-button')\n      .addModifier(`${this.args.displayAsButton ? '' : 'link-'}${this.args.type}`)\n      .addModifier('link', !this.args.displayAsButton)\n      .addModifier(this.sizeOrDefault)\n      .addModifier(`text-align-${this.args.textAlign || 'center'}`)\n      .addModifier('icon-before', !this.iconAfterTextOrDefault)\n      .addModifier('no-padding', !!this.args.noPadding)\n      .addModifier('light-text', !!this.args.isLightText)\n      .addModifier('link-inline', !!this.args.isInline)\n      .generateClasses();\n  }\n\n  @computed('args.routeName', 'args.routeParameters')\n  get params() {\n    if (!this.args.routeParameters) {\n      return [this.args.routeName];\n    }\n    return [this.args.routeName, ...this.args.routeParameters];\n  }\n\n  @action\n  openLink(event) {\n    event.stopPropagation();\n\n    if (this.args.onClick) {\n      this.args.onClick();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{~#unless @routeName~}}\\n  <a\\n    {{on \\'click\\' this.openLink}}\\n    href={{@href}}\\n    class={{this.allClasses}}\\n    target={{@target}}\\n    rel=\\\"noopener {{if @target \\'noreferrer\\'}}\\\"\\n    role=\\\"button\\\"\\n    data-test-beta-link-to=\\\"href\\\"\\n    id={{@id}}\\n    ...attributes\\n  >\\n    {{~#if @text~}}\\n      <span\\n        class=\\\"c-beta-button__text\\n          {{@textClass}}\\n          {{if this.underlineOrDefault \\'c-beta-button__text--underline\\'}}\\\"\\n        data-test-beta-link-to-text\\n      >\\n        {{~@text~}}\\n      </span>\\n    {{~/if~}}\\n    {{~#if @iconName~}}\\n      <Shared::DataDisplay::BetaIcon\\n        @iconName={{@iconName}}\\n        @size={{this.sizeOrDefault}}\\n        class=\\\"c-beta-button__icon c-beta-button__icon--{{this.sizeOrDefault}}\\n          {{@iconClass}}\\n          {{if\\n            @text\\n            (if\\n              this.iconAfterTextOrDefault \\'c-beta-button__icon--right\\' \\'c-beta-button__icon--left\\'\\n            )\\n            \\'c-beta-button__icon--only\\'\\n          }}{{if (eq this.sizeOrDefault \\'small\\') \\'-small\\'}}\\n          \\\"\\n      />\\n    {{~/if~}}\\n  </a>{{~@punctuation~}}\\n{{~else~}}\\n  {{! template-lint-disable no-unknown-arguments-for-builtin-components }}\\n  <Navigation::LinkToWithClick\\n    @id={{@id}}\\n    @route={{@routeName}}\\n    @models={{or @routeParameters (array)}}\\n    @query={{or @queryParams (hash)}}\\n    class={{this.allClasses}}\\n    target={{@target}}\\n    data-test-beta-link-to=\\\"route\\\"\\n    ...attributes\\n  >\\n    {{~#if @text~}}\\n      <span\\n        class=\\\"c-beta-button__text\\n          {{@textClass}}\\n          {{if this.underlineOrDefault \\'c-beta-button__text--underline\\'}}\\\"\\n      >\\n        {{~@text~}}\\n      </span>\\n    {{~/if~}}\\n    {{~#if @iconName~}}\\n      <i\\n        class=\\\"material-icons c-beta-button__icon c-beta-button__icon--{{this.sizeOrDefault}}\\n          {{@iconClass}}\\n          {{unless @text \\'c-beta-button__icon--only\\'}}\\n          {{if\\n            @text\\n            (if\\n              this.iconAfterTextOrDefault \\'c-beta-button__icon--right\\' \\'c-beta-button__icon--left\\'\\n            )\\n          }}{{if (eq this.sizeOrDefault \\'small\\') \\'-small\\'}}\\\"\\n      >\\n        {{~@iconName~}}\\n      </i>\\n    {{~/if~}}\\n  </Navigation::LinkToWithClick>{{~@punctuation~}}\\n{{~/unless~}}\\n', { moduleName: 'client/shared/components/navigation/beta-link-to/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\n\nimport { ButtonSizeEnum } from 'client/shared/components/button/component';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface NavigationLinkArgs {\n  type: 'primary' | 'forest-primary' | 'secondary' | 'info' | 'warning' | 'danger' | 'success';\n  size?: ButtonSizeEnum;\n  text?: string;\n  iconName?: string;\n\n  routeName?: string;\n  routeParameters?: unknown[];\n  queryParams?: Record<string, unknown>;\n  href?: string;\n  onClick?: () => void;\n\n  target?: '_blank' | null;\n  isIconAfterText?: boolean;\n}\n\nexport default class NavigationLinkComponent extends Component<NavigationLinkArgs> {\n  static propTypes = {\n    type: PropTypes.oneOf([\n      'primary',\n      'forest-primary',\n      'secondary',\n      'info',\n      'warning',\n      'danger',\n      'success',\n      'custom',\n    ]).isRequired,\n    size: PropTypes.oneOf(Object.values(ButtonSizeEnum)),\n    text: PropTypes.string,\n    iconName: PropTypes.string,\n    routeName: PropTypes.string,\n    routeParameters: PropTypes.array,\n    queryParams: PropTypes.object,\n    href: PropTypes.string,\n    onClick: PropTypes.func,\n    target: PropTypes.oneOf(['_blank', null]),\n    isIconAfterText: PropTypes.bool,\n  };\n\n  static defaultProps = {\n    type: 'primary',\n    size: 'medium',\n    isIconAfterText: true,\n  };\n\n  get isIconAfterText() {\n    return this.args.isIconAfterText ?? NavigationLinkComponent.defaultProps.isIconAfterText;\n  }\n\n  @action\n  handleClick(event: MouseEvent) {\n    if (this.args.onClick) {\n      event.preventDefault();\n      this.args.onClick();\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{~#if @text~}}\\n  <span class=\\\"c-shared-navigation-link__text\\\">\\n    {{~@text~}}\\n  </span>\\n{{~/if~}}\\n{{~#if @iconName~}}\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName={{@iconName}}\\n    @size=\\\"custom\\\"\\n    class=\\\"c-shared-navigation-link__icon\\\"\\n  />\\n{{~/if~}}\\n', { moduleName: 'client/shared/components/navigation/link/content/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/Navigation/Link',\n  component: 'Shared::Navigation::Link',\n  args: {\n    ...getDefaultRequiredArgs('Shared::Navigation::Link'),\n    text: 'Link Text',\n  },\n};\n\nexport const Link = () => {\n  return {\n    template: hbs`\n      {{#each (array 'primary' 'secondary' 'info' 'success' 'warning' 'danger') as |type|}}\n        <div style=\"display: flex; flex-direction: row; gap: 10px; text-overflow\">\n          {{#each (array 'small' 'medium' 'large' 'extra-large') as |size|}}\n            <Shared::Navigation::Link\n              @type={{type}}\n              @size={{size}}\n              @text=\"Link\"\n            />\n            <Shared::Navigation::Link\n              @type={{type}}\n              @size={{size}}\n              @text=\"Link\"\n              @iconName=\"arrow_forward\"\n            />\n            <Shared::Navigation::Link\n              @type={{type}}\n              @size={{size}}\n              @text=\"Link\"\n              @iconName=\"arrow_back\"\n              @isIconAfterText={{false}}\n            />\n          {{/each}}\n        </div>\n      {{/each}}\n    `,\n  };\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{~#let\\n  (get-classes-with-modifiers\\n    \\'c-shared-navigation-link\\'\\n    (or @type \\'primary\\')\\n    (or @size \\'medium\\')\\n    icon-after-text=this.isIconAfterText\\n    icon-before-text=(not this.isIconAfterText)\\n  )\\n  as |navigationClassNames|\\n~}}\\n  {{~#unless @routeName~}}\\n    <a\\n      href={{@href}}\\n      class={{navigationClassNames}}\\n      target={{@target}}\\n      rel=\\\"noopener {{if @target \\'noreferrer\\'}}\\\"\\n      role=\\\"button\\\"\\n      data-test-shared-navigation-link=\\\"href\\\"\\n      id={{@id}}\\n      {{on \\'click\\' this.handleClick}}\\n      ...attributes\\n    >\\n      {{~\\'\\'~}}\\n      <Shared::Navigation::Link::Content @text={{@text}} @iconName={{@iconName}} />\\n      {{~\\'\\'~}}\\n    </a>{{~@punctuation~}}\\n  {{~else~}}\\n    <Navigation::LinkToWithClick\\n      @id={{@id}}\\n      @route={{@routeName}}\\n      @models={{or @routeParameters (array)}}\\n      @query={{or @queryParams (hash)}}\\n      class={{navigationClassNames}}\\n      target={{@target}}\\n      data-test-shared-navigation-link=\\\"route\\\"\\n      ...attributes\\n    >\\n      {{~\\'\\'~}}\\n      <Shared::Navigation::Link::Content @text={{@text}} @iconName={{@iconName}} />\\n      {{~\\'\\'~}}\\n    </Navigation::LinkToWithClick>{{~@punctuation~}}\\n  {{~/unless~}}\\n{{~/let~}}\\n', { moduleName: 'client/shared/components/navigation/link/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport const NAV_EXTERNAL_LINK_STYLES = ['default', 'secondary'];\nexport type NavExternalLinkStyle = (typeof NAV_EXTERNAL_LINK_STYLES)[number];\n\ninterface SidenavExternalLinkArgs {\n  href: string;\n  style?: NavExternalLinkStyle;\n  icon: string;\n  text: string;\n}\n\n@validateArguments\nexport default class SidenavExternalLinkComponent extends Component<SidenavExternalLinkArgs> {\n  public static propTypes = {\n    href: PropTypes.string.isRequired,\n    style: PropTypes.oneOf(NAV_EXTERNAL_LINK_STYLES),\n    icon: PropTypes.string.isRequired,\n    text: PropTypes.string.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/Navigation/Sidenav/ExternalLink',\n  component: 'Shared::Navigation::Sidenav::ExternalLink',\n  args: {\n    text: 'Sample text',\n    icon: 'cloud',\n    href: 'https://www.forestadmin.com',\n  },\n  argTypes: {\n    text: {\n      type: 'string',\n      description: 'The text to display in the link.',\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: 'Item' },\n      },\n    },\n    icon: {\n      type: 'string',\n      description: 'The icon to display in the item.',\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: 'cloud' },\n      },\n    },\n    href: {\n      type: 'string',\n      description: 'The href of the link.',\n      table: {\n        category: 'Properties',\n      },\n    },\n    style: {\n      type: 'string',\n      description: 'The style of the item.',\n      options: ['default', 'secondary'],\n      control: { type: 'select' },\n      table: {\n        category: 'Properties',\n      },\n    },\n  },\n};\n\nexport const Base = storyCreator('Shared::Navigation::Sidenav::ExternalLink');\n\nexport function AllVariations() {\n  return {\n    template: hbs`\n    <Shared::Navigation::Sidenav>\n      <Shared::Navigation::Sidenav::ExternalLink @text=\"Default style\" @icon=\"cloud\" @href=\"https://www.forestadmin.com\" />\n      <Shared::Navigation::Sidenav::ExternalLink @text=\"Secondary\" @icon=\"cloud\" @style=\"secondary\" @href=\"https://www.forestadmin.com\"/>\n\n    </Shared::Navigation::Sidenav>`,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<dd\\n  class=\\\"c-shared-navigation-sidenav-external-link c-shared-navigation-sidenav-external-link--style-{{or\\n      @style\\n      \\'default\\'\\n    }}\\\"\\n  data-test-shared-navigation-sidenav-external-link\\n  ...attributes\\n>\\n\\n  <a\\n    href={{@href}}\\n    target=\\\"_blank\\\"\\n    rel=\\\"noopener noreferrer\\\"\\n    class=\\\"c-shared-navigation-sidenav-external-link__link\\\"\\n    data-test-shared-navigation-sidenav-external-link-a\\n  >\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{@icon}}\\n      @size=\\\"tiny\\\"\\n      class=\\\"c-shared-navigation-sidenav-external-link__icon\\\"\\n      data-test-shared-navigation-sidenav-external-link-icon\\n    />\\n    <span\\n      class=\\\"c-shared-navigation-sidenav-external-link__text\\\"\\n      data-test-shared-navigation-sidenav-external-link-text\\n    >\\n      {{@text}}\\n    </span>\\n\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName=\\\"open_in_new\\\"\\n      @size=\\\"tiny\\\"\\n      class=\\\"c-shared-navigation-sidenav-external-link__icon\\\"\\n    />\\n  </a>\\n</dd>\\n', { moduleName: 'client/shared/components/navigation/sidenav/external-link/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport const NAV_ITEM_STYLES = ['default', 'secondary', 'active'];\nexport type NavItemStyle = (typeof NAV_ITEM_STYLES)[number];\n\ninterface SidenavItemArgs {\n  style?: NavItemStyle;\n  indicator?: string;\n  icon?: string;\n  text: string;\n}\n\n@validateArguments\nexport default class SidenavItemComponent extends Component<SidenavItemArgs> {\n  public static propTypes = {\n    style: PropTypes.oneOf(NAV_ITEM_STYLES),\n    indicator: PropTypes.string,\n    icon: PropTypes.string.isRequired,\n    text: PropTypes.string.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/Navigation/Sidenav/Item',\n  component: 'Shared::Navigation::Sidenav::Item',\n  args: {\n    text: 'Sample text',\n    icon: 'cloud',\n  },\n  argTypes: {\n    text: {\n      type: 'string',\n      description: 'The text to display in the item.',\n      table: {\n        category: 'Properties',\n      },\n    },\n    icon: {\n      type: 'string',\n      description: 'The icon to display in the item.',\n      table: {\n        category: 'Properties',\n      },\n    },\n    indicator: {\n      type: 'string',\n      description: 'The indicator to display in the item.',\n      table: {\n        category: 'Properties',\n      },\n    },\n    style: {\n      type: 'string',\n      description: 'The style of the item.',\n      options: ['default', 'active', 'secondary'],\n      control: { type: 'select' },\n      table: {\n        category: 'Properties',\n      },\n    },\n  },\n};\n\nexport const Base = storyCreator('Shared::Navigation::Sidenav::Item');\n\nexport function AllVariations() {\n  return {\n    template: hbs`\n    <Shared::Navigation::Sidenav>\n      <Shared::Navigation::Sidenav::Item @text=\"Default style\" @icon=\"cloud\" />\n      <Shared::Navigation::Sidenav::Item @text=\"Default style with indicator\" @icon=\"cloud\" @indicator=\"check\" />\n      <Shared::Navigation::Sidenav::Item @text=\"Active\" @icon=\"cloud\" @style=\"active\" />\n      <Shared::Navigation::Sidenav::Item @text=\"Active with indicator\" @icon=\"cloud\" @style=\"active\" @indicator=\"check\"/>\n      <Shared::Navigation::Sidenav::Item @text=\"Secondary\" @icon=\"cloud\" @style=\"secondary\" />\n      <Shared::Navigation::Sidenav::Item @text=\"Secondary with indicator\" @icon=\"cloud\" @style=\"secondary\" @indicator=\"check\" />\n\n    </Shared::Navigation::Sidenav>`,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<dd\\n  class=\\\"c-shared-navigation-sidenav-item c-shared-navigation-sidenav-item--style-{{or\\n      @style\\n      \\'default\\'\\n    }}\\\"\\n  data-test-shared-navigation-sidenav-item\\n  ...attributes\\n>\\n  <button type=\\\"button\\\" class=\\\"c-shared-navigation-sidenav-item__button\\\">\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{@icon}}\\n      @size=\\\"tiny\\\"\\n      class=\\\"c-shared-navigation-sidenav-item__icon\\\"\\n      data-test-shared-navigation-sidenav-item-icon\\n    />\\n\\n    <span\\n      class=\\\"c-shared-navigation-sidenav-item__text\\\"\\n      data-test-shared-navigation-sidenav-item-text\\n    >\\n      {{@text}}\\n    </span>\\n\\n    <Shared::DataDisplay::BetaIcon\\n      @iconName={{or @indicator \\'check_box_outline_blank\\'}}\\n      @size=\\\"tiny\\\"\\n      class=\\\"c-shared-navigation-sidenav-item__indicator c-shared-navigation-sidenav-item__indicator--{{if\\n          @indicator\\n          \\'present\\'\\n          \\'absent\\'\\n        }}\\\"\\n      data-test-shared-navigation-sidenav-item-indicator\\n    />\\n  </button>\\n\\n</dd>\\n', { moduleName: 'client/shared/components/navigation/sidenav/item/template.hbs' });\n","import { storyCreator } from '../../../../../../stories/story-creator';\n\nexport default {\n  title: 'Shared/Navigation/Sidenav/Separator',\n  component: 'Shared::Navigation::Sidenav::Separator',\n  args: {},\n  argTypes: {},\n};\n\nexport const Base = storyCreator('Shared::Navigation::Sidenav::Separator');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<dd\\n  class=\\\"c-shared-navigation-sidenav-separator\\\"\\n  data-test-shared-navigation-sidenav-separator\\n  ...attributes\\n>\\n  <hr class=\\\"c-shared-navigation-sidenav-separator__hr\\\" />\\n</dd>\\n', { moduleName: 'client/shared/components/navigation/sidenav/separator/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/Navigation/Sidenav',\n  component: 'Shared::Navigation::Sidenav',\n  args: {},\n};\n\nexport function CompleteExample() {\n  return {\n    template: hbs`\n    <Shared::Navigation::Sidenav>\n      <Shared::Navigation::Sidenav::Title @text=\"Title\" />\n      <Shared::Navigation::Sidenav::Item @text=\"Cloud\" @icon=\"cloud\" />\n      <Shared::Navigation::Sidenav::Item @text=\"Active item\" @icon=\"check\" @style=\"active\" />\n      <Shared::Navigation::Sidenav::Item @text=\"Item with indicator\" @icon=\"east\" @indicator=\"west\" />\n\n      <Shared::Navigation::Sidenav::Separator />\n      \n      <Shared::Navigation::Sidenav::Title @text=\"Another title\" />\n      <Shared::Navigation::Sidenav::ExternalLink @text=\"Forest Admin\" @icon=\"forest\" @href=\"https://www.forestadmin.com\" />\n    </Shared::Navigation::Sidenav>`,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<dl class=\\\"c-shared-navigation-sidenav\\\" data-test-shared-navigation-sidenav ...attributes>\\n  {{yield}}\\n</dl>\\n', { moduleName: 'client/shared/components/navigation/sidenav/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface SidenavTitleArgs {\n  text: string;\n}\n\n@validateArguments\nexport default class SidenavTitleComponent extends Component<SidenavTitleArgs> {\n  public static propTypes = {\n    text: PropTypes.string.isRequired,\n  };\n}\n","import { storyCreator } from '../../../../../../stories/story-creator';\n\nexport default {\n  title: 'Shared/Navigation/Sidenav/Title',\n  component: 'Shared::Navigation::Sidenav::Title',\n  args: {\n    text: 'Sample text',\n  },\n  argTypes: {\n    text: {\n      type: 'string',\n      description: 'The text to display in the title.',\n      table: {\n        category: 'Properties',\n      },\n    },\n  },\n};\n\nexport const Base = storyCreator('Shared::Navigation::Sidenav::Title');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<dt\\n  class=\\\"c-shared-navigation-sidenav-title\\\"\\n  data-test-shared-navigation-sidenav-title\\n  ...attributes\\n>\\n  {{@text}}\\n</dt>\\n', { moduleName: 'client/shared/components/navigation/sidenav/title/template.hbs' });\n","import { action } from '@ember/object';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nconst AUTO_CLOSE_DELAY_SECONDS = 3;\n\nexport interface OauthRedirectCardArgs {\n  status: 'success' | 'error';\n  successMessage: string;\n  errorMessage?: string;\n}\n\nexport default class OauthRedirectCardComponent extends Component<OauthRedirectCardArgs> {\n  @tracked countdown = AUTO_CLOSE_DELAY_SECONDS;\n\n  private countdownTimer?: ReturnType<typeof setInterval>;\n\n  @action\n  startAutoClose(): void {\n    if (this.args.status !== 'success') {\n      return;\n    }\n\n    this.countdown = AUTO_CLOSE_DELAY_SECONDS;\n\n    this.countdownTimer = setInterval(() => {\n      this.countdown -= 1;\n\n      if (this.countdown <= 0) {\n        clearInterval(this.countdownTimer);\n        window.close();\n      }\n    }, 1000);\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n\n    if (this.countdownTimer) {\n      clearInterval(this.countdownTimer);\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"oauth-redirect-card\\\" {{did-insert this.startAutoClose}} data-test-oauth-redirect-card>\\n  <div class=\\\"oauth-redirect-card__card\\\">\\n    {{#if (eq @status \\'success\\')}}\\n      <div\\n        class=\\\"oauth-redirect-card__icon oauth-redirect-card__icon--success\\\"\\n        data-test-oauth-redirect-card-icon=\\\"success\\\"\\n      >\\n        &#10003;\\n      </div>\\n      <h2 class=\\\"oauth-redirect-card__title\\\" data-test-oauth-redirect-card-title>\\n        Authentication successful\\n      </h2>\\n      <p class=\\\"oauth-redirect-card__message\\\" data-test-oauth-redirect-card-message>\\n        {{@successMessage}}\\n      </p>\\n      <p class=\\\"oauth-redirect-card__countdown\\\" data-test-oauth-redirect-card-countdown>\\n        This window will close in\\n        {{this.countdown}}s\\n      </p>\\n    {{else}}\\n      <div\\n        class=\\\"oauth-redirect-card__icon oauth-redirect-card__icon--error\\\"\\n        data-test-oauth-redirect-card-icon=\\\"error\\\"\\n      >\\n        !\\n      </div>\\n      <h2 class=\\\"oauth-redirect-card__title\\\" data-test-oauth-redirect-card-title>\\n        Authentication failed\\n      </h2>\\n      <p class=\\\"oauth-redirect-card__message\\\" data-test-oauth-redirect-card-message>\\n        {{@errorMessage}}\\n      </p>\\n      <p class=\\\"oauth-redirect-card__countdown\\\" data-test-oauth-redirect-card-countdown>\\n        You can close this window manually.\\n      </p>\\n    {{/if}}\\n  </div>\\n</div>\\n', { moduleName: 'client/shared/components/oauth-redirect-card/template.hbs' });\n","import { assert } from '@ember/debug';\nimport { guidFor } from '@ember/object/internals';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\nimport PropTypes from 'client/utils/prop-types-utils';\n\n@validateArguments\nexport default class PortalContentComponent extends Component {\n  static propTypes = {\n    /** Name of the <Shared::PortalFor> that we are targeting */\n    for: PropTypes.string.isRequired,\n    portalId: PropTypes.string,\n    isOptional: PropTypes.bool,\n  };\n\n  get portalId() {\n    return this.args.portalId || guidFor(this);\n  }\n\n  constructor(...args) {\n    super(...args);\n    this.destinationElement = document.getElementById(`portal-for-${this.args.for}`);\n    if (this.args.isOptional && !this.destinationElement) {\n      console.warn(\n        `No portal destination found for portal-for=\"${this.args.for}\". This is an optional portal, so it will not throw an error.`,\n      );\n      return;\n    }\n\n    assert(\n      `No portal destination found for portal-for=\"${this.args.for}\"`,\n      this.destinationElement,\n    );\n    this.destinationElement.setAttribute('data-portal-content', this.portalId);\n    this.destinationElement.classList.forEach((className) => {\n      if (!className.includes('--')) {\n        this.destinationElement.classList.add(`${className}--open`);\n      }\n    });\n  }\n\n  willDestroy() {\n    const componentId = this.destinationElement?.getAttribute('data-portal-content');\n\n    if (this.portalId === componentId) {\n      this.destinationElement?.classList.forEach((className) => {\n        if (className.endsWith('--open')) {\n          this.destinationElement?.classList.remove(className);\n        }\n      });\n      this.destinationElement?.removeAttribute('data-portal-content');\n    }\n    this.destinationElement = null;\n    super.willDestroy();\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if this.destinationElement}}\\n  {{#in-element this.destinationElement insertBefore=null}}\\n    {{yield}}\\n  {{/in-element}}\\n{{/if}}\\n', { moduleName: 'client/shared/components/portal-content/template.hbs' });\n","import type RouterService from '@ember/routing/router-service';\n\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class SharedPortalForComponent extends Component {\n  private portalElement: HTMLElement | null = null;\n  private mutationObserver: MutationObserver | null = null;\n  @service router: RouterService;\n\n  public readonly defaultPortalId = `${guidFor(this)}-default-portal`;\n  @tracked public shouldDisplayBlock = false;\n\n  get isPortalOpen() {\n    return this.portalElement?.classList.contains('c-shared-portal-for--open');\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.mutationObserver?.disconnect();\n  }\n\n  @action\n  handleDidInsert(element: HTMLElement) {\n    this.portalElement = element;\n\n    // eslint-disable-next-line @typescript-eslint/no-misused-promises\n    this.mutationObserver = new MutationObserver(this.handleMutation);\n    this.mutationObserver.observe(this.portalElement, { attributes: true });\n\n    this.handleMutation();\n  }\n\n  @action\n  handleMutation() {\n    if (!this.portalElement.hasAttribute('data-portal-content')) {\n      this.shouldDisplayBlock = true;\n    } else if (this.portalElement.getAttribute('data-portal-content') !== this.defaultPortalId) {\n      this.shouldDisplayBlock = false;\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  id=\\\"portal-for-{{@name}}\\\"\\n  class=\\\"c-shared-portal-for\\\"\\n  ...attributes\\n  {{did-insert this.handleDidInsert}}\\n></div>\\n\\n{{#if (and (has-block) this.shouldDisplayBlock)}}\\n  <Shared::PortalContent @for={{@name}} @portalId={{this.defaultPortalId}}>\\n    {{~yield~}}\\n  </Shared::PortalContent>\\n{{/if}}\\n', { moduleName: 'client/shared/components/portal-for/template.hbs' });\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/SaveButton',\n  component: 'Shared::SaveButton',\n  args: {\n    ...getDefaultRequiredArgs('Shared::SaveButton'),\n  },\n};\n\nexport const SaveButton = storyCreator('Shared::SaveButton');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{save-shortcut @onSave @isDisabled}}\\n<Shared::Button::BetaButton\\n  @onSave={{@onSave}}\\n  @isDisabled={{@isSaveDisabled}}\\n  @iconName={{if @hasOnlyIcons \\'check\\'}}\\n  @iconSize={{@size}}\\n  @noPadding={{@noPadding}}\\n  @text={{unless @hasOnlyIcons (or @text \\'Save\\')}}\\n  @withoutCallback={{@withoutCallback}}\\n  @size={{or @size \\'normal\\'}}\\n  @type=\\\"primary\\\"\\n  @action={{@onSave}}\\n  @async={{@async}}\\n  @disabled={{@isDisabled}}\\n  class={{@buttonClass}}\\n  data-test-save-button\\n  ...attributes\\n/>\\n', { moduleName: 'client/shared/components/save-button/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class={{get-classes-with-modifiers \\'c-separator\\' (or @size \\'medium\\')}} ...attributes>\\n  {{#if (has-block)}}\\n    <div class=\\\"c-separator__line\\\" />\\n    <div class={{get-classes-with-modifiers \\'c-separator__content\\' (or @size \\'medium\\')}}>\\n      {{yield}}\\n    </div>\\n    <div class=\\\"c-separator__line\\\" />\\n  {{else}}\\n    <div class=\\\"c-separator__line\\\" />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/shared/components/separator/template.hbs' });\n","import { storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/spinner',\n  component: 'Shared::Spinner',\n  args: {},\n};\n\nexport const Loader = storyCreator('Shared::Spinner');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<svg\\n  xmlns=\\\"http://www.w3.org/2000/svg\\\"\\n  width=\\\"14\\\"\\n  height=\\\"14\\\"\\n  viewBox=\\\"0 0 14 14\\\"\\n  fill=\\\"none\\\"\\n  ...attributes\\n>\\n  <circle cx=\\\"7\\\" cy=\\\"7\\\" r=\\\"5.5\\\" class=\\\"c-spinner__background\\\" />\\n  <circle cx=\\\"7\\\" cy=\\\"7\\\" r=\\\"5.5\\\" class=\\\"c-spinner__dash\\\" />\\n</svg>\\n', { moduleName: 'client/shared/components/spinner/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface SvgButtonArgs {\n  svgSrc: string;\n}\n\nexport default class SvgButtonComponent extends Component<SvgButtonArgs> {\n  static readonly propTypes = {\n    svgSrc: PropTypes.string.isRequired,\n  };\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/SvgButton',\n  component: 'Shared::SvgButton',\n  args: {\n    ...getDefaultRequiredArgs('Shared::SvgButton'),\n  },\n};\n\nexport const SvgButton = storyCreator('Shared::ToggableIcon');\n\nexport const SvgButtonDemo = () => {\n  return {\n    template: hbs`\n      <div style=\"display: flex; flex-direction: column; gap: 12px;\">\n        <div>Normal mode: <Shared::SvgButton @svgSrc=\"/img/icons/icon--fork.svg\"  /></div>\n        <div>Disabled mode: <Shared::SvgButton @svgSrc=\"/img/icons/icon--fork.svg\" disabled /></div>\n      </div>\n    `,\n  };\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<button class=\\\"c-shared-svg-button\\\" data-test-shared-svg-button ...attributes type=\\\"button\\\">\\n  <Shared::Svg @src={{@svgSrc}} data-test-shared-svg-button-svg class=\\\"c-shared-svg-button__svg\\\" />\\n</button>\\n', { moduleName: 'client/shared/components/svg-button/template.hbs' });\n","import { action } from '@ember/object';\nimport { waitForPromise } from '@ember/test-waiters';\nimport Component from '@glimmer/component';\n\ninterface SvgArgs {\n  src: string;\n}\n\nexport const SvgComponentFallbackSvg = `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#e3e3e3\"><path d=\"M424-320q0-81 14.5-116.5T500-514q41-36 62.5-62.5T584-637q0-41-27.5-68T480-732q-51 0-77.5 31T365-638l-103-44q21-64 77-111t141-47q105 0 161.5 58.5T698-641q0 50-21.5 85.5T609-475q-49 47-59.5 71.5T539-320H424Zm56 240q-33 0-56.5-23.5T400-160q0-33 23.5-56.5T480-240q33 0 56.5 23.5T560-160q0 33-23.5 56.5T480-80Z\"/></svg>`;\n\nexport default class SvgComponent extends Component<SvgArgs> {\n  private svgLoadPromise: Promise<string> | null = null;\n  private previousSrc: string | null = null;\n\n  constructor(owner: unknown, args: SvgArgs) {\n    super(owner, args);\n\n    this.previousSrc = this.args.src;\n    this.svgLoadPromise = this.loadSvg();\n  }\n\n  async loadSvg() {\n    try {\n      const result = await waitForPromise(fetch(this.args.src, { cache: 'force-cache' }));\n      return waitForPromise(result.text());\n    } catch (error) {\n      console.warn('Failed to fetch SVG:', error);\n      return SvgComponentFallbackSvg;\n    }\n  }\n\n  @action\n  async handleDidInsert(\n    element: SVGElement,\n    { mustForceReload }: { mustForceReload?: boolean } = {},\n  ) {\n    const svg = mustForceReload ? await this.loadSvg() : await this.svgLoadPromise;\n    const parser = new DOMParser();\n    const doc = parser.parseFromString(svg, 'image/svg+xml');\n    const svgElement = doc.documentElement;\n    element.replaceChildren(...svgElement.children);\n    // We keep the svg wrapper so that all the binding of ember works properly\n    // But we still need to set every attributes that is on the <svg> element\n    for (const attribute of svgElement.attributes) {\n      if (attribute.name !== 'class') {\n        element.setAttribute(attribute.name, attribute.value);\n      }\n    }\n  }\n\n  @action\n  async handleDidUpdate(element: SVGElement) {\n    if (this.previousSrc !== this.args.src) {\n      this.previousSrc = this.args.src;\n      return this.handleDidInsert(element, { mustForceReload: true });\n    }\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<svg\\n  class=\\\"c-shared-svg\\\"\\n  data-test-shared-svg\\n  ...attributes\\n  {{did-insert this.handleDidInsert}}\\n  {{did-update this.handleDidUpdate @src}}\\n>\\n</svg>\\n', { moduleName: 'client/shared/components/svg/template.hbs' });\n","import Component from '@glimmer/component';\n\nimport PropTypes from 'client/utils/prop-types-utils';\n\ninterface TextWithStateArgs {\n  text: string;\n  state: 'info' | 'success' | 'error';\n}\n\nexport default class TextWithStateComponent extends Component<TextWithStateArgs> {\n  static readonly propTypes = {\n    text: PropTypes.string,\n    state: PropTypes.oneOf(['info', 'success', 'error']).isRequired,\n  };\n\n  get icon() {\n    if (this.args.state === 'error') {\n      return 'error';\n    } else if (this.args.state === 'success') {\n      return 'check_circle';\n    }\n    return 'info';\n  }\n\n  get isSuccess() {\n    return this.args.state === 'success';\n  }\n\n  get isError() {\n    return this.args.state === 'error';\n  }\n\n  get isInfo() {\n    return this.args.state === 'info';\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/TextWithState',\n  component: 'Shared::TextWithState',\n  args: {\n    ...getDefaultRequiredArgs('Shared::TextWithState'),\n  },\n};\n\nexport const TextWithState = storyCreator('Shared::TextWithState');\n\nexport const InfoState = () => ({\n  template: hbs`<Shared::TextWithState @state=\"info\" @text=\"This is a text with state\" />`,\n});\n\nexport const SuccessState = () => ({\n  template: hbs`<Shared::TextWithState @state=\"success\" @text=\"This is a text with state\" />`,\n});\nexport const ErrorState = () => ({\n  template: hbs`<Shared::TextWithState @state=\"error\" @text=\"This is a text with state\" />`,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div\\n  class={{get-classes-with-modifiers\\n    \\'c-shared-text-with-state\\'\\n    info=this.isInfo\\n    error=this.isError\\n    success=this.isSuccess\\n  }}\\n  ...attributes\\n>\\n  <Shared::DataDisplay::BetaIcon\\n    @iconName={{this.icon}}\\n    @size=\\\"small\\\"\\n    @class={{get-classes-with-modifiers\\n      \\'c-shared-text-with-state__icon\\'\\n      info=this.isInfo\\n      error=this.isError\\n      success=this.isSuccess\\n    }}\\n    data-test-shared-text-with-state-icon\\n  />\\n  <p\\n    class={{get-classes-with-modifiers\\n      \\'c-shared-text-with-state__text\\'\\n      info=this.isInfo\\n      error=this.isError\\n      success=this.isSuccess\\n    }}\\n    data-test-shared-text-with-state-text\\n  >\\n    {{#if @text}}\\n      {{@text}}\\n    {{else}}\\n      {{yield}}\\n    {{/if}}\\n  </p>\\n</div>\\n', { moduleName: 'client/shared/components/text-with-state/template.hbs' });\n","import hbs from 'htmlbars-inline-precompile';\nimport { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/ToggableIcon',\n  component: 'Shared::ToggableIcon',\n  args: {\n    ...getDefaultRequiredArgs('Shared::ToggableIcon'),\n    icon: '/img/icons/zoom-in.svg',\n    isToggled: false,\n  },\n};\n\nexport const ToggableIcon = storyCreator('Shared::ToggableIcon');\nexport const AllTypes = () => ({\n  template: hbs`\n    <Shared::ToggableIcon @icon=\"/img/icons/zoom-in.svg\" @isToggled={{false}} />\n    <Shared::ToggableIcon @icon=\"/img/icons/zoom-out.svg\" @isToggled={{true}} />\n  `,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<button\\n  class={{get-classes-with-modifiers \\'c-shared-toggable-icon\\' toggled=@isToggled}}\\n  type=\\\"button\\\"\\n  data-test-shared-toggable-icon\\n  ...attributes\\n>\\n  <Shared::Svg @src={{@icon}} class=\\\"c-shared-toggable-icon__icon\\\" alt={{@alt}} />\\n</button>\\n', { moduleName: 'client/shared/components/toggable-icon/template.hbs' });\n","import Component from '@glimmer/component';\n\ninterface ToggleCollapseButtonArgs {\n  isOpen: boolean;\n  onCollapse: () => void | Promise<void>;\n  onOpen: () => void | Promise<void>;\n}\n\n// eslint-disable-next-line ember/no-empty-glimmer-component-classes\nexport default class ToggleCollapseButtonComponent extends Component<ToggleCollapseButtonArgs> {}\n","import { getDefaultRequiredArgs, storyCreator } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/ToggleCollapseButton',\n  component: 'Shared::ToggleCollapseButton',\n  args: {\n    ...getDefaultRequiredArgs('Shared::ToggleCollapseButton'),\n  },\n};\n\nexport const ToggleCollapseButton = storyCreator('Shared::ToggleCollapseButton');\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<div class=\\\"c-shared-toggle-collapse-button\\\" data-test-shared-toggle-collapse-button ...attributes>\\n  {{#if @isOpen}}\\n    <Shared::Button\\n      @iconName=\\\"keyboard_arrow_down\\\"\\n      @type=\\\"ghost\\\"\\n      @size={{or @size \\'micro\\'}}\\n      @onClick={{@onCollapse}}\\n      @mustStopPropagation={{false}}\\n      class=\\\"c-shared-toggle-collapse-button__chevron-button\\\"\\n      data-test-shared-toggle-collapse-button-chevron-button-down\\n      data-test-shared-toggle-collapse-button-chevron-button\\n    />\\n  {{else}}\\n    <Shared::Button\\n      @iconName=\\\"keyboard_arrow_right\\\"\\n      @type=\\\"ghost\\\"\\n      @size={{or @size \\'micro\\'}}\\n      @onClick={{@onOpen}}\\n      @mustStopPropagation={{false}}\\n      class=\\\"c-shared-toggle-collapse-button__chevron-button\\\"\\n      data-test-shared-toggle-collapse-button-chevron-button-right\\n      data-test-shared-toggle-collapse-button-chevron-button\\n    />\\n  {{/if}}\\n</div>\\n', { moduleName: 'client/shared/components/toggle-collapse-button/template.hbs' });\n","import type PopupPositionerSharedBusinessService from 'client/shared/services/popup-positioner';\n\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Component from '@glimmer/component';\n\nimport validateArguments from 'client/decorators/validate';\n\ninterface Args {\n  triggererId: string;\n  visible: boolean;\n  onClose: () => void;\n  exceptSelector?: string;\n}\n\n@validateArguments\nexport default class TooltipLikeModalComponent extends Component<Args> {\n  @service('shared/popup-positioner') private popupPositioner: PopupPositionerSharedBusinessService;\n\n  @action\n  public async initializeModal(element: HTMLElement) {\n    this.popupPositioner.positionPopupBelowElement(\n      this,\n      element,\n      document.getElementById(this.args.triggererId),\n      {\n        topVariable: '--tooltip-like-modal-top',\n        leftVariable: '--tooltip-like-modal-left',\n        visibilityVariable: '--tooltip-like-modal-visibility',\n        align: 'center',\n        verticalPosition: 'top',\n      },\n    );\n  }\n}\n","import { hbs } from 'ember-cli-htmlbars';\nimport { getDefaultRequiredArgs } from 'stories/story-creator';\n\nexport default {\n  title: 'Shared/TooltipLikeModal',\n  component: 'Shared::TooltipLikeModal',\n  args: {\n    ...getDefaultRequiredArgs('Shared::TooltipLikeModal'),\n  },\n};\n\nexport const CompleteExample = (args) => {\n  return {\n    template: hbs`\n    {{! The components Portal and Feature::Modal::Window are added by the modalFeatureService}}\n    <Shared::PortalFor @name=\"tooltip-like-modal\" />\n\n    <div style=\"width: 100%; height: 150px; display: flex; align-items: flex-end; justify-content: center;\">\n      <Shared::Button\n        @type=\"primary\"\n        @text=\"Open modal\"\n        @onClick={{fn (mut this.visible) (not this.visible)}}\n        @isLoading={{false}}\n        id=\"button-id\"\n      />\n    </div>\n\n    <Shared::TooltipLikeModal @triggererId=\"button-id\" @visible={{this.visible}} @onClose={{fn (mut this.visible) false}}>\n      <h1>Modal title</h1>\n      <p>some content ejgm rgjrfsgh jdlsghdfgkldfshbuvldfsblfdb vdfbvdflbvssef</p>\n    </Shared::TooltipLikeModal>`,\n    context: args,\n  };\n};\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{#if @visible}}\\n  <Shared::PortalContent @for=\\\"tooltip-like-modal\\\">\\n    <div class=\\\"c-shared-tooltip-like-modal\\\" ...attributes>\\n      <div\\n        class=\\\"c-shared-tooltip-like-modal__container\\\"\\n        data-test-shared-tooltip-like-modal\\n        {{forest-on-click-outside @onClose exceptSelector=@exceptSelector}}\\n        {{did-insert this.initializeModal}}\\n      >\\n        <div class=\\\"c-shared-tooltip-like-modal__content\\\">\\n          {{yield}}\\n        </div>\\n      </div>\\n    </div>\\n  </Shared::PortalContent>\\n{{/if}}\\n', { moduleName: 'client/shared/components/tooltip-like-modal/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/Typography/Code',\n  component: 'Shared::Typography::Code',\n  argTypes: {\n    size: {\n      type: 'string',\n      description: 'The size of the text.',\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: 'md' },\n      },\n      options: ['xs', 'sm', 'md', 'lg', 'xl'],\n      control: { type: 'select' },\n    },\n  },\n  args: {\n    size: 'md',\n  },\n};\n\nexport const Base = (args) => ({\n  template: hbs`<Shared::Typography::Code @size={{this.size}}>npm install -s</Shared::Typography::Code>`,\n  context: args,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('<code\\n  class=\\\"c-shared-typography-code c-shared-typography-code--size-{{or @size \\'md\\'}}\\\"\\n  data-test-shared-typography-code\\n  ...attributes\\n>\\n  {{~yield~}}\\n</code>\\n{{~! remove spaces ~}}\\n', { moduleName: 'client/shared/components/typography/code/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/Typography/Link',\n  component: 'Shared::Typography::Link',\n  argTypes: {},\n  args: {},\n};\n\nexport const Base = () => ({\n  template: hbs`<Shared::Typography::Link href=\"https://www.forestadmin.com\" target=\"_blank\">Forest Admin</Shared::Typography::Link>\n`,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! template-lint-disable link-href-attributes }}\\n<a class=\\\"c-shared-typography-link\\\" data-test-shared-typography-link ...attributes>\\n  {{~yield~}}\\n</a>\\n{{~! remove spaces ~}}\\n', { moduleName: 'client/shared/components/typography/link/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/Typography/Paragraph',\n  component: 'Shared::Typography::Paragraph',\n  argTypes: {\n    size: {\n      type: 'string',\n      description: 'The size of the text.',\n      table: {\n        category: 'Properties',\n        defaultValue: { summary: 'md' },\n      },\n      options: ['xs', 'sm', 'md', 'lg', 'xl'],\n      control: { type: 'select' },\n    },\n  },\n  args: {\n    size: 'md',\n  },\n};\n\nexport const Base = (args) => ({\n  template: hbs`<Shared::Typography::Paragraph @size={{this.size}}>\n    Lorem ipsum dolor sit amet, consectetur adipiscing elit,\n    sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n    Ut enim ad minim veniam,\n    quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\n    Excepteur sint occaecat cupidatat non proident,\n    sunt in culpa qui officia deserunt mollit anim id est laborum.\n  </Shared::Typography::Paragraph>`,\n  context: args,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! source: https://www.figma.com/file/hWgL6DteozZoHGbFPO2daf/DS24?node-id=1%3A1544&mode=dev}}\\n<p\\n  class=\\\"c-shared-typography-paragraph c-shared-typography-paragraph--size-{{or @size \\'md\\'}}\\\"\\n  data-test-shared-typography-paragraph\\n  ...attributes\\n>\\n  {{yield}}\\n</p>\\n', { moduleName: 'client/shared/components/typography/paragraph/template.hbs' });\n","import { hbs } from 'ember-cli-htmlbars';\n\nexport default {\n  title: 'Shared/Typography/Subtitle2',\n  component: 'Shared::Typography::Subtitle2',\n  argTypes: {},\n  args: {},\n};\n\nexport const Base = () => ({\n  template: hbs`<Shared::Typography::Subtitle2>Lorem ipsum</Shared::Typography::Subtitle2>\n`,\n});\n","import { hbs } from 'ember-cli-htmlbars';\nexport default hbs('{{! source: https://www.figma.com/file/hWgL6DteozZoHGbFPO2daf/DS24?node-id=1%3A1544&mode=dev}}\\n<h6 class=\\\"c-shared-typography-subtitle2\\\" data-test-shared-typography-subtitle2 ...attributes>\\n  {{yield}}\\n</h6>\\n', { moduleName: 'client/shared/components/typography/subtitle2/template.hbs' });\n","import { isArray } from '@ember/array';\nimport Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\n// eslint-disable-next-line ember/no-classic-classes\nexport default Helper.extend({\n  router: service(),\n\n  compute([routeName, ...args]) {\n    return () => {\n      if (routeName.startsWith('http')) {\n        window.open(routeName, '_blank');\n        return;\n      }\n\n      const routeParameters =\n        args.length === 1 && (args[0] === undefined || isArray(args[0])) ? args[0] || [] : args;\n      this.router.transitionTo(routeName, ...routeParameters);\n    };\n  },\n});\n","import { helper } from '@ember/component/helper';\n\nexport function add([a, b]: [number, number]): number {\n  return a + b;\n}\n\nexport default helper(add);\n","import { isArray } from '@ember/array';\nimport { helper as buildHelper } from '@ember/component/helper';\n\nexport function arrayContains([array, value]) {\n  if (!isArray(array)) {\n    return false;\n  }\n  return array.includes(value);\n}\n\nexport default buildHelper(arrayContains);\n","import { isArray } from '@ember/array';\nimport { helper as buildHelper } from '@ember/component/helper';\n\nexport function arrayOfObjectsContains([array, key, value]) {\n  if (!isArray(array)) {\n    return false;\n  }\n  return array.some((element) => element[key] === value);\n}\n\nexport default buildHelper(arrayOfObjectsContains);\n","import Helper from '@ember/component/helper';\nimport { pluralize } from 'ember-inflector';\n\nexport default class AttuneNameWithCount extends Helper {\n  compute([count, name]: [number, string]) {\n    if (!name) return null;\n\n    if (!count || count === 0) {\n      return name;\n    }\n\n    return `${count} ${count > 1 ? pluralize(name) : name}`;\n  }\n}\n","import { helper } from '@ember/component/helper';\n\nexport function bool([prop]) {\n  return !!prop;\n}\n\nexport default helper(bool);\n","import { helper } from '@ember/component/helper';\n\nexport function capitalizeText(value) {\n  if (!value) {\n    return null;\n  }\n\n  const valueFormatted = typeof value === 'string' ? value : value.toString();\n  return `${valueFormatted.charAt(0).toUpperCase()}${valueFormatted.slice(1)}`;\n}\n\nexport default helper(capitalizeText);\n","import Helper from '@ember/component/helper';\n\ntype AnyCustomFunction = (...args: unknown[]) => unknown;\ntype ChainFnHelperArgs = {\n  Args: {\n    Positional: AnyCustomFunction[];\n  };\n  Return: (...args: unknown[]) => Promise<unknown>;\n};\n\nexport default class ChainFnHelper extends Helper<ChainFnHelperArgs> {\n  compute(functions: AnyCustomFunction[]) {\n    return async (...args: unknown[]) => {\n      let result: unknown;\n      // eslint-disable-next-line no-restricted-syntax\n      for (const functionToCall of functions) {\n        // eslint-disable-next-line no-await-in-loop\n        result = await functionToCall(...args);\n      }\n      return result;\n    };\n  }\n}\n","import { helper } from '@ember/component/helper';\n\nexport function compute([functionToCall]) {\n  return functionToCall();\n}\n\nexport default helper(compute);\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nexport default class CurrentUserHelper extends Helper {\n  @service currentUser;\n\n  compute([methodName, ...parameters]) {\n    return methodName ? this.currentUser[methodName](...parameters) : this.currentUser;\n  }\n}\n","import { helper } from '@ember/component/helper';\nimport { dasherize } from '@ember/string';\n\nfunction dasherizeHelper([text]: [string]) {\n  return dasherize(text);\n}\n\nexport default helper(dasherizeHelper);\n","import { helper as buildHelper } from '@ember/component/helper';\n\nexport function decrement([value]) {\n  if (Number.isNaN(value)) return null;\n  return value - 1;\n}\n\nexport default buildHelper(decrement);\n","import { helper } from '@ember/component/helper';\nimport { isNone } from '@ember/utils';\n\n// NOTICE: default to second parameter if first parameter is null or undefined\nexport function defaultTo(params) {\n  if (!params || !params.length) {\n    return undefined;\n  }\n  if (params.length === 1) {\n    return params[0];\n  }\n\n  return isNone(params[0]) ? params[1] : params[0];\n}\n\nexport default helper(defaultTo);\n","import { helper as buildHelper } from '@ember/component/helper';\n\nexport default buildHelper(([collection, record]) => {\n  const value = record.get(collection.get('displayFieldWithNamespace'));\n  const isStringNotEmpty = !!(!!value && `${value}`.trim());\n  const isIntegerZero = value === 0;\n\n  return isStringNotEmpty || isIntegerZero ? value.toString() : record.get('id');\n});\n","import { helper as buildHelper } from '@ember/component/helper';\nimport { pluralize, singularize } from 'ember-inflector';\n\nexport function displayNamePluralize([singular, plural, count]) {\n  if (!singular && !plural) {\n    return null;\n  }\n\n  if (count && count === 1) {\n    return singular || singularize(plural);\n  }\n  return plural || pluralize(singular);\n}\n\nexport default buildHelper(displayNamePluralize);\n","import { helper } from '@ember/component/helper';\n\nexport function doNothingFunction() {\n  return () => {};\n}\n\nexport default helper(doNothingFunction);\n","import { helper as buildHelper } from '@ember/component/helper';\n\nexport function firstLetter([word]) {\n  if (!word) {\n    return null;\n  }\n  return word[0];\n}\n\nexport default buildHelper(firstLetter);\n","import { helper } from '@ember/component/helper';\n\nimport { formatDuration } from 'client/utils/date-helper';\n\n/**\n * Format seconds to a human-readable duration\n *\n * @param {[number]} [durationInSeconds]\n * @returns {string} - human-readable duration e.g. \"1h 42min 12sec\"\n *\n * @example\n * {{format-duration 31622400}} // \"1yr 1d\"\n * {{format-duration 6350400}} // \"2mo 15d\"\n * {{format-duration 259200}} // \"3d\"\n */\nfunction formatDurationHelper([durationInSeconds]: [number]) {\n  return formatDuration(durationInSeconds);\n}\n\nexport default helper(formatDurationHelper);\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nexport default class FormatNumberToCompactLocale extends Helper {\n  @service locale;\n\n  compute([number]) {\n    if (typeof number === 'string') return number;\n\n    return Intl.NumberFormat(this.locale.currentLocale, { notation: 'compact' }).format(number);\n  }\n}\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nimport formatNumber from 'client/utils/format-number';\n\nexport function formatNumberToLocale(number, locale) {\n  const num = Number.parseFloat(number);\n  if (Number.isNaN(num) || !Number.isFinite(num)) return number;\n  return formatNumber(num, { locale });\n}\n\nexport default class FormatNumberToLocale extends Helper {\n  @service locale;\n\n  compute([number]) {\n    return formatNumberToLocale(number, this.locale.currentLocale);\n  }\n}\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nimport formatNumber from 'client/utils/format-number';\n\nexport function formatNumberToPercentage(number, locale) {\n  return formatNumber(number, {\n    locale,\n    style: 'percent',\n    minimumFractionDigits: 2,\n    maximumFractionDigits: 2,\n  });\n}\n\nexport default class FormatNumberToPercentage extends Helper {\n  @service locale;\n\n  compute([number]) {\n    return formatNumberToPercentage(number, this.locale.currentLocale);\n  }\n}\n","import { helper } from '@ember/component/helper';\nimport { guidFor } from '@ember/object/internals';\n\nexport default helper(() => {\n  return guidFor({});\n});\n","import { helper as buildHelper } from '@ember/component/helper';\n\nimport CssClassHelper from 'client/utils/css-class-helper';\n\nexport function getClassesWithModifiers([baseClassName, ...staticModifiers], modifiers = {}) {\n  const cssClassHelper = new CssClassHelper(baseClassName);\n\n  Object.keys(modifiers).forEach((modifier) => {\n    cssClassHelper.addModifier(modifier, modifiers[modifier] || false);\n  });\n\n  staticModifiers.forEach((modifier) => {\n    if (modifier) {\n      cssClassHelper.addModifier(modifier);\n    }\n  });\n  return cssClassHelper.generateClasses();\n}\n\nexport default buildHelper(getClassesWithModifiers);\n","import { helper } from '@ember/component/helper';\n\nimport AbstractModel from 'client/data/models/abstract-model';\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\nimport { getLinkValueToDisplay } from 'client/utils/reference-field-utils';\n\nexport function getDisplayedLinkValue([field, record]) {\n  const rawValue = record[field.attributeNameWithRelationships];\n\n  const collection =\n    field.referenceModel\n    || (rawValue instanceof AbstractModel && getCollectionFromRecord(rawValue));\n\n  return rawValue ? getLinkValueToDisplay(collection, rawValue) : null;\n}\n\nexport default helper(getDisplayedLinkValue);\n","import { isArray } from '@ember/array';\nimport { helper } from '@ember/component/helper';\n\nexport function getLinkToModels([models]) {\n  const linkModels = [];\n\n  if (models) {\n    if (isArray(models)) {\n      linkModels.pushObjects(models);\n    } else {\n      linkModels.pushObject(models);\n    }\n  }\n\n  return linkModels;\n}\n\nexport default helper(getLinkToModels);\n","import { helper } from '@ember/component/helper';\n\nexport function getRecordIdentifier([collection, record]) {\n  const fieldName = collection.displayFieldWithNamespace;\n\n  return record?.[fieldName] && fieldName !== 'id' ? record[fieldName] : `#${record?.id}`;\n}\n\nexport default helper(getRecordIdentifier);\n","import { helper } from '@ember/component/helper';\nimport { htmlSafe } from '@ember/template';\n\nexport function htmlSafeHelper([string]) {\n  return htmlSafe(string);\n}\n\nexport default helper(htmlSafeHelper);\n","import { helper as buildHelper } from '@ember/component/helper';\n\nexport default buildHelper((integration) => {\n  if (!integration) {\n    return integration;\n  }\n  return integration.replace('.', '');\n});\n","import { helper as buildHelper } from '@ember/component/helper';\n\nexport function increment([value]) {\n  if (Number.isNaN(value)) return null;\n  return value + 1;\n}\n\nexport default buildHelper(increment);\n","import { helper as buildHelper } from '@ember/component/helper';\n\nexport default buildHelper(([leftSide, rightSide]) => {\n  return leftSide === rightSide;\n});\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nexport default class IsLayoutEditorHelper extends Helper {\n  @service currentUser;\n\n  compute() {\n    return this.currentUser.editMode;\n  }\n}\n","import Helper from '@ember/component/helper';\n\nexport function isTextTruncated(elementSelector: string) {\n  const element: HTMLElement = document.querySelector(elementSelector);\n  if (!element) {\n    return false;\n  }\n  return element.offsetWidth < element.scrollWidth;\n}\n\nexport default class IsTextTruncatedHelper extends Helper {\n  private resizeObserver: ResizeObserver;\n\n  willDestroy() {\n    this.resizeObserver?.disconnect();\n    super.willDestroy();\n  }\n\n  compute([elementSelector]: [string]) {\n    if (this.isDestroying || this.isDestroyed) {\n      return false;\n    }\n\n    if (!this.resizeObserver) {\n      const element: HTMLElement = document.querySelector(elementSelector);\n      if (element) {\n        this.resizeObserver = new ResizeObserver(() => this.recompute());\n        this.resizeObserver.observe(element);\n      }\n    }\n    return isTextTruncated(elementSelector);\n  }\n}\n","import { helper as buildHelper } from '@ember/component/helper';\n\nexport function jsonStringify([value, replacer, space]) {\n  return JSON.stringify(value, replacer, space || 4);\n}\n\nexport default buildHelper(jsonStringify);\n","import { helper as buildHelper } from '@ember/component/helper';\n\nexport function lowercaseText([value]) {\n  if (!value) {\n    return null;\n  }\n  return value.toLowerCase();\n}\n\nexport default buildHelper(lowercaseText);\n","import { helper as buildHelper } from '@ember/component/helper';\n\nexport function numberOfLines([value]) {\n  return (value.match(/\\n/g) || '').length + 1;\n}\n\nexport default buildHelper(numberOfLines);\n","import { helper } from '@ember/component/helper';\n\nexport function numberToHumanSize([size], { roundAmount = 0 }) {\n  const thresh = 1000;\n  const units = ['kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\n\n  if (Math.abs(size) < thresh) {\n    return `${size} B`;\n  }\n\n  let unitIndex = -1;\n  let bytes = size;\n  do {\n    bytes /= thresh;\n    unitIndex += 1;\n  } while (Math.abs(bytes) >= thresh && unitIndex < units.length - 1);\n\n  return `${bytes.toFixed(roundAmount)} ${units[unitIndex]}`;\n}\n\nexport default helper(numberToHumanSize);\n","import { helper } from '@ember/component/helper';\n\nexport default helper(([value]) => {\n  return value;\n});\n","import { helper as buildHelper } from '@ember/component/helper';\n\nexport default buildHelper(([action]) => {\n  if (typeof action === 'function') {\n    return action;\n  }\n\n  return (i) => i;\n});\n","import { helper } from '@ember/component/helper';\nimport { assert } from '@ember/debug';\n\nexport function preventDefault([handler]) {\n  assert(\n    `Expected '${handler}' to be a function, if present.`,\n    !handler || typeof handler === 'function',\n  );\n\n  return function (event) {\n    assert(\n      `Expected '${event}' to be an Event and have a 'preventDefault' method.`,\n      event && typeof event.preventDefault === 'function',\n    );\n\n    event.preventDefault();\n\n    if (handler) {\n      handler(event);\n    }\n  };\n}\n\nexport default helper(preventDefault);\n","import Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\n\nimport priceFormatter from 'client/utils/price-formatter';\n\nexport function formatPrice(value, field, locale) {\n  return priceFormatter.format(value, field.widgetEdit || field.widgetDisplay, locale);\n}\n\nexport default class Price extends Helper {\n  @service locale;\n\n  compute([value, field]) {\n    return formatPrice(value, field, this.locale.currentLocale);\n  }\n}\n","import { helper as buildHelper } from '@ember/component/helper';\n\nexport default buildHelper(([str, context]) => {\n  return str.replace(':id', context.get('id'));\n});\n","import { getOwner } from '@ember/application';\nimport Helper from '@ember/component/helper';\nimport { assert, deprecate } from '@ember/debug';\nimport { join } from '@ember/runloop';\nimport { service } from '@ember/service';\n\nfunction getCurrentRouteNames(router) {\n  const routeNames = [];\n\n  let currentRouteInfo = router.currentRoute || router._router?.currentRoute;\n  while (currentRouteInfo) {\n    routeNames.push(currentRouteInfo.name.replaceAll('.', '/'));\n    currentRouteInfo = currentRouteInfo.parent;\n  }\n\n  return routeNames;\n}\n\nexport default class extends Helper {\n  @service router;\n\n  compute([actionName, ...params]) {\n    deprecate('route-action helper is deprecated, please use simple function instead.', false, {\n      id: 'forest:route-action-helper',\n      for: 'forestadmin',\n      since: { available: '1.0.0' },\n      until: '2.0.0',\n    });\n\n    const { router } = this;\n    assert('[route-action-helper] Unable to lookup router', router);\n\n    return (...invocationArgs) => {\n      const { action, handler } = this._getRouteWithAction(actionName);\n      return join(handler, action, ...params, ...invocationArgs);\n    };\n  }\n\n  _getRouteWithAction(actionName) {\n    let routeAction;\n    let action;\n\n    const currentRouteNames = getCurrentRouteNames(this.router);\n    for (let index = 0; index < currentRouteNames.length && !action; index += 1) {\n      const route = getOwner(this).lookup(`route:${currentRouteNames[index]}`);\n      if (\n        typeof route[actionName] === 'function'\n        || typeof route.actions?.[actionName] === 'function'\n      ) {\n        action = route[actionName] || route.actions[actionName];\n        routeAction = route;\n      }\n    }\n\n    return currentRouteNames.length ? { action, handler: routeAction } : { noCurrentRoute: true };\n  }\n}\n","import Helper from '@ember/component/helper';\nimport { action } from '@ember/object';\n\nimport { KEY, isCommandPlusKeyPressed } from 'client/utils/keyboard';\n\ntype SaveShortcutArgs = {\n  Args: {\n    Named: object;\n    Positional: [() => Promise<void>, boolean?];\n  };\n  Return: void;\n};\n\nexport default class SaveShortcut extends Helper<SaveShortcutArgs> {\n  saveFunction: () => Promise<void> | null = null;\n  isSaveDisabled = true;\n\n  // eslint-disable-next-line ember/classic-decorator-hooks\n  init() {\n    super.init();\n    this.initEventListener();\n  }\n\n  initEventListener() {\n    document.addEventListener('keydown', this.onKeyDown);\n  }\n\n  compute([save, isSaveDisabled = false]: [() => Promise<void>, boolean]) {\n    this.saveFunction = save;\n    this.isSaveDisabled = isSaveDisabled;\n  }\n\n  @action\n  async onKeyDown(event: KeyboardEvent) {\n    if (event.repeat) return;\n\n    if (isCommandPlusKeyPressed(event, KEY.KEY_S)) {\n      event.preventDefault();\n      if (!this.isSaveDisabled) {\n        await this.saveFunction();\n      }\n    }\n  }\n\n  willDestroy() {\n    document.removeEventListener('keydown', this.onKeyDown);\n  }\n}\n","import { helper as buildHelper } from '@ember/component/helper';\nimport { startCase } from 'lodash';\n\nexport function sentenceCase([value]) {\n  if (!value) {\n    return '';\n  }\n\n  const result = startCase(value).toLowerCase();\n  return result.charAt(0).toUpperCase() + result.slice(1);\n}\n\nexport default buildHelper(sentenceCase);\n","import { helper as buildHelper } from '@ember/component/helper';\n\nexport function setFallbackImageSource([defaultImageSource]) {\n  return (event) => {\n    event.target.src = defaultImageSource;\n  };\n}\n\nexport default buildHelper(setFallbackImageSource);\n","import { helper } from '@ember/component/helper';\n\nfunction slice([string], { start, upTo }) {\n  if (!upTo) {\n    return string.slice(start);\n  }\n  return string.slice(start, upTo);\n}\n\nexport default helper(slice);\n","import { helper } from '@ember/component/helper';\nimport { assert } from '@ember/debug';\n\nexport function stopPropagation([handler]) {\n  assert(\n    `Expected '${handler}' to be a function, if present.`,\n    !handler || typeof handler === 'function',\n  );\n\n  return function (event) {\n    assert(\n      `Expected '${event}' to be an Event and have a 'stopPropagation' method.`,\n      event && typeof event.stopPropagation === 'function',\n    );\n\n    event.stopPropagation();\n\n    if (handler) {\n      handler(event);\n    }\n  };\n}\n\nexport default helper(stopPropagation);\n","import { helper } from '@ember/component/helper';\nimport Model from '@ember-data/model';\n\nexport function stringify([value]) {\n  if (value instanceof Model) {\n    return value.id;\n  }\n\n  return typeof value === 'string' ? value : JSON.stringify(value);\n}\n\nexport default helper(stringify);\n","import { helper } from '@ember/component/helper';\n\nfunction substring([string], { start, end }) {\n  return string.substring(start || 0, end);\n}\n\nexport default helper(substring);\n","import type { SafeString } from '@ember/template/-private/handlebars';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type HtmlSanitizerService from 'client/legacy/services/html-sanitizer';\nimport type AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\nimport Helper from '@ember/component/helper';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\nimport { restartableTask, timeout } from 'ember-concurrency';\nimport moment from 'moment';\n\nimport { escapeHTML } from 'client/utils/string-utils';\nimport { wrapTemplatingValueInHTML } from 'client/utils/templating-helper/abstract-templating-helper';\nimport CurrentDateTemplatingHelper from 'client/utils/templating-helper/current-date-templating-helper';\n\nexport function templatingInjector(\n  text: string,\n  {\n    templatingHelper,\n    getVariableValue = null,\n    isPlainText = false,\n  }: {\n    templatingHelper: AbstractTemplatingHelper;\n    getVariableValue?: (templatingKey: string) => unknown;\n    isPlainText?: boolean;\n  },\n) {\n  if (isPlainText) {\n    return templatingHelper.injectVariablesIntoStringWithoutValidation(text, {\n      getVariableValue,\n      expectedType: 'String',\n    }) as string;\n  }\n\n  const injectedText = templatingHelper.injectVariablesIntoStringWithoutValidation(\n    escapeHTML(text),\n    {\n      getVariableValue,\n      expectedType: 'String',\n    },\n  ) as string;\n  return htmlSafe(injectedText);\n}\n\ntype TemplatingInjectorArgs = {\n  Args: {\n    Named: {\n      templatingHelper: AbstractTemplatingHelper;\n      plainText?: boolean;\n    };\n    Positional: [string];\n  };\n  Return: string | SafeString;\n};\n\nexport default class TemplatingInjector extends Helper<TemplatingInjectorArgs> {\n  @service currentUser: CurrentUserService;\n  @service htmlSanitizer: HtmlSanitizerService;\n\n  buildGetVariableValue(templatingHelper: AbstractTemplatingHelper, isPlainText: boolean) {\n    return (templatingKey: string) => {\n      if (this.currentUser.editMode || !templatingHelper.isContextSet([templatingKey])) {\n        const templatingValue = templatingKey.split('.').at(-1);\n        if (isPlainText) return templatingValue;\n        return wrapTemplatingValueInHTML(templatingValue);\n      }\n\n      const value = templatingHelper.getVariableValue(templatingKey);\n      return typeof value === 'string' ? this.htmlSanitizer.escapeText(value) : value;\n    };\n  }\n\n  compute(\n    [text]: [string],\n    {\n      templatingHelper,\n      plainText = false,\n    }: { templatingHelper: AbstractTemplatingHelper; plainText?: boolean },\n  ): string | SafeString {\n    if (\n      typeof text === 'string'\n      && text.includes(`{{${CurrentDateTemplatingHelper.templatingKeyPrefix}`)\n    ) {\n      // eslint-disable-next-line no-void\n      void this.refreshDate.perform();\n    }\n\n    const getVariableValue = this.buildGetVariableValue(templatingHelper, plainText);\n    return templatingInjector(text, { templatingHelper, getVariableValue, isPlainText: plainText });\n  }\n\n  async willDestroy() {\n    super.willDestroy();\n    await this.refreshDate.cancelAll();\n  }\n\n  refreshDate = restartableTask(async () => {\n    await timeout(1000 - moment().get('millisecond') + 1);\n    this.recompute();\n  });\n}\n","import { helper as buildHelper } from '@ember/component/helper';\n\nexport function uppercaseText([value]) {\n  if (!value) {\n    return null;\n  }\n  return value.toUpperCase();\n}\n\nexport default buildHelper(uppercaseText);\n","import { helper } from '@ember/component/helper';\nimport { pluralize, singularize } from 'ember-inflector';\n\nexport default helper(([word, count]) => {\n  if (!word) {\n    return null;\n  }\n\n  if (count && count === 1) {\n    return singularize(word);\n  }\n  return pluralize(word);\n});\n","import { helper as buildHelper } from '@ember/component/helper';\nimport { singularize } from 'ember-inflector';\n\nexport default buildHelper(([word]) => {\n  if (!word) {\n    return word;\n  }\n  return singularize(word);\n});\n","import { modifier } from 'ember-modifier';\n\nexport default modifier((element, _, { nestedSelector }) => {\n  const elementToFocus = nestedSelector ? element.querySelector(nestedSelector) : element;\n  elementToFocus.focus();\n\n  return () => {\n    elementToFocus.blur();\n  };\n});\n","import { registerDestructor } from '@ember/destroyable';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport Modifier from 'ember-modifier';\n\nexport default class EventOnClickModifier extends Modifier {\n  @service segment;\n\n  onClick = null;\n  _removeEventListeners = null;\n\n  constructor(owner, args) {\n    super(owner, args);\n    registerDestructor(this, this.removeEventListeners);\n  }\n\n  modify(element, [event, properties]) {\n    if (this.onClick) {\n      this.removeEventListeners();\n    } else {\n      this.onClick = () => this.segment.trackEvent(event, properties);\n      this._removeEventListeners = () => element.removeEventListener('click', this.onClick);\n    }\n    element.addEventListener('click', this.onClick);\n  }\n\n  @action\n  removeEventListeners() {\n    this._removeEventListeners?.();\n  }\n}\n","import { registerDestructor } from '@ember/destroyable';\nimport { action } from '@ember/object';\nimport { service } from '@ember/service';\nimport ClickOutsideModifier from 'ember-click-outside/modifiers/on-click-outside';\n\nexport default class ForestClickOutsideModifier extends ClickOutsideModifier {\n  @service eventBus;\n\n  didInstallTimestamp = null;\n\n  constructor(owner, args) {\n    super(owner, args);\n    registerDestructor(this, this.removeEventListeners);\n  }\n\n  modify(element, positional, named) {\n    if (!this.didInstallTimestamp) {\n      // event.timeStamp is returning a double like 2000.123456 which can't be compared to a Date\n      this.didInstallTimestamp = new Event('click').timeStamp;\n      this.eventBus.on('inputClick', this.handleEventIfNecessary);\n    }\n    return super.modify(element, positional, named);\n  }\n\n  @action\n  removeEventListeners() {\n    this.eventBus.off('inputClick', this.handleEventIfNecessary);\n  }\n\n  @action\n  handleEventIfNecessary(event) {\n    if (this.didInstallTimestamp < event.timeStamp) {\n      this.eventHandler(event);\n    }\n  }\n}\n","import type { SortableItemModifierArgs } from 'ember-sortable/modifiers/sortable-item';\n\nimport SortableItemModifier from 'ember-sortable/modifiers/sortable-item';\n\nexport default class ForestSortableItemModifier extends SortableItemModifier {\n  modify(\n    element: SortableItemModifierArgs['Element'],\n    positional: SortableItemModifierArgs['Args']['Positional'],\n    named: SortableItemModifierArgs['Args']['Named'],\n  ) {\n    this.named = named;\n    if (named.disabled) return;\n    super.modify(element, positional, named);\n  }\n\n  removeEventListener() {\n    if (!this.element) return;\n    super.removeEventListener();\n  }\n}\n","import type { ReorderParameters } from 'client/features/folder/services/internal-business/reorder-handler';\nimport type { GroupOptions, SortableEvent, SortableOptions } from 'sortablejs';\n\nimport { modifier } from 'ember-modifier';\nimport Sortable from 'sortablejs';\n\nimport {\n  SORTABLEJS_ITEM_CLASS,\n  SORTABLEJS_ITEM_ID_ATTRIBUTE,\n  SORTABLEJS_ITEM_TYPE_ATTRIBUTE,\n} from 'client/shared/modifiers/sortablejs-item';\n\ntype SortableWithAttachedItem = Sortable & { forestAttachedItem?: unknown };\n\nfunction createSortable(\n  groupElement: HTMLElement,\n  options: SortableOptions,\n  {\n    disabled,\n    onChange,\n    allowedTypes,\n    isElementAllowed,\n    item,\n  }: {\n    disabled?: boolean;\n    onChange?: (event: SortableEvent, ids: ReorderParameters) => void;\n    allowedTypes?: string[];\n    isElementAllowed?: (item: { type: string; id: string }) => boolean;\n    item?: unknown;\n  },\n) {\n  const isItemAllowedToBePut: GroupOptions['pull'] & GroupOptions['put'] = (\n    targetSortable: Sortable,\n    currentSortable: Sortable,\n    draggedElement: HTMLElement,\n  ) => {\n    if (isElementAllowed) {\n      return isElementAllowed({\n        type: draggedElement.getAttribute(SORTABLEJS_ITEM_TYPE_ATTRIBUTE),\n        id: draggedElement.getAttribute(SORTABLEJS_ITEM_ID_ATTRIBUTE),\n      });\n    }\n    return (\n      !allowedTypes\n      || allowedTypes.includes(draggedElement.getAttribute(SORTABLEJS_ITEM_TYPE_ATTRIBUTE))\n    );\n  };\n  const optionsWithDefaults: SortableOptions = {\n    disabled,\n    ...(options || {}),\n    draggable: `.${SORTABLEJS_ITEM_CLASS}`,\n    dataIdAttr: SORTABLEJS_ITEM_ID_ATTRIBUTE,\n    onEnd(event) {\n      const sortableFrom = Sortable.get(event.from) as SortableWithAttachedItem;\n      const sortableTo = Sortable.get(event.to) as SortableWithAttachedItem;\n      return onChange?.(event, {\n        fromIds: sortableFrom.toArray(),\n        toIds: sortableTo?.toArray(),\n        fromItem: sortableFrom.forestAttachedItem,\n        toItem: sortableTo?.forestAttachedItem,\n        movedItemId: event.item.getAttribute(SORTABLEJS_ITEM_ID_ATTRIBUTE),\n      });\n    },\n    emptyInsertThreshold: 50,\n    group: {\n      name: 'all',\n      put: isItemAllowedToBePut,\n      revertClone: true,\n    },\n  };\n  const sortable: SortableWithAttachedItem = Sortable.create(groupElement, optionsWithDefaults);\n  sortable.forestAttachedItem = item;\n  return sortable;\n}\n\nfunction getGroupElement(element: HTMLElement, rootSelector?: string) {\n  return rootSelector ? element.querySelector<HTMLElement>(rootSelector) : element;\n}\n\nexport default modifier(\n  (\n    element,\n    [options]: [SortableOptions],\n    extraOptions: {\n      rootSelector?: string;\n      disabled?: boolean;\n      onChange?: (event: SortableEvent, ids: ReorderParameters) => void;\n      allowedTypes?: string[];\n      isElementAllowed?: (item: { type: string; id: string }) => boolean;\n      item?: unknown;\n    } = {},\n  ) => {\n    if (!(element instanceof HTMLElement)) return null;\n    if (!extraOptions.onChange) {\n      throw new Error('sortablejs-group modifier requires an onChange option');\n    }\n\n    let sortable: SortableWithAttachedItem;\n\n    let groupElement = getGroupElement(element, extraOptions.rootSelector);\n    const mutationObserver = new MutationObserver(() => {\n      groupElement = getGroupElement(element, extraOptions.rootSelector);\n      if (groupElement) {\n        sortable = sortable || createSortable(groupElement, options, extraOptions);\n      } else {\n        sortable?.destroy();\n        sortable = null;\n      }\n    });\n    mutationObserver.observe(element, { childList: true });\n\n    if (groupElement) {\n      sortable = createSortable(groupElement, options, extraOptions);\n    }\n    return () => {\n      mutationObserver.disconnect();\n      sortable?.destroy();\n    };\n  },\n);\n","import { modifier } from 'ember-modifier';\n\nimport Model from 'client/data/models/abstract-model';\n\nconst getItemIdAndType = (\n  item: Model | { id: string; type: string },\n  idAttribute?: string,\n  typeAttribute?: string,\n) => {\n  if (item instanceof Model) {\n    return {\n      id: idAttribute ? (item[idAttribute] as string) : item.id,\n      type: typeAttribute\n        ? (item[typeAttribute] as string)\n        : (item.constructor as unknown as { modelName: string }).modelName,\n    };\n  }\n\n  if (!item?.id || !item?.type) {\n    throw new Error(\n      'Invalid item passed to sortablejs-item modifier. item should be a Model or an object with id and type properties',\n    );\n  }\n\n  return {\n    id: item.id,\n    type: item.type,\n  };\n};\n\nexport const SORTABLEJS_ITEM_ID_ATTRIBUTE = 'data-sortablejs-item-id';\nexport const SORTABLEJS_ITEM_TYPE_ATTRIBUTE = 'data-sortablejs-item-type';\nexport const SORTABLEJS_ITEM_CLASS = 'sortablejs-item';\n\nexport default modifier(\n  (\n    element,\n    [item]: [Model | { id: string; type: string }],\n    { idAttribute, typeAttribute }: { idAttribute?: string; typeAttribute?: string } = {},\n  ) => {\n    const { id, type } = getItemIdAndType(item, idAttribute, typeAttribute);\n    element.setAttribute(SORTABLEJS_ITEM_ID_ATTRIBUTE, id);\n    element.setAttribute(SORTABLEJS_ITEM_TYPE_ATTRIBUTE, type);\n    element.classList.add(SORTABLEJS_ITEM_CLASS);\n\n    // We need to reset the class if Ember re-renders the element's class\n    const observer = new MutationObserver(function () {\n      if (!element.classList.contains(SORTABLEJS_ITEM_CLASS)) {\n        element.classList.add(SORTABLEJS_ITEM_CLASS);\n      }\n    });\n\n    observer.observe(element, {\n      attributes: true,\n      attributeFilter: ['class'],\n      childList: false,\n      characterData: false,\n    });\n\n    return () => {\n      observer.disconnect();\n      element.removeAttribute(SORTABLEJS_ITEM_ID_ATTRIBUTE);\n      element.removeAttribute(SORTABLEJS_ITEM_TYPE_ATTRIBUTE);\n      element.classList.remove(SORTABLEJS_ITEM_CLASS);\n    };\n  },\n);\n","import type {\n  CloudEvent,\n  CloudEventSubscriberId,\n} from 'client/features/cloud/services/internal-business/events';\nimport type CustomApolloService from 'client/legacy/services/apollo';\nimport type {\n  EnvironmentEvent,\n  EnvironmentEventSubscriberId,\n} from 'client/shared/services/environment';\nimport type { DocumentNode } from 'graphql';\n\nimport EmberEvents from '@ember/object/events';\nimport Service from '@ember/service';\nimport { queryManager } from 'ember-apollo-client';\n\nconst DEFAULT_SUBSCRIBER_ID = 'global';\n\n// these are the names of all possible subscribers (components)\nexport type EventSubscriberId = CloudEventSubscriberId | EnvironmentEventSubscriberId | 'global';\n\nexport type EventName = CloudEvent | EnvironmentEvent;\n\ntype EmberApolloSubscription = {\n  apolloUnsubscribe: () => void;\n};\n\nexport type GraphQLQuery = {\n  query: DocumentNode;\n  resultKey?: string;\n  variables: Record<string, string | number>;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type HandlerDefinition = (event?: any) => unknown;\n\nexport type EventSubscriptionOptions = {\n  entityId?: EventSubscriberId;\n  singleUse?: boolean;\n};\n\nexport class EmberEventsWrapper {\n  static addListener = EmberEvents.addListener;\n}\n\nexport default abstract class AbstractEventsService<\n  E extends EventName = EventName,\n> extends Service {\n  // each event type has one subscription\n  private subscriptions: Partial<Record<E, EmberApolloSubscription>> = {};\n  // each event type can have multiple handlers\n  private eventHandlers: Partial<Record<E, Map<string, HandlerDefinition>>> = {};\n\n  @queryManager() apollo: CustomApolloService;\n\n  /**\n   * return the builder of the Apollo event listener, that takes only\n   *  the apollo instance and the callback to build the watcher\n   * @see /app/features/cloud/services/internal-business/events.ts for an example\n   *\n   * @param eventName name of the event to subscribe to\n   */\n  abstract getQraphQLQuery(eventName: E): GraphQLQuery | null;\n\n  async executeHandlers(eventName: E, event?: unknown): Promise<void> {\n    const handlers = Array.from(this.eventHandlers[eventName].values());\n    await Promise.all(handlers.map((handler) => handler(event)));\n  }\n\n  /**\n   * @param options.entityId id of the subscribing component\n   * @param options.singleUse If true, the handler will be removed after one event has been received\n   */\n  async subscribeToEvent(\n    eventName: E,\n    handler: HandlerDefinition,\n    options?: EventSubscriptionOptions & { graphQLQuery?: GraphQLQuery },\n  ) {\n    if (!this.subscriptions[eventName]) {\n      const graphQLQuery = options?.graphQLQuery || this.getQraphQLQuery(eventName);\n\n      if (!graphQLQuery)\n        throw new Error(`The event \"${eventName}\" does not have any defined listener`);\n\n      const { resultKey } = graphQLQuery;\n\n      const subscription = await this.apollo.subscribe<EmberApolloSubscription>(\n        graphQLQuery,\n        resultKey || 'data',\n      );\n\n      EmberEventsWrapper.addListener(subscription, 'event', async (event) =>\n        this.executeHandlers(eventName, event),\n      );\n\n      this.subscriptions[eventName] = subscription;\n    }\n\n    if (!this.eventHandlers[eventName]) this.eventHandlers[eventName] = new Map();\n\n    const subscriberId = options?.entityId || DEFAULT_SUBSCRIBER_ID;\n\n    this.eventHandlers[eventName].set(subscriberId, (event) => {\n      handler(event);\n      if (options?.singleUse) {\n        this.unsubscribeEntityToEvent(subscriberId, eventName);\n      }\n    });\n  }\n\n  /**\n   * @param handlers pairs of eventName/handler to execute when receiving the event\n   * @param options.entityId id of the subscribing component\n   * @param options.singleUse If true, all handlers will be removed after one event has been received\n   */\n  async subscribeToEvents(\n    handlers: Partial<Record<E, HandlerDefinition>>,\n    options?: EventSubscriptionOptions & {\n      graphQLQueries?: (eventName: E) => GraphQLQuery;\n    },\n  ) {\n    const promises = [];\n    const allEventsName = Object.keys(handlers) as E[];\n    const subscriberId = options?.entityId || DEFAULT_SUBSCRIBER_ID;\n\n    Object.entries<HandlerDefinition>(handlers).forEach(([key, handler]) => {\n      const eventName = key as E;\n      const eventCallback = (event) => {\n        handler(event);\n        if (options?.singleUse) {\n          this.unsubscribeEntityToEvents(subscriberId, allEventsName);\n        }\n      };\n\n      promises.push(\n        this.subscribeToEvent(eventName, eventCallback, {\n          ...options,\n          graphQLQuery: options?.graphQLQueries?.(eventName),\n          singleUse: false,\n        }),\n      );\n    });\n\n    await Promise.all(promises);\n  }\n\n  unsubscribeEntityToEvent(entityId: EventSubscriberId, eventName: E) {\n    this.eventHandlers[eventName]?.delete(entityId);\n\n    if (this.subscriptions[eventName] && this.eventHandlers[eventName].size === 0) {\n      this.subscriptions[eventName].apolloUnsubscribe();\n      delete this.subscriptions[eventName];\n    }\n  }\n\n  unsubscribeEntityToEvents(entityId: EventSubscriberId, eventNames: E[]) {\n    eventNames.forEach((eventName) => {\n      this.unsubscribeEntityToEvent(entityId, eventName);\n    });\n  }\n\n  unsubscribeToEvent(eventName: E) {\n    this.unsubscribeEntityToEvent(DEFAULT_SUBSCRIBER_ID, eventName);\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type { FieldType } from 'client/decorators/model-field';\nimport type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type LianaServerFetchService from 'client/legacy/services/liana-server-fetch';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type StoreService from 'client/legacy/services/store';\nimport type TrackerService from 'client/legacy/services/tracker';\nimport type { AdapterError } from 'client/utils/ember-error-util';\nimport type { HttpError } from 'client/utils/errors';\nimport type { Operator } from 'client/utils/operators';\n\nimport Service, { service } from '@ember/service';\nimport { tracked } from 'tracked-built-ins';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport { getFirstErrorDetail, getFirstErrorStatus } from 'client/utils/ember-error-util';\nimport { OPERATORS_CAPABILITIES_PER_TYPE } from 'client/utils/operators';\n\nconst CAPABILITIES_URL = `/forest/_internal/capabilities`;\nconst UNSUPPORTED_OPERATOR_ERROR_REGEX = /The given operator (.+?) is not supported by the column/;\n\ntype AggregationCapabilities = {\n  supportGroups: boolean;\n  supportedDateOperations: string[];\n};\n\ntype Capabilities = {\n  nativeQueryConnections?: { name: string }[];\n  agentCapabilities?: {\n    canUseProjectionOnGetOne?: boolean;\n  };\n  collections: {\n    name: string;\n    fields: {\n      name: string;\n      type: FieldType;\n      operators: string[];\n      isGroupable?: boolean;\n    }[];\n    aggregationCapabilities?: AggregationCapabilities;\n  }[];\n};\n\nexport default class CapabilitiesService extends Service {\n  agentCapabilities = tracked({\n    canUseProjectionOnGetOne: false,\n    canUseNativeQuery: false,\n  });\n\n  @service private readonly tracker: TrackerService;\n  @service private readonly store: StoreService;\n  @service private readonly lianaSession: LianaSessionService;\n  @service private readonly lianaFeatures: LianaFeaturesService;\n  @service private readonly lianaServerFetch: LianaServerFetchService;\n  @service('feature/notification') private notificationService: NotificationFeatureService;\n\n  public async fetchCapabilities(specificCollections?: CollectionModel[]) {\n    if (!this.lianaFeatures.isCapabilitiesAvailable) return;\n\n    const collections = specificCollections ?? this.lianaSession.rendering.get('realCollections');\n    const collectionNames = collections.map(({ name }) => name);\n    try {\n      const result = await this.lianaServerFetch.fetch(CAPABILITIES_URL, {\n        method: 'POST',\n        body: JSON.stringify({\n          collectionNames,\n        }),\n      });\n\n      const capabilities = (await result.json()) as Capabilities;\n\n      this.handleCollections(capabilities, collections);\n      this.handleNativeQueryConnections(capabilities);\n\n      this.agentCapabilities.canUseProjectionOnGetOne =\n        capabilities.agentCapabilities?.canUseProjectionOnGetOne;\n    } catch (error) {\n      this.tracker.captureException(error as Error);\n      console.warn(\n        'Failed to retrieve capabilities from the agent, resorting to default behavior',\n        error,\n      );\n    } finally {\n      if (!this.lianaSession.isAuthenticated()) {\n        // fetch when agent is running\n        this.lianaSession.one(\n          'authenticationSucceeded',\n          this.fetchCapabilities.bind(this) as never,\n        );\n      }\n    }\n  }\n\n  public async handleCapabilitiesError(error: AdapterError | HttpError) {\n    if (\n      getFirstErrorStatus(error) === 400\n      && getFirstErrorDetail(error).match(UNSUPPORTED_OPERATOR_ERROR_REGEX)\n    ) {\n      await this.fetchCapabilities(this.lianaSession.rendering.get('realCollections').toArray());\n      this.notificationService.createToastr(\n        ToastrTypeEnum.Error,\n        'An unsupported operator was used, please retry after clearing your filters.',\n      );\n    }\n  }\n\n  private handleCollections(capabilities: Capabilities, collections: CollectionModel[]) {\n    collections.forEach((collection) => {\n      const { name: collectionName, fields } = collection;\n      const collectionCapabilities = capabilities.collections?.find(\n        ({ name }) => name === collectionName,\n      );\n\n      if (collectionCapabilities?.aggregationCapabilities) {\n        const { supportGroups, supportedDateOperations } =\n          collectionCapabilities.aggregationCapabilities;\n\n        this.store.createRecord('collection-capabilities', {\n          supportGroups: supportGroups !== false,\n          supportedDateOperations,\n          collection,\n        });\n      }\n\n      fields.forEach((field) => {\n        const fieldCapabilities = collectionCapabilities?.fields?.find(\n          ({ name }) => name === field.fieldName,\n        );\n        if (fieldCapabilities) {\n          const validOperatorsPerType = Array.isArray(field.type)\n            ? (OPERATORS_CAPABILITIES_PER_TYPE.Array as Operator[])\n            : (OPERATORS_CAPABILITIES_PER_TYPE[fieldCapabilities.type] as Operator[]);\n\n          this.store.createRecord('field-capabilities', {\n            operators: validOperatorsPerType?.filter(({ name }) =>\n              fieldCapabilities.operators.includes(name),\n            ),\n            isGroupable: fieldCapabilities.isGroupable,\n            field,\n          });\n        }\n      });\n    });\n  }\n\n  private handleNativeQueryConnections(capabilities: Capabilities) {\n    if (capabilities.nativeQueryConnections) {\n      this.agentCapabilities.canUseNativeQuery = true;\n      capabilities.nativeQueryConnections.forEach(({ name }) => {\n        this.store.createRecord('native-query-connection', {\n          name,\n        });\n      });\n    }\n  }\n}\n","import type CurrentOrganizationService from 'client/legacy/services/current-organization';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type LianaSession from 'client/legacy/services/liana-session';\n\nimport Service, { service } from '@ember/service';\n\nexport interface ContactFormValues {\n  firstName: string;\n  lastName: string;\n  company: string;\n  email: string;\n  message: string;\n}\n\nexport default class ContactService extends Service {\n  @service private lianaSession: LianaSession;\n  @service private currentUser: CurrentUserService;\n  @service private currentOrganization: CurrentOrganizationService;\n\n  getContactFormUrl(message: string) {\n    const queryParams = new URLSearchParams();\n    const company = this.currentOrganization.model?.isPersonal\n      ? `${this.lianaSession.currentProject?.name}`\n      : this.currentOrganization.model?.name;\n    queryParams.append('company', company);\n    queryParams.append('message', message);\n\n    if (!this.currentUser.model) {\n      return `https://www.forestadmin.com/forms/support?${queryParams.toString()}`;\n    }\n\n    const { firstName, lastName, email } = this.currentUser.model;\n    queryParams.append('firstname', firstName);\n    queryParams.append('lastname', lastName);\n    queryParams.append('email', email);\n\n    return `https://www.forestadmin.com/forms/support?${queryParams.toString()}`;\n  }\n}\n","import type NotificationFeatureService from 'client/features/notification/services/feature';\nimport type CustomApolloService from 'client/legacy/services/apollo';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type { GraphQLQuery, HandlerDefinition } from 'client/shared/services/abstract/events';\nimport type { DocumentNode } from 'graphql';\n\nimport { service } from '@ember/service';\n\nimport { ToastrTypeEnum } from 'client/features/notification/toastr-item';\nimport queryEnvironmentReady from 'client/gql/subscriptions/environment-ready.graphql';\nimport queryEnvironmentUpdateEnded from 'client/gql/subscriptions/environment-update-ended.graphql';\nimport queryEnvironmentUpdateFailed from 'client/gql/subscriptions/environment-update-failed.graphql';\nimport queryEnvironmentUpdateFinished from 'client/gql/subscriptions/environment-update-finished.graphql';\nimport queryEnvironmentUpdateStarted from 'client/gql/subscriptions/environment-update-started.graphql';\nimport AbstractEventsService from 'client/shared/services/abstract/events';\n\n/**\n * @Onboarding trigger at the end of onboarding animation\n * @CollectionSettings trigger when creating a modelCustomization NoCode Action\n */\nexport type EnvironmentEventSubscriberId = 'Onboarding' | 'CollectionSettings';\n\nexport type EnvironmentEvent =\n  | 'updateStarted'\n  | 'updateEnded'\n  | 'updateFinished'\n  | 'updateFailed'\n  | 'environmentReady';\n\nexport type EnvironmentEventListener = (\n  apollo: CustomApolloService,\n  environmentId: string,\n  callback: HandlerDefinition,\n) => Promise<unknown>;\n\nconst ENVIRONMENT_EVENT_QUERIES: Record<\n  EnvironmentEvent,\n  { query: DocumentNode; resultKey?: string }\n> = {\n  updateStarted: {\n    query: queryEnvironmentUpdateStarted,\n    resultKey: 'environmentUpdateStarted',\n  },\n  updateEnded: {\n    query: queryEnvironmentUpdateEnded,\n    resultKey: 'environmentUpdateEnded',\n  },\n  updateFinished: {\n    query: queryEnvironmentUpdateFinished,\n    resultKey: 'environmentUpdateFinished',\n  },\n  updateFailed: {\n    query: queryEnvironmentUpdateFailed,\n    resultKey: 'environmentUpdateFailed',\n  },\n  environmentReady: {\n    query: queryEnvironmentReady,\n    resultKey: 'environmentReady',\n  },\n};\n\nexport default class EnvironmentSharedBusinessService extends AbstractEventsService<EnvironmentEvent> {\n  @service private readonly lianaSession: LianaSessionService;\n  @service private readonly serverFetch: ServerFetchService;\n  @service('feature/notification')\n  private readonly notificationBusinessService: NotificationFeatureService;\n\n  private environmentToastrId: string;\n\n  async fetchSecretKey(environmentId: number | string): Promise<string> {\n    const response = await this.serverFetch.fetch(\n      `/api/environments/${environmentId}/secretKey`,\n      {\n        method: 'GET',\n      },\n      true,\n    );\n\n    const { secretKey } = (await response.json()) as { secretKey: string };\n\n    return secretKey;\n  }\n\n  override getQraphQLQuery(eventName: EnvironmentEvent, environmentId?: number): GraphQLQuery {\n    if (!environmentId)\n      // Would be removed if a default way of retrieving the currentEnvId was added to this service\n      throw new Error(\n        'EnvironmentSharedBusinessService should always specify an environmentId when subscribing to events',\n      );\n    return {\n      ...ENVIRONMENT_EVENT_QUERIES[eventName],\n      variables: { environmentId },\n    };\n  }\n\n  async displayToastersOnEnvironmentEvents(environmentId: number) {\n    const graphQLQueries = (eventName: EnvironmentEvent) =>\n      this.getQraphQLQuery(eventName, environmentId);\n\n    await this.subscribeToEvents(\n      {\n        updateStarted: this.onEnvironmentUpdateStarted.bind(this),\n        updateFinished: this.onEnvironmentUpdateFinished.bind(this),\n        updateFailed: this.onEnvironmentUpdateFailed.bind(this),\n      },\n      { graphQLQueries },\n    );\n  }\n\n  stopDisplayingToastersOnEnvironmentEvents() {\n    this.unsubscribeEntityToEvents('global', ['updateStarted', 'updateFinished', 'updateFailed']);\n  }\n\n  async onEnvironmentUpdateEnded(\n    entityId: EnvironmentEventSubscriberId,\n    handler: HandlerDefinition,\n    environmentId?: number,\n  ) {\n    const graphQLQuery = this.getQraphQLQuery('updateEnded', environmentId);\n\n    await this.subscribeToEvent('updateEnded', handler, {\n      entityId,\n      graphQLQuery,\n      singleUse: true,\n    });\n  }\n\n  private onEnvironmentUpdateStarted() {\n    if (\n      this.lianaSession.isAuthenticated()\n      && this.lianaSession.currentEnvironment.isDevelopment\n      && !this.lianaSession.currentEnvironment.isFullHostedAgent\n    ) {\n      this.environmentToastrId = this.notificationBusinessService.updateToastr(\n        ToastrTypeEnum.Loading,\n        'Your admin panel is currently being updated. The changes will take place in a few seconds…',\n        this.environmentToastrId,\n        { duration: 0 },\n      );\n    }\n  }\n\n  private onEnvironmentUpdateFinished() {\n    if (\n      this.lianaSession.isAuthenticated()\n      && !this.lianaSession.currentEnvironment.isFullHostedAgent\n    ) {\n      this.environmentToastrId = this.notificationBusinessService.updateToastr(\n        ToastrTypeEnum.Success,\n        'A new version of your admin panel has been deployed. Please refresh your browser.',\n        this.environmentToastrId,\n      );\n    }\n  }\n\n  private onEnvironmentUpdateFailed() {\n    if (this.lianaSession.isAuthenticated()) {\n      this.environmentToastrId = this.notificationBusinessService.updateToastr(\n        ToastrTypeEnum.Error,\n        'An error occurred while updating your admin panel. Please restart your server.',\n        this.environmentToastrId,\n      );\n    }\n  }\n}\n","import type { GrowthBook } from '@growthbook/growthbook';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type DatadogService from 'client/legacy/services/datadog';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport config from 'client/config/environment';\n\nexport enum FeatureFlagsEnum {\n  ProcessDrivenNavigation = 'process-driven-navigation',\n  SideMenuSpeedUp = 'side-menu-speed-up',\n}\n\nexport default class FeatureFlagsSharedBusinessService extends Service {\n  @service('liana-session') private lianaSession: LianaSessionService;\n  @service private currentUser: CurrentUserService;\n  @service private datadog: DatadogService;\n\n  @tracked private gb: GrowthBook | null = null;\n\n  constructor(properties?: object) {\n    super(properties);\n\n    void this.initialize();\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    this.gb?.destroy();\n    this.gb = null;\n  }\n\n  private async initialize() {\n    // Create a GrowthBook instance\n    if (!config.APP.growthBookClientKey) {\n      return;\n    }\n\n    const { GrowthBook } = await import('@growthbook/growthbook');\n\n    this.gb = new GrowthBook({\n      apiHost: 'https://cdn.growthbook.io',\n      clientKey: config.APP.growthBookClientKey,\n      enableDevMode: true,\n      // Targeting attributes\n      attributes: {},\n      onFeatureUsage: (featureKey, result) => {\n        this.datadog.addFeatureFlagEvaluation(featureKey, result.value);\n      },\n    });\n\n    // Download features and experiments from the CDN\n    // Also, start running any Visual Editor or URL Redirect experiments\n    await this.gb.init();\n  }\n\n  async setupUserAndRendering() {\n    await this.gb?.setAttributes({\n      userId: this.currentUser.model?.id,\n      projectId: this.lianaSession.currentProject?.id,\n      environmentId: this.lianaSession.currentEnvironment?.id,\n      teamId: this.lianaSession.currentTeam?.id,\n      renderingId: this.lianaSession.currentRenderingId,\n    });\n  }\n\n  public isFeatureOn(featureKey: FeatureFlagsEnum): boolean {\n    return this.gb?.isOn(featureKey) ?? false;\n  }\n}\n","import type ErrorHandlerService from 'client/legacy/services/error-handler';\n\nimport Service, { service } from '@ember/service';\nimport { waitForPromise } from '@ember/test-waiters';\nimport window from 'ember-window-mock';\n\nimport { throwHttpErrorIfResponseNotOk } from 'client/utils/errors';\n\nexport default class FetchSharedBusinessService extends Service {\n  @service private errorHandler: ErrorHandlerService;\n\n  async fetch(url: string, options?: RequestInit, shouldThrowIfResponseIsNotOk = true) {\n    const timeBefore = Date.now();\n    try {\n      const response = await waitForPromise(window.fetch(url, options));\n\n      if (shouldThrowIfResponseIsNotOk) {\n        await throwHttpErrorIfResponseNotOk(response, options?.method || 'GET');\n      }\n\n      return response;\n    } catch (error) {\n      if (this.errorHandler.isFailedToFetchError(error as Error)) {\n        const timeAfter = Date.now();\n        throw this.errorHandler.makeFailedToFetchError(error as Error, {\n          url,\n          type: options.method,\n          options: options as Record<string, unknown>,\n          duration: timeAfter - timeBefore,\n        });\n      }\n      throw error;\n    }\n  }\n}\n","import type AbstractModel from 'client/data/models/abstract-model';\nimport type { ReorderParameters } from 'client/features/folder/services/internal-business/reorder-handler';\nimport type ServerFetchService from 'client/legacy/services/server-fetch';\nimport type StoreService from 'client/legacy/services/store';\n\nimport Service, { service } from '@ember/service';\n\nimport { UnknownResponseEntityError } from 'client/utils/errors';\n\nexport type LayoutEntityFetchParams = {\n  projectName: string;\n  environmentName: string;\n  teamName: string;\n};\n\nexport default class LayoutSharedBusinessService extends Service {\n  @service private serverFetch: ServerFetchService;\n  @service private store: StoreService;\n\n  public async fetchEntitiesAndPutInStore<T extends AbstractModel>(\n    entityName: 'folder' | 'workflow',\n    { projectName, environmentName, teamName }: LayoutEntityFetchParams,\n    getRelationShips?: (entity: Record<string, unknown>) => Record<string, unknown>,\n  ) {\n    const response = await this.serverFetch.fetch(\n      `/api/${entityName}s/${[projectName, environmentName, teamName]\n        .map(encodeURIComponent)\n        .join('/')}`,\n      {},\n      true,\n    );\n\n    try {\n      const entities = (await response.json()) as Record<string, unknown>[];\n      const content = {\n        data: entities.map((entity) => ({\n          id: entity.id,\n          type: entityName,\n          attributes: entity,\n          relationships: getRelationShips?.(entity),\n        })),\n      };\n\n      return this.store.push(content) as T[];\n    } catch (error) {\n      if (error instanceof SyntaxError && error.message.includes('Unexpected token')) {\n        throw new UnknownResponseEntityError(error, await response.text(), response.status);\n      }\n      throw error;\n    }\n  }\n\n  public async reorderEntities<Entity extends AbstractModel & { position: number }>(\n    entities: Entity[],\n    parameters: ReorderParameters,\n  ) {\n    const modelName = (entities[0].constructor as unknown as { modelName: string }).modelName;\n    entities.forEach((entity) => {\n      const newWorkflowPosition = parameters.toIds.findIndex((id) => id === entity.id);\n      entity.position = newWorkflowPosition;\n    });\n\n    await this.store.layoutBatchUpdate(modelName, entities);\n  }\n\n  public async toggleVisibility<Entity extends AbstractModel & { isVisible: boolean }>(\n    entity: Entity,\n  ) {\n    entity.isVisible = !entity.isVisible;\n    return entity.save();\n  }\n}\n","import type LocalStorageService from 'client/legacy/services/local-storage';\nimport type NavigationState from 'client/shared/states/navigation';\n\nimport Service, { service } from '@ember/service';\n\nexport default class NavigationHandlerBusinessService extends Service {\n  @service private localStorage: LocalStorageService;\n  @service('shared/state/navigation') private navigationState: NavigationState;\n\n  public isItemFolded(item: string, { defaultToFolded = false } = {}) {\n    const localStorageValue = this.localStorage.getItem(item);\n\n    return localStorageValue ? localStorageValue === 'true' : defaultToFolded;\n  }\n\n  public setItemFoldedState(item: string, isFolded: boolean) {\n    this.navigationState.setItemFoldedState(item, isFolded);\n  }\n}\n","import { guidFor } from '@ember/object/internals';\nimport { next } from '@ember/runloop';\nimport Service from '@ember/service';\nimport window from 'ember-window-mock';\n\nimport config from 'client/config/environment';\n\nexport interface PopupPositionOptions {\n  topVariable: string;\n  leftVariable: string;\n  visibilityVariable: string;\n  widthVariable?: string;\n  shouldMatchTargetWidth?: boolean;\n  align?: 'left' | 'right' | 'center';\n  verticalPosition?: 'top' | 'bottom';\n  withGap?: boolean;\n}\n\ninterface TargetDomProperties {\n  width?: number;\n  popupHeight?: number;\n  windowHeight?: number;\n  x?: number;\n  y?: number;\n}\n\nexport default class PopupPositionerSharedBusinessService extends Service {\n  private latestTargetDomProperties: Record<string, TargetDomProperties> = {};\n\n  public positionPopupBelowElement(\n    caller: { isDestroying?: boolean; isDestroyed?: boolean },\n    popupElement: HTMLElement,\n    targetElement: HTMLElement,\n    options: PopupPositionOptions,\n  ) {\n    if (caller.isDestroying || caller.isDestroyed) {\n      delete this.latestTargetDomProperties[guidFor(popupElement)];\n      return;\n    }\n\n    const targetRect = targetElement.getBoundingClientRect();\n    if (!popupElement?.offsetHeight) {\n      next(() => this.positionPopupBelowElement(caller, popupElement, targetElement, options));\n      return;\n    }\n\n    const targetDomProperties = this.getLatestDomPropertiesForPopupElement(popupElement);\n    const isInitialization = Object.keys(targetDomProperties).length === 0;\n\n    if (\n      options.shouldMatchTargetWidth\n      && targetElement.offsetWidth !== targetDomProperties?.width\n    ) {\n      this.setPopupWidth(popupElement, targetElement.offsetWidth, options);\n    }\n    if (\n      targetRect.left !== targetDomProperties?.x\n      || targetRect.top !== targetDomProperties?.y\n      || popupElement.offsetHeight !== targetDomProperties?.popupHeight\n      || window.innerHeight !== targetDomProperties?.windowHeight\n    ) {\n      this.setPopupPosition(popupElement, targetElement, options, targetRect.left, targetRect.top);\n    }\n\n    if (isInitialization) {\n      popupElement.style.setProperty(options.visibilityVariable, 'visible');\n    }\n\n    // Prevent infinite settled in test\n    if (config.environment !== 'test') {\n      next(() => this.positionPopupBelowElement(caller, popupElement, targetElement, options));\n    }\n  }\n\n  private getLatestDomPropertiesForPopupElement(popupElement: HTMLElement) {\n    const id = guidFor(popupElement);\n    if (!this.latestTargetDomProperties[id]) {\n      this.latestTargetDomProperties[id] = {};\n    }\n    return this.latestTargetDomProperties[id];\n  }\n\n  private setPopupWidth(popupElement: HTMLElement, width: number, options: PopupPositionOptions) {\n    popupElement.style.setProperty(options.widthVariable, `${width}px`);\n\n    const domProperties = this.getLatestDomPropertiesForPopupElement(popupElement);\n    domProperties.width = width;\n  }\n\n  private setPopupPosition(\n    popupElement: HTMLElement,\n    targetElement: HTMLElement,\n    options: PopupPositionOptions,\n    x: number,\n    y: number,\n  ) {\n    let marginTop = 0;\n    const gap = options.withGap ? 16 : 8;\n    if (\n      options.verticalPosition === 'top'\n      || y + popupElement.offsetHeight > window.innerHeight - targetElement.offsetHeight\n    ) {\n      marginTop = y - popupElement.offsetHeight - gap;\n      if (marginTop < 0) {\n        marginTop = y + targetElement.offsetHeight + gap;\n        marginTop -= marginTop + popupElement.offsetHeight - window.innerHeight;\n      }\n    } else {\n      marginTop = y + targetElement.offsetHeight + gap;\n    }\n\n    popupElement.style.setProperty(options.topVariable, `${marginTop}px`);\n\n    if (options.align === 'left') {\n      popupElement.style.setProperty(options.leftVariable, `${x}px`);\n    } else if (options.align === 'center') {\n      popupElement.style.setProperty(\n        options.leftVariable,\n        `${x + targetElement.offsetWidth / 2 - popupElement.offsetWidth / 2}px`,\n      );\n    } else {\n      popupElement.style.setProperty(\n        options.leftVariable,\n        `${x + targetElement.offsetWidth - popupElement.offsetWidth}px`,\n      );\n    }\n\n    const targetDomProperties = this.getLatestDomPropertiesForPopupElement(popupElement);\n    targetDomProperties.x = x;\n    targetDomProperties.y = y;\n    targetDomProperties.popupHeight = popupElement.offsetHeight;\n    targetDomProperties.windowHeight = window.innerHeight;\n  }\n}\n","import type RouterService from '@ember/routing/router-service';\n\nimport Service, { service } from '@ember/service';\n\nexport default class QueryParametersStoreSharedBusinessService extends Service {\n  @service private router: RouterService;\n\n  public save(queryParams: Record<string, unknown>) {\n    void this.router.transitionTo({ queryParams });\n  }\n\n  public getCurrent() {\n    return this.router.currentRoute?.queryParams;\n  }\n}\n","import type Transition from '@ember/routing/-private/transition';\n\nimport Service from '@ember/service';\n\nexport type WillTransitionHandler = (transition: Transition) => Promise<boolean>;\nexport default class RouteTransitionHandlerSharedBusinessService extends Service {\n  // a way to let the parent route run willTransition hook before the children routes\n  // which does not seem to be available currently in ember 4.2\n\n  private willTransitionHandlers: WillTransitionHandler[] = [];\n\n  public onWillTransition(handler: WillTransitionHandler) {\n    this.willTransitionHandlers.push(handler);\n  }\n\n  public async handleWillTransition(transition: Transition): Promise<boolean> {\n    // eslint-disable-next-line no-restricted-syntax\n    for (const handler of this.willTransitionHandlers) {\n      // eslint-disable-next-line no-await-in-loop\n      const shouldContinue = await handler(transition);\n      if (!shouldContinue) return true;\n    }\n    return false;\n  }\n}\n","import type ForestSessionService from 'client/legacy/services/forest-session';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport Service, { service } from '@ember/service';\nimport { waitForPromise } from '@ember/test-waiters';\n\nimport config from 'client/config/environment';\nimport S3Uploader from 'client/utils/s3-uploader';\n\nfunction join(...args: string[]): string {\n  return [...args].map((value) => value.trim().replaceAll(/^\\/$/g, '')).join('/');\n}\n\nexport default class S3UploaderSharedBusinessService extends Service {\n  @service('session') private session: ForestSessionService;\n  @service('liana-session') private lianaSession: LianaSessionService;\n\n  get headers() {\n    return {\n      ...(this.session?.data?.authenticated?.token\n        ? { Authorization: `Bearer ${this.session.data.authenticated.token}` }\n        : {}),\n      'Forest-Project-Id': this.lianaSession.currentProject.id,\n      'Forest-Rendering-Id': this.lianaSession.currentRenderingId,\n    };\n  }\n\n  s3UploaderFactory(signingUrl: string) {\n    return new S3Uploader({\n      signingUrl: join(config.APP.apiServerHost, 'api', signingUrl),\n      signingMethod: 'POST',\n      signingFetchSettings: {\n        headers: this.headers,\n        credentials: 'include',\n      },\n    });\n  }\n\n  async uploadToPresignedPostAndReturnVersionId(file: File, signingUrl: string) {\n    const uploader = this.s3UploaderFactory(signingUrl);\n\n    const promise = new Promise((resolve, reject) => {\n      uploader.on('didError', reject);\n      uploader.on('didUpload.withHeaders', ({ headers: responseHeaders }) => {\n        const versionId = responseHeaders.get('x-amz-version-id');\n        if (!versionId)\n          reject(\n            new Error(\n              'No ressource version id was present in the response headers. Did you enable versioning on the bucket ?',\n            ),\n          );\n\n        resolve(versionId);\n      });\n    });\n    await waitForPromise(uploader.upload(file));\n    return promise as Promise<string>;\n  }\n}\n","import type CustomerIoInAppService from 'client/legacy/services/customer-io-in-app';\nimport type DatadogService from 'client/legacy/services/datadog';\nimport type JimoService from 'client/legacy/services/jimo';\nimport type LianaSessionService from 'client/legacy/services/liana-session';\nimport type FeatureFlagsSharedBusinessService from 'client/shared/services/feature-flags';\n\nimport { action } from '@ember/object';\nimport { cancel, later } from '@ember/runloop';\nimport Service, { service } from '@ember/service';\nimport window from 'ember-window-mock';\n\ntype IdleHandle = { type: 'idle'; id: number } | { type: 'later'; id: ReturnType<typeof later> };\n\nfunction runWhenIdle(callback: () => void): IdleHandle {\n  const idleWindow = window as unknown as {\n    requestIdleCallback?: (cb: () => void, options?: { timeout: number }) => number;\n  };\n\n  if (typeof idleWindow.requestIdleCallback === 'function') {\n    return { type: 'idle', id: idleWindow.requestIdleCallback(callback, { timeout: 4000 }) };\n  }\n\n  return { type: 'later', id: later(callback, 2000) };\n}\n\nfunction cancelIdle(handle: IdleHandle | null): void {\n  if (!handle) return;\n  if (handle.type === 'idle') {\n    const idleWindow = window as unknown as { cancelIdleCallback?: (id: number) => void };\n    idleWindow.cancelIdleCallback?.(handle.id);\n  } else {\n    cancel(handle.id);\n  }\n}\n\nexport default class ThirdPartySharedBusinessService extends Service {\n  @service private readonly customerIoInApp: CustomerIoInAppService;\n  @service private datadog: DatadogService;\n  @service private readonly jimo: JimoService;\n  @service private lianaSession: LianaSessionService;\n  @service('shared/feature-flags') private featureFlags: FeatureFlagsSharedBusinessService;\n\n  private deferredThirdPartyInit: IdleHandle | null = null;\n\n  constructor(properties?: object) {\n    super(properties);\n\n    this.deferredThirdPartyInit = runWhenIdle(() => {\n      this.deferredThirdPartyInit = null;\n      if (this.isDestroyed || this.isDestroying) return;\n      this.customerIoInApp.initialize();\n      this.jimo.initialize();\n    });\n    this.lianaSession.on('authenticationSucceeded', this.setupUserAndRendering);\n  }\n\n  willDestroy(): void {\n    super.willDestroy();\n    cancelIdle(this.deferredThirdPartyInit);\n    this.deferredThirdPartyInit = null;\n    this.lianaSession.off('authenticationSucceeded', this.setupUserAndRendering);\n  }\n\n  @action\n  public async setupUserAndRendering() {\n    await this.setupUser();\n    await this.setupRendering();\n  }\n\n  public async setupUser() {\n    this.customerIoInApp.setupUser();\n    this.datadog.setupUser();\n    this.jimo.setupUser();\n    await this.featureFlags.setupUserAndRendering();\n  }\n\n  public async setupRendering() {\n    this.datadog.setupGlobalContext();\n    await this.featureFlags.setupUserAndRendering();\n  }\n}\n","import type EventBusService from 'client/legacy/services/event-bus';\nimport type { LayoutThemeEnum } from 'client/shared/states/user-preference';\nimport type UserPreferenceState from 'client/shared/states/user-preference';\n\nimport Service, { service } from '@ember/service';\n\nimport { EventBusEventsEnum } from 'client/legacy/services/event-bus';\n\nexport default class UserPreferenceManagerSharedBusinessService extends Service {\n  @service('shared/state/user-preference') private userPreferenceState: UserPreferenceState;\n  @service eventBus: EventBusService;\n\n  public setTheme(theme: LayoutThemeEnum) {\n    this.userPreferenceState.setTheme(theme);\n    this.setupTheme();\n    this.eventBus.trigger(EventBusEventsEnum.UserPreferenceManagerThemeChanged, theme);\n  }\n\n  public setupTheme() {\n    document.documentElement.setAttribute(\n      'data-theme',\n      this.userPreferenceState.isDarkTheme ? 'dark' : 'light',\n    );\n  }\n}\n","import Service from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nimport config from 'client/config/environment';\n\nexport default class ForestEnvironmentSharedState extends Service {\n  @tracked forestEnvironmentIndicatorOpened = true;\n  readonly isNotForestProduction: boolean = Boolean(\n    config.nodeEnv && config.nodeEnv !== 'production',\n  );\n\n  get shouldShowDevMarker() {\n    return this.isNotForestProduction && this.forestEnvironmentIndicatorOpened;\n  }\n}\n","import type LianaSessionService from 'client/legacy/services/liana-session';\n\nimport Service, { service } from '@ember/service';\n\nexport default class LayoutState extends Service {\n  // FIXME: state should not use services\n  @service private lianaSession: LianaSessionService;\n\n  public get rendering() {\n    return this.lianaSession.rendering;\n  }\n\n  public get inboxes() {\n    return this.rendering?.inboxes || [];\n  }\n\n  public get collections() {\n    return this.rendering?.collectionsSorted;\n  }\n\n  public get workspaces() {\n    return this.rendering?.workspaces || [];\n  }\n}\n","import type LocalStorageService from 'client/legacy/services/local-storage';\n\nimport Service, { service } from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\n\nexport default class NavigationState extends Service {\n  @service private localStorage: LocalStorageService;\n\n  @tracked private itemsIdToFoldedState: Record<string, boolean> = {};\n\n  public getIsItemFolded(itemId: string) {\n    return this.localStorage.getItem(itemId) === 'true';\n  }\n\n  public setItemFoldedState(itemId: string, isFolded: boolean) {\n    this.localStorage.setItem(itemId, isFolded ? 'true' : 'false');\n    this.itemsIdToFoldedState = { ...this.itemsIdToFoldedState, [itemId]: isFolded };\n  }\n}\n","import Service from '@ember/service';\nimport { tracked } from '@glimmer/tracking';\nimport window from 'ember-window-mock';\n\nexport enum LayoutThemeEnum {\n  Dark = 'dark',\n  Light = 'light',\n}\n\nexport default class UserPreferenceState extends Service {\n  @tracked private _theme: LayoutThemeEnum;\n\n  constructor(properties?: object) {\n    super(properties);\n\n    this.loadBrowserAndSessionData();\n  }\n\n  private loadBrowserAndSessionData() {\n    try {\n      const isDarkTheme = (JSON.parse(window.Cookies.get('dark_mode')) as boolean) || false;\n      this._theme = isDarkTheme ? LayoutThemeEnum.Dark : LayoutThemeEnum.Light;\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (e) {\n      this._theme = LayoutThemeEnum.Light;\n    }\n  }\n\n  public get isLightTheme() {\n    return this._theme === LayoutThemeEnum.Light;\n  }\n\n  public get isDarkTheme() {\n    return this._theme === LayoutThemeEnum.Dark;\n  }\n\n  public get theme() {\n    return this._theme;\n  }\n\n  public setTheme(theme: LayoutThemeEnum) {\n    this._theme = theme;\n\n    // NOTICE: This cookie should never expire, 20 years should be good enough.\n    //         https://stackoverflow.com/questions/3290424/set-a-cookie-to-never-expire\n    window.Cookies.set('dark_mode', this.isDarkTheme ? 'true' : 'false', { expires: 20 * 365 });\n  }\n}\n","import ArrayTransform from 'ember-data-model-fragments/transforms/array';\nexport default ArrayTransform;\n","import FragmentArrayTransform from 'ember-data-model-fragments/transforms/fragment-array';\nexport default FragmentArrayTransform;\n","import FragmentTransform from 'ember-data-model-fragments/transforms/fragment';\nexport default FragmentTransform;\n","export function canEditRelationshipField({ currentUser }, field) {\n  return currentUser.canEditCollection(field.nestedOrReferencedCollection) && !field.isReadOnly;\n}\n\nexport function isDissociateHasManyAvailable({ currentUser }, field) {\n  return canEditRelationshipField({ currentUser }, field) && !field.isEmbedded;\n}\n\nexport function isDeleteHasManyAvailable({ lianaFeatures, currentUser }, field) {\n  return (\n    canEditRelationshipField({ currentUser }, field)\n    && currentUser.canDeleteCollection(field.nestedOrReferencedCollection)\n    && lianaFeatures.isFeatureCompatible('hasManyDeletion', field.collection.rendering.environment)\n  );\n}\n","// eslint-disable-next-line import/prefer-default-export\nexport enum AgentsEnum {\n  NodeJS = 'agent-nodejs',\n  RubyOnRails = 'ruby-on-rails',\n  ExpressSequelize = 'express-sequelize',\n  ExpressMongoose = 'express-mongoose',\n  Python = 'agent-python',\n  Django = 'django',\n  Laravel = 'laravel',\n  Symfony = 'symfony',\n}\n","export default {\n  SESSION_REDIRECT_TARGET_KEY: 'ForestSession__RedirectTarget',\n  LOCAL_LAST_ORGANIZATION_WITHOUT_SSO_ID_KEY: 'LastOrganizationWithoutSsoId',\n  SESSION_REDIRECT_ACCESS_KEY: 'ForestSession__RedirectAccess',\n};\n","import { isArray } from '@ember/array';\n\nexport function getRandomValueInArray<T>(array: Array<T>): T | null {\n  if (!isArray(array)) return null;\n\n  // eslint-disable-next-line sonarjs/pseudo-random\n  const random = Math.round(Math.random() * (array.length - 1));\n  return array[random];\n}\n","/**\n * Filters an array asynchronously.\n */\nexport default async function asyncFilter<T>(\n  arr: Array<T>,\n  predicate: (value: T) => Promise<boolean>,\n): Promise<Array<T>> {\n  const results = await Promise.all(arr.map(predicate));\n\n  return arr.filter((_v, index) => results[index]);\n}\n","import { alias } from '@ember/object/computed';\n\nimport AutoCompleteViewHelper, { createSuggestion } from 'client/utils/auto-complete-view-helper';\nimport { namespace } from 'client/utils/string-utils';\n\nconst MIXIN_ACTIONS = ['triggerSmartAction', 'deleteRecords'];\nconst MIXIN_FUNCTIONS = ['getCollectionId'];\nexport const ACTIONS_PASSED = ['fetchRecords', 'addCondition', 'removeCondition'];\nexport const PROPERTIES_PASSED = [\n  'isLoading',\n  'error',\n  'collection',\n  'records',\n  'recordsCount',\n  'currentPage',\n  'numberOfPages',\n  'canEdit',\n  'viewList',\n];\n\nexport default class AutoCompleteSmartViewHelper extends AutoCompleteViewHelper {\n  @alias('record.collection') collection;\n\n  get recordVariableName() {\n    if (!this.isTemplate) return null;\n    if (\n      !this.currentCode.includes('{{#each records as |')\n      && !this.currentCode.includes('{{#each @records as |')\n    ) {\n      return null;\n    }\n\n    const listVariableName = this.currentCode.includes('{{#each records as |')\n      ? 'records'\n      : '@records';\n    const recordVariableName = this.currentCode\n      .substring(\n        this.currentCode.indexOf(`{{#each ${listVariableName} as |`)\n          + `{{#each ${listVariableName} as |`.length,\n      )\n      .trim();\n    const indexOfWhiteSpace = recordVariableName.indexOf(' ');\n    const indexToSubstr =\n      indexOfWhiteSpace > 0\n        ? Math.min(indexOfWhiteSpace, recordVariableName.indexOf('|'))\n        : recordVariableName.indexOf('|');\n    return recordVariableName.substring(0, indexToSubstr);\n  }\n\n  get collectionReferences() {\n    return this.collection.fields\n      .filter((field) => field.referenceModel)\n      .map((field) => ({\n        collection: field.referenceModel,\n        field: field.fieldName,\n        isHasMany: field.isHasMany,\n      }));\n  }\n\n  static getFieldSnippetsFromCollection(collection) {\n    return collection.fields\n      .filter((field) => field.fieldName)\n      .map((field) => createSuggestion(namespace(field.fieldName, '-')));\n  }\n\n  autoCompleteTemplate({ prefix, line }) {\n    if (!this.isTemplate) return null;\n\n    let result = super.autoCompleteTemplate({ prefix, line });\n    if (result) {\n      return result;\n    }\n\n    if (line.endsWith(`${this.recordVariableName}.${prefix}`)) {\n      result = AutoCompleteSmartViewHelper.getFieldSnippetsFromCollection(this.collection);\n    } else if (new RegExp(`${this.recordVariableName}\\\\.[\\\\w-]+\\\\.[\\\\w-]*$`).test(line)) {\n      // NOTICE: Autocomplete the properties of a record (Ex: \"{{record.na\")\n      result = this.autoCompleteRecords(line);\n    }\n\n    return result;\n  }\n\n  autoCompleteMethod({ prefix, line }) {\n    if (line.endsWith(`this.${prefix}`)) {\n      const values = super.autoCompleteMethod({ prefix, line });\n      const actionsPassed = this.isTemplate\n        ? []\n        : ACTIONS_PASSED.map((action) => createSuggestion(action));\n      const mixinActions = MIXIN_FUNCTIONS.map((action) => createSuggestion(action));\n      return [...actionsPassed, ...mixinActions, ...values];\n    }\n    return null;\n  }\n\n  static autoCompleteArguments() {\n    return [...ACTIONS_PASSED, ...PROPERTIES_PASSED].map((key) => createSuggestion(key));\n  }\n\n  autoCompleteActions(newFormat = false) {\n    const createSnippet = (actionKey) => (newFormat ? `this.${actionKey}` : `'${actionKey}'`);\n    const actions = super.autoCompleteActions(newFormat);\n    actions.pushObjects(\n      MIXIN_ACTIONS.map((action) => createSuggestion(action, createSnippet(action))),\n    );\n    actions.pushObjects(ACTIONS_PASSED.map((action) => createSuggestion(action, `@${action}`)));\n    return actions;\n  }\n\n  autoCompleteRecords(line) {\n    const variablePrefix = `${this.recordVariableName}.forest-`;\n    const referenceName = line.substring(\n      line.indexOf(variablePrefix) + variablePrefix.length,\n      line.lastIndexOf('.'),\n    );\n\n    const reference = this.collectionReferences.find(\n      (collectionReference) =>\n        !collectionReference.isHasMany && collectionReference.field === referenceName,\n    );\n    if (reference) {\n      return AutoCompleteSmartViewHelper.getFieldSnippetsFromCollection(reference.collection);\n    }\n\n    return [];\n  }\n}\n","import { alias } from '@ember/object/computed';\n\nimport { regexIndexOf } from 'client/utils/string-utils';\n\nconst EMBER_PROPERTIES = [\n  'tagName',\n  'classNames',\n  'classNameBindings',\n  'didInsertElement',\n  'init',\n  'actions',\n  'willDestroyElement',\n];\n\nexport const createSuggestion = (value, snippet) => ({\n  value,\n  snippet: snippet || value,\n  meta: 'Forest Admin',\n  // This will allow our completions to be displayed BEFORE the locals\n  score: 100,\n});\n\nexport default class AutoCompleteViewHelper {\n  constructor(component, record) {\n    this.component = component;\n    this.record = record;\n    this.loadSnippets();\n  }\n\n  @alias('component.currentCode') currentCode;\n  @alias('component.isTemplate') isTemplate;\n  @alias('component.isComponent') isComponent;\n  @alias('component.isStyle') isStyle;\n\n  get startComponentBody() {\n    return this.record.componentCode.indexOf('export default');\n  }\n\n  get componentBody() {\n    const componentInside = this.record.componentCode.substring(this.startComponentBody);\n    return componentInside.substring(componentInside.indexOf('\\n') + 1);\n  }\n\n  get isClassComponentStyle() {\n    return this.record.componentCode && this.record.componentCode.includes('export default class ');\n  }\n\n  get keys() {\n    if (!this.record.componentCode) {\n      return [];\n    }\n\n    // NOTICE: Find all properties and functions of the current component\n    const matches = this.componentBody.match(/^ {2}\\w+[:; =(]/gm) || [];\n    const keys = [];\n    matches.forEach((match) => {\n      const key = match.substring(2, match.length - 1);\n      if (EMBER_PROPERTIES.includes(key)) {\n        return;\n      }\n      keys.push(key);\n    });\n\n    return keys;\n  }\n\n  get actionKeys() {\n    if (this.isClassComponentStyle) {\n      const matches = this.componentBody.match(/@action\\s+(\\w+)\\(/gm) || [];\n      return matches.map((match) => {\n        const matchWithoutAction = match.replace('@action', '').trim();\n        return matchWithoutAction.substring(0, matchWithoutAction.length - 1);\n      });\n    }\n\n    const indexOfActions = regexIndexOf(this.componentBody, /^ {2}actions:/gm);\n    if (indexOfActions === -1) {\n      return [];\n    }\n    let actionsBlock = this.componentBody.substring(indexOfActions);\n    const endOfActionsBlock = regexIndexOf(actionsBlock, /^ {2}}/gm);\n    if (endOfActionsBlock === -1) {\n      return [];\n    }\n    actionsBlock = actionsBlock.substring(0, endOfActionsBlock);\n\n    // NOTICE: Find all action name inside the actions block\n    const matches = actionsBlock.match(/^ {4}\\w+[:(]/gm);\n    return matches.map((match) => match.substring(4, match.length - 1));\n  }\n\n  static _getColorVariableFromCssRule(cssRule) {\n    const primaryColorRegex = /--color-primary-\\d00/;\n    const cssVariables = [];\n\n    for (let indexStyle = 0; cssRule.style && indexStyle < cssRule.style.length; indexStyle += 1) {\n      const name = cssRule.style[indexStyle];\n\n      if (\n        name.startsWith('--color')\n        && !cssVariables.includes(name)\n        && (name.startsWith('--color-beta') || primaryColorRegex.test(name))\n      ) {\n        cssVariables.push(name);\n      }\n    }\n\n    return cssVariables;\n  }\n\n  get cssColorVariables() {\n    const { styleSheets } = document;\n    const cssVariables = [];\n\n    for (let indexStyleSheet = 0; indexStyleSheet < styleSheets.length; indexStyleSheet += 1) {\n      const styleSheet = styleSheets[indexStyleSheet];\n\n      for (let indexCssRules = 0; indexCssRules < styleSheet.cssRules.length; indexCssRules += 1) {\n        const cssRule = styleSheet.cssRules[indexCssRules];\n        cssVariables.pushObjects(AutoCompleteViewHelper._getColorVariableFromCssRule(cssRule));\n      }\n    }\n\n    return Array.from(new Set(cssVariables));\n  }\n\n  get primaryColors() {\n    return this.cssColorVariables.filter((cssColorVariable) =>\n      cssColorVariable.startsWith('--color-primary'),\n    );\n  }\n\n  get backgroundColors() {\n    return this.cssColorVariables.filter(\n      (cssColorVariable) => !cssColorVariable.startsWith('--color-beta-on'),\n    );\n  }\n\n  get borderColors() {\n    return this.cssColorVariables.filter((cssColorVariable) =>\n      cssColorVariable.endsWith('_border'),\n    );\n  }\n\n  get fontColors() {\n    return this.cssColorVariables\n      .filter(\n        (cssColorVariable) =>\n          cssColorVariable.startsWith('--color-beta-on-') && !cssColorVariable.endsWith('_border'),\n      )\n      .pushObjects(this.primaryColors);\n  }\n\n  loadSnippets() {\n    fetch('/snippets.json')\n      .then((response) => response.json())\n      .then((snippets) => {\n        this.snippets = {\n          components: snippets.components.map(({ value, snippet }) =>\n            createSuggestion(value, snippet),\n          ),\n          imports: snippets.imports.map(({ value, snippet }) => createSuggestion(value, snippet)),\n        };\n      });\n  }\n\n  autoCompleteStyle({ line }) {\n    if (!this.isStyle) return null;\n\n    let result = null;\n    if (line.trim().startsWith('background')) result = this.autoCompleteBackgroundColors();\n    if (line.trim().startsWith('border')) result = this.autoCompleteBorderColors();\n    if (line.trim().startsWith('color')) result = this.autoCompleteFontColors();\n    return result;\n  }\n\n  autoCompleteComponent({ prefix, fullLine, line }) {\n    if (!this.isComponent) return null;\n\n    let result = null;\n    if (line.startsWith(`import ${prefix}`)) {\n      if (fullLine.endsWith(';') && fullLine.includes('} from ')) {\n        const endOfLine = fullLine.substring(fullLine.indexOf(' from '));\n        result = this.autoCompleteImports(endOfLine);\n      } else {\n        result = this.autoCompleteImports();\n      }\n    } else if (line.endsWith(`this.${prefix}`)) {\n      result = this.autoCompleteThis();\n    }\n\n    return result;\n  }\n\n  autoCompleteTemplate({ prefix, line }) {\n    if (!this.isTemplate) return null;\n\n    let result = null;\n    if (line.endsWith(`@${prefix}`)) {\n      result = this.constructor.autoCompleteArguments();\n    } else if (line.endsWith(`action ${prefix}`)) {\n      result = this.autoCompleteActions();\n    } else if (line.endsWith(`fn ${prefix}`) || line.endsWith(`on ${prefix}`)) {\n      result = this.autoCompleteActions(true);\n    } else if (line.endsWith(`<${prefix}`)) {\n      result = this.autoCompleteComponents();\n    }\n\n    return result;\n  }\n\n  autoCompleteMethod({ prefix, line }) {\n    if (line.endsWith(`this.${prefix}`)) {\n      const values = this.keys.map((key) => createSuggestion(key));\n      return [...values];\n    }\n    return null;\n  }\n\n  autoComplete(editor, session, position, prefix) {\n    const fullLine = session.doc.$lines[position.row];\n    const line = fullLine.substring(0, position.column);\n    const context = { prefix, fullLine, line };\n\n    return (\n      this.autoCompleteStyle(context)\n      || this.autoCompleteComponent(context)\n      || this.autoCompleteMethod(context)\n      || this.autoCompleteTemplate(context)\n      || []\n    );\n  }\n\n  static autoCompleteArguments() {\n    return [];\n  }\n\n  autoCompleteActions(newFormat = false) {\n    const createSnippet = (actionKey) => (newFormat ? `this.${actionKey}` : `'${actionKey}'`);\n    return this.actionKeys.map((action) => createSuggestion(action, createSnippet(action)));\n  }\n\n  autoCompleteComponents() {\n    return this.snippets.components;\n  }\n\n  autoCompleteImports(exisintImportEndOfLine = false) {\n    if (exisintImportEndOfLine) {\n      return this.snippets.imports\n        .filter((snippetImport) => snippetImport.snippet.endsWith(exisintImportEndOfLine))\n        .map((snippetImport) => createSuggestion(snippetImport.value, snippetImport.value));\n    }\n\n    return this.snippets.imports;\n  }\n\n  autoCompleteThis() {\n    return this.keys.map((key) => createSuggestion(key));\n  }\n\n  autoCompleteBackgroundColors() {\n    return AutoCompleteViewHelper.getSnippetForColors(this.backgroundColors);\n  }\n\n  autoCompleteBorderColors() {\n    return AutoCompleteViewHelper.getSnippetForColors(this.borderColors);\n  }\n\n  autoCompleteFontColors() {\n    return AutoCompleteViewHelper.getSnippetForColors(this.fontColors);\n  }\n\n  static getSnippetForColors(colors) {\n    return colors.map((color) => createSuggestion(color, `var(${color})`));\n  }\n}\n","import { assert } from '@ember/debug';\n\nexport default async function batchDeleteInvitations(\n  { serverFetch, toastr, errorHandler },\n  invitationIdsToDelete,\n  projectId,\n) {\n  assert('The serverFetch service is required', !!serverFetch);\n  assert('The toastr service is required', !!toastr);\n  assert('The errorHandler parameter is required', !!errorHandler);\n  try {\n    await serverFetch.fetch(`/api/projects/${projectId}/invitations`, {\n      method: 'DELETE',\n      credentials: 'include',\n      body: JSON.stringify(invitationIdsToDelete),\n    });\n    toastr.perform('success', `Invitation${invitationIdsToDelete.length > 1 ? 's' : ''} cancelled`);\n  } catch (error) {\n    errorHandler.handleRequestFailure(error, 'An error occurred while cancelling invitations');\n  }\n}\n","import window from 'ember-window-mock';\n\nexport function isFirefox() {\n  return typeof window.InstallTrigger !== 'undefined';\n}\n\nexport function isSafari() {\n  return !!window.safari;\n}\n\nexport function isOpera() {\n  return (\n    (!!window.opr && !!window.opr.addons)\n    || !!window.opera\n    || navigator.userAgent.indexOf(' OPR/') >= 0\n  );\n}\n\nexport function isChrome() {\n  return Boolean(window.chrome);\n}\n","import { alias } from '@ember/object/computed';\nimport { service } from '@ember/service';\nimport { isEmpty } from '@ember/utils';\nimport window from 'ember-window-mock';\nimport { findKey } from 'lodash';\n\nimport config from 'client/config/environment';\nimport UnauthorizedIpAddressError from 'client/data/adapters/errors/unauthorized-ip-address-error';\nimport HasManyQueryAdapter from 'client/data/adapters/has-many-query-adapter';\nimport {\n  IpWhitelistNotRetrievedError,\n  LianaUnauthorizedError,\n} from 'client/features/authentication/errors';\nimport {\n  AbortClientRecordAgentError,\n  ClientRecordAgentError,\n} from 'client/features/client-record/errors';\nimport { FeaturesEnum } from 'client/legacy/services/liana-features';\nimport errorType from 'client/utils/error-type';\nimport {\n  FailedToFetchError,\n  HttpError,\n  UnknownClientAdapterError,\n  UnreachableAgentError,\n} from 'client/utils/errors';\n\n/**\n * @param {CollectionModel} collection\n * @returns {HasManyQueryAdapter|null}\n */\nexport default function createAdapter(collection) {\n  if (collection.isEmbedded) {\n    return null;\n  }\n\n  const collectionName = collection?.name;\n\n  return class extends HasManyQueryAdapter {\n    namespace = 'forest';\n    uniqueId = 0;\n    @alias('abortController.signal') fetchAbortSignal;\n    @alias('lianaSession.supportsOpenIdConnect') withCredentials;\n\n    @service activityTracker;\n    @service('shared/fetch') fetchService;\n    @service lianaFeatures;\n    @service('shared/capabilities') capabilitiesService;\n    @service lianaSession;\n    @service timezone;\n    @service toastr;\n    @service tracker;\n    @service errorHandler;\n\n    get host() {\n      return collection.rendering?.environment?.apiEndpoint;\n    }\n\n    init(...args) {\n      super.init(...args);\n      this.set('abortController', new AbortController());\n    }\n\n    async ajax(url, type, options) {\n      // I don't know why calling this function directly does not work\n      const parentFunction = super.ajax.bind(this);\n\n      try {\n        return await this.lianaSession\n          .waitRefreshIfNecessary()\n          .then(() => parentFunction(url, type, options));\n      } catch (error) {\n        if (\n          error instanceof ClientRecordAgentError\n          || error instanceof UnreachableAgentError\n          || error instanceof LianaUnauthorizedError\n          || error instanceof UnauthorizedIpAddressError\n          || error instanceof IpWhitelistNotRetrievedError\n          || error instanceof FailedToFetchError\n        ) {\n          throw error;\n        }\n        throw new UnknownClientAdapterError(error, { url, type, options });\n      }\n    }\n\n    pathForType() {\n      return collectionName;\n    }\n\n    ajaxOptions(url, type, options) {\n      const newOptions = options ? { ...options } : {};\n\n      // Necessary only for forest-express-(sequelize|mongoose)@7.0.0 and 7.0.1\n      newOptions.credentials = this.withCredentials ? 'include' : 'omit';\n\n      newOptions.headers = {\n        ...(newOptions.headers || {}),\n        ...this.generateHeaders(),\n        'Content-Type': 'application/json',\n      };\n\n      const environment = this.lianaSession?.currentEnvironment;\n      let newUrl = url;\n      if (environment) {\n        const parsedUrl = new URL(url);\n        parsedUrl.searchParams.append('timezone', this.timezone.getTimezone(environment));\n        newUrl = parsedUrl.toString();\n      }\n\n      const isRequestForIndex =\n        !isEmpty(newOptions?.data)\n        && type === 'GET'\n        && /^http(s?):\\/\\/[^/]+\\/forest\\/[^/]+$/.test(url);\n\n      // NOTICE: Only \"Index\" queries should be cancelable.\n      if (isRequestForIndex) {\n        newOptions.signal = this.fetchAbortSignal;\n      }\n\n      return super.ajaxOptions(newUrl, type, newOptions);\n    }\n\n    query(store, type, query) {\n      let url = this.buildURL(type.modelName, null, null, 'query', query);\n      let sortedQuery = query;\n      if (this.sortQueryParams) {\n        sortedQuery = this.sortQueryParams(query);\n      }\n      let method = 'GET';\n      if (\n        this.lianaFeatures.isFeatureCompatible(FeaturesEnum.PostHTTPMethodList)\n        && JSON.stringify(sortedQuery).length > config.APP.maxUrlLengthForQueryParamsGETMethod\n        && !collection.isSmart\n      ) {\n        method = 'POST';\n        url += '/query';\n      } else if (sortedQuery?.filters && typeof sortedQuery?.filters !== 'string') {\n        sortedQuery.filters = JSON.stringify(sortedQuery.filters);\n      }\n\n      return this.ajax(url, method, {\n        data: sortedQuery,\n      });\n    }\n\n    cancelQueries(reason) {\n      this.abortController.abort(new AbortClientRecordAgentError('list', reason));\n      this.set('abortController', new AbortController());\n    }\n\n    buildQuery(snapshot, ...args) {\n      const query = super.buildQuery(snapshot, args);\n\n      const fields = snapshot?.adapterOptions?.fields;\n\n      if (fields && this.capabilitiesService.agentCapabilities.canUseProjectionOnGetOne) {\n        query.fields = fields;\n      }\n\n      return query;\n    }\n\n    /**\n     * ⚠ DO NOT inject dynamic headers here\n     * because they can be subject to race conditions.\n     * All dynamic headers, subject to change, must be added by ajax or ajaxOptions\n     */\n    get headers() {\n      const headers = {\n        Accept: 'application/json',\n      };\n\n      const environment = this.lianaSession?.currentEnvironment;\n      const environmentId = environment?.id;\n      const projectId = this.lianaSession?.currentProject?.id;\n\n      if (environmentId && this.lianaSession.supportsHeader('forest-environment-id')) {\n        headers['forest-environment-id'] = environmentId;\n      }\n      if (projectId && this.lianaSession.supportsHeader('forest-project-id')) {\n        headers['forest-project-id'] = projectId;\n      }\n      if (\n        environment\n        && this.lianaFeatures.isFeatureCompatible(FeaturesEnum.RequestHeaderContext, environment)\n      ) {\n        headers['Forest-Context-Url'] = window.location.href;\n      }\n\n      return headers;\n    }\n\n    generateHeaders() {\n      const headers = {};\n      const authToken = this.lianaSession?.authToken;\n\n      if (authToken) {\n        headers.Authorization = `Bearer ${authToken}`;\n      }\n\n      return headers;\n    }\n\n    shouldReloadAll() {\n      return true;\n    }\n\n    shouldBackgroundReloadRecord() {\n      return false;\n    }\n\n    createRecord(...args) {\n      return super.createRecord(...args).then((response) => {\n        const id = response.data ? response.data.id : null;\n        this.logActivityWrite('create', 'created', id);\n        return response;\n      });\n    }\n\n    updateRecord(store, type, snapshot) {\n      const data = {};\n      const serializer = store.serializerFor(type.modelName);\n      serializer.serializeIntoHash(data, type, snapshot, { includeId: true });\n\n      const { id } = snapshot;\n      const url = this.buildURL(type.modelName, id, snapshot, 'updateRecord');\n\n      return this.ajax(url, 'PUT', { data }).then((response) => {\n        this.logActivityWrite('update', 'updated', id);\n        return response;\n      });\n    }\n\n    // NOTICE handle when foreignAndPrimaryKey\n    urlForUpdateRecord(id, modelName, snapshot) {\n      const newId = snapshot.record.newPk ?? id;\n      return super.urlForUpdateRecord(newId, modelName, snapshot);\n    }\n\n    deleteRecord(store, type, snapshot, ...args) {\n      return super.deleteRecord(store, type, snapshot, ...args).then((response) => {\n        // NOTICE: For batch delete, do not create an activity per deletion.\n        if (snapshot.record.forestActivityTracking !== false) {\n          this.logActivityWrite('delete', 'deleted', snapshot.id);\n        }\n        return response;\n      });\n    }\n\n    handleResponse(status, headers, payload, requestData) {\n      const errors = this.normalizeErrorResponse(status, headers, payload);\n\n      if (status === 401) {\n        const error = new LianaUnauthorizedError(errors);\n        this.errorHandler.handleSilentError(error, { errors, headers: this.generateHeaders() });\n\n        // Promise but the current function is synchronous\n        this.lianaSession.invalidate();\n\n        return error;\n      }\n      if (payload) {\n        if (errorType.ipRejected(payload)) {\n          this.lianaSession.invalidateForIp(payload);\n          this.tracker.captureMessage('Agent logout: ip rejected (collection-creator)', 'warning', {\n            data: payload,\n          });\n          return new UnauthorizedIpAddressError(errors);\n        }\n        if (errorType.ipWhitelistNotRetrieved(payload)) {\n          const errorMessage =\n            \"Forest Admin doesn't know if your current IP is accepted or not. Please consult your server logs for more details.\";\n          this.toastr.perform('error', errorMessage);\n          return new IpWhitelistNotRetrievedError(errors);\n        }\n      }\n\n      if (status === 404) {\n        return new HttpError({ status, url: requestData.url }, { errors }, requestData.method);\n      }\n\n      // NOTICE: Populate the Json API meta for each record.\n      if (payload && payload.data && payload.data.length && payload.meta) {\n        payload.data = payload.data.map((record) => {\n          const keyFound = findKey(\n            payload.meta.decorators,\n            (decorator) => String(decorator.id) === String(record.id),\n          );\n\n          if (record.attributes) {\n            record.attributes.__meta__ = {};\n            if (keyFound) {\n              record.attributes.__meta__.decorators = payload.meta.decorators[keyFound];\n            }\n          }\n          return record;\n        });\n      }\n\n      // NOTICE: Prevent disappearing belongsTo relationships displayed in Summary Views having\n      //         displayed Related Data. (Patch to fix projects using Rails liana)\n      if (payload && payload.included) {\n        payload.included.forEach((record) => {\n          if (record.relationships) {\n            Object.entries(record.relationships).forEach(([key, value]) => {\n              if (value && value.links && isEmpty(value.links.related)) {\n                delete record.relationships[key];\n              }\n            });\n          }\n        });\n      }\n\n      return super.handleResponse(status, headers, payload, requestData);\n    }\n\n    logActivityWrite(action, label, resourceId) {\n      const activity = {\n        action,\n        label,\n        collection,\n        recordIds: [resourceId],\n        timingInterface: null,\n        timingRequest: null,\n      };\n      return this.activityTracker.trackWrite(activity);\n    }\n\n    _fetchRequest(options) {\n      return this.fetchService.fetch(options.url, options, false);\n    }\n  };\n}\n","import { isArray } from '@ember/array';\nimport { defineProperty } from '@ember/object';\nimport { attr } from '@ember-data/model';\nimport {\n  array,\n  fragment,\n  fragmentArray,\n  fragmentOwner,\n} from 'ember-data-model-fragments/attributes';\nimport Fragment from 'ember-data-model-fragments/fragment';\nimport { modelValidator } from 'ember-model-validator';\n\nimport config from 'client/config/environment';\nimport PolymorphicClientModel from 'client/data/models/polymorphic-client-model';\nimport getValidationsForField from 'client/utils/collection-creator/validations';\nimport SchemaUtils from 'client/utils/schema-utils';\nimport { denamespace, namespace } from 'client/utils/string-utils';\n\nexport const ID_FIELD_FOR_FRAGMENT_API = 'id';\nexport const ID_FIELD_FOR_FRAGMENT_INTERFACE = '____id____';\nexport const ID_FIELD_FOR_MODEL = config.APP.models.nonIdentifierIdFieldAlias;\nexport const META_FIELD = '__meta__';\n\nexport function normalizeDataForEmbedded(collection, value) {\n  if (!value) {\n    return value;\n  }\n  if (isArray(value)) {\n    return value.map((item) => normalizeDataForEmbedded(collection, item));\n  }\n  const normalizedValue = {};\n  collection.fields.forEach((field) => {\n    const newFieldValue = value[field.fieldName];\n    if (newFieldValue && field.isEmbedded) {\n      normalizedValue[field.attributeName] = normalizeDataForEmbedded(\n        field.nestedCollection,\n        newFieldValue,\n      );\n    } else {\n      normalizedValue[field.attributeName] = newFieldValue;\n    }\n  });\n  return normalizedValue;\n}\n\nfunction deeplySetValue(model, collection, value) {\n  if (!value || (!isArray(model) && !model?.parent[collection.parentField.attributeName])) {\n    model.parent[collection.parentField.attributeName] = value;\n    return;\n  }\n  if (isArray(value)) {\n    while (model.length > value.length) {\n      model.popObject();\n    }\n    value.forEach((item, index) => {\n      const existingItem = model.objectAt(index);\n      if (existingItem) {\n        deeplySetValue(existingItem, collection, item);\n      } else {\n        model.pushObject(model.createFragment(collection.emberModelName, item));\n      }\n    });\n  } else {\n    collection.fields.forEach((field) => {\n      const newFieldValue = value[field.attributeName];\n      if (newFieldValue && field.isEmbedded && model[field.attributeName]) {\n        deeplySetValue(model[field.attributeName], field.nestedCollection, newFieldValue);\n      } else {\n        model.set(field.attributeName, newFieldValue);\n      }\n    });\n  }\n}\n\nexport function createEmptyModelDefinition() {\n  return {\n    validations: {},\n    getAttributesSerialized() {\n      const values = {\n        id: this.id,\n      };\n\n      this.eachAttribute((attribute) => {\n        if (denamespace(attribute, '-') === META_FIELD) {\n          return;\n        }\n\n        const value = this.get(attribute);\n        if (value !== null && value !== undefined) {\n          if (value.serialize) {\n            values[denamespace(attribute, '-')] = value.serialize();\n          } else {\n            values[denamespace(attribute, '-')] = value;\n          }\n        }\n      });\n\n      return values;\n    },\n    toJSON() {\n      const attributes = {};\n      this.eachAttribute((attribute) => {\n        if (isArray(this[attribute])) {\n          attributes[attribute] = this[attribute].map((item) => item?.toJSON?.() || item);\n          return;\n        }\n        attributes[attribute] = this[attribute]?.toJSON\n          ? this[attribute].toJSON()\n          : this[attribute];\n      });\n      return attributes;\n    },\n  };\n}\n\nclass ModelCreator {\n  static parseEmbedded(field, { collectionCreator }) {\n    const { embeddedCollectionName } = field;\n\n    collectionCreator.registerModel(field.nestedCollection);\n    collectionCreator.registerSerializer(field.nestedCollection);\n\n    return namespace(embeddedCollectionName, '-');\n  }\n\n  static parseEmbeddedBelongsToField(field, { collectionCreator }) {\n    const embeddedCollectionName = this.parseEmbedded(field, { collectionCreator });\n    return fragment(embeddedCollectionName);\n  }\n\n  static parseEmbeddedHasManyField(field, { collectionCreator }) {\n    const embeddedCollectionName = this.parseEmbedded(field, { collectionCreator });\n    return fragmentArray(embeddedCollectionName);\n  }\n\n  static getPlainFieldDefinition(field, { collectionCreator }) {\n    if (SchemaUtils.isPlainType(field)) {\n      switch (field.type.toLowerCase()) {\n        case 'boolean':\n          // NOTICE: Ember Data boolean cannot be null by default, so we added\n          //         the option to prevent \"false\" display if the value is null.\n          return attr('boolean', { allowNull: true });\n        case 'dateonly':\n          return attr('date');\n        case 'number':\n          // NOTICE: customNumber transform used here to avoid bigint to get trimmed.\n          //         Regular numbers will still be considered the same.\n          return attr('custom-number');\n        default:\n          return attr(field.type.toLowerCase());\n      }\n    } else if (SchemaUtils.isEmbeddedBelongsTo(field)) {\n      return ModelCreator.parseEmbeddedBelongsToField(field, { collectionCreator });\n    } else if (SchemaUtils.isEmbeddedHasMany(field)) {\n      return ModelCreator.parseEmbeddedHasManyField(field, { collectionCreator });\n    } else if (SchemaUtils.isPlainArray(field)) {\n      return array();\n    }\n    return attr('base');\n  }\n\n  static createModel(collection, { tracker, collectionCreator, lianaSession }) {\n    const model = createEmptyModelDefinition();\n\n    const hasMongoIdField = collection.fields.any(\n      (collectionField) => collectionField.fieldName === '_id',\n    );\n\n    collection.fields.forEach((field) => {\n      if (!field.fieldName) {\n        tracker.captureException(\n          new Error(`field ${field.id} badly returned by the forestadmin api`),\n        );\n        return;\n      }\n      let fieldName = namespace(field.fieldName, '-');\n      if (collection.isEmbedded) {\n        // // NOTICE: Handles \"id\" fields in embedded documents.\n        if (fieldName === ID_FIELD_FOR_FRAGMENT_API) {\n          fieldName = ID_FIELD_FOR_FRAGMENT_INTERFACE;\n        }\n      }\n\n      if (SchemaUtils.isPlainField(field) || field?.fieldName === 'id') {\n        model[fieldName] = ModelCreator.getPlainFieldDefinition(field, { collectionCreator });\n      }\n      if (SchemaUtils.isPlainField(field) || field?.fieldName === 'id') {\n        model.validations[fieldName] = getValidationsForField(field, lianaSession);\n      }\n\n      // NOTICE: Handles specific case when the collection has an 'id' field that is not the\n      //         identifier field. It enables to display the right 'id' field values.\n      if (field.fieldName === 'id') {\n        if (hasMongoIdField) {\n          model[namespace(ID_FIELD_FOR_MODEL, '-')] = attr('string');\n        }\n        field.isIdentifier = !hasMongoIdField;\n      }\n\n      if (SchemaUtils.isHasMany(field)) {\n        model[`${fieldName}Ids`] = attr('number', { generated: true });\n      } else if (SchemaUtils.isBelongsTo(field)) {\n        model[`${fieldName}Id`] = attr('string', { generated: true });\n      }\n    });\n\n    if (!collection.isEmbedded) {\n      // HACK: Ember data does not support Json API meta per record so far. As a workaround, we use\n      //       use this specific attribute to store and display highlighted matches when searching.\n      model[namespace(META_FIELD, '-')] = attr('object');\n    } else {\n      // Add a way to retrieve the parent record of an embedded record.\n      model.parent = fragmentOwner();\n    }\n\n    const DSModelClass = collection.isEmbedded ? Fragment : PolymorphicClientModel;\n    const ModelClass = modelValidator(DSModelClass.extend(model));\n\n    defineProperty(ModelClass.prototype, 'collection', {\n      get() {\n        return this.store\n          .peekAll('collection')\n          ?.findBy('emberModelName', this._internalModel?.modelName);\n      },\n    });\n\n    if (collection.isEmbedded) {\n      // An embedded record can be displayed as json. But fragment would display the data like:\n      // { \"forest-myFieldName\": \"myFieldValue\" }\n      // While the actual data is:\n      // { \"myFieldName\": \"myFieldValue\" }\n      // So we need to add the rawData getter/setter to handle this.\n      defineProperty(ModelClass.prototype, 'rawData', {\n        get() {\n          return this.serialize();\n        },\n        set(value) {\n          deeplySetValue(this, collection, normalizeDataForEmbedded(collection, value));\n          return value;\n        },\n      });\n    }\n\n    return ModelClass;\n  }\n}\n\nexport default function createModel(collection, { tracker, collectionCreator, lianaSession }) {\n  return ModelCreator.createModel(collection, { tracker, collectionCreator, lianaSession });\n}\n","import { isArray } from '@ember/array';\nimport { service } from '@ember/service';\nimport { dasherize } from '@ember/string';\nimport JSONSerializer from '@ember-data/serializer/json';\nimport JSONAPISerializer from '@ember-data/serializer/json-api';\nimport { pluralize, singularize } from 'ember-inflector';\n\nimport {\n  ID_FIELD_FOR_FRAGMENT_API,\n  ID_FIELD_FOR_FRAGMENT_INTERFACE,\n  ID_FIELD_FOR_MODEL,\n} from 'client/utils/collection-creator/model';\nimport getPolymorphicDataType from 'client/utils/get-polymorphic-data-type';\nimport { getCollectionFromRecord } from 'client/utils/model-utils';\nimport SchemaUtils from 'client/utils/schema-utils';\nimport { denamespace, namespace } from 'client/utils/string-utils';\n\n/**\n * @param {CollectionModel} collection\n * @returns {JSONSerializer|JSONAPISerializer}\n */\nexport default function createSerializer(collection) {\n  const DSSerializerClass = collection.isEmbedded ? JSONSerializer : JSONAPISerializer;\n\n  return class ClientSerializer extends DSSerializerClass {\n    @service collectionCreator;\n\n    normalize(model, hash, ...args) {\n      // NOTICE: Handles \"id\" fields in embedded documents.\n      if (collection.isEmbedded && hash && hash[ID_FIELD_FOR_FRAGMENT_API]) {\n        hash[ID_FIELD_FOR_FRAGMENT_INTERFACE] = hash[ID_FIELD_FOR_FRAGMENT_API];\n        delete hash[ID_FIELD_FOR_FRAGMENT_API];\n      }\n\n      if (hash && hash.attributes) {\n        hash.attributes[ID_FIELD_FOR_MODEL] = hash.attributes.id ?? hash.id;\n      }\n\n      return super.normalize(model, hash, ...args);\n    }\n\n    serialize(snapshot, ...args) {\n      const data = super.serialize(snapshot, ...args);\n      const { record } = snapshot;\n\n      // NOTICE: Handles \"id\" fields in embedded documents.\n      if (collection.isEmbedded) {\n        if (data && data[ID_FIELD_FOR_FRAGMENT_INTERFACE]) {\n          data[ID_FIELD_FOR_FRAGMENT_API] = data[ID_FIELD_FOR_FRAGMENT_INTERFACE];\n          delete data[ID_FIELD_FOR_FRAGMENT_INTERFACE];\n        }\n        return data;\n      }\n      if (data.data) {\n        // NOTICE: Ember doesn't support the edition of id, so we need to trick it here.\n        const idAttribute = [];\n        const recordId = record.get('forest-id');\n        if (recordId && `${recordId}` !== record.get('id')) {\n          idAttribute.pushObject('id');\n          data.data.attributes ||= {};\n          data.data.attributes.id = recordId;\n        }\n        if (data.data.attributes) {\n          // NOTICE: Remove all the unchanged attributes in the payload.\n          const changedAttributes = Object.keys(record.changedAttributes()).map((attributeName) =>\n            denamespace(attributeName, '-'),\n          );\n          changedAttributes.push(...idAttribute);\n          // NOTICE: Our arrays are handled by ember-data-model-fragments, but since Ember 3.8\n          //         arrays are not pushed into the changedAttributes. So we need to check all\n          //         attributes and to access the hasDirtyAttributes which tells you if an array\n          //         has change or not.\n          // TODO: To remove once `ember-data-model-fragments` has a fix.\n          record.eachAttribute((attributeName) => {\n            if (record.get(attributeName) && record.get(attributeName).hasDirtyAttributes) {\n              const denamespaceAttribute = denamespace(attributeName, '-');\n              if (!changedAttributes.includes(denamespaceAttribute)) {\n                changedAttributes.pushObject(denamespaceAttribute);\n              }\n            }\n          });\n\n          Object.entries(data.data.attributes).forEach(([attributeName, value]) => {\n            if (!changedAttributes.includes(attributeName)) {\n              delete data.data.attributes[attributeName];\n            } else if (attributeName === ID_FIELD_FOR_MODEL) {\n              data.data.attributes.id = value;\n            }\n          });\n        }\n\n        if (record.isNew && data.data.relationships) {\n          Object.keys(data.data.relationships).forEach((key) => {\n            const relationship = data.data.relationships[key];\n            if (relationship?.data) {\n              if (isArray(relationship.data)) {\n                relationship.data = relationship.data.filter((rel) => rel.id !== null);\n              } else if (relationship.data?.id === null) {\n                relationship.data = null;\n              }\n            }\n          });\n          // NOTICE: When creating a new polymorphic record, the type of the record must be one of the polymorphicReferencedModels\n          const relationshipKeys = Object.keys(data.data.relationships);\n          const recordCollection = getCollectionFromRecord(record);\n          const polymorphicFields = recordCollection?.fields?.filter(\n            (field) => field.isPolymorphic && relationshipKeys.includes(field.fieldName),\n          );\n          polymorphicFields.forEach((polymorphicField) => {\n            const dataType = getPolymorphicDataType(\n              polymorphicField.polymorphicReferencedModels,\n              record[polymorphicField.attributeNameWithRelationships].constructor.modelName,\n            );\n            data.data.relationships[polymorphicField.fieldName].data.type = dataType;\n          });\n        }\n      }\n\n      record.eachAttribute((attribute, field) => {\n        const attributeName = attribute.replace('forest-', '');\n\n        // NOTICE: If data.data is undefined, it serializes an \"embedded\n        //         document\", the empty strings of the \"embedded document\"\n        //         wont be nullified with the current code.\n        const isStringField =\n          field.type === 'string'\n          && data.data !== undefined\n          && data.data.attributes\n          && data.data.attributes[attributeName] !== undefined;\n\n        const isEmptyString =\n          isStringField\n          && data.data.attributes[attributeName] !== null\n          && data.data.attributes[attributeName].length === 0;\n\n        if (isEmptyString) {\n          data.data.attributes[attributeName] = null;\n        }\n      });\n\n      return data;\n    }\n\n    modelNameFromPayloadKey(payloadKey) {\n      return namespace(dasherize(singularize(payloadKey)), '-');\n    }\n\n    payloadKeyFromModelName(modelName) {\n      const theCollection = this.collectionCreator.findCollectionFromEmberName(modelName);\n      return pluralize(theCollection.name);\n    }\n\n    keyForAttribute(key) {\n      if (key === 'forest-id') {\n        return ID_FIELD_FOR_MODEL;\n      }\n      return denamespace(key, '-');\n    }\n\n    keyForRelationship(key) {\n      return denamespace(key, '-');\n    }\n\n    static mapLinks(resourceHash, attribute, links) {\n      const ret = {};\n\n      Object.keys(links).forEach((key) => {\n        const link = links[key];\n        if (typeof link === 'object' && link.meta && typeof link.meta.count !== 'undefined') {\n          resourceHash.attributes[`${attribute}Count`] = link.meta.count;\n          ret[key] = link.href;\n        } else {\n          ret[key] = link;\n        }\n      });\n\n      return ret;\n    }\n\n    extractAttributes(modelClass, resourceHash, ...args) {\n      if (resourceHash.relationships) {\n        Object.keys(resourceHash.relationships).forEach((key) => {\n          const relationship = resourceHash.relationships[key];\n\n          if (relationship.links) {\n            relationship.links = ClientSerializer.mapLinks(resourceHash, key, relationship.links);\n          }\n\n          const { data } = relationship;\n          if (data) {\n            // NOTICE: Missing attributes property is valid according JSON API specification.\n            if (!resourceHash.attributes) {\n              resourceHash.attributes = {};\n            }\n\n            if (isArray(data)) {\n              resourceHash.attributes[`${key}_ids`] = [];\n              data.forEach((rel) => {\n                resourceHash.attributes[`${key}_ids`].push(rel.id);\n              });\n            } else {\n              resourceHash.attributes[`${key}_id`] = data.id;\n            }\n          }\n        });\n      }\n\n      return super.extractAttributes(modelClass, resourceHash, ...args);\n    }\n\n    serializeAttribute(snapshot, json, key, attribute, ...args) {\n      if (SchemaUtils.isGeneratedAttribute(attribute)) {\n        return false;\n      }\n\n      // On create, empty values are not sent in order to create records with default values\n      if (snapshot.attr(key) === undefined || (snapshot.isNew && snapshot.attr(key) === '')) {\n        return false;\n      }\n\n      return super.serializeAttribute(snapshot, json, key, attribute, ...args);\n    }\n  };\n}\n","import { isArray } from '@ember/array';\nimport { defaultsDeep } from 'lodash';\n\nimport { AgentTypeEnum } from 'client/data/models/environment';\nimport { REGEX_UUID } from 'client/utils/uuid-utils';\n\nfunction getIsPresentValidation(validation, fieldType, defaultValue) {\n  // The presence validation use Ember.isBlank behind the hood and it's not ok for two cases:\n  // - it considers empty array and empty JSON as blank which we do not want\n  // - it considers empty strings as blank which we do not want when the default value is an empty string\n  // To avoid that we create are own validator with custom.\n  if (\n    fieldType === 'Json'\n    || isArray(fieldType)\n    || (fieldType === 'String' && defaultValue === '')\n  ) {\n    const result = {\n      custom: {\n        validation(key, value) {\n          return ![undefined, null, ...(fieldType === 'String' ? [] : [''])].includes(value);\n        },\n      },\n    };\n    if (validation.message) {\n      result.custom.message = validation.message;\n    }\n    return result;\n  }\n  return validation.message ? { presence: { message: validation.message } } : { presence: true };\n}\n\nexport function getFieldValidation(validation, fieldType, defaultValue, lianaSession) {\n  let result;\n\n  const oldAgents = [\n    AgentTypeEnum.ExpressSequelize,\n    AgentTypeEnum.ExpressMongoose,\n    AgentTypeEnum.Laravel,\n    AgentTypeEnum.Rails,\n  ];\n  if (\n    oldAgents.includes(lianaSession.currentEnvironment?.lianaName)\n    && /^is (greater|less) than$/.test(validation.type)\n  ) {\n    validation.type += ' or equal to';\n  }\n\n  switch (validation.type) {\n    case 'is present': {\n      return getIsPresentValidation(validation, fieldType, defaultValue);\n    }\n    case 'is greater than or equal to':\n    case 'is greater than': {\n      if (fieldType !== 'Number') {\n        return null;\n      }\n\n      const key = validation.type === 'is greater than' ? 'greaterThan' : 'greaterThanOrEqualTo';\n      return {\n        numericality: {\n          allowBlank: true,\n          [key]: parseInt(validation.value, 10),\n          // NOTICE: Message for \"greaterThanOrEqualTo\" validation is not yet implemented.\n          // message: validation.message\n        },\n      };\n    }\n    case 'is less than or equal to':\n    case 'is less than': {\n      if (fieldType !== 'Number') {\n        return null;\n      }\n\n      const key = validation.type === 'is less than' ? 'lessThan' : 'lessThanOrEqualTo';\n      return {\n        numericality: {\n          allowBlank: true,\n          [key]: parseInt(validation.value, 10),\n          // NOTICE: Message for \"lessThanOrEqualTo\" validation is not yet implemented.\n          // message: validation.message\n        },\n      };\n    }\n    case 'is like': {\n      const match = validation.value.match(/^\\/(.*?)\\/([gimy]*)$/);\n\n      if (!match) {\n        return null;\n      }\n\n      try {\n        result = { format: { with: new RegExp(match[1], match[2]) } };\n\n        if (validation.message) {\n          result.format.message = validation.message;\n        }\n\n        return result;\n        // eslint-disable-next-line sonarjs/no-ignored-exceptions\n      } catch (error) {\n        return null;\n      }\n    }\n    case 'contains': {\n      result = { format: { with: new RegExp(`.*${validation.value}.*`) } };\n\n      if (validation.message) {\n        result.format.message = validation.message;\n      }\n\n      return result;\n    }\n    case 'is longer than': {\n      return {\n        length: {\n          allowBlank: true,\n          minimum: parseInt(validation.value, 10),\n          // NOTICE: Message for \"minimum\" validation is not yet implemented.\n          // message: validation.message\n        },\n      };\n    }\n    case 'is shorter than': {\n      return {\n        length: {\n          allowBlank: true,\n          maximum: parseInt(validation.value, 10),\n          // NOTICE: Message for \"maximum\" validation is not yet implemented.\n          // message: validation.message\n        },\n      };\n    }\n    case 'is after': {\n      return { date: { allowBlank: true, after: validation.value } };\n      // NOTICE: Message for \"after\" validation is not yet implemented.\n      // if (validation.message) {\n      //   result.date.message = validation.message;\n      // }\n    }\n    case 'is before': {\n      return { date: { allowBlank: true, before: validation.value } };\n      // NOTICE: Message for \"before\" validation is not yet implemented.\n      // if (validation.message) {\n      //   result.date.message = validation.message;\n      // }\n    }\n    default: {\n      return null;\n    }\n  }\n}\n\nexport default function getValidationsForField(field, lianaSession) {\n  let modelValidation = {};\n\n  field.validations?.forEach((validation) => {\n    modelValidation = defaultsDeep(\n      modelValidation,\n      getFieldValidation(validation, field.type, field.defaultValue, lianaSession),\n    );\n  });\n\n  // NOTICE: Ensures that isRequired fields without presence validation (eg Smart Fields\n  //         declared as required) are really mandatory in the creation/update forms.\n  if (field.isRequired && !modelValidation?.presence && !modelValidation.custom) {\n    modelValidation.presence = true;\n  }\n\n  if (field.isUuid) {\n    modelValidation.format = {\n      with: REGEX_UUID,\n      message: 'is not a valid UUID',\n    };\n  }\n\n  return modelValidation;\n}\n","import tinycolor from 'tinycolor2';\n\nexport enum ButtonTypeEnum {\n  Info = 'info',\n  Warning = 'warning',\n  Danger = 'danger',\n  Success = 'success',\n  Primary = 'primary',\n  Neutral = 'neutral',\n}\n\nexport const predefinedButtonTypeValues: { color: ButtonTypeEnum; text: string }[] = [\n  { color: ButtonTypeEnum.Primary, text: 'Default' },\n  { color: ButtonTypeEnum.Info, text: 'Info' },\n  { color: ButtonTypeEnum.Success, text: 'Success' },\n  { color: ButtonTypeEnum.Warning, text: 'Warning' },\n  { color: ButtonTypeEnum.Danger, text: 'Danger' },\n  { color: ButtonTypeEnum.Neutral, text: 'Neutral' },\n];\n\nconst PREDEFINED_COLORS = [\n  'info',\n  'warning',\n  'danger',\n  'success',\n  'surface',\n  'secondary',\n  'primary',\n  'editor',\n];\n\nexport const BADGE_COLORS = [\n  // base\n  '--emerald-600',\n  '--sky-600',\n  '--blue-600',\n  '--purple-600',\n  '--pink-600',\n  '--red-600',\n  '--orange-600',\n  '--yellow-500',\n  '--lime-500',\n  '--tomato-600',\n  '--indigo-600',\n  '--gold-600',\n  '--turquoise-600',\n  '--fuschia-600',\n  '--arctic-600',\n  '--coral-600',\n  '--gray-600',\n];\n\nexport const REGEX_COLOR = /^#?[A-Fa-f0-9]{3,6}$/;\nexport const REGEX_COLOR_WITH_ALPHA = /^#?[A-Fa-f0-9]{3,8}$/;\nexport function getColorFromTheme(color: string) {\n  if (PREDEFINED_COLORS.includes(color)) {\n    const computedStyle = getComputedStyle(document.body);\n    const colorName = color === 'secondary' ? '--slate-800' : `--color-${color}-700`;\n    return computedStyle.getPropertyValue(colorName)?.trim();\n  }\n  if (color?.startsWith('--')) {\n    const computedStyle = getComputedStyle(document.body);\n    return computedStyle.getPropertyValue(color)?.trim();\n  }\n  return color;\n}\nexport const COLORS_NAME_TO_HEXA: Record<string, string> = {\n  editor: getColorFromTheme('editor'),\n  success: getColorFromTheme('success'),\n  info: getColorFromTheme('info'),\n  warning: getColorFromTheme('warning'),\n  danger: getColorFromTheme('danger'),\n  secondary: getColorFromTheme('secondary'),\n  'secondary-light': getColorFromTheme('--color-contrast-low-100'),\n  tertiary: getColorFromTheme('--color-contrast-low-700'),\n  textDark: getColorFromTheme('--color-contrast-high-900'),\n  textMedium: getColorFromTheme('--color-contrast-high-700'),\n  textLight: getColorFromTheme('--color-contrast-high-100'),\n  textDisabled: getColorFromTheme('--color-contrast-low-700'),\n};\nexport const COLORS_FROM_FOREST = [\n  ...Object.values(COLORS_NAME_TO_HEXA),\n  ...BADGE_COLORS.map(getColorFromTheme),\n].map((color) => color.toUpperCase());\n\nexport default {\n  isServiceFactory: true,\n  colors: BADGE_COLORS.map(getColorFromTheme),\n\n  randomColor() {\n    const getRandomNumber = () => Math.floor(Math.random() * Math.floor(255));\n    const getRandomHex = () => `0${getRandomNumber().toString(16)}`.substring(-2);\n    return `#${getRandomHex()}${getRandomHex()}${getRandomHex()}`;\n  },\n\n  randomColorBasedOnString(text: string) {\n    if (!text) {\n      return null;\n    }\n\n    // NOTICE: This algorithm will do a sum of all the letter characters to determine a position\n    //         in the list of predefined colors.\n    //         Then we determine a shade based on the first 5 characters of the word, which will\n    //         give us a tint to have more colors (But still readable colors).\n    const lowerCaseText = text.toLowerCase();\n    const aCharCode = 'a'.charCodeAt(0);\n    const percentsByPosition = [10, 7, 5, 3, 1];\n    const subText = lowerCaseText.substring(0, 5);\n\n    let currentPercent = 0;\n    for (let index = 0; index < subText.length; index += 1) {\n      const charCode = subText.charCodeAt(index);\n      const score = (charCode - aCharCode) / this.colors.length;\n      const percentForPosition = percentsByPosition[index];\n      const factor = score * 0.5;\n      currentPercent += factor * percentForPosition;\n    }\n\n    let colorIndex = 0;\n    for (let index = 0; index < lowerCaseText.length; index += 1) {\n      const charCode = lowerCaseText.charCodeAt(index);\n      colorIndex = (colorIndex + charCode) % this.colors.length;\n    }\n\n    const color = this.colors[colorIndex];\n    return this.darkenColor(color, currentPercent);\n  },\n\n  predefinedColorForIndex(index: number) {\n    return this.colors[index % this.colors.length];\n  },\n\n  predefinedRandomColors(n: number) {\n    const colors: string[] = [];\n    for (let i = 0; i < n; i += 1) {\n      colors.push(this.colors[i % this.colors.length]);\n    }\n    return colors;\n  },\n\n  shadeColor(color: string, percent: number) {\n    const colorCode = color.substring(1, color.length);\n    const f = parseInt(colorCode, 16);\n    const t = percent < 0 ? 0 : 255;\n    const p = percent < 0 ? percent * -1 : percent;\n    const R = f >> 16;\n    const G = (f >> 8) & 0x00ff;\n    const B = f & 0x0000ff;\n\n    const colorCodeFinal = (\n      0x1000000\n      + (Math.round((t - R) * p) + R) * 0x10000\n      + (Math.round((t - G) * p) + G) * 0x100\n      + (Math.round((t - B) * p) + B)\n    )\n      .toString(16)\n      .slice(1);\n\n    return `#${colorCodeFinal}`;\n  },\n\n  subtractLight(color: string, amount: number) {\n    const colorModified = parseInt(color, 16) - amount;\n    const colorCode = colorModified < 0 ? 0 : colorModified;\n    return colorCode.toString(16).length > 1\n      ? colorCode.toString(16).substring(0, 2)\n      : `0${colorCode.toString(16)}`;\n  },\n\n  darkenColor(color: string, percent: number) {\n    const colorWihtoutHash = color.startsWith('#') ? color.slice(1) : color;\n    const amount = Math.floor((255 * percent) / 100);\n    const red = this.subtractLight(colorWihtoutHash.substring(0, 2), amount);\n    const green = this.subtractLight(colorWihtoutHash.substring(2, 4), amount);\n    const blue = this.subtractLight(colorWihtoutHash.substring(4, 6), amount);\n    return `#${red}${green}${blue}`;\n  },\n\n  colorOrDefault(color?: string) {\n    if (color) {\n      if (color.length === 6) {\n        return `#${color}`;\n      }\n      if (color.length === 7 && color[0] === '#') {\n        return color;\n      }\n    }\n\n    // NOTICE: Use the Forest main color by default.\n    return getColorFromTheme('--accent-600');\n  },\n\n  getColorPrimaryVariants(primaryColor: string) {\n    const light = tinycolor(primaryColor).toHsl();\n    const primaryColorVariants: string[] = [];\n\n    const steps = [11, 10, 8, 7, 5, 2, 0, -2.5, -5];\n    const lightFactor = (0.96 - light.l) / 11;\n\n    for (let step = 0; step < steps.length; step += 1) {\n      const color = tinycolor({\n        h: light.h,\n        s: light.s,\n        l: light.l + steps[step] * lightFactor,\n      });\n      primaryColorVariants.push(`#${color.toHex()}`);\n    }\n\n    return primaryColorVariants;\n  },\n\n  getColorPrimaryVariantsDark(primaryColorHex: string) {\n    const opacities = [0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.15, 1.4];\n\n    const primaryColorVariants: string[] = [];\n    const primaryColor = tinycolor(primaryColorHex).toRgb();\n    const backgroundColor = tinycolor(\n      getComputedStyle(document.documentElement).getPropertyValue('--color-beta-background'),\n    ).toRgb();\n    opacities.forEach((opacity) => {\n      // target = opacity x overlay + (1 - opacity) x background\n      const red = opacity * primaryColor.r + (1 - opacity) * backgroundColor.r;\n      const green = opacity * primaryColor.g + (1 - opacity) * backgroundColor.g;\n      const blue = opacity * primaryColor.b + (1 - opacity) * backgroundColor.b;\n      const color = tinycolor({ r: red, b: blue, g: green });\n      primaryColorVariants.push(`#${color.toHex()}`);\n    });\n    return primaryColorVariants;\n  },\n\n  getGradientLastColor(startColor: string) {\n    return tinycolor(startColor).spin(35).toHexString();\n  },\n\n  setColorPrimaryVariantsOnElement(element: HTMLElement, primaryColor: string, darkMode = false) {\n    const primaryColorVariants = darkMode\n      ? this.getColorPrimaryVariantsDark(primaryColor)\n      : this.getColorPrimaryVariants(primaryColor);\n    element.style.setProperty('--color-primary-100', primaryColorVariants[0]);\n    element.style.setProperty('--color-primary-200', primaryColorVariants[1]);\n    element.style.setProperty('--color-primary-300', primaryColorVariants[2]);\n    element.style.setProperty('--color-primary-400', primaryColorVariants[3]);\n    element.style.setProperty('--color-primary-500', primaryColorVariants[4]);\n    element.style.setProperty('--color-primary-600', primaryColorVariants[5]);\n    element.style.setProperty('--color-primary-700', primaryColorVariants[6]);\n    element.style.setProperty('--color-primary-800', primaryColorVariants[7]);\n    element.style.setProperty('--color-primary-900', primaryColorVariants[8]);\n\n    element.style.setProperty('--primary-100', primaryColorVariants[0]);\n    element.style.setProperty('--primary-200', primaryColorVariants[1]);\n    element.style.setProperty('--primary-300', primaryColorVariants[2]);\n    element.style.setProperty('--primary-400', primaryColorVariants[3]);\n    element.style.setProperty('--primary-500', primaryColorVariants[4]);\n    element.style.setProperty('--primary-600', primaryColorVariants[5]);\n    element.style.setProperty('--primary-700', primaryColorVariants[6]);\n    element.style.setProperty('--primary-800', primaryColorVariants[7]);\n    element.style.setProperty('--primary-900', primaryColorVariants[8]);\n  },\n};\n","import { isEmpty } from '@ember/utils';\nimport moment from 'moment';\n\nimport { findOperatorFromDisplayName } from 'client/utils/condition-utils';\n\nconst checkCondition = function (type, operator, valueRecord, valueComparison = null) {\n  if (valueRecord === undefined) {\n    return false;\n  }\n\n  // NOTICE: Prevent missing hasOne field case error\n  let castRecordValue = valueRecord;\n  let castComparisonValue = valueComparison;\n\n  if (type === 'Boolean') {\n    castComparisonValue = ['true', true].includes(castComparisonValue);\n  } else if (type === 'Number') {\n    // NOTICE: prevent parsing null, empty string\n    if (![null, ''].includes(castRecordValue)) {\n      castRecordValue = parseFloat(castRecordValue, 10);\n    }\n    if (![null, ''].includes(castComparisonValue)) {\n      castComparisonValue = parseFloat(castComparisonValue, 10);\n    }\n  } else if (type === 'Date') {\n    if (castRecordValue && !castRecordValue._isAMomentObject) {\n      castRecordValue = moment(castRecordValue);\n    }\n    if (findOperatorFromDisplayName(operator)?.valueType === 'Number') {\n      castComparisonValue = parseInt(castComparisonValue, 10);\n    } else if (castComparisonValue && !castComparisonValue._isAMomentObject) {\n      castComparisonValue = moment(castComparisonValue);\n    }\n  }\n\n  switch (operator) {\n    case 'is':\n      if (castRecordValue && castRecordValue._isAMomentObject) {\n        return castRecordValue.isSame(castComparisonValue);\n      }\n      return castRecordValue === castComparisonValue;\n    case 'is not':\n      if (castRecordValue && castRecordValue._isAMomentObject) {\n        return !castRecordValue.isSame(castComparisonValue);\n      }\n      return castRecordValue !== castComparisonValue;\n    case 'is in':\n      return castComparisonValue.includes(castRecordValue);\n    case 'starts with':\n      return !!castRecordValue && castRecordValue.startsWith(castComparisonValue);\n    case 'ends with':\n      return !!castRecordValue && castRecordValue.endsWith(castComparisonValue);\n    case 'contains':\n      return !!castRecordValue && castRecordValue.indexOf(castComparisonValue) !== -1;\n    case 'not contains':\n      return !!castRecordValue && castRecordValue.indexOf(castComparisonValue) === -1;\n    case 'is greater than':\n      return castRecordValue > castComparisonValue;\n    case 'is less than':\n      return castRecordValue < castComparisonValue;\n    case 'is present':\n      // NOTICE: Check Date fields value\n      if (castRecordValue && castRecordValue._isAMomentObject) {\n        return castRecordValue._isValid;\n      }\n      return castRecordValue !== null && castRecordValue !== undefined;\n    case 'is blank':\n      // NOTICE: Check Date fields value\n      if (castRecordValue && castRecordValue._isAMomentObject) {\n        return !castRecordValue._isValid;\n      }\n      return isEmpty(castRecordValue);\n    case 'is today':\n      return (\n        castRecordValue >= moment().startOf('day')\n        && castRecordValue < moment().add(1, 'day').startOf('day')\n      );\n    case 'was yesterday':\n      return (\n        castRecordValue < moment().startOf('day')\n        && castRecordValue >= moment().subtract(1, 'day').startOf('day')\n      );\n    case 'was in previous week':\n      return (\n        castRecordValue < moment().startOf('week')\n        && castRecordValue >= moment().subtract(1, 'week').startOf('week')\n      );\n    case 'was in previous month':\n      return (\n        castRecordValue < moment().startOf('month')\n        && castRecordValue >= moment().subtract(1, 'month').startOf('month')\n      );\n    case 'was in previous quarter':\n      return (\n        castRecordValue < moment().startOf('quarter')\n        && castRecordValue >= moment().subtract(1, 'quarter').startOf('quarter')\n      );\n    case 'was in previous year':\n      return (\n        castRecordValue < moment().startOf('year')\n        && castRecordValue >= moment().subtract(1, 'year').startOf('year')\n      );\n    case 'was in previous X days':\n      return (\n        castRecordValue < moment().startOf('day')\n        && castRecordValue >= moment().subtract(castComparisonValue, 'day').startOf('day')\n      );\n    case 'was before X hours ago':\n      return castRecordValue <= moment().subtract(castComparisonValue, 'hour');\n    case 'is after X hours ago':\n      return castRecordValue >= moment().subtract(castComparisonValue, 'hour');\n    case 'is before':\n      return castRecordValue <= castComparisonValue;\n    case 'is after':\n      return castRecordValue >= castComparisonValue;\n    case 'is these X days to date':\n      return (\n        castRecordValue >= moment().subtract(castComparisonValue, 'day').startOf('day')\n        && castRecordValue <= moment()\n      );\n    case 'is this week to date':\n      return castRecordValue >= moment().startOf('week') && castRecordValue <= moment();\n    case 'is this month to date':\n      return castRecordValue >= moment().startOf('month') && castRecordValue <= moment();\n    case 'is this quarter to date':\n      return castRecordValue >= moment().startOf('quarter') && castRecordValue <= moment();\n    case 'is this year to date':\n      return castRecordValue >= moment().startOf('year') && castRecordValue <= moment();\n    case 'is in the past':\n      return castRecordValue < moment();\n    case 'is in the future':\n      return castRecordValue > moment();\n    default:\n  }\n\n  return false;\n};\n\nexport default checkCondition;\n","import type { Operator, OperatorValue } from 'client/utils/operators/index';\n\nimport { OPERATORS } from 'client/utils/operators/index';\n\nfunction findOperatorFromKey(\n  keyName: 'displayName' | 'name',\n  keyValue: string,\n): Operator<OperatorValue> | null {\n  return keyValue\n    ? (OPERATORS.find((operator) => operator[keyName] === keyValue) as Operator<OperatorValue>)\n    : null;\n}\n\nexport function findOperatorFromDisplayName(operatorName: string) {\n  return findOperatorFromKey('displayName', operatorName);\n}\n\nexport function findOperatorFromName(operatorName: string) {\n  return findOperatorFromKey('name', operatorName);\n}\n\nfunction hasValueDate(value: unknown, valueComponentType: string) {\n  return !!value && ['Date', 'DateOnly'].includes(valueComponentType);\n}\n\nfunction hasValueBoolean(value: unknown, valueComponentType: string) {\n  return !!value && valueComponentType === 'Boolean';\n}\n\nexport function castToBoolean(value: unknown) {\n  if (typeof value === 'string') {\n    switch (value.toLowerCase()) {\n      case 'true':\n      case 'yes':\n        return true;\n      case 'false':\n      case 'no':\n        return false;\n      default:\n        return !!value;\n    }\n  }\n  return !!value;\n}\n\nexport function getValueCastedForCondition(value: unknown, valueComponentType: string) {\n  if (hasValueDate(value, valueComponentType)) {\n    // eslint-disable-next-line @typescript-eslint/restrict-template-expressions\n    return new Date(`${value}`);\n  }\n  if (hasValueBoolean(value, valueComponentType)) {\n    return castToBoolean(value);\n  }\n  // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n  return value;\n}\n\nexport const SUPPORTED_TYPES_FOR_CONDITION = {\n  String: ['String', 'Number', 'Enum', 'Date', 'Dateonly', 'Uuid'],\n  File: ['File', 'String'],\n  Number: ['Number'],\n  Enum: ['Enum', 'String'],\n  Boolean: ['Boolean', 'String', 'Number'],\n  Date: ['Date', 'Dateonly', 'String', 'Number'],\n  Dateonly: ['Date', 'Dateonly', 'String', 'Number'],\n  Point: ['Point'],\n  Json: ['Json'],\n  Time: ['Time', 'Number'],\n};\n\nexport * from './operators/index';\n","const NOTHING_ALLOWED = 'Nothing allowed';\nconst EVERYTHING_ALLOWED = 'Everything allowed';\n\nexport { NOTHING_ALLOWED, EVERYTHING_ALLOWED };\n","export type Country = {\n  id: string;\n  name: string;\n  taxTypes?: string[];\n};\n\nexport const countries: Country[] = [\n  { id: 'AD', name: 'Andorra' },\n  { id: 'AE', name: 'United Arab Emirates', taxTypes: ['ae_trn'] },\n  { id: 'AF', name: 'Afghanistan' },\n  { id: 'AG', name: 'Antigua and Barbuda' },\n  { id: 'AI', name: 'Anguilla' },\n  { id: 'AL', name: 'Albania' },\n  { id: 'AM', name: 'Armenia' },\n  { id: 'AO', name: 'Angola' },\n  { id: 'AQ', name: 'Antarctica' },\n  { id: 'AR', name: 'Argentina' },\n  { id: 'AS', name: 'American Samoa' },\n  { id: 'AT', name: 'Austria', taxTypes: ['eu_vat'] },\n  { id: 'AU', name: 'Australia', taxTypes: ['au_abn', 'au_arn'] },\n  { id: 'AW', name: 'Aruba' },\n  { id: 'AX', name: 'Åland Islands' },\n  { id: 'AZ', name: 'Azerbaijan' },\n  { id: 'BA', name: 'Bosnia and Herzegovina' },\n  { id: 'BB', name: 'Barbados' },\n  { id: 'BD', name: 'Bangladesh' },\n  { id: 'BE', name: 'Belgium', taxTypes: ['eu_vat'] },\n  { id: 'BF', name: 'Burkina Faso' },\n  { id: 'BG', name: 'Bulgaria', taxTypes: ['eu_vat', 'bg_uic'] },\n  { id: 'BH', name: 'Bahrain' },\n  { id: 'BI', name: 'Burundi' },\n  { id: 'BJ', name: 'Benin' },\n  { id: 'BL', name: 'Saint Barthélemy' },\n  { id: 'BM', name: 'Bermuda' },\n  { id: 'BN', name: 'Brunei Darussalam' },\n  { id: 'BO', name: 'Bolivia (Plurinational State of)' },\n  { id: 'BQ', name: 'Bonaire, Sint Eustatius and Saba' },\n  { id: 'BR', name: 'Brazil', taxTypes: ['br_cnpj', 'br_cpf'] },\n  { id: 'BS', name: 'Bahamas' },\n  { id: 'BT', name: 'Bhutan' },\n  { id: 'BV', name: 'Bouvet Island' },\n  { id: 'BW', name: 'Botswana' },\n  { id: 'BY', name: 'Belarus' },\n  { id: 'BZ', name: 'Belize' },\n  {\n    id: 'CA',\n    name: 'Canada',\n    taxTypes: ['ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst'],\n  },\n  { id: 'CC', name: 'Cocos (Keeling) Islands' },\n  { id: 'CD', name: 'Congo, Democratic Republic of the' },\n  { id: 'CF', name: 'Central African Republic' },\n  { id: 'CG', name: 'Congo' },\n  { id: 'CH', name: 'Switzerland', taxTypes: ['ch_vat'] },\n  { id: 'CI', name: \"Côte d'Ivoire\" },\n  { id: 'CK', name: 'Cook Islands' },\n  { id: 'CL', name: 'Chile', taxTypes: ['cl_tin'] },\n  { id: 'CM', name: 'Cameroon' },\n  { id: 'CN', name: 'China' },\n  { id: 'CO', name: 'Colombia' },\n  { id: 'CR', name: 'Costa Rica' },\n  { id: 'CU', name: 'Cuba' },\n  { id: 'CV', name: 'Cabo Verde' },\n  { id: 'CW', name: 'Curaçao' },\n  { id: 'CX', name: 'Christmas Island' },\n  { id: 'CY', name: 'Cyprus', taxTypes: ['eu_vat'] },\n  { id: 'CZ', name: 'Czechia', taxTypes: ['eu_vat'] },\n  { id: 'DE', name: 'Germany', taxTypes: ['eu_vat'] },\n  { id: 'DJ', name: 'Djibouti' },\n  { id: 'DK', name: 'Denmark', taxTypes: ['eu_vat'] },\n  { id: 'DM', name: 'Dominica' },\n  { id: 'DO', name: 'Dominican Republic' },\n  { id: 'DZ', name: 'Algeria' },\n  { id: 'EC', name: 'Ecuador' },\n  { id: 'EE', name: 'Estonia', taxTypes: ['eu_vat'] },\n  { id: 'EG', name: 'Egypt', taxTypes: ['eg_tin'] },\n  { id: 'EH', name: 'Western Sahara' },\n  { id: 'ER', name: 'Eritrea' },\n  { id: 'ES', name: 'Spain', taxTypes: ['eu_vat', 'es_cif'] },\n  { id: 'ET', name: 'Ethiopia' },\n  { id: 'FI', name: 'Finland', taxTypes: ['eu_vat'] },\n  { id: 'FJ', name: 'Fiji' },\n  { id: 'FK', name: 'Falkland Islands (Malvinas)' },\n  { id: 'FM', name: 'Micronesia (Federated States of)' },\n  { id: 'FO', name: 'Faroe Islands' },\n  { id: 'FR', name: 'France', taxTypes: ['eu_vat'] },\n  { id: 'GA', name: 'Gabon' },\n  {\n    id: 'GB',\n    name: 'United Kingdom of Great Britain and Northern Ireland',\n    taxTypes: ['gb_vat', 'eu_vat'],\n  },\n  { id: 'GD', name: 'Grenada' },\n  { id: 'GE', name: 'Georgia', taxTypes: ['ge_vat'] },\n  { id: 'GF', name: 'French Guiana' },\n  { id: 'GG', name: 'Guernsey' },\n  { id: 'GH', name: 'Ghana' },\n  { id: 'GI', name: 'Gibraltar' },\n  { id: 'GL', name: 'Greenland' },\n  { id: 'GM', name: 'Gambia' },\n  { id: 'GN', name: 'Guinea' },\n  { id: 'GP', name: 'Guadeloupe' },\n  { id: 'GQ', name: 'Equatorial Guinea' },\n  { id: 'GR', name: 'Greece', taxTypes: ['eu_vat'] },\n  { id: 'GS', name: 'South Georgia and the South Sandwich Islands' },\n  { id: 'GT', name: 'Guatemala' },\n  { id: 'GU', name: 'Guam' },\n  { id: 'GW', name: 'Guinea-Bissau' },\n  { id: 'GY', name: 'Guyana' },\n  { id: 'HK', name: 'Hong Kong', taxTypes: ['hk_br'] },\n  { id: 'HM', name: 'Heard Island and McDonald Islands' },\n  { id: 'HN', name: 'Honduras' },\n  { id: 'HR', name: 'Croatia', taxTypes: ['eu_vat'] },\n  { id: 'HT', name: 'Haiti' },\n  { id: 'HU', name: 'Hungary', taxTypes: ['eu_vat', 'hu_tin'] },\n  { id: 'ID', name: 'Indonesia', taxTypes: ['id_npwp'] },\n  { id: 'IE', name: 'Ireland', taxTypes: ['eu_vat'] },\n  { id: 'IL', name: 'Israel', taxTypes: ['il_vat'] },\n  { id: 'IM', name: 'Isle of Man' },\n  { id: 'IN', name: 'India', taxTypes: ['in_gst'] },\n  { id: 'IO', name: 'British Indian Ocean Territory' },\n  { id: 'IQ', name: 'Iraq' },\n  { id: 'IR', name: 'Iran (Islamic Republic of)' },\n  { id: 'IS', name: 'Iceland', taxTypes: ['is_vat'] },\n  { id: 'IT', name: 'Italy', taxTypes: ['eu_vat'] },\n  { id: 'JE', name: 'Jersey' },\n  { id: 'JM', name: 'Jamaica' },\n  { id: 'JO', name: 'Jordan' },\n  { id: 'JP', name: 'Japan', taxTypes: ['jp_cn', 'jp_rn', 'jp_trn'] },\n  { id: 'KE', name: 'Kenya', taxTypes: ['ke_pin'] },\n  { id: 'KG', name: 'Kyrgyzstan' },\n  { id: 'KH', name: 'Cambodia' },\n  { id: 'KI', name: 'Kiribati' },\n  { id: 'KM', name: 'Comoros' },\n  { id: 'KN', name: 'Saint Kitts and Nevis' },\n  { id: 'KP', name: \"Korea (Democratic People's Republic of)\" },\n  { id: 'KR', name: 'Korea, Republic of', taxTypes: ['kr_brn'] },\n  { id: 'KW', name: 'Kuwait' },\n  { id: 'KY', name: 'Cayman Islands' },\n  { id: 'KZ', name: 'Kazakhstan' },\n  { id: 'LA', name: \"Lao People's Democratic Republic\" },\n  { id: 'LB', name: 'Lebanon' },\n  { id: 'LC', name: 'Saint Lucia' },\n  { id: 'LI', name: 'Liechtenstein', taxTypes: ['li_uid'] },\n  { id: 'LK', name: 'Sri Lanka' },\n  { id: 'LR', name: 'Liberia' },\n  { id: 'LS', name: 'Lesotho' },\n  { id: 'LT', name: 'Lithuania', taxTypes: ['eu_vat'] },\n  { id: 'LU', name: 'Luxembourg', taxTypes: ['eu_vat'] },\n  { id: 'LV', name: 'Latvia', taxTypes: ['eu_vat'] },\n  { id: 'LY', name: 'Libya' },\n  { id: 'MA', name: 'Morocco' },\n  { id: 'MC', name: 'Monaco' },\n  { id: 'MD', name: 'Moldova, Republic of' },\n  { id: 'ME', name: 'Montenegro' },\n  { id: 'MF', name: 'Saint Martin (French part)' },\n  { id: 'MG', name: 'Madagascar' },\n  { id: 'MH', name: 'Marshall Islands' },\n  { id: 'MK', name: 'North Macedonia' },\n  { id: 'ML', name: 'Mali' },\n  { id: 'MM', name: 'Myanmar' },\n  { id: 'MN', name: 'Mongolia' },\n  { id: 'MO', name: 'Macao' },\n  { id: 'MP', name: 'Northern Mariana Islands' },\n  { id: 'MQ', name: 'Martinique' },\n  { id: 'MR', name: 'Mauritania' },\n  { id: 'MS', name: 'Montserrat' },\n  { id: 'MT', name: 'Malta', taxTypes: ['eu_vat'] },\n  { id: 'MU', name: 'Mauritius' },\n  { id: 'MV', name: 'Maldives' },\n  { id: 'MW', name: 'Malawi' },\n  { id: 'MX', name: 'Mexico', taxTypes: ['mx_rfc'] },\n  { id: 'MY', name: 'Malaysia', taxTypes: ['my_itn', 'my_frp', 'my_sst'] },\n  { id: 'MZ', name: 'Mozambique' },\n  { id: 'NA', name: 'Namibia' },\n  { id: 'NC', name: 'New Caledonia' },\n  { id: 'NE', name: 'Niger' },\n  { id: 'NF', name: 'Norfolk Island' },\n  { id: 'NG', name: 'Nigeria' },\n  { id: 'NI', name: 'Nicaragua' },\n  { id: 'NL', name: 'Netherlands', taxTypes: ['eu_vat'] },\n  { id: 'NO', name: 'Norway', taxTypes: ['no_vat'] },\n  { id: 'NP', name: 'Nepal' },\n  { id: 'NR', name: 'Nauru' },\n  { id: 'NU', name: 'Niue' },\n  { id: 'NZ', name: 'New Zealand', taxTypes: ['nz_gst'] },\n  { id: 'OM', name: 'Oman' },\n  { id: 'PA', name: 'Panama' },\n  { id: 'PE', name: 'Peru' },\n  { id: 'PF', name: 'French Polynesia' },\n  { id: 'PG', name: 'Papua New Guinea' },\n  { id: 'PH', name: 'Philippines', taxTypes: ['ph_tin'] },\n  { id: 'PK', name: 'Pakistan' },\n  { id: 'PL', name: 'Poland', taxTypes: ['eu_vat'] },\n  { id: 'PM', name: 'Saint Pierre and Miquelon' },\n  { id: 'PN', name: 'Pitcairn' },\n  { id: 'PR', name: 'Puerto Rico' },\n  { id: 'PS', name: 'Palestine, State of' },\n  { id: 'PT', name: 'Portugal', taxTypes: ['eu_vat'] },\n  { id: 'PW', name: 'Palau' },\n  { id: 'PY', name: 'Paraguay' },\n  { id: 'QA', name: 'Qatar' },\n  { id: 'RE', name: 'Réunion' },\n  { id: 'RO', name: 'Romania', taxTypes: ['eu_vat'] },\n  { id: 'RS', name: 'Serbia' },\n  { id: 'RU', name: 'Russian Federation', taxTypes: ['ru_kpp', 'ru_inn'] },\n  { id: 'RW', name: 'Rwanda' },\n  { id: 'SA', name: 'Saudi Arabia', taxTypes: ['sa_vat'] },\n  { id: 'SB', name: 'Solomon Islands' },\n  { id: 'SC', name: 'Seychelles' },\n  { id: 'SD', name: 'Sudan' },\n  { id: 'SE', name: 'Sweden', taxTypes: ['eu_vat'] },\n  { id: 'SG', name: 'Singapore', taxTypes: ['sg_gst', 'sg_uen'] },\n  { id: 'SH', name: 'Saint Helena, Ascension and Tristan da Cunha' },\n  { id: 'SI', name: 'Slovenia', taxTypes: ['eu_vat', 'si_tin'] },\n  { id: 'SJ', name: 'Svalbard and Jan Mayen' },\n  { id: 'SK', name: 'Slovakia', taxTypes: ['eu_vat'] },\n  { id: 'SL', name: 'Sierra Leone' },\n  { id: 'SM', name: 'San Marino' },\n  { id: 'SN', name: 'Senegal' },\n  { id: 'SO', name: 'Somalia' },\n  { id: 'SR', name: 'Suriname' },\n  { id: 'SS', name: 'South Sudan' },\n  { id: 'ST', name: 'Sao Tome and Principe' },\n  { id: 'SV', name: 'El Salvador' },\n  { id: 'SX', name: 'Sint Maarten (Dutch part)' },\n  { id: 'SY', name: 'Syrian Arab Republic' },\n  { id: 'SZ', name: 'Eswatini' },\n  { id: 'TC', name: 'Turks and Caicos Islands' },\n  { id: 'TD', name: 'Chad' },\n  { id: 'TF', name: 'French Southern Territories' },\n  { id: 'TG', name: 'Togo' },\n  { id: 'TH', name: 'Thailand', taxTypes: ['th_vat'] },\n  { id: 'TJ', name: 'Tajikistan' },\n  { id: 'TK', name: 'Tokelau' },\n  { id: 'TL', name: 'Timor-Leste' },\n  { id: 'TM', name: 'Turkmenistan' },\n  { id: 'TN', name: 'Tunisia' },\n  { id: 'TO', name: 'Tonga' },\n  { id: 'TR', name: 'Türkiye', taxTypes: ['tr_tin'] },\n  { id: 'TT', name: 'Trinidad and Tobago' },\n  { id: 'TV', name: 'Tuvalu' },\n  { id: 'TW', name: 'Taiwan', taxTypes: ['tw_vat'] },\n  { id: 'TZ', name: 'Tanzania, United Republic of' },\n  { id: 'UA', name: 'Ukraine', taxTypes: ['ua_vat'] },\n  { id: 'UG', name: 'Uganda' },\n  { id: 'UM', name: 'United States Minor Outlying Islands' },\n  {\n    id: 'US',\n    name: 'United States of America',\n    taxTypes: ['us_ein'],\n  },\n  { id: 'UY', name: 'Uruguay' },\n  { id: 'UZ', name: 'Uzbekistan' },\n  { id: 'VA', name: 'Holy See' },\n  { id: 'VC', name: 'Saint Vincent and the Grenadines' },\n  { id: 'VE', name: 'Venezuela' },\n  { id: 'VG', name: 'Virgin Islands (British)' },\n  { id: 'VI', name: 'Virgin Islands (U.S.)' },\n  { id: 'VN', name: 'Viet Nam' },\n  { id: 'VU', name: 'Vanuatu' },\n  { id: 'WF', name: 'Wallis and Futuna' },\n  { id: 'WS', name: 'Samoa' },\n  { id: 'YE', name: 'Yemen' },\n  { id: 'YT', name: 'Mayotte' },\n  { id: 'ZA', name: 'South Africa', taxTypes: ['za_vat'] },\n  { id: 'ZM', name: 'Zambia' },\n  { id: 'ZW', name: 'Zimbabwe' },\n];\n\n// Source of tax types: https://stripe.com/docs/billing/customer/tax-ids\nexport const taxTypes = [\n  {\n    id: 'eu_vat',\n    name: 'European VAT number',\n  },\n\n  {\n    id: 'au_abn',\n    name: 'Australian Business Number',\n  },\n  {\n    id: 'au_arn',\n    name: 'Australian Taxation Office Reference Number',\n  },\n  {\n    id: 'br_cnpj',\n    name: 'Brazilian CNPJ number',\n  },\n  {\n    id: 'br_cpf',\n    name: 'Brazilian CPF number',\n  },\n  {\n    id: 'bg_uic',\n    name: 'Bulgaria Unified Identification Code',\n  },\n  {\n    id: 'ca_bn',\n    name: 'Canadian BN',\n  },\n  {\n    id: 'ca_gst_hst',\n    name: 'Canadian GST/HST number',\n  },\n  {\n    id: 'ca_pst_bc',\n    name: 'Canadian PST number (British Columbia)',\n  },\n  {\n    id: 'ca_pst_mb',\n    name: 'Canadian PST number (Manitoba)',\n  },\n  {\n    id: 'ca_pst_sk',\n    name: 'Canadian PST number (Saskatchewan)',\n  },\n  {\n    id: 'ca_qst',\n    name: 'Canadian QST number (Québec)',\n  },\n  {\n    id: 'cl_tin',\n    name: 'Chilean Tax Identification Number',\n  },\n  {\n    id: 'eg_tin',\n    name: 'Egyptian Tax Identification Number',\n  },\n  {\n    id: 'ge_vat',\n    name: 'Georgian VAT number',\n  },\n  {\n    id: 'hk_br',\n    name: 'Hong Kong Business Registration number',\n  },\n  {\n    id: 'hu_tin',\n    name: 'Hungary tax number (adószám)',\n  },\n  {\n    id: 'is_vat',\n    name: 'Icelandic VAT number',\n  },\n  { id: 'in_gst', name: 'Indian GST number' },\n  {\n    id: 'id_npwp',\n    name: 'Indonesian NPWP number',\n  },\n  {\n    id: 'il_vat',\n    name: 'Israeli VAT number',\n  },\n  {\n    id: 'jp_cn',\n    name: 'Japanese Corporate Number (*Hōjin Bangō*)',\n  },\n  {\n    id: 'jp_rn',\n    name: \"Japanese Registered Foreign Businesses' Registration Number (*Tōroku Kokugai Jigyōsha no Tōroku Bangō*)\",\n  },\n  { id: 'jp_trn', name: 'Japanese Tax Registration Number (*Tōroku Bangō*)' },\n  { id: 'ke_pin', name: 'Kenya Revenue Authority Personal Identification Number' },\n  { id: 'li_uid', name: 'Liechtenstein UID number' },\n  {\n    id: 'my_frp',\n    name: 'Malaysian FRP number',\n  },\n  {\n    id: 'my_itn',\n    name: 'Malaysian ITN number',\n  },\n  {\n    id: 'my_sst',\n    name: 'Malaysian SST number',\n  },\n  {\n    id: 'mx_rfc',\n    name: 'Mexican RFC number',\n  },\n  {\n    id: 'nz_gst',\n    name: 'New Zealand GST number',\n  },\n  { id: 'no_vat', name: 'Norwegian VAT number' },\n  { id: 'ph_tin', name: 'Philippine TIN number' },\n  { id: 'ru_inn', name: '\tRussian INN' },\n  { id: 'ru_kpp', name: 'Russian KPP' },\n  {\n    id: 'sa_vat',\n    name: 'Saudi VAT number',\n  },\n  {\n    id: 'sg_gst',\n    name: 'Singapore GST number',\n  },\n  {\n    id: 'sg_uen',\n    name: 'Singapore UEN number',\n  },\n  {\n    id: 'si_tin',\n    name: 'Slovenia tax number (davčna številka)',\n  },\n  { id: 'za_vat', name: 'South African VAT number' },\n  { id: 'kr_brn', name: 'South Korean Business Registration Number' },\n  { id: 'es_cif', name: 'Spanish NIF number' },\n  { id: 'ch_vat', name: 'Switzerland VAT number' },\n  { id: 'tw_vat', name: 'Taiwanese VAT' },\n  { id: 'th_vat', name: 'Thai VAT number' },\n  { id: 'tr_tin', name: 'Turkish Tax Identification Number' },\n  { id: 'ua_vat', name: 'Ukrainian VAT number' },\n  { id: 'ae_trn', name: 'United Arab Emirates TRN' },\n  { id: 'gb_vat', name: 'United Kingdom VAT number' },\n  { id: 'us_ein', name: 'United States EIN' },\n];\n\nexport function getCountryById(id: string): Country {\n  return countries.find((country) => country.id === id);\n}\n","export default class CssClassHelper {\n  constructor(className) {\n    this.className = className;\n  }\n\n  className;\n  modifiers = [];\n\n  addModifier(modifier, condition = true) {\n    if (condition) {\n      this.modifiers.push(modifier);\n    }\n    return this;\n  }\n\n  generateClasses() {\n    return [\n      this.className,\n      ...this.modifiers.map((modifier) => `${this.className}--${modifier}`),\n    ].join(' ');\n  }\n}\n","// Source: https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes\nconst CURRENCIES = [\n  {\n    code: 'AED',\n    digits: 2,\n    name: 'United Arab Emirates dirham',\n    label: 'AED - United Arab Emirates dirham',\n  },\n  { code: 'AFN', digits: 2, name: 'Afghan afghani', label: 'AFN - Afghan afghani' },\n  { code: 'ALL', digits: 2, name: 'Albanian lek', label: 'ALL - Albanian lek' },\n  { code: 'AMD', digits: 2, name: 'Armenian dram', label: 'AMD - Armenian dram' },\n  {\n    code: 'ANG',\n    digits: 2,\n    name: 'Netherlands Antillean guilder',\n    label: 'ANG - Netherlands Antillean guilder',\n  },\n  { code: 'AOA', digits: 2, name: 'Angolan kwanza', label: 'AOA - Angolan kwanza' },\n  { code: 'ARS', digits: 2, name: 'Argentine peso', label: 'ARS - Argentine peso' },\n  { code: 'AUD', digits: 2, name: 'Australian dollar', label: 'AUD - Australian dollar' },\n  { code: 'AWG', digits: 2, name: 'Aruban florin', label: 'AWG - Aruban florin' },\n  { code: 'AZN', digits: 2, name: 'Azerbaijani manat', label: 'AZN - Azerbaijani manat' },\n  {\n    code: 'BAM',\n    digits: 2,\n    name: 'Bosnia and Herzegovina convertible mark',\n    label: 'BAM - Bosnia and Herzegovina convertible mark',\n  },\n  { code: 'BBD', digits: 2, name: 'Barbados dollar', label: 'BBD - Barbados dollar' },\n  { code: 'BDT', digits: 2, name: 'Bangladeshi taka', label: 'BDT - Bangladeshi taka' },\n  { code: 'BGN', digits: 2, name: 'Bulgarian lev', label: 'BGN - Bulgarian lev' },\n  { code: 'BHD', digits: 3, name: 'Bahraini dinar', label: 'BHD - Bahraini dinar' },\n  { code: 'BIF', digits: 0, name: 'Burundian franc', label: 'BIF - Burundian franc' },\n  { code: 'BMD', digits: 2, name: 'Bermudian dollar', label: 'BMD - Bermudian dollar' },\n  { code: 'BND', digits: 2, name: 'Brunei dollar', label: 'BND - Brunei dollar' },\n  { code: 'BOB', digits: 2, name: 'Boliviano', label: 'BOB - Boliviano' },\n  { code: 'BOV', digits: 2, name: 'Bolivian Mvdol', label: 'BOV - Bolivian Mvdol' },\n  { code: 'BRL', digits: 2, name: 'Brazilian real', label: 'BRL - Brazilian real' },\n  { code: 'BSD', digits: 2, name: 'Bahamian dollar', label: 'BSD - Bahamian dollar' },\n  { code: 'BTN', digits: 2, name: 'Bhutanese ngultrum', label: 'BTN - Bhutanese ngultrum' },\n  { code: 'BWP', digits: 2, name: 'Botswana pula', label: 'BWP - Botswana pula' },\n  { code: 'BYN', digits: 2, name: 'Belarusian ruble', label: 'BYN - Belarusian ruble' },\n  { code: 'BZD', digits: 2, name: 'Belize dollar', label: 'BZD - Belize dollar' },\n  { code: 'CAD', digits: 2, name: 'Canadian dollar', label: 'CAD - Canadian dollar' },\n  { code: 'CDF', digits: 2, name: 'Congolese franc', label: 'CDF - Congolese franc' },\n  { code: 'CHF', digits: 2, name: 'Swiss franc', label: 'CHF - Swiss franc' },\n  { code: 'CLP', digits: 0, name: 'Chilean peso', label: 'CLP - Chilean peso' },\n  { code: 'COP', digits: 2, name: 'Colombian peso', label: 'COP - Colombian peso' },\n  { code: 'CRC', digits: 2, name: 'Costa Rican colon', label: 'CRC - Costa Rican colon' },\n  { code: 'CUC', digits: 2, name: 'Cuban convertible peso', label: 'CUC - Cuban convertible peso' },\n  { code: 'CUP', digits: 2, name: 'Cuban peso', label: 'CUP - Cuban peso' },\n  { code: 'CVE', digits: 2, name: 'Cape Verdean escudo', label: 'CVE - Cape Verdean escudo' },\n  { code: 'CZK', digits: 2, name: 'Czech koruna', label: 'CZK - Czech koruna' },\n  { code: 'DJF', digits: 0, name: 'Djiboutian franc', label: 'DJF - Djiboutian franc' },\n  { code: 'DKK', digits: 2, name: 'Danish krone', label: 'DKK - Danish krone' },\n  { code: 'DOP', digits: 2, name: 'Dominican peso', label: 'DOP - Dominican peso' },\n  { code: 'DZD', digits: 2, name: 'Algerian dinar', label: 'DZD - Algerian dinar' },\n  { code: 'EGP', digits: 2, name: 'Egyptian pound', label: 'EGP - Egyptian pound' },\n  { code: 'ERN', digits: 2, name: 'Eritrean nakfa', label: 'ERN - Eritrean nakfa' },\n  { code: 'ETB', digits: 2, name: 'Ethiopian birr', label: 'ETB - Ethiopian birr' },\n  { code: 'EUR', digits: 2, name: 'Euro', label: 'EUR - Euro' },\n  { code: 'FJD', digits: 2, name: 'Fiji dollar', label: 'FJD - Fiji dollar' },\n  { code: 'FKP', digits: 2, name: 'Falkland Islands pound', label: 'FKP - Falkland Islands pound' },\n  { code: 'GBP', digits: 2, name: 'Pound sterling', label: 'GBP - Pound sterling' },\n  { code: 'GEL', digits: 2, name: 'Georgian lari', label: 'GEL - Georgian lari' },\n  { code: 'GHS', digits: 2, name: 'Ghanaian cedi', label: 'GHS - Ghanaian cedi' },\n  { code: 'GIP', digits: 2, name: 'Gibraltar pound', label: 'GIP - Gibraltar pound' },\n  { code: 'GMD', digits: 2, name: 'Gambian dalasi', label: 'GMD - Gambian dalasi' },\n  { code: 'GNF', digits: 0, name: 'Guinean franc', label: 'GNF - Guinean franc' },\n  { code: 'GTQ', digits: 2, name: 'Guatemalan quetzal', label: 'GTQ - Guatemalan quetzal' },\n  { code: 'GYD', digits: 2, name: 'Guyanese dollar', label: 'GYD - Guyanese dollar' },\n  { code: 'HKD', digits: 2, name: 'Hong Kong dollar', label: 'HKD - Hong Kong dollar' },\n  { code: 'HNL', digits: 2, name: 'Honduran lempira', label: 'HNL - Honduran lempira' },\n  { code: 'HTG', digits: 2, name: 'Haitian gourde', label: 'HTG - Haitian gourde' },\n  { code: 'HUF', digits: 2, name: 'Hungarian forint', label: 'HUF - Hungarian forint' },\n  { code: 'IDR', digits: 2, name: 'Indonesian rupiah', label: 'IDR - Indonesian rupiah' },\n  { code: 'ILS', digits: 2, name: 'Israeli new shekel', label: 'ILS - Israeli new shekel' },\n  { code: 'INR', digits: 2, name: 'Indian rupee', label: 'INR - Indian rupee' },\n  { code: 'IQD', digits: 3, name: 'Iraqi dinar', label: 'IQD - Iraqi dinar' },\n  { code: 'IRR', digits: 2, name: 'Iranian rial', label: 'IRR - Iranian rial' },\n  { code: 'ISK', digits: 0, name: 'Icelandic króna', label: 'ISK - Icelandic króna' },\n  { code: 'JMD', digits: 2, name: 'Jamaican dollar', label: 'JMD - Jamaican dollar' },\n  { code: 'JOD', digits: 3, name: 'Jordanian dinar', label: 'JOD - Jordanian dinar' },\n  { code: 'JPY', digits: 0, name: 'Japanese yen', label: 'JPY - Japanese yen' },\n  { code: 'KES', digits: 2, name: 'Kenyan shilling', label: 'KES - Kenyan shilling' },\n  { code: 'KGS', digits: 2, name: 'Kyrgyzstani som', label: 'KGS - Kyrgyzstani som' },\n  { code: 'KHR', digits: 2, name: 'Cambodian riel', label: 'KHR - Cambodian riel' },\n  { code: 'KMF', digits: 0, name: 'Comoro franc', label: 'KMF - Comoro franc' },\n  { code: 'KPW', digits: 2, name: 'North Korean won', label: 'KPW - North Korean won' },\n  { code: 'KRW', digits: 0, name: 'South Korean won', label: 'KRW - South Korean won' },\n  { code: 'KWD', digits: 3, name: 'Kuwaiti dinar', label: 'KWD - Kuwaiti dinar' },\n  { code: 'KYD', digits: 2, name: 'Cayman Islands dollar', label: 'KYD - Cayman Islands dollar' },\n  { code: 'KZT', digits: 2, name: 'Kazakhstani tenge', label: 'KZT - Kazakhstani tenge' },\n  { code: 'LAK', digits: 2, name: 'Lao kip', label: 'LAK - Lao kip' },\n  { code: 'LBP', digits: 2, name: 'Lebanese pound', label: 'LBP - Lebanese pound' },\n  { code: 'LKR', digits: 2, name: 'Sri Lankan rupee', label: 'LKR - Sri Lankan rupee' },\n  { code: 'LRD', digits: 2, name: 'Liberian dollar', label: 'LRD - Liberian dollar' },\n  { code: 'LSL', digits: 2, name: 'Lesotho loti', label: 'LSL - Lesotho loti' },\n  { code: 'LYD', digits: 3, name: 'Libyan dinar', label: 'LYD - Libyan dinar' },\n  { code: 'MAD', digits: 2, name: 'Moroccan dirham', label: 'MAD - Moroccan dirham' },\n  { code: 'MDL', digits: 2, name: 'Moldovan leu', label: 'MDL - Moldovan leu' },\n  { code: 'MGA', digits: 2, name: 'Malagasy ariary', label: 'MGA - Malagasy ariary' },\n  { code: 'MKD', digits: 2, name: 'Macedonian denar', label: 'MKD - Macedonian denar' },\n  { code: 'MMK', digits: 2, name: 'Myanmar kyat', label: 'MMK - Myanmar kyat' },\n  { code: 'MNT', digits: 2, name: 'Mongolian tögrög', label: 'MNT - Mongolian tögrög' },\n  { code: 'MOP', digits: 2, name: 'Macanese pataca', label: 'MOP - Macanese pataca' },\n  { code: 'MRU', digits: 2, name: 'Mauritanian ouguiya', label: 'MRU - Mauritanian ouguiya' },\n  { code: 'MUR', digits: 2, name: 'Mauritian rupee', label: 'MUR - Mauritian rupee' },\n  { code: 'MVR', digits: 2, name: 'Maldivian rufiyaa', label: 'MVR - Maldivian rufiyaa' },\n  { code: 'MWK', digits: 2, name: 'Malawian kwacha', label: 'MWK - Malawian kwacha' },\n  { code: 'MXN', digits: 2, name: 'Mexican peso', label: 'MXN - Mexican peso' },\n  { code: 'MYR', digits: 2, name: 'Malaysian ringgit', label: 'MYR - Malaysian ringgit' },\n  { code: 'MZN', digits: 2, name: 'Mozambican metical', label: 'MZN - Mozambican metical' },\n  { code: 'NAD', digits: 2, name: 'Namibian dollar', label: 'NAD - Namibian dollar' },\n  { code: 'NGN', digits: 2, name: 'Nigerian naira', label: 'NGN - Nigerian naira' },\n  { code: 'NIO', digits: 2, name: 'Nicaraguan córdoba', label: 'NIO - Nicaraguan córdoba' },\n  { code: 'NOK', digits: 2, name: 'Norwegian krone', label: 'NOK - Norwegian krone' },\n  { code: 'NPR', digits: 2, name: 'Nepalese rupee', label: 'NPR - Nepalese rupee' },\n  { code: 'NZD', digits: 2, name: 'New Zealand dollar', label: 'NZD - New Zealand dollar' },\n  { code: 'OMR', digits: 3, name: 'Omani rial', label: 'OMR - Omani rial' },\n  { code: 'PAB', digits: 2, name: 'Panamanian balboa', label: 'PAB - Panamanian balboa' },\n  { code: 'PEN', digits: 2, name: 'Peruvian sol', label: 'PEN - Peruvian sol' },\n  { code: 'PGK', digits: 2, name: 'Papua New Guinean kina', label: 'PGK - Papua New Guinean kina' },\n  { code: 'PHP', digits: 2, name: 'Philippine peso[10]', label: 'PHP - Philippine peso[10]' },\n  { code: 'PKR', digits: 2, name: 'Pakistani rupee', label: 'PKR - Pakistani rupee' },\n  { code: 'PLN', digits: 2, name: 'Polish złoty', label: 'PLN - Polish złoty' },\n  { code: 'PYG', digits: 0, name: 'Paraguayan guaraní', label: 'PYG - Paraguayan guaraní' },\n  { code: 'QAR', digits: 2, name: 'Qatari riyal', label: 'QAR - Qatari riyal' },\n  { code: 'RON', digits: 2, name: 'Romanian leu', label: 'RON - Romanian leu' },\n  { code: 'RSD', digits: 2, name: 'Serbian dinar', label: 'RSD - Serbian dinar' },\n  { code: 'CNY', digits: 2, name: 'Renminbi', label: 'CNY - Renminbi' },\n  { code: 'RUB', digits: 2, name: 'Russian ruble', label: 'RUB - Russian ruble' },\n  { code: 'RWF', digits: 0, name: 'Rwandan franc', label: 'RWF - Rwandan franc' },\n  { code: 'SAR', digits: 2, name: 'Saudi riyal', label: 'SAR - Saudi riyal' },\n  { code: 'SBD', digits: 2, name: 'Solomon Islands dollar', label: 'SBD - Solomon Islands dollar' },\n  { code: 'SCR', digits: 2, name: 'Seychelles rupee', label: 'SCR - Seychelles rupee' },\n  { code: 'SDG', digits: 2, name: 'Sudanese pound', label: 'SDG - Sudanese pound' },\n  { code: 'SEK', digits: 2, name: 'Swedish krona', label: 'SEK - Swedish krona' },\n  { code: 'SGD', digits: 2, name: 'Singapore dollar', label: 'SGD - Singapore dollar' },\n  { code: 'SHP', digits: 2, name: 'Saint Helena pound', label: 'SHP - Saint Helena pound' },\n  {\n    code: 'SLE',\n    digits: 2,\n    name: 'Sierra Leonean leone (new leone)',\n    label: 'SLE - Sierra Leonean leone (new leone)',\n  },\n  {\n    code: 'SLL',\n    digits: 2,\n    name: 'Sierra Leonean leone (old leone)',\n    label: 'SLL - Sierra Leonean leone (old leone)',\n  },\n  { code: 'SOS', digits: 2, name: 'Somali shilling', label: 'SOS - Somali shilling' },\n  { code: 'SRD', digits: 2, name: 'Surinamese dollar', label: 'SRD - Surinamese dollar' },\n  { code: 'SSP', digits: 2, name: 'South Sudanese pound', label: 'SSP - South Sudanese pound' },\n  {\n    code: 'STN',\n    digits: 2,\n    name: 'São Tomé and Príncipe dobra',\n    label: 'STN - São Tomé and Príncipe dobra',\n  },\n  { code: 'SVC', digits: 2, name: 'Salvadoran colón', label: 'SVC - Salvadoran colón' },\n  { code: 'SYP', digits: 2, name: 'Syrian pound', label: 'SYP - Syrian pound' },\n  { code: 'SZL', digits: 2, name: 'Swazi lilangeni', label: 'SZL - Swazi lilangeni' },\n  { code: 'THB', digits: 2, name: 'Thai baht', label: 'THB - Thai baht' },\n  { code: 'TJS', digits: 2, name: 'Tajikistani somoni', label: 'TJS - Tajikistani somoni' },\n  { code: 'TMT', digits: 2, name: 'Turkmenistan manat', label: 'TMT - Turkmenistan manat' },\n  { code: 'TND', digits: 3, name: 'Tunisian dinar', label: 'TND - Tunisian dinar' },\n  { code: 'TOP', digits: 2, name: 'Tongan paʻanga', label: 'TOP - Tongan paʻanga' },\n  { code: 'TRY', digits: 2, name: 'Turkish lira', label: 'TRY - Turkish lira' },\n  {\n    code: 'TTD',\n    digits: 2,\n    name: 'Trinidad and Tobago dollar',\n    label: 'TTD - Trinidad and Tobago dollar',\n  },\n  { code: 'TWD', digits: 2, name: 'New Taiwan dollar', label: 'TWD - New Taiwan dollar' },\n  { code: 'TZS', digits: 2, name: 'Tanzanian shilling', label: 'TZS - Tanzanian shilling' },\n  { code: 'UAH', digits: 2, name: 'Ukrainian hryvnia', label: 'UAH - Ukrainian hryvnia' },\n  { code: 'UGX', digits: 0, name: 'Ugandan shilling', label: 'UGX - Ugandan shilling' },\n  { code: 'USD', digits: 2, name: 'United States dollar', label: 'USD - United States dollar' },\n  { code: 'UYU', digits: 2, name: 'Uruguayan peso', label: 'UYU - Uruguayan peso' },\n  { code: 'UYW', digits: 4, name: 'Unidad previsional', label: 'UYW - Unidad previsional' },\n  { code: 'UZS', digits: 2, name: 'Uzbekistan sum', label: 'UZS - Uzbekistan sum' },\n  {\n    code: 'VED',\n    digits: 2,\n    name: 'Venezuelan digital bolívar',\n    label: 'VED - Venezuelan digital bolívar',\n  },\n  {\n    code: 'VES',\n    digits: 2,\n    name: 'Venezuelan sovereign bolívar',\n    label: 'VES - Venezuelan sovereign bolívar',\n  },\n  { code: 'VND', digits: 0, name: 'Vietnamese đồng', label: 'VND - Vietnamese đồng' },\n  { code: 'VUV', digits: 0, name: 'Vanuatu vatu', label: 'VUV - Vanuatu vatu' },\n  { code: 'WST', digits: 2, name: 'Samoan tala', label: 'WST - Samoan tala' },\n  { code: 'XAF', digits: 0, name: 'CFA franc BEAC', label: 'XAF - CFA franc BEAC' },\n  { code: 'XCD', digits: 2, name: 'East Caribbean dollar', label: 'XCD - East Caribbean dollar' },\n  { code: 'XOF', digits: 0, name: 'CFA franc BCEAO', label: 'XOF - CFA franc BCEAO' },\n  {\n    code: 'XPF',\n    digits: 0,\n    name: 'CFP franc (franc Pacifique)',\n    label: 'XPF - CFP franc (franc Pacifique)',\n  },\n  { code: 'YER', digits: 2, name: 'Yemeni rial', label: 'YER - Yemeni rial' },\n  { code: 'ZAR', digits: 2, name: 'South African rand', label: 'ZAR - South African rand' },\n  { code: 'ZMW', digits: 2, name: 'Zambian kwacha', label: 'ZMW - Zambian kwacha' },\n  {\n    code: 'ZWL',\n    digits: 2,\n    name: 'Zimbabwean dollar (fifth)',\n    label: 'ZWL - Zimbabwean dollar (fifth)',\n  },\n];\n\nexport default CURRENCIES;\n","export const CURRENT_USER_VARIABLES_MAP = {\n  id: 'Number',\n  firstName: 'String',\n  lastName: 'String',\n  fullName: 'String',\n  email: 'String',\n  team: {\n    id: 'Number',\n    name: 'String',\n  },\n  tags: {},\n} as const;\n\nexport default {\n  CURRENT_USER_VARIABLES_MAP,\n};\n","import type { RawCredentials } from 'client/utils/onboarding/database-credentials';\n\n/**\n * @enum {string}\n */\nexport enum DatabaseTypeEnum {\n  Postgresql = 'postgres',\n  MySQL = 'mysql',\n  MicrosoftSQLServer = 'mssql',\n  MongoDB = 'mongodb',\n  MariaDB = 'mariadb',\n}\n\nexport const DATABASE_DEFAULT_VALUES: Record<string, RawCredentials> = {\n  postgres: {\n    type: DatabaseTypeEnum.Postgresql,\n    port: '5432',\n    username: null,\n    password: null,\n    databaseName: null,\n    useSSL: false,\n    schema: null,\n  },\n  mysql: {\n    type: DatabaseTypeEnum.MySQL,\n    port: '3306',\n    username: null,\n    password: null,\n    databaseName: null,\n    useSSL: false,\n    schema: null,\n  },\n  mssql: {\n    type: DatabaseTypeEnum.MicrosoftSQLServer,\n    port: '1433',\n    username: null,\n    password: null,\n    databaseName: null,\n    useSSL: false,\n    schema: null,\n  },\n  mongodb: {\n    type: DatabaseTypeEnum.MongoDB,\n    port: '27017',\n    username: null,\n    password: null,\n    databaseName: null,\n    useSSL: false,\n    useSRV: false,\n    authSource: null,\n  },\n  mariadb: {\n    // NOTICE: We use an MySQL type for mariadb support (sequelize)\n    // See app/pods/project/onboarding/flows/microservice/maria-db.js\n    type: DatabaseTypeEnum.MySQL,\n    port: '3306',\n    username: null,\n    password: null,\n    databaseName: null,\n    useSSL: false,\n    schema: null,\n  },\n};\n\nexport const MULTIPLE_DATABASES = 'multiple';\n","import moment from 'moment';\n\nfunction isSameDay(d1: Date, d2: Date) {\n  return (\n    d1.getFullYear() === d2.getFullYear()\n    && d1.getMonth() === d2.getMonth()\n    && d1.getDate() === d2.getDate()\n  );\n}\n\nfunction addDurationSuffix(duration: number, suffix: string) {\n  return duration > 0 ? `${duration}${suffix} ` : '';\n}\n\nexport function isYesterday(date: Date | string): boolean {\n  const yesterday = new Date();\n  yesterday.setDate(yesterday.getDate() - 1);\n  const dateToCompare = date instanceof Date ? date : new Date(date);\n  return isSameDay(yesterday, dateToCompare);\n}\n\nexport function isToday(date: Date | string): boolean {\n  const today = new Date();\n  const dateToCompare = date instanceof Date ? date : new Date(date);\n  return isSameDay(today, dateToCompare);\n}\n\nexport function isThisMonth(from: Date | string, to: Date | string): boolean {\n  const date = new Date();\n  const firstDayOfMonth = new Date(date.getFullYear(), date.getMonth(), 1);\n  const lastDayOfMonth = new Date(date.getFullYear(), date.getMonth() + 1, 0);\n  const dateFrom = from instanceof Date ? from : new Date(from);\n  const dateTo = from instanceof Date ? (to as Date) : new Date(to);\n\n  return isSameDay(firstDayOfMonth, dateFrom) && isSameDay(lastDayOfMonth, dateTo);\n}\n\nexport function isLastMonth(from: Date | string, to: Date | string): boolean {\n  const date = new Date();\n  const firstDayOfMonth = new Date(date.getFullYear(), date.getMonth() - 1, 1);\n  const lastDayOfMonth = new Date(date.getFullYear(), date.getMonth(), 0);\n  const dateFrom = from instanceof Date ? from : new Date(from);\n  const dateTo = from instanceof Date ? (to as Date) : new Date(to);\n\n  return isSameDay(firstDayOfMonth, dateFrom) && isSameDay(lastDayOfMonth, dateTo);\n}\n\nexport function formatDuration(durationInSeconds: number) {\n  const duration = moment.duration(durationInSeconds, 'seconds');\n\n  const years = duration.years();\n  const months = duration.months();\n  const days = duration.days();\n  const hours = duration.hours();\n  const minutes = duration.minutes();\n  const seconds = duration.seconds();\n\n  let result = '';\n  result += addDurationSuffix(years, 'yr');\n  result += addDurationSuffix(months, 'mo');\n  result += addDurationSuffix(days, 'd');\n  result += addDurationSuffix(hours, 'h');\n  result += addDurationSuffix(minutes, 'min');\n\n  if (durationInSeconds < 60) {\n    result += addDurationSuffix(seconds, 's');\n  }\n\n  return result.trim();\n}\n","export const DEFAULT_DATEONLY_FORMAT = 'L';\nexport const BILLING_DATEONLY_FORMAT = 'LL';\nexport const DEFAULT_DATE_FORMAT = 'L LTS';\n\nexport default {\n  DEFAULT_DATEONLY_FORMAT,\n  DEFAULT_DATE_FORMAT,\n  BILLING_DATEONLY_FORMAT,\n};\n","export function getContainerOfPositionAbsoluteElement(element: HTMLElement): HTMLElement {\n  if (!element?.parentElement) return element;\n\n  const parent = element.parentElement;\n  return ['relative', 'absolute', 'fixed'].includes(getComputedStyle(parent).position)\n    ? parent\n    : getContainerOfPositionAbsoluteElement(parent);\n}\n\n// NOTICE: see https://youmightnotneedjquery.com/#get_height\nexport function getParsedComputedStyle(element: Element, property: 'height' | 'width') {\n  return parseFloat(getComputedStyle(element, null)[property].replace('px', ''));\n}\n\nexport default { getContainerOfPositionAbsoluteElement, getParsedComputedStyle };\n","import type { NestedFieldAttributes } from 'client/decorators/model-field';\n\nimport { isArray } from '@ember/array';\n\n// Ember Data DateTransform.serialize() returns null for non-Date values,\n// so we must hand a Date instance to the record when the source is an ISO string.\nexport function toRecordValue(fieldType: NestedFieldAttributes['type'], value: unknown): unknown {\n  if (isArray(fieldType)) {\n    if (!isArray(value)) return value;\n    const subType = fieldType[0] as NestedFieldAttributes['type'];\n    return (value as unknown[]).map((item) => toRecordValue(subType, item));\n  }\n  if (typeof fieldType !== 'string' || typeof value !== 'string') return value;\n  if (fieldType === 'Date') return toValidDate(value, value);\n  // Append UTC midnight to avoid local-timezone day shift when DateTransform calls toISOString().\n  // Guard against full ISO strings so we don't produce \"YYYY-MM-DDT00:00:00ZT00:00:00Z\" (Invalid Date).\n  if (fieldType === 'Dateonly') {\n    const iso = value.includes('T') ? value : `${value}T00:00:00Z`;\n    return toValidDate(iso, value);\n  }\n\n  return value;\n}\n\nfunction toValidDate(iso: string, fallback: string): Date | string {\n  const date = new Date(iso);\n  return Number.isNaN(date.getTime()) ? fallback : date;\n}\n","import { isArray } from '@ember/array';\n\nimport { HttpError } from 'client/utils/errors';\n\nexport type AdapterErrorItem = {\n  message: string;\n  detail: string;\n  status?: number;\n  name: string;\n  meta?: unknown;\n  data?: unknown;\n  title?: string;\n};\nexport interface AdapterError extends Error {\n  errors: Array<AdapterErrorItem>;\n  status?: number;\n  body?: unknown;\n}\nexport const isEmberError = (error: unknown): error is AdapterError => {\n  if (!(error && typeof error === 'object' && 'errors' in error)) return false;\n  return Boolean(isArray(error.errors) && error.errors[0]);\n};\n\nexport const getFirstErrorDetail = (error: unknown) => {\n  return isEmberError(error) ? error.errors[0].detail : null;\n};\n\nexport const getFirstErrorMeta = <MetaType>(error: unknown) =>\n  isEmberError(error) ? (error.errors[0].meta as MetaType) : null;\n\nexport const getFirstErrorStatus = (error: unknown) => {\n  if (error instanceof HttpError) {\n    return error.status;\n  }\n  return isEmberError(error) ? Number.parseInt(`${error.errors[0].status}`, 10) : null;\n};\n\nexport const getFirstErrorName = (error: unknown) =>\n  isEmberError(error) ? error.errors[0].name : null;\n\nexport const getFirstErrorData = <DataType>(error: unknown) =>\n  isEmberError(error) ? (error.errors[0].data as DataType) : null;\n\nexport function getAllErrorDetails(error: unknown) {\n  if (!isEmberError(error)) return [];\n\n  return error.errors.map((e) => e.detail);\n}\n\nexport const is403Error = (error: unknown) =>\n  isEmberError(error) && getFirstErrorStatus(error) === 403;\nexport const is404Error = (error: unknown) =>\n  isEmberError(error) && getFirstErrorStatus(error) === 404;\nexport const is409Error = (error: unknown) =>\n  isEmberError(error) && getFirstErrorStatus(error) === 409;\nexport const is422Error = (error: unknown) =>\n  isEmberError(error) && getFirstErrorStatus(error) === 422;\nexport const firstErrorIs = (error: unknown, errorCode: number) =>\n  isEmberError(error) && getFirstErrorStatus(error) === errorCode;\n\nexport default {\n  isEmberError,\n  is409Error,\n  getFirstErrorDetail,\n  getFirstErrorMeta,\n  getFirstErrorStatus,\n  getFirstErrorName,\n  getFirstErrorData,\n  firstErrorIs,\n};\n","import ArrayProxy from '@ember/array/proxy';\nimport PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\nimport ObjectProxy from '@ember/object/proxy';\nimport { later, next } from '@ember/runloop';\n\nexport const PromiseObject = ObjectProxy.extend(PromiseProxyMixin);\nexport const PromiseArray = ArrayProxy.extend(PromiseProxyMixin);\nexport const pauseFor = (timeToWait) =>\n  new Promise((resolve) => {\n    later(resolve, timeToWait);\n  });\nexport const waitForNextRunLoop = () =>\n  new Promise((resolve) => {\n    next(resolve);\n  });\n\n/**\n * Allows to repeatedly call async function\n *\n * @param {Promise} functionToRetried\n * @param {number} [maxRetries=0]\n * @param {function} [getDelay] Allow to customize retry delay\n * @param {function} [shouldRetryOnError] Allow to only continue retrying on some errors\n */\nexport const asyncRetry = async ({\n  functionToRetried,\n  maxRetries = 0,\n  getDelay = () => 1000,\n  shouldRetryOnError = () => true,\n} = {}) => {\n  try {\n    // Try to execute our callback:\n    return await functionToRetried();\n  } catch (error) {\n    if (maxRetries <= 0 || !shouldRetryOnError(error)) {\n      throw error;\n    }\n\n    const delayTime = getDelay(maxRetries);\n    await pauseFor(delayTime);\n\n    // Recursively call asyncRetry\n    return asyncRetry({\n      functionToRetried,\n      maxRetries: maxRetries - 1,\n      getDelay,\n      shouldRetryOnError,\n    });\n  }\n};\n\nexport default {\n  PromiseObject,\n  PromiseArray,\n  pauseFor,\n  asyncRetry,\n};\n","import type EmberComponent from '@ember/component';\nimport type Controller from '@ember/controller';\nimport type { Route } from '@ember/routing';\nimport type Service from '@ember/service';\nimport type Component from '@glimmer/component';\nimport type Model from 'client/data/models/abstract-model';\n\nimport { getOwner } from '@ember/application';\nimport ApplicationInstance from '@ember/application/instance';\n\ntype ApplicationInstanceChild = Service | EmberComponent | Component | Controller | Route;\n\nexport function getApplicationInstance(\n  object: ApplicationInstanceChild | ApplicationInstance,\n): ApplicationInstance {\n  return object instanceof ApplicationInstance ? object : (getOwner(object) as ApplicationInstance);\n}\n\nexport function getModelClass<ModelClassToReturn extends typeof Model>(\n  object: ApplicationInstance | ApplicationInstanceChild,\n  modelName: string,\n): ModelClassToReturn {\n  return getApplicationInstance(object).resolveRegistration(\n    `model:${modelName}`,\n  ) as ModelClassToReturn;\n}\n","const faIconToEmoji: Record<string, string> = {\n  user: '👤',\n  'building-o': '🏢',\n  money: '💶',\n  'map-marker': '📍',\n  'comment-o': '💬',\n  archive: '🗄️',\n  'shopping-basket': '🛒',\n  'credit-card': '💳',\n  'handshake-o': '🤝',\n  'id-card-o': '📇',\n  sitemap: '🌲',\n  tags: '🔖',\n  bell: '🔔',\n  globe: '🌍',\n  'user-circle-o': '👤',\n  'calendar-o': '📆',\n  ticket: '🎟️',\n  bank: '🏛️',\n  'file-text-o': '📄',\n  cubes: '📦',\n  'sticky-note-o': '📄',\n  building: '🏢',\n  dollar: '💲',\n  users: '👥',\n  mobile: '📱',\n  question: '❓',\n  group: '👥',\n  cogs: '⚙️',\n  'balance-scale': '⚖️',\n  'star-half-o': '⭐',\n  'pencil-square-o': '📝',\n  'picture-o': '🖼️',\n  'product-hunt': '🅿️',\n  'envelope-o': '✉️',\n  truck: '🚚',\n  diamond: '💎',\n  'shopping-cart': '🛒',\n  'address-book-o': '📓',\n  'address-card-o': '📓',\n  check: '✅',\n  eye: '👁️',\n  cog: '⚙️',\n  'address-book': '📓',\n  'file-text': '📃',\n  home: '🏠',\n  briefcase: '💼',\n  'calendar-check-o': '🗓️',\n  plane: '✈️',\n  institution: '🏛️',\n  'question-circle': '❓',\n  'credit-card-alt': '💳',\n  calendar: '🗓️',\n  repeat: '🔄',\n  road: '🛣️',\n  'thumbs-o-up': '👍',\n  'address-card': '📇',\n  'envelope-open-o': '✉️',\n  'file-picture-o': '🖼️',\n  'vcard-o': '📇',\n  'arrow-circle-o-right': '➡️',\n  certificate: '*️⃣',\n  'arrow-circle-o-left': '⬅️',\n  database: '🗄️',\n  clone: '📂',\n  'cc-mastercard': '💳',\n  'fort-awesome': '🏰',\n  'user-secret': '🕵️',\n  'user-circle': '👤',\n  'cc-stripe': '💳',\n  book: '📓',\n  'clock-o': '🕙',\n  'rotate-left': '🔄',\n  gift: '🎁',\n  'arrow-down': '🔽',\n  link: '🔗',\n  'list-alt': '🖥️',\n  history: '🔄',\n  'user-o': '👤',\n  car: '🚗',\n  tag: '🔖',\n  industry: '📈',\n  'list-ol': '🔢',\n  edit: '📝',\n  eur: '💶',\n  key: '🗝️',\n  dropbox: '📦',\n  star: '⭐',\n  'newspaper-o': '📰',\n  'files-o': '📄',\n  'mobile-phone': '📱',\n  cube: '📦',\n  'cart-arrow-down': '🛒',\n  child: '🙋‍♂️',\n  euro: '💶',\n  'arrows-v': '↕️',\n  'arrow-up': '🔼',\n  wpforms: '📄',\n  'user-md': '👨‍⚕️',\n  gears: '⚙️',\n  image: '🖼️',\n  envelope: '✉️',\n  'check-square-o': '✅',\n  gavel: '🔨',\n  connectdevelop: '💎',\n  exchange: '↔️',\n  'comments-o': '💬',\n  'video-camera': '📷',\n  bolt: '⚡',\n  'star-o': '⭐',\n  cny: '💴',\n  calculator: '➕',\n  'user-plus': '➕',\n  bullhorn: '📢',\n  phone: '📞',\n  'american-sign-language-interpreting': '👐',\n  clipboard: '📁',\n  heart: '💙',\n  angellist: '✌️',\n  search: '🔍',\n  bookmark: '🔖',\n  ship: '🚢',\n  'folder-open-o': '📁',\n  copy: '📂',\n  commenting: '💬',\n  'area-chart': '📊',\n  'arrows-h': '↔️',\n  'line-chart': '📈',\n  'lightbulb-o': '💡',\n  download: '🔽',\n  'file-image-o': '🖼️',\n  flash: '⚡',\n  wrench: '🔧',\n  'map-pin': '🔍',\n  'window-close': '❌',\n  file: '📄',\n  percent: '*️⃣',\n  desktop: '🖥️',\n  bullseye: '🔘',\n  'times-rectangle': '❌',\n  'sort-numeric-asc': '⬇️',\n  'question-circle-o': '❓',\n  'bar-chart': '📊',\n  lock: '🔒',\n  legal: '🔨',\n  'paint-brush': '🖌️',\n  'volume-control-phone': '📞',\n  university: '🏛️',\n  'file-excel-o': '❌',\n  gear: '⚙️',\n  map: '🗺️',\n  'folder-open': '📂',\n  suitcase: '💼',\n  'drivers-license': '📇',\n  'window-close-o': '❌',\n  'cloud-upload': '☁️',\n  'file-o': '📁',\n  flask: '⚗️',\n  filter: '🧪',\n  inbox: '📁',\n  photo: '🖼️',\n  pencil: '✏️',\n  medkit: '🏥',\n  'map-signs': '🗺️',\n  'shopping-bag': '👜',\n  'graduation-cap': '🎓',\n  'exclamation-circle': '❗',\n  'map-o': '🗺️',\n  'street-view': '👤',\n  folder: '📁',\n  automobile: '🚗',\n  'bell-o': '🔔',\n  trophy: '🏆',\n  'location-arrow': '📍',\n  tasks: '🎚️',\n  flag: '🏳️',\n  gamepad: '🎮',\n  stethoscope: '💉',\n  'id-badge': '📱',\n  comments: '💬',\n  'user-times': '❌',\n  'paper-plane': '✉️',\n  cutlery: '🍴',\n  'commenting-o': '💬',\n  'hospital-o': '🏥',\n  'file-pdf-o': '📄',\n  spinner: '⏳',\n  'cart-plus': '🛒',\n  eyedropper: '💉',\n  'arrow-circle-right': '➡️',\n  'check-square': '✅',\n  apple: '📱',\n  'star-half-empty': '⭐',\n  wechat: '💬',\n  film: '🎞️',\n  'info-circle': 'ℹ️',\n  'flag-checkered': '🏳️',\n  'send-o': '✉️',\n  paw: '🐾',\n  'file-video-o': '🎥',\n  warning: '⚠️',\n  hashtag: '#️⃣',\n  'smile-o': '😀',\n  braille: '👨‍🦯',\n  adn: '📲',\n  'puzzle-piece': '🧩',\n  'bar-chart-o': '📈',\n  'thumbs-up': '👍',\n  at: '🌍',\n  sliders: '🎚️',\n  usd: '💲',\n  foursquare: '🌍',\n  ambulance: '🚑',\n  bed: '🛏️',\n  'google-wallet': '🌍',\n  'file-movie-o': '🎥',\n  'circle-o-notch': '⭕',\n  'snapchat-ghost': '🌍',\n  male: '👤',\n  'sort-numeric-desc': '⬇️',\n  'sticky-note': '📄',\n  'unlock-alt': '🔓',\n  genderless: '⏺️',\n  'file-archive-o': '📄',\n  android: '🌍',\n  chain: '🔗',\n  refresh: '🔄',\n  columns: '📁',\n  'hand-paper-o': '✋',\n  'asl-interpreting': '👐',\n  'pie-chart': '📈',\n  'chain-broken': '🔗',\n  'hourglass-1': '⌛',\n  'mouse-pointer': '🖱️',\n  send: '✉️',\n  bicycle: '🚲',\n  'stack-overflow': '📤',\n  tachometer: '🎚️',\n  'camera-retro': '📷',\n  bitcoin: '💲',\n  rocket: '🚀',\n  google: '🌍',\n  asterisk: '*️⃣',\n  anchor: '⚓',\n  feed: '🌍',\n  btc: '💲',\n  'black-tie': '👔',\n  server: '🖥️',\n  hotel: '🛏️',\n  bitbucket: '🗑️',\n  motorcycle: '🏍️',\n  'object-ungroup': '📄',\n  bomb: '💣',\n  'paper-plane-o': '✉️',\n  'star-half-full': '⭐',\n  'external-link': '🔗',\n  'toggle-on': '☑️',\n  cloud: '☁️',\n  'th-large': '🌍',\n  envira: '🍃',\n  'flag-o': '🏳️',\n  tree: '🌲',\n  close: '❌',\n  comment: '💬',\n  'envelope-square': '✉️',\n  laptop: '💻',\n  codepen: '📦',\n  'calendar-plus-o': '🗓️',\n  heartbeat: '❤️',\n  'search-minus': '🔎',\n  exclamation: '❗',\n  camera: '📷',\n  'drivers-license-o': '📇',\n  'angle-right': '▶️',\n  paste: '📁',\n  paperclip: '📎',\n  'futbol-o': '⚽',\n  'file-photo-o': '🖼️',\n  coffee: '☕',\n  'plus-square': '➕',\n  'id-card': '📇',\n  'dot-circle-o': '🔘',\n  'file-code-o': '📄',\n  copyright: '©️',\n  'universal-access': '👤',\n  binoculars: '🔭',\n  share: '➡️',\n  github: '🌍',\n  'hand-pointer-o': '👆',\n  'hand-peace-o': '✌️',\n  'youtube-play': '📹',\n  'hourglass-2': '⌛',\n  plug: '🔌',\n  'birthday-cake': '🎂',\n  'life-bouy': '🆘',\n  'hand-stop-o': '🖐️',\n  buysellads: '🌍',\n  'cc-visa': '💳',\n  'calendar-times-o': '🗓️',\n  'envelope-open': '✉️',\n  music: '🎵',\n  'fast-forward': '⏭️',\n  leanpub: '🗺️',\n  'assistive-listening-systems': '👂',\n  'heart-o': '❤️',\n  'times-rectangle-o': '❌',\n  upload: '⬆️',\n  'hdd-o': '💾',\n  'creative-commons': '©️',\n  train: '🚅',\n  'soccer-ball-o': '⚽',\n  'arrow-right': '➡️',\n  gittip: '❤️',\n  rss: '🌍',\n  crosshairs: '🎯',\n  'space-shuttle': '🛩️',\n  fa: '🏳️',\n  'share-alt': '🌍',\n  dashboard: '📊',\n  'stack-exchange': '💬',\n  grav: '🧑‍🚀',\n  microphone: '🎙️',\n  'mail-reply': '⬅️',\n  'bookmark-o': '🔖',\n  ban: '🚫',\n  opencart: '🛒',\n  'hand-o-up': '👆',\n  'check-circle-o': '✅',\n  'exclamation-triangle': '⚠️',\n  'fighter-jet': '🛩️',\n  shirtsinbulk: '👕',\n  'folder-o': '📁',\n  play: '▶️',\n  amazon: '🌍',\n  trademark: '™️',\n  joomla: '🌍',\n  'mortar-board': '🎓',\n  opera: '🌍',\n  'cc-paypal': '💳',\n  unlink: '🔗',\n  magic: '✨',\n  tv: '🖥️',\n  instagram: '🌍',\n  blind: '👨‍🦯',\n  signing: '👏',\n  adjust: '🌓',\n  'hourglass-half': '⌛',\n  'trash-o': '🗑️',\n  leaf: '🍃',\n  'low-vision': '👁️',\n  'check-circle': '✔️',\n  'play-circle': '▶️',\n  'window-restore': '📁',\n  save: '💾',\n  bug: '🐛',\n  'plus-circle': '➕',\n  unlock: '🔓',\n  spoon: '🥄',\n  shield: '🛡️',\n  'file-powerpoint-o': '📄',\n  'circle-o': '🔘',\n  'gg-circle': '💰',\n  'angle-double-right': '⏩',\n  glass: '🍸',\n  'hand-o-right': '👉',\n  cab: '🚖',\n  'hand-grab-o': '✊',\n  mixcloud: '☁️',\n  ravelry: '🌍',\n  forward: '⏩',\n  'window-maximize': '🔲',\n  font: '🔠',\n  microchip: '🤖',\n  info: 'ℹ️',\n  gratipay: '💟',\n  compass: '🧭',\n  'cloud-download': '☁️',\n  'free-code-camp': '🔥',\n  ra: '🎥',\n  'transgender-alt': '🚻',\n  'keyboard-o': '⌨️',\n  fire: '🔥',\n  'floppy-o': '💾',\n  expeditedssl: '🔒',\n  bandcamp: '🧭',\n  'times-circle': '❎',\n  circle: '⚪',\n  'sort-alpha-asc': '🔠',\n  'level-up': '🔼',\n  superpowers: '🦸',\n  'stop-circle': '⏹️',\n  'power-off': '🔛',\n  'minus-circle': '⛔',\n  facebook: '🌍',\n  'phone-square': '📱',\n  television: '🖥️',\n  battery: '🔋',\n  'internet-explorer': '🌍',\n  'pied-piper': '🎩',\n  plus: '➕',\n  print: '🖨️',\n  'snowflake-o': '❄️',\n  'calendar-minus-o': '🗓️',\n  beer: '🍺',\n  'hand-spock-o': '🖖',\n  eercast: '🌍',\n  odnoklassniki: '👤',\n  tint: '💧',\n  headphones: '🎧',\n  wordpress: '🌍',\n  yoast: '🌍',\n  backward: '⏪',\n  'h-square': '🏥',\n  contao: '🌍',\n  'play-circle-o': '▶️',\n  'file-word-o': '📄',\n  chrome: '🌍',\n  vcard: '📇',\n  'audio-description': '🔊',\n  'arrow-circle-o-up': '⬆️',\n  support: '⛑️',\n  sellsy: '☁️',\n  'pencil-square': '✏️',\n  square: '⬛',\n  eraser: '📌',\n  female: '👩',\n  bus: '🚌',\n  bath: '🛁',\n  linode: '☁️',\n  'file-zip-o': '📄',\n  'font-awesome': '🏳️',\n  'sun-o': '☀️',\n  'thermometer-3': '🌡️',\n  'facebook-official': '🌍',\n  'caret-square-o-right': '▶️',\n  linux: '🌍',\n  cut: '✂️',\n  'pied-piper-alt': '⚔️',\n  registered: '®️',\n  remove: '❎',\n  retweet: '🌍',\n  'share-alt-square': '🌍',\n  stumbleupon: '🌍',\n  'arrow-circle-down': '🔽',\n  codiepie: '💻',\n  'bitbucket-square': '🗑️',\n  'step-forward': '➡️',\n  'get-pocket': '🔽',\n  subway: '🚆',\n  wifi: '🌍',\n  'facebook-square': '🌍',\n  'sign-in': '➡️',\n  'sign-out': '➡️',\n  'hourglass-o': '⌛',\n  bluetooth: '🌍',\n  firefox: '🌍',\n  'text-height': '🆙',\n  wpexplorer: '🔭',\n  'square-o': '🔳',\n  'battery-three-quarters': '🔋',\n  pagelines: '🌱',\n  'sign-language': '👏',\n  telegram: '✉️',\n  'hand-rock-o': '✊',\n  quora: '❓',\n  'external-link-square': '↗️',\n  usb: '🌍',\n  'pause-circle': '⏸️',\n  html5: '🖥️',\n  umbrella: '☂️',\n  twitter: '🌍',\n  podcast: '🌍',\n  'share-square-o': '➡️',\n  'search-plus': '🔍',\n  fax: '📠',\n  trello: '🌍',\n  medium: '🌍',\n  'first-order': '🎥',\n  yen: '💴',\n  'text-width': '↔️',\n  'mail-forward': '➡️',\n  random: '🔀',\n  rupee: '💰',\n  'pause-circle-o': '⏸️',\n  'angle-double-down': '⏬',\n  simplybuilt: '🖥️',\n  shekel: '🖥️',\n  resistance: '🎥',\n  signal: '📈',\n  soundcloud: '☁️',\n  paypal: '💰',\n  'optin-monster': '💰',\n  steam: '🎮',\n  'steam-square': '🎮',\n  'circle-thin': '⚪',\n  subscript: '✖️',\n  modx: '📄',\n  meetup: '🌍',\n  thermometer: '🌡️',\n  'thermometer-4': '🌡️',\n  'thermometer-full': '🌡️',\n  'battery-3': '🔋',\n  'lemon-o': '🍋',\n  edge: '🌍',\n  empire: '🧭',\n  tumblr: '🌍',\n  'arrow-left': '⬅️',\n  'angle-double-up': '⬆️',\n  vimeo: '▶️',\n  'file-audio-o': '🔊',\n  rebel: '🎥',\n  'cc-discover': '🌍',\n  ge: '🧭',\n  scribd: '📖',\n  safari: '🌍',\n  'hand-lizard-o': '🦎',\n  'arrow-circle-left': '⬅️',\n  expand: '↔️',\n  hourglass: '⌛',\n  undo: '🔄',\n  'frown-o': '😞',\n  'long-arrow-right': '➡️',\n  behance: '🌍',\n  'thumbs-o-down': '👎',\n  'mail-reply-all': '⬅️',\n  taxi: '🚖',\n  'tencent-weibo': '🌍',\n  pause: '⏸️',\n  'thermometer-2': '🌡️',\n  bathtub: '🛁',\n  maxcdn: '🌍',\n  'wheelchair-alt': '♿',\n  neuter: '🔎',\n  'chevron-up': '🔼',\n  'chevron-circle-right': '▶️',\n  'chevron-circle-down': '🔽',\n  'rss-square': '🌍',\n  windows: '🌍',\n  'battery-0': '🔋',\n  'thumb-tack': '📌',\n  'linkedin-square': '🌍',\n  'level-down': '🔽',\n  youtube: '▶️',\n  'cc-amex': '💳',\n  'hourglass-start': '⏳',\n  'hourglass-3': '⌛',\n  slack: '🌍',\n  'arrow-circle-o-down': '🔽',\n  'fire-extinguisher': '🧯',\n  'facebook-f': '🌍',\n  'venus-mars': '🚻',\n  'vimeo-square': '🌍',\n  wheelchair: '👨‍🦽',\n  'battery-half': '🔋',\n  deaf: '🦻',\n  yelp: '☀️',\n  'eye-slash': '🙈',\n  'share-square': '➡️',\n  'battery-empty': '🔋',\n  dribbble: '🏀',\n  recycle: '♻️',\n  'meh-o': '😐',\n  trash: '🗑️',\n  scissors: '✂️',\n  'battery-full': '🔋',\n  gitlab: '🌍',\n  'volume-up': '🔊',\n  openid: '🔒',\n  magnet: '🧲',\n  'stop-circle-o': '⏹️',\n  'twitter-square': '🌍',\n  'snapchat-square': '🌍',\n  imdb: '🌍',\n  'file-sound-o': '🔊',\n  qq: '🌍',\n  'bell-slash-o': '🔕',\n  'behance-square': '🌍',\n  'caret-square-o-down': '🔽',\n  tripadvisor: '🌍',\n  'caret-right': '▶️',\n  'cc-diners-club': '💼',\n  'caret-down': '🔽',\n  stripe: '💳',\n  intercom: '📻️',\n  mixpanel: '🌍',\n  closeio: '🌍',\n  layer: '🌍',\n};\n\nexport function isEmoji(icon: string) {\n  return !/\\w+/.test(icon);\n}\n\nexport function getEmojiFromIcon(icon: string) {\n  if (isEmoji(icon)) return icon;\n  return faIconToEmoji[icon] || '🌲';\n}\n","import emberErrorUtil from 'client/utils/ember-error-util';\n\nconst { isEmberError, getFirstErrorDetail, getFirstErrorStatus } = emberErrorUtil;\n\nexport default {\n  ipRejected(error) {\n    return (\n      isEmberError(error)\n      && getFirstErrorStatus(error) === 403\n      && getFirstErrorDetail(error).startsWith('IP address rejected')\n    );\n  },\n\n  ipWhitelistNotRetrieved(error) {\n    return (\n      isEmberError(error)\n      && getFirstErrorStatus(error) === 403\n      && getFirstErrorDetail(error) === 'IP whitelist not retrieved'\n    );\n  },\n};\n","/* eslint max-classes-per-file: \"off\" */\n\nimport { isArray } from '@ember/array';\nimport EmberError from '@ember/error';\nimport { capitalize } from '@ember/string';\n\nimport { ERROR_ACCESS_RESOURCE_FORBIDDEN, ERROR_NOT_FOUND } from 'client/config/errors';\nimport tryGetBody from 'client/utils/try-get-body';\n\nexport type EmberStoreError = Error & {\n  responseText?: string;\n  errors?: { name: string; detail: string; status: number }[];\n};\n\nexport type AdapterErrorItem = { status?: number; title?: string; name?: string; detail: string };\n\nexport class AdapterError extends Error {\n  public errors: AdapterErrorItem[];\n\n  public readonly isAdapterError = true;\n  public readonly description?: string;\n  public readonly fileName?: string;\n  public readonly lineNumber?: number;\n  public readonly number?: number;\n\n  constructor(errors: AdapterErrorItem[], message = 'Adapter operation failed') {\n    super(message);\n\n    this.name = 'AdapterError';\n\n    const error = EmberError.call(this, message) as unknown as AdapterError;\n\n    // in ember 3.8+ Error is a Native Error and we don't\n    // gain these automatically from the EmberError.call\n    if (error) {\n      this.stack = error.stack;\n      this.description = error.description;\n      this.fileName = error.fileName;\n      this.lineNumber = error.lineNumber;\n      this.message = error.message;\n      this.name = error.name;\n      this.number = error.number;\n    }\n\n    this.errors = errors || [\n      {\n        title: 'Adapter Error',\n        detail: message,\n      },\n    ];\n  }\n}\n\nexport class UnauthorizedError extends AdapterError {\n  constructor(errors: AdapterErrorItem[], message = 'Request is unauthorized') {\n    super(errors, message);\n\n    this.name = 'UnauthorizedError';\n  }\n}\n\nexport class ManagedError extends Error {\n  public depth = 1;\n  public monitored = false;\n  public primary = true;\n  public flagAsMonitored() {\n    this.monitored = true;\n  }\n}\n\nexport class WrappedError extends ManagedError {\n  public causeMonitored = false;\n\n  constructor(cause: Error, message?: string) {\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    super(message, { cause });\n\n    if (cause instanceof ManagedError) {\n      this.depth = cause.depth + 1;\n      this.causeMonitored = cause.monitored;\n    }\n    this.primary = this.depth === 1;\n\n    this.name = 'WrappedError';\n  }\n}\n\nexport class UnknownError extends WrappedError {\n  declare cause: Error;\n\n  constructor(cause: Error, message?: string) {\n    super(cause, message || 'An unknown error occurred');\n\n    this.name = 'UnknownError';\n  }\n\n  get context(): Record<string, unknown> {\n    return { ...(this.cause || {}) };\n  }\n}\n\nexport class MissingRequiredPropertyError extends Error {\n  public readonly propertyName: string | string[];\n\n  constructor(propertyName: string | string[]) {\n    super();\n\n    if (Error.captureStackTrace) {\n      Error.captureStackTrace(this, MissingRequiredPropertyError);\n    }\n\n    const propertyNameFormated = isArray(propertyName)\n      ? (propertyName as string[]).map((property) => `\"${property}\"`).join(' or ')\n      : `\"${propertyName as string}\"`;\n    this.name = 'MissingRequiredPropertyError';\n    this.message = `Missing required property ${propertyNameFormated}`;\n    this.propertyName = propertyName;\n  }\n}\n\nexport class WrongPropertyValueError extends Error {\n  public readonly propertyName: string;\n  public readonly propertyValue: unknown;\n\n  constructor(propertyName: string, propertyValue: unknown) {\n    super();\n\n    if (Error.captureStackTrace) {\n      Error.captureStackTrace(this, WrongPropertyValueError);\n    }\n\n    this.name = 'WrongPropertyValueError';\n    this.message = `Wrong value ${JSON.stringify(propertyValue)} for property \"${propertyName}\"`;\n    this.propertyName = propertyName;\n    this.propertyValue = propertyValue;\n  }\n}\n\nexport class WrongPropertyTypeError extends Error {\n  public readonly propertyName: string;\n  public readonly propertyValue: unknown;\n\n  constructor(propertyName: string, propertyValue: unknown) {\n    super();\n\n    if (Error.captureStackTrace) {\n      Error.captureStackTrace(this, WrongPropertyTypeError);\n    }\n\n    this.name = 'WrongPropertyTypeError';\n    let stringifiedValue: string | undefined;\n    try {\n      stringifiedValue = propertyValue !== undefined ? JSON.stringify(propertyValue) : 'undefined';\n    } catch (error) {\n      console.debug('Error while stringifying property value', error);\n    }\n    this.message = `Wrong type ${JSON.stringify(\n      typeof propertyValue,\n    )} for property \"${propertyName}\". Value is ${stringifiedValue ?? 'unknown'}`;\n    this.propertyName = propertyName;\n    this.propertyValue = propertyValue;\n  }\n}\n\nexport class NotImplementedError extends Error {\n  public readonly methodName: string;\n\n  constructor(methodName: string) {\n    super();\n\n    if (Error.captureStackTrace) {\n      Error.captureStackTrace(this, NotImplementedError);\n    }\n\n    this.name = 'NotImplementedError';\n    this.message = `Method not implemented ${methodName}`;\n    this.methodName = methodName;\n  }\n}\n\nexport class AgentError extends WrappedError {\n  constructor(innerError: Error, message?: string) {\n    super(innerError, message);\n    this.name = 'AgentError';\n  }\n}\n\nexport class CorsAgentError extends AgentError {\n  constructor(cause: Error) {\n    super(\n      cause,\n      `Forest Admin can't reach your server because of a CORS issue. Check your environment variables configuration or refer to the Community forum if the error persists.`,\n    );\n\n    if (Error.captureStackTrace) {\n      Error.captureStackTrace(this, CorsAgentError);\n    }\n  }\n}\n\nexport class UnreachableAgentError extends AgentError {\n  constructor(cause: Error) {\n    super(cause, 'Your agent is unreachable');\n\n    if (Error.captureStackTrace) {\n      Error.captureStackTrace(this, UnreachableAgentError);\n    }\n  }\n}\nexport class UnknownCheckAgentError extends AgentError {\n  constructor(cause: Error) {\n    super(cause, 'Unable to check agent error cause');\n\n    if (Error.captureStackTrace) {\n      Error.captureStackTrace(this, UnreachableAgentError);\n    }\n  }\n}\n\nexport class HttpError extends Error {\n  public readonly errors?: AdapterErrorItem[];\n  public readonly status: number;\n  public readonly body: unknown;\n  public readonly url: string;\n  public readonly type: string;\n\n  constructor(response: Response, data?: unknown, method?: string) {\n    super(`HTTP Error ${response.status}: ${response.statusText}`);\n\n    this.errors =\n      data && typeof data === 'object' && 'errors' in data\n        ? (data?.errors as AdapterErrorItem[])\n        : undefined;\n    this.status = response.status;\n    this.body = data;\n    this.name = 'HttpError';\n    this.url = response.url;\n    this.type = method;\n  }\n}\nexport class RecordNotFoundError extends Error {\n  public readonly modelName: string;\n\n  constructor(modelName: string) {\n    super(`${modelName} could not be found`);\n\n    this.name = 'RecordNotFoundError';\n    this.modelName = modelName;\n  }\n}\n\nexport class UserNotBelongingToTeamError extends Error {\n  public readonly projectName: string;\n  public readonly environmentName: string;\n  public readonly teamName: string;\n  public readonly teamNameToRedirectTo: string;\n\n  constructor({\n    projectName,\n    environmentName,\n    teamName,\n    teamNameToRedirectTo,\n  }: {\n    projectName: string;\n    environmentName: string;\n    teamName: string;\n    teamNameToRedirectTo: string;\n  }) {\n    super(`user can't access team \"${teamName}\"`);\n\n    this.name = 'UserNotBelongingToTeamError';\n    this.projectName = projectName;\n    this.environmentName = environmentName;\n    this.teamName = teamName;\n    this.teamNameToRedirectTo = teamNameToRedirectTo;\n  }\n}\n\nexport class AccessForbiddenError extends Error {\n  public readonly type = ERROR_ACCESS_RESOURCE_FORBIDDEN;\n  public readonly options = { description: this.message };\n\n  constructor(message: string) {\n    super(message);\n\n    this.name = 'AccessForbiddenError';\n  }\n}\n\nexport class NotFoundError extends Error {\n  public readonly type = ERROR_NOT_FOUND;\n  public readonly target: string;\n\n  get options() {\n    return { target: this.target };\n  }\n\n  constructor(target: string) {\n    super(`${capitalize(target)} not found`);\n    this.target = target;\n    this.name = 'NotFoundError';\n  }\n}\n\nexport class FetchAgentError extends AgentError {\n  constructor(cause: Error, messagePrefix: string) {\n    super(cause, `${messagePrefix}. Please contact your administrator.`);\n    this.name = 'AgentFetchError';\n  }\n}\n\nexport async function throwHttpErrorIfResponseNotOk(response: Response, method: string) {\n  if (!response.ok) {\n    const data = await tryGetBody(response);\n    throw new HttpError(response, data as EmberStoreError, method);\n  }\n}\n\nexport class AuthAlreadyInProgressError extends Error {\n  constructor() {\n    super('New authentication process launched');\n    this.name = 'AuthAlreadyInProgressError';\n  }\n}\n\nexport class ResetPasswordFailedError extends WrappedError {\n  constructor(e: Error) {\n    super(e);\n    this.name = 'ResetPasswordFailedError';\n  }\n}\n\nexport class FetchInvitationError extends WrappedError {\n  constructor(e: Error) {\n    super(e);\n    this.name = 'FetchInvitationError';\n  }\n}\n\nexport class MissingInvitationError extends Error {\n  constructor() {\n    super();\n    this.name = 'MissingInvitationError';\n  }\n}\n\nexport class OurselfMessageGoogleAuthError extends Error {\n  constructor() {\n    super();\n    this.name = 'OurselfMessageGoogleAuthError';\n  }\n}\n\nexport class MissingUrlParamsTokenGoogleAuthError extends Error {\n  constructor(eventName: string) {\n    super(`eventName is ${eventName}`);\n    this.name = 'MissingUrlParamsTokenGoogleAuthError';\n  }\n}\n\nexport class MissingUrlParamsEventNameGoogleAuthError extends Error {\n  constructor() {\n    super();\n    this.name = 'MissingUrlParamsEventNameGoogleAuthError';\n  }\n}\n\nexport class WrongTokenResetPasswordError extends Error {\n  constructor() {\n    super();\n    this.name = 'WrongTokenResetPasswordError';\n  }\n}\n\nexport class TwoFactorAuthenticationRequiredError extends Error {\n  constructor() {\n    super();\n    this.name = 'TwoFactorAuthenticationRequiredError';\n  }\n}\n\nexport class UnknownGoogleSignupError extends Error {\n  constructor(unknownErrorMessage: string) {\n    super(`unknown google signup error message: ${unknownErrorMessage}`);\n    this.name = 'UnknownGoogleSignupError';\n  }\n}\n\nexport class UnknownFailedToSaveActivityLogError extends UnknownError {\n  constructor(e: Error) {\n    super(e);\n    this.name = 'UnknownFailedToSaveActivityLogError';\n  }\n}\n\nexport class UnknownSamlCallbackParseQueryParamsError extends UnknownError {\n  constructor(e: Error) {\n    super(e);\n    this.name = 'UnknownSamlCallbackParseQueryParamsError';\n  }\n}\n\nexport class UnknownSamlAuthenticationError extends UnknownError {\n  constructor(e: Error) {\n    super(e);\n    this.name = 'UnknownSamlAuthenticationError';\n  }\n}\n\nexport class MissingAuthenticationSamlCodeError extends ManagedError {\n  constructor() {\n    super();\n    this.name = 'MissingAuthenticationSamlCodeError';\n  }\n}\n\nexport class NoMoreRetryFailedToSaveActivityLogError extends WrappedError {\n  constructor(e: Error) {\n    super(e);\n    this.name = 'NoMoreRetryFailedToSaveActivityLogError';\n  }\n}\n\nexport class UnknownLayoutError extends UnknownError {\n  constructor(cause: Error) {\n    super(cause, cause.message);\n    this.name = 'UnknownLayoutError';\n  }\n}\n\nexport class UnknownEmberDataFetchError extends UnknownError {\n  public readonly method: string;\n  public readonly url: string;\n  public readonly status: string;\n\n  constructor(\n    error: Error,\n    { method, url, status }: { method: string; url: string; status: string },\n  ) {\n    super(error, `Ember Data Request ${method} ${url} returned a ${status}`);\n    this.method = method;\n    this.url = url;\n    this.status = status;\n    this.name = 'UnknownEmberDataFetchError';\n  }\n}\n\nexport class UnknownFailedToFetchLayoutError extends UnknownError {\n  constructor(cause: Error) {\n    super(cause);\n    this.name = 'UnknownFailedToFetchLayoutError';\n    this.message = 'Failed to fetch some required resources';\n  }\n}\n\nexport class WrongClockError extends ManagedError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'WrongClockError';\n  }\n}\n\nexport class UnknownInvalidJSONError extends UnknownError {\n  constructor(cause: Error) {\n    super(cause);\n    this.name = 'UnknownInvalidJSONError';\n    this.message = 'Some data were expected to be JSON but are not';\n  }\n}\n\nexport class UnknownLoadFailedError extends UnknownError {\n  constructor(cause: Error) {\n    super(cause);\n    this.name = 'UnknownLoadFailedError';\n    this.message = 'Some resources failed to load';\n  }\n}\n\nexport class UnauthorizedLianaSessionOidcError extends WrappedError {\n  constructor(cause: Error) {\n    super(cause);\n    this.name = 'UnauthorizedLianaSessionOidcError';\n  }\n}\n\nexport class UnauthorizedServerSessionOidcError extends WrappedError {\n  constructor(cause: Error) {\n    super(cause);\n    this.name = 'UnauthorizedServerSessionOidcError';\n  }\n}\n\nexport class TwoFactorLianaSessionOidcError extends WrappedError {\n  constructor(cause: Error) {\n    super(cause);\n    this.name = 'TwoFactorLianaSessionOidcError';\n  }\n}\n\nexport class ForbiddenLianaSessionOidcError extends WrappedError {\n  constructor(cause: Error) {\n    super(cause);\n    this.name = 'ForbiddenLianaSessionOidcError';\n  }\n}\n\nexport class FailedToFetchLianaSessionOidcError extends WrappedError {\n  constructor(cause: Error) {\n    super(cause);\n    this.name = 'FailedToFetchLianaSessionOidcError';\n  }\n}\n\nexport class FailedToFetchServerSessionOidcError extends WrappedError {\n  constructor(cause: Error) {\n    super(cause);\n    this.name = 'FailedToFetchServerSessionOidcError';\n  }\n}\n\nexport class UnknownNot200ResponseLianaSessionOidcError extends UnknownError {\n  constructor(cause: Error) {\n    super(cause);\n    this.name = 'UnknownNot200ResponseLianaSessionOidcError';\n  }\n}\n\nexport class UnknownNot200ResponseServerSessionOidcError extends UnknownError {\n  constructor(cause: Error) {\n    super(cause);\n    this.name = 'UnknownNot200ResponseServerSessionOidcError';\n  }\n}\n\nexport class UnknownLianaSessionOidcError extends UnknownError {\n  constructor(cause: Error) {\n    super(cause);\n    this.name = 'UnknownLianaSessionOidcError';\n  }\n}\n\nexport class UnknownServerSessionOidcError extends UnknownError {\n  constructor(cause: Error) {\n    super(cause);\n    this.name = 'UnknownServerSessionOidcError';\n  }\n}\n\ntype UnknownAdapterOptions = { url: string; type: string; options: Record<string, unknown> };\nclass UnknownAdapterError extends UnknownError {\n  public url: string;\n  public type: string;\n  public options: Record<string, unknown>;\n\n  constructor(cause: Error, { url, type, options }: UnknownAdapterOptions) {\n    super(cause);\n    this.name = 'UnknownAdapterError';\n    this.message = `Failed to fetch METHOD: ${type} URL: ${url}`;\n\n    this.url = url;\n    this.type = type;\n    this.options = options;\n  }\n}\n\nexport class FailedToFetchError extends UnknownAdapterError {\n  constructor(cause: Error, options: UnknownAdapterOptions) {\n    super(cause, options);\n    this.name = 'FailedToFetchError';\n    this.message = `Failed to fetch METHOD: ${options.type} URL: ${options.url}`;\n  }\n}\n\nexport class CORSOrServerUnreachableFailedToFetchError extends FailedToFetchError {\n  constructor(cause: Error, options: UnknownAdapterOptions) {\n    super(cause, options);\n    this.name = 'CORSOrServerUnreachableFailedToFetchError';\n    this.message = `CORS or Server unreachable while fetching METHOD: ${options.type} URL: ${options.url}`;\n  }\n}\n\nexport class NoNetworkFailedToFetchError extends FailedToFetchError {\n  constructor(cause: Error, options: UnknownAdapterOptions) {\n    super(cause, options);\n    this.name = 'NoNetworkFailedToFetchError';\n    this.message = `No network while fetching METHOD: ${options.type} URL: ${options.url}`;\n  }\n}\n\nexport class RequestTimeoutFailedToFetchError extends FailedToFetchError {\n  constructor(cause: Error, options: UnknownAdapterOptions & { duration: number }) {\n    super(cause, options);\n    this.name = 'RequestTimeoutFailedToFetchError';\n    this.message = `Request timeout while fetching METHOD: ${options.type} URL: ${options.url} DURATION: ${options.duration}ms`;\n  }\n}\n\nexport class UnknownForestAdapterError extends UnknownAdapterError {\n  public errors: AdapterErrorItem[];\n\n  constructor(cause: Error, options: UnknownAdapterOptions) {\n    super(cause, options);\n    this.name = 'UnknownForestAdapterError';\n    this.message = cause?.message;\n\n    this.errors = 'errors' in cause ? (cause.errors as AdapterErrorItem[]) : null;\n  }\n}\n\nexport class UnknownClientAdapterError extends UnknownAdapterError {\n  public errors?: AdapterErrorItem[];\n\n  constructor(\n    cause: Error,\n    options: { url: string; type: string; options: Record<string, unknown> },\n  ) {\n    super(cause, options);\n    this.name = 'UnknownClientAdapterError';\n    this.message = cause?.message;\n    this.errors = 'errors' in cause ? (cause.errors as AdapterErrorItem[]) : null;\n  }\n}\n\nexport class UnknownResponseEntityError extends UnknownError {\n  public payload: string;\n  public status: number;\n\n  constructor(cause: Error, payload: string, status?: number) {\n    super(cause);\n\n    this.name = 'UnknownResponseEntityError';\n    this.message = `Unexpected response from server: ${payload}`;\n    this.payload = payload;\n    this.status = status;\n  }\n}\n\nexport default {\n  MissingRequiredPropertyError,\n  WrongPropertyValueError,\n  WrongPropertyTypeError,\n  NotImplementedError,\n  HttpError,\n};\n","export default class AuthenticationError extends Error {\n  /** @public @readonly */\n  code;\n\n  /** @public @readonly */\n  description;\n\n  /**\n   * @param {string} [message]\n   * @param {ErrorBody} [body]\n   */\n  constructor(message, body) {\n    super(message || 'An error occurred during the authentication');\n    this.name = 'AuthenticationError';\n\n    this.code = body?.error;\n    this.description = body?.error_description;\n  }\n}\n\n/**\n * @typedef {{error: string, error_description: string}} ErrorBody\n */\n","/* eslint-disable max-classes-per-file */\n\nexport class BillingError extends Error {\n  constructor(message: string) {\n    super(message);\n    this.name = 'BillingError';\n  }\n}\n\nexport class UnableToSaveBillingError extends BillingError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'UnableToSaveBillingError';\n  }\n}\n\nexport class BillingValidationError extends BillingError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'BillingValidationError';\n  }\n}\n\nexport class UnableToConfirmPaymentIntentError extends BillingError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'UnableToConfirmPaymentIntentError';\n  }\n}\n\nexport class UnableToCreateSubscriptionError extends BillingError {\n  constructor(message: string) {\n    super(message);\n    this.name = 'UnableToCreateSubscriptionError';\n  }\n}\n","import { ERROR_ACCESS_COLLECTION_FORBIDDEN } from 'client/config/errors';\n\nexport default class AccessCollectionForbidden extends Error {\n  constructor(...args) {\n    super(...args);\n    this.name = 'AccessCollectionForbidden';\n    this.type = ERROR_ACCESS_COLLECTION_FORBIDDEN;\n  }\n}\n","import { ERROR_ACCESS_RECORD_FORBIDDEN } from 'client/config/errors';\n\nexport default class AccessRecordForbidden extends Error {\n  constructor(...args) {\n    super(...args);\n    this.name = 'AccessRecordForbidden';\n    this.type = ERROR_ACCESS_RECORD_FORBIDDEN;\n  }\n}\n","export default class CountDeactivatedError extends Error {\n  constructor(message?: string) {\n    super(message || 'Count deactivated');\n    this.name = 'CountDeactivatedError';\n  }\n}\n","import { ERROR_CREATE_RECORD_FORBIDDEN } from 'client/config/errors';\n\nexport default class CreateRecordForbidden extends Error {\n  constructor(...args) {\n    super(...args);\n    this.name = 'CreateRecordForbidden';\n    this.type = ERROR_CREATE_RECORD_FORBIDDEN;\n  }\n}\n","// eslint-disable-next-line import/prefer-default-export\nexport { default as SelectPageUnavailableError } from './select-page-unavailable';\n","export default class SelectPageUnavailableError extends Error {\n  constructor() {\n    super('Select page unavailable');\n    this.name = 'SelectPageUnavailableError';\n  }\n}\n","import { ERROR_REDIRECTION_LOOP } from 'client/config/errors';\n\nexport default class RedirectionLoop extends Error {\n  constructor(...args) {\n    super(...args);\n    this.name = 'RedirectionLoop';\n    this.type = ERROR_REDIRECTION_LOOP;\n  }\n}\n","import AuthenticationError from 'client/utils/errors/authentication-error';\n\nexport default class TwoFactorAuthenticationRequiredError extends AuthenticationError {\n  constructor() {\n    super(\n      'You must activate the two factor authentication on your account to access this environment.',\n    );\n    this.name = 'TwoFactorAuthenticationRequiredError';\n  }\n}\n","import AuthenticationError from 'client/utils/errors/authentication-error';\n\nexport default class UserForbiddenError extends AuthenticationError {\n  /**\n   * @param {string} errorMessage\n   */\n  constructor(errorMessage) {\n    super(errorMessage || 'You are not authorized to access this project.');\n    this.name = 'UserForbiddenError';\n  }\n}\n","import { addListener } from '@ember/object/events';\nimport window from 'ember-window-mock';\n\nimport BranchChangedOnEnvironment from 'client/gql/subscriptions/branch-changed-on-environment.graphql';\nimport BranchPushedToRemote from 'client/gql/subscriptions/branch-pushed-to-remote.graphql';\nimport EnvironmentDeployed from 'client/gql/subscriptions/environment-deployed.graphql';\nimport EnvironmentDevelopmentV2Initialized from 'client/gql/subscriptions/environment-development-v2-initialized.graphql';\n\nexport default class EventListener {\n  constructor(apollo, project, user, router) {\n    if (!apollo) throw new Error('Apollo service is missing on DWO event listener');\n    if (!project) throw new Error('Project is missing on DWO event listener');\n    if (!user) throw new Error('User is missing on DWO event listener');\n    if (!router) throw new Error('Router is missing on DWO event listener');\n\n    this.apollo = apollo;\n    this.project = project;\n    this.user = user;\n    this.router = router;\n  }\n\n  async init() {\n    if (!this.user.can('editProject')) {\n      return;\n    }\n\n    this.userDevEnvironment = await this.doesUserOwnEnvironment();\n    this.remoteEnvironment = await this.hasProjectRemoteEnvironment();\n    this.productionEnvironment = await this.hasProjectProductionEnvironment();\n\n    await this.listenForInitCommand();\n    await this.listenForBranchCommand();\n    await this.listenForPushCommand();\n    await this.listenForDeployCommand();\n  }\n\n  async doesUserOwnEnvironment() {\n    const environments = await this.project.get('environments');\n\n    return environments.find(\n      (environment) => environment.belongsTo('owner').id() === this.user.get('id'),\n    );\n  }\n\n  async hasProjectRemoteEnvironment() {\n    const environments = await this.project.get('environments');\n\n    return environments.find((environment) => environment.get('type') === 'remote');\n  }\n\n  async hasProjectProductionEnvironment() {\n    const environments = await this.project.get('environments');\n\n    return environments.find((environment) => environment.get('type') === 'production');\n  }\n\n  async listenForInitCommand() {\n    let subscription = null;\n\n    if (!this.user.can('createProjectDevelopmentEnvironment') || this.userDevEnvironment) {\n      return subscription;\n    }\n\n    subscription = await this.apollo.subscribe(\n      {\n        query: EnvironmentDevelopmentV2Initialized,\n        variables: {\n          userId: this.user.get('id'),\n          projectName: this.project.name,\n        },\n      },\n      'environmentDevelopmentV2Initialized',\n    );\n\n    addListener(subscription, 'event', (environment) => this.redirectToEnvironment(environment));\n\n    return subscription;\n  }\n\n  async listenForBranchCommand() {\n    let subscription = null;\n\n    if (\n      (!this.user.can('createBranch')\n        && !this.user.can('deleteBranch')\n        && !this.user.can('updateEnvironment'))\n      || !this.userDevEnvironment\n    ) {\n      return subscription;\n    }\n\n    subscription = await this.apollo.subscribe(\n      {\n        query: BranchChangedOnEnvironment,\n        variables: {\n          userId: this.user.get('id'),\n          environmentId: this.userDevEnvironment.id,\n        },\n      },\n      'branchChangedOnEnvironment',\n    );\n\n    addListener(subscription, 'event', () => this.redirectToEnvironment(this.userDevEnvironment));\n\n    return subscription;\n  }\n\n  async listenForPushCommand() {\n    let subscription = null;\n\n    if (!this.user.can('pushBranch') || !this.remoteEnvironment) {\n      return subscription;\n    }\n\n    subscription = await this.apollo.subscribe(\n      {\n        query: BranchPushedToRemote,\n        variables: {\n          projectId: this.project.id,\n          userId: this.user.get('id'),\n        },\n      },\n      'branchPushedToRemote',\n    );\n\n    addListener(subscription, 'event', (environment) => this.redirectToEnvironment(environment));\n\n    return subscription;\n  }\n\n  async listenForDeployCommand() {\n    let subscription = null;\n\n    if (!this.user.can('deployEnvironment') || !this.productionEnvironment) {\n      return subscription;\n    }\n\n    subscription = await this.apollo.subscribe(\n      {\n        query: EnvironmentDeployed,\n        variables: {\n          projectId: this.project.id,\n          userId: this.user.get('id'),\n        },\n      },\n      'environmentDeployed',\n    );\n\n    addListener(subscription, 'event', (environment) => this.redirectToEnvironment(environment));\n\n    return subscription;\n  }\n\n  redirectToEnvironment(environment) {\n    if (!this.project.isFullHostedProject)\n      window.location.href = this.router.urlFor('project.rendering', {\n        project_name: this.project.name,\n        environment_name: environment.name,\n        team_name: this.user.get('team.name'),\n      });\n  }\n}\n","import { computed } from '@ember/object';\nimport { readOnly } from '@ember/object/computed';\nimport { isNone } from '@ember/utils';\nimport { tracked } from '@glimmer/tracking';\n\nimport ExplorerConfiguration from 'client/data/models/explorer-configuration';\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\n\nexport default class AbstractExplorerRowVisibility {\n  @tracked row;\n\n  @tracked _isVisible = null;\n\n  @readOnly('row.field') field;\n  @readOnly('row.id') id;\n\n  @computed('_isVisible', 'explorerConfigurationOrRow.isVisible')\n  get isVisible() {\n    return this._isVisible ?? this.explorerConfigurationOrRow.isVisible;\n  }\n\n  set isVisible(value) {\n    this._setAttributeIfPossible('isVisible', value);\n  }\n\n  get explorerConfigurationOrRow() {\n    return this.row?.explorerConfiguration || this.row;\n  }\n\n  get hasExplorerConfigured() {\n    return !!this.row.explorerConfiguration;\n  }\n\n  constructor({ row }) {\n    if (!row) throw new MissingRequiredPropertyError('row');\n\n    this.row = row;\n  }\n\n  _setAttributeIfPossible(attributeName, value) {\n    if (this.hasExplorerConfigured) {\n      this.row.explorerConfiguration.set(attributeName, value);\n    } else {\n      this[`_${attributeName}`] = value;\n    }\n  }\n\n  _setAttributeFromLocalAttribute(attributeName) {\n    const privateAttribute = `_${attributeName}`;\n    if (!isNone(this[privateAttribute])) {\n      this.row.explorerConfiguration.set(attributeName, this[privateAttribute]);\n      this[privateAttribute] = null;\n    }\n  }\n\n  createExplorerConfigurationIfNecessary() {\n    if (!this.hasExplorerConfigured) {\n      ExplorerConfiguration.initExplorer(this.row);\n\n      this._setAttributeFromLocalAttribute('isVisible');\n\n      this.afterExplorerInit?.();\n    }\n  }\n\n  save() {\n    this.createExplorerConfigurationIfNecessary();\n    return this.row.save();\n  }\n}\n","import { computed } from '@ember/object';\nimport { tracked } from '@glimmer/tracking';\n\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\n\nexport default class ExplorerDisplayField {\n  @tracked explorerColumn;\n  @tracked field;\n  @tracked position;\n  @tracked _isVisible;\n\n  @computed('explorerColumn.displayFieldNames.[]', 'field.fieldName', '_isVisible')\n  get isVisible() {\n    return this._isVisible ?? this.explorerColumn.displayFieldNames?.includes(this.field.fieldName);\n  }\n\n  set isVisible(value) {\n    this._isVisible = value;\n  }\n\n  get isDisabled() {\n    return !this.isVisible && this.explorerColumn.displayFieldNames?.length >= 3;\n  }\n\n  constructor({ field, position, explorerColumn }) {\n    if (!field) throw new MissingRequiredPropertyError('field');\n\n    this.field = field;\n    this.position = position;\n    this.explorerColumn = explorerColumn;\n  }\n}\n","import { tracked } from '@glimmer/tracking';\n\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\nimport AbstractExplorerRowVisibility from 'client/utils/explorer/abstract-explorer-row-visibility-class';\nimport ExplorerRecordsContext from 'client/utils/explorer/explorer-records-context';\nimport { namespace } from 'client/utils/string-utils';\n\nexport default class ExplorerRecordsColumn extends AbstractExplorerRowVisibility {\n  type = 'records';\n\n  @tracked parentRecord;\n  @tracked selectedRecord;\n  @tracked onClick;\n  @tracked onNameClick;\n  @tracked search = '';\n\n  @tracked _displayFieldNames = null;\n\n  @tracked _recordsPerPage;\n  @tracked recordsContext;\n\n  get recordsPerPage() {\n    return this._recordsPerPage || this.row.explorerConfiguration?.recordsPerPage || 10;\n  }\n\n  set recordsPerPage(value) {\n    this._setAttributeIfPossible('recordsPerPage', value);\n  }\n\n  get displayFieldNames() {\n    return this._displayFieldNames || this.row?.explorerConfiguration?.displayFieldNames;\n  }\n\n  set displayFieldNames(fieldNames) {\n    this._setAttributeIfPossible('displayFieldNames', fieldNames);\n  }\n\n  get displayFieldNamesWithNamespace() {\n    return this.displayFieldNames?.length\n      ? this.displayFieldNames.map((fieldName) =>\n          fieldName === 'id' ? 'id' : namespace(fieldName, '-'),\n        )\n      : [this.field?.nestedOrReferencedCollection?.displayFieldWithNamespace];\n  }\n\n  get relatedDataRows() {\n    return this.field.referenceModel?.viewEdit?.rowEditsRelatedData || [];\n  }\n\n  get relatedDataRowsVisible() {\n    return this.relatedDataRows?.filter(\n      (row) => row.explorerConfiguration?.isVisible ?? row.isVisible,\n    );\n  }\n\n  get hasRelatedData() {\n    return this.relatedDataRows.length > 0;\n  }\n\n  get hasRelatedDataVisible() {\n    return this.relatedDataRowsVisible.length > 0;\n  }\n\n  get mustBeDeleted() {\n    return !this.editor && !this.isVisible;\n  }\n\n  get mustDeleteNextColumns() {\n    return this.editor && !this.isVisible;\n  }\n\n  get shouldDisplayNextColumn() {\n    return this.editor ? this.isVisible : !!this.selectedRecord;\n  }\n\n  get defaultSort() {\n    const hasNoDefaultSortingField = !this.field.referenceModel?.defaultSortingField;\n    const isBelongsToSortInHasMany = this.field.referenceModel?.defaultSortingField?.isBelongsTo;\n\n    if (hasNoDefaultSortingField || isBelongsToSortInHasMany) return {};\n\n    const { defaultSortingField, defaultSortingOrder } = this.field.referenceModel;\n\n    return {\n      sortingParameters: [\n        {\n          fieldName: defaultSortingField.fieldName,\n          order: defaultSortingOrder,\n        },\n      ],\n    };\n  }\n\n  afterExplorerInit() {\n    this._setAttributeFromLocalAttribute('displayFieldNames');\n    this._setAttributeFromLocalAttribute('recordsPerPage');\n  }\n\n  constructor({\n    row,\n    parentRecord,\n    selectedRecord,\n    onClick,\n    onNameClick,\n    editor = false,\n    isGenericFiltersAvailable,\n  }) {\n    super({ row });\n\n    if (!parentRecord && !editor) throw new MissingRequiredPropertyError('parentRecord');\n    if (!onClick && !editor) throw new MissingRequiredPropertyError('onClick');\n    if (!onNameClick && !editor) throw new MissingRequiredPropertyError('onNameClick');\n\n    this.parentRecord = parentRecord;\n    this.onClick = onClick;\n    this.onNameClick = onNameClick;\n    this.selectedRecord = selectedRecord;\n    this.editor = editor;\n\n    if (!editor) {\n      this.recordsContext = new ExplorerRecordsContext({\n        collection: this.field.referenceModel,\n        row: this.row,\n        parentRecord: this.parentRecord,\n        recordsPerPage: this.recordsPerPage,\n        isGenericFiltersAvailable,\n        relationshipParameters: {\n          parentCollectionName: this.field.collection.name,\n          parentCollectionId: this.parentRecord.id,\n          parentAssociationName: this.field.fieldName,\n        },\n        ...this.defaultSort,\n      });\n    }\n  }\n}\n","import { tracked } from '@glimmer/tracking';\n\nimport RelatedRecordsContext from 'client/utils/liana-records/related-records-context';\n\n// This handle all the parameters of the request sent to the agent\nexport default class ExplorerRecordsContext extends RelatedRecordsContext {\n  @tracked row;\n\n  constructor({ row, ...args }) {\n    super({ ...args, field: row.field });\n\n    this.row = row;\n  }\n\n  get columns() {\n    const displayFieldNames = this.row.explorerConfiguration?.displayFieldNames || [\n      this.collection.displayField?.fieldName || 'id',\n    ];\n\n    return this.collection.columns.filter((column) =>\n      displayFieldNames.includes(column.field?.fieldName),\n    );\n  }\n}\n","import { computed } from '@ember/object';\nimport { tracked } from '@glimmer/tracking';\n\nimport AbstractExplorerRowVisibility from 'client/utils/explorer/abstract-explorer-row-visibility-class';\n\nexport default class ExplorerRelationshipRow extends AbstractExplorerRowVisibility {\n  @tracked _position = null;\n\n  @computed('_position', 'explorerConfigurationOrRow.position')\n  get position() {\n    return this._position ?? this.explorerConfigurationOrRow.position;\n  }\n\n  set position(value) {\n    this._setAttributeIfPossible('position', value);\n  }\n\n  afterExplorerInit() {\n    this._setAttributeFromLocalAttribute('position');\n  }\n}\n","import { tracked } from '@glimmer/tracking';\n\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\n\nexport default class ExplorerRelationshipsColumn {\n  type = 'relatedData';\n\n  @tracked referenceModel;\n  @tracked parentRecord;\n  @tracked onClick;\n  @tracked selectedItem;\n\n  mustDeleteNextColumns = false;\n\n  get relatedDataRows() {\n    return this.referenceModel.viewEdit.rowEditsRelatedData;\n  }\n\n  get relatedDataRowsVisible() {\n    return this.relatedDataRows?.filter(\n      (row) => row.explorerConfiguration?.isVisible ?? row.isVisible,\n    );\n  }\n\n  get hasRelatedData() {\n    return !!this.relatedDataRows.length;\n  }\n\n  get hasRelatedDataVisible() {\n    return !!this.relatedDataRowsVisible.length;\n  }\n\n  get hasSingleRelatedData() {\n    return this.relatedDataRows.length === 1;\n  }\n\n  get hasSingleRelatedDataVisible() {\n    return this.relatedDataRowsVisible.length === 1;\n  }\n\n  get isEmpty() {\n    return this.editor ? !this.hasRelatedData : !this.hasRelatedDataVisible;\n  }\n\n  get shouldDisplay() {\n    return this.editor ? !this.hasSingleRelatedData : !this.hasSingleRelatedDataVisible;\n  }\n\n  get mustBeDeleted() {\n    return !this.editor && !this.hasRelatedDataVisible;\n  }\n\n  get shouldDisplayNextColumn() {\n    return this.editor ? this.hasSingleRelatedData : this.hasSingleRelatedDataVisible;\n  }\n\n  constructor({ referenceModel, parentRecord, onClick, selectedItem, editor }) {\n    if (!referenceModel) throw new MissingRequiredPropertyError('referenceModel');\n    if (!parentRecord && !editor) throw new MissingRequiredPropertyError('parentRecord');\n    if (!onClick) throw new MissingRequiredPropertyError('onClick');\n\n    this.referenceModel = referenceModel;\n    this.parentRecord = parentRecord;\n    this.onClick = onClick;\n    this.selectedItem = selectedItem;\n    this.editor = editor;\n  }\n}\n","/**\n * @param {string} headerValue\n * @returns {string|undefined}\n */\nexport default function extractFileNameFromContentDisposition(headerValue) {\n  if (!headerValue) {\n    return undefined;\n  }\n\n  const REGEX_FILENAME = /filename[^;=\\n]*=((['\"]).*?\\2|[^;\\n]*)/i;\n  const matches = REGEX_FILENAME.exec(headerValue);\n  if (matches !== null && matches[1]) {\n    return decodeURIComponent(matches[1]).replace(/['\"]/g, '');\n  }\n\n  return undefined;\n}\n","import window from 'ember-window-mock';\nimport { Promise } from 'rsvp';\n\n// NOTICE: 1.5 Mo is the maximum file size, we managed to preview empirically.\nconst FILE_SIZE_MAX_FOR_PREVIEW = 1500000;\n\nconst DATA_URI = /^data:([^;,]+)?((?:;(?:[^;,]+))*?)(;base64)?,(.*)/;\n\nfunction getMimeType(uri: string) {\n  const matches = DATA_URI.exec(uri);\n  if (!matches) {\n    throw new Error(`Not a valid data URI: \"${uri.slice(0, 20)}\"`);\n  }\n\n  return matches[1] || 'text/plain';\n}\n\n/* ⚠ Do not include these following types, as they are subject to XSS attacks\n *  - image/svg+xml\n *  - text/html\n *  - application/xhtml+xml\n *  - application/xml\n *  - text/xml\n *\n *  Other mime types could be subject of the same issue, that's why we use\n *  a white list filtering here\n */\n// When the browser does not recognize a file extension, it returns\n// application/octet-stream. Map known extensions to their MIME type.\nconst EXTENSION_MIME_MAP: Record<string, string> = {\n  md: 'text/markdown',\n  markdown: 'text/markdown',\n};\n\n// MIME types that browsers cannot natively render in an <object> tag\n// but can be displayed as plain text.\nconst PREVIEW_MIME_TYPE_MAP: Record<string, string> = {\n  'text/markdown': 'text/plain',\n};\n\nconst SAFE_MIME_TYPES = [\n  'image/bmp',\n  'image/gif',\n  'image/jpeg',\n  'image/png',\n  'image/tiff',\n  'image/webp',\n  'text/plain',\n  'text/markdown',\n  'text/csv',\n  'application/json',\n  'application/pdf',\n];\n\ntype CustomDataObject = {\n  dataType: 'URL';\n  name: string;\n};\n\nfunction isCustomDataObject(data: CustomDataObject | string): data is CustomDataObject {\n  return typeof data !== 'string' && data.dataType === 'URL';\n}\n\nexport default {\n  isServiceFactory: true,\n\n  /**\n   * When the browser cannot determine a file's MIME type, FileReader.readAsDataURL\n   * produces data:application/octet-stream. This replaces it with the correct MIME\n   * type inferred from the filename extension, if known.\n   */\n  fixOctetStreamType(dataUrl: string, filename: string) {\n    if (!dataUrl.startsWith('data:application/octet-stream') || !filename) {\n      return dataUrl;\n    }\n\n    const ext = filename.split('.').pop()?.toLowerCase();\n    const mimeType = ext ? EXTENSION_MIME_MAP[ext] : undefined;\n\n    if (mimeType) {\n      return dataUrl.replace('data:application/octet-stream', `data:${mimeType}`);\n    }\n\n    return dataUrl;\n  },\n\n  /**\n   * Return the MIME type inferred from a filename extension,\n   * or undefined if the extension is not in EXTENSION_MIME_MAP.\n   */\n  getMimeTypeFromExtension(filename: string): string | undefined {\n    const ext = filename?.split('.').pop()?.toLowerCase();\n    return ext ? EXTENSION_MIME_MAP[ext] : undefined;\n  },\n\n  /**\n   * Like isSafeBase64, but falls back to inferring the MIME type from the\n   * filename extension when the data URI has application/octet-stream.\n   */\n  isSafeByExtension(dataUrl: string, filename: string) {\n    try {\n      const mimeType = getMimeType(dataUrl);\n      if (mimeType !== 'application/octet-stream') return false;\n    } catch {\n      return false;\n    }\n    const ext = filename?.split('.').pop()?.toLowerCase();\n    const inferred = ext ? EXTENSION_MIME_MAP[ext] : undefined;\n    return inferred ? SAFE_MIME_TYPES.includes(inferred) : false;\n  },\n\n  isDataURLScheme(value: string) {\n    if (!value) {\n      return false;\n    }\n\n    try {\n      decodeURI(value);\n      return true;\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      return false;\n    }\n  },\n\n  isCorrectMimeType(value: string, mimeTypeMustInclude: string) {\n    if (!value) {\n      return false;\n    }\n\n    try {\n      return getMimeType(value).includes(mimeTypeMustInclude);\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (error) {\n      return false;\n    }\n  },\n\n  isImage(value: string) {\n    return this.isCorrectMimeType(value, 'image/') && this.isSafeBase64(value);\n  },\n\n  isPdf(value: string) {\n    return this.isCorrectMimeType(value, 'application/pdf');\n  },\n\n  /** Check if a string is an url pointing to a remote resource */\n  isValidUrl(value: string) {\n    try {\n      return ['http:', 'https:'].includes(new URL(value).protocol);\n    } catch {\n      return false;\n    }\n  },\n\n  isBase64String(value: string) {\n    // NOTICE: A more complex/specific regexp can make the app crash with large base 64 strings.\n    const regex = /^(data:.*;base64,)?.*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/;\n    return regex.test(value);\n  },\n\n  isBase64Prefixed(value: string) {\n    const regex = /^data:.*;base64,.*/i;\n    return regex.test(value);\n  },\n\n  isSafeBase64(value: string) {\n    try {\n      const mimeType = getMimeType(value);\n\n      return SAFE_MIME_TYPES.includes(mimeType);\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (e) {\n      return false;\n    }\n  },\n\n  isValidBase64(value: string) {\n    return this.isBase64Prefixed(value) && this.isBase64String(value);\n  },\n\n  isUrlAbsolute(value: string) {\n    if (!value) {\n      return false;\n    }\n    return value.startsWith('http');\n  },\n\n  isUrlAbsoluteWithoutProtocol(value: string) {\n    if (!value) {\n      return false;\n    }\n    return value.startsWith('//');\n  },\n\n  isUrlRelative(value: string) {\n    if (!value) {\n      return false;\n    }\n    return value.startsWith('/') && !!value.match(/[^/]+\\.(jpg|jpeg|png|gif)$/i);\n  },\n\n  isImageOrUrlForImage(value: string) {\n    if (!value) {\n      return false;\n    }\n\n    if (!value.startsWith('http')) {\n      return this.isImage(value);\n    }\n\n    return this.isUrlForImage(value);\n  },\n\n  isUrlForImage(value: string) {\n    if (!value) {\n      return false;\n    }\n    return !!value.match(/^http.*\\.(jpg|jpeg|png|gif|tiff|svg)(\\?.*)?$/i);\n  },\n\n  isPdfOrUrlForPdf(value: string) {\n    if (!value) {\n      return false;\n    }\n\n    if (!value.startsWith('http')) {\n      return this.isPdf(value);\n    }\n\n    return this.isUrlForPdf(value);\n  },\n\n  isUrlForPdf(value: string) {\n    if (!value) {\n      return false;\n    }\n\n    return !!value.match(/^http.*\\.pdf(\\?.*)?$/i);\n  },\n\n  isUrlForSvg(value: string) {\n    if (!value) {\n      return false;\n    }\n\n    return !!value.match(/^http.*\\.svg(\\?.*)?$/i);\n  },\n\n  _getTypeFromBase64(data: string) {\n    const mime = data.substring(0, data.indexOf(';'));\n    const type = mime.split('/').pop();\n\n    return type || '';\n  },\n\n  _getTypeFromURL(url: string) {\n    const parsedUrl = url.split('.');\n    return parsedUrl.length > 1 ? parsedUrl.at(-1) : null;\n  },\n\n  getNameFromBase64(data: string) {\n    const header = data.substring(0, data.indexOf(','));\n    const part = header.split(';').find((p) => p.startsWith('name='));\n    return part ? decodeURIComponent(part.substring(5)) : null;\n  },\n\n  getTypeOrDefault(data: CustomDataObject | string, defaultType = '') {\n    if (!data) {\n      return '';\n    }\n    if (isCustomDataObject(data)) {\n      return this._getTypeFromURL(data.name);\n    }\n    return this._getTypeFromBase64(data) || defaultType;\n  },\n\n  getName(data: CustomDataObject | string) {\n    if (!data) {\n      return '';\n    }\n    if (isCustomDataObject(data)) {\n      return data.name;\n    }\n    return this.getNameFromBase64(data);\n  },\n\n  getMimeTypeFromBase64(data: string) {\n    return data.substring(5, data.indexOf(';')) || 'text/plain';\n  },\n\n  getPreviewMimeType(mimeType: string) {\n    return PREVIEW_MIME_TYPE_MAP[mimeType] || mimeType;\n  },\n\n  getSizeFromBase64(data: string) {\n    const base64Data = data.substring(data.indexOf('base64,') + 7).replace(/=*$/, '');\n    // NOTICE: See https://blog.aaronlenoir.com/2017/11/10/get-original-length-from-base-64-string/\n    return 3 * (base64Data.length / 4);\n  },\n\n  getSize(data: CustomDataObject | string) {\n    if (!data || isCustomDataObject(data)) {\n      return null;\n    }\n    return this.getSizeFromBase64(data);\n  },\n\n  isFileTooBigForPreview(size: number) {\n    return size > FILE_SIZE_MAX_FOR_PREVIEW;\n  },\n\n  /**\n   * Inject a name parameter in the MediaType of a data-uri.\n   * If another name parameter is already present, replace it.\n   */\n  injectFilename(dataUri: string, filename: string) {\n    const index = dataUri.indexOf(',');\n    const header = dataUri.substring(0, index);\n    const payload = dataUri.substring(index + 1);\n\n    const parameter = `name=${encodeURIComponent(filename)}`;\n    const headerChunks = header.split(';').filter((p) => !p.startsWith('name='));\n    if (headerChunks[headerChunks.length - 1] === 'base64') {\n      headerChunks.splice(headerChunks.length - 1, 0, parameter);\n    } else {\n      headerChunks.push(parameter);\n    }\n\n    return `${headerChunks.join(';')},${payload}`;\n  },\n\n  extractFileNameFromUrl(url: string) {\n    const { pathname } = new URL(url);\n    const index = pathname.lastIndexOf('/');\n    return index !== -1 ? pathname.substring(index + 1) : pathname;\n  },\n\n  async getDataFromUrl(url: string) {\n    const filename = this.extractFileNameFromUrl(url);\n\n    // Load data\n    let response: Response;\n    try {\n      response = await window.fetch(url, { mode: 'cors' });\n      // eslint-disable-next-line sonarjs/no-ignored-exceptions\n    } catch (err) {\n      response = await window.fetch(url, { mode: 'no-cors' });\n    }\n    if (response.type === 'opaque') {\n      // Cannot access to metadata of file\n      return { name: filename.toString(), opaqueResp: true };\n    }\n\n    const blob = await response.blob();\n\n    // Convert to data-uri & inject filename.\n    const reader = new FileReader();\n    return new Promise((resolve, reject) => {\n      reader.addEventListener(\n        'load',\n        () => {\n          const dataUri = this.injectFilename(reader.result as string, filename);\n          resolve(dataUri);\n        },\n        false,\n      );\n      reader.addEventListener(\n        'error',\n        () => {\n          reject(reader.error);\n        },\n        false,\n      );\n      reader.readAsDataURL(blob);\n    });\n  },\n\n  // NOTICE: Code from: https://stackoverflow.com/questions/16245767/creating-a-blob-from-a-base64-string-in-javascript\n  createObjectUrl(url: string) {\n    const sliceSize = 512;\n\n    const matches = /^data:([^;,]+)/i.exec(url);\n    const rawType = matches?.[1] || 'text/plain';\n    const type = PREVIEW_MIME_TYPE_MAP[rawType] || rawType;\n    const base64Content = url.replace(/^data:.*;base64,/i, '');\n    const byteCharacters = window.atob(base64Content);\n    const byteArrays: BlobPart[] = [];\n\n    for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {\n      const slice = byteCharacters.slice(offset, offset + sliceSize);\n\n      const byteNumbers = new Array(slice.length);\n      for (let i = 0; i < slice.length; i += 1) {\n        byteNumbers[i] = slice.charCodeAt(i);\n      }\n\n      const byteArray = new Uint8Array(byteNumbers);\n      byteArrays.push(byteArray);\n    }\n\n    const blob = new Blob(byteArrays, { type });\n    return URL.createObjectURL(blob);\n  },\n\n  // NOTICE: Code from: https://stackoverflow.com/questions/35940290/how-to-convert-base64-string-to-javascript-file-object-like-as-from-file-input-f\n  createFileFromDataUri(dataURI: string): File | null {\n    if (!dataURI) return null;\n    if (!dataURI.startsWith('data:'))\n      throw new Error('Cannot create File object from invalid string');\n    const [meta, base64] = dataURI.split(',');\n    const mime = meta.match(/:(.*?);/)[1];\n    const u8arr = Uint8Array.from(window.atob(base64), (c) => c.charCodeAt(0));\n    return new File([u8arr], this.getNameFromBase64(dataURI), { type: mime });\n  },\n};\n","import type EmberArray from '@ember/array';\nimport type { SmartActionFilterOperator } from 'client/data/models/smart-action-permissions';\nimport type { OperatorValue } from 'client/utils/operators';\n\nimport { findOperatorFromName } from 'client/utils/condition-utils';\nimport { formatValue } from 'client/utils/operators';\n\nexport interface Condition {\n  fieldString: string;\n  operator: SmartActionFilterOperator;\n  value: OperatorValue;\n}\n\nexport interface Filter {\n  aggregator: 'and' | 'or';\n  conditions: EmberArray<Filter | Condition> | Array<Filter | Condition>;\n}\n\nfunction formatOperation(operator: SmartActionFilterOperator, value: OperatorValue): string {\n  const operatorInfo = findOperatorFromName(operator);\n\n  // defensive programming, should never happen\n  if (!operatorInfo) {\n    return `${operator} ${formatValue(value)}`;\n  }\n\n  return operatorInfo.generateDisplayText(value);\n}\n\nfunction aggregatorToText(condition: Filter, isFirstLevel: boolean): string {\n  const childConditions = condition.conditions\n    // eslint-disable-next-line @typescript-eslint/no-use-before-define\n    .map((c) => conditionToText(c, false))\n    .filter(Boolean);\n\n  if (childConditions.length === 0) {\n    return '';\n  }\n\n  if (childConditions.length === 1) {\n    return childConditions[0];\n  }\n  const combined = childConditions.join(` ${condition.aggregator.toUpperCase()} `);\n\n  return isFirstLevel ? combined : `(${combined})`;\n}\n\nfunction leafToText(condition: Condition): string {\n  const { fieldString, operator, value } = condition;\n\n  if (!fieldString && operator) return '[INVALID FILTER]';\n  if (!fieldString) return '';\n\n  const normalizedFieldPath = fieldString.replaceAll(':', '.');\n\n  return `${normalizedFieldPath} ${formatOperation(operator, value)}`;\n}\n\nfunction conditionToText(condition: Filter | Condition, isFirstLevel: boolean): string {\n  if (!condition) return '';\n\n  if ((condition as Filter).aggregator) {\n    return aggregatorToText(condition as Filter, isFirstLevel);\n  }\n\n  return leafToText(condition as Condition);\n}\n\nexport default function filterToText(condition: Filter | Condition): string {\n  const textRepresentation = conditionToText(condition, true);\n\n  if (!textRepresentation) {\n    return 'Always';\n  }\n\n  return `IF ${conditionToText(condition, true)}`;\n}\n","import { tracked } from '@glimmer/tracking';\nimport { singularize } from 'ember-inflector';\n\nimport { prefillParentRecord } from 'client/legacy/abstract-routes/view-edit-relationship-create-route';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\nimport CreationForm from 'client/utils/form/creation-form';\nimport { namespace } from 'client/utils/string-utils';\n\nexport default class BelongsToCreationForm extends CreationForm {\n  isBelongsToCreation = true;\n\n  @tracked field;\n  @tracked parentRecord;\n  @tracked prefilledRows;\n\n  constructor({ parentRecord, field, polymorphicReferenceModel }) {\n    super({ collection: polymorphicReferenceModel || field.nestedOrReferencedCollection });\n    this.parentRecord = parentRecord;\n    this.field = field;\n    this.polymorphicReferenceModel = polymorphicReferenceModel;\n  }\n\n  get displayName() {\n    return singularize(this.field.displayName.toLowerCase());\n  }\n\n  async instantiateRecord(owner) {\n    this.record = this.field.isEmbedded\n      ? owner.store.createFragment(namespace(this.field.embeddedCollectionName, '-'))\n      : owner.store.createRecord(\n          (this.polymorphicReferenceModel || this.field.referenceModel).emberModelName,\n        );\n\n    // We can't prefill the parent record if that record is not saved yet.\n    if (!this.field.isEmbedded && !this.parentRecord.isNew) {\n      await waitForNextRunLoop();\n      this.prefilledRows = prefillParentRecord(\n        owner,\n        this.field,\n        this.record,\n        this.parentRecord,\n        this.polymorphicReferenceModel,\n      );\n    }\n  }\n}\n","import type Model from '@ember-data/model';\nimport type ModelRegistry from '@ember-data/types/registries/model';\nimport type Collection from 'client/data/models/collection';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type StoreService from 'client/legacy/services/store';\n\nimport { assert } from '@ember/debug';\nimport { tracked } from '@glimmer/tracking';\n\nexport interface FormOwner {\n  store: StoreService;\n  lianaFeatures: LianaFeaturesService;\n}\n\nexport default class CreationForm {\n  @tracked collection: Collection;\n  @tracked record: Model | null = null;\n\n  constructor({ collection }: { collection: Collection }) {\n    this.collection = collection;\n  }\n\n  get displayName() {\n    return this.collection.displayNameLowerCase;\n  }\n\n  private async instantiateRecord(owner: FormOwner) {\n    this.record = owner.store.createRecord(this.collection.emberModelName as keyof ModelRegistry);\n  }\n\n  static async instantiateForm(owner: FormOwner, args: { collection: Collection }) {\n    assert('owner argument is required', !!owner);\n    assert('store not existing on owner', !!owner.store);\n    assert('lianaFeatures not existing on owner', !!owner.lianaFeatures);\n\n    const creationForm = new this(args);\n    await creationForm.instantiateRecord(owner);\n    return creationForm;\n  }\n}\n","import { assert } from '@ember/debug';\nimport { tracked } from '@glimmer/tracking';\n\nimport CreationForm from 'client/utils/form/creation-form';\n\nexport default class DuplicationForm extends CreationForm {\n  @tracked recordToDuplicate;\n\n  constructor({ collection, recordToDuplicate }) {\n    super({ collection });\n\n    this.recordToDuplicate = recordToDuplicate;\n  }\n\n  async instantiateRecord(owner) {\n    this.record = await owner.recordDuplicator.duplicate(this.collection, this.recordToDuplicate);\n  }\n\n  static async instantiateForm(owner, args) {\n    assert('owner argument is required', !!owner);\n    assert('recordDuplicator not existing on owner', !!owner.recordDuplicator);\n    assert('lianaFeatures not existing on owner', !!owner.lianaFeatures);\n\n    const creationForm = new this(args);\n\n    await creationForm.instantiateRecord(owner);\n    return creationForm;\n  }\n}\n","import type Model from '@ember-data/model';\nimport type Collection from 'client/data/models/collection';\n\nimport { assert } from '@ember/debug';\n\nimport CreationForm, { type FormOwner } from 'client/utils/form/creation-form';\n\nexport default class EditionForm extends CreationForm {\n  constructor({ collection, record }: { collection: Collection; record: Model }) {\n    super({ collection });\n\n    this.record = record;\n  }\n\n  static async instantiateForm(owner: FormOwner, args: { collection: Collection; record: Model }) {\n    assert('owner argument is required', !!owner);\n\n    return new this(args);\n  }\n}\n","export default function formatNumber(number, options = {}) {\n  if (!number && number !== 0) {\n    return 0;\n  }\n  if (Number.isNaN(Number.parseFloat(number)) || !Number.isFinite(number)) return number;\n  const { locale, currency, currencyDisplay } = options;\n  delete options.locale;\n  if (currency) {\n    return Number(number).toLocaleString(locale, {\n      currency,\n      currencyDisplay: currencyDisplay || 'symbol',\n      style: 'currency',\n    });\n  }\n  return Number(number).toLocaleString(locale, options);\n}\n","export default function getLocale() {\n  if (navigator.languages?.length) return navigator.languages[0];\n  return navigator.language;\n}\n","import { denamespace } from 'client/utils/string-utils';\n\nfunction removeDashesAndUnderscores(source: string) {\n  return source.replaceAll(/[_-]/g, '');\n}\n\nexport default function getPolymorphicDataType(\n  polymorphicReferencedModels: string[],\n  recordModelName: string,\n) {\n  const modelName = denamespace(recordModelName, '-').toLocaleLowerCase();\n\n  return polymorphicReferencedModels.find(\n    (referenceModelName) =>\n      removeDashesAndUnderscores(referenceModelName.toLocaleLowerCase())\n      === removeDashesAndUnderscores(modelName),\n  );\n}\n","import window from 'ember-window-mock';\n\nexport default () => {\n  let text: string;\n  const activeElement = document.activeElement as HTMLInputElement | HTMLTextAreaElement;\n  const activeElementTagName = activeElement ? activeElement.tagName.toLowerCase() : null;\n  if (\n    activeElementTagName === 'textarea'\n    || (activeElementTagName === 'input'\n      && /^(?:text|search|password|tel|url)$/i.test(activeElement.type)\n      && typeof activeElement.selectionStart === 'number')\n  ) {\n    text = (activeElement as HTMLInputElement).value.slice(\n      activeElement.selectionStart,\n      activeElement.selectionEnd,\n    );\n  } else if (window.getSelection) {\n    text = (window.getSelection() || document.getSelection()).toString();\n  }\n  return text;\n};\n","import { assert } from '@ember/debug';\n\nimport lastVisitedTeamStorageKey from 'client/utils/last-visited-team-storage-key';\n\nexport default async function getTeamNameToRedirectTo({ currentUser, localStorage }, projectName) {\n  assert('The currentUser service is required', !!currentUser);\n  assert('The localStorage service is required', !!localStorage);\n  assert('The projectName parameter is required', !!projectName);\n\n  const currentUserTeams = await currentUser.model.teams;\n  const lastVisitedTeamName = localStorage.getItem(lastVisitedTeamStorageKey(projectName));\n\n  return lastVisitedTeamName && currentUserTeams.find((team) => team.name === lastVisitedTeamName)\n    ? lastVisitedTeamName\n    : currentUserTeams.sortBy('name').firstObject.name;\n}\n","import safeStringify from 'client/utils/safe-stringify';\n\nexport function hashFromString(stringToHash) {\n  let hash;\n  for (let i = 0; i < stringToHash.length; i += 1) {\n    // eslint-disable-next-line no-bitwise\n    hash = (Math.imul(31, hash) + stringToHash.charCodeAt(i)) | 0;\n  }\n\n  return hash;\n}\n\nexport function hashFromObject(objectToHash) {\n  const stringToHash = safeStringify(objectToHash);\n  return hashFromString(stringToHash);\n}\n","import { getOwner } from '@ember/application';\nimport { isObject } from 'lodash';\n\nexport default function hrefTo(context, targetRouteName, ...rest) {\n  const router = getOwner(context).lookup('service:router');\n  const lastParam = rest[rest.length - 1];\n  let queryParams = {};\n\n  if (lastParam && isObject(lastParam)) {\n    queryParams = rest.pop();\n  }\n\n  const args = [targetRouteName];\n  args.push(...rest);\n  args.push({ queryParams });\n\n  return router.urlFor(...args);\n}\n","import window from 'ember-window-mock';\n\nexport function isKey(expectedKey, { key }) {\n  return key?.toLowerCase() === expectedKey?.toLowerCase();\n}\n\nexport const KEY = {\n  BACKSPACE: 'Backspace',\n  TAB: 'Tab',\n  ENTER: 'Enter',\n  SHIFT: 'Shift',\n  CTRL: 'Control',\n  ALT: 'Alt',\n  PAUSE: 'Pause',\n  CAPS_LOCK: 'CapsLock',\n  ESCAPE: 'Escape',\n  SPACE: ' ',\n  PAGE_UP: 'PageUp',\n  PAGE_DOWN: 'PageDown',\n  END: 'End',\n  HOME: 'Home',\n  LEFT_ARROW: 'ArrowLeft',\n  UP_ARROW: 'ArrowUp',\n  RIGHT_ARROW: 'ArrowRight',\n  DOWN_ARROW: 'ArrowDown',\n  INSERT: 'Insert',\n  DELETE: 'Delete',\n  KEY_0: '0',\n  KEY_1: '1',\n  KEY_2: '2',\n  KEY_3: '3',\n  KEY_4: '4',\n  KEY_5: '5',\n  KEY_6: '6',\n  KEY_7: '7',\n  KEY_8: '8',\n  KEY_9: '9',\n  KEY_A: 'a',\n  KEY_B: 'b',\n  KEY_C: 'c',\n  KEY_D: 'd',\n  KEY_E: 'e',\n  KEY_F: 'f',\n  KEY_G: 'g',\n  KEY_H: 'h',\n  KEY_I: 'i',\n  KEY_J: 'j',\n  KEY_K: 'k',\n  KEY_L: 'l',\n  KEY_M: 'm',\n  KEY_N: 'n',\n  KEY_O: 'o',\n  KEY_P: 'p',\n  KEY_Q: 'q',\n  KEY_R: 'r',\n  KEY_S: 's',\n  KEY_T: 't',\n  KEY_U: 'u',\n  KEY_V: 'v',\n  KEY_W: 'w',\n  KEY_X: 'x',\n  KEY_Y: 'y',\n  KEY_Z: 'z',\n  LEFT_META: 'MetaLeft',\n  RIGHT_META: 'MetaRight',\n  SELECT: 'ContextMenu',\n  NUMPAD_0: '0',\n  NUMPAD_1: '1',\n  NUMPAD_2: '2',\n  NUMPAD_3: '3',\n  NUMPAD_4: '4',\n  NUMPAD_5: '5',\n  NUMPAD_6: '6',\n  NUMPAD_7: '7',\n  NUMPAD_8: '8',\n  NUMPAD_9: '9',\n  MULTIPLY: '*',\n  ADD: '+',\n  SUBTRACT: '-',\n  DECIMAL: '.',\n  DIVIDE: '/',\n  F1: 'F1',\n  F2: 'F2',\n  F3: 'F3',\n  F4: 'F4',\n  F5: 'F5',\n  F6: 'F6',\n  F7: 'F7',\n  F8: 'F8',\n  F9: 'F9',\n  F10: 'F10',\n  F11: 'F11',\n  F12: 'F12',\n  NUM_LOCK: 'NumLock',\n  SCROLL_LOCK: 'ScrollLock',\n  SEMICOLON: ';',\n  EQUALS: '=',\n  COMMA: ',',\n  DASH: '-',\n  PERIOD: '.',\n  FORWARD_SLASH: '/',\n  GRAVE_ACCENT: '`',\n  OPEN_BRACKET: '[',\n  BACK_SLASH: '\\\\',\n  CLOSE_BRACKET: ']',\n  SINGLE_QUOTE: \"'\",\n};\n\nexport function isMac() {\n  return window.navigator.platform.includes('Mac');\n}\n\nexport function isCommandPressed(event) {\n  return isMac() ? event.metaKey : event.ctrlKey;\n}\n\nexport function isCommandPlusKeyPressed(event, key) {\n  return isCommandPressed(event) && isKey(key, event);\n}\n\nexport function isCommandShiftPlusKeyPressed(event, key) {\n  return isCommandPlusKeyPressed(event, key) && event.shiftKey;\n}\n\nexport function isCtrlPlusKeyPressed(event, key) {\n  return event.ctrlKey && isKey(key, event);\n}\n","import type LocalStorageService from 'client/legacy/services/local-storage';\n\nimport { assert } from '@ember/debug';\n\nexport function getLastSideMenuWidthKey(\n  projectName: string,\n  renderingId: string,\n  sideMenuItem: SideMenuItemsEnum,\n) {\n  return `last_side_menu_width_${projectName}_${renderingId}_${sideMenuItem}`;\n}\n\nexport enum SideMenuItemsEnum {\n  Collection = 'COLLECTION',\n  Workspace = 'WORKSPACE',\n  Dashboard = 'DASHBOARD',\n  Collaboration = 'COLLABORATION',\n  Reports = 'REPORTS',\n}\n\nexport function lastSideMenuWidth(\n  { localStorage }: { localStorage: LocalStorageService },\n  projectName: string,\n  renderingId: string,\n  menuItemName: SideMenuItemsEnum,\n) {\n  assert('The localStorage service is required', !!localStorage);\n  assert('The projectName parameter is required', !!projectName);\n  assert('The renderingId parameter is required', !!renderingId);\n  assert('The sideMenuItem parameter is required', !!menuItemName);\n\n  const lastWidth = localStorage.getItem(\n    getLastSideMenuWidthKey(projectName, renderingId, menuItemName),\n  );\n  return lastWidth ? Number(lastWidth) : null;\n}\n\nexport function setLastSideMenuWidth(\n  { localStorage }: { localStorage: LocalStorageService },\n  projectName: string,\n  renderingId: string,\n  menuItemName: SideMenuItemsEnum,\n  width: number,\n) {\n  assert('The localStorage service is required', !!localStorage);\n  assert('The projectName parameter is required', !!projectName);\n  assert('The renderingId parameter is required', !!renderingId);\n  assert(\n    `The sideMenuItem parameter is required and should be one of ${Object.values(\n      SideMenuItemsEnum,\n    ).join(',')}`,\n    !!menuItemName && Object.values(SideMenuItemsEnum).includes(menuItemName),\n  );\n  assert('The width parameter is required', !!width);\n\n  localStorage.setItem(\n    getLastSideMenuWidthKey(projectName, renderingId, menuItemName),\n    String(width),\n  );\n}\n","export default function (projectName) {\n  return `last_visited_team_name_on_project_${projectName}`;\n}\n","import type {\n  ERROR_ACCESS_RESOURCE_FORBIDDEN,\n  ERROR_NOT_FOUND,\n  ERROR_PAGE_TOO_FAR,\n} from 'client/config/errors';\nimport type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type FilterModel from 'client/data/models/filter';\nimport type ConditionFragment from 'client/data/models/fragment-condition';\nimport type FilterFragment from 'client/data/models/fragment-filter';\nimport type ProjectModel from 'client/data/models/project';\nimport type SegmentModel from 'client/data/models/segment';\nimport type ViewListModel from 'client/data/models/view-list';\nimport type { ClientRecordAgentError } from 'client/features/client-record/errors';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type NestedCollection from 'client/utils/nested/collection';\nimport type NestedField from 'client/utils/nested/field';\n\nimport { tracked } from '@glimmer/tracking';\n\nimport { SortingOrderEnum } from 'client/data/models/collection';\nimport { getQueryFilter } from 'client/data/models/filter';\nimport { getQueryFields, getQueryPagination } from 'client/utils/query-utils';\n\nexport type SortingParameter = { fieldName: string; order: SortingOrderEnum };\n\nexport type RecordsContextConstructorProperties<TQueryContext = RecordCallingContext> = {\n  areAllRecordsSelected?: boolean;\n  collection: CollectionModel | NestedCollection;\n  columns?: RecordsStateColumn[];\n  currentPage?: number;\n  error?: RecordsContextError;\n  excludedRecordIds?: string[];\n  filter?: FilterFragment | FilterModel;\n  isGenericFiltersAvailable?: boolean;\n  isSearchExtended?: boolean;\n  nonEditableFilter?: FilterFragment | FilterModel;\n  records?: ClientRecordModel[];\n  relationshipParameters?: object;\n  context?: TQueryContext;\n  search?: string;\n  segment?: SegmentModel;\n  selectedRecords?: ClientRecordModel[];\n  shouldApplyScopes?: boolean;\n  startingAfter?: string | null;\n  endingBefore?: string | null;\n  viewList?: ViewListModel | NestedCollection['mainView'];\n  listComponentName?: string;\n  isKeepingSelectedRecordsOnRefresh?: boolean;\n  project?: ProjectModel;\n  recordsPerPage?: number;\n  sortingParameters?: SortingParameter[];\n};\n\nexport type QueryFilter = {\n  aggregator: 'and' | 'or';\n  conditions: Array<QueryFilter | QueryCondition>;\n};\n\nexport type QueryCondition = {\n  field: string;\n  operator: string;\n  value: unknown;\n};\n\nexport type RecordCallingContext = {\n  relationship: string;\n  field: string;\n  collection: string;\n  recordId: string | number | null;\n};\n\nexport type ErrorPageTooFar = {\n  type: typeof ERROR_PAGE_TOO_FAR;\n  options: { currentPage: number; onClick: () => Promise<void> };\n};\ntype ErrorAccessRessourceForbidden = {\n  type: typeof ERROR_ACCESS_RESOURCE_FORBIDDEN;\n  options: { description: string };\n};\ntype ErrorNotFound = { type: typeof ERROR_NOT_FOUND; options: { target: string } };\n\nexport type RecordsContextQuery = ReturnType<RecordsContext['getQuery']>;\nexport type SelectRecordsContext = ReturnType<RecordsContext['getSelectedQuery']>;\n\nexport type RecordsContextError =\n  | ErrorPageTooFar\n  | ErrorAccessRessourceForbidden\n  | ErrorNotFound\n  | ClientRecordAgentError;\n\nexport type RecordsStateColumn = { field: FieldModel | NestedField };\n\n// This handle all the parameters of the request sent to the agent\nexport default class RecordsContext<TQueryContext = RecordCallingContext> {\n  @tracked collection: CollectionModel | NestedCollection;\n  @tracked records: ClientRecordModel[];\n  @tracked recordsCount: number;\n  @tracked selectedRecords: ClientRecordModel[] = [];\n  @tracked excludedRecordIds: string[] = [];\n\n  @tracked areAllRecordsSelected = false;\n  @tracked columnsToFetch: RecordsStateColumn[] | null;\n  @tracked currentPage = 1;\n  @tracked error: RecordsContextError = null;\n  @tracked filter: FilterFragment | FilterModel = null;\n  @tracked nonEditableFilter: FilterFragment | FilterModel = null;\n  @tracked isLoading = true;\n  @tracked isCountDeactivated = false;\n  @tracked isCountLoading = false;\n  @tracked isGenericFiltersAvailable = false;\n  @tracked isSearchExtended = false;\n  @tracked search: string | null;\n  @tracked segment: SegmentModel;\n  @tracked shouldApplyScopes: boolean;\n  @tracked startingAfter: string | null;\n  @tracked endingBefore: string | null;\n  @tracked relationshipParameters: object | null;\n  @tracked context: TQueryContext | null;\n  @tracked viewList: ViewListModel | NestedCollection['mainView'];\n  @tracked listComponentName: string;\n  @tracked project: ProjectModel;\n  @tracked recordsPerPage?: number;\n  @tracked sortingParameters?: SortingParameter[];\n\n  @tracked isKeepingSelectedRecordsOnRefresh = false;\n  @tracked shouldDisablePerformanceTracking = false;\n\n  @tracked viewListConditions: ConditionFragment[] = [];\n\n  constructor({\n    areAllRecordsSelected,\n    collection,\n    columns,\n    currentPage,\n    error,\n    excludedRecordIds,\n    filter,\n    isGenericFiltersAvailable,\n    isSearchExtended,\n    nonEditableFilter,\n    records,\n    relationshipParameters,\n    context,\n    search,\n    segment,\n    selectedRecords,\n    shouldApplyScopes,\n    startingAfter,\n    endingBefore,\n    viewList,\n    listComponentName,\n    isKeepingSelectedRecordsOnRefresh,\n    project,\n    recordsPerPage,\n    sortingParameters,\n  }: RecordsContextConstructorProperties<TQueryContext>) {\n    this.areAllRecordsSelected = areAllRecordsSelected;\n    this.collection = collection;\n    this.columnsToFetch = columns || null;\n    this.currentPage = currentPage || 1;\n    this.error = error || null;\n    this.excludedRecordIds = excludedRecordIds || [];\n    this.isLoading = !error;\n    this.filter = filter;\n    this.nonEditableFilter = nonEditableFilter;\n    this.shouldApplyScopes = shouldApplyScopes;\n    this.isGenericFiltersAvailable = isGenericFiltersAvailable;\n    this.isSearchExtended = isSearchExtended;\n    this.records = records;\n    this.relationshipParameters = relationshipParameters;\n    this.context = context;\n    this.search = search;\n    this.segment = segment;\n    this.selectedRecords = selectedRecords || [];\n    this.startingAfter = startingAfter;\n    this.endingBefore = endingBefore;\n    this.viewList = viewList;\n    this.listComponentName = listComponentName;\n    this.isKeepingSelectedRecordsOnRefresh = isKeepingSelectedRecordsOnRefresh || false;\n    this.project = project;\n    this.recordsPerPage = recordsPerPage;\n    this.sortingParameters = sortingParameters;\n  }\n\n  get displayName() {\n    return this.collection.singularizedDisplayName;\n  }\n\n  get displayNamePlural() {\n    return this.collection.pluralizedDisplayName;\n  }\n\n  get recordsPerPageOrDefault() {\n    return this.recordsPerPage || this.viewList?.recordsPerPage || 10;\n  }\n\n  get isCurrentPageTooFar() {\n    return !this.error && !this.records?.length && this.currentPage > 1 && this.recordsCount !== 0;\n  }\n\n  private getSortQueryForField(fieldName: string, field: FieldModel, order: SortingOrderEnum) {\n    const sortOrder = order === SortingOrderEnum.Descending ? '-' : '';\n    let sortQuery = fieldName ? `${sortOrder}${fieldName}` : null;\n    if (field?.isBelongsTo) {\n      sortQuery += `.${field?.referenceSortingField}`;\n    }\n\n    return sortQuery;\n  }\n\n  get firstSortingParameter() {\n    return this.sortingParameters?.firstObject || null;\n  }\n\n  private getSortFieldByFieldName(fieldName: string) {\n    return (this.collection as CollectionModel).fields.findBy('fieldName', fieldName);\n  }\n\n  get sortQuery() {\n    return this.sortingParameters\n      ?.map(({ fieldName, order }) =>\n        this.getSortQueryForField(fieldName, this.getSortFieldByFieldName(fieldName), order),\n      )\n      .join(',');\n  }\n\n  get sortField(): FieldModel | NestedField | null {\n    return this.firstSortingParameter\n      ? this.getSortFieldByFieldName(this.firstSortingParameter?.fieldName)\n      : null;\n  }\n\n  get sortingOrder() {\n    return this.firstSortingParameter?.order;\n  }\n\n  get numberOfPages() {\n    return Math.ceil(this.recordsCount / this.recordsPerPageOrDefault);\n  }\n\n  get isCurrentPageSelected() {\n    if (!this.records || !this.records.length) {\n      return false;\n    }\n    if (\n      this.areAllRecordsSelected\n      && this.records.every((record) => !this.excludedRecordIds.includes(record.id))\n    ) {\n      return true;\n    }\n    if (\n      this.areAllRecordsSelected\n      && this.records.every((record) => !this.selectedRecords.includes(record))\n    ) {\n      return null;\n    }\n    return (\n      this.records.every((record) => this.selectedRecords.includes(record))\n      || (this.records.every((record) => !this.selectedRecords.includes(record)) ? false : null)\n    );\n  }\n\n  get columns(): RecordsStateColumn[] {\n    if (this.columnsToFetch?.length) {\n      return this.columnsToFetch;\n    }\n\n    if (this.viewList?.isSmart) {\n      return this.collection.columnsOrdered;\n    }\n\n    if (this.segment?.hasColumnsConfiguration) {\n      return this.segment.columnsVisibleOrdered;\n    }\n\n    return this.collection.columnsVisibleOrdered;\n  }\n\n  get segmentConditions() {\n    return this.segment?.filter?.conditions || [];\n  }\n\n  get scopeConditions() {\n    return (\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n      (this.shouldApplyScopes // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n        && (this.collection as CollectionModel).scope?.filter?.conditions)\n      || []\n    );\n  }\n\n  get genericFilter() {\n    const conditions: Array<QueryCondition | QueryFilter> = [];\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n    const segmentFilters = this.segment?.filter?.queryFilter as QueryFilter;\n    const manualFilters = this.filter?.queryFilter as QueryFilter;\n    const nonEditableFilters = this.nonEditableFilter?.queryFilter as QueryFilter;\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n    const scopeFilters = (this.collection as CollectionModel).scope?.filter\n      ?.queryFilter as QueryFilter;\n    const viewListFilters = getQueryFilter('and', this.viewListConditions) as QueryFilter;\n\n    if (segmentFilters) {\n      conditions.pushObject(segmentFilters);\n    }\n    if (manualFilters) {\n      conditions.pushObject(manualFilters);\n    }\n    if (nonEditableFilters) {\n      conditions.pushObject(nonEditableFilters);\n    }\n    if (viewListFilters) {\n      conditions.pushObject(viewListFilters);\n    }\n\n    // applicationWideScopes feature does not require the scopes\n    // to be sent through filters anymore\n    if (scopeFilters && this.shouldApplyScopes) {\n      conditions.pushObject(scopeFilters);\n    }\n\n    if (conditions.length) {\n      const filters =\n        conditions.length > 1\n          ? {\n              aggregator: 'and',\n              conditions,\n            }\n          : conditions.objectAt(0);\n\n      return { filters: JSON.stringify(filters) };\n    }\n\n    return {};\n  }\n\n  get oldFilter() {\n    const conditions: ConditionFragment[] = [\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call\n      ...(this.filter?.conditions?.toArray() || []),\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-call\n      ...(this.nonEditableFilter?.conditions?.toArray() || []),\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n      ...(this.segmentConditions?.toArray() || []),\n      ...(this.viewListConditions?.toArray() || []),\n    ] as ConditionFragment[];\n    if (!conditions.length) {\n      return {};\n    }\n\n    const filters: Record<string, string> = {};\n    conditions.forEach((condition) => {\n      const key = `filter[${condition.fieldString}]`;\n      const existingCondition = filters[key];\n\n      if (existingCondition) {\n        const valueString = `${existingCondition},${condition.valueString as string}`;\n        filters[key] = valueString;\n      } else {\n        filters[key] = condition.valueString as string;\n      }\n    });\n\n    // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n    const filterType = (this.segment?.filter?.type\n      || this.filter?.type) as QueryFilter['aggregator'];\n\n    return {\n      ...filters,\n      filterType,\n    };\n  }\n\n  get filterParameters() {\n    return this.isGenericFiltersAvailable ? this.genericFilter : this.oldFilter;\n  }\n\n  get segmentParameters() {\n    if (!this.segment) return {};\n\n    const parameters: {\n      segmentName: string;\n      segment?: string;\n      segmentQuery?: string;\n      connectionName?: string;\n    } = {\n      segmentName: this.segment.name,\n    };\n\n    if (!this.segment.isManual) parameters.segment = this.segment.name;\n\n    if (this.segment.isManual && this.segment.query) {\n      // NOTICE: Deactivate the Segment Live Query feature if the project has not the premium\n      //         feature active anymore\n      if (this.project?.premiumLiveQuery) {\n        parameters.segmentQuery = this.segment.query;\n        parameters.connectionName = this.segment.connectionName;\n      }\n    }\n\n    return parameters;\n  }\n\n  // NOTICE: Count the number of selected records based on :\n  //         - if no records or no selected records, return 0\n  //         - if all pages are selected and current page contains selected element,\n  //           return all pages records count minus current page unselected records\n  //         - else return the number of selected records on current page\n  get selectedRecordsCount() {\n    if (!this.records?.length) {\n      return 0;\n    }\n    if (this.areAllRecordsSelected) {\n      return this.recordsCount - this.excludedRecordIds.length;\n    }\n    return this.selectedRecords?.length;\n  }\n\n  setParameters(parameters: Partial<RecordsContextConstructorProperties<TQueryContext>>) {\n    if ('startingAfter' in parameters || 'endingBefore' in parameters) {\n      this.startingAfter = undefined;\n      this.endingBefore = undefined;\n    }\n\n    Object.keys(parameters).forEach((parameterName) => {\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n      this[parameterName] = parameters[parameterName];\n    });\n  }\n\n  getSelectedRecordsIds() {\n    return this.selectedRecords.map((record) => 'id' in record && record.id);\n  }\n\n  getQuery() {\n    const parameters: {\n      starting_after?: string | null;\n      ending_before?: string | null;\n      segment?: string;\n      segmentName?: string;\n      segmentQuery?: string;\n      'page[number]': number;\n      'page[size]': number;\n      sort?: string;\n      search?: string;\n      searchExtended?: 1 | 0;\n      context?: TQueryContext;\n      isSearchExtended?: boolean;\n      filters?: string;\n      filterType?: string;\n    } = {\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n      ...(getQueryFields(this.collection, this.columns) as Record<string, string>),\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n      ...(getQueryPagination(this.currentPage, this.recordsPerPageOrDefault) as {\n        'page[number]': number;\n        'page[size]': number;\n      }),\n      ...this.filterParameters,\n      ...this.segmentParameters,\n      starting_after: this.startingAfter,\n      ending_before: this.endingBefore,\n    };\n\n    if (this.sortQuery) {\n      parameters.sort = this.sortQuery;\n    }\n\n    if (this.search) {\n      parameters.search = this.search;\n      // TODO: To remove once all agents support the isSearchExtended\n      parameters.searchExtended = this.isSearchExtended ? 1 : 0;\n      parameters.isSearchExtended = this.isSearchExtended;\n    }\n\n    if (this.context) {\n      parameters.context = this.context;\n    }\n\n    return parameters;\n  }\n\n  getSelectedQuery() {\n    const query = this.getQuery();\n\n    return {\n      query,\n      idsIncluded: this.getSelectedRecordsIds(),\n      idsExcluded: this.excludedRecordIds,\n      areAllRecordsSelected: this.areAllRecordsSelected,\n      collectionName: this.collection?.name,\n      selectedRecordsCount: this.selectedRecordsCount,\n      ...this.relationshipParameters,\n    };\n  }\n\n  resetRecords() {\n    this.records = [];\n    this.recordsCount = null;\n    this.selectedRecords = [];\n    this.excludedRecordIds = [];\n    this.isLoading = true;\n  }\n\n  resetSelectedRecords() {\n    this.selectedRecords = [];\n    this.excludedRecordIds = [];\n  }\n\n  selectRecord(record: ClientRecordModel) {\n    this.selectedRecords.pushObject(record);\n    this.excludedRecordIds.removeObject(record.id);\n  }\n\n  excludeRecord(record: ClientRecordModel) {\n    this.selectedRecords.removeObject(record);\n    this.excludedRecordIds.pushObject(record.id);\n  }\n\n  isRecordSelected(record: ClientRecordModel) {\n    return (\n      this.selectedRecords.includes(record)\n      || (this.areAllRecordsSelected && !this.isRecordExcluded(record))\n    );\n  }\n\n  isRecordExcluded(record: ClientRecordModel) {\n    return this.excludedRecordIds.includes(record?.id);\n  }\n}\n","import type FieldModel from 'client/data/models/field';\nimport type HasManyQueryModel from 'client/data/models/has-many-query-model';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { RecordsContextConstructorProperties } from 'client/utils/liana-records/records-context';\nimport type NestedField from 'client/utils/nested/field';\n\nimport { tracked } from '@glimmer/tracking';\nimport { singularize } from 'ember-inflector';\n\nimport RecordsContext from 'client/utils/liana-records/records-context';\n\nexport default class RelatedRecordsContext extends RecordsContext {\n  @tracked field: FieldModel | NestedField;\n  @tracked parentRecord: ClientRecordModel | HasManyQueryModel;\n  @tracked isCountEnabled = true;\n\n  constructor({\n    field,\n    parentRecord,\n    isCountEnabled,\n    ...args\n  }: {\n    field: FieldModel | NestedField;\n    parentRecord: ClientRecordModel | HasManyQueryModel;\n    isCountEnabled?: boolean;\n  } & RecordsContextConstructorProperties) {\n    super({ ...args });\n\n    this.field = field;\n    this.parentRecord = parentRecord;\n    this.isCountEnabled = isCountEnabled ?? true;\n  }\n\n  get displayName() {\n    return singularize(this.field.displayName);\n  }\n\n  get displayNamePlural() {\n    return this.field.displayName;\n  }\n}\n","import config from 'client/config/environment';\n\nexport function getLiveDemoUrls(renderingUrls) {\n  if (!renderingUrls) return {};\n\n  return renderingUrls.split(',').reduce((map, url) => {\n    const projectName = (/^\\/([^/]+)\\//g.exec(url) || [])[1];\n    map[projectName] = url;\n    return map;\n  }, {});\n}\n\nexport const liveDemoRenderingUrls = getLiveDemoUrls(config.APP.liveDemoRenderingUrls);\n\nexport function refreshLiveDemoUrl(renderingUrls) {\n  if (liveDemoRenderingUrls && Object.keys(liveDemoRenderingUrls)) {\n    Object.keys(liveDemoRenderingUrls).forEach((key) => {\n      delete liveDemoRenderingUrls[key];\n    });\n  }\n\n  const liveDemoUrls = getLiveDemoUrls(renderingUrls);\n\n  if (liveDemoUrls) {\n    Object.assign(liveDemoRenderingUrls, liveDemoUrls);\n  }\n}\n\nexport function isProjectLiveDemo(projectName) {\n  return Object.keys(liveDemoRenderingUrls).includes(projectName);\n}\n\nexport function isRenderingLiveDemo(url = '') {\n  const decodedUrl = decodeURI(url);\n\n  return !!Object.values(liveDemoRenderingUrls).find((demoUrl) => decodedUrl.includes(demoUrl));\n}\n\nexport function getRenderingUrlFromProjectName(projectName) {\n  if (!liveDemoRenderingUrls || !liveDemoRenderingUrls[projectName]) return false;\n\n  return liveDemoRenderingUrls[projectName];\n}\n\nexport function getRenderingInfoFromProjectName(projectName) {\n  if (!liveDemoRenderingUrls || !liveDemoRenderingUrls[projectName]) return false;\n\n  const renderingUrl = liveDemoRenderingUrls[projectName];\n\n  return {\n    projectName: renderingUrl.split('/')[1],\n    environmentName: renderingUrl.split('/')[2],\n    teamName: renderingUrl.split('/')[3],\n  };\n}\n\nexport function getDefaultRenderingUrl() {\n  if (!liveDemoRenderingUrls) return null;\n\n  return liveDemoRenderingUrls[Object.keys(liveDemoRenderingUrls)[0]];\n}\n\nexport function detectLiveDemoUrl(projectName) {\n  return isProjectLiveDemo(projectName)\n    ? getRenderingUrlFromProjectName(projectName)\n    : getDefaultRenderingUrl();\n}\n","export default [\n  {\n    value: null,\n    name: \"Auto (based on the user's browser)\",\n  },\n  {\n    value: 'ar',\n    name: 'Arabic',\n  },\n  {\n    value: 'zh-cn',\n    name: 'Chinese (China)',\n  },\n  {\n    value: 'cs',\n    name: 'Czech',\n  },\n  {\n    value: 'en-gb',\n    name: 'English (United Kingdom)',\n  },\n  {\n    value: 'en',\n    name: 'English (United States)',\n  },\n  {\n    value: 'fr-ca',\n    name: 'French (Canada)',\n  },\n  {\n    value: 'fr',\n    name: 'French',\n  },\n  {\n    value: 'de',\n    name: 'German',\n  },\n  {\n    value: 'pt',\n    name: 'Portuguese',\n  },\n  {\n    value: 'ru',\n    name: 'Russian',\n  },\n  {\n    value: 'es',\n    name: 'Spanish',\n  },\n];\n","import type Model from '@ember-data/model';\nimport type JSONAPISerializer from '@ember-data/serializer/json-api';\nimport type StoreService from 'client/legacy/services/store';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\n// eslint-disable-next-line ember/use-ember-data-rfc-395-imports\nimport type DS from 'ember-data';\n\nimport { isArray } from '@ember/array';\nimport { recordIdentifierFor } from '@ember-data/store';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport AbstractNestedDocumentModel from 'client/data/models/abstract-nested-document-model';\n\n// This function is using private API ! To replace by public one once it is possible\nexport function commitRecord(model: Model) {\n  const store = model.store as StoreService;\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-ignore\n\n  const identifier = recordIdentifierFor(model);\n  // eslint-disable-next-line sonarjs/deprecation\n  const snapshot = store._instanceCache.createSnapshot(identifier) as DS.Snapshot;\n  const { modelName } = model.constructor as typeof Model;\n  const serializer = store.serializerFor(\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    modelName,\n  ) as JSONAPISerializer;\n  // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n  // @ts-ignore\n  const result = serializer.serialize(snapshot, { includeId: true }) as\n    | {\n        data: {\n          id: string;\n          type: string;\n          attributes: Record<string, unknown>;\n          relationships: unknown;\n        };\n      }\n    | Record<string, unknown>;\n\n  const data =\n    'data' in result\n    && typeof result.data === 'object'\n    && 'attributes' in result.data\n    && result.data?.attributes\n      ? result.data\n      : result;\n  if ('relationships' in data) {\n    delete data.relationships;\n  }\n  // eslint-disable-next-line sonarjs/deprecation\n  const recordData = store._instanceCache.getRecordData(identifier);\n  recordData.willCommit();\n  recordData.didCommit(data);\n}\n\nfunction serializeProperty(property: unknown): unknown {\n  if (property instanceof AbstractNestedDocumentModel || property instanceof Fragment) {\n    const hash: Record<string, unknown> = {};\n    (\n      property.constructor as unknown as { eachAttribute(callback: (key: string) => void): void }\n    ).eachAttribute((key: string) => {\n      hash[key] = serializeProperty(property[key]);\n    });\n    if (property instanceof AbstractNestedDocumentModel) {\n      hash.id = property.id;\n    }\n    return hash;\n  }\n  if (isArray(property)) {\n    return (property as unknown[]).map(serializeProperty);\n  }\n  return property;\n}\n\nexport function markPropertiesAsNotDirty<M extends Model>(\n  model: M,\n  propertiesToMarkAsNotDirty: string[] = Object.keys(model.changedAttributes()),\n) {\n  const attributes: Record<string, unknown> = {};\n  propertiesToMarkAsNotDirty.forEach((property) => {\n    attributes[property] = serializeProperty(model[property]);\n  });\n\n  if ('type' in model && !('type' in attributes)) {\n    attributes.type = (model as { type: string }).type;\n  }\n\n  model.store.push({\n    shouldIgnoreDefaultValues: true,\n    data: {\n      type: (model.constructor as unknown as { modelName: string }).modelName,\n      id: model.id,\n      attributes,\n    },\n  });\n}\n\nexport function getCollectionFromRecord(record: ClientRecordModel) {\n  if (!record.store) {\n    console.debug('getCollectionFromRecord: Record has no store', record);\n    return null;\n  }\n\n  return record.store\n    .peekAll('collection')\n    .findBy('emberModelName', (<typeof ClientRecordModel>record.constructor).modelName as string);\n}\n\nexport default markPropertiesAsNotDirty;\n","import type { UnwrapComputedPropertyGetter } from '@ember/object/-private/types';\nimport type Environment from 'client/data/models/environment';\nimport type FieldEnvironmentModel from 'client/data/models/field-environment';\nimport type FieldEnvironmentNested from 'client/utils/nested/field-environment-nested';\nimport type { FilterableCollection } from 'client/utils/widgets';\n\nimport { get } from '@ember/object';\nimport { dasherize } from '@ember/string';\nimport { tracked } from '@glimmer/tracking';\nimport { pluralize, singularize } from 'ember-inflector';\n\nimport { namespace } from 'client/utils/string-utils';\n\nexport interface Column {\n  field: FieldEnvironmentNested;\n  isVisible: boolean;\n  position: number;\n}\n\nexport default class CollectionEnvironmentNested implements FilterableCollection {\n  @tracked parentField: FieldEnvironmentNested | FieldEnvironmentModel;\n  @tracked fields: FieldEnvironmentNested[];\n  isEmbedded = true;\n  sortingByDisplayName = ['displayName'];\n  onlyForRelationships = false;\n  exportEnabled = true;\n  searchOnEditEnabled = false;\n  browseEnabled = false;\n  readEnabled = true;\n  public readonly environment: Environment;\n\n  constructor({\n    parentField,\n    fields,\n    environment,\n  }: {\n    parentField: FieldEnvironmentNested | FieldEnvironmentModel;\n    fields: FieldEnvironmentNested[];\n    environment: Environment;\n  }) {\n    this.parentField = parentField;\n    this.fields = fields;\n    this.environment = environment;\n  }\n\n  mainView = {\n    registryName: 'data-display/table-view',\n    isSmart: false,\n  };\n\n  get name(): string {\n    return this.parentField.embeddedCollectionName;\n  }\n\n  get displayName(): string {\n    return this.parentField.displayName;\n  }\n\n  get editEnabled(): boolean {\n    return !this.parentField.isReadOnly;\n  }\n\n  get addEnabled(): boolean {\n    return !this.parentField.isReadOnly;\n  }\n\n  get deleteEnabled(): boolean {\n    return !this.parentField.isReadOnly;\n  }\n\n  get columnsVisible(): Column[] {\n    return this.columns;\n  }\n\n  get columnsOrdered(): Column[] {\n    return this.columns;\n  }\n\n  get columnsVisibleOrdered(): Column[] {\n    return this.columns;\n  }\n\n  get fieldsSorted(): FieldEnvironmentNested[] {\n    return this.fields.sortBy('displayName');\n  }\n\n  get pluralizedDisplayName(): string {\n    return this.displayNamePlural;\n  }\n\n  get emberModelName() {\n    return this.name ? namespace(singularize(dasherize(this.name)), '-') : null;\n  }\n\n  get collectionPermissions() {\n    const { exportEnabled, browseEnabled, readEnabled, editEnabled, addEnabled, deleteEnabled } =\n      this;\n    return {\n      exportEnabled,\n      browseEnabled,\n      readEnabled,\n      editEnabled,\n      addEnabled,\n      deleteEnabled,\n    };\n  }\n\n  get displayFieldWithNamespace() {\n    return namespace(this.fields.firstObject?.fieldName, '-');\n  }\n\n  get displayNamePlural() {\n    return pluralize(this.displayName);\n  }\n\n  get displayNamePluralLowerCase() {\n    return this.displayNamePlural.toLowerCase();\n  }\n\n  get displayNameLowerCase() {\n    return this.singularizedDisplayName.toLowerCase();\n  }\n\n  get singularizedDisplayName() {\n    return singularize(this.displayName);\n  }\n\n  get _rows(): Column[] {\n    return this.fields.map((field, position) => ({ field, isVisible: true, position }));\n  }\n\n  get _attributesEditable() {\n    return this.fields.map((field) => field.fieldName);\n  }\n\n  get filterableFields() {\n    // TODO: Remove the ts-ignore once Field and NestedField have been migrated to TS\n    // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n    // @ts-ignore\n    return this.fields.filter((field) => field.isFilterAvailableForType);\n  }\n\n  get viewCreate() {\n    return {\n      visibleRowCreates: this._rows,\n      attributesEditable: this._attributesEditable,\n    };\n  }\n\n  get viewEdit() {\n    return {\n      visiblePlainRows: this._rows,\n      visibleRowEdits: this._rows,\n    };\n  }\n\n  get columns() {\n    return this._rows;\n  }\n\n  get<K extends keyof this>(key: K): UnwrapComputedPropertyGetter<this[K]> {\n    return get(this, key);\n  }\n}\n","import type { UnwrapComputedPropertyGetter } from '@ember/object/-private/types';\nimport type Collection from 'client/data/models/collection';\nimport type Field from 'client/data/models/field';\nimport type Rendering from 'client/data/models/rendering';\nimport type NestedField from 'client/utils/nested/field';\n\nimport { get } from '@ember/object';\nimport { alias, not, readOnly, sort } from '@ember/object/computed';\nimport { dasherize } from '@ember/string';\nimport { tracked } from '@glimmer/tracking';\nimport { pluralize, singularize } from 'ember-inflector';\n\nimport { namespace } from 'client/utils/string-utils';\n\nexport interface Column {\n  field: Field;\n  isVisible: boolean;\n  position: number;\n}\n\nexport default class NestedCollection {\n  @tracked public parentField: Field | NestedField;\n  @tracked public fields: NestedField[];\n  public isEmbedded = true;\n  public onlyForRelationships = false;\n  private sortingByDisplayName = ['displayName'];\n\n  constructor({\n    parentField,\n    fields,\n  }: {\n    parentField: Field | NestedField;\n    fields: NestedField[];\n  }) {\n    this.parentField = parentField;\n    this.fields = fields;\n  }\n\n  public mainView: {\n    registryName?: string;\n    isSmart?: boolean;\n    recordsPerPage: number;\n  } = {\n    registryName: 'data-display/table-view',\n    isSmart: false,\n    recordsPerPage: 10,\n  };\n\n  public get viewLists() {\n    return [this.mainView];\n  }\n\n  @readOnly('parentField.embeddedCollectionName') declare name: string;\n  @readOnly('parentField.displayName') declare displayName: string;\n\n  public exportEnabled = false;\n  public searchOnEditEnabled = false;\n  public browseEnabled = true;\n  public readEnabled = true;\n  @not('parentField.isReadOnly') public declare editEnabled: boolean;\n  @not('parentField.isReadOnly') public declare addEnabled: boolean;\n  @not('parentField.isReadOnly') public declare deleteEnabled: boolean;\n\n  @alias('columns') public declare columnsVisible: Column[];\n  @alias('columns') public declare columnsOrdered: Column[];\n  @alias('columns') public declare columnsVisibleOrdered: Column[];\n\n  @sort('fields', 'sortingByDisplayName') public declare fieldsSorted: Field[];\n\n  @alias('displayNamePlural') public declare pluralizedDisplayName: string;\n\n  public get emberModelName() {\n    return this.name ? namespace(singularize(dasherize(this.name)), '-') : null;\n  }\n\n  public get collectionPermissions() {\n    const { exportEnabled, browseEnabled, readEnabled, editEnabled, addEnabled, deleteEnabled } =\n      this;\n    return {\n      exportEnabled,\n      browseEnabled,\n      readEnabled,\n      editEnabled,\n      addEnabled,\n      deleteEnabled,\n    };\n  }\n\n  public get displayFieldWithNamespace() {\n    return namespace(this.fields.firstObject?.fieldName, '-');\n  }\n\n  public get displayNamePlural() {\n    return pluralize(this.displayName);\n  }\n\n  public get displayNamePluralLowerCase() {\n    return this.displayNamePlural.toLowerCase();\n  }\n\n  public get displayNameLowerCase() {\n    return this.singularizedDisplayName.toLowerCase();\n  }\n\n  public get singularizedDisplayName() {\n    return singularize(this.displayName);\n  }\n\n  public get isFilterable() {\n    return false;\n  }\n\n  private get _rows() {\n    return this.fields.map((field, position) => ({ field, isVisible: true, position }));\n  }\n\n  private get _attributesEditable() {\n    return this.fields.map((field) => field.fieldName);\n  }\n\n  public get filterableFields() {\n    return this.fields.filter((field) => field.isFilterAvailableForType);\n  }\n\n  public get filterableFieldsWithoutRelationships() {\n    return this.fields.filter((field) => field.isFilterAvailableForTypeExcludingNested);\n  }\n\n  public get sortingFields() {\n    return this.fields.filter((field) => !field.isArray);\n  }\n\n  public get plainFields() {\n    return this.fields.filter((field) => field.shouldDisplayAsRow);\n  }\n\n  public get viewCreate() {\n    return {\n      visibleRowCreates: this._rows,\n      attributesEditable: this._attributesEditable,\n    };\n  }\n\n  public get viewEdit() {\n    return {\n      visiblePlainRows: this._rows,\n      visibleRowEdits: this._rows,\n    };\n  }\n\n  public get rendering(): Rendering | undefined {\n    let parentCollection = this.parentField.collection as NestedCollection | Collection;\n\n    while (parentCollection?.isEmbedded) {\n      parentCollection =\n        parentCollection instanceof NestedCollection && parentCollection.parentField.collection;\n    }\n\n    return (parentCollection as Collection)?.rendering;\n  }\n\n  public get columns() {\n    return this._rows;\n  }\n\n  public get defaultSortingFieldName(): string {\n    return null;\n  }\n\n  public get<K extends keyof this>(key: K): UnwrapComputedPropertyGetter<this[K]> {\n    return get(this, key);\n  }\n}\n","import type Model from '@ember-data/model';\nimport type CollectionEnvironmentModel from 'client/data/models/collection-environment';\nimport type WidgetConfiguration from 'client/data/models/widget-configuration';\nimport type {\n  EmbeddedType,\n  FieldBaseInterface,\n  NestedFieldAttributes,\n} from 'client/decorators/model-field';\nimport type WidgetsManagerService from 'client/legacy/services/widgets-manager';\nimport type { FilterableField } from 'client/utils/widgets';\n\nimport { isArray } from '@ember/array';\nimport { dasherize } from '@ember/string';\nimport { singularize } from 'ember-inflector';\n\nimport config from 'client/config/environment';\nimport { SimpleTypes } from 'client/decorators/model-field';\nimport CollectionEnvironmentNested from 'client/utils/nested/collection-environment-nested';\nimport SchemaUtils from 'client/utils/schema-utils';\nimport { namespace } from 'client/utils/string-utils';\nimport { isWidgetInvalid } from 'client/utils/widgets';\n\nexport default class FieldEnvironmentNested implements FieldBaseInterface, FilterableField {\n  type: NestedFieldAttributes['type'];\n  enums?: string[] | null;\n  fieldName: string;\n  displayName: string;\n  collection: CollectionEnvironmentModel | CollectionEnvironmentNested = null;\n  relationship = null;\n  reference = null;\n  isIdentifier = false;\n  integration = null;\n  public readonly isVirtual = false;\n  widgetDisplay?: WidgetConfiguration | null = null;\n  widgetEdit?: WidgetConfiguration | null = null;\n  referenceModel = null;\n  public readonly isReadOnly = false;\n  private readonly isFeatureActiveFilterArrayIncludeAll: boolean;\n  public readonly isBelongsTo = false;\n  public readonly hasReference = false;\n  public readonly isHasMany = false;\n  public readonly isInlineBelongsToField = false;\n\n  declare widgetsManager: WidgetsManagerService;\n\n  constructor(\n    { type, field, enums }: NestedFieldAttributes,\n    {\n      features,\n      widgetsManager,\n    }: { features: { filterArrayIncludeAll: boolean }; widgetsManager: WidgetsManagerService },\n  ) {\n    this.type = type;\n    this.fieldName = field;\n    this.displayName = field;\n    this.enums = enums;\n    this.widgetsManager = widgetsManager;\n\n    this.isFeatureActiveFilterArrayIncludeAll = features.filterArrayIncludeAll;\n  }\n\n  get field(): string {\n    return this.fieldName;\n  }\n\n  get displayNameTitlize() {\n    return this.displayName.charAt(0).toUpperCase() + this.displayName.slice(1);\n  }\n\n  get attributeName(): string {\n    return SchemaUtils.getAttributeName(this);\n  }\n\n  toServerFormat() {\n    const serverFormatJson: {\n      type: NestedFieldAttributes['type'];\n      field: string;\n      enums?: string[];\n    } = {\n      type: this.type,\n      field: this.fieldName,\n    };\n\n    if (this.enums) {\n      serverFormatJson.enums = this.enums;\n    }\n\n    return serverFormatJson;\n  }\n\n  getDisplayedValue<M extends Model>(record: M): unknown {\n    const displayedValue: unknown = record?.[\n      this.attributeNameWithRelationships as keyof M\n    ] as unknown;\n    return isArray(displayedValue) && (displayedValue as unknown[]).toArray\n      ? (displayedValue as unknown[]).toArray()\n      : displayedValue;\n  }\n\n  toJSON() {\n    return {\n      type: this.type,\n      enums: this.enums,\n      fieldName: this.fieldName,\n      displayName: this.displayName,\n    };\n  }\n\n  // Copied from model-field to avoid circular dependencies\n\n  private _nestedCollection: CollectionEnvironmentNested | null = null;\n\n  get isBoolean() {\n    return this.type === 'Boolean';\n  }\n\n  get isDate() {\n    return this.type === 'Date';\n  }\n\n  get isDateonly() {\n    return this.type === 'Dateonly';\n  }\n\n  get isEnumSimple() {\n    return this.type === 'Enum';\n  }\n\n  get isFile() {\n    return this.type === 'File';\n  }\n\n  get isJson() {\n    return this.type === 'Json';\n  }\n\n  get isNumber() {\n    return this.type === 'Number';\n  }\n\n  get isPoint() {\n    return this.type === 'Point';\n  }\n\n  get isString() {\n    return this.type === 'String';\n  }\n\n  get isTime() {\n    return this.type === 'Time';\n  }\n\n  get isUuid() {\n    return this.type === 'Uuid';\n  }\n\n  get isArrayOfFiles() {\n    return this.typeStringified === '[\"File\"]';\n  }\n\n  get isArrayOfEnumByType() {\n    return this.typeStringified === '[\"Enum\"]';\n  }\n\n  get isArrayOfEnum() {\n    return this.isArrayOfEnumByType && this.isEnum;\n  }\n\n  get typeForWidgets(): string {\n    return this.isRelationship ? this.relationshipType : this.typeStringified;\n  }\n\n  get isEnum() {\n    return !!this.enums?.length;\n  }\n\n  get isArray() {\n    return SchemaUtils.isArrayType(this);\n  }\n\n  get isArrayOfIntegers() {\n    return SchemaUtils.isArrayOfIntegerType(this);\n  }\n\n  get isArrayOfStrings() {\n    return SchemaUtils.isEmbeddedHasManyString(this);\n  }\n\n  get isEmbeddedDocument() {\n    return SchemaUtils.isEmbeddedBelongsTo(this);\n  }\n\n  get isEmbeddedDocumentDeep() {\n    return SchemaUtils.isEmbeddedBelongsToDeep(this);\n  }\n\n  get isEmbeddedHasMany() {\n    return SchemaUtils.isEmbeddedHasMany(this);\n  }\n\n  get isEmbeddedHasManyDeep() {\n    return SchemaUtils.isEmbeddedHasManyDeep(this);\n  }\n\n  get isEmbeddedBelongsTo() {\n    return SchemaUtils.isEmbeddedBelongsTo(this);\n  }\n\n  get isEmbeddedBelongsToDeep() {\n    return SchemaUtils.isEmbeddedBelongsToDeep(this);\n  }\n\n  get isEmbedded() {\n    return (\n      this.isEmbeddedHasMany\n      || this.isEmbeddedHasManyDeep\n      || this.isEmbeddedBelongsTo\n      || this.isEmbeddedBelongsToDeep\n    );\n  }\n\n  get isRelationship() {\n    return this.isEmbedded;\n  }\n\n  get nestedOrReferencedCollection() {\n    return this.nestedCollection;\n  }\n\n  get nestedCollection(): CollectionEnvironmentNested | null {\n    if (!this.isEmbedded) return null;\n    // To avoid doing the parsing multiple times, as the type of a field is static we can compute the nestedCollection only once.\n    if (this._nestedCollection) return this._nestedCollection;\n    // We need to cast it because getter does not give type safe guard for now\n    // See: https://github.com/microsoft/TypeScript/issues/43368\n    const type = this.type as EmbeddedType | [EmbeddedType];\n    const nestedCollectionDefinition: EmbeddedType = this.isArray\n      ? (type as [EmbeddedType])[0]\n      : (type as EmbeddedType);\n\n    const collection = new CollectionEnvironmentNested({\n      parentField: this,\n      fields: nestedCollectionDefinition.fields.map(\n        (field) =>\n          new FieldEnvironmentNested(field, {\n            features: {\n              filterArrayIncludeAll: this.isFeatureActiveFilterArrayIncludeAll,\n            },\n            widgetsManager: this.widgetsManager,\n          }),\n      ),\n      environment: this.collection.environment,\n    });\n    collection.fields.forEach((field) => {\n      field.collection = collection;\n    });\n    this._nestedCollection = collection;\n    return collection;\n  }\n\n  get shouldDisplayAsRow() {\n    return !this.isEmbeddedHasMany || this.isEmbeddedHasManyDeep;\n  }\n\n  get isRelatedData() {\n    return !this.shouldDisplayAsRow;\n  }\n\n  get typeStringified(): string {\n    const fieldType = this.type;\n    if (isArray(fieldType)) {\n      return JSON.stringify(fieldType);\n    }\n\n    return fieldType as unknown as string;\n  }\n\n  get attributeNameWithRelationships() {\n    const attributeName = this.fieldName;\n\n    if (attributeName === 'id') {\n      return namespace(config.APP.models.nonIdentifierIdFieldAlias, '-');\n    }\n\n    return namespace(attributeName, '-');\n  }\n\n  get relationshipType() {\n    if (this.isEmbeddedBelongsToDeep) {\n      return 'embeddedBelongsToDeep';\n    }\n    if (this.isEmbeddedBelongsTo) {\n      return 'embeddedBelongsTo';\n    }\n    if (this.isEmbeddedHasManyDeep) {\n      return 'embeddedHasManyDeep';\n    }\n    if (this.isEmbeddedHasMany) {\n      return 'embeddedHasMany';\n    }\n    return null;\n  }\n\n  get isFilterAvailableForTypeExcludingNested() {\n    const { environment } = this.collection;\n    const canFilterArrays = !!environment && this.isFeatureActiveFilterArrayIncludeAll;\n    return (\n      (typeof this.type === 'string' && SimpleTypes.includes(this.type))\n      || (canFilterArrays && SchemaUtils.isPlainArray(this))\n    );\n  }\n\n  get isFilterAvailableForType() {\n    return (\n      this.isFilterAvailableForTypeExcludingNested\n      || this.isInlineBelongsToField\n      || this.isEmbeddedBelongsTo\n      || this.isBelongsTo\n    );\n  }\n\n  get isAggregatable() {\n    return this.isNumber;\n  }\n\n  get isInvalidWidgetDisplay() {\n    return isWidgetInvalid(this, this.widgetDisplay);\n  }\n\n  get isInvalidWidgetEdit() {\n    return isWidgetInvalid(this, this.widgetEdit);\n  }\n\n  get embeddedCollectionName() {\n    if (SchemaUtils.isEmbeddedBelongsTo(this)) {\n      return `${this.collection?.name || ''}-${singularize(this.fieldName)}`;\n    }\n    if (SchemaUtils.isEmbeddedHasMany(this)) {\n      return dasherize(`${this.collection?.name || ''}-${this.fieldName}-hasmany`);\n    }\n    return null;\n  }\n\n  setDisplayedValue<M extends Model>(record: M, value: unknown) {\n    record.set(this.attributeNameWithRelationships as keyof M, value);\n    return this.getDisplayedValue(record);\n  }\n\n  ensureWidgetDefaults() {\n    try {\n      if (\n        !this.widgetDisplay\n        || !this.widgetEdit\n        || this.isInvalidWidgetDisplay\n        || this.isInvalidWidgetEdit\n      ) {\n        this.widgetsManager.assignDefaultWidgets(this);\n      }\n    } catch (error) {\n      console.error('Widget transition error:', error);\n    }\n  }\n}\n","/* eslint-disable max-classes-per-file */\nimport type Model from '@ember-data/model';\nimport type Store from '@ember-data/store';\nimport type WidgetConfiguration from 'client/data/models/widget-configuration';\nimport type { FieldInterface, NestedFieldAttributes } from 'client/decorators/model-field';\nimport type LianaFeaturesService from 'client/legacy/services/liana-features';\nimport type StoreService from 'client/legacy/services/store';\nimport type WidgetsManagerService from 'client/legacy/services/widgets-manager';\nimport type NestedCollection from 'client/utils/nested/collection';\n\nimport { isArray } from '@ember/array';\nimport { computed } from '@ember/object';\nimport { readOnly } from '@ember/object/computed';\nimport { tracked } from '@glimmer/tracking';\n\nimport modelField from 'client/decorators/model-field';\nimport SchemaUtils from 'client/utils/schema-utils';\n\nclass BaseNestedField implements FieldInterface {\n  type: NestedFieldAttributes['type'];\n  enums?: string[] | null;\n  fieldName: string;\n  displayName: string;\n  collection: NestedCollection | null = null;\n  relationship = null;\n  reference = null;\n  isIdentifier = false;\n  integration = null;\n  isVirtual = false;\n  widgetDisplay?: WidgetConfiguration | null;\n  widgetEdit?: WidgetConfiguration | null;\n  referenceModel = null;\n\n  lianaFeatures: LianaFeaturesService;\n  store: StoreService;\n  widgetsManager: WidgetsManagerService;\n\n  constructor(\n    { type, field, enums }: NestedFieldAttributes,\n    {\n      store,\n      lianaFeatures,\n      widgetsManager,\n    }: {\n      store: StoreService & Store;\n      lianaFeatures: LianaFeaturesService;\n      widgetsManager: WidgetsManagerService;\n    },\n  ) {\n    this.type = type;\n    this.fieldName = field;\n    this.displayName = field;\n    this.enums = enums;\n\n    this.store = store;\n    this.lianaFeatures = lianaFeatures;\n    this.widgetsManager = widgetsManager;\n  }\n\n  @tracked areWidgetsInitialized = false;\n\n  @readOnly('fieldName') declare field: string;\n\n  @computed('displayName')\n  get displayNameTitlize() {\n    return this.displayName.charAt(0).toUpperCase() + this.displayName.slice(1);\n  }\n\n  get attributeName(): string {\n    return SchemaUtils.getAttributeName(this);\n  }\n\n  get isSortable() {\n    return (\n      typeof this.type === 'string'\n      && ['Enum', 'String', 'Number', 'Boolean', 'Date'].includes(this.type)\n    );\n  }\n\n  get isReadOnly() {\n    return false;\n  }\n\n  toServerFormat() {\n    const serverFormatJson: {\n      type: NestedFieldAttributes['type'];\n      field: string;\n      enums?: string[];\n    } = {\n      type: this.type,\n      field: this.fieldName,\n    };\n\n    if (this.enums) {\n      serverFormatJson.enums = this.enums;\n    }\n\n    return serverFormatJson;\n  }\n\n  toJSON() {\n    return {\n      type: this.type,\n      enums: this.enums,\n      fieldName: this.fieldName,\n      displayName: this.displayName,\n    };\n  }\n}\n\nconst BaseNestedFieldDecorated = modelField()(BaseNestedField);\n\nexport default class NestedField extends BaseNestedFieldDecorated {\n  getDisplayedValue<M extends Model>(record: M): unknown {\n    const displayedValue: unknown = record?.[\n      this.attributeNameWithRelationships as keyof M\n    ] as unknown;\n    return isArray(displayedValue) && (displayedValue as unknown[]).toArray\n      ? (displayedValue as unknown[]).toArray()\n      : displayedValue;\n  }\n\n  get attributeNameWithRelationships() {\n    return this.attributeName;\n  }\n}\n","export default () => {};\n","/**\n * Normalizes a string\n * @param {string} value\n */\nexport default function normalizeString(value) {\n  if (typeof value !== 'string') return '';\n\n  return value\n    .toLowerCase()\n    .replace(/[àâåäąãá]/gi, 'a')\n    .replace(/[çć]/gi, 'c')\n    .replace(/[éèëêę]/gi, 'e')\n    .replace(/[ïîì]/gi, 'i')\n    .replace(/ł/gi, 'l')\n    .replace(/[ñń]/gi, 'n')\n    .replace(/[ôòøóõö]/gi, 'o')\n    .replace(/ś/gi, 's')\n    .replace(/[ûùúü]/gi, 'u')\n    .replace(/[ýÿ]/gi, 'y')\n    .replace(/[źż]/gi, 'z')\n    .replace(/ß/gi, 'ss')\n    .replace(/œ/gi, 'oe')\n    .replace(/æ/gi, 'ae')\n    .replace(/[^a-z0-9]/gi, '');\n}\n","export function isNumberUnsafeInteger(number) {\n  return !Number.isNaN(number) && Number.isInteger(number) && !Number.isSafeInteger(number);\n}\n\nexport default {\n  isNumberUnsafeInteger,\n};\n","// https://stackoverflow.com/questions/14810506/map-function-for-objects-instead-of-arrays/14810722#14810722\n/**\n * example:\n * ({a: 1, b: 2, c:3}, (val) => val * 2 ) => {a: 2, b: 4, c:6}\n */\nexport default <KeyType extends string, ValueType>(\n  obj: object,\n  fn: (value?: ValueType, key?: KeyType, index?: number) => ValueType,\n) =>\n  Object.fromEntries(\n    Object.entries(obj).map(([key, value], index) => [\n      key,\n      fn(value as ValueType, key as KeyType, index),\n    ]),\n  ) as Record<KeyType, ValueType>;\n","/**\n * @param {{\n *  currentNames: string[]\n *  prefix: string\n *  separator: string\n * }} params\n * @returns {string}\n */\nexport default function chooseNewName({ currentNames, prefix, separator }) {\n  let candidate = prefix;\n  let index = 1;\n\n  while (currentNames.includes(candidate)) {\n    index += 1;\n    candidate = `${prefix}${separator}${index}`;\n  }\n\n  return candidate;\n}\n","import type { RawCredentials } from 'client/utils/onboarding/database-credentials';\n\nimport { tracked } from '@glimmer/tracking';\n\nimport { DatabaseTypeEnum } from 'client/utils/database';\nimport DatabaseCredentials from 'client/utils/onboarding/database-credentials';\n\nexport type SSHProperties = {\n  host?: string;\n  port?: number;\n  username?: string;\n  privateKey?: string;\n  publicKey?: string;\n};\nexport type RawCredentialsCloud = RawCredentials & {\n  sslMode?: string;\n  ssh?: {\n    isEnabled: boolean;\n  } & SSHProperties;\n};\n\nexport type RawCredentialsCloudSerialized = {\n  databaseUri: string;\n  ssh?: Omit<RawCredentialsCloud['ssh'], 'isEnabled'>;\n  sslMode?: string;\n  useSSL?: boolean;\n};\n\nexport default class DatabaseCredentialsCloud extends DatabaseCredentials {\n  @tracked sslMode: string;\n  @tracked private _ssh: RawCredentialsCloud['ssh'];\n\n  constructor(credentials: RawCredentialsCloud | Partial<DatabaseCredentialsCloud> = {}) {\n    super(credentials);\n  }\n\n  protected override initCredentials(\n    credentials: RawCredentialsCloud | Partial<DatabaseCredentialsCloud>,\n  ): void {\n    super.initCredentials(credentials);\n\n    this.sslMode = credentials.sslMode ?? 'preferred';\n    this.ssh = credentials.ssh;\n  }\n\n  toRawCredentials(): RawCredentials & Partial<DatabaseCredentialsCloud> {\n    const rawCredentials = super.toRawCredentials() as RawCredentials &\n      Partial<DatabaseCredentialsCloud>;\n    rawCredentials.sslMode = this.sslMode;\n    rawCredentials.ssh = { ...this._ssh };\n\n    return rawCredentials;\n  }\n\n  serialize(): RawCredentialsCloudSerialized {\n    const ssh = this._ssh.isEnabled ? { ...this._ssh } : undefined;\n    if (ssh) delete ssh.isEnabled;\n    if (this.type === DatabaseTypeEnum.MongoDB)\n      return { databaseUri: this.connectionURIEncoded, useSSL: this.useSSL, ssh };\n\n    return { databaseUri: this.connectionURIEncoded, sslMode: this.sslMode, ssh };\n  }\n\n  get ssh(): RawCredentialsCloud['ssh'] {\n    return this._ssh;\n  }\n\n  set ssh(value: RawCredentialsCloud['ssh']) {\n    this._ssh = value || { isEnabled: false };\n\n    this.onFieldChange();\n  }\n\n  protected override onFieldChange() {\n    super.onFieldChange();\n\n    if (this.useSRV) {\n      this._ssh.isEnabled = false;\n    }\n  }\n}\n","import { tracked } from '@glimmer/tracking';\n\nimport { DatabaseTypeEnum } from 'client/utils/database';\nimport { fixedEncodeURIComponent } from 'client/utils/url-utils';\n\nexport const ALLOWED_PROTOCOLS_BY_TYPE = {\n  [DatabaseTypeEnum.MongoDB]: ['mongodb', 'mongodb+srv'],\n  [DatabaseTypeEnum.MySQL]: ['mysql', 'mysql2'],\n  [DatabaseTypeEnum.MicrosoftSQLServer]: ['mssql', 'tedious'],\n  [DatabaseTypeEnum.Postgresql]: ['postgres', 'pg', 'postgresql'],\n\n  // It seems that the default values when we click on mariadb is mysql, which is strange (as\n  // different drivers are used in agent-node-js at least)\n  // We don't want to over-validate the connection URI, so we allow both.\n  [DatabaseTypeEnum.MariaDB]: ['mariadb', 'mysql', 'mysql2'],\n};\nexport const ALL_SUPPORTED_PROTOCOLS = [\n  // eslint-disable-next-line sonarjs/no-alphabetical-sort\n  ...new Set(Object.values(ALLOWED_PROTOCOLS_BY_TYPE).flat().sort()),\n];\n\nexport type ConnectionMethod = 'form' | 'URI';\n\nexport type RawCredentials = {\n  host?: string;\n  port: string;\n  username: string;\n  password: string;\n  type: DatabaseTypeEnum;\n  authSource?: string;\n  useSRV?: boolean;\n  schema?: string;\n  useSSL: boolean;\n  databaseName?: string | null;\n  connectionMethod?: ConnectionMethod;\n  extraQueryParams?: Record<string, unknown>;\n};\n\n// Captures: protocol, username, password, host+rest\n// eg: https://regex101.com/r/UIqANn/1\nconst URIPatternRegex = /^([a-z][a-z0-9+.-]*):\\/\\/([^:@]+):(.+)@([^@]+)$/i;\n\nexport default class DatabaseCredentials {\n  get connectionURI(): string {\n    return this._decodePasswordInURI(this._connectionURI);\n  }\n\n  set connectionURI(value: string) {\n    this._connectionURI = this._encodePasswordInURI(value);\n    this._onUriChange();\n  }\n\n  get connectionURIEncoded(): string {\n    return this._connectionURI;\n  }\n\n  get host(): string {\n    return this._host;\n  }\n\n  set host(value: string) {\n    this._host = value;\n    this.onFieldChange();\n  }\n\n  get port(): string {\n    return this._port;\n  }\n\n  set port(value: string) {\n    this._port = value;\n    this.onFieldChange();\n  }\n\n  get username(): string {\n    return this._username;\n  }\n\n  set username(value: string) {\n    this._username = value;\n    this.onFieldChange();\n  }\n\n  get databaseName(): string {\n    return this._databaseName;\n  }\n\n  set databaseName(value: string) {\n    this._databaseName = value;\n    this.onFieldChange();\n  }\n\n  get password(): string {\n    return this._password;\n  }\n\n  set password(value: string) {\n    this._password = value;\n    this.onFieldChange();\n  }\n\n  get authSource(): string {\n    return this._authSource;\n  }\n\n  set authSource(value: string) {\n    this._authSource = value;\n    this.onFieldChange();\n  }\n\n  get useSSL(): boolean {\n    return this._useSSL;\n  }\n\n  set useSSL(value: boolean) {\n    this._useSSL = value;\n    this.onFieldChange();\n  }\n\n  get schema(): string {\n    return this._schema;\n  }\n\n  set schema(value: string) {\n    this._schema = value;\n    this.onFieldChange();\n  }\n\n  get useSRV(): boolean {\n    return this._useSRV;\n  }\n\n  set useSRV(value: boolean) {\n    this._useSRV = value;\n    if (value) this._port = '';\n    this.onFieldChange();\n  }\n\n  protected initialType: DatabaseTypeEnum;\n\n  @tracked connectionMethod: ConnectionMethod;\n  @tracked extraQueryParams: Record<string, unknown>;\n  @tracked type: DatabaseTypeEnum;\n\n  @tracked private _connectionURI: string;\n  @tracked private _host: string;\n  @tracked private _port: string;\n  @tracked private _username: string;\n  @tracked private _databaseName: string;\n  @tracked private _password: string;\n  @tracked private _authSource: string;\n  @tracked private _useSRV: boolean;\n  @tracked private _schema: string | undefined;\n  @tracked private _useSSL: boolean; // Used for self-hosted onboardings\n  @tracked private _extraQueryParams: Record<string, unknown>;\n\n  constructor(credentials: RawCredentials | Partial<DatabaseCredentials> = {}) {\n    this.initCredentials(credentials);\n    this.onFieldChange();\n  }\n\n  protected initCredentials(credentials: RawCredentials | Partial<DatabaseCredentials>) {\n    this.connectionMethod = 'connectionMethod' in credentials ? credentials.connectionMethod : null;\n    this.type = credentials.type ?? DatabaseTypeEnum.Postgresql;\n    this._authSource = credentials.authSource ?? '';\n    this._databaseName = credentials.databaseName ?? '';\n    this._host = credentials.host ?? '';\n    this._password = credentials.password ?? '';\n    this._port = credentials.port ?? '';\n    this._schema = credentials.schema ?? '';\n    this._username = credentials.username ?? '';\n    this._useSRV = credentials.useSRV ?? false;\n    this._useSSL = credentials.useSSL ?? false;\n    this._extraQueryParams = credentials.extraQueryParams;\n\n    // Keep the initial type in memory\n    this.initialType = this.type;\n  }\n\n  toRawCredentials(): RawCredentials & Partial<DatabaseCredentials> {\n    return {\n      host: this._host,\n      port: this._port,\n      username: this._username,\n      password: this._password,\n      type: this.type,\n      authSource: this._authSource,\n      useSRV: this._useSRV,\n      schema: this._schema,\n      useSSL: this._useSSL,\n      databaseName: this._databaseName,\n      extraQueryParams: this._extraQueryParams,\n      connectionMethod: this.connectionMethod,\n    };\n  }\n\n  formatForSegment() {\n    const json = {\n      databaseType: this.type,\n      isLocal: ['localhost', '127.0.0.1', '::1'].includes(this.host),\n      useSSL: this.useSSL,\n      connectionMethod: this.connectionMethod,\n      hasAuthSource: null,\n      useSRV: null,\n      hasSchema: !!this.schema,\n    };\n\n    if (this.type === 'mongodb') {\n      json.hasAuthSource = !!this.authSource;\n      json.useSRV = !!this.useSRV;\n      json.hasSchema = null;\n    }\n\n    return json;\n  }\n\n  private _encodePasswordInURI(uri: string): string {\n    const match = uri.match(URIPatternRegex);\n    if (!match) return uri;\n\n    const [, protocol, username, password, hostAndRest] = match;\n\n    // Decode first, then encode\n    try {\n      const decodedPassword = decodeURIComponent(password);\n      const encodedPassword = fixedEncodeURIComponent(decodedPassword);\n      return `${protocol}://${username}:${encodedPassword}@${hostAndRest}`;\n    } catch {\n      // If decode fails, then return encoded version\n      return `${protocol}://${username}:${fixedEncodeURIComponent(password)}@${hostAndRest}`;\n    }\n  }\n\n  private _decodePasswordInURI(uri: string): string {\n    if (!uri) return uri;\n\n    const match = uri.match(URIPatternRegex);\n    if (!match) return uri;\n\n    const [, protocol, username, password, hostAndRest] = match;\n\n    try {\n      const decodedPassword = decodeURIComponent(password);\n      return `${protocol}://${username}:${decodedPassword}@${hostAndRest}`;\n    } catch {\n      return uri;\n    }\n  }\n\n  private _onUriChange() {\n    try {\n      // Workaround chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=869291\n      const parts = this._connectionURI.split('://');\n      if (parts.length !== 2) throw new Error();\n\n      const uri = new URL(`http://${parts[1]}`);\n      this.type = this.translateAndCheckDatabaseType(parts[0]);\n      this._host = uri.hostname ?? '';\n      this._port = uri.port ?? '';\n      this._username = decodeURIComponent(uri.username ?? '');\n      this._password = decodeURIComponent(uri.password ?? '');\n      this._databaseName = uri.pathname.slice(1) ?? '';\n      this._authSource = uri.searchParams.get('authSource') ?? '';\n      this._schema = uri.searchParams.get('schema') ?? '';\n      this._useSRV = parts[0] === 'mongodb+srv';\n      this._useSSL = this._useSRV\n        ? true\n        : ['true', '1', 'yes'].includes(uri.searchParams.get('ssl')?.toLowerCase());\n      this._extraQueryParams = Object.fromEntries(uri.searchParams);\n    } catch {\n      // the url is invalid\n      this._host = '';\n      this._port = '';\n      this._username = '';\n      this._databaseName = '';\n      this._password = '';\n      this._authSource = '';\n      this._schema = '';\n      this._useSSL = false;\n      this._useSRV = false;\n    }\n  }\n\n  /**\n   * Note that this may generate invalid urls, but it is on purpose.\n   */\n  protected onFieldChange() {\n    if (!this._host) {\n      this._connectionURI = '';\n      return;\n    }\n    // When using SRV, the port is not part of the host, and the protocol is different.\n    const isMongoSrv = this.type === 'mongodb' && this._useSRV;\n\n    // Retrieve the query params from the connection URI when we are editing the form.\n    const searchParams = this._buildSearchParams();\n\n    // Generate the connection URI from the form fields, keeping extra query params.\n    const host = this._port && !isMongoSrv ? `${this._host}:${this._port}` : this._host;\n    const username = fixedEncodeURIComponent(this._username);\n    const password = fixedEncodeURIComponent(this._password);\n    const pathname = `/${this._databaseName}`;\n    const protocol = isMongoSrv ? 'mongodb+srv' : this.type;\n    const search = searchParams.entries().next().value ? `?${searchParams.toString()}` : '';\n\n    if (password) {\n      this._connectionURI = `${protocol}://${username}:${password}@${host}${pathname}${search}`;\n    } else if (username) {\n      this._connectionURI = `${protocol}://${username}@${host}${pathname}${search}`;\n    } else {\n      this._connectionURI = `${protocol}://${host}${pathname}${search}`;\n    }\n  }\n\n  private _buildSearchParams(): URLSearchParams {\n    const values = {\n      authSource: this._authSource,\n      schema: this._schema,\n      ssl: this._useSSL ? 'true' : '',\n    };\n\n    const searchParams = new URLSearchParams({\n      ...this._extraQueryParams,\n      ...values,\n    });\n\n    Object.entries(values).forEach(([key, value]) => {\n      if (value) searchParams.set(key, value);\n      else searchParams.delete(key);\n    });\n\n    return searchParams;\n  }\n\n  private translateAndCheckDatabaseType(protocol: string) {\n    const databaseType = Object.values(DatabaseTypeEnum).find((type) =>\n      ALLOWED_PROTOCOLS_BY_TYPE[type].includes(protocol),\n    );\n\n    return databaseType ?? this.initialType;\n  }\n}\n","import type { Operator } from 'client/utils/operators/common-operators';\n\nimport { augmentWithDisplayTextForArrayOperator } from 'client/utils/operators/common-operators';\nimport { ArrayOperatorDisplayNameEnum } from 'client/utils/operators/types';\n\n// eslint-disable-next-line import/prefer-default-export\nexport const OPERATOR_INCLUDES_ALL: Operator<string[] | number[]> =\n  augmentWithDisplayTextForArrayOperator<string[] | number[]>({\n    displayName: ArrayOperatorDisplayNameEnum.IncludesAll,\n    name: 'includes_all',\n    compute: (value: unknown) => value as string[] | number[],\n    doesNotNeedValue: false,\n  });\n","import type { OperatorDisplayNames } from 'client/utils/operators/types';\n\nimport { CommonOperatorDisplayNameEnum } from 'client/utils/operators/types';\n\nexport type OperatorValue = string | number | null | string[] | number[] | boolean;\nexport interface Operator<T extends OperatorValue | unknown = unknown> {\n  displayName: `${OperatorDisplayNames}`;\n  name: string;\n  compute?: (value: unknown) => string | T;\n  hint?: string;\n  doesNotNeedValue?: boolean;\n  valueComponent?: string;\n  valueType?: string;\n  generateDisplayText: (value: T) => string;\n}\n\nfunction formatStringValue(value: string): string {\n  // source: https://en.wikipedia.org/wiki/Quotation_mark\n  if (!/['‘’\"“”]/.test(value)) return `‘${value}’`;\n  if (!/[\"“”]/.test(value)) return `”${value}“`;\n  if (!/[«»]/.test(value)) return `«\\xa0${value}\\xa0»`;\n  if (!/[「」]/.test(value)) return `「${value}」`;\n\n  // Someone is trying to be funny, so we'll just return the value as is\n  return value;\n}\n\nexport function formatValue(value: OperatorValue): string {\n  if (Array.isArray(value)) {\n    // eslint-disable-next-line @typescript-eslint/no-use-before-define\n    return formatArrayValue(value);\n  }\n\n  if (typeof value === 'string') {\n    return formatStringValue(value);\n  }\n\n  return `${value}`;\n}\n\nfunction formatArrayValue(value: OperatorValue): string {\n  let arrayValue = !value ? [] : value;\n  arrayValue = Array.isArray(arrayValue) ? arrayValue : ([arrayValue] as string[] | number[]);\n\n  return `[${arrayValue.map(formatValue).join(', ')}]`;\n}\n\nexport function augmentWithDisplayTextForBinaryOperator<T extends OperatorValue>(\n  operator: Omit<Operator<T>, 'generateDisplayText'>,\n): Operator<T> {\n  return {\n    ...operator,\n    generateDisplayText: (value: T) => `${operator.displayName} ${formatValue(value)}`,\n  };\n}\n\nexport function augmentWithDisplayTextForUnaryOperator(\n  operator: Omit<Operator<null>, 'generateDisplayText'>,\n): Operator<null> {\n  return {\n    ...operator,\n    generateDisplayText: () => operator.displayName,\n  };\n}\n\nexport function augmentWithDisplayTextForArrayOperator<\n  T extends string[] | number[] | number | string,\n>(operator: Omit<Operator<T>, 'generateDisplayText'>): Operator<T> {\n  return {\n    ...operator,\n    generateDisplayText: (value: string[] | number[] | number | string) => {\n      return `${operator.displayName} ${formatArrayValue(value)}`;\n    },\n  };\n}\n\nexport const OPERATOR_IS: Operator<number | string | boolean> =\n  augmentWithDisplayTextForBinaryOperator<number | string | boolean>({\n    displayName: CommonOperatorDisplayNameEnum.Is,\n    name: 'equal',\n    compute: (value) => value as string | number | boolean,\n    doesNotNeedValue: false,\n  });\n\nexport const OPERATOR_IS_NOT: Operator<number | string | boolean> =\n  augmentWithDisplayTextForBinaryOperator<number | string | boolean>({\n    displayName: CommonOperatorDisplayNameEnum.IsNot,\n    name: 'not_equal',\n    compute: (value) => `!${value as string | number | boolean}`,\n    doesNotNeedValue: false,\n  });\n\nexport const OPERATOR_IS_PRESENT: Operator<null> = augmentWithDisplayTextForUnaryOperator({\n  displayName: CommonOperatorDisplayNameEnum.IsPresent,\n  name: 'present',\n  compute: () => '$present',\n  doesNotNeedValue: true,\n});\n\nexport const OPERATOR_IS_BLANK: Operator<null> = augmentWithDisplayTextForUnaryOperator({\n  displayName: CommonOperatorDisplayNameEnum.IsBlank,\n  name: 'blank',\n  compute: () => '$blank',\n  doesNotNeedValue: true,\n});\n\nexport const OPERATOR_IS_IN: Operator<string[] | number[] | string | number> =\n  augmentWithDisplayTextForArrayOperator({\n    displayName: CommonOperatorDisplayNameEnum.IsIn,\n    name: 'in',\n    valueComponent: 'widgets/edit/text-editor/widget-layout',\n    doesNotNeedValue: false,\n  });\n","import type { Operator } from 'client/utils/operators/common-operators';\nimport type { Moment } from 'moment';\n\nimport { capitalize } from '@ember/string';\nimport moment from 'moment';\n\nimport { augmentWithDisplayTextForUnaryOperator } from 'client/utils/operators/common-operators';\nimport { DateOperatorDisplayNameEnum } from 'client/utils/operators/types';\n\ntype SupportedUnit = ('month' | 'year' | 'week' | 'quarter') &\n  Exclude<moment.unitOfTime.StartOf, null>;\n\nconst format = (date: Moment) => (date.isValid() ? date.format('llll') : 'invalid date');\n\nfunction augmentWithGenerateDisplayTextForBinaryOperator(\n  operator: Omit<Operator<string>, 'generateDisplayText'>,\n): Operator<string> {\n  return {\n    ...operator,\n    generateDisplayText: (value: string) => `${operator.displayName} ${format(moment(value))}`,\n  };\n}\n\nexport const OPERATOR_IS_AFTER: Operator<string> = augmentWithGenerateDisplayTextForBinaryOperator({\n  displayName: DateOperatorDisplayNameEnum.IsAfter,\n  name: 'after',\n  compute: (value) => `>${value as string}`,\n  doesNotNeedValue: false,\n});\n\nexport const OPERATOR_IS_BEFORE: Operator<string> = augmentWithGenerateDisplayTextForBinaryOperator(\n  {\n    displayName: DateOperatorDisplayNameEnum.IsBefore,\n    name: 'before',\n    compute: (value) => `<${value as string}`,\n    doesNotNeedValue: false,\n  },\n);\n\nexport const OPERATOR_IS_TODAY: Operator<null> = augmentWithDisplayTextForUnaryOperator({\n  displayName: DateOperatorDisplayNameEnum.IsToday,\n  name: 'today',\n  get hint() {\n    return `is between ${format(moment().startOf('day'))} and ${format(moment().endOf('day'))}`;\n  },\n  compute: () => '$today',\n  doesNotNeedValue: true,\n});\n\nexport const OPERATOR_WAS_IN_PREVIOUS_X_DAYS: Operator<number> = {\n  displayName: DateOperatorDisplayNameEnum.WasInPreviousXDays,\n  name: 'previous_x_days',\n  get hint() {\n    return `is from X days ago at 12:00 AM to ${format(moment().subtract(1, 'days').endOf('day'))}`;\n  },\n  compute: (value) => `$previous${value as number}Days`,\n  valueType: 'Number',\n  valueComponent: 'widgets/edit/number-input/widget-layout',\n  doesNotNeedValue: false,\n  generateDisplayText: (value: number) => `was in previous ${value} days`,\n};\n\nconst constructWasInPrevious = (\n  type: SupportedUnit | 'day',\n  displayName: DateOperatorDisplayNameEnum,\n  name: 'yesterday' | null = null,\n): Operator<null> =>\n  augmentWithDisplayTextForUnaryOperator({\n    displayName,\n    name: name || `previous_${type}`,\n    get hint() {\n      const date = moment().subtract(1, `${type}s` as moment.unitOfTime.DurationConstructor);\n      return `is between ${format(date.startOf(type))} and ${format(date.endOf(type))}`;\n    },\n    compute: () => (name ? `$${name}` : `$previous${capitalize(type)}`),\n    doesNotNeedValue: true,\n  });\n\nexport const OPERATOR_WAS_YESTERDAY: Operator<null> = constructWasInPrevious(\n  'day',\n  DateOperatorDisplayNameEnum.WasYesterday,\n  'yesterday',\n);\nexport const OPERATOR_WAS_IN_PREVIOUS_WEEK: Operator<null> = constructWasInPrevious(\n  'week',\n  DateOperatorDisplayNameEnum.WasInPreviousWeek,\n);\nexport const OPERATOR_WAS_IN_PREVIOUS_MONTH: Operator<null> = constructWasInPrevious(\n  'month',\n  DateOperatorDisplayNameEnum.WasInPreviousMonth,\n);\nexport const OPERATOR_WAS_IN_PREVIOUS_QUARTER: Operator<null> = constructWasInPrevious(\n  'quarter',\n  DateOperatorDisplayNameEnum.WasInPreviousQuarter,\n);\nexport const OPERATOR_WAS_IN_PREVIOUS_YEAR: Operator<null> = constructWasInPrevious(\n  'year',\n  DateOperatorDisplayNameEnum.WasInPreviousYear,\n);\n\nexport const OPERATOR_IS_THESE_X_DAYS_TO_DATE: Operator<number> = {\n  displayName: DateOperatorDisplayNameEnum.IsTheseXDaysToDate,\n  name: 'previous_x_days_to_date',\n  get hint() {\n    return 'is from X days ago at 12:00 AM to now';\n  },\n  compute: (value) => `$${value as number}DaysToDate`,\n  valueType: 'Number',\n  valueComponent: 'widgets/edit/number-input/widget-layout',\n  doesNotNeedValue: false,\n  generateDisplayText: (value: number) =>\n    value === 1 ? `is this day to date` : `is these ${value} days to date`,\n};\n\nconst constructIsThisToDate = (type: SupportedUnit): Operator<null> =>\n  augmentWithDisplayTextForUnaryOperator({\n    displayName: `is this ${type} to date`,\n    name: `previous_${type}_to_date`,\n    get hint() {\n      return `is between ${format(moment().startOf(type))} and now`;\n    },\n    compute: () => `$${type}ToDate`,\n    doesNotNeedValue: true,\n  });\n\nexport const OPERATOR_IS_THIS_WEEK_TO_DATE = constructIsThisToDate('week');\nexport const OPERATOR_IS_THIS_MONTH_TO_DATE = constructIsThisToDate('month');\nexport const OPERATOR_IS_THIS_QUARTER_TO_DATE = constructIsThisToDate('quarter');\nexport const OPERATOR_IS_THIS_YEAR_TO_DATE = constructIsThisToDate('year');\n\nexport const OPERATOR_IS_IN_THE_PAST: Operator<null> = augmentWithDisplayTextForUnaryOperator({\n  displayName: DateOperatorDisplayNameEnum.IsInThePast,\n  name: 'past',\n  get hint() {\n    return 'is before now';\n  },\n  compute: () => '$past',\n  doesNotNeedValue: true,\n});\n\nexport const OPERATOR_IS_IN_THE_FUTURE: Operator<null> = augmentWithDisplayTextForUnaryOperator({\n  displayName: DateOperatorDisplayNameEnum.IsInTheFuture,\n  name: 'future',\n  get hint() {\n    return 'is after now';\n  },\n  compute: () => '$future',\n  doesNotNeedValue: true,\n});\n\nexport const OPERATOR_WAS_BEFORE_X_HOURS_AGO: Operator<number> = {\n  displayName: DateOperatorDisplayNameEnum.WasBeforeXHoursAgo,\n  name: 'before_x_hours_ago',\n  get hint() {\n    return 'was before X hours from now';\n  },\n  compute: (value) => `$${value as number}HoursBefore`,\n  valueType: 'Number',\n  valueComponent: 'widgets/edit/number-input/widget-layout',\n  doesNotNeedValue: false,\n  generateDisplayText: (value: number) =>\n    value === 1 ? 'was before 1 hour ago' : `was before ${value} hours ago`,\n};\n\nexport const OPERATOR_IS_AFTER_X_HOURS_FROM_NOW: Operator<number> = {\n  displayName: DateOperatorDisplayNameEnum.IsAfterXHoursFromNow,\n  name: 'after_x_hours_ago',\n  get hint() {\n    return 'is after X hours from now';\n  },\n  compute: (value) => `$${value as number}HoursAfter`,\n  valueType: 'Number',\n  valueComponent: 'widgets/edit/number-input/widget-layout',\n  doesNotNeedValue: false,\n  generateDisplayText: (value: number) =>\n    value === 1 ? 'is after 1 hour ago' : `is after ${value} hours ago`,\n};\n","import { OPERATOR_INCLUDES_ALL } from 'client/utils/operators/array-operators';\nimport {\n  OPERATOR_IS,\n  OPERATOR_IS_BLANK,\n  OPERATOR_IS_IN,\n  OPERATOR_IS_NOT,\n  OPERATOR_IS_PRESENT,\n} from 'client/utils/operators/common-operators';\nimport {\n  OPERATOR_IS_AFTER,\n  OPERATOR_IS_AFTER_X_HOURS_FROM_NOW,\n  OPERATOR_IS_BEFORE,\n  OPERATOR_IS_IN_THE_FUTURE,\n  OPERATOR_IS_IN_THE_PAST,\n  OPERATOR_IS_THESE_X_DAYS_TO_DATE,\n  OPERATOR_IS_THIS_MONTH_TO_DATE,\n  OPERATOR_IS_THIS_QUARTER_TO_DATE,\n  OPERATOR_IS_THIS_WEEK_TO_DATE,\n  OPERATOR_IS_THIS_YEAR_TO_DATE,\n  OPERATOR_IS_TODAY,\n  OPERATOR_WAS_BEFORE_X_HOURS_AGO,\n  OPERATOR_WAS_IN_PREVIOUS_MONTH,\n  OPERATOR_WAS_IN_PREVIOUS_QUARTER,\n  OPERATOR_WAS_IN_PREVIOUS_WEEK,\n  OPERATOR_WAS_IN_PREVIOUS_X_DAYS,\n  OPERATOR_WAS_IN_PREVIOUS_YEAR,\n  OPERATOR_WAS_YESTERDAY,\n} from 'client/utils/operators/date-operators';\nimport {\n  OPERATOR_IS_GREATER_THAN,\n  OPERATOR_IS_LESS_THAN,\n} from 'client/utils/operators/number-operators';\nimport {\n  OPERATOR_CONTAINS,\n  OPERATOR_ENDS_WITH,\n  OPERATOR_ICONTAINS,\n  OPERATOR_NOT_CONTAINS,\n  OPERATOR_STARTS_WITH,\n} from 'client/utils/operators/string-operators';\n\nexport const OPERATORS = [\n  OPERATOR_IS,\n  OPERATOR_IS_NOT,\n  OPERATOR_IS_IN,\n  OPERATOR_STARTS_WITH,\n  OPERATOR_ENDS_WITH,\n  OPERATOR_CONTAINS,\n  OPERATOR_ICONTAINS,\n  OPERATOR_NOT_CONTAINS,\n  OPERATOR_INCLUDES_ALL,\n  OPERATOR_IS_GREATER_THAN,\n  OPERATOR_IS_LESS_THAN,\n  OPERATOR_IS_AFTER,\n  OPERATOR_IS_BEFORE,\n  OPERATOR_IS_PRESENT,\n  OPERATOR_IS_BLANK,\n  OPERATOR_IS_TODAY,\n  OPERATOR_WAS_YESTERDAY,\n  OPERATOR_WAS_IN_PREVIOUS_X_DAYS,\n  OPERATOR_WAS_IN_PREVIOUS_WEEK,\n  OPERATOR_WAS_IN_PREVIOUS_MONTH,\n  OPERATOR_WAS_IN_PREVIOUS_QUARTER,\n  OPERATOR_WAS_IN_PREVIOUS_YEAR,\n  OPERATOR_IS_THESE_X_DAYS_TO_DATE,\n  OPERATOR_IS_THIS_WEEK_TO_DATE,\n  OPERATOR_IS_THIS_MONTH_TO_DATE,\n  OPERATOR_IS_THIS_QUARTER_TO_DATE,\n  OPERATOR_IS_THIS_YEAR_TO_DATE,\n  OPERATOR_IS_IN_THE_PAST,\n  OPERATOR_IS_IN_THE_FUTURE,\n  OPERATOR_WAS_BEFORE_X_HOURS_AGO,\n  OPERATOR_IS_AFTER_X_HOURS_FROM_NOW,\n];\n\nexport const OPERATORS_THAT_NEEDS_VALUE = OPERATORS.filter(\n  (operator) => !operator.doesNotNeedValue,\n);\n\nexport const OPERATORS_PER_TYPE = {\n  Array: [OPERATOR_INCLUDES_ALL],\n  Boolean: [OPERATOR_IS, OPERATOR_IS_NOT, OPERATOR_IS_PRESENT, OPERATOR_IS_BLANK],\n  Date: [\n    OPERATOR_IS,\n    OPERATOR_IS_NOT,\n    OPERATOR_IS_BEFORE,\n    OPERATOR_IS_AFTER,\n    OPERATOR_IS_PRESENT,\n    OPERATOR_IS_BLANK,\n    OPERATOR_IS_TODAY,\n    OPERATOR_WAS_YESTERDAY,\n    OPERATOR_WAS_IN_PREVIOUS_X_DAYS,\n    OPERATOR_WAS_IN_PREVIOUS_WEEK,\n    OPERATOR_WAS_IN_PREVIOUS_MONTH,\n    OPERATOR_WAS_IN_PREVIOUS_QUARTER,\n    OPERATOR_WAS_IN_PREVIOUS_YEAR,\n    OPERATOR_IS_THESE_X_DAYS_TO_DATE,\n    OPERATOR_IS_THIS_WEEK_TO_DATE,\n    OPERATOR_IS_THIS_MONTH_TO_DATE,\n    OPERATOR_IS_THIS_QUARTER_TO_DATE,\n    OPERATOR_IS_THIS_YEAR_TO_DATE,\n    OPERATOR_IS_IN_THE_PAST,\n    OPERATOR_IS_IN_THE_FUTURE,\n    OPERATOR_WAS_BEFORE_X_HOURS_AGO,\n    OPERATOR_IS_AFTER_X_HOURS_FROM_NOW,\n  ],\n  Dateonly: [\n    OPERATOR_IS,\n    OPERATOR_IS_NOT,\n    OPERATOR_IS_BEFORE,\n    OPERATOR_IS_AFTER,\n    OPERATOR_IS_PRESENT,\n    OPERATOR_IS_BLANK,\n    OPERATOR_IS_TODAY,\n    OPERATOR_WAS_YESTERDAY,\n    OPERATOR_WAS_IN_PREVIOUS_X_DAYS,\n    OPERATOR_WAS_IN_PREVIOUS_WEEK,\n    OPERATOR_WAS_IN_PREVIOUS_MONTH,\n    OPERATOR_WAS_IN_PREVIOUS_QUARTER,\n    OPERATOR_WAS_IN_PREVIOUS_YEAR,\n    OPERATOR_IS_THESE_X_DAYS_TO_DATE,\n    OPERATOR_IS_THIS_WEEK_TO_DATE,\n    OPERATOR_IS_THIS_MONTH_TO_DATE,\n    OPERATOR_IS_THIS_QUARTER_TO_DATE,\n    OPERATOR_IS_THIS_YEAR_TO_DATE,\n    OPERATOR_IS_IN_THE_PAST,\n    OPERATOR_IS_IN_THE_FUTURE,\n    OPERATOR_WAS_BEFORE_X_HOURS_AGO,\n    OPERATOR_IS_AFTER_X_HOURS_FROM_NOW,\n  ],\n  Enum: [OPERATOR_IS, OPERATOR_IS_NOT, OPERATOR_IS_IN, OPERATOR_IS_PRESENT, OPERATOR_IS_BLANK],\n  Number: [\n    OPERATOR_IS,\n    OPERATOR_IS_NOT,\n    OPERATOR_IS_IN,\n    OPERATOR_IS_GREATER_THAN,\n    OPERATOR_IS_LESS_THAN,\n    OPERATOR_IS_PRESENT,\n    OPERATOR_IS_BLANK,\n  ],\n  String: [\n    OPERATOR_IS,\n    OPERATOR_IS_NOT,\n    OPERATOR_IS_IN,\n    OPERATOR_STARTS_WITH,\n    OPERATOR_ENDS_WITH,\n    OPERATOR_CONTAINS,\n    OPERATOR_NOT_CONTAINS,\n    OPERATOR_IS_PRESENT,\n    OPERATOR_IS_BLANK,\n  ],\n  Time: [\n    OPERATOR_IS,\n    OPERATOR_IS_NOT,\n    OPERATOR_IS_GREATER_THAN,\n    OPERATOR_IS_LESS_THAN,\n    OPERATOR_IS_PRESENT,\n    OPERATOR_IS_BLANK,\n  ],\n  Uuid: [OPERATOR_IS, OPERATOR_IS_NOT, OPERATOR_IS_IN, OPERATOR_IS_PRESENT, OPERATOR_IS_BLANK],\n};\n\nexport const OPERATORS_CAPABILITIES_PER_TYPE = {\n  ...OPERATORS_PER_TYPE,\n  String: [\n    OPERATOR_IS,\n    OPERATOR_IS_NOT,\n    OPERATOR_IS_IN,\n    OPERATOR_STARTS_WITH,\n    OPERATOR_ENDS_WITH,\n    OPERATOR_CONTAINS,\n    OPERATOR_ICONTAINS,\n    OPERATOR_NOT_CONTAINS,\n    OPERATOR_IS_PRESENT,\n    OPERATOR_IS_BLANK,\n  ],\n};\n\nexport * from './common-operators';\nexport * from './string-operators';\nexport * from './date-operators';\nexport * from './number-operators';\nexport * from './array-operators';\n","import type { Operator } from 'client/utils/operators/common-operators';\n\nimport { augmentWithDisplayTextForBinaryOperator } from 'client/utils/operators/common-operators';\nimport { NumberOperatorDisplayNameEnum } from 'client/utils/operators/types';\n\nexport const OPERATOR_IS_GREATER_THAN: Operator<number> =\n  augmentWithDisplayTextForBinaryOperator<number>({\n    displayName: NumberOperatorDisplayNameEnum.IsGreaterThan,\n    name: 'greater_than',\n    compute: (value) => `>${value as number}`,\n    doesNotNeedValue: false,\n  });\n\nexport const OPERATOR_IS_LESS_THAN: Operator<number> =\n  augmentWithDisplayTextForBinaryOperator<number>({\n    displayName: NumberOperatorDisplayNameEnum.IsLessThan,\n    name: 'less_than',\n    compute: (value) => `<${value as number}`,\n    doesNotNeedValue: false,\n  });\n","import type { Operator } from 'client/utils/operators/common-operators';\n\nimport {\n  augmentWithDisplayTextForBinaryOperator,\n  formatValue,\n} from 'client/utils/operators/common-operators';\nimport { StringOperatorDisplayNameEnum } from 'client/utils/operators/types';\n\nexport const OPERATOR_STARTS_WITH: Operator<string> =\n  augmentWithDisplayTextForBinaryOperator<string>({\n    displayName: StringOperatorDisplayNameEnum.StartsWith,\n    name: 'starts_with',\n    compute: (value) => `${value as string}*`,\n    doesNotNeedValue: false,\n  });\n\nexport const OPERATOR_ENDS_WITH: Operator<string> = augmentWithDisplayTextForBinaryOperator<string>(\n  {\n    displayName: StringOperatorDisplayNameEnum.EndsWith,\n    name: 'ends_with',\n    compute: (value) => `*${value as string}`,\n    doesNotNeedValue: false,\n  },\n);\n\nexport const OPERATOR_CONTAINS: Operator<string> = augmentWithDisplayTextForBinaryOperator<string>({\n  displayName: StringOperatorDisplayNameEnum.Contains,\n  name: 'contains',\n  compute: (value) => `*${value as string}*`,\n  doesNotNeedValue: false,\n});\n\nexport const OPERATOR_ICONTAINS: Operator<string> = augmentWithDisplayTextForBinaryOperator<string>(\n  {\n    displayName: StringOperatorDisplayNameEnum.IContains,\n    name: 'i_contains',\n    compute: (value) => `*${value as string}*`,\n    doesNotNeedValue: false,\n  },\n);\n\nexport const OPERATOR_NOT_CONTAINS: Operator<string> = {\n  displayName: StringOperatorDisplayNameEnum.NotContains,\n  name: 'not_contains',\n  compute: (value) => `!*${value as string}*`,\n  doesNotNeedValue: false,\n  generateDisplayText: (value: string) => `does not contain ${formatValue(value)}`,\n};\n","export enum NumberOperatorDisplayNameEnum {\n  IsGreaterThan = 'is greater than',\n  IsLessThan = 'is less than',\n}\n\nexport enum StringOperatorDisplayNameEnum {\n  StartsWith = 'starts with',\n  EndsWith = 'ends with',\n  Contains = 'contains',\n  IContains = 'contains (case-insensitive)',\n  NotContains = 'not contains',\n}\n\nexport enum DateOperatorDisplayNameEnum {\n  IsAfter = 'is after',\n  IsBefore = 'is before',\n  IsToday = 'is today',\n  WasInPreviousXDays = 'was in previous X days',\n  WasYesterday = 'was yesterday',\n  WasInPreviousWeek = 'was in previous week',\n  WasInPreviousMonth = 'was in previous month',\n  WasInPreviousQuarter = 'was in previous quarter',\n  WasInPreviousYear = 'was in previous year',\n  IsTheseXDaysToDate = 'is these X days to date',\n  IsThisWeekToDate = 'is this week to date',\n  IsThisMonthToDate = 'is this month to date',\n  IsThisQuarterToDate = 'is this quarter to date',\n  IsThisYearToDate = 'is this year to date',\n  IsInThePast = 'is in the past',\n  IsInTheFuture = 'is in the future',\n  WasBeforeXHoursAgo = 'was before X hours ago',\n  IsAfterXHoursFromNow = 'is after X hours from now',\n}\n\nexport enum ArrayOperatorDisplayNameEnum {\n  IncludesAll = 'includes all',\n}\n\nexport enum CommonOperatorDisplayNameEnum {\n  Is = 'is',\n  IsNot = 'is not',\n  IsPresent = 'is present',\n  IsBlank = 'is blank',\n  IsIn = 'is in',\n}\n\nexport type OperatorDisplayNames =\n  | NumberOperatorDisplayNameEnum\n  | StringOperatorDisplayNameEnum\n  | DateOperatorDisplayNameEnum\n  | ArrayOperatorDisplayNameEnum\n  | CommonOperatorDisplayNameEnum;\n","// NOTICE: Generate a page title (e.g: \"Forest Admin ‣ Dashboard\").\nexport default function pageTitle(title, tokens) {\n  const defaultSuffix = title ? '' : ' ‣ Your admin panel, redefined.';\n  const subTitles = tokens && tokens.length > 0 ? ` ‣ ${tokens.join(' ')}` : defaultSuffix;\n  return `${title || 'Forest Admin'}${subTitles}`;\n}\n","// eslint-disable-next-line import/prefer-default-export\nexport function regularTextPaste(textToPaste: string) {\n  const activeElement = document.activeElement as HTMLInputElement | HTMLTextAreaElement;\n  const activeElementTagName = activeElement?.tagName?.toLowerCase();\n\n  if (\n    !activeElementTagName\n    || (activeElementTagName !== 'textarea' && activeElementTagName !== 'input')\n    || activeElement.readOnly\n  ) {\n    return;\n  }\n\n  const indexToPlaceCaret = activeElement.selectionStart + textToPaste.length;\n\n  activeElement.value =\n    activeElement.value.slice(0, activeElement.selectionStart)\n    + textToPaste\n    + activeElement.value.slice(activeElement.selectionEnd);\n\n  activeElement.setSelectionRange(indexToPlaceCaret, indexToPlaceCaret);\n  // We need to trigger manually the input event to update the value in Ember data.\n  activeElement.dispatchEvent(new Event('input'));\n}\n","// NOTICE: The new pricing only uses a \"per user\" calculation.\n//         Therefore, this function is not meant to be used for enterprise/grandfather plan\n\nimport { PlanTypesEnum, PlanUnitsEnum } from 'client/data/models/plan';\nimport { SubscriptionCommitmentsEnum } from 'client/data/models/subscription';\n\nconst YEARLY_DISCOUNT = 0.2;\n\n/**\n * @param {{\n *  price: string,\n *  unit: PlanUnitsEnum,\n *  unitCount: number|null\n * }} plan\n * @param {number} usersCount\n * @param {number} activitiesCount\n * @returns {number}\n */\nfunction computeBasePrice(plan, usersCount, activitiesCount) {\n  switch (plan.unit) {\n    case PlanUnitsEnum.User: {\n      const tranches = Math.ceil(usersCount / (plan.unitCount || 1));\n      return Number(plan.price) * Math.max(1, tranches);\n    }\n    case PlanUnitsEnum.Activity: {\n      const tranches = Math.ceil(activitiesCount / (plan.unitCount || 1));\n      return Number(plan.price) * Math.max(1, tranches);\n    }\n    default:\n      return Number(plan.price);\n  }\n}\n\nexport default {\n  /**\n   * @param {{\n   *  price: string,\n   *  unit: PlanUnitsEnum,\n   *  unitCount: number|null\n   * }} plan\n   * @param {SubscriptionCommitmentsEnum} commitment\n   * @param {number} usersCount\n   * @param {number} activitiesCount\n   * @returns {number}\n   */\n  calculatePriceByPlanAndCommitmentForProject(plan, commitment, usersCount, activitiesCount) {\n    let discount = 0;\n\n    if (\n      commitment === SubscriptionCommitmentsEnum.Yearly\n      && plan.type !== PlanTypesEnum.Enterprise\n    ) {\n      discount = YEARLY_DISCOUNT;\n    }\n\n    return computeBasePrice(plan, usersCount, activitiesCount) * (1 - discount);\n  },\n};\n","import formatNumber from 'client/utils/format-number';\n\nexport default {\n  /**\n   * @param {*} widgetConfiguration\n   * @returns {boolean}\n   */\n  isCents(widgetConfiguration) {\n    const base = widgetConfiguration?.parameters?.base;\n    return !!base && base === 'Cents';\n  },\n  getCurrency(widgetConfiguration) {\n    return widgetConfiguration?.parameters?.currency;\n  },\n  /**\n   * @param {*} widgetConfiguration\n   * @param {number} value\n   * @returns {number}\n   */\n  getAmount(widgetConfiguration, value) {\n    return this.isCents(widgetConfiguration) ? value / 100 : value;\n  },\n  getAmountFormatted(amount, locale, currency) {\n    return formatNumber(amount, { locale, currency });\n  },\n  /**\n   * @param {number} value\n   * @param {{parameters: { currency: string, base: string }}} widgetConfiguration\n   * @param {string} locale\n   * @returns {string}\n   */\n  format(value, widgetConfiguration, locale) {\n    const currency = this.getCurrency(widgetConfiguration);\n    const amount = this.getAmount(widgetConfiguration, value);\n    return currency\n      ? this.getAmountFormatted(amount, locale, currency)\n      : formatNumber(amount, { locale, minimumFractionDigits: 2 });\n  },\n};\n","const COMPUTED_IMPORTS = [\n  'alias',\n  'and',\n  'bool',\n  'collect',\n  'empty',\n  'equal',\n  'filterBy',\n  'filterProperty',\n  'filter',\n  'gte',\n  'gt',\n  'intersect',\n  'lt',\n  'lte',\n  'mapBy',\n  'mapProperty',\n  'map',\n  'match',\n  'max',\n  'min',\n  'none',\n  'notEmpty',\n  'not',\n  'oneWay',\n  'or',\n  'readOnly',\n  'reads',\n  'setDiff',\n  'sort',\n  'sum',\n  'union',\n  'uniqBy',\n  'uniqProperty',\n  'uniq',\n  'volatile',\n];\n\nexport function removeImportIfNotUsed(model, fullImport, variableName) {\n  if (!model.componentCode) {\n    return;\n  }\n  if (!model.componentCode?.replace(fullImport, '').includes(variableName)) {\n    model.componentCode = model.componentCode.replace(fullImport, '');\n  }\n}\n\nexport function migrateComputedImports(model) {\n  COMPUTED_IMPORTS.forEach((importName) => {\n    if (model.componentCode?.includes(`computed.${importName}`)) {\n      model.componentCode = `import { ${importName} } from '@ember/object/computed';\\n${model.componentCode.replace(\n        new RegExp(`(Ember.)?computed.${importName}`, 'g'),\n        importName,\n      )}`;\n    }\n  });\n  if (model.componentCode?.includes('Ember.computed')) {\n    model.componentCode = `import { computed } from '@ember/object';\\n${model.componentCode.replaceAll(\n      'Ember.computed',\n      'computed',\n    )}`;\n  }\n  removeImportIfNotUsed(model, \"import { computed } from '@ember/object';\\n\", 'computed(');\n}\n\nexport function migrateRunImports(model) {\n  const RUN_IMPORTS = [\n    'bind',\n    'debounce',\n    'later',\n    'next',\n    'once',\n    'scheduleOnce',\n    'schedule',\n    'throttle',\n  ];\n  RUN_IMPORTS.forEach((importName) => {\n    if (model.componentCode?.includes(`run.${importName}`)) {\n      model.componentCode = `import { ${importName} } from '@ember/runloop';\\n${model.componentCode.replace(\n        new RegExp(`(Ember.)?run.${importName}`, 'g'),\n        `${importName}`,\n      )}`;\n    }\n  });\n\n  if (model.componentCode?.includes('Ember.run')) {\n    model.componentCode = `import { run } from '@ember/runloop';\\n${model.componentCode.replaceAll(\n      'Ember.run',\n      'run',\n    )}`;\n  }\n\n  removeImportIfNotUsed(model, \"import { run } from '@ember/runloop';\\n\", 'run(');\n}\n\nexport function migrateComponentImport(model) {\n  if (model.componentCode?.includes('Ember.Component')) {\n    model.componentCode = `import Component from '@ember/component';\\n${model.componentCode.replaceAll(\n      'Ember.Component',\n      'Component',\n    )}`;\n  }\n}\n\nexport function migrateServiceImports(model) {\n  if (model.componentCode?.includes('Ember.Service')) {\n    model.componentCode = `import Service from '@ember/service';\\n${model.componentCode.replaceAll(\n      'Ember.Service',\n      'Service',\n    )}`;\n  }\n  if (model.componentCode?.includes('Ember.inject.service')) {\n    model.componentCode = `import { service } from '@ember/service';\\n${model.componentCode.replaceAll(\n      'Ember.inject.service',\n      'service',\n    )}`;\n  }\n}\n\nexport function migrateJqueryImports(model) {\n  if (model.componentCode?.includes('Ember.$')) {\n    model.componentCode = `import $ from 'jquery';\\n${model.componentCode.replaceAll(\n      'Ember.$',\n      '$',\n    )}`;\n  }\n}\n","import { isArray } from '@ember/array';\nimport EmberComponent from '@ember/component';\nimport GlimmerComponent from '@glimmer/component';\n// eslint-disable-next-line no-restricted-imports\nimport types from 'prop-types';\n\nconst ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nfunction createRequiredCustomPropType(validator) {\n  return function (props, propName, componentName) {\n    const prop = props[propName];\n    if (prop === undefined || prop === null) {\n      return new Error(\n        `Missing prop \\`${propName}\\` supplied to \\`${componentName}\\`. Marked as required. Validation failed.`,\n      );\n    }\n    return validator(props, propName, componentName);\n  };\n}\n\n/**\n *\n * @param {import('prop-types').Requireable} validator\n * @returns {import('prop-types').Requireable}\n */\nfunction createCustomPropType(validator) {\n  const customPropType = validator;\n  customPropType.isRequired = createRequiredCustomPropType(validator);\n  return customPropType;\n}\n\nfunction overrideArrayValidator(props, propName, componentName) {\n  const prop = props[propName];\n  if (prop === undefined || prop === null || Array.isArray(prop) || isArray(prop)) {\n    return null;\n  }\n\n  return new Error(\n    `Invalid prop \\`${propName}\\` supplied to \\`${componentName}\\`. Expected \"array\", was \"${typeof prop}\". Validation failed.`,\n  );\n}\n\n/**\n *\n * @param {import('prop-types').Requireable} typeChecker\n * @returns {import('prop-types').Requireable}\n */\nfunction overrideArrayOfTypeChecker(typeChecker) {\n  function validate(props, propName, componentName, location, propFullName) {\n    if (typeof typeChecker !== 'function') {\n      return new Error(\n        `Property \\`${\n          propFullName || propName\n        }\\` of component \\`${componentName}\\` has invalid PropType notation inside arrayOf.`,\n      );\n    }\n\n    const propValue = props[propName];\n    if (propValue === undefined || propValue === null) {\n      return null;\n    }\n\n    if (!Array.isArray(propValue) && !isArray(propValue)) {\n      return new Error(\n        `Invalid ${location || ''} \\`${propFullName || propName}\\` of type `\n          + `\\`${typeof propValue}\\` supplied to \\`${componentName}\\`, expected an array.`,\n      );\n    }\n    // eslint-disable-next-line no-plusplus\n    for (let i = 0; i < propValue.length; ++i) {\n      const error = typeChecker(\n        propValue,\n        i,\n        componentName,\n        location,\n        `${propFullName || propName}[${i}]`,\n        ReactPropTypesSecret,\n      );\n      if (error instanceof Error) {\n        return error;\n      }\n    }\n    return null;\n  }\n  return createCustomPropType(validate);\n}\n\nfunction dateValidator(props, propName, componentName) {\n  const prop = props[propName];\n  if (prop === undefined || prop === null || prop instanceof Date || Date.parse(prop)) {\n    return null;\n  }\n  return new Error(\n    `Invalid prop \\`${propName}\\` supplied to \\`${componentName}\\`. Expected \"date\", was \"${typeof prop}\". Validation failed.`,\n  );\n}\n\nfunction componentValidator(props, propName, componentName) {\n  const prop = props[propName];\n  if (\n    prop === undefined\n    || prop === null\n    || prop instanceof EmberComponent\n    || prop instanceof GlimmerComponent\n    || prop.constructor?.name === 'CurriedValue'\n  ) {\n    return null;\n  }\n  return new Error(\n    `Invalid prop \\`${propName}\\` supplied to \\`${componentName}\\`. Expected \"component\", was \"${typeof prop}\". Validation failed.`,\n  );\n}\n\nfunction htmlSafeValidator(props, propName, componentName) {\n  const prop = props[propName];\n  if (\n    prop === undefined\n    || prop === null\n    || (prop.constructor?.name === 'SafeString' && !!prop.toHTML)\n  ) {\n    return null;\n  }\n  return new Error(\n    `Invalid prop \\`${propName}\\` supplied to \\`${componentName}\\`. Expected \"html-safe string\", was \"${typeof prop}\".Validation failed.`,\n  );\n}\n\nconst PropTypes = {\n  ...types,\n  array: createCustomPropType(overrideArrayValidator), // overrides PropTypes.array\n  arrayOf: overrideArrayOfTypeChecker, // overrides PropTypes.arrayOf\n  date: createCustomPropType(dateValidator),\n  component: createCustomPropType(componentValidator),\n  htmlSafe: createCustomPropType(htmlSafeValidator),\n};\n\nexport default PropTypes;\n","import { setProperties } from '@ember/object';\n\nexport function addQueryFilter(query, queryFilter) {\n  if (queryFilter) {\n    query.filters = JSON.stringify(queryFilter);\n  }\n}\n\nexport function getQueryPagination(number = 1, size = 25) {\n  return {\n    'page[number]': number,\n    'page[size]': size,\n  };\n}\n\n// NOTICE: By default, limit to 25 records to prevent timeconsuming queries.\nexport function addQueryPagination(query, number = 1, size = 25) {\n  setProperties(query, getQueryPagination(number, size));\n}\n\nexport function addQueryContext(query, context) {\n  if (context) {\n    query.context = context;\n  }\n}\n\nexport function getQuerySearch(value, searchToEdit = false) {\n  return {\n    search: value,\n    searchToEdit,\n  };\n}\n\nexport function addQuerySearch(query, value, searchToEdit = false) {\n  setProperties(query, getQuerySearch(value, searchToEdit));\n}\n\nexport function addQueryScope({ abilities, lianaFeatures }, query, collection) {\n  // applicationWideScopes feature does not require the scopes\n  // to be sent through filters anymore\n  if (\n    collection\n    && collection.scope\n    && collection.scope.get('filter.conditions.length')\n    && abilities.can('access to scopes')\n    && !lianaFeatures.isFeatureCompatible('applicationWideScopes', collection.rendering.environment)\n  ) {\n    addQueryFilter(query, collection.scope.get('filter.queryFilter'));\n  }\n}\n\nexport function getQueryFields(collection, columns, withRelationships = true) {\n  const params = {};\n  params[`fields[${collection.name}]`] = columns\n    .map((column) => column?.field?.fieldName)\n    .join(',');\n\n  if (withRelationships) {\n    columns.forEach((column) => {\n      if (column?.field?.referenceModel) {\n        params[`fields[${column?.field?.fieldName}]`] =\n          column?.field?.referenceModel?.displayField?.fieldName\n          || column?.field?.referenceModel?.primaryKey;\n      }\n    });\n  }\n\n  return params;\n}\n","import type { Context } from 'quill/modules/keyboard';\nimport type Toolbar from 'quill/modules/toolbar';\n\nimport Quill from 'quill';\nimport Block from 'quill/blots/block';\nimport BaseImageFormat from 'quill/formats/image';\nimport Strike from 'quill/formats/strike';\n\nimport YouTubeFormat from 'client/utils/quill/quill-format-youtube';\nimport AutoLink from 'client/utils/quill/quill-module-autolink';\nimport QuillResizeImage from 'client/utils/quill/quill-module-resize-image';\nimport ForestChatTheme from 'client/utils/quill/quill-theme-forest-chat';\nimport ForestRichTextTheme from 'client/utils/quill/quill-theme-forest-rich-text';\n\nconst ImageFormatAttributesList = ['alt', 'height', 'width', 'style'];\n\n// allows image styles for resizing\n// https://github.com/kensnyder/quill-image-resize-module/issues/43#issuecomment-537742972\nexport class ImageFormat extends BaseImageFormat {\n  declare static error: (text: string) => void;\n\n  static create(value: string) {\n    const element = BaseImageFormat.create(value) as HTMLImageElement;\n    if (element.src.length > 2_800_000) {\n      // 2Mb\n      element.src = '';\n      ImageFormat.error('Image too large, maximum size 2MB.');\n    }\n    return element;\n  }\n\n  static formats(domNode: HTMLElement) {\n    return ImageFormatAttributesList.reduce((formats, attribute) => {\n      if (domNode.hasAttribute(attribute)) {\n        formats[attribute] = domNode.getAttribute(attribute);\n      }\n      return formats;\n    }, {});\n  }\n\n  format(name: string, value: string) {\n    if (ImageFormatAttributesList.indexOf(name) > -1) {\n      if (value) {\n        this.domNode.setAttribute(name, value);\n      } else {\n        this.domNode.removeAttribute(name);\n      }\n    } else {\n      super.format(name, value);\n    }\n  }\n}\n\nexport function quillRegister() {\n  Strike.tagName = ['DEL'];\n  Block.tagName = 'DIV';\n  Quill.register(Strike, true);\n  Quill.register(Block, true);\n\n  Quill.register(ImageFormat, true);\n  Quill.register(YouTubeFormat, true);\n\n  Quill.register({\n    'themes/forest-chat': ForestChatTheme,\n    'themes/forest-rich-text': ForestRichTextTheme,\n    'modules/autolink': AutoLink,\n    'modules/resize': QuillResizeImage,\n  });\n}\n\nexport function addKeyBindings(quill: Quill, toolbar: Toolbar) {\n  // Add a binding to CMD + l to create link\n  quill.keyboard.addBinding({ key: 'l', shortKey: true }, (_range: Range, context: Context) => {\n    toolbar.handlers.link.call(toolbar, !context.format.link);\n  });\n}\n","import type { EmbedBlot } from 'parchment';\n\nimport Quill from 'quill';\n\nimport { isValidYouTubeUrl, normalizeToEmbedUrl } from 'client/utils/youtube-url-validator';\n\nconst BlockEmbed = Quill.import('blots/block/embed') as typeof EmbedBlot;\n\nconst YOUTUBE_ATTRIBUTES = ['height', 'width', 'style'];\n\nconst MIN_DIMENSION = 100;\nconst MAX_DIMENSION = 2000;\n\n/* eslint-disable sonarjs/code-eval */\nconst DANGEROUS_STYLE_PATTERNS = [\n  'javascript:',\n  'expression(',\n  'url(',\n  'position:fixed',\n  'position:absolute',\n];\n/* eslint-enable sonarjs/code-eval */\n\nfunction isValidDimension(value: string): boolean {\n  const num = parseInt(value, 10);\n  return !isNaN(num) && num >= MIN_DIMENSION && num <= MAX_DIMENSION;\n}\n\nfunction isValidStyle(value: string): boolean {\n  const lowerValue = value.toLowerCase();\n  return !DANGEROUS_STYLE_PATTERNS.some((pattern) => lowerValue.includes(pattern));\n}\n\ntype VideoUrlCallback = (url: string) => void;\n\nexport class YouTubeFormat extends BlockEmbed {\n  public static readonly blotName = 'video';\n  public static readonly className = 'ql-video';\n  public static readonly tagName = 'IFRAME';\n\n  // eslint-disable-next-line sonarjs/public-static-readonly\n  declare static requestVideoUrl: (onConfirm: VideoUrlCallback) => void;\n\n  declare domNode: HTMLIFrameElement;\n\n  static create(value: string): HTMLIFrameElement {\n    const node = super.create(value) as HTMLIFrameElement;\n    const embedUrl = normalizeToEmbedUrl(value);\n\n    if (!embedUrl) {\n      node.setAttribute('src', 'about:blank');\n      node.setAttribute('data-invalid', 'true');\n      node.setAttribute('title', 'Invalid YouTube URL');\n      node.style.display = 'none';\n      return node;\n    }\n\n    node.setAttribute('src', embedUrl);\n    node.setAttribute('data-test-video-iframe', '');\n    node.setAttribute('width', '560');\n    node.setAttribute('height', '315');\n    node.setAttribute('allowfullscreen', 'true');\n    node.setAttribute('allow', 'autoplay; clipboard-write; encrypted-media; picture-in-picture');\n    node.setAttribute('referrerpolicy', 'strict-origin-when-cross-origin');\n\n    node.style.display = 'block';\n    node.style.margin = '1rem 0';\n    node.style.maxWidth = '100%';\n    node.style.border = 'none';\n\n    return node;\n  }\n\n  static value(node: HTMLElement): string {\n    return node.getAttribute('src') || '';\n  }\n\n  static formats(domNode: HTMLElement): Record<string, string | null> {\n    return YOUTUBE_ATTRIBUTES.reduce(\n      (acc, attribute) => {\n        if (domNode.hasAttribute(attribute)) {\n          acc[attribute] = domNode.getAttribute(attribute);\n        }\n        return acc;\n      },\n      {} as Record<string, string | null>,\n    );\n  }\n\n  static sanitize(url: string): string {\n    return normalizeToEmbedUrl(url) || '';\n  }\n\n  format(name: string, value: string): void {\n    if (!YOUTUBE_ATTRIBUTES.includes(name)) {\n      super.format(name, value);\n      return;\n    }\n\n    if (!value) {\n      this.domNode.removeAttribute(name);\n      return;\n    }\n\n    if ((name === 'width' || name === 'height') && !isValidDimension(value)) {\n      return;\n    }\n\n    if (name === 'style' && !isValidStyle(value)) {\n      return;\n    }\n\n    this.domNode.setAttribute(name, value);\n  }\n}\n\nexport function canInsertYouTubeVideo(url: string): boolean {\n  return isValidYouTubeUrl(url);\n}\n\nexport default YouTubeFormat;\n","import type { Range } from 'quill/core';\n\nimport Quill from 'quill';\nimport { Delta } from 'quill/core';\nimport Module from 'quill/core/module';\n\nexport type AutoLinkOptions = {\n  urlRegularExpression: RegExp;\n  mailRegularExpression: RegExp;\n};\n\nexport type Normalizer = (stringToNormalize: string) => string;\n\nconst defaults = {\n  urlRegularExpression: /(https?:\\/\\/|www\\.)[\\w-.]+\\.[\\w-.]+(\\/(\\S+)?)?/gi,\n  mailRegularExpression: /([\\w-.]+@[\\w-.]+\\.[\\w-.]+)/gi,\n};\n\nexport default class AutoLink extends Module {\n  declare quill: Quill;\n  declare options: AutoLinkOptions;\n  urlNormalizer: Normalizer;\n  mailNormalizer: Normalizer;\n  currentTextHighlight: string;\n  defaultOnPaste: CallableFunction;\n\n  constructor(quill: Quill, options?: Partial<AutoLinkOptions>) {\n    super(quill);\n    this.quill = quill;\n    this.options = { ...defaults, ...(options || {}) };\n    this.urlNormalizer = (url) => url;\n    this.mailNormalizer = (mail) => `mailto:${mail}`;\n\n    this.registerTypeListener();\n    this.registerPasteListener();\n    this.registerBlurListener();\n  }\n\n  registerPasteListener() {\n    // Preserves existing links\n    this.quill.clipboard.addMatcher('A', (node, delta) => {\n      const href = (node as HTMLElement).getAttribute('href');\n      const attributes = delta.ops[0]?.attributes;\n      if (attributes?.link != null) {\n        attributes.link = href;\n      }\n      return delta;\n    });\n\n    /**\n     * WARNING: quill.clipboard.addMatcher(Node.TEXT_NODE, autoLinkHandler)\n     * doesn't work in all cases.\n     * So we override the default quill.clipboard.onPaste to add the autolink use case\n     * if we don't detect link paste we keep the basic behavior\n     */\n    this.quill.clipboard.onPaste = (\n      range: Range,\n      {\n        text,\n        html,\n      }: {\n        text?: string;\n        html?: string;\n      },\n    ) => {\n      const formats = this.quill.getFormat(range.index);\n      const pastedDelta = this.quill.clipboard.convert(\n        {\n          text,\n          html,\n        },\n        formats,\n      );\n\n      let delta: Delta;\n\n      // If some text is selected by the user and we detect an URL\n      if (\n        range.length\n        && pastedDelta.ops.length === 1\n        && pastedDelta.ops.every(\n          ({ insert }) =>\n            insert\n            && typeof insert === 'string'\n            && Boolean(insert.match(this.options.urlRegularExpression)),\n        )\n      ) {\n        delta = new Delta()\n          .retain(range.index)\n          .delete(range.length)\n          .insert(this.quill.getText(range), { link: pastedDelta.ops[0].insert });\n      } else {\n        delta = new Delta().retain(range.index).delete(range.length).concat(pastedDelta);\n      }\n\n      this.quill.updateContents(delta, Quill.sources.USER);\n      // range.length contributes to delta.length()\n      this.quill.setSelection(delta.length() - range.length, Quill.sources.SILENT);\n      this.quill.scrollSelectionIntoView();\n    };\n  }\n\n  registerTypeListener() {\n    this.quill.on('text-change', (delta) => {\n      const { ops } = delta;\n\n      // Only return true, if last operation includes whitespace inserts\n      // Equivalent to listening for enter, tab or space\n      if (!ops || ops.length < 1 || ops.length > 2) {\n        return;\n      }\n\n      const lastOp = ops[ops.length - 1];\n      if (!lastOp.insert || typeof lastOp.insert !== 'string' || !lastOp.insert.match(/\\s/)) {\n        return;\n      }\n      this.checkTextForUrl(!!lastOp.insert.match(/[ \\t]/));\n    });\n  }\n\n  registerBlurListener() {\n    this.quill.root.addEventListener('blur', () => {\n      this.checkTextForUrl();\n    });\n  }\n\n  checkTextForUrl(triggeredByInlineWhitespace = false) {\n    const sel = this.quill.getSelection();\n    if (!sel) {\n      return;\n    }\n    const [leaf] = this.quill.getLeaf(sel.index);\n    const leafIndex = this.quill.getIndex(leaf);\n\n    const leafValue = leaf?.value();\n\n    if (!leafValue) {\n      return;\n    }\n\n    // We only care about the leaf until the current cursor position\n    const relevantLength = sel.index - leafIndex;\n    if (typeof leafValue !== 'string') return;\n\n    const text = leafValue.slice(0, relevantLength);\n    if (!text || leaf.parent.domNode.localName === 'a') {\n      return;\n    }\n\n    const nextLetter = (leaf.value() as string)[relevantLength];\n    // Do not proceed if we are in the middle of a word\n    if (nextLetter != null && nextLetter.match(/\\S/)) {\n      return;\n    }\n\n    const bailOutEndingRegex = triggeredByInlineWhitespace ? /\\s\\s$/ : /\\s$/;\n    if (text.match(bailOutEndingRegex)) {\n      return;\n    }\n\n    const urlMatches = text.match(this.options.urlRegularExpression);\n    const mailMatches = text.match(this.options.mailRegularExpression);\n    if (urlMatches) {\n      this.handleMatches(leafIndex, text, urlMatches, this.urlNormalizer);\n    } else if (mailMatches) {\n      this.handleMatches(leafIndex, text, mailMatches, this.mailNormalizer);\n    }\n  }\n\n  handleMatches(\n    leafIndex: number,\n    text: string,\n    matches: RegExpMatchArray,\n    normalizer: Normalizer,\n  ) {\n    const match = matches.pop();\n    const matchIndex = text.lastIndexOf(match);\n    const after = text.split(match).pop();\n    if (after.match(/\\S/)) {\n      return;\n    }\n    this.updateText(leafIndex + matchIndex, match.trim(), normalizer);\n  }\n\n  updateText(index: number, string: string, normalizer: Normalizer) {\n    const ops = new Delta().retain(index).retain(string.length, { link: normalizer(string) });\n    this.quill.updateContents(ops);\n  }\n}\n","// code adapted from https://github.com/hunghg255/quill-resize-image\n/* eslint-disable no-restricted-globals */\n\nimport type Quill from 'quill';\n\ninterface Size {\n  width: number;\n  height: number;\n}\ninterface Position {\n  left: number;\n  top: number;\n  width: number;\n  height: number;\n}\nclass ResizeElement extends HTMLElement {\n  public originSize?: Size | null = null;\n}\n\ntype OnResizeEndCallback = (width: number, height: number) => void;\n\nclass ResizePlugin {\n  resizeTarget: ResizeElement;\n  resizer: HTMLElement | null = null;\n  container: HTMLElement;\n  editor: HTMLElement;\n  startResizePosition: Position | null = null;\n  onResizeEnd?: OnResizeEndCallback;\n\n  constructor(\n    resizeTarget: ResizeElement,\n    container: HTMLElement,\n    editor: HTMLElement,\n    onResizeEnd?: OnResizeEndCallback,\n  ) {\n    this.resizeTarget = resizeTarget;\n    this.onResizeEnd = onResizeEnd;\n    if (!resizeTarget.originSize) {\n      resizeTarget.originSize = {\n        width: resizeTarget.clientWidth,\n        height: resizeTarget.clientHeight,\n      };\n    }\n\n    this.editor = editor;\n    this.container = container;\n    this.initResizer();\n    this.positionResizerToTarget(resizeTarget);\n\n    this.resizing = this.resizing.bind(this);\n    this.endResize = this.endResize.bind(this);\n    this.startResize = this.startResize.bind(this);\n    this.onScroll = this.onScroll.bind(this);\n    this.bindEvents();\n  }\n\n  initResizer() {\n    let resizer: HTMLElement | null = this.container.querySelector('#editor-resizer');\n    if (!resizer) {\n      resizer = document.createElement('div');\n      resizer.setAttribute('id', 'editor-resizer');\n      resizer.setAttribute('data-test-editor-resizer', '');\n      resizer.style.position = 'absolute';\n      resizer.style['background-color'] = 'rgb(0 0 0 / 50%)';\n      resizer.style.border = '1px dashed white';\n      resizer.style.pointerEvents = 'auto';\n\n      resizer.innerHTML = `<div class=\"handler\" data-test-resize-handler style=\"\n    position: absolute;\n    right: -5px;\n    bottom: -5px;\n    width: 10px;\n    height: 10px;\n    cursor: nwse-resize;\n    user-select: none;\n    background-color: rgb(255 255 255 / 80%);\n    border: 1px solid #333;\n      \"/ >`;\n      this.container.appendChild(resizer);\n    }\n    this.resizer = resizer;\n  }\n\n  positionResizerToTarget(el: HTMLElement) {\n    if (this.resizer !== null) {\n      this.resizer.style.setProperty('left', `${el.offsetLeft}px`);\n      this.resizer.style.setProperty('top', `${el.offsetTop - this.editor.scrollTop}px`);\n      this.resizer.style.setProperty('width', `${el.clientWidth}px`);\n      this.resizer.style.setProperty('height', `${el.clientHeight}px`);\n    }\n  }\n\n  bindEvents() {\n    if (this.resizer !== null) {\n      this.resizer.addEventListener('mousedown', this.startResize);\n    }\n    window.addEventListener('mouseup', this.endResize);\n    window.addEventListener('mousemove', this.resizing);\n    this.editor.addEventListener('scroll', this.onScroll);\n  }\n\n  onScroll() {\n    this.positionResizerToTarget(this.resizeTarget);\n  }\n\n  startResize(e: MouseEvent) {\n    const target: HTMLElement = e.target as HTMLElement;\n    if (target.classList.contains('handler') && e.which === 1) {\n      this.startResizePosition = {\n        left: e.clientX,\n        top: e.clientY,\n        width: this.resizeTarget.clientWidth,\n        height: this.resizeTarget.clientHeight,\n      };\n    }\n  }\n\n  endResize() {\n    if (this.startResizePosition && this.onResizeEnd) {\n      const width = this.resizeTarget.clientWidth;\n      const height = this.resizeTarget.clientHeight;\n      this.onResizeEnd(width, height);\n    }\n    this.startResizePosition = null;\n  }\n\n  resizing(e: MouseEvent) {\n    if (!this.startResizePosition) return;\n    const deltaX: number = e.clientX - this.startResizePosition.left;\n    let { width } = this.startResizePosition;\n    width += deltaX;\n\n    // Constrain width to container bounds (min 30px, max container width)\n    const maxWidth = this.editor.clientWidth;\n    width = Math.max(30, Math.min(width, maxWidth));\n\n    const { originSize } = this.resizeTarget;\n    const rate: number = originSize.height / originSize.width;\n    const height = rate * width;\n\n    this.resizeTarget.style.setProperty('width', `${width}px`);\n    this.resizeTarget.style.setProperty('height', `${height}px`);\n    this.positionResizerToTarget(this.resizeTarget);\n  }\n\n  destroy() {\n    this.container.removeChild(this.resizer);\n    window.removeEventListener('mouseup', this.endResize);\n    window.removeEventListener('mousemove', this.resizing);\n    this.editor.removeEventListener('scroll', this.onScroll);\n    this.resizer = null;\n  }\n}\n\ninterface OverlayEntry {\n  iframe: HTMLIFrameElement;\n  overlay: HTMLElement;\n  removeScrollListener: () => void;\n}\n\nfunction QuillResizeImage(quill: Quill) {\n  const container: HTMLElement = quill.root;\n  let resizeTarget: HTMLElement | null = null;\n  let resizePlugin: ResizePlugin | null = null;\n  const overlayEntries: OverlayEntry[] = [];\n\n  const deselect = () => {\n    resizePlugin?.destroy?.();\n    resizePlugin = null;\n    resizeTarget = null;\n  };\n\n  const deleteSelectedElement = () => {\n    if (!resizeTarget) return;\n\n    const blot = quill.scroll.find(resizeTarget);\n    if (blot) {\n      const index = quill.getIndex(blot);\n      quill.deleteText(index, 1);\n    }\n    deselect();\n  };\n\n  const handleKeydown = (e: KeyboardEvent) => {\n    if (!resizeTarget) return;\n\n    if (e.key === 'Delete' || e.key === 'Backspace') {\n      e.preventDefault();\n      deleteSelectedElement();\n    }\n  };\n\n  const selectForResize = (target: HTMLElement) => {\n    resizePlugin?.destroy?.();\n    resizeTarget = target;\n    resizePlugin = new ResizePlugin(target, container.parentElement, container, (width, height) => {\n      const blot = quill.scroll.find(target) as { format?: (name: string, value: string) => void };\n      if (blot?.format) {\n        blot.format('width', String(Math.round(width)));\n        blot.format('height', String(Math.round(height)));\n      }\n    });\n  };\n\n  const handleContainerClick = (e: MouseEvent) => {\n    const target = e.target as HTMLElement;\n    if (['img', 'video'].includes(target.tagName.toLowerCase())) {\n      selectForResize(target);\n    }\n  };\n\n  const handleDocumentMousedown = (e: MouseEvent) => {\n    const target = e.target as HTMLElement;\n    const isResizer = resizePlugin?.resizer?.contains?.(target);\n    const isOverlay = target.classList.contains('ql-video-overlay');\n\n    if (!isResizer && !isOverlay && target !== resizeTarget) {\n      deselect();\n    }\n  };\n\n  const createOverlay = (iframe: HTMLIFrameElement): OverlayEntry => {\n    const overlay = document.createElement('div');\n    overlay.className = 'ql-video-overlay';\n    overlay.setAttribute('data-test-video-overlay', '');\n    overlay.style.position = 'absolute';\n    overlay.style.cursor = 'pointer';\n    overlay.style.background = 'transparent';\n    overlay.style.zIndex = '1';\n\n    const updatePosition = () => {\n      overlay.style.left = `${iframe.offsetLeft}px`;\n      overlay.style.top = `${iframe.offsetTop - container.scrollTop}px`;\n      overlay.style.width = `${iframe.offsetWidth}px`;\n      overlay.style.height = `${iframe.offsetHeight}px`;\n    };\n    updatePosition();\n\n    container.addEventListener('scroll', updatePosition);\n    overlay.addEventListener('click', () => selectForResize(iframe));\n    container.parentElement?.appendChild(overlay);\n\n    return {\n      iframe,\n      overlay,\n      removeScrollListener: () => container.removeEventListener('scroll', updatePosition),\n    };\n  };\n\n  const syncOverlays = () => {\n    const iframes = container.querySelectorAll<HTMLIFrameElement>('iframe.ql-video');\n\n    // Add overlays for new iframes\n    iframes.forEach((iframe) => {\n      if (!overlayEntries.some((e) => e.iframe === iframe)) {\n        overlayEntries.push(createOverlay(iframe));\n      }\n    });\n\n    // Remove orphaned overlays\n    for (let i = overlayEntries.length - 1; i >= 0; i--) {\n      const entry = overlayEntries[i];\n      if (!container.contains(entry.iframe)) {\n        entry.removeScrollListener();\n        entry.overlay.remove();\n        overlayEntries.splice(i, 1);\n      }\n    }\n  };\n\n  container.addEventListener('click', handleContainerClick);\n  document.addEventListener('keydown', handleKeydown);\n  document.addEventListener('mousedown', handleDocumentMousedown, { capture: true });\n\n  syncOverlays();\n  const observer = new MutationObserver(syncOverlays);\n  observer.observe(container, { childList: true, subtree: true });\n\n  return () => {\n    observer.disconnect();\n    container.removeEventListener('click', handleContainerClick);\n    document.removeEventListener('keydown', handleKeydown);\n    document.removeEventListener('mousedown', handleDocumentMousedown, { capture: true });\n\n    overlayEntries.forEach((entry) => {\n      entry.removeScrollListener();\n      entry.overlay.remove();\n    });\n    overlayEntries.length = 0;\n\n    resizePlugin?.destroy?.();\n  };\n}\n\nexport default QuillResizeImage;\n","/* eslint-disable max-classes-per-file */\nimport type ChatFeatureService from 'client/features/chat/services/feature';\nimport type Quill from 'quill/core';\nimport type { ThemeOptions } from 'quill/core/theme';\nimport type Toolbar from 'quill/modules/toolbar';\n\nimport { merge } from 'lodash';\nimport BaseTheme from 'quill/themes/base';\n\nimport { addKeyBindings } from 'client/utils/quill/quill-common';\nimport { EMAIL_REGEX } from 'client/utils/regex';\n\ntype ForestToolbar = Toolbar & { chatFeatureService: ChatFeatureService; quill: Quill };\n\nclass ForestChatTheme extends BaseTheme {\n  public chatFeatureService: ChatFeatureService;\n\n  constructor(quill: Quill, options: ThemeOptions & { chatFeatureService: ChatFeatureService }) {\n    if (options.modules.toolbar != null && options.modules.toolbar.container == null) {\n      throw new Error('[DEV] You need to provide a toolbar container with all handler defined.');\n    }\n    super(quill, options);\n    // Well for the sake of god this is just a snow theme light\n    this.quill.container.classList.add('ql-snow');\n\n    // This is being pass within ChatFeatureService#initializeQuill\n    this.chatFeatureService = options.chatFeatureService;\n  }\n\n  extendToolbar(toolbar: ForestToolbar) {\n    if (toolbar.container != null) {\n      toolbar.container.classList.add('ql-snow');\n      toolbar.chatFeatureService = this.chatFeatureService;\n\n      addKeyBindings(this.quill, toolbar);\n    }\n  }\n}\n\nForestChatTheme.DEFAULTS = merge({}, BaseTheme.DEFAULTS, {\n  modules: {\n    toolbar: {\n      handlers: {\n        link(this: ForestToolbar, value: string) {\n          // Not really sure about this case duplicated from Quill default behavior\n          if (!value) {\n            this.quill.format('link', false);\n            return;\n          }\n\n          const range = this.quill.getSelection();\n          if (range == null || range.length === 0) return;\n          const preview = this.quill.getText(range);\n\n          if (EMAIL_REGEX.test(preview) && preview.indexOf('mailto:') !== 0) {\n            this.chatFeatureService.startLinkEdition(`mailto:${preview}`);\n          } else {\n            this.chatFeatureService.startLinkEdition('');\n          }\n        },\n      },\n    },\n  },\n} as ThemeOptions);\n\nexport default ForestChatTheme;\n","import type Toolbar from 'quill/modules/toolbar';\n\nimport SnowTheme from 'quill/themes/snow';\n\nimport { addKeyBindings } from 'client/utils/quill/quill-common';\nimport { YouTubeFormat } from 'client/utils/quill/quill-format-youtube';\nimport { EMAIL_REGEX } from 'client/utils/regex';\nimport { normalizeToEmbedUrl } from 'client/utils/youtube-url-validator';\n\nconst forestIcons = {\n  align: {\n    '': `format_align_left`,\n    center: `format_align_center`,\n    right: `format_align_right`,\n    justify: `format_align_justify`,\n  },\n  background: `format_color_fill`,\n  blockquote: `format_quote`,\n  bold: 'format_bold',\n  clean: 'format_clean',\n  code: `code`,\n  'code-block': 'code',\n  color: 'format_color_text',\n  direction: {\n    '': 'format_textdirection_l_to_r',\n    rtl: 'format_textdirection_r_to_l',\n  },\n  formula: 'medical_information',\n  header: {\n    '1': 'title',\n    '2': 'title',\n    '3': 'title',\n    '4': 'title',\n  },\n  italic: 'format_italic',\n  image: 'image',\n  indent: {\n    '+1': 'format_indent_increase',\n    '-1': 'format_indent_decrease',\n  },\n  link: 'link_outlined',\n  list: {\n    bullet: 'format_list_bulleted',\n    check: 'check_list',\n    ordered: 'format_list_numbered',\n  },\n  script: {\n    sub: 'subscript',\n    super: 'superscript',\n  },\n  strike: 'format_strikethrough',\n  table: 'table_chart',\n  underline: 'format_underline',\n  video: 'video_file',\n  undo: 'undo',\n  redo: 'redo',\n};\n\nconst mapper = (\n  icons: Record<string, Record<string, string> | string>,\n  size: 'normal' | 'small' | 'tiny' = 'small',\n) =>\n  Object.entries(icons).reduce((acc, [key, value]) => {\n    if (typeof value === 'string') {\n      acc[key] =\n        `<i class=\"material-icons c-beta-icon c-beta-icon--${size} c-beta-icon--vertical-centered\">${value}</i>`;\n    } else {\n      acc[key] = mapper(value);\n    }\n\n    return acc;\n  }, {}) as Record<string, Record<string, string> | string>;\n\nconst FOREST_ICONS = mapper(forestIcons);\nclass ForestRichTextTheme extends SnowTheme {\n  extendToolbar(toolbar: Toolbar) {\n    super.extendToolbar(toolbar);\n    this.tooltip.root.getElementsByTagName('input')[0].setAttribute('data-link', 'Enter a URL…');\n    if (toolbar.container != null) {\n      this.buildButtons(toolbar.container.querySelectorAll('button'), FOREST_ICONS);\n      this.buildPickers(toolbar.container.querySelectorAll('select'), FOREST_ICONS);\n    }\n    addKeyBindings(this.quill, toolbar);\n\n    toolbar.addHandler('link', (value: string) => {\n      // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n      // @ts-expect-error\n      const { tooltip } = this.quill.theme as {\n        tooltip: { edit: (str: 'link', str2: string) => void };\n      };\n      if (value) {\n        const range = this.quill.getSelection();\n        if (range == null || range.length === 0) return;\n        let preview = this.quill.getText(range);\n        if (EMAIL_REGEX.test(preview) && preview.indexOf('mailto:') !== 0) {\n          preview = `mailto:${preview}`;\n        }\n        tooltip.edit('link', preview);\n      } else {\n        tooltip.edit('link', '');\n      }\n    });\n\n    toolbar.addHandler('video', () => {\n      const range = this.quill.getSelection(true);\n      if (!range) return;\n\n      YouTubeFormat.requestVideoUrl((url: string) => {\n        const embedUrl = normalizeToEmbedUrl(url);\n        if (embedUrl) {\n          this.quill.insertEmbed(range.index, 'video', embedUrl, 'user');\n          this.quill.setSelection(range.index + 1, 0, 'silent');\n        }\n      });\n    });\n  }\n}\n\nexport default ForestRichTextTheme;\nexport { FOREST_ICONS };\n","import { setOwner } from '@ember/application';\n\nconst klassMap = new WeakMap();\n\nfunction ensureMapHasOwner(owner) {\n  if (!klassMap.has(owner)) {\n    klassMap.set(owner, new WeakMap());\n  }\n}\n\n/**\n * Memoizes the \"KlassWithOwner\" classes, so that only one is generated\n * for any given pair of Klass and owner. Otherwise, we generate a new\n * class for every render, which not only is bad for performance but also\n * breaks the way that the wrapper translates updates to props down to\n * the underlying React component.\n */\nexport default function grantOwnerAccess(Klass, owner) {\n  ensureMapHasOwner(owner);\n\n  const mapForOwner = klassMap.get(owner);\n\n  // Re-use the class we already created if possible\n  if (mapForOwner.has(Klass)) {\n    return mapForOwner.get(Klass);\n  }\n\n  const KlassWithOwner = class extends Klass {\n    constructor(...args) {\n      super(...args);\n\n      setOwner(this, owner);\n    }\n  };\n\n  mapForOwner.set(Klass, KlassWithOwner);\n\n  return KlassWithOwner;\n}\n","/* eslint-disable ember/no-classic-components */\nimport { getOwner } from '@ember/application';\nimport EmberComponent from '@ember/component';\nimport EmberMixin from '@ember/object/mixin';\nimport { schedule } from '@ember/runloop';\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\n\nimport grantOwnerAccess from 'client/utils/react/grant-owner-access';\nimport isFunctionalComponent from 'client/utils/react/is-functional-component';\nimport isMutableCell from 'client/utils/react/is-mutable-cell';\nimport YieldWrapper from 'client/utils/react/yield-wrapper';\n\n/*!\n * is-plain-object <https://github.com/jonschlinkert/is-plain-object>\n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */\n\nfunction isObject(o) {\n  return Object.prototype.toString.call(o) === '[object Object]';\n}\n\nexport function isPlainObject(o) {\n  if (isObject(o) === false) return false;\n\n  // If has modified constructor\n  const ctor = o.constructor;\n  if (ctor === undefined) return true;\n\n  // If has modified prototype\n  const prot = ctor.prototype;\n  if (isObject(prot) === false) return false;\n\n  // If constructor does not have an Object-specific method\n  // eslint-disable-next-line no-prototype-builtins\n  return prot.hasOwnProperty('isPrototypeOf');\n}\n\n/**\n * Wrap React compatible with Ember hooks\n *\n * @param {Class} Klass React-renderable component to render in Ember\n * @param {Object} mixinProps Ember mixin properties for Ember classic component wrapper node\n * @returns Ember-compatible React component\n */\nconst wrapReactComponent = (Klass, mixinProps) => {\n  // eslint-disable-next-line ember/no-new-mixins\n  const ComponentMixin = EmberMixin.create({ ...mixinProps });\n\n  // eslint-disable-next-line ember/no-classic-classes, ember/require-tagless-components\n  return EmberComponent.extend(ComponentMixin, {\n    /**\n     * Add type annotation for private `attrs` property on component\n     *\n     * Accounts for possibility of passing HBS props as MutableCell objects.\n     *\n     * @private\n     */\n    getReactProps() {\n      return Object.entries(this.attrs).reduce((props, [propName, propValue]) => {\n        const value = isMutableCell(propValue) ? propValue.value : propValue;\n        return {\n          ...props,\n          // ???: Derived POJOs recast as literals to handle Ember `hash` template helper props and avoid TypeError\n          [propName]: isPlainObject(value) ? { ...value } : value,\n        };\n      }, {});\n    },\n\n    /**\n     * Mount React element to DOM\n     *\n     * @private\n     */\n    mountElement() {\n      const { children, ...props } = this.getReactProps();\n      let childrenOrYield = children;\n\n      if (!childrenOrYield) {\n        const { childNodes } = this.element;\n        childrenOrYield = [\n          React.createElement(YieldWrapper, {\n            key: this.elementId,\n            nodes: [...childNodes],\n          }),\n        ];\n      }\n\n      const KlassToRender = isFunctionalComponent(Klass)\n        ? Klass\n        : grantOwnerAccess(Klass, getOwner(this));\n\n      if (!this.root) {\n        this.root = createRoot(this.element);\n      }\n      this.root.render(React.createElement(KlassToRender, props, childrenOrYield));\n    },\n\n    didUpdateAttrs() {\n      schedule('render', () => this.mountElement());\n    },\n\n    didInsertElement(...args) {\n      this._super(...args);\n\n      this.mountElement();\n    },\n\n    willDestroyElement(...args) {\n      this.root.unmount();\n\n      this._super(...args);\n    },\n  });\n};\n\n/**\n * Higher-order function for providing Ember hooks to a React component\n *\n * Can also be used as an ECMAScript decorator\n *\n * @param {Object} descriptor React renderable component\n * @param {Object} [mixinProps] Ember mixin properties for Ember classic component wrapper node\n * @returns Ember-compatible React component\n */\nexport default function WithEmberSupport(descriptor, mixinProps) {\n  // Assumes an object passed is metadata for a decorator\n  const usesDecorator = isPlainObject(descriptor);\n\n  return usesDecorator\n    ? function (target) {\n        return wrapReactComponent(target, descriptor);\n      }\n    : wrapReactComponent(descriptor, mixinProps);\n}\n","/** Detect whether a React component is a functional component */\nexport default function isFunctionalComponent(arg) {\n  return !(arg.prototype && typeof arg.prototype.render === 'function');\n}\n","function isObject(x) {\n  return typeof x === 'object' && x !== null;\n}\n/**\n * Detect whether a given prop value is an Ember-based (or Glimmer-based) `MutableCell` object.\n *\n * NOTE: A MutableCell object can be created via a native Symbol or a fallback Ember `enumerableSymbol` object\n * (when `Symbol` is not available in the build environment).\n *\n * @param {*} propValue Ember prop value to be passed to React\n * @returns {boolean}\n *\n * @see {@link https://github.com/emberjs/ember.js/blob/master/packages/%40ember/-internals/glimmer/lib/utils/process-args.ts}\n * @see {@link https://github.com/emberjs/ember.js/blob/21bd70c773dcc4bfe4883d7943e8a68d203b5bad/packages/%40ember/-internals/utils/lib/symbol.ts}\n * @private\n */\nexport default function isMutableCell(propValue) {\n  return Boolean(\n    isObject(propValue)\n      && propValue.constructor\n      && (propValue.constructor.name === 'MutableCell'\n        || Object.keys(propValue).some((propKey) => propKey.startsWith('__MUTABLE_CELL__'))),\n  );\n}\n","import { Component as ReactComponent, createElement } from 'react';\n\n/**\n * @see https://github.com/AltSchool/ember-cli-react/blob/78f8d09b1eab2d0b12cb4923a3dfd84d46b86f1d/addon/components/react-component.js\n * @hide\n */\nexport default class YieldWrapper extends ReactComponent {\n  componentDidMount() {\n    // Different with the integration guide, we avoid jQuery here\n    const fragment = document.createDocumentFragment();\n    this.props.nodes.forEach((node) => {\n      fragment.appendChild(node);\n    });\n\n    // This replaces the original DOM element\n    const element = this.el;\n    element.parentNode.replaceChild(fragment, element);\n  }\n\n  render() {\n    // This element is temporary. When this is mounted,\n    // it will be replaced by the children nodes, handled by Ember.\n    return createElement('span', {\n      ref: (el) => {\n        this.el = el;\n      },\n    });\n  }\n}\n","import { Promise } from 'rsvp';\n\nimport FileTypeUtils from 'client/utils/file-type';\n\nexport default function readWebApiFile(webApiFile, withName = false) {\n  return new Promise((resolve) => {\n    const reader = new FileReader();\n\n    reader.onload = (event) => {\n      let dataUrl = event.target.result;\n      dataUrl = FileTypeUtils.fixOctetStreamType(dataUrl, webApiFile.name);\n      if (webApiFile.name && withName) {\n        dataUrl = FileTypeUtils.injectFilename(dataUrl, webApiFile.name);\n      }\n\n      resolve(dataUrl);\n    };\n\n    reader.readAsDataURL(webApiFile);\n  });\n}\n","import window from 'ember-window-mock';\n\nexport default async function redirectToProjectSettings(router, project, settingsName) {\n  if (!project) {\n    window.location.href = router.urlFor('projects');\n    return;\n  }\n\n  let projectName;\n\n  try {\n    ({ projectName } = JSON.parse(window.Cookies.get('from')));\n    window.Cookies.remove('from');\n    // eslint-disable-next-line sonarjs/no-ignored-exceptions\n  } catch (error) {\n    projectName = project.name;\n  }\n\n  window.location.href = router.urlFor(`project.project-settings.${settingsName}`, projectName);\n}\n","export function computeValueToDisplay(value, record) {\n  const isStringNotEmpty = !!(!!value && `${value}`.trim());\n  const isIntegerZero = value === 0;\n\n  return isStringNotEmpty || isIntegerZero ? value.toString() : `#${record.id}`;\n}\n\nexport function getLinkValueToDisplay(collection, record) {\n  if (!record || !collection) {\n    return null;\n  }\n\n  const value = record.get(collection.get('displayFieldWithNamespace'));\n  return computeValueToDisplay(value, record);\n}\n\n/**\n * @param {unknown} collection\n * @param {unknown} record\n * @returns {string}\n */\nexport function getOptionValueToDisplay(collection, record) {\n  const value = record.get(collection.get('displayFieldWithNamespace'));\n  return computeValueToDisplay(value, record);\n}\n","// NOTICE: This regexp comes from https://emailregex.com. They created a community regexp that\n//         99.99% works for email validation.\nexport const EMAIL_REGEX =\n  /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n\nexport const PASSWORD_REGEX = /^(?=\\S*?[A-Z])(?=\\S*?[a-z])((?=\\S*?[0-9]))\\S{8,}$/;\n\nexport const REGEX_URL =\n  /(https?:\\/\\/)?[-a-zA-Z0-9@:%._+~#=]{2,256}\\.[a-z]{2,}(\\/[-a-zA-Z0-9._/]*)?/;\n\nexport const REGEX_HTTPS_URL =\n  /^(https:\\/\\/[-a-zA-Z0-9@:%._+~#=]{2,256}\\.[a-z]{2,}(\\/[-a-zA-Z0-9._/]*)?$)/;\n\nexport const REGEX_HTTP_URL =\n  /^https?:\\/\\/(www\\.)?(([-a-zA-Z0-9@:%._+~#=]{1,256}\\.[a-zA-Z0-9()]{2,})|(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}))([-a-zA-Z0-9()@:%_+.~#?&/=]*)$/;\n\n// https://datatracker.ietf.org/doc/html/rfc3986#section-3.3\nexport const REGEX_HTTPS_OR_LOCALHOST_URL =\n  /^(?:(https:\\/\\/[-a-zA-Z0-9@:%._+~#=]{2,256}\\.[a-z]{2,}(\\/[-a-zA-Z0-9._/]*)?$)|(https?:\\/\\/(localhost|127\\.0\\.0\\.1)(:\\d{2,5})?(\\/[-a-zA-Z0-9._/]*)?)$)/;\n\nexport const IP_ADDRESS_REGEX =\n  /^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/;\n\nexport const DNS_HOST_REGEX =\n  /^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])(\\.([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]))*$/;\n","export default function removeEmptyValuesFromObject<T extends object>(object: T) {\n  if (!object || !Object.keys(object).length) return null;\n\n  return Object.entries(object).reduce((acc: T, entry: [string, keyof T]) => {\n    const [key, value] = entry;\n    if (Array.isArray(value)) {\n      if (value.length > 0) acc[key] = value;\n      return acc;\n    }\n    if (typeof value === 'object') {\n      const cleanedObject = removeEmptyValuesFromObject(value);\n      if (cleanedObject && Object.keys(cleanedObject).length) {\n        acc[key] = cleanedObject;\n      }\n      return acc;\n    }\n    if (object[key] !== null && object[key] !== undefined) {\n      acc[key] = value;\n    }\n\n    return acc;\n  }, {} as T);\n}\n","import type LocalStorageService from 'client/legacy/services/local-storage';\n\ntype CollectionLocation = {\n  type: 'collection';\n  collectionName: string;\n};\n\ntype SummaryViewLocation = {\n  type: 'summaryView';\n  fieldName: string;\n  summaryViewComponentId?: string; // Pretty sure this one is actually useless\n};\n\nexport type RelatedDataLocation = {\n  type: 'relatedData';\n  fieldName: string;\n};\n\ntype WorkspaceLocation = {\n  type: 'workspace';\n  workspaceId: string;\n  workspaceComponentId: string;\n};\n\ntype ColumnLocation =\n  | CollectionLocation\n  | SummaryViewLocation\n  | RelatedDataLocation\n  | WorkspaceLocation;\n\ninterface IResizableColumnsState {\n  columns: Record<string, number>;\n  renderingId: string;\n  location: ColumnLocation;\n  get(key: string): number;\n  set(key: string, width: number): void;\n  localStorageKey: string;\n  writeToLocalStorage(localStorage: LocalStorageService): void;\n}\n\nexport default class ResizableColumnsState implements IResizableColumnsState {\n  readonly columns: Record<string, number>;\n  readonly renderingId: string;\n  readonly location: ColumnLocation;\n  readonly localStorageKey: string;\n  private readonly localStorage: LocalStorageService;\n\n  constructor(localStorage: LocalStorageService, renderingId: string, location: ColumnLocation) {\n    this.renderingId = renderingId;\n    this.location = location;\n    this.localStorageKey = `column_width_${this.renderingId}_${\n      this.location.type\n    }_${this.getLocalStorageEndKey()}`;\n    this.localStorage = localStorage;\n    this.columns =\n      (JSON.parse(localStorage.getItem(this.localStorageKey)) as Record<string, number>) || {};\n  }\n\n  private getLocalStorageEndKey() {\n    switch (this.location.type) {\n      case 'collection':\n        return this.location.collectionName;\n      case 'summaryView':\n        return `${this.location.fieldName}_${this.location.summaryViewComponentId}`;\n      case 'relatedData':\n        return this.location.fieldName;\n      case 'workspace':\n        return `${this.location.workspaceId}_${this.location.workspaceComponentId}`;\n      default:\n        return '';\n    }\n  }\n\n  public clear() {\n    this.localStorage.removeItem(this.localStorageKey);\n  }\n\n  public get(key: string) {\n    return this.columns[key];\n  }\n\n  public set(key: string, width: number) {\n    this.columns[key] = width;\n  }\n\n  public remove(key: string) {\n    delete this.columns[key];\n  }\n\n  public writeToLocalStorage() {\n    this.localStorage.setItem(this.localStorageKey, JSON.stringify(this.columns));\n  }\n}\n","/**\n * @param {import('@ember/routing/-private/route-info').default} currentRouteInfo\n * @param {string} routeName\n * @returns {import('@ember/routing/-private/route-info').default}\n */\nexport default function (currentRouteInfo, routeName) {\n  let routeInfo = currentRouteInfo;\n  while (routeInfo && routeInfo.name !== routeName) {\n    routeInfo = routeInfo.parent;\n  }\n  return routeInfo;\n}\n","/**\n * Returns a map of the paramName, paramValue for the routeInfo\n * @param {import('@ember/routing/-private/route-info').default} routeInfoObject\n * @returns {Map<string, string>}\n */\nexport function getNamedRouteParams(routeInfoObject) {\n  // NOTICE: retrieve name, params, and paramNames for every routes\n  /**\n   * @type {import('@ember/routing/-private/route-info').default[]}\n   */\n  let routesInfo = [];\n  /**\n   * @type {import('@ember/routing/-private/route-info').default}\n   */\n  let route = routeInfoObject;\n\n  while (route) {\n    routesInfo.pushObject({\n      name: route.name,\n      params: route.params,\n      paramNames: route.paramNames,\n    });\n    route = route.parent;\n  }\n\n  routesInfo = routesInfo.reverse();\n\n  // NOTICE: return params value in order from routes config\n  /**\n   * @type {string[]}\n   */\n  const paramsToRetrieveInOrder = [];\n  /**\n   * @type {Record<string, string>}\n   */\n  let currentParams = {};\n\n  if (routesInfo.length) {\n    routesInfo.forEach((routeInfo) => {\n      currentParams = {\n        ...routeInfo.params,\n        ...currentParams,\n      };\n      paramsToRetrieveInOrder.pushObjects(routeInfo.paramNames);\n    });\n  }\n\n  return new Map(paramsToRetrieveInOrder.map((param) => [param, currentParams[param]]));\n}\n/**\n * Returns the route params value (in order) from a routeInfos object\n * @param {import('@ember/routing/-private/route-info').default} routeInfoObject\n * @returns {Array<string>}\n */\nexport default function getRouteParams(routeInfoObject) {\n  return [...getNamedRouteParams(routeInfoObject).values()];\n}\n","export default function (currentRouteInfo) {\n  const routesInfo = {};\n  let route = currentRouteInfo;\n\n  while (route) {\n    routesInfo[route.name] = route.params;\n    route = route.parent;\n  }\n\n  return routesInfo;\n}\n","import type ApplicationInstance from '@ember/application/instance';\nimport type RouteInfo from '@ember/routing/-private/route-info';\nimport type RouteInfoWithAttributes from '@ember/routing/-private/route-info-with-attributes';\nimport type Route from '@ember/routing/route';\n\nimport { getOwner } from '@ember/application';\n\nexport function getSettingsRoute(context: unknown, currentRouteName: string) {\n  const owner = getOwner(context) as ApplicationInstance;\n  let routeName = currentRouteName;\n  let route = owner.lookup(`route:${routeName}`) as Route;\n\n  // Route can be null when there is no route.js file define in a folder\n  // This happen when you have an index folder most of the time\n  while (\n    routeName\n    && routeName.includes('.')\n    && (!route || !('isSettings' in route && route.isSettings))\n  ) {\n    routeName = routeName.substring(0, routeName.lastIndexOf('.'));\n    route = owner.lookup(`route:${routeName}`) as Route;\n  }\n\n  return route && 'isSettings' in route && route.isSettings ? route : null;\n}\n\nexport function isSettingsRoute(context: unknown, currentRouteName: string) {\n  return !!getSettingsRoute(context, currentRouteName);\n}\n\nconst oldRoutesToNewRoutes: Record<string, string> = {\n  googleAuthentication: 'google-authentication',\n  createProject: 'create-project',\n  'project.rendering.dashboard.view.chart.smartEdit':\n    'project.rendering.dashboard.view.chart.smart-edit',\n  'project.rendering.data.collection.list.viewCreate':\n    'project.rendering.data.collection.list.view-create',\n  'project.rendering.data.collection.list.viewCreate.newBelongsTo':\n    'project.rendering.data.collection.list.view-create.new-belongs-to',\n  'project.rendering.data.collection.list.viewCreate.viewHasMany':\n    'project.rendering.data.collection.list.view-create.view-has-many',\n  'project.rendering.data.collection.list.viewCreate.viewHasManyEmbedded':\n    'project.rendering.data.collection.list.view-create.view-has-many-embedded',\n  'project.rendering.data.collection.list.viewCreate.belongsToEmbeddedView':\n    'project.rendering.data.collection.list.view-create.belongs-to-embedded-view',\n  'project.rendering.data.collection.list.viewEdit':\n    'project.rendering.data.collection.list.view-edit',\n  'project.rendering.data.collection.list.viewEdit.detailsIntegration':\n    'project.rendering.data.collection.list.view-edit.details-integration',\n  'project.rendering.data.collection.list.viewEdit.newBelongsTo':\n    'project.rendering.data.collection.list.view-edit.new-belongs-to',\n  'project.rendering.data.collection.list.viewEdit.viewHasMany':\n    'project.rendering.data.collection.list.view-edit.view-has-many',\n  'project.rendering.data.collection.list.viewEdit.viewHasManyEmbedded':\n    'project.rendering.data.collection.list.view-edit.view-has-many-embedded',\n  'project.rendering.data.collection.list.viewEdit.belongsToEmbeddedView':\n    'project.rendering.data.collection.list.view-edit.belongs-to-embedded-view',\n  'project.projectSettings': 'project.project-settings',\n  'project.projectSettings.billing.manageYourPlan':\n    'project.project-settings.billing.manage-your-plan',\n  'project.projectSettings.roles.details.environmentPermissions':\n    'project.project-settings.roles.details.environment-permissions',\n  'project.projectSettings.roles.details.environmentPermissions.smartActions':\n    'project.project-settings.roles.details.environment-permissions.smart-actions',\n  loginSso: 'authentication.login.sso',\n  resetPassword: 'reset-password',\n  updatePassword: 'update-password',\n};\n\nconst oldRoutes = Object.keys(oldRoutesToNewRoutes).sort((a, b) => b.localeCompare(a));\n\nexport function replaceOldRouteNamesByNewRouteNames(\n  stringToReplace: string,\n  warningMessage: string,\n) {\n  if (typeof stringToReplace !== 'string') return stringToReplace;\n\n  let stringReplaced = stringToReplace;\n\n  oldRoutes.forEach((oldRouteName) => {\n    if (stringReplaced.includes(oldRouteName)) {\n      console.warn(\n        warningMessage,\n        `${oldRouteName} must be replaced by ${oldRoutesToNewRoutes[oldRouteName]}`,\n      );\n    }\n    stringReplaced = stringReplaced.replaceAll(oldRouteName, oldRoutesToNewRoutes[oldRouteName]);\n  });\n\n  return stringReplaced;\n}\n\nexport function isExitingTargetRoute(\n  from: RouteInfoWithAttributes,\n  to: RouteInfoWithAttributes | RouteInfo,\n  targetRoute: string,\n) {\n  const isComingFromTarget = from?.name?.startsWith(targetRoute);\n  const isGoingToTarget = to?.name?.startsWith(targetRoute);\n\n  return isComingFromTarget && !isGoingToTarget;\n}\n\nexport { default as getRouteInfo } from './route-info-getter';\nexport { default as getRouteParams } from './route-params';\nexport { default as getRouteStateParams } from './route-state-params-getter';\n","/* eslint-disable max-classes-per-file */\nimport type ForestSessionService from 'client/legacy/services/forest-session';\n\nimport { run } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport window from 'ember-window-mock';\nimport { Promise } from 'rsvp';\n\nimport evented from 'client/decorators/evented';\nimport { waitForNextRunLoop } from 'client/utils/ember-promise';\n\nconst CONSTRUCTOR_PROPERTIES = [\n  'url',\n  'method',\n  'paramNamespace',\n  'paramName',\n  'signingUrl',\n  'signingMethod',\n  'signingFetchSettings',\n];\n\ntype SignBody = { name?: string; type?: string; size?: number } & Record<string, unknown>;\ntype SignResponseLegacy = {\n  // generated by amazon-web-services-signer-legacy.ts\n  policy: string;\n  key: string;\n  signature: string;\n  endpoint?: string;\n  region?: string;\n  bucket?: string;\n};\n\ntype SignResponse = {\n  // generated by amazon-web-services-signer.ts\n  fields: Record<string, string>;\n  url: string;\n};\n\nclass EmptyClass {}\n\nexport default class S3Uploader extends evented<{\n  didError: Response;\n  didErrorOnSign: never;\n  didSign: SignBody;\n  didUpload: XMLDocument;\n  'didUpload.withHeaders': { data: XMLDocument; headers: Headers };\n  isAborting: never;\n}>(EmptyClass) {\n  @service session: ForestSessionService;\n\n  // declare on(eventName: 'didError', callback: (response: Response) => void): void;\n  // declare on(eventName: 'didErrorOnSign', callback: () => void): void;\n  // declare on(eventName: 'didSign', callback: (data: object) => void): void;\n  // declare on(eventName: 'didUpload', callback: (data: object) => void): void;\n  // declare on(\n  //   eventName: 'didUpload.withHeaders',\n  //   callback: (data: { data: object; headers: Headers }) => void,\n  // ): void;\n\n  constructor(properties?: Record<string, unknown>) {\n    super();\n\n    if (properties) {\n      const keys = Object.keys(properties);\n      CONSTRUCTOR_PROPERTIES.forEach((propertyName) => {\n        if (keys.includes(propertyName)) {\n          this[propertyName] = properties[propertyName];\n        }\n      });\n    }\n  }\n\n  /**\n   * Target url to upload to\n   *\n   * @property url\n   */\n  url: string = null;\n\n  /**\n   * ajax request method, by default it will be POST\n   *\n   * @property method\n   */\n  method: 'POST' | 'PUT' | 'PATCH' = 'POST';\n\n  /**\n   * Used to define a namespace for the file param and any extra data params\n   * that may be sent\n   *\n   * @property paramNamespace\n   */\n  paramNamespace: string = null;\n\n  /**\n   * The parameter name for the file(s) to be uploaded\n   *\n   * @property paramName\n   */\n  paramName = 'file';\n\n  /**\n   * Target url used to request a signed upload policy\n   *\n   * @property url\n   */\n  signingUrl = '/sign';\n\n  /**\n   * request method for signing\n   *\n   * @property method\n   */\n  signingMethod = 'GET';\n\n  /**\n   * request settings for signing\n   *\n   * @property method\n   */\n  signingFetchSettings = {};\n\n  /**\n   * request settings for upload\n   *\n   * @property method\n   */\n  fetchSettings = {};\n\n  /**\n   * Boolean property changed to true upon signing start and false upon\n   * signing end\n   *\n   * @property isSigning\n   */\n  isSigning = false;\n\n  /**\n   * Boolean property changed to true upon upload start and false upon upload\n   * end\n   *\n   * @property isUploading\n   */\n  isUploading = false;\n\n  private _controller?: AbortController;\n\n  private isIsLegacyResponse(\n    signResponse: SignResponse | SignResponseLegacy,\n  ): signResponse is SignResponseLegacy {\n    return !('url' in signResponse && 'fields' in signResponse);\n  }\n\n  /**\n   * Request signed upload policy and upload file(s) and any extra data\n   */\n  async upload(file: File, extra: SignBody = {}) {\n    const signData = await this.sign(file, extra);\n    const url = this.isIsLegacyResponse(signData)\n      ? S3Uploader.getUrlFromSignData(signData)\n      : signData.url;\n\n    const fields = this.isIsLegacyResponse(signData) ? signData : signData.fields;\n\n    this.isUploading = true;\n\n    const response = await this._fetch(url, this.createFormData(file, fields));\n\n    if (response.ok) {\n      const parser = new DOMParser();\n      const xml = parser.parseFromString(await response.text(), 'application/xml');\n      return run(() => this.didUpload(xml, response));\n    }\n    return run(() => Promise.reject(this.didError(response)));\n  }\n\n  /**\n   * Request signed upload policy\n   */\n  async sign(file: File, extra: SignBody = {}) {\n    const url = this.signingUrl;\n    const method = this.signingMethod;\n    const { signingFetchSettings } = this;\n\n    extra.name = file.name;\n    extra.type = file.type;\n    extra.size = file.size;\n\n    const settings: RequestInit = {\n      headers: {},\n      body: method.toLowerCase() === 'get' ? (extra as unknown as BodyInit) : JSON.stringify(extra),\n      method,\n      ...signingFetchSettings,\n    };\n    settings.headers['Content-Type'] = 'application/json';\n\n    this.isSigning = true;\n\n    const response = await window.fetch(url, settings);\n    if (response.ok) {\n      const jsonResponse = (await response.json()) as SignResponseLegacy | SignResponse;\n      await waitForNextRunLoop();\n      return this.didSign(jsonResponse);\n    }\n    await waitForNextRunLoop();\n    return Promise.reject(this.didErrorOnSign(response));\n  }\n\n  /**\n   * Creates the FormData object with the file(s) and any extra data\n   */\n  createFormData(files: FileList | File[] | Blob | File, extra: SignBody = {}) {\n    const formData = new FormData();\n\n    Object.keys(extra).forEach((prop) => {\n      if (Object.prototype.hasOwnProperty.call(extra, prop)) {\n        formData.append(this.toNamespacedParam(prop), extra[prop] as string);\n      }\n    });\n\n    // if is a array of files ...\n    if (files.constructor === FileList || files.constructor === Array) {\n      const paramKey = `${this.toNamespacedParam(this.paramName)}[]`;\n\n      for (let i = 0; i < files.length; i += 1) {\n        // FormData expects the key for arrays to be postfixed with empty\n        // brackets This same key is used each time a new item is added.\n        formData.append(paramKey, files[i]);\n      }\n    } else {\n      // if has only one file object ...\n      formData.append(this.toNamespacedParam(this.paramName), files as Blob);\n    }\n\n    return formData;\n  }\n\n  /**\n   * Returns the param name namespaced if a namespace exists\n   */\n  toNamespacedParam(name: string) {\n    return this.paramNamespace ? `${this.paramNamespace}[${name}]` : name;\n  }\n\n  static getUrlFromSignData(signData: { endpoint?: string; region?: string; bucket?: string }) {\n    let url: string;\n    if (signData.endpoint) {\n      url = signData.endpoint;\n      delete signData.endpoint;\n    } else if (signData.region) {\n      url = `https://s3-${signData.region}.amazonaws.com/${signData.bucket}`;\n      delete signData.region;\n    } else {\n      url = `https://${signData.bucket}.s3.amazonaws.com`;\n    }\n    return url;\n  }\n\n  /**\n   * Triggers isAborting event and sets isUploading to false\n   */\n  abort() {\n    this.isUploading = false;\n    this.trigger('isAborting');\n    this._controller?.abort();\n  }\n\n  _fetch(url: string, data: BodyInit) {\n    this._controller = new AbortController();\n    const { signal } = this._controller;\n\n    const options: RequestInit = {\n      body: data,\n      method: this.method,\n      ...this.fetchSettings,\n      signal,\n    };\n\n    return window.fetch(url, options);\n  }\n\n  /**\n   * Triggers didUpload and didUpload.withHeaders events with given params\n   * and sets isUploading to false\n   */\n  didUpload(data: XMLDocument, response: Response) {\n    this.isUploading = false;\n    this.trigger('didUpload', data);\n    this.trigger('didUpload.withHeaders', { data, headers: response.headers });\n    return data;\n  }\n\n  /**\n   * Triggers didError event with given params and sets isUploading to false\n   */\n  didError(response: Response) {\n    this.isUploading = false;\n\n    this.trigger('didError', response);\n\n    return response;\n  }\n\n  /**\n   * Triggers didErrorOnSign event and sets isSigning to false\n   */\n  didErrorOnSign(response: Response) {\n    this.isSigning = false;\n    this.trigger('didErrorOnSign');\n    this.didError(response);\n    return response;\n  }\n\n  /**\n   * Triggers didSign event and returns the signing data\n   */\n  didSign(data: SignResponseLegacy | SignResponse) {\n    this.trigger('didSign', data);\n    this.isSigning = false;\n    return data;\n  }\n}\n","function _getCompareFunction(options, parentKey, parentValue, jsonNode) {\n  if (options.compare) {\n    return (a, b) => {\n      const aobj = { key: a, value: jsonNode[a] };\n      const bobj = { key: b, value: jsonNode[b] };\n      return options.compare(aobj, bobj, parentKey, parentValue);\n    };\n  }\n  return undefined;\n}\n\nfunction _safeStringifyArray(jsonNode, stringifyItemFunction, { indent, space }) {\n  const out = jsonNode.map((item) => {\n    const itemStringified = stringifyItemFunction(item) || 'null';\n    return `${indent}${space}${itemStringified}`;\n  });\n  return `[${out.join(',')}${indent}]`;\n}\n\nfunction _safeStringifyObject(\n  jsonNode,\n  stringifyItemFunction,\n  { compare, indent, space, colonSeparator },\n) {\n  const keys = Object.keys(jsonNode).sort(compare);\n  const out = [];\n  keys.forEach((key) => {\n    const value = stringifyItemFunction(key);\n\n    if (!value) return;\n\n    const keyValue = `${JSON.stringify(key)}${colonSeparator}${value}`;\n\n    out.push(`${indent}${space}${keyValue}`);\n  });\n\n  return out;\n}\n\nfunction _safeStringifyRec(node, level, options, seen = [], parentKey = null, parentValue = null) {\n  const { space } = options;\n  const indent = space ? `\\n${new Array(level + 1).join(space)}` : '';\n  const colonSeparator = space ? ': ' : ':';\n  let jsonNode = node;\n\n  const compare = _getCompareFunction(options, parentKey, parentValue, jsonNode);\n\n  if (jsonNode && jsonNode.toJSON && typeof jsonNode.toJSON === 'function') {\n    jsonNode = jsonNode.toJSON();\n  }\n\n  if (jsonNode === undefined) {\n    return undefined;\n  }\n\n  // NOTICE: If it's not an object/array we don't have issue of order\n  if (typeof jsonNode !== 'object' || jsonNode === null) {\n    return JSON.stringify(jsonNode);\n  }\n\n  if (Array.isArray(jsonNode)) {\n    const stringifyItem = (item) =>\n      _safeStringifyRec(item, level + 1, options, seen, parentKey, parentValue);\n    return _safeStringifyArray(jsonNode, stringifyItem, { indent, space });\n  }\n\n  if (seen.includes(jsonNode)) {\n    throw new TypeError('Converting circular structure to JSON');\n  } else {\n    seen.push(jsonNode);\n  }\n\n  const stringifyItemFunction = (key) =>\n    _safeStringifyRec(jsonNode[key], level + 1, options, seen, key, jsonNode);\n  const out = _safeStringifyObject(jsonNode, stringifyItemFunction, {\n    indent,\n    space,\n    colonSeparator,\n    compare,\n  });\n\n  // NOTICE: Remove the current object from the seen object\n  seen.splice(seen.indexOf(jsonNode), 1);\n\n  return `{${out.join(',')}${indent}}`;\n}\n\n/**\n * Safely stringify an object.\n * Meaning you could stringify { data: [], included: [] } and { included: [], data: [] }\n * and compare the two strings, they will be equal !\n *\n * @param {Object} object\n * @param {{space: number, compare: Function}}\n */\nexport default function safeStringify(object, options = {}) {\n  let space = options.space || '';\n  if (typeof space === 'number') space = Array(space + 1).join(' ');\n\n  return _safeStringifyRec(object, 0, { ...options, space });\n}\n","import type Collection from 'client/data/models/collection';\nimport type Field from 'client/data/models/field';\nimport type {\n  EmbeddedType,\n  FieldInterface,\n  NestedFieldAttributes,\n} from 'client/decorators/model-field';\nimport type NestedField from 'client/utils/nested/field';\n\nimport { isArray } from '@ember/array';\nimport { isObject } from 'lodash';\n\nimport config from 'client/config/environment';\nimport { namespace } from 'client/utils/string-utils';\n\nexport interface CollectionTypedFieldInterface {\n  onlyForRelationships: boolean;\n}\nexport interface FieldTypedInterface {\n  fieldName: string;\n  reference?: string | null;\n  type: NestedFieldAttributes['type'];\n  isIdentifier: boolean;\n  relationship?: string | null;\n  integration?: string | null;\n  referenceModel: CollectionTypedFieldInterface | null;\n  isPolymorphic?: boolean;\n}\n\nexport type EmbeddedField = FieldTypedInterface & { type: EmbeddedType };\nexport type RelationshipField = FieldTypedInterface & { reference: string };\nexport type EmbeddedFieldHasMany = FieldTypedInterface & { type: [EmbeddedType] };\n\nexport function isDeep(fields: NestedFieldAttributes[]) {\n  // NOTICE: Detect fields having a type with embedded fields that also contains embedded fields\n  return fields.some(\n    (field) =>\n      typeof field.type !== 'string'\n      && (!!(field.type as { fields: unknown })?.fields\n        || !!(field.type as [{ fields: unknown }])?.firstObject?.fields),\n  );\n}\n\nexport function isRelationship(field: FieldTypedInterface): field is RelationshipField {\n  if (!field) {\n    return false;\n  }\n  return !!field.reference || !!field.isPolymorphic;\n}\n\nexport function isHasMany(field: FieldTypedInterface) {\n  if (!field) {\n    return false;\n  }\n  return isRelationship(field) && isArray(field.type);\n}\n\nexport function isBelongsTo(field: FieldTypedInterface) {\n  if (!field) {\n    return false;\n  }\n  return isRelationship(field) && !isHasMany(field);\n}\n\nexport function isHasManyRelationship(field: FieldTypedInterface) {\n  if (!field) {\n    return false;\n  }\n  if (field.relationship) {\n    return ['HasMany', 'BelongsToMany'].includes(field.relationship);\n  }\n  return isHasMany(field);\n}\n\nexport function isInlineBelongsToField(field: FieldTypedInterface): boolean {\n  if (!field) {\n    return false;\n  }\n  return (\n    isBelongsTo(field)\n    && !!field.referenceModel?.onlyForRelationships\n    && field.integration === 'intercom'\n  );\n}\n\nexport function isEmbeddedBelongsTo(field: FieldTypedInterface): field is EmbeddedField {\n  if (!field) {\n    return false;\n  }\n  return (\n    !!field.type\n    && typeof field.type === 'object'\n    && !!(field.type as { fields: NestedFieldAttributes[] }).fields\n  );\n}\n\nexport function isEmbeddedBelongsToDeep(field: FieldTypedInterface) {\n  if (!field) {\n    return false;\n  }\n  return isEmbeddedBelongsTo(field) && isDeep(field.type.fields);\n}\n\nexport function isEmbeddedHasMany(field: FieldTypedInterface): field is EmbeddedFieldHasMany {\n  if (!field) {\n    return false;\n  }\n  return (\n    !isRelationship(field)\n    && isArray(field.type)\n    && !!field.type[0]\n    && typeof field.type[0] === 'object'\n    && !!field.type[0].fields\n  );\n}\n\nexport function isEmbeddedHasManyDeep(field: FieldTypedInterface) {\n  if (!field) {\n    return false;\n  }\n  return isEmbeddedHasMany(field) && isDeep(field.type[0].fields);\n}\n\nexport function isEmbeddedHasManyString(field: FieldTypedInterface) {\n  if (!field) {\n    return false;\n  }\n  return (\n    !isRelationship(field)\n    && isArray(field.type)\n    && !!field.type[0]\n    && (typeof field.type[0] === 'string' ||\n      // NOTICE: Embedded HasMany Enums detection.\n      !!(\n        field.type[0].fields\n        && field.type[0].fields[0]\n        && field.type[0].fields[0].type === 'String'\n        && field.type[0].fields[1]\n        && field.type[0].fields[1].field === 'enum'\n      ))\n  );\n}\n\nexport function isPlainType(field: FieldInterface) {\n  if (!field) {\n    return false;\n  }\n  if (typeof field.type !== 'string') {\n    return false;\n  }\n\n  const type = field.type ? field.type.toLowerCase() : null;\n  return !!type && ['string', 'number', 'boolean', 'date'].includes(type);\n}\n\nexport function isArrayType(\n  field: FieldTypedInterface,\n): field is FieldTypedInterface & { type: [string] | NestedFieldAttributes[] } {\n  return isArray(field.type);\n}\n\nexport function isArrayOfIntegerType(field: FieldTypedInterface) {\n  if (!field || !isArray(field.type)) {\n    return false;\n  }\n  return isArrayType(field) && field.type.firstObject === 'Number';\n}\n\nexport function isPlainArray(field: FieldTypedInterface) {\n  if (!field) {\n    return false;\n  }\n  return !field.reference && isArrayType(field) && !isEmbeddedHasMany(field);\n}\n\nexport function isPlainField(field: FieldTypedInterface) {\n  if (!field) {\n    return false;\n  }\n  return !isRelationship(field) && field.fieldName !== 'id' && !!field.type;\n}\n\nexport function isIdField(field: { fieldName: string }) {\n  if (!field) {\n    return false;\n  }\n  return ['id', '_id'].includes(field.fieldName);\n}\n\nexport function isGeneratedAttribute(attr: { options: { generated: boolean } }) {\n  return attr.options.generated === true;\n}\n\nexport function getAttributeName(field: FieldTypedInterface) {\n  let attributeName = field.fieldName;\n\n  if (attributeName === 'id') {\n    return field.isIdentifier ? 'id' : namespace(config.APP.models.nonIdentifierIdFieldAlias, '-');\n  }\n  if (attributeName === '_id') {\n    return namespace(field.fieldName, '-');\n  }\n\n  if (isHasMany(field)) {\n    attributeName += 'Ids';\n  } else if (isBelongsTo(field)) {\n    attributeName += 'Id';\n  } else {\n    attributeName = namespace(attributeName, '-');\n  }\n\n  return attributeName;\n}\n\nexport function replaceIfNeeded(value: string, from: string, to: string) {\n  if (value.includes(from)) return value.replaceAll(from, to);\n  return value;\n}\n\nexport function renameField(field: Field | NestedField, from: string, to: string) {\n  field.fieldName = replaceIfNeeded(field.fieldName, from, to);\n}\n\nexport function replaceKeysInObject(\n  attributes: { [key: string]: unknown } | string | number | boolean,\n  from: string,\n  to: string,\n) {\n  if (isObject(attributes)) {\n    Object.entries(attributes).forEach(([attributeName, value]) => {\n      if (attributeName.includes(from)) {\n        const replaced = attributeName.replaceAll(from, to);\n        attributes[replaced] = value;\n        delete attributes[attributeName];\n      }\n    });\n  }\n}\n\nexport function replaceKeysInObjectIfNeeded(\n  collection: Collection,\n  hashAttributes: object,\n  from: string,\n  to: string,\n) {\n  Object.entries(hashAttributes).forEach(([attributeValue, value]) => {\n    const field = collection.fields.find((f) => f.fieldName === attributeValue);\n    const willBeDisplayedAsRawJson = !!field && isEmbeddedBelongsToDeep(field);\n    if (!willBeDisplayedAsRawJson)\n      replaceKeysInObject(value as { [key: string]: unknown }, from, to);\n  });\n}\n\nexport function replaceAllKeysInObject(\n  attributes: { [key: string]: string | number | boolean | { [key: string]: unknown } },\n  from: string,\n  to: string,\n) {\n  Object.values(attributes).forEach((value) => {\n    replaceKeysInObject(value, from, to);\n  });\n}\n\nexport default {\n  isBelongsTo,\n  isHasMany,\n  isHasManyRelationship,\n  isInlineBelongsToField,\n  isEmbeddedBelongsTo,\n  isEmbeddedBelongsToDeep,\n  isEmbeddedHasMany,\n  isEmbeddedHasManyDeep,\n  isEmbeddedHasManyString,\n  isRelationship,\n  isPlainType,\n  isArrayOfIntegerType,\n  isPlainArray,\n  isPlainField,\n  isIdField,\n  isGeneratedAttribute,\n  isDeep,\n  getAttributeName,\n  replaceIfNeeded,\n  renameField,\n  replaceKeysInObject,\n  replaceKeysInObjectIfNeeded,\n  replaceAllKeysInObject,\n  isArrayType,\n};\n","import window from 'ember-window-mock';\n\nexport default function generateAuthSecret() {\n  const length = 48;\n  const values = new Uint32Array(length);\n  window.crypto.getRandomValues(values);\n\n  const charset = '0123456789abcdef';\n  let result = '';\n  for (let i = 0; i < length; i += 1) {\n    result += charset[values[i] % charset.length];\n  }\n  return result;\n}\n","/**\n * @param {any} obj\n * @returns {string}\n * @see https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/src/core/toType.js#L4\n */\nfunction toType(obj) {\n  if (obj == null) {\n    return `${obj}`;\n  }\n\n  return typeof obj;\n}\n\n/**\n * @param {string} prefix\n * @param {any} obj\n * @param {boolean} traditional\n * @param {(key, value) => void} add\n * @see https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/src/serialize.js#L15\n */\nfunction buildParams(prefix, obj, traditional, add) {\n  const rbracket = /\\[\\]$/;\n\n  if (Array.isArray(obj)) {\n    // Serialize array item.\n    obj.forEach((value, index) => {\n      if (traditional || rbracket.test(prefix)) {\n        // Treat each array item as a scalar.\n        add(prefix, value);\n      } else {\n        // Item is non-scalar (array or object), encode its numeric index.\n        buildParams(\n          `${prefix}[${typeof v === 'object' && value != null ? index : ''}]`,\n          value,\n          traditional,\n          add,\n        );\n      }\n    });\n  } else if (!traditional && toType(obj) === 'object') {\n    // Serialize object item.\n    Object.entries(obj).forEach(([name, value]) =>\n      buildParams(`${prefix}[${name}]`, value, traditional, add),\n    );\n  } else {\n    // Serialize scalar item.\n    add(prefix, obj);\n  }\n}\n\n/**\n * Serializes an object or an array to a query string\n * This method is intended to replace $.param which is also\n * used internally by jQuery to serialize query params\n *\n * Some modifications have been made on the original source code\n *  - to remove cases that we don't use (such as forms)\n *  - to replace for-in loops\n *\n * @param {any} a Object to serialize\n * @param {boolean} traditional\n * @returns {string}\n * @see https://github.com/jquery/jquery/blob/a684e6ba836f7c553968d7d026ed7941e1a612d8/src/serialize.js#L55\n */\nexport default function serializeQueryParameters(a, traditional) {\n  const s = [];\n  const add = function (key, valueOrFunction) {\n    // If value is a function, invoke it and use its return value\n    const value = typeof valueOrFunction === 'function' ? valueOrFunction() : valueOrFunction;\n\n    s[s.length] = `${encodeURIComponent(key)}=${encodeURIComponent(value == null ? '' : value)}`;\n  };\n\n  if (a == null) {\n    return '';\n  }\n\n  Object.entries(a).forEach(([prefix, value]) => {\n    buildParams(prefix, value, traditional, add);\n  });\n\n  // Return the resulting serialization\n  return s.join('&');\n}\n","import type ApplicationInstance from '@ember/application/instance';\nimport type { ServiceRegistry } from '@ember/service';\n\nimport { getOwner } from '@ember/application';\nimport { assert } from '@ember/debug';\n\nexport function injectServiceWithoutDecorator<ServiceName extends keyof ServiceRegistry>(\n  self: { isDestroying: boolean; isDestroyed: boolean },\n  service: ServiceName,\n): ServiceRegistry[ServiceName] {\n  if (self.isDestroyed) return null;\n  const owner = getOwner(self) as ApplicationInstance;\n  if (owner.isDestroyed) return null;\n\n  assert(\n    `Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.`,\n    Boolean(owner),\n  );\n\n  return owner.lookup(`service:${service}`);\n}\n\nexport default { injectServiceWithoutDecorator };\n","import {\n  DEFAULT_COMPONENT_SNIPPET,\n  DEFAULT_REACT_COMPONENT_SNIPPET,\n  DEFAULT_TEMPLATE_SNIPPET,\n} from 'client/config/smart-view';\n\nexport const REACT_FRAMEWORK = 'React';\nexport const EMBER_FRAMEWORK = 'Ember';\n\nexport function switchFramework(smartView, framework) {\n  if (framework === REACT_FRAMEWORK) {\n    smartView.set('componentCode', DEFAULT_REACT_COMPONENT_SNIPPET);\n    smartView.set('templateCode', '');\n  } else {\n    smartView.set('componentCode', DEFAULT_COMPONENT_SNIPPET);\n    smartView.set('templateCode', DEFAULT_TEMPLATE_SNIPPET);\n  }\n}\n","import { isArray } from '@ember/array';\nimport { waitForPromise } from '@ember/test-waiters';\nimport Component from '@glimmer/component';\n\nfunction _getArgs(context) {\n  return context instanceof Component ? context.args : context;\n}\n\nexport function _handleValues(action, values) {\n  if (!action || !values || typeof values !== 'object') {\n    return;\n  }\n\n  if ((!action.fields || !action.fields.length) && Object.keys(values).length) {\n    console.warn(\n      `[forest] 🌳🌳🌳 Values have been passed to smart action '${action.displayName}' (${action.name}), however no fields has been configured. Values will be ignored, learn how to configure fields here https://docs.forestadmin.com/documentation/reference-guide/actions/create-and-manage-smart-actions/use-a-smart-action-form#handling-input-values`,\n    );\n\n    return;\n  }\n\n  if (action.fields.length && Object.keys(values).length) {\n    const valuesCopied = { ...values };\n\n    action.fields.forEach((field) => {\n      field.customActionValue = valuesCopied[field.fieldName];\n      delete valuesCopied[field.fieldName];\n    });\n\n    const remainingKeys = Object.keys(valuesCopied);\n\n    if (remainingKeys.length) {\n      remainingKeys.forEach((key) => {\n        console.warn(\n          `[forest] 🌳🌳🌳 Key '${key}' with value '${valuesCopied[key]}' has been passed to smart action '${action.displayName}' (${action.name}). However no field with this name has been configured, ignoring input. Learn how to configure fields here https://docs.forestadmin.com/documentation/reference-guide/actions/create-and-manage-smart-actions/use-a-smart-action-form#handling-input-values`,\n        );\n      });\n    }\n  }\n}\n\nexport async function triggerSmartAction(\n  context,\n  collection,\n  actionName,\n  records,\n  callback = () => {},\n  values = null,\n  skipRefresh = false,\n) {\n  const recordsArray = isArray(records) ? records : [records];\n\n  const actions = await Promise.resolve(collection.customActions);\n  const action = actions.findBy('name', actionName);\n\n  _handleValues(action, values);\n\n  if (action) {\n    callback(_getArgs(context).triggerCustomAction(action, recordsArray, values, skipRefresh));\n  } else {\n    console.error(`Could not find the Smart Action: ${actionName}`);\n    callback();\n  }\n}\n\nexport function deleteRecords(context, records) {\n  const recordsArray = isArray(records) ? records : [records];\n  _getArgs(context).deleteRecords(recordsArray, false);\n}\n\nexport function getCollectionId(context, collectionName) {\n  const collection = _getArgs(context).collection.rendering.collections.findBy(\n    'name',\n    collectionName,\n  );\n\n  if (!collection) {\n    context.toastr.perform(\n      'error',\n      `Collection ${collectionName} does not exist. Make sure it matches your model name.`,\n    );\n    return null;\n  }\n\n  return collection.id;\n}\n\nexport async function loadExternalStyle(url) {\n  const cssLink = document.createElement('link');\n  cssLink.type = 'text/css';\n  cssLink.rel = 'stylesheet';\n  cssLink.href = url;\n  document.head.append(cssLink);\n}\n\nexport async function loadExternalJavascript(url) {\n  return waitForPromise(\n    new Promise((resolve, reject) => {\n      const jsScript = document.createElement('script');\n      jsScript.type = 'text/javascript';\n      jsScript.src = url;\n      jsScript.onload = () => resolve();\n      jsScript.onerror = (error) => reject(error);\n      document.body.append(jsScript);\n    }),\n  );\n}\n","import type { AST, WalkerPath } from '@glimmer/syntax';\nimport type { NodeVisitor, TransformPluginBuilder } from 'ember-template-recast';\n\nexport const PARENT_LESS_HELPERS = [\n  'generate-guid',\n  'do-nothing-function',\n  'array',\n  'hash',\n  'is-layout-editor',\n  'current-user',\n];\n\nexport default function createArgumentLessHelperParenLessInvocationASTPlugin(): TransformPluginBuilder {\n  return () =>\n    ({\n      PathExpression(\n        node: AST.PathExpression,\n        walker: WalkerPath<AST.PathExpression>,\n      ): AST.Node | void {\n        // We are searching for template like {{array}} or {{generate-guid}} or {{do-nothing-function}}\n        if (\n          // VarHead means it's not prefixed with \"this.\" or \"@\"\n          node.head.type === 'VarHead' &&\n          // Path is the first word of a statement\n          walker.parentKey === 'path'\n          && walker.parent.node.type === 'MustacheStatement' &&\n          // We just want statement with no parameters at all\n          !walker.parent.node.params.length &&\n          // Check that it's a known helper otherwise this might certainly means it's a variable\n          PARENT_LESS_HELPERS.includes(node.head.name)\n          && walker.parent.parentKey === 'value'\n        ) {\n          node.original = `(${node.original})`;\n        }\n      },\n    }) as unknown as NodeVisitor;\n}\n","import type { AST } from '@glimmer/syntax';\nimport type { HandleDeprecationErrorFunction } from 'client/legacy/services/business/smart-view-code-migrator';\nimport type { NodeVisitor, TransformPluginBuilder } from 'ember-template-recast';\n\nexport default function createEmberComponentSendActionASTPlugin(\n  handleDeprecationError: HandleDeprecationErrorFunction,\n): TransformPluginBuilder {\n  const handleStatement = (node: AST.MustacheStatement | AST.SubExpression) => {\n    if (\n      node.path.type === 'PathExpression'\n      && node.path.head.type === 'VarHead'\n      && node.path.head.name === 'action'\n      && node.params.length > 0\n    ) {\n      handleDeprecationError(\n        'ember-component.send-action',\n        'https://deprecations.emberjs.com/v3.x/#toc_ember-component-send-action',\n        `The action helper at L${node.loc.startPosition.line}:${node.loc.startPosition.column} is deprecated. Please use the \"fn\" helper instead.`,\n      );\n    }\n  };\n  return () =>\n    ({\n      SubExpression(node: AST.SubExpression) {\n        return handleStatement(node);\n      },\n\n      MustacheStatement(node: AST.MustacheStatement) {\n        return handleStatement(node);\n      },\n    }) as unknown as NodeVisitor;\n}\n","import type { AST } from '@glimmer/syntax';\nimport type { HandleDeprecationErrorFunction } from 'client/legacy/services/business/smart-view-code-migrator';\nimport type { NodeVisitor, TransformPluginBuilder } from 'ember-template-recast';\n\nexport default function createLinkToPositionalArgumentsASTPlugin(\n  handleDeprecationError: HandleDeprecationErrorFunction,\n): TransformPluginBuilder {\n  const handleStatement = (node: AST.MustacheStatement | AST.BlockStatement) => {\n    if (\n      node.path.type === 'PathExpression'\n      && node.path.head.type === 'VarHead'\n      && node.path.head.name === 'link-to'\n      && node.params.length > 0\n    ) {\n      handleDeprecationError(\n        'ember-glimmer.link-to.positional-arguments',\n        'https://deprecations.emberjs.com/v3.x/#toc_ember-glimmer-link-to-positional-arguments',\n        `Using positional arguments with the link-to component at L${node.loc.startPosition.line}:${node.loc.startPosition.column} is deprecated. Please use named arguments instead.`,\n      );\n    }\n  };\n  return () =>\n    ({\n      BlockStatement(node: AST.BlockStatement) {\n        handleStatement(node);\n      },\n      MustacheStatement(node: AST.MustacheStatement) {\n        handleStatement(node);\n      },\n    }) as unknown as NodeVisitor;\n}\n","import type { AST, WalkerPath } from '@glimmer/syntax';\nimport type { NodeVisitor, TransformPluginBuilder } from 'ember-template-recast';\n\nimport { PARENT_LESS_HELPERS } from 'client/utils/smart-view/ast/argument-less-helper-paren-less-invocation-plugin';\n\nconst COMPONENT_ARGUMENTS = [\n  'addCondition',\n  'areAllRecordsSelected',\n  'canEdit',\n  'collection',\n  'columns',\n  'columnsVisible',\n  'computeIsRecordSelect',\n  'creatable',\n  'currentPage',\n  'currentPageSelectedRecords',\n  'deleteRecords',\n  'displayNamePlural',\n  'displaySearchExtendedButton',\n  'enableSearchExtended',\n  'error',\n  'fetchRecords',\n  'filterLocation',\n  'filters',\n  'isCurrentPageSelected',\n  'isEditMode',\n  'isEmbedded',\n  'isLoading',\n  'isNumberOfPagesDeactivated',\n  'isNumberOfPagesLoading',\n  'isSection',\n  'numberOfPages',\n  'onRowClick',\n  'onToggleRow',\n  'openCreateRecord',\n  'parentRecord',\n  'records',\n  'recordsCount',\n  'removeCondition',\n  'searchValue',\n  'segmentId',\n  'selectAllRecords',\n  'selectedRecordsCount',\n  'showMore',\n  'sortBy',\n  'sortedField',\n  'sortedFieldOrder',\n  'triggerCustomAction',\n  'unselectAllRecords',\n  'updateColumn',\n  'viewList',\n  'withNoBorderTop',\n  'shouldPreventChangeSelectedRecord',\n];\n\nexport default function createThisPropertyFallbackASTPlugin(): TransformPluginBuilder {\n  const stackOfLocalVariables: string[][] = [[]];\n\n  function updateBlockParamsStack(blockParams: string[]) {\n    const parent = stackOfLocalVariables[stackOfLocalVariables.length - 1];\n    stackOfLocalVariables.push([...parent, ...blockParams]);\n  }\n\n  return () =>\n    ({\n      Program: {\n        enter(node: AST.Program) {\n          updateBlockParamsStack(node.blockParams);\n        },\n        exit() {\n          stackOfLocalVariables.pop();\n        },\n      },\n\n      ElementNode: {\n        enter(node: AST.ElementNode) {\n          updateBlockParamsStack(node.blockParams);\n        },\n        exit() {\n          stackOfLocalVariables.pop();\n        },\n      },\n\n      PathExpression(\n        node: AST.PathExpression,\n        walker: WalkerPath<AST.PathExpression>,\n      ): AST.Node | void {\n        if (\n          // VarHead means it's not prefixed with \"this.\" or \"@\"\n          node.head.type === 'VarHead' &&\n          // path is the first path of a statement, so we need to make sure it's either not a path or that it's a mustache statement without parameters\n          // {{concat 'Test ' this.myVar}} is for example a valid statement\n          (walker.parentKey !== 'path'\n            || (walker.parent.node.type === 'MustacheStatement'\n              && !walker.parent.node.params.length\n              && !PARENT_LESS_HELPERS.includes(node.head.name)\n              && !walker.parent.node.hash?.pairs.length))\n          && !stackOfLocalVariables[stackOfLocalVariables.length - 1].includes(node.head.name)\n        ) {\n          node.original = `this.${node.original}`;\n        } else if (\n          node.head.type === 'AtHead' &&\n          // node.head.name for `@collection.mainView` will equal `@collection` so we need to remove the `@`\n          !COMPONENT_ARGUMENTS.includes(node.head.name.substring(1))\n        ) {\n          node.original = `this.${node.original.substring(1)}`;\n        }\n      },\n    }) as unknown as NodeVisitor;\n}\n","import type { AST } from '@glimmer/syntax';\nimport type { HandleDeprecationErrorFunction } from 'client/legacy/services/business/smart-view-code-migrator';\nimport type { NodeVisitor, TransformPluginBuilder } from 'ember-template-recast';\n\nexport default function createWithHelperASTPlugin(\n  handleDeprecationError: HandleDeprecationErrorFunction,\n): TransformPluginBuilder {\n  return () =>\n    ({\n      BlockStatement(node: AST.BlockStatement) {\n        if (\n          node.path.type === 'PathExpression'\n          && node.path.head.type === 'VarHead'\n          && node.path.head.name === 'with'\n          && node.params.length > 0\n        ) {\n          handleDeprecationError(\n            'ember-glimmer.with-syntax',\n            'https://deprecations.emberjs.com/v3.x/#toc_ember-glimmer-with-syntax',\n            `Using the {{#with}} helper at L${node.loc.startPosition.line}:${node.loc.startPosition.column} is deprecated. Please use the {{let}} helper instead.`,\n          );\n        }\n      },\n    }) as unknown as NodeVisitor;\n}\n","export default function sortByTwoKeys({\n  firstKey,\n  isFirstKeyInDescendingOrder = false,\n  secondKey = null,\n  isSecondKeyInDescendingOrder = false,\n}) {\n  const firstKeyNumerator = isFirstKeyInDescendingOrder ? -1 : 1;\n  const secondKeyNumerator = isSecondKeyInDescendingOrder ? -1 : 1;\n\n  return (itemA, itemB) => {\n    if (itemA[firstKey] === itemB[firstKey]) {\n      if (!secondKey || itemA[secondKey] === itemB[secondKey]) {\n        return 0;\n      }\n      return itemA[secondKey] > itemB[secondKey] ? secondKeyNumerator : -secondKeyNumerator;\n    }\n    return itemA[firstKey] > itemB[firstKey] ? firstKeyNumerator : -firstKeyNumerator;\n  };\n}\n","import { isNone } from '@ember/utils';\nimport FragmentArray from 'ember-data-model-fragments/array/fragment';\nimport Fragment from 'ember-data-model-fragments/fragment';\n\nimport config from 'client/config/environment';\n\nexport function regexIndexOf(string: string, regex: RegExp, startpos: number): number {\n  const indexOf = string.substring(startpos || 0).search(regex);\n  return indexOf >= 0 ? indexOf + (startpos || 0) : indexOf;\n}\n\nfunction _getRegexWithGlobal(regex: RegExp) {\n  if (!regex.global) {\n    let regexScope = 'g';\n    regexScope += regex.ignoreCase ? 'i' : '';\n    regexScope += regex.multiline ? 'm' : '';\n    return new RegExp(regex.source, regexScope);\n  }\n\n  return regex;\n}\n\nfunction _getStartPosition(string: string, initialPosition?: number | null): number {\n  let startPosition = initialPosition;\n  if (isNone(initialPosition)) {\n    startPosition = string.length;\n  } else if (initialPosition < 0) {\n    startPosition = 0;\n  }\n  return startPosition;\n}\n\nexport function regexLastIndexOf(string: string, regex: RegExp, startpos: number) {\n  const startPosition = _getStartPosition(string, startpos);\n  const globalRegex = _getRegexWithGlobal(regex);\n\n  const stringToWorkWith = string.substring(0, startPosition + 1);\n  let lastIndexOf = -1;\n  let nextStop = 0;\n  let result = globalRegex.exec(stringToWorkWith);\n\n  while (result != null) {\n    lastIndexOf = result.index;\n    nextStop += 1;\n    globalRegex.lastIndex = nextStop;\n\n    result = globalRegex.exec(stringToWorkWith);\n  }\n\n  return lastIndexOf;\n}\n\nexport function createIncludesCaseInsensitive(string: string) {\n  const memoLowerCasedString = string?.toLowerCase?.() || '';\n  return (stringToSearch: string) => {\n    if (!memoLowerCasedString) return true;\n\n    const lowerCasedStringToSearch = stringToSearch?.toLowerCase?.() || '';\n    if (!lowerCasedStringToSearch) return false;\n    return lowerCasedStringToSearch.includes(memoLowerCasedString);\n  };\n}\n\nexport function escapeHTML(unsafe: string) {\n  return unsafe\n    ? unsafe\n        .replaceAll('&', '&amp;')\n        .replaceAll('<', '&lt;')\n        .replaceAll('>', '&gt;')\n        .replaceAll('\"', '&quot;')\n        .replaceAll(\"'\", '&#039;')\n    : '';\n}\n\nexport function namespace(content: string, separator: string) {\n  return `${config.APP.namespace}${separator}${content}`;\n}\n\nexport function denamespace(content: string, separator?: string) {\n  if (separator) {\n    return content.slice(config.APP.namespace.length + separator.length);\n  }\n  return content.slice(config.APP.namespace.length);\n}\n\nexport type RecordWithRawData = Fragment & { rawData: Record<string, unknown> };\n\nexport function jsonFieldToString(value: unknown, isJson: boolean, shouldFormat = true): string {\n  const spaces = shouldFormat ? 4 : 0;\n  if (value instanceof Fragment) {\n    return JSON.stringify((value as RecordWithRawData).rawData, null, spaces);\n  }\n  if (value instanceof FragmentArray) {\n    return JSON.stringify(\n      value.map((item) => (item as RecordWithRawData).rawData),\n      null,\n      spaces,\n    );\n  }\n\n  if (isJson) {\n    return JSON.stringify(value, null, spaces);\n  }\n\n  try {\n    return JSON.stringify(JSON.parse(value as string), null, spaces);\n    // eslint-disable-next-line sonarjs/no-ignored-exceptions\n  } catch (error) {\n    return value as string;\n  }\n}\n","import { isNone } from '@ember/utils';\nimport moment from 'moment';\n\nimport { escapeText } from 'client/legacy/services/html-sanitizer';\nimport { SUPPORTED_TYPES_FOR_CONDITION, castToBoolean } from 'client/utils/condition-utils';\nimport {\n  DEFAULT_DATEONLY_FORMAT,\n  DEFAULT_DATE_FORMAT,\n} from 'client/utils/dates-default-format-variables';\nimport { NotImplementedError } from 'client/utils/errors';\n\nexport interface AutoCompleteItem {\n  label: string;\n  value: string;\n  hasVariables: boolean;\n  isCustomInput: boolean;\n  canBeUsedWithoutVariables: boolean;\n  customInputPlaceholder: string | null;\n}\n\nexport type AutoCompleteItemOptions = {\n  canBeUsedWithoutVariables?: boolean;\n  hasVariables?: boolean;\n  isCustomInput?: boolean;\n  customInputPlaceholder?: string | null;\n};\n\nexport function buildAutocompleteItem(\n  value: string,\n  {\n    hasVariables = false,\n    isCustomInput = false,\n    customInputPlaceholder = null,\n    canBeUsedWithoutVariables = false,\n  }: AutoCompleteItemOptions = {},\n): AutoCompleteItem {\n  return {\n    label: value.split('.').pop(),\n    value,\n    hasVariables,\n    isCustomInput,\n    customInputPlaceholder,\n    canBeUsedWithoutVariables,\n  };\n}\n\nfunction isDate(date: unknown): date is Date | moment.Moment {\n  return moment.isDate(date) || moment.isMoment(date);\n}\n\nexport function isTypeCompatible(givenType: string, expectedType: string) {\n  const supportedTypes: string[] | null =\n    expectedType && Object.keys(SUPPORTED_TYPES_FOR_CONDITION).includes(expectedType)\n      ? SUPPORTED_TYPES_FOR_CONDITION[expectedType as keyof typeof SUPPORTED_TYPES_FOR_CONDITION]\n      : null;\n  return (\n    !expectedType || !givenType || supportedTypes?.includes(givenType) || expectedType === givenType\n  );\n}\n\nexport function autoCompleteFromList(list: AutoCompleteItem[], prefix = '') {\n  const prefixLowerCase = prefix.toLowerCase();\n  const listSorted = list.sortBy('label');\n  const listFiltered = listSorted.filter((item) =>\n    item.label.toLowerCase().startsWith(prefixLowerCase),\n  );\n\n  // If there is only one item and that item is the exact match\n  if (\n    listFiltered.length === 1\n    && listFiltered.firstObject?.label === prefix\n    && !listFiltered.firstObject?.hasVariables\n  ) {\n    return null;\n  }\n\n  return listFiltered.length > 0 ? listFiltered : listSorted;\n}\n\nexport function wrapTemplatingValueInHTML(value: string) {\n  return `<span class=\"c-feature-workspace-component-renderer__templating-key\" data-test-templating-key=\"${value}\">${value}</span>`;\n}\n\nexport default abstract class AbstractTemplatingHelper {\n  constructor() {\n    if (this.constructor === AbstractTemplatingHelper) {\n      throw new TypeError(\n        'Abstract class \"TemplatingHelperInterface\" cannot be instantiated directly',\n      );\n    }\n  }\n\n  public autoComplete(\n    fullPath: string,\n\n    expectedType: string | null = null,\n\n    isValidating = false,\n  ): AutoCompleteItem[] | null {\n    throw new NotImplementedError('autoComplete');\n  }\n\n  protected castToType(value: unknown, expectedType: string) {\n    if (isNone(value)) return value;\n\n    switch (expectedType) {\n      case 'String':\n        if (isDate(value)) return moment(value).format(DEFAULT_DATE_FORMAT);\n        if (moment(value, 'YYYY-MM-DD', true).isValid()) {\n          return moment(value).format(DEFAULT_DATEONLY_FORMAT);\n        }\n        return `${value as string}`;\n      case 'Dateonly':\n        return isDate(value) ? moment(value).format('YYYY-MM-DD') : `${value as string | number}`;\n      case 'Number':\n        return Number(value);\n      case 'Boolean':\n        return castToBoolean(value);\n      case 'Date':\n        return new Date(value as string | Date);\n      default:\n        return value;\n    }\n  }\n\n  public isValidPath(fullPath: string, expectedType: string | null = null) {\n    if (fullPath.endsWith('.')) return false;\n\n    const paths = fullPath.split('.');\n    paths.pop();\n    const fullPathWithoutLastSuffix = paths.join('.');\n    const autoCompleteItems = this.autoComplete(\n      `${fullPathWithoutLastSuffix}.`,\n      expectedType,\n      true,\n    );\n\n    return !!autoCompleteItems?.any(\n      (autoCompleteItem) =>\n        (!autoCompleteItem.hasVariables || autoCompleteItem.canBeUsedWithoutVariables)\n        && (autoCompleteItem.value === fullPath\n          || (autoCompleteItem.isCustomInput\n            && autoCompleteItem.value === `${fullPathWithoutLastSuffix}.`)),\n    );\n  }\n\n  public getVariableValue(templatingKey: string): unknown {\n    throw new NotImplementedError('getVariableValue');\n  }\n\n  public static getTemplatingKeys(templatingString: unknown): string[] {\n    if (typeof templatingString !== 'string') return [];\n\n    const templatingRegex = /{{([\\w\\s$+,:;=?@#|.^*<>()%!-]+)}}/gm;\n    const templatingKeys: string[] = [];\n\n    let matches = templatingRegex.exec(templatingString);\n    while (matches) {\n      templatingKeys.push(matches[1]);\n      matches = templatingRegex.exec(templatingString);\n    }\n\n    return templatingKeys.uniq();\n  }\n\n  public injectVariablesIntoStringWithoutValidation(\n    templatingString: unknown,\n    {\n      getVariableValue = null,\n      expectedType = null,\n    }: {\n      getVariableValue?: null | ((templatingKey: string) => unknown);\n      expectedType?: string | null;\n    } = {},\n  ) {\n    if (typeof templatingString !== 'string') return templatingString;\n\n    let templatingStringWithVariablesInjected: unknown = templatingString;\n\n    // Any time you call this function the path should already be validated first !\n    const templatingKeys = AbstractTemplatingHelper.getTemplatingKeys(templatingString);\n\n    // This mean there is only one variable. We can return the value directly\n    if (templatingKeys.length === 1 && templatingString === `{{${templatingKeys[0]}}}`) {\n      templatingStringWithVariablesInjected = getVariableValue\n        ? getVariableValue(templatingKeys[0])\n        : this.getVariableValue(templatingKeys[0]);\n    } else {\n      templatingKeys.forEach((templatingKey) => {\n        const value = getVariableValue\n          ? getVariableValue(templatingKey)\n          : this.getVariableValue(templatingKey);\n        const valueSanitized =\n          !getVariableValue && typeof value === 'string' ? escapeText(value) : value;\n        templatingStringWithVariablesInjected = (\n          templatingStringWithVariablesInjected as string\n        ).replaceAll(\n          `{{${templatingKey}}}`,\n          expectedType === 'String'\n            ? (this.castToType(valueSanitized, 'String') as string)\n            : (valueSanitized as string),\n        );\n      });\n    }\n\n    return expectedType\n      ? this.castToType(templatingStringWithVariablesInjected, expectedType)\n      : templatingStringWithVariablesInjected;\n  }\n\n  /**\n   * Make sure all the variables inside a string are set, e.g \"test me {{currentUser.name}} {{currentUser.email}}\".\n   */\n  public abstract isContextSet(stringContainingKeys: string): boolean;\n  /**\n   * Make sure all the templating keys are set, e.g ['currentUser.name', 'currentUser.email'].\n   */\n  public abstract isContextSet(templatingKeys: string[]): boolean;\n\n  public abstract get templatingKeyPrefix(): string | null;\n}\n","import type ActivityLogModel from 'client/data/models/activity-log';\nimport type { AutoCompleteItem } from 'client/utils/templating-helper/abstract-templating-helper';\n\nimport UserModel from 'client/data/models/user';\nimport AbstractTemplatingHelper, {\n  buildAutocompleteItem,\n} from 'client/utils/templating-helper/abstract-templating-helper';\n\nexport default class ActivityLogTemplatingHelper extends AbstractTemplatingHelper {\n  private activityLog: ActivityLogModel;\n\n  constructor({ activityLog }: { activityLog: ActivityLogModel }) {\n    super();\n\n    this.activityLog = activityLog;\n  }\n\n  public get templatingKeyPrefix(): string {\n    return null;\n  }\n\n  autoComplete(): AutoCompleteItem[] {\n    return [\n      buildAutocompleteItem('targetUser', {\n        hasVariables: false,\n        canBeUsedWithoutVariables: true,\n      }),\n    ];\n  }\n\n  getVariableValue(templatingKey: string): UserModel | null {\n    return templatingKey === 'targetUser' ? this.activityLog.targetUser : null;\n  }\n\n  isContextSet() {\n    return true;\n  }\n\n  castToType(value: unknown, expectedType: string) {\n    if (value === null || value === undefined) return `<strong>[Deleted User]</strong>`;\n\n    return expectedType === 'String' && value instanceof UserModel\n      ? `<strong>${value.fullName}</strong>`\n      : value;\n  }\n}\n","import type { AutoCompleteItem } from 'client/utils/templating-helper/abstract-templating-helper';\n\nimport { isArray } from '@ember/array';\n\nimport AbstractTemplatingHelper, {\n  autoCompleteFromList,\n} from 'client/utils/templating-helper/abstract-templating-helper';\n\nexport default class ComposableTemplatingHelper extends AbstractTemplatingHelper {\n  globalTemplatingHelper: AbstractTemplatingHelper | null;\n  staticTemplatingHelpers: AbstractTemplatingHelper[];\n\n  constructor(...templatingHelpers: AbstractTemplatingHelper[]) {\n    super();\n\n    this.staticTemplatingHelpers = templatingHelpers.filter(\n      (templatingHelper) => templatingHelper.templatingKeyPrefix,\n    );\n    const nonStaticTemplatingHelpers = templatingHelpers.filter(\n      (templatingHelper) => !this.staticTemplatingHelpers.includes(templatingHelper),\n    );\n\n    if (nonStaticTemplatingHelpers.length > 1)\n      throw new Error('You can pass only one non static helpers to ComposableTemplatingHelper');\n\n    [this.globalTemplatingHelper] = nonStaticTemplatingHelpers;\n  }\n\n  autoComplete(\n    fullPath: string,\n    expectedType?: string,\n    isValidating?: boolean,\n  ): AutoCompleteItem[] {\n    const prefix = fullPath?.split('.').lastObject || '';\n    const templatingHelper = this.getTemplatingHelperHandler(fullPath);\n    if (this.staticTemplatingHelpers.includes(templatingHelper)) {\n      return templatingHelper.autoComplete(fullPath, expectedType, isValidating);\n    }\n\n    const globalAutocompleteItems = this.globalTemplatingHelper?.autoComplete(\n      fullPath,\n      expectedType,\n      isValidating,\n    );\n    return globalAutocompleteItems === null\n      || globalAutocompleteItems?.any((item) => item.value.includes('.'))\n      ? globalAutocompleteItems\n      : autoCompleteFromList(\n          [\n            ...this.staticTemplatingHelpers\n              .map((staticTemplatingHelper) =>\n                staticTemplatingHelper.autoComplete(fullPath, expectedType, isValidating),\n              )\n              .flat(),\n            ...(globalAutocompleteItems || []),\n          ],\n          prefix,\n        );\n  }\n\n  getVariableValue(templatingKey: string) {\n    const templatingHelper = this.getTemplatingHelperHandler(templatingKey);\n    return templatingHelper ? templatingHelper.getVariableValue(templatingKey) : templatingKey;\n  }\n\n  isContextSet(input: string | string[]): boolean {\n    const templatingKeysFound = isArray(input)\n      ? (input as string[])\n      : AbstractTemplatingHelper.getTemplatingKeys(input);\n    if (!templatingKeysFound.length) {\n      return true;\n    }\n    return templatingKeysFound.every((templatingKey) => {\n      const templatingHelper = this.getTemplatingHelperHandler(templatingKey);\n      return templatingHelper ? templatingHelper.isContextSet([templatingKey]) : false;\n    });\n  }\n\n  protected getTemplatingHelperHandler(fullPath: string) {\n    const [firstPart] = (fullPath || '').split('.');\n    const staticTemplatingHelper = this.staticTemplatingHelpers.findBy(\n      'templatingKeyPrefix',\n      firstPart,\n    );\n    return staticTemplatingHelper || this.globalTemplatingHelper;\n  }\n\n  public get templatingKeyPrefix(): string {\n    throw new Error('Method not implemented.');\n  }\n}\n","import type { AutoCompleteItem } from 'client/utils/templating-helper/abstract-templating-helper';\nimport type { Moment, unitOfTime } from 'moment';\n\nimport moment from 'moment';\n\nimport AbstractTemplatingHelper, {\n  autoCompleteFromList,\n  buildAutocompleteItem,\n} from 'client/utils/templating-helper/abstract-templating-helper';\n\nexport default class CurrentDateTemplatingHelper extends AbstractTemplatingHelper {\n  static templatingKeyPrefix = 'currentDate';\n\n  get templatingKeyPrefix() {\n    return CurrentDateTemplatingHelper.templatingKeyPrefix;\n  }\n\n  private autoCompleteDateMethods(\n    paths: string[],\n    prefix: string,\n    autoCompletePrefixValue = this.templatingKeyPrefix,\n  ): AutoCompleteItem[] | null {\n    if (paths.length > 0) {\n      const method = paths.shift();\n      if (method === 'format') {\n        return [\n          buildAutocompleteItem(`${autoCompletePrefixValue}.${method}.`, {\n            isCustomInput: true,\n            customInputPlaceholder: 'DD-MM-YYYY hh:mm:ss',\n            hasVariables: false,\n            canBeUsedWithoutVariables: true,\n          }),\n        ];\n      }\n\n      if (!['add', 'subtract', 'startOf', 'endOf'].includes(method)) return [];\n      const isRequiringCustomNumber = !['startOf', 'endOf'].includes(method);\n      if (paths.length === 0) {\n        return autoCompleteFromList(\n          [\n            buildAutocompleteItem(`${autoCompletePrefixValue}.${method}.days`, {\n              canBeUsedWithoutVariables: !isRequiringCustomNumber,\n              hasVariables: true,\n            }),\n            buildAutocompleteItem(`${autoCompletePrefixValue}.${method}.months`, {\n              canBeUsedWithoutVariables: !isRequiringCustomNumber,\n              hasVariables: true,\n            }),\n            buildAutocompleteItem(`${autoCompletePrefixValue}.${method}.years`, {\n              canBeUsedWithoutVariables: !isRequiringCustomNumber,\n              hasVariables: true,\n            }),\n            buildAutocompleteItem(`${autoCompletePrefixValue}.${method}.hours`, {\n              canBeUsedWithoutVariables: !isRequiringCustomNumber,\n              hasVariables: true,\n            }),\n            buildAutocompleteItem(`${autoCompletePrefixValue}.${method}.minutes`, {\n              canBeUsedWithoutVariables: !isRequiringCustomNumber,\n              hasVariables: true,\n            }),\n            buildAutocompleteItem(`${autoCompletePrefixValue}.${method}.seconds`, {\n              canBeUsedWithoutVariables: !isRequiringCustomNumber,\n              hasVariables: true,\n            }),\n          ],\n          prefix,\n        );\n      }\n      if (paths.length === 1 && isRequiringCustomNumber) {\n        return ['days', 'months', 'years', 'hours', 'minutes', 'seconds'].includes(paths[0])\n          ? [\n              buildAutocompleteItem(`${autoCompletePrefixValue}.${method}.${paths[0]}.`, {\n                hasVariables: true,\n                canBeUsedWithoutVariables: true,\n                isCustomInput: true,\n                customInputPlaceholder: `number-of-${paths[0]}`,\n              }),\n            ]\n          : [];\n      }\n\n      const nestedAutoCompletePrefixValue = isRequiringCustomNumber\n        ? `${autoCompletePrefixValue}.${method}.${paths.shift()}.${paths.shift()}`\n        : `${autoCompletePrefixValue}.${method}.${paths.shift()}`;\n      return this.autoCompleteDateMethods(paths, prefix, nestedAutoCompletePrefixValue);\n    }\n\n    return autoCompleteFromList(\n      [\n        buildAutocompleteItem(`${autoCompletePrefixValue}.add`, {\n          hasVariables: true,\n          canBeUsedWithoutVariables: false,\n        }),\n        buildAutocompleteItem(`${autoCompletePrefixValue}.endOf`, {\n          hasVariables: true,\n          canBeUsedWithoutVariables: false,\n        }),\n        buildAutocompleteItem(`${autoCompletePrefixValue}.format`, {\n          hasVariables: true,\n          canBeUsedWithoutVariables: false,\n        }),\n        buildAutocompleteItem(`${autoCompletePrefixValue}.startOf`, {\n          hasVariables: true,\n          canBeUsedWithoutVariables: false,\n        }),\n        buildAutocompleteItem(`${autoCompletePrefixValue}.subtract`, {\n          hasVariables: true,\n          canBeUsedWithoutVariables: false,\n        }),\n      ],\n      prefix,\n    );\n  }\n\n  autoComplete(fullPath: string, expectedType: string = null): AutoCompleteItem[] {\n    if (expectedType && !['String', 'Date', 'Dateonly', 'Time'].includes(expectedType)) {\n      return [];\n    }\n\n    const paths = (fullPath || '').split('.');\n    const lastPath = paths.pop();\n\n    if (paths.length > 0) {\n      if (paths[0] === this.templatingKeyPrefix) {\n        paths.shift();\n        return this.autoCompleteDateMethods(paths, lastPath);\n      }\n    }\n\n    return [\n      buildAutocompleteItem(this.templatingKeyPrefix, {\n        hasVariables: true,\n        canBeUsedWithoutVariables: true,\n      }),\n    ];\n  }\n\n  getVariableValue(templatingKey: string, date: Moment = moment()): Moment | string {\n    // Any time you call this function the path should already be validated first !\n    const paths = templatingKey.split('.');\n    if (paths[0] === this.templatingKeyPrefix) paths.shift();\n\n    const method = paths.shift();\n    switch (method) {\n      case 'add':\n      case 'subtract':\n        return this.getVariableValue(\n          paths.slice(2).join('.'),\n          date[method](paths[1], paths[0] as unitOfTime.DurationConstructor),\n        );\n      case 'startOf':\n      case 'endOf':\n        return this.getVariableValue(\n          paths.slice(1).join('.'),\n          date[method](paths[0] as unitOfTime.DurationConstructor),\n        );\n      case 'format':\n        return date.format(paths.join('.'));\n      default:\n        return date;\n    }\n  }\n\n  isContextSet() {\n    return true;\n  }\n}\n","import type Model from '@ember-data/model';\nimport type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type WidgetConfigurationLimitedValueDynamicFragment from 'client/data/models/widget-configuration-limited-value-dynamic';\nimport type CollectionStateService from 'client/legacy/services/collection-state';\nimport type NestedCollection from 'client/utils/nested/collection';\nimport type NestedField from 'client/utils/nested/field';\nimport type { AutoCompleteItem } from 'client/utils/templating-helper/abstract-templating-helper';\nimport type { BelongsToFieldsTreeToFetch } from 'client/utils/templating-helper/field-templating-helper';\n\nimport { get } from '@ember/object';\nimport ObjectProxy from '@ember/object/proxy';\n\nimport AbstractTemplatingHelper, {\n  autoCompleteFromList,\n  buildAutocompleteItem,\n} from 'client/utils/templating-helper/abstract-templating-helper';\nimport FieldTemplatingHelper from 'client/utils/templating-helper/field-templating-helper';\n\nconst TEMPLATING_KEY_PREFIX = 'currentRecord';\n\nexport default class CurrentRecordTemplatingHelper extends AbstractTemplatingHelper {\n  private readonly collectionState: CollectionStateService;\n  private readonly parentCollection: CollectionModel;\n\n  constructor({\n    collectionState,\n    parentCollection,\n  }: {\n    collectionState: CollectionStateService;\n    parentCollection: CollectionModel;\n  }) {\n    super();\n\n    this.collectionState = collectionState;\n    this.parentCollection = parentCollection;\n  }\n\n  get templatingKeyPrefix() {\n    return TEMPLATING_KEY_PREFIX;\n  }\n\n  getBelongsToFieldsTreeToFetch(templatingKeys: string[]): BelongsToFieldsTreeToFetch {\n    return FieldTemplatingHelper.getBelongsToFieldsTreeToFetch(\n      templatingKeys,\n      (templatingKey: string) =>\n        FieldTemplatingHelper.getBelongsToFieldsToFetch(\n          this.parentCollection,\n          templatingKey.replace('currentRecord.', ''),\n        ),\n    );\n  }\n\n  static getVariableValueFromRecord(\n    paths: string[],\n    record: Model,\n    collection: NestedCollection | CollectionModel,\n  ): unknown {\n    let variableValue: unknown = record;\n    let lastCollection = collection;\n    paths.forEach((path) => {\n      const field = (lastCollection?.fields as (FieldModel | NestedField)[])?.findBy(\n        'fieldName',\n        path,\n      );\n      variableValue =\n        variableValue && field && get(variableValue, field?.attributeNameWithRelationships);\n\n      // Client belongs to are considered as async, to get the real value we need to use content\n      variableValue = variableValue instanceof ObjectProxy ? variableValue?.content : variableValue;\n      lastCollection = field?.nestedOrReferencedCollection;\n    });\n\n    return variableValue;\n  }\n\n  autoComplete(fullPath: string, expectedType: string = null): AutoCompleteItem[] {\n    if (fullPath?.startsWith(`${this.templatingKeyPrefix}.`)) {\n      const paths = fullPath?.split('.');\n      const currentPath = paths?.shift();\n      const items = FieldTemplatingHelper.autoCompleteFields(\n        this.parentCollection,\n        paths.join('.'),\n        expectedType,\n      );\n      return (\n        items\n        && items.map((autoCompleteItem) => ({\n          ...autoCompleteItem,\n          value: `${currentPath}.${autoCompleteItem.value}`,\n        }))\n      );\n    }\n\n    return autoCompleteFromList(\n      [buildAutocompleteItem(this.templatingKeyPrefix, { hasVariables: true })],\n      fullPath || '',\n    );\n  }\n\n  getVariableValue(templatingKey: string): unknown {\n    if (templatingKey.startsWith(`${this.templatingKeyPrefix}.`)) {\n      const [, ...paths] = templatingKey.split('.');\n\n      const { currentRecord } = this.collectionState;\n\n      return CurrentRecordTemplatingHelper.getVariableValueFromRecord(\n        paths,\n        currentRecord,\n        this.parentCollection,\n      );\n    }\n\n    return templatingKey;\n  }\n\n  isContextSet() {\n    return !!this.collectionState.currentRecord;\n  }\n\n  static isUsingTemplatingKey(parameters: WidgetConfigurationLimitedValueDynamicFragment) {\n    if (parameters?.smart?.path) {\n      return parameters.smart.path.startsWith(`{{${TEMPLATING_KEY_PREFIX}`);\n    }\n\n    if (parameters?.simple?.filter?.conditions) {\n      const result = parameters?.simple?.filter?.conditions?.find((condition) => {\n        return (\n          typeof condition.value === 'string'\n          && condition.value.startsWith(`{{${TEMPLATING_KEY_PREFIX}`)\n        );\n      });\n\n      return !!result;\n    }\n\n    return false;\n  }\n}\n","import type CurrentUserService from 'client/legacy/services/current-user';\nimport type { AutoCompleteItem } from 'client/utils/templating-helper/abstract-templating-helper';\n\nimport { get } from '@ember/object';\nimport { isObject } from 'lodash';\n\nimport { CURRENT_USER_VARIABLES_MAP } from 'client/utils/current-user-dynamic-variables';\nimport AbstractTemplatingHelper, {\n  autoCompleteFromList,\n  buildAutocompleteItem,\n  isTypeCompatible,\n} from 'client/utils/templating-helper/abstract-templating-helper';\n\nexport default class CurrentUserTemplatingHelper extends AbstractTemplatingHelper {\n  currentUser: CurrentUserService;\n\n  constructor({ currentUser }: { currentUser: CurrentUserService }) {\n    super();\n\n    this.currentUser = currentUser;\n  }\n\n  get templatingKeyPrefix() {\n    return 'currentUser';\n  }\n\n  private static _filterCurrentUserKeysByExpectedType(\n    parentObject: Record<string, unknown>,\n    currentUserKeys: AutoCompleteItem[],\n    expectedType: string,\n  ) {\n    // If expectedType is String then we can return all the fields, as Number can be easily cast to String\n    return expectedType !== null\n      ? currentUserKeys.filter(\n          (currentUserKey) =>\n            isTypeCompatible(parentObject[currentUserKey.label] as string, expectedType)\n            || currentUserKey.hasVariables,\n        )\n      : currentUserKeys;\n  }\n\n  private autoCompleteCurrentUserFields(prefix = '', expectedType: string = null) {\n    let currentUserKeys = Object.keys(CURRENT_USER_VARIABLES_MAP).map((key) =>\n      buildAutocompleteItem(`${this.templatingKeyPrefix}.${key}`, {\n        hasVariables: isObject(CURRENT_USER_VARIABLES_MAP[key]),\n      }),\n    );\n    currentUserKeys = CurrentUserTemplatingHelper._filterCurrentUserKeysByExpectedType(\n      CURRENT_USER_VARIABLES_MAP,\n      currentUserKeys,\n      expectedType,\n    );\n\n    return autoCompleteFromList(currentUserKeys, prefix);\n  }\n\n  private autoCompleteCurrentUser(paths: string[], prefix: string, expectedType: string) {\n    if (expectedType === 'HasMany' || expectedType === 'BelongsTo') return [];\n\n    if (paths.length) {\n      if (paths[0] === 'tags')\n        return [\n          buildAutocompleteItem(`${this.templatingKeyPrefix}.tags.`, {\n            hasVariables: false,\n            isCustomInput: true,\n            customInputPlaceholder: 'your-tag-key',\n            canBeUsedWithoutVariables: true,\n          }),\n        ];\n\n      const nestedCurrentUserObject = CURRENT_USER_VARIABLES_MAP[\n        paths[0]\n      ] as (typeof CURRENT_USER_VARIABLES_MAP)['team'];\n      if (nestedCurrentUserObject) {\n        let nestedCurrentUserKeys = Object.keys(nestedCurrentUserObject).map((key) =>\n          buildAutocompleteItem(`${this.templatingKeyPrefix}.${paths[0]}.${key}`),\n        );\n        nestedCurrentUserKeys = CurrentUserTemplatingHelper._filterCurrentUserKeysByExpectedType(\n          nestedCurrentUserObject,\n          nestedCurrentUserKeys,\n          expectedType,\n        );\n\n        return autoCompleteFromList(nestedCurrentUserKeys, prefix);\n      }\n    }\n    return this.autoCompleteCurrentUserFields(paths[0] || prefix, expectedType);\n  }\n\n  public autoComplete(fullPath: string, expectedType: string = null) {\n    if (expectedType === 'HasMany' || expectedType === 'BelongsTo') return [];\n\n    const paths = fullPath?.split('.') || [];\n    const lastPath = paths.pop();\n\n    if (paths.length > 0) {\n      if (paths[0] === this.templatingKeyPrefix) {\n        paths.shift();\n        return this.autoCompleteCurrentUser(paths, lastPath, expectedType);\n      }\n    }\n\n    return [buildAutocompleteItem(this.templatingKeyPrefix, { hasVariables: true })];\n  }\n\n  public getVariableValue(templatingKey: string) {\n    // Any time you call this function the path should already be validated first !\n    const paths = templatingKey.split('.');\n    paths.shift();\n    if (paths[0] === 'tags' && this.currentUser.tags) {\n      paths.shift();\n      return this.currentUser.tags.findBy('key', paths.join('.'))?.value;\n    }\n    return get(this.currentUser, paths.join('.'));\n  }\n\n  public isContextSet() {\n    return true;\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type NestedField from 'client/utils/nested/field';\n\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\nimport NestedCollection from 'client/utils/nested/collection';\nimport AbstractTemplatingHelper, {\n  autoCompleteFromList,\n  buildAutocompleteItem,\n  isTypeCompatible,\n} from 'client/utils/templating-helper/abstract-templating-helper';\n\nexport type BelongsToFieldsTreeToFetch = {\n  [key: string]: {\n    field: FieldModel;\n    belongsTos: BelongsToFieldsTreeToFetch;\n  };\n};\n\nexport default class FieldTemplatingHelper extends AbstractTemplatingHelper {\n  collection: CollectionModel | NestedCollection;\n\n  constructor({ collection }: { collection: CollectionModel | NestedCollection }) {\n    super();\n\n    this.collection = collection;\n\n    if (!collection) {\n      throw new MissingRequiredPropertyError('collection');\n    }\n  }\n\n  get templatingKeyPrefix() {\n    return null;\n  }\n\n  static _autoCompleteCollectionFields(\n    currentPath: string,\n    collection: CollectionModel | NestedCollection | null | undefined,\n    prefix = '',\n    expectedType: string | null = null,\n    columnsOnly = false,\n  ) {\n    const fieldNames =\n      collection?.fieldsSorted\n        .filter(\n          (field) =>\n            (!field.isRelationship && isTypeCompatible(field.typeStringified, expectedType))\n            || (!columnsOnly && field.isBelongsTo && !field.isPolymorphic)\n            || (!columnsOnly && field.isEmbeddedBelongsTo && expectedType !== 'BelongsTo')\n            || (expectedType === 'HasMany' && (field.isHasMany || field.isEmbeddedHasMany)),\n        )\n        .map((field) =>\n          buildAutocompleteItem(`${currentPath}${field.fieldName}`, {\n            hasVariables: field.isBelongsTo || field.isEmbeddedBelongsTo,\n            canBeUsedWithoutVariables:\n              field.isBelongsTo && (!expectedType || expectedType === 'BelongsTo'),\n          }),\n        ) || [];\n    return autoCompleteFromList(fieldNames, prefix);\n  }\n\n  private static getFieldAndValidPathFromPath(\n    collection: CollectionModel | NestedCollection,\n    path: string,\n  ) {\n    let collectionToAutocomplete: CollectionModel | NestedCollection | null | undefined =\n      collection;\n    let validField: FieldModel | NestedField | undefined;\n\n    let validCurrentPath = '';\n    const nestedPaths = path.split('.');\n    for (let index = 0; index < nestedPaths.length; index += 1) {\n      const currentNestedPath = nestedPaths[index];\n      const fields: Array<NestedField | FieldModel> | undefined =\n        FieldTemplatingHelper._isNestedCollection(collectionToAutocomplete)\n          ? collectionToAutocomplete?.fields\n          : collectionToAutocomplete?.fields.toArray();\n      const field = fields?.findBy('fieldName', currentNestedPath);\n\n      if (!field) break;\n\n      validField = field;\n      validCurrentPath += index > 0 ? `.${currentNestedPath}` : currentNestedPath;\n\n      if (field.isRelatedDataOrHasManyDeep) break;\n\n      collectionToAutocomplete = field.nestedOrReferencedCollection;\n    }\n\n    return { field: validField, validCurrentPath };\n  }\n\n  static getFieldFromPath(collection: CollectionModel | NestedCollection, path: string) {\n    const { field, validCurrentPath } = FieldTemplatingHelper.getFieldAndValidPathFromPath(\n      collection,\n      path,\n    );\n    return path === validCurrentPath ? field : null;\n  }\n\n  static _isNestedCollection(\n    collection: NestedCollection | CollectionModel | null,\n  ): collection is NestedCollection {\n    return collection instanceof NestedCollection;\n  }\n\n  static autoCompleteFields(\n    collection: CollectionModel | NestedCollection,\n    path: string,\n    expectedType: string | null = null,\n    columnsOnly = false,\n  ) {\n    const nestedPaths = path.split('.');\n    const prefix = nestedPaths.pop() || '';\n\n    const { field, validCurrentPath } = FieldTemplatingHelper.getFieldAndValidPathFromPath(\n      collection,\n      nestedPaths.join('.'),\n    );\n\n    if (!nestedPaths.length || !field) {\n      return FieldTemplatingHelper._autoCompleteCollectionFields(\n        '',\n        collection,\n        prefix,\n        expectedType,\n        columnsOnly,\n      );\n    }\n\n    return field.isRelatedDataOrHasManyDeep\n      ? null\n      : FieldTemplatingHelper._autoCompleteCollectionFields(\n          `${validCurrentPath}.`,\n          field.nestedOrReferencedCollection,\n          prefix,\n          expectedType,\n          columnsOnly,\n        );\n  }\n\n  static getBelongsToFieldsToFetch(\n    collection: CollectionModel | NestedCollection,\n    templatingKey: string,\n  ): FieldModel[] {\n    const paths = templatingKey.split('.');\n    const belongsTos: FieldModel[] = [];\n    let lastCollection: CollectionModel | NestedCollection = collection;\n    paths.forEach((path) => {\n      const field = (lastCollection?.fields as Array<FieldModel | NestedField>)?.findBy(\n        'fieldName',\n        path,\n      );\n      if (field?.isBelongsTo) {\n        belongsTos.pushObject(field as FieldModel);\n      }\n      lastCollection = field?.nestedOrReferencedCollection;\n    });\n    return belongsTos;\n  }\n\n  static getBelongsToFieldsTreeToFetch(\n    templatingKeys: string[],\n    getBelongsToFieldsToFetch: (templatingKey: string) => FieldModel[],\n  ) {\n    return templatingKeys?.reduce((belongsToFieldsTreeToFetch, templatingKey) => {\n      const newBelongsToFieldsToFetch = getBelongsToFieldsToFetch(templatingKey);\n\n      let currentBelongsToFieldsTreeToFetch: BelongsToFieldsTreeToFetch =\n        belongsToFieldsTreeToFetch;\n      newBelongsToFieldsToFetch.forEach((belongsToField: FieldModel) => {\n        const key = belongsToField.attributeNameWithRelationships;\n        if (!currentBelongsToFieldsTreeToFetch[key]) {\n          currentBelongsToFieldsTreeToFetch[key] = {\n            field: belongsToField,\n            belongsTos: {},\n          };\n        }\n        currentBelongsToFieldsTreeToFetch = currentBelongsToFieldsTreeToFetch[key].belongsTos;\n      });\n      return belongsToFieldsTreeToFetch;\n    }, {});\n  }\n\n  autoComplete(fullPath: string, expectedType: string | null = null) {\n    return FieldTemplatingHelper.autoCompleteFields(this.collection, fullPath, expectedType);\n  }\n\n  isContextSet(): boolean {\n    return true;\n  }\n}\n","import type CurrentUserService from 'client/legacy/services/current-user';\n\nimport ComposableTemplatingHelper from 'client/utils/templating-helper/composable-templating-helper';\nimport CurrentDateTemplatingHelper from 'client/utils/templating-helper/current-date-templating-helper';\nimport CurrentUserTemplatingHelper from 'client/utils/templating-helper/current-user-templating-helper';\n\nexport default class SegmentTemplatingHelper extends ComposableTemplatingHelper {\n  constructor({ currentUser }: { currentUser: CurrentUserService }) {\n    super(new CurrentUserTemplatingHelper({ currentUser }), new CurrentDateTemplatingHelper());\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type CollectionStateService from 'client/legacy/services/collection-state';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type { BelongsToFieldsTreeToFetch } from 'client/utils/templating-helper/field-templating-helper';\n\nimport ComposableTemplatingHelper from 'client/utils/templating-helper/composable-templating-helper';\nimport CurrentDateTemplatingHelper from 'client/utils/templating-helper/current-date-templating-helper';\nimport CurrentRecordTemplatingHelper from 'client/utils/templating-helper/current-record-templating-helper';\nimport CurrentUserTemplatingHelper from 'client/utils/templating-helper/current-user-templating-helper';\n\nexport default class WidgetTemplatingHelper extends ComposableTemplatingHelper {\n  constructor({\n    currentUser,\n    collectionState,\n    parentCollection,\n  }: {\n    currentUser: CurrentUserService;\n    collectionState: CollectionStateService;\n    parentCollection: CollectionModel;\n  }) {\n    super(\n      new CurrentUserTemplatingHelper({ currentUser }),\n      new CurrentDateTemplatingHelper(),\n      new CurrentRecordTemplatingHelper({ collectionState, parentCollection }),\n    );\n  }\n\n  getBelongsToFieldsTreeToFetch(templatingKeys: string[]): BelongsToFieldsTreeToFetch {\n    return (\n      this.getTemplatingHelperHandler('currentRecord') as CurrentRecordTemplatingHelper\n    ).getBelongsToFieldsTreeToFetch(templatingKeys);\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\n\nimport { get } from '@ember/object';\n\nimport AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\nexport type ComponentContextVariableKeys = {\n  componentName: string;\n  contextVariableKeys: string[];\n};\n\nexport default class WorkspaceAutogeneratedTemplatingHelper extends AbstractTemplatingHelper {\n  collection: CollectionModel;\n  fields: FieldModel[];\n  belongsToField?: FieldModel;\n  belongsToFieldReferenceFields?: FieldModel[];\n  hasManyField?: FieldModel;\n\n  constructor({\n    collection,\n    fields,\n    belongsToField,\n    belongsToFieldReferenceFields,\n    hasManyField,\n  }: {\n    collection: CollectionModel;\n    fields: FieldModel[];\n    belongsToField?: FieldModel;\n    belongsToFieldReferenceFields?: FieldModel[];\n    hasManyField?: FieldModel;\n  }) {\n    super();\n\n    this.collection = collection;\n    this.fields = fields;\n    this.belongsToField = belongsToField;\n    this.belongsToFieldReferenceFields = belongsToFieldReferenceFields;\n    this.hasManyField = hasManyField;\n  }\n\n  get templatingKeyPrefix() {\n    return null;\n  }\n\n  autoComplete() {\n    // This file is never used for autocompletion\n    return null;\n  }\n\n  private getValueFromCollection(\n    templatingKey: string,\n    collection: CollectionModel | null,\n    fields: FieldModel[],\n  ): unknown {\n    const paths = templatingKey.split('.');\n    if (paths.shift() !== 'collection') {\n      throw new Error(\n        'WorkspaceAutogeneratedTemplatingHelper is always expecting \"collection\" as first key',\n      );\n    }\n    if (paths.length === 0 || !collection) {\n      return collection;\n    }\n\n    const parentPath = paths.shift();\n    switch (parentPath) {\n      case 'fields':\n        return paths.length > 0 ? get(fields, paths.join('.')) : null;\n      case 'belongsToField':\n        if (paths.length === 0) return this.belongsToField;\n        return paths[0] === 'referenceModel'\n          ? this.getValueFromCollection(\n              `collection.${paths.splice(1).join('.')}`,\n              this.belongsToField?.referenceModel,\n              this.belongsToFieldReferenceFields,\n            )\n          : get(this.belongsToField, paths.join('.'));\n      case 'hasManyField':\n        return this.hasManyField;\n      default:\n        return get(collection, [parentPath, ...paths].join('.'));\n    }\n  }\n\n  getVariableValue(templatingKey: string): unknown {\n    return this.getValueFromCollection(templatingKey, this.collection, this.fields);\n  }\n\n  isContextSet() {\n    return true;\n  }\n}\n","import type Model from '@ember-data/model';\nimport type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type WorkspaceComponentOptionsCollectionNestedDocument from 'client/data/models/workspace-component-options-collection';\nimport type WorkspaceComponentOptionsFieldNestedDocument from 'client/data/models/workspace-component-options-field';\nimport type WorkspaceComponentOptionsSearchNestedDocument from 'client/data/models/workspace-component-options-search';\nimport type NestedCollection from 'client/utils/nested/collection';\nimport type { AutoCompleteItem } from 'client/utils/templating-helper/abstract-templating-helper';\n\nimport { isArray } from '@ember/array';\nimport { isNone } from '@ember/utils';\n\nimport { MissingRequiredPropertyError } from 'client/utils/errors';\nimport AbstractTemplatingHelper, {\n  autoCompleteFromList,\n  buildAutocompleteItem,\n  isTypeCompatible,\n} from 'client/utils/templating-helper/abstract-templating-helper';\nimport CurrentRecordTemplatingHelper from 'client/utils/templating-helper/current-record-templating-helper';\nimport FieldTemplatingHelper from 'client/utils/templating-helper/field-templating-helper';\n\nexport type ComponentContextVariableKeys = {\n  componentName: string;\n  contextVariableKeys: string[];\n};\n\nexport default class WorkspaceComponentTemplatingHelper extends AbstractTemplatingHelper {\n  workspace: WorkspaceModel;\n  currentWorkspaceComponent: WorkspaceComponentModel;\n\n  constructor({\n    workspace,\n    currentWorkspaceComponent,\n  }: {\n    workspace: WorkspaceModel;\n    currentWorkspaceComponent: WorkspaceComponentModel;\n  }) {\n    super();\n\n    this.workspace = workspace;\n    this.currentWorkspaceComponent = currentWorkspaceComponent;\n\n    if (!workspace) {\n      throw new MissingRequiredPropertyError('workspace');\n    }\n  }\n\n  get templatingKeyPrefix(): string {\n    return null;\n  }\n\n  static _autoCompleteWorkspaceComponentsVariables(\n    workspaceComponentContextVariables: AutoCompleteItem[],\n    prefix = '',\n  ) {\n    return autoCompleteFromList(workspaceComponentContextVariables, prefix);\n  }\n\n  static _autoCompleteSelectedRecordFields(\n    currentPath: string,\n    nestedPaths: string[],\n    workspaceComponent: WorkspaceComponentModel,\n    prefix = '',\n    expectedType: string | null = null,\n    columnsOnly = false,\n  ) {\n    const { filteredCollection } = workspaceComponent.options as\n      | WorkspaceComponentOptionsSearchNestedDocument\n      | WorkspaceComponentOptionsCollectionNestedDocument;\n    const fullPath = nestedPaths.length > 0 ? `${nestedPaths.join('.')}.${prefix}` : prefix;\n    const items = FieldTemplatingHelper.autoCompleteFields(\n      filteredCollection,\n      fullPath,\n      expectedType,\n      columnsOnly,\n    );\n    return (\n      items\n      && items.map((autoCompleteItem) => ({\n        ...autoCompleteItem,\n        value: `${currentPath}.${autoCompleteItem.value}`,\n      }))\n    );\n  }\n\n  _autoCompleteWorkspaceComponents(prefix: string, expectedType: string, isValidating: boolean) {\n    const autocompleteItemsForComponents = this.workspace.components\n      .filter((workspaceComponent) => {\n        if (workspaceComponent === this.currentWorkspaceComponent) {\n          return false;\n        }\n        const contextVariables = this.getWorkspaceComponentContextVariables(\n          workspaceComponent,\n          expectedType,\n          isValidating,\n        );\n        return (\n          contextVariables?.length\n          && (expectedType !== 'HasMany'\n            || contextVariables.some(\n              (contextVariable) => contextVariable.label === 'selectedRecords',\n            ))\n        );\n      })\n      .map((workspaceComponent) =>\n        buildAutocompleteItem(workspaceComponent.name, { hasVariables: true }),\n      );\n\n    return autoCompleteFromList(autocompleteItemsForComponents, prefix);\n  }\n\n  _getWorkspaceComponent(workspaceComponentName: string): WorkspaceComponentModel {\n    return this.workspace.components.findBy('name', workspaceComponentName);\n  }\n\n  static _getSelectedRecordFields(\n    workspaceComponent: WorkspaceComponentModel,\n    paths: string[],\n    lastPath: string,\n    expectedType: string,\n    workspaceComponentContextVariables: AutoCompleteItem[],\n  ) {\n    const contextVariable = workspaceComponentContextVariables.find(\n      (contextVariableToFind) => contextVariableToFind.label === paths[1],\n    );\n    return contextVariable?.hasVariables\n      ? WorkspaceComponentTemplatingHelper._autoCompleteSelectedRecordFields(\n          `${paths.shift()}.${paths.shift()}`,\n          paths,\n          workspaceComponent,\n          lastPath,\n          expectedType,\n          contextVariable.label === 'selectedRecords',\n        )\n      : null;\n  }\n\n  replaceCurrentRecordPaths(path: string) {\n    if (path.startsWith('currentRecord.')) {\n      return path.replace(\n        'currentRecord.',\n        `${(this.currentWorkspaceComponent.options as WorkspaceComponentOptionsFieldNestedDocument)\n          .source?.name}.selectedRecord.`,\n      );\n    }\n    return path;\n  }\n\n  autoComplete(\n    fullPath: string,\n    expectedType: string = null,\n    isValidating = false,\n  ): AutoCompleteItem[] | null {\n    if (fullPath.startsWith('currentRecord.')) {\n      const autoCompleteItems = this.autoComplete(\n        this.replaceCurrentRecordPaths(fullPath),\n        expectedType,\n        isValidating,\n      );\n      const currentWorkspaceComponentOptions = this.currentWorkspaceComponent\n        .options as WorkspaceComponentOptionsFieldNestedDocument;\n      return autoCompleteItems.map((autoCompleteItem) => {\n        autoCompleteItem.value = autoCompleteItem.value.replace(\n          `${currentWorkspaceComponentOptions.source?.name}.selectedRecord.`,\n          'currentRecord.',\n        );\n        return autoCompleteItem;\n      });\n    }\n    const paths = this.replaceCurrentRecordPaths(fullPath).split('.');\n    const lastPath = paths.pop();\n\n    if (paths.length > 0) {\n      const workspaceComponent = this._getWorkspaceComponent(paths[0]);\n      const workspaceComponentContextVariables = this.getWorkspaceComponentContextVariables(\n        workspaceComponent,\n        expectedType,\n        isValidating,\n      );\n\n      if (workspaceComponent && paths.length > 1) {\n        return WorkspaceComponentTemplatingHelper._getSelectedRecordFields(\n          workspaceComponent,\n          paths,\n          lastPath,\n          expectedType,\n          workspaceComponentContextVariables,\n        );\n      }\n\n      if (workspaceComponent) {\n        return WorkspaceComponentTemplatingHelper._autoCompleteWorkspaceComponentsVariables(\n          workspaceComponentContextVariables,\n          paths[1] || lastPath,\n        );\n      }\n    }\n\n    return this._autoCompleteWorkspaceComponents(paths[0] || lastPath, expectedType, isValidating);\n  }\n\n  public isComponentContextVariableSet(componentName: string, contextVariableKey: string): boolean {\n    const component = this.currentWorkspaceComponent.getWorkspaceComponentFromName(componentName);\n\n    if (!component) return false;\n    // In case the context variable is an array (e.g.: 'selectedRecords') it's defined when it has at least one element.\n    // Otherwise it's defined unless equal to undefined or null.\n    return Array.isArray(component[contextVariableKey])\n      ? (component[contextVariableKey] as unknown[]).length > 0\n      : !isNone(component[contextVariableKey]);\n  }\n\n  public getVariableValue(templatingKey: string): unknown {\n    // Any time you call this function the path should already be validated first !\n    const paths = this.replaceCurrentRecordPaths(templatingKey).split('.');\n    const workspaceComponent = this._getWorkspaceComponent(paths.shift());\n    const variableValue: Model | Model[] = workspaceComponent[paths.shift()] as Model | Model[];\n\n    const lastCollection: NestedCollection | CollectionModel =\n      'filteredCollection' in workspaceComponent.options\n        ? workspaceComponent.options.filteredCollection\n        : null;\n\n    // Handle array values (e.g., selectedRecords) - map over each record and join results\n    if (isArray(variableValue) && paths.length > 0) {\n      return (variableValue as Model[])\n        .map((record) =>\n          CurrentRecordTemplatingHelper.getVariableValueFromRecord(paths, record, lastCollection),\n        )\n        .join(',');\n    }\n\n    return CurrentRecordTemplatingHelper.getVariableValueFromRecord(\n      paths,\n      variableValue as Model,\n      lastCollection,\n    );\n  }\n\n  public isContextSet(input: string | string[]): boolean {\n    const templatingKeysFound = isArray(input)\n      ? (input as string[])\n      : AbstractTemplatingHelper.getTemplatingKeys(input);\n    if (!templatingKeysFound.length) {\n      return true;\n    }\n    return templatingKeysFound.every((templatingKey) => {\n      const [componentName, contextVariable] =\n        this.replaceCurrentRecordPaths(templatingKey).split('.');\n      return this.isComponentContextVariableSet(componentName, contextVariable);\n    });\n  }\n\n  public getBelongsToFieldsToFetch(templatingKey: string): FieldModel[] {\n    const paths = templatingKey.split('.');\n    const workspaceComponent = this._getWorkspaceComponent(paths.shift());\n    paths.shift();\n\n    const lastCollection: CollectionModel | NestedCollection =\n      'filteredCollection' in workspaceComponent.options\n        ? workspaceComponent.options.filteredCollection\n        : null;\n    return FieldTemplatingHelper.getBelongsToFieldsToFetch(lastCollection, paths.join('.'));\n  }\n\n  private getWorkspaceComponentContextVariables(\n    workspaceComponent: WorkspaceComponentModel,\n    expectedType: string,\n    isValidating: boolean,\n  ) {\n    return workspaceComponent?.[\n      isValidating ? 'prefilledContextVariables' : 'contextVariables'\n    ]?.filter((contextVariable) => isTypeCompatible(contextVariable.type, expectedType));\n  }\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type FieldModel from 'client/data/models/field';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type CollectionStateService from 'client/legacy/services/collection-state';\nimport type CurrentUserService from 'client/legacy/services/current-user';\nimport type AbstractTemplatingHelper from 'client/utils/templating-helper/abstract-templating-helper';\n\nimport ComposableTemplatingHelper from 'client/utils/templating-helper/composable-templating-helper';\nimport CurrentDateTemplatingHelper from 'client/utils/templating-helper/current-date-templating-helper';\nimport CurrentRecordTemplatingHelper from 'client/utils/templating-helper/current-record-templating-helper';\nimport CurrentUserTemplatingHelper from 'client/utils/templating-helper/current-user-templating-helper';\nimport WorkspaceComponentTemplatingHelper from 'client/utils/templating-helper/workspace-component-templating-helper';\n\nexport default class WorkspaceTemplatingHelper extends ComposableTemplatingHelper {\n  constructor({\n    workspace,\n    currentWorkspaceComponent,\n    currentUser,\n    parentCollection,\n    collectionState,\n  }: {\n    workspace: WorkspaceModel;\n    currentWorkspaceComponent: WorkspaceComponentModel;\n    currentUser: CurrentUserService;\n    parentCollection?: CollectionModel;\n    collectionState?: CollectionStateService;\n  }) {\n    const workspaceComponentTemplatingHelper = new WorkspaceComponentTemplatingHelper({\n      workspace,\n      currentWorkspaceComponent,\n    });\n    const currentUserTemplatingHelper = new CurrentUserTemplatingHelper({ currentUser });\n    const currentDateTemplatingHelper = new CurrentDateTemplatingHelper();\n    const templatingHelpers: AbstractTemplatingHelper[] = [\n      workspaceComponentTemplatingHelper,\n      currentUserTemplatingHelper,\n      currentDateTemplatingHelper,\n    ];\n\n    if (parentCollection && collectionState) {\n      templatingHelpers.push(\n        new CurrentRecordTemplatingHelper({ collectionState, parentCollection }),\n      );\n    }\n\n    super(...templatingHelpers);\n  }\n\n  public isWorkspaceComponentTemplatingKey(templatingKey: string): boolean {\n    const templatingHelper = this.getTemplatingHelperHandler(templatingKey);\n\n    return templatingHelper instanceof WorkspaceComponentTemplatingHelper;\n  }\n\n  public isComponentContextVariableSet(componentName: string, variableKey: string): boolean {\n    const templatingHelper = this.getTemplatingHelperHandler(componentName);\n\n    return templatingHelper instanceof WorkspaceComponentTemplatingHelper\n      ? templatingHelper.isComponentContextVariableSet(componentName, variableKey)\n      : false;\n  }\n\n  public getBelongsToFieldsToFetch(templatingKey: string): FieldModel[] {\n    const templatingHelper = this.getTemplatingHelperHandler(templatingKey);\n\n    return templatingHelper instanceof WorkspaceComponentTemplatingHelper\n      ? templatingHelper.getBelongsToFieldsToFetch(templatingKey)\n      : [];\n  }\n}\n","export default [\n  {\n    name: \"Auto (based on the user's time zone)\",\n    value: null,\n  },\n  {\n    name: 'Africa/Abidjan (UTC)',\n    value: 'Africa/Abidjan',\n  },\n  {\n    name: 'Africa/Accra (UTC)',\n    value: 'Africa/Accra',\n  },\n  {\n    name: 'Africa/Addis Ababa (UTC+03:00)',\n    value: 'Africa/Addis_Ababa',\n  },\n  {\n    name: 'Africa/Algiers (UTC+01:00)',\n    value: 'Africa/Algiers',\n  },\n  {\n    name: 'Africa/Asmara (UTC+03:00)',\n    value: 'Africa/Asmara',\n  },\n  {\n    name: 'Africa/Bamako (UTC)',\n    value: 'Africa/Bamako',\n  },\n  {\n    name: 'Africa/Bangui (UTC+01:00)',\n    value: 'Africa/Bangui',\n  },\n  {\n    name: 'Africa/Banjul (UTC)',\n    value: 'Africa/Banjul',\n  },\n  {\n    name: 'Africa/Bissau (UTC)',\n    value: 'Africa/Bissau',\n  },\n  {\n    name: 'Africa/Blantyre (UTC+02:00)',\n    value: 'Africa/Blantyre',\n  },\n  {\n    name: 'Africa/Brazzaville (UTC+01:00)',\n    value: 'Africa/Brazzaville',\n  },\n  {\n    name: 'Africa/Bujumbura (UTC+02:00)',\n    value: 'Africa/Bujumbura',\n  },\n  {\n    name: 'Africa/Cairo (UTC+02:00)',\n    value: 'Africa/Cairo',\n  },\n  {\n    name: 'Africa/Casablanca (UTC+01:00)',\n    value: 'Africa/Casablanca',\n  },\n  {\n    name: 'Africa/Ceuta (UTC+02:00)',\n    value: 'Africa/Ceuta',\n  },\n  {\n    name: 'Africa/Conakry (UTC)',\n    value: 'Africa/Conakry',\n  },\n  {\n    name: 'Africa/Dakar (UTC)',\n    value: 'Africa/Dakar',\n  },\n  {\n    name: 'Africa/Dar es Salaam (UTC+03:00)',\n    value: 'Africa/Dar_es_Salaam',\n  },\n  {\n    name: 'Africa/Djibouti (UTC+03:00)',\n    value: 'Africa/Djibouti',\n  },\n  {\n    name: 'Africa/Douala (UTC+01:00)',\n    value: 'Africa/Douala',\n  },\n  {\n    name: 'Africa/El Aaiun (UTC+01:00)',\n    value: 'Africa/El_Aaiun',\n  },\n  {\n    name: 'Africa/Freetown (UTC)',\n    value: 'Africa/Freetown',\n  },\n  {\n    name: 'Africa/Gaborone (UTC+02:00)',\n    value: 'Africa/Gaborone',\n  },\n  {\n    name: 'Africa/Harare (UTC+02:00)',\n    value: 'Africa/Harare',\n  },\n  {\n    name: 'Africa/Johannesburg (UTC+02:00)',\n    value: 'Africa/Johannesburg',\n  },\n  {\n    name: 'Africa/Kampala (UTC+03:00)',\n    value: 'Africa/Kampala',\n  },\n  {\n    name: 'Africa/Khartoum (UTC+02:00)',\n    value: 'Africa/Khartoum',\n  },\n  {\n    name: 'Africa/Kigali (UTC+02:00)',\n    value: 'Africa/Kigali',\n  },\n  {\n    name: 'Africa/Kinshasa (UTC+01:00)',\n    value: 'Africa/Kinshasa',\n  },\n  {\n    name: 'Africa/Lagos (UTC+01:00)',\n    value: 'Africa/Lagos',\n  },\n  {\n    name: 'Africa/Libreville (UTC+01:00)',\n    value: 'Africa/Libreville',\n  },\n  {\n    name: 'Africa/Lome (UTC)',\n    value: 'Africa/Lome',\n  },\n  {\n    name: 'Africa/Luanda (UTC+01:00)',\n    value: 'Africa/Luanda',\n  },\n  {\n    name: 'Africa/Lubumbashi (UTC+02:00)',\n    value: 'Africa/Lubumbashi',\n  },\n  {\n    name: 'Africa/Lusaka (UTC+02:00)',\n    value: 'Africa/Lusaka',\n  },\n  {\n    name: 'Africa/Malabo (UTC+01:00)',\n    value: 'Africa/Malabo',\n  },\n  {\n    name: 'Africa/Maputo (UTC+02:00)',\n    value: 'Africa/Maputo',\n  },\n  {\n    name: 'Africa/Maseru (UTC+02:00)',\n    value: 'Africa/Maseru',\n  },\n  {\n    name: 'Africa/Mbabane (UTC+02:00)',\n    value: 'Africa/Mbabane',\n  },\n  {\n    name: 'Africa/Mogadishu (UTC+03:00)',\n    value: 'Africa/Mogadishu',\n  },\n  {\n    name: 'Africa/Monrovia (UTC)',\n    value: 'Africa/Monrovia',\n  },\n  {\n    name: 'Africa/Nairobi (UTC+03:00)',\n    value: 'Africa/Nairobi',\n  },\n  {\n    name: 'Africa/Ndjamena (UTC+01:00)',\n    value: 'Africa/Ndjamena',\n  },\n  {\n    name: 'Africa/Niamey (UTC+01:00)',\n    value: 'Africa/Niamey',\n  },\n  {\n    name: 'Africa/Nouakchott (UTC)',\n    value: 'Africa/Nouakchott',\n  },\n  {\n    name: 'Africa/Ouagadougou (UTC)',\n    value: 'Africa/Ouagadougou',\n  },\n  {\n    name: 'Africa/Porto-Novo (UTC+01:00)',\n    value: 'Africa/Porto-Novo',\n  },\n  {\n    name: 'Africa/Sao Tome (UTC)',\n    value: 'Africa/Sao_Tome',\n  },\n  {\n    name: 'Africa/Tripoli (UTC+02:00)',\n    value: 'Africa/Tripoli',\n  },\n  {\n    name: 'Africa/Tunis (UTC+01:00)',\n    value: 'Africa/Tunis',\n  },\n  {\n    name: 'Africa/Windhoek (UTC+02:00)',\n    value: 'Africa/Windhoek',\n  },\n  {\n    name: 'America/Adak (UTC-09:00)',\n    value: 'America/Adak',\n  },\n  {\n    name: 'America/Anchorage (UTC-08:00)',\n    value: 'America/Anchorage',\n  },\n  {\n    name: 'America/Anguilla (UTC-04:00)',\n    value: 'America/Anguilla',\n  },\n  {\n    name: 'America/Antigua (UTC-04:00)',\n    value: 'America/Antigua',\n  },\n  {\n    name: 'America/Araguaina (UTC-03:00)',\n    value: 'America/Araguaina',\n  },\n  {\n    name: 'America/Argentina/Buenos Aires (UTC-03:00)',\n    value: 'America/Argentina/Buenos_Aires',\n  },\n  {\n    name: 'America/Argentina/Catamarca (UTC-03:00)',\n    value: 'America/Argentina/Catamarca',\n  },\n  {\n    name: 'America/Argentina/Cordoba (UTC-03:00)',\n    value: 'America/Argentina/Cordoba',\n  },\n  {\n    name: 'America/Argentina/Jujuy (UTC-03:00)',\n    value: 'America/Argentina/Jujuy',\n  },\n  {\n    name: 'America/Argentina/La Rioja (UTC-03:00)',\n    value: 'America/Argentina/La_Rioja',\n  },\n  {\n    name: 'America/Argentina/Mendoza (UTC-03:00)',\n    value: 'America/Argentina/Mendoza',\n  },\n  {\n    name: 'America/Argentina/Rio Gallegos (UTC-03:00)',\n    value: 'America/Argentina/Rio_Gallegos',\n  },\n  {\n    name: 'America/Argentina/Salta (UTC-03:00)',\n    value: 'America/Argentina/Salta',\n  },\n  {\n    name: 'America/Argentina/San Juan (UTC-03:00)',\n    value: 'America/Argentina/San_Juan',\n  },\n  {\n    name: 'America/Argentina/San Luis (UTC-03:00)',\n    value: 'America/Argentina/San_Luis',\n  },\n  {\n    name: 'America/Argentina/Tucuman (UTC-03:00)',\n    value: 'America/Argentina/Tucuman',\n  },\n  {\n    name: 'America/Argentina/Ushuaia (UTC-03:00)',\n    value: 'America/Argentina/Ushuaia',\n  },\n  {\n    name: 'America/Aruba (UTC-04:00)',\n    value: 'America/Aruba',\n  },\n  {\n    name: 'America/Asuncion (UTC-04:00)',\n    value: 'America/Asuncion',\n  },\n  {\n    name: 'America/Atikokan (UTC-05:00)',\n    value: 'America/Atikokan',\n  },\n  {\n    name: 'America/Bahia Banderas (UTC-05:00)',\n    value: 'America/Bahia_Banderas',\n  },\n  {\n    name: 'America/Bahia (UTC-03:00)',\n    value: 'America/Bahia',\n  },\n  {\n    name: 'America/Barbados (UTC-04:00)',\n    value: 'America/Barbados',\n  },\n  {\n    name: 'America/Belem (UTC-03:00)',\n    value: 'America/Belem',\n  },\n  {\n    name: 'America/Belize (UTC-06:00)',\n    value: 'America/Belize',\n  },\n  {\n    name: 'America/Blanc-Sablon (UTC-04:00)',\n    value: 'America/Blanc-Sablon',\n  },\n  {\n    name: 'America/Boa Vista (UTC-04:00)',\n    value: 'America/Boa_Vista',\n  },\n  {\n    name: 'America/Bogota (UTC-05:00)',\n    value: 'America/Bogota',\n  },\n  {\n    name: 'America/Boise (UTC-06:00)',\n    value: 'America/Boise',\n  },\n  {\n    name: 'America/Cambridge Bay (UTC-06:00)',\n    value: 'America/Cambridge_Bay',\n  },\n  {\n    name: 'America/Campo Grande (UTC-04:00)',\n    value: 'America/Campo_Grande',\n  },\n  {\n    name: 'America/Cancun (UTC-05:00)',\n    value: 'America/Cancun',\n  },\n  {\n    name: 'America/Caracas (UTC-04:00)',\n    value: 'America/Caracas',\n  },\n  {\n    name: 'America/Cayenne (UTC-03:00)',\n    value: 'America/Cayenne',\n  },\n  {\n    name: 'America/Cayman (UTC-05:00)',\n    value: 'America/Cayman',\n  },\n  {\n    name: 'America/Chicago (UTC-05:00)',\n    value: 'America/Chicago',\n  },\n  {\n    name: 'America/Chihuahua (UTC-06:00)',\n    value: 'America/Chihuahua',\n  },\n  {\n    name: 'America/Costa Rica (UTC-06:00)',\n    value: 'America/Costa_Rica',\n  },\n  {\n    name: 'America/Cuiaba (UTC-04:00)',\n    value: 'America/Cuiaba',\n  },\n  {\n    name: 'America/Curacao (UTC-04:00)',\n    value: 'America/Curacao',\n  },\n  {\n    name: 'America/Danmarkshavn (UTC)',\n    value: 'America/Danmarkshavn',\n  },\n  {\n    name: 'America/Dawson Creek (UTC-07:00)',\n    value: 'America/Dawson_Creek',\n  },\n  {\n    name: 'America/Dawson (UTC-07:00)',\n    value: 'America/Dawson',\n  },\n  {\n    name: 'America/Denver (UTC-06:00)',\n    value: 'America/Denver',\n  },\n  {\n    name: 'America/Detroit (UTC-04:00)',\n    value: 'America/Detroit',\n  },\n  {\n    name: 'America/Dominica (UTC-04:00)',\n    value: 'America/Dominica',\n  },\n  {\n    name: 'America/Edmonton (UTC-06:00)',\n    value: 'America/Edmonton',\n  },\n  {\n    name: 'America/Eirunepe (UTC-05:00)',\n    value: 'America/Eirunepe',\n  },\n  {\n    name: 'America/El Salvador (UTC-06:00)',\n    value: 'America/El_Salvador',\n  },\n  {\n    name: 'America/Fortaleza (UTC-03:00)',\n    value: 'America/Fortaleza',\n  },\n  {\n    name: 'America/Glace Bay (UTC-03:00)',\n    value: 'America/Glace_Bay',\n  },\n  {\n    name: 'America/Godthab (UTC-02:00)',\n    value: 'America/Godthab',\n  },\n  {\n    name: 'America/Goose Bay (UTC-03:00)',\n    value: 'America/Goose_Bay',\n  },\n  {\n    name: 'America/Grand Turk (UTC-04:00)',\n    value: 'America/Grand_Turk',\n  },\n  {\n    name: 'America/Grenada (UTC-04:00)',\n    value: 'America/Grenada',\n  },\n  {\n    name: 'America/Guadeloupe (UTC-04:00)',\n    value: 'America/Guadeloupe',\n  },\n  {\n    name: 'America/Guatemala (UTC-06:00)',\n    value: 'America/Guatemala',\n  },\n  {\n    name: 'America/Guayaquil (UTC-05:00)',\n    value: 'America/Guayaquil',\n  },\n  {\n    name: 'America/Guyana (UTC-04:00)',\n    value: 'America/Guyana',\n  },\n  {\n    name: 'America/Halifax (UTC-03:00)',\n    value: 'America/Halifax',\n  },\n  {\n    name: 'America/Havana (UTC-04:00)',\n    value: 'America/Havana',\n  },\n  {\n    name: 'America/Hermosillo (UTC-07:00)',\n    value: 'America/Hermosillo',\n  },\n  {\n    name: 'America/Indiana/Indianapolis (UTC-04:00)',\n    value: 'America/Indiana/Indianapolis',\n  },\n  {\n    name: 'America/Indiana/Knox (UTC-05:00)',\n    value: 'America/Indiana/Knox',\n  },\n  {\n    name: 'America/Indiana/Marengo (UTC-04:00)',\n    value: 'America/Indiana/Marengo',\n  },\n  {\n    name: 'America/Indiana/Petersburg (UTC-04:00)',\n    value: 'America/Indiana/Petersburg',\n  },\n  {\n    name: 'America/Indiana/Tell City (UTC-05:00)',\n    value: 'America/Indiana/Tell_City',\n  },\n  {\n    name: 'America/Indiana/Vevay (UTC-04:00)',\n    value: 'America/Indiana/Vevay',\n  },\n  {\n    name: 'America/Indiana/Vincennes (UTC-04:00)',\n    value: 'America/Indiana/Vincennes',\n  },\n  {\n    name: 'America/Indiana/Winamac (UTC-04:00)',\n    value: 'America/Indiana/Winamac',\n  },\n  {\n    name: 'America/Inuvik (UTC-06:00)',\n    value: 'America/Inuvik',\n  },\n  {\n    name: 'America/Iqaluit (UTC-04:00)',\n    value: 'America/Iqaluit',\n  },\n  {\n    name: 'America/Jamaica (UTC-05:00)',\n    value: 'America/Jamaica',\n  },\n  {\n    name: 'America/Juneau (UTC-08:00)',\n    value: 'America/Juneau',\n  },\n  {\n    name: 'America/Kentucky/Louisville (UTC-04:00)',\n    value: 'America/Kentucky/Louisville',\n  },\n  {\n    name: 'America/Kentucky/Monticello (UTC-04:00)',\n    value: 'America/Kentucky/Monticello',\n  },\n  {\n    name: 'America/La Paz (UTC-04:00)',\n    value: 'America/La_Paz',\n  },\n  {\n    name: 'America/Lima (UTC-05:00)',\n    value: 'America/Lima',\n  },\n  {\n    name: 'America/Los Angeles (UTC-07:00)',\n    value: 'America/Los_Angeles',\n  },\n  {\n    name: 'America/Maceio (UTC-03:00)',\n    value: 'America/Maceio',\n  },\n  {\n    name: 'America/Managua (UTC-06:00)',\n    value: 'America/Managua',\n  },\n  {\n    name: 'America/Manaus (UTC-04:00)',\n    value: 'America/Manaus',\n  },\n  {\n    name: 'America/Marigot (UTC-04:00)',\n    value: 'America/Marigot',\n  },\n  {\n    name: 'America/Martinique (UTC-04:00)',\n    value: 'America/Martinique',\n  },\n  {\n    name: 'America/Matamoros (UTC-05:00)',\n    value: 'America/Matamoros',\n  },\n  {\n    name: 'America/Mazatlan (UTC-06:00)',\n    value: 'America/Mazatlan',\n  },\n  {\n    name: 'America/Menominee (UTC-05:00)',\n    value: 'America/Menominee',\n  },\n  {\n    name: 'America/Merida (UTC-05:00)',\n    value: 'America/Merida',\n  },\n  {\n    name: 'America/Metlakatla (UTC-08:00)',\n    value: 'America/Metlakatla',\n  },\n  {\n    name: 'America/Mexico City (UTC-05:00)',\n    value: 'America/Mexico_City',\n  },\n  {\n    name: 'America/Miquelon (UTC-02:00)',\n    value: 'America/Miquelon',\n  },\n  {\n    name: 'America/Moncton (UTC-03:00)',\n    value: 'America/Moncton',\n  },\n  {\n    name: 'America/Monterrey (UTC-05:00)',\n    value: 'America/Monterrey',\n  },\n  {\n    name: 'America/Montevideo (UTC-03:00)',\n    value: 'America/Montevideo',\n  },\n  {\n    name: 'America/Montreal (UTC-04:00)',\n    value: 'America/Montreal',\n  },\n  {\n    name: 'America/Montserrat (UTC-04:00)',\n    value: 'America/Montserrat',\n  },\n  {\n    name: 'America/Nassau (UTC-04:00)',\n    value: 'America/Nassau',\n  },\n  {\n    name: 'America/New York (UTC-04:00)',\n    value: 'America/New_York',\n  },\n  {\n    name: 'America/Nipigon (UTC-04:00)',\n    value: 'America/Nipigon',\n  },\n  {\n    name: 'America/Nome (UTC-08:00)',\n    value: 'America/Nome',\n  },\n  {\n    name: 'America/Noronha (UTC-02:00)',\n    value: 'America/Noronha',\n  },\n  {\n    name: 'America/North Dakota/Beulah (UTC-05:00)',\n    value: 'America/North_Dakota/Beulah',\n  },\n  {\n    name: 'America/North Dakota/Center (UTC-05:00)',\n    value: 'America/North_Dakota/Center',\n  },\n  {\n    name: 'America/North Dakota/New Salem (UTC-05:00)',\n    value: 'America/North_Dakota/New_Salem',\n  },\n  {\n    name: 'America/Ojinaga (UTC-06:00)',\n    value: 'America/Ojinaga',\n  },\n  {\n    name: 'America/Panama (UTC-05:00)',\n    value: 'America/Panama',\n  },\n  {\n    name: 'America/Pangnirtung (UTC-04:00)',\n    value: 'America/Pangnirtung',\n  },\n  {\n    name: 'America/Paramaribo (UTC-03:00)',\n    value: 'America/Paramaribo',\n  },\n  {\n    name: 'America/Phoenix (UTC-07:00)',\n    value: 'America/Phoenix',\n  },\n  {\n    name: 'America/Port of Spain (UTC-04:00)',\n    value: 'America/Port_of_Spain',\n  },\n  {\n    name: 'America/Port-au-Prince (UTC-04:00)',\n    value: 'America/Port-au-Prince',\n  },\n  {\n    name: 'America/Porto Velho (UTC-04:00)',\n    value: 'America/Porto_Velho',\n  },\n  {\n    name: 'America/Puerto Rico (UTC-04:00)',\n    value: 'America/Puerto_Rico',\n  },\n  {\n    name: 'America/Rainy River (UTC-05:00)',\n    value: 'America/Rainy_River',\n  },\n  {\n    name: 'America/Rankin Inlet (UTC-05:00)',\n    value: 'America/Rankin_Inlet',\n  },\n  {\n    name: 'America/Recife (UTC-03:00)',\n    value: 'America/Recife',\n  },\n  {\n    name: 'America/Regina (UTC-06:00)',\n    value: 'America/Regina',\n  },\n  {\n    name: 'America/Resolute (UTC-05:00)',\n    value: 'America/Resolute',\n  },\n  {\n    name: 'America/Rio Branco (UTC-05:00)',\n    value: 'America/Rio_Branco',\n  },\n  {\n    name: 'America/Santa Isabel (UTC-07:00)',\n    value: 'America/Santa_Isabel',\n  },\n  {\n    name: 'America/Santarem (UTC-03:00)',\n    value: 'America/Santarem',\n  },\n  {\n    name: 'America/Santiago (UTC-03:00)',\n    value: 'America/Santiago',\n  },\n  {\n    name: 'America/Santo Domingo (UTC-04:00)',\n    value: 'America/Santo_Domingo',\n  },\n  {\n    name: 'America/Sao Paulo (UTC-03:00)',\n    value: 'America/Sao_Paulo',\n  },\n  {\n    name: 'America/Scoresbysund (UTC)',\n    value: 'America/Scoresbysund',\n  },\n  {\n    name: 'America/Shiprock (UTC-06:00)',\n    value: 'America/Shiprock',\n  },\n  {\n    name: 'America/Sitka (UTC-08:00)',\n    value: 'America/Sitka',\n  },\n  {\n    name: 'America/St Barthelemy (UTC-04:00)',\n    value: 'America/St_Barthelemy',\n  },\n  {\n    name: 'America/St Johns (UTC-02:30)',\n    value: 'America/St_Johns',\n  },\n  {\n    name: 'America/St Kitts (UTC-04:00)',\n    value: 'America/St_Kitts',\n  },\n  {\n    name: 'America/St Lucia (UTC-04:00)',\n    value: 'America/St_Lucia',\n  },\n  {\n    name: 'America/St Thomas (UTC-04:00)',\n    value: 'America/St_Thomas',\n  },\n  {\n    name: 'America/St Vincent (UTC-04:00)',\n    value: 'America/St_Vincent',\n  },\n  {\n    name: 'America/Swift Current (UTC-06:00)',\n    value: 'America/Swift_Current',\n  },\n  {\n    name: 'America/Tegucigalpa (UTC-06:00)',\n    value: 'America/Tegucigalpa',\n  },\n  {\n    name: 'America/Thule (UTC-03:00)',\n    value: 'America/Thule',\n  },\n  {\n    name: 'America/Thunder Bay (UTC-04:00)',\n    value: 'America/Thunder_Bay',\n  },\n  {\n    name: 'America/Tijuana (UTC-07:00)',\n    value: 'America/Tijuana',\n  },\n  {\n    name: 'America/Toronto (UTC-04:00)',\n    value: 'America/Toronto',\n  },\n  {\n    name: 'America/Tortola (UTC-04:00)',\n    value: 'America/Tortola',\n  },\n  {\n    name: 'America/Vancouver (UTC-07:00)',\n    value: 'America/Vancouver',\n  },\n  {\n    name: 'America/Whitehorse (UTC-07:00)',\n    value: 'America/Whitehorse',\n  },\n  {\n    name: 'America/Winnipeg (UTC-05:00)',\n    value: 'America/Winnipeg',\n  },\n  {\n    name: 'America/Yakutat (UTC-08:00)',\n    value: 'America/Yakutat',\n  },\n  {\n    name: 'America/Yellowknife (UTC-06:00)',\n    value: 'America/Yellowknife',\n  },\n  {\n    name: 'Antarctica/Casey (UTC+11:00)',\n    value: 'Antarctica/Casey',\n  },\n  {\n    name: 'Antarctica/Davis (UTC+07:00)',\n    value: 'Antarctica/Davis',\n  },\n  {\n    name: 'Antarctica/DumontDUrville (UTC+10:00)',\n    value: 'Antarctica/DumontDUrville',\n  },\n  {\n    name: 'Antarctica/Macquarie (UTC+11:00)',\n    value: 'Antarctica/Macquarie',\n  },\n  {\n    name: 'Antarctica/Mawson (UTC+05:00)',\n    value: 'Antarctica/Mawson',\n  },\n  {\n    name: 'Antarctica/McMurdo (UTC+12:00)',\n    value: 'Antarctica/McMurdo',\n  },\n  {\n    name: 'Antarctica/Palmer (UTC-03:00)',\n    value: 'Antarctica/Palmer',\n  },\n  {\n    name: 'Antarctica/Rothera (UTC-03:00)',\n    value: 'Antarctica/Rothera',\n  },\n  {\n    name: 'Antarctica/South Pole (UTC+12:00)',\n    value: 'Antarctica/South_Pole',\n  },\n  {\n    name: 'Antarctica/Syowa (UTC+03:00)',\n    value: 'Antarctica/Syowa',\n  },\n  {\n    name: 'Antarctica/Vostok (UTC+06:00)',\n    value: 'Antarctica/Vostok',\n  },\n  {\n    name: 'Arctic/Longyearbyen (UTC+02:00)',\n    value: 'Arctic/Longyearbyen',\n  },\n  {\n    name: 'Asia/Aden (UTC+03:00)',\n    value: 'Asia/Aden',\n  },\n  {\n    name: 'Asia/Almaty (UTC+06:00)',\n    value: 'Asia/Almaty',\n  },\n  {\n    name: 'Asia/Amman (UTC+03:00)',\n    value: 'Asia/Amman',\n  },\n  {\n    name: 'Asia/Anadyr (UTC+12:00)',\n    value: 'Asia/Anadyr',\n  },\n  {\n    name: 'Asia/Aqtau (UTC+05:00)',\n    value: 'Asia/Aqtau',\n  },\n  {\n    name: 'Asia/Aqtobe (UTC+05:00)',\n    value: 'Asia/Aqtobe',\n  },\n  {\n    name: 'Asia/Ashgabat (UTC+05:00)',\n    value: 'Asia/Ashgabat',\n  },\n  {\n    name: 'Asia/Baghdad (UTC+03:00)',\n    value: 'Asia/Baghdad',\n  },\n  {\n    name: 'Asia/Bahrain (UTC+03:00)',\n    value: 'Asia/Bahrain',\n  },\n  {\n    name: 'Asia/Baku (UTC+04:00)',\n    value: 'Asia/Baku',\n  },\n  {\n    name: 'Asia/Bangkok (UTC+07:00)',\n    value: 'Asia/Bangkok',\n  },\n  {\n    name: 'Asia/Beirut (UTC+03:00)',\n    value: 'Asia/Beirut',\n  },\n  {\n    name: 'Asia/Bishkek (UTC+06:00)',\n    value: 'Asia/Bishkek',\n  },\n  {\n    name: 'Asia/Brunei (UTC+08:00)',\n    value: 'Asia/Brunei',\n  },\n  {\n    name: 'Asia/Choibalsan (UTC+08:00)',\n    value: 'Asia/Choibalsan',\n  },\n  {\n    name: 'Asia/Chongqing (UTC+08:00)',\n    value: 'Asia/Chongqing',\n  },\n  {\n    name: 'Asia/Colombo (UTC+05:30)',\n    value: 'Asia/Colombo',\n  },\n  {\n    name: 'Asia/Damascus (UTC+03:00)',\n    value: 'Asia/Damascus',\n  },\n  {\n    name: 'Asia/Dhaka (UTC+06:00)',\n    value: 'Asia/Dhaka',\n  },\n  {\n    name: 'Asia/Dili (UTC+09:00)',\n    value: 'Asia/Dili',\n  },\n  {\n    name: 'Asia/Dubai (UTC+04:00)',\n    value: 'Asia/Dubai',\n  },\n  {\n    name: 'Asia/Dushanbe (UTC+05:00)',\n    value: 'Asia/Dushanbe',\n  },\n  {\n    name: 'Asia/Gaza (UTC+03:00)',\n    value: 'Asia/Gaza',\n  },\n  {\n    name: 'Asia/Harbin (UTC+08:00)',\n    value: 'Asia/Harbin',\n  },\n  {\n    name: 'Asia/Ho Chi Minh (UTC+07:00)',\n    value: 'Asia/Ho_Chi_Minh',\n  },\n  {\n    name: 'Asia/Hong Kong (UTC+08:00)',\n    value: 'Asia/Hong_Kong',\n  },\n  {\n    name: 'Asia/Hovd (UTC+07:00)',\n    value: 'Asia/Hovd',\n  },\n  {\n    name: 'Asia/Irkutsk (UTC+08:00)',\n    value: 'Asia/Irkutsk',\n  },\n  {\n    name: 'Asia/Jakarta (UTC+07:00)',\n    value: 'Asia/Jakarta',\n  },\n  {\n    name: 'Asia/Jayapura (UTC+09:00)',\n    value: 'Asia/Jayapura',\n  },\n  {\n    name: 'Asia/Jerusalem (UTC+03:00)',\n    value: 'Asia/Jerusalem',\n  },\n  {\n    name: 'Asia/Kabul (UTC+04:30)',\n    value: 'Asia/Kabul',\n  },\n  {\n    name: 'Asia/Kamchatka (UTC+12:00)',\n    value: 'Asia/Kamchatka',\n  },\n  {\n    name: 'Asia/Karachi (UTC+05:00)',\n    value: 'Asia/Karachi',\n  },\n  {\n    name: 'Asia/Kashgar (UTC+06:00)',\n    value: 'Asia/Kashgar',\n  },\n  {\n    name: 'Asia/Kathmandu (UTC+05:45)',\n    value: 'Asia/Kathmandu',\n  },\n  {\n    name: 'Asia/Kolkata (UTC+05:30)',\n    value: 'Asia/Kolkata',\n  },\n  {\n    name: 'Asia/Krasnoyarsk (UTC+07:00)',\n    value: 'Asia/Krasnoyarsk',\n  },\n  {\n    name: 'Asia/Kuala Lumpur (UTC+08:00)',\n    value: 'Asia/Kuala_Lumpur',\n  },\n  {\n    name: 'Asia/Kuching (UTC+08:00)',\n    value: 'Asia/Kuching',\n  },\n  {\n    name: 'Asia/Kuwait (UTC+03:00)',\n    value: 'Asia/Kuwait',\n  },\n  {\n    name: 'Asia/Macau (UTC+08:00)',\n    value: 'Asia/Macau',\n  },\n  {\n    name: 'Asia/Magadan (UTC+11:00)',\n    value: 'Asia/Magadan',\n  },\n  {\n    name: 'Asia/Makassar (UTC+08:00)',\n    value: 'Asia/Makassar',\n  },\n  {\n    name: 'Asia/Manila (UTC+08:00)',\n    value: 'Asia/Manila',\n  },\n  {\n    name: 'Asia/Muscat (UTC+04:00)',\n    value: 'Asia/Muscat',\n  },\n  {\n    name: 'Asia/Nicosia (UTC+03:00)',\n    value: 'Asia/Nicosia',\n  },\n  {\n    name: 'Asia/Novokuznetsk (UTC+07:00)',\n    value: 'Asia/Novokuznetsk',\n  },\n  {\n    name: 'Asia/Novosibirsk (UTC+07:00)',\n    value: 'Asia/Novosibirsk',\n  },\n  {\n    name: 'Asia/Omsk (UTC+06:00)',\n    value: 'Asia/Omsk',\n  },\n  {\n    name: 'Asia/Oral (UTC+05:00)',\n    value: 'Asia/Oral',\n  },\n  {\n    name: 'Asia/Phnom Penh (UTC+07:00)',\n    value: 'Asia/Phnom_Penh',\n  },\n  {\n    name: 'Asia/Pontianak (UTC+07:00)',\n    value: 'Asia/Pontianak',\n  },\n  {\n    name: 'Asia/Pyongyang (UTC+08:30)',\n    value: 'Asia/Pyongyang',\n  },\n  {\n    name: 'Asia/Qatar (UTC+03:00)',\n    value: 'Asia/Qatar',\n  },\n  {\n    name: 'Asia/Qyzylorda (UTC+06:00)',\n    value: 'Asia/Qyzylorda',\n  },\n  {\n    name: 'Asia/Rangoon (UTC+06:30)',\n    value: 'Asia/Rangoon',\n  },\n  {\n    name: 'Asia/Riyadh (UTC+03:00)',\n    value: 'Asia/Riyadh',\n  },\n  {\n    name: 'Asia/Sakhalin (UTC+11:00)',\n    value: 'Asia/Sakhalin',\n  },\n  {\n    name: 'Asia/Samarkand (UTC+05:00)',\n    value: 'Asia/Samarkand',\n  },\n  {\n    name: 'Asia/Seoul (UTC+09:00)',\n    value: 'Asia/Seoul',\n  },\n  {\n    name: 'Asia/Shanghai (UTC+08:00)',\n    value: 'Asia/Shanghai',\n  },\n  {\n    name: 'Asia/Singapore (UTC+08:00)',\n    value: 'Asia/Singapore',\n  },\n  {\n    name: 'Asia/Taipei (UTC+08:00)',\n    value: 'Asia/Taipei',\n  },\n  {\n    name: 'Asia/Tashkent (UTC+05:00)',\n    value: 'Asia/Tashkent',\n  },\n  {\n    name: 'Asia/Tbilisi (UTC+04:00)',\n    value: 'Asia/Tbilisi',\n  },\n  {\n    name: 'Asia/Tehran (UTC+04:30)',\n    value: 'Asia/Tehran',\n  },\n  {\n    name: 'Asia/Thimphu (UTC+06:00)',\n    value: 'Asia/Thimphu',\n  },\n  {\n    name: 'Asia/Tokyo (UTC+09:00)',\n    value: 'Asia/Tokyo',\n  },\n  {\n    name: 'Asia/Ulaanbaatar (UTC+08:00)',\n    value: 'Asia/Ulaanbaatar',\n  },\n  {\n    name: 'Asia/Urumqi (UTC+06:00)',\n    value: 'Asia/Urumqi',\n  },\n  {\n    name: 'Asia/Vientiane (UTC+07:00)',\n    value: 'Asia/Vientiane',\n  },\n  {\n    name: 'Asia/Vladivostok (UTC+10:00)',\n    value: 'Asia/Vladivostok',\n  },\n  {\n    name: 'Asia/Yakutsk (UTC+09:00)',\n    value: 'Asia/Yakutsk',\n  },\n  {\n    name: 'Asia/Yekaterinburg (UTC+05:00)',\n    value: 'Asia/Yekaterinburg',\n  },\n  {\n    name: 'Asia/Yerevan (UTC+04:00)',\n    value: 'Asia/Yerevan',\n  },\n  {\n    name: 'Atlantic/Azores (UTC)',\n    value: 'Atlantic/Azores',\n  },\n  {\n    name: 'Atlantic/Bermuda (UTC-03:00)',\n    value: 'Atlantic/Bermuda',\n  },\n  {\n    name: 'Atlantic/Canary (UTC+01:00)',\n    value: 'Atlantic/Canary',\n  },\n  {\n    name: 'Atlantic/Cape Verde (UTC-01:00)',\n    value: 'Atlantic/Cape_Verde',\n  },\n  {\n    name: 'Atlantic/Faroe (UTC+01:00)',\n    value: 'Atlantic/Faroe',\n  },\n  {\n    name: 'Atlantic/Madeira (UTC+01:00)',\n    value: 'Atlantic/Madeira',\n  },\n  {\n    name: 'Atlantic/Reykjavik (UTC)',\n    value: 'Atlantic/Reykjavik',\n  },\n  {\n    name: 'Atlantic/South Georgia (UTC-02:00)',\n    value: 'Atlantic/South_Georgia',\n  },\n  {\n    name: 'Atlantic/St Helena (UTC)',\n    value: 'Atlantic/St_Helena',\n  },\n  {\n    name: 'Atlantic/Stanley (UTC-03:00)',\n    value: 'Atlantic/Stanley',\n  },\n  {\n    name: 'Australia/Adelaide (UTC+09:30)',\n    value: 'Australia/Adelaide',\n  },\n  {\n    name: 'Australia/Brisbane (UTC+10:00)',\n    value: 'Australia/Brisbane',\n  },\n  {\n    name: 'Australia/Broken Hill (UTC+09:30)',\n    value: 'Australia/Broken_Hill',\n  },\n  {\n    name: 'Australia/Currie (UTC+10:00)',\n    value: 'Australia/Currie',\n  },\n  {\n    name: 'Australia/Darwin (UTC+09:30)',\n    value: 'Australia/Darwin',\n  },\n  {\n    name: 'Australia/Eucla (UTC+08:45)',\n    value: 'Australia/Eucla',\n  },\n  {\n    name: 'Australia/Hobart (UTC+10:00)',\n    value: 'Australia/Hobart',\n  },\n  {\n    name: 'Australia/Lindeman (UTC+10:00)',\n    value: 'Australia/Lindeman',\n  },\n  {\n    name: 'Australia/Lord Howe (UTC+10:30)',\n    value: 'Australia/Lord_Howe',\n  },\n  {\n    name: 'Australia/Melbourne (UTC+10:00)',\n    value: 'Australia/Melbourne',\n  },\n  {\n    name: 'Australia/Perth (UTC+08:00)',\n    value: 'Australia/Perth',\n  },\n  {\n    name: 'Australia/Sydney (UTC+10:00)',\n    value: 'Australia/Sydney',\n  },\n  {\n    name: 'Europe/Amsterdam (UTC+02:00)',\n    value: 'Europe/Amsterdam',\n  },\n  {\n    name: 'Europe/Andorra (UTC+02:00)',\n    value: 'Europe/Andorra',\n  },\n  {\n    name: 'Europe/Athens (UTC+03:00)',\n    value: 'Europe/Athens',\n  },\n  {\n    name: 'Europe/Belgrade (UTC+02:00)',\n    value: 'Europe/Belgrade',\n  },\n  {\n    name: 'Europe/Berlin (UTC+02:00)',\n    value: 'Europe/Berlin',\n  },\n  {\n    name: 'Europe/Bratislava (UTC+02:00)',\n    value: 'Europe/Bratislava',\n  },\n  {\n    name: 'Europe/Brussels (UTC+02:00)',\n    value: 'Europe/Brussels',\n  },\n  {\n    name: 'Europe/Bucharest (UTC+03:00)',\n    value: 'Europe/Bucharest',\n  },\n  {\n    name: 'Europe/Budapest (UTC+02:00)',\n    value: 'Europe/Budapest',\n  },\n  {\n    name: 'Europe/Chisinau (UTC+03:00)',\n    value: 'Europe/Chisinau',\n  },\n  {\n    name: 'Europe/Copenhagen (UTC+02:00)',\n    value: 'Europe/Copenhagen',\n  },\n  {\n    name: 'Europe/Dublin (UTC+01:00)',\n    value: 'Europe/Dublin',\n  },\n  {\n    name: 'Europe/Gibraltar (UTC+02:00)',\n    value: 'Europe/Gibraltar',\n  },\n  {\n    name: 'Europe/Guernsey (UTC+01:00)',\n    value: 'Europe/Guernsey',\n  },\n  {\n    name: 'Europe/Helsinki (UTC+03:00)',\n    value: 'Europe/Helsinki',\n  },\n  {\n    name: 'Europe/Isle of Man (UTC+01:00)',\n    value: 'Europe/Isle_of_Man',\n  },\n  {\n    name: 'Europe/Istanbul (UTC+03:00)',\n    value: 'Europe/Istanbul',\n  },\n  {\n    name: 'Europe/Jersey (UTC+01:00)',\n    value: 'Europe/Jersey',\n  },\n  {\n    name: 'Europe/Kaliningrad (UTC+02:00)',\n    value: 'Europe/Kaliningrad',\n  },\n  {\n    name: 'Europe/Kiev (UTC+03:00)',\n    value: 'Europe/Kiev',\n  },\n  {\n    name: 'Europe/Lisbon (UTC+01:00)',\n    value: 'Europe/Lisbon',\n  },\n  {\n    name: 'Europe/Ljubljana (UTC+02:00)',\n    value: 'Europe/Ljubljana',\n  },\n  {\n    name: 'Europe/London (UTC+01:00)',\n    value: 'Europe/London',\n  },\n  {\n    name: 'Europe/Luxembourg (UTC+02:00)',\n    value: 'Europe/Luxembourg',\n  },\n  {\n    name: 'Europe/Madrid (UTC+02:00)',\n    value: 'Europe/Madrid',\n  },\n  {\n    name: 'Europe/Malta (UTC+02:00)',\n    value: 'Europe/Malta',\n  },\n  {\n    name: 'Europe/Mariehamn (UTC+03:00)',\n    value: 'Europe/Mariehamn',\n  },\n  {\n    name: 'Europe/Minsk (UTC+03:00)',\n    value: 'Europe/Minsk',\n  },\n  {\n    name: 'Europe/Monaco (UTC+02:00)',\n    value: 'Europe/Monaco',\n  },\n  {\n    name: 'Europe/Moscow (UTC+03:00)',\n    value: 'Europe/Moscow',\n  },\n  {\n    name: 'Europe/Oslo (UTC+02:00)',\n    value: 'Europe/Oslo',\n  },\n  {\n    name: 'Europe/Paris (UTC+02:00)',\n    value: 'Europe/Paris',\n  },\n  {\n    name: 'Europe/Podgorica (UTC+02:00)',\n    value: 'Europe/Podgorica',\n  },\n  {\n    name: 'Europe/Prague (UTC+02:00)',\n    value: 'Europe/Prague',\n  },\n  {\n    name: 'Europe/Riga (UTC+03:00)',\n    value: 'Europe/Riga',\n  },\n  {\n    name: 'Europe/Rome (UTC+02:00)',\n    value: 'Europe/Rome',\n  },\n  {\n    name: 'Europe/Samara (UTC+04:00)',\n    value: 'Europe/Samara',\n  },\n  {\n    name: 'Europe/San Marino (UTC+02:00)',\n    value: 'Europe/San_Marino',\n  },\n  {\n    name: 'Europe/Sarajevo (UTC+02:00)',\n    value: 'Europe/Sarajevo',\n  },\n  {\n    name: 'Europe/Simferopol (UTC+03:00)',\n    value: 'Europe/Simferopol',\n  },\n  {\n    name: 'Europe/Skopje (UTC+02:00)',\n    value: 'Europe/Skopje',\n  },\n  {\n    name: 'Europe/Sofia (UTC+03:00)',\n    value: 'Europe/Sofia',\n  },\n  {\n    name: 'Europe/Stockholm (UTC+02:00)',\n    value: 'Europe/Stockholm',\n  },\n  {\n    name: 'Europe/Tallinn (UTC+03:00)',\n    value: 'Europe/Tallinn',\n  },\n  {\n    name: 'Europe/Tirane (UTC+02:00)',\n    value: 'Europe/Tirane',\n  },\n  {\n    name: 'Europe/Uzhgorod (UTC+03:00)',\n    value: 'Europe/Uzhgorod',\n  },\n  {\n    name: 'Europe/Vaduz (UTC+02:00)',\n    value: 'Europe/Vaduz',\n  },\n  {\n    name: 'Europe/Vatican (UTC+02:00)',\n    value: 'Europe/Vatican',\n  },\n  {\n    name: 'Europe/Vienna (UTC+02:00)',\n    value: 'Europe/Vienna',\n  },\n  {\n    name: 'Europe/Vilnius (UTC+03:00)',\n    value: 'Europe/Vilnius',\n  },\n  {\n    name: 'Europe/Volgograd (UTC+03:00)',\n    value: 'Europe/Volgograd',\n  },\n  {\n    name: 'Europe/Warsaw (UTC+02:00)',\n    value: 'Europe/Warsaw',\n  },\n  {\n    name: 'Europe/Zagreb (UTC+02:00)',\n    value: 'Europe/Zagreb',\n  },\n  {\n    name: 'Europe/Zaporozhye (UTC+03:00)',\n    value: 'Europe/Zaporozhye',\n  },\n  {\n    name: 'Europe/Zurich (UTC+02:00)',\n    value: 'Europe/Zurich',\n  },\n  {\n    name: 'Indian/Antananarivo (UTC+03:00)',\n    value: 'Indian/Antananarivo',\n  },\n  {\n    name: 'Indian/Chagos (UTC+06:00)',\n    value: 'Indian/Chagos',\n  },\n  {\n    name: 'Indian/Christmas (UTC+07:00)',\n    value: 'Indian/Christmas',\n  },\n  {\n    name: 'Indian/Cocos (UTC+06:30)',\n    value: 'Indian/Cocos',\n  },\n  {\n    name: 'Indian/Comoro (UTC+03:00)',\n    value: 'Indian/Comoro',\n  },\n  {\n    name: 'Indian/Kerguelen (UTC+05:00)',\n    value: 'Indian/Kerguelen',\n  },\n  {\n    name: 'Indian/Mahe (UTC+04:00)',\n    value: 'Indian/Mahe',\n  },\n  {\n    name: 'Indian/Maldives (UTC+05:00)',\n    value: 'Indian/Maldives',\n  },\n  {\n    name: 'Indian/Mauritius (UTC+04:00)',\n    value: 'Indian/Mauritius',\n  },\n  {\n    name: 'Indian/Mayotte (UTC+03:00)',\n    value: 'Indian/Mayotte',\n  },\n  {\n    name: 'Indian/Reunion (UTC+04:00)',\n    value: 'Indian/Reunion',\n  },\n  {\n    name: 'Pacific/Apia (UTC+13:00)',\n    value: 'Pacific/Apia',\n  },\n  {\n    name: 'Pacific/Auckland (UTC+12:00)',\n    value: 'Pacific/Auckland',\n  },\n  {\n    name: 'Pacific/Chatham (UTC+12:45)',\n    value: 'Pacific/Chatham',\n  },\n  {\n    name: 'Pacific/Chuuk (UTC+10:00)',\n    value: 'Pacific/Chuuk',\n  },\n  {\n    name: 'Pacific/Easter (UTC-05:00)',\n    value: 'Pacific/Easter',\n  },\n  {\n    name: 'Pacific/Efate (UTC+11:00)',\n    value: 'Pacific/Efate',\n  },\n  {\n    name: 'Pacific/Enderbury (UTC+13:00)',\n    value: 'Pacific/Enderbury',\n  },\n  {\n    name: 'Pacific/Fakaofo (UTC+13:00)',\n    value: 'Pacific/Fakaofo',\n  },\n  {\n    name: 'Pacific/Fiji (UTC+12:00)',\n    value: 'Pacific/Fiji',\n  },\n  {\n    name: 'Pacific/Funafuti (UTC+12:00)',\n    value: 'Pacific/Funafuti',\n  },\n  {\n    name: 'Pacific/Galapagos (UTC-06:00)',\n    value: 'Pacific/Galapagos',\n  },\n  {\n    name: 'Pacific/Gambier (UTC-09:00)',\n    value: 'Pacific/Gambier',\n  },\n  {\n    name: 'Pacific/Guadalcanal (UTC+11:00)',\n    value: 'Pacific/Guadalcanal',\n  },\n  {\n    name: 'Pacific/Guam (UTC+10:00)',\n    value: 'Pacific/Guam',\n  },\n  {\n    name: 'Pacific/Honolulu (UTC-10:00)',\n    value: 'Pacific/Honolulu',\n  },\n  {\n    name: 'Pacific/Johnston (UTC-10:00)',\n    value: 'Pacific/Johnston',\n  },\n  {\n    name: 'Pacific/Kiritimati (UTC+14:00)',\n    value: 'Pacific/Kiritimati',\n  },\n  {\n    name: 'Pacific/Kosrae (UTC+11:00)',\n    value: 'Pacific/Kosrae',\n  },\n  {\n    name: 'Pacific/Kwajalein (UTC+12:00)',\n    value: 'Pacific/Kwajalein',\n  },\n  {\n    name: 'Pacific/Majuro (UTC+12:00)',\n    value: 'Pacific/Majuro',\n  },\n  {\n    name: 'Pacific/Marquesas (UTC-09:30)',\n    value: 'Pacific/Marquesas',\n  },\n  {\n    name: 'Pacific/Midway (UTC-11:00)',\n    value: 'Pacific/Midway',\n  },\n  {\n    name: 'Pacific/Nauru (UTC+12:00)',\n    value: 'Pacific/Nauru',\n  },\n  {\n    name: 'Pacific/Niue (UTC-11:00)',\n    value: 'Pacific/Niue',\n  },\n  {\n    name: 'Pacific/Norfolk (UTC+11:00)',\n    value: 'Pacific/Norfolk',\n  },\n  {\n    name: 'Pacific/Noumea (UTC+11:00)',\n    value: 'Pacific/Noumea',\n  },\n  {\n    name: 'Pacific/Pago Pago (UTC-11:00)',\n    value: 'Pacific/Pago_Pago',\n  },\n  {\n    name: 'Pacific/Palau (UTC+09:00)',\n    value: 'Pacific/Palau',\n  },\n  {\n    name: 'Pacific/Pitcairn (UTC-08:00)',\n    value: 'Pacific/Pitcairn',\n  },\n  {\n    name: 'Pacific/Pohnpei (UTC+11:00)',\n    value: 'Pacific/Pohnpei',\n  },\n  {\n    name: 'Pacific/Port Moresby (UTC+10:00)',\n    value: 'Pacific/Port_Moresby',\n  },\n  {\n    name: 'Pacific/Rarotonga (UTC-10:00)',\n    value: 'Pacific/Rarotonga',\n  },\n  {\n    name: 'Pacific/Saipan (UTC+10:00)',\n    value: 'Pacific/Saipan',\n  },\n  {\n    name: 'Pacific/Tahiti (UTC-10:00)',\n    value: 'Pacific/Tahiti',\n  },\n  {\n    name: 'Pacific/Tarawa (UTC+12:00)',\n    value: 'Pacific/Tarawa',\n  },\n  {\n    name: 'Pacific/Tongatapu (UTC+13:00)',\n    value: 'Pacific/Tongatapu',\n  },\n  {\n    name: 'Pacific/Wake (UTC+12:00)',\n    value: 'Pacific/Wake',\n  },\n  {\n    name: 'Pacific/Wallis (UTC+12:00)',\n    value: 'Pacific/Wallis',\n  },\n];\n","import { isEmpty } from '@ember/utils';\n\nexport default (nameValueList) =>\n  nameValueList\n    .filter(({ value }) => !isEmpty(value))\n    .map(({ name, value }) => `${name}=${value}`)\n    .join('\\n');\n","import window from 'ember-window-mock';\n\nimport getRouteParams from 'client/utils/route-params';\n\nexport default function transitionToUrl(router, transition, { ssl = false }) {\n  const { hostname } = window.location;\n  const params = getRouteParams(transition.to);\n  const route = router.urlFor(transition.to.name, ...params, {\n    queryParams: transition.to.queryParams,\n  });\n\n  return `${ssl ? 'https' : 'http'}://${hostname}${route}`;\n}\n","export default function truncateText(text: string, maxSize: number): string {\n  const trimmed = text.trim();\n\n  if (trimmed.length > maxSize) {\n    return `${trimmed.slice(0, maxSize - 1).trim()}…`;\n  }\n\n  return trimmed;\n}\n","/**\n * ⚠ This function cannot be used if `response.json()` has already been called before\n * In order to be able to use `json()` multiple times, you have to clone the response\n * and call `json()` on the clone\n */\nexport default async function tryGetBody<ResponseDataType = unknown>(response: Response) {\n  if (!response) {\n    return undefined;\n  }\n  let clone: Response;\n\n  // This allows to avoid an error when calling\n  // json twice on the same response\n  try {\n    clone = response.clone();\n    // eslint-disable-next-line sonarjs/no-ignored-exceptions\n  } catch (e) {\n    return undefined;\n  }\n\n  try {\n    return (await clone.json()) as ResponseDataType;\n    // eslint-disable-next-line sonarjs/no-ignored-exceptions\n  } catch (e) {\n    // ignore\n  }\n\n  try {\n    return (await clone.text()) as ResponseDataType;\n    // eslint-disable-next-line sonarjs/no-ignored-exceptions\n  } catch (e) {\n    // ignore\n  }\n\n  return undefined;\n}\n","export default function tryParseJson<TResult>(data: string): TResult | false {\n  let object: TResult;\n\n  try {\n    object = JSON.parse(data) as TResult;\n    // eslint-disable-next-line sonarjs/no-ignored-exceptions\n  } catch (error) {\n    return false;\n  }\n\n  return object;\n}\n","import EmberObject, { computed } from '@ember/object';\nimport { alias, equal } from '@ember/object/computed';\n\nimport FileTypeUtils from 'client/utils/file-type';\nimport PropTypes from 'client/utils/prop-types-utils';\n\nexport default class UploadedFile extends EmberObject {\n  propTypes = {\n    filesExtensions: PropTypes.arrayOf(PropTypes.string).isRequired,\n    limitSize: PropTypes.number.isRequired,\n  };\n\n  @alias('dataPromise.content') data;\n  @equal('dataPromise.isPending', true) isLoading;\n  @equal('type', 'pdf') isPdf;\n\n  @computed('limitSize', 'size')\n  get isTooBig() {\n    return this.limitSize && this.size > this.limitSize;\n  }\n\n  @computed('filesExtensions', 'type')\n  get isNotSupportedType() {\n    return (\n      this.filesExtensions\n      && this.filesExtensions.every((fileExtension) => !this.type.includes(fileExtension))\n    );\n  }\n\n  @computed('data')\n  get size() {\n    return FileTypeUtils.getSize(this.data || '');\n  }\n\n  @computed('data')\n  get type() {\n    return FileTypeUtils.getTypeOrDefault(this.data || '', '');\n  }\n\n  @computed('data')\n  get fullType() {\n    return FileTypeUtils.getMimeTypeFromBase64(this.data || '');\n  }\n}\n","import window from 'ember-window-mock';\n\n// NOTICE: RFC 3986 compatible encodeURIComponent.\n//         Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent\nexport function fixedEncodeURIComponent(value: string | number | boolean) {\n  return encodeURIComponent(value).replace(\n    /[!'()*]/g,\n    (encodedValue) => `%${encodedValue.charCodeAt(0).toString(16)}`,\n  );\n}\n\nexport function encodeURIComponentIfNotUndefined(value?: string | number | boolean) {\n  return value === undefined ? '' : encodeURIComponent(value);\n}\n\nexport function serializeContextGeneral(\n  context: Record<string, string | number | boolean>,\n  shouldRemoveEmptyOne = false,\n) {\n  return Object.keys(context)\n    .filter(\n      (key) => !shouldRemoveEmptyOne || ![null, undefined, ''].includes(context[key] as string),\n    )\n    .map((key) => `${encodeURIComponent(key)}=${encodeURIComponentIfNotUndefined(context[key])}`)\n    .join('&');\n}\n\nexport function isUrlInternalOrRelative(url: string) {\n  if (/^[a-z]+:\\/\\//i.test(url)) {\n    return /^https?:\\/\\//i.test(url) && url.includes(`://${window.location.hostname}`);\n  }\n  return true;\n}\n\nexport function isUrlValid(uri: string) {\n  // Workaround chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=869291\n  const parts = uri.split('://');\n  if (parts.length !== 2 || !parts[0] || !parts[1]) return false;\n\n  try {\n    new URL(`http://${parts[1]}`);\n    return true;\n  } catch {\n    return false;\n  }\n}\n\nexport function updateQueryParameters(\n  context: Record<string, string>,\n  shouldRemoveEmptyOne = false,\n) {\n  window.history.replaceState(\n    null,\n    null,\n    context && Object.keys(context).length > 0\n      ? `?${serializeContextGeneral(context, shouldRemoveEmptyOne)}`\n      : window.location.pathname,\n  );\n}\n\nexport default {\n  encodeURIComponentIfNotUndefined,\n  serializeContextGeneral,\n  isUrlInternalOrRelative,\n  fixedEncodeURIComponent,\n  isUrlValid,\n};\n","import { v1, v4 } from 'uuid';\n\nexport const REGEX_UUID =\n  /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\n\nexport const isUuid = (value: string) =>\n  // NOTICE: Handle null UUID value\n  REGEX_UUID.test(value) || value === '00000000-0000-0000-0000-000000000000';\n\nexport const uuidv1 = v1 as () => string;\nexport const uuidv4 = v4 as () => string;\n\nexport default {\n  REGEX_UUID,\n  isUuid,\n};\n","export default function webhook(webhookOptions) {\n  if (!webhookOptions || !webhookOptions.url) {\n    throw new Error('The webhook provided does not contain any url to call');\n  }\n\n  const request = new XMLHttpRequest();\n  const { method, url, headers, body } = webhookOptions;\n\n  let bodyToSend;\n\n  request.open(method || 'GET', url);\n  request.withCredentials = true;\n\n  try {\n    bodyToSend = JSON.stringify(body);\n    // eslint-disable-next-line sonarjs/no-ignored-exceptions\n  } catch (error) {\n    throw new Error(`Cannot call ${url} because the body is invalid`);\n  }\n\n  if (method === 'POST') {\n    request.setRequestHeader('Content-type', 'application/json; charset=utf-8');\n  }\n\n  if (headers) {\n    Object.keys(headers).forEach((header) => {\n      request.setRequestHeader(header, headers[header]);\n    });\n  }\n\n  return new Promise((resolve, reject) => {\n    request.onerror = () => {\n      reject(new Error(`Cannot reach the provided url: ${url}`));\n    };\n    request.onload = () => {\n      // NOTICE: onload event is fired even if the HTTP code fails (404, 500 ...)\n      //         onerror event is only fired for network errors such as DNS.\n      //         We need to check on our own that the request is successful.\n      if (request.status >= 200 && request.status < 300) {\n        resolve(request);\n      } else {\n        reject(\n          new Error(\n            `Could not call ${url} for the following reason: ${request.status} ${request.statusText}`,\n          ),\n        );\n      }\n    };\n\n    request.send(bodyToSend);\n  });\n}\n","import type WidgetConfiguration from 'client/data/models/widget-configuration';\nimport type { WidgetConfigurationLimitedValueAttributes } from 'client/data/models/widget-configuration-limited-value';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-object-type\nexport interface FilterableCollection {}\nexport interface FilterableField {\n  id?: string;\n  fieldName: string;\n  typeForWidgets: string;\n  isBelongsTo: boolean;\n  enums?: string[];\n  collection?: FilterableCollection;\n  widgetEdit?: WidgetConfiguration;\n  widgetDisplay?: WidgetConfiguration;\n}\n\nexport enum WidgetTypeEnum {\n  Display = 'display',\n  Edit = 'edit',\n}\n\nexport enum WidgetDisplayTypeEnum {\n  Array = 'array',\n  BelongsTo = 'belongs to',\n  BooleanCheckbox = 'boolean checkbox',\n  Date = 'date',\n  Json = 'json',\n  JsonTree = 'json tree',\n  Number = 'number',\n  Text = 'text',\n  Time = 'time',\n  FileViewer = 'file viewer',\n  Point = 'point',\n  EmbeddedDocument = 'embedded document',\n  Price = 'price viewer',\n  Address = 'address viewer',\n  Color = 'color viewer',\n  RichText = 'rich text viewer',\n  MultiLineText = 'multi line text',\n  Link = 'link',\n  Map = 'map',\n  Percentage = 'percentage',\n  Assignee = 'assignee',\n  AssigneeArray = 'assignee array',\n}\n\nexport enum WidgetEditTypeEnum {\n  AddressEditor = 'address editor',\n  BelongsToTypeahead = 'belongsto typeahead',\n  BelongsToSelect = 'belongsto dropdown',\n  BooleanEditor = 'boolean editor',\n  Checkboxes = 'checkboxes',\n  ColorPicker = 'color editor',\n  DatePicker = 'date editor',\n  Dropdown = 'dropdown',\n  EmbeddedDocument = 'embedded document editor',\n  FilePicker = 'file picker',\n  JsonEditor = 'json code editor',\n  MultipleInput = 'input array',\n  MultipleSelect = 'multiple select',\n  NumberInput = 'number input',\n  PointEditor = 'point editor',\n  PolymorphicBelongsToTypeahead = 'polymorphic belongsto typeahead',\n  PriceEditor = 'price editor',\n  RadioButton = 'radio button',\n  RichTextEditor = 'rich text',\n  TextArea = 'text area editor',\n  TextInput = 'text editor',\n  TimeInput = 'time input',\n  AssigneeEditor = 'assignee editor',\n}\nexport type Widgets = WidgetDisplayTypeEnum | WidgetEditTypeEnum;\n\nconst limitedValuesDefaultParameters = (\n  field: FilterableField,\n): WidgetConfigurationLimitedValueAttributes => {\n  // Enums which are used for smart actions hooks should not be initialized.\n  const parameters: WidgetConfigurationLimitedValueAttributes = {};\n  if (field.isBelongsTo) {\n    parameters.dynamic = { simple: {} };\n  } else if (field.typeForWidgets === 'Enum' && field.collection) {\n    parameters.static = { values: field.enums };\n  } else {\n    parameters.static = { values: field.collection ? [] : null };\n  }\n\n  return parameters;\n};\n\nexport type WidgetParameter = {\n  id: WidgetEditTypeEnum | WidgetDisplayTypeEnum;\n  name: Widgets;\n  label: string;\n  hasSettings: boolean;\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  defaultParameters?: Record<string, any> | ((field: FilterableField) => Record<string, any>);\n  type: WidgetTypeEnum;\n  shouldDisplayInsideFilter?: boolean;\n  shouldRenderNullValues?: boolean;\n\n  editInlineValueOnLeftClick?: boolean;\n};\n\nconst widgets: WidgetParameter[] = [\n  {\n    id: WidgetDisplayTypeEnum.Assignee,\n    label: 'User',\n    hasSettings: false,\n    shouldRenderNullValues: true,\n  },\n  {\n    id: WidgetDisplayTypeEnum.AssigneeArray,\n    label: 'User (array)',\n    hasSettings: false,\n    shouldRenderNullValues: true,\n  },\n  {\n    id: WidgetEditTypeEnum.AssigneeEditor,\n    label: 'User dropdown',\n    hasSettings: true,\n    shouldDisplayInsideFilter: true,\n    editInlineValueOnLeftClick: true,\n  },\n\n  { id: WidgetEditTypeEnum.JsonEditor, label: 'JSON editor', hasSettings: false },\n  { id: WidgetDisplayTypeEnum.Array, label: 'Array', hasSettings: false },\n  { id: WidgetDisplayTypeEnum.BelongsTo, label: 'Link', hasSettings: false },\n  { id: WidgetDisplayTypeEnum.BooleanCheckbox, label: 'Icon', hasSettings: false },\n  {\n    id: WidgetDisplayTypeEnum.Date,\n    label: 'Date',\n    hasSettings: true,\n  },\n  { id: WidgetDisplayTypeEnum.Json, label: 'JSON viewer', hasSettings: false },\n  { id: WidgetDisplayTypeEnum.JsonTree, label: 'JSON tree viewer', hasSettings: true },\n  { id: WidgetDisplayTypeEnum.Number, label: 'Number', hasSettings: true },\n  { id: WidgetDisplayTypeEnum.Percentage, label: 'Percentage', hasSettings: false },\n  { id: WidgetDisplayTypeEnum.Text, label: 'Text', hasSettings: false },\n  { id: WidgetDisplayTypeEnum.Time, label: 'Time', hasSettings: false },\n  {\n    id: WidgetDisplayTypeEnum.FileViewer,\n    label: 'File viewer',\n    hasSettings: true,\n  },\n  { id: WidgetDisplayTypeEnum.Point, label: 'Point', hasSettings: false },\n  { id: WidgetDisplayTypeEnum.EmbeddedDocument, label: 'JSON viewer', hasSettings: false },\n  {\n    id: WidgetDisplayTypeEnum.Price,\n    label: 'Price',\n    hasSettings: true,\n  },\n  { id: WidgetDisplayTypeEnum.Address, label: 'Address', hasSettings: false },\n  { id: WidgetDisplayTypeEnum.Color, label: 'Color', hasSettings: false },\n  {\n    id: WidgetDisplayTypeEnum.RichText,\n    label: 'Rich text',\n    hasSettings: true,\n  },\n  { id: WidgetDisplayTypeEnum.MultiLineText, label: 'Multi line text', hasSettings: false },\n  {\n    id: WidgetDisplayTypeEnum.Link,\n    label: 'Link',\n    hasSettings: true,\n  },\n  {\n    id: WidgetDisplayTypeEnum.Map,\n    label: 'Map',\n    hasSettings: true,\n  },\n  { id: WidgetEditTypeEnum.AddressEditor, label: 'Address picker', hasSettings: true },\n  {\n    id: WidgetEditTypeEnum.BelongsToTypeahead,\n    label: 'BelongsTo Typeahead',\n    hasSettings: true,\n    defaultParameters: limitedValuesDefaultParameters,\n  },\n  {\n    id: WidgetEditTypeEnum.PolymorphicBelongsToTypeahead,\n    label: 'Polymorphic BelongsTo Typeahead',\n    hasSettings: false,\n  },\n  { id: WidgetEditTypeEnum.BelongsToSelect, label: 'BelongsTo Select', hasSettings: false },\n  { id: WidgetEditTypeEnum.BooleanEditor, label: 'Checkbox', hasSettings: false },\n  {\n    id: WidgetEditTypeEnum.Checkboxes,\n    label: 'Checkboxes',\n    hasSettings: true,\n    defaultParameters: limitedValuesDefaultParameters,\n  },\n  { id: WidgetEditTypeEnum.ColorPicker, label: 'Color picker', hasSettings: true },\n  {\n    id: WidgetEditTypeEnum.DatePicker,\n    label: 'Date picker',\n    hasSettings: true,\n  },\n  {\n    id: WidgetEditTypeEnum.Dropdown,\n    label: 'Dropdown',\n    hasSettings: true,\n    defaultParameters: (field: FilterableField) => {\n      return {\n        ...limitedValuesDefaultParameters(field),\n        isSearchable: false,\n      };\n    },\n  },\n  { id: WidgetEditTypeEnum.EmbeddedDocument, label: 'JSON editor', hasSettings: false },\n  {\n    id: WidgetEditTypeEnum.FilePicker,\n    label: 'File picker',\n    hasSettings: true,\n  },\n  { id: WidgetEditTypeEnum.JsonEditor, label: 'JSON editor', hasSettings: false },\n  { id: WidgetEditTypeEnum.MultipleInput, label: 'Text input (array)', hasSettings: true },\n  { id: WidgetEditTypeEnum.MultipleSelect, label: 'Dropdown (array)', hasSettings: false },\n  { id: WidgetEditTypeEnum.NumberInput, label: 'Number input', hasSettings: true },\n  { id: WidgetEditTypeEnum.PointEditor, label: 'Point editor', hasSettings: false },\n  {\n    id: WidgetEditTypeEnum.PriceEditor,\n    label: 'Price editor',\n    hasSettings: true,\n    shouldDisplayInsideFilter: true,\n  },\n  {\n    id: WidgetEditTypeEnum.RadioButton,\n    label: 'Radio buttons',\n    hasSettings: true,\n    defaultParameters: limitedValuesDefaultParameters,\n  },\n  { id: WidgetEditTypeEnum.RichTextEditor, label: 'Rich text editor', hasSettings: true },\n  { id: WidgetEditTypeEnum.TextArea, label: 'Text area', hasSettings: true },\n  { id: WidgetEditTypeEnum.TextInput, label: 'Text input', hasSettings: true },\n  { id: WidgetEditTypeEnum.TimeInput, label: 'Time picker', hasSettings: false },\n].map((widget) => ({\n  ...widget,\n  // NOTICE: Each widget has a name that is identical to its ID.\n  //         A mapping with old ID is done in `app/models/field.js` to handle legacy.\n  name: widget.id,\n  // NOTICE: The type of widget can be found from its ID.\n  type: Object.values(WidgetEditTypeEnum).includes(widget.id as WidgetEditTypeEnum)\n    ? WidgetTypeEnum.Edit\n    : WidgetTypeEnum.Display,\n}));\n\n// FIXME: This list roughly reflects the current fields type to widget mapping.\n//        It has to be updated in a following release.\n//        See: https://docs.google.com/spreadsheets/d/1RnRw9my-sc_V5OZfZ-VTSaTJy5gUwd3KcIFCAL1NyKA/edit#gid=0\nconst fieldsType: Record<\n  string,\n  { default: { edit: WidgetEditTypeEnum; display: WidgetDisplayTypeEnum }; widgets: Widgets[] }\n> = {\n  // NOTICE: Simple field types (not array nor relationships)\n  String: {\n    default: {\n      edit: WidgetEditTypeEnum.TextInput,\n      display: WidgetDisplayTypeEnum.Text,\n    },\n    widgets: [\n      WidgetEditTypeEnum.TextInput,\n      WidgetEditTypeEnum.TextArea,\n      WidgetEditTypeEnum.ColorPicker,\n      WidgetEditTypeEnum.FilePicker,\n      WidgetEditTypeEnum.RadioButton,\n      WidgetEditTypeEnum.RichTextEditor,\n      WidgetEditTypeEnum.AddressEditor,\n      WidgetEditTypeEnum.JsonEditor,\n      WidgetEditTypeEnum.Dropdown,\n      WidgetEditTypeEnum.DatePicker,\n      WidgetEditTypeEnum.AssigneeEditor,\n      WidgetDisplayTypeEnum.Text,\n      WidgetDisplayTypeEnum.Date,\n      WidgetDisplayTypeEnum.Json,\n      WidgetDisplayTypeEnum.Number,\n      WidgetDisplayTypeEnum.Color,\n      WidgetDisplayTypeEnum.RichText,\n      WidgetDisplayTypeEnum.FileViewer,\n      WidgetDisplayTypeEnum.Link,\n      WidgetDisplayTypeEnum.Map,\n      WidgetDisplayTypeEnum.MultiLineText,\n      WidgetDisplayTypeEnum.Address,\n      WidgetDisplayTypeEnum.Assignee,\n    ],\n  },\n  File: {\n    default: {\n      edit: WidgetEditTypeEnum.FilePicker,\n      display: WidgetDisplayTypeEnum.FileViewer,\n    },\n    widgets: [\n      WidgetEditTypeEnum.TextInput,\n      WidgetEditTypeEnum.FilePicker,\n      WidgetDisplayTypeEnum.FileViewer,\n      WidgetDisplayTypeEnum.Text,\n      WidgetDisplayTypeEnum.Link,\n    ],\n  },\n  Number: {\n    default: {\n      edit: WidgetEditTypeEnum.NumberInput,\n      display: WidgetDisplayTypeEnum.Number,\n    },\n    widgets: [\n      WidgetEditTypeEnum.NumberInput,\n      WidgetEditTypeEnum.Dropdown,\n      WidgetEditTypeEnum.RadioButton,\n      WidgetEditTypeEnum.PriceEditor,\n      WidgetDisplayTypeEnum.Number,\n      WidgetDisplayTypeEnum.Text,\n      WidgetDisplayTypeEnum.Price,\n      WidgetDisplayTypeEnum.Percentage,\n    ],\n  },\n  Enum: {\n    default: {\n      edit: WidgetEditTypeEnum.Dropdown,\n      display: WidgetDisplayTypeEnum.Text,\n    },\n    widgets: [\n      WidgetEditTypeEnum.Dropdown,\n      WidgetEditTypeEnum.RadioButton,\n      WidgetEditTypeEnum.TextInput,\n      WidgetEditTypeEnum.TextArea,\n      WidgetDisplayTypeEnum.Text,\n      WidgetDisplayTypeEnum.Date,\n      WidgetDisplayTypeEnum.Json,\n      WidgetDisplayTypeEnum.Number,\n      WidgetDisplayTypeEnum.Color,\n      WidgetDisplayTypeEnum.RichText,\n      WidgetDisplayTypeEnum.FileViewer,\n      WidgetDisplayTypeEnum.Link,\n      WidgetDisplayTypeEnum.Map,\n    ],\n  },\n  Boolean: {\n    default: {\n      edit: WidgetEditTypeEnum.BooleanEditor,\n      display: WidgetDisplayTypeEnum.BooleanCheckbox,\n    },\n    widgets: [\n      WidgetEditTypeEnum.BooleanEditor,\n      WidgetEditTypeEnum.Dropdown,\n      WidgetEditTypeEnum.RadioButton,\n      WidgetDisplayTypeEnum.BooleanCheckbox,\n      WidgetDisplayTypeEnum.Text,\n    ],\n  },\n  Date: {\n    default: {\n      edit: WidgetEditTypeEnum.DatePicker,\n      display: WidgetDisplayTypeEnum.Date,\n    },\n    widgets: [\n      WidgetEditTypeEnum.DatePicker,\n      WidgetEditTypeEnum.Dropdown,\n      WidgetEditTypeEnum.RadioButton,\n      WidgetDisplayTypeEnum.Date,\n      WidgetDisplayTypeEnum.Text,\n    ],\n  },\n  Dateonly: {\n    default: {\n      edit: WidgetEditTypeEnum.DatePicker,\n      display: WidgetDisplayTypeEnum.Date,\n    },\n    widgets: [\n      WidgetEditTypeEnum.DatePicker,\n      WidgetEditTypeEnum.Dropdown,\n      WidgetEditTypeEnum.RadioButton,\n      WidgetDisplayTypeEnum.Date,\n      WidgetDisplayTypeEnum.Text,\n    ],\n  },\n  Point: {\n    default: {\n      edit: WidgetEditTypeEnum.PointEditor,\n      display: WidgetDisplayTypeEnum.Point,\n    },\n    widgets: [\n      WidgetEditTypeEnum.PointEditor,\n      WidgetDisplayTypeEnum.Map,\n      WidgetDisplayTypeEnum.Point,\n    ],\n  },\n  Json: {\n    default: {\n      edit: WidgetEditTypeEnum.JsonEditor,\n      display: WidgetDisplayTypeEnum.Json,\n    },\n    widgets: [\n      WidgetEditTypeEnum.JsonEditor,\n      WidgetEditTypeEnum.TextArea,\n      WidgetDisplayTypeEnum.Json,\n      WidgetDisplayTypeEnum.JsonTree,\n      WidgetDisplayTypeEnum.MultiLineText,\n    ],\n  },\n  Time: {\n    default: {\n      edit: WidgetEditTypeEnum.TimeInput,\n      display: WidgetDisplayTypeEnum.Time,\n    },\n    widgets: [WidgetEditTypeEnum.TimeInput, WidgetDisplayTypeEnum.Time],\n  },\n  Array: {\n    default: {\n      edit: WidgetEditTypeEnum.MultipleInput,\n      display: WidgetDisplayTypeEnum.Text,\n    },\n    widgets: [WidgetEditTypeEnum.MultipleInput, WidgetDisplayTypeEnum.Text],\n  },\n  // NOTICE: Array field types.\n  '[\"String\"]': {\n    default: {\n      edit: WidgetEditTypeEnum.MultipleInput,\n      display: WidgetDisplayTypeEnum.Array,\n    },\n    widgets: [\n      WidgetEditTypeEnum.TextInput,\n      WidgetEditTypeEnum.FilePicker,\n      WidgetEditTypeEnum.Dropdown,\n      WidgetEditTypeEnum.Checkboxes,\n      WidgetEditTypeEnum.MultipleInput,\n      WidgetEditTypeEnum.AssigneeEditor,\n      WidgetDisplayTypeEnum.Array,\n      WidgetDisplayTypeEnum.FileViewer,\n      WidgetDisplayTypeEnum.AssigneeArray,\n    ],\n  },\n  '[\"Boolean\"]': {\n    default: {\n      edit: WidgetEditTypeEnum.MultipleInput,\n      display: WidgetDisplayTypeEnum.Array,\n    },\n    widgets: [WidgetEditTypeEnum.MultipleInput, WidgetDisplayTypeEnum.Array],\n  },\n  '[\"Date\"]': {\n    default: {\n      edit: WidgetEditTypeEnum.MultipleInput,\n      display: WidgetDisplayTypeEnum.Array,\n    },\n    widgets: [WidgetEditTypeEnum.MultipleInput, WidgetDisplayTypeEnum.Array],\n  },\n  '[\"Dateonly\"]': {\n    default: {\n      edit: WidgetEditTypeEnum.MultipleInput,\n      display: WidgetDisplayTypeEnum.Array,\n    },\n    widgets: [WidgetEditTypeEnum.MultipleInput, WidgetDisplayTypeEnum.Array],\n  },\n  '[\"Time\"]': {\n    default: {\n      edit: WidgetEditTypeEnum.MultipleInput,\n      display: WidgetDisplayTypeEnum.Array,\n    },\n    widgets: [WidgetEditTypeEnum.MultipleInput, WidgetDisplayTypeEnum.Array],\n  },\n  '[\"Point\"]': {\n    default: {\n      edit: WidgetEditTypeEnum.MultipleInput,\n      display: WidgetDisplayTypeEnum.Array,\n    },\n    widgets: [WidgetEditTypeEnum.MultipleInput, WidgetDisplayTypeEnum.Array],\n  },\n  '[\"Json\"]': {\n    default: {\n      edit: WidgetEditTypeEnum.MultipleInput,\n      display: WidgetDisplayTypeEnum.Array,\n    },\n    widgets: [WidgetEditTypeEnum.MultipleInput, WidgetDisplayTypeEnum.Array],\n  },\n  '[\"File\"]': {\n    default: {\n      edit: WidgetEditTypeEnum.FilePicker,\n      display: WidgetDisplayTypeEnum.FileViewer,\n    },\n    widgets: [\n      WidgetEditTypeEnum.FilePicker,\n      WidgetEditTypeEnum.MultipleInput,\n      WidgetDisplayTypeEnum.Array,\n      WidgetDisplayTypeEnum.FileViewer,\n    ],\n  },\n  '[\"Number\"]': {\n    default: {\n      edit: WidgetEditTypeEnum.MultipleInput,\n      display: WidgetDisplayTypeEnum.Array,\n    },\n    widgets: [\n      WidgetEditTypeEnum.Dropdown,\n      WidgetEditTypeEnum.Checkboxes,\n      WidgetEditTypeEnum.MultipleInput,\n      WidgetDisplayTypeEnum.Array,\n    ],\n  },\n  '[\"Enum\"]': {\n    default: {\n      edit: WidgetEditTypeEnum.MultipleSelect,\n      display: WidgetDisplayTypeEnum.Array,\n    },\n    widgets: [\n      WidgetEditTypeEnum.MultipleSelect,\n      WidgetEditTypeEnum.Checkboxes,\n      WidgetEditTypeEnum.MultipleInput,\n      WidgetDisplayTypeEnum.Array,\n    ],\n  },\n  // NOTICE: Relation field types.\n  belongsTo: {\n    default: {\n      edit: WidgetEditTypeEnum.BelongsToTypeahead,\n      display: WidgetDisplayTypeEnum.BelongsTo,\n    },\n    widgets: [\n      WidgetEditTypeEnum.BelongsToTypeahead,\n      WidgetEditTypeEnum.BelongsToSelect,\n      WidgetEditTypeEnum.Dropdown,\n      WidgetEditTypeEnum.RadioButton,\n      WidgetEditTypeEnum.TextInput,\n      WidgetDisplayTypeEnum.BelongsTo,\n      WidgetDisplayTypeEnum.Text,\n    ],\n  },\n  polymorphicBelongsTo: {\n    default: {\n      edit: WidgetEditTypeEnum.PolymorphicBelongsToTypeahead,\n      display: WidgetDisplayTypeEnum.BelongsTo,\n    },\n    widgets: [\n      WidgetEditTypeEnum.PolymorphicBelongsToTypeahead,\n      WidgetDisplayTypeEnum.BelongsTo,\n      WidgetDisplayTypeEnum.Text,\n    ],\n  },\n  embeddedBelongsTo: {\n    default: {\n      edit: WidgetEditTypeEnum.EmbeddedDocument,\n      display: WidgetDisplayTypeEnum.EmbeddedDocument,\n    },\n    widgets: [WidgetEditTypeEnum.EmbeddedDocument, WidgetDisplayTypeEnum.EmbeddedDocument],\n  },\n  embeddedHasMany: {\n    default: {\n      edit: WidgetEditTypeEnum.EmbeddedDocument,\n      display: WidgetDisplayTypeEnum.EmbeddedDocument,\n    },\n    widgets: [WidgetEditTypeEnum.EmbeddedDocument, WidgetDisplayTypeEnum.EmbeddedDocument],\n  },\n  embeddedBelongsToDeep: {\n    default: {\n      edit: WidgetEditTypeEnum.JsonEditor,\n      display: WidgetDisplayTypeEnum.Json,\n    },\n    widgets: [WidgetEditTypeEnum.JsonEditor, WidgetDisplayTypeEnum.Json],\n  },\n  embeddedHasManyDeep: {\n    default: {\n      edit: WidgetEditTypeEnum.JsonEditor,\n      display: WidgetDisplayTypeEnum.Json,\n    },\n    widgets: [WidgetEditTypeEnum.JsonEditor, WidgetDisplayTypeEnum.Json],\n  },\n};\n\n/** Get all widgets. */\nexport function getWidgets() {\n  return widgets;\n}\n\n/**\n * Get one widget by its name.\n */\nexport function getWidget(name: string) {\n  return widgets.find((widget) => widget.name === name);\n}\n\n/**\n * Get the list of display or edit widgets (see widgetType) for a field type (see fieldType).\n */\nexport function getWidgetsFor(fieldType: string, widgetType: WidgetTypeEnum) {\n  if (typeof fieldType !== 'string' || !fieldsType[fieldType]) return [];\n  return fieldsType[fieldType]?.widgets\n    .map((widget) => ({\n      ...getWidget(widget),\n      default: fieldsType[fieldType].default[widgetType] === widget,\n    }))\n    .filter((widget) => widget.type === widgetType);\n}\n\n/**\n * Check if a type has widgets. For instance, \"hasMany\" has no widgets.\n */\nexport function hasWidgets(fieldType: string): boolean {\n  if (typeof fieldType !== 'string') return false;\n  const fieldWidgets = fieldsType[fieldType] && fieldsType[fieldType].widgets;\n  return !!fieldWidgets?.length;\n}\n\nexport function isWidgetInvalid(field: { typeForWidgets: string }, widget: WidgetConfiguration) {\n  const fieldType: string = hasWidgets(field.typeForWidgets) ? field.typeForWidgets : 'String';\n  return !fieldsType[fieldType]?.widgets?.includes(widget?.name);\n}\n\nexport function getDefaultWidgetName(fieldType: string, widgetType: WidgetTypeEnum) {\n  return fieldsType[fieldType].default[widgetType];\n}\n","import type CollectionModel from 'client/data/models/collection';\nimport type WorkspaceModel from 'client/data/models/workspace';\nimport type { WorkspaceComponentTypeEnum } from 'client/data/models/workspace-component';\nimport type WorkspaceComponentModel from 'client/data/models/workspace-component';\nimport type CollectionStateService from 'client/legacy/services/collection-state';\nimport type { ClientRecordModel } from 'client/utils/collection-creator/model';\nimport type { BelongsToFieldsTreeToFetch } from 'client/utils/templating-helper/field-templating-helper';\n\nimport RecordsContext from 'client/utils/liana-records/records-context';\n\nexport type CurrentRecordSource = {\n  id: 'currentRecord';\n  name: 'currentRecord';\n  displayName: string;\n  selectedRecord: ClientRecordModel | null;\n  selectedRecords: ClientRecordModel[];\n  belongsToFieldsTreeToFetch: BelongsToFieldsTreeToFetch;\n  options: {\n    filteredCollection: CollectionModel;\n    recordsContext: RecordsContext | null;\n  };\n};\n\nexport function buildCurrentRecordSource(\n  workspace: WorkspaceModel,\n  collectionState: CollectionStateService,\n): CurrentRecordSource | null {\n  let cachedRecordsContext: RecordsContext | null = null;\n  const getRecordsContext = () => {\n    const currentRecord = collectionState.currentRecord;\n    if (!currentRecord) return null;\n    if (!cachedRecordsContext) {\n      cachedRecordsContext = new RecordsContext({\n        collection: workspace.collection,\n        records: [currentRecord],\n        selectedRecords: [currentRecord],\n      });\n    } else {\n      cachedRecordsContext.records = [currentRecord];\n      cachedRecordsContext.selectedRecords = [currentRecord];\n    }\n    return cachedRecordsContext;\n  };\n\n  return {\n    id: 'currentRecord',\n    name: 'currentRecord',\n    displayName: `Current Record (${workspace.collection.singularizedDisplayName})`,\n    belongsToFieldsTreeToFetch: {},\n    get selectedRecord() {\n      return collectionState.currentRecord;\n    },\n    get selectedRecords() {\n      return collectionState.currentRecord ? [collectionState.currentRecord] : [];\n    },\n    options: {\n      filteredCollection: workspace.collection,\n      get recordsContext() {\n        return getRecordsContext();\n      },\n    },\n  };\n}\n\nexport default function getSourceWorkspaceComponent(\n  workspaceComponent: WorkspaceComponentModel,\n  sourceId: string | null,\n): WorkspaceComponentModel<\n  WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n> | null {\n  if (sourceId) {\n    const { components } = workspaceComponent.workspace;\n    return components.findBy('id', sourceId) as unknown as WorkspaceComponentModel<\n      WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n    >;\n  }\n  return null;\n}\n\nexport function getSourceWorkspaceComponentOrCurrentRecord(\n  workspaceComponent: WorkspaceComponentModel,\n  sourceId: string | null,\n):\n  | WorkspaceComponentModel<\n      WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n    >\n  | CurrentRecordSource\n  | null {\n  if (sourceId === 'currentRecord' && workspaceComponent.workspace?.collection) {\n    return workspaceComponent.workspace.currentRecordSource;\n  }\n  return getSourceWorkspaceComponent(workspaceComponent, sourceId);\n}\n\nexport function getSourceWorkspaceComponentByName(\n  workspaceComponent: WorkspaceComponentModel,\n  sourceName: string | null,\n): WorkspaceComponentModel<\n  WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n> | null {\n  if (sourceName) {\n    const { components } = workspaceComponent.workspace;\n    return components.findBy('name', sourceName) as unknown as WorkspaceComponentModel<\n      WorkspaceComponentTypeEnum.Collection | WorkspaceComponentTypeEnum.Search\n    >;\n  }\n  return null;\n}\n\nexport function getComponentsFromIds(componentIds: string[], workspace: WorkspaceModel) {\n  return (\n    componentIds\n      .uniq()\n      .map((componentId) => workspace?.components.findBy('id', componentId))\n      .filter(Boolean) || []\n  );\n}\n","// YouTube video IDs: 11 chars (alphanumeric, dash, underscore)\nconst YOUTUBE_VIDEO_ID_REGEX = /^[a-zA-Z0-9_-]{11}$/;\n\n// Supported URL patterns - video ID captured in group 1\nconst YOUTUBE_URL_PATTERNS: RegExp[] = [\n  /^https?:\\/\\/(?:www\\.)?youtube\\.com\\/watch\\?(?:.*&)?v=([a-zA-Z0-9_-]{11})(?:&.*)?$/,\n  /^https?:\\/\\/youtu\\.be\\/([a-zA-Z0-9_-]{11})(?:\\?.*)?$/,\n  /^https?:\\/\\/(?:www\\.)?youtube(?:-nocookie)?\\.com\\/embed\\/([a-zA-Z0-9_-]{11})(?:\\?.*)?$/,\n  /^https?:\\/\\/(?:www\\.)?youtube\\.com\\/v\\/([a-zA-Z0-9_-]{11})(?:\\?.*)?$/,\n];\n\nexport interface YouTubeVideoInfo {\n  videoId: string;\n  startTime: number | null;\n}\n\n// Blocked protocols to prevent XSS\n// eslint-disable-next-line sonarjs/code-eval\nconst DANGEROUS_PROTOCOLS = ['javascript:', 'data:', 'vbscript:', 'file:'];\n\nconst MAX_DECODE_ITERATIONS = 5;\n\n// Decode repeatedly until stable to catch double-encoded payloads\nfunction safeDecodeUrl(url: string): string | null {\n  let decoded = url.trim();\n  let previous: string;\n  let iterations = 0;\n\n  do {\n    previous = decoded;\n    try {\n      decoded = decodeURIComponent(decoded);\n    } catch {\n      return null;\n    }\n    iterations++;\n  } while (decoded !== previous && iterations < MAX_DECODE_ITERATIONS);\n\n  return decoded;\n}\n\nfunction extractStartTime(url: string): number | null {\n  try {\n    const urlObj = new URL(url);\n    // Check for 't' parameter (youtu.be, youtube.com/watch) or 'start' parameter (embed)\n    const timeParam = urlObj.searchParams.get('t') || urlObj.searchParams.get('start');\n    if (!timeParam) return null;\n\n    const seconds = parseInt(timeParam, 10);\n    if (isNaN(seconds) || seconds < 0) return null;\n\n    return seconds;\n  } catch {\n    return null;\n  }\n}\n\nexport function extractYouTubeVideoId(url: string): string | null {\n  if (!url || typeof url !== 'string') {\n    return null;\n  }\n\n  const decodedUrl = safeDecodeUrl(url);\n  if (!decodedUrl) {\n    return null;\n  }\n\n  // Reject dangerous protocols\n  const lowerUrl = decodedUrl.toLowerCase();\n  if (DANGEROUS_PROTOCOLS.some((protocol) => lowerUrl.startsWith(protocol))) {\n    return null;\n  }\n\n  // Test each URL pattern\n  for (const pattern of YOUTUBE_URL_PATTERNS) {\n    const match = decodedUrl.match(pattern);\n    if (match?.[1] && YOUTUBE_VIDEO_ID_REGEX.test(match[1])) {\n      return match[1];\n    }\n  }\n\n  // Allow direct video ID input\n  if (YOUTUBE_VIDEO_ID_REGEX.test(decodedUrl)) {\n    return decodedUrl;\n  }\n\n  return null;\n}\n\nexport function extractYouTubeVideoInfo(url: string): YouTubeVideoInfo | null {\n  const videoId = extractYouTubeVideoId(url);\n  if (!videoId) return null;\n\n  const startTime = extractStartTime(url);\n  return { videoId, startTime };\n}\n\nexport function isValidYouTubeUrl(url: string): boolean {\n  return extractYouTubeVideoId(url) !== null;\n}\n\nexport function normalizeToEmbedUrl(url: string): string | null {\n  const info = extractYouTubeVideoInfo(url);\n  if (!info) {\n    return null;\n  }\n\n  let embedUrl = `https://www.youtube.com/embed/${info.videoId}`;\n  if (info.startTime) {\n    embedUrl += `?start=${info.startTime}`;\n  }\n  return embedUrl;\n}\n\nexport function isValidYouTubeEmbedUrl(url: string): boolean {\n  if (!url || typeof url !== 'string') {\n    return false;\n  }\n  return /^https:\\/\\/www\\.youtube\\.com\\/embed\\/[a-zA-Z0-9_-]{11}(?:\\?start=\\d+)?$/.test(url.trim());\n}\n","define('client/config/environment', [], function() {\n  var prefix = 'client';\ntry {\n  var metaName = prefix + '/config/environment';\n  var rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n  var config = JSON.parse(decodeURIComponent(rawConfig));\n\n  var exports = { 'default': config };\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n  return exports;\n}\ncatch(err) {\n  throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n});\n","\n          if (!runningTests) {\n            require(\"client/app\")[\"default\"].create({\"stripePublishableKey\":\"pk_live_FrLDuHAe3Y6TEBSon2PpvcVc\",\"apiServerHost\":\"https://api.forestadmin.com\",\"apiVersion\":\"2.8.1\",\"defaultDomain\":\"app.forestadmin.com\",\"growthBookClientKey\":\"sdk-2amYwxruS74rj8u\",\"intervalBetweenListAndCount\":150,\"liveDemoRenderingUrls\":\"/Live Demo/Production/Operations,/demo-finance/Production/KYC team\",\"isMockedAgentEnabled\":false,\"requestTimeout\":10000,\"maxRecordsPerPage\":500,\"namespace\":\"forest\",\"urlContactSales\":\"https://forestadmin.com/contact-sales\",\"urlDocumentation\":\"https://docs.forestadmin.com/\",\"supportedStacks\":[\"Rails\",\"Django\",\"Express/Sequelize\",\"Express/Mongoose\",\"Laravel\"],\"formCopyTimout\":2000,\"toastrDefaultDuration\":5000,\"saveWorkflowDebounceDelay\":500,\"confettisTimeout\":2000,\"shouldShowDeprecationToastr\":false,\"useSSL\":true,\"models\":{\"nonIdentifierIdFieldAlias\":\"____id____\"},\"google-oauth2\":{\"redirectUri\":\"https://app.forestadmin.com/google-auth-redirect\",\"clientId\":\"156875913710-aop1r539unsindps683h2ip0t95vdtov.apps.googleusercontent.com\",\"accessType\":\"offline\",\"scope\":\"https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile\"},\"googlePlaces\":{\"apiToken\":\"AIzaSyBZN5OEd1pK-yRdmsIh6pmXz7UwlONjdQ0\"},\"customerIoSiteId\":\"09d19bdf7f75eba64f38\",\"customerIoWriteKey\":\"3e996d1c855df772563c\",\"jimoProjectId\":\"3c9d75b3-38b1-405a-8aa9-243a15761a7b\",\"maxUrlLengthForQueryParamsGETMethod\":\"4000\",\"mfeManifest\":{\"notes-listing-mfe\":{\"scope\":\"notes_listing\",\"module\":\"./mount\",\"version\":\"1.0.0\",\"devUrl\":\"http://localhost:4002/remoteEntry.js\",\"prodUrl\":\"/notes-listing-mfe/remoteEntry.js\"},\"user-settings-mfe\":{\"scope\":\"user_settings\",\"module\":\"./mount\",\"version\":\"1.0.0\",\"devUrl\":\"http://localhost:4001/remoteEntry.js\",\"prodUrl\":\"/user-settings-mfe/remoteEntry.js\"}},\"name\":\"client\",\"version\":\"2.1215.4+7d01f1f2\"});\n          }\n        \n"],"mappings":"AAAA,a,yyCCMoCA,EAAAC,SAAAC,GAwBjC,EAAAC,YAAS,0BAAyBC,GAKlC,EAAAD,YAAS,4BAA2BE,GAKpC,EAAAC,SAAM,yBAAwBC,GAE9B,EAAAJ,YAAS,+BAA8BK,GAKvC,EAAAF,SAAM,mBAAkBG,GAExB,EAAAN,YAAS,eAAcO,GAMvB,EAAAP,YAAS,+CAA8CQ,GAKvD,EAAAR,YAAS,uDAAsDS,GAK/D,EAAAT,YACC,UACA,cACA,0BACA,uBACA,uBACA,+BACDU,GAaA,EAAAV,YAAS,sBAAuB,4BAA2BW,GAK3D,EAAAX,YAAS,uCAAwC,eAAcY,GAkB/D,EAAAZ,YAAS,kCAAmC,eAAca,GAK1D,EAAAb,YAAS,eAAgB,kBAAmB,wBAAuBc,GAKnE,EAAAC,MAAG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ACLA,SAAU/nG,KAAKH,KAAKkoG,SACpB8kH,UAAW,kBAGf,MAAM,CAAG9kH,EAAU8kH,GAAa,kCAAkCj0F,KAAK54H,KAAKH,KAAKkoG,UAEjF,MAAO,CACLA,WACA8kH,UAAY,kBAAiBA,IAEjC,CAEI0nO,oBACF,OAAOv0b,KAAKH,KAAKowD,KAAQ,uBAAsBjwD,KAAKH,KAAKowD,OAAS,EACpE,G,EACD14B,E,EAAA,Y,EAnCoB,CACjBwwE,SAAU5pB,UAAUsD,OAAOvhC,WAC3B+P,KAAMkuB,UAAUu0C,MAAM,CAAC,QAAS,OAAQ,QAAS,SAAU,QAAS,SAAU,c,kaAJhEhzH,EAKf63B,KAAA73B,E,SAAA,I,4KCzBY,CACb,MACA,OACA,OACA,MACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,OACA,KACA,UACA,gBACA,OACA,OACA,OACA,OACA,OACA,KACA,UACA,MACA,QACA,eACA,MACA,cACA,gBACA,KACA,UACA,MACA,KACA,gBACA,qBACA,KACA,UACA,MACA,KACA,KACA,UACA,MACA,QACA,eACA,aACA,KACA,UACA,MACA,KACA,UACA,MACA,KACA,UACA,MACA,KACA,UACA,MACA,MACA,UACA,eACA,gBACA,cACA,qBACA,gBACA,oBACA,aACA,qBACA,kBACA,yBACA,cACA,iBACA,eACA,WACA,MACA,MACA,cACA,YACA,YACA,UACA,eACA,WACA,YACA,aACA,qBACA,cACA,cACA,WACA,eACA,mBACA,gBACA,sBACA,eACA,WACA,oBACA,WACA,eACA,qBACA,gBACA,eACA,WACA,cACA,SACA,uBACA,YACA,cACA,MACA,oBACA,2BACA,gCACA,6BACA,8BACA,+BACA,6BACA,8BACA,gBACA,WACA,kBACA,sBACA,wBACA,UACA,kBACA,QACA,YACA,YACA,WACA,QACA,0BACA,wBACA,yBACA,wBACA,wBACA,qBACA,YACA,gBACA,UACA,YACA,kBACA,YACA,SACA,UACA,YACA,eACA,MACA,YACA,MACA,eACA,mBACA,mBACA,eACA,WACA,OACA,cACA,eACA,UACA,aACA,aACA,iBACA,qBACA,oBACA,oBACA,qBACA,kBACA,iBACA,kBACA,yBACA,gBACA,gBACA,oBACA,aACA,cACA,kBACA,eACA,YACA,UACA,eACA,aACA,aACA,iBACA,kBACA,oBACA,sBACA,uBACA,YACA,sBACA,kBACA,mBACA,MACA,eACA,cACA,eACA,aACA,cACA,cACA,aACA,aACA,eACA,sBACA,sBACA,cACA,gBACA,kBACA,eACA,aACA,eACA,iBACA,YACA,WACA,wBACA,YACA,WACA,YACA,SACA,eACA,QACA,gBACA,UACA,UACA,SACA,YACA,mBACA,WACA,UACA,gBACA,gBACA,gBACA,gBACA,gBACA,gBACA,gBACA,gBACA,wBACA,eACA,gBACA,cACA,kBACA,eACA,MACA,eACA,gBACA,iBACA,UACA,cACA,WACA,QACA,eACA,UACA,UACA,QACA,YACA,YACA,kBACA,sBACA,qBACA,kBACA,sBACA,gBACA,cACA,WACA,UACA,OACA,OACA,cACA,WACA,eACA,iBACA,kBACA,kBACA,YACA,aACA,gBACA,eACA,eACA,oBACA,eACA,cACA,eACA,eACA,eACA,aACA,kBACA,MACA,qBACA,mBACA,eACA,eACA,eACA,eACA,eACA,eACA,eACA,kBACA,kBACA,iBACA,oBACA,eACA,iBACA,wBACA,kBACA,gBACA,QACA,eACA,aACA,QACA,eACA,WACA,aACA,YACA,WACA,kBACA,QACA,QACA,SACA,OACA,YACA,iBACA,iBACA,oBACA,sBACA,qBACA,OACA,WACA,YACA,aACA,cACA,uBACA,gBACA,aACA,iBACA,SACA,aACA,iBACA,eACA,gBACA,iBACA,cACA,cACA,eACA,WACA,SACA,sBACA,uBACA,oBACA,YACA,aACA,aACA,gBACA,kBACA,cACA,YACA,QACA,SACA,OACA,iBACA,qBACA,SACA,mBACA,WACA,cACA,aACA,YACA,sBACA,oBACA,QACA,YACA,SACA,gBACA,iBACA,mBACA,OACA,cACA,sBACA,QACA,YACA,0BACA,eACA,uBACA,YACA,gBACA,YACA,eACA,gBACA,aACA,iBACA,qBACA,SACA,SACA,uBACA,QACA,cACA,oBACA,QACA,YACA,QACA,mBACA,iBACA,0BACA,qBACA,QACA,eACA,aACA,iBACA,YACA,cACA,aACA,eACA,MACA,aACA,OACA,WACA,SACA,eACA,cACA,uBACA,aACA,WACA,UACA,eACA,oBACA,SACA,UACA,UACA,iBACA,sBACA,UACA,WACA,WACA,sBACA,0BACA,eACA,sBACA,eACA,eACA,eACA,gBACA,kBACA,cACA,WACA,eACA,cACA,gBACA,mBACA,oBACA,uBACA,WACA,iBACA,gBACA,0BACA,SACA,WACA,YACA,cACA,iBACA,UACA,cACA,SACA,oBACA,cACA,kBACA,eACA,OACA,eACA,OACA,YACA,WACA,WACA,WACA,WACA,YACA,iBACA,gBACA,gBACA,cACA,cACA,eACA,MACA,mBACA,oBACA,iBACA,gBACA,iBACA,iBACA,iBACA,eACA,gBACA,UACA,YACA,YACA,YACA,sBACA,aACA,mBACA,cACA,iBACA,gBACA,oBACA,aACA,aACA,SACA,OACA,SACA,SACA,iBACA,iBACA,eACA,kBACA,gBACA,iBACA,gBACA,kBACA,cACA,WACA,kBACA,0BACA,cACA,kBACA,UACA,kBACA,sBACA,iBACA,aACA,oBACA,iBACA,UACA,eACA,gBACA,aACA,UACA,UACA,aACA,SACA,gBACA,aACA,kBACA,kBACA,yBACA,iBACA,wBACA,iBACA,wBACA,iBACA,qBACA,4BACA,iBACA,oBACA,2BACA,qBACA,4BACA,kBACA,aACA,sBACA,mBACA,YACA,WACA,mBACA,MACA,aACA,iBACA,iBACA,gBACA,iBACA,qBACA,qBACA,oBACA,kCACA,cACA,eACA,OACA,mBACA,SACA,aACA,kBACA,sBACA,OACA,WACA,eACA,cACA,cACA,YACA,aACA,eACA,WACA,eACA,kBACA,WACA,gBACA,uBACA,cACA,SACA,cACA,iBACA,OACA,YACA,kBACA,sBACA,4BACA,sBACA,MACA,eACA,MACA,MACA,eACA,eACA,eACA,UACA,kBACA,OACA,kBACA,iBACA,OACA,kBACA,gBACA,gBACA,oBACA,YACA,qBACA,WACA,YACA,MACA,UACA,QACA,UACA,gBACA,gBACA,eACA,iBACA,oBACA,mBACA,sBACA,WACA,QACA,YACA,sBACA,kBACA,iBACA,eACA,cACA,sBACA,eACA,gBACA,eACA,gBACA,uBACA,cACA,sBACA,YACA,QACA,gBACA,YACA,oBACA,OACA,cACA,aACA,QACA,kBACA,aACA,aACA,eACA,aACA,cACA,SACA,qBACA,cACA,cACA,WACA,UACA,cACA,WACA,iBACA,iBACA,kBACA,kBACA,gBACA,YACA,gBACA,OACA,0BACA,sBACA,aACA,UACA,kBACA,eACA,cACA,WACA,WACA,kBACA,MACA,qBACA,iBACA,OACA,WACA,SACA,QACA,WACA,YACA,sBACA,YACA,YACA,qBACA,YACA,gBACA,qBACA,oBACA,YACA,eACA,cACA,SACA,WACA,WACA,WACA,WACA,WACA,WACA,WACA,WACA,WACA,gBACA,aACA,iBACA,iBACA,sBACA,eACA,gBACA,aACA,cACA,kBACA,cACA,oBACA,iBACA,eACA,eACA,cACA,oBACA,YACA,aACA,aACA,SACA,iBACA,OACA,cACA,QACA,QACA,aACA,YACA,WACA,iBACA,gBACA,WACA,SACA,eACA,cACA,iBACA,OACA,sBACA,kBACA,eACA,gBACA,QACA,cACA,eACA,UACA,WACA,SACA,cACA,gBACA,aACA,cACA,gBACA,iBACA,aACA,mBACA,gBACA,oBACA,YACA,SACA,YACA,aACA,sBACA,uBACA,oBACA,qBACA,cACA,eACA,oBACA,qBACA,oBACA,yBACA,yBACA,gBACA,sBACA,uBACA,uBACA,2BACA,kBACA,eACA,eACA,gBACA,cACA,uBACA,8BACA,8BACA,oBACA,OACA,QACA,UACA,aACA,aACA,YACA,mBACA,aACA,iBACA,oBACA,aACA,aACA,kBACA,YACA,eACA,cACA,UACA,QACA,SACA,QACA,oBACA,UACA,UACA,MACA,UACA,OACA,OACA,cACA,UACA,WACA,YACA,YACA,gBACA,UACA,QACA,WACA,UACA,QACA,aACA,QACA,WACA,WACA,mBACA,WACA,UACA,YACA,QACA,YACA,YACA,eACA,aACA,SACA,eACA,oBACA,OACA,YACA,WACA,WACA,KACA,WACA,kBACA,sBACA,UACA,iBACA,SACA,gBACA,WACA,aACA,WACA,aACA,qBACA,UACA,cACA,cACA,UACA,oBACA,UACA,mBACA,eACA,SACA,OACA,cACA,eACA,OACA,UACA,aACA,cACA,eACA,YACA,gBACA,gBACA,SACA,UACA,cACA,qBACA,OACA,MACA,UACA,kBACA,OACA,WACA,YACA,sBACA,YACA,wBACA,kBACA,mBACA,UACA,QACA,cACA,mBACA,qBACA,kBACA,iBACA,gBACA,QACA,eACA,YACA,aACA,cACA,OACA,OACA,QACA,MACA,OACA,cACA,WACA,QACA,qBACA,sBACA,eACA,qBACA,kBACA,gBACA,oBACA,QACA,oBACA,0BACA,OACA,QACA,eACA,wBACA,iBACA,oBACA,kBACA,oBACA,cACA,oBACA,eACA,WACA,kBACA,iBACA,2BACA,YACA,mBACA,YACA,cACA,gBACA,oBACA,YACA,OACA,MACA,aACA,YACA,aACA,YACA,aACA,WACA,eACA,MACA,UACA,WACA,eACA,sBACA,sBACA,uBACA,oBACA,qBACA,oBACA,uBACA,uBACA,6BACA,6BACA,8BACA,2BACA,gBACA,sBACA,kBACA,eACA,iBACA,WACA,UACA,cACA,QACA,kBACA,YACA,MACA,YACA,YACA,WACA,SACA,oBACA,aACA,iBACA,YACA,SACA,SACA,eACA,cACA,WACA,cACA,gBACA,OACA,YACA,cACA,oBACA,gBACA,gBACA,QACA,aACA,YACA,YACA,aACA,cACA,eACA,OACA,WACA,gBACA,SACA,OACA,WACA,YACA,UACA,SACA,iBACA,gBACA,YACA,YACA,aACA,iBACA,0BACA,eACA,cACA,wBACA,gBACA,oBACA,sBACA,iBACA,cACA,wBACA,gBACA,aACA,eACA,cACA,gBACA,iBACA,cACA,cACA,aACA,eACA,oBACA,kBACA,YACA,iBACA,aACA,gBACA,oBACA,eACA,cACA,qBACA,OACA,aACA,YACA,aACA,QACA,WACA,SACA,QACA,UACA,UACA,UACA,UACA,YACA,YACA,OACA,QACA,eACA,UACA,iBACA,sBACA,UACA,eACA,OACA,eACA,OACA,MACA,kBACA,iBACA,gBACA,MACA,iBACA,WACA,SACA,iBACA,iBACA,mBACA,kBACA,oBACA,uBACA,aACA,qBACA,QACA,WACA,sBACA,qBACA,YACA,sBACA,mBACA,aACA,oBACA,eACA,SACA,OACA,YACA,YACA,QACA,aACA,UACA,MACA,mBACA,kBACA,WACA,UACA,YACA,gBACA,WACA,cACA,yBACA,oBACA,MACA,kBACA,aACA,sBACA,iBACA,OACA,eACA,YACA,oBACA,aACA,iBACA,eACA,iBACA,kBACA,QACA,YACA,kBACA,UACA,gBACA,iBACA,oBACA,OACA,WACA,QACA,OACA,aACA,YACA,YACA,SACA,qBACA,oBACA,mBACA,sBACA,uBACA,QACA,YACA,gBACA,UACA,QACA,iBACA,eACA,SACA,KACA,kBACA,gBACA,SACA,aACA,YACA,cACA,cACA,MACA,SACA,gBACA,kBACA,gBACA,aACA,UACA,mBACA,eACA,aACA,eACA,gBACA,iBACA,eACA,eACA,qBACA,qBACA,qBACA,YACA,eACA,YACA,YACA,YACA,MACA,gBACA,YACA,aACA,mBACA,cACA,cACA,cACA,UACA,WACA,YACA,gBACA,8BACA,WACA,UACA,aACA,WACA,kBACA,iBACA,SACA,cACA,cACA,cACA,oBACA,iBACA,QACA,aACA,aACA,iBACA,iBACA,sBACA,cACA,OACA,WACA,WACA,QACA,mBACA,yBACA,gBACA,uBACA,qBACA,oBACA,uBACA,UACA,eACA,cACA,gBACA,iBACA,oBACA,UACA,kBACA,eACA,cACA,kBACA,YACA,eACA,WACA,SACA,gBACA,SACA,gBACA,SACA,UACA,QACA,WACA,OACA,UACA,WACA,eACA,WACA,oBACA,sBACA,6BACA,uBACA,8BACA,oBACA,2BACA,sBACA,6BACA,cACA,OACA,aACA,WACA,UACA,QACA,eACA,sBACA,uBACA,qBACA,UACA,WACA,aACA,UACA,kBACA,WACA,SACA,aACA,iBACA,UACA,kBACA,wBACA,oBACA,0BACA,gBACA,aACA,iBACA,iBACA,SACA,aACA,iBACA,mBACA,sBACA,aACA,iBACA,aACA,oBACA,gBACA,sBACA,gBACA,kBACA,iBACA,eACA,sBACA,OACA,WACA,QACA,gBACA,0BACA,iBACA,iBACA,gBACA,kBACA,gBACA,eACA,eACA,eACA,eACA,YACA,kBACA,iBACA,gBACA,iBACA,kBACA,QACA,cACA,eACA,oBACA,qBACA,eACA,gBACA,2BACA,0BACA,0BACA,MACA,QACA,YACA,iBACA,qBACA,yBACA,YACA,oBACA,MACA,WACA,UACA,aACA,QACA,oBACA,MACA,QACA,aACA,aACA,cACA,qBACA,sBACA,gBACA,gBACA,cACA,eACA,qBACA,4BACA,sBACA,gBACA,kBACA,WACA,WACA,WACA,gBACA,SACA,OACA,WACA,UACA,OACA,oBACA,WACA,WACA,QACA,cACA,YACA,qBACA,0BACA,iBACA,iBACA,UACA,eACA,cACA,QACA,iBACA,gBACA,cACA,uBACA,6BACA,aACA,SACA,aACA,UACA,yBACA,cACA,WACA,UACA,YACA,kBACA,gBACA,cACA,kBACA,gBACA,QACA,cACA,kBACA,aACA,OACA,eACA,QACA,QACA,uBACA,yBACA,gBACA,eACA,YACA,aACA,cACA,UACA,SACA,YACA,oBACA,UACA,eACA,gBACA,YACA,oBACA,YACA,YACA,SACA,OACA,kBACA,UACA,cACA,SACA,gBACA,wBACA,cACA,oBACA,mBACA,iBACA,uBACA,UACA,SACA,YACA,aACA,gBACA,SACA,YACA,YACA,WACA,uBACA,QACA,YACA,SACA,uBACA,aACA,iBACA,eACA,gBACA,WACA,cACA,aACA,kBACA,UACA,qBACA,eACA,UACA,YACA,cACA,SACA,gBACA,iBACA,UACA,OACA,mBACA,eACA,wBACA,uBACA,cACA,eACA,kBACA,mBACA,iBACA,QACA,SACA,SACA,WACA,OACA,MACA,OACA,cACA,aACA,sBACA,YACA,eACA,iBACA,UACA,YACA,YACA,gBACA,OACA,WACA,UACA,eACA,UACA,QACA,UACA,eACA,WACA,gBACA,SACA,SACA,UACA,QACA,aACA,wBACA,uBACA,uBACA,kBACA,sBACA,wBACA,eACA,aACA,eACA,KACA,UACA,gBACA,aACA,SACA,aACA,WACA,kBACA,uBACA,0BACA,UACA,aACA,mBACA,OACA,OACA,mBACA,sBACA,iBACA,cACA,gBACA,UACA,cACA,yBACA,oBACA,sBACA,0BACA,8BACA,2BACA,WACA,WACA,yBACA,wBACA,0BACA,qBACA,sBACA,gBACA,oBACA,yBACA,2BACA,2BACA,sBACA,wBACA,oBACA,iBACA,iBACA,kBACA,mBACA,2BACA,iBACA,cACA,QACA,iBACA,SACA,cACA,OACA,SACA,WACA,eACA,kBACA,gBACA,yBACA,aACA,WACA,aACA,SACA,UACA,aACA,gBACA,OACA,gBACA,wBACA,wBACA,sBACA,4BACA,4BACA,8CACA,8CACA,yBACA,yBACA,uBACA,sBACA,oBACA,oBACA,yBACA,kBACA,sCACA,kBACA,8BACA,gDACA,6BACA,WACA,WACA,iBACA,oBACA,aACA,MACA,gBACA,YACA,gBACA,WACA,YACA,oBACA,eACA,gBACA,eACA,YACA,aACA,aACA,gBACA,MACA,aACA,iBACA,SACA,eACA,aACA,cACA,OACA,kBACA,OACA,gBACA,MACA,eACA,SACA,QACA,gBACA,aACA,aACA,MACA,YACA,kBACA,gBACA,oBACA,mBACA,UACA,gBACA,gBACA,oBACA,gBACA,QACA,aACA,cACA,QACA,SACA,aACA,kBACA,oBACA,iBACA,iBACA,kBACA,cACA,oBACA,kBACA,gBACA,iBACA,sBACA,aACA,qBACA,eACA,eACA,gBACA,gBACA,oBACA,SACA,cACA,aACA,oBACA,qBACA,UACA,SACA,OACA,cACA,wBACA,YACA,eACA,iBACA,YACA,QACA,QACA,yBACA,wBACA,yBACA,wBACA,gBACA,OACA,cACA,oBACA,UACA,QACA,uBACA,aACA,QACA,WACA,aACA,SACA,aACA,kBACA,WACA,QACA,0BACA,2BACA,UACA,YACA,gBACA,YACA,gBACA,SACA,YACA,cACA,yBACA,qBACA,UACA,gBACA,UACA,iBACA,aACA,aACA,yBACA,YACA,uBACA,QACA,aACA,iBACA,aACA,iBACA,cACA,kBACA,WACA,eACA,iBACA,yBACA,6BACA,iBACA,gBACA,cACA,eACA,eACA,YACA,OACA,WACA,gBACA,YACA,eACA,yBACA,8BACA,iCACA,gBACA,oBACA,MACA,iBACA,YACA,cACA,mBACA,aACA,aACA,SACA,iBACA,aACA,MACA,YACA,iBACA,eACA,QACA,OACA,WACA,aACA,kBACA,eACA,WACA,UACA,gBACA,cACA,cACA,gBACA,iBACA,uBACA,0BACA,wBACA,qBACA,qBACA,eACA,UACA,UACA,iBACA,WACA,aACA,kBACA,aACA,iBACA,qBACA,WACA,eACA,mBACA,iBACA,eACA,gBACA,YACA,WACA,QACA,WACA,kBACA,UACA,iBACA,YACA,mBACA,cACA,QACA,MACA,QACA,aACA,YACA,QACA,OACA,WACA,QACA,YACA,OACA,OACA,gBACA,UACA,QACA,OACA,4BACA,YACA,cACA,oBACA,YACA,iBACA,gBACA,gBACA,cACA,cACA,MACA,UACA,MACA,OACA,WACA,YACA,aACA,kBACA,mBACA,mBACA,oBACA,YACA,gBACA,KACA,SACA,cACA,cACA,eACA,WACA,YACA,OACA,cACA,cACA,cACA,cACA,WACA,SACA,kBACA,UACA,SACA,cACA,MACA,UACA,WACA,YACA,eACA,WACA,gBACA,wBACA,wBACA,qBACA,sBACA,iBACA,YACA,aACA,oBACA,qBACA,aACA,cACA,gBACA,iBACA,eACA,WACA,eACA,kBACA,sBACA,cACA,aACA,gBACA,cACA,aACA,iBACA,eACA,mBACA,YACA,WACA,gBACA,aACA,cACA,YACA,cACA,aACA,eACA,cACA,gBACA,YACA,WACA,QACA,aACA,iBACA,aACA,iBACA,YACA,UACA,cACA,cACA,aACA,YACA,qBACA,UACA,cACA,WACA,SACA,YACA,YACA,UACA,gBACA,OACA,QACA,cACA,YACA,QACA,eACA,aACA,kBACA,QACA,cACA,UACA,YACA,kBACA,gBACA,WACA,WACA,cACA,KACA,MACA,YACA,gBACA,UACA,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C,aAA4B+5b,UAC/B/5b,EAAiBusB,0BAA0BjqB,GAC3C,EACN,EACDr7C,EAAAC,QAAAmkE,CAAA,I,0ICtEc,CACb,CACE1uD,KAAM,uCACNtH,MAAO,MAET,CACEsH,KAAM,uBACNtH,MAAO,kBAET,CACEsH,KAAM,qBACNtH,MAAO,gBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,sBACNtH,MAAO,iBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,sBACNtH,MAAO,iBAET,CACEsH,KAAM,sBACNtH,MAAO,iBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,uBACNtH,MAAO,kBAET,CACEsH,KAAM,qBACNtH,MAAO,gBAET,CACEsH,KAAM,mCACNtH,MAAO,wBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,wBACNtH,MAAO,mBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,oBACNtH,MAAO,eAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,wBACNtH,MAAO,mBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,0BACNtH,MAAO,qBAET,CACEsH,KAAM,2BACNtH,MAAO,sBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,wBACNtH,MAAO,mBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,6CACNtH,MAAO,kCAET,CACEsH,KAAM,0CACNtH,MAAO,+BAET,CACEsH,KAAM,wCACNtH,MAAO,6BAET,CACEsH,KAAM,sCACNtH,MAAO,2BAET,CACEsH,KAAM,yCACNtH,MAAO,8BAET,CACEsH,KAAM,wCACNtH,MAAO,6BAET,CACEsH,KAAM,6CACNtH,MAAO,kCAET,CACEsH,KAAM,sCACNtH,MAAO,2BAET,CACEsH,KAAM,yCACNtH,MAAO,8BAET,CACEsH,KAAM,yCACNtH,MAAO,8BAET,CACEsH,KAAM,wCACNtH,MAAO,6BAET,CACEsH,KAAM,wCACNtH,MAAO,6BAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,qCACNtH,MAAO,0BAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,mCACNtH,MAAO,wBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,oCACNtH,MAAO,yBAET,CACEsH,KAAM,mCACNtH,MAAO,wBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,6BACNtH,MAAO,wBAET,CACEsH,KAAM,mCACNtH,MAAO,wBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,2CACNtH,MAAO,gCAET,CACEsH,KAAM,mCACNtH,MAAO,wBAET,CACEsH,KAAM,sCACNtH,MAAO,2BAET,CACEsH,KAAM,yCACNtH,MAAO,8BAET,CACEsH,KAAM,wCACNtH,MAAO,6BAET,CACEsH,KAAM,oCACNtH,MAAO,yBAET,CACEsH,KAAM,wCACNtH,MAAO,6BAET,CACEsH,KAAM,sCACNtH,MAAO,2BAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,0CACNtH,MAAO,+BAET,CACEsH,KAAM,0CACNtH,MAAO,+BAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,0CACNtH,MAAO,+BAET,CACEsH,KAAM,0CACNtH,MAAO,+BAET,CACEsH,KAAM,6CACNtH,MAAO,kCAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,oCACNtH,MAAO,yBAET,CACEsH,KAAM,qCACNtH,MAAO,0BAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,mCACNtH,MAAO,wBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,mCACNtH,MAAO,wBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,oCACNtH,MAAO,yBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,6BACNtH,MAAO,wBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,oCACNtH,MAAO,yBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,oCACNtH,MAAO,yBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,wCACNtH,MAAO,6BAET,CACEsH,KAAM,mCACNtH,MAAO,wBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,oCACNtH,MAAO,yBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,wBACNtH,MAAO,aAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,yBACNtH,MAAO,cAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,yBACNtH,MAAO,cAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,wBACNtH,MAAO,aAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,yBACNtH,MAAO,cAET,CACEsH,KAAM,wBACNtH,MAAO,aAET,CACEsH,KAAM,yBACNtH,MAAO,cAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,wBACNtH,MAAO,aAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,wBACNtH,MAAO,aAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,yBACNtH,MAAO,cAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,yBACNtH,MAAO,cAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,wBACNtH,MAAO,aAET,CACEsH,KAAM,wBACNtH,MAAO,aAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,yBACNtH,MAAO,cAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,yBACNtH,MAAO,cAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,yBACNtH,MAAO,cAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,wBACNtH,MAAO,mBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,2BACNtH,MAAO,sBAET,CACEsH,KAAM,qCACNtH,MAAO,0BAET,CACEsH,KAAM,2BACNtH,MAAO,sBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,oCACNtH,MAAO,yBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,0BACNtH,MAAO,eAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,kCACNtH,MAAO,uBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,+BACNtH,MAAO,oBAET,CACEsH,KAAM,iCACNtH,MAAO,sBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,4BACNtH,MAAO,iBAET,CACEsH,KAAM,2BACNtH,MAAO,gBAET,CACEsH,KAAM,8BACNtH,MAAO,mBAET,CACEsH,KAAM,6BACNtH,MAAO,kBAET,CACEsH,KAAM,gCACNtH,MAAO,qBAET,CACEsH,KAAM,4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